!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(h,e){var u=[],d=u.slice,m=u.concat,s=u.push,r=u.indexOf,n={},t=n.toString,v=n.hasOwnProperty,g={},i="1.11.1",x=function(e,t){return new x.fn.init(e,t)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,l=/-([\da-z])/gi,c=function(e,t){return t.toUpperCase()};x.fn=x.prototype={jquery:i,constructor:x,selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:d.call(this)},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},map:function(n){return this.pushStack(x.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:u.sort,splice:u.splice},x.extend=x.fn.extend=function(){var e,t,n,i,r,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||x.isFunction(o)||(o={}),s===l&&(o=this,s--);l>s;s++)if(null!=(r=arguments[s]))for(i in r)e=o[i],n=r[i],o!==n&&(c&&n&&(x.isPlainObject(n)||(t=x.isArray(n)))?(t?(t=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},o[i]=x.extend(c,a,n)):void 0!==n&&(o[i]=n));return o},x.extend({expando:"jQuery"+(i+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!x.isArray(e)&&e-parseFloat(e)>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(g.ownLast)for(t in e)return v.call(e,t);for(t in e);return void 0===t||v.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[t.call(e)]||"object":typeof e},globalEval:function(e){e&&x.trim(e)&&(h.execScript||function(e){h.eval.call(h,e)})(e)},camelCase:function(e){return e.replace(o,"ms-").replace(l,c)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var i,r=0,a=e.length,o=p(e);if(n){if(o){for(;a>r;r++)if(i=t.apply(e[r],n),i===!1)break}else for(r in e)if(i=t.apply(e[r],n),i===!1)break}else if(o){for(;a>r;r++)if(i=t.call(e[r],r,e[r]),i===!1)break}else for(r in e)if(i=t.call(e[r],r,e[r]),i===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(a,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?x.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){var i;if(t){if(r)return r.call(t,e,n);for(i=t.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){var n=+t.length,i=0,r=e.length;while(n>i)e[r++]=t[i++];if(n!==n)while(void 0!==t[i])e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],a=0,o=e.length,s=!n;o>a;a++)i=!t(e[a],a),i!==s&&r.push(e[a]);return r},map:function(e,t,n){var i,r=0,a=e.length,o=p(e),s=[];if(o)for(;a>r;r++)i=t(e[r],r,n),null!=i&&s.push(i);else for(r in e)i=t(e[r],r,n),null!=i&&s.push(i);return m.apply([],s)},guid:1,proxy:function(e,t){var n,i,r;return"string"==typeof t&&(r=e[t],t=e,e=r),x.isFunction(e)?(n=d.call(arguments,2),i=function(){return e.apply(t||this,n.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):void 0},now:function(){return+new Date},support:g}),x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});function p(e){var t=e.length,n=x.type(e);return"function"===n||x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}var f=function(n){var e,h,b,a,i,m,u,v,w,c,d,g,C,r,_,y,o,s,x,k="sizzle"+-new Date,S=n.document,D=0,p=0,l=ae(),f=ae(),T=ae(),$=function(e,t){return e===t&&(d=!0),0},E="undefined",O=1<<31,A={}.hasOwnProperty,t=[],P=t.pop,M=t.push,I=t.push,N=t.slice,R=t.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",H=j.replace("w","w#"),q="\\["+L+"*("+j+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+L+"*\\]",B=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+q+")*)|.*)\\)|)",z=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),Y=new RegExp("^"+L+"*,"+L+"*"),U=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),W=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(B),J=new RegExp("^"+H+"$"),G={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j.replace("w","w*")+")"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ie=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{I.apply(t=N.call(S.childNodes),S.childNodes),t[S.childNodes.length].nodeType}catch(e){I={apply:t.length?function(e,t){M.apply(e,N.call(t))}:function(e,t){var n=e.length,i=0;while(e[n++]=t[i++]);e.length=n-1}}}function re(e,t,n,i){var r,a,o,s,l,c,d,u,p,f;if((t?t.ownerDocument||t:S)!==C&&g(t),t=t||C,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(_&&!i){if(r=Z.exec(e))if(o=r[1]){if(9===s){if(a=t.getElementById(o),!a||!a.parentNode)return n;if(a.id===o)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(o))&&x(t,a)&&a.id===o)return n.push(a),n}else{if(r[2])return I.apply(n,t.getElementsByTagName(e)),n;if((o=r[3])&&h.getElementsByClassName&&t.getElementsByClassName)return I.apply(n,t.getElementsByClassName(o)),n}if(h.qsa&&(!y||!y.test(e))){if(u=d=k,p=t,f=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){c=m(e),(d=t.getAttribute("id"))?u=d.replace(te,"\\$&"):t.setAttribute("id",u),u="[id='"+u+"'] ",l=c.length;while(l--)c[l]=u+me(c[l]);p=ee.test(e)&&fe(t.parentNode)||t,f=c.join(",")}if(f)try{return I.apply(n,p.querySelectorAll(f)),n}catch(e){}finally{d||t.removeAttribute("id")}}}return v(e.replace(z,"$1"),t,n,i)}function ae(){var n=[];function i(e,t){return n.push(e+" ")>b.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function oe(e){return e[k]=!0,e}function se(e){var t=C.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){var n=e.split("|"),i=e.length;while(i--)b.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||O)-(~e.sourceIndex||O);if(i)return i;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(n){return function(e){var t=e.nodeName.toLowerCase();return"input"===t&&e.type===n}}function ue(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function pe(o){return oe(function(a){return a=+a,oe(function(e,t){var n,i=o([],e.length,a),r=i.length;while(r--)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function fe(e){return e&&typeof e.getElementsByTagName!==E&&e}h=re.support={},i=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},g=re.setDocument=function(e){var t,l=e?e.ownerDocument||e:S,n=l.defaultView;return l!==C&&9===l.nodeType&&l.documentElement?(C=l,r=l.documentElement,_=!i(l),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){g()},!1):n.attachEvent&&n.attachEvent("onunload",function(){g()})),h.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=se(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=Q.test(l.getElementsByClassName)&&se(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),h.getById=se(function(e){return r.appendChild(e).id=k,!l.getElementsByName||!l.getElementsByName(k).length}),h.getById?(b.find.ID=function(e,t){if(typeof t.getElementById!==E&&_){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},b.filter.ID=function(e){var t=e.replace(ne,ie);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var n=e.replace(ne,ie);return function(e){var t=typeof e.getAttributeNode!==E&&e.getAttributeNode("id");return t&&t.value===n}}),b.find.TAG=h.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==E?t.getElementsByTagName(e):void 0}:function(e,t){var n,i=[],r=0,a=t.getElementsByTagName(e);if("*"===e){while(n=a[r++])1===n.nodeType&&i.push(n);return i}return a},b.find.CLASS=h.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==E&&_?t.getElementsByClassName(e):void 0},o=[],y=[],(h.qsa=Q.test(l.querySelectorAll))&&(se(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&y.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+L+"*(?:value|"+F+")"),e.querySelectorAll(":checked").length||y.push(":checked")}),se(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+L+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(h.matchesSelector=Q.test(s=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&se(function(e){h.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),o.push("!=",B)}),y=y.length&&new RegExp(y.join("|")),o=o.length&&new RegExp(o.join("|")),t=Q.test(r.compareDocumentPosition),x=t||Q.test(r.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},$=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!h.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===S&&x(S,e)?-1:t===l||t.ownerDocument===S&&x(S,t)?1:c?R.call(c,e)-R.call(c,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!r||!a)return e===l?-1:t===l?1:r?-1:a?1:c?R.call(c,e)-R.call(c,t):0;if(r===a)return ce(e,t);n=e;while(n=n.parentNode)o.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(o[i]===s[i])i++;return i?ce(o[i],s[i]):o[i]===S?-1:s[i]===S?1:0},l):C},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&g(e),t=t.replace(W,"='$1']"),!(!h.matchesSelector||!_||o&&o.test(t)||y&&y.test(t)))try{var n=s.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return re(t,C,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==C&&g(e),x(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==C&&g(e);var n=b.attrHandle[t.toLowerCase()],i=n&&A.call(b.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==i?i:h.attributes||!_?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,n=[],i=0,r=0;if(d=!h.detectDuplicates,c=!h.sortStable&&e.slice(0),e.sort($),d){while(t=e[r++])t===e[r]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return c=null,e},a=re.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===r||4===r)return e.nodeValue}else while(t=e[i++])n+=a(t);return n},b=re.selectors={cacheLength:50,createPseudo:oe,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&V.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=l[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&l(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==E&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=re.attr(e,n);return null==t?"!="===i:i?(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&t.indexOf(r)>-1:"$="===i?r&&t.slice(-r.length)===r:"~="===i?(" "+t+" ").indexOf(r)>-1:"|="===i?t===r||t.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(f,e,t,h,m){var v="nth"!==f.slice(0,3),g="last"!==f.slice(-4),_="of-type"===e;return 1===h&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,r,a,o,s,l,c=v!==g?"nextSibling":"previousSibling",d=e.parentNode,u=_&&e.nodeName.toLowerCase(),p=!n&&!_;if(d){if(v){while(c){a=e;while(a=a[c])if(_?a.nodeName.toLowerCase()===u:1===a.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[g?d.firstChild:d.lastChild],g&&p){r=d[k]||(d[k]={}),i=r[f]||[],s=i[0]===D&&i[1],o=i[0]===D&&i[2],a=s&&d.childNodes[s];while(a=++s&&a&&a[c]||(o=s=0)||l.pop())if(1===a.nodeType&&++o&&a===e){r[f]=[D,s,o];break}}else if(p&&(i=(e[k]||(e[k]={}))[f])&&i[0]===D)o=i[1];else while(a=++s&&a&&a[c]||(o=s=0)||l.pop())if((_?a.nodeName.toLowerCase()===u:1===a.nodeType)&&++o&&(p&&((a[k]||(a[k]={}))[f]=[D,o]),a===e))break;return o-=m,o===h||o%h===0&&o/h>=0}}},PSEUDO:function(e,a){var t,o=b.pseudos[e]||b.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[k]?o(a):o.length>1?(t=[e,e,"",a],b.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,t){var n,i=o(e,a),r=i.length;while(r--)n=R.call(e,i[r]),e[n]=!(t[n]=i[r])}):function(e){return o(e,0,t)}):o}},pseudos:{not:oe(function(e){var i=[],r=[],s=u(e.replace(z,"$1"));return s[k]?oe(function(e,t,n,i){var r,a=s(e,null,i,[]),o=e.length;while(o--)(r=a[o])&&(e[o]=!(t[o]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),!r.pop()}}),has:oe(function(t){return function(e){return re(t,e).length>0}}),contains:oe(function(t){return function(e){return(e.textContent||e.innerText||a(e)).indexOf(t)>-1}}),lang:oe(function(n){return J.test(n||"")||re.error("unsupported lang: "+n),n=n.replace(ne,ie).toLowerCase(),function(e){var t;do{if(t=_?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return t=t.toLowerCase(),t===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[0>n?n+t:n]}),even:pe(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:pe(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},b.pseudos.nth=b.pseudos.eq;for(e in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=ue(e);function he(){}he.prototype=b.filters=b.pseudos,b.setFilters=new he,m=re.tokenize=function(e,t){var n,i,r,a,o,s,l,c=f[e+" "];if(c)return t?0:c.slice(0);o=e,s=[],l=b.preFilter;while(o){(!n||(i=Y.exec(o)))&&(i&&(o=o.slice(i[0].length)||o),s.push(r=[])),n=!1,(i=U.exec(o))&&(n=i.shift(),r.push({value:n,type:i[0].replace(z," ")}),o=o.slice(n.length));for(a in b.filter)!(i=G[a].exec(o))||l[a]&&!(i=l[a](i))||(n=i.shift(),r.push({value:n,type:a,matches:i}),o=o.slice(n.length));if(!n)break}return t?o.length:o?re.error(e):f(e,s).slice(0)};function me(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function ve(o,e,t){var s=e.dir,l=t&&"parentNode"===s,c=p++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||l)return o(e,t,n)}:function(e,t,n){var i,r,a=[D,c];if(n){while(e=e[s])if((1===e.nodeType||l)&&o(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||l){if(r=e[k]||(e[k]={}),(i=r[s])&&i[0]===D&&i[1]===c)return a[2]=i[2];if(r[s]=a,a[2]=o(e,t,n))return!0}}}function ge(r){return r.length>1?function(e,t,n){var i=r.length;while(i--)if(!r[i](e,t,n))return!1;return!0}:r[0]}function _e(e,t,n){for(var i=0,r=t.length;r>i;i++)re(e,t[i],n);return n}function ye(e,t,n,i,r){for(var a,o=[],s=0,l=e.length,c=null!=t;l>s;s++)(a=e[s])&&(!n||n(a,i,r))&&(o.push(a),c&&t.push(s));return o}function be(f,h,m,v,g,e){return v&&!v[k]&&(v=be(v)),g&&!g[k]&&(g=be(g,e)),oe(function(e,t,n,i){var r,a,o,s=[],l=[],c=t.length,d=e||_e(h||"*",n.nodeType?[n]:n,[]),u=!f||!e&&h?d:ye(d,s,f,n,i),p=m?g||(e?f:c||v)?[]:t:u;if(m&&m(u,p,n,i),v){r=ye(p,l),v(r,[],n,i),a=r.length;while(a--)(o=r[a])&&(p[l[a]]=!(u[l[a]]=o))}if(e){if(g||f){if(g){r=[],a=p.length;while(a--)(o=p[a])&&r.push(u[a]=o);g(null,p=[],r,i)}a=p.length;while(a--)(o=p[a])&&(r=g?R.call(e,o):s[a])>-1&&(e[r]=!(t[r]=o))}}else p=ye(p===t?p.splice(c,p.length):p),g?g(null,t,p,i):I.apply(t,p)})}function we(e){for(var i,t,n,r=e.length,a=b.relative[e[0].type],o=a||b.relative[" "],s=a?1:0,l=ve(function(e){return e===i},o,!0),c=ve(function(e){return R.call(i,e)>-1},o,!0),d=[function(e,t,n){return!a&&(n||t!==w)||((i=t).nodeType?l(e,t,n):c(e,t,n))}];r>s;s++)if(t=b.relative[e[s].type])d=[ve(ge(d),t)];else{if(t=b.filter[e[s].type].apply(null,e[s].matches),t[k]){for(n=++s;r>n;n++)if(b.relative[e[n].type])break;return be(s>1&&ge(d),s>1&&me(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(z,"$1"),t,n>s&&we(e.slice(s,n)),r>n&&we(e=e.slice(n)),r>n&&me(e))}d.push(t)}return ge(d)}function Ce(v,g){var _=g.length>0,y=v.length>0,e=function(e,t,n,i,r){var a,o,s,l=0,c="0",d=e&&[],u=[],p=w,f=e||y&&b.find.TAG("*",r),h=D+=null==p?1:Math.random()||.1,m=f.length;for(r&&(w=t!==C&&t);c!==m&&null!=(a=f[c]);c++){if(y&&a){o=0;while(s=v[o++])if(s(a,t,n)){i.push(a);break}r&&(D=h)}_&&((a=!s&&a)&&l--,e&&d.push(a))}if(l+=c,_&&c!==l){o=0;while(s=g[o++])s(d,u,t,n);if(e){if(l>0)while(c--)d[c]||u[c]||(u[c]=P.call(i));u=ye(u)}I.apply(i,u),r&&!e&&u.length>0&&l+g.length>1&&re.uniqueSort(i)}return r&&(D=h,w=p),d};return _?oe(e):e}return u=re.compile=function(e,t){var n,i=[],r=[],a=T[e+" "];if(!a){t||(t=m(e)),n=t.length;while(n--)a=we(t[n]),a[k]?i.push(a):r.push(a);a=T(e,Ce(r,i)),a.selector=e}return a},v=re.select=function(e,t,n,i){var r,a,o,s,l,c="function"==typeof e&&e,d=!i&&m(e=c.selector||e);if(n=n||[],1===d.length){if(a=d[0]=d[0].slice(0),a.length>2&&"ID"===(o=a[0]).type&&h.getById&&9===t.nodeType&&_&&b.relative[a[1].type]){if(t=(b.find.ID(o.matches[0].replace(ne,ie),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(a.shift().value.length)}r=G.needsContext.test(e)?0:a.length;while(r--){if(o=a[r],b.relative[s=o.type])break;if((l=b.find[s])&&(i=l(o.matches[0].replace(ne,ie),ee.test(a[0].type)&&fe(t.parentNode)||t))){if(a.splice(r,1),e=i.length&&me(a),!e)return I.apply(n,i),n;break}}}return(c||u(e,d))(i,t,!_,n,ee.test(e)&&fe(t.parentNode)||t),n},h.sortStable=k.split("").sort($).join("")===k,h.detectDuplicates=!!d,g(),h.sortDetached=se(function(e){return 1&e.compareDocumentPosition(C.createElement("div"))}),se(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&se(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),se(function(e){return null==e.getAttribute("disabled")})||le(F,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),re}(h);x.find=f,x.expr=f.selectors,x.expr[":"]=x.expr.pseudos,x.unique=f.uniqueSort,x.text=f.getText,x.isXMLDoc=f.isXML,x.contains=f.contains;var _=x.expr.match.needsContext,y=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,b=/^.[^:#\[\.,]*$/;function w(e,n,i){if(x.isFunction(n))return x.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return x.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(b.test(n))return x.filter(n,e,i);n=x.filter(n,e)}return x.grep(e,function(e){return x.inArray(e,n)>=0!==i})}x.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?x.find.matchesSelector(i,e)?[i]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;r>t;t++)if(x.contains(i[t],this))return!0}));for(t=0;r>t;t++)x.find(e,i[t],n);return n=this.pushStack(r>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(w(this,e||[],!1))},not:function(e){return this.pushStack(w(this,e||[],!0))},is:function(e){return!!w(this,"string"==typeof e&&_.test(e)?x(e):e||[],!1).length}});var C,k=h.document,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,D=x.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:S.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||C).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),y.test(n[1])&&x.isPlainObject(t))for(n in t)x.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(i=k.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return C.find(e);this.length=1,this[0]=i}return this.context=k,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?"undefined"!=typeof C.ready?C.ready(e):e(x):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))};D.prototype=x.fn,C=x(k);var T=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};x.extend({dir:function(e,t,n){var i=[],r=e[t];while(r&&9!==r.nodeType&&(void 0===n||1!==r.nodeType||!x(r).is(n)))1===r.nodeType&&i.push(r),r=r[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),x.fn.extend({has:function(e){var t,n=x(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(x.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,a=[],o=_.test(e)||"string"!=typeof e?x(e,t||this.context):0;r>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?x.unique(a):a)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.unique(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function E(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return E(e,"nextSibling")},prev:function(e){return E(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(i,r){x.fn[i]=function(e,t){var n=x.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=x.filter(t,n)),this.length>1&&($[i]||(n=x.unique(n)),T.test(i)&&(n=n.reverse())),this.pushStack(n)}});var O=/\S+/g,A={};function P(e){var n=A[e]={};return x.each(e.match(O)||[],function(e,t){n[t]=!0}),n}x.Callbacks=function(r){r="string"==typeof r?A[r]||P(r):x.extend({},r);var i,t,n,a,o,s,l=[],c=!r.once&&[],d=function(e){for(t=r.memory&&e,n=!0,o=s||0,s=0,a=l.length,i=!0;l&&a>o;o++)if(l[o].apply(e[0],e[1])===!1&&r.stopOnFalse){t=!1;break}i=!1,l&&(c?c.length&&d(c.shift()):t?l=[]:u.disable())},u={add:function(){if(l){var e=l.length;!function i(e){x.each(e,function(e,t){var n=x.type(t);"function"===n?r.unique&&u.has(t)||l.push(t):t&&t.length&&"string"!==n&&i(t)})}(arguments),i?a=l.length:t&&(s=e,d(t))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,l,n))>-1)l.splice(n,1),i&&(a>=n&&a--,o>=n&&o--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],a=0,this},disable:function(){return l=c=t=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,t||u.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!l||n&&!c||(t=t||[],t=[e,t.slice?t.slice():t],i?c.push(t):d(t)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!n}};return u},x.extend({Deferred:function(e){var a=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],r="pending",o={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return x.Deferred(function(i){x.each(a,function(e,t){var n=x.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[t[0]+"With"](this===o?i.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},s={};return o.pipe=o.then,x.each(a,function(e,t){var n=t[2],i=t[3];o[t[1]]=n.add,i&&n.add(function(){r=i},a[1^e][2].disable,a[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?o:this,arguments),this},s[t[0]+"With"]=n.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(e){var t=0,n=d.call(arguments),i=n.length,r=1!==i||e&&x.isFunction(e.promise)?i:0,a=1===r?e:x.Deferred(),o=function(t,n,i){return function(e){n[t]=this,i[t]=arguments.length>1?d.call(arguments):e,i===s?a.notifyWith(n,i):--r||a.resolveWith(n,i)}},s,l,c;if(i>1)for(s=new Array(i),l=new Array(i),c=new Array(i);i>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(o(t,c,n)).fail(a.reject).progress(o(t,l,s)):--r;return r||a.resolveWith(c,n),a.promise()}});var M;x.fn.ready=function(e){return x.ready.promise().done(e),this},x.extend({isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!k.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(M.resolveWith(k,[x]),x.fn.triggerHandler&&(x(k).triggerHandler("ready"),x(k).off("ready")))}}});function I(){k.addEventListener?(k.removeEventListener("DOMContentLoaded",N,!1),h.removeEventListener("load",N,!1)):(k.detachEvent("onreadystatechange",N),h.detachEvent("onload",N))}function N(){(k.addEventListener||"load"===event.type||"complete"===k.readyState)&&(I(),x.ready())}x.ready.promise=function(e){if(!M)if(M=x.Deferred(),"complete"===k.readyState)setTimeout(x.ready);else if(k.addEventListener)k.addEventListener("DOMContentLoaded",N,!1),h.addEventListener("load",N,!1);else{k.attachEvent("onreadystatechange",N),h.attachEvent("onload",N);var n=!1;try{n=null==h.frameElement&&k.documentElement}catch(e){}n&&n.doScroll&&!function t(){if(!x.isReady){try{n.doScroll("left")}catch(e){return setTimeout(t,50)}I(),x.ready()}}()}return M.promise(e)};var R="undefined",F;for(F in x(g))break;g.ownLast="0"!==F,g.inlineBlockNeedsLayout=!1,x(function(){var e,t,n,i;n=k.getElementsByTagName("body")[0],n&&n.style&&(t=k.createElement("div"),i=k.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==R&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",g.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=k.createElement("div");if(null==g.deleteExpando){g.deleteExpando=!0;try{delete e.test}catch(e){g.deleteExpando=!1}}e=null}(),x.acceptData=function(e){var t=x.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute("classid")===t};var L=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,j=/([A-Z])/g;function H(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(j,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:L.test(n)?x.parseJSON(n):n}catch(e){}x.data(e,t,n)}else n=void 0}return n}function q(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function B(e,t,n,i){if(x.acceptData(e)){var r,a,o=x.expando,s=e.nodeType,l=s?x.cache:e,c=s?e[o]:e[o]&&o;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof t)return c||(c=s?e[o]=u.pop()||x.guid++:o),l[c]||(l[c]=s?{}:{toJSON:x.noop}),("object"==typeof t||"function"==typeof t)&&(i?l[c]=x.extend(l[c],t):l[c].data=x.extend(l[c].data,t)),a=l[c],i||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[x.camelCase(t)]=n),"string"==typeof t?(r=a[t],null==r&&(r=a[x.camelCase(t)])):r=a,r}}function z(e,t,n){if(x.acceptData(e)){var i,r,a=e.nodeType,o=a?x.cache:e,s=a?e[x.expando]:x.expando;if(o[s]){if(t&&(i=n?o[s]:o[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in i?t=[t]:(t=x.camelCase(t),t=t in i?[t]:t.split(" ")),r=t.length;while(r--)delete i[t[r]];if(n?!q(i):!x.isEmptyObject(i))return}(n||(delete o[s].data,q(o[s])))&&(a?x.cleanData([e],!0):g.deleteExpando||o!=o.window?delete o[s]:o[s]=null)}}}x.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!q(e)},data:function(e,t,n){return B(e,t,n)},removeData:function(e,t){return z(e,t)},_data:function(e,t,n){return B(e,t,n,!0)},_removeData:function(e,t){return z(e,t,!0)}}),x.fn.extend({data:function(e,t){var n,i,r,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(r=x.data(a),1===a.nodeType&&!x._data(a,"parsedAttrs"))){n=o.length;while(n--)o[n]&&(i=o[n].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),H(a,i,r[i])));x._data(a,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,t)}):a?H(a,e,x.data(a,e)):void 0},removeData:function(e){return this.each(function(){x.removeData(this,e)})}}),x.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=x._data(e,t),n&&(!i||x.isArray(n)?i=x._data(e,t,x.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),i=n.length,r=n.shift(),a=x._queueHooks(e,t),o=function(){x.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,o,a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?x.queue(this[0],t):void 0===n?this:this.each(function(){var e=x.queue(this,t,n);x._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&x.dequeue(this,t)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=x.Deferred(),a=this,o=this.length,s=function(){--i||r.resolveWith(a,[a])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(o--)n=x._data(a[o],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var Y=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=["Top","Right","Bottom","Left"],W=function(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)},V=x.access=function(e,t,n,i,r,a,o){var s=0,l=e.length,c=null==n;if("object"===x.type(n)){r=!0;for(s in n)x.access(e,t,s,n[s],!0,a,o)}else if(void 0!==i&&(r=!0,x.isFunction(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(x(e),n)})),t))for(;l>s;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):a},J=/^(?:checkbox|radio)$/i;!function(){var e=k.createElement("input"),t=k.createElement("div"),n=k.createDocumentFragment();if(t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",g.leadingWhitespace=3===t.firstChild.nodeType,g.tbody=!t.getElementsByTagName("tbody").length,g.htmlSerialize=!!t.getElementsByTagName("link").length,g.html5Clone="<:nav></:nav>"!==k.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),g.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",g.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,g.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){g.noCloneEvent=!1}),t.cloneNode(!0).click()),null==g.deleteExpando){g.deleteExpando=!0;try{delete t.test}catch(e){g.deleteExpando=!1}}}(),function(){var e,t,n=k.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(g[e+"Bubbles"]=t in h)||(n.setAttribute(t,"t"),g[e+"Bubbles"]=n.attributes[t].expando===!1);n=null}();var G=/^(?:input|select|textarea)$/i,K=/^key/,X=/^(?:mouse|pointer|contextmenu)|click/,Q=/^(?:focusinfocus|focusoutblur)$/,Z=/^([^.]*)(?:\.(.+)|)$/;function ee(){return!0}function te(){return!1}function ne(){try{return k.activeElement}catch(e){}}x.event={global:{},add:function(e,t,n,i,r){var a,o,s,l,c,d,u,p,f,h,m,v=x._data(e);if(v){n.handler&&(l=n,n=l.handler,r=l.selector),n.guid||(n.guid=x.guid++),(o=v.events)||(o=v.events={}),(d=v.handle)||(d=v.handle=function(e){return typeof x===R||e&&x.event.triggered===e.type?void 0:x.event.dispatch.apply(d.elem,arguments)},d.elem=e),t=(t||"").match(O)||[""],s=t.length;while(s--)a=Z.exec(t[s])||[],f=m=a[1],h=(a[2]||"").split(".").sort(),f&&(c=x.event.special[f]||{},f=(r?c.delegateType:c.bindType)||f,c=x.event.special[f]||{},u=x.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:h.join(".")},l),(p=o[f])||(p=o[f]=[],p.delegateCount=0,c.setup&&c.setup.call(e,i,h,d)!==!1||(e.addEventListener?e.addEventListener(f,d,!1):e.attachEvent&&e.attachEvent("on"+f,d))),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,u):p.push(u),x.event.global[f]=!0);e=null}},remove:function(e,t,n,i,r){var a,o,s,l,c,d,u,p,f,h,m,v=x.hasData(e)&&x._data(e);if(v&&(d=v.events)){t=(t||"").match(O)||[""],c=t.length;while(c--)if(s=Z.exec(t[c])||[],f=m=s[1],h=(s[2]||"").split(".").sort(),f){u=x.event.special[f]||{},f=(i?u.delegateType:u.bindType)||f,p=d[f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=p.length;while(a--)o=p[a],!r&&m!==o.origType||n&&n.guid!==o.guid||s&&!s.test(o.namespace)||i&&i!==o.selector&&("**"!==i||!o.selector)||(p.splice(a,1),o.selector&&p.delegateCount--,u.remove&&u.remove.call(e,o));l&&!p.length&&(u.teardown&&u.teardown.call(e,h,v.handle)!==!1||x.removeEvent(e,f,v.handle),delete d[f])}else for(f in d)x.event.remove(e,f+t[c],n,i,!0);x.isEmptyObject(d)&&(delete v.handle,x._removeData(e,"events"))}},trigger:function(e,t,n,i){var r,a,o,s,l,c,d,u=[n||k],p=v.call(e,"type")?e.type:e,f=v.call(e,"namespace")?e.namespace.split("."):[];if(o=c=n=n||k,3!==n.nodeType&&8!==n.nodeType&&!Q.test(p+x.event.triggered)&&(p.indexOf(".")>=0&&(f=p.split("."),p=f.shift(),f.sort()),a=p.indexOf(":")<0&&"on"+p,e=e[x.expando]?e:new x.Event(p,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),l=x.event.special[p]||{},i||!l.trigger||l.trigger.apply(n,t)!==!1)){if(!i&&!l.noBubble&&!x.isWindow(n)){for(s=l.delegateType||p,Q.test(s+p)||(o=o.parentNode);o;o=o.parentNode)u.push(o),c=o;c===(n.ownerDocument||k)&&u.push(c.defaultView||c.parentWindow||h)}d=0;while((o=u[d++])&&!e.isPropagationStopped())e.type=d>1?s:l.bindType||p,r=(x._data(o,"events")||{})[e.type]&&x._data(o,"handle"),r&&r.apply(o,t),r=a&&o[a],r&&r.apply&&x.acceptData(o)&&(e.result=r.apply(o,t),e.result===!1&&e.preventDefault());if(e.type=p,!i&&!e.isDefaultPrevented()&&(!l._default||l._default.apply(u.pop(),t)===!1)&&x.acceptData(n)&&a&&n[p]&&!x.isWindow(n)){c=n[a],c&&(n[a]=null),x.event.triggered=p;try{n[p]()}catch(e){}x.event.triggered=void 0,c&&(n[a]=c)}return e.result}},dispatch:function(e){e=x.event.fix(e);var t,n,i,r,a,o=[],s=d.call(arguments),l=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){o=x.event.handlers.call(this,e,l),t=0;while((r=o[t++])&&!e.isPropagationStopped()){e.currentTarget=r.elem,a=0;while((i=r.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,n=((x.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,a,o=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(r=[],a=0;s>a;a++)i=t[a],n=i.selector+" ",void 0===r[n]&&(r[n]=i.needsContext?x(n,this).index(l)>=0:x.find(n,this,null,[l]).length),r[n]&&r.push(i);r.length&&o.push({elem:l,handlers:r})}return s<t.length&&o.push({elem:this,handlers:t.slice(s)}),o},fix:function(e){if(e[x.expando])return e;var t,n,i,r=e.type,a=e,o=this.fixHooks[r];o||(this.fixHooks[r]=o=X.test(r)?this.mouseHooks:K.test(r)?this.keyHooks:{}),i=o.props?this.props.concat(o.props):this.props,e=new x.Event(a),t=i.length;while(t--)n=i[t],e[n]=a[n];return e.target||(e.target=a.srcElement||k),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,a=t.button,o=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||k,r=i.documentElement,n=i.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ne()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===ne()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?x.event.trigger(r,null,t):x.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=k.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var i="on"+t;e.detachEvent&&(typeof e[i]===R&&(e[i]=null),e.detachEvent(i,n))},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?ee:te):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),void(this[x.expando]=!0)):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:te,isPropagationStopped:te,isImmediatePropagationStopped:te,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ee,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ee,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ee,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,a){x.event.special[e]={delegateType:a,bindType:a,handle:function(e){var t,n=this,i=e.relatedTarget,r=e.handleObj;return(!i||i!==n&&!x.contains(n,i))&&(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=a),t}}}),g.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:void x.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=x.nodeName(t,"input")||x.nodeName(t,"button")?t.form:void 0;n&&!x._data(n,"submitBubbles")&&(x.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),x._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:void x.event.remove(this,"._submit")}}),g.changeBubbles||(x.event.special.change={setup:function(){return G.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):void x.event.add(this,"beforeactivate._change",function(e){var t=e.target;G.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return x.event.remove(this,"._change"),!G.test(this.nodeName)}}),g.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(n,i){var r=function(e){x.event.simulate(i,e.target,x.event.fix(e),!0)};x.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=x._data(e,i);t||e.addEventListener(n,r,!0),x._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=x._data(e,i)-1;t?x._data(e,i,t):(e.removeEventListener(n,r,!0),x._removeData(e,i))}}}),x.fn.extend({on:function(e,t,n,i,r){var a,o;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(a in e)this.on(a,t,n,e[a],r);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),i===!1)i=te;else if(!i)return this;return 1===r&&(o=i,i=function(e){return x().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=te),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):void 0}});function ie(e){var t=re.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var re="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ae=/ jQuery\d+="(?:null|\d+)"/g,oe=new RegExp("<(?:"+re+")[\\s/>]","i"),se=/^\s+/,le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ce=/<([\w:]+)/,de=/<tbody/i,ue=/<|&#?\w+;/,pe=/<(?:script|style|link)/i,fe=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^$|\/(?:java|ecma)script/i,me=/^true\/(.*)/,ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ge={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:g.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},_e=ie(k),ye=_e.appendChild(k.createElement("div"));ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;function be(e,t){var n,i,r=0,a=typeof e.getElementsByTagName!==R?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==R?e.querySelectorAll(t||"*"):void 0;if(!a)for(a=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||x.nodeName(i,t)?a.push(i):x.merge(a,be(i,t));return void 0===t||t&&x.nodeName(e,t)?x.merge([e],a):a}function we(e){J.test(e.type)&&(e.defaultChecked=e.checked)}function Ce(e,t){return x.nodeName(e,"table")&&x.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function xe(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function ke(e){var t=me.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Se(e,t){for(var n,i=0;null!=(n=e[i]);i++)x._data(n,"globalEval",!t||x._data(t[i],"globalEval"))}function De(e,t){if(1===t.nodeType&&x.hasData(e)){var n,i,r,a=x._data(e),o=x._data(t,a),s=a.events;if(s){delete o.handle,o.events={};for(n in s)for(i=0,r=s[n].length;r>i;i++)x.event.add(t,n,s[n][i])}o.data&&(o.data=x.extend({},o.data))}}function Te(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!g.noCloneEvent&&t[x.expando]){r=x._data(t);for(i in r.events)x.removeEvent(t,i,r.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(xe(t).text=e.text,ke(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),g.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&J.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.extend({clone:function(e,t,n){var i,r,a,o,s,l=x.contains(e.ownerDocument,e);if(g.html5Clone||x.isXMLDoc(e)||!oe.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(ye.innerHTML=e.outerHTML,ye.removeChild(a=ye.firstChild)),!(g.noCloneEvent&&g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(i=be(a),s=be(e),o=0;null!=(r=s[o]);++o)i[o]&&Te(r,i[o]);if(t)if(n)for(s=s||be(e),i=i||be(a),o=0;null!=(r=s[o]);o++)De(r,i[o]);else De(e,a);return i=be(a,"script"),i.length>0&&Se(i,!l&&be(e,"script")),i=s=r=null,a},buildFragment:function(e,t,n,i){for(var r,a,o,s,l,c,d,u=e.length,p=ie(t),f=[],h=0;u>h;h++)if(a=e[h],a||0===a)if("object"===x.type(a))x.merge(f,a.nodeType?[a]:a);else if(ue.test(a)){s=s||p.appendChild(t.createElement("div")),l=(ce.exec(a)||["",""])[1].toLowerCase(),d=ge[l]||ge._default,s.innerHTML=d[1]+a.replace(le,"<$1></$2>")+d[2],r=d[0];while(r--)s=s.lastChild;if(!g.leadingWhitespace&&se.test(a)&&f.push(t.createTextNode(se.exec(a)[0])),!g.tbody){a="table"!==l||de.test(a)?"<table>"!==d[1]||de.test(a)?0:s:s.firstChild,r=a&&a.childNodes.length;while(r--)x.nodeName(c=a.childNodes[r],"tbody")&&!c.childNodes.length&&a.removeChild(c)}x.merge(f,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=p.lastChild}else f.push(t.createTextNode(a));s&&p.removeChild(s),g.appendChecked||x.grep(be(f,"input"),we),h=0;while(a=f[h++])if((!i||-1===x.inArray(a,i))&&(o=x.contains(a.ownerDocument,a),s=be(p.appendChild(a),"script"),o&&Se(s),n)){r=0;while(a=s[r++])he.test(a.type||"")&&n.push(a)}return s=null,p},cleanData:function(e,t){for(var n,i,r,a,o=0,s=x.expando,l=x.cache,c=g.deleteExpando,d=x.event.special;null!=(n=e[o]);o++)if((t||x.acceptData(n))&&(r=n[s],a=r&&l[r])){if(a.events)for(i in a.events)d[i]?x.event.remove(n,i):x.removeEvent(n,i,a.handle);l[r]&&(delete l[r],c?delete n[s]:typeof n.removeAttribute!==R?n.removeAttribute(s):n[s]=null,u.push(r))}}}),x.fn.extend({text:function(e){return V(this,function(e){return void 0===e?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||k).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ce(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ce(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?x.filter(e,this):this,r=0;null!=(n=i[r]);r++)t||1!==n.nodeType||x.cleanData(be(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&Se(be(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(be(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return V(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ae,""):void 0;if(!("string"!=typeof e||pe.test(e)||!g.htmlSerialize&&oe.test(e)||!g.leadingWhitespace&&se.test(e)||ge[(ce.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(le,"<$1></$2>");try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,x.cleanData(be(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(n,i){n=m.apply([],n);var e,t,r,a,o,s,l=0,c=this.length,d=this,u=c-1,p=n[0],f=x.isFunction(p);if(f||c>1&&"string"==typeof p&&!g.checkClone&&fe.test(p))return this.each(function(e){var t=d.eq(e);f&&(n[0]=p.call(this,e,t.html())),t.domManip(n,i)});if(c&&(s=x.buildFragment(n,this[0].ownerDocument,!1,this),e=s.firstChild,1===s.childNodes.length&&(s=e),e)){for(a=x.map(be(s,"script"),xe),r=a.length;c>l;l++)t=s,l!==u&&(t=x.clone(t,!0,!0),r&&x.merge(a,be(t,"script"))),i.call(this[l],t,l);if(r)for(o=a[a.length-1].ownerDocument,x.map(a,ke),l=0;r>l;l++)t=a[l],he.test(t.type||"")&&!x._data(t,"globalEval")&&x.contains(o,t)&&(t.src?x._evalUrl&&x._evalUrl(t.src):x.globalEval((t.text||t.textContent||t.innerHTML||"").replace(ve,"")));s=e=null}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){x.fn[e]=function(e){for(var t,n=0,i=[],r=x(e),a=r.length-1;a>=n;n++)t=n===a?this:this.clone(!0),x(r[n])[o](t),s.apply(i,t.get());return this.pushStack(i)}});var $e,Ee={};function Oe(e,t){var n,i=x(t.createElement(e)).appendTo(t.body),r=h.getDefaultComputedStyle&&(n=h.getDefaultComputedStyle(i[0]))?n.display:x.css(i[0],"display");return i.detach(),r}function Ae(e){var t=k,n=Ee[e];return n||(n=Oe(e,t),"none"!==n&&n||($e=($e||x("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=($e[0].contentWindow||$e[0].contentDocument).document,t.write(),t.close(),n=Oe(e,t),$e.detach()),Ee[e]=n),n}!function(){var i;g.shrinkWrapBlocks=function(){if(null!=i)return i;i=!1;var e,t,n;return t=k.getElementsByTagName("body")[0],t&&t.style?(e=k.createElement("div"),n=k.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),typeof e.style.zoom!==R&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(k.createElement("div")).style.width="5px",i=3!==e.offsetWidth),t.removeChild(n),i):void 0}}();var Pe=/^margin/,Me=new RegExp("^("+Y+")(?!px)[a-z%]+$","i"),Ie,Ne,Re=/^(top|right|bottom|left)$/;h.getComputedStyle?(Ie=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Ne=function(e,t,n){var i,r,a,o,s=e.style;return n=n||Ie(e),o=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==o||x.contains(e.ownerDocument,e)||(o=x.style(e,t)),Me.test(o)&&Pe.test(t)&&(i=s.width,r=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=i,s.minWidth=r,s.maxWidth=a)),void 0===o?o:o+""}):k.documentElement.currentStyle&&(Ie=function(e){return e.currentStyle},Ne=function(e,t,n){var i,r,a,o,s=e.style;return n=n||Ie(e),o=n?n[t]:void 0,null==o&&s&&s[t]&&(o=s[t]),Me.test(o)&&!Re.test(t)&&(i=s.left,r=e.runtimeStyle,a=r&&r.left,a&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":o,o=s.pixelLeft+"px",s.left=i,a&&(r.left=a)),void 0===o?o:o+""||"auto"});function Fe(t,n){return{get:function(){var e=t();if(null!=e)return e?void delete this.get:(this.get=n).apply(this,arguments)}}}!function(){var e,t,n,r,a,o,s;if(e=k.createElement("div"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=e.getElementsByTagName("a")[0],t=n&&n.style){t.cssText="float:left;opacity:.5",g.opacity="0.5"===t.opacity,g.cssFloat=!!t.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===e.style.backgroundClip,g.boxSizing=""===t.boxSizing||""===t.MozBoxSizing||""===t.WebkitBoxSizing,x.extend(g,{reliableHiddenOffsets:function(){return null==o&&i(),o},boxSizingReliable:function(){return null==a&&i(),a},pixelPosition:function(){return null==r&&i(),r},reliableMarginRight:function(){return null==s&&i(),s}});function i(){var e,t,n,i;t=k.getElementsByTagName("body")[0],t&&t.style&&(e=k.createElement("div"),n=k.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r=a=!1,s=!0,h.getComputedStyle&&(r="1%"!==(h.getComputedStyle(e,null)||{}).top,a="4px"===(h.getComputedStyle(e,null)||{width:"4px"}).width,i=e.appendChild(k.createElement("div")),i.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",e.style.width="1px",s=!parseFloat((h.getComputedStyle(i,null)||{}).marginRight)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=e.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===i[0].offsetHeight,o&&(i[0].style.display="",i[1].style.display="none",o=0===i[0].offsetHeight),t.removeChild(n))}}}(),x.swap=function(e,t,n,i){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];r=n.apply(e,i||[]);for(a in t)e.style[a]=o[a];return r};var Le=/alpha\([^)]*\)/i,je=/opacity\s*=\s*([^)]*)/,He=/^(none|table(?!-c[ea]).+)/,qe=new RegExp("^("+Y+")(.*)$","i"),Be=new RegExp("^([+-])=("+Y+")","i"),ze={position:"absolute",visibility:"hidden",display:"block"},Ye={letterSpacing:"0",fontWeight:"400"},Ue=["Webkit","O","Moz","ms"];function We(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,r=Ue.length;while(r--)if(t=Ue[r]+n,t in e)return t;return i}function Ve(e,t){for(var n,i,r,a=[],o=0,s=e.length;s>o;o++)i=e[o],i.style&&(a[o]=x._data(i,"olddisplay"),n=i.style.display,t?(a[o]||"none"!==n||(i.style.display=""),""===i.style.display&&W(i)&&(a[o]=x._data(i,"olddisplay",Ae(i.nodeName)))):(r=W(i),(n&&"none"!==n||!r)&&x._data(i,"olddisplay",r?n:x.css(i,"display"))));for(o=0;s>o;o++)i=e[o],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?a[o]||"":"none"));return e}function Je(e,t,n){var i=qe.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function Ge(e,t,n,i,r){for(var a=n===(i?"border":"content")?4:"width"===t?1:0,o=0;4>a;a+=2)"margin"===n&&(o+=x.css(e,n+U[a],!0,r)),i?("content"===n&&(o-=x.css(e,"padding"+U[a],!0,r)),"margin"!==n&&(o-=x.css(e,"border"+U[a]+"Width",!0,r))):(o+=x.css(e,"padding"+U[a],!0,r),"padding"!==n&&(o+=x.css(e,"border"+U[a]+"Width",!0,r)));return o}function Ke(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,a=Ie(e),o=g.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,a);if(0>=r||null==r){if(r=Ne(e,t,a),(0>r||null==r)&&(r=e.style[t]),Me.test(r))return r;i=o&&(g.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+Ge(e,t,n||(o?"border":"content"),i,a)+"px"}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ne(e,"opacity");return""===n?"1":n}}}},cssNumber:{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:g.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,o,s=x.camelCase(t),l=e.style;if(t=x.cssProps[s]||(x.cssProps[s]=We(l,s)),o=x.cssHooks[t]||x.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:l[t];if(a=typeof n,"string"===a&&(r=Be.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(x.css(e,t)),a="number"),null!=n&&n===n&&("number"!==a||x.cssNumber[s]||(n+="px"),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(o&&"set"in o&&void 0===(n=o.set(e,n,i)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,i){var r,a,o,s=x.camelCase(t);return t=x.cssProps[s]||(x.cssProps[s]=We(e.style,s)),o=x.cssHooks[t]||x.cssHooks[s],o&&"get"in o&&(a=o.get(e,!0,n)),void 0===a&&(a=Ne(e,t,i)),"normal"===a&&t in Ye&&(a=Ye[t]),""===n||n?(r=parseFloat(a),n===!0||x.isNumeric(r)?r||0:a):a}}),x.each(["height","width"],function(e,r){x.cssHooks[r]={get:function(e,t,n){return t?He.test(x.css(e,"display"))&&0===e.offsetWidth?x.swap(e,ze,function(){return Ke(e,r,n)}):Ke(e,r,n):void 0},set:function(e,t,n){var i=n&&Ie(e);return Je(e,t,n?Ge(e,r,n,g.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),g.opacity||(x.cssHooks.opacity={get:function(e,t){return je.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(a.replace(Le,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=Le.test(a)?a.replace(Le,r):a+" "+r)}}),x.cssHooks.marginRight=Fe(g.reliableMarginRight,function(e,t){return t?x.swap(e,{display:"inline-block"},Ne,[e,"marginRight"]):void 0}),x.each({margin:"",padding:"",border:"Width"},function(r,a){x.cssHooks[r+a]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];4>t;t++)n[r+U[t]+a]=i[t]||i[t-2]||i[0];return n}},Pe.test(r)||(x.cssHooks[r+a].set=Je)}),x.fn.extend({css:function(e,t){return V(this,function(e,t,n){var i,r,a={},o=0;if(x.isArray(t)){for(i=Ie(e),r=t.length;r>o;o++)a[t[o]]=x.css(e,t[o],!1,i);return a}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return Ve(this,!0)},hide:function(){return Ve(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){W(this)?x(this).show():x(this).hide()})}});function Xe(e,t,n,i,r){return new Xe.prototype.init(e,t,n,i,r)}x.Tween=Xe,Xe.prototype={constructor:Xe,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(x.cssNumber[n]?"":"px")},cur:function(){var e=Xe.propHooks[this.prop];return e&&e.get?e.get(this):Xe.propHooks._default.get(this)},run:function(e){var t,n=Xe.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Xe.propHooks._default.set(this),this}},Xe.prototype.init.prototype=Xe.prototype,Xe.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Xe.propHooks.scrollTop=Xe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.fx=Xe.prototype.init,x.fx.step={};var Qe,Ze,et=/^(?:toggle|show|hide)$/,tt=new RegExp("^(?:([+-])=|)("+Y+")([a-z%]*)$","i"),nt=/queueHooks$/,it=[lt],rt={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),r=tt.exec(t),a=r&&r[3]||(x.cssNumber[e]?"":"px"),o=(x.cssNumber[e]||"px"!==a&&+i)&&tt.exec(x.css(n.elem,e)),s=1,l=20;if(o&&o[3]!==a){a=a||o[3],r=r||[],o=+i||1;do{s=s||".5",o/=s,x.style(n.elem,e,o+a)}while(s!==(s=n.cur()/i)&&1!==s&&--l)}return r&&(o=n.start=+o||+i||0,n.unit=a,n.end=r[1]?o+(r[1]+1)*r[2]:+r[2]),n}]};function at(){return setTimeout(function(){Qe=void 0}),Qe=x.now()}function ot(e,t){var n,i={height:e},r=0;for(t=t?1:0;4>r;r+=2-t)n=U[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function st(e,t,n){for(var i,r=(rt[t]||[]).concat(rt["*"]),a=0,o=r.length;o>a;a++)if(i=r[a].call(n,t,e))return i}function lt(t,e,n){var i,r,a,o,s,l,c,d,u=this,p={},f=t.style,h=t.nodeType&&W(t),m=x._data(t,"fxshow");n.queue||(s=x._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=x.css(t,"display"),d="none"===c?x._data(t,"olddisplay")||Ae(t.nodeName):c,"inline"===d&&"none"===x.css(t,"float")&&(g.inlineBlockNeedsLayout&&"inline"!==Ae(t.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",g.shrinkWrapBlocks()||u.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in e)if(r=e[i],et.exec(r)){if(delete e[i],a=a||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;h=!0}p[i]=m&&m[i]||x.style(t,i)}else c=void 0;if(x.isEmptyObject(p))"inline"===("none"===c?Ae(t.nodeName):c)&&(f.display=c);else{m?"hidden"in m&&(h=m.hidden):m=x._data(t,"fxshow",{}),a&&(m.hidden=!h),h?x(t).show():u.done(function(){x(t).hide()}),u.done(function(){var e;x._removeData(t,"fxshow");for(e in p)x.style(t,e,p[e])});for(i in p)o=st(h?m[i]:0,i,u),i in m||(m[i]=o.start,h&&(o.end=o.start,o.start="width"===i||"height"===i?1:0))}}function ct(e,t){var n,i,r,a,o;for(n in e)if(i=x.camelCase(n),r=t[i],a=e[n],x.isArray(a)&&(r=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),o=x.cssHooks[i],o&&"expand"in o){a=o.expand(a),delete e[i];for(n in a)n in e||(e[n]=a[n],t[n]=r)}else t[i]=r}function dt(o,e,t){var n,s,i=0,r=it.length,l=x.Deferred().always(function(){delete a.elem}),a=function(){if(s)return!1;for(var e=Qe||at(),t=Math.max(0,c.startTime+c.duration-e),n=t/c.duration||0,i=1-n,r=0,a=c.tweens.length;a>r;r++)c.tweens[r].run(i);return l.notifyWith(o,[c,i,t]),1>i&&a?t:(l.resolveWith(o,[c]),!1)},c=l.promise({elem:o,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{}},t),originalProperties:e,originalOptions:t,startTime:Qe||at(),duration:t.duration,tweens:[],createTween:function(e,t){var n=x.Tween(o,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var t=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;n>t;t++)c.tweens[t].run(1);return e?l.resolveWith(o,[c,e]):l.rejectWith(o,[c,e]),this}}),d=c.props;for(ct(d,c.opts.specialEasing);r>i;i++)if(n=it[i].call(c,o,d,c.opts))return n;return x.map(d,st,c),x.isFunction(c.opts.start)&&c.opts.start.call(o,c),x.fx.timer(x.extend(a,{elem:o,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}x.Animation=x.extend(dt,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;r>i;i++)n=e[i],rt[n]=rt[n]||[],rt[n].unshift(t)},prefilter:function(e,t){t?it.unshift(e):it.push(e)}}),x.speed=function(e,t,n){var i=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return i.duration=x.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in x.fx.speeds?x.fx.speeds[i.duration]:x.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){x.isFunction(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(e,t,n,i){return this.filter(W).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=x.isEmptyObject(t),a=x.speed(e,n,i),o=function(){var e=dt(this,x.extend({},t),a);(r||x._data(this,"finish"))&&e.stop(!0)};return o.finish=o,r||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(r,e,a){var o=function(e){var t=e.stop;delete e.stop,t(a)};return"string"!=typeof r&&(a=e,e=r,r=void 0),e&&r!==!1&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=x.timers,i=x._data(this);if(t)i[t]&&i[t].stop&&o(i[t]);else for(t in i)i[t]&&i[t].stop&&nt.test(t)&&o(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(a),e=!1,n.splice(t,1));(e||!a)&&x.dequeue(this,r)})},finish:function(o){return o!==!1&&(o=o||"fx"),this.each(function(){var e,t=x._data(this),n=t[o+"queue"],i=t[o+"queueHooks"],r=x.timers,a=n?n.length:0;for(t.finish=!0,x.queue(this,o,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===o&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;a>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),x.each(["toggle","show","hide"],function(e,i){var r=x.fn[i];x.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(ot(i,!0),e,t,n)}}),x.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){x.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),x.timers=[],x.fx.tick=function(){var e,t=x.timers,n=0;for(Qe=x.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||x.fx.stop(),Qe=void 0},x.fx.timer=function(e){x.timers.push(e),e()?x.fx.start():x.timers.pop()},x.fx.interval=13,x.fx.start=function(){Ze||(Ze=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Ze),Ze=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(i,e){return i=x.fx?x.fx.speeds[i]||i:i,e=e||"fx",this.queue(e,function(e,t){var n=setTimeout(e,i);t.stop=function(){clearTimeout(n)}})},function(){var e,t,n,i,r;t=k.createElement("div"),t.setAttribute("className","t"),t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=t.getElementsByTagName("a")[0],n=k.createElement("select"),r=n.appendChild(k.createElement("option")),e=t.getElementsByTagName("input")[0],i.style.cssText="top:1px",g.getSetAttribute="t"!==t.className,g.style=/top/.test(i.getAttribute("style")),g.hrefNormalized="/a"===i.getAttribute("href"),g.checkOn=!!e.value,g.optSelected=r.selected,g.enctype=!!k.createElement("form").enctype,n.disabled=!0,g.optDisabled=!r.disabled,e=k.createElement("input"),e.setAttribute("value",""),g.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),g.radioValue="t"===e.value}();var ut=/\r/g;x.fn.extend({val:function(n){var i,e,r,t=this[0];{if(arguments.length)return r=x.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(t=r?n.call(this,e,x(this).val()):n,null==t?t="":"number"==typeof t?t+="":x.isArray(t)&&(t=x.map(t,function(e){return null==e?"":e+""})),i=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],i&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))});if(t)return i=x.valHooks[t.type]||x.valHooks[t.nodeName.toLowerCase()],i&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:(e=t.value,"string"==typeof e?e.replace(ut,""):null==e?"":e)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:x.trim(x.text(e))}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,a="select-one"===e.type||0>r,o=a?null:[],s=a?r+1:i.length,l=0>r?s:a?r:0;s>l;l++)if(n=i[l],!(!n.selected&&l!==r||(g.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;o.push(t)}return o},set:function(e,t){var n,i,r=e.options,a=x.makeArray(t),o=r.length;while(o--)if(i=r[o],x.inArray(x.valHooks.option.get(i),a)>=0)try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:void 0}},g.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var pt,ft,ht=x.expr.attrHandle,mt=/^(?:checked|selected)$/i,vt=g.getSetAttribute,gt=g.input;x.fn.extend({attr:function(e,t){return V(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===R?x.prop(e,t,n):(1===a&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.bool.test(t)?ft:pt)),void 0===n?i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=x.find.attr(e,t),null==r?void 0:r):null!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void x.removeAttr(e,t))},removeAttr:function(e,t){var n,i,r=0,a=t&&t.match(O);if(a&&1===e.nodeType)while(n=a[r++])i=x.propFix[n]||n,x.expr.match.bool.test(n)?gt&&vt||!mt.test(n)?e[i]=!1:e[x.camelCase("default-"+n)]=e[i]=!1:x.attr(e,n,""),e.removeAttribute(vt?n:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),ft={set:function(e,t,n){return t===!1?x.removeAttr(e,n):gt&&vt||!mt.test(n)?e.setAttribute(!vt&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var a=ht[t]||x.find.attr;ht[t]=gt&&vt||!mt.test(t)?function(e,t,n){var i,r;return n||(r=ht[t],ht[t]=i,i=null!=a(e,t,n)?t.toLowerCase():null,ht[t]=r),i}:function(e,t,n){return n?void 0:e[x.camelCase("default-"+t)]?t.toLowerCase():null}}),gt&&vt||(x.attrHooks.value={set:function(e,t,n){return x.nodeName(e,"input")?void(e.defaultValue=t):pt&&pt.set(e,t,n)}}),vt||(pt={set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},ht.id=ht.name=ht.coords=function(e,t,n){var i;return n?void 0:(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:pt.set},x.attrHooks.contenteditable={set:function(e,t,n){pt.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,t){return""===t?(e.setAttribute(n,"auto"),t):void 0}}})),g.style||(x.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var _t=/^(?:input|select|textarea|button|object)$/i,yt=/^(?:a|area)$/i;x.fn.extend({prop:function(e,t){return V(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),x.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var i,r,a,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return a=1!==o||!x.isXMLDoc(e),a&&(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}}}),g.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),g.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),g.enctype||(x.propFix.enctype="encoding");var bt=/[\t\r\n\f]/g;x.fn.extend({addClass:function(t){var e,n,i,r,a,o,s=0,l=this.length,c="string"==typeof t&&t;if(x.isFunction(t))return this.each(function(e){x(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(O)||[];l>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(bt," "):" ")){a=0;while(r=e[a++])i.indexOf(" "+r+" ")<0&&(i+=r+" ");o=x.trim(i),n.className!==o&&(n.className=o)}return this},removeClass:function(t){var e,n,i,r,a,o,s=0,l=this.length,c=0===arguments.length||"string"==typeof t&&t;if(x.isFunction(t))return this.each(function(e){x(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(O)||[];l>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(bt," "):"")){a=0;while(r=e[a++])while(i.indexOf(" "+r+" ")>=0)i=i.replace(" "+r+" "," ");o=t?x.trim(i):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(r,t){var a=typeof r;return"boolean"==typeof t&&"string"===a?t?this.addClass(r):this.removeClass(r):this.each(x.isFunction(r)?function(e){x(this).toggleClass(r.call(this,e,this.className,t),t)}:function(){if("string"===a){var e,t=0,n=x(this),i=r.match(O)||[];while(e=i[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else(a===R||"boolean"===a)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||r===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(bt," ").indexOf(t)>=0)return!0;return!1}}),x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){x.fn[n]=function(e,t){return arguments.length>0?this.on(n,null,e,t):this.trigger(n)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var wt=x.now(),Ct=/\?/,xt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;x.parseJSON=function(e){if(h.JSON&&h.JSON.parse)return h.JSON.parse(e+"");var r,a=null,t=x.trim(e+"");return t&&!x.trim(t.replace(xt,function(e,t,n,i){return r&&t&&(a=0),0===a?e:(r=n||t,a+=!i-!n,"")}))?Function("return "+t)():x.error("Invalid JSON: "+e)},x.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{h.DOMParser?(n=new DOMParser,t=n.parseFromString(e,"text/xml")):(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var kt,St,Dt=/#.*$/,Tt=/([?&])_=[^&]*/,$t=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Et=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ot=/^(?:GET|HEAD)$/,At=/^\/\//,Pt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Mt={},It={},Nt="*/".concat("*");try{St=location.href}catch(e){St=k.createElement("a"),St.href="",St=St.href}kt=Pt.exec(St.toLowerCase())||[];function Rt(a){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match(O)||[];if(x.isFunction(t))while(n=r[i++])"+"===n.charAt(0)?(n=n.slice(1)||"*",(a[n]=a[n]||[]).unshift(t)):(a[n]=a[n]||[]).push(t)}}function Ft(t,r,a,o){var s={},l=t===It;function c(e){var i;return s[e]=!0,x.each(t[e]||[],function(e,t){var n=t(r,a,o);return"string"!=typeof n||l||s[n]?l?!(i=n):void 0:(r.dataTypes.unshift(n),c(n),!1)}),i}return c(r.dataTypes[0])||!s["*"]&&c("*")}function Lt(e,t){var n,i,r=x.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&x.extend(!0,e,n),e}function jt(e,t,n){var i,r,a,o,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)a=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}i||(i=o)}a=a||i}return a?(a!==l[0]&&l.unshift(a),n[a]):void 0}function Ht(e,t,n,i){var r,a,o,s,l,c={},d=e.dataTypes.slice();if(d[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];a=d.shift();while(a)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(o=c[l+" "+a]||c["* "+a],!o)for(r in c)if(s=r.split(" "),s[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){o===!0?o=c[r]:c[r]!==!0&&(a=s[0],d.unshift(s[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St,type:"GET",isLocal:Et.test(kt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Lt(Lt(e,x.ajaxSettings),t):Lt(x.ajaxSettings,e)},ajaxPrefilter:Rt(Mt),ajaxTransport:Rt(It),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,d,u,p,f,h,r,m=x.ajaxSetup({},t),v=m.context||m,g=m.context&&(v.nodeType||v.jquery)?x(v):x.event,_=x.Deferred(),y=x.Callbacks("once memory"),b=m.statusCode||{},a={},o={},w=0,s="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!r){r={};while(t=$t.exec(u))r[t[1].toLowerCase()]=t[2]}t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?u:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=o[n]=o[n]||e,a[e]=t),this},overrideMimeType:function(e){return w||(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>w)for(t in e)b[t]=[b[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||s;return h&&h.abort(t),l(0,t),this}};if(_.promise(C).complete=y.add,C.success=C.done,C.error=C.fail,m.url=((e||m.url||St)+"").replace(Dt,"").replace(At,kt[1]+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=x.trim(m.dataType||"*").toLowerCase().match(O)||[""],null==m.crossDomain&&(n=Pt.exec(m.url.toLowerCase()),m.crossDomain=!(!n||n[1]===kt[1]&&n[2]===kt[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(kt[3]||("http:"===kt[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=x.param(m.data,m.traditional)),Ft(Mt,m,t,C),2===w)return C;f=m.global,f&&0===x.active++&&x.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Ot.test(m.type),d=m.url,m.hasContent||(m.data&&(d=m.url+=(Ct.test(d)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=Tt.test(d)?d.replace(Tt,"$1_="+wt++):d+(Ct.test(d)?"&":"?")+"_="+wt++)),m.ifModified&&(x.lastModified[d]&&C.setRequestHeader("If-Modified-Since",x.lastModified[d]),x.etag[d]&&C.setRequestHeader("If-None-Match",x.etag[d])),(m.data&&m.hasContent&&m.contentType!==!1||t.contentType)&&C.setRequestHeader("Content-Type",m.contentType),C.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Nt+"; q=0.01":""):m.accepts["*"]);for(i in m.headers)C.setRequestHeader(i,m.headers[i]);if(m.beforeSend&&(m.beforeSend.call(v,C,m)===!1||2===w))return C.abort();s="abort";for(i in{success:1,error:1,complete:1})C[i](m[i]);if(h=Ft(It,m,t,C)){C.readyState=1,f&&g.trigger("ajaxSend",[C,m]),m.async&&m.timeout>0&&(p=setTimeout(function(){C.abort("timeout")},m.timeout));try{w=1,h.send(a,l)}catch(e){if(!(2>w))throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,i){var r,a,o,s,l,c=t;2!==w&&(w=2,p&&clearTimeout(p),h=void 0,u=i||"",C.readyState=e>0?4:0,r=e>=200&&300>e||304===e,n&&(s=jt(m,C,n)),s=Ht(m,s,C,r),r?(m.ifModified&&(l=C.getResponseHeader("Last-Modified"),l&&(x.lastModified[d]=l),l=C.getResponseHeader("etag"),l&&(x.etag[d]=l)),204===e||"HEAD"===m.type?c="nocontent":304===e?c="notmodified":(c=s.state,a=s.data,o=s.error,r=!o)):(o=c,(e||!c)&&(c="error",0>e&&(e=0))),C.status=e,C.statusText=(t||c)+"",r?_.resolveWith(v,[a,c,C]):_.rejectWith(v,[C,c,o]),C.statusCode(b),b=void 0,f&&g.trigger(r?"ajaxSuccess":"ajaxError",[C,m,r?a:o]),y.fireWith(v,[C,c]),f&&(g.trigger("ajaxComplete",[C,m]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,r){x[r]=function(e,t,n,i){return x.isFunction(t)&&(i=i||n,n=t,t=void 0),x.ajax({url:e,type:r,dataType:i,data:t,success:n})}}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x._evalUrl=function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(t){if(x.isFunction(t))return this.each(function(e){x(this).wrapAll(t.call(this,e))});if(this[0]){var e=x(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return this.each(x.isFunction(n)?function(e){x(this).wrapInner(n.call(this,e))}:function(){var e=x(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=x.isFunction(t);return this.each(function(e){x(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}}),x.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!g.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)};var qt=/%20/g,Bt=/\[\]$/,zt=/\r?\n/g,Yt=/^(?:submit|button|image|reset|file)$/i,Ut=/^(?:input|select|textarea|keygen)/i;function Wt(n,e,i,r){var t;if(x.isArray(e))x.each(e,function(e,t){i||Bt.test(n)?r(n,t):Wt(n+"["+("object"==typeof t?e:"")+"]",t,i,r)});else if(i||"object"!==x.type(e))r(n,e);else for(t in e)Wt(n+"["+t+"]",e[t],i,r)}x.param=function(e,t){var n,i=[],r=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){r(this.name,this.value)});else for(n in e)Wt(n,e[n],t,r);return i.join("&").replace(qt,"+")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Ut.test(this.nodeName)&&!Yt.test(e)&&(this.checked||!J.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(zt,"\r\n")}}):{name:t.name,value:n.replace(zt,"\r\n")}}).get()}}),x.ajaxSettings.xhr=void 0!==h.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Kt()||Xt()}:Kt;var Vt=0,Jt={},Gt=x.ajaxSettings.xhr();h.ActiveXObject&&x(h).on("unload",function(){for(var e in Jt)Jt[e](void 0,!0)}),g.cors=!!Gt&&"withCredentials"in Gt,Gt=g.ajax=!!Gt,Gt&&x.ajaxTransport(function(l){if(!l.crossDomain||g.cors){var c;return{send:function(e,a){var t,o=l.xhr(),s=++Vt;if(o.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(t in l.xhrFields)o[t]=l.xhrFields[t];l.mimeType&&o.overrideMimeType&&o.overrideMimeType(l.mimeType),l.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(t in e)void 0!==e[t]&&o.setRequestHeader(t,e[t]+"");o.send(l.hasContent&&l.data||null),c=function(e,t){var n,i,r;if(c&&(t||4===o.readyState))if(delete Jt[s],c=void 0,o.onreadystatechange=x.noop,t)4!==o.readyState&&o.abort();else{r={},n=o.status,"string"==typeof o.responseText&&(r.text=o.responseText);try{i=o.statusText}catch(e){i=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=r.text?200:404}r&&a(n,i,r,o.getAllResponseHeaders())},l.async?4===o.readyState?setTimeout(c):o.onreadystatechange=Jt[s]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function Kt(){try{return new h.XMLHttpRequest}catch(e){}}function Xt(){try{return new h.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(t){if(t.crossDomain){var i,r=k.head||x("head")[0]||k.documentElement;return{send:function(e,n){i=k.createElement("script"),i.async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){(t||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||n(200,"success"))},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(void 0,!0)}}}});var Qt=[],Zt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||x.expando+"_"+wt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,a,o=e.jsonp!==!1&&(Zt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");return o||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=x.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Zt,"$1"+i):e.jsonp!==!1&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||x.error(i+" was not called"),a[0]},e.dataTypes[0]="json",r=h[i],h[i]=function(){a=arguments},n.always(function(){h[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Qt.push(i)),a&&x.isFunction(r)&&r(a[0]),a=r=void 0}),"script"):void 0}),x.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||k;var i=y.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=x.buildFragment([e],t,r),r&&r.length&&x(r).remove(),x.merge([],i.childNodes))};var en=x.fn.load;x.fn.load=function(e,t,n){if("string"!=typeof e&&en)return en.apply(this,arguments);var i,r,a,o=this,s=e.indexOf(" ");return s>=0&&(i=x.trim(e.slice(s,e.length)),e=e.slice(0,s)),x.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),o.length>0&&x.ajax({url:e,type:a,dataType:"html",data:t}).done(function(e){r=arguments,o.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){o.each(n,r||[e.responseText,t,e])}),this},x.expr.filters.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length};var tn=h.document.documentElement;function nn(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.offset={setOffset:function(e,t,n){var i,r,a,o,s,l,c,d=x.css(e,"position"),u=x(e),p={};"static"===d&&(e.style.position="relative"),s=u.offset(),a=x.css(e,"top"),l=x.css(e,"left"),c=("absolute"===d||"fixed"===d)&&x.inArray("auto",[a,l])>-1,c?(i=u.position(),o=i.top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),x.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(p.top=t.top-s.top+o),null!=t.left&&(p.left=t.left-s.left+r),"using"in t?t.using.call(e,p):u.css(p)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},r=this[0],a=r&&r.ownerDocument;if(a)return e=a.documentElement,x.contains(e,r)?(typeof r.getBoundingClientRect!==R&&(i=r.getBoundingClientRect()),n=nn(a),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===x.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(i,"marginTop",!0),left:t.left-n.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||tn;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||tn})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var a=/Y/.test(r);x.fn[t]=function(e){return V(this,function(e,t,n){var i=nn(e);return void 0===n?i?r in i?i[r]:i.document.documentElement[t]:e[t]:void(i?i.scrollTo(a?x(i).scrollLeft():n,a?n:x(i).scrollTop()):e[t]=n)},t,e,arguments.length,null)}}),x.each(["top","left"],function(e,n){x.cssHooks[n]=Fe(g.pixelPosition,function(e,t){return t?(t=Ne(e,n),Me.test(t)?x(e).position()[n]+"px":t):void 0})}),x.each({Height:"height",Width:"width"},function(a,o){x.each({padding:"inner"+a,content:o,"":"outer"+a},function(i,e){x.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(e===!0||t===!0?"margin":"border");return V(this,function(e,t,n){var i;return x.isWindow(e)?e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?x.css(e,t,r):x.style(e,t,n,r)},o,n?e:void 0,n,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var rn=h.jQuery,an=h.$;return x.noConflict=function(e){return h.$===x&&(h.$=an),e&&h.jQuery===x&&(h.jQuery=rn),x},typeof e===R&&(h.jQuery=h.$=x),x});!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){"use strict";var o=window.Slick||{};(o=function(){var r=0;return function(e,t){var n,i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(e),appendDots:c(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return c('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=c(e),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,n=c(e).data("slick")||{},i.options=c.extend({},i.defaults,t,n),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=c.proxy(i.autoPlay,i),i.autoPlayClear=c.proxy(i.autoPlayClear,i),i.autoPlayIterator=c.proxy(i.autoPlayIterator,i),i.changeSlide=c.proxy(i.changeSlide,i),i.clickHandler=c.proxy(i.clickHandler,i),i.selectHandler=c.proxy(i.selectHandler,i),i.setPosition=c.proxy(i.setPosition,i),i.swipeHandler=c.proxy(i.swipeHandler,i),i.dragHandler=c.proxy(i.dragHandler,i),i.keyHandler=c.proxy(i.keyHandler,i),i.instanceUid=r++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},o.prototype.addSlide=o.prototype.slickAdd=function(e,t,n){var i=this;if("boolean"==typeof t)n=t,t=null;else if(t<0||t>=i.slideCount)return!1;i.unload(),"number"==typeof t?0===t&&0===i.$slides.length?c(e).appendTo(i.$slideTrack):n?c(e).insertBefore(i.$slides.eq(t)):c(e).insertAfter(i.$slides.eq(t)):!0===n?c(e).prependTo(i.$slideTrack):c(e).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each(function(e,t){c(t).attr("data-slick-index",e)}),i.$slidesCache=i.$slides,i.reinit()},o.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},o.prototype.animateSlide=function(e,t){var n={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(e=-e),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:e},i.options.speed,i.options.easing,t):i.$slideTrack.animate({top:e},i.options.speed,i.options.easing,t):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),c({animStart:i.currentLeft}).animate({animStart:e},{duration:i.options.speed,easing:i.options.easing,step:function(e){e=Math.ceil(e),!1===i.options.vertical?(n[i.animType]="translate("+e+"px, 0px)",i.$slideTrack.css(n)):(n[i.animType]="translate(0px,"+e+"px)",i.$slideTrack.css(n))},complete:function(){t&&t.call()}})):(i.applyTransition(),e=Math.ceil(e),!1===i.options.vertical?n[i.animType]="translate3d("+e+"px, 0px, 0px)":n[i.animType]="translate3d(0px,"+e+"px, 0px)",i.$slideTrack.css(n),t&&setTimeout(function(){i.disableTransition(),t.call()},i.options.speed))},o.prototype.getNavTarget=function(){var e=this,t=e.options.asNavFor;return t&&null!==t&&(t=c(t).not(e.$slider)),t},o.prototype.asNavFor=function(t){var e=this.getNavTarget();null!==e&&"object"==typeof e&&e.each(function(){var e=c(this).slick("getSlick");e.unslicked||e.slideHandler(t,!0)})},o.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},o.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},o.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},o.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},o.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=c(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=c(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},o.prototype.buildDots=function(){var e,t,n=this;if(!0===n.options.dots){for(n.$slider.addClass("slick-dotted"),t=c("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)t.append(c("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=t.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},o.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){c(t).attr("data-slick-index",e).data("originalStyling",c(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?c('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),c("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},o.prototype.buildRows=function(){var e,t,n,i,r,a,o,s=this;if(i=document.createDocumentFragment(),a=s.$slider.children(),s.options.rows>1){for(o=s.options.slidesPerRow*s.options.rows,r=Math.ceil(a.length/o),e=0;e<r;e++){var l=document.createElement("div");for(t=0;t<s.options.rows;t++){var c=document.createElement("div");for(n=0;n<s.options.slidesPerRow;n++){var d=e*o+(t*s.options.slidesPerRow+n);a.get(d)&&c.appendChild(a.get(d))}l.appendChild(c)}i.appendChild(l)}s.$slider.empty().append(i),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},o.prototype.checkResponsive=function(e,t){var n,i,r,a=this,o=!1,s=a.$slider.width(),l=window.innerWidth||c(window).width();if("window"===a.respondTo?r=l:"slider"===a.respondTo?r=s:"min"===a.respondTo&&(r=Math.min(l,s)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){i=null;for(n in a.breakpoints)a.breakpoints.hasOwnProperty(n)&&(!1===a.originalSettings.mobileFirst?r<a.breakpoints[n]&&(i=a.breakpoints[n]):r>a.breakpoints[n]&&(i=a.breakpoints[n]));null!==i?null!==a.activeBreakpoint?(i!==a.activeBreakpoint||t)&&(a.activeBreakpoint=i,"unslick"===a.breakpointSettings[i]?a.unslick(i):(a.options=c.extend({},a.originalSettings,a.breakpointSettings[i]),!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e)),o=i):(a.activeBreakpoint=i,"unslick"===a.breakpointSettings[i]?a.unslick(i):(a.options=c.extend({},a.originalSettings,a.breakpointSettings[i]),!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e)),o=i):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===e&&(a.currentSlide=a.options.initialSlide),a.refresh(e),o=i),e||!1===o||a.$slider.trigger("breakpoint",[a,o])}},o.prototype.changeSlide=function(e,t){var n,i,r,a=this,o=c(e.currentTarget);switch(o.is("a")&&e.preventDefault(),o.is("li")||(o=o.closest("li")),r=a.slideCount%a.options.slidesToScroll!=0,n=r?0:(a.slideCount-a.currentSlide)%a.options.slidesToScroll,e.data.message){case"previous":i=0===n?a.options.slidesToScroll:a.options.slidesToShow-n,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide-i,!1,t);break;case"next":i=0===n?a.options.slidesToScroll:n,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide+i,!1,t);break;case"index":var s=0===e.data.index?0:e.data.index||o.index()*a.options.slidesToScroll;a.slideHandler(a.checkNavigable(s),!1,t),o.children().trigger("focus");break;default:return}},o.prototype.checkNavigable=function(e){var t,n;if(t=this.getNavigableIndexes(),n=0,e>t[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},o.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(c("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",c.proxy(e.interrupt,e,!0)).off("mouseleave.slick",c.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),c(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().off("click.slick",e.selectHandler),c(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),c(window).off("resize.slick.slick-"+e.instanceUid,e.resize),c("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),c(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},o.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",c.proxy(e.interrupt,e,!1))},o.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>1&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},o.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},o.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),c(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},o.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},o.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout(function(){n.disableTransition(e),t.call()},n.options.speed))},o.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},o.prototype.filterSlides=o.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},o.prototype.focusHandler=function(){var n=this;n.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(e){e.stopImmediatePropagation();var t=c(this);setTimeout(function(){n.options.pauseOnFocus&&(n.focussed=t.is(":focus"),n.autoPlay())},0)})},o.prototype.getCurrent=o.prototype.slickCurrentSlide=function(){return this.currentSlide},o.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++i;else for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},o.prototype.getLeft=function(e){var t,n,i,r,a=this,o=0;return a.slideOffset=0,n=a.$slides.first().outerHeight(!0),!0===a.options.infinite?(a.slideCount>a.options.slidesToShow&&(a.slideOffset=a.slideWidth*a.options.slidesToShow*-1,r=-1,!0===a.options.vertical&&!0===a.options.centerMode&&(2===a.options.slidesToShow?r=-1.5:1===a.options.slidesToShow&&(r=-2)),o=n*a.options.slidesToShow*r),a.slideCount%a.options.slidesToScroll!=0&&e+a.options.slidesToScroll>a.slideCount&&a.slideCount>a.options.slidesToShow&&(e>a.slideCount?(a.slideOffset=(a.options.slidesToShow-(e-a.slideCount))*a.slideWidth*-1,o=(a.options.slidesToShow-(e-a.slideCount))*n*-1):(a.slideOffset=a.slideCount%a.options.slidesToScroll*a.slideWidth*-1,o=a.slideCount%a.options.slidesToScroll*n*-1))):e+a.options.slidesToShow>a.slideCount&&(a.slideOffset=(e+a.options.slidesToShow-a.slideCount)*a.slideWidth,o=(e+a.options.slidesToShow-a.slideCount)*n),a.slideCount<=a.options.slidesToShow&&(a.slideOffset=0,o=0),!0===a.options.centerMode&&a.slideCount<=a.options.slidesToShow?a.slideOffset=a.slideWidth*Math.floor(a.options.slidesToShow)/2-a.slideWidth*a.slideCount/2:!0===a.options.centerMode&&!0===a.options.infinite?a.slideOffset+=a.slideWidth*Math.floor(a.options.slidesToShow/2)-a.slideWidth:!0===a.options.centerMode&&(a.slideOffset=0,a.slideOffset+=a.slideWidth*Math.floor(a.options.slidesToShow/2)),t=!1===a.options.vertical?e*a.slideWidth*-1+a.slideOffset:e*n*-1+o,!0===a.options.variableWidth&&(i=a.slideCount<=a.options.slidesToShow||!1===a.options.infinite?a.$slideTrack.children(".slick-slide").eq(e):a.$slideTrack.children(".slick-slide").eq(e+a.options.slidesToShow),t=!0===a.options.rtl?i[0]?-1*(a.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===a.options.centerMode&&(i=a.slideCount<=a.options.slidesToShow||!1===a.options.infinite?a.$slideTrack.children(".slick-slide").eq(e):a.$slideTrack.children(".slick-slide").eq(e+a.options.slidesToShow+1),t=!0===a.options.rtl?i[0]?-1*(a.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(a.$list.width()-i.outerWidth())/2)),t},o.prototype.getOption=o.prototype.slickGetOption=function(e){return this.options[e]},o.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,r=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);n<e;)r.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return r},o.prototype.getSlick=function(){return this},o.prototype.getSlideCount=function(){var n,i,r=this;return i=!0===r.options.centerMode?r.slideWidth*Math.floor(r.options.slidesToShow/2):0,!0===r.options.swipeToSlide?(r.$slideTrack.find(".slick-slide").each(function(e,t){if(t.offsetLeft-i+c(t).outerWidth()/2>-1*r.swipeLeft)return n=t,!1}),Math.abs(c(n).attr("data-slick-index")-r.currentSlide)||1):r.options.slidesToScroll},o.prototype.goTo=o.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},o.prototype.init=function(e){var t=this;c(t.$slider).hasClass("slick-initialized")||(c(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},o.prototype.initADA=function(){var n=this,i=Math.ceil(n.slideCount/n.options.slidesToShow),r=n.getNavigableIndexes().filter(function(e){return e>=0&&e<n.slideCount});n.$slides.add(n.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==n.$dots&&(n.$slides.not(n.$slideTrack.find(".slick-cloned")).each(function(e){var t=r.indexOf(e);c(this).attr({role:"tabpanel",id:"slick-slide"+n.instanceUid+e,tabindex:-1}),-1!==t&&c(this).attr({"aria-describedby":"slick-slide-control"+n.instanceUid+t})}),n.$dots.attr("role","tablist").find("li").each(function(e){var t=r[e];c(this).attr({role:"presentation"}),c(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+n.instanceUid+e,"aria-controls":"slick-slide"+n.instanceUid+t,"aria-label":e+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(n.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var e=n.currentSlide,t=e+n.options.slidesToShow;e<t;e++)n.$slides.eq(e).attr("tabindex",0);n.activateADA()},o.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},o.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(c("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&c("li",e.$dots).on("mouseenter.slick",c.proxy(e.interrupt,e,!0)).on("mouseleave.slick",c.proxy(e.interrupt,e,!1))},o.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",c.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",c.proxy(e.interrupt,e,!1)))},o.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),c(document).on(e.visibilityChange,c.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),c(window).on("orientationchange.slick.slick-"+e.instanceUid,c.proxy(e.orientationChange,e)),c(window).on("resize.slick.slick-"+e.instanceUid,c.proxy(e.resize,e)),c("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),c(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),c(e.setPosition)},o.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},o.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},o.prototype.lazyLoad=function(){function e(e){c("img[data-lazy]",e).each(function(){var e=c(this),t=c(this).attr("data-lazy"),n=c(this).attr("data-srcset"),i=c(this).attr("data-sizes")||a.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){n&&(e.attr("srcset",n),i&&e.attr("sizes",i)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),a.$slider.trigger("lazyLoaded",[a,e,t])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,e,t])},r.src=t})}var t,n,i,a=this;if(!0===a.options.centerMode?!0===a.options.infinite?i=(n=a.currentSlide+(a.options.slidesToShow/2+1))+a.options.slidesToShow+2:(n=Math.max(0,a.currentSlide-(a.options.slidesToShow/2+1)),i=a.options.slidesToShow/2+1+2+a.currentSlide):(n=a.options.infinite?a.options.slidesToShow+a.currentSlide:a.currentSlide,i=Math.ceil(n+a.options.slidesToShow),!0===a.options.fade&&(n>0&&n--,i<=a.slideCount&&i++)),t=a.$slider.find(".slick-slide").slice(n,i),"anticipated"===a.options.lazyLoad)for(var r=n-1,o=i,s=a.$slider.find(".slick-slide"),l=0;l<a.options.slidesToScroll;l++)r<0&&(r=a.slideCount-1),t=(t=t.add(s.eq(r))).add(s.eq(o)),r--,o++;e(t),a.slideCount<=a.options.slidesToShow?e(a.$slider.find(".slick-slide")):a.currentSlide>=a.slideCount-a.options.slidesToShow?e(a.$slider.find(".slick-cloned").slice(0,a.options.slidesToShow)):0===a.currentSlide&&e(a.$slider.find(".slick-cloned").slice(-1*a.options.slidesToShow))},o.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},o.prototype.next=o.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},o.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},o.prototype.pause=o.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},o.prototype.play=o.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},o.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&c(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},o.prototype.prev=o.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},o.prototype.preventDefault=function(e){e.preventDefault()},o.prototype.progressiveLazyLoad=function(e){e=e||1;var t,n,i,r,a,o=this,s=c("img[data-lazy]",o.$slider);s.length?(t=s.first(),n=t.attr("data-lazy"),i=t.attr("data-srcset"),r=t.attr("data-sizes")||o.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){i&&(t.attr("srcset",i),r&&t.attr("sizes",r)),t.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,t,n]),o.progressiveLazyLoad()},a.onerror=function(){e<3?setTimeout(function(){o.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,n]),o.progressiveLazyLoad())},a.src=n):o.$slider.trigger("allImagesLoaded",[o])},o.prototype.refresh=function(e){var t,n,i=this;n=i.slideCount-i.options.slidesToShow,!i.options.infinite&&i.currentSlide>n&&(i.currentSlide=n),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),t=i.currentSlide,i.destroy(!0),c.extend(i,i.initials,{currentSlide:t}),i.init(),e||i.changeSlide({data:{message:"index",index:t}},!1)},o.prototype.registerBreakpoints=function(){var e,t,n,i=this,r=i.options.responsive||null;if("array"===c.type(r)&&r.length){i.respondTo=i.options.respondTo||"window";for(e in r)if(n=i.breakpoints.length-1,r.hasOwnProperty(e)){for(t=r[e].breakpoint;n>=0;)i.breakpoints[n]&&i.breakpoints[n]===t&&i.breakpoints.splice(n,1),n--;i.breakpoints.push(t),i.breakpointSettings[t]=r[e].settings}i.breakpoints.sort(function(e,t){return i.options.mobileFirst?e-t:t-e})}},o.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&c(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},o.prototype.resize=function(){var e=this;c(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=c(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},o.prototype.removeSlide=o.prototype.slickRemove=function(e,t,n){var i=this;if(e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,i.slideCount<1||e<0||e>i.slideCount-1)return!1;i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},o.prototype.setCSS=function(e){var t,n,i=this,r={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",r[i.positionProp]=e,!1===i.transformsEnabled?i.$slideTrack.css(r):(r={},!1===i.cssTransitions?(r[i.animType]="translate("+t+", "+n+")",i.$slideTrack.css(r)):(r[i.animType]="translate3d("+t+", "+n+", 0px)",i.$slideTrack.css(r)))},o.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},o.prototype.setFade=function(){var n,i=this;i.$slides.each(function(e,t){n=i.slideWidth*e*-1,!0===i.options.rtl?c(t).css({position:"relative",right:n,top:0,zIndex:i.options.zIndex-2,opacity:0}):c(t).css({position:"relative",left:n,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},o.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},o.prototype.setOption=o.prototype.slickSetOption=function(){var e,t,n,i,r,a=this,o=!1;if("object"===c.type(arguments[0])?(n=arguments[0],o=arguments[1],r="multiple"):"string"===c.type(arguments[0])&&(n=arguments[0],i=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)a.options[n]=i;else if("multiple"===r)c.each(n,function(e,t){a.options[e]=t});else if("responsive"===r)for(t in i)if("array"!==c.type(a.options.responsive))a.options.responsive=[i[t]];else{for(e=a.options.responsive.length-1;e>=0;)a.options.responsive[e].breakpoint===i[t].breakpoint&&a.options.responsive.splice(e,1),e--;a.options.responsive.push(i[t])}o&&(a.unload(),a.reinit())},o.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},o.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},o.prototype.setSlideClasses=function(e){var t,n,i,r,a=this;if(n=a.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),a.$slides.eq(e).addClass("slick-current"),!0===a.options.centerMode){var o=a.options.slidesToShow%2==0?1:0;t=Math.floor(a.options.slidesToShow/2),!0===a.options.infinite&&(e>=t&&e<=a.slideCount-1-t?a.$slides.slice(e-t+o,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=a.options.slidesToShow+e,n.slice(i-t+1+o,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-a.options.slidesToShow).addClass("slick-center"):e===a.slideCount-1&&n.eq(a.options.slidesToShow).addClass("slick-center")),a.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=a.slideCount-a.options.slidesToShow?a.$slides.slice(e,e+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=a.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(r=a.slideCount%a.options.slidesToShow,i=!0===a.options.infinite?a.options.slidesToShow+e:e,a.options.slidesToShow==a.options.slidesToScroll&&a.slideCount-e<a.options.slidesToShow?n.slice(i-(a.options.slidesToShow-r),i+r).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==a.options.lazyLoad&&"anticipated"!==a.options.lazyLoad||a.lazyLoad()},o.prototype.setupInfinite=function(){var e,t,n,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(t=null,i.slideCount>i.options.slidesToShow)){for(n=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,e=i.slideCount;e>i.slideCount-n;e-=1)t=e-1,c(i.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(e=0;e<n+i.slideCount;e+=1)t=e,c(i.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},o.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},o.prototype.selectHandler=function(e){var t=this,n=c(e.target).is(".slick-slide")?c(e.target):c(e.target).parents(".slick-slide"),i=parseInt(n.attr("data-slick-index"));i||(i=0),t.slideCount<=t.options.slidesToShow?t.slideHandler(i,!1,!0):t.slideHandler(i)},o.prototype.slideHandler=function(e,t,n){var i,r,a,o,s,l=null,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),i=e,l=c.getLeft(i),o=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?o:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(i=c.currentSlide,!0!==n?c.animateSlide(o,function(){c.postSlide(i)}):c.postSlide(i));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(i=c.currentSlide,!0!==n?c.animateSlide(o,function(){c.postSlide(i)}):c.postSlide(i));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),r=i<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+i:i>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:i-c.slideCount:i,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,r]),a=c.currentSlide,c.currentSlide=r,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(s=(s=c.getNavTarget()).slick("getSlick")).slideCount<=s.options.slidesToShow&&s.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==n?(c.fadeSlideOut(a),c.fadeSlide(r,function(){c.postSlide(r)})):c.postSlide(r),void c.animateHeight();!0!==n?c.animateSlide(l,function(){c.postSlide(r)}):c.postSlide(r)}},o.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},o.prototype.swipeDirection=function(){var e,t,n,i,r=this;return e=r.touchObject.startX-r.touchObject.curX,t=r.touchObject.startY-r.touchObject.curY,n=Math.atan2(t,e),(i=Math.round(180*n/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0?!1===r.options.rtl?"left":"right":i<=360&&i>=315?!1===r.options.rtl?"left":"right":i>=135&&i<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?i>=35&&i<=135?"down":"up":"vertical"},o.prototype.swipeEnd=function(e){var t,n,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1,!1;if(i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(t),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},o.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},o.prototype.swipeMove=function(e){var t,n,i,r,a,o,s=this;return a=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!s.dragging||s.scrolling||a&&1!==a.length)&&(t=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==a?a[0].pageX:e.clientX,s.touchObject.curY=void 0!==a?a[0].pageY:e.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),o=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&o>4?(s.scrolling=!0,!1):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=o),n=s.swipeDirection(),void 0!==e.originalEvent&&s.touchObject.swipeLength>4&&(s.swiping=!0,e.preventDefault()),r=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(r=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,!1===s.options.infinite&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=t+i*r:s.swipeLeft=t+i*(s.$list.height()/s.listWidth)*r,!0===s.options.verticalSwiping&&(s.swipeLeft=t+i*r),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},o.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,n.dragging=!0},o.prototype.unfilterSlides=o.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},o.prototype.unload=function(){var e=this;c(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},o.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},o.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},o.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},o.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},c.fn.slick=function(){var e,t,n=this,i=arguments[0],r=Array.prototype.slice.call(arguments,1),a=n.length;for(e=0;e<a;e++)if("object"==typeof i||void 0===i?n[e].slick=new o(n[e],i):t=n[e].slick[i].apply(n[e].slick,r),void 0!==t)return t;return n}});!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Vue=t()}(this,function(){"use strict";var m=Object.freeze({});function N(e){return null==e}function R(e){return null!=e}function $(e){return!0===e}function E(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function F(e){return null!==e&&"object"==typeof e}var i=Object.prototype.toString;function l(e){return"[object Object]"===i.call(e)}function r(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return R(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function t(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===i?JSON.stringify(e,null,2):String(e)}function L(e){var t=parseFloat(e);return isNaN(t)?e:t}function o(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var c=o("slot,component",!0),d=o("key,ref,slot,slot-scope,is");function p(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var n=Object.prototype.hasOwnProperty;function f(e,t){return n.call(e,t)}function e(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var a=/-(\w)/g,h=e(function(e){return e.replace(a,function(e,t){return t?t.toUpperCase():""})}),s=e(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),v=/\B([A-Z])/g,g=e(function(e){return e.replace(v,"-$1").toLowerCase()});var _=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,i){function e(e){var t=arguments.length;return t?t>1?n.apply(i,arguments):n.call(i,e):n.call(i)}return e._length=n.length,e};function y(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function b(e,t){for(var n in t)e[n]=t[n];return e}function w(e){for(var t={},n=0;n<e.length;n++)e[n]&&b(t,e[n]);return t}function C(e,t,n){}var T=function(e,t,n){return!1},x=function(e){return e};function k(t,n){if(t===n)return!0;var e=F(t),i=F(n);if(!e||!i)return!e&&!i&&String(t)===String(n);try{var r=Array.isArray(t),a=Array.isArray(n);if(r&&a)return t.length===n.length&&t.every(function(e,t){return k(e,n[t])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(r||a)return!1;var o=Object.keys(t),s=Object.keys(n);return o.length===s.length&&o.every(function(e){return k(t[e],n[e])})}catch(t){return!1}}function S(e,t){for(var n=0;n<e.length;n++)if(k(e[n],t))return n;return-1}function j(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var O="data-server-rendered",D=["component","directive","filter"],A=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],P={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:T,isReservedAttr:T,isUnknownElement:T,getTagNamespace:C,parsePlatformTagName:x,mustUseProp:T,async:!0,_lifecycleHooks:A},M=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function I(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var H=new RegExp("[^"+M.source+".$_\\d]");var q,B="__proto__"in{},z="undefined"!=typeof window,Y="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,U=Y&&WXEnvironment.platform.toLowerCase(),W=z&&window.navigator.userAgent.toLowerCase(),V=W&&/msie|trident/.test(W),J=W&&W.indexOf("msie 9.0")>0,G=W&&W.indexOf("edge/")>0,K=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===U),X=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),Q={}.watch,Z=!1;if(z)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,ee)}catch(m){}var te=function(){return void 0===q&&(q=!z&&!Y&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),q},ne=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}var re,ae="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);re="undefined"!=typeof Set&&ie(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var oe=C,se=0,le=function(){this.id=se++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){p(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},le.target=null;var ce=[];function de(e){ce.push(e),le.target=e}function ue(){ce.pop(),le.target=ce[ce.length-1]}var pe=function(e,t,n,i,r,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},fe={child:{configurable:!0}};fe.child.get=function(){return this.componentInstance},Object.defineProperties(pe.prototype,fe);var he=function(e){void 0===e&&(e="");var t=new pe;return t.text=e,t.isComment=!0,t};function me(e){return new pe(void 0,void 0,void 0,String(e))}function ve(e){var t=new pe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ge=Array.prototype,_e=Object.create(ge);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(a){var o=ge[a];I(_e,a,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,i=o.apply(this,e),r=this.__ob__;switch(a){case"push":case"unshift":n=e;break;case"splice":n=e.slice(2)}return n&&r.observeArray(n),r.dep.notify(),i})});var ye=Object.getOwnPropertyNames(_e),be=!0;function we(e){be=e}var Ce=function(e){var t;this.value=e,this.dep=new le,this.vmCount=0,I(e,"__ob__",this),Array.isArray(e)?(B?(t=_e,e.__proto__=t):function(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i];I(e,a,t[a])}}(e,_e,ye),this.observeArray(e)):this.walk(e)};function xe(e,t){var n;if(F(e)&&!(e instanceof pe))return f(e,"__ob__")&&e.__ob__ instanceof Ce?n=e.__ob__:be&&!te()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ce(e)),t&&n&&n.vmCount++,n}function ke(n,e,i,t,r){var a=new le,o=Object.getOwnPropertyDescriptor(n,e);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(i=n[e]);var c=!r&&xe(i);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):i;return le.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,i=0,r=t.length;i<r;i++)(n=t[i])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):i;e===t||e!=e&&t!=t||s&&!l||(l?l.call(n,e):i=e,c=!r&&xe(e),a.notify())}})}}function Se(e,t,n){if(Array.isArray(e)&&r(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(ke(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function De(e,t){if(Array.isArray(e)&&r(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||f(e,t)&&(delete e[t],n&&n.dep.notify())}}Ce.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)ke(e,t[n])},Ce.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)xe(e[t])};var Te=P.optionMergeStrategies;function $e(e,t){if(!t)return e;for(var n,i,r,a=ae?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)"__ob__"!==(n=a[o])&&(i=e[n],r=t[n],f(e,n)?i!==r&&l(i)&&l(r)&&$e(i,r):Se(e,n,r));return e}function Ee(n,i,r){return r?function(){var e="function"==typeof i?i.call(r,r):i,t="function"==typeof n?n.call(r,r):n;return e?$e(e,t):t}:i?n?function(){return $e("function"==typeof i?i.call(this,this):i,"function"==typeof n?n.call(this,this):n)}:i:n}function Oe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ae(e,t,n,i){var r=Object.create(e||null);return t?b(r,t):r}Te.data=function(e,t,n){return n?Ee(e,t,n):t&&"function"!=typeof t?e:Ee(e,t)},A.forEach(function(e){Te[e]=Oe}),D.forEach(function(e){Te[e+"s"]=Ae}),Te.watch=function(e,t,n,i){if(e===Q&&(e=void 0),t===Q&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var a in b(r,e),t){var o=r[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),r[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return r},Te.props=Te.methods=Te.inject=Te.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return b(r,e),t&&b(r,t),r},Te.provide=Ee;var Pe=function(e,t){return void 0===t?e:t};function Me(n,i,r){if("function"==typeof i&&(i=i.options),function(e,t){var n=e.props;if(n){var i,r,a={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(a[h(r)]={type:null});else if(l(n))for(var o in n)r=n[o],a[h(o)]=l(r)?r:{type:r};e.props=a}}(i),function(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(l(n))for(var a in n){var o=n[a];i[a]=l(o)?b({from:a},o):{from:o}}}}(i),function(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"==typeof i&&(t[n]={bind:i,update:i})}}(i),!i._base&&(i.extends&&(n=Me(n,i.extends,r)),i.mixins))for(var e=0,t=i.mixins.length;e<t;e++)n=Me(n,i.mixins[e],r);var a,o={};for(a in n)s(a);for(a in i)f(n,a)||s(a);function s(e){var t=Te[e]||Pe;o[e]=t(n[e],i[e],r,e)}return o}function Ie(e,t,n,i){if("string"==typeof n){var r=e[t];if(f(r,n))return r[n];var a=h(n);if(f(r,a))return r[a];var o=s(a);return f(r,o)?r[o]:r[n]||r[a]||r[o]}}function Ne(e,t,n,i){var r=t[e],a=!f(n,e),o=n[e],s=je(Boolean,r.type);if(s>-1)if(a&&!f(r,"default"))o=!1;else if(""===o||o===g(e)){var l=je(String,r.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!f(t,"default"))return;var i=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof i&&"Function"!==Fe(t.type)?i.call(e):i}(i,r,e);var c=be;we(!0),xe(o),we(c)}return o}var Re=/^\s*function (\w+)/;function Fe(e){var t=e&&e.toString().match(Re);return t?t[1]:""}function Le(e,t){return Fe(e)===Fe(t)}function je(e,t){if(!Array.isArray(t))return Le(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(Le(t[n],e))return n;return-1}function He(e,t,n){de();try{if(t)for(var i=t;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var a=0;a<r.length;a++)try{if(!1===r[a].call(i,e,t,n))return}catch(e){Be(e,i,"errorCaptured hook")}}Be(e,t,n)}finally{ue()}}function qe(e,t,n,i,r){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&u(a)&&!a._handled&&(a.catch(function(e){return He(e,i,r+" (Promise/async)")}),a._handled=!0)}catch(e){He(e,i,r)}return a}function Be(e,t,n){if(P.errorHandler)try{return P.errorHandler.call(null,e,t,n)}catch(t){t!==e&&ze(t,null,"config.errorHandler")}ze(e,t,n)}function ze(e,t,n){if(!z&&!Y||"undefined"==typeof console)throw e;console.error(e)}var Ye,Ue=!1,We=[],Ve=!1;function Je(){Ve=!1;var e=We.slice(0);We.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ie(Promise)){var Ge=Promise.resolve();Ye=function(){Ge.then(Je),K&&setTimeout(C)},Ue=!0}else if(V||"undefined"==typeof MutationObserver||!ie(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ye="undefined"!=typeof setImmediate&&ie(setImmediate)?function(){setImmediate(Je)}:function(){setTimeout(Je,0)};else{var Ke=1,Xe=new MutationObserver(Je),Qe=document.createTextNode(String(Ke));Xe.observe(Qe,{characterData:!0}),Ye=function(){Ke=(Ke+1)%2,Qe.data=String(Ke)},Ue=!0}function Ze(e,t){var n;if(We.push(function(){if(e)try{e.call(t)}catch(e){He(e,t,"nextTick")}else n&&n(t)}),Ve||(Ve=!0,Ye()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var et=new re;function tt(e){!function e(t,n){var i,r;var a=Array.isArray(t);if(!a&&!F(t)||Object.isFrozen(t)||t instanceof pe)return;if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a)for(i=t.length;i--;)e(t[i],n);else for(r=Object.keys(t),i=r.length;i--;)e(t[r[i]],n)}(e,et),et.clear()}var nt=e(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),i="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=i?e.slice(1):e,once:n,capture:i,passive:t}});function it(e,r){function a(){var e=arguments,t=a.fns;if(!Array.isArray(t))return qe(t,null,arguments,r,"v-on handler");for(var n=t.slice(),i=0;i<n.length;i++)qe(n[i],null,e,r,"v-on handler")}return a.fns=e,a}function rt(e,t,n,i,r,a){var o,s,l,c;for(o in e)s=e[o],l=t[o],c=nt(o),N(s)||(N(l)?(N(s.fns)&&(s=e[o]=it(s,a)),$(c.once)&&(s=e[o]=r(c.name,s,c.capture)),n(c.name,s,c.capture,c.passive,c.params)):s!==l&&(l.fns=s,e[o]=l));for(o in t)N(e[o])&&i((c=nt(o)).name,t[o],c.capture)}function at(e,t,n){var i;e instanceof pe&&(e=e.data.hook||(e.data.hook={}));var r=e[t];function a(){n.apply(this,arguments),p(i.fns,a)}N(r)?i=it([a]):R(r.fns)&&$(r.merged)?(i=r).fns.push(a):i=it([r,a]),i.merged=!0,e[t]=i}function ot(e,t,n,i,r){if(R(t)){if(f(t,n))return e[n]=t[n],r||delete t[n],!0;if(f(t,i))return e[n]=t[i],r||delete t[i],!0}return!1}function st(e){return E(e)?[me(e)]:Array.isArray(e)?function e(t,n){var i=[];var r,a,o,s;for(r=0;r<t.length;r++)N(a=t[r])||"boolean"==typeof a||(o=i.length-1,s=i[o],Array.isArray(a)?a.length>0&&(lt((a=e(a,(n||"")+"_"+r))[0])&&lt(s)&&(i[o]=me(s.text+a[0].text),a.shift()),i.push.apply(i,a)):E(a)?lt(s)?i[o]=me(s.text+a):""!==a&&i.push(me(a)):lt(a)&&lt(s)?i[o]=me(s.text+a.text):($(t._isVList)&&R(a.tag)&&N(a.key)&&R(n)&&(a.key="__vlist"+n+"_"+r+"__"),i.push(a)));return i}(e):void 0}function lt(e){return R(e)&&R(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var n=Object.create(null),i=ae?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("__ob__"!==a){for(var o=e[a].from,s=t;s;){if(s._provided&&f(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s&&"default"in e[a]){var l=e[a].default;n[a]="function"==typeof l?l.call(t):l}}}return n}}function dt(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var a=e[i],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(ut)&&delete n[c];return n}function ut(e){return e.isComment&&!e.asyncFactory||" "===e.text}function pt(e){return e.isComment&&e.asyncFactory}function ft(e,t,n){var i,r=Object.keys(t).length>0,a=e?!!e.$stable:!r,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==m&&o===n.$key&&!r&&!n.$hasNormal)return n;for(var s in i={},e)e[s]&&"$"!==s[0]&&(i[s]=ht(t,s,e[s]))}else i={};for(var l in t)l in i||(i[l]=mt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),I(i,"$stable",a),I(i,"$key",o),I(i,"$hasNormal",r),i}function ht(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:st(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function mt(e,t){return function(){return e[t]}}function vt(e,t){var n,i,r,a,o;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,r=e.length;i<r;i++)n[i]=t(e[i],i);else if("number"==typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(F(e))if(ae&&e[Symbol.iterator]){n=[];for(var s=e[Symbol.iterator](),l=s.next();!l.done;)n.push(t(l.value,n.length)),l=s.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,r=a.length;i<r;i++)o=a[i],n[i]=t(e[o],o,i);return R(n)||(n=[]),n._isVList=!0,n}function gt(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(n=b(b({},i),n)),r=a(n)||("function"==typeof t?t():t)):r=this.$slots[e]||("function"==typeof t?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},r):r}function _t(e){return Ie(this.$options,"filters",e)||x}function yt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function bt(e,t,n,i,r){var a=P.keyCodes[t]||n;return r&&i&&!P.keyCodes[t]?yt(r,i):a?yt(a,e):i?g(i)!==t:void 0===e}function wt(r,a,o,s,l){if(o)if(F(o)){var c;Array.isArray(o)&&(o=w(o));var e=function(t){if("class"===t||"style"===t||d(t))c=r;else{var e=r.attrs&&r.attrs.type;c=s||P.mustUseProp(a,e,t)?r.domProps||(r.domProps={}):r.attrs||(r.attrs={})}var n=h(t),i=g(t);n in c||i in c||(c[t]=o[t],l&&((r.on||(r.on={}))["update:"+t]=function(e){o[t]=e}))};for(var t in o)e(t)}else;return r}function Ct(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t?i:(kt(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),i)}function xt(e,t,n){return kt(e,"__once__"+t+(n?"_"+n:""),!0),e}function kt(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!=typeof e[i]&&St(e[i],t+"_"+i,n);else St(e,t,n)}function St(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Dt(e,t){if(t)if(l(t)){var n=e.on=e.on?b({},e.on):{};for(var i in t){var r=n[i],a=t[i];n[i]=r?[].concat(r,a):a}}else;return e}function Tt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var a=e[r];Array.isArray(a)?Tt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return i&&(t.$key=i),t}function $t(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"==typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Et(e,t){return"string"==typeof e?t+e:e}function Ot(e){e._o=xt,e._n=L,e._s=t,e._l=vt,e._t=gt,e._q=k,e._i=S,e._m=Ct,e._f=_t,e._k=bt,e._b=wt,e._v=me,e._e=he,e._u=Tt,e._g=Dt,e._d=$t,e._p=Et}function At(e,t,n,a,i){var o,r=this,s=i.options;f(a,"_uid")?(o=Object.create(a))._original=a:(o=a,a=a._original);var l=$(s._compiled),c=!l;this.data=e,this.props=t,this.children=n,this.parent=a,this.listeners=e.on||m,this.injections=ct(s.inject,a),this.slots=function(){return r.$slots||ft(e.scopedSlots,r.$slots=dt(n,a)),r.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ft(e.scopedSlots,this.slots())}}),l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ft(e.scopedSlots,this.$slots)),s._scopeId?this._c=function(e,t,n,i){var r=Ht(o,e,t,n,i,c);return r&&!Array.isArray(r)&&(r.fnScopeId=s._scopeId,r.fnContext=a),r}:this._c=function(e,t,n,i){return Ht(o,e,t,n,i,c)}}function Pt(e,t,n,i,r){var a=ve(e);return a.fnContext=n,a.fnOptions=i,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Mt(e,t){for(var n in t)e[h(n)]=t[n]}Ot(At.prototype);var It={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;It.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;R(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Gt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,r){var a=i.data.scopedSlots,o=e.$scopedSlots,s=!!(a&&!a.$stable||o!==m&&!o.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),l=!!(r||e.$options._renderChildren||s);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=r,e.$attrs=i.data.attrs||m,e.$listeners=n||m,t&&e.$options.props){we(!1);for(var c=e._props,d=e.$options._propKeys||[],u=0;u<d.length;u++){var p=d[u],f=e.$options.props;c[p]=Ne(p,f,t,e)}we(!0),e.$options.propsData=t}n=n||m;var h=e.$options._parentListeners;e.$options._parentListeners=n,Jt(e,n,h),l&&(e.$slots=dt(r,i.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,i=e.componentInstance;i._isMounted||(i._isMounted=!0,Zt(i,"mounted")),e.data.keepAlive&&(n._isMounted?((t=i)._inactive=!1,tn.push(t)):Qt(i,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Xt(t)))return;if(!t._inactive){t._inactive=!0;for(var i=0;i<t.$children.length;i++)e(t.$children[i]);Zt(t,"deactivated")}}(t,!0):t.$destroy())}},Nt=Object.keys(It);function Rt(e,t,n,i,r){if(!N(e)){var a=n.$options._base;if(F(e)&&(e=a.extend(e)),"function"==typeof e){var o;if(N(e.cid)&&void 0===(e=function(t,n){if($(t.error)&&R(t.errorComp))return t.errorComp;if(R(t.resolved))return t.resolved;var e=Bt;e&&R(t.owners)&&-1===t.owners.indexOf(e)&&t.owners.push(e);if($(t.loading)&&R(t.loadingComp))return t.loadingComp;if(e&&!R(t.owners)){var i=t.owners=[e],r=!0,a=null,o=null;e.$on("hook:destroyed",function(){return p(i,e)});var s=function(e){for(var t=0,n=i.length;t<n;t++)i[t].$forceUpdate();e&&(i.length=0,null!==a&&(clearTimeout(a),a=null),null!==o&&(clearTimeout(o),o=null))},l=j(function(e){t.resolved=zt(e,n),r?i.length=0:s(!0)}),c=j(function(e){R(t.errorComp)&&(t.error=!0,s(!0))}),d=t(l,c);return F(d)&&(u(d)?N(t.resolved)&&d.then(l,c):u(d.component)&&(d.component.then(l,c),R(d.error)&&(t.errorComp=zt(d.error,n)),R(d.loading)&&(t.loadingComp=zt(d.loading,n),0===d.delay?t.loading=!0:a=setTimeout(function(){a=null,N(t.resolved)&&N(t.error)&&(t.loading=!0,s(!1))},d.delay||200)),R(d.timeout)&&(o=setTimeout(function(){o=null,N(t.resolved)&&c(null)},d.timeout)))),r=!1,t.loading?t.loadingComp:t.resolved}}(o=e,a)))return function(e,t,n,i,r){var a=he();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:i,tag:r},a}(o,t,n,i,r);t=t||{},Cn(e),R(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var r=t.on||(t.on={}),a=r[i],o=t.model.callback;R(a)?(Array.isArray(a)?-1===a.indexOf(o):a!==o)&&(r[i]=[o].concat(a)):r[i]=o}(e.options,t);var s=function(e,t,n){var i=t.options.props;if(!N(i)){var r={},a=e.attrs,o=e.props;if(R(a)||R(o))for(var s in i){var l=g(s);ot(r,o,s,l,!0)||ot(r,a,s,l,!1)}return r}}(t,e);if($(e.options.functional))return function(e,t,n,i,r){var a=e.options,o={},s=a.props;if(R(s))for(var l in s)o[l]=Ne(l,s,t||m);else R(n.attrs)&&Mt(o,n.attrs),R(n.props)&&Mt(o,n.props);var c=new At(n,o,r,i,e),d=a.render.call(null,c._c,c);if(d instanceof pe)return Pt(d,n,c.parent,a);if(Array.isArray(d)){for(var u=st(d)||[],p=new Array(u.length),f=0;f<u.length;f++)p[f]=Pt(u[f],n,c.parent,a);return p}}(e,s,t,n,i);var l=t.on;if(t.on=t.nativeOn,$(e.options.abstract)){var c=t.slot;t={},c&&(t.slot=c)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Nt.length;n++){var i=Nt[n],r=t[i],a=It[i];r===a||r&&r._merged||(t[i]=r?Ft(a,r):a)}}(t);var d=e.options.name||r;return new pe("vue-component-"+e.cid+(d?"-"+d:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:s,listeners:l,tag:r,children:i},o)}}}function Ft(n,i){var e=function(e,t){n(e,t),i(e,t)};return e._merged=!0,e}var Lt=1,jt=2;function Ht(e,t,n,i,r,a){return(Array.isArray(n)||E(n))&&(r=i,i=n,n=void 0),$(a)&&(r=jt),function(e,t,n,i,r){if(R(n)&&R(n.__ob__))return he();R(n)&&R(n.is)&&(t=n.is);if(!t)return he();Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0);r===jt?i=st(i):r===Lt&&(i=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(i));var a,o;if("string"==typeof t){var s;o=e.$vnode&&e.$vnode.ns||P.getTagNamespace(t),a=P.isReservedTag(t)?new pe(P.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!R(s=Ie(e.$options,"components",t))?new pe(t,n,i,void 0,void 0,e):Rt(s,n,e,i,t)}else a=Rt(t,n,e,i);return Array.isArray(a)?a:R(a)?(R(o)&&function e(t,n,i){t.ns=n;"foreignObject"===t.tag&&(n=void 0,i=!0);if(R(t.children))for(var r=0,a=t.children.length;r<a;r++){var o=t.children[r];R(o.tag)&&(N(o.ns)||$(i)&&"svg"!==o.tag)&&e(o,n,i)}}(a,o),R(n)&&function(e){F(e.style)&&tt(e.style);F(e.class)&&tt(e.class)}(n),a):he()}(e,t,n,i,r)}var qt,Bt=null;function zt(e,t){return(e.__esModule||ae&&"Module"===e[Symbol.toStringTag])&&(e=e.default),F(e)?t.extend(e):e}function Yt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(R(n)&&(R(n.componentOptions)||pt(n)))return n}}function Ut(e,t){qt.$on(e,t)}function Wt(e,t){qt.$off(e,t)}function Vt(t,n){var i=qt;return function e(){null!==n.apply(null,arguments)&&i.$off(t,e)}}function Jt(e,t,n){qt=e,rt(t,n||{},Ut,Wt,Vt,e),qt=void 0}var Gt=null;function Kt(e){var t=Gt;return Gt=e,function(){Gt=t}}function Xt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Qt(e,t){if(t){if(e._directInactive=!1,Xt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Qt(e.$children[n]);Zt(e,"activated")}}function Zt(e,t){de();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,a=n.length;r<a;r++)qe(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),ue()}var en=[],tn=[],nn={},rn=!1,an=!1,on=0;var sn=0,ln=Date.now;if(z&&!V){var cn=window.performance;cn&&"function"==typeof cn.now&&ln()>document.createEvent("Event").timeStamp&&(ln=function(){return cn.now()})}function dn(){var e,t;for(sn=ln(),an=!0,en.sort(function(e,t){return e.id-t.id}),on=0;on<en.length;on++)(e=en[on]).before&&e.before(),t=e.id,nn[t]=null,e.run();var n=tn.slice(),i=en.slice();on=en.length=tn.length=0,nn={},rn=an=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Qt(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Zt(i,"updated")}}(i),ne&&P.devtools&&ne.emit("flush")}var un=0,pn=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++un,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new re,this.newDepIds=new re,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!H.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=C)),this.value=this.lazy?void 0:this.get()};pn.prototype.get=function(){var e;de(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;He(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&tt(e),ue(),this.cleanupDeps()}return e},pn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},pn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==nn[t]){if(nn[t]=!0,an){for(var n=en.length-1;n>on&&en[n].id>e.id;)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,Ze(dn))}}(this)},pn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||F(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';qe(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||p(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var fn={enumerable:!0,configurable:!0,get:C,set:C};function hn(e,t,n){fn.get=function(){return this[t][n]},fn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,fn)}function mn(e){e._watchers=[];var t=e.$options;t.props&&function(n,i){var r=n.$options.propsData||{},a=n._props={},o=n.$options._propKeys=[];n.$parent&&we(!1);var e=function(e){o.push(e);var t=Ne(e,i,r,n);ke(a,e,t),e in n||hn(n,"_props",e)};for(var t in i)e(t);we(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?C:_(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return He(e,t,"data()"),{}}finally{ue()}}(t,e):t||{})||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);for(;r--;){var a=n[r];i&&f(i,a)||(o=void 0,36!==(o=(a+"").charCodeAt(0))&&95!==o&&hn(e,"_data",a))}var o;xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),i=te();for(var r in t){var a=t[r],o="function"==typeof a?a:a.get;i||(n[r]=new pn(e,o||C,C,vn)),r in e||gn(e,r,a)}}(e,t.computed),t.watch&&t.watch!==Q&&function(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)bn(e,n,i[r]);else bn(e,n,i)}}(e,t.watch)}var vn={lazy:!0};function gn(e,t,n){var i=!te();"function"==typeof n?(fn.get=i?_n(t):yn(n),fn.set=C):(fn.get=n.get?i&&!1!==n.cache?_n(t):yn(n.get):C,fn.set=n.set||C),Object.defineProperty(e,t,fn)}function _n(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),le.target&&e.depend(),e.value}}function yn(e){return function(){return e.call(this,this)}}function bn(e,t,n,i){return l(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,i)}var wn=0;function Cn(e){var t=e.options;if(e.super){var n=Cn(e.super);if(n!==e.superOptions){e.superOptions=n;var i=function(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}(e);i&&b(e.extendOptions,i),(t=e.options=Me(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function xn(e){this._init(e)}function kn(e){e.cid=0;var o=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,i=e._Ctor||(e._Ctor={});if(i[n])return i[n];var r=e.name||t.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(t.prototype)).constructor=a,a.cid=o++,a.options=Me(t.options,e),a.super=t,a.options.props&&function(e){var t=e.options.props;for(var n in t)hn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)gn(e.prototype,n,t[n])}(a),a.extend=t.extend,a.mixin=t.mixin,a.use=t.use,D.forEach(function(e){a[e]=t[e]}),r&&(a.options.components[r]=a),a.superOptions=t.options,a.extendOptions=e,a.sealedOptions=b({},a.options),i[n]=a,a}}function Sn(e){return e&&(e.Ctor.options.name||e.tag)}function Dn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===i.call(n)&&e.test(t));var n}function Tn(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&$n(n,a,i,r)}}}function $n(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,p(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=wn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(Cn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Jt(e,t)}(t),function(r){r._vnode=null,r._staticTrees=null;var e=r.$options,t=r.$vnode=e._parentVnode,n=t&&t.context;r.$slots=dt(e._renderChildren,n),r.$scopedSlots=m,r._c=function(e,t,n,i){return Ht(r,e,t,n,i,!1)},r.$createElement=function(e,t,n,i){return Ht(r,e,t,n,i,!0)};var i=t&&t.data;ke(r,"$attrs",i&&i.attrs||m,null,!0),ke(r,"$listeners",e._parentListeners||m,null,!0)}(t),Zt(t,"beforeCreate"),function(t){var n=ct(t.$options.inject,t);n&&(we(!1),Object.keys(n).forEach(function(e){ke(t,e,n[e])}),we(!0))}(t),mn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Zt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(xn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Se,e.prototype.$delete=De,e.prototype.$watch=function(e,t,n){if(l(t))return bn(this,e,t,n);(n=n||{}).user=!0;var i=new pn(this,e,t,n);if(n.immediate){var r='callback for immediate watcher "'+i.expression+'"';de(),qe(t,this,[i.value],this,r),ue()}return function(){i.teardown()}}}(xn),function(e){var a=/^hook:/;e.prototype.$on=function(e,t){var n=this;if(Array.isArray(e))for(var i=0,r=e.length;i<r;i++)n.$on(e[i],t);else(n._events[e]||(n._events[e]=[])).push(t),a.test(e)&&(n._hasHookEvent=!0);return n},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var s=o.length;s--;)if((a=o[s])===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this._events[e];if(t){t=t.length>1?y(t):t;for(var n=y(arguments,1),i='event handler for "'+e+'"',r=0,a=t.length;r<a;r++)qe(t[r],this,n,this,i)}return this}}(xn),function(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,a=Kt(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),a(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Zt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||p(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Zt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(xn),function(e){Ot(e.prototype),e.prototype.$nextTick=function(e){return Ze(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=ft(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{Bt=t,e=i.call(t._renderProxy,t.$createElement)}catch(n){He(n,t,"render"),e=t._vnode}finally{Bt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof pe||(e=he()),e.parent=r,e}}(xn);var En=[String,RegExp,Array],On={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:En,exclude:En,max:[String,Number]},methods:{cacheVNode:function(){var e=this.cache,t=this.keys,n=this.vnodeToCache,i=this.keyToCache;if(n){var r=n.tag,a=n.componentInstance,o=n.componentOptions;e[i]={name:Sn(o),tag:r,componentInstance:a},t.push(i),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)$n(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){Tn(e,function(e){return Dn(t,e)})}),this.$watch("exclude",function(t){Tn(e,function(e){return!Dn(t,e)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Yt(e),n=t&&t.componentOptions;if(n){var i=Sn(n),r=this.include,a=this.exclude;if(r&&(!i||!Dn(r,i))||a&&i&&Dn(a,i))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,p(s,l),s.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(t){var e={get:function(){return P}};Object.defineProperty(t,"config",e),t.util={warn:oe,extend:b,mergeOptions:Me,defineReactive:ke},t.set=Se,t.delete=De,t.nextTick=Ze,t.observable=function(e){return xe(e),e},t.options=Object.create(null),D.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,b(t.options.components,On),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(t),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(t),kn(t),function(e){D.forEach(function(n){e[n]=function(e,t){return t?("component"===n&&l(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t,t):this.options[n+"s"][e]}})}(t)}(xn),Object.defineProperty(xn.prototype,"$isServer",{get:te}),Object.defineProperty(xn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xn,"FunctionalRenderContext",{value:At}),xn.version="2.6.14";var An=o("style,class"),Pn=o("input,textarea,option,select,progress"),Mn=function(e,t,n){return"value"===n&&Pn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},In=o("contenteditable,draggable,spellcheck"),Nn=o("events,caret,typing,plaintext-only"),Rn=function(e,t){return qn(t)||"false"===t?"false":"contenteditable"===e&&Nn(t)?t:"true"},Fn=o("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ln="http://www.w3.org/1999/xlink",jn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Hn=function(e){return jn(e)?e.slice(6,e.length):""},qn=function(e){return null==e||!1===e};function Bn(e){for(var t=e.data,n=e,i=e;R(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=zn(i.data,t));for(;R(n=n.parent);)n&&n.data&&(t=zn(t,n.data));return function(e,t){if(R(e)||R(t))return Yn(e,Un(t));return""}(t.staticClass,t.class)}function zn(e,t){return{staticClass:Yn(e.staticClass,t.staticClass),class:R(e.class)?[e.class,t.class]:t.class}}function Yn(e,t){return e?t?e+" "+t:e:t||""}function Un(e){return Array.isArray(e)?function(e){for(var t,n="",i=0,r=e.length;i<r;i++)R(t=Un(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):F(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Wn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Vn=o("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Jn=o("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Gn=function(e){return Vn(e)||Jn(e)};function Kn(e){return Jn(e)?"svg":"math"===e?"math":void 0}var Xn=Object.create(null);var Qn=o("text,number,password,search,email,tel,url");function Zn(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var ei=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Wn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),ti={create:function(e,t){ni(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ni(e,!0),ni(t))},destroy:function(e){ni(e,!0)}};function ni(e,t){var n=e.data.ref;if(R(n)){var i=e.context,r=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?p(a[n],r):a[n]===r&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(r)<0&&a[n].push(r):a[n]=[r]:a[n]=r}}var ii=new pe("",{},[]),ri=["create","activate","update","remove","destroy"];function ai(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&R(e.data)===R(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,i=R(n=e.data)&&R(n=n.attrs)&&n.type,r=R(n=t.data)&&R(n=n.attrs)&&n.type;return i===r||Qn(i)&&Qn(r)}(e,t)||$(e.isAsyncPlaceholder)&&N(t.asyncFactory.error))}function oi(e,t,n){var i,r,a={};for(i=t;i<=n;++i)R(r=e[i].key)&&(a[r]=i);return a}var si={create:li,update:li,destroy:function(e){li(e,ii)}};function li(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,i,r,a=t===ii,o=n===ii,s=di(t.data.directives,t.context),l=di(n.data.directives,n.context),c=[],d=[];for(e in l)i=s[e],r=l[e],i?(r.oldValue=i.value,r.oldArg=i.arg,pi(r,"update",n,t),r.def&&r.def.componentUpdated&&d.push(r)):(pi(r,"bind",n,t),r.def&&r.def.inserted&&c.push(r));if(c.length){var u=function(){for(var e=0;e<c.length;e++)pi(c[e],"inserted",n,t)};a?at(n,"insert",u):u()}d.length&&at(n,"postpatch",function(){for(var e=0;e<d.length;e++)pi(d[e],"componentUpdated",n,t)});if(!a)for(e in s)l[e]||pi(s[e],"unbind",t,t,o)}(e,t)}var ci=Object.create(null);function di(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)(i=e[n]).modifiers||(i.modifiers=ci),r[ui(i)]=i,i.def=Ie(t.$options,"directives",i.name);return r}function ui(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function pi(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(i){He(i,n.context,"directive "+e.name+" "+t+" hook")}}var fi=[ti,si];function hi(e,t){var n=t.componentOptions;if(!(R(n)&&!1===n.Ctor.options.inheritAttrs||N(e.data.attrs)&&N(t.data.attrs))){var i,r,a=t.elm,o=e.data.attrs||{},s=t.data.attrs||{};for(i in R(s.__ob__)&&(s=t.data.attrs=b({},s)),s)r=s[i],o[i]!==r&&mi(a,i,r,t.data.pre);for(i in(V||G)&&s.value!==o.value&&mi(a,"value",s.value),o)N(s[i])&&(jn(i)?a.removeAttributeNS(Ln,Hn(i)):In(i)||a.removeAttribute(i))}}function mi(e,t,n,i){i||e.tagName.indexOf("-")>-1?vi(e,t,n):Fn(t)?qn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):In(t)?e.setAttribute(t,Rn(t,n)):jn(t)?qn(n)?e.removeAttributeNS(Ln,Hn(t)):e.setAttributeNS(Ln,t,n):vi(e,t,n)}function vi(t,e,n){if(qn(n))t.removeAttribute(e);else{if(V&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var gi={create:hi,update:hi};function _i(e,t){var n=t.elm,i=t.data,r=e.data;if(!(N(i.staticClass)&&N(i.class)&&(N(r)||N(r.staticClass)&&N(r.class)))){var a=Bn(t),o=n._transitionClasses;R(o)&&(a=Yn(a,Un(o))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var yi,bi,wi,Ci,xi,ki,Si={create:_i,update:_i},Di=/[\w).+\-_$\]]/;function Ti(e){var t,n,i,r,a,o=!1,s=!1,l=!1,c=!1,d=0,u=0,p=0,f=0;for(i=0;i<e.length;i++)if(n=t,t=e.charCodeAt(i),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||d||u||p){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:u++;break;case 93:u--;break;case 123:d++;break;case 125:d--}if(47===t){for(var h=i-1,m=void 0;h>=0&&" "===(m=e.charAt(h));h--);m&&Di.test(m)||(c=!0)}}else void 0===r?(f=i+1,r=e.slice(0,i).trim()):v();function v(){(a||(a=[])).push(e.slice(f,i).trim()),f=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==f&&v(),a)for(i=0;i<a.length;i++)r=$i(r,a[i]);return r}function $i(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var i=t.slice(0,n),r=t.slice(n+1);return'_f("'+i+'")('+e+(")"!==r?","+r:r)}function Ei(e,t){console.error("[Vue compiler]: "+e)}function Oi(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Ai(e,t,n,i,r){(e.props||(e.props=[])).push(Hi({name:t,value:n,dynamic:r},i)),e.plain=!1}function Pi(e,t,n,i,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Hi({name:t,value:n,dynamic:r},i)),e.plain=!1}function Mi(e,t,n,i){e.attrsMap[t]=n,e.attrsList.push(Hi({name:t,value:n},i))}function Ii(e,t,n,i,r,a,o,s){(e.directives||(e.directives=[])).push(Hi({name:t,rawName:n,value:i,arg:r,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function Ni(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Ri(e,t,n,i,r,a,o,s){var l;(i=i||m).right?s?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(s?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Ni("!",t,s)),i.once&&(delete i.once,t=Ni("~",t,s)),i.passive&&(delete i.passive,t=Ni("&",t,s)),i.native?(delete i.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});var c=Hi({value:n.trim(),dynamic:s},o);i!==m&&(c.modifiers=i);var d=l[t];Array.isArray(d)?r?d.unshift(c):d.push(c):l[t]=d?r?[c,d]:[d,c]:c,e.plain=!1}function Fi(e,t,n){var i=Li(e,":"+t)||Li(e,"v-bind:"+t);if(null!=i)return Ti(i);if(!1!==n){var r=Li(e,t);if(null!=r)return JSON.stringify(r)}}function Li(e,t,n){var i;if(null!=(i=e.attrsMap[t]))for(var r=e.attrsList,a=0,o=r.length;a<o;a++)if(r[a].name===t){r.splice(a,1);break}return n&&delete e.attrsMap[t],i}function ji(e,t){for(var n=e.attrsList,i=0,r=n.length;i<r;i++){var a=n[i];if(t.test(a.name))return n.splice(i,1),a}}function Hi(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function qi(e,t,n){var i=n||{},r=i.number,a="$$v";i.trim&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(a="_n("+a+")");var o=Bi(t,a);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+o+"}"}}function Bi(e,t){var n=function(e){if(e=e.trim(),yi=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<yi-1)return(Ci=e.lastIndexOf("."))>-1?{exp:e.slice(0,Ci),key:'"'+e.slice(Ci+1)+'"'}:{exp:e,key:null};bi=e,Ci=xi=ki=0;for(;!Yi();)Ui(wi=zi())?Vi(wi):91===wi&&Wi(wi);return{exp:e.slice(0,xi),key:e.slice(xi+1,ki)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function zi(){return bi.charCodeAt(++Ci)}function Yi(){return Ci>=yi}function Ui(e){return 34===e||39===e}function Wi(e){var t=1;for(xi=Ci;!Yi();)if(Ui(e=zi()))Vi(e);else if(91===e&&t++,93===e&&t--,0===t){ki=Ci;break}}function Vi(e){for(var t=e;!Yi()&&(e=zi())!==t;);}var Ji,Gi="__r",Ki="__c";function Xi(t,n,i){var r=Ji;return function e(){null!==n.apply(null,arguments)&&er(t,e,i,r)}}var Qi=Ue&&!(X&&Number(X[1])<=53);function Zi(e,t,n,i){if(Qi){var r=sn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Ji.addEventListener(e,t,Z?{capture:n,passive:i}:n)}function er(e,t,n,i){(i||Ji).removeEventListener(e,t._wrapper||t,n)}function tr(e,t){if(!N(e.data.on)||!N(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Ji=t.elm,function(e){if(R(e[Gi])){var t=V?"change":"input";e[t]=[].concat(e[Gi],e[t]||[]),delete e[Gi]}R(e[Ki])&&(e.change=[].concat(e[Ki],e.change||[]),delete e[Ki])}(n),rt(n,i,Zi,er,Xi,t.context),Ji=void 0}}var nr,ir={create:tr,update:tr};function rr(e,t){if(!N(e.data.domProps)||!N(t.data.domProps)){var n,i,r=t.elm,a=e.data.domProps||{},o=t.data.domProps||{};for(n in R(o.__ob__)&&(o=t.data.domProps=b({},o)),a)n in o||(r[n]="");for(n in o){if(i=o[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===a[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var s=N(i)?"":String(i);ar(r,s)&&(r.value=s)}else if("innerHTML"===n&&Jn(r.tagName)&&N(r.innerHTML)){(nr=nr||document.createElement("div")).innerHTML="<svg>"+i+"</svg>";for(var l=nr.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;l.firstChild;)r.appendChild(l.firstChild)}else if(i!==a[n])try{r[n]=i}catch(e){}}}}function ar(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,i=e._vModifiers;if(R(i)){if(i.number)return L(n)!==L(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var or={create:rr,update:rr},sr=e(function(e){var n={},i=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(i);t.length>1&&(n[t[0].trim()]=t[1].trim())}}),n});function lr(e){var t=cr(e.style);return e.staticStyle?b(e.staticStyle,t):t}function cr(e){return Array.isArray(e)?w(e):"string"==typeof e?sr(e):e}var dr,ur=/^--/,pr=/\s*!important$/,fr=function(e,t,n){if(ur.test(t))e.style.setProperty(t,n);else if(pr.test(n))e.style.setProperty(g(t),n.replace(pr,""),"important");else{var i=mr(t);if(Array.isArray(n))for(var r=0,a=n.length;r<a;r++)e.style[i]=n[r];else e.style[i]=n}},hr=["Webkit","Moz","ms"],mr=e(function(e){if(dr=dr||document.createElement("div").style,"filter"!==(e=h(e))&&e in dr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<hr.length;n++){var i=hr[n]+t;if(i in dr)return i}});function vr(e,t){var n=t.data,i=e.data;if(!(N(n.staticStyle)&&N(n.style)&&N(i.staticStyle)&&N(i.style))){var r,a,o=t.elm,s=i.staticStyle,l=i.normalizedStyle||i.style||{},c=s||l,d=cr(t.data.style)||{};t.data.normalizedStyle=R(d.__ob__)?b({},d):d;var u=function(e,t){var n,i={};if(t)for(var r=e;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=lr(r.data))&&b(i,n);(n=lr(e.data))&&b(i,n);for(var a=e;a=a.parent;)a.data&&(n=lr(a.data))&&b(i,n);return i}(t,!0);for(a in c)N(u[a])&&fr(o,a,"");for(a in u)(r=u[a])!==c[a]&&fr(o,a,null==r?"":r)}}var gr={create:vr,update:vr},_r=/\s+/;function yr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(_r).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function br(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(_r).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function wr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&b(t,Cr(e.name||"v")),b(t,e),t}return"string"==typeof e?Cr(e):void 0}}var Cr=e(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),xr=z&&!J,kr="transition",Sr="animation",Dr="transition",Tr="transitionend",$r="animation",Er="animationend";xr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Dr="WebkitTransition",Tr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&($r="WebkitAnimation",Er="webkitAnimationEnd"));var Or=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ar(e){Or(function(){Or(e)})}function Pr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),yr(e,t))}function Mr(e,t){e._transitionClasses&&p(e._transitionClasses,t),br(e,t)}function Ir(t,e,n){var i=Rr(t,e),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===kr?Tr:Er,l=0,c=function(){t.removeEventListener(s,d),n()},d=function(e){e.target===t&&++l>=o&&c()};setTimeout(function(){l<o&&c()},a+1),t.addEventListener(s,d)}var Nr=/\b(transform|all)(,|$)/;function Rr(e,t){var n,i=window.getComputedStyle(e),r=(i[Dr+"Delay"]||"").split(", "),a=(i[Dr+"Duration"]||"").split(", "),o=Fr(r,a),s=(i[$r+"Delay"]||"").split(", "),l=(i[$r+"Duration"]||"").split(", "),c=Fr(s,l),d=0,u=0;return t===kr?o>0&&(n=kr,d=o,u=a.length):t===Sr?c>0&&(n=Sr,d=c,u=l.length):u=(n=(d=Math.max(o,c))>0?o>c?kr:Sr:null)?n===kr?a.length:l.length:0,{type:n,timeout:d,propCount:u,hasTransform:n===kr&&Nr.test(i[Dr+"Property"])}}function Fr(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max.apply(null,e.map(function(e,t){return Lr(e)+Lr(n[t])}))}function Lr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function jr(n,e){var i=n.elm;R(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var t=wr(n.data.transition);if(!N(t)&&!R(i._enterCb)&&1===i.nodeType){for(var r=t.css,a=t.type,o=t.enterClass,s=t.enterToClass,l=t.enterActiveClass,c=t.appearClass,d=t.appearToClass,u=t.appearActiveClass,p=t.beforeEnter,f=t.enter,h=t.afterEnter,m=t.enterCancelled,v=t.beforeAppear,g=t.appear,_=t.afterAppear,y=t.appearCancelled,b=t.duration,w=Gt,C=Gt.$vnode;C&&C.parent;)w=C.context,C=C.parent;var x=!w._isMounted||!n.isRootInsert;if(!x||g||""===g){var k=x&&c?c:o,S=x&&u?u:l,D=x&&d?d:s,T=x&&v||p,$=x&&"function"==typeof g?g:f,E=x&&_||h,O=x&&y||m,A=L(F(b)?b.enter:b),P=!1!==r&&!J,M=Br($),I=i._enterCb=j(function(){P&&(Mr(i,D),Mr(i,S)),I.cancelled?(P&&Mr(i,k),O&&O(i)):E&&E(i),i._enterCb=null});n.data.show||at(n,"insert",function(){var e=i.parentNode,t=e&&e._pending&&e._pending[n.key];t&&t.tag===n.tag&&t.elm._leaveCb&&t.elm._leaveCb(),$&&$(i,I)}),T&&T(i),P&&(Pr(i,k),Pr(i,S),Ar(function(){Mr(i,k),I.cancelled||(Pr(i,D),M||(qr(A)?setTimeout(I,A):Ir(i,a,I)))})),n.data.show&&(e&&e(),$&&$(i,I)),P||M||I()}}}function Hr(e,t){var n=e.elm;R(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=wr(e.data.transition);if(N(i)||1!==n.nodeType)return t();if(!R(n._leaveCb)){var r=i.css,a=i.type,o=i.leaveClass,s=i.leaveToClass,l=i.leaveActiveClass,c=i.beforeLeave,d=i.leave,u=i.afterLeave,p=i.leaveCancelled,f=i.delayLeave,h=i.duration,m=!1!==r&&!J,v=Br(d),g=L(F(h)?h.leave:h),_=n._leaveCb=j(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),m&&(Mr(n,s),Mr(n,l)),_.cancelled?(m&&Mr(n,o),p&&p(n)):(t(),u&&u(n)),n._leaveCb=null});f?f(y):y()}function y(){_.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),c&&c(n),m&&(Pr(n,o),Pr(n,l),Ar(function(){Mr(n,o),_.cancelled||(Pr(n,s),v||(qr(g)?setTimeout(_,g):Ir(n,a,_)))})),d&&d(n,_),m||v||_())}}function qr(e){return"number"==typeof e&&!isNaN(e)}function Br(e){if(N(e))return!1;var t=e.fns;return R(t)?Br(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function zr(e,t){!0!==t.data.show&&jr(t)}var Yr=function(e){var i,t,v={},n=e.modules,g=e.nodeOps;for(i=0;i<ri.length;++i)for(v[ri[i]]=[],t=0;t<n.length;++t)R(n[t][ri[i]])&&v[ri[i]].push(n[t][ri[i]]);function r(e){var t=g.parentNode(e);R(t)&&g.removeChild(t,e)}function _(e,t,n,i,r,a,o){if(R(e.elm)&&R(a)&&(e=a[o]=ve(e)),e.isRootInsert=!r,!function(e,t,n,i){var r=e.data;if(R(r)){var a=R(e.componentInstance)&&r.keepAlive;if(R(r=r.hook)&&R(r=r.init)&&r(e,!1),R(e.componentInstance))return f(e,t),d(n,e.elm,i),$(a)&&function(e,t,n,i){for(var r,a=e;a.componentInstance;)if(a=a.componentInstance._vnode,R(r=a.data)&&R(r=r.transition)){for(r=0;r<v.activate.length;++r)v.activate[r](ii,a);t.push(a);break}d(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var s=e.data,l=e.children,c=e.tag;R(c)?(e.elm=e.ns?g.createElementNS(e.ns,c):g.createElement(c,e),u(e),h(e,l,t),R(s)&&m(e,t),d(n,e.elm,i)):$(e.isComment)?(e.elm=g.createComment(e.text),d(n,e.elm,i)):(e.elm=g.createTextNode(e.text),d(n,e.elm,i))}}function f(e,t){R(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,y(e)?(m(e,t),u(e)):(ni(e),t.push(e))}function d(e,t,n){R(e)&&(R(n)?g.parentNode(n)===e&&g.insertBefore(e,t,n):g.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var i=0;i<t.length;++i)_(t[i],n,e.elm,null,!0,t,i);else E(e.text)&&g.appendChild(e.elm,g.createTextNode(String(e.text)))}function y(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return R(e.tag)}function m(e,t){for(var n=0;n<v.create.length;++n)v.create[n](ii,e);R(i=e.data.hook)&&(R(i.create)&&i.create(ii,e),R(i.insert)&&t.push(e))}function u(e){var t;if(R(t=e.fnScopeId))g.setStyleScope(e.elm,t);else for(var n=e;n;)R(t=n.context)&&R(t=t.$options._scopeId)&&g.setStyleScope(e.elm,t),n=n.parent;R(t=Gt)&&t!==e.context&&t!==e.fnContext&&R(t=t.$options._scopeId)&&g.setStyleScope(e.elm,t)}function b(e,t,n,i,r,a){for(;i<=r;++i)_(n[i],a,e,t,!1,n,i)}function w(e){var t,n,i=e.data;if(R(i))for(R(t=i.hook)&&R(t=t.destroy)&&t(e),t=0;t<v.destroy.length;++t)v.destroy[t](e);if(R(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function C(e,t,n){for(;t<=n;++t){var i=e[t];R(i)&&(R(i.tag)?(a(i),w(i)):r(i.elm))}}function a(e,t){if(R(t)||R(e.data)){var n,i=v.remove.length+1;for(R(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&r(e)}return n.listeners=t,n}(e.elm,i),R(n=e.componentInstance)&&R(n=n._vnode)&&R(n.data)&&a(n,t),n=0;n<v.remove.length;++n)v.remove[n](e,t);R(n=e.data.hook)&&R(n=n.remove)?n(e,t):t()}else r(e.elm)}function x(e,t,n,i){for(var r=n;r<i;r++){var a=t[r];if(R(a)&&ai(e,a))return r}}function k(e,t,n,i,r,a){if(e!==t){R(t.elm)&&R(i)&&(t=i[r]=ve(t));var o=t.elm=e.elm;if($(e.isAsyncPlaceholder))R(t.asyncFactory.resolved)?T(e.elm,t,n):t.isAsyncPlaceholder=!0;else if($(t.isStatic)&&$(e.isStatic)&&t.key===e.key&&($(t.isCloned)||$(t.isOnce)))t.componentInstance=e.componentInstance;else{var s,l=t.data;R(l)&&R(s=l.hook)&&R(s=s.prepatch)&&s(e,t);var c=e.children,d=t.children;if(R(l)&&y(t)){for(s=0;s<v.update.length;++s)v.update[s](e,t);R(s=l.hook)&&R(s=s.update)&&s(e,t)}N(t.text)?R(c)&&R(d)?c!==d&&function(e,t,n,i,r){for(var a,o,s,l=0,c=0,d=t.length-1,u=t[0],p=t[d],f=n.length-1,h=n[0],m=n[f],v=!r;l<=d&&c<=f;)N(u)?u=t[++l]:N(p)?p=t[--d]:ai(u,h)?(k(u,h,i,n,c),u=t[++l],h=n[++c]):ai(p,m)?(k(p,m,i,n,f),p=t[--d],m=n[--f]):ai(u,m)?(k(u,m,i,n,f),v&&g.insertBefore(e,u.elm,g.nextSibling(p.elm)),u=t[++l],m=n[--f]):ai(p,h)?(k(p,h,i,n,c),v&&g.insertBefore(e,p.elm,u.elm),p=t[--d],h=n[++c]):(N(a)&&(a=oi(t,l,d)),N(o=R(h.key)?a[h.key]:x(h,t,l,d))?_(h,i,e,u.elm,!1,n,c):ai(s=t[o],h)?(k(s,h,i,n,c),t[o]=void 0,v&&g.insertBefore(e,s.elm,u.elm)):_(h,i,e,u.elm,!1,n,c),h=n[++c]);l>d?b(e,N(n[f+1])?null:n[f+1].elm,n,c,f,i):c>f&&C(t,l,d)}(o,c,d,n,a):R(d)?(R(e.text)&&g.setTextContent(o,""),b(o,null,d,0,d.length-1,n)):R(c)?C(c,0,c.length-1):R(e.text)&&g.setTextContent(o,""):e.text!==t.text&&g.setTextContent(o,t.text),R(l)&&R(s=l.hook)&&R(s=s.postpatch)&&s(e,t)}}}function S(e,t,n){if($(n)&&R(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var D=o("attrs,class,staticClass,staticStyle,key");function T(e,t,n,i){var r,a=t.tag,o=t.data,s=t.children;if(i=i||o&&o.pre,t.elm=e,$(t.isComment)&&R(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(R(o)&&(R(r=o.hook)&&R(r=r.init)&&r(t,!0),R(r=t.componentInstance)))return f(t,n),!0;if(R(a)){if(R(s))if(e.hasChildNodes())if(R(r=o)&&R(r=r.domProps)&&R(r=r.innerHTML)){if(r!==e.innerHTML)return!1}else{for(var l=!0,c=e.firstChild,d=0;d<s.length;d++){if(!c||!T(c,s[d],n,i)){l=!1;break}c=c.nextSibling}if(!l||c)return!1}else h(t,s,n);if(R(o)){var u=!1;for(var p in o)if(!D(p)){u=!0,m(t,n);break}!u&&o.class&&tt(o.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!N(t)){var r,a=!1,o=[];if(N(e))a=!0,_(t,o);else{var s=R(e.nodeType);if(!s&&ai(e,t))k(e,t,o,null,null,i);else{if(s){if(1===e.nodeType&&e.hasAttribute(O)&&(e.removeAttribute(O),n=!0),$(n)&&T(e,t,o))return S(t,o,!0),e;r=e,e=new pe(g.tagName(r).toLowerCase(),{},[],void 0,r)}var l=e.elm,c=g.parentNode(l);if(_(t,o,l._leaveCb?null:c,g.nextSibling(l)),R(t.parent))for(var d=t.parent,u=y(t);d;){for(var p=0;p<v.destroy.length;++p)v.destroy[p](d);if(d.elm=t.elm,u){for(var f=0;f<v.create.length;++f)v.create[f](ii,d);var h=d.data.hook.insert;if(h.merged)for(var m=1;m<h.fns.length;m++)h.fns[m]()}else ni(d);d=d.parent}R(c)?C([e],0,0):R(e.tag)&&w(e)}}return S(t,o,a),t.elm}R(e)&&w(e)}}({nodeOps:ei,modules:[gi,Si,ir,or,gr,z?{create:zr,activate:zr,remove:function(e,t){!0!==e.data.show?Hr(e,t):t()}}:{}].concat(fi)});J&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Qr(e,"input")});var Ur={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?at(n,"postpatch",function(){Ur.componentUpdated(e,t,n)}):Wr(e,t,n.context),e._vOptions=[].map.call(e.options,Gr)):("textarea"===n.tag||Qn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Kr),e.addEventListener("compositionend",Xr),e.addEventListener("change",Xr),J&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Wr(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Gr);if(r.some(function(e,t){return!k(e,i[t])}))(e.multiple?t.value.some(function(e){return Jr(e,r)}):t.value!==t.oldValue&&Jr(t.value,r))&&Qr(e,"change")}}};function Wr(e,t,n){Vr(e,t,n),(V||G)&&setTimeout(function(){Vr(e,t,n)},0)}function Vr(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],r)a=S(i,Gr(o))>-1,o.selected!==a&&(o.selected=a);else if(k(Gr(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function Jr(t,e){return e.every(function(e){return!k(e,t)})}function Gr(e){return"_value"in e?e._value:e.value}function Kr(e){e.target.composing=!0}function Xr(e){e.target.composing&&(e.target.composing=!1,Qr(e.target,"input"))}function Qr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Zr(e){return!e.componentInstance||e.data&&e.data.transition?e:Zr(e.componentInstance._vnode)}var ea={model:Ur,show:{bind:function(e,t,n){var i=t.value,r=(n=Zr(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,jr(n,function(){e.style.display=a})):e.style.display=i?a:"none"},update:function(e,t,n){var i=t.value;!i!=!t.oldValue&&((n=Zr(n)).data&&n.data.transition?(n.data.show=!0,i?jr(n,function(){e.style.display=e.__vOriginalDisplay}):Hr(n,function(){e.style.display="none"})):e.style.display=i?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}}},ta={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function na(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?na(Yt(t.children)):e}function ia(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var a in r)t[h(a)]=r[a];return t}function ra(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var aa=function(e){return e.tag||pt(e)},oa=function(e){return"show"===e.name},sa={name:"transition",props:ta,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(aa)).length){var i=this.mode,r=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var a=na(r);if(!a)return r;if(this._leaving)return ra(e,r);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:E(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var s=(a.data||(a.data={})).transition=ia(this),l=this._vnode,c=na(l);if(a.data.directives&&a.data.directives.some(oa)&&(a.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,c)&&!pt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=b({},s);if("out-in"===i)return this._leaving=!0,at(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ra(e,r);if("in-out"===i){if(pt(a))return l;var u,p=function(){u()};at(s,"afterEnter",p),at(s,"enterCancelled",p),at(d,"delayLeave",function(e){u=e})}}return r}}},la=b({tag:String,moveClass:String},ta);function ca(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function da(e){e.data.newPos=e.elm.getBoundingClientRect()}function ua(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+r+"px)",a.transitionDuration="0s"}}delete la.mode;var pa={Transition:sa,TransitionGroup:{props:la,beforeMount:function(){var i=this,r=this._update;this._update=function(e,t){var n=Kt(i);i.__patch__(i._vnode,i.kept,!1,!0),i._vnode=i.kept,n(),r.call(i,e,t)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=ia(this),s=0;s<r.length;s++){var l=r[s];l.tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o)}if(i){for(var c=[],d=[],u=0;u<i.length;u++){var p=i[u];p.data.transition=o,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?c.push(p):d.push(p)}this.kept=e(t,null,c),this.removed=d}return e(t,null,a)},updated:function(){var e=this.prevChildren,i=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,i)&&(e.forEach(ca),e.forEach(da),e.forEach(ua),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,t=n.style;Pr(n,i),t.transform=t.WebkitTransform=t.transitionDuration="",n.addEventListener(Tr,n._moveCb=function e(t){t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener(Tr,e),n._moveCb=null,Mr(n,i))})}}))},methods:{hasMove:function(e,t){if(!xr)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){br(n,e)}),yr(n,t),n.style.display="none",this.$el.appendChild(n);var i=Rr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};xn.config.mustUseProp=Mn,xn.config.isReservedTag=Gn,xn.config.isReservedAttr=An,xn.config.getTagNamespace=Kn,xn.config.isUnknownElement=function(e){if(!z)return!0;if(Gn(e))return!1;if(e=e.toLowerCase(),null!=Xn[e])return Xn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Xn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Xn[e]=/HTMLUnknownElement/.test(t.toString())},b(xn.options.directives,ea),b(xn.options.components,pa),xn.prototype.__patch__=z?Yr:C,xn.prototype.$mount=function(e,t){return function(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=he),Zt(e,"beforeMount"),i=function(){e._update(e._render(),n)},new pn(e,i,C,{before:function(){e._isMounted&&!e._isDestroyed&&Zt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Zt(e,"mounted")),e}(this,e=e&&z?Zn(e):void 0,t)},z&&setTimeout(function(){P.devtools&&ne&&ne.emit("init",xn)},0);var fa=/\{\{((?:.|\r?\n)+?)\}\}/g,ha=/[-.*+?^${}()|[\]\/\\]/g,ma=e(function(e){var t=e[0].replace(ha,"\\$&"),n=e[1].replace(ha,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var va={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Li(e,"class");n&&(e.staticClass=JSON.stringify(n));var i=Fi(e,"class",!1);i&&(e.classBinding=i)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var ga,_a={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Li(e,"style");n&&(e.staticStyle=JSON.stringify(sr(n)));var i=Fi(e,"style",!1);i&&(e.styleBinding=i)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},ya=function(e){return(ga=ga||document.createElement("div")).innerHTML=e,ga.textContent},ba=o("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),wa=o("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ca=o("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),xa=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ka=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Sa="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+M.source+"]*",Da="((?:"+Sa+"\\:)?"+Sa+")",Ta=new RegExp("^<"+Da),$a=/^\s*(\/?)>/,Ea=new RegExp("^<\\/"+Da+"[^>]*>"),Oa=/^<!DOCTYPE [^>]+>/i,Aa=/^<!\--/,Pa=/^<!\[/,Ma=o("script,style,textarea",!0),Ia={},Na={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Ra=/&(?:lt|gt|quot|amp|#39);/g,Fa=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,La=o("pre,textarea",!0),ja=function(e,t){return e&&La(e)&&"\n"===t[0]};function Ha(e,t){var n=t?Fa:Ra;return e.replace(n,function(e){return Na[e]})}var qa,Ba,za,Ya,Ua,Wa,Va,Ja,Ga=/^@|^v-on:/,Ka=/^v-|^@|^:|^#/,Xa=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Qa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Za=/^\(|\)$/g,eo=/^\[.*\]$/,to=/:(.*)$/,no=/^:|^\.|^v-bind:/,io=/\.[^.\]]+(?=[^\]]*$)/g,ro=/^v-slot(:|$)|^#/,ao=/[\r\n]/,oo=/[ \f\t\r\n]+/g,so=e(ya),lo="_empty_";function co(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:go(t),rawAttrsMap:{},parent:n,children:[]}}function uo(e,c){qa=c.warn||Ei,Wa=c.isPreTag||T,Va=c.mustUseProp||T,Ja=c.getTagNamespace||T;c.isReservedTag;za=Oi(c.modules,"transformNode"),Ya=Oi(c.modules,"preTransformNode"),Ua=Oi(c.modules,"postTransformNode"),Ba=c.delimiters;var d,u,p=[],s=!1!==c.preserveWhitespace,l=c.whitespace,f=!1,h=!1;function m(e){if(a(e),f||e.processed||(e=po(e,c)),p.length||e===d||d.if&&(e.elseif||e.else)&&ho(d,{exp:e.elseif,block:e}),u&&!e.forbidden)if(e.elseif||e.else)n=e,(i=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(u.children))&&i.if&&ho(i,{exp:n.elseif,block:n});else{if(e.slotScope){var t=e.slotTarget||'"default"';(u.scopedSlots||(u.scopedSlots={}))[t]=e}u.children.push(e),e.parent=u}var n,i;e.children=e.children.filter(function(e){return!e.slotScope}),a(e),e.pre&&(f=!1),Wa(e.tag)&&(h=!1);for(var r=0;r<Ua.length;r++)Ua[r](e,c)}function a(e){if(!h)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(r,d){for(var e,u,p=[],f=d.expectHTML,h=d.isUnaryTag||T,m=d.canBeLeftOpenTag||T,o=0;r;){if(e=r,u&&Ma(u)){var i=0,a=u.toLowerCase(),t=Ia[a]||(Ia[a]=new RegExp("([\\s\\S]*?)(</"+a+"[^>]*>)","i")),n=r.replace(t,function(e,t,n){return i=n.length,Ma(a)||"noscript"===a||(t=t.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),ja(a,t)&&(t=t.slice(1)),d.chars&&d.chars(t),""});o+=r.length-n.length,r=n,D(a,o-i,o)}else{var s=r.indexOf("<");if(0===s){if(Aa.test(r)){var l=r.indexOf("--\x3e");if(l>=0){d.shouldKeepComment&&d.comment(r.substring(4,l),o,o+l+3),x(l+3);continue}}if(Pa.test(r)){var c=r.indexOf("]>");if(c>=0){x(c+2);continue}}var v=r.match(Oa);if(v){x(v[0].length);continue}var g=r.match(Ea);if(g){var _=o;x(g[0].length),D(g[1],_,o);continue}var y=k();if(y){S(y),ja(y.tagName,r)&&x(1);continue}}var b=void 0,w=void 0,C=void 0;if(s>=0){for(w=r.slice(s);!(Ea.test(w)||Ta.test(w)||Aa.test(w)||Pa.test(w)||(C=w.indexOf("<",1))<0);)s+=C,w=r.slice(s);b=r.substring(0,s)}s<0&&(b=r),b&&x(b.length),d.chars&&b&&d.chars(b,o-b.length,o)}if(r===e){d.chars&&d.chars(r);break}}function x(e){o+=e,r=r.substring(e)}function k(){var e=r.match(Ta);if(e){var t,n,i={tagName:e[1],attrs:[],start:o};for(x(e[0].length);!(t=r.match($a))&&(n=r.match(ka)||r.match(xa));)n.start=o,x(n[0].length),n.end=o,i.attrs.push(n);if(t)return i.unarySlash=t[1],x(t[0].length),i.end=o,i}}function S(e){var t=e.tagName,n=e.unarySlash;f&&("p"===u&&Ca(t)&&D(u),m(t)&&u===t&&D(t));for(var i=h(t)||!!n,r=e.attrs.length,a=new Array(r),o=0;o<r;o++){var s=e.attrs[o],l=s[3]||s[4]||s[5]||"",c="a"===t&&"href"===s[1]?d.shouldDecodeNewlinesForHref:d.shouldDecodeNewlines;a[o]={name:s[1],value:Ha(l,c)}}i||(p.push({tag:t,lowerCasedTag:t.toLowerCase(),attrs:a,start:e.start,end:e.end}),u=t),d.start&&d.start(t,a,i,e.start,e.end)}function D(e,t,n){var i,r;if(null==t&&(t=o),null==n&&(n=o),e)for(r=e.toLowerCase(),i=p.length-1;i>=0&&p[i].lowerCasedTag!==r;i--);else i=0;if(i>=0){for(var a=p.length-1;a>=i;a--)d.end&&d.end(p[a].tag,t,n);p.length=i,u=i&&p[i-1].tag}else"br"===r?d.start&&d.start(e,[],!0,t,n):"p"===r&&(d.start&&d.start(e,[],!1,t,n),d.end&&d.end(e,t,n))}D()}(e,{warn:qa,expectHTML:c.expectHTML,isUnaryTag:c.isUnaryTag,canBeLeftOpenTag:c.canBeLeftOpenTag,shouldDecodeNewlines:c.shouldDecodeNewlines,shouldDecodeNewlinesForHref:c.shouldDecodeNewlinesForHref,shouldKeepComment:c.comments,outputSourceRange:c.outputSourceRange,start:function(e,t,n,i,r){var a=u&&u.ns||Ja(e);V&&"svg"===a&&(t=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];_o.test(i.name)||(i.name=i.name.replace(yo,""),t.push(i))}return t}(t));var o,s=co(e,t,u);a&&(s.ns=a),"style"!==(o=s).tag&&("script"!==o.tag||o.attrsMap.type&&"text/javascript"!==o.attrsMap.type)||te()||(s.forbidden=!0);for(var l=0;l<Ya.length;l++)s=Ya[l](s,c)||s;f||(!function(e){null!=Li(e,"v-pre")&&(e.pre=!0)}(s),s.pre&&(f=!0)),Wa(s.tag)&&(h=!0),f?function(e){var t=e.attrsList,n=t.length;if(n)for(var i=e.attrs=new Array(n),r=0;r<n;r++)i[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(i[r].start=t[r].start,i[r].end=t[r].end);else e.pre||(e.plain=!0)}(s):s.processed||(fo(s),function(e){var t=Li(e,"v-if");if(t)e.if=t,ho(e,{exp:t,block:e});else{null!=Li(e,"v-else")&&(e.else=!0);var n=Li(e,"v-else-if");n&&(e.elseif=n)}}(s),function(e){null!=Li(e,"v-once")&&(e.once=!0)}(s)),d||(d=s),n?m(s):(u=s,p.push(s))},end:function(e,t,n){var i=p[p.length-1];p.length-=1,u=p[p.length-1],m(i)},chars:function(e,t,n){if(u&&(!V||"textarea"!==u.tag||u.attrsMap.placeholder!==e)){var i,r,a,o=u.children;if(e=h||e.trim()?"script"===(i=u).tag||"style"===i.tag?e:so(e):o.length?l?"condense"===l&&ao.test(e)?"":" ":s?" ":"":"")h||"condense"!==l||(e=e.replace(oo," ")),!f&&" "!==e&&(r=function(e,t){var n=t?ma(t):fa;if(n.test(e)){for(var i,r,a,o=[],s=[],l=n.lastIndex=0;i=n.exec(e);){(r=i.index)>l&&(s.push(a=e.slice(l,r)),o.push(JSON.stringify(a)));var c=Ti(i[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=r+i[0].length}return l<e.length&&(s.push(a=e.slice(l)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}(e,Ba))?a={type:2,expression:r.expression,tokens:r.tokens,text:e}:" "===e&&o.length&&" "===o[o.length-1].text||(a={type:3,text:e}),a&&o.push(a)}},comment:function(e,t,n){if(u){var i={type:3,text:e,isComment:!0};u.children.push(i)}}}),d}function po(e,t){var n,i;(i=Fi(n=e,"key"))&&(n.key=i),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Fi(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Li(e,"scope"),e.slotScope=t||Li(e,"slot-scope")):(t=Li(e,"slot-scope"))&&(e.slotScope=t);var n=Fi(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Pi(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var i=ji(e,ro);if(i){var r=mo(i),a=r.name,o=r.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=i.value||lo}}else{var s=ji(e,ro);if(s){var l=e.scopedSlots||(e.scopedSlots={}),c=mo(s),d=c.name,u=c.dynamic,p=l[d]=co("template",[],e);p.slotTarget=d,p.slotTargetDynamic=u,p.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=p,!0}),p.slotScope=s.value||lo,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Fi(e,"name"))}(e),function(e){var t;(t=Fi(e,"is"))&&(e.component=t);null!=Li(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<za.length;r++)e=za[r](e,t)||e;return function(e){var t,n,i,r,a,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++)if(i=r=c[t].name,a=c[t].value,Ka.test(i))if(e.hasBindings=!0,(o=vo(i.replace(Ka,"")))&&(i=i.replace(io,"")),no.test(i))i=i.replace(no,""),a=Ti(a),(l=eo.test(i))&&(i=i.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(i=h(i))&&(i="innerHTML"),o.camel&&!l&&(i=h(i)),o.sync&&(s=Bi(a,"$event"),l?Ri(e,'"update:"+('+i+")",s,null,!1,0,c[t],!0):(Ri(e,"update:"+h(i),s,null,!1,0,c[t]),g(i)!==h(i)&&Ri(e,"update:"+g(i),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&Va(e.tag,e.attrsMap.type,i)?Ai(e,i,a,c[t],l):Pi(e,i,a,c[t],l);else if(Ga.test(i))i=i.replace(Ga,""),(l=eo.test(i))&&(i=i.slice(1,-1)),Ri(e,i,a,o,!1,0,c[t],l);else{var d=(i=i.replace(Ka,"")).match(to),u=d&&d[1];l=!1,u&&(i=i.slice(0,-(u.length+1)),eo.test(u)&&(u=u.slice(1,-1),l=!0)),Ii(e,i,r,a,u,l,o,c[t])}else Pi(e,i,JSON.stringify(a),c[t]),!e.component&&"muted"===i&&Va(e.tag,e.attrsMap.type,i)&&Ai(e,i,"true",c[t])}(e),e}function fo(e){var t;if(t=Li(e,"v-for")){var n=function(e){var t=e.match(Xa);if(!t)return;var n={};n.for=t[2].trim();var i=t[1].trim().replace(Za,""),r=i.match(Qa);r?(n.alias=i.replace(Qa,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i;return n}(t);n&&b(e,n)}}function ho(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function mo(e){var t=e.name.replace(ro,"");return t||"#"!==e.name[0]&&(t="default"),eo.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function vo(e){var t=e.match(io);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function go(e){for(var t={},n=0,i=e.length;n<i;n++)t[e[n].name]=e[n].value;return t}var _o=/^xmlns:NS\d+/,yo=/^NS\d+:/;function bo(e){return co(e.tag,e.attrsList.slice(),e.parent)}var wo=[va,_a,{preTransformNode:function(e,t){if("input"===e.tag){var n,i=e.attrsMap;if(!i["v-model"])return;if((i[":type"]||i["v-bind:type"])&&(n=Fi(e,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=Li(e,"v-if",!0),a=r?"&&("+r+")":"",o=null!=Li(e,"v-else",!0),s=Li(e,"v-else-if",!0),l=bo(e);fo(l),Mi(l,"type","checkbox"),po(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+a,ho(l,{exp:l.if,block:l});var c=bo(e);Li(c,"v-for",!0),Mi(c,"type","radio"),po(c,t),ho(l,{exp:"("+n+")==='radio'"+a,block:c});var d=bo(e);return Li(d,"v-for",!0),Mi(d,":type",n),po(d,t),ho(l,{exp:r,block:d}),o?l.else=!0:s&&(l.elseif=s),l}}}}];var Co,xo,ko={expectHTML:!0,modules:wo,directives:{model:function(e,t,n){var i=t.value,r=t.modifiers,a=e.tag,o=e.attrsMap.type;if(e.component)return qi(e,i,r),!1;if("select"===a)!function(e,t,n){var i='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";i=i+" "+Bi(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ri(e,"change",i,null,!0)}(e,i,r);else if("input"===a&&"checkbox"===o)!function(e,t,n){var i=n&&n.number,r=Fi(e,"value")||"null",a=Fi(e,"true-value")||"true",o=Fi(e,"false-value")||"false";Ai(e,"checked","Array.isArray("+t+")?_i("+t+","+r+")>-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),Ri(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Bi(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Bi(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Bi(t,"$$c")+"}",null,!0)}(e,i,r);else if("input"===a&&"radio"===o)!function(e,t,n){var i=n&&n.number,r=Fi(e,"value")||"null";Ai(e,"checked","_q("+t+","+(r=i?"_n("+r+")":r)+")"),Ri(e,"change",Bi(t,r),null,!0)}(e,i,r);else if("input"===a||"textarea"===a)!function(e,t,n){var i=e.attrsMap.type,r=n||{},a=r.lazy,o=r.number,s=r.trim,l=!a&&"range"!==i,c=a?"change":"range"===i?Gi:"input",d="$event.target.value";s&&(d="$event.target.value.trim()"),o&&(d="_n("+d+")");var u=Bi(t,d);l&&(u="if($event.target.composing)return;"+u),Ai(e,"value","("+t+")"),Ri(e,c,u,null,!0),(s||o)&&Ri(e,"blur","$forceUpdate()")}(e,i,r);else if(!P.isReservedTag(a))return qi(e,i,r),!1;return!0},text:function(e,t){t.value&&Ai(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ai(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ba,mustUseProp:Mn,canBeLeftOpenTag:wa,isReservedTag:Gn,getTagNamespace:Kn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(wo)},So=e(function(e){return o("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function Do(e,t){e&&(Co=So(t.staticKeys||""),xo=t.isReservedTag||T,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||c(e.tag)||!xo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Co)))}(t);if(1===t.type){if(!xo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,i=t.children.length;n<i;n++){var r=t.children[n];e(r),r.static||(t.static=!1)}if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++){var s=t.ifConditions[a].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var i=0,r=t.children.length;i<r;i++)e(t.children[i],n||!!t.for);if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++)e(t.ifConditions[a].block,n)}}(e,!1))}var To=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,$o=/\([^)]*?\);*$/,Eo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ao={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Po=function(e){return"if("+e+")return null;"},Mo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Po("$event.target !== $event.currentTarget"),ctrl:Po("!$event.ctrlKey"),shift:Po("!$event.shiftKey"),alt:Po("!$event.altKey"),meta:Po("!$event.metaKey"),left:Po("'button' in $event && $event.button !== 0"),middle:Po("'button' in $event && $event.button !== 1"),right:Po("'button' in $event && $event.button !== 2")};function Io(e,t){var n=t?"nativeOn:":"on:",i="",r="";for(var a in e){var o=No(e[a]);e[a]&&e[a].dynamic?r+=a+","+o+",":i+='"'+a+'":'+o+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function No(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return No(e)}).join(",")+"]";var t=Eo.test(e.value),n=To.test(e.value),i=Eo.test(e.value.replace($o,""));if(e.modifiers){var r="",a="",o=[];for(var s in e.modifiers)if(Mo[s])a+=Mo[s],Oo[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;a+=Po(["ctrl","shift","alt","meta"].filter(function(e){return!l[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else o.push(s);return o.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ro).join("&&")+")return null;"}(o)),a&&(r+=a),"function($event){"+r+(t?"return "+e.value+".apply(null, arguments)":n?"return ("+e.value+").apply(null, arguments)":i?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(i?"return "+e.value:e.value)+"}"}function Ro(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Oo[e],i=Ao[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}var Fo={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(t,n){t.wrapData=function(e){return"_b("+e+",'"+t.tag+"',"+n.value+","+(n.modifiers&&n.modifiers.prop?"true":"false")+(n.modifiers&&n.modifiers.sync?",true":"")+")"}},cloak:C},Lo=function(e){this.options=e,this.warn=e.warn||Ei,this.transforms=Oi(e.modules,"transformCode"),this.dataGenFns=Oi(e.modules,"genData"),this.directives=b(b({},Fo),e.directives);var t=e.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function jo(e,t){var n=new Lo(t);return{render:"with(this){return "+(e?"script"===e.tag?"null":Ho(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ho(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return qo(e,t);if(e.once&&!e.onceProcessed)return Bo(e,t);if(e.for&&!e.forProcessed)return Yo(e,t);if(e.if&&!e.ifProcessed)return zo(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',i=Jo(e,t),r="_t("+n+(i?",function(){return "+i+"}":""),a=e.attrs||e.dynamicAttrs?Xo((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:h(e.name),value:e.value,dynamic:e.dynamic}})):null,o=e.attrsMap["v-bind"];!a&&!o||i||(r+=",null");a&&(r+=","+a);o&&(r+=(a?"":",null")+","+o);return r+")"}(e,t);var n;if(e.component)n=function(e,t,n){var i=t.inlineTemplate?null:Jo(t,n,!0);return"_c("+e+","+Uo(t,n)+(i?","+i:"")+")"}(e.component,e,t);else{var i;(!e.plain||e.pre&&t.maybeComponent(e))&&(i=Uo(e,t));var r=e.inlineTemplate?null:Jo(e,t,!0);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var a=0;a<t.transforms.length;a++)n=t.transforms[a](e,n);return n}return Jo(e,t)||"void 0"}function qo(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Ho(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Bo(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return zo(e,t);if(e.staticInFor){for(var n="",i=e.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+Ho(e,t)+","+t.onceId+++","+n+")":Ho(e,t)}return qo(e,t)}function zo(e,t,n,i){return e.ifProcessed=!0,function e(t,n,i,r){if(!t.length)return r||"_e()";var a=t.shift();return a.exp?"("+a.exp+")?"+o(a.block)+":"+e(t,n,i,r):""+o(a.block);function o(e){return i?i(e,n):e.once?Bo(e,n):Ho(e,n)}}(e.ifConditions.slice(),t,n,i)}function Yo(e,t,n,i){var r=e.for,a=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(i||"_l")+"(("+r+"),function("+a+o+s+"){return "+(n||Ho)(e,t)+"})"}function Uo(e,t){var n="{",i=function(e,t){var n=e.directives;if(!n)return;var i,r,a,o,s="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){a=n[i],o=!0;var c=t.directives[a.name];c&&(o=!!c(e,a,t.warn)),o&&(l=!0,s+='{name:"'+a.name+'",rawName:"'+a.rawName+'"'+(a.value?",value:("+a.value+"),expression:"+JSON.stringify(a.value):"")+(a.arg?",arg:"+(a.isDynamicArg?a.arg:'"'+a.arg+'"'):"")+(a.modifiers?",modifiers:"+JSON.stringify(a.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(e,t);i&&(n+=i+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+="attrs:"+Xo(e.attrs)+","),e.props&&(n+="domProps:"+Xo(e.props)+","),e.events&&(n+=Io(e.events,!1)+","),e.nativeEvents&&(n+=Io(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,n,t){var i=e.for||Object.keys(n).some(function(e){var t=n[e];return t.slotTargetDynamic||t.if||t.for||Wo(t)}),r=!!e.if;if(!i)for(var a=e.parent;a;){if(a.slotScope&&a.slotScope!==lo||a.for){i=!0;break}a.if&&(r=!0),a=a.parent}var o=Object.keys(n).map(function(e){return Vo(n[e],t)}).join(",");return"scopedSlots:_u(["+o+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var a=function(e,t){var n=e.children[0];if(n&&1===n.type){var i=jo(n,t.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Xo(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Wo(e){return 1===e.type&&("slot"===e.tag||e.children.some(Wo))}function Vo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return zo(e,t,Vo,"null");if(e.for&&!e.forProcessed)return Yo(e,t,Vo);var i=e.slotScope===lo?"":String(e.slotScope),r="function("+i+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Jo(e,t)||"undefined")+":undefined":Jo(e,t)||"undefined":Ho(e,t))+"}",a=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+a+"}"}function Jo(e,t,n,i,r){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(i||Ho)(o,t)+s}var l=n?function(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];if(1===r.type){if(Go(r)||r.ifConditions&&r.ifConditions.some(function(e){return Go(e.block)})){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(a,t.maybeComponent):0,c=r||Ko;return"["+a.map(function(e){return c(e,t)}).join(",")+"]"+(l?","+l:"")}}function Go(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Ko(e,t){return 1===e.type?Ho(e,t):3===e.type&&e.isComment?(i=e,"_e("+JSON.stringify(i.text)+")"):"_v("+(2===(n=e).type?n.expression:Qo(JSON.stringify(n.text)))+")";var n,i}function Xo(e){for(var t="",n="",i=0;i<e.length;i++){var r=e[i],a=Qo(r.value);r.dynamic?n+=r.name+","+a+",":t+='"'+r.name+'":'+a+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Qo(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");function Zo(t,n){try{return new Function(t)}catch(e){return n.push({err:e,code:t}),C}}function es(s){var l=Object.create(null);return function(e,t,n){(t=b({},t)).warn;delete t.warn;var i=t.delimiters?String(t.delimiters)+e:e;if(l[i])return l[i];var r=s(e,t),a={},o=[];return a.render=Zo(r.render,o),a.staticRenderFns=r.staticRenderFns.map(function(e){return Zo(e,o)}),l[i]=a}}var ts,ns,is=(ts=function(e,t){var n=uo(e.trim(),t);!1!==t.optimize&&Do(n,t);var i=jo(n,t);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}},function(s){function e(e,t){var n=Object.create(s),i=[],r=[];if(t)for(var a in t.modules&&(n.modules=(s.modules||[]).concat(t.modules)),t.directives&&(n.directives=b(Object.create(s.directives||null),t.directives)),t)"modules"!==a&&"directives"!==a&&(n[a]=t[a]);n.warn=function(e,t,n){(n?r:i).push(e)};var o=ts(e.trim(),n);return o.errors=i,o.tips=r,o}return{compile:e,compileToFunctions:es(e)}})(ko),rs=(is.compile,is.compileToFunctions);function as(e){return(ns=ns||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',ns.innerHTML.indexOf("&#10;")>0}var os=!!z&&as(!1),ss=!!z&&as(!0),ls=e(function(e){var t=Zn(e);return t&&t.innerHTML}),cs=xn.prototype.$mount;return xn.prototype.$mount=function(e,t){if((e=e&&Zn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=ls(i));else{if(!i.nodeType)return this;i=i.innerHTML}else e&&(i=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(i){var r=rs(i,{outputSourceRange:!1,shouldDecodeNewlines:os,shouldDecodeNewlinesForHref:ss,delimiters:n.delimiters,comments:n.comments},this),a=r.render,o=r.staticRenderFns;n.render=a,n.staticRenderFns=o}}return cs.call(this,e,t)},xn.compile=rs,xn});(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t():typeof define==="function"&&define.amd?define(t):(e=e||self,e.Vue=t())})(this,function(){"use strict";var m=Object.freeze({});function N(e){return e===undefined||e===null}function R(e){return e!==undefined&&e!==null}function F(e){return e===true}function t(e){return e===false}function L(e){return typeof e==="string"||typeof e==="number"||typeof e==="symbol"||typeof e==="boolean"}function j(e){return e!==null&&typeof e==="object"}var n=Object.prototype.toString;function l(e){return n.call(e).slice(8,-1)}function c(e){return n.call(e)==="[object Object]"}function H(e){return n.call(e)==="[object RegExp]"}function r(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return R(e)&&typeof e.then==="function"&&typeof e.catch==="function"}function i(e){return e==null?"":Array.isArray(e)||c(e)&&e.toString===n?JSON.stringify(e,null,2):String(e)}function q(e){var t=parseFloat(e);return isNaN(t)?e:t}function B(e,t){var n=Object.create(null);var i=e.split(",");for(var r=0;r<i.length;r++){n[i[r]]=true}return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var a=B("slot,component",true);var p=B("key,ref,slot,slot-scope,is");function f(e,t){if(e.length){var n=e.indexOf(t);if(n>-1){return e.splice(n,1)}}}var o=Object.prototype.hasOwnProperty;function d(e,t){return o.call(e,t)}function e(i){var r=Object.create(null);return function e(t){var n=r[t];return n||(r[t]=i(t))}}var s=/-(\w)/g;var h=e(function(e){return e.replace(s,function(e,t){return t?t.toUpperCase():""})});var v=e(function(e){return e.charAt(0).toUpperCase()+e.slice(1)});var g=/\B([A-Z])/g;var _=e(function(e){return e.replace(g,"-$1").toLowerCase()});function y(n,i){function e(e){var t=arguments.length;return t?t>1?n.apply(i,arguments):n.call(i,e):n.call(i)}e._length=n.length;return e}function b(e,t){return e.bind(t)}var w=Function.prototype.bind?b:y;function C(e,t){t=t||0;var n=e.length-t;var i=new Array(n);while(n--){i[n]=e[n+t]}return i}function x(e,t){for(var n in t){e[n]=t[n]}return e}function k(e){var t={};for(var n=0;n<e.length;n++){if(e[n]){x(t,e[n])}}return t}function S(e,t,n){}var T=function(e,t,n){return false};var D=function(e){return e};function $(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function E(t,n){if(t===n){return true}var e=j(t);var i=j(n);if(e&&i){try{var r=Array.isArray(t);var a=Array.isArray(n);if(r&&a){return t.length===n.length&&t.every(function(e,t){return E(e,n[t])})}else if(t instanceof Date&&n instanceof Date){return t.getTime()===n.getTime()}else if(!r&&!a){var o=Object.keys(t);var s=Object.keys(n);return o.length===s.length&&o.every(function(e){return E(t[e],n[e])})}else{return false}}catch(e){return false}}else if(!e&&!i){return String(t)===String(n)}else{return false}}function O(e,t){for(var n=0;n<e.length;n++){if(E(e[n],t)){return n}}return-1}function z(e){var t=false;return function(){if(!t){t=true;e.apply(this,arguments)}}}var Y="data-server-rendered";var A=["component","directive","filter"];var P=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"];var U={optionMergeStrategies:Object.create(null),silent:false,productionTip:"development"!=="production",devtools:"development"!=="production",performance:false,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:T,isReservedAttr:T,isUnknownElement:T,getTagNamespace:S,parsePlatformTagName:D,mustUseProp:T,async:true,_lifecycleHooks:P};var M=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function I(e){var t=(e+"").charCodeAt(0);return t===36||t===95}function W(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:true,configurable:true})}var V=new RegExp("[^"+M.source+".$_\\d]");function J(e){if(V.test(e)){return}var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e){return}e=e[n[t]]}return e}}var G="__proto__"in{};var K=typeof window!=="undefined";var X=typeof WXEnvironment!=="undefined"&&!!WXEnvironment.platform;var Q=X&&WXEnvironment.platform.toLowerCase();var Z=K&&window.navigator.userAgent.toLowerCase();var ee=Z&&/msie|trident/.test(Z);var te=Z&&Z.indexOf("msie 9.0")>0;var ne=Z&&Z.indexOf("edge/")>0;var ie=Z&&Z.indexOf("android")>0||Q==="android";var re=Z&&/iphone|ipad|ipod|ios/.test(Z)||Q==="ios";var ae=Z&&/chrome\/\d+/.test(Z)&&!ne;var oe=Z&&/phantomjs/.test(Z);var se=Z&&Z.match(/firefox\/(\d+)/);var le={}.watch;var ce=false;if(K){try{var de={};Object.defineProperty(de,"passive",{get:function e(){ce=true}});window.addEventListener("test-passive",null,de)}catch(e){}}var ue;var pe=function(){if(ue===undefined){if(!K&&!X&&typeof global!=="undefined"){ue=global["process"]&&global["process"].env.VUE_ENV==="server"}else{ue=false}}return ue};var fe=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return typeof e==="function"&&/native code/.test(e.toString())}var me=typeof Symbol!=="undefined"&&he(Symbol)&&typeof Reflect!=="undefined"&&he(Reflect.ownKeys);var ve;if(typeof Set!=="undefined"&&he(Set)){ve=Set}else{ve=function(){function e(){this.set=Object.create(null)}e.prototype.has=function e(t){return this.set[t]===true};e.prototype.add=function e(t){this.set[t]=true};e.prototype.clear=function e(){this.set=Object.create(null)};return e}()}var ge=S;var _e=S;var ye=S;var be=S;{var we=typeof console!=="undefined";var Ce=/(?:^|[-_])(\w)/g;var xe=function(e){return e.replace(Ce,function(e){return e.toUpperCase()}).replace(/[-_]/g,"")};ge=function(e,t){var n=t?ye(t):"";if(U.warnHandler){U.warnHandler.call(null,e,t,n)}else if(we&&!U.silent){console.error("[Vue warn]: "+e+n)}};_e=function(e,t){if(we&&!U.silent){console.warn("[Vue tip]: "+e+(t?ye(t):""))}};be=function(e,t){if(e.$root===e){return"<Root>"}var n=typeof e==="function"&&e.cid!=null?e.options:e._isVue?e.$options||e.constructor.options:e;var i=n.name||n._componentTag;var r=n.__file;if(!i&&r){var a=r.match(/([^/\\]+)\.vue$/);i=a&&a[1]}return(i?"<"+xe(i)+">":"<Anonymous>")+(r&&t!==false?" at "+r:"")};var ke=function(e,t){var n="";while(t){if(t%2===1){n+=e}if(t>1){e+=e}t>>=1}return n};ye=function(e){if(e._isVue&&e.$parent){var t=[];var n=0;while(e){if(t.length>0){var i=t[t.length-1];if(i.constructor===e.constructor){n++;e=e.$parent;continue}else if(n>0){t[t.length-1]=[i,n];n=0}}t.push(e);e=e.$parent}return"\n\nfound in\n\n"+t.map(function(e,t){return""+(t===0?"---\x3e ":ke(" ",5+t*2))+(Array.isArray(e)?be(e[0])+"... ("+e[1]+" recursive calls)":be(e))}).join("\n")}else{return"\n\n(found in "+be(e)+")"}}}var Se=0;var De=function e(){this.id=Se++;this.subs=[]};De.prototype.addSub=function e(t){this.subs.push(t)};De.prototype.removeSub=function e(t){f(this.subs,t)};De.prototype.depend=function e(){if(De.target){De.target.addDep(this)}};De.prototype.notify=function e(){var t=this.subs.slice();if(!U.async){t.sort(function(e,t){return e.id-t.id})}for(var n=0,i=t.length;n<i;n++){t[n].update()}};De.target=null;var Te=[];function $e(e){Te.push(e);De.target=e}function Ee(){Te.pop();De.target=Te[Te.length-1]}var Oe=function e(t,n,i,r,a,o,s,l){this.tag=t;this.data=n;this.children=i;this.text=r;this.elm=a;this.ns=undefined;this.context=o;this.fnContext=undefined;this.fnOptions=undefined;this.fnScopeId=undefined;this.key=n&&n.key;this.componentOptions=s;this.componentInstance=undefined;this.parent=undefined;this.raw=false;this.isStatic=false;this.isRootInsert=true;this.isComment=false;this.isCloned=false;this.isOnce=false;this.asyncFactory=l;this.asyncMeta=undefined;this.isAsyncPlaceholder=false};var Ae={child:{configurable:true}};Ae.child.get=function(){return this.componentInstance};Object.defineProperties(Oe.prototype,Ae);var Pe=function(e){if(e===void 0)e="";var t=new Oe;t.text=e;t.isComment=true;return t};function Me(e){return new Oe(undefined,undefined,undefined,String(e))}function Ie(e){var t=new Oe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);t.ns=e.ns;t.isStatic=e.isStatic;t.key=e.key;t.isComment=e.isComment;t.fnContext=e.fnContext;t.fnOptions=e.fnOptions;t.fnScopeId=e.fnScopeId;t.asyncMeta=e.asyncMeta;t.isCloned=true;return t}var Ne=Array.prototype;var Re=Object.create(Ne);var Fe=["push","pop","shift","unshift","splice","sort","reverse"];Fe.forEach(function(o){var s=Ne[o];W(Re,o,function e(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=s.apply(this,t);var r=this.__ob__;var a;switch(o){case"push":case"unshift":a=t;break;case"splice":a=t.slice(2);break}if(a){r.observeArray(a)}r.dep.notify();return i})});var Le=Object.getOwnPropertyNames(Re);var je=true;function He(e){je=e}var qe=function e(t){this.value=t;this.dep=new De;this.vmCount=0;W(t,"__ob__",this);if(Array.isArray(t)){if(G){Be(t,Re)}else{ze(t,Re,Le)}this.observeArray(t)}else{this.walk(t)}};qe.prototype.walk=function e(t){var n=Object.keys(t);for(var i=0;i<n.length;i++){Ue(t,n[i])}};qe.prototype.observeArray=function e(t){for(var n=0,i=t.length;n<i;n++){Ye(t[n])}};function Be(e,t){e.__proto__=t}function ze(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i];W(e,a,t[a])}}function Ye(e,t){if(!j(e)||e instanceof Oe){return}var n;if(d(e,"__ob__")&&e.__ob__ instanceof qe){n=e.__ob__}else if(je&&!pe()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue){n=new qe(e)}if(t&&n){n.vmCount++}return n}function Ue(i,e,r,a,o){var s=new De;var t=Object.getOwnPropertyDescriptor(i,e);if(t&&t.configurable===false){return}var l=t&&t.get;var c=t&&t.set;if((!l||c)&&arguments.length===2){r=i[e]}var d=!o&&Ye(r);Object.defineProperty(i,e,{enumerable:true,configurable:true,get:function e(){var t=l?l.call(i):r;if(De.target){s.depend();if(d){d.dep.depend();if(Array.isArray(t)){Je(t)}}}return t},set:function e(t){var n=l?l.call(i):r;if(t===n||t!==t&&n!==n){return}if(a){a()}if(l&&!c){return}if(c){c.call(i,t)}else{r=t}d=!o&&Ye(t);s.notify()}})}function We(e,t,n){if(N(e)||L(e)){ge("Cannot set reactive property on undefined, null, or primitive value: "+e)}if(Array.isArray(e)&&r(t)){e.length=Math.max(e.length,t);e.splice(t,1,n);return n}if(t in e&&!(t in Object.prototype)){e[t]=n;return n}var i=e.__ob__;if(e._isVue||i&&i.vmCount){ge("Avoid adding reactive properties to a Vue instance or its root $data "+"at runtime - declare it upfront in the data option.");return n}if(!i){e[t]=n;return n}Ue(i.value,t,n);i.dep.notify();return n}function Ve(e,t){if(N(e)||L(e)){ge("Cannot delete reactive property on undefined, null, or primitive value: "+e)}if(Array.isArray(e)&&r(t)){e.splice(t,1);return}var n=e.__ob__;if(e._isVue||n&&n.vmCount){ge("Avoid deleting properties on a Vue instance or its root $data "+"- just set it to null.");return}if(!d(e,t)){return}delete e[t];if(!n){return}n.dep.notify()}function Je(e){for(var t=void 0,n=0,i=e.length;n<i;n++){t=e[n];t&&t.__ob__&&t.__ob__.dep.depend();if(Array.isArray(t)){Je(t)}}}var Ge=U.optionMergeStrategies;{Ge.el=Ge.propsData=function(e,t,n,i){if(!n){ge('option "'+i+'" can only be used during instance '+"creation with the `new` keyword.")}return tt(e,t)}}function Ke(e,t){if(!t){return e}var n,i,r;var a=me?Reflect.ownKeys(t):Object.keys(t);for(var o=0;o<a.length;o++){n=a[o];if(n==="__ob__"){continue}i=e[n];r=t[n];if(!d(e,n)){We(e,n,r)}else if(i!==r&&c(i)&&c(r)){Ke(i,r)}}return e}function Xe(i,r,a){if(!a){if(!r){return i}if(!i){return r}return function e(){return Ke(typeof r==="function"?r.call(this,this):r,typeof i==="function"?i.call(this,this):i)}}else{return function e(){var t=typeof r==="function"?r.call(a,a):r;var n=typeof i==="function"?i.call(a,a):i;if(t){return Ke(t,n)}else{return n}}}}Ge.data=function(e,t,n){if(!n){if(t&&typeof t!=="function"){ge('The "data" option should be a function '+"that returns a per-instance value in component "+"definitions.",n);return e}return Xe(e,t)}return Xe(e,t,n)};function Qe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ze(n):n}function Ze(e){var t=[];for(var n=0;n<e.length;n++){if(t.indexOf(e[n])===-1){t.push(e[n])}}return t}P.forEach(function(e){Ge[e]=Qe});function et(e,t,n,i){var r=Object.create(e||null);if(t){st(i,t,n);return x(r,t)}else{return r}}A.forEach(function(e){Ge[e+"s"]=et});Ge.watch=function(e,t,n,i){if(e===le){e=undefined}if(t===le){t=undefined}if(!t){return Object.create(e||null)}{st(i,t,n)}if(!e){return t}var r={};x(r,e);for(var a in t){var o=r[a];var s=t[a];if(o&&!Array.isArray(o)){o=[o]}r[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return r};Ge.props=Ge.methods=Ge.inject=Ge.computed=function(e,t,n,i){if(t&&"development"!=="production"){st(i,t,n)}if(!e){return t}var r=Object.create(null);x(r,e);if(t){x(r,t)}return r};Ge.provide=Xe;var tt=function(e,t){return t===undefined?e:t};function nt(e){for(var t in e.components){it(t)}}function it(e){if(!new RegExp("^[a-zA-Z][\\-\\.0-9_"+M.source+"]*$").test(e)){ge('Invalid component name: "'+e+'". Component names '+"should conform to valid custom element name in html5 specification.")}if(a(e)||U.isReservedTag(e)){ge("Do not use built-in or reserved HTML elements as component "+"id: "+e)}}function rt(e,t){var n=e.props;if(!n){return}var i={};var r,a,o;if(Array.isArray(n)){r=n.length;while(r--){a=n[r];if(typeof a==="string"){o=h(a);i[o]={type:null}}else{ge("props must be strings when using array syntax.")}}}else if(c(n)){for(var s in n){a=n[s];o=h(s);i[o]=c(a)?a:{type:a}}}else{ge('Invalid value for option "props": expected an Array or an Object, '+"but got "+l(n)+".",t)}e.props=i}function at(e,t){var n=e.inject;if(!n){return}var i=e.inject={};if(Array.isArray(n)){for(var r=0;r<n.length;r++){i[n[r]]={from:n[r]}}}else if(c(n)){for(var a in n){var o=n[a];i[a]=c(o)?x({from:a},o):{from:o}}}else{ge('Invalid value for option "inject": expected an Array or an Object, '+"but got "+l(n)+".",t)}}function ot(e){var t=e.directives;if(t){for(var n in t){var i=t[n];if(typeof i==="function"){t[n]={bind:i,update:i}}}}}function st(e,t,n){if(!c(t)){ge('Invalid value for option "'+e+'": expected an Object, '+"but got "+l(t)+".",n)}}function lt(n,i,r){{nt(i)}if(typeof i==="function"){i=i.options}rt(i,r);at(i,r);ot(i);if(!i._base){if(i.extends){n=lt(n,i.extends,r)}if(i.mixins){for(var e=0,t=i.mixins.length;e<t;e++){n=lt(n,i.mixins[e],r)}}}var a={};var o;for(o in n){s(o)}for(o in i){if(!d(n,o)){s(o)}}function s(e){var t=Ge[e]||tt;a[e]=t(n[e],i[e],r,e)}return a}function ct(e,t,n,i){if(typeof n!=="string"){return}var r=e[t];if(d(r,n)){return r[n]}var a=h(n);if(d(r,a)){return r[a]}var o=v(a);if(d(r,o)){return r[o]}var s=r[n]||r[a]||r[o];if(i&&!s){ge("Failed to resolve "+t.slice(0,-1)+": "+n,e)}return s}function dt(e,t,n,i){var r=t[e];var a=!d(n,e);var o=n[e];var s=_t(Boolean,r.type);if(s>-1){if(a&&!d(r,"default")){o=false}else if(o===""||o===_(e)){var l=_t(String,r.type);if(l<0||s<l){o=true}}}if(o===undefined){o=ut(i,r,e);var c=je;He(true);Ye(o);He(c)}{pt(r,e,o,i,a)}return o}function ut(e,t,n){if(!d(t,"default")){return undefined}var i=t.default;if(j(i)){ge('Invalid default value for prop "'+n+'": '+"Props with type Object/Array must use a factory function "+"to return the default value.",e)}if(e&&e.$options.propsData&&e.$options.propsData[n]===undefined&&e._props[n]!==undefined){return e._props[n]}return typeof i==="function"&&vt(t.type)!=="Function"?i.call(e):i}function pt(e,t,n,i,r){if(e.required&&r){ge('Missing required prop: "'+t+'"',i);return}if(n==null&&!e.required){return}var a=e.type;var o=!a||a===true;var s=[];if(a){if(!Array.isArray(a)){a=[a]}for(var l=0;l<a.length&&!o;l++){var c=ht(n,a[l],i);s.push(c.expectedType||"");o=c.valid}}var d=s.some(function(e){return e});if(!o&&d){ge(yt(t,n,s),i);return}var u=e.validator;if(u){if(!u(n)){ge('Invalid prop: custom validator check failed for prop "'+t+'".',i)}}}var ft=/^(String|Number|Boolean|Function|Symbol|BigInt)$/;function ht(e,t,n){var i;var r=vt(t);if(ft.test(r)){var a=typeof e;i=a===r.toLowerCase();if(!i&&a==="object"){i=e instanceof t}}else if(r==="Object"){i=c(e)}else if(r==="Array"){i=Array.isArray(e)}else{try{i=e instanceof t}catch(e){ge('Invalid prop type: "'+String(t)+'" is not a constructor',n);i=false}}return{valid:i,expectedType:r}}var mt=/^\s*function (\w+)/;function vt(e){var t=e&&e.toString().match(mt);return t?t[1]:""}function gt(e,t){return vt(e)===vt(t)}function _t(e,t){if(!Array.isArray(t)){return gt(t,e)?0:-1}for(var n=0,i=t.length;n<i;n++){if(gt(t[n],e)){return n}}return-1}function yt(e,t,n){var i='Invalid prop: type check failed for prop "'+e+'".'+" Expected "+n.map(v).join(", ");var r=n[0];var a=l(t);if(n.length===1&&Ct(r)&&Ct(typeof t)&&!xt(r,a)){i+=" with value "+bt(t,r)}i+=", got "+a+" ";if(Ct(a)){i+="with value "+bt(t,a)+"."}return i}function bt(e,t){if(t==="String"){return'"'+e+'"'}else if(t==="Number"){return""+Number(e)}else{return""+e}}var wt=["string","number","boolean"];function Ct(t){return wt.some(function(e){return t.toLowerCase()===e})}function xt(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return e.some(function(e){return e.toLowerCase()==="boolean"})}function kt(e,t,n){$e();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r){for(var a=0;a<r.length;a++){try{var o=r[a].call(i,e,t,n)===false;if(o){return}}catch(e){Dt(e,i,"errorCaptured hook")}}}}}Dt(e,t,n)}finally{Ee()}}function St(e,t,n,i,r){var a;try{a=n?e.apply(t,n):e.call(t);if(a&&!a._isVue&&u(a)&&!a._handled){a.catch(function(e){return kt(e,i,r+" (Promise/async)")});a._handled=true}}catch(e){kt(e,i,r)}return a}function Dt(t,e,n){if(U.errorHandler){try{return U.errorHandler.call(null,t,e,n)}catch(e){if(e!==t){Tt(e,null,"config.errorHandler")}}}Tt(t,e,n)}function Tt(e,t,n){{ge("Error in "+n+': "'+e.toString()+'"',t)}if((K||X)&&typeof console!=="undefined"){console.error(e)}else{throw e}}var $t=false;var Et=[];var Ot=false;function At(){Ot=false;var e=Et.slice(0);Et.length=0;for(var t=0;t<e.length;t++){e[t]()}}var Pt;if(typeof Promise!=="undefined"&&he(Promise)){var Mt=Promise.resolve();Pt=function(){Mt.then(At);if(re){setTimeout(S)}};$t=true}else if(!ee&&typeof MutationObserver!=="undefined"&&(he(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var It=1;var Nt=new MutationObserver(At);var Rt=document.createTextNode(String(It));Nt.observe(Rt,{characterData:true});Pt=function(){It=(It+1)%2;Rt.data=String(It)};$t=true}else if(typeof setImmediate!=="undefined"&&he(setImmediate)){Pt=function(){setImmediate(At)}}else{Pt=function(){setTimeout(At,0)}}function Ft(e,t){var n;Et.push(function(){if(e){try{e.call(t)}catch(e){kt(e,t,"nextTick")}}else if(n){n(t)}});if(!Ot){Ot=true;Pt()}if(!e&&typeof Promise!=="undefined"){return new Promise(function(e){n=e})}}var Lt;var jt;{var Ht=K&&window.performance;if(Ht&&Ht.mark&&Ht.measure&&Ht.clearMarks&&Ht.clearMeasures){Lt=function(e){return Ht.mark(e)};jt=function(e,t,n){Ht.measure(e,t,n);Ht.clearMarks(t);Ht.clearMarks(n)}}}var qt;{var Bt=B("Infinity,undefined,NaN,isFinite,isNaN,"+"parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,"+"Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,"+"require");var zt=function(e,t){ge('Property or method "'+t+'" is not defined on the instance but '+"referenced during render. Make sure that this property is reactive, "+"either in the data option, or for class-based components, by "+"initializing the property. "+"See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.",e)};var Yt=function(e,t){ge('Property "'+t+'" must be accessed with "$data.'+t+'" because '+'properties starting with "$" or "_" are not proxied in the Vue instance to '+"prevent conflicts with Vue internals. "+"See: https://vuejs.org/v2/api/#data",e)};var Ut=typeof Proxy!=="undefined"&&he(Proxy);if(Ut){var Wt=B("stop,prevent,self,ctrl,shift,alt,meta,exact");U.keyCodes=new Proxy(U.keyCodes,{set:function e(t,n,i){if(Wt(n)){ge("Avoid overwriting built-in modifier in config.keyCodes: ."+n);return false}else{t[n]=i;return true}}})}var Vt={has:function e(t,n){var e=n in t;var i=Bt(n)||typeof n==="string"&&n.charAt(0)==="_"&&!(n in t.$data);if(!e&&!i){if(n in t.$data){Yt(t,n)}else{zt(t,n)}}return e||!i}};var Jt={get:function e(t,n){if(typeof n==="string"&&!(n in t)){if(n in t.$data){Yt(t,n)}else{zt(t,n)}}return t[n]}};qt=function e(t){if(Ut){var n=t.$options;var i=n.render&&n.render._withStripped?Jt:Vt;t._renderProxy=new Proxy(t,i)}else{t._renderProxy=t}}}var Gt=new ve;function Kt(e){Xt(e,Gt);Gt.clear()}function Xt(e,t){var n,i;var r=Array.isArray(e);if(!r&&!j(e)||Object.isFrozen(e)||e instanceof Oe){return}if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a)){return}t.add(a)}if(r){n=e.length;while(n--){Xt(e[n],t)}}else{i=Object.keys(e);n=i.length;while(n--){Xt(e[i[n]],t)}}}var Qt=e(function(e){var t=e.charAt(0)==="&";e=t?e.slice(1):e;var n=e.charAt(0)==="~";e=n?e.slice(1):e;var i=e.charAt(0)==="!";e=i?e.slice(1):e;return{name:e,once:n,capture:i,passive:t}});function Zt(e,r){function a(){var e=arguments;var t=a.fns;if(Array.isArray(t)){var n=t.slice();for(var i=0;i<n.length;i++){St(n[i],null,e,r,"v-on handler")}}else{return St(t,null,arguments,r,"v-on handler")}}a.fns=e;return a}function en(e,t,n,i,r,a){var o,s,l,c,d;for(o in e){s=l=e[o];c=t[o];d=Qt(o);if(N(l)){ge('Invalid handler for event "'+d.name+'": got '+String(l),a)}else if(N(c)){if(N(l.fns)){l=e[o]=Zt(l,a)}if(F(d.once)){l=e[o]=r(d.name,l,d.capture)}n(d.name,l,d.capture,d.passive,d.params)}else if(l!==c){c.fns=l;e[o]=c}}for(o in t){if(N(e[o])){d=Qt(o);i(d.name,t[o],d.capture)}}}function tn(e,t,n){if(e instanceof Oe){e=e.data.hook||(e.data.hook={})}var i;var r=e[t];function a(){n.apply(this,arguments);f(i.fns,a)}if(N(r)){i=Zt([a])}else{if(R(r.fns)&&F(r.merged)){i=r;i.fns.push(a)}else{i=Zt([r,a])}}i.merged=true;e[t]=i}function nn(e,t,n){var i=t.options.props;if(N(i)){return}var r={};var a=e.attrs;var o=e.props;if(R(a)||R(o)){for(var s in i){var l=_(s);{var c=s.toLowerCase();if(s!==c&&a&&d(a,c)){_e('Prop "'+c+'" is passed to component '+be(n||t)+", but the declared prop name is"+' "'+s+'". '+"Note that HTML attributes are case-insensitive and camelCased "+"props need to use their kebab-case equivalents when using in-DOM "+'templates. You should probably use "'+l+'" instead of "'+s+'".')}}rn(r,o,s,l,true)||rn(r,a,s,l,false)}}return r}function rn(e,t,n,i,r){if(R(t)){if(d(t,n)){e[n]=t[n];if(!r){delete t[n]}return true}else if(d(t,i)){e[n]=t[i];if(!r){delete t[i]}return true}}return false}function an(e){for(var t=0;t<e.length;t++){if(Array.isArray(e[t])){return Array.prototype.concat.apply([],e)}}return e}function on(e){return L(e)?[Me(e)]:Array.isArray(e)?ln(e):undefined}function sn(e){return R(e)&&R(e.text)&&t(e.isComment)}function ln(e,t){var n=[];var i,r,a,o;for(i=0;i<e.length;i++){r=e[i];if(N(r)||typeof r==="boolean"){continue}a=n.length-1;o=n[a];if(Array.isArray(r)){if(r.length>0){r=ln(r,(t||"")+"_"+i);if(sn(r[0])&&sn(o)){n[a]=Me(o.text+r[0].text);r.shift()}n.push.apply(n,r)}}else if(L(r)){if(sn(o)){n[a]=Me(o.text+r)}else if(r!==""){n.push(Me(r))}}else{if(sn(r)&&sn(o)){n[a]=Me(o.text+r.text)}else{if(F(e._isVList)&&R(r.tag)&&N(r.key)&&R(t)){r.key="__vlist"+t+"_"+i+"__"}n.push(r)}}}return n}function cn(e){var t=e.$options.provide;if(t){e._provided=typeof t==="function"?t.call(e):t}}function dn(t){var n=un(t.$options.inject,t);if(n){He(false);Object.keys(n).forEach(function(e){{Ue(t,e,n[e],function(){ge("Avoid mutating an injected value directly since the changes will be "+"overwritten whenever the provided component re-renders. "+'injection being mutated: "'+e+'"',t)})}});He(true)}}function un(e,t){if(e){var n=Object.create(null);var i=me?Reflect.ownKeys(e):Object.keys(e);for(var r=0;r<i.length;r++){var a=i[r];if(a==="__ob__"){continue}var o=e[a].from;var s=t;while(s){if(s._provided&&d(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s){if("default"in e[a]){var l=e[a].default;n[a]=typeof l==="function"?l.call(t):l}else{ge('Injection "'+a+'" not found',t)}}}return n}}function pn(e,t){if(!e||!e.length){return{}}var n={};for(var i=0,r=e.length;i<r;i++){var a=e[i];var o=a.data;if(o&&o.attrs&&o.attrs.slot){delete o.attrs.slot}if((a.context===t||a.fnContext===t)&&o&&o.slot!=null){var s=o.slot;var l=n[s]||(n[s]=[]);if(a.tag==="template"){l.push.apply(l,a.children||[])}else{l.push(a)}}else{(n.default||(n.default=[])).push(a)}}for(var c in n){if(n[c].every(fn)){delete n[c]}}return n}function fn(e){return e.isComment&&!e.asyncFactory||e.text===" "}function hn(e){return e.isComment&&e.asyncFactory}function mn(e,t,n){var i;var r=Object.keys(t).length>0;var a=e?!!e.$stable:!r;var o=e&&e.$key;if(!e){i={}}else if(e._normalized){return e._normalized}else if(a&&n&&n!==m&&o===n.$key&&!r&&!n.$hasNormal){return n}else{i={};for(var s in e){if(e[s]&&s[0]!=="$"){i[s]=vn(t,s,e[s])}}}for(var l in t){if(!(l in i)){i[l]=gn(t,l)}}if(e&&Object.isExtensible(e)){e._normalized=i}W(i,"$stable",a);W(i,"$key",o);W(i,"$hasNormal",r);return i}function vn(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});e=e&&typeof e==="object"&&!Array.isArray(e)?[e]:on(e);var t=e&&e[0];return e&&(!t||e.length===1&&t.isComment&&!hn(t))?undefined:e};if(n.proxy){Object.defineProperty(e,t,{get:i,enumerable:true,configurable:true})}return i}function gn(e,t){return function(){return e[t]}}function _n(e,t){var n,i,r,a,o;if(Array.isArray(e)||typeof e==="string"){n=new Array(e.length);for(i=0,r=e.length;i<r;i++){n[i]=t(e[i],i)}}else if(typeof e==="number"){n=new Array(e);for(i=0;i<e;i++){n[i]=t(i+1,i)}}else if(j(e)){if(me&&e[Symbol.iterator]){n=[];var s=e[Symbol.iterator]();var l=s.next();while(!l.done){n.push(t(l.value,n.length));l=s.next()}}else{a=Object.keys(e);n=new Array(a.length);for(i=0,r=a.length;i<r;i++){o=a[i];n[i]=t(e[o],o,i)}}}if(!R(n)){n=[]}n._isVList=true;return n}function yn(e,t,n,i){var r=this.$scopedSlots[e];var a;if(r){n=n||{};if(i){if(!j(i)){ge("slot v-bind without argument expects an Object",this)}n=x(x({},i),n)}a=r(n)||(typeof t==="function"?t():t)}else{a=this.$slots[e]||(typeof t==="function"?t():t)}var o=n&&n.slot;if(o){return this.$createElement("template",{slot:o},a)}else{return a}}function bn(e){return ct(this.$options,"filters",e,true)||D}function wn(e,t){if(Array.isArray(e)){return e.indexOf(t)===-1}else{return e!==t}}function Cn(e,t,n,i,r){var a=U.keyCodes[t]||n;if(r&&i&&!U.keyCodes[t]){return wn(r,i)}else if(a){return wn(a,e)}else if(i){return _(i)!==t}return e===undefined}function xn(a,o,s,l,c){if(s){if(!j(s)){ge("v-bind without argument expects an Object or Array value",this)}else{if(Array.isArray(s)){s=k(s)}var d;var e=function(t){if(t==="class"||t==="style"||p(t)){d=a}else{var e=a.attrs&&a.attrs.type;d=l||U.mustUseProp(o,e,t)?a.domProps||(a.domProps={}):a.attrs||(a.attrs={})}var n=h(t);var i=_(t);if(!(n in d)&&!(i in d)){d[t]=s[t];if(c){var r=a.on||(a.on={});r["update:"+t]=function(e){s[t]=e}}}};for(var t in s)e(t)}}return a}function kn(e,t){var n=this._staticTrees||(this._staticTrees=[]);var i=n[e];if(i&&!t){return i}i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this);Dn(i,"__static__"+e,false);return i}function Sn(e,t,n){Dn(e,"__once__"+t+(n?"_"+n:""),true);return e}function Dn(e,t,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++){if(e[i]&&typeof e[i]!=="string"){Tn(e[i],t+"_"+i,n)}}}else{Tn(e,t,n)}}function Tn(e,t,n){e.isStatic=true;e.key=t;e.isOnce=n}function $n(e,t){if(t){if(!c(t)){ge("v-on without argument expects an Object value",this)}else{var n=e.on=e.on?x({},e.on):{};for(var i in t){var r=n[i];var a=t[i];n[i]=r?[].concat(r,a):a}}}return e}function En(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var a=e[r];if(Array.isArray(a)){En(a,t,n)}else if(a){if(a.proxy){a.fn.proxy=true}t[a.key]=a.fn}}if(i){t.$key=i}return t}function On(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];if(typeof i==="string"&&i){e[t[n]]=t[n+1]}else if(i!==""&&i!==null){ge("Invalid value for dynamic directive argument (expected string or null): "+i,this)}}return e}function An(e,t){return typeof e==="string"?t+e:e}function Pn(e){e._o=Sn;e._n=q;e._s=i;e._l=_n;e._t=yn;e._q=E;e._i=O;e._m=kn;e._f=bn;e._k=Cn;e._b=xn;e._v=Me;e._e=Pe;e._u=En;e._g=$n;e._d=On;e._p=An}function Mn(t,e,n,a,i){var r=this;var o=i.options;var s;if(d(a,"_uid")){s=Object.create(a);s._original=a}else{s=a;a=a._original}var l=F(o._compiled);var c=!l;this.data=t;this.props=e;this.children=n;this.parent=a;this.listeners=t.on||m;this.injections=un(o.inject,a);this.slots=function(){if(!r.$slots){mn(t.scopedSlots,r.$slots=pn(n,a))}return r.$slots};Object.defineProperty(this,"scopedSlots",{enumerable:true,get:function e(){return mn(t.scopedSlots,this.slots())}});if(l){this.$options=o;this.$slots=this.slots();this.$scopedSlots=mn(t.scopedSlots,this.$slots)}if(o._scopeId){this._c=function(e,t,n,i){var r=Wn(s,e,t,n,i,c);if(r&&!Array.isArray(r)){r.fnScopeId=o._scopeId;r.fnContext=a}return r}}else{this._c=function(e,t,n,i){return Wn(s,e,t,n,i,c)}}}Pn(Mn.prototype);function In(e,t,n,i,r){var a=e.options;var o={};var s=a.props;if(R(s)){for(var l in s){o[l]=dt(l,s,t||m)}}else{if(R(n.attrs)){Rn(o,n.attrs)}if(R(n.props)){Rn(o,n.props)}}var c=new Mn(n,o,r,i,e);var d=a.render.call(null,c._c,c);if(d instanceof Oe){return Nn(d,n,c.parent,a,c)}else if(Array.isArray(d)){var u=on(d)||[];var p=new Array(u.length);for(var f=0;f<u.length;f++){p[f]=Nn(u[f],n,c.parent,a,c)}return p}}function Nn(e,t,n,i,r){var a=Ie(e);a.fnContext=n;a.fnOptions=i;{(a.devtoolsMeta=a.devtoolsMeta||{}).renderContext=r}if(t.slot){(a.data||(a.data={})).slot=t.slot}return a}function Rn(e,t){for(var n in t){e[h(n)]=t[n]}}var Fn={init:function e(t,n){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var i=t;Fn.prepatch(i,i)}else{var r=t.componentInstance=Hn(t,di);r.$mount(n?t.elm:undefined,n)}},prepatch:function e(t,n){var i=n.componentOptions;var r=n.componentInstance=t.componentInstance;vi(r,i.propsData,i.listeners,n,i.children)},insert:function e(t){var n=t.context;var i=t.componentInstance;if(!i._isMounted){i._isMounted=true;bi(i,"mounted")}if(t.data.keepAlive){if(n._isMounted){Ni(i)}else{_i(i,true)}}},destroy:function e(t){var n=t.componentInstance;if(!n._isDestroyed){if(!t.data.keepAlive){n.$destroy()}else{yi(n,true)}}}};var Ln=Object.keys(Fn);function jn(e,t,n,i,r){if(N(e)){return}var a=n.$options._base;if(j(e)){e=a.extend(e)}if(typeof e!=="function"){{ge("Invalid Component definition: "+String(e),n)}return}var o;if(N(e.cid)){o=e;e=ti(o,a);if(e===undefined){return ei(o,t,n,i,r)}}t=t||{};rr(e);if(R(t.model)){zn(e.options,t)}var s=nn(t,e,r);if(F(e.options.functional)){return In(e,s,t,n,i)}var l=t.on;t.on=t.nativeOn;if(F(e.options.abstract)){var c=t.slot;t={};if(c){t.slot=c}}qn(t);var d=e.options.name||r;var u=new Oe("vue-component-"+e.cid+(d?"-"+d:""),t,undefined,undefined,undefined,n,{Ctor:e,propsData:s,listeners:l,tag:r,children:i},o);return u}function Hn(e,t){var n={_isComponent:true,_parentVnode:e,parent:t};var i=e.data.inlineTemplate;if(R(i)){n.render=i.render;n.staticRenderFns=i.staticRenderFns}return new e.componentOptions.Ctor(n)}function qn(e){var t=e.hook||(e.hook={});for(var n=0;n<Ln.length;n++){var i=Ln[n];var r=t[i];var a=Fn[i];if(r!==a&&!(r&&r._merged)){t[i]=r?Bn(a,r):a}}}function Bn(n,i){var e=function(e,t){n(e,t);i(e,t)};e._merged=true;return e}function zn(e,t){var n=e.model&&e.model.prop||"value";var i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var r=t.on||(t.on={});var a=r[i];var o=t.model.callback;if(R(a)){if(Array.isArray(a)?a.indexOf(o)===-1:a!==o){r[i]=[o].concat(a)}}else{r[i]=o}}var Yn=1;var Un=2;function Wn(e,t,n,i,r,a){if(Array.isArray(n)||L(n)){r=i;i=n;n=undefined}if(F(a)){r=Un}return Vn(e,t,n,i,r)}function Vn(e,t,n,i,r){if(R(n)&&R(n.__ob__)){ge("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\n"+"Always create fresh vnode data objects in each render!",e);return Pe()}if(R(n)&&R(n.is)){t=n.is}if(!t){return Pe()}if(R(n)&&R(n.key)&&!L(n.key)){{ge("Avoid using non-primitive value as key, "+"use string/number value instead.",e)}}if(Array.isArray(i)&&typeof i[0]==="function"){n=n||{};n.scopedSlots={default:i[0]};i.length=0}if(r===Un){i=on(i)}else if(r===Yn){i=an(i)}var a,o;if(typeof t==="string"){var s;o=e.$vnode&&e.$vnode.ns||U.getTagNamespace(t);if(U.isReservedTag(t)){if(R(n)&&R(n.nativeOn)&&n.tag!=="component"){ge("The .native modifier for v-on is only valid on components but it was used on <"+t+">.",e)}a=new Oe(U.parsePlatformTagName(t),n,i,undefined,undefined,e)}else if((!n||!n.pre)&&R(s=ct(e.$options,"components",t))){a=jn(s,n,e,i,t)}else{a=new Oe(t,n,i,undefined,undefined,e)}}else{a=jn(t,n,e,i)}if(Array.isArray(a)){return a}else if(R(a)){if(R(o)){Jn(a,o)}if(R(n)){Gn(n)}return a}else{return Pe()}}function Jn(e,t,n){e.ns=t;if(e.tag==="foreignObject"){t=undefined;n=true}if(R(e.children)){for(var i=0,r=e.children.length;i<r;i++){var a=e.children[i];if(R(a.tag)&&(N(a.ns)||F(n)&&a.tag!=="svg")){Jn(a,t,n)}}}}function Gn(e){if(j(e.style)){Kt(e.style)}if(j(e.class)){Kt(e.class)}}function Kn(r){r._vnode=null;r._staticTrees=null;var e=r.$options;var t=r.$vnode=e._parentVnode;var n=t&&t.context;r.$slots=pn(e._renderChildren,n);r.$scopedSlots=m;r._c=function(e,t,n,i){return Wn(r,e,t,n,i,false)};r.$createElement=function(e,t,n,i){return Wn(r,e,t,n,i,true)};var i=t&&t.data;{Ue(r,"$attrs",i&&i.attrs||m,function(){!ui&&ge("$attrs is readonly.",r)},true);Ue(r,"$listeners",e._parentListeners||m,function(){!ui&&ge("$listeners is readonly.",r)},true)}}var Xn=null;function Qn(e){Pn(e.prototype);e.prototype.$nextTick=function(e){return Ft(e,this)};e.prototype._render=function(){var t=this;var e=t.$options;var n=e.render;var i=e._parentVnode;if(i){t.$scopedSlots=mn(i.data.scopedSlots,t.$slots,t.$scopedSlots)}t.$vnode=i;var r;try{Xn=t;r=n.call(t._renderProxy,t.$createElement)}catch(e){kt(e,t,"render");if(t.$options.renderError){try{r=t.$options.renderError.call(t._renderProxy,t.$createElement,e)}catch(e){kt(e,t,"renderError");r=t._vnode}}else{r=t._vnode}}finally{Xn=null}if(Array.isArray(r)&&r.length===1){r=r[0]}if(!(r instanceof Oe)){if(Array.isArray(r)){ge("Multiple root nodes returned from render function. Render function "+"should return a single root node.",t)}r=Pe()}r.parent=i;return r}}function Zn(e,t){if(e.__esModule||me&&e[Symbol.toStringTag]==="Module"){e=e.default}return j(e)?t.extend(e):e}function ei(e,t,n,i,r){var a=Pe();a.asyncFactory=e;a.asyncMeta={data:t,context:n,children:i,tag:r};return a}function ti(t,n){if(F(t.error)&&R(t.errorComp)){return t.errorComp}if(R(t.resolved)){return t.resolved}var e=Xn;if(e&&R(t.owners)&&t.owners.indexOf(e)===-1){t.owners.push(e)}if(F(t.loading)&&R(t.loadingComp)){return t.loadingComp}if(e&&!R(t.owners)){var i=t.owners=[e];var r=true;var a=null;var o=null;e.$on("hook:destroyed",function(){return f(i,e)});var s=function(e){for(var t=0,n=i.length;t<n;t++){i[t].$forceUpdate()}if(e){i.length=0;if(a!==null){clearTimeout(a);a=null}if(o!==null){clearTimeout(o);o=null}}};var l=z(function(e){t.resolved=Zn(e,n);if(!r){s(true)}else{i.length=0}});var c=z(function(e){ge("Failed to resolve async component: "+String(t)+(e?"\nReason: "+e:""));if(R(t.errorComp)){t.error=true;s(true)}});var d=t(l,c);if(j(d)){if(u(d)){if(N(t.resolved)){d.then(l,c)}}else if(u(d.component)){d.component.then(l,c);if(R(d.error)){t.errorComp=Zn(d.error,n)}if(R(d.loading)){t.loadingComp=Zn(d.loading,n);if(d.delay===0){t.loading=true}else{a=setTimeout(function(){a=null;if(N(t.resolved)&&N(t.error)){t.loading=true;s(false)}},d.delay||200)}}if(R(d.timeout)){o=setTimeout(function(){o=null;if(N(t.resolved)){c("timeout ("+d.timeout+"ms)")}},d.timeout)}}}r=false;return t.loading?t.loadingComp:t.resolved}}function ni(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++){var n=e[t];if(R(n)&&(R(n.componentOptions)||hn(n))){return n}}}}function ii(e){e._events=Object.create(null);e._hasHookEvent=false;var t=e.$options._parentListeners;if(t){li(e,t)}}var ri;function ai(e,t){ri.$on(e,t)}function oi(e,t){ri.$off(e,t)}function si(n,i){var r=ri;return function e(){var t=i.apply(null,arguments);if(t!==null){r.$off(n,e)}}}function li(e,t,n){ri=e;en(t,n||{},ai,oi,si,e);ri=undefined}function ci(e){var a=/^hook:/;e.prototype.$on=function(e,t){var n=this;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++){n.$on(e[i],t)}}else{(n._events[e]||(n._events[e]=[])).push(t);if(a.test(e)){n._hasHookEvent=true}}return n};e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i);t.apply(n,arguments)}i.fn=t;n.$on(e,i);return n};e.prototype.$off=function(e,t){var n=this;if(!arguments.length){n._events=Object.create(null);return n}if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++){n.$off(e[i],t)}return n}var a=n._events[e];if(!a){return n}if(!t){n._events[e]=null;return n}var o;var s=a.length;while(s--){o=a[s];if(o===t||o.fn===t){a.splice(s,1);break}}return n};e.prototype.$emit=function(e){var t=this;{var n=e.toLowerCase();if(n!==e&&t._events[n]){_e('Event "'+n+'" is emitted in component '+be(t)+' but the handler is registered for "'+e+'". '+"Note that HTML attributes are case-insensitive and you cannot use "+"v-on to listen to camelCase events when using in-DOM templates. "+'You should probably use "'+_(e)+'" instead of "'+e+'".')}}var i=t._events[e];if(i){i=i.length>1?C(i):i;var r=C(arguments,1);var a='event handler for "'+e+'"';for(var o=0,s=i.length;o<s;o++){St(i[o],t,r,t,a)}}return t}}var di=null;var ui=false;function pi(e){var t=di;di=e;return function(){di=t}}function fi(e){var t=e.$options;var n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent){n=n.$parent}n.$children.push(e)}e.$parent=n;e.$root=n?n.$root:e;e.$children=[];e.$refs={};e._watcher=null;e._inactive=null;e._directInactive=false;e._isMounted=false;e._isDestroyed=false;e._isBeingDestroyed=false}function hi(e){e.prototype._update=function(e,t){var n=this;var i=n.$el;var r=n._vnode;var a=pi(n);n._vnode=e;if(!r){n.$el=n.__patch__(n.$el,e,t,false)}else{n.$el=n.__patch__(r,e)}a();if(i){i.__vue__=null}if(n.$el){n.$el.__vue__=n}if(n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode){n.$parent.$el=n.$el}};e.prototype.$forceUpdate=function(){var e=this;if(e._watcher){e._watcher.update()}};e.prototype.$destroy=function(){var e=this;if(e._isBeingDestroyed){return}bi(e,"beforeDestroy");e._isBeingDestroyed=true;var t=e.$parent;if(t&&!t._isBeingDestroyed&&!e.$options.abstract){f(t.$children,e)}if(e._watcher){e._watcher.teardown()}var n=e._watchers.length;while(n--){e._watchers[n].teardown()}if(e._data.__ob__){e._data.__ob__.vmCount--}e._isDestroyed=true;e.__patch__(e._vnode,null);bi(e,"destroyed");e.$off();if(e.$el){e.$el.__vue__=null}if(e.$vnode){e.$vnode.parent=null}}}function mi(a,e,o){a.$el=e;if(!a.$options.render){a.$options.render=Pe;{if(a.$options.template&&a.$options.template.charAt(0)!=="#"||a.$options.el||e){ge("You are using the runtime-only build of Vue where the template "+"compiler is not available. Either pre-compile the templates into "+"render functions, or use the compiler-included build.",a)}else{ge("Failed to mount component: template or render function not defined.",a)}}}bi(a,"beforeMount");var t;if(U.performance&&Lt){t=function(){var e=a._name;var t=a._uid;var n="vue-perf-start:"+t;var i="vue-perf-end:"+t;Lt(n);var r=a._render();Lt(i);jt("vue "+e+" render",n,i);Lt(n);a._update(r,o);Lt(i);jt("vue "+e+" patch",n,i)}}else{t=function(){a._update(a._render(),o)}}new ji(a,t,S,{before:function e(){if(a._isMounted&&!a._isDestroyed){bi(a,"beforeUpdate")}}},true);o=false;if(a.$vnode==null){a._isMounted=true;bi(a,"mounted")}return a}function vi(e,t,n,i,r){{ui=true}var a=i.data.scopedSlots;var o=e.$scopedSlots;var s=!!(a&&!a.$stable||o!==m&&!o.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key);var l=!!(r||e.$options._renderChildren||s);e.$options._parentVnode=i;e.$vnode=i;if(e._vnode){e._vnode.parent=i}e.$options._renderChildren=r;e.$attrs=i.data.attrs||m;e.$listeners=n||m;if(t&&e.$options.props){He(false);var c=e._props;var d=e.$options._propKeys||[];for(var u=0;u<d.length;u++){var p=d[u];var f=e.$options.props;c[p]=dt(p,f,t,e)}He(true);e.$options.propsData=t}n=n||m;var h=e.$options._parentListeners;e.$options._parentListeners=n;li(e,n,h);if(l){e.$slots=pn(r,i.context);e.$forceUpdate()}{ui=false}}function gi(e){while(e&&(e=e.$parent)){if(e._inactive){return true}}return false}function _i(e,t){if(t){e._directInactive=false;if(gi(e)){return}}else if(e._directInactive){return}if(e._inactive||e._inactive===null){e._inactive=false;for(var n=0;n<e.$children.length;n++){_i(e.$children[n])}bi(e,"activated")}}function yi(e,t){if(t){e._directInactive=true;if(gi(e)){return}}if(!e._inactive){e._inactive=true;for(var n=0;n<e.$children.length;n++){yi(e.$children[n])}bi(e,"deactivated")}}function bi(e,t){$e();var n=e.$options[t];var i=t+" hook";if(n){for(var r=0,a=n.length;r<a;r++){St(n[r],e,null,e,i)}}if(e._hasHookEvent){e.$emit("hook:"+t)}Ee()}var wi=100;var Ci=[];var xi=[];var ki={};var Si={};var Di=false;var Ti=false;var $i=0;function Ei(){$i=Ci.length=xi.length=0;ki={};{Si={}}Di=Ti=false}var Oi=0;var Ai=Date.now;if(K&&!ee){var Pi=window.performance;if(Pi&&typeof Pi.now==="function"&&Ai()>document.createEvent("Event").timeStamp){Ai=function(){return Pi.now()}}}function Mi(){Oi=Ai();Ti=true;var e,t;Ci.sort(function(e,t){return e.id-t.id});for($i=0;$i<Ci.length;$i++){e=Ci[$i];if(e.before){e.before()}t=e.id;ki[t]=null;e.run();if(ki[t]!=null){Si[t]=(Si[t]||0)+1;if(Si[t]>wi){ge("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}}}var n=xi.slice();var i=Ci.slice();Ei();Ri(n);Ii(i);if(fe&&U.devtools){fe.emit("flush")}}function Ii(e){var t=e.length;while(t--){var n=e[t];var i=n.vm;if(i._watcher===n&&i._isMounted&&!i._isDestroyed){bi(i,"updated")}}}function Ni(e){e._inactive=false;xi.push(e)}function Ri(e){for(var t=0;t<e.length;t++){e[t]._inactive=true;_i(e[t],true)}}function Fi(e){var t=e.id;if(ki[t]==null){ki[t]=true;if(!Ti){Ci.push(e)}else{var n=Ci.length-1;while(n>$i&&Ci[n].id>e.id){n--}Ci.splice(n+1,0,e)}if(!Di){Di=true;if(!U.async){Mi();return}Ft(Mi)}}}var Li=0;var ji=function e(t,n,i,r,a){this.vm=t;if(a){t._watcher=this}t._watchers.push(this);if(r){this.deep=!!r.deep;this.user=!!r.user;this.lazy=!!r.lazy;this.sync=!!r.sync;this.before=r.before}else{this.deep=this.user=this.lazy=this.sync=false}this.cb=i;this.id=++Li;this.active=true;this.dirty=this.lazy;this.deps=[];this.newDeps=[];this.depIds=new ve;this.newDepIds=new ve;this.expression=n.toString();if(typeof n==="function"){this.getter=n}else{this.getter=J(n);if(!this.getter){this.getter=S;ge('Failed watching path: "'+n+'" '+"Watcher only accepts simple dot-delimited paths. "+"For full control, use a function instead.",t)}}this.value=this.lazy?undefined:this.get()};ji.prototype.get=function e(){$e(this);var t;var n=this.vm;try{t=this.getter.call(n,n)}catch(e){if(this.user){kt(e,n,'getter for watcher "'+this.expression+'"')}else{throw e}}finally{if(this.deep){Kt(t)}Ee();this.cleanupDeps()}return t};ji.prototype.addDep=function e(t){var n=t.id;if(!this.newDepIds.has(n)){this.newDepIds.add(n);this.newDeps.push(t);if(!this.depIds.has(n)){t.addSub(this)}}};ji.prototype.cleanupDeps=function e(){var t=this.deps.length;while(t--){var n=this.deps[t];if(!this.newDepIds.has(n.id)){n.removeSub(this)}}var i=this.depIds;this.depIds=this.newDepIds;this.newDepIds=i;this.newDepIds.clear();i=this.deps;this.deps=this.newDeps;this.newDeps=i;this.newDeps.length=0};ji.prototype.update=function e(){if(this.lazy){this.dirty=true}else if(this.sync){this.run()}else{Fi(this)}};ji.prototype.run=function e(){if(this.active){var t=this.get();if(t!==this.value||j(t)||this.deep){var n=this.value;this.value=t;if(this.user){var i='callback for watcher "'+this.expression+'"';St(this.cb,this.vm,[t,n],this.vm,i)}else{this.cb.call(this.vm,t,n)}}}};ji.prototype.evaluate=function e(){this.value=this.get();this.dirty=false};ji.prototype.depend=function e(){var t=this.deps.length;while(t--){this.deps[t].depend()}};ji.prototype.teardown=function e(){if(this.active){if(!this.vm._isBeingDestroyed){f(this.vm._watchers,this)}var t=this.deps.length;while(t--){this.deps[t].removeSub(this)}this.active=false}};var Hi={enumerable:true,configurable:true,get:S,set:S};function qi(e,n,i){Hi.get=function e(){return this[n][i]};Hi.set=function e(t){this[n][i]=t};Object.defineProperty(e,i,Hi)}function Bi(e){e._watchers=[];var t=e.$options;if(t.props){zi(e,t.props)}if(t.methods){Xi(e,t.methods)}if(t.data){Yi(e)}else{Ye(e._data={},true)}if(t.computed){Vi(e,t.computed)}if(t.watch&&t.watch!==le){Qi(e,t.watch)}}function zi(i,r){var a=i.$options.propsData||{};var o=i._props={};var s=i.$options._propKeys=[];var l=!i.$parent;if(!l){He(false)}var e=function(e){s.push(e);var t=dt(e,r,a,i);{var n=_(e);if(p(n)||U.isReservedAttr(n)){ge('"'+n+'" is a reserved attribute and cannot be used as component prop.',i)}Ue(o,e,t,function(){if(!l&&!ui){ge("Avoid mutating a prop directly since the value will be "+"overwritten whenever the parent component re-renders. "+"Instead, use a data or computed property based on the prop's "+'value. Prop being mutated: "'+e+'"',i)}})}if(!(e in i)){qi(i,"_props",e)}};for(var t in r)e(t);He(true)}function Yi(e){var t=e.$options.data;t=e._data=typeof t==="function"?Ui(t,e):t||{};if(!c(t)){t={};ge("data functions should return an object:\n"+"https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e)}var n=Object.keys(t);var i=e.$options.props;var r=e.$options.methods;var a=n.length;while(a--){var o=n[a];{if(r&&d(r,o)){ge('Method "'+o+'" has already been defined as a data property.',e)}}if(i&&d(i,o)){ge('The data property "'+o+'" is already declared as a prop. '+"Use prop default value instead.",e)}else if(!I(o)){qi(e,"_data",o)}}Ye(t,true)}function Ui(e,t){$e();try{return e.call(t,t)}catch(e){kt(e,t,"data()");return{}}finally{Ee()}}var Wi={lazy:true};function Vi(e,t){var n=e._computedWatchers=Object.create(null);var i=pe();for(var r in t){var a=t[r];var o=typeof a==="function"?a:a.get;if(o==null){ge('Getter is missing for computed property "'+r+'".',e)}if(!i){n[r]=new ji(e,o||S,S,Wi)}if(!(r in e)){Ji(e,r,a)}else{if(r in e.$data){ge('The computed property "'+r+'" is already defined in data.',e)}else if(e.$options.props&&r in e.$options.props){ge('The computed property "'+r+'" is already defined as a prop.',e)}else if(e.$options.methods&&r in e.$options.methods){ge('The computed property "'+r+'" is already defined as a method.',e)}}}}function Ji(e,t,n){var i=!pe();if(typeof n==="function"){Hi.get=i?Gi(t):Ki(n);Hi.set=S}else{Hi.get=n.get?i&&n.cache!==false?Gi(t):Ki(n.get):S;Hi.set=n.set||S}if(Hi.set===S){Hi.set=function(){ge('Computed property "'+t+'" was assigned to but it has no setter.',this)}}Object.defineProperty(e,t,Hi)}function Gi(n){return function e(){var t=this._computedWatchers&&this._computedWatchers[n];if(t){if(t.dirty){t.evaluate()}if(De.target){t.depend()}return t.value}}}function Ki(t){return function e(){return t.call(this,this)}}function Xi(e,t){var n=e.$options.props;for(var i in t){{if(typeof t[i]!=="function"){ge('Method "'+i+'" has type "'+typeof t[i]+'" in the component definition. '+"Did you reference the function correctly?",e)}if(n&&d(n,i)){ge('Method "'+i+'" has already been defined as a prop.',e)}if(i in e&&I(i)){ge('Method "'+i+'" conflicts with an existing Vue instance method. '+"Avoid defining component methods that start with _ or $.")}}e[i]=typeof t[i]!=="function"?S:w(t[i],e)}}function Qi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i)){for(var r=0;r<i.length;r++){Zi(e,n,i[r])}}else{Zi(e,n,i)}}}function Zi(e,t,n,i){if(c(n)){i=n;n=n.handler}if(typeof n==="string"){n=e[n]}return e.$watch(t,n,i)}function er(e){var t={};t.get=function(){return this._data};var n={};n.get=function(){return this._props};{t.set=function(){ge("Avoid replacing instance root $data. "+"Use nested data properties instead.",this)};n.set=function(){ge("$props is readonly.",this)}}Object.defineProperty(e.prototype,"$data",t);Object.defineProperty(e.prototype,"$props",n);e.prototype.$set=We;e.prototype.$delete=Ve;e.prototype.$watch=function(e,t,n){var i=this;if(c(t)){return Zi(i,e,t,n)}n=n||{};n.user=true;var r=new ji(i,e,t,n);if(n.immediate){var a='callback for immediate watcher "'+r.expression+'"';$e();St(t,i,[r.value],i,a);Ee()}return function e(){r.teardown()}}}var tr=0;function nr(e){e.prototype._init=function(e){var t=this;t._uid=tr++;var n,i;if(U.performance&&Lt){n="vue-perf-start:"+t._uid;i="vue-perf-end:"+t._uid;Lt(n)}t._isVue=true;if(e&&e._isComponent){ir(t,e)}else{t.$options=lt(rr(t.constructor),e||{},t)}{qt(t)}t._self=t;fi(t);ii(t);Kn(t);bi(t,"beforeCreate");dn(t);Bi(t);cn(t);bi(t,"created");if(U.performance&&Lt){t._name=be(t,false);Lt(i);jt("vue "+t._name+" init",n,i)}if(t.$options.el){t.$mount(t.$options.el)}}}function ir(e,t){var n=e.$options=Object.create(e.constructor.options);var i=t._parentVnode;n.parent=t.parent;n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData;n._parentListeners=r.listeners;n._renderChildren=r.children;n._componentTag=r.tag;if(t.render){n.render=t.render;n.staticRenderFns=t.staticRenderFns}}function rr(e){var t=e.options;if(e.super){var n=rr(e.super);var i=e.superOptions;if(n!==i){e.superOptions=n;var r=ar(e);if(r){x(e.extendOptions,r)}t=e.options=lt(n,e.extendOptions);if(t.name){t.components[t.name]=e}}}return t}function ar(e){var t;var n=e.options;var i=e.sealedOptions;for(var r in n){if(n[r]!==i[r]){if(!t){t={}}t[r]=n[r]}}return t}function or(e){if(!(this instanceof or)){ge("Vue is a constructor and should be called with the `new` keyword")}this._init(e)}nr(or);er(or);ci(or);hi(or);Qn(or);function sr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1){return this}var n=C(arguments,1);n.unshift(this);if(typeof e.install==="function"){e.install.apply(e,n)}else if(typeof e==="function"){e.apply(null,n)}t.push(e);return this}}function lr(e){e.mixin=function(e){this.options=lt(this.options,e);return this}}function cr(e){e.cid=0;var o=1;e.extend=function(e){e=e||{};var t=this;var n=t.cid;var i=e._Ctor||(e._Ctor={});if(i[n]){return i[n]}var r=e.name||t.options.name;if(r){it(r)}var a=function e(t){this._init(t)};a.prototype=Object.create(t.prototype);a.prototype.constructor=a;a.cid=o++;a.options=lt(t.options,e);a["super"]=t;if(a.options.props){dr(a)}if(a.options.computed){ur(a)}a.extend=t.extend;a.mixin=t.mixin;a.use=t.use;A.forEach(function(e){a[e]=t[e]});if(r){a.options.components[r]=a}a.superOptions=t.options;a.extendOptions=e;a.sealedOptions=x({},a.options);i[n]=a;return a}}function dr(e){var t=e.options.props;for(var n in t){qi(e.prototype,"_props",n)}}function ur(e){var t=e.options.computed;for(var n in t){Ji(e.prototype,n,t[n])}}function pr(e){A.forEach(function(n){e[n]=function(e,t){if(!t){return this.options[n+"s"][e]}else{if(n==="component"){it(e)}if(n==="component"&&c(t)){t.name=t.name||e;t=this.options._base.extend(t)}if(n==="directive"&&typeof t==="function"){t={bind:t,update:t}}this.options[n+"s"][e]=t;return t}}})}function fr(e){return e&&(e.Ctor.options.name||e.tag)}function hr(e,t){if(Array.isArray(e)){return e.indexOf(t)>-1}else if(typeof e==="string"){return e.split(",").indexOf(t)>-1}else if(H(e)){return e.test(t)}return false}function mr(e,t){var n=e.cache;var i=e.keys;var r=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;if(s&&!t(s)){vr(n,a,i,r)}}}}function vr(e,t,n,i){var r=e[t];if(r&&(!i||r.tag!==i.tag)){r.componentInstance.$destroy()}e[t]=null;f(n,t)}var gr=[String,RegExp,Array];var _r={name:"keep-alive",abstract:true,props:{include:gr,exclude:gr,max:[String,Number]},methods:{cacheVNode:function e(){var t=this;var n=t.cache;var i=t.keys;var r=t.vnodeToCache;var a=t.keyToCache;if(r){var o=r.tag;var s=r.componentInstance;var l=r.componentOptions;n[a]={name:fr(l),tag:o,componentInstance:s};i.push(a);if(this.max&&i.length>parseInt(this.max)){vr(n,i[0],i,this._vnode)}this.vnodeToCache=null}}},created:function e(){this.cache=Object.create(null);this.keys=[]},destroyed:function e(){for(var t in this.cache){vr(this.cache,t,this.keys)}},mounted:function e(){var n=this;this.cacheVNode();this.$watch("include",function(t){mr(n,function(e){return hr(t,e)})});this.$watch("exclude",function(t){mr(n,function(e){return!hr(t,e)})})},updated:function e(){this.cacheVNode()},render:function e(){var t=this.$slots.default;var n=ni(t);var i=n&&n.componentOptions;if(i){var r=fr(i);var a=this;var o=a.include;var s=a.exclude;if(o&&(!r||!hr(o,r))||s&&r&&hr(s,r)){return n}var l=this;var c=l.cache;var d=l.keys;var u=n.key==null?i.Ctor.cid+(i.tag?"::"+i.tag:""):n.key;if(c[u]){n.componentInstance=c[u].componentInstance;f(d,u);d.push(u)}else{this.vnodeToCache=n;this.keyToCache=u}n.data.keepAlive=true}return n||t&&t[0]}};var yr={KeepAlive:_r};function br(t){var e={};e.get=function(){return U};{e.set=function(){ge("Do not replace the Vue.config object, set individual fields instead.")}}Object.defineProperty(t,"config",e);t.util={warn:ge,extend:x,mergeOptions:lt,defineReactive:Ue};t.set=We;t.delete=Ve;t.nextTick=Ft;t.observable=function(e){Ye(e);return e};t.options=Object.create(null);A.forEach(function(e){t.options[e+"s"]=Object.create(null)});t.options._base=t;x(t.options.components,yr);sr(t);lr(t);cr(t);pr(t)}br(or);Object.defineProperty(or.prototype,"$isServer",{get:pe});Object.defineProperty(or.prototype,"$ssrContext",{get:function e(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(or,"FunctionalRenderContext",{value:Mn});or.version="2.6.14";var wr=B("style,class");var Cr=B("input,textarea,option,select,progress");var xr=function(e,t,n){return n==="value"&&Cr(e)&&t!=="button"||n==="selected"&&e==="option"||n==="checked"&&e==="input"||n==="muted"&&e==="video"};var kr=B("contenteditable,draggable,spellcheck");var Sr=B("events,caret,typing,plaintext-only");var Dr=function(e,t){return Ar(t)||t==="false"?"false":e==="contenteditable"&&Sr(t)?t:"true"};var Tr=B("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,"+"default,defaultchecked,defaultmuted,defaultselected,defer,disabled,"+"enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,"+"muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,"+"required,reversed,scoped,seamless,selected,sortable,"+"truespeed,typemustmatch,visible");var $r="http://www.w3.org/1999/xlink";var Er=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"};var Or=function(e){return Er(e)?e.slice(6,e.length):""};var Ar=function(e){return e==null||e===false};function Pr(e){var t=e.data;var n=e;var i=e;while(R(i.componentInstance)){i=i.componentInstance._vnode;if(i&&i.data){t=Mr(i.data,t)}}while(R(n=n.parent)){if(n&&n.data){t=Mr(t,n.data)}}return Ir(t.staticClass,t.class)}function Mr(e,t){return{staticClass:Nr(e.staticClass,t.staticClass),class:R(e.class)?[e.class,t.class]:t.class}}function Ir(e,t){if(R(e)||R(t)){return Nr(e,Rr(t))}return""}function Nr(e,t){return e?t?e+" "+t:e:t||""}function Rr(e){if(Array.isArray(e)){return Fr(e)}if(j(e)){return Lr(e)}if(typeof e==="string"){return e}return""}function Fr(e){var t="";var n;for(var i=0,r=e.length;i<r;i++){if(R(n=Rr(e[i]))&&n!==""){if(t){t+=" "}t+=n}}return t}function Lr(e){var t="";for(var n in e){if(e[n]){if(t){t+=" "}t+=n}}return t}var jr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"};var Hr=B("html,body,base,head,link,meta,style,title,"+"address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,"+"div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,"+"a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,"+"s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,"+"embed,object,param,source,canvas,script,noscript,del,ins,"+"caption,col,colgroup,table,thead,tbody,td,th,tr,"+"button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,"+"output,progress,select,textarea,"+"details,dialog,menu,menuitem,summary,"+"content,element,shadow,template,blockquote,iframe,tfoot");var qr=B("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,"+"foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,"+"polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",true);var Br=function(e){return e==="pre"};var zr=function(e){return Hr(e)||qr(e)};function Yr(e){if(qr(e)){return"svg"}if(e==="math"){return"math"}}var Ur=Object.create(null);function Wr(e){if(!K){return true}if(zr(e)){return false}e=e.toLowerCase();if(Ur[e]!=null){return Ur[e]}var t=document.createElement(e);if(e.indexOf("-")>-1){return Ur[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement}else{return Ur[e]=/HTMLUnknownElement/.test(t.toString())}}var Vr=B("text,number,password,search,email,tel,url");function Jr(e){if(typeof e==="string"){var t=document.querySelector(e);if(!t){ge("Cannot find element: "+e);return document.createElement("div")}return t}else{return e}}function Gr(e,t){var n=document.createElement(e);if(e!=="select"){return n}if(t.data&&t.data.attrs&&t.data.attrs.multiple!==undefined){n.setAttribute("multiple","multiple")}return n}function Kr(e,t){return document.createElementNS(jr[e],t)}function Xr(e){return document.createTextNode(e)}function Qr(e){return document.createComment(e)}function Zr(e,t,n){e.insertBefore(t,n)}function ea(e,t){e.removeChild(t)}function ta(e,t){e.appendChild(t)}function na(e){return e.parentNode}function ia(e){return e.nextSibling}function ra(e){return e.tagName}function aa(e,t){e.textContent=t}function oa(e,t){e.setAttribute(t,"")}var sa=Object.freeze({createElement:Gr,createElementNS:Kr,createTextNode:Xr,createComment:Qr,insertBefore:Zr,removeChild:ea,appendChild:ta,parentNode:na,nextSibling:ia,tagName:ra,setTextContent:aa,setStyleScope:oa});var la={create:function e(t,n){ca(n)},update:function e(t,n){if(t.data.ref!==n.data.ref){ca(t,true);ca(n)}},destroy:function e(t){ca(t,true)}};function ca(e,t){var n=e.data.ref;if(!R(n)){return}var i=e.context;var r=e.componentInstance||e.elm;var a=i.$refs;if(t){if(Array.isArray(a[n])){f(a[n],r)}else if(a[n]===r){a[n]=undefined}}else{if(e.data.refInFor){if(!Array.isArray(a[n])){a[n]=[r]}else if(a[n].indexOf(r)<0){a[n].push(r)}}else{a[n]=r}}}var da=new Oe("",{},[]);var ua=["create","activate","update","remove","destroy"];function pa(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&R(e.data)===R(t.data)&&fa(e,t)||F(e.isAsyncPlaceholder)&&N(t.asyncFactory.error))}function fa(e,t){if(e.tag!=="input"){return true}var n;var i=R(n=e.data)&&R(n=n.attrs)&&n.type;var r=R(n=t.data)&&R(n=n.attrs)&&n.type;return i===r||Vr(i)&&Vr(r)}function ha(e,t,n){var i,r;var a={};for(i=t;i<=n;++i){r=e[i].key;if(R(r)){a[r]=i}}return a}function ma(e){var i,t;var v={};var n=e.modules;var _=e.nodeOps;for(i=0;i<ua.length;++i){v[ua[i]]=[];for(t=0;t<n.length;++t){if(R(n[t][ua[i]])){v[ua[i]].push(n[t][ua[i]])}}}function g(e){return new Oe(_.tagName(e).toLowerCase(),{},[],undefined,e)}function r(e,t){function n(){if(--n.listeners===0){a(e)}}n.listeners=t;return n}function a(e){var t=_.parentNode(e);if(R(t)){_.removeChild(t,e)}}function d(t,e){return!e&&!t.ns&&!(U.ignoredElements.length&&U.ignoredElements.some(function(e){return H(e)?e.test(t.tag):e===t.tag}))&&U.isUnknownElement(t.tag)}var u=0;function y(e,t,n,i,r,a,o){if(R(e.elm)&&R(a)){e=a[o]=Ie(e)}e.isRootInsert=!r;if(p(e,t,n,i)){return}var s=e.data;var l=e.children;var c=e.tag;if(R(c)){{if(s&&s.pre){u++}if(d(e,u)){ge("Unknown custom element: <"+c+"> - did you "+"register the component correctly? For recursive components, "+'make sure to provide the "name" option.',e.context)}}e.elm=e.ns?_.createElementNS(e.ns,c):_.createElement(c,e);C(e);{m(e,l,t);if(R(s)){w(e,t)}h(n,e.elm,i)}if(s&&s.pre){u--}}else if(F(e.isComment)){e.elm=_.createComment(e.text);h(n,e.elm,i)}else{e.elm=_.createTextNode(e.text);h(n,e.elm,i)}}function p(e,t,n,i){var r=e.data;if(R(r)){var a=R(e.componentInstance)&&r.keepAlive;if(R(r=r.hook)&&R(r=r.init)){r(e,false)}if(R(e.componentInstance)){f(e,t);h(n,e.elm,i);if(F(a)){o(e,t,n,i)}return true}}}function f(e,t){if(R(e.data.pendingInsert)){t.push.apply(t,e.data.pendingInsert);e.data.pendingInsert=null}e.elm=e.componentInstance.$el;if(b(e)){w(e,t);C(e)}else{ca(e);t.push(e)}}function o(e,t,n,i){var r;var a=e;while(a.componentInstance){a=a.componentInstance._vnode;if(R(r=a.data)&&R(r=r.transition)){for(r=0;r<v.activate.length;++r){v.activate[r](da,a)}t.push(a);break}}h(n,e.elm,i)}function h(e,t,n){if(R(e)){if(R(n)){if(_.parentNode(n)===e){_.insertBefore(e,t,n)}}else{_.appendChild(e,t)}}}function m(e,t,n){if(Array.isArray(t)){{T(t)}for(var i=0;i<t.length;++i){y(t[i],n,e.elm,null,true,t,i)}}else if(L(e.text)){_.appendChild(e.elm,_.createTextNode(String(e.text)))}}function b(e){while(e.componentInstance){e=e.componentInstance._vnode}return R(e.tag)}function w(e,t){for(var n=0;n<v.create.length;++n){v.create[n](da,e)}i=e.data.hook;if(R(i)){if(R(i.create)){i.create(da,e)}if(R(i.insert)){t.push(e)}}}function C(e){var t;if(R(t=e.fnScopeId)){_.setStyleScope(e.elm,t)}else{var n=e;while(n){if(R(t=n.context)&&R(t=t.$options._scopeId)){_.setStyleScope(e.elm,t)}n=n.parent}}if(R(t=di)&&t!==e.context&&t!==e.fnContext&&R(t=t.$options._scopeId)){_.setStyleScope(e.elm,t)}}function x(e,t,n,i,r,a){for(;i<=r;++i){y(n[i],a,e,t,false,n,i)}}function k(e){var t,n;var i=e.data;if(R(i)){if(R(t=i.hook)&&R(t=t.destroy)){t(e)}for(t=0;t<v.destroy.length;++t){v.destroy[t](e)}}if(R(t=e.children)){for(n=0;n<e.children.length;++n){k(e.children[n])}}}function S(e,t,n){for(;t<=n;++t){var i=e[t];if(R(i)){if(R(i.tag)){s(i);k(i)}else{a(i.elm)}}}}function s(e,t){if(R(t)||R(e.data)){var n;var i=v.remove.length+1;if(R(t)){t.listeners+=i}else{t=r(e.elm,i)}if(R(n=e.componentInstance)&&R(n=n._vnode)&&R(n.data)){s(n,t)}for(n=0;n<v.remove.length;++n){v.remove[n](e,t)}if(R(n=e.data.hook)&&R(n=n.remove)){n(e,t)}else{t()}}else{a(e.elm)}}function D(e,t,n,i,r){var a=0;var o=0;var s=t.length-1;var l=t[0];var c=t[s];var d=n.length-1;var u=n[0];var p=n[d];var f,h,m,v;var g=!r;{T(n)}while(a<=s&&o<=d){if(N(l)){l=t[++a]}else if(N(c)){c=t[--s]}else if(pa(l,u)){E(l,u,i,n,o);l=t[++a];u=n[++o]}else if(pa(c,p)){E(c,p,i,n,d);c=t[--s];p=n[--d]}else if(pa(l,p)){E(l,p,i,n,d);g&&_.insertBefore(e,l.elm,_.nextSibling(c.elm));l=t[++a];p=n[--d]}else if(pa(c,u)){E(c,u,i,n,o);g&&_.insertBefore(e,c.elm,l.elm);c=t[--s];u=n[++o]}else{if(N(f)){f=ha(t,a,s)}h=R(u.key)?f[u.key]:$(u,t,a,s);if(N(h)){y(u,i,e,l.elm,false,n,o)}else{m=t[h];if(pa(m,u)){E(m,u,i,n,o);t[h]=undefined;g&&_.insertBefore(e,m.elm,l.elm)}else{y(u,i,e,l.elm,false,n,o)}}u=n[++o]}}if(a>s){v=N(n[d+1])?null:n[d+1].elm;x(e,v,n,o,d,i)}else if(o>d){S(t,a,s)}}function T(e){var t={};for(var n=0;n<e.length;n++){var i=e[n];var r=i.key;if(R(r)){if(t[r]){ge("Duplicate keys detected: '"+r+"'. This may cause an update error.",i.context)}else{t[r]=true}}}}function $(e,t,n,i){for(var r=n;r<i;r++){var a=t[r];if(R(a)&&pa(e,a)){return r}}}function E(e,t,n,i,r,a){if(e===t){return}if(R(t.elm)&&R(i)){t=i[r]=Ie(t)}var o=t.elm=e.elm;if(F(e.isAsyncPlaceholder)){if(R(t.asyncFactory.resolved)){M(e.elm,t,n)}else{t.isAsyncPlaceholder=true}return}if(F(t.isStatic)&&F(e.isStatic)&&t.key===e.key&&(F(t.isCloned)||F(t.isOnce))){t.componentInstance=e.componentInstance;return}var s;var l=t.data;if(R(l)&&R(s=l.hook)&&R(s=s.prepatch)){s(e,t)}var c=e.children;var d=t.children;if(R(l)&&b(t)){for(s=0;s<v.update.length;++s){v.update[s](e,t)}if(R(s=l.hook)&&R(s=s.update)){s(e,t)}}if(N(t.text)){if(R(c)&&R(d)){if(c!==d){D(o,c,d,n,a)}}else if(R(d)){{T(d)}if(R(e.text)){_.setTextContent(o,"")}x(o,null,d,0,d.length-1,n)}else if(R(c)){S(c,0,c.length-1)}else if(R(e.text)){_.setTextContent(o,"")}}else if(e.text!==t.text){_.setTextContent(o,t.text)}if(R(l)){if(R(s=l.hook)&&R(s=s.postpatch)){s(e,t)}}}function O(e,t,n){if(F(n)&&R(e.parent)){e.parent.data.pendingInsert=t}else{for(var i=0;i<t.length;++i){t[i].data.hook.insert(t[i])}}}var A=false;var P=B("attrs,class,staticClass,staticStyle,key");function M(e,t,n,i){var r;var a=t.tag;var o=t.data;var s=t.children;i=i||o&&o.pre;t.elm=e;if(F(t.isComment)&&R(t.asyncFactory)){t.isAsyncPlaceholder=true;return true}{if(!I(e,t,i)){return false}}if(R(o)){if(R(r=o.hook)&&R(r=r.init)){r(t,true)}if(R(r=t.componentInstance)){f(t,n);return true}}if(R(a)){if(R(s)){if(!e.hasChildNodes()){m(t,s,n)}else{if(R(r=o)&&R(r=r.domProps)&&R(r=r.innerHTML)){if(r!==e.innerHTML){if(typeof console!=="undefined"&&!A){A=true;console.warn("Parent: ",e);console.warn("server innerHTML: ",r);console.warn("client innerHTML: ",e.innerHTML)}return false}}else{var l=true;var c=e.firstChild;for(var d=0;d<s.length;d++){if(!c||!M(c,s[d],n,i)){l=false;break}c=c.nextSibling}if(!l||c){if(typeof console!=="undefined"&&!A){A=true;console.warn("Parent: ",e);console.warn("Mismatching childNodes vs. VNodes: ",e.childNodes,s)}return false}}}}if(R(o)){var u=false;for(var p in o){if(!P(p)){u=true;w(t,n);break}}if(!u&&o["class"]){Kt(o["class"])}}}else if(e.data!==t.text){e.data=t.text}return true}function I(e,t,n){if(R(t.tag)){return t.tag.indexOf("vue-component")===0||!d(t,n)&&t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase())}else{return e.nodeType===(t.isComment?8:3)}}return function e(t,n,i,r){if(N(n)){if(R(t)){k(t)}return}var a=false;var o=[];if(N(t)){a=true;y(n,o)}else{var s=R(t.nodeType);if(!s&&pa(t,n)){E(t,n,o,null,null,r)}else{if(s){if(t.nodeType===1&&t.hasAttribute(Y)){t.removeAttribute(Y);i=true}if(F(i)){if(M(t,n,o)){O(n,o,true);return t}else{ge("The client-side rendered virtual DOM tree is not matching "+"server-rendered content. This is likely caused by incorrect "+"HTML markup, for example nesting block-level elements inside "+"<p>, or missing <tbody>. Bailing hydration and performing "+"full client-side render.")}}t=g(t)}var l=t.elm;var c=_.parentNode(l);y(n,o,l._leaveCb?null:c,_.nextSibling(l));if(R(n.parent)){var d=n.parent;var u=b(n);while(d){for(var p=0;p<v.destroy.length;++p){v.destroy[p](d)}d.elm=n.elm;if(u){for(var f=0;f<v.create.length;++f){v.create[f](da,d)}var h=d.data.hook.insert;if(h.merged){for(var m=1;m<h.fns.length;m++){h.fns[m]()}}}else{ca(d)}d=d.parent}}if(R(c)){S([t],0,0)}else if(R(t.tag)){k(t)}}}O(n,o,a);return n.elm}}var va={create:ga,update:ga,destroy:function e(t){ga(t,da)}};function ga(e,t){if(e.data.directives||t.data.directives){_a(e,t)}}function _a(t,n){var e=t===da;var i=n===da;var r=ba(t.data.directives,t.context);var a=ba(n.data.directives,n.context);var o=[];var s=[];var l,c,d;for(l in a){c=r[l];d=a[l];if(!c){Ca(d,"bind",n,t);if(d.def&&d.def.inserted){o.push(d)}}else{d.oldValue=c.value;d.oldArg=c.arg;Ca(d,"update",n,t);if(d.def&&d.def.componentUpdated){s.push(d)}}}if(o.length){var u=function(){for(var e=0;e<o.length;e++){Ca(o[e],"inserted",n,t)}};if(e){tn(n,"insert",u)}else{u()}}if(s.length){tn(n,"postpatch",function(){for(var e=0;e<s.length;e++){Ca(s[e],"componentUpdated",n,t)}})}if(!e){for(l in r){if(!a[l]){Ca(r[l],"unbind",t,t,i)}}}}var ya=Object.create(null);function ba(e,t){var n=Object.create(null);if(!e){return n}var i,r;for(i=0;i<e.length;i++){r=e[i];if(!r.modifiers){r.modifiers=ya}n[wa(r)]=r;r.def=ct(t.$options,"directives",r.name,true)}return n}function wa(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Ca(t,n,i,e,r){var a=t.def&&t.def[n];if(a){try{a(i.elm,t,i,e,r)}catch(e){kt(e,i.context,"directive "+t.name+" "+n+" hook")}}}var xa=[la,va];function ka(e,t){var n=t.componentOptions;if(R(n)&&n.Ctor.options.inheritAttrs===false){return}if(N(e.data.attrs)&&N(t.data.attrs)){return}var i,r,a;var o=t.elm;var s=e.data.attrs||{};var l=t.data.attrs||{};if(R(l.__ob__)){l=t.data.attrs=x({},l)}for(i in l){r=l[i];a=s[i];if(a!==r){Sa(o,i,r,t.data.pre)}}if((ee||ne)&&l.value!==s.value){Sa(o,"value",l.value)}for(i in s){if(N(l[i])){if(Er(i)){o.removeAttributeNS($r,Or(i))}else if(!kr(i)){o.removeAttribute(i)}}}}function Sa(e,t,n,i){if(i||e.tagName.indexOf("-")>-1){Da(e,t,n)}else if(Tr(t)){if(Ar(n)){e.removeAttribute(t)}else{n=t==="allowfullscreen"&&e.tagName==="EMBED"?"true":t;e.setAttribute(t,n)}}else if(kr(t)){e.setAttribute(t,Dr(t,n))}else if(Er(t)){if(Ar(n)){e.removeAttributeNS($r,Or(t))}else{e.setAttributeNS($r,t,n)}}else{Da(e,t,n)}}function Da(t,e,n){if(Ar(n)){t.removeAttribute(e)}else{if(ee&&!te&&t.tagName==="TEXTAREA"&&e==="placeholder"&&n!==""&&!t.__ieph){var i=function(e){e.stopImmediatePropagation();t.removeEventListener("input",i)};t.addEventListener("input",i);t.__ieph=true}t.setAttribute(e,n)}}var Ta={create:ka,update:ka};function $a(e,t){var n=t.elm;var i=t.data;var r=e.data;if(N(i.staticClass)&&N(i.class)&&(N(r)||N(r.staticClass)&&N(r.class))){return}var a=Pr(t);var o=n._transitionClasses;if(R(o)){a=Nr(a,Rr(o))}if(a!==n._prevClass){n.setAttribute("class",a);n._prevClass=a}}var Ea={create:$a,update:$a};var Oa=/[\w).+\-_$\]]/;function Aa(e){var t=false;var n=false;var i=false;var r=false;var a=0;var o=0;var s=0;var l=0;var c,d,u,p,f;for(u=0;u<e.length;u++){d=c;c=e.charCodeAt(u);if(t){if(c===39&&d!==92){t=false}}else if(n){if(c===34&&d!==92){n=false}}else if(i){if(c===96&&d!==92){i=false}}else if(r){if(c===47&&d!==92){r=false}}else if(c===124&&e.charCodeAt(u+1)!==124&&e.charCodeAt(u-1)!==124&&!a&&!o&&!s){if(p===undefined){l=u+1;p=e.slice(0,u).trim()}else{v()}}else{switch(c){case 34:n=true;break;case 39:t=true;break;case 96:i=true;break;case 40:s++;break;case 41:s--;break;case 91:o++;break;case 93:o--;break;case 123:a++;break;case 125:a--;break}if(c===47){var h=u-1;var m=void 0;for(;h>=0;h--){m=e.charAt(h);if(m!==" "){break}}if(!m||!Oa.test(m)){r=true}}}}if(p===undefined){p=e.slice(0,u).trim()}else if(l!==0){v()}function v(){(f||(f=[])).push(e.slice(l,u).trim());l=u+1}if(f){for(u=0;u<f.length;u++){p=Pa(p,f[u])}}return p}function Pa(e,t){var n=t.indexOf("(");if(n<0){return'_f("'+t+'")('+e+")"}else{var i=t.slice(0,n);var r=t.slice(n+1);return'_f("'+i+'")('+e+(r!==")"?","+r:r)}}function Ma(e,t){console.error("[Vue compiler]: "+e)}function Ia(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Na(e,t,n,i,r){(e.props||(e.props=[])).push(Ua({name:t,value:n,dynamic:r},i));e.plain=false}function Ra(e,t,n,i,r){var a=r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[]);a.push(Ua({name:t,value:n,dynamic:r},i));e.plain=false}function Fa(e,t,n,i){e.attrsMap[t]=n;e.attrsList.push(Ua({name:t,value:n},i))}function La(e,t,n,i,r,a,o,s){(e.directives||(e.directives=[])).push(Ua({name:t,rawName:n,value:i,arg:r,isDynamicArg:a,modifiers:o},s));e.plain=false}function ja(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Ha(e,t,n,i,r,a,o,s){i=i||m;if(a&&i.prevent&&i.passive){a("passive and prevent can't be used together. "+"Passive handler can't prevent default event.",o)}if(i.right){if(s){t="("+t+")==='click'?'contextmenu':("+t+")"}else if(t==="click"){t="contextmenu";delete i.right}}else if(i.middle){if(s){t="("+t+")==='click'?'mouseup':("+t+")"}else if(t==="click"){t="mouseup"}}if(i.capture){delete i.capture;t=ja("!",t,s)}if(i.once){delete i.once;t=ja("~",t,s)}if(i.passive){delete i.passive;t=ja("&",t,s)}var l;if(i.native){delete i.native;l=e.nativeEvents||(e.nativeEvents={})}else{l=e.events||(e.events={})}var c=Ua({value:n.trim(),dynamic:s},o);if(i!==m){c.modifiers=i}var d=l[t];if(Array.isArray(d)){r?d.unshift(c):d.push(c)}else if(d){l[t]=r?[c,d]:[d,c]}else{l[t]=c}e.plain=false}function qa(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function Ba(e,t,n){var i=za(e,":"+t)||za(e,"v-bind:"+t);if(i!=null){return Aa(i)}else if(n!==false){var r=za(e,t);if(r!=null){return JSON.stringify(r)}}}function za(e,t,n){var i;if((i=e.attrsMap[t])!=null){var r=e.attrsList;for(var a=0,o=r.length;a<o;a++){if(r[a].name===t){r.splice(a,1);break}}}if(n){delete e.attrsMap[t]}return i}function Ya(e,t){var n=e.attrsList;for(var i=0,r=n.length;i<r;i++){var a=n[i];if(t.test(a.name)){n.splice(i,1);return a}}}function Ua(e,t){if(t){if(t.start!=null){e.start=t.start}if(t.end!=null){e.end=t.end}}return e}function Wa(e,t,n){var i=n||{};var r=i.number;var a=i.trim;var o="$$v";var s=o;if(a){s="(typeof "+o+" === 'string'"+"? "+o+".trim()"+": "+o+")"}if(r){s="_n("+s+")"}var l=Va(t,s);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ("+o+") {"+l+"}"}}function Va(e,t){var n=eo(e);if(n.key===null){return e+"="+t}else{return"$set("+n.exp+", "+n.key+", "+t+")"}}var Ja,Ga,Ka,Xa,Qa,Za;function eo(e){e=e.trim();Ja=e.length;if(e.indexOf("[")<0||e.lastIndexOf("]")<Ja-1){Xa=e.lastIndexOf(".");if(Xa>-1){return{exp:e.slice(0,Xa),key:'"'+e.slice(Xa+1)+'"'}}else{return{exp:e,key:null}}}Ga=e;Xa=Qa=Za=0;while(!no()){Ka=to();if(io(Ka)){ao(Ka)}else if(Ka===91){ro(Ka)}}return{exp:e.slice(0,Qa),key:e.slice(Qa+1,Za)}}function to(){return Ga.charCodeAt(++Xa)}function no(){return Xa>=Ja}function io(e){return e===34||e===39}function ro(e){var t=1;Qa=Xa;while(!no()){e=to();if(io(e)){ao(e);continue}if(e===91){t++}if(e===93){t--}if(t===0){Za=Xa;break}}}function ao(e){var t=e;while(!no()){e=to();if(e===t){break}}}var oo;var so="__r";var lo="__c";function co(e,t,n){oo=n;var i=t.value;var r=t.modifiers;var a=e.tag;var o=e.attrsMap.type;{if(a==="input"&&o==="file"){oo("<"+e.tag+' v-model="'+i+'" type="file">:\n'+"File inputs are read only. Use a v-on:change listener instead.",e.rawAttrsMap["v-model"])}}if(e.component){Wa(e,i,r);return false}else if(a==="select"){fo(e,i,r)}else if(a==="input"&&o==="checkbox"){uo(e,i,r)}else if(a==="input"&&o==="radio"){po(e,i,r)}else if(a==="input"||a==="textarea"){ho(e,i,r)}else if(!U.isReservedTag(a)){Wa(e,i,r);return false}else{oo("<"+e.tag+' v-model="'+i+'">: '+"v-model is not supported on this element type. "+"If you are working with contenteditable, it's recommended to "+"wrap a library dedicated for that purpose inside a custom component.",e.rawAttrsMap["v-model"])}return true}function uo(e,t,n){var i=n&&n.number;var r=Ba(e,"value")||"null";var a=Ba(e,"true-value")||"true";var o=Ba(e,"false-value")||"false";Na(e,"checked","Array.isArray("+t+")"+"?_i("+t+","+r+")>-1"+(a==="true"?":("+t+")":":_q("+t+","+a+")"));Ha(e,"change","var $$a="+t+","+"$$el=$event.target,"+"$$c=$$el.checked?("+a+"):("+o+");"+"if(Array.isArray($$a)){"+"var $$v="+(i?"_n("+r+")":r)+","+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&("+Va(t,"$$a.concat([$$v])")+")}"+"else{$$i>-1&&("+Va(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}"+"}else{"+Va(t,"$$c")+"}",null,true)}function po(e,t,n){var i=n&&n.number;var r=Ba(e,"value")||"null";r=i?"_n("+r+")":r;Na(e,"checked","_q("+t+","+r+")");Ha(e,"change",Va(t,r),null,true)}function fo(e,t,n){var i=n&&n.number;var r="Array.prototype.filter"+".call($event.target.options,function(o){return o.selected})"+'.map(function(o){var val = "_value" in o ? o._value : o.value;'+"return "+(i?"_n(val)":"val")+"})";var a="$event.target.multiple ? $$selectedVal : $$selectedVal[0]";var o="var $$selectedVal = "+r+";";o=o+" "+Va(t,a);Ha(e,"change",o,null,true)}function ho(e,t,n){var i=e.attrsMap.type;{var r=e.attrsMap["v-bind:value"]||e.attrsMap[":value"];var a=e.attrsMap["v-bind:type"]||e.attrsMap[":type"];if(r&&!a){var o=e.attrsMap["v-bind:value"]?"v-bind:value":":value";oo(o+'="'+r+'" conflicts with v-model on the same element '+"because the latter already expands to a value binding internally",e.rawAttrsMap[o])}}var s=n||{};var l=s.lazy;var c=s.number;var d=s.trim;var u=!l&&i!=="range";var p=l?"change":i==="range"?so:"input";var f="$event.target.value";if(d){f="$event.target.value.trim()"}if(c){f="_n("+f+")"}var h=Va(t,f);if(u){h="if($event.target.composing)return;"+h}Na(e,"value","("+t+")");Ha(e,p,h,null,true);if(d||c){Ha(e,"blur","$forceUpdate()")}}function mo(e){if(R(e[so])){var t=ee?"change":"input";e[t]=[].concat(e[so],e[t]||[]);delete e[so]}if(R(e[lo])){e.change=[].concat(e[lo],e.change||[]);delete e[lo]}}var vo;function go(n,i,r){var a=vo;return function e(){var t=i.apply(null,arguments);if(t!==null){bo(n,e,r,a)}}}var _o=$t&&!(se&&Number(se[1])<=53);function yo(e,t,n,i){if(_o){var r=Oi;var a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document){return a.apply(this,arguments)}}}vo.addEventListener(e,t,ce?{capture:n,passive:i}:n)}function bo(e,t,n,i){(i||vo).removeEventListener(e,t._wrapper||t,n)}function wo(e,t){if(N(e.data.on)&&N(t.data.on)){return}var n=t.data.on||{};var i=e.data.on||{};vo=t.elm;mo(n);en(n,i,yo,bo,go,t.context);vo=undefined}var Co={create:wo,update:wo};var xo;function ko(e,t){if(N(e.data.domProps)&&N(t.data.domProps)){return}var n,i;var r=t.elm;var a=e.data.domProps||{};var o=t.data.domProps||{};if(R(o.__ob__)){o=t.data.domProps=x({},o)}for(n in a){if(!(n in o)){r[n]=""}}for(n in o){i=o[n];if(n==="textContent"||n==="innerHTML"){if(t.children){t.children.length=0}if(i===a[n]){continue}if(r.childNodes.length===1){r.removeChild(r.childNodes[0])}}if(n==="value"&&r.tagName!=="PROGRESS"){r._value=i;var s=N(i)?"":String(i);if(So(r,s)){r.value=s}}else if(n==="innerHTML"&&qr(r.tagName)&&N(r.innerHTML)){xo=xo||document.createElement("div");xo.innerHTML="<svg>"+i+"</svg>";var l=xo.firstChild;while(r.firstChild){r.removeChild(r.firstChild)}while(l.firstChild){r.appendChild(l.firstChild)}}else if(i!==a[n]){try{r[n]=i}catch(e){}}}}function So(e,t){return!e.composing&&(e.tagName==="OPTION"||Do(e,t)||To(e,t))}function Do(e,t){var n=true;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function To(e,t){var n=e.value;var i=e._vModifiers;if(R(i)){if(i.number){return q(n)!==q(t)}if(i.trim){return n.trim()!==t.trim()}}return n!==t}var $o={create:ko,update:ko};var Eo=e(function(e){var n={};var t=/;(?![^(]*\))/g;var i=/:(.+)/;e.split(t).forEach(function(e){if(e){var t=e.split(i);t.length>1&&(n[t[0].trim()]=t[1].trim())}});return n});function Oo(e){var t=Ao(e.style);return e.staticStyle?x(e.staticStyle,t):t}function Ao(e){if(Array.isArray(e)){return k(e)}if(typeof e==="string"){return Eo(e)}return e}function Po(e,t){var n={};var i;if(t){var r=e;while(r.componentInstance){r=r.componentInstance._vnode;if(r&&r.data&&(i=Oo(r.data))){x(n,i)}}}if(i=Oo(e.data)){x(n,i)}var a=e;while(a=a.parent){if(a.data&&(i=Oo(a.data))){x(n,i)}}return n}var Mo=/^--/;var Io=/\s*!important$/;var No=function(e,t,n){if(Mo.test(t)){e.style.setProperty(t,n)}else if(Io.test(n)){e.style.setProperty(_(t),n.replace(Io,""),"important")}else{var i=Lo(t);if(Array.isArray(n)){for(var r=0,a=n.length;r<a;r++){e.style[i]=n[r]}}else{e.style[i]=n}}};var Ro=["Webkit","Moz","ms"];var Fo;var Lo=e(function(e){Fo=Fo||document.createElement("div").style;e=h(e);if(e!=="filter"&&e in Fo){return e}var t=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0;n<Ro.length;n++){var i=Ro[n]+t;if(i in Fo){return i}}});function jo(e,t){var n=t.data;var i=e.data;if(N(n.staticStyle)&&N(n.style)&&N(i.staticStyle)&&N(i.style)){return}var r,a;var o=t.elm;var s=i.staticStyle;var l=i.normalizedStyle||i.style||{};var c=s||l;var d=Ao(t.data.style)||{};t.data.normalizedStyle=R(d.__ob__)?x({},d):d;var u=Po(t,true);for(a in c){if(N(u[a])){No(o,a,"")}}for(a in u){r=u[a];if(r!==c[a]){No(o,a,r==null?"":r)}}}var Ho={create:jo,update:jo};var qo=/\s+/;function Bo(t,e){if(!e||!(e=e.trim())){return}if(t.classList){if(e.indexOf(" ")>-1){e.split(qo).forEach(function(e){return t.classList.add(e)})}else{t.classList.add(e)}}else{var n=" "+(t.getAttribute("class")||"")+" ";if(n.indexOf(" "+e+" ")<0){t.setAttribute("class",(n+e).trim())}}}function zo(t,e){if(!e||!(e=e.trim())){return}if(t.classList){if(e.indexOf(" ")>-1){e.split(qo).forEach(function(e){return t.classList.remove(e)})}else{t.classList.remove(e)}if(!t.classList.length){t.removeAttribute("class")}}else{var n=" "+(t.getAttribute("class")||"")+" ";var i=" "+e+" ";while(n.indexOf(i)>=0){n=n.replace(i," ")}n=n.trim();if(n){t.setAttribute("class",n)}else{t.removeAttribute("class")}}}function Yo(e){if(!e){return}if(typeof e==="object"){var t={};if(e.css!==false){x(t,Uo(e.name||"v"))}x(t,e);return t}else if(typeof e==="string"){return Uo(e)}}var Uo=e(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}});var Wo=K&&!te;var Vo="transition";var Jo="animation";var Go="transition";var Ko="transitionend";var Xo="animation";var Qo="animationend";if(Wo){if(window.ontransitionend===undefined&&window.onwebkittransitionend!==undefined){Go="WebkitTransition";Ko="webkitTransitionEnd"}if(window.onanimationend===undefined&&window.onwebkitanimationend!==undefined){Xo="WebkitAnimation";Qo="webkitAnimationEnd"}}var Zo=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function es(e){Zo(function(){Zo(e)})}function ts(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);if(n.indexOf(t)<0){n.push(t);Bo(e,t)}}function ns(e,t){if(e._transitionClasses){f(e._transitionClasses,t)}zo(e,t)}function is(t,e,n){var i=as(t,e);var r=i.type;var a=i.timeout;var o=i.propCount;if(!r){return n()}var s=r===Vo?Ko:Qo;var l=0;var c=function(){t.removeEventListener(s,d);n()};var d=function(e){if(e.target===t){if(++l>=o){c()}}};setTimeout(function(){if(l<o){c()}},a+1);t.addEventListener(s,d)}var rs=/\b(transform|all)(,|$)/;function as(e,t){var n=window.getComputedStyle(e);var i=(n[Go+"Delay"]||"").split(", ");var r=(n[Go+"Duration"]||"").split(", ");var a=os(i,r);var o=(n[Xo+"Delay"]||"").split(", ");var s=(n[Xo+"Duration"]||"").split(", ");var l=os(o,s);var c;var d=0;var u=0;if(t===Vo){if(a>0){c=Vo;d=a;u=r.length}}else if(t===Jo){if(l>0){c=Jo;d=l;u=s.length}}else{d=Math.max(a,l);c=d>0?a>l?Vo:Jo:null;u=c?c===Vo?r.length:s.length:0}var p=c===Vo&&rs.test(n[Go+"Property"]);return{type:c,timeout:d,propCount:u,hasTransform:p}}function os(n,e){while(n.length<e.length){n=n.concat(n)}return Math.max.apply(null,e.map(function(e,t){return ss(e)+ss(n[t])}))}function ss(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ls(n,e){var i=n.elm;if(R(i._leaveCb)){i._leaveCb.cancelled=true;i._leaveCb()}var t=Yo(n.data.transition);if(N(t)){return}if(R(i._enterCb)||i.nodeType!==1){return}var r=t.css;var a=t.type;var o=t.enterClass;var s=t.enterToClass;var l=t.enterActiveClass;var c=t.appearClass;var d=t.appearToClass;var u=t.appearActiveClass;var p=t.beforeEnter;var f=t.enter;var h=t.afterEnter;var m=t.enterCancelled;var v=t.beforeAppear;var g=t.appear;var _=t.afterAppear;var y=t.appearCancelled;var b=t.duration;var w=di;var C=di.$vnode;while(C&&C.parent){w=C.context;C=C.parent}var x=!w._isMounted||!n.isRootInsert;if(x&&!g&&g!==""){return}var k=x&&c?c:o;var S=x&&u?u:l;var D=x&&d?d:s;var T=x?v||p:p;var $=x?typeof g==="function"?g:f:f;var E=x?_||h:h;var O=x?y||m:m;var A=q(j(b)?b.enter:b);if(A!=null){ds(A,"enter",n)}var P=r!==false&&!te;var M=ps($);var I=i._enterCb=z(function(){if(P){ns(i,D);ns(i,S)}if(I.cancelled){if(P){ns(i,k)}O&&O(i)}else{E&&E(i)}i._enterCb=null});if(!n.data.show){tn(n,"insert",function(){var e=i.parentNode;var t=e&&e._pending&&e._pending[n.key];if(t&&t.tag===n.tag&&t.elm._leaveCb){t.elm._leaveCb()}$&&$(i,I)})}T&&T(i);if(P){ts(i,k);ts(i,S);es(function(){ns(i,k);if(!I.cancelled){ts(i,D);if(!M){if(us(A)){setTimeout(I,A)}else{is(i,a,I)}}}})}if(n.data.show){e&&e();$&&$(i,I)}if(!P&&!M){I()}}function cs(e,t){var n=e.elm;if(R(n._enterCb)){n._enterCb.cancelled=true;n._enterCb()}var i=Yo(e.data.transition);if(N(i)||n.nodeType!==1){return t()}if(R(n._leaveCb)){return}var r=i.css;var a=i.type;var o=i.leaveClass;var s=i.leaveToClass;var l=i.leaveActiveClass;var c=i.beforeLeave;var d=i.leave;var u=i.afterLeave;var p=i.leaveCancelled;var f=i.delayLeave;var h=i.duration;var m=r!==false&&!te;var v=ps(d);var g=q(j(h)?h.leave:h);if(R(g)){ds(g,"leave",e)}var _=n._leaveCb=z(function(){if(n.parentNode&&n.parentNode._pending){n.parentNode._pending[e.key]=null}if(m){ns(n,s);ns(n,l)}if(_.cancelled){if(m){ns(n,o)}p&&p(n)}else{t();u&&u(n)}n._leaveCb=null});if(f){f(y)}else{y()}function y(){if(_.cancelled){return}if(!e.data.show&&n.parentNode){(n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e}c&&c(n);if(m){ts(n,o);ts(n,l);es(function(){ns(n,o);if(!_.cancelled){ts(n,s);if(!v){if(us(g)){setTimeout(_,g)}else{is(n,a,_)}}}})}d&&d(n,_);if(!m&&!v){_()}}}function ds(e,t,n){if(typeof e!=="number"){ge("<transition> explicit "+t+" duration is not a valid number - "+"got "+JSON.stringify(e)+".",n.context)}else if(isNaN(e)){ge("<transition> explicit "+t+" duration is NaN - "+"the duration expression might be incorrect.",n.context)}}function us(e){return typeof e==="number"&&!isNaN(e)}function ps(e){if(N(e)){return false}var t=e.fns;if(R(t)){return ps(Array.isArray(t)?t[0]:t)}else{return(e._length||e.length)>1}}function fs(e,t){if(t.data.show!==true){ls(t)}}var hs=K?{create:fs,activate:fs,remove:function e(t,n){if(t.data.show!==true){cs(t,n)}else{n()}}}:{};var ms=[Ta,Ea,Co,$o,Ho,hs];var vs=ms.concat(xa);var gs=ma({nodeOps:sa,modules:vs});if(te){document.addEventListener("selectionchange",function(){var e=document.activeElement;if(e&&e.vmodel){Ss(e,"input")}})}var _s={inserted:function e(t,n,i,r){if(i.tag==="select"){if(r.elm&&!r.elm._vOptions){tn(i,"postpatch",function(){_s.componentUpdated(t,n,i)})}else{ys(t,n,i.context)}t._vOptions=[].map.call(t.options,Cs)}else if(i.tag==="textarea"||Vr(t.type)){t._vModifiers=n.modifiers;if(!n.modifiers.lazy){t.addEventListener("compositionstart",xs);t.addEventListener("compositionend",ks);t.addEventListener("change",ks);if(te){t.vmodel=true}}}},componentUpdated:function e(t,n,i){if(i.tag==="select"){ys(t,n,i.context);var r=t._vOptions;var a=t._vOptions=[].map.call(t.options,Cs);if(a.some(function(e,t){return!E(e,r[t])})){var o=t.multiple?n.value.some(function(e){return ws(e,a)}):n.value!==n.oldValue&&ws(n.value,a);if(o){Ss(t,"change")}}}}};function ys(e,t,n){bs(e,t,n);if(ee||ne){setTimeout(function(){bs(e,t,n)},0)}}function bs(e,t,n){var i=t.value;var r=e.multiple;if(r&&!Array.isArray(i)){ge('<select multiple v-model="'+t.expression+'"> '+"expects an Array value for its binding, but got "+Object.prototype.toString.call(i).slice(8,-1),n);return}var a,o;for(var s=0,l=e.options.length;s<l;s++){o=e.options[s];if(r){a=O(i,Cs(o))>-1;if(o.selected!==a){o.selected=a}}else{if(E(Cs(o),i)){if(e.selectedIndex!==s){e.selectedIndex=s}return}}}if(!r){e.selectedIndex=-1}}function ws(t,e){return e.every(function(e){return!E(e,t)})}function Cs(e){return"_value"in e?e._value:e.value}function xs(e){e.target.composing=true}function ks(e){if(!e.target.composing){return}e.target.composing=false;Ss(e.target,"input")}function Ss(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,true,true);e.dispatchEvent(n)}function Ds(e){return e.componentInstance&&(!e.data||!e.data.transition)?Ds(e.componentInstance._vnode):e}var Ts={bind:function e(t,n,i){var r=n.value;i=Ds(i);var a=i.data&&i.data.transition;var o=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;if(r&&a){i.data.show=true;ls(i,function(){t.style.display=o})}else{t.style.display=r?o:"none"}},update:function e(t,n,i){var r=n.value;var a=n.oldValue;if(!r===!a){return}i=Ds(i);var o=i.data&&i.data.transition;if(o){i.data.show=true;if(r){ls(i,function(){t.style.display=t.__vOriginalDisplay})}else{cs(i,function(){t.style.display="none"})}}else{t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function e(t,n,i,r,a){if(!a){t.style.display=t.__vOriginalDisplay}}};var $s={model:_s,show:Ts};var Es={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Os(e){var t=e&&e.componentOptions;if(t&&t.Ctor.options.abstract){return Os(ni(t.children))}else{return e}}function As(e){var t={};var n=e.$options;for(var i in n.propsData){t[i]=e[i]}var r=n._parentListeners;for(var a in r){t[h(a)]=r[a]}return t}function Ps(e,t){if(/\d-keep-alive$/.test(t.tag)){return e("keep-alive",{props:t.componentOptions.propsData})}}function Ms(e){while(e=e.parent){if(e.data.transition){return true}}}function Is(e,t){return t.key===e.key&&t.tag===e.tag}var Ns=function(e){return e.tag||hn(e)};var Rs=function(e){return e.name==="show"};var Fs={name:"transition",props:Es,abstract:true,render:function e(t){var n=this;var i=this.$slots.default;if(!i){return}i=i.filter(Ns);if(!i.length){return}if(i.length>1){ge("<transition> can only be used on a single element. Use "+"<transition-group> for lists.",this.$parent)}var r=this.mode;if(r&&r!=="in-out"&&r!=="out-in"){ge("invalid <transition> mode: "+r,this.$parent)}var a=i[0];if(Ms(this.$vnode)){return a}var o=Os(a);if(!o){return a}if(this._leaving){return Ps(t,a)}var s="__transition-"+this._uid+"-";o.key=o.key==null?o.isComment?s+"comment":s+o.tag:L(o.key)?String(o.key).indexOf(s)===0?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=As(this);var c=this._vnode;var d=Os(c);if(o.data.directives&&o.data.directives.some(Rs)){o.data.show=true}if(d&&d.data&&!Is(o,d)&&!hn(d)&&!(d.componentInstance&&d.componentInstance._vnode.isComment)){var u=d.data.transition=x({},l);if(r==="out-in"){this._leaving=true;tn(u,"afterLeave",function(){n._leaving=false;n.$forceUpdate()});return Ps(t,a)}else if(r==="in-out"){if(hn(o)){return c}var p;var f=function(){p()};tn(l,"afterEnter",f);tn(l,"enterCancelled",f);tn(u,"delayLeave",function(e){p=e})}}return a}};var Ls=x({tag:String,moveClass:String},Es);delete Ls.mode;var js={props:Ls,beforeMount:function e(){var i=this;var r=this._update;this._update=function(e,t){var n=pi(i);i.__patch__(i._vnode,i.kept,false,true);i._vnode=i.kept;n();r.call(i,e,t)}},render:function e(t){var n=this.tag||this.$vnode.data.tag||"span";var i=Object.create(null);var r=this.prevChildren=this.children;var a=this.$slots.default||[];var o=this.children=[];var s=As(this);for(var l=0;l<a.length;l++){var c=a[l];if(c.tag){if(c.key!=null&&String(c.key).indexOf("__vlist")!==0){o.push(c);i[c.key]=c;(c.data||(c.data={})).transition=s}else{var d=c.componentOptions;var u=d?d.Ctor.options.name||d.tag||"":c.tag;ge("<transition-group> children must be keyed: <"+u+">")}}}if(r){var p=[];var f=[];for(var h=0;h<r.length;h++){var m=r[h];m.data.transition=s;m.data.pos=m.elm.getBoundingClientRect();if(i[m.key]){p.push(m)}else{f.push(m)}}this.kept=t(n,null,p);this.removed=f}return t(n,null,o)},updated:function e(){var t=this.prevChildren;var i=this.moveClass||(this.name||"v")+"-move";if(!t.length||!this.hasMove(t[0].elm,i)){return}t.forEach(Hs);t.forEach(qs);t.forEach(Bs);this._reflow=document.body.offsetHeight;t.forEach(function(e){if(e.data.moved){var n=e.elm;var t=n.style;ts(n,i);t.transform=t.WebkitTransform=t.transitionDuration="";n.addEventListener(Ko,n._moveCb=function e(t){if(t&&t.target!==n){return}if(!t||/transform$/.test(t.propertyName)){n.removeEventListener(Ko,e);n._moveCb=null;ns(n,i)}})}})},methods:{hasMove:function e(t,n){if(!Wo){return false}if(this._hasMove){return this._hasMove}var i=t.cloneNode();if(t._transitionClasses){t._transitionClasses.forEach(function(e){zo(i,e)})}Bo(i,n);i.style.display="none";this.$el.appendChild(i);var r=as(i);this.$el.removeChild(i);return this._hasMove=r.hasTransform}}};function Hs(e){if(e.elm._moveCb){e.elm._moveCb()}if(e.elm._enterCb){e.elm._enterCb()}}function qs(e){e.data.newPos=e.elm.getBoundingClientRect()}function Bs(e){var t=e.data.pos;var n=e.data.newPos;var i=t.left-n.left;var r=t.top-n.top;if(i||r){e.data.moved=true;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+r+"px)";a.transitionDuration="0s"}}var zs={Transition:Fs,TransitionGroup:js};or.config.mustUseProp=xr;or.config.isReservedTag=zr;or.config.isReservedAttr=wr;or.config.getTagNamespace=Yr;or.config.isUnknownElement=Wr;x(or.options.directives,$s);x(or.options.components,zs);or.prototype.__patch__=K?gs:S;or.prototype.$mount=function(e,t){e=e&&K?Jr(e):undefined;return mi(this,e,t)};if(K){setTimeout(function(){if(U.devtools){if(fe){fe.emit("init",or)}else{console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\n"+"https://github.com/vuejs/vue-devtools")}}if(U.productionTip!==false&&typeof console!=="undefined"){console[console.info?"info":"log"]("You are running Vue in development mode.\n"+"Make sure to turn on production mode when deploying for production.\n"+"See more tips at https://vuejs.org/guide/deployment.html")}},0)}var Ys=/\{\{((?:.|\r?\n)+?)\}\}/g;var Us=/[-.*+?^${}()|[\]\/\\]/g;var Ws=e(function(e){var t=e[0].replace(Us,"\\$&");var n=e[1].replace(Us,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Vs(e,t){var n=t?Ws(t):Ys;if(!n.test(e)){return}var i=[];var r=[];var a=n.lastIndex=0;var o,s,l;while(o=n.exec(e)){s=o.index;if(s>a){r.push(l=e.slice(a,s));i.push(JSON.stringify(l))}var c=Aa(o[1].trim());i.push("_s("+c+")");r.push({"@binding":c});a=s+o[0].length}if(a<e.length){r.push(l=e.slice(a));i.push(JSON.stringify(l))}return{expression:i.join("+"),tokens:r}}function Js(e,t){var n=t.warn||Ma;var i=za(e,"class");if(i){var r=Vs(i,t.delimiters);if(r){n('class="'+i+'": '+"Interpolation inside attributes has been removed. "+"Use v-bind or the colon shorthand instead. For example, "+'instead of <div class="{{ val }}">, use <div :class="val">.',e.rawAttrsMap["class"])}}if(i){e.staticClass=JSON.stringify(i)}var a=Ba(e,"class",false);if(a){e.classBinding=a}}function Gs(e){var t="";if(e.staticClass){t+="staticClass:"+e.staticClass+","}if(e.classBinding){t+="class:"+e.classBinding+","}return t}var Ks={staticKeys:["staticClass"],transformNode:Js,genData:Gs};function Xs(e,t){var n=t.warn||Ma;var i=za(e,"style");if(i){{var r=Vs(i,t.delimiters);if(r){n('style="'+i+'": '+"Interpolation inside attributes has been removed. "+"Use v-bind or the colon shorthand instead. For example, "+'instead of <div style="{{ val }}">, use <div :style="val">.',e.rawAttrsMap["style"])}}e.staticStyle=JSON.stringify(Eo(i))}var a=Ba(e,"style",false);if(a){e.styleBinding=a}}function Qs(e){var t="";if(e.staticStyle){t+="staticStyle:"+e.staticStyle+","}if(e.styleBinding){t+="style:("+e.styleBinding+"),"}return t}var Zs={staticKeys:["staticStyle"],transformNode:Xs,genData:Qs};var el;var tl={decode:function e(t){el=el||document.createElement("div");el.innerHTML=t;return el.textContent}};var nl=B("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,"+"link,meta,param,source,track,wbr");var il=B("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source");var rl=B("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,"+"details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,"+"h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,"+"optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,"+"title,tr,track");var al=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;var ol=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;var sl="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+M.source+"]*";var ll="((?:"+sl+"\\:)?"+sl+")";var cl=new RegExp("^<"+ll);var dl=/^\s*(\/?)>/;var ul=new RegExp("^<\\/"+ll+"[^>]*>");var pl=/^<!DOCTYPE [^>]+>/i;var fl=/^<!\--/;var hl=/^<!\[/;var ml=B("script,style,textarea",true);var vl={};var gl={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"};var _l=/&(?:lt|gt|quot|amp|#39);/g;var yl=/&(?:lt|gt|quot|amp|#39|#10|#9);/g;var bl=B("pre,textarea",true);var wl=function(e,t){return e&&bl(e)&&t[0]==="\n"};function Cl(e,t){var n=t?yl:_l;return e.replace(n,function(e){return gl[e]})}function xl(r,d){var u=[];var p=d.expectHTML;var f=d.isUnaryTag||T;var h=d.canBeLeftOpenTag||T;var o=0;var e,m;while(r){e=r;if(!m||!ml(m)){var t=r.indexOf("<");if(t===0){if(fl.test(r)){var n=r.indexOf("--\x3e");if(n>=0){if(d.shouldKeepComment){d.comment(r.substring(4,n),o,o+n+3)}x(n+3);continue}}if(hl.test(r)){var i=r.indexOf("]>");if(i>=0){x(i+2);continue}}var a=r.match(pl);if(a){x(a[0].length);continue}var s=r.match(ul);if(s){var l=o;x(s[0].length);D(s[1],l,o);continue}var c=k();if(c){S(c);if(wl(c.tagName,r)){x(1)}continue}}var v=void 0,g=void 0,_=void 0;if(t>=0){g=r.slice(t);while(!ul.test(g)&&!cl.test(g)&&!fl.test(g)&&!hl.test(g)){_=g.indexOf("<",1);if(_<0){break}t+=_;g=r.slice(t)}v=r.substring(0,t)}if(t<0){v=r}if(v){x(v.length)}if(d.chars&&v){d.chars(v,o-v.length,o)}}else{var y=0;var b=m.toLowerCase();var w=vl[b]||(vl[b]=new RegExp("([\\s\\S]*?)(</"+b+"[^>]*>)","i"));var C=r.replace(w,function(e,t,n){y=n.length;if(!ml(b)&&b!=="noscript"){t=t.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")}if(wl(b,t)){t=t.slice(1)}if(d.chars){d.chars(t)}return""});o+=r.length-C.length;r=C;D(b,o-y,o)}if(r===e){d.chars&&d.chars(r);if(!u.length&&d.warn){d.warn('Mal-formatted tag at end of template: "'+r+'"',{start:o+r.length})}break}}D();function x(e){o+=e;r=r.substring(e)}function k(){var e=r.match(cl);if(e){var t={tagName:e[1],attrs:[],start:o};x(e[0].length);var n,i;while(!(n=r.match(dl))&&(i=r.match(ol)||r.match(al))){i.start=o;x(i[0].length);i.end=o;t.attrs.push(i)}if(n){t.unarySlash=n[1];x(n[0].length);t.end=o;return t}}}function S(e){var t=e.tagName;var n=e.unarySlash;if(p){if(m==="p"&&rl(t)){D(m)}if(h(t)&&m===t){D(t)}}var i=f(t)||!!n;var r=e.attrs.length;var a=new Array(r);for(var o=0;o<r;o++){var s=e.attrs[o];var l=s[3]||s[4]||s[5]||"";var c=t==="a"&&s[1]==="href"?d.shouldDecodeNewlinesForHref:d.shouldDecodeNewlines;a[o]={name:s[1],value:Cl(l,c)};if(d.outputSourceRange){a[o].start=s.start+s[0].match(/^\s*/).length;a[o].end=s.end}}if(!i){u.push({tag:t,lowerCasedTag:t.toLowerCase(),attrs:a,start:e.start,end:e.end});m=t}if(d.start){d.start(t,a,i,e.start,e.end)}}function D(e,t,n){var i,r;if(t==null){t=o}if(n==null){n=o}if(e){r=e.toLowerCase();for(i=u.length-1;i>=0;i--){if(u[i].lowerCasedTag===r){break}}}else{i=0}if(i>=0){for(var a=u.length-1;a>=i;a--){if(a>i||!e&&d.warn){d.warn("tag <"+u[a].tag+"> has no matching end tag.",{start:u[a].start,end:u[a].end})}if(d.end){d.end(u[a].tag,t,n)}}u.length=i;m=i&&u[i-1].tag}else if(r==="br"){if(d.start){d.start(e,[],true,t,n)}}else if(r==="p"){if(d.start){d.start(e,[],false,t,n)}if(d.end){d.end(e,t,n)}}}}var kl=/^@|^v-on:/;var Sl=/^v-|^@|^:|^#/;var Dl=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;var Tl=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/;var $l=/^\(|\)$/g;var El=/^\[.*\]$/;var Ol=/:(.*)$/;var Al=/^:|^\.|^v-bind:/;var Pl=/\.[^.\]]+(?=[^\]]*$)/g;var Ml=/^v-slot(:|$)|^#/;var Il=/[\r\n]/;var Nl=/[ \f\t\r\n]+/g;var Rl=/[\s"'<>\/=]/;var Fl=e(tl.decode);var Ll="_empty_";var jl;var Hl;var ql;var Bl;var zl;var Yl;var Ul;var Wl;var Vl;function Jl(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:mc(t),rawAttrsMap:{},parent:n,children:[]}}function Gl(s,c){jl=c.warn||Ma;Yl=c.isPreTag||T;Ul=c.mustUseProp||T;Wl=c.getTagNamespace||T;var t=c.isReservedTag||T;Vl=function(e){return!!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"]||!(e.attrsMap.is?t(e.attrsMap.is):t(e.tag)))};ql=Ia(c.modules,"transformNode");Bl=Ia(c.modules,"preTransformNode");zl=Ia(c.modules,"postTransformNode");Hl=c.delimiters;var d=[];var l=c.preserveWhitespace!==false;var u=c.whitespace;var p;var f;var h=false;var m=false;var n=false;function v(e,t){if(!n){n=true;jl(e,t)}}function g(e){i(e);if(!h&&!e.processed){e=Ql(e,c)}if(!d.length&&e!==p){if(p.if&&(e.elseif||e.else)){{_(e)}oc(p,{exp:e.elseif,block:e})}else{v("Component template should contain exactly one root element. "+"If you are using v-if on multiple elements, "+"use v-else-if to chain them instead.",{start:e.start})}}if(f&&!e.forbidden){if(e.elseif||e.else){rc(e,f)}else{if(e.slotScope){var t=e.slotTarget||'"default"';(f.scopedSlots||(f.scopedSlots={}))[t]=e}f.children.push(e);e.parent=f}}e.children=e.children.filter(function(e){return!e.slotScope});i(e);if(e.pre){h=false}if(Yl(e.tag)){m=false}for(var n=0;n<zl.length;n++){zl[n](e,c)}}function i(e){if(!m){var t;while((t=e.children[e.children.length-1])&&t.type===3&&t.text===" "){e.children.pop()}}}function _(e){if(e.tag==="slot"||e.tag==="template"){v("Cannot use <"+e.tag+"> as component root element because it may "+"contain multiple nodes.",{start:e.start})}if(e.attrsMap.hasOwnProperty("v-for")){v("Cannot use v-for on stateful component root element because "+"it renders multiple elements.",e.rawAttrsMap["v-for"])}}xl(s,{warn:jl,expectHTML:c.expectHTML,isUnaryTag:c.isUnaryTag,canBeLeftOpenTag:c.canBeLeftOpenTag,shouldDecodeNewlines:c.shouldDecodeNewlines,shouldDecodeNewlinesForHref:c.shouldDecodeNewlinesForHref,shouldKeepComment:c.comments,outputSourceRange:c.outputSourceRange,start:function e(t,n,i,r,a){var o=f&&f.ns||Wl(t);if(ee&&o==="svg"){n=bc(n)}var s=Jl(t,n,f);if(o){s.ns=o}{if(c.outputSourceRange){s.start=r;s.end=a;s.rawAttrsMap=s.attrsList.reduce(function(e,t){e[t.name]=t;return e},{})}n.forEach(function(e){if(Rl.test(e.name)){jl("Invalid dynamic argument expression: attribute names cannot contain "+"spaces, quotes, <, >, / or =.",{start:e.start+e.name.indexOf("["),end:e.start+e.name.length})}})}if(gc(s)&&!pe()){s.forbidden=true;jl("Templates should only be responsible for mapping the state to the "+"UI. Avoid placing tags with side-effects in your templates, such as "+"<"+t+">"+", as they will not be parsed.",{start:s.start})}for(var l=0;l<Bl.length;l++){s=Bl[l](s,c)||s}if(!h){Kl(s);if(s.pre){h=true}}if(Yl(s.tag)){m=true}if(h){Xl(s)}else if(!s.processed){tc(s);ic(s);sc(s)}if(!p){p=s;{_(p)}}if(!i){f=s;d.push(s)}else{g(s)}},end:function e(t,n,i){var r=d[d.length-1];d.length-=1;f=d[d.length-1];if(c.outputSourceRange){r.end=i}g(r)},chars:function e(t,n,i){if(!f){{if(t===s){v("Component template requires a root element, rather than just text.",{start:n})}else if(t=t.trim()){v('text "'+t+'" outside root element will be ignored.',{start:n})}}return}if(ee&&f.tag==="textarea"&&f.attrsMap.placeholder===t){return}var r=f.children;if(m||t.trim()){t=vc(f)?t:Fl(t)}else if(!r.length){t=""}else if(u){if(u==="condense"){t=Il.test(t)?"":" "}else{t=" "}}else{t=l?" ":""}if(t){if(!m&&u==="condense"){t=t.replace(Nl," ")}var a;var o;if(!h&&t!==" "&&(a=Vs(t,Hl))){o={type:2,expression:a.expression,tokens:a.tokens,text:t}}else if(t!==" "||!r.length||r[r.length-1].text!==" "){o={type:3,text:t}}if(o){if(c.outputSourceRange){o.start=n;o.end=i}r.push(o)}}},comment:function e(t,n,i){if(f){var r={type:3,text:t,isComment:true};if(c.outputSourceRange){r.start=n;r.end=i}f.children.push(r)}}});return p}function Kl(e){if(za(e,"v-pre")!=null){e.pre=true}}function Xl(e){var t=e.attrsList;var n=t.length;if(n){var i=e.attrs=new Array(n);for(var r=0;r<n;r++){i[r]={name:t[r].name,value:JSON.stringify(t[r].value)};if(t[r].start!=null){i[r].start=t[r].start;i[r].end=t[r].end}}}else if(!e.pre){e.plain=true}}function Ql(e,t){Zl(e);e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length;ec(e);lc(e);dc(e);uc(e);for(var n=0;n<ql.length;n++){e=ql[n](e,t)||e}pc(e);return e}function Zl(e){var t=Ba(e,"key");if(t){{if(e.tag==="template"){jl("<template> cannot be keyed. Place the key on real elements instead.",qa(e,"key"))}if(e.for){var n=e.iterator2||e.iterator1;var i=e.parent;if(n&&n===t&&i&&i.tag==="transition-group"){jl("Do not use v-for index as key on <transition-group> children, "+"this is the same as not using keys.",qa(e,"key"),true)}}}e.key=t}}function ec(e){var t=Ba(e,"ref");if(t){e.ref=t;e.refInFor=fc(e)}}function tc(e){var t;if(t=za(e,"v-for")){var n=nc(t);if(n){x(e,n)}else{jl("Invalid v-for expression: "+t,e.rawAttrsMap["v-for"])}}}function nc(e){var t=e.match(Dl);if(!t){return}var n={};n.for=t[2].trim();var i=t[1].trim().replace($l,"");var r=i.match(Tl);if(r){n.alias=i.replace(Tl,"").trim();n.iterator1=r[1].trim();if(r[2]){n.iterator2=r[2].trim()}}else{n.alias=i}return n}function ic(e){var t=za(e,"v-if");if(t){e.if=t;oc(e,{exp:t,block:e})}else{if(za(e,"v-else")!=null){e.else=true}var n=za(e,"v-else-if");if(n){e.elseif=n}}}function rc(e,t){var n=ac(t.children);if(n&&n.if){oc(n,{exp:e.elseif,block:e})}else{jl("v-"+(e.elseif?'else-if="'+e.elseif+'"':"else")+" "+"used on element <"+e.tag+"> without corresponding v-if.",e.rawAttrsMap[e.elseif?"v-else-if":"v-else"])}}function ac(e){var t=e.length;while(t--){if(e[t].type===1){return e[t]}else{if(e[t].text!==" "){jl('text "'+e[t].text.trim()+'" between v-if and v-else(-if) '+"will be ignored.",e[t])}e.pop()}}}function oc(e,t){if(!e.ifConditions){e.ifConditions=[]}e.ifConditions.push(t)}function sc(e){var t=za(e,"v-once");if(t!=null){e.once=true}}function lc(e){var t;if(e.tag==="template"){t=za(e,"scope");if(t){jl('the "scope" attribute for scoped slots have been deprecated and '+'replaced by "slot-scope" since 2.5. The new "slot-scope" attribute '+"can also be used on plain elements in addition to <template> to "+"denote scoped slots.",e.rawAttrsMap["scope"],true)}e.slotScope=t||za(e,"slot-scope")}else if(t=za(e,"slot-scope")){if(e.attrsMap["v-for"]){jl("Ambiguous combined usage of slot-scope and v-for on <"+e.tag+"> "+"(v-for takes higher priority). Use a wrapper <template> for the "+"scoped slot to make it clearer.",e.rawAttrsMap["slot-scope"],true)}e.slotScope=t}var n=Ba(e,"slot");if(n){e.slotTarget=n==='""'?'"default"':n;e.slotTargetDynamic=!!(e.attrsMap[":slot"]||e.attrsMap["v-bind:slot"]);if(e.tag!=="template"&&!e.slotScope){Ra(e,"slot",n,qa(e,"slot"))}}{if(e.tag==="template"){var i=Ya(e,Ml);if(i){{if(e.slotTarget||e.slotScope){jl("Unexpected mixed usage of different slot syntaxes.",e)}if(e.parent&&!Vl(e.parent)){jl("<template v-slot> can only appear at the root level inside "+"the receiving component",e)}}var r=cc(i);var a=r.name;var o=r.dynamic;e.slotTarget=a;e.slotTargetDynamic=o;e.slotScope=i.value||Ll}}else{var s=Ya(e,Ml);if(s){{if(!Vl(e)){jl("v-slot can only be used on components or <template>.",s)}if(e.slotScope||e.slotTarget){jl("Unexpected mixed usage of different slot syntaxes.",e)}if(e.scopedSlots){jl("To avoid scope ambiguity, the default slot should also use "+"<template> syntax when there are other named slots.",s)}}var l=e.scopedSlots||(e.scopedSlots={});var c=cc(s);var d=c.name;var u=c.dynamic;var p=l[d]=Jl("template",[],e);p.slotTarget=d;p.slotTargetDynamic=u;p.children=e.children.filter(function(e){if(!e.slotScope){e.parent=p;return true}});p.slotScope=s.value||Ll;e.children=[];e.plain=false}}}}function cc(e){var t=e.name.replace(Ml,"");if(!t){if(e.name[0]!=="#"){t="default"}else{jl("v-slot shorthand syntax requires a slot name.",e)}}return El.test(t)?{name:t.slice(1,-1),dynamic:true}:{name:'"'+t+'"',dynamic:false}}function dc(e){if(e.tag==="slot"){e.slotName=Ba(e,"name");if(e.key){jl("`key` does not work on <slot> because slots are abstract outlets "+"and can possibly expand into multiple elements. "+"Use the key on a wrapping element instead.",qa(e,"key"))}}}function uc(e){var t;if(t=Ba(e,"is")){e.component=t}if(za(e,"inline-template")!=null){e.inlineTemplate=true}}function pc(e){var t=e.attrsList;var n,i,r,a,o,s,l,c;for(n=0,i=t.length;n<i;n++){r=a=t[n].name;o=t[n].value;if(Sl.test(r)){e.hasBindings=true;s=hc(r.replace(Sl,""));if(s){r=r.replace(Pl,"")}if(Al.test(r)){r=r.replace(Al,"");o=Aa(o);c=El.test(r);if(c){r=r.slice(1,-1)}if(o.trim().length===0){jl('The value for a v-bind expression cannot be empty. Found in "v-bind:'+r+'"')}if(s){if(s.prop&&!c){r=h(r);if(r==="innerHtml"){r="innerHTML"}}if(s.camel&&!c){r=h(r)}if(s.sync){l=Va(o,"$event");if(!c){Ha(e,"update:"+h(r),l,null,false,jl,t[n]);if(_(r)!==h(r)){Ha(e,"update:"+_(r),l,null,false,jl,t[n])}}else{Ha(e,'"update:"+('+r+")",l,null,false,jl,t[n],true)}}}if(s&&s.prop||!e.component&&Ul(e.tag,e.attrsMap.type,r)){Na(e,r,o,t[n],c)}else{Ra(e,r,o,t[n],c)}}else if(kl.test(r)){r=r.replace(kl,"");c=El.test(r);if(c){r=r.slice(1,-1)}Ha(e,r,o,s,false,jl,t[n],c)}else{r=r.replace(Sl,"");var d=r.match(Ol);var u=d&&d[1];c=false;if(u){r=r.slice(0,-(u.length+1));if(El.test(u)){u=u.slice(1,-1);c=true}}La(e,r,a,o,u,c,s,t[n]);if(r==="model"){wc(e,o)}}}else{{var p=Vs(o,Hl);if(p){jl(r+'="'+o+'": '+"Interpolation inside attributes has been removed. "+"Use v-bind or the colon shorthand instead. For example, "+'instead of <div id="{{ val }}">, use <div :id="val">.',t[n])}}Ra(e,r,JSON.stringify(o),t[n]);if(!e.component&&r==="muted"&&Ul(e.tag,e.attrsMap.type,r)){Na(e,r,"true",t[n])}}}}function fc(e){var t=e;while(t){if(t.for!==undefined){return true}t=t.parent}return false}function hc(e){var t=e.match(Pl);if(t){var n={};t.forEach(function(e){n[e.slice(1)]=true});return n}}function mc(e){var t={};for(var n=0,i=e.length;n<i;n++){if(t[e[n].name]&&!ee&&!ne){jl("duplicate attribute: "+e[n].name,e[n])}t[e[n].name]=e[n].value}return t}function vc(e){return e.tag==="script"||e.tag==="style"}function gc(e){return e.tag==="style"||e.tag==="script"&&(!e.attrsMap.type||e.attrsMap.type==="text/javascript")}var _c=/^xmlns:NS\d+/;var yc=/^NS\d+:/;function bc(e){var t=[];for(var n=0;n<e.length;n++){var i=e[n];if(!_c.test(i.name)){i.name=i.name.replace(yc,"");t.push(i)}}return t}function wc(e,t){var n=e;while(n){if(n.for&&n.alias===t){jl("<"+e.tag+' v-model="'+t+'">: '+"You are binding v-model directly to a v-for iteration alias. "+"This will not be able to modify the v-for source array because "+"writing to the alias is like modifying a function local variable. "+"Consider using an array of objects and use v-model on an object property instead.",e.rawAttrsMap["v-model"])}n=n.parent}}function Cc(e,t){if(e.tag==="input"){var n=e.attrsMap;if(!n["v-model"]){return}var i;if(n[":type"]||n["v-bind:type"]){i=Ba(e,"type")}if(!n.type&&!i&&n["v-bind"]){i="("+n["v-bind"]+").type"}if(i){var r=za(e,"v-if",true);var a=r?"&&("+r+")":"";var o=za(e,"v-else",true)!=null;var s=za(e,"v-else-if",true);var l=xc(e);tc(l);Fa(l,"type","checkbox");Ql(l,t);l.processed=true;l.if="("+i+")==='checkbox'"+a;oc(l,{exp:l.if,block:l});var c=xc(e);za(c,"v-for",true);Fa(c,"type","radio");Ql(c,t);oc(l,{exp:"("+i+")==='radio'"+a,block:c});var d=xc(e);za(d,"v-for",true);Fa(d,":type",i);Ql(d,t);oc(l,{exp:r,block:d});if(o){l.else=true}else if(s){l.elseif=s}return l}}}function xc(e){return Jl(e.tag,e.attrsList.slice(),e.parent)}var kc={preTransformNode:Cc};var Sc=[Ks,Zs,kc];function Dc(e,t){if(t.value){Na(e,"textContent","_s("+t.value+")",t)}}function Tc(e,t){if(t.value){Na(e,"innerHTML","_s("+t.value+")",t)}}var $c={model:co,text:Dc,html:Tc};var Ec={expectHTML:true,modules:Sc,directives:$c,isPreTag:Br,isUnaryTag:nl,mustUseProp:xr,canBeLeftOpenTag:il,isReservedTag:zr,getTagNamespace:Yr,staticKeys:$(Sc)};var Oc;var Ac;var Pc=e(Ic);function Mc(e,t){if(!e){return}Oc=Pc(t.staticKeys||"");Ac=t.isReservedTag||T;Nc(e);Rc(e,false)}function Ic(e){return B("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Nc(e){e.static=Fc(e);if(e.type===1){if(!Ac(e.tag)&&e.tag!=="slot"&&e.attrsMap["inline-template"]==null){return}for(var t=0,n=e.children.length;t<n;t++){var i=e.children[t];Nc(i);if(!i.static){e.static=false}}if(e.ifConditions){for(var r=1,a=e.ifConditions.length;r<a;r++){var o=e.ifConditions[r].block;Nc(o);if(!o.static){e.static=false}}}}}function Rc(e,t){if(e.type===1){if(e.static||e.once){e.staticInFor=t}if(e.static&&e.children.length&&!(e.children.length===1&&e.children[0].type===3)){e.staticRoot=true;return}else{e.staticRoot=false}if(e.children){for(var n=0,i=e.children.length;n<i;n++){Rc(e.children[n],t||!!e.for)}}if(e.ifConditions){for(var r=1,a=e.ifConditions.length;r<a;r++){Rc(e.ifConditions[r].block,t)}}}}function Fc(e){if(e.type===2){return false}if(e.type===3){return true}return!!(e.pre||!e.hasBindings&&!e.if&&!e.for&&!a(e.tag)&&Ac(e.tag)&&!Lc(e)&&Object.keys(e).every(Oc))}function Lc(e){while(e.parent){e=e.parent;if(e.tag!=="template"){return false}if(e.for){return true}}return false}var jc=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/;var Hc=/\([^)]*?\);*$/;var qc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;var Bc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]};var zc={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};var Yc=function(e){return"if("+e+")return null;"};var Uc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Yc("$event.target !== $event.currentTarget"),ctrl:Yc("!$event.ctrlKey"),shift:Yc("!$event.shiftKey"),alt:Yc("!$event.altKey"),meta:Yc("!$event.metaKey"),left:Yc("'button' in $event && $event.button !== 0"),middle:Yc("'button' in $event && $event.button !== 1"),right:Yc("'button' in $event && $event.button !== 2")};function Wc(e,t){var n=t?"nativeOn:":"on:";var i="";var r="";for(var a in e){var o=Vc(e[a]);if(e[a]&&e[a].dynamic){r+=a+","+o+","}else{i+='"'+a+'":'+o+","}}i="{"+i.slice(0,-1)+"}";if(r){return n+"_d("+i+",["+r.slice(0,-1)+"])"}else{return n+i}}function Vc(e){if(!e){return"function(){}"}if(Array.isArray(e)){return"["+e.map(function(e){return Vc(e)}).join(",")+"]"}var t=qc.test(e.value);var n=jc.test(e.value);var i=qc.test(e.value.replace(Hc,""));if(!e.modifiers){if(t||n){return e.value}return"function($event){"+(i?"return "+e.value:e.value)+"}"}else{var r="";var a="";var o=[];for(var s in e.modifiers){if(Uc[s]){a+=Uc[s];if(Bc[s]){o.push(s)}}else if(s==="exact"){var l=e.modifiers;a+=Yc(["ctrl","shift","alt","meta"].filter(function(e){return!l[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else{o.push(s)}}if(o.length){r+=Jc(o)}if(a){r+=a}var c=t?"return "+e.value+".apply(null, arguments)":n?"return ("+e.value+").apply(null, arguments)":i?"return "+e.value:e.value;return"function($event){"+r+c+"}"}}function Jc(e){return"if(!$event.type.indexOf('key')&&"+e.map(Gc).join("&&")+")return null;"}function Gc(e){var t=parseInt(e,10);if(t){return"$event.keyCode!=="+t}var n=Bc[e];var i=zc[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+","+"$event.key,"+""+JSON.stringify(i)+")"}function Kc(e,t){if(t.modifiers){ge("v-on without argument does not support modifiers.")}e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function Xc(t,n){t.wrapData=function(e){return"_b("+e+",'"+t.tag+"',"+n.value+","+(n.modifiers&&n.modifiers.prop?"true":"false")+(n.modifiers&&n.modifiers.sync?",true":"")+")"}}var Qc={on:Kc,bind:Xc,cloak:S};var Zc=function e(t){this.options=t;this.warn=t.warn||Ma;this.transforms=Ia(t.modules,"transformCode");this.dataGenFns=Ia(t.modules,"genData");this.directives=x(x({},Qc),t.directives);var n=t.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!n(e.tag)};this.onceId=0;this.staticRenderFns=[];this.pre=false};function ed(e,t){var n=new Zc(t);var i=e?e.tag==="script"?"null":td(e,n):'_c("div")';return{render:"with(this){return "+i+"}",staticRenderFns:n.staticRenderFns}}function td(e,t){if(e.parent){e.pre=e.pre||e.parent.pre}if(e.staticRoot&&!e.staticProcessed){return nd(e,t)}else if(e.once&&!e.onceProcessed){return id(e,t)}else if(e.for&&!e.forProcessed){return od(e,t)}else if(e.if&&!e.ifProcessed){return rd(e,t)}else if(e.tag==="template"&&!e.slotTarget&&!t.pre){return hd(e,t)||"void 0"}else if(e.tag==="slot"){return bd(e,t)}else{var n;if(e.component){n=wd(e.component,e,t)}else{var i;if(!e.plain||e.pre&&t.maybeComponent(e)){i=sd(e,t)}var r=e.inlineTemplate?null:hd(e,t,true);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var a=0;a<t.transforms.length;a++){n=t.transforms[a](e,n)}return n}}function nd(e,t){e.staticProcessed=true;var n=t.pre;if(e.pre){t.pre=e.pre}t.staticRenderFns.push("with(this){return "+td(e,t)+"}");t.pre=n;return"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function id(e,t){e.onceProcessed=true;if(e.if&&!e.ifProcessed){return rd(e,t)}else if(e.staticInFor){var n="";var i=e.parent;while(i){if(i.for){n=i.key;break}i=i.parent}if(!n){t.warn("v-once can only be used inside v-for that is keyed. ",e.rawAttrsMap["v-once"]);return td(e,t)}return"_o("+td(e,t)+","+t.onceId+++","+n+")"}else{return nd(e,t)}}function rd(e,t,n,i){e.ifProcessed=true;return ad(e.ifConditions.slice(),t,n,i)}function ad(e,t,n,i){if(!e.length){return i||"_e()"}var r=e.shift();if(r.exp){return"("+r.exp+")?"+a(r.block)+":"+ad(e,t,n,i)}else{return""+a(r.block)}function a(e){return n?n(e,t):e.once?id(e,t):td(e,t)}}function od(e,t,n,i){var r=e.for;var a=e.alias;var o=e.iterator1?","+e.iterator1:"";var s=e.iterator2?","+e.iterator2:"";if(t.maybeComponent(e)&&e.tag!=="slot"&&e.tag!=="template"&&!e.key){t.warn("<"+e.tag+' v-for="'+a+" in "+r+'">: component lists rendered with '+"v-for should have explicit keys. "+"See https://vuejs.org/guide/list.html#key for more info.",e.rawAttrsMap["v-for"],true)}e.forProcessed=true;return(i||"_l")+"(("+r+"),"+"function("+a+o+s+"){"+"return "+(n||td)(e,t)+"})"}function sd(e,t){var n="{";var i=ld(e,t);if(i){n+=i+","}if(e.key){n+="key:"+e.key+","}if(e.ref){n+="ref:"+e.ref+","}if(e.refInFor){n+="refInFor:true,"}if(e.pre){n+="pre:true,"}if(e.component){n+='tag:"'+e.tag+'",'}for(var r=0;r<t.dataGenFns.length;r++){n+=t.dataGenFns[r](e)}if(e.attrs){n+="attrs:"+Cd(e.attrs)+","}if(e.props){n+="domProps:"+Cd(e.props)+","}if(e.events){n+=Wc(e.events,false)+","}if(e.nativeEvents){n+=Wc(e.nativeEvents,true)+","}if(e.slotTarget&&!e.slotScope){n+="slot:"+e.slotTarget+","}if(e.scopedSlots){n+=dd(e,e.scopedSlots,t)+","}if(e.model){n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"}if(e.inlineTemplate){var a=cd(e,t);if(a){n+=a+","}}n=n.replace(/,$/,"")+"}";if(e.dynamicAttrs){n="_b("+n+',"'+e.tag+'",'+Cd(e.dynamicAttrs)+")"}if(e.wrapData){n=e.wrapData(n)}if(e.wrapListeners){n=e.wrapListeners(n)}return n}function ld(e,t){var n=e.directives;if(!n){return}var i="directives:[";var r=false;var a,o,s,l;for(a=0,o=n.length;a<o;a++){s=n[a];l=true;var c=t.directives[s.name];if(c){l=!!c(e,s,t.warn)}if(l){r=true;i+='{name:"'+s.name+'",rawName:"'+s.rawName+'"'+(s.value?",value:("+s.value+"),expression:"+JSON.stringify(s.value):"")+(s.arg?",arg:"+(s.isDynamicArg?s.arg:'"'+s.arg+'"'):"")+(s.modifiers?",modifiers:"+JSON.stringify(s.modifiers):"")+"},"}}if(r){return i.slice(0,-1)+"]"}}function cd(e,t){var n=e.children[0];if(e.children.length!==1||n.type!==1){t.warn("Inline-template components must have exactly one child element.",{start:e.start})}if(n&&n.type===1){var i=ed(n,t.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function dd(e,n,t){var i=e.for||Object.keys(n).some(function(e){var t=n[e];return t.slotTargetDynamic||t.if||t.for||pd(t)});var r=!!e.if;if(!i){var a=e.parent;while(a){if(a.slotScope&&a.slotScope!==Ll||a.for){i=true;break}if(a.if){r=true}a=a.parent}}var o=Object.keys(n).map(function(e){return fd(n[e],t)}).join(",");return"scopedSlots:_u(["+o+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+ud(o):"")+")"}function ud(e){var t=5381;var n=e.length;while(n){t=t*33^e.charCodeAt(--n)}return t>>>0}function pd(e){if(e.type===1){if(e.tag==="slot"){return true}return e.children.some(pd)}return false}function fd(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n){return rd(e,t,fd,"null")}if(e.for&&!e.forProcessed){return od(e,t,fd)}var i=e.slotScope===Ll?"":String(e.slotScope);var r="function("+i+"){"+"return "+(e.tag==="template"?e.if&&n?"("+e.if+")?"+(hd(e,t)||"undefined")+":undefined":hd(e,t)||"undefined":td(e,t))+"}";var a=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+a+"}"}function hd(e,t,n,i,r){var a=e.children;if(a.length){var o=a[0];if(a.length===1&&o.for&&o.tag!=="template"&&o.tag!=="slot"){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(i||td)(o,t)+s}var l=n?md(a,t.maybeComponent):0;var c=r||gd;return"["+a.map(function(e){return c(e,t)}).join(",")+"]"+(l?","+l:"")}}function md(e,t){var n=0;for(var i=0;i<e.length;i++){var r=e[i];if(r.type!==1){continue}if(vd(r)||r.ifConditions&&r.ifConditions.some(function(e){return vd(e.block)})){n=2;break}if(t(r)||r.ifConditions&&r.ifConditions.some(function(e){return t(e.block)})){n=1}}return n}function vd(e){return e.for!==undefined||e.tag==="template"||e.tag==="slot"}function gd(e,t){if(e.type===1){return td(e,t)}else if(e.type===3&&e.isComment){return yd(e)}else{return _d(e)}}function _d(e){return"_v("+(e.type===2?e.expression:xd(JSON.stringify(e.text)))+")"}function yd(e){return"_e("+JSON.stringify(e.text)+")"}function bd(e,t){var n=e.slotName||'"default"';var i=hd(e,t);var r="_t("+n+(i?",function(){return "+i+"}":"");var a=e.attrs||e.dynamicAttrs?Cd((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:h(e.name),value:e.value,dynamic:e.dynamic}})):null;var o=e.attrsMap["v-bind"];if((a||o)&&!i){r+=",null"}if(a){r+=","+a}if(o){r+=(a?"":",null")+","+o}return r+")"}function wd(e,t,n){var i=t.inlineTemplate?null:hd(t,n,true);return"_c("+e+","+sd(t,n)+(i?","+i:"")+")"}function Cd(e){var t="";var n="";for(var i=0;i<e.length;i++){var r=e[i];var a=xd(r.value);if(r.dynamic){n+=r.name+","+a+","}else{t+='"'+r.name+'":'+a+","}}t="{"+t.slice(0,-1)+"}";if(n){return"_d("+t+",["+n.slice(0,-1)+"])"}else{return t}}function xd(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var kd=new RegExp("\\b"+("do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,"+"super,throw,while,yield,delete,export,import,return,switch,default,"+"extends,finally,continue,debugger,function,arguments").split(",").join("\\b|\\b")+"\\b");var Sd=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var Dd=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Td(e,t){if(e){$d(e,t)}}function $d(e,t){if(e.type===1){for(var n in e.attrsMap){if(Sl.test(n)){var i=e.attrsMap[n];if(i){var r=e.rawAttrsMap[n];if(n==="v-for"){Od(e,'v-for="'+i+'"',t,r)}else if(n==="v-slot"||n[0]==="#"){Md(i,n+'="'+i+'"',t,r)}else if(kl.test(n)){Ed(i,n+'="'+i+'"',t,r)}else{Pd(i,n+'="'+i+'"',t,r)}}}}if(e.children){for(var a=0;a<e.children.length;a++){$d(e.children[a],t)}}}else if(e.type===2){Pd(e.expression,e.text,t,e)}}function Ed(e,t,n,i){var r=e.replace(Dd,"");var a=r.match(Sd);if(a&&r.charAt(a.index-1)!=="$"){n("avoid using JavaScript unary operator as property name: "+'"'+a[0]+'" in expression '+t.trim(),i)}Pd(e,t,n,i)}function Od(e,t,n,i){Pd(e.for||"",t,n,i);Ad(e.alias,"v-for alias",t,n,i);Ad(e.iterator1,"v-for iterator",t,n,i);Ad(e.iterator2,"v-for iterator",t,n,i)}function Ad(t,n,i,r,a){if(typeof t==="string"){try{new Function("var "+t+"=_")}catch(e){r("invalid "+n+' "'+t+'" in expression: '+i.trim(),a)}}}function Pd(t,n,i,r){try{new Function("return "+t)}catch(e){var a=t.replace(Dd,"").match(kd);if(a){i("avoid using JavaScript keyword as property name: "+'"'+a[0]+'"\n  Raw expression: '+n.trim(),r)}else{i("invalid expression: "+e.message+" in\n\n"+"    "+t+"\n\n"+"  Raw expression: "+n.trim()+"\n",r)}}}function Md(t,n,i,r){try{new Function(t,"")}catch(e){i("invalid function parameter expression: "+e.message+" in\n\n"+"    "+t+"\n\n"+"  Raw expression: "+n.trim()+"\n",r)}}var Id=2;function Nd(e,t,n){if(t===void 0)t=0;if(n===void 0)n=e.length;var i=e.split(/\r?\n/);var r=0;var a=[];for(var o=0;o<i.length;o++){r+=i[o].length+1;if(r>=t){for(var s=o-Id;s<=o+Id||n>r;s++){if(s<0||s>=i.length){continue}a.push(""+(s+1)+Rd(" ",3-String(s+1).length)+"|  "+i[s]);var l=i[s].length;if(s===o){var c=t-(r-l)+1;var d=n>r?l-c:n-t;a.push("   |  "+Rd(" ",c)+Rd("^",d))}else if(s>o){if(n>r){var u=Math.min(n-r,l);a.push("   |  "+Rd("^",u))}r+=l+1}}break}}return a.join("\n")}function Rd(e,t){var n="";if(t>0){while(true){if(t&1){n+=e}t>>>=1;if(t<=0){break}e+=e}}return n}function Fd(t,n){try{return new Function(t)}catch(e){n.push({err:e,code:t});return S}}function Ld(c){var d=Object.create(null);return function e(t,n,i){n=x({},n);var r=n.warn||ge;delete n.warn;{try{new Function("return 1")}catch(e){if(e.toString().match(/unsafe-eval|CSP/)){r("It seems you are using the standalone build of Vue.js in an "+"environment with Content Security Policy that prohibits unsafe-eval. "+"The template compiler cannot work in this environment. Consider "+"relaxing the policy to allow unsafe-eval or pre-compiling your "+"templates into render functions.")}}}var a=n.delimiters?String(n.delimiters)+t:t;if(d[a]){return d[a]}var o=c(t,n);{if(o.errors&&o.errors.length){if(n.outputSourceRange){o.errors.forEach(function(e){r("Error compiling template:\n\n"+e.msg+"\n\n"+Nd(t,e.start,e.end),i)})}else{r("Error compiling template:\n\n"+t+"\n\n"+o.errors.map(function(e){return"- "+e}).join("\n")+"\n",i)}}if(o.tips&&o.tips.length){if(n.outputSourceRange){o.tips.forEach(function(e){return _e(e.msg,i)})}else{o.tips.forEach(function(e){return _e(e,i)})}}}var s={};var l=[];s.render=Fd(o.render,l);s.staticRenderFns=o.staticRenderFns.map(function(e){return Fd(e,l)});{if((!o.errors||!o.errors.length)&&l.length){r("Failed to generate render function:\n\n"+l.map(function(e){var t=e.err;var n=e.code;return t.toString()+" in\n\n"+n+"\n"}).join("\n"),i)}}return d[a]=s}}function jd(d){return function e(c){function t(e,t){var n=Object.create(c);var r=[];var a=[];var i=function(e,t,n){(n?a:r).push(e)};if(t){if(t.outputSourceRange){var o=e.match(/^\s*/)[0].length;i=function(e,t,n){var i={msg:e};if(t){if(t.start!=null){i.start=t.start+o}if(t.end!=null){i.end=t.end+o}}(n?a:r).push(i)}}if(t.modules){n.modules=(c.modules||[]).concat(t.modules)}if(t.directives){n.directives=x(Object.create(c.directives||null),t.directives)}for(var s in t){if(s!=="modules"&&s!=="directives"){n[s]=t[s]}}}n.warn=i;var l=d(e.trim(),n);{Td(l.ast,i)}l.errors=r;l.tips=a;return l}return{compile:t,compileToFunctions:Ld(t)}}}var Hd=jd(function e(t,n){var i=Gl(t.trim(),n);if(n.optimize!==false){Mc(i,n)}var r=ed(i,n);return{ast:i,render:r.render,staticRenderFns:r.staticRenderFns}});var qd=Hd(Ec);var Bd=qd.compile;var zd=qd.compileToFunctions;var Yd;function Ud(e){Yd=Yd||document.createElement("div");Yd.innerHTML=e?'<a href="\n"/>':'<div a="\n"/>';return Yd.innerHTML.indexOf("&#10;")>0}var Wd=K?Ud(false):false;var Vd=K?Ud(true):false;var Jd=e(function(e){var t=Jr(e);return t&&t.innerHTML});var Gd=or.prototype.$mount;or.prototype.$mount=function(e,t){e=e&&Jr(e);if(e===document.body||e===document.documentElement){ge("Do not mount Vue to <html> or <body> - mount to normal elements instead.");return this}var n=this.$options;if(!n.render){var i=n.template;if(i){if(typeof i==="string"){if(i.charAt(0)==="#"){i=Jd(i);if(!i){ge("Template element not found or is empty: "+n.template,this)}}}else if(i.nodeType){i=i.innerHTML}else{{ge("invalid template option:"+i,this)}return this}}else if(e){i=Kd(e)}if(i){if(U.performance&&Lt){Lt("compile")}var r=zd(i,{outputSourceRange:"development"!=="production",shouldDecodeNewlines:Wd,shouldDecodeNewlinesForHref:Vd,delimiters:n.delimiters,comments:n.comments},this);var a=r.render;var o=r.staticRenderFns;n.render=a;n.staticRenderFns=o;if(U.performance&&Lt){Lt("compile end");jt("vue "+this._name+" compile","compile","compile end")}}}return Gd.call(this,e,t)};function Kd(e){if(e.outerHTML){return e.outerHTML}else{var t=document.createElement("div");t.appendChild(e.cloneNode(true));return t.innerHTML}}or.compile=zd;return or});!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Vue=t()}(this,function(){"use strict";var m=Object.freeze({});function N(e){return null==e}function R(e){return null!=e}function $(e){return!0===e}function E(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function F(e){return null!==e&&"object"==typeof e}var i=Object.prototype.toString;function l(e){return"[object Object]"===i.call(e)}function r(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return R(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function t(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===i?JSON.stringify(e,null,2):String(e)}function L(e){var t=parseFloat(e);return isNaN(t)?e:t}function o(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var c=o("slot,component",!0),d=o("key,ref,slot,slot-scope,is");function p(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var n=Object.prototype.hasOwnProperty;function f(e,t){return n.call(e,t)}function e(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var a=/-(\w)/g,h=e(function(e){return e.replace(a,function(e,t){return t?t.toUpperCase():""})}),s=e(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),v=/\B([A-Z])/g,g=e(function(e){return e.replace(v,"-$1").toLowerCase()});var _=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,i){function e(e){var t=arguments.length;return t?t>1?n.apply(i,arguments):n.call(i,e):n.call(i)}return e._length=n.length,e};function y(e,t){t=t||0;for(var n=e.length-t,i=new Array(n);n--;)i[n]=e[n+t];return i}function b(e,t){for(var n in t)e[n]=t[n];return e}function w(e){for(var t={},n=0;n<e.length;n++)e[n]&&b(t,e[n]);return t}function C(e,t,n){}var T=function(e,t,n){return!1},x=function(e){return e};function k(t,n){if(t===n)return!0;var e=F(t),i=F(n);if(!e||!i)return!e&&!i&&String(t)===String(n);try{var r=Array.isArray(t),a=Array.isArray(n);if(r&&a)return t.length===n.length&&t.every(function(e,t){return k(e,n[t])});if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();if(r||a)return!1;var o=Object.keys(t),s=Object.keys(n);return o.length===s.length&&o.every(function(e){return k(t[e],n[e])})}catch(t){return!1}}function S(e,t){for(var n=0;n<e.length;n++)if(k(e[n],t))return n;return-1}function j(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var O="data-server-rendered",D=["component","directive","filter"],A=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],P={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:T,isReservedAttr:T,isUnknownElement:T,getTagNamespace:C,parsePlatformTagName:x,mustUseProp:T,async:!0,_lifecycleHooks:A},M=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function I(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var H=new RegExp("[^"+M.source+".$_\\d]");var q,B="__proto__"in{},z="undefined"!=typeof window,Y="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,U=Y&&WXEnvironment.platform.toLowerCase(),W=z&&window.navigator.userAgent.toLowerCase(),V=W&&/msie|trident/.test(W),J=W&&W.indexOf("msie 9.0")>0,G=W&&W.indexOf("edge/")>0,K=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===U),X=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),Q={}.watch,Z=!1;if(z)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,ee)}catch(m){}var te=function(){return void 0===q&&(q=!z&&!Y&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),q},ne=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ie(e){return"function"==typeof e&&/native code/.test(e.toString())}var re,ae="undefined"!=typeof Symbol&&ie(Symbol)&&"undefined"!=typeof Reflect&&ie(Reflect.ownKeys);re="undefined"!=typeof Set&&ie(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var oe=C,se=0,le=function(){this.id=se++,this.subs=[]};le.prototype.addSub=function(e){this.subs.push(e)},le.prototype.removeSub=function(e){p(this.subs,e)},le.prototype.depend=function(){le.target&&le.target.addDep(this)},le.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},le.target=null;var ce=[];function de(e){ce.push(e),le.target=e}function ue(){ce.pop(),le.target=ce[ce.length-1]}var pe=function(e,t,n,i,r,a,o,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},fe={child:{configurable:!0}};fe.child.get=function(){return this.componentInstance},Object.defineProperties(pe.prototype,fe);var he=function(e){void 0===e&&(e="");var t=new pe;return t.text=e,t.isComment=!0,t};function me(e){return new pe(void 0,void 0,void 0,String(e))}function ve(e){var t=new pe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ge=Array.prototype,_e=Object.create(ge);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(a){var o=ge[a];I(_e,a,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,i=o.apply(this,e),r=this.__ob__;switch(a){case"push":case"unshift":n=e;break;case"splice":n=e.slice(2)}return n&&r.observeArray(n),r.dep.notify(),i})});var ye=Object.getOwnPropertyNames(_e),be=!0;function we(e){be=e}var Ce=function(e){var t;this.value=e,this.dep=new le,this.vmCount=0,I(e,"__ob__",this),Array.isArray(e)?(B?(t=_e,e.__proto__=t):function(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i];I(e,a,t[a])}}(e,_e,ye),this.observeArray(e)):this.walk(e)};function xe(e,t){var n;if(F(e)&&!(e instanceof pe))return f(e,"__ob__")&&e.__ob__ instanceof Ce?n=e.__ob__:be&&!te()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ce(e)),t&&n&&n.vmCount++,n}function ke(n,e,i,t,r){var a=new le,o=Object.getOwnPropertyDescriptor(n,e);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(i=n[e]);var c=!r&&xe(i);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):i;return le.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,i=0,r=t.length;i<r;i++)(n=t[i])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):i;e===t||e!=e&&t!=t||s&&!l||(l?l.call(n,e):i=e,c=!r&&xe(e),a.notify())}})}}function Se(e,t,n){if(Array.isArray(e)&&r(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(ke(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function De(e,t){if(Array.isArray(e)&&r(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||f(e,t)&&(delete e[t],n&&n.dep.notify())}}Ce.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)ke(e,t[n])},Ce.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)xe(e[t])};var Te=P.optionMergeStrategies;function $e(e,t){if(!t)return e;for(var n,i,r,a=ae?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)"__ob__"!==(n=a[o])&&(i=e[n],r=t[n],f(e,n)?i!==r&&l(i)&&l(r)&&$e(i,r):Se(e,n,r));return e}function Ee(n,i,r){return r?function(){var e="function"==typeof i?i.call(r,r):i,t="function"==typeof n?n.call(r,r):n;return e?$e(e,t):t}:i?n?function(){return $e("function"==typeof i?i.call(this,this):i,"function"==typeof n?n.call(this,this):n)}:i:n}function Oe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ae(e,t,n,i){var r=Object.create(e||null);return t?b(r,t):r}Te.data=function(e,t,n){return n?Ee(e,t,n):t&&"function"!=typeof t?e:Ee(e,t)},A.forEach(function(e){Te[e]=Oe}),D.forEach(function(e){Te[e+"s"]=Ae}),Te.watch=function(e,t,n,i){if(e===Q&&(e=void 0),t===Q&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var a in b(r,e),t){var o=r[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),r[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return r},Te.props=Te.methods=Te.inject=Te.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return b(r,e),t&&b(r,t),r},Te.provide=Ee;var Pe=function(e,t){return void 0===t?e:t};function Me(n,i,r){if("function"==typeof i&&(i=i.options),function(e,t){var n=e.props;if(n){var i,r,a={};if(Array.isArray(n))for(i=n.length;i--;)"string"==typeof(r=n[i])&&(a[h(r)]={type:null});else if(l(n))for(var o in n)r=n[o],a[h(o)]=l(r)?r:{type:r};e.props=a}}(i),function(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(l(n))for(var a in n){var o=n[a];i[a]=l(o)?b({from:a},o):{from:o}}}}(i),function(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"==typeof i&&(t[n]={bind:i,update:i})}}(i),!i._base&&(i.extends&&(n=Me(n,i.extends,r)),i.mixins))for(var e=0,t=i.mixins.length;e<t;e++)n=Me(n,i.mixins[e],r);var a,o={};for(a in n)s(a);for(a in i)f(n,a)||s(a);function s(e){var t=Te[e]||Pe;o[e]=t(n[e],i[e],r,e)}return o}function Ie(e,t,n,i){if("string"==typeof n){var r=e[t];if(f(r,n))return r[n];var a=h(n);if(f(r,a))return r[a];var o=s(a);return f(r,o)?r[o]:r[n]||r[a]||r[o]}}function Ne(e,t,n,i){var r=t[e],a=!f(n,e),o=n[e],s=je(Boolean,r.type);if(s>-1)if(a&&!f(r,"default"))o=!1;else if(""===o||o===g(e)){var l=je(String,r.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,n){if(!f(t,"default"))return;var i=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof i&&"Function"!==Fe(t.type)?i.call(e):i}(i,r,e);var c=be;we(!0),xe(o),we(c)}return o}var Re=/^\s*function (\w+)/;function Fe(e){var t=e&&e.toString().match(Re);return t?t[1]:""}function Le(e,t){return Fe(e)===Fe(t)}function je(e,t){if(!Array.isArray(t))return Le(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(Le(t[n],e))return n;return-1}function He(e,t,n){de();try{if(t)for(var i=t;i=i.$parent;){var r=i.$options.errorCaptured;if(r)for(var a=0;a<r.length;a++)try{if(!1===r[a].call(i,e,t,n))return}catch(e){Be(e,i,"errorCaptured hook")}}Be(e,t,n)}finally{ue()}}function qe(e,t,n,i,r){var a;try{(a=n?e.apply(t,n):e.call(t))&&!a._isVue&&u(a)&&!a._handled&&(a.catch(function(e){return He(e,i,r+" (Promise/async)")}),a._handled=!0)}catch(e){He(e,i,r)}return a}function Be(e,t,n){if(P.errorHandler)try{return P.errorHandler.call(null,e,t,n)}catch(t){t!==e&&ze(t,null,"config.errorHandler")}ze(e,t,n)}function ze(e,t,n){if(!z&&!Y||"undefined"==typeof console)throw e;console.error(e)}var Ye,Ue=!1,We=[],Ve=!1;function Je(){Ve=!1;var e=We.slice(0);We.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ie(Promise)){var Ge=Promise.resolve();Ye=function(){Ge.then(Je),K&&setTimeout(C)},Ue=!0}else if(V||"undefined"==typeof MutationObserver||!ie(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ye="undefined"!=typeof setImmediate&&ie(setImmediate)?function(){setImmediate(Je)}:function(){setTimeout(Je,0)};else{var Ke=1,Xe=new MutationObserver(Je),Qe=document.createTextNode(String(Ke));Xe.observe(Qe,{characterData:!0}),Ye=function(){Ke=(Ke+1)%2,Qe.data=String(Ke)},Ue=!0}function Ze(e,t){var n;if(We.push(function(){if(e)try{e.call(t)}catch(e){He(e,t,"nextTick")}else n&&n(t)}),Ve||(Ve=!0,Ye()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var et=new re;function tt(e){!function e(t,n){var i,r;var a=Array.isArray(t);if(!a&&!F(t)||Object.isFrozen(t)||t instanceof pe)return;if(t.__ob__){var o=t.__ob__.dep.id;if(n.has(o))return;n.add(o)}if(a)for(i=t.length;i--;)e(t[i],n);else for(r=Object.keys(t),i=r.length;i--;)e(t[r[i]],n)}(e,et),et.clear()}var nt=e(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),i="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=i?e.slice(1):e,once:n,capture:i,passive:t}});function it(e,r){function a(){var e=arguments,t=a.fns;if(!Array.isArray(t))return qe(t,null,arguments,r,"v-on handler");for(var n=t.slice(),i=0;i<n.length;i++)qe(n[i],null,e,r,"v-on handler")}return a.fns=e,a}function rt(e,t,n,i,r,a){var o,s,l,c;for(o in e)s=e[o],l=t[o],c=nt(o),N(s)||(N(l)?(N(s.fns)&&(s=e[o]=it(s,a)),$(c.once)&&(s=e[o]=r(c.name,s,c.capture)),n(c.name,s,c.capture,c.passive,c.params)):s!==l&&(l.fns=s,e[o]=l));for(o in t)N(e[o])&&i((c=nt(o)).name,t[o],c.capture)}function at(e,t,n){var i;e instanceof pe&&(e=e.data.hook||(e.data.hook={}));var r=e[t];function a(){n.apply(this,arguments),p(i.fns,a)}N(r)?i=it([a]):R(r.fns)&&$(r.merged)?(i=r).fns.push(a):i=it([r,a]),i.merged=!0,e[t]=i}function ot(e,t,n,i,r){if(R(t)){if(f(t,n))return e[n]=t[n],r||delete t[n],!0;if(f(t,i))return e[n]=t[i],r||delete t[i],!0}return!1}function st(e){return E(e)?[me(e)]:Array.isArray(e)?function e(t,n){var i=[];var r,a,o,s;for(r=0;r<t.length;r++)N(a=t[r])||"boolean"==typeof a||(o=i.length-1,s=i[o],Array.isArray(a)?a.length>0&&(lt((a=e(a,(n||"")+"_"+r))[0])&&lt(s)&&(i[o]=me(s.text+a[0].text),a.shift()),i.push.apply(i,a)):E(a)?lt(s)?i[o]=me(s.text+a):""!==a&&i.push(me(a)):lt(a)&&lt(s)?i[o]=me(s.text+a.text):($(t._isVList)&&R(a.tag)&&N(a.key)&&R(n)&&(a.key="__vlist"+n+"_"+r+"__"),i.push(a)));return i}(e):void 0}function lt(e){return R(e)&&R(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var n=Object.create(null),i=ae?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("__ob__"!==a){for(var o=e[a].from,s=t;s;){if(s._provided&&f(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s&&"default"in e[a]){var l=e[a].default;n[a]="function"==typeof l?l.call(t):l}}}return n}}function dt(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var a=e[i],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)(n.default||(n.default=[])).push(a);else{var s=o.slot,l=n[s]||(n[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in n)n[c].every(ut)&&delete n[c];return n}function ut(e){return e.isComment&&!e.asyncFactory||" "===e.text}function pt(e){return e.isComment&&e.asyncFactory}function ft(e,t,n){var i,r=Object.keys(t).length>0,a=e?!!e.$stable:!r,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==m&&o===n.$key&&!r&&!n.$hasNormal)return n;for(var s in i={},e)e[s]&&"$"!==s[0]&&(i[s]=ht(t,s,e[s]))}else i={};for(var l in t)l in i||(i[l]=mt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),I(i,"$stable",a),I(i,"$key",o),I(i,"$hasNormal",r),i}function ht(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({}),t=(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:st(e))&&e[0];return e&&(!t||1===e.length&&t.isComment&&!pt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function mt(e,t){return function(){return e[t]}}function vt(e,t){var n,i,r,a,o;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),i=0,r=e.length;i<r;i++)n[i]=t(e[i],i);else if("number"==typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(F(e))if(ae&&e[Symbol.iterator]){n=[];for(var s=e[Symbol.iterator](),l=s.next();!l.done;)n.push(t(l.value,n.length)),l=s.next()}else for(a=Object.keys(e),n=new Array(a.length),i=0,r=a.length;i<r;i++)o=a[i],n[i]=t(e[o],o,i);return R(n)||(n=[]),n._isVList=!0,n}function gt(e,t,n,i){var r,a=this.$scopedSlots[e];a?(n=n||{},i&&(n=b(b({},i),n)),r=a(n)||("function"==typeof t?t():t)):r=this.$slots[e]||("function"==typeof t?t():t);var o=n&&n.slot;return o?this.$createElement("template",{slot:o},r):r}function _t(e){return Ie(this.$options,"filters",e)||x}function yt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function bt(e,t,n,i,r){var a=P.keyCodes[t]||n;return r&&i&&!P.keyCodes[t]?yt(r,i):a?yt(a,e):i?g(i)!==t:void 0===e}function wt(r,a,o,s,l){if(o)if(F(o)){var c;Array.isArray(o)&&(o=w(o));var e=function(t){if("class"===t||"style"===t||d(t))c=r;else{var e=r.attrs&&r.attrs.type;c=s||P.mustUseProp(a,e,t)?r.domProps||(r.domProps={}):r.attrs||(r.attrs={})}var n=h(t),i=g(t);n in c||i in c||(c[t]=o[t],l&&((r.on||(r.on={}))["update:"+t]=function(e){o[t]=e}))};for(var t in o)e(t)}else;return r}function Ct(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t?i:(kt(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),i)}function xt(e,t,n){return kt(e,"__once__"+t+(n?"_"+n:""),!0),e}function kt(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!=typeof e[i]&&St(e[i],t+"_"+i,n);else St(e,t,n)}function St(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Dt(e,t){if(t)if(l(t)){var n=e.on=e.on?b({},e.on):{};for(var i in t){var r=n[i],a=t[i];n[i]=r?[].concat(r,a):a}}else;return e}function Tt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var a=e[r];Array.isArray(a)?Tt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return i&&(t.$key=i),t}function $t(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"==typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Et(e,t){return"string"==typeof e?t+e:e}function Ot(e){e._o=xt,e._n=L,e._s=t,e._l=vt,e._t=gt,e._q=k,e._i=S,e._m=Ct,e._f=_t,e._k=bt,e._b=wt,e._v=me,e._e=he,e._u=Tt,e._g=Dt,e._d=$t,e._p=Et}function At(e,t,n,a,i){var o,r=this,s=i.options;f(a,"_uid")?(o=Object.create(a))._original=a:(o=a,a=a._original);var l=$(s._compiled),c=!l;this.data=e,this.props=t,this.children=n,this.parent=a,this.listeners=e.on||m,this.injections=ct(s.inject,a),this.slots=function(){return r.$slots||ft(e.scopedSlots,r.$slots=dt(n,a)),r.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ft(e.scopedSlots,this.slots())}}),l&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=ft(e.scopedSlots,this.$slots)),s._scopeId?this._c=function(e,t,n,i){var r=Ht(o,e,t,n,i,c);return r&&!Array.isArray(r)&&(r.fnScopeId=s._scopeId,r.fnContext=a),r}:this._c=function(e,t,n,i){return Ht(o,e,t,n,i,c)}}function Pt(e,t,n,i,r){var a=ve(e);return a.fnContext=n,a.fnOptions=i,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Mt(e,t){for(var n in t)e[h(n)]=t[n]}Ot(At.prototype);var It={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;It.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;R(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,Gt)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,r){var a=i.data.scopedSlots,o=e.$scopedSlots,s=!!(a&&!a.$stable||o!==m&&!o.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),l=!!(r||e.$options._renderChildren||s);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=r,e.$attrs=i.data.attrs||m,e.$listeners=n||m,t&&e.$options.props){we(!1);for(var c=e._props,d=e.$options._propKeys||[],u=0;u<d.length;u++){var p=d[u],f=e.$options.props;c[p]=Ne(p,f,t,e)}we(!0),e.$options.propsData=t}n=n||m;var h=e.$options._parentListeners;e.$options._parentListeners=n,Jt(e,n,h),l&&(e.$slots=dt(r,i.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,i=e.componentInstance;i._isMounted||(i._isMounted=!0,Zt(i,"mounted")),e.data.keepAlive&&(n._isMounted?((t=i)._inactive=!1,tn.push(t)):Qt(i,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Xt(t)))return;if(!t._inactive){t._inactive=!0;for(var i=0;i<t.$children.length;i++)e(t.$children[i]);Zt(t,"deactivated")}}(t,!0):t.$destroy())}},Nt=Object.keys(It);function Rt(e,t,n,i,r){if(!N(e)){var a=n.$options._base;if(F(e)&&(e=a.extend(e)),"function"==typeof e){var o;if(N(e.cid)&&void 0===(e=function(t,n){if($(t.error)&&R(t.errorComp))return t.errorComp;if(R(t.resolved))return t.resolved;var e=Bt;e&&R(t.owners)&&-1===t.owners.indexOf(e)&&t.owners.push(e);if($(t.loading)&&R(t.loadingComp))return t.loadingComp;if(e&&!R(t.owners)){var i=t.owners=[e],r=!0,a=null,o=null;e.$on("hook:destroyed",function(){return p(i,e)});var s=function(e){for(var t=0,n=i.length;t<n;t++)i[t].$forceUpdate();e&&(i.length=0,null!==a&&(clearTimeout(a),a=null),null!==o&&(clearTimeout(o),o=null))},l=j(function(e){t.resolved=zt(e,n),r?i.length=0:s(!0)}),c=j(function(e){R(t.errorComp)&&(t.error=!0,s(!0))}),d=t(l,c);return F(d)&&(u(d)?N(t.resolved)&&d.then(l,c):u(d.component)&&(d.component.then(l,c),R(d.error)&&(t.errorComp=zt(d.error,n)),R(d.loading)&&(t.loadingComp=zt(d.loading,n),0===d.delay?t.loading=!0:a=setTimeout(function(){a=null,N(t.resolved)&&N(t.error)&&(t.loading=!0,s(!1))},d.delay||200)),R(d.timeout)&&(o=setTimeout(function(){o=null,N(t.resolved)&&c(null)},d.timeout)))),r=!1,t.loading?t.loadingComp:t.resolved}}(o=e,a)))return function(e,t,n,i,r){var a=he();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:i,tag:r},a}(o,t,n,i,r);t=t||{},Cn(e),R(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var r=t.on||(t.on={}),a=r[i],o=t.model.callback;R(a)?(Array.isArray(a)?-1===a.indexOf(o):a!==o)&&(r[i]=[o].concat(a)):r[i]=o}(e.options,t);var s=function(e,t,n){var i=t.options.props;if(!N(i)){var r={},a=e.attrs,o=e.props;if(R(a)||R(o))for(var s in i){var l=g(s);ot(r,o,s,l,!0)||ot(r,a,s,l,!1)}return r}}(t,e);if($(e.options.functional))return function(e,t,n,i,r){var a=e.options,o={},s=a.props;if(R(s))for(var l in s)o[l]=Ne(l,s,t||m);else R(n.attrs)&&Mt(o,n.attrs),R(n.props)&&Mt(o,n.props);var c=new At(n,o,r,i,e),d=a.render.call(null,c._c,c);if(d instanceof pe)return Pt(d,n,c.parent,a);if(Array.isArray(d)){for(var u=st(d)||[],p=new Array(u.length),f=0;f<u.length;f++)p[f]=Pt(u[f],n,c.parent,a);return p}}(e,s,t,n,i);var l=t.on;if(t.on=t.nativeOn,$(e.options.abstract)){var c=t.slot;t={},c&&(t.slot=c)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Nt.length;n++){var i=Nt[n],r=t[i],a=It[i];r===a||r&&r._merged||(t[i]=r?Ft(a,r):a)}}(t);var d=e.options.name||r;return new pe("vue-component-"+e.cid+(d?"-"+d:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:s,listeners:l,tag:r,children:i},o)}}}function Ft(n,i){var e=function(e,t){n(e,t),i(e,t)};return e._merged=!0,e}var Lt=1,jt=2;function Ht(e,t,n,i,r,a){return(Array.isArray(n)||E(n))&&(r=i,i=n,n=void 0),$(a)&&(r=jt),function(e,t,n,i,r){if(R(n)&&R(n.__ob__))return he();R(n)&&R(n.is)&&(t=n.is);if(!t)return he();Array.isArray(i)&&"function"==typeof i[0]&&((n=n||{}).scopedSlots={default:i[0]},i.length=0);r===jt?i=st(i):r===Lt&&(i=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(i));var a,o;if("string"==typeof t){var s;o=e.$vnode&&e.$vnode.ns||P.getTagNamespace(t),a=P.isReservedTag(t)?new pe(P.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!R(s=Ie(e.$options,"components",t))?new pe(t,n,i,void 0,void 0,e):Rt(s,n,e,i,t)}else a=Rt(t,n,e,i);return Array.isArray(a)?a:R(a)?(R(o)&&function e(t,n,i){t.ns=n;"foreignObject"===t.tag&&(n=void 0,i=!0);if(R(t.children))for(var r=0,a=t.children.length;r<a;r++){var o=t.children[r];R(o.tag)&&(N(o.ns)||$(i)&&"svg"!==o.tag)&&e(o,n,i)}}(a,o),R(n)&&function(e){F(e.style)&&tt(e.style);F(e.class)&&tt(e.class)}(n),a):he()}(e,t,n,i,r)}var qt,Bt=null;function zt(e,t){return(e.__esModule||ae&&"Module"===e[Symbol.toStringTag])&&(e=e.default),F(e)?t.extend(e):e}function Yt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(R(n)&&(R(n.componentOptions)||pt(n)))return n}}function Ut(e,t){qt.$on(e,t)}function Wt(e,t){qt.$off(e,t)}function Vt(t,n){var i=qt;return function e(){null!==n.apply(null,arguments)&&i.$off(t,e)}}function Jt(e,t,n){qt=e,rt(t,n||{},Ut,Wt,Vt,e),qt=void 0}var Gt=null;function Kt(e){var t=Gt;return Gt=e,function(){Gt=t}}function Xt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Qt(e,t){if(t){if(e._directInactive=!1,Xt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Qt(e.$children[n]);Zt(e,"activated")}}function Zt(e,t){de();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,a=n.length;r<a;r++)qe(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),ue()}var en=[],tn=[],nn={},rn=!1,an=!1,on=0;var sn=0,ln=Date.now;if(z&&!V){var cn=window.performance;cn&&"function"==typeof cn.now&&ln()>document.createEvent("Event").timeStamp&&(ln=function(){return cn.now()})}function dn(){var e,t;for(sn=ln(),an=!0,en.sort(function(e,t){return e.id-t.id}),on=0;on<en.length;on++)(e=en[on]).before&&e.before(),t=e.id,nn[t]=null,e.run();var n=tn.slice(),i=en.slice();on=en.length=tn.length=0,nn={},rn=an=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Qt(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Zt(i,"updated")}}(i),ne&&P.devtools&&ne.emit("flush")}var un=0,pn=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++un,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new re,this.newDepIds=new re,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!H.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=C)),this.value=this.lazy?void 0:this.get()};pn.prototype.get=function(){var e;de(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;He(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&tt(e),ue(),this.cleanupDeps()}return e},pn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},pn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},pn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==nn[t]){if(nn[t]=!0,an){for(var n=en.length-1;n>on&&en[n].id>e.id;)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,Ze(dn))}}(this)},pn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||F(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';qe(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||p(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var fn={enumerable:!0,configurable:!0,get:C,set:C};function hn(e,t,n){fn.get=function(){return this[t][n]},fn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,fn)}function mn(e){e._watchers=[];var t=e.$options;t.props&&function(n,i){var r=n.$options.propsData||{},a=n._props={},o=n.$options._propKeys=[];n.$parent&&we(!1);var e=function(e){o.push(e);var t=Ne(e,i,r,n);ke(a,e,t),e in n||hn(n,"_props",e)};for(var t in i)e(t);we(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?C:_(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){de();try{return e.call(t,t)}catch(e){return He(e,t,"data()"),{}}finally{ue()}}(t,e):t||{})||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);for(;r--;){var a=n[r];i&&f(i,a)||(o=void 0,36!==(o=(a+"").charCodeAt(0))&&95!==o&&hn(e,"_data",a))}var o;xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),i=te();for(var r in t){var a=t[r],o="function"==typeof a?a:a.get;i||(n[r]=new pn(e,o||C,C,vn)),r in e||gn(e,r,a)}}(e,t.computed),t.watch&&t.watch!==Q&&function(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)bn(e,n,i[r]);else bn(e,n,i)}}(e,t.watch)}var vn={lazy:!0};function gn(e,t,n){var i=!te();"function"==typeof n?(fn.get=i?_n(t):yn(n),fn.set=C):(fn.get=n.get?i&&!1!==n.cache?_n(t):yn(n.get):C,fn.set=n.set||C),Object.defineProperty(e,t,fn)}function _n(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),le.target&&e.depend(),e.value}}function yn(e){return function(){return e.call(this,this)}}function bn(e,t,n,i){return l(n)&&(i=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,i)}var wn=0;function Cn(e){var t=e.options;if(e.super){var n=Cn(e.super);if(n!==e.superOptions){e.superOptions=n;var i=function(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}(e);i&&b(e.extendOptions,i),(t=e.options=Me(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function xn(e){this._init(e)}function kn(e){e.cid=0;var o=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,i=e._Ctor||(e._Ctor={});if(i[n])return i[n];var r=e.name||t.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(t.prototype)).constructor=a,a.cid=o++,a.options=Me(t.options,e),a.super=t,a.options.props&&function(e){var t=e.options.props;for(var n in t)hn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)gn(e.prototype,n,t[n])}(a),a.extend=t.extend,a.mixin=t.mixin,a.use=t.use,D.forEach(function(e){a[e]=t[e]}),r&&(a.options.components[r]=a),a.superOptions=t.options,a.extendOptions=e,a.sealedOptions=b({},a.options),i[n]=a,a}}function Sn(e){return e&&(e.Ctor.options.name||e.tag)}function Dn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===i.call(n)&&e.test(t));var n}function Tn(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;s&&!t(s)&&$n(n,a,i,r)}}}function $n(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,p(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=wn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(Cn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Jt(e,t)}(t),function(r){r._vnode=null,r._staticTrees=null;var e=r.$options,t=r.$vnode=e._parentVnode,n=t&&t.context;r.$slots=dt(e._renderChildren,n),r.$scopedSlots=m,r._c=function(e,t,n,i){return Ht(r,e,t,n,i,!1)},r.$createElement=function(e,t,n,i){return Ht(r,e,t,n,i,!0)};var i=t&&t.data;ke(r,"$attrs",i&&i.attrs||m,null,!0),ke(r,"$listeners",e._parentListeners||m,null,!0)}(t),Zt(t,"beforeCreate"),function(t){var n=ct(t.$options.inject,t);n&&(we(!1),Object.keys(n).forEach(function(e){ke(t,e,n[e])}),we(!0))}(t),mn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Zt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(xn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Se,e.prototype.$delete=De,e.prototype.$watch=function(e,t,n){if(l(t))return bn(this,e,t,n);(n=n||{}).user=!0;var i=new pn(this,e,t,n);if(n.immediate){var r='callback for immediate watcher "'+i.expression+'"';de(),qe(t,this,[i.value],this,r),ue()}return function(){i.teardown()}}}(xn),function(e){var a=/^hook:/;e.prototype.$on=function(e,t){var n=this;if(Array.isArray(e))for(var i=0,r=e.length;i<r;i++)n.$on(e[i],t);else(n._events[e]||(n._events[e]=[])).push(t),a.test(e)&&(n._hasHookEvent=!0);return n},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var a,o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;for(var s=o.length;s--;)if((a=o[s])===t||a.fn===t){o.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this._events[e];if(t){t=t.length>1?y(t):t;for(var n=y(arguments,1),i='event handler for "'+e+'"',r=0,a=t.length;r<a;r++)qe(t[r],this,n,this,i)}return this}}(xn),function(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,a=Kt(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),a(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Zt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||p(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Zt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(xn),function(e){Ot(e.prototype),e.prototype.$nextTick=function(e){return Ze(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=ft(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{Bt=t,e=i.call(t._renderProxy,t.$createElement)}catch(n){He(n,t,"render"),e=t._vnode}finally{Bt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof pe||(e=he()),e.parent=r,e}}(xn);var En=[String,RegExp,Array],On={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:En,exclude:En,max:[String,Number]},methods:{cacheVNode:function(){var e=this.cache,t=this.keys,n=this.vnodeToCache,i=this.keyToCache;if(n){var r=n.tag,a=n.componentInstance,o=n.componentOptions;e[i]={name:Sn(o),tag:r,componentInstance:a},t.push(i),this.max&&t.length>parseInt(this.max)&&$n(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)$n(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){Tn(e,function(e){return Dn(t,e)})}),this.$watch("exclude",function(t){Tn(e,function(e){return!Dn(t,e)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Yt(e),n=t&&t.componentOptions;if(n){var i=Sn(n),r=this.include,a=this.exclude;if(r&&(!i||!Dn(r,i))||a&&i&&Dn(a,i))return t;var o=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;o[l]?(t.componentInstance=o[l].componentInstance,p(s,l),s.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(t){var e={get:function(){return P}};Object.defineProperty(t,"config",e),t.util={warn:oe,extend:b,mergeOptions:Me,defineReactive:ke},t.set=Se,t.delete=De,t.nextTick=Ze,t.observable=function(e){return xe(e),e},t.options=Object.create(null),D.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,b(t.options.components,On),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(t),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(t),kn(t),function(e){D.forEach(function(n){e[n]=function(e,t){return t?("component"===n&&l(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t,t):this.options[n+"s"][e]}})}(t)}(xn),Object.defineProperty(xn.prototype,"$isServer",{get:te}),Object.defineProperty(xn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xn,"FunctionalRenderContext",{value:At}),xn.version="2.6.14";var An=o("style,class"),Pn=o("input,textarea,option,select,progress"),Mn=function(e,t,n){return"value"===n&&Pn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},In=o("contenteditable,draggable,spellcheck"),Nn=o("events,caret,typing,plaintext-only"),Rn=function(e,t){return qn(t)||"false"===t?"false":"contenteditable"===e&&Nn(t)?t:"true"},Fn=o("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ln="http://www.w3.org/1999/xlink",jn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Hn=function(e){return jn(e)?e.slice(6,e.length):""},qn=function(e){return null==e||!1===e};function Bn(e){for(var t=e.data,n=e,i=e;R(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=zn(i.data,t));for(;R(n=n.parent);)n&&n.data&&(t=zn(t,n.data));return function(e,t){if(R(e)||R(t))return Yn(e,Un(t));return""}(t.staticClass,t.class)}function zn(e,t){return{staticClass:Yn(e.staticClass,t.staticClass),class:R(e.class)?[e.class,t.class]:t.class}}function Yn(e,t){return e?t?e+" "+t:e:t||""}function Un(e){return Array.isArray(e)?function(e){for(var t,n="",i=0,r=e.length;i<r;i++)R(t=Un(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):F(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Wn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Vn=o("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Jn=o("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Gn=function(e){return Vn(e)||Jn(e)};function Kn(e){return Jn(e)?"svg":"math"===e?"math":void 0}var Xn=Object.create(null);var Qn=o("text,number,password,search,email,tel,url");function Zn(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var ei=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(Wn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),ti={create:function(e,t){ni(t)},update:function(e,t){e.data.ref!==t.data.ref&&(ni(e,!0),ni(t))},destroy:function(e){ni(e,!0)}};function ni(e,t){var n=e.data.ref;if(R(n)){var i=e.context,r=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[n])?p(a[n],r):a[n]===r&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(r)<0&&a[n].push(r):a[n]=[r]:a[n]=r}}var ii=new pe("",{},[]),ri=["create","activate","update","remove","destroy"];function ai(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&R(e.data)===R(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,i=R(n=e.data)&&R(n=n.attrs)&&n.type,r=R(n=t.data)&&R(n=n.attrs)&&n.type;return i===r||Qn(i)&&Qn(r)}(e,t)||$(e.isAsyncPlaceholder)&&N(t.asyncFactory.error))}function oi(e,t,n){var i,r,a={};for(i=t;i<=n;++i)R(r=e[i].key)&&(a[r]=i);return a}var si={create:li,update:li,destroy:function(e){li(e,ii)}};function li(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,i,r,a=t===ii,o=n===ii,s=di(t.data.directives,t.context),l=di(n.data.directives,n.context),c=[],d=[];for(e in l)i=s[e],r=l[e],i?(r.oldValue=i.value,r.oldArg=i.arg,pi(r,"update",n,t),r.def&&r.def.componentUpdated&&d.push(r)):(pi(r,"bind",n,t),r.def&&r.def.inserted&&c.push(r));if(c.length){var u=function(){for(var e=0;e<c.length;e++)pi(c[e],"inserted",n,t)};a?at(n,"insert",u):u()}d.length&&at(n,"postpatch",function(){for(var e=0;e<d.length;e++)pi(d[e],"componentUpdated",n,t)});if(!a)for(e in s)l[e]||pi(s[e],"unbind",t,t,o)}(e,t)}var ci=Object.create(null);function di(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)(i=e[n]).modifiers||(i.modifiers=ci),r[ui(i)]=i,i.def=Ie(t.$options,"directives",i.name);return r}function ui(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function pi(e,t,n,i,r){var a=e.def&&e.def[t];if(a)try{a(n.elm,e,n,i,r)}catch(i){He(i,n.context,"directive "+e.name+" "+t+" hook")}}var fi=[ti,si];function hi(e,t){var n=t.componentOptions;if(!(R(n)&&!1===n.Ctor.options.inheritAttrs||N(e.data.attrs)&&N(t.data.attrs))){var i,r,a=t.elm,o=e.data.attrs||{},s=t.data.attrs||{};for(i in R(s.__ob__)&&(s=t.data.attrs=b({},s)),s)r=s[i],o[i]!==r&&mi(a,i,r,t.data.pre);for(i in(V||G)&&s.value!==o.value&&mi(a,"value",s.value),o)N(s[i])&&(jn(i)?a.removeAttributeNS(Ln,Hn(i)):In(i)||a.removeAttribute(i))}}function mi(e,t,n,i){i||e.tagName.indexOf("-")>-1?vi(e,t,n):Fn(t)?qn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):In(t)?e.setAttribute(t,Rn(t,n)):jn(t)?qn(n)?e.removeAttributeNS(Ln,Hn(t)):e.setAttributeNS(Ln,t,n):vi(e,t,n)}function vi(t,e,n){if(qn(n))t.removeAttribute(e);else{if(V&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var i=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",i)};t.addEventListener("input",i),t.__ieph=!0}t.setAttribute(e,n)}}var gi={create:hi,update:hi};function _i(e,t){var n=t.elm,i=t.data,r=e.data;if(!(N(i.staticClass)&&N(i.class)&&(N(r)||N(r.staticClass)&&N(r.class)))){var a=Bn(t),o=n._transitionClasses;R(o)&&(a=Yn(a,Un(o))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var yi,bi,wi,Ci,xi,ki,Si={create:_i,update:_i},Di=/[\w).+\-_$\]]/;function Ti(e){var t,n,i,r,a,o=!1,s=!1,l=!1,c=!1,d=0,u=0,p=0,f=0;for(i=0;i<e.length;i++)if(n=t,t=e.charCodeAt(i),o)39===t&&92!==n&&(o=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||d||u||p){switch(t){case 34:s=!0;break;case 39:o=!0;break;case 96:l=!0;break;case 40:p++;break;case 41:p--;break;case 91:u++;break;case 93:u--;break;case 123:d++;break;case 125:d--}if(47===t){for(var h=i-1,m=void 0;h>=0&&" "===(m=e.charAt(h));h--);m&&Di.test(m)||(c=!0)}}else void 0===r?(f=i+1,r=e.slice(0,i).trim()):v();function v(){(a||(a=[])).push(e.slice(f,i).trim()),f=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==f&&v(),a)for(i=0;i<a.length;i++)r=$i(r,a[i]);return r}function $i(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var i=t.slice(0,n),r=t.slice(n+1);return'_f("'+i+'")('+e+(")"!==r?","+r:r)}function Ei(e,t){console.error("[Vue compiler]: "+e)}function Oi(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Ai(e,t,n,i,r){(e.props||(e.props=[])).push(Hi({name:t,value:n,dynamic:r},i)),e.plain=!1}function Pi(e,t,n,i,r){(r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Hi({name:t,value:n,dynamic:r},i)),e.plain=!1}function Mi(e,t,n,i){e.attrsMap[t]=n,e.attrsList.push(Hi({name:t,value:n},i))}function Ii(e,t,n,i,r,a,o,s){(e.directives||(e.directives=[])).push(Hi({name:t,rawName:n,value:i,arg:r,isDynamicArg:a,modifiers:o},s)),e.plain=!1}function Ni(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Ri(e,t,n,i,r,a,o,s){var l;(i=i||m).right?s?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(s?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Ni("!",t,s)),i.once&&(delete i.once,t=Ni("~",t,s)),i.passive&&(delete i.passive,t=Ni("&",t,s)),i.native?(delete i.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});var c=Hi({value:n.trim(),dynamic:s},o);i!==m&&(c.modifiers=i);var d=l[t];Array.isArray(d)?r?d.unshift(c):d.push(c):l[t]=d?r?[c,d]:[d,c]:c,e.plain=!1}function Fi(e,t,n){var i=Li(e,":"+t)||Li(e,"v-bind:"+t);if(null!=i)return Ti(i);if(!1!==n){var r=Li(e,t);if(null!=r)return JSON.stringify(r)}}function Li(e,t,n){var i;if(null!=(i=e.attrsMap[t]))for(var r=e.attrsList,a=0,o=r.length;a<o;a++)if(r[a].name===t){r.splice(a,1);break}return n&&delete e.attrsMap[t],i}function ji(e,t){for(var n=e.attrsList,i=0,r=n.length;i<r;i++){var a=n[i];if(t.test(a.name))return n.splice(i,1),a}}function Hi(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function qi(e,t,n){var i=n||{},r=i.number,a="$$v";i.trim&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(a="_n("+a+")");var o=Bi(t,a);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+o+"}"}}function Bi(e,t){var n=function(e){if(e=e.trim(),yi=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<yi-1)return(Ci=e.lastIndexOf("."))>-1?{exp:e.slice(0,Ci),key:'"'+e.slice(Ci+1)+'"'}:{exp:e,key:null};bi=e,Ci=xi=ki=0;for(;!Yi();)Ui(wi=zi())?Vi(wi):91===wi&&Wi(wi);return{exp:e.slice(0,xi),key:e.slice(xi+1,ki)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function zi(){return bi.charCodeAt(++Ci)}function Yi(){return Ci>=yi}function Ui(e){return 34===e||39===e}function Wi(e){var t=1;for(xi=Ci;!Yi();)if(Ui(e=zi()))Vi(e);else if(91===e&&t++,93===e&&t--,0===t){ki=Ci;break}}function Vi(e){for(var t=e;!Yi()&&(e=zi())!==t;);}var Ji,Gi="__r",Ki="__c";function Xi(t,n,i){var r=Ji;return function e(){null!==n.apply(null,arguments)&&er(t,e,i,r)}}var Qi=Ue&&!(X&&Number(X[1])<=53);function Zi(e,t,n,i){if(Qi){var r=sn,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Ji.addEventListener(e,t,Z?{capture:n,passive:i}:n)}function er(e,t,n,i){(i||Ji).removeEventListener(e,t._wrapper||t,n)}function tr(e,t){if(!N(e.data.on)||!N(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Ji=t.elm,function(e){if(R(e[Gi])){var t=V?"change":"input";e[t]=[].concat(e[Gi],e[t]||[]),delete e[Gi]}R(e[Ki])&&(e.change=[].concat(e[Ki],e.change||[]),delete e[Ki])}(n),rt(n,i,Zi,er,Xi,t.context),Ji=void 0}}var nr,ir={create:tr,update:tr};function rr(e,t){if(!N(e.data.domProps)||!N(t.data.domProps)){var n,i,r=t.elm,a=e.data.domProps||{},o=t.data.domProps||{};for(n in R(o.__ob__)&&(o=t.data.domProps=b({},o)),a)n in o||(r[n]="");for(n in o){if(i=o[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===a[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var s=N(i)?"":String(i);ar(r,s)&&(r.value=s)}else if("innerHTML"===n&&Jn(r.tagName)&&N(r.innerHTML)){(nr=nr||document.createElement("div")).innerHTML="<svg>"+i+"</svg>";for(var l=nr.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;l.firstChild;)r.appendChild(l.firstChild)}else if(i!==a[n])try{r[n]=i}catch(e){}}}}function ar(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,i=e._vModifiers;if(R(i)){if(i.number)return L(n)!==L(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var or={create:rr,update:rr},sr=e(function(e){var n={},i=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(i);t.length>1&&(n[t[0].trim()]=t[1].trim())}}),n});function lr(e){var t=cr(e.style);return e.staticStyle?b(e.staticStyle,t):t}function cr(e){return Array.isArray(e)?w(e):"string"==typeof e?sr(e):e}var dr,ur=/^--/,pr=/\s*!important$/,fr=function(e,t,n){if(ur.test(t))e.style.setProperty(t,n);else if(pr.test(n))e.style.setProperty(g(t),n.replace(pr,""),"important");else{var i=mr(t);if(Array.isArray(n))for(var r=0,a=n.length;r<a;r++)e.style[i]=n[r];else e.style[i]=n}},hr=["Webkit","Moz","ms"],mr=e(function(e){if(dr=dr||document.createElement("div").style,"filter"!==(e=h(e))&&e in dr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<hr.length;n++){var i=hr[n]+t;if(i in dr)return i}});function vr(e,t){var n=t.data,i=e.data;if(!(N(n.staticStyle)&&N(n.style)&&N(i.staticStyle)&&N(i.style))){var r,a,o=t.elm,s=i.staticStyle,l=i.normalizedStyle||i.style||{},c=s||l,d=cr(t.data.style)||{};t.data.normalizedStyle=R(d.__ob__)?b({},d):d;var u=function(e,t){var n,i={};if(t)for(var r=e;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(n=lr(r.data))&&b(i,n);(n=lr(e.data))&&b(i,n);for(var a=e;a=a.parent;)a.data&&(n=lr(a.data))&&b(i,n);return i}(t,!0);for(a in c)N(u[a])&&fr(o,a,"");for(a in u)(r=u[a])!==c[a]&&fr(o,a,null==r?"":r)}}var gr={create:vr,update:vr},_r=/\s+/;function yr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(_r).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function br(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(_r).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function wr(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&b(t,Cr(e.name||"v")),b(t,e),t}return"string"==typeof e?Cr(e):void 0}}var Cr=e(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),xr=z&&!J,kr="transition",Sr="animation",Dr="transition",Tr="transitionend",$r="animation",Er="animationend";xr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Dr="WebkitTransition",Tr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&($r="WebkitAnimation",Er="webkitAnimationEnd"));var Or=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ar(e){Or(function(){Or(e)})}function Pr(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),yr(e,t))}function Mr(e,t){e._transitionClasses&&p(e._transitionClasses,t),br(e,t)}function Ir(t,e,n){var i=Rr(t,e),r=i.type,a=i.timeout,o=i.propCount;if(!r)return n();var s=r===kr?Tr:Er,l=0,c=function(){t.removeEventListener(s,d),n()},d=function(e){e.target===t&&++l>=o&&c()};setTimeout(function(){l<o&&c()},a+1),t.addEventListener(s,d)}var Nr=/\b(transform|all)(,|$)/;function Rr(e,t){var n,i=window.getComputedStyle(e),r=(i[Dr+"Delay"]||"").split(", "),a=(i[Dr+"Duration"]||"").split(", "),o=Fr(r,a),s=(i[$r+"Delay"]||"").split(", "),l=(i[$r+"Duration"]||"").split(", "),c=Fr(s,l),d=0,u=0;return t===kr?o>0&&(n=kr,d=o,u=a.length):t===Sr?c>0&&(n=Sr,d=c,u=l.length):u=(n=(d=Math.max(o,c))>0?o>c?kr:Sr:null)?n===kr?a.length:l.length:0,{type:n,timeout:d,propCount:u,hasTransform:n===kr&&Nr.test(i[Dr+"Property"])}}function Fr(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max.apply(null,e.map(function(e,t){return Lr(e)+Lr(n[t])}))}function Lr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function jr(n,e){var i=n.elm;R(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var t=wr(n.data.transition);if(!N(t)&&!R(i._enterCb)&&1===i.nodeType){for(var r=t.css,a=t.type,o=t.enterClass,s=t.enterToClass,l=t.enterActiveClass,c=t.appearClass,d=t.appearToClass,u=t.appearActiveClass,p=t.beforeEnter,f=t.enter,h=t.afterEnter,m=t.enterCancelled,v=t.beforeAppear,g=t.appear,_=t.afterAppear,y=t.appearCancelled,b=t.duration,w=Gt,C=Gt.$vnode;C&&C.parent;)w=C.context,C=C.parent;var x=!w._isMounted||!n.isRootInsert;if(!x||g||""===g){var k=x&&c?c:o,S=x&&u?u:l,D=x&&d?d:s,T=x&&v||p,$=x&&"function"==typeof g?g:f,E=x&&_||h,O=x&&y||m,A=L(F(b)?b.enter:b),P=!1!==r&&!J,M=Br($),I=i._enterCb=j(function(){P&&(Mr(i,D),Mr(i,S)),I.cancelled?(P&&Mr(i,k),O&&O(i)):E&&E(i),i._enterCb=null});n.data.show||at(n,"insert",function(){var e=i.parentNode,t=e&&e._pending&&e._pending[n.key];t&&t.tag===n.tag&&t.elm._leaveCb&&t.elm._leaveCb(),$&&$(i,I)}),T&&T(i),P&&(Pr(i,k),Pr(i,S),Ar(function(){Mr(i,k),I.cancelled||(Pr(i,D),M||(qr(A)?setTimeout(I,A):Ir(i,a,I)))})),n.data.show&&(e&&e(),$&&$(i,I)),P||M||I()}}}function Hr(e,t){var n=e.elm;R(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=wr(e.data.transition);if(N(i)||1!==n.nodeType)return t();if(!R(n._leaveCb)){var r=i.css,a=i.type,o=i.leaveClass,s=i.leaveToClass,l=i.leaveActiveClass,c=i.beforeLeave,d=i.leave,u=i.afterLeave,p=i.leaveCancelled,f=i.delayLeave,h=i.duration,m=!1!==r&&!J,v=Br(d),g=L(F(h)?h.leave:h),_=n._leaveCb=j(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),m&&(Mr(n,s),Mr(n,l)),_.cancelled?(m&&Mr(n,o),p&&p(n)):(t(),u&&u(n)),n._leaveCb=null});f?f(y):y()}function y(){_.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),c&&c(n),m&&(Pr(n,o),Pr(n,l),Ar(function(){Mr(n,o),_.cancelled||(Pr(n,s),v||(qr(g)?setTimeout(_,g):Ir(n,a,_)))})),d&&d(n,_),m||v||_())}}function qr(e){return"number"==typeof e&&!isNaN(e)}function Br(e){if(N(e))return!1;var t=e.fns;return R(t)?Br(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function zr(e,t){!0!==t.data.show&&jr(t)}var Yr=function(e){var i,t,v={},n=e.modules,g=e.nodeOps;for(i=0;i<ri.length;++i)for(v[ri[i]]=[],t=0;t<n.length;++t)R(n[t][ri[i]])&&v[ri[i]].push(n[t][ri[i]]);function r(e){var t=g.parentNode(e);R(t)&&g.removeChild(t,e)}function _(e,t,n,i,r,a,o){if(R(e.elm)&&R(a)&&(e=a[o]=ve(e)),e.isRootInsert=!r,!function(e,t,n,i){var r=e.data;if(R(r)){var a=R(e.componentInstance)&&r.keepAlive;if(R(r=r.hook)&&R(r=r.init)&&r(e,!1),R(e.componentInstance))return f(e,t),d(n,e.elm,i),$(a)&&function(e,t,n,i){for(var r,a=e;a.componentInstance;)if(a=a.componentInstance._vnode,R(r=a.data)&&R(r=r.transition)){for(r=0;r<v.activate.length;++r)v.activate[r](ii,a);t.push(a);break}d(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var s=e.data,l=e.children,c=e.tag;R(c)?(e.elm=e.ns?g.createElementNS(e.ns,c):g.createElement(c,e),u(e),h(e,l,t),R(s)&&m(e,t),d(n,e.elm,i)):$(e.isComment)?(e.elm=g.createComment(e.text),d(n,e.elm,i)):(e.elm=g.createTextNode(e.text),d(n,e.elm,i))}}function f(e,t){R(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,y(e)?(m(e,t),u(e)):(ni(e),t.push(e))}function d(e,t,n){R(e)&&(R(n)?g.parentNode(n)===e&&g.insertBefore(e,t,n):g.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var i=0;i<t.length;++i)_(t[i],n,e.elm,null,!0,t,i);else E(e.text)&&g.appendChild(e.elm,g.createTextNode(String(e.text)))}function y(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return R(e.tag)}function m(e,t){for(var n=0;n<v.create.length;++n)v.create[n](ii,e);R(i=e.data.hook)&&(R(i.create)&&i.create(ii,e),R(i.insert)&&t.push(e))}function u(e){var t;if(R(t=e.fnScopeId))g.setStyleScope(e.elm,t);else for(var n=e;n;)R(t=n.context)&&R(t=t.$options._scopeId)&&g.setStyleScope(e.elm,t),n=n.parent;R(t=Gt)&&t!==e.context&&t!==e.fnContext&&R(t=t.$options._scopeId)&&g.setStyleScope(e.elm,t)}function b(e,t,n,i,r,a){for(;i<=r;++i)_(n[i],a,e,t,!1,n,i)}function w(e){var t,n,i=e.data;if(R(i))for(R(t=i.hook)&&R(t=t.destroy)&&t(e),t=0;t<v.destroy.length;++t)v.destroy[t](e);if(R(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function C(e,t,n){for(;t<=n;++t){var i=e[t];R(i)&&(R(i.tag)?(a(i),w(i)):r(i.elm))}}function a(e,t){if(R(t)||R(e.data)){var n,i=v.remove.length+1;for(R(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&r(e)}return n.listeners=t,n}(e.elm,i),R(n=e.componentInstance)&&R(n=n._vnode)&&R(n.data)&&a(n,t),n=0;n<v.remove.length;++n)v.remove[n](e,t);R(n=e.data.hook)&&R(n=n.remove)?n(e,t):t()}else r(e.elm)}function x(e,t,n,i){for(var r=n;r<i;r++){var a=t[r];if(R(a)&&ai(e,a))return r}}function k(e,t,n,i,r,a){if(e!==t){R(t.elm)&&R(i)&&(t=i[r]=ve(t));var o=t.elm=e.elm;if($(e.isAsyncPlaceholder))R(t.asyncFactory.resolved)?T(e.elm,t,n):t.isAsyncPlaceholder=!0;else if($(t.isStatic)&&$(e.isStatic)&&t.key===e.key&&($(t.isCloned)||$(t.isOnce)))t.componentInstance=e.componentInstance;else{var s,l=t.data;R(l)&&R(s=l.hook)&&R(s=s.prepatch)&&s(e,t);var c=e.children,d=t.children;if(R(l)&&y(t)){for(s=0;s<v.update.length;++s)v.update[s](e,t);R(s=l.hook)&&R(s=s.update)&&s(e,t)}N(t.text)?R(c)&&R(d)?c!==d&&function(e,t,n,i,r){for(var a,o,s,l=0,c=0,d=t.length-1,u=t[0],p=t[d],f=n.length-1,h=n[0],m=n[f],v=!r;l<=d&&c<=f;)N(u)?u=t[++l]:N(p)?p=t[--d]:ai(u,h)?(k(u,h,i,n,c),u=t[++l],h=n[++c]):ai(p,m)?(k(p,m,i,n,f),p=t[--d],m=n[--f]):ai(u,m)?(k(u,m,i,n,f),v&&g.insertBefore(e,u.elm,g.nextSibling(p.elm)),u=t[++l],m=n[--f]):ai(p,h)?(k(p,h,i,n,c),v&&g.insertBefore(e,p.elm,u.elm),p=t[--d],h=n[++c]):(N(a)&&(a=oi(t,l,d)),N(o=R(h.key)?a[h.key]:x(h,t,l,d))?_(h,i,e,u.elm,!1,n,c):ai(s=t[o],h)?(k(s,h,i,n,c),t[o]=void 0,v&&g.insertBefore(e,s.elm,u.elm)):_(h,i,e,u.elm,!1,n,c),h=n[++c]);l>d?b(e,N(n[f+1])?null:n[f+1].elm,n,c,f,i):c>f&&C(t,l,d)}(o,c,d,n,a):R(d)?(R(e.text)&&g.setTextContent(o,""),b(o,null,d,0,d.length-1,n)):R(c)?C(c,0,c.length-1):R(e.text)&&g.setTextContent(o,""):e.text!==t.text&&g.setTextContent(o,t.text),R(l)&&R(s=l.hook)&&R(s=s.postpatch)&&s(e,t)}}}function S(e,t,n){if($(n)&&R(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var D=o("attrs,class,staticClass,staticStyle,key");function T(e,t,n,i){var r,a=t.tag,o=t.data,s=t.children;if(i=i||o&&o.pre,t.elm=e,$(t.isComment)&&R(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(R(o)&&(R(r=o.hook)&&R(r=r.init)&&r(t,!0),R(r=t.componentInstance)))return f(t,n),!0;if(R(a)){if(R(s))if(e.hasChildNodes())if(R(r=o)&&R(r=r.domProps)&&R(r=r.innerHTML)){if(r!==e.innerHTML)return!1}else{for(var l=!0,c=e.firstChild,d=0;d<s.length;d++){if(!c||!T(c,s[d],n,i)){l=!1;break}c=c.nextSibling}if(!l||c)return!1}else h(t,s,n);if(R(o)){var u=!1;for(var p in o)if(!D(p)){u=!0,m(t,n);break}!u&&o.class&&tt(o.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!N(t)){var r,a=!1,o=[];if(N(e))a=!0,_(t,o);else{var s=R(e.nodeType);if(!s&&ai(e,t))k(e,t,o,null,null,i);else{if(s){if(1===e.nodeType&&e.hasAttribute(O)&&(e.removeAttribute(O),n=!0),$(n)&&T(e,t,o))return S(t,o,!0),e;r=e,e=new pe(g.tagName(r).toLowerCase(),{},[],void 0,r)}var l=e.elm,c=g.parentNode(l);if(_(t,o,l._leaveCb?null:c,g.nextSibling(l)),R(t.parent))for(var d=t.parent,u=y(t);d;){for(var p=0;p<v.destroy.length;++p)v.destroy[p](d);if(d.elm=t.elm,u){for(var f=0;f<v.create.length;++f)v.create[f](ii,d);var h=d.data.hook.insert;if(h.merged)for(var m=1;m<h.fns.length;m++)h.fns[m]()}else ni(d);d=d.parent}R(c)?C([e],0,0):R(e.tag)&&w(e)}}return S(t,o,a),t.elm}R(e)&&w(e)}}({nodeOps:ei,modules:[gi,Si,ir,or,gr,z?{create:zr,activate:zr,remove:function(e,t){!0!==e.data.show?Hr(e,t):t()}}:{}].concat(fi)});J&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Qr(e,"input")});var Ur={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?at(n,"postpatch",function(){Ur.componentUpdated(e,t,n)}):Wr(e,t,n.context),e._vOptions=[].map.call(e.options,Gr)):("textarea"===n.tag||Qn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Kr),e.addEventListener("compositionend",Xr),e.addEventListener("change",Xr),J&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Wr(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Gr);if(r.some(function(e,t){return!k(e,i[t])}))(e.multiple?t.value.some(function(e){return Jr(e,r)}):t.value!==t.oldValue&&Jr(t.value,r))&&Qr(e,"change")}}};function Wr(e,t,n){Vr(e,t,n),(V||G)&&setTimeout(function(){Vr(e,t,n)},0)}function Vr(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var a,o,s=0,l=e.options.length;s<l;s++)if(o=e.options[s],r)a=S(i,Gr(o))>-1,o.selected!==a&&(o.selected=a);else if(k(Gr(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function Jr(t,e){return e.every(function(e){return!k(e,t)})}function Gr(e){return"_value"in e?e._value:e.value}function Kr(e){e.target.composing=!0}function Xr(e){e.target.composing&&(e.target.composing=!1,Qr(e.target,"input"))}function Qr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Zr(e){return!e.componentInstance||e.data&&e.data.transition?e:Zr(e.componentInstance._vnode)}var ea={model:Ur,show:{bind:function(e,t,n){var i=t.value,r=(n=Zr(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,jr(n,function(){e.style.display=a})):e.style.display=i?a:"none"},update:function(e,t,n){var i=t.value;!i!=!t.oldValue&&((n=Zr(n)).data&&n.data.transition?(n.data.show=!0,i?jr(n,function(){e.style.display=e.__vOriginalDisplay}):Hr(n,function(){e.style.display="none"})):e.style.display=i?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}}},ta={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function na(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?na(Yt(t.children)):e}function ia(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var a in r)t[h(a)]=r[a];return t}function ra(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var aa=function(e){return e.tag||pt(e)},oa=function(e){return"show"===e.name},sa={name:"transition",props:ta,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(aa)).length){var i=this.mode,r=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;var a=na(r);if(!a)return r;if(this._leaving)return ra(e,r);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:E(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var s=(a.data||(a.data={})).transition=ia(this),l=this._vnode,c=na(l);if(a.data.directives&&a.data.directives.some(oa)&&(a.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,c)&&!pt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=b({},s);if("out-in"===i)return this._leaving=!0,at(d,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ra(e,r);if("in-out"===i){if(pt(a))return l;var u,p=function(){u()};at(s,"afterEnter",p),at(s,"enterCancelled",p),at(d,"delayLeave",function(e){u=e})}}return r}}},la=b({tag:String,moveClass:String},ta);function ca(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function da(e){e.data.newPos=e.elm.getBoundingClientRect()}function ua(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+r+"px)",a.transitionDuration="0s"}}delete la.mode;var pa={Transition:sa,TransitionGroup:{props:la,beforeMount:function(){var i=this,r=this._update;this._update=function(e,t){var n=Kt(i);i.__patch__(i._vnode,i.kept,!1,!0),i._vnode=i.kept,n(),r.call(i,e,t)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],a=this.children=[],o=ia(this),s=0;s<r.length;s++){var l=r[s];l.tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(a.push(l),n[l.key]=l,(l.data||(l.data={})).transition=o)}if(i){for(var c=[],d=[],u=0;u<i.length;u++){var p=i[u];p.data.transition=o,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?c.push(p):d.push(p)}this.kept=e(t,null,c),this.removed=d}return e(t,null,a)},updated:function(){var e=this.prevChildren,i=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,i)&&(e.forEach(ca),e.forEach(da),e.forEach(ua),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,t=n.style;Pr(n,i),t.transform=t.WebkitTransform=t.transitionDuration="",n.addEventListener(Tr,n._moveCb=function e(t){t&&t.target!==n||t&&!/transform$/.test(t.propertyName)||(n.removeEventListener(Tr,e),n._moveCb=null,Mr(n,i))})}}))},methods:{hasMove:function(e,t){if(!xr)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){br(n,e)}),yr(n,t),n.style.display="none",this.$el.appendChild(n);var i=Rr(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}}};xn.config.mustUseProp=Mn,xn.config.isReservedTag=Gn,xn.config.isReservedAttr=An,xn.config.getTagNamespace=Kn,xn.config.isUnknownElement=function(e){if(!z)return!0;if(Gn(e))return!1;if(e=e.toLowerCase(),null!=Xn[e])return Xn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Xn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Xn[e]=/HTMLUnknownElement/.test(t.toString())},b(xn.options.directives,ea),b(xn.options.components,pa),xn.prototype.__patch__=z?Yr:C,xn.prototype.$mount=function(e,t){return function(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=he),Zt(e,"beforeMount"),i=function(){e._update(e._render(),n)},new pn(e,i,C,{before:function(){e._isMounted&&!e._isDestroyed&&Zt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Zt(e,"mounted")),e}(this,e=e&&z?Zn(e):void 0,t)},z&&setTimeout(function(){P.devtools&&ne&&ne.emit("init",xn)},0);var fa=/\{\{((?:.|\r?\n)+?)\}\}/g,ha=/[-.*+?^${}()|[\]\/\\]/g,ma=e(function(e){var t=e[0].replace(ha,"\\$&"),n=e[1].replace(ha,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var va={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Li(e,"class");n&&(e.staticClass=JSON.stringify(n));var i=Fi(e,"class",!1);i&&(e.classBinding=i)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var ga,_a={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Li(e,"style");n&&(e.staticStyle=JSON.stringify(sr(n)));var i=Fi(e,"style",!1);i&&(e.styleBinding=i)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},ya=function(e){return(ga=ga||document.createElement("div")).innerHTML=e,ga.textContent},ba=o("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),wa=o("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Ca=o("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),xa=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ka=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Sa="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+M.source+"]*",Da="((?:"+Sa+"\\:)?"+Sa+")",Ta=new RegExp("^<"+Da),$a=/^\s*(\/?)>/,Ea=new RegExp("^<\\/"+Da+"[^>]*>"),Oa=/^<!DOCTYPE [^>]+>/i,Aa=/^<!\--/,Pa=/^<!\[/,Ma=o("script,style,textarea",!0),Ia={},Na={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Ra=/&(?:lt|gt|quot|amp|#39);/g,Fa=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,La=o("pre,textarea",!0),ja=function(e,t){return e&&La(e)&&"\n"===t[0]};function Ha(e,t){var n=t?Fa:Ra;return e.replace(n,function(e){return Na[e]})}var qa,Ba,za,Ya,Ua,Wa,Va,Ja,Ga=/^@|^v-on:/,Ka=/^v-|^@|^:|^#/,Xa=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Qa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Za=/^\(|\)$/g,eo=/^\[.*\]$/,to=/:(.*)$/,no=/^:|^\.|^v-bind:/,io=/\.[^.\]]+(?=[^\]]*$)/g,ro=/^v-slot(:|$)|^#/,ao=/[\r\n]/,oo=/[ \f\t\r\n]+/g,so=e(ya),lo="_empty_";function co(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:go(t),rawAttrsMap:{},parent:n,children:[]}}function uo(e,c){qa=c.warn||Ei,Wa=c.isPreTag||T,Va=c.mustUseProp||T,Ja=c.getTagNamespace||T;c.isReservedTag;za=Oi(c.modules,"transformNode"),Ya=Oi(c.modules,"preTransformNode"),Ua=Oi(c.modules,"postTransformNode"),Ba=c.delimiters;var d,u,p=[],s=!1!==c.preserveWhitespace,l=c.whitespace,f=!1,h=!1;function m(e){if(a(e),f||e.processed||(e=po(e,c)),p.length||e===d||d.if&&(e.elseif||e.else)&&ho(d,{exp:e.elseif,block:e}),u&&!e.forbidden)if(e.elseif||e.else)n=e,(i=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(u.children))&&i.if&&ho(i,{exp:n.elseif,block:n});else{if(e.slotScope){var t=e.slotTarget||'"default"';(u.scopedSlots||(u.scopedSlots={}))[t]=e}u.children.push(e),e.parent=u}var n,i;e.children=e.children.filter(function(e){return!e.slotScope}),a(e),e.pre&&(f=!1),Wa(e.tag)&&(h=!1);for(var r=0;r<Ua.length;r++)Ua[r](e,c)}function a(e){if(!h)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(r,d){for(var e,u,p=[],f=d.expectHTML,h=d.isUnaryTag||T,m=d.canBeLeftOpenTag||T,o=0;r;){if(e=r,u&&Ma(u)){var i=0,a=u.toLowerCase(),t=Ia[a]||(Ia[a]=new RegExp("([\\s\\S]*?)(</"+a+"[^>]*>)","i")),n=r.replace(t,function(e,t,n){return i=n.length,Ma(a)||"noscript"===a||(t=t.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),ja(a,t)&&(t=t.slice(1)),d.chars&&d.chars(t),""});o+=r.length-n.length,r=n,D(a,o-i,o)}else{var s=r.indexOf("<");if(0===s){if(Aa.test(r)){var l=r.indexOf("--\x3e");if(l>=0){d.shouldKeepComment&&d.comment(r.substring(4,l),o,o+l+3),x(l+3);continue}}if(Pa.test(r)){var c=r.indexOf("]>");if(c>=0){x(c+2);continue}}var v=r.match(Oa);if(v){x(v[0].length);continue}var g=r.match(Ea);if(g){var _=o;x(g[0].length),D(g[1],_,o);continue}var y=k();if(y){S(y),ja(y.tagName,r)&&x(1);continue}}var b=void 0,w=void 0,C=void 0;if(s>=0){for(w=r.slice(s);!(Ea.test(w)||Ta.test(w)||Aa.test(w)||Pa.test(w)||(C=w.indexOf("<",1))<0);)s+=C,w=r.slice(s);b=r.substring(0,s)}s<0&&(b=r),b&&x(b.length),d.chars&&b&&d.chars(b,o-b.length,o)}if(r===e){d.chars&&d.chars(r);break}}function x(e){o+=e,r=r.substring(e)}function k(){var e=r.match(Ta);if(e){var t,n,i={tagName:e[1],attrs:[],start:o};for(x(e[0].length);!(t=r.match($a))&&(n=r.match(ka)||r.match(xa));)n.start=o,x(n[0].length),n.end=o,i.attrs.push(n);if(t)return i.unarySlash=t[1],x(t[0].length),i.end=o,i}}function S(e){var t=e.tagName,n=e.unarySlash;f&&("p"===u&&Ca(t)&&D(u),m(t)&&u===t&&D(t));for(var i=h(t)||!!n,r=e.attrs.length,a=new Array(r),o=0;o<r;o++){var s=e.attrs[o],l=s[3]||s[4]||s[5]||"",c="a"===t&&"href"===s[1]?d.shouldDecodeNewlinesForHref:d.shouldDecodeNewlines;a[o]={name:s[1],value:Ha(l,c)}}i||(p.push({tag:t,lowerCasedTag:t.toLowerCase(),attrs:a,start:e.start,end:e.end}),u=t),d.start&&d.start(t,a,i,e.start,e.end)}function D(e,t,n){var i,r;if(null==t&&(t=o),null==n&&(n=o),e)for(r=e.toLowerCase(),i=p.length-1;i>=0&&p[i].lowerCasedTag!==r;i--);else i=0;if(i>=0){for(var a=p.length-1;a>=i;a--)d.end&&d.end(p[a].tag,t,n);p.length=i,u=i&&p[i-1].tag}else"br"===r?d.start&&d.start(e,[],!0,t,n):"p"===r&&(d.start&&d.start(e,[],!1,t,n),d.end&&d.end(e,t,n))}D()}(e,{warn:qa,expectHTML:c.expectHTML,isUnaryTag:c.isUnaryTag,canBeLeftOpenTag:c.canBeLeftOpenTag,shouldDecodeNewlines:c.shouldDecodeNewlines,shouldDecodeNewlinesForHref:c.shouldDecodeNewlinesForHref,shouldKeepComment:c.comments,outputSourceRange:c.outputSourceRange,start:function(e,t,n,i,r){var a=u&&u.ns||Ja(e);V&&"svg"===a&&(t=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];_o.test(i.name)||(i.name=i.name.replace(yo,""),t.push(i))}return t}(t));var o,s=co(e,t,u);a&&(s.ns=a),"style"!==(o=s).tag&&("script"!==o.tag||o.attrsMap.type&&"text/javascript"!==o.attrsMap.type)||te()||(s.forbidden=!0);for(var l=0;l<Ya.length;l++)s=Ya[l](s,c)||s;f||(!function(e){null!=Li(e,"v-pre")&&(e.pre=!0)}(s),s.pre&&(f=!0)),Wa(s.tag)&&(h=!0),f?function(e){var t=e.attrsList,n=t.length;if(n)for(var i=e.attrs=new Array(n),r=0;r<n;r++)i[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(i[r].start=t[r].start,i[r].end=t[r].end);else e.pre||(e.plain=!0)}(s):s.processed||(fo(s),function(e){var t=Li(e,"v-if");if(t)e.if=t,ho(e,{exp:t,block:e});else{null!=Li(e,"v-else")&&(e.else=!0);var n=Li(e,"v-else-if");n&&(e.elseif=n)}}(s),function(e){null!=Li(e,"v-once")&&(e.once=!0)}(s)),d||(d=s),n?m(s):(u=s,p.push(s))},end:function(e,t,n){var i=p[p.length-1];p.length-=1,u=p[p.length-1],m(i)},chars:function(e,t,n){if(u&&(!V||"textarea"!==u.tag||u.attrsMap.placeholder!==e)){var i,r,a,o=u.children;if(e=h||e.trim()?"script"===(i=u).tag||"style"===i.tag?e:so(e):o.length?l?"condense"===l&&ao.test(e)?"":" ":s?" ":"":"")h||"condense"!==l||(e=e.replace(oo," ")),!f&&" "!==e&&(r=function(e,t){var n=t?ma(t):fa;if(n.test(e)){for(var i,r,a,o=[],s=[],l=n.lastIndex=0;i=n.exec(e);){(r=i.index)>l&&(s.push(a=e.slice(l,r)),o.push(JSON.stringify(a)));var c=Ti(i[1].trim());o.push("_s("+c+")"),s.push({"@binding":c}),l=r+i[0].length}return l<e.length&&(s.push(a=e.slice(l)),o.push(JSON.stringify(a))),{expression:o.join("+"),tokens:s}}}(e,Ba))?a={type:2,expression:r.expression,tokens:r.tokens,text:e}:" "===e&&o.length&&" "===o[o.length-1].text||(a={type:3,text:e}),a&&o.push(a)}},comment:function(e,t,n){if(u){var i={type:3,text:e,isComment:!0};u.children.push(i)}}}),d}function po(e,t){var n,i;(i=Fi(n=e,"key"))&&(n.key=i),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Fi(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Li(e,"scope"),e.slotScope=t||Li(e,"slot-scope")):(t=Li(e,"slot-scope"))&&(e.slotScope=t);var n=Fi(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Pi(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var i=ji(e,ro);if(i){var r=mo(i),a=r.name,o=r.dynamic;e.slotTarget=a,e.slotTargetDynamic=o,e.slotScope=i.value||lo}}else{var s=ji(e,ro);if(s){var l=e.scopedSlots||(e.scopedSlots={}),c=mo(s),d=c.name,u=c.dynamic,p=l[d]=co("template",[],e);p.slotTarget=d,p.slotTargetDynamic=u,p.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=p,!0}),p.slotScope=s.value||lo,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Fi(e,"name"))}(e),function(e){var t;(t=Fi(e,"is"))&&(e.component=t);null!=Li(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<za.length;r++)e=za[r](e,t)||e;return function(e){var t,n,i,r,a,o,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++)if(i=r=c[t].name,a=c[t].value,Ka.test(i))if(e.hasBindings=!0,(o=vo(i.replace(Ka,"")))&&(i=i.replace(io,"")),no.test(i))i=i.replace(no,""),a=Ti(a),(l=eo.test(i))&&(i=i.slice(1,-1)),o&&(o.prop&&!l&&"innerHtml"===(i=h(i))&&(i="innerHTML"),o.camel&&!l&&(i=h(i)),o.sync&&(s=Bi(a,"$event"),l?Ri(e,'"update:"+('+i+")",s,null,!1,0,c[t],!0):(Ri(e,"update:"+h(i),s,null,!1,0,c[t]),g(i)!==h(i)&&Ri(e,"update:"+g(i),s,null,!1,0,c[t])))),o&&o.prop||!e.component&&Va(e.tag,e.attrsMap.type,i)?Ai(e,i,a,c[t],l):Pi(e,i,a,c[t],l);else if(Ga.test(i))i=i.replace(Ga,""),(l=eo.test(i))&&(i=i.slice(1,-1)),Ri(e,i,a,o,!1,0,c[t],l);else{var d=(i=i.replace(Ka,"")).match(to),u=d&&d[1];l=!1,u&&(i=i.slice(0,-(u.length+1)),eo.test(u)&&(u=u.slice(1,-1),l=!0)),Ii(e,i,r,a,u,l,o,c[t])}else Pi(e,i,JSON.stringify(a),c[t]),!e.component&&"muted"===i&&Va(e.tag,e.attrsMap.type,i)&&Ai(e,i,"true",c[t])}(e),e}function fo(e){var t;if(t=Li(e,"v-for")){var n=function(e){var t=e.match(Xa);if(!t)return;var n={};n.for=t[2].trim();var i=t[1].trim().replace(Za,""),r=i.match(Qa);r?(n.alias=i.replace(Qa,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i;return n}(t);n&&b(e,n)}}function ho(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function mo(e){var t=e.name.replace(ro,"");return t||"#"!==e.name[0]&&(t="default"),eo.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function vo(e){var t=e.match(io);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function go(e){for(var t={},n=0,i=e.length;n<i;n++)t[e[n].name]=e[n].value;return t}var _o=/^xmlns:NS\d+/,yo=/^NS\d+:/;function bo(e){return co(e.tag,e.attrsList.slice(),e.parent)}var wo=[va,_a,{preTransformNode:function(e,t){if("input"===e.tag){var n,i=e.attrsMap;if(!i["v-model"])return;if((i[":type"]||i["v-bind:type"])&&(n=Fi(e,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=Li(e,"v-if",!0),a=r?"&&("+r+")":"",o=null!=Li(e,"v-else",!0),s=Li(e,"v-else-if",!0),l=bo(e);fo(l),Mi(l,"type","checkbox"),po(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+a,ho(l,{exp:l.if,block:l});var c=bo(e);Li(c,"v-for",!0),Mi(c,"type","radio"),po(c,t),ho(l,{exp:"("+n+")==='radio'"+a,block:c});var d=bo(e);return Li(d,"v-for",!0),Mi(d,":type",n),po(d,t),ho(l,{exp:r,block:d}),o?l.else=!0:s&&(l.elseif=s),l}}}}];var Co,xo,ko={expectHTML:!0,modules:wo,directives:{model:function(e,t,n){var i=t.value,r=t.modifiers,a=e.tag,o=e.attrsMap.type;if(e.component)return qi(e,i,r),!1;if("select"===a)!function(e,t,n){var i='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";i=i+" "+Bi(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ri(e,"change",i,null,!0)}(e,i,r);else if("input"===a&&"checkbox"===o)!function(e,t,n){var i=n&&n.number,r=Fi(e,"value")||"null",a=Fi(e,"true-value")||"true",o=Fi(e,"false-value")||"false";Ai(e,"checked","Array.isArray("+t+")?_i("+t+","+r+")>-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),Ri(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Bi(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Bi(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Bi(t,"$$c")+"}",null,!0)}(e,i,r);else if("input"===a&&"radio"===o)!function(e,t,n){var i=n&&n.number,r=Fi(e,"value")||"null";Ai(e,"checked","_q("+t+","+(r=i?"_n("+r+")":r)+")"),Ri(e,"change",Bi(t,r),null,!0)}(e,i,r);else if("input"===a||"textarea"===a)!function(e,t,n){var i=e.attrsMap.type,r=n||{},a=r.lazy,o=r.number,s=r.trim,l=!a&&"range"!==i,c=a?"change":"range"===i?Gi:"input",d="$event.target.value";s&&(d="$event.target.value.trim()"),o&&(d="_n("+d+")");var u=Bi(t,d);l&&(u="if($event.target.composing)return;"+u),Ai(e,"value","("+t+")"),Ri(e,c,u,null,!0),(s||o)&&Ri(e,"blur","$forceUpdate()")}(e,i,r);else if(!P.isReservedTag(a))return qi(e,i,r),!1;return!0},text:function(e,t){t.value&&Ai(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ai(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:ba,mustUseProp:Mn,canBeLeftOpenTag:wa,isReservedTag:Gn,getTagNamespace:Kn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(wo)},So=e(function(e){return o("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function Do(e,t){e&&(Co=So(t.staticKeys||""),xo=t.isReservedTag||T,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||c(e.tag)||!xo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Co)))}(t);if(1===t.type){if(!xo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,i=t.children.length;n<i;n++){var r=t.children[n];e(r),r.static||(t.static=!1)}if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++){var s=t.ifConditions[a].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var i=0,r=t.children.length;i<r;i++)e(t.children[i],n||!!t.for);if(t.ifConditions)for(var a=1,o=t.ifConditions.length;a<o;a++)e(t.ifConditions[a].block,n)}}(e,!1))}var To=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,$o=/\([^)]*?\);*$/,Eo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oo={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ao={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Po=function(e){return"if("+e+")return null;"},Mo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Po("$event.target !== $event.currentTarget"),ctrl:Po("!$event.ctrlKey"),shift:Po("!$event.shiftKey"),alt:Po("!$event.altKey"),meta:Po("!$event.metaKey"),left:Po("'button' in $event && $event.button !== 0"),middle:Po("'button' in $event && $event.button !== 1"),right:Po("'button' in $event && $event.button !== 2")};function Io(e,t){var n=t?"nativeOn:":"on:",i="",r="";for(var a in e){var o=No(e[a]);e[a]&&e[a].dynamic?r+=a+","+o+",":i+='"'+a+'":'+o+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function No(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return No(e)}).join(",")+"]";var t=Eo.test(e.value),n=To.test(e.value),i=Eo.test(e.value.replace($o,""));if(e.modifiers){var r="",a="",o=[];for(var s in e.modifiers)if(Mo[s])a+=Mo[s],Oo[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;a+=Po(["ctrl","shift","alt","meta"].filter(function(e){return!l[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else o.push(s);return o.length&&(r+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ro).join("&&")+")return null;"}(o)),a&&(r+=a),"function($event){"+r+(t?"return "+e.value+".apply(null, arguments)":n?"return ("+e.value+").apply(null, arguments)":i?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(i?"return "+e.value:e.value)+"}"}function Ro(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Oo[e],i=Ao[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}var Fo={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(t,n){t.wrapData=function(e){return"_b("+e+",'"+t.tag+"',"+n.value+","+(n.modifiers&&n.modifiers.prop?"true":"false")+(n.modifiers&&n.modifiers.sync?",true":"")+")"}},cloak:C},Lo=function(e){this.options=e,this.warn=e.warn||Ei,this.transforms=Oi(e.modules,"transformCode"),this.dataGenFns=Oi(e.modules,"genData"),this.directives=b(b({},Fo),e.directives);var t=e.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function jo(e,t){var n=new Lo(t);return{render:"with(this){return "+(e?"script"===e.tag?"null":Ho(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ho(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return qo(e,t);if(e.once&&!e.onceProcessed)return Bo(e,t);if(e.for&&!e.forProcessed)return Yo(e,t);if(e.if&&!e.ifProcessed)return zo(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',i=Jo(e,t),r="_t("+n+(i?",function(){return "+i+"}":""),a=e.attrs||e.dynamicAttrs?Xo((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:h(e.name),value:e.value,dynamic:e.dynamic}})):null,o=e.attrsMap["v-bind"];!a&&!o||i||(r+=",null");a&&(r+=","+a);o&&(r+=(a?"":",null")+","+o);return r+")"}(e,t);var n;if(e.component)n=function(e,t,n){var i=t.inlineTemplate?null:Jo(t,n,!0);return"_c("+e+","+Uo(t,n)+(i?","+i:"")+")"}(e.component,e,t);else{var i;(!e.plain||e.pre&&t.maybeComponent(e))&&(i=Uo(e,t));var r=e.inlineTemplate?null:Jo(e,t,!0);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var a=0;a<t.transforms.length;a++)n=t.transforms[a](e,n);return n}return Jo(e,t)||"void 0"}function qo(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Ho(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Bo(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return zo(e,t);if(e.staticInFor){for(var n="",i=e.parent;i;){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+Ho(e,t)+","+t.onceId+++","+n+")":Ho(e,t)}return qo(e,t)}function zo(e,t,n,i){return e.ifProcessed=!0,function e(t,n,i,r){if(!t.length)return r||"_e()";var a=t.shift();return a.exp?"("+a.exp+")?"+o(a.block)+":"+e(t,n,i,r):""+o(a.block);function o(e){return i?i(e,n):e.once?Bo(e,n):Ho(e,n)}}(e.ifConditions.slice(),t,n,i)}function Yo(e,t,n,i){var r=e.for,a=e.alias,o=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(i||"_l")+"(("+r+"),function("+a+o+s+"){return "+(n||Ho)(e,t)+"})"}function Uo(e,t){var n="{",i=function(e,t){var n=e.directives;if(!n)return;var i,r,a,o,s="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){a=n[i],o=!0;var c=t.directives[a.name];c&&(o=!!c(e,a,t.warn)),o&&(l=!0,s+='{name:"'+a.name+'",rawName:"'+a.rawName+'"'+(a.value?",value:("+a.value+"),expression:"+JSON.stringify(a.value):"")+(a.arg?",arg:"+(a.isDynamicArg?a.arg:'"'+a.arg+'"'):"")+(a.modifiers?",modifiers:"+JSON.stringify(a.modifiers):"")+"},")}if(l)return s.slice(0,-1)+"]"}(e,t);i&&(n+=i+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+="attrs:"+Xo(e.attrs)+","),e.props&&(n+="domProps:"+Xo(e.props)+","),e.events&&(n+=Io(e.events,!1)+","),e.nativeEvents&&(n+=Io(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,n,t){var i=e.for||Object.keys(n).some(function(e){var t=n[e];return t.slotTargetDynamic||t.if||t.for||Wo(t)}),r=!!e.if;if(!i)for(var a=e.parent;a;){if(a.slotScope&&a.slotScope!==lo||a.for){i=!0;break}a.if&&(r=!0),a=a.parent}var o=Object.keys(n).map(function(e){return Vo(n[e],t)}).join(",");return"scopedSlots:_u(["+o+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var a=function(e,t){var n=e.children[0];if(n&&1===n.type){var i=jo(n,t.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Xo(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Wo(e){return 1===e.type&&("slot"===e.tag||e.children.some(Wo))}function Vo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return zo(e,t,Vo,"null");if(e.for&&!e.forProcessed)return Yo(e,t,Vo);var i=e.slotScope===lo?"":String(e.slotScope),r="function("+i+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Jo(e,t)||"undefined")+":undefined":Jo(e,t)||"undefined":Ho(e,t))+"}",a=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+a+"}"}function Jo(e,t,n,i,r){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(i||Ho)(o,t)+s}var l=n?function(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];if(1===r.type){if(Go(r)||r.ifConditions&&r.ifConditions.some(function(e){return Go(e.block)})){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(a,t.maybeComponent):0,c=r||Ko;return"["+a.map(function(e){return c(e,t)}).join(",")+"]"+(l?","+l:"")}}function Go(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Ko(e,t){return 1===e.type?Ho(e,t):3===e.type&&e.isComment?(i=e,"_e("+JSON.stringify(i.text)+")"):"_v("+(2===(n=e).type?n.expression:Qo(JSON.stringify(n.text)))+")";var n,i}function Xo(e){for(var t="",n="",i=0;i<e.length;i++){var r=e[i],a=Qo(r.value);r.dynamic?n+=r.name+","+a+",":t+='"'+r.name+'":'+a+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Qo(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");function Zo(t,n){try{return new Function(t)}catch(e){return n.push({err:e,code:t}),C}}function es(s){var l=Object.create(null);return function(e,t,n){(t=b({},t)).warn;delete t.warn;var i=t.delimiters?String(t.delimiters)+e:e;if(l[i])return l[i];var r=s(e,t),a={},o=[];return a.render=Zo(r.render,o),a.staticRenderFns=r.staticRenderFns.map(function(e){return Zo(e,o)}),l[i]=a}}var ts,ns,is=(ts=function(e,t){var n=uo(e.trim(),t);!1!==t.optimize&&Do(n,t);var i=jo(n,t);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}},function(s){function e(e,t){var n=Object.create(s),i=[],r=[];if(t)for(var a in t.modules&&(n.modules=(s.modules||[]).concat(t.modules)),t.directives&&(n.directives=b(Object.create(s.directives||null),t.directives)),t)"modules"!==a&&"directives"!==a&&(n[a]=t[a]);n.warn=function(e,t,n){(n?r:i).push(e)};var o=ts(e.trim(),n);return o.errors=i,o.tips=r,o}return{compile:e,compileToFunctions:es(e)}})(ko),rs=(is.compile,is.compileToFunctions);function as(e){return(ns=ns||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',ns.innerHTML.indexOf("&#10;")>0}var os=!!z&&as(!1),ss=!!z&&as(!0),ls=e(function(e){var t=Zn(e);return t&&t.innerHTML}),cs=xn.prototype.$mount;return xn.prototype.$mount=function(e,t){if((e=e&&Zn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"==typeof i)"#"===i.charAt(0)&&(i=ls(i));else{if(!i.nodeType)return this;i=i.innerHTML}else e&&(i=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(i){var r=rs(i,{outputSourceRange:!1,shouldDecodeNewlines:os,shouldDecodeNewlinesForHref:ss,delimiters:n.delimiters,comments:n.comments},this),a=r.render,o=r.staticRenderFns;n.render=a,n.staticRenderFns=o}}return cs.call(this,e,t)},xn.compile=rs,xn});!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function c(){return fi.apply(null,arguments)}function e(e){fi=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){var t;for(t in e)return!1;return!0}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function n(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}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 p(e,t,n,i){return vt(e,t,n,i,!0).utc()}function t(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function f(e){return null==e._pf&&(e._pf=t()),e._pf}function h(e){if(null==e._isValid){var t=f(e),n=hi.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function i(e){var t=p(NaN);return null!=e?u(f(t),e):f(t).userInvalidated=!0,t}function a(e){return void 0===e}function m(e,t){var n,i,r;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=f(t)),a(t._locale)||(e._locale=t._locale),mi.length>0)for(n in mi)i=mi[n],r=t[i],a(r)||(e[i]=r);return e}function v(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),vi===!1&&(vi=!0,c.updateOffset(this),vi=!1)}function g(e){return e instanceof v||null!=e&&null!=e._isAMomentObject}function _(e){return 0>e?Math.ceil(e)||0:Math.floor(e)}function y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=_(t)),n}function b(e,t,n){var i,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(i=0;r>i;i++)(n&&e[i]!==t[i]||!n&&y(e[i])!==y(t[i]))&&o++;return o+a}function w(e){c.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,t){var n=!0;return u(function(){return null!=c.deprecationHandler&&c.deprecationHandler(null,e),n&&(w(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)},t)}function x(e,t){null!=c.deprecationHandler&&c.deprecationHandler(e,t),gi[e]||(w(t),gi[e]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function S(e){var t,n;for(n in e)t=e[n],k(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function D(e,t){var n,i=u({},e);for(n in t)d(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},u(i[n],e[n]),u(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)d(e,n)&&!d(t,n)&&s(e[n])&&(i[n]=u({},i[n]));return i}function T(e){null!=e&&this.set(e)}function $(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return k(i)?i.call(t,n):i}function E(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 O(){return this._invalidDate}function A(e){return this._ordinal.replace("%d",e)}function P(e,t,n,i){var r=this._relativeTime[n];return k(r)?r(e,t,n,i):r.replace(/%d/i,e)}function M(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();Di[n]=Di[n+"s"]=Di[t]=e}function N(e){return"string"==typeof e?Di[e]||Di[e.toLowerCase()]:void 0}function R(e){var t,n,i={};for(n in e)d(e,n)&&(t=N(n),t&&(i[t]=e[n]));return i}function F(e,t){Ti[e]=t}function L(e){var t=[];for(var n in e)t.push({unit:n,priority:Ti[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function j(t,n){return function(e){return null!=e?(q(this,t,e),c.updateOffset(this,n),this):H(this,t)}}function H(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function B(e){return e=N(e),k(this[e])?this[e]():this}function z(e,t){if("object"==typeof e){e=R(e);for(var n=L(e),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(e=N(e),k(this[e]))return this[e](t);return this}function Y(e,t,n){var i=""+Math.abs(e),r=t-i.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function U(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Ai[e]=r),t&&(Ai[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),n&&(Ai[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function W(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function V(i){var e,r,a=i.match($i);for(e=0,r=a.length;r>e;e++)Ai[a[e]]?a[e]=Ai[a[e]]:a[e]=W(a[e]);return function(e){var t,n="";for(t=0;r>t;t++)n+=a[t]instanceof Function?a[t].call(e,i):a[t];return n}}function J(e,t){return e.isValid()?(t=G(t,e.localeData()),Oi[t]=Oi[t]||V(t),Oi[t](e)):e.localeData().invalidDate()}function G(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Ei.lastIndex=0;i>=0&&Ei.test(e);)e=e.replace(Ei,n),Ei.lastIndex=0,i-=1;return e}function K(e,n,i){Gi[e]=k(n)?n:function(e,t){return e&&i?i:n}}function X(e,t){return d(Gi,e)?Gi[e](t._strict,t._locale):new RegExp(Q(e))}function Q(e){return Z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function Z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,n){var t,i=n;for("string"==typeof e&&(e=[e]),"number"==typeof n&&(i=function(e,t){t[n]=y(e)}),t=0;t<e.length;t++)Ki[e[t]]=i}function te(e,r){ee(e,function(e,t,n,i){n._w=n._w||{},r(e,n._w,n,i)})}function ne(e,t,n){null!=t&&d(Ki,e)&&Ki[e](t,n._a,n,e)}function ie(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function re(e,t){return o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||or).test(t)?"format":"standalone"][e.month()]}function ae(e,t){return o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[or.test(t)?"format":"standalone"][e.month()]}function oe(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;12>i;++i)a=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?(r=yi.call(this._shortMonthsParse,o),-1!==r?r:null):(r=yi.call(this._longMonthsParse,o),-1!==r?r:null):"MMM"===t?(r=yi.call(this._shortMonthsParse,o),-1!==r?r:(r=yi.call(this._longMonthsParse,o),-1!==r?r:null)):(r=yi.call(this._longMonthsParse,o),-1!==r?r:(r=yi.call(this._shortMonthsParse,o),-1!==r?r:null))}function se(e,t,n){var i,r,a;if(this._monthsParseExact)return oe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=y(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ce(e){return null!=e?(le(this,e),c.updateOffset(this,!0),this):H(this,"Month")}function de(){return ie(this.year(),this.month())}function ue(e){return this._monthsParseExact?(d(this,"_monthsRegex")||fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=cr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(e){return this._monthsParseExact?(d(this,"_monthsRegex")||fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=dr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fe(){function e(e,t){return t.length-e.length}var t,n,i=[],r=[],a=[];for(t=0;12>t;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(e),r.sort(e),a.sort(e),t=0;12>t;t++)i[t]=Z(i[t]),r[t]=Z(r[t]);for(t=0;24>t;t++)a[t]=Z(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function he(e){return me(e)?366:365}function me(e){return e%4===0&&e%100!==0||e%400===0}function ve(){return me(this.year())}function ge(e,t,n,i,r,a,o){var s=new Date(e,t,n,i,r,a,o);return 100>e&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function _e(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ye(e,t,n){var i=7+t-n,r=(7+_e(e,0,i).getUTCDay()-t)%7;return-r+i-1}function be(e,t,n,i,r){var a,o,s=(7+n-i)%7,l=ye(e,i,r),c=1+7*(t-1)+s+l;return 0>=c?(a=e-1,o=he(a)+c):c>he(e)?(a=e+1,o=c-he(e)):(a=e,o=c),{year:a,dayOfYear:o}}function we(e,t,n){var i,r,a=ye(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return 1>o?(r=e.year()-1,i=o+Ce(r,t,n)):o>Ce(e.year(),t,n)?(i=o-Ce(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function Ce(e,t,n){var i=ye(e,t,n),r=ye(e+1,t,n);return(he(e)-i+r)/7}function xe(e){return we(e,this._week.dow,this._week.doy).week}function ke(){return this._week.dow}function Se(){return this._week.doy}function De(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Te(e){var t=we(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function $e(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ee(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Oe(e,t){return o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function Ae(e){return this._weekdaysShort[e.day()]}function Pe(e){return this._weekdaysMin[e.day()]}function Me(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;7>i;++i)a=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?(r=yi.call(this._weekdaysParse,o),-1!==r?r:null):"ddd"===t?(r=yi.call(this._shortWeekdaysParse,o),-1!==r?r:null):(r=yi.call(this._minWeekdaysParse,o),-1!==r?r:null):"dddd"===t?(r=yi.call(this._weekdaysParse,o),-1!==r?r:(r=yi.call(this._shortWeekdaysParse,o),-1!==r?r:(r=yi.call(this._minWeekdaysParse,o),-1!==r?r:null))):"ddd"===t?(r=yi.call(this._shortWeekdaysParse,o),-1!==r?r:(r=yi.call(this._weekdaysParse,o),-1!==r?r:(r=yi.call(this._minWeekdaysParse,o),-1!==r?r:null))):(r=yi.call(this._minWeekdaysParse,o),-1!==r?r:(r=yi.call(this._weekdaysParse,o),-1!==r?r:(r=yi.call(this._shortWeekdaysParse,o),-1!==r?r:null)))}function Ie(e,t,n){var i,r,a;if(this._weekdaysParseExact)return Me.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;7>i;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function Ne(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=$e(e,this.localeData()),this.add(e-t,"d")):t}function Re(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 Fe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ee(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Le(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=vr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function je(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=gr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function He(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_r),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function qe(){function e(e,t){return t.length-e.length}var t,n,i,r,a,o=[],s=[],l=[],c=[];for(t=0;7>t;t++)n=p([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(i),s.push(r),l.push(a),c.push(i),c.push(r),c.push(a);for(o.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;7>t;t++)s[t]=Z(s[t]),l[t]=Z(l[t]),c[t]=Z(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Be(){return this.hours()%12||12}function ze(){return this.hours()||24}function Ye(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ue(e,t){return t._meridiemParse}function We(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ve(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Je(e){return e?e.toLowerCase().replace("_","-"):e}function Ge(e){for(var t,n,i,r,a=0;a<e.length;){for(r=Je(e[a]).split("-"),t=r.length,n=Je(e[a+1]),n=n?n.split("-"):null;t>0;){if(i=Ke(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&b(r,n,!0)>=t-1)break;t--}a++}return null}function Ke(e){var t=null;if(!xr[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=yr._abbr,require("./locale/"+e),Xe(t)}catch(e){}return xr[e]}function Xe(e,t){var n;return e&&(n=a(t)?et(e):Qe(e,t),n&&(yr=n)),yr._abbr}function Qe(e,t){if(null!==t){var n=Cr;return t.abbr=e,null!=xr[e]?(x("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=xr[e]._config):null!=t.parentLocale&&(null!=xr[t.parentLocale]?n=xr[t.parentLocale]._config:x("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),xr[e]=new T(D(n,t)),Xe(e),xr[e]}return delete xr[e],null}function Ze(e,t){if(null!=t){var n,i=Cr;null!=xr[e]&&(i=xr[e]._config),t=D(i,t),n=new T(t),n.parentLocale=xr[e],xr[e]=n,Xe(e)}else null!=xr[e]&&(null!=xr[e].parentLocale?xr[e]=xr[e].parentLocale:null!=xr[e]&&delete xr[e]);return xr[e]}function et(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return yr;if(!o(e)){if(t=Ke(e))return t;e=[e]}return Ge(e)}function tt(){return _i(xr)}function nt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[Qi]<0||n[Qi]>11?Qi:n[Zi]<1||n[Zi]>ie(n[Xi],n[Qi])?Zi:n[er]<0||n[er]>24||24===n[er]&&(0!==n[tr]||0!==n[nr]||0!==n[ir])?er:n[tr]<0||n[tr]>59?tr:n[nr]<0||n[nr]>59?nr:n[ir]<0||n[ir]>999?ir:-1,f(e)._overflowDayOfYear&&(Xi>t||t>Zi)&&(t=Zi),f(e)._overflowWeeks&&-1===t&&(t=rr),f(e)._overflowWeekday&&-1===t&&(t=ar),f(e).overflow=t),e}function it(e){var t,n,i,r,a,o,s=e._i,l=kr.exec(s)||Sr.exec(s);if(l){for(f(e).iso=!0,t=0,n=Tr.length;n>t;t++)if(Tr[t][1].exec(l[1])){r=Tr[t][0],i=Tr[t][2]!==!1;break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=$r.length;n>t;t++)if($r[t][1].exec(l[3])){a=(l[2]||" ")+$r[t][0];break}if(null==a)return void(e._isValid=!1)}if(!i&&null!=a)return void(e._isValid=!1);if(l[4]){if(!Dr.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(a||"")+(o||""),ct(e)}else e._isValid=!1}function rt(e){var t=Er.exec(e._i);return null!==t?void(e._d=new Date(+t[1])):(it(e),void(e._isValid===!1&&(delete e._isValid,c.createFromInputFallback(e))))}function at(e,t,n){return null!=e?e:null!=t?t:n}function ot(e){var t=new Date(c.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function st(e){var t,n,i,r,a=[];if(!e._d){for(i=ot(e),e._w&&null==e._a[Zi]&&null==e._a[Qi]&&lt(e),e._dayOfYear&&(r=at(e._a[Xi],i[Xi]),e._dayOfYear>he(r)&&(f(e)._overflowDayOfYear=!0),n=_e(r,0,e._dayOfYear),e._a[Qi]=n.getUTCMonth(),e._a[Zi]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;7>t;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[er]&&0===e._a[tr]&&0===e._a[nr]&&0===e._a[ir]&&(e._nextDay=!0,e._a[er]=0),e._d=(e._useUTC?_e:ge).apply(null,a),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[er]=24)}}function lt(e){var t,n,i,r,a,o,s,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(a=1,o=4,n=at(t.GG,e._a[Xi],we(gt(),1,4).year),i=at(t.W,1),r=at(t.E,1),(1>r||r>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,n=at(t.gg,e._a[Xi],we(gt(),a,o).year),i=at(t.w,1),null!=t.d?(r=t.d,(0>r||r>6)&&(l=!0)):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):r=a),1>i||i>Ce(n,a,o)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(s=be(n,i,r,a,o),e._a[Xi]=s.year,e._dayOfYear=s.dayOfYear)}function ct(e){if(e._f===c.ISO_8601)return void it(e);e._a=[],f(e).empty=!0;var t,n,i,r,a,o=""+e._i,s=o.length,l=0;for(i=G(e._f,e._locale).match($i)||[],t=0;t<i.length;t++)r=i[t],n=(o.match(X(r,e))||[])[0],n&&(a=o.substr(0,o.indexOf(n)),a.length>0&&f(e).unusedInput.push(a),o=o.slice(o.indexOf(n)+n.length),l+=n.length),Ai[r]?(n?f(e).empty=!1:f(e).unusedTokens.push(r),ne(r,n,e)):e._strict&&!n&&f(e).unusedTokens.push(r);f(e).charsLeftOver=s-l,o.length>0&&f(e).unusedInput.push(o),e._a[er]<=12&&f(e).bigHour===!0&&e._a[er]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[er]=dt(e._locale,e._a[er],e._meridiem),st(e),nt(e)}function dt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&12>t&&(t+=12),i||12!==t||(t=0),t):t}function ut(e){var t,n,i,r,a;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)a=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],ct(t),h(t)&&(a+=f(t).charsLeftOver,a+=10*f(t).unusedTokens.length,f(t).score=a,(null==i||i>a)&&(i=a,n=t));u(e,n||t)}function pt(e){if(!e._d){var t=R(e._i);e._a=n([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),st(e)}}function ft(e){var t=new v(nt(ht(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ht(e){var t=e._i,n=e._f;return e._locale=e._locale||et(e._l),null===t||void 0===n&&""===t?i({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new v(nt(t)):(o(n)?ut(e):r(t)?e._d=t:n?ct(e):mt(e),h(e)||(e._d=null),e))}function mt(e){var t=e._i;void 0===t?e._d=new Date(c.now()):r(t)?e._d=new Date(t.valueOf()):"string"==typeof t?rt(e):o(t)?(e._a=n(t.slice(0),function(e){return parseInt(e,10)}),st(e)):"object"==typeof t?pt(e):"number"==typeof t?e._d=new Date(t):c.createFromInputFallback(e)}function vt(e,t,n,i,r){var a={};return"boolean"==typeof n&&(i=n,n=void 0),(s(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=i,ft(a)}function gt(e,t,n,i){return vt(e,t,n,i,!1)}function _t(e,t){var n,i;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return gt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function yt(){var e=[].slice.call(arguments,0);return _t("isBefore",e)}function bt(){var e=[].slice.call(arguments,0);return _t("isAfter",e)}function wt(e){var t=R(e),n=t.year||0,i=t.quarter||0,r=t.month||0,a=t.week||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,d=t.millisecond||0;this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*a,this._months=+r+3*i+12*n,this._data={},this._locale=et(),this._bubble()}function Ct(e){return e instanceof wt}function xt(e,n){U(e,0,0,function(){var e=this.utcOffset(),t="+";return 0>e&&(e=-e,t="-"),t+Y(~~(e/60),2)+n+Y(~~e%60,2)})}function kt(e,t){var n=(t||"").match(e)||[],i=n[n.length-1]||[],r=(i+"").match(Mr)||["-",0,0],a=+(60*r[1])+y(r[2]);return"+"===r[0]?a:-a}function St(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(g(e)||r(e)?e.valueOf():gt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),c.updateOffset(n,!1),n):gt(e).local()}function Dt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Tt(e,t){var n,i=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=kt(Wi,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(n=Dt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Yt(this,Lt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Dt(this):null!=e?this:NaN}function $t(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Et(e){return this.utcOffset(0,e)}function Ot(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dt(this),"m")),this}function At(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(kt(Ui,this._i)),this}function Pt(e){return this.isValid()?(e=e?gt(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Mt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function It(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=ht(e),e._a){var t=e._isUTC?p(e._a):gt(e._a);this._isDSTShifted=this.isValid()&&b(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Nt(){return this.isValid()?!this._isUTC:!1}function Rt(){return this.isValid()?this._isUTC:!1}function Ft(){return this.isValid()?this._isUTC&&0===this._offset:!1}function Lt(e,t){var n,i,r,a=e,o=null;return Ct(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(a={},t?a[t]=e:a.milliseconds=e):(o=Ir.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:y(o[Zi])*n,h:y(o[er])*n,m:y(o[tr])*n,s:y(o[nr])*n,ms:y(o[ir])*n}):(o=Nr.exec(e))?(n="-"===o[1]?-1:1,a={y:jt(o[2],n),M:jt(o[3],n),w:jt(o[4],n),d:jt(o[5],n),h:jt(o[6],n),m:jt(o[7],n),s:jt(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=qt(gt(a.from),gt(a.to)),a={},a.ms=r.milliseconds,a.M=r.months),i=new wt(a),Ct(e)&&d(e,"_locale")&&(i._locale=e._locale),i}function jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ht(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 qt(e,t){var n;return e.isValid()&&t.isValid()?(t=St(t,e),e.isBefore(t)?n=Ht(e,t):(n=Ht(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Bt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function zt(r,a){return function(e,t){var n,i;return null===t||isNaN(+t)||(x(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=e,e=t,t=i),e="string"==typeof e?+e:e,n=Lt(e,t),Yt(this,n,r),this}}function Yt(e,t,n,i){var r=t._milliseconds,a=Bt(t._days),o=Bt(t._months);e.isValid()&&(i=null==i?!0:i,r&&e._d.setTime(e._d.valueOf()+r*n),a&&q(e,"Date",H(e,"Date")+a*n),o&&le(e,H(e,"Month")+o*n),i&&c.updateOffset(e,a||o))}function Ut(e,t){var n=e.diff(t,"days",!0);return-6>n?"sameElse":-1>n?"lastWeek":0>n?"lastDay":1>n?"sameDay":2>n?"nextDay":7>n?"nextWeek":"sameElse"}function Wt(e,t){var n=e||gt(),i=St(n,this).startOf("day"),r=c.calendarFormat(this,i)||"sameElse",a=t&&(k(t[r])?t[r].call(this,n):t[r]);return this.format(a||this.localeData().calendar(r,this,gt(n)))}function Vt(){return new v(this)}function Jt(e,t){var n=g(e)?e:gt(e);return this.isValid()&&n.isValid()?(t=N(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Gt(e,t){var n=g(e)?e:gt(e);return this.isValid()&&n.isValid()?(t=N(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Kt(e,t,n,i){return i=i||"()",("("===i[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function Xt(e,t){var n,i=g(e)?e:gt(e);return this.isValid()&&i.isValid()?(t=N(t||"millisecond"),"millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function Qt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Zt(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function en(e,t,n){var i,r,a,o;return this.isValid()?(i=St(e,this),i.isValid()?(r=6e4*(i.utcOffset()-this.utcOffset()),t=N(t),"year"===t||"month"===t||"quarter"===t?(o=tn(this,i),"quarter"===t?o/=3:"year"===t&&(o/=12)):(a=this-i,o="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-r)/864e5:"week"===t?(a-r)/6048e5:a),n?o:_(o)):NaN):NaN}function tn(e,t){var n,i,r=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(r,"months");return 0>t-a?(n=e.clone().add(r-1,"months"),i=(t-a)/(a-n)):(n=e.clone().add(r+1,"months"),i=(t-a)/(n-a)),-(r+i)||0}function nn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function rn(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?k(Date.prototype.toISOString)?this.toDate().toISOString():J(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):J(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function an(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=J(this,e);return this.localeData().postformat(t)}function on(e,t){return this.isValid()&&(g(e)&&e.isValid()||gt(e).isValid())?Lt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function sn(e){return this.from(gt(),e)}function ln(e,t){return this.isValid()&&(g(e)&&e.isValid()||gt(e).isValid())?Lt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cn(e){return this.to(gt(),e)}function dn(e){var t;return void 0===e?this._locale._abbr:(t=et(e),null!=t&&(this._locale=t),this)}function un(){return this._locale}function pn(e){switch(e=N(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 fn(e){return e=N(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function hn(){return this._d.valueOf()-6e4*(this._offset||0)}function mn(){return Math.floor(this.valueOf()/1e3)}function vn(){return new Date(this.valueOf())}function gn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _n(){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 yn(){return this.isValid()?this.toISOString():null}function bn(){return h(this)}function wn(){return u({},f(this))}function Cn(){return f(this).overflow}function xn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function kn(e,t){U(0,[e,e.length],0,t)}function Sn(e){return En.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Dn(e){return En.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Tn(){return Ce(this.year(),1,4)}function $n(){var e=this.localeData()._week;return Ce(this.year(),e.dow,e.doy)}function En(e,t,n,i,r){var a;return null==e?we(this,i,r).year:(a=Ce(e,i,r),t>a&&(t=a),On.call(this,e,t,n,i,r))}function On(e,t,n,i,r){var a=be(e,t,n,i,r),o=_e(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function An(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Pn(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 Mn(e,t){t[ir]=y(1e3*("0."+e))}function In(){return this._isUTC?"UTC":""}function Nn(){return this._isUTC?"Coordinated Universal Time":""}function Rn(e){return gt(1e3*e)}function Fn(){return gt.apply(null,arguments).parseZone()}function Ln(e){return e}function jn(e,t,n,i){var r=et(),a=p().set(i,t);return r[n](a,e)}function Hn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return jn(e,t,n,"month");var i,r=[];for(i=0;12>i;i++)r[i]=jn(e,i,n,"month");return r}function qn(e,t,n,i){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var r=et(),a=e?r._week.dow:0;if(null!=n)return jn(t,(n+a)%7,i,"day");var o,s=[];for(o=0;7>o;o++)s[o]=jn(t,(o+a)%7,i,"day");return s}function Bn(e,t){return Hn(e,t,"months")}function zn(e,t){return Hn(e,t,"monthsShort")}function Yn(e,t,n){return qn(e,t,n,"weekdays")}function Un(e,t,n){return qn(e,t,n,"weekdaysShort")}function Wn(e,t,n){return qn(e,t,n,"weekdaysMin")}function Vn(){var e=this._data;return this._milliseconds=Vr(this._milliseconds),this._days=Vr(this._days),this._months=Vr(this._months),e.milliseconds=Vr(e.milliseconds),e.seconds=Vr(e.seconds),e.minutes=Vr(e.minutes),e.hours=Vr(e.hours),e.months=Vr(e.months),e.years=Vr(e.years),this}function Jn(e,t,n,i){var r=Lt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Gn(e,t){return Jn(this,e,t,1)}function Kn(e,t){return Jn(this,e,t,-1)}function Xn(e){return 0>e?Math.floor(e):Math.ceil(e)}function Qn(){var e,t,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||0>=a&&0>=o&&0>=s||(a+=864e5*Xn(ei(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=_(a/1e3),l.seconds=e%60,t=_(e/60),l.minutes=t%60,n=_(t/60),l.hours=n%24,o+=_(n/24),r=_(Zn(o)),s+=r,o-=Xn(ei(r)),i=_(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function Zn(e){return 4800*e/146097}function ei(e){return 146097*e/4800}function ti(e){var t,n,i=this._milliseconds;if(e=N(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+Zn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(ei(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function ni(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12)}function ii(e){return function(){return this.as(e)}}function ri(e){return e=N(e),this[e+"s"]()}function ai(e){return function(){return this._data[e]}}function oi(){return _(this.days()/7)}function si(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function li(e,t,n){var i=Lt(e).abs(),r=ca(i.as("s")),a=ca(i.as("m")),o=ca(i.as("h")),s=ca(i.as("d")),l=ca(i.as("M")),c=ca(i.as("y")),d=r<da.s&&["s",r]||1>=a&&["m"]||a<da.m&&["mm",a]||1>=o&&["h"]||o<da.h&&["hh",o]||1>=s&&["d"]||s<da.d&&["dd",s]||1>=l&&["M"]||l<da.M&&["MM",l]||1>=c&&["y"]||["yy",c];return d[2]=t,d[3]=+e>0,d[4]=n,si.apply(null,d)}function ci(e){return void 0===e?ca:"function"==typeof e?(ca=e,!0):!1}function di(e,t){return void 0===da[e]?!1:void 0===t?da[e]:(da[e]=t,!0)}function ui(e){var t=this.localeData(),n=li(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function pi(){var e,t,n,i=ua(this._milliseconds)/1e3,r=ua(this._days),a=ua(this._months);e=_(i/60),t=_(e/60),i%=60,e%=60,n=_(a/12),a%=12;var o=n,s=a,l=r,c=t,d=e,u=i,p=this.asSeconds();return p?(0>p?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(c||d||u?"T":"")+(c?c+"H":"")+(d?d+"M":"")+(u?u+"S":""):"P0D"}var fi,hi;hi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;n>i;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var mi=c.momentProperties=[],vi=!1,gi={};c.suppressDeprecationWarnings=!1,c.deprecationHandler=null;var _i;_i=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var yi,bi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},wi={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"},Ci="Invalid date",xi="%d",ki=/\d{1,2}/,Si={future:"in %s",past:"%s ago",s:"a few 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"},Di={},Ti={},$i=/(\[[^\[]*\])|(\\)?([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,Ei=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Oi={},Ai={},Pi=/\d/,Mi=/\d\d/,Ii=/\d{3}/,Ni=/\d{4}/,Ri=/[+-]?\d{6}/,Fi=/\d\d?/,Li=/\d\d\d\d?/,ji=/\d\d\d\d\d\d?/,Hi=/\d{1,3}/,qi=/\d{1,4}/,Bi=/[+-]?\d{1,6}/,zi=/\d+/,Yi=/[+-]?\d+/,Ui=/Z|[+-]\d\d:?\d\d/gi,Wi=/Z|[+-]\d\d(?::?\d\d)?/gi,Vi=/[+-]?\d+(\.\d{1,3})?/,Ji=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Gi={},Ki={},Xi=0,Qi=1,Zi=2,er=3,tr=4,nr=5,ir=6,rr=7,ar=8;yi=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},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),F("month",8),K("M",Fi),K("MM",Fi,Mi),K("MMM",function(e,t){return t.monthsShortRegex(e)}),K("MMMM",function(e,t){return t.monthsRegex(e)}),ee(["M","MM"],function(e,t){t[Qi]=y(e)-1}),ee(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[Qi]=r:f(n).invalidMonth=e});var or=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,sr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),lr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),cr=Ji,dr=Ji;U("Y",0,0,function(){var e=this.year();return 9999>=e?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),I("year","y"),F("year",1),K("Y",Yi),K("YY",Fi,Mi),K("YYYY",qi,Ni),K("YYYYY",Bi,Ri),K("YYYYYY",Bi,Ri),ee(["YYYYY","YYYYYY"],Xi),ee("YYYY",function(e,t){t[Xi]=2===e.length?c.parseTwoDigitYear(e):y(e)}),ee("YY",function(e,t){t[Xi]=c.parseTwoDigitYear(e)}),ee("Y",function(e,t){t[Xi]=parseInt(e,10)}),c.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var ur=j("FullYear",!0);U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),F("week",5),F("isoWeek",5),K("w",Fi),K("ww",Fi,Mi),K("W",Fi),K("WW",Fi,Mi),te(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=y(e)});var pr={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),K("d",Fi),K("e",Fi),K("E",Fi),K("dd",function(e,t){return t.weekdaysMinRegex(e)}),K("ddd",function(e,t){return t.weekdaysShortRegex(e)}),K("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:f(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,i){t[i]=y(e)});var fr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),hr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vr=Ji,gr=Ji,_r=Ji;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Be),U("k",["kk",2],0,ze),U("hmm",0,0,function(){return""+Be.apply(this)+Y(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Be.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),Ye("a",!0),Ye("A",!1),I("hour","h"),F("hour",13),K("a",Ue),K("A",Ue),K("H",Fi),K("h",Fi),K("HH",Fi,Mi),K("hh",Fi,Mi),K("hmm",Li),K("hmmss",ji),K("Hmm",Li),K("Hmmss",ji),ee(["H","HH"],er),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[er]=y(e),f(n).bigHour=!0}),ee("hmm",function(e,t,n){var i=e.length-2;t[er]=y(e.substr(0,i)),t[tr]=y(e.substr(i)),f(n).bigHour=!0}),ee("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[er]=y(e.substr(0,i)),t[tr]=y(e.substr(i,2)),t[nr]=y(e.substr(r)),f(n).bigHour=!0}),ee("Hmm",function(e,t,n){var i=e.length-2;t[er]=y(e.substr(0,i)),t[tr]=y(e.substr(i))}),ee("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[er]=y(e.substr(0,i)),t[tr]=y(e.substr(i,2)),t[nr]=y(e.substr(r))});var yr,br=/[ap]\.?m?\.?/i,wr=j("Hours",!0),Cr={calendar:bi,longDateFormat:wi,invalidDate:Ci,ordinal:xi,ordinalParse:ki,relativeTime:Si,months:sr,monthsShort:lr,week:pr,weekdays:fr,weekdaysMin:mr,weekdaysShort:hr,meridiemParse:br},xr={},kr=/^\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)?)?/,Sr=/^\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)?)?/,Dr=/Z|[+-]\d\d(?::?\d\d)?/,Tr=[["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}/]],$r=[["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/]],Er=/^\/?Date\((\-?\d+)/i;c.createFromInputFallback=C("moment construction falls back to js Date. This is discouraged and will be removed in 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":""))}),c.ISO_8601=function(){};var Or=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=gt.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:i()}),Ar=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=gt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:i()}),Pr=function(){return Date.now?Date.now():+new Date};xt("Z",":"),xt("ZZ",""),K("Z",Wi),K("ZZ",Wi),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=kt(Wi,e)});var Mr=/([\+\-]|\d\d)/gi;c.updateOffset=function(){};var Ir=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Nr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Lt.fn=wt.prototype;var Rr=zt(1,"add"),Fr=zt(-1,"subtract");c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Lr=C("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)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),kn("gggg","weekYear"),kn("ggggg","weekYear"),kn("GGGG","isoWeekYear"),kn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),K("G",Yi),K("g",Yi),K("GG",Fi,Mi),K("gg",Fi,Mi),K("GGGG",qi,Ni),K("gggg",qi,Ni),K("GGGGG",Bi,Ri),K("ggggg",Bi,Ri),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=y(e)}),te(["gg","GG"],function(e,t,n,i){t[i]=c.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),I("quarter","Q"),F("quarter",7),K("Q",Pi),ee("Q",function(e,t){t[Qi]=3*(y(e)-1)}),U("D",["DD",2],"Do","date"),I("date","D"),F("date",9),K("D",Fi),K("DD",Fi,Mi),K("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ee(["D","DD"],Zi),ee("Do",function(e,t){t[Zi]=y(e.match(Fi)[0],10)});var jr=j("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),F("dayOfYear",4),K("DDD",Hi),K("DDDD",Ii),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=y(e)}),U("m",["mm",2],0,"minute"),I("minute","m"),F("minute",14),K("m",Fi),K("mm",Fi,Mi),ee(["m","mm"],tr);var Hr=j("Minutes",!1);U("s",["ss",2],0,"second"),I("second","s"),F("second",15),K("s",Fi),K("ss",Fi,Mi),ee(["s","ss"],nr);var qr=j("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),F("millisecond",16),K("S",Hi,Pi),K("SS",Hi,Mi),K("SSS",Hi,Ii);var Br;for(Br="SSSS";Br.length<=9;Br+="S")K(Br,zi);for(Br="S";Br.length<=9;Br+="S")ee(Br,Mn);var zr=j("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Yr=v.prototype;Yr.add=Rr,Yr.calendar=Wt,Yr.clone=Vt,Yr.diff=en,Yr.endOf=fn,Yr.format=an,Yr.from=on,Yr.fromNow=sn,Yr.to=ln,Yr.toNow=cn,Yr.get=B,Yr.invalidAt=Cn,Yr.isAfter=Jt,Yr.isBefore=Gt,Yr.isBetween=Kt,Yr.isSame=Xt,Yr.isSameOrAfter=Qt,Yr.isSameOrBefore=Zt,Yr.isValid=bn,Yr.lang=Lr,Yr.locale=dn,Yr.localeData=un,Yr.max=Ar,Yr.min=Or,Yr.parsingFlags=wn,Yr.set=z,Yr.startOf=pn,Yr.subtract=Fr,Yr.toArray=gn,Yr.toObject=_n,Yr.toDate=vn,Yr.toISOString=rn,Yr.toJSON=yn,Yr.toString=nn,Yr.unix=mn,Yr.valueOf=hn,Yr.creationData=xn,Yr.year=ur,Yr.isLeapYear=ve,Yr.weekYear=Sn,Yr.isoWeekYear=Dn,Yr.quarter=Yr.quarters=An,Yr.month=ce,Yr.daysInMonth=de,Yr.week=Yr.weeks=De,Yr.isoWeek=Yr.isoWeeks=Te,Yr.weeksInYear=$n,Yr.isoWeeksInYear=Tn,Yr.date=jr,Yr.day=Yr.days=Ne,Yr.weekday=Re,Yr.isoWeekday=Fe,Yr.dayOfYear=Pn,Yr.hour=Yr.hours=wr,Yr.minute=Yr.minutes=Hr,Yr.second=Yr.seconds=qr,Yr.millisecond=Yr.milliseconds=zr,Yr.utcOffset=Tt,Yr.utc=Et,Yr.local=Ot,Yr.parseZone=At,Yr.hasAlignedHourOffset=Pt,Yr.isDST=Mt,Yr.isLocal=Nt,Yr.isUtcOffset=Rt,Yr.isUtc=Ft,Yr.isUTC=Ft,Yr.zoneAbbr=In,Yr.zoneName=Nn,Yr.dates=C("dates accessor is deprecated. Use date instead.",jr),Yr.months=C("months accessor is deprecated. Use month instead",ce),Yr.years=C("years accessor is deprecated. Use year instead",ur),Yr.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",$t),Yr.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",It);var Ur=Yr,Wr=T.prototype;Wr.calendar=$,Wr.longDateFormat=E,Wr.invalidDate=O,Wr.ordinal=A,Wr.preparse=Ln,Wr.postformat=Ln,Wr.relativeTime=P,Wr.pastFuture=M,Wr.set=S,Wr.months=re,Wr.monthsShort=ae,Wr.monthsParse=se,Wr.monthsRegex=pe,Wr.monthsShortRegex=ue,Wr.week=xe,Wr.firstDayOfYear=Se,Wr.firstDayOfWeek=ke,Wr.weekdays=Oe,Wr.weekdaysMin=Pe,Wr.weekdaysShort=Ae,Wr.weekdaysParse=Ie,Wr.weekdaysRegex=Le,Wr.weekdaysShortRegex=je,Wr.weekdaysMinRegex=He,Wr.isPM=We,Wr.meridiem=Ve,Xe("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),c.lang=C("moment.lang is deprecated. Use moment.locale instead.",Xe),c.langData=C("moment.langData is deprecated. Use moment.localeData instead.",et);var Vr=Math.abs,Jr=ii("ms"),Gr=ii("s"),Kr=ii("m"),Xr=ii("h"),Qr=ii("d"),Zr=ii("w"),ea=ii("M"),ta=ii("y"),na=ai("milliseconds"),ia=ai("seconds"),ra=ai("minutes"),aa=ai("hours"),oa=ai("days"),sa=ai("months"),la=ai("years"),ca=Math.round,da={s:45,m:45,h:22,d:26,M:11},ua=Math.abs,pa=wt.prototype;pa.abs=Vn,pa.add=Gn,pa.subtract=Kn,pa.as=ti,pa.asMilliseconds=Jr,pa.asSeconds=Gr,pa.asMinutes=Kr,pa.asHours=Xr,pa.asDays=Qr,pa.asWeeks=Zr,pa.asMonths=ea,pa.asYears=ta,pa.valueOf=ni,pa._bubble=Qn,pa.get=ri,pa.milliseconds=na,pa.seconds=ia,pa.minutes=ra,pa.hours=aa,pa.days=oa,pa.weeks=oi,pa.months=sa,pa.years=la,pa.humanize=ui,pa.toISOString=pi,pa.toString=pi,pa.toJSON=pi,pa.locale=dn,pa.localeData=un,pa.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pi),pa.lang=Lr,U("X",0,0,"unix"),U("x",0,0,"valueOf"),K("x",Yi),K("X",Vi),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(y(e))}),c.version="2.14.1",e(gt),c.fn=Ur,c.min=yt,c.max=bt,c.now=Pr,c.utc=p,c.unix=Rn,c.months=Bn,c.isDate=r,c.locale=Xe,c.invalid=i,c.duration=Lt,c.isMoment=g,c.weekdays=Yn,c.parseZone=Fn,c.localeData=et,c.isDuration=Ct,c.monthsShort=zn,c.weekdaysMin=Wn,c.defineLocale=Qe,c.updateLocale=Ze,c.locales=tt,c.weekdaysShort=Un,c.normalizeUnits=N,c.relativeTimeRounding=ci,c.relativeTimeThreshold=di,c.calendarFormat=Ut,c.prototype=Ur;var fa=c;return fa});!function(e,t){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],t);else if("object"==typeof exports)t(require("jquery"),require("moment"));else{if(!jQuery)throw new Error("bootstrap-datetimepicker requires jQuery to be loaded first");if(!moment)throw new Error("bootstrap-datetimepicker requires moment.js to be loaded first");t(e.jQuery,moment)}}(this,function(B,z){"use strict";if("undefined"==typeof z)throw new Error("momentjs is required");var Y=0,i=function(i,r){var a,o=B.fn.datetimepicker.defaults,s={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},g=this,n=!1,e=function(){var e,t,n=!1;if(g.options=B.extend({},o,r),g.options.icons=B.extend({},s,g.options.icons),g.element=B(i),c(),!g.options.pickTime&&!g.options.pickDate)throw new Error("Must choose at least one picker");if(g.id=Y++,z.locale(g.options.language),g.date=z(),g.unset=!1,g.isInput=g.element.is("input"),g.component=!1,g.element.hasClass("input-group")&&(g.component=g.element.find(0===g.element.find(".datepickerbutton").size()?'[class^="input-group-"]':".datepickerbutton")),g.format=g.options.format,e=z().localeData(),g.format||(g.format=g.options.pickDate?e.longDateFormat("L"):"",g.options.pickDate&&g.options.pickTime&&(g.format+=" "),g.format+=g.options.pickTime?e.longDateFormat("LT"):"",g.options.useSeconds&&(-1!==e.longDateFormat("LT").indexOf(" A")?g.format=g.format.split(" A")[0]+":ss A":g.format+=":ss")),g.use24hours=g.format.toLowerCase().indexOf("a")<0&&g.format.indexOf("h")<0,g.component&&(n=g.component.find("span")),g.options.pickTime&&n&&n.addClass(g.options.icons.time),g.options.pickDate&&n&&(n.removeClass(g.options.icons.time),n.addClass(g.options.icons.date)),g.options.widgetParent="string"==typeof g.options.widgetParent&&g.options.widgetParent||g.element.parents().filter(function(){return"scroll"===B(this).css("overflow-y")}).get(0)||"body",g.widget=B(j()).appendTo(g.options.widgetParent),g.minViewMode=g.options.minViewMode||0,"string"==typeof g.minViewMode)switch(g.minViewMode){case"months":g.minViewMode=1;break;case"years":g.minViewMode=2;break;default:g.minViewMode=0}if(g.viewMode=g.options.viewMode||0,"string"==typeof g.viewMode)switch(g.viewMode){case"months":g.viewMode=1;break;case"years":g.viewMode=2;break;default:g.viewMode=0}g.viewMode=Math.max(g.viewMode,g.minViewMode),g.options.disabledDates=F(g.options.disabledDates),g.options.enabledDates=F(g.options.enabledDates),g.startViewMode=g.viewMode,g.setMinDate(g.options.minDate),g.setMaxDate(g.options.maxDate),h(),m(),_(),y(),b(),f(),$(),l().prop("disabled")||E(),""!==g.options.defaultDate&&""===l().val()&&g.setValue(g.options.defaultDate),1!==g.options.minuteStepping&&(t=g.options.minuteStepping,g.date.minutes(Math.round(g.date.minutes()/t)*t%60).seconds(0))},l=function(){var e;if(g.isInput)return g.element;if(e=g.element.find(".datepickerinput"),0===e.size())e=g.element.find("input");else if(!e.is("input"))throw new Error('CSS class "datepickerinput" cannot be applied to non input element');return e},c=function(){var e;e=g.element.is("input")?g.element.data():g.element.find("input").data(),void 0!==e.dateFormat&&(g.options.format=e.dateFormat),void 0!==e.datePickdate&&(g.options.pickDate=e.datePickdate),void 0!==e.datePicktime&&(g.options.pickTime=e.datePicktime),void 0!==e.dateUseminutes&&(g.options.useMinutes=e.dateUseminutes),void 0!==e.dateUseseconds&&(g.options.useSeconds=e.dateUseseconds),void 0!==e.dateUsecurrent&&(g.options.useCurrent=e.dateUsecurrent),void 0!==e.calendarWeeks&&(g.options.calendarWeeks=e.calendarWeeks),void 0!==e.dateMinutestepping&&(g.options.minuteStepping=e.dateMinutestepping),void 0!==e.dateMindate&&(g.options.minDate=e.dateMindate),void 0!==e.dateMaxdate&&(g.options.maxDate=e.dateMaxdate),void 0!==e.dateShowtoday&&(g.options.showToday=e.dateShowtoday),void 0!==e.dateCollapse&&(g.options.collapse=e.dateCollapse),void 0!==e.dateLanguage&&(g.options.language=e.dateLanguage),void 0!==e.dateDefaultdate&&(g.options.defaultDate=e.dateDefaultdate),void 0!==e.dateDisableddates&&(g.options.disabledDates=e.dateDisableddates),void 0!==e.dateEnableddates&&(g.options.enabledDates=e.dateEnableddates),void 0!==e.dateIcons&&(g.options.icons=e.dateIcons),void 0!==e.dateUsestrict&&(g.options.useStrict=e.dateUsestrict),void 0!==e.dateDirection&&(g.options.direction=e.dateDirection),void 0!==e.dateSidebyside&&(g.options.sideBySide=e.dateSidebyside),void 0!==e.dateDaysofweekdisabled&&(g.options.daysOfWeekDisabled=e.dateDaysofweekdisabled)},d=function(){var e,t="absolute",n=g.component?g.component.offset():g.element.offset(),i=B(window);g.width=g.component?g.component.outerWidth():g.element.outerWidth(),n.top=n.top+g.element.outerHeight(),"up"===g.options.direction?e="top":"bottom"===g.options.direction?e="bottom":"auto"===g.options.direction&&(e=n.top+g.widget.height()>i.height()+i.scrollTop()&&g.widget.height()+g.element.outerHeight()<n.top?"top":"bottom"),"top"===e?(n.bottom=i.height()-n.top+g.element.outerHeight()+3,g.widget.addClass("top").removeClass("bottom")):(n.top+=1,g.widget.addClass("bottom").removeClass("top")),void 0!==g.options.width&&g.widget.width(g.options.width),"left"===g.options.orientation&&(g.widget.addClass("left-oriented"),n.left=n.left-g.widget.width()+20),P()&&(t="fixed",n.top-=i.scrollTop(),n.left-=i.scrollLeft()),i.width()<n.left+g.widget.outerWidth()?(n.right=i.width()-n.left-g.width,n.left="auto",g.widget.addClass("pull-right")):(n.right="auto",g.widget.removeClass("pull-right")),g.widget.css("top"===e?{position:t,bottom:n.bottom,top:"auto",left:n.left,right:n.right}:{position:t,top:n.top,bottom:"auto",left:n.left,right:n.right})},u=function(e,t){(!z(g.date).isSame(z(e))||n)&&(n=!1,g.element.trigger({type:"dp.change",date:z(g.date),oldDate:z(e)}),"change"!==t&&g.element.change())},p=function(e){n=!0,g.element.trigger({type:"dp.error",date:z(e,g.format,g.options.useStrict)})},f=function(e){z.locale(g.options.language);var t=e;t||(t=l().val(),t&&(g.date=z(t,g.format,g.options.useStrict)),g.date||(g.date=z())),g.viewDate=z(g.date).startOf("month"),v(),w()},h=function(){z.locale(g.options.language);var e,t=B("<tr>"),n=z.weekdaysMin();if(g.options.calendarWeeks===!0&&t.append('<th class="cw">#</th>'),0===z().localeData()._week.dow)for(e=0;7>e;e++)t.append('<th class="dow">'+n[e]+"</th>");else for(e=1;8>e;e++)t.append(7===e?'<th class="dow">'+n[0]+"</th>":'<th class="dow">'+n[e]+"</th>");g.widget.find(".datepicker-days thead").append(t)},m=function(){z.locale(g.options.language);var e,t="",n=z.monthsShort();for(e=0;12>e;e++)t+='<span class="month">'+n[e]+"</span>";g.widget.find(".datepicker-months td").append(t)},v=function(){if(g.options.pickDate){z.locale(g.options.language);var e,t,n,i,r,a,o,s,l,c=g.viewDate.year(),d=g.viewDate.month(),u=g.options.minDate.year(),p=g.options.minDate.month(),f=g.options.maxDate.year(),h=g.options.maxDate.month(),m=[],v=z.months();for(g.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),g.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),g.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),g.widget.find(".datepicker-days th:eq(1)").text(v[d]+" "+c),t=z(g.viewDate,g.format,g.options.useStrict).subtract(1,"months"),o=t.daysInMonth(),t.date(o).startOf("week"),(c===u&&p>=d||u>c)&&g.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(c===f&&d>=h||c>f)&&g.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),n=z(t).add(42,"d");t.isBefore(n);){if(t.weekday()===z().startOf("week").weekday()&&(i=B("<tr>"),m.push(i),g.options.calendarWeeks===!0&&i.append('<td class="cw">'+t.week()+"</td>")),r="",t.year()<c||t.year()===c&&t.month()<d?r+=" old":(t.year()>c||t.year()===c&&t.month()>d)&&(r+=" new"),t.isSame(z({y:g.date.year(),M:g.date.month(),d:g.date.date()}))&&(r+=" active"),(N(t,"day")||!R(t))&&(r+=" disabled"),g.options.showToday===!0&&t.isSame(z(),"day")&&(r+=" today"),g.options.daysOfWeekDisabled)for(a=0;a<g.options.daysOfWeekDisabled.length;a++)if(t.day()===g.options.daysOfWeekDisabled[a]){r+=" disabled";break}i.append('<td class="day'+r+'">'+t.date()+"</td>"),e=t.date(),t.add(1,"d"),e===t.date()&&t.add(1,"d")}for(g.widget.find(".datepicker-days tbody").empty().append(m),l=g.date.year(),v=g.widget.find(".datepicker-months").find("th:eq(1)").text(c).end().find("span").removeClass("active"),l===c&&v.eq(g.date.month()).addClass("active"),u>c-1&&g.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),c+1>f&&g.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),a=0;12>a;a++)c===u&&p>a||u>c?B(v[a]).addClass("disabled"):(c===f&&a>h||c>f)&&B(v[a]).addClass("disabled");for(m="",c=10*parseInt(c/10,10),s=g.widget.find(".datepicker-years").find("th:eq(1)").text(c+"-"+(c+9)).parents("table").find("td"),g.widget.find(".datepicker-years").find("th").removeClass("disabled"),u>c&&g.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),c+9>f&&g.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),c-=1,a=-1;11>a;a++)m+='<span class="year'+(-1===a||10===a?" old":"")+(l===c?" active":"")+(u>c||c>f?" disabled":"")+'">'+c+"</span>",c+=1;s.html(m)}},_=function(){z.locale(g.options.language);var e,t,n,i=g.widget.find(".timepicker .timepicker-hours table"),r="";if(i.parent().hide(),g.use24hours)for(e=0,t=0;6>t;t+=1){for(r+="<tr>",n=0;4>n;n+=1)r+='<td class="hour">'+L(e.toString())+"</td>",e++;r+="</tr>"}else for(e=1,t=0;3>t;t+=1){for(r+="<tr>",n=0;4>n;n+=1)r+='<td class="hour">'+L(e.toString())+"</td>",e++;r+="</tr>"}i.html(r)},y=function(){var e,t,n=g.widget.find(".timepicker .timepicker-minutes table"),i="",r=0,a=g.options.minuteStepping;for(n.parent().hide(),1===a&&(a=5),e=0;e<Math.ceil(60/a/4);e++){for(i+="<tr>",t=0;4>t;t+=1)60>r?(i+='<td class="minute">'+L(r.toString())+"</td>",r+=a):i+="<td></td>";i+="</tr>"}n.html(i)},b=function(){var e,t,n=g.widget.find(".timepicker .timepicker-seconds table"),i="",r=0;for(n.parent().hide(),e=0;3>e;e++){for(i+="<tr>",t=0;4>t;t+=1)i+='<td class="second">'+L(r.toString())+"</td>",r+=5;i+="</tr>"}n.html(i)},w=function(){if(g.date){var e=g.widget.find(".timepicker span[data-time-component]"),t=g.date.hours(),n=g.date.format("A");g.use24hours||(0===t?t=12:12!==t&&(t%=12),g.widget.find(".timepicker [data-action=togglePeriod]").text(n)),e.filter("[data-time-component=hours]").text(L(t)),e.filter("[data-time-component=minutes]").text(L(g.date.minutes())),e.filter("[data-time-component=seconds]").text(L(g.date.second()))}},C=function(e){e.stopPropagation(),e.preventDefault(),g.unset=!1;var t,n,i,r,a=B(e.target).closest("span, td, th"),o=z(g.date);if(1===a.length&&!a.is(".disabled"))switch(a[0].nodeName.toLowerCase()){case"th":switch(a[0].className){case"picker-switch":$(1);break;case"prev":case"next":i=H.modes[g.viewMode].navStep,"prev"===a[0].className&&(i=-1*i),g.viewDate.add(i,H.modes[g.viewMode].navFnc),v()}break;case"span":a.is(".month")?(t=a.parent().find("span").index(a),g.viewDate.month(t)):(n=parseInt(a.text(),10)||0,g.viewDate.year(n)),g.viewMode===g.minViewMode&&(g.date=z({y:g.viewDate.year(),M:g.viewDate.month(),d:g.viewDate.date(),h:g.date.hours(),m:g.date.minutes(),s:g.date.seconds()}),M(),u(o,e.type)),$(-1),v();break;case"td":a.is(".day")&&(r=parseInt(a.text(),10)||1,t=g.viewDate.month(),n=g.viewDate.year(),a.is(".old")?0===t?(t=11,n-=1):t-=1:a.is(".new")&&(11===t?(t=0,n+=1):t+=1),g.date=z({y:n,M:t,d:r,h:g.date.hours(),m:g.date.minutes(),s:g.date.seconds()}),g.viewDate=z({y:n,M:t,d:Math.min(28,r)}),v(),M(),u(o,e.type))}},x={incrementHours:function(){I("add","hours",1)},incrementMinutes:function(){I("add","minutes",g.options.minuteStepping)},incrementSeconds:function(){I("add","seconds",1)},decrementHours:function(){I("subtract","hours",1)},decrementMinutes:function(){I("subtract","minutes",g.options.minuteStepping)},decrementSeconds:function(){I("subtract","seconds",1)},togglePeriod:function(){var e=g.date.hours();e>=12?e-=12:e+=12,g.date.hours(e)},showPicker:function(){g.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),g.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){g.widget.find(".timepicker .timepicker-picker").hide(),g.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){g.widget.find(".timepicker .timepicker-picker").hide(),g.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){g.widget.find(".timepicker .timepicker-picker").hide(),g.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var t=parseInt(B(e.target).text(),10);g.use24hours||(g.date.hours()>=12?12!==t&&(t+=12):12===t&&(t=0)),g.date.hours(t),x.showPicker.call(g)},selectMinute:function(e){g.date.minutes(parseInt(B(e.target).text(),10)),x.showPicker.call(g)},selectSecond:function(e){g.date.seconds(parseInt(B(e.target).text(),10)),x.showPicker.call(g)}},k=function(e){var t=z(g.date),n=B(e.currentTarget).data("action"),i=x[n].apply(g,arguments);return S(e),g.date||(g.date=z({y:1970})),M(),w(),u(t,e.type),i},S=function(e){e.stopPropagation(),e.preventDefault()},D=function(e){27===e.keyCode&&g.hide()},T=function(e){z.locale(g.options.language);var t=B(e.target),n=z(g.date),i=z(t.val(),g.format,g.options.useStrict);i.isValid()&&!N(i)&&R(i)?(f(),g.setValue(i),u(n,e.type),M()):(g.viewDate=n,g.unset=!0,u(n,e.type),p(i))},$=function(e){e&&(g.viewMode=Math.max(g.minViewMode,Math.min(2,g.viewMode+e))),g.widget.find(".datepicker > div").hide().filter(".datepicker-"+H.modes[g.viewMode].clsName).show()},E=function(){var t,n,i,r,a;g.widget.on("click",".datepicker *",B.proxy(C,this)),g.widget.on("click","[data-action]",B.proxy(k,this)),g.widget.on("mousedown",B.proxy(S,this)),g.element.on("keydown",B.proxy(D,this)),g.options.pickDate&&g.options.pickTime&&g.widget.on("click.togglePicker",".accordion-toggle",function(e){if(e.stopPropagation(),t=B(this),n=t.closest("ul"),i=n.find(".in"),r=n.find(".collapse:not(.in)"),i&&i.length){if(a=i.data("collapse"),a&&a.transitioning)return;i.collapse("hide"),r.collapse("show"),t.find("span").toggleClass(g.options.icons.time+" "+g.options.icons.date),g.component&&g.component.find("span").toggleClass(g.options.icons.time+" "+g.options.icons.date)}}),g.isInput?g.element.on({click:B.proxy(g.show,this),focus:B.proxy(g.show,this),change:B.proxy(T,this),blur:B.proxy(g.hide,this)}):(g.element.on({change:B.proxy(T,this)},"input"),g.component?(g.component.on("click",B.proxy(g.show,this)),g.component.on("mousedown",B.proxy(S,this))):g.element.on("click",B.proxy(g.show,this)))},O=function(){B(window).on("resize.datetimepicker"+g.id,B.proxy(d,this)),g.isInput||B(document).on("mousedown.datetimepicker"+g.id,B.proxy(g.hide,this))},t=function(){g.widget.off("click",".datepicker *",g.click),g.widget.off("click","[data-action]"),g.widget.off("mousedown",g.stopEvent),g.options.pickDate&&g.options.pickTime&&g.widget.off("click.togglePicker"),g.isInput?g.element.off({focus:g.show,change:T,click:g.show,blur:g.hide}):(g.element.off({change:T},"input"),g.component?(g.component.off("click",g.show),g.component.off("mousedown",g.stopEvent)):g.element.off("click",g.show))},A=function(){B(window).off("resize.datetimepicker"+g.id),g.isInput||B(document).off("mousedown.datetimepicker"+g.id)},P=function(){if(g.element){var e,t=g.element.parents(),n=!1;for(e=0;e<t.length;e++)if("fixed"===B(t[e]).css("position")){n=!0;break}return n}return!1},M=function(){z.locale(g.options.language);var e="";g.unset||(e=z(g.date).format(g.format)),l().val(e),g.element.data("date",e),g.options.pickTime||g.hide()},I=function(e,t,n){z.locale(g.options.language);var i;return"add"===e?(i=z(g.date),23===i.hours()&&i.add(n,t),i.add(n,t)):i=z(g.date).subtract(n,t),N(z(i.subtract(n,t)))||N(i)?void p(i.format(g.format)):("add"===e?g.date.add(n,t):g.date.subtract(n,t),void(g.unset=!1))},N=function(e,t){z.locale(g.options.language);var n=z(g.options.maxDate,g.format,g.options.useStrict),i=z(g.options.minDate,g.format,g.options.useStrict);return t&&(n=n.endOf(t),i=i.startOf(t)),e.isAfter(n)||e.isBefore(i)?!0:g.options.disabledDates===!1?!1:g.options.disabledDates[e.format("YYYY-MM-DD")]===!0},R=function(e){return z.locale(g.options.language),g.options.enabledDates===!1?!0:g.options.enabledDates[e.format("YYYY-MM-DD")]===!0},F=function(e){var t,n={},i=0;for(t=0;t<e.length;t++)a=z.isMoment(e[t])||e[t]instanceof Date?z(e[t]):z(e[t],g.format,g.options.useStrict),a.isValid()&&(n[a.format("YYYY-MM-DD")]=!0,i++);return i>0?n:!1},L=function(e){return e=e.toString(),e.length>=2?e:"0"+e},j=function(){var e='<thead><tr><th class="prev">&lsaquo;</th><th colspan="'+(g.options.calendarWeeks?"6":"5")+'" class="picker-switch"></th><th class="next">&rsaquo;</th></tr></thead>',t='<tbody><tr><td colspan="'+(g.options.calendarWeeks?"8":"7")+'"></td></tr></tbody>',n='<div class="datepicker-days"><table class="table-condensed">'+e+'<tbody></tbody></table></div><div class="datepicker-months"><table class="table-condensed">'+e+t+'</table></div><div class="datepicker-years"><table class="table-condensed">'+e+t+"</table></div>",i="";return g.options.pickDate&&g.options.pickTime?(i='<div class="bootstrap-datetimepicker-widget'+(g.options.sideBySide?" timepicker-sbs":"")+(g.use24hours?" usetwentyfour":"")+' dropdown-menu" style="z-index:9999 !important;">',i+=g.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+n+'</div><div class="col-sm-6 timepicker">'+q.getTemplate()+"</div></div>":'<ul class="list-unstyled"><li'+(g.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+n+'</div></li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+g.options.icons.time+'"></span></a></li><li'+(g.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+q.getTemplate()+"</div></li></ul>",i+="</div>"):g.options.pickTime?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+q.getTemplate()+"</div></div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+n+"</div></div>"},H={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}]},q={hourTemplate:'<span data-action="showHours"   data-time-component="hours"   class="timepicker-hour"></span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>',secondTemplate:'<span data-action="showSeconds"  data-time-component="seconds" class="timepicker-second"></span>'};q.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+g.options.icons.up+'"></span></a></td><td class="separator"></td><td>'+(g.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+g.options.icons.up+'"></span></a>':"")+"</td>"+(g.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+g.options.icons.up+'"></span></a></td>':"")+(g.use24hours?"":'<td class="separator"></td>')+"</tr><tr><td>"+q.hourTemplate+'</td> <td class="separator">:</td><td>'+(g.options.useMinutes?q.minuteTemplate:'<span class="timepicker-minute">00</span>')+"</td> "+(g.options.useSeconds?'<td class="separator">:</td><td>'+q.secondTemplate+"</td>":"")+(g.use24hours?"":'<td class="separator"></td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>')+'</tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+g.options.icons.down+'"></span></a></td><td class="separator"></td><td>'+(g.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+g.options.icons.down+'"></span></a>':"")+"</td>"+(g.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+g.options.icons.down+'"></span></a></td>':"")+(g.use24hours?"":'<td class="separator"></td>')+'</tr></table></div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"></table></div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"></table></div>'+(g.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>':"")},g.destroy=function(){t(),A(),g.widget.remove(),g.element.removeData("DateTimePicker"),g.component&&g.component.removeData("DateTimePicker")},g.show=function(e){if(!l().prop("disabled")){if(g.options.useCurrent&&""===l().val()){if(1!==g.options.minuteStepping){var t=z(),n=g.options.minuteStepping;t.minutes(Math.round(t.minutes()/n)*n%60).seconds(0),g.setValue(t.format(g.format))}else g.setValue(z().format(g.format));u("",e.type)}e&&"click"===e.type&&g.isInput&&g.widget.hasClass("picker-open")||(g.widget.hasClass("picker-open")?(g.widget.hide(),g.widget.removeClass("picker-open")):(g.widget.show(),g.widget.addClass("picker-open")),g.height=g.component?g.component.outerHeight():g.element.outerHeight(),d(),g.element.trigger({type:"dp.show",date:z(g.date)}),O(),e&&S(e))}},g.disable=function(){var e=l();e.prop("disabled")||(e.prop("disabled",!0),t())},g.enable=function(){var e=l();e.prop("disabled")&&(e.prop("disabled",!1),E())},g.hide=function(){var e,t,n=g.widget.find(".collapse");for(e=0;e<n.length;e++)if(t=n.eq(e).data("collapse"),t&&t.transitioning)return;g.widget.hide(),g.widget.removeClass("picker-open"),g.viewMode=g.startViewMode,$(),g.element.trigger({type:"dp.hide",date:z(g.date)}),A()},g.setValue=function(e){z.locale(g.options.language),e?g.unset=!1:(g.unset=!0,M()),e=z.isMoment(e)?e.locale(g.options.language):e instanceof Date?z(e):z(e,g.format,g.options.useStrict),e.isValid()?(g.date=e,M(),g.viewDate=z({y:g.date.year(),M:g.date.month()}),v(),w()):p(e)},g.getDate=function(){return g.unset?null:z(g.date)},g.setDate=function(e){var t=z(g.date);g.setValue(e?e:null),u(t,"function")},g.setDisabledDates=function(e){g.options.disabledDates=F(e),g.viewDate&&f()},g.setEnabledDates=function(e){g.options.enabledDates=F(e),g.viewDate&&f()},g.setMaxDate=function(e){void 0!==e&&(g.options.maxDate=z.isMoment(e)||e instanceof Date?z(e):z(e,g.format,g.options.useStrict),g.viewDate&&f())},g.setMinDate=function(e){void 0!==e&&(g.options.minDate=z.isMoment(e)||e instanceof Date?z(e):z(e,g.format,g.options.useStrict),g.viewDate&&f())},e()};B.fn.datetimepicker=function(n){return this.each(function(){var e=B(this),t=e.data("DateTimePicker");t||e.data("DateTimePicker",new i(this,n))})},B.fn.datetimepicker.defaults={format:!1,pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,calendarWeeks:!1,minuteStepping:1,minDate:z({y:1900}),maxDate:z().add(100,"y"),showToday:!0,collapse:!0,language:z.locale(),defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:[],widgetParent:!1}});(function(){var e=[].slice;(function(a,i){"use strict";var o;o=function(){function e(n,e){if(e==null){e={}}this.$element=a(n);this.options=a.extend({},a.fn.bootstrapSwitch.defaults,{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")},e);this.prevOptions={};this.$wrapper=a("<div>",{class:function(t){return function(){var e;e=[""+t.options.baseClass].concat(t._getClasses(t.options.wrapperClass));e.push(t.options.state?t.options.baseClass+"-on":t.options.baseClass+"-off");if(t.options.size!=null){e.push(t.options.baseClass+"-"+t.options.size)}if(t.options.disabled){e.push(t.options.baseClass+"-disabled")}if(t.options.readonly){e.push(t.options.baseClass+"-readonly")}if(t.options.indeterminate){e.push(t.options.baseClass+"-indeterminate")}if(t.options.inverse){e.push(t.options.baseClass+"-inverse")}if(t.$element.attr("id")){e.push(t.options.baseClass+"-id-"+t.$element.attr("id"))}return e.join(" ")}}(this)()});this.$container=a("<div>",{class:this.options.baseClass+"-container"});this.$on=a("<span>",{html:this.options.onText,class:this.options.baseClass+"-handle-on "+this.options.baseClass+"-"+this.options.onColor});this.$off=a("<span>",{html:this.options.offText,class:this.options.baseClass+"-handle-off "+this.options.baseClass+"-"+this.options.offColor});this.$label=a("<span>",{html:this.options.labelText,class:this.options.baseClass+"-label"});this.$element.on("init.bootstrapSwitch",function(e){return function(){return e.options.onInit.apply(n,arguments)}}(this));this.$element.on("switchChange.bootstrapSwitch",function(t){return function(e){if(false===t.options.onSwitchChange.apply(n,arguments)){if(t.$element.is(":radio")){return a("[name='"+t.$element.attr("name")+"']").trigger("previousState.bootstrapSwitch",true)}else{return t.$element.trigger("previousState.bootstrapSwitch",true)}}}}(this));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);if(this.options.indeterminate){this.$element.prop("indeterminate",true)}this._init();this._elementHandlers();this._handleHandlers();this._labelHandlers();this._formHandler();this._externalLabelHandler();this.$element.trigger("init.bootstrapSwitch",this.options.state)}e.prototype._constructor=e;e.prototype.setPrevOptions=function(){return this.prevOptions=a.extend(true,{},this.options)};e.prototype.state=function(e,t){if(typeof e==="undefined"){return this.options.state}if(this.options.disabled||this.options.readonly){return this.$element}if(this.options.state&&!this.options.radioAllOff&&this.$element.is(":radio")){return this.$element}if(this.$element.is(":radio")){a("[name='"+this.$element.attr("name")+"']").trigger("setPreviousOptions.bootstrapSwitch")}else{this.$element.trigger("setPreviousOptions.bootstrapSwitch")}if(this.options.indeterminate){this.indeterminate(false)}e=!!e;this.$element.prop("checked",e).trigger("change.bootstrapSwitch",t);return this.$element};e.prototype.toggleState=function(e){if(this.options.disabled||this.options.readonly){return this.$element}if(this.options.indeterminate){this.indeterminate(false);return this.state(true)}else{return this.$element.prop("checked",!this.options.state).trigger("change.bootstrapSwitch",e)}};e.prototype.size=function(e){if(typeof e==="undefined"){return this.options.size}if(this.options.size!=null){this.$wrapper.removeClass(this.options.baseClass+"-"+this.options.size)}if(e){this.$wrapper.addClass(this.options.baseClass+"-"+e)}this._width();this._containerPosition();this.options.size=e;return this.$element};e.prototype.animate=function(e){if(typeof e==="undefined"){return this.options.animate}e=!!e;if(e===this.options.animate){return this.$element}return this.toggleAnimate()};e.prototype.toggleAnimate=function(){this.options.animate=!this.options.animate;this.$wrapper.toggleClass(this.options.baseClass+"-animate");return this.$element};e.prototype.disabled=function(e){if(typeof e==="undefined"){return this.options.disabled}e=!!e;if(e===this.options.disabled){return this.$element}return this.toggleDisabled()};e.prototype.toggleDisabled=function(){this.options.disabled=!this.options.disabled;this.$element.prop("disabled",this.options.disabled);this.$wrapper.toggleClass(this.options.baseClass+"-disabled");return this.$element};e.prototype.readonly=function(e){if(typeof e==="undefined"){return this.options.readonly}e=!!e;if(e===this.options.readonly){return this.$element}return this.toggleReadonly()};e.prototype.toggleReadonly=function(){this.options.readonly=!this.options.readonly;this.$element.prop("readonly",this.options.readonly);this.$wrapper.toggleClass(this.options.baseClass+"-readonly");return this.$element};e.prototype.indeterminate=function(e){if(typeof e==="undefined"){return this.options.indeterminate}e=!!e;if(e===this.options.indeterminate){return this.$element}return this.toggleIndeterminate()};e.prototype.toggleIndeterminate=function(){this.options.indeterminate=!this.options.indeterminate;this.$element.prop("indeterminate",this.options.indeterminate);this.$wrapper.toggleClass(this.options.baseClass+"-indeterminate");this._containerPosition();return this.$element};e.prototype.inverse=function(e){if(typeof e==="undefined"){return this.options.inverse}e=!!e;if(e===this.options.inverse){return this.$element}return this.toggleInverse()};e.prototype.toggleInverse=function(){var e,t;this.$wrapper.toggleClass(this.options.baseClass+"-inverse");t=this.$on.clone(true);e=this.$off.clone(true);this.$on.replaceWith(e);this.$off.replaceWith(t);this.$on=e;this.$off=t;this.options.inverse=!this.options.inverse;return this.$element};e.prototype.onColor=function(e){var t;t=this.options.onColor;if(typeof e==="undefined"){return t}if(t!=null){this.$on.removeClass(this.options.baseClass+"-"+t)}this.$on.addClass(this.options.baseClass+"-"+e);this.options.onColor=e;return this.$element};e.prototype.offColor=function(e){var t;t=this.options.offColor;if(typeof e==="undefined"){return t}if(t!=null){this.$off.removeClass(this.options.baseClass+"-"+t)}this.$off.addClass(this.options.baseClass+"-"+e);this.options.offColor=e;return this.$element};e.prototype.onText=function(e){if(typeof e==="undefined"){return this.options.onText}this.$on.html(e);this._width();this._containerPosition();this.options.onText=e;return this.$element};e.prototype.offText=function(e){if(typeof e==="undefined"){return this.options.offText}this.$off.html(e);this._width();this._containerPosition();this.options.offText=e;return this.$element};e.prototype.labelText=function(e){if(typeof e==="undefined"){return this.options.labelText}this.$label.html(e);this._width();this.options.labelText=e;return this.$element};e.prototype.handleWidth=function(e){if(typeof e==="undefined"){return this.options.handleWidth}this.options.handleWidth=e;this._width();this._containerPosition();return this.$element};e.prototype.labelWidth=function(e){if(typeof e==="undefined"){return this.options.labelWidth}this.options.labelWidth=e;this._width();this._containerPosition();return this.$element};e.prototype.baseClass=function(e){return this.options.baseClass};e.prototype.wrapperClass=function(e){if(typeof e==="undefined"){return this.options.wrapperClass}if(!e){e=a.fn.bootstrapSwitch.defaults.wrapperClass}this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" "));this.$wrapper.addClass(this._getClasses(e).join(" "));this.options.wrapperClass=e;return this.$element};e.prototype.radioAllOff=function(e){if(typeof e==="undefined"){return this.options.radioAllOff}e=!!e;if(e===this.options.radioAllOff){return this.$element}this.options.radioAllOff=e;return this.$element};e.prototype.onInit=function(e){if(typeof e==="undefined"){return this.options.onInit}if(!e){e=a.fn.bootstrapSwitch.defaults.onInit}this.options.onInit=e;return this.$element};e.prototype.onSwitchChange=function(e){if(typeof e==="undefined"){return this.options.onSwitchChange}if(!e){e=a.fn.bootstrapSwitch.defaults.onSwitchChange}this.options.onSwitchChange=e;return this.$element};e.prototype.destroy=function(){var e;e=this.$element.closest("form");if(e.length){e.off("reset.bootstrapSwitch").removeData("bootstrap-switch")}this.$container.children().not(this.$element).remove();this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch");return this.$element};e.prototype._width=function(){var e,i;e=this.$on.add(this.$off);e.add(this.$label).css("width","");i=this.options.handleWidth==="auto"?Math.max(this.$on.width(),this.$off.width()):this.options.handleWidth;e.width(i);this.$label.width(function(n){return function(e,t){if(n.options.labelWidth!=="auto"){return n.options.labelWidth}if(t<i){return i}else{return t}}}(this));this._handleWidth=this.$on.outerWidth();this._labelWidth=this.$label.outerWidth();this.$container.width(this._handleWidth*2+this._labelWidth);return this.$wrapper.width(this._handleWidth+this._labelWidth)};e.prototype._containerPosition=function(n,e){if(n==null){n=this.options.state}this.$container.css("margin-left",function(t){return function(){var e;e=[0,"-"+t._handleWidth+"px"];if(t.options.indeterminate){return"-"+t._handleWidth/2+"px"}if(n){if(t.options.inverse){return e[1]}else{return e[0]}}else{if(t.options.inverse){return e[0]}else{return e[1]}}}}(this));if(!e){return}return setTimeout(function(){return e()},50)};e.prototype._init=function(){var t,n;t=function(e){return function(){e.setPrevOptions();e._width();return e._containerPosition(null,function(){if(e.options.animate){return e.$wrapper.addClass(e.options.baseClass+"-animate")}})}}(this);if(this.$wrapper.is(":visible")){return t()}return n=i.setInterval(function(e){return function(){if(e.$wrapper.is(":visible")){t();return i.clearInterval(n)}}}(this),50)};e.prototype._elementHandlers=function(){return this.$element.on({"setPreviousOptions.bootstrapSwitch":function(t){return function(e){return t.setPrevOptions()}}(this),"previousState.bootstrapSwitch":function(t){return function(e){t.options=t.prevOptions;if(t.options.indeterminate){t.$wrapper.addClass(t.options.baseClass+"-indeterminate")}return t.$element.prop("checked",t.options.state).trigger("change.bootstrapSwitch",true)}}(this),"change.bootstrapSwitch":function(i){return function(e,t){var n;e.preventDefault();e.stopImmediatePropagation();n=i.$element.is(":checked");i._containerPosition(n);if(n===i.options.state){return}i.options.state=n;i.$wrapper.toggleClass(i.options.baseClass+"-off").toggleClass(i.options.baseClass+"-on");if(!t){if(i.$element.is(":radio")){a("[name='"+i.$element.attr("name")+"']").not(i.$element).prop("checked",false).trigger("change.bootstrapSwitch",true)}return i.$element.trigger("switchChange.bootstrapSwitch",[n])}}}(this),"focus.bootstrapSwitch":function(t){return function(e){e.preventDefault();return t.$wrapper.addClass(t.options.baseClass+"-focused")}}(this),"blur.bootstrapSwitch":function(t){return function(e){e.preventDefault();return t.$wrapper.removeClass(t.options.baseClass+"-focused")}}(this),"keydown.bootstrapSwitch":function(t){return function(e){if(!e.which||t.options.disabled||t.options.readonly){return}switch(e.which){case 37:e.preventDefault();e.stopImmediatePropagation();return t.state(false);case 39:e.preventDefault();e.stopImmediatePropagation();return t.state(true)}}}(this)})};e.prototype._handleHandlers=function(){this.$on.on("click.bootstrapSwitch",function(t){return function(e){e.preventDefault();e.stopPropagation();t.state(false);return t.$element.trigger("focus.bootstrapSwitch")}}(this));return this.$off.on("click.bootstrapSwitch",function(t){return function(e){e.preventDefault();e.stopPropagation();t.state(true);return t.$element.trigger("focus.bootstrapSwitch")}}(this))};e.prototype._labelHandlers=function(){return this.$label.on({click:function(e){return e.stopPropagation()},"mousedown.bootstrapSwitch touchstart.bootstrapSwitch":function(t){return function(e){if(t._dragStart||t.options.disabled||t.options.readonly){return}e.preventDefault();e.stopPropagation();t._dragStart=(e.pageX||e.originalEvent.touches[0].pageX)-parseInt(t.$container.css("margin-left"),10);if(t.options.animate){t.$wrapper.removeClass(t.options.baseClass+"-animate")}return t.$element.trigger("focus.bootstrapSwitch")}}(this),"mousemove.bootstrapSwitch touchmove.bootstrapSwitch":function(n){return function(e){var t;if(n._dragStart==null){return}e.preventDefault();t=(e.pageX||e.originalEvent.touches[0].pageX)-n._dragStart;if(t<-n._handleWidth||t>0){return}n._dragEnd=t;return n.$container.css("margin-left",n._dragEnd+"px")}}(this),"mouseup.bootstrapSwitch touchend.bootstrapSwitch":function(n){return function(e){var t;if(!n._dragStart){return}e.preventDefault();if(n.options.animate){n.$wrapper.addClass(n.options.baseClass+"-animate")}if(n._dragEnd){t=n._dragEnd>-(n._handleWidth/2);n._dragEnd=false;n.state(n.options.inverse?!t:t)}else{n.state(!n.options.state)}return n._dragStart=false}}(this),"mouseleave.bootstrapSwitch":function(t){return function(e){return t.$label.trigger("mouseup.bootstrapSwitch")}}(this)})};e.prototype._externalLabelHandler=function(){var n;n=this.$element.closest("label");return n.on("click",function(t){return function(e){e.preventDefault();e.stopImmediatePropagation();if(e.target===n[0]){return t.toggleState()}}}(this))};e.prototype._formHandler=function(){var e;e=this.$element.closest("form");if(e.data("bootstrap-switch")){return}return e.on("reset.bootstrapSwitch",function(){return i.setTimeout(function(){return e.find("input").filter(function(){return a(this).data("bootstrap-switch")}).each(function(){return a(this).bootstrapSwitch("state",this.checked)})},1)}).data("bootstrap-switch",true)};e.prototype._getClasses=function(e){var t,n,i,r;if(!a.isArray(e)){return[this.options.baseClass+"-"+e]}n=[];for(i=0,r=e.length;i<r;i++){t=e[i];n.push(this.options.baseClass+"-"+t)}return n};return e}();a.fn.bootstrapSwitch=function(){var n,i,r;i=arguments[0],n=2<=arguments.length?e.call(arguments,1):[];r=this;this.each(function(){var e,t;e=a(this);t=e.data("bootstrap-switch");if(!t){e.data("bootstrap-switch",t=new o(this,i))}if(typeof i==="string"){return r=t[i].apply(t,n)}});return r};a.fn.bootstrapSwitch.Constructor=o;return a.fn.bootstrapSwitch.defaults={state:true,size:null,animate:true,disabled:false,readonly:false,indeterminate:false,inverse:false,radioAllOff:false,onColor:"primary",offColor:"default",onText:"ON",offText:"OFF",labelText:"&nbsp;",handleWidth:"auto",labelWidth:"auto",baseClass:"bootstrap-switch",wrapperClass:"wrapper",onInit:function(){},onSwitchChange:function(){}}})(window.jQuery,window)}).call(this);if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(r){"use strict";function e(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}r.fn.emulateTransitionEnd=function(e){var t=!1,n=this;r(this).one("bsTransitionEnd",function(){t=!0});var i=function(){t||r(n).trigger(r.support.transition.end)};return setTimeout(i,e),this},r(function(){r.support.transition=e(),r.support.transition&&(r.event.special.bsTransitionEnd={bindType:r.support.transition.end,delegateType:r.support.transition.end,handle:function(e){return r(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function e(n){return this.each(function(){var e=a(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new o(this)),"string"==typeof n&&t[n].call(e)})}var t='[data-dismiss="alert"]',o=function(e){a(e).on("click",t,this.close)};o.VERSION="3.3.6",o.TRANSITION_DURATION=150,o.prototype.close=function(e){function t(){r.detach().trigger("closed.bs.alert").remove()}var n=a(this),i=n.attr("data-target");i||(i=n.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,""));var r=a(i);e&&e.preventDefault(),r.length||(r=n.closest(".alert")),r.trigger(e=a.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),a.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",t).emulateTransitionEnd(o.TRANSITION_DURATION):t())};var n=a.fn.alert;a.fn.alert=e,a.fn.alert.Constructor=o,a.fn.alert.noConflict=function(){return a.fn.alert=n,this},a(document).on("click.bs.alert.data-api",t,o.prototype.close)}(jQuery),+function(a){"use strict";function n(i){return this.each(function(){var e=a(this),t=e.data("bs.button"),n="object"==typeof i&&i;t||e.data("bs.button",t=new r(this,n)),"toggle"==i?t.toggle():i&&t.setState(i)})}var r=function(e,t){this.$element=a(e),this.options=a.extend({},r.DEFAULTS,t),this.isLoading=!1};r.VERSION="3.3.6",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(e){var t="disabled",n=this.$element,i=n.is("input")?"val":"html",r=n.data();e+="Text",null==r.resetText&&n.data("resetText",n[i]()),setTimeout(a.proxy(function(){n[i](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(t).attr(t,t)):this.isLoading&&(this.isLoading=!1,n.removeClass(t).removeAttr(t))},this),0)},r.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var e=a.fn.button;a.fn.button=n,a.fn.button.Constructor=r,a.fn.button.noConflict=function(){return a.fn.button=e,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=a(e.target);t.hasClass("btn")||(t=t.closest(".btn")),n.call(t,"toggle"),a(e.target).is('input[type="radio"]')||a(e.target).is('input[type="checkbox"]')||e.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){a(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(u){"use strict";function o(r){return this.each(function(){var e=u(this),t=e.data("bs.carousel"),n=u.extend({},p.DEFAULTS,e.data(),"object"==typeof r&&r),i="string"==typeof r?r:n.slide;t||e.data("bs.carousel",t=new p(this,n)),"number"==typeof r?t.to(r):i?t[i]():n.interval&&t.pause().cycle()})}var p=function(e,t){this.$element=u(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",u.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",u.proxy(this.pause,this)).on("mouseleave.bs.carousel",u.proxy(this.cycle,this))};p.VERSION="3.3.6",p.TRANSITION_DURATION=600,p.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},p.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},p.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(u.proxy(this.next,this),this.options.interval)),this},p.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},p.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),i="prev"==e&&0===n||"next"==e&&n==this.$items.length-1;if(i&&!this.options.wrap)return t;var r="prev"==e?-1:1,a=(n+r)%this.$items.length;return this.$items.eq(a)},p.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},p.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&u.support.transition&&(this.$element.trigger(u.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},p.prototype.next=function(){return this.sliding?void 0:this.slide("next")},p.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},p.prototype.slide=function(e,t){var n=this.$element.find(".item.active"),i=t||this.getItemForDirection(e,n),r=this.interval,a="next"==e?"left":"right",o=this;if(i.hasClass("active"))return this.sliding=!1;var s=i[0],l=u.Event("slide.bs.carousel",{relatedTarget:s,direction:a});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=u(this.$indicators.children()[this.getItemIndex(i)]);c&&c.addClass("active")}var d=u.Event("slid.bs.carousel",{relatedTarget:s,direction:a});return u.support.transition&&this.$element.hasClass("slide")?(i.addClass(e),i[0].offsetWidth,n.addClass(a),i.addClass(a),n.one("bsTransitionEnd",function(){i.removeClass([e,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),o.sliding=!1,setTimeout(function(){o.$element.trigger(d)},0)}).emulateTransitionEnd(p.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(d)),r&&this.cycle(),this}};var e=u.fn.carousel;u.fn.carousel=o,u.fn.carousel.Constructor=p,u.fn.carousel.noConflict=function(){return u.fn.carousel=e,this};var t=function(e){var t,n=u(this),i=u(n.attr("data-target")||(t=n.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var r=u.extend({},i.data(),n.data()),a=n.attr("data-slide-to");a&&(r.interval=!1),o.call(i,r),a&&i.data("bs.carousel").to(a),e.preventDefault()}};u(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),u(window).on("load",function(){u('[data-ride="carousel"]').each(function(){var e=u(this);o.call(e,e.data())})})}(jQuery),+function(o){"use strict";function a(e){var t,n=e.attr("data-target")||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return o(n)}function s(i){return this.each(function(){var e=o(this),t=e.data("bs.collapse"),n=o.extend({},l.DEFAULTS,e.data(),"object"==typeof i&&i);!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||e.data("bs.collapse",t=new l(this,n)),"string"==typeof i&&t[i]()})}var l=function(e,t){this.$element=o(e),this.options=o.extend({},l.DEFAULTS,t),this.$trigger=o('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};l.VERSION="3.3.6",l.TRANSITION_DURATION=350,l.DEFAULTS={toggle:!0},l.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},l.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(e=t.data("bs.collapse"),e&&e.transitioning))){var n=o.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){t&&t.length&&(s.call(t,"hide"),e||t.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!o.support.transition)return r.call(this);var a=o.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",o.proxy(r,this)).emulateTransitionEnd(l.TRANSITION_DURATION)[i](this.$element[0][a])}}}},l.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=o.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return o.support.transition?void this.$element[t](0).one("bsTransitionEnd",o.proxy(n,this)).emulateTransitionEnd(l.TRANSITION_DURATION):n.call(this)}}},l.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},l.prototype.getParent=function(){return o(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(o.proxy(function(e,t){var n=o(t);this.addAriaAndCollapsedClass(a(n),n)},this)).end()},l.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var e=o.fn.collapse;o.fn.collapse=s,o.fn.collapse.Constructor=l,o.fn.collapse.noConflict=function(){return o.fn.collapse=e,this},o(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t=o(this);t.attr("data-target")||e.preventDefault();var n=a(t),i=n.data("bs.collapse"),r=i?"toggle":t.data();s.call(n,r)})}(jQuery),+function(s){"use strict";function l(e){var t=e.attr("data-target");t||(t=e.attr("href"),t=t&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""));var n=t&&s(t);return n&&n.length?n:e.parent()}function a(i){i&&3===i.which||(s(t).remove(),s(c).each(function(){var e=s(this),t=l(e),n={relatedTarget:this};t.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&s.contains(t[0],i.target)||(t.trigger(i=s.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),t.removeClass("open").trigger(s.Event("hidden.bs.dropdown",n)))))}))}function e(n){return this.each(function(){var e=s(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new i(this)),"string"==typeof n&&t[n].call(e)})}var t=".dropdown-backdrop",c='[data-toggle="dropdown"]',i=function(e){s(e).on("click.bs.dropdown",this.toggle)};i.VERSION="3.3.6",i.prototype.toggle=function(e){var t=s(this);if(!t.is(".disabled, :disabled")){var n=l(t),i=n.hasClass("open");if(a(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(s(this)).on("click",a);var r={relatedTarget:this};if(n.trigger(e=s.Event("show.bs.dropdown",r)),e.isDefaultPrevented())return;t.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(s.Event("shown.bs.dropdown",r))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var t=s(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var n=l(t),i=n.hasClass("open");if(!i&&27!=e.which||i&&27==e.which)return 27==e.which&&n.find(c).trigger("focus"),t.trigger("click");var r=" li:not(.disabled):visible a",a=n.find(".dropdown-menu"+r);if(a.length){var o=a.index(e.target);38==e.which&&o>0&&o--,40==e.which&&o<a.length-1&&o++,~o||(o=0),a.eq(o).trigger("focus")}}}};var n=s.fn.dropdown;s.fn.dropdown=e,s.fn.dropdown.Constructor=i,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=n,this},s(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",c,i.prototype.toggle).on("keydown.bs.dropdown.data-api",c,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),+function(a){"use strict";function o(i,r){return this.each(function(){var e=a(this),t=e.data("bs.modal"),n=a.extend({},s.DEFAULTS,e.data(),"object"==typeof i&&i);t||e.data("bs.modal",t=new s(this,n)),"string"==typeof i?t[i](r):n.show&&t.show(r)})}var s=function(e,t){this.options=t,this.$body=a(document.body),this.$element=a(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};s.VERSION="3.3.6",s.TRANSITION_DURATION=300,s.BACKDROP_TRANSITION_DURATION=150,s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},s.prototype.show=function(n){var i=this,e=a.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){a(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),e&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var t=a.Event("shown.bs.modal",{relatedTarget:n});e?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(t)}).emulateTransitionEnd(s.TRANSITION_DURATION):i.$element.trigger("focus").trigger(t)}))},s.prototype.hide=function(e){e&&e.preventDefault(),e=a.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(s.TRANSITION_DURATION):this.hideModal())},s.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",a.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},s.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},s.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(e){var t=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=a.support.transition&&n;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;i?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){t.removeBackdrop(),e&&e()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},s.prototype.handleUpdate=function(){this.adjustDialog()},s.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},s.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},s.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},s.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},s.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},s.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var e=a.fn.modal;a.fn.modal=o,a.fn.modal.Constructor=s,a.fn.modal.noConflict=function(){return a.fn.modal=e,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t=a(this),n=t.attr("href"),i=a(t.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),r=i.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(n)&&n},i.data(),t.data());t.is("a")&&e.preventDefault(),i.one("show.bs.modal",function(e){e.isDefaultPrevented()||i.one("hidden.bs.modal",function(){t.is(":visible")&&t.trigger("focus")})}),o.call(i,r,this)})}(jQuery),+function(m){"use strict";function e(i){return this.each(function(){var e=m(this),t=e.data("bs.tooltip"),n="object"==typeof i&&i;(t||!/destroy|hide/.test(i))&&(t||e.data("bs.tooltip",t=new v(this,n)),"string"==typeof i&&t[i]())})}var v=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};v.VERSION="3.3.6",v.TRANSITION_DURATION=150,v.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},v.prototype.init=function(e,t,n){if(this.enabled=!0,this.type=e,this.$element=m(t),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),r=i.length;r--;){var a=i[r];if("click"==a)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=a){var o="hover"==a?"mouseenter":"focusin",s="hover"==a?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},v.prototype.getDefaults=function(){return v.DEFAULTS},v.prototype.getOptions=function(e){return e=m.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},v.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(e,t){i[e]!=t&&(n[e]=t)}),n},v.prototype.enter=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget).data("bs."+this.type);return t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t)),e instanceof m.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState?void(t.hoverState="in"):(clearTimeout(t.timeout),t.hoverState="in",t.options.delay&&t.options.delay.show?void(t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)):t.show())},v.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},v.prototype.leave=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget).data("bs."+this.type);return t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t)),e instanceof m.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),t.isInStateTrue()?void 0:(clearTimeout(t.timeout),t.hoverState="out",t.options.delay&&t.options.delay.hide?void(t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)):t.hide())},v.prototype.show=function(){var e=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var n=this,i=this.tip(),r=this.getUID(this.type);this.setContent(),i.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&i.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,o=/\s?auto?\s?/i,s=o.test(a);s&&(a=a.replace(o,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,d=i[0].offsetHeight;if(s){var u=a,p=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+d>p.bottom?"top":"top"==a&&l.top-d<p.top?"bottom":"right"==a&&l.right+c>p.width?"left":"left"==a&&l.left-c<p.left?"right":a,i.removeClass(u).addClass(a)}var f=this.getCalculatedOffset(a,l,c,d);this.applyPlacement(f,a);var h=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==e&&n.leave(n)};m.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",h).emulateTransitionEnd(v.TRANSITION_DURATION):h()}},v.prototype.applyPlacement=function(e,t){var n=this.tip(),i=n[0].offsetWidth,r=n[0].offsetHeight,a=parseInt(n.css("margin-top"),10),o=parseInt(n.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(o)&&(o=0),e.top+=a,e.left+=o,m.offset.setOffset(n[0],m.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},e),0),n.addClass("in");var s=n[0].offsetWidth,l=n[0].offsetHeight;"top"==t&&l!=r&&(e.top=e.top+r-l);var c=this.getViewportAdjustedDelta(t,e,s,l);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(t),u=d?2*c.left-i+s:2*c.top-r+l,p=d?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(u,n[0][p],d)},v.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},v.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},v.prototype.hide=function(e){function t(){"in"!=n.hoverState&&i.detach(),n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}var n=this,i=m(this.$tip),r=m.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(i.removeClass("in"),m.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",t).emulateTransitionEnd(v.TRANSITION_DURATION):t(),this.hoverState=null,this)},v.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},v.prototype.hasContent=function(){return this.getTitle()},v.prototype.getPosition=function(e){e=e||this.$element;var t=e[0],n="BODY"==t.tagName,i=t.getBoundingClientRect();null==i.width&&(i=m.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var r=n?{top:0,left:0}:e.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},o=n?{width:m(window).width(),height:m(window).height()}:null;return m.extend({},i,a,o,r)},v.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},v.prototype.getViewportAdjustedDelta=function(e,t,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var a=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-a-o.scroll,l=t.top+a-o.scroll+i;s<o.top?r.top=o.top-s:l>o.top+o.height&&(r.top=o.top+o.height-l)}else{var c=t.left-a,d=t.left+a+n;c<o.left?r.left=o.left-c:d>o.right&&(r.left=o.left+o.width-d)}return r},v.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},v.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},v.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},v.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},v.prototype.enable=function(){this.enabled=!0},v.prototype.disable=function(){this.enabled=!1},v.prototype.toggleEnabled=function(){this.enabled=!this.enabled},v.prototype.toggle=function(e){var t=this;e&&(t=m(e.currentTarget).data("bs."+this.type),t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t))),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},v.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})};var t=m.fn.tooltip;m.fn.tooltip=e,m.fn.tooltip.Constructor=v,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=t,this}}(jQuery),+function(r){"use strict";function e(i){return this.each(function(){var e=r(this),t=e.data("bs.popover"),n="object"==typeof i&&i;(t||!/destroy|hide/.test(i))&&(t||e.data("bs.popover",t=new a(this,n)),"string"==typeof i&&t[i]())})}var a=function(e,t){this.init("popover",e,t)};if(!r.fn.tooltip)throw new Error("Popover requires tooltip.js");a.VERSION="3.3.6",a.DEFAULTS=r.extend({},r.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),a.prototype=r.extend({},r.fn.tooltip.Constructor.prototype),a.prototype.constructor=a,a.prototype.getDefaults=function(){return a.DEFAULTS},a.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},a.prototype.hasContent=function(){return this.getTitle()||this.getContent()},a.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},a.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=r.fn.popover;r.fn.popover=e,r.fn.popover.Constructor=a,r.fn.popover.noConflict=function(){return r.fn.popover=t,this}}(jQuery),+function(a){"use strict";function r(e,t){this.$body=a(document.body),this.$scrollElement=a(a(e).is(document.body)?window:e),this.options=a.extend({},r.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function t(i){return this.each(function(){var e=a(this),t=e.data("bs.scrollspy"),n="object"==typeof i&&i;t||e.data("bs.scrollspy",t=new r(this,n)),"string"==typeof i&&t[i]()})}r.VERSION="3.3.6",r.DEFAULTS={offset:10},r.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},r.prototype.refresh=function(){var e=this,i="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=a(this),t=e.data("target")||e.attr("href"),n=/^#./.test(t)&&a(t);return n&&n.length&&n.is(":visible")&&[[n[i]().top+r,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},r.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,a=this.targets,o=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return o!=(e=a[a.length-1])&&this.activate(e);if(o&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)o!=a[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(a[e])},r.prototype.activate=function(e){this.activeTarget=e,this.clear();var t=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=a(t).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},r.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var e=a.fn.scrollspy;a.fn.scrollspy=t,a.fn.scrollspy.Constructor=r,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=e,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var e=a(this);t.call(e,e.data())})})}(jQuery),+function(s){"use strict";function t(n){return this.each(function(){var e=s(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new o(this)),"string"==typeof n&&t[n]()})}var o=function(e){this.element=s(e)};o.VERSION="3.3.6",o.TRANSITION_DURATION=150,o.prototype.show=function(){var e=this.element,t=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=t.find(".active:last a"),r=s.Event("hide.bs.tab",{relatedTarget:e[0]}),a=s.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(r),e.trigger(a),!a.isDefaultPrevented()&&!r.isDefaultPrevented()){var o=s(n);this.activate(e.closest("li"),t),this.activate(o,o.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},o.prototype.activate=function(e,t,n){function i(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var r=t.find("> .active"),a=n&&s.support.transition&&(r.length&&r.hasClass("fade")||!!t.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i(),r.removeClass("in")};var e=s.fn.tab;s.fn.tab=t,s.fn.tab.Constructor=o,s.fn.tab.noConflict=function(){return s.fn.tab=e,this};var n=function(e){e.preventDefault(),t.call(s(this),"show")};s(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),+function(l){"use strict";function n(i){return this.each(function(){var e=l(this),t=e.data("bs.affix"),n="object"==typeof i&&i;t||e.data("bs.affix",t=new c(this,n)),"string"==typeof i&&t[i]()})}var c=function(e,t){this.options=l.extend({},c.DEFAULTS,t),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.6",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),a=this.$element.offset(),o=this.$target.height();if(null!=n&&"top"==this.affixed)return n>r?"top":!1;if("bottom"==this.affixed)return null!=n?r+this.unpin<=a.top?!1:"bottom":e-i>=r+o?!1:"bottom";var s=null==this.affixed,l=s?r:a.top,c=s?o:t;return null!=n&&n>=r?"top":null!=i&&l+c>=e-i?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},c.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),t=this.options.offset,n=t.top,i=t.bottom,r=Math.max(l(document).height(),l(document.body).height());"object"!=typeof t&&(i=n=t),"function"==typeof n&&(n=t.top(this.$element)),"function"==typeof i&&(i=t.bottom(this.$element));var a=this.getState(r,e,n,i);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var o="affix"+(a?"-"+a:""),s=l.Event(o+".bs.affix");if(this.$element.trigger(s),s.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(o).trigger(o.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-i})}};var e=l.fn.affix;l.fn.affix=n,l.fn.affix.Constructor=c,l.fn.affix.noConflict=function(){return l.fn.affix=e,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var e=l(this),t=e.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),n.call(e,t)})})}(jQuery);(function(n,i){if(typeof define==="function"&&define.amd){define(["moment","jquery"],function(e,t){return n.daterangepicker=i(e,t)})}else if(typeof module==="object"&&module.exports){var e=typeof window!="undefined"?window.jQuery:undefined;if(!e){e=require("jquery");if(!e.fn)e.fn={}}module.exports=i(require("moment"),e)}else{n.daterangepicker=i(n.moment,n.jQuery)}})(this,function(H,q){var i=function(e,t,n){this.parentEl="body";this.element=q(e);this.startDate=H().startOf("day");this.endDate=H().endOf("day");this.minDate=false;this.maxDate=false;this.dateLimit=false;this.autoApply=false;this.singleDatePicker=false;this.showDropdowns=false;this.showWeekNumbers=false;this.showISOWeekNumbers=false;this.showCustomRangeLabel=true;this.timePicker=false;this.timePicker24Hour=false;this.timePickerIncrement=1;this.timePickerSeconds=false;this.linkedCalendars=true;this.autoUpdateInput=true;this.alwaysShowCalendars=false;this.ranges={};this.opens="right";if(this.element.hasClass("pull-right"))this.opens="left";this.drops="down";if(this.element.hasClass("dropup"))this.drops="up";this.buttonClasses="btn btn-sm";this.applyClass="btn-success";this.cancelClass="btn-default";this.locale={direction:"ltr",format:"MM/DD/YYYY",separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:H.weekdaysMin(),monthNames:H.monthsShort(),firstDay:H.localeData().firstDayOfWeek()};this.callback=function(){};this.isShowing=false;this.leftCalendar={};this.rightCalendar={};if(typeof t!=="object"||t===null)t={};t=q.extend(this.element.data(),t);if(typeof t.template!=="string"&&!(t.template instanceof q))t.template='<div class="daterangepicker dropdown-menu">'+'<div class="calendar left">'+'<div class="daterangepicker_input">'+'<input class="input-mini form-control" type="text" name="daterangepicker_start" value="" />'+'<i class="fa fa-calendar glyphicon glyphicon-calendar"></i>'+'<div class="calendar-time">'+"<div></div>"+'<i class="fa fa-clock-o glyphicon glyphicon-time"></i>'+"</div>"+"</div>"+'<div class="calendar-table"></div>'+"</div>"+'<div class="calendar right">'+'<div class="daterangepicker_input">'+'<input class="input-mini form-control" type="text" name="daterangepicker_end" value="" />'+'<i class="fa fa-calendar glyphicon glyphicon-calendar"></i>'+'<div class="calendar-time">'+"<div></div>"+'<i class="fa fa-clock-o glyphicon glyphicon-time"></i>'+"</div>"+"</div>"+'<div class="calendar-table"></div>'+"</div>"+'<div class="ranges">'+'<div class="range_inputs">'+'<button class="applyBtn" disabled="disabled" type="button"></button> '+'<button class="cancelBtn" type="button"></button>'+"</div>"+"</div>"+"</div>";this.parentEl=t.parentEl&&q(t.parentEl).length?q(t.parentEl):q(this.parentEl);this.container=q(t.template).appendTo(this.parentEl);if(typeof t.locale==="object"){if(typeof t.locale.direction==="string")this.locale.direction=t.locale.direction;if(typeof t.locale.format==="string")this.locale.format=t.locale.format;if(typeof t.locale.separator==="string")this.locale.separator=t.locale.separator;if(typeof t.locale.daysOfWeek==="object")this.locale.daysOfWeek=t.locale.daysOfWeek.slice();if(typeof t.locale.monthNames==="object")this.locale.monthNames=t.locale.monthNames.slice();if(typeof t.locale.firstDay==="number")this.locale.firstDay=t.locale.firstDay;if(typeof t.locale.applyLabel==="string")this.locale.applyLabel=t.locale.applyLabel;if(typeof t.locale.cancelLabel==="string")this.locale.cancelLabel=t.locale.cancelLabel;if(typeof t.locale.weekLabel==="string")this.locale.weekLabel=t.locale.weekLabel;if(typeof t.locale.customRangeLabel==="string")this.locale.customRangeLabel=t.locale.customRangeLabel}this.container.addClass(this.locale.direction);if(typeof t.startDate==="string")this.startDate=H(t.startDate,this.locale.format);if(typeof t.endDate==="string")this.endDate=H(t.endDate,this.locale.format);if(typeof t.minDate==="string")this.minDate=H(t.minDate,this.locale.format);if(typeof t.maxDate==="string")this.maxDate=H(t.maxDate,this.locale.format);if(typeof t.startDate==="object")this.startDate=H(t.startDate);if(typeof t.endDate==="object")this.endDate=H(t.endDate);if(typeof t.minDate==="object")this.minDate=H(t.minDate);if(typeof t.maxDate==="object")this.maxDate=H(t.maxDate);if(this.minDate&&this.startDate.isBefore(this.minDate))this.startDate=this.minDate.clone();if(this.maxDate&&this.endDate.isAfter(this.maxDate))this.endDate=this.maxDate.clone();if(typeof t.applyClass==="string")this.applyClass=t.applyClass;if(typeof t.cancelClass==="string")this.cancelClass=t.cancelClass;if(typeof t.dateLimit==="object")this.dateLimit=t.dateLimit;if(typeof t.opens==="string")this.opens=t.opens;if(typeof t.drops==="string")this.drops=t.drops;if(typeof t.showWeekNumbers==="boolean")this.showWeekNumbers=t.showWeekNumbers;if(typeof t.showISOWeekNumbers==="boolean")this.showISOWeekNumbers=t.showISOWeekNumbers;if(typeof t.buttonClasses==="string")this.buttonClasses=t.buttonClasses;if(typeof t.buttonClasses==="object")this.buttonClasses=t.buttonClasses.join(" ");if(typeof t.showDropdowns==="boolean")this.showDropdowns=t.showDropdowns;if(typeof t.showCustomRangeLabel==="boolean")this.showCustomRangeLabel=t.showCustomRangeLabel;if(typeof t.singleDatePicker==="boolean"){this.singleDatePicker=t.singleDatePicker;if(this.singleDatePicker)this.endDate=this.startDate.clone()}if(typeof t.timePicker==="boolean")this.timePicker=t.timePicker;if(typeof t.timePickerSeconds==="boolean")this.timePickerSeconds=t.timePickerSeconds;if(typeof t.timePickerIncrement==="number")this.timePickerIncrement=t.timePickerIncrement;if(typeof t.timePicker24Hour==="boolean")this.timePicker24Hour=t.timePicker24Hour;if(typeof t.autoApply==="boolean")this.autoApply=t.autoApply;if(typeof t.autoUpdateInput==="boolean")this.autoUpdateInput=t.autoUpdateInput;if(typeof t.linkedCalendars==="boolean")this.linkedCalendars=t.linkedCalendars;if(typeof t.isInvalidDate==="function")this.isInvalidDate=t.isInvalidDate;if(typeof t.isCustomDate==="function")this.isCustomDate=t.isCustomDate;if(typeof t.alwaysShowCalendars==="boolean")this.alwaysShowCalendars=t.alwaysShowCalendars;if(this.locale.firstDay!=0){var i=this.locale.firstDay;while(i>0){this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift());i--}}var r,a,o;if(typeof t.startDate==="undefined"&&typeof t.endDate==="undefined"){if(q(this.element).is("input[type=text]")){var s=q(this.element).val(),l=s.split(this.locale.separator);r=a=null;if(l.length==2){r=H(l[0],this.locale.format);a=H(l[1],this.locale.format)}else if(this.singleDatePicker&&s!==""){r=H(s,this.locale.format);a=H(s,this.locale.format)}if(r!==null&&a!==null){this.setStartDate(r);this.setEndDate(a)}}}if(typeof t.ranges==="object"){for(o in t.ranges){if(typeof t.ranges[o][0]==="string")r=H(t.ranges[o][0],this.locale.format);else r=H(t.ranges[o][0]);if(typeof t.ranges[o][1]==="string")a=H(t.ranges[o][1],this.locale.format);else a=H(t.ranges[o][1]);if(this.minDate&&r.isBefore(this.minDate))r=this.minDate.clone();var c=this.maxDate;if(this.dateLimit&&c&&r.clone().add(this.dateLimit).isAfter(c))c=r.clone().add(this.dateLimit);if(c&&a.isAfter(c))a=c.clone();if(this.minDate&&a.isBefore(this.minDate,this.timepicker?"minute":"day")||c&&r.isAfter(c,this.timepicker?"minute":"day"))continue;var d=document.createElement("textarea");d.innerHTML=o;var u=d.value;this.ranges[u]=[r,a]}var p="<ul>";for(o in this.ranges){p+='<li data-range-key="'+o+'">'+o+"</li>"}if(this.showCustomRangeLabel){p+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"}p+="</ul>";this.container.find(".ranges").prepend(p)}if(typeof n==="function"){this.callback=n}if(!this.timePicker){this.startDate=this.startDate.startOf("day");this.endDate=this.endDate.endOf("day");this.container.find(".calendar-time").hide()}if(this.timePicker&&this.autoApply)this.autoApply=false;if(this.autoApply&&typeof t.ranges!=="object"){this.container.find(".ranges").hide()}else if(this.autoApply){this.container.find(".applyBtn, .cancelBtn").addClass("hide")}if(this.singleDatePicker){this.container.addClass("single");this.container.find(".calendar.left").addClass("single");this.container.find(".calendar.left").show();this.container.find(".calendar.right").hide();this.container.find(".daterangepicker_input input, .daterangepicker_input > i").hide();if(this.timePicker){this.container.find(".ranges ul").hide()}else{this.container.find(".ranges").hide()}}if(typeof t.ranges==="undefined"&&!this.singleDatePicker||this.alwaysShowCalendars){this.container.addClass("show-calendar")}this.container.addClass("opens"+this.opens);if(typeof t.ranges!=="undefined"&&this.opens=="right"){this.container.find(".ranges").prependTo(this.container.find(".calendar.left").parent())}this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses);if(this.applyClass.length)this.container.find(".applyBtn").addClass(this.applyClass);if(this.cancelClass.length)this.container.find(".cancelBtn").addClass(this.cancelClass);this.container.find(".applyBtn").html(this.locale.applyLabel);this.container.find(".cancelBtn").html(this.locale.cancelLabel);this.container.find(".calendar").on("click.daterangepicker",".prev",q.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",q.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",q.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",q.proxy(this.hoverDate,this)).on("mouseleave.daterangepicker","td.available",q.proxy(this.updateFormInputs,this)).on("change.daterangepicker","select.yearselect",q.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",q.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",q.proxy(this.timeChanged,this)).on("click.daterangepicker",".daterangepicker_input input",q.proxy(this.showCalendars,this)).on("focus.daterangepicker",".daterangepicker_input input",q.proxy(this.formInputsFocused,this)).on("blur.daterangepicker",".daterangepicker_input input",q.proxy(this.formInputsBlurred,this)).on("change.daterangepicker",".daterangepicker_input input",q.proxy(this.formInputsChanged,this));this.container.find(".ranges").on("click.daterangepicker","button.applyBtn",q.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",q.proxy(this.clickCancel,this)).on("click.daterangepicker","li",q.proxy(this.clickRange,this)).on("mouseenter.daterangepicker","li",q.proxy(this.hoverRange,this)).on("mouseleave.daterangepicker","li",q.proxy(this.updateFormInputs,this));if(this.element.is("input")||this.element.is("button")){this.element.on({"click.daterangepicker":q.proxy(this.show,this),"focus.daterangepicker":q.proxy(this.show,this),"keyup.daterangepicker":q.proxy(this.elementChanged,this),"keydown.daterangepicker":q.proxy(this.keydown,this)})}else{this.element.on("click.daterangepicker",q.proxy(this.toggle,this))}if(this.element.is("input")&&!this.singleDatePicker&&this.autoUpdateInput){this.element.val(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format));this.element.trigger("change")}else if(this.element.is("input")&&this.autoUpdateInput){this.element.val(this.startDate.format(this.locale.format));this.element.trigger("change")}};i.prototype={constructor:i,setStartDate:function(e){if(typeof e==="string")this.startDate=H(e,this.locale.format);if(typeof e==="object")this.startDate=H(e);if(!this.timePicker)this.startDate=this.startDate.startOf("day");if(this.timePicker&&this.timePickerIncrement)this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement);if(this.minDate&&this.startDate.isBefore(this.minDate)){this.startDate=this.minDate;if(this.timePicker&&this.timePickerIncrement)this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)}if(this.maxDate&&this.startDate.isAfter(this.maxDate)){this.startDate=this.maxDate;if(this.timePicker&&this.timePickerIncrement)this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)}if(!this.isShowing)this.updateElement();this.updateMonthsInView()},setEndDate:function(e){if(typeof e==="string")this.endDate=H(e,this.locale.format);if(typeof e==="object")this.endDate=H(e);if(!this.timePicker)this.endDate=this.endDate.endOf("day");if(this.timePicker&&this.timePickerIncrement)this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement);if(this.endDate.isBefore(this.startDate))this.endDate=this.startDate.clone();if(this.maxDate&&this.endDate.isAfter(this.maxDate))this.endDate=this.maxDate;if(this.dateLimit&&this.startDate.clone().add(this.dateLimit).isBefore(this.endDate))this.endDate=this.startDate.clone().add(this.dateLimit);this.previousRightTime=this.endDate.clone();if(!this.isShowing)this.updateElement();this.updateMonthsInView()},isInvalidDate:function(){return false},isCustomDate:function(){return false},updateView:function(){if(this.timePicker){this.renderTimePicker("left");this.renderTimePicker("right");if(!this.endDate){this.container.find(".right .calendar-time select").attr("disabled","disabled").addClass("disabled")}else{this.container.find(".right .calendar-time select").removeAttr("disabled").removeClass("disabled")}}if(this.endDate){this.container.find('input[name="daterangepicker_end"]').removeClass("active");this.container.find('input[name="daterangepicker_start"]').addClass("active")}else{this.container.find('input[name="daterangepicker_end"]').addClass("active");this.container.find('input[name="daterangepicker_start"]').removeClass("active")}this.updateMonthsInView();this.updateCalendars();this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))){return}this.leftCalendar.month=this.startDate.clone().date(2);if(!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())){this.rightCalendar.month=this.endDate.clone().date(2)}else{this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}}else{if(this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")){this.leftCalendar.month=this.startDate.clone().date(2);this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}}if(this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate){this.rightCalendar.month=this.maxDate.clone().date(2);this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month")}},updateCalendars:function(){if(this.timePicker){var e,t,n;if(this.endDate){e=parseInt(this.container.find(".left .hourselect").val(),10);t=parseInt(this.container.find(".left .minuteselect").val(),10);n=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;if(!this.timePicker24Hour){var i=this.container.find(".left .ampmselect").val();if(i==="PM"&&e<12)e+=12;if(i==="AM"&&e===12)e=0}}else{e=parseInt(this.container.find(".right .hourselect").val(),10);t=parseInt(this.container.find(".right .minuteselect").val(),10);n=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;if(!this.timePicker24Hour){var i=this.container.find(".right .ampmselect").val();if(i==="PM"&&e<12)e+=12;if(i==="AM"&&e===12)e=0}}this.leftCalendar.month.hour(e).minute(t).second(n);this.rightCalendar.month.hour(e).minute(t).second(n)}this.renderCalendar("left");this.renderCalendar("right");this.container.find(".ranges li").removeClass("active");if(this.endDate==null)return;this.calculateChosenLabel()},renderCalendar:function(e){var t=e=="left"?this.leftCalendar:this.rightCalendar;var n=t.month.month();var i=t.month.year();var r=t.month.hour();var a=t.month.minute();var o=t.month.second();var s=H([i,n]).daysInMonth();var l=H([i,n,1]);var c=H([i,n,s]);var d=H(l).subtract(1,"month").month();var u=H(l).subtract(1,"month").year();var p=H([u,d]).daysInMonth();var f=l.day();var t=[];t.firstDay=l;t.lastDay=c;for(var h=0;h<6;h++){t[h]=[]}var m=p-f+this.locale.firstDay+1;if(m>p)m-=7;if(f==this.locale.firstDay)m=p-6;var v=H([u,d,m,12,a,o]);var g,_;for(var h=0,g=0,_=0;h<42;h++,g++,v=H(v).add(24,"hour")){if(h>0&&g%7===0){g=0;_++}t[_][g]=v.clone().hour(r).minute(a).second(o);v.hour(12);if(this.minDate&&t[_][g].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&t[_][g].isBefore(this.minDate)&&e=="left"){t[_][g]=this.minDate.clone()}if(this.maxDate&&t[_][g].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&t[_][g].isAfter(this.maxDate)&&e=="right"){t[_][g]=this.maxDate.clone()}}if(e=="left"){this.leftCalendar.calendar=t}else{this.rightCalendar.calendar=t}var y=e=="left"?this.minDate:this.startDate;var b=this.maxDate;var w=e=="left"?this.startDate:this.endDate;var C=this.locale.direction=="ltr"?{left:"chevron-left",right:"chevron-right"}:{left:"chevron-right",right:"chevron-left"};var x='<table class="table-condensed">';x+="<thead>";x+="<tr>";if(this.showWeekNumbers||this.showISOWeekNumbers)x+="<th></th>";if((!y||y.isBefore(t.firstDay))&&(!this.linkedCalendars||e=="left")){x+='<th class="prev available"><i class="fa fa-'+C.left+" glyphicon glyphicon-"+C.left+'"></i></th>'}else{x+="<th></th>"}var k=this.locale.monthNames[t[1][1].month()]+t[1][1].format(" YYYY");if(this.showDropdowns){var S=t[1][1].month();var D=t[1][1].year();var T=b&&b.year()||D+5;var $=y&&y.year()||D-50;var E=D==$;var O=D==T;var A='<select class="monthselect">';for(var P=0;P<12;P++){if((!E||P>=y.month())&&(!O||P<=b.month())){A+="<option value='"+P+"'"+(P===S?" selected='selected'":"")+">"+this.locale.monthNames[P]+"</option>"}else{A+="<option value='"+P+"'"+(P===S?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[P]+"</option>"}}A+="</select>";var M='<select class="yearselect">';for(var I=$;I<=T;I++){M+='<option value="'+I+'"'+(I===D?' selected="selected"':"")+">"+I+"</option>"}M+="</select>";k=A+M}x+='<th colspan="5" class="month">'+k+"</th>";if((!b||b.isAfter(t.lastDay))&&(!this.linkedCalendars||e=="right"||this.singleDatePicker)){x+='<th class="next available"><i class="fa fa-'+C.right+" glyphicon glyphicon-"+C.right+'"></i></th>'}else{x+="<th></th>"}x+="</tr>";x+="<tr>";if(this.showWeekNumbers||this.showISOWeekNumbers)x+='<th class="week">'+this.locale.weekLabel+"</th>";q.each(this.locale.daysOfWeek,function(e,t){x+="<th>"+t+"</th>"});x+="</tr>";x+="</thead>";x+="<tbody>";if(this.endDate==null&&this.dateLimit){var N=this.startDate.clone().add(this.dateLimit).endOf("day");if(!b||N.isBefore(b)){b=N}}for(var _=0;_<6;_++){x+="<tr>";if(this.showWeekNumbers)x+='<td class="week">'+t[_][0].week()+"</td>";else if(this.showISOWeekNumbers)x+='<td class="week">'+t[_][0].isoWeek()+"</td>";for(var g=0;g<7;g++){var R=[];if(t[_][g].isSame(new Date,"day"))R.push("today");if(t[_][g].isoWeekday()>5)R.push("weekend");if(t[_][g].month()!=t[1][1].month())R.push("off");if(this.minDate&&t[_][g].isBefore(this.minDate,"day"))R.push("off","disabled");if(b&&t[_][g].isAfter(b,"day"))R.push("off","disabled");if(this.isInvalidDate(t[_][g]))R.push("off","disabled");if(t[_][g].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD"))R.push("active","start-date");if(this.endDate!=null&&t[_][g].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD"))R.push("active","end-date");if(this.endDate!=null&&t[_][g]>this.startDate&&t[_][g]<this.endDate)R.push("in-range");var F=this.isCustomDate(t[_][g]);if(F!==false){if(typeof F==="string")R.push(F);else Array.prototype.push.apply(R,F)}var L="",j=false;for(var h=0;h<R.length;h++){L+=R[h]+" ";if(R[h]=="disabled")j=true}if(!j)L+="available";x+='<td class="'+L.replace(/^\s+|\s+$/g,"")+'" data-title="'+"r"+_+"c"+g+'">'+t[_][g].date()+"</td>"}x+="</tr>"}x+="</tbody>";x+="</table>";this.container.find(".calendar."+e+" .calendar-table").html(x)},renderTimePicker:function(e){if(e=="right"&&!this.endDate)return;var t,n,i,r=this.maxDate;if(this.dateLimit&&(!this.maxDate||this.startDate.clone().add(this.dateLimit).isAfter(this.maxDate)))r=this.startDate.clone().add(this.dateLimit);if(e=="left"){n=this.startDate.clone();i=this.minDate}else if(e=="right"){n=this.endDate.clone();i=this.startDate;var a=this.container.find(".calendar.right .calendar-time div");if(!this.endDate&&a.html()!=""){n.hour(a.find(".hourselect option:selected").val()||n.hour());n.minute(a.find(".minuteselect option:selected").val()||n.minute());n.second(a.find(".secondselect option:selected").val()||n.second());if(!this.timePicker24Hour){var o=a.find(".ampmselect option:selected").val();if(o==="PM"&&n.hour()<12)n.hour(n.hour()+12);if(o==="AM"&&n.hour()===12)n.hour(0)}}if(n.isBefore(this.startDate))n=this.startDate.clone();if(r&&n.isAfter(r))n=r.clone()}t='<select class="hourselect">';var s=this.timePicker24Hour?0:1;var l=this.timePicker24Hour?23:12;for(var c=s;c<=l;c++){var d=c;if(!this.timePicker24Hour)d=n.hour()>=12?c==12?12:c+12:c==12?0:c;var u=n.clone().hour(d);var p=false;if(i&&u.minute(59).isBefore(i))p=true;if(r&&u.minute(0).isAfter(r))p=true;if(d==n.hour()&&!p){t+='<option value="'+c+'" selected="selected">'+c+"</option>"}else if(p){t+='<option value="'+c+'" disabled="disabled" class="disabled">'+c+"</option>"}else{t+='<option value="'+c+'">'+c+"</option>"}}t+="</select> ";t+=': <select class="minuteselect">';for(var c=0;c<60;c+=this.timePickerIncrement){var f=c<10?"0"+c:c;var u=n.clone().minute(c);var p=false;if(i&&u.second(59).isBefore(i))p=true;if(r&&u.second(0).isAfter(r))p=true;if(n.minute()==c&&!p){t+='<option value="'+c+'" selected="selected">'+f+"</option>"}else if(p){t+='<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>"}else{t+='<option value="'+c+'">'+f+"</option>"}}t+="</select> ";if(this.timePickerSeconds){t+=': <select class="secondselect">';for(var c=0;c<60;c++){var f=c<10?"0"+c:c;var u=n.clone().second(c);var p=false;if(i&&u.isBefore(i))p=true;if(r&&u.isAfter(r))p=true;if(n.second()==c&&!p){t+='<option value="'+c+'" selected="selected">'+f+"</option>"}else if(p){t+='<option value="'+c+'" disabled="disabled" class="disabled">'+f+"</option>"}else{t+='<option value="'+c+'">'+f+"</option>"}}t+="</select> "}if(!this.timePicker24Hour){t+='<select class="ampmselect">';var h="";var m="";if(i&&n.clone().hour(12).minute(0).second(0).isBefore(i))h=' disabled="disabled" class="disabled"';if(r&&n.clone().hour(0).minute(0).second(0).isAfter(r))m=' disabled="disabled" class="disabled"';if(n.hour()>=12){t+='<option value="AM"'+h+'>AM</option><option value="PM" selected="selected"'+m+">PM</option>"}else{t+='<option value="AM" selected="selected"'+h+'>AM</option><option value="PM"'+m+">PM</option>"}t+="</select>"}this.container.find(".calendar."+e+" .calendar-time div").html(t)},updateFormInputs:function(){if(this.container.find("input[name=daterangepicker_start]").is(":focus")||this.container.find("input[name=daterangepicker_end]").is(":focus"))return;this.container.find("input[name=daterangepicker_start]").val(this.startDate.format(this.locale.format));if(this.endDate)this.container.find("input[name=daterangepicker_end]").val(this.endDate.format(this.locale.format));if(this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))){this.container.find("button.applyBtn").removeAttr("disabled")}else{this.container.find("button.applyBtn").attr("disabled","disabled")}},move:function(){var e={top:0,left:0},t;var n=q(window).width();if(!this.parentEl.is("body")){e={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()};n=this.parentEl[0].clientWidth+this.parentEl.offset().left}if(this.drops=="up")t=this.element.offset().top-this.container.outerHeight()-e.top;else t=this.element.offset().top+this.element.outerHeight()-e.top;this.container[this.drops=="up"?"addClass":"removeClass"]("dropup");if(this.opens=="left"){this.container.css({top:t,right:n-this.element.offset().left-this.element.outerWidth(),left:"auto"});if(this.container.offset().left<0){this.container.css({right:"auto",left:9})}}else if(this.opens=="center"){this.container.css({top:t,left:this.element.offset().left-e.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"});if(this.container.offset().left<0){this.container.css({right:"auto",left:9})}}else{this.container.css({top:t,left:this.element.offset().left-e.left,right:"auto"});if(this.container.offset().left+this.container.outerWidth()>q(window).width()){this.container.css({left:"auto",right:0})}}},show:function(e){if(this.isShowing)return;this._outsideClickProxy=q.proxy(function(e){this.outsideClick(e)},this);q(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy);q(window).on("resize.daterangepicker",q.proxy(function(e){this.move(e)},this));this.oldStartDate=this.startDate.clone();this.oldEndDate=this.endDate.clone();this.previousRightTime=this.endDate.clone();this.updateView();this.container.show();this.move();this.element.trigger("show.daterangepicker",this);this.isShowing=true},hide:function(e){if(!this.isShowing)return;if(!this.endDate){this.startDate=this.oldStartDate.clone();this.endDate=this.oldEndDate.clone()}if(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))this.callback(this.startDate,this.endDate,this.chosenLabel);this.updateElement();q(document).off(".daterangepicker");q(window).off(".daterangepicker");this.container.hide();this.element.trigger("hide.daterangepicker",this);this.isShowing=false},toggle:function(e){if(this.isShowing){this.hide()}else{this.show()}},outsideClick:function(e){var t=q(e.target);if(e.type=="focusin"||t.closest(this.element).length||t.closest(this.container).length||t.closest(".calendar-table").length)return;this.hide();this.element.trigger("outsideClick.daterangepicker",this)},showCalendars:function(){this.container.addClass("show-calendar");this.move();this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar");this.element.trigger("hideCalendar.daterangepicker",this)},hoverRange:function(e){if(this.container.find("input[name=daterangepicker_start]").is(":focus")||this.container.find("input[name=daterangepicker_end]").is(":focus"))return;var t=e.target.getAttribute("data-range-key");if(t==this.locale.customRangeLabel){this.updateView()}else{var n=this.ranges[t];this.container.find("input[name=daterangepicker_start]").val(n[0].format(this.locale.format));this.container.find("input[name=daterangepicker_end]").val(n[1].format(this.locale.format))}},clickRange:function(e){var t=e.target.getAttribute("data-range-key");this.chosenLabel=t;if(t==this.locale.customRangeLabel){this.showCalendars()}else{var n=this.ranges[t];this.startDate=n[0];this.endDate=n[1];if(!this.timePicker){this.startDate.startOf("day");this.endDate.endOf("day")}if(!this.alwaysShowCalendars)this.hideCalendars();this.clickApply()}},clickPrev:function(e){var t=q(e.target).parents(".calendar");if(t.hasClass("left")){this.leftCalendar.month.subtract(1,"month");if(this.linkedCalendars)this.rightCalendar.month.subtract(1,"month")}else{this.rightCalendar.month.subtract(1,"month")}this.updateCalendars()},clickNext:function(e){var t=q(e.target).parents(".calendar");if(t.hasClass("left")){this.leftCalendar.month.add(1,"month")}else{this.rightCalendar.month.add(1,"month");if(this.linkedCalendars)this.leftCalendar.month.add(1,"month")}this.updateCalendars()},hoverDate:function(e){if(!q(e.target).hasClass("available"))return;var t=q(e.target).attr("data-title");var n=t.substr(1,1);var i=t.substr(3,1);var r=q(e.target).parents(".calendar");var s=r.hasClass("left")?this.leftCalendar.calendar[n][i]:this.rightCalendar.calendar[n][i];if(this.endDate&&!this.container.find("input[name=daterangepicker_start]").is(":focus")){this.container.find("input[name=daterangepicker_start]").val(s.format(this.locale.format))}else if(!this.endDate&&!this.container.find("input[name=daterangepicker_end]").is(":focus")){this.container.find("input[name=daterangepicker_end]").val(s.format(this.locale.format))}var l=this.leftCalendar;var c=this.rightCalendar;var d=this.startDate;if(!this.endDate){this.container.find(".calendar td").each(function(e,t){if(q(t).hasClass("week"))return;var n=q(t).attr("data-title");var i=n.substr(1,1);var r=n.substr(3,1);var a=q(t).parents(".calendar");var o=a.hasClass("left")?l.calendar[i][r]:c.calendar[i][r];if(o.isAfter(d)&&o.isBefore(s)||o.isSame(s,"day")){q(t).addClass("in-range")}else{q(t).removeClass("in-range")}})}},clickDate:function(e){if(!q(e.target).hasClass("available"))return;var t=q(e.target).attr("data-title");var n=t.substr(1,1);var i=t.substr(3,1);var r=q(e.target).parents(".calendar");var a=r.hasClass("left")?this.leftCalendar.calendar[n][i]:this.rightCalendar.calendar[n][i];if(this.endDate||a.isBefore(this.startDate,"day")){if(this.timePicker){var o=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var s=this.container.find(".left .ampmselect").val();if(s==="PM"&&o<12)o+=12;if(s==="AM"&&o===12)o=0}var l=parseInt(this.container.find(".left .minuteselect").val(),10);var c=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;a=a.clone().hour(o).minute(l).second(c)}this.endDate=null;this.setStartDate(a.clone())}else if(!this.endDate&&a.isBefore(this.startDate)){this.setEndDate(this.startDate.clone())}else{if(this.timePicker){var o=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var s=this.container.find(".right .ampmselect").val();if(s==="PM"&&o<12)o+=12;if(s==="AM"&&o===12)o=0}var l=parseInt(this.container.find(".right .minuteselect").val(),10);var c=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;a=a.clone().hour(o).minute(l).second(c)}this.setEndDate(a.clone());if(this.autoApply){this.calculateChosenLabel();this.clickApply()}}if(this.singleDatePicker){this.setEndDate(this.startDate);if(!this.timePicker)this.clickApply()}this.updateView();e.stopPropagation()},calculateChosenLabel:function(){var e=true;var t=0;for(var n in this.ranges){if(this.timePicker){if(this.startDate.isSame(this.ranges[n][0])&&this.endDate.isSame(this.ranges[n][1])){e=false;this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").html();break}}else{if(this.startDate.format("YYYY-MM-DD")==this.ranges[n][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[n][1].format("YYYY-MM-DD")){e=false;this.chosenLabel=this.container.find(".ranges li:eq("+t+")").addClass("active").html();break}}t++}if(e&&this.showCustomRangeLabel){this.chosenLabel=this.container.find(".ranges li:last").addClass("active").html();this.showCalendars()}},clickApply:function(e){this.hide();this.element.trigger("apply.daterangepicker",this)},clickCancel:function(e){this.startDate=this.oldStartDate;this.endDate=this.oldEndDate;this.hide();this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(e){var t=q(e.target).closest(".calendar").hasClass("left"),n=t?"left":"right",i=this.container.find(".calendar."+n);var r=parseInt(i.find(".monthselect").val(),10);var a=i.find(".yearselect").val();if(!t){if(a<this.startDate.year()||a==this.startDate.year()&&r<this.startDate.month()){r=this.startDate.month();a=this.startDate.year()}}if(this.minDate){if(a<this.minDate.year()||a==this.minDate.year()&&r<this.minDate.month()){r=this.minDate.month();a=this.minDate.year()}}if(this.maxDate){if(a>this.maxDate.year()||a==this.maxDate.year()&&r>this.maxDate.month()){r=this.maxDate.month();a=this.maxDate.year()}}if(t){this.leftCalendar.month.month(r).year(a);if(this.linkedCalendars)this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month")}else{this.rightCalendar.month.month(r).year(a);if(this.linkedCalendars)this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month")}this.updateCalendars()},timeChanged:function(e){var t=q(e.target).closest(".calendar"),n=t.hasClass("left");var i=parseInt(t.find(".hourselect").val(),10);var r=parseInt(t.find(".minuteselect").val(),10);var a=this.timePickerSeconds?parseInt(t.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var o=t.find(".ampmselect").val();if(o==="PM"&&i<12)i+=12;if(o==="AM"&&i===12)i=0}if(n){var s=this.startDate.clone();s.hour(i);s.minute(r);s.second(a);this.setStartDate(s);if(this.singleDatePicker){this.endDate=this.startDate.clone()}else if(this.endDate&&this.endDate.format("YYYY-MM-DD")==s.format("YYYY-MM-DD")&&this.endDate.isBefore(s)){this.setEndDate(s.clone())}}else if(this.endDate){var l=this.endDate.clone();l.hour(i);l.minute(r);l.second(a);this.setEndDate(l)}this.updateCalendars();this.updateFormInputs();this.renderTimePicker("left");this.renderTimePicker("right")},formInputsChanged:function(e){var t=q(e.target).closest(".calendar").hasClass("right");var n=H(this.container.find('input[name="daterangepicker_start"]').val(),this.locale.format);var i=H(this.container.find('input[name="daterangepicker_end"]').val(),this.locale.format);if(n.isValid()&&i.isValid()){if(t&&i.isBefore(n))n=i.clone();this.setStartDate(n);this.setEndDate(i);if(t){this.container.find('input[name="daterangepicker_start"]').val(this.startDate.format(this.locale.format))}else{this.container.find('input[name="daterangepicker_end"]').val(this.endDate.format(this.locale.format))}}this.updateView()},formInputsFocused:function(e){this.container.find('input[name="daterangepicker_start"], input[name="daterangepicker_end"]').removeClass("active");q(e.target).addClass("active");var t=q(e.target).closest(".calendar").hasClass("right");if(t){this.endDate=null;this.setStartDate(this.startDate.clone());this.updateView()}},formInputsBlurred:function(e){if(!this.endDate){var t=this.container.find('input[name="daterangepicker_end"]').val();var n=H(t,this.locale.format);if(n.isValid()){this.setEndDate(n);this.updateView()}}},elementChanged:function(){if(!this.element.is("input"))return;if(!this.element.val().length)return;if(this.element.val().length<this.locale.format.length)return;var e=this.element.val().split(this.locale.separator),t=null,n=null;if(e.length===2){t=H(e[0],this.locale.format);n=H(e[1],this.locale.format)}if(this.singleDatePicker||t===null||n===null){t=H(this.element.val(),this.locale.format);n=t}if(!t.isValid()||!n.isValid())return;this.setStartDate(t);this.setEndDate(n);this.updateView()},keydown:function(e){if(e.keyCode===9||e.keyCode===13){this.hide()}},updateElement:function(){if(this.element.is("input")&&!this.singleDatePicker&&this.autoUpdateInput){this.element.val(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format));this.element.trigger("change")}else if(this.element.is("input")&&this.autoUpdateInput){this.element.val(this.startDate.format(this.locale.format));this.element.trigger("change")}},remove:function(){this.container.remove();this.element.off(".daterangepicker");this.element.removeData()}};q.fn.daterangepicker=function(t,n){this.each(function(){var e=q(this);if(e.data("daterangepicker"))e.data("daterangepicker").remove();e.data("daterangepicker",new i(e,t,n))});return this};return i});!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("jquery")):"function"==typeof define&&define.amd?define(["moment","jquery"],t):"object"==typeof exports?exports.FullCalendar=t(require("moment"),require("jquery")):e.FullCalendar=t(e.moment,e.jQuery)}("undefined"!=typeof self?self:this,function(n,i){return function(n){function i(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var r={};return i.m=n,i.c=r,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=232)}([function(e,t){e.exports=n},,function(e,t){var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};t.__extends=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}},function(e,t){e.exports=i},function(e,a,t){function n(e,t){t.left&&e.css({"border-left-width":1,"margin-left":t.left-1}),t.right&&e.css({"border-right-width":1,"margin-right":t.right-1})}function i(e){e.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function r(){fe("body").addClass("fc-not-allowed")}function o(){fe("body").removeClass("fc-not-allowed")}function s(r,e,t){var o=Math.floor(e/r.length),s=Math.floor(e-o*(r.length-1)),l=[],c=[],d=[],a=0;u(r),r.each(function(e,t){var n=e===r.length-1?s:o,i=fe(t).outerHeight(!0);i<n?(l.push(t),c.push(i),d.push(fe(t).height())):a+=i}),t&&(e-=a,o=Math.floor(e/l.length),s=Math.floor(e-o*(l.length-1))),fe(l).each(function(e,t){var n=e===l.length-1?s:o,i=c[e],r=d[e],a=n-(i-r);i<n&&fe(t).height(a)})}function u(e){e.height("")}function l(e){var i=0;return e.find("> *").each(function(e,t){var n=fe(t).outerWidth();n>i&&(i=n)}),i++,e.width(i),i}function c(e,t){var n,i=e.add(t);return i.css({position:"relative",left:-1}),n=e.outerHeight()-t.outerHeight(),i.css({position:"",left:""}),n}function d(e){var t=e.css("position"),n=e.parents().filter(function(){var e=fe(this);return/(auto|scroll)/.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&n.length?n:fe(e[0].ownerDocument||document)}function p(e,t){var n=e.offset(),i=n.left-(t?t.left:0),r=n.top-(t?t.top:0);return{left:i,right:i+e.outerWidth(),top:r,bottom:r+e.outerHeight()}}function f(e,t){var n=e.offset(),i=m(e),r=n.left+y(e,"border-left-width")+i.left-(t?t.left:0),a=n.top+y(e,"border-top-width")+i.top-(t?t.top:0);return{left:r,right:r+e[0].clientWidth,top:a,bottom:a+e[0].clientHeight}}function h(e,t){var n=e.offset(),i=n.left+y(e,"border-left-width")+y(e,"padding-left")-(t?t.left:0),r=n.top+y(e,"border-top-width")+y(e,"padding-top")-(t?t.top:0);return{left:i,right:i+e.width(),top:r,bottom:r+e.height()}}function m(e){var t,n=e[0].offsetWidth-e[0].clientWidth,i=e[0].offsetHeight-e[0].clientHeight;return n=v(n),i=v(i),t={left:0,right:0,top:0,bottom:i},g()&&"rtl"===e.css("direction")?t.left=n:t.right=n,t}function v(e){return e=Math.max(0,e),e=Math.round(e)}function g(){return null===he&&(he=_()),he}function _(){var e=fe("<div><div/></div>").css({position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}).appendTo("body"),t=e.children(),n=t.offset().left>e.offset().left;return e.remove(),n}function y(e,t){return parseFloat(e.css(t))||0}function b(e){return 1===e.which&&!e.ctrlKey}function w(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageX:e.pageX}function C(e){var t=e.originalEvent.touches;return t&&t.length?t[0].pageY:e.pageY}function x(e){return/^touch/.test(e.type)}function k(e){e.addClass("fc-unselectable").on("selectstart",D)}function S(e){e.removeClass("fc-unselectable").off("selectstart",D)}function D(e){e.preventDefault()}function T(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function $(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function E(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function O(e,t){return{left:e.left-t.left,top:e.top-t.top}}function A(e){var t,n,i=[],r=[];for("string"==typeof e?r=e.split(/\s*,\s*/):"function"==typeof e?r=[e]:fe.isArray(e)&&(r=e),t=0;t<r.length;t++)n=r[t],"string"==typeof n?i.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&i.push({func:n});return i}function P(e,t,n){var i,r;for(i=0;i<n.length;i++)if(r=M(e,t,n[i]))return r;return 0}function M(e,t,n){return n.func?n.func(e,t):I(e[n.field],t[n.field])*(n.order||1)}function I(e,t){return e||t?null==t?-1:null==e?1:"string"===fe.type(e)||"string"===fe.type(t)?String(e).localeCompare(String(t)):e-t:0}function N(e,t){return pe.duration({days:e.clone().stripTime().diff(t.clone().stripTime(),"days"),ms:e.time()-t.time()})}function R(e,t){return pe.duration({days:e.clone().stripTime().diff(t.clone().stripTime(),"days")})}function F(e,t,n){return pe.duration(Math.round(e.diff(t,n,!0)),n)}function L(e,t){var n,i,r;for(n=0;n<a.unitsDesc.length&&(i=a.unitsDesc[n],!((r=H(i,e,t))>=1&&ce(r)));n++);return i}function j(e,t){var n=L(e);return"week"===n&&"object"==typeof t&&t.days&&(n="day"),n}function H(e,t,n){return null!=n?n.diff(t,e,!0):pe.isDuration(t)?t.as(e):t.end.diff(t.start,e,!0)}function q(e,t,n){var i;return Y(n)?(t-e)/n:(i=n.asMonths(),Math.abs(i)>=1&&ce(i)?t.diff(e,"months",!0)/i:t.diff(e,"days",!0)/n.asDays())}function B(e,t){var n,i;return Y(e)||Y(t)?e/t:(n=e.asMonths(),i=t.asMonths(),Math.abs(n)>=1&&ce(n)&&Math.abs(i)>=1&&ce(i)?n/i:e.asDays()/t.asDays())}function z(e,t){var n;return Y(e)?pe.duration(e*t):(n=e.asMonths(),Math.abs(n)>=1&&ce(n)?pe.duration({months:n*t}):pe.duration({days:e.asDays()*t}))}function Y(e){return Boolean(e.hours()||e.minutes()||e.seconds()||e.milliseconds())}function U(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function W(e){return"string"==typeof e&&/^\d+\:\d+(?:\:\d+\.?(?:\d{3})?)?$/.test(e)}function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=window.console;if(n&&n.log)return n.log.apply(n,e)}function J(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=window.console;return n&&n.warn?n.warn.apply(n,e):V.apply(null,e)}function G(e,t){var n,i,r,a,o,s,l={};if(t)for(n=0;n<t.length;n++){for(i=t[n],r=[],a=e.length-1;a>=0;a--)if("object"==typeof(o=e[a][i]))r.unshift(o);else if(void 0!==o){l[i]=o;break}r.length&&(l[i]=G(r))}for(n=e.length-1;n>=0;n--){s=e[n];for(i in s)i in l||(l[i]=s[i])}return l}function K(e,t){for(var n in e)X(e,n)&&(t[n]=e[n])}function X(e,t){return me.call(e,t)}function Q(e,t,n){if(fe.isFunction(e)&&(e=[e]),e){var i=void 0,r=void 0;for(i=0;i<e.length;i++)r=e[i].apply(t,n)||r;return r}}function Z(e,t){for(var n=0,i=0;i<e.length;)t(e[i])?(e.splice(i,1),n++):i++;return n}function ee(e,t){for(var n=0,i=0;i<e.length;)e[i]===t?(e.splice(i,1),n++):i++;return n}function te(e,t){var n,i=e.length;if(null==i||i!==t.length)return!1;for(n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}function ne(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;n++)if(void 0!==e[n])return e[n]}function ie(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function re(e){return e.replace(/&.*?;/g,"")}function ae(e){var n=[];return fe.each(e,function(e,t){null!=t&&n.push(e+":"+t)}),n.join(";")}function oe(e){var n=[];return fe.each(e,function(e,t){null!=t&&n.push(e+'="'+ie(t)+'"')}),n.join(" ")}function se(e){return e.charAt(0).toUpperCase()+e.slice(1)}function le(e,t){return e-t}function ce(e){return e%1==0}function de(e,t){var n=e[t];return function(){return n.apply(e,arguments)}}function ue(t,n,i){void 0===i&&(i=!1);var r,a,o,s,l,c=function(){var e=+new Date-s;e<n?r=setTimeout(c,n-e):(r=null,i||(l=t.apply(o,a),o=a=null))};return function(){o=this,a=arguments,s=+new Date;var e=i&&!r;return r||(r=setTimeout(c,n)),e&&(l=t.apply(o,a),o=a=null),l}}Object.defineProperty(a,"__esModule",{value:!0});var pe=t(0),fe=t(3);a.compensateScroll=n,a.uncompensateScroll=i,a.disableCursor=r,a.enableCursor=o,a.distributeHeight=s,a.undistributeHeight=u,a.matchCellWidths=l,a.subtractInnerElHeight=c,a.getScrollParent=d,a.getOuterRect=p,a.getClientRect=f,a.getContentRect=h,a.getScrollbarWidths=m;var he=null;a.isPrimaryMouseButton=b,a.getEvX=w,a.getEvY=C,a.getEvIsTouch=x,a.preventSelection=k,a.allowSelection=S,a.preventDefault=D,a.intersectRects=T,a.constrainPoint=$,a.getRectCenter=E,a.diffPoints=O,a.parseFieldSpecs=A,a.compareByFieldSpecs=P,a.compareByFieldSpec=M,a.flexibleCompare=I,a.dayIDs=["sun","mon","tue","wed","thu","fri","sat"],a.unitsDesc=["year","month","week","day","hour","minute","second","millisecond"],a.diffDayTime=N,a.diffDay=R,a.diffByUnit=F,a.computeGreatestUnit=L,a.computeDurationGreatestUnit=j,a.divideRangeByDuration=q,a.divideDurationByDuration=B,a.multiplyDuration=z,a.durationHasTime=Y,a.isNativeDate=U,a.isTimeString=W,a.log=V,a.warn=J;var me={}.hasOwnProperty;a.mergeProps=G,a.copyOwnProps=K,a.hasOwnProp=X,a.applyAll=Q,a.removeMatching=Z,a.removeExact=ee,a.isArraysEqual=te,a.firstDefined=ne,a.htmlEscape=ie,a.stripHtmlEntities=re,a.cssToStr=ae,a.attrsToStr=oe,a.capitaliseFirstLetter=se,a.compareNumbers=le,a.isInt=ce,a.proxy=de,a.debounce=ue},function(e,t,n){function s(e,t){return e.startMs-t.startMs}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(10),a=function(){function o(e,t){this.isStart=!0,this.isEnd=!0,i.isMoment(e)&&(e=e.clone().stripZone()),i.isMoment(t)&&(t=t.clone().stripZone()),e&&(this.startMs=e.valueOf()),t&&(this.endMs=t.valueOf())}return o.invertRanges=function(e,t){var n,i,r=[],a=t.startMs;for(e.sort(s),n=0;n<e.length;n++)i=e[n],i.startMs>a&&r.push(new o(a,i.startMs)),i.endMs>a&&(a=i.endMs);return a<t.endMs&&r.push(new o(a,t.endMs)),r},o.prototype.intersect=function(e){var t=this.startMs,n=this.endMs,i=null;return null!=e.startMs&&(t=null==t?e.startMs:Math.max(t,e.startMs)),null!=e.endMs&&(n=null==n?e.endMs:Math.min(n,e.endMs)),(null==t||null==n||t<n)&&(i=new o(t,n),i.isStart=this.isStart&&t===this.startMs,i.isEnd=this.isEnd&&n===this.endMs),i},o.prototype.intersectsWith=function(e){return(null==this.endMs||null==e.startMs||this.endMs>e.startMs)&&(null==this.startMs||null==e.endMs||this.startMs<e.endMs)},o.prototype.containsRange=function(e){return(null==this.startMs||null!=e.startMs&&e.startMs>=this.startMs)&&(null==this.endMs||null!=e.endMs&&e.endMs<=this.endMs)},o.prototype.containsDate=function(e){var t=e.valueOf();return(null==this.startMs||t>=this.startMs)&&(null==this.endMs||t<this.endMs)},o.prototype.constrainDate=function(e){var t=e.valueOf();return null!=this.startMs&&t<this.startMs&&(t=this.startMs),null!=this.endMs&&t>=this.endMs&&(t=this.endMs-1),t},o.prototype.equals=function(e){return this.startMs===e.startMs&&this.endMs===e.endMs},o.prototype.clone=function(){var e=new o(this.startMs,this.endMs);return e.isStart=this.isStart,e.isEnd=this.isEnd,e},o.prototype.getStart=function(){return null!=this.startMs?r.default.utc(this.startMs).stripZone():null},o.prototype.getEnd=function(){return null!=this.endMs?r.default.utc(this.endMs).stripZone():null},o.prototype.as=function(e){return i.utc(this.endMs).diff(i.utc(this.startMs),e,!0)},o}();t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(3),o=n(204),i=n(32),s=n(49),l=function(n){function i(e){var t=n.call(this)||this;return t.calendar=e,t.className=[],t.uid=String(i.uuid++),t}return r.__extends(i,n),i.parse=function(e,t){var n=new this(t);return!("object"!=typeof e||!n.applyProps(e))&&n},i.normalizeId=function(e){return e?String(e):null},i.prototype.fetch=function(e,t,n){},i.prototype.removeEventDefsById=function(e){},i.prototype.removeAllEventDefs=function(){},i.prototype.getPrimitive=function(e){},i.prototype.parseEventDefs=function(e){var t,n,i=[];for(t=0;t<e.length;t++)(n=this.parseEventDef(e[t]))&&i.push(n);return i},i.prototype.parseEventDef=function(e){var t=this.calendar.opt("eventDataTransform"),n=this.eventDataTransform;return t&&(e=t(e)),n&&(e=n(e)),s.default.parse(e,this)},i.prototype.applyManualStandardProps=function(e){return null!=e.id&&(this.id=i.normalizeId(e.id)),a.isArray(e.className)?this.className=e.className:"string"==typeof e.className&&(this.className=e.className.split(/\s+/)),!0},i.uuid=0,i.defineStandardProps=o.default.defineStandardProps,i.copyVerbatimStandardProps=o.default.copyVerbatimStandardProps,i}(i.default);t.default=l,o.default.mixInto(l),l.defineStandardProps({id:!1,className:!1,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0,editable:!0,startEditable:!0,durationEditable:!0,rendering:!0,overlap:!0,constraint:!0,allDayDefault:!0,eventDataTransform:!0})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),a=n(14),o=0,s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.listenTo=function(e,t,n){if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&this.listenTo(e,i,t[i]);else"string"==typeof t&&e.on(t+"."+this.getListenerNamespace(),r.proxy(n,this))},t.prototype.stopListeningTo=function(e,t){e.off((t||"")+"."+this.getListenerNamespace())},t.prototype.getListenerNamespace=function(){return null==this.listenerId&&(this.listenerId=o++),"_listener"+this.listenerId},t}(a.default);t.default=s},,,function(e,t,n){function i(e,t){return o.format.call(e,t)}function r(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i,r,a,o,s=e[0],l=1===e.length&&"string"==typeof s;return c.isMoment(s)||u.isNativeDate(s)||void 0===s?o=c.apply(null,e):(i=!1,r=!1,l?p.test(s)?(s+="-01",e=[s],i=!0,r=!0):(a=f.exec(s))&&(i=!a[5],r=!0):d.isArray(s)&&(r=!0),o=t||i?c.utc.apply(c,e):c.apply(null,e),i?(o._ambigTime=!0,o._ambigZone=!0):n&&(r?o._ambigZone=!0:l&&o.utcOffset(s))),o._fullCalendar=!0,o}Object.defineProperty(t,"__esModule",{value:!0});var c=n(0),d=n(3),u=n(4),p=/^\s*\d{4}-\d\d$/,f=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/,a=c.fn;t.newMomentProto=a;var o=d.extend({},a);t.oldMomentProto=o;var s=c.momentProperties;s.push("_fullCalendar"),s.push("_ambigTime"),s.push("_ambigZone"),t.oldMomentFormat=i;var l=function(){return r(arguments)};t.default=l,l.utc=function(){var e=r(arguments,!0);return e.hasTime()&&e.utc(),e},l.parseZone=function(){return r(arguments,!0,!0)},a.week=a.weeks=function(e){var t=this._locale._fullCalendar_weekCalc;return null==e&&"function"==typeof t?t(this):"ISO"===t?o.isoWeek.apply(this,arguments):o.week.apply(this,arguments)},a.time=function(e){if(!this._fullCalendar)return o.time.apply(this,arguments);if(null==e)return c.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});this._ambigTime=!1,c.isDuration(e)||c.isMoment(e)||(e=c.duration(e));var t=0;return c.isDuration(e)&&(t=24*Math.floor(e.asDays())),this.hours(t+e.hours()).minutes(e.minutes()).seconds(e.seconds()).milliseconds(e.milliseconds())},a.stripTime=function(){return this._ambigTime||(this.utc(!0),this.set({hours:0,minutes:0,seconds:0,ms:0}),this._ambigTime=!0,this._ambigZone=!0),this},a.hasTime=function(){return!this._ambigTime},a.stripZone=function(){var e;return this._ambigZone||(e=this._ambigTime,this.utc(!0),this._ambigTime=e||!1,this._ambigZone=!0),this},a.hasZone=function(){return!this._ambigZone},a.local=function(e){return o.local.call(this,this._ambigZone||e),this._ambigTime=!1,this._ambigZone=!1,this},a.utc=function(e){return o.utc.call(this,e),this._ambigTime=!1,this._ambigZone=!1,this},a.utcOffset=function(e){return null!=e&&(this._ambigTime=!1,this._ambigZone=!1),o.utcOffset.apply(this,arguments)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),a=n(14),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.on=function(e,t){return r(this).on(e,this._prepareIntercept(t)),this},t.prototype.one=function(e,t){return r(this).one(e,this._prepareIntercept(t)),this},t.prototype._prepareIntercept=function(n){var e=function(e,t){return n.apply(t.context||this,t.args||[])};return n.guid||(n.guid=r.guid++),e.guid=n.guid,e},t.prototype.off=function(e,t){return r(this).off(e,t),this},t.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return r(this).triggerHandler(e,{args:t}),this},t.prototype.triggerWith=function(e,t,n){return r(this).triggerHandler(e,{context:t,args:n}),this},t.prototype.hasHandlers=function(e){var t=r._data(this,"events");return t&&t[e]&&t[e].length>0},t}(a.default);t.default=o},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.isAllDay=!1,this.unzonedRange=e,this.isAllDay=t}return e.prototype.toLegacy=function(e){return{start:e.msToMoment(this.unzonedRange.startMs,this.isAllDay),end:e.msToMoment(this.unzonedRange.endMs,this.isAllDay)}},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(33),a=n(205),o=n(17),s=function(i){function e(){return null!==i&&i.apply(this,arguments)||this}return r.__extends(e,i),e.prototype.buildInstances=function(){return[this.buildInstance()]},e.prototype.buildInstance=function(){return new a.default(this,this.dateProfile)},e.prototype.isAllDay=function(){return this.dateProfile.isAllDay()},e.prototype.clone=function(){var e=i.prototype.clone.call(this);return e.dateProfile=this.dateProfile,e},e.prototype.rezone=function(){var e=this.source.calendar,t=this.dateProfile;this.dateProfile=new o.default(e.moment(t.start),t.end?e.moment(t.end):null,e)},e.prototype.applyManualStandardProps=function(e){var t=i.prototype.applyManualStandardProps.call(this,e),n=o.default.parse(e,this.source);return!!n&&(this.dateProfile=n,null!=e.date&&(this.miscProps.date=e.date),t)},e}(i.default);t.default=s,s.defineStandardProps({start:!1,date:!1,end:!1,allDay:!1})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.mixInto=function(t){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(e){t.prototype[e]||(t.prototype[e]=n.prototype[e])})},e.mixOver=function(t){var n=this;Object.getOwnPropertyNames(this.prototype).forEach(function(e){t.prototype[e]=n.prototype[e]})},e}();t.default=n},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.view=e._getView(),this.component=e}return e.prototype.opt=function(e){return this.view.opt(e)},e.prototype.end=function(){},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.version="3.8.0",t.internalApiVersion=12;var i=n(4);t.applyAll=i.applyAll,t.debounce=i.debounce,t.isInt=i.isInt,t.htmlEscape=i.htmlEscape,t.cssToStr=i.cssToStr,t.proxy=i.proxy,t.capitaliseFirstLetter=i.capitaliseFirstLetter,t.getOuterRect=i.getOuterRect,t.getClientRect=i.getClientRect,t.getContentRect=i.getContentRect,t.getScrollbarWidths=i.getScrollbarWidths,t.preventDefault=i.preventDefault,t.parseFieldSpecs=i.parseFieldSpecs,t.compareByFieldSpecs=i.compareByFieldSpecs,t.compareByFieldSpec=i.compareByFieldSpec,t.flexibleCompare=i.flexibleCompare,t.computeGreatestUnit=i.computeGreatestUnit,t.divideRangeByDuration=i.divideRangeByDuration,t.divideDurationByDuration=i.divideDurationByDuration,t.multiplyDuration=i.multiplyDuration,t.durationHasTime=i.durationHasTime,t.log=i.log,t.warn=i.warn,t.removeExact=i.removeExact,t.intersectRects=i.intersectRects;var r=n(47);t.formatDate=r.formatDate,t.formatRange=r.formatRange,t.queryMostGranularFormatUnit=r.queryMostGranularFormatUnit;var a=n(30);t.datepickerLocale=a.datepickerLocale,t.locale=a.locale;var o=n(10);t.moment=o.default;var s=n(11);t.EmitterMixin=s.default;var l=n(7);t.ListenerMixin=l.default;var c=n(48);t.Model=c.default;var d=n(203);t.Constraints=d.default;var u=n(5);t.UnzonedRange=u.default;var p=n(12);t.ComponentFootprint=p.default;var f=n(208);t.BusinessHourGenerator=f.default;var h=n(33);t.EventDef=h.default;var m=n(36);t.EventDefMutation=m.default;var v=n(37);t.EventSourceParser=v.default;var g=n(6);t.EventSource=g.default;var _=n(51);t.defineThemeSystem=_.defineThemeSystem;var y=n(18);t.EventInstanceGroup=y.default;var b=n(52);t.ArrayEventSource=b.default;var w=n(211);t.FuncEventSource=w.default;var C=n(212);t.JsonFeedEventSource=C.default;var x=n(35);t.EventFootprint=x.default;var k=n(32);t.Class=k.default;var S=n(14);t.Mixin=S.default;var D=n(53);t.CoordCache=D.default;var T=n(54);t.DragListener=T.default;var $=n(19);t.Promise=$.default;var E=n(213);t.TaskQueue=E.default;var O=n(214);t.RenderQueue=O.default;var A=n(39);t.Scroller=A.default;var P=n(38);t.Theme=P.default;var M=n(215);t.DateComponent=M.default;var I=n(40);t.InteractiveDateComponent=I.default;var N=n(216);t.Calendar=N.default;var R=n(41);t.View=R.default;var F=n(21);t.defineView=F.defineView,t.getViewConfig=F.getViewConfig;var L=n(55);t.DayTableMixin=L.default;var j=n(56);t.BusinessHourRenderer=j.default;var H=n(42);t.EventRenderer=H.default;var q=n(57);t.FillRenderer=q.default;var B=n(58);t.HelperRenderer=B.default;var z=n(218);t.ExternalDropping=z.default;var Y=n(219);t.EventResizing=Y.default;var U=n(59);t.EventPointing=U.default;var W=n(220);t.EventDragging=W.default;var V=n(221);t.DateSelecting=V.default;var J=n(60);t.StandardInteractionsMixin=J.default;var G=n(222);t.AgendaView=G.default;var K=n(223);t.TimeGrid=K.default;var X=n(61);t.DayGrid=X.default;var Q=n(62);t.BasicView=Q.default;var Z=n(225);t.MonthView=Z.default;var ee=n(226);t.ListView=ee.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=function(){function c(e,t,n){this.start=e,this.end=t||null,this.unzonedRange=this.buildUnzonedRange(n)}return c.parse=function(e,t){var n=e.start||e.date,i=e.end;if(!n)return!1;var r=t.calendar,a=r.moment(n),o=i?r.moment(i):null,s=e.allDay,l=r.opt("forceEventDuration");return!!a.isValid()&&(!o||o.isValid()&&o.isAfter(a)||(o=null),null==s&&null==(s=t.allDayDefault)&&(s=r.opt("allDayDefault")),!0===s?(a.stripTime(),o&&o.stripTime()):!1===s&&(a.hasTime()||a.time(0),o&&!o.hasTime()&&o.time(0)),!o&&l&&(o=r.getDefaultEventEnd(!a.hasTime(),a)),new c(a,o,r))},c.isStandardProp=function(e){return"start"===e||"date"===e||"end"===e||"allDay"===e},c.prototype.isAllDay=function(){return!(this.start.hasTime()||this.end&&this.end.hasTime())},c.prototype.buildUnzonedRange=function(e){var t=this.start.clone().stripZone().valueOf(),n=this.getEnd(e).stripZone().valueOf();return new i.default(t,n)},c.prototype.getEnd=function(e){return this.end?this.end.clone():e.getDefaultEventEnd(this.isAllDay(),this.start)},c}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(34),o=n(207),a=function(){function e(e){this.eventInstances=e||[]}return e.prototype.getAllEventRanges=function(e){return e?this.sliceNormalRenderRanges(e):this.eventInstances.map(r.eventInstanceToEventRange)},e.prototype.sliceRenderRanges=function(e){return this.isInverse()?this.sliceInverseRenderRanges(e):this.sliceNormalRenderRanges(e)},e.prototype.sliceNormalRenderRanges=function(e){var t,n,i,r=this.eventInstances,a=[];for(t=0;t<r.length;t++)n=r[t],(i=n.dateProfile.unzonedRange.intersect(e))&&a.push(new o.default(i,n.def,n));return a},e.prototype.sliceInverseRenderRanges=function(e){var t=this.eventInstances.map(r.eventInstanceToUnzonedRange),n=this.getEventDef();return t=i.default.invertRanges(t,e),t.map(function(e){return new o.default(e,n)})},e.prototype.isInverse=function(){return this.getEventDef().hasInverseRendering()},e.prototype.getEventDef=function(){return this.explicitEventDef||this.eventInstances[0].def},e}();t.default=a},function(e,t,n){function i(t,n){t.then=function(e){return"function"==typeof e?o.resolve(e(n)):t}}function r(n){n.then=function(e,t){return"function"==typeof t&&t(),n}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),o={construct:function(e){var t=a.Deferred(),n=t.promise();return"function"==typeof e&&e(function(e){t.resolve(e),i(n,e)},function(){t.reject(),r(n)}),n},resolve:function(e){var t=a.Deferred().resolve(e),n=t.promise();return i(n,e),n},reject:function(){var e=a.Deferred().reject(),t=e.promise();return r(t),t}};t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(16),a=n(11),o=n(7);r.touchMouseIgnoreWait=500;var s=null,l=0,c=function(){function e(){this.isTouching=!1,this.mouseIgnoreDepth=0}return e.get=function(){return s||(s=new e,s.bind()),s},e.needed=function(){e.get(),l++},e.unneeded=function(){--l||(s.unbind(),s=null)},e.prototype.bind=function(){var t=this;this.listenTo(i(document),{touchstart:this.handleTouchStart,touchcancel:this.handleTouchCancel,touchend:this.handleTouchEnd,mousedown:this.handleMouseDown,mousemove:this.handleMouseMove,mouseup:this.handleMouseUp,click:this.handleClick,selectstart:this.handleSelectStart,contextmenu:this.handleContextMenu}),window.addEventListener("touchmove",this.handleTouchMoveProxy=function(e){t.handleTouchMove(i.Event(e))},{passive:!1}),window.addEventListener("scroll",this.handleScrollProxy=function(e){t.handleScroll(i.Event(e))},!0)},e.prototype.unbind=function(){this.stopListeningTo(i(document)),window.removeEventListener("touchmove",this.handleTouchMoveProxy),window.removeEventListener("scroll",this.handleScrollProxy,!0)},e.prototype.handleTouchStart=function(e){this.stopTouch(e,!0),this.isTouching=!0,this.trigger("touchstart",e)},e.prototype.handleTouchMove=function(e){this.isTouching&&this.trigger("touchmove",e)},e.prototype.handleTouchCancel=function(e){this.isTouching&&(this.trigger("touchcancel",e),this.stopTouch(e))},e.prototype.handleTouchEnd=function(e){this.stopTouch(e)},e.prototype.handleMouseDown=function(e){this.shouldIgnoreMouse()||this.trigger("mousedown",e)},e.prototype.handleMouseMove=function(e){this.shouldIgnoreMouse()||this.trigger("mousemove",e)},e.prototype.handleMouseUp=function(e){this.shouldIgnoreMouse()||this.trigger("mouseup",e)},e.prototype.handleClick=function(e){this.shouldIgnoreMouse()||this.trigger("click",e)},e.prototype.handleSelectStart=function(e){this.trigger("selectstart",e)},e.prototype.handleContextMenu=function(e){this.trigger("contextmenu",e)},e.prototype.handleScroll=function(e){this.trigger("scroll",e)},e.prototype.stopTouch=function(e,t){void 0===t&&(t=!1),this.isTouching&&(this.isTouching=!1,this.trigger("touchend",e),t||this.startTouchMouseIgnore())},e.prototype.startTouchMouseIgnore=function(){var e=this,t=r.touchMouseIgnoreWait;t&&(this.mouseIgnoreDepth++,setTimeout(function(){e.mouseIgnoreDepth--},t))},e.prototype.shouldIgnoreMouse=function(){return this.isTouching||Boolean(this.mouseIgnoreDepth)},e}();t.default=c,o.default.mixInto(c),a.default.mixInto(c)},function(e,n,t){function i(e,t){n.viewHash[e]=t}function r(e){return n.viewHash[e]}Object.defineProperty(n,"__esModule",{value:!0});var a=t(16);n.viewHash={},a.views=n.viewHash,n.defineView=i,n.getViewConfig=r},function(e,t,n){function r(e,t){return!e&&!t||!(!e||!t)&&(e.component===t.component&&i(e,t)&&i(t,e))}function i(e,t){for(var n in e)if(!/^(component|left|right|top|bottom)$/.test(n)&&e[n]!==t[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),s=n(4),a=n(54),l=function(a){function e(e,t){var n=a.call(this,t)||this;return n.component=e,n}return o.__extends(e,a),e.prototype.handleInteractionStart=function(e){var t,n,i,r=this.subjectEl;this.component.hitsNeeded(),this.computeScrollBounds(),e?(n={left:s.getEvX(e),top:s.getEvY(e)},i=n,r&&(t=s.getOuterRect(r),i=s.constrainPoint(i,t)),this.origHit=this.queryHit(i.left,i.top),r&&this.options.subjectCenter&&(this.origHit&&(t=s.intersectRects(this.origHit,t)||t),i=s.getRectCenter(t)),this.coordAdjust=s.diffPoints(i,n)):(this.origHit=null,this.coordAdjust=null),a.prototype.handleInteractionStart.call(this,e)},e.prototype.handleDragStart=function(e){var t;a.prototype.handleDragStart.call(this,e),(t=this.queryHit(s.getEvX(e),s.getEvY(e)))&&this.handleHitOver(t)},e.prototype.handleDrag=function(e,t,n){var i;a.prototype.handleDrag.call(this,e,t,n),i=this.queryHit(s.getEvX(n),s.getEvY(n)),r(i,this.hit)||(this.hit&&this.handleHitOut(),i&&this.handleHitOver(i))},e.prototype.handleDragEnd=function(e){this.handleHitDone(),a.prototype.handleDragEnd.call(this,e)},e.prototype.handleHitOver=function(e){var t=r(e,this.origHit);this.hit=e,this.trigger("hitOver",this.hit,t,this.origHit)},e.prototype.handleHitOut=function(){this.hit&&(this.trigger("hitOut",this.hit),this.handleHitDone(),this.hit=null)},e.prototype.handleHitDone=function(){this.hit&&this.trigger("hitDone",this.hit)},e.prototype.handleInteractionEnd=function(e,t){a.prototype.handleInteractionEnd.call(this,e,t),this.origHit=null,this.hit=null,this.component.hitsNotNeeded()},e.prototype.handleScrollEnd=function(){a.prototype.handleScrollEnd.call(this),this.isDragging&&(this.component.releaseHits(),this.component.prepareHits())},e.prototype.queryHit=function(e,t){return this.coordAdjust&&(e+=this.coordAdjust.left,t+=this.coordAdjust.top),this.component.queryHit(e,t)},e}(a.default);t.default=l},,,,,,,,function(e,a,t){function n(n){s.each(h,function(e,t){null==n[e]&&(n[e]=t(n))})}function i(e,t,n){var i=a.localeOptionHash[e]||(a.localeOptionHash[e]={});i.isRTL=n.isRTL,i.weekNumberTitle=n.weekHeader,s.each(p,function(e,t){i[e]=t(n)});var r=s.datepicker;r&&(r.regional[t]=r.regional[e]=n,r.regional.en=r.regional[""],r.setDefaults(n))}function r(e,t){var n,i;n=a.localeOptionHash[e]||(a.localeOptionHash[e]={}),t&&(n=a.localeOptionHash[e]=d.mergeOptions([n,t])),i=o(e),s.each(f,function(e,t){null==n[e]&&(n[e]=t(i,n))}),d.globalDefaults.locale=e}function o(e){return l.localeData(e)||l.localeData("en")}Object.defineProperty(a,"__esModule",{value:!0});var s=t(3),l=t(0),c=t(16),d=t(31),u=t(4);a.localeOptionHash={},c.locales=a.localeOptionHash;var p={buttonText:function(e){return{prev:u.stripHtmlEntities(e.prevText),next:u.stripHtmlEntities(e.nextText),today:u.stripHtmlEntities(e.currentText)}},monthYearFormat:function(e){return e.showMonthAfterYear?"YYYY["+e.yearSuffix+"] MMMM":"MMMM YYYY["+e.yearSuffix+"]"}},f={dayOfMonthFormat:function(e,t){var n=e.longDateFormat("l");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?n+=" ddd":n="ddd "+n,n},mediumTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"a")},smallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},extraSmallTimeFormat:function(e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")},hourFormat:function(e){return e.longDateFormat("LT").replace(":mm","").replace(/(\Wmm)$/,"").replace(/\s*a$/i,"a")},noMeridiemTimeFormat:function(e){return e.longDateFormat("LT").replace(/\s*a$/i,"")}},h={smallDayDateFormat:function(e){return e.isRTL?"D dd":"dd D"},weekFormat:function(e){return e.isRTL?"w[ "+e.weekNumberTitle+"]":"["+e.weekNumberTitle+" ]w"},smallWeekFormat:function(e){return e.isRTL?"w["+e.weekNumberTitle+"]":"["+e.weekNumberTitle+"]w"}};a.populateInstanceComputableOptions=n,a.datepickerLocale=i,a.locale=r,a.getMomentLocaleData=o,r("en",d.englishDefaults)},function(e,t,n){function i(e){return r.mergeProps(e,a)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);t.globalDefaults={titleRangeSeparator:" – ",monthYearFormat:"MMMM YYYY",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",columnHeader:!0,defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",scrollTime:"06:00:00",minTime:"00:00:00",maxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,locale:null,isRTL:!1,buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day"},allDayText:"all-day",agendaEventMinHeight:0,theme:!1,dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventOrder:"title",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3},t.englishDefaults={dayPopoverFormat:"dddd, MMMM D"},t.rtlDefaults={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}};var a=["header","footer","buttonText","buttonIcons","themeButtonIcons"];t.mergeOptions=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(4),a=function(){function e(){}return e.extend=function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(this);return r.copyOwnProps(e,t.prototype),t},e.mixin=function(e){r.copyOwnProps(e,this.prototype)},e}();t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(204),a=function(){function t(e){this.source=e,this.className=[],this.miscProps={}}return t.parse=function(e,t){var n=new this(t);return!!n.applyProps(e)&&n},t.normalizeId=function(e){return String(e)},t.generateId=function(){return"_fc"+t.uuid++},t.prototype.clone=function(){var e=new this.constructor(this.source);return e.id=this.id,e.rawId=this.rawId,e.uid=this.uid,t.copyVerbatimStandardProps(this,e),e.className=this.className.slice(),e.miscProps=i.extend({},this.miscProps),e},t.prototype.hasInverseRendering=function(){return"inverse-background"===this.getRendering()},t.prototype.hasBgRendering=function(){var e=this.getRendering();return"inverse-background"===e||"background"===e},t.prototype.getRendering=function(){return null!=this.rendering?this.rendering:this.source.rendering},t.prototype.getConstraint=function(){return null!=this.constraint?this.constraint:null!=this.source.constraint?this.source.constraint:this.source.calendar.opt("eventConstraint")},t.prototype.getOverlap=function(){return null!=this.overlap?this.overlap:null!=this.source.overlap?this.source.overlap:this.source.calendar.opt("eventOverlap")},t.prototype.isStartExplicitlyEditable=function(){return null!=this.startEditable?this.startEditable:this.source.startEditable},t.prototype.isDurationExplicitlyEditable=function(){return null!=this.durationEditable?this.durationEditable:this.source.durationEditable},t.prototype.isExplicitlyEditable=function(){return null!=this.editable?this.editable:this.source.editable},t.prototype.toLegacy=function(){var e=i.extend({},this.miscProps);return e._id=this.uid,e.source=this.source,e.className=this.className.slice(),e.allDay=this.isAllDay(),null!=this.rawId&&(e.id=this.rawId),t.copyVerbatimStandardProps(this,e),e},t.prototype.applyManualStandardProps=function(e){return null!=e.id?this.id=t.normalizeId(this.rawId=e.id):this.id=t.generateId(),null!=e._id?this.uid=String(e._id):this.uid=t.generateId(),i.isArray(e.className)&&(this.className=e.className),"string"==typeof e.className&&(this.className=e.className.split(/\s+/)),!0},t.prototype.applyMiscProps=function(e){i.extend(this.miscProps,e)},t.uuid=0,t.defineStandardProps=r.default.defineStandardProps,t.copyVerbatimStandardProps=r.default.copyVerbatimStandardProps,t}();t.default=a,r.default.mixInto(a),a.defineStandardProps({_id:!1,id:!1,className:!1,source:!1,title:!0,url:!0,rendering:!0,constraint:!0,overlap:!0,editable:!0,startEditable:!0,durationEditable:!0,color:!0,backgroundColor:!0,borderColor:!0,textColor:!0})},function(e,t,n){function i(e,t){var n,i=[];for(n=0;n<e.length;n++)i.push.apply(i,e[n].buildInstances(t));return i}function r(e){return new l.default(e.dateProfile.unzonedRange,e.def,e)}function a(e){return new c.default(new d.default(e.unzonedRange,e.eventDef.isAllDay()),e.eventDef,e.eventInstance)}function o(e){return e.dateProfile.unzonedRange}function s(e){return e.componentFootprint}Object.defineProperty(t,"__esModule",{value:!0});var l=n(207),c=n(35),d=n(12);t.eventDefsToEventInstances=i,t.eventInstanceToEventRange=r,t.eventRangeToEventFootprint=a,t.eventInstanceToUnzonedRange=o,t.eventFootprintToComponentFootprint=s},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n){this.componentFootprint=e,this.eventDef=t,n&&(this.eventInstance=n)}return e.prototype.getEventLegacy=function(){return(this.eventInstance||this.eventDef).toLegacy()},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var m=n(4),v=n(17),g=n(33),_=n(50),i=n(13),r=function(){function h(){}return h.createFromRawProps=function(e,t,n){var i,r,a,o,s=e.def,l={},c={},d={},u={},p=null,f=null;for(i in t)v.default.isStandardProp(i)?l[i]=t[i]:s.isStandardProp(i)?c[i]=t[i]:s.miscProps[i]!==t[i]&&(d[i]=t[i]);return r=v.default.parse(l,s.source),r&&(a=_.default.createFromDiff(e.dateProfile,r,n)),c.id!==s.id&&(p=c.id),m.isArraysEqual(c.className,s.className)||(f=c.className),g.default.copyVerbatimStandardProps(c,u),o=new h,o.eventDefId=p,o.className=f,o.verbatimStandardProps=u,o.miscProps=d,a&&(o.dateMutation=a),o},h.prototype.mutateSingle=function(e){var t;return this.dateMutation&&(t=e.dateProfile,e.dateProfile=this.dateMutation.buildNewDateProfile(t,e.source.calendar)),null!=this.eventDefId&&(e.id=g.default.normalizeId(e.rawId=this.eventDefId)),this.className&&(e.className=this.className),this.verbatimStandardProps&&i.default.copyVerbatimStandardProps(this.verbatimStandardProps,e),this.miscProps&&e.applyMiscProps(this.miscProps),t?function(){e.dateProfile=t}:function(){}},h.prototype.setDateMutation=function(e){e&&!e.isEmpty()?this.dateMutation=e:this.dateMutation=null},h.prototype.isEmpty=function(){return!this.dateMutation},h}();t.default=r},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={sourceClasses:[],registerClass:function(e){this.sourceClasses.unshift(e)},parse:function(e,t){var n,i,r=this.sourceClasses;for(n=0;n<r.length;n++)if(i=r[n].parse(e,t))return i}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=function(){function e(e){this.optionsManager=e,this.processIconOverride()}return e.prototype.processIconOverride=function(){this.iconOverrideOption&&this.setIconOverride(this.optionsManager.get(this.iconOverrideOption))},e.prototype.setIconOverride=function(e){var t,n;if(i.isPlainObject(e)){t=i.extend({},this.iconClasses);for(n in e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e){var t=this.iconClasses[e];return t?this.baseIconClass+" "+t:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();t.default=r,r.prototype.classes={},r.prototype.iconClasses={},r.prototype.baseIconClass="",r.prototype.iconOverridePrefix=""},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),a=n(4),o=n(32),s=function(n){function e(e){var t=n.call(this)||this;return e=e||{},t.overflowX=e.overflowX||e.overflow||"auto",t.overflowY=e.overflowY||e.overflow||"auto",t}return i.__extends(e,n),e.prototype.render=function(){this.el=this.renderEl(),this.applyOverflow()},e.prototype.renderEl=function(){return this.scrollEl=r('<div class="fc-scroller"></div>')},e.prototype.clear=function(){this.setHeight("auto"),this.applyOverflow()},e.prototype.destroy=function(){this.el.remove()},e.prototype.applyOverflow=function(){this.scrollEl.css({"overflow-x":this.overflowX,"overflow-y":this.overflowY})},e.prototype.lockOverflow=function(e){var t=this.overflowX,n=this.overflowY;e=e||this.getScrollbarWidths(),"auto"===t&&(t=e.top||e.bottom||this.scrollEl[0].scrollWidth-1>this.scrollEl[0].clientWidth?"scroll":"hidden"),"auto"===n&&(n=e.left||e.right||this.scrollEl[0].scrollHeight-1>this.scrollEl[0].clientHeight?"scroll":"hidden"),this.scrollEl.css({"overflow-x":t,"overflow-y":n})},e.prototype.setHeight=function(e){this.scrollEl.height(e)},e.prototype.getScrollTop=function(){return this.scrollEl.scrollTop()},e.prototype.setScrollTop=function(e){this.scrollEl.scrollTop(e)},e.prototype.getClientWidth=function(){return this.scrollEl[0].clientWidth},e.prototype.getClientHeight=function(){return this.scrollEl[0].clientHeight},e.prototype.getScrollbarWidths=function(){return a.getScrollbarWidths(this.scrollEl)},e}(o.default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(3),o=n(4),i=n(215),s=n(20),l=function(i){function e(e,t){var n=i.call(this,e,t)||this;return n.segSelector=".fc-event-container > *",n.dateSelectingClass&&(n.dateClicking=new n.dateClickingClass(n)),n.dateSelectingClass&&(n.dateSelecting=new n.dateSelectingClass(n)),n.eventPointingClass&&(n.eventPointing=new n.eventPointingClass(n)),n.eventDraggingClass&&n.eventPointing&&(n.eventDragging=new n.eventDraggingClass(n,n.eventPointing)),n.eventResizingClass&&n.eventPointing&&(n.eventResizing=new n.eventResizingClass(n,n.eventPointing)),n.externalDroppingClass&&(n.externalDropping=new n.externalDroppingClass(n)),n}return r.__extends(e,i),e.prototype.setElement=function(e){i.prototype.setElement.call(this,e),this.dateClicking&&this.dateClicking.bindToEl(e),this.dateSelecting&&this.dateSelecting.bindToEl(e),this.bindAllSegHandlersToEl(e)},e.prototype.removeElement=function(){this.endInteractions(),i.prototype.removeElement.call(this)},e.prototype.executeEventUnrender=function(){this.endInteractions(),i.prototype.executeEventUnrender.call(this)},e.prototype.bindGlobalHandlers=function(){i.prototype.bindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.bindToDocument()},e.prototype.unbindGlobalHandlers=function(){i.prototype.unbindGlobalHandlers.call(this),this.externalDropping&&this.externalDropping.unbindFromDocument()},e.prototype.bindDateHandlerToEl=function(e,t,n){var i=this;this.el.on(t,function(e){if(!a(e.target).is(i.segSelector+","+i.segSelector+" *,.fc-more,a[data-goto]"))return n.call(i,e)})},e.prototype.bindAllSegHandlersToEl=function(t){[this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(e){e&&e.bindToEl(t)})},e.prototype.bindSegHandlerToEl=function(e,t,n){var i=this;e.on(t,this.segSelector,function(e){var t=a(e.currentTarget).data("fc-seg");if(t&&!i.shouldIgnoreEventPointing())return n.call(i,t,e)})},e.prototype.shouldIgnoreMouse=function(){return s.default.get().shouldIgnoreMouse()},e.prototype.shouldIgnoreTouch=function(){var e=this._getView();return e.isSelected||e.selectedEvent},e.prototype.shouldIgnoreEventPointing=function(){return this.eventDragging&&this.eventDragging.isDragging||this.eventResizing&&this.eventResizing.isResizing},e.prototype.canStartSelection=function(e,t){return o.getEvIsTouch(t)&&!this.canStartResize(e,t)&&(this.isEventDefDraggable(e.footprint.eventDef)||this.isEventDefResizable(e.footprint.eventDef))},e.prototype.canStartDrag=function(e,t){return!this.canStartResize(e,t)&&this.isEventDefDraggable(e.footprint.eventDef)},e.prototype.canStartResize=function(e,t){var n=this._getView(),i=e.footprint.eventDef;return(!o.getEvIsTouch(t)||n.isEventDefSelected(i))&&this.isEventDefResizable(i)&&a(t.target).is(".fc-resizer")},e.prototype.endInteractions=function(){[this.dateClicking,this.dateSelecting,this.eventPointing,this.eventDragging,this.eventResizing].forEach(function(e){e&&e.end()})},e.prototype.isEventDefDraggable=function(e){return this.isEventDefStartEditable(e)},e.prototype.isEventDefStartEditable=function(e){var t=e.isStartExplicitlyEditable();return null==t&&null==(t=this.opt("eventStartEditable"))&&(t=this.isEventDefGenerallyEditable(e)),t},e.prototype.isEventDefGenerallyEditable=function(e){var t=e.isExplicitlyEditable();return null==t&&(t=this.opt("editable")),t},e.prototype.isEventDefResizableFromStart=function(e){return this.opt("eventResizableFromStart")&&this.isEventDefResizable(e)},e.prototype.isEventDefResizableFromEnd=function(e){return this.isEventDefResizable(e)},e.prototype.isEventDefResizable=function(e){var t=e.isDurationExplicitlyEditable();return null==t&&null==(t=this.opt("eventDurationEditable"))&&(t=this.isEventDefGenerallyEditable(e)),t},e.prototype.diffDates=function(e,t){return this.largeUnit?o.diffByUnit(e,t,this.largeUnit):o.diffDayTime(e,t)},e.prototype.isEventInstanceGroupAllowed=function(e){var t,n=this._getView(),i=this.dateProfile,r=this.eventRangesToEventFootprints(e.getAllEventRanges());for(t=0;t<r.length;t++)if(!i.validUnzonedRange.containsRange(r[t].componentFootprint.unzonedRange))return!1;return n.calendar.constraints.isEventInstanceGroupAllowed(e)},e.prototype.isExternalInstanceGroupAllowed=function(e){var t,n=this._getView(),i=this.dateProfile,r=this.eventRangesToEventFootprints(e.getAllEventRanges());for(t=0;t<r.length;t++)if(!i.validUnzonedRange.containsRange(r[t].componentFootprint.unzonedRange))return!1;for(t=0;t<r.length;t++)if(!n.calendar.constraints.isSelectionFootprintAllowed(r[t].componentFootprint))return!1;return!0},e}(i.default);t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(3),s=n(0),o=n(4),l=n(214),i=n(217),c=n(40),d=n(20),u=n(5),p=function(i){function e(e,t){var n=i.call(this,null,t.options)||this;return n.batchRenderDepth=0,n.isSelected=!1,n.calendar=e,n.viewSpec=t,n.type=t.type,n.name=n.type,n.initRenderQueue(),n.initHiddenDays(),n.dateProfileGenerator=new n.dateProfileGeneratorClass(n),n.bindBaseRenderHandlers(),n.eventOrderSpecs=o.parseFieldSpecs(n.opt("eventOrder")),n.initialize&&n.initialize(),n}return r.__extends(e,i),e.prototype._getView=function(){return this},e.prototype.opt=function(e){return this.options[e]},e.prototype.initRenderQueue=function(){this.renderQueue=new l.default({event:this.opt("eventRenderWait")}),this.renderQueue.on("start",this.onRenderQueueStart.bind(this)),this.renderQueue.on("stop",this.onRenderQueueStop.bind(this)),this.on("before:change",this.startBatchRender),this.on("change",this.stopBatchRender)},e.prototype.onRenderQueueStart=function(){this.calendar.freezeContentHeight(),this.addScroll(this.queryScroll())},e.prototype.onRenderQueueStop=function(){this.calendar.updateViewSize()&&this.popScroll(),this.calendar.thawContentHeight()},e.prototype.startBatchRender=function(){this.batchRenderDepth++||this.renderQueue.pause()},e.prototype.stopBatchRender=function(){--this.batchRenderDepth||this.renderQueue.resume()},e.prototype.requestRender=function(e,t,n){this.renderQueue.queue(e,t,n)},e.prototype.whenSizeUpdated=function(e){this.renderQueue.isRunning?this.renderQueue.one("stop",e.bind(this)):e.call(this)},e.prototype.computeTitle=function(e){var t;return t=/^(year|month)$/.test(e.currentRangeUnit)?e.currentUnzonedRange:e.activeUnzonedRange,this.formatRange({start:this.calendar.msToMoment(t.startMs,e.isRangeAllDay),end:this.calendar.msToMoment(t.endMs,e.isRangeAllDay)},e.isRangeAllDay,this.opt("titleFormat")||this.computeTitleFormat(e),this.opt("titleRangeSeparator"))},e.prototype.computeTitleFormat=function(e){var t=e.currentRangeUnit;return"year"===t?"YYYY":"month"===t?this.opt("monthYearFormat"):e.currentUnzonedRange.as("days")>1?"ll":"LL"},e.prototype.setDate=function(e){var t=this.get("dateProfile"),n=this.dateProfileGenerator.build(e,void 0,!0);t&&t.activeUnzonedRange.equals(n.activeUnzonedRange)||this.set("dateProfile",n)},e.prototype.unsetDate=function(){this.unset("dateProfile")},e.prototype.fetchInitialEvents=function(e){var t=this.calendar,n=e.isRangeAllDay&&!this.usesMinMaxTime;return t.requestEvents(t.msToMoment(e.activeUnzonedRange.startMs,n),t.msToMoment(e.activeUnzonedRange.endMs,n))},e.prototype.bindEventChanges=function(){this.listenTo(this.calendar,"eventsReset",this.resetEvents)},e.prototype.unbindEventChanges=function(){this.stopListeningTo(this.calendar,"eventsReset")},e.prototype.setEvents=function(e){this.set("currentEvents",e),this.set("hasEvents",!0)},e.prototype.unsetEvents=function(){this.unset("currentEvents"),this.unset("hasEvents")},e.prototype.resetEvents=function(e){this.startBatchRender(),this.unsetEvents(),this.setEvents(e),this.stopBatchRender()},e.prototype.requestDateRender=function(e){var t=this;this.requestRender(function(){t.executeDateRender(e)},"date","init")},e.prototype.requestDateUnrender=function(){var e=this;this.requestRender(function(){e.executeDateUnrender()},"date","destroy")},e.prototype.executeDateRender=function(e){i.prototype.executeDateRender.call(this,e),this.render&&this.render(),this.trigger("datesRendered"),this.addScroll({isDateInit:!0}),this.startNowIndicator()},e.prototype.executeDateUnrender=function(){this.unselect(),this.stopNowIndicator(),this.trigger("before:datesUnrendered"),this.destroy&&this.destroy(),i.prototype.executeDateUnrender.call(this)},e.prototype.bindBaseRenderHandlers=function(){var e=this;this.on("datesRendered",function(){e.whenSizeUpdated(e.triggerViewRender)}),this.on("before:datesUnrendered",function(){e.triggerViewDestroy()})},e.prototype.triggerViewRender=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},e.prototype.triggerViewDestroy=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},e.prototype.requestEventsRender=function(e){var t=this;this.requestRender(function(){t.executeEventRender(e),t.whenSizeUpdated(t.triggerAfterEventsRendered)},"event","init")},e.prototype.requestEventsUnrender=function(){var e=this;this.requestRender(function(){e.triggerBeforeEventsDestroyed(),e.executeEventUnrender()},"event","destroy")},e.prototype.requestBusinessHoursRender=function(e){var t=this;this.requestRender(function(){t.renderBusinessHours(e)},"businessHours","init")},e.prototype.requestBusinessHoursUnrender=function(){var e=this;this.requestRender(function(){e.unrenderBusinessHours()},"businessHours","destroy")},e.prototype.bindGlobalHandlers=function(){i.prototype.bindGlobalHandlers.call(this),this.listenTo(d.default.get(),{touchstart:this.processUnselect,mousedown:this.handleDocumentMousedown})},e.prototype.unbindGlobalHandlers=function(){i.prototype.unbindGlobalHandlers.call(this),this.stopListeningTo(d.default.get())},e.prototype.startNowIndicator=function(){var e,t,n,i=this;this.opt("nowIndicator")&&(e=this.getNowIndicatorUnit())&&(t=o.proxy(this,"updateNowIndicator"),this.initialNowDate=this.calendar.getNow(),this.initialNowQueriedMs=(new Date).valueOf(),n=this.initialNowDate.clone().startOf(e).add(1,e).valueOf()-this.initialNowDate.valueOf(),this.nowIndicatorTimeoutID=setTimeout(function(){i.nowIndicatorTimeoutID=null,t(),n=+s.duration(1,e),n=Math.max(100,n),i.nowIndicatorIntervalID=setInterval(t,n)},n))},e.prototype.updateNowIndicator=function(){this.isDatesRendered&&this.initialNowDate&&(this.unrenderNowIndicator(),this.renderNowIndicator(this.initialNowDate.clone().add((new Date).valueOf()-this.initialNowQueriedMs)),this.isNowIndicatorRendered=!0)},e.prototype.stopNowIndicator=function(){this.isNowIndicatorRendered&&(this.nowIndicatorTimeoutID&&(clearTimeout(this.nowIndicatorTimeoutID),this.nowIndicatorTimeoutID=null),this.nowIndicatorIntervalID&&(clearInterval(this.nowIndicatorIntervalID),this.nowIndicatorIntervalID=null),this.unrenderNowIndicator(),this.isNowIndicatorRendered=!1)},e.prototype.updateSize=function(e,t,n){this.setHeight?this.setHeight(e,t):i.prototype.updateSize.call(this,e,t,n),this.updateNowIndicator()},e.prototype.addScroll=function(e){var t=this.queuedScroll||(this.queuedScroll={});a.extend(t,e)},e.prototype.popScroll=function(){this.applyQueuedScroll(),this.queuedScroll=null},e.prototype.applyQueuedScroll=function(){this.queuedScroll&&this.applyScroll(this.queuedScroll)},e.prototype.queryScroll=function(){var e={};return this.isDatesRendered&&a.extend(e,this.queryDateScroll()),e},e.prototype.applyScroll=function(e){e.isDateInit&&this.isDatesRendered&&a.extend(e,this.computeInitialDateScroll()),this.isDatesRendered&&this.applyDateScroll(e)},e.prototype.computeInitialDateScroll=function(){return{}},e.prototype.queryDateScroll=function(){return{}},e.prototype.applyDateScroll=function(e){},e.prototype.reportEventDrop=function(e,t,n,i){var r=this.calendar.eventManager,a=r.mutateEventsWithId(e.def.id,t),o=t.dateMutation;o&&(e.dateProfile=o.buildNewDateProfile(e.dateProfile,this.calendar)),this.triggerEventDrop(e,o&&o.dateDelta||s.duration(),a,n,i)},e.prototype.triggerEventDrop=function(e,t,n,i,r){this.publiclyTrigger("eventDrop",{context:i[0],args:[e.toLegacy(),t,n,r,{},this]})},e.prototype.reportExternalDrop=function(e,t,n,i,r,a){t&&this.calendar.eventManager.addEventDef(e,n),this.triggerExternalDrop(e,t,i,r,a)},e.prototype.triggerExternalDrop=function(e,t,n,i,r){this.publiclyTrigger("drop",{context:n[0],args:[e.dateProfile.start.clone(),i,r,this]}),t&&this.publiclyTrigger("eventReceive",{context:this,args:[e.buildInstance().toLegacy(),this]})},e.prototype.reportEventResize=function(e,t,n,i){var r=this.calendar.eventManager,a=r.mutateEventsWithId(e.def.id,t);e.dateProfile=t.dateMutation.buildNewDateProfile(e.dateProfile,this.calendar),this.triggerEventResize(e,t.dateMutation.endDelta,a,n,i)},e.prototype.triggerEventResize=function(e,t,n,i,r){this.publiclyTrigger("eventResize",{context:i[0],args:[e.toLegacy(),t,n,r,{},this]})},e.prototype.select=function(e,t){this.unselect(t),this.renderSelectionFootprint(e),this.reportSelection(e,t)},e.prototype.renderSelectionFootprint=function(e){this.renderSelection?this.renderSelection(e.toLegacy(this.calendar)):i.prototype.renderSelectionFootprint.call(this,e)},e.prototype.reportSelection=function(e,t){this.isSelected=!0,this.triggerSelect(e,t)},e.prototype.triggerSelect=function(e,t){var n=this.calendar.footprintToDateProfile(e);this.publiclyTrigger("select",{context:this,args:[n.start,n.end,t,this]})},e.prototype.unselect=function(e){this.isSelected&&(this.isSelected=!1,this.destroySelection&&this.destroySelection(),this.unrenderSelection(),this.publiclyTrigger("unselect",{context:this,args:[e,this]}))},e.prototype.selectEventInstance=function(t){this.selectedEventInstance&&this.selectedEventInstance===t||(this.unselectEventInstance(),this.getEventSegs().forEach(function(e){e.footprint.eventInstance===t&&e.el&&e.el.addClass("fc-selected")}),this.selectedEventInstance=t)},e.prototype.unselectEventInstance=function(){this.selectedEventInstance&&(this.getEventSegs().forEach(function(e){e.el&&e.el.removeClass("fc-selected")}),this.selectedEventInstance=null)},e.prototype.isEventDefSelected=function(e){return this.selectedEventInstance&&this.selectedEventInstance.def.id===e.id},e.prototype.handleDocumentMousedown=function(e){o.isPrimaryMouseButton(e)&&this.processUnselect(e)},e.prototype.processUnselect=function(e){this.processRangeUnselect(e),this.processEventUnselect(e)},e.prototype.processRangeUnselect=function(e){var t;this.isSelected&&this.opt("unselectAuto")&&((t=this.opt("unselectCancel"))&&a(e.target).closest(t).length||this.unselect(e))},e.prototype.processEventUnselect=function(e){this.selectedEventInstance&&(a(e.target).closest(".fc-selected").length||this.unselectEventInstance())},e.prototype.triggerBaseRendered=function(){this.publiclyTrigger("viewRender",{context:this,args:[this,this.el]})},e.prototype.triggerBaseUnrendered=function(){this.publiclyTrigger("viewDestroy",{context:this,args:[this,this.el]})},e.prototype.triggerDayClick=function(e,t,n){var i=this.calendar.footprintToDateProfile(e);this.publiclyTrigger("dayClick",{context:t,args:[i.start,n,this]})},e.prototype.isDateInOtherMonth=function(e,t){return!1},e.prototype.getUnzonedRangeOption=function(e){var t=this.opt(e);if("function"==typeof t&&(t=t.apply(null,Array.prototype.slice.call(arguments,1))),t)return this.calendar.parseUnzonedRange(t)},e.prototype.initHiddenDays=function(){var e,t=this.opt("hiddenDays")||[],n=[],i=0;for(!1===this.opt("weekends")&&t.push(0,6),e=0;e<7;e++)(n[e]=-1!==a.inArray(e,t))||i++;if(!i)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.getStart(),n=e.getEnd();return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null===t||null===n||t<n?new u.default(t,n):null},e.prototype.isHiddenDay=function(e){return s.isMoment(e)&&(e=e.day()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var i=e.clone();this.isHiddenDayHash[(i.day()+(n?t:0)+7)%7];)i.add(t,"days");return i},e}(c.default);t.default=p,p.prototype.usesMinMaxTime=!1,p.prototype.dateProfileGeneratorClass=i.default,p.watch("displayingDates",["isInDom","dateProfile"],function(e){this.requestDateRender(e.dateProfile)},function(){this.requestDateUnrender()}),p.watch("displayingBusinessHours",["displayingDates","businessHourGenerator"],function(e){this.requestBusinessHoursRender(e.businessHourGenerator)},function(){this.requestBusinessHoursUnrender()}),p.watch("initialEvents",["dateProfile"],function(e){return this.fetchInitialEvents(e.dateProfile)}),p.watch("bindingEvents",["initialEvents"],function(e){this.setEvents(e.initialEvents),this.bindEventChanges()},function(){this.unbindEventChanges(),this.unsetEvents()}),p.watch("displayingEvents",["displayingDates","hasEvents"],function(){this.requestEventsRender(this.get("currentEvents"))},function(){this.requestEventsUnrender()}),p.watch("title",["dateProfile"],function(e){return this.title=this.computeTitle(e.dateProfile)}),p.watch("legacyDateProps",["dateProfile"],function(e){var t=this.calendar,n=e.dateProfile;this.start=t.msToMoment(n.activeUnzonedRange.startMs,n.isRangeAllDay),this.end=t.msToMoment(n.activeUnzonedRange.endMs,n.isRangeAllDay),this.intervalStart=t.msToMoment(n.currentUnzonedRange.startMs,n.isRangeAllDay),this.intervalEnd=t.msToMoment(n.currentUnzonedRange.endMs,n.isRangeAllDay)})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var l=n(3),o=n(4),i=function(){function e(e,t){this.view=e._getView(),this.component=e,this.fillRenderer=t}return e.prototype.opt=function(e){return this.view.opt(e)},e.prototype.rangeUpdated=function(){var e,t;this.eventTimeFormat=this.opt("eventTimeFormat")||this.opt("timeFormat")||this.computeEventTimeFormat(),e=this.opt("displayEventTime"),null==e&&(e=this.computeDisplayEventTime()),t=this.opt("displayEventEnd"),null==t&&(t=this.computeDisplayEventEnd()),this.displayEventTime=e,this.displayEventEnd=t},e.prototype.render=function(e){var t,n,i,r=this.component._getDateProfile(),a=[],o=[];for(t in e)n=e[t],i=n.sliceRenderRanges(r.activeUnzonedRange),n.getEventDef().hasBgRendering()?a.push.apply(a,i):o.push.apply(o,i);this.renderBgRanges(a),this.renderFgRanges(o)},e.prototype.unrender=function(){this.unrenderBgRanges(),this.unrenderFgRanges()},e.prototype.renderFgRanges=function(e){var t=this.component.eventRangesToEventFootprints(e),n=this.component.eventFootprintsToSegs(t);n=this.renderFgSegEls(n),!1!==this.renderFgSegs(n)&&(this.fgSegs=n)},e.prototype.unrenderFgRanges=function(){this.unrenderFgSegs(this.fgSegs||[]),this.fgSegs=null},e.prototype.renderBgRanges=function(e){var t=this.component.eventRangesToEventFootprints(e),n=this.component.eventFootprintsToSegs(t);!1!==this.renderBgSegs(n)&&(this.bgSegs=n)},e.prototype.unrenderBgRanges=function(){this.unrenderBgSegs(),this.bgSegs=null},e.prototype.getSegs=function(){return(this.bgSegs||[]).concat(this.fgSegs||[])},e.prototype.renderFgSegs=function(e){return!1},e.prototype.unrenderFgSegs=function(e){},e.prototype.renderBgSegs=function(e){var n=this;if(!this.fillRenderer)return!1;this.fillRenderer.renderSegs("bgEvent",e,{getClasses:function(e){return n.getBgClasses(e.footprint.eventDef)},getCss:function(e){return{"background-color":n.getBgColor(e.footprint.eventDef)}},filterEl:function(e,t){return n.filterEventRenderEl(e.footprint,t)}})},e.prototype.unrenderBgSegs=function(){this.fillRenderer&&this.fillRenderer.unrender("bgEvent")},e.prototype.renderFgSegEls=function(r,e){var a=this;void 0===e&&(e=!1);var t,o=this.view.hasPublicHandlers("eventRender"),n="",s=[];if(r.length){for(t=0;t<r.length;t++)this.beforeFgSegHtml(r[t]),n+=this.fgSegHtml(r[t],e);l(n).each(function(e,t){var n=r[e],i=l(t);o&&(i=a.filterEventRenderEl(n.footprint,i)),i&&(i.data("fc-seg",n),n.el=i,s.push(n))})}return s},e.prototype.beforeFgSegHtml=function(e){},e.prototype.fgSegHtml=function(e,t){},e.prototype.getSegClasses=function(e,t,n){var i=["fc-event",e.isStart?"fc-start":"fc-not-start",e.isEnd?"fc-end":"fc-not-end"].concat(this.getClasses(e.footprint.eventDef));return t&&i.push("fc-draggable"),n&&i.push("fc-resizable"),this.view.isEventDefSelected(e.footprint.eventDef)&&i.push("fc-selected"),i},e.prototype.filterEventRenderEl=function(e,t){var n=e.getEventLegacy(),i=this.view.publiclyTrigger("eventRender",{context:n,args:[n,t,this.view]});return!1===i?t=null:i&&!0!==i&&(t=l(i)),t},e.prototype.getTimeText=function(e,t,n){return this._getTimeText(e.eventInstance.dateProfile.start,e.eventInstance.dateProfile.end,e.componentFootprint.isAllDay,t,n)},e.prototype._getTimeText=function(e,t,n,i,r){return null==i&&(i=this.eventTimeFormat),null==r&&(r=this.displayEventEnd),this.displayEventTime&&!n?r&&t?this.view.formatRange({start:e,end:t},!1,i):e.format(i):""},e.prototype.computeEventTimeFormat=function(){return this.opt("smallTimeFormat")},e.prototype.computeDisplayEventTime=function(){return!0},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.getBgClasses=function(e){var t=this.getClasses(e);return t.push("fc-bgevent"),t},e.prototype.getClasses=function(e){var t,n=this.getStylingObjs(e),i=[];for(t=0;t<n.length;t++)i.push.apply(i,n[t].eventClassName||n[t].className||[]);return i},e.prototype.getSkinCss=function(e){return{"background-color":this.getBgColor(e),"border-color":this.getBorderColor(e),color:this.getTextColor(e)}},e.prototype.getBgColor=function(e){var t,n,i=this.getStylingObjs(e);for(t=0;t<i.length&&!n;t++)n=i[t].eventBackgroundColor||i[t].eventColor||i[t].backgroundColor||i[t].color;return n||(n=this.opt("eventBackgroundColor")||this.opt("eventColor")),n},e.prototype.getBorderColor=function(e){var t,n,i=this.getStylingObjs(e);for(t=0;t<i.length&&!n;t++)n=i[t].eventBorderColor||i[t].eventColor||i[t].borderColor||i[t].color;return n||(n=this.opt("eventBorderColor")||this.opt("eventColor")),n},e.prototype.getTextColor=function(e){var t,n,i=this.getStylingObjs(e);for(t=0;t<i.length&&!n;t++)n=i[t].eventTextColor||i[t].textColor;return n||(n=this.opt("eventTextColor")),n},e.prototype.getStylingObjs=function(e){var t=this.getFallbackStylingObjs(e);return t.unshift(e),t},e.prototype.getFallbackStylingObjs=function(e){return[e.source]},e.prototype.sortEventSegs=function(e){e.sort(o.proxy(this,"compareEventSegs"))},e.prototype.compareEventSegs=function(e,t){var n=e.footprint.componentFootprint,i=n.unzonedRange,r=t.footprint.componentFootprint,a=r.unzonedRange;return i.startMs-a.startMs||a.endMs-a.startMs-(i.endMs-i.startMs)||r.isAllDay-n.isAllDay||o.compareByFieldSpecs(e.footprint.eventDef,t.footprint.eventDef,this.view.eventOrderSpecs)},e}();t.default=i},,,,,function(e,t,n){function i(e){return"en"!==e.locale()?e.clone().locale("en"):e}function r(e,t){return f(s(t).fakeFormatString,e)}function a(e,t,n,i,r){var a;return e=m.default.parseZone(e),t=m.default.parseZone(t),a=e.localeData(),n=a.longDateFormat(n)||n,o(s(n),e,t,i||" - ",r)}function o(e,t,n,i,r){var a,o,s,l=e.sameUnits,c=t.clone().stripZone(),d=n.clone().stripZone(),u=_(e.fakeFormatString,t),p=_(e.fakeFormatString,n),f="",h="",m="",v="",g="";for(a=0;a<l.length&&(!l[a]||c.isSame(d,l[a]));a++)f+=u[a];for(o=l.length-1;o>a&&(!l[o]||c.isSame(d,l[o]))&&(o-1!==a||"."!==u[o]);o--)h=u[o]+h;for(s=a;s<=o;s++)m+=u[s],v+=p[s];return(m||v)&&(g=r?v+i+m:m+i+v),y(f+g+h)}function s(e){return k[e]||(k[e]=l(e))}function l(e){var t=c(e);return{fakeFormatString:u(t),sameUnits:p(t)}}function c(e){for(var t,n=[],i=/\[([^\]]*)\]|\(([^\)]*)\)|(LTS|LT|(\w)\4*o?)|([^\w\[\(]+)/g;t=i.exec(e);)t[1]?n.push.apply(n,d(t[1])):t[2]?n.push({maybe:c(t[2])}):t[3]?n.push({token:t[3]}):t[5]&&n.push.apply(n,d(t[5]));return n}function d(e){return". "===e?["."," "]:[e]}function u(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],"string"==typeof n?i.push("["+n+"]"):n.token?n.token in C?i.push(g+"["+n.token+"]"):i.push(n.token):n.maybe&&i.push(b+u(n.maybe)+b);return i.join(v)}function p(e){var t,n,i,r=[];for(t=0;t<e.length;t++)n=e[t],n.token?(i=x[n.token.charAt(0)],r.push(i?i.unit:"second")):n.maybe?r.push.apply(r,p(n.maybe)):r.push(null);return r}function f(e,t){return y(_(e,t).join(""))}function _(e,t){var n,i,r=[],a=m.oldMomentFormat(t,e),o=a.split(v);for(n=0;n<o.length;n++)i=o[n],i.charAt(0)===g?r.push(C[i.substring(1)](t)):r.push(i);return r}function y(e){return e.replace(w,function(e,t){return t.match(/[1-9]/)?t:""})}function h(e){var t,n,i,r,a=c(e);for(t=0;t<a.length;t++)n=a[t],n.token&&(i=x[n.token.charAt(0)])&&(!r||i.value>r.value)&&(r=i);return r?r.unit:null}Object.defineProperty(t,"__esModule",{value:!0});var m=n(10);m.newMomentProto.format=function(){return this._fullCalendar&&arguments[0]?r(this,arguments[0]):this._ambigTime?m.oldMomentFormat(i(this),"YYYY-MM-DD"):this._ambigZone?m.oldMomentFormat(i(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?m.oldMomentFormat(i(this)):m.oldMomentProto.format.apply(this,arguments)},m.newMomentProto.toISOString=function(){return this._ambigTime?m.oldMomentFormat(i(this),"YYYY-MM-DD"):this._ambigZone?m.oldMomentFormat(i(this),"YYYY-MM-DD[T]HH:mm:ss"):this._fullCalendar?m.oldMomentProto.toISOString.apply(i(this),arguments):m.oldMomentProto.toISOString.apply(this,arguments)};var v="\v",g="",b="",w=new RegExp(b+"([^"+b+"]*)"+b,"g"),C={t:function(e){return m.oldMomentFormat(e,"a").charAt(0)},T:function(e){return m.oldMomentFormat(e,"A").charAt(0)}},x={Y:{value:1,unit:"year"},M:{value:2,unit:"month"},W:{value:3,unit:"week"},w:{value:3,unit:"week"},D:{value:4,unit:"day"},d:{value:4,unit:"day"}};t.formatDate=r,t.formatRange=a;var k={};t.queryMostGranularFormatUnit=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(32),a=n(11),o=n(7),s=function(t){function e(){var e=t.call(this)||this;return e._watchers={},e._props={},e.applyGlobalWatchers(),e.constructed(),e}return i.__extends(e,t),e.watch=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.prototype.hasOwnProperty("_globalWatchArgs")||(this.prototype._globalWatchArgs=Object.create(this.prototype._globalWatchArgs)),this.prototype._globalWatchArgs[e]=t},e.prototype.constructed=function(){},e.prototype.applyGlobalWatchers=function(){var e,t=this._globalWatchArgs;for(e in t)this.watch.apply(this,[e].concat(t[e]))},e.prototype.has=function(e){return e in this._props},e.prototype.get=function(e){return void 0===e?this._props:this._props[e]},e.prototype.set=function(e,t){var n;"string"==typeof e?(n={},n[e]=void 0===t?null:t):n=e,this.setProps(n)},e.prototype.reset=function(e){var t,n=this._props,i={};for(t in n)i[t]=void 0;for(t in e)i[t]=e[t];this.setProps(i)},e.prototype.unset=function(e){var t,n,i={};for(t="string"==typeof e?[e]:e,n=0;n<t.length;n++)i[t[n]]=void 0;this.setProps(i)},e.prototype.setProps=function(e){var t,n,i={},r=0;for(t in e)"object"!=typeof(n=e[t])&&n===this._props[t]||(i[t]=n,r++);if(r){this.trigger("before:batchChange",i);for(t in i)n=i[t],this.trigger("before:change",t,n),this.trigger("before:change:"+t,n);for(t in i)n=i[t],void 0===n?delete this._props[t]:this._props[t]=n,this.trigger("change:"+t,n),this.trigger("change",t,n);this.trigger("batchChange",i)}},e.prototype.watch=function(n,e,i,t){var r=this;this.unwatch(n),this._watchers[n]=this._watchDeps(e,function(e){var t=i.call(r,e);t&&t.then?(r.unset(n),t.then(function(e){r.set(n,e)})):r.set(n,t)},function(e){r.unset(n),t&&t.call(r,e)})},e.prototype.unwatch=function(e){var t=this._watchers[e];t&&(delete this._watchers[e],t.teardown())},e.prototype._watchDeps=function(e,i,r){var n=this,a=0,o=e.length,s=0,l={},c=[],d=!1,u=function(e,t,n){1===++a&&s===o&&(d=!0,r(l),d=!1)},p=function(e,t,n){void 0===t?(n||void 0===l[e]||s--,delete l[e]):(n||void 0!==l[e]||s++,l[e]=t),--a||s===o&&(d||i(l))},f=function(e,t){n.on(e,t),c.push([e,t])};return e.forEach(function(t){var n=!1;"?"===t.charAt(0)&&(t=t.substring(1),n=!0),f("before:change:"+t,function(e){u()}),f("change:"+t,function(e){p(t,e,n)})}),e.forEach(function(e){var t=!1;"?"===e.charAt(0)&&(e=e.substring(1),t=!0),n.has(e)?(l[e]=n.get(e),s++):t&&s++}),s===o&&i(l),{teardown:function(){for(var e=0;e<c.length;e++)n.off(c[e][0],c[e][1]);c=null,s===o&&r()},flash:function(){s===o&&(r(),i(l))}}},e.prototype.flash=function(e){var t=this._watchers[e];t&&t.flash()},e}(r.default);t.default=s,s.prototype._globalWatchArgs={},a.default.mixInto(s),o.default.mixInto(s)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=n(4),a=n(13),o=n(206);t.default={parse:function(e,t){return r.isTimeString(e.start)||i.isDuration(e.start)||r.isTimeString(e.end)||i.isDuration(e.end)?o.default.parse(e,t):a.default.parse(e,t)}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var p=n(4),a=n(17),i=function(){function u(){this.clearEnd=!1,this.forceTimed=!1,this.forceAllDay=!1}return u.createFromDiff=function(e,n,i){function t(e,t){return i?p.diffByUnit(e,t,i):n.isAllDay()?p.diffDay(e,t):p.diffDayTime(e,t)}var r,a,o,s,l=e.end&&!n.end,c=e.isAllDay()&&!n.isAllDay(),d=!e.isAllDay()&&n.isAllDay();return r=t(n.start,e.start),n.end&&(a=t(n.unzonedRange.getEnd(),e.unzonedRange.getEnd()),o=a.subtract(r)),s=new u,s.clearEnd=l,s.forceTimed=c,s.forceAllDay=d,s.setDateDelta(r),s.setEndDelta(o),s},u.prototype.buildNewDateProfile=function(e,t){var n=e.start.clone(),i=null,r=!1;return e.end&&!this.clearEnd?i=e.end.clone():this.endDelta&&!i&&(i=t.getDefaultEventEnd(e.isAllDay(),n)),this.forceTimed?(r=!0,n.hasTime()||n.time(0),i&&!i.hasTime()&&i.time(0)):this.forceAllDay&&(n.hasTime()&&n.stripTime(),i&&i.hasTime()&&i.stripTime()),this.dateDelta&&(r=!0,n.add(this.dateDelta),i&&i.add(this.dateDelta)),this.endDelta&&(r=!0,i.add(this.endDelta)),this.startDelta&&(r=!0,n.add(this.startDelta)),r&&(n=t.applyTimezone(n),i&&(i=t.applyTimezone(i))),!i&&t.opt("forceEventDuration")&&(i=t.getDefaultEventEnd(e.isAllDay(),n)),new a.default(n,i,t)},u.prototype.setDateDelta=function(e){e&&e.valueOf()?this.dateDelta=e:this.dateDelta=null},u.prototype.setStartDelta=function(e){e&&e.valueOf()?this.startDelta=e:this.startDelta=null},u.prototype.setEndDelta=function(e){e&&e.valueOf()?this.endDelta=e:this.endDelta=null},u.prototype.isEmpty=function(){return!(this.clearEnd||this.forceTimed||this.forceAllDay||this.dateDelta||this.startDelta||this.endDelta)},u}();t.default=i},function(e,t,n){function i(e,t){s[e]=t}function r(e){return e?!0===e?o.default:s[e]:a.default}Object.defineProperty(t,"__esModule",{value:!0});var a=n(209),o=n(210),s={};t.defineThemeSystem=i,t.getThemeSystemClass=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),a=n(4),o=n(19),s=n(6),l=n(13),c=function(n){function e(e){var t=n.call(this,e)||this;return t.eventDefs=[],t}return i.__extends(e,n),e.parse=function(e,t){var n;return r.isArray(e.events)?n=e:r.isArray(e)&&(n={events:e}),!!n&&s.default.parse.call(this,n,t)},e.prototype.setRawEventDefs=function(e){this.rawEventDefs=e,this.eventDefs=this.parseEventDefs(e)},e.prototype.fetch=function(e,t,n){var i,r=this.eventDefs;if(null!=this.currentTimezone&&this.currentTimezone!==n)for(i=0;i<r.length;i++)r[i]instanceof l.default&&r[i].rezone();return this.currentTimezone=n,o.default.resolve(r)},e.prototype.addEventDef=function(e){this.eventDefs.push(e)},e.prototype.removeEventDefsById=function(t){return a.removeMatching(this.eventDefs,function(e){return e.id===t})},e.prototype.removeAllEventDefs=function(){this.eventDefs=[]},e.prototype.getPrimitive=function(){return this.rawEventDefs},e.prototype.applyManualStandardProps=function(e){var t=n.prototype.applyManualStandardProps.call(this,e);return this.setRawEventDefs(e.events),t},e}(s.default);t.default=c,c.defineStandardProps({events:!1})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),i=n(4),r=function(){function e(e){this.isHorizontal=!1,this.isVertical=!1,this.els=s(e.els),this.isHorizontal=e.isHorizontal,this.isVertical=e.isVertical,this.forcedOffsetParentEl=e.offsetParent?s(e.offsetParent):null}return e.prototype.build=function(){var e=this.forcedOffsetParentEl;!e&&this.els.length>0&&(e=this.els.eq(0).offsetParent()),this.origin=e?e.offset():null,this.boundingRect=this.queryBoundingRect(),this.isHorizontal&&this.buildElHorizontals(),this.isVertical&&this.buildElVerticals()},e.prototype.clear=function(){this.origin=null,this.boundingRect=null,this.lefts=null,this.rights=null,this.tops=null,this.bottoms=null},e.prototype.ensureBuilt=function(){this.origin||this.build()},e.prototype.buildElHorizontals=function(){var a=[],o=[];this.els.each(function(e,t){var n=s(t),i=n.offset().left,r=n.outerWidth();a.push(i),o.push(i+r)}),this.lefts=a,this.rights=o},e.prototype.buildElVerticals=function(){var a=[],o=[];this.els.each(function(e,t){var n=s(t),i=n.offset().top,r=n.outerHeight();a.push(i),o.push(i+r)}),this.tops=a,this.bottoms=o},e.prototype.getHorizontalIndex=function(e){this.ensureBuilt();var t,n=this.lefts,i=this.rights,r=n.length;for(t=0;t<r;t++)if(e>=n[t]&&e<i[t])return t},e.prototype.getVerticalIndex=function(e){this.ensureBuilt();var t,n=this.tops,i=this.bottoms,r=n.length;for(t=0;t<r;t++)if(e>=n[t]&&e<i[t])return t},e.prototype.getLeftOffset=function(e){return this.ensureBuilt(),this.lefts[e]},e.prototype.getLeftPosition=function(e){return this.ensureBuilt(),this.lefts[e]-this.origin.left},e.prototype.getRightOffset=function(e){return this.ensureBuilt(),this.rights[e]},e.prototype.getRightPosition=function(e){return this.ensureBuilt(),this.rights[e]-this.origin.left},e.prototype.getWidth=function(e){return this.ensureBuilt(),this.rights[e]-this.lefts[e]},e.prototype.getTopOffset=function(e){return this.ensureBuilt(),this.tops[e]},e.prototype.getTopPosition=function(e){return this.ensureBuilt(),this.tops[e]-this.origin.top},e.prototype.getBottomOffset=function(e){return this.ensureBuilt(),this.bottoms[e]},e.prototype.getBottomPosition=function(e){return this.ensureBuilt(),this.bottoms[e]-this.origin.top},e.prototype.getHeight=function(e){return this.ensureBuilt(),this.bottoms[e]-this.tops[e]},e.prototype.queryBoundingRect=function(){var e;return this.els.length>0&&(e=i.getScrollParent(this.els.eq(0)),!e.is(document))?i.getClientRect(e):null},e.prototype.isPointInBounds=function(e,t){return this.isLeftInBounds(e)&&this.isTopInBounds(t)},e.prototype.isLeftInBounds=function(e){return!this.boundingRect||e>=this.boundingRect.left&&e<this.boundingRect.right},e.prototype.isTopInBounds=function(e){return!this.boundingRect||e>=this.boundingRect.top&&e<this.boundingRect.bottom},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),c=n(4),r=n(7),a=n(20),o=function(){function e(e){this.isInteracting=!1,this.isDistanceSurpassed=!1,this.isDelayEnded=!1,this.isDragging=!1,this.isTouch=!1,this.isGeneric=!1,this.shouldCancelTouchScroll=!0,this.scrollAlwaysKills=!1,this.isAutoScroll=!1,this.scrollSensitivity=30,this.scrollSpeed=200,this.scrollIntervalMs=50,this.options=e||{}}return e.prototype.startInteraction=function(e,t){if(void 0===t&&(t={}),"mousedown"===e.type){if(a.default.get().shouldIgnoreMouse())return;if(!c.isPrimaryMouseButton(e))return;e.preventDefault()}this.isInteracting||(this.delay=c.firstDefined(t.delay,this.options.delay,0),this.minDistance=c.firstDefined(t.distance,this.options.distance,0),this.subjectEl=this.options.subjectEl,c.preventSelection(i("body")),this.isInteracting=!0,this.isTouch=c.getEvIsTouch(e),this.isGeneric="dragstart"===e.type,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.originX=c.getEvX(e),this.originY=c.getEvY(e),this.scrollEl=c.getScrollParent(i(e.target)),this.bindHandlers(),this.initAutoScroll(),this.handleInteractionStart(e),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e))},e.prototype.handleInteractionStart=function(e){this.trigger("interactionStart",e)},e.prototype.endInteraction=function(e,t){this.isInteracting&&(this.endDrag(e),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null),this.destroyAutoScroll(),this.unbindHandlers(),this.isInteracting=!1,this.handleInteractionEnd(e,t),c.allowSelection(i("body")))},e.prototype.handleInteractionEnd=function(e,t){this.trigger("interactionEnd",e,t||!1)},e.prototype.bindHandlers=function(){var e=a.default.get();this.isGeneric?this.listenTo(i(document),{drag:this.handleMove,dragstop:this.endInteraction}):this.isTouch?this.listenTo(e,{touchmove:this.handleTouchMove,touchend:this.endInteraction,scroll:this.handleTouchScroll}):this.listenTo(e,{mousemove:this.handleMouseMove,mouseup:this.endInteraction}),this.listenTo(e,{selectstart:c.preventDefault,contextmenu:c.preventDefault})},e.prototype.unbindHandlers=function(){this.stopListeningTo(a.default.get()),this.stopListeningTo(i(document))},e.prototype.startDrag=function(e,t){this.startInteraction(e,t),this.isDragging||(this.isDragging=!0,this.handleDragStart(e))},e.prototype.handleDragStart=function(e){this.trigger("dragStart",e)},e.prototype.handleMove=function(e){var t=c.getEvX(e)-this.originX,n=c.getEvY(e)-this.originY,i=this.minDistance;this.isDistanceSurpassed||t*t+n*n>=i*i&&this.handleDistanceSurpassed(e),this.isDragging&&this.handleDrag(t,n,e)},e.prototype.handleDrag=function(e,t,n){this.trigger("drag",e,t,n),this.updateAutoScroll(n)},e.prototype.endDrag=function(e){this.isDragging&&(this.isDragging=!1,this.handleDragEnd(e))},e.prototype.handleDragEnd=function(e){this.trigger("dragEnd",e)},e.prototype.startDelay=function(e){var t=this;this.delay?this.delayTimeoutId=setTimeout(function(){t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},e.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.isDistanceSurpassed&&this.startDrag(e)},e.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.isDelayEnded&&this.startDrag(e)},e.prototype.handleTouchMove=function(e){this.isDragging&&this.shouldCancelTouchScroll&&e.preventDefault(),this.handleMove(e)},e.prototype.handleMouseMove=function(e){this.handleMove(e)},e.prototype.handleTouchScroll=function(e){this.isDragging&&!this.scrollAlwaysKills||this.endInteraction(e,!0)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.options[e]&&this.options[e].apply(this,t),this["_"+e]&&this["_"+e].apply(this,t)},e.prototype.initAutoScroll=function(){var e=this.scrollEl;this.isAutoScroll=this.options.scroll&&e&&!e.is(window)&&!e.is(document),this.isAutoScroll&&this.listenTo(e,"scroll",c.debounce(this.handleDebouncedScroll,100))},e.prototype.destroyAutoScroll=function(){this.endAutoScroll(),this.isAutoScroll&&this.stopListeningTo(this.scrollEl,"scroll")},e.prototype.computeScrollBounds=function(){this.isAutoScroll&&(this.scrollBounds=c.getOuterRect(this.scrollEl))},e.prototype.updateAutoScroll=function(e){var t,n,i,r,a=this.scrollSensitivity,o=this.scrollBounds,s=0,l=0;o&&(t=(a-(c.getEvY(e)-o.top))/a,n=(a-(o.bottom-c.getEvY(e)))/a,i=(a-(c.getEvX(e)-o.left))/a,r=(a-(o.right-c.getEvX(e)))/a,t>=0&&t<=1?s=t*this.scrollSpeed*-1:n>=0&&n<=1&&(s=n*this.scrollSpeed),i>=0&&i<=1?l=i*this.scrollSpeed*-1:r>=0&&r<=1&&(l=r*this.scrollSpeed)),this.setScrollVel(s,l)},e.prototype.setScrollVel=function(e,t){this.scrollTopVel=e,this.scrollLeftVel=t,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval(c.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},e.prototype.constrainScrollVel=function(){var e=this.scrollEl;this.scrollTopVel<0?e.scrollTop()<=0&&(this.scrollTopVel=0):this.scrollTopVel>0&&e.scrollTop()+e[0].clientHeight>=e[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?e.scrollLeft()<=0&&(this.scrollLeftVel=0):this.scrollLeftVel>0&&e.scrollLeft()+e[0].clientWidth>=e[0].scrollWidth&&(this.scrollLeftVel=0)},e.prototype.scrollIntervalFunc=function(){var e=this.scrollEl,t=this.scrollIntervalMs/1e3;this.scrollTopVel&&e.scrollTop(e.scrollTop()+this.scrollTopVel*t),this.scrollLeftVel&&e.scrollLeft(e.scrollLeft()+this.scrollLeftVel*t),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.endAutoScroll()},e.prototype.endAutoScroll=function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.handleScrollEnd())},e.prototype.handleDebouncedScroll=function(){this.scrollIntervalId||this.handleScrollEnd()},e.prototype.handleScrollEnd=function(){},e}();t.default=o,r.default.mixInto(o)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),l=n(4),r=n(14),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.updateDayTable=function(){for(var e,t,n,i=this,r=i.view,a=r.calendar,o=a.msToUtcMoment(i.dateProfile.renderUnzonedRange.startMs,!0),s=a.msToUtcMoment(i.dateProfile.renderUnzonedRange.endMs,!0),l=-1,c=[],d=[];o.isBefore(s);)r.isHiddenDay(o)?c.push(l+.5):(l++,c.push(l),d.push(o.clone())),o.add(1,"days");if(this.breakOnWeeks){for(t=d[0].day(),e=1;e<d.length&&d[e].day()!==t;e++);n=Math.ceil(d.length/e)}else n=1,e=d.length;this.dayDates=d,this.dayIndices=c,this.daysPerRow=e,this.rowCnt=n,this.updateDayTableCols()},t.prototype.updateDayTableCols=function(){this.colCnt=this.computeColCnt(),this.colHeadFormat=this.opt("columnHeaderFormat")||this.opt("columnFormat")||this.computeColHeadFormat()},t.prototype.computeColCnt=function(){return this.daysPerRow},t.prototype.getCellDate=function(e,t){return this.dayDates[this.getCellDayIndex(e,t)].clone()},t.prototype.getCellRange=function(e,t){var n=this.getCellDate(e,t);return{start:n,end:n.clone().add(1,"days")}},t.prototype.getCellDayIndex=function(e,t){return e*this.daysPerRow+this.getColDayIndex(t)},t.prototype.getColDayIndex=function(e){return this.isRTL?this.colCnt-1-e:e},t.prototype.getDateDayIndex=function(e){var t=this.dayIndices,n=e.diff(this.dayDates[0],"days");return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},t.prototype.computeColHeadFormat=function(){return this.rowCnt>1||this.colCnt>10?"ddd":this.colCnt>1?this.opt("dayOfMonthFormat"):"dddd"},t.prototype.sliceRangeByRow=function(e){var t,n,i,r,a,o=this.daysPerRow,s=this.view.computeDayRange(e),l=this.getDateDayIndex(s.start),c=this.getDateDayIndex(s.end.clone().subtract(1,"days")),d=[];for(t=0;t<this.rowCnt;t++)n=t*o,i=n+o-1,r=Math.max(l,n),a=Math.min(c,i),r=Math.ceil(r),a=Math.floor(a),r<=a&&d.push({row:t,firstRowDayIndex:r-n,lastRowDayIndex:a-n,isStart:r===l,isEnd:a===c});return d},t.prototype.sliceRangeByDay=function(e){var t,n,i,r,a,o,s=this.daysPerRow,l=this.view.computeDayRange(e),c=this.getDateDayIndex(l.start),d=this.getDateDayIndex(l.end.clone().subtract(1,"days")),u=[];for(t=0;t<this.rowCnt;t++)for(n=t*s,i=n+s-1,r=n;r<=i;r++)a=Math.max(c,r),o=Math.min(d,r),a=Math.ceil(a),o=Math.floor(o),a<=o&&u.push({row:t,firstRowDayIndex:a-n,lastRowDayIndex:o-n,isStart:a===c,isEnd:o===d});return u},t.prototype.renderHeadHtml=function(){var e=this.view.calendar.theme;return'<div class="fc-row '+e.getClass("headerRow")+'"><table class="'+e.getClass("tableGrid")+'"><thead>'+this.renderHeadTrHtml()+"</thead></table></div>"},t.prototype.renderHeadIntroHtml=function(){return this.renderIntroHtml()},t.prototype.renderHeadTrHtml=function(){return"<tr>"+(this.isRTL?"":this.renderHeadIntroHtml())+this.renderHeadDateCellsHtml()+(this.isRTL?this.renderHeadIntroHtml():"")+"</tr>"},t.prototype.renderHeadDateCellsHtml=function(){var e,t,n=[];for(e=0;e<this.colCnt;e++)t=this.getCellDate(0,e),n.push(this.renderHeadDateCellHtml(t));return n.join("")},t.prototype.renderHeadDateCellHtml=function(e,t,n){var i,r=this,a=r.view,o=r.dateProfile.activeUnzonedRange.containsDate(e),s=["fc-day-header",a.calendar.theme.getClass("widgetHeader")];return i="function"==typeof r.opt("columnHeaderHtml")?r.opt("columnHeaderHtml")(e):"function"==typeof r.opt("columnHeaderText")?l.htmlEscape(r.opt("columnHeaderText")(e)):l.htmlEscape(e.format(r.colHeadFormat)),1===r.rowCnt?s=s.concat(r.getDayClasses(e,!0)):s.push("fc-"+l.dayIDs[e.day()]),'<th class="'+s.join(" ")+'"'+(1===(o&&r.rowCnt)?' data-date="'+e.format("YYYY-MM-DD")+'"':"")+(t>1?' colspan="'+t+'"':"")+(n?" "+n:"")+">"+(o?a.buildGotoAnchorHtml({date:e,forceOff:r.rowCnt>1||1===r.colCnt},i):i)+"</th>"},t.prototype.renderBgTrHtml=function(e){return"<tr>"+(this.isRTL?"":this.renderBgIntroHtml(e))+this.renderBgCellsHtml(e)+(this.isRTL?this.renderBgIntroHtml(e):"")+"</tr>"},t.prototype.renderBgIntroHtml=function(e){return this.renderIntroHtml()},t.prototype.renderBgCellsHtml=function(e){var t,n,i=[];for(t=0;t<this.colCnt;t++)n=this.getCellDate(e,t),i.push(this.renderBgCellHtml(n));return i.join("")},t.prototype.renderBgCellHtml=function(e,t){var n=this,i=n.view,r=n.dateProfile.activeUnzonedRange.containsDate(e),a=n.getDayClasses(e);return a.unshift("fc-day",i.calendar.theme.getClass("widgetContent")),'<td class="'+a.join(" ")+'"'+(r?' data-date="'+e.format("YYYY-MM-DD")+'"':"")+(t?" "+t:"")+"></td>"},t.prototype.renderIntroHtml=function(){},t.prototype.bookendCells=function(e){var t=this.renderIntroHtml();t&&(this.isRTL?e.append(t):e.prepend(t))},t}(r.default);t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.component=e,this.fillRenderer=t}return e.prototype.render=function(e){var t=this.component,n=t._getDateProfile().activeUnzonedRange,i=e.buildEventInstanceGroup(t.hasAllDayBusinessHours,n),r=i?t.eventRangesToEventFootprints(i.sliceRenderRanges(n)):[];this.renderEventFootprints(r)},e.prototype.renderEventFootprints=function(e){var t=this.component.eventFootprintsToSegs(e);this.renderSegs(t),this.segs=t},e.prototype.renderSegs=function(e){this.fillRenderer&&this.fillRenderer.renderSegs("businessHours",e,{getClasses:function(e){return["fc-nonbusiness","fc-bgevent"]}})},e.prototype.unrender=function(){this.fillRenderer&&this.fillRenderer.unrender("businessHours"),this.segs=null},e.prototype.getSegs=function(){return this.segs||[]},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var l=n(3),a=n(4),i=function(){function e(e){this.fillSegTag="div",this.component=e,this.elsByFill={}}return e.prototype.renderFootprint=function(e,t,n){this.renderSegs(e,this.component.componentFootprintToSegs(t),n)},e.prototype.renderSegs=function(e,t,n){var i;return t=this.buildSegEls(e,t,n),i=this.attachSegEls(e,t),i&&this.reportEls(e,i),t},e.prototype.unrender=function(e){var t=this.elsByFill[e];t&&(t.remove(),delete this.elsByFill[e])},e.prototype.buildSegEls=function(e,r,a){var t,o=this,n="",s=[];if(r.length){for(t=0;t<r.length;t++)n+=this.buildSegHtml(e,r[t],a);l(n).each(function(e,t){var n=r[e],i=l(t);a.filterEl&&(i=a.filterEl(n,i)),i&&(i=l(i),i.is(o.fillSegTag)&&(n.el=i,s.push(n)))})}return s},e.prototype.buildSegHtml=function(e,t,n){var i=n.getClasses?n.getClasses(t):[],r=a.cssToStr(n.getCss?n.getCss(t):{});return"<"+this.fillSegTag+(i.length?' class="'+i.join(" ")+'"':"")+(r?' style="'+r+'"':"")+" />"},e.prototype.attachSegEls=function(e,t){},e.prototype.reportEls=function(e,t){this.elsByFill[e]?this.elsByFill[e]=this.elsByFill[e].add(t):this.elsByFill[e]=l(t)},e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),o=n(35),s=n(6),i=function(){function e(e,t){this.view=e._getView(),this.component=e,this.eventRenderer=t}return e.prototype.renderComponentFootprint=function(e){this.renderEventFootprints([this.fabricateEventFootprint(e)])},e.prototype.renderEventDraggingFootprints=function(e,t,n){this.renderEventFootprints(e,t,"fc-dragging",n?null:this.view.opt("dragOpacity"))},e.prototype.renderEventResizingFootprints=function(e,t,n){this.renderEventFootprints(e,t,"fc-resizing")},e.prototype.renderEventFootprints=function(e,t,n,i){var r,a=this.component.eventFootprintsToSegs(e),o="fc-helper "+(n||"");for(a=this.eventRenderer.renderFgSegEls(a),r=0;r<a.length;r++)a[r].el.addClass(o);if(null!=i)for(r=0;r<a.length;r++)a[r].el.css("opacity",i);this.helperEls=this.renderSegs(a,t)},e.prototype.renderSegs=function(e,t){},e.prototype.unrender=function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},e.prototype.fabricateEventFootprint=function(e){var t,n=this.view.calendar,i=n.footprintToDateProfile(e),r=new a.default(new s.default(n));return r.dateProfile=i,t=r.buildInstance(),new o.default(e,r,t)},e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(20),a=n(15),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.bindToEl=function(e){var t=this.component;t.bindSegHandlerToEl(e,"click",this.handleClick.bind(this)),t.bindSegHandlerToEl(e,"mouseenter",this.handleMouseover.bind(this)),t.bindSegHandlerToEl(e,"mouseleave",this.handleMouseout.bind(this))},t.prototype.handleClick=function(e,t){!1===this.component.publiclyTrigger("eventClick",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,this.view]})&&t.preventDefault()},t.prototype.handleMouseover=function(e,t){r.default.get().shouldIgnoreMouse()||this.mousedOverSeg||(this.mousedOverSeg=e,this.view.isEventDefResizable(e.footprint.eventDef)&&e.el.addClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseover",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,this.view]}))},t.prototype.handleMouseout=function(e,t){this.mousedOverSeg&&(this.mousedOverSeg=null,this.view.isEventDefResizable(e.footprint.eventDef)&&e.el.removeClass("fc-allow-mouse-resize"),this.component.publiclyTrigger("eventMouseout",{context:e.el[0],args:[e.footprint.getEventLegacy(),t||{},this.view]}))},t.prototype.end=function(){this.mousedOverSeg&&this.handleMouseout(this.mousedOverSeg)},t}(a.default);t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(14),a=n(241),o=n(221),s=n(59),l=n(220),c=n(219),d=n(218),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(r.default);t.default=u,u.prototype.dateClickingClass=a.default,u.prototype.dateSelectingClass=o.default,u.prototype.eventPointingClass=s.default,u.prototype.eventDraggingClass=l.default,u.prototype.eventResizingClass=c.default,u.prototype.externalDroppingClass=d.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),C=n(3),c=n(4),o=n(53),d=n(245),u=n(5),p=n(12),f=n(35),r=n(56),a=n(60),s=n(40),l=n(55),h=n(246),m=n(247),v=n(248),g=function(n){function e(e){var t=n.call(this,e)||this;return t.cellWeekNumbersVisible=!1,t.bottomCoordPadding=0,t.isRigid=!1,t.hasAllDayBusinessHours=!0,t}return i.__extends(e,n),e.prototype.componentFootprintToSegs=function(e){var t,n,i=this.sliceRangeByRow(e.unzonedRange);for(t=0;t<i.length;t++)n=i[t],this.isRTL?(n.leftCol=this.daysPerRow-1-n.lastRowDayIndex,n.rightCol=this.daysPerRow-1-n.firstRowDayIndex):(n.leftCol=n.firstRowDayIndex,n.rightCol=n.lastRowDayIndex);return i},e.prototype.renderDates=function(e){this.dateProfile=e,this.updateDayTable(),this.renderGrid()},e.prototype.unrenderDates=function(){this.removeSegPopover()},e.prototype.renderGrid=function(){var e,t,n=this.view,i=this.rowCnt,r=this.colCnt,a="";for(this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),e=0;e<i;e++)a+=this.renderDayRowHtml(e,this.isRigid);for(this.el.html(a),this.rowEls=this.el.find(".fc-row"),this.cellEls=this.el.find(".fc-day, .fc-disabled-day"),this.rowCoordCache=new o.default({els:this.rowEls,isVertical:!0}),this.colCoordCache=new o.default({els:this.cellEls.slice(0,this.colCnt),isHorizontal:!0}),e=0;e<i;e++)for(t=0;t<r;t++)this.publiclyTrigger("dayRender",{context:n,args:[this.getCellDate(e,t),this.getCellEl(e,t),n]})},e.prototype.renderDayRowHtml=function(e,t){var n=this.view.calendar.theme,i=["fc-row","fc-week",n.getClass("dayRow")];return t&&i.push("fc-rigid"),'<div class="'+i.join(" ")+'"><div class="fc-bg"><table class="'+n.getClass("tableGrid")+'">'+this.renderBgTrHtml(e)+'</table></div><div class="fc-content-skeleton"><table>'+(this.getIsNumbersVisible()?"<thead>"+this.renderNumberTrHtml(e)+"</thead>":"")+"</table></div></div>"},e.prototype.getIsNumbersVisible=function(){return this.getIsDayNumbersVisible()||this.cellWeekNumbersVisible},e.prototype.getIsDayNumbersVisible=function(){return this.rowCnt>1},e.prototype.renderNumberTrHtml=function(e){return"<tr>"+(this.isRTL?"":this.renderNumberIntroHtml(e))+this.renderNumberCellsHtml(e)+(this.isRTL?this.renderNumberIntroHtml(e):"")+"</tr>"},e.prototype.renderNumberIntroHtml=function(e){return this.renderIntroHtml()},e.prototype.renderNumberCellsHtml=function(e){var t,n,i=[];for(t=0;t<this.colCnt;t++)n=this.getCellDate(e,t),i.push(this.renderNumberCellHtml(n));return i.join("")},e.prototype.renderNumberCellHtml=function(e){var t,n,i=this.view,r="",a=this.dateProfile.activeUnzonedRange.containsDate(e),o=this.getIsDayNumbersVisible()&&a;return o||this.cellWeekNumbersVisible?(t=this.getDayClasses(e),t.unshift("fc-day-top"),this.cellWeekNumbersVisible&&(n="ISO"===e._locale._fullCalendar_weekCalc?1:e._locale.firstDayOfWeek()),r+='<td class="'+t.join(" ")+'"'+(a?' data-date="'+e.format()+'"':"")+">",this.cellWeekNumbersVisible&&e.day()===n&&(r+=i.buildGotoAnchorHtml({date:e,type:"week"},{class:"fc-week-number"},e.format("w"))),o&&(r+=i.buildGotoAnchorHtml(e,{class:"fc-day-number"},e.date())),r+="</td>"):"<td/>"},e.prototype.prepareHits=function(){this.colCoordCache.build(),this.rowCoordCache.build(),this.rowCoordCache.bottoms[this.rowCnt-1]+=this.bottomCoordPadding},e.prototype.releaseHits=function(){this.colCoordCache.clear(),this.rowCoordCache.clear()},e.prototype.queryHit=function(e,t){if(this.colCoordCache.isLeftInBounds(e)&&this.rowCoordCache.isTopInBounds(t)){var n=this.colCoordCache.getHorizontalIndex(e),i=this.rowCoordCache.getVerticalIndex(t);if(null!=i&&null!=n)return this.getCellHit(i,n)}},e.prototype.getHitFootprint=function(e){var t=this.getCellRange(e.row,e.col);return new p.default(new u.default(t.start,t.end),!0)},e.prototype.getHitEl=function(e){return this.getCellEl(e.row,e.col)},e.prototype.getCellHit=function(e,t){return{row:e,col:t,component:this,left:this.colCoordCache.getLeftOffset(t),right:this.colCoordCache.getRightOffset(t),top:this.rowCoordCache.getTopOffset(e),bottom:this.rowCoordCache.getBottomOffset(e)}},e.prototype.getCellEl=function(e,t){return this.cellEls.eq(e*this.colCnt+t)},e.prototype.executeEventUnrender=function(){this.removeSegPopover(),n.prototype.executeEventUnrender.call(this)},e.prototype.getOwnEventSegs=function(){return n.prototype.getOwnEventSegs.call(this).concat(this.popoverSegs||[])},e.prototype.renderDrag=function(e,t,n){var i;for(i=0;i<e.length;i++)this.renderHighlight(e[i].componentFootprint);if(e.length&&t&&t.component!==this)return this.helperRenderer.renderEventDraggingFootprints(e,t,n),!0},e.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.renderEventResize=function(e,t,n){var i;for(i=0;i<e.length;i++)this.renderHighlight(e[i].componentFootprint);this.helperRenderer.renderEventResizingFootprints(e,t,n)},e.prototype.unrenderEventResize=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.removeSegPopover=function(){this.segPopover&&this.segPopover.hide()},e.prototype.limitRows=function(e){var t,n,i=this.eventRenderer.rowStructs||[];for(t=0;t<i.length;t++)this.unlimitRow(t),!1!==(n=!!e&&("number"==typeof e?e:this.computeRowLevelLimit(t)))&&this.limitRow(t,n)},e.prototype.computeRowLevelLimit=function(e){function t(e,t){r=Math.max(r,C(t).outerHeight())}var n,i,r,a=this.rowEls.eq(e),o=a.height(),s=this.eventRenderer.rowStructs[e].tbodyEl.children();for(n=0;n<s.length;n++)if(i=s.eq(n).removeClass("fc-limited"),r=0,i.find("> td > :first-child").each(t),i.position().top+r>o)return n;return!1},e.prototype.limitRow=function(t,n){var e,i,r,a,o,s,l,c,d,u,p,f,h,m,v,g=this,_=this.eventRenderer.rowStructs[t],y=[],b=0,w=function(e){for(;b<e;)s=g.getCellSegs(t,b,n),s.length&&(d=i[n-1][b],v=g.renderMoreLink(t,b,s),m=C("<div/>").append(v),d.append(m),y.push(m[0])),b++};if(n&&n<_.segLevels.length){for(e=_.segLevels[n-1],i=_.cellMatrix,r=_.tbodyEl.children().slice(n).addClass("fc-limited").get(),a=0;a<e.length;a++){for(o=e[a],w(o.leftCol),c=[],l=0;b<=o.rightCol;)s=this.getCellSegs(t,b,n),c.push(s),l+=s.length,b++;if(l){for(d=i[n-1][o.leftCol],u=d.attr("rowspan")||1,p=[],f=0;f<c.length;f++)h=C('<td class="fc-more-cell"/>').attr("rowspan",u),s=c[f],v=this.renderMoreLink(t,o.leftCol+f,[o].concat(s)),m=C("<div/>").append(v),h.append(m),p.push(h[0]),y.push(h[0]);d.addClass("fc-limited").after(C(p)),r.push(d[0])}}w(this.colCnt),_.moreEls=C(y),_.limitedEls=C(r)}},e.prototype.unlimitRow=function(e){var t=this.eventRenderer.rowStructs[e];t.moreEls&&(t.moreEls.remove(),t.moreEls=null),t.limitedEls&&(t.limitedEls.removeClass("fc-limited"),t.limitedEls=null)},e.prototype.renderMoreLink=function(l,c,d){var u=this,p=this.view;return C('<a class="fc-more"/>').text(this.getMoreLinkText(d.length)).on("click",function(e){var t=u.opt("eventLimitClick"),n=u.getCellDate(l,c),i=C(e.currentTarget),r=u.getCellEl(l,c),a=u.getCellSegs(l,c),o=u.resliceDaySegs(a,n),s=u.resliceDaySegs(d,n);"function"==typeof t&&(t=u.publiclyTrigger("eventLimitClick",{context:p,args:[{date:n.clone(),dayEl:r,moreEl:i,segs:o,hiddenSegs:s},e,p]})),"popover"===t?u.showSegPopover(l,c,i,o):"string"==typeof t&&p.calendar.zoomTo(n,t)})},e.prototype.showSegPopover=function(e,t,n,i){var r,a,o=this,s=this.view,l=n.parent();r=1===this.rowCnt?s.el:this.rowEls.eq(e),a={className:"fc-more-popover "+s.calendar.theme.getClass("popover"),content:this.renderSegPopoverContent(e,t,i),parentEl:s.el,top:r.offset().top,autoHide:!0,viewportConstrain:this.opt("popoverViewportConstrain"),hide:function(){o.popoverSegs&&o.triggerBeforeEventSegsDestroyed(o.popoverSegs),o.segPopover.removeElement(),o.segPopover=null,o.popoverSegs=null}},this.isRTL?a.right=l.offset().left+l.outerWidth()+1:a.left=l.offset().left-1,this.segPopover=new d.default(a),this.segPopover.show(),this.bindAllSegHandlersToEl(this.segPopover.el),this.triggerAfterEventSegsRendered(i)},e.prototype.renderSegPopoverContent=function(e,t,n){var i,r=this.view,a=r.calendar.theme,o=this.getCellDate(e,t).format(this.opt("dayPopoverFormat")),s=C('<div class="fc-header '+a.getClass("popoverHeader")+'"><span class="fc-close '+a.getIconClass("close")+'"></span><span class="fc-title">'+c.htmlEscape(o)+'</span><div class="fc-clear"/></div><div class="fc-body '+a.getClass("popoverContent")+'"><div class="fc-event-container"></div></div>'),l=s.find(".fc-event-container");for(n=this.eventRenderer.renderFgSegEls(n,!0),this.popoverSegs=n,i=0;i<n.length;i++)this.hitsNeeded(),n[i].hit=this.getCellHit(e,t),this.hitsNotNeeded(),l.append(n[i].el);return s},e.prototype.resliceDaySegs=function(e,t){var n,i,r,a=t.clone(),o=a.clone().add(1,"days"),s=new u.default(a,o),l=[];for(n=0;n<e.length;n++)i=e[n],(r=i.footprint.componentFootprint.unzonedRange.intersect(s))&&l.push(C.extend({},i,{footprint:new f.default(new p.default(r,i.footprint.componentFootprint.isAllDay),i.footprint.eventDef,i.footprint.eventInstance),isStart:i.isStart&&r.isStart,isEnd:i.isEnd&&r.isEnd}));return this.eventRenderer.sortEventSegs(l),l},e.prototype.getMoreLinkText=function(e){var t=this.opt("eventLimitText");return"function"==typeof t?t(e):"+"+e+" "+t},e.prototype.getCellSegs=function(e,t,n){for(var i,r=this.eventRenderer.rowStructs[e].segMatrix,a=n||0,o=[];a<r.length;)i=r[a][t],i&&o.push(i),a++;return o},e}(s.default);t.default=g,g.prototype.eventRendererClass=h.default,g.prototype.businessHourRendererClass=r.default,g.prototype.helperRendererClass=m.default,g.prototype.fillRendererClass=v.default,a.default.mixInto(g),l.default.mixInto(g)},function(e,t,n){function i(e){return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.colWeekNumbersVisible=!1,e}return r.__extends(e,t),e.prototype.renderHeadIntroHtml=function(){var e=this.view;return this.colWeekNumbersVisible?'<th class="fc-week-number '+e.calendar.theme.getClass("widgetHeader")+'" '+e.weekNumberStyleAttr()+"><span>"+l.htmlEscape(this.opt("weekNumberTitle"))+"</span></th>":""},e.prototype.renderNumberIntroHtml=function(e){var t=this.view,n=this.getCellDate(e,0);return this.colWeekNumbersVisible?'<td class="fc-week-number" '+t.weekNumberStyleAttr()+">"+t.buildGotoAnchorHtml({date:n,type:"week",forceOff:1===this.colCnt},n.format("w"))+"</td>":""},e.prototype.renderBgIntroHtml=function(){var e=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number '+e.calendar.theme.getClass("widgetContent")+'" '+e.weekNumberStyleAttr()+"></td>":""},e.prototype.renderIntroHtml=function(){var e=this.view;return this.colWeekNumbersVisible?'<td class="fc-week-number" '+e.weekNumberStyleAttr()+"></td>":""},e.prototype.getIsNumbersVisible=function(){return d.default.prototype.getIsNumbersVisible.apply(this,arguments)||this.colWeekNumbersVisible},e}(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(3),l=n(4),o=n(39),s=n(41),c=n(224),d=n(61),u=function(s){function e(e,t){var n=s.call(this,e,t)||this;return n.dayGrid=n.instantiateDayGrid(),n.dayGrid.isRigid=n.hasRigidRows(),n.opt("weekNumbers")&&(n.opt("weekNumbersWithinDays")?(n.dayGrid.cellWeekNumbersVisible=!0,n.dayGrid.colWeekNumbersVisible=!1):(n.dayGrid.cellWeekNumbersVisible=!1,n.dayGrid.colWeekNumbersVisible=!0)),n.addChild(n.dayGrid),n.scroller=new o.default({overflowX:"hidden",overflowY:"auto"}),n}return r.__extends(e,s),e.prototype.instantiateDayGrid=function(){return new(i(this.dayGridClass))(this)},e.prototype.executeDateRender=function(e){this.dayGrid.breakOnWeeks=/year|month|week/.test(e.currentRangeUnit),s.prototype.executeDateRender.call(this,e)},e.prototype.renderSkeleton=function(){var e,t;this.el.addClass("fc-basic-view").html(this.renderSkeletonHtml()),this.scroller.render(),e=this.scroller.el.addClass("fc-day-grid-container"),t=a('<div class="fc-day-grid" />').appendTo(e),this.el.find(".fc-body > tr > td").append(e),this.dayGrid.headContainerEl=this.el.find(".fc-head-container"),this.dayGrid.setElement(t)},e.prototype.unrenderSkeleton=function(){this.dayGrid.removeElement(),this.scroller.destroy()},e.prototype.renderSkeletonHtml=function(){var e=this.calendar.theme;return'<table class="'+e.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+e.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+e.getClass("widgetContent")+'"></td></tr></tbody></table>'},e.prototype.weekNumberStyleAttr=function(){return null!=this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},e.prototype.hasRigidRows=function(){var e=this.opt("eventLimit");return e&&"number"!=typeof e},e.prototype.updateSize=function(e,t,n){var i,r,a=this.opt("eventLimit"),o=this.dayGrid.headContainerEl.find(".fc-row");if(!this.dayGrid.rowEls)return void(t||(i=this.computeScrollerHeight(e),this.scroller.setHeight(i)));s.prototype.updateSize.call(this,e,t,n),this.dayGrid.colWeekNumbersVisible&&(this.weekNumberWidth=l.matchCellWidths(this.el.find(".fc-week-number"))),this.scroller.clear(),l.uncompensateScroll(o),this.dayGrid.removeSegPopover(),a&&"number"==typeof a&&this.dayGrid.limitRows(a),i=this.computeScrollerHeight(e),this.setGridHeight(i,t),a&&"number"!=typeof a&&this.dayGrid.limitRows(a),t||(this.scroller.setHeight(i),r=this.scroller.getScrollbarWidths(),(r.left||r.right)&&(l.compensateScroll(o,r),i=this.computeScrollerHeight(e),this.scroller.setHeight(i)),this.scroller.lockOverflow(r))},e.prototype.computeScrollerHeight=function(e){return e-l.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.setGridHeight=function(e,t){t?l.undistributeHeight(this.dayGrid.rowEls):l.distributeHeight(this.dayGrid.rowEls,e,!0)},e.prototype.computeInitialDateScroll=function(){return{top:0}},e.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},e.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},e}(s.default);t.default=u,u.prototype.dateProfileGeneratorClass=c.default,u.prototype.dayGridClass=d.default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){function s(e,t,n){var i;for(i=0;i<e.length;i++)if(!t(e[i].eventInstance.toLegacy(),n?n.toLegacy():null))return!1;return!0}function l(e,t){var n,i,r,a,o=t.toLegacy();for(n=0;n<e.length;n++){if(i=e[n].eventInstance,r=i.def,!1===(a=r.getOverlap()))return!1;if("function"==typeof a&&!a(i.toLegacy(),o))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),r=n(12),a=n(49),o=n(6),d=n(34),c=function(){function e(e,t){this.eventManager=e,this._calendar=t}return e.prototype.opt=function(e){return this._calendar.opt(e)},e.prototype.isEventInstanceGroupAllowed=function(e){var t,n=e.getEventDef(),i=this.eventRangesToEventFootprints(e.getAllEventRanges()),r=this.getPeerEventInstances(n),a=r.map(d.eventInstanceToEventRange),o=this.eventRangesToEventFootprints(a),s=n.getConstraint(),l=n.getOverlap(),c=this.opt("eventAllow");for(t=0;t<i.length;t++)if(!this.isFootprintAllowed(i[t].componentFootprint,o,s,l,i[t].eventInstance))return!1;if(c)for(t=0;t<i.length;t++)if(!1===c(i[t].componentFootprint.toLegacy(this._calendar),i[t].getEventLegacy()))return!1;return!0},e.prototype.getPeerEventInstances=function(e){return this.eventManager.getEventInstancesWithoutId(e.id)},e.prototype.isSelectionFootprintAllowed=function(e){var t,n=this.eventManager.getEventInstances(),i=n.map(d.eventInstanceToEventRange),r=this.eventRangesToEventFootprints(i);return!!this.isFootprintAllowed(e,r,this.opt("selectConstraint"),this.opt("selectOverlap"))&&(!(t=this.opt("selectAllow"))||!1!==t(e.toLegacy(this._calendar)))},e.prototype.isFootprintAllowed=function(e,t,n,i,r){var a,o;if(null!=n&&(a=this.constraintValToFootprints(n,e.isAllDay),!this.isFootprintWithinConstraints(e,a)))return!1;if(o=this.collectOverlapEventFootprints(t,e),!1===i){if(o.length)return!1}else if("function"==typeof i&&!s(o,i,r))return!1;return!(r&&!l(o,r))},e.prototype.isFootprintWithinConstraints=function(e,t){var n;for(n=0;n<t.length;n++)if(this.footprintContainsFootprint(t[n],e))return!0;return!1},e.prototype.constraintValToFootprints=function(e,t){var n;return"businessHours"===e?this.buildCurrentBusinessFootprints(t):"object"==typeof e?(n=this.parseEventDefToInstances(e),n?this.eventInstancesToFootprints(n):this.parseFootprints(e)):null!=e?(n=this.eventManager.getEventInstancesWithId(e),this.eventInstancesToFootprints(n)):void 0},e.prototype.buildCurrentBusinessFootprints=function(e){var t=this._calendar.view,n=t.get("businessHourGenerator"),i=t.dateProfile.activeUnzonedRange,r=n.buildEventInstanceGroup(e,i);return r?this.eventInstancesToFootprints(r.eventInstances):[]},e.prototype.eventInstancesToFootprints=function(e){var t=e.map(d.eventInstanceToEventRange);return this.eventRangesToEventFootprints(t).map(d.eventFootprintToComponentFootprint)},e.prototype.collectOverlapEventFootprints=function(e,t){var n,i=[];for(n=0;n<e.length;n++)this.footprintsIntersect(t,e[n].componentFootprint)&&i.push(e[n]);return i},e.prototype.parseEventDefToInstances=function(e){var t=this.eventManager,n=a.default.parse(e,new o.default(this._calendar));return!!n&&n.buildInstances(t.currentPeriod.unzonedRange)},e.prototype.eventRangesToEventFootprints=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push.apply(n,this.eventRangeToEventFootprints(e[t]));return n},e.prototype.eventRangeToEventFootprints=function(e){return[d.eventRangeToEventFootprint(e)]},e.prototype.parseFootprints=function(e){var t,n;return e.start&&(t=this._calendar.moment(e.start),t.isValid()||(t=null)),e.end&&(n=this._calendar.moment(e.end),n.isValid()||(n=null)),[new r.default(new i.default(t,n),t&&!t.hasTime()||n&&!n.hasTime())]},e.prototype.footprintContainsFootprint=function(e,t){return e.unzonedRange.containsRange(t.unzonedRange)},e.prototype.footprintsIntersect=function(e,t){return e.unzonedRange.intersectsWith(t.unzonedRange)},e}();t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(4),a=n(14),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.defineStandardProps=function(e){var t=this.prototype;t.hasOwnProperty("standardPropMap")||(t.standardPropMap=Object.create(t.standardPropMap)),r.copyOwnProps(e,t.standardPropMap)},t.copyVerbatimStandardProps=function(e,t){var n,i=this.prototype.standardPropMap;for(n in i)null!=e[n]&&!0===i[n]&&(t[n]=e[n])},t.prototype.applyProps=function(e){var t,n=this.standardPropMap,i={},r={};for(t in e)!0===n[t]?this[t]=e[t]:!1===n[t]?i[t]=e[t]:r[t]=e[t];return this.applyMiscProps(r),this.applyManualStandardProps(i)},t.prototype.applyManualStandardProps=function(e){return!0},t.prototype.applyMiscProps=function(e){},t.prototype.isStandardProp=function(e){return e in this.standardPropMap},t}(a.default);t.default=o,o.prototype.standardPropMap={}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.def=e,this.dateProfile=t}return e.prototype.toLegacy=function(){var e=this.dateProfile,t=this.def.toLegacy();return t.start=e.start.clone(),t.end=e.end?e.end.clone():null,t},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),a=n(0),o=n(33),l=n(205),c=n(17),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.isAllDay=function(){return!this.startTime&&!this.endTime},e.prototype.buildInstances=function(e){for(var t,n,i,r=this.source.calendar,a=e.getStart(),o=e.getEnd(),s=[];a.isBefore(o);)this.dowHash&&!this.dowHash[a.day()]||(t=r.applyTimezone(a),n=t.clone(),i=null,this.startTime?n.time(this.startTime):n.stripTime(),this.endTime&&(i=t.clone().time(this.endTime)),s.push(new l.default(this,new c.default(n,i,r)))),a.add(1,"days");return s},e.prototype.setDow=function(e){this.dowHash||(this.dowHash={});for(var t=0;t<e.length;t++)this.dowHash[e[t]]=!0},e.prototype.clone=function(){var e=t.prototype.clone.call(this);return e.startTime&&(e.startTime=a.duration(this.startTime)),e.endTime&&(e.endTime=a.duration(this.endTime)),this.dowHash&&(e.dowHash=r.extend({},this.dowHash)),e},e}(o.default);t.default=s,s.prototype.applyProps=function(e){var t=o.default.prototype.applyProps.call(this,e);return e.start&&(this.startTime=a.duration(e.start)),e.end&&(this.endTime=a.duration(e.end)),e.dow&&this.setDow(e.dow),t},s.defineStandardProps({start:!1,end:!1,dow:!1})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n){this.unzonedRange=e,this.eventDef=t,n&&(this.eventInstance=n)}return e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),r=n(34),a=n(18),i=n(206),s=n(6),l={start:"09:00",end:"17:00",dow:[1,2,3,4,5],rendering:"inverse-background"},c=function(){function e(e,t){this.rawComplexDef=e,this.calendar=t}return e.prototype.buildEventInstanceGroup=function(e,t){var n,i=this.buildEventDefs(e);if(i.length)return n=new a.default(r.eventDefsToEventInstances(i,t)),n.explicitEventDef=i[0],n},e.prototype.buildEventDefs=function(e){var t,n=this.rawComplexDef,i=[],r=!1,a=[];for(!0===n?i=[{}]:o.isPlainObject(n)?i=[n]:o.isArray(n)&&(i=n,r=!0),t=0;t<i.length;t++)r&&!i[t].dow||a.push(this.buildEventDef(e,i[t]));return a},e.prototype.buildEventDef=function(e,t){var n=o.extend({},l,t);return e&&(n.start=null,n.end=null),i.default.parse(n,new s.default(this.calendar))},e}();t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(38),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(r.default);t.default=a,a.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button",cornerLeft:"fc-corner-left",cornerRight:"fc-corner-right",stateDefault:"fc-state-default",stateActive:"fc-state-active",stateDisabled:"fc-state-disabled",stateHover:"fc-state-hover",stateDown:"fc-state-down",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},a.prototype.baseIconClass="fc-icon",a.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-left-single-arrow",next:"fc-icon-right-single-arrow",prevYear:"fc-icon-left-double-arrow",nextYear:"fc-icon-right-double-arrow"},a.prototype.iconOverrideOption="buttonIcons",a.prototype.iconOverrideCustomButtonOption="icon",a.prototype.iconOverridePrefix="fc-icon-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(38),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(r.default);t.default=a,a.prototype.classes={widget:"ui-widget",widgetHeader:"ui-widget-header",widgetContent:"ui-widget-content",buttonGroup:"fc-button-group",button:"ui-button",cornerLeft:"ui-corner-left",cornerRight:"ui-corner-right",stateDefault:"ui-state-default",stateActive:"ui-state-active",stateDisabled:"ui-state-disabled",stateHover:"ui-state-hover",stateDown:"ui-state-down",today:"ui-state-highlight",popoverHeader:"ui-widget-header",popoverContent:"ui-widget-content",headerRow:"ui-widget-header",dayRow:"ui-widget-content",listView:"ui-widget-content"},a.prototype.baseIconClass="ui-icon",a.prototype.iconClasses={close:"ui-icon-closethick",prev:"ui-icon-circle-triangle-w",next:"ui-icon-circle-triangle-e",prevYear:"ui-icon-seek-prev",nextYear:"ui-icon-seek-next"},a.prototype.iconOverrideOption="themeButtonIcons",a.prototype.iconOverrideCustomButtonOption="themeIcon",a.prototype.iconOverridePrefix="ui-icon-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(3),a=n(19),o=n(6),s=function(n){function e(){return null!==n&&n.apply(this,arguments)||this}return i.__extends(e,n),e.parse=function(e,t){var n;return r.isFunction(e.events)?n=e:r.isFunction(e)&&(n={events:e}),!!n&&o.default.parse.call(this,n,t)},e.prototype.fetch=function(e,n,i){var r=this;return this.calendar.pushLoading(),a.default.construct(function(t){r.func.call(r.calendar,e.clone(),n.clone(),i,function(e){r.calendar.popLoading(),t(r.parseEventDefs(e))})})},e.prototype.getPrimitive=function(){return this.func},e.prototype.applyManualStandardProps=function(e){var t=n.prototype.applyManualStandardProps.call(this,e);return this.func=e.events,t},e}(o.default);t.default=s,s.defineStandardProps({events:!1})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),u=n(3),p=n(4),r=n(19),a=n(6),o=function(e){function d(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(d,e),d.parse=function(e,t){var n;return"string"==typeof e.url?n=e:"string"==typeof e&&(n={url:e}),!!n&&a.default.parse.call(this,n,t)},d.prototype.fetch=function(e,t,n){var o=this,i=this.ajaxSettings,s=i.success,l=i.error,c=this.buildRequestParams(e,t,n);return this.calendar.pushLoading(),r.default.construct(function(r,a){u.ajax(u.extend({},d.AJAX_DEFAULTS,i,{url:o.url,data:c,success:function(e,t,n){var i;o.calendar.popLoading(),e?(i=p.applyAll(s,o,[e,t,n]),u.isArray(i)&&(e=i),r(o.parseEventDefs(e))):a()},error:function(e,t,n){o.calendar.popLoading(),p.applyAll(l,o,[e,t,n]),a()}}))})},d.prototype.buildRequestParams=function(e,t,n){var i,r,a,o,s=this.calendar,l=this.ajaxSettings,c={};return i=this.startParam,null==i&&(i=s.opt("startParam")),r=this.endParam,null==r&&(r=s.opt("endParam")),a=this.timezoneParam,null==a&&(a=s.opt("timezoneParam")),o=u.isFunction(l.data)?l.data():l.data||{},u.extend(c,o),c[i]=e.format(),c[r]=t.format(),n&&"local"!==n&&(c[a]=n),c},d.prototype.getPrimitive=function(){return this.url},d.prototype.applyMiscProps=function(e){this.ajaxSettings=e},d.AJAX_DEFAULTS={dataType:"json",cache:!1},d}(a.default);t.default=o,o.defineStandardProps({url:!0,startParam:!0,endParam:!0,timezoneParam:!0})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(11),r=function(){function e(){this.q=[],this.isPaused=!1,this.isRunning=!1}return e.prototype.queue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.q.push.apply(this.q,e),this.tryStart()},e.prototype.pause=function(){this.isPaused=!0},e.prototype.resume=function(){this.isPaused=!1,this.tryStart()},e.prototype.getIsIdle=function(){return!this.isRunning&&!this.isPaused},e.prototype.tryStart=function(){!this.isRunning&&this.canRunNext()&&(this.isRunning=!0,this.trigger("start"),this.runRemaining())},e.prototype.canRunNext=function(){return!this.isPaused&&this.q.length},e.prototype.runRemaining=function(){var e,t,n=this;do{if(e=this.q.shift(),(t=this.runTask(e))&&t.then)return void t.then(function(){n.canRunNext()&&n.runRemaining()})}while(this.canRunNext());this.trigger("stop"),this.isRunning=!1,this.tryStart()},e.prototype.runTask=function(e){return e()},e}();t.default=r,i.default.mixInto(r)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(213),a=function(n){function e(e){var t=n.call(this)||this;return t.waitsByNamespace=e||{},t}return i.__extends(e,n),e.prototype.queue=function(e,t,n){var i,r={func:e,namespace:t,type:n};t&&(i=this.waitsByNamespace[t]),this.waitNamespace&&(t===this.waitNamespace&&null!=i?this.delayWait(i):(this.clearWait(),this.tryStart())),this.compoundTask(r)&&(this.waitNamespace||null==i?this.tryStart():this.startWait(t,i))},e.prototype.startWait=function(e,t){this.waitNamespace=e,this.spawnWait(t)},e.prototype.delayWait=function(e){clearTimeout(this.waitId),this.spawnWait(e)},e.prototype.spawnWait=function(e){var t=this;this.waitId=setTimeout(function(){t.waitNamespace=null,t.tryStart()},e)},e.prototype.clearWait=function(){this.waitNamespace&&(clearTimeout(this.waitId),this.waitId=null,this.waitNamespace=null)},e.prototype.canRunNext=function(){if(!n.prototype.canRunNext.call(this))return!1;if(this.waitNamespace){for(var e=this.q,t=0;t<e.length;t++)if(e[t].namespace!==this.waitNamespace)return!0;return!1}return!0},e.prototype.runTask=function(e){e.func()},e.prototype.compoundTask=function(e){var t,n,i=this.q,r=!0;if(e.namespace&&"destroy"===e.type)for(t=i.length-1;t>=0;t--)switch(n=i[t],n.type){case"init":r=!1;case"add":case"remove":i.splice(t,1)}return r&&i.push(e),r},e}(r.default);t.default=a},function(e,t,n){function a(e){var t,n,i,r=[];for(t in e)for(n=e[t].eventInstances,i=0;i<n.length;i++)r.push(n[i].toLegacy());return r}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),s=n(3),l=n(0),c=n(4),d=n(10),u=n(47),i=n(233),p=n(34),r=function(i){function r(e,t){var n=i.call(this)||this;return n.isRTL=!1,n.hitsNeededDepth=0,n.hasAllDayBusinessHours=!1,n.isDatesRendered=!1,e&&(n.view=e),t&&(n.options=t),n.uid=String(r.guid++),n.childrenByUid={},n.nextDayThreshold=l.duration(n.opt("nextDayThreshold")),n.isRTL=n.opt("isRTL"),n.fillRendererClass&&(n.fillRenderer=new n.fillRendererClass(n)),n.eventRendererClass&&(n.eventRenderer=new n.eventRendererClass(n,n.fillRenderer)),n.helperRendererClass&&n.eventRenderer&&(n.helperRenderer=new n.helperRendererClass(n,n.eventRenderer)),n.businessHourRendererClass&&n.fillRenderer&&(n.businessHourRenderer=new n.businessHourRendererClass(n,n.fillRenderer)),n}return o.__extends(r,i),r.prototype.addChild=function(e){return!this.childrenByUid[e.uid]&&(this.childrenByUid[e.uid]=e,!0)},r.prototype.removeChild=function(e){return!!this.childrenByUid[e.uid]&&(delete this.childrenByUid[e.uid],!0)},r.prototype.updateSize=function(e,t,n){this.callChildren("updateSize",arguments)},r.prototype.opt=function(e){return this._getView().opt(e)},r.prototype.publiclyTrigger=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getCalendar();return n.publiclyTrigger.apply(n,e)},r.prototype.hasPublicHandlers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getCalendar();return n.hasPublicHandlers.apply(n,e)},r.prototype.executeDateRender=function(e){this.dateProfile=e,this.renderDates(e),this.isDatesRendered=!0,this.callChildren("executeDateRender",arguments)},r.prototype.executeDateUnrender=function(){this.callChildren("executeDateUnrender",arguments),this.dateProfile=null,this.unrenderDates(),this.isDatesRendered=!1},r.prototype.renderDates=function(e){},r.prototype.unrenderDates=function(){},r.prototype.getNowIndicatorUnit=function(){},r.prototype.renderNowIndicator=function(e){this.callChildren("renderNowIndicator",arguments)},r.prototype.unrenderNowIndicator=function(){this.callChildren("unrenderNowIndicator",arguments)},r.prototype.renderBusinessHours=function(e){this.businessHourRenderer&&this.businessHourRenderer.render(e),this.callChildren("renderBusinessHours",arguments)},r.prototype.unrenderBusinessHours=function(){this.callChildren("unrenderBusinessHours",arguments),this.businessHourRenderer&&this.businessHourRenderer.unrender()},r.prototype.executeEventRender=function(e){this.eventRenderer?(this.eventRenderer.rangeUpdated(),this.eventRenderer.render(e)):this.renderEvents&&this.renderEvents(a(e)),this.callChildren("executeEventRender",arguments)},r.prototype.executeEventUnrender=function(){this.callChildren("executeEventUnrender",arguments),this.eventRenderer?this.eventRenderer.unrender():this.destroyEvents&&this.destroyEvents()},r.prototype.getBusinessHourSegs=function(){var t=this.getOwnBusinessHourSegs();return this.iterChildren(function(e){t.push.apply(t,e.getBusinessHourSegs())}),t},r.prototype.getOwnBusinessHourSegs=function(){return this.businessHourRenderer?this.businessHourRenderer.getSegs():[]},r.prototype.getEventSegs=function(){var t=this.getOwnEventSegs();return this.iterChildren(function(e){t.push.apply(t,e.getEventSegs())}),t},r.prototype.getOwnEventSegs=function(){return this.eventRenderer?this.eventRenderer.getSegs():[]},r.prototype.triggerAfterEventsRendered=function(){this.triggerAfterEventSegsRendered(this.getEventSegs()),this.publiclyTrigger("eventAfterAllRender",{context:this,args:[this]})},r.prototype.triggerAfterEventSegsRendered=function(e){var n=this;this.hasPublicHandlers("eventAfterRender")&&e.forEach(function(e){var t;e.el&&(t=e.footprint.getEventLegacy(),n.publiclyTrigger("eventAfterRender",{context:t,args:[t,e.el,n]}))})},r.prototype.triggerBeforeEventsDestroyed=function(){this.triggerBeforeEventSegsDestroyed(this.getEventSegs())},r.prototype.triggerBeforeEventSegsDestroyed=function(e){var n=this;this.hasPublicHandlers("eventDestroy")&&e.forEach(function(e){var t;e.el&&(t=e.footprint.getEventLegacy(),n.publiclyTrigger("eventDestroy",{context:t,args:[t,e.el,n]}))})},r.prototype.showEventsWithId=function(t){this.getEventSegs().forEach(function(e){e.footprint.eventDef.id===t&&e.el&&e.el.css("visibility","")}),this.callChildren("showEventsWithId",arguments)},r.prototype.hideEventsWithId=function(t){this.getEventSegs().forEach(function(e){e.footprint.eventDef.id===t&&e.el&&e.el.css("visibility","hidden")}),this.callChildren("hideEventsWithId",arguments)},r.prototype.renderDrag=function(t,n,i){var r=!1;return this.iterChildren(function(e){e.renderDrag(t,n,i)&&(r=!0)}),r},r.prototype.unrenderDrag=function(){this.callChildren("unrenderDrag",arguments)},r.prototype.renderEventResize=function(e,t,n){this.callChildren("renderEventResize",arguments)},r.prototype.unrenderEventResize=function(){this.callChildren("unrenderEventResize",arguments)},r.prototype.renderSelectionFootprint=function(e){this.renderHighlight(e),this.callChildren("renderSelectionFootprint",arguments)},r.prototype.unrenderSelection=function(){this.unrenderHighlight(),this.callChildren("unrenderSelection",arguments)},r.prototype.renderHighlight=function(e){this.fillRenderer&&this.fillRenderer.renderFootprint("highlight",e,{getClasses:function(){return["fc-highlight"]}}),this.callChildren("renderHighlight",arguments)},r.prototype.unrenderHighlight=function(){this.fillRenderer&&this.fillRenderer.unrender("highlight"),this.callChildren("unrenderHighlight",arguments)},r.prototype.hitsNeeded=function(){this.hitsNeededDepth++||this.prepareHits(),this.callChildren("hitsNeeded",arguments)},r.prototype.hitsNotNeeded=function(){this.hitsNeededDepth&&!--this.hitsNeededDepth&&this.releaseHits(),this.callChildren("hitsNotNeeded",arguments)},r.prototype.prepareHits=function(){},r.prototype.releaseHits=function(){},r.prototype.queryHit=function(e,t){var n,i,r=this.childrenByUid;for(n in r)if(i=r[n].queryHit(e,t))break;return i},r.prototype.getSafeHitFootprint=function(e){var t=this.getHitFootprint(e);return this.dateProfile.activeUnzonedRange.containsRange(t.unzonedRange)?t:null},r.prototype.getHitFootprint=function(e){},r.prototype.getHitEl=function(e){},r.prototype.eventRangesToEventFootprints=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push.apply(n,this.eventRangeToEventFootprints(e[t]));return n},r.prototype.eventRangeToEventFootprints=function(e){return[p.eventRangeToEventFootprint(e)]},r.prototype.eventFootprintsToSegs=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push.apply(n,this.eventFootprintToSegs(e[t]));return n},r.prototype.eventFootprintToSegs=function(e){var t,n,i,r=e.componentFootprint.unzonedRange;for(t=this.componentFootprintToSegs(e.componentFootprint),n=0;n<t.length;n++)i=t[n],r.isStart||(i.isStart=!1),r.isEnd||(i.isEnd=!1),i.footprint=e;return t},r.prototype.componentFootprintToSegs=function(e){return[]},r.prototype.callChildren=function(t,n){this.iterChildren(function(e){e[t].apply(e,n)})},r.prototype.iterChildren=function(e){var t,n=this.childrenByUid;for(t in n)e(n[t])},r.prototype._getCalendar=function(){var e=this;return e.calendar||e.view.calendar},r.prototype._getView=function(){return this.view},r.prototype._getDateProfile=function(){return this._getView().get("dateProfile")},r.prototype.buildGotoAnchorHtml=function(e,t,n){var i,r,a,o;return s.isPlainObject(e)?(i=e.date,r=e.type,a=e.forceOff):i=e,i=d.default(i),o={date:i.format("YYYY-MM-DD"),type:r||"day"},"string"==typeof t&&(n=t,t=null),t=t?" "+c.attrsToStr(t):"",n=n||"",!a&&this.opt("navLinks")?"<a"+t+' data-goto="'+c.htmlEscape(JSON.stringify(o))+'">'+n+"</a>":"<span"+t+">"+n+"</span>"},r.prototype.getAllDayHtml=function(){return this.opt("allDayHtml")||c.htmlEscape(this.opt("allDayText"))},r.prototype.getDayClasses=function(e,t){var n,i=this._getView(),r=[];return this.dateProfile.activeUnzonedRange.containsDate(e)?(r.push("fc-"+c.dayIDs[e.day()]),i.isDateInOtherMonth(e,this.dateProfile)&&r.push("fc-other-month"),n=i.calendar.getNow(),e.isSame(n,"day")?(r.push("fc-today"),!0!==t&&r.push(i.calendar.theme.getClass("today"))):e<n?r.push("fc-past"):r.push("fc-future")):r.push("fc-disabled-day"),r},r.prototype.formatRange=function(e,t,n,i){var r=e.end;return t&&(r=r.clone().subtract(1)),u.formatRange(e.start,r,n,i,this.isRTL)},r.prototype.currentRangeAs=function(e){return this._getDateProfile().currentUnzonedRange.as(e)},r.prototype.computeDayRange=function(e){var t=this._getCalendar(),n=t.msToUtcMoment(e.startMs,!0),i=t.msToUtcMoment(e.endMs),r=+i.time(),a=i.clone().stripTime();return r&&r>=this.nextDayThreshold&&a.add(1,"days"),a<=n&&(a=n.clone().add(1,"days")),{start:n,end:a}},r.prototype.isMultiDayRange=function(e){var t=this.computeDayRange(e);return t.end.diff(t.start,"days")>1},r.guid=0,r}(i.default);t.default=r},function(e,t,n){function o(e,t){return null==t?e:s.isFunction(t)?e.filter(t):(t+="",e.filter(function(e){return e.id==t||e._id===t}))}Object.defineProperty(t,"__esModule",{value:!0});var s=n(3),i=n(0),l=n(4),r=n(31),a=n(234),c=n(20),d=n(11),u=n(7),p=n(235),f=n(236),h=n(237),m=n(203),v=n(30),g=n(10),_=n(5),y=n(12),b=n(17),w=n(238),C=n(208),x=n(37),k=n(49),S=n(13),D=n(36),T=n(6),$=n(51),E=function(){function e(e,t){this.loadingLevel=0,this.ignoreUpdateViewSize=0,this.freezeContentHeightDepth=0,c.default.needed(),this.el=e,this.viewsByType={},this.optionsManager=new f.default(this,t),this.viewSpecManager=new h.default(this.optionsManager,this),this.initMomentInternals(),this.initCurrentDate(),this.initEventManager(),this.constraints=new m.default(this.eventManager,this),this.constructed()}return e.prototype.constructed=function(){},e.prototype.getView=function(){return this.view},e.prototype.publiclyTrigger=function(e,t){var n,i,r=this.opt(e);if(s.isPlainObject(t)?(n=t.context,i=t.args):s.isArray(t)&&(i=t),null==n&&(n=this.el[0]),i||(i=[]),this.triggerWith(e,n,i),r)return r.apply(n,i)},e.prototype.hasPublicHandlers=function(e){return this.hasHandlers(e)||this.opt(e)},e.prototype.option=function(e,t){var n;if("string"==typeof e){if(void 0===t)return this.optionsManager.get(e);n={},n[e]=t,this.optionsManager.add(n)}else"object"==typeof e&&this.optionsManager.add(e)},e.prototype.opt=function(e){return this.optionsManager.get(e)},e.prototype.instantiateView=function(e){var t=this.viewSpecManager.getViewSpec(e);return new t.class(this,t)},e.prototype.isValidViewType=function(e){return Boolean(this.viewSpecManager.getViewSpec(e))},e.prototype.changeView=function(e,t){t&&(t.start&&t.end?this.optionsManager.recordOverrides({visibleRange:t}):this.currentDate=this.moment(t).stripZone()),this.renderView(e)},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.viewSpecManager.getViewSpec(t)||this.viewSpecManager.getUnitViewSpec(t),this.currentDate=e.clone(),this.renderView(n?n.type:null)},e.prototype.initCurrentDate=function(){var e=this.opt("defaultDate");this.currentDate=null!=e?this.moment(e).stripZone():this.getNow()},e.prototype.prev=function(){var e=this.view,t=e.dateProfileGenerator.buildPrev(e.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},e.prototype.next=function(){var e=this.view,t=e.dateProfileGenerator.buildNext(e.get("dateProfile"));t.isValid&&(this.currentDate=t.date,this.renderView())},e.prototype.prevYear=function(){this.currentDate.add(-1,"years"),this.renderView()},e.prototype.nextYear=function(){this.currentDate.add(1,"years"),this.renderView()},e.prototype.today=function(){this.currentDate=this.getNow(),this.renderView()},e.prototype.gotoDate=function(e){this.currentDate=this.moment(e).stripZone(),this.renderView()},e.prototype.incrementDate=function(e){this.currentDate.add(i.duration(e)),this.renderView()},e.prototype.getDate=function(){return this.applyTimezone(this.currentDate)},e.prototype.pushLoading=function(){this.loadingLevel++||this.publiclyTrigger("loading",[!0,this.view])},e.prototype.popLoading=function(){--this.loadingLevel||this.publiclyTrigger("loading",[!1,this.view])},e.prototype.render=function(){this.contentEl?this.elementVisible()&&(this.calcSize(),this.updateViewSize()):this.initialRender()},e.prototype.initialRender=function(){var o=this,r=this.el;r.addClass("fc"),r.on("click.fc","a[data-goto]",function(e){var t=s(e.currentTarget),n=t.data("goto"),i=o.moment(n.date),r=n.type,a=o.view.opt("navLink"+l.capitaliseFirstLetter(r)+"Click");"function"==typeof a?a(i,e):("string"==typeof a&&(r=a),o.zoomTo(i,r))}),this.optionsManager.watch("settingTheme",["?theme","?themeSystem"],function(e){var t=$.getThemeSystemClass(e.themeSystem||e.theme),n=new t(o.optionsManager),i=n.getClass("widget");o.theme=n,i&&r.addClass(i)},function(){var e=o.theme.getClass("widget");o.theme=null,e&&r.removeClass(e)}),this.optionsManager.watch("settingBusinessHourGenerator",["?businessHours"],function(e){o.businessHourGenerator=new C.default(e.businessHours,o),o.view&&o.view.set("businessHourGenerator",o.businessHourGenerator)},function(){o.businessHourGenerator=null}),this.optionsManager.watch("applyingDirClasses",["?isRTL","?locale"],function(e){r.toggleClass("fc-ltr",!e.isRTL),r.toggleClass("fc-rtl",e.isRTL)}),this.contentEl=s("<div class='fc-view-container'/>").prependTo(r),this.initToolbars(),this.renderHeader(),this.renderFooter(),this.renderView(this.opt("defaultView")),this.opt("handleWindowResize")&&s(window).resize(this.windowResizeProxy=l.debounce(this.windowResize.bind(this),this.opt("windowResizeDelay")))},e.prototype.destroy=function(){this.view&&this.clearView(),this.toolbarsManager.proxyCall("removeElement"),this.contentEl.remove(),this.el.removeClass("fc fc-ltr fc-rtl"),this.optionsManager.unwatch("settingTheme"),this.optionsManager.unwatch("settingBusinessHourGenerator"),this.el.off(".fc"),this.windowResizeProxy&&(s(window).unbind("resize",this.windowResizeProxy),this.windowResizeProxy=null),c.default.unneeded()},e.prototype.elementVisible=function(){return this.el.is(":visible")},e.prototype.bindViewHandlers=function(t){var n=this;t.watch("titleForCalendar",["title"],function(e){t===n.view&&n.setToolbarsTitle(e.title)}),t.watch("dateProfileForCalendar",["dateProfile"],function(e){t===n.view&&(n.currentDate=e.dateProfile.date,n.updateToolbarButtons(e.dateProfile))})},e.prototype.unbindViewHandlers=function(e){e.unwatch("titleForCalendar"),e.unwatch("dateProfileForCalendar")},e.prototype.renderView=function(e){var t,n=this.view;this.freezeContentHeight(),n&&e&&n.type!==e&&this.clearView(),!this.view&&e&&(t=this.view=this.viewsByType[e]||(this.viewsByType[e]=this.instantiateView(e)),this.bindViewHandlers(t),t.startBatchRender(),t.setElement(s("<div class='fc-view fc-"+e+"-view' />").appendTo(this.contentEl)),this.toolbarsManager.proxyCall("activateButton",e)),this.view&&(this.view.get("businessHourGenerator")!==this.businessHourGenerator&&this.view.set("businessHourGenerator",this.businessHourGenerator),this.view.setDate(this.currentDate),t&&t.stopBatchRender()),this.thawContentHeight()},e.prototype.clearView=function(){var e=this.view;this.toolbarsManager.proxyCall("deactivateButton",e.type),this.unbindViewHandlers(e),e.removeElement(),e.unsetDate(),this.view=null},e.prototype.reinitView=function(){var e=this.view,t=e.queryScroll();this.freezeContentHeight(),this.clearView(),this.calcSize(),this.renderView(e.type),this.view.applyScroll(t),this.thawContentHeight()},e.prototype.getSuggestedViewHeight=function(){return null==this.suggestedViewHeight&&this.calcSize(),this.suggestedViewHeight},e.prototype.isHeightAuto=function(){return"auto"===this.opt("contentHeight")||"auto"===this.opt("height")},e.prototype.updateViewSize=function(e){void 0===e&&(e=!1);var t,n=this.view;if(!this.ignoreUpdateViewSize&&n)return e&&(this.calcSize(),t=n.queryScroll()),this.ignoreUpdateViewSize++,n.updateSize(this.getSuggestedViewHeight(),this.isHeightAuto(),e),this.ignoreUpdateViewSize--,e&&n.applyScroll(t),!0},e.prototype.calcSize=function(){this.elementVisible()&&this._calcSize()},e.prototype._calcSize=function(){var e=this.opt("contentHeight"),t=this.opt("height");this.suggestedViewHeight="number"==typeof e?e:"function"==typeof e?e():"number"==typeof t?t-this.queryToolbarsHeight():"function"==typeof t?t()-this.queryToolbarsHeight():"parent"===t?this.el.parent().height()-this.queryToolbarsHeight():Math.round(this.contentEl.width()/Math.max(this.opt("aspectRatio"),.5))},e.prototype.windowResize=function(e){e.target===window&&this.view&&this.view.isDatesRendered&&this.updateViewSize(!0)&&this.publiclyTrigger("windowResize",[this.view])},e.prototype.freezeContentHeight=function(){this.freezeContentHeightDepth++||this.forceFreezeContentHeight()},e.prototype.forceFreezeContentHeight=function(){this.contentEl.css({width:"100%",height:this.contentEl.height(),overflow:"hidden"})},e.prototype.thawContentHeight=function(){this.freezeContentHeightDepth--,this.contentEl.css({width:"",height:"",overflow:""}),this.freezeContentHeightDepth&&this.forceFreezeContentHeight()},e.prototype.initToolbars=function(){this.header=new p.default(this,this.computeHeaderOptions()),this.footer=new p.default(this,this.computeFooterOptions()),this.toolbarsManager=new a.default([this.header,this.footer])},e.prototype.computeHeaderOptions=function(){return{extraClasses:"fc-header-toolbar",layout:this.opt("header")}},e.prototype.computeFooterOptions=function(){return{extraClasses:"fc-footer-toolbar",layout:this.opt("footer")}},e.prototype.renderHeader=function(){var e=this.header;e.setToolbarOptions(this.computeHeaderOptions()),e.render(),e.el&&this.el.prepend(e.el)},e.prototype.renderFooter=function(){var e=this.footer;e.setToolbarOptions(this.computeFooterOptions()),e.render(),e.el&&this.el.append(e.el)},e.prototype.setToolbarsTitle=function(e){this.toolbarsManager.proxyCall("updateTitle",e)},e.prototype.updateToolbarButtons=function(e){var t=this.getNow(),n=this.view,i=n.dateProfileGenerator.build(t),r=n.dateProfileGenerator.buildPrev(n.get("dateProfile")),a=n.dateProfileGenerator.buildNext(n.get("dateProfile"));this.toolbarsManager.proxyCall(i.isValid&&!e.currentUnzonedRange.containsDate(t)?"enableButton":"disableButton","today"),this.toolbarsManager.proxyCall(r.isValid?"enableButton":"disableButton","prev"),this.toolbarsManager.proxyCall(a.isValid?"enableButton":"disableButton","next")},e.prototype.queryToolbarsHeight=function(){return this.toolbarsManager.items.reduce(function(e,t){return e+(t.el?t.el.outerHeight(!0):0)},0)},e.prototype.select=function(e,t){this.view.select(this.buildSelectFootprint.apply(this,arguments))},e.prototype.unselect=function(){this.view&&this.view.unselect()},e.prototype.buildSelectFootprint=function(e,t){var n,i=this.moment(e).stripZone();return n=t?this.moment(t).stripZone():i.hasTime()?i.clone().add(this.defaultTimedEventDuration):i.clone().add(this.defaultAllDayEventDuration),new y.default(new _.default(i,n),!i.hasTime())},e.prototype.initMomentInternals=function(){var a=this;this.defaultAllDayEventDuration=i.duration(this.opt("defaultAllDayEventDuration")),this.defaultTimedEventDuration=i.duration(this.opt("defaultTimedEventDuration")),this.optionsManager.watch("buildingMomentLocale",["?locale","?monthNames","?monthNamesShort","?dayNames","?dayNamesShort","?firstDay","?weekNumberCalculation"],function(e){var t,n=e.weekNumberCalculation,i=e.firstDay;"iso"===n&&(n="ISO");var r=Object.create(v.getMomentLocaleData(e.locale));e.monthNames&&(r._months=e.monthNames),e.monthNamesShort&&(r._monthsShort=e.monthNamesShort),e.dayNames&&(r._weekdays=e.dayNames),e.dayNamesShort&&(r._weekdaysShort=e.dayNamesShort),null==i&&"ISO"===n&&(i=1),null!=i&&(t=Object.create(r._week),t.dow=i,r._week=t),"ISO"!==n&&"local"!==n&&"function"!=typeof n||(r._fullCalendar_weekCalc=n),a.localeData=r,a.currentDate&&a.localizeMoment(a.currentDate)})},e.prototype.moment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n;return"local"===this.opt("timezone")?(n=g.default.apply(null,e),n.hasTime()&&n.local()):n="UTC"===this.opt("timezone")?g.default.utc.apply(null,e):g.default.parseZone.apply(null,e),this.localizeMoment(n),n},e.prototype.msToMoment=function(e,t){var n=g.default.utc(e);return t?n.stripTime():n=this.applyTimezone(n),this.localizeMoment(n),n},e.prototype.msToUtcMoment=function(e,t){var n=g.default.utc(e);return t&&n.stripTime(),this.localizeMoment(n),n},e.prototype.localizeMoment=function(e){e._locale=this.localeData},e.prototype.getIsAmbigTimezone=function(){return"local"!==this.opt("timezone")&&"UTC"!==this.opt("timezone")},e.prototype.applyTimezone=function(e){if(!e.hasTime())return e.clone();var t,n=this.moment(e.toArray()),i=e.time().asMilliseconds()-n.time().asMilliseconds();return i&&(t=n.clone().add(i),e.time().asMilliseconds()-t.time().asMilliseconds()==0&&(n=t)),n},e.prototype.footprintToDateProfile=function(e,t){void 0===t&&(t=!1);var n,i=g.default.utc(e.unzonedRange.startMs);return t||(n=g.default.utc(e.unzonedRange.endMs)),e.isAllDay?(i.stripTime(),n&&n.stripTime()):(i=this.applyTimezone(i),n&&(n=this.applyTimezone(n))),new b.default(i,n,this)},e.prototype.getNow=function(){var e=this.opt("now");return"function"==typeof e&&(e=e()),this.moment(e).stripZone()},e.prototype.humanizeDuration=function(e){return e.locale(this.opt("locale")).humanize()},e.prototype.parseUnzonedRange=function(e){var t=null,n=null;return e.start&&(t=this.moment(e.start).stripZone()),e.end&&(n=this.moment(e.end).stripZone()),t||n?t&&n&&n.isBefore(t)?null:new _.default(t,n):null},e.prototype.initEventManager=function(){var n=this,i=new w.default(this),e=this.opt("eventSources")||[],t=this.opt("events");this.eventManager=i,t&&e.unshift(t),i.on("release",function(e){n.trigger("eventsReset",e)}),i.freeze(),e.forEach(function(e){var t=x.default.parse(e,n);t&&i.addSource(t)}),i.thaw()},e.prototype.requestEvents=function(e,t){return this.eventManager.requestEvents(e,t,this.opt("timezone"),!this.opt("lazyFetching"))},e.prototype.getEventEnd=function(e){return e.end?e.end.clone():this.getDefaultEventEnd(e.allDay,e.start)},e.prototype.getDefaultEventEnd=function(e,t){var n=t.clone();return e?n.stripTime().add(this.defaultAllDayEventDuration):n.add(this.defaultTimedEventDuration),this.getIsAmbigTimezone()&&n.stripZone(),n},e.prototype.rerenderEvents=function(){this.view.flash("displayingEvents")},e.prototype.refetchEvents=function(){this.eventManager.refetchAllSources()},e.prototype.renderEvents=function(e,t){this.eventManager.freeze();for(var n=0;n<e.length;n++)this.renderEvent(e[n],t);this.eventManager.thaw()},e.prototype.renderEvent=function(e,t){void 0===t&&(t=!1);var n=this.eventManager,i=k.default.parse(e,e.source||n.stickySource);i&&n.addEventDef(i,t)},e.prototype.removeEvents=function(e){var t,n,i=this.eventManager,r=[],a={};if(null==e)i.removeAllEventDefs();else{for(i.getEventInstances().forEach(function(e){r.push(e.toLegacy())}),r=o(r,e),n=0;n<r.length;n++)t=this.eventManager.getEventDefByUid(r[n]._id),a[t.id]=!0;i.freeze();for(n in a)i.removeEventDefsById(n);i.thaw()}},e.prototype.clientEvents=function(e){var t=[];return this.eventManager.getEventInstances().forEach(function(e){t.push(e.toLegacy())}),o(t,e)},e.prototype.updateEvents=function(e){this.eventManager.freeze();for(var t=0;t<e.length;t++)this.updateEvent(e[t]);this.eventManager.thaw()},e.prototype.updateEvent=function(e){var t,n,i=this.eventManager.getEventDefByUid(e._id);i instanceof S.default&&(t=i.buildInstance(),n=D.default.createFromRawProps(t,e,null),this.eventManager.mutateEventsWithId(i.id,n))},e.prototype.getEventSources=function(){return this.eventManager.otherSources.slice()},e.prototype.getEventSourceById=function(e){return this.eventManager.getSourceById(T.default.normalizeId(e))},e.prototype.addEventSource=function(e){var t=x.default.parse(e,this);t&&this.eventManager.addSource(t)},e.prototype.removeEventSources=function(e){var t,n,i=this.eventManager;if(null==e)this.eventManager.removeAllSources();else{for(t=i.multiQuerySources(e),i.freeze(),n=0;n<t.length;n++)i.removeSource(t[n]);i.thaw()}},e.prototype.removeEventSource=function(e){var t,n=this.eventManager,i=n.querySources(e);for(n.freeze(),t=0;t<i.length;t++)n.removeSource(i[t]);n.thaw()},e.prototype.refetchEventSources=function(e){var t,n=this.eventManager,i=n.multiQuerySources(e);for(n.freeze(),t=0;t<i.length;t++)n.refetchSource(i[t]);n.thaw()},e.defaults=r.globalDefaults,e.englishDefaults=r.englishDefaults,e.rtlDefaults=r.rtlDefaults,e}();t.default=E,d.default.mixInto(E),u.default.mixInto(E)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var p=n(0),u=n(4),f=n(5),i=function(){function e(e){this._view=e}return e.prototype.opt=function(e){return this._view.opt(e)},e.prototype.trimHiddenDays=function(e){return this._view.trimHiddenDays(e)},e.prototype.msToUtcMoment=function(e,t){return this._view.calendar.msToUtcMoment(e,t)},e.prototype.buildPrev=function(e){var t=e.date.clone().startOf(e.currentRangeUnit).subtract(e.dateIncrement);return this.build(t,-1)},e.prototype.buildNext=function(e){var t=e.date.clone().startOf(e.currentRangeUnit).add(e.dateIncrement);return this.build(t,1)},e.prototype.build=function(e,t,n){void 0===n&&(n=!1);var i,r,a,o,s,l,c=!e.hasTime(),d=null,u=null;return i=this.buildValidRange(),i=this.trimHiddenDays(i),n&&(e=this.msToUtcMoment(i.constrainDate(e),c)),r=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(r.unit),o=this.buildRenderRange(this.trimHiddenDays(r.unzonedRange),r.unit,a),o=this.trimHiddenDays(o),s=o.clone(),this.opt("showNonCurrentDates")||(s=s.intersect(r.unzonedRange)),d=p.duration(this.opt("minTime")),u=p.duration(this.opt("maxTime")),s=this.adjustActiveRange(s,d,u),s=s.intersect(i),s&&(e=this.msToUtcMoment(s.constrainDate(e),c)),l=r.unzonedRange.intersectsWith(i),{validUnzonedRange:i,currentUnzonedRange:r.unzonedRange,currentRangeUnit:r.unit,isRangeAllDay:a,activeUnzonedRange:s,renderUnzonedRange:o,minTime:d,maxTime:u,isValid:l,date:e,dateIncrement:this.buildDateIncrement(r.duration)}},e.prototype.buildValidRange=function(){return this._view.getUnzonedRangeOption("validRange",this._view.calendar.getNow())||new f.default},e.prototype.buildCurrentRangeInfo=function(e,t){var n,i=this._view.viewSpec,r=null,a=null,o=null;return i.duration?(r=i.duration,a=i.durationUnit,o=this.buildRangeFromDuration(e,t,r,a)):(n=this.opt("dayCount"))?(a="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?a=u.computeGreatestUnit(o.getStart(),o.getEnd()):(r=this.getFallbackDuration(),a=u.computeGreatestUnit(r),o=this.buildRangeFromDuration(e,t,r,a)),{duration:r,unit:a,unzonedRange:o}},e.prototype.getFallbackDuration=function(){return p.duration({days:1})},e.prototype.adjustActiveRange=function(e,t,n){var i=e.getStart(),r=e.getEnd();return this._view.usesMinMaxTime&&(t<0&&i.time(0).add(t),n>864e5&&r.time(n-864e5)),new f.default(i,r)},e.prototype.buildRangeFromDuration=function(e,t,n,i){function r(){s=e.clone().startOf(d),l=s.clone().add(n),c=new f.default(s,l)}var a,o,s,l,c,d=this.opt("dateAlignment");return d||(a=this.opt("dateIncrement"),a?(o=p.duration(a),d=o<n?u.computeDurationGreatestUnit(o,a):i):d=i),n.as("days")<=1&&this._view.isHiddenDay(s)&&(s=this._view.skipHiddenDays(s,t),s.startOf("day")),r(),this.trimHiddenDays(c)||(e=this._view.skipHiddenDays(e,t),r()),c},e.prototype.buildRangeFromDayCount=function(e,t,n){var i,r=this.opt("dateAlignment"),a=0,o=e.clone();r&&o.startOf(r),o.startOf("day"),o=this._view.skipHiddenDays(o,t),i=o.clone();do{i.add(1,"day"),this._view.isHiddenDay(i)||a++}while(a<n);return new f.default(o,i)},e.prototype.buildCustomVisibleRange=function(e){var t=this._view.getUnzonedRangeOption("visibleRange",this._view.calendar.applyTimezone(e));return!t||null!=t.startMs&&null!=t.endMs?t:null},e.prototype.buildRenderRange=function(e,t,n){return e.clone()},e.prototype.buildDateIncrement=function(e){var t,n=this.opt("dateIncrement");return n?p.duration(n):(t=this.opt("dateAlignment"))?p.duration(1,t):e||p.duration({days:1})},e}();t.default=i},function(e,t,n){function i(e){var t,n,i,r,a=l.dataAttrPrefix;return a&&(a+="-"),t=e.data(a+"event")||null,t&&(t="object"==typeof t?o.extend({},t):{},n=t.start,null==n&&(n=t.time),i=t.duration,r=t.stick,delete t.start,delete t.time,delete t.duration,delete t.stick),null==n&&(n=e.data(a+"start")),null==n&&(n=e.data(a+"time")),null==i&&(i=e.data(a+"duration")),null==r&&(r=e.data(a+"stick")),n=null!=n?s.duration(n):null,i=null!=i?s.duration(i):null,r=Boolean(r),{eventProps:t,startTime:n,duration:i,stick:r}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(3),s=n(0),l=n(16),c=n(4),a=n(10),d=n(7),u=n(22),p=n(13),f=n(18),h=n(6),m=n(15),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return r.__extends(e,t),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.bindToDocument=function(){this.listenTo(o(document),{dragstart:this.handleDragStart,sortstart:this.handleDragStart})},e.prototype.unbindFromDocument=function(){this.stopListeningTo(o(document))},e.prototype.handleDragStart=function(e,t){var n,i;this.opt("droppable")&&(n=o((t?t.item:null)||e.target),i=this.opt("dropAccept"),(o.isFunction(i)?i.call(n[0],n):n.is(i))&&(this.isDragging||this.listenToExternalDrag(n,e,t)))},e.prototype.listenToExternalDrag=function(t,e,n){var r,a=this,o=this.component,s=this.view,l=i(t);(this.dragListener=new u.default(o,{interactionStart:function(){a.isDragging=!0},hitOver:function(e){var t,n=!0,i=e.component.getSafeHitFootprint(e);i?(r=a.computeExternalDrop(i,l),r?(t=new f.default(r.buildInstances()),n=l.eventProps?o.isEventInstanceGroupAllowed(t):o.isExternalInstanceGroupAllowed(t)):n=!1):n=!1,n||(r=null,c.disableCursor()),r&&o.renderDrag(o.eventRangesToEventFootprints(t.sliceRenderRanges(o.dateProfile.renderUnzonedRange,s.calendar)))},hitOut:function(){r=null},hitDone:function(){c.enableCursor(),o.unrenderDrag()},interactionEnd:function(e){r&&s.reportExternalDrop(r,Boolean(l.eventProps),Boolean(l.stick),t,e,n),a.isDragging=!1,a.dragListener=null}})).startDrag(e)},e.prototype.computeExternalDrop=function(e,t){var n,i=this.view.calendar,r=a.default.utc(e.unzonedRange.startMs).stripZone();return e.isAllDay&&(t.startTime?r.time(t.startTime):r.stripTime()),t.duration&&(n=r.clone().add(t.duration)),r=i.applyTimezone(r),n&&(n=i.applyTimezone(n)),p.default.parse(o.extend({},t.eventProps,{start:r,end:n}),new h.default(i))},e}(m.default);t.default=v,d.default.mixInto(v),l.dataAttrPrefix=""},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(3),v=n(4),s=n(36),l=n(50),o=n(22),i=n(15),c=function(i){function e(e,t){var n=i.call(this,e)||this;return n.isResizing=!1,n.eventPointing=t,n}return r.__extends(e,i),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.bindToEl=function(e){var t=this.component;t.bindSegHandlerToEl(e,"mousedown",this.handleMouseDown.bind(this)),t.bindSegHandlerToEl(e,"touchstart",this.handleTouchStart.bind(this))},e.prototype.handleMouseDown=function(e,t){this.component.canStartResize(e,t)&&this.buildDragListener(e,a(t.target).is(".fc-start-resizer")).startInteraction(t,{distance:5})},e.prototype.handleTouchStart=function(e,t){this.component.canStartResize(e,t)&&this.buildDragListener(e,a(t.target).is(".fc-start-resizer")).startInteraction(t)},e.prototype.buildDragListener=function(s,l){var t,c,d=this,u=this.component,p=this.view,f=p.calendar,h=f.eventManager,n=s.el,m=s.footprint.eventDef,i=s.footprint.eventInstance;return this.dragListener=new o.default(u,{scroll:this.opt("dragScroll"),subjectEl:n,interactionStart:function(){t=!1},dragStart:function(e){t=!0,d.eventPointing.handleMouseout(s,e),d.segResizeStart(s,e)},hitOver:function(e,t,n){var i,r=!0,a=u.getSafeHitFootprint(n),o=u.getSafeHitFootprint(e);a&&o?(c=l?d.computeEventStartResizeMutation(a,o,s.footprint):d.computeEventEndResizeMutation(a,o,s.footprint),c?(i=h.buildMutatedEventInstanceGroup(m.id,c),r=u.isEventInstanceGroupAllowed(i)):r=!1):r=!1,r?c.isEmpty()&&(c=null):(c=null,v.disableCursor()),c&&(p.hideEventsWithId(s.footprint.eventDef.id),p.renderEventResize(u.eventRangesToEventFootprints(i.sliceRenderRanges(u.dateProfile.renderUnzonedRange,f)),s))},hitOut:function(){c=null},hitDone:function(){p.unrenderEventResize(s),p.showEventsWithId(s.footprint.eventDef.id),v.enableCursor()},interactionEnd:function(e){t&&d.segResizeStop(s,e),c&&p.reportEventResize(i,c,n,e),d.dragListener=null}})},e.prototype.segResizeStart=function(e,t){this.isResizing=!0,this.component.publiclyTrigger("eventResizeStart",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,{},this.view]})},e.prototype.segResizeStop=function(e,t){this.isResizing=!1,this.component.publiclyTrigger("eventResizeStop",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,{},this.view]})},e.prototype.computeEventStartResizeMutation=function(e,t,n){var i,r,a=n.componentFootprint.unzonedRange,o=this.component.diffDates(t.unzonedRange.getStart(),e.unzonedRange.getStart());return a.getStart().add(o)<a.getEnd()&&(i=new l.default,i.setStartDelta(o),r=new s.default,r.setDateMutation(i),r)},e.prototype.computeEventEndResizeMutation=function(e,t,n){var i,r,a=n.componentFootprint.unzonedRange,o=this.component.diffDates(t.unzonedRange.getEnd(),e.unzonedRange.getEnd());return a.getEnd().add(o)>a.getStart()&&(i=new l.default,i.setEndDelta(o),r=new s.default,r.setDateMutation(i),r)},e}(i.default);t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),g=n(4),a=n(36),c=n(50),o=n(54),_=n(22),y=n(240),i=n(15),s=function(i){function e(e,t){var n=i.call(this,e)||this;return n.isDragging=!1,n.eventPointing=t,n}return r.__extends(e,i),e.prototype.end=function(){this.dragListener&&this.dragListener.endInteraction()},e.prototype.getSelectionDelay=function(){var e=this.opt("eventLongPressDelay");return null==e&&(e=this.opt("longPressDelay")),e},e.prototype.bindToEl=function(e){var t=this.component;t.bindSegHandlerToEl(e,"mousedown",this.handleMousedown.bind(this)),t.bindSegHandlerToEl(e,"touchstart",this.handleTouchStart.bind(this))},e.prototype.handleMousedown=function(e,t){this.component.canStartDrag(e,t)&&this.buildDragListener(e).startInteraction(t,{distance:5})},e.prototype.handleTouchStart=function(e,t){var n=this.component,i={delay:this.view.isEventDefSelected(e.footprint.eventDef)?0:this.getSelectionDelay()};n.canStartDrag(e,t)?this.buildDragListener(e).startInteraction(t,i):n.canStartSelection(e,t)&&this.buildSelectListener(e).startInteraction(t,i)},e.prototype.buildSelectListener=function(e){var t=this,n=this.view,i=e.footprint.eventDef,r=e.footprint.eventInstance;if(this.dragListener)return this.dragListener;var a=this.dragListener=new o.default({dragStart:function(e){a.isTouch&&!n.isEventDefSelected(i)&&r&&n.selectEventInstance(r)},interactionEnd:function(e){t.dragListener=null}});return a},e.prototype.buildDragListener=function(s){var t,l,c,d=this,u=this.component,p=this.view,f=p.calendar,h=f.eventManager,n=s.el,m=s.footprint.eventDef,i=s.footprint.eventInstance;if(this.dragListener)return this.dragListener;var v=this.dragListener=new _.default(p,{scroll:this.opt("dragScroll"),subjectEl:n,subjectCenter:!0,interactionStart:function(e){s.component=u,t=!1,l=new y.default(s.el,{additionalClass:"fc-dragging",parentEl:p.el,opacity:v.isTouch?null:d.opt("dragOpacity"),revertDuration:d.opt("dragRevertDuration"),zIndex:2}),l.hide(),l.start(e)},dragStart:function(e){v.isTouch&&!p.isEventDefSelected(m)&&i&&p.selectEventInstance(i),t=!0,d.eventPointing.handleMouseout(s,e),d.segDragStart(s,e),p.hideEventsWithId(s.footprint.eventDef.id)},hitOver:function(e,t,n){var i,r,a,o=!0;s.hit&&(n=s.hit),i=n.component.getSafeHitFootprint(n),r=e.component.getSafeHitFootprint(e),i&&r?(c=d.computeEventDropMutation(i,r,m),c?(a=h.buildMutatedEventInstanceGroup(m.id,c),o=u.isEventInstanceGroupAllowed(a)):o=!1):o=!1,o||(c=null,g.disableCursor()),c&&p.renderDrag(u.eventRangesToEventFootprints(a.sliceRenderRanges(u.dateProfile.renderUnzonedRange,f)),s,v.isTouch)?l.hide():l.show(),t&&(c=null)},hitOut:function(){p.unrenderDrag(s),l.show(),c=null},hitDone:function(){g.enableCursor()},interactionEnd:function(e){delete s.component,l.stop(!c,function(){t&&(p.unrenderDrag(s),d.segDragStop(s,e)),p.showEventsWithId(s.footprint.eventDef.id),c&&p.reportEventDrop(i,c,n,e)}),d.dragListener=null}});return v},e.prototype.segDragStart=function(e,t){this.isDragging=!0,this.component.publiclyTrigger("eventDragStart",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,{},this.view]})},e.prototype.segDragStop=function(e,t){this.isDragging=!1,this.component.publiclyTrigger("eventDragStop",{context:e.el[0],args:[e.footprint.getEventLegacy(),t,{},this.view]})},e.prototype.computeEventDropMutation=function(e,t,n){var i=new a.default;return i.setDateMutation(this.computeEventDateMutation(e,t)),i},e.prototype.computeEventDateMutation=function(e,t){var n,i,r=e.unzonedRange.getStart(),a=t.unzonedRange.getStart(),o=!1,s=!1,l=!1;return e.isAllDay!==t.isAllDay&&(o=!0,t.isAllDay?(l=!0,r.stripTime()):s=!0),n=this.component.diffDates(a,r),i=new c.default,i.clearEnd=o,i.forceTimed=s,i.forceAllDay=l,i.setDateDelta(n),i},e}(i.default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),l=n(4),r=n(22),a=n(12),o=n(5),s=n(15),c=function(n){function e(e){var t=n.call(this,e)||this;return t.dragListener=t.buildDragListener(),t}return i.__extends(e,n),e.prototype.end=function(){this.dragListener.endInteraction()},e.prototype.getDelay=function(){var e=this.opt("selectLongPressDelay");return null==e&&(e=this.opt("longPressDelay")),e},e.prototype.bindToEl=function(e){var t=this,n=this.component,i=this.dragListener;n.bindDateHandlerToEl(e,"mousedown",function(e){t.opt("selectable")&&!n.shouldIgnoreMouse()&&i.startInteraction(e,{distance:t.opt("selectMinDistance")})}),n.bindDateHandlerToEl(e,"touchstart",function(e){t.opt("selectable")&&!n.shouldIgnoreTouch()&&i.startInteraction(e,{delay:t.getDelay()})}),l.preventSelection(e)},e.prototype.buildDragListener=function(){var a,o=this,s=this.component;return new r.default(s,{scroll:this.opt("dragScroll"),interactionStart:function(){a=null},dragStart:function(e){o.view.unselect(e)},hitOver:function(e,t,n){var i,r;n&&(i=s.getSafeHitFootprint(n),r=s.getSafeHitFootprint(e),a=i&&r?o.computeSelection(i,r):null,a?s.renderSelectionFootprint(a):!1===a&&l.disableCursor())},hitOut:function(){a=null,s.unrenderSelection()},hitDone:function(){l.enableCursor()},interactionEnd:function(e,t){!t&&a&&o.view.reportSelection(a,e)}})},e.prototype.computeSelection=function(e,t){var n=this.computeSelectionFootprint(e,t);return!(n&&!this.isSelectionFootprintAllowed(n))&&n},e.prototype.computeSelectionFootprint=function(e,t){var n=[e.unzonedRange.startMs,e.unzonedRange.endMs,t.unzonedRange.startMs,t.unzonedRange.endMs];return n.sort(l.compareNumbers),new a.default(new o.default(n[0],n[3]),e.isAllDay)},e.prototype.isSelectionFootprintAllowed=function(e){return this.component.dateProfile.validUnzonedRange.containsRange(e.unzonedRange)&&this.view.calendar.constraints.isSelectionFootprintAllowed(e)},e}(s.default);t.default=c},function(e,t,n){function i(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderHeadIntroHtml=function(){var e,t=this.view,n=t.calendar,i=n.msToUtcMoment(this.dateProfile.renderUnzonedRange.startMs,!0);return this.opt("weekNumbers")?(e=i.format(this.opt("smallWeekFormat")),'<th class="fc-axis fc-week-number '+n.theme.getClass("widgetHeader")+'" '+t.axisStyleAttr()+">"+t.buildGotoAnchorHtml({date:i,type:"week",forceOff:this.colCnt>1},d.htmlEscape(e))+"</th>"):'<th class="fc-axis '+n.theme.getClass("widgetHeader")+'" '+t.axisStyleAttr()+"></th>"},t.prototype.renderBgIntroHtml=function(){var e=this.view;return'<td class="fc-axis '+e.calendar.theme.getClass("widgetContent")+'" '+e.axisStyleAttr()+"></td>"},t.prototype.renderIntroHtml=function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"},t}(e)}function r(e){return function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.renderBgIntroHtml=function(){var e=this.view;return'<td class="fc-axis '+e.calendar.theme.getClass("widgetContent")+'" '+e.axisStyleAttr()+"><span>"+e.getAllDayHtml()+"</span></td>"},t.prototype.renderIntroHtml=function(){return'<td class="fc-axis" '+this.view.axisStyleAttr()+"></td>"},t}(e)}function a(e){var t,n=[],i=[];for(t=0;t<e.length;t++)e[t].componentFootprint.isAllDay?n.push(e[t]):i.push(e[t]);return{allDay:n,timed:i}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),l=n(0),c=n(3),d=n(4),u=n(39),s=n(41),p=n(223),f=n(61),h=function(s){function e(e,t){var n=s.call(this,e,t)||this;return n.usesMinMaxTime=!0,n.timeGrid=n.instantiateTimeGrid(),n.addChild(n.timeGrid),n.opt("allDaySlot")&&(n.dayGrid=n.instantiateDayGrid(),n.addChild(n.dayGrid)),n.scroller=new u.default({overflowX:"hidden",overflowY:"auto"}),n}return o.__extends(e,s),e.prototype.instantiateTimeGrid=function(){return new(i(this.timeGridClass))(this)},e.prototype.instantiateDayGrid=function(){return new(r(this.dayGridClass))(this)},e.prototype.renderSkeleton=function(){var e,t;this.el.addClass("fc-agenda-view").html(this.renderSkeletonHtml()),this.scroller.render(),e=this.scroller.el.addClass("fc-time-grid-container"),t=c('<div class="fc-time-grid" />').appendTo(e),this.el.find(".fc-body > tr > td").append(e),this.timeGrid.headContainerEl=this.el.find(".fc-head-container"),this.timeGrid.setElement(t),this.dayGrid&&(this.dayGrid.setElement(this.el.find(".fc-day-grid")),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight())},e.prototype.unrenderSkeleton=function(){this.timeGrid.removeElement(),this.dayGrid&&this.dayGrid.removeElement(),this.scroller.destroy()},e.prototype.renderSkeletonHtml=function(){var e=this.calendar.theme;return'<table class="'+e.getClass("tableGrid")+'">'+(this.opt("columnHeader")?'<thead class="fc-head"><tr><td class="fc-head-container '+e.getClass("widgetHeader")+'">&nbsp;</td></tr></thead>':"")+'<tbody class="fc-body"><tr><td class="'+e.getClass("widgetContent")+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="fc-divider '+e.getClass("widgetHeader")+'"/>':"")+"</td></tr></tbody></table>"},e.prototype.axisStyleAttr=function(){return null!=this.axisWidth?'style="width:'+this.axisWidth+'px"':""},e.prototype.getNowIndicatorUnit=function(){return this.timeGrid.getNowIndicatorUnit()},e.prototype.updateSize=function(e,t,n){var i,r,a;if(s.prototype.updateSize.call(this,e,t,n),this.axisWidth=d.matchCellWidths(this.el.find(".fc-axis")),!this.timeGrid.colEls)return void(t||(r=this.computeScrollerHeight(e),this.scroller.setHeight(r)));var o=this.el.find(".fc-row:not(.fc-scroller *)");this.timeGrid.bottomRuleEl.hide(),this.scroller.clear(),d.uncompensateScroll(o),this.dayGrid&&(this.dayGrid.removeSegPopover(),i=this.opt("eventLimit"),i&&"number"!=typeof i&&(i=5),i&&this.dayGrid.limitRows(i)),t||(r=this.computeScrollerHeight(e),this.scroller.setHeight(r),a=this.scroller.getScrollbarWidths(),(a.left||a.right)&&(d.compensateScroll(o,a),r=this.computeScrollerHeight(e),this.scroller.setHeight(r)),this.scroller.lockOverflow(a),this.timeGrid.getTotalSlatHeight()<r&&this.timeGrid.bottomRuleEl.show())},e.prototype.computeScrollerHeight=function(e){return e-d.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.computeInitialDateScroll=function(){var e=l.duration(this.opt("scrollTime")),t=this.timeGrid.computeTimeTop(e);return t=Math.ceil(t),t&&t++,{top:t}},e.prototype.queryDateScroll=function(){return{top:this.scroller.getScrollTop()}},e.prototype.applyDateScroll=function(e){void 0!==e.top&&this.scroller.setScrollTop(e.top)},e.prototype.getHitFootprint=function(e){return e.component.getHitFootprint(e)},e.prototype.getHitEl=function(e){return e.component.getHitEl(e)},e.prototype.executeEventRender=function(e){var t,n,i={},r={};for(t in e)n=e[t],n.getEventDef().isAllDay()?i[t]=n:r[t]=n;this.timeGrid.executeEventRender(r),this.dayGrid&&this.dayGrid.executeEventRender(i)},e.prototype.renderDrag=function(e,t,n){var i=a(e),r=!1;return r=this.timeGrid.renderDrag(i.timed,t,n),this.dayGrid&&(r=this.dayGrid.renderDrag(i.allDay,t,n)||r),r},e.prototype.renderEventResize=function(e,t,n){var i=a(e);this.timeGrid.renderEventResize(i.timed,t,n),this.dayGrid&&this.dayGrid.renderEventResize(i.allDay,t,n)},e.prototype.renderSelectionFootprint=function(e){e.isAllDay?this.dayGrid&&this.dayGrid.renderSelectionFootprint(e):this.timeGrid.renderSelectionFootprint(e)},e}(s.default);t.default=h,h.prototype.timeGridClass=p.default,h.prototype.dayGridClass=f.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(3),u=n(0),p=n(4),i=n(40),o=n(56),s=n(60),l=n(55),c=n(53),d=n(5),f=n(12),h=n(242),m=n(243),v=n(244),g=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],_=function(i){function e(e){var t=i.call(this,e)||this;return t.processOptions(),t}return r.__extends(e,i),e.prototype.componentFootprintToSegs=function(e){var t,n=this.sliceRangeByTimes(e.unzonedRange);for(t=0;t<n.length;t++)this.isRTL?n[t].col=this.daysPerRow-1-n[t].dayIndex:n[t].col=n[t].dayIndex;return n},e.prototype.sliceRangeByTimes=function(e){var t,n,i=[];for(n=0;n<this.daysPerRow;n++)(t=e.intersect(this.dayRanges[n]))&&i.push({startMs:t.startMs,endMs:t.endMs,isStart:t.isStart,isEnd:t.isEnd,dayIndex:n});return i},e.prototype.processOptions=function(){var e,t=this.opt("slotDuration"),n=this.opt("snapDuration");t=u.duration(t),n=n?u.duration(n):t,this.slotDuration=t,this.snapDuration=n,this.snapsPerSlot=t/n,e=this.opt("slotLabelFormat"),a.isArray(e)&&(e=e[e.length-1]),this.labelFormat=e||this.opt("smallTimeFormat"),e=this.opt("slotLabelInterval"),this.labelInterval=e?u.duration(e):this.computeLabelInterval(t)},e.prototype.computeLabelInterval=function(e){var t,n,i;for(t=g.length-1;t>=0;t--)if(n=u.duration(g[t]),i=p.divideDurationByDuration(n,e),p.isInt(i)&&i>1)return n;return u.duration(e)},e.prototype.renderDates=function(e){this.dateProfile=e,this.updateDayTable(),this.renderSlats(),this.renderColumns()},e.prototype.unrenderDates=function(){this.unrenderColumns()},e.prototype.renderSkeleton=function(){var e=this.view.calendar.theme;this.el.html('<div class="fc-bg"></div><div class="fc-slats"></div><hr class="fc-divider '+e.getClass("widgetHeader")+'" style="display:none" />'),this.bottomRuleEl=this.el.find("hr")},e.prototype.renderSlats=function(){var e=this.view.calendar.theme;this.slatContainerEl=this.el.find("> .fc-slats").html('<table class="'+e.getClass("tableGrid")+'">'+this.renderSlatRowHtml()+"</table>"),this.slatEls=this.slatContainerEl.find("tr"),this.slatCoordCache=new c.default({els:this.slatEls,isVertical:!0})},e.prototype.renderSlatRowHtml=function(){for(var e,t,n,i=this.view,r=i.calendar,a=r.theme,o=this.isRTL,s=this.dateProfile,l="",c=u.duration(+s.minTime),d=u.duration(0);c<s.maxTime;)e=r.msToUtcMoment(s.renderUnzonedRange.startMs).time(c),t=p.isInt(p.divideDurationByDuration(d,this.labelInterval)),n='<td class="fc-axis fc-time '+a.getClass("widgetContent")+'" '+i.axisStyleAttr()+">"+(t?"<span>"+p.htmlEscape(e.format(this.labelFormat))+"</span>":"")+"</td>",l+='<tr data-time="'+e.format("HH:mm:ss")+'"'+(t?"":' class="fc-minor"')+">"+(o?"":n)+'<td class="'+a.getClass("widgetContent")+'"/>'+(o?n:"")+"</tr>",c.add(this.slotDuration),d.add(this.slotDuration);return l},e.prototype.renderColumns=function(){var t=this.dateProfile,e=this.view.calendar.theme;this.dayRanges=this.dayDates.map(function(e){return new d.default(e.clone().add(t.minTime),e.clone().add(t.maxTime))}),this.headContainerEl&&this.headContainerEl.html(this.renderHeadHtml()),this.el.find("> .fc-bg").html('<table class="'+e.getClass("tableGrid")+'">'+this.renderBgTrHtml(0)+"</table>"),this.colEls=this.el.find(".fc-day, .fc-disabled-day"),this.colCoordCache=new c.default({els:this.colEls,isHorizontal:!0}),this.renderContentSkeleton()},e.prototype.unrenderColumns=function(){this.unrenderContentSkeleton()},e.prototype.renderContentSkeleton=function(){var e,t,n="";for(e=0;e<this.colCnt;e++)n+='<td><div class="fc-content-col"><div class="fc-event-container fc-helper-container"></div><div class="fc-event-container"></div><div class="fc-highlight-container"></div><div class="fc-bgevent-container"></div><div class="fc-business-container"></div></div></td>';t=this.contentSkeletonEl=a('<div class="fc-content-skeleton"><table><tr>'+n+"</tr></table></div>"),this.colContainerEls=t.find(".fc-content-col"),this.helperContainerEls=t.find(".fc-helper-container"),this.fgContainerEls=t.find(".fc-event-container:not(.fc-helper-container)"),this.bgContainerEls=t.find(".fc-bgevent-container"),this.highlightContainerEls=t.find(".fc-highlight-container"),this.businessContainerEls=t.find(".fc-business-container"),this.bookendCells(t.find("tr")),this.el.append(t)},e.prototype.unrenderContentSkeleton=function(){this.contentSkeletonEl.remove(),this.contentSkeletonEl=null,this.colContainerEls=null,this.helperContainerEls=null,this.fgContainerEls=null,this.bgContainerEls=null,this.highlightContainerEls=null,this.businessContainerEls=null},e.prototype.groupSegsByCol=function(e){var t,n=[];for(t=0;t<this.colCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].col].push(e[t]);return n},e.prototype.attachSegsByCol=function(e,t){var n,i,r;for(n=0;n<this.colCnt;n++)for(i=e[n],r=0;r<i.length;r++)t.eq(n).append(i[r].el)},e.prototype.getNowIndicatorUnit=function(){return"minute"},e.prototype.renderNowIndicator=function(e){if(this.colContainerEls){var t,n=this.componentFootprintToSegs(new f.default(new d.default(e,e.valueOf()+1),!1)),i=this.computeDateTop(e,e),r=[];for(t=0;t<n.length;t++)r.push(a('<div class="fc-now-indicator fc-now-indicator-line"></div>').css("top",i).appendTo(this.colContainerEls.eq(n[t].col))[0]);n.length>0&&r.push(a('<div class="fc-now-indicator fc-now-indicator-arrow"></div>').css("top",i).appendTo(this.el.find(".fc-content-skeleton"))[0]),this.nowIndicatorEls=a(r)}},e.prototype.unrenderNowIndicator=function(){this.nowIndicatorEls&&(this.nowIndicatorEls.remove(),this.nowIndicatorEls=null)},e.prototype.updateSize=function(e,t,n){i.prototype.updateSize.call(this,e,t,n),this.slatCoordCache.build(),n&&this.updateSegVerticals([].concat(this.eventRenderer.getSegs(),this.businessSegs||[]))},e.prototype.getTotalSlatHeight=function(){return this.slatContainerEl.outerHeight()},e.prototype.computeDateTop=function(e,t){return this.computeTimeTop(u.duration(e-t.clone().stripTime()))},e.prototype.computeTimeTop=function(e){var t,n,i=this.slatEls.length,r=this.dateProfile,a=(e-r.minTime)/this.slotDuration;return a=Math.max(0,a),a=Math.min(i,a),t=Math.floor(a),t=Math.min(t,i-1),n=a-t,this.slatCoordCache.getTopPosition(t)+this.slatCoordCache.getHeight(t)*n},e.prototype.updateSegVerticals=function(e){this.computeSegVerticals(e),this.assignSegVerticals(e)},e.prototype.computeSegVerticals=function(e){var t,n,i,r=this.opt("agendaEventMinHeight");for(t=0;t<e.length;t++)n=e[t],i=this.dayDates[n.dayIndex],n.top=this.computeDateTop(n.startMs,i),n.bottom=Math.max(n.top+r,this.computeDateTop(n.endMs,i))},e.prototype.assignSegVerticals=function(e){var t,n;for(t=0;t<e.length;t++)n=e[t],n.el.css(this.generateSegVerticalCss(n))},e.prototype.generateSegVerticalCss=function(e){return{top:e.top,bottom:-e.bottom}},e.prototype.prepareHits=function(){this.colCoordCache.build(),this.slatCoordCache.build()},e.prototype.releaseHits=function(){this.colCoordCache.clear()},e.prototype.queryHit=function(e,t){var n=this.snapsPerSlot,i=this.colCoordCache,r=this.slatCoordCache;if(i.isLeftInBounds(e)&&r.isTopInBounds(t)){var a=i.getHorizontalIndex(e),o=r.getVerticalIndex(t);if(null!=a&&null!=o){var s=r.getTopOffset(o),l=r.getHeight(o),c=(t-s)/l,d=Math.floor(c*n),u=o*n+d,p=s+d/n*l,f=s+(d+1)/n*l;return{col:a,snap:u,component:this,left:i.getLeftOffset(a),right:i.getRightOffset(a),top:p,bottom:f}}}},e.prototype.getHitFootprint=function(e){var t,n=this.getCellDate(0,e.col),i=this.computeSnapTime(e.snap);return n.time(i),t=n.clone().add(this.snapDuration),new f.default(new d.default(n,t),!1)},e.prototype.computeSnapTime=function(e){return u.duration(this.dateProfile.minTime+this.snapDuration*e)},e.prototype.getHitEl=function(e){return this.colEls.eq(e.col)},e.prototype.renderDrag=function(e,t,n){var i;if(t){if(e.length)return this.helperRenderer.renderEventDraggingFootprints(e,t,n),!0}else for(i=0;i<e.length;i++)this.renderHighlight(e[i].componentFootprint)},e.prototype.unrenderDrag=function(){this.unrenderHighlight(),this.helperRenderer.unrender()},e.prototype.renderEventResize=function(e,t,n){this.helperRenderer.renderEventResizingFootprints(e,t,n)},e.prototype.unrenderEventResize=function(){this.helperRenderer.unrender()},e.prototype.renderSelectionFootprint=function(e){this.opt("selectHelper")?this.helperRenderer.renderComponentFootprint(e):this.renderHighlight(e)},e.prototype.unrenderSelection=function(){this.helperRenderer.unrender(),this.unrenderHighlight()},e}(i.default);t.default=_,_.prototype.eventRendererClass=h.default,_.prototype.businessHourRendererClass=o.default,_.prototype.helperRendererClass=m.default,_.prototype.fillRendererClass=v.default,s.default.mixInto(_),l.default.mixInto(_)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),s=n(5),r=n(217),a=function(o){function e(){return null!==o&&o.apply(this,arguments)||this}return i.__extends(e,o),e.prototype.buildRenderRange=function(e,t,n){var i=o.prototype.buildRenderRange.call(this,e,t,n),r=this.msToUtcMoment(i.startMs,n),a=this.msToUtcMoment(i.endMs,n);return/^(year|month)$/.test(t)&&(r.startOf("week"),a.weekday()&&a.add(1,"week").startOf("week")),new s.default(r,a)},e}(r.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(0),a=n(4),o=n(62),s=n(249),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setGridHeight=function(e,t){t&&(e*=this.dayGrid.rowCnt/6),a.distributeHeight(this.dayGrid.rowEls,e,!t)},t.prototype.isDateInOtherMonth=function(e,t){return e.month()!==r.utc(t.currentUnzonedRange.startMs).month()},t}(o.default);t.default=l,l.prototype.dateProfileGeneratorClass=s.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),s=n(3),a=n(4),o=n(5),i=n(41),l=n(39),c=n(250),d=n(251),u=function(i){function e(e,t){var n=i.call(this,e,t)||this;return n.segSelector=".fc-list-item",n.scroller=new l.default({overflowX:"hidden",overflowY:"auto"}),n}return r.__extends(e,i),e.prototype.renderSkeleton=function(){this.el.addClass("fc-list-view "+this.calendar.theme.getClass("listView")),this.scroller.render(),this.scroller.el.appendTo(this.el),this.contentEl=this.scroller.scrollEl},e.prototype.unrenderSkeleton=function(){this.scroller.destroy()},e.prototype.updateSize=function(e,t,n){this.scroller.setHeight(this.computeScrollerHeight(e))},e.prototype.computeScrollerHeight=function(e){return e-a.subtractInnerElHeight(this.el,this.scroller.el)},e.prototype.renderDates=function(e){for(var t=this.calendar,n=t.msToUtcMoment(e.renderUnzonedRange.startMs,!0),i=t.msToUtcMoment(e.renderUnzonedRange.endMs,!0),r=[],a=[];n<i;)r.push(n.clone()),a.push(new o.default(n,n.clone().add(1,"day"))),n.add(1,"day");this.dayDates=r,this.dayRanges=a},e.prototype.componentFootprintToSegs=function(e){var t,n,i,r=this.dayRanges,a=[];for(t=0;t<r.length;t++)if((n=e.unzonedRange.intersect(r[t]))&&(i={startMs:n.startMs,endMs:n.endMs,isStart:n.isStart,isEnd:n.isEnd,dayIndex:t},a.push(i),!i.isEnd&&!e.isAllDay&&t+1<r.length&&e.unzonedRange.endMs<r[t+1].startMs+this.nextDayThreshold)){i.endMs=e.unzonedRange.endMs,i.isEnd=!0;break}return a},e.prototype.renderEmptyMessage=function(){this.contentEl.html('<div class="fc-list-empty-wrap2"><div class="fc-list-empty-wrap1"><div class="fc-list-empty">'+a.htmlEscape(this.opt("noEventsMessage"))+"</div></div></div>")},e.prototype.renderSegList=function(e){var t,n,i,r=this.groupSegsByDay(e),a=s('<table class="fc-list-table '+this.calendar.theme.getClass("tableList")+'"><tbody/></table>'),o=a.find("tbody");for(t=0;t<r.length;t++)if(n=r[t])for(o.append(this.dayHeaderHtml(this.dayDates[t])),this.eventRenderer.sortEventSegs(n),i=0;i<n.length;i++)o.append(n[i].el);this.contentEl.empty().append(a)},e.prototype.groupSegsByDay=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],(i[n.dayIndex]||(i[n.dayIndex]=[])).push(n);return i},e.prototype.dayHeaderHtml=function(e){var t=this.opt("listDayFormat"),n=this.opt("listDayAltFormat");return'<tr class="fc-list-heading" data-date="'+e.format("YYYY-MM-DD")+'"><td class="'+this.calendar.theme.getClass("widgetHeader")+'" colspan="3">'+(t?this.buildGotoAnchorHtml(e,{class:"fc-list-heading-main"},a.htmlEscape(e.format(t))):"")+(n?this.buildGotoAnchorHtml(e,{class:"fc-list-heading-alt"},a.htmlEscape(e.format(n))):"")+"</td></tr>"},e}(i.default);t.default=u,u.prototype.eventRendererClass=c.default,u.prototype.eventPointingClass=d.default},,,,,,function(e,t,n){var l=n(3),i=n(16),c=n(4),d=n(216);n(10),n(47),n(252),n(253),n(255),n(256),n(257),n(258),l.fullCalendar=i,l.fn.fullCalendar=function(a){var o=Array.prototype.slice.call(arguments,1),s=this;return this.each(function(e,t){var n,i=l(t),r=i.data("fullCalendar");"string"==typeof a?"getCalendar"===a?e||(s=r):"destroy"===a?r&&(r.destroy(),i.removeData("fullCalendar")):r?l.isFunction(r[a])?(n=r[a].apply(r,o),e||(s=n),"destroy"===a&&i.removeData("fullCalendar")):c.warn("'"+a+"' is an unknown FullCalendar method."):c.warn("Attempting to call a FullCalendar method on an element with no calendar."):r||(r=new d.default(i,a),i.data("fullCalendar",r),r.render())}),s},e.exports=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(48),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.setElement=function(e){this.el=e,this.bindGlobalHandlers(),this.renderSkeleton(),this.set("isInDom",!0)},t.prototype.removeElement=function(){this.unset("isInDom"),this.unrenderSkeleton(),this.unbindGlobalHandlers(),this.el.remove()},t.prototype.bindGlobalHandlers=function(){},t.prototype.unbindGlobalHandlers=function(){},t.prototype.renderSkeleton=function(){},t.prototype.unrenderSkeleton=function(){},t}(r.default);t.default=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.items=e||[]}return e.prototype.proxyCall=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];var i=[];return this.items.forEach(function(e){i.push(e[t].apply(e,n))}),i},e}();t.default=n},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var y=n(3),b=n(4),i=function(){function e(e,t){this.el=null,this.viewsWithButtons=[],this.calendar=e,this.toolbarOptions=t}return e.prototype.setToolbarOptions=function(e){this.toolbarOptions=e},e.prototype.render=function(){var e=this.toolbarOptions.layout,t=this.el;e?(t?t.empty():t=this.el=y("<div class='fc-toolbar "+this.toolbarOptions.extraClasses+"'/>"),t.append(this.renderSection("left")).append(this.renderSection("right")).append(this.renderSection("center")).append('<div class="fc-clear"/>')):this.removeElement()},e.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},e.prototype.renderSection=function(e){var p=this,f=this.calendar,h=f.theme,t=f.optionsManager,m=f.viewSpecManager,i=y('<div class="fc-'+e+'"/>'),n=this.toolbarOptions.layout[e],v=t.get("customButtons")||{},g=t.overrides.buttonText||{},_=t.get("buttonText")||{};return n&&y.each(n.split(" "),function(e,t){var n,d=y(),u=!0;y.each(t.split(","),function(e,t){var n,i,r,a,o,s,l,c;"title"===t?(d=d.add(y("<h2>&nbsp;</h2>")),u=!1):((n=v[t])?(r=function(e){n.click&&n.click.call(c[0],e)},(a=h.getCustomButtonIconClass(n))||(a=h.getIconClass(t))||(o=n.text)):(i=m.getViewSpec(t))?(p.viewsWithButtons.push(t),r=function(){f.changeView(t)},(o=i.buttonTextOverride)||(a=h.getIconClass(t))||(o=i.buttonTextDefault)):f[t]&&(r=function(){f[t]()},(o=g[t])||(a=h.getIconClass(t))||(o=_[t])),r&&(l=["fc-"+t+"-button",h.getClass("button"),h.getClass("stateDefault")],o?s=b.htmlEscape(o):a&&(s="<span class='"+a+"'></span>"),c=y('<button type="button" class="'+l.join(" ")+'">'+s+"</button>").click(function(e){c.hasClass(h.getClass("stateDisabled"))||(r(e),(c.hasClass(h.getClass("stateActive"))||c.hasClass(h.getClass("stateDisabled")))&&c.removeClass(h.getClass("stateHover")))}).mousedown(function(){c.not("."+h.getClass("stateActive")).not("."+h.getClass("stateDisabled")).addClass(h.getClass("stateDown"))}).mouseup(function(){c.removeClass(h.getClass("stateDown"))}).hover(function(){c.not("."+h.getClass("stateActive")).not("."+h.getClass("stateDisabled")).addClass(h.getClass("stateHover"))},function(){c.removeClass(h.getClass("stateHover")).removeClass(h.getClass("stateDown"))}),d=d.add(c)))}),u&&d.first().addClass(h.getClass("cornerLeft")).end().last().addClass(h.getClass("cornerRight")).end(),d.length>1?(n=y("<div/>"),u&&n.addClass(h.getClass("buttonGroup")),n.append(d),i.append(n)):i.append(d)}),i},e.prototype.updateTitle=function(e){this.el&&this.el.find("h2").text(e)},e.prototype.activateButton=function(e){this.el&&this.el.find(".fc-"+e+"-button").addClass(this.calendar.theme.getClass("stateActive"))},e.prototype.deactivateButton=function(e){this.el&&this.el.find(".fc-"+e+"-button").removeClass(this.calendar.theme.getClass("stateActive"))},e.prototype.disableButton=function(e){this.el&&this.el.find(".fc-"+e+"-button").prop("disabled",!0).addClass(this.calendar.theme.getClass("stateDisabled"))},e.prototype.enableButton=function(e){this.el&&this.el.find(".fc-"+e+"-button").prop("disabled",!1).removeClass(this.calendar.theme.getClass("stateDisabled"))},e.prototype.getViewsWithButtons=function(){return this.viewsWithButtons},e}();t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(3),o=n(4),s=n(31),l=n(30),i=n(48),c=function(i){function e(e,t){var n=i.call(this)||this;return n._calendar=e,n.overrides=a.extend({},t),n.dynamicOverrides={},n.compute(),n}return r.__extends(e,i),e.prototype.add=function(e){var t,n=0;this.recordOverrides(e);for(t in e)n++;if(1===n){if("height"===t||"contentHeight"===t||"aspectRatio"===t)return void this._calendar.updateViewSize(!0);if("defaultDate"===t)return;if("businessHours"===t)return;if("timezone"===t)return void this._calendar.view.flash("initialEvents")}this._calendar.renderHeader(),this._calendar.renderFooter(),this._calendar.viewsByType={},this._calendar.reinitView()},e.prototype.compute=function(){var e,t,n,i,r;e=o.firstDefined(this.dynamicOverrides.locale,this.overrides.locale),t=l.localeOptionHash[e],t||(e=s.globalDefaults.locale,t=l.localeOptionHash[e]||{}),n=o.firstDefined(this.dynamicOverrides.isRTL,this.overrides.isRTL,t.isRTL,s.globalDefaults.isRTL),i=n?s.rtlDefaults:{},this.dirDefaults=i,this.localeDefaults=t,r=s.mergeOptions([s.globalDefaults,i,t,this.overrides,this.dynamicOverrides]),l.populateInstanceComputableOptions(r),this.reset(r)},e.prototype.recordOverrides=function(e){var t;for(t in e)this.dynamicOverrides[t]=e[t];this._calendar.viewSpecManager.clearCache(),this.compute()},e}(i.default);t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var u=n(0),r=n(3),p=n(21),f=n(4),h=n(31),i=n(30),a=function(){function e(e,t){this.optionsManager=e,this._calendar=t,this.clearCache()}return e.prototype.clearCache=function(){this.viewSpecCache={}},e.prototype.getViewSpec=function(e){var t=this.viewSpecCache;return t[e]||(t[e]=this.buildViewSpec(e))},e.prototype.getUnitViewSpec=function(e){var t,n,i;if(-1!==r.inArray(e,f.unitsDesc))for(t=this._calendar.header.getViewsWithButtons(),r.each(p.viewHash,function(e){t.push(e)}),n=0;n<t.length;n++)if((i=this.getViewSpec(t[n]))&&i.singleUnit===e)return i},e.prototype.buildViewSpec=function(e){for(var t,n,i,r,a,o=this.optionsManager.overrides.views||{},s=[],l=[],c=[],d=e;d;)t=p.viewHash[d],n=o[d],d=null,"function"==typeof t&&(t={class:t}),t&&(s.unshift(t),l.unshift(t.defaults||{}),i=i||t.duration,d=d||t.type),n&&(c.unshift(n),i=i||n.duration,d=d||n.type);return t=f.mergeProps(s),t.type=e,!!t.class&&(i=i||this.optionsManager.dynamicOverrides.duration||this.optionsManager.overrides.duration,i&&(r=u.duration(i),r.valueOf()&&(a=f.computeDurationGreatestUnit(r,i),t.duration=r,t.durationUnit=a,1===r.as(a)&&(t.singleUnit=a,c.unshift(o[a]||{})))),t.defaults=h.mergeOptions(l),t.overrides=h.mergeOptions(c),this.buildViewSpecOptions(t),this.buildViewSpecButtonText(t,e),t)},e.prototype.buildViewSpecOptions=function(e){var t=this.optionsManager;e.options=h.mergeOptions([h.globalDefaults,e.defaults,t.dirDefaults,t.localeDefaults,t.overrides,e.overrides,t.dynamicOverrides]),i.populateInstanceComputableOptions(e.options)},e.prototype.buildViewSpecButtonText=function(n,i){function e(e){var t=e.buttonText||{};return t[i]||(n.buttonTextKey?t[n.buttonTextKey]:null)||(n.singleUnit?t[n.singleUnit]:null)}var t=this.optionsManager;n.buttonTextOverride=e(t.dynamicOverrides)||e(t.overrides)||n.overrides.buttonText,n.buttonTextDefault=e(t.localeDefaults)||e(t.dirDefaults)||n.defaults.buttonText||e(h.globalDefaults)||(n.duration?this._calendar.humanizeDuration(n.duration):null)||i},e}();t.default=a},function(e,t,n){function r(e,t){return e.getPrimitive()===t.getPrimitive()}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),i=n(4),o=n(239),s=n(52),l=n(6),c=n(37),d=n(13),u=n(18),p=n(11),f=n(7),h=function(){function e(e){this.calendar=e,this.stickySource=new s.default(e),this.otherSources=[]}return e.prototype.requestEvents=function(e,t,n,i){return!i&&this.currentPeriod&&this.currentPeriod.isWithinRange(e,t)&&n===this.currentPeriod.timezone||this.setPeriod(new o.default(e,t,n)),this.currentPeriod.whenReleased()},e.prototype.addSource=function(e){this.otherSources.push(e),this.currentPeriod&&this.currentPeriod.requestSource(e)},e.prototype.removeSource=function(e){i.removeExact(this.otherSources,e),this.currentPeriod&&this.currentPeriod.purgeSource(e)},e.prototype.removeAllSources=function(){this.otherSources=[],this.currentPeriod&&this.currentPeriod.purgeAllSources()},e.prototype.refetchSource=function(e){var t=this.currentPeriod;t&&(t.freeze(),t.purgeSource(e),t.requestSource(e),t.thaw())},e.prototype.refetchAllSources=function(){var e=this.currentPeriod;e&&(e.freeze(),e.purgeAllSources(),e.requestSources(this.getSources()),e.thaw())},e.prototype.getSources=function(){return[this.stickySource].concat(this.otherSources)},e.prototype.multiQuerySources=function(e){e?a.isArray(e)||(e=[e]):e=[];var t,n=[];for(t=0;t<e.length;t++)n.push.apply(n,this.querySources(e[t]));return n},e.prototype.querySources=function(t){var e,n,i=this.otherSources;for(e=0;e<i.length;e++)if((n=i[e])===t)return[n];return(n=this.getSourceById(l.default.normalizeId(t)))?[n]:(t=c.default.parse(t,this.calendar),t?a.grep(i,function(e){return r(t,e)}):void 0)},e.prototype.getSourceById=function(t){return a.grep(this.otherSources,function(e){return e.id&&e.id===t})[0]},e.prototype.setPeriod=function(e){this.currentPeriod&&(this.unbindPeriod(this.currentPeriod),this.currentPeriod=null),this.currentPeriod=e,this.bindPeriod(e),e.requestSources(this.getSources())},e.prototype.bindPeriod=function(e){this.listenTo(e,"release",function(e){this.trigger("release",e)})},e.prototype.unbindPeriod=function(e){this.stopListeningTo(e)},e.prototype.getEventDefByUid=function(e){if(this.currentPeriod)return this.currentPeriod.getEventDefByUid(e)},e.prototype.addEventDef=function(e,t){t&&this.stickySource.addEventDef(e),this.currentPeriod&&this.currentPeriod.addEventDef(e)},e.prototype.removeEventDefsById=function(t){this.getSources().forEach(function(e){e.removeEventDefsById(t)}),this.currentPeriod&&this.currentPeriod.removeEventDefsById(t)},e.prototype.removeAllEventDefs=function(){this.getSources().forEach(function(e){e.removeAllEventDefs()}),this.currentPeriod&&this.currentPeriod.removeAllEventDefs()},e.prototype.mutateEventsWithId=function(e,t){var n,i=this.currentPeriod,r=[];return i?(i.freeze(),n=i.getEventDefsById(e),n.forEach(function(e){i.removeEventDef(e),r.push(t.mutateSingle(e)),i.addEventDef(e)}),i.thaw(),function(){i.freeze();for(var e=0;e<n.length;e++)i.removeEventDef(n[e]),r[e](),i.addEventDef(n[e]);i.thaw()}):function(){}},e.prototype.buildMutatedEventInstanceGroup=function(e,t){var n,i,r=this.getEventDefsById(e),a=[];for(n=0;n<r.length;n++)(i=r[n].clone())instanceof d.default&&(t.mutateSingle(i),a.push.apply(a,i.buildInstances()));return new u.default(a)},e.prototype.freeze=function(){this.currentPeriod&&this.currentPeriod.freeze()},e.prototype.thaw=function(){this.currentPeriod&&this.currentPeriod.thaw()},e.prototype.getEventDefsById=function(e){return this.currentPeriod.getEventDefsById(e)},e.prototype.getEventInstances=function(){return this.currentPeriod.getEventInstances()},e.prototype.getEventInstancesWithId=function(e){return this.currentPeriod.getEventInstancesWithId(e)},e.prototype.getEventInstancesWithoutId=function(e){return this.currentPeriod.getEventInstancesWithoutId(e)},e}();t.default=h,p.default.mixInto(h),f.default.mixInto(h)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),r=n(4),a=n(19),o=n(11),s=n(5),l=n(18),c=function(){function e(e,t,n){this.pendingCnt=0,this.freezeDepth=0,this.stuntedReleaseCnt=0,this.releaseCnt=0,this.start=e,this.end=t,this.timezone=n,this.unzonedRange=new s.default(e.clone().stripZone(),t.clone().stripZone()),this.requestsByUid={},this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={}}return e.prototype.isWithinRange=function(e,t){return!e.isBefore(this.start)&&!t.isAfter(this.end)},e.prototype.requestSources=function(e){this.freeze();for(var t=0;t<e.length;t++)this.requestSource(e[t]);this.thaw()},e.prototype.requestSource=function(e){var t=this,n={source:e,status:"pending",eventDefs:null};this.requestsByUid[e.uid]=n,this.pendingCnt+=1,e.fetch(this.start,this.end,this.timezone).then(function(e){"cancelled"!==n.status&&(n.status="completed",n.eventDefs=e,t.addEventDefs(e),t.pendingCnt--,t.tryRelease())},function(){"cancelled"!==n.status&&(n.status="failed",t.pendingCnt--,t.tryRelease())})},e.prototype.purgeSource=function(e){var t=this.requestsByUid[e.uid];t&&(delete this.requestsByUid[e.uid],"pending"===t.status?(t.status="cancelled",this.pendingCnt--,this.tryRelease()):"completed"===t.status&&t.eventDefs.forEach(this.removeEventDef.bind(this)))},e.prototype.purgeAllSources=function(){var e,t,n=this.requestsByUid,i=0;for(e in n)t=n[e],"pending"===t.status?t.status="cancelled":"completed"===t.status&&i++;this.requestsByUid={},this.pendingCnt=0,i&&this.removeAllEventDefs()},e.prototype.getEventDefByUid=function(e){return this.eventDefsByUid[e]},e.prototype.getEventDefsById=function(e){var t=this.eventDefsById[e];return t?t.slice():[]},e.prototype.addEventDefs=function(e){for(var t=0;t<e.length;t++)this.addEventDef(e[t])},e.prototype.addEventDef=function(e){var t,n=this.eventDefsById,i=e.id,r=n[i]||(n[i]=[]),a=e.buildInstances(this.unzonedRange);for(r.push(e),this.eventDefsByUid[e.uid]=e,t=0;t<a.length;t++)this.addEventInstance(a[t],i)},e.prototype.removeEventDefsById=function(e){var t=this;this.getEventDefsById(e).forEach(function(e){t.removeEventDef(e)})},e.prototype.removeAllEventDefs=function(){var e=i.isEmptyObject(this.eventDefsByUid);this.eventDefsByUid={},this.eventDefsById={},this.eventInstanceGroupsById={},e||this.tryRelease()},e.prototype.removeEventDef=function(e){var t=this.eventDefsById,n=t[e.id];delete this.eventDefsByUid[e.uid],n&&(r.removeExact(n,e),n.length||delete t[e.id],this.removeEventInstancesForDef(e))},e.prototype.getEventInstances=function(){var e,t=this.eventInstanceGroupsById,n=[];for(e in t)n.push.apply(n,t[e].eventInstances);return n},e.prototype.getEventInstancesWithId=function(e){var t=this.eventInstanceGroupsById[e];return t?t.eventInstances.slice():[]},e.prototype.getEventInstancesWithoutId=function(e){var t,n=this.eventInstanceGroupsById,i=[];for(t in n)t!==e&&i.push.apply(i,n[t].eventInstances);return i},e.prototype.addEventInstance=function(e,t){var n=this.eventInstanceGroupsById;(n[t]||(n[t]=new l.default)).eventInstances.push(e),this.tryRelease()},e.prototype.removeEventInstancesForDef=function(t){var e,n=this.eventInstanceGroupsById,i=n[t.id];i&&(e=r.removeMatching(i.eventInstances,function(e){return e.def===t}),i.eventInstances.length||delete n[t.id],e&&this.tryRelease())},e.prototype.tryRelease=function(){this.pendingCnt||(this.freezeDepth?this.stuntedReleaseCnt++:this.release())},e.prototype.release=function(){this.releaseCnt++,this.trigger("release",this.eventInstanceGroupsById)},e.prototype.whenReleased=function(){var t=this;return this.releaseCnt?a.default.resolve(this.eventInstanceGroupsById):a.default.construct(function(e){t.one("release",e)})},e.prototype.freeze=function(){this.freezeDepth++||(this.stuntedReleaseCnt=0)},e.prototype.thaw=function(){--this.freezeDepth||!this.stuntedReleaseCnt||this.pendingCnt||this.release()},e}();t.default=c,o.default.mixInto(c)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),i=n(4),r=n(7),o=function(){function e(e,t){this.isFollowing=!1,this.isHidden=!1,this.isAnimating=!1,this.options=t=t||{},this.sourceEl=e,this.parentEl=t.parentEl?a(t.parentEl):e.parent()}return e.prototype.start=function(e){this.isFollowing||(this.isFollowing=!0,this.y0=i.getEvY(e),this.x0=i.getEvX(e),this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),i.getEvIsTouch(e)?this.listenTo(a(document),"touchmove",this.handleMove):this.listenTo(a(document),"mousemove",this.handleMove))},e.prototype.stop=function(e,t){var n=this,i=this.options.revertDuration,r=function(){n.isAnimating=!1,n.removeElement(),n.top0=n.left0=null,t&&t()};this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,this.stopListeningTo(a(document)),e&&i&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:i,complete:r})):r())},e.prototype.getEl=function(){var e=this.el;return e||(e=this.el=this.sourceEl.clone().addClass(this.options.additionalClass||"").css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}),e.addClass("fc-unselectable"),e.appendTo(this.parentEl)),e},e.prototype.removeElement=function(){this.el&&(this.el.remove(),this.el=null)},e.prototype.updatePosition=function(){var e,t;this.getEl(),null==this.top0&&(e=this.sourceEl.offset(),t=this.el.offsetParent().offset(),this.top0=e.top-t.top,this.left0=e.left-t.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},e.prototype.handleMove=function(e){this.topDelta=i.getEvY(e)-this.y0,this.leftDelta=i.getEvX(e)-this.x0,this.isHidden||this.updatePosition()},e.prototype.hide=function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},e.prototype.show=function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())},e}();t.default=o,r.default.mixInto(o)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(22),r=n(15),a=function(n){function e(e){var t=n.call(this,e)||this;return t.dragListener=t.buildDragListener(),t}return i.__extends(e,n),e.prototype.end=function(){this.dragListener.endInteraction()},e.prototype.bindToEl=function(e){var t=this.component,n=this.dragListener;t.bindDateHandlerToEl(e,"mousedown",function(e){t.shouldIgnoreMouse()||n.startInteraction(e)}),t.bindDateHandlerToEl(e,"touchstart",function(e){t.shouldIgnoreTouch()||n.startInteraction(e)})},e.prototype.buildDragListener=function(){var i,r=this,a=this.component,e=new o.default(a,{scroll:this.opt("dragScroll"),interactionStart:function(){i=e.origHit},hitOver:function(e,t,n){t||(i=null)},hitOut:function(){i=null},interactionEnd:function(e,t){var n;!t&&i&&(n=a.getSafeHitFootprint(i))&&r.view.triggerDayClick(n,a.getHitEl(i),e)}});return e.shouldCancelTouchScroll=!1,e.scrollAlwaysKills=!0,e},e}(r.default);t.default=a},function(e,t,n){function r(e){var t,n,i,r=[];for(t=0;t<e.length;t++){for(n=e[t],i=0;i<r.length&&s(n,r[i]).length;i++);n.level=i,(r[i]||(r[i]=[])).push(n)}return r}function a(e){var t,n,i,r,a;for(t=0;t<e.length;t++)for(n=e[t],i=0;i<n.length;i++)for(r=n[i],r.forwardSegs=[],a=t+1;a<e.length;a++)s(r,e[a],r.forwardSegs)}function o(e){var t,n,i=e.forwardSegs,r=0;if(void 0===e.forwardPressure){for(t=0;t<i.length;t++)n=i[t],o(n),r=Math.max(r,1+n.forwardPressure);e.forwardPressure=r}}function s(e,t,n){void 0===n&&(n=[]);for(var i=0;i<t.length;i++)l(e,t[i])&&n.push(t[i]);return n}function l(e,t){return e.bottom>t.top&&e.top<t.bottom}Object.defineProperty(t,"__esModule",{value:!0});var c=n(2),g=n(4),i=n(42),d=function(i){function e(e,t){var n=i.call(this,e,t)||this;return n.timeGrid=e,n}return c.__extends(e,i),e.prototype.renderFgSegs=function(e){this.renderFgSegsIntoContainers(e,this.timeGrid.fgContainerEls)},e.prototype.renderFgSegsIntoContainers=function(e,t){var n,i;for(n=this.timeGrid.groupSegsByCol(e),i=0;i<this.timeGrid.colCnt;i++)this.updateFgSegCoords(n[i]);this.timeGrid.attachSegsByCol(n,t)},e.prototype.unrenderFgSegs=function(){this.fgSegs&&this.fgSegs.forEach(function(e){e.el.remove()})},e.prototype.computeEventTimeFormat=function(){return this.opt("noMeridiemTimeFormat")},e.prototype.computeDisplayEventEnd=function(){return!0},e.prototype.fgSegHtml=function(e,t){var n,i,r,a=this.view,o=a.calendar,s=e.footprint.componentFootprint,l=s.isAllDay,c=e.footprint.eventDef,d=a.isEventDefDraggable(c),u=!t&&e.isStart&&a.isEventDefResizableFromStart(c),p=!t&&e.isEnd&&a.isEventDefResizableFromEnd(c),f=this.getSegClasses(e,d,u||p),h=g.cssToStr(this.getSkinCss(c));if(f.unshift("fc-time-grid-event","fc-v-event"),a.isMultiDayRange(s.unzonedRange)){if(e.isStart||e.isEnd){var m=o.msToMoment(e.startMs),v=o.msToMoment(e.endMs);n=this._getTimeText(m,v,l),i=this._getTimeText(m,v,l,"LT"),r=this._getTimeText(m,v,l,null,!1)}}else n=this.getTimeText(e.footprint),i=this.getTimeText(e.footprint,"LT"),r=this.getTimeText(e.footprint,null,!1);return'<a class="'+f.join(" ")+'"'+(c.url?' href="'+g.htmlEscape(c.url)+'"':"")+(h?' style="'+h+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+g.htmlEscape(r)+'" data-full="'+g.htmlEscape(i)+'"><span>'+g.htmlEscape(n)+"</span></div>":"")+(c.title?'<div class="fc-title">'+g.htmlEscape(c.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(p?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},e.prototype.updateFgSegCoords=function(e){this.timeGrid.computeSegVerticals(e),this.computeFgSegHorizontals(e),this.timeGrid.assignSegVerticals(e),this.assignFgSegHorizontals(e)},e.prototype.computeFgSegHorizontals=function(e){var t,n,i;if(this.sortEventSegs(e),t=r(e),a(t),n=t[0]){for(i=0;i<n.length;i++)o(n[i]);for(i=0;i<n.length;i++)this.computeFgSegForwardBack(n[i],0,0)}},e.prototype.computeFgSegForwardBack=function(e,t,n){var i,r=e.forwardSegs;if(void 0===e.forwardCoord)for(r.length?(this.sortForwardSegs(r),this.computeFgSegForwardBack(r[0],t+1,n),e.forwardCoord=r[0].backwardCoord):e.forwardCoord=1,e.backwardCoord=e.forwardCoord-(e.forwardCoord-n)/(t+1),i=0;i<r.length;i++)this.computeFgSegForwardBack(r[i],0,e.forwardCoord)},e.prototype.sortForwardSegs=function(e){e.sort(g.proxy(this,"compareForwardSegs"))},e.prototype.compareForwardSegs=function(e,t){return t.forwardPressure-e.forwardPressure||(e.backwardCoord||0)-(t.backwardCoord||0)||this.compareEventSegs(e,t)},e.prototype.assignFgSegHorizontals=function(e){var t,n;for(t=0;t<e.length;t++)n=e[t],n.el.css(this.generateFgSegHorizontalCss(n)),n.bottom-n.top<30&&n.el.addClass("fc-short")},e.prototype.generateFgSegHorizontalCss=function(e){var t,n,i=this.opt("slotEventOverlap"),r=e.backwardCoord,a=e.forwardCoord,o=this.timeGrid.generateSegVerticalCss(e),s=this.timeGrid.isRTL;return i&&(a=Math.min(1,r+2*(a-r))),s?(t=1-a,n=r):(t=r,n=1-a),o.zIndex=e.level+1,o.left=100*t+"%",o.right=100*n+"%",i&&e.forwardPressure&&(o[s?"marginLeft":"marginRight"]=20),o},e}(i.default);t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(3),r=n(58),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.renderSegs=function(e,t){var n,i,r,a=[];for(this.eventRenderer.renderFgSegsIntoContainers(e,this.component.helperContainerEls),n=0;n<e.length;n++)i=e[n],t&&t.col===i.col&&(r=t.el,i.el.css({left:r.css("left"),right:r.css("right"),"margin-left":r.css("margin-left"),"margin-right":r.css("margin-right")})),a.push(i.el[0]);return o(a)},t}(r.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(57),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.attachSegEls=function(e,t){var n,i=this.component;return"bgEvent"===e?n=i.bgContainerEls:"businessHours"===e?n=i.businessContainerEls:"highlight"===e&&(n=i.highlightContainerEls),i.updateSegVerticals(t),i.attachSegsByCol(i.groupSegsByCol(t),n),t.map(function(e){return e.el[0]})},t}(r.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var u=n(3),p=n(4),i=n(7),r=function(){function e(e){this.isHidden=!0,this.margin=10,this.options=e||{}}return e.prototype.show=function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},e.prototype.hide=function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},e.prototype.render=function(){var e=this,t=this.options;this.el=u('<div class="fc-popover"/>').addClass(t.className||"").css({top:0,left:0}).append(t.content).appendTo(t.parentEl),this.el.on("click",".fc-close",function(){e.hide()}),t.autoHide&&this.listenTo(u(document),"mousedown",this.documentMousedown)},e.prototype.documentMousedown=function(e){this.el&&!u(e.target).closest(this.el).length&&this.hide()},e.prototype.removeElement=function(){this.hide(),this.el&&(this.el.remove(),this.el=null),this.stopListeningTo(u(document),"mousedown")},e.prototype.position=function(){var e,t,n,i,r,a=this.options,o=this.el.offsetParent().offset(),s=this.el.outerWidth(),l=this.el.outerHeight(),c=u(window),d=p.getScrollParent(this.el);i=a.top||0,r=void 0!==a.left?a.left:void 0!==a.right?a.right-s:0,d.is(window)||d.is(document)?(d=c,e=0,t=0):(n=d.offset(),e=n.top,t=n.left),e+=c.scrollTop(),t+=c.scrollLeft(),!1!==a.viewportConstrain&&(i=Math.min(i,e+d.outerHeight()-l-this.margin),i=Math.max(i,e+this.margin),r=Math.min(r,t+d.outerWidth()-s-this.margin),r=Math.max(r,t+this.margin)),this.el.css({top:i-o.top,left:r-o.left})},e.prototype.trigger=function(e){this.options[e]&&this.options[e].apply(this,Array.prototype.slice.call(arguments,1))},e}();t.default=r,i.default.mixInto(r)},function(e,t,n){function a(e,t){var n,i;for(n=0;n<t.length;n++)if(i=t[n],i.leftCol<=e.rightCol&&i.rightCol>=e.leftCol)return!0;return!1}function o(e,t){return e.leftCol-t.leftCol}Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),g=n(3),f=n(4),i=n(42),s=function(i){function e(e,t){var n=i.call(this,e,t)||this;return n.dayGrid=e,n}return r.__extends(e,i),e.prototype.renderBgRanges=function(e){e=g.grep(e,function(e){return e.eventDef.isAllDay()}),i.prototype.renderBgRanges.call(this,e)},e.prototype.renderFgSegs=function(e){var n=this.rowStructs=this.renderSegRows(e);this.dayGrid.rowEls.each(function(e,t){g(t).find(".fc-content-skeleton > table").append(n[e].tbodyEl)})},e.prototype.unrenderFgSegs=function(){for(var e,t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.rowStructs=null},e.prototype.renderSegRows=function(e){var t,n,i=[];for(t=this.groupSegRows(e),n=0;n<t.length;n++)i.push(this.renderSegRow(n,t[n]));return i},e.prototype.renderSegRow=function(e,t){function n(e){for(;a<e;)c=(v[i-1]||[])[a],c?c.attr("rowspan",parseInt(c.attr("rowspan")||1,10)+1):(c=g("<td/>"),o.append(c)),m[i][a]=c,v[i][a]=c,a++}var i,r,a,o,s,l,c,d=this.dayGrid.colCnt,u=this.buildSegLevels(t),p=Math.max(1,u.length),f=g("<tbody/>"),h=[],m=[],v=[];for(i=0;i<p;i++){if(r=u[i],a=0,o=g("<tr/>"),h.push([]),m.push([]),v.push([]),r)for(s=0;s<r.length;s++){for(l=r[s],n(l.leftCol),c=g('<td class="fc-event-container"/>').append(l.el),l.leftCol!==l.rightCol?c.attr("colspan",l.rightCol-l.leftCol+1):v[i][a]=c;a<=l.rightCol;)m[i][a]=c,h[i][a]=l,a++;o.append(c)}n(d),this.dayGrid.bookendCells(o),f.append(o)}return{row:e,tbodyEl:f,cellMatrix:m,segMatrix:h,segLevels:u,segs:t}},e.prototype.buildSegLevels=function(e){var t,n,i,r=[];for(this.sortEventSegs(e),t=0;t<e.length;t++){for(n=e[t],i=0;i<r.length&&a(n,r[i]);i++);n.level=i,(r[i]||(r[i]=[])).push(n)}for(i=0;i<r.length;i++)r[i].sort(o);return r},e.prototype.groupSegRows=function(e){var t,n=[];for(t=0;t<this.dayGrid.rowCnt;t++)n.push([]);for(t=0;t<e.length;t++)n[e[t].row].push(e[t]);return n},e.prototype.computeEventTimeFormat=function(){return this.opt("extraSmallTimeFormat")},e.prototype.computeDisplayEventEnd=function(){return 1===this.dayGrid.colCnt},e.prototype.fgSegHtml=function(e,t){var n,i,r=this.view,a=e.footprint.eventDef,o=e.footprint.componentFootprint.isAllDay,s=r.isEventDefDraggable(a),l=!t&&o&&e.isStart&&r.isEventDefResizableFromStart(a),c=!t&&o&&e.isEnd&&r.isEventDefResizableFromEnd(a),d=this.getSegClasses(e,s,l||c),u=f.cssToStr(this.getSkinCss(a)),p="";return d.unshift("fc-day-grid-event","fc-h-event"),e.isStart&&(n=this.getTimeText(e.footprint))&&(p='<span class="fc-time">'+f.htmlEscape(n)+"</span>"),i='<span class="fc-title">'+(f.htmlEscape(a.title||"")||"&nbsp;")+"</span>",'<a class="'+d.join(" ")+'"'+(a.url?' href="'+f.htmlEscape(a.url)+'"':"")+(u?' style="'+u+'"':"")+'><div class="fc-content">'+(this.dayGrid.isRTL?i+" "+p:p+" "+i)+"</div>"+(l?'<div class="fc-resizer fc-start-resizer" />':"")+(c?'<div class="fc-resizer fc-end-resizer" />':"")+"</a>"},e}(i.default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),c=n(3),r=n(58),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.renderSegs=function(e,o){var s,l=[];return s=this.eventRenderer.renderSegRows(e),this.component.rowEls.each(function(e,t){var n,i,r=c(t),a=c('<div class="fc-helper-skeleton"><table/></div>');o&&o.row===e?i=o.el.position().top:(n=r.find(".fc-content-skeleton tbody"),n.length||(n=r.find(".fc-content-skeleton table")),i=n.position().top),a.css("top",i).find("table").append(s[e].tbodyEl),r.append(a),l.push(a[0])}),c(l)},t}(r.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),l=n(3),r=n(57),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.fillSegTag="td",e}return i.__extends(e,t),e.prototype.attachSegEls=function(e,t){var n,i,r,a=[];for(n=0;n<t.length;n++)i=t[n],r=this.renderFillRow(e,i),this.component.rowEls.eq(i.row).append(r),a.push(r[0]);return a},e.prototype.renderFillRow=function(e,t){var n,i,r,a=this.component.colCnt,o=t.leftCol,s=t.rightCol+1;return n="businessHours"===e?"bgevent":e.toLowerCase(),i=l('<div class="fc-'+n+'-skeleton"><table><tr/></table></div>'),r=i.find("tr"),o>0&&r.append('<td colspan="'+o+'"/>'),r.append(t.el.attr("colspan",s-o)),s<a&&r.append('<td colspan="'+(a-s)+'"/>'),this.component.bookendCells(r),i},e}(r.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(224),l=n(5),a=function(s){function e(){return null!==s&&s.apply(this,arguments)||this}return i.__extends(e,s),e.prototype.buildRenderRange=function(e,t,n){var i,r=s.prototype.buildRenderRange.call(this,e,t,n),a=this.msToUtcMoment(r.startMs,n),o=this.msToUtcMoment(r.endMs,n);return this.opt("fixedWeekCount")&&(i=Math.ceil(o.diff(a,"weeks",!0)),o.add(6-i,"weeks")),new l.default(a,o)},e}(r.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),u=n(4),r=n(42),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t.prototype.renderFgSegs=function(e){e.length?this.component.renderSegList(e):this.component.renderEmptyMessage()},t.prototype.fgSegHtml=function(e){var t,n=this.view,i=n.calendar,r=i.theme,a=e.footprint,o=a.eventDef,s=a.componentFootprint,l=o.url,c=["fc-list-item"].concat(this.getClasses(o)),d=this.getBgColor(o);return t=s.isAllDay?n.getAllDayHtml():n.isMultiDayRange(s.unzonedRange)?e.isStart||e.isEnd?u.htmlEscape(this._getTimeText(i.msToMoment(e.startMs),i.msToMoment(e.endMs),s.isAllDay)):n.getAllDayHtml():u.htmlEscape(this.getTimeText(a)),l&&c.push("fc-has-url"),'<tr class="'+c.join(" ")+'">'+(this.displayEventTime?'<td class="fc-list-item-time '+r.getClass("widgetContent")+'">'+(t||"")+"</td>":"")+'<td class="fc-list-item-marker '+r.getClass("widgetContent")+'"><span class="fc-event-dot"'+(d?' style="background-color:'+d+'"':"")+'></span></td><td class="fc-list-item-title '+r.getClass("widgetContent")+'"><a'+(l?' href="'+u.htmlEscape(l)+'"':"")+">"+u.htmlEscape(o.title||"")+"</a></td></tr>"},t.prototype.computeEventTimeFormat=function(){return this.opt("mediumTimeFormat")},t}(r.default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),a=n(3),i=n(59),o=function(i){function e(){return null!==i&&i.apply(this,arguments)||this}return r.__extends(e,i),e.prototype.handleClick=function(e,t){var n;i.prototype.handleClick.call(this,e,t),a(t.target).closest("a[href]").length||(n=e.footprint.eventDef.url)&&!t.isDefaultPrevented()&&(window.location.href=n)},e}(i.default);t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(37),r=n(52),a=n(211),o=n(212);i.default.registerClass(r.default),i.default.registerClass(a.default),i.default.registerClass(o.default)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),r=n(209),a=n(210),o=n(254);i.defineThemeSystem("standard",r.default),i.defineThemeSystem("jquery-ui",a.default),i.defineThemeSystem("bootstrap3",o.default)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=n(38),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(t,e),t}(r.default);t.default=a,a.prototype.classes={widget:"fc-bootstrap3",tableGrid:"table-bordered",tableList:"table table-striped",buttonGroup:"btn-group",button:"btn btn-default",stateActive:"active",stateDisabled:"disabled",today:"alert alert-info",popover:"panel panel-default",popoverHeader:"panel-heading",popoverContent:"panel-body",headerRow:"panel-default",dayRow:"panel-default",listView:"panel panel-default"},a.prototype.baseIconClass="glyphicon",a.prototype.iconClasses={close:"glyphicon-remove",prev:"glyphicon-chevron-left",next:"glyphicon-chevron-right",prevYear:"glyphicon-backward",nextYear:"glyphicon-forward"},a.prototype.iconOverrideOption="bootstrapGlyphicons",a.prototype.iconOverrideCustomButtonOption="bootstrapGlyphicon",a.prototype.iconOverridePrefix="glyphicon-"},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(62),a=n(225);i.defineView("basic",{class:r.default}),i.defineView("basicDay",{type:"basic",duration:{days:1}}),i.defineView("basicWeek",{type:"basic",duration:{weeks:1}}),i.defineView("month",{class:a.default,duration:{months:1},defaults:{fixedWeekCount:!0}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(222);i.defineView("agenda",{class:r.default,defaults:{allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0}}),i.defineView("agendaDay",{type:"agenda",duration:{days:1}}),i.defineView("agendaWeek",{type:"agenda",duration:{weeks:1}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n(226);i.defineView("list",{class:r.default,buttonTextKey:"list",defaults:{buttonText:"list",listDayFormat:"LL",noEventsMessage:"No events to display"}}),i.defineView("listDay",{type:"list",duration:{days:1},defaults:{listDayFormat:"dddd"}}),i.defineView("listWeek",{type:"list",duration:{weeks:1},defaults:{listDayFormat:"dddd",listDayAltFormat:"LL"}}),i.defineView("listMonth",{type:"list",duration:{month:1},defaults:{listDayAltFormat:"dddd"}}),i.defineView("listYear",{type:"list",duration:{year:1},defaults:{listDayAltFormat:"dddd"}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}])});(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function($){$.ui=$.ui||{};$.extend($.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});$.fn.extend({scrollParent:function(e){var t=this.css("position"),n=t==="absolute",i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var e=$(this);if(n&&e.css("position")==="static"){return false}return i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return t==="fixed"||!r.length?$(this[0].ownerDocument||document):r},uniqueId:function(){var e=0;return function(){return this.each(function(){if(!this.id){this.id="ui-id-"+ ++e}})}}(),removeUniqueId:function(){return this.each(function(){if(/^ui-id-\d+$/.test(this.id)){$(this).removeAttr("id")}})}});function i(e,t){var n,i,r,a=e.nodeName.toLowerCase();if("area"===a){n=e.parentNode;i=n.name;if(!e.href||!i||n.nodeName.toLowerCase()!=="map"){return false}r=$("img[usemap='#"+i+"']")[0];return!!r&&o(r)}return(/^(input|select|textarea|button|object)$/.test(a)?!e.disabled:"a"===a?e.href||t:t)&&o(e)}function o(e){return $.expr.filters.visible(e)&&!$(e).parents().addBack().filter(function(){return $.css(this,"visibility")==="hidden"}).length}$.extend($.expr[":"],{data:$.expr.createPseudo?$.expr.createPseudo(function(t){return function(e){return!!$.data(e,t)}}):function(e,t,n){return!!$.data(e,n[3])},focusable:function(e){return i(e,!isNaN($.attr(e,"tabindex")))},tabbable:function(e){var t=$.attr(e,"tabindex"),n=isNaN(t);return(n||t>=0)&&i(e,!n)}});if(!$("<a>").outerWidth(1).jquery){$.each(["Width","Height"],function(e,n){var r=n==="Width"?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),a={innerWidth:$.fn.innerWidth,innerHeight:$.fn.innerHeight,outerWidth:$.fn.outerWidth,outerHeight:$.fn.outerHeight};function o(e,t,n,i){$.each(r,function(){t-=parseFloat($.css(e,"padding"+this))||0;if(n){t-=parseFloat($.css(e,"border"+this+"Width"))||0}if(i){t-=parseFloat($.css(e,"margin"+this))||0}});return t}$.fn["inner"+n]=function(e){if(e===undefined){return a["inner"+n].call(this)}return this.each(function(){$(this).css(i,o(this,e)+"px")})};$.fn["outer"+n]=function(e,t){if(typeof e!=="number"){return a["outer"+n].call(this,e)}return this.each(function(){$(this).css(i,o(this,e,true,t)+"px")})}})}if(!$.fn.addBack){$.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}if($("<a>").data("a-b","a").removeData("a-b").data("a-b")){$.fn.removeData=function(t){return function(e){if(arguments.length){return t.call(this,$.camelCase(e))}else{return t.call(this)}}}($.fn.removeData)}$.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());$.fn.extend({focus:function(e){return function(t,n){return typeof t==="number"?this.each(function(){var e=this;setTimeout(function(){$(e).focus();if(n){n.call(e)}},t)}):e.apply(this,arguments)}}($.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(e!==undefined){return this.css("zIndex",e)}if(this.length){var t=$(this[0]),n,i;while(t.length&&t[0]!==document){n=t.css("position");if(n==="absolute"||n==="relative"||n==="fixed"){i=parseInt(t.css("zIndex"),10);if(!isNaN(i)&&i!==0){return i}}t=t.parent()}}return 0}});$.ui.plugin={add:function(e,t,n){var i,r=$.ui[e].prototype;for(i in n){r.plugins[i]=r.plugins[i]||[];r.plugins[i].push([t,n[i]])}},call:function(e,t,n,i){var r,a=e.plugins[t];if(!a){return}if(!i&&(!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)){return}for(r=0;r<a.length;r++){if(e.options[a[r][0]]){a[r][1].apply(e.element,n)}}}};var n=0,s=Array.prototype.slice;$.cleanData=function(r){return function(e){var t,n,i;for(i=0;(n=e[i])!=null;i++){try{t=$._data(n,"events");if(t&&t.remove){$(n).triggerHandler("remove")}}catch(e){}}r(e)}}($.cleanData);$.widget=function(e,n,t){var i,r,a,o,s={},l=e.split(".")[0];e=e.split(".")[1];i=l+"-"+e;if(!t){t=n;n=$.Widget}$.expr[":"][i.toLowerCase()]=function(e){return!!$.data(e,i)};$[l]=$[l]||{};r=$[l][e];a=$[l][e]=function(e,t){if(!this._createWidget){return new a(e,t)}if(arguments.length){this._createWidget(e,t)}};$.extend(a,r,{version:t.version,_proto:$.extend({},t),_childConstructors:[]});o=new n;o.options=$.widget.extend({},o.options);$.each(t,function(t,a){if(!$.isFunction(a)){s[t]=a;return}s[t]=function(){var i=function(){return n.prototype[t].apply(this,arguments)},r=function(e){return n.prototype[t].apply(this,e)};return function(){var e=this._super,t=this._superApply,n;this._super=i;this._superApply=r;n=a.apply(this,arguments);this._super=e;this._superApply=t;return n}}()});a.prototype=$.widget.extend(o,{widgetEventPrefix:r?o.widgetEventPrefix||e:e},s,{constructor:a,namespace:l,widgetName:e,widgetFullName:i});if(r){$.each(r._childConstructors,function(e,t){var n=t.prototype;$.widget(n.namespace+"."+n.widgetName,a,t._proto)});delete r._childConstructors}else{n._childConstructors.push(a)}$.widget.bridge(e,a);return a};$.widget.extend=function(e){var t=s.call(arguments,1),n=0,i=t.length,r,a;for(;n<i;n++){for(r in t[n]){a=t[n][r];if(t[n].hasOwnProperty(r)&&a!==undefined){if($.isPlainObject(a)){e[r]=$.isPlainObject(e[r])?$.widget.extend({},e[r],a):$.widget.extend({},a)}else{e[r]=a}}}}return e};$.widget.bridge=function(a,t){var o=t.prototype.widgetFullName||a;$.fn[a]=function(n){var e=typeof n==="string",i=s.call(arguments,1),r=this;if(e){this.each(function(){var e,t=$.data(this,o);if(n==="instance"){r=t;return false}if(!t){return $.error("cannot call methods on "+a+" prior to initialization; "+"attempted to call method '"+n+"'")}if(!$.isFunction(t[n])||n.charAt(0)==="_"){return $.error("no such method '"+n+"' for "+a+" widget instance")}e=t[n].apply(t,i);if(e!==t&&e!==undefined){r=e&&e.jquery?r.pushStack(e.get()):e;return false}})}else{if(i.length){n=$.widget.extend.apply(null,[n].concat(i))}this.each(function(){var e=$.data(this,o);if(e){e.option(n||{});if(e._init){e._init()}}else{$.data(this,o,new t(n,this))}})}return r}};$.Widget=function(){};$.Widget._childConstructors=[];$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:false,create:null},_createWidget:function(e,t){t=$(t||this.defaultElement||this)[0];this.element=$(t);this.uuid=n++;this.eventNamespace="."+this.widgetName+this.uuid;this.bindings=$();this.hoverable=$();this.focusable=$();if(t!==this){$.data(t,this.widgetFullName,this);this._on(true,this.element,{remove:function(e){if(e.target===t){this.destroy()}}});this.document=$(t.style?t.ownerDocument:t.document||t);this.window=$(this.document[0].defaultView||this.document[0].parentWindow)}this.options=$.widget.extend({},this.options,this._getCreateOptions(),e);this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:$.noop,_getCreateEventData:$.noop,_create:$.noop,_init:$.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData($.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:$.noop,widget:function(){return this.element},option:function(e,t){var n=e,i,r,a;if(arguments.length===0){return $.widget.extend({},this.options)}if(typeof e==="string"){n={};i=e.split(".");e=i.shift();if(i.length){r=n[e]=$.widget.extend({},this.options[e]);for(a=0;a<i.length-1;a++){r[i[a]]=r[i[a]]||{};r=r[i[a]]}e=i.pop();if(arguments.length===1){return r[e]===undefined?null:r[e]}r[e]=t}else{if(arguments.length===1){return this.options[e]===undefined?null:this.options[e]}n[e]=t}}this._setOptions(n);return this},_setOptions:function(e){var t;for(t in e){this._setOption(t,e[t])}return this},_setOption:function(e,t){this.options[e]=t;if(e==="disabled"){this.widget().toggleClass(this.widgetFullName+"-disabled",!!t);if(t){this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")}}return this},enable:function(){return this._setOptions({disabled:false})},disable:function(){return this._setOptions({disabled:true})},_on:function(o,s,e){var l,c=this;if(typeof o!=="boolean"){e=s;s=o;o=false}if(!e){e=s;s=this.element;l=this.widget()}else{s=l=$(s);this.bindings=this.bindings.add(s)}$.each(e,function(e,t){function n(){if(!o&&(c.options.disabled===true||$(this).hasClass("ui-state-disabled"))){return}return(typeof t==="string"?c[t]:t).apply(c,arguments)}if(typeof t!=="string"){n.guid=t.guid=t.guid||n.guid||$.guid++}var i=e.match(/^([\w:-]*)\s*(.*)$/),r=i[1]+c.eventNamespace,a=i[2];if(a){l.delegate(a,r,n)}else{s.bind(r,n)}})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;e.unbind(t).undelegate(t);this.bindings=$(this.bindings.not(e).get());this.focusable=$(this.focusable.not(e).get());this.hoverable=$(this.hoverable.not(e).get())},_delay:function(e,t){function n(){return(typeof e==="string"?i[e]:e).apply(i,arguments)}var i=this;return setTimeout(n,t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e);this._on(e,{mouseenter:function(e){$(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){$(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e);this._on(e,{focusin:function(e){$(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){$(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,n){var i,r,a=this.options[e];n=n||{};t=$.Event(t);t.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();t.target=this.element[0];r=t.originalEvent;if(r){for(i in r){if(!(i in t)){t[i]=r[i]}}}this.element.trigger(t,n);return!($.isFunction(a)&&a.apply(this.element[0],[t].concat(n))===false||t.isDefaultPrevented())}};$.each({show:"fadeIn",hide:"fadeOut"},function(a,o){$.Widget.prototype["_"+a]=function(t,e,n){if(typeof e==="string"){e={effect:e}}var i,r=!e?a:e===true||typeof e==="number"?o:e.effect||o;e=e||{};if(typeof e==="number"){e={duration:e}}i=!$.isEmptyObject(e);e.complete=n;if(e.delay){t.delay(e.delay)}if(i&&$.effects&&$.effects.effect[r]){t[a](e)}else if(r!==a&&t[r]){t[r](e.duration,e.easing,n)}else{t.queue(function(e){$(this)[a]();if(n){n.call(t[0])}e()})}}});var e=$.widget;var r=false;$(document).mouseup(function(){r=false});var t=$.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===$.data(e.target,t.widgetName+".preventClickEvent")){$.removeData(e.target,t.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);if(this._mouseMoveDelegate){this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)}},_mouseDown:function(e){if(r){return}this._mouseMoved=false;this._mouseStarted&&this._mouseUp(e);this._mouseDownEvent=e;var t=this,n=e.which===1,i=typeof this.options.cancel==="string"&&e.target.nodeName?$(e.target).closest(this.options.cancel).length:false;if(!n||i||!this._mouseCapture(e)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=this._mouseStart(e)!==false;if(!this._mouseStarted){e.preventDefault();return true}}if(true===$.data(e.target,this.widgetName+".preventClickEvent")){$.removeData(e.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(e){return t._mouseMove(e)};this._mouseUpDelegate=function(e){return t._mouseUp(e)};this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);e.preventDefault();r=true;return true},_mouseMove:function(e){if(this._mouseMoved){if($.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button){return this._mouseUp(e)}else if(!e.which){return this._mouseUp(e)}}if(e.which||e.button){this._mouseMoved=true}if(this._mouseStarted){this._mouseDrag(e);return e.preventDefault()}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==false;this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)}return!this._mouseStarted},_mouseUp:function(e){this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(e.target===this._mouseDownEvent.target){$.data(e.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(e)}r=false;return false},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}});(function(){$.ui=$.ui||{};var r,C,x=Math.max,k=Math.abs,S=Math.round,i=/left|center|right/,a=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,l=/%$/,t=$.fn.position;function D(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function T(e,t){return parseInt($.css(e,t),10)||0}function n(e){var t=e[0];if(t.nodeType===9){return{width:e.width(),height:e.height(),offset:{top:0,left:0}}}if($.isWindow(t)){return{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}}if(t.preventDefault){return{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}}return{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}$.position={scrollbarWidth:function(){if(r!==undefined){return r}var e,t,n=$("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),i=n.children()[0];$("body").append(n);e=i.offsetWidth;n.css("overflow","scroll");t=i.offsetWidth;if(e===t){t=n[0].clientWidth}n.remove();return r=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),i=t==="scroll"||t==="auto"&&e.width<e.element[0].scrollWidth,r=n==="scroll"||n==="auto"&&e.height<e.element[0].scrollHeight;return{width:r?$.position.scrollbarWidth():0,height:i?$.position.scrollbarWidth():0}},getWithinInfo:function(e){var t=$(e||window),n=$.isWindow(t[0]),i=!!t[0]&&t[0].nodeType===9;return{element:t,isWindow:n,isDocument:i,offset:t.offset()||{left:0,top:0},scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop(),width:n||i?t.width():t.outerWidth(),height:n||i?t.height():t.outerHeight()}}};$.fn.position=function(u){if(!u||!u.of){return t.apply(this,arguments)}u=$.extend({},u);var p,f,h,m,v,e,g=$(u.of),_=$.position.getWithinInfo(u.within),y=$.position.getScrollInfo(_),b=(u.collision||"flip").split(" "),w={};e=n(g);if(g[0].preventDefault){u.at="left top"}f=e.width;h=e.height;m=e.offset;v=$.extend({},m);$.each(["my","at"],function(){var e=(u[this]||"").split(" "),t,n;if(e.length===1){e=i.test(e[0])?e.concat(["center"]):a.test(e[0])?["center"].concat(e):["center","center"]}e[0]=i.test(e[0])?e[0]:"center";e[1]=a.test(e[1])?e[1]:"center";t=o.exec(e[0]);n=o.exec(e[1]);w[this]=[t?t[0]:0,n?n[0]:0];u[this]=[s.exec(e[0])[0],s.exec(e[1])[0]]});if(b.length===1){b[1]=b[0]}if(u.at[0]==="right"){v.left+=f}else if(u.at[0]==="center"){v.left+=f/2}if(u.at[1]==="bottom"){v.top+=h}else if(u.at[1]==="center"){v.top+=h/2}p=D(w.at,f,h);v.left+=p[0];v.top+=p[1];return this.each(function(){var n,e,o=$(this),s=o.outerWidth(),l=o.outerHeight(),t=T(this,"marginLeft"),i=T(this,"marginTop"),r=s+t+T(this,"marginRight")+y.width,a=l+i+T(this,"marginBottom")+y.height,c=$.extend({},v),d=D(w.my,o.outerWidth(),o.outerHeight());if(u.my[0]==="right"){c.left-=s}else if(u.my[0]==="center"){c.left-=s/2}if(u.my[1]==="bottom"){c.top-=l}else if(u.my[1]==="center"){c.top-=l/2}c.left+=d[0];c.top+=d[1];if(!C){c.left=S(c.left);c.top=S(c.top)}n={marginLeft:t,marginTop:i};$.each(["left","top"],function(e,t){if($.ui.position[b[e]]){$.ui.position[b[e]][t](c,{targetWidth:f,targetHeight:h,elemWidth:s,elemHeight:l,collisionPosition:n,collisionWidth:r,collisionHeight:a,offset:[p[0]+d[0],p[1]+d[1]],my:u.my,at:u.at,within:_,elem:o})}});if(u.using){e=function(e){var t=m.left-c.left,n=t+f-s,i=m.top-c.top,r=i+h-l,a={target:{element:g,left:m.left,top:m.top,width:f,height:h},element:{element:o,left:c.left,top:c.top,width:s,height:l},horizontal:n<0?"left":t>0?"right":"center",vertical:r<0?"top":i>0?"bottom":"middle"};if(f<s&&k(t+n)<f){a.horizontal="center"}if(h<l&&k(i+r)<h){a.vertical="middle"}if(x(k(t),k(n))>x(k(i),k(r))){a.important="horizontal"}else{a.important="vertical"}u.using.call(this,e,a)}}o.offset($.extend(c,{using:e}))})};$.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,a=e.left-t.collisionPosition.marginLeft,o=i-a,s=a+t.collisionWidth-r-i,l;if(t.collisionWidth>r){if(o>0&&s<=0){l=e.left+o+t.collisionWidth-r-i;e.left+=o-l}else if(s>0&&o<=0){e.left=i}else{if(o>s){e.left=i+r-t.collisionWidth}else{e.left=i}}}else if(o>0){e.left+=o}else if(s>0){e.left-=s}else{e.left=x(e.left-a,e.left)}},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,o=i-a,s=a+t.collisionHeight-r-i,l;if(t.collisionHeight>r){if(o>0&&s<=0){l=e.top+o+t.collisionHeight-r-i;e.top+=o-l}else if(s>0&&o<=0){e.top=i}else{if(o>s){e.top=i+r-t.collisionHeight}else{e.top=i}}}else if(o>0){e.top+=o}else if(s>0){e.top-=s}else{e.top=x(e.top-a,e.top)}}},flip:{left:function(e,t){var n=t.within,i=n.offset.left+n.scrollLeft,r=n.width,a=n.isWindow?n.scrollLeft:n.offset.left,o=e.left-t.collisionPosition.marginLeft,s=o-a,l=o+t.collisionWidth-r-a,c=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,d=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,u=-2*t.offset[0],p,f;if(s<0){p=e.left+c+d+u+t.collisionWidth-r-i;if(p<0||p<k(s)){e.left+=c+d+u}}else if(l>0){f=e.left-t.collisionPosition.marginLeft+c+d+u-a;if(f>0||k(f)<l){e.left+=c+d+u}}},top:function(e,t){var n=t.within,i=n.offset.top+n.scrollTop,r=n.height,a=n.isWindow?n.scrollTop:n.offset.top,o=e.top-t.collisionPosition.marginTop,s=o-a,l=o+t.collisionHeight-r-a,c=t.my[1]==="top",d=c?-t.elemHeight:t.my[1]==="bottom"?t.elemHeight:0,u=t.at[1]==="top"?t.targetHeight:t.at[1]==="bottom"?-t.targetHeight:0,p=-2*t.offset[1],f,h;if(s<0){h=e.top+d+u+p+t.collisionHeight-r-i;if(h<0||h<k(s)){e.top+=d+u+p}}else if(l>0){f=e.top-t.collisionPosition.marginTop+d+u+p-a;if(f>0||k(f)<l){e.top+=d+u+p}}}},flipfit:{left:function(){$.ui.position.flip.left.apply(this,arguments);$.ui.position.fit.left.apply(this,arguments)},top:function(){$.ui.position.flip.top.apply(this,arguments);$.ui.position.fit.top.apply(this,arguments)}}};(function(){var e,t,n,i,r,a=document.getElementsByTagName("body")[0],o=document.createElement("div");e=document.createElement(a?"div":"body");n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(a){$.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"})}for(r in n){e.style[r]=n[r]}e.appendChild(o);t=a||document.documentElement;t.insertBefore(e,t.firstChild);o.style.cssText="position: absolute; left: 10.7432222px;";i=$(o).offset().left;C=i>10&&i<11;e.innerHTML="";t.removeChild(e)})()})();var a=$.ui.position;$.widget("ui.draggable",$.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false,drag:null,start:null,stop:null},_create:function(){if(this.options.helper==="original"){this._setPositionRelative()}if(this.options.addClasses){this.element.addClass("ui-draggable")}if(this.options.disabled){this.element.addClass("ui-draggable-disabled")}this._setHandleClassName();this._mouseInit()},_setOption:function(e,t){this._super(e,t);if(e==="handle"){this._removeHandleClassName();this._setHandleClassName()}},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=true;return}this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(e){var t=this.options;this._blurActiveElement(e);if(this.helper||t.disabled||$(e.target).closest(".ui-resizable-handle").length>0){return false}this.handle=this._getHandle(e);if(!this.handle){return false}this._blockFrames(t.iframeFix===true?"iframe":t.iframeFix);return true},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=$(this);return $("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_blurActiveElement:function(e){var t=this.document[0];if(!this.handleElement.is(e.target)){return}try{if(t.activeElement&&t.activeElement.nodeName.toLowerCase()!=="body"){$(t.activeElement).blur()}}catch(e){}},_mouseStart:function(e){var t=this.options;this.helper=this._createHelper(e);this.helper.addClass("ui-draggable-dragging");this._cacheHelperProportions();if($.ui.ddmanager){$.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent(true);this.offsetParent=this.helper.offsetParent();this.hasFixedAncestor=this.helper.parents().filter(function(){return $(this).css("position")==="fixed"}).length>0;this.positionAbs=this.element.offset();this._refreshOffsets(e);this.originalPosition=this.position=this._generatePosition(e,false);this.originalPageX=e.pageX;this.originalPageY=e.pageY;t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt);this._setContainment();if(this._trigger("start",e)===false){this._clear();return false}this._cacheHelperProportions();if($.ui.ddmanager&&!t.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,e)}this._normalizeRightBottom();this._mouseDrag(e,true);if($.ui.ddmanager){$.ui.ddmanager.dragStart(this,e)}return true},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:false,parent:this._getParentOffset(),relative:this._getRelativeOffset()};this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,t){if(this.hasFixedAncestor){this.offset.parent=this._getParentOffset()}this.position=this._generatePosition(e,true);this.positionAbs=this._convertPositionTo("absolute");if(!t){var n=this._uiHash();if(this._trigger("drag",e,n)===false){this._mouseUp({});return false}this.position=n.position}this.helper[0].style.left=this.position.left+"px";this.helper[0].style.top=this.position.top+"px";if($.ui.ddmanager){$.ui.ddmanager.drag(this,e)}return false},_mouseStop:function(e){var t=this,n=false;if($.ui.ddmanager&&!this.options.dropBehaviour){n=$.ui.ddmanager.drop(this,e)}if(this.dropped){n=this.dropped;this.dropped=false}if(this.options.revert==="invalid"&&!n||this.options.revert==="valid"&&n||this.options.revert===true||$.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)){$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(t._trigger("stop",e)!==false){t._clear()}})}else{if(this._trigger("stop",e)!==false){this._clear()}}return false},_mouseUp:function(e){this._unblockFrames();if($.ui.ddmanager){$.ui.ddmanager.dragStop(this,e)}if(this.handleElement.is(e.target)){this.element.focus()}return $.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(e){return this.options.handle?!!$(e.target).closest(this.element.find(this.options.handle)).length:true},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var t=this.options,n=$.isFunction(t.helper),i=n?$(t.helper.apply(this.element[0],[e])):t.helper==="clone"?this.element.clone().removeAttr("id"):this.element;if(!i.parents("body").length){i.appendTo(t.appendTo==="parent"?this.element[0].parentNode:t.appendTo)}if(n&&i[0]===this.element[0]){this._setPositionRelative()}if(i[0]!==this.element[0]&&!/(fixed|absolute)/.test(i.css("position"))){i.css("position","absolute")}return i},_setPositionRelative:function(){if(!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"}},_adjustOffsetFromHelper:function(e){if(typeof e==="string"){e=e.split(" ")}if($.isArray(e)){e={left:+e[0],top:+e[1]||0}}if("left"in e){this.offset.click.left=e.left+this.margins.left}if("right"in e){this.offset.click.left=this.helperProportions.width-e.right+this.margins.left}if("top"in e){this.offset.click.top=e.top+this.margins.top}if("bottom"in e){this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top}},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),t=this.document[0];if(this.cssPosition==="absolute"&&this.scrollParent[0]!==t&&$.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this._isRootNode(this.offsetParent[0])){e={top:0,left:0}}return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition!=="relative"){return{top:0,left:0}}var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(!t?this.scrollParent.scrollTop():0),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(!t?this.scrollParent.scrollLeft():0)}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,n,i=this.options,r=this.document[0];this.relativeContainer=null;if(!i.containment){this.containment=null;return}if(i.containment==="window"){this.containment=[$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,$(window).scrollLeft()+$(window).width()-this.helperProportions.width-this.margins.left,$(window).scrollTop()+($(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(i.containment==="document"){this.containment=[0,0,$(r).width()-this.helperProportions.width-this.margins.left,($(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(i.containment.constructor===Array){this.containment=i.containment;return}if(i.containment==="parent"){i.containment=this.helper[0].parentNode}t=$(i.containment);n=t[0];if(!n){return}e=/(scroll|auto)/.test(t.css("overflow"));this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relativeContainer=t},_convertPositionTo:function(e,t){if(!t){t=this.position}var n=e==="absolute"?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-(this.cssPosition==="fixed"?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-(this.cssPosition==="fixed"?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,r,a,o=this.options,s=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;if(!s||!this.offset.scroll){this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}}if(t){if(this.containment){if(this.relativeContainer){i=this.relativeContainer.offset();n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}else{n=this.containment}if(e.pageX-this.offset.click.left<n[0]){l=n[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<n[1]){c=n[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>n[2]){l=n[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>n[3]){c=n[3]+this.offset.click.top}}if(o.grid){r=o.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY;c=n?r-this.offset.click.top>=n[1]||r-this.offset.click.top>n[3]?r:r-this.offset.click.top>=n[1]?r-o.grid[1]:r+o.grid[1]:r;a=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX;l=n?a-this.offset.click.left>=n[0]||a-this.offset.click.left>n[2]?a:a-this.offset.click.left>=n[0]?a-o.grid[0]:a+o.grid[0]:a}if(o.axis==="y"){l=this.originalPageX}if(o.axis==="x"){c=this.originalPageY}}return{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false;if(this.destroyOnClear){this.destroy()}},_normalizeRightBottom:function(){if(this.options.axis!=="y"&&this.helper.css("right")!=="auto"){this.helper.width(this.helper.width());this.helper.css("right","auto")}if(this.options.axis!=="x"&&this.helper.css("bottom")!=="auto"){this.helper.height(this.helper.height());this.helper.css("bottom","auto")}},_trigger:function(e,t,n){n=n||this._uiHash();$.ui.plugin.call(this,e,[t,n,this],true);if(/^(drag|start|stop)/.test(e)){this.positionAbs=this._convertPositionTo("absolute");n.offset=this.positionAbs}return $.Widget.prototype._trigger.call(this,e,t,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});$.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,n){var i=$.extend({},e,{item:n.element});n.sortables=[];$(n.options.connectToSortable).each(function(){var e=$(this).sortable("instance");if(e&&!e.options.disabled){n.sortables.push(e);e.refreshPositions();e._trigger("activate",t,i)}})},stop:function(t,e,n){var i=$.extend({},e,{item:n.element});n.cancelHelperRemoval=false;$.each(n.sortables,function(){var e=this;if(e.isOver){e.isOver=0;n.cancelHelperRemoval=true;e.cancelHelperRemoval=false;e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")};e._mouseStop(t);e.options.helper=e.options._helper}else{e.cancelHelperRemoval=true;e._trigger("deactivate",t,i)}})},drag:function(n,i,r){$.each(r.sortables,function(){var e=false,t=this;t.positionAbs=r.positionAbs;t.helperProportions=r.helperProportions;t.offset.click=r.offset.click;if(t._intersectsWith(t.containerCache)){e=true;$.each(r.sortables,function(){this.positionAbs=r.positionAbs;this.helperProportions=r.helperProportions;this.offset.click=r.offset.click;if(this!==t&&this._intersectsWith(this.containerCache)&&$.contains(t.element[0],this.element[0])){e=false}return e})}if(e){if(!t.isOver){t.isOver=1;r._parent=i.helper.parent();t.currentItem=i.helper.appendTo(t.element).data("ui-sortable-item",true);t.options._helper=t.options.helper;t.options.helper=function(){return i.helper[0]};n.target=t.currentItem[0];t._mouseCapture(n,true);t._mouseStart(n,true,true);t.offset.click.top=r.offset.click.top;t.offset.click.left=r.offset.click.left;t.offset.parent.left-=r.offset.parent.left-t.offset.parent.left;t.offset.parent.top-=r.offset.parent.top-t.offset.parent.top;r._trigger("toSortable",n);r.dropped=t.element;$.each(r.sortables,function(){this.refreshPositions()});r.currentItem=r.element;t.fromOutside=r}if(t.currentItem){t._mouseDrag(n);i.position=t.position}}else{if(t.isOver){t.isOver=0;t.cancelHelperRemoval=true;t.options._revert=t.options.revert;t.options.revert=false;t._trigger("out",n,t._uiHash(t));t._mouseStop(n,true);t.options.revert=t.options._revert;t.options.helper=t.options._helper;if(t.placeholder){t.placeholder.remove()}i.helper.appendTo(r._parent);r._refreshOffsets(n);i.position=r._generatePosition(n,true);r._trigger("fromSortable",n);r.dropped=false;$.each(r.sortables,function(){this.refreshPositions()})}}})}});$.ui.plugin.add("draggable","cursor",{start:function(e,t,n){var i=$("body"),r=n.options;if(i.css("cursor")){r._cursor=i.css("cursor")}i.css("cursor",r.cursor)},stop:function(e,t,n){var i=n.options;if(i._cursor){$("body").css("cursor",i._cursor)}}});$.ui.plugin.add("draggable","opacity",{start:function(e,t,n){var i=$(t.helper),r=n.options;if(i.css("opacity")){r._opacity=i.css("opacity")}i.css("opacity",r.opacity)},stop:function(e,t,n){var i=n.options;if(i._opacity){$(t.helper).css("opacity",i._opacity)}}});$.ui.plugin.add("draggable","scroll",{start:function(e,t,n){if(!n.scrollParentNotHidden){n.scrollParentNotHidden=n.helper.scrollParent(false)}if(n.scrollParentNotHidden[0]!==n.document[0]&&n.scrollParentNotHidden[0].tagName!=="HTML"){n.overflowOffset=n.scrollParentNotHidden.offset()}},drag:function(e,t,n){var i=n.options,r=false,a=n.scrollParentNotHidden[0],o=n.document[0];if(a!==o&&a.tagName!=="HTML"){if(!i.axis||i.axis!=="x"){if(n.overflowOffset.top+a.offsetHeight-e.pageY<i.scrollSensitivity){a.scrollTop=r=a.scrollTop+i.scrollSpeed}else if(e.pageY-n.overflowOffset.top<i.scrollSensitivity){a.scrollTop=r=a.scrollTop-i.scrollSpeed}}if(!i.axis||i.axis!=="y"){if(n.overflowOffset.left+a.offsetWidth-e.pageX<i.scrollSensitivity){a.scrollLeft=r=a.scrollLeft+i.scrollSpeed}else if(e.pageX-n.overflowOffset.left<i.scrollSensitivity){a.scrollLeft=r=a.scrollLeft-i.scrollSpeed}}}else{if(!i.axis||i.axis!=="x"){if(e.pageY-$(o).scrollTop()<i.scrollSensitivity){r=$(o).scrollTop($(o).scrollTop()-i.scrollSpeed)}else if($(window).height()-(e.pageY-$(o).scrollTop())<i.scrollSensitivity){r=$(o).scrollTop($(o).scrollTop()+i.scrollSpeed)}}if(!i.axis||i.axis!=="y"){if(e.pageX-$(o).scrollLeft()<i.scrollSensitivity){r=$(o).scrollLeft($(o).scrollLeft()-i.scrollSpeed)}else if($(window).width()-(e.pageX-$(o).scrollLeft())<i.scrollSensitivity){r=$(o).scrollLeft($(o).scrollLeft()+i.scrollSpeed)}}}if(r!==false&&$.ui.ddmanager&&!i.dropBehaviour){$.ui.ddmanager.prepareOffsets(n,e)}}});$.ui.plugin.add("draggable","snap",{start:function(e,t,n){var i=n.options;n.snapElements=[];$(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var e=$(this),t=e.offset();if(this!==n.element[0]){n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:t.top,left:t.left})}})},drag:function(e,t,n){var i,r,a,o,s,l,c,d,u,p,f=n.options,h=f.snapTolerance,m=t.offset.left,v=m+n.helperProportions.width,g=t.offset.top,_=g+n.helperProportions.height;for(u=n.snapElements.length-1;u>=0;u--){s=n.snapElements[u].left-n.margins.left;l=s+n.snapElements[u].width;c=n.snapElements[u].top-n.margins.top;d=c+n.snapElements[u].height;if(v<s-h||m>l+h||_<c-h||g>d+h||!$.contains(n.snapElements[u].item.ownerDocument,n.snapElements[u].item)){if(n.snapElements[u].snapping){n.options.snap.release&&n.options.snap.release.call(n.element,e,$.extend(n._uiHash(),{snapItem:n.snapElements[u].item}))}n.snapElements[u].snapping=false;continue}if(f.snapMode!=="inner"){i=Math.abs(c-_)<=h;r=Math.abs(d-g)<=h;a=Math.abs(s-v)<=h;o=Math.abs(l-m)<=h;if(i){t.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top}if(r){t.position.top=n._convertPositionTo("relative",{top:d,left:0}).top}if(a){t.position.left=n._convertPositionTo("relative",{top:0,left:s-n.helperProportions.width}).left}if(o){t.position.left=n._convertPositionTo("relative",{top:0,left:l}).left}}p=i||r||a||o;if(f.snapMode!=="outer"){i=Math.abs(c-g)<=h;r=Math.abs(d-_)<=h;a=Math.abs(s-m)<=h;o=Math.abs(l-v)<=h;if(i){t.position.top=n._convertPositionTo("relative",{top:c,left:0}).top}if(r){t.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top}if(a){t.position.left=n._convertPositionTo("relative",{top:0,left:s}).left}if(o){t.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left}}if(!n.snapElements[u].snapping&&(i||r||a||o||p)){n.options.snap.snap&&n.options.snap.snap.call(n.element,e,$.extend(n._uiHash(),{snapItem:n.snapElements[u].item}))}n.snapElements[u].snapping=i||r||a||o||p}}});$.ui.plugin.add("draggable","stack",{start:function(e,t,n){var i,r=n.options,a=$.makeArray($(r.stack)).sort(function(e,t){return(parseInt($(e).css("zIndex"),10)||0)-(parseInt($(t).css("zIndex"),10)||0)});if(!a.length){return}i=parseInt($(a[0]).css("zIndex"),10)||0;$(a).each(function(e){$(this).css("zIndex",i+e)});this.css("zIndex",i+a.length)}});$.ui.plugin.add("draggable","zIndex",{start:function(e,t,n){var i=$(t.helper),r=n.options;if(i.css("zIndex")){r._zIndex=i.css("zIndex")}i.css("zIndex",r.zIndex)},stop:function(e,t,n){var i=n.options;if(i._zIndex){$(t.helper).css("zIndex",i._zIndex)}}});var l=$.ui.draggable;$.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,n=t.accept;this.isover=false;this.isout=true;this.accept=$.isFunction(n)?n:function(e){return e.is(n)};this.proportions=function(){if(arguments.length){e=arguments[0]}else{return e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}}};this._addToManager(t.scope);t.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){$.ui.ddmanager.droppables[e]=$.ui.ddmanager.droppables[e]||[];$.ui.ddmanager.droppables[e].push(this)},_splice:function(e){var t=0;for(;t<e.length;t++){if(e[t]===this){e.splice(t,1)}}},_destroy:function(){var e=$.ui.ddmanager.droppables[this.options.scope];this._splice(e);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,t){if(e==="accept"){this.accept=$.isFunction(t)?t:function(e){return e.is(t)}}else if(e==="scope"){var n=$.ui.ddmanager.droppables[this.options.scope];this._splice(n);this._addToManager(t)}this._super(e,t)},_activate:function(e){var t=$.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}if(t){this._trigger("activate",e,this.ui(t))}},_deactivate:function(e){var t=$.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(t){this._trigger("deactivate",e,this.ui(t))}},_over:function(e){var t=$.ui.ddmanager.current;if(!t||(t.currentItem||t.element)[0]===this.element[0]){return}if(this.accept.call(this.element[0],t.currentItem||t.element)){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",e,this.ui(t))}},_out:function(e){var t=$.ui.ddmanager.current;if(!t||(t.currentItem||t.element)[0]===this.element[0]){return}if(this.accept.call(this.element[0],t.currentItem||t.element)){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",e,this.ui(t))}},_drop:function(t,e){var n=e||$.ui.ddmanager.current,i=false;if(!n||(n.currentItem||n.element)[0]===this.element[0]){return false}this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=$(this).droppable("instance");if(e.options.greedy&&!e.options.disabled&&e.options.scope===n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&$.ui.intersect(n,$.extend(e,{offset:e.element.offset()}),e.options.tolerance,t)){i=true;return false}});if(i){return false}if(this.accept.call(this.element[0],n.currentItem||n.element)){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",t,this.ui(n));return this.element}return false},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}});$.ui.intersect=function(){function p(e,t,n){return e>=t&&e<t+n}return function(e,t,n,i){if(!t.offset){return false}var r=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,o=r+e.helperProportions.width,s=a+e.helperProportions.height,l=t.offset.left,c=t.offset.top,d=l+t.proportions().width,u=c+t.proportions().height;switch(n){case"fit":return l<=r&&o<=d&&c<=a&&s<=u;case"intersect":return l<r+e.helperProportions.width/2&&o-e.helperProportions.width/2<d&&c<a+e.helperProportions.height/2&&s-e.helperProportions.height/2<u;case"pointer":return p(i.pageY,c,t.proportions().height)&&p(i.pageX,l,t.proportions().width);case"touch":return(a>=c&&a<=u||s>=c&&s<=u||a<c&&s>u)&&(r>=l&&r<=d||o>=l&&o<=d||r<l&&o>d);default:return false}}}();$.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var n,i,r=$.ui.ddmanager.droppables[e.options.scope]||[],a=t?t.type:null,o=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(n=0;n<r.length;n++){if(r[n].options.disabled||e&&!r[n].accept.call(r[n].element[0],e.currentItem||e.element)){continue}for(i=0;i<o.length;i++){if(o[i]===r[n].element[0]){r[n].proportions().height=0;continue e}}r[n].visible=r[n].element.css("display")!=="none";if(!r[n].visible){continue}if(a==="mousedown"){r[n]._activate.call(r[n],t)}r[n].offset=r[n].element.offset();r[n].proportions({width:r[n].element[0].offsetWidth,height:r[n].element[0].offsetHeight})}},drop:function(e,t){var n=false;$.each(($.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&$.ui.intersect(e,this,this.options.tolerance,t)){n=this._drop.call(this,t)||n}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)){this.isout=true;this.isover=false;this._deactivate.call(this,t)}});return n},dragStart:function(e,t){e.element.parentsUntil("body").bind("scroll.droppable",function(){if(!e.options.refreshPositions){$.ui.ddmanager.prepareOffsets(e,t)}})},drag:function(a,o){if(a.options.refreshPositions){$.ui.ddmanager.prepareOffsets(a,o)}$.each($.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var e,t,n,i=$.ui.intersect(a,this,this.options.tolerance,o),r=!i&&this.isover?"isout":i&&!this.isover?"isover":null;if(!r){return}if(this.options.greedy){t=this.options.scope;n=this.element.parents(":data(ui-droppable)").filter(function(){return $(this).droppable("instance").options.scope===t});if(n.length){e=$(n[0]).droppable("instance");e.greedyChild=r==="isover"}}if(e&&r==="isover"){e.isover=false;e.isout=true;e._out.call(e,o)}this[r]=true;this[r==="isout"?"isover":"isout"]=false;this[r==="isover"?"_over":"_out"].call(this,o);if(e&&r==="isout"){e.isout=false;e.isover=true;e._over.call(e,o)}})},dragStop:function(e,t){e.element.parentsUntil("body").unbind("scroll.droppable");if(!e.options.refreshPositions){$.ui.ddmanager.prepareOffsets(e,t)}}};var c=$.ui.droppable;$.widget("ui.resizable",$.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseInt(e,10)||0},_isNumber:function(e){return!isNaN(parseInt(e,10))},_hasScroll:function(e,t){if($(e).css("overflow")==="hidden"){return false}var n=t&&t==="left"?"scrollLeft":"scrollTop",i=false;if(e[n]>0){return true}e[n]=1;i=e[n]>0;e[n]=0;return i},_create:function(){var e,t,n,i,r,a=this,o=this.options;this.element.addClass("ui-resizable");$.extend(this,{_aspectRatio:!!o.aspectRatio,aspectRatio:o.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:o.helper||o.ghost||o.animate?o.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)){this.element.wrap($("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=o.handles||(!$(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});this._handles=$();if(this.handles.constructor===String){if(this.handles==="all"){this.handles="n,e,s,w,se,sw,ne,nw"}e=this.handles.split(",");this.handles={};for(t=0;t<e.length;t++){n=$.trim(e[t]);r="ui-resizable-"+n;i=$("<div class='ui-resizable-handle "+r+"'></div>");i.css({zIndex:o.zIndex});if("se"===n){i.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[n]=".ui-resizable-"+n;this.element.append(i)}}this._renderAxis=function(e){var t,n,i,r;e=e||this.element;for(t in this.handles){if(this.handles[t].constructor===String){this.handles[t]=this.element.children(this.handles[t]).first().show()}else if(this.handles[t].jquery||this.handles[t].nodeType){this.handles[t]=$(this.handles[t]);this._on(this.handles[t],{mousedown:a._mouseDown})}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)){n=$(this.handles[t],this.element);r=/sw|ne|nw|se|n|s/.test(t)?n.outerHeight():n.outerWidth();i=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join("");e.css(i,r);this._proportionallyResize()}this._handles=this._handles.add(this.handles[t])}};this._renderAxis(this.element);this._handles=this._handles.add(this.element.find(".ui-resizable-handle"));this._handles.disableSelection();this._handles.mouseover(function(){if(!a.resizing){if(this.className){i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}a.axis=i&&i[1]?i[1]:"se"}});if(o.autoHide){this._handles.hide();$(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(o.disabled){return}$(this).removeClass("ui-resizable-autohide");a._handles.show()}).mouseleave(function(){if(o.disabled){return}if(!a.resizing){$(this).addClass("ui-resizable-autohide");a._handles.hide()}})}this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,t=function(e){$(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){t(this.element);e=this.element;this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e);e.remove()}this.originalElement.css("resize",this.originalResizeStyle);t(this.originalElement);return this},_mouseCapture:function(e){var t,n,i=false;for(t in this.handles){n=$(this.handles[t])[0];if(n===e.target||$.contains(n,e.target)){i=true}}return!this.options.disabled&&i},_mouseStart:function(e){var t,n,i,r=this.options,a=this.element;this.resizing=true;this._renderProxy();t=this._num(this.helper.css("left"));n=this._num(this.helper.css("top"));if(r.containment){t+=$(r.containment).scrollLeft()||0;n+=$(r.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:t,top:n};this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()};this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()};this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()};this.originalPosition={left:t,top:n};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof r.aspectRatio==="number"?r.aspectRatio:this.originalSize.width/this.originalSize.height||1;i=$(".ui-resizable-"+this.axis).css("cursor");$("body").css("cursor",i==="auto"?this.axis+"-resize":i);a.addClass("ui-resizable-resizing");this._propagate("start",e);return true},_mouseDrag:function(e){var t,n,i=this.originalMousePosition,r=this.axis,a=e.pageX-i.left||0,o=e.pageY-i.top||0,s=this._change[r];this._updatePrevProperties();if(!s){return false}t=s.apply(this,[e,a,o]);this._updateVirtualBoundaries(e.shiftKey);if(this._aspectRatio||e.shiftKey){t=this._updateRatio(t,e)}t=this._respectSize(t,e);this._updateCache(t);this._propagate("resize",e);n=this._applyChanges();if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}if(!$.isEmptyObject(n)){this._updatePrevProperties();this._trigger("resize",e,this.ui());this._applyChanges()}return false},_mouseStop:function(e){this.resizing=false;var t,n,i,r,a,o,s,l=this.options,c=this;if(this._helper){t=this._proportionallyResizeElements;n=t.length&&/textarea/i.test(t[0].nodeName);i=n&&this._hasScroll(t[0],"left")?0:c.sizeDiff.height;r=n?0:c.sizeDiff.width;a={width:c.helper.width()-r,height:c.helper.height()-i};o=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;s=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;if(!l.animate){this.element.css($.extend(a,{top:s,left:o}))}c.helper.height(c.size.height);c.helper.width(c.size.width);if(this._helper&&!l.animate){this._proportionallyResize()}}$("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",e);if(this._helper){this.helper.remove()}return false},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};if(this.position.top!==this.prevPosition.top){e.top=this.position.top+"px"}if(this.position.left!==this.prevPosition.left){e.left=this.position.left+"px"}if(this.size.width!==this.prevSize.width){e.width=this.size.width+"px"}if(this.size.height!==this.prevSize.height){e.height=this.size.height+"px"}this.helper.css(e);return e},_updateVirtualBoundaries:function(e){var t,n,i,r,a,o=this.options;a={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:Infinity,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:Infinity};if(this._aspectRatio||e){t=a.minHeight*this.aspectRatio;i=a.minWidth/this.aspectRatio;n=a.maxHeight*this.aspectRatio;r=a.maxWidth/this.aspectRatio;if(t>a.minWidth){a.minWidth=t}if(i>a.minHeight){a.minHeight=i}if(n<a.maxWidth){a.maxWidth=n}if(r<a.maxHeight){a.maxHeight=r}}this._vBoundaries=a},_updateCache:function(e){this.offset=this.helper.offset();if(this._isNumber(e.left)){this.position.left=e.left}if(this._isNumber(e.top)){this.position.top=e.top}if(this._isNumber(e.height)){this.size.height=e.height}if(this._isNumber(e.width)){this.size.width=e.width}},_updateRatio:function(e){var t=this.position,n=this.size,i=this.axis;if(this._isNumber(e.height)){e.width=e.height*this.aspectRatio}else if(this._isNumber(e.width)){e.height=e.width/this.aspectRatio}if(i==="sw"){e.left=t.left+(n.width-e.width);e.top=null}if(i==="nw"){e.top=t.top+(n.height-e.height);e.left=t.left+(n.width-e.width)}return e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,i=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,r=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,a=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,o=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,s=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,c=/sw|nw|w/.test(n),d=/nw|ne|n/.test(n);if(a){e.width=t.minWidth}if(o){e.height=t.minHeight}if(i){e.width=t.maxWidth}if(r){e.height=t.maxHeight}if(a&&c){e.left=s-t.minWidth}if(i&&c){e.left=s-t.maxWidth}if(o&&d){e.top=l-t.minHeight}if(r&&d){e.top=l-t.maxHeight}if(!e.width&&!e.height&&!e.left&&e.top){e.top=null}else if(!e.width&&!e.height&&!e.top&&e.left){e.left=null}return e},_getPaddingPlusBorderDimensions:function(e){var t=0,n=[],i=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],r=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];for(;t<4;t++){n[t]=parseInt(i[t],10)||0;n[t]+=parseInt(r[t],10)||0}return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length){return}var e,t=0,n=this.helper||this.element;for(;t<this._proportionallyResizeElements.length;t++){e=this._proportionallyResizeElements[t];if(!this.outerDimensions){this.outerDimensions=this._getPaddingPlusBorderDimensions(e)}e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})}},_renderProxy:function(){var e=this.element,t=this.options;this.elementOffset=e.offset();if(this._helper){this.helper=this.helper||$("<div style='overflow:hidden;'></div>");this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++t.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize,i=this.originalPosition;return{left:i.left+t,width:n.width-t}},n:function(e,t,n){var i=this.originalSize,r=this.originalPosition;return{top:r.top+n,height:i.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(e,t,n){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,n]))},sw:function(e,t,n){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,n]))},ne:function(e,t,n){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,n]))},nw:function(e,t,n){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,n]))}},_propagate:function(e,t){$.ui.plugin.call(this,e,[t,this.ui()]);e!=="resize"&&this._trigger(e,t,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});$.ui.plugin.add("resizable","animate",{stop:function(t){var n=$(this).resizable("instance"),e=n.options,i=n._proportionallyResizeElements,r=i.length&&/textarea/i.test(i[0].nodeName),a=r&&n._hasScroll(i[0],"left")?0:n.sizeDiff.height,o=r?0:n.sizeDiff.width,s={width:n.size.width-o,height:n.size.height-a},l=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,c=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;n.element.animate($.extend(s,c&&l?{top:c,left:l}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};if(i&&i.length){$(i[0]).css({width:e.width,height:e.height})}n._updateCache(e);n._propagate("resize",t)}})}});$.ui.plugin.add("resizable","containment",{start:function(){var n,i,e,t,r,a,o,s=$(this).resizable("instance"),l=s.options,c=s.element,d=l.containment,u=d instanceof $?d.get(0):/parent/.test(d)?c.parent().get(0):d;if(!u){return}s.containerElement=$(u);if(/document/.test(d)||d===document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight}}else{n=$(u);i=[];$(["Top","Right","Left","Bottom"]).each(function(e,t){i[e]=s._num(n.css("padding"+t))});s.containerOffset=n.offset();s.containerPosition=n.position();s.containerSize={height:n.innerHeight()-i[3],width:n.innerWidth()-i[1]};e=s.containerOffset;t=s.containerSize.height;r=s.containerSize.width;a=s._hasScroll(u,"left")?u.scrollWidth:r;o=s._hasScroll(u)?u.scrollHeight:t;s.parentData={element:u,left:e.left,top:e.top,width:a,height:o}}},resize:function(e){var t,n,i,r,a=$(this).resizable("instance"),o=a.options,s=a.containerOffset,l=a.position,c=a._aspectRatio||e.shiftKey,d={top:0,left:0},u=a.containerElement,p=true;if(u[0]!==document&&/static/.test(u.css("position"))){d=s}if(l.left<(a._helper?s.left:0)){a.size.width=a.size.width+(a._helper?a.position.left-s.left:a.position.left-d.left);if(c){a.size.height=a.size.width/a.aspectRatio;p=false}a.position.left=o.helper?s.left:0}if(l.top<(a._helper?s.top:0)){a.size.height=a.size.height+(a._helper?a.position.top-s.top:a.position.top);if(c){a.size.width=a.size.height*a.aspectRatio;p=false}a.position.top=a._helper?s.top:0}i=a.containerElement.get(0)===a.element.parent().get(0);r=/relative|absolute/.test(a.containerElement.css("position"));if(i&&r){a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top}else{a.offset.left=a.element.offset().left;a.offset.top=a.element.offset().top}t=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-d.left:a.offset.left-s.left));n=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-d.top:a.offset.top-s.top));if(t+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-t;if(c){a.size.height=a.size.width/a.aspectRatio;p=false}}if(n+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-n;if(c){a.size.width=a.size.height*a.aspectRatio;p=false}}if(!p){a.position.left=a.prevPosition.left;a.position.top=a.prevPosition.top;a.size.width=a.prevSize.width;a.size.height=a.prevSize.height}},stop:function(){var e=$(this).resizable("instance"),t=e.options,n=e.containerOffset,i=e.containerPosition,r=e.containerElement,a=$(e.helper),o=a.offset(),s=a.outerWidth()-e.sizeDiff.width,l=a.outerHeight()-e.sizeDiff.height;if(e._helper&&!t.animate&&/relative/.test(r.css("position"))){$(this).css({left:o.left-i.left-n.left,width:s,height:l})}if(e._helper&&!t.animate&&/static/.test(r.css("position"))){$(this).css({left:o.left-i.left-n.left,width:s,height:l})}}});$.ui.plugin.add("resizable","alsoResize",{start:function(){var e=$(this).resizable("instance"),t=e.options;$(t.alsoResize).each(function(){var e=$(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})},resize:function(e,n){var t=$(this).resizable("instance"),i=t.options,r=t.originalSize,a=t.originalPosition,o={height:t.size.height-r.height||0,width:t.size.width-r.width||0,top:t.position.top-a.top||0,left:t.position.left-a.left||0};$(i.alsoResize).each(function(){var e=$(this),i=$(this).data("ui-resizable-alsoresize"),r={},t=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];$.each(t,function(e,t){var n=(i[t]||0)+(o[t]||0);if(n&&n>=0){r[t]=n||null}});e.css(r)})},stop:function(){$(this).removeData("resizable-alsoresize")}});$.ui.plugin.add("resizable","ghost",{start:function(){var e=$(this).resizable("instance"),t=e.options,n=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof t.ghost==="string"?t.ghost:"");e.ghost.appendTo(e.helper)},resize:function(){var e=$(this).resizable("instance");if(e.ghost){e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})}},stop:function(){var e=$(this).resizable("instance");if(e.ghost&&e.helper){e.helper.get(0).removeChild(e.ghost.get(0))}}});$.ui.plugin.add("resizable","grid",{resize:function(){var e,t=$(this).resizable("instance"),n=t.options,i=t.size,r=t.originalSize,a=t.originalPosition,o=t.axis,s=typeof n.grid==="number"?[n.grid,n.grid]:n.grid,l=s[0]||1,c=s[1]||1,d=Math.round((i.width-r.width)/l)*l,u=Math.round((i.height-r.height)/c)*c,p=r.width+d,f=r.height+u,h=n.maxWidth&&n.maxWidth<p,m=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p,g=n.minHeight&&n.minHeight>f;n.grid=s;if(v){p+=l}if(g){f+=c}if(h){p-=l}if(m){f-=c}if(/^(se|s|e)$/.test(o)){t.size.width=p;t.size.height=f}else if(/^(ne)$/.test(o)){t.size.width=p;t.size.height=f;t.position.top=a.top-u}else if(/^(sw)$/.test(o)){t.size.width=p;t.size.height=f;t.position.left=a.left-d}else{if(f-c<=0||p-l<=0){e=t._getPaddingPlusBorderDimensions(this)}if(f-c>0){t.size.height=f;t.position.top=a.top-u}else{f=c-e.height;t.size.height=f;t.position.top=a.top+r.height-f}if(p-l>0){t.size.width=p;t.position.left=a.left-d}else{p=l-e.width;t.size.width=p;t.position.left=a.left+r.width-p}}}});var d=$.ui.resizable;var u=$.widget("ui.selectable",$.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,t=this;this.element.addClass("ui-selectable");this.dragged=false;this.refresh=function(){e=$(t.options.filter,t.element[0]);e.addClass("ui-selectee");e.each(function(){var e=$(this),t=e.offset();$.data(this,"selectable-item",{element:this,$element:e,left:t.left,top:t.top,right:t.left+e.outerWidth(),bottom:t.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})};this.refresh();this.selectees=e.addClass("ui-selectee");this._mouseInit();this.helper=$("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled");this._mouseDestroy()},_mouseStart:function(n){var i=this,e=this.options;this.opos=[n.pageX,n.pageY];if(this.options.disabled){return}this.selectees=$(e.filter,this.element[0]);this._trigger("start",n);$(e.appendTo).append(this.helper);this.helper.css({left:n.pageX,top:n.pageY,width:0,height:0});if(e.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var e=$.data(this,"selectable-item");e.startselected=true;if(!n.metaKey&&!n.ctrlKey){e.$element.removeClass("ui-selected");e.selected=false;e.$element.addClass("ui-unselecting");e.unselecting=true;i._trigger("unselecting",n,{unselecting:e.element})}});$(n.target).parents().addBack().each(function(){var e,t=$.data(this,"selectable-item");if(t){e=!n.metaKey&&!n.ctrlKey||!t.$element.hasClass("ui-selected");t.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting");t.unselecting=!e;t.selecting=e;t.selected=e;if(e){i._trigger("selecting",n,{selecting:t.element})}else{i._trigger("unselecting",n,{unselecting:t.element})}return false}})},_mouseDrag:function(n){this.dragged=true;if(this.options.disabled){return}var e,i=this,r=this.options,a=this.opos[0],o=this.opos[1],s=n.pageX,l=n.pageY;if(a>s){e=s;s=a;a=e}if(o>l){e=l;l=o;o=e}this.helper.css({left:a,top:o,width:s-a,height:l-o});this.selectees.each(function(){var e=$.data(this,"selectable-item"),t=false;if(!e||e.element===i.element[0]){return}if(r.tolerance==="touch"){t=!(e.left>s||e.right<a||e.top>l||e.bottom<o)}else if(r.tolerance==="fit"){t=e.left>a&&e.right<s&&e.top>o&&e.bottom<l}if(t){if(e.selected){e.$element.removeClass("ui-selected");e.selected=false}if(e.unselecting){e.$element.removeClass("ui-unselecting");e.unselecting=false}if(!e.selecting){e.$element.addClass("ui-selecting");e.selecting=true;i._trigger("selecting",n,{selecting:e.element})}}else{if(e.selecting){if((n.metaKey||n.ctrlKey)&&e.startselected){e.$element.removeClass("ui-selecting");e.selecting=false;e.$element.addClass("ui-selected");e.selected=true}else{e.$element.removeClass("ui-selecting");e.selecting=false;if(e.startselected){e.$element.addClass("ui-unselecting");e.unselecting=true}i._trigger("unselecting",n,{unselecting:e.element})}}if(e.selected){if(!n.metaKey&&!n.ctrlKey&&!e.startselected){e.$element.removeClass("ui-selected");e.selected=false;e.$element.addClass("ui-unselecting");e.unselecting=true;i._trigger("unselecting",n,{unselecting:e.element})}}}});return false},_mouseStop:function(t){var n=this;this.dragged=false;$(".ui-unselecting",this.element[0]).each(function(){var e=$.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;n._trigger("unselected",t,{unselected:e.element})});$(".ui-selecting",this.element[0]).each(function(){var e=$.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;n._trigger("selected",t,{selected:e.element})});this._trigger("stop",t);this.helper.remove();return false}});var p=$.widget("ui.sortable",$.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:false,options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return e>=t&&e<t+n},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=true},_setOption:function(e,t){this._super(e,t);if(e==="handle"){this._setHandleClassName()}},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle");$.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle");this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--){this.items[e].item.removeData(this.widgetName+"-item")}return this},_mouseCapture:function(e,t){var n=null,i=false,r=this;if(this.reverting){return false}if(this.options.disabled||this.options.type==="static"){return false}this._refreshItems(e);$(e.target).parents().each(function(){if($.data(this,r.widgetName+"-item")===r){n=$(this);return false}});if($.data(e.target,r.widgetName+"-item")===r){n=$(e.target)}if(!n){return false}if(this.options.handle&&!t){$(this.options.handle,n).find("*").addBack().each(function(){if(this===e.target){i=true}});if(!i){return false}}this.currentItem=n;this._removeCurrentsFromItems();return true},_mouseStart:function(e,t,n){var i,r,a=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};$.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!==this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(a.containment){this._setContainment()}if(a.cursor&&a.cursor!=="auto"){r=this.document.find("body");this.storedCursor=r.css("cursor");r.css("cursor",a.cursor);this.storedStylesheet=$("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(r)}if(a.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",a.opacity)}if(a.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",a.zIndex)}if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!n){for(i=this.containers.length-1;i>=0;i--){this.containers[i]._trigger("activate",e,this._uiHash(this))}}if($.ui.ddmanager){$.ui.ddmanager.current=this}if($.ui.ddmanager&&!a.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(e);return true},_mouseDrag:function(e){var t,n,i,r,a=this.options,o=false;this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){if(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity){this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop+a.scrollSpeed}else if(e.pageY-this.overflowOffset.top<a.scrollSensitivity){this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop-a.scrollSpeed}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity){this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft+a.scrollSpeed}else if(e.pageX-this.overflowOffset.left<a.scrollSensitivity){this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft-a.scrollSpeed}}else{if(e.pageY-this.document.scrollTop()<a.scrollSensitivity){o=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed)}else if(this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity){o=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)}if(e.pageX-this.document.scrollLeft()<a.scrollSensitivity){o=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed)}else if(this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity){o=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed)}}if(o!==false&&$.ui.ddmanager&&!a.dropBehaviour){$.ui.ddmanager.prepareOffsets(this,e)}}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!=="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!=="x"){this.helper[0].style.top=this.position.top+"px"}for(t=this.items.length-1;t>=0;t--){n=this.items[t];i=n.item[0];r=this._intersectsWithPointer(n);if(!r){continue}if(n.instance!==this.currentContainer){continue}if(i!==this.currentItem[0]&&this.placeholder[r===1?"next":"prev"]()[0]!==i&&!$.contains(this.placeholder[0],i)&&(this.options.type==="semi-dynamic"?!$.contains(this.element[0],i):true)){this.direction=r===1?"down":"up";if(this.options.tolerance==="pointer"||this._intersectsWithSides(n)){this._rearrange(e,n)}else{break}this._trigger("change",e,this._uiHash());break}}this._contactContainers(e);if($.ui.ddmanager){$.ui.ddmanager.drag(this,e)}this._trigger("sort",e,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(e,t){if(!e){return}if($.ui.ddmanager&&!this.options.dropBehaviour){$.ui.ddmanager.drop(this,e)}if(this.options.revert){var n=this,i=this.placeholder.offset(),r=this.options.axis,a={};if(!r||r==="x"){a.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)}if(!r||r==="y"){a.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)}this.reverting=true;$(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else{this._clear(e,t)}return false},cancel:function(){if(this.dragging){this._mouseUp({target:null});if(this.options.helper==="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var e=this.containers.length-1;e>=0;e--){this.containers[e]._trigger("deactivate",null,this._uiHash(this));if(this.containers[e].containerCache.over){this.containers[e]._trigger("out",null,this._uiHash(this));this.containers[e].containerCache.over=0}}}if(this.placeholder){if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}$.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){$(this.domPosition.prev).after(this.currentItem)}else{$(this.domPosition.parent).prepend(this.currentItem)}}return this},serialize:function(t){var e=this._getItemsAsjQuery(t&&t.connected),n=[];t=t||{};$(e).each(function(){var e=($(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);if(e){n.push((t.key||e[1]+"[]")+"="+(t.key&&t.expression?e[1]:e[2]))}});if(!n.length&&t.key){n.push(t.key+"=")}return n.join("&")},toArray:function(e){var t=this._getItemsAsjQuery(e&&e.connected),n=[];e=e||{};t.each(function(){n.push($(e.item||this).attr(e.attribute||"id")||"")});return n},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,a=e.left,o=a+e.width,s=e.top,l=s+e.height,c=this.offset.click.top,d=this.offset.click.left,u=this.options.axis==="x"||i+c>s&&i+c<l,p=this.options.axis==="y"||t+d>a&&t+d<o,f=u&&p;if(this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]){return f}else{return a<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<o&&s<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<l}},_intersectsWithPointer:function(e){var t=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),n=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),i=t&&n,r=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection();if(!i){return false}return this.floating?a&&a==="right"||r==="down"?2:1:r&&(r==="down"?2:1)},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),i=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();if(this.floating&&r){return r==="right"&&n||r==="left"&&!n}else{return i&&(i==="down"&&t||i==="up"&&!t)}},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!==0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!==0&&(e>0?"right":"left")},refresh:function(e){this._refreshItems(e);this._setHandleClassName();this.refreshPositions();return this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){var t,n,i,r,a=[],o=[],s=this._connectWith();if(s&&e){for(t=s.length-1;t>=0;t--){i=$(s[t],this.document[0]);for(n=i.length-1;n>=0;n--){r=$.data(i[n],this.widgetFullName);if(r&&r!==this&&!r.options.disabled){o.push([$.isFunction(r.options.items)?r.options.items.call(r.element):$(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r])}}}}o.push([$.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function l(){a.push(this)}for(t=o.length-1;t>=0;t--){o[t][0].each(l)}return $(a)},_removeCurrentsFromItems:function(){var n=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=$.grep(this.items,function(e){for(var t=0;t<n.length;t++){if(n[t]===e.item[0]){return false}}return true})},_refreshItems:function(e){this.items=[];this.containers=[this];var t,n,i,r,a,o,s,l,c=this.items,d=[[$.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):$(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready){for(t=u.length-1;t>=0;t--){i=$(u[t],this.document[0]);for(n=i.length-1;n>=0;n--){r=$.data(i[n],this.widgetFullName);if(r&&r!==this&&!r.options.disabled){d.push([$.isFunction(r.options.items)?r.options.items.call(r.element[0],e,{item:this.currentItem}):$(r.options.items,r.element),r]);this.containers.push(r)}}}}for(t=d.length-1;t>=0;t--){a=d[t][1];o=d[t][0];for(n=0,l=o.length;n<l;n++){s=$(o[n]);s.data(this.widgetName+"-item",a);c.push({item:s,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(e){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):false;if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}var t,n,i,r;for(t=this.items.length-1;t>=0;t--){n=this.items[t];if(n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]){continue}i=this.options.toleranceElement?$(this.options.toleranceElement,n.item):n.item;if(!e){n.width=i.outerWidth();n.height=i.outerHeight()}r=i.offset();n.left=r.left;n.top=r.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(t=this.containers.length-1;t>=0;t--){r=this.containers[t].element.offset();this.containers[t].containerCache.left=r.left;this.containers[t].containerCache.top=r.top;this.containers[t].containerCache.width=this.containers[t].element.outerWidth();this.containers[t].containerCache.height=this.containers[t].element.outerHeight()}}return this},_createPlaceholder:function(n){n=n||this;var i,r=n.options;if(!r.placeholder||r.placeholder.constructor===String){i=r.placeholder;r.placeholder={element:function(){var e=n.currentItem[0].nodeName.toLowerCase(),t=$("<"+e+">",n.document[0]).addClass(i||n.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");if(e==="tbody"){n._createTrPlaceholder(n.currentItem.find("tr").eq(0),$("<tr>",n.document[0]).appendTo(t))}else if(e==="tr"){n._createTrPlaceholder(n.currentItem,t)}else if(e==="img"){t.attr("src",n.currentItem.attr("src"))}if(!i){t.css("visibility","hidden")}return t},update:function(e,t){if(i&&!r.forcePlaceholderSize){return}if(!t.height()){t.height(n.currentItem.innerHeight()-parseInt(n.currentItem.css("paddingTop")||0,10)-parseInt(n.currentItem.css("paddingBottom")||0,10))}if(!t.width()){t.width(n.currentItem.innerWidth()-parseInt(n.currentItem.css("paddingLeft")||0,10)-parseInt(n.currentItem.css("paddingRight")||0,10))}}}}n.placeholder=$(r.placeholder.element.call(n.element,n.currentItem));n.currentItem.after(n.placeholder);r.placeholder.update(n,n.placeholder)},_createTrPlaceholder:function(e,t){var n=this;e.children().each(function(){$("<td>&#160;</td>",n.document[0]).attr("colspan",$(this).attr("colspan")||1).appendTo(t)})},_contactContainers:function(e){var t,n,i,r,a,o,s,l,c,d,u=null,p=null;for(t=this.containers.length-1;t>=0;t--){if($.contains(this.currentItem[0],this.containers[t].element[0])){continue}if(this._intersectsWith(this.containers[t].containerCache)){if(u&&$.contains(this.containers[t].element[0],u.element[0])){continue}u=this.containers[t];p=t}else{if(this.containers[t].containerCache.over){this.containers[t]._trigger("out",e,this._uiHash(this));this.containers[t].containerCache.over=0}}}if(!u){return}if(this.containers.length===1){if(!this.containers[p].containerCache.over){this.containers[p]._trigger("over",e,this._uiHash(this));this.containers[p].containerCache.over=1}}else{i=1e4;r=null;c=u.floating||this._isFloating(this.currentItem);a=c?"left":"top";o=c?"width":"height";d=c?"clientX":"clientY";for(n=this.items.length-1;n>=0;n--){if(!$.contains(this.containers[p].element[0],this.items[n].item[0])){continue}if(this.items[n].item[0]===this.currentItem[0]){continue}s=this.items[n].item.offset()[a];l=false;if(e[d]-s>this.items[n][o]/2){l=true}if(Math.abs(e[d]-s)<i){i=Math.abs(e[d]-s);r=this.items[n];this.direction=l?"up":"down"}}if(!r&&!this.options.dropOnEmpty){return}if(this.currentContainer===this.containers[p]){if(!this.currentContainer.containerCache.over){this.containers[p]._trigger("over",e,this._uiHash());this.currentContainer.containerCache.over=1}return}r?this._rearrange(e,r,null,true):this._rearrange(e,null,this.containers[p].element,true);this._trigger("change",e,this._uiHash());this.containers[p]._trigger("change",e,this._uiHash(this));this.currentContainer=this.containers[p];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[p]._trigger("over",e,this._uiHash(this));this.containers[p].containerCache.over=1}},_createHelper:function(e){var t=this.options,n=$.isFunction(t.helper)?$(t.helper.apply(this.element[0],[e,this.currentItem])):t.helper==="clone"?this.currentItem.clone():this.currentItem;if(!n.parents("body").length){$(t.appendTo!=="parent"?t.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0])}if(n[0]===this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(!n[0].style.width||t.forceHelperSize){n.width(this.currentItem.width())}if(!n[0].style.height||t.forceHelperSize){n.height(this.currentItem.height())}return n},_adjustOffsetFromHelper:function(e){if(typeof e==="string"){e=e.split(" ")}if($.isArray(e)){e={left:+e[0],top:+e[1]||0}}if("left"in e){this.offset.click.left=e.left+this.margins.left}if("right"in e){this.offset.click.left=this.helperProportions.width-e.right+this.margins.left}if("top"in e){this.offset.click.top=e.top+this.margins.top}if("bottom"in e){this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();if(this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0])){e.left+=this.scrollParent.scrollLeft();e.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&$.ui.ie){e={top:0,left:0}}return{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,n,i=this.options;if(i.containment==="parent"){i.containment=this.helper[0].parentNode}if(i.containment==="document"||i.containment==="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,i.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(i.containment==="document"?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(i.containment)){e=$(i.containment)[0];t=$(i.containment).offset();n=$(e).css("overflow")!=="hidden";this.containment=[t.left+(parseInt($(e).css("borderLeftWidth"),10)||0)+(parseInt($(e).css("paddingLeft"),10)||0)-this.margins.left,t.top+(parseInt($(e).css("borderTopWidth"),10)||0)+(parseInt($(e).css("paddingTop"),10)||0)-this.margins.top,t.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt($(e).css("borderLeftWidth"),10)||0)-(parseInt($(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,t.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt($(e).css("borderTopWidth"),10)||0)-(parseInt($(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(e,t){if(!t){t=this.position}var n=e==="absolute"?1:-1,i=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,r=/(html|body)/i.test(i[0].tagName);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():r?0:i.scrollTop())*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():r?0:i.scrollLeft())*n}},_generatePosition:function(e){var t,n,i=this.options,r=e.pageX,a=e.pageY,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(o[0].tagName);if(this.cssPosition==="relative"&&!(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.left<this.containment[0]){r=this.containment[0]+this.offset.click.left}if(e.pageY-this.offset.click.top<this.containment[1]){a=this.containment[1]+this.offset.click.top}if(e.pageX-this.offset.click.left>this.containment[2]){r=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){a=this.containment[3]+this.offset.click.top}}if(i.grid){t=this.originalPageY+Math.round((a-this.originalPageY)/i.grid[1])*i.grid[1];a=this.containment?t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-i.grid[1]:t+i.grid[1]:t;n=this.originalPageX+Math.round((r-this.originalPageX)/i.grid[0])*i.grid[0];r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-i.grid[0]:n+i.grid[0]:n}}return{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(e,t,n,i){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){if(r===this.counter){this.refreshPositions(!i)}})},_clear:function(e,t){this.reverting=false;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(n in this._storedCSS){if(this._storedCSS[n]==="auto"||this._storedCSS[n]==="static"){this._storedCSS[n]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!t){i.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t){i.push(function(e){this._trigger("update",e,this._uiHash())})}if(this!==this.currentContainer){if(!t){i.push(function(e){this._trigger("remove",e,this._uiHash())});i.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer));i.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer))}}function r(t,n,i){return function(e){i._trigger(t,e,n._uiHash(n))}}for(n=this.containers.length-1;n>=0;n--){if(!t){i.push(r("deactivate",this,this.containers[n]))}if(this.containers[n].containerCache.over){i.push(r("out",this,this.containers[n]));this.containers[n].containerCache.over=0}}if(this.storedCursor){this.document.find("body").css("cursor",this.storedCursor);this.storedStylesheet.remove()}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex)}this.dragging=false;if(!t){this._trigger("beforeStop",e,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(!this.cancelHelperRemoval){if(this.helper[0]!==this.currentItem[0]){this.helper.remove()}this.helper=null}if(!t){for(n=0;n<i.length;n++){i[n].call(this,e)}this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return!this.cancelHelperRemoval},_trigger:function(){if($.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(e){var t=e||this;return{helper:t.helper,placeholder:t.placeholder||$([]),position:t.position,originalPosition:t.originalPosition,offset:t.positionAbs,item:t.currentItem,sender:e?e.element:null}}});var f=$.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:false,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=$();this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist");if(!e.collapsible&&(e.active===false||e.active==null)){e.active=0}this._processPanels();if(e.active<0){e.active+=this.headers.length}this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:!this.active.length?$():this.active.next()}},_createIcons:function(){var e=this.options.icons;if(e){$("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers);this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader);this.headers.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default "+"ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId();this._destroyIcons();e=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom "+"ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId();if(this.options.heightStyle!=="content"){e.css("height","")}},_setOption:function(e,t){if(e==="active"){this._activate(t);return}if(e==="event"){if(this.options.event){this._off(this.headers,this.options.event)}this._setupEvents(t)}this._super(e,t);if(e==="collapsible"&&!t&&this.options.active===false){this._activate(0)}if(e==="icons"){this._destroyIcons();if(t){this._createIcons()}}if(e==="disabled"){this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t);this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t)}},_keydown:function(e){if(e.altKey||e.ctrlKey){return}var t=$.ui.keyCode,n=this.headers.length,i=this.headers.index(e.target),r=false;switch(e.keyCode){case t.RIGHT:case t.DOWN:r=this.headers[(i+1)%n];break;case t.LEFT:case t.UP:r=this.headers[(i-1+n)%n];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:r=this.headers[0];break;case t.END:r=this.headers[n-1];break}if(r){$(e.target).attr("tabIndex",-1);$(r).attr("tabIndex",0);r.focus();e.preventDefault()}},_panelKeyDown:function(e){if(e.keyCode===$.ui.keyCode.UP&&e.ctrlKey){$(e.currentTarget).prev().focus()}},refresh:function(){var e=this.options;this._processPanels();if(e.active===false&&e.collapsible===true||!this.headers.length){e.active=false;this.active=$()}else if(e.active===false){this._activate(0)}else if(this.active.length&&!$.contains(this.element[0],this.active[0])){if(this.headers.length===this.headers.find(".ui-state-disabled").length){e.active=false;this.active=$()}else{this._activate(Math.max(0,e.active-1))}}else{e.active=this.headers.index(this.active)}this._destroyIcons();this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all");this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide();if(t){this._off(e.not(this.headers));this._off(t.not(this.panels))}},_refresh:function(){var n,e=this.options,t=e.heightStyle,i=this.element.parent();this.active=this._findActive(e.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all");this.active.next().addClass("ui-accordion-content-active").show();this.headers.attr("role","tab").each(function(){var e=$(this),t=e.uniqueId().attr("id"),n=e.next(),i=n.uniqueId().attr("id");e.attr("aria-controls",i);n.attr("aria-labelledby",t)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex",0)}else{this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"})}this._createIcons();this._setupEvents(e.event);if(t==="fill"){n=i.height();this.element.siblings(":visible").each(function(){var e=$(this),t=e.css("position");if(t==="absolute"||t==="fixed"){return}n-=e.outerHeight(true)});this.headers.each(function(){n-=$(this).outerHeight(true)});this.headers.next().each(function(){$(this).height(Math.max(0,n-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")}else if(t==="auto"){n=0;this.headers.next().each(function(){n=Math.max(n,$(this).css("height","").height())}).height(n)}},_activate:function(e){var t=this._findActive(e)[0];if(t===this.active[0]){return}t=t||this.active[0];this._eventHandler({target:t,currentTarget:t,preventDefault:$.noop})},_findActive:function(e){return typeof e==="number"?this.headers.eq(e):$()},_setupEvents:function(e){var n={keydown:"_keydown"};if(e){$.each(e.split(" "),function(e,t){n[t]="_eventHandler"})}this._off(this.headers.add(this.headers.next()));this._on(this.headers,n);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,n=this.active,i=$(e.currentTarget),r=i[0]===n[0],a=r&&t.collapsible,o=a?$():i.next(),s=n.next(),l={oldHeader:n,oldPanel:s,newHeader:a?$():i,newPanel:o};e.preventDefault();if(r&&!t.collapsible||this._trigger("beforeActivate",e,l)===false){return}t.active=a?false:this.headers.index(i);this.active=r?$():i;this._toggle(l);n.removeClass("ui-accordion-header-active ui-state-active");if(t.icons){n.children(".ui-accordion-header-icon").removeClass(t.icons.activeHeader).addClass(t.icons.header)}if(!r){i.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top");if(t.icons){i.children(".ui-accordion-header-icon").removeClass(t.icons.header).addClass(t.icons.activeHeader)}i.next().addClass("ui-accordion-content-active")}},_toggle:function(e){var t=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(true,true);this.prevShow=t;this.prevHide=n;if(this.options.animate){this._animate(t,n,e)}else{n.hide();t.show();this._toggleComplete(e)}n.attr({"aria-hidden":"true"});n.prev().attr({"aria-selected":"false","aria-expanded":"false"});if(t.length&&n.length){n.prev().attr({tabIndex:-1,"aria-expanded":"false"})}else if(t.length){this.headers.filter(function(){return parseInt($(this).attr("tabIndex"),10)===0}).attr("tabIndex",-1)}t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,n,t){var i,r,a,o=this,s=0,l=e.css("box-sizing"),c=e.length&&(!n.length||e.index()<n.index()),d=this.options.animate||{},u=c&&d.down||d,p=function(){o._toggleComplete(t)};if(typeof u==="number"){a=u}if(typeof u==="string"){r=u}r=r||u.easing||d.easing;a=a||u.duration||d.duration;if(!n.length){return e.animate(this.showProps,a,r,p)}if(!e.length){return n.animate(this.hideProps,a,r,p)}i=e.show().outerHeight();n.animate(this.hideProps,{duration:a,easing:r,step:function(e,t){t.now=Math.round(e)}});e.hide().animate(this.showProps,{duration:a,easing:r,complete:p,step:function(e,t){t.now=Math.round(e);if(t.prop!=="height"){if(l==="content-box"){s+=t.now}}else if(o.options.heightStyle!=="content"){t.now=Math.round(i-n.outerHeight()-s);s=0}}})},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all");if(t.length){t.parent()[0].className=t.parent()[0].className}this._trigger("activate",null,e)}});var h=$.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=false;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0});if(this.options.disabled){this.element.addClass("ui-state-disabled").attr("aria-disabled","true")}this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=$(e.target);if(!this.mouseHandled&&t.not(".ui-state-disabled").length){this.select(e);if(!e.isPropagationStopped()){this.mouseHandled=true}if(t.has(".ui-menu").length){this.expand(e)}else if(!this.element.is(":focus")&&$(this.document[0].activeElement).closest(".ui-menu").length){this.element.trigger("focus",[true]);if(this.active&&this.active.parents(".ui-menu").length===1){clearTimeout(this.timer)}}}},"mouseenter .ui-menu-item":function(e){if(this.previousFilter){return}var t=$(e.currentTarget);t.siblings(".ui-state-active").removeClass("ui-state-active");this.focus(e,t)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.find(this.options.items).eq(0);if(!t){this.focus(e,n)}},blur:function(e){this._delay(function(){if(!$.contains(this.element[0],this.document[0].activeElement)){this.collapseAll(e)}})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(e){if(this._closeOnDocumentClick(e)){this.collapseAll(e)}this.mouseHandled=false}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=$(this);if(e.data("ui-menu-submenu-carat")){e.remove()}});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var t,n,i,r,a=true;switch(e.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(e);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case $.ui.keyCode.HOME:this._move("first","first",e);break;case $.ui.keyCode.END:this._move("last","last",e);break;case $.ui.keyCode.UP:this.previous(e);break;case $.ui.keyCode.DOWN:this.next(e);break;case $.ui.keyCode.LEFT:this.collapse(e);break;case $.ui.keyCode.RIGHT:if(this.active&&!this.active.is(".ui-state-disabled")){this.expand(e)}break;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(e);break;case $.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=false;n=this.previousFilter||"";i=String.fromCharCode(e.keyCode);r=false;clearTimeout(this.filterTimer);if(i===n){r=true}else{i=n+i}t=this._filterMenuItems(i);t=r&&t.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):t;if(!t.length){i=String.fromCharCode(e.keyCode);t=this._filterMenuItems(i)}if(t.length){this.focus(e,t);this.previousFilter=i;this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)}else{delete this.previousFilter}}if(a){e.preventDefault()}},_activate:function(e){if(!this.active.is(".ui-state-disabled")){if(this.active.is("[aria-haspopup='true']")){this.expand(e)}else{this.select(e)}}},refresh:function(){var e,t,n=this,i=this.options.icons.submenu,r=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length);r.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=$(this),t=e.parent(),n=$("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",true);t.attr("aria-haspopup","true").prepend(n);e.attr("aria-labelledby",t.attr("id"))});e=r.add(this.element);t=e.find(this.options.items);t.not(".ui-menu-item").each(function(){var e=$(this);if(n._isDivider(e)){e.addClass("ui-widget-content ui-menu-divider")}});t.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()});t.filter(".ui-state-disabled").attr("aria-disabled","true");if(this.active&&!$.contains(this.element[0],this.active[0])){this.blur()}},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if(e==="icons"){this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu)}if(e==="disabled"){this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t)}this._super(e,t)},focus:function(e,t){var n,i;this.blur(e,e&&e.type==="focus");this._scrollIntoView(t);this.active=t.first();i=this.active.addClass("ui-state-focus").removeClass("ui-state-active");if(this.options.role){this.element.attr("aria-activedescendant",i.attr("id"))}this.active.parent().closest(".ui-menu-item").addClass("ui-state-active");if(e&&e.type==="keydown"){this._close()}else{this.timer=this._delay(function(){this._close()},this.delay)}n=t.children(".ui-menu");if(n.length&&e&&/^mouse/.test(e.type)){this._startOpening(n)}this.activeMenu=t.parent();this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,n,i,r,a,o;if(this._hasScroll()){t=parseFloat($.css(this.activeMenu[0],"borderTopWidth"))||0;n=parseFloat($.css(this.activeMenu[0],"paddingTop"))||0;i=e.offset().top-this.activeMenu.offset().top-t-n;r=this.activeMenu.scrollTop();a=this.activeMenu.height();o=e.outerHeight();if(i<0){this.activeMenu.scrollTop(r+i)}else if(i+o>a){this.activeMenu.scrollTop(r+i-a+o)}}},blur:function(e,t){if(!t){clearTimeout(this.timer)}if(!this.active){return}this.active.removeClass("ui-state-focus");this.active=null;this._trigger("blur",e,{item:this.active})},_startOpening:function(e){clearTimeout(this.timer);if(e.attr("aria-hidden")!=="true"){return}this.timer=this._delay(function(){this._close();this._open(e)},this.delay)},_open:function(e){var t=$.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true");e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,n){clearTimeout(this.timer);this.timer=this._delay(function(){var e=n?this.element:$(t&&t.target).closest(this.element.find(".ui-menu"));if(!e.length){e=this.element}this._close(e);this.blur(t);this.activeMenu=e},this.delay)},_close:function(e){if(!e){e=this.active?this.active.parent():this.element}e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!$(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);if(t&&t.length){this._close();this.focus(e,t)}},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();if(t&&t.length){this._open(t.parent());this._delay(function(){this.focus(e,t)})}},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var i;if(this.active){if(e==="first"||e==="last"){i=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1)}else{i=this.active[e+"All"](".ui-menu-item").eq(0)}}if(!i||!i.length||!this.active){i=this.activeMenu.find(this.options.items)[t]()}this.focus(n,i)},nextPage:function(e){var t,n,i;if(!this.active){this.next(e);return}if(this.isLastItem()){return}if(this._hasScroll()){n=this.active.offset().top;i=this.element.height();this.active.nextAll(".ui-menu-item").each(function(){t=$(this);return t.offset().top-n-i<0});this.focus(e,t)}else{this.focus(e,this.activeMenu.find(this.options.items)[!this.active?"first":"last"]())}},previousPage:function(e){var t,n,i;if(!this.active){this.next(e);return}if(this.isFirstItem()){return}if(this._hasScroll()){n=this.active.offset().top;i=this.element.height();this.active.prevAll(".ui-menu-item").each(function(){t=$(this);return t.offset().top-n+i>0});this.focus(e,t)}else{this.focus(e,this.activeMenu.find(this.options.items).first())}},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||$(e.target).closest(".ui-menu-item");var t={item:this.active};if(!this.active.has(".ui-menu").length){this.collapseAll(e,true)}this._trigger("select",e,t)},_filterMenuItems:function(e){var t=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test($.trim($(this).text()))})}});$.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var n,i,r,e=this.element[0].nodeName.toLowerCase(),t=e==="textarea",a=e==="input";this.isMultiLine=t?true:a?false:this.element.prop("isContentEditable");this.valueMethod=this.element[t||a?"val":"text"];this.isNewMenu=true;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly")){n=true;r=true;i=true;return}n=false;r=false;i=false;var t=$.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:n=true;this._move("previousPage",e);break;case t.PAGE_DOWN:n=true;this._move("nextPage",e);break;case t.UP:n=true;this._keyEvent("previous",e);break;case t.DOWN:n=true;this._keyEvent("next",e);break;case t.ENTER:if(this.menu.active){n=true;e.preventDefault();this.menu.select(e)}break;case t.TAB:if(this.menu.active){this.menu.select(e)}break;case t.ESCAPE:if(this.menu.element.is(":visible")){if(!this.isMultiLine){this._value(this.term)}this.close(e);e.preventDefault()}break;default:i=true;this._searchTimeout(e);break}},keypress:function(e){if(n){n=false;if(!this.isMultiLine||this.menu.element.is(":visible")){e.preventDefault()}return}if(i){return}var t=$.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e);break}},input:function(e){if(r){r=false;e.preventDefault();return}this._searchTimeout(e)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(e);this._change(e)}});this._initSource();this.menu=$("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance");this._on(this.menu.element,{mousedown:function(e){e.preventDefault();this.cancelBlur=true;this._delay(function(){delete this.cancelBlur});var n=this.menu.element[0];if(!$(e.target).closest(".ui-menu-item").length){this._delay(function(){var t=this;this.document.one("mousedown",function(e){if(e.target!==t.element[0]&&e.target!==n&&!$.contains(n,e.target)){t.close()}})})}},menufocus:function(e,t){var n,i;if(this.isNewMenu){this.isNewMenu=false;if(e.originalEvent&&/^mouse/.test(e.originalEvent.type)){this.menu.blur();this.document.one("mousemove",function(){$(e.target).trigger(e.originalEvent)});return}}i=t.item.data("ui-autocomplete-item");if(false!==this._trigger("focus",e,{item:i})){if(e.originalEvent&&/^key/.test(e.originalEvent.type)){this._value(i.value)}}n=t.item.attr("aria-label")||i.value;if(n&&$.trim(n).length){this.liveRegion.children().hide();$("<div>").text(n).appendTo(this.liveRegion)}},menuselect:function(e,t){var n=t.item.data("ui-autocomplete-item"),i=this.previous;if(this.element[0]!==this.document[0].activeElement){this.element.focus();this.previous=i;this._delay(function(){this.previous=i;this.selectedItem=n})}if(false!==this._trigger("select",e,{item:n})){this._value(n.value)}this.term=this._value();this.close(e);this.selectedItem=n}});this.liveRegion=$("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body);this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t);if(e==="source"){this._initSource()}if(e==="appendTo"){this.menu.element.appendTo(this._appendTo())}if(e==="disabled"&&t&&this.xhr){this.xhr.abort()}},_appendTo:function(){var e=this.options.appendTo;if(e){e=e.jquery||e.nodeType?$(e):this.document.find(e).eq(0)}if(!e||!e[0]){e=this.element.closest(".ui-front")}if(!e.length){e=this.document[0].body}return e},_initSource:function(){var n,i,r=this;if($.isArray(this.options.source)){n=this.options.source;this.source=function(e,t){t($.ui.autocomplete.filter(n,e.term))}}else if(typeof this.options.source==="string"){i=this.options.source;this.source=function(e,t){if(r.xhr){r.xhr.abort()}r.xhr=$.ajax({url:i,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}}else{this.source=this.options.source}},_searchTimeout:function(i){clearTimeout(this.searching);this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),n=i.altKey||i.ctrlKey||i.metaKey||i.shiftKey;if(!e||e&&!t&&!n){this.selectedItem=null;this.search(null,i)}},this.options.delay)},search:function(e,t){e=e!=null?e:this._value();this.term=this._value();if(e.length<this.options.minLength){return this.close(t)}if(this._trigger("search",t)===false){return}return this._search(e)},_search:function(e){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=false;this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return $.proxy(function(e){if(t===this.requestIndex){this.__response(e)}this.pending--;if(!this.pending){this.element.removeClass("ui-autocomplete-loading")}},this)},__response:function(e){if(e){e=this._normalize(e)}this._trigger("response",null,{content:e});if(!this.options.disabled&&e&&e.length&&!this.cancelSearch){this._suggest(e);this._trigger("open")}else{this._close()}},close:function(e){this.cancelSearch=true;this._close(e)},_close:function(e){if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.blur();this.isNewMenu=true;this._trigger("close",e)}},_change:function(e){if(this.previous!==this._value()){this._trigger("change",e,{item:this.selectedItem})}},_normalize:function(e){if(e.length&&e[0].label&&e[0].value){return e}return $.map(e,function(e){if(typeof e==="string"){return{label:e,value:e}}return $.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e);this.isNewMenu=true;this.menu.refresh();t.show();this._resizeMenu();t.position($.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next()}},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(n,e){var i=this;$.each(e,function(e,t){i._renderItemData(n,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return $("<li>").text(t.label).appendTo(e)},_move:function(e,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)){if(!this.isMultiLine){this._value(this.term)}this.menu.blur();return}this.menu[e](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){if(!this.isMultiLine||this.menu.element.is(":visible")){this._move(e,t);t.preventDefault()}}});$.extend($.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var n=new RegExp($.ui.autocomplete.escapeRegex(t),"i");return $.grep(e,function(e){return n.test(e.label||e.value||e)})}});$.widget("ui.autocomplete",$.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments);if(this.options.disabled||this.cancelSearch){return}if(e&&e.length){t=this.options.messages.results(e.length)}else{t=this.options.messages.noResults}this.liveRegion.children().hide();$("<div>").text(t).appendTo(this.liveRegion)}});var m=$.ui.autocomplete;var v,g="ui-button ui-widget ui-state-default ui-corner-all",_="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",y=function(){var e=$(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},b=function(e){var t=e.name,n=e.form,i=$([]);if(t){t=t.replace(/'/g,"\\'");if(n){i=$(n).find("[name='"+t+"'][type=radio]")}else{i=$("[name='"+t+"'][type=radio]",e.ownerDocument).filter(function(){return!this.form})}}return i};$.widget("ui.button",{version:"1.11.4",defaultElement:"<button>",options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,y);if(typeof this.options.disabled!=="boolean"){this.options.disabled=!!this.element.prop("disabled")}else{this.element.prop("disabled",this.options.disabled)}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var t=this,n=this.options,e=this.type==="checkbox"||this.type==="radio",i=!e?"ui-state-active":"";if(n.label===null){n.label=this.type==="input"?this.buttonElement.val():this.buttonElement.html()}this._hoverable(this.buttonElement);this.buttonElement.addClass(g).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){if(n.disabled){return}if(this===v){$(this).addClass("ui-state-active")}}).bind("mouseleave"+this.eventNamespace,function(){if(n.disabled){return}$(this).removeClass(i)}).bind("click"+this.eventNamespace,function(e){if(n.disabled){e.preventDefault();e.stopImmediatePropagation()}});this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}});if(e){this.element.bind("change"+this.eventNamespace,function(){t.refresh()})}if(this.type==="checkbox"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(n.disabled){return false}})}else if(this.type==="radio"){this.buttonElement.bind("click"+this.eventNamespace,function(){if(n.disabled){return false}$(this).addClass("ui-state-active");t.buttonElement.attr("aria-pressed","true");var e=t.element[0];b(e).not(e).map(function(){return $(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")})}else{this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(n.disabled){return false}$(this).addClass("ui-state-active");v=this;t.document.one("mouseup",function(){v=null})}).bind("mouseup"+this.eventNamespace,function(){if(n.disabled){return false}$(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){if(n.disabled){return false}if(e.keyCode===$.ui.keyCode.SPACE||e.keyCode===$.ui.keyCode.ENTER){$(this).addClass("ui-state-active")}}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){$(this).removeClass("ui-state-active")});if(this.buttonElement.is("a")){this.buttonElement.keyup(function(e){if(e.keyCode===$.ui.keyCode.SPACE){$(this).click()}})}}this._setOption("disabled",n.disabled);this._resetButton()},_determineButtonType:function(){var e,t,n;if(this.element.is("[type=checkbox]")){this.type="checkbox"}else if(this.element.is("[type=radio]")){this.type="radio"}else if(this.element.is("input")){this.type="input"}else{this.type="button"}if(this.type==="checkbox"||this.type==="radio"){e=this.element.parents().last();t="label[for='"+this.element.attr("id")+"']";this.buttonElement=e.find(t);if(!this.buttonElement.length){e=e.length?e.siblings():this.element.siblings();this.buttonElement=e.filter(t);if(!this.buttonElement.length){this.buttonElement=e.find(t)}}this.element.addClass("ui-helper-hidden-accessible");n=this.element.is(":checked");if(n){this.buttonElement.addClass("ui-state-active")}this.buttonElement.prop("aria-pressed",n)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(g+" ui-state-active "+_).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle){this.buttonElement.removeAttr("title")}},_setOption:function(e,t){this._super(e,t);if(e==="disabled"){this.widget().toggleClass("ui-state-disabled",!!t);this.element.prop("disabled",!!t);if(t){if(this.type==="checkbox"||this.type==="radio"){this.buttonElement.removeClass("ui-state-focus")}else{this.buttonElement.removeClass("ui-state-focus ui-state-active")}}return}this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");if(e!==this.options.disabled){this._setOption("disabled",e)}if(this.type==="radio"){b(this.element[0]).each(function(){if($(this).is(":checked")){$(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true")}else{$(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}})}else if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true")}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false")}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label)}return}var e=this.buttonElement.removeClass(_),t=$("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,i=n.primary&&n.secondary,r=[];if(n.primary||n.secondary){if(this.options.text){r.push("ui-button-text-icon"+(i?"s":n.primary?"-primary":"-secondary"))}if(n.primary){e.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>")}if(n.secondary){e.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>")}if(!this.options.text){r.push(i?"ui-button-icons-only":"ui-button-icon-only");if(!this.hasTitle){e.attr("title",$.trim(t))}}}else{r.push("ui-button-text-only")}e.addClass(r.join(" "))}});$.widget("ui.buttonset",{version:"1.11.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,t){if(e==="disabled"){this.buttons.button("option",e,t)}this._super(e,t)},refresh:function(){var e=this.element.css("direction")==="rtl",t=this.element.find(this.options.items),n=t.filter(":ui-button");t.not(":ui-button").button();n.button("refresh");this.buttons=t.map(function(){return $(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return $(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}});var w=$.ui.button;$.extend($.ui,{datepicker:{version:"1.11.4"}});var C;function x(e){var t,n;while(e.length&&e[0]!==document){t=e.css("position");if(t==="absolute"||t==="relative"||t==="fixed"){n=parseInt(e.css("zIndex"),10);if(!isNaN(n)&&n!==0){return n}}e=e.parent()}return 0}function k(){this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false,disabled:false};$.extend(this._defaults,this.regional[""]);this.regional.en=$.extend(true,{},this.regional[""]);this.regional["en-US"]=$.extend(true,{},this.regional.en);this.dpDiv=S($("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}$.extend(k.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){T(this._defaults,e||{});return this},_attachDatepicker:function(e,t){var n,i,r;n=e.nodeName.toLowerCase();i=n==="div"||n==="span";if(!e.id){this.uuid+=1;e.id="dp"+this.uuid}r=this._newInst($(e),i);r.settings=$.extend({},t||{});if(n==="input"){this._connectDatepicker(e,r)}else if(i){this._inlineDatepicker(e,r)}},_newInst:function(e,t){var n=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:n,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:!t?this.dpDiv:S($("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}},_connectDatepicker:function(e,t){var n=$(e);t.append=$([]);t.trigger=$([]);if(n.hasClass(this.markerClassName)){return}this._attachments(n,t);n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp);this._autoSize(t);$.data(e,"datepicker",t);if(t.settings.disabled){this._disableDatepicker(e)}},_attachments:function(e,t){var n,i,r,a=this._get(t,"appendText"),o=this._get(t,"isRTL");if(t.append){t.append.remove()}if(a){t.append=$("<span class='"+this._appendClass+"'>"+a+"</span>");e[o?"before":"after"](t.append)}e.unbind("focus",this._showDatepicker);if(t.trigger){t.trigger.remove()}n=this._get(t,"showOn");if(n==="focus"||n==="both"){e.focus(this._showDatepicker)}if(n==="button"||n==="both"){i=this._get(t,"buttonText");r=this._get(t,"buttonImage");t.trigger=$(this._get(t,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:r,alt:i,title:i}):$("<button type='button'></button>").addClass(this._triggerClass).html(!r?i:$("<img/>").attr({src:r,alt:i,title:i})));e[o?"before":"after"](t.trigger);t.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput===e[0]){$.datepicker._hideDatepicker()}else if($.datepicker._datepickerShowing&&$.datepicker._lastInput!==e[0]){$.datepicker._hideDatepicker();$.datepicker._showDatepicker(e[0])}else{$.datepicker._showDatepicker(e[0])}return false})}},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,i,r,a=new Date(2009,12-1,20),o=this._get(e,"dateFormat");if(o.match(/[DM]/)){t=function(e){n=0;i=0;for(r=0;r<e.length;r++){if(e[r].length>n){n=e[r].length;i=r}}return i};a.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort")));a.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())}e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(e,t){var n=$(e);if(n.hasClass(this.markerClassName)){return}n.addClass(this.markerClassName).append(t.dpDiv);$.data(e,"datepicker",t);this._setDate(t,this._getDefaultDate(t),true);this._updateDatepicker(t);this._updateAlternate(t);if(t.settings.disabled){this._disableDatepicker(e)}t.dpDiv.css("display","block")},_dialogDatepicker:function(e,t,n,i,r){var a,o,s,l,c,d=this._dialogInst;if(!d){this.uuid+=1;a="dp"+this.uuid;this._dialogInput=$("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>");this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);d=this._dialogInst=this._newInst(this._dialogInput,false);d.settings={};$.data(this._dialogInput[0],"datepicker",d)}T(d.settings,i||{});t=t&&t.constructor===Date?this._formatDate(d,t):t;this._dialogInput.val(t);this._pos=r?r.length?r:[r.pageX,r.pageY]:null;if(!this._pos){o=document.documentElement.clientWidth;s=document.documentElement.clientHeight;l=document.documentElement.scrollLeft||document.body.scrollLeft;c=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[o/2-100+l,s/2-150+c]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");d.settings.onSelect=n;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],"datepicker",d);return this},_destroyDatepicker:function(e){var t,n=$(e),i=$.data(e,"datepicker");if(!n.hasClass(this.markerClassName)){return}t=e.nodeName.toLowerCase();$.removeData(e,"datepicker");if(t==="input"){i.append.remove();i.trigger.remove();n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(t==="div"||t==="span"){n.removeClass(this.markerClassName).empty()}if(C===i){C=null}},_enableDatepicker:function(t){var e,n,i=$(t),r=$.data(t,"datepicker");if(!i.hasClass(this.markerClassName)){return}e=t.nodeName.toLowerCase();if(e==="input"){t.disabled=false;r.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e==="div"||e==="span"){n=i.children("."+this._inlineClass);n.children().removeClass("ui-state-disabled");n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",false)}this._disabledInputs=$.map(this._disabledInputs,function(e){return e===t?null:e})},_disableDatepicker:function(t){var e,n,i=$(t),r=$.data(t,"datepicker");if(!i.hasClass(this.markerClassName)){return}e=t.nodeName.toLowerCase();if(e==="input"){t.disabled=true;r.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(e==="div"||e==="span"){n=i.children("."+this._inlineClass);n.children().addClass("ui-state-disabled");n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",true)}this._disabledInputs=$.map(this._disabledInputs,function(e){return e===t?null:e});this._disabledInputs[this._disabledInputs.length]=t},_isDisabledDatepicker:function(e){if(!e){return false}for(var t=0;t<this._disabledInputs.length;t++){if(this._disabledInputs[t]===e){return true}}return false},_getInst:function(e){try{return $.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,n){var i,r,a,o,s=this._getInst(e);if(arguments.length===2&&typeof t==="string"){return t==="defaults"?$.extend({},$.datepicker._defaults):s?t==="all"?$.extend({},s.settings):this._get(s,t):null}i=t||{};if(typeof t==="string"){i={};i[t]=n}if(s){if(this._curInst===s){this._hideDatepicker()}r=this._getDateDatepicker(e,true);a=this._getMinMaxDate(s,"min");o=this._getMinMaxDate(s,"max");T(s.settings,i);if(a!==null&&i.dateFormat!==undefined&&i.minDate===undefined){s.settings.minDate=this._formatDate(s,a)}if(o!==null&&i.dateFormat!==undefined&&i.maxDate===undefined){s.settings.maxDate=this._formatDate(s,o)}if("disabled"in i){if(i.disabled){this._disableDatepicker(e)}else{this._enableDatepicker(e)}}this._attachments($(e),s);this._autoSize(s);this._setDate(s,r);this._updateAlternate(s);this._updateDatepicker(s)}},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);if(t){this._updateDatepicker(t)}},_setDateDatepicker:function(e,t){var n=this._getInst(e);if(n){this._setDate(n,t);this._updateDatepicker(n);this._updateAlternate(n)}},_getDateDatepicker:function(e,t){var n=this._getInst(e);if(n&&!n.inline){this._setDateFromField(n,t)}return n?this._getDate(n):null},_doKeyDown:function(e){var t,n,i,r=$.datepicker._getInst(e.target),a=true,o=r.dpDiv.is(".ui-datepicker-rtl");r._keyEvent=true;if($.datepicker._datepickerShowing){switch(e.keyCode){case 9:$.datepicker._hideDatepicker();a=false;break;case 13:i=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",r.dpDiv);if(i[0]){$.datepicker._selectDay(e.target,r.selectedMonth,r.selectedYear,i[0])}t=$.datepicker._get(r,"onSelect");if(t){n=$.datepicker._formatDate(r);t.apply(r.input?r.input[0]:null,[n,r])}else{$.datepicker._hideDatepicker()}return false;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(r,"stepBigMonths"):-$.datepicker._get(r,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(r,"stepBigMonths"):+$.datepicker._get(r,"stepMonths"),"M");break;case 35:if(e.ctrlKey||e.metaKey){$.datepicker._clearDate(e.target)}a=e.ctrlKey||e.metaKey;break;case 36:if(e.ctrlKey||e.metaKey){$.datepicker._gotoToday(e.target)}a=e.ctrlKey||e.metaKey;break;case 37:if(e.ctrlKey||e.metaKey){$.datepicker._adjustDate(e.target,o?+1:-1,"D")}a=e.ctrlKey||e.metaKey;if(e.originalEvent.altKey){$.datepicker._adjustDate(e.target,e.ctrlKey?-$.datepicker._get(r,"stepBigMonths"):-$.datepicker._get(r,"stepMonths"),"M")}break;case 38:if(e.ctrlKey||e.metaKey){$.datepicker._adjustDate(e.target,-7,"D")}a=e.ctrlKey||e.metaKey;break;case 39:if(e.ctrlKey||e.metaKey){$.datepicker._adjustDate(e.target,o?-1:+1,"D")}a=e.ctrlKey||e.metaKey;if(e.originalEvent.altKey){$.datepicker._adjustDate(e.target,e.ctrlKey?+$.datepicker._get(r,"stepBigMonths"):+$.datepicker._get(r,"stepMonths"),"M")}break;case 40:if(e.ctrlKey||e.metaKey){$.datepicker._adjustDate(e.target,+7,"D")}a=e.ctrlKey||e.metaKey;break;default:a=false}}else if(e.keyCode===36&&e.ctrlKey){$.datepicker._showDatepicker(this)}else{a=false}if(a){e.preventDefault();e.stopPropagation()}},_doKeyPress:function(e){var t,n,i=$.datepicker._getInst(e.target);if($.datepicker._get(i,"constrainInput")){t=$.datepicker._possibleChars($.datepicker._get(i,"dateFormat"));n=String.fromCharCode(e.charCode==null?e.keyCode:e.charCode);return e.ctrlKey||e.metaKey||(n<" "||!t||t.indexOf(n)>-1)}},_doKeyUp:function(e){var t,n=$.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal){try{t=$.datepicker.parseDate($.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,$.datepicker._getFormatConfig(n));if(t){$.datepicker._setDateFromField(n);$.datepicker._updateAlternate(n);$.datepicker._updateDatepicker(n)}}catch(e){}}return true},_showDatepicker:function(e){e=e.target||e;if(e.nodeName.toLowerCase()!=="input"){e=$("input",e.parentNode)[0]}if($.datepicker._isDisabledDatepicker(e)||$.datepicker._lastInput===e){return}var t,n,i,r,a,o,s;t=$.datepicker._getInst(e);if($.datepicker._curInst&&$.datepicker._curInst!==t){$.datepicker._curInst.dpDiv.stop(true,true);if(t&&$.datepicker._datepickerShowing){$.datepicker._hideDatepicker($.datepicker._curInst.input[0])}}n=$.datepicker._get(t,"beforeShow");i=n?n.apply(e,[e,t]):{};if(i===false){return}T(t.settings,i);t.lastVal=null;$.datepicker._lastInput=e;$.datepicker._setDateFromField(t);if($.datepicker._inDialog){e.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(e);$.datepicker._pos[1]+=e.offsetHeight}r=false;$(e).parents().each(function(){r|=$(this).css("position")==="fixed";return!r});a={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;t.dpDiv.empty();t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(t);a=$.datepicker._checkOffset(t,a,r);t.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":r?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"});if(!t.inline){o=$.datepicker._get(t,"showAnim");s=$.datepicker._get(t,"duration");t.dpDiv.css("z-index",x($(e))+1);$.datepicker._datepickerShowing=true;if($.effects&&$.effects.effect[o]){t.dpDiv.show(o,$.datepicker._get(t,"showOptions"),s)}else{t.dpDiv[o||"show"](o?s:null)}if($.datepicker._shouldFocusInput(t)){t.input.focus()}$.datepicker._curInst=t}},_updateDatepicker:function(e){this.maxRows=4;C=e;e.dpDiv.empty().append(this._generateHTML(e));this._attachHandlers(e);var t,n=this._getNumberOfMonths(e),i=n[1],r=17,a=e.dpDiv.find("."+this._dayOverClass+" a");if(a.length>0){D.apply(a.get(0))}e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(i>1){e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",r*i+"em")}e.dpDiv[(n[0]!==1||n[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi");e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(e===$.datepicker._curInst&&$.datepicker._datepickerShowing&&$.datepicker._shouldFocusInput(e)){e.input.focus()}if(e.yearshtml){t=e.yearshtml;setTimeout(function(){if(t===e.yearshtml&&e.yearshtml){e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml)}t=e.yearshtml=null},0)}},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,n){var i=e.dpDiv.outerWidth(),r=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,s=document.documentElement.clientWidth+(n?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:$(document).scrollTop());t.left-=this._get(e,"isRTL")?i-a:0;t.left-=n&&t.left===e.input.offset().left?$(document).scrollLeft():0;t.top-=n&&t.top===e.input.offset().top+o?$(document).scrollTop():0;t.left-=Math.min(t.left,t.left+i>s&&s>i?Math.abs(t.left+i-s):0);t.top-=Math.min(t.top,t.top+r>l&&l>r?Math.abs(r+o):0);return t},_findPos:function(e){var t,n=this._getInst(e),i=this._get(n,"isRTL");while(e&&(e.type==="hidden"||e.nodeType!==1||$.expr.filters.hidden(e))){e=e[i?"previousSibling":"nextSibling"]}t=$(e).offset();return[t.left,t.top]},_hideDatepicker:function(e){var t,n,i,r,a=this._curInst;if(!a||e&&a!==$.data(e,"datepicker")){return}if(this._datepickerShowing){t=this._get(a,"showAnim");n=this._get(a,"duration");i=function(){$.datepicker._tidyDialog(a)};if($.effects&&($.effects.effect[t]||$.effects[t])){a.dpDiv.hide(t,$.datepicker._get(a,"showOptions"),n,i)}else{a.dpDiv[t==="slideDown"?"slideUp":t==="fadeIn"?"fadeOut":"hide"](t?n:null,i)}if(!t){i()}this._datepickerShowing=false;r=this._get(a,"onClose");if(r){r.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(!$.datepicker._curInst){return}var t=$(e.target),n=$.datepicker._getInst(t[0]);if(t[0].id!==$.datepicker._mainDivId&&t.parents("#"+$.datepicker._mainDivId).length===0&&!t.hasClass($.datepicker.markerClassName)&&!t.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)||t.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!==n){$.datepicker._hideDatepicker()}},_adjustDate:function(e,t,n){var i=$(e),r=this._getInst(i[0]);if(this._isDisabledDatepicker(i[0])){return}this._adjustInstDate(r,t+(n==="M"?this._get(r,"showCurrentAtPos"):0),n);this._updateDatepicker(r)},_gotoToday:function(e){var t,n=$(e),i=this._getInst(n[0]);if(this._get(i,"gotoCurrent")&&i.currentDay){i.selectedDay=i.currentDay;i.drawMonth=i.selectedMonth=i.currentMonth;i.drawYear=i.selectedYear=i.currentYear}else{t=new Date;i.selectedDay=t.getDate();i.drawMonth=i.selectedMonth=t.getMonth();i.drawYear=i.selectedYear=t.getFullYear()}this._notifyChange(i);this._adjustDate(n)},_selectMonthYear:function(e,t,n){var i=$(e),r=this._getInst(i[0]);r["selected"+(n==="M"?"Month":"Year")]=r["draw"+(n==="M"?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10);this._notifyChange(r);this._adjustDate(i)},_selectDay:function(e,t,n,i){var r,a=$(e);if($(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])){return}r=this._getInst(a[0]);r.selectedDay=r.currentDay=$("a",i).html();r.selectedMonth=r.currentMonth=t;r.selectedYear=r.currentYear=n;this._selectDate(e,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear))},_clearDate:function(e){var t=$(e);this._selectDate(t,"")},_selectDate:function(e,t){var n,i=$(e),r=this._getInst(i[0]);t=t!=null?t:this._formatDate(r);if(r.input){r.input.val(t)}this._updateAlternate(r);n=this._get(r,"onSelect");if(n){n.apply(r.input?r.input[0]:null,[t,r])}else if(r.input){r.input.trigger("change")}if(r.inline){this._updateDatepicker(r)}else{this._hideDatepicker();this._lastInput=r.input[0];if(typeof r.input[0]!=="object"){r.input.focus()}this._lastInput=null}},_updateAlternate:function(e){var t,n,i,r=this._get(e,"altField");if(r){t=this._get(e,"altFormat")||this._get(e,"dateFormat");n=this._getDate(e);i=this.formatDate(t,n,this._getFormatConfig(e));$(r).each(function(){$(this).val(i)})}},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());n.setDate(n.getDate()+4-(n.getDay()||7));t=n.getTime();n.setMonth(0);n.setDate(1);return Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(n,o,e){if(n==null||o==null){throw"Invalid arguments"}o=typeof o==="object"?o.toString():o+"";if(o===""){return null}var i,t,r,s=0,a=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,l=typeof a!=="string"?a:(new Date).getFullYear()%100+parseInt(a,10),c=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,d=(e?e.dayNames:null)||this._defaults.dayNames,u=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,p=(e?e.monthNames:null)||this._defaults.monthNames,f=-1,h=-1,m=-1,v=-1,g=false,_,y=function(e){var t=i+1<n.length&&n.charAt(i+1)===e;if(t){i++}return t},b=function(e){var t=y(e),n=e==="@"?14:e==="!"?20:e==="y"&&t?4:e==="o"?3:2,i=e==="y"?n:1,r=new RegExp("^\\d{"+i+","+n+"}"),a=o.substring(s).match(r);if(!a){throw"Missing number at position "+s}s+=a[0].length;return parseInt(a[0],10)},w=function(e,t,n){var i=-1,r=$.map(y(e)?n:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});$.each(r,function(e,t){var n=t[1];if(o.substr(s,n.length).toLowerCase()===n.toLowerCase()){i=t[0];s+=n.length;return false}});if(i!==-1){return i+1}else{throw"Unknown name at position "+s}},C=function(){if(o.charAt(s)!==n.charAt(i)){throw"Unexpected literal at position "+s}s++};for(i=0;i<n.length;i++){if(g){if(n.charAt(i)==="'"&&!y("'")){g=false}else{C()}}else{switch(n.charAt(i)){case"d":m=b("d");break;case"D":w("D",c,d);break;case"o":v=b("o");break;case"m":h=b("m");break;case"M":h=w("M",u,p);break;case"y":f=b("y");break;case"@":_=new Date(b("@"));f=_.getFullYear();h=_.getMonth()+1;m=_.getDate();break;case"!":_=new Date((b("!")-this._ticksTo1970)/1e4);f=_.getFullYear();h=_.getMonth()+1;m=_.getDate();break;case"'":if(y("'")){C()}else{g=true}break;default:C()}}}if(s<o.length){r=o.substr(s);if(!/^\s+/.test(r)){throw"Extra/unparsed characters found in date: "+r}}if(f===-1){f=(new Date).getFullYear()}else if(f<100){f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=l?0:-100)}if(v>-1){h=1;m=v;do{t=this._getDaysInMonth(f,h-1);if(m<=t){break}h++;m-=t}while(true)}_=this._daylightSavingAdjust(new Date(f,h-1,m));if(_.getFullYear()!==f||_.getMonth()+1!==h||_.getDate()!==m){throw"Invalid date"}return _},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7,formatDate:function(n,e,t){if(!e){return""}var i,r=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,a=(t?t.dayNames:null)||this._defaults.dayNames,o=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,s=(t?t.monthNames:null)||this._defaults.monthNames,l=function(e){var t=i+1<n.length&&n.charAt(i+1)===e;if(t){i++}return t},c=function(e,t,n){var i=""+t;if(l(e)){while(i.length<n){i="0"+i}}return i},d=function(e,t,n,i){return l(e)?i[t]:n[t]},u="",p=false;if(e){for(i=0;i<n.length;i++){if(p){if(n.charAt(i)==="'"&&!l("'")){p=false}else{u+=n.charAt(i)}}else{switch(n.charAt(i)){case"d":u+=c("d",e.getDate(),2);break;case"D":u+=d("D",e.getDay(),r,a);break;case"o":u+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=c("m",e.getMonth()+1,2);break;case"M":u+=d("M",e.getMonth(),o,s);break;case"y":u+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=e.getTime()*1e4+this._ticksTo1970;break;case"'":if(l("'")){u+="'"}else{p=true}break;default:u+=n.charAt(i)}}}}return u},_possibleChars:function(n){var i,e="",t=false,r=function(e){var t=i+1<n.length&&n.charAt(i+1)===e;if(t){i++}return t};for(i=0;i<n.length;i++){if(t){if(n.charAt(i)==="'"&&!r("'")){t=false}else{e+=n.charAt(i)}}else{switch(n.charAt(i)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":if(r("'")){e+="'"}else{t=true}break;default:e+=n.charAt(i)}}}return e},_get:function(e,t){return e.settings[t]!==undefined?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()===e.lastVal){return}var n=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,r=this._getDefaultDate(e),a=r,o=this._getFormatConfig(e);try{a=this.parseDate(n,i,o)||r}catch(e){i=t?"":i}e.selectedDay=a.getDate();e.drawMonth=e.selectedMonth=a.getMonth();e.drawYear=e.selectedYear=a.getFullYear();e.currentDay=i?a.getDate():0;e.currentMonth=i?a.getMonth():0;e.currentYear=i?a.getFullYear():0;this._adjustInstDate(e)},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(s,e,t){var n=function(e){var t=new Date;t.setDate(t.getDate()+e);return t},i=function(e){try{return $.datepicker.parseDate($.datepicker._get(s,"dateFormat"),e,$.datepicker._getFormatConfig(s))}catch(e){}var t=(e.toLowerCase().match(/^c/)?$.datepicker._getDate(s):null)||new Date,n=t.getFullYear(),i=t.getMonth(),r=t.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=a.exec(e);while(o){switch(o[2]||"d"){case"d":case"D":r+=parseInt(o[1],10);break;case"w":case"W":r+=parseInt(o[1],10)*7;break;case"m":case"M":i+=parseInt(o[1],10);r=Math.min(r,$.datepicker._getDaysInMonth(n,i));break;case"y":case"Y":n+=parseInt(o[1],10);r=Math.min(r,$.datepicker._getDaysInMonth(n,i));break}o=a.exec(e)}return new Date(n,i,r)},r=e==null||e===""?t:typeof e==="string"?i(e):typeof e==="number"?isNaN(e)?t:n(e):new Date(e.getTime());r=r&&r.toString()==="Invalid Date"?t:r;if(r){r.setHours(0);r.setMinutes(0);r.setSeconds(0);r.setMilliseconds(0)}return this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){if(!e){return null}e.setHours(e.getHours()>12?e.getHours()+2:0);return e},_setDate:function(e,t,n){var i=!t,r=e.selectedMonth,a=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate();e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth();e.drawYear=e.selectedYear=e.currentYear=o.getFullYear();if((r!==e.selectedMonth||a!==e.selectedYear)&&!n){this._notifyChange(e)}this._adjustInstDate(e);if(e.input){e.input.val(i?"":this._formatDate(e))}},_getDate:function(e){var t=!e.currentYear||e.input&&e.input.val()===""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){$.datepicker._adjustDate(n,-t,"M")},next:function(){$.datepicker._adjustDate(n,+t,"M")},hide:function(){$.datepicker._hideDatepicker()},today:function(){$.datepicker._gotoToday(n)},selectDay:function(){$.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this);return false},selectMonth:function(){$.datepicker._selectMonthYear(n,this,"M");return false},selectYear:function(){$.datepicker._selectMonthYear(n,this,"Y");return false}};$(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,n,i,r,a,o,s,l,c,d,u,p,f,h,m,v,g,_,y,b,w,C,x,k,S,D,T,$,E,O,A,P,M,I,N,R,F,L,j,H=new Date,q=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),B=this._get(e,"isRTL"),z=this._get(e,"showButtonPanel"),Y=this._get(e,"hideIfNoPrevNext"),U=this._get(e,"navigationAsDateFormat"),W=this._getNumberOfMonths(e),V=this._get(e,"showCurrentAtPos"),J=this._get(e,"stepMonths"),G=W[0]!==1||W[1]!==1,K=this._daylightSavingAdjust(!e.currentDay?new Date(9999,9,9):new Date(e.currentYear,e.currentMonth,e.currentDay)),X=this._getMinMaxDate(e,"min"),Q=this._getMinMaxDate(e,"max"),Z=e.drawMonth-V,ee=e.drawYear;if(Z<0){Z+=12;ee--}if(Q){t=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-W[0]*W[1]+1,Q.getDate()));t=X&&t<X?X:t;while(this._daylightSavingAdjust(new Date(ee,Z,1))>t){Z--;if(Z<0){Z=11;ee--}}}e.drawMonth=Z;e.drawYear=ee;n=this._get(e,"prevText");n=!U?n:this.formatDate(n,this._daylightSavingAdjust(new Date(ee,Z-J,1)),this._getFormatConfig(e));i=this._canAdjustMonth(e,-1,ee,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'"+" title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+n+"</span></a>":Y?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+n+"</span></a>";r=this._get(e,"nextText");r=!U?r:this.formatDate(r,this._daylightSavingAdjust(new Date(ee,Z+J,1)),this._getFormatConfig(e));a=this._canAdjustMonth(e,+1,ee,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'"+" title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+r+"</span></a>":Y?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+r+"</span></a>";o=this._get(e,"currentText");s=this._get(e,"gotoCurrent")&&e.currentDay?K:q;o=!U?o:this.formatDate(o,s,this._getFormatConfig(e));l=!e.inline?"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>":"";c=z?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(B?l:"")+(this._isInRange(e,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'"+">"+o+"</button>":"")+(B?"":l)+"</div>":"";d=parseInt(this._get(e,"firstDay"),10);d=isNaN(d)?0:d;u=this._get(e,"showWeek");p=this._get(e,"dayNames");f=this._get(e,"dayNamesMin");h=this._get(e,"monthNames");m=this._get(e,"monthNamesShort");v=this._get(e,"beforeShowDay");g=this._get(e,"showOtherMonths");_=this._get(e,"selectOtherMonths");y=this._getDefaultDate(e);b="";w;for(C=0;C<W[0];C++){x="";this.maxRows=4;for(k=0;k<W[1];k++){S=this._daylightSavingAdjust(new Date(ee,Z,e.selectedDay));D=" ui-corner-all";T="";if(G){T+="<div class='ui-datepicker-group";if(W[1]>1){switch(k){case 0:T+=" ui-datepicker-group-first";D=" ui-corner-"+(B?"right":"left");break;case W[1]-1:T+=" ui-datepicker-group-last";D=" ui-corner-"+(B?"left":"right");break;default:T+=" ui-datepicker-group-middle";D="";break}}T+="'>"}T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&C===0?B?a:i:"")+(/all|right/.test(D)&&C===0?B?i:a:"")+this._generateMonthYearHeader(e,Z,ee,X,Q,C>0||k>0,h,m)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>";$=u?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"";for(w=0;w<7;w++){E=(w+d)%7;$+="<th scope='col'"+((w+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+p[E]+"'>"+f[E]+"</span></th>"}T+=$+"</tr></thead><tbody>";O=this._getDaysInMonth(ee,Z);if(ee===e.selectedYear&&Z===e.selectedMonth){e.selectedDay=Math.min(e.selectedDay,O)}A=(this._getFirstDayOfMonth(ee,Z)-d+7)%7;P=Math.ceil((A+O)/7);M=G?this.maxRows>P?this.maxRows:P:P;this.maxRows=M;I=this._daylightSavingAdjust(new Date(ee,Z,1-A));for(N=0;N<M;N++){T+="<tr>";R=!u?"":"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(I)+"</td>";for(w=0;w<7;w++){F=v?v.apply(e.input?e.input[0]:null,[I]):[true,""];L=I.getMonth()!==Z;j=L&&!_||!F[0]||X&&I<X||Q&&I>Q;R+="<td class='"+((w+d+6)%7>=5?" ui-datepicker-week-end":"")+(L?" ui-datepicker-other-month":"")+(I.getTime()===S.getTime()&&Z===e.selectedMonth&&e._keyEvent||y.getTime()===I.getTime()&&y.getTime()===S.getTime()?" "+this._dayOverClass:"")+(j?" "+this._unselectableClass+" ui-state-disabled":"")+(L&&!g?"":" "+F[1]+(I.getTime()===K.getTime()?" "+this._currentClass:"")+(I.getTime()===q.getTime()?" ui-datepicker-today":""))+"'"+((!L||g)&&F[2]?" title='"+F[2].replace(/'/g,"&#39;")+"'":"")+(j?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(L&&!g?"&#xa0;":j?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===q.getTime()?" ui-state-highlight":"")+(I.getTime()===K.getTime()?" ui-state-active":"")+(L?" ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>";I.setDate(I.getDate()+1);I=this._daylightSavingAdjust(I)}T+=R+"</tr>"}Z++;if(Z>11){Z=0;ee++}T+="</tbody></table>"+(G?"</div>"+(W[0]>0&&k===W[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"");x+=T}b+=x}b+=c;e._keyEvent=false;return b},_generateMonthYearHeader:function(e,t,n,i,r,a,o,s){var l,c,d,u,p,f,h,m,v=this._get(e,"changeMonth"),g=this._get(e,"changeYear"),_=this._get(e,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(a||!v){b+="<span class='ui-datepicker-month'>"+o[t]+"</span>"}else{l=i&&i.getFullYear()===n;c=r&&r.getFullYear()===n;b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";for(d=0;d<12;d++){if((!l||d>=i.getMonth())&&(!c||d<=r.getMonth())){b+="<option value='"+d+"'"+(d===t?" selected='selected'":"")+">"+s[d]+"</option>"}}b+="</select>"}if(!_){y+=b+(a||!(v&&g)?"&#xa0;":"")}if(!e.yearshtml){e.yearshtml="";if(a||!g){y+="<span class='ui-datepicker-year'>"+n+"</span>"}else{u=this._get(e,"yearRange").split(":");p=(new Date).getFullYear();f=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?p+parseInt(e,10):parseInt(e,10);return isNaN(t)?p:t};h=f(u[0]);m=Math.max(h,f(u[1]||""));h=i?Math.max(h,i.getFullYear()):h;m=r?Math.min(m,r.getFullYear()):m;e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";for(;h<=m;h++){e.yearshtml+="<option value='"+h+"'"+(h===n?" selected='selected'":"")+">"+h+"</option>"}e.yearshtml+="</select>";y+=e.yearshtml;e.yearshtml=null}}y+=this._get(e,"yearSuffix");if(_){y+=(a||!(v&&g)?"&#xa0;":"")+b}y+="</div>";return y},_adjustInstDate:function(e,t,n){var i=e.drawYear+(n==="Y"?t:0),r=e.drawMonth+(n==="M"?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(i,r))+(n==="D"?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,r,a)));e.selectedDay=o.getDate();e.drawMonth=e.selectedMonth=o.getMonth();e.drawYear=e.selectedYear=o.getFullYear();if(n==="M"||n==="Y"){this._notifyChange(e)}},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),r=n&&t<n?n:t;return i&&r>i?i:r},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");if(t){t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])}},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return t==null?[1,1]:typeof t==="number"?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var r=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(n,i+(t<0?t:r[0]*r[1]),1));if(t<0){a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth()))}return this._isInRange(e,a)},_isInRange:function(e,t){var n,i,r=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),o=null,s=null,l=this._get(e,"yearRange");if(l){n=l.split(":");i=(new Date).getFullYear();o=parseInt(n[0],10);s=parseInt(n[1],10);if(n[0].match(/[+\-].*/)){o+=i}if(n[1].match(/[+\-].*/)){s+=i}}return(!r||t.getTime()>=r.getTime())&&(!a||t.getTime()<=a.getTime())&&(!o||t.getFullYear()>=o)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");t=typeof t!=="string"?t:(new Date).getFullYear()%100+parseInt(t,10);return{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){if(!t){e.currentDay=e.selectedDay;e.currentMonth=e.selectedMonth;e.currentYear=e.selectedYear}var r=t?typeof t==="object"?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),r,this._getFormatConfig(e))}});function S(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(t,"mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){$(this).removeClass("ui-datepicker-next-hover")}}).delegate(t,"mouseover",D)}function D(){if(!$.datepicker._isDisabledDatepicker(C.inline?C.dpDiv.parent()[0]:C.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!==-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!==-1){$(this).addClass("ui-datepicker-next-hover")}}}function T(e,t){$.extend(e,t);for(var n in t){if(t[n]==null){e[n]=t[n]}}return e}$.fn.datepicker=function(e){if(!this.length){return this}if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick);$.datepicker.initialized=true}if($("#"+$.datepicker._mainDivId).length===0){$("body").append($.datepicker.dpDiv)}var t=Array.prototype.slice.call(arguments,1);if(typeof e==="string"&&(e==="isDisabled"||e==="getDate"||e==="widget")){return $.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t))}if(e==="option"&&arguments.length===2&&typeof arguments[1]==="string"){return $.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this[0]].concat(t))}return this.each(function(){typeof e==="string"?$.datepicker["_"+e+"Datepicker"].apply($.datepicker,[this].concat(t)):$.datepicker._attachDatepicker(this,e)})};$.datepicker=new k;$.datepicker.initialized=false;$.datepicker.uuid=(new Date).getTime();$.datepicker.version="1.11.4";var E=$.datepicker;var O=$.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:true,buttons:[],closeOnEscape:true,closeText:"Close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var t=$(this).css(e).offset().top;if(t<0){$(this).css("top",e.top-t)}}},resizable:true,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},resizableRelatedOptions:{maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;this._createWrapper();this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog);this._createTitlebar();this._createButtonPane();if(this.options.draggable&&$.fn.draggable){this._makeDraggable()}if(this.options.resizable&&$.fn.resizable){this._makeResizable()}this._isOpen=false;this._trackFocus()},_init:function(){if(this.options.autoOpen){this.open()}},_appendTo:function(){var e=this.options.appendTo;if(e&&(e.jquery||e.nodeType)){return $(e)}return this.document.find(e||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance();this._destroyOverlay();this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(true,true).remove();if(this.originalTitle){this.element.attr("title",this.originalTitle)}e=t.parent.children().eq(t.index);if(e.length&&e[0]!==this.element[0]){e.before(this.element)}else{t.parent.append(this.element)}},widget:function(){return this.uiDialog},disable:$.noop,enable:$.noop,close:function(e){var t,n=this;if(!this._isOpen||this._trigger("beforeClose",e)===false){return}this._isOpen=false;this._focusedElement=null;this._destroyOverlay();this._untrackInstance();if(!this.opener.filter(":focusable").focus().length){try{t=this.document[0].activeElement;if(t&&t.nodeName.toLowerCase()!=="body"){$(t).blur()}}catch(e){}}this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",e)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,t){var n=false,i=this.uiDialog.siblings(".ui-front:visible").map(function(){return+$(this).css("z-index")}).get(),r=Math.max.apply(null,i);if(r>=+this.uiDialog.css("z-index")){this.uiDialog.css("z-index",r+1);n=true}if(n&&!t){this._trigger("focus",e)}return n},open:function(){var e=this;if(this._isOpen){if(this._moveToTop()){this._focusTabbable()}return}this._isOpen=true;this.opener=$(this.document[0].activeElement);this._size();this._position();this._createOverlay();this._moveToTop(null,true);if(this.overlay){this.overlay.css("z-index",this.uiDialog.css("z-index")-1)}this._show(this.uiDialog,this.options.show,function(){e._focusTabbable();e._trigger("focus")});this._makeFocusTarget();this._trigger("open")},_focusTabbable:function(){var e=this._focusedElement;if(!e){e=this.element.find("[autofocus]")}if(!e.length){e=this.element.find(":tabbable")}if(!e.length){e=this.uiDialogButtonPane.find(":tabbable")}if(!e.length){e=this.uiDialogTitlebarClose.filter(":tabbable")}if(!e.length){e=this.uiDialog}e.eq(0).focus()},_keepFocus:function(e){function t(){var e=this.document[0].activeElement,t=this.uiDialog[0]===e||$.contains(this.uiDialog[0],e);if(!t){this._focusTabbable()}}e.preventDefault();t.call(this);this._delay(t)},_createWrapper:function(){this.uiDialog=$("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===$.ui.keyCode.ESCAPE){e.preventDefault();this.close(e);return}if(e.keyCode!==$.ui.keyCode.TAB||e.isDefaultPrevented()){return}var t=this.uiDialog.find(":tabbable"),n=t.filter(":first"),i=t.filter(":last");if((e.target===i[0]||e.target===this.uiDialog[0])&&!e.shiftKey){this._delay(function(){n.focus()});e.preventDefault()}else if((e.target===n[0]||e.target===this.uiDialog[0])&&e.shiftKey){this._delay(function(){i.focus()});e.preventDefault()}},mousedown:function(e){if(this._moveToTop(e)){this._focusTabbable()}}});if(!this.element.find("[aria-describedby]").length){this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})}},_createTitlebar:function(){var e;this.uiDialogTitlebar=$("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(e){if(!$(e.target).closest(".ui-dialog-titlebar-close")){this.uiDialog.focus()}}});this.uiDialogTitlebarClose=$("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:false}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault();this.close(e)}});e=$("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(e);this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){if(!this.options.title){e.html("&#160;")}e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=$("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiButtonSet=$("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var r=this,e=this.options.buttons;this.uiDialogButtonPane.remove();this.uiButtonSet.empty();if($.isEmptyObject(e)||$.isArray(e)&&!e.length){this.uiDialog.removeClass("ui-dialog-buttons");return}$.each(e,function(e,t){var n,i;t=$.isFunction(t)?{click:t,text:e}:t;t=$.extend({type:"button"},t);n=t.click;t.click=function(){n.apply(r.element[0],arguments)};i={icons:t.icons,text:t.showText};delete t.icons;delete t.showText;$("<button></button>",t).button(i).appendTo(r.uiButtonSet)});this.uiDialog.addClass("ui-dialog-buttons");this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){var r=this,a=this.options;function o(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,t){$(this).addClass("ui-dialog-dragging");r._blockFrames();r._trigger("dragStart",e,o(t))},drag:function(e,t){r._trigger("drag",e,o(t))},stop:function(e,t){var n=t.offset.left-r.document.scrollLeft(),i=t.offset.top-r.document.scrollTop();a.position={my:"left top",at:"left"+(n>=0?"+":"")+n+" "+"top"+(i>=0?"+":"")+i,of:r.window};$(this).removeClass("ui-dialog-dragging");r._unblockFrames();r._trigger("dragStop",e,o(t))}})},_makeResizable:function(){var a=this,o=this.options,e=o.resizable,t=this.uiDialog.css("position"),n=typeof e==="string"?e:"n,e,s,w,se,sw,ne,nw";function s(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:n,start:function(e,t){$(this).addClass("ui-dialog-resizing");a._blockFrames();a._trigger("resizeStart",e,s(t))},resize:function(e,t){a._trigger("resize",e,s(t))},stop:function(e,t){var n=a.uiDialog.offset(),i=n.left-a.document.scrollLeft(),r=n.top-a.document.scrollTop();o.height=a.uiDialog.height();o.width=a.uiDialog.width();o.position={my:"left top",at:"left"+(i>=0?"+":"")+i+" "+"top"+(r>=0?"+":"")+r,of:a.window};$(this).removeClass("ui-dialog-resizing");a._unblockFrames();a._trigger("resizeStop",e,s(t))}}).css("position",t)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget();this._focusedElement=$(e.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),t=$.inArray(this,e);if(t!==-1){e.splice(t,1)}},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");if(!e){e=[];this.document.data("ui-dialog-instances",e)}return e},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");if(!e){this.uiDialog.show()}this.uiDialog.position(this.options.position);if(!e){this.uiDialog.hide()}},_setOptions:function(e){var n=this,i=false,r={};$.each(e,function(e,t){n._setOption(e,t);if(e in n.sizeRelatedOptions){i=true}if(e in n.resizableRelatedOptions){r[e]=t}});if(i){this._size();this._position()}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option",r)}},_setOption:function(e,t){var n,i,r=this.uiDialog;if(e==="dialogClass"){r.removeClass(this.options.dialogClass).addClass(t)}if(e==="disabled"){return}this._super(e,t);if(e==="appendTo"){this.uiDialog.appendTo(this._appendTo())}if(e==="buttons"){this._createButtons()}if(e==="closeText"){this.uiDialogTitlebarClose.button({label:""+t})}if(e==="draggable"){n=r.is(":data(ui-draggable)");if(n&&!t){r.draggable("destroy")}if(!n&&t){this._makeDraggable()}}if(e==="position"){this._position()}if(e==="resizable"){i=r.is(":data(ui-resizable)");if(i&&!t){r.resizable("destroy")}if(i&&typeof t==="string"){r.resizable("option","handles",t)}if(!i&&t!==false){this._makeResizable()}}if(e==="title"){this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))}},_size:function(){var e,t,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});if(i.minWidth>i.width){i.width=i.minWidth}e=this.uiDialog.css({height:"auto",width:i.width}).outerHeight();t=Math.max(0,i.minHeight-e);n=typeof i.maxHeight==="number"?Math.max(0,i.maxHeight-e):"none";if(i.height==="auto"){this.element.css({minHeight:t,maxHeight:n,height:"auto"})}else{this.element.height(Math.max(0,i.height-e))}if(this.uiDialog.is(":data(ui-resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=$(this);return $("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){if(this.iframeBlocks){this.iframeBlocks.remove();delete this.iframeBlocks}},_allowInteraction:function(e){if($(e.target).closest(".ui-dialog").length){return true}return!!$(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(!this.options.modal){return}var t=true;this._delay(function(){t=false});if(!this.document.data("ui-dialog-overlays")){this._on(this.document,{focusin:function(e){if(t){return}if(!this._allowInteraction(e)){e.preventDefault();this._trackingInstances()[0]._focusTabbable()}}})}this.overlay=$("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)},_destroyOverlay:function(){if(!this.options.modal){return}if(this.overlay){var e=this.document.data("ui-dialog-overlays")-1;if(!e){this.document.unbind("focusin").removeData("ui-dialog-overlays")}else{this.document.data("ui-dialog-overlays",e)}this.overlay.remove();this.overlay=null}}});var A=$.widget("ui.progressbar",{version:"1.11.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min});this.valueDiv=$("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove()},value:function(e){if(e===undefined){return this.options.value}this.options.value=this._constrainedValue(e);this._refreshValue()},_constrainedValue:function(e){if(e===undefined){e=this.options.value}this.indeterminate=e===false;if(typeof e!=="number"){e=0}return this.indeterminate?false:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value;this._super(e);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(e,t){if(e==="max"){t=Math.max(this.min,t)}if(e==="disabled"){this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t)}this._super(e,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,t=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(t.toFixed(0)+"%");this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate);if(this.indeterminate){this.element.removeAttr("aria-valuenow");if(!this.overlayDiv){this.overlayDiv=$("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv)}}else{this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e});if(this.overlayDiv){this.overlayDiv.remove();this.overlayDiv=null}}if(this.oldValue!==e){this.oldValue=e;this._trigger("change")}if(e===this.options.max){this._trigger("complete")}}});var P=$.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"};this._drawButton();this._drawMenu();if(this.options.disabled){this.disable()}},_drawButton:function(){var e=this;this.label=$("label[for='"+this.ids.element+"']").attr("for",this.ids.button);this._on(this.label,{click:function(e){this.button.focus();e.preventDefault()}});this.element.hide();this.button=$("<span>",{class:"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element);$("<span>",{class:"ui-icon "+this.options.icons.button}).prependTo(this.button);this.buttonText=$("<span>",{class:"ui-selectmenu-text"}).appendTo(this.button);this._setText(this.buttonText,this.element.find("option:selected").text());this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){if(!e.menuItems){e._refreshMenu()}});this._hoverable(this.button);this._focusable(this.button)},_drawMenu:function(){var i=this;this.menu=$("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=$("<div>",{class:"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo());this.menuInstance=this.menu.menu({role:"listbox",select:function(e,t){e.preventDefault();i._setSelection();i._select(t.item.data("ui-selectmenu-item"),e)},focus:function(e,t){var n=t.item.data("ui-selectmenu-item");if(i.focusIndex!=null&&n.index!==i.focusIndex){i._trigger("focus",e,{item:n});if(!i.isOpen){i._select(n,e)}}i.focusIndex=n.index;i.button.attr("aria-activedescendant",i.menuItems.eq(n.index).attr("id"))}}).menu("instance");this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return false};this.menuInstance._isDivider=function(){return false}},refresh:function(){this._refreshMenu();this._setText(this.buttonText,this._getSelectedItem().text());if(!this.options.width){this._resizeButton()}},_refreshMenu:function(){this.menu.empty();var e,t=this.element.find("option");if(!t.length){return}this._parseOptions(t);this._renderMenu(this.menu,this.items);this.menuInstance.refresh();this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup");e=this._getSelectedItem();this.menuInstance.focus(null,e);this._setAria(e.data("ui-selectmenu-item"));this._setOption("disabled",this.element.prop("disabled"))},open:function(e){if(this.options.disabled){return}if(!this.menuItems){this._refreshMenu()}else{this.menu.find(".ui-state-focus").removeClass("ui-state-focus");this.menuInstance.focus(null,this._getSelectedItem())}this.isOpen=true;this._toggleAttr();this._resizeMenu();this._position();this._on(this.document,this._documentClick);this._trigger("open",e)},_position:function(){this.menuWrap.position($.extend({of:this.button},this.options.position))},close:function(e){if(!this.isOpen){return}this.isOpen=false;this._toggleAttr();this.range=null;this._off(this.document);this._trigger("close",e)},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(n,e){var i=this,r="";$.each(e,function(e,t){if(t.optgroup!==r){$("<li>",{class:"ui-selectmenu-optgroup ui-menu-divider"+(t.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:t.optgroup}).appendTo(n);r=t.optgroup}i._renderItemData(n,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(e,t){var n=$("<li>");if(t.disabled){n.addClass("ui-state-disabled")}this._setText(n,t.label);return n.appendTo(e)},_setText:function(e,t){if(t){e.text(t)}else{e.html("&#160;")}},_move:function(e,t){var n,i,r=".ui-menu-item";if(this.isOpen){n=this.menuItems.eq(this.focusIndex)}else{n=this.menuItems.eq(this.element[0].selectedIndex);r+=":not(.ui-state-disabled)"}if(e==="first"||e==="last"){i=n[e==="first"?"prevAll":"nextAll"](r).eq(-1)}else{i=n[e+"All"](r).eq(0)}if(i.length){this.menuInstance.focus(t,i)}},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;if(!this.range){return}if(window.getSelection){e=window.getSelection();e.removeAllRanges();e.addRange(this.range)}else{this.range.select()}this.button.focus()},_documentClick:{mousedown:function(e){if(!this.isOpen){return}if(!$(e.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length){this.close(e)}}},_buttonEvents:{mousedown:function(){var e;if(window.getSelection){e=window.getSelection();if(e.rangeCount){this.range=e.getRangeAt(0)}}else{this.range=document.selection.createRange()}},click:function(e){this._setSelection();this._toggle(e)},keydown:function(e){var t=true;switch(e.keyCode){case $.ui.keyCode.TAB:case $.ui.keyCode.ESCAPE:this.close(e);t=false;break;case $.ui.keyCode.ENTER:if(this.isOpen){this._selectFocusedItem(e)}break;case $.ui.keyCode.UP:if(e.altKey){this._toggle(e)}else{this._move("prev",e)}break;case $.ui.keyCode.DOWN:if(e.altKey){this._toggle(e)}else{this._move("next",e)}break;case $.ui.keyCode.SPACE:if(this.isOpen){this._selectFocusedItem(e)}else{this._toggle(e)}break;case $.ui.keyCode.LEFT:this._move("prev",e);break;case $.ui.keyCode.RIGHT:this._move("next",e);break;case $.ui.keyCode.HOME:case $.ui.keyCode.PAGE_UP:this._move("first",e);break;case $.ui.keyCode.END:case $.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e);t=false}if(t){e.preventDefault()}}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex);if(!t.hasClass("ui-state-disabled")){this._select(t.data("ui-selectmenu-item"),e)}},_select:function(e,t){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index;this._setText(this.buttonText,e.label);this._setAria(e);this._trigger("select",t,{item:e});if(e.index!==n){this._trigger("change",t,{item:e})}this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t});this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if(e==="icons"){this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(t.button)}this._super(e,t);if(e==="appendTo"){this.menuWrap.appendTo(this._appendTo())}if(e==="disabled"){this.menuInstance.option("disabled",t);this.button.toggleClass("ui-state-disabled",t).attr("aria-disabled",t);this.element.prop("disabled",t);if(t){this.button.attr("tabindex",-1);this.close()}else{this.button.attr("tabindex",0)}}if(e==="width"){this._resizeButton()}},_appendTo:function(){var e=this.options.appendTo;if(e){e=e.jquery||e.nodeType?$(e):this.document.find(e).eq(0)}if(!e||!e[0]){e=this.element.closest(".ui-front")}if(!e.length){e=this.document[0].body}return e},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen);this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;if(!e){e=this.element.show().outerWidth();this.element.hide()}this.button.outerWidth(e)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(e){var r=[];e.each(function(e,t){var n=$(t),i=n.parent("optgroup");r.push({element:n,index:e,value:n.val(),label:n.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||n.prop("disabled")})});this.items=r},_destroy:function(){this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.label.attr("for",this.ids.element)}});var M=$.widget("ui.slider",$.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this._calculateNewMax();this.element.addClass("ui-slider"+" ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=false},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var e,t,n=this.options,i=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),r="<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>",a=[];t=n.values&&n.values.length||1;if(i.length>t){i.slice(t).remove();i=i.slice(0,t)}for(e=i.length;e<t;e++){a.push(r)}this.handles=i.add($(a.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(e){$(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,t="";if(e.range){if(e.range===true){if(!e.values){e.values=[this._valueMin(),this._valueMin()]}else if(e.values.length&&e.values.length!==2){e.values=[e.values[0],e.values[0]]}else if($.isArray(e.values)){e.values=e.values.slice(0)}}if(!this.range||!this.range.length){this.range=$("<div></div>").appendTo(this.element);t="ui-slider-range"+" ui-widget-header ui-corner-all"}else{this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""})}this.range.addClass(t+(e.range==="min"||e.range==="max"?" ui-slider-range-"+e.range:""))}else{if(this.range){this.range.remove()}this.range=null}},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();if(this.range){this.range.remove()}this.element.removeClass("ui-slider"+" ui-slider-horizontal"+" ui-slider-vertical"+" ui-widget"+" ui-widget-content"+" ui-corner-all");this._mouseDestroy()},_mouseCapture:function(e){var t,n,i,r,a,o,s,l,c=this,d=this.options;if(d.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();t={x:e.pageX,y:e.pageY};n=this._normValueFromMouse(t);i=this._valueMax()-this._valueMin()+1;this.handles.each(function(e){var t=Math.abs(n-c.values(e));if(i>t||i===t&&(e===c._lastChangedValue||c.values(e)===d.min)){i=t;r=$(this);a=e}});o=this._start(e,a);if(o===false){return false}this._mouseSliding=true;this._handleIndex=a;r.addClass("ui-state-active").focus();s=r.offset();l=!$(e.target).parents().addBack().is(".ui-slider-handle");this._clickOffset=l?{left:0,top:0}:{left:e.pageX-s.left-r.width()/2,top:e.pageY-s.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(e,a,n)}this._animateOff=true;return true},_mouseStart:function(){return true},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);this._slide(e,this._handleIndex,n);return false},_mouseStop:function(e){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(e,this._handleIndex);this._change(e,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,i,r,a;if(this.orientation==="horizontal"){t=this.elementSize.width;n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{t=this.elementSize.height;n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}i=n/t;if(i>1){i=1}if(i<0){i=0}if(this.orientation==="vertical"){i=1-i}r=this._valueMax()-this._valueMin();a=this._valueMin()+i*r;return this._trimAlignValue(a)},_start:function(e,t){var n={handle:this.handles[t],value:this.value()};if(this.options.values&&this.options.values.length){n.value=this.values(t);n.values=this.values()}return this._trigger("start",e,n)},_slide:function(e,t,n){var i,r,a;if(this.options.values&&this.options.values.length){i=this.values(t?0:1);if(this.options.values.length===2&&this.options.range===true&&(t===0&&n>i||t===1&&n<i)){n=i}if(n!==this.values(t)){r=this.values();r[t]=n;a=this._trigger("slide",e,{handle:this.handles[t],value:n,values:r});i=this.values(t?0:1);if(a!==false){this.values(t,n)}}}else{if(n!==this.value()){a=this._trigger("slide",e,{handle:this.handles[t],value:n});if(a!==false){this.value(n)}}}},_stop:function(e,t){var n={handle:this.handles[t],value:this.value()};if(this.options.values&&this.options.values.length){n.value=this.values(t);n.values=this.values()}this._trigger("stop",e,n)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var n={handle:this.handles[t],value:this.value()};if(this.options.values&&this.options.values.length){n.value=this.values(t);n.values=this.values()}this._lastChangedValue=t;this._trigger("change",e,n)}},value:function(e){if(arguments.length){this.options.value=this._trimAlignValue(e);this._refreshValue();this._change(null,0);return}return this._value()},values:function(e,t){var n,i,r;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(t);this._refreshValue();this._change(null,e);return}if(arguments.length){if($.isArray(arguments[0])){n=this.options.values;i=arguments[0];for(r=0;r<n.length;r+=1){n[r]=this._trimAlignValue(i[r]);this._change(null,r)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(e)}else{return this.value()}}}else{return this._values()}},_setOption:function(e,t){var n,i=0;if(e==="range"&&this.options.range===true){if(t==="min"){this.options.value=this._values(0);this.options.values=null}else if(t==="max"){this.options.value=this._values(this.options.values.length-1);this.options.values=null}}if($.isArray(this.options.values)){i=this.options.values.length}if(e==="disabled"){this.element.toggleClass("ui-state-disabled",!!t)}this._super(e,t);switch(e){case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();this.handles.css(t==="horizontal"?"bottom":"left","");break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(n=0;n<i;n+=1){this._change(null,n)}this._animateOff=false;break;case"step":case"min":case"max":this._animateOff=true;this._calculateNewMax();this._refreshValue();this._animateOff=false;break;case"range":this._animateOff=true;this._refresh();this._animateOff=false;break}},_value:function(){var e=this.options.value;e=this._trimAlignValue(e);return e},_values:function(e){var t,n,i;if(arguments.length){t=this.options.values[e];t=this._trimAlignValue(t);return t}else if(this.options.values&&this.options.values.length){n=this.options.values.slice();for(i=0;i<n.length;i+=1){n[i]=this._trimAlignValue(n[i])}return n}else{return[]}},_trimAlignValue:function(e){if(e<=this._valueMin()){return this._valueMin()}if(e>=this._valueMax()){return this._valueMax()}var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,i=e-n;if(Math.abs(n)*2>=t){i+=n>0?t:-t}return parseFloat(i.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step,i=Math.floor(+(e-t).toFixed(this._precision())/n)*n;e=i+t;this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);if(this.options.min!==null){e=Math.max(e,this._precisionOf(this.options.min))}return e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return n===-1?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var t,n,e,i,r,a=this.options.range,o=this.options,s=this,l=!this._animateOff?o.animate:false,c={};if(this.options.values&&this.options.values.length){this.handles.each(function(e){n=(s.values(e)-s._valueMin())/(s._valueMax()-s._valueMin())*100;c[s.orientation==="horizontal"?"left":"bottom"]=n+"%";$(this).stop(1,1)[l?"animate":"css"](c,o.animate);if(s.options.range===true){if(s.orientation==="horizontal"){if(e===0){s.range.stop(1,1)[l?"animate":"css"]({left:n+"%"},o.animate)}if(e===1){s.range[l?"animate":"css"]({width:n-t+"%"},{queue:false,duration:o.animate})}}else{if(e===0){s.range.stop(1,1)[l?"animate":"css"]({bottom:n+"%"},o.animate)}if(e===1){s.range[l?"animate":"css"]({height:n-t+"%"},{queue:false,duration:o.animate})}}}t=n})}else{e=this.value();i=this._valueMin();r=this._valueMax();n=r!==i?(e-i)/(r-i)*100:0;c[this.orientation==="horizontal"?"left":"bottom"]=n+"%";this.handle.stop(1,1)[l?"animate":"css"](c,o.animate);if(a==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[l?"animate":"css"]({width:n+"%"},o.animate)}if(a==="max"&&this.orientation==="horizontal"){this.range[l?"animate":"css"]({width:100-n+"%"},{queue:false,duration:o.animate})}if(a==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[l?"animate":"css"]({height:n+"%"},o.animate)}if(a==="max"&&this.orientation==="vertical"){this.range[l?"animate":"css"]({height:100-n+"%"},{queue:false,duration:o.animate})}}},_handleEvents:{keydown:function(e){var t,n,i,r,a=$(e.target).data("ui-slider-handle-index");switch(e.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:e.preventDefault();if(!this._keySliding){this._keySliding=true;$(e.target).addClass("ui-state-active");t=this._start(e,a);if(t===false){return}}break}r=this.options.step;if(this.options.values&&this.options.values.length){n=i=this.values(a)}else{n=i=this.value()}switch(e.keyCode){case $.ui.keyCode.HOME:i=this._valueMin();break;case $.ui.keyCode.END:i=this._valueMax();break;case $.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case $.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(n===this._valueMax()){return}i=this._trimAlignValue(n+r);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(n===this._valueMin()){return}i=this._trimAlignValue(n-r);break}this._slide(e,a,i)},keyup:function(e){var t=$(e.target).data("ui-slider-handle-index");if(this._keySliding){this._keySliding=false;this._stop(e,t);this._change(e,t);$(e.target).removeClass("ui-state-active")}}}});function I(t){return function(){var e=this.element.val();t.apply(this,arguments);this._refresh();if(e!==this.element.val()){this._trigger("change")}}}var N=$.widget("ui.spinner",{version:"1.11.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:true,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);if(this.value()!==""){this._value(this.element.val(),true)}this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var i={},r=this.element;$.each(["min","max","step"],function(e,t){var n=r.attr(t);if(n!==undefined&&n.length){i[t]=n}});return i},_events:{keydown:function(e){if(this._start(e)&&this._keydown(e)){e.preventDefault()}},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();if(this.previous!==this.element.val()){this._trigger("change",e)}},mousewheel:function(e,t){if(!t){return}if(!this.spinning&&!this._start(e)){return false}this._spin((t>0?1:-1)*this.options.step,e);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){if(this.spinning){this._stop(e)}},100);e.preventDefault()},"mousedown .ui-spinner-button":function(e){var t;t=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();function n(){var e=this.element[0]===this.document[0].activeElement;if(!e){this.element.focus();this.previous=t;this._delay(function(){this.previous=t})}}e.preventDefault();n.call(this);this.cancelBlur=true;this._delay(function(){delete this.cancelBlur;n.call(this)});if(this._start(e)===false){return}this._repeat(null,$(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(!$(e.currentTarget).hasClass("ui-state-active")){return}if(this._start(e)===false){return false}this._repeat(null,$(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton");this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");if(this.buttons.height()>Math.ceil(e.height()*.5)&&e.height()>0){e.height(e.height())}if(this.options.disabled){this.disable()}},_keydown:function(e){var t=this.options,n=$.ui.keyCode;switch(e.keyCode){case n.UP:this._repeat(null,1,e);return true;case n.DOWN:this._repeat(null,-1,e);return true;case n.PAGE_UP:this._repeat(null,t.page,e);return true;case n.PAGE_DOWN:this._repeat(null,-t.page,e);return true}return false},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return""+"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'>"+"<span class='ui-icon "+this.options.icons.up+"'>&#9650;</span>"+"</a>"+"<a class='ui-spinner-button ui-spinner-down ui-corner-br'>"+"<span class='ui-icon "+this.options.icons.down+"'>&#9660;</span>"+"</a>"},_start:function(e){if(!this.spinning&&this._trigger("start",e)===false){return false}if(!this.counter){this.counter=1}this.spinning=true;return true},_repeat:function(e,t,n){e=e||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,n)},e);this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;if(!this.counter){this.counter=1}n=this._adjustValue(n+e*this._increment(this.counter));if(!this.spinning||this._trigger("spin",t,{value:n})!==false){this._value(n);this.counter++}},_increment:function(e){var t=this.options.incremental;if(t){return $.isFunction(t)?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1)}return 1},_precision:function(){var e=this._precisionOf(this.options.step);if(this.options.min!==null){e=Math.max(e,this._precisionOf(this.options.min))}return e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return n===-1?0:t.length-n-1},_adjustValue:function(e){var t,n,i=this.options;t=i.min!==null?i.min:0;n=e-t;n=Math.round(n/i.step)*i.step;e=t+n;e=parseFloat(e.toFixed(this._precision()));if(i.max!==null&&e>i.max){return i.max}if(i.min!==null&&e<i.min){return i.min}return e},_stop:function(e){if(!this.spinning){return}clearTimeout(this.timer);clearTimeout(this.mousewheelTimer);this.counter=0;this.spinning=false;this._trigger("stop",e)},_setOption:function(e,t){if(e==="culture"||e==="numberFormat"){var n=this._parse(this.element.val());this.options[e]=t;this.element.val(this._format(n));return}if(e==="max"||e==="min"||e==="step"){if(typeof t==="string"){t=this._parse(t)}}if(e==="icons"){this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up);this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)}this._super(e,t);if(e==="disabled"){this.widget().toggleClass("ui-state-disabled",!!t);this.element.prop("disabled",!!t);this.buttons.button(t?"disable":"enable")}},_setOptions:I(function(e){this._super(e)}),_parse:function(e){if(typeof e==="string"&&e!==""){e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e}return e===""||isNaN(e)?null:e},_format:function(e){if(e===""){return""}return window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();if(e===null){return false}return e===this._adjustValue(e)},_value:function(e,t){var n;if(e!==""){n=this._parse(e);if(n!==null){if(!t){n=this._adjustValue(n)}e=this._format(n)}}this.element.val(e);this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",false).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:I(function(e){this._stepUp(e)}),_stepUp:function(e){if(this._start()){this._spin((e||1)*this.options.step);this._stop()}},stepDown:I(function(e){this._stepDown(e)}),_stepDown:function(e){if(this._start()){this._spin((e||1)*-this.options.step);this._stop()}},pageUp:I(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:I(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){if(!arguments.length){return this._parse(this.element.val())}I(this._value).call(this,e)},widget:function(){return this.uiSpinner}});var R=$.widget("ui.tabs",{version:"1.11.4",delay:300,options:{active:null,collapsible:false,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var i=/#.*$/;return function(e){var t,n;e=e.cloneNode(false);t=e.href.replace(i,"");n=location.href.replace(i,"");try{t=decodeURIComponent(t)}catch(e){}try{n=decodeURIComponent(n)}catch(e){}return e.hash.length>1&&t===n}}(),_create:function(){var t=this,e=this.options;this.running=false;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",e.collapsible);this._processTabs();e.active=this._initialActive();if($.isArray(e.disabled)){e.disabled=$.unique(e.disabled.concat($.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()}if(this.options.active!==false&&this.anchors.length){this.active=this._findActive(e.active)}else{this.active=$()}this._refresh();if(this.active.length){this.load(e.active)}},_initialActive:function(){var n=this.options.active,e=this.options.collapsible,i=location.hash.substring(1);if(n===null){if(i){this.tabs.each(function(e,t){if($(t).attr("aria-controls")===i){n=e;return false}})}if(n===null){n=this.tabs.index(this.tabs.filter(".ui-tabs-active"))}if(n===null||n===-1){n=this.tabs.length?0:false}}if(n!==false){n=this.tabs.index(this.tabs.eq(n));if(n===-1){n=e?false:0}}if(!e&&n===false&&this.anchors.length){n=0}return n},_getCreateEventData:function(){return{tab:this.active,panel:!this.active.length?$():this._getPanelForTab(this.active)}},_tabKeydown:function(e){var t=$(this.document[0].activeElement).closest("li"),n=this.tabs.index(t),i=true;if(this._handlePageNav(e)){return}switch(e.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:n++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:i=false;n--;break;case $.ui.keyCode.END:n=this.anchors.length-1;break;case $.ui.keyCode.HOME:n=0;break;case $.ui.keyCode.SPACE:e.preventDefault();clearTimeout(this.activating);this._activate(n);return;case $.ui.keyCode.ENTER:e.preventDefault();clearTimeout(this.activating);this._activate(n===this.options.active?false:n);return;default:return}e.preventDefault();clearTimeout(this.activating);n=this._focusNextTab(n,i);if(!e.ctrlKey&&!e.metaKey){t.attr("aria-selected","false");this.tabs.eq(n).attr("aria-selected","true");this.activating=this._delay(function(){this.option("active",n)},this.delay)}},_panelKeydown:function(e){if(this._handlePageNav(e)){return}if(e.ctrlKey&&e.keyCode===$.ui.keyCode.UP){e.preventDefault();this.active.focus()}},_handlePageNav:function(e){if(e.altKey&&e.keyCode===$.ui.keyCode.PAGE_UP){this._activate(this._focusNextTab(this.options.active-1,false));return true}if(e.altKey&&e.keyCode===$.ui.keyCode.PAGE_DOWN){this._activate(this._focusNextTab(this.options.active+1,true));return true}},_findNextTab:function(e,t){var n=this.tabs.length-1;function i(){if(e>n){e=0}if(e<0){e=n}return e}while($.inArray(i(),this.options.disabled)!==-1){e=t?e+1:e-1}return e},_focusNextTab:function(e,t){e=this._findNextTab(e,t);this.tabs.eq(e).focus();return e},_setOption:function(e,t){if(e==="active"){this._activate(t);return}if(e==="disabled"){this._setupDisabled(t);return}this._super(e,t);if(e==="collapsible"){this.element.toggleClass("ui-tabs-collapsible",t);if(!t&&this.options.active===false){this._activate(0)}}if(e==="event"){this._setupEvents(t)}if(e==="heightStyle"){this._setupHeightStyle(t)}},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,t=this.tablist.children(":has(a[href])");e.disabled=$.map(t.filter(".ui-state-disabled"),function(e){return t.index(e)});this._processTabs();if(e.active===false||!this.anchors.length){e.active=false;this.active=$()}else if(this.active.length&&!$.contains(this.tablist[0],this.active[0])){if(this.tabs.length===e.disabled.length){e.active=false;this.active=$()}else{this._activate(this._findNextTab(Math.max(0,e.active-1),false))}}else{e.active=this.tabs.index(this.active)}this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});if(!this.active.length){this.tabs.eq(0).attr("tabIndex",0)}else{this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0});this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})}},_processTabs:function(){var l=this,e=this.tabs,t=this.anchors,n=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(e){if($(this).is(".ui-state-disabled")){e.preventDefault()}}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){if($(this).closest("li").is(".ui-state-disabled")){this.blur()}});this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return $("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=$();this.anchors.each(function(e,t){var n,i,r,a=$(t).uniqueId().attr("id"),o=$(t).closest("li"),s=o.attr("aria-controls");if(l._isLocal(t)){n=t.hash;r=n.substring(1);i=l.element.find(l._sanitizeSelector(n))}else{r=o.attr("aria-controls")||$({}).uniqueId()[0].id;n="#"+r;i=l.element.find(n);if(!i.length){i=l._createPanel(r);i.insertAfter(l.panels[e-1]||l.tablist)}i.attr("aria-live","polite")}if(i.length){l.panels=l.panels.add(i)}if(s){o.data("ui-tabs-aria-controls",s)}o.attr({"aria-controls":r,"aria-labelledby":a});i.attr("aria-labelledby",a)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel");if(e){this._off(e.not(this.tabs));this._off(t.not(this.anchors));this._off(n.not(this.panels))}},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return $("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",true)},_setupDisabled:function(e){if($.isArray(e)){if(!e.length){e=false}else if(e.length===this.anchors.length){e=true}}for(var t=0,n;n=this.tabs[t];t++){if(e===true||$.inArray(t,e)!==-1){$(n).addClass("ui-state-disabled").attr("aria-disabled","true")}else{$(n).removeClass("ui-state-disabled").removeAttr("aria-disabled")}}this.options.disabled=e},_setupEvents:function(e){var n={};if(e){$.each(e.split(" "),function(e,t){n[t]="_eventHandler"})}this._off(this.anchors.add(this.tabs).add(this.panels));this._on(true,this.anchors,{click:function(e){e.preventDefault()}});this._on(this.anchors,n);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,t=this.element.parent();if(e==="fill"){n=t.height();n-=this.element.outerHeight()-this.element.height();this.element.siblings(":visible").each(function(){var e=$(this),t=e.css("position");if(t==="absolute"||t==="fixed"){return}n-=e.outerHeight(true)});this.element.children().not(this.panels).each(function(){n-=$(this).outerHeight(true)});this.panels.each(function(){$(this).height(Math.max(0,n-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")}else if(e==="auto"){n=0;this.panels.each(function(){n=Math.max(n,$(this).height("").height())}).height(n)}},_eventHandler:function(e){var t=this.options,n=this.active,i=$(e.currentTarget),r=i.closest("li"),a=r[0]===n[0],o=a&&t.collapsible,s=o?$():this._getPanelForTab(r),l=!n.length?$():this._getPanelForTab(n),c={oldTab:n,oldPanel:l,newTab:o?$():r,newPanel:s};e.preventDefault();if(r.hasClass("ui-state-disabled")||r.hasClass("ui-tabs-loading")||this.running||a&&!t.collapsible||this._trigger("beforeActivate",e,c)===false){return}t.active=o?false:this.tabs.index(r);this.active=a?$():r;if(this.xhr){this.xhr.abort()}if(!l.length&&!s.length){$.error("jQuery UI Tabs: Mismatching fragment identifier.")}if(s.length){this.load(this.tabs.index(r),e)}this._toggle(e,c)},_toggle:function(e,t){var n=this,i=t.newPanel,r=t.oldPanel;this.running=true;function a(){n.running=false;n._trigger("activate",e,t)}function o(){t.newTab.closest("li").addClass("ui-tabs-active ui-state-active");if(i.length&&n.options.show){n._show(i,n.options.show,a)}else{i.show();a()}}if(r.length&&this.options.hide){this._hide(r,this.options.hide,function(){t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");o()})}else{t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");r.hide();o()}r.attr("aria-hidden","true");t.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});if(i.length&&r.length){t.oldTab.attr("tabIndex",-1)}else if(i.length){this.tabs.filter(function(){return $(this).attr("tabIndex")===0}).attr("tabIndex",-1)}i.attr("aria-hidden","false");t.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var t,n=this._findActive(e);if(n[0]===this.active[0]){return}if(!n.length){n=this.active}t=n.find(".ui-tabs-anchor")[0];this._eventHandler({target:t,currentTarget:t,preventDefault:$.noop})},_findActive:function(e){return e===false?$():this.tabs.eq(e)},_getIndex:function(e){if(typeof e==="string"){e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))}return e},_destroy:function(){if(this.xhr){this.xhr.abort()}this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId();this.tablist.unbind(this.eventNamespace);this.tabs.add(this.panels).each(function(){if($.data(this,"ui-tabs-destroy")){$(this).remove()}else{$(this).removeClass("ui-state-default ui-state-active ui-state-disabled "+"ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}});this.tabs.each(function(){var e=$(this),t=e.data("ui-tabs-aria-controls");if(t){e.attr("aria-controls",t).removeData("ui-tabs-aria-controls")}else{e.removeAttr("aria-controls")}});this.panels.show();if(this.options.heightStyle!=="content"){this.panels.css("height","")}},enable:function(n){var e=this.options.disabled;if(e===false){return}if(n===undefined){e=false}else{n=this._getIndex(n);if($.isArray(e)){e=$.map(e,function(e){return e!==n?e:null})}else{e=$.map(this.tabs,function(e,t){return t!==n?t:null})}}this._setupDisabled(e)},disable:function(e){var t=this.options.disabled;if(t===true){return}if(e===undefined){t=true}else{e=this._getIndex(e);if($.inArray(e,t)!==-1){return}if($.isArray(t)){t=$.merge([e],t).sort()}else{t=[e]}}this._setupDisabled(t)},load:function(e,i){e=this._getIndex(e);var r=this,n=this.tabs.eq(e),t=n.find(".ui-tabs-anchor"),a=this._getPanelForTab(n),o={tab:n,panel:a},s=function(e,t){if(t==="abort"){r.panels.stop(false,true)}n.removeClass("ui-tabs-loading");a.removeAttr("aria-busy");if(e===r.xhr){delete r.xhr}};if(this._isLocal(t[0])){return}this.xhr=$.ajax(this._ajaxSettings(t,i,o));if(this.xhr&&this.xhr.statusText!=="canceled"){n.addClass("ui-tabs-loading");a.attr("aria-busy","true");this.xhr.done(function(e,t,n){setTimeout(function(){a.html(e);r._trigger("load",i,o);s(n,t)},1)}).fail(function(e,t){setTimeout(function(){s(e,t)},1)})}},_ajaxSettings:function(e,n,i){var r=this;return{url:e.attr("href"),beforeSend:function(e,t){return r._trigger("beforeLoad",n,$.extend({jqXHR:e,ajaxSettings:t},i))}}},_getPanelForTab:function(e){var t=$(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}});var F=$.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var e=$(this).attr("title")||"";return $("<a>").text(e).html()},hide:true,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:true,tooltipClass:null,track:false,close:null,open:null},_addDescribedBy:function(e,t){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(t);e.data("ui-tooltip-id",t).attr("aria-describedby",$.trim(n.join(" ")))},_removeDescribedBy:function(e){var t=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),i=$.inArray(t,n);if(i!==-1){n.splice(i,1)}e.removeData("ui-tooltip-id");n=$.trim(n.join(" "));if(n){e.attr("aria-describedby",n)}else{e.removeAttr("aria-describedby")}},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};if(this.options.disabled){this._disable()}this.liveRegion=$("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(e,t){var n=this;if(e==="disabled"){this[t?"_disable":"_enable"]();this.options[e]=t;return}this._super(e,t);if(e==="content"){$.each(this.tooltips,function(e,t){n._updateContent(t.element)})}},_disable:function(){var i=this;$.each(this.tooltips,function(e,t){var n=$.Event("blur");n.target=n.currentTarget=t.element[0];i.close(n,true)});this.element.find(this.options.items).addBack().each(function(){var e=$(this);if(e.is("[title]")){e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")}})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=$(this);if(e.data("ui-tooltip-title")){e.attr("title",e.data("ui-tooltip-title"))}})},open:function(e){var n=this,t=$(e?e.target:this.element).closest(this.options.items);if(!t.length||t.data("ui-tooltip-id")){return}if(t.attr("title")){t.data("ui-tooltip-title",t.attr("title"))}t.data("ui-tooltip-open",true);if(e&&e.type==="mouseover"){t.parents().each(function(){var e=$(this),t;if(e.data("ui-tooltip-open")){t=$.Event("blur");t.target=t.currentTarget=this;n.close(t,true)}if(e.attr("title")){e.uniqueId();n.parents[this.id]={element:this,title:e.attr("title")};e.attr("title","")}})}this._registerCloseHandlers(e,t);this._updateContent(t,e)},_updateContent:function(t,n){var e,i=this.options.content,r=this,a=n?n.type:null;if(typeof i==="string"){return this._open(n,t,i)}e=i.call(t[0],function(e){r._delay(function(){if(!t.data("ui-tooltip-open")){return}if(n){n.type=a}this._open(n,t,e)})});if(e){this._open(n,t,e)}},_open:function(e,t,n){var i,r,a,o,s=$.extend({},this.options.position);if(!n){return}i=this._find(t);if(i){i.tooltip.find(".ui-tooltip-content").html(n);return}if(t.is("[title]")){if(e&&e.type==="mouseover"){t.attr("title","")}else{t.removeAttr("title")}}i=this._tooltip(t);r=i.tooltip;this._addDescribedBy(t,r.attr("id"));r.find(".ui-tooltip-content").html(n);this.liveRegion.children().hide();if(n.clone){o=n.clone();o.removeAttr("id").find("[id]").removeAttr("id")}else{o=n}$("<div>").html(o).appendTo(this.liveRegion);function l(e){s.of=e;if(r.is(":hidden")){return}r.position(s)}if(this.options.track&&e&&/^mouse/.test(e.type)){this._on(this.document,{mousemove:l});l(e)}else{r.position($.extend({of:t},this.options.position))}r.hide();this._show(r,this.options.show);if(this.options.show&&this.options.show.delay){a=this.delayedShow=setInterval(function(){if(r.is(":visible")){l(s.of);clearInterval(a)}},$.fx.interval)}this._trigger("open",e,{tooltip:r})},_registerCloseHandlers:function(e,n){var t={keyup:function(e){if(e.keyCode===$.ui.keyCode.ESCAPE){var t=$.Event(e);t.currentTarget=n[0];this.close(t,true)}}};if(n[0]!==this.element[0]){t.remove=function(){this._removeTooltip(this._find(n).tooltip)}}if(!e||e.type==="mouseover"){t.mouseleave="close"}if(!e||e.type==="focusin"){t.focusout="close"}this._on(true,n,t)},close:function(e){var t,n=this,i=$(e?e.currentTarget:this.element),r=this._find(i);if(!r){i.removeData("ui-tooltip-open");return}t=r.tooltip;if(r.closing){return}clearInterval(this.delayedShow);if(i.data("ui-tooltip-title")&&!i.attr("title")){i.attr("title",i.data("ui-tooltip-title"))}this._removeDescribedBy(i);r.hiding=true;t.stop(true);this._hide(t,this.options.hide,function(){n._removeTooltip($(this))});i.removeData("ui-tooltip-open");this._off(i,"mouseleave focusout keyup");if(i[0]!==this.element[0]){this._off(i,"remove")}this._off(this.document,"mousemove");if(e&&e.type==="mouseleave"){$.each(this.parents,function(e,t){$(t.element).attr("title",t.title);delete n.parents[e]})}r.closing=true;this._trigger("close",e,{tooltip:t});if(!r.hiding){r.closing=false}},_tooltip:function(e){var t=$("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),n=t.uniqueId().attr("id");$("<div>").addClass("ui-tooltip-content").appendTo(t);t.appendTo(this.document[0].body);return this.tooltips[n]={element:e,tooltip:t}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove();delete this.tooltips[e.attr("id")]},_destroy:function(){var r=this;$.each(this.tooltips,function(e,t){var n=$.Event("blur"),i=t.element;n.target=n.currentTarget=i[0];r.close(n,true);$("#"+e).remove();if(i.data("ui-tooltip-title")){if(!i.attr("title")){i.attr("title",i.data("ui-tooltip-title"))}i.removeData("ui-tooltip-title")}});this.liveRegion.remove()}});var L="ui-effects-",j=$;$.effects={effect:{}};(function(d,u){var e="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",p=/^([\-+])=\s*(\d+\.?\d*)/,t=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1]*2.55,e[2]*2.55,e[3]*2.55,e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],f=d.Color=function(e,t,n,i){return new d.Color.fn.parse(e,t,n,i)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},m={byte:{floor:true,max:255},percent:{max:1},degrees:{mod:360,floor:true}},o=f.support={},n=d("<p>")[0],c,v=d.each;n.style.cssText="background-color:rgba(1,1,1,.5)";o.rgba=n.style.backgroundColor.indexOf("rgba")>-1;v(h,function(e,t){t.cache="_"+e;t.props.alpha={idx:3,type:"percent",def:1}});function g(e,t,n){var i=m[t.type]||{};if(e==null){return n||!t.def?null:t.def}e=i.floor?~~e:parseFloat(e);if(isNaN(e)){return t.def}if(i.mod){return(e+i.mod)%i.mod}return 0>e?0:i.max<e?i.max:e}function s(o){var s=f(),l=s._rgba=[];o=o.toLowerCase();v(t,function(e,t){var n,i=t.re.exec(o),r=i&&t.parse(i),a=t.space||"rgba";if(r){n=s[a](r);s[h[a].cache]=n[h[a].cache];l=s._rgba=n._rgba;return false}});if(l.length){if(l.join()==="0,0,0,0"){d.extend(l,c.transparent)}return s}return c[o]}f.fn=d.extend(f.prototype,{parse:function(r,e,t,n){if(r===u){this._rgba=[null,null,null,null];return this}if(r.jquery||r.nodeType){r=d(r).css(e);e=u}var a=this,i=d.type(r),o=this._rgba=[];if(e!==u){r=[r,e,t,n];i="array"}if(i==="string"){return this.parse(s(r)||c._default)}if(i==="array"){v(h.rgba.props,function(e,t){o[t.idx]=g(r[t.idx],t)});return this}if(i==="object"){if(r instanceof f){v(h,function(e,t){if(r[t.cache]){a[t.cache]=r[t.cache].slice()}})}else{v(h,function(e,n){var i=n.cache;v(n.props,function(e,t){if(!a[i]&&n.to){if(e==="alpha"||r[e]==null){return}a[i]=n.to(a._rgba)}a[i][t.idx]=g(r[e],t,true)});if(a[i]&&d.inArray(null,a[i].slice(0,3))<0){a[i][3]=1;if(n.from){a._rgba=n.from(a[i])}}})}return this}},is:function(e){var r=f(e),a=true,o=this;v(h,function(e,t){var n,i=r[t.cache];if(i){n=o[t.cache]||t.to&&t.to(o._rgba)||[];v(t.props,function(e,t){if(i[t.idx]!=null){a=i[t.idx]===n[t.idx];return a}})}return a});return a},_space:function(){var n=[],i=this;v(h,function(e,t){if(i[t.cache]){n.push(e)}});return n.pop()},transition:function(e,o){var s=f(e),t=s._space(),n=h[t],i=this.alpha()===0?f("transparent"):this,l=i[n.cache]||n.to(i._rgba),c=l.slice();s=s[n.cache];v(n.props,function(e,t){var n=t.idx,i=l[n],r=s[n],a=m[t.type]||{};if(r===null){return}if(i===null){c[n]=r}else{if(a.mod){if(r-i>a.mod/2){i+=a.mod}else if(i-r>a.mod/2){i-=a.mod}}c[n]=g((r-i)*o+i,t)}});return this[t](c)},blend:function(e){if(this._rgba[3]===1){return this}var t=this._rgba.slice(),n=t.pop(),i=f(e)._rgba;return f(d.map(t,function(e,t){return(1-n)*i[t]+n*e}))},toRgbaString:function(){var e="rgba(",t=d.map(this._rgba,function(e,t){return e==null?t>2?1:0:e});if(t[3]===1){t.pop();e="rgb("}return e+t.join()+")"},toHslaString:function(){var e="hsla(",t=d.map(this.hsla(),function(e,t){if(e==null){e=t>2?1:0}if(t&&t<3){e=Math.round(e*100)+"%"}return e});if(t[3]===1){t.pop();e="hsl("}return e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),n=t.pop();if(e){t.push(~~(n*255))}return"#"+d.map(t,function(e){e=(e||0).toString(16);return e.length===1?"0"+e:e}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});f.fn.parse.prototype=f.fn;function l(e,t,n){n=(n+1)%1;if(n*6<1){return e+(t-e)*n*6}if(n*2<1){return t}if(n*3<2){return e+(t-e)*(2/3-n)*6}return e}h.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null){return[null,null,null,e[3]]}var t=e[0]/255,n=e[1]/255,i=e[2]/255,r=e[3],a=Math.max(t,n,i),o=Math.min(t,n,i),s=a-o,l=a+o,c=l*.5,d,u;if(o===a){d=0}else if(t===a){d=60*(n-i)/s+360}else if(n===a){d=60*(i-t)/s+120}else{d=60*(t-n)/s+240}if(s===0){u=0}else if(c<=.5){u=s/l}else{u=s/(2-l)}return[Math.round(d)%360,u,c,r==null?1:r]};h.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null){return[null,null,null,e[3]]}var t=e[0]/360,n=e[1],i=e[2],r=e[3],a=i<=.5?i*(1+n):i+n-i*n,o=2*i-a;return[Math.round(l(o,a,t+1/3)*255),Math.round(l(o,a,t)*255),Math.round(l(o,a,t-1/3)*255),r]};v(h,function(l,e){var n=e.props,o=e.cache,s=e.to,c=e.from;f.fn[l]=function(e){if(s&&!this[o]){this[o]=s(this._rgba)}if(e===u){return this[o].slice()}var t,i=d.type(e),r=i==="array"||i==="object"?e:arguments,a=this[o].slice();v(n,function(e,t){var n=r[i==="object"?e:t.idx];if(n==null){n=a[t.idx]}a[t.idx]=g(n,t)});if(c){t=f(c(a));t[o]=a;return t}else{return f(a)}};v(n,function(o,s){if(f.fn[o]){return}f.fn[o]=function(e){var t=d.type(e),n=o==="alpha"?this._hsla?"hsla":"rgba":l,i=this[n](),r=i[s.idx],a;if(t==="undefined"){return r}if(t==="function"){e=e.call(this,r);t=d.type(e)}if(e==null&&s.empty){return this}if(t==="string"){a=p.exec(e);if(a){e=r+parseFloat(a[2])*(a[1]==="+"?1:-1)}}i[s.idx]=e;return this[n](i)}})});f.hook=function(e){var t=e.split(" ");v(t,function(e,a){d.cssHooks[a]={set:function(e,t){var n,i,r="";if(t!=="transparent"&&(d.type(t)!=="string"||(n=s(t)))){t=f(n||t);if(!o.rgba&&t._rgba[3]!==1){i=a==="backgroundColor"?e.parentNode:e;while((r===""||r==="transparent")&&i&&i.style){try{r=d.css(i,"backgroundColor");i=i.parentNode}catch(e){}}t=t.blend(r&&r!=="transparent"?r:"_default")}t=t.toRgbaString()}try{e.style[a]=t}catch(e){}}};d.fx.step[a]=function(e){if(!e.colorInit){e.start=f(e.elem,a);e.end=f(e.end);e.colorInit=true}d.cssHooks[a].set(e.elem,e.start.transition(e.end,e.pos))}})};f.hook(e);d.cssHooks.borderColor={expand:function(n){var i={};v(["Top","Right","Bottom","Left"],function(e,t){i["border"+t+"Color"]=n});return i}};c=d.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})(j);(function(){var o=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,t){$.fx.step[t]=function(e){if(e.end!=="none"&&!e.setAttr||e.pos===1&&!e.setAttr){j.style(e.elem,t,e.end);e.setAttr=true}}});function s(e){var t,n,i=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,r={};if(i&&i.length&&i[0]&&i[i[0]]){n=i.length;while(n--){t=i[n];if(typeof i[t]==="string"){r[$.camelCase(t)]=i[t]}}}else{for(t in i){if(typeof i[t]==="string"){r[t]=i[t]}}}return r}function l(e,t){var n={},i,r;for(i in t){r=t[i];if(e[i]!==r){if(!a[i]){if($.fx.step[i]||!isNaN(parseFloat(r))){n[i]=r}}}}return n}if(!$.fn.addBack){$.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}$.effects.animateClass=function(r,e,t,n){var a=$.speed(e,t,n);return this.queue(function(){var n=$(this),e=n.attr("class")||"",t,i=a.children?n.find("*").addBack():n;i=i.map(function(){var e=$(this);return{el:e,start:s(this)}});t=function(){$.each(o,function(e,t){if(r[t]){n[t+"Class"](r[t])}})};t();i=i.map(function(){this.end=s(this.el[0]);this.diff=l(this.start,this.end);return this});n.attr("class",e);i=i.map(function(){var e=this,t=$.Deferred(),n=$.extend({},a,{queue:false,complete:function(){t.resolve(e)}});this.el.animate(this.diff,n);return t.promise()});$.when.apply($,i.get()).done(function(){t();$.each(arguments,function(){var t=this.el;$.each(this.diff,function(e){t.css(e,"")})});a.complete.call(n[0])})})};$.fn.extend({addClass:function(r){return function(e,t,n,i){return t?$.effects.animateClass.call(this,{add:e},t,n,i):r.apply(this,arguments)}}($.fn.addClass),removeClass:function(r){return function(e,t,n,i){return arguments.length>1?$.effects.animateClass.call(this,{remove:e},t,n,i):r.apply(this,arguments)}}($.fn.removeClass),toggleClass:function(a){return function(e,t,n,i,r){if(typeof t==="boolean"||t===undefined){if(!n){return a.apply(this,arguments)}else{return $.effects.animateClass.call(this,t?{add:e}:{remove:e},n,i,r)}}else{return $.effects.animateClass.call(this,{toggle:e},t,n,i)}}}($.fn.toggleClass),switchClass:function(e,t,n,i,r){return $.effects.animateClass.call(this,{add:t,remove:e},n,i,r)}})})();(function(){$.extend($.effects,{version:"1.11.4",save:function(e,t){for(var n=0;n<t.length;n++){if(t[n]!==null){e.data(L+t[n],e[0].style[t[n]])}}},restore:function(e,t){var n,i;for(i=0;i<t.length;i++){if(t[i]!==null){n=e.data(L+t[i]);if(n===undefined){n=""}e.css(t[i],n)}}},setMode:function(e,t){if(t==="toggle"){t=e.is(":hidden")?"show":"hide"}return t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper")){return n.parent()}var i={width:n.outerWidth(true),height:n.outerHeight(true),float:n.css("float")},e=$("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),t={width:n.width(),height:n.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}n.wrap(e);if(n[0]===r||$.contains(n[0],r)){$(r).focus()}e=n.parent();if(n.css("position")==="static"){e.css({position:"relative"});n.css({position:"relative"})}else{$.extend(i,{position:n.css("position"),zIndex:n.css("z-index")});$.each(["top","left","bottom","right"],function(e,t){i[t]=n.css(t);if(isNaN(parseInt(i[t],10))){i[t]="auto"}});n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}n.css(t);return e.css(i).show()},removeWrapper:function(e){var t=document.activeElement;if(e.parent().is(".ui-effects-wrapper")){e.parent().replaceWith(e);if(e[0]===t||$.contains(e[0],t)){$(t).focus()}}return e},setTransition:function(i,e,r,a){a=a||{};$.each(e,function(e,t){var n=i.cssUnit(t);if(n[0]>0){a[t]=n[0]*r+n[1]}});return a}});function i(e,t,n,i){if($.isPlainObject(e)){t=e;e=e.effect}e={effect:e};if(t==null){t={}}if($.isFunction(t)){i=t;n=null;t={}}if(typeof t==="number"||$.fx.speeds[t]){i=n;n=t;t={}}if($.isFunction(n)){i=n;n=null}if(t){$.extend(e,t)}n=n||t.duration;e.duration=$.fx.off?0:typeof n==="number"?n:n in $.fx.speeds?$.fx.speeds[n]:$.fx.speeds._default;e.complete=i||t.complete;return e}function r(e){if(!e||typeof e==="number"||$.fx.speeds[e]){return true}if(typeof e==="string"&&!$.effects.effect[e]){return true}if($.isFunction(e)){return true}if(typeof e==="object"&&!e.effect){return true}return false}$.fn.extend({effect:function(){var a=i.apply(this,arguments),e=a.mode,t=a.queue,o=$.effects.effect[a.effect];if($.fx.off||!o){if(e){return this[e](a.duration,a.complete)}else{return this.each(function(){if(a.complete){a.complete.call(this)}})}}function n(e){var t=$(this),n=a.complete,i=a.mode;function r(){if($.isFunction(n)){n.call(t[0])}if($.isFunction(e)){e()}}if(t.is(":hidden")?i==="hide":i==="show"){t[i]();r()}else{o.call(t[0],a,r)}}return t===false?this.each(n):this.queue(t||"fx",n)},show:function(n){return function(e){if(r(e)){return n.apply(this,arguments)}else{var t=i.apply(this,arguments);t.mode="show";return this.effect.call(this,t)}}}($.fn.show),hide:function(n){return function(e){if(r(e)){return n.apply(this,arguments)}else{var t=i.apply(this,arguments);t.mode="hide";return this.effect.call(this,t)}}}($.fn.hide),toggle:function(n){return function(e){if(r(e)||typeof e==="boolean"){return n.apply(this,arguments)}else{var t=i.apply(this,arguments);t.mode="toggle";return this.effect.call(this,t)}}}($.fn.toggle),cssUnit:function(e){var n=this.css(e),i=[];$.each(["em","px","%","pt"],function(e,t){if(n.indexOf(t)>0){i=[parseFloat(n),t]}});return i}})})();(function(){var n={};$.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){n[e]=function(e){return Math.pow(e,t+2)}});$.extend(n,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return e===0||e===1?e:-Math.pow(2,8*(e-1))*Math.sin(((e-1)*80-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){var t,n=4;while(e<((t=Math.pow(2,--n))-1)/11){}return 1/Math.pow(4,3-n)-7.5625*Math.pow((t*3-2)/22-e,2)}});$.each(n,function(e,t){$.easing["easeIn"+e]=t;$.easing["easeOut"+e]=function(e){return 1-t(1-e)};$.easing["easeInOut"+e]=function(e){return e<.5?t(e*2)/2:1-t(e*-2+2)/2}})})();var H=$.effects;var q=$.effects.effect.blind=function(e,t){var n=$(this),i=/up|down|vertical/,r=/up|left|vertical|horizontal/,a=["position","top","bottom","left","right","height","width"],o=$.effects.setMode(n,e.mode||"hide"),s=e.direction||"up",l=i.test(s),c=l?"height":"width",d=l?"top":"left",u=r.test(s),p={},f=o==="show",h,m,v;if(n.parent().is(".ui-effects-wrapper")){$.effects.save(n.parent(),a)}else{$.effects.save(n,a)}n.show();h=$.effects.createWrapper(n).css({overflow:"hidden"});m=h[c]();v=parseFloat(h.css(d))||0;p[c]=f?m:0;if(!u){n.css(l?"bottom":"right",0).css(l?"top":"left","auto").css({position:"absolute"});p[d]=f?v:m+v}if(f){h.css(c,0);if(!u){h.css(d,v+m)}}h.animate(p,{duration:e.duration,easing:e.easing,queue:false,complete:function(){if(o==="hide"){n.hide()}$.effects.restore(n,a);$.effects.removeWrapper(n);t()}})};var B=$.effects.effect.bounce=function(e,t){var n=$(this),i=["position","top","bottom","left","right","height","width"],r=$.effects.setMode(n,e.mode||"effect"),a=r==="hide",o=r==="show",s=e.direction||"up",l=e.distance,c=e.times||5,d=c*2+(o||a?1:0),u=e.duration/d,p=e.easing,f=s==="up"||s==="down"?"top":"left",h=s==="up"||s==="left",m,v,g,_=n.queue(),y=_.length;if(o||a){i.push("opacity")}$.effects.save(n,i);n.show();$.effects.createWrapper(n);if(!l){l=n[f==="top"?"outerHeight":"outerWidth"]()/3}if(o){g={opacity:1};g[f]=0;n.css("opacity",0).css(f,h?-l*2:l*2).animate(g,u,p)}if(a){l=l/Math.pow(2,c-1)}g={};g[f]=0;for(m=0;m<c;m++){v={};v[f]=(h?"-=":"+=")+l;n.animate(v,u,p).animate(g,u,p);l=a?l*2:l/2}if(a){v={opacity:0};v[f]=(h?"-=":"+=")+l;n.animate(v,u,p)}n.queue(function(){if(a){n.hide()}$.effects.restore(n,i);$.effects.removeWrapper(n);t()});if(y>1){_.splice.apply(_,[1,0].concat(_.splice(y,d+1)))}n.dequeue()};var z=$.effects.effect.clip=function(e,t){var n=$(this),i=["position","top","bottom","left","right","height","width"],r=$.effects.setMode(n,e.mode||"hide"),a=r==="show",o=e.direction||"vertical",s=o==="vertical",l=s?"height":"width",c=s?"top":"left",d={},u,p,f;$.effects.save(n,i);n.show();u=$.effects.createWrapper(n).css({overflow:"hidden"});p=n[0].tagName==="IMG"?u:n;f=p[l]();if(a){p.css(l,0);p.css(c,f/2)}d[l]=a?f:0;d[c]=a?0:f/2;p.animate(d,{queue:false,duration:e.duration,easing:e.easing,complete:function(){if(!a){n.hide()}$.effects.restore(n,i);$.effects.removeWrapper(n);t()}})};var Y=$.effects.effect.drop=function(e,t){var n=$(this),i=["position","top","bottom","left","right","opacity","height","width"],r=$.effects.setMode(n,e.mode||"hide"),a=r==="show",o=e.direction||"left",s=o==="up"||o==="down"?"top":"left",l=o==="up"||o==="left"?"pos":"neg",c={opacity:a?1:0},d;$.effects.save(n,i);n.show();$.effects.createWrapper(n);d=e.distance||n[s==="top"?"outerHeight":"outerWidth"](true)/2;if(a){n.css("opacity",0).css(s,l==="pos"?-d:d)}c[s]=(a?l==="pos"?"+=":"-=":l==="pos"?"-=":"+=")+d;n.animate(c,{queue:false,duration:e.duration,easing:e.easing,complete:function(){if(r==="hide"){n.hide()}$.effects.restore(n,i);$.effects.removeWrapper(n);t()}})};var U=$.effects.effect.explode=function(e,t){var n=e.pieces?Math.round(Math.sqrt(e.pieces)):3,i=n,r=$(this),a=$.effects.setMode(r,e.mode||"hide"),o=a==="show",s=r.show().css("visibility","hidden").offset(),l=Math.ceil(r.outerWidth()/i),c=Math.ceil(r.outerHeight()/n),d=[],u,p,f,h,m,v;function g(){d.push(this);if(d.length===n*i){_()}}for(u=0;u<n;u++){h=s.top+u*c;v=u-(n-1)/2;for(p=0;p<i;p++){f=s.left+p*l;m=p-(i-1)/2;r.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-p*l,top:-u*c}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:l,height:c,left:f+(o?m*l:0),top:h+(o?v*c:0),opacity:o?0:1}).animate({left:f+(o?0:m*l),top:h+(o?0:v*c),opacity:o?1:0},e.duration||500,e.easing,g)}}function _(){r.css({visibility:"visible"});$(d).remove();if(!o){r.hide()}t()}};var W=$.effects.effect.fade=function(e,t){var n=$(this),i=$.effects.setMode(n,e.mode||"toggle");n.animate({opacity:i},{queue:false,duration:e.duration,easing:e.easing,complete:t})};var V=$.effects.effect.fold=function(e,t){var n=$(this),i=["position","top","bottom","left","right","height","width"],r=$.effects.setMode(n,e.mode||"hide"),a=r==="show",o=r==="hide",s=e.size||15,l=/([0-9]+)%/.exec(s),c=!!e.horizFirst,d=a!==c,u=d?["width","height"]:["height","width"],p=e.duration/2,f,h,m={},v={};$.effects.save(n,i);n.show();f=$.effects.createWrapper(n).css({overflow:"hidden"});h=d?[f.width(),f.height()]:[f.height(),f.width()];if(l){s=parseInt(l[1],10)/100*h[o?0:1]}if(a){f.css(c?{height:0,width:s}:{height:s,width:0})}m[u[0]]=a?h[0]:s;v[u[1]]=a?h[1]:0;f.animate(m,p,e.easing).animate(v,p,e.easing,function(){if(o){n.hide()}$.effects.restore(n,i);$.effects.removeWrapper(n);t()})};var J=$.effects.effect.highlight=function(e,t){var n=$(this),i=["backgroundImage","backgroundColor","opacity"],r=$.effects.setMode(n,e.mode||"show"),a={backgroundColor:n.css("backgroundColor")};if(r==="hide"){a.opacity=0}$.effects.save(n,i);n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(a,{queue:false,duration:e.duration,easing:e.easing,complete:function(){if(r==="hide"){n.hide()}$.effects.restore(n,i);t()}})};var G=$.effects.effect.size=function(n,e){var t,i,r,a=$(this),o=["position","top","bottom","left","right","width","height","overflow","opacity"],s=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],c=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=$.effects.setMode(a,n.mode||"effect"),f=n.restore||p!=="effect",h=n.scale||"both",m=n.origin||["middle","center"],v=a.css("position"),g=f?o:s,_={height:0,width:0,outerHeight:0,outerWidth:0};if(p==="show"){a.show()}t={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()};if(n.mode==="toggle"&&p==="show"){a.from=n.to||_;a.to=n.from||t}else{a.from=n.from||(p==="show"?_:t);a.to=n.to||(p==="hide"?_:t)}r={from:{y:a.from.height/t.height,x:a.from.width/t.width},to:{y:a.to.height/t.height,x:a.to.width/t.width}};if(h==="box"||h==="both"){if(r.from.y!==r.to.y){g=g.concat(d);a.from=$.effects.setTransition(a,d,r.from.y,a.from);a.to=$.effects.setTransition(a,d,r.to.y,a.to)}if(r.from.x!==r.to.x){g=g.concat(u);a.from=$.effects.setTransition(a,u,r.from.x,a.from);a.to=$.effects.setTransition(a,u,r.to.x,a.to)}}if(h==="content"||h==="both"){if(r.from.y!==r.to.y){g=g.concat(c).concat(l);a.from=$.effects.setTransition(a,c,r.from.y,a.from);a.to=$.effects.setTransition(a,c,r.to.y,a.to)}}$.effects.save(a,g);a.show();$.effects.createWrapper(a);a.css("overflow","hidden").css(a.from);if(m){i=$.effects.getBaseline(m,t);a.from.top=(t.outerHeight-a.outerHeight())*i.y;a.from.left=(t.outerWidth-a.outerWidth())*i.x;a.to.top=(t.outerHeight-a.to.outerHeight)*i.y;a.to.left=(t.outerWidth-a.to.outerWidth)*i.x}a.css(a.from);if(h==="content"||h==="both"){d=d.concat(["marginTop","marginBottom"]).concat(c);u=u.concat(["marginLeft","marginRight"]);l=o.concat(d).concat(u);a.find("*[width]").each(function(){var e=$(this),t={height:e.height(),width:e.width(),outerHeight:e.outerHeight(),outerWidth:e.outerWidth()};if(f){$.effects.save(e,l)}e.from={height:t.height*r.from.y,width:t.width*r.from.x,outerHeight:t.outerHeight*r.from.y,outerWidth:t.outerWidth*r.from.x};e.to={height:t.height*r.to.y,width:t.width*r.to.x,outerHeight:t.height*r.to.y,outerWidth:t.width*r.to.x};if(r.from.y!==r.to.y){e.from=$.effects.setTransition(e,d,r.from.y,e.from);e.to=$.effects.setTransition(e,d,r.to.y,e.to)}if(r.from.x!==r.to.x){e.from=$.effects.setTransition(e,u,r.from.x,e.from);e.to=$.effects.setTransition(e,u,r.to.x,e.to)}e.css(e.from);e.animate(e.to,n.duration,n.easing,function(){if(f){$.effects.restore(e,l)}})})}a.animate(a.to,{queue:false,duration:n.duration,easing:n.easing,complete:function(){if(a.to.opacity===0){a.css("opacity",a.from.opacity)}if(p==="hide"){a.hide()}$.effects.restore(a,g);if(!f){if(v==="static"){a.css({position:"relative",top:a.to.top,left:a.to.left})}else{$.each(["top","left"],function(r,e){a.css(e,function(e,t){var n=parseInt(t,10),i=r?a.to.left:a.to.top;if(t==="auto"){return i+"px"}return n+i+"px"})})}}$.effects.removeWrapper(a);e()}})};var K=$.effects.effect.scale=function(e,t){var n=$(this),i=$.extend(true,{},e),r=$.effects.setMode(n,e.mode||"effect"),a=parseInt(e.percent,10)||(parseInt(e.percent,10)===0?0:r==="hide"?0:100),o=e.direction||"both",s=e.origin,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},c={y:o!=="horizontal"?a/100:1,x:o!=="vertical"?a/100:1};i.effect="size";i.queue=false;i.complete=t;if(r!=="effect"){i.origin=s||["middle","center"];i.restore=true}i.from=e.from||(r==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:l);i.to={height:l.height*c.y,width:l.width*c.x,outerHeight:l.outerHeight*c.y,outerWidth:l.outerWidth*c.x};if(i.fade){if(r==="show"){i.from.opacity=0;i.to.opacity=1}if(r==="hide"){i.from.opacity=1;i.to.opacity=0}}n.effect(i)};var X=$.effects.effect.puff=function(e,t){var n=$(this),i=$.effects.setMode(n,e.mode||"hide"),r=i==="hide",a=parseInt(e.percent,10)||150,o=a/100,s={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};$.extend(e,{effect:"scale",queue:false,fade:true,mode:i,complete:t,percent:r?a:100,from:r?s:{height:s.height*o,width:s.width*o,outerHeight:s.outerHeight*o,outerWidth:s.outerWidth*o}});n.effect(e)};var Q=$.effects.effect.pulsate=function(e,t){var n=$(this),i=$.effects.setMode(n,e.mode||"show"),r=i==="show",a=i==="hide",o=r||i==="hide",s=(e.times||5)*2+(o?1:0),l=e.duration/s,c=0,d=n.queue(),u=d.length,p;if(r||!n.is(":visible")){n.css("opacity",0).show();c=1}for(p=1;p<s;p++){n.animate({opacity:c},l,e.easing);c=1-c}n.animate({opacity:c},l,e.easing);n.queue(function(){if(a){n.hide()}t()});if(u>1){d.splice.apply(d,[1,0].concat(d.splice(u,s+1)))}n.dequeue()};var Z=$.effects.effect.shake=function(e,t){var n=$(this),i=["position","top","bottom","left","right","height","width"],r=$.effects.setMode(n,e.mode||"effect"),a=e.direction||"left",o=e.distance||20,s=e.times||3,l=s*2+1,c=Math.round(e.duration/l),d=a==="up"||a==="down"?"top":"left",u=a==="up"||a==="left",p={},f={},h={},m,v=n.queue(),g=v.length;$.effects.save(n,i);n.show();$.effects.createWrapper(n);p[d]=(u?"-=":"+=")+o;f[d]=(u?"+=":"-=")+o*2;h[d]=(u?"-=":"+=")+o*2;n.animate(p,c,e.easing);for(m=1;m<s;m++){n.animate(f,c,e.easing).animate(h,c,e.easing)}n.animate(f,c,e.easing).animate(p,c/2,e.easing).queue(function(){if(r==="hide"){n.hide()}$.effects.restore(n,i);$.effects.removeWrapper(n);t()});if(g>1){v.splice.apply(v,[1,0].concat(v.splice(g,l+1)))}n.dequeue()};var ee=$.effects.effect.slide=function(e,t){var n=$(this),i=["position","top","bottom","left","right","width","height"],r=$.effects.setMode(n,e.mode||"show"),a=r==="show",o=e.direction||"left",s=o==="up"||o==="down"?"top":"left",l=o==="up"||o==="left",c,d={};$.effects.save(n,i);n.show();c=e.distance||n[s==="top"?"outerHeight":"outerWidth"](true);$.effects.createWrapper(n).css({overflow:"hidden"});if(a){n.css(s,l?isNaN(c)?"-"+c:-c:c)}d[s]=(a?l?"+=":"-=":l?"-=":"+=")+c;n.animate(d,{queue:false,duration:e.duration,easing:e.easing,complete:function(){if(r==="hide"){n.hide()}$.effects.restore(n,i);$.effects.removeWrapper(n);t()}})};var te=$.effects.effect.transfer=function(e,t){var n=$(this),i=$(e.to),r=i.css("position")==="fixed",a=$("body"),o=r?a.scrollTop():0,s=r?a.scrollLeft():0,l=i.offset(),c={top:l.top-o,left:l.left-s,height:i.innerHeight(),width:i.innerWidth()},d=n.offset(),u=$("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:d.top-o,left:d.left-s,height:n.innerHeight(),width:n.innerWidth(),position:r?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){u.remove();t()})}});!function(_,t){function d(e,t,n){var i=e.children(),r=!1;e.empty();for(var a=0,o=i.length;o>a;a++){var s=i.eq(a);if(e.append(s),n&&e.append(n),y(e,t)){s.remove(),r=!0;break}n&&n.detach()}return r}function u(n,i,r,a,o){var s=!1,l="a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",c="script, .dotdotdot-keep";return n.contents().detach().each(function(){var e=this,t=_(e);if("undefined"==typeof e)return!0;if(t.is(c))n.append(t);else{if(s)return!0;n.append(t),!o||t.is(a.after)||t.find(a.after).length||n[n.is(l)?"after":"append"](o),y(r,a)&&(s=3==e.nodeType?p(t,i,r,a,o):u(t,i,r,a,o)),s||o&&o.detach()}}),i.addClass("is-truncated"),s}function p(e,t,n,i,r){var a=e[0];if(!a)return!1;var o=C(a),s=-1!==o.indexOf(" ")?" ":"　",l="letter"==i.wrap?"":s,c=o.split(l),d=-1,u=-1,p=0,f=c.length-1;for(i.fallbackToLetter&&0==p&&0==f&&(l="",c=o.split(l),f=c.length-1);f>=p&&(0!=p||0!=f);){var h=Math.floor((p+f)/2);if(h==u)break;u=h,w(a,c.slice(0,u+1).join(l)+i.ellipsis),n.children().each(function(){_(this).toggle().toggle()}),y(n,i)?(f=u,i.fallbackToLetter&&0==p&&0==f&&(l="",c=c[0].split(l),d=-1,u=-1,p=0,f=c.length-1)):(d=u,p=u)}if(-1==d||1==c.length&&0==c[0].length){var m=e.parent();e.detach();var v=r&&r.closest(m).length?r.length:0;if(m.contents().length>v?a=x(m.contents().eq(-1-v),t):(a=x(m,t,!0),v||m.detach()),a&&(o=b(C(a),i),w(a,o),v&&r)){var g=r.parent();_(a).parent().append(r),_.trim(g.html())||g.remove()}}else o=b(c.slice(0,d+1).join(l),i),w(a,o);return!0}function y(e,t){return e.innerHeight()>t.maxHeight}function b(e,t){for(;_.inArray(e.slice(-1),t.lastCharacter.remove)>-1;)e=e.slice(0,-1);return _.inArray(e.slice(-1),t.lastCharacter.noEllipsis)<0&&(e+=t.ellipsis),e}function f(e){return{width:e.innerWidth(),height:e.innerHeight()}}function w(e,t){e.innerText?e.innerText=t:e.nodeValue?e.nodeValue=t:e.textContent&&(e.textContent=t)}function C(e){return e.innerText?e.innerText:e.nodeValue?e.nodeValue:e.textContent?e.textContent:""}function a(e){do{e=e.previousSibling}while(e&&1!==e.nodeType&&3!==e.nodeType);return e}function x(e,t,n){var i,r=e&&e[0];if(r){if(!n){if(3===r.nodeType)return r;if(_.trim(e.text()))return x(e.contents().last(),t)}for(i=a(r);!i;){if(e=e.parent(),e.is(t)||!e.length)return!1;i=a(e[0])}if(i)return x(_(i),t)}return!1}function n(e,t){return e?"string"==typeof e?(e=_(e,t),e.length?e:!1):e.jquery?e:!1:!1}function h(e){for(var t=e.innerHeight(),n=["paddingTop","paddingBottom"],i=0,r=n.length;r>i;i++){var a=parseInt(e.css(n[i]),10);isNaN(a)&&(a=0),t-=a}return t}if(!_.fn.dotdotdot){_.fn.dotdotdot=function(e){if(0==this.length)return _.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){_(this).dotdotdot(e)});var r=this,a=r.contents();r.data("dotdotdot")&&r.trigger("destroy.dot"),r.data("dotdotdot-style",r.attr("style")||""),r.css("word-wrap","break-word"),"nowrap"===r.css("white-space")&&r.css("white-space","normal"),r.bind_events=function(){return r.bind("update.dot",function(e,t){switch(r.removeClass("is-truncated"),e.preventDefault(),e.stopPropagation(),typeof o.height){case"number":o.maxHeight=o.height;break;case"function":o.maxHeight=o.height.call(r[0]);break;default:o.maxHeight=h(r)}o.maxHeight+=o.tolerance,"undefined"!=typeof t&&(("string"==typeof t||"nodeType"in t&&1===t.nodeType)&&(t=_("<div />").append(t).contents()),t instanceof _&&(a=t)),c=r.wrapInner('<div class="dotdotdot" />').children(),c.contents().detach().end().append(a.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var n=!1,i=!1;return s.afterElement&&(n=s.afterElement.clone(!0),n.show(),s.afterElement.detach()),y(c,o)&&(i="children"==o.wrap?d(c,o,n):u(c,r,c,o,n)),c.replaceWith(c.contents()),c=null,_.isFunction(o.callback)&&o.callback.call(r[0],i,a),s.isTruncated=i,i}).bind("isTruncated.dot",function(e,t){return e.preventDefault(),e.stopPropagation(),"function"==typeof t&&t.call(r[0],s.isTruncated),s.isTruncated}).bind("originalContent.dot",function(e,t){return e.preventDefault(),e.stopPropagation(),"function"==typeof t&&t.call(r[0],a),a}).bind("destroy.dot",function(e){e.preventDefault(),e.stopPropagation(),r.unwatch().unbind_events().contents().detach().end().append(a).attr("style",r.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),r},r.unbind_events=function(){return r.unbind(".dot"),r},r.watch=function(){if(r.unwatch(),"window"==o.watch){var e=_(window),t=e.width(),n=e.height();e.bind("resize.dot"+s.dotId,function(){t==e.width()&&n==e.height()&&o.windowResizeFix||(t=e.width(),n=e.height(),l&&clearInterval(l),l=setTimeout(function(){r.trigger("update.dot")},100))})}else i=f(r),l=setInterval(function(){if(r.is(":visible")){var e=f(r);i.width==e.width&&i.height==e.height||(r.trigger("update.dot"),i=e)}},500);return r},r.unwatch=function(){return _(window).unbind("resize.dot"+s.dotId),l&&clearInterval(l),r};var o=_.extend(!0,{},_.fn.dotdotdot.defaults,e),s={},i={},l=null,c=null;return o.lastCharacter.remove instanceof Array||(o.lastCharacter.remove=_.fn.dotdotdot.defaultArrays.lastCharacter.remove),o.lastCharacter.noEllipsis instanceof Array||(o.lastCharacter.noEllipsis=_.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),s.afterElement=n(o.after,r),s.isTruncated=!1,s.dotId=m++,r.data("dotdotdot",!0).bind_events().trigger("update.dot"),o.watch&&r.watch(),r},_.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},_.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},_.fn.dotdotdot.debug=function(e){};var m=1,i=_.fn.html;_.fn.html=function(e){return e!=t&&!_.isFunction(e)&&this.data("dotdotdot")?this.trigger("update",[e]):i.apply(this,arguments)};var r=_.fn.text;_.fn.text=function(e){return e!=t&&!_.isFunction(e)&&this.data("dotdotdot")?(e=_("<div />").text(e).html(),this.trigger("update",[e])):r.apply(this,arguments)}}}(jQuery),jQuery(document).ready(function(a){a(".dot-ellipsis").each(function(){var e=a(this).hasClass("dot-resize-update"),t=a(this).hasClass("dot-timer-update"),i=0,n=a(this).attr("class").split(/\s+/);a.each(n,function(e,t){var n=t.match(/^dot-height-(\d+)$/);null!==n&&(i=Number(n[1]))});var r=new Object;t&&(r.watch=!0),e&&(r.watch="window"),i>0&&(r.height=i),a(this).dotdotdot(r)})}),jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")});(function(f){var d,i,u,p,r,h,t,l="Close",c="BeforeClose",n="AfterClose",a="BeforeAppend",m="MarkupParse",v="Open",o="Change",s="mfp",g="."+s,_="mfp-ready",y="mfp-removing",b="mfp-prevent-close",e=function(){},w=!!window.jQuery,C=f(window),x=function(e,t){d.ev.on(s+e+g,t)},k=function(e,t,n,i){var r=document.createElement("div");return r.className="mfp-"+e,n&&(r.innerHTML=n),i?t&&t.appendChild(r):(r=f(r),t&&r.appendTo(t)),r},S=function(e,t){d.ev.triggerHandler(s+e,t),d.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),d.st.callbacks[e]&&d.st.callbacks[e].apply(d,f.isArray(t)?t:[t]))},D=function(e){return e===t&&d.currTemplate.closeBtn||(d.currTemplate.closeBtn=f(d.st.closeMarkup.replace("%title%",d.st.tClose)),t=e),d.currTemplate.closeBtn},T=function(){f.magnificPopup.instance||(d=new e,d.init(),f.magnificPopup.instance=d)},$=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};e.prototype={constructor:e,init:function(){var e=navigator.appVersion;d.isIE7=-1!==e.indexOf("MSIE 7."),d.isIE8=-1!==e.indexOf("MSIE 8."),d.isLowIE=d.isIE7||d.isIE8,d.isAndroid=/android/gi.test(e),d.isIOS=/iphone|ipad|ipod/gi.test(e),d.supportsTransition=$(),d.probablyMobile=d.isAndroid||d.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),p=f(document),d.popupsCache={}},open:function(e){u||(u=f(document.body));var t;if(e.isObj===!1){d.items=e.items.toArray(),d.index=0;var n,i=e.items;for(t=0;i.length>t;t++)if(n=i[t],n.parsed&&(n=n.el[0]),n===e.el[0]){d.index=t;break}}else d.items=f.isArray(e.items)?e.items:[e.items],d.index=e.index||0;if(d.isOpen)return d.updateItemHTML(),void 0;d.types=[],h="",d.ev=e.mainEl&&e.mainEl.length?e.mainEl.eq(0):p,e.key?(d.popupsCache[e.key]||(d.popupsCache[e.key]={}),d.currTemplate=d.popupsCache[e.key]):d.currTemplate={},d.st=f.extend(!0,{},f.magnificPopup.defaults,e),d.fixedContentPos="auto"===d.st.fixedContentPos?!d.probablyMobile:d.st.fixedContentPos,d.st.modal&&(d.st.closeOnContentClick=!1,d.st.closeOnBgClick=!1,d.st.showCloseBtn=!1,d.st.enableEscapeKey=!1),d.bgOverlay||(d.bgOverlay=k("bg").on("click"+g,function(){d.close()}),d.wrap=k("wrap").attr("tabindex",-1).on("click"+g,function(e){d._checkIfClose(e.target)&&d.close()}),d.container=k("container",d.wrap)),d.contentContainer=k("content"),d.st.preloader&&(d.preloader=k("preloader",d.container,d.st.tLoading));var r=f.magnificPopup.modules;for(t=0;r.length>t;t++){var a=r[t];a=a.charAt(0).toUpperCase()+a.slice(1),d["init"+a].call(d)}S("BeforeOpen"),d.st.showCloseBtn&&(d.st.closeBtnInside?(x(m,function(e,t,n,i){n.close_replaceWith=D(i.type)}),h+=" mfp-close-btn-in"):d.wrap.append(D())),d.st.alignTop&&(h+=" mfp-align-top"),d.fixedContentPos?d.wrap.css({overflow:d.st.overflowY,overflowX:"hidden",overflowY:d.st.overflowY}):d.wrap.css({top:C.scrollTop(),position:"absolute"}),(d.st.fixedBgPos===!1||"auto"===d.st.fixedBgPos&&!d.fixedContentPos)&&d.bgOverlay.css({height:p.height(),position:"absolute"}),d.st.enableEscapeKey&&p.on("keyup"+g,function(e){27===e.keyCode&&d.close()}),C.on("resize"+g,function(){d.updateSize()}),d.st.closeOnContentClick||(h+=" mfp-auto-cursor"),h&&d.wrap.addClass(h);var o=d.wH=C.height(),s={};if(d.fixedContentPos&&d._hasScrollBar(o)){var l=d._getScrollbarSize();l&&(s.marginRight=l)}d.fixedContentPos&&(d.isIE7?f("body, html").css("overflow","hidden"):s.overflow="hidden");var c=d.st.mainClass;return d.isIE7&&(c+=" mfp-ie7"),c&&d._addClassToMFP(c),d.updateItemHTML(),S("BuildControls"),f("html").css(s),d.bgOverlay.add(d.wrap).prependTo(d.st.prependTo||u),d._lastFocusedEl=document.activeElement,setTimeout(function(){d.content?(d._addClassToMFP(_),d._setFocus()):d.bgOverlay.addClass(_),p.on("focusin"+g,d._onFocusIn)},16),d.isOpen=!0,d.updateSize(o),S(v),e},close:function(){d.isOpen&&(S(c),d.isOpen=!1,d.st.removalDelay&&!d.isLowIE&&d.supportsTransition?(d._addClassToMFP(y),setTimeout(function(){d._close()},d.st.removalDelay)):d._close())},_close:function(){S(l);var e=y+" "+_+" ";if(d.bgOverlay.detach(),d.wrap.detach(),d.container.empty(),d.st.mainClass&&(e+=d.st.mainClass+" "),d._removeClassFromMFP(e),d.fixedContentPos){var t={marginRight:""};d.isIE7?f("body, html").css("overflow",""):t.overflow="",f("html").css(t)}p.off("keyup"+g+" focusin"+g),d.ev.off(g),d.wrap.attr("class","mfp-wrap").removeAttr("style"),d.bgOverlay.attr("class","mfp-bg"),d.container.attr("class","mfp-container"),!d.st.showCloseBtn||d.st.closeBtnInside&&d.currTemplate[d.currItem.type]!==!0||d.currTemplate.closeBtn&&d.currTemplate.closeBtn.detach(),d._lastFocusedEl&&f(d._lastFocusedEl).focus(),d.currItem=null,d.content=null,d.currTemplate=null,d.prevHeight=0,S(n)},updateSize:function(e){if(d.isIOS){var t=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*t;d.wrap.css("height",n),d.wH=n}else d.wH=e||C.height();d.fixedContentPos||d.wrap.css("height",d.wH),S("Resize")},updateItemHTML:function(){var e=d.items[d.index];d.contentContainer.detach(),d.content&&d.content.detach(),e.parsed||(e=d.parseEl(d.index));var t=e.type;if(S("BeforeChange",[d.currItem?d.currItem.type:"",t]),d.currItem=e,!d.currTemplate[t]){var n=d.st[t]?d.st[t].markup:!1;S("FirstMarkupParse",n),d.currTemplate[t]=n?f(n):!0}r&&r!==e.type&&d.container.removeClass("mfp-"+r+"-holder");var i=d["get"+t.charAt(0).toUpperCase()+t.slice(1)](e,d.currTemplate[t]);d.appendContent(i,t),e.preloaded=!0,S(o,e),r=e.type,d.container.prepend(d.contentContainer),S("AfterChange")},appendContent:function(e,t){d.content=e,e?d.st.showCloseBtn&&d.st.closeBtnInside&&d.currTemplate[t]===!0?d.content.find(".mfp-close").length||d.content.append(D()):d.content=e:d.content="",S(a),d.container.addClass("mfp-"+t+"-holder"),d.contentContainer.append(d.content)},parseEl:function(e){var t,n=d.items[e];if(n.tagName?n={el:f(n)}:(t=n.type,n={data:n,src:n.src}),n.el){for(var i=d.types,r=0;i.length>r;r++)if(n.el.hasClass("mfp-"+i[r])){t=i[r];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=t||d.st.type||"inline",n.index=e,n.parsed=!0,d.items[e]=n,S("ElementParse",n),d.items[e]},addGroup:function(t,n){var e=function(e){e.mfpEl=this,d._openClick(e,t,n)};n||(n={});var i="click.magnificPopup";n.mainEl=t,n.items?(n.isObj=!0,t.off(i).on(i,e)):(n.isObj=!1,n.delegate?t.off(i).on(i,n.delegate,e):(n.items=t,t.off(i).on(i,e)))},_openClick:function(e,t,n){var i=void 0!==n.midClick?n.midClick:f.magnificPopup.defaults.midClick;if(i||2!==e.which&&!e.ctrlKey&&!e.metaKey){var r=void 0!==n.disableOn?n.disableOn:f.magnificPopup.defaults.disableOn;if(r)if(f.isFunction(r)){if(!r.call(d))return!0}else if(r>C.width())return!0;e.type&&(e.preventDefault(),d.isOpen&&e.stopPropagation()),n.el=f(e.mfpEl),n.delegate&&(n.items=t.find(n.delegate)),d.open(n)}},updateStatus:function(e,t){if(d.preloader){i!==e&&d.container.removeClass("mfp-s-"+i),t||"loading"!==e||(t=d.st.tLoading);var n={status:e,text:t};S("UpdateStatus",n),e=n.status,t=n.text,d.preloader.html(t),d.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),d.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(e){if(!f(e).hasClass(b)){var t=d.st.closeOnContentClick,n=d.st.closeOnBgClick;if(t&&n)return!0;if(!d.content||f(e).hasClass("mfp-close")||d.preloader&&e===d.preloader[0])return!0;if(e===d.content[0]||f.contains(d.content[0],e)){if(t)return!0}else if(n&&f.contains(document,e))return!0;return!1}},_addClassToMFP:function(e){d.bgOverlay.addClass(e),d.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),d.wrap.removeClass(e)},_hasScrollBar:function(e){return(d.isIE7?p.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(d.st.focus?d.content.find(d.st.focus).eq(0):d.wrap).focus()},_onFocusIn:function(e){return e.target===d.wrap[0]||f.contains(d.wrap[0],e.target)?void 0:(d._setFocus(),!1)},_parseMarkup:function(r,e,t){var a;t.data&&(e=f.extend(t.data,e)),S(m,[r,e,t]),f.each(e,function(e,t){if(void 0===t||t===!1)return!0;if(a=e.split("_"),a.length>1){var n=r.find(g+"-"+a[0]);if(n.length>0){var i=a[1];"replaceWith"===i?n[0]!==t[0]&&n.replaceWith(t):"img"===i?n.is("img")?n.attr("src",t):n.replaceWith('<img src="'+t+'" class="'+n.attr("class")+'" />'):n.attr(a[1],t)}}else r.find(g+"-"+e).html(t)})},_getScrollbarSize:function(){if(void 0===d.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),d.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return d.scrollbarSize}},f.magnificPopup={instance:null,proto:e.prototype,modules:[],open:function(e,t){return T(),e=e?f.extend(!0,{},e):{},e.isObj=!0,e.index=t||0,this.instance.open(e)},close:function(){return f.magnificPopup.instance&&f.magnificPopup.instance.close()},registerModule:function(e,t){t.options&&(f.magnificPopup.defaults[e]=t.options),f.extend(this.proto,t.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},f.fn.magnificPopup=function(e){T();var t=f(this);if("string"==typeof e)if("open"===e){var n,i=w?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;i.items?n=i.items[r]:(n=t,i.delegate&&(n=n.find(i.delegate)),n=n.eq(r)),d._openClick({mfpEl:n},t,i)}else d.isOpen&&d[e].apply(d,Array.prototype.slice.call(arguments,1));else e=f.extend(!0,{},e),w?t.data("magnificPopup",e):t[0].magnificPopup=e,d.addGroup(t,e);return t};var E,O,A,P="inline",M=function(){A&&(O.after(A.addClass(E)).detach(),A=null)};f.magnificPopup.registerModule(P,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){d.types.push(P),x(l+"."+P,function(){M()})},getInline:function(e,t){if(M(),e.src){var n=d.st.inline,i=f(e.src);if(i.length){var r=i[0].parentNode;r&&r.tagName&&(O||(E=n.hiddenClass,O=k(E),E="mfp-"+E),A=i.after(O).detach().removeClass(E)),d.updateStatus("ready")}else d.updateStatus("error",n.tNotFound),i=f("<div>");return e.inlineElement=i,i}return d.updateStatus("ready"),d._parseMarkup(t,{},e),t}}});var I,N="ajax",R=function(){I&&u.removeClass(I)},F=function(){R(),d.req&&d.req.abort()};f.magnificPopup.registerModule(N,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){d.types.push(N),I=d.st.ajax.cursor,x(l+"."+N,F),x("BeforeChange."+N,F)},getAjax:function(r){I&&u.addClass(I),d.updateStatus("loading");var e=f.extend({url:r.src,success:function(e,t,n){var i={data:e,xhr:n};S("ParseAjax",i),d.appendContent(f(i.data),N),r.finished=!0,R(),d._setFocus(),setTimeout(function(){d.wrap.addClass(_)},16),d.updateStatus("ready"),S("AjaxContentAdded")},error:function(){R(),r.finished=r.loadError=!0,d.updateStatus("error",d.st.ajax.tError.replace("%url%",r.src))}},d.st.ajax.settings);return d.req=f.ajax(e),""}}});var L,j=function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var t=d.st.image.titleSrc;if(t){if(f.isFunction(t))return t.call(d,e);if(e.el)return e.el.attr(t)||""}return""};f.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var e=d.st.image,t=".image";d.types.push("image"),x(v+t,function(){"image"===d.currItem.type&&e.cursor&&u.addClass(e.cursor)}),x(l+t,function(){e.cursor&&u.removeClass(e.cursor),C.off("resize"+g)}),x("Resize"+t,d.resizeImage),d.isLowIE&&x("AfterChange",d.resizeImage)},resizeImage:function(){var e=d.currItem;if(e&&e.img&&d.st.image.verticalFit){var t=0;d.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",d.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,L&&clearInterval(L),e.isCheckingImgSize=!1,S("ImageHasSize",e),e.imgHidden&&(d.content&&d.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],r=function(e){L&&clearInterval(L),L=setInterval(function(){return i.naturalWidth>0?(d._onImageHasSize(t),void 0):(n>200&&clearInterval(L),n++,3===n?r(10):40===n?r(50):100===n&&r(500),void 0)},e)};r(1)},getImage:function(e,t){var n=0,i=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===d.currItem&&(d._onImageHasSize(e),d.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,S("ImageLoadComplete")):(n++,200>n?setTimeout(i,100):r()))},r=function(){e&&(e.img.off(".mfploader"),e===d.currItem&&(d._onImageHasSize(e),d.updateStatus("error",a.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},a=d.st.image,o=t.find(".mfp-img");if(o.length){var s=document.createElement("img");s.className="mfp-img",e.img=f(s).on("load.mfploader",i).on("error.mfploader",r),s.src=e.src,o.is("img")&&(e.img=e.img.clone()),s=e.img[0],s.naturalWidth>0?e.hasSize=!0:s.width||(e.hasSize=!1)}return d._parseMarkup(t,{title:j(e),img_replaceWith:e.img},e),d.resizeImage(),e.hasSize?(L&&clearInterval(L),e.loadError?(t.addClass("mfp-loading"),d.updateStatus("error",a.tError.replace("%url%",e.src))):(t.removeClass("mfp-loading"),d.updateStatus("ready")),t):(d.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,t.addClass("mfp-loading"),d.findImageSize(e)),t)}}});var H,q=function(){return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H};f.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,a=d.st.zoom,t=".zoom";if(a.enabled&&d.supportsTransition){var n,i,r=a.duration,o=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+a.duration/1e3+"s "+a.easing,i={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},r="transition";return i["-webkit-"+r]=i["-moz-"+r]=i["-o-"+r]=i[r]=n,t.css(i),t},s=function(){d.content.css("visibility","visible")};x("BuildControls"+t,function(){if(d._allowZoom()){if(clearTimeout(n),d.content.css("visibility","hidden"),e=d._getItemToZoom(),!e)return s(),void 0;i=o(e),i.css(d._getOffset()),d.wrap.append(i),n=setTimeout(function(){i.css(d._getOffset(!0)),n=setTimeout(function(){s(),setTimeout(function(){i.remove(),e=i=null,S("ZoomAnimationEnded")},16)},r)},16)}}),x(c+t,function(){if(d._allowZoom()){if(clearTimeout(n),d.st.removalDelay=r,!e){if(e=d._getItemToZoom(),!e)return;i=o(e)}i.css(d._getOffset(!0)),d.wrap.append(i),d.content.css("visibility","hidden"),setTimeout(function(){i.css(d._getOffset())},16)}}),x(l+t,function(){d._allowZoom()&&(s(),i&&i.remove(),e=null)})}},_allowZoom:function(){return"image"===d.currItem.type},_getItemToZoom:function(){return d.currItem.hasSize?d.currItem.img:!1},_getOffset:function(e){var t;t=e?d.currItem.img:d.st.zoom.opener(d.currItem.el||d.currItem);var n=t.offset(),i=parseInt(t.css("padding-top"),10),r=parseInt(t.css("padding-bottom"),10);n.top-=f(window).scrollTop()-i;var a={width:t.width(),height:(w?t.innerHeight():t[0].offsetHeight)-r-i};return q()?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var B="iframe",z="//about:blank",Y=function(e){if(d.currTemplate[B]){var t=d.currTemplate[B].find("iframe");t.length&&(e||(t[0].src=z),d.isIE8&&t.css("display",e?"block":"none"))}};f.magnificPopup.registerModule(B,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){d.types.push(B),x("BeforeChange",function(e,t,n){t!==n&&(t===B?Y():n===B&&Y(!0))}),x(l+"."+B,function(){Y()})},getIframe:function(e,t){var n=e.src,i=d.st.iframe;f.each(i.patterns,function(){return n.indexOf(this.index)>-1?(this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1):void 0});var r={};return i.srcAction&&(r[i.srcAction]=n),d._parseMarkup(t,r,e),d.updateStatus("ready"),t}}});var U=function(e){var t=d.items.length;return e>t-1?e-t:0>e?t+e:e},W=function(e,t,n){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,n)};f.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var a=d.st.gallery,e=".mfp-gallery",r=Boolean(f.fn.mfpFastClick);return d.direction=!0,a&&a.enabled?(h+=" mfp-gallery",x(v+e,function(){a.navigateByImgClick&&d.wrap.on("click"+e,".mfp-img",function(){return d.items.length>1?(d.next(),!1):void 0}),p.on("keydown"+e,function(e){37===e.keyCode?d.prev():39===e.keyCode&&d.next()})}),x("UpdateStatus"+e,function(e,t){t.text&&(t.text=W(t.text,d.currItem.index,d.items.length))}),x(m+e,function(e,t,n,i){var r=d.items.length;n.counter=r>1?W(a.tCounter,i.index,r):""}),x("BuildControls"+e,function(){if(d.items.length>1&&a.arrows&&!d.arrowLeft){var e=a.arrowMarkup,t=d.arrowLeft=f(e.replace(/%title%/gi,a.tPrev).replace(/%dir%/gi,"left")).addClass(b),n=d.arrowRight=f(e.replace(/%title%/gi,a.tNext).replace(/%dir%/gi,"right")).addClass(b),i=r?"mfpFastClick":"click";t[i](function(){d.prev()}),n[i](function(){d.next()}),d.isIE7&&(k("b",t[0],!1,!0),k("a",t[0],!1,!0),k("b",n[0],!1,!0),k("a",n[0],!1,!0)),d.container.append(t.add(n))}}),x(o+e,function(){d._preloadTimeout&&clearTimeout(d._preloadTimeout),d._preloadTimeout=setTimeout(function(){d.preloadNearbyImages(),d._preloadTimeout=null},16)}),x(l+e,function(){p.off(e),d.wrap.off("click"+e),d.arrowLeft&&r&&d.arrowLeft.add(d.arrowRight).destroyMfpFastClick(),d.arrowRight=d.arrowLeft=null}),void 0):!1},next:function(){d.direction=!0,d.index=U(d.index+1),d.updateItemHTML()},prev:function(){d.direction=!1,d.index=U(d.index-1),d.updateItemHTML()},goTo:function(e){d.direction=e>=d.index,d.index=e,d.updateItemHTML()},preloadNearbyImages:function(){var e,t=d.st.gallery.preload,n=Math.min(t[0],d.items.length),i=Math.min(t[1],d.items.length);for(e=1;(d.direction?i:n)>=e;e++)d._preloadItem(d.index+e);for(e=1;(d.direction?n:i)>=e;e++)d._preloadItem(d.index-e)},_preloadItem:function(e){if(e=U(e),!d.items[e].preloaded){var t=d.items[e];t.parsed||(t=d.parseEl(e)),S("LazyLoad",t),"image"===t.type&&(t.img=f('<img class="mfp-img" />').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,S("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var V="retina";f.magnificPopup.registerModule(V,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var n=d.st.retina,i=n.ratio;i=isNaN(i)?i():i,i>1&&(x("ImageHasSize."+V,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),x("ElementParse."+V,function(e,t){t.src=n.replaceSrc(t,i)}))}}}}),function(){var c=1e3,d="ontouchstart"in window,u=function(){C.off("touchmove"+p+" touchend"+p)},e="mfpFastClick",p="."+e;f.fn.mfpFastClick=function(l){return f(this).each(function(){var t,e=f(this);if(d){var n,i,r,a,o,s;e.on("touchstart"+p,function(e){a=!1,s=1,o=e.originalEvent?e.originalEvent.touches[0]:e.touches[0],i=o.clientX,r=o.clientY,C.on("touchmove"+p,function(e){o=e.originalEvent?e.originalEvent.touches:e.touches,s=o.length,o=o[0],(Math.abs(o.clientX-i)>10||Math.abs(o.clientY-r)>10)&&(a=!0,u())}).on("touchend"+p,function(e){u(),a||s>1||(t=!0,e.preventDefault(),clearTimeout(n),n=setTimeout(function(){t=!1},c),l())})})}e.on("click"+p,function(){t||l()})})},f.fn.destroyMfpFastClick=function(){f(this).off("touchstart"+p+" click"+p),d&&C.off("touchmove"+p+" touchend"+p)}}(),T()})(window.jQuery||window.Zepto);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(se){!function(e){var t="function"==typeof define&&define.amd,n="undefined"!=typeof module&&module.exports,i="https:"==document.location.protocol?"https:":"http:",r="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";t||(n?require("jquery-mousewheel")(se):se.event.special.mousewheel||se("head").append(decodeURI("%3Cscript src="+i+"//"+r+"%3E%3C/script%3E"))),e()}(function(){var F,f="mCustomScrollbar",L="mCS",i=".mCustomScrollbar",r={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},s=0,a={},v=window.attachEvent&&!window.addEventListener?1:0,j=!1,w=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],h={init:function(o){var o=se.extend(!0,{},r,o),e=c.call(this);if(o.live){var t=o.liveSelector||this.selector||i,n=se(t);if("off"===o.live)return void d(t);a[t]=setTimeout(function(){n.mCustomScrollbar(o),"once"===o.live&&n.length&&d(t)},500)}else d(t);return o.setWidth=o.set_width?o.set_width:o.setWidth,o.setHeight=o.set_height?o.set_height:o.setHeight,o.axis=o.horizontalScroll?"x":u(o.axis),o.scrollInertia=o.scrollInertia>0&&o.scrollInertia<17?17:o.scrollInertia,"object"!=typeof o.mouseWheel&&1==o.mouseWheel&&(o.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),o.mouseWheel.scrollAmount=o.mouseWheelPixels?o.mouseWheelPixels:o.mouseWheel.scrollAmount,o.mouseWheel.normalizeDelta=o.advanced.normalizeMouseWheelDelta?o.advanced.normalizeMouseWheelDelta:o.mouseWheel.normalizeDelta,o.scrollButtons.scrollType=p(o.scrollButtons.scrollType),l(o),se(e).each(function(){var e=se(this);if(!e.data(L)){e.data(L,{idx:++s,opt:o,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:e.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var t=e.data(L),n=t.opt,i=e.data("mcs-axis"),r=e.data("mcs-scrollbar-position"),a=e.data("mcs-theme");i&&(n.axis=i),r&&(n.scrollbarPosition=r),a&&(n.theme=a,l(n)),m.call(this),t&&n.callbacks.onCreate&&"function"==typeof n.callbacks.onCreate&&n.callbacks.onCreate.call(this),se("#mCSB_"+t.idx+"_container img:not(."+w[2]+")").addClass(w[2]),h.update.call(null,e)}})},update:function(e,s){var t=e||c.call(this);return se(t).each(function(){var e=se(this);if(e.data(L)){var t=e.data(L),n=t.opt,i=se("#mCSB_"+t.idx+"_container"),r=se("#mCSB_"+t.idx),a=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")];if(!i.length)return;t.tweenRunning&&K(e),s&&t&&n.callbacks.onBeforeUpdate&&"function"==typeof n.callbacks.onBeforeUpdate&&n.callbacks.onBeforeUpdate.call(this),e.hasClass(w[3])&&e.removeClass(w[3]),e.hasClass(w[4])&&e.removeClass(w[4]),r.css("max-height","none"),r.height()!==e.height()&&r.css("max-height",e.height()),_.call(this),"y"===n.axis||n.advanced.autoExpandHorizontalScroll||i.css("width",g(i)),t.overflowed=x.call(this),$.call(this),n.autoDraggerLength&&b.call(this),C.call(this),D.call(this);var o=[Math.abs(i[0].offsetTop),Math.abs(i[0].offsetLeft)];"x"!==n.axis&&(t.overflowed[0]?a[0].height()>a[0].parent().height()?k.call(this):(X(e,o[0].toString(),{dir:"y",dur:0,overwrite:"none"}),t.contentReset.y=null):(k.call(this),"y"===n.axis?T.call(this):"yx"===n.axis&&t.overflowed[1]&&X(e,o[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==n.axis&&(t.overflowed[1]?a[1].width()>a[1].parent().width()?k.call(this):(X(e,o[1].toString(),{dir:"x",dur:0,overwrite:"none"}),t.contentReset.x=null):(k.call(this),"x"===n.axis?T.call(this):"yx"===n.axis&&t.overflowed[0]&&X(e,o[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),s&&t&&(2===s&&n.callbacks.onImageLoad&&"function"==typeof n.callbacks.onImageLoad?n.callbacks.onImageLoad.call(this):3===s&&n.callbacks.onSelectorChange&&"function"==typeof n.callbacks.onSelectorChange?n.callbacks.onSelectorChange.call(this):n.callbacks.onUpdate&&"function"==typeof n.callbacks.onUpdate&&n.callbacks.onUpdate.call(this)),J.call(this)}})},scrollTo:function(s,l){if("undefined"!=typeof s&&null!=s){var e=c.call(this);return se(e).each(function(){var e=se(this);if(e.data(L)){var t=e.data(L),n=t.opt,i={trigger:"external",scrollInertia:n.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},r=se.extend(!0,{},i,l),a=W.call(this,s),o=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia;a[0]=V.call(this,a[0],"y"),a[1]=V.call(this,a[1],"x"),r.moveDragger&&(a[0]*=t.scrollRatio.y,a[1]*=t.scrollRatio.x),r.dur=oe()?0:o,setTimeout(function(){null!==a[0]&&"undefined"!=typeof a[0]&&"x"!==n.axis&&t.overflowed[0]&&(r.dir="y",r.overwrite="all",X(e,a[0].toString(),r)),null!==a[1]&&"undefined"!=typeof a[1]&&"y"!==n.axis&&t.overflowed[1]&&(r.dir="x",r.overwrite="none",X(e,a[1].toString(),r))},r.timeout)}})}},stop:function(){var e=c.call(this);return se(e).each(function(){var e=se(this);e.data(L)&&K(e)})},disable:function(t){var e=c.call(this);return se(e).each(function(){var e=se(this);if(e.data(L)){e.data(L);J.call(this,"remove"),T.call(this),t&&k.call(this),$.call(this,!0),e.addClass(w[3])}})},destroy:function(){var o=c.call(this);return se(o).each(function(){var e=se(this);if(e.data(L)){var t=e.data(L),n=t.opt,i=se("#mCSB_"+t.idx),r=se("#mCSB_"+t.idx+"_container"),a=se(".mCSB_"+t.idx+"_scrollbar");n.live&&d(n.liveSelector||se(o).selector),J.call(this,"remove"),T.call(this),k.call(this),e.removeData(L),te(this,"mcs"),a.remove(),r.find("img."+w[2]).removeClass(w[2]),i.replaceWith(r.contents()),e.removeClass(f+" _"+L+"_"+t.idx+" "+w[6]+" "+w[7]+" "+w[5]+" "+w[3]).addClass(w[4])}})}},c=function(){return"object"!=typeof se(this)||se(this).length<1?i:this},l=function(e){var t=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],n=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"],a=["minimal","minimal-dark"];e.autoDraggerLength=se.inArray(e.theme,t)>-1?!1:e.autoDraggerLength,e.autoExpandScrollbar=se.inArray(e.theme,n)>-1?!1:e.autoExpandScrollbar,e.scrollButtons.enable=se.inArray(e.theme,i)>-1?!1:e.scrollButtons.enable,e.autoHideScrollbar=se.inArray(e.theme,r)>-1?!0:e.autoHideScrollbar,e.scrollbarPosition=se.inArray(e.theme,a)>-1?"outside":e.scrollbarPosition},d=function(e){a[e]&&(clearTimeout(a[e]),te(a,e))},u=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},p=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},m=function(){var e=se(this),t=e.data(L),n=t.opt,i=n.autoExpandScrollbar?" "+w[1]+"_expand":"",r=["<div id='mCSB_"+t.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_vertical"+i+"'><div class='"+w[12]+"'><div id='mCSB_"+t.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+t.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='"+w[12]+"'><div id='mCSB_"+t.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],a="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",o="yx"===n.axis?r[0]+r[1]:"x"===n.axis?r[1]:r[0],s="yx"===n.axis?"<div id='mCSB_"+t.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",l=n.autoHideScrollbar?" "+w[6]:"",c="x"!==n.axis&&"rtl"===t.langDir?" "+w[7]:"";n.setWidth&&e.css("width",n.setWidth),n.setHeight&&e.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===t.langDir?"989999px":n.setLeft,e.addClass(f+" _"+L+"_"+t.idx+l+c).wrapInner("<div id='mCSB_"+t.idx+"' class='mCustomScrollBox mCS-"+n.theme+" "+a+"'><div id='mCSB_"+t.idx+"_container' class='mCSB_container' style='position:relative; top:"+n.setTop+"; left:"+n.setLeft+";' dir='"+t.langDir+"' /></div>");var d=se("#mCSB_"+t.idx),u=se("#mCSB_"+t.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||u.css("width",g(u)),"outside"===n.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),d.addClass("mCSB_outside").after(o)):(d.addClass("mCSB_inside").append(o),u.wrap(s)),y.call(this);var p=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")];p[0].css("min-height",p[0].height()),p[1].css("min-width",p[1].width())},g=function(e){var t=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return se(this).outerWidth(!0)}).get())],n=e.parent().width();return t[0]>n?t[0]:t[1]>n?t[1]:"100%"},_=function(){var e=se(this),t=e.data(L),n=t.opt,i=se("#mCSB_"+t.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},y=function(){var e=se(this),t=e.data(L),n=t.opt,i=se(".mCSB_"+t.idx+"_scrollbar:first"),r=re(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",a=["<a href='#' class='"+w[13]+"' "+r+" />","<a href='#' class='"+w[14]+"' "+r+" />","<a href='#' class='"+w[15]+"' "+r+" />","<a href='#' class='"+w[16]+"' "+r+" />"],o=["x"===n.axis?a[2]:a[0],"x"===n.axis?a[3]:a[1],a[2],a[3]];n.scrollButtons.enable&&i.prepend(o[0]).append(o[1]).next(".mCSB_scrollTools").prepend(o[2]).append(o[3])},b=function(){var e=se(this),t=e.data(L),n=se("#mCSB_"+t.idx),i=se("#mCSB_"+t.idx+"_container"),r=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")],a=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],o=[parseInt(r[0].css("min-height")),Math.round(a[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(a[1]*r[1].parent().width())],s=v&&o[1]<o[0]?o[0]:o[1],l=v&&o[3]<o[2]?o[2]:o[3];r[0].css({height:s,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":o[0]+"px"}),r[1].css({width:l,"max-width":r[1].parent().width()-10})},C=function(){var e=se(this),t=e.data(L),n=se("#mCSB_"+t.idx),i=se("#mCSB_"+t.idx+"_container"),r=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")],a=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],o=[a[0]/(r[0].parent().height()-r[0].height()),a[1]/(r[1].parent().width()-r[1].width())];t.scrollRatio={y:o[0],x:o[1]}},S=function(e,t,n){var i=n?w[0]+"_expanded":"",r=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(w[0]+" "+i),r.toggleClass(w[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(w[0]),r.removeClass(w[1])):(e.addClass(w[0]),r.addClass(w[1])))},x=function(){var e=se(this),t=e.data(L),n=se("#mCSB_"+t.idx),i=se("#mCSB_"+t.idx+"_container"),r=null==t.overflowed?i.height():i.outerHeight(!1),a=null==t.overflowed?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>r&&(r=o),s>a&&(a=s),[r>n.height(),a>n.width()]},k=function(){var e=se(this),t=e.data(L),n=t.opt,i=se("#mCSB_"+t.idx),r=se("#mCSB_"+t.idx+"_container"),a=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")];if(K(e),("x"!==n.axis&&!t.overflowed[0]||"y"===n.axis&&t.overflowed[0])&&(a[0].add(r).css("top",0),X(e,"_resetY")),"y"!==n.axis&&!t.overflowed[1]||"x"===n.axis&&t.overflowed[1]){var o=dx=0;"rtl"===t.langDir&&(o=i.width()-r.outerWidth(!1),dx=Math.abs(o/t.scrollRatio.x)),r.css("left",o),a[1].css("left",dx),X(e,"_resetX")}},D=function(){function e(){r=setTimeout(function(){se.event.special.mousewheel?(clearTimeout(r),A.call(t[0])):e()},100)}var t=se(this),n=t.data(L),i=n.opt;if(!n.bindEvents){if(o.call(this),i.contentTouchScroll&&E.call(this),O.call(this),i.mouseWheel.enable){var r;e()}N.call(this),B.call(this),i.advanced.autoScrollOnFocus&&R.call(this),i.scrollButtons.enable&&z.call(this),i.keyboard.enable&&Y.call(this),n.bindEvents=!0}},T=function(){var e=se(this),t=e.data(L),n=t.opt,i=L+"_"+t.idx,r=".mCSB_"+t.idx+"_scrollbar",a=se("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+r+" ."+w[12]+",#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+r+">a"),o=se("#mCSB_"+t.idx+"_container");n.advanced.releaseDraggableSelectors&&a.add(se(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&a.add(se(n.advanced.extraDraggableSelectors)),t.bindEvents&&(se(document).add(se(!q()||top.document)).unbind("."+i),a.each(function(){se(this).unbind("."+i)}),clearTimeout(e[0]._focusTimeout),te(e[0],"_focusTimeout"),clearTimeout(t.sequential.step),te(t.sequential,"step"),clearTimeout(o[0].onCompleteTimeout),te(o[0],"onCompleteTimeout"),t.bindEvents=!1)},$=function(e){var t=se(this),n=t.data(L),i=n.opt,r=se("#mCSB_"+n.idx+"_container_wrapper"),a=r.length?r:se("#mCSB_"+n.idx+"_container"),o=[se("#mCSB_"+n.idx+"_scrollbar_vertical"),se("#mCSB_"+n.idx+"_scrollbar_horizontal")],s=[o[0].find(".mCSB_dragger"),o[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!e?(o[0].add(s[0]).add(o[0].children("a")).css("display","block"),a.removeClass(w[8]+" "+w[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&s[0].css("display","none"),a.removeClass(w[10])):(o[0].css("display","none"),a.addClass(w[10])),a.addClass(w[8]))),"y"!==i.axis&&(n.overflowed[1]&&!e?(o[1].add(s[1]).add(o[1].children("a")).css("display","block"),a.removeClass(w[9]+" "+w[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&s[1].css("display","none"),a.removeClass(w[11])):(o[1].css("display","none"),a.addClass(w[11])),a.addClass(w[9]))),n.overflowed[0]||n.overflowed[1]?t.removeClass(w[5]):t.addClass(w[5])},H=function(e){var t=e.type,n=e.target.ownerDocument!==document&&null!==frameElement?[se(frameElement).offset().top,se(frameElement).offset().left]:null,i=q()&&e.target.ownerDocument!==top.document&&null!==frameElement?[se(e.view.frameElement).offset().top,se(e.view.frameElement).offset().left]:[0,0];switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return n?[e.originalEvent.pageY-n[0]+i[0],e.originalEvent.pageX-n[1]+i[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var r=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[r.screenY,r.screenX,a>1]:[r.pageY,r.pageX,a>1];default:return n?[e.pageY-n[0]+i[0],e.pageX-n[1]+i[1],!1]:[e.pageY,e.pageX,!1]}},o=function(){function r(e,t,n,i){if(f[0].idleTimer=u.scrollInertia<233?250:0,o.attr("id")===p[1])var r="x",a=(o[0].offsetLeft-t+i)*d.scrollRatio.x;else var r="y",a=(o[0].offsetTop-e+n)*d.scrollRatio.y;X(c,a.toString(),{dir:r,drag:!0})}var o,s,l,c=se(this),d=c.data(L),u=d.opt,e=L+"_"+d.idx,p=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],f=se("#mCSB_"+d.idx+"_container"),t=se("#"+p[0]+",#"+p[1]),n=u.advanced.releaseDraggableSelectors?t.add(se(u.advanced.releaseDraggableSelectors)):t,i=u.advanced.extraDraggableSelectors?se(!q()||top.document).add(se(u.advanced.extraDraggableSelectors)):se(!q()||top.document);t.bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){if(e.stopImmediatePropagation(),e.preventDefault(),ne(e)){j=!0,v&&(document.onselectstart=function(){return!1}),M.call(f,!1),K(c),o=se(this);var t=o.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left,r=o.height()+t.top,a=o.width()+t.left;r>n&&n>0&&a>i&&i>0&&(s=n,l=i),S(o,"active",u.autoExpandScrollbar)}}).bind("touchmove."+e,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=o.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left;r(s,l,n,i)}),se(document).add(i).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(e){if(o){var t=o.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left;if(s===n&&l===i)return;r(s,l,n,i)}}).add(n).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){o&&(S(o,"active",u.autoExpandScrollbar),o=null),j=!1,v&&(document.onselectstart=null),M.call(f,!0)})},E=function(){function t(e){if(!ie(e)||j||H(e)[2])return void(F=0);F=1,x=0,k=0,p=1,S.removeClass("mCS_touch_action");var t=E.offset();c=H(e)[0]-t.top,f=H(e)[1]-t.left,N=[H(e)[0],H(e)[1]]}function n(e){if(ie(e)&&!j&&!H(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!k||x)&&p)){g=Z();var t=$.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left,r="mcsLinearOut";if(A.push(n),P.push(i),N[2]=Math.abs(H(e)[0]-N[0]),N[3]=Math.abs(H(e)[1]-N[1]),D.overflowed[0])var a=O[0].parent().height()-O[0].height(),o=c-n>0&&n-c>-(a*D.scrollRatio.y)&&(2*N[3]<N[2]||"yx"===T.axis);if(D.overflowed[1])var s=O[1].parent().width()-O[1].width(),l=f-i>0&&i-f>-(s*D.scrollRatio.x)&&(2*N[2]<N[3]||"yx"===T.axis);o||l?(R||e.preventDefault(),x=1):(k=1,S.addClass("mCS_touch_action")),R&&e.preventDefault(),w="yx"===T.axis?[c-n,f-i]:"x"===T.axis?[null,f-i]:[c-n,null],E[0].idleTimer=250,D.overflowed[0]&&u(w[0],M,r,"y","all",!0),D.overflowed[1]&&u(w[1],M,r,"x",I,!0)}}function i(e){if(!ie(e)||j||H(e)[2])return void(F=0);F=1,e.stopImmediatePropagation(),K(S),v=Z();var t=$.offset();h=H(e)[0]-t.top,m=H(e)[1]-t.left,A=[],P=[]}function r(e){if(ie(e)&&!j&&!H(e)[2]){p=0,e.stopImmediatePropagation(),x=0,k=0,_=Z();var t=$.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left;if(!(_-g>30)){b=1e3/(_-v);var r="mcsEaseOut",a=2.5>b,o=a?[A[A.length-2],P[P.length-2]]:[0,0];y=a?[n-o[0],i-o[1]]:[n-h,i-m];var s=[Math.abs(y[0]),Math.abs(y[1])];b=a?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[b,b];var l=[Math.abs(E[0].offsetTop)-y[0]*d(s[0]/b[0],b[0]),Math.abs(E[0].offsetLeft)-y[1]*d(s[1]/b[1],b[1])];w="yx"===T.axis?[l[0],l[1]]:"x"===T.axis?[null,l[1]]:[l[0],null],C=[4*s[0]+T.scrollInertia,4*s[1]+T.scrollInertia];var c=parseInt(T.contentTouchScroll)||0;w[0]=s[0]>c?w[0]:0,w[1]=s[1]>c?w[1]:0,D.overflowed[0]&&u(w[0],C[0],r,"y",I,!1),D.overflowed[1]&&u(w[1],C[1],r,"x",I,!1)}}}function d(e,t){var n=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?n[0]:n[3]:e>60?t>3?n[3]:n[2]:e>30?t>8?n[1]:t>6?n[0]:t>4?t:n[2]:t>8?t:n[3]}function u(e,t,n,i,r,a){e&&X(S,e.toString(),{dur:t,scrollEasing:n,dir:i,overwrite:r,drag:a})}var p,c,f,h,m,v,g,_,y,b,w,C,x,k,S=se(this),D=S.data(L),T=D.opt,e=L+"_"+D.idx,$=se("#mCSB_"+D.idx),E=se("#mCSB_"+D.idx+"_container"),O=[se("#mCSB_"+D.idx+"_dragger_vertical"),se("#mCSB_"+D.idx+"_dragger_horizontal")],A=[],P=[],M=0,I="yx"===T.axis?"none":"all",N=[],a=E.find("iframe"),o=["touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,"touchmove."+e+" pointermove."+e+" MSPointerMove."+e,"touchend."+e+" pointerup."+e+" MSPointerUp."+e],R=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;E.bind(o[0],function(e){t(e)}).bind(o[1],function(e){n(e)}),$.bind(o[0],function(e){i(e)}).bind(o[2],function(e){r(e)}),a.length&&a.each(function(){se(this).bind("load",function(){q(this)&&se(this.contentDocument||this.contentWindow.document).bind(o[0],function(e){t(e),i(e)}).bind(o[1],function(e){n(e)}).bind(o[2],function(e){r(e)})})})},O=function(){function r(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function a(e,t,n){c.type=n&&o?"stepped":"stepless",c.scrollAmount=10,U(i,e,t,"mcsLinearOut",n?60:null)}var o,i=se(this),s=i.data(L),l=s.opt,c=s.sequential,e=L+"_"+s.idx,d=se("#mCSB_"+s.idx+"_container"),u=d.parent();d.bind("mousedown."+e,function(){F||o||(o=1,j=!0)}).add(document).bind("mousemove."+e,function(e){if(!F&&o&&r()){var t=d.offset(),n=H(e)[0]-t.top+d[0].offsetTop,i=H(e)[1]-t.left+d[0].offsetLeft;n>0&&n<u.height()&&i>0&&i<u.width()?c.step&&a("off",null,"stepped"):("x"!==l.axis&&s.overflowed[0]&&(0>n?a("on",38):n>u.height()&&a("on",40)),"y"!==l.axis&&s.overflowed[1]&&(0>i?a("on",37):i>u.width()&&a("on",39)))}}).bind("mouseup."+e+" dragend."+e,function(){F||(o&&(o=0,a("off",null)),j=!1)})},A=function(){function n(e,t){if(K(u),!I(u,e.target)){var n="auto"!==f.mouseWheel.deltaFactor?parseInt(f.mouseWheel.deltaFactor):v&&e.deltaFactor<100?100:e.deltaFactor||100,i=f.scrollInertia;if("x"===f.axis||"x"===f.mouseWheel.axis)var r="x",a=[Math.round(n*p.scrollRatio.x),parseInt(f.mouseWheel.scrollAmount)],o="auto"!==f.mouseWheel.scrollAmount?a[1]:a[0]>=h.width()?.9*h.width():a[0],s=Math.abs(se("#mCSB_"+p.idx+"_container")[0].offsetLeft),l=m[1][0].offsetLeft,c=m[1].parent().width()-m[1].width(),d="y"===f.mouseWheel.axis?e.deltaY||t:e.deltaX;else var r="y",a=[Math.round(n*p.scrollRatio.y),parseInt(f.mouseWheel.scrollAmount)],o="auto"!==f.mouseWheel.scrollAmount?a[1]:a[0]>=h.height()?.9*h.height():a[0],s=Math.abs(se("#mCSB_"+p.idx+"_container")[0].offsetTop),l=m[0][0].offsetTop,c=m[0].parent().height()-m[0].height(),d=e.deltaY||t;"y"===r&&!p.overflowed[0]||"x"===r&&!p.overflowed[1]||((f.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(d=-d),f.mouseWheel.normalizeDelta&&(d=0>d?-1:1),(d>0&&0!==l||0>d&&l!==c||f.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!f.mouseWheel.normalizeDelta&&(o=e.deltaFactor,i=17),X(u,(s-d*o).toString(),{dir:r,dur:i}))}}if(se(this).data(L)){var u=se(this),p=u.data(L),f=p.opt,e=L+"_"+p.idx,h=se("#mCSB_"+p.idx),m=[se("#mCSB_"+p.idx+"_dragger_vertical"),se("#mCSB_"+p.idx+"_dragger_horizontal")],t=se("#mCSB_"+p.idx+"_container").find("iframe");t.length&&t.each(function(){se(this).bind("load",function(){q(this)&&se(this.contentDocument||this.contentWindow.document).bind("mousewheel."+e,function(e,t){n(e,t)})})}),h.bind("mousewheel."+e,function(e,t){n(e,t)})}},P=new Object,q=function(e){var t=!1,n=!1,i=null;if(void 0===e?n="#empty":void 0!==se(e).attr("id")&&(n=se(e).attr("id")),n!==!1&&void 0!==P[n])return P[n];if(e){try{var r=e.contentDocument||e.contentWindow.document;i=r.body.innerHTML}catch(e){}t=null!==i}else{try{var r=top.document;i=r.body.innerHTML}catch(e){}t=null!==i}return n!==!1&&(P[n]=t),t},M=function(e){var t=this.find("iframe");if(t.length){var n=e?"auto":"none";t.css("pointer-events",n)}},I=function(e,t){var n=t.nodeName.toLowerCase(),i=e.data(L).opt.mouseWheel.disableOver,r=["select","textarea"];return se.inArray(n,i)>-1&&!(se.inArray(n,r)>-1&&!se(t).is(":focus"))},N=function(){var o,s=se(this),l=s.data(L),e=L+"_"+l.idx,c=se("#mCSB_"+l.idx+"_container"),d=c.parent(),t=se(".mCSB_"+l.idx+"_scrollbar ."+w[12]);t.bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){j=!0,se(e.target).hasClass("mCSB_dragger")||(o=1)}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){j=!1}).bind("click."+e,function(e){if(o&&(o=0,se(e.target).hasClass(w[12])||se(e.target).hasClass("mCSB_draggerRail"))){K(s);var t=se(this),n=t.find(".mCSB_dragger");if(t.parent(".mCSB_scrollTools_horizontal").length>0){if(!l.overflowed[1])return;var i="x",r=e.pageX>n.offset().left?-1:1,a=Math.abs(c[0].offsetLeft)-r*(.9*d.width())}else{if(!l.overflowed[0])return;var i="y",r=e.pageY>n.offset().top?-1:1,a=Math.abs(c[0].offsetTop)-r*(.9*d.height())}X(s,a.toString(),{dir:i,scrollEasing:"mcsEaseInOut"})}})},R=function(){var o=se(this),e=o.data(L),s=e.opt,t=L+"_"+e.idx,l=se("#mCSB_"+e.idx+"_container"),c=l.parent();l.bind("focusin."+t,function(){var r=se(document.activeElement),e=l.find(".mCustomScrollBox").length,a=0;r.is(s.advanced.autoScrollOnFocus)&&(K(o),clearTimeout(o[0]._focusTimeout),o[0]._focusTimer=e?(a+17)*e:0,o[0]._focusTimeout=setTimeout(function(){var e=[ae(r)[0],ae(r)[1]],t=[l[0].offsetTop,l[0].offsetLeft],n=[t[0]+e[0]>=0&&t[0]+e[0]<c.height()-r.outerHeight(!1),t[1]+e[1]>=0&&t[0]+e[1]<c.width()-r.outerWidth(!1)],i="yx"!==s.axis||n[0]||n[1]?"all":"none";"x"===s.axis||n[0]||X(o,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:i,dur:a}),"y"===s.axis||n[1]||X(o,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:i,dur:a})},o[0]._focusTimer))})},B=function(){var e=se(this),t=e.data(L),n=L+"_"+t.idx,i=se("#mCSB_"+t.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||se(".mCSB_"+t.idx+"_scrollbar").css("visibility","hidden")})},z=function(){var i=se(this),r=i.data(L),a=r.opt,o=r.sequential,e=L+"_"+r.idx,t=".mCSB_"+r.idx+"_scrollbar",n=se(t+">a");n.bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e+" mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e+" mouseout."+e+" pointerout."+e+" MSPointerOut."+e+" click."+e,function(e){function t(e,t){o.scrollAmount=a.scrollButtons.scrollAmount,U(i,e,t)}if(e.preventDefault(),ne(e)){var n=se(this).attr("class");switch(o.type=a.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===o.type)return;j=!0,r.tweenRunning=!1,t("on",n);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===o.type)return;j=!1,o.dir&&t("off",n);break;case"click":if("stepped"!==o.type||r.tweenRunning)return;t("on",n)}}})},Y=function(){function t(e){function t(e,t){d.type=c.keyboard.scrollType,d.scrollAmount=c.keyboard.scrollAmount,"stepped"===d.type&&l.tweenRunning||U(s,e,t)}switch(e.type){case"blur":l.tweenRunning&&d.dir&&t("off",null);break;case"keydown":case"keyup":var n=e.keyCode?e.keyCode:e.which,i="on";if("x"!==c.axis&&(38===n||40===n)||"y"!==c.axis&&(37===n||39===n)){if((38===n||40===n)&&!l.overflowed[0]||(37===n||39===n)&&!l.overflowed[1])return;"keyup"===e.type&&(i="off"),se(document.activeElement).is(f)||(e.preventDefault(),e.stopImmediatePropagation(),t(i,n))}else if(33===n||34===n){if((l.overflowed[0]||l.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){K(s);var r=34===n?-1:1;if("x"===c.axis||"yx"===c.axis&&l.overflowed[1]&&!l.overflowed[0])var a="x",o=Math.abs(u[0].offsetLeft)-r*(.9*p.width());else var a="y",o=Math.abs(u[0].offsetTop)-r*(.9*p.height());X(s,o.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})}}else if((35===n||36===n)&&!se(document.activeElement).is(f)&&((l.overflowed[0]||l.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===c.axis||"yx"===c.axis&&l.overflowed[1]&&!l.overflowed[0])var a="x",o=35===n?Math.abs(p.width()-u.outerWidth(!1)):0;else var a="y",o=35===n?Math.abs(p.height()-u.outerHeight(!1)):0;X(s,o.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})}}}var s=se(this),l=s.data(L),c=l.opt,d=l.sequential,e=L+"_"+l.idx,n=se("#mCSB_"+l.idx),u=se("#mCSB_"+l.idx+"_container"),p=u.parent(),f="input,textarea,select,datalist,keygen,[contenteditable='true']",i=u.find("iframe"),r=["blur."+e+" keydown."+e+" keyup."+e];i.length&&i.each(function(){se(this).bind("load",function(){q(this)&&se(this.contentDocument||this.contentWindow.document).bind(r[0],function(e){t(e)})})}),n.attr("tabindex","0").bind(r[0],function(e){t(e)})},U=function(u,e,t,p,f){function h(e){v.snapAmount&&(g.scrollAmount=v.snapAmount instanceof Array?"x"===g.dir[0]?v.snapAmount[1]:v.snapAmount[0]:v.snapAmount);var t="stepped"!==g.type,n=f?f:e?t?y/1.5:b:1e3/60,i=e?t?7.5:40:2.5,r=[Math.abs(_[0].offsetTop),Math.abs(_[0].offsetLeft)],a=[m.scrollRatio.y>10?10:m.scrollRatio.y,m.scrollRatio.x>10?10:m.scrollRatio.x],o="x"===g.dir[0]?r[1]+g.dir[1]*(a[1]*i):r[0]+g.dir[1]*(a[0]*i),s="x"===g.dir[0]?r[1]+g.dir[1]*parseInt(g.scrollAmount):r[0]+g.dir[1]*parseInt(g.scrollAmount),l="auto"!==g.scrollAmount?s:o,c=p?p:e?t?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",d=!!e;return e&&17>n&&(l="x"===g.dir[0]?r[1]:r[0]),X(u,l.toString(),{dir:g.dir[0],scrollEasing:c,dur:n,onComplete:d}),e?void(g.dir=!1):(clearTimeout(g.step),void(g.step=setTimeout(function(){h()},n)))}function n(){clearTimeout(g.step),te(g,"step"),K(u)}var m=u.data(L),v=m.opt,g=m.sequential,_=se("#mCSB_"+m.idx+"_container"),i="stepped"===g.type,y=v.scrollInertia<26?26:v.scrollInertia,b=v.scrollInertia<1?17:v.scrollInertia;switch(e){case"on":if(g.dir=[t===w[16]||t===w[15]||39===t||37===t?"x":"y",t===w[13]||t===w[15]||38===t||37===t?-1:1],K(u),re(t)&&"stepped"===g.type)return;h(i);break;case"off":n(),(i||m.tweenRunning&&g.dir)&&h(!0)}},W=function(e){var t=se(this).data(L).opt,n=[];return"function"==typeof e&&(e=e()),e instanceof Array?n=e.length>1?[e[0],e[1]]:"x"===t.axis?[null,e[0]]:[e[0],null]:(n[0]=e.y?e.y:e.x||"x"===t.axis?null:e,n[1]=e.x?e.x:e.y||"y"===t.axis?null:e),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},V=function(e,t){if(null!=e&&"undefined"!=typeof e){var n=se(this),i=n.data(L),r=i.opt,a=se("#mCSB_"+i.idx+"_container"),o=a.parent(),s=typeof e;t||(t="x"===r.axis?"x":"y");var l="x"===t?a.outerWidth(!1)-o.width():a.outerHeight(!1)-o.height(),c="x"===t?a[0].offsetLeft:a[0].offsetTop,d="x"===t?"left":"top";switch(s){case"function":return e();case"object":var u=e.jquery?e:se(e);if(!u.length)return;return"x"===t?ae(u)[1]:ae(u)[0];case"string":case"number":if(re(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(l*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(c-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var p=c+parseInt(e.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==e.indexOf("px")&&re(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(o.height()-a.outerHeight(!1));if("right"===e)return Math.abs(o.width()-a.outerWidth(!1));if("first"===e||"last"===e){var u=a.find(":"+e);return"x"===t?ae(u)[1]:ae(u)[0]}return se(e).length?"x"===t?ae(se(e))[1]:ae(se(e))[0]:(a.css(d,e),void h.update.call(null,n[0]))}}},J=function(e){function t(){return clearTimeout(l[0].autoUpdate),0===a.parents("html").length?void(a=null):void(l[0].autoUpdate=setTimeout(function(){return s.advanced.updateOnSelectorChange&&(o.poll.change.n=i(),o.poll.change.n!==o.poll.change.o)?(o.poll.change.o=o.poll.change.n,void r(3)):s.advanced.updateOnContentResize&&(o.poll.size.n=a[0].scrollHeight+a[0].scrollWidth+l[0].offsetHeight+a[0].offsetHeight+a[0].offsetWidth,o.poll.size.n!==o.poll.size.o)?(o.poll.size.o=o.poll.size.n,void r(1)):!s.advanced.updateOnImageLoad||"auto"===s.advanced.updateOnImageLoad&&"y"===s.axis||(o.poll.img.n=l.find("img").length,o.poll.img.n===o.poll.img.o)?void((s.advanced.updateOnSelectorChange||s.advanced.updateOnContentResize||s.advanced.updateOnImageLoad)&&t()):(o.poll.img.o=o.poll.img.n,void l.find("img").each(function(){n(this)}))},s.advanced.autoUpdateTimeout))}function n(e){function t(e,t){return function(){return t.apply(e,arguments)}}function n(){this.onload=null,se(e).addClass(w[2]),r(2)}if(se(e).hasClass(w[2]))return void r();var i=new Image;i.onload=t(i,n),i.src=e.src}function i(){s.advanced.updateOnSelectorChange===!0&&(s.advanced.updateOnSelectorChange="*");var e=0,t=l.find(s.advanced.updateOnSelectorChange);return s.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(l[0].autoUpdate),h.update.call(null,a[0],e)}var a=se(this),o=a.data(L),s=o.opt,l=se("#mCSB_"+o.idx+"_container");return e?(clearTimeout(l[0].autoUpdate),void te(l[0],"autoUpdate")):void t()},G=function(e,t,n){return Math.round(e/t)*t-n},K=function(e){var t=e.data(L),n=se("#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal");n.each(function(){ee.call(this)})},X=function(r,e,a){function t(e){return o&&s.callbacks[e]&&"function"==typeof s.callbacks[e]}function n(){return[s.callbacks.alwaysTriggerOffsets||_>=y[0]+w,s.callbacks.alwaysTriggerOffsets||-C>=_]}function i(){var e=[u[0].offsetTop,u[0].offsetLeft],t=[v[0].offsetTop,v[0].offsetLeft],n=[u.outerHeight(!1),u.outerWidth(!1)],i=[d.height(),d.width()];r[0].mcs={content:u,top:e[0],left:e[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:a.dir}}var o=r.data(L),s=o.opt,l={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:s.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=se.extend(l,a),c=[a.dur,a.drag?0:a.dur],d=se("#mCSB_"+o.idx),u=se("#mCSB_"+o.idx+"_container"),p=u.parent(),f=s.callbacks.onTotalScrollOffset?W.call(r,s.callbacks.onTotalScrollOffset):[0,0],h=s.callbacks.onTotalScrollBackOffset?W.call(r,s.callbacks.onTotalScrollBackOffset):[0,0];if(o.trigger=a.trigger,0===p.scrollTop()&&0===p.scrollLeft()||(se(".mCSB_"+o.idx+"_scrollbar").css("visibility","visible"),p.scrollTop(0).scrollLeft(0)),"_resetY"!==e||o.contentReset.y||(t("onOverflowYNone")&&s.callbacks.onOverflowYNone.call(r[0]),o.contentReset.y=1),"_resetX"!==e||o.contentReset.x||(t("onOverflowXNone")&&s.callbacks.onOverflowXNone.call(r[0]),o.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){if(!o.contentReset.y&&r[0].mcs||!o.overflowed[0]||(t("onOverflowY")&&s.callbacks.onOverflowY.call(r[0]),o.contentReset.x=null),!o.contentReset.x&&r[0].mcs||!o.overflowed[1]||(t("onOverflowX")&&s.callbacks.onOverflowX.call(r[0]),o.contentReset.x=null),s.snapAmount){var m=s.snapAmount instanceof Array?"x"===a.dir?s.snapAmount[1]:s.snapAmount[0]:s.snapAmount;e=G(e,m,s.snapOffset)}switch(a.dir){case"x":var v=se("#mCSB_"+o.idx+"_dragger_horizontal"),g="left",_=u[0].offsetLeft,y=[d.width()-u.outerWidth(!1),v.parent().width()-v.width()],b=[e,0===e?0:e/o.scrollRatio.x],w=f[1],C=h[1],x=w>0?w/o.scrollRatio.x:0,k=C>0?C/o.scrollRatio.x:0;break;case"y":var v=se("#mCSB_"+o.idx+"_dragger_vertical"),g="top",_=u[0].offsetTop,y=[d.height()-u.outerHeight(!1),v.parent().height()-v.height()],b=[e,0===e?0:e/o.scrollRatio.y],w=f[0],C=h[0],x=w>0?w/o.scrollRatio.y:0,k=C>0?C/o.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=y[1]?b=[y[0],y[1]]:b[0]=-b[0],r[0].mcs||(i(),t("onInit")&&s.callbacks.onInit.call(r[0])),clearTimeout(u[0].onCompleteTimeout),Q(v[0],g,Math.round(b[1]),c[1],a.scrollEasing),!o.tweenRunning&&(0===_&&b[0]>=0||_===y[0]&&b[0]<=y[0])||Q(u[0],g,Math.round(b[0]),c[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!o.tweenRunning&&(t("onScrollStart")&&(i(),s.callbacks.onScrollStart.call(r[0])),o.tweenRunning=!0,S(v),o.cbOffsets=n())},onUpdate:function(){a.callbacks&&a.onUpdate&&t("whileScrolling")&&(i(),s.callbacks.whileScrolling.call(r[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===s.axis&&clearTimeout(u[0].onCompleteTimeout);var e=u[0].idleTimer||0;u[0].onCompleteTimeout=setTimeout(function(){t("onScroll")&&(i(),s.callbacks.onScroll.call(r[0])),t("onTotalScroll")&&b[1]>=y[1]-x&&o.cbOffsets[0]&&(i(),s.callbacks.onTotalScroll.call(r[0])),t("onTotalScrollBack")&&b[1]<=k&&o.cbOffsets[1]&&(i(),s.callbacks.onTotalScrollBack.call(r[0])),o.tweenRunning=!1,u[0].idleTimer=0,S(v,"hide")},e)}}})}},Q=function(e,t,n,i,r,a,o){function s(){w.stop||(_||h.call(),_=Z()-g,l(),_>=w.time&&(w.time=_>w.time?_+p-(_-w.time):_+p-1,w.time<_+1&&(w.time=_+1)),w.time<i?w.id=f(s):v.call())}function l(){i>0?(w.currVal=u(w.time,y,C,i,r),b[t]=Math.round(w.currVal)+"px"):b[t]=n+"px",m.call()}function c(){p=1e3/60,w.time=_+p,f=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},w.id=f(s)}function d(){null!=w.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(w.id):clearTimeout(w.id),w.id=null)}function u(e,t,n,i,r){switch(r){case"linear":case"mcsLinear":return n*e/i+t;case"mcsLinearOut":return e/=i,e--,n*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=i/2,1>e?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=i/2,1>e?n/2*Math.pow(2,10*(e-1))+t:(e--,n/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=i/2,1>e?n/2*e*e*e+t:(e-=2,n/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=i,e--,-n*(e*e*e*e-1)+t;case"easeOutStrong":return n*(-Math.pow(2,-10*e/i)+1)+t;case"easeOut":case"mcsEaseOut":default:var a=(e/=i)*e,o=a*e;return t+n*(.499999999999997*o*a+-2.5*a*a+5.5*o+-6.5*a+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var p,f,o=o||{},h=o.onStart||function(){},m=o.onUpdate||function(){},v=o.onComplete||function(){},g=Z(),_=0,y=e.offsetTop,b=e.style,w=e._mTween[t];"left"===t&&(y=e.offsetLeft);var C=n-y;w.stop=0,"none"!==a&&d(),c()},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},ee=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],n=0;n<t.length;n++){var i=t[n];e._mTween[i].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[i].id):clearTimeout(e._mTween[i].id),e._mTween[i].id=null,e._mTween[i].stop=1)}},te=function(t,n){try{delete t[n]}catch(e){t[n]=null}},ne=function(e){return!(e.which&&1!==e.which)},ie=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},re=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},oe=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};se.fn[f]=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void se.error("Method "+e+" does not exist"):h.init.apply(this,arguments)},se[f]=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void se.error("Method "+e+" does not exist"):h.init.apply(this,arguments)},se[f].defaults=r,window[f]=!0,se(window).bind("load",function(){se(i)[f](),se.extend(se.expr[":"],{mcsInView:se.expr[":"].mcsInView||function(e){var t,n,i=se(e),r=i.parents(".mCSB_container");if(r.length)return t=r.parent(),n=[r[0].offsetTop,r[0].offsetLeft],n[0]+ae(i)[0]>=0&&n[0]+ae(i)[0]<t.height()-i.outerHeight(!1)&&n[1]+ae(i)[1]>=0&&n[1]+ae(i)[1]<t.width()-i.outerWidth(!1)},mcsInSight:se.expr[":"].mcsInSight||function(e,t,n){var i,r,a,o,s=se(e),l=s.parents(".mCSB_container"),c="exact"===n[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(l.length)return i=[s.outerHeight(!1),s.outerWidth(!1)],a=[l[0].offsetTop+ae(s)[0],l[0].offsetLeft+ae(s)[1]],r=[l.parent()[0].offsetHeight,l.parent()[0].offsetWidth],o=[i[0]<r[0]?c[0]:c[1],i[1]<r[1]?c[0]:c[1]],a[0]-r[0]*o[0][0]<0&&a[0]+i[0]-r[0]*o[0][1]>=0&&a[1]-r[1]*o[1][0]<0&&a[1]+i[1]-r[1]*o[1][1]>=0},mcsOverflow:se.expr[":"].mcsOverflow||function(e){var t=se(e).data(L);if(t)return t.overflowed[0]||t.overflowed[1]}})})})});!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(se){!function(e){var t="function"==typeof define&&define.amd,n="undefined"!=typeof module&&module.exports,i="https:"==document.location.protocol?"https:":"http:",r="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";t||(n?require("jquery-mousewheel")(se):se.event.special.mousewheel||se("head").append(decodeURI("%3Cscript src="+i+"//"+r+"%3E%3C/script%3E"))),e()}(function(){var F,f="mCustomScrollbar",L="mCS",i=".mCustomScrollbar",r={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},s=0,a={},v=window.attachEvent&&!window.addEventListener?1:0,j=!1,w=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],h={init:function(o){var o=se.extend(!0,{},r,o),e=c.call(this);if(o.live){var t=o.liveSelector||this.selector||i,n=se(t);if("off"===o.live)return void d(t);a[t]=setTimeout(function(){n.mCustomScrollbar(o),"once"===o.live&&n.length&&d(t)},500)}else d(t);return o.setWidth=o.set_width?o.set_width:o.setWidth,o.setHeight=o.set_height?o.set_height:o.setHeight,o.axis=o.horizontalScroll?"x":u(o.axis),o.scrollInertia=o.scrollInertia>0&&o.scrollInertia<17?17:o.scrollInertia,"object"!=typeof o.mouseWheel&&1==o.mouseWheel&&(o.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),o.mouseWheel.scrollAmount=o.mouseWheelPixels?o.mouseWheelPixels:o.mouseWheel.scrollAmount,o.mouseWheel.normalizeDelta=o.advanced.normalizeMouseWheelDelta?o.advanced.normalizeMouseWheelDelta:o.mouseWheel.normalizeDelta,o.scrollButtons.scrollType=p(o.scrollButtons.scrollType),l(o),se(e).each(function(){var e=se(this);if(!e.data(L)){e.data(L,{idx:++s,opt:o,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:e.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var t=e.data(L),n=t.opt,i=e.data("mcs-axis"),r=e.data("mcs-scrollbar-position"),a=e.data("mcs-theme");i&&(n.axis=i),r&&(n.scrollbarPosition=r),a&&(n.theme=a,l(n)),m.call(this),t&&n.callbacks.onCreate&&"function"==typeof n.callbacks.onCreate&&n.callbacks.onCreate.call(this),se("#mCSB_"+t.idx+"_container img:not(."+w[2]+")").addClass(w[2]),h.update.call(null,e)}})},update:function(e,s){var t=e||c.call(this);return se(t).each(function(){var e=se(this);if(e.data(L)){var t=e.data(L),n=t.opt,i=se("#mCSB_"+t.idx+"_container"),r=se("#mCSB_"+t.idx),a=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")];if(!i.length)return;t.tweenRunning&&K(e),s&&t&&n.callbacks.onBeforeUpdate&&"function"==typeof n.callbacks.onBeforeUpdate&&n.callbacks.onBeforeUpdate.call(this),e.hasClass(w[3])&&e.removeClass(w[3]),e.hasClass(w[4])&&e.removeClass(w[4]),r.css("max-height","none"),r.height()!==e.height()&&r.css("max-height",e.height()),_.call(this),"y"===n.axis||n.advanced.autoExpandHorizontalScroll||i.css("width",g(i)),t.overflowed=x.call(this),$.call(this),n.autoDraggerLength&&b.call(this),C.call(this),D.call(this);var o=[Math.abs(i[0].offsetTop),Math.abs(i[0].offsetLeft)];"x"!==n.axis&&(t.overflowed[0]?a[0].height()>a[0].parent().height()?k.call(this):(X(e,o[0].toString(),{dir:"y",dur:0,overwrite:"none"}),t.contentReset.y=null):(k.call(this),"y"===n.axis?T.call(this):"yx"===n.axis&&t.overflowed[1]&&X(e,o[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==n.axis&&(t.overflowed[1]?a[1].width()>a[1].parent().width()?k.call(this):(X(e,o[1].toString(),{dir:"x",dur:0,overwrite:"none"}),t.contentReset.x=null):(k.call(this),"x"===n.axis?T.call(this):"yx"===n.axis&&t.overflowed[0]&&X(e,o[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),s&&t&&(2===s&&n.callbacks.onImageLoad&&"function"==typeof n.callbacks.onImageLoad?n.callbacks.onImageLoad.call(this):3===s&&n.callbacks.onSelectorChange&&"function"==typeof n.callbacks.onSelectorChange?n.callbacks.onSelectorChange.call(this):n.callbacks.onUpdate&&"function"==typeof n.callbacks.onUpdate&&n.callbacks.onUpdate.call(this)),J.call(this)}})},scrollTo:function(s,l){if("undefined"!=typeof s&&null!=s){var e=c.call(this);return se(e).each(function(){var e=se(this);if(e.data(L)){var t=e.data(L),n=t.opt,i={trigger:"external",scrollInertia:n.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},r=se.extend(!0,{},i,l),a=W.call(this,s),o=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia;a[0]=V.call(this,a[0],"y"),a[1]=V.call(this,a[1],"x"),r.moveDragger&&(a[0]*=t.scrollRatio.y,a[1]*=t.scrollRatio.x),r.dur=oe()?0:o,setTimeout(function(){null!==a[0]&&"undefined"!=typeof a[0]&&"x"!==n.axis&&t.overflowed[0]&&(r.dir="y",r.overwrite="all",X(e,a[0].toString(),r)),null!==a[1]&&"undefined"!=typeof a[1]&&"y"!==n.axis&&t.overflowed[1]&&(r.dir="x",r.overwrite="none",X(e,a[1].toString(),r))},r.timeout)}})}},stop:function(){var e=c.call(this);return se(e).each(function(){var e=se(this);e.data(L)&&K(e)})},disable:function(t){var e=c.call(this);return se(e).each(function(){var e=se(this);if(e.data(L)){e.data(L);J.call(this,"remove"),T.call(this),t&&k.call(this),$.call(this,!0),e.addClass(w[3])}})},destroy:function(){var o=c.call(this);return se(o).each(function(){var e=se(this);if(e.data(L)){var t=e.data(L),n=t.opt,i=se("#mCSB_"+t.idx),r=se("#mCSB_"+t.idx+"_container"),a=se(".mCSB_"+t.idx+"_scrollbar");n.live&&d(n.liveSelector||se(o).selector),J.call(this,"remove"),T.call(this),k.call(this),e.removeData(L),te(this,"mcs"),a.remove(),r.find("img."+w[2]).removeClass(w[2]),i.replaceWith(r.contents()),e.removeClass(f+" _"+L+"_"+t.idx+" "+w[6]+" "+w[7]+" "+w[5]+" "+w[3]).addClass(w[4])}})}},c=function(){return"object"!=typeof se(this)||se(this).length<1?i:this},l=function(e){var t=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],n=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"],a=["minimal","minimal-dark"];e.autoDraggerLength=se.inArray(e.theme,t)>-1?!1:e.autoDraggerLength,e.autoExpandScrollbar=se.inArray(e.theme,n)>-1?!1:e.autoExpandScrollbar,e.scrollButtons.enable=se.inArray(e.theme,i)>-1?!1:e.scrollButtons.enable,e.autoHideScrollbar=se.inArray(e.theme,r)>-1?!0:e.autoHideScrollbar,e.scrollbarPosition=se.inArray(e.theme,a)>-1?"outside":e.scrollbarPosition},d=function(e){a[e]&&(clearTimeout(a[e]),te(a,e))},u=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},p=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},m=function(){var e=se(this),t=e.data(L),n=t.opt,i=n.autoExpandScrollbar?" "+w[1]+"_expand":"",r=["<div id='mCSB_"+t.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_vertical"+i+"'><div class='"+w[12]+"'><div id='mCSB_"+t.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+t.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+n.theme+" mCSB_scrollTools_horizontal"+i+"'><div class='"+w[12]+"'><div id='mCSB_"+t.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],a="yx"===n.axis?"mCSB_vertical_horizontal":"x"===n.axis?"mCSB_horizontal":"mCSB_vertical",o="yx"===n.axis?r[0]+r[1]:"x"===n.axis?r[1]:r[0],s="yx"===n.axis?"<div id='mCSB_"+t.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",l=n.autoHideScrollbar?" "+w[6]:"",c="x"!==n.axis&&"rtl"===t.langDir?" "+w[7]:"";n.setWidth&&e.css("width",n.setWidth),n.setHeight&&e.css("height",n.setHeight),n.setLeft="y"!==n.axis&&"rtl"===t.langDir?"989999px":n.setLeft,e.addClass(f+" _"+L+"_"+t.idx+l+c).wrapInner("<div id='mCSB_"+t.idx+"' class='mCustomScrollBox mCS-"+n.theme+" "+a+"'><div id='mCSB_"+t.idx+"_container' class='mCSB_container' style='position:relative; top:"+n.setTop+"; left:"+n.setLeft+";' dir='"+t.langDir+"' /></div>");var d=se("#mCSB_"+t.idx),u=se("#mCSB_"+t.idx+"_container");"y"===n.axis||n.advanced.autoExpandHorizontalScroll||u.css("width",g(u)),"outside"===n.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),d.addClass("mCSB_outside").after(o)):(d.addClass("mCSB_inside").append(o),u.wrap(s)),y.call(this);var p=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")];p[0].css("min-height",p[0].height()),p[1].css("min-width",p[1].width())},g=function(e){var t=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return se(this).outerWidth(!0)}).get())],n=e.parent().width();return t[0]>n?t[0]:t[1]>n?t[1]:"100%"},_=function(){var e=se(this),t=e.data(L),n=t.opt,i=se("#mCSB_"+t.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},y=function(){var e=se(this),t=e.data(L),n=t.opt,i=se(".mCSB_"+t.idx+"_scrollbar:first"),r=re(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",a=["<a href='#' class='"+w[13]+"' "+r+" />","<a href='#' class='"+w[14]+"' "+r+" />","<a href='#' class='"+w[15]+"' "+r+" />","<a href='#' class='"+w[16]+"' "+r+" />"],o=["x"===n.axis?a[2]:a[0],"x"===n.axis?a[3]:a[1],a[2],a[3]];n.scrollButtons.enable&&i.prepend(o[0]).append(o[1]).next(".mCSB_scrollTools").prepend(o[2]).append(o[3])},b=function(){var e=se(this),t=e.data(L),n=se("#mCSB_"+t.idx),i=se("#mCSB_"+t.idx+"_container"),r=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")],a=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],o=[parseInt(r[0].css("min-height")),Math.round(a[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(a[1]*r[1].parent().width())],s=v&&o[1]<o[0]?o[0]:o[1],l=v&&o[3]<o[2]?o[2]:o[3];r[0].css({height:s,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":o[0]+"px"}),r[1].css({width:l,"max-width":r[1].parent().width()-10})},C=function(){var e=se(this),t=e.data(L),n=se("#mCSB_"+t.idx),i=se("#mCSB_"+t.idx+"_container"),r=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")],a=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],o=[a[0]/(r[0].parent().height()-r[0].height()),a[1]/(r[1].parent().width()-r[1].width())];t.scrollRatio={y:o[0],x:o[1]}},S=function(e,t,n){var i=n?w[0]+"_expanded":"",r=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(w[0]+" "+i),r.toggleClass(w[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(w[0]),r.removeClass(w[1])):(e.addClass(w[0]),r.addClass(w[1])))},x=function(){var e=se(this),t=e.data(L),n=se("#mCSB_"+t.idx),i=se("#mCSB_"+t.idx+"_container"),r=null==t.overflowed?i.height():i.outerHeight(!1),a=null==t.overflowed?i.width():i.outerWidth(!1),o=i[0].scrollHeight,s=i[0].scrollWidth;return o>r&&(r=o),s>a&&(a=s),[r>n.height(),a>n.width()]},k=function(){var e=se(this),t=e.data(L),n=t.opt,i=se("#mCSB_"+t.idx),r=se("#mCSB_"+t.idx+"_container"),a=[se("#mCSB_"+t.idx+"_dragger_vertical"),se("#mCSB_"+t.idx+"_dragger_horizontal")];if(K(e),("x"!==n.axis&&!t.overflowed[0]||"y"===n.axis&&t.overflowed[0])&&(a[0].add(r).css("top",0),X(e,"_resetY")),"y"!==n.axis&&!t.overflowed[1]||"x"===n.axis&&t.overflowed[1]){var o=dx=0;"rtl"===t.langDir&&(o=i.width()-r.outerWidth(!1),dx=Math.abs(o/t.scrollRatio.x)),r.css("left",o),a[1].css("left",dx),X(e,"_resetX")}},D=function(){function e(){r=setTimeout(function(){se.event.special.mousewheel?(clearTimeout(r),A.call(t[0])):e()},100)}var t=se(this),n=t.data(L),i=n.opt;if(!n.bindEvents){if(o.call(this),i.contentTouchScroll&&E.call(this),O.call(this),i.mouseWheel.enable){var r;e()}N.call(this),B.call(this),i.advanced.autoScrollOnFocus&&R.call(this),i.scrollButtons.enable&&z.call(this),i.keyboard.enable&&Y.call(this),n.bindEvents=!0}},T=function(){var e=se(this),t=e.data(L),n=t.opt,i=L+"_"+t.idx,r=".mCSB_"+t.idx+"_scrollbar",a=se("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+r+" ."+w[12]+",#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+r+">a"),o=se("#mCSB_"+t.idx+"_container");n.advanced.releaseDraggableSelectors&&a.add(se(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&a.add(se(n.advanced.extraDraggableSelectors)),t.bindEvents&&(se(document).add(se(!q()||top.document)).unbind("."+i),a.each(function(){se(this).unbind("."+i)}),clearTimeout(e[0]._focusTimeout),te(e[0],"_focusTimeout"),clearTimeout(t.sequential.step),te(t.sequential,"step"),clearTimeout(o[0].onCompleteTimeout),te(o[0],"onCompleteTimeout"),t.bindEvents=!1)},$=function(e){var t=se(this),n=t.data(L),i=n.opt,r=se("#mCSB_"+n.idx+"_container_wrapper"),a=r.length?r:se("#mCSB_"+n.idx+"_container"),o=[se("#mCSB_"+n.idx+"_scrollbar_vertical"),se("#mCSB_"+n.idx+"_scrollbar_horizontal")],s=[o[0].find(".mCSB_dragger"),o[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!e?(o[0].add(s[0]).add(o[0].children("a")).css("display","block"),a.removeClass(w[8]+" "+w[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&s[0].css("display","none"),a.removeClass(w[10])):(o[0].css("display","none"),a.addClass(w[10])),a.addClass(w[8]))),"y"!==i.axis&&(n.overflowed[1]&&!e?(o[1].add(s[1]).add(o[1].children("a")).css("display","block"),a.removeClass(w[9]+" "+w[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&s[1].css("display","none"),a.removeClass(w[11])):(o[1].css("display","none"),a.addClass(w[11])),a.addClass(w[9]))),n.overflowed[0]||n.overflowed[1]?t.removeClass(w[5]):t.addClass(w[5])},H=function(e){var t=e.type,n=e.target.ownerDocument!==document&&null!==frameElement?[se(frameElement).offset().top,se(frameElement).offset().left]:null,i=q()&&e.target.ownerDocument!==top.document&&null!==frameElement?[se(e.view.frameElement).offset().top,se(e.view.frameElement).offset().left]:[0,0];switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return n?[e.originalEvent.pageY-n[0]+i[0],e.originalEvent.pageX-n[1]+i[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var r=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[r.screenY,r.screenX,a>1]:[r.pageY,r.pageX,a>1];default:return n?[e.pageY-n[0]+i[0],e.pageX-n[1]+i[1],!1]:[e.pageY,e.pageX,!1]}},o=function(){function r(e,t,n,i){if(f[0].idleTimer=u.scrollInertia<233?250:0,o.attr("id")===p[1])var r="x",a=(o[0].offsetLeft-t+i)*d.scrollRatio.x;else var r="y",a=(o[0].offsetTop-e+n)*d.scrollRatio.y;X(c,a.toString(),{dir:r,drag:!0})}var o,s,l,c=se(this),d=c.data(L),u=d.opt,e=L+"_"+d.idx,p=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],f=se("#mCSB_"+d.idx+"_container"),t=se("#"+p[0]+",#"+p[1]),n=u.advanced.releaseDraggableSelectors?t.add(se(u.advanced.releaseDraggableSelectors)):t,i=u.advanced.extraDraggableSelectors?se(!q()||top.document).add(se(u.advanced.extraDraggableSelectors)):se(!q()||top.document);t.bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){if(e.stopImmediatePropagation(),e.preventDefault(),ne(e)){j=!0,v&&(document.onselectstart=function(){return!1}),M.call(f,!1),K(c),o=se(this);var t=o.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left,r=o.height()+t.top,a=o.width()+t.left;r>n&&n>0&&a>i&&i>0&&(s=n,l=i),S(o,"active",u.autoExpandScrollbar)}}).bind("touchmove."+e,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=o.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left;r(s,l,n,i)}),se(document).add(i).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(e){if(o){var t=o.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left;if(s===n&&l===i)return;r(s,l,n,i)}}).add(n).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){o&&(S(o,"active",u.autoExpandScrollbar),o=null),j=!1,v&&(document.onselectstart=null),M.call(f,!0)})},E=function(){function t(e){if(!ie(e)||j||H(e)[2])return void(F=0);F=1,x=0,k=0,p=1,S.removeClass("mCS_touch_action");var t=E.offset();c=H(e)[0]-t.top,f=H(e)[1]-t.left,N=[H(e)[0],H(e)[1]]}function n(e){if(ie(e)&&!j&&!H(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!k||x)&&p)){g=Z();var t=$.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left,r="mcsLinearOut";if(A.push(n),P.push(i),N[2]=Math.abs(H(e)[0]-N[0]),N[3]=Math.abs(H(e)[1]-N[1]),D.overflowed[0])var a=O[0].parent().height()-O[0].height(),o=c-n>0&&n-c>-(a*D.scrollRatio.y)&&(2*N[3]<N[2]||"yx"===T.axis);if(D.overflowed[1])var s=O[1].parent().width()-O[1].width(),l=f-i>0&&i-f>-(s*D.scrollRatio.x)&&(2*N[2]<N[3]||"yx"===T.axis);o||l?(R||e.preventDefault(),x=1):(k=1,S.addClass("mCS_touch_action")),R&&e.preventDefault(),w="yx"===T.axis?[c-n,f-i]:"x"===T.axis?[null,f-i]:[c-n,null],E[0].idleTimer=250,D.overflowed[0]&&u(w[0],M,r,"y","all",!0),D.overflowed[1]&&u(w[1],M,r,"x",I,!0)}}function i(e){if(!ie(e)||j||H(e)[2])return void(F=0);F=1,e.stopImmediatePropagation(),K(S),v=Z();var t=$.offset();h=H(e)[0]-t.top,m=H(e)[1]-t.left,A=[],P=[]}function r(e){if(ie(e)&&!j&&!H(e)[2]){p=0,e.stopImmediatePropagation(),x=0,k=0,_=Z();var t=$.offset(),n=H(e)[0]-t.top,i=H(e)[1]-t.left;if(!(_-g>30)){b=1e3/(_-v);var r="mcsEaseOut",a=2.5>b,o=a?[A[A.length-2],P[P.length-2]]:[0,0];y=a?[n-o[0],i-o[1]]:[n-h,i-m];var s=[Math.abs(y[0]),Math.abs(y[1])];b=a?[Math.abs(y[0]/4),Math.abs(y[1]/4)]:[b,b];var l=[Math.abs(E[0].offsetTop)-y[0]*d(s[0]/b[0],b[0]),Math.abs(E[0].offsetLeft)-y[1]*d(s[1]/b[1],b[1])];w="yx"===T.axis?[l[0],l[1]]:"x"===T.axis?[null,l[1]]:[l[0],null],C=[4*s[0]+T.scrollInertia,4*s[1]+T.scrollInertia];var c=parseInt(T.contentTouchScroll)||0;w[0]=s[0]>c?w[0]:0,w[1]=s[1]>c?w[1]:0,D.overflowed[0]&&u(w[0],C[0],r,"y",I,!1),D.overflowed[1]&&u(w[1],C[1],r,"x",I,!1)}}}function d(e,t){var n=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?n[0]:n[3]:e>60?t>3?n[3]:n[2]:e>30?t>8?n[1]:t>6?n[0]:t>4?t:n[2]:t>8?t:n[3]}function u(e,t,n,i,r,a){e&&X(S,e.toString(),{dur:t,scrollEasing:n,dir:i,overwrite:r,drag:a})}var p,c,f,h,m,v,g,_,y,b,w,C,x,k,S=se(this),D=S.data(L),T=D.opt,e=L+"_"+D.idx,$=se("#mCSB_"+D.idx),E=se("#mCSB_"+D.idx+"_container"),O=[se("#mCSB_"+D.idx+"_dragger_vertical"),se("#mCSB_"+D.idx+"_dragger_horizontal")],A=[],P=[],M=0,I="yx"===T.axis?"none":"all",N=[],a=E.find("iframe"),o=["touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,"touchmove."+e+" pointermove."+e+" MSPointerMove."+e,"touchend."+e+" pointerup."+e+" MSPointerUp."+e],R=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;E.bind(o[0],function(e){t(e)}).bind(o[1],function(e){n(e)}),$.bind(o[0],function(e){i(e)}).bind(o[2],function(e){r(e)}),a.length&&a.each(function(){se(this).bind("load",function(){q(this)&&se(this.contentDocument||this.contentWindow.document).bind(o[0],function(e){t(e),i(e)}).bind(o[1],function(e){n(e)}).bind(o[2],function(e){r(e)})})})},O=function(){function r(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function a(e,t,n){c.type=n&&o?"stepped":"stepless",c.scrollAmount=10,U(i,e,t,"mcsLinearOut",n?60:null)}var o,i=se(this),s=i.data(L),l=s.opt,c=s.sequential,e=L+"_"+s.idx,d=se("#mCSB_"+s.idx+"_container"),u=d.parent();d.bind("mousedown."+e,function(){F||o||(o=1,j=!0)}).add(document).bind("mousemove."+e,function(e){if(!F&&o&&r()){var t=d.offset(),n=H(e)[0]-t.top+d[0].offsetTop,i=H(e)[1]-t.left+d[0].offsetLeft;n>0&&n<u.height()&&i>0&&i<u.width()?c.step&&a("off",null,"stepped"):("x"!==l.axis&&s.overflowed[0]&&(0>n?a("on",38):n>u.height()&&a("on",40)),"y"!==l.axis&&s.overflowed[1]&&(0>i?a("on",37):i>u.width()&&a("on",39)))}}).bind("mouseup."+e+" dragend."+e,function(){F||(o&&(o=0,a("off",null)),j=!1)})},A=function(){function n(e,t){if(K(u),!I(u,e.target)){var n="auto"!==f.mouseWheel.deltaFactor?parseInt(f.mouseWheel.deltaFactor):v&&e.deltaFactor<100?100:e.deltaFactor||100,i=f.scrollInertia;if("x"===f.axis||"x"===f.mouseWheel.axis)var r="x",a=[Math.round(n*p.scrollRatio.x),parseInt(f.mouseWheel.scrollAmount)],o="auto"!==f.mouseWheel.scrollAmount?a[1]:a[0]>=h.width()?.9*h.width():a[0],s=Math.abs(se("#mCSB_"+p.idx+"_container")[0].offsetLeft),l=m[1][0].offsetLeft,c=m[1].parent().width()-m[1].width(),d="y"===f.mouseWheel.axis?e.deltaY||t:e.deltaX;else var r="y",a=[Math.round(n*p.scrollRatio.y),parseInt(f.mouseWheel.scrollAmount)],o="auto"!==f.mouseWheel.scrollAmount?a[1]:a[0]>=h.height()?.9*h.height():a[0],s=Math.abs(se("#mCSB_"+p.idx+"_container")[0].offsetTop),l=m[0][0].offsetTop,c=m[0].parent().height()-m[0].height(),d=e.deltaY||t;"y"===r&&!p.overflowed[0]||"x"===r&&!p.overflowed[1]||((f.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(d=-d),f.mouseWheel.normalizeDelta&&(d=0>d?-1:1),(d>0&&0!==l||0>d&&l!==c||f.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!f.mouseWheel.normalizeDelta&&(o=e.deltaFactor,i=17),X(u,(s-d*o).toString(),{dir:r,dur:i}))}}if(se(this).data(L)){var u=se(this),p=u.data(L),f=p.opt,e=L+"_"+p.idx,h=se("#mCSB_"+p.idx),m=[se("#mCSB_"+p.idx+"_dragger_vertical"),se("#mCSB_"+p.idx+"_dragger_horizontal")],t=se("#mCSB_"+p.idx+"_container").find("iframe");t.length&&t.each(function(){se(this).bind("load",function(){q(this)&&se(this.contentDocument||this.contentWindow.document).bind("mousewheel."+e,function(e,t){n(e,t)})})}),h.bind("mousewheel."+e,function(e,t){n(e,t)})}},P=new Object,q=function(e){var t=!1,n=!1,i=null;if(void 0===e?n="#empty":void 0!==se(e).attr("id")&&(n=se(e).attr("id")),n!==!1&&void 0!==P[n])return P[n];if(e){try{var r=e.contentDocument||e.contentWindow.document;i=r.body.innerHTML}catch(e){}t=null!==i}else{try{var r=top.document;i=r.body.innerHTML}catch(e){}t=null!==i}return n!==!1&&(P[n]=t),t},M=function(e){var t=this.find("iframe");if(t.length){var n=e?"auto":"none";t.css("pointer-events",n)}},I=function(e,t){var n=t.nodeName.toLowerCase(),i=e.data(L).opt.mouseWheel.disableOver,r=["select","textarea"];return se.inArray(n,i)>-1&&!(se.inArray(n,r)>-1&&!se(t).is(":focus"))},N=function(){var o,s=se(this),l=s.data(L),e=L+"_"+l.idx,c=se("#mCSB_"+l.idx+"_container"),d=c.parent(),t=se(".mCSB_"+l.idx+"_scrollbar ."+w[12]);t.bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){j=!0,se(e.target).hasClass("mCSB_dragger")||(o=1)}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){j=!1}).bind("click."+e,function(e){if(o&&(o=0,se(e.target).hasClass(w[12])||se(e.target).hasClass("mCSB_draggerRail"))){K(s);var t=se(this),n=t.find(".mCSB_dragger");if(t.parent(".mCSB_scrollTools_horizontal").length>0){if(!l.overflowed[1])return;var i="x",r=e.pageX>n.offset().left?-1:1,a=Math.abs(c[0].offsetLeft)-r*(.9*d.width())}else{if(!l.overflowed[0])return;var i="y",r=e.pageY>n.offset().top?-1:1,a=Math.abs(c[0].offsetTop)-r*(.9*d.height())}X(s,a.toString(),{dir:i,scrollEasing:"mcsEaseInOut"})}})},R=function(){var o=se(this),e=o.data(L),s=e.opt,t=L+"_"+e.idx,l=se("#mCSB_"+e.idx+"_container"),c=l.parent();l.bind("focusin."+t,function(){var r=se(document.activeElement),e=l.find(".mCustomScrollBox").length,a=0;r.is(s.advanced.autoScrollOnFocus)&&(K(o),clearTimeout(o[0]._focusTimeout),o[0]._focusTimer=e?(a+17)*e:0,o[0]._focusTimeout=setTimeout(function(){var e=[ae(r)[0],ae(r)[1]],t=[l[0].offsetTop,l[0].offsetLeft],n=[t[0]+e[0]>=0&&t[0]+e[0]<c.height()-r.outerHeight(!1),t[1]+e[1]>=0&&t[0]+e[1]<c.width()-r.outerWidth(!1)],i="yx"!==s.axis||n[0]||n[1]?"all":"none";"x"===s.axis||n[0]||X(o,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:i,dur:a}),"y"===s.axis||n[1]||X(o,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:i,dur:a})},o[0]._focusTimer))})},B=function(){var e=se(this),t=e.data(L),n=L+"_"+t.idx,i=se("#mCSB_"+t.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||se(".mCSB_"+t.idx+"_scrollbar").css("visibility","hidden")})},z=function(){var i=se(this),r=i.data(L),a=r.opt,o=r.sequential,e=L+"_"+r.idx,t=".mCSB_"+r.idx+"_scrollbar",n=se(t+">a");n.bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e+" mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e+" mouseout."+e+" pointerout."+e+" MSPointerOut."+e+" click."+e,function(e){function t(e,t){o.scrollAmount=a.scrollButtons.scrollAmount,U(i,e,t)}if(e.preventDefault(),ne(e)){var n=se(this).attr("class");switch(o.type=a.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===o.type)return;j=!0,r.tweenRunning=!1,t("on",n);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===o.type)return;j=!1,o.dir&&t("off",n);break;case"click":if("stepped"!==o.type||r.tweenRunning)return;t("on",n)}}})},Y=function(){function t(e){function t(e,t){d.type=c.keyboard.scrollType,d.scrollAmount=c.keyboard.scrollAmount,"stepped"===d.type&&l.tweenRunning||U(s,e,t)}switch(e.type){case"blur":l.tweenRunning&&d.dir&&t("off",null);break;case"keydown":case"keyup":var n=e.keyCode?e.keyCode:e.which,i="on";if("x"!==c.axis&&(38===n||40===n)||"y"!==c.axis&&(37===n||39===n)){if((38===n||40===n)&&!l.overflowed[0]||(37===n||39===n)&&!l.overflowed[1])return;"keyup"===e.type&&(i="off"),se(document.activeElement).is(f)||(e.preventDefault(),e.stopImmediatePropagation(),t(i,n))}else if(33===n||34===n){if((l.overflowed[0]||l.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){K(s);var r=34===n?-1:1;if("x"===c.axis||"yx"===c.axis&&l.overflowed[1]&&!l.overflowed[0])var a="x",o=Math.abs(u[0].offsetLeft)-r*(.9*p.width());else var a="y",o=Math.abs(u[0].offsetTop)-r*(.9*p.height());X(s,o.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})}}else if((35===n||36===n)&&!se(document.activeElement).is(f)&&((l.overflowed[0]||l.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===c.axis||"yx"===c.axis&&l.overflowed[1]&&!l.overflowed[0])var a="x",o=35===n?Math.abs(p.width()-u.outerWidth(!1)):0;else var a="y",o=35===n?Math.abs(p.height()-u.outerHeight(!1)):0;X(s,o.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})}}}var s=se(this),l=s.data(L),c=l.opt,d=l.sequential,e=L+"_"+l.idx,n=se("#mCSB_"+l.idx),u=se("#mCSB_"+l.idx+"_container"),p=u.parent(),f="input,textarea,select,datalist,keygen,[contenteditable='true']",i=u.find("iframe"),r=["blur."+e+" keydown."+e+" keyup."+e];i.length&&i.each(function(){se(this).bind("load",function(){q(this)&&se(this.contentDocument||this.contentWindow.document).bind(r[0],function(e){t(e)})})}),n.attr("tabindex","0").bind(r[0],function(e){t(e)})},U=function(u,e,t,p,f){function h(e){v.snapAmount&&(g.scrollAmount=v.snapAmount instanceof Array?"x"===g.dir[0]?v.snapAmount[1]:v.snapAmount[0]:v.snapAmount);var t="stepped"!==g.type,n=f?f:e?t?y/1.5:b:1e3/60,i=e?t?7.5:40:2.5,r=[Math.abs(_[0].offsetTop),Math.abs(_[0].offsetLeft)],a=[m.scrollRatio.y>10?10:m.scrollRatio.y,m.scrollRatio.x>10?10:m.scrollRatio.x],o="x"===g.dir[0]?r[1]+g.dir[1]*(a[1]*i):r[0]+g.dir[1]*(a[0]*i),s="x"===g.dir[0]?r[1]+g.dir[1]*parseInt(g.scrollAmount):r[0]+g.dir[1]*parseInt(g.scrollAmount),l="auto"!==g.scrollAmount?s:o,c=p?p:e?t?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",d=!!e;return e&&17>n&&(l="x"===g.dir[0]?r[1]:r[0]),X(u,l.toString(),{dir:g.dir[0],scrollEasing:c,dur:n,onComplete:d}),e?void(g.dir=!1):(clearTimeout(g.step),void(g.step=setTimeout(function(){h()},n)))}function n(){clearTimeout(g.step),te(g,"step"),K(u)}var m=u.data(L),v=m.opt,g=m.sequential,_=se("#mCSB_"+m.idx+"_container"),i="stepped"===g.type,y=v.scrollInertia<26?26:v.scrollInertia,b=v.scrollInertia<1?17:v.scrollInertia;switch(e){case"on":if(g.dir=[t===w[16]||t===w[15]||39===t||37===t?"x":"y",t===w[13]||t===w[15]||38===t||37===t?-1:1],K(u),re(t)&&"stepped"===g.type)return;h(i);break;case"off":n(),(i||m.tweenRunning&&g.dir)&&h(!0)}},W=function(e){var t=se(this).data(L).opt,n=[];return"function"==typeof e&&(e=e()),e instanceof Array?n=e.length>1?[e[0],e[1]]:"x"===t.axis?[null,e[0]]:[e[0],null]:(n[0]=e.y?e.y:e.x||"x"===t.axis?null:e,n[1]=e.x?e.x:e.y||"y"===t.axis?null:e),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},V=function(e,t){if(null!=e&&"undefined"!=typeof e){var n=se(this),i=n.data(L),r=i.opt,a=se("#mCSB_"+i.idx+"_container"),o=a.parent(),s=typeof e;t||(t="x"===r.axis?"x":"y");var l="x"===t?a.outerWidth(!1)-o.width():a.outerHeight(!1)-o.height(),c="x"===t?a[0].offsetLeft:a[0].offsetTop,d="x"===t?"left":"top";switch(s){case"function":return e();case"object":var u=e.jquery?e:se(e);if(!u.length)return;return"x"===t?ae(u)[1]:ae(u)[0];case"string":case"number":if(re(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(l*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(c-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var p=c+parseInt(e.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==e.indexOf("px")&&re(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(o.height()-a.outerHeight(!1));if("right"===e)return Math.abs(o.width()-a.outerWidth(!1));if("first"===e||"last"===e){var u=a.find(":"+e);return"x"===t?ae(u)[1]:ae(u)[0]}return se(e).length?"x"===t?ae(se(e))[1]:ae(se(e))[0]:(a.css(d,e),void h.update.call(null,n[0]))}}},J=function(e){function t(){return clearTimeout(l[0].autoUpdate),0===a.parents("html").length?void(a=null):void(l[0].autoUpdate=setTimeout(function(){return s.advanced.updateOnSelectorChange&&(o.poll.change.n=i(),o.poll.change.n!==o.poll.change.o)?(o.poll.change.o=o.poll.change.n,void r(3)):s.advanced.updateOnContentResize&&(o.poll.size.n=a[0].scrollHeight+a[0].scrollWidth+l[0].offsetHeight+a[0].offsetHeight+a[0].offsetWidth,o.poll.size.n!==o.poll.size.o)?(o.poll.size.o=o.poll.size.n,void r(1)):!s.advanced.updateOnImageLoad||"auto"===s.advanced.updateOnImageLoad&&"y"===s.axis||(o.poll.img.n=l.find("img").length,o.poll.img.n===o.poll.img.o)?void((s.advanced.updateOnSelectorChange||s.advanced.updateOnContentResize||s.advanced.updateOnImageLoad)&&t()):(o.poll.img.o=o.poll.img.n,void l.find("img").each(function(){n(this)}))},s.advanced.autoUpdateTimeout))}function n(e){function t(e,t){return function(){return t.apply(e,arguments)}}function n(){this.onload=null,se(e).addClass(w[2]),r(2)}if(se(e).hasClass(w[2]))return void r();var i=new Image;i.onload=t(i,n),i.src=e.src}function i(){s.advanced.updateOnSelectorChange===!0&&(s.advanced.updateOnSelectorChange="*");var e=0,t=l.find(s.advanced.updateOnSelectorChange);return s.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(l[0].autoUpdate),h.update.call(null,a[0],e)}var a=se(this),o=a.data(L),s=o.opt,l=se("#mCSB_"+o.idx+"_container");return e?(clearTimeout(l[0].autoUpdate),void te(l[0],"autoUpdate")):void t()},G=function(e,t,n){return Math.round(e/t)*t-n},K=function(e){var t=e.data(L),n=se("#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal");n.each(function(){ee.call(this)})},X=function(r,e,a){function t(e){return o&&s.callbacks[e]&&"function"==typeof s.callbacks[e]}function n(){return[s.callbacks.alwaysTriggerOffsets||_>=y[0]+w,s.callbacks.alwaysTriggerOffsets||-C>=_]}function i(){var e=[u[0].offsetTop,u[0].offsetLeft],t=[v[0].offsetTop,v[0].offsetLeft],n=[u.outerHeight(!1),u.outerWidth(!1)],i=[d.height(),d.width()];r[0].mcs={content:u,top:e[0],left:e[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(n[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(n[1])-i[1])),direction:a.dir}}var o=r.data(L),s=o.opt,l={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:s.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},a=se.extend(l,a),c=[a.dur,a.drag?0:a.dur],d=se("#mCSB_"+o.idx),u=se("#mCSB_"+o.idx+"_container"),p=u.parent(),f=s.callbacks.onTotalScrollOffset?W.call(r,s.callbacks.onTotalScrollOffset):[0,0],h=s.callbacks.onTotalScrollBackOffset?W.call(r,s.callbacks.onTotalScrollBackOffset):[0,0];if(o.trigger=a.trigger,0===p.scrollTop()&&0===p.scrollLeft()||(se(".mCSB_"+o.idx+"_scrollbar").css("visibility","visible"),p.scrollTop(0).scrollLeft(0)),"_resetY"!==e||o.contentReset.y||(t("onOverflowYNone")&&s.callbacks.onOverflowYNone.call(r[0]),o.contentReset.y=1),"_resetX"!==e||o.contentReset.x||(t("onOverflowXNone")&&s.callbacks.onOverflowXNone.call(r[0]),o.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){if(!o.contentReset.y&&r[0].mcs||!o.overflowed[0]||(t("onOverflowY")&&s.callbacks.onOverflowY.call(r[0]),o.contentReset.x=null),!o.contentReset.x&&r[0].mcs||!o.overflowed[1]||(t("onOverflowX")&&s.callbacks.onOverflowX.call(r[0]),o.contentReset.x=null),s.snapAmount){var m=s.snapAmount instanceof Array?"x"===a.dir?s.snapAmount[1]:s.snapAmount[0]:s.snapAmount;e=G(e,m,s.snapOffset)}switch(a.dir){case"x":var v=se("#mCSB_"+o.idx+"_dragger_horizontal"),g="left",_=u[0].offsetLeft,y=[d.width()-u.outerWidth(!1),v.parent().width()-v.width()],b=[e,0===e?0:e/o.scrollRatio.x],w=f[1],C=h[1],x=w>0?w/o.scrollRatio.x:0,k=C>0?C/o.scrollRatio.x:0;break;case"y":var v=se("#mCSB_"+o.idx+"_dragger_vertical"),g="top",_=u[0].offsetTop,y=[d.height()-u.outerHeight(!1),v.parent().height()-v.height()],b=[e,0===e?0:e/o.scrollRatio.y],w=f[0],C=h[0],x=w>0?w/o.scrollRatio.y:0,k=C>0?C/o.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=y[1]?b=[y[0],y[1]]:b[0]=-b[0],r[0].mcs||(i(),t("onInit")&&s.callbacks.onInit.call(r[0])),clearTimeout(u[0].onCompleteTimeout),Q(v[0],g,Math.round(b[1]),c[1],a.scrollEasing),!o.tweenRunning&&(0===_&&b[0]>=0||_===y[0]&&b[0]<=y[0])||Q(u[0],g,Math.round(b[0]),c[0],a.scrollEasing,a.overwrite,{onStart:function(){a.callbacks&&a.onStart&&!o.tweenRunning&&(t("onScrollStart")&&(i(),s.callbacks.onScrollStart.call(r[0])),o.tweenRunning=!0,S(v),o.cbOffsets=n())},onUpdate:function(){a.callbacks&&a.onUpdate&&t("whileScrolling")&&(i(),s.callbacks.whileScrolling.call(r[0]))},onComplete:function(){if(a.callbacks&&a.onComplete){"yx"===s.axis&&clearTimeout(u[0].onCompleteTimeout);var e=u[0].idleTimer||0;u[0].onCompleteTimeout=setTimeout(function(){t("onScroll")&&(i(),s.callbacks.onScroll.call(r[0])),t("onTotalScroll")&&b[1]>=y[1]-x&&o.cbOffsets[0]&&(i(),s.callbacks.onTotalScroll.call(r[0])),t("onTotalScrollBack")&&b[1]<=k&&o.cbOffsets[1]&&(i(),s.callbacks.onTotalScrollBack.call(r[0])),o.tweenRunning=!1,u[0].idleTimer=0,S(v,"hide")},e)}}})}},Q=function(e,t,n,i,r,a,o){function s(){w.stop||(_||h.call(),_=Z()-g,l(),_>=w.time&&(w.time=_>w.time?_+p-(_-w.time):_+p-1,w.time<_+1&&(w.time=_+1)),w.time<i?w.id=f(s):v.call())}function l(){i>0?(w.currVal=u(w.time,y,C,i,r),b[t]=Math.round(w.currVal)+"px"):b[t]=n+"px",m.call()}function c(){p=1e3/60,w.time=_+p,f=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},w.id=f(s)}function d(){null!=w.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(w.id):clearTimeout(w.id),w.id=null)}function u(e,t,n,i,r){switch(r){case"linear":case"mcsLinear":return n*e/i+t;case"mcsLinearOut":return e/=i,e--,n*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=i/2,1>e?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=i/2,1>e?n/2*Math.pow(2,10*(e-1))+t:(e--,n/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=i/2,1>e?n/2*e*e*e+t:(e-=2,n/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=i,e--,-n*(e*e*e*e-1)+t;case"easeOutStrong":return n*(-Math.pow(2,-10*e/i)+1)+t;case"easeOut":case"mcsEaseOut":default:var a=(e/=i)*e,o=a*e;return t+n*(.499999999999997*o*a+-2.5*a*a+5.5*o+-6.5*a+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var p,f,o=o||{},h=o.onStart||function(){},m=o.onUpdate||function(){},v=o.onComplete||function(){},g=Z(),_=0,y=e.offsetTop,b=e.style,w=e._mTween[t];"left"===t&&(y=e.offsetLeft);var C=n-y;w.stop=0,"none"!==a&&d(),c()},Z=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},ee=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],n=0;n<t.length;n++){var i=t[n];e._mTween[i].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[i].id):clearTimeout(e._mTween[i].id),e._mTween[i].id=null,e._mTween[i].stop=1)}},te=function(t,n){try{delete t[n]}catch(e){t[n]=null}},ne=function(e){return!(e.which&&1!==e.which)},ie=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},re=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},oe=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};se.fn[f]=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void se.error("Method "+e+" does not exist"):h.init.apply(this,arguments)},se[f]=function(e){return h[e]?h[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void se.error("Method "+e+" does not exist"):h.init.apply(this,arguments)},se[f].defaults=r,window[f]=!0,se(window).bind("load",function(){se(i)[f](),se.extend(se.expr[":"],{mcsInView:se.expr[":"].mcsInView||function(e){var t,n,i=se(e),r=i.parents(".mCSB_container");if(r.length)return t=r.parent(),n=[r[0].offsetTop,r[0].offsetLeft],n[0]+ae(i)[0]>=0&&n[0]+ae(i)[0]<t.height()-i.outerHeight(!1)&&n[1]+ae(i)[1]>=0&&n[1]+ae(i)[1]<t.width()-i.outerWidth(!1)},mcsInSight:se.expr[":"].mcsInSight||function(e,t,n){var i,r,a,o,s=se(e),l=s.parents(".mCSB_container"),c="exact"===n[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(l.length)return i=[s.outerHeight(!1),s.outerWidth(!1)],a=[l[0].offsetTop+ae(s)[0],l[0].offsetLeft+ae(s)[1]],r=[l.parent()[0].offsetHeight,l.parent()[0].offsetWidth],o=[i[0]<r[0]?c[0]:c[1],i[1]<r[1]?c[0]:c[1]],a[0]-r[0]*o[0][0]<0&&a[0]+i[0]-r[0]*o[0][1]>=0&&a[1]-r[1]*o[1][0]<0&&a[1]+i[1]-r[1]*o[1][1]>=0},mcsOverflow:se.expr[":"].mcsOverflow||function(e){var t=se(e).data(L);if(t)return t.overflowed[0]||t.overflowed[1]}})})})});!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(p){function t(e){var t=e||window.event,n=g.call(arguments,1),i=0,r=0,a=0,o=0,s=0,l=0;if(e=p.event.fix(t),e.type="mousewheel","detail"in t&&(a=-1*t.detail),"wheelDelta"in t&&(a=t.wheelDelta),"wheelDeltaY"in t&&(a=t.wheelDeltaY),"wheelDeltaX"in t&&(r=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(r=-1*a,a=0),i=0===a?r:a,"deltaY"in t&&(a=-1*t.deltaY,i=a),"deltaX"in t&&(r=t.deltaX,0===a&&(i=-1*r)),0!==a||0!==r){if(1===t.deltaMode){var c=p.data(this,"mousewheel-line-height");i*=c,a*=c,r*=c}else if(2===t.deltaMode){var d=p.data(this,"mousewheel-page-height");i*=d,a*=d,r*=d}if(o=Math.max(Math.abs(a),Math.abs(r)),(!v||v>o)&&(v=o,h(t,o)&&(v/=40)),h(t,o)&&(i/=40,r/=40,a/=40),i=Math[i>=1?"floor":"ceil"](i/v),r=Math[r>=1?"floor":"ceil"](r/v),a=Math[a>=1?"floor":"ceil"](a/v),_.settings.normalizeOffset&&this.getBoundingClientRect){var u=this.getBoundingClientRect();s=e.clientX-u.left,l=e.clientY-u.top}return e.deltaX=r,e.deltaY=a,e.deltaFactor=v,e.offsetX=s,e.offsetY=l,e.deltaMode=0,n.unshift(e,i,r,a),m&&clearTimeout(m),m=setTimeout(f,200),(p.event.dispatch||p.event.handle).apply(this,n)}}function f(){v=null}function h(e,t){return _.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var m,v,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],n="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],g=Array.prototype.slice;if(p.event.fixHooks)for(var i=e.length;i;)p.event.fixHooks[e[--i]]=p.event.mouseHooks;var _=p.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=n.length;e;)this.addEventListener(n[--e],t,!1);else this.onmousewheel=t;p.data(this,"mousewheel-line-height",_.getLineHeight(this)),p.data(this,"mousewheel-page-height",_.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=n.length;e;)this.removeEventListener(n[--e],t,!1);else this.onmousewheel=null;p.removeData(this,"mousewheel-line-height"),p.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=p(e),n=t["offsetParent"in p.fn?"offsetParent":"parent"]();return n.length||(n=p("body")),parseInt(n.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return p(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};p.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});!function(J,G,K){!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):jQuery&&!jQuery.fn.qtip&&e(jQuery)}(function(T){"use strict";function f(e,t,n,i){this.id=n,this.target=e,this.tooltip=w,this.elements={target:e},this._id=C+"-"+n,this.timers={img:{}},this.options=t,this.plugins={},this.cache={event:{},target:T(),disabled:E,attr:i,onTooltip:E,lastClass:""},this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=E}function n(e){return e===w||"object"!==T.type(e)}function i(e){return!(T.isFunction(e)||e&&e.attr||e.length||"object"===T.type(e)&&(e.jquery||e.then))}function h(e){var t,r,a,o;return n(e)?E:(n(e.metadata)&&(e.metadata={type:e.metadata}),"content"in e&&(t=e.content,n(t)||t.jquery||t.done?(r=i(t)?E:t,t=e.content={text:r}):r=t.text,"ajax"in t&&(a=t.ajax,o=a&&a.once!==E,delete t.ajax,t.text=function(e,i){var t=r||T(this).attr(i.options.content.attr)||"Loading...",n=T.ajax(T.extend({},a,{context:i})).then(a.success,w,a.error).then(function(e){return e&&o&&i.set("content.text",e),e},function(e,t,n){i.destroyed||0===e.status||i.set("content.text",t+": "+n)});return o?t:(i.set("content.text",t),n)}),"title"in t&&(T.isPlainObject(t.title)&&(t.button=t.title.button,t.title=t.title.text),i(t.title||E)&&(t.title=E))),"position"in e&&n(e.position)&&(e.position={my:e.position,at:e.position}),"show"in e&&n(e.show)&&(e.show=e.show.jquery?{target:e.show}:e.show===$?{ready:$}:{event:e.show}),"hide"in e&&n(e.hide)&&(e.hide=e.hide.jquery?{target:e.hide}:{event:e.hide}),"style"in e&&n(e.style)&&(e.style={classes:e.style}),T.each(N,function(){this.sanitize&&this.sanitize(e)}),e)}function l(e,t){for(var n,i=0,r=e,a=t.split(".");r=r[a[i++]];)i<a.length&&(n=r);return[n||e,a.pop()]}function c(e,t){var n,i,r;for(n in this.checks)if(this.checks.hasOwnProperty(n))for(i in this.checks[n])this.checks[n].hasOwnProperty(i)&&(r=new RegExp(i,"i").exec(e))&&(t.push(r),("builtin"===n||this.plugins[n])&&this.checks[n][i].apply(this.plugins[n]||this,t))}function r(e){return S.concat("").join(e?"-"+e+" ":" ")}function s(e,t){return t>0?setTimeout(T.proxy(e,this),t):void e.call(this)}function p(e){this.tooltip.hasClass(q)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=s.call(this,function(){this.toggle($,e)},this.options.show.delay))}function m(e){if(!this.tooltip.hasClass(q)&&!this.destroyed){var t=T(e.relatedTarget),n=t.closest(D)[0]===this.tooltip[0],i=t[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==t[0]&&"mouse"===this.options.position.target&&n||this.options.hide.fixed&&/mouse(out|leave|move)/.test(e.type)&&(n||i))try{e.preventDefault(),e.stopImmediatePropagation()}catch(e){}else this.timers.hide=s.call(this,function(){this.toggle(E,e)},this.options.hide.delay,this)}}function v(e){!this.tooltip.hasClass(q)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=s.call(this,function(){this.hide(e)},this.options.hide.inactive))}function g(e){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(e)}function e(e,t,n){T(G.body).delegate(e,(t.split?t:t.join("."+C+" "))+"."+C,function(){var e=_.api[T.attr(this,k)];e&&!e.disabled&&n.apply(e,arguments)})}function d(e,t,n){var i,r,a,o,s,l=T(G.body),c=e[0]===G?l:e,d=e.metadata?e.metadata(n.metadata):w,u="html5"===n.metadata.type&&d?d[n.metadata.name]:w,p=e.data(n.metadata.name||"qtipopts");try{p="string"==typeof p?T.parseJSON(p):p}catch(e){}if(o=T.extend($,{},_.defaults,n,"object"==typeof p?h(p):w,h(u||d)),r=o.position,o.id=t,"boolean"==typeof o.content.text){if(a=e.attr(o.content.attr),o.content.attr===E||!a)return E;o.content.text=a}if(r.container.length||(r.container=l),r.target===E&&(r.target=c),o.show.target===E&&(o.show.target=c),o.show.solo===$&&(o.show.solo=r.container.closest("body")),o.hide.target===E&&(o.hide.target=c),o.position.viewport===$&&(o.position.viewport=r.container),r.container=r.container.eq(0),r.at=new y(r.at,$),r.my=new y(r.my),e.data(C))if(o.overwrite)e.qtip("destroy",!0);else if(o.overwrite===E)return E;return e.attr(x,t),o.suppress&&(s=e.attr("title"))&&e.removeAttr("title").attr(z,s).attr("title",""),i=new f(e,o,t,!!a),e.data(C,i),i}var _,t,y,a,b,$=!0,E=!1,w=null,o="x",u="y",O="top",A="left",P="bottom",M="right",I="center",N={},C="qtip",x="data-hasqtip",k="data-qtip-id",S=["ui-widget","ui-tooltip"],D="."+C,R="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),F=C+"-fixed",L=C+"-default",j=C+"-focus",H=C+"-hover",q=C+"-disabled",B="_replacedByqTip",z="oldtitle",Y={ie:function(){var e,t;for(e=4,t=G.createElement("div");(t.innerHTML="\x3c!--[if gt IE "+e+"]><i></i><![endif]--\x3e")&&t.getElementsByTagName("i")[0];e+=1);return e>4?e:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||E};t=f.prototype,t._when=function(e){return T.when.apply(T,e)},t.render=function(e){if(this.rendered||this.destroyed)return this;var n=this,t=this.options,i=this.cache,r=this.elements,a=t.content.text,o=t.content.title,s=t.content.button,l=t.position,c=[];return T.attr(this.target[0],"aria-describedby",this._id),i.posClass=this._createPosClass((this.position={my:l.my,at:l.at}).my),this.tooltip=r.tooltip=T("<div/>",{id:this._id,class:[C,L,t.style.classes,i.posClass].join(" "),width:t.style.width||"",height:t.style.height||"",tracking:"mouse"===l.target&&l.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":E,"aria-describedby":this._id+"-content","aria-hidden":$}).toggleClass(q,this.disabled).attr(k,this.id).data(C,this).appendTo(l.container).append(r.content=T("<div />",{class:C+"-content",id:this._id+"-content","aria-atomic":$})),this.rendered=-1,this.positioning=$,o&&(this._createTitle(),T.isFunction(o)||c.push(this._updateTitle(o,E))),s&&this._createButton(),T.isFunction(a)||c.push(this._updateContent(a,E)),this.rendered=$,this._setWidget(),T.each(N,function(e){var t;"render"===this.initialize&&(t=this(n))&&(n.plugins[e]=t)}),this._unassignEvents(),this._assignEvents(),this._when(c).then(function(){n._trigger("render"),n.positioning=E,n.hiddenDuringWait||!t.show.ready&&!e||n.toggle($,i.event,E),n.hiddenDuringWait=E}),_.api[this.id]=this,this},t.destroy=function(e){function t(){if(!this.destroyed){this.destroyed=$;var e,t=this.target,n=t.attr(z);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(),T.each(this.plugins,function(){this.destroy&&this.destroy()});for(e in this.timers)this.timers.hasOwnProperty(e)&&clearTimeout(this.timers[e]);t.removeData(C).removeAttr(k).removeAttr(x).removeAttr("aria-describedby"),this.options.suppress&&n&&t.attr("title",n).removeAttr(z),this._unassignEvents(),this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=w,delete _.api[this.id]}}return this.destroyed?this.target:(e===$&&"hide"!==this.triggering||!this.rendered?t.call(this):(this.tooltip.one("tooltiphidden",T.proxy(t,this)),!this.triggering&&this.hide()),this.target)},a=t.checks={builtin:{"^id$":function(e,t,n,i){var r=n===$?_.nextid:n,a=C+"-"+r;r!==E&&r.length>0&&!T("#"+a).length?(this._id=a,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):e[t]=i},"^prerender":function(e,t,n){n&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(e,t,n){this._updateContent(n)},"^content.attr$":function(e,t,n,i){this.options.content.text===this.target.attr(i)&&this._updateContent(this.target.attr(n))},"^content.title$":function(e,t,n){return n?(n&&!this.elements.title&&this._createTitle(),void this._updateTitle(n)):this._removeTitle()},"^content.button$":function(e,t,n){this._updateButton(n)},"^content.title.(text|button)$":function(e,t,n){this.set("content."+t,n)},"^position.(my|at)$":function(e,t,n){"string"==typeof n&&(this.position[t]=e[t]=new y(n,"at"===t))},"^position.container$":function(e,t,n){this.rendered&&this.tooltip.appendTo(n)},"^show.ready$":function(e,t,n){n&&(!this.rendered&&this.render($)||this.toggle($))},"^style.classes$":function(e,t,n,i){this.rendered&&this.tooltip.removeClass(i).addClass(n)},"^style.(width|height)":function(e,t,n){this.rendered&&this.tooltip.css(t,n)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(e,t,n){this.rendered&&this.tooltip.toggleClass(L,!!n)},"^events.(render|show|move|hide|focus|blur)$":function(e,t,n){this.rendered&&this.tooltip[(T.isFunction(n)?"":"un")+"bind"]("tooltip"+t,n)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var e=this.options.position;this.tooltip.attr("tracking","mouse"===e.target&&e.adjust.mouse),this._unassignEvents(),this._assignEvents()}}}},t.get=function(e){if(this.destroyed)return this;var t=l(this.options,e.toLowerCase()),n=t[0][t[1]];return n.precedance?n.string():n};var U=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i,W=/^prerender|show\.ready/i;t.set=function(r,e){if(this.destroyed)return this;var t,a=this.rendered,o=E,s=this.options;return"string"==typeof r?(t=r,r={},r[t]=e):r=T.extend({},r),T.each(r,function(e,t){if(a&&W.test(e))return void delete r[e];var n,i=l(s,e.toLowerCase());n=i[0][i[1]],i[0][i[1]]=t&&t.nodeType?T(t):t,o=U.test(e)||o,r[e]=[i[0],i[1],t,n]}),h(s),this.positioning=$,T.each(r,T.proxy(c,this)),this.positioning=E,this.rendered&&this.tooltip[0].offsetWidth>0&&o&&this.reposition("mouse"===s.position.target?w:this.cache.event),this},t._update=function(e,t){var n=this,i=this.cache;return this.rendered&&e?(T.isFunction(e)&&(e=e.call(this.elements.target,i.event,this)||""),T.isFunction(e.then)?(i.waiting=$,e.then(function(e){return i.waiting=E,n._update(e,t)},w,function(e){return n._update(e,t)})):e===E||!e&&""!==e?E:(e.jquery&&e.length>0?t.empty().append(e.css({display:"block",visibility:"visible"})):t.html(e),this._waitForContent(t).then(function(e){n.rendered&&n.tooltip[0].offsetWidth>0&&n.reposition(i.event,!e.length)}))):E},t._waitForContent=function(e){var t=this.cache;return t.waiting=$,(T.fn.imagesLoaded?e.imagesLoaded():(new T.Deferred).resolve([])).done(function(){t.waiting=E}).promise()},t._updateContent=function(e,t){this._update(e,this.elements.content,t)},t._updateTitle=function(e,t){this._update(e,this.elements.title,t)===E&&this._removeTitle(E)},t._createTitle=function(){var e=this.elements,t=this._id+"-title";e.titlebar&&this._removeTitle(),e.titlebar=T("<div />",{class:C+"-titlebar "+(this.options.style.widget?r("header"):"")}).append(e.title=T("<div />",{id:t,class:C+"-title","aria-atomic":$})).insertBefore(e.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(e){T(this).toggleClass("ui-state-active ui-state-focus","down"===e.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(e){T(this).toggleClass("ui-state-hover","mouseover"===e.type)}),this.options.content.button&&this._createButton()},t._removeTitle=function(e){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=w,e!==E&&this.reposition())},t._createPosClass=function(e){return C+"-pos-"+(e||this.options.position.my).abbrev()},t.reposition=function(e,t){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=$;var n,i,r,a,o=this.cache,s=this.tooltip,l=this.options.position,c=l.target,d=l.my,u=l.at,p=l.viewport,f=l.container,h=l.adjust,m=h.method.split(" "),v=s.outerWidth(E),g=s.outerHeight(E),_=0,y=0,b=s.css("position"),w={left:0,top:0},C=s[0].offsetWidth>0,x=e&&"scroll"===e.type,k=T(J),S=f[0].ownerDocument,D=this.mouse;if(T.isArray(c)&&2===c.length)u={x:A,y:O},w={left:c[0],top:c[1]};else if("mouse"===c)u={x:A,y:O},(!h.mouse||this.options.hide.distance)&&o.origin&&o.origin.pageX?e=o.origin:!e||e&&("resize"===e.type||"scroll"===e.type)?e=o.event:D&&D.pageX&&(e=D),"static"!==b&&(w=f.offset()),S.body.offsetWidth!==(J.innerWidth||S.documentElement.clientWidth)&&(i=T(G.body).offset()),w={left:e.pageX-w.left+(i&&i.left||0),top:e.pageY-w.top+(i&&i.top||0)},h.mouse&&x&&D&&(w.left-=(D.scrollX||0)-k.scrollLeft(),w.top-=(D.scrollY||0)-k.scrollTop());else{if("event"===c?e&&e.target&&"scroll"!==e.type&&"resize"!==e.type?o.target=T(e.target):e.target||(o.target=this.elements.target):"event"!==c&&(o.target=T(c.jquery?c:this.elements.target)),c=o.target,c=T(c).eq(0),0===c.length)return this;c[0]===G||c[0]===J?(_=Y.iOS?J.innerWidth:c.width(),y=Y.iOS?J.innerHeight:c.height(),c[0]===J&&(w={top:(p||c).scrollTop(),left:(p||c).scrollLeft()})):N.imagemap&&c.is("area")?n=N.imagemap(this,c,u,N.viewport?m:E):N.svg&&c&&c[0].ownerSVGElement?n=N.svg(this,c,u,N.viewport?m:E):(_=c.outerWidth(E),y=c.outerHeight(E),w=c.offset()),n&&(_=n.width,y=n.height,i=n.offset,w=n.position),w=this.reposition.offset(c,w,f),(Y.iOS>3.1&&Y.iOS<4.1||Y.iOS>=4.3&&Y.iOS<4.33||!Y.iOS&&"fixed"===b)&&(w.left-=k.scrollLeft(),w.top-=k.scrollTop()),(!n||n&&n.adjustable!==E)&&(w.left+=u.x===M?_:u.x===I?_/2:0,w.top+=u.y===P?y:u.y===I?y/2:0)}return w.left+=h.x+(d.x===M?-v:d.x===I?-v/2:0),w.top+=h.y+(d.y===P?-g:d.y===I?-g/2:0),N.viewport?(r=w.adjusted=N.viewport(this,w,l,_,y,v,g),i&&r.left&&(w.left+=i.left),i&&r.top&&(w.top+=i.top),r.my&&(this.position.my=r.my)):w.adjusted={left:0,top:0},o.posClass!==(a=this._createPosClass(this.position.my))&&(o.posClass=a,s.removeClass(o.posClass).addClass(a)),this._trigger("move",[w,p.elem||p],e)?(delete w.adjusted,t===E||!C||isNaN(w.left)||isNaN(w.top)||"mouse"===c||!T.isFunction(l.effect)?s.css(w):T.isFunction(l.effect)&&(l.effect.call(s,this,T.extend({},w)),s.queue(function(e){T(this).css({opacity:"",height:""}),Y.ie&&this.style.removeAttribute("filter"),e()})),this.positioning=E,this):this},t.reposition.offset=function(e,n,t){function i(e,t){n.left+=t*e.scrollLeft(),n.top+=t*e.scrollTop()}if(!t[0])return n;var r,a,o,s,l=T(e[0].ownerDocument),c=!!Y.ie&&"CSS1Compat"!==G.compatMode,d=t[0];do{"static"!==(a=T.css(d,"position"))&&("fixed"===a?(o=d.getBoundingClientRect(),i(l,-1)):(o=T(d).position(),o.left+=parseFloat(T.css(d,"borderLeftWidth"))||0,o.top+=parseFloat(T.css(d,"borderTopWidth"))||0),n.left-=o.left+(parseFloat(T.css(d,"marginLeft"))||0),n.top-=o.top+(parseFloat(T.css(d,"marginTop"))||0),r||"hidden"===(s=T.css(d,"overflow"))||"visible"===s||(r=T(d)))}while(d=d.offsetParent);return r&&(r[0]!==l[0]||c)&&i(r,1),n};var V=(y=t.reposition.Corner=function(e,t){e=(""+e).replace(/([A-Z])/," $1").replace(/middle/gi,I).toLowerCase(),this.x=(e.match(/left|right/i)||e.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(e.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.forceY=!!t;var n=e.charAt(0);this.precedance="t"===n||"b"===n?u:o}).prototype;V.invert=function(e,t){this[e]=this[e]===A?M:this[e]===M?A:t||this[e]},V.string=function(e){var t=this.x,n=this.y,i=t!==n?"center"===t||"center"!==n&&(this.precedance===u||this.forceY)?[n,t]:[t,n]:[t];return e!==!1?i.join(" "):i},V.abbrev=function(){var e=this.string(!1);return e[0].charAt(0)+(e[1]&&e[1].charAt(0)||"")},V.clone=function(){return new y(this.string(),this.forceY)},t.toggle=function(e,t){var n=this.cache,i=this.options,r=this.tooltip;if(t){if(/over|enter/.test(t.type)&&n.event&&/out|leave/.test(n.event.type)&&i.show.target.add(t.target).length===i.show.target.length&&r.has(t.relatedTarget).length)return this;n.event=T.event.fix(t)}if(this.waiting&&!e&&(this.hiddenDuringWait=$),!this.rendered)return e?this.render(1):this;if(this.destroyed||this.disabled)return this;var a,o,s,l=e?"show":"hide",c=this.options[l],d=this.options.position,u=this.options.content,p=this.tooltip.css("width"),f=this.tooltip.is(":visible"),h=e||1===c.target.length,m=!t||c.target.length<2||n.target[0]===t.target;return(typeof e).search("boolean|number")&&(e=!f),a=!r.is(":animated")&&f===e&&m,o=a?w:!!this._trigger(l,[90]),this.destroyed?this:(o!==E&&e&&this.focus(t),!o||a?this:(T.attr(r[0],"aria-hidden",!e),e?(this.mouse&&(n.origin=T.event.fix(this.mouse)),T.isFunction(u.text)&&this._updateContent(u.text,E),T.isFunction(u.title)&&this._updateTitle(u.title,E),!b&&"mouse"===d.target&&d.adjust.mouse&&(T(G).bind("mousemove."+C,this._storeMouse),b=$),p||r.css("width",r.outerWidth(E)),this.reposition(t,arguments[2]),p||r.css("width",""),c.solo&&("string"==typeof c.solo?T(c.solo):T(D,c.solo)).not(r).not(c.target).qtip("hide",new T.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete n.origin,b&&!T(D+'[tracking="true"]:visible',c.solo).not(r).length&&(T(G).unbind("mousemove."+C),b=E),this.blur(t)),s=T.proxy(function(){e?(Y.ie&&r[0].style.removeAttribute("filter"),r.css("overflow",""),"string"==typeof c.autofocus&&T(this.options.show.autofocus,r).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):r.css({display:"",visibility:"",opacity:"",left:"",top:""}),this._trigger(e?"visible":"hidden")},this),c.effect===E||h===E?(r[l](),s()):T.isFunction(c.effect)?(r.stop(1,1),c.effect.call(r,this),r.queue("fx",function(e){s(),e()})):r.fadeTo(90,e?1:0,s),e&&c.target.trigger("qtip-"+this.id+"-inactive"),this))},t.show=function(e){return this.toggle($,e)},t.hide=function(e){return this.toggle(E,e)},t.focus=function(e){if(!this.rendered||this.destroyed)return this;var t=T(D),n=this.tooltip,i=parseInt(n[0].style.zIndex,10),r=_.zindex+t.length;return n.hasClass(j)||this._trigger("focus",[r],e)&&(i!==r&&(t.each(function(){this.style.zIndex>i&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+j).qtip("blur",e)),n.addClass(j)[0].style.zIndex=r),this},t.blur=function(e){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(j),this._trigger("blur",[this.tooltip.css("zIndex")],e),this)},t.disable=function(e){return this.destroyed?this:("toggle"===e?e=!(this.rendered?this.tooltip.hasClass(q):this.disabled):"boolean"!=typeof e&&(e=$),this.rendered&&this.tooltip.toggleClass(q,e).attr("aria-disabled",e),this.disabled=!!e,this)},t.enable=function(){return this.disable(E)},t._createButton=function(){var t=this,e=this.elements,n=e.tooltip,i=this.options.content.button,r="string"==typeof i,a=r?i:"Close tooltip";e.button&&e.button.remove(),i.jquery?e.button=i:e.button=T("<a />",{class:"qtip-close "+(this.options.style.widget?"":C+"-icon"),title:a,"aria-label":a}).prepend(T("<span />",{class:"ui-icon ui-icon-close",html:"&times;"})),e.button.appendTo(e.titlebar||n).attr("role","button").click(function(e){return n.hasClass(q)||t.hide(e),E})},t._updateButton=function(e){if(!this.rendered)return E;var t=this.elements.button;e?this._createButton():t.remove()},t._setWidget=function(){var e=this.options.style.widget,t=this.elements,n=t.tooltip,i=n.hasClass(q);n.removeClass(q),q=e?"ui-state-disabled":"qtip-disabled",n.toggleClass(q,i),n.toggleClass("ui-helper-reset "+r(),e).toggleClass(L,this.options.style.def&&!e),t.content&&t.content.toggleClass(r("content"),e),t.titlebar&&t.titlebar.toggleClass(r("header"),e),t.button&&t.button.toggleClass(C+"-icon",!e)},t._storeMouse=function(e){return(this.mouse=T.event.fix(e)).type="mousemove",this},t._bind=function(e,t,n,i,r){if(e&&n&&t.length){var a="."+this._id+(i?"-"+i:"");return T(e).bind((t.split?t:t.join(a+" "))+a,T.proxy(n,r||this)),this}},t._unbind=function(e,t){return e&&T(e).unbind("."+this._id+(t?"-"+t:"")),this},t._trigger=function(e,t,n){var i=new T.Event("tooltip"+e);return i.originalEvent=n&&T.extend({},n)||this.cache.event||w,this.triggering=e,this.tooltip.trigger(i,[this].concat(t||[])),this.triggering=E,!i.isDefaultPrevented()},t._bindEvents=function(i,e,t,n,r,a){var o=t.filter(n).add(n.filter(t)),s=[];o.length&&(T.each(e,function(e,t){var n=T.inArray(t,i);n>-1&&s.push(i.splice(n,1)[0])}),s.length&&(this._bind(o,s,function(e){var t=this.rendered?this.tooltip[0].offsetWidth>0:!1;(t?a:r).call(this,e)}),t=t.not(o),n=n.not(o))),this._bind(t,i,r),this._bind(n,e,a)},t._assignInitialEvents=function(e){function t(e){return this.disabled||this.destroyed?E:(this.cache.event=e&&T.event.fix(e),this.cache.target=e&&T(e.target),clearTimeout(this.timers.show),void(this.timers.show=s.call(this,function(){this.render("object"==typeof e||n.show.ready)},n.prerender?0:n.show.delay)))}var n=this.options,i=n.show.target,r=n.hide.target,a=n.show.event?T.trim(""+n.show.event).split(" "):[],o=n.hide.event?T.trim(""+n.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy"),/mouse(over|enter)/i.test(n.show.event)&&!/mouse(out|leave)/i.test(n.hide.event)&&o.push("mouseleave"),this._bind(i,"mousemove",function(e){this._storeMouse(e),this.cache.onTarget=$}),this._bindEvents(a,o,i,r,t,function(){return this.timers?void clearTimeout(this.timers.show):E}),(n.show.ready||n.prerender)&&t.call(this,e)},t._assignEvents=function(){var n=this,r=this.options,e=r.position,i=this.tooltip,t=r.show.target,a=r.hide.target,o=e.container,s=e.viewport,l=T(G),c=T(J),d=r.show.event?T.trim(""+r.show.event).split(" "):[],u=r.hide.event?T.trim(""+r.hide.event).split(" "):[];T.each(r.events,function(e,t){n._bind(i,"toggle"===e?["tooltipshow","tooltiphide"]:["tooltip"+e],t,null,i)}),/mouse(out|leave)/i.test(r.hide.event)&&"window"===r.hide.leave&&this._bind(l,["mouseout","blur"],function(e){/select|option/.test(e.target.nodeName)||e.relatedTarget||this.hide(e)}),r.hide.fixed?a=a.add(i.addClass(F)):/mouse(over|enter)/i.test(r.show.event)&&this._bind(a,"mouseleave",function(){clearTimeout(this.timers.show)}),(""+r.hide.event).indexOf("unfocus")>-1&&this._bind(o.closest("html"),["mousedown","touchstart"],function(e){var t=T(e.target),n=this.rendered&&!this.tooltip.hasClass(q)&&this.tooltip[0].offsetWidth>0,i=t.parents(D).filter(this.tooltip[0]).length>0;t[0]===this.target[0]||t[0]===this.tooltip[0]||i||this.target.has(t[0]).length||!n||this.hide(e)}),"number"==typeof r.hide.inactive&&(this._bind(t,"qtip-"+this.id+"-inactive",v,"inactive"),this._bind(a.add(i),_.inactiveEvents,v)),this._bindEvents(d,u,t,a,p,m),this._bind(t.add(i),"mousemove",function(e){if("number"==typeof r.hide.distance){var t=this.cache.origin||{},n=this.options.hide.distance,i=Math.abs;(i(e.pageX-t.pageX)>=n||i(e.pageY-t.pageY)>=n)&&this.hide(e)}this._storeMouse(e)}),"mouse"===e.target&&e.adjust.mouse&&(r.hide.event&&this._bind(t,["mouseenter","mouseleave"],function(e){return this.cache?void(this.cache.onTarget="mouseenter"===e.type):E}),this._bind(l,"mousemove",function(e){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(q)&&this.tooltip[0].offsetWidth>0&&this.reposition(e)})),(e.adjust.resize||s.length)&&this._bind(T.event.special.resize?s:c,"resize",g),e.adjust.scroll&&this._bind(c.add(e.container),"scroll",g)},t._unassignEvents=function(){var e=this.options,t=e.show.target,n=e.hide.target,i=T.grep([this.elements.target[0],this.rendered&&this.tooltip[0],e.position.container[0],e.position.viewport[0],e.position.container.closest("html")[0],J,G],function(e){return"object"==typeof e});t&&t.toArray&&(i=i.concat(t.toArray())),n&&n.toArray&&(i=i.concat(n.toArray())),this._unbind(i)._unbind(i,"destroy")._unbind(i,"inactive")},T(function(){e(D,["mouseenter","mouseleave"],function(e){var t="mouseenter"===e.type,n=T(e.currentTarget),i=T(e.relatedTarget||e.target),r=this.options;t?(this.focus(e),n.hasClass(F)&&!n.hasClass(q)&&clearTimeout(this.timers.hide)):"mouse"===r.position.target&&r.position.adjust.mouse&&r.hide.event&&r.show.target&&!i.closest(r.show.target[0]).length&&this.hide(e),n.toggleClass(H,t)}),e("["+k+"]",R,v)}),_=T.fn.qtip=function(e,t,n){var i=(""+e).toLowerCase(),r=w,a=T.makeArray(arguments).slice(1),o=a[a.length-1],s=this[0]?T.data(this[0],C):w;return!arguments.length&&s||"api"===i?s:"string"==typeof e?(this.each(function(){var e=T.data(this,C);if(!e)return $;if(o&&o.timeStamp&&(e.cache.event=o),!t||"option"!==i&&"options"!==i)e[i]&&e[i].apply(e,a);else{if(n===K&&!T.isPlainObject(t))return r=e.get(t),E;e.set(t,n)}}),r!==w?r:this):"object"!=typeof e&&arguments.length?void 0:(s=h(T.extend($,{},e)),this.each(function(e){var t,n;return n=T.isArray(s.id)?s.id[e]:s.id,n=!n||n===E||n.length<1||_.api[n]?_.nextid++:n,t=d(T(this),n,s),t===E?$:(_.api[n]=t,T.each(N,function(){"initialize"===this.initialize&&this(t)}),void t._assignInitialEvents(o))}))},T.qtip=f,_.api={},T.each({attr:function(e,t){if(this.length){var n=this[0],i="title",r=T.data(n,"qtip");if(e===i&&r&&r.options&&"object"==typeof r&&"object"==typeof r.options&&r.options.suppress)return arguments.length<2?T.attr(n,z):(r&&r.options.content.attr===i&&r.cache.attr&&r.set("content.text",t),this.attr(z,t))}return T.fn["attr"+B].apply(this,arguments)},clone:function(e){var t=T.fn["clone"+B].apply(this,arguments);return e||t.filter("["+z+"]").attr("title",function(){return T.attr(this,z)}).removeAttr(z),t}},function(e,t){if(!t||T.fn[e+B])return $;var n=T.fn[e+B]=T.fn[e];T.fn[e]=function(){return t.apply(this,arguments)||n.apply(this,arguments)}}),T.ui||(T["cleanData"+B]=T.cleanData,T.cleanData=function(e){for(var t,n=0;(t=T(e[n])).length;n++)if(t.attr(x))try{t.triggerHandler("removeqtip")}catch(e){}T["cleanData"+B].apply(this,arguments)}),_.version="3.0.3",_.nextid=0,_.inactiveEvents=R,_.zindex=15e3,_.defaults={prerender:E,id:E,overwrite:$,suppress:$,content:{text:$,attr:"title",title:E,button:E},position:{my:"top left",at:"bottom right",target:E,container:E,viewport:E,adjust:{x:0,y:0,mouse:$,scroll:$,resize:$,method:"flipinvert flipinvert"},effect:function(e,t){T(this).animate(t,{duration:200,queue:E})}},show:{target:E,event:"mouseenter",effect:$,delay:90,solo:E,ready:E,autofocus:E},hide:{target:E,event:"mouseleave",effect:$,delay:0,fixed:E,inactive:E,leave:"window",distance:E},style:{classes:"",widget:E,width:E,height:E,def:$},events:{render:w,move:w,show:w,hide:w,toggle:w,visible:w,hidden:w,focus:w,blur:w}}})}(window,document);(function(){var D,T;D=this.jQuery||window.jQuery;T=D(window);D.fn.stick_in_parent=function(e){var b,w,C,x,n,k,S,t,i,r;null==e&&(e={});S=e.sticky_class;w=e.inner_scrolling;k=e.recalc_every;n=e.parent;x=e.offset_top;C=e.spacer;b=e.bottoming;null==x&&(x=0);null==n&&(n=void 0);null==w&&(w=!0);null==S&&(S="is_stuck");null==b&&(b=!0);t=function(r,a,o,s,l,c,d,u){var p,e,f,h,m,v,g,t,_,y,i;if(!r.data("sticky_kit")){r.data("sticky_kit",!0);v=r.parent();null!=n&&(v=v.closest(n));if(!v.length)throw"failed to find stick parent";p=f=!1;(y=null!=C?C&&r.closest(C):D("<div />"))&&y.css("position",r.css("position"));g=function(){var e,t,n;if(!u&&(e=parseInt(v.css("border-top-width"),10),t=parseInt(v.css("padding-top"),10),a=parseInt(v.css("padding-bottom"),10),o=v.offset().top+e+t,s=v.height(),f&&(p=f=!1,null==C&&(r.insertAfter(y),y.detach()),r.css({position:"",top:"",width:"",bottom:""}).removeClass(S),n=!0),l=r.offset().top-parseInt(r.css("margin-top"),10)-x,c=r.outerHeight(!0),d=r.css("float"),y&&y.css({width:r.outerWidth(!0),height:c,display:r.css("display"),"vertical-align":r.css("vertical-align"),float:d}),n))return i()};g();if(c!==s)return h=void 0,m=x,_=k,i=function(){var e,t,n,i;if(!u&&(null!=_&&(--_,0>=_&&(_=k,g())),n=T.scrollTop(),null!=h&&(t=n-h),h=n,f?(b&&(i=n+c+m>s+o,p&&!i&&(p=!1,r.css({position:"fixed",bottom:"",top:m}).trigger("sticky_kit:unbottom"))),n<l&&(f=!1,m=x,null==C&&("left"!==d&&"right"!==d||r.insertAfter(y),y.detach()),e={position:"",width:"",top:""},r.css(e).removeClass(S).trigger("sticky_kit:unstick")),w&&(e=T.height(),c+x>e&&!p&&(m-=t,m=Math.max(e-c,m),m=Math.min(x,m),f&&r.css({top:m+"px"})))):n>l&&(f=!0,e={position:"fixed",top:m},e.width="border-box"===r.css("box-sizing")?r.outerWidth()+"px":r.width()+"px",r.css(e).addClass(S),null==C&&(r.after(y),"left"!==d&&"right"!==d||y.append(r)),r.trigger("sticky_kit:stick")),f&&b&&(null==i&&(i=n+c+m>s+o),!p&&i)))return p=!0,"static"===v.css("position")&&v.css({position:"relative"}),r.css({position:"absolute",bottom:a,top:"auto"}).trigger("sticky_kit:bottom")},t=function(){g();return i()},e=function(){u=!0;T.off("touchmove",i);T.off("scroll",i);T.off("resize",t);D(document.body).off("sticky_kit:recalc",t);r.off("sticky_kit:detach",e);r.removeData("sticky_kit");r.css({position:"",bottom:"",top:"",width:""});v.position("position","");if(f)return null==C&&("left"!==d&&"right"!==d||r.insertAfter(y),y.remove()),r.removeClass(S)},T.on("touchmove",i),T.on("scroll",i),T.on("resize",t),D(document.body).on("sticky_kit:recalc",t),r.on("sticky_kit:detach",e),setTimeout(i,0)}};i=0;for(r=this.length;i<r;i++)e=this[i],t(D(e));return this}}).call(this);!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(n){var e=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd)var t=n.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?r=t:t={};var e,r,d;!function(p){function f(e,t){return n.call(e,t)}function a(e,t){var n,i,r,a,o,s,l,c,d,u,p,f=t&&t.split("/"),h=w.map,m=h&&h["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),o=e.length-1,w.nodeIdCompat&&x.test(e[o])&&(e[o]=e[o].replace(x,"")),e=f.slice(0,f.length-1).concat(e),d=0;d<e.length;d+=1)if(p=e[d],"."===p)e.splice(d,1),d-=1;else if(".."===p){if(1===d&&(".."===e[2]||".."===e[0]))break;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((f||m)&&h){for(n=e.split("/"),d=n.length;d>0;d-=1){if(i=n.slice(0,d).join("/"),f)for(u=f.length;u>0;u-=1)if(r=h[f.slice(0,u).join("/")],r&&(r=r[i])){a=r,s=d;break}if(a)break;!l&&m&&m[i]&&(l=m[i],c=d)}!a&&l&&(a=l,s=c),a&&(n.splice(0,s,a),e=n.join("/"))}return e}function h(t,n){return function(){var e=i.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),c.apply(p,e.concat([t,n]))}}function o(t){return function(e){return a(e,t)}}function m(t){return function(e){y[t]=e}}function v(e){if(f(b,e)){var t=b[e];delete b[e],C[e]=!0,l.apply(p,t)}if(!f(y,e)&&!f(C,e))throw new Error("No "+e);return y[e]}function s(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function t(e){return function(){return w&&w.config&&w.config[e]||{}}}var l,c,g,_,y={},b={},w={},C={},n=Object.prototype.hasOwnProperty,i=[].slice,x=/\.js$/;g=function(e,t){var n,i=s(e),r=i[0];return e=i[1],r&&(r=a(r,t),n=v(r)),r?e=n&&n.normalize?n.normalize(e,o(t)):a(e,t):(e=a(e,t),i=s(e),r=i[0],e=i[1],r&&(n=v(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},_={require:function(e){return h(e)},exports:function(e){var t=y[e];return"undefined"!=typeof t?t:y[e]={}},module:function(e){return{id:e,uri:"",exports:y[e],config:t(e)}}},l=function(e,t,n,i){var r,a,o,s,l,c,d=[],u=typeof n;if(i=i||e,"undefined"===u||"function"===u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if(s=g(t[l],i),a=s.f,"require"===a)d[l]=_.require(e);else if("exports"===a)d[l]=_.exports(e),c=!0;else if("module"===a)r=d[l]=_.module(e);else if(f(y,a)||f(b,a)||f(C,a))d[l]=v(a);else{if(!s.p)throw new Error(e+" missing "+a);s.p.load(s.n,h(i,!0),m(a),{}),d[l]=y[a]}o=n?n.apply(y[e],d):void 0,e&&(r&&r.exports!==p&&r.exports!==y[e]?y[e]=r.exports:o===p&&c||(y[e]=o))}else e&&(y[e]=n)},e=r=c=function(e,t,n,i,r){if("string"==typeof e)return _[e]?_[e](t):v(g(e,t).f);if(!e.splice){if(w=e,w.deps&&c(w.deps,w.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?l(p,e,t,n):setTimeout(function(){l(p,e,t,n)},4),c},c.config=function(e){return c(e)},e._defined=y,d=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),f(y,e)||f(b,e)||(b[e]=[e,t,n])},d.amd={jQuery:!0}}(),t.requirejs=e,t.require=r,t.define=d}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var e=n||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),t.define("select2/utils",["jquery"],function(a){function u(e){var t=e.prototype,n=[];for(var i in t){var r=t[i];"function"==typeof r&&"constructor"!==i&&n.push(i)}return n}var e={};e.Extend=function(e,t){function n(){this.constructor=e}var i={}.hasOwnProperty;for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},e.Decorate=function(i,r){function a(){var e=Array.prototype.unshift,t=r.prototype.constructor.length,n=i.prototype.constructor;t>0&&(e.call(arguments,i.prototype.constructor),n=r.prototype.constructor),n.apply(this,arguments)}function e(){this.constructor=a}var t=u(r),n=u(i);r.displayName=i.displayName,a.prototype=new e;for(var o=0;o<n.length;o++){var s=n[o];a.prototype[s]=i.prototype[s]}for(var l=function(e){var t=function(){};e in a.prototype&&(t=a.prototype[e]);var n=r.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,t),n.apply(this,arguments)}},c=0;c<t.length;c++){var d=t[c];a.prototype[d]=l(d)}return a};var t=function(){this.listeners={}};return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.prototype.trigger=function(e){var t=Array.prototype.slice;this.listeners=this.listeners||{},e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},t.prototype.invoke=function(e,t){for(var n=0,i=e.length;i>n;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;e>n;n++){var i=Math.floor(36*Math.random());t+=i.toString(36)}return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var a=n[r];a=a.substring(0,1).toLowerCase()+a.substring(1),a in i||(i[a]={}),r==n.length-1&&(i[a]=e[t]),i=i[a]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=a(t),i=t.style.overflowX,r=t.style.overflowY;return i!==r||"hidden"!==r&&"visible"!==r?"scroll"===i||"scroll"===r?!0:n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth:!1},e.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){if("1.7"===a.fn.jquery.substr(0,3)){var n=a();a.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},e}),t.define("select2/results",["jquery","./utils"],function(p,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=p('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=p('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)},i.prototype.position=function(e,t){var n=t.find(".select2-results");n.append(e)},i.prototype.sort=function(e){var t=this.options.get("sorter");return t(e)},i.prototype.setClasses=function(){var r=this;this.data.current(function(e){var i=p.map(e,function(e){return e.id.toString()}),t=r.$results.find(".select2-results__option[aria-selected]");t.each(function(){var e=p(this),t=p.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&p.inArray(n,i)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")});var n=t.filter("[aria-selected=true]");n.length>0?n.first().trigger("mouseenter"):t.first().trigger("mouseenter")})},i.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:t(e)},i=this.option(n);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]);for(var i in n){var r=n[i];t.setAttribute(i,r)}if(e.children){var a=p(t),o=document.createElement("strong");o.className="select2-results__group";p(o);this.template(e,o);for(var s=[],l=0;l<e.children.length;l++){var c=e.children[l],d=this.option(c);s.push(d)}var u=p("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});u.append(s),a.append(o),a.append(u)}else this.template(e,t);return p.data(t,"data",e),t},i.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&l.setClasses()}),t.on("unselect",function(){t.isOpen()&&l.setClasses()}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=e.data("data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(0!==n){var i=n-1;0===e.length&&(i=0);var r=t.eq(i);r.trigger("mouseenter");var a=l.$results.offset().top,o=r.offset().top,s=l.$results.scrollTop()+(o-a);0===i?l.$results.scrollTop(0):0>o-a&&l.$results.scrollTop(s)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e),i=n+1;if(!(i>=t.length)){var r=t.eq(i);r.trigger("mouseenter");var a=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-a;0===i?l.$results.scrollTop(0):o>a&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),p.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,r=e.deltaY<0&&n<=l.$results.height();i?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):r&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=p(this),n=t.data("data");return"true"===t.attr("aria-selected")?void(l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})):void l.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=p(this).data("data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:p(this)})})},i.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]"),n=t.index(e),i=this.$results.offset().top,r=e.offset().top,a=this.$results.scrollTop()+(r-i),o=r-i;a-=2*e.outerHeight(!1),2>=n?this.$results.scrollTop(0):(o>this.$results.outerHeight()||0>o)&&this.$results.scrollTop(a)}},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),r=n(e,t);null==r?t.style.display="none":"string"==typeof r?t.innerHTML=i(r):p(t).append(r)},i}),t.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(r,e,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=r('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},n.prototype.bind=function(e,t){var n=this,i=(e.id+"-container",e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===a.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},n.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||r.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},n.prototype._attachCloseHandler=function(e){r(document.body).on("mousedown.select2."+e.id,function(e){var t=r(e.target),n=t.closest(".select2"),i=r(".select2.select2-container--open");i.each(function(){var e=r(this);if(this!=n[0]){var t=e.data("element");t.select2("close")}})})},n.prototype._detachCloseHandler=function(e){r(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(e,t){var n=t.find(".selection");n.append(e)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},n}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("selection:update",function(e){n.update(e.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i),n.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,e,s){function n(e,t){n.__super__.constructor.apply(this,arguments)}return s.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.options.get("disabled")){var t=a(this),n=t.parent(),i=n.data("data");r.trigger("unselect",{originalEvent:e,data:i})}})},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(e,t){var n=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(n(e,t))},n.prototype.selectionContainer=function(){var e=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return e},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],r=this.selectionContainer(),a=this.display(i,r);r.append(a),r.prop("title",i.title||i.text),r.data("data",i),t.push(r)}var o=this.$selection.find(".select2-selection__rendered");s.appendMany(o,t)}},n}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id,i=t.length>1;if(i||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),t.define("select2/selection/allowClear",["jquery","../keys"],function(i,r){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),r=0;r<i.length;r++){var a={data:i[r]};if(this.trigger("unselect",a),a.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||(t.which==r.DELETE||t.which==r.BACKSPACE)&&this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(this.$selection.find(".select2-selection__placeholder").length>0||0===t.length)){var n=i('<span class="select2-selection__clear">&times;</span>');n.data("data",t),this.$selection.find(".select2-selection__rendered").prepend(n)}},e}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(i,e,o){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=i('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},t.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){r.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===o.BACKSPACE&&""===r.$search.val()){var n=r.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var i=n.data("data");r.searchRemoveChoice(i),e.preventDefault()}}});var i=document.documentMode,a=i&&11>=i;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){return a?void r.$selection.off("input.search input.searchcheck"):void r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(a&&"input"===e.type)return void r.$selection.off("input.search input.searchcheck");var t=e.which;t!=o.SHIFT&&t!=o.CTRL&&t!=o.ALT&&t!=o.TAB&&r.handleSearch(e)})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(""!==this.$search.attr("placeholder"))e=this.$selection.find(".select2-selection__rendered").innerWidth();else{var t=this.$search.val().length+1;e=.75*t+"em"}this.$search.css("width",e)},t}),t.define("select2/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],a=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==o.inArray(e,r)){t=t||{};var n=o.Event("select2:"+e,{params:t});i.$element.trigger(n),-1!==o.inArray(e,a)&&(t.prevented=n.isDefaultPrevented())}})},e}),t.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var t=n(e);i._cache[e]=t}return new i(i._cache[e])},i}),t.define("select2/diacritics",[],function(){var e={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return e}),t.define("select2/data/base",["../utils"],function(i){function n(e,t){n.__super__.constructor.call(this)}return i.Extend(n,i.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=i.generateChars(4),n+=null!=t.id?"-"+t.id.toString():"-"+i.generateChars(4)},n}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,s){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var n=[],i=this;this.$element.find(":selected").each(function(){var e=s(this),t=i.item(e);n.push(t)}),e(n)},n.prototype.select=function(r){var a=this;if(r.selected=!0,s(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];r=[r],r.push.apply(r,e);for(var n=0;n<r.length;n++){var i=r[n].id;-1===s.inArray(i,t)&&t.push(i)}a.$element.val(t),a.$element.trigger("change")});else{var e=r.id;this.$element.val(e),this.$element.trigger("change")}},n.prototype.unselect=function(r){var a=this;if(this.$element.prop("multiple"))return r.selected=!1,s(r.element).is("option")?(r.element.selected=!1,void this.$element.trigger("change")):void this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==r.id&&-1===s.inArray(i,t)&&t.push(i)}a.$element.val(t),a.$element.trigger("change")})},n.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){s.removeData(this,"data")})},n.prototype.query=function(i,e){var r=[],a=this,t=this.$element.children();t.each(function(){var e=s(this);if(e.is("option")||e.is("optgroup")){var t=a.item(e),n=a.matches(i,t);null!==n&&r.push(n)}}),e({results:r})},n.prototype.addOptions=function(e){t.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup"),t.label=e.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=e.text:t.innerText=e.text),e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=s(t),i=this._normalizeItem(e);return i.element=t,s.data(t,"data",i),n},n.prototype.item=function(e){var t={};if(t=s.data(e[0],"data"),null!=t)return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),i=[],r=0;r<n.length;r++){var a=s(n[r]),o=this.item(a);i.push(o)}t.children=i}return t=this._normalizeItem(t),t.element=e[0],s.data(e[0],"data",t),t},n.prototype._normalizeItem=function(e){s.isPlainObject(e)||(e={id:e,text:e}),e=s.extend({},{text:""},e);var t={selected:!1,disabled:!1};return null!=e.id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),s.extend({},t,e)},n.prototype.matches=function(e,t){var n=this.options.get("matcher");return n(e,t)},n}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,h,m){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return h.Extend(i,e),i.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){function t(e){return function(){return m(this).val()==e.id}}for(var n=this,i=this.$element.find("option"),r=i.map(function(){return n.item(m(this)).id}).get(),a=[],o=0;o<e.length;o++){var s=this._normalizeItem(e[o]);if(m.inArray(s.id,r)>=0){var l=i.filter(t(s)),c=this.item(l),d=m.extend(!0,{},s,c),u=this.option(d);l.replaceWith(u)}else{var p=this.option(s);if(s.children){var f=this.convertToOptions(s.children);h.appendMany(p,f)}a.push(p)}}return a},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,a){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return a.extend({},e,{q:e.term})},transport:function(e,t,n){var i=a.ajax(e);return i.then(t),i.fail(n),i}};return a.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,i){function e(){var e=t.transport(t,function(e){var t=r.processResults(e,n);r.options.get("debug")&&window.console&&console.error&&(t&&t.results&&a.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),i(t)},function(){r.trigger("results:message",{message:"errorLoading"})});r._request=e}var r=this;null!=this._request&&(a.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=a.extend({type:"GET"},this.ajaxOptions);"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&""!==n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),t.define("select2/data/tags",["jquery"],function(d){function e(e,t,n){var i=n.get("tags"),r=n.get("createTag");void 0!==r&&(this.createTag=r);var a=n.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,t,n),d.isArray(i))for(var o=0;o<i.length;o++){var s=i[o],l=this._normalizeItem(s),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,d){function u(e,t){for(var n=e.results,i=0;i<n.length;i++){var r=n[i],a=null!=r.children&&!u({results:r.children},!0),o=r.text===c.term;if(o||a)return t?!1:(e.data=n,void d(e))}if(t)return!0;var s=p.createTag(c);if(null!=s){var l=p.option(s);l.attr("data-select2-tag",!0),p.addOptions([l]),p.insertTag(n,s)}e.results=n,d(e)}var p=this;return this._removeOldTags(),null==c.term||null!=c.page?void e.call(this,c,d):void e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=d.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){var t=(this._lastTag,this.$element.find("option[data-select2-tag]"));t.each(function(){this.selected||d(this).remove()})},e}),t.define("select2/data/tokenizer",["jquery"],function(p){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){function i(e){r.trigger("select",{data:e})}var r=this;t.term=t.term||"";var a=this.tokenizer(t,this.options,i);a.term!==t.term&&(this.$search.length&&(this.$search.val(a.term),this.$search.focus()),t.term=a.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var r=n.get("tokenSeparators")||[],a=t.term,o=0,s=this.createTag||function(e){return{id:e.term,text:e.term}};o<a.length;){var l=a[o];if(-1!==p.inArray(l,r)){var c=a.substr(0,o),d=p.extend({},t,{term:c}),u=s(d);null!=u?(i(u),a=a.substr(o+1)||"",o=0):o++}else o++}return{term:a}},e}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(n,i,r){var a=this;this.current(function(e){var t=null!=e?e.length:0;return a.maximumSelectionLength>0&&t>=a.maximumSelectionLength?void a.trigger("results:message",{message:"maximumSelected",args:{maximum:a.maximumSelectionLength}}):void n.call(a,i,r)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(r,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=r('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){r(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),t.on("results:all",function(e){if(null==e.query.term||""===e.query.term){var t=i.showSearch(e);t?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(r){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=r.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var t=i.$results.offset().top+i.$results.outerHeight(!1),n=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1);t+50>=n&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=r.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=r('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,s){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,r=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t,t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,r="resize.select2."+t.id,a="orientationchange.select2."+t.id,o=this.$container.parents().filter(s.hasScroll);o.each(function(){f(this).data("select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),o.on(i,function(e){var t=f(this).data("select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(i+" "+r+" "+a,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,r="orientationchange.select2."+t.id,a=this.$container.parents().filter(s.hasScroll);a.off(n),f(window).off(n+" "+i+" "+r)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=r.top,a.bottom=r.top+a.height;var o={height:this.$dropdown.outerHeight(!1)},s={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},l=s.top<r.top-o.height,c=s.bottom>r.bottom+o.height,d={left:r.left,top:a.bottom},u=this.$dropdownParent;"static"===u.css("position")&&(u=u.offsetParent());var p=u.offset();d.top-=p.top,d.left-=p.left,t||n||(i="below"),c||!l||t?!l&&c&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(d.top=a.top-o.height),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function r(e){for(var t=0,n=0;n<e.length;n++){var i=e[n];i.children?t+=r(i.children):t++}return t}function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return r(t.data.results)<this.minimumResultsForSearch?!1:e.call(this,t)},e}),t.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(){i._handleSelectOnClose()})},e.prototype._handleSelectOnClose=function(){var e=this.getHighlightedResults();if(!(e.length<1)){var t=e.data("data");null!=t.element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})}},e}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(m,v,g,_,y,b,w,C,x,k,S,n,D,T,$,E,O,A,P,M,I,N,R,F,L,j,H,q,e){function t(){this.reset()}t.prototype.apply=function(t){if(t=m.extend(!0,{},this.defaults,t),null==t.dataAdapter){if(null!=t.ajax?t.dataAdapter=$:null!=t.data?t.dataAdapter=T:t.dataAdapter=D,t.minimumInputLength>0&&(t.dataAdapter=k.Decorate(t.dataAdapter,A)),t.maximumInputLength>0&&(t.dataAdapter=k.Decorate(t.dataAdapter,P)),t.maximumSelectionLength>0&&(t.dataAdapter=k.Decorate(t.dataAdapter,M)),t.tags&&(t.dataAdapter=k.Decorate(t.dataAdapter,E)),(null!=t.tokenSeparators||null!=t.tokenizer)&&(t.dataAdapter=k.Decorate(t.dataAdapter,O)),null!=t.query){var e=v(t.amdBase+"compat/query");t.dataAdapter=k.Decorate(t.dataAdapter,e)}if(null!=t.initSelection){var n=v(t.amdBase+"compat/initSelection");t.dataAdapter=k.Decorate(t.dataAdapter,n)}}if(null==t.resultsAdapter&&(t.resultsAdapter=g,null!=t.ajax&&(t.resultsAdapter=k.Decorate(t.resultsAdapter,F)),null!=t.placeholder&&(t.resultsAdapter=k.Decorate(t.resultsAdapter,R)),t.selectOnClose&&(t.resultsAdapter=k.Decorate(t.resultsAdapter,H))),null==t.dropdownAdapter){if(t.multiple)t.dropdownAdapter=I;else{var i=k.Decorate(I,N);t.dropdownAdapter=i}if(0!==t.minimumResultsForSearch&&(t.dropdownAdapter=k.Decorate(t.dropdownAdapter,j)),t.closeOnSelect&&(t.dropdownAdapter=k.Decorate(t.dropdownAdapter,q)),null!=t.dropdownCssClass||null!=t.dropdownCss||null!=t.adaptDropdownCssClass){var r=v(t.amdBase+"compat/dropdownCss");t.dropdownAdapter=k.Decorate(t.dropdownAdapter,r)}t.dropdownAdapter=k.Decorate(t.dropdownAdapter,L)}if(null==t.selectionAdapter){if(t.multiple?t.selectionAdapter=y:t.selectionAdapter=_,null!=t.placeholder&&(t.selectionAdapter=k.Decorate(t.selectionAdapter,b)),t.allowClear&&(t.selectionAdapter=k.Decorate(t.selectionAdapter,w)),t.multiple&&(t.selectionAdapter=k.Decorate(t.selectionAdapter,C)),null!=t.containerCssClass||null!=t.containerCss||null!=t.adaptContainerCssClass){var a=v(t.amdBase+"compat/containerCss");t.selectionAdapter=k.Decorate(t.selectionAdapter,a)}t.selectionAdapter=k.Decorate(t.selectionAdapter,x)}if("string"==typeof t.language)if(t.language.indexOf("-")>0){var o=t.language.split("-"),s=o[0];t.language=[t.language,s]}else t.language=[t.language];if(m.isArray(t.language)){var l=new S;t.language.push("en");for(var c=t.language,d=0;d<c.length;d++){var u=c[d],p={};try{p=S.loadPath(u)}catch(e){try{u=this.defaults.amdLanguageBase+u,p=S.loadPath(u)}catch(e){t.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+u+'" could not be automatically loaded. A fallback will be used instead.');continue}}l.extend(p)}t.translations=l}else{var f=S.loadPath(this.defaults.amdLanguageBase+"en"),h=new S(t.language);h.extend(f),t.translations=h}return t},t.prototype.reset=function(){function l(e){function t(e){return n[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function c(e,t){if(""===m.trim(e.term))return t;if(t.children&&t.children.length>0){for(var n=m.extend(!0,{},t),i=t.children.length-1;i>=0;i--){var r=t.children[i],a=c(e,r);null==a&&n.children.splice(i,1)}return n.children.length>0?n:c(e,n)}var o=l(t.text).toUpperCase(),s=l(e.term).toUpperCase();return o.indexOf(s)>-1?t:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:k.escapeMarkup,language:e,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},t.prototype.set=function(e,t){var n=m.camelCase(e),i={};i[n]=t;var r=k._convertData(i);m.extend(this.defaults,r)};var i=new t;return i}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(i,a,r,o){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),this.options=r.apply(this.options),t&&t.is("input")){var n=i(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=o.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var n={};n=a.fn.jquery&&"1."==a.fn.jquery.substr(0,2)&&e[0].dataset?a.extend(!0,{},e[0].dataset,e.data()):e.data();var i=a.extend(!0,{},n);i=o._convertData(i);for(var r in i)a.inArray(r,t)>-1||(a.isPlainObject(this.options[r])?a.extend(this.options[r],i[r]):this.options[r]=i[r]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(r,c,n,i){var d=function(e,t){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var i=this.options.get("dataAdapter");this.dataAdapter=new i(e,this.options);var r=this.render();this._placeContainer(r);var a=this.options.get("selectionAdapter");this.selection=new a(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var o=this.options.get("dropdownAdapter");this.dropdown=new o(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);var s=this.options.get("resultsAdapter");this.results=new s(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return n.Extend(d,n.Observable),d.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return 0>=r?"auto":r+"px"}if("style"==t){var a=e.attr("style");if("string"!=typeof a)return null;for(var o=a.split(";"),s=0,l=o.length;l>s;s+=1){var c=o[s].replace(/\s/g,""),d=c.match(n);if(null!==d&&d.length>=1)return d[1]}return null}return t},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this._sync=n.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){r.each(e,t._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",t._sync,!1)},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===r.inArray(e,i)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var r=i[e],a={prevented:!1,name:e,args:t};if(n.call(this,r,a),a.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.trigger("query",{})},d.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];r.isArray(t)&&(t=r.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=r('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},d}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(r,e,t,n){if(null==r.fn.select2){var a=["open","close","destroy"];r.fn.select2=function(n){if(n=n||{},"object"==typeof n)return this.each(function(){var e=r.extend(!0,{},n);new t(r(this),e)}),this;if("string"==typeof n){var i;return this.each(function(){var e=r(this).data("select2");null==e&&window.console&&console.error&&console.error("The select2('"+n+"') method was called on an element that is not using Select2.");var t=Array.prototype.slice.call(arguments,1);i=e[n].apply(e,t)}),r.inArray(n,a)>-1?this:i}throw new Error("Invalid arguments for Select2: "+n)}}return null==r.fn.select2.defaults&&(r.fn.select2.defaults=n),t}),{define:t.define,require:t.require}}(),t=e.require("jquery.select2");return n.fn.select2.amd=e,t});(function(){function f(e){var t=f.modules[e];if(!t)throw new Error('failed to require "'+e+'"');if(!("exports"in t)&&typeof t.definition==="function"){t.client=t.component=true;t.definition.call(this,t.exports={},t);delete t.definition}return t.exports}f.loader="component";f.helper={};f.helper.semVerSort=function(e,t){var n=e.version.split(".");var i=t.version.split(".");for(var r=0;r<n.length;++r){var a=parseInt(n[r],10);var o=parseInt(i[r],10);if(a===o){var s=n[r].substr((""+a).length);var l=i[r].substr((""+o).length);if(s===""&&l!=="")return 1;if(s!==""&&l==="")return-1;if(s!==""&&l!=="")return s>l?1:-1;continue}else if(a>o){return 1}else{return-1}}return 0};f.latest=function(e,t){function n(e){throw new Error('failed to find latest module of "'+e+'"')}var i=/(.*)~(.*)@v?(\d+\.\d+\.\d+[^\/]*)$/;var r=/(.*)~(.*)/;if(!r.test(e))n(e);var a=Object.keys(f.modules);var o=[];var s=[];for(var l=0;l<a.length;l++){var c=a[l];if(new RegExp(e+"@").test(c)){var d=c.substr(e.length+1);var u=i.exec(c);if(u!=null){o.push({version:d,name:c})}else{s.push({version:d,name:c})}}}if(o.concat(s).length===0){n(e)}if(o.length>0){var p=o.sort(f.helper.semVerSort).pop().name;if(t===true){return p}return f(p)}var p=s.sort(function(e,t){return e.name>t.name})[0].name;if(t===true){return p}return f(p)};f.modules={};f.register=function(e,t){f.modules[e]={definition:t}};f.define=function(e,t){f.modules[e]={exports:t}};f.register("abpetkov~transitionize@0.0.3",function(e,t){t.exports=n;function n(e,t){if(!(this instanceof n))return new n(e,t);this.element=e;this.props=t||{};this.init()}n.prototype.isSafari=function(){return/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)};n.prototype.init=function(){var e=[];for(var t in this.props){e.push(t+" "+this.props[t])}this.element.style.transition=e.join(", ");if(this.isSafari())this.element.style.webkitTransition=e.join(", ")}});f.register("ftlabs~fastclick@v0.6.11",function(e,t){function i(r){"use strict";var t,e=this;this.trackingClick=false;this.trackingClickStart=0;this.targetElement=null;this.touchStartX=0;this.touchStartY=0;this.lastTouchIdentifier=0;this.touchBoundary=10;this.layer=r;if(!r||!r.nodeType){throw new TypeError("Layer must be a document node")}this.onClick=function(){return i.prototype.onClick.apply(e,arguments)};this.onMouse=function(){return i.prototype.onMouse.apply(e,arguments)};this.onTouchStart=function(){return i.prototype.onTouchStart.apply(e,arguments)};this.onTouchMove=function(){return i.prototype.onTouchMove.apply(e,arguments)};this.onTouchEnd=function(){return i.prototype.onTouchEnd.apply(e,arguments)};this.onTouchCancel=function(){return i.prototype.onTouchCancel.apply(e,arguments)};if(i.notNeeded(r)){return}if(this.deviceIsAndroid){r.addEventListener("mouseover",this.onMouse,true);r.addEventListener("mousedown",this.onMouse,true);r.addEventListener("mouseup",this.onMouse,true)}r.addEventListener("click",this.onClick,true);r.addEventListener("touchstart",this.onTouchStart,false);r.addEventListener("touchmove",this.onTouchMove,false);r.addEventListener("touchend",this.onTouchEnd,false);r.addEventListener("touchcancel",this.onTouchCancel,false);if(!Event.prototype.stopImmediatePropagation){r.removeEventListener=function(e,t,n){var i=Node.prototype.removeEventListener;if(e==="click"){i.call(r,e,t.hijacked||t,n)}else{i.call(r,e,t,n)}};r.addEventListener=function(e,t,n){var i=Node.prototype.addEventListener;if(e==="click"){i.call(r,e,t.hijacked||(t.hijacked=function(e){if(!e.propagationStopped){t(e)}}),n)}else{i.call(r,e,t,n)}}}if(typeof r.onclick==="function"){t=r.onclick;r.addEventListener("click",function(e){t(e)},false);r.onclick=null}}i.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0;i.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);i.prototype.deviceIsIOS4=i.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);i.prototype.deviceIsIOSWithBadTarget=i.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);i.prototype.needsClick=function(e){"use strict";switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled){return true}break;case"input":if(this.deviceIsIOS&&e.type==="file"||e.disabled){return true}break;case"label":case"video":return true}return/\bneedsclick\b/.test(e.className)};i.prototype.needsFocus=function(e){"use strict";switch(e.nodeName.toLowerCase()){case"textarea":return true;case"select":return!this.deviceIsAndroid;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return false}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}};i.prototype.sendClick=function(e,t){"use strict";var n,i;if(document.activeElement&&document.activeElement!==e){document.activeElement.blur()}i=t.changedTouches[0];n=document.createEvent("MouseEvents");n.initMouseEvent(this.determineEventType(e),true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);n.forwardedTouchEvent=true;e.dispatchEvent(n)};i.prototype.determineEventType=function(e){"use strict";if(this.deviceIsAndroid&&e.tagName.toLowerCase()==="select"){return"mousedown"}return"click"};i.prototype.focus=function(e){"use strict";var t;if(this.deviceIsIOS&&e.setSelectionRange&&e.type.indexOf("date")!==0&&e.type!=="time"){t=e.value.length;e.setSelectionRange(t,t)}else{e.focus()}};i.prototype.updateScrollParent=function(e){"use strict";var t,n;t=e.fastClickScrollParent;if(!t||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n;e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}if(t){t.fastClickLastScrollTop=t.scrollTop}};i.prototype.getTargetElementFromEventTarget=function(e){"use strict";if(e.nodeType===Node.TEXT_NODE){return e.parentNode}return e};i.prototype.onTouchStart=function(e){"use strict";var t,n,i;if(e.targetTouches.length>1){return true}t=this.getTargetElementFromEventTarget(e.target);n=e.targetTouches[0];if(this.deviceIsIOS){i=window.getSelection();if(i.rangeCount&&!i.isCollapsed){return true}if(!this.deviceIsIOS4){if(n.identifier===this.lastTouchIdentifier){e.preventDefault();return false}this.lastTouchIdentifier=n.identifier;this.updateScrollParent(t)}}this.trackingClick=true;this.trackingClickStart=e.timeStamp;this.targetElement=t;this.touchStartX=n.pageX;this.touchStartY=n.pageY;if(e.timeStamp-this.lastClickTime<200){e.preventDefault()}return true};i.prototype.touchHasMoved=function(e){"use strict";var t=e.changedTouches[0],n=this.touchBoundary;if(Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n){return true}return false};i.prototype.onTouchMove=function(e){"use strict";if(!this.trackingClick){return true}if(this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e)){this.trackingClick=false;this.targetElement=null}return true};i.prototype.findControl=function(e){"use strict";if(e.control!==undefined){return e.control}if(e.htmlFor){return document.getElementById(e.htmlFor)}return e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};i.prototype.onTouchEnd=function(e){"use strict";var t,n,i,r,a,o=this.targetElement;if(!this.trackingClick){return true}if(e.timeStamp-this.lastClickTime<200){this.cancelNextClick=true;return true}this.cancelNextClick=false;this.lastClickTime=e.timeStamp;n=this.trackingClickStart;this.trackingClick=false;this.trackingClickStart=0;if(this.deviceIsIOSWithBadTarget){a=e.changedTouches[0];o=document.elementFromPoint(a.pageX-window.pageXOffset,a.pageY-window.pageYOffset)||o;o.fastClickScrollParent=this.targetElement.fastClickScrollParent}i=o.tagName.toLowerCase();if(i==="label"){t=this.findControl(o);if(t){this.focus(o);if(this.deviceIsAndroid){return false}o=t}}else if(this.needsFocus(o)){if(e.timeStamp-n>100||this.deviceIsIOS&&window.top!==window&&i==="input"){this.targetElement=null;return false}this.focus(o);if(!this.deviceIsIOS4||i!=="select"){this.targetElement=null;e.preventDefault()}return false}if(this.deviceIsIOS&&!this.deviceIsIOS4){r=o.fastClickScrollParent;if(r&&r.fastClickLastScrollTop!==r.scrollTop){return true}}if(!this.needsClick(o)){e.preventDefault();this.sendClick(o,e)}return false};i.prototype.onTouchCancel=function(){"use strict";this.trackingClick=false;this.targetElement=null};i.prototype.onMouse=function(e){"use strict";if(!this.targetElement){return true}if(e.forwardedTouchEvent){return true}if(!e.cancelable){return true}if(!this.needsClick(this.targetElement)||this.cancelNextClick){if(e.stopImmediatePropagation){e.stopImmediatePropagation()}else{e.propagationStopped=true}e.stopPropagation();e.preventDefault();return false}return true};i.prototype.onClick=function(e){"use strict";var t;if(this.trackingClick){this.targetElement=null;this.trackingClick=false;return true}if(e.target.type==="submit"&&e.detail===0){return true}t=this.onMouse(e);if(!t){this.targetElement=null}return t};i.prototype.destroy=function(){"use strict";var e=this.layer;if(this.deviceIsAndroid){e.removeEventListener("mouseover",this.onMouse,true);e.removeEventListener("mousedown",this.onMouse,true);e.removeEventListener("mouseup",this.onMouse,true)}e.removeEventListener("click",this.onClick,true);e.removeEventListener("touchstart",this.onTouchStart,false);e.removeEventListener("touchmove",this.onTouchMove,false);e.removeEventListener("touchend",this.onTouchEnd,false);e.removeEventListener("touchcancel",this.onTouchCancel,false)};i.notNeeded=function(e){"use strict";var t;var n;if(typeof window.ontouchstart==="undefined"){return true}n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1];if(n){if(i.prototype.deviceIsAndroid){t=document.querySelector("meta[name=viewport]");if(t){if(t.content.indexOf("user-scalable=no")!==-1){return true}if(n>31&&window.innerWidth<=window.screen.width){return true}}}else{return true}}if(e.style.msTouchAction==="none"){return true}return false};i.attach=function(e){"use strict";return new i(e)};if(typeof define!=="undefined"&&define.amd){define(function(){"use strict";return i})}else if(typeof t!=="undefined"&&t.exports){t.exports=i.attach;t.exports.FastClick=i}else{window.FastClick=i}});f.register("component~indexof@0.0.3",function(e,t){t.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n){if(e[n]===t)return n}return-1}});f.register("component~classes@1.2.1",function(e,t){var i=f("component~indexof@0.0.3");var n=/\s+/;var r=Object.prototype.toString;t.exports=function(e){return new a(e)};function a(e){if(!e)throw new Error("A DOM element reference is required");this.el=e;this.list=e.classList}a.prototype.add=function(e){if(this.list){this.list.add(e);return this}var t=this.array();var n=i(t,e);if(!~n)t.push(e);this.el.className=t.join(" ");return this};a.prototype.remove=function(e){if("[object RegExp]"==r.call(e)){return this.removeMatching(e)}if(this.list){this.list.remove(e);return this}var t=this.array();var n=i(t,e);if(~n)t.splice(n,1);this.el.className=t.join(" ");return this};a.prototype.removeMatching=function(e){var t=this.array();for(var n=0;n<t.length;n++){if(e.test(t[n])){this.remove(t[n])}}return this};a.prototype.toggle=function(e,t){if(this.list){if("undefined"!==typeof t){if(t!==this.list.toggle(e,t)){this.list.toggle(e)}}else{this.list.toggle(e)}return this}if("undefined"!==typeof t){if(!t){this.remove(e)}else{this.add(e)}}else{if(this.has(e)){this.remove(e)}else{this.add(e)}}return this};a.prototype.array=function(){var e=this.el.className.replace(/^\s+|\s+$/g,"");var t=e.split(n);if(""===t[0])t.shift();return t};a.prototype.has=a.prototype.contains=function(e){return this.list?this.list.contains(e):!!~i(this.array(),e)}});f.register("component~event@0.1.4",function(e,t){var r=window.addEventListener?"addEventListener":"attachEvent",a=window.removeEventListener?"removeEventListener":"detachEvent",o=r!=="addEventListener"?"on":"";e.bind=function(e,t,n,i){e[r](o+t,n,i||false);return n};e.unbind=function(e,t,n,i){e[a](o+t,n,i||false);return n}});f.register("component~query@0.0.3",function(t,e){function n(e,t){return t.querySelector(e)}t=e.exports=function(e,t){t=t||document;return n(e,t)};t.all=function(e,t){t=t||document;return t.querySelectorAll(e)};t.engine=function(e){if(!e.one)throw new Error(".one callback required");if(!e.all)throw new Error(".all callback required");n=e.one;t.all=e.all;return t}});f.register("component~matches-selector@0.1.5",function(e,t){var r=f("component~query@0.0.3");var n=Element.prototype;var a=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;t.exports=i;function i(e,t){if(!e||e.nodeType!==1)return false;if(a)return a.call(e,t);var n=r.all(t,e.parentNode);for(var i=0;i<n.length;++i){if(n[i]==e)return true}return false}});f.register("component~closest@0.1.4",function(e,t){var r=f("component~matches-selector@0.1.5");t.exports=function(e,t,n,i){e=n?{parentNode:e}:e;i=i||document;while((e=e.parentNode)&&e!==document){if(r(e,t))return e;if(e===i)return}}});f.register("component~delegate@0.2.3",function(e,t){var a=f("component~closest@0.1.4"),o=f("component~event@0.1.4");e.bind=function(n,i,e,r,t){return o.bind(n,e,function(e){var t=e.target||e.srcElement;e.delegateTarget=a(t,i,true,n);if(e.delegateTarget)r.call(n,e)},t)};e.unbind=function(e,t,n,i){o.unbind(e,t,n,i)}});f.register("component~events@1.0.9",function(e,t){var l=f("component~event@0.1.4");var c=f("component~delegate@0.2.3");t.exports=n;function n(e,t){if(!(this instanceof n))return new n(e,t);if(!e)throw new Error("element required");if(!t)throw new Error("object required");this.el=e;this.obj=t;this._events={}}n.prototype.sub=function(e,t,n){this._events[e]=this._events[e]||{};this._events[e][t]=n};n.prototype.bind=function(e,t){var n=d(e);var i=this.el;var r=this.obj;var a=n.name;var t=t||"on"+a;var o=[].slice.call(arguments,2);function s(){var e=[].slice.call(arguments).concat(o);r[t].apply(r,e)}if(n.selector){s=c.bind(i,n.selector,a,s)}else{l.bind(i,a,s)}this.sub(a,t,s);return s};n.prototype.unbind=function(e,t){if(0==arguments.length)return this.unbindAll();if(1==arguments.length)return this.unbindAllOf(e);var n=this._events[e];if(!n)return;var i=n[t];if(!i)return;l.unbind(this.el,e,i)};n.prototype.unbindAll=function(){for(var e in this._events){this.unbindAllOf(e)}};n.prototype.unbindAllOf=function(e){var t=this._events[e];if(!t)return;for(var n in t){this.unbind(e,n)}};function d(e){var t=e.split(/ +/);return{name:t.shift(),selector:t.join(" ")}}});f.register("switchery",function(e,t){var n=f("abpetkov~transitionize@0.0.3"),i=f("ftlabs~fastclick@v0.6.11"),r=f("component~classes@1.2.1"),a=f("component~events@1.0.9");t.exports=s;var o={color:"#64bd63",secondaryColor:"#dfdfdf",jackColor:"#fff",jackSecondaryColor:null,className:"switchery",disabled:false,disabledOpacity:.5,speed:"0.4s",size:"default"};function s(e,t){if(!(this instanceof s))return new s(e,t);this.element=e;this.options=t||{};for(var n in o){if(this.options[n]==null){this.options[n]=o[n]}}if(this.element!=null&&this.element.type=="checkbox")this.init();if(this.isDisabled()===true)this.disable()}s.prototype.hide=function(){this.element.style.display="none"};s.prototype.show=function(){var e=this.create();this.insertAfter(this.element,e)};s.prototype.create=function(){this.switcher=document.createElement("span");this.jack=document.createElement("small");this.switcher.appendChild(this.jack);this.switcher.className=this.options.className;this.events=a(this.switcher,this);return this.switcher};s.prototype.insertAfter=function(e,t){e.parentNode.insertBefore(t,e.nextSibling)};s.prototype.setPosition=function(e){var t=this.isChecked(),n=this.switcher,i=this.jack;if(e&&t)t=false;else if(e&&!t)t=true;if(t===true){this.element.checked=true;if(window.getComputedStyle)i.style.left=parseInt(window.getComputedStyle(n).width)-parseInt(window.getComputedStyle(i).width)+"px";else i.style.left=parseInt(n.currentStyle["width"])-parseInt(i.currentStyle["width"])+"px";if(this.options.color)this.colorize();this.setSpeed()}else{i.style.left=0;this.element.checked=false;this.switcher.style.boxShadow="inset 0 0 0 0 "+this.options.secondaryColor;this.switcher.style.borderColor=this.options.secondaryColor;this.switcher.style.backgroundColor=this.options.secondaryColor!==o.secondaryColor?this.options.secondaryColor:"#fff";this.jack.style.backgroundColor=this.options.jackSecondaryColor!==this.options.jackColor?this.options.jackSecondaryColor:this.options.jackColor;this.setSpeed()}};s.prototype.setSpeed=function(){var e={},t={"background-color":this.options.speed,left:this.options.speed.replace(/[a-z]/,"")/2+"s"};if(this.isChecked()){e={border:this.options.speed,"box-shadow":this.options.speed,"background-color":this.options.speed.replace(/[a-z]/,"")*3+"s"}}else{e={border:this.options.speed,"box-shadow":this.options.speed}}n(this.switcher,e);n(this.jack,t)};s.prototype.setSize=function(){var e="switchery-small",t="switchery-default",n="switchery-large";switch(this.options.size){case"small":r(this.switcher).add(e);break;case"large":r(this.switcher).add(n);break;default:r(this.switcher).add(t);break}};s.prototype.colorize=function(){var e=this.switcher.offsetHeight/2;this.switcher.style.backgroundColor=this.options.color;this.switcher.style.borderColor=this.options.color;this.switcher.style.boxShadow="inset 0 0 0 "+e+"px "+this.options.color;this.jack.style.backgroundColor=this.options.jackColor};s.prototype.handleOnchange=function(e){if(document.dispatchEvent){var t=document.createEvent("HTMLEvents");t.initEvent("change",true,true);this.element.dispatchEvent(t)}else{this.element.fireEvent("onchange")}};s.prototype.handleChange=function(){var e=this,t=this.element;if(t.addEventListener){t.addEventListener("change",function(){e.setPosition()})}else{t.attachEvent("onchange",function(){e.setPosition()})}};s.prototype.handleClick=function(){var e=this.switcher;i(e);this.events.bind("click","bindClick")};s.prototype.bindClick=function(){var e=this.element.parentNode.tagName.toLowerCase(),t=e==="label"?false:true;this.setPosition(t);this.handleOnchange(this.element.checked)};s.prototype.markAsSwitched=function(){this.element.setAttribute("data-switchery",true)};s.prototype.markedAsSwitched=function(){return this.element.getAttribute("data-switchery")};s.prototype.init=function(){this.hide();this.show();this.setSize();this.setPosition();this.markAsSwitched();this.handleChange();this.handleClick()};s.prototype.isChecked=function(){return this.element.checked};s.prototype.isDisabled=function(){return this.options.disabled||this.element.disabled||this.element.readOnly};s.prototype.destroy=function(){this.events.unbind()};s.prototype.enable=function(){if(!this.options.disabled)return;if(this.options.disabled)this.options.disabled=false;if(this.element.disabled)this.element.disabled=false;if(this.element.readOnly)this.element.readOnly=false;this.switcher.style.opacity=1;this.events.bind("click","bindClick")};s.prototype.disable=function(){if(this.options.disabled)return;if(!this.options.disabled)this.options.disabled=true;if(!this.element.disabled)this.element.disabled=true;if(!this.element.readOnly)this.element.readOnly=true;this.switcher.style.opacity=this.options.disabledOpacity;this.destroy()}});if(typeof exports=="object"){module.exports=f("switchery")}else if(typeof define=="function"&&define.amd){define("Switchery",[],function(){return f("switchery")})}else{(this||window)["Switchery"]=f("switchery")}})();!function(e){e(["jquery"],function(N){return function(){function e(e,t,n){return u({type:f.error,iconClass:O().iconClasses.error,message:e,optionsOverride:n,title:t})}function $(e,t){return e||(e=O()),P=N("#"+e.containerId),P.length?P:(t&&(P=c(e)),P)}function t(e,t,n){return u({type:f.info,iconClass:O().iconClasses.info,message:e,optionsOverride:n,title:t})}function n(e){p=e}function i(e,t,n){return u({type:f.success,iconClass:O().iconClasses.success,message:e,optionsOverride:n,title:t})}function r(e,t,n){return u({type:f.warning,iconClass:O().iconClasses.warning,message:e,optionsOverride:n,title:t})}function a(e,t){var n=O();P||$(n),l(e,n,t)||s(n)}function o(e){var t=O();return P||$(t),e&&0===N(":focus",e).length?void A(e):void(P.children().length&&P.remove())}function s(e){for(var t=P.children(),n=t.length-1;n>=0;n--)l(N(t[n]),e)}function l(e,t,n){var i=!(!n||!n.force)&&n.force;return!(!e||!i&&0!==N(":focus",e).length)&&(e[t.hideMethod]({duration:t.hideDuration,easing:t.hideEasing,complete:function(){A(e)}}),!0)}function c(e){return P=N("<div/>").attr("id",e.containerId).addClass(e.positionClass),P.appendTo(N(e.target)),P}function d(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function E(e){p&&p(e)}function u(t){function n(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function e(){o(),l(),c(),d(),u(),p(),s(),i()}function i(){var e="";switch(t.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}w.attr("aria-live",e)}function r(){_.closeOnHover&&w.hover(v,m),!_.onclick&&_.tapToDismiss&&w.click(h),_.closeButton&&S&&S.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),_.onCloseClick&&_.onCloseClick(e),h(!0)}),_.onclick&&w.click(function(e){_.onclick(e),h()})}function a(){w.hide(),w[_.showMethod]({duration:_.showDuration,easing:_.showEasing,complete:_.onShown}),_.timeOut>0&&(b=setTimeout(h,_.timeOut),D.maxHideTime=parseFloat(_.timeOut),D.hideEta=(new Date).getTime()+D.maxHideTime,_.progressBar&&(D.intervalId=setInterval(g,10)))}function o(){t.iconClass&&w.addClass(_.toastClass).addClass(y)}function s(){_.newestOnTop?P.prepend(w):P.append(w)}function l(){if(t.title){var e=t.title;_.escapeHtml&&(e=n(t.title)),C.append(e).addClass(_.titleClass),w.append(C)}}function c(){if(t.message){var e=t.message;_.escapeHtml&&(e=n(t.message)),x.append(e).addClass(_.messageClass),w.append(x)}}function d(){_.closeButton&&(S.addClass(_.closeClass).attr("role","button"),w.prepend(S))}function u(){_.progressBar&&(k.addClass(_.progressClass),w.prepend(k))}function p(){_.rtl&&w.addClass("rtl")}function f(e,t){if(e.preventDuplicates){if(t.message===M)return!0;M=t.message}return!1}function h(e){var t=e&&_.closeMethod!==!1?_.closeMethod:_.hideMethod,n=e&&_.closeDuration!==!1?_.closeDuration:_.hideDuration,i=e&&_.closeEasing!==!1?_.closeEasing:_.hideEasing;if(!N(":focus",w).length||e)return clearTimeout(D.intervalId),w[t]({duration:n,easing:i,complete:function(){A(w),clearTimeout(b),_.onHidden&&"hidden"!==T.state&&_.onHidden(),T.state="hidden",T.endTime=new Date,E(T)}})}function m(){(_.timeOut>0||_.extendedTimeOut>0)&&(b=setTimeout(h,_.extendedTimeOut),D.maxHideTime=parseFloat(_.extendedTimeOut),D.hideEta=(new Date).getTime()+D.maxHideTime)}function v(){clearTimeout(b),D.hideEta=0,w.stop(!0,!0)[_.showMethod]({duration:_.showDuration,easing:_.showEasing})}function g(){var e=(D.hideEta-(new Date).getTime())/D.maxHideTime*100;k.width(e+"%")}var _=O(),y=t.iconClass||_.iconClass;if("undefined"!=typeof t.optionsOverride&&(_=N.extend(_,t.optionsOverride),y=t.optionsOverride.iconClass||y),!f(_,t)){I++,P=$(_,!0);var b=null,w=N("<div/>"),C=N("<div/>"),x=N("<div/>"),k=N("<div/>"),S=N(_.closeHtml),D={intervalId:null,hideEta:null,maxHideTime:null},T={toastId:I,state:"visible",startTime:new Date,options:_,map:t};return e(),a(),r(),E(T),_.debug&&console&&console.log(T),w}}function O(){return N.extend({},d(),h.options)}function A(e){P||(P=$()),e.is(":visible")||(e.remove(),e=null,0===P.children().length&&(P.remove(),M=void 0))}var P,p,M,I=0,f={error:"error",info:"info",success:"success",warning:"warning"},h={clear:a,remove:o,error:e,getContainer:$,info:t,options:{},subscribe:n,success:i,version:"2.1.4",warning:r};return h}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)});+function(o){"use strict";var s=function(e,t){this.$element=o(e);this.options=t;this.$element.attr("novalidate",true);this.toggleSubmit();this.$element.on("input.bs.validator change.bs.validator focusout.bs.validator",o.proxy(this.validateInput,this));this.$element.on("submit.bs.validator",o.proxy(this.onSubmit,this));this.$element.find("[data-match]").each(function(){var t=o(this);var e=t.data("match");o(e).on("input.bs.validator",function(e){t.val()&&t.trigger("input.bs.validator")})})};s.DEFAULTS={delay:500,html:false,disable:true,errors:{match:"Does not match",minlength:"Not long enough"}};s.VALIDATORS={native:function(e){var t=e[0];return t.checkValidity?t.checkValidity():true},match:function(e){var t=e.data("match");return!e.val()||e.val()===o(t).val()},minlength:function(e){var t=e.data("minlength");return!e.val()||e.val().length>=t}};s.prototype.validateInput=function(t){var n=o(t.target);var i=n.data("bs.validator.errors");var e;if(n.is('[type="radio"]'))n=this.$element.find('input[name="'+n.attr("name")+'"]');this.$element.trigger(t=o.Event("validate.bs.validator",{relatedTarget:n[0]}));if(t.isDefaultPrevented())return;var r=this;this.runValidators(n).done(function(e){n.data("bs.validator.errors",e);e.length?r.showErrors(n):r.clearErrors(n);if(!i||e.toString()!==i.toString()){t=e.length?o.Event("invalid.bs.validator",{relatedTarget:n[0],detail:e}):o.Event("valid.bs.validator",{relatedTarget:n[0],detail:i});r.$element.trigger(t)}r.toggleSubmit();r.$element.trigger(o.Event("validated.bs.validator",{relatedTarget:n[0]}))})};s.prototype.runValidators=function(i){var r=[];var e=[s.VALIDATORS.native];var t=o.Deferred();var n=this.options;i.data("bs.validator.deferred")&&i.data("bs.validator.deferred").reject();i.data("bs.validator.deferred",t);function a(e){return i.data(e+"-error")||i.data("error")||e=="native"&&i[0].validationMessage||n.errors[e]}o.each(s.VALIDATORS,o.proxy(function(e,t){if((i.data(e)||e=="native")&&!t.call(this,i)){var n=a(e);!~r.indexOf(n)&&r.push(n)}},this));if(!r.length&&i.val()&&i.data("remote")){this.defer(i,function(){var e={};e[i.attr("name")]=i.val();o.get(i.data("remote"),e).fail(function(e,t,n){r.push(a("remote")||n)}).always(function(){t.resolve(r)})})}else t.resolve(r);return t.promise()};s.prototype.validate=function(){var e=this.options.delay;this.options.delay=0;this.$element.find(':input:not([type="hidden"])').trigger("input.bs.validator");this.options.delay=e;return this};s.prototype.showErrors=function(r){var a=this.options.html?"html":"text";this.defer(r,function(){var e=r.closest(".form-group");var t=e.find(".help-block.with-errors");var n=e.find(".form-control-feedback");var i=r.data("bs.validator.errors");if(!i.length)return;i=o("<ul/>").addClass("list-unstyled").append(o.map(i,function(e){return o("<li/>")[a](e)}));t.data("bs.validator.originalContent")===undefined&&t.data("bs.validator.originalContent",t.html());t.empty().append(i);e.removeClass("has-success");e.addClass("has-error");n.removeClass("glyphicon-ok");n.addClass("glyphicon-warning-sign")})};s.prototype.clearErrors=function(e){var t=e.closest(".form-group");var n=t.find(".help-block.with-errors");var i=t.find(".form-control-feedback");n.html(n.data("bs.validator.originalContent"));t.removeClass("has-error");t.addClass("has-success");i.removeClass("glyphicon-warning-sign");i.addClass("glyphicon-ok")};s.prototype.hasErrors=function(){function e(){return!!(o(this).data("bs.validator.errors")||[]).length}return!!this.$element.find(":input:enabled").filter(e).length};s.prototype.isIncomplete=function(){function e(){return this.type==="checkbox"?!this.checked:this.type==="radio"?!o('[name="'+this.name+'"]:checked').length:o.trim(this.value)===""}return!!this.$element.find(":input[required]:enabled").filter(e).length};s.prototype.onSubmit=function(e){this.validate();if(this.isIncomplete()||this.hasErrors())e.preventDefault()};s.prototype.toggleSubmit=function(){if(!this.options.disable)return;var e=this.$element.find('input[type="submit"], button[type="submit"]');e.toggleClass("disabled",this.isIncomplete()||this.hasErrors()).css({"pointer-events":"all",cursor:"pointer"})};s.prototype.defer=function(e,t){if(!this.options.delay)return t();window.clearTimeout(e.data("bs.validator.timeout"));e.data("bs.validator.timeout",window.setTimeout(t,this.options.delay))};s.prototype.destroy=function(){this.$element.removeAttr("novalidate").removeData("bs.validator").off(".bs.validator");this.$element.find(":input").off(".bs.validator").removeData(["bs.validator.errors","bs.validator.deferred"]).each(function(){var e=o(this);var t=e.data("bs.validator.timeout");window.clearTimeout(t)&&e.removeData("bs.validator.timeout")});this.$element.find(".help-block.with-errors").each(function(){var e=o(this);var t=e.data("bs.validator.originalContent");e.removeData("bs.validator.originalContent").html(t)});this.$element.find('input[type="submit"], button[type="submit"]').removeClass("disabled");this.$element.find(".has-error").removeClass("has-error");return this};function t(i){return this.each(function(){var e=o(this);var t=o.extend({},s.DEFAULTS,e.data(),typeof i=="object"&&i);var n=e.data("bs.validator");if(!n&&i=="destroy")return;if(!n)e.data("bs.validator",n=new s(this,t));if(typeof i=="string")n[i]()})}var e=o.fn.validator;o.fn.validator=t;o.fn.validator.Constructor=s;o.fn.validator.noConflict=function(){o.fn.validator=e;return this};o(window).on("load",function(){o('form[data-toggle="validator"]').each(function(){var e=o(this);t.call(e,e.data())})})}(jQuery);(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?module.exports=t():typeof define==="function"&&define.amd?define(t):(e=e||self,e.Vue=t())})(this,function(){"use strict";var m=Object.freeze({});function N(e){return e===undefined||e===null}function R(e){return e!==undefined&&e!==null}function F(e){return e===true}function t(e){return e===false}function L(e){return typeof e==="string"||typeof e==="number"||typeof e==="symbol"||typeof e==="boolean"}function j(e){return e!==null&&typeof e==="object"}var n=Object.prototype.toString;function l(e){return n.call(e).slice(8,-1)}function c(e){return n.call(e)==="[object Object]"}function H(e){return n.call(e)==="[object RegExp]"}function r(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return R(e)&&typeof e.then==="function"&&typeof e.catch==="function"}function i(e){return e==null?"":Array.isArray(e)||c(e)&&e.toString===n?JSON.stringify(e,null,2):String(e)}function q(e){var t=parseFloat(e);return isNaN(t)?e:t}function B(e,t){var n=Object.create(null);var i=e.split(",");for(var r=0;r<i.length;r++){n[i[r]]=true}return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var a=B("slot,component",true);var p=B("key,ref,slot,slot-scope,is");function f(e,t){if(e.length){var n=e.indexOf(t);if(n>-1){return e.splice(n,1)}}}var o=Object.prototype.hasOwnProperty;function d(e,t){return o.call(e,t)}function e(i){var r=Object.create(null);return function e(t){var n=r[t];return n||(r[t]=i(t))}}var s=/-(\w)/g;var h=e(function(e){return e.replace(s,function(e,t){return t?t.toUpperCase():""})});var v=e(function(e){return e.charAt(0).toUpperCase()+e.slice(1)});var g=/\B([A-Z])/g;var _=e(function(e){return e.replace(g,"-$1").toLowerCase()});function y(n,i){function e(e){var t=arguments.length;return t?t>1?n.apply(i,arguments):n.call(i,e):n.call(i)}e._length=n.length;return e}function b(e,t){return e.bind(t)}var w=Function.prototype.bind?b:y;function C(e,t){t=t||0;var n=e.length-t;var i=new Array(n);while(n--){i[n]=e[n+t]}return i}function x(e,t){for(var n in t){e[n]=t[n]}return e}function k(e){var t={};for(var n=0;n<e.length;n++){if(e[n]){x(t,e[n])}}return t}function S(e,t,n){}var T=function(e,t,n){return false};var D=function(e){return e};function $(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}function E(t,n){if(t===n){return true}var e=j(t);var i=j(n);if(e&&i){try{var r=Array.isArray(t);var a=Array.isArray(n);if(r&&a){return t.length===n.length&&t.every(function(e,t){return E(e,n[t])})}else if(t instanceof Date&&n instanceof Date){return t.getTime()===n.getTime()}else if(!r&&!a){var o=Object.keys(t);var s=Object.keys(n);return o.length===s.length&&o.every(function(e){return E(t[e],n[e])})}else{return false}}catch(e){return false}}else if(!e&&!i){return String(t)===String(n)}else{return false}}function O(e,t){for(var n=0;n<e.length;n++){if(E(e[n],t)){return n}}return-1}function z(e){var t=false;return function(){if(!t){t=true;e.apply(this,arguments)}}}var Y="data-server-rendered";var A=["component","directive","filter"];var P=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"];var U={optionMergeStrategies:Object.create(null),silent:false,productionTip:"development"!=="production",devtools:"development"!=="production",performance:false,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:T,isReservedAttr:T,isUnknownElement:T,getTagNamespace:S,parsePlatformTagName:D,mustUseProp:T,async:true,_lifecycleHooks:P};var M=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function I(e){var t=(e+"").charCodeAt(0);return t===36||t===95}function W(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:true,configurable:true})}var V=new RegExp("[^"+M.source+".$_\\d]");function J(e){if(V.test(e)){return}var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e){return}e=e[n[t]]}return e}}var G="__proto__"in{};var K=typeof window!=="undefined";var X=typeof WXEnvironment!=="undefined"&&!!WXEnvironment.platform;var Q=X&&WXEnvironment.platform.toLowerCase();var Z=K&&window.navigator.userAgent.toLowerCase();var ee=Z&&/msie|trident/.test(Z);var te=Z&&Z.indexOf("msie 9.0")>0;var ne=Z&&Z.indexOf("edge/")>0;var ie=Z&&Z.indexOf("android")>0||Q==="android";var re=Z&&/iphone|ipad|ipod|ios/.test(Z)||Q==="ios";var ae=Z&&/chrome\/\d+/.test(Z)&&!ne;var oe=Z&&/phantomjs/.test(Z);var se=Z&&Z.match(/firefox\/(\d+)/);var le={}.watch;var ce=false;if(K){try{var de={};Object.defineProperty(de,"passive",{get:function e(){ce=true}});window.addEventListener("test-passive",null,de)}catch(e){}}var ue;var pe=function(){if(ue===undefined){if(!K&&!X&&typeof global!=="undefined"){ue=global["process"]&&global["process"].env.VUE_ENV==="server"}else{ue=false}}return ue};var fe=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return typeof e==="function"&&/native code/.test(e.toString())}var me=typeof Symbol!=="undefined"&&he(Symbol)&&typeof Reflect!=="undefined"&&he(Reflect.ownKeys);var ve;if(typeof Set!=="undefined"&&he(Set)){ve=Set}else{ve=function(){function e(){this.set=Object.create(null)}e.prototype.has=function e(t){return this.set[t]===true};e.prototype.add=function e(t){this.set[t]=true};e.prototype.clear=function e(){this.set=Object.create(null)};return e}()}var ge=S;var _e=S;var ye=S;var be=S;{var we=typeof console!=="undefined";var Ce=/(?:^|[-_])(\w)/g;var xe=function(e){return e.replace(Ce,function(e){return e.toUpperCase()}).replace(/[-_]/g,"")};ge=function(e,t){var n=t?ye(t):"";if(U.warnHandler){U.warnHandler.call(null,e,t,n)}else if(we&&!U.silent){console.error("[Vue warn]: "+e+n)}};_e=function(e,t){if(we&&!U.silent){console.warn("[Vue tip]: "+e+(t?ye(t):""))}};be=function(e,t){if(e.$root===e){return"<Root>"}var n=typeof e==="function"&&e.cid!=null?e.options:e._isVue?e.$options||e.constructor.options:e;var i=n.name||n._componentTag;var r=n.__file;if(!i&&r){var a=r.match(/([^/\\]+)\.vue$/);i=a&&a[1]}return(i?"<"+xe(i)+">":"<Anonymous>")+(r&&t!==false?" at "+r:"")};var ke=function(e,t){var n="";while(t){if(t%2===1){n+=e}if(t>1){e+=e}t>>=1}return n};ye=function(e){if(e._isVue&&e.$parent){var t=[];var n=0;while(e){if(t.length>0){var i=t[t.length-1];if(i.constructor===e.constructor){n++;e=e.$parent;continue}else if(n>0){t[t.length-1]=[i,n];n=0}}t.push(e);e=e.$parent}return"\n\nfound in\n\n"+t.map(function(e,t){return""+(t===0?"---\x3e ":ke(" ",5+t*2))+(Array.isArray(e)?be(e[0])+"... ("+e[1]+" recursive calls)":be(e))}).join("\n")}else{return"\n\n(found in "+be(e)+")"}}}var Se=0;var De=function e(){this.id=Se++;this.subs=[]};De.prototype.addSub=function e(t){this.subs.push(t)};De.prototype.removeSub=function e(t){f(this.subs,t)};De.prototype.depend=function e(){if(De.target){De.target.addDep(this)}};De.prototype.notify=function e(){var t=this.subs.slice();if(!U.async){t.sort(function(e,t){return e.id-t.id})}for(var n=0,i=t.length;n<i;n++){t[n].update()}};De.target=null;var Te=[];function $e(e){Te.push(e);De.target=e}function Ee(){Te.pop();De.target=Te[Te.length-1]}var Oe=function e(t,n,i,r,a,o,s,l){this.tag=t;this.data=n;this.children=i;this.text=r;this.elm=a;this.ns=undefined;this.context=o;this.fnContext=undefined;this.fnOptions=undefined;this.fnScopeId=undefined;this.key=n&&n.key;this.componentOptions=s;this.componentInstance=undefined;this.parent=undefined;this.raw=false;this.isStatic=false;this.isRootInsert=true;this.isComment=false;this.isCloned=false;this.isOnce=false;this.asyncFactory=l;this.asyncMeta=undefined;this.isAsyncPlaceholder=false};var Ae={child:{configurable:true}};Ae.child.get=function(){return this.componentInstance};Object.defineProperties(Oe.prototype,Ae);var Pe=function(e){if(e===void 0)e="";var t=new Oe;t.text=e;t.isComment=true;return t};function Me(e){return new Oe(undefined,undefined,undefined,String(e))}function Ie(e){var t=new Oe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);t.ns=e.ns;t.isStatic=e.isStatic;t.key=e.key;t.isComment=e.isComment;t.fnContext=e.fnContext;t.fnOptions=e.fnOptions;t.fnScopeId=e.fnScopeId;t.asyncMeta=e.asyncMeta;t.isCloned=true;return t}var Ne=Array.prototype;var Re=Object.create(Ne);var Fe=["push","pop","shift","unshift","splice","sort","reverse"];Fe.forEach(function(o){var s=Ne[o];W(Re,o,function e(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=s.apply(this,t);var r=this.__ob__;var a;switch(o){case"push":case"unshift":a=t;break;case"splice":a=t.slice(2);break}if(a){r.observeArray(a)}r.dep.notify();return i})});var Le=Object.getOwnPropertyNames(Re);var je=true;function He(e){je=e}var qe=function e(t){this.value=t;this.dep=new De;this.vmCount=0;W(t,"__ob__",this);if(Array.isArray(t)){if(G){Be(t,Re)}else{ze(t,Re,Le)}this.observeArray(t)}else{this.walk(t)}};qe.prototype.walk=function e(t){var n=Object.keys(t);for(var i=0;i<n.length;i++){Ue(t,n[i])}};qe.prototype.observeArray=function e(t){for(var n=0,i=t.length;n<i;n++){Ye(t[n])}};function Be(e,t){e.__proto__=t}function ze(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i];W(e,a,t[a])}}function Ye(e,t){if(!j(e)||e instanceof Oe){return}var n;if(d(e,"__ob__")&&e.__ob__ instanceof qe){n=e.__ob__}else if(je&&!pe()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue){n=new qe(e)}if(t&&n){n.vmCount++}return n}function Ue(i,e,r,a,o){var s=new De;var t=Object.getOwnPropertyDescriptor(i,e);if(t&&t.configurable===false){return}var l=t&&t.get;var c=t&&t.set;if((!l||c)&&arguments.length===2){r=i[e]}var d=!o&&Ye(r);Object.defineProperty(i,e,{enumerable:true,configurable:true,get:function e(){var t=l?l.call(i):r;if(De.target){s.depend();if(d){d.dep.depend();if(Array.isArray(t)){Je(t)}}}return t},set:function e(t){var n=l?l.call(i):r;if(t===n||t!==t&&n!==n){return}if(a){a()}if(l&&!c){return}if(c){c.call(i,t)}else{r=t}d=!o&&Ye(t);s.notify()}})}function We(e,t,n){if(N(e)||L(e)){ge("Cannot set reactive property on undefined, null, or primitive value: "+e)}if(Array.isArray(e)&&r(t)){e.length=Math.max(e.length,t);e.splice(t,1,n);return n}if(t in e&&!(t in Object.prototype)){e[t]=n;return n}var i=e.__ob__;if(e._isVue||i&&i.vmCount){ge("Avoid adding reactive properties to a Vue instance or its root $data "+"at runtime - declare it upfront in the data option.");return n}if(!i){e[t]=n;return n}Ue(i.value,t,n);i.dep.notify();return n}function Ve(e,t){if(N(e)||L(e)){ge("Cannot delete reactive property on undefined, null, or primitive value: "+e)}if(Array.isArray(e)&&r(t)){e.splice(t,1);return}var n=e.__ob__;if(e._isVue||n&&n.vmCount){ge("Avoid deleting properties on a Vue instance or its root $data "+"- just set it to null.");return}if(!d(e,t)){return}delete e[t];if(!n){return}n.dep.notify()}function Je(e){for(var t=void 0,n=0,i=e.length;n<i;n++){t=e[n];t&&t.__ob__&&t.__ob__.dep.depend();if(Array.isArray(t)){Je(t)}}}var Ge=U.optionMergeStrategies;{Ge.el=Ge.propsData=function(e,t,n,i){if(!n){ge('option "'+i+'" can only be used during instance '+"creation with the `new` keyword.")}return tt(e,t)}}function Ke(e,t){if(!t){return e}var n,i,r;var a=me?Reflect.ownKeys(t):Object.keys(t);for(var o=0;o<a.length;o++){n=a[o];if(n==="__ob__"){continue}i=e[n];r=t[n];if(!d(e,n)){We(e,n,r)}else if(i!==r&&c(i)&&c(r)){Ke(i,r)}}return e}function Xe(i,r,a){if(!a){if(!r){return i}if(!i){return r}return function e(){return Ke(typeof r==="function"?r.call(this,this):r,typeof i==="function"?i.call(this,this):i)}}else{return function e(){var t=typeof r==="function"?r.call(a,a):r;var n=typeof i==="function"?i.call(a,a):i;if(t){return Ke(t,n)}else{return n}}}}Ge.data=function(e,t,n){if(!n){if(t&&typeof t!=="function"){ge('The "data" option should be a function '+"that returns a per-instance value in component "+"definitions.",n);return e}return Xe(e,t)}return Xe(e,t,n)};function Qe(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ze(n):n}function Ze(e){var t=[];for(var n=0;n<e.length;n++){if(t.indexOf(e[n])===-1){t.push(e[n])}}return t}P.forEach(function(e){Ge[e]=Qe});function et(e,t,n,i){var r=Object.create(e||null);if(t){st(i,t,n);return x(r,t)}else{return r}}A.forEach(function(e){Ge[e+"s"]=et});Ge.watch=function(e,t,n,i){if(e===le){e=undefined}if(t===le){t=undefined}if(!t){return Object.create(e||null)}{st(i,t,n)}if(!e){return t}var r={};x(r,e);for(var a in t){var o=r[a];var s=t[a];if(o&&!Array.isArray(o)){o=[o]}r[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return r};Ge.props=Ge.methods=Ge.inject=Ge.computed=function(e,t,n,i){if(t&&"development"!=="production"){st(i,t,n)}if(!e){return t}var r=Object.create(null);x(r,e);if(t){x(r,t)}return r};Ge.provide=Xe;var tt=function(e,t){return t===undefined?e:t};function nt(e){for(var t in e.components){it(t)}}function it(e){if(!new RegExp("^[a-zA-Z][\\-\\.0-9_"+M.source+"]*$").test(e)){ge('Invalid component name: "'+e+'". Component names '+"should conform to valid custom element name in html5 specification.")}if(a(e)||U.isReservedTag(e)){ge("Do not use built-in or reserved HTML elements as component "+"id: "+e)}}function rt(e,t){var n=e.props;if(!n){return}var i={};var r,a,o;if(Array.isArray(n)){r=n.length;while(r--){a=n[r];if(typeof a==="string"){o=h(a);i[o]={type:null}}else{ge("props must be strings when using array syntax.")}}}else if(c(n)){for(var s in n){a=n[s];o=h(s);i[o]=c(a)?a:{type:a}}}else{ge('Invalid value for option "props": expected an Array or an Object, '+"but got "+l(n)+".",t)}e.props=i}function at(e,t){var n=e.inject;if(!n){return}var i=e.inject={};if(Array.isArray(n)){for(var r=0;r<n.length;r++){i[n[r]]={from:n[r]}}}else if(c(n)){for(var a in n){var o=n[a];i[a]=c(o)?x({from:a},o):{from:o}}}else{ge('Invalid value for option "inject": expected an Array or an Object, '+"but got "+l(n)+".",t)}}function ot(e){var t=e.directives;if(t){for(var n in t){var i=t[n];if(typeof i==="function"){t[n]={bind:i,update:i}}}}}function st(e,t,n){if(!c(t)){ge('Invalid value for option "'+e+'": expected an Object, '+"but got "+l(t)+".",n)}}function lt(n,i,r){{nt(i)}if(typeof i==="function"){i=i.options}rt(i,r);at(i,r);ot(i);if(!i._base){if(i.extends){n=lt(n,i.extends,r)}if(i.mixins){for(var e=0,t=i.mixins.length;e<t;e++){n=lt(n,i.mixins[e],r)}}}var a={};var o;for(o in n){s(o)}for(o in i){if(!d(n,o)){s(o)}}function s(e){var t=Ge[e]||tt;a[e]=t(n[e],i[e],r,e)}return a}function ct(e,t,n,i){if(typeof n!=="string"){return}var r=e[t];if(d(r,n)){return r[n]}var a=h(n);if(d(r,a)){return r[a]}var o=v(a);if(d(r,o)){return r[o]}var s=r[n]||r[a]||r[o];if(i&&!s){ge("Failed to resolve "+t.slice(0,-1)+": "+n,e)}return s}function dt(e,t,n,i){var r=t[e];var a=!d(n,e);var o=n[e];var s=_t(Boolean,r.type);if(s>-1){if(a&&!d(r,"default")){o=false}else if(o===""||o===_(e)){var l=_t(String,r.type);if(l<0||s<l){o=true}}}if(o===undefined){o=ut(i,r,e);var c=je;He(true);Ye(o);He(c)}{pt(r,e,o,i,a)}return o}function ut(e,t,n){if(!d(t,"default")){return undefined}var i=t.default;if(j(i)){ge('Invalid default value for prop "'+n+'": '+"Props with type Object/Array must use a factory function "+"to return the default value.",e)}if(e&&e.$options.propsData&&e.$options.propsData[n]===undefined&&e._props[n]!==undefined){return e._props[n]}return typeof i==="function"&&vt(t.type)!=="Function"?i.call(e):i}function pt(e,t,n,i,r){if(e.required&&r){ge('Missing required prop: "'+t+'"',i);return}if(n==null&&!e.required){return}var a=e.type;var o=!a||a===true;var s=[];if(a){if(!Array.isArray(a)){a=[a]}for(var l=0;l<a.length&&!o;l++){var c=ht(n,a[l],i);s.push(c.expectedType||"");o=c.valid}}var d=s.some(function(e){return e});if(!o&&d){ge(yt(t,n,s),i);return}var u=e.validator;if(u){if(!u(n)){ge('Invalid prop: custom validator check failed for prop "'+t+'".',i)}}}var ft=/^(String|Number|Boolean|Function|Symbol|BigInt)$/;function ht(e,t,n){var i;var r=vt(t);if(ft.test(r)){var a=typeof e;i=a===r.toLowerCase();if(!i&&a==="object"){i=e instanceof t}}else if(r==="Object"){i=c(e)}else if(r==="Array"){i=Array.isArray(e)}else{try{i=e instanceof t}catch(e){ge('Invalid prop type: "'+String(t)+'" is not a constructor',n);i=false}}return{valid:i,expectedType:r}}var mt=/^\s*function (\w+)/;function vt(e){var t=e&&e.toString().match(mt);return t?t[1]:""}function gt(e,t){return vt(e)===vt(t)}function _t(e,t){if(!Array.isArray(t)){return gt(t,e)?0:-1}for(var n=0,i=t.length;n<i;n++){if(gt(t[n],e)){return n}}return-1}function yt(e,t,n){var i='Invalid prop: type check failed for prop "'+e+'".'+" Expected "+n.map(v).join(", ");var r=n[0];var a=l(t);if(n.length===1&&Ct(r)&&Ct(typeof t)&&!xt(r,a)){i+=" with value "+bt(t,r)}i+=", got "+a+" ";if(Ct(a)){i+="with value "+bt(t,a)+"."}return i}function bt(e,t){if(t==="String"){return'"'+e+'"'}else if(t==="Number"){return""+Number(e)}else{return""+e}}var wt=["string","number","boolean"];function Ct(t){return wt.some(function(e){return t.toLowerCase()===e})}function xt(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];return e.some(function(e){return e.toLowerCase()==="boolean"})}function kt(e,t,n){$e();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r){for(var a=0;a<r.length;a++){try{var o=r[a].call(i,e,t,n)===false;if(o){return}}catch(e){Dt(e,i,"errorCaptured hook")}}}}}Dt(e,t,n)}finally{Ee()}}function St(e,t,n,i,r){var a;try{a=n?e.apply(t,n):e.call(t);if(a&&!a._isVue&&u(a)&&!a._handled){a.catch(function(e){return kt(e,i,r+" (Promise/async)")});a._handled=true}}catch(e){kt(e,i,r)}return a}function Dt(t,e,n){if(U.errorHandler){try{return U.errorHandler.call(null,t,e,n)}catch(e){if(e!==t){Tt(e,null,"config.errorHandler")}}}Tt(t,e,n)}function Tt(e,t,n){{ge("Error in "+n+': "'+e.toString()+'"',t)}if((K||X)&&typeof console!=="undefined"){console.error(e)}else{throw e}}var $t=false;var Et=[];var Ot=false;function At(){Ot=false;var e=Et.slice(0);Et.length=0;for(var t=0;t<e.length;t++){e[t]()}}var Pt;if(typeof Promise!=="undefined"&&he(Promise)){var Mt=Promise.resolve();Pt=function(){Mt.then(At);if(re){setTimeout(S)}};$t=true}else if(!ee&&typeof MutationObserver!=="undefined"&&(he(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var It=1;var Nt=new MutationObserver(At);var Rt=document.createTextNode(String(It));Nt.observe(Rt,{characterData:true});Pt=function(){It=(It+1)%2;Rt.data=String(It)};$t=true}else if(typeof setImmediate!=="undefined"&&he(setImmediate)){Pt=function(){setImmediate(At)}}else{Pt=function(){setTimeout(At,0)}}function Ft(e,t){var n;Et.push(function(){if(e){try{e.call(t)}catch(e){kt(e,t,"nextTick")}}else if(n){n(t)}});if(!Ot){Ot=true;Pt()}if(!e&&typeof Promise!=="undefined"){return new Promise(function(e){n=e})}}var Lt;var jt;{var Ht=K&&window.performance;if(Ht&&Ht.mark&&Ht.measure&&Ht.clearMarks&&Ht.clearMeasures){Lt=function(e){return Ht.mark(e)};jt=function(e,t,n){Ht.measure(e,t,n);Ht.clearMarks(t);Ht.clearMarks(n)}}}var qt;{var Bt=B("Infinity,undefined,NaN,isFinite,isNaN,"+"parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,"+"Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,"+"require");var zt=function(e,t){ge('Property or method "'+t+'" is not defined on the instance but '+"referenced during render. Make sure that this property is reactive, "+"either in the data option, or for class-based components, by "+"initializing the property. "+"See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.",e)};var Yt=function(e,t){ge('Property "'+t+'" must be accessed with "$data.'+t+'" because '+'properties starting with "$" or "_" are not proxied in the Vue instance to '+"prevent conflicts with Vue internals. "+"See: https://vuejs.org/v2/api/#data",e)};var Ut=typeof Proxy!=="undefined"&&he(Proxy);if(Ut){var Wt=B("stop,prevent,self,ctrl,shift,alt,meta,exact");U.keyCodes=new Proxy(U.keyCodes,{set:function e(t,n,i){if(Wt(n)){ge("Avoid overwriting built-in modifier in config.keyCodes: ."+n);return false}else{t[n]=i;return true}}})}var Vt={has:function e(t,n){var e=n in t;var i=Bt(n)||typeof n==="string"&&n.charAt(0)==="_"&&!(n in t.$data);if(!e&&!i){if(n in t.$data){Yt(t,n)}else{zt(t,n)}}return e||!i}};var Jt={get:function e(t,n){if(typeof n==="string"&&!(n in t)){if(n in t.$data){Yt(t,n)}else{zt(t,n)}}return t[n]}};qt=function e(t){if(Ut){var n=t.$options;var i=n.render&&n.render._withStripped?Jt:Vt;t._renderProxy=new Proxy(t,i)}else{t._renderProxy=t}}}var Gt=new ve;function Kt(e){Xt(e,Gt);Gt.clear()}function Xt(e,t){var n,i;var r=Array.isArray(e);if(!r&&!j(e)||Object.isFrozen(e)||e instanceof Oe){return}if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a)){return}t.add(a)}if(r){n=e.length;while(n--){Xt(e[n],t)}}else{i=Object.keys(e);n=i.length;while(n--){Xt(e[i[n]],t)}}}var Qt=e(function(e){var t=e.charAt(0)==="&";e=t?e.slice(1):e;var n=e.charAt(0)==="~";e=n?e.slice(1):e;var i=e.charAt(0)==="!";e=i?e.slice(1):e;return{name:e,once:n,capture:i,passive:t}});function Zt(e,r){function a(){var e=arguments;var t=a.fns;if(Array.isArray(t)){var n=t.slice();for(var i=0;i<n.length;i++){St(n[i],null,e,r,"v-on handler")}}else{return St(t,null,arguments,r,"v-on handler")}}a.fns=e;return a}function en(e,t,n,i,r,a){var o,s,l,c,d;for(o in e){s=l=e[o];c=t[o];d=Qt(o);if(N(l)){ge('Invalid handler for event "'+d.name+'": got '+String(l),a)}else if(N(c)){if(N(l.fns)){l=e[o]=Zt(l,a)}if(F(d.once)){l=e[o]=r(d.name,l,d.capture)}n(d.name,l,d.capture,d.passive,d.params)}else if(l!==c){c.fns=l;e[o]=c}}for(o in t){if(N(e[o])){d=Qt(o);i(d.name,t[o],d.capture)}}}function tn(e,t,n){if(e instanceof Oe){e=e.data.hook||(e.data.hook={})}var i;var r=e[t];function a(){n.apply(this,arguments);f(i.fns,a)}if(N(r)){i=Zt([a])}else{if(R(r.fns)&&F(r.merged)){i=r;i.fns.push(a)}else{i=Zt([r,a])}}i.merged=true;e[t]=i}function nn(e,t,n){var i=t.options.props;if(N(i)){return}var r={};var a=e.attrs;var o=e.props;if(R(a)||R(o)){for(var s in i){var l=_(s);{var c=s.toLowerCase();if(s!==c&&a&&d(a,c)){_e('Prop "'+c+'" is passed to component '+be(n||t)+", but the declared prop name is"+' "'+s+'". '+"Note that HTML attributes are case-insensitive and camelCased "+"props need to use their kebab-case equivalents when using in-DOM "+'templates. You should probably use "'+l+'" instead of "'+s+'".')}}rn(r,o,s,l,true)||rn(r,a,s,l,false)}}return r}function rn(e,t,n,i,r){if(R(t)){if(d(t,n)){e[n]=t[n];if(!r){delete t[n]}return true}else if(d(t,i)){e[n]=t[i];if(!r){delete t[i]}return true}}return false}function an(e){for(var t=0;t<e.length;t++){if(Array.isArray(e[t])){return Array.prototype.concat.apply([],e)}}return e}function on(e){return L(e)?[Me(e)]:Array.isArray(e)?ln(e):undefined}function sn(e){return R(e)&&R(e.text)&&t(e.isComment)}function ln(e,t){var n=[];var i,r,a,o;for(i=0;i<e.length;i++){r=e[i];if(N(r)||typeof r==="boolean"){continue}a=n.length-1;o=n[a];if(Array.isArray(r)){if(r.length>0){r=ln(r,(t||"")+"_"+i);if(sn(r[0])&&sn(o)){n[a]=Me(o.text+r[0].text);r.shift()}n.push.apply(n,r)}}else if(L(r)){if(sn(o)){n[a]=Me(o.text+r)}else if(r!==""){n.push(Me(r))}}else{if(sn(r)&&sn(o)){n[a]=Me(o.text+r.text)}else{if(F(e._isVList)&&R(r.tag)&&N(r.key)&&R(t)){r.key="__vlist"+t+"_"+i+"__"}n.push(r)}}}return n}function cn(e){var t=e.$options.provide;if(t){e._provided=typeof t==="function"?t.call(e):t}}function dn(t){var n=un(t.$options.inject,t);if(n){He(false);Object.keys(n).forEach(function(e){{Ue(t,e,n[e],function(){ge("Avoid mutating an injected value directly since the changes will be "+"overwritten whenever the provided component re-renders. "+'injection being mutated: "'+e+'"',t)})}});He(true)}}function un(e,t){if(e){var n=Object.create(null);var i=me?Reflect.ownKeys(e):Object.keys(e);for(var r=0;r<i.length;r++){var a=i[r];if(a==="__ob__"){continue}var o=e[a].from;var s=t;while(s){if(s._provided&&d(s._provided,o)){n[a]=s._provided[o];break}s=s.$parent}if(!s){if("default"in e[a]){var l=e[a].default;n[a]=typeof l==="function"?l.call(t):l}else{ge('Injection "'+a+'" not found',t)}}}return n}}function pn(e,t){if(!e||!e.length){return{}}var n={};for(var i=0,r=e.length;i<r;i++){var a=e[i];var o=a.data;if(o&&o.attrs&&o.attrs.slot){delete o.attrs.slot}if((a.context===t||a.fnContext===t)&&o&&o.slot!=null){var s=o.slot;var l=n[s]||(n[s]=[]);if(a.tag==="template"){l.push.apply(l,a.children||[])}else{l.push(a)}}else{(n.default||(n.default=[])).push(a)}}for(var c in n){if(n[c].every(fn)){delete n[c]}}return n}function fn(e){return e.isComment&&!e.asyncFactory||e.text===" "}function hn(e){return e.isComment&&e.asyncFactory}function mn(e,t,n){var i;var r=Object.keys(t).length>0;var a=e?!!e.$stable:!r;var o=e&&e.$key;if(!e){i={}}else if(e._normalized){return e._normalized}else if(a&&n&&n!==m&&o===n.$key&&!r&&!n.$hasNormal){return n}else{i={};for(var s in e){if(e[s]&&s[0]!=="$"){i[s]=vn(t,s,e[s])}}}for(var l in t){if(!(l in i)){i[l]=gn(t,l)}}if(e&&Object.isExtensible(e)){e._normalized=i}W(i,"$stable",a);W(i,"$key",o);W(i,"$hasNormal",r);return i}function vn(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});e=e&&typeof e==="object"&&!Array.isArray(e)?[e]:on(e);var t=e&&e[0];return e&&(!t||e.length===1&&t.isComment&&!hn(t))?undefined:e};if(n.proxy){Object.defineProperty(e,t,{get:i,enumerable:true,configurable:true})}return i}function gn(e,t){return function(){return e[t]}}function _n(e,t){var n,i,r,a,o;if(Array.isArray(e)||typeof e==="string"){n=new Array(e.length);for(i=0,r=e.length;i<r;i++){n[i]=t(e[i],i)}}else if(typeof e==="number"){n=new Array(e);for(i=0;i<e;i++){n[i]=t(i+1,i)}}else if(j(e)){if(me&&e[Symbol.iterator]){n=[];var s=e[Symbol.iterator]();var l=s.next();while(!l.done){n.push(t(l.value,n.length));l=s.next()}}else{a=Object.keys(e);n=new Array(a.length);for(i=0,r=a.length;i<r;i++){o=a[i];n[i]=t(e[o],o,i)}}}if(!R(n)){n=[]}n._isVList=true;return n}function yn(e,t,n,i){var r=this.$scopedSlots[e];var a;if(r){n=n||{};if(i){if(!j(i)){ge("slot v-bind without argument expects an Object",this)}n=x(x({},i),n)}a=r(n)||(typeof t==="function"?t():t)}else{a=this.$slots[e]||(typeof t==="function"?t():t)}var o=n&&n.slot;if(o){return this.$createElement("template",{slot:o},a)}else{return a}}function bn(e){return ct(this.$options,"filters",e,true)||D}function wn(e,t){if(Array.isArray(e)){return e.indexOf(t)===-1}else{return e!==t}}function Cn(e,t,n,i,r){var a=U.keyCodes[t]||n;if(r&&i&&!U.keyCodes[t]){return wn(r,i)}else if(a){return wn(a,e)}else if(i){return _(i)!==t}return e===undefined}function xn(a,o,s,l,c){if(s){if(!j(s)){ge("v-bind without argument expects an Object or Array value",this)}else{if(Array.isArray(s)){s=k(s)}var d;var e=function(t){if(t==="class"||t==="style"||p(t)){d=a}else{var e=a.attrs&&a.attrs.type;d=l||U.mustUseProp(o,e,t)?a.domProps||(a.domProps={}):a.attrs||(a.attrs={})}var n=h(t);var i=_(t);if(!(n in d)&&!(i in d)){d[t]=s[t];if(c){var r=a.on||(a.on={});r["update:"+t]=function(e){s[t]=e}}}};for(var t in s)e(t)}}return a}function kn(e,t){var n=this._staticTrees||(this._staticTrees=[]);var i=n[e];if(i&&!t){return i}i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this);Dn(i,"__static__"+e,false);return i}function Sn(e,t,n){Dn(e,"__once__"+t+(n?"_"+n:""),true);return e}function Dn(e,t,n){if(Array.isArray(e)){for(var i=0;i<e.length;i++){if(e[i]&&typeof e[i]!=="string"){Tn(e[i],t+"_"+i,n)}}}else{Tn(e,t,n)}}function Tn(e,t,n){e.isStatic=true;e.key=t;e.isOnce=n}function $n(e,t){if(t){if(!c(t)){ge("v-on without argument expects an Object value",this)}else{var n=e.on=e.on?x({},e.on):{};for(var i in t){var r=n[i];var a=t[i];n[i]=r?[].concat(r,a):a}}}return e}function En(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var a=e[r];if(Array.isArray(a)){En(a,t,n)}else if(a){if(a.proxy){a.fn.proxy=true}t[a.key]=a.fn}}if(i){t.$key=i}return t}function On(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];if(typeof i==="string"&&i){e[t[n]]=t[n+1]}else if(i!==""&&i!==null){ge("Invalid value for dynamic directive argument (expected string or null): "+i,this)}}return e}function An(e,t){return typeof e==="string"?t+e:e}function Pn(e){e._o=Sn;e._n=q;e._s=i;e._l=_n;e._t=yn;e._q=E;e._i=O;e._m=kn;e._f=bn;e._k=Cn;e._b=xn;e._v=Me;e._e=Pe;e._u=En;e._g=$n;e._d=On;e._p=An}function Mn(t,e,n,a,i){var r=this;var o=i.options;var s;if(d(a,"_uid")){s=Object.create(a);s._original=a}else{s=a;a=a._original}var l=F(o._compiled);var c=!l;this.data=t;this.props=e;this.children=n;this.parent=a;this.listeners=t.on||m;this.injections=un(o.inject,a);this.slots=function(){if(!r.$slots){mn(t.scopedSlots,r.$slots=pn(n,a))}return r.$slots};Object.defineProperty(this,"scopedSlots",{enumerable:true,get:function e(){return mn(t.scopedSlots,this.slots())}});if(l){this.$options=o;this.$slots=this.slots();this.$scopedSlots=mn(t.scopedSlots,this.$slots)}if(o._scopeId){this._c=function(e,t,n,i){var r=Wn(s,e,t,n,i,c);if(r&&!Array.isArray(r)){r.fnScopeId=o._scopeId;r.fnContext=a}return r}}else{this._c=function(e,t,n,i){return Wn(s,e,t,n,i,c)}}}Pn(Mn.prototype);function In(e,t,n,i,r){var a=e.options;var o={};var s=a.props;if(R(s)){for(var l in s){o[l]=dt(l,s,t||m)}}else{if(R(n.attrs)){Rn(o,n.attrs)}if(R(n.props)){Rn(o,n.props)}}var c=new Mn(n,o,r,i,e);var d=a.render.call(null,c._c,c);if(d instanceof Oe){return Nn(d,n,c.parent,a,c)}else if(Array.isArray(d)){var u=on(d)||[];var p=new Array(u.length);for(var f=0;f<u.length;f++){p[f]=Nn(u[f],n,c.parent,a,c)}return p}}function Nn(e,t,n,i,r){var a=Ie(e);a.fnContext=n;a.fnOptions=i;{(a.devtoolsMeta=a.devtoolsMeta||{}).renderContext=r}if(t.slot){(a.data||(a.data={})).slot=t.slot}return a}function Rn(e,t){for(var n in t){e[h(n)]=t[n]}}var Fn={init:function e(t,n){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var i=t;Fn.prepatch(i,i)}else{var r=t.componentInstance=Hn(t,di);r.$mount(n?t.elm:undefined,n)}},prepatch:function e(t,n){var i=n.componentOptions;var r=n.componentInstance=t.componentInstance;vi(r,i.propsData,i.listeners,n,i.children)},insert:function e(t){var n=t.context;var i=t.componentInstance;if(!i._isMounted){i._isMounted=true;bi(i,"mounted")}if(t.data.keepAlive){if(n._isMounted){Ni(i)}else{_i(i,true)}}},destroy:function e(t){var n=t.componentInstance;if(!n._isDestroyed){if(!t.data.keepAlive){n.$destroy()}else{yi(n,true)}}}};var Ln=Object.keys(Fn);function jn(e,t,n,i,r){if(N(e)){return}var a=n.$options._base;if(j(e)){e=a.extend(e)}if(typeof e!=="function"){{ge("Invalid Component definition: "+String(e),n)}return}var o;if(N(e.cid)){o=e;e=ti(o,a);if(e===undefined){return ei(o,t,n,i,r)}}t=t||{};rr(e);if(R(t.model)){zn(e.options,t)}var s=nn(t,e,r);if(F(e.options.functional)){return In(e,s,t,n,i)}var l=t.on;t.on=t.nativeOn;if(F(e.options.abstract)){var c=t.slot;t={};if(c){t.slot=c}}qn(t);var d=e.options.name||r;var u=new Oe("vue-component-"+e.cid+(d?"-"+d:""),t,undefined,undefined,undefined,n,{Ctor:e,propsData:s,listeners:l,tag:r,children:i},o);return u}function Hn(e,t){var n={_isComponent:true,_parentVnode:e,parent:t};var i=e.data.inlineTemplate;if(R(i)){n.render=i.render;n.staticRenderFns=i.staticRenderFns}return new e.componentOptions.Ctor(n)}function qn(e){var t=e.hook||(e.hook={});for(var n=0;n<Ln.length;n++){var i=Ln[n];var r=t[i];var a=Fn[i];if(r!==a&&!(r&&r._merged)){t[i]=r?Bn(a,r):a}}}function Bn(n,i){var e=function(e,t){n(e,t);i(e,t)};e._merged=true;return e}function zn(e,t){var n=e.model&&e.model.prop||"value";var i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var r=t.on||(t.on={});var a=r[i];var o=t.model.callback;if(R(a)){if(Array.isArray(a)?a.indexOf(o)===-1:a!==o){r[i]=[o].concat(a)}}else{r[i]=o}}var Yn=1;var Un=2;function Wn(e,t,n,i,r,a){if(Array.isArray(n)||L(n)){r=i;i=n;n=undefined}if(F(a)){r=Un}return Vn(e,t,n,i,r)}function Vn(e,t,n,i,r){if(R(n)&&R(n.__ob__)){ge("Avoid using observed data object as vnode data: "+JSON.stringify(n)+"\n"+"Always create fresh vnode data objects in each render!",e);return Pe()}if(R(n)&&R(n.is)){t=n.is}if(!t){return Pe()}if(R(n)&&R(n.key)&&!L(n.key)){{ge("Avoid using non-primitive value as key, "+"use string/number value instead.",e)}}if(Array.isArray(i)&&typeof i[0]==="function"){n=n||{};n.scopedSlots={default:i[0]};i.length=0}if(r===Un){i=on(i)}else if(r===Yn){i=an(i)}var a,o;if(typeof t==="string"){var s;o=e.$vnode&&e.$vnode.ns||U.getTagNamespace(t);if(U.isReservedTag(t)){if(R(n)&&R(n.nativeOn)&&n.tag!=="component"){ge("The .native modifier for v-on is only valid on components but it was used on <"+t+">.",e)}a=new Oe(U.parsePlatformTagName(t),n,i,undefined,undefined,e)}else if((!n||!n.pre)&&R(s=ct(e.$options,"components",t))){a=jn(s,n,e,i,t)}else{a=new Oe(t,n,i,undefined,undefined,e)}}else{a=jn(t,n,e,i)}if(Array.isArray(a)){return a}else if(R(a)){if(R(o)){Jn(a,o)}if(R(n)){Gn(n)}return a}else{return Pe()}}function Jn(e,t,n){e.ns=t;if(e.tag==="foreignObject"){t=undefined;n=true}if(R(e.children)){for(var i=0,r=e.children.length;i<r;i++){var a=e.children[i];if(R(a.tag)&&(N(a.ns)||F(n)&&a.tag!=="svg")){Jn(a,t,n)}}}}function Gn(e){if(j(e.style)){Kt(e.style)}if(j(e.class)){Kt(e.class)}}function Kn(r){r._vnode=null;r._staticTrees=null;var e=r.$options;var t=r.$vnode=e._parentVnode;var n=t&&t.context;r.$slots=pn(e._renderChildren,n);r.$scopedSlots=m;r._c=function(e,t,n,i){return Wn(r,e,t,n,i,false)};r.$createElement=function(e,t,n,i){return Wn(r,e,t,n,i,true)};var i=t&&t.data;{Ue(r,"$attrs",i&&i.attrs||m,function(){!ui&&ge("$attrs is readonly.",r)},true);Ue(r,"$listeners",e._parentListeners||m,function(){!ui&&ge("$listeners is readonly.",r)},true)}}var Xn=null;function Qn(e){Pn(e.prototype);e.prototype.$nextTick=function(e){return Ft(e,this)};e.prototype._render=function(){var t=this;var e=t.$options;var n=e.render;var i=e._parentVnode;if(i){t.$scopedSlots=mn(i.data.scopedSlots,t.$slots,t.$scopedSlots)}t.$vnode=i;var r;try{Xn=t;r=n.call(t._renderProxy,t.$createElement)}catch(e){kt(e,t,"render");if(t.$options.renderError){try{r=t.$options.renderError.call(t._renderProxy,t.$createElement,e)}catch(e){kt(e,t,"renderError");r=t._vnode}}else{r=t._vnode}}finally{Xn=null}if(Array.isArray(r)&&r.length===1){r=r[0]}if(!(r instanceof Oe)){if(Array.isArray(r)){ge("Multiple root nodes returned from render function. Render function "+"should return a single root node.",t)}r=Pe()}r.parent=i;return r}}function Zn(e,t){if(e.__esModule||me&&e[Symbol.toStringTag]==="Module"){e=e.default}return j(e)?t.extend(e):e}function ei(e,t,n,i,r){var a=Pe();a.asyncFactory=e;a.asyncMeta={data:t,context:n,children:i,tag:r};return a}function ti(t,n){if(F(t.error)&&R(t.errorComp)){return t.errorComp}if(R(t.resolved)){return t.resolved}var e=Xn;if(e&&R(t.owners)&&t.owners.indexOf(e)===-1){t.owners.push(e)}if(F(t.loading)&&R(t.loadingComp)){return t.loadingComp}if(e&&!R(t.owners)){var i=t.owners=[e];var r=true;var a=null;var o=null;e.$on("hook:destroyed",function(){return f(i,e)});var s=function(e){for(var t=0,n=i.length;t<n;t++){i[t].$forceUpdate()}if(e){i.length=0;if(a!==null){clearTimeout(a);a=null}if(o!==null){clearTimeout(o);o=null}}};var l=z(function(e){t.resolved=Zn(e,n);if(!r){s(true)}else{i.length=0}});var c=z(function(e){ge("Failed to resolve async component: "+String(t)+(e?"\nReason: "+e:""));if(R(t.errorComp)){t.error=true;s(true)}});var d=t(l,c);if(j(d)){if(u(d)){if(N(t.resolved)){d.then(l,c)}}else if(u(d.component)){d.component.then(l,c);if(R(d.error)){t.errorComp=Zn(d.error,n)}if(R(d.loading)){t.loadingComp=Zn(d.loading,n);if(d.delay===0){t.loading=true}else{a=setTimeout(function(){a=null;if(N(t.resolved)&&N(t.error)){t.loading=true;s(false)}},d.delay||200)}}if(R(d.timeout)){o=setTimeout(function(){o=null;if(N(t.resolved)){c("timeout ("+d.timeout+"ms)")}},d.timeout)}}}r=false;return t.loading?t.loadingComp:t.resolved}}function ni(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++){var n=e[t];if(R(n)&&(R(n.componentOptions)||hn(n))){return n}}}}function ii(e){e._events=Object.create(null);e._hasHookEvent=false;var t=e.$options._parentListeners;if(t){li(e,t)}}var ri;function ai(e,t){ri.$on(e,t)}function oi(e,t){ri.$off(e,t)}function si(n,i){var r=ri;return function e(){var t=i.apply(null,arguments);if(t!==null){r.$off(n,e)}}}function li(e,t,n){ri=e;en(t,n||{},ai,oi,si,e);ri=undefined}function ci(e){var a=/^hook:/;e.prototype.$on=function(e,t){var n=this;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++){n.$on(e[i],t)}}else{(n._events[e]||(n._events[e]=[])).push(t);if(a.test(e)){n._hasHookEvent=true}}return n};e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i);t.apply(n,arguments)}i.fn=t;n.$on(e,i);return n};e.prototype.$off=function(e,t){var n=this;if(!arguments.length){n._events=Object.create(null);return n}if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++){n.$off(e[i],t)}return n}var a=n._events[e];if(!a){return n}if(!t){n._events[e]=null;return n}var o;var s=a.length;while(s--){o=a[s];if(o===t||o.fn===t){a.splice(s,1);break}}return n};e.prototype.$emit=function(e){var t=this;{var n=e.toLowerCase();if(n!==e&&t._events[n]){_e('Event "'+n+'" is emitted in component '+be(t)+' but the handler is registered for "'+e+'". '+"Note that HTML attributes are case-insensitive and you cannot use "+"v-on to listen to camelCase events when using in-DOM templates. "+'You should probably use "'+_(e)+'" instead of "'+e+'".')}}var i=t._events[e];if(i){i=i.length>1?C(i):i;var r=C(arguments,1);var a='event handler for "'+e+'"';for(var o=0,s=i.length;o<s;o++){St(i[o],t,r,t,a)}}return t}}var di=null;var ui=false;function pi(e){var t=di;di=e;return function(){di=t}}function fi(e){var t=e.$options;var n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent){n=n.$parent}n.$children.push(e)}e.$parent=n;e.$root=n?n.$root:e;e.$children=[];e.$refs={};e._watcher=null;e._inactive=null;e._directInactive=false;e._isMounted=false;e._isDestroyed=false;e._isBeingDestroyed=false}function hi(e){e.prototype._update=function(e,t){var n=this;var i=n.$el;var r=n._vnode;var a=pi(n);n._vnode=e;if(!r){n.$el=n.__patch__(n.$el,e,t,false)}else{n.$el=n.__patch__(r,e)}a();if(i){i.__vue__=null}if(n.$el){n.$el.__vue__=n}if(n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode){n.$parent.$el=n.$el}};e.prototype.$forceUpdate=function(){var e=this;if(e._watcher){e._watcher.update()}};e.prototype.$destroy=function(){var e=this;if(e._isBeingDestroyed){return}bi(e,"beforeDestroy");e._isBeingDestroyed=true;var t=e.$parent;if(t&&!t._isBeingDestroyed&&!e.$options.abstract){f(t.$children,e)}if(e._watcher){e._watcher.teardown()}var n=e._watchers.length;while(n--){e._watchers[n].teardown()}if(e._data.__ob__){e._data.__ob__.vmCount--}e._isDestroyed=true;e.__patch__(e._vnode,null);bi(e,"destroyed");e.$off();if(e.$el){e.$el.__vue__=null}if(e.$vnode){e.$vnode.parent=null}}}function mi(a,e,o){a.$el=e;if(!a.$options.render){a.$options.render=Pe;{if(a.$options.template&&a.$options.template.charAt(0)!=="#"||a.$options.el||e){ge("You are using the runtime-only build of Vue where the template "+"compiler is not available. Either pre-compile the templates into "+"render functions, or use the compiler-included build.",a)}else{ge("Failed to mount component: template or render function not defined.",a)}}}bi(a,"beforeMount");var t;if(U.performance&&Lt){t=function(){var e=a._name;var t=a._uid;var n="vue-perf-start:"+t;var i="vue-perf-end:"+t;Lt(n);var r=a._render();Lt(i);jt("vue "+e+" render",n,i);Lt(n);a._update(r,o);Lt(i);jt("vue "+e+" patch",n,i)}}else{t=function(){a._update(a._render(),o)}}new ji(a,t,S,{before:function e(){if(a._isMounted&&!a._isDestroyed){bi(a,"beforeUpdate")}}},true);o=false;if(a.$vnode==null){a._isMounted=true;bi(a,"mounted")}return a}function vi(e,t,n,i,r){{ui=true}var a=i.data.scopedSlots;var o=e.$scopedSlots;var s=!!(a&&!a.$stable||o!==m&&!o.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key);var l=!!(r||e.$options._renderChildren||s);e.$options._parentVnode=i;e.$vnode=i;if(e._vnode){e._vnode.parent=i}e.$options._renderChildren=r;e.$attrs=i.data.attrs||m;e.$listeners=n||m;if(t&&e.$options.props){He(false);var c=e._props;var d=e.$options._propKeys||[];for(var u=0;u<d.length;u++){var p=d[u];var f=e.$options.props;c[p]=dt(p,f,t,e)}He(true);e.$options.propsData=t}n=n||m;var h=e.$options._parentListeners;e.$options._parentListeners=n;li(e,n,h);if(l){e.$slots=pn(r,i.context);e.$forceUpdate()}{ui=false}}function gi(e){while(e&&(e=e.$parent)){if(e._inactive){return true}}return false}function _i(e,t){if(t){e._directInactive=false;if(gi(e)){return}}else if(e._directInactive){return}if(e._inactive||e._inactive===null){e._inactive=false;for(var n=0;n<e.$children.length;n++){_i(e.$children[n])}bi(e,"activated")}}function yi(e,t){if(t){e._directInactive=true;if(gi(e)){return}}if(!e._inactive){e._inactive=true;for(var n=0;n<e.$children.length;n++){yi(e.$children[n])}bi(e,"deactivated")}}function bi(e,t){$e();var n=e.$options[t];var i=t+" hook";if(n){for(var r=0,a=n.length;r<a;r++){St(n[r],e,null,e,i)}}if(e._hasHookEvent){e.$emit("hook:"+t)}Ee()}var wi=100;var Ci=[];var xi=[];var ki={};var Si={};var Di=false;var Ti=false;var $i=0;function Ei(){$i=Ci.length=xi.length=0;ki={};{Si={}}Di=Ti=false}var Oi=0;var Ai=Date.now;if(K&&!ee){var Pi=window.performance;if(Pi&&typeof Pi.now==="function"&&Ai()>document.createEvent("Event").timeStamp){Ai=function(){return Pi.now()}}}function Mi(){Oi=Ai();Ti=true;var e,t;Ci.sort(function(e,t){return e.id-t.id});for($i=0;$i<Ci.length;$i++){e=Ci[$i];if(e.before){e.before()}t=e.id;ki[t]=null;e.run();if(ki[t]!=null){Si[t]=(Si[t]||0)+1;if(Si[t]>wi){ge("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}}}var n=xi.slice();var i=Ci.slice();Ei();Ri(n);Ii(i);if(fe&&U.devtools){fe.emit("flush")}}function Ii(e){var t=e.length;while(t--){var n=e[t];var i=n.vm;if(i._watcher===n&&i._isMounted&&!i._isDestroyed){bi(i,"updated")}}}function Ni(e){e._inactive=false;xi.push(e)}function Ri(e){for(var t=0;t<e.length;t++){e[t]._inactive=true;_i(e[t],true)}}function Fi(e){var t=e.id;if(ki[t]==null){ki[t]=true;if(!Ti){Ci.push(e)}else{var n=Ci.length-1;while(n>$i&&Ci[n].id>e.id){n--}Ci.splice(n+1,0,e)}if(!Di){Di=true;if(!U.async){Mi();return}Ft(Mi)}}}var Li=0;var ji=function e(t,n,i,r,a){this.vm=t;if(a){t._watcher=this}t._watchers.push(this);if(r){this.deep=!!r.deep;this.user=!!r.user;this.lazy=!!r.lazy;this.sync=!!r.sync;this.before=r.before}else{this.deep=this.user=this.lazy=this.sync=false}this.cb=i;this.id=++Li;this.active=true;this.dirty=this.lazy;this.deps=[];this.newDeps=[];this.depIds=new ve;this.newDepIds=new ve;this.expression=n.toString();if(typeof n==="function"){this.getter=n}else{this.getter=J(n);if(!this.getter){this.getter=S;ge('Failed watching path: "'+n+'" '+"Watcher only accepts simple dot-delimited paths. "+"For full control, use a function instead.",t)}}this.value=this.lazy?undefined:this.get()};ji.prototype.get=function e(){$e(this);var t;var n=this.vm;try{t=this.getter.call(n,n)}catch(e){if(this.user){kt(e,n,'getter for watcher "'+this.expression+'"')}else{throw e}}finally{if(this.deep){Kt(t)}Ee();this.cleanupDeps()}return t};ji.prototype.addDep=function e(t){var n=t.id;if(!this.newDepIds.has(n)){this.newDepIds.add(n);this.newDeps.push(t);if(!this.depIds.has(n)){t.addSub(this)}}};ji.prototype.cleanupDeps=function e(){var t=this.deps.length;while(t--){var n=this.deps[t];if(!this.newDepIds.has(n.id)){n.removeSub(this)}}var i=this.depIds;this.depIds=this.newDepIds;this.newDepIds=i;this.newDepIds.clear();i=this.deps;this.deps=this.newDeps;this.newDeps=i;this.newDeps.length=0};ji.prototype.update=function e(){if(this.lazy){this.dirty=true}else if(this.sync){this.run()}else{Fi(this)}};ji.prototype.run=function e(){if(this.active){var t=this.get();if(t!==this.value||j(t)||this.deep){var n=this.value;this.value=t;if(this.user){var i='callback for watcher "'+this.expression+'"';St(this.cb,this.vm,[t,n],this.vm,i)}else{this.cb.call(this.vm,t,n)}}}};ji.prototype.evaluate=function e(){this.value=this.get();this.dirty=false};ji.prototype.depend=function e(){var t=this.deps.length;while(t--){this.deps[t].depend()}};ji.prototype.teardown=function e(){if(this.active){if(!this.vm._isBeingDestroyed){f(this.vm._watchers,this)}var t=this.deps.length;while(t--){this.deps[t].removeSub(this)}this.active=false}};var Hi={enumerable:true,configurable:true,get:S,set:S};function qi(e,n,i){Hi.get=function e(){return this[n][i]};Hi.set=function e(t){this[n][i]=t};Object.defineProperty(e,i,Hi)}function Bi(e){e._watchers=[];var t=e.$options;if(t.props){zi(e,t.props)}if(t.methods){Xi(e,t.methods)}if(t.data){Yi(e)}else{Ye(e._data={},true)}if(t.computed){Vi(e,t.computed)}if(t.watch&&t.watch!==le){Qi(e,t.watch)}}function zi(i,r){var a=i.$options.propsData||{};var o=i._props={};var s=i.$options._propKeys=[];var l=!i.$parent;if(!l){He(false)}var e=function(e){s.push(e);var t=dt(e,r,a,i);{var n=_(e);if(p(n)||U.isReservedAttr(n)){ge('"'+n+'" is a reserved attribute and cannot be used as component prop.',i)}Ue(o,e,t,function(){if(!l&&!ui){ge("Avoid mutating a prop directly since the value will be "+"overwritten whenever the parent component re-renders. "+"Instead, use a data or computed property based on the prop's "+'value. Prop being mutated: "'+e+'"',i)}})}if(!(e in i)){qi(i,"_props",e)}};for(var t in r)e(t);He(true)}function Yi(e){var t=e.$options.data;t=e._data=typeof t==="function"?Ui(t,e):t||{};if(!c(t)){t={};ge("data functions should return an object:\n"+"https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e)}var n=Object.keys(t);var i=e.$options.props;var r=e.$options.methods;var a=n.length;while(a--){var o=n[a];{if(r&&d(r,o)){ge('Method "'+o+'" has already been defined as a data property.',e)}}if(i&&d(i,o)){ge('The data property "'+o+'" is already declared as a prop. '+"Use prop default value instead.",e)}else if(!I(o)){qi(e,"_data",o)}}Ye(t,true)}function Ui(e,t){$e();try{return e.call(t,t)}catch(e){kt(e,t,"data()");return{}}finally{Ee()}}var Wi={lazy:true};function Vi(e,t){var n=e._computedWatchers=Object.create(null);var i=pe();for(var r in t){var a=t[r];var o=typeof a==="function"?a:a.get;if(o==null){ge('Getter is missing for computed property "'+r+'".',e)}if(!i){n[r]=new ji(e,o||S,S,Wi)}if(!(r in e)){Ji(e,r,a)}else{if(r in e.$data){ge('The computed property "'+r+'" is already defined in data.',e)}else if(e.$options.props&&r in e.$options.props){ge('The computed property "'+r+'" is already defined as a prop.',e)}else if(e.$options.methods&&r in e.$options.methods){ge('The computed property "'+r+'" is already defined as a method.',e)}}}}function Ji(e,t,n){var i=!pe();if(typeof n==="function"){Hi.get=i?Gi(t):Ki(n);Hi.set=S}else{Hi.get=n.get?i&&n.cache!==false?Gi(t):Ki(n.get):S;Hi.set=n.set||S}if(Hi.set===S){Hi.set=function(){ge('Computed property "'+t+'" was assigned to but it has no setter.',this)}}Object.defineProperty(e,t,Hi)}function Gi(n){return function e(){var t=this._computedWatchers&&this._computedWatchers[n];if(t){if(t.dirty){t.evaluate()}if(De.target){t.depend()}return t.value}}}function Ki(t){return function e(){return t.call(this,this)}}function Xi(e,t){var n=e.$options.props;for(var i in t){{if(typeof t[i]!=="function"){ge('Method "'+i+'" has type "'+typeof t[i]+'" in the component definition. '+"Did you reference the function correctly?",e)}if(n&&d(n,i)){ge('Method "'+i+'" has already been defined as a prop.',e)}if(i in e&&I(i)){ge('Method "'+i+'" conflicts with an existing Vue instance method. '+"Avoid defining component methods that start with _ or $.")}}e[i]=typeof t[i]!=="function"?S:w(t[i],e)}}function Qi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i)){for(var r=0;r<i.length;r++){Zi(e,n,i[r])}}else{Zi(e,n,i)}}}function Zi(e,t,n,i){if(c(n)){i=n;n=n.handler}if(typeof n==="string"){n=e[n]}return e.$watch(t,n,i)}function er(e){var t={};t.get=function(){return this._data};var n={};n.get=function(){return this._props};{t.set=function(){ge("Avoid replacing instance root $data. "+"Use nested data properties instead.",this)};n.set=function(){ge("$props is readonly.",this)}}Object.defineProperty(e.prototype,"$data",t);Object.defineProperty(e.prototype,"$props",n);e.prototype.$set=We;e.prototype.$delete=Ve;e.prototype.$watch=function(e,t,n){var i=this;if(c(t)){return Zi(i,e,t,n)}n=n||{};n.user=true;var r=new ji(i,e,t,n);if(n.immediate){var a='callback for immediate watcher "'+r.expression+'"';$e();St(t,i,[r.value],i,a);Ee()}return function e(){r.teardown()}}}var tr=0;function nr(e){e.prototype._init=function(e){var t=this;t._uid=tr++;var n,i;if(U.performance&&Lt){n="vue-perf-start:"+t._uid;i="vue-perf-end:"+t._uid;Lt(n)}t._isVue=true;if(e&&e._isComponent){ir(t,e)}else{t.$options=lt(rr(t.constructor),e||{},t)}{qt(t)}t._self=t;fi(t);ii(t);Kn(t);bi(t,"beforeCreate");dn(t);Bi(t);cn(t);bi(t,"created");if(U.performance&&Lt){t._name=be(t,false);Lt(i);jt("vue "+t._name+" init",n,i)}if(t.$options.el){t.$mount(t.$options.el)}}}function ir(e,t){var n=e.$options=Object.create(e.constructor.options);var i=t._parentVnode;n.parent=t.parent;n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData;n._parentListeners=r.listeners;n._renderChildren=r.children;n._componentTag=r.tag;if(t.render){n.render=t.render;n.staticRenderFns=t.staticRenderFns}}function rr(e){var t=e.options;if(e.super){var n=rr(e.super);var i=e.superOptions;if(n!==i){e.superOptions=n;var r=ar(e);if(r){x(e.extendOptions,r)}t=e.options=lt(n,e.extendOptions);if(t.name){t.components[t.name]=e}}}return t}function ar(e){var t;var n=e.options;var i=e.sealedOptions;for(var r in n){if(n[r]!==i[r]){if(!t){t={}}t[r]=n[r]}}return t}function or(e){if(!(this instanceof or)){ge("Vue is a constructor and should be called with the `new` keyword")}this._init(e)}nr(or);er(or);ci(or);hi(or);Qn(or);function sr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1){return this}var n=C(arguments,1);n.unshift(this);if(typeof e.install==="function"){e.install.apply(e,n)}else if(typeof e==="function"){e.apply(null,n)}t.push(e);return this}}function lr(e){e.mixin=function(e){this.options=lt(this.options,e);return this}}function cr(e){e.cid=0;var o=1;e.extend=function(e){e=e||{};var t=this;var n=t.cid;var i=e._Ctor||(e._Ctor={});if(i[n]){return i[n]}var r=e.name||t.options.name;if(r){it(r)}var a=function e(t){this._init(t)};a.prototype=Object.create(t.prototype);a.prototype.constructor=a;a.cid=o++;a.options=lt(t.options,e);a["super"]=t;if(a.options.props){dr(a)}if(a.options.computed){ur(a)}a.extend=t.extend;a.mixin=t.mixin;a.use=t.use;A.forEach(function(e){a[e]=t[e]});if(r){a.options.components[r]=a}a.superOptions=t.options;a.extendOptions=e;a.sealedOptions=x({},a.options);i[n]=a;return a}}function dr(e){var t=e.options.props;for(var n in t){qi(e.prototype,"_props",n)}}function ur(e){var t=e.options.computed;for(var n in t){Ji(e.prototype,n,t[n])}}function pr(e){A.forEach(function(n){e[n]=function(e,t){if(!t){return this.options[n+"s"][e]}else{if(n==="component"){it(e)}if(n==="component"&&c(t)){t.name=t.name||e;t=this.options._base.extend(t)}if(n==="directive"&&typeof t==="function"){t={bind:t,update:t}}this.options[n+"s"][e]=t;return t}}})}function fr(e){return e&&(e.Ctor.options.name||e.tag)}function hr(e,t){if(Array.isArray(e)){return e.indexOf(t)>-1}else if(typeof e==="string"){return e.split(",").indexOf(t)>-1}else if(H(e)){return e.test(t)}return false}function mr(e,t){var n=e.cache;var i=e.keys;var r=e._vnode;for(var a in n){var o=n[a];if(o){var s=o.name;if(s&&!t(s)){vr(n,a,i,r)}}}}function vr(e,t,n,i){var r=e[t];if(r&&(!i||r.tag!==i.tag)){r.componentInstance.$destroy()}e[t]=null;f(n,t)}var gr=[String,RegExp,Array];var _r={name:"keep-alive",abstract:true,props:{include:gr,exclude:gr,max:[String,Number]},methods:{cacheVNode:function e(){var t=this;var n=t.cache;var i=t.keys;var r=t.vnodeToCache;var a=t.keyToCache;if(r){var o=r.tag;var s=r.componentInstance;var l=r.componentOptions;n[a]={name:fr(l),tag:o,componentInstance:s};i.push(a);if(this.max&&i.length>parseInt(this.max)){vr(n,i[0],i,this._vnode)}this.vnodeToCache=null}}},created:function e(){this.cache=Object.create(null);this.keys=[]},destroyed:function e(){for(var t in this.cache){vr(this.cache,t,this.keys)}},mounted:function e(){var n=this;this.cacheVNode();this.$watch("include",function(t){mr(n,function(e){return hr(t,e)})});this.$watch("exclude",function(t){mr(n,function(e){return!hr(t,e)})})},updated:function e(){this.cacheVNode()},render:function e(){var t=this.$slots.default;var n=ni(t);var i=n&&n.componentOptions;if(i){var r=fr(i);var a=this;var o=a.include;var s=a.exclude;if(o&&(!r||!hr(o,r))||s&&r&&hr(s,r)){return n}var l=this;var c=l.cache;var d=l.keys;var u=n.key==null?i.Ctor.cid+(i.tag?"::"+i.tag:""):n.key;if(c[u]){n.componentInstance=c[u].componentInstance;f(d,u);d.push(u)}else{this.vnodeToCache=n;this.keyToCache=u}n.data.keepAlive=true}return n||t&&t[0]}};var yr={KeepAlive:_r};function br(t){var e={};e.get=function(){return U};{e.set=function(){ge("Do not replace the Vue.config object, set individual fields instead.")}}Object.defineProperty(t,"config",e);t.util={warn:ge,extend:x,mergeOptions:lt,defineReactive:Ue};t.set=We;t.delete=Ve;t.nextTick=Ft;t.observable=function(e){Ye(e);return e};t.options=Object.create(null);A.forEach(function(e){t.options[e+"s"]=Object.create(null)});t.options._base=t;x(t.options.components,yr);sr(t);lr(t);cr(t);pr(t)}br(or);Object.defineProperty(or.prototype,"$isServer",{get:pe});Object.defineProperty(or.prototype,"$ssrContext",{get:function e(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(or,"FunctionalRenderContext",{value:Mn});or.version="2.6.14";var wr=B("style,class");var Cr=B("input,textarea,option,select,progress");var xr=function(e,t,n){return n==="value"&&Cr(e)&&t!=="button"||n==="selected"&&e==="option"||n==="checked"&&e==="input"||n==="muted"&&e==="video"};var kr=B("contenteditable,draggable,spellcheck");var Sr=B("events,caret,typing,plaintext-only");var Dr=function(e,t){return Ar(t)||t==="false"?"false":e==="contenteditable"&&Sr(t)?t:"true"};var Tr=B("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,"+"default,defaultchecked,defaultmuted,defaultselected,defer,disabled,"+"enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,"+"muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,"+"required,reversed,scoped,seamless,selected,sortable,"+"truespeed,typemustmatch,visible");var $r="http://www.w3.org/1999/xlink";var Er=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"};var Or=function(e){return Er(e)?e.slice(6,e.length):""};var Ar=function(e){return e==null||e===false};function Pr(e){var t=e.data;var n=e;var i=e;while(R(i.componentInstance)){i=i.componentInstance._vnode;if(i&&i.data){t=Mr(i.data,t)}}while(R(n=n.parent)){if(n&&n.data){t=Mr(t,n.data)}}return Ir(t.staticClass,t.class)}function Mr(e,t){return{staticClass:Nr(e.staticClass,t.staticClass),class:R(e.class)?[e.class,t.class]:t.class}}function Ir(e,t){if(R(e)||R(t)){return Nr(e,Rr(t))}return""}function Nr(e,t){return e?t?e+" "+t:e:t||""}function Rr(e){if(Array.isArray(e)){return Fr(e)}if(j(e)){return Lr(e)}if(typeof e==="string"){return e}return""}function Fr(e){var t="";var n;for(var i=0,r=e.length;i<r;i++){if(R(n=Rr(e[i]))&&n!==""){if(t){t+=" "}t+=n}}return t}function Lr(e){var t="";for(var n in e){if(e[n]){if(t){t+=" "}t+=n}}return t}var jr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"};var Hr=B("html,body,base,head,link,meta,style,title,"+"address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,"+"div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,"+"a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,"+"s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,"+"embed,object,param,source,canvas,script,noscript,del,ins,"+"caption,col,colgroup,table,thead,tbody,td,th,tr,"+"button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,"+"output,progress,select,textarea,"+"details,dialog,menu,menuitem,summary,"+"content,element,shadow,template,blockquote,iframe,tfoot");var qr=B("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,"+"foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,"+"polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",true);var Br=function(e){return e==="pre"};var zr=function(e){return Hr(e)||qr(e)};function Yr(e){if(qr(e)){return"svg"}if(e==="math"){return"math"}}var Ur=Object.create(null);function Wr(e){if(!K){return true}if(zr(e)){return false}e=e.toLowerCase();if(Ur[e]!=null){return Ur[e]}var t=document.createElement(e);if(e.indexOf("-")>-1){return Ur[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement}else{return Ur[e]=/HTMLUnknownElement/.test(t.toString())}}var Vr=B("text,number,password,search,email,tel,url");function Jr(e){if(typeof e==="string"){var t=document.querySelector(e);if(!t){ge("Cannot find element: "+e);return document.createElement("div")}return t}else{return e}}function Gr(e,t){var n=document.createElement(e);if(e!=="select"){return n}if(t.data&&t.data.attrs&&t.data.attrs.multiple!==undefined){n.setAttribute("multiple","multiple")}return n}function Kr(e,t){return document.createElementNS(jr[e],t)}function Xr(e){return document.createTextNode(e)}function Qr(e){return document.createComment(e)}function Zr(e,t,n){e.insertBefore(t,n)}function ea(e,t){e.removeChild(t)}function ta(e,t){e.appendChild(t)}function na(e){return e.parentNode}function ia(e){return e.nextSibling}function ra(e){return e.tagName}function aa(e,t){e.textContent=t}function oa(e,t){e.setAttribute(t,"")}var sa=Object.freeze({createElement:Gr,createElementNS:Kr,createTextNode:Xr,createComment:Qr,insertBefore:Zr,removeChild:ea,appendChild:ta,parentNode:na,nextSibling:ia,tagName:ra,setTextContent:aa,setStyleScope:oa});var la={create:function e(t,n){ca(n)},update:function e(t,n){if(t.data.ref!==n.data.ref){ca(t,true);ca(n)}},destroy:function e(t){ca(t,true)}};function ca(e,t){var n=e.data.ref;if(!R(n)){return}var i=e.context;var r=e.componentInstance||e.elm;var a=i.$refs;if(t){if(Array.isArray(a[n])){f(a[n],r)}else if(a[n]===r){a[n]=undefined}}else{if(e.data.refInFor){if(!Array.isArray(a[n])){a[n]=[r]}else if(a[n].indexOf(r)<0){a[n].push(r)}}else{a[n]=r}}}var da=new Oe("",{},[]);var ua=["create","activate","update","remove","destroy"];function pa(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&R(e.data)===R(t.data)&&fa(e,t)||F(e.isAsyncPlaceholder)&&N(t.asyncFactory.error))}function fa(e,t){if(e.tag!=="input"){return true}var n;var i=R(n=e.data)&&R(n=n.attrs)&&n.type;var r=R(n=t.data)&&R(n=n.attrs)&&n.type;return i===r||Vr(i)&&Vr(r)}function ha(e,t,n){var i,r;var a={};for(i=t;i<=n;++i){r=e[i].key;if(R(r)){a[r]=i}}return a}function ma(e){var i,t;var v={};var n=e.modules;var _=e.nodeOps;for(i=0;i<ua.length;++i){v[ua[i]]=[];for(t=0;t<n.length;++t){if(R(n[t][ua[i]])){v[ua[i]].push(n[t][ua[i]])}}}function g(e){return new Oe(_.tagName(e).toLowerCase(),{},[],undefined,e)}function r(e,t){function n(){if(--n.listeners===0){a(e)}}n.listeners=t;return n}function a(e){var t=_.parentNode(e);if(R(t)){_.removeChild(t,e)}}function d(t,e){return!e&&!t.ns&&!(U.ignoredElements.length&&U.ignoredElements.some(function(e){return H(e)?e.test(t.tag):e===t.tag}))&&U.isUnknownElement(t.tag)}var u=0;function y(e,t,n,i,r,a,o){if(R(e.elm)&&R(a)){e=a[o]=Ie(e)}e.isRootInsert=!r;if(p(e,t,n,i)){return}var s=e.data;var l=e.children;var c=e.tag;if(R(c)){{if(s&&s.pre){u++}if(d(e,u)){ge("Unknown custom element: <"+c+"> - did you "+"register the component correctly? For recursive components, "+'make sure to provide the "name" option.',e.context)}}e.elm=e.ns?_.createElementNS(e.ns,c):_.createElement(c,e);C(e);{m(e,l,t);if(R(s)){w(e,t)}h(n,e.elm,i)}if(s&&s.pre){u--}}else if(F(e.isComment)){e.elm=_.createComment(e.text);h(n,e.elm,i)}else{e.elm=_.createTextNode(e.text);h(n,e.elm,i)}}function p(e,t,n,i){var r=e.data;if(R(r)){var a=R(e.componentInstance)&&r.keepAlive;if(R(r=r.hook)&&R(r=r.init)){r(e,false)}if(R(e.componentInstance)){f(e,t);h(n,e.elm,i);if(F(a)){o(e,t,n,i)}return true}}}function f(e,t){if(R(e.data.pendingInsert)){t.push.apply(t,e.data.pendingInsert);e.data.pendingInsert=null}e.elm=e.componentInstance.$el;if(b(e)){w(e,t);C(e)}else{ca(e);t.push(e)}}function o(e,t,n,i){var r;var a=e;while(a.componentInstance){a=a.componentInstance._vnode;if(R(r=a.data)&&R(r=r.transition)){for(r=0;r<v.activate.length;++r){v.activate[r](da,a)}t.push(a);break}}h(n,e.elm,i)}function h(e,t,n){if(R(e)){if(R(n)){if(_.parentNode(n)===e){_.insertBefore(e,t,n)}}else{_.appendChild(e,t)}}}function m(e,t,n){if(Array.isArray(t)){{T(t)}for(var i=0;i<t.length;++i){y(t[i],n,e.elm,null,true,t,i)}}else if(L(e.text)){_.appendChild(e.elm,_.createTextNode(String(e.text)))}}function b(e){while(e.componentInstance){e=e.componentInstance._vnode}return R(e.tag)}function w(e,t){for(var n=0;n<v.create.length;++n){v.create[n](da,e)}i=e.data.hook;if(R(i)){if(R(i.create)){i.create(da,e)}if(R(i.insert)){t.push(e)}}}function C(e){var t;if(R(t=e.fnScopeId)){_.setStyleScope(e.elm,t)}else{var n=e;while(n){if(R(t=n.context)&&R(t=t.$options._scopeId)){_.setStyleScope(e.elm,t)}n=n.parent}}if(R(t=di)&&t!==e.context&&t!==e.fnContext&&R(t=t.$options._scopeId)){_.setStyleScope(e.elm,t)}}function x(e,t,n,i,r,a){for(;i<=r;++i){y(n[i],a,e,t,false,n,i)}}function k(e){var t,n;var i=e.data;if(R(i)){if(R(t=i.hook)&&R(t=t.destroy)){t(e)}for(t=0;t<v.destroy.length;++t){v.destroy[t](e)}}if(R(t=e.children)){for(n=0;n<e.children.length;++n){k(e.children[n])}}}function S(e,t,n){for(;t<=n;++t){var i=e[t];if(R(i)){if(R(i.tag)){s(i);k(i)}else{a(i.elm)}}}}function s(e,t){if(R(t)||R(e.data)){var n;var i=v.remove.length+1;if(R(t)){t.listeners+=i}else{t=r(e.elm,i)}if(R(n=e.componentInstance)&&R(n=n._vnode)&&R(n.data)){s(n,t)}for(n=0;n<v.remove.length;++n){v.remove[n](e,t)}if(R(n=e.data.hook)&&R(n=n.remove)){n(e,t)}else{t()}}else{a(e.elm)}}function D(e,t,n,i,r){var a=0;var o=0;var s=t.length-1;var l=t[0];var c=t[s];var d=n.length-1;var u=n[0];var p=n[d];var f,h,m,v;var g=!r;{T(n)}while(a<=s&&o<=d){if(N(l)){l=t[++a]}else if(N(c)){c=t[--s]}else if(pa(l,u)){E(l,u,i,n,o);l=t[++a];u=n[++o]}else if(pa(c,p)){E(c,p,i,n,d);c=t[--s];p=n[--d]}else if(pa(l,p)){E(l,p,i,n,d);g&&_.insertBefore(e,l.elm,_.nextSibling(c.elm));l=t[++a];p=n[--d]}else if(pa(c,u)){E(c,u,i,n,o);g&&_.insertBefore(e,c.elm,l.elm);c=t[--s];u=n[++o]}else{if(N(f)){f=ha(t,a,s)}h=R(u.key)?f[u.key]:$(u,t,a,s);if(N(h)){y(u,i,e,l.elm,false,n,o)}else{m=t[h];if(pa(m,u)){E(m,u,i,n,o);t[h]=undefined;g&&_.insertBefore(e,m.elm,l.elm)}else{y(u,i,e,l.elm,false,n,o)}}u=n[++o]}}if(a>s){v=N(n[d+1])?null:n[d+1].elm;x(e,v,n,o,d,i)}else if(o>d){S(t,a,s)}}function T(e){var t={};for(var n=0;n<e.length;n++){var i=e[n];var r=i.key;if(R(r)){if(t[r]){ge("Duplicate keys detected: '"+r+"'. This may cause an update error.",i.context)}else{t[r]=true}}}}function $(e,t,n,i){for(var r=n;r<i;r++){var a=t[r];if(R(a)&&pa(e,a)){return r}}}function E(e,t,n,i,r,a){if(e===t){return}if(R(t.elm)&&R(i)){t=i[r]=Ie(t)}var o=t.elm=e.elm;if(F(e.isAsyncPlaceholder)){if(R(t.asyncFactory.resolved)){M(e.elm,t,n)}else{t.isAsyncPlaceholder=true}return}if(F(t.isStatic)&&F(e.isStatic)&&t.key===e.key&&(F(t.isCloned)||F(t.isOnce))){t.componentInstance=e.componentInstance;return}var s;var l=t.data;if(R(l)&&R(s=l.hook)&&R(s=s.prepatch)){s(e,t)}var c=e.children;var d=t.children;if(R(l)&&b(t)){for(s=0;s<v.update.length;++s){v.update[s](e,t)}if(R(s=l.hook)&&R(s=s.update)){s(e,t)}}if(N(t.text)){if(R(c)&&R(d)){if(c!==d){D(o,c,d,n,a)}}else if(R(d)){{T(d)}if(R(e.text)){_.setTextContent(o,"")}x(o,null,d,0,d.length-1,n)}else if(R(c)){S(c,0,c.length-1)}else if(R(e.text)){_.setTextContent(o,"")}}else if(e.text!==t.text){_.setTextContent(o,t.text)}if(R(l)){if(R(s=l.hook)&&R(s=s.postpatch)){s(e,t)}}}function O(e,t,n){if(F(n)&&R(e.parent)){e.parent.data.pendingInsert=t}else{for(var i=0;i<t.length;++i){t[i].data.hook.insert(t[i])}}}var A=false;var P=B("attrs,class,staticClass,staticStyle,key");function M(e,t,n,i){var r;var a=t.tag;var o=t.data;var s=t.children;i=i||o&&o.pre;t.elm=e;if(F(t.isComment)&&R(t.asyncFactory)){t.isAsyncPlaceholder=true;return true}{if(!I(e,t,i)){return false}}if(R(o)){if(R(r=o.hook)&&R(r=r.init)){r(t,true)}if(R(r=t.componentInstance)){f(t,n);return true}}if(R(a)){if(R(s)){if(!e.hasChildNodes()){m(t,s,n)}else{if(R(r=o)&&R(r=r.domProps)&&R(r=r.innerHTML)){if(r!==e.innerHTML){if(typeof console!=="undefined"&&!A){A=true;console.warn("Parent: ",e);console.warn("server innerHTML: ",r);console.warn("client innerHTML: ",e.innerHTML)}return false}}else{var l=true;var c=e.firstChild;for(var d=0;d<s.length;d++){if(!c||!M(c,s[d],n,i)){l=false;break}c=c.nextSibling}if(!l||c){if(typeof console!=="undefined"&&!A){A=true;console.warn("Parent: ",e);console.warn("Mismatching childNodes vs. VNodes: ",e.childNodes,s)}return false}}}}if(R(o)){var u=false;for(var p in o){if(!P(p)){u=true;w(t,n);break}}if(!u&&o["class"]){Kt(o["class"])}}}else if(e.data!==t.text){e.data=t.text}return true}function I(e,t,n){if(R(t.tag)){return t.tag.indexOf("vue-component")===0||!d(t,n)&&t.tag.toLowerCase()===(e.tagName&&e.tagName.toLowerCase())}else{return e.nodeType===(t.isComment?8:3)}}return function e(t,n,i,r){if(N(n)){if(R(t)){k(t)}return}var a=false;var o=[];if(N(t)){a=true;y(n,o)}else{var s=R(t.nodeType);if(!s&&pa(t,n)){E(t,n,o,null,null,r)}else{if(s){if(t.nodeType===1&&t.hasAttribute(Y)){t.removeAttribute(Y);i=true}if(F(i)){if(M(t,n,o)){O(n,o,true);return t}else{ge("The client-side rendered virtual DOM tree is not matching "+"server-rendered content. This is likely caused by incorrect "+"HTML markup, for example nesting block-level elements inside "+"<p>, or missing <tbody>. Bailing hydration and performing "+"full client-side render.")}}t=g(t)}var l=t.elm;var c=_.parentNode(l);y(n,o,l._leaveCb?null:c,_.nextSibling(l));if(R(n.parent)){var d=n.parent;var u=b(n);while(d){for(var p=0;p<v.destroy.length;++p){v.destroy[p](d)}d.elm=n.elm;if(u){for(var f=0;f<v.create.length;++f){v.create[f](da,d)}var h=d.data.hook.insert;if(h.merged){for(var m=1;m<h.fns.length;m++){h.fns[m]()}}}else{ca(d)}d=d.parent}}if(R(c)){S([t],0,0)}else if(R(t.tag)){k(t)}}}O(n,o,a);return n.elm}}var va={create:ga,update:ga,destroy:function e(t){ga(t,da)}};function ga(e,t){if(e.data.directives||t.data.directives){_a(e,t)}}function _a(t,n){var e=t===da;var i=n===da;var r=ba(t.data.directives,t.context);var a=ba(n.data.directives,n.context);var o=[];var s=[];var l,c,d;for(l in a){c=r[l];d=a[l];if(!c){Ca(d,"bind",n,t);if(d.def&&d.def.inserted){o.push(d)}}else{d.oldValue=c.value;d.oldArg=c.arg;Ca(d,"update",n,t);if(d.def&&d.def.componentUpdated){s.push(d)}}}if(o.length){var u=function(){for(var e=0;e<o.length;e++){Ca(o[e],"inserted",n,t)}};if(e){tn(n,"insert",u)}else{u()}}if(s.length){tn(n,"postpatch",function(){for(var e=0;e<s.length;e++){Ca(s[e],"componentUpdated",n,t)}})}if(!e){for(l in r){if(!a[l]){Ca(r[l],"unbind",t,t,i)}}}}var ya=Object.create(null);function ba(e,t){var n=Object.create(null);if(!e){return n}var i,r;for(i=0;i<e.length;i++){r=e[i];if(!r.modifiers){r.modifiers=ya}n[wa(r)]=r;r.def=ct(t.$options,"directives",r.name,true)}return n}function wa(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Ca(t,n,i,e,r){var a=t.def&&t.def[n];if(a){try{a(i.elm,t,i,e,r)}catch(e){kt(e,i.context,"directive "+t.name+" "+n+" hook")}}}var xa=[la,va];function ka(e,t){var n=t.componentOptions;if(R(n)&&n.Ctor.options.inheritAttrs===false){return}if(N(e.data.attrs)&&N(t.data.attrs)){return}var i,r,a;var o=t.elm;var s=e.data.attrs||{};var l=t.data.attrs||{};if(R(l.__ob__)){l=t.data.attrs=x({},l)}for(i in l){r=l[i];a=s[i];if(a!==r){Sa(o,i,r,t.data.pre)}}if((ee||ne)&&l.value!==s.value){Sa(o,"value",l.value)}for(i in s){if(N(l[i])){if(Er(i)){o.removeAttributeNS($r,Or(i))}else if(!kr(i)){o.removeAttribute(i)}}}}function Sa(e,t,n,i){if(i||e.tagName.indexOf("-")>-1){Da(e,t,n)}else if(Tr(t)){if(Ar(n)){e.removeAttribute(t)}else{n=t==="allowfullscreen"&&e.tagName==="EMBED"?"true":t;e.setAttribute(t,n)}}else if(kr(t)){e.setAttribute(t,Dr(t,n))}else if(Er(t)){if(Ar(n)){e.removeAttributeNS($r,Or(t))}else{e.setAttributeNS($r,t,n)}}else{Da(e,t,n)}}function Da(t,e,n){if(Ar(n)){t.removeAttribute(e)}else{if(ee&&!te&&t.tagName==="TEXTAREA"&&e==="placeholder"&&n!==""&&!t.__ieph){var i=function(e){e.stopImmediatePropagation();t.removeEventListener("input",i)};t.addEventListener("input",i);t.__ieph=true}t.setAttribute(e,n)}}var Ta={create:ka,update:ka};function $a(e,t){var n=t.elm;var i=t.data;var r=e.data;if(N(i.staticClass)&&N(i.class)&&(N(r)||N(r.staticClass)&&N(r.class))){return}var a=Pr(t);var o=n._transitionClasses;if(R(o)){a=Nr(a,Rr(o))}if(a!==n._prevClass){n.setAttribute("class",a);n._prevClass=a}}var Ea={create:$a,update:$a};var Oa=/[\w).+\-_$\]]/;function Aa(e){var t=false;var n=false;var i=false;var r=false;var a=0;var o=0;var s=0;var l=0;var c,d,u,p,f;for(u=0;u<e.length;u++){d=c;c=e.charCodeAt(u);if(t){if(c===39&&d!==92){t=false}}else if(n){if(c===34&&d!==92){n=false}}else if(i){if(c===96&&d!==92){i=false}}else if(r){if(c===47&&d!==92){r=false}}else if(c===124&&e.charCodeAt(u+1)!==124&&e.charCodeAt(u-1)!==124&&!a&&!o&&!s){if(p===undefined){l=u+1;p=e.slice(0,u).trim()}else{v()}}else{switch(c){case 34:n=true;break;case 39:t=true;break;case 96:i=true;break;case 40:s++;break;case 41:s--;break;case 91:o++;break;case 93:o--;break;case 123:a++;break;case 125:a--;break}if(c===47){var h=u-1;var m=void 0;for(;h>=0;h--){m=e.charAt(h);if(m!==" "){break}}if(!m||!Oa.test(m)){r=true}}}}if(p===undefined){p=e.slice(0,u).trim()}else if(l!==0){v()}function v(){(f||(f=[])).push(e.slice(l,u).trim());l=u+1}if(f){for(u=0;u<f.length;u++){p=Pa(p,f[u])}}return p}function Pa(e,t){var n=t.indexOf("(");if(n<0){return'_f("'+t+'")('+e+")"}else{var i=t.slice(0,n);var r=t.slice(n+1);return'_f("'+i+'")('+e+(r!==")"?","+r:r)}}function Ma(e,t){console.error("[Vue compiler]: "+e)}function Ia(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Na(e,t,n,i,r){(e.props||(e.props=[])).push(Ua({name:t,value:n,dynamic:r},i));e.plain=false}function Ra(e,t,n,i,r){var a=r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[]);a.push(Ua({name:t,value:n,dynamic:r},i));e.plain=false}function Fa(e,t,n,i){e.attrsMap[t]=n;e.attrsList.push(Ua({name:t,value:n},i))}function La(e,t,n,i,r,a,o,s){(e.directives||(e.directives=[])).push(Ua({name:t,rawName:n,value:i,arg:r,isDynamicArg:a,modifiers:o},s));e.plain=false}function ja(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Ha(e,t,n,i,r,a,o,s){i=i||m;if(a&&i.prevent&&i.passive){a("passive and prevent can't be used together. "+"Passive handler can't prevent default event.",o)}if(i.right){if(s){t="("+t+")==='click'?'contextmenu':("+t+")"}else if(t==="click"){t="contextmenu";delete i.right}}else if(i.middle){if(s){t="("+t+")==='click'?'mouseup':("+t+")"}else if(t==="click"){t="mouseup"}}if(i.capture){delete i.capture;t=ja("!",t,s)}if(i.once){delete i.once;t=ja("~",t,s)}if(i.passive){delete i.passive;t=ja("&",t,s)}var l;if(i.native){delete i.native;l=e.nativeEvents||(e.nativeEvents={})}else{l=e.events||(e.events={})}var c=Ua({value:n.trim(),dynamic:s},o);if(i!==m){c.modifiers=i}var d=l[t];if(Array.isArray(d)){r?d.unshift(c):d.push(c)}else if(d){l[t]=r?[c,d]:[d,c]}else{l[t]=c}e.plain=false}function qa(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function Ba(e,t,n){var i=za(e,":"+t)||za(e,"v-bind:"+t);if(i!=null){return Aa(i)}else if(n!==false){var r=za(e,t);if(r!=null){return JSON.stringify(r)}}}function za(e,t,n){var i;if((i=e.attrsMap[t])!=null){var r=e.attrsList;for(var a=0,o=r.length;a<o;a++){if(r[a].name===t){r.splice(a,1);break}}}if(n){delete e.attrsMap[t]}return i}function Ya(e,t){var n=e.attrsList;for(var i=0,r=n.length;i<r;i++){var a=n[i];if(t.test(a.name)){n.splice(i,1);return a}}}function Ua(e,t){if(t){if(t.start!=null){e.start=t.start}if(t.end!=null){e.end=t.end}}return e}function Wa(e,t,n){var i=n||{};var r=i.number;var a=i.trim;var o="$$v";var s=o;if(a){s="(typeof "+o+" === 'string'"+"? "+o+".trim()"+": "+o+")"}if(r){s="_n("+s+")"}var l=Va(t,s);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ("+o+") {"+l+"}"}}function Va(e,t){var n=eo(e);if(n.key===null){return e+"="+t}else{return"$set("+n.exp+", "+n.key+", "+t+")"}}var Ja,Ga,Ka,Xa,Qa,Za;function eo(e){e=e.trim();Ja=e.length;if(e.indexOf("[")<0||e.lastIndexOf("]")<Ja-1){Xa=e.lastIndexOf(".");if(Xa>-1){return{exp:e.slice(0,Xa),key:'"'+e.slice(Xa+1)+'"'}}else{return{exp:e,key:null}}}Ga=e;Xa=Qa=Za=0;while(!no()){Ka=to();if(io(Ka)){ao(Ka)}else if(Ka===91){ro(Ka)}}return{exp:e.slice(0,Qa),key:e.slice(Qa+1,Za)}}function to(){return Ga.charCodeAt(++Xa)}function no(){return Xa>=Ja}function io(e){return e===34||e===39}function ro(e){var t=1;Qa=Xa;while(!no()){e=to();if(io(e)){ao(e);continue}if(e===91){t++}if(e===93){t--}if(t===0){Za=Xa;break}}}function ao(e){var t=e;while(!no()){e=to();if(e===t){break}}}var oo;var so="__r";var lo="__c";function co(e,t,n){oo=n;var i=t.value;var r=t.modifiers;var a=e.tag;var o=e.attrsMap.type;{if(a==="input"&&o==="file"){oo("<"+e.tag+' v-model="'+i+'" type="file">:\n'+"File inputs are read only. Use a v-on:change listener instead.",e.rawAttrsMap["v-model"])}}if(e.component){Wa(e,i,r);return false}else if(a==="select"){fo(e,i,r)}else if(a==="input"&&o==="checkbox"){uo(e,i,r)}else if(a==="input"&&o==="radio"){po(e,i,r)}else if(a==="input"||a==="textarea"){ho(e,i,r)}else if(!U.isReservedTag(a)){Wa(e,i,r);return false}else{oo("<"+e.tag+' v-model="'+i+'">: '+"v-model is not supported on this element type. "+"If you are working with contenteditable, it's recommended to "+"wrap a library dedicated for that purpose inside a custom component.",e.rawAttrsMap["v-model"])}return true}function uo(e,t,n){var i=n&&n.number;var r=Ba(e,"value")||"null";var a=Ba(e,"true-value")||"true";var o=Ba(e,"false-value")||"false";Na(e,"checked","Array.isArray("+t+")"+"?_i("+t+","+r+")>-1"+(a==="true"?":("+t+")":":_q("+t+","+a+")"));Ha(e,"change","var $$a="+t+","+"$$el=$event.target,"+"$$c=$$el.checked?("+a+"):("+o+");"+"if(Array.isArray($$a)){"+"var $$v="+(i?"_n("+r+")":r)+","+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&("+Va(t,"$$a.concat([$$v])")+")}"+"else{$$i>-1&&("+Va(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}"+"}else{"+Va(t,"$$c")+"}",null,true)}function po(e,t,n){var i=n&&n.number;var r=Ba(e,"value")||"null";r=i?"_n("+r+")":r;Na(e,"checked","_q("+t+","+r+")");Ha(e,"change",Va(t,r),null,true)}function fo(e,t,n){var i=n&&n.number;var r="Array.prototype.filter"+".call($event.target.options,function(o){return o.selected})"+'.map(function(o){var val = "_value" in o ? o._value : o.value;'+"return "+(i?"_n(val)":"val")+"})";var a="$event.target.multiple ? $$selectedVal : $$selectedVal[0]";var o="var $$selectedVal = "+r+";";o=o+" "+Va(t,a);Ha(e,"change",o,null,true)}function ho(e,t,n){var i=e.attrsMap.type;{var r=e.attrsMap["v-bind:value"]||e.attrsMap[":value"];var a=e.attrsMap["v-bind:type"]||e.attrsMap[":type"];if(r&&!a){var o=e.attrsMap["v-bind:value"]?"v-bind:value":":value";oo(o+'="'+r+'" conflicts with v-model on the same element '+"because the latter already expands to a value binding internally",e.rawAttrsMap[o])}}var s=n||{};var l=s.lazy;var c=s.number;var d=s.trim;var u=!l&&i!=="range";var p=l?"change":i==="range"?so:"input";var f="$event.target.value";if(d){f="$event.target.value.trim()"}if(c){f="_n("+f+")"}var h=Va(t,f);if(u){h="if($event.target.composing)return;"+h}Na(e,"value","("+t+")");Ha(e,p,h,null,true);if(d||c){Ha(e,"blur","$forceUpdate()")}}function mo(e){if(R(e[so])){var t=ee?"change":"input";e[t]=[].concat(e[so],e[t]||[]);delete e[so]}if(R(e[lo])){e.change=[].concat(e[lo],e.change||[]);delete e[lo]}}var vo;function go(n,i,r){var a=vo;return function e(){var t=i.apply(null,arguments);if(t!==null){bo(n,e,r,a)}}}var _o=$t&&!(se&&Number(se[1])<=53);function yo(e,t,n,i){if(_o){var r=Oi;var a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document){return a.apply(this,arguments)}}}vo.addEventListener(e,t,ce?{capture:n,passive:i}:n)}function bo(e,t,n,i){(i||vo).removeEventListener(e,t._wrapper||t,n)}function wo(e,t){if(N(e.data.on)&&N(t.data.on)){return}var n=t.data.on||{};var i=e.data.on||{};vo=t.elm;mo(n);en(n,i,yo,bo,go,t.context);vo=undefined}var Co={create:wo,update:wo};var xo;function ko(e,t){if(N(e.data.domProps)&&N(t.data.domProps)){return}var n,i;var r=t.elm;var a=e.data.domProps||{};var o=t.data.domProps||{};if(R(o.__ob__)){o=t.data.domProps=x({},o)}for(n in a){if(!(n in o)){r[n]=""}}for(n in o){i=o[n];if(n==="textContent"||n==="innerHTML"){if(t.children){t.children.length=0}if(i===a[n]){continue}if(r.childNodes.length===1){r.removeChild(r.childNodes[0])}}if(n==="value"&&r.tagName!=="PROGRESS"){r._value=i;var s=N(i)?"":String(i);if(So(r,s)){r.value=s}}else if(n==="innerHTML"&&qr(r.tagName)&&N(r.innerHTML)){xo=xo||document.createElement("div");xo.innerHTML="<svg>"+i+"</svg>";var l=xo.firstChild;while(r.firstChild){r.removeChild(r.firstChild)}while(l.firstChild){r.appendChild(l.firstChild)}}else if(i!==a[n]){try{r[n]=i}catch(e){}}}}function So(e,t){return!e.composing&&(e.tagName==="OPTION"||Do(e,t)||To(e,t))}function Do(e,t){var n=true;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function To(e,t){var n=e.value;var i=e._vModifiers;if(R(i)){if(i.number){return q(n)!==q(t)}if(i.trim){return n.trim()!==t.trim()}}return n!==t}var $o={create:ko,update:ko};var Eo=e(function(e){var n={};var t=/;(?![^(]*\))/g;var i=/:(.+)/;e.split(t).forEach(function(e){if(e){var t=e.split(i);t.length>1&&(n[t[0].trim()]=t[1].trim())}});return n});function Oo(e){var t=Ao(e.style);return e.staticStyle?x(e.staticStyle,t):t}function Ao(e){if(Array.isArray(e)){return k(e)}if(typeof e==="string"){return Eo(e)}return e}function Po(e,t){var n={};var i;if(t){var r=e;while(r.componentInstance){r=r.componentInstance._vnode;if(r&&r.data&&(i=Oo(r.data))){x(n,i)}}}if(i=Oo(e.data)){x(n,i)}var a=e;while(a=a.parent){if(a.data&&(i=Oo(a.data))){x(n,i)}}return n}var Mo=/^--/;var Io=/\s*!important$/;var No=function(e,t,n){if(Mo.test(t)){e.style.setProperty(t,n)}else if(Io.test(n)){e.style.setProperty(_(t),n.replace(Io,""),"important")}else{var i=Lo(t);if(Array.isArray(n)){for(var r=0,a=n.length;r<a;r++){e.style[i]=n[r]}}else{e.style[i]=n}}};var Ro=["Webkit","Moz","ms"];var Fo;var Lo=e(function(e){Fo=Fo||document.createElement("div").style;e=h(e);if(e!=="filter"&&e in Fo){return e}var t=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0;n<Ro.length;n++){var i=Ro[n]+t;if(i in Fo){return i}}});function jo(e,t){var n=t.data;var i=e.data;if(N(n.staticStyle)&&N(n.style)&&N(i.staticStyle)&&N(i.style)){return}var r,a;var o=t.elm;var s=i.staticStyle;var l=i.normalizedStyle||i.style||{};var c=s||l;var d=Ao(t.data.style)||{};t.data.normalizedStyle=R(d.__ob__)?x({},d):d;var u=Po(t,true);for(a in c){if(N(u[a])){No(o,a,"")}}for(a in u){r=u[a];if(r!==c[a]){No(o,a,r==null?"":r)}}}var Ho={create:jo,update:jo};var qo=/\s+/;function Bo(t,e){if(!e||!(e=e.trim())){return}if(t.classList){if(e.indexOf(" ")>-1){e.split(qo).forEach(function(e){return t.classList.add(e)})}else{t.classList.add(e)}}else{var n=" "+(t.getAttribute("class")||"")+" ";if(n.indexOf(" "+e+" ")<0){t.setAttribute("class",(n+e).trim())}}}function zo(t,e){if(!e||!(e=e.trim())){return}if(t.classList){if(e.indexOf(" ")>-1){e.split(qo).forEach(function(e){return t.classList.remove(e)})}else{t.classList.remove(e)}if(!t.classList.length){t.removeAttribute("class")}}else{var n=" "+(t.getAttribute("class")||"")+" ";var i=" "+e+" ";while(n.indexOf(i)>=0){n=n.replace(i," ")}n=n.trim();if(n){t.setAttribute("class",n)}else{t.removeAttribute("class")}}}function Yo(e){if(!e){return}if(typeof e==="object"){var t={};if(e.css!==false){x(t,Uo(e.name||"v"))}x(t,e);return t}else if(typeof e==="string"){return Uo(e)}}var Uo=e(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}});var Wo=K&&!te;var Vo="transition";var Jo="animation";var Go="transition";var Ko="transitionend";var Xo="animation";var Qo="animationend";if(Wo){if(window.ontransitionend===undefined&&window.onwebkittransitionend!==undefined){Go="WebkitTransition";Ko="webkitTransitionEnd"}if(window.onanimationend===undefined&&window.onwebkitanimationend!==undefined){Xo="WebkitAnimation";Qo="webkitAnimationEnd"}}var Zo=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function es(e){Zo(function(){Zo(e)})}function ts(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);if(n.indexOf(t)<0){n.push(t);Bo(e,t)}}function ns(e,t){if(e._transitionClasses){f(e._transitionClasses,t)}zo(e,t)}function is(t,e,n){var i=as(t,e);var r=i.type;var a=i.timeout;var o=i.propCount;if(!r){return n()}var s=r===Vo?Ko:Qo;var l=0;var c=function(){t.removeEventListener(s,d);n()};var d=function(e){if(e.target===t){if(++l>=o){c()}}};setTimeout(function(){if(l<o){c()}},a+1);t.addEventListener(s,d)}var rs=/\b(transform|all)(,|$)/;function as(e,t){var n=window.getComputedStyle(e);var i=(n[Go+"Delay"]||"").split(", ");var r=(n[Go+"Duration"]||"").split(", ");var a=os(i,r);var o=(n[Xo+"Delay"]||"").split(", ");var s=(n[Xo+"Duration"]||"").split(", ");var l=os(o,s);var c;var d=0;var u=0;if(t===Vo){if(a>0){c=Vo;d=a;u=r.length}}else if(t===Jo){if(l>0){c=Jo;d=l;u=s.length}}else{d=Math.max(a,l);c=d>0?a>l?Vo:Jo:null;u=c?c===Vo?r.length:s.length:0}var p=c===Vo&&rs.test(n[Go+"Property"]);return{type:c,timeout:d,propCount:u,hasTransform:p}}function os(n,e){while(n.length<e.length){n=n.concat(n)}return Math.max.apply(null,e.map(function(e,t){return ss(e)+ss(n[t])}))}function ss(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ls(n,e){var i=n.elm;if(R(i._leaveCb)){i._leaveCb.cancelled=true;i._leaveCb()}var t=Yo(n.data.transition);if(N(t)){return}if(R(i._enterCb)||i.nodeType!==1){return}var r=t.css;var a=t.type;var o=t.enterClass;var s=t.enterToClass;var l=t.enterActiveClass;var c=t.appearClass;var d=t.appearToClass;var u=t.appearActiveClass;var p=t.beforeEnter;var f=t.enter;var h=t.afterEnter;var m=t.enterCancelled;var v=t.beforeAppear;var g=t.appear;var _=t.afterAppear;var y=t.appearCancelled;var b=t.duration;var w=di;var C=di.$vnode;while(C&&C.parent){w=C.context;C=C.parent}var x=!w._isMounted||!n.isRootInsert;if(x&&!g&&g!==""){return}var k=x&&c?c:o;var S=x&&u?u:l;var D=x&&d?d:s;var T=x?v||p:p;var $=x?typeof g==="function"?g:f:f;var E=x?_||h:h;var O=x?y||m:m;var A=q(j(b)?b.enter:b);if(A!=null){ds(A,"enter",n)}var P=r!==false&&!te;var M=ps($);var I=i._enterCb=z(function(){if(P){ns(i,D);ns(i,S)}if(I.cancelled){if(P){ns(i,k)}O&&O(i)}else{E&&E(i)}i._enterCb=null});if(!n.data.show){tn(n,"insert",function(){var e=i.parentNode;var t=e&&e._pending&&e._pending[n.key];if(t&&t.tag===n.tag&&t.elm._leaveCb){t.elm._leaveCb()}$&&$(i,I)})}T&&T(i);if(P){ts(i,k);ts(i,S);es(function(){ns(i,k);if(!I.cancelled){ts(i,D);if(!M){if(us(A)){setTimeout(I,A)}else{is(i,a,I)}}}})}if(n.data.show){e&&e();$&&$(i,I)}if(!P&&!M){I()}}function cs(e,t){var n=e.elm;if(R(n._enterCb)){n._enterCb.cancelled=true;n._enterCb()}var i=Yo(e.data.transition);if(N(i)||n.nodeType!==1){return t()}if(R(n._leaveCb)){return}var r=i.css;var a=i.type;var o=i.leaveClass;var s=i.leaveToClass;var l=i.leaveActiveClass;var c=i.beforeLeave;var d=i.leave;var u=i.afterLeave;var p=i.leaveCancelled;var f=i.delayLeave;var h=i.duration;var m=r!==false&&!te;var v=ps(d);var g=q(j(h)?h.leave:h);if(R(g)){ds(g,"leave",e)}var _=n._leaveCb=z(function(){if(n.parentNode&&n.parentNode._pending){n.parentNode._pending[e.key]=null}if(m){ns(n,s);ns(n,l)}if(_.cancelled){if(m){ns(n,o)}p&&p(n)}else{t();u&&u(n)}n._leaveCb=null});if(f){f(y)}else{y()}function y(){if(_.cancelled){return}if(!e.data.show&&n.parentNode){(n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e}c&&c(n);if(m){ts(n,o);ts(n,l);es(function(){ns(n,o);if(!_.cancelled){ts(n,s);if(!v){if(us(g)){setTimeout(_,g)}else{is(n,a,_)}}}})}d&&d(n,_);if(!m&&!v){_()}}}function ds(e,t,n){if(typeof e!=="number"){ge("<transition> explicit "+t+" duration is not a valid number - "+"got "+JSON.stringify(e)+".",n.context)}else if(isNaN(e)){ge("<transition> explicit "+t+" duration is NaN - "+"the duration expression might be incorrect.",n.context)}}function us(e){return typeof e==="number"&&!isNaN(e)}function ps(e){if(N(e)){return false}var t=e.fns;if(R(t)){return ps(Array.isArray(t)?t[0]:t)}else{return(e._length||e.length)>1}}function fs(e,t){if(t.data.show!==true){ls(t)}}var hs=K?{create:fs,activate:fs,remove:function e(t,n){if(t.data.show!==true){cs(t,n)}else{n()}}}:{};var ms=[Ta,Ea,Co,$o,Ho,hs];var vs=ms.concat(xa);var gs=ma({nodeOps:sa,modules:vs});if(te){document.addEventListener("selectionchange",function(){var e=document.activeElement;if(e&&e.vmodel){Ss(e,"input")}})}var _s={inserted:function e(t,n,i,r){if(i.tag==="select"){if(r.elm&&!r.elm._vOptions){tn(i,"postpatch",function(){_s.componentUpdated(t,n,i)})}else{ys(t,n,i.context)}t._vOptions=[].map.call(t.options,Cs)}else if(i.tag==="textarea"||Vr(t.type)){t._vModifiers=n.modifiers;if(!n.modifiers.lazy){t.addEventListener("compositionstart",xs);t.addEventListener("compositionend",ks);t.addEventListener("change",ks);if(te){t.vmodel=true}}}},componentUpdated:function e(t,n,i){if(i.tag==="select"){ys(t,n,i.context);var r=t._vOptions;var a=t._vOptions=[].map.call(t.options,Cs);if(a.some(function(e,t){return!E(e,r[t])})){var o=t.multiple?n.value.some(function(e){return ws(e,a)}):n.value!==n.oldValue&&ws(n.value,a);if(o){Ss(t,"change")}}}}};function ys(e,t,n){bs(e,t,n);if(ee||ne){setTimeout(function(){bs(e,t,n)},0)}}function bs(e,t,n){var i=t.value;var r=e.multiple;if(r&&!Array.isArray(i)){ge('<select multiple v-model="'+t.expression+'"> '+"expects an Array value for its binding, but got "+Object.prototype.toString.call(i).slice(8,-1),n);return}var a,o;for(var s=0,l=e.options.length;s<l;s++){o=e.options[s];if(r){a=O(i,Cs(o))>-1;if(o.selected!==a){o.selected=a}}else{if(E(Cs(o),i)){if(e.selectedIndex!==s){e.selectedIndex=s}return}}}if(!r){e.selectedIndex=-1}}function ws(t,e){return e.every(function(e){return!E(e,t)})}function Cs(e){return"_value"in e?e._value:e.value}function xs(e){e.target.composing=true}function ks(e){if(!e.target.composing){return}e.target.composing=false;Ss(e.target,"input")}function Ss(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,true,true);e.dispatchEvent(n)}function Ds(e){return e.componentInstance&&(!e.data||!e.data.transition)?Ds(e.componentInstance._vnode):e}var Ts={bind:function e(t,n,i){var r=n.value;i=Ds(i);var a=i.data&&i.data.transition;var o=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;if(r&&a){i.data.show=true;ls(i,function(){t.style.display=o})}else{t.style.display=r?o:"none"}},update:function e(t,n,i){var r=n.value;var a=n.oldValue;if(!r===!a){return}i=Ds(i);var o=i.data&&i.data.transition;if(o){i.data.show=true;if(r){ls(i,function(){t.style.display=t.__vOriginalDisplay})}else{cs(i,function(){t.style.display="none"})}}else{t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function e(t,n,i,r,a){if(!a){t.style.display=t.__vOriginalDisplay}}};var $s={model:_s,show:Ts};var Es={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Os(e){var t=e&&e.componentOptions;if(t&&t.Ctor.options.abstract){return Os(ni(t.children))}else{return e}}function As(e){var t={};var n=e.$options;for(var i in n.propsData){t[i]=e[i]}var r=n._parentListeners;for(var a in r){t[h(a)]=r[a]}return t}function Ps(e,t){if(/\d-keep-alive$/.test(t.tag)){return e("keep-alive",{props:t.componentOptions.propsData})}}function Ms(e){while(e=e.parent){if(e.data.transition){return true}}}function Is(e,t){return t.key===e.key&&t.tag===e.tag}var Ns=function(e){return e.tag||hn(e)};var Rs=function(e){return e.name==="show"};var Fs={name:"transition",props:Es,abstract:true,render:function e(t){var n=this;var i=this.$slots.default;if(!i){return}i=i.filter(Ns);if(!i.length){return}if(i.length>1){ge("<transition> can only be used on a single element. Use "+"<transition-group> for lists.",this.$parent)}var r=this.mode;if(r&&r!=="in-out"&&r!=="out-in"){ge("invalid <transition> mode: "+r,this.$parent)}var a=i[0];if(Ms(this.$vnode)){return a}var o=Os(a);if(!o){return a}if(this._leaving){return Ps(t,a)}var s="__transition-"+this._uid+"-";o.key=o.key==null?o.isComment?s+"comment":s+o.tag:L(o.key)?String(o.key).indexOf(s)===0?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=As(this);var c=this._vnode;var d=Os(c);if(o.data.directives&&o.data.directives.some(Rs)){o.data.show=true}if(d&&d.data&&!Is(o,d)&&!hn(d)&&!(d.componentInstance&&d.componentInstance._vnode.isComment)){var u=d.data.transition=x({},l);if(r==="out-in"){this._leaving=true;tn(u,"afterLeave",function(){n._leaving=false;n.$forceUpdate()});return Ps(t,a)}else if(r==="in-out"){if(hn(o)){return c}var p;var f=function(){p()};tn(l,"afterEnter",f);tn(l,"enterCancelled",f);tn(u,"delayLeave",function(e){p=e})}}return a}};var Ls=x({tag:String,moveClass:String},Es);delete Ls.mode;var js={props:Ls,beforeMount:function e(){var i=this;var r=this._update;this._update=function(e,t){var n=pi(i);i.__patch__(i._vnode,i.kept,false,true);i._vnode=i.kept;n();r.call(i,e,t)}},render:function e(t){var n=this.tag||this.$vnode.data.tag||"span";var i=Object.create(null);var r=this.prevChildren=this.children;var a=this.$slots.default||[];var o=this.children=[];var s=As(this);for(var l=0;l<a.length;l++){var c=a[l];if(c.tag){if(c.key!=null&&String(c.key).indexOf("__vlist")!==0){o.push(c);i[c.key]=c;(c.data||(c.data={})).transition=s}else{var d=c.componentOptions;var u=d?d.Ctor.options.name||d.tag||"":c.tag;ge("<transition-group> children must be keyed: <"+u+">")}}}if(r){var p=[];var f=[];for(var h=0;h<r.length;h++){var m=r[h];m.data.transition=s;m.data.pos=m.elm.getBoundingClientRect();if(i[m.key]){p.push(m)}else{f.push(m)}}this.kept=t(n,null,p);this.removed=f}return t(n,null,o)},updated:function e(){var t=this.prevChildren;var i=this.moveClass||(this.name||"v")+"-move";if(!t.length||!this.hasMove(t[0].elm,i)){return}t.forEach(Hs);t.forEach(qs);t.forEach(Bs);this._reflow=document.body.offsetHeight;t.forEach(function(e){if(e.data.moved){var n=e.elm;var t=n.style;ts(n,i);t.transform=t.WebkitTransform=t.transitionDuration="";n.addEventListener(Ko,n._moveCb=function e(t){if(t&&t.target!==n){return}if(!t||/transform$/.test(t.propertyName)){n.removeEventListener(Ko,e);n._moveCb=null;ns(n,i)}})}})},methods:{hasMove:function e(t,n){if(!Wo){return false}if(this._hasMove){return this._hasMove}var i=t.cloneNode();if(t._transitionClasses){t._transitionClasses.forEach(function(e){zo(i,e)})}Bo(i,n);i.style.display="none";this.$el.appendChild(i);var r=as(i);this.$el.removeChild(i);return this._hasMove=r.hasTransform}}};function Hs(e){if(e.elm._moveCb){e.elm._moveCb()}if(e.elm._enterCb){e.elm._enterCb()}}function qs(e){e.data.newPos=e.elm.getBoundingClientRect()}function Bs(e){var t=e.data.pos;var n=e.data.newPos;var i=t.left-n.left;var r=t.top-n.top;if(i||r){e.data.moved=true;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+i+"px,"+r+"px)";a.transitionDuration="0s"}}var zs={Transition:Fs,TransitionGroup:js};or.config.mustUseProp=xr;or.config.isReservedTag=zr;or.config.isReservedAttr=wr;or.config.getTagNamespace=Yr;or.config.isUnknownElement=Wr;x(or.options.directives,$s);x(or.options.components,zs);or.prototype.__patch__=K?gs:S;or.prototype.$mount=function(e,t){e=e&&K?Jr(e):undefined;return mi(this,e,t)};if(K){setTimeout(function(){if(U.devtools){if(fe){fe.emit("init",or)}else{console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\n"+"https://github.com/vuejs/vue-devtools")}}if(U.productionTip!==false&&typeof console!=="undefined"){console[console.info?"info":"log"]("You are running Vue in development mode.\n"+"Make sure to turn on production mode when deploying for production.\n"+"See more tips at https://vuejs.org/guide/deployment.html")}},0)}var Ys=/\{\{((?:.|\r?\n)+?)\}\}/g;var Us=/[-.*+?^${}()|[\]\/\\]/g;var Ws=e(function(e){var t=e[0].replace(Us,"\\$&");var n=e[1].replace(Us,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});function Vs(e,t){var n=t?Ws(t):Ys;if(!n.test(e)){return}var i=[];var r=[];var a=n.lastIndex=0;var o,s,l;while(o=n.exec(e)){s=o.index;if(s>a){r.push(l=e.slice(a,s));i.push(JSON.stringify(l))}var c=Aa(o[1].trim());i.push("_s("+c+")");r.push({"@binding":c});a=s+o[0].length}if(a<e.length){r.push(l=e.slice(a));i.push(JSON.stringify(l))}return{expression:i.join("+"),tokens:r}}function Js(e,t){var n=t.warn||Ma;var i=za(e,"class");if(i){var r=Vs(i,t.delimiters);if(r){n('class="'+i+'": '+"Interpolation inside attributes has been removed. "+"Use v-bind or the colon shorthand instead. For example, "+'instead of <div class="{{ val }}">, use <div :class="val">.',e.rawAttrsMap["class"])}}if(i){e.staticClass=JSON.stringify(i)}var a=Ba(e,"class",false);if(a){e.classBinding=a}}function Gs(e){var t="";if(e.staticClass){t+="staticClass:"+e.staticClass+","}if(e.classBinding){t+="class:"+e.classBinding+","}return t}var Ks={staticKeys:["staticClass"],transformNode:Js,genData:Gs};function Xs(e,t){var n=t.warn||Ma;var i=za(e,"style");if(i){{var r=Vs(i,t.delimiters);if(r){n('style="'+i+'": '+"Interpolation inside attributes has been removed. "+"Use v-bind or the colon shorthand instead. For example, "+'instead of <div style="{{ val }}">, use <div :style="val">.',e.rawAttrsMap["style"])}}e.staticStyle=JSON.stringify(Eo(i))}var a=Ba(e,"style",false);if(a){e.styleBinding=a}}function Qs(e){var t="";if(e.staticStyle){t+="staticStyle:"+e.staticStyle+","}if(e.styleBinding){t+="style:("+e.styleBinding+"),"}return t}var Zs={staticKeys:["staticStyle"],transformNode:Xs,genData:Qs};var el;var tl={decode:function e(t){el=el||document.createElement("div");el.innerHTML=t;return el.textContent}};var nl=B("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,"+"link,meta,param,source,track,wbr");var il=B("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source");var rl=B("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,"+"details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,"+"h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,"+"optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,"+"title,tr,track");var al=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;var ol=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;var sl="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+M.source+"]*";var ll="((?:"+sl+"\\:)?"+sl+")";var cl=new RegExp("^<"+ll);var dl=/^\s*(\/?)>/;var ul=new RegExp("^<\\/"+ll+"[^>]*>");var pl=/^<!DOCTYPE [^>]+>/i;var fl=/^<!\--/;var hl=/^<!\[/;var ml=B("script,style,textarea",true);var vl={};var gl={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"};var _l=/&(?:lt|gt|quot|amp|#39);/g;var yl=/&(?:lt|gt|quot|amp|#39|#10|#9);/g;var bl=B("pre,textarea",true);var wl=function(e,t){return e&&bl(e)&&t[0]==="\n"};function Cl(e,t){var n=t?yl:_l;return e.replace(n,function(e){return gl[e]})}function xl(r,d){var u=[];var p=d.expectHTML;var f=d.isUnaryTag||T;var h=d.canBeLeftOpenTag||T;var o=0;var e,m;while(r){e=r;if(!m||!ml(m)){var t=r.indexOf("<");if(t===0){if(fl.test(r)){var n=r.indexOf("--\x3e");if(n>=0){if(d.shouldKeepComment){d.comment(r.substring(4,n),o,o+n+3)}x(n+3);continue}}if(hl.test(r)){var i=r.indexOf("]>");if(i>=0){x(i+2);continue}}var a=r.match(pl);if(a){x(a[0].length);continue}var s=r.match(ul);if(s){var l=o;x(s[0].length);D(s[1],l,o);continue}var c=k();if(c){S(c);if(wl(c.tagName,r)){x(1)}continue}}var v=void 0,g=void 0,_=void 0;if(t>=0){g=r.slice(t);while(!ul.test(g)&&!cl.test(g)&&!fl.test(g)&&!hl.test(g)){_=g.indexOf("<",1);if(_<0){break}t+=_;g=r.slice(t)}v=r.substring(0,t)}if(t<0){v=r}if(v){x(v.length)}if(d.chars&&v){d.chars(v,o-v.length,o)}}else{var y=0;var b=m.toLowerCase();var w=vl[b]||(vl[b]=new RegExp("([\\s\\S]*?)(</"+b+"[^>]*>)","i"));var C=r.replace(w,function(e,t,n){y=n.length;if(!ml(b)&&b!=="noscript"){t=t.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")}if(wl(b,t)){t=t.slice(1)}if(d.chars){d.chars(t)}return""});o+=r.length-C.length;r=C;D(b,o-y,o)}if(r===e){d.chars&&d.chars(r);if(!u.length&&d.warn){d.warn('Mal-formatted tag at end of template: "'+r+'"',{start:o+r.length})}break}}D();function x(e){o+=e;r=r.substring(e)}function k(){var e=r.match(cl);if(e){var t={tagName:e[1],attrs:[],start:o};x(e[0].length);var n,i;while(!(n=r.match(dl))&&(i=r.match(ol)||r.match(al))){i.start=o;x(i[0].length);i.end=o;t.attrs.push(i)}if(n){t.unarySlash=n[1];x(n[0].length);t.end=o;return t}}}function S(e){var t=e.tagName;var n=e.unarySlash;if(p){if(m==="p"&&rl(t)){D(m)}if(h(t)&&m===t){D(t)}}var i=f(t)||!!n;var r=e.attrs.length;var a=new Array(r);for(var o=0;o<r;o++){var s=e.attrs[o];var l=s[3]||s[4]||s[5]||"";var c=t==="a"&&s[1]==="href"?d.shouldDecodeNewlinesForHref:d.shouldDecodeNewlines;a[o]={name:s[1],value:Cl(l,c)};if(d.outputSourceRange){a[o].start=s.start+s[0].match(/^\s*/).length;a[o].end=s.end}}if(!i){u.push({tag:t,lowerCasedTag:t.toLowerCase(),attrs:a,start:e.start,end:e.end});m=t}if(d.start){d.start(t,a,i,e.start,e.end)}}function D(e,t,n){var i,r;if(t==null){t=o}if(n==null){n=o}if(e){r=e.toLowerCase();for(i=u.length-1;i>=0;i--){if(u[i].lowerCasedTag===r){break}}}else{i=0}if(i>=0){for(var a=u.length-1;a>=i;a--){if(a>i||!e&&d.warn){d.warn("tag <"+u[a].tag+"> has no matching end tag.",{start:u[a].start,end:u[a].end})}if(d.end){d.end(u[a].tag,t,n)}}u.length=i;m=i&&u[i-1].tag}else if(r==="br"){if(d.start){d.start(e,[],true,t,n)}}else if(r==="p"){if(d.start){d.start(e,[],false,t,n)}if(d.end){d.end(e,t,n)}}}}var kl=/^@|^v-on:/;var Sl=/^v-|^@|^:|^#/;var Dl=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;var Tl=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/;var $l=/^\(|\)$/g;var El=/^\[.*\]$/;var Ol=/:(.*)$/;var Al=/^:|^\.|^v-bind:/;var Pl=/\.[^.\]]+(?=[^\]]*$)/g;var Ml=/^v-slot(:|$)|^#/;var Il=/[\r\n]/;var Nl=/[ \f\t\r\n]+/g;var Rl=/[\s"'<>\/=]/;var Fl=e(tl.decode);var Ll="_empty_";var jl;var Hl;var ql;var Bl;var zl;var Yl;var Ul;var Wl;var Vl;function Jl(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:mc(t),rawAttrsMap:{},parent:n,children:[]}}function Gl(s,c){jl=c.warn||Ma;Yl=c.isPreTag||T;Ul=c.mustUseProp||T;Wl=c.getTagNamespace||T;var t=c.isReservedTag||T;Vl=function(e){return!!(e.component||e.attrsMap[":is"]||e.attrsMap["v-bind:is"]||!(e.attrsMap.is?t(e.attrsMap.is):t(e.tag)))};ql=Ia(c.modules,"transformNode");Bl=Ia(c.modules,"preTransformNode");zl=Ia(c.modules,"postTransformNode");Hl=c.delimiters;var d=[];var l=c.preserveWhitespace!==false;var u=c.whitespace;var p;var f;var h=false;var m=false;var n=false;function v(e,t){if(!n){n=true;jl(e,t)}}function g(e){i(e);if(!h&&!e.processed){e=Ql(e,c)}if(!d.length&&e!==p){if(p.if&&(e.elseif||e.else)){{_(e)}oc(p,{exp:e.elseif,block:e})}else{v("Component template should contain exactly one root element. "+"If you are using v-if on multiple elements, "+"use v-else-if to chain them instead.",{start:e.start})}}if(f&&!e.forbidden){if(e.elseif||e.else){rc(e,f)}else{if(e.slotScope){var t=e.slotTarget||'"default"';(f.scopedSlots||(f.scopedSlots={}))[t]=e}f.children.push(e);e.parent=f}}e.children=e.children.filter(function(e){return!e.slotScope});i(e);if(e.pre){h=false}if(Yl(e.tag)){m=false}for(var n=0;n<zl.length;n++){zl[n](e,c)}}function i(e){if(!m){var t;while((t=e.children[e.children.length-1])&&t.type===3&&t.text===" "){e.children.pop()}}}function _(e){if(e.tag==="slot"||e.tag==="template"){v("Cannot use <"+e.tag+"> as component root element because it may "+"contain multiple nodes.",{start:e.start})}if(e.attrsMap.hasOwnProperty("v-for")){v("Cannot use v-for on stateful component root element because "+"it renders multiple elements.",e.rawAttrsMap["v-for"])}}xl(s,{warn:jl,expectHTML:c.expectHTML,isUnaryTag:c.isUnaryTag,canBeLeftOpenTag:c.canBeLeftOpenTag,shouldDecodeNewlines:c.shouldDecodeNewlines,shouldDecodeNewlinesForHref:c.shouldDecodeNewlinesForHref,shouldKeepComment:c.comments,outputSourceRange:c.outputSourceRange,start:function e(t,n,i,r,a){var o=f&&f.ns||Wl(t);if(ee&&o==="svg"){n=bc(n)}var s=Jl(t,n,f);if(o){s.ns=o}{if(c.outputSourceRange){s.start=r;s.end=a;s.rawAttrsMap=s.attrsList.reduce(function(e,t){e[t.name]=t;return e},{})}n.forEach(function(e){if(Rl.test(e.name)){jl("Invalid dynamic argument expression: attribute names cannot contain "+"spaces, quotes, <, >, / or =.",{start:e.start+e.name.indexOf("["),end:e.start+e.name.length})}})}if(gc(s)&&!pe()){s.forbidden=true;jl("Templates should only be responsible for mapping the state to the "+"UI. Avoid placing tags with side-effects in your templates, such as "+"<"+t+">"+", as they will not be parsed.",{start:s.start})}for(var l=0;l<Bl.length;l++){s=Bl[l](s,c)||s}if(!h){Kl(s);if(s.pre){h=true}}if(Yl(s.tag)){m=true}if(h){Xl(s)}else if(!s.processed){tc(s);ic(s);sc(s)}if(!p){p=s;{_(p)}}if(!i){f=s;d.push(s)}else{g(s)}},end:function e(t,n,i){var r=d[d.length-1];d.length-=1;f=d[d.length-1];if(c.outputSourceRange){r.end=i}g(r)},chars:function e(t,n,i){if(!f){{if(t===s){v("Component template requires a root element, rather than just text.",{start:n})}else if(t=t.trim()){v('text "'+t+'" outside root element will be ignored.',{start:n})}}return}if(ee&&f.tag==="textarea"&&f.attrsMap.placeholder===t){return}var r=f.children;if(m||t.trim()){t=vc(f)?t:Fl(t)}else if(!r.length){t=""}else if(u){if(u==="condense"){t=Il.test(t)?"":" "}else{t=" "}}else{t=l?" ":""}if(t){if(!m&&u==="condense"){t=t.replace(Nl," ")}var a;var o;if(!h&&t!==" "&&(a=Vs(t,Hl))){o={type:2,expression:a.expression,tokens:a.tokens,text:t}}else if(t!==" "||!r.length||r[r.length-1].text!==" "){o={type:3,text:t}}if(o){if(c.outputSourceRange){o.start=n;o.end=i}r.push(o)}}},comment:function e(t,n,i){if(f){var r={type:3,text:t,isComment:true};if(c.outputSourceRange){r.start=n;r.end=i}f.children.push(r)}}});return p}function Kl(e){if(za(e,"v-pre")!=null){e.pre=true}}function Xl(e){var t=e.attrsList;var n=t.length;if(n){var i=e.attrs=new Array(n);for(var r=0;r<n;r++){i[r]={name:t[r].name,value:JSON.stringify(t[r].value)};if(t[r].start!=null){i[r].start=t[r].start;i[r].end=t[r].end}}}else if(!e.pre){e.plain=true}}function Ql(e,t){Zl(e);e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length;ec(e);lc(e);dc(e);uc(e);for(var n=0;n<ql.length;n++){e=ql[n](e,t)||e}pc(e);return e}function Zl(e){var t=Ba(e,"key");if(t){{if(e.tag==="template"){jl("<template> cannot be keyed. Place the key on real elements instead.",qa(e,"key"))}if(e.for){var n=e.iterator2||e.iterator1;var i=e.parent;if(n&&n===t&&i&&i.tag==="transition-group"){jl("Do not use v-for index as key on <transition-group> children, "+"this is the same as not using keys.",qa(e,"key"),true)}}}e.key=t}}function ec(e){var t=Ba(e,"ref");if(t){e.ref=t;e.refInFor=fc(e)}}function tc(e){var t;if(t=za(e,"v-for")){var n=nc(t);if(n){x(e,n)}else{jl("Invalid v-for expression: "+t,e.rawAttrsMap["v-for"])}}}function nc(e){var t=e.match(Dl);if(!t){return}var n={};n.for=t[2].trim();var i=t[1].trim().replace($l,"");var r=i.match(Tl);if(r){n.alias=i.replace(Tl,"").trim();n.iterator1=r[1].trim();if(r[2]){n.iterator2=r[2].trim()}}else{n.alias=i}return n}function ic(e){var t=za(e,"v-if");if(t){e.if=t;oc(e,{exp:t,block:e})}else{if(za(e,"v-else")!=null){e.else=true}var n=za(e,"v-else-if");if(n){e.elseif=n}}}function rc(e,t){var n=ac(t.children);if(n&&n.if){oc(n,{exp:e.elseif,block:e})}else{jl("v-"+(e.elseif?'else-if="'+e.elseif+'"':"else")+" "+"used on element <"+e.tag+"> without corresponding v-if.",e.rawAttrsMap[e.elseif?"v-else-if":"v-else"])}}function ac(e){var t=e.length;while(t--){if(e[t].type===1){return e[t]}else{if(e[t].text!==" "){jl('text "'+e[t].text.trim()+'" between v-if and v-else(-if) '+"will be ignored.",e[t])}e.pop()}}}function oc(e,t){if(!e.ifConditions){e.ifConditions=[]}e.ifConditions.push(t)}function sc(e){var t=za(e,"v-once");if(t!=null){e.once=true}}function lc(e){var t;if(e.tag==="template"){t=za(e,"scope");if(t){jl('the "scope" attribute for scoped slots have been deprecated and '+'replaced by "slot-scope" since 2.5. The new "slot-scope" attribute '+"can also be used on plain elements in addition to <template> to "+"denote scoped slots.",e.rawAttrsMap["scope"],true)}e.slotScope=t||za(e,"slot-scope")}else if(t=za(e,"slot-scope")){if(e.attrsMap["v-for"]){jl("Ambiguous combined usage of slot-scope and v-for on <"+e.tag+"> "+"(v-for takes higher priority). Use a wrapper <template> for the "+"scoped slot to make it clearer.",e.rawAttrsMap["slot-scope"],true)}e.slotScope=t}var n=Ba(e,"slot");if(n){e.slotTarget=n==='""'?'"default"':n;e.slotTargetDynamic=!!(e.attrsMap[":slot"]||e.attrsMap["v-bind:slot"]);if(e.tag!=="template"&&!e.slotScope){Ra(e,"slot",n,qa(e,"slot"))}}{if(e.tag==="template"){var i=Ya(e,Ml);if(i){{if(e.slotTarget||e.slotScope){jl("Unexpected mixed usage of different slot syntaxes.",e)}if(e.parent&&!Vl(e.parent)){jl("<template v-slot> can only appear at the root level inside "+"the receiving component",e)}}var r=cc(i);var a=r.name;var o=r.dynamic;e.slotTarget=a;e.slotTargetDynamic=o;e.slotScope=i.value||Ll}}else{var s=Ya(e,Ml);if(s){{if(!Vl(e)){jl("v-slot can only be used on components or <template>.",s)}if(e.slotScope||e.slotTarget){jl("Unexpected mixed usage of different slot syntaxes.",e)}if(e.scopedSlots){jl("To avoid scope ambiguity, the default slot should also use "+"<template> syntax when there are other named slots.",s)}}var l=e.scopedSlots||(e.scopedSlots={});var c=cc(s);var d=c.name;var u=c.dynamic;var p=l[d]=Jl("template",[],e);p.slotTarget=d;p.slotTargetDynamic=u;p.children=e.children.filter(function(e){if(!e.slotScope){e.parent=p;return true}});p.slotScope=s.value||Ll;e.children=[];e.plain=false}}}}function cc(e){var t=e.name.replace(Ml,"");if(!t){if(e.name[0]!=="#"){t="default"}else{jl("v-slot shorthand syntax requires a slot name.",e)}}return El.test(t)?{name:t.slice(1,-1),dynamic:true}:{name:'"'+t+'"',dynamic:false}}function dc(e){if(e.tag==="slot"){e.slotName=Ba(e,"name");if(e.key){jl("`key` does not work on <slot> because slots are abstract outlets "+"and can possibly expand into multiple elements. "+"Use the key on a wrapping element instead.",qa(e,"key"))}}}function uc(e){var t;if(t=Ba(e,"is")){e.component=t}if(za(e,"inline-template")!=null){e.inlineTemplate=true}}function pc(e){var t=e.attrsList;var n,i,r,a,o,s,l,c;for(n=0,i=t.length;n<i;n++){r=a=t[n].name;o=t[n].value;if(Sl.test(r)){e.hasBindings=true;s=hc(r.replace(Sl,""));if(s){r=r.replace(Pl,"")}if(Al.test(r)){r=r.replace(Al,"");o=Aa(o);c=El.test(r);if(c){r=r.slice(1,-1)}if(o.trim().length===0){jl('The value for a v-bind expression cannot be empty. Found in "v-bind:'+r+'"')}if(s){if(s.prop&&!c){r=h(r);if(r==="innerHtml"){r="innerHTML"}}if(s.camel&&!c){r=h(r)}if(s.sync){l=Va(o,"$event");if(!c){Ha(e,"update:"+h(r),l,null,false,jl,t[n]);if(_(r)!==h(r)){Ha(e,"update:"+_(r),l,null,false,jl,t[n])}}else{Ha(e,'"update:"+('+r+")",l,null,false,jl,t[n],true)}}}if(s&&s.prop||!e.component&&Ul(e.tag,e.attrsMap.type,r)){Na(e,r,o,t[n],c)}else{Ra(e,r,o,t[n],c)}}else if(kl.test(r)){r=r.replace(kl,"");c=El.test(r);if(c){r=r.slice(1,-1)}Ha(e,r,o,s,false,jl,t[n],c)}else{r=r.replace(Sl,"");var d=r.match(Ol);var u=d&&d[1];c=false;if(u){r=r.slice(0,-(u.length+1));if(El.test(u)){u=u.slice(1,-1);c=true}}La(e,r,a,o,u,c,s,t[n]);if(r==="model"){wc(e,o)}}}else{{var p=Vs(o,Hl);if(p){jl(r+'="'+o+'": '+"Interpolation inside attributes has been removed. "+"Use v-bind or the colon shorthand instead. For example, "+'instead of <div id="{{ val }}">, use <div :id="val">.',t[n])}}Ra(e,r,JSON.stringify(o),t[n]);if(!e.component&&r==="muted"&&Ul(e.tag,e.attrsMap.type,r)){Na(e,r,"true",t[n])}}}}function fc(e){var t=e;while(t){if(t.for!==undefined){return true}t=t.parent}return false}function hc(e){var t=e.match(Pl);if(t){var n={};t.forEach(function(e){n[e.slice(1)]=true});return n}}function mc(e){var t={};for(var n=0,i=e.length;n<i;n++){if(t[e[n].name]&&!ee&&!ne){jl("duplicate attribute: "+e[n].name,e[n])}t[e[n].name]=e[n].value}return t}function vc(e){return e.tag==="script"||e.tag==="style"}function gc(e){return e.tag==="style"||e.tag==="script"&&(!e.attrsMap.type||e.attrsMap.type==="text/javascript")}var _c=/^xmlns:NS\d+/;var yc=/^NS\d+:/;function bc(e){var t=[];for(var n=0;n<e.length;n++){var i=e[n];if(!_c.test(i.name)){i.name=i.name.replace(yc,"");t.push(i)}}return t}function wc(e,t){var n=e;while(n){if(n.for&&n.alias===t){jl("<"+e.tag+' v-model="'+t+'">: '+"You are binding v-model directly to a v-for iteration alias. "+"This will not be able to modify the v-for source array because "+"writing to the alias is like modifying a function local variable. "+"Consider using an array of objects and use v-model on an object property instead.",e.rawAttrsMap["v-model"])}n=n.parent}}function Cc(e,t){if(e.tag==="input"){var n=e.attrsMap;if(!n["v-model"]){return}var i;if(n[":type"]||n["v-bind:type"]){i=Ba(e,"type")}if(!n.type&&!i&&n["v-bind"]){i="("+n["v-bind"]+").type"}if(i){var r=za(e,"v-if",true);var a=r?"&&("+r+")":"";var o=za(e,"v-else",true)!=null;var s=za(e,"v-else-if",true);var l=xc(e);tc(l);Fa(l,"type","checkbox");Ql(l,t);l.processed=true;l.if="("+i+")==='checkbox'"+a;oc(l,{exp:l.if,block:l});var c=xc(e);za(c,"v-for",true);Fa(c,"type","radio");Ql(c,t);oc(l,{exp:"("+i+")==='radio'"+a,block:c});var d=xc(e);za(d,"v-for",true);Fa(d,":type",i);Ql(d,t);oc(l,{exp:r,block:d});if(o){l.else=true}else if(s){l.elseif=s}return l}}}function xc(e){return Jl(e.tag,e.attrsList.slice(),e.parent)}var kc={preTransformNode:Cc};var Sc=[Ks,Zs,kc];function Dc(e,t){if(t.value){Na(e,"textContent","_s("+t.value+")",t)}}function Tc(e,t){if(t.value){Na(e,"innerHTML","_s("+t.value+")",t)}}var $c={model:co,text:Dc,html:Tc};var Ec={expectHTML:true,modules:Sc,directives:$c,isPreTag:Br,isUnaryTag:nl,mustUseProp:xr,canBeLeftOpenTag:il,isReservedTag:zr,getTagNamespace:Yr,staticKeys:$(Sc)};var Oc;var Ac;var Pc=e(Ic);function Mc(e,t){if(!e){return}Oc=Pc(t.staticKeys||"");Ac=t.isReservedTag||T;Nc(e);Rc(e,false)}function Ic(e){return B("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Nc(e){e.static=Fc(e);if(e.type===1){if(!Ac(e.tag)&&e.tag!=="slot"&&e.attrsMap["inline-template"]==null){return}for(var t=0,n=e.children.length;t<n;t++){var i=e.children[t];Nc(i);if(!i.static){e.static=false}}if(e.ifConditions){for(var r=1,a=e.ifConditions.length;r<a;r++){var o=e.ifConditions[r].block;Nc(o);if(!o.static){e.static=false}}}}}function Rc(e,t){if(e.type===1){if(e.static||e.once){e.staticInFor=t}if(e.static&&e.children.length&&!(e.children.length===1&&e.children[0].type===3)){e.staticRoot=true;return}else{e.staticRoot=false}if(e.children){for(var n=0,i=e.children.length;n<i;n++){Rc(e.children[n],t||!!e.for)}}if(e.ifConditions){for(var r=1,a=e.ifConditions.length;r<a;r++){Rc(e.ifConditions[r].block,t)}}}}function Fc(e){if(e.type===2){return false}if(e.type===3){return true}return!!(e.pre||!e.hasBindings&&!e.if&&!e.for&&!a(e.tag)&&Ac(e.tag)&&!Lc(e)&&Object.keys(e).every(Oc))}function Lc(e){while(e.parent){e=e.parent;if(e.tag!=="template"){return false}if(e.for){return true}}return false}var jc=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/;var Hc=/\([^)]*?\);*$/;var qc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;var Bc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]};var zc={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};var Yc=function(e){return"if("+e+")return null;"};var Uc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Yc("$event.target !== $event.currentTarget"),ctrl:Yc("!$event.ctrlKey"),shift:Yc("!$event.shiftKey"),alt:Yc("!$event.altKey"),meta:Yc("!$event.metaKey"),left:Yc("'button' in $event && $event.button !== 0"),middle:Yc("'button' in $event && $event.button !== 1"),right:Yc("'button' in $event && $event.button !== 2")};function Wc(e,t){var n=t?"nativeOn:":"on:";var i="";var r="";for(var a in e){var o=Vc(e[a]);if(e[a]&&e[a].dynamic){r+=a+","+o+","}else{i+='"'+a+'":'+o+","}}i="{"+i.slice(0,-1)+"}";if(r){return n+"_d("+i+",["+r.slice(0,-1)+"])"}else{return n+i}}function Vc(e){if(!e){return"function(){}"}if(Array.isArray(e)){return"["+e.map(function(e){return Vc(e)}).join(",")+"]"}var t=qc.test(e.value);var n=jc.test(e.value);var i=qc.test(e.value.replace(Hc,""));if(!e.modifiers){if(t||n){return e.value}return"function($event){"+(i?"return "+e.value:e.value)+"}"}else{var r="";var a="";var o=[];for(var s in e.modifiers){if(Uc[s]){a+=Uc[s];if(Bc[s]){o.push(s)}}else if(s==="exact"){var l=e.modifiers;a+=Yc(["ctrl","shift","alt","meta"].filter(function(e){return!l[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else{o.push(s)}}if(o.length){r+=Jc(o)}if(a){r+=a}var c=t?"return "+e.value+".apply(null, arguments)":n?"return ("+e.value+").apply(null, arguments)":i?"return "+e.value:e.value;return"function($event){"+r+c+"}"}}function Jc(e){return"if(!$event.type.indexOf('key')&&"+e.map(Gc).join("&&")+")return null;"}function Gc(e){var t=parseInt(e,10);if(t){return"$event.keyCode!=="+t}var n=Bc[e];var i=zc[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+","+"$event.key,"+""+JSON.stringify(i)+")"}function Kc(e,t){if(t.modifiers){ge("v-on without argument does not support modifiers.")}e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function Xc(t,n){t.wrapData=function(e){return"_b("+e+",'"+t.tag+"',"+n.value+","+(n.modifiers&&n.modifiers.prop?"true":"false")+(n.modifiers&&n.modifiers.sync?",true":"")+")"}}var Qc={on:Kc,bind:Xc,cloak:S};var Zc=function e(t){this.options=t;this.warn=t.warn||Ma;this.transforms=Ia(t.modules,"transformCode");this.dataGenFns=Ia(t.modules,"genData");this.directives=x(x({},Qc),t.directives);var n=t.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!n(e.tag)};this.onceId=0;this.staticRenderFns=[];this.pre=false};function ed(e,t){var n=new Zc(t);var i=e?e.tag==="script"?"null":td(e,n):'_c("div")';return{render:"with(this){return "+i+"}",staticRenderFns:n.staticRenderFns}}function td(e,t){if(e.parent){e.pre=e.pre||e.parent.pre}if(e.staticRoot&&!e.staticProcessed){return nd(e,t)}else if(e.once&&!e.onceProcessed){return id(e,t)}else if(e.for&&!e.forProcessed){return od(e,t)}else if(e.if&&!e.ifProcessed){return rd(e,t)}else if(e.tag==="template"&&!e.slotTarget&&!t.pre){return hd(e,t)||"void 0"}else if(e.tag==="slot"){return bd(e,t)}else{var n;if(e.component){n=wd(e.component,e,t)}else{var i;if(!e.plain||e.pre&&t.maybeComponent(e)){i=sd(e,t)}var r=e.inlineTemplate?null:hd(e,t,true);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var a=0;a<t.transforms.length;a++){n=t.transforms[a](e,n)}return n}}function nd(e,t){e.staticProcessed=true;var n=t.pre;if(e.pre){t.pre=e.pre}t.staticRenderFns.push("with(this){return "+td(e,t)+"}");t.pre=n;return"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function id(e,t){e.onceProcessed=true;if(e.if&&!e.ifProcessed){return rd(e,t)}else if(e.staticInFor){var n="";var i=e.parent;while(i){if(i.for){n=i.key;break}i=i.parent}if(!n){t.warn("v-once can only be used inside v-for that is keyed. ",e.rawAttrsMap["v-once"]);return td(e,t)}return"_o("+td(e,t)+","+t.onceId+++","+n+")"}else{return nd(e,t)}}function rd(e,t,n,i){e.ifProcessed=true;return ad(e.ifConditions.slice(),t,n,i)}function ad(e,t,n,i){if(!e.length){return i||"_e()"}var r=e.shift();if(r.exp){return"("+r.exp+")?"+a(r.block)+":"+ad(e,t,n,i)}else{return""+a(r.block)}function a(e){return n?n(e,t):e.once?id(e,t):td(e,t)}}function od(e,t,n,i){var r=e.for;var a=e.alias;var o=e.iterator1?","+e.iterator1:"";var s=e.iterator2?","+e.iterator2:"";if(t.maybeComponent(e)&&e.tag!=="slot"&&e.tag!=="template"&&!e.key){t.warn("<"+e.tag+' v-for="'+a+" in "+r+'">: component lists rendered with '+"v-for should have explicit keys. "+"See https://vuejs.org/guide/list.html#key for more info.",e.rawAttrsMap["v-for"],true)}e.forProcessed=true;return(i||"_l")+"(("+r+"),"+"function("+a+o+s+"){"+"return "+(n||td)(e,t)+"})"}function sd(e,t){var n="{";var i=ld(e,t);if(i){n+=i+","}if(e.key){n+="key:"+e.key+","}if(e.ref){n+="ref:"+e.ref+","}if(e.refInFor){n+="refInFor:true,"}if(e.pre){n+="pre:true,"}if(e.component){n+='tag:"'+e.tag+'",'}for(var r=0;r<t.dataGenFns.length;r++){n+=t.dataGenFns[r](e)}if(e.attrs){n+="attrs:"+Cd(e.attrs)+","}if(e.props){n+="domProps:"+Cd(e.props)+","}if(e.events){n+=Wc(e.events,false)+","}if(e.nativeEvents){n+=Wc(e.nativeEvents,true)+","}if(e.slotTarget&&!e.slotScope){n+="slot:"+e.slotTarget+","}if(e.scopedSlots){n+=dd(e,e.scopedSlots,t)+","}if(e.model){n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"}if(e.inlineTemplate){var a=cd(e,t);if(a){n+=a+","}}n=n.replace(/,$/,"")+"}";if(e.dynamicAttrs){n="_b("+n+',"'+e.tag+'",'+Cd(e.dynamicAttrs)+")"}if(e.wrapData){n=e.wrapData(n)}if(e.wrapListeners){n=e.wrapListeners(n)}return n}function ld(e,t){var n=e.directives;if(!n){return}var i="directives:[";var r=false;var a,o,s,l;for(a=0,o=n.length;a<o;a++){s=n[a];l=true;var c=t.directives[s.name];if(c){l=!!c(e,s,t.warn)}if(l){r=true;i+='{name:"'+s.name+'",rawName:"'+s.rawName+'"'+(s.value?",value:("+s.value+"),expression:"+JSON.stringify(s.value):"")+(s.arg?",arg:"+(s.isDynamicArg?s.arg:'"'+s.arg+'"'):"")+(s.modifiers?",modifiers:"+JSON.stringify(s.modifiers):"")+"},"}}if(r){return i.slice(0,-1)+"]"}}function cd(e,t){var n=e.children[0];if(e.children.length!==1||n.type!==1){t.warn("Inline-template components must have exactly one child element.",{start:e.start})}if(n&&n.type===1){var i=ed(n,t.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}function dd(e,n,t){var i=e.for||Object.keys(n).some(function(e){var t=n[e];return t.slotTargetDynamic||t.if||t.for||pd(t)});var r=!!e.if;if(!i){var a=e.parent;while(a){if(a.slotScope&&a.slotScope!==Ll||a.for){i=true;break}if(a.if){r=true}a=a.parent}}var o=Object.keys(n).map(function(e){return fd(n[e],t)}).join(",");return"scopedSlots:_u(["+o+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+ud(o):"")+")"}function ud(e){var t=5381;var n=e.length;while(n){t=t*33^e.charCodeAt(--n)}return t>>>0}function pd(e){if(e.type===1){if(e.tag==="slot"){return true}return e.children.some(pd)}return false}function fd(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n){return rd(e,t,fd,"null")}if(e.for&&!e.forProcessed){return od(e,t,fd)}var i=e.slotScope===Ll?"":String(e.slotScope);var r="function("+i+"){"+"return "+(e.tag==="template"?e.if&&n?"("+e.if+")?"+(hd(e,t)||"undefined")+":undefined":hd(e,t)||"undefined":td(e,t))+"}";var a=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+a+"}"}function hd(e,t,n,i,r){var a=e.children;if(a.length){var o=a[0];if(a.length===1&&o.for&&o.tag!=="template"&&o.tag!=="slot"){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(i||td)(o,t)+s}var l=n?md(a,t.maybeComponent):0;var c=r||gd;return"["+a.map(function(e){return c(e,t)}).join(",")+"]"+(l?","+l:"")}}function md(e,t){var n=0;for(var i=0;i<e.length;i++){var r=e[i];if(r.type!==1){continue}if(vd(r)||r.ifConditions&&r.ifConditions.some(function(e){return vd(e.block)})){n=2;break}if(t(r)||r.ifConditions&&r.ifConditions.some(function(e){return t(e.block)})){n=1}}return n}function vd(e){return e.for!==undefined||e.tag==="template"||e.tag==="slot"}function gd(e,t){if(e.type===1){return td(e,t)}else if(e.type===3&&e.isComment){return yd(e)}else{return _d(e)}}function _d(e){return"_v("+(e.type===2?e.expression:xd(JSON.stringify(e.text)))+")"}function yd(e){return"_e("+JSON.stringify(e.text)+")"}function bd(e,t){var n=e.slotName||'"default"';var i=hd(e,t);var r="_t("+n+(i?",function(){return "+i+"}":"");var a=e.attrs||e.dynamicAttrs?Cd((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:h(e.name),value:e.value,dynamic:e.dynamic}})):null;var o=e.attrsMap["v-bind"];if((a||o)&&!i){r+=",null"}if(a){r+=","+a}if(o){r+=(a?"":",null")+","+o}return r+")"}function wd(e,t,n){var i=t.inlineTemplate?null:hd(t,n,true);return"_c("+e+","+sd(t,n)+(i?","+i:"")+")"}function Cd(e){var t="";var n="";for(var i=0;i<e.length;i++){var r=e[i];var a=xd(r.value);if(r.dynamic){n+=r.name+","+a+","}else{t+='"'+r.name+'":'+a+","}}t="{"+t.slice(0,-1)+"}";if(n){return"_d("+t+",["+n.slice(0,-1)+"])"}else{return t}}function xd(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}var kd=new RegExp("\\b"+("do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,"+"super,throw,while,yield,delete,export,import,return,switch,default,"+"extends,finally,continue,debugger,function,arguments").split(",").join("\\b|\\b")+"\\b");var Sd=new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var Dd=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;function Td(e,t){if(e){$d(e,t)}}function $d(e,t){if(e.type===1){for(var n in e.attrsMap){if(Sl.test(n)){var i=e.attrsMap[n];if(i){var r=e.rawAttrsMap[n];if(n==="v-for"){Od(e,'v-for="'+i+'"',t,r)}else if(n==="v-slot"||n[0]==="#"){Md(i,n+'="'+i+'"',t,r)}else if(kl.test(n)){Ed(i,n+'="'+i+'"',t,r)}else{Pd(i,n+'="'+i+'"',t,r)}}}}if(e.children){for(var a=0;a<e.children.length;a++){$d(e.children[a],t)}}}else if(e.type===2){Pd(e.expression,e.text,t,e)}}function Ed(e,t,n,i){var r=e.replace(Dd,"");var a=r.match(Sd);if(a&&r.charAt(a.index-1)!=="$"){n("avoid using JavaScript unary operator as property name: "+'"'+a[0]+'" in expression '+t.trim(),i)}Pd(e,t,n,i)}function Od(e,t,n,i){Pd(e.for||"",t,n,i);Ad(e.alias,"v-for alias",t,n,i);Ad(e.iterator1,"v-for iterator",t,n,i);Ad(e.iterator2,"v-for iterator",t,n,i)}function Ad(t,n,i,r,a){if(typeof t==="string"){try{new Function("var "+t+"=_")}catch(e){r("invalid "+n+' "'+t+'" in expression: '+i.trim(),a)}}}function Pd(t,n,i,r){try{new Function("return "+t)}catch(e){var a=t.replace(Dd,"").match(kd);if(a){i("avoid using JavaScript keyword as property name: "+'"'+a[0]+'"\n  Raw expression: '+n.trim(),r)}else{i("invalid expression: "+e.message+" in\n\n"+"    "+t+"\n\n"+"  Raw expression: "+n.trim()+"\n",r)}}}function Md(t,n,i,r){try{new Function(t,"")}catch(e){i("invalid function parameter expression: "+e.message+" in\n\n"+"    "+t+"\n\n"+"  Raw expression: "+n.trim()+"\n",r)}}var Id=2;function Nd(e,t,n){if(t===void 0)t=0;if(n===void 0)n=e.length;var i=e.split(/\r?\n/);var r=0;var a=[];for(var o=0;o<i.length;o++){r+=i[o].length+1;if(r>=t){for(var s=o-Id;s<=o+Id||n>r;s++){if(s<0||s>=i.length){continue}a.push(""+(s+1)+Rd(" ",3-String(s+1).length)+"|  "+i[s]);var l=i[s].length;if(s===o){var c=t-(r-l)+1;var d=n>r?l-c:n-t;a.push("   |  "+Rd(" ",c)+Rd("^",d))}else if(s>o){if(n>r){var u=Math.min(n-r,l);a.push("   |  "+Rd("^",u))}r+=l+1}}break}}return a.join("\n")}function Rd(e,t){var n="";if(t>0){while(true){if(t&1){n+=e}t>>>=1;if(t<=0){break}e+=e}}return n}function Fd(t,n){try{return new Function(t)}catch(e){n.push({err:e,code:t});return S}}function Ld(c){var d=Object.create(null);return function e(t,n,i){n=x({},n);var r=n.warn||ge;delete n.warn;{try{new Function("return 1")}catch(e){if(e.toString().match(/unsafe-eval|CSP/)){r("It seems you are using the standalone build of Vue.js in an "+"environment with Content Security Policy that prohibits unsafe-eval. "+"The template compiler cannot work in this environment. Consider "+"relaxing the policy to allow unsafe-eval or pre-compiling your "+"templates into render functions.")}}}var a=n.delimiters?String(n.delimiters)+t:t;if(d[a]){return d[a]}var o=c(t,n);{if(o.errors&&o.errors.length){if(n.outputSourceRange){o.errors.forEach(function(e){r("Error compiling template:\n\n"+e.msg+"\n\n"+Nd(t,e.start,e.end),i)})}else{r("Error compiling template:\n\n"+t+"\n\n"+o.errors.map(function(e){return"- "+e}).join("\n")+"\n",i)}}if(o.tips&&o.tips.length){if(n.outputSourceRange){o.tips.forEach(function(e){return _e(e.msg,i)})}else{o.tips.forEach(function(e){return _e(e,i)})}}}var s={};var l=[];s.render=Fd(o.render,l);s.staticRenderFns=o.staticRenderFns.map(function(e){return Fd(e,l)});{if((!o.errors||!o.errors.length)&&l.length){r("Failed to generate render function:\n\n"+l.map(function(e){var t=e.err;var n=e.code;return t.toString()+" in\n\n"+n+"\n"}).join("\n"),i)}}return d[a]=s}}function jd(d){return function e(c){function t(e,t){var n=Object.create(c);var r=[];var a=[];var i=function(e,t,n){(n?a:r).push(e)};if(t){if(t.outputSourceRange){var o=e.match(/^\s*/)[0].length;i=function(e,t,n){var i={msg:e};if(t){if(t.start!=null){i.start=t.start+o}if(t.end!=null){i.end=t.end+o}}(n?a:r).push(i)}}if(t.modules){n.modules=(c.modules||[]).concat(t.modules)}if(t.directives){n.directives=x(Object.create(c.directives||null),t.directives)}for(var s in t){if(s!=="modules"&&s!=="directives"){n[s]=t[s]}}}n.warn=i;var l=d(e.trim(),n);{Td(l.ast,i)}l.errors=r;l.tips=a;return l}return{compile:t,compileToFunctions:Ld(t)}}}var Hd=jd(function e(t,n){var i=Gl(t.trim(),n);if(n.optimize!==false){Mc(i,n)}var r=ed(i,n);return{ast:i,render:r.render,staticRenderFns:r.staticRenderFns}});var qd=Hd(Ec);var Bd=qd.compile;var zd=qd.compileToFunctions;var Yd;function Ud(e){Yd=Yd||document.createElement("div");Yd.innerHTML=e?'<a href="\n"/>':'<div a="\n"/>';return Yd.innerHTML.indexOf("&#10;")>0}var Wd=K?Ud(false):false;var Vd=K?Ud(true):false;var Jd=e(function(e){var t=Jr(e);return t&&t.innerHTML});var Gd=or.prototype.$mount;or.prototype.$mount=function(e,t){e=e&&Jr(e);if(e===document.body||e===document.documentElement){ge("Do not mount Vue to <html> or <body> - mount to normal elements instead.");return this}var n=this.$options;if(!n.render){var i=n.template;if(i){if(typeof i==="string"){if(i.charAt(0)==="#"){i=Jd(i);if(!i){ge("Template element not found or is empty: "+n.template,this)}}}else if(i.nodeType){i=i.innerHTML}else{{ge("invalid template option:"+i,this)}return this}}else if(e){i=Kd(e)}if(i){if(U.performance&&Lt){Lt("compile")}var r=zd(i,{outputSourceRange:"development"!=="production",shouldDecodeNewlines:Wd,shouldDecodeNewlinesForHref:Vd,delimiters:n.delimiters,comments:n.comments},this);var a=r.render;var o=r.staticRenderFns;n.render=a;n.staticRenderFns=o;if(U.performance&&Lt){Lt("compile end");jt("vue "+this._name+" compile","compile","compile end")}}}return Gd.call(this,e,t)};function Kd(e){if(e.outerHTML){return e.outerHTML}else{var t=document.createElement("div");t.appendChild(e.cloneNode(true));return t.innerHTML}}or.compile=zd;return or});function formatStateStrong(e){if(!e.id){return e.text}var t=$("<span><strong></strong></span>");t.find("strong").text(e.text);return t}$(document).delegate(".basic-ent-req-del-btn","click",function(){var e=$(this).attr("data-item-id");var t=$(this).attr("data-item-action");$.request("soloBasicUser::onDeleteEntitlementRequest",{data:{entitlement_request_id:e,item_action:t}})});$(document).delegate(".basic-solo-ent-req-edit-btn","click",function(){var e=$(this).attr("data-item-id");var t=$(this).attr("data-item-action");var n="entitlement_page";$.request("soloBasicUser::onRenderEntitlementPopupContent",{data:{entitlement_request_id:e,item_action:t,page_url:n},complete:function(e){var t=e.responseJSON.response_html;$.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);$(".solo-entitlement-request-form-popup").find(".solo-entitlement-request-provider").select2({placeholder:"Select one or multiple providers",multiple:"multiple",maximumSelectionLength:1});$(".solo-entitlement-request-form-popup").find(".entitlement-category").select2({placeholder:"Select one or multiple category",allowClear:true});$(".solo-entitlement-request-form-popup").find(".entitlement-sector").select2({placeholder:"Select one or multiple sectors",allowClear:true});$(".solo-entitlement-request-form-popup").find(".entitlement-geography").select2({placeholder:"Select one or multiple geographies",allowClear:true});$(".solo-entitlement-request-form-popup").find(".entitlement-report-types").select2({placeholder:"Select one or more report types",allowClear:true});$(".simple_datepicker").datepicker({dateFormat:"dd/mm/yy"});$(".solo-entitlement-request-form-popup").find(".entitlement-companies").select2({placeholder:"Enter a company name",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:$.trim(e.term)}},processResults:function(e){return{results:e}},cache:true}});if($("#unlimited_date").is(":checked")){$("#solo-ent-request-end-date").prop("readonly",true);$("#solo-ent-request-end-date").val("");$("#unlimited_date").val(1);$("#solo-ent-request-end-date").addClass("ent-input-disabled");$("#solo-ent-request-end-date").datepicker("option","disabled",true)}else{$("#solo-ent-request-end-date").prop("readonly",false);$("#solo-ent-request-end-date").removeClass("ent-input-disabled");$("#unlimited_date").val(0);$("#solo-ent-request-end-date").datepicker("option","disabled",false)}}})});$(document).delegate(".basic-entitlement-request","click",function(){var e="soloBasicUser::onRenderEntitlementPopupContent";var t="entitlement_page";$.request("soloBasicUser::onRenderEntitlementPopupContent",{data:{page_id:e,page_url:t},complete:function(e){var t=e.responseJSON.response_html;$.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);$(".solo-entitlement-request-form-popup").find(".solo-entitlement-request-provider").select2({placeholder:"Select one or multiple providers",multiple:"multiple",maximumSelectionLength:1,ajax:{url:"/search-provider-for-filters",dataType:"json",data:function(e){return{q:$.trim(e.term)}},processResults:function(e){$.each(e,function(e,t){if(typeof t.unconnected!=="undefined"){t.text=t.text+t.unconnected}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});$(".solo-entitlement-request-form-popup").find(".entitlement-category").select2({placeholder:"Select one or multiple category",allowClear:true});$(".solo-entitlement-request-form-popup").find(".entitlement-sector").select2({placeholder:"Select one or multiple sectors",allowClear:true});$(".solo-entitlement-request-form-popup").find(".entitlement-geography").select2({placeholder:"Select one or multiple geographies",allowClear:true});$(".solo-entitlement-request-form-popup").find(".entitlement-report-types").select2({placeholder:"Select one or more report types",allowClear:true});$(".simple_datepicker").datepicker({dateFormat:"dd/mm/yy"});$(".solo-entitlement-request-form-popup").find(".entitlement-companies").select2({placeholder:"Enter a company name",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:$.trim(e.term)}},processResults:function(e){return{results:e}},cache:true}});if($("#unlimited_date").is(":checked")){$("#solo-ent-request-end-date").prop("readonly",true);$("#solo-ent-request-end-date").val("");$("#unlimited_date").val(1);$("#solo-ent-request-end-date").addClass("ent-input-disabled");$("#solo-ent-request-end-date").datepicker("option","disabled",true)}else{$("#solo-ent-request-end-date").prop("readonly",false);$("#solo-ent-request-end-date").removeClass("ent-input-disabled");$("#unlimited_date").val(0);$("#solo-ent-request-end-date").datepicker("option","disabled",false)}}})});$(document).delegate('select[name="entitlement_request_provider_id"]',"change",function(){var e=$('select[name="entitlement_request_provider_id"] option:selected').text();$("input:hidden[name=basic_ent_req_prov_name]").val(e)});$(document).delegate(".approve_or_delete_offered_basic_entitlement","click",function(){var e=$(this);$.request("soloBasicUser::onApproveOrDeleteEntitlementRequest",{data:{entitlement_request_id:e.data("item-id"),item_action:e.data("item-action")}})});$(document).delegate(".solo-resend-entitlement-email-btn","click",function(e){var t=$(this);$.request("soloBasicUser::onResendEntitlementEmail",{data:{id:$(this).data("id")},complete:function(e){}});$(this).remove()});$(document).delegate("#unlimited_date","change",function(){$("input:checkbox").prop("checked",$(this).prop("checked"));if($(this).prop("checked")==true){$("#solo-ent-request-end-date").prop("readonly",true);$("#solo-ent-request-end-date").val("");$("#unlimited_date").val(1);$("#solo-ent-request-end-date").addClass("ent-input-disabled");$("#solo-ent-request-end-date").datepicker("option","disabled",true)}else{$("#solo-ent-request-end-date").prop("readonly",false);$("#solo-ent-request-end-date").removeClass("ent-input-disabled");$("#unlimited_date").val(0);$("#solo-ent-request-end-date").datepicker("option","disabled",false)}});$(document).delegate(".send-ent-req","click",function(e){var t=$(this);var n=$('select[name="entitlement_request_provider_id"]').val();var i=false;var r=false;if(typeof n==="undefined"||n==""||n==null){$("#ent_provider_popup.form-required-error").css("display","block");$("#entitlement-provider .select2-selection").css("border","1px solid #FF0000");i=false;r=false}else{var a=$("form.solo-entitlement-request-form-popup").serializeArray();$.request("soloBasicUser::onCheckActiceEntitlementForUser",{data:{form_data:a},complete:function(e){if(e.responseJSON.status=="01"){$("#ent_provider_popup.form-required-error").css("display","none");$("#ent_exists_provider_popup.form-required-error").css("display","block");$("#entitlement-provider .select2-selection").css("border","1px solid #FF0000");i=false;r=false;return false}else{i=true;r=true;if(i==true&&r==true){$("form.solo-entitlement-request-form-popup").submit()}return true}}})}e.preventDefault()});window.calendarTemplatesApp=null;window.appBaseNode=null;window.appCounter=0;window.templateCache={};var disableForViewOnly=false;const initCalendar=function(l=null){document.calCompany=l;if($("#private_calendar").length){var c=$("#public_calendar").data("timezone_offset_minutes");$.fn.renderPrivateCalendar=function(e){e:"H:mm";e:"H:mm";if(e>992){var t="";e:"H:mm";var n={month:{eventLimit:3},agendaWeek:{titleFormat:"DD MMMM YYYY",columnFormat:"DD ddd",displayEventTime:false},myview:{titleFormat:"DD MMMM YYYY",columnFormat:"DD ddd",displayEventTime:false},agendaDay:{slotLabelFormat:"H:mm",titleFormat:"D MMMM YYYY",displayEventTime:false},listYear:{listDayFormat:"DD MMMM YYYY"}};var i="listMonth";if(i="listMonth"){var r=null;var a=window.location.pathname;path_name1=a.substring(1);var o=path_name1.split("/");if(path_name1=="calendar"){$("#private_calendar").css("display","none");$.fn.createAndAppendListView(i,r)}if(path_name1!="calendar"){$("#private_calendar").css("display","none");$.fn.createAndAppendListView(i,l.id)}}}else{var t="";var n={days3:{type:"agenda",duration:{days:3},buttonText:"3 days view",titleFormat:"DD MMMM YYYY",columnFormat:"DD ddd",displayEventTime:false}};var i="days3"}let s=Object.assign({},{timezone_offset_minutes:c});if(null!==l&&undefined!==l.isin){s["company"]=l.isin;var a=window.location.pathname;path_name1=a.substring(1);var o=path_name1.split("/");if(path_name1=="calendar"){$.fn.createAndAppendListView(i,l.isin)}if(path_name1!="calendar"){$.fn.createAndAppendListView(i,l.id)}}$("#private_calendar").fullCalendar({header:{left:"today",center:"prev title next",right:t},views:n,defaultView:i,scrollTime:"08:00:00",agendaEventMinHeight:44,slotDuration:"01:00:00",navLinks:true,editable:true,eventStartEditable:false,eventLimit:true,timeFormat:"H:mm",contentHeight:660,events:{url:"/get-calendar-events",data:s,success:function(e){$("#private_calendar").css("display","block","important")},error:function(){}},eventClick:function(i,e,t){var n="calendarPage::onRenderCalendarEventPopupContent";$.request(n,{data:{calendarEventId:i.db_id,isPublicEvent:0,timezone_offset_minutes:c},complete:function(e){if(e.responseJSON.status=="01"){$.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,"edit");$.fn.initBaseDateTimePicker();function t(e){return $('<span id="user_'+$(e.element).data("select2-id")+'" class="calendar_item" ><i class="fas '+$(e.element).data("icon")+'"></i> '+e.text+"</span>")}$(".events_popup_select2").each(function(){var e=$(this).data("empty-option-label");$(this).select2({placeholder:e,allowClear:true,width:"100%",templateSelection:t,templateResult:t})});var n=$('input:hidden[name="new_company_name_for_event"]').val();if(n!=""){if(n.length>40){$("input[name=events_popup_select2_companies]").css("height","55px")}else{$("input[name=events_popup_select2_companies]").css("height","34px")}}if(i.sell_sideORcorporate==1){$("#cal_analyst_event").attr("checked","checked");$(".cal_analyst_event").css("display","block");$("#corporatebtn").css("display","none");$(".save_private_calendar_event").removeClass("disabled")}else{$("#cal_corporate_event").attr("checked","checked");$(".cal_corporate_event").css("display","block");$("#analystbtn").css("display","none");$("#calendarCompaniesDropdown .custom-select.custom-select-type.recommendation-select-filter span.selector.closed").trigger("click");$("#calendarCompaniesDropdown .custom-select.custom-select-type.recommendation-select-filter span.selector.open").trigger("click");$("#interationsEventSave").removeClass("save_private_calendar_event");$("#interationsEventSave").addClass("save_corporate_calendar_event");$(".save_private_calendar_event").removeClass("disabled");$(".save_corporate_calendar_event").removeClass("disabled")}$("#calendar_analyst_category").select2({minimumResultsForSearch:-1});$.fn.renderSelect2EmailTaggingOnElement(".events_popup_select2_email_tags");$(".events_popup_select2_companies").select2({placeholder:$(".events_popup_select2_companies").data("empty-option-label"),allowClear:true,width:"100%",ajax:{url:"/search-company-on-event-popup",dataType:"json",delay:250,processResults:function(e){return{results:e}},cache:true}});$.magnificPopup.instance._onFocusIn=function(e){if($(e.target).hasClass("select2-search__field")){return true}$.magnificPopup.proto._onFocusIn.call(this,e)}}}})},dayClick:function(e,t,n){var i="calendarPage::onRenderCalendarEventPopupContent";$.request(i,{data:{calendarEventId:null,isPublicEvent:0,timezone_offset_minutes:c,onDate:moment(e).toLocaleString(),calendarViewType:n.type},complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.popup_content!=""){$.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);$.fn.initBaseDateTimePicker();function t(e){return $('<span id="user_'+$(e.element).data("select2-id")+'" class="calendar_item" ><i class="fas '+$(e.element).data("icon")+'"></i> '+e.text+"</span>")}$(".events_popup_select2").each(function(){var e=$(this).data("empty-option-label");$(this).select2({placeholder:e,allowClear:true,width:"100%",templateSelection:t,templateResult:t})});$.fn.renderSelect2EmailTaggingOnElement(".events_popup_select2_email_tags");$(".events_popup_select2_companies").select2({placeholder:$(".events_popup_select2_companies").data("empty-option-label"),allowClear:true,width:"100%",ajax:{url:"/search-company-on-event-popup",dataType:"json",delay:250,processResults:function(e){return{results:e}},cache:true}});$.magnificPopup.instance._onFocusIn=function(e){if($(e.target).hasClass("select2-search__field")){return true}$.magnificPopup.proto._onFocusIn.call(this,e)}}}})},eventRender:function(e,t,n){var i=moment(e.end);var r=moment();if(n.type=="listYear"&&i.diff(r,"seconds")<=0){return false}var a=window.location.pathname;path_name1=a.substring(1);var o=path_name1.split("/");if(path_name1!="calendar"){$.fn.createAndAppendListView(n.name,l.id)}else{$.fn.createAndAppendListView(n.name,null)}},viewRender:function(e,t){if(e.name==="basicDay"){$("#private_calendar").fullCalendar("changeView","agendaDay");$("#calendar_view").val("agendaDay");$("#calendar_view").select2().trigger("change");e:"H:mm"}if(e.name==="days3"&&$(".fc-days3-view .fc-head .fc-head-container .fc-day-header a").length){$(".fc-days3-view .fc-head .fc-head-container .fc-day-header a").removeAttr("data-goto")}}})};var e;var t=window.innerWidth;$(window).resize(function(){clearTimeout(e);e=setTimeout(n,500)});function n(){if(t===window.innerWidth){return false}t=window.innerWidth;$("#private_calendar").fullCalendar("destroy");$.fn.renderPrivateCalendar(window.innerWidth)}$.fn.renderPrivateCalendar(window.innerWidth);$(".show_add_private_calendar_event_popup").click(function(e){disableForViewOnly=false;var t="calendarPage::onRenderCalendarEventPopupContent";$.request(t,{data:{calendarEventId:null,isPublicEvent:0,timezone_offset_minutes:c,onDate:moment().format("YYYY-MM-DD")},complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.popup_content!=""){$.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);$.fn.initBaseDateTimePicker();function t(e){return $('<span id="user_'+$(e.element).data("select2-id")+'" class="calendar_item"><i class="fas '+$(e.element).data("icon")+'"></i> '+e.text+"</span>")}$(".events_popup_select2").each(function(){var e=$(this).data("empty-option-label");if(e=="Select Category"||e=="Select an event type"||e=="Select a sector"){$(this).select2({placeholder:e,minimumResultsForSearch:-1,width:"304px"})}else{$(this).select2({tags:"true",placeholder:e,allowClear:true,width:"100%",templateSelection:t,templateResult:t})}});$.fn.renderSelect2EmailTaggingOnElement(".events_popup_select2_email_tags");$(document).delegate("#eventCompanyName","keyup",function(){$("#eventCompanyName").autocomplete({source:function(e,t){$.ajax({url:"/search-company-on-calendar-event-popup/"+e.term,dataType:"jsonp",success:function(e){e.sort((e,t)=>e.covered<t.covered?1:-1);t(e)}})},minLength:2,select:function(e,t){e.preventDefault();$(this).val("");if(t.item){if(t.item.company_id=="nonregComapny2020"){var n=t.item.value.split("-");var i=n[1]}else{var i=t.item.value}var r={isin:t.item.company_isin,name:i,id:t.item.company_id,ticker:t.item.company_ticker};if(i!=""){var a=$('select[name="corporate_side_event_type"]').find("option:selected").text();if(a=="Select an event type"){a=""}var o=$('select[name="corporate_category"]').find("option:selected").text();var s=[];$('input[name="participantroles[]"]:checked').each(function(){s.push(" "+this.value)});var l=$('input:hidden[name="new_company_name_for_event"]').val();var l=i.split("|");l=l[1].trim()}$.fn.createAndAppendCompanyCard(r,$(".white-popup.calendar-event-item-content").find(".selected_companies_cards_wrapper"))}if($('.input:hidden[name="new_company_name_for_event"]').val()!=""){$('input[name="events_popup_select2_companies"]').prop("readOnly",true);$('input[name="events_popup_select2_companies"]').removeAttr("placeholder")}},open:function(){$("ul.ui-autocomplete.ui-menu").width(380);$("ul.ui-autocomplete").addClass("customWidth")},close:function(){$(this).removeClass("ui-corner-top").addClass("ui-corner-all")}}).autocomplete("instance")._renderItem=function(e,t){return $("<li>").append(t.label+t.covered).appendTo(e)}})}}})});$(document).delegate('select[name="sell_side_or_corporate"]',"change",function(){var e=$(this);e.closest("form").find(".optional_selects").hide();if(e.val()=="1"){e.closest("form").find(".optional_selects.show_on_sell_side").show()}else if(e.val()=="2"){e.closest("form").find(".optional_selects.show_on_corporate").show()}});$(document).delegate('select[name="producer_id"]',"change",function(){$.request("calendarPage::onRenderCalendarEventPopupAnalystsDropdownContent",{data:{producer_id:$(this).val()},complete:function(e){var t=e.responseJSON.results;t.push({id:"-1",text:" -- Add non related user for that provider."});$('select[name="analysts[]"]').select2("destroy").empty().select2({data:t,placeholder:$('select[name="analysts[]"]').data("empty-option-label"),allowClear:true,width:"100%"})}})});$(document).delegate('select[name="analysts[]"]',"select2:selecting",function(e){var t=e.params.args.data.id;if(t=="-1"){$(this).select2("close");if($('select[name="producer_id"]').val()!=""){$(".form-group.non_related_users_wrapper").show()}return false}});$(document).delegate('select[name="company_id"]',"change",function(){$.request("calendarPage::onRenderCalendarEventPopupInvestorRelationsDropdownContent",{data:{company_id:$(this).val()},complete:function(e){var t=e.responseJSON.results;t.push({id:"-1",text:" -- Add non related user for that company."});$('select[name="investor_relations[]"]').select2("destroy").empty().select2({data:t,placeholder:$('select[name="investor_relations[]"]').data("empty-option-label"),allowClear:true,width:"100%"})}})});$(document).delegate('select[name="investor_relations[]"]',"select2:selecting",function(e){var t=e.params.args.data.id;if(t=="-1"){$(this).select2("close");if($('select[name="company_id"]').val()!=""){$(".form-group.non_related_users_wrapper").show()}return false}});$(document).delegate(".event_popup_rating_wrapper .star.rating","click",function(){if(!$(this).parent().hasClass("disabled")){$(this).parent().attr("data-stars",$(this).data("rating"));$(this).closest("form").find('input[name="rating"]').val($(this).data("rating"))}});$(document).delegate(".save_private_calendar_event","click",function(){var t=$(this);$("form.calendar-event-item-content-form").validator("validate");$("input.base_datepicker").parent().removeClass("has-error");var e=$('#analystEndDate input:hidden[name="end_date"]').val();var n=$('#analystStartDate input:hidden[name="start_date"]').val();var i=$('input[name="event_request_provider_name"]').val();var r=$('input:hidden[name="new_provider_for_event_provider_name"]').val();var a=$('select[name="super_sector"]').val();var o=$('select[name="analyst_category"]').find("option:selected").text();var s=$('select[name="analyst_side_event_type"]').val();var l=$('input[name="analyst_event_title"]').val();var c=$('input:hidden[name="event_id"]').val();if(i==""&&typeof r==="undefined"||r==""){$("#analyst_prov_error.form-required-error").css("display","block");$("#unconnected_prov_error.form-required-error").css("display","none")}if(a==""){if(o=="Equity"){$("#analyst_sector_error.form-required-error").css("display","block")}}if(s==""){$("#analyst_type_error.form-required-error").css("display","block")}if(l==""){$("#analyst_event_name.form-required-error").css("display","block");$('input[name="analyst_event_title"]').parent().addClass("has-error")}if(n>e){$('input:hidden[name="end_date"]').parent().addClass("has-error");if($('input:hidden[name="end_date"]').parent().hasClass("has-error")){$(".endDateError").css("display","block")}else{$(".endDateError").css("display","none")}}else{$(".endDateError").css("display","none")}if($("form.calendar-event-item-content-form").find(".has-error").length){return false}if(!t.hasClass("disabled")){t.addClass("disabled");var d=$("form.calendar-event-item-content-form").serializeArray();d.push({name:"timezone_offset_minutes",value:(new Date).getTimezoneOffset()});$.request("calendarPage::onCreateOrUpdateCalendarEvent",{data:d,complete:function(e){if(e.responseJSON.status=="00"){t.removeClass("disabled");return false}else if(e.responseJSON.status=="01"){t.removeClass("disabled");$.magnificPopup.close();$("#private_calendar").fullCalendar("refetchEvents")}}})}});$(document).delegate(".save_corporate_calendar_event","click",function(){var t=$(this);$("form.calendar-corporate-event-item-content-form").validator("validate");$("input.base_datepicker").parent().removeClass("has-error");var e=$('#corporateEndDate input:hidden[name="end_date"]').val();var n=$('#corporateStartDate input:hidden[name="start_date"]').val();var i=$('input[name="corporate_request_provider_name"]').val();var r=$('input[name="events_popup_select2_companies"]').val();var a=[];$('input[name="corporate_provider_checkbox"]:checked').each(function(){a.push(" "+this.value)});var o=$('input:hidden[name="new_corporate_provider_for_event_provider_name"]').val();var s=$('input:hidden[name="new_company_name_for_event"]').val();var l=[];$('input[name="participantroles[]"]:checked').each(function(){l.push(" "+this.value)});var c=$('select[name="corporate_side_event_type"]').val();var d=$('input[name="event_title"]').val();if(i==""&&a.length==0&&typeof o==="undefined"){$("#corporate_prov_error.form-required-error").css("display","block");return false}if(r==""&&typeof s==="undefined"){$("#corporate_company_error.form-required-error").css("display","block")}if(l.length==0){$("#corporate_role_error.form-required-error").css("display","block")}if(c==""){$("#corporate_type_error.form-required-error").css("display","block")}if(d==""){$("#corporate_name_error.form-required-error").css("display","block");$('input[name="event_title"]').parent().addClass("has-error")}if(n>e){$('input:hidden[name="end_date"]').parent().addClass("has-error");if($('input:hidden[name="end_date"]').parent().hasClass("has-error")){$(".endDateError").css("display","block")}else{$(".endDateError").css("display","none")}}else{$(".endDateError").css("display","none")}if($("form.calendar-corporate-event-item-content-form").find(".has-error").length){return false}if(!t.hasClass("disabled")){t.addClass("disabled");var u=$("form.calendar-corporate-event-item-content-form").serializeArray();u.push({name:"timezone_offset_minutes",value:(new Date).getTimezoneOffset()});$.request("calendarPage::onCreateOrUpdateCalendarEvent",{data:u,complete:function(e){if(e.responseJSON.status=="00"){t.removeClass("disabled");return false}else if(e.responseJSON.status=="01"){t.removeClass("disabled");$.magnificPopup.close();$("#private_calendar").fullCalendar("refetchEvents")}}})}})}$(document).delegate(".remove_calendar_event","click",function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");i('<p style="font-size: 14px;">This event will be deleted for all participants, are you sure you want to continue ? </p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">NO</a>');$("#pop-process").click(function(){$.request("calendarPage::onDeleteCalendarEvent",{data:{calendar_event_id:t.data("calendar-event-id")},complete:function(e){if(e.responseJSON.status=="00"){t.removeClass("disabled");return false}else if(e.responseJSON.status=="01"){t.removeClass("disabled");if(window.location.pathname==="/my-events"){location.reload()}else{$.magnificPopup.close();if($("#private_calendar").length){$("#private_calendar").fullCalendar("refetchEvents")}else if($("#public_calendar").length){$("#public_calendar").fullCalendar("refetchEvents")}}}}})});$("#pop-cancel").click(function(){$.magnificPopup.close()})}});function i(e){var t=$("body").data("assetName");$.magnificPopup.open({items:{src:'<div class="white-popup white-popup-upload text-center">'+'<h4 style="font-size:30px;">DELETE EVENT</h4>'+e+"<br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}if($("#public_calendar").length){var c=$("#public_calendar").data("timezone_offset_minutes");$.fn.renderPublicCalendar=function(e){$("#public_calendar").data("timezone_offset_minutes",(new Date).getTimezoneOffset());var r=$("#public_calendar").data("timezone_offset_minutes");if(e>992){var t="month,agendaWeek,agendaDay,listYear";var n={month:{eventLimit:3},agendaWeek:{titleFormat:"DD MMMM YYYY",columnFormat:"DD ddd",displayEventTime:false},agendaDay:{slotLabelFormat:"H:mm",titleFormat:"D MMMM YYYY",displayEventTime:false},listYear:{listDayFormat:"DD MMMM YYYY"}};var i="month"}else{var t="";var n={days3:{type:"agenda",duration:{days:3},buttonText:"3 days view",titleFormat:"DD MMMM YYYY",columnFormat:"DD ddd",displayEventTime:false}};var i="days3"}$("#public_calendar").fullCalendar({header:{left:"prev,next today",center:"title",right:t},views:n,defaultView:i,scrollTime:"08:00:00",agendaEventMinHeight:44,slotDuration:"01:00:00",navLinks:true,editable:true,eventStartEditable:false,eventLimit:true,timeFormat:"H:mm",contentHeight:660,events:{url:"get-public-calendar-events",data:{timezone_offset_minutes:r,show_events_filtered_by_dashboard_filters:function(){return($("input.show_events_filtered_by_dashboard_filters").length&&$("input.show_events_filtered_by_dashboard_filters").prop("checked"))===true?1:0}},error:function(){}},eventClick:function(e,t,n){var i="calendarPage::onRenderCalendarEventPopupContent";$.request(i,{data:{calendarEventId:e.db_id,isPublicEvent:1,timezone_offset_minutes:r},complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.popup_content!=""){$.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);$.fn.initBaseDateTimePicker();if(e.responseJSON.user_type=="provider_portal"){$(".calendar-event-popup-wrapper").find(".company_name_ticker_isin").autocomplete({source:function(e,t){$.ajax({url:"/search-company-backend/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},minLength:2,select:function(e,t){e.preventDefault();$(this).val("");if(t.item){var n={isin:t.item.isin,name:t.item.company_name,ticker:t.item.ticker};$.fn.createAndAppendCompanyCard(n,$(".white-popup.calendar-event-item-content").find(".selected_companies_cards_wrapper"))}},open:function(){$("ul.ui-autocomplete.ui-menu").width(380)},close:function(){$(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})}}}})},dayClick:function(e,t,n){if($("#public_calendar").data("user-can-add-event")!=1){return false}var i="calendarPage::onRenderCalendarEventPopupContent";$.request(i,{data:{calendarEventId:null,isPublicEvent:1,timezone_offset_minutes:r,onDate:e.format()},complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.popup_content!=""){$.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);$.fn.initBaseDateTimePicker();if(e.responseJSON.user_type=="provider_portal"){$(".calendar-event-popup-wrapper").find(".company_name_ticker_isin").autocomplete({source:function(e,t){$.ajax({url:"/search-company-backend/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},minLength:2,select:function(e,t){e.preventDefault();$(this).val("");if(t.item){var n={isin:t.item.isin,name:t.item.company_name,ticker:t.item.ticker};$.fn.createAndAppendCompanyCard(n,$(".white-popup.calendar-event-item-content").find(".selected_companies_cards_wrapper"))}},open:function(){$("ul.ui-autocomplete.ui-menu").width(380);$("ul.ui-autocomplete").addClass("customWidth")},close:function(){$(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})}}}})},eventRender:function(e,t,n){var i=moment(e.end);var r=moment();if(n.type=="listYear"&&i.diff(r,"seconds")<=0){return false}},viewRender:function(e,t){if(e.name==="days3"&&$(".fc-days3-view .fc-head .fc-head-container .fc-day-header a").length){$(".fc-days3-view .fc-head .fc-head-container .fc-day-header a").removeAttr("data-goto")}}})};var r;var t=window.innerWidth;$(window).resize(function(){clearTimeout(r);r=setTimeout(a,500)});function a(){if(t===window.innerWidth){return false}t=window.innerWidth;$("#public_calendar").fullCalendar("destroy");$.fn.renderPublicCalendar(window.innerWidth)}$.fn.renderPublicCalendar(window.innerWidth)}$(".show_add_public_calendar_event_popup").click(function(e){var t="calendarPage::onRenderCalendarEventPopupContent";$.request(t,{data:{calendarEventId:null,isPublicEvent:1,timezone_offset_minutes:c,onDate:moment().format("YYYY-MM-DD")},complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.popup_content!=""){$.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);$.fn.initBaseDateTimePicker();if(e.responseJSON.user_type=="provider_portal"){$(".calendar-event-popup-wrapper").find(".company_name_ticker_isin").autocomplete({source:function(e,t){$.ajax({url:"/search-company-backend/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},minLength:2,select:function(e,t){e.preventDefault();$(this).val("");if(t.item){var n={isin:t.item.isin,name:t.item.company_name,ticker:t.item.ticker};$.fn.createAndAppendCompanyCard(n,$(".white-popup.calendar-event-item-content").find(".selected_companies_cards_wrapper"))}},open:function(){$("ul.ui-autocomplete.ui-menu").width(380)},close:function(){$(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})}}}})});$(document).delegate(".save_public_calendar_event","click",function(){var e=$(this);$("form.calendar-event-item-content-form").validator("validate");$("input.base_datepicker").parent().removeClass("has-error");var t=moment($('input[name="start_date"]').val(),"YYYY-MM-DD HH:mm:ss");var n=moment($('input[name="end_date"]').val(),"YYYY-MM-DD HH:mm:ss");if(t>n){$('input[name="end_date"]').parent().addClass("has-error")}if($("form.calendar-event-item-content-form").find(".has-error").length){return false}if(!e.hasClass("disabled")){e.addClass("disabled");var i=$("form.calendar-event-item-content-form").serializeArray();i.push({name:"timezone_offset_minutes",value:(new Date).getTimezoneOffset()});if($(".confirmation_text_on_public_calendar").length&&$(".confirmation_text_on_public_calendar").hasClass("show")){i.push({name:"notification_shown_disable_submit",value:0})}$.request("calendarPage::onCreateOrUpdateCalendarEvent",{data:i,complete:function(n){if(n.responseJSON.status=="00"){e.removeClass("disabled");return false}else if(n.responseJSON.status=="01"){if(window.location.pathname==="/my-events"){location.reload()}else{e.removeClass("disabled");$.magnificPopup.close();$("#public_calendar").fullCalendar("refetchEvents")}}else if(n.responseJSON.status=="02"||n.responseJSON.status=="03"||n.responseJSON.status=="04"){e.removeClass("disabled");if($('input[name="is_public_event"]').length&&$('input[name="is_public_event"]').val()==1){$(".guest_item_row").removeClass("error_non_company_email notice_non_registered_user");$(".guest_item_row").find(".guest_input_message_wrapper").html("");$(".confirmation_text_on_public_calendar").removeClass("show");if(n.responseJSON.nonCompanyUsers.length>0||n.responseJSON.nonRegistered.length>0||n.responseJSON.registeredUserNotCompany.length>0){$(".guest-inputs").find('input[name="guest_email[]"]').each(function(e){var t=$(this);if(n.responseJSON.nonCompanyUsers.length>0&&$.inArray(t.val(),n.responseJSON.nonCompanyUsers)!==-1){t.closest(".guest_item_row").addClass("error_non_company_email");t.closest(".guest_item_row").find(".guest_input_message_wrapper").html(n.responseJSON.nonCompanyUsersErrorMessage)}if(n.responseJSON.nonRegistered.length>0&&$.inArray(t.val(),n.responseJSON.nonRegistered)!==-1){t.closest(".guest_item_row").addClass("notice_non_registered_user");t.closest(".guest_item_row").find(".guest_input_message_wrapper").html(n.responseJSON.nonRegisteredNoticeMessage)}if(n.responseJSON.registeredUserNotCompany.length>0&&$.inArray(t.val(),n.responseJSON.registeredUserNotCompany)!==-1){t.closest(".guest_item_row").addClass("notice_non_registered_user");t.closest(".guest_item_row").find(".guest_input_message_wrapper").html(n.responseJSON.nonCompanyUsersNoticeMessage)}});if((n.responseJSON.nonRegistered.length>0||n.responseJSON.registeredUserNotCompany.length>0)&&n.responseJSON.nonCompanyUsers.length===0){$(".confirmation_text_on_public_calendar").addClass("show")}}}}}})}});$(document).delegate(".white-popup.calendar-event-item-content .selected_companies_cards_wrapper .delete_card","click",function(){$('input[name="events_popup_select2_companies"]').prop("readOnly",false);$('input[name="events_popup_select2_companies"]').attr("placeholder","Search a company (ISIN)");$("input[name=events_popup_select2_companies]").css("height","34px");$(this).parent().remove()});$(document).delegate(".white-popup.calendar-event-item-content .selected_producers_cards_wrapper .delete_card","click",function(){$('input[name="event_request_provider_name"]').prop("readOnly",false);$('input[name="event_request_provider_name"]').attr("placeholder","Enter a provider Name ");$(this).parent().remove();$('select[name="analysts[]"]').select2("destroy").empty().select2({placeholder:$('select[name="analysts[]"]').data("empty-option-label"),allowClear:true,width:"100%"})});$(document).delegate(".white-popup.calendar-event-item-content .selected_corporate_producers_cards_wrapper .delete_card","click",function(){$('input[name="corporate_request_provider_name"]').prop("readOnly",false);$('input[name="corporate_request_provider_name"]').attr("placeholder","Enter a provider Name");$(this).parent().remove()});$(document).delegate('input[name="guest_limit"]',"change",function(){var e=$(this);var t=e.closest("form");var n=t.find(".guest_item_row").length;if(e.val()>n){t.find(".add-guest").show()}else{t.find(".add-guest").hide();if($(".guest_item_row").length){$(".guest_item_row").each(function(){if($(this).index()>=e.val()){$(this).remove()}})}}});$(document).delegate(".white-popup.calendar-event-item-content .add-guest","click",function(){var t=$(this);$.request("calendarPage::onAddNewGuestRow",{complete:function(e){t.before(e.responseJSON.result_html);if(t.parent().find(".guest_item_row").length>=t.closest("form").find('input[name="guest_limit"]').val()){t.hide()}}})});$(document).delegate(".white-popup.calendar-event-item-content .remove-guest","click",function(){var e=$(this);e.closest(".guest_item_row").remove();if($(".guest_item_row").length<parseInt($('input[name="guest_limit"]').val())){$(".white-popup.calendar-event-item-content").find(".add-guest").show()}});$(document).delegate(".white-popup.calendar-event-item-content .join_to_calendar_event","click",function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");$.request("calendarPage::onJoinToTheCalendarEvent",{data:{calendar_event_id:t.data("event-id")},complete:function(e){if(e.responseJSON.status=="00"&&e.responseJSON.error!=""){t.closest(".white-popup").find(".error_msg").html(e.responseJSON.error)}else{$.magnificPopup.close();$("#public_calendar").fullCalendar("refetchEvents")}}})}});$(document).delegate(".white-popup.calendar-event-item-content .confirm_attending_for_calendar_event","click",function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");$.request("calendarPage::onConfirmAttendingToCalendarEvent",{data:{calendar_event_id:t.data("event-id")},complete:function(e){if(e.responseJSON.status=="00"&&e.responseJSON.error!=""){t.closest(".white-popup").find(".error_msg").html(e.responseJSON.error)}else{$.magnificPopup.close();$("#public_calendar").fullCalendar("refetchEvents")}}})}});$(document).delegate(".white-popup.calendar-event-item-content .leave_calendar_event","click",function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");$.request("calendarPage::onUserLeaveCalendarEvent",{data:{calendar_event_id:t.data("event-id")},complete:function(e){if(e.responseJSON.status=="00"&&e.responseJSON.error!=""){t.closest(".white-popup").find(".error_msg").html(e.responseJSON.error)}else{$.magnificPopup.close();$("#public_calendar").fullCalendar("refetchEvents")}}})}});$(document).delegate(".js_event_participant_row_confirm","click",function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");var n=t.data("event-participant-row-id");$.request("calendarPage::onCreatorConfirmAttendingToCalendarEvent",{data:{calendar_event_participant_row_id:n},complete:function(e){if(e.responseJSON.status=="00"&&e.responseJSON.error!=""){if($(".white-popup.calendar-event-item-content").length){alert(e.responseJSON.error)}else{$.fn.showNotificationsMagnificPopupWithCallbackForEvents(e.responseJSON.error,false)}}else if(e.responseJSON.status=="01"){t.removeClass("disabled");$('a[data-event-participant-row-id="'+n+'"].js_event_participant_row_confirm').remove();$('a[data-event-participant-row-id="'+n+'"].js_event_participant_row_confirm').addClass("js_event_participant_row_cancel_or_decline");$('a[data-event-participant-row-id="'+n+'"].js_event_participant_row_confirm').html("Cancel RSVP");$('a[data-event-participant-row-id="'+n+'"].js_event_participant_row_confirm').removeClass("js_event_participant_row_confirm")}}})}});$(document).delegate(".js_event_participant_row_cancel_or_decline","click",function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");var n=t.data("event-participant-row-id");$.request("calendarPage::onCreatorCancelParticipantForCalendarEvent",{data:{calendar_event_participant_row_id:n},complete:function(e){if(e.responseJSON.status=="00"&&e.responseJSON.error!=""){if($(".white-popup.calendar-event-item-content").length){alert(e.responseJSON.error)}else{$.fn.showNotificmsationsMagnificPopupWithCallbackForEvents(e.responseJSON.error,false)}}else if(e.responseJSON.status=="01"){$('a[data-event-participant-row-id="'+n+'"].js_event_participant_row_confirm').remove();$('a[data-event-participant-row-id="'+n+'"].js_event_participant_row_cancel_or_decline').html("Canceled");t.removeClass("js_event_participant_row_cancel_or_decline")}}})}});$("input.show_events_filtered_by_dashboard_filters").click(function(e){$("#public_calendar").fullCalendar("refetchEvents")});$(".edit_event_from_my_events").click(function(e){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");var n="calendarPage::onRenderCalendarEventPopupContent";var i=(new Date).getTimezoneOffset();if(t.data("calendar-event-item-is-public")===1){$.request(n,{data:{calendarEventId:t.data("calendar-event-item-id"),isPublicEvent:1,timezone_offset_minutes:i},complete:function(e){t.removeClass("disabled");if(e.responseJSON.status=="01"&&e.responseJSON.popup_content!=""){$.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);$.fn.initBaseDateTimePicker();if(e.responseJSON.user_type=="provider_portal"){$(".calendar-event-popup-wrapper").find(".company_name_ticker_isin").autocomplete({source:function(e,t){$.ajax({url:"/search-company-backend/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},minLength:2,select:function(e,t){e.preventDefault();$(this).val("");if(t.item){var n={isin:t.item.isin,name:t.item.company_name,ticker:t.item.ticker};$.fn.createAndAppendCompanyCard(n,$(".white-popup.calendar-event-item-content").find(".selected_companies_cards_wrapper"))}},open:function(){$("ul.ui-autocomplete.ui-menu").width(380)},close:function(){$(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})}}}})}else{t.removeClass("disabled")}}})};(function(f){f(document).ready(function(){initCalendar();f("#private_calendar").css("display","none");var e=f("#calendar_view").val();if(e=="listMonth"){f("#private_calendar").css("display","none");f("#private_calendar").hide()}const n=new EsgApi;n.getTemplatesList().then(function(e){e.map(function(t){n.getTemplate(t.uuid).then(function(e){window.templateCache[t.uuid]=e})})})});f.fn.showMagnificPopupWithCallbackForEvents=function(e,t){f.magnificPopup.open({items:{src:e},type:"inline",preloader:false,closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){if(t=="reload"){location.reload()}},open:function(){if("edit"===t||null===document.calCompany){return}f("#corporatebtn input").prop("checked",true);f("input[type=radio][name=public_event]").trigger("change");f('input[name="events_popup_select2_companies"]').prop("placeholder","");f.fn.createAndAppendCompanyCard(document.calCompany,f(".white-popup.calendar-event-item-content").find(".selected_companies_cards_wrapper"));f('input[name="company_id"]').val(document.calCompany.id);f('input[name="company_isin"]').val(document.calCompany.isin);f('input[name="events_popup_select2_companies"]').val(document.calCompany.isin)}}},0)};f.fn.showNotificationsMagnificPopupWithCallbackForEvents=function(e,t){f.magnificPopup.open({items:{src:'<div class="white-popup text-center">'+"<br />"+e+"<br /><br /></div>"},type:"inline",preloader:false,closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){if(t=="reload"){location.reload()}}}},0)};f.fn.initBaseDateTimePicker=function(){f(".base_datepicker").each(function(){var t=f(this),e=f.trim(t.val()),n=moment(e,"YYYY-MM-DD HH:mm:ss").isValid()?e:"",i=t.attr("name");t.attr("name","_datepicker_"+i).attr("data-date-format","DD/MM/YYYY HH:mm");t.after('<input type="hidden" name="'+i+'" value="'+n+'"/>');t.val(n.length==0?"":moment(n,"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY HH:mm"));t.datetimepicker({language:"en",minuteStepping:15,pickDate:true,pickTime:true,maxDate:"now"}).on("dp.change",function(e){t.siblings("input").val(moment(e.date,"llll").format("YYYY-MM-DD HH:mm:ss"))})})};f.fn.createAndAppendCompanyCard=function(e,t){if(e.name.length>40){f("input[name=events_popup_select2_companies]").css("height","55px")}else{f("input[name=events_popup_select2_companies]").css("height","34px")}f.request("calendarPage::onAddNewCardForCompanyData",{data:{companyData:e},complete:function(e){t.append(e.responseJSON.result)}})};f.fn.createAndAppendProducerCard=function(e,t){f.request("calendarPage::onAddNewCardForProducerData",{data:{producerData:e},complete:function(e){t.append(e.responseJSON.result)}})};f.fn.createAndAppendCorporateProducerCard=function(e,t){f.request("calendarPage::onAddNewCardForCorporateProducerData",{data:{producerData:e},complete:function(e){t.append(e.responseJSON.result)}})};f.fn.renderSelect2EmailTaggingOnElement=function(e){var t=f(e).data("empty-option-label");f(e).select2({placeholder:t,allowClear:true,width:"100%",tags:true,tokenSeparators:[","," "],createTag:function(e){var t=/^([\w'-]+(?:\.[\w'-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/;if(t.test(e.term.toLowerCase())){return{id:e.term,text:e.term}}else{return null}},language:{noResults:function(e){return"Enter valid email."}}})};f(".my_events_page__events-heading").on("click",function(){f(this).toggleClass("open").next().slideToggle()});f("#calendar_view").select2({minimumResultsForSearch:-1});var e=f("#calendar_view").val();if(e=="month"){f(".fc-view-container").css("overflow","unset","important");f("#private_calendar").fullCalendar("changeView","month")}else if(e=="agendaWeek"){f("#private_calendar").fullCalendar("changeView","agendaWeek")}else if(e=="agendaDay"){f("#private_calendar").fullCalendar("changeView","agendaDay")}else if(e=="listWeek"){f("#private_calendar").fullCalendar("changeView","listWeek")}else if(e=="listMonth"){f("#private_calendar").css("display","none")}f("#calendar_view").on("change",function(){var e=f("#calendar_view").val();var t=null;f("#private_calendar").fullCalendar("changeView",e);if(e!="listMonth"){f(".fc-view-container").css("overflow","unset")}if(e!="listMonth"){f("#private_calendar").addClass("nview")}else{f("#private_calendar").removeClass("nview")}var n=window.location.pathname;path_name1=n.substring(1);var i=path_name1.split("/");if(path_name1!="calendar"){f.fn.createAndAppendListView(e,company.id)}else{f.fn.createAndAppendListView(e,null)}});f("#buyer-btn-export-calendar").click(function(){var e=f("#buyer-portal-calendar .active").attr("id");if(e=="upcoming-event"){f("#UpcomingEventsTable").tableToCSV()}else if(e=="past-event"){f("#PastEventsTable").tableToCSV()}else if(e=="audit-log-event"){f("#AuditEventsTable").enttableToCSV()}else{preventDefault()}});f(document).delegate("#estars li","mouseover",function(){var t=parseInt(f(this).data("value"),10);f(this).parent().children("#estars li.star").each(function(e){if(e<t){f(this).addClass("hover")}else{f(this).removeClass("hover")}})});f(document).delegate("#estars li","mouseout",function(){f(this).parent().children("#estars li.star").each(function(e){f(this).removeClass("hover")})});f(document).delegate("#estars li","click",function(){var e=parseInt(f(this).data("value"),10);var t=f(this).parent().children("li.star");for(i=0;i<t.length;i++){f(t[i]).removeClass("selected")}for(i=0;i<e;i++){f(t[i]).addClass("selected")}var n=parseInt(f("#estars li.selected").last().data("value"),10);f("input:hidden[name=rating]").val(n)});f(document).delegate('select[name="company_id"]',"change",function(e){var t=f('select[name="company_id"] option:selected').val();if(t=="nonregComapny2020"){var n=f('select[name="company_id"] option:selected').text()}var i=n.split("-");f("input:hidden[name=nonRegistered_companyName]").val(i[1])});f(document).delegate("#eventProviderName","keyup",function(){f("#eventProviderName").css("border","1px solid #ccc");f("#eventProviderName").autocomplete({source:function(e,t){f.ajax({url:"/search-providers-for-events/"+e.term,dataType:"jsonp",success:function(e){t(e);if(e==""){f('input[name="event_request_provider_name"]').val("")}},processResults:function(e){f.each(e,function(e,t){if(typeof t.unconnected!=="undefined"){t.text=t.text+t.unconnected}});return{results:e}}})},minLength:2,select:function(e,t){e.preventDefault();f(this).val("");if(t.item){if(t.item.producer_id=="nonregProducer2020"){var n=t.item.value.split("-");var i=n[1]}else{var i=t.item.value}var r={name:i,id:t.item.producer_id,unconnected:t.item.unconnected};if(i!=""){var a=f('select[name="super_sector"]').find("option:selected").text();if(a=="Select a sector"){a=""}var o=f('select[name="analyst_side_event_type"]').find("option:selected").text();if(o=="Select an event type"){o=""}var s=f('select[name="analyst_category"]').find("option:selected").text();var l=o.replace("Select an event type","");f.fn.createAnalystEventTitle(s,a,o,i)}if(t.item.producer_id!="nonregProducer2020"){f.request("calendarPage::onRenderCalendarEventPopupAnalystsDropdownContent",{data:{producer_id:t.item.producer_id},complete:function(e){var t=e.responseJSON.results;if(t.length>1){f('select[name="analysts[]"]').attr("disabled",false);f('select[name="analysts[]"]').select2("destroy").empty().select2({data:t,placeholder:f('select[name="analysts[]"]').data("empty-option-label"),allowClear:true,width:"100%"})}else{f('select[name="analysts[]"]').attr("disabled",true);f('select[name="analysts[]"]').select2({placeholder:""})}}})}else{f('select[name="analysts[]"]').empty();f('select[name="analysts[]"]').attr("disabled",true);f('select[name="analysts[]"]').select2({placeholder:""})}f.fn.createAndAppendProducerCard(r,f(".white-popup.calendar-event-item-content").find(".selected_producers_cards_wrapper"))}if(f('.input:hidden[name="new_provider_for_event_provider_name"]').val()!=""){f('input[name="event_request_provider_name"]').prop("readOnly",true);f('input[name="event_request_provider_name"]').removeAttr("placeholder")}},open:function(e){f("ul.ui-autocomplete.ui-menu").width(380);f("ul.ui-autocomplete").addClass("customWidth");f(".ui-autocomplete").css("height","auto");var t=f(e.target);inputTop=t.offset().top;inputHeight=t.height();autocompleteHeight=f(".ui-autocomplete").height();windowHeight=f(window).height();if(inputHeight+inputTop+autocompleteHeight>windowHeight){f(".ui-autocomplete").css("height",windowHeight-inputHeight-inputTop-20+"px")}},close:function(){f(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})});f(document).delegate("#corporateProviderName","keyup",function(){f("#corporateProviderName").autocomplete({source:function(e,t){f.ajax({url:"/search-providers-for-events/"+e.term,dataType:"jsonp",success:function(e){t(e)},processResults:function(e){f.each(e,function(e,t){if(typeof t.unconnected!=="undefined"){t.text=t.text+t.unconnected}});return{results:e}}})},minLength:1,select:function(e,t){e.preventDefault();f(this).val("");if(t.item){if(t.item.producer_id=="nonregProducer2020"){var n=t.item.value.split("-");var i=n[1]}else{var i=t.item.value}var r={name:i,id:t.item.producer_id,unconnected:t.item.unconnected};if(t.item.producer_id!="nonregProducer2020"){f.request("calendarPage::onRenderCalendarEventPopupAnalystsDropdownContent",{data:{producer_id:t.item.producer_id},complete:function(e){var t=e.responseJSON.results;if(t.length>1){f('select[name="analysts[]"]').attr("disabled",false);f('select[name="analysts[]"]').select2("destroy").empty().select2({data:t,placeholder:f('select[name="analysts[]"]').data("empty-option-label"),allowClear:true,width:"100%"})}else{f('select[name="analysts[]"]').attr("disabled",true);f('select[name="analysts[]"]').select2({placeholder:""})}}});f.fn.createAndAppendCorporateProducerCard(r,f(".white-popup.calendar-event-item-content").find(".selected_corporate_producers_cards_wrapper"))}else{f('select[name="analysts[]"]').empty();f('select[name="analysts[]"]').attr("disabled",true);f('select[name="analysts[]"]').select2({placeholder:""})}}if(f('.input:hidden[name="new_corporate_provider_for_event_provider_name"]').val()!=""){f('input[name="corporate_request_provider_name"]').prop("readOnly",true);f('input[name="corporate_request_provider_name"]').removeAttr("placeholder")}},open:function(e){f("ul.ui-autocomplete.ui-menu").width(380);f("ul.ui-autocomplete").addClass("customWidthstyle");f(".ui-autocomplete").css("height","auto");var t=f(e.target);inputTop=t.offset().top;inputHeight=t.height();autocompleteHeight=f(".ui-autocomplete").height();windowHeight=f(window).height();if(inputHeight+inputTop+autocompleteHeight>windowHeight){f(".ui-autocomplete").css("height",windowHeight-inputHeight-inputTop-20+"px")}},close:function(){f(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})});f(document).delegate("#eventCompanyName","keyup",function(){f("#eventCompanyName").autocomplete({source:function(e,t){f.ajax({url:"/search-company-on-calendar-event-popup/"+e.term,dataType:"jsonp",success:function(e){e.sort((e,t)=>e.covered<t.covered?1:-1);t(e)}})},minLength:1,select:function(e,t){e.preventDefault();f(this).val("");if(t.item){if(t.item.company_id=="nonregComapny2020"){var n=t.item.value.split("-");var i=n[1]}else{var i=t.item.value}var r={isin:t.item.company_isin,name:i,id:t.item.company_id,ticker:t.item.company_ticker};if(i!=""){var a=f('select[name="corporate_side_event_type"]').find("option:selected").text();if(a=="Select an event type"){a=""}var o=f('select[name="corporate_category"]').find("option:selected").text();var s=[];f('input[name="participantroles[]"]:checked').each(function(){s.push(" "+this.value)});var l=f('input:hidden[name="new_company_name_for_event"]').val();var n=i.split("|");l=n[1].trim()}f.fn.createAndAppendCompanyCard(r,f(".white-popup.calendar-event-item-content").find(".selected_companies_cards_wrapper"))}if(f('.input:hidden[name="new_company_name_for_event"]').val()!=""){f('input[name="events_popup_select2_companies"]').prop("readOnly",true);f('input[name="events_popup_select2_companies"]').removeAttr("placeholder")}},open:function(){f("ul.ui-autocomplete.ui-menu").width(380);f("ul.ui-autocomplete").addClass("customWidth")},close:function(){f(this).removeClass("ui-corner-top").addClass("ui-corner-all")}}).autocomplete("instance")._renderItem=function(e,t){return f("<li>").append(t.label+t.covered).appendTo(e)}});f(document).delegate(".teamMemberinfo i","mouseover",function(e){f(".teamMember_info_hover").css("display","block")});f(document).delegate(".teamMemberinfo i","mouseout",function(e){f(".teamMember_info_hover").css("display","none")});f(document).delegate("#caluserrating","mouseover",function(e){var t=f(this).attr("data-calID");f("#Cid-"+t+".eventUserRating").css("display","block")});f(document).delegate("#caluserrating","mouseout",function(e){f(".eventUserRating").css("display","none")});f(document).delegate("#calUserLogEntry","mouseover",function(e){f(".userLogEntryDetail").css("display","block")});f(document).delegate("#calUserLogEntry","mouseout",function(e){f(".userLogEntryDetail").css("display","none")});f(document).delegate("#logActivityDate","mouseover",function(e){f(".eventActivityDate").css("display","block")});f(document).delegate("#logActivityDate","mouseout",function(e){f(".eventActivityDate").css("display","none")});f(document).delegate("#logActivityTime","mouseover",function(e){f(".eventActivityTime").css("display","block")});f(document).delegate("#logActivityTime","mouseout",function(e){f(".eventActivityTime").css("display","none")});f("#notificationCalendarRatingWrapper").each(function(){f(this).on("click",".star.rating",function(e){if(!f(this).parent().hasClass("disabled")){f(this).parent().addClass("disabled").attr("data-stars",f(this).data("rating"));f.request("notificationCenter::onSaveCalendarRating",{data:{calendar_id:f(this).parent().data("calendar-id"),rating:f(this).data("rating")},complete:function(e){}})}})});f(document).on("change",'select[name="calendar_template"]',function(){var e=f(this).val();if(e!="analyst"||e!="corporate"){$(e)}if(e=="analyst"){f(".cal_corporate_event").css("display","none");f(".cal_analyst_event").css("display","block");f(".esg_calendar_event").css("display","none");f("#interationsEventSave").addClass("save_private_calendar_event");f("#interationsEventSave").removeClass("save_corporate_calendar_event");f(".white-popup.calendar-event-item-content .selected_producers_cards_wrapper .delete_card").trigger("click");f(".white-popup.calendar-event-item-content .selected_corporate_producers_cards_wrapper .delete_card").trigger("click");f(".white-popup.calendar-event-item-content .selected_calendar_company_card .delete_card").trigger("click");f(".save_private_calendar_event").removeClass("disabled");f(".calendarTrigers").css("display","block");f(".esgCalendarTrigers").css("display","none");f(".save_private_calendar_event").show()}else if(e=="corporate"){f(".cal_corporate_event").css("display","block");f(".cal_analyst_event").css("display","none");f(".esg_calendar_event").css("display","none");f("#interationsEventSave").removeClass("save_private_calendar_event");f("#interationsEventSave").addClass("save_corporate_calendar_event");f(".white-popup.calendar-event-item-content .selected_producers_cards_wrapper .delete_card").trigger("click");f(".white-popup.calendar-event-item-content .selected_corporate_producers_cards_wrapper .delete_card").trigger("click");f(".white-popup.calendar-event-item-content .selected_calendar_company_card .delete_card").trigger("click");f(".save_corporate_calendar_event").removeClass("disabled");f(".calendarTrigers").css("display","block");f(".save_corporate_calendar_event").show();f(".esgCalendarTrigers").css("display","none")}else{f(".cal_corporate_event").css("display","none");f(".cal_analyst_event").css("display","none");f(".esg_calendar_event").css("display","block");f(".esgCalendarTrigers").css("display","block");f(".calendarTrigers").hide();f("#interationsEventSave").hide()}});f(document).on("change",'select[name="analyst_side_event_type"]',function(){var e=f(this).val();f('input[name="analyst_event_title"]').val(e);var t=f('select[name="super_sector"]').find("option:selected").text();var n=f('select[name="analyst_category"]').find("option:selected").text();if(t=="Select a sector"){t=""}var i=f('input:hidden[name="new_provider_for_event_provider_name"]').val();if(typeof i==="undefined"){i=""}else if(i==""){i=""}f.fn.createAnalystEventTitle(n,t,e,i)});f(document).on("change",'select[name="corporate_side_event_type"]',function(){var e=f(this).val();var t=f('select[name="corporate_category"]').find("option:selected").text();var n=[];f('input[name="participantroles[]"]:checked').each(function(){n.push(" "+this.value)});var i=f('input:hidden[name="new_company_name_for_event"]').val();if(typeof i==="undefined"){i=""}else if(i==""){i=""}else{var r=i.split("|");i=r[1].trim()}f('input[name="event_title"]').prop("readOnly",true)});f(document).on("change",'select[name="super_sector"]',function(){var e=f(this).find("option:selected").text();if(e=="Select a sector"){e=""}var t=f('select[name="analyst_side_event_type"]').find("option:selected").text();var t=f('select[name="analyst_side_event_type"]').find("option:selected").text();if(t=="Select an event type"){t=""}var n=f('select[name="analyst_category"]').find("option:selected").text();var i=t.replace("Select an event type","");var r=f('input:hidden[name="new_provider_for_event_provider_name"]').val();if(typeof r==="undefined"){r=""}else if(r==""){r=""}f.fn.createAnalystEventTitle(n,e,t,r);f('input[name="analyst_event_title"]').prop("readOnly",true)});f(document).delegate("input[type=checkbox][name=corporate_provider_checkbox]","click",function(e){if(f(this).is(":checked")){f('input:hidden[name="new_corporate_provider_for_event_provider_name"]').val("");f(".white-popup.calendar-event-item-content .selected_corporate_producers_cards_wrapper .delete_card").trigger("click");f('input[name="corporate_request_provider_name"]').prop("readOnly",true);f('input[name="corporate_request_provider_name"]').removeAttr("placeholder");f('input[name="corporate_request_provider_name"]').css("background","#dfe4ea")}else if(f(this).is(":not(:checked)")){f('input[name="corporate_request_provider_name"]').prop("readOnly",false);f('input[name="corporate_request_provider_name"]').attr("placeholder","Enter a provider name");f('input[name="corporate_request_provider_name"]').css("background","#ffffff")}});f(document).delegate("#edit_event_name","click",function(e){f('input[name="analyst_event_title"]').prop("readOnly",false);f('input[name="analyst_event_title"]').focus();f("#edit_event_name").hide()});f(document).delegate("#edit_event_name_corporate","click",function(e){f('input[name="event_title"]').prop("readOnly",false);f('input[name="event_title"]').focus();f("#edit_event_name_corporate").hide()});f(document).on("click",".save_calendar_rating",function(e){var t=f('input:hidden[name="rating"]').val();var n=f('input:hidden[name="calendar_id"]').val();f.request("calendarPage::onSavePastCalendarRaring",{data:{calendar_id:n,rating:t},complete:function(e){f.magnificPopup.close()}})});f(document).on("change",'#corporateStartDate input[name="_datepicker_start_date"]',function(e){var t=f('#corporateStartDate input:hidden[name="start_date"]').val();var n=moment(t).add(1,"hour");var i=moment(n).format("YYYY-MM-DD HH:mm:ss");var r=moment(n,"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY HH:mm");f('#corporateEndDate input:hidden[name="end_date"]').val(i);f('#corporateEndDate input[name="_datepicker_end_date"]').val(r);var a=f(this);if(moment(a.val(),"DD/MM/YYYY HH:mm").toDate().getTime()<(new Date).getTime()){a.closest("form").find(".rating_wrapper").show()}else{a.closest("form").find(".rating_wrapper").hide()}});f(document).on("change",'#analystStartDate input[name="_datepicker_start_date"]',function(){var e=f('#analystStartDate input:hidden[name="start_date"]').val();var t=moment(e).add(1,"hour");var n=moment(t).format("YYYY-MM-DD HH:mm:ss");var i=moment(t).format("DD/MM/YYYY HH:mm");f('#analystEndDate input:hidden[name="end_date"]').val(n);f('#analystEndDate input[name="_datepicker_end_date"]').val(i);f("#analystEndDate").attr("data-date",n);var r=f(this);if(moment(r.val(),"DD/MM/YYYY HH:mm").toDate().getTime()<(new Date).getTime()){r.closest("form").find(".rating_wrapper").show()}else{r.closest("form").find(".rating_wrapper").hide()}});f(document).on("change",'#corporateEndDate input[name="_datepicker_end_date"]',function(){f(".endDateError").css("display","none");var e=f(this);if(moment(e.val(),"DD/MM/YYYY HH:mm").toDate().getTime()<(new Date).getTime()){e.closest("form").find(".rating_wrapper").show()}else{e.closest("form").find(".rating_wrapper").hide()}});f(document).on("change",'#analystEndDate input[name="_datepicker_end_date"]',function(){f(".endDateError").css("display","none");var e=f(this);if(moment(e.val(),"DD/MM/YYYY HH:mm").toDate().getTime()<(new Date).getTime()){e.closest("form").find(".rating_wrapper").show()}else{e.closest("form").find(".rating_wrapper").hide()}});f(document).on("click","#cParticipantRole",function(){var e=[];f('input[name="participantroles[]"]:checked').each(function(){e.push(" "+this.value)});if(e!=""){f("#cParticipantRole").addClass("cParticipantRoledd")}});f(document).on("click",".save_corporate_calendar_event",function(){var e=[];f('input[name="participantroles[]"]:checked').each(function(){e.push(" "+this.value)});if(e!=""){f(".search_recommendation_filter_input").removeAttr("required");f("#cParticipantRole").removeClass("required")}else{f("#cParticipantRole").addClass("required")}});f(".events_popup_select2_companies").select2({minimumResultsForSearch:-1,selectOnClose:true});f(document).on("click",".calendarParticipantsDropdown .select2-container--default .select2-selection--multiple .select2-selection__choice",function(e){var t="";var n=f('input[name="public_event"]:checked').val();if(n==1){t="coporateSide"}else{t="analystsSide"}var i=f(this).attr("title");var r=f("."+t).find("option[value="+l+"]").attr("data-owner");var a="user-"+r;var o=f(this).children(".calendar_item").attr("id");var s=o.split("_");var l="user-"+s[1];var c=s[1];var d=f(this).attr("id","uid"+s[1]);var u=f(this).position();if(i=="user"){f(".events_popup_select2 ").select2("close");f(".assignowner").css("display","block");f(".assignowner").css({left:u.left});f(".assignowner").css({top:u.top-25});f(".define_owner").click(function(e){p(i,o,c,l,a,t)});f(".remove_cal_user").click(function(){f("#uid"+s[1]).children(".select2-selection__choice__remove").trigger("click");f(".events_popup_select2 ").select2("close");f(".assignowner").css("display","none")})}});function p(e,t,n,i,r,a){f(".select2-selection__choice").each(function(){var e=f(this).attr("title");if(e=="owner"||e=="user"){f(this).attr("title","user")}});f("."+a).find("option").attr("disabled",false);f(".assignowner").css("display","none");f("#uid"+n).attr("title","owner");f(".tusers>option").attr("title","user");if(a=="coporateSide"){var o=f('input:hidden[name="corporate_owner"]').val(n);var s=f('input:hidden[name="corporate_owner"]').val()}else{var o=f('input:hidden[name="analyst_owner"]').val(n);var s=f('input:hidden[name="analyst_owner"]').val()}var l="user-"+s;f("."+a).find("option[value="+l+"]").attr("title","owner");f("."+a).find("option[value="+l+"]").attr("selected","selected");f("."+a).find("option[value="+r+"]").prop("disabled",!f("."+a).find("option[value="+r+"]").prop("disabled"));function c(e){return f('<span id="user_'+f(e.element).data("select2-id")+'" class="calendar_item" ><i class="fas '+f(e.element).data("icon")+'"></i> '+e.text+"</span>")}f(".events_popup_select2").each(function(){var e=f(this).data("empty-option-label");f(this).select2({placeholder:e,allowClear:true,width:"100%",templateSelection:c,templateResult:c})})}f(document).mouseup(function(e){var t=f(".assignowner");if(!f(".assignowner").is(e.target)&&!t.is(e.target)&&t.has(e.target).length==0){t.hide()}});f(document).click(function(e){var t=e.target.id;var n=e.target.tagName;if(!f(e.target).closest("#cal_interaction_events").length&&e.target.tagName!="LI"&&e.target.tagName!="I"&&e.target.tagName!="SPAN"){f("#cal_popup_waring_box").css("display","block");f("#cal_interaction_events").css("opacity","0.7")}if(t=="cal_quit_lose_rp"){f("#cal_popup_waring_box").css("display","none");f.magnificPopup.close()}if(t=="cal_contine_to_rp"||t=="cal_contine_to_rp_icon"){f("#cal_popup_waring_box").css("display","none");f("#cal_interaction_events").css("opacity","unset")}});f(document).delegate('input[name="new_provider_for_event_provider_name"],input[name="events_popup_select2_companies"],select[name="super_sector"],select[name="analyst_side_event_type"],select[name="corporate_side_event_type"]',"change",function(){f(".form-required-error").hide();f('input[name="analyst_event_title"]').parent().removeClass("has-error");f('input[name="event_title"]').parent().removeClass("has-error")});f(document).delegate('select[name="analyst_category"]',"change",function(){var e=this.value;var t=f('select[name="super_sector"]').find("option:selected").text();if(t=="Select a sector"){t=""}var n=f('select[name="analyst_side_event_type"]').find("option:selected").text();if(n=="Select an event type"){n=""}var i=f('input:hidden[name="new_provider_for_event_provider_name"]').val();if(typeof i==="undefined"){i=""}else if(i==""){i=""}if(e!="Equity"){f("#sectorstar").hide();f('select[name="super_sector"]').prop("required",false)}else{f("#sectorstar").show();f('select[name="super_sector"]').prop("required",true)}f.fn.createAnalystEventTitle(e,t,n,i)});f(document).delegate('select[name="corporate_category"]',"change",function(){var e=this.value;var t=f('select[name="corporate_side_event_type"]').find("option:selected").text();if(t=="Select an event type"){t=""}var n=[];f('input[name="participantroles[]"]:checked').each(function(){n.push(" "+this.value)});var i=f('input:hidden[name="new_company_name_for_event"]').val();if(typeof i==="undefined"){var i=""}else if(i==""){var i=""}else{var i=i.split("|");i=i[1].trim()}});f.fn.createAnalystEventTitle=function(e,t,n,i){if(i!=""&&e!=""&&t!=""&&n!=""){finaltext=e+" - "+t+" - "+n+" ("+i+")"}else if(i!=""&&e!=""&&n!=""){finaltext=e+" - "+n+" ("+i+")"}else if(i!=""&&e!=""&&t!=""){finaltext=e+" - "+t+" ("+i+")"}else if(n!=""&&e!=""&&t!=""){finaltext=e+" - "+n+" - "+t}else if(i!=""&&e!=""){finaltext=e+" ("+i+")"}else if(t!=""&&e!=""){finaltext=e+" - "+t}else if(n!=""&&e!=""){finaltext=e+" - "+n}else if(i!=""){finaltext="("+i+")"}else{finaltext=e}f('input[name="analyst_event_title"]').val(finaltext)};f.fn.createCorporateEventTitle=function(e,t,n,i){if(i!=""&&e!=""&&t!=""&&n!=""){finaltext=e+" - "+t+" - "+n+" ("+i+")"}else if(i!=""&&e!=""&&n!=""){finaltext=e+" - "+n+" ("+i+")"}else if(i!=""&&e!=""&&t!=""){finaltext=e+" - "+t+" ("+i+")"}else if(n!=""&&e!=""&&t!=""){finaltext=e+" - "+t+" - "+n}else if(i!=""&&e!=""){finaltext=e+" ("+i+")"}else if(t!=""&&e!=""){finaltext=e+" - "+t}else if(n!=""&&e!=""){finaltext=e+" - "+n}else if(i!=""){finaltext="("+i+")"}else{finaltext=e}f('input[name="event_title"]').val(finaltext)};f.fn.createAndAppendListView=function(e,t){var n=window.location.pathname;path_name1=n.substring(1);var i=path_name1.split("/");if(e==="listMonth"){f.request("calendarPage::onAddNewListView",{data:{eventData:e,companyisin:t},complete:function(e){if(path_name1=="calendar"){f("#private_calendar").css("display","none")}else{f("#private_calendar").empty();f("#private_calendar").append(e.responseJSON.resultHtml)}if(path_name1!="calendar"){f("#private_calendar").empty();f(".events_list_view_top").remove();f(".events_list_view_table").remove();f("#private_calendar").append(e.responseJSON.resultHtml)}f("#private_calendar_list").css("display","block");f(".show_calendar_team_logs_btn").css("display","none");f("#private_calendar_list").empty();f("#private_calendar_list").append(e.responseJSON.resultHtml);r()}})}else{f("#private_calendar").css("display","block");f("#private_calendar_list").css("display","none");f(".show_calendar_team_logs_btn").css("display","block")}};function r(){f("#calEventsSdatePicker").datepicker({dateFormat:"yy-mm-dd",onSelect:function(e){var t=new Date(e);var n=new Date(f("#calEventsEdatePicker").val());f("#calEventsEdatePicker").datepicker("option","minDate",e);if(n<t){f("#calEventsEdatePicker").datepicker("setDate",t);f("#calEventsSdatePicker").datepicker("hide");f(".calendar-events-listview-filter").change();f("#calEventsEdatePicker").datepicker("show");f("#calEventsEdatePicker").datepicker("focus")}f(".calendar-events-listview-filter").change()}});f("#calEventsEdatePicker").datepicker({dateFormat:"yy-mm-dd",minDate:new Date(f("#calEventsSdatePicker").val())})}f(document).delegate(".calendar-events-listview-filter","change",function(){var e=f('select[name="event_type_list"]').val();var t=f('select[name="event_type_author"]').val();var n=f("#calEventsSdatePicker").length>0?f("#calEventsSdatePicker").val():"";var i=f("#calEventsEdatePicker").length>0?f("#calEventsEdatePicker").val():"";f.request("calendarPage::onFilterCalendarEvents",{data:{eventTypeList:e,eventAuthor:t,eventStartDate:n,eventEndDate:i},complete:function(e){var t=window.location.pathname;path_name1=t.substring(1);f(".events-list-view-top-date-range").remove();if(path_name1=="calendar"){f("#private_calendar").empty();f(".events_list_view_top").remove();f(".events_list_view_table").remove();f("#private_calendar_list").append(e.responseJSON.resultHtml)}else{f("#private_calendar").empty();f(".events_list_view_top").remove();f(".events_list_view_table").remove();f("#private_calendar").append(e.responseJSON.resultHtml)}r()}})});var t=0;var n;f(document).on("click","#downloadCalendarEvents",function(){var e="calendarPage::onOrganizationEventsDownload";var t=f('select[name="event_type_list"]').val();var n=f('select[name="event_type_author"]').val();var i=f("#calEventsSdatePicker").length>0?f("#calEventsSdatePicker").val():"";var r=f("#calEventsEdatePicker").length>0?f("#calEventsEdatePicker").val():"";f.request(e,{data:{eventTypeList:t,eventAuthor:n,eventStartDate:i,eventEndDate:r},beforeSend:function(){},complete:function(e){if(e.responseJSON.fileId!=undefined){e=e.responseJSON;if(e.CountCompanies>0){var t=e.response_html;f.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false},0);f("#progressbar").progressbar({value:0});a(e)}}},success:function(){},error:function(){f.magnificPopup.close()}})});function a(e){var t=0;var n="calendarPage::onProcessEventsChunk";f.request(n,{data:e,success:function(e){t=e.processedCompanies/e.CountCompanies*100;t=t>=100?100:t;f("#progressbar").progressbar({value:t});if(e.CountCompanies!=undefined&&e.processedCompanies<e.CountCompanies){a(e)}else if(e.processingFinished=="TRUE"){f("#progressbar").progressbar({value:100});o(e.fileId);if(f("#upload-coverage").length){f("#upload-coverage").removeAttr("disabled")}f.magnificPopup.close()}e.DownloadSelection;e.customFields},error:function(){f.oc.stripeLoadIndicator.hide()},complete:function(e){if(e.responseJSON.processingFinished!=undefined&&e.responseJSON.processingFinished=="TRUE"){console.log("second");s(e.responseJSON.fileId)}}})}function o(e){window.location.href="/events-file-download/"+e}function s(e){f.request("calendarPage::onDeleteEventsFile",{data:{fileUID:e},complete:function(e){console.log(e)}})}f(document).delegate("#events_export_cancel","click",function(){f.magnificPopup.close()});f(document).delegate("#esgformclick","click",function(){if(null!=window.calendarTemplatesApp){window.calendarTemplatesApp.updateFieldValues()}});f(document).delegate("#esgeventdelte","click",function(){var e=f('input[name="esg_event_id"]').val();f.request("calendarPage::onDeleteEsgInteraction",{data:{esg_id:e},complete:function(e){}})});function l(e){f.request("calendarPage::onRenderCalendarTemplateCompanies",{data:{company_type:e},complete:function(e){f.magnificPopup.close();location.reload()}})}function h(e,t){f("#esgformclick").addClass("disabled");f("#esgformCancelClick").addClass("disabled");f.request("calendarPage::onSaveEsgInteraction",{data:{esgFormData:e,apiCall:t},complete:function(e){}})}function c(e,n,i){var r=[];e.map(function(t){if(t.rules.length==1){t.rules.map(function(e){if(i==e.conditionField.uuid){if(e.conditionMatch.indexOf(",")>-1){r=e.conditionMatch.split(",");if(jQuery.inArray(n,r)!==-1){t.required=1003}else{t.required=1004}}else{if(n==e.conditionMatch){t.required=1003}else{t.required=1004}}}})}})}function d(e,t){var n=f(e.element).parent().data("tagstyle");var i=f(e.element).parent().prop("multiple");if(undefined===n){n="default"}var r=f('<span class="field-tag field-tag--'+n+(!i?" field-tag--single-choice":"")+'"><span></span></span>');if(!e.id){r=f('<span style="color: #A4B0BE"><span></span></span>')}r.find("span").text(e.text);return r}const u={props:["name","required","rule"],template:'<div class="flex--container" style="align-items: baseline;"><div><label :id="rule">{{ name }}<span :id="required" v-if="(required == 2002 || required == true) || (rule == 1003)" style="color: #ff4757;">*</span></label></div></div>'};const m={props:["uuid","name","placeholder","currentVersion","required","initparameters","tagstyle","currentstate","initvalues"],components:{"custom-label":u},data:function(){return{data:{type:"company",companyType:"public",issuer:"",issuer_dispaly:""},parameters:{multiple:"false",countries:"[]",setCompanyType:"public",options:[]}}},methods:{getIssuerValue:function(e){this.data.type=e;this.$forceUpdate()},setCompanyType:function(e){f("#searchResult_"+this.uuid+".searchResult_esg_list").css("display","none");f("#searchResult_"+this.uuid+".searchResult_esg_list").css("border","unset");this.data.companyType=e;this.$forceUpdate();f("#searchResult_"+this.uuid+".searchResult_esg_list").empty();f("#esg_selected_issuer").empty();this.data.issuer_dispaly="";this.$forceUpdate();return this.data.companyType},queryForCompany:function(e){var t=e.target.value;v(t,this.uuid,this,this.data.companyType)},getvalue:function(e){}},template:`<div class="form-group no-float">
            <custom-label :name="name"  v-bind:required="required"></custom-label>
            <div class="calendarTemplateRadioBtns">
                <label id="" class="radio-inline" @click="getIssuerValue(\'company\')">
                    <input type="radio" :name="name" value="company" :checked="data.type == 'company'">Company
                </label>
                <label class="radio-inline" style="padding-left: 0px;margin-left: -15px;" @click="getIssuerValue(\'sovereign\')">
                    <input type="radio" :name="name" value="sovereign" :checked="data.type == 'sovereign'">Sovereign
                </label>
            </div>
            <div id="issuerSovereignContainer" class="selectissuerSovereign" style="margin-top: 7px;margin-top: 10px;" v-show="'sovereign' == data.type">
                <div class="flex--container">
                    <select v-model="data.issuer" :id="\'customDropdownInstance_\' + uuid" class="form-control" data-tagstyle="dropdown" :required="required" style="width:100%">
                        <option v-for="(key , value) in parameters.countries" :key="value" :value="value">{{key}}</option>
                    </select>
                </div>
            </div>
            <div id="issueCompanyContainer" v-show="'company' == data.type">
                <div class="flex--container" style="justify-content: center;margin-bottom: 10px;margin-top: 10px;">
                    <div style="margin-left: 10px" class="company-radio-buttons">
                        <button type="button" class="company-radio-button" :class="{\'company-radio-button--activated\': \'public\' == data.companyType}" @click="setCompanyType(\'public\')">PUBLIC</button>
                        <button type="button" class="company-radio-button" :class="{\'company-radio-button--activated\': \'private\' == data.companyType}" @click="setCompanyType(\'private\')">PRIVATE</button>
                    </div>
                </div>
                <div class="flex--container">
                    <input :id="\'customDropdownInstance_company_\' + uuid" type="text" @change="getvalue" @keyup="queryForCompany" class="form-control customIssuerCompany" v-model="data.issuer_dispaly"   placeholder="Enter a company name" v-bind:required="required" autocomplete="off">
                    <p class="esg_01" id="esg_selected_issuer"></p>
                    <ul :id="\'searchResult_\'+uuid" class="searchResult_esg_list"></ul>

                </div>
            </div>
        </div>`,mounted:function(){const i=this;if(undefined!=i.initvalues){i.data=Object.assign(i.data,i.initvalues);if(undefined!=i.initvalues.type){if(i.initvalues.type!="sovereign"){i.data.issuer=i.initvalues.issuer;i.$forceUpdate();const e=i.initvalues.issuer.split("@@");i.data.issuer_dispaly=e[1]}}i.$forceUpdate()}var t={};i.initparameters.typeConfiguration.map(function(e){if(e.property=="countries"){t[e.property]=JSON.parse(e.value)}});i.parameters=Object.assign(i.parameters,t);const e=i.data.type.split(":");if(Array.isArray(e)){i.data.type=e[0];i.data.companyType=2<=e.length?e[1]:"public"}this.$nextTick(function(){const n="#customDropdownInstance_"+i.uuid;f(n).select2({placeholder:i.parameters.placeholder,minimumResultsForSearch:-1,maximumSelectionLength:1,templateSelection:d,allowClear:i.parameters.options.length>1,multiple:"false"==i.parameters.multiple});f(n).on("change",function(){const e=f(n).val();if(Array.isArray(e)&&e!=null&&e!=""){var t=C(e);i.data.issuer=t}else{i.data.issuer=e}});i.$forceUpdate();var e=f("#customDropdownInstance_company_"+i.uuid).val();if(disableForViewOnly){f(n).prop("disabled",true)}});if(disableForViewOnly){f(".company-radio-button").prop("disabled",true);f(".radio-inline").css("pointer-events","none");f(".calendar-radio-button").prop("disabled",true)}}};function v(e,a,o,t){var n="";f.ajax({type:"GET",url:"search-company-for-esg",dataType:"json",data:{parameter:e,companyType:t},success:function(e){var t=e.length;f("#searchResult_"+a+".searchResult_esg_list").empty();f("#searchResult_"+a+".searchResult_esg_list").css("display","block");if(t>=1){f("#searchResult_"+a+".searchResult_esg_list").css("overflow-y","scroll");f("#searchResult_"+a+".searchResult_esg_list").css("border","1px solid #cccccc")}else{f("#searchResult_"+a+".searchResult_esg_list").css("overflow-y","unset");f("#searchResult_"+a+".searchResult_esg_list").css("border","unset")}for(var n=0;n<t;n++){var i=e[n]["id"];var r=e[n]["text"];f("#searchResult_"+a+".searchResult_esg_list").append("<li data-id='"+i+"'>"+r+"</li>")}f("#searchResult_"+a+".searchResult_esg_list li").bind("click",function(){g(this,o,a);f("#searchResult_"+a+".searchResult_esg_list").css("display","none");f("#searchResult_"+a+".searchResult_esg_list").css("border","unset")})},error:function(e,t,n){}})}f(document).delegate("#esg_issuer_clear","click",function(){var e=f(this);var t=e.data("uuid");var n=e.data("dvalue");f("#searchResult_"+t+".searchResult_esg_list").empty();f("#esg_selected_issuer").empty();f("#customDropdownInstance_company_"+t).val("")});function g(e,t,n){var i=f(e).attr("data-id");var r="";var a=f(e).text();var r='<span class="esg_span">'+a+' </span><i class="fal fa-times" id="esg_issuer_clear" data-uuid='+n+"></i>";f("#esg_selected_issuer").append(r);t.data.issuer=i;t.data.issuer_dispaly=a}const _={props:["uuid","name","placeholder","currentVersion","initparameters","initvalues","currentVersion","required","tagstyle"],components:{"custom-label":u},data:function(){return{data:{value:""},parameters:{alphanum_max:65535}}},methods:{queryForInput(e){const t=e.target.value;this.data.selected=t;f("#customDropdownInstance_"+this.uuid).css("border","1px solid #cccccc")}},template:`<div class="form-group no-float" v-bind:class="{'has-error': undefined !== parameters.alphanum_max && data.value.length > parameters.alphanum_max}">
        <custom-label v-bind:name="name" v-bind:required="required"></custom-label>
        <input type="text" class="form-control flex-grow " v-model="data.value" @keyup="queryForInput"  v-bind:placeholder="placeholder" v-bind:required="required" :id="\'customDropdownInstance_\' + uuid">
        <p class="help-block text-danger" style="margin-top: 5px" v-if="undefined !== parameters.alphanum_max && data.value.length > parameters.alphanum_max">This text is too long. The max length allowed is {{ parameters.alphanum_max }} characters.</p>
    </div>`,mounted:function(){const e=this;this.$nextTick(function(){if(undefined!=e.initvalues){e.initvalues;e.data=Object.assign(e.data,e.initvalues)}if(undefined!=e.initparameters){e.parameters=Object.assign(e.parameters,e.initparameters)}e.$forceUpdate()})}};const y={props:["uuid","name","placeholder","currentVersion","initparameters","required","initvalues","tagstyle","rules","fuuid"],components:{"custom-label":u},data:function(){return{data:{selectedValues:"",selected:"",required:true},parameters:{multiple:false,options:[]}}},template:`
    <div class="form-group no-float select-tag" id="esg-dropdown">
        <custom-label v-bind:name="name" v-bind:required="data.required" v-bind:rule="required"></custom-label>
        <select v-model="data.selectedValues" :id="\'customDropdownInstance_\' + uuid" class="form-control esg-dropdown" :multiple="parameters.multiple" :data-tagstyle="tagstyle">
            <option v-for="option in parameters.options" :key="option" :value="option" :class="\'field-tag--\'+tagstyle">{{ option }}</option>
        </select>
    </div>`,methods:{},mounted:function(){const r=this;let e=null;let t=[];r.rules.forEach(function(e){r.data.required=e.action;if("is_required"==e.action){r.data.required==false;return}else{}t.push(e)});if(undefined!=r.initvalues){r.data=Object.assign(r.data,r.initvalues)}if(undefined!=r.initparameters){var n={};r.initparameters.typeConfiguration.map(function(e){n[e.property]="options"===e.property?e.value.split(","):e.value});r.parameters=Object.assign(r.parameters,n)}if(this.parameters.multiple){this.data.selectedValues=this.data.selectedValues.split(",")}this.$nextTick(function(){const i="#customDropdownInstance_"+r.uuid;f(i).select2({placeholder:r.placeholder,minimumResultsForSearch:-1,templateSelection:d,multiple:r.parameters.multiple});f(i).on("change",function(){f(i).parents(".form-group").removeClass("is-invalid");f(i).parents(".form-group").find(".is-invalid-e").hide();const e=f(i).val();var t=window.calendarTemplatesApp.getFormValues();c(t,e,r.fuuid);if(Array.isArray(e)&&e!=null&&e!=""){var n=C(e);r.data.selected=n}else{r.data.selected=e}r.data.selectedValues="";r.$forceUpdate()});f(i).val(r.data.selectedValues).trigger("change");if(disableForViewOnly){f(i).prop("disabled",true)}})}};const b={props:["uuid","name","placeholder","currentVersion","initparameters","required","initvalues","tagstyle","index"],components:{"custom-label":u},data:function(){return{data:{options:[],availableOptions:[],lablenames:[],selectedOptions:[],iselectedOptions:[],selected:"",lindex:0,selection:""},parameters:{dropdown_multiple_choice:true,dropdown_options:[]}}},methods:{recursiveTreeExplorer:function(n,e,i=0,r=[],a=[]){const o=this;if(e!==null&&typeof e=="object"){Object.entries(e).forEach(function([e,t]){if(undefined===a[i]){a[i]=[]}if(0===i||o.checkTailSelection(n,r)){a[i].push(e)}r.push(e);o.recursiveTreeExplorer(n,t,i+1,r,a);r.pop()})}return a},checkTailSelection:function(t,n){for(let e=0;e<n.length;e++){if(undefined===t[e]||!t[e].includes(n[e])){return false}}return true},stringifyHirerarchicalSelection(e){let t="";e.forEach(function(e){t+=e.join("@")+"@@"});return t.substring(0,t.length-2)},getHierarchicalSelection(e){const t=e.split("@@");let n=[];t.forEach(function(e){n.push(e.split("@"))});return n},updateSelection:function(e,t){if(e!=0){this.data.lindex=e+1}this.data.availableOptions=this.recursiveTreeExplorer(this.data.selectedOptions,this.data.options);this.data.selected=this.stringifyHirerarchicalSelection(this.data.selectedOptions)},formatOptions:function(){this.selectedOptions.push({id:"",text:"Select"});for(let e in this.options){this.data.selectedOptions.push({id:e,text:this.options[e]})}},isVShowVisible:function(e){if(this.data.availableOptions[1].length>2){return true}if(this.data.availableOptions[e].length>0){return true}},showDropDowns:function(e){if(this.data.selection==""){return this.data.selectedOptions[this.data.level_index]}else{return this.data.selectedOptions[e]}}},template:`
    <div>
        <div v-show="isVShowVisible(level_index)" v-for="(level_name, level_index) in data.lablenames" :id="level_index" :data-tagstyle="level_index" class="form-group no-float select-tag selectherical">
            <custom-label v-bind:name="level_name" v-bind:required="required"></custom-label>
            <select @change="updateSelection(level_index, $event)"  v-model="showDropDowns(level_index)" :id="\'customDropdownInstance_\' +level_index+ uuid" class="form-control" :multiple="parameters.dropdown_multiple_choice" :data-tagstyle="tagstyle">
                <option v-for="option in data.availableOptions[level_index]" :key="option" :value="option">{{ option }}</option>
            </select>
        </div>
    </div>`,mounted:function(){const a=this;if(undefined!=a.initvalues){a.data=Object.assign(a.data,a.initvalues)}if(undefined!=a.initparameters){var r={};var o={};var e=[];a.initparameters.typeConfiguration.map(function(e){if(e.property=="level_names"){r=e.value.split(",");a.data.lablenames=r}if(e.property=="options"){const i="#customDropdownInstance_0"+a.uuid;f(i).select2({});var t=a.getHierarchicalSelection(a.data.selection);o[e.property]=JSON.parse(e.value);a.data.options=JSON.parse(e.value);var n=a.recursiveTreeExplorer(t,a.data.options);a.data.availableOptions=n;a.data.selectedOptions=t;a.data.iselectedOptions=t;a.data.selected=a.stringifyHirerarchicalSelection(a.data.selectedOptions);if(disableForViewOnly){f(i).prop("disabled",true)}}})}this.$nextTick(function(){const t="#customDropdownInstance_0"+a.uuid;const n="#customDropdownInstance_1"+a.uuid;const i="#customDropdownInstance_2"+a.uuid;var r="";f(t).select2({placeholder:a.placeholder,templateSelection:d,minimumResultsForSearch:-1,maximumSelectionLength:1});f(t).on("change",function(){var e=[];r=f(i).val();itemsSelected=f(this).val();e.push(itemsSelected);a.data.selectedOptions=e;a.updateSelection(0,e);f(i).val(r);f(t).select2("close");f(n).val(null).trigger("change");f(i).val(null).trigger("change")});f(n).select2({placeholder:a.placeholder,templateSelection:d,minimumResultsForSearch:-1,maximumSelectionLength:1});f(n).on("change",function(){var e=[];itemsSelected=f(t).val();itemsSelected1=f(this).val();e.push(itemsSelected);e.push(itemsSelected1);a.data.selectedOptions=e;a.updateSelection(1,itemsSelected);f(n).select2("close");f(i).val(null).trigger("change")});f(i).select2({placeholder:a.placeholder,templateSelection:d,minimumResultsForSearch:-1,maximumSelectionLength:1});f(i).on("change",function(){var e=[];itemsSelected=f(t).val();itemsSelected1=f(n).val();itemsSelected2=f(this).val();e.push(itemsSelected);e.push(itemsSelected1);e.push(itemsSelected2);a.data.selectedOptions=e;a.updateSelection(2,itemsSelected);f(i).select2("close")});if(disableForViewOnly){f(t).prop("disabled",true);f(n).prop("disabled",true);f(i).prop("disabled",true)}})}};const w={props:["uuid","name","placeholder","currentVersion","initparameters","required","initvalues","tagstyle"],components:{"custom-label":u},data:function(){return{data:{selectedValues:"",selected:""},parameters:{multiple:false,options:[]}}},template:`
    <div class="form-group no-float select-sector" id:placeholder>
        <custom-label v-bind:name="name" v-bind:required="required"></custom-label>
        <select v-model="data.selectedValues" :id="\'customDropdownInstance_\' + uuid"  class="form-control" :multiple="parameters.dropdown_multiple_choice" :data-tagstyle="tagstyle" :required="required">
            <option v-for="option in parameters.options" :key="option.id" :value="option.id" :class="\'field-tag--\'+tagstyle">{{ option.name }}</option>
        </select>
    </div>`,mounted:function(){const n=this;if(undefined!=n.initvalues){n.data=Object.assign(n.data,n.initvalues)}if(undefined!=n.initparameters){var t={};n.initparameters.typeConfiguration.map(function(e){t[e.property]=JSON.parse(e.value)});n.parameters=Object.assign(n.parameters,t)}this.$nextTick(function(){const t="#customDropdownInstance_"+n.uuid;f(t).select2({placeholder:n.placeholder,minimumResultsForSearch:-1,templateSelection:d,allowClear:n.parameters.options.length>1,multiple:n.parameters.multiple});f(t).on("change",function(){const e=f(t).val();n.data.selected=e;n.$forceUpdate()});f(t).val(n.data.selectedValues).trigger("change");if(disableForViewOnly){f(t).prop("disabled",true)}})}};function C(e){if(Array.isArray(e)&&e!=null&&e!=""){var t=e.toString();return t}}const x={props:["uuid","name","placeholder","currentVersion","initparameters","required","initvalues","tagstyle"],components:{"custom-label":u},data:function(){return{data:{value:"no"},parameters:{}}},methods:{setBooleanDefault:function(e){this.data.value=e;this.$forceUpdate()}},template:`
    <div class="form-group no-float" style="padding-bottom: 15px">
        <custom-label v-bind:name="name" v-bind:required="required"></custom-label>
        <div style="margin-left: 10px" class="calendar-radio-buttons">
            <button type="button" class="calendar-radio-button" :class="{\'calendar-radio-button--activated\': \'yes\' == data.value}" @click="setBooleanDefault(\'yes\')">Yes</button>
            <button type="button" class="calendar-radio-button" :class="{\'calendar-radio-button--activated\': \'no\' == data.value}" @click="setBooleanDefault(\'no\')">No</button>
        </div>
    </div>`,mounted:function(){const e=this;this.$nextTick(function(){if(undefined!=e.initvalues){e.data=Object.assign(e.data,e.initvalues)}if(undefined!=e.initparameters){e.parameters=Object.assign(e.parameters,e.initparameters)}e.$forceUpdate()})}};const k={props:["uuid","name","placeholder","currentVersion","initparameters","required","initvalues","tagstyle"],components:{"custom-label":u},data:function(){var e=moment(new Date).format("YYYY-MM-DD");return{data:{value:e,selected:""},parameters:{boolean_default:"no"}}},methods:{dateSelected(e){this.$nextTick(()=>this.appointment.appointmet_date)}},template:`<div class="form-group no-float">
                    <custom-label v-bind:name="name"  v-bind:required="required">
                    </custom-label>
                    <div>
                        <input type="text" class="form-control flex-grow" id="calendarTempalePicker" v-model="data.value" @selected="dateSelected()" style="width: 87%;float: left;color: rgb(87, 96, 111);"/>
                        <label for="calendarTempalePicker" class="input-group-btn"><span class="btn btn-default" style="color: rgb(87, 96, 111);"><i class="fal fa-calendar"></i></span></label>
                    </div>
                </div>`,mounted:function(){const i=this;this.$nextTick(function(){if(undefined!=i.initvalues){i.data=Object.assign(i.data,i.initvalues)}if(undefined!=i.initparameters){i.parameters=Object.assign(i.parameters,i.initparameters)}i.$forceUpdate()});f("#calendarTempalePicker").datepicker({onSelect:function(e,t){var n=e;i.data.value=moment(n).format("YYYY-MM-DD");i.data.selected=moment(n).format("YYYY-MM-DD");i.$forceUpdate()}})}};Vue.component("custom-template-section",{props:["title","fields","data"],components:{"custom-issuer":m,"custom-dropdown":y,"custom-alphanumerical":_,"custom-radion-buttons":x,"custom-date-range":k,"custom-hierarchical-dropdown":b,"custom-sector-dropdown":w},methods:{getFieldValues:function(){},getDataFromField:function(t){const n=this;const e=this.$parent.esgDataValues;if(!Array.isArray(e)){return{}}let i=null;e.forEach(function(e){if(null!==i){return}if(e.fieldVersion.uuid!==t){return}i=n.convertToObject(e.value)});return null!==i?i:{}},convertToObject:function(e){let t={};e.forEach(function(e){t[e.property]=e.value});return t},getFieldConfiguration:function(e){}},template:`<div class="flex-container" >
        <div class="flexitem" v-show="fields.length > 0" style="flex: 100%;">
            <div class="form-group no-float">
                <label>EVENT NAME<span style="color: rgb(255, 71, 87);">*</span></label>
                <input type="text" placeholder="Enter a name for the event" name="esg_event_name" autocomplete="off" required>
                <input type="hidden" value="" name="esg_event_id">
            </div>
        </div>
        <div class="flexitem" v-show="fields.length > 0">
            <label style="width:100%">START DATE<span style="color: rgb(255, 71, 87);">*</span></label>
            <input style="width: 87%; float: left; color:#57606F;" type="text" placeholder="" name="esg_event_sdate" id="esgEventSdatePicker" autocomplete="off">
            <label class="input-group-btn" for="esgEventSdatePicker">
                <span class="btn btn-default" style="color:#57606F">
                    <i class="fal fa-calendar"></i>
                </span>
            </label>
        </div>
        <div class="flexitem" v-show="fields.length > 0">
            <label style="width:100%">END DATE<span style="color: rgb(255, 71, 87);">*</span></label>
            <input style="width: 87%; float: left; color:#57606F;" type="text" placeholder="" name="esg_event_edate" id="esgEventEdatePicker" autocomplete="off">
            <label class="input-group-btn" for="esgEventEdatePicker">
                <span class="btn btn-default" style="color:#57606F">
                    <i class="fal fa-calendar"></i>
                </span>
            </label>
        </div>
        <div class="flexitem" v-show="fields.length > 0" style="flex:100%">
            <label>NOTES</label>
            <textarea name="esg_event_description" rows="5" style="width: 100%;"></textarea>
        </div>
        <div class="flexitem" v-show="fields.length > 0" style="flex:100%">
            <label style="float:left; width:100%">LOCATION</label>
            <input type="text" style="width:50%;float:left;" placeholder="Enter a geographical or room location" name="esg_event_location" autocomplete="off">
        </div>
        <div class="flexitem" v-show="fields.length > 0" style="flex:100%">
            <hr class="calendarHr" style="border: 1px solid #CED6E0;
            width: 45%;"/>
        </div>
        <div v-for="field in fields" class="flexitem" :id=field.uuid >
        <custom-issuer v-if="'issuer' == field.currentVersion.type" :initvalues="getDataFromField(field.currentVersion.uuid)" :uuid="field.currentVersion.uuid"  :initparameters="field.currentVersion" v-bind:name="field.name" :tagstyle="field.currentVersion.type" placeholder="placeholder" v-bind:required="field.required"></custom-issuer>
        <custom-dropdown v-if="'dropdown' == field.currentVersion.type" :initvalues="getDataFromField(field.currentVersion.uuid)" :uuid="field.currentVersion.uuid"  :fuuid="field.uuid"  :initparameters="field.currentVersion"  v-bind:name="field.name" :tagstyle="field.currentVersion.type" v-bind:placeholder="field.placeholder" :rules="field.rules" v-bind:required="field.required"></custom-dropdown>
        <custom-alphanumerical v-if="'alphanumerical' == field.currentVersion.type" :initvalues="getDataFromField(field.currentVersion.uuid)" :uuid="field.currentVersion.uuid"  :initparameters="field.currentVersion" v-bind:name="field.name" :tagstyle="field.currentVersion.type" v-bind:placeholder="field.placeholder"  v-bind:required="field.required"></custom-alphanumerical>
        <custom-date-range v-if="'date' == field.currentVersion.type" :initvalues="getDataFromField(field.currentVersion.uuid)" :uuid="field.currentVersion.uuid"  :initparameters="field.currentVersion" :tagstyle="field.currentVersion.type" v-bind:name="field.name" v-bind:placeholder="field.placeholder"  v-bind:required="field.required"></custom-date-range>
        <custom-radion-buttons v-if="'switch' == field.currentVersion.type" :uuid="field.currentVersion.uuid" :initvalues="getDataFromField(field.currentVersion.uuid)" :initparameters="field.currentVersion"  v-bind:name="field.name" v-bind:placeholder="field.placeholder"  :tagstyle="field.currentVersion.type" v-bind:required="field.required"></custom-radion-buttons>
        <custom-hierarchical-dropdown  v-if="'hierarchical_dropdown' == field.currentVersion.type" :initvalues="getDataFromField(field.currentVersion.uuid)" :uuid="field.currentVersion.uuid" v-bind:uuid="field.uuid" :initparameters="field.currentVersion" v-bind:name="field.currentVersion" :tagstyle="field.currentVersion.type" v-bind:placeholder="field.placeholder" v-bind:required="field.required"></custom-hierarchical-dropdown>
        <custom-sector-dropdown v-if="'sector' == field.currentVersion.type" :uuid="field.currentVersion.uuid" :initvalues="getDataFromField(field.currentVersion.uuid)" :initparameters="field.currentVersion" :name="field.name" :tagstyle="field.currentVersion.type" v-bind:placeholder="field.placeholder" v-bind:required="field.required"></custom-sector-dropdown>
        </div>
    </div>`,mounted:function(){const e=this;f("#esgEventSdatePicker").datepicker({dateFormat:"yy-mm-dd",onSelect:function(e,t){var n=e;f("#esgEventSdatePicker").value=moment(n).format("YYYY-MM-DD")}});f("#esgEventEdatePicker").datepicker({dateFormat:"yy-mm-dd",onSelect:function(e,t){var n=e;f("#esgEventEdatePicker").value=moment(n).format("YYYY-MM-DD")}})}});window.calendarTemplatesApp=null;function S(){return new Vue({delimiters:["{$","$}"],data:{template:[],templateFieldValues:[],esgDataValues:[],apicall:"",customJosnArray:""},mounted(){this.$nextTick(function(){this.$forceUpdate()})},methods:{loadTemplateInformation:function(e){this.template=e;this.esgDataValues=e},postLoadTemplate:function(){this.getFormValues();this.$forceUpdate();f("body .mfp-wrap.mfp-close-btn-in.mfp-auto-cursor.mfp-ready").css("overflow","unset");f("#cal_interaction_events").css("visibility","visible")},getCalendarTemplate:function(e,n){if(undefined==e){return}if(n=="add"){var t="/calendar/template/section/"+e}else{var t="/calendar/esg/interaction/"+e}const i=this;this.apicall=n;if("add"===n){if(undefined!==window.templateCache[e]){i.loadTemplateInformation(window.templateCache[e]);i.postLoadTemplate(window.templateCache[e]);return}else{console.warn("The template is not ready on the cache",e)}}fetch(t).then(function(e){e.json().then(function(e){const t="add"===n?e:undefined!==e.data?e.data:e.datatemplate;i.loadTemplateInformation(t);i.template="add"===n?e:e.dataTemplate;i.esgDataValues="add"===n?e:e.data;if(n!="add"){f("input[name=esg_event_name]").val(e.name);f("input[name=esg_event_sdate]").val(moment(new Date(e.dateStart)).format("YYYY-MM-DD"));f("input[name=esg_event_edate]").val(moment(new Date(e.dateEnd)).format("YYYY-MM-DD"));f("input[name=esg_event_location]").val(e.location);f("textarea[name=esg_event_description]").val(e.description);f("input[name=esg_event_id]").val(e.uuid)}i.postLoadTemplate()})})},getFormValues:function(){const e=this;var n=[];var t=[];if(undefined!==this.template.fieldSections||undefined!==this.template.data){if("add"!==this.apicall){this.template.fieldSections.map(function(e,t){if(undefined!==e.fields){e.fields.map(function(e,t){n.push(e)})}})}else{var i=new Date;var r=moment().format("YYYY-MM-DD");var a=moment().add(1,"day").format("YYYY-MM-DD");f("input[name=esg_event_sdate]").val(r);f("input[name=esg_event_edate]").val(a);this.template.fieldSections.map(function(e){if(undefined!==e.fields){e.fields.map(function(e){n.push(e)})}})}}this.templateFieldValues=n;return n},updateFieldValues:function(){this.getTemplatedsValues()},getTemplatedsValues:function(){var e="";var r=false;if(this.apicall=="add"){e="add"}else{var t=f('input[name="esg_event_id"]').val();e=this.apicall+":"+t}var n=f("input[name=esg_event_name]").val();var i=T(f("input[name=esg_event_sdate]").val());var a=T(f("input[name=esg_event_edate]").val());var o=f("input[name=esg_event_location]").val();var s=f("textarea[name=esg_event_description]").val();const l=this.$children;var c=this.template;var d=[];r=n==""?true:false;l.map(function(e){e.$children.map(function(e){if("alphanumerical"===e.tagstyle){if(e.data.value.length>e.parameters.alphanum_max){r=true}}if(e.required==2002||e.required==1003){if(undefined==e.data.selected||e.data.selected==""||e.data.value==""){if(e.tagstyle=="alphanumerical"){if(e.data.value==""||e.data.value==undefined){r=true;f('<span class="is-invalid-e" style="color: #FF6B81;">Required field</span>').insertAfter("#customDropdownInstance_"+e.uuid);f("#customDropdownInstance_"+e.uuid).css("border","1px solid #FF6B81")}else{f("#customDropdownInstance_"+e.uuid).css("border","1px solid #cccccc")}}if(e.tagstyle=="issuer"){if(e.data.issuer==""){r=true;if(e.data.type=="sovereign"){f("#customDropdownInstance_"+e.uuid).next("span").after('<span class="is-invalid-e" style="color: #FF6B81">Required field</span>');var t=f("#customDropdownInstance_"+e.uuid);t.parents(".form-group").addClass("is-invalid")}else{f('<span class="is-invalid-e" style="color: #FF6B81;position: static;margin-left:-299px;margin-top: 35px;">Required field</span>').insertAfter("#customDropdownInstance_company_"+e.uuid);f("#customDropdownInstance_company_"+e.uuid).css("border","1px solid #FF6B81")}}}if(e.tagstyle=="dropdown"){if(undefined!=e.rules){if(e.rules[0]!=undefined){r=true;f("#customDropdownInstance_"+e.uuid).next("span").after('<span class="is-invalid-e" style="color: #FF6B81;">Required field</span>');var t=f("#customDropdownInstance_"+e.uuid);t.parents(".form-group").addClass("is-invalid")}else{r=true;f("#customDropdownInstance_"+e.uuid).next("span").after('<span class="is-invalid-e" style="color: #FF6B81;">Required field</span>');var t=f("#customDropdownInstance_"+e.uuid);t.parents(".form-group").addClass("is-invalid")}}}if(r==true){f(".esgValidation").css("display","block")}}else{f(".is-invalid-e").hide()}}var n="";var i=D(e);d.push(i)})});let u={name:n,dataTemplate:this.template,data:d,dateStart:i,dateEnd:a,location:o,description:s};var p=JSON.stringify(u);if(r==false){h(p,e)}else{}}}})}function D(e){var t="";var n="";var i="";var r="";switch(e.initparameters.type){case"dropdown":t="selectedValues";n=[{property:t,value:e.data.selected}];break;case"date":t="date";n=[{property:t,value:e.data.value}];break;case"switch":t="value";n=[{property:t,value:e.data.value}];break;case"alphanumerical":t="value";n=[{property:t,value:e.data.value}];break;case"sector":t="selectedValues";if(e.data.selected==null){var a=""}else{var a=e.data.selected}n=[{property:t,value:a}];break;case"issuer":t="issuer";e.initparameters.typeConfiguration=[];if(e.data.type=="company"){i=[{property:"type",value:"company:"+e.data.companyType}];if(e.data.issuer==undefined){r=[{property:t,value:e.initvalues.issuer}]}else{r=[{property:t,value:e.data.issuer}]}}else{i=[{property:"type",value:"sovereign"}];r=[{property:t,value:e.data.issuer}]}n=i.concat(r);break;case"hierarchical_dropdown":t="selection";n=[{property:t,value:e.data.selected}];break;default:break}if(null===n[0].value||undefined===n[0].value){n[0].value=""}var o={fieldVersion:e.initparameters,value:n};return o}function T(e){if(undefined!=e){if(e.includes("/")==true){var t=e.split(" ");var n=t[0].split("/");var i=new Date(+n[2],n[1]-1,+n[0]);var r=i.toISOString()}else{var r=e}return r}}function $(e){var t="add";if(e!="corporate"&&e!="analyst"){const n=document.getElementById("esg_div_container");if(null===window.appBaseNode){const r=document.getElementById("calendarTemplatesApp");window.appBaseNode=r.cloneNode(true)}const i=document.getElementById(e);f(".calendar-event-item-content-form1").hide();if(!i){const a=window.appBaseNode.cloneNode(true);a.setAttribute("id",e);f("#"+e).show();window.appCounter++;n.appendChild(a);window.calendarTemplatesApp=S();window.calendarTemplatesApp.getCalendarTemplate(e,t);const o=window.calendarTemplatesApp.$mount(a)}else{f("#"+e).show()}f("#app"+(window.appCounter-2)).hide()}}f(document).delegate("td.td_event_title.orights, td.td_event_title.vrights","click",function(){var e=f(this);var i=e.data("id");var r=e.data("event-type");var t=e.data("isreadonly");if(t==1){disableForViewOnly=true}else{disableForViewOnly=false}if(r=="analyst"){f(".esg_calendar_event").css("display","none");f(".cal_analyst_event").css("display","block");f(".cal_corporate_event").css("display","none")}else if(r=="corporate"){f(".esg_calendar_event").css("display","none");f(".cal_analyst_event").css("display","none");f(".cal_corporate_event").css("display","block")}else{f(".esg_calendar_event").css("display","block","important");f(".cal_analyst_event").css("display","none","important");f(".cal_corporate_event").css("display","none","important")}if(r!="esg"){var n="calendarPage::onRenderCalendarEventPopupContent";f.request(n,{data:{calendarEventId:i,calendarEventType:r,isPublicEvent:0},complete:function(e){if(e.responseJSON.status=="01"){f.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,"edit");f.fn.initBaseDateTimePicker();function t(e){return f('<span id="user_'+f(e.element).data("select2-id")+'" class="calendar_item" ><i class="fas '+f(e.element).data("icon")+'"></i> '+e.text+"</span>")}f(".events_popup_select2").each(function(){var e=f(this).data("empty-option-label");f(this).select2({placeholder:e,allowClear:true,width:"100%",templateSelection:t,templateResult:t})});var n=f('input:hidden[name="new_company_name_for_event"]').val();if(n!=""){if(n.length>40){f("input[name=events_popup_select2_companies]").css("height","55px")}else{f("input[name=events_popup_select2_companies]").css("height","34px")}}if(r=="analyst"){f("#cal_analyst_event").attr("checked","checked");f(".cal_analyst_event").css("display","block");f(".cal_corporate_event").css("display","none");f("#corporatebtn").css("display","none");f(".save_private_calendar_event").removeClass("disabled")}else{f("#cal_corporate_event").attr("checked","checked");f(".cal_corporate_event").css("display","block");f(".cal_analyst_event").css("display","none");f("#analystbtn").css("display","none");f("#calendarCompaniesDropdown .custom-select.custom-select-type.recommendation-select-filter span.selector.closed").trigger("click");f("#calendarCompaniesDropdown .custom-select.custom-select-type.recommendation-select-filter span.selector.open").trigger("click");f("#interationsEventSave").removeClass("save_private_calendar_event");f("#interationsEventSave").addClass("save_corporate_calendar_event");f(".save_private_calendar_event").removeClass("disabled");f(".save_corporate_calendar_event").removeClass("disabled")}f("#calendar_analyst_category").select2({minimumResultsForSearch:-1});f.fn.renderSelect2EmailTaggingOnElement(".events_popup_select2_email_tags");f(".events_popup_select2_companies").select2({placeholder:f(".events_popup_select2_companies").data("empty-option-label"),allowClear:true,width:"100%",ajax:{url:"/search-company-on-event-popup",dataType:"json",delay:250,processResults:function(e){return{results:e}},cache:true}});f.magnificPopup.instance._onFocusIn=function(e){if(f(e.target).hasClass("select2-search__field")){return true}f.magnificPopup.proto._onFocusIn.call(this,e)}}}})}else{f(".esg_calendar_event").css("display","block");f(".cal_analyst_event").css("display","none");f(".cal_corporate_event").css("display","none");f.request("calendarPage::onRenderCalendarESGEventPopupContent",{data:{calendarEventId:i,calendarEventType:r,isReadOnly:t},complete:function(e){var t="update";f.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,"edit");f("#cal_interaction_events").css("visibility","hidden");const n=document.getElementById("calendarTemplatesApp");window.calendarTemplatesApp=S();window.calendarTemplatesApp.getCalendarTemplate(i,t);window.calendarTemplatesApp.$mount(n);if(null!=window.calendarTemplatesApp){}}})}})})(jQuery);class EsgApi{async getTemplatesList(){const e=await fetch("/api/esg/templates");const t=await e.json();return t}async getTemplate(e){const t=await fetch("/api/esg/templates/"+e);const n=await t.json();return n}async patchTemplate(e,t,n,i){const r=await fetch("/api/esg/templates/"+e,{method:"PATCH",body:JSON.stringify({op:t,path:n,value:i}),headers:{"Content-type":"application/json; charset=UTF-8"}});const a=await r.json();return a}}const appContainerId="companyPageApp";let mainContainer=null;let companyPageApp=null;function footerPositionFixed(){$("#layout-footer.footer-call").mouseover(function(){$("#layout-footer.footer-call").addClass("footer-call-hover")});$("#layout-footer.footer-call").mouseout(function(){setTimeout(function(){$("#layout-footer.footer-call").removeClass("footer-call-hover")},4e3)})}function initiateReportCardShowMore(){var e=$(".has-overflow");var t=$(".overflow");e.mouseenter(function(){$(this).find(".overflow").show()});e.mouseleave(function(){$(this).find(".overflow").hide();t.mouseenter(function(){$(this).show()});t.mouseleave(function(){$(this).hide()})})}const pageNavigationComponent=Vue.component("page-navigation",{props:["view","links"],methods:{requestLink:function(e){this.$emit("onRequestLink",e)},positionateSubmenu:function(){const e=document.getElementsByClassName("page-navigation")[0].getBoundingClientRect();const t=document.getElementsByClassName("company-navigation__item--active")[0].getBoundingClientRect();const n=t.x+t.width/2-(e.x+e.width/2);if(0>=n){return}$(".page-navigation").css("position","relative");$(".page-navigation").css("left",n+"px")}},mounted:function(){this.$nextTick(function(){this.positionateSubmenu()})},template:`<ul class="page-navigation">
    <li
        v-for="(name, link) in links"
        :class="{'page-navigation__item--active': view == link}"
        class="page-navigation__item"
        :key="link">
        <button @click="requestLink(link)">{{ name }}</button>
    </li>
</ul>`});const eventsPage=Vue.component("events-page",{props:["company"],template:`<div class="calendar_page_type"><div id="private_calendar" class="cpageview"></div></div>`,mounted:function(){this.$nextTick(function(){const e={id:this.company.lookup_id,isin:this.company.isin,name:`${this.company.ticker} | ${this.company.name}`,ticker:this.company.ticker};initCalendar(e);$("#dashboard-content").attr("style","background-color: #FFFFFF !important");$("#private_calendar").attr("style","margin-top: 50px !important")})},beforeDestroy:function(){$("#dashboard-content").removeAttr("style")}});const evaluationPage=Vue.component("evaluation-page",{props:["initial-view","company"],data:function(){return{view:null}},methods:{loadLink:function(e){if(e===this.view){return}if("ownershipData"===e){this.loadCompanyCoverageInfo()}this.view=e},loadCompanyCoverageInfo:function(){var e="companyCoverage::onGetSelectedCompanyCoverageInfo";$.request(e,{data:{CompanyId:this.company.id},complete:function(e){if(e.responseJSON.company_found!=undefined&&e.responseJSON.company_found==1&&e.responseJSON.company_have_data==true){if(e.responseJSON.response_html!=undefined){$(".evaluation-view").html(`<div class="evaluation-view__viz">
                                                            <div class="company-viz"></div>
                                                        </div>
                                                        <div class="evaluation-view__data">
                                                            <div class="company-data"></div>
                                                        </div>`);if(e.responseJSON.response_html_tableau!=undefined){$(".company-viz").html(e.responseJSON.response_html_tableau)}else{$(".company-viz").html(`<img style="border-radius: 25px;" src="/themes/pukkaresearch/assets/images/ownership_data_preview.jpg" />`)}$(".company-data").html(e.responseJSON.response_html);$(".coverage-company-name").text($(".coverage-company-name").text().trim()+" company data")}}else{$(".evaluation-view").html(`
                            <div class="row evaluation-view__no-data"> 
                                <div class="col-lg-6">
                                    <div class="row">  
                                        <div class="col-lg-1">&nbsp;</div>
                                        <div class="col-lg-10">
                                            <div class="no-data-heading">
                                                No data has been shared for this compagny
                                            </div>
                                            <div class="no-data-content">
                                                Then look no further.  ResearchPool’s powerful data analytics and<br>
                                                visualization tools enables users to quickly evaluate the effectiveness<br>
                                                of their research consumption and interactions.  We use embedded <br>
                                                Tableau™ business intelligence software to provide smart dashboards <br>
                                                for users to view rich insights into their data whilst also <br>
                                                allowing download in multiple formats.<br>
                                            </div>
                                        </div>
                                        <div class="col-lg-1">&nbsp;</div>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                        <div class="no-data-heading">
                                        <br/>                                       
                                        </div>
                                    <img src="/themes/pukkaresearch/assets/images/ownership_data_no_preview.png" />
                                </div>
                                <div class="col-lg-12">
                                    <img src="/themes/pukkaresearch/assets/images/powered_by_tableau.png" />
                                </div>  
                            </div>
                    `)}}})}},computed:{links:function(){return{ownershipData:"Ownership data"}}},mounted:function(){const e=this;this.$nextTick(function(){e.loadLink(this.initialView||"ownershipData")})},template:`
<div>
    <div style="margin-bottom: 30px;">
        
    </div>
    <div class="evaluation-view">        
    </div>
</div>
`});const noReportsFound=Vue.component("no-reports",{template:`<div style="display: flex; margin-left: 100px; margin-bottom: 480px">
    <div><i class="far fa-file-search fa-5x"></i></div>
    <div style="font-size: 2em; align-self: center">No reports found on this category.</div>
</div>`});const researchPage=Vue.component("research-page",{props:["initial-view","company"],data:function(){return{view:null,contentLength:1}},computed:{links:function(){let e={providerResearch:"Provider Research",pressRelease:"Press Releases"};if(this.company.user_scope=="private"){e["internalResearch"]="Internal Research"}return e}},methods:{switchFragment:function(e){this.view=e;this.reloadFragment()},getBaseFilters:function(e){if("providerResearch"===e){return{report_search_company_filter:[this.company.id],min_market:null,max_market:null,min_page:null,max_page:null,date_from:null,date_to:null,email_notification_new:null,"interests-name":null}}if("pressRelease"===e){return{filter_selected_category_ids:[31],report_search_company_filter:[this.company.id],min_market:null,max_market:null,min_page:null,max_page:null,date_from:null,date_to:null,email_notification_new:null,"interests-name":null}}if("internalResearch"===e){return{report_search_company_filter:[this.company.id],min_market:null,max_market:null,access_types_filter:["Internal"],min_page:null,max_page:null,date_from:null,date_to:null,email_notification_new:null,"interests-name":null}}},reloadFragment:function(){const n=this;var i=$("#load_more_reports");document.companyPageFilters=this.getBaseFilters(this.view);$.request("reportSearch::onAjaxLoadMore",{data:document.companyPageFilters,complete:function(e){$(".load-more-reports span").hide();if(e.responseJSON.status=="01"){n.contentLength=e.responseJSON.resultHtml.length;n.$forceUpdate();$("#search-results .items-container").html(e.responseJSON.resultHtml);var t=".item-wrapper".length;if(i.attr("data-total-number-items")>t){i.removeClass("disable_ajax")}footerPositionFixed();$.fn.renderQtipTooltips();initiateReportCardShowMore()}}})}},mounted:function(){const e=this;this.view=this.initialView||"providerResearch";this.$nextTick(function(){e.reloadFragment()})},template:`<div>
    <div>
        <page-navigation :links="links" @onRequestLink="switchFragment($event)" :view="view" />
    </div>
    <div id="search-results">
        <div class="items-container card"></div>
    </div>
    <div id="load_more_reports" data-total-number-items="20" class="load-more-reports rp-data-count">
        <span class="20">
            Loading...
            <img src="/themes/pukkaresearch/assets/images/researchpool/ajax-preloader.gif" alt="" />
        </span>
    </div>
    <no-reports v-if="0 >= contentLength" />
</div>`});const companyHeaderComponent=Vue.component("company-header",{props:["company","page"],methods:{handleNavigation:function(e){this.$emit("onRequestPage",e)}},template:`<div class="company-header" v-if="company" :class="{'extra-height': company.user_scope == 'anon'}">
    <div class="row">
        <div class="col-12">
            <h1 class="company-header__title">{{ company.name }}</h1>
        </div>
        <div class="company-header__information">
            <div class="company-header__information__attributes">
                <div class="attributes-view">
                    <div>
                        <div class="attributes-view__item" v-if="company.ticker">
                            <span class="company-header__label">Ticker</span>: {{ company.ticker }}
                        </div>
                        <div class="attributes-view__item" v-if="company.exchange && company.exchange.name">
                            <span class="company-header__label">Exchange</span>: {{ company.exchange.name }}
                        </div>
                        <div class="attributes-view__item" v-if="company.sector && company.sector.name">
                            <span class="company-header__label">Sector</span>: {{ company.sector.name }}
                        </div>
                    </div>
                    <div>
                        <div class="attributes-view__item" v-if="company.isin">
                            <span class="company-header__label">ISIN</span>: {{ company.isin }}
                        </div>
                        <div class="attributes-view__item" v-if="company.country">
                            <span class="company-header__label">Country</span>: {{ company.country }}
                        </div>
                    </div>
                </div>
            </div>
            <div class="company-header__information__description">
                <span class="company-header__label">Description</span>
                <p v-if="typeof company.description === 'string' && company.description.trim().length > 0">{{ company.description }}</p>
                <p v-else>NA</p>
            </div>
            <div class="company-header__information__actions" v-if="company.slug">
                <a :href="'/feed/company/' + company.slug"><i class="fas fa-rss fa-lg"></i><br>
                RSS Feed</a>
            </div>
        </div>
    </div>
    <div class="row bg-dark pb-0 px-50">
        <div class="col-lg-12">
            <company-navigation
                :company="company"
                :page="page"
                @onRequestPage="handleNavigation($event)"/>
        </div>
    </div>
</div>`});const companyNavigationComponent=Vue.component("company-navigation",{props:["company","page"],methods:{requestPage:function(e){this.$emit("onRequestPage",e)}},template:`<ul class="company-navigation">
    <li
        v-for="(name, link) in {'research': {'link': 'Research', 'scope': 'public'}, 'evaluation': {'link': 'Data', 'scope': 'private'}, 'events': {'link': 'Events', 'scope': 'private'}}"
        v-if="name.scope == 'public' || company.user_scope == 'private'"
        :class="{'company-navigation__item--active': page == link}"
        class="company-navigation__item"
        :key="link" :id="page">
            <button @click="requestPage(link)" >{{ name.link }}</button>
    </li>
</ul>`});const boot=function(){const e=getAppContainer(appContainerId);if(null===e){return}return createCompanyPageApp(e)};const getAppContainer=function(e=null){return document.getElementById(null!==e?appContainerId:e)};const createCompanyPageApp=function(n){if(null===n){console.error("Can't create the company page's app because the container is not present on the page");return null}return new Vue({el:n,data:{company:null,page:null},template:`<div>
    <company-header
        :company="company"
        :page="page"
        @onRequestPage="updateNavigation($event)"
    />
    <research-page v-if="'research' == page" :company="company"/>
    <evaluation-page v-if="'evaluation' == page" :company="company" />
    <events-page v-if="'events' == page" :company="company" />
</div>`,methods:{updateNavigation:function(e){this.page=e}},mounted:function(){const t=this;const e=n.dataset.companySlug;if(undefined===e){console.error("No company slug has been specified. Aborting page rendering!");return}fetch(`/api/companies/${e}`).then(function(e){e.json().then(function(e){t.company=e;t.page="research"})})}})};function getUserInfo(){var e="companyDetail::onFetchUserInfo";$.request(e,{data:{},complete:function(e){}})}(function(){companyPageApp=boot()})();(function(i){i(document).ready(function(){i(document).delegate("input#UpdatedCoverageFileUpload[type=file]","change",function(){var e=i("form.upload_updated_coverage");i.oc.stripeLoadIndicator.show();i.ajax({url:e.attr("action"),data:new FormData(e[0]),processData:false,contentType:false,type:"POST",complete:function(e){var t="";i("#upload-coverage").removeAttr("Disabled");if(e.responseJSON.csvFields!=undefined&&e.responseJSON.csvRowsCount>0){n(e.responseJSON.csvFields)}else if(e.responseJSON.error!=undefined){t=e.responseJSON.error}else{t="Error occured please verify your file format"}i("#upload_coverage_error_messages").html(t)}}).done(function(e){i.oc.stripeLoadIndicator.hide()})});function n(e){i("#upload_coverage_error_messages").html("");var t="companyCoverage::onCoverageUploadFieldsCreationPopup";i.request(t,{data:{csvFields:e},complete:function(e){var t=e.responseJSON.response_html;i.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" id="closeFieldsSelection" type="button" class="mfp-close notranslate">&times;</button>'},0);var n=new Date;i(".value_import_date").datepicker({dateFormat:"yy-mm-dd",maxDate:0,changeYear:true}).attr("readonly","readonly");i(".value_import_date").datepicker("setDate",n)}})}})})(jQuery);(function(_){_(document).ready(function(){var e;if(_("#companyCoveragePage.update-data").length){var t="public",n=true,i,r=0,a=0,o=false;function s(i,r,e){var t="companyCoverage::onGetCoverageUpdateActivity";_.request(t,{complete:function(e){if(e.responseJSON!=undefined){var t=e.responseJSON;if(!o){i.totalCompanies=e.totalCompanies}var n=[];_.each(t,function(e,t){n.push(["<div class='cell-border-right'>"+t["created_at"]+"</div>","<div class='cell-border-right' style='text-align: center;'>"+t["activity"]+"</div>",t["name"]])});r({draw:1,data:n,recordsTotal:20,recordsFiltered:t.length})}}})}e=_("#CompaniesDatatable").DataTable({ajax:s,scrollY:"150px",scrollx:false,scroller:{loadingIndicator:true},responsive:true,serverSide:true,processing:true,ordering:false,scrollCollapse:true,searching:true,paging:true,info:false,pageLength:7,language:{search:"",searchPlaceholder:"Search Name",emptyTable:"No companies to be displayed for your organizations coverage"},columns:[{searchable:true,orderable:false},{searchable:true,orderable:false},{searchable:false,orderable:false}],initComplete:function(e,t){_("#CompaniesDatatable_filter").css("display","none")},drawCallback:function(e){var t=this.api();var n=t.rows({page:"current"}).count();for(var i=0;i<7-(n===0?1:n);i++){_("#CompaniesDatatable tbody").append(_("<tr class='empty-row' ><td>&nbsp;</td><td></td><td></td></tr>"))}}})}if(_("#companyCoveragePage").length){_(document).delegate(".SelectAllFields","click",function(){if(this.checked){_("input[type=checkbox].FieldCheckBox").each(function(){this.checked=true})}else{_("input[type=checkbox].FieldCheckBox").each(function(){this.checked=false})}});_(document).delegate("input[type=checkbox].FieldCheckBox","click",function(){if(_(".FieldCheckBox:checked").length==_(".FieldCheckBox").length){_("input[type=checkbox].SelectAllFields").prop("checked",true)}else{_("input[type=checkbox].SelectAllFields").prop("checked",false)}})}_(document).delegate("input#btnUploadCoverage[type=file]","change",function(){var e=_("form.upload_updated_coverage");_.oc.stripeLoadIndicator.show();_.ajax({url:e.attr("action"),data:new FormData(e[0]),processData:false,contentType:false,type:"POST",complete:function(e){var t="";_("#upload-coverage").removeAttr("Disabled");if(e.responseJSON.csvFields!=undefined&&e.responseJSON.csvRowsCount>0){f(e.responseJSON)}else if(e.responseJSON.error!=undefined){t=e.responseJSON.error}else{t="Error occured please verify your file format"}_("#upload_coverage_error_messages").html(t)}}).done(function(e){_.oc.stripeLoadIndicator.hide()})});_(document).delegate(".coverage_selected_fields_submit","click",function(e){var t="companyCoverage::onCheckImportDate";var n=_("#valueImportDate").val();e.isDefaultPrevented();_("form.coverage_fields_selection_form").submit()});_(document).delegate("#contine_to_coverage_import","click",function(){_("#popup_waring_box_coverage").css("z-index","-5");_("form.coverage_fields_selection_form :input").prop("disabled",false);_("form.coverage_fields_selection_form").validator("validate");_("form.coverage_fields_selection_form").submit()});_(document).delegate("#coverage_import_cancel","click",function(){_("#upload-coverage").removeAttr("Disabled");_.magnificPopup.close()});_(document).delegate("form.coverage_fields_selection_form","submit",function(e){if(e.isDefaultPrevented()){_("form.coverage_fields_selection_form").validator("validate")}_("#upload-coverage").attr("disabled","enabled");if(!e.isDefaultPrevented()){e.preventDefault();var t=_(this);_("input[type=checkbox].skipFieldCheckbox").each(function(e){var t=_(this).data("name");var n=_('.skipFieldCheckboxValue[name="FieldsToSkip['+t+']"]');if(n.length!=0){if(this.checked){n.val("on")}else{n.val("off")}}});var n=new FormData;var i=_("input#btnUploadCoverage[type=file]");n.append(i[0].name,i[0].files[0]);var r=t.attr("action");_.oc.stripeLoadIndicator.show();var a=_(t).serializeArray();for(var o=0;o<a.length;o++){n.append(a[o].name,a[o].value)}_("form.coverage_fields_selection_form :input").prop("disabled",true);window.$.ajax({type:"POST",data:n,contentType:false,processData:false,cache:false,url:r,success:function(e){if(e.success!=undefined&&e.success=="01"){_.oc.stripeLoadIndicator.hide();l(e);var t=e.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" id="closeFieldsSelection" type="button" class="mfp-close notranslate">&times;</button>'},0)}}}).done(function(e){_.oc.stripeLoadIndicator.hide()});return false}});_(document).delegate(".coverage_create_fields_submit","click",function(e){var c=true;_(".field-parameters").each(function(e,t){var n=false;var i=_(t).attr("data-name");var r=_('.new-field-type[name="NewFieldType['+i+']"]').children("option:selected").val();var a=_('.FieldRange-input[name="FieldRange['+i+']"]').val();var o=_('.FieldRange-error[name="FieldRangeError['+i+']"]');o.html("");var s="";switch(r){case"alphanumeric":if(a==""||a==0||a>255){var s="Error ! Invalid input range"}else{n=true}break;case"numeric":if(a==""||a==0){var s="Error ! Invalid input"}else{n=true}break;case"range":var l=_('.FieldRangeStart-input[name="FieldRangeStart['+i+']"]').val();if(l!=""&&!isNaN(l)){l=parseInt(l);if(l>=-5e5&&l<=5e5){a=parseInt(a);if(a!=""&&!isNaN(a)){if(a>=-5e5&&a<=5e5){if(l<parseInt(a)){n=true}else{s="Error ! Minimum range value must be less than maximum range value"}}else{s="Error ! Maximum range value must be between -500000 and 500000"}}else{s="Error ! Maximum range value is empty or invalid"}}else{s="Error ! Minimum range value must be between -500000 and 500000"}}else{s="Error ! Minimum range value is empty or invalid"}break;default:n=false;break}if(n==false){c=false;if(s!=""){o.html(s)}}});if(c==true){_("form.coverage_fields_creation_form").submit()}c=true;return false});_(document).delegate("input[type=checkbox].createFieldCheckbox","click",function(){var e=_(this).data("name");if(this.checked){_('.fieldCreateParameters[name="'+e+'"]').css("display","block");_('.hideCreateParameters[name="'+e+'"]').css("display","none")}else{_('.fieldCreateParameters[name="'+e+'"]').css("display","none");_('.hideCreateParameters[name="'+e+'"]').css("display","block")}});_(document).delegate("input[type=checkbox].skipFieldCheckbox","click",function(){var e=_(this).data("name");if(this.checked){_('.fieldImportParameters[name="'+e+'"]').css("display","block");_('.hideImportParameters[name="'+e+'"]').css("display","none")}else{_('.fieldImportParameters[name="'+e+'"]').css("display","none");_('.hideImportParameters[name="'+e+'"]').css("display","block")}});_(document).delegate("#contine_to_rp_icon","click",function(){var e=event.target.id;if(_(".create-fields-popup").length){_(".create-fields-popup").css("opacity","100%")}if(_(".coverage-processing-popup").length){_.magnificPopup.close();c("")}});_(document).delegate("form.coverage_fields_creation_form","submit",function(e){if(e.isDefaultPrevented()){_("form.coverage_fields_creation_form").validator("validate")}_("#upload-coverage").attr("disabled","enabled");if(!e.isDefaultPrevented()){e.preventDefault();var t=_(this);var n=new FormData;var i=t.attr("action");_.oc.stripeLoadIndicator.show();_("input[type=checkbox].createFieldCheckbox").each(function(e){var t=_(this).data("name");var n=_('.createFieldCheckboxValue[name="FieldsToCreate['+t+']"]');if(n.length!=0){if(this.checked){n.val("on")}else{n.val("off")}}});var r=_(t).serializeArray();for(var a=0;a<r.length;a++){n.append(r[a].name,r[a].value)}for(var a=0;a<p.length;a++){n.append("csvFields[]",p[a])}window.$.ajax({type:"POST",data:n,contentType:false,processData:false,cache:false,url:i,success:function(e){if(e.success!=undefined&&e.success==true){_.oc.stripeLoadIndicator.hide();var t=e.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" id="closeFieldsSelection" type="button" class="mfp-close notranslate">&times;</button>'},0);var n=new Date;_(".value_import_date").datepicker({dateFormat:"yy-mm-dd",maxDate:0,changeYear:true}).attr("readonly","readonly");_(".value_import_date").datepicker("setDate",n)}else{var i="Error occurd! Please contact platform support team";if(e.success!=undefined&&e.success==false){i="<p> Fields compatibility failed please verify file data </p>";if(e.errorsArray!=undefined){var r=e.errorsArray;i="";_.each(r,function(e,t){i+="<p> "+t+" </p>"});if(r.length>9){i+="<p> Please fix these error first to proceed </p>"}}}_("#popup_waring_box_coverage .error-messages-list").html(i);_("#popup_waring_box_coverage").css("z-index","5");_("#popup_waring_box_coverage").css("display","block");_(".create-fields-popup").css("opacity","0%")}}}).done(function(e){_.oc.stripeLoadIndicator.hide()});return false}});function l(e){var r=0;var t="companyCoverage::onProcessCoverageXmlData";_.request(t,{data:e,success:function(e){if(e.hasErrors!=undefined&&e.hasErrors==true){var n="Error occurd! Please contact platform support team";n="<p> Fields compatibility failed please verify file data </p>";if(e.errorsArray!=undefined){var t=e.errorsArray;n="";_.each(t,function(e,t){n+="<p> "+t+" </p>"});if(t.length>9){n+="<p> Please fix these error first to proceed </p>"}}_("#popup_waring_box_coverage .error-messages-list").html(n);_("#popup_waring_box_coverage").css("z-index","5");_("#popup_waring_box_coverage").css("display","block");_(".coverage-processing-popup").css("display","none")}else{r=e.processedCount/e.companiesCount*100;r=r>=100?100:r;_("#progressbar").progressbar({value:r});if(e.companiesCount!=undefined&&e.processedCount<e.companiesCount){l(e)}else if(e.processingFinished=="TRUE"){_.magnificPopup.close();var i=e.response_html;_.magnificPopup.open({items:{src:i},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" id="closeFieldsSelection" type="button" class="mfp-close notranslate">&times;</button>'},0)}}},error:function(){_.oc.stripeLoadIndicator.hide()}})}function c(e=""){location.reload(false)}function d(){location.reload(false)}_(document).delegate(".new-field-type","change",function(e){var t=_(this).children("option:selected").val();var n=_(this).data("name");var i=_('.field-parameters[name="FieldParameters['+n+']"]').children(".import-header-name");var r="";switch(t){case"alphanumeric":{r=`<input id="FieldRange[`+n+`]" name="FieldRange[`+n+`]" style="width: 80px; float: left; text-align: center;" 
                        class='FieldRange-input form-control' type='number' min="1" max='255' value="255" required /> 
                        <label id="FieldRangeLabel[{{currentField}}]" for="FieldRange[`+n+`]" style="color:#57606F; padding-top:10px; text-align: center">
                        255 characters max </label>
                        <label name="FieldRangeError[`+n+`]" style="color: #ff4757;"class="FieldRange-error error-message"></label>`;i.html(r)}break;case"numeric":{r=`<input type="hidden" name="FieldRange[`+n+`]" class='FieldRange-input' value="25"/> 
                        <label id="FieldRangeLabel[{{currentField}}]" for="FieldRange[`+n+`]" 
                        style="padding-top:10px; color:#57606F; font-size:10px; text-align: center"> <i style="color:#1E90FF;" class="fal fa-info-circle"></i> Negative and positive decimal values </label>
                        <label name="FieldRangeError[`+n+`]" style="color: #ff4757;"class="FieldRange-error error-message"></label>`;i.html(r)}break;case"range":{r=`<input id="FieldRange[`+n+`]" name="FieldRangeStart[`+n+`]" style="width: 80px; float: left; text-align: center;" 
                        class='FieldRangeStart-input form-control' type='number' value="0" required /> <div style="float:left;padding:10px;">to</div>
                        <input id="FieldRange[`+n+`]" name="FieldRange[`+n+`]" style="width: 80px; float: left; text-align: center;" 
                        class='FieldRange-input form-control' type='number' value="1000" required />
                        <label name="FieldRangeError[`+n+`]" style="color: #ff4757;"class="FieldRange-error error-message"></label>`;i.html(r)}break}});function u(){_("#companyCreateMessage").html("")}_(document).delegate("#upload-coverage","click",function(){_("form.upload_updated_coverage").trigger("reset")});_(document).delegate("#closeFieldsSelection","click",function(){_("#upload-coverage").removeAttr("Disabled")});var p={};function f(e){_("#upload_coverage_error_messages").html("");var t="companyCoverage::onHandleCustomFieldsAndGeneratePopup";var n=e.csvFields;var i=e.fileUID;p=n;_.request(t,{data:{csvFields:n,fileUID:i},complete:function(e){var t=e.responseJSON.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" id="closeFieldsSelection" type="button" class="mfp-close notranslate">&times;</button>'},0);var n=new Date;_(".value_import_date").datepicker({dateFormat:"yy-mm-dd",maxDate:0,changeYear:true}).attr("readonly","readonly");_(".value_import_date").datepicker("setDate",n)}})}_(document).delegate("input#only_changes_option[type=radio]","change",function(){_(".date-range-selection").css("visibility","visible");_(".date-range-fa-icon").css("color","#1E90FF");_(".last-value-fa-icon").css("color","#57606F")});_(document).delegate("input#last_value_option[type=radio]","change",function(){_(".date-range-selection").css("visibility","hidden");_(".date-range-fa-icon").css("color","#57606F");_(".last-value-fa-icon").css("color","#1E90FF")});_(document).on("click","#download-blank-template",function(){_.request("companyCoverage::onDownloadBlankTemplate",{complete:function(e){if(e.responseJSON.filePath!=undefined){window.location.href=e.responseJSON.filePath;_("form.coverage_download_selection_form :input").prop("disabled",false)}}})});_(document).on("click","#downloadCoveragePopup",function(){h()});function h(){var e="companyCoverage::onCoverageDownloadPopup";_.request(e,{complete:function(e){var t=e.responseJSON.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" id="closeFieldsSelection" type="button" class="mfp-close notranslate">&times;</button>'},0);var n=new Date;_(".search_date_to").datepicker({dateFormat:"yy-mm-dd",maxDate:0,changeYear:true}).attr("readonly","readonly");_(".search_date_to").datepicker("setDate",n);var n=new Date;n.setDate(n.getDate()-30);_(".search_date_from").datepicker({dateFormat:"yy-mm-dd",maxDate:0,changeYear:true}).attr("readonly","readonly");_(".search_date_from").datepicker("setDate",n)}})}function m(){var e="companyCoverage::onGetCompaniesCount";_.request(e,{complete:function(e){if(e.responseJSON!=undefined){var t=e.responseJSON;if(t.public_companies_count!=undefined&&t.private_companies_count!=undefined){var n=t.public_companies_count!=undefined?t.public_companies_count:0;var i=t.private_companies_count!=undefined?t.private_companies_count:0;if(parseInt(n)+parseInt(i)>0){_("#downloadCoveragePopup").css("visibility","visible");_(".hide-if-no-data").css("visibility","visible")}else{_("#downloadCoveragePopup").css("visibility","hidden");_(".hide-if-no-data").css("visibility","hidden")}}}}})}m();_(document).delegate(".coverage_download_fields_submit","click",function(){if(_("#only_changes_option:checked").length){var e=new Date(_("#CoverageFrom").val());var t=new Date(_("#CoverageTo").val());_("#SelectFieldsError").css("display","none");_("#CoverageToError").css("display","none");_("#CoverageTo").css("border-color","#ced6e0");if(_(".FieldCheckBox").length>0){if(_(".FieldCheckBox:checked").length==0){_("#SelectFieldsError").css("display","block");return false}if(e>t){_("#CoverageTo").css("border-color","#ff4757");_("#CoverageToError").css("display","block");return false}}}_("#SelectFieldsError").css("display","none");_("#CoverageToError").css("display","none");if(_(".FieldCheckBox").length>0){if(_(".FieldCheckBox:checked").length==0){_("#SelectFieldsError").css("display","block");return false}}_("form.coverage_download_selection_form").validator("validate");var n=_("form.coverage_download_selection_form").serializeArray()});_(document).delegate("form.coverage_download_selection_form","submit",function(e){if(e.isDefaultPrevented()){_("form.coverage_download_selection_form").validator("validate")}_("#upload-coverage").attr("disabled","enabled");if(!e.isDefaultPrevented()){e.preventDefault();var t=_(this);var n=new FormData(t[0]);var i=t.attr("action");window.$.ajax({type:"POST",data:n,contentType:false,processData:false,cache:false,url:i,beforeSend:function(){_("form.coverage_download_selection_form :input").prop("disabled",true)},complete:function(e){e=e.responseJSON;if(e.filePath!=undefined){if(e.DownloadSelection!=undefined&&e.DownloadSelection=="lastValues"){if(e.CountCompanies==0){window.location.href=e.filePath;_.magnificPopup.close()}if(e.CountCompanies>0){var t=e.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false},0);_("#progressbar").progressbar({value:0});v(e)}}else{window.location.href=e.filePath;_.magnificPopup.close()}_("form.coverage_download_selection_form :input").prop("disabled",false)}},error:function(){}});return false}});function v(e){var t=0;var n="companyCoverage::onAppendXlsViaAjax";_.request(n,{data:e,success:function(e){t=e.processedCompanies/e.CountCompanies*100;t=t>=100?100:t;_("#progressbar").progressbar({value:t});if(e.CountCompanies!=undefined&&e.processedCompanies<e.CountCompanies){v(e)}else if(e.processingFinished=="TRUE"){window.location.href="/coverage-download/"+e.fileUID;if(_("#upload-coverage").length){_("#upload-coverage").removeAttr("disabled")}_.magnificPopup.close()}e.DownloadSelection;e.customFields},error:function(){_.oc.stripeLoadIndicator.hide()}})}function g(e,t,n){var i=t;i+="\n";if(n!=null)_.each(n,function(e,t){i+=t.isin+","+t.name+t.CustomfieldValues;i+="\n"});var r=document.createElement("a");r.href="data:text/csv;charset=utf-8,"+encodeURI(i);r.target="_blank";r.download=e+".csv";r.click();_("form.coverage_download_selection_form :input").prop("disabled",false)}_(document).delegate(".field-skip-info","mouseover",function(){var e=_(this);var t=_(this).attr("data-hover-report");if(t!=null||t!=undefined){e.closest("div").find(".report-overflow-"+t).css("display","block");_(".coverage-status-info").css("overflow","unset")}});_(document).delegate(".field-skip-info","mouseout",function(){_(".report-overflow").css("display","none")})});window.checkInputFileValue=function(e){var t=e.val();_("form.upload_updated_coverage").submit()}})(jQuery);(function(m){m(document).ready(function(){var e;if(m("#companyCoveragePage.front-user").length){var t="public",n="",i="name",r="asc",a=true,o=0,s=0,l=0,f=false,h=false;function c(c){if(h==false){var d=document.getElementsByClassName("CompaniesLoaderRow");if(d.length>0){c-1}h=true;var u={start:c,length:50,getCount:true,search:n,sortBy:i,sortOrder:r,companiesType:t,hideDisabled:a};var p="";var e="companyCoverage::onGetCompaniesForCoverageAjax";if(f){u.getCount=false}if(t!="public"){o=s}else o=l;m.request(e,{data:u,complete:function(e){if(c==0){m("table.companies_listing tbody").html("")}h=false;while(d.length>0)d[0].remove();if(e.responseJSON!=undefined){var t=e.responseJSON;if(!f){u.totalCompanies=e.totalCompanies}var n=[];if(t.data!=undefined&&t.data.length){var i="";m.each(t.data,function(e,t){m("table.companies_listing thead tr").css("padding-right","13px");i=t["is_disabled"]==1?"disabled":"";var n="";p+='<tr class="even '+i+'" data-company-id="'+t["id"]+'"><td class=" column_isin">'+t["isin"]+'</td><td class=" column_name">'+t["name"]+'</td><td class=" column_firstReport">'+t["firstReport"]+'</td><td class=" column_lastReport">'+t["lastReport"]+"</td></tr>";n='<tr class="even comapny-info-row '+i+'" data-company-id="'+t["id"]+'"><td class=" column_isin">'+t["isin"]+'</td><td class=" column_name">'+t["name"]+'</td><td class=" column_firstReport">'+t["firstReport"]+'</td><td class=" column_lastReport">'+t["lastReport"]+"</td></tr>";m("table.companies_listing tbody").append(n)});var r="";r='<tr class="CompaniesLoaderRow"><td style="width:100%"><div style="text-align:center">Loading...</div></td></tr>';var a="";if(t.data.length<13){if(m("table.companies_listing tbody tr").length<=13){m("table.companies_listing thead tr").css("padding-right","0px");var o=13-t.data.length;if(o>0){for(let e=0;e<=o;e++){a+='<tr><td style="width: 100%"><div style="text-align:center">&nbsp</div></td></tr>'}}}r=""}if(c==0){m("table.companies_listing tbody").animate({scrollTop:0},"fast")}m("table.companies_listing tbody").append(a);m("table.companies_listing tbody").append(r)}if(p!=""&&c==0){var s=m("table.companies_listing tbody tr:first");s.click()}f=true}p="";if(m("table.companies_listing tbody tr").length==0){m("table.companies_listing thead tr").css("padding-right","0px");var l='<tr class="even"><td style="width:100%"><div style="text-align:center">No companies found</div></td></tr>';m("table.companies_listing tbody").html("");m("table.companies_listing tbody").append(l)}}})}}m(document).on("click","table.companies_listing tbody tr",function(){m("table.companies_listing tbody tr").removeClass("selected");m(this).closest("tr").addClass("selected");d(this.dataset.companyId)});function d(e){p();var t="companyCoverage::onGetSelectedCompanyCoverageInfo";m.request(t,{data:{CompanyId:e},complete:function(e){if(e.responseJSON.company_found!=undefined){m("#companyInfoBox div.companyinfoholder").html(e.responseJSON.response_html);p()}}})}function u(){var e="companyCoverage::onGetCompaniesCount";m.request(e,{complete:function(e){if(e.responseJSON.private_companies_count<=0||e.responseJSON.private_companies_count==undefined){m(".companies_count .private_count").css("display","none");m("#companies-type-switch").css("display","none");m(".companies_count .public_count").removeClass("col-lg-6").addClass("col-lg-12");m(".companies_count .public_count").css("border-right","none");m(".companies_count .public_count").css("text-align","center")}m("#private_count").html(e.responseJSON.private_companies_count);s=e.responseJSON.private_companies_count.replace(".","");m("#public_count").html(e.responseJSON.public_companies_count);l=e.responseJSON.public_companies_count.replace(".","");c(0)}})}u();m(document).on("click","table.companies_listing thead th#sortByIdentifier",function(){m("th#sortByName i.sorting").removeClass("fa-sort-up").removeClass("fa-sort-down").addClass("fal fa-sort");var e=m(this).find("i.sorting");var t=m(e).attr("class").split(/\s+/);if(t.includes("fa-sort-up")){e.removeClass("fa-sort-up");e.addClass("fa-sort-down");r="desc"}else{e.addClass("fa-sort-up");r="asc"}i="ISIN";c(0)});m(document).on("click","table.companies_listing thead th#sortByName",function(){m("th#sortByIdentifier i.sorting").removeClass("fa-sort-up").removeClass("fa-sort-down").addClass("fa-sort");var e=m(this).find("i.sorting");var t=m(e).attr("class").split(/\s+/);if(t.includes("fa-sort-up")){e.removeClass("fa-sort-up");e.addClass("fa-sort-down");r="desc"}else{e.addClass("fa-sort-up");r="asc"}i="name";c(0)});m("table.companies_listing tbody").scroll(function(){let e=m(this).get(0);if(e.scrollTop+e.clientHeight+150>=e.scrollHeight){var t=m("table.companies_listing tbody tr.comapny-info-row").length;c(t)}});m("#datatablesSearchTextField").on("keyup",function(){n=m("#datatablesSearchTextField").val();c(0)});m("#privateOrPublicChoice").change(function(){if(m("#privateOrPublicChoice").is(":checked")){m("#companies-type-switch .switch-button").addClass("companies-switched");m(".companies_count .private_count").addClass("selected");m(".companies_count .public_count").removeClass("selected");t="private"}else{m("#companies-type-switch .switch-button").removeClass("companies-switched");m(".companies_count .private_count").removeClass("selected");m(".companies_count .public_count").addClass("selected");t="public"}c(0)});function p(){var e=m("table.companies_listing ");var t=m("#companyInfoBox");t.height(e.height()-30)}m(document).delegate("#button_actual_coverage").on("click",function(){var e=m(this).attr("value");if(e!=undefined)window.open("/company/"+e,"_blank")})}})})(jQuery);(function(_){_(document).delegate(".add_company_popup","click",function(e){var t="companyCoverage::onAddNewPrivateCompanyPopUp";_.request(t,{data:{page_id:_(this).attr("id")},complete:function(e){var t=e.responseJSON.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);_("#report_upload_sector").find(".report_super_sector_select2").select2({placeholder:"Select a super sector",minimumResultsForSearch:-1,templateSelection:formatState});_("#report_upload_sector").find(".report_sector_select2").select2({placeholder:"Select a sector",minimumResultsForSearch:-1,templateSelection:formatState});_("#report_upload_industry").find(".report_industry_select2").select2({placeholder:"Select an Industry",minimumResultsForSearch:-1,templateSelection:formatState});_("#report_upload_geography").find("#RegionSelect").select2({placeholder:"Select a Region",minimumResultsForSearch:-1,templateSelection:formatState});_("#report_upload_geography").find("#CountrySelect").select2({placeholder:"Select a Country",minimumResultsForSearch:-1,templateSelection:formatState});if(_("textarea.small_tinymce_new").length){tinymce.init({selector:".form-group textarea.small_tinymce_new",height:100,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}if(_("textarea.large_tinymce_new").length){tinymce.init({selector:".form-group textarea.large_tinymce_new",height:198,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}_.fn.initDateTimePicker()}})});_(document).delegate("#RegionSelect","change",function(e){var t=_("#RegionSelect option:selected").val();_("#CountrySelect").attr("disabled",false);_("#CountrySelect").select2("val","");_("#CountrySelect").select2({placeholder:"Select a Country",minimumResultsForSearch:-1,templateSelection:formatState,ajax:{url:"/search-countries-on-region-select",dataType:"json",data:function(e){return{q:t}},processResults:function(e){return{results:e}},cache:true}})});_(document).delegate(".report_super_sector_select2","change",function(e){var t=_(".report_super_sector_select2 option:selected").val();_(".report_sector_select2").attr("disabled",false);_(".report_sector_select2").select2("val","");_(".report_sector_select2").select2({placeholder:"Select a sector",minimumResultsForSearch:-1,templateSelection:formatState,ajax:{url:"/search-sectors-of-super-sector",dataType:"json",data:function(e){return{q:t}},processResults:function(e){return{results:e}},cache:true}})});_(document).delegate(".private_company_save","click",function(){var e=true;var t=_(this);var n=_('input[name="title"]').val();if(n==""){_("#rp_title.form-required-error").css("display","block")}var i=_('input[name="ISIN"]').val();_("#company-isin-error-message").attr("display","none");if(i.length>0&&i!=12){_("#company-isin-error-message").css("display","block")}_("form.private_company_create_form").validator("validate");if(_('textarea[name="summary"]').length){tinyMCE.triggerSave()}if(_("form.private_company_create_form").find(".has-error").length){return false}if(!t.hasClass("disabled")){var r=_("form.private_company_create_form").serializeArray()}});_(document).delegate(".coverage-status-info","mouseover",function(){var e=_(this);var t=_(this).attr("data-hover-report");if(t!=null||t!=undefined){e.closest("div").find(".report-overflow-"+t).css("display","block");_(".coverage-status-info").css("overflow","unset")}});_(document).delegate(".coverage-status-info","mouseout",function(){_(".report-overflow").css("display","none")});_(document).ready(function(){var e;if(_("#companyCoveragePage.provider-admin").length){var t="public",n="",i="name",r="asc",a=true,o=0,s=0,l=0,f=false,h=false;function c(c){if(h==false){var d=document.getElementsByClassName("CompaniesLoaderRow");if(d.length>0){c-1}h=true;var u={start:c,length:50,getCount:true,search:n,sortBy:i,sortOrder:r,companiesType:t,hideDisabled:a};var p="";var e="companyCoverage::onGetCompaniesForCoverageAjax";if(f){u.getCount=false}if(t!="public"){o=s}else o=l;_.request(e,{data:u,complete:function(e){if(c==0){_("table.companies_listing tbody").html("")}h=false;while(d.length>0)d[0].remove();if(e.responseJSON!=undefined){var t=e.responseJSON;if(!f){u.totalCompanies=e.totalCompanies}var n=[];if(t.data!=undefined&&t.data.length){var i="";_.each(t.data,function(e,t){_("table.companies_listing thead tr").css("padding-right","13px");i=t["is_disabled"]==1?"disabled":"";var n="";p+='<tr class="even '+i+'" data-company-id="'+t["id"]+'"><td class=" column_isin">'+t["isin"]+'</td><td class=" column_name">'+t["name"]+'</td><td class=" column_firstReport">'+t["firstReport"]+'</td><td class=" column_lastReport">'+t["lastReport"]+'</td><td class="dt-center editor-disable column_disable">'+t["disableActionHtml"]+"</td></tr>";n='<tr class="even '+i+' comapny-info-row"  data-company-id="'+t["id"]+'"><td class=" column_isin">'+t["isin"]+'</td><td class=" column_name">'+t["name"]+'</td><td class=" column_firstReport">'+t["firstReport"]+'</td><td class=" column_lastReport">'+t["lastReport"]+'</td><td class="dt-center editor-disable column_disable">'+t["disableActionHtml"]+"</td></tr>";_("table.companies_listing tbody").append(n)});var r="";r='<tr class="CompaniesLoaderRow"><td style="width:100%"><div style="text-align:center">Loading...</div></td></tr>';var a="";if(t.data.length<13){if(_("table.companies_listing tbody tr").length<=13){_("table.companies_listing thead tr").css("padding-right","0px");var o=13-t.data.length;if(o>0){for(let e=0;e<=o;e++){a+='<tr><td style="width: 100%"><div style="text-align:center">&nbsp</div></td></tr>'}}}r=""}if(c==0){_("table.companies_listing tbody").animate({scrollTop:0},"fast")}_("table.companies_listing tbody").append(a);_("table.companies_listing tbody").append(r)}if(p!=""&&c==0){var s=_("table.companies_listing tbody tr:first");s.click()}f=true}p="";if(_("table.companies_listing tbody tr").length==0){_("table.companies_listing thead tr").css("padding-right","0px");var l='<tr class="even"><td style="width:100%"><div style="text-align:center">No companies found</div></td></tr>';_("table.companies_listing tbody").html("");_("table.companies_listing tbody").append(l)}}})}}_("#datatablesSearchTextField").on("keyup",function(){n=_("#datatablesSearchTextField").val();c(0)});_(document).on("click","table.companies_listing thead th#sortByIdentifier",function(){_("th#sortByName i.sorting").removeClass("fa-sort-up").removeClass("fa-sort-down").addClass("fal fa-sort");var e=_(this).find("i.sorting");var t=_(e).attr("class").split(/\s+/);if(t.includes("fa-sort-up")){e.removeClass("fa-sort-up");e.addClass("fa-sort-down");r="desc"}else{e.addClass("fa-sort-up");r="asc"}i="ISIN";c(0)});_(document).on("click","table.companies_listing thead th#sortByName",function(){_("th#sortByIdentifier i.sorting").removeClass("fa-sort-up").removeClass("fa-sort-down").addClass("fa-sort");var e=_(this).find("i.sorting");var t=_(e).attr("class").split(/\s+/);if(t.includes("fa-sort-up")){e.removeClass("fa-sort-up");e.addClass("fa-sort-down");r="desc"}else{e.addClass("fa-sort-up");r="asc"}i="name";c(0)});function d(e){p();var t="companyCoverage::onGetSelectedCompanyCoverageInfo";_.request(t,{data:{CompanyId:e},complete:function(e){if(e.responseJSON.company_found!=undefined){_("#companyInfoBox div.companyinfoholder").html(e.responseJSON.response_html);p()}}})}function u(){var e="companyCoverage::onGetCompaniesCount";_.request(e,{complete:function(e){if(e.responseJSON.private_companies_count<=0||e.responseJSON.private_companies_count==undefined){_(".companies_count .private_count").css("display","none");_("#companies-type-switch").css("display","none");_(".companies_count .public_count").removeClass("col-lg-6").addClass("col-lg-12");_(".companies_count .public_count").css("border-right","none");_(".companies_count .public_count").css("text-align","center")}_("#private_count").html(e.responseJSON.private_companies_count);s=e.responseJSON.private_companies_count.replace(".","");_("#public_count").html(e.responseJSON.public_companies_count);l=e.responseJSON.public_companies_count.replace(".","");c(0)}})}u();_("#privateOrPublicChoice").change(function(){if(_("#privateOrPublicChoice").is(":checked")){_("#companies-type-switch .switch-button").addClass("companies-switched");_(".companies_count .private_count").addClass("selected");_(".companies_count .public_count").removeClass("selected");t="private"}else{_("#companies-type-switch .switch-button").removeClass("companies-switched");_(".companies_count .private_count").removeClass("selected");_(".companies_count .public_count").addClass("selected");t="public"}c(0)});_("table.companies_listing tbody").scroll(function(){let e=_(this).get(0);if(e.scrollTop+e.clientHeight+150>=e.scrollHeight){var t=_("table.companies_listing tbody tr.comapny-info-row").length;c(t)}});_(document).on("click","table.companies_listing tbody tr",function(){_("table.companies_listing tbody tr").removeClass("selected");_(this).closest("tr").addClass("selected");d(this.dataset.companyId)});_("table.companies_listing tbody").on("click",".editor-disable",function(){var n=this;_("table.companies_listing tbody tr.selected").removeClass("selected");_(this).parents("tr").addClass("selected");var i=_(this).find("i.fal").attr("data-status");var r=_(this).parents("tr").attr("data-company-id");var e=_("#privateOrPublicChoice").prop("checked")?"private":"public";_.request("companyCoverage::onToggleCompanyCoverageVisibility",{data:{company_id:r,company_type:e,current_status:i},complete:function(e){if(e.responseJSON.status!=undefined){i=i==0?1:0;var t=_('*[data-coverage-company-id="'+r+'"]').find("i.fal");t.attr("data-status",i);if(i==0){t.removeClass("fa-eye-slash").addClass("fa-eye");_(n).parents("tr").removeClass("disabled")}else{t.removeClass("fa-eye").addClass("fa-eye-slash");_(n).parents("tr").addClass("disabled")}}}})});function p(){var e=_("table.companies_listing ");var t=_("#companyInfoBox");t.height(e.height()-30)}_(document).delegate("form.private_company_create_form","submit",function(e){if(e.isDefaultPrevented()){_("form.private_company_create_form").validator("validate")}_("#company-isin-error-message").css("display","none");if(!e.isDefaultPrevented()){var t=_(this);var n=t.attr("action");_.oc.stripeLoadIndicator.show();_.ajax({type:"POST",url:n,data:t.serialize(),success:function(e){if(e.error!=undefined&&e.error==1){if(e.exists_name!=undefined&&e.exists_name==1){_("#rp_title.form-required-error").css("display","block");_("#rp_title.form-required-error").html("Company already exists by this name")}if(e.exists_isin!=undefined&&e.exists_isin==1){_("#company-isin-error-message").html("Company with this ISIN already exists");_("#company-isin-error-message").css("display","block")}}if(e.error!=undefined&&e.error==0){_.magnificPopup.close();m(" Private Company successfully created");u()}}}).done(function(e){_.oc.stripeLoadIndicator.hide()});return false}});function m(e){var t=' <div class="message-wrapper" id="customReportSearchwrapper">'+'<div class="message_body">'+'<p><i class="fal fa-check-circle">  </i>&nbsp;'+e+"</p>"+"</div>"+"</div>";_("#companyCreateMessage").html(t);setInterval(g,8e3);setInterval(v,4e3)}function v(){location.reload(true)}function g(){_("#companyCreateMessage").html("")}_("#btnHideDisabledCompanies").click(function(){if(_("#btnHideDisabledCompanies").is(":checked")){a=false}else{a=true}c(0)})}})})(jQuery);(function(t){var e=new Array;t(document).delegate(".learn-to-create","click",function(e){t(e.target).slideUp("fast");t(".popup-fields-help-container").slideDown("fast")});t(document).delegate(".learn-to-create-close","click",function(e){t(".popup-fields-help-container").slideUp("fast");t(".learn-to-create").slideDown("fast")})})(jQuery);function formatState(e,t){var n=$(e.element).parent().data("tagstyle");var i=$(e.element).parent().prop("multiple");if(undefined===n){n="default"}if(!e.id){return e.text}var r=$('<span class="field-tag field-tag--'+n+(!i?" field-tag--single-choice":"")+'"><span></span></span>');r.find("span").text(e.text);return r}function reviveCompanyField(){$(document).delegate('select[name="report_companies[]"]',"change",function(e){var t=$("#reportCompanyName :selected").length;var n=isTitleBypassed();if(!n){var i=$("#report_upload_company span.select2-container--default .select2-selection--multiple .select2-selection__choice").map(function(){var e=$(this).attr("title");var t=e.split("|");return t[1]?t[1].trim():t[0].trim()}).get().join(" - ");var r=$("#new_upload_popup_report_title").val();if(r==""){$("#new_upload_popup_report_title").val(i.length?"("+i+")":"")}}if(0<t){$(".disable-if-company").prop("disabled","disabled").val(null).trigger("change")}else{$(".disable-if-company").prop("disabled",false)}if(1!=t){$(".evaluation-section input, .evaluation-section select").prop("disabled","disabled").val(null).trigger("change");$(".evaluation-section textarea").prop("readonly","readonly").val(null);setEditorReadonly("targetPriceComments",true);setEditorReadonly("pmScoreComments",true);$(".last_target_level_info").text("…");$(".last_pm_score_info").text("…");$(".visible-company-1").show()}else{fetchLastEvaluationData($("#reportCompanyName :selected").prop("value"));$(".evaluation-section input, .evaluation-section select").prop("disabled",false);$(".evaluation-section textarea").prop("readonly",false);setEditorReadonly("targetPriceComments",false);setEditorReadonly("pmScoreComments",false);$(".visible-company-1").hide()}});$('select[name="report_companies[]"]').trigger("change")}function isTitleBypassed(){return"yes"===$.fn.readCookie("bypass-title-generation")?true:false}function reviveBypassTitle(){var e=isTitleBypassed();$("#bypassTitleGeneration").prop("checked",e?"checked":false);$(document).delegate("#bypassTitleGeneration","change",function(e){var t=$("#bypassTitleGeneration").is(":checked");$.fn.createCookie("bypass-title-generation",t?"yes":"no",1)})}function formatStateStrong(e){if(!e.id){return e.text}var t=$("<span><strong></strong></span>");t.find("strong").text(e.text);return t}(function(l){l(document).delegate(".save_email_notification_popup","click",function(){l.request("onSaveEmailNotifications",{data:{user_dashboard_items:l("form.email_notification_popup-form").find('input[name="user_dashboard_items"]').val()},complete:function(e){l.magnificPopup.close()},error:function(e){l.magnificPopup.close()}})});l(".dashboard_first_time_show_popup_before_submit").click(function(){l.request("dashboardSidebar::onShowEmailNotificationsFromSession",{data:{popup_type:"last_popup"},complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;l.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){l("form#dashboard_setup_providers_form").submit()}}},0)}else{l("form#dashboard_setup_providers_form").submit()}}});return false});l(document).delegate(".dashboard_categories_show_tmp_popup_before_submit","click",function(){if(l(this).data("popup-type")=="tmp_popup_categories"&&l('input[name="categories[]"]').length&&l('input[name="categories[]"]:checked').length==0){}else{l.request("dashboardSidebar::onShowEmailNotificationsFromSession",{data:{popup_type:l(this).data("popup-type")},complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;l.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){l.request("dashboardSidebar::onCloseEmailNotificationsPopupDeleteSession",{});l(".dashboard_categories_show_tmp_popup_before_submit").closest("form").submit()}}},0)}else{l(".dashboard_categories_show_tmp_popup_before_submit").closest("form").submit()}}});return false}});l(document).delegate(".dashboard_filters_show_tmp_popup_before_submit","click",function(){if(l(this).data("popup-type")=="tmp_popup_filters"){l.request("dashboardSidebar::onShowEmailNotificationsFromSession",{data:{popup_type:l(this).data("popup-type")},complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;l.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){l.request("dashboardSidebar::onCloseEmailNotificationsPopupDeleteSession",{});l(".dashboard_filters_show_tmp_popup_before_submit").closest("form").submit()}}},0)}else{l(".dashboard_filters_show_tmp_popup_before_submit").closest("form").submit()}}});return false}});l(document).delegate(".append_input_on_category_page_form","click",function(){if(l("form#dashboard-setup-companies-form").length){l("form#dashboard-setup-companies-form").append('<input type="hidden" name="email_notifications" value="1" />');l("form#dashboard-setup-companies-form").submit()}else if(l("form.chose_category_form").length){l("form.chose_category_form").append('<input type="hidden" name="email_notifications" value="1" />');l("form.chose_category_form").submit()}});l(document).delegate(".append_input_on_filters_page_form","click",function(){if(l("form#dashboard_filter_form").length){l("form#dashboard_filter_form").append('<input type="hidden" name="email_notifications" value="1" />');l("form#dashboard_filter_form").submit()}});l(document).delegate(".table_sortable_by_column th","click",function(){var e=l(this);var t=e.index();var n=l.fn.customTableSort(e,t);e.closest("table").find("tbody").find("tr:not(.excluded_from_sorting)").remove();e.closest("table").find("tbody").prepend(n);l.fn.renderQtipTooltips()});l.fn.customTableSort=function(e,r){var t=e.attr("data-sort");var a=true;var o=t==="1";var n=e.closest("table");n.find("tbody tr:not(.excluded_from_sorting)").each(function(){a=a&&l.isNumeric(l(this).find("td:eq("+r+")").attr("data-sort-value"))});var i=n.find("tbody tr:not(.excluded_from_sorting)").sort(function(e,t){var n=l(e).find("td:eq("+r+")").attr("data-sort-value").toLowerCase();var i=l(t).find("td:eq("+r+")").attr("data-sort-value").toLowerCase();if(a&&o){return n-i}else if(a&&!o){return i-n}else if(!a&&o){return n.localeCompare(i)}else if(!a&&!o){return i.localeCompare(n)}});e.attr("data-sort",o?0:1);return i};l(document).delegate(".table_sortable_by_column_data th","click",function(){var e=l(this);var t="descending";if(e.find("span.table-filter").hasClass("ascending")){t="ascending"}e.parent().find("span.table-filter").removeClass("descending").removeClass("ascending");if(t==="descending"){e.find("span.table-filter").addClass("ascending")}else{e.find("span.table-filter").addClass("descending")}var n=l.fn.customTableSortByDataAttributes(e,t);e.closest("table").find("tbody").find("tr.js_user_for_sort:not(.excluded_from_sorting)").remove();e.closest("table").find("tbody").prepend(n);l.fn.renderQtipTooltips()});l.fn.customTableSortByDataAttributes=function(e,t){var r=true;var a=t==="ascending";var n=e.closest("table");var i=true;var o=e.data("sort-column-name");n.find("tbody tr.js_user_for_sort:not(.excluded_from_sorting)").each(function(){if(e.data("sort-column-name")&&typeof l(this).data("sort-"+o+"-value")!=="undefined"){r=r&&l.isNumeric(l(this).data("sort-"+o+"-value"))}else{i=false}});if(i){var s=n.find("tbody tr.js_user_for_sort:not(.excluded_from_sorting)").sort(function(e,t){if(!r){var n=l(e).data("sort-"+o+"-value").toLowerCase();var i=l(t).data("sort-"+o+"-value").toLowerCase()}else{var n=l(e).data("sort-"+o+"-value");var i=l(t).data("sort-"+o+"-value")}if(r&&a){return n-i}else if(r&&!a){return i-n}else if(!r&&a){return n.localeCompare(i)}else if(!r&&!a){return i.localeCompare(n)}})}else{var s=n.find("tbody tr.js_user_for_sort:not(.excluded_from_sorting)")}return s};l(".toggle_advanced_chart").click(function(){l(".advanced_chart_hidden_block").toggle()});l(".search-group .input-group").on("click",function(){l(".dropdown-menu").hide();l(".profile-link").css({"border-color":"transparent"});l(this).find(".profileuname").css({"border-color":"transparent"})});l(".research-provider .description").dotdotdot();l(window).resize(function(e){l(".research-provider .description").dotdotdot();calculateCompanyAnalystsWidth()});l(".btn-all").each(function(e){l(this).on("click",function(){if(!l(this).parent().hasClass("open")){l(this).parent().addClass("open");l(this).parent().find(".items-remaining").stop().slideDown()}else{l(this).parent().removeClass("open");l(this).parent().find(".items-remaining").stop().slideUp()}})});l(".btn-all-transparent").each(function(e){var t=l(".btn-all-transparent").parent();l(this).on("click",function(){if(!l(this).hasClass("open")){l(this).addClass("open");t.next().find(".items-remaining").stop().slideDown()}else{l(this).removeClass("open");t.next().find(".items-remaining").stop().slideUp()}})});l(document).ready(function(){var e=window.location.pathname;var t=window.location.pathname.split("/");var n=t[1];if(n=="provider-tools"){l(this).find("li.ptnewspaper a.mainsections").addClass("ptnewspaperActive")}else if(n=="buyer-tools"&&l("#menulist3").hasClass("bttoolboxall")){l(this).find("li.bttoolboxall a.mainsections").addClass("bttoolboxActiveallActive")}else if(n=="buyer-tools"&&l("#menulist3").hasClass("bttoolbox")){l(this).find("li.bttoolbox a.mainsections").addClass("bttoolboxActive")}else{l(this).find("a.mainsections").addClass("x")}if(l("#menulist3").hasClass("bttoolbox")||l("#menulist4").hasClass("ptnewspaper")){l(this).find("#headernotification").addClass("headernotificationnew")}if(e=="/dashboard"){l(this).find("li.feed a.mainsections").addClass("feedActive")}else if(e=="/calendar"){l(this).find("li.library a.mainsections").addClass("calendarActive")}else if(e=="/admin/settings/users"){l(this).find(".free_provider_package_icon").addClass("adminActive")}else if(e=="/buyer-tools/consumption-statistics/overview"||e=="/buyer-tools/consumption-statistics/readership"||e=="/buyer-tools/consumption-statistics/analyst-interactions"||e=="/buyer-tools/consumption-statistics/corporate-access"||e=="/buyer-tools/consumption-statistics/esg-engagement"){l(this).find("li.reportingPage a.mainsections").addClass("reportingActive")}else if(e=="/admin/settings/users"&&l("#menulist3").hasClass("bttoolboxall")){l(this).find("li#menulist3 a.mainsections").addClass("bttoolboxActiveallActive")}else if(e=="/admin/settings/users"){l(this).find("li.bttoolbox a.mainsections").addClass("bttoolboxActive")}else if(e=="/provider-tools/publication-manager/reports"){l(this).find("li.ptnewspaper a.mainsections").addClass("ptnewspaperActive");l(this).find("#actionddmenu").addClass("forpptools")}else if(e=="/notifications"){l(this).find("li.notifs a.mainsections").addClass("notifsActive")}else if(e=="/provider/invest-securities"){l(this).find("li.is_coverage a.mainsections").addClass("is_coverageActive");l(this).find(".invest-ecurities-coverage img").attr("src","/themes/pukkaresearch/assets/images/icons/logo-coverage-white.svg")}else{l(this).find("a.mainsections").addClass("x")}});l("li.feed").on("mouseover",function(){l(this).find("a.mainsections").addClass("feedActive")});l("li.feed").on("mouseout",function(){var e=window.location.pathname;if(e!="/dashboard"){l(this).find("a.mainsections").removeClass("feedActive")}});l("li.library").on("mouseover",function(){l(this).find("a.mainsections").addClass("libraryActive")});l("li.library").on("mouseout",function(){var e=window.location.pathname;if(e!="/my-reports"){l(this).find("a.mainsections").removeClass("libraryActive")}});l("li.ptnewspaper").on("mouseover",function(){l(this).find("a.mainsections").addClass("ptnewspaperActive")});l("li.ptnewspaper").on("mouseout",function(){var e=window.location.pathname;var t=window.location.pathname.split("/");var n=t[1];if(n=="provider-tools"){l(this).find("li.ptnewspaper a.mainsections").addClass("ptnewspaperActive")}else if(e!="/provider-tools/publication-manager/reports"){l(this).find("a.mainsections").removeClass("ptnewspaperActive")}});l("li.is_coverage").on("mouseover",function(){l(this).find("a.mainsections").addClass("is_coverageActive");l(this).find(".invest-ecurities-coverage img").attr("src","/themes/pukkaresearch/assets/images/icons/logo-coverage-white.svg")});l("li.is_coverage").on("mouseout",function(){var e=window.location.pathname;var t=window.location.pathname.split("/");var n=t[1];if(n=="provider"){l(this).find("li.is_coverage a.mainsections").addClass("is_coverageActive")}else if(e!="/provider/invest-securities"){l(this).find("a.mainsections").removeClass("is_coverageActive");l(this).find(".invest-ecurities-coverage img").attr("src","/themes/pukkaresearch/assets/images/icons/logo-coverage-orange.svg")}});l("li.bttoolboxall").on("mouseover",function(){l(this).find("a.mainsections").addClass("bttoolboxActiveallActive")});l("li.bttoolboxall").on("mouseout",function(){var e=window.location.pathname;var t=window.location.pathname.split("/");var n=t[1];if(n=="buyer-tools"&&l("#menulist3").hasClass("bttoolboxall")){l(this).find("li.bttoolboxall a.mainsections").addClass("bttoolboxActiveallActive")}else if(e!="/admin/settings/users"){l(this).find("a.mainsections").removeClass("bttoolboxActiveallActive")}});l("li.bttoolbox").on("mouseover",function(){l(this).find("a.mainsections").addClass("bttoolboxActive")});l("li.bttoolbox").on("mouseout",function(){var e=window.location.pathname;var t=window.location.pathname.split("/");var n=t[1];if(n=="buyer-tools"&&l("#menulist3").hasClass("bttoolbox")){l(this).find("li.bttoolbox a.mainsections").addClass("bttoolboxActive")}else if(e!="/admin/settings/users"){l(this).find("a.mainsections").removeClass("bttoolboxActive")}});l("li.notifs").on("mouseover",function(){l(this).find("a.mainsections").addClass("notifsActive")});l("li.notifs").on("mouseout",function(){var e=window.location.pathname;var t=window.location.pathname.split("/");var n=t[1];if(n=="notifications"&&l("#notifactionlistid").hasClass("notifs")){l(this).find("li.notifs a.mainsections").addClass("notifsActive")}else if(e!="/notifications"){l(this).find("a.mainsections").removeClass("notifsActive")}});l("#childgetfinancialinsighttoggel").click(function(){if(l("#childgetfinancialinsighttoggel").attr("class")=="fal fa-2x fa-toggle-on"){l("#childgetfinancialinsighttoggel").removeClass("fa-toggle-on");l("#childgetfinancialinsighttoggel").addClass("fa-toggle-off");l("#childgetfinancialinsighttoggel").attr("data-item-state","0");l("#getfinancialinsightspan").text("NO")}else{l("#childgetfinancialinsighttoggel").removeClass("fa-toggle-off");l("#childgetfinancialinsighttoggel").addClass("fa-toggle-on");l("#childgetfinancialinsighttoggel").attr("data-item-state","1");l("#getfinancialinsightspan").text("YES")}});l(".js_provider_follow.already_following").mouseover(function(){var e=l(".js_provider_follow.already_following").text("UNFOLLOW")});l(".js_provider_follow.already_following").mouseout(function(){var e=l(".js_provider_follow.already_following").text("FOLLOWING")});l(".js_provider_follow.already_following.is-followed").mouseover(function(){var e=l(".js_provider_follow.already_following.is-followed").text("UNFOLLOW")});l(".js_provider_follow.already_following.is-followed").mouseout(function(){var e=l(".js_provider_follow.already_following.is-followed").text("FOLLOWING")});l(".btn-custom-grey.js_provider_follow.already_following.is-followed").mouseover(function(){var e=l(".btn-custom-grey.js_provider_follow.already_following.is-followed").text("UNFOLLOW")});l(".btn-custom-grey.js_provider_follow.already_following.is-followed").mouseout(function(){var e=l(".btn-custom-grey.js_provider_follow.already_following.is-followed").text("FOLLOWING")});l(document).delegate(".provider_save_email_notification_popup","click",function(){l.request("onProviderSaveEmailNotifications",{data:{user_dashboard_items:l("form.email_notification_popup-form").find('input[name="user_dashboard_items"]').val(),notifaction_type:1},complete:function(e){l.magnificPopup.close()},error:function(e){l.magnificPopup.close()}})});l(document).delegate(".provider_save_email_notification_popup_no","click",function(){l.request("onProviderSaveEmailNotifications",{data:{user_dashboard_items:l("form.email_notification_popup-form").find('input[name="user_dashboard_items"]').val(),notifaction_type:0},complete:function(e){l.magnificPopup.close()},error:function(e){l.magnificPopup.close()}})});l(document).delegate(".item-report-tag-edit-btn p.editReportsIcon","click",function(){var e=l(this).attr("data-edit-report-id");var t=window.location.pathname;t=t.substring(1);var n=t.split("/");var i=n[0];if(i=="dashboard"){var r="dashboardReportSearch::onCreateOrUpdateSingleReportPopupEdit"}else if(i=="company"){var r="companyDetail::onCreateOrUpdateSingleReportPopupEdit"}else{var r="reportSearch::onCreateOrUpdateSingleReportPopupEdit"}l.request(r,{data:{report_id:e},complete:function(e){var t=e.responseJSON.response_html;l.magnificPopup.open({items:{src:t},callbacks:{open:function(){const e=document.getElementById("customFieldsContainer");window.customFieldsApp=createCustomFieldsApp();window.customFieldsApp.$mount(e)},beforeClose:function(){window.customFieldsApp.$destroy();window.customFieldsApp=null}},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);l("#new_document_cover_effect").hide();l("#new_image_cover_effect").hide();l(".remove_pdf_btn").hide();l(".remove_img_btn").hide();l("#report_upload_type").find(".enable-select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});l("#report_upload_language").find(".enable-language-select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});l("#report_upload_recommendation").find(".enable-upload-select2").select2({minimumResultsForSearch:-1});l("#report_new_upload_category").find(".report_upload_currency_select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});l("#report_upload_author").find(".report_author_select2").select2({placeholder:"Please Select",allowClear:true});l("#report_upload_sector").find(".report_sector_select2").select2({placeholder:"Select one or multiple sectors",allowClear:true});l("#report_upload_geography").find(".report_geography_select2").select2({placeholder:"Select one or multiple geographies",allowClear:true});if(l('input:hidden[name="selectedTemplate"]').length){const o={id:l('input:hidden[name="selectedTemplate"]').val()};window.customFieldsApp.getReportSections(o)}l("#report_upload_currency").find(".report_upload_currency_select2").select2({minimumResultsForSearch:-1});if(typeof e.responseJSON.selected_companies!=="undefined"){var n=e.responseJSON.selected_companies;l.each(n,function(e,t){var n="";if(typeof t.ticker!=="undefined"&&t.ticker!=""&&t.ticker!=null){n=t.ticker+" | "}t.name=n+t.name;if(typeof t.covered!=="undefined"){t.text=t.name+t.covered;t.html=t.name+t.covered}var i=new Option(t.html,t.id,true,true);l("#report_upload_company").find(".report_upload_select2_companies").append(i).trigger("change")})}l("#report_upload_company").find(".report_upload_select2_companies").select2({placeholder:"Enter a company name",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:l.trim(e.term)}},processResults:function(e){l.each(e,function(e,t){if(typeof t.covered!=="undefined"){t.text=t.text+t.covered}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});l("#report_shared_with").find(".report_shared_with_select2").select2({allowClear:true});l(document).delegate("#bypassTitleGeneration","click",function(e){var t=l(e.target).is(":checked");if(!t){return}l("#new_upload_popup_report_title").val("")});reviveCompanyField();reviveBypassTitle();if(l("textarea.small_tinymce_new").length){tinymce.init({selector:".form-group textarea.small_tinymce_new",height:100,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}if(l("textarea.large_tinymce_new").length){tinymce.init({selector:".form-group textarea.large_tinymce_new",height:198,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}var i=l('select[name="report_upload_type"] option:selected').val();if(i==1){l("#html_report_upload_type").show();l("#only_report_pdf_btn").hide()}else{l("#html_report_upload_type").hide();l("#only_report_pdf_btn").show()}var r=l('input:hidden[name="rp_pdf"]').val();if(r!=""){l("#new_document_cover_effect").text(r);l(".new_document_cover_effect").show();l(".remove_pdf_btn").show();l(".only_report_pdf_btn").hide()}var a=l('input:hidden[name="report_tumb"]').val();if(a!=""){l("#new_image_cover_effect").text(a);l(".new_image_cover_effect").show();l(".remove_img_btn").show();l(".report_image_doc_btn").hide()}l.fn.initDateTimePicker()}})});l(document).ready(function(){var n=120;var e=window.location.pathname;var t=["/provider-tools/permissioning/add-entitlement-offer","/provider-tools/publication-manager/distribution","/buyer-tools/consumption-statistics/overview","/login","/buyer-tools/provider-manager/classification","/buyer-tools/provider-manager/budget-allocation/logs","/buyer-tools/provider-manager/budgeting","/buyer-tools/provider-manager/agreements/logs","/buyer-tools/provider-manager/agreements","/buyer-tools/publication-manager/templates","/calendar","/buyer-tools/publication-manager/reports","/login","/restore-password","/my-entitlements","/buyer-tools/add-entitlement-request","/provider-tools/settings/users-analysts","/register","/notifications","/provider-tools/permissioning/entitlements","/admin/settings/users","/provider-tools/settings/general","/buyer-tools/settings/general","/buyer-tools/budget-permissioning/entitlements","/account-profile","/my-reports","/account-email-notifications","/calendar","/account-entitlements"];var i=t.indexOf(e);if(i==-1){popupTimeout=setTimeout(function(){var e="empty";var t="";l(".rp-data-count").attr("data-total-number-items",n);l.request("reportSearch::onFetchReportCount",{data:{empty:e},complete:function(e){t=e.responseJSON.resultHtml;l(".rp-data-count").attr("data-total-number-items",t)}})},5e3)}})})(jQuery);jQuery.expr[":"].Contains=function(e,t,n){return jQuery(e).text().toUpperCase().indexOf(n[3].toUpperCase())>=0};function getCorrectViewStyle(e,t,n){var e=null!==e?e:window.innerWidth;var t=null!==t?t:$.fn.readCookie(n);if(null===t){return null}if(1200>e){return"card"}return t}function flagSearchType(e,t){var n=$(e).find('input[name="search_flag"]');if(!$(n).length){$(e).append('<input name="search_flag" type="hidden" value="'+t+'">');return}$(n).find('input[name="search_flag"]').val(t)}function resetFilterForm(){var e=["access_types_filter[]"];$.each(e,function(){var e=$('*[name="'+this+'"]');$(e).val("");$(e).trigger("change")})}function deserializeIntoFilter(e){resetFilterForm();var t=JSON.parse(e);$.each(t,function(){var e=$('*[name="'+this.name+'"]');if(undefined===$(e)){return}var t=$(e).val();if("Keywords[]"===this.name){if(null===t){t=[]}if($(e).find("option[value='"+this.value+"']").length){$(e).val($.merge(t,[this.value]))}else{var n=new Option(this.value,this.value,true,true);$(e).append(n);$(e).val($.merge(t,[this.value]))}}else{if($.isArray(t)){$(e).val($.merge(t,[this.value]))}else{$(e).val(this.value)}}$(e).trigger("change")})}(function(e){var t=e(".item-company-container:not(.item-company-more) p, .item-provider .item-body:not(.item-analysts-container) p");var n=e(".item-company-container.item-company-more p, .item-provider .item-body.item-analysts-container p");setTimeout(function(){t.dotdotdot({ellipsis:"…",height:57,keep:null,tolerance:0,truncate:"word",watch:"window"});n.dotdotdot({ellipsis:"…",height:20,keep:null,tolerance:0,truncate:"word",watch:"window"})},0)})(jQuery);(function(e){var t=e(".report-details-container-left").outerWidth();var n=e(".slider-report-details");n.css("width",t+"px");n.on("init",function(){e(".item-categories").css("max-width","100%")});setTimeout(function(){if(n!==undefined&&n.length>0){e(".slider-report-details").slick({infinite:true,slidesToScroll:1,slidesToShow:3,responsive:[{breakpoint:1950,settings:{slidesToShow:2}},{breakpoint:767,settings:{slidesToShow:1}}]})}},0)})(jQuery);$(window).on("resize orientationchange",function(){var e=$(".report-details-container-left").outerWidth();var t=$(".slider-report-details");t.css("width",e+"px");try{t.slick("resize")}catch(e){}});(function(u){u(".action-selector .style_select2").select2({minimumResultsForSearch:-1,selectOnClose:true});u(".btn-switch-view").on("click",function(){if(u.fn.readCookie("view_style")===u(this).data("view")){return}u.fn.createCookie("view_style",u(this).data("view"),365);location.href=location.href});u(".search-form-trigger").on("click",function(){u(this).toggleClass("open").parent().next(".search-form-filter-holder").slideToggle()});function e(e){var t=u("body").data("assetName");u.magnificPopup.open({items:{src:'<div class="white-popup white-popup-register text-center">'+'<img src="/themes/pukkaresearch/assets/images/'+t+'/logo.png"/>'+"<br /><hr /><br />"+e+"<br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}u('#interests-form input[name="interests-name"]').keyup(function(e){if(u(this).val().trim()==""){u(this).parent().addClass("has-error")}else{u(this).parent().removeClass("has-error");u("#interests-form .error").hide()}});u("#save-interest-button").click(function(e){e.preventDefault();var t=u(this);if(!t.hasClass("disabled")){t.addClass("disabled");var n=t.closest("form");if(n.find(".has-error").length||u('input[name="interests-name"]').val().trim()==""){n.find(".error").show();t.removeClass("disabled");return false}u.request("interest::onCheckInterestsByName",{data:{interest_name:u('input[name="interests-name"]').val().trim(),interest_id:u("input.interest-id").val()},complete:function(e){if(e.responseJSON.status=="00"){u.magnificPopup.close();u.magnificPopup.open({items:{src:e.responseJSON.response_html},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0);t.removeClass("disabled")}else if(e.responseJSON.status=="01"){u.fn.createInterests(t);t.removeClass("disabled")}}})}});u.fn.createInterests=function(e){u.magnificPopup.close();u.magnificPopup.open({items:{src:"#email-popup"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple",callbacks:{close:function(){setTimeout(e.closest("form").submit(),1)}}},0);return false};u(document).delegate("a.cancel-interest-saving","click",function(){var e=u.magnificPopup.instance;e.close();u("#save-interest-button").removeClass("disabled")});u(document).delegate("a.submit-interests-form","click",function(){u.fn.createInterests(u("#save-interest-button"));u("#save-interest-button").removeClass("disabled")});if(u("#email-popup").length){u("#email-popup .save_email_notification_popup").click(function(e){e.preventDefault();e.stopPropagation();u("#interests-form").find('input[name="email_notifications"]').val(1);u.magnificPopup.close();return false})}u(document).delegate(".main-check-box","change",function(){if(u(this).is(":checked")){u("ul.region_dropdown li.region_list").each(function(){u(this).find("div label input.all-selector").prop("indeterminate",false);u(this).find("div label input.all-selector").prop("checked",true)})}else{u("ul.region_dropdown li.region_list").each(function(){u(this).find("div label input.all-selector").prop("indeterminate",false);u(this).find("div label input.all-selector").prop("checked",false)})}});u(document).delegate(".custom-select:not(.tree-view-custom-select)","change",function(){var e="";var t=[];var n=[];var i=u(this);var r=u("#geography_section").data("selected-region-names");u("ul.region_dropdown li.region_list").each(function(){var e=u(this).data("region-name");if(~r.indexOf(e)){if(u(".main-check-box").is(":checked")){u(this).find("div label input.all-selector").prop("indeterminate",false)}else{u(this).find("div label input.all-selector").prop("indeterminate",true)}}});var a=u("#geography_section").data("count");var o=i.find("li div label input").not(".skip_title, .false-checkbox").length;var s=i.find("li div label input:checked").not(".skip_title, .false-checkbox").length;if(o==s){if(i.find(".check-all").data("disable-auto-update-check-all")==true){if(i.find(".check-all").is(":checked")){i.find(".check-all").prop("checked",true).next("span").text("Uncheck All");e="All Selected"}else{i.find("li div label input:checked").not(".skip_title, .false-checkbox").each(function(){var e=u(this).parent().find("span").html();t.push(e)});e=t.join("; ")}}else{i.find("li.has-more-items div label input:checked").each(function(){var e=u(this).data("select-countries");if(e!=undefined){n.push(e)}new_title=n.join("; ")});i.find(".check-all").prop("checked",true).next("span").text("Check All");e=new_title}}else{var l=i.find("li div label input.check-all:checked");if(l.length){l.prop("checked",false);l.next("span").text(l.data("all-select-placeholder"))}i.find("li div label input:checked").not(".skip_title, .false-checkbox").each(function(){var e=u(this).parent().find("span").html();t.push(e)});e=t.join("; ")}if(e==""&&a==190){e="All Selected"}if(e==""){if(u(".dashboard_filters_wrapper").length){e="No Filter"}else{e="Click to select"}}i.find("span.selector").html(e)});u(document).delegate(".region_list","click",function(e){var t=u(this);e.stopPropagation();t.find("div label input.all_countries_trigger").prop("indeterminate",false);var n=t.data("region-name").replace(/\s/g,"");var i="#region_name_"+n;u(i).find("div label input.all_countries_trigger").prop("indeterminate",false);u("#geography_section").find(".main-check-box").prop("checked",false);if(u(i).find("div label input.all_countries_trigger").is(":checked")){u(i).find("ul.more-items").each(function(){u(i).find('ul li.country-name div label input[type="checkbox"]').prop("checked",true)})}else{u(i).find("ul.more-items").each(function(){var e=u("#providerCountriesId").val();var t=u(i).find("ul li.country-name div label input").val();if(~e.indexOf(t)){u(i).find("ul li.country-name div label input.country_"+t).prop("checked",true)}else{u(i).find("ul li.country-name div label not(input.country_"+t+")").prop("checked",false)}})}});u(document).delegate(".custom-select:not(.tree-view-custom-select) .check-all","change",function(){if(!u(this).data("all-select-placeholder")){u(this).data("all-select-placeholder",u(this).next("span").text())}var e=u(this).is(":checked");var t=u(this).data("all-select-placeholder");var n=u(this).closest(".custom-select");u(this).next("span").text("Uncheck All");if(!e){u(this).next("span").text(t)}n.find("input:not(.check-all)").each(function(){u(this).prop("checked",e)})});u(document).delegate(".custom-select:not(.tree-view-custom-select) .selector","change",function(){var e=u(this).closest(".custom-select").find("input").length;if(u(this).hasClass("closed")&&e>6){t(u(this).closest(".custom-select"))}});function t(n){var e=n.find("li.custom-dropdown-has-checkbox:not(:first)").get();e.sort(function(e,t){var n=u(e).find("input");var i=u(t).find("input");if(n.is(":checked")){if(i.is(":checked")){return n.parent().text().toUpperCase().localeCompare(i.parent().text().toUpperCase())}else{return-1}}else{if(i.is(":checked")){return+1}else{return n.parent().text().toUpperCase().localeCompare(i.parent().text().toUpperCase())}}});u.each(e,function(e,t){n.find(">ul").append(t)})}n();function n(){u(".custom-select:not(.tree-view-custom-select) .select-all").each(function(){if(!u(this).data("all-select-placeholder")){u(this).data("all-select-placeholder",u(this).next("span").text())}})}u(document).delegate(".custom-select.tree-view-custom-select","change",function(){r(u(this));var t="";var e=u(this).find("input").not(".check-all, .search-countries").length;var n=u(this).find("input:checked").not(".check-all, .search-countries").length;if(e==n){t="All Selected"}else{var i=[];u(this).find("input.all-selector").each(function(){var e=u(this).parent().find("span").text();if(u(this).is(":checked")&&u(this).data("skip-region-name")!=true){i.push(e)}else{u(this).closest(".has-more-items").find("ul.more-items input").each(function(){if(u(this).is(":checked")){i.push(u(this).parent().find("span").text())}})}t=i.sort().join("; ")})}if(t==""){if(u(".dashboard_filters_wrapper").length){t="No Filter"}else{t="Click to select"}}u(this).find("span.selector").text(t)});u(document).delegate(".custom-select.tree-view-custom-select .check-all","change",function(){if(!u(this).data("all-select-placeholder")){u(this).data("all-select-placeholder",u(this).next("span").text())}var e=u(this).is(":checked");var t=u(this).data("all-select-placeholder");u(this).next("span").text("Uncheck All");if(!e){u(this).next("span").text(t)}u(this).closest("ul").find("input.all-selector").each(function(){if(u(this).is(":indeterminate")){u(this).prop("indeterminate",false)}u(this).prop("checked",e)})});u(document).delegate(".custom-select.tree-view-custom-select .has-more-items input.all-selector","change",function(){var e=u(this).is(":checked");if(e){a(u(this).closest("li"),"checked",true)}else{if(u(this).is("indeterminate")){a(u(this).closest("li"),"indeterminate",true)}else{a(u(this).closest("li"),"unchecked",true)}}});u(document).delegate(".custom-select.tree-view-custom-select .more-items","change",function(){var e=u(this);var t=e.find("input").length;var n=e.find("input:checked").length;var i=u(this).closest(".has-more-items");var r=i.find("input.all-selector");if(n==0){if(e.prop("checked")){a(i,"unchecked",false)}else{a(i,"unchecked",true)}r.prop("indeterminate",false);r.prop("checked",false)}else if(t==n){if(!i.prop("checked")&&!i.prop("indeterminate")){a(i,"checked",false)}else{a(i,"checked",true)}r.prop("indeterminate",false);r.prop("checked",true)}else{a(i,"indeterminate",true);r.prop("checked",false);r.prop("indeterminate",true)}});function a(e,t,n){if(!e.hasClass(t)){e.removeClass("unchecked");e.removeClass("indeterminate");e.removeClass("checked");e.addClass(t);e.addClass("changed")}if(n){e.find("ul.more-items").addClass("items-changed")}}u(document).delegate(".custom-select.tree-view-custom-select .selector","change",function(){var e=u(this).closest(".custom-select.tree-view-custom-select");r(e);i(e.find(">ul"));e.find(">ul").find("ul.more-items.items-changed").each(function(){o(u(this))})});u(document).delegate(".custom-select.geography-select-filter.tree-view-custom-select .more-items","change",function(){var e=u(this);var t=e.find("input").length;var n=e.find("input:checked").length;var i=u(this).closest(".has-more-items");var r=i.find(".checkbox input.all-selector");if(n>0){r.prop("indeterminate",false);r.prop("checked",true)}});function r(e){var t=e.find("input").not(".check-all, .search-countries").length;var n=e.find("input:checked").not(".check-all, .search-countries").length;if(t==n){e.find(".check-all").prop("checked",true).next("span").text("Uncheck All")}else{var i=e.find("input.check-all:checked");if(i.length){i.prop("checked",false);i.next("span").text(i.data("all-select-placeholder"))}}}function i(n){var e=[];var t=[];var i=[];var r=n.find(".custom-dropdown-has-checkbox").get();if(n.find(".has-more-items.indeterminate.changed").length){t=n.find(".has-more-items.indeterminate").removeClass("changed").get();t.sort(function(e,t){var n=u(e).find("input.all-selector");var i=u(t).find("input.all-selector");return i.parent().text().toUpperCase().localeCompare(n.parent().text().toUpperCase())});u.each(t,function(e,t){n.prepend(t)});e=n.find(".has-more-items.checked").get();u.each(e.reverse(),function(e,t){n.prepend(t)})}if(n.find(".has-more-items.checked.changed").length){e=n.find(".has-more-items.checked").removeClass("changed").get();e.sort(function(e,t){var n=u(e).find("input.all-selector");var i=u(t).find("input.all-selector");return i.parent().text().toUpperCase().localeCompare(n.parent().text().toUpperCase())});u.each(e,function(e,t){n.prepend(t)})}if(n.find(".has-more-items.unchecked.changed").length){i=n.find(".has-more-items.unchecked").removeClass("changed").get();i.sort(function(e,t){var n=u(e).find("input.all-selector");var i=u(t).find("input.all-selector");return n.parent().text().toUpperCase().localeCompare(i.parent().text().toUpperCase())});u.each(i,function(e,t){n.append(t)})}n.prepend(r)}function o(n){n.removeClass("items-changed");var e=n.find(".country-name").get();e.sort(function(e,t){var n=u(e).find("input");var i=u(t).find("input");if(n.is(":checked")){if(i.is(":checked")){return n.parent().text().toUpperCase().localeCompare(i.parent().text().toUpperCase())}else if(i.is(":indeterminate")){return-1}else{return-2}}else if(n.is(":indeterminate")){if(i.is(":checked")){return+1}else if(i.is(":indeterminate")){return n.parent().text().toUpperCase().localeCompare(i.parent().text().toUpperCase())}else{return-1}}else{if(i.is(":checked")){return+2}else if(i.is(":indeterminate")){return+1}else{return n.parent().text().toUpperCase().localeCompare(i.parent().text().toUpperCase())}}});u.each(e,function(e,t){n.append(t)})}s();function s(){u(".custom-select.tree-view-custom-select .select-all").each(function(){if(!u(this).data("all-select-placeholder")){u(this).data("all-select-placeholder",u(this).next("span").text())}})}u(".has-more-items-arrow").on("click",function(){var e=u(this).closest(".has-more-items");if(!e.hasClass("open")){e.addClass("open")}else{e.removeClass("open")}e.children(".more-items").slideToggle()});u(".search-countries").on("keyup",function(e){var t=u(this).val();var n=u(this).closest(".custom-select");n.find("li.open").removeClass("open").find("ul").hide();if(t==""){n.find("li").show()}else{n.find("li").hide();n.find("li.country-name:Contains("+t+")").each(function(){u(this).show();u(this).closest("ul").show();u(this).closest("li.has-more-items").show().addClass("open")});n.find("li:not(.country-name):Contains("+t+")").each(function(){u(this).show()})}});u(".search-countries").keypress(function(e){if(e.which==13)return false;if(e.which==13)e.preventDefault()});l();function l(){u(".custom-select").each(function(){if(u(this).hasClass("tree-view-custom-select")){if(u(this).find("input.check-all:checked").length){u(this).find("input.check-all:checked").change()}else{u(this).find("li").addClass("unchecked");u(this).find("input:not(.check-all):checked").each(function(){u(this).change()})}}else{if(u(this).find("input.check-all:checked").length){u(this).find("input.check-all:checked").change()}else{u(this).find("input:not(.check-all):checked").each(function(){u(this).change()})}}})}u.fn.renderQtipTooltips=function(){u("[data-qtip]").each(function(){var e=u(this);var t=e.attr("data-qtip");var n="";if(u(this).attr("data-qtip-class")){n=u(this).attr("data-qtip-class")}u(this).qtip({content:{text:t},position:{my:"top center",at:"bottom center",target:e,adjust:{y:10},style:{tip:false}},style:{classes:n}})})};u.fn.renderQtipTooltips();u.fn.createCookie=function(e,t,n){if(n){var i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);var r="; expires="+i.toGMTString()}else var r="";document.cookie=e+"="+t+r+"; path=/"};u.fn.readCookie=function(e){var t=e+"=";var n=document.cookie.split(";");for(var i=0;i<n.length;i++){var r=n[i];while(r.charAt(0)==" ")r=r.substring(1,r.length);if(r.indexOf(t)==0)return r.substring(t.length,r.length)}return null};u.fn.eraseCookie=function(e){u.fn.createCookie(e,"",-1)};u("a#load_all_producers").click(function(){u.request("fourthstep::onLoadAll",{data:{loaded_provider_ids:u(this).data("loaded_provider_ids")},complete:function(e){if(e.responseJSON.status=="01"){u("div#provider_container").append(e.responseJSON.resultHtml);u("a#load_all_producers").hide();u.fn.renderQtipTooltips()}}})});u("#inputSearchGroup").on("mouseover",function(){u(".searchqtiphover").css("display","block")});u("#inputSearchGroup").on("mouseout",function(){u(".searchqtiphover").css("display","none")});u(document).delegate("#inputSearchGroup","click",function(){u(".searchqtiphover").css("display","none")});u(document).delegate(".show-more-text","click",function(){var e=u(this);var t=u(this).text();var n=e.attr("data-old-title");e.attr("data-old-title",t);var i=u(this).siblings(".more-text");i.toggle(function(){if(u(this).is(":visible")){u(this).css("display","inline")}});if(i.hasClass("visible-text")){i.removeClass("visible-text")}else{var r=400;setTimeout(function(){i.addClass("visible-text")},r)}u(this).text(t!="show less"?"show less":n)});if(u(".show_change_password_popup").length){var c=u.magnificPopup.instance;c.close();u.magnificPopup.open({items:{src:"#dashboard_change_password"},type:"inline",closeOnBgClick:false,enableEscapeKey:false,closeMarkup:""},0);u(".country_select").find(".country_dropdown_select").select2({placeholder:"Please select your Country",allowClear:true,minimumResultsForSearch:-1})}else if(u(".show_update_account_details_popup").length){var c=u.magnificPopup.instance;c.close();c.open({items:{src:"#dashboard_change_first_and_last_name"},type:"inline",closeOnBgClick:false,enableEscapeKey:false,closeMarkup:""},0)}u("#save_dashboard_change_password").click(function(){var e=window.location.pathname;u("#dashboard_change_password").find("errors").html("");var t=/^(?=.*\d)(?=.*[a-zA-Z]).{6,}$/;var n=u("#accountPassword").val();var i=u("#accountPasswordConfirm").val();var r="";if(u('#dashboard_change_password input[name="name"]').length&&u('#dashboard_change_password input[name="name"]').val()==""){r="First name is required."}if(u('#dashboard_change_password input[name="surname"]').length&&u('#dashboard_change_password input[name="surname"]').val()==""){r="Last name is required."}if(u('#dashboard_change_password select[name="country_id"]').length&&(u('#dashboard_change_password select[name="country_id"]').val()==""||u('#dashboard_change_password select[name="country_id"]').val()==null)){r="Country need to be selected."}if(u('input[name="terms_and_conditions_accepted"]').length&&!u('input[name="terms_and_conditions_accepted"]').prop("checked")){r="Terms and conditions & privacy policy must be accepted."}if(n.match(t)||i.match(t)){if(n!=i){r="Password and Password Confirmation must be same."}}else{r="Password must 8 or more alphabetic and numerical characters.";u("#dashpasschangeerrormessage").css("color","#ff4757")}if(r!=""){u("#dashboard_change_password").find(".errors").html(r);return false}var a=u("form.dashboard_change_password-form").serializeArray();if(e=="/provider-tools/settings/general"){u.request("account::onChangePassword",{data:a,complete:function(e){if(e.responseJSON.status=="01"){location.reload()}}})}else{u.request("dashboardReportSearch::onChangePassword",{data:a,complete:function(e){if(e.responseJSON.status=="01"){location.reload()}}})}return false});u(".submit_change_first_and_last_name_form").click(function(){var e=u(this);if(!e.hasClass("disabled")){e.addClass("disabled");u("#dashboard_change_first_and_last_name").find("errors").html("");var t="";if(u('#dashboard_change_first_and_last_name input[name="name"]').length&&u('#dashboard_change_first_and_last_name input[name="name"]').val()==""){t="First name is required."}if(u('#dashboard_change_first_and_last_name input[name="surname"]').length&&u('#dashboard_change_first_and_last_name input[name="surname"]').val()==""){t="Last name is required."}if(u('#dashboard_change_first_and_last_name select[name="country_id"]').length&&(u('#dashboard_change_first_and_last_name select[name="country_id"]').val()==""||u('#dashboard_change_first_and_last_name select[name="country_id"]').val()==null)){t="Country need to be selected."}if(t!=""){u("#dashboard_change_first_and_last_name").find(".errors").html(t);e.removeClass("disabled");return false}var n=u("form.change_first_and_last_name_form").serializeArray();u.request("dashboardReportSearch::onUpdateFirstAndLastName",{data:n,complete:function(e){if(e.responseJSON.status=="01"){location.reload()}}})}return false});if(u("#purchase-page-form").length){var d=decodeURIComponent(window.location.search.substring(1)).split("&");if(d.length>0){setTimeout(function(){u('[data-purchase-type="'+d[0].split("=")[1]+'"]').prop("selected",true).trigger("change");if(d.length>1){u('.choose-plan-dropdown [value="'+d[1].split("=")[1]+'"]').prop("selected",true).trigger("change");u('.single_subscription_type_options_dropdown [value="'+d[2].split("=")[1]+'"]').prop("selected",true).trigger("change")}},1e3)}}u("#purchase-page-form").find(".purchase-select-purchase-type").on("change",function(){var e=u(this);e.closest("form").find(".dropdown-options-errors.errors").html("");var t=e.find(":selected");var n=t.data("purchase-type");t.html(t.data("simple-label"));if(n=="report"){u(".purchase-page-srd-content").find("span.title").html(t.data("item-option-title"));u(".purchase-page-single-report-data").fadeIn();u(".subscription-chosen").fadeOut();u("#purchase-page-form").find(".show_only_on_subscription").hide();u("#purchase-page-form").find(".purchase_type").val("report");if(u("input.allocation_price").length){u("input.allocation_price").val(t.data("usd-num-value"))}u("span.top_price_num_value").text(t.val());u(".choose-plan-dropdown").val("");u(".single_subscription_type_options_dropdown").val("");e.find('option[data-purchase-type="subscription"]').val("");u(".subscription_type_options").removeClass("selected_subscription_type_options_group")}else if(n=="subscription"){u(".purchase-page-single-report-data").hide();u(".subscription-chosen").fadeIn();u("#purchase-page-form").find(".show_only_on_subscription").show();u("#purchase-page-form").find(".purchase_type").val("subscription");if(u("input.allocation_price").length){u("input.allocation_price").val(t.data("usd-num-value"))}u("span.top_price_num_value").text(t.val())}else{u(".purchase-page-single-report-data").fadeOut();u(".subscription-chosen").fadeOut();u("#purchase-page-form").find(".show_only_on_subscription").hide();u("#purchase-page-form").find(".purchase_type").val("");if(u("input.allocation_price").length){u("input.allocation_price").val("")}u("span.top_price_num_value").text("")}});u("#purchase-page-form").find(".invoice").on("click",function(){u(".credit-card-chosen").fadeOut();if(u(this).data("pro-form-type")=="bank_transfer"){u(".narow-content p.show_on_rpa_csa").hide();u(".narow-content p.show_on_bank_transfer").show()}else{u(".narow-content p.show_on_bank_transfer").hide();u(".narow-content p.show_on_rpa_csa").show()}u(".invoice-chosen").fadeIn();u("#purchase-page-form").find(".purchase_p_submit_payment").addClass("disabled")});u("#purchase-page-form").find(".credit-card").on("click",function(){u(".invoice-chosen").fadeOut();u(".narrow-content.request-credit-chosen").fadeOut();u(".credit-card-chosen").fadeIn();u("#purchase-page-form").find(".purchase_p_submit_payment").removeClass("disabled")});u("#purchase-page-form").find(".request_credit").on("click",function(){u(".credit-card-chosen").fadeOut();u("#purchase-page-form").find(".purchase_p_submit_payment").addClass("disabled");u(".narrow-content.request-credit-chosen").fadeIn()});u("#purchase-page-form").find(".choose-plan-dropdown").on("change",function(){var e=u(this);var t=e.find(":selected");e.closest("form").find(".dropdown-options-errors.errors").html("");u(".purchase-page-single-report-data").hide();t.html(t.data("dropdown-label-prefix"));var n=u('.purchase-select-purchase-type option[data-purchase-type="subscription"]');if(t.val()==""){n.val("");if(u("input.allocation_price").length){u("input.allocation_price").val("")}}else{u(".subscription_type_options").removeClass("selected_subscription_type_options_group");u('.subscription_type_options[data-subscription-type-id="'+t.data("subscription-type-id")+'"]').addClass("selected_subscription_type_options_group");u("#purchase-page-form").find('input[name="payment_plan"]').val(u('.subscription_type_options[data-subscription-type-id="'+t.data("subscription-type-id")+'"]').find("select.single_subscription_type_options_dropdown option:selected").val())}u(".subscription_type_options").not(".selected_subscription_type_options_group").find("select").val("")});u("#purchase-page-form").find(".single_subscription_type_options_dropdown").on("change",function(){var e=u(this);var t=e.find(":selected");var n=u('.purchase-select-purchase-type option[data-purchase-type="subscription"]');var i=e.closest(".subscription_type_options").data("subscription-type-id");var r=u('select.choose-plan-dropdown option[data-subscription-type-id="'+i+'"]');if(t.val()==""){u(".purchase-page-single-report-data").hide();n.val("");n.data("usd-num-value","");u("span.top_price_num_value").text("");u("#purchase-page-form").find('input[name="payment_plan"]').val("");if(u("input.allocation_price").length){u("input.allocation_price").val("")}}else{u(".purchase-page-srd-content").find("span.title").html(r.html());u(".purchase-page-single-report-data").fadeIn();n.val(t.data("num-value"));n.data("usd-num-value",t.data("usd-num-value"));u("span.top_price_num_value").text(t.data("num-value"));u("#purchase-page-form").find('input[name="payment_plan"]').val(t.val());if(u("input.allocation_price").length){u("input.allocation_price").val(t.data("usd-num-value"))}}});u(document).on("click",function(e){var t=u(".elastic-search");if(!t.is(e.target)&&t.has(e.target).length===0){u(".elastic-search").removeClass("open");u(".suggestions").hide()}if(u(e.target).is(".follow_for_unregistered")){var n="";var i=u(e.target).data("provider-id");if(i!=""&&typeof i!=="undefined"){n='{"type":"provider","id":"'+i+'"}'}else{var r=u(e.target).data("company-id");if(r!=""&&typeof r!=="undefined"){n='{"type":"company","id":"'+r+'"}'}}if(n!=""){u.fn.createCookie("follow_action",n,1)}}else if(u(e.target).is(".mfp-content")||u(e.target).is(".mfp-close")){u.fn.createCookie("follow_action","",-1);if(u(".extracted-report-content").length){var a=u.fn.readCookie("redirect_after_rating");if(a!=null){u.fn.createCookie("redirect_after_rating","",-1);window.location=a}}}});checkHighlightText();var p=u("#purchase-page-form");p.find(".purchase_p_submit_payment").not(".disabled").on("click",function(){p.find(".errors").html("");p.find(".payment-errors").text("");p.find(".purchase_p_submit_payment").addClass("disabled");var e=true;var t=false;if(p.find("input.use_saved_info").length){t=p.find("input.use_saved_info").val()==1}p.find(".required").each(function(){if(u(this).val()==""){u(this).parent().find(".errors").html("This field is required.");e=false}});if(p.find("select.purchase-select-purchase-type").length){var n=p.find("select.purchase-select-purchase-type").val();if(n==""){e=false;p.find(".dropdown-options-errors.errors").text("Please select option in dropdown above.")}else{}}if(p.find("input.cc_number").length){var i="You need to accept our terms of use and payment agreement.";if(!u('input[name="terms"]').is(":checked")){e=false;p.find(".payment-errors").text(i)}if(p.find("input.purchase_type").val()=="subscription"&&!u('input[name="terms_and_agreement"]').is(":checked")){e=false;p.find(".payment-errors").text(i)}}if(t&&e){pp_stripeResponseHandler(null,{id:null,error:null})}else if(e){Stripe.card.createToken(p,pp_stripeResponseHandler)}else{p.find(".purchase_p_submit_payment").removeClass("disabled")}return false});u(document).delegate(".request_credit_from_admin","click",function(){if(u(this).hasClass("disabled")){return false}p.find(".request_credit_from_admin").addClass("disabled");var e=p.serializeArray();u.request("purchasePage::onSubmitRequestForCredit",{data:e,complete:function(e){if(e.responseJSON.message!=""){if(p.find(".success-message").length){p.find(".success-message").html('<strong style="color: #337ab7;">'+e.responseJSON.message+"</strong>")}else{p.find(".errors").html('<strong style="color: #337ab7;">'+e.responseJSON.message+"</strong>")}}}});return false});p.find('input[data-stripe="number"]').on("change",f);p.find('input[data-stripe="cvc"]').on("change",f);p.find('select[data-stripe="exp_month"]').on("change",f);p.find('select[data-stripe="exp_year"]').on("change",f);function f(){if(p.find("input.use_saved_info").val()==1){p.find("input.use_saved_info").val(0);p.find('input[data-stripe="number"]').attr("placeholder","");p.find('input[data-stripe="cvc"]').attr("placeholder","");p.find('select[data-stripe="exp_month"]').find('[selected="true"]').removeAttr("selected");p.find('select[data-stripe="exp_year"]').find('[selected="true"]').removeAttr("selected")}}p.find(".submit_pro_payment_form").not(".disabled").on("click",function(){h(u(this),true)});u(document).on("click",".submit_pro_payment_form_confirmation_btn",function(){h(p.find(".submit_pro_payment_form"),false)});function h(e,t){var n=u("body").data("siteTitle");var a=u('input[name="purchase_page_type"]').length&&u('input[name="purchase_page_type"]').val()=="free-trial"?true:false;if(e.hasClass("disabled")){return false}e.addClass("disabled");p.find(".pro-items-section").find("div.errors").html("");p.find(".dropdown-options-errors.errors").html("");var i=0;u(".selected_items_percentage_values").each(function(){i+=+u(this).val()});if(u("input.allocation_price").length&&u("input.allocation_price").val()==""){p.find(".dropdown-options-errors.errors").html("Please select option in dropdown above.");p.find(".submit_pro_payment_form").removeClass("disabled");return false}if(i==0){p.find(".pro-items-section").find("div.errors").html("Please select Portfolio or Investment strategy.");p.find(".submit_pro_payment_form").removeClass("disabled");return false}else if(i!=100){p.find(".pro-items-section").find("div.errors").html("Error! The sum of the all percentage should be 100%.");p.find(".submit_pro_payment_form").removeClass("disabled");return false}else{u(".selected_items_percentage_values").removeClass("red-border");var o=false;var s=false;var l=p.find("input.allocation_price").val();u(".selected_items_percentage_values").each(function(){var e=u(this);var t=e.val();var n=e.data("free_credits");var i=e.data("free_budget");var r=l/100*t;if(r>n||r>i){if(!a){e.addClass("red-border")}}if(r>n&&o==false){o=true}if(r>i&&s==false){s=true}});if(o==false&&s==false){p.find('input[name="credit_check_passed"]').val(1)}if(a&&(o||s)){s=false;o=false;u.fn.createCookie("show_allocation_remainder","yes",1)}var r=p.find(".is_user_admin").val();var c="";if(parseInt(r)==1){c='<br/><br/> <a href="/buyer-tools/budget-permissioning/creditallocation" target="_blank" style="cursor: pointer;"><strong>Click here to visit the ResearchPool Credit page to purchase and allocate more credit</strong></a>'}else{c='<br/><br/><textarea name="credit_request_message" style="width: 100%; display:inline-block; color: #000;" rows="3" placeholder="Message"></textarea><br /><br/> <a class="request_credit_from_admin btn btn-info" style="cursor: pointer;"><strong>Request additional credit from admin with the following allocation</strong></a>'}if(o==true){if(parseInt(r)==1){p.find(".pro-items-section").find("div.errors").html("Unallocated Credit. Visit the Credit page to allocate your credit to Investment Strategies and Portfolios. "+c)}else{p.find(".pro-items-section").find("div.errors").html("Insufficient credit. Increase allocated credit or select another Investment Strategy or Portfolio. "+c)}p.find(".submit_pro_payment_form").removeClass("disabled");return false}else if(s==true){p.find(".pro-items-section").find("div.errors").html("This transaction would exceed your allocated budget. Please increase your budget to continue with this transaction.");p.find(".submit_pro_payment_form").removeClass("disabled");return false}else{if(t){e.removeClass("disabled");if(u(".hidden_allocation_options").length){u(".hidden_allocation_options").hide();if(u("input.selected_items").length){u("input.selected_items").each(function(){u(".hidden_allocation_options."+u(this).val()).show()})}}u.magnificPopup.close();u.magnificPopup.open({items:{src:'<div class="white-popup submit_pro_payment_form_confirmation">'+"<h3>CONFIRM SPENDING</h3><br /><br />"+'<p class="intro-text">Your remaining Investment Strategy and Portfolio credit balance is shown below.</p><br />'+u("#allocation_details_list").html()+"<br /><br />"+'<div class="popup_controle_buttons"><a href="javascript:void(0)" class="simple_close_magnific_popup">Cancel</a> <a href="javascript:void(0)" class="submit_pro_payment_form_confirmation_btn">Confirm</a></div><br /></div>'},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);return false}else{var d=p.serializeArray();u.request("purchasePage::onSavePro",{data:d,complete:function(e){if(e.responseJSON.status=="00"){p.find(".pro-items-section").find("div.errors").html(e.responseJSON.error);p.find(".submit_pro_payment_form").removeClass("disabled");u.magnificPopup.close();return false}else if(e.responseJSON.status=="01"){if(e.responseJSON.purchase_type=="report"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.report_title,sku:e.responseJSON.report_id,category:"Reports "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send");ga("send","event","button","ReadNow "+e.responseJSON.purchase_type,"Purchase Page",1,{provider:e.responseJSON.producer_name,title:e.responseJSON.report_title,id:e.responseJSON.report_id,language:e.responseJSON.report_language,investor:e.responseJSON.investor})}else if(e.responseJSON.purchase_type=="subscription"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.producer_name,sku:e.responseJSON.producer_id,category:"Subscription for "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send")}if(e.responseJSON.redirect_url!=""){window.location=e.responseJSON.redirect_url}}}})}}}}p.find(".submit_pro_payment_form_not_true_user").not(".disabled").on("click",function(){m(u(this),true)});u(document).on("click",".submit_not_pro_payment_form_confirmation_btn",function(){m(p.find(".submit_pro_payment_form_not_true_user"),false)});function m(e,t){var n=u("body").data("siteTitle");if(e.hasClass("disabled")){return false}e.addClass("disabled");p.find(".pro-items-section").find("div.errors").html("");var i=p.find(".is_user_admin").val();var r="";if(parseInt(i)==1){r='<br/> <a href="/buyer-tools/budget-permissioning/creditallocation" target="_blank"><strong>Click here to visit the '+n+" Credit page to purchase and allocate more credit</strong></a>"}else{r='<br/><br/><textarea name="credit_request_message" style="width: 100%; display:inline-block; color: #000;" rows="3" placeholder="Message"></textarea><br/> <a class="request_credit_from_admin btn btn-info"><strong>Request additional credit from admin with the following allocation</strong></a>'}if(parseInt(p.find("input.allocation_price").val())>parseInt(p.find("input.admin_user_available_credits").val())){p.find(".pro-items-section").find("div.errors").html("Your organization doesn't have enough credits."+r);p.find(".submit_pro_payment_form_not_true_user").removeClass("disabled");return false}else{if(t){e.removeClass("disabled");if(u(".hidden_allocation_options").length){u(".hidden_allocation_options").hide();if(u("input.selected_items").length){u("input.selected_items").each(function(){u(".hidden_allocation_options."+u(this).val()).show()})}}u.magnificPopup.close();u.magnificPopup.open({items:{src:'<div class="white-popup submit_pro_payment_form_confirmation">'+"<h3>CONFIRM SPENDING</h3><br /><br />"+'<p class="intro-text">Your remaining credit balance is '+u("#allocation_details_list").data("user-free-credit")+"</p><br />"+'<div class="popup_controle_buttons"><a href="javascript:void(0)" class="simple_close_magnific_popup">Cancel</a> <a href="javascript:void(0)" class="submit_not_pro_payment_form_confirmation_btn">Confirm</a></div><br /></div>'},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);return false}else{var a=p.serializeArray();u.request("purchasePage::onSavePro",{data:a,complete:function(e){if(e.responseJSON.status=="00"){p.find(".pro-items-section").find("div.errors").html(e.responseJSON.error);p.find(".submit_pro_payment_form_not_true_user").removeClass("disabled");return false}else if(e.responseJSON.status=="01"){if(e.responseJSON.purchase_type=="report"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.report_title,sku:e.responseJSON.report_id,category:"Reports "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send");ga("send","event","button","ReadNow "+e.responseJSON.purchase_type,"Purchase Page",1,{provider:e.responseJSON.producer_name,title:e.responseJSON.report_title,id:e.responseJSON.report_id,language:e.responseJSON.report_language,investor:e.responseJSON.investor})}else if(e.responseJSON.purchase_type=="subscription"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.producer_name,sku:e.responseJSON.producer_id,category:"Subscription for "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send")}if(e.responseJSON.redirect_url!=""){window.location=e.responseJSON.redirect_url}}}})}}}if(u(".report-detail-wrapper.show_allocation_reminder").length){u.magnificPopup.close();u.magnificPopup.open({items:{src:'<div class="white-popup" style="padding: 20px 50px;">'+'<h3 style="font-size: 40px; font-weight: bolder; text-align: center; color: #999;">INSUFFICIENT CREDIT</h3><br /><br />'+'<p class="intro-text" style="font-size: 16px;">'+u(".report-detail-wrapper.show_allocation_reminder").data("reminder-text")+"</p><br /><br />"+"</div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}else if(u(".show_expiration_notifications_popup_text").length){u.magnificPopup.close();u.magnificPopup.open({items:{src:'<div class="white-popup" style="padding: 20px 50px;">'+'<h3 style="font-size: 40px; font-weight: bolder; text-align: center; color: #999;">INSUFFICIENT CREDIT</h3><br /><br />'+'<p class="intro-text" style="font-size: 16px;">'+u(".show_expiration_notifications_popup_text").data("notification-popup-text")+"</p><br /><br />"+"</div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}else if(u(".report-details-container.show_allocation_reminder").length){u.magnificPopup.close();u.magnificPopup.open({items:{src:'<div class="white-popup" style="padding: 20px 50px;">'+'<h3 style="font-size: 40px; font-weight: bolder; text-align: center; color: #999;">INSUFFICIENT CREDIT</h3><br /><br />'+'<p class="intro-text" style="font-size: 16px;">'+u(".report-details-container.show_allocation_reminder").data("reminder-text")+"</p><br /><br />"+"</div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}u(document).delegate(".notification-block .approve_or_delete_requested_entitlement","click",function(){var t=u(this);if(!t.hasClass("disabled")){t.addClass("disabled");u.request("notificationCenter::onApproveOrDeleteEntitlementRequest",{data:{entitlement_request_id:t.data("item-id"),item_action:t.data("item-action")},complete:function(e){if(e.responseJSON.status=="01"){location.reload()}else if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){u.fn.showMagnificPopupWithCallback(e.responseJSON.error_msg,false);t.removeClass("disabled")}}})}});u(".notification-block").find(".approve_or_decline_free_trial_request").click(function(){var e=u(this);if(!e.hasClass("disabled")){e.addClass("disabled");if(e.data("item-action")==0){e.parent().siblings(".popup-for-subscription").show();e.parent().hide()}else{var t={};if(e.data("item-action")==-1){t={invite_id:e.data("item-id"),item_action:e.data("item-action")}}else{var n=e.parent().find("input.radio-subscription:checked").val();t={invite_id:e.data("item-id"),item_action:e.data("item-action"),subscriptionOption:n}}u.request("notificationCenter::onApproveOrDeleteFreeTrialRequest",{data:t,complete:function(e){if(e.responseJSON.status=="01"){location.reload()}else if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){u.fn.showMagnificPopupWithCallback(e.responseJSON.error_msg,false)}}})}e.removeClass("disabled")}});if(u("#notification-center-content-block").length){u("#notification-center-content-block").find("select#sort_type").change(function(){var e=u(this);if(!e.hasClass("disabled")){e.addClass("disabled");u.request("notificationCenter::onAjaxRenderNotificationCenterContent",{data:{sort:e.val(),start_date:e.data("start-date")},complete:function(e){location.reload()}});e.removeClass("disabled")}})}u("#sort_type").select2({minimumResultsForSearch:-1,selectOnClose:true});function v(e){if(e!=""&&e!=null){var t=["/buyer-tools/consumption-statistics/corporate-access","/buyer-tools/consumption-statistics/analyst-interactions","/login","/buyer-tools/settings/organisation-structure","/buyer-tools/provider-manager/classification","/buyer-tools/provider-manager/budget-allocation/logs","/buyer-tools/provider-manager/budgeting","/buyer-tools/provider-manager/agreements/logs","/buyer-tools/provider-manager/agreements","/buyer-tools/publication-manager/templates","/provider-tools/publication-manager/new-report","/buyer-tools/publication-manager/reports","/restore-password","/my-entitlements","/buyer-tools/add-entitlement-request","/provider-tools/settings/users-analysts","/register","/notifications","/provider-tools/permissioning/entitlements","/my-billing-history","/admin/settings/users","/buyer-tools/settings/general","/provider-tools/settings/general","/buyer-tools/budget-permissioning/entitlements","/account-profile","/my-reports","/account-email-notifications","/calendar","/account-entitlements"];var n=t.indexOf(e);if(n==-1){var i=window.innerWidth;var r=window.innerHeight;if(e=="/report-search"){var a="reportSearch::onCheckUserVisit"}else{var a="dashboardReportSearch::onCheckUserVisit"}u.request(a,{data:{page_url:e,screen_width:i,screen_height:r},complete:function(e){if(e.responseJSON){var t=e.responseJSON.result;if(t>5){var n="account::onRenderRegisterPopup";u.request(n,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){var t=e.responseJSON.response_html;u.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,enableEscapeKey:false,showCloseBtn:false},0);u(".new_user_reg_cancel_btn").css("display","none");u(".new_user_reg_cancel_btn").css("visibility","hidden");u("#search-form").css("filter","blur(2px)");u(document).bind("contextmenu",function(e){return false});u(document).keydown(function(e){if(e.keyCode==123){return false}else if(e.ctrlKey&&e.shiftKey&&e.keyCode==73){return false}});u(".signupCountryList").find(".signupCountryListHome").select2({placeholder:"Please select your Country",allowClear:true,minimumResultsForSearch:-1})}})}}}})}}}u(window).on("load",function(){var e=window.location.pathname;if(e!="/provider-tools/settings/general"||e!="/account-entitlements"){v(e)}if(u("#dashboard-panel").length){window.setInterval(function(){u.request("dashboardSidebar::onRenderSidebarPeriodically",{complete:function(e){if(e.responseJSON.status=="01"){}}})},66e4)}if(u("#header_notifications_block").length){u(".header-notifications").click(function(){if(u(this).parent().find(".number_notifications_wrapper").find("span.notifications").length){u.request("account::onUpdateHeaderNotificationDate",{complete:function(e){if(e.responseJSON.status=="01"){u(".number_notifications_wrapper").html("")}}})}});window.setInterval(function(){u.request("account::onRenderHeaderNotificationsPeriodically",{complete:function(e){if(e.responseJSON.status=="01"&&e.responseJSON.total!=0){u(".number_notifications_wrapper").html('<span class="notifications" style="position: absolute">'+e.responseJSON.total+"</span>")}}})},3e5)}})})(jQuery);$(document).ready(function(){if($("#only_notifications_wrapper .notification-block").hasClass("timeBlock")){function e(){var e=$(this);e.offsetParent().find(".displayInfosOnHoverTime").show()}function t(){var e=$(this);e.offsetParent().find(".displayInfosOnHoverTime").hide()}$(".entitlementsInfos").find(".link-wrap .entRequestInfo").mouseover(e);$(".entitlementsInfos").find(".link-wrap .entRequestInfo").mouseout(t)}if($("#only_notifications_wrapper .notification-block").hasClass("categoryBlock")){$(".entitlementsInfos").find(".link-wrap .entRequestInfo").mouseover(function(){var e=$(this);e.offsetParent().find(".displayInfosOnHoverCat").show()});$(".entitlementsInfos").find(".link-wrap .entRequestInfo").mouseout(function(){var e=$(this);e.offsetParent().find(".displayInfosOnHoverCat").hide()})}function n(){var t=$(this);var e=t.attr("data-end-date");var n=$("#clear_all_notifs_btn").attr("data-sort-type");$.request("notificationCenter::onClickClearThisNotification",{data:{start_date_posted:e,sort:n},complete:function(e){if(e.status==200){t.closest(".notification-row").addClass("scale-out");setTimeout(function(){t.closest(".notification-row").hide();if($(".notification-row:visible").length==0){$(".notification-block h4").hide();$(".notification-block ul").html('<li class="notification-row"><div class="notif_row_infos"><i class="fal fa-bell-slash no_notifs"></i><p class="small_screen_padding">There are no notifications for now. </p></div></li>')}if(t.closest(".categoryBlock").find(".notification-row:visible").length==0){t.closest(".categoryBlock").hide()}},300)}}})}function r(){var e=$("#clear_all_notifs_btn").attr("data-sort-type");$.request("notificationCenter::onClearAllNotifications",{data:{sort:e},complete:function(e){if(e.status==200){location.reload()}}})}function a(){var e=$("#clear_all_notifs_btn").attr("data-sort-type");$.request("notificationCenter::onPartialClearNotifications",{data:{sort:e},complete:function(e){if(e.status==200){location.reload()}}})}$(".delete_notifbtn").click(n);$("#clear_all_notifs_btn").click(function(){var e=$("*[data-important-event=important]");if(e.length>0){$.magnificPopup.open({items:{src:'<div class="white-popup notifClearAllPopUp"><h4>Warning</h4><p>You have some important notifications that have not been taken care of such as entitlement requests. Which notifications do you want to discard ?</p><div class="btns"><button type="button" id="cancelClearAllNotifications">Cancel</button><button type="button" id="partialClearNotifications">Discard non important</button><button type="button" id="clearAllNotifications">Discard All</button><div></div>',type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'});$("#clearAllNotifications").click(function(){$.magnificPopup.close();r()});$("#cancelClearAllNotifications").click(function(){$.magnificPopup.close()});$("#partialClearNotifications").click(function(){$.magnificPopup.close();a()})}else{r()}});$(document).delegate("#notif_report_rating_stars li","mouseover",function(){var t=parseInt($(this).data("rating"),10);$(this).parent().children("li.notif_star").each(function(e){if(e<t){$(this).addClass("hover")}else{$(this).removeClass("hover")}})}).on("mouseout",function(){$("li.notif_star").each(function(e){$(this).removeClass("hover")})});$(document).delegate("#notif_report_rating_stars li","click",function(){var e=parseInt($(this).data("rating"),10);var t=$(this).parent().children("li.notif_star");for(i=0;i<t.length;i++){$(t[i]).removeClass("selected")}for(i=0;i<e;i++){$(t[i]).addClass("selected")}var n=parseInt($(this).attr("data-rating"),10);var r=$(this);$.request("notificationCenter::onSaveRating",{data:{report_id:r.attr("data-report-id"),rating:n},complete:function(e){r.closest(".notification-rating_wrapper").closest(".notification-row").addClass("scale-out");setTimeout(function(){r.closest(".notification-rating_wrapper").closest(".notification-row").hide()},300)}})});$(".delete_rate_notifbtn").click(function(){var t=$(this);var e=t.attr("data-rating");var n=t.attr("data-report-id");$.request("notificationCenter::onSaveRating",{data:{report_id:n,rating:e},complete:function(e){t.closest(".notification-rating_wrapper").closest(".notification-row").addClass("scale-out");setTimeout(function(){t.closest(".notification-rating_wrapper").closest(".notification-row").hide()},300)}})});$(document).delegate("#notif_calendar_rating_stars li","mouseover",function(){var t=parseInt($(this).data("rating"),10);$(this).parent().children("li.notif_star").each(function(e){if(e<t){$(this).addClass("hover")}else{$(this).removeClass("hover")}})}).on("mouseout",function(){$("li.notif_star").each(function(e){$(this).removeClass("hover")})});$(document).delegate("#notif_calendar_rating_stars li","click",function(){var e=parseInt($(this).data("rating"),10);var t=$(this).parent().children("li.notif_star");for(i=0;i<t.length;i++){$(t[i]).removeClass("selected")}for(i=0;i<e;i++){$(t[i]).addClass("selected")}var n=parseInt($(this).attr("data-rating"),10);var r=$(this).attr("data-calendar-id");var a=$(this);$.request("notificationCenter::onSaveCalendarRating",{data:{calendar_id:r,rating:n},complete:function(e){a.closest(".notification-rating_wrapper").closest(".notification-row").addClass("scale-out");setTimeout(function(){a.closest(".notification-rating_wrapper").closest(".notification-row").hide()},300)}})});$(".delete_calendar_notifbtn").click(function(){var t=$(this);var e=t.attr("data-rating");var n=t.attr("data-calendar-id");$.request("notificationCenter::onSaveCalendarRating",{data:{calendar_id:n,rating:e},complete:function(e){t.closest(".notification-rating_wrapper").closest(".notification-row").addClass("scale-out");setTimeout(function(){t.closest(".notification-rating_wrapper").closest(".notification-row").hide()},300)}})});$(document).delegate("#notification-center-content-block .approve_or_delete_requested_entitlement_prov","click",function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");$.request("notificationCenter::onApproveOrDeleteEntitlementRequestProv",{data:{entitlement_request_id:t.attr("data-item-id"),item_action:t.attr("data-item-action")},complete:function(e){if(e.responseJSON.status=="01"){t.closest(".notification-rating_wrapper").closest(".notification-row").addClass("scale-out");setTimeout(function(){t.closest(".notification-rating_wrapper").closest(".notification-row").hide();location.reload()},300)}},error:function(e){t.removeClass("disabled")}})}});$(document).delegate("#notification-center-content-block .approve_or_delete_requested_entitlement_biz","click",function(){var t=$(this);if(!t.hasClass("disabled")){t.addClass("disabled");$.request("notificationCenter::onApproveOrDeleteEntitlementRequestBuy",{data:{entitlement_request_id:t.data("item-id"),item_action:t.data("item-action")},complete:function(e){if(e.responseJSON.status=="01"){t.closest(".notification-rating_wrapper").closest(".notification-row").addClass("scale-out");setTimeout(function(){t.closest(".notification-rating_wrapper").closest(".notification-row").hide();location.reload()},300)}},error:function(e){t.removeClass("disabled")}})}})});function checkHighlightText(){if($("#txtSearchBox").val()!=""){$("#tblSuggestions div.search_result_single_item a").each(function(){if(!$(this).hasClass("no-highlight")){$(this).removeClass("match").filter(function(){return $(this).html().toLowerCase().indexOf($("#txtSearchBox").val().toLowerCase())!=-1}).addClass("match")}});highlight($("#txtSearchBox").val())}else{$("#tblSuggestions, #tblSuggestions div.search_result_single_item a").removeClass("match")}}function syncCompaniesTickers(){if($("#txtSearchBox").val()!=""){var e=$("#tableBodyAutocomplete div.search_wrapper_companies div.search_result_single_item a span");var t=0;e.each(function(){if($(this).width()>t){t=$(this).width()}});e.each(function(){$(this).css("width",t+15)})}}function highlight(l){$("#tblSuggestions div.search_result_single_item a.match").each(function(){var e=$(this).find("span").first();var t="";var n="";var i="";var r="";var a="";if(!e.length){t=$(this).text().toLowerCase().indexOf(""+l.toLowerCase()+"");n=t+l.length-1;i=$(this).text().slice(0,t);r=$(this).text().slice(t,n+1);a=$(this).text().slice(n+1);$(this).html(i+"<strong>"+r+"</strong>"+a)}else{var o=e.text();var s=$(this).text().substring(o.length);t=s.toLowerCase().indexOf(""+l.toLowerCase()+"");if(t!=-1){n=t+l.length-1;i=s.slice(0,t);r=s.slice(t,n+1);a=s.slice(n+1);s=i+"<strong>"+r+"</strong>"+a}t=o.toLowerCase().indexOf(""+l.toLowerCase()+"");if(t!=-1){n=t+l.length-1;i=o.slice(0,t);r=o.slice(t,n+1);a=o.slice(n+1);o=i+"<strong>"+r+"</strong>"+a}e.html(o);$(this).html(e);$(this).append(s)}})}function checkHighlightTextMobile(){if($("#txtSearchBoxMobile").val()!=""){$("#tblSuggestionsMobile div.search_result_single_item a").each(function(){$(this).removeClass("match").filter(function(){return $(this).html().toLowerCase().indexOf($("#txtSearchBoxMobile").val().toLowerCase())!=-1}).addClass("match")});highlightMobile($("#txtSearchBoxMobile").val())}else{$("#tblSuggestionsMobile, #tblSuggestionsMobile div.search_result_single_item a").removeClass("match")}}function highlightMobile(a){$("#tblSuggestionsMobile div.search_result_single_item a.match").each(function(){var e=$(this).text().toLowerCase().indexOf(""+a.toLowerCase()+"");var t=e+a.length-1;var n=$(this).text().slice(0,e);var i=$(this).text().slice(e,t+1);var r=$(this).text().slice(t+1);$(this).html(n+"<strong>"+i+"</strong>"+r)})}function pp_handleStripeError(e,t){var n=$("#purchase-page-form");var i=n.find('input[data-stripe="number"]');var r=i.parent().find("p.errors");var a=n.find('input[data-stripe="cvc"]');var o=a.parent().find("p.errors");var s=n.find('select[data-stripe="exp_month"]').parent().find("p.errors");var l=s.parent().find("p.errors");switch(t){case"card_declined":r.text(e);i.focus();break;case"incorrect_cvc":o.text(e);a.focus();break;case"expired_card":l.text(e);s.focus();break;case"incorrect_number":r.text(e);i.focus();break;case"processing_error":r.text(e);i.focus();break;default:n.find("div.payment-errors").text(e)}}function pp_stripeResponseHandler(e,t){var n=$("body").data("siteTitle");var i=$("#purchase-page-form");$("body").prepend('<div class="universal_page_loader"><div class="image_wrapper">Loading...<img src="/themes/pukkaresearch/assets/images/'+$("body").data("assetName")+'/ajax-preloader.gif" alt=""></div></div>');if(t.error){pp_handleStripeError(t.error.message,t.error.code);i.find(".purchase_p_submit_payment").removeClass("disabled");$(".universal_page_loader").remove()}else{var r=t.id;if(i.find("input.stripeTokenClass").length){i.find("input.stripeTokenClass").val(r)}else{i.append($('<input type="hidden" name="stripeToken" class="stripeTokenClass">').val(r))}var a=i.serializeArray();$.request("purchasePage::onSave",{data:a,complete:function(e){if(e.responseJSON.status=="00"){pp_handleStripeError(e.responseJSON.error,e.responseJSON.errorType);i.find(".purchase_p_submit_payment").removeClass("disabled");$(".universal_page_loader").remove();return false}else if(e.responseJSON.status=="01"){if(e.responseJSON.purchase_type=="report"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.report_title,sku:e.responseJSON.report_id,category:"Reports "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send");ga("send","event","button","ReadNow "+e.responseJSON.purchase_type,"Purchase Page",1,{provider:e.responseJSON.producer_name,title:e.responseJSON.report_title,id:e.responseJSON.report_id,language:e.responseJSON.report_language,investor:e.responseJSON.investor})}else if(e.responseJSON.purchase_type=="subscription"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.producer_name,sku:e.responseJSON.producer_id,category:"Subscription for "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send")}if(e.responseJSON.redirect_url!=""){window.location=e.responseJSON.redirect_url;$(".universal_page_loader").remove()}else{location.reload()}}},error:function(){i.find(".purchase_p_submit_payment").removeClass("disabled");$(".universal_page_loader").remove()}});return false}}$(document).ready(function(){$(".tag_type_input").select2({maximumSelectionLength:5,placeholder:"No Filter",tags:true,tokenSeparators:[","," "]});$("body").delegate(".item-report-tag-edit","click",function(){var e=$(this);var t=e.closest(".item-wrapper").attr("data-report-id");var n=e.closest(".item-report-tag-edit-section").find(".tagged-report-draggable-container tr.selected");var i=[];n.each(function(){var e=$(this).attr("data-tag-id");i.push(e)});if($(".item-report-tag-edit").hasClass("clickedOnce")){$(".item-report-tag-edit").removeClass("clickedOnce")}var r=(e.data("click_count")||0)+1;if(r>1){r=1}e.data("click_count",r);switch(r){case 1:e.addClass("clickedOnce");$(".item-report-tag-edit").not(e).removeClass("clickedOnce");$(".item-report-tag-edit").not(e).data("click_count",0);$(".item-report-tag-edit-btn").not(e.closest(".item-report-tag-edit-section").find(".item-report-tag-edit-btn")).hide();$(".item-report-new-tag-popup").not(e.closest(".item-report-tag-edit-section").find(".item-report-new-tag-popup")).hide();if(e.closest(".item-report-tag-edit-section").find(".item-report-tag-edit-btn").length){e.closest(".item-report-tag-edit-section").find(".item-report-tag-edit-btn").toggle()}else{if(e.closest(".item-header-right").find("#selected_tags_reports").size()>0){e.closest(".item-report-tag-edit-section").append('<div class="item-report-tag-edit-btn"><i class="fal fa-tag"></i><span>Edit Tags</span></div>');e.closest(".item-report-tag-edit-section").find(".item-report-tag-edit-btn").toggle()}else{e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").toggle();e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").css("display","flex");e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup .report_tag_input_name").attr("data-tag-action","create");if(e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").is(":visible")){$(".item-wrapper").find(".item-body-left .link-overlay").css("pointer-events","none")}}};break;case 2:e.removeClass("clickedOnce");if(e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").is(":visible")){e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").toggle();e.closest(".item-report-tag-edit-section").find(".item-report-tag-edit-btn").hide()}else if(e.closest(".item-report-tag-edit-section").find(".item-report-tag-edit-btn").is(":visible")){e.closest(".item-report-tag-edit-section").find(".item-report-tag-edit-btn").toggle()};break}s(i,t,e);e.closest(".item-report-tag-edit-section").find(".tagged-report-draggable-container tbody").sortable({axis:"y",connectWith:".tagged-report-draggable-container tbody",containment:"parent",placeholder:"sortable-placeholder",helper:"clone"}).disableSelection();e.closest(".item-report-tag-edit-section").find(".tagged-report-draggable-container tbody").on("sortupdate",function(e,t){var r=$(this);var n=r.find("tr");n.each(function(e){var t=$(this);var n=e;var i=t.attr("data-tag-id");t.attr("data-tag-position",e);l(i,n,r)})});var a=e.closest(".item-report-tag-edit-section").find(".tagged-report-draggable-container tbody tr").length;var o=e.closest(".item-report-tag-edit-section").find(".tag-scrollable")});$("body").delegate(".item-report-tag-edit-btn p.editTagsIcon","click",function(){var e=$(this);e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").toggle();e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").css("display","flex");e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup .report_tag_input_name").attr("data-tag-action","create");if(e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").is(":visible")){$(".item-wrapper").find(".item-body-left .link-overlay").css("pointer-events","none")}});function s(e,t,n){var i=n.closest(".item-report-tag-edit-section").find("#create-report-tag-popup .tagged-report-draggable-container tbody");var r=n.closest(".item-header-right").find("#selected_tags_reports");var a=n.closest(".item-header-right").find("#selected_tags_list");$.request("usersReportsTags::onClickGetAllTheTags",{data:{tag_id:e,report_id:t},complete:function(e){if(e.responseJSON.status=="01"){i.html(e.responseJSON.general_reports_tags);r.html(e.responseJSON.selected_tag);a.html(e.responseJSON.selected_tag_list)}}})}function l(e,t,n){var i=n.closest(".item-header-right").find("#selected_tags_reports");var r=n.closest(".item-header-right").find("#selected_tags_list");var a=n.closest(".item-wrapper").attr("data-report-id");$.request("usersReportsTags::onDragAndDropTagReport",{data:{tag_id:e,tag_position:t,report_id:a},complete:function(e){if(e.responseJSON.status=="01"){i.html(e.responseJSON.selected_tag);r.html(e.responseJSON.selected_tag_list)}}})}function e(){$("body").delegate(".tagged-report-draggable-container tbody tr","mousedown touchstart",function(e){setTimeout(function(){$(this).css("cursor","pointer")},500)});$("body").delegate(".tagged-report-draggable-container tbody tr","mouseup mouseleave touchend",function(){$(this).css("cursor","move")})}$(document).ready(function(){e()});$(document).delegate(".close-create-report-tag","click",function(){var e=$(this);e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").toggle();if(e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").is(":hidden")){e.closest(".item-wrapper").find(".item-body-left .link-overlay").css("pointer-events","auto")}});$(document).click(function(e){if(!$(e.target).closest(".item-report-new-tag-popup, .item-report-tag-edit-section, .delete-report-tag-popup").length){if($(".item-report-new-tag-popup").is(":visible")){$(".item-report-new-tag-popup").hide()}else if($(".item-report-tag-edit-btn").is(":visible")){$(".item-report-tag-edit-btn").hide();if($(".item-report-tag-edit").hasClass("clickedOnce")){$(".item-report-tag-edit").removeClass("clickedOnce")}}if($("#create-report-tag-popup").is(":hidden")){$(".item-body-left .link-overlay").css("pointer-events","auto")}}});$("body").delegate(".item-tagged-report","mouseover",function(){var e=$(this);e.find("#selected_tags_list").show()});$("body").delegate(".item-tagged-report","mouseout",function(){var e=$(this);e.find("#selected_tags_list").hide()});$("body").delegate(".registered_reports_tags_options","click",function(){var e=$(this);var t=e.text();e.closest(".registered_reports_tags").hide();e.closest("#create-report-tag-popup").find(".report_tag_input_name").val(t)});$.fn.createAndTagForReport=function(i,r,a,e,t,o,s){var n=window.location.pathname;n=n.substring(1);var l=n.split("/");var c=l[0];var d=l[1];var u=$(".content-wrap").attr("id");if(c=="company"){var p="companyDetail::onSaveNewTagForReport"}else if(u=="report-detail-page"){var p="reportDetail::onSaveNewTagForReport"}else if(c=="provider"){var p="providerDetail::onSaveNewTagForReport"}else{var p="usersReportsTags::onSaveNewTagForReport"}$.request(p,{data:{tag_id:i,tag_name:r,tag_position:a,report_id:e,tag_report_action:t},complete:function(e){if(e.responseJSON.status=="01"){if(o.closest(".item-report-new-tag-popup").find(".item-tagged-report-edit").length){var t=$(".tagged-report-draggable-container");var n=$(".tagged-report-draggable-container").height();if(n>260){t.animate({scrollTop:t.prop("scrollHeight")},1e3)}s.append(e.responseJSON.resultHtml);if(o.closest(".item-header-right").find(".item-tagged-report").length){$(".tagged-report-draggable-container").not(o.closest(".item-report-new-tag-popup").find(".tagged-report-draggable-container")).append('<tr class="tagged-report-drag-item not_selected" data-tag-id="'+i+'" data-tag-position="'+a+'" draggable="true"><td class="tagged-report-drag-item-name-container"><input type="checkbox" class="tagged-report-selection" checked><span class="tagged-report-drag-item-name" data-tag-selected="checked">'+r+'</span></td><td class="tagged-report-drag-item-actions"><i class="fal fa-arrows-alt"></i><i class="fal fa-pen-square pointer edit-report-tag-name" id="edit-report-tag-name"></i><i class="fal fa-trash-alt pointer delete-report-tag-name" id="delete-report-tag-name"></i></td></tr>');o.closest(".item-header-right").find("#selected_tags_reports").append('<li data-tag-position="'+a+'" data-tag-id="'+i+'">'+r+"</li>");o.closest(".item-header-right").find("#selected_tags_list").append('<li data-tag-position="'+a+'" data-tag-id="'+i+'"><i class="fal fa-tag"></i>'+r+"</li>")}else if("list"!=$.fn.readCookie("view_style")){o.closest(".item-header-right").prepend('<div class="item-tagged-report"><div class="selected_tag_container"><i class="fal fa-tag"></i><ul id="selected_tags_reports" style="{% if report.reports_tags_name|length > 1 %}width: 140px{% endif %}"><li data-tag-position="'+a+'" data-tag-id="'+i+'">'+r+'</li></ul></div><ul id="selected_tags_list"><li data-tag-position="'+a+'" data-tag-id="'+i+'"><i class="fal fa-tag"></i>'+r+"</li></ul></div>")}}else{o.closest(".item-report-new-tag-popup").prepend('<div class="item-tagged-report-edit"><div class="new_report_tag_title_container"><span class="select_report_tag_title">Select tags for this report</span><i class="fal fa-times close-create-report-tag"></i></div><table class="tagged-report-draggable-container tag-scrollable"><tbody>'+e.responseJSON.resultHtml+"</tbody></table>");$(".item-report-new-tag-popup").not(o.closest(".item-report-new-tag-popup")).prepend('<div class="item-tagged-report-edit"><div class="new_report_tag_title_container"><span class="select_report_tag_title">Select tags for this report</span><i class="fal fa-times close-create-report-tag"></i></div><table class="tagged-report-draggable-container tag-scrollable"><tbody><tr class="tagged-report-drag-item not_selected" data-tag-id="'+i+'" data-tag-position="'+a+'" draggable="true"><td class="tagged-report-drag-item-name-container"><input type="checkbox" class="tagged-report-selection" checked><span class="tagged-report-drag-item-name" data-tag-selected="checked">'+r+'</span></td><td class="tagged-report-drag-item-actions"><i class="fal fa-arrows-alt"></i><i class="fal fa-pen-square pointer edit-report-tag-name" id="edit-report-tag-name"></i><i class="fal fa-trash-alt pointer delete-report-tag-name" id="delete-report-tag-name"></i></td></tr></tbody></table></div>');$(".item-report-new-tag-popup").find(".create_container .close-create-report-tag").hide();if("list"!=$.fn.readCookie("view_style")){o.closest(".item-header-right").prepend('<div class="item-tagged-report"><div class="selected_tag_container"><i class="fal fa-tag"></i><ul id="selected_tags_reports" style="{% if report.reports_tags_name|length > 1 %}width: 140px{% endif %}"><li data-tag-position="'+a+'" data-tag-id="'+i+'">'+r+'</li></ul></div><ul id="selected_tags_list"><li data-tag-position="'+a+'" data-tag-id="'+i+'"><i class="fal fa-tag"></i>'+r+"</li></ul></div>")}}o.closest(".item-header-right").find(".report_tag_input_name").val("");o.closest(".item-header-right").find(".report_tag_input_name").focusout();$("#tag_type_input").html(e.responseJSON.tags_for_search_bar)}if(e.responseJSON.status=="00"){o.closest(".item-header-right").find(".report_tag_input_name").val("");o.closest(".item-header-right").find(".report_tag_input_name").focusout()}}})};function c(t,n,i,e,r,a){var o=window.location.pathname;o=o.substring(1);var s=o.split("/");var l=s[0];var c=s[1];var d=$(".content-wrap").attr("id");if(l=="company"){var u="companyDetail::onCheckTagForReportPopup"}else if(d=="report-detail-page"){var u="reportDetail::onCheckTagForReportPopup"}else if(l=="provider"){var u="providerDetail::onCheckTagForReportPopup"}else{var u="usersReportsTags::onCheckTagForReport"}var p=a.closest(".item-header-right").find("#selected_tags_reports li").length;$.request(u,{data:{tag_id:t,tag_name:n,tag_check:i,report_id:e,tag_position:r},complete:function(e){if(e.responseJSON.status=="01"){if(i==0){if(a.closest(".item-header-right").find(".item-tagged-report").length){a.closest(".item-header-right").find("#selected_tags_reports").append('<li data-tag-position="'+r+'" data-tag-id="'+t+'">'+n+"</li>");a.closest(".item-header-right").find("#selected_tags_list").append('<li data-tag-position="'+r+'" data-tag-id="'+t+'"><i class="fal fa-tag"></i>'+n+"</li>")}else if("list"!=$.fn.readCookie("view_style")){a.closest(".item-header-right").prepend('<div class="item-tagged-report"><div class="selected_tag_container"><i class="fal fa-tag"></i><ul id="selected_tags_reports" style="{% if report.reports_tags_name|length > 1 %}width: 140px{% endif %}"><li data-tag-position="'+r+'" data-tag-id="'+t+'">'+n+'</li></ul></div><ul id="selected_tags_list"><li data-tag-position="'+r+'" data-tag-id="'+t+'"><i class="fal fa-tag"></i>'+n+"</li></ul></div>")}}else if(i==1){if(p==1){a.closest(".item-header-right").find(".item-tagged-report").remove()}else{a.closest(".item-header-right").find("#selected_tags_reports li").filter('[data-tag-id="'+t+'"]').remove();a.closest(".item-header-right").find("#selected_tags_list li").filter('[data-tag-id="'+t+'"]').remove()}}}if(e.responseJSON.status=="02"){if(i==0){if(a.closest(".item-header-right").find(".item-tagged-report").length){a.closest(".item-header-right").find("#selected_tags_reports").append('<li data-tag-position="'+r+'" data-tag-id="'+t+'">'+n+"</li>");a.closest(".item-header-right").find("#selected_tags_list").append('<li data-tag-position="'+r+'" data-tag-id="'+t+'"><i class="fal fa-tag"></i>'+n+"</li>")}else if("list"!=$.fn.readCookie("view_style")){a.closest(".item-header-right").prepend('<div class="item-tagged-report"><div class="selected_tag_container"><i class="fal fa-tag"></i><ul id="selected_tags_reports" style="{% if report.reports_tags_name|length > 1 %}width: 140px{% endif %}"><li data-tag-position="'+r+'" data-tag-id="'+t+'">'+n+'</li></ul></div><ul id="selected_tags_list"><li data-tag-position="'+r+'" data-tag-id="'+t+'"><i class="fal fa-tag"></i>'+n+"</li></ul></div>")}}else if(i==1){if(p==1){a.closest(".item-header-right").find(".item-tagged-report").remove()}else{a.closest(".item-header-right").find("#selected_tags_reports li").filter('[data-tag-id="'+t+'"]').remove();a.closest(".item-header-right").find("#selected_tags_list li").filter('[data-tag-id="'+t+'"]').remove()}}}}})}function d(e,t,n){var i=$(".item-report-new-tag-popup").find(".tagged-report-drag-item").filter('[data-tag-id="'+e+'"]');var r=$(".item-header-right").find("#selected_tags_reports li").filter('[data-tag-id="'+e+'"]');var a=$(".item-header-right").find("#selected_tags_list li").filter('[data-tag-id="'+e+'"]');var o=$("#tag_type_input").find("option").filter('[value="'+e+'"]');$.request("usersReportsTags::onEditTagForReport",{data:{tag_id:e,tag_name:t},complete:function(e){if(e.responseJSON.status=="01"){i.find(".tagged-report-drag-item-name").text(t);r.text(t);a.empty();a.append('<i class="fal fa-tag"></i>'+t);o.text(t);$(".report_tag_input_name").val("");$(".report_tag_input_name").focusout()}}})}function r(t,e,n,i){var r=n.closest(".item-header-right").find(".item-tagged-report").length;$.request("usersReportsTags::onDeleteTagForReport",{data:{tag_id:t,report_id:e},complete:function(e){if(e.responseJSON.status=="01"){$.magnificPopup.close();if(i==1){$(".item-report-new-tag-popup").find(".new_report_tag_title_container i").show();$(".item-header-right").find(".item-tagged-report").remove();$(".item-report-new-tag-popup").find(".item-tagged-report-edit").remove()}else{$(".tagged-report-drag-item").filter('[data-tag-id="'+t+'"]').remove();$(".item-header-right").find("#selected_tags_reports li").filter('[data-tag-id="'+t+'"]').remove();$(".item-header-right").find("#selected_tags_list li").filter('[data-tag-id="'+t+'"]').remove();if(r==1){n.closest(".item-header-right").find(".item-tagged-report").remove()}}$("#tag_type_input").find("option").filter('[value="'+t+'"]').remove();$("#tag_type_input").html(e.responseJSON.tags_for_search_bar)}}})}$("body").delegate(".report_tag_save_btn","click",function(){var e=$(this);var t=$.now();var n=t.toString().substring(2,10);var i=e.closest(".item-report-new-tag-popup").find(".report_tag_input_name").val();var r=/^[a-zA-Z0-9_/.-]{1,30}/;var a=e.closest(".item-report-new-tag-popup").find(".tagged-report-drag-item").length;if($("#report-detail-page").is(":visible")){var o=e.closest(".report-details-container").find("#report-detail-page-id").attr("data-report-id")}else{var o=e.closest(".item-wrapper").attr("data-report-id")}var s=e.closest(".item-report-new-tag-popup").find(".report_tag_input_name").attr("data-tag-action");var l=e.closest(".item-report-new-tag-popup").find(".report_tag_input_name").attr("data-tag-id");if(i.match(r)){if(s==="create"){$.fn.createAndTagForReport(n,i,a,o,s,e,e.closest(".item-report-new-tag-popup").find(".tagged-report-draggable-container"))}else if(s==="edit"){d(l,i,e);e.closest("#create-report-tag-popup").find(".new_report_tag_title").html("Create new tag")}}else{$(".report_tag_input_name").addClass("error_report_tag_input_name");$(".report_tag_input_name").blur()}});$("body").delegate(".report_tag_input_name","keydown focusout",function(e){var t=$(this);var n=$.now();var i=n.toString().substring(2,10);var r=t.val();var a=/^[a-zA-Z0-9_/.-]{1,30}/;var o=t.closest(".item-report-new-tag-popup").find(".tagged-report-drag-item").length;if($("#report-detail-page").is(":visible")){var s=t.closest(".report-details-container").find("#report-detail-page-id").attr("data-report-id")}else{var s=t.closest(".item-wrapper").attr("data-report-id")}var l=t.attr("data-tag-action");var c=t.attr("data-tag-id");if(e.keyCode===13){$.fn.renderTagsDropDown();if(r.match(a)){if(l==="create"){$.fn.createAndTagForReport(i,r,o,s,l,t,t.closest(".item-report-new-tag-popup").find(".tagged-report-draggable-container"));e.preventDefault()}else if(l==="edit"){d(c,r,t);t.closest("#create-report-tag-popup").find(".new_report_tag_title").html("Create new tag")}}else{t.addClass("error_report_tag_input_name");t.blur()}}else if(e.keyCode===27){if(l=="edit"){t.val(null);t.blur();t.closest("#create-report-tag-popup").find(".new_report_tag_title").html("Create new tag")}else{t.val(null);t.blur()}}});$("body").delegate(".edit-report-tag-name","click",function(){var e=$(this);var t=e.closest(".tagged-report-drag-item").find(".tagged-report-drag-item-name").text();var n=$.trim(t);var i=e.closest(".tagged-report-drag-item").attr("data-tag-id");e.closest("#create-report-tag-popup").find(".report_tag_input_name").val(n);e.closest("#create-report-tag-popup").find(".report_tag_input_name").focus();e.closest("#create-report-tag-popup").find(".report_tag_input_name").attr("data-tag-action","edit");e.closest("#create-report-tag-popup").find(".report_tag_input_name").attr("data-tag-id",i);e.closest("#create-report-tag-popup").find(".new_report_tag_title").html("Edit tag")});function a(){$.magnificPopup.open({items:{src:'<div class="white-popup delete-report-tag-popup"><h4>Delete tag</h4><p>Are you sure you want to delete the following tag ?</p><p>All reports using it will be untagged.</p><div class="btns"><button type="button" id="cancel-delete-tag-report">Cancel</button><button type="button" id="confirm-delete-tag-report">Delete</button><div></div>',type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'})}$("body").delegate(".delete-report-tag-name","click",function(e){e.stopPropagation();var t=$(this);var n=t.closest(".tagged-report-drag-item").attr("data-tag-id");if($("#report-detail-page").is(":visible")){var i=t.closest(".report-details-container").find("#report-detail-page-id").attr("data-report-id")}else{var i=t.closest(".item-wrapper").attr("data-report-id")}a();$("#confirm-delete-tag-report").on("click",function(){var e=t.closest(".item-report-new-tag-popup").find(".tagged-report-drag-item").length;r(n,i,t,e)});$("#cancel-delete-tag-report").on("click",function(){$.magnificPopup.close()})});$("body").delegate(".tagged-report-drag-item-name-container","click",function(){var e=$(this);e.find(".tagged-report-selection").trigger("click")});$("body").delegate(".tagged-report-selection","change",function(){var e=$(this);var t=e.closest(".tagged-report-drag-item").attr("data-tag-id");var n=e.closest(".tagged-report-drag-item").attr("data-tag-position");var i=e.closest(".tagged-report-drag-item").find(".tagged-report-drag-item-name").text();var r=$.trim(i);if($("#report-detail-page").is(":visible")){var a=e.closest(".report-details-container").find("#report-detail-page-id").attr("data-report-id")}else{var a=e.closest(".item-wrapper").attr("data-report-id");if(undefined===a){a=e.closest(".tagged-report-drag-item").attr("data-report-id")}}if(e.is(":checked")){var o=0;e.closest(".tagged-report-drag-item").removeClass("not_selected");e.closest(".tagged-report-drag-item").addClass("selected");c(t,r,o,a,n,e)}else{var o=1;e.closest(".tagged-report-drag-item").removeClass("selected");e.closest(".tagged-report-drag-item").addClass("not_selected");c(t,r,o,a,n,e)}$(".reportTagSaveBtn").show()});$("body").delegate(".reportTagSaveBtn","click",function(){var e=$(this);e.closest(".item-report-tag-edit-section").find("#create-report-tag-popup").toggle()})});$(document).ready(function(){function t(e){e.preventDefault();$("#dashboard-panel").show();$("#providers-area-panel").show();$("#proTools-panel").show();$(".mobile_icon_nav").hide()}function n(e){e.preventDefault();$("#dashboard-panel").hide();$("#providers-area-panel").hide();$("#proTools-panel").hide();$(".mobile_icon_nav").show()}function i(){var e=window.matchMedia("(min-width: 1236px) and (max-width: 1349px)");var t=window.matchMedia("(min-width: 1350px) and (max-width: 1499px)");if("matchMedia"in window){if(e.matches||t.matches){$("#dropdownaccount").css({width:"160px"})}else{$("#dropdownaccount").css({width:"180px"})}}$("#menu1").show();$("#dropdownaccount").css({"box-shadow":"0 3px 6px 0 rgba(0,0,0,0.2)"});$("#profileunameicon").removeClass("fa-angle-left");$("#profileunameicon").addClass("fa-angle-down");$(".profileuname").css({"background-color":"#ffffff"})}function r(){$("#menu1").hide();$("#profileunameicon").addClass("fa-angle-left");$("#profileunameicon").removeClass("fa-angle-down");$(".profile-link").css({"border-color":"transparent"});$("#dropdownaccount").css({"box-shadow":"none"});$(".profileuname").css({"background-color":"transparent"})}function a(e){e.preventDefault();$(".wh-profile").find(".profile-link i");$("#menu1").show();$("#dropdownaccount").css({"box-shadow":"0 3px 6px 0 rgba(0,0,0,0.2)",width:"230px"});$(".profile-link i").css({"padding-left":"4em"});$(".profileuname").css({"background-color":"#ffffff"});$(".search-group").css({"z-index":0});$(".wh-profile").css({"z-index":1});$(this).one("click touch",s)}function o(){var e=window.matchMedia("(max-width: 992px )");var t=window.matchMedia("(max-width: 768px)");var n=window.matchMedia("(max-width: 480px)");var i=window.matchMedia("(max-width: 320px)");$("#menu1").hide();$(".search-group").css({"z-index":"none"});$(".wh-profile").css({"z-index":"none"});$("#dropdownaccount").css({"box-shadow":"none"});if("matchMedia"in window){if(i.matches){$("#dropdownaccount").css({width:"109px"});$(".profile-link i").css({"padding-left":"1em"})}else if(n.matches){$("#dropdownaccount").css({width:"74px"});$(".profile-link i").css({"padding-left":"0em"})}else if(t.matches){$("#dropdownaccount").css({width:"109px"});$(".profile-link i").css({"padding-left":"0em"})}else if(e.matches){$("#dropdownaccount").css({width:"109px"});$(".profile-link i").css({"padding-left":"0em"})}}$(".profile-link").css({"border-color":"transparent"});$("#dropdownaccount").css({"box-shadow":"none"});$(".profileuname").css({"background-color":"transparent"})}function s(e){o();$(this).one("click touch",a)}$(".js_provider_follow.already_following").mouseover(function(){var e=$(".js_provider_follow.already_following").text("UNFOLLOW")});$(".js_provider_follow.already_following").mouseout(function(){var e=$(".js_provider_follow.already_following").text("FOLLOWING")});$(".js_provider_follow.already_following.is-followed").mouseover(function(){var e=$(".js_provider_follow.already_following.is-followed").text("UNFOLLOW")});$(".js_provider_follow.already_following.is-followed").mouseout(function(){var e=$(".js_provider_follow.already_following.is-followed").text("FOLLOWING")});$(".btn-custom-grey.js_provider_follow.already_following.is-followed").mouseover(function(){var e=$(".btn-custom-grey.js_provider_follow.already_following.is-followed").text("UNFOLLOW")});$(".btn-custom-grey.js_provider_follow.already_following.is-followed").mouseout(function(){var e=$(".btn-custom-grey.js_provider_follow.already_following.is-followed").text("FOLLOWING")});function e(){var e=window.matchMedia("(max-width: 992px)");if("matchMedia"in window){if(e.matches){$("#dashboard-panel").hide();$("#providers-area-panel").hide();$(".mobile_icon_nav").show();$("#showSideBar").on("click touch",t);$("#closeSideBar").on("click touch",n);$(".profile-link i").one("click touch",a);$(document).click(function(e){if(!$(e.target).closest("#closeSideBar,#dashboard-panel,#providers-area-panel,#showSideBar").length){$("#dashboard-panel").hide();$("#providers-area-panel").hide();$("#proTools-panel").hide()}if(!$(e.target).closest("#actionddmenu").length){o()}})}else{$("#dashboard-panel").show();$("#providers-area-panel").show();$(".mobile_icon_nav").hide();$("#dropdownaccount").mouseover(i);$("#dropdownaccount").mouseout(r);$(document).click(function(e){if(!$(e.target).closest("#closeSideBar,#dashboard-panel,#providers-area-panel,#showSideBar").length){$("#dashboard-panel").show();$("#providers-area-panel").show();$("#proTools-panel").show()}})}}}$(window).resize(e);$(document).delegate(".new_interest_create_btn","click",function(e){var t=$(this);var n=$('input[name="interests-name"]').val();if(n==""){$("#rp_title.form-required-error").css("display","block");$('input[name="interests-name"]').parent().addClass("has-error");return false}$("form.internal_research_interest_popup").validator("validate");if(!t.hasClass("disabled")){t.addClass("disabled");var i=$("form.internal_research_interest_popup").serializeArray();e.preventDefault();$("#internalinterestpopup").hide();$("#email_popup_newcheck").show();$(".email_notification_on").click(function(){$('input:hidden[name="email_notification_new"]').val(1);$("form.internal_research_interest_popup").submit();$.magnificPopup.close()});$(".email_notification_off").click(function(){$('input:hidden[name="email_notification_new"]').val(0);$("form.internal_research_interest_popup").submit();$.magnificPopup.close()})}});$(document).delegate(".new_main_interest_create_btn","click",function(e){var t=$(this);var n=$('input[name="interests-name"]').val();var i=$('input:hidden[name="unconnected_interest_provider"]').val();if(i=="yes"){$(".unconnectedEntProviderEMsg").css("display","block");$("#main_int_author .select2-container--default .select2-selection--multiple").css("border","1px solid red");return false}if(n==""){$("#rp_title.form-required-error").css("display","block");$('input[name="interests-name"]').parent().addClass("has-error");return false}$("form.main_internal_research_interest_popup").validator("validate");if(!t.hasClass("disabled")){t.addClass("disabled");var r=$("form.main_internal_research_interest_popup").serializeArray();e.preventDefault();$("#maininterestpopup").hide();$("#email_popup_main_newcheck").show();$(".email_notification_on").click(function(){$('input:hidden[name="email_notification_new"]').val(1);$("form.main_internal_research_interest_popup").submit();$.magnificPopup.close()});$(".email_notification_off").click(function(){$('input:hidden[name="email_notification_new"]').val(0);$("form.main_internal_research_interest_popup").submit();$.magnificPopup.close()})}});$(".internal_int_cat").find(".internal_interest_category").select2({placeholder:"Select one or multiple categories",minimumResultsForSearch:-1,ajax:{url:"/search-category-on-interest-popup",dataType:"json",data:function(e){return{q:$.trim(e.term)}},processResults:function(e){return{results:e}},cache:true}});$(".internal_int_sector").find(".internal_interest_sector").select2({placeholder:"Select one or multiple sectors",allowClear:true,tags:"true",minimumResultsForSearch:-1});$(".internal_int_geography").find(".internal_interest_geography").select2({placeholder:"Select one or multiple  geographies",allowClear:true,minimumResultsForSearch:-1});$("#main_search_provider").find(".internal_interest_author").select2({placeholder:"Select one or multiple providers",allowClear:true,minimumResultsForSearch:-1,ajax:{url:"/search-provider-for-filters",dataType:"json",data:function(e){return{q:$.trim(e.term)}},processResults:function(e){$.each(e,function(e,t){if(typeof t.unconnected!=="undefined"){t.text=t.text+t.unconnected}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});$(document).delegate('#main_search_provider select[name="providersall[]"]',"select2:selecting",function(e){var t=e.params.args.data.unconnected;if(t==""&&typeof t==="undefined"||t==null){$('input:hidden[name="rp_unconnected_prov_filters"]').val("");$(".unconnectedEntProviderEMsg").css("display","none");$("#main_search_provider .select2-container--default .select2-selection--multiple").css("border","1px solid #ccc")}else{$('input:hidden[name="rp_unconnected_prov_filters"]').val("yes");$(".unconnectedEntProviderEMsg").css("display","block");$("#main_search_provider .select2-container--default .select2-selection--multiple").css("border","1px solid red")}});$("#main_search_analyst").find(".internal_interest_author").select2({placeholder:"Select one or multiple analysts",allowClear:true,minimumResultsForSearch:-1});$(".internal_int_company").find(".internal_interest_company").select2({placeholder:"Enter name, ticker, ISIN",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:$.trim(e.term)}},processResults:function(e){$.each(e,function(e,t){if(typeof t.covered!=="undefined"){t.text=t.text+t.covered}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});$(".internal_int_author").find(".internal_interest_author").select2({placeholder:"Select one or multiple authors",minimumResultsForSearch:-1,allowClear:true});$(".main_int_author").find(".internal_interest_author").select2({placeholder:"Select one or multiple providers or analysts",allowClear:true,minimumResultsForSearch:-1});$(".internal_int_reptype").find(".internal_interest_report_type").select2({placeholder:"Select one or multiple report templates",allowClear:true,minimumResultsForSearch:-1});$(".internal_int_tag").find(".internal_interest_tag").select2({placeholder:"Select one or multiple tags",allowClear:true,minimumResultsForSearch:-1});$(".internal_int_lang").find(".internal_interest_language").select2({placeholder:"Select one or multiple languages",allowClear:true,minimumResultsForSearch:-1});$(".internal_int_recom").find(".internal_interest_recommendation").select2({placeholder:"Select one or multiple recommendations",allowClear:true,minimumResultsForSearch:-1});$(".main_int_acty").find(".main_interest_accesstype").select2({placeholder:"Select one or multiple access types",allowClear:true,minimumResultsForSearch:-1});$(".main_int_key").find(".main_interest_keyword").select2({placeholder:"Input a keyword and press enter",allowClear:true,tags:"true",minimumResultsForSearch:-1});$(document).ready(function(){$(".main_internal_research_interest_popup").validator()});$(".simple_datepicker").datepicker({dateFormat:"dd/mm/yy"});$(document).delegate(".email_notification_toggel","click",function(){var e=$(".email_notification_toggel").attr("data-item-state");var t=$(".email_notification_toggel").attr("data-interest-id");if(e==1){$(".email_notification_toggel").removeClass("fal fa-2x fa-toggle-on");$(".email_notification_toggel").addClass("fal fa-2x fa-toggle-off");$(".email_notification_toggel").attr("data-item-state","0");$(".notification-wrapper-email-alerts span").text("OFF")}else{$(".email_notification_toggel").removeClass("fal fa-2x fa-toggle-off");$(".email_notification_toggel").addClass("fal fa-2x fa-toggle-on");$(".email_notification_toggel").attr("data-item-state","1");$(".notification-wrapper-email-alerts span").text("ON")}var n=$(".email_notification_toggel").attr("data-item-state");$.request("dashboardSidebar::onChangeInterestEmailAlerts",{data:{current_state:n,current_interest_id:t},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}})});$(document).delegate("form#search-form","change",function(e){var t=window.location.href;var n=$("#top_interest_title").text();var i=$("#txtSearchBox").val();if(t.indexOf("search-term")>=0){if(i!=""){$(".interst_search_apply_btns_query").css("display","block")}else{$(".interst_search_apply_btns").css("display","block")}}else{var r=$("#search-form-filters-wrap").attr("data-update-interest-id");if(n=="All"){$(".interst_search_apply_btns").css("display","block")}else{if(r==""){if(t.indexOf("?")>=0){$(".interst_search_btns").css("display","block")}else{$(".interst_search_btns").css("display","none")}}else{$(".interst_update_btns").css("display","block")}}}});$(document).delegate(".apply_filter_btn","click",function(e){var t=$("#search-form").serializeArray();var n=window.location.pathname;l(n);$("#search-form").submit()});function l(e){var t=$('select[name="access_types_filter[]"]').filter(function(){return $(this).val()}).length;var n=$('select[name="filter_super_categories[]"]').filter(function(){return $(this).val()}).length;var i=$('.interest_input_page input[name="min_page"]').val();var r=$('.interest_input_page input[name="max_page"]').val();if($.isNumeric(i)==true||$.isNumeric(r)==true){page_num=1}else{page_num=0}var a=$('select[name="filter_sectors_all[]"]').filter(function(){return $(this).val()}).length;var o=$('.report_input_date_form input[name="date_from"]').filter(function(){return $(this).val()}).length;var s=$('.report_input_date_to input[name="date_to"]').filter(function(){return $(this).val()}).length;var l=$('select[name="countriesall[]"]').filter(function(){return $(this).val()}).length;var c=$('select[name="report_search_company_filter[]"]').filter(function(){return $(this).val()}).length;var d=$('select[name="providersall[]"]').filter(function(){return $(this).val()}).length;var u=$('select[name="analystall[]"]').filter(function(){return $(this).val()}).length;var p=$('select[name="tags[]"]').filter(function(){return $(this).val()}).length;var f=$('select[name="report_tags[]"]').filter(function(){return $(this).val()}).length;var h=$('select[name="recommendation[]"]').filter(function(){return $(this).val()}).length;var m=$('select[name="allanguages[]"]').filter(function(){return $(this).val()}).length;var v=$('select[name="Keywords[]"]').filter(function(){return $(this).val()}).length;var g=t+n+page_num+o+s+a+l+c+d+u+p+f+h+m+v;if(e=="/dashboard"){$("#countFilters").text(g);if(g==0){$("#countFilters").css("color","#57606F")}}else if(e=="/report-search"){$("#countRFilters").text(g);if(g==0){$("#countRFilters").css("color","#57606F")}}}$(".apply_search_filter_btn").click(function(e){e.preventDefault();var t=$(this).closest("form");if("/dashboard"===document.location.pathname){var n=JSON.stringify(t.serializeArray());$.fn.createCookie("home_filter",n,1);flagSearchType(t,"dashboard")}t.find("input[name=override_search_scope]").val(1);t.submit();$(".new-search-form-trigger").removeClass("open");$(".search-form-filter-holder").css("display","none");$(".search-form-filter-holder").css("box-shadow","unset");$("#search-form .inner.new-transparent").css("box-shadow","2px 2px 4px rgba(0,0,0,0.25)")});$(document).delegate(".update_filter_btn","click",function(e){var t=$("#search-form");var n=$(this).attr("data-interest-id");var i=$(this).attr("data-interest-type");if(t&&t.length){var r=t.serializeArray();r.push({name:"interestId",value:n});r.push({name:"interest_type",value:i});r.push({name:"update_from_search",value:1});$.request("reportSearch::onUpdateInterest",{data:r,complete:function(e){callback()}})}});$(window).resize(function(){var e="view_style";var t=window.innerWidth;var n=$.fn.readCookie(e);var i=getCorrectViewStyle(t,n,e);if(null===i){return}if(1200>t&&"card"!==n){$.fn.createCookie(e,i,1);$.fn.createCookie("large_style",n,1);location.href=location.href;return}var r=$.fn.readCookie("large_style");if(1200<=t&&null!==r){$.fn.createCookie(e,r,1);$.fn.eraseCookie("large_style");location.href=location.href;return}});$(document).ready(function(){var e="view_style";var t=getCorrectViewStyle(null,null,e);if(null!==t&&$.fn.readCookie(e)!==t){$.fn.createCookie(e,t,1)}if(null!==$.fn.readCookie("home_filter")&&"/dashboard"===document.location.pathname){deserializeIntoFilter($.fn.readCookie("home_filter"))}$(".dashboard_apply_search_filter_btn").trigger("click")});$(document).delegate(".create_search_filter_btn","click",function(e){var t=$("#search-form");var n=$('input:hidden[name="rp_unconnected_prov_filters"]').val();if(n!="yes"){if(t&&t.length){var i=t.serializeArray();$.request("reportSearch::onCreateInterest",{data:i,complete:function(e){$.magnificPopup.open({items:{src:e.responseJSON.response_html},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}})}}});$(document).delegate(".new_save_interest_create_btn","click",function(e){var t=$("#search-form");var n=t.serializeArray();var i=$("#save-interests-name").val();var r=$("input[type=radio][name=colour]:checked").val();n.push({name:"interestName",value:i});n.push({name:"interest_color",value:r});if(i!=""){$.request("reportSearch::onShowInterestemailpopup",{data:n,complete:function(e){$.magnificPopup.open({items:{src:e.responseJSON.response_html},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}})}else{$("#rp_title.form-required-error").css("display","block");$('input[name="interests-name"]').parent().addClass("has-error");return false}});$(document).delegate(".email_interest_notifaction_btn","click",function(e){var t=$("#search-form");var n=t.serializeArray();var i=$('input:hidden[name="interest_name"]').val();var r=$('input:hidden[name="interest_color"]').val();var a=$(this).attr("data-email-notifaction");n.push({name:"interestName",value:i});n.push({name:"interest_color",value:r});n.push({name:"interest_notifaction",value:a});$.request("reportSearch::onSearchCreateInterest",{data:n,complete:function(e){$.magnificPopup.close();callback()}})});$(document).ready(function(){var e=$("#txtSearchBox").val();var t=$("#top_interest_title_edit_icon").attr("data-interest-id");if(typeof t==="undefined"||t==""){if(e!=""){$("#show_more_less_filters_interest").trigger("click");$("#show_more_less_filters_interest").css("display","none");$(".interst_search_apply_btns_query").css("display","block")}else{$("#show_more_less_filters_interest").trigger("click");$("#show_more_less_filters_interest").css("display","none");$(".interst_search_apply_btns").css("display","block")}}});$(document).delegate(".interest_input_page i.calicon","click",function(e){var t=$(this).closest("div.interest_input_market_check").find("input.simple_datepicker").attr("class");if(t.indexOf("search_date_from ")!=-1){$(".search_date_from ").datepicker("show")}else if(t.indexOf("search_date_to")!=-1){$(".search_date_to").datepicker("show")}else{}});$.fn.renderTagsDropDown=function(){$(".filter_bar_tags01").find(".internal_interest_tag").select2({placeholder:"Select one or multiple tags",minimumResultsForSearch:-1,ajax:{url:"/search-users-personal-tags",dataType:"json",data:function(e){return{q:$.trim(e.term)}},processResults:function(e){return{results:e}},cache:true}})};$(document).delegate("li#register_popup","click",function(e){var t="account::onRenderRegisterPopup";$.request(t,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){var t=e.responseJSON.response_html;$.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false},0);$(".signupCountryList").find(".signupCountryListHome").select2({placeholder:"Please select your Country",allowClear:true,minimumResultsForSearch:-1})}})});$(document).delegate(".reveal","click",function(){var e=$(".pwd");if(e.attr("type")==="password"){e.attr("type","text");$("#reveal_icon").addClass("fa-eye");$("#reveal_icon").removeClass("fa-eye-slash")}else{e.attr("type","password");$("#reveal_icon").addClass("fa-eye-slash");$("#reveal_icon").removeClass("fa-eye")}});$(document).delegate(".confirm_reveal","click",function(){var e=$(".confirm_pwd");if(e.attr("type")==="password"){e.attr("type","text");$("#confirm_reveal_icon").addClass("fa-eye");$("#confirm_reveal_icon").removeClass("fa-eye-slash")}else{e.attr("type","password");$("#confirm_reveal_icon").addClass("fa-eye-slash");$("#confirm_reveal_icon").removeClass("fa-eye")}});$(document).delegate(".region_list ul li","click",function(e){var t=$(this);e.stopPropagation();var n=t.find("div label input").val();var i=t.find("div label input").data("countries").replace(/\s/g,"");$("#region_name_Americas div label input.all-selector").prop("indeterminate",true);$(".country_"+n).prop("checked",true)})});jQuery.fn.tableToCSV=function(){var l=function(e){e=e.replace(/"/g,'""');return'"'+e+'"'};$(this).each(function(){var e=$(this);var t=$(this).find("caption").text();var n=[];var i=[];$(this).find("tr").each(function(){var t=[];$(this).find("th").each(function(){var e=l($(this).text());n.push(e)});$(this).find("td").each(function(){var e=l($(this).text());t.push(e)});t=t.join(",");i.push(t)});n=n.join(",");i=i.join("\n");var r=n+i;var a="data:text/csv;charset=utf-8,"+encodeURIComponent(r);var o=document.createElement("a");o.href=a;var s=(new Date).getTime();if(t==""){o.download=s+".csv"}else{o.download=t+"-"+s+".csv"}document.body.appendChild(o);o.click();document.body.removeChild(o)})};jQuery.fn.enttableToCSV=function(){var l=function(e){return'"'+e.replace(/\s+/g,"")+'"'};$(this).each(function(){var e=$(this);var t=$(this).find("caption").text();var n=[];var i=[];$(this).find("tr").each(function(){var t=[];$(this).find("th").each(function(){var e=$(this).text();var t=e.toLowerCase();n.push(t.charAt(0).toUpperCase()+t.slice(1))});$(this).find("td").each(function(){var e=l($(this).text());t.push(e)});t=t.join(",");i.push(t)});n=n.join(",");i=i.join("\n");var r=n+i;var a="data:text/csv;charset=utf-8,"+encodeURIComponent(r);var o=document.createElement("a");o.href=a;var s=(new Date).getTime();if(t==""){o.download=s+".csv"}else{o.download=t+"-"+s+".csv"}document.body.appendChild(o);o.click();document.body.removeChild(o)})};jQuery.fn.ProvclassificationtableToCSV=function(){var h=function(e){return'"'+e.replace(/\s+/g,"")+'"'};$(this).each(function(){var e=$(this);var t=$(this).find("caption").text();var n=[];var i=[];var r=$("#protools-providers-classification").find("li.active").attr("data-classification-name");var a=[];$(this).find("thead, tbody tr").each(function(){var t=[];$(this).find("th").each(function(){var e=$(this).text();var t=e.toLowerCase();n.push(t.charAt(0).toUpperCase()+t.slice(1))});$(this).find("td").each(function(){if($(this).hasClass("classification_owner")){var e=$(this).find(".data-content p").html();t.push(e)}else if($(this).hasClass("classification_owner_remain")){var e=$(this).find(".select2-selection__rendered").text();t.push(e)}else if($(this).hasClass("assigned_to")){var e=$(this).find(".data-content .select2-selection__rendered").text();t.push(e)}else{var e=h($(this).text());t.push(e)}});t=t.join(",");i.push(t)});a.push(r);n=n.join(",");i=i.join("\n");var o=a+"\n"+n+i;var s="data:text/csv;charset=utf-8,"+encodeURIComponent(o);var l=document.createElement("a");l.href=s;var c=new Date;var d=(c.getDate()<10?"0":"")+c.getDate();var u=(c.getMonth()+1<10?"0":"")+(c.getMonth()+1);var p=c.getFullYear();var f=d+"."+u+"."+p+"_"+r;if(t==""){l.download=f+".csv"}else{l.download=t+"-"+f+".csv"}document.body.appendChild(l);l.click();document.body.removeChild(l)})};const interactionTemplateEditorContainerId="interactionTemplateEditorApp";const interactionTemplateEditorAppSpecification={delimiter:["{$","$}"],data:{educationalWidgetVisibility:"show",templateList:[],templateUuidSelected:null,templateSelected:null},beforeMount(){this.loadConfiguration()},mounted(){const e=this;this.$nextTick(function(){e.getTemplates();if(null!==e.templateUuidSelected){e.getTemplate(e.templateUuidSelected)}})},methods:{loadConfiguration(){if(localStorage.educationalWidgetVisibility){this.educationalWidgetVisibility=localStorage.educationalWidgetVisibility}if(localStorage.templateList){this.templateList=JSON.parse(localStorage.templateList)}if(localStorage.templateUuidSelected&&"null"!==localStorage.templateUuidSelected){this.templateUuidSelected=localStorage.templateUuidSelected}},persist(){localStorage.educationalWidgetVisibility=this.educationalWidgetVisibility;localStorage.templateList=JSON.stringify(this.templateList);localStorage.templateUuidSelected=this.templateUuidSelected},hideEducationalWidget(){this.educationalWidgetVisibility="hide";this.persist()},showEducationalWidget(){this.educationalWidgetVisibility="show";this.persist()},getTemplates(){const t=this;const e=new EsgApi;e.getTemplatesList().then(function(e){t.templateList=e;t.persist()})},getTemplate(e){const t=this;const n=new EsgApi;this.templateUuidSelected=e;n.getTemplate(e).then(function(e){t.templateSelected=e;t.persist()})}}};Vue.component("template-name-editor",{props:["item"]});Vue.component("tabs",{props:["items","selectedUuid"],data(){return{templateUuidSelected:this.selectedUuid,templateNameEdit:null}},methods:{selectTemplate(e){this.templateUuidSelected=e;this.$emit("select-template",e)},enableTemplateNameEdition(e){this.templateNameEdit=e;this.$nextTick(function(){document.getElementById("templateName_"+e.uuid).focus()})},disableTemplateNameEdition(e){this.templateNameEdit=null;document.getElementById("templateName_"+e.uuid).innerText=e.name},saveTemplateName(e){const t=this;const n=new EsgApi;const i=document.getElementById("templateName_"+e.uuid).textContent;n.patchTemplate(e.uuid,"replace","/name",i).then(function(){t.$emit("title-saved",e.uuid,e.name)});e.name=i;this.disableTemplateNameEdition(e)}},template:`
    <ul class="tablist">
        <li v-for="item in items" :key="item.uuid" :class="{'tablist__tab--active': templateUuidSelected === item.uuid}" class="tablist__tab tablist__tab--min" @click="selectTemplate(item.uuid)">
            <span class="tablist__tab__label" :id="'templateName_' + item.uuid" @dblclick="enableTemplateNameEdition(item)" @keydown.esc="disableTemplateNameEdition(item)" @blur="disableTemplateNameEdition(item)" @keydown.enter="saveTemplateName(item)" :contenteditable="null !== templateNameEdit && templateNameEdit.uuid === item.uuid">{{ item.name }}</span>&emsp;<i class="fal fa-pen" style="cursor: pointer" @click="enableTemplateNameEdition(item)" v-if="null === templateNameEdit || templateNameEdit.uuid !== item.uuid"></i>
        </li>
        <li class="tablist__tab tablist__tab--special-action"><i class="far fa-plus"></i></li>
    </ul>
`});Vue.component("esg-template-editor",{props:["template"],template:`
    <div class="esg-template-editor">
      <div class="editor-table-round-container">
       <table class="editor-table">
           <thead class="editor-table__header">
           <tr>
               <td><div class="content">
                   <div class="content--full">Field name</div>
                   <div class="separator"></div>
               </div></td>
               <td><div class="content">
                   <div class="content--full">Placeholder</div>
                   <div class="separator"></div>
               </div></td>
               <td><div class="content">
                   <div class="content--full">Values type</div>
                   <div class="separator"></div>
               </div></td>
               <td><div class="content">
                   <div class="content--full">Parameters</div>
                   <div class="separator"></div>
               </div></td>
               <td><div class="content">
                   <div class="content--full">Display rule</div>
                   <div class="separator"></div>
               </div></td>
               <td><div class="content">
                   <div class="content--full">Mandatory</div>
               </div></td>
           </tr>
           </thead>
           <tbody class="editor-table__body">
           <tr class="editor-table__separator">
               <td colspan="6"></td>
           </tr>
           <esg-field-row v-for="field in template.fieldSections[0].fields" :field="field" :key="field.uuid"/>
           </tbody>
       </table>
      </div>
    </div>
`});Vue.component("esg-field-row",{props:["field"],template:`
        <tr class="editor-table__body__row">
            <td><div class="content">
                <input type="text" v-model="field.name" class="form-control form-control--shadow">
                <div class="separator"/>
            </div></td>
            <td><div class="content">
                <input type="text" v-model="field.placeholder" class="form-control form-control--shadow" placeholder="---">
                <div class="separator"/>
            </div></td>
            <td><div class="content">
                <div class="content--full">
                    <esg-field-paramconfig :field="field" />
                </div>
                <div class="separator"/>
            </div></td>
            <td><div class="content">
                <div class="content--full"><button disabled>Settings</button></div>
                <div class="separator"/>
            </div></td>
            <td><div class="content">
                <div class="content--full"><button disabled>Settings</button></div>
                <div class="separator"/>
            </div></td>
            <td><div class="content">
                <div class="content--full"><button disabled>Settings</button></div>
            </div></td>
        </tr>
    `});Vue.component("esg-field-paramconfig",{props:["field"],computed:{getDataListTypes:function(){return[{id:"alphanumerical",text:"AlphaNumerical"},{id:"analyst",text:"Analysts (Provider)"},{id:"date",text:"Date"},{id:"dropdown",text:"Dropdown"},{id:"issuer",text:"Issuer"},{id:"sector",text:"sector"},{id:"hierarchical_dropdown",text:"Selection tree"},{id:"switch",text:"Switch"}]}},template:`
    <select2 :options="getDataListTypes" v-model="field.currentVersion.type"/>
`});const bootInteractionTemplateEditorApp=function(){return bootVueApp(interactionTemplateEditorContainerId,interactionTemplateEditorAppSpecification)};const handleLookupParameter=function(e){const t=e.data.query;const n=e.data.instance;n.lookup(t[1],t[0],n.getReportParameters())};const customLabel={props:["label","help","mandatory"],template:'<div class="flex--container" style="align-items: baseline;"><div><label>{{ label }} <span v-if="mandatory" style="color: #ff4757;">*</span></label></div><div v-if="help" style="font-size: 0.85em;" class="ml-3"><p class="text text-info text-small" style="font-size: 0.8em"><i class="fal fa-info-circle"></i> {{ help }}</p></div></div>'};const customFieldLookup={props:["uid","name","initparameters","help"],components:{"custom-label":customLabel},data:function(){return{data:{value:"---"},parameters:{lookup_query:null}}},template:'<div class="form-group col-lg-6 no-float"><custom-label v-bind:label="name" v-bind:help="help" mandatory="false"></custom-label><input type="text" class="form-control flex-grow control-lookup" v-model="data.value" disabled="disabled"></div>',methods:{getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){e.json().then(function(e){var t="";switch(e.description.type){case"numerical":t=e.data.value;if(e.description.parameters.numerical_currency){t=e.data.currency.toUpperCase()+" "+t}break;case"alphanum":case"range":t=e.data.value;break;case"stars":t=e.data.score+" of 5";break;case"checkbox":t=e.data.checked;break;case"textarea":t=e.data.text;break;case"dropdown":t=e.data.selected;break;case"boolean":t=e.data.selected;break;case null:t="---";break;default:t="Type of field not supported ";break}i.data.value=t;i.$forceUpdate()})})}},mounted:function(){const t=this;this.$nextTick(function(){if(undefined!=t.initvalues){t.data=Object.assign(t.data,t.initvalues)}if(undefined!=t.initparameters){t.parameters=Object.assign(t.parameters,t.initparameters)}t.$forceUpdate();const e=t.parameters.lookup_query.split("-",2);t.lookup(e[1],e[0],t.getReportParameters());$('select[name="super_category"]').on("change",{query:e,instance:t},handleLookupParameter);$("select#reportCompanyName").on("change",{query:e,instance:t},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:e,instance:t},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:e,instance:t},handleLookupParameter)})}};const customFieldNumerical={props:["uid","name","placeholder","initparameters","help","mandatory","initvalues"],components:{"custom-label":customLabel},data:function(){return{data:{value:null,currency:"usd"},parameters:{numerical_currency:false}}},template:`<div class="form-group col-lg-6 no-float">
<custom-label v-bind:label="name" v-bind:help="help" v-bind:mandatory="mandatory"></custom-label>
<div class="flex--container" v-if="undefined != data">
	<input type="number" step="any" class="form-control flex-grow no-number-spin" v-model="data.value" v-bind:placeholder="placeholder" v-bind:required="mandatory">
	<select v-if="parameters.numerical_currency" class="form-control selector-sm" v-model="data.currency">
		<option value="usd">US $</option>
		<option value="eur">EUR €</option>
		<option value="gbp">GBP £</option>
	</select>
</div>
</div>`,methods:{getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){e.json().then(function(e){var t="";switch(e.description.type){case"numerical":t=e.data.value;if(e.description.parameters.numerical_currency){t=e.data.currency.toUpperCase()+" "+t}break;default:break}i.data.value=t;i.$forceUpdate()})})}},mounted:function(){const n=this;this.$nextTick(function(){if(undefined!=n.initvalues){n.data=Object.assign(n.data,n.initvalues)}if(undefined!=n.initparameters){n.parameters=Object.assign(n.parameters,n.initparameters)}n.$forceUpdate();const e=$(".report_upload_select2_tags").attr("data-id");const t=[e,n.uid];n.lookup(t[1],t[0],n.getReportParameters());$('select[name="super_category"]').on("change",{query:t,instance:n},handleLookupParameter);$("select#reportCompanyName").on("change",{query:t,instance:n},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:t,instance:n},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:t,instance:n},handleLookupParameter)})}};const customFieldRange={props:["uid","name","placeholder","initparameters","help","mandatory","initvalues"],components:{"custom-label":customLabel},data:function(){return{data:{value:null},parameters:{range_start:0,range_end:100}}},template:`<div class="form-group col-lg-6 no-float">
<custom-label v-bind:label="name" v-bind:help="help" v-bind:mandatory="mandatory"></custom-label>
<div class="flex--container" v-if="undefined != data">
	<input type="number" :min="parameters.range_start" :max="parameters.range_end" step="any" class="form-control flex-grow" v-model="data.value" v-bind:placeholder="placeholder" v-bind:required="mandatory">
</div>
</div>`,methods:{getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){e.json().then(function(e){var t="";switch(e.description.type){case"range":t=e.data.value;break;default:break}i.data.value=t;i.$forceUpdate()})})}},mounted:function(){const n=this;this.$nextTick(function(){if(undefined!=n.initvalues){n.data=Object.assign(n.data,n.initvalues)}if(undefined!=n.initparameters){n.parameters=Object.assign(n.parameters,n.initparameters)}n.$forceUpdate();const e=$(".report_upload_select2_tags").attr("data-id");const t=[e,n.uid];n.lookup(t[1],t[0],n.getReportParameters());$('select[name="super_category"]').on("change",{query:t,instance:n},handleLookupParameter);$("select#reportCompanyName").on("change",{query:t,instance:n},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:t,instance:n},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:t,instance:n},handleLookupParameter)})}};const customAlphanumerical={props:["uid","name","placeholder","initparameters","help","mandatory","initvalues"],components:{"custom-label":customLabel},data:function(){return{data:{value:""},parameters:{alphanum_max:255}}},template:'<div class="form-group col-lg-6 no-float"><custom-label v-bind:label="name" v-bind:help="help" v-bind:mandatory="mandatory"></custom-label><input type="text" class="form-control flex-grow" v-model="data.value" v-bind:placeholder="placeholder" v-bind:required="mandatory" v-bind:maxlength="parameters.alphanum_max"></div>',methods:{getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){e.json().then(function(e){var t="";switch(e.description.type){case"alphanum":t=e.data.value;break;default:break}i.data.value=t;i.$forceUpdate()})})}},mounted:function(){const n=this;this.$nextTick(function(){if(undefined!=n.initvalues){n.data=Object.assign(n.data,n.initvalues)}if(undefined!=n.initparameters){n.parameters=Object.assign(n.parameters,n.initparameters)}n.$forceUpdate();const e=$(".report_upload_select2_tags").attr("data-id");const t=[e,n.uid];n.lookup(t[1],t[0],n.getReportParameters());$('select[name="super_category"]').on("change",{query:t,instance:n},handleLookupParameter);$("select#reportCompanyName").on("change",{query:t,instance:n},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:t,instance:n},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:t,instance:n},handleLookupParameter)})}};const customTextZone={props:["uid","name","placeholder","initparameters","help","mandatory","initvalues"],components:{"custom-label":customLabel},data:function(){return{data:{text:""},parameters:{}}},template:'<div class="form-group col-lg-12 no-float"><custom-label v-bind:label="name" v-bind:help="help" v-bind:mandatory="mandatory"></custom-label><textarea v-bind:id="\'customTextInstance_\'+uid" v-model="data.text" class="form-control custom-tinymce" rows="5" cols="100"></textarea></div>',methods:{getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){var t="";tinymce.get("customTextInstance_"+i.uid).setContent(t);e.json().then(function(e){switch(e.description.type){case"textarea":t=e.data.text;break;default:break}i.data.text=t;tinymce.get("customTextInstance_"+i.uid).setContent(t);i.$forceUpdate()})})}},mounted:function(){const n=this;this.$nextTick(function(){if(undefined!=n.initvalues){n.data=Object.assign(n.data,n.initvalues)}if(undefined!=n.initparameters){n.parameters=Object.assign(n.parameters,n.initparameters)}n.$forceUpdate();const e=$(".report_upload_select2_tags").attr("data-id");const t=[e,n.uid];n.lookup(t[1],t[0],n.getReportParameters());$('select[name="super_category"]').on("change",{query:t,instance:n},handleLookupParameter);$("select#reportCompanyName").on("change",{query:t,instance:n},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:t,instance:n},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:t,instance:n},handleLookupParameter);tinymce.init({selector:"#customTextInstance_"+n.uid,height:198,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css",init_instance_callback:function(t){t.on("Change",function(e){n.data.text=t.getContent()})}})})}};const customDropdown={props:["uid","name","placeholder","initparameters","help","mandatory","initvalues"],components:{"custom-label":customLabel},data:function(){return{data:{selected:[]},parameters:{dropdown_multiple_choice:false,dropdown_options:[]}}},template:'<div class="form-group col-lg-6 no-float select-tag"><custom-label v-bind:label="name" v-bind:help="help" v-bind:mandatory="mandatory"></custom-label><select :id="\'customDropdownInstance_\' + uid" class="form-control" :multiple="parameters.dropdown_multiple_choice" data-tagstyle="default" :required="mandatory"><option v-for="option in parameters.dropdown_options" :key="option" :value="option">{{ option }}</option></select></div>',methods:{getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){e.json().then(function(e){var t="";switch(e.description.type){case"dropdown":t=e.data.selected;break;default:break}if(Array.isArray(t)&&t!=null&&t!=""){$("#customDropdownInstance_"+i.uid).val(t).trigger("change")}else{$("#customDropdownInstance_"+i.uid).val(null).trigger("change")}i.$forceUpdate()})})}},mounted:function(){const i=this;if(undefined!=i.initvalues){i.data=Object.assign(i.data,i.initvalues)}if(undefined!=i.initparameters){i.parameters=Object.assign(i.parameters,i.initparameters)}this.$nextTick(function(){const t="#customDropdownInstance_"+i.uid;$(t).select2({placeholder:i.parameters.placeholder,minimumResultsForSearch:-1,templateSelection:formatState,allowClear:i.parameters.dropdown_options.length>1,multiple:i.parameters.dropdown_multiple_choice});$(t).on("change",function(){const e=$(t).val();i.data.selected=e;i.$forceUpdate()});$(t).val(i.data.selected).trigger("change");const e=$(".report_upload_select2_tags").attr("data-id");const n=[e,i.uid];i.lookup(n[1],n[0],i.getReportParameters());$('select[name="super_category"]').on("change",{query:n,instance:i},handleLookupParameter);$("select#reportCompanyName").on("change",{query:n,instance:i},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:n,instance:i},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:n,instance:i},handleLookupParameter)})}};const customRatingStars={props:["uid","name","placeholder","initparameters","help","mandatory","initvalues"],components:{"custom-label":customLabel},data:function(){return{data:{score:null},parameters:{}}},template:'<div class="form-group col-lg-12 no-float"><custom-label v-bind:label="name" v-bind:help="help" v-bind:mandatory="mandatory"></custom-label><div style="margin-left: 10px"><i v-for="index in 5" class="star--custom fa-2x" :class="{\'fal fa-star\': index > data.score, \'fas fa-star\': index <= data.score}" style="margin-right: 5px; cursor: pointer" @click="data.score = index"></i></div></div>',methods:{getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){e.json().then(function(e){var t="";switch(e.description.type){case"stars":if(e.data.score!=undefined&&e.data.score>=1&&e.data.score<=6){t=e.data.score;i.data.score=t}else{i.data.score=null}break;default:break}i.$forceUpdate()})})}},mounted:function(){const n=this;this.$nextTick(function(){if(undefined!=n.initvalues){n.data=Object.assign(n.data,n.initvalues)}if(undefined!=n.initparameters){n.parameters=Object.assign(n.parameters,n.initparameters)}n.$forceUpdate();const e=$(".report_upload_select2_tags").attr("data-id");const t=[e,n.uid];n.lookup(t[1],t[0],n.getReportParameters());$('select[name="super_category"]').on("change",{query:t,instance:n},handleLookupParameter);$("select#reportCompanyName").on("change",{query:t,instance:n},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:t,instance:n},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:t,instance:n},handleLookupParameter)})}};const customCheckbox={props:["uid","name","placeholder","initparameters","help","mandatory","initvalues"],components:{"custom-label":customLabel},data:function(){return{data:{checked:false},parameters:{}}},template:'<div class="form-group col-lg-12 no-float"><custom-label v-bind:label="name" v-bind:help="help" v-bind:mandatory="mandatory"></custom-label><div style="margin-left: 10px"><label><input type="checkbox" v-model="data.checked" :required="mandatory"> {{ parameters.checkbox_label }}</label></div></div>',methods:{getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){e.json().then(function(e){var t="";switch(e.description.type){case"checkbox":t=e.data.checked;break;default:break}i.data.checked=t;i.$forceUpdate()})})}},mounted:function(){const n=this;this.$nextTick(function(){if(undefined!=n.initvalues){n.data=Object.assign(n.data,n.initvalues)}if(undefined!=n.initparameters){n.parameters=Object.assign(n.parameters,n.initparameters)}n.$forceUpdate();const e=$(".report_upload_select2_tags").attr("data-id");const t=[e,n.uid];n.lookup(t[1],t[0],n.getReportParameters());$('select[name="super_category"]').on("change",{query:t,instance:n},handleLookupParameter);$("select#reportCompanyName").on("change",{query:t,instance:n},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:t,instance:n},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:t,instance:n},handleLookupParameter)})}};const customPills={props:["uid","name","placeholder","initparameters","help","mandatory","initvalues"],components:{"custom-label":customLabel},data:function(){return{data:{selected:"no"},parameters:{boolean_default:"no"}}},template:'<div class="form-group col-lg-12 no-float"><custom-label v-bind:label="name" v-bind:help="help" v-bind:mandatory="mandatory"></custom-label><div style="margin-left: 10px" class="button-pills"><button type="button" class="pill" :class="{\'pill--activated\': \'yes\' == data.selected}" @click="setBooleanDefault(\'yes\')">Yes</button><button type="button" class="pill" :class="{\'pill--activated\': \'no\' == data.selected}" @click="setBooleanDefault(\'no\')">No</button></div></div>',methods:{setBooleanDefault:function(e){this.data.selected=e;this.$forceUpdate()},getReportParameters:function(){const e=document.getElementsByName("super_category")[0].value;const t=Array.from(document.getElementById("reportCompanyName").selectedOptions).map(function(e){return e.value});const n=Array.from(document.getElementsByName("filter_sectors_all[]")[0].selectedOptions).map(function(e){return e.value});const i=Array.from(document.getElementsByName("countriesall[]")[0].selectedOptions).map(function(e){return e.value});return{cat:e,com:t,s:n,cou:i}},lookup:function(e,t,n){const i=this;fetch("/api/report/custom/"+e+"/last?"+new URLSearchParams(Object.assign({},n,{t:t}))).then(function(e){e.json().then(function(e){var t="";switch(e.description.type){case"boolean":if(e.data.selected!=undefined&&e.data.selected=="yes"){t=e.data.selected;i.data.selected=t}else{i.data.selected="no"}break;default:break}i.$forceUpdate()})})}},mounted:function(){const n=this;this.$nextTick(function(){if(undefined!=n.initvalues){n.data=Object.assign(n.data,n.initvalues)}if(undefined!=n.initparameters){n.parameters=Object.assign(n.parameters,n.initparameters)}n.$forceUpdate();const e=$('select[name="tags[]"]').attr("data-id");const t=[e,n.uid];n.lookup(t[1],t[0],n.getReportParameters());$('select[name="super_category"]').on("change",{query:t,instance:n},handleLookupParameter);$("select#reportCompanyName").on("change",{query:t,instance:n},handleLookupParameter);$('select[name="filter_sectors_all[]"]').on("change",{query:t,instance:n},handleLookupParameter);$('select[name="countriesall[]"]').on("change",{query:t,instance:n},handleLookupParameter)})}};Vue.component("custom-section",{props:["title","fields","data"],components:{"custom-field-numerical":customFieldNumerical,"custom-alphanumerical":customAlphanumerical,"custom-textzone":customTextZone,"custom-rating-star":customRatingStars,"custom-dropdown":customDropdown,"custom-checkbox":customCheckbox,"custom-pills":customPills,"custom-range":customFieldRange,"custom-lookup":customFieldLookup},methods:{getFieldValues:function(){const e=this.$children;var t={};e.map(function(e){e.$forceUpdate();t[e.$props.uid.toString()]=e.data});return t}},template:`<div>
<div class="row mt-4">
	<div class="col-lg-12">
		<div class="flex--container">
			<h3 class="section--title">{{ title }}</h3>
		</div>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<div class="section--well evaluation-section">
			<div v-for="field in fields">
				<custom-field-numerical v-if="\'numerical\' == field.type" :initvalues="data[field.uid]" v-bind:uid="field.uid" v-bind:name="field.name" v-bind:placeholder="field.placeholder" v-bind:initparameters="field.parameters" v-bind:help="field.help" v-bind:mandatory="field.status"></custom-field-numerical>
				<custom-range v-if="\'range\' == field.type" :initvalues="data[field.uid]" v-bind:uid="field.uid" v-bind:name="field.name" v-bind:placeholder="field.placeholder" v-bind:initparameters="field.parameters" v-bind:help="field.help" v-bind:mandatory="field.status"></custom-range>
				<custom-alphanumerical v-if="\'alphanum\' == field.type" v-bind:uid="field.uid" :initvalues="data[field.uid]" v-bind:name="field.name" v-bind:placeholder="field.placeholder" v-bind:initparameters="field.parameters" v-bind:help="field.help" v-bind:mandatory="field.status"></custom-alphanumerical>
				<custom-textzone v-if="\'textarea\' == field.type" v-bind:uid="field.uid" :initvalues="data[field.uid]" v-bind:name="field.name" v-bind:placeholder="field.placeholder" v-bind:initparameters="field.parameters" v-bind:help="field.help" v-bind:mandatory="field.status"></custom-textzone>
				<custom-rating-star v-if="\'stars\' == field.type" v-bind:uid="field.uid" :initvalues="data[field.uid]" v-bind:name="field.name" v-bind:placeholder="field.placeholder" v-bind:initparameters="field.parameters" v-bind:help="field.help" v-bind:mandatory="field.status"></custom-rating-star>
				<custom-dropdown v-if="\'dropdown\' == field.type" v-bind:uid="field.uid" :initvalues="data[field.uid]" v-bind:name="field.name" v-bind:placeholder="field.placeholder" v-bind:initparameters="field.parameters" v-bind:help="field.help" v-bind:mandatory="field.status"></custom-dropdown>
				<custom-checkbox v-if="\'checkbox\' == field.type" v-bind:uid="field.uid" :initvalues="data[field.uid]" v-bind:name="field.name" v-bind:placeholder="field.placeholder" v-bind:initparameters="field.parameters" v-bind:help="field.help" v-bind:mandatory="field.status"></custom-checkbox>
				<custom-pills v-if="\'boolean\' == field.type" v-bind:uid="field.uid" :initvalues="data[field.uid]" v-bind:name="field.name" v-bind:placeholder="field.placeholder" v-bind:initparameters="field.parameters" v-bind:help="field.help" v-bind:mandatory="field.status"></custom-pills>
				<custom-lookup v-if="\'lookup_field\' == field.type" v-bind:uid="field.uid" v-bind:name="field.name" v-bind:initparameters="field.parameters" v-bind:help="field.help"></custom-lookup>
			</div>
		</div>
	</div>
</div>
</div>`});window.customFieldsApp=null;function createCustomFieldsApp(){return new Vue({delimiters:["{$","$}"],data:{sections:[],fieldValues:[]},methods:{getReportSections:function(e){if(undefined==e||undefined==e.id){return}const t=this;$('select[name="super_category"]').off("change",handleLookupParameter);$("select#reportCompanyName").off("change",handleLookupParameter);$('select[name="filter_sectors_all[]"]').off("change",handleLookupParameter);$('select[name="countriesall[]"]').off("change",handleLookupParameter);fetch("/api/report/types/"+e.id+"/sections").then(function(e){e.json().then(function(e){t.sections=e;t.$forceUpdate()})})},getCustomFieldValues:function(){const t=this;var e=$("#customFieldsContainer").data("report").toString();e=e.replace("reportid-","");const n=e;if(undefined==n||""==n){return}fetch("/api/report/"+n+"/custom-values").then(function(e){e.json().then(function(e){t.fieldValues=e;t.$forceUpdate()})})},getFormValues:function(){const e=this.$children;var t={};e.map(function(e){t=Object.assign(t,e.getFieldValues())});return t},updateFieldValues:function(){this.fieldValues=JSON.stringify(this.getFormValues())}},mounted:function(){this.getCustomFieldValues();const e=$("#customFieldsContainer").data("type");if(0==e){return}this.getReportSections({id:e})}})}function formatState(e){var t=$(e.element).parent().data("tagstyle");var n=$(e.element).parent().prop("multiple");if(undefined===t){t="default"}var i=$('<span class="field-tag field-tag--'+t+(!n?" field-tag--single-choice":"")+'"><span></span></span>');if(!e.id){i=$('<span style="color: #A4B0BE"><span></span></span>')}i.find("span").text(e.text);return i}function reviveCompanyField(){$(document).delegate('select[name="report_companies[]"]',"change",function(e){var t=$("#reportCompanyName :selected").length;var n=isTitleBypassed();if(!n){var i=$("#report_upload_company span.select2-container--default .select2-selection--multiple .select2-selection__choice").map(function(){var e=$(this).attr("title");e=e.replace('<i class="companies-covered-tag"> COVERED</i>',"");var t=e.split("|");return t[1]?t[1].trim():t[0].trim()}).get().join(" - ");var r=$("#new_upload_popup_report_title").val();$("#new_upload_popup_report_title").val(i.length?"("+i+")":"")}if(0<t){$(".disable-if-company").prop("disabled","disabled").val(null).trigger("change")}else{$(".disable-if-company").prop("disabled",false)}if(1!=t){$(".visible-company-1").show()}else{$(".visible-company-1").hide()}});$('select[name="report_companies[]"]').trigger("change")}function isTitleBypassed(){return"yes"===$.fn.readCookie("bypass-title-generation")?true:false}function reviveBypassTitle(){var e=isTitleBypassed();$("#bypassTitleGeneration").prop("checked",e?"checked":false);$(document).delegate("#bypassTitleGeneration","change",function(e){var t=$("#bypassTitleGeneration").is(":checked");$.fn.createCookie("bypass-title-generation",t?"yes":"no",1)})}function formatStateStrong(e){if(!e.id){return e.text}var t=$("<span><strong></strong></span>");t.find("strong").text(e.text);return t}(function(m){m(document).delegate(".new_report_upload_popup","click",function(e){var t=m(this).attr("id");if(t=="dashoard_report_list_page"){var n="dashboardReportSearch::onCreateOrUpdateSingleReportPopup"}else{var n="protoolsInternalReports::onCreateOrUpdateSingleReportPopup"}m.request(n,{data:{page_id:m(this).attr("id")},complete:function(e){var t=e.responseJSON.response_html;m.magnificPopup.open({items:{src:t},callbacks:{open:function(){const e=document.getElementById("customFieldsContainer");window.customFieldsApp=createCustomFieldsApp();window.customFieldsApp.$mount(e)},beforeClose:function(){window.customFieldsApp.$destroy();window.customFieldsApp=null}},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);m("#new_document_cover_effect").hide();m("#new_image_cover_effect").hide();m(".remove_pdf_btn").hide();m(".remove_img_btn").hide();m("#report_upload_type").find(".enable-select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});m("#report_upload_language").find(".enable-language-select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});m("#report_upload_recommendation").find(".enable-upload-select2").select2({minimumResultsForSearch:-1});m("#report_new_upload_category").find(".report_upload_currency_select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});m("#report_new_upload_currency2").find(".report_upload_currency_select2").select2({minimumResultsForSearch:-1,templateSelection:formatStateStrong});m("#report_upload_author").find(".report_author_select2").select2({placeholder:"Please Select",allowClear:true});m("#report_upload_sector").find(".report_sector_select2").select2({placeholder:"Select one or multiple sectors",allowClear:true});m("#report_upload_geography").find(".report_geography_select2").select2({placeholder:"Select one or multiple geographies",allowClear:true});m("#report_shared_with").find(".report_shared_with_select2").select2({allowClear:true});m(".report_upload_select2_tags").on("change",function(e){const t={id:m(this).find(":selected").attr("data-id")};window.customFieldsApp.getReportSections(t)});m("#report_upload_company").find(".report_upload_select2_companies").select2({placeholder:"Enter a company name",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:m.trim(e.term)}},processResults:function(e){m.each(e,function(e,t){if(typeof t.covered!=="undefined"){t.text=t.text+t.covered}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});var n=m("#reportuploadppp .homepage-popup-headline").attr("id");if(n=="dashoard_report_list_page"){m(".internal_report_form_popup").attr("action",location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/buyer-tools/publication-manager/reports")}m(document).delegate("#bypassTitleGeneration","click",function(e){var t=m(e.target).is(":checked");if(!t){return}m("#new_upload_popup_report_title").val("")});reviveCompanyField();reviveBypassTitle();m("#report_upload_currency").find(".report_upload_currency_select2").select2({minimumResultsForSearch:-1});if(m("textarea.small_tinymce_new").length){tinymce.init({selector:".form-group textarea.small_tinymce_new",height:100,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}if(m("textarea.large_tinymce_new").length){tinymce.init({selector:".form-group textarea.large_tinymce_new",height:198,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}m.fn.initDateTimePicker()}})});m(document).delegate(".report-id-td span , .report-title-td span","click",function(e){var t=m(this).attr("id");m.request("protoolsInternalReports::onCreateOrUpdateSingleReportPopup",{data:{report_id:t},complete:function(e){var t=e.responseJSON.response_html;m.magnificPopup.open({items:{src:t},callbacks:{open:function(){const e=document.getElementById("customFieldsContainer");window.customFieldsApp=createCustomFieldsApp();window.customFieldsApp.$mount(e)},beforeClose:function(){window.customFieldsApp.$destroy();window.customFieldsApp=null}},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);if(m('input:hidden[name="selectedTemplate"]').length){const o={id:m('input:hidden[name="selectedTemplate"]').val()};window.customFieldsApp.getReportSections(o)}m("#new_document_cover_effect").hide();m("#new_image_cover_effect").hide();m(".remove_pdf_btn").hide();m(".remove_img_btn").hide();m("#report_upload_type").find(".enable-select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});m("#report_upload_language").find(".enable-language-select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});m("#report_upload_recommendation").find(".enable-upload-select2").select2({minimumResultsForSearch:-1});m("#report_new_upload_category").find(".report_upload_currency_select2").select2({minimumResultsForSearch:-1,templateSelection:formatState});m("#report_upload_author").find(".report_author_select2").select2({placeholder:"Please Select",allowClear:true});m("#report_upload_sector").find(".report_sector_select2").select2({placeholder:"Select one or multiple sectors",allowClear:true});m("#report_upload_geography").find(".report_geography_select2").select2({placeholder:"Select one or multiple geographies",allowClear:true});m("#report_upload_currency").find(".report_upload_currency_select2").select2({minimumResultsForSearch:-1});if(typeof e.responseJSON.selected_companies!=="undefined"){var n=e.responseJSON.selected_companies;m.each(n,function(e,t){var n="";if(typeof t.ticker!=="undefined"&&t.ticker!=""&&t.ticker!=null){n=t.ticker+" | "}t.name=n+t.name;if(typeof t.covered!=="undefined"){t.text=t.name+t.covered;t.html=t.name+t.covered}var i=new Option(t.html,t.id,true,true);m("#report_upload_company").find(".report_upload_select2_companies").append(i).trigger("change")})}m("#report_upload_company").find(".report_upload_select2_companies").select2({placeholder:"Enter a company name",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:m.trim(e.term)}},processResults:function(e){m.each(e,function(e,t){if(typeof t.covered!=="undefined"){t.text=t.text+t.covered}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});m("#report_shared_with").find(".report_shared_with_select2").select2({allowClear:true});reviveCompanyField();reviveBypassTitle();if(m("textarea.small_tinymce_new").length){tinymce.init({selector:".form-group textarea.small_tinymce_new",height:150,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}if(m("textarea.large_tinymce_new").length){tinymce.init({selector:".form-group textarea.large_tinymce_new",height:198,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}var i=m('select[name="report_upload_type"] option:selected').val();if(i==1){m("#html_report_upload_type").show();m("#only_report_pdf_btn").hide()}else if(i==5){m(".only_report_pdf_btn").text("UPLOAD WORD");m(".only_report_pdf_btn").append('<input type="file" class="conditionally_required only_pdf_document" name="document" accept=".doc,.docx" data-validation-name="Full Report Document" onchange="checkInputValue($(this))"/>');m(".only_report_pdf_btn").append('<input type="hidden" name="use_same_document" value="1">');m("#only_report_pdf_btn").show();m("#html_report_upload_type").hide()}else if(i==6){m(".only_report_pdf_btn").text("UPLOAD EXCEL");m("#only_report_pdf_btn").show();m("#html_report_upload_type").hide()}else if(i==7){m(".only_report_pdf_btn").text("UPLOAD PPT");m("#only_report_pdf_btn").show();m("#html_report_upload_type").hide()}else if(i==8){m(".only_report_pdf_btn").text("UPLOAD EMAIL");m("#only_report_pdf_btn").show();m("#html_report_upload_type").hide()}else if(i==0){m(".only_report_pdf_btn").text("UPLOAD PDF");m(".only_report_pdf_btn").append('<input type="file" class="conditionally_required only_pdf_document" name="document" accept=".pdf" data-validation-name="Full Report Document" onchange="checkInputValue($(this))"/>');m(".only_report_pdf_btn").append('<input type="hidden" name="use_same_document" value="1">')}else{m("#html_report_upload_type").hide();m("#only_report_pdf_btn").show()}var r=m('input:hidden[name="rp_pdf"]').val();if(r!=""){m("#new_document_cover_effect").text(r);m(".new_document_cover_effect").show();m(".remove_pdf_btn").show();m(".only_report_pdf_btn").hide()}var a=m('input:hidden[name="report_tumb"]').val();if(a!=""){m("#new_image_cover_effect").text(a);m(".new_image_cover_effect").show();m(".remove_img_btn").show();m(".report_image_doc_btn").hide()}m.fn.initDateTimePicker()}})});m.fn.initDateTimePicker=function(){m(".datepicker_with_max_date_2").each(function(){var t=m(this),e=m.trim(t.val()),n=moment(e,"YYYY-MM-DD HH:mm:ss").isValid()?e:"",i=t.attr("name");t.attr("name","_datepicker_"+i).attr("data-date-format","DD/MM/YYYY HH:mm").attr("readonly",true);t.after('<input type="hidden" name="'+i+'" value="'+n+'"/>');t.val(n.length==0?"":moment(n,"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY HH:mm"));t.datetimepicker({language:"en",minuteStepping:15,pickDate:true,pickTime:true,maxDate:moment()}).on("dp.change",function(e){t.siblings("input").val(moment(e.date,"llll").format("YYYY-MM-DD HH:mm:ss"));t.data("DateTimePicker").setMaxDate(moment())})})};m(document).delegate('select[name="report_upload_type"]',"change",function(e){var t=m('select[name="report_upload_type"] option:selected').val();var n=m(".document-or-icon-media-block").find('input[name="document"]').val();if(t==1){m("#html_report_upload_type").show();m("#only_report_pdf_btn").hide()}else if(t==5){m(".only_report_pdf_btn").text("UPLOAD WORD");m(".only_report_pdf_btn").append('<input type="file" class="conditionally_required only_pdf_document" name="document" accept=".doc,.docx" data-validation-name="Full Report Document" onchange="checkInputValue($(this))"/>');if(n!=""){m(".remove_pdf_btn").trigger("click");m(".document-or-icon-media-block").find('input[name="document"]').val("")}m("#only_report_pdf_btn").show();m("#html_report_upload_type").hide()}else if(t==6){m(".only_report_pdf_btn").text("UPLOAD EXCEL");m(".only_report_pdf_btn").append('<input type="file" class="conditionally_required only_pdf_document" name="document" accept=".xls,.xlsx" data-validation-name="Full Report Document" onchange="checkInputValue($(this))"/>');if(n!=""){m(".remove_pdf_btn").trigger("click");m(".document-or-icon-media-block").find('input[name="document"]').val("")}m("#only_report_pdf_btn").show();m("#html_report_upload_type").hide()}else if(t==7){m(".only_report_pdf_btn").text("UPLOAD PPT");m(".only_report_pdf_btn").append('<input type="file" class="conditionally_required only_pdf_document" name="document" accept=".ppt,.pptx" data-validation-name="Full Report Document" onchange="checkInputValue($(this))"/>');if(n!=""){m(".remove_pdf_btn").trigger("click");m(".document-or-icon-media-block").find('input[name="document"]').val("")}m("#only_report_pdf_btn").show();m("#html_report_upload_type").hide()}else if(t==8){m(".only_report_pdf_btn").text("UPLOAD EMAIL");m(".only_report_pdf_btn").append('<input type="file" class="conditionally_required only_pdf_document" name="document" accept=".msg" data-validation-name="Full Report Document" onchange="checkInputValue($(this))"/>');if(n!=""){m(".remove_pdf_btn").trigger("click");m(".document-or-icon-media-block").find('input[name="document"]').val("")}m("#only_report_pdf_btn").show();m("#html_report_upload_type").hide()}else if(t==0){m(".only_report_pdf_btn").text("UPLOAD PDF");m("#html_report_upload_type").hide();m("#only_report_pdf_btn").show();m(".only_report_pdf_btn").append('<input type="file" class="conditionally_required only_pdf_document" name="document" accept=".pdf" data-validation-name="Full Report Document" onchange="checkInputValue($(this))"/>');if(n!=""){m(".remove_pdf_btn").trigger("click");m(".document-or-icon-media-block").find('input[name="document"]').val("")}}else{m("#html_report_upload_type").hide();m("#only_report_pdf_btn").show()}});window.checkInputValue=function(e){var t="Upload JPG, PNG or BMP";if(e.hasClass("only_pdf_document")){t="Upload PDF"}var n=e.val();if(n==""){e.parent().find("label").html(t)}else{var i=n.substring(n.lastIndexOf(".")+1,n.length);var r=e.attr("accept");if(typeof r!==typeof undefined&&r!==false){if(r.indexOf(i.toLowerCase())==-1){alert("Not allowed file extension");e.parent().find("label").html(t);e.val("");e.closest(".file_inputs_wrapper").parent().removeClass("show_cover_effect")}else{var a=n.split("\\");e.parent().find("label").html(a[a.length-1]);if(e.attr("name")!="avatar"){e.closest(".file_inputs_wrapper").parent().addClass("show_cover_effect")}if(e.attr("name")=="avatar"&&m(".new_document_cover_effect .change_image_cover").length){m(".new_document_cover_effect").find(".change_image_cover").show()}}}else{var a=n.split("\\");e.parent().find("label").html(a[a.length-1]);e.closest(".file_inputs_wrapper").parent().addClass("show_cover_effect")}}};m(document).delegate(".new_upload_report_btn","click",function(){var e=window.location.pathname;e=e.substring(1);var t=e.split("/");var n=t[0];var i=m('input:hidden[name="ex_report_id"]').val();if(n=="dashboard"&&i!=""){var r=m('input:hidden[name="_handler"]').val("dashboardReportSearch::onCreateOrUpdateSingleInternalReport")}else if(n=="company"){var r=m('input:hidden[name="_handler"]').val("companyDetail::onCreateOrUpdateSingleReport")}else if(n=="provider"){var r=m('input:hidden[name="_handler"]').val("providerDetail::onCreateOrUpdateSingleReport")}else if(n=="report-search"){var r=m('input:hidden[name="_handler"]').val("reportSearch::onCreateOrUpdateSingleReport")}else{}var a=true;var o=m(this);var s=m('input[name="title"]').val();if(s==""){m("#rp_title.form-required-error").css("display","block")}var l=m('select[name="language"]').val();if(l==""){m("#rp_language.form-required-error").css("display","block")}var c=m('select[name="analysts[]"]').val();if(c==""||c==null){m("#rp_analysts.form-required-error").css("display","block");m(".internal_report_form_popup").animate({scrollTop:0},"slow")}var d=m('select[name="super_category"]').val();if(d==""){m("#rp_category.form-required-error").css("display","block")}var u=m('input[name="document"]').val();var p=m('select[name="report_upload_type"] option:selected').val();if(u==""&&p==0||u==""&&p==5||u==""&&p==6||u==""&&p==7||u==""&&p==8){var f=m('input:hidden[name="use_same_document"]').val();if(f!=1||f!=1&&u==""){m("#rp_document.form-required-error").css("display","block")}}m("form.internal_report_form_popup").validator("validate");if(m('textarea[name="summary"]').length||m('textarea[name="pdf_text"]').length){tinyMCE.triggerSave();var p=m('select[name="report_upload_type"] option:selected').val();if(m('textarea[name="summary"]').val()==""||m('textarea[name="pdf_text"]').val()==""&&p==1){if(m('textarea[name="summary"]').val()==""&&m('textarea[name="pdf_text"]').val()==""){m("#rp_summary.form-required-error").css("display","block");m("#rp_pdf_text.form-required-error").css("display","block")}else if(m('textarea[name="summary"]').val()==""&&m('textarea[name="pdf_text"]').val()!=""){m("#rp_summary.form-required-error").css("display","block")}else if(m('textarea[name="summary"]').val()!=""&&m('textarea[name="pdf_text"]').val()==""){m("#rp_pdf_text.form-required-error").css("display","block")}else{m("#rp_summary.form-required-error").css("display","block");m("#rp_pdf_text.form-required-error").css("display","block");m("#rp_language.form-required-error").css("display","block");m("#rp_category.form-required-error").css("display","block")}return false}}if(m('select[name="report_upload_type"]').val()=="0"&&m('input[name="document"]').length&&m('input[name="document"]').val()==""){var f=m('input:hidden[name="use_same_document"]').val();if(f!=1){m("#rp_document.form-required-error").css("display","block");return false}}if(m('select[name="report_upload_type"]').val()=="5"&&m('input[name="document"]').length&&m('input[name="document"]').val()==""){var f=m('input:hidden[name="use_same_document"]').val();if(f!=1){m("#rp_document.form-required-error").css("display","block");return false}}if(m('select[name="report_upload_type"]').val()=="6"&&m('input[name="document"]').length&&m('input[name="document"]').val()==""){var f=m('input:hidden[name="use_same_document"]').val();if(f!=1){m("#rp_document.form-required-error").css("display","block");return false}}if(m('select[name="report_upload_type"]').val()=="7"&&m('input[name="document"]').length&&m('input[name="document"]').val()==""){var f=m('input:hidden[name="use_same_document"]').val();if(f!=1){m("#rp_document.form-required-error").css("display","block");return false}}if(m('select[name="report_upload_type"]').val()=="8"&&m('input[name="document"]').length&&m('input[name="document"]').val()==""){var f=m('input:hidden[name="use_same_document"]').val();if(f!=1){m("#rp_document.form-required-error").css("display","block");return false}}if(m("form.internal_report_form_popup").find(".has-error").length){return false}if(!o.hasClass("disabled")){o.addClass("disabled");var h=m("form.internal_report_form_popup").serializeArray()}if(null!=window.customFieldsApp){window.customFieldsApp.updateFieldValues()}});m(document).ready(function(){function n(e){if(m(e).children().length>0){m(e).children(".image_document").click()}else{m(".image_document").click()}}function i(e){if(m(e).children().length>0){m(e).children(".only_pdf_document").click()}else{m(".only_pdf_document").click()}}m(document).delegate(".report_image_doc_btn","click",function(e){var t=m(e.target);if(t.is(".report_image_doc_btn")){n(t)}});m(document).delegate(".only_report_pdf_btn","click",function(e){var t=m(e.target);if(t.is(".only_report_pdf_btn")){i(t)}});m(document).delegate('input[name="document"]',"change",function(e){var t=m(this).val();var n=m('select[name="report_upload_type"] option:selected').val();var i=t.split("\\").pop();m("#new_document_cover_effect").text(i);m(".new_document_cover_effect").show();m(".remove_pdf_btn").show();if(n==0||n==5||n==6||n==7||n==8){m(".remove_pdf_btn").text("REMOVE FILE")}m(".only_report_pdf_btn").hide();m("#rp_document").hide()});m(document).delegate('input[name="icon"]',"change",function(e){var t=m(this).val();var n=t.split("\\").pop();m("#new_image_cover_effect").text(n);m(".new_image_cover_effect").show();m(".remove_img_btn").show();m(".report_image_doc_btn").hide()})});m(document).delegate(".remove_pdf_btn","click",function(){m(".document-or-icon-media-block").find('input[name="document"]').val("");m(".new_document_cover_effect").hide();m(".remove_pdf_btn").hide();m(".only_report_pdf_btn").show()});m(document).delegate(".remove_img_btn","click",function(){m(".document-or-icon-media-block").find('input[name="icon"]').val("");m(".new_image_cover_effect").hide();m(".remove_img_btn").hide();m(".report_image_doc_btn").show()});m(document).delegate('input[name="title"]',"change",function(){m("#rp_title.form-required-error").css("display","none")});m(document).delegate(".new_rp_del_btn","click",function(){var e=m(this).attr("id");if(e.indexOf("-")>-1){var t=e.split("-");var n=t[1]}else{var n=e}m("#shared_with_waring_box").css("display","block");m("#reportuploadppp").css("opacity","0.7");m("*:not(#shared_with_waring_box)").click(function(e){if(m("#shared_with_waring_box").is(":visible")){m("#popup_waring_box").css("display","none");m("#reportuploadppp").css("opacity","0.7");e.preventDefault()}});var i=window.location.pathname;i=i.substring(1);var r=i.split("/");var a=r[0];m("#quit_lose_rp_del").click(function(){m.magnificPopup.close()});m("#contine_to_rp_del").click(function(){if(a=="dashboard"){var e="dashboardReportSearch::onDeleteReport"}else if(a=="company"){var e="companyDetail::onDeleteReport"}else if(a=="provider"){var e="providerDetail::onDeleteReport"}else if(a=="report-search"){var e="reportSearch::onDeleteReport"}else{var e="protoolsInternalReports::onDeleteReport"}m.request(e,{data:{id:n},complete:function(e){location.reload()}});m.magnificPopup.close()})});m(document).click(function(e){var t=e.target.id;var n=e.target.tagName;if(m("#shared_with_waring_box").is(":visible")){m("#popup_waring_box").css("display","none")}else{if(t=="quit_lose_rp"){m.magnificPopup.close()}if(t=="contine_to_rp"||t=="contine_to_rp_icon"){m("#popup_waring_box").css("display","none");if(m("#popup_waring_box_coverage").length){m("#popup_waring_box_coverage").css("display","none")}if(m("form.coverage_fields_selection_form").length){m("form.coverage_fields_selection_form :input").prop("disabled",false)}m("#reportuploadppp").css("opacity","unset")}}});m.magnificPopup.instance.close=function(){if(m("#reportuploadppp").length){if(m("#popup_waring_box").css("display")!="block"){m("#popup_waring_box").css("display","block");m("#reportuploadppp").css("opacity","0.7");return}}m.magnificPopup.proto.close.call(this)};m(document).delegate('select[name="shared_with[]"]',"select2:selecting",function(e){var t=e.params.args.data.id;var n=m(this).val();var i="all-0";var r=m('input:hidden[name="current_user_value"]').val();var a="user-"+r;var o=m('.report_shared_with_select2 option[value="'+i+'"]');if(t!="all-0"){o.prop("selected",false);m(".report_shared_with_select2").val(null).trigger("change");if(jQuery.inArray(i,n)){}else{n=jQuery.grep(n,function(e){return e!=i})}m(".report_shared_with_select2").val(n).trigger("change")}else{m(".report_shared_with_select2").val(null).trigger("change")}})})(jQuery);(function(c){c(document).ready(function(){var e=c.fn.readCookie("payment_popup_data");if(e!=null){c.fn.createCookie("payment_popup_data","",-1);var t=JSON.parse(e);if(t.purchase_type!="undefined"&&t.report_id!="undefined"){o(t.report_id,t.purchase_type)}}});c(document).delegate(".payment_popup_trigger","click",function(e){var t=c(this);var n=t.data("user-id");var i=t.data("report-id");var r=t.data("purchase-type");if(i!=""&&typeof i!=="undefined"&&r!=""&&typeof r!=="undefined"){if(n!=""&&typeof n!=="undefined"){o(i,r)}else{var a='{"purchase_type":"'+r+'","report_id":"'+i+'"}';c.fn.createCookie("payment_popup_data",a,1);c("body").trigger("openRegisterPopup")}}});function o(e,t){var n=c('.payment_popup_trigger[data-report-id="'+e+'"][data-purchase-type="'+t+'"]');if(n.length){if(n.hasClass("disabled")){return false}n.addClass("disabled")}c.magnificPopup.close();c.request("paymentPopupData::onGetReportPopupDataByReportId",{data:{report_id:e,purchase_type:t},complete:function(e){if(e.responseJSON.redirect_url!=""){window.location=e.responseJSON.redirect_url}else if(e.responseJSON.payment_popup_html!=""){var t=e.responseJSON.payment_popup_html;c.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"payment-popup-overlay",callbacks:{close:function(){if(n.length){n.removeClass("disabled")}}}},0);if(c("#purchase-popup-form").find(".enable-select2").length){c("#purchase-popup-form").find(".enable-select2").select2({minimumResultsForSearch:-1})}}else if(e.responseJSON.notification_text!=""){c.magnificPopup.open({items:{src:'<div class="white-popup"><p>'+e.responseJSON.notification_text+"</p></div>"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"payment-popup-overlay",callbacks:{close:function(){if(n.length){n.removeClass("disabled")}}}})}}})}c(document).delegate("#payment-popup .choose-plan-dropdown","change",function(e){c("#payment-popup .subscription_type_options_and_filters").hide();c('#payment-popup .subscription_type_options_and_filters[data-subscription-type-id="'+c(this).val()+'"]').show();var t=c('#payment-popup .subscription_type_options_and_filters[data-subscription-type-id="'+c(this).val()+'"]').find('input[type="radio"]:checked');if(t.length){c(".pricing_js_popup_base_price").html(t.data("converted-price"));c(".pricing_js_popup_calculated_vat").html(t.data("converted-vat"));c(".pricing_js_popup_price_with_vat").html(t.data("converted-price-with-vat"));c(".pricing_js_popup_price_without_vat").html(t.data("converted-price"));c(".pricing_js_popup_cost_suffix").html("/"+t.val().replace("_"," "));c("#price_without_vat_NUM").val(t.data("price"));c("input#payment_plan").val(t.val())}});c(document).delegate("#payment-popup .subscription_type_option_item","change",function(e){var t=c(this);c(".pricing_js_popup_base_price").html(t.data("converted-price"));c(".pricing_js_popup_calculated_vat").html(t.data("converted-vat"));c(".pricing_js_popup_price_with_vat").html(t.data("converted-price-with-vat"));c(".pricing_js_popup_price_without_vat").html(t.data("converted-price"));c(".pricing_js_popup_cost_suffix").html("/"+t.val().replace("_"," "));c("#price_without_vat_NUM").val(t.data("price"));c("input#payment_plan").val(t.val())});c(document).delegate("#payment-popup .go_to_the_step_2","click",function(e){var t=c(this);if(t.data("step-type")=="report_subscription"){c("#payment-popup .first_step_popup").hide();c("#payment-popup .checkout_step_popup").show();if(c("#payment_popup_user_type").val()=="pro"){if(c("#is_user_with_true").val()==1){if(parseFloat(c("#payment_popup_organisation_available_credits").val())<parseFloat(c("#price_without_vat_NUM").val())||c("#is_related_inv_str_or_pf").val()!=1){c(".payment_popup_wallet_wrapper").find(".pay_from_wallet").hide();c(".payment_popup_pay_by_credit_allocation").hide();c(".payment-popup-insufficient-credit-wrapper").show()}else{c(".payment_popup_wallet_wrapper").find(".pay_from_wallet").show();c(".payment_popup_pay_by_credit_allocation").show();c(".payment-popup-insufficient-credit-wrapper").hide()}}else{if(parseFloat(c("#payment_popup_organisation_available_credits").val())<parseFloat(c("#price_without_vat_NUM").val())){c(".payment_popup_wallet_wrapper").find(".pay_from_wallet").hide();c(".payment_popup_pay_by_credit_allocation").hide();c(".payment-popup-insufficient-credit-wrapper").show()}else{c(".payment_popup_wallet_wrapper").find(".pay_from_wallet").show();c(".payment_popup_pay_by_credit_allocation").show();c(".payment-popup-insufficient-credit-wrapper").hide()}}}}else if(t.data("step-type")=="free_trial"){c("#payment-popup .first_step_popup").hide();c("#payment-popup .free_trial_step_2").show()}});c(document).delegate("#payment-popup .back_to_the_step_1","click",function(e){var t=c(this);if(t.data("step-type")=="report_subscription"){c("#payment-popup .checkout_step_popup").hide();c("#payment-popup .first_step_popup").show()}else if(t.data("step-type")=="free_trial"){c("#payment-popup .free_trial_step_2").hide();c("#payment-popup .first_step_popup").show()}if(c("#payment_popup_user_type").val()=="pro"&&(c(".payment_popup_wallet_success_message").html()!=""||c(".payment_popup_wallet_error_message").html()!="")){c(".payment_popup_wallet_success_message").html("");c(".payment_popup_wallet_error_message").html("");c('textarea[name="payment_popup_credit_request_message"]').val("")}});c(document).delegate("#payment-popup .go_to_the_step_3","click",function(e){c("#payment-popup .payment-popup-free-trial-2").hide();c("#payment-popup .checkout_step_popup").show();if(c("#payment_popup_user_type").val()=="pro"){if(c("#is_user_with_true").val()==1){if(parseFloat(c("#payment_popup_organisation_available_credits").val())<parseFloat(c("#price_without_vat_NUM").val())||c("#is_related_inv_str_or_pf").val()!=1){c(".payment_popup_wallet_wrapper").find(".pay_from_wallet").hide();c(".payment_popup_pay_by_credit_allocation").hide();c(".payment-popup-insufficient-credit-wrapper").show()}else{c(".payment_popup_wallet_wrapper").find(".pay_from_wallet").show();c(".payment_popup_pay_by_credit_allocation").show();c(".payment-popup-insufficient-credit-wrapper").hide()}}else{if(parseFloat(c("#payment_popup_organisation_available_credits").val())<parseFloat(c("#price_without_vat_NUM").val())){c(".payment_popup_wallet_wrapper").find(".pay_from_wallet").hide();c(".payment_popup_pay_by_credit_allocation").hide();c(".payment-popup-insufficient-credit-wrapper").show()}else{c(".payment_popup_wallet_wrapper").find(".pay_from_wallet").show();c(".payment_popup_pay_by_credit_allocation").show();c(".payment-popup-insufficient-credit-wrapper").hide()}}}});c(document).delegate("#payment-popup .back_to_the_step_2","click",function(e){c("#payment-popup .checkout_step_popup").hide();c("#payment-popup .payment-popup-free-trial-2").show();if(c("#payment_popup_user_type").val()=="pro"&&(c(".payment_popup_wallet_success_message").html()!=""||c(".payment_popup_wallet_error_message").html()!="")){c(".payment_popup_wallet_success_message").html("");c(".payment_popup_wallet_error_message").html("");c('textarea[name="payment_popup_credit_request_message"]').val("")}});c(document).delegate('#payment-popup input[name="purchase_from_wallet_or_by_card"]',"change",function(e){var t=c(this);c(".payment_popup_wallet_or_credit_card_wrapper").hide();if(t.val()=="wallet"){c(".payment_popup_wallet_wrapper").show()}else{c(".payment_popup_credit_card_wrapper").show()}});c(document).delegate(".payment_popup_request_credit_from_admin","click",function(){if(c(this).hasClass("disabled")){return false}var t=c("#purchase-popup-form");t.find(".payment_popup_wallet_success_message").html("");t.find(".payment_popup_wallet_error_message").html("");c(this).addClass("disabled");var e=t.serializeArray();c.request("paymentPopupData::onSubmitRequestForCredit",{data:e,complete:function(e){if(e.responseJSON.status=="01"){t.find(".payment_popup_wallet_success_message").html(e.responseJSON.message)}else{t.find(".payment_popup_wallet_errors_message").html(e.responseJSON.errors)}}});return false});c(document).delegate(".payment_popup_credit_card_wrapper .pay_by_credit_card","click",function(){var e=c(this);if(e.hasClass("disabled")){return false}c(".payment_popup_credit_card_wrapper").find(".errors").html("");c(".payment_popup_credit_card_wrapper").find(".pay_by_credit_card").addClass("disabled");var t=true;c(".payment_popup_credit_card_wrapper").find(".required").each(function(){if(c.trim(c(this).val())==""){c(this).parent().find(".errors").html("This field is required.");t=false}});if(c("#purchase-popup-form #purchase-type").length){var n=c("#purchase-popup-form #purchase-type").val();if(n==""){t=false;c("#purchase-popup-form .payment_popup_credit_card_wrapper .payment-errors").text("Please select payment plan above.")}}if(t){Stripe.card.createToken(c("#purchase-popup-form"),i)}else{e.removeClass("disabled")}return false});function s(e,t){var n=c("#purchase-popup-form");var i=n.find('input[data-stripe="number"]');var r=i.parent().find("p.errors");var a=n.find('input[data-stripe="cvc"]');var o=a.parent().find("p.errors");var s=n.find('select[data-stripe="exp_month"]').parent().find("p.errors");var l=s.parent().find("p.errors");switch(t){case"card_declined":r.text(e);i.focus();break;case"incorrect_cvc":o.text(e);a.focus();break;case"expired_card":l.text(e);s.focus();break;case"incorrect_number":r.text(e);i.focus();break;case"processing_error":r.text(e);i.focus();break;default:n.find("span.payment-errors").text(e)}}function i(e,t){var n=c("body").data("siteTitle");var i=c("#purchase-popup-form");c("#payment-popup").prepend('<div class="payment_popup_page_loader"><div class="image_wrapper"><img src="/themes/pukkaresearch/assets/images/'+c("body").data("assetName")+'/ajax-preloader.gif" alt=""></div></div>');if(t.error){alert(t.error.message);s(t.error.message,t.error.code);i.find(".pay_by_credit_card").removeClass("disabled");c(".payment_popup_page_loader").remove()}else{var r=t.id;if(i.find("input.stripeTokenClass").length){i.find("input.stripeTokenClass").val(r)}else{i.append(c('<input type="hidden" name="stripeToken" class="stripeTokenClass">').val(r))}var a=i.serializeArray();c.request("paymentPopupData::onSavePayByCreditCard",{data:a,complete:function(e){if(e.responseJSON.status=="00"){s(e.responseJSON.error,e.responseJSON.errorType);i.find(".pay_by_credit_card").removeClass("disabled");c(".payment_popup_page_loader").remove();return false}else if(e.responseJSON.status=="01"){if(e.responseJSON.purchase_type=="report"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.report_title,sku:e.responseJSON.report_id,category:"Reports "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send");ga("send","event","button","ReadNow "+e.responseJSON.purchase_type,"Purchase Page",1,{provider:e.responseJSON.producer_name,title:e.responseJSON.report_title,id:e.responseJSON.report_id,language:e.responseJSON.report_language,investor:e.responseJSON.investor})}else if(e.responseJSON.purchase_type=="subscription"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.producer_name,sku:e.responseJSON.producer_id,category:"Subscription for "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send")}if(e.responseJSON.redirect_url!=""){window.location=e.responseJSON.redirect_url;c(".payment_popup_page_loader").remove()}else{location.reload()}}},error:function(){i.find(".pay_by_credit_card").removeClass("disabled");c(".payment_popup_page_loader").remove()}});return false}}c(document).delegate(".payment_popup_wallet_wrapper .pay_from_wallet","click",function(){var e=c(this);var n=c("body").data("siteTitle");if(e.hasClass("disabled")){return false}e.addClass("disabled");var i=c("#purchase-popup-form");var t=i.serializeArray();c("#payment-popup").prepend('<div class="payment_popup_page_loader"><div class="image_wrapper"><img src="/themes/pukkaresearch/assets/images/'+c("body").data("assetName")+'/ajax-preloader.gif" alt=""></div></div>');c.request("paymentPopupData::onSavePro",{data:t,complete:function(e){if(e.responseJSON.status=="00"){c(".payment_popup_page_loader").remove();i.find(".payment_popup_wallet_error_message").html(e.responseJSON.error);i.find(".pay_from_wallet").removeClass("disabled");return false}else if(e.responseJSON.status=="01"){if(e.responseJSON.purchase_type=="report"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.report_title,sku:e.responseJSON.report_id,category:"Reports "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send");ga("send","event","button","ReadNow "+e.responseJSON.purchase_type,"Purchase Page",1,{provider:e.responseJSON.producer_name,title:e.responseJSON.report_title,id:e.responseJSON.report_id,language:e.responseJSON.report_language,investor:e.responseJSON.investor})}else if(e.responseJSON.purchase_type=="subscription"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:n+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.producer_name,sku:e.responseJSON.producer_id,category:"Subscription for "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send")}if(e.responseJSON.redirect_url!=""){window.location=e.responseJSON.redirect_url}c(".payment_popup_page_loader").remove()}},error:function(){e.removeClass("disabled");c(".payment_popup_page_loader").remove()}})});c(document).delegate(".payment_popup_pay_by_credit_allocation","click",function(){var n=c(this);var i=c("body").data("siteTitle");var a=c('#purchase-popup-form input[name="purchase_type"]').length&&c('#purchase-popup-form input[name="purchase_type"]').val()=="free-trial"?true:false;if(n.hasClass("disabled")){return false}n.addClass("disabled");var r=c("#purchase-popup-form");r.find(".payment-dropdown-wrap").find("div.errors").html("");r.find(".dropdown-options-errors.errors").html("");var e=0;c(".selected_items_percentage_values").each(function(){e+=+c(this).val()});if(e==0){r.find(".payment-dropdown-wrap").find("div.errors").html("Please select Portfolio or Investment strategy.");n.removeClass("disabled");return false}else if(e!=100){r.find(".payment-dropdown-wrap").find("div.errors").html("Error! The sum of the all percentage should be 100%.");n.removeClass("disabled");return false}else{c(".selected_items_percentage_values").removeClass("red-border");var o=false;var s=false;var l=r.find("input#price_without_vat_NUM").val();c(".selected_items_percentage_values").each(function(){var e=c(this);var t=e.val();var n=e.data("free_credits");var i=e.data("free_budget");var r=l/100*t;if(r>n||r>i){if(!a){e.addClass("red-border");c("#purchase_sub_text").css("display","block")}}if(r>n&&o==false){o=true}if(r>i&&s==false){s=true}});if(o==false&&s==false){r.find('input[name="credit_check_passed"]').val(1)}if(a&&(o||s)){s=false;o=false;c.fn.createCookie("show_allocation_remainder","yes",1)}if(o==true){n.removeClass("disabled");return false}else if(s==true){n.removeClass("disabled");return false}else{c("#payment-popup").prepend('<div class="payment_popup_page_loader"><div class="image_wrapper"><img src="/themes/pukkaresearch/assets/images/'+c("body").data("assetName")+'/ajax-preloader.gif" alt=""></div></div>');var t=r.serializeArray();c.request("paymentPopupData::onSavePro",{data:t,complete:function(e){if(e.responseJSON.status=="00"){c(".payment_popup_page_loader").remove();r.find(".payment-dropdown-wrap").find("div.errors").html(e.responseJSON.error);n.removeClass("disabled");return false}else if(e.responseJSON.status=="01"){if(e.responseJSON.purchase_type=="report"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:i+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.report_title,sku:e.responseJSON.report_id,category:"Reports "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send");ga("send","event","button","ReadNow "+e.responseJSON.purchase_type,"Purchase Page",1,{provider:e.responseJSON.producer_name,title:e.responseJSON.report_title,id:e.responseJSON.report_id,language:e.responseJSON.report_language,investor:e.responseJSON.investor})}else if(e.responseJSON.purchase_type=="subscription"){ga("require","ecommerce");ga("ecommerce:clear");var t=parseFloat(e.responseJSON.price).toFixed(2);ga("ecommerce:addTransaction",{id:e.responseJSON.order_id,affiliation:i+" Online Store",revenue:t,shipping:"0.00",tax:"0.00",currency:e.responseJSON.currency});ga("ecommerce:addItem",{id:e.responseJSON.order_id,name:e.responseJSON.producer_name,sku:e.responseJSON.producer_id,category:"Subscription for "+e.responseJSON.producer_name,price:t,quantity:"1",currency:e.responseJSON.currency});ga("ecommerce:send")}if(e.responseJSON.redirect_url!=""){window.location=e.responseJSON.redirect_url}c(".payment_popup_page_loader").remove()}},error:function(){n.removeClass("disabled");c(".payment_popup_page_loader").remove()}})}}})})(jQuery);(function(f){if(f(".assets-management-investment-strategy-page table").length||f(".assets-management-portfolio-page table").length){var e=f(window).height(),t=f(".assets-management-investment-strategy-page table").height(),n=f(".assets-management-portfolio-page table").height();if(t>e-200){f(".assets-management-investment-strategy-page table").addClass("long-table")}if(n>e-200){f(".assets-management-portfolio-page table").addClass("long-table")}}f(document).click(function(e){if(f(e.target).closest(".input-edit-wrapper").length===0&&f(e.target).closest(".edit-data").length===0&&f(e.target).closest(".has-dropdown select").length===0){f(".input-edit-wrapper").hide().closest("td").removeClass("has-focus");f(".has-dropdown .data-content").show()}});f(".user-management .pro-tools-table").on("click","td",function(e){f(".pro-tools-table td").removeClass("has-focus");f(this).addClass("has-focus")});f(document).delegate(".user-management .pro-tools-table .resend-activation-email","click",function(e){f(this).remove();f.request("proaccount::onResendUserActivationEmail",{data:{user_id:f(this).data("user")},complete:function(e){}})});f(".user-management .pro-tools-table.editable-table").on("click",".edit-data",function(e){var t=document.getElementsByClassName("loggedIn_user_role")[0].id;if(f(this).closest(".multiple-editable-items").length===0&&f(this).closest(".has-dropdown").length===0){if(f(this).parent().find(".input-edit-wrapper").length){f(this).parent().find(".input-edit-wrapper").show()}else{var n=f(this).data("type")=="email"?"email":"text";var i=f(this).data("type")=="email"?'data-error-field-name="Email"':"";var r=f(this).data("type")=="email"?" required":"";var a='<div class="input-edit-wrapper">'+'<input type="'+n+'" class="pro-tools-data-for-submission '+r+'" name="existing_user['+f(this).data("user-id")+"_"+f(this).data("type")+']" value="'+f(this).data("value")+'" data-orig-value="'+f(this).data("value")+'" data-type="'+f(this).data("type")+'" '+i+" autofocus/>"+"</div>";f(this).parent().append(a)}}else if(f(this).closest(".has-dropdown.u-status").length){if(f(this).parent().find(".input-edit-wrapper").length){f(this).parent().find(".input-edit-wrapper").show()}else{var o=f(this).data("value")=="Active-Licensed"?'selected="selected"':"";var s=f(this).data("value")=="Active-Unlicensed"?'selected="selected"':"";var l=f(this).data("value")=="Inactive"?'selected="selected"':"";if(t==1){var c='<div class="input-edit-wrapper"><select class="pro-tools-data-for-submission" name="existing_user['+f(this).data("user-id")+"_"+f(this).data("type")+']" data-orig-value="'+f(this).data("value")+'" data-type="'+f(this).data("type")+'">'+'<option value="licensed" '+o+" >Active-Licensed</option>"+'<option value="unlicensed" '+s+" >Active-Unlicensed</option>"+'<option value="inactive" '+l+">Inactive</option>"+"</select></div>"}else{var c='<div class="input-edit-wrapper"><select class="pro-tools-data-for-submission" name="existing_user['+f(this).data("user-id")+"_"+f(this).data("type")+']" data-orig-value="'+f(this).data("value")+'" data-type="'+f(this).data("type")+'">'+'<option value="">User</option>'+'<option value="1" '+d+" >Administrator</option>"+"</select></div>"}f(this).parent().append(c)}}else if(f(this).closest(".has-dropdown").length){if(f(this).parent().find(".input-edit-wrapper").length){f(this).parent().find(".input-edit-wrapper").show()}else{var d=f(this).data("value")=="Administrator"?'selected="selected"':"";var u=f(this).data("value")=="Editor"?'selected="selected"':"";if(t==1){var c='<div class="input-edit-wrapper"><select class="pro-tools-data-for-submission" name="existing_user['+f(this).data("user-id")+"_"+f(this).data("type")+']" data-orig-value="'+f(this).data("value")+'" data-type="'+f(this).data("type")+'">'+'<option value="">User</option>'+'<option value="1" '+d+" >Administrator</option>"+'<option value="2" '+u+">Editor</option>"+"</select></div>"}else{var c='<div class="input-edit-wrapper"><select class="pro-tools-data-for-submission" name="existing_user['+f(this).data("user-id")+"_"+f(this).data("type")+']" data-orig-value="'+f(this).data("value")+'" data-type="'+f(this).data("type")+'">'+'<option value="">User</option>'+'<option value="1" '+d+" >Administrator</option>"+"</select></div>"}f(this).parent().append(c)}}else if(f(this).closest(".multiple-editable-items").length){if(f(this).parent().find(".input-edit-wrapper").length){f(this).parent().find(".input-edit-wrapper").show()}else{var p='<div class="input-edit-wrapper">'+'<input type="text" class="pro-tools-data-for-submission required" name="existing_user['+f(this).data("user-id")+'_first_name]" value="'+f(this).data("first-name")+'" data-orig-value="'+f(this).data("first-name")+'" data-type="first-name" data-error-field-name="First Name" autofocus/>'+'<input type="text" class="pro-tools-data-for-submission required" name="existing_user['+f(this).data("user-id")+'_last_name]" value="'+f(this).data("last-name")+'" data-orig-value="'+f(this).data("last-name")+'" data-type="last-name" data-error-field-name="Last Name" autofocus/>'+"</div>";f(this).parent().append(p)}}});f(".assets-management-portfolio-page, .assets-management-investment-strategy-page").on("click",".edit-data",function(e){if(f(".add-user-popup").length){f(".add-user-popup").hide()}if(f(".add-admins-popup").length){f(".add-admins-popup").hide()}if(f(".add-portfolios-to-inv-str-popup").length){f(".add-portfolios-to-inv-str-popup").hide()}if(f(this).data("selector-type")=="input"){if(f(this).parent().find(".input-edit-wrapper").length){f(this).parent().find(".input-edit-wrapper").show()}else{var t=f(".assets-management-portfolio-page").length?'data-error-field-name="Portfolio Name"':'data-error-field-name="Group Name"';var n='<div class="input-edit-wrapper">'+'<input type="text" class="pro-tools-data-for-submission required" name="existing_item['+f(this).data("item-id")+"_"+f(this).data("type")+']" value="'+f(this).data("value")+'" data-orig-value="'+f(this).data("value")+'" data-type="'+f(this).data("type")+'" '+t+" autofocus/>"+"</div>";f(this).parent().append(n)}}else if(f(this).data("selector-type")=="simple_select"){var i=f(this);if(i.parent().find(".input-edit-wrapper").length){i.parent().find(".input-edit-wrapper").show()}else{var r='<div class="input-edit-wrapper"><select class="pro-tools-data-for-submission" name="existing_item['+i.data("item-id")+"_"+i.data("type")+']" data-orig-value="'+i.data("value")+'" data-type="'+i.data("type")+'">';f.each(i.data("potential-values"),function(e,t){if(i.data("value-id")==e){r+='<option value="'+e+'" selected="selected">'+t+"</option>"}else{r+='<option value="'+e+'">'+t+"</option>"}});r+="</select></div>";i.parent().append(r)}}else if(f(this).data("selector-type")=="select_users"){var i=f(this);if(i.closest("td").find(".add-user-popup").length){i.parent().find(".add-user-popup").show()}else{f.request("managementAssets::onAjaxEditPortOrInvStrUsers",{data:{item_type:i.data("request-type"),item_id:i.data("item-id")},complete:function(e){i.closest("td").append(e.responseJSON.resultHtml);a(i.closest("td"),i.data("request-type"),i.data("item-id"))}})}}else if(f(this).data("selector-type")=="select_admins"){var i=f(this);if(i.closest("td").find(".add-admins-popup").length){i.parent().find(".add-admins-popup").show()}else{f.request("managementAssets::onAjaxEditPortOrInvStrAdmins",{data:{item_type:i.data("request-type"),item_id:i.data("item-id")},complete:function(e){i.closest("td").append(e.responseJSON.resultHtml);o(i.closest("td"),i.data("request-type"),i.data("item-id"))}})}}else if(f(this).data("selector-type")=="select_portfolios"){var i=f(this);if(i.closest("td").find(".add-portfolios-to-inv-str-popup").length){i.parent().find(".add-portfolios-to-inv-str-popup").show()}else{f.request("managementAssets::onAjaxEditPortfoliosForInvStr",{data:{inv_str_id:i.data("item-id")},complete:function(e){i.closest("td").append(e.responseJSON.resultHtml);s(i.closest("td"),i.data("item-id"))}})}}});f(document).delegate(".pro-tools-data-for-submission","change",function(){var e=f(this);var t=e.closest("td").find(".data-content").find('[data-compare-type="'+e.data("type")+'"]');if(t.length){if(e.closest("td").find(".has-dropdown").length){var n=e.find(":selected").text()}else{var n=e.val()}if(t.html()!=n){t.html(n);if(n!=t.data("origin-value")){t.closest("td").addClass("currently_changed")}else{t.closest("td").removeClass("currently_changed")}}}if(f(".input-edit-wrapper").length){f(".save-cancel-change").css("display","flex")}});f(".save-cancel-change").on("click",".cancel-change",function(e){if(f("td").find(".item-for-compare").length){f("td").find(".item-for-compare").each(function(){f(this).html(f(this).data("origin-value"))})}if(f("td.currently_changed").length){f("td.currently_changed").each(function(){f(this).find(".input-edit-wrapper").remove();f(this).removeClass("currently_changed")})}if(f("tr.new_user").length){f("tr.new_user").remove()}else if(f("tr.new_item").length){f("tr.new_item").remove()}f(".save-cancel-change").css("display","none")});f(document).delegate("#proTools-content-wrapper .new_user input.required","change keyup",function(){if(f(this).prop("type")!="email"){if(f(this).val()){f(this).addClass("has-success")}else{f(this).removeClass("has-success")}}else{var e=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,})?$/;if(f(this).val()&&e.test(f(this).val())){f(this).addClass("has-success")}else{f(this).removeClass("has-success")}}});f("input.group_name_input").focus(function(){f("#checkGroupNameInput.form-required-error").css("display","none")});f(".save-cancel-change").on("click",".save-change",function(e){var t=true;var n=f(this);if(!n.hasClass("disabled")){n.addClass("disabled");var i="";if(f(".pro-tools-data-for-submission.required").length){f(".pro-tools-data-for-submission.required").each(function(){if(f(this).val()==""){i+="Field "+f(this).data("error-field-name")+" is mandatory;"+"<br />";t=false}else if(f(this).attr("type")=="email"){var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!e.test(f(this).val())){i+="The email is not valid."+"<br />";t=false}}})}if(f(this).data("request-type")=="credit-management"&&f(".pro-tools-data-for-submission").length){f(".pro-tools-data-for-submission").each(function(){if(parseFloat(f(this).data("max-value"))<parseFloat(f(this).val())){i="The credit need to be less or equal then budget for each Portfolio/Investment Strategy";t=false}})}else if(f(this).data("request-type")=="budget-management"&&f(".pro-tools-data-for-submission").length){f(".pro-tools-data-for-submission").each(function(){if(parseFloat(f(this).data("min-value"))>parseFloat(f(this).val())){i="The budget need to be greater or equal then credit for each Portfolio/Investment Strategy";t=false}})}if(t){var r=f(".pro-tools-data-for-submission").serializeArray();var a=true;if(f(this).data("disable-scroll")){if(f(this).data("disable-scroll")==1){a=false}}var o="proaccount::onSaveUsersData";var s="on_save_users_data";var l="on_existing_users_data";if(f(this).data("request-type")=="portfolio"){o="managementAssets::onSavePortfolioData";s="on_save_portfolio_or_inv_strategy_data"}else if(f(this).data("request-type")=="inv_strategy"){o="managementAssets::onSaveInvStrategyData";s="on_save_portfolio_or_inv_strategy_data"}else if(f(this).data("request-type")=="layer_strategy"){o="managementAssets::onSaveInvStrategyDataLayer";s="on_save_portfolio_or_inv_strategy_data_layer";cookieText="User successfully deleted."}else if(f(this).data("request-type")=="credit-management"){o="creditManagement::onEditCredit";s="on_save_credit_or_budget_data"}else if(f(this).data("request-type")=="budget-management"){o="creditManagement::onEditBudget";s="on_save_credit_or_budget_data"}else if(f(this).data("request-type")=="report-types"){o="protoolsInternalReports::onSaveReportType";s="on_save_report_type_data_on_provider_dashboard"}f.fn.createCookie(s,"",-1);if(f(this).data("request-type")=="layer_strategy"){var c=f(".group_name_input").val();if(typeof c==="string"&&c.length===0){t=false;f("#checkGroupNameInput.form-required-error").css("display","block");f("#checkGroupNameInput.form-required-error").css("color","#FF4757");return false}}f.request(o,{data:{form_data:r},complete:function(e){if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){f.fn.createCookie(l,e.responseJSON.error_msg,1);{f("html, body").animate({scrollTop:"0"},400)}location.reload()}else if(e.responseJSON.status=="01"&&e.responseJSON.scs_msg!=""){f.fn.createCookie(s,e.responseJSON.scs_msg,1);if(a){f("html, body").animate({scrollTop:"0"},400)}location.reload()}n.removeClass("disabled")}})}else{n.removeClass("disabled");f.fn.showMagnificPopupWithCallback("<p>"+i+"<p>",false)}}});f(document).delegate(".edit-delete-wrapper .delete-row","click",function(e){var t=f(this);if(!t.hasClass("disabled")){t.addClass("disabled");if(t.closest("tr").hasClass("new_item")){t.closest("tr").remove();return false}else{var n="managementAssets::onDeleteItem";var i="on_delete_portfolio_or_inv_strategy_data";var r="Element was successfully deleted.";if(f(this).data("item-type")=="user"){n="proaccount::onDeleteUser";i="on_delete_users_data";r="User successfully deleted."}else if(f(this).data("item-type")=="inv_strategy"){r="Group was successfully deleted."}else if(t.data("item-type")=="provider_dashboard_user"){i="on_save_users_data_on_provider_dashboard";r="User successfully deleted.";n="providerArea::onDeleteUser"}else if(t.data("item-type")=="provider_dashboard_report_type"){i="on_save_report_type_data_on_provider_dashboard";r="Report Type successfully deleted.";n="providerArea::onDeleteReportType"}else if(t.data("item-type")=="report_type"){i="on_save_report_type_data_on_provider_dashboard";r="Report Type successfully deleted.";n="protoolsInternalReports::onDeleteReportType"}if(t.data("item-type")=="inv_strategy"){l('<p style="text-align: center;">This element and all its children will be deleted.</p><p style="text-align: center;">Do you want to proceed ?</p><a class="btn btn-submit-blue" id="approve_del_item">YES</a>&nbsp;<a class="btn btn-submit-blue" id="cancel_del_item">NO</a>');f("#approve_del_item").click(function(){f.request(n,{data:{item_type:t.data("item-type"),item_id:t.data("item-id")},complete:function(e){if(e.responseJSON.status=="01"){f.fn.createCookie(i,r,1);f("html, body").animate({scrollTop:"0"},400);location.reload()}else{t.removeClass("disabled")}}})});f("#cancel_del_item").click(function(){f.magnificPopup.close()})}else if(t.data("item-type")=="portfolio"){l('<p style="text-align: center;">Are you sure you want to delete this element ?</p><a class="btn btn-submit-blue" id="approve_del_item">YES</a>&nbsp;<a class="btn btn-submit-blue" id="cancel_del_item">NO</a>');f("#approve_del_item").click(function(){f.request(n,{data:{item_type:t.data("item-type"),item_id:t.data("item-id")},complete:function(e){if(e.responseJSON.status=="01"){f.fn.createCookie(i,r,1);f("html, body").animate({scrollTop:"0"},400);location.reload()}else{t.removeClass("disabled")}}})});f("#cancel_del_item").click(function(){f.magnificPopup.close()})}else{f.request(n,{data:{item_type:t.data("item-type"),item_id:t.data("item-id")},complete:function(e){if(e.responseJSON.status=="01"){f.fn.createCookie(i,r,1);f("html, body").animate({scrollTop:"0"},400);location.reload()}else{t.removeClass("disabled")}}})}}}});f(document).on("click","#protools-add-new-report-type",function(){f.request("protoolsInternalReports::onAjaxAddNewReportType",{data:{row_index:f("#provider-dashboard-users-table").find("tbody").find("tr").length},complete:function(e){if(e.responseJSON.resultHtml!=""){f(".pro-tools-table tbody").append(e.responseJSON.resultHtml);if(f(document).height()>f(window).height()+68){f("html, body").animate({scrollTop:f("#new_report_type").offset().top},2e3)}f(".qtip.qtip-default").remove();f.fn.renderQtipTooltips()}}})});f(document).on("click",".pro-tools-add-new-row",function(){var t=f(this);if(!t.hasClass("disabled")){t.addClass("disabled");var e="managementAssets::onAjaxAddNewInvStrategy";if(f(this).data("request-type")=="portfolio"){e="managementAssets::onAjaxAddNewPortfolio"}f.request(e,{data:{row_index:f(".pro-tools-table").find("tbody").find("tr").length},complete:function(e){if(e.responseJSON.resultHtml!=""){f(".pro-tools-table tbody").append(e.responseJSON.resultHtml);if(f(document).height()>f(window).height()+68){f("html, body").animate({scrollTop:f("tr.new_item").offset().top},2e3)}}t.removeClass("disabled")}})}});f("form .form_wrapper_show_save_btn").click(function(){});function a(i,r,a){i.find("input.search_asm_users").autocomplete({source:function(e,t){f.ajax({url:"/search-users-on-asset-management/"+r+"/"+a+"/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},appendTo:i.find(".search_asm_users_wrapper"),select:function(e,t){if(t.item.key!=""){if(i.find("input.users_for_item[value="+t.item.key+"]").length){}else{newuid=t.item.key;layerid=a;layer_type=r;layerRole="user";user_name=t.item.label;p(newuid,layerid,layerRole,user_name,layer_type);var n='<div class="user-row new" id="'+newuid+'">'+'<i title="User" class="fa fa-user" style="padding-right:10px;"></i>'+'<span class="name">'+t.item.label+"</span>"+'<span class="delete-user-item remove_user_row new"><i title="Remove user" class="fal fa-trash-alt"></i></span>'+'<input type="hidden" class="users_for_item" name="users_for_item[]" value="'+t.item.key+'" />'+"</div>";i.find(".add-user-popup .top-wrapper form").append(n)}f(this).val("");return false}}})}function o(i,r,a){i.find("input.search_asm_users").autocomplete({source:function(e,t){f.ajax({url:"/search-users-on-asset-management/"+r+"/"+a+"/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},appendTo:i.find(".search_asm_users_wrapper"),select:function(e,t){if(t.item.key!=""){if(i.find("input.users_for_item[value="+t.item.key+"]").length){}else{newuid=t.item.key;layerid=a;layer_type=r;layerRole="admin";user_name=t.item.label;p(newuid,layerid,layerRole,user_name,layer_type);var n='<div class="user-row new" id="'+newuid+'">'+'<img src="/themes/pukkaresearch/assets/images/shielded-user.png" alt="admin-user" class="admin-box-img">'+'<span class="name">'+t.item.label+"</span>"+'<span class="delete-user-item remove_user_row new"><i title="Remove user" class="fal fa-trash-alt"></i></span>'+'<input type="hidden" class="users_for_item" name="users_for_item[]" value="'+t.item.key+'" />'+"</div>";i.find(".add-admins-popup .top-wrapper form").append(n)}f(this).val("");return false}}})}function s(i,n){i.find("input.search_asm_portfolios").autocomplete({source:function(e,t){f.ajax({url:"/search-portfolios-on-asset-management/"+n+"/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},appendTo:i.find(".search_asm_portfolios_wrapper"),select:function(e,t){if(t.item.key!=""){if(i.find("input.portfolios_for_item[value="+t.item.key+"]").length){}else{var n='<div class="user-row new">'+'<div class="portfolio-icon">P</div>'+'<span class="name">'+t.item.label+"</span>"+'<span class="delete-user-item remove_portfolio_row new"><i title="Remove Portfolio" class="fa fa-trash-o"></i></span>'+'<input type="hidden" class="portfolios_for_item" name="portfolios_for_item[]" value="'+t.item.key+'" />'+"</div>";i.find(".add-portfolios-to-inv-str-popup .top-wrapper form").append(n)}f(this).val("");return false}}})}f(document).delegate(".add-user-popup .remove_user_row","click",function(){f(this).closest("div.user-row").remove();return false});f(document).delegate(".add-admins-popup .remove_user_row","click",function(){f(this).closest("div.user-row").remove();return false});f(document).delegate(".add-portfolios-to-inv-str-popup .remove_portfolio_row","click",function(){f(this).closest("div.user-row").remove();return false});f(document).delegate(".add-user-popup .cancel-change","click",function(){f(this).closest(".add-user-popup").remove()});f(document).delegate(".add-admins-popup .cancel-change","click",function(){f(this).closest(".add-admins-popup").remove()});f(document).delegate(".add-portfolios-to-inv-str-popup .cancel-change","click",function(){f(this).closest(".add-portfolios-to-inv-str-popup").remove()});f(document).delegate(".add-user-popup .save-change","click",function(){var t=f(this);if(!t.hasClass("disabled")){t.addClass("disabled");var e=f(this).closest(".add-user-popup").find("form.portfolio_inv_strategy_users_form");var n=e.serializeArray();f.request("managementAssets::onAjaxUpdatePortOrInvStrUsers",{data:n,complete:function(e){if(e.responseJSON.status=="01"){f.fn.createCookie("on_save_portfolio_or_inv_strategy_data","Your changes are saved",1);location.reload()}t.removeClass("disabled")}})}});f(document).delegate(".add-admins-popup .save-change","click",function(){var t=f(this);if(!t.hasClass("disabled")){t.addClass("disabled");var e=f(this).closest(".add-admins-popup").find("form.portfolio_inv_strategy_users_form");var n=e.serializeArray();f.request("managementAssets::onAjaxUpdatePortOrInvStrAdmins",{data:n,complete:function(e){if(e.responseJSON.status=="01"){f.fn.createCookie("on_save_portfolio_or_inv_strategy_data","Your changes are saved",1);location.reload()}t.removeClass("disabled")}})}});f(document).delegate(".add-portfolios-to-inv-str-popup .save-change","click",function(){var t=f(this);if(!t.hasClass("disabled")){t.addClass("disabled");var e=f(this).closest(".add-portfolios-to-inv-str-popup").find("form.portfolio_inv_strategy_users_form");var n=e.serializeArray();f.request("managementAssets::onAjaxUpdatePortfoliosForInvestmentStr",{data:n,complete:function(e){if(e.responseJSON.status=="01"){f.fn.createCookie("on_save_portfolio_or_inv_strategy_data","Your changes are saved",1);location.reload()}t.removeClass("disabled")}});t.removeClass("disabled")}});f(".add-credit").on("click",function(){f.request("creditManagement::onCheckBuyerInformation",{data:{},complete:function(e){if(e.responseJSON.status=="01"){f.magnificPopup.close();f.magnificPopup.open({items:{src:"#add-credit-step-1"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)}else{var t=f("body").data("assetName");f.magnificPopup.close();f.magnificPopup.open({items:{src:'<div class="white-popup white-popup-register text-center">'+'<img src="/themes/pukkaresearch/assets/images/'+t+'/logo.png"/>'+"<br /><hr /><br />"+'<div style="text-align:left;">'+'<p>Before you can make a credit purchase please fill out the <a href="/buyer-tools/settings/general">general information</a> about your organisation.</p>'+"</div>"+"<br /></div>"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){window.location="/buyer-tools/settings/general"}}},0)}}})});f(".budget-and-credit .pro-tools-table.editable-table").on("click",".edit-data",function(e){if(f(this).parent().find(".input-edit-wrapper").length){f(this).parent().find(".input-edit-wrapper").show()}else{var t=f(this).data("type")=="portfolio"?'data-error-field-name="Portfolio Credit"':'data-error-field-name="Investment Strategy Credit"';var n=f(".budget-and-credit.credit-management").length?' data-max-value="'+f(this).data("max-value")+'" ':' data-min-value="'+f(this).data("min-value")+'" ';var i='<div class="input-edit-wrapper">'+'<input type="text" class="pro-tools-data-for-submission" name="existing_item['+f(this).data("item-id")+"_"+f(this).data("type")+']" value="'+f(this).data("value")+'" data-orig-value="'+f(this).data("value")+'" data-type="'+f(this).data("type")+'" '+n+t+" autofocus/>"+"</div>";f(this).parent().append(i)}});f(".budget-management").on("click",".pro-tools-edit-external-spending",function(e){f(".budget-and-spending-edit").show();return false});f(".credit-management, .budget-management").find(".expand").on("click",function(e){var t=f(this).closest("tr").attr("data-id");if(f(this).closest("tr").hasClass("children-visible")){f(this).closest("tr").removeClass("children-visible");f(".second-level-parent[data-parent-inv-str="+t+"]").hide()}else{f(this).closest("tr").addClass("children-visible");f(".second-level-parent[data-parent-inv-str="+t+"]").show()}});f(".spending-pages, .protools-tabs-wrapper").on("click",".tabs li",function(){f(this).addClass("active").siblings().removeClass("active");f(".tab-content-wrapper").find(".tab-content").eq(f(this).index()).addClass("active").siblings().removeClass("active")});f("body").on("click",".edit-data",function(e){f(this).next("div").find("input").focus()});function r(){f(".user-management, .assets-management-portfolio-page, .assets-management-investment-strategy-page, .budget-and-credit").find(".data-content").each(function(e,t){var n=f(this).width(),i=f(this).closest("td").width(),r=f(this).next().width();if(n>i-r-100){f(this).closest("td").addClass("floatedLeft")}else{f(this).closest("td").removeClass("floatedLeft")}})}r();f(document).click(function(e){if(f(e.target).closest(".add-user-popup").length===0&&f(e.target).closest(".edit-data").length===0){f(".add-user-popup").hide()}if(f(e.target).closest(".add-admins-popup").length===0&&f(e.target).closest(".edit-data").length===0){f(".add-admins-popup").hide()}if(f(e.target).closest(".add-portfolios-to-inv-str-popup").length===0&&f(e.target).closest(".edit-data").length===0){f(".add-portfolios-to-inv-str-popup").hide()}if(f(e.target).closest(".budget-and-spending-edit").length===0&&f(e.target).closest(".pro-tools-add-new-row").length===0){f(".budget-and-spending-edit").hide()}});f(window).on("resize",function(){r()});f(".add-or-edit-external-spending").click(function(){var e="creditManagement::onShowExternalSpendingPopup";f.request(e,{data:{item_id:f(this).data("item-id")},complete:function(e){if(e.responseJSON.status=="01"){var t=e.responseJSON.resultHtml;f.magnificPopup.close();f.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0);f.fn.renderProviderAutocompleteDataInPopup();f.fn.popupAllocationItems("creditManagement::onAddPriceItemToExternalAllocationPopup")}}})});f.fn.renderProviderAutocompleteDataInPopup=function(){f('#add-spending-modal input[name="provider"]').autocomplete({source:function(e,t){f.ajax({url:"/search-connected-providers-for-entitlements/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},appendTo:"#add-spending-modal .autocomplete-results",select:function(e,t){}})};f(".delete-external-spending").click(function(){var e="creditManagement::onDeleteExternalSpending";f.request(e,{data:{item_id:f(this).data("item-id")},complete:function(e){if(e.responseJSON.status=="01"){location.reload()}}})});f(document).on("mouseover hover",".ui-autocomplete li",function(e){f(this).removeClass("ui-state-focus")});if(f(".provider-portal")){f(".standard_desktop_navigation > .wh-nav").addClass("has-portal-link")}f(document).delegate("#save_external_spending_method","click",function(){if(f(this).hasClass("disabled")){return false}f(this).addClass("disabled");f("#add-spending-modal").find("div.errors").html("");var e=0;f(".selected_items_percentage_values").each(function(){e+=+f(this).val()});if(e!=100){f("#add-spending-modal").find("div.error_items").html("Error! The allocation must be 100%.");return false}else if(f("input.external_total_cost").val()==""||isNaN(f("input.external_total_cost").val())){f("#add-spending-modal").find("div.error_providers").html("Error! The price need to be entered.");return false}else if(f("input.select_provider_for_external").val()==""){f("#add-spending-modal").find("div.error_providers").html("Error! The provider need to be added.");return false}else{var r=parseFloat(f("input.external_total_cost").val()).toFixed(2);var a=false;f(".selected_items_percentage_values").each(function(){var e=f(this);var t=e.val();var n=e.data("free_budget");var i=r/100*t;if(i>n){f(this).addClass("red-border")}if(i>n&&a==false){a=true}});if(a==true){f("#add-spending-modal").find("div.error_items").html("This transaction would exceed your allocated budget. Please increase your budget to continue with this transaction.");f("#save_external_spending_method").removeClass("disabled");return false}else{var t=f("#add-spending-modal .protools-external-spending-form").serializeArray();f.request("creditManagement::onExternalSpending",{data:t,complete:function(e){if(e.responseJSON.status=="01"){f.fn.createCookie("on_save_credit_or_budget_data","Your changes are saved",1);location.reload()}else{f("#add-spending-modal").find("div.error_items").html(e.responseJSON.error_message);f("#save_external_spending_method").removeClass("disabled");return false}}})}}return false});f(document).delegate("#add-spending-modal input","change",function(){if(f("#save_external_spending_method").length){f("#save_external_spending_method").removeClass("disabled")}});f(".show_account_profile_change_password_popup").click(function(){f.magnificPopup.open({items:{src:"#profile_account_change_password"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)});f("#save_profile_account_change_password").click(function(){f("#profile_account_change_password").find("errors").html("");var e="";var t="Current and New Password should not be the same!";var n="Your Current Password is not correct!";var i=f("#accountPassword").val();var r=f("#accountPasswordConfirm").val();var a=f("#currentaccountPassword").val();var o=/^(?=.*\d)(?=.*[a-zA-Z]).{6,}$/;if(i.match(o)||r.match(o)){if(i!=r){e="New password and Confirmation must be the same!"}if(a==r||a==i){e="Current and New Password should not be the same!";f(".passchangeerrormessage").addClass("has-error");f(".accountPasswordConfirm").addClass("has-error")}}else{e="Password must 8 or more alphabetic and numerical characters!";f("#passchangeerrormessage").css("color","#ff4757")}if(e!=""){f("#profile_account_change_password").find(".errors").html(e);return false}var s=f("form.profile_account_change_password-form").serializeArray();f.request("account::onChangePassword",{data:s,complete:function(e){if(e.responseJSON.status=="01"){location.reload()}else{f("#change_pass_btn").trigger("click");f(".currentaccountPassword").addClass("has-error");f("#profile_account_change_password").find(".errors").html(n)}}});return false});f(document).delegate("#emailalerttoggle","click",function(){var e=f(this).closest(".p_interest-cell").find('input[type="hidden"]');var t=f(this).attr("data-item-state");if(t==1){e.val(0);f(this).attr("data-item-state","0");f(this).removeClass("fal fa-2x fa-toggle-on");f(this).addClass("fal fa-2x fa-toggle-off");f(this).closest(".simple_switcher_buttons_wrapper").find("span").removeClass("email_alert_on");f(this).closest(".simple_switcher_buttons_wrapper").find("span").addClass("email_alert_off");f(this).closest(".simple_switcher_buttons_wrapper").find("span").text("OFF");f.fn.updateEmailNotificationsOnProfileNotificationPage(e)}else{e.val(1);f(this).attr("data-item-state","1");f(this).removeClass("fal fa-2x fa-toggle-off");f(this).addClass("fal fa-2x fa-toggle-on");f(this).closest(".simple_switcher_buttons_wrapper").find("span").removeClass("email_alert_off");f(this).closest(".simple_switcher_buttons_wrapper").find("span").addClass("email_alert_on");f(this).closest(".simple_switcher_buttons_wrapper").find("span").text("ON");f.fn.updateEmailNotificationsOnProfileNotificationPage(e)}});f(document).delegate("#packagealerttoggle","click",function(){var e=f(this).closest(".p_interest-cell").find('input[type="hidden"]');var t=f(this).attr("data-item-state");if(t==1){e.val(0);f(this).attr("data-item-state","0");f(this).removeClass("fal fa-2x fa-toggle-on");f(this).addClass("fal fa-2x fa-toggle-off");f(this).closest(".simple_package_buttons_wrapper").find("span").removeClass("email_alert_on");f(this).closest(".simple_package_buttons_wrapper").find("span").addClass("email_alert_off");f(this).closest(".simple_package_buttons_wrapper").find("span").text("OFF");f.fn.updateEmailNotificationsPackage(e)}else{e.val(1);f(this).attr("data-item-state","1");f(this).removeClass("fal fa-2x fa-toggle-off");f(this).addClass("fal fa-2x fa-toggle-on");f(this).closest(".simple_package_buttons_wrapper").find("span").removeClass("email_alert_off");f(this).closest(".simple_package_buttons_wrapper").find("span").addClass("email_alert_on");f(this).closest(".simple_package_buttons_wrapper").find("span").text("ON");f.fn.updateEmailNotificationsPackage(e)}});f(document).delegate(".research_pool_yes_no_switcher_wrapper .simple_research_pool_switcher_trigger","click",function(){var e=f(this).closest(".research_pool_yes_no_switcher_wrapper").find('input[type="hidden"]');if(e.length&&e.val()!=f(this).data("item-state")){f(this).closest(".research_pool_yes_no_switcher_wrapper").find(".simple_research_pool_switcher_trigger").removeClass("active");f(this).addClass("active");e.val(f(this).data("item-state"));if(e.hasClass("nullobject_reports_user_dashboard_row_id")){f.fn.updateEmailNotificationsOnProfileNotificationPage(e)}else if(e.hasClass("subscription_page_subscription_state")){f.request("account::onUpdateSubscriptionItem",{data:{state:e.val(),item_id:e.data("item-id"),field_for_update:e.data("field-for-update")},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}});return false}else if(e.hasClass("analyst-switch-provider-portal")){e.addClass("provider-area-data-for-submission");f(".save-cancel-change").css("display","flex")}else if(e.hasClass("is_rating_public_visible_state_switcher")){f.request("protoolsResearchProvider::onChangeRatingVisibility",{data:{state:e.val(),item_id:e.data("item-id")},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}});return false}}});f(".account_subscriptions_page").find("input.subscription_change_auto_renew_state_trigger").change(function(){f.request("account::onUpdateSubscriptionItem",{data:{state:f(this).prop("checked")?1:0,item_id:f(this).data("item-id"),field_for_update:f(this).data("field-for-update")},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}});return false});f("#proTools-content-wrapper").find("form").validator("validate");f("form.update_profile_info").validator("validate");f.fn.popupAllocationItems=function(e){var t=[];var n=[];if(f("input.selected_items").length){f("input.selected_items").each(function(){t.push(f(this).val());if(f(this).attr("data-inv_str-id")){n.push(f(this).data("inv_str-id"))}})}f.request(e,{data:{type:"",selected_items:t,used_inv_strategies_on_portfolio:n},complete:function(e){if(e.responseJSON.status=="01"){f(".qtip.qtip-default").remove();f.fn.renderQtipTooltips()}}})};f.fn.updateEmailNotificationsOnProfileNotificationPage=function(e){f.request("account::onUpdateSavedSearchEmailNotification",{data:{state:e.val()==0?"false":"true",item_id:e.data("item-id"),item_type:"user_dashboard"},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}});return false};f.fn.updateEmailNotificationsPackage=function(e){f.request("account::onUpdateEmailPackagelNotification",{data:{state:e.val()==0?"false":"true",item_id:e.data("item-id"),item_type:"user_dashboard"},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}});return false};f("#protools-users-csv .true-users-upload-csv").on("change",function(){var e=f(this).val();if(e!=""){var t=e.substring(e.lastIndexOf(".")+1,e.length);var n=f(this).attr("accept");if(typeof n!==typeof undefined&&n!==false){if(n.indexOf(t.toLowerCase())==-1){alert("Not allowed file extension");f(this).val("")}else{f(this).closest("form").submit()}}}});f(document).delegate(".biz-account-entitlements-listing-wrapper .delete_entitlement_request","click",function(){var t=f(this);if(!t.hasClass("disabled")){t.addClass("disabled");f.request("protoolsEntitlements::onDeleteEntitlementRequest",{data:{entitlement_request_id:t.data("item-id")},complete:function(e){if(e.responseJSON.status=="01"){location.reload()}else if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){f.fn.showMagnificPopupWithCallback(e.responseJSON.error_msg,false)}t.removeClass("disabled")},error:function(e){t.removeClass("disabled")}})}});f(document).delegate("#proTools-content-wrapper .approve_or_delete_offered_entitlement","click",function(){var t=f(this);if(!t.hasClass("disabled")){t.addClass("disabled");f.request("protoolsEntitlements::onApproveOrDeleteEntitlementRequest",{data:{entitlement_request_id:t.data("item-id"),item_action:t.data("item-action")},complete:function(e){if(e.responseJSON.status=="01"){location.reload()}else if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){f.fn.showMagnificPopupWithCallback(e.responseJSON.error_msg,false)}t.removeClass("disabled")}})}});f(document).delegate(".table_sortable_by_column_data .profile_approve_or_delete_offered_entitlement","click",function(){var t=f(this);if(!t.hasClass("disabled")){t.addClass("disabled");f.request("account::onApproveOrDeleteEntitlementOffer",{data:{entitlement_request_id:t.data("item-id"),item_action:t.data("item-action")},complete:function(e){if(e.responseJSON.status=="01"){location.reload()}else if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){f.fn.showMagnificPopupWithCallback(e.responseJSON.error_msg,false)}t.removeClass("disabled")}})}});f(document).delegate("#add_organisation_structure","click",function(){f.magnificPopup.close();f.magnificPopup.open({items:{src:"#add-credit-step-org"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)});f(document).delegate("#layer_1","click",function(){f("#layer_title").hide();f("#table_layer_2 tr").show();f("#table_layer_1 tr").show();var e=f("#layer_1").attr("id");location.hash=e;var t=document.URL;var n=t.substring(0,t.indexOf("?"));var i=n+location.hash;var r=window.location.search.substring(1);if(r!=""){window.history.replaceState({},document.title,i);location.reload()}});f(document).delegate("#layer_title","click",function(){f("#layer_title").hide();f("#table_layer_2 tr").show();f("#table_layer_1 tr").show();f("#Contetn_layer_1").addClass("active");f("#Contetn_layer_2").removeClass("active");f("#layer_1").addClass("active");f("#layer_2").removeClass("active")});f(document).delegate("#layer_2","click",function(){var e=f("#layer_2").attr("id");location.hash=e;var t=document.URL;var n=t.substring(0,t.indexOf("?"));var i=n+location.hash;var r=window.location.search.substring(1);if(r!=""&&e!="#layer_2"){window.history.replaceState({},document.title,i)}});function d(e){var t=f("body").data("assetName");f.magnificPopup.open({items:{src:'<div class="white-popup white-popup-upload text-center">'+"<h4>NOTICE</h4>"+e+"<br /></div>"},type:"inline",preloader:false},0)}function l(e){var t=f("body").data("assetName");f.magnificPopup.open({items:{src:'<div class="white-popup white-popup-upload text-center">'+"<h4>DELETE ELEMENT</h4>"+e+"<br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}f("#layer_user").on("keyup",function(){f("#layer_user").autocomplete({source:function(e,t){f.ajax({url:"/search-users-for-organisation-structure/"+e.term,dataType:"jsonp",cache:false,error:function(){alert("Something is wrong")},success:function(e){var t='<ul class="layeruser-list">';for(var n in e){t+='<li class="layeruser-list-item" id="'+e[n].key+'">'+e[n].value+"</li>"}t+="</ul>";f("#searchLayerUsers").html(t)}})}})});f(document).delegate(".layeruser-list-item","click",function(){f(".layeruser-list").hide();var t=f("#layer_user_ids").val().split(",");f("#layer_user").val("");var n=f(this).attr("id");var i=f(this).text();var e=f("input[name=parent_name]").val();var t=f("#layer_user_ids");var r=f("input:hidden[name=show_users_id]").val();var a=f("input:hidden[name=show_admins_id]").val();var o=f("#layer_admin_ids");var s=r.search(n);var l=a.search(n);if(s!=-1||l!=-1){if(l!=-1){d('<p style="text-align: left;"><b>'+i+'</b> was already added as an admin for this element. Would you like to make him a user instead ?</p><a class="btn btn-submit-blue" id="save_user">YES</a>&nbsp;<a class="btn btn-submit-blue" id="cancel_user">NO</a>');f("#save_user").click(function(){f("#add_organisation_structure").trigger("click");t.val(t.val()+n+", ");var e='<div class="col-lg-6 user-box"  id="'+n+'">'+'<i title="User" class="fa fa-user"   style="padding-right:10px;color:#e7e9ec;"></i>'+'<span class="name" style="padding-right:10px;">'+i+"</span>"+'<span class="delete-user-item remove_admin_row new" data-user-id="'+n+'" id="'+n+'" ><i title="Remove user" class="fal fa-trash-alt" id="'+n+'"></i></span>'+'<input type="hidden" class="users_for_item" name="users_for_item[]" value="'+n+'" />'+"</div>";f("#searchLayerUserList").append(e);f("#searchLayerUserList").show();f("#searchLayerAdminsList").find("#"+n).hide();a=a.replace(n+",","");f("input:hidden[name=show_admins_id]").val(a)});f("#cancel_user").click(function(){f(".mfp-content").hide();f("#add_organisation_structure").trigger("click")})}}else{f("#searchLayerUserList").show();t.val(t.val()+n+", ");var c='<div class="col-lg-6 user-box"  id="'+n+'">'+'<i title="User" class="fa fa-user"   style="padding-right:10px;color:#e7e9ec;"></i>'+'<span class="name" style="padding-right:10px;">'+i+"</span>"+'<span class="delete-user-item remove_admin_row new" data-user-id="'+n+'" id="'+n+'" ><i title="Remove user" class="fal fa-trash-alt" id="'+n+'"></i></span>'+'<input type="hidden" class="users_for_item" name="users_for_item[]" value="'+n+'" />'+"</div>";f("#searchLayerUserList").append(c)}});f("#layer_admin").on("keyup",function(){f("#layer_admin").autocomplete({source:function(e,t){f.ajax({url:"/search-users-for-organisation-structure/"+e.term,dataType:"jsonp",cache:false,error:function(){alert("Something is wrong")},success:function(e){var t='<ul class="layeradmin-list">';for(var n in e){t+='<li class="layeradmin-list-item" id="'+e[n].key+'">'+e[n].value+"</li>"}t+="</ul>";f("#searchLayerAdmins").html(t)}})}})});f(document).delegate(".layeradmin-list-item","click",function(){f(".layeradmin-list").hide();var e=f("#layer_user_ids").val().split(",");var t=f("#layer_admin_ids").val().split(",");f("#layer_admin").val("");var n=f(this).attr("id");var i=f(this).text();var r=f("#layer_admin_ids");var a=f("input:hidden[name=show_users_id]").val();var o=f("input:hidden[name=show_admins_id]").val();var s=a.search(n);var l=o.search(n);if(s!=-1||l!=-1){d('<p style="text-align: left;"><b>'+i+'</b> was already added as a user for this element. Would you like to make him as an admin instead ?</p><a class="btn btn-submit-blue" id="save_user">YES</a>&nbsp;<a class="btn btn-submit-blue" id="cancel_user">NO</a>');f("#save_user").click(function(){f("#add_organisation_structure").trigger("click");r.val(r.val()+n+", ");var e='<div class="col-lg-6 admin-box"  id="'+n+'">'+'<img src="/themes/pukkaresearch/assets/images/shielded-user.png" alt="admin-user" >'+'<span class="name" style="padding-right:10px;">'+i+"</span>"+'<span class="delete-user-item remove_admin_row new" data-user-id="'+n+'" id="'+n+'"><i title="Remove user" class="fal fa-trash-alt" id="'+n+'"></i></span>'+'<input type="hidden" class="users_for_item" name="users_for_item[]" value="'+n+'" />'+"</div>";f("#searchLayerAdminsList").append(e);f("#searchLayerAdminsList").show();f("#searchLayerUserList").find("#"+n).hide();a=a.replace(n+",","");f("input:hidden[name=show_users_id]").val(a)});f("#cancel_user").click(function(){f(".mfp-content").hide();f("#add_organisation_structure").trigger("click")})}else{f("#searchLayerAdminsList").show();r.val(r.val()+n+", ");var c='<div class="col-lg-6 admin-box"  id="'+n+'">'+'<img src="/themes/pukkaresearch/assets/images/shielded-user.png" alt="admin-user" >'+'<span class="name" style="padding-right:10px;">'+i+"</span>"+'<span class="delete-user-item remove_admin_row new" data-user-id="'+n+'" id="'+n+'"><i title="Remove user" class="fal fa-trash-alt" id="'+n+'"></i></span>'+'<input type="hidden" class="users_for_item" name="users_for_item[]" value="'+n+'" />'+"</div>";f("#searchLayerAdminsList").append(c)}});f("#searchLayerUserList").delegate(".remove_admin_row","click",function(){var e=f(this);e.closest(".user-box").remove()});f("#searchLayerAdminsList").delegate(".remove_admin_row","click",function(){var e=f(this);e.closest(".admin-box").remove()});f(document).on("click","#buyer-btn-export-org-str",function(){var e=f("#performance_analytics_layers li.active").attr("id");if(e=="organisation_layer_1"){f("#tblAssetManagementAnalytic").tableToCSV()}else{f("#tblAssetManagementAnalytic1").tableToCSV()}});var c=[["Foo","programmer"],["Bar","bus driver"],["Moo","Reindeer Hunter"]];function u(e){var t=new Date;var n=t.getDate()+"-"+(t.getMonth()+1)+"-"+t.getHours()+"-"+t.getMinutes()+"-"+t.getSeconds();var e=e;var i="Id,Title,User Name,Admin Name,Date\n";f.each(e,function(e,t){i+=t.id+","+t.rname+","+t.layerUserName+","+t.layerAdminName+","+t.created_at;i+="\n"});var r=document.createElement("a");r.href="data:text/csv;charset=utf-8,"+encodeURI(i);r.target="_blank";r.download=n+".csv";r.click()}f(document).on("click","#buyer-btn-export-set-layer",function(){var e="layer_1";f.request("managementAssets::onLayerExport",{data:{layer_val:e},complete:function(e){var t=e.responseJSON.resultHtml;u(t)}})});f("#parentName").on("keyup",function(){f("#parentName").autocomplete({source:function(e,t){f.ajax({url:"/search-parent-name-for-organisation-structure/"+e.term,dataType:"jsonp",cache:false,success:function(e,t,n){if(e>0){f("#verifyname").removeClass("has-success");f("#verifyname").addClass("has-error");var i='<p style="color:red;">An element with an identical name in the same layer already exists, please choose a different name.</p>';f("#existingGroupName").html(i);f("#layer_strategy_org_group").attr("disabled",true)}else{var i='<p style="color:green;"></p>';f("#existingGroupName").html(i);f("#verifyname").addClass("has-success");f("#verifyname").removeClass("has-error");f("#layer_strategy_org_group").attr("disabled",false)}},minLength:3,error:function(e,t,n){}})}})});f(document).delegate("#org_group_layer_cancel_btn","click",function(){f("#org_structure")[0].reset()});f(document).delegate("#add_organisation_structure","click",function(){f("#org-group-layer-btns").show()});f("#layer_name_opt").change(function(){var e=f(this).val();if(e==1){f("#parentDropdown").show();f("#layer_name_opt_par").prop("required",true);f("#parentDropdown").css("visibility","unset")}else{f("#parentDropdown").hide();f("#layer_name_opt_par").prop("required",false);f("#parentDropdown").css("visibility","hidden")}});f(document).ready(function(){if(location.hash=="#layer_2"){f("#layer_2").trigger("click")}});function p(e,t,n,i,r){var a=e;var o=t;var s=r;if(s=="inv_strategy"){var l=f("#existing-item-"+t).attr("data-sort-value")}else{var l=f("#prot-existing-item-"+t).attr("data-sort-value")}f.ajax({url:"/search-user-from-investment-strategy-proaccounts/"+e+"/"+t+"/"+n+"/"+r,dataType:"jsonp",cache:false,success:function(e,t,n){if(e!=""&&e=="admin"){d('<p style="text-align: left;"><b>'+i+"</b> was already added as  an admin  for <b>"+l+'</b>. Would you like to make him a user instead ?</p><a class="btn btn-submit-blue" id="save_user">YES</a>&nbsp;<a class="btn btn-submit-blue" id="cancel_user">NO</a>');f("#save_user").click(function(){h(a,o,popup="user",s);f.magnificPopup.close()});f("#cancel_user").click(function(){f(".user-row.new").remove();f.magnificPopup.close();f(".add-user-popup").css("display","block")})}else if(e!=""&&e=="user"){d('<p style="text-align: left;"><b>'+i+"</b> was already added as a user for <b>"+l+'</b>. Would you like to make him as an admin instead ?</p><a class="btn btn-submit-blue" id="save_user">YES</a>&nbsp;<a class="btn btn-submit-blue" id="cancel_user">NO</a>');f("#save_user").click(function(){h(a,o,popup="admin",s);f.magnificPopup.close()});f("#cancel_user").click(function(){f(".user-row.new").remove();f(".add-admins-popup").css("display","block");f.magnificPopup.close()})}}})}function h(e,t,i,n){f.ajax({url:"/delete-user-from-investment-strategy-proaccounts/"+e+"/"+t+"/"+n,dataType:"jsonp",cache:false,success:function(e,t,n){if(i=="admin"){f(".add-admins-popup").css("display","block")}else{f(".add-user-popup").css("display","block")}}})}f(".normal_p i").on("mouseover",function(){f(".p_toggle_hover").css("display","block")});f(".normal_p i").on("mouseout",function(){f(".p_toggle_hover").css("display","none")});f(document).delegate("#ratingtoggel","click",function(){if(f("#ratingtoggel").attr("class")=="fal fa-2x fa-toggle-on"){f("#ratingtoggel").removeClass("fa-toggle-on");f("#ratingtoggel").addClass("fa-toggle-off");f("#ratingtoggel").attr("data-item-state","0")}else{f("#ratingtoggel").removeClass("fa-toggle-off");f("#ratingtoggel").addClass("fa-toggle-on");f("#ratingtoggel").attr("data-item-state","1")}var e=f("#ratingtoggel").attr("data-item-state");f.request("protoolsEntitlements::onChangeRatingVisibility",{data:{toggle_state_id:e},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}})});f(document).delegate("#selectdiv","click",function(){var e=false;function t(){if(e)f("#niceselectdiv").addClass("nice-open");else f("#niceselectdiv").removeClass("nice-open")}f("#selectdiv").on("click",function(){e=!e;t()});f("#selectdiv").on("focus",function(){if(e){e=!e;t()}});f("#selectdiv").on("blur",function(){if(e){e=!e;t()}})});f(document).delegate("#newslettertoggel","click",function(){if(f("#newslettertoggel").attr("class")=="far fa-2x fa-toggle-on"){f("#newslettertoggel").removeClass("fa-toggle-on");f("#newslettertoggel").addClass("fa-toggle-off");f("#newslettertoggel").attr("data-item-state","0");f("#spanText").text("Off");f("#spanText").removeClass("spanTexton");f("#spanText").addClass("spanTextoff")}else{f("#newslettertoggel").removeClass("fa-toggle-off");f("#newslettertoggel").addClass("fa-toggle-on");f("#newslettertoggel").attr("data-item-state","1");f("#spanText").text("On");f("#spanText").removeClass("spanTextoff");f("#spanText").addClass("spanTexton")}var e=f("#newslettertoggel").attr("data-item-state");f("#prof_newsletter").val(e)});f("#stars li").on("mouseover",function(){var t=parseInt(f(this).data("value"),10);f(this).parent().children("li.star").each(function(e){if(e<t){f(this).addClass("hover")}else{f(this).removeClass("hover")}})}).on("mouseout",function(){f(this).parent().children("li.star").each(function(e){f(this).removeClass("hover")})});f("#stars li").on("click",function(){var e=parseInt(f(this).data("value"),10);var t=f(this).parent().children("li.star");for(i=0;i<t.length;i++){f(t[i]).removeClass("selected")}for(i=0;i<e;i++){f(t[i]).addClass("selected")}var n=parseInt(f("#stars li.selected").last().data("value"),10);f("input:hidden[name=star_rating]").val(n)});f("#prating-button-cancel").on("click",function(){f.magnificPopup.close();var e=f.fn.readCookie("redirect_after_rating");if(e!=null){f.fn.createCookie("redirect_after_rating","",-1);window.location=e}});f(document).ready(function(){f(".signupCountryListHome").select2({})});f("#estars li").on("mouseover",function(){var t=parseInt(f(this).data("value"),10);f(this).parent().children("li.star").each(function(e){if(e<t){f(this).addClass("hover")}else{f(this).removeClass("hover")}})}).on("mouseout",function(){f(this).parent().children("li.star").each(function(e){f(this).removeClass("hover")})});f("#estars li").on("click",function(){var e=parseInt(f(this).data("value"),10);var t=f(this).parent().children("li.star");for(i=0;i<t.length;i++){f(t[i]).removeClass("selected")}for(i=0;i<e;i++){f(t[i]).addClass("selected")}var n=parseInt(f("#stars li.selected").last().data("value"),10);f("input:hidden[name=star_rating]").val(n)});f(document).delegate(".resend-entitlement-email-btn","mouseover",function(e){f(".ent_btn_tip").css("display","block")});f(document).delegate(".resend-entitlement-email-btn","mouseout",function(e){f(".ent_btn_tip").css("display","none")});f(".provider_update_single_report_data_form").find(".company_name_ticker_isin").on("autocompleteselect",function(e,n){var t=f(".selected_company_card").length;if(t==0){var i="("+n.item.company_name+") ";f(".upload_new_report_title").val(i).trigger("change")}else if(t==1){f(".selected_company_card_name").each(function(){var e=f(".selected_company_card_name").text();var t="("+e+" - "+n.item.company_name+") ";f(".upload_new_report_title").val(t).trigger("change")})}else if(t==2){var i=f(".selected_company_card .selected_company_card_name");var r=i[0].textContent;var a=i[1].textContent;var o="("+r+" - "+a+" - "+n.item.company_name+") ";f(".upload_new_report_title").val(o).trigger("change")}else if(t>2){var i=f(".selected_company_card .selected_company_card_name");var r=i[0].textContent;var a=i[1].textContent;var s=i[2].textContent;var o="("+r+" - "+a+" - "+s+"...) ";f(".upload_new_report_title").val(o).trigger("change")}})})(jQuery);(function(l){l("#prov_class_header0").find("#remain_section_icon").mouseover(e).mouseout(t);function e(){l("#prov_class_btn_hover").show()}function t(){l("#prov_class_btn_hover").hide()}function n(){l("#protools-providers-classification li").first().addClass("active");l("#protools-providers-classification li").not(":first").removeClass("active");if(l("#prov_class_header1").hasClass("active")){var e=l("#providers-classification-wrap").find("#protools-providers-classification li.active");setTimeout(function(){e.click()},50);l("#providers-classification-wrap").find("#prov_class_1").addClass("currently_displayed");l("#providers-classification-wrap").find("#prov_class_0").removeClass("currently_displayed");l("#prov_class_1").show();l("#prov_class_0").hide()}else{l("#providers-classification-wrap").find("#prov_class_0").addClass("currently_displayed");l("#providers-classification-wrap").find("#prov_class_1").removeClass("currently_displayed");l("#prov_class_0").show();l("#prov_class_1").hide()}}n();l("#providers-classification-wrap").delegate(".data-content-edit","click",function(){var e=l(this);var t=e.closest("td").find(".data-content p.email_text, .data-content p.name_text").text();e.closest("td").find(".data-content input").show();e.closest("td").find(".data-content input").val(t);e.closest("td").find(".data-content input").focus();e.closest("td").find(".data-content p").hide()});l(document).delegate("#export_buyer_providers_classification_data_btn","click",function(){var e=l(".currently_displayed").attr("id");l("#"+e).ProvclassificationtableToCSV()});l(".providers-classification-selector").select2({placeholder:"Select a classification",minimumResultsForSearch:-1,selectOnClose:true});l(".providers-classification-selector").val(null).trigger("change");l("#prov_class_0").find(".providers-classification-selector").change(function(){var e=l(this);var t=e.val();var n=e.find("option").attr("data-classification-name");var i=e.closest(".existing_item").find(".classification_contact_input").val();var r=e.closest(".existing_item").find(".classification_email_input").val();var a=e.closest(".existing_item").find("select.protool-owner-selector").val();var o=e.closest(".existing_item").find(".classification_prov").attr("data-prov-id");var s=e.closest(".existing_item").find(".entitled_users").attr("data-number-entitled-users");l.request("protoolProvidersClassification::onSelectAssignProviderToAClassification",{data:{classification_id:t,classification_name:n,provider_id:o,contact_name:i,contact_email:r,owner:a,entitled_users:s},complete:function(e){location.reload()}})});l("#prov_class_1").delegate("#existing-item-producer","click",function(){var e=l(this);var t=e.attr("data-provider-id");var n=l("#protools-providers-classification li.active").attr("data-classification-id");l.request("protoolProvidersClassification::onClickDeleteOneProviderBelongingToOneClassification",{data:{classification_id:n,provider_id:t},complete:function(e){location.reload()}})});l("#prov_class_0").find(".protool-owner-selector").select2({minimumResultsForSearch:-1,selectOnClose:true});var i=parseInt(l("#protools-providers-classification li").attr("data-number-of-categories"),10);l("#providers-classification-wrap").delegate(".add_prov_class_btn","click",function(){var e=l.now();var t=e.toString().substring(2,10);var n=l(this);i+=1;l("#protools-providers-classification").prepend("<li class='new_prov_class_name' id='prov_class_header1' style='width: 260px;'><input type='text' size='30' class='prov_class_name' data-uniq-id='"+t+"' name='prov_class_name'/></li>");l("#protools-providers-classification li").first().addClass("active");l("#protools-providers-classification li").not(":first").removeClass("active");l("#protools-providers-classification li.new_prov_class_name.active").find(".prov_class_name").focus();l("#prov_class_0").hide();l("#prov_class_1").show();r();l(".delete_prov_class_btn").show();l(".add_provider_row").hide();if(i>4){l("#add_prov_class_btn").attr("disabled","true");l("#add_prov_class_btn").css("display","none")}});l("#providers-classification-wrap").delegate("#protools-providers-classification li","click",function(){var e=l(this);e.addClass("active");l("#protools-providers-classification li").not(this).removeClass("active");if(l("#prov_class_header0").hasClass("active")){l(".delete_prov_class_btn").hide();l("#prov_class_0").show();l("#prov_class_0").addClass("currently_displayed");l("#prov_class_1").hide();l("#prov_class_1").removeClass("currently_displayed")}else{l(".delete_prov_class_btn").show();l("#prov_class_0").hide();l("#prov_class_0").removeClass("currently_displayed");l("#prov_class_1").show();l("#prov_class_1").addClass("currently_displayed")}l(".add_provider_row").hide()});l("#providers-classification-wrap").delegate("#prov_class_header1","click",function(){r()});function r(){var e=l("#protools-providers-classification li.active").attr("data-classification-id");l.request("protoolProvidersClassification::onAjaxGetBuyerClassificationInfos",{data:{classification_id:e},complete:function(e){}})}l("#providers-classification-wrap").delegate(".add_prov_line_btn","click",function(){var e=l(this);l("#add_provider_row").show();l(".registered_classifications .no_providers_assigned").hide()});l("#add_provider_row").find(".protool-provider-selector").change(function(){var e=l(this);var t=l("#protools-providers-classification li.active").attr("data-classification-id");var n=l("#protools-providers-classification li.active").attr("data-classification-name");var i=e.closest("#add_provider_row").find(".classification_contact_input").val();var r=e.closest("#add_provider_row").find(".classification_email_input").val();var a=e.closest("#add_provider_row").find("select.protool-owner-selector").val();var o=e.val();var s=e.closest("#add_provider_row").find(".protool-provider-selector option").attr("data-number-users-entitled");l.request("protoolProvidersClassification::onSelectAssignProviderToAClassification",{data:{classification_id:t,classification_name:n,provider_id:o,contact_name:i,contact_email:r,owner:a,entitled_users:s},complete:function(e){location.reload()}})});l("#prov_class_0").find(".classification_email_input").on("keydown focusout",function(e){var t=l(this);var n=t.val();var i=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;if(e.keyCode===13||e.type==="focusout"){e.preventDefault();if(n.match(i)){t.closest(".classification_email").find(".data-content .email_text").show();t.closest(".classification_email").find(".data-content .email_text").text(t.val());t.hide();t.closest(".classification_email").find(".email_error_msg").hide();t.removeClass("email_error_input")}else{t.addClass("email_error_input");t.closest(".classification_email").find(".data-content .email_text").hide();t.closest(".classification_email").find(".email_error_msg").show();t.closest(".classification_email").find(".email_error_msg").text("Please enter a valid email address")}}else if(e.keyCode===27){if(t.closest(".classification_email").find(".data-content .email_text").text()==""){t.val(null)}else{t.val(t.closest(".classification_email").find(".data-content .email_text").text())}t.closest(".classification_email").find(".data-content .email_text").show();t.hide();t.closest(".classification_email").find(".email_error_msg").hide();t.removeClass("email_error_input")}});l("#prov_class_0").find(".classification_contact_input").on("keydown focusout",function(e){var t=l(this);if(e.keyCode===13||e.type==="focusout"){t.closest(".classification_contact").find(".data-content .name_text").show();t.closest(".classification_contact").find(".data-content .name_text").text(t.val());t.hide()}else if(e.keyCode===27){t.closest(".classification_contact").find(".data-content .name_text").show();if(t.closest(".classification_contact").find(".data-content .name_text").text()==""){t.val(null)}else{t.val(t.closest(".classification_contact").find(".data-content .name_text").text())}t.hide()}});l("#prov_class_1").delegate(".registered_classification_contact_input","keydown focusout",function(e){var t=l(this);var n=t.val();var i=l("#protools-providers-classification li.active").attr("data-classification-id");var r=t.closest(".registered_classifications").find("#existing-item-producer").attr("data-provider-id");if(e.keyCode===13||e.type==="focusout"){l.request("protoolProvidersClassification::onKeypressModifyContactNameForAProvider",{data:{contact_name:n,classification_id:i,provider_id:r},complete:function(e){t.closest(".classification_contact").find(".data-content .name_text").show();t.closest(".classification_contact").find(".data-content .name_text").text(t.val());t.hide()}})}if(e.keyCode===27){t.closest(".classification_contact").find(".data-content .name_text").show();if(t.closest(".classification_contact").find(".data-content .name_text").text()==""){t.val(null)}else{t.val(t.closest(".classification_contact").find(".data-content .name_text").text())}t.hide()}});l("#prov_class_1").delegate(".registered_classification_email_input","keydown focusout",function(e){var t=l(this);var n=t.val();var i=l("#protools-providers-classification li.active").attr("data-classification-id");var r=t.closest(".registered_classifications").find("#existing-item-producer").attr("data-provider-id");var a=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;if(e.keyCode===13||e.type==="focusout"){e.preventDefault();if(t.val().match(a)){l.request("protoolProvidersClassification::onKeypressModifyContactEmailForAProvider",{data:{contact_email:n,classification_id:i,provider_id:r},complete:function(e){t.closest(".classification_email").find(".data-content .email_text").show();t.closest(".classification_email").find(".data-content .email_text").text(t.val());t.hide();t.closest(".classification_email").find(".email_error_msg").hide();t.removeClass("email_error_input")}})}else{t.addClass("email_error_input");t.closest(".classification_email").find(".email_error_msg").show();t.closest(".classification_email").find(".data-content .email_text").hide();t.closest(".classification_email").find(".email_error_msg").show();t.closest(".classification_email").find(".email_error_msg").text("Please enter a valid email address")}}else if(e.keyCode===27){if(t.closest(".classification_email").find(".data-content .email_text").text()==""){t.val(null)}else{t.val(t.closest(".classification_email").find(".data-content .email_text").text())}t.closest(".classification_email").find(".data-content .email_text").show();t.hide();t.closest(".classification_email").find(".email_error_msg").hide();t.removeClass("email_error_input")}});l("#prov_class_1").delegate("#data-content-owner","click",function(){var r=l(this);var a=r.closest("td.classification_owner").find(".data-content .protool-owner-selector");a.show();a.select2({minimumResultsForSearch:-1,selectOnClose:true});a.change(function(){var e=a.val();var t=r.closest(".classification_owner").find(".classification_owner_option:selected").attr("data-owner-infos");var n=l("#protools-providers-classification li.active").attr("data-classification-id");var i=r.closest(".registered_classifications").find("#existing-item-producer").attr("data-provider-id");l.request("protoolProvidersClassification::onSelectChangeOwnerForAProvider",{data:{owner:e,classification_id:n,provider_id:i},complete:function(e){r.closest(".classification_owner").find("p").html(t);r.closest(".classification_owner").find("p").show();r.closest(".classification_owner").find(".select2-container").hide();a.hide()}})})});l("#add_provider_row").find(".classification_contact_input").on("keydown focusout",function(e){var t=l(this);if(e.keyCode===13||e.type==="focusout"){t.closest(".classification_contact").find(".data-content .name_text").show();t.closest(".classification_contact").find(".data-content .name_text").text(t.val());t.hide()}else if(e.keyCode===27){if(t.closest(".classification_contact").find(".data-content .name_text").text()==""){t.val(null)}else{t.val(t.closest(".classification_contact").find(".data-content .name_text").text())}t.closest(".classification_contact").find(".data-content .name_text").show();t.hide()}});l("#add_provider_row").find(".classification_email_input").on("keydown focusout",function(e){var t=l(this);var n=t.val();var i=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;if(e.keyCode===13||e.type==="focusout"){if(n.match(i)){t.closest(".classification_email").find(".data-content .email_text").show();t.closest(".classification_email").find(".data-content .email_text").html(t.val());t.hide();t.closest(".classification_email").find(".email_error_msg").hide();t.removeClass("email_error_input")}else{t.addClass("email_error_input");t.closest(".classification_email").find(".data-content .email_text").hide();t.closest(".classification_email").find(".email_error_msg").show();t.closest(".classification_email").find(".email_error_msg").text("Please enter a valid email address")}}else if(e.keyCode===27){if(t.closest(".classification_email").find(".data-content .email_text").text()==""){t.val(null)}else{t.val(t.closest(".classification_email").find(".data-content .email_text").text())}t.closest(".classification_email").find(".data-content .email_text").show();t.hide();t.closest(".classification_email").find(".data-content .email_error_msg").hide();t.removeClass("email_error_input")}});l(".protool-provider-selector").select2({placeholder:"Select a provider",selectOnClose:true});l("#add_provider_row").find(".protool-owner-selector").select2({minimumResultsForSearch:-1,selectOnClose:true});l(".delete_prov_class_btn").click(function(){var e=l("#protools-providers-classification li.active");var t=e.attr("data-classification-id");l.request("protoolProvidersClassification::onClickDeleteClassification",{data:{class_id:t},complete:function(e){location.reload()}})});l("body").on("DOMSubtreeModified","#protools-providers-classification",function(){l(".new_prov_class_name").click(function(){var e=l(this);e.find(".prov_class_name").focus()});l("#protools-providers-classification").find("#prov_class_1").show();l("#protools-providers-classification li").click(function(){var e=l(this);e.addClass("active");l("#protools-providers-classification li").not(this).removeClass("active");l("#prov_class_1").show();l(".delete_prov_class_btn").show();l("#prov_class_0").hide()});l("#prov_class_header0").click(function(){l("#prov_class_0").show();l("#prov_class_1").hide();l(".delete_prov_class_btn").hide()});l("#prov_class_header1").click(function(){l("#prov_class_1").show();l("#prov_class_0").hide();l(".delete_prov_class_btn").show()});l("#protools-providers-classification").find(".prov_class_name").on("keydown focusout",function(e){var t=l(this);var n=t.val();var i=t.attr("data-uniq-id");var r=/^[A-Za-z0-9()&. _-]{1,30}$/;if(e.keyCode===13||e.type==="focusout"){e.preventDefault();if(n.match(r)){l.request("protoolProvidersClassification::onClickRegisterNewProviderClassificationName",{data:{class_id:i,class_name:n},complete:function(e){t.closest(".new_prov_class_name").append('<h2 class="providers_class_section_title">'+t.val()+"</h2>");t.closest(".new_prov_class_name").css("width","auto");t.hide();setTimeout(function(){location.reload()},100)}})}else{t.addClass("title_error_input")}}});l("#prov_class_1").find("select.protool-provider-selector").change(function(){var e=l(this);var t=l("#protools-providers-classification li.active").attr("data-classification-id");var n=l("#protools-providers-classification li.active").attr("data-classification-name");var i=e.closest(".existing_item").find(".classification_contact_input").val();var r=e.closest(".existing_item").find(".classification_email_input").val();var a=e.closest(".existing_item").find("select.protool-owner-selector").val();var o=e.val();if(!e.hasClass("disabled")){e.addClass("disabled");l.request("protoolProvidersClassification::onSelectAssignProviderToAClassification",{data:{classification_id:t,classification_name:n,provider_id:o,contact_name:i,contact_email:r,owner:a},complete:function(e){location.reload()}});e.removeClass("disabled")}});l(".add_prov_line_btn").click(function(){var e=l(this);l("#add_provider").show();l(".registered_classifications .no_providers_assigned").hide()})});l(document).delegate(".intreportdeleteicon","click",function(){var e=l(this);l("#internal_report_list_page > tbody  > tr").each(function(e,t){if(l("tr.remove_report_row").length!==0){l("#internal_report_list_page > tbody  > tr").removeClass("remove_report_row");l(".popup_line").css("display","none")}});e.closest("tr").addClass("remove_report_row");var t=e.position();var n=e.attr("data-item-delete");l(".popup_line").css("display","block");l(".popup_line").css({top:t.top+23});l(".delete_popup_line").attr("report-item-delete",n)});l(document).delegate(".delete_popup_line","click",function(){var e=l(this);var t=e.attr("report-item-delete");var n='<div class="white-popup white-popup-register"><h4>Delete Report</h4><p style="text-align: center;">Are you sure you want to permanently delete this Report?</p><div class="new-popup-style-simple-buttons"><a class="btn btn-submit-blue cancel_report_delete">No</a><a href="javascript:void(0)" class="btn brn-submit-blue process_report_delete">Yes</a></div></div>';l.magnificPopup.open({items:{src:n},type:"inline",preloader:false,closeOnBgClick:false,enableEscapeKey:false,showCloseBtn:false,mainClass:"new-popup-style-simple"},0);l(".cancel_report_delete").click(function(){l.magnificPopup.close();l(".popup_line").css("display","none");l("#internal_report_list_page > tbody  > tr").each(function(e,t){if(l("tr.remove_report_row").length!==0){l("#internal_report_list_page > tbody  > tr").removeClass("remove_report_row");l(".popup_line").css("display","none")}})});l(".process_report_delete").click(function(){l(".popup_line").css("display","none");l("#internal_report_list_page > tbody  > tr").each(function(e,t){if(l("tr.remove_report_row").length!==0){l("#internal_report_list_page > tbody  > tr").removeClass("remove_report_row");l(".popup_line").css("display","none")}});l.request("protoolsInternalReports::onDeleteReport",{data:{id:t},complete:function(e){location.reload()}});l.magnificPopup.close()})});l(document).delegate(".cancel_popup_line","click",function(){l(".popup_line").css("display","none");l("#internal_report_list_page > tbody  > tr").each(function(e,t){if(l("tr.remove_report_row").length!==0){l("#internal_report_list_page > tbody  > tr").removeClass("remove_report_row");l(".popup_line").css("display","none")}})});l(document).delegate(".custom_alert_btn","click",function(){var e="account::onRenderEmailPackage";var t="01";l.request(e,{data:{page_id:t},complete:function(e){var t=e.responseJSON.response_html;l.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);l("#all_interest_for_email_alerts").find(".all_interest_for_email_alerts").select2({placeholder:"Select interest",minimumResultsForSearch:-1,maximumSelectionLength:10});l("#email_frequency_frequency").find(".email_frequency_frequency").select2({minimumResultsForSearch:-1});l("#email_frequency_day").find(".email_frequency_day").select2({minimumResultsForSearch:-1});l("#email_frequency_time").find(".email_frequency_time").select2({minimumResultsForSearch:-1})}})});l(document).delegate(".email_alert_package_id","click",function(){var e=l(this);var t=e.attr("data-id");l.request("account::onRenderEmailPackage",{data:{eap_id:t},complete:function(e){var t=e.responseJSON.response_html;l.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);l("#all_interest_for_email_alerts").find(".all_interest_for_email_alerts").select2({placeholder:"Select interest",minimumResultsForSearch:-1,maximumSelectionLength:10});l("#email_frequency_frequency").find(".email_frequency_frequency").select2({minimumResultsForSearch:-1});l("#email_frequency_day").find(".email_frequency_day").select2({minimumResultsForSearch:-1});l("#email_frequency_time").find(".email_frequency_time").select2({minimumResultsForSearch:-1});var n=l('select[name="frequency"] option:selected').val();if(n=="no-email"||n=="every-minute"){l("select.email_frequency_day").prop("disabled",true);l("select.email_frequency_time").prop("disabled",true)}else if(n=="daily"){l("select.email_frequency_time").prop("disabled",false);l("select.email_frequency_day").prop("disabled",true)}else{l("select.email_frequency_day").prop("disabled",false);l("select.email_frequency_time").prop("disabled",false)}}})});l(document).delegate('select[name="all_interest[]"]',"change",function(e){var t=l(".select2-selection__choice").length;l("#feedSelectedItem").css("display","block");l("#feedSelectedItem").css("float","right");l("#feedSelectedItem").text("("+t+"/10)")});l(document).delegate('select[name="all_interest[]"]',"select2:selecting",function(e){var n=e.params.args.data.id;var t=l("select.all_interest_for_email_alerts").find("option[value="+n+"]").attr("date-filter");if(t==1){l("#email_alert_warning_box").css("display","block");l("#emailalertpackage").css("opacity","0.7");l("#emailalertpackage").children().bind("click",function(){return false});l("#email_alert_warning_box .btn_continue").click(function(){l("#email_alert_warning_box").css("display","none");l("#emailalertpackage").css("opacity","unset");l("#emailalertpackage").children().bind("click",function(){return true});l.request("account::onRemoveDateRangefilter",{data:{interest_id:n},complete:function(e){}})});l("#email_alert_warning_box .btn_cancel").click(function(){l("#email_alert_warning_box").css("display","none");l("#emailalertpackage").css("opacity","unset");l("#emailalertpackage").children().bind("click",function(){return true});var e=n;var t=l('select.all_interest_for_email_alerts option[value="'+e+'"]');t.prop("selected",false);l("select.all_interest_for_email_alerts").trigger("change.select2")})}});l(document).delegate(".setup_alert_popup","click",function(e){l("form.email_alert_package").validator("validate");var t=l('select[name="all_interest[]"]').val();var n=l('input[name="title"]').val();if(t==""&&typeof t==="undefined"||t==""||t==null){l("#rp_analysts.form-required-error").css("display","block")}if(n==""&&typeof n==="undefined"||n==""||n==null){l("#ep_name.form-required-error").css("display","block")}});l(document).delegate('select[name="frequency"]',"select2:selecting",function(e){var t=e.params.args.data.id;if(t=="no-email"||t=="every-minute"){l("select.email_frequency_day").prop("disabled",true);l("select.email_frequency_time").prop("disabled",true)}else if(t=="daily"){l("select.email_frequency_time").prop("disabled",false);l("select.email_frequency_day").prop("disabled",true)}else{l("select.email_frequency_day").prop("disabled",false);l("select.email_frequency_time").prop("disabled",false)}});l(document).delegate(".new_eap_del_btn","click",function(e){l("#email_alert_delete_box").css("display","block");l("#del_btn").css("display","none");l("#emailalertpackage").css("opacity","0.7");l("#emailalertpackage").children().bind("click",function(){return false})});l(document).delegate(".eap_del_no","click",function(e){l("#email_alert_delete_box").css("display","none");l("#emailalertpackage").css("opacity","unset");l("#emailalertpackage").children().bind("click",function(){return true})});l(document).delegate(".eap_del_yes","click",function(e){var t=l(this).attr("data-package-id");l.request("account::onDeleteAlertPackage",{data:{eap_id:t},complete:function(e){location.reload()}})});l(document).delegate("#email_update_alert_tabs","click",function(e){var t=l("#email_update_alert_tabs .active").attr("id");if(t=="provider"||t=="interest"){l(".custom_alert_btn").css("display","none")}else{l(".custom_alert_btn").css("display","block")}});l(document).delegate(".disable_all_alert_btn","click",function(){var e=l(this);var t=e.attr("data-item-state");l.request("account::onUpdateAllEmailNotifactions",{data:{current_state:t},complete:function(e){location.reload()}})});l("#export_buyer_users").click(function(){l(".exportBuyerUsers").tableToCSV()});l(window).on("load",function(){var e=window.location.pathname;if(e=="/buyer-tools/add-entitlement-request"){if(l("#pro_unlimited_date").is(":checked")){l("#pro_entitlement_request_end_date").prop("readonly",true);l("#pro_entitlement_request_end_date").val("");l("#pro_unlimited_date").val(1);l("#pro_entitlement_request_end_date").addClass("ent-input-disabled");l("#pro_entitlement_request_end_date").datepicker("option","disabled",true)}else{l("#pro_entitlement_request_end_date").prop("readonly",false);l("#pro_entitlement_request_end_date").removeClass("ent-input-disabled");l("#pro_unlimited_date").val(0);l("#pro_entitlement_request_end_date").datepicker("option","disabled",false)}}});l(document).delegate("#pro_unlimited_date","change",function(){l("input:checkbox").prop("checked",l(this).prop("checked"));if(l(this).prop("checked")==true){l("#pro_entitlement_request_end_date").prop("readonly",true);l("#pro_entitlement_request_end_date").val("");l("#pro_unlimited_date").val(1);l("#pro_entitlement_request_end_date").addClass("ent-input-disabled");l("#pro_entitlement_request_end_date").datepicker("option","disabled",true)}else{l("#pro_entitlement_request_end_date").prop("readonly",false);l("#pro_entitlement_request_end_date").removeClass("ent-input-disabled");l("#pro_unlimited_date").val(0);l("#pro_entitlement_request_end_date").datepicker("option","disabled",false)}});l(document).delegate(".update_user_organization_data","change keyup",function(){if(l(".update_user_organization_data").length){l("form.update_user_organization_data").validator("validate");l(".save-cancel-change").css("display","flex")}});l(document).delegate("#buyer_entitlement_template","click",function(e){var i="buyer_entitlement_template";var r="Buyer_Entitlement_Template.csv";var t="protoolsEntitlements::onAjaxRequestDownloadSampleFiles";l.request(t,{data:{data:i},complete:function(e){if(i=="mass_excel"){var t="data:application/vnd.ms-excel,"+encodeURIComponent(e.responseText)}else{var t="data:text/json;charset=utf-8,"+encodeURIComponent(e.responseText)}var n=document.createElement("a");n.setAttribute("href",t);n.setAttribute("download",r);document.body.appendChild(n);n.click();n.remove()}})});l(document).delegate("#user_buyer_template_csv","click",function(e){var i="user_template";var r="User_Template.csv";var t="proaccount::onAjaxRequestDownloadSampleFiles";l.request(t,{data:{data:i},complete:function(e){if(i=="mass_excel"){var t="data:application/vnd.ms-excel,"+encodeURIComponent(e.responseText)}else{var t="data:text/json;charset=utf-8,"+encodeURIComponent(e.responseText)}var n=document.createElement("a");n.setAttribute("href",t);n.setAttribute("download",r);document.body.appendChild(n);n.click();n.remove()}})})})(jQuery);(function(l){l(document).ready(function(){if(screen.width<=1600||screen.width>=1550){l("#dashboard-content .standard_desktop_navigation .wh-nav .site-main-menu .mainnav #headernotification").css({right:"500px"})}l(window).resize(function(){if(l(window).width()>=993||l(window).width()>=1441){l("#inputSearchGroup").click(function(){l("#inputSearchGroup").qtip("disable");l(".select2-container span.select2-dropdown").css({width:"165px"})})}if(l(window).width()>=993||screen.width<=1100){l(".wh-nav .search-group form.elastic-search").css({"max-width":"50%"});var e=window.location.pathname;if(e=="/dashboard-setup-start"){l("#dashboard-content .standard_desktop_navigation .wh-nav .nav-group .wh-profile .actions").css({"margin-right":"20px"})}else{l("#dashboard-content .standard_desktop_navigation .wh-nav .nav-group .wh-profile .actions").css({"margin-right":"-71px !important"})}if(l("#menulist4").hasClass("ptnewspaper")&&l("#menulist3").hasClass("bttoolboxall")){l("#headernotification").css({right:"245px"})}else if(l("#headernotification").hasClass("headernotificationnew")){l("#headernotification").css({right:"355px"})}else if(l("#menulist4").hasClass("ptnewspaper")||l("#menulist3").hasClass("bttoolbox")){l("#headernotification").css({right:"381px"})}else{l("#headernotification").css({right:"465px"})}}if(l(window).width()>=1101||l(window).width()>=1220){var e=window.location.pathname;if(l(e=="/provider-tools/publication-manager/reports")){l("#actionddmenu").css({margin:"0 -75px 0 0 !important"})}}}).resize()});l(document).delegate(".show_allocation_credits_portfolio_items_trigger","change",function(){var e=l(this).closest("form").hasClass("purchase-popup-form");var t=l(this).closest("form").hasClass("purchase-page-form");l("#allocation_credits").find("div.errors").html("");var n=l(this);var i=n.find(":selected");var r=i.data("type");var a=[];var o=[];if(l("input.selected_items").length){l("input.selected_items").each(function(){a.push(l(this).val());if(l(this).attr("data-inv_str-id")){o.push(l(this).data("inv_str-id"))}})}if(r=="investment_strategy"){a.push("is_"+l(this).val())}else{a.push("pf_"+l(this).val());if(i.attr("data-inv_str-id")){o.push(i.data("inv_str-id"))}}var s="";if(e){s="paymentPopupData::onAddPriceItemToAllocationPopup"}else if(t){s="purchasePage::onAddPriceItemToAllocationPopup"}else{s="reportDetail::onAddPriceItemToAllocationPopup"}if(i.val()!=""){l.request(s,{data:{item_id:i.val(),item_name:i.data("name"),free_credits:i.data("free_credits"),type:r,selected_items:a,used_inv_strategies_on_portfolio:o},complete:function(e){if(e.responseJSON.status=="01"){l("#all_selected_items").append(e.responseJSON.item_for_append);l("#select_available-options-wrapper").find(".enable-select2").select2({minimumResultsForSearch:7});if(l("input.selected_items").length==1){l(".selected_items_percentage_values").val(100)}else if(l("input.selected_items").length==2){l(".selected_items_percentage_values").val(50)}}}})}});l(document).delegate(".selected_items_percentage_values","change",function(e){e.preventDefault();if(l(".selected_items_percentage_values").length==2){var t=l(this);t.addClass("current_item");l(".selected_items_percentage_values:not('.current_item')").val(100-t.val());t.removeClass("current_item")}});function r(e){var t=l("body").data("assetName");l.magnificPopup.open({items:{src:'<div class="white-popup white-popup-register text-center">'+'<img src="/themes/pukkaresearch/assets/images/'+t+'/logo.png"/>'+"<br /><hr /><br />"+e+"<br /><br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}l.fn.showMagnificPopupWithCallback=function(e,t){l.magnificPopup.close();l.magnificPopup.open({items:{src:'<div class="white-popup white-popup-register text-center">'+"<br /><br />"+e+"<br /><br />"+'<div style="text-align: right; margin-top: 25px;"><a href="javascript:void(0)" class="simple_close_magnific_popup block btn-payment-nav">OK</a><br /></div></div>'},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple",callbacks:{close:function(){if(t=="reload"){location.reload()}}}},0)};l(document).on("click",".simple_close_magnific_popup",function(){l.magnificPopup.close()});l.fn.showMagnificSavePopupWithCallback=function(e,t,n){var i=l("body").data("assetName");l.magnificPopup.open({items:{src:'<div class="white-popup white-popup-register text-center">'+'<div class="homepage-popup-headline" style="width: 100%; text-align: center;">'+'   <img src="/themes/pukkaresearch/assets/images/'+i+'/logo.png"/>'+"</div>"+'<div class="row">'+'   <div class="credit-content-wrapper">'+'       <p class="modal-heading"><span>'+e+"</span></p>"+'       <p style="margin: 20px 0 30px;">'+t+"</p>"+'       <input type="text" class="form-control entitlement_type_name_popup" placeholder="" style="margin-bottom:25px;">'+"       <div>"+'           <a href="javascript:void(0)" class="btn btn-info save_close_magnific_popup" style="width: 45%; font-size: 15px; margin-right: 40px;">Save</a>'+'           <a href="javascript:void(0)" class="" onClick="$.magnificPopup.close()"; style="color: gray; font-weight: bold; font-size: 15px;" >Cancel</a>'+"       </div>"+"   </div>"+"</div>"+"</div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){n()}}},0)};l(document).on("click",".save_close_magnific_popup",function(){var e=l(document).find(".entitlement_type_name_popup").val();if(e){l(document).find(".new_entitlement_type_name").val(e)}l.magnificPopup.close()});if(l(".show_choose_budget_period_popup").length){l.magnificPopup.open({items:{src:"#choose_budget_period_popup"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}l("#budget_period_selector").select2({minimumResultsForSearch:-1,selectOnClose:true});l("#chosen_currency_selector").select2({minimumResultsForSearch:-1,selectOnClose:true});l(document).on("click","#save_chosen_budget_period",function(e){e.preventDefault();l("#choose_budget_period_popup").find(".errors").html("");var t=l("select.chosen_budget_period").val();if(t==""){l("#choose_budget_period_popup").find(".errors").html("<p>Please select budget period</p>")}else{l.request("protoolsSidebar::onSaveChosenBudgetPeriod",{data:{chosen_budget_period:t},complete:function(e){if(e.responseJSON.status=="01"){l.magnificPopup.close();location.reload()}},error:function(e){}})}return false});l(document).on("click","#organisation_layer_1",function(){l("#layerName").text("investment_strategy");l("#result_layer").text("results_layer1")});l(document).on("click","#organisation_layer_2",function(){l("#layerName").text("portfolio");l("#result_layer").text("results_layer2")});l(document).on("change",".pro_tools_budget_periods",function(){var e=l(this);var t=e.val();var n=l("#layerName").text();var i=l("#result_layer").text();var r=l(this).data("page-type");var a="";if(r=="true-spending"){a="spending::onSearch"}else if(r=="true-analytics-user"){a="protoolsAnalyticOverview::onSearch"}else if(r=="true-analytics"){a="protoolsAnalytic::onSearch"}else if(r=="true-analytics-provider"){a="protoolsResearchProvider::onSearch"}else if(r=="true-research-analysts-provider"){a="protoolsResearchProviderAnalysts::onSearch"}else if(r=="true-analytics-investment-strategy"){a="managementAssetsAnalytic::onSearch"}else if(r=="true-analytics-report"){a="protoolsAnalyticReport::onSearch"}else if(r=="true-analytics-activity"){a="protoolsAnalyticActivity::onSearch"}if(a!=""){l.request(a,{data:{date_range:t},complete:function(e){if(r=="true-research-analysts-provider"){if(l("#tblProviderAnalyticsOverview").length){l(".export_analysts_btn").show()}else{l(".export_analysts_btn").hide()}}l(".qtip-default.qtip_on_table_th").remove();l.fn.renderQtipTooltips()}})}});if(l('#layout-content[data-page-title="Report Detail"]').length){if(l(".extracted-report-content").length&&l("#report-detail-page-id").length){var e=l("#report-detail-page-id").data("user-id");var t=l("#report-detail-page-id").data("report-id");window.onbeforeunload=function(){l.ajax({type:"GET",async:false,url:"/update-report-reading-time/"+t+"/"+e})}}}l('#layout-content[data-page-title="Report Detail"] a:not([href*="javascript:void(0)"], .disable_report_rating)').click(function(){if(l(".extracted-report-content.show_rating_popup").length){var e=l(this);l.fn.createCookie("redirect_after_rating",e.attr("href"),1);l.magnificPopup.open({items:{src:"#reports_rating"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);return false}});l(".rating_wrapper .rating").click(function(){l(this).parent().attr("data-stars",l(this).data("rating"));l(".star_rating_input").val(l(this).data("rating"))});l(document).on("click",".save_report_rating",function(e){e.preventDefault();var t=l(this).parents(".protools-reports_rating-form");l("div.errors").empty();if(l(t).find(".star_rating_input").val()==""){l(".protools-reports_rating-form .errors").html("Please rate report!");return false}var n=l(t).serializeArray();l.request("reportDetail::onSaveReportRaring",{data:n,complete:function(e){if(e.responseJSON.status=="01"){l.magnificPopup.close();var t=l.fn.readCookie("redirect_after_rating");if(t!=null){l.fn.createCookie("redirect_after_rating","",-1);window.location=t}}}});return false});l("#add_spending_btn").click(function(){l("#add-spending-modal").find("div.errors").html("");var e="";var t=[];var n=[];l.request("creditManagement::onAddPriceItemToExternalAllocationPopup",{data:{type:e,selected_items:t,used_inv_strategies_on_portfolio:n},complete:function(e){if(e.responseJSON.status=="01"){l.magnificPopup.open({items:{src:"#add-spending-modal"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}}});return false});l(document).delegate(".show_external_spending_allocation_credits_trigger","change",function(){l("#add-spending-modal").find("div.errors").html("");var e=l(this);var t=e.find(":selected");var n=t.data("type");var i="";if(l('input[name="external_spending_id"]').length){i=l('input[name="external_spending_id"]').val()}var r=[];var a=[];if(l("input.selected_items").length){l("input.selected_items").each(function(){r.push(l(this).val());if(l(this).attr("data-inv_str-id")){a.push(l(this).data("inv_str-id"))}})}if(n=="investment_strategy"){r.push("is_"+l(this).val())}else if(n=="base_portfolio"||n=="child_portfolio"){r.push("pf_"+l(this).val());if(t.attr("data-inv_str-id")){a.push(t.data("inv_str-id"))}}if(t.val()!=""){l.request("creditManagement::onAddPriceItemToExternalAllocationPopup",{data:{item_id:t.val(),item_name:t.data("name"),external_spending_id:i,type:n,selected_items:r,used_inv_strategies_on_portfolio:a},complete:function(e){if(e.responseJSON.status=="01"){l("#external_spending_all_selected_items").append(e.responseJSON.item_for_append);if(l("input.selected_items").length==1){l(".selected_items_percentage_values").val(100)}else if(l("input.selected_items").length==2){l(".selected_items_percentage_values").val(50)}l(".qtip.qtip-default").remove();l.fn.renderQtipTooltips();if(l("#save_external_spending_method").length){l("#save_external_spending_method").removeClass("disabled")}}}})}});l(document).delegate(".delete_item_wrapper","click",function(e){var t=l(this).closest("form").hasClass("protools-external-spending-form");var n=l(this).closest("form").hasClass("purchase-page-form");var i=l(this).closest("form").hasClass("purchase-popup-form");l(this).parents(".allocation_credits_portfolio_item_group").remove();var r="";if(i){r="paymentPopupData::onAddPriceItemToAllocationPopup";a(r)}else if(n){r="purchasePage::onAddPriceItemToAllocationPopup";a(r)}else if(t){r="creditManagement::onAddPriceItemToExternalAllocationPopup";a(r)}else{r="reportDetail::onAddPriceItemToAllocationPopup";a(r)}});function a(e){var t=[];var n=[];if(l("input.selected_items").length){l("input.selected_items").each(function(){t.push(l(this).val());if(l(this).attr("data-inv_str-id")){n.push(l(this).data("inv_str-id"))}})}l.request(e,{data:{type:"",selected_items:t,used_inv_strategies_on_portfolio:n},complete:function(e){if(e.responseJSON.status=="01"){if(l("input.selected_items").length==1){l(".selected_items_percentage_values").val(100)}else if(l("input.selected_items").length==2){l(".selected_items_percentage_values").val(50)}l(".qtip.qtip-default").remove();l.fn.renderQtipTooltips();l("#select_available-options-wrapper").find(".enable-select2").select2({minimumResultsForSearch:7})}}})}function n(){l(".free-report-login-popup").click(function(){var e=l(this);var t=e.data("user-id");var n=e.data("report-url");if(t==""){l("body").trigger("openRegisterPopup")}else{window.location.href=n}});setTimeout(function(){n()},1e3)}setTimeout(function(){n()},1e3);function i(){l(".js-show-contact-provider-popup").click(function(){var e=l(this);var t=e.data("user-id");if(t==""){l("body").trigger("openRegisterPopup",[t])}else{var n="";if(l(this).data("page-type")=="providerListing"){n="providerListing::onShowContactProviderPopup"}else if(l(this).data("page-type")=="reportDetail"){n="reportDetail::onShowContactProviderPopup"}else if(l(this).data("page-type")=="companyDetail"){n="providerDetail::onShowContactProviderPopup"}else{n="providerDetail::onShowContactProviderPopup"}l.request(n,{data:{provider_id:l(this).data("provider-id")},complete:function(e){if(e.responseJSON.status=="01"){var t=e.responseJSON.response_html;l.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}}})}});setTimeout(function(){i()},1e3)}setTimeout(function(){i()},1e3);l(document).delegate("#submit_contact-provider-popup","click",function(){l("form.contact-provider-popup-form .errors").html("");var t=true;l("form.contact-provider-popup-form input.required").each(function(){if(l(this).val()==""){l(this).parent().find(".errors").html("This field is required.");t=false}else if(l(this).attr("type")=="email"){var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!e.test(l(this).val())){l(this).parent().find(".errors").html("This email is not valid.");t=false}}});if(l("form.contact-provider-popup-form textarea.required").val()==""){l("form.contact-provider-popup-form textarea.required").parent().find(".errors").html("This field is required.");t=false}if(t){var e="";if(l(this).data("page-type")=="providerListing"){e="providerListing::onSubmitContactProviderPopupForm"}else if(l(this).data("page-type")=="reportDetail"){e="reportDetail::onSubmitContactProviderPopupForm"}else{e="providerDetail::onSubmitContactProviderPopupForm"}var n=l("#contact-provider-popup .contact-provider-popup-form").serializeArray();n.push({name:"url_from",value:window.location.href});l.magnificPopup.close();l.request(e,{data:n,complete:function(e){if(e.responseJSON.status=="01"){r("<h3>Email is sent.</h3>")}}})}});l(".show-sign-up-pro-popup").click(function(){var e="reportSearch::onShowSignUpProPopup";if(l(this).data("page-type")=="companyDetail"){e="companyDetail::onShowSignUpProPopup"}if(e!=""){l.request(e,{complete:function(e){if(e.responseJSON.status=="01"){var t=e.responseJSON.response_html;l.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}}})}});l(document).delegate("#submit_professional-account-new-user-form","click",function(){if(l(this).hasClass("disabled")){return false}l("#submit_professional-account-new-user-form").addClass("disabled");var e=l.fn.validateProUserForms("form.professional-account-new-user-form");if(e){var t="reportSearch::onSubmitShowSignUpProPopup";if(l(this).data("page-type")=="companyDetail"){t="companyDetail::onSubmitShowSignUpProPopup"}var n=l("#professional-account-new-user .professional-account-new-user-form").serializeArray();n.push({name:"url_from",value:window.location.href});var i=l("body").data("assetName");l.magnificPopup.close();l.request(t,{data:n,complete:function(e){if(e.responseJSON.status=="01"){l.magnificPopup.open({items:{src:'<div class="white-popup white-popup-register text-center">'+'<img src="/themes/pukkaresearch/assets/images/'+i+'/logo.png"/>'+"<br /><hr /><br />"+'<h3>Your account has been created.</h3><h3 style="margin: -10px 0 45px;"><strong>You can start accessing research now.</strong></h3><p>To unlock all the <span style="color: #03A9F4; font-weight: bold;">Business Account</span> features, follow the instructions in the verification email you will receive shortly.</p>'+"<br /><br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){location.reload()}}},0)}else if(e.responseJSON.status=="00"&&e.responseJSON.errors!=""){r('<h3 style="text-align: left;">'+e.responseJSON.errors+"</h3>")}l("#submit_professional-account-new-user-form").removeClass("disabled")}})}else{l("#submit_professional-account-new-user-form").removeClass("disabled")}});l(document).delegate("#submit_professional-account-existing-user-form","click",function(){if(l(this).hasClass("disabled")){return false}l("#submit_professional-account-existing-user-form").addClass("disabled");var e=l.fn.validateProUserForms("form.professional-account-existing-user-form");if(e){var t="purchasePage::onSubmitSignUpForProForExistingUsersPopup";if(l(this).data("page-type")=="reportDetail"){t="reportDetail::onSubmitSignUpForProForExistingUsersPopup"}else if(l(this).data("page-type")=="providerDetail"){t="providerDetail::onSubmitSignUpForProForExistingUsersPopup"}else if(l(this).data("page-type")=="companyDetail"){t="companyDetail::onSubmitSignUpForProForExistingUsersPopup"}else if(l(this).data("page-type")=="dashboard"){t="dashboardReportSearch::onSubmitSignUpForProForExistingUsersPopup"}else if(l(this).data("page-type")=="reportSearch"){t="reportSearch::onSubmitSignUpForProForExistingUsersPopup"}var n=l("form.professional-account-existing-user-form").serializeArray();n.push({name:"url_from",value:window.location.href});var i=l("body").data("assetName");l.magnificPopup.close();l.request(t,{data:n,complete:function(e){if(e.responseJSON.status=="01"){l.magnificPopup.open({items:{src:'<div class="white-popup white-popup-register text-center">'+'<img src="/themes/pukkaresearch/assets/images/'+i+'/logo.png"/>'+"<br /><hr /><br />"+"<p>Please be patient, our administrators will respond to your request. </p>"+"<br /><br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){if(t=="purchasePage::onSubmitSignUpForProForExistingUsersPopup"){location.reload()}}}},0)}else if(e.responseJSON.status=="00"&&e.responseJSON.errors!=""){r('<h3 style="text-align: left;">'+e.responseJSON.errors+"</h3>")}l("#submit_professional-account-existing-user-form").removeClass("disabled")}})}else{l("#submit_professional-account-existing-user-form").removeClass("disabled")}});l(document).delegate(".resend-entitlement-email-btn","click",function(){var e=l(this);if(!e.hasClass("disabled")){e.addClass("disabled");l.request("protoolsEntitlements::onResendEntitlementEmail",{data:{id:e.data("id")},complete:function(e){}});l(this).remove()}});l(document).delegate(".show-sign-up-pro-popup-existing-users","click",function(){var e="";if(l(this).data("page-type")=="reportDetail"){e="reportDetail::onShowSignUpProPopupExistingUsers"}else if(l(this).data("page-type")=="providerDetail"){e="providerDetail::onShowSignUpProPopupExistingUsers"}else if(l(this).data("page-type")=="companyDetail"){e="companyDetail::onShowSignUpProPopupExistingUsers"}else if(l(this).data("page-type")=="dashboard"){e="dashboardReportSearch::onShowSignUpProPopupExistingUsers"}else if(l(this).data("page-type")=="reportSearch"){e="reportSearch::onShowSignUpProPopupExistingUsers"}else if(l(this).data("page-type")=="paymentPopupData"){e="paymentPopupData::onShowSignUpProPopupExistingUsers"}var t="";if(l(this).data("additional-text")){t=l(this).data("additional-text")}if(e!=""){l.request(e,{data:{additional_text:t},complete:function(e){if(e.responseJSON.status=="01"){var t=e.responseJSON.response_html;l.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}}})}});l.fn.validateProUserForms=function(e){l(e+" .errors").html("");var t=true;l(e+" input.required").each(function(){if(l(this).val()==""){l(this).parent().find(".errors").html("This field is required.");t=false}else if(l(this).attr("type")=="email"){var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!e.test(l(this).val())){l(this).parent().find(".errors").html("This email is not valid.");t=false}}else if(l(this).attr("type")=="password"&&l(this).val().length<6){l(this).parent().find(".errors").html("Min length is 6 characters.");t=false}});if(l(e+' input[name="password"]').length&&l(e+' input[name="password_confirmation"]').length&&l(e+' input[name="password"]').val()!=""&&l(e+' input[name="password_confirmation"]').val()!=""){if(l(e+' input[name="password"]').val()!=l(e+' input[name="password_confirmation"]').val()){l(e+' input[name="password"]').parent().find(".errors").html("These fields must be the same.");l(e+' input[name="password_confirmation"]').parent().find(".errors").html("These fields must be the same.");t=false}}return t};function o(e,t,n,i,r,a){if(t==true){l.request("reportDetail::onRecordTimeForReport",{data:{user_id:n,report_id:i,time:e,totalTime:r,requestCall:a},complete:function(e){}})}else{if(a==0||a==2){window.onbeforeunload=function(){l.request("reportDetail::onRecordTimeForReport",{data:{user_id:n,report_id:i,time:e,totalTime:r,requestCall:a},complete:function(e){}})}}}}function s(e,t,n,i,r,a){if(t==true){l.request("pressReleaseDetail::onRecordTimeForReport",{data:{user_id:n,report_id:i,time:e,totalTime:r,requestCall:a},complete:function(e){}})}else{if(a==0||a==2){window.onbeforeunload=function(){l.request("pressReleaseDetail::onRecordTimeForReport",{data:{user_id:n,report_id:i,time:e,totalTime:r,requestCall:a},complete:function(e){}})}}}}if(l('#layout-content[data-page-title="Report Detail"]').length){var c=l("#report-detail-page-id").attr("data-user-id");var d=l("#report-detail-page-id").attr("data-report-id");var u=120;var p=null;var f=0;var h=0;var m=0;var v=false;p=setInterval(function(){f++;h++;if(f>u){v=true;m=1;o(u,v,c,d,h,m);g()}else{m=2;o(h,v,c,d,h,m)}},1e3);function g(){clearInterval(p)}function _(){f=0}var y=["mousedown","mousemove","keydown","scroll","touchstart"];y.forEach(function(e){document.addEventListener(e,_,true)})}if(l('#layout-content[data-page-title="Report Detail - Press Release"]').length){var c=l("#report-detail-page-id").attr("data-user-id");var d=l("#report-detail-page-id").attr("data-report-id");var u=120;var p=null;var f=0;var h=0;var m=0;var v=false;p=setInterval(function(){f++;h++;if(f>u){v=true;m=1;s(u,v,c,d,h,m);g()}else{m=2;s(h,v,c,d,h,m)}},1e3);function g(){clearInterval(p)}function _(){f=0}var y=["mousedown","mousemove","keydown","scroll","touchstart"];y.forEach(function(e){document.addEventListener(e,_,true)})}if(l(".update_user_organization_data").length){l("form.update_user_organization_data").validator("validate")}})(jQuery);(function(A){var n=new Array;A(document).delegate(".learn-to-create","click",function(e){A(e.target).slideUp("fast");A(".popup-agreement-help-container").slideDown("fast")});A(document).delegate(".learn-to-create-close","click",function(e){A(".popup-agreement-help-container").slideUp("fast");A(".learn-to-create").slideDown("fast")});function s(e){var t=A(e.element).parent().data("tagstyle");var n=A(e.element).parent().prop("multiple");if(undefined===t){t="default"}var i=A('<span class="field-tag-a field-tag--'+t+(!n?" field-tag--single-choice-a":"")+'"><span></span></span>');if(!e.id){i=A('<span style="color: #A4B0BE"><span></span></span>')}i.find("span").text(e.text);return i}A(document).delegate("#create_agreement","click",function(e){A.request("providerAgreement::onRenderProviderAgreementPopupContent",{data:{calendarEventId:null,calendarEventType:null},complete:function(e){A.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);A(".agreement_asset_class_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_platform_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_corporate_access_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".cm_primary_sponsor_select2").select2({placeholder:"Select the Primary Sponsor",templateSelection:s});A(".cm_groups_select2").select2({placeholder:"Select a Group or Multiple Groups",templateSelection:s});A(".cm_notice_period").select2({placeholder:"Enter a period of time (month)",minimumResultsForSearch:-1,maximumSelectionLength:1,templateSelection:s});A(".cm_renwal_period").select2({placeholder:"Select the duration of notice period",maximumSelectionLength:1,minimumResultsForSearch:-1,templateSelection:s});A.fn.agreementBaseDateTimePicker()}})});A(function(){A.widget("custom.combobox",{_create:function(){this.wrapper=A("<span>").addClass("custom-combobox").insertAfter(this.element);this.element.hide();this._createAutocomplete();this._createShowAllButton()},_createAutocomplete:function(){var e=this.element.children(":selected"),t=e.val()?e.text():"";this.input=A("<input>").appendTo(this.wrapper).val(t).attr("title","").attr("placeholder","test").addClass("custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left").autocomplete({delay:0,minLength:0,source:A.proxy(this,"_source")}).tooltip({classes:{"ui-tooltip":"ui-state-highlight"}});this._on(this.input,{autocompleteselect:function(e,t){t.item.option.selected=true;this._trigger("select",e,{item:t.item.option})},autocompletechange:"_removeIfInvalid"})},_createShowAllButton:function(){var e=this.input,t=false;A("<a>").attr("tabIndex",-1).attr("title","Show All Items").tooltip().appendTo(this.wrapper).button({icons:{primary:"ui-icon-triangle-1-s"},text:false}).removeClass("ui-corner-all").addClass("custom-combobox-toggle ui-corner-right").on("mousedown",function(){t=e.autocomplete("widget").is(":visible")}).on("click",function(){e.trigger("focus");if(t){return}e.autocomplete("search","")})},_source:function(t,e){var n=new RegExp(A.ui.autocomplete.escapeRegex(t.term),"i");e(this.element.children("option").map(function(){var e=A(this).text();if(this.value&&(!t.term||n.test(e)))return{label:e,value:e,option:this}}))},_removeIfInvalid:function(e,t){if(t.item){return}var n=this.input.val(),i=n.toLowerCase(),r=false;this.element.children("option").each(function(){if(A(this).text().toLowerCase()===i){this.selected=r=true;return false}});if(r){return}this.input.val("").attr("title",n+" didn't match any item").tooltip("open");this.element.val("");this._delay(function(){this.input.tooltip("close").attr("title","")},2500);this.input.autocomplete("instance").term=""},_destroy:function(){this.wrapper.remove();this.element.show()}});A("#abcd").combobox()});A(document).delegate("#search-agreement-cm-provider","keyup",function(){A("#search-agreement-cm-provider").autocomplete({source:function(e,t){A.ajax({url:"/search-providers-for-events/"+e.term,dataType:"jsonp",success:function(e){t(e);if(e==""){A('input[name="agreement_cm_provider"]').val("")}},processResults:function(e){A.each(e,function(e,t){if(typeof t.unconnected!=="undefined"){t.text=t.text+t.unconnected}});return{results:e}}})},minLength:2,select:function(e,t){e.preventDefault();A(this).val("");if(t.item){var n=t.item.value;var i={name:n,id:t.item.producer_id};A('input[name="agreement_cm_provider"]').val(n);A('input:hidden[name="agreement_cm_provider_id"]').val(t.item.producer_id)}},open:function(e){A("ul.ui-autocomplete.ui-menu").width(380);A("ul.ui-autocomplete").addClass("customWidth_b");A(".ui-autocomplete").css("height","auto");var t=A(e.target);inputTop=t.offset().top;inputHeight=t.height();autocompleteHeight=A(".ui-autocomplete").height();windowHeight=A(window).height();if(inputHeight+inputTop+autocompleteHeight>windowHeight){A(".ui-autocomplete").css("height",windowHeight-inputHeight-inputTop-20+"px")}},close:function(){A(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})});A(document).delegate("#search-budget-agreement-cm-provider","keyup",function(){A("#search-budget-agreement-cm-provider").autocomplete({source:function(e,t){A.ajax({url:"/search-saved-agreements-for-budget/"+e.term,dataType:"jsonp",success:function(e){t(e);if(e==""){A('input[name="agreement_selection_name"]').val("")}}})},minLength:2,select:function(e,t){e.preventDefault();A(this).val("");if(t.item){var n=t.item.value;var i={name:n,id:t.item.agreement_uid};A('input[name="agreement_selection_name"]').val(n);A('input:hidden[name="agreement_budget_uid"]').val(t.item.uid);a(t.item.uid)}},open:function(e){A("ul.ui-autocomplete.ui-menu").width(380);A("ul.ui-autocomplete").addClass("customWidth_b");A(".ui-autocomplete").css("height","auto");var t=A(e.target);inputTop=t.offset().top;inputleft=t.offset().left;A(".customWidth_b").css({left:inputleft-35});inputHeight=t.height();autocompleteHeight=A(".ui-autocomplete").height();windowHeight=A(window).height();if(inputHeight+inputTop+autocompleteHeight>windowHeight){A(".ui-autocomplete").css("height",windowHeight-inputHeight-inputTop-50+"px")}},close:function(){A(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})});A(document).delegate('input[name="cm_primary_sponsor"]',"keyup",function(){A('input[name="cm_primary_sponsor"]').autocomplete({source:function(e,t){A.ajax({url:"/search-users-organization/"+e.term,dataType:"jsonp",success:function(e){t(e);if(e==""){A('input[name="cm_primary_sponsor"]').val("")}},processResults:function(e){A.each(e,function(e,t){});return{results:e}}})},minLength:1,select:function(e,t){e.preventDefault();A(this).val("");if(t.item){var n=t.item.id;A('input[name="cm_primary_sponsor"]').val(n)}},open:function(e){A("ul.ui-autocomplete.ui-menu").width(380);A("ul.ui-autocomplete").addClass("customWidth_b");A(".ui-autocomplete").css("height","auto");var t=A(e.target);inputTop=t.offset().top;inputHeight=t.height();autocompleteHeight=A(".ui-autocomplete").height();windowHeight=A(window).height();if(inputHeight+inputTop+autocompleteHeight>windowHeight){A(".ui-autocomplete").css("height",windowHeight-inputHeight-inputTop-20+"px")}},close:function(){A(this).removeClass("ui-corner-top").addClass("ui-corner-all")}})});A.fn.agreementBaseDateTimePicker=function(){var a=moment(A("#analystStartDate .agreement_datepicker").val(),"DD-MM-YYYY").format("DD-MM-YYYY");var o=moment(A("#analystEndDate .agreement_datepicker").val(),"DD-MM-YYYY").format("DD-MM-YYYY");var s=moment(A("#terminationDate .agreement_datepicker").val(),"DD-MM-YYYY").format("DD-MM-YYYY");A("#agreementStartDatepicker").datepicker({dateFormat:"dd-mm-yy",maxDate:o,onSelect:function(e){a=e;A("#agreementEndDatepicker").datepicker("option","minDate",e);var t=A('input:hidden[name="agreement_autorenew_value"]').val();if(t=="yes"){var n=moment(A("#agreementStartDatepicker").val(),"DD-MM-YYYY").format("YYYY-MM-DD");var i=moment(A("#agreementEndDatepicker").val(),"DD-MM-YYYY").format("YYYY-MM-DD");var r=new Date(i).getMonth()-new Date(n).getMonth()+12*(new Date(i).getFullYear()-new Date(n).getFullYear());A('input[name="duration_renewal_period"]').val(r)}}});A("#agreementEndDatepicker").datepicker({dateFormat:"dd-mm-yy",minDate:a,onSelect:function(e){o=e;A("#agreementStartDatepicker").datepicker("option","maxDate",e);var t=A('input:hidden[name="agreement_autorenew_value"]').val();if(t=="yes"){var n=moment(A("#agreementStartDatepicker").val(),"DD-MM-YYYY").format("YYYY-MM-DD");var i=moment(A("#agreementEndDatepicker").val(),"DD-MM-YYYY").format("YYYY-MM-DD");var r=new Date(i).getMonth()-new Date(n).getMonth()+12*(new Date(i).getFullYear()-new Date(n).getFullYear());A('input[name="duration_renewal_period"]').val(r)}}});A("#agreementTerminationDatepicker").attr("autocomplete","off");A("#agreementTerminationDatepicker").datepicker({dateFormat:"dd-mm-yy",onSelect:function(e){s=e;A("#agreementStartDatepicker").datepicker("option","maxDate",e);var t=A('input:hidden[name="agreement_autorenew_value"]').val();if(t=="yes"){var n=moment(A("#agreementStartDatepicker").val(),"DD-MM-YYYY").format("YYYY-MM-DD");var i=moment(A("#agreementEndDatepicker").val(),"DD-MM-YYYY").format("YYYY-MM-DD");var r=new Date(i).getMonth()-new Date(n).getMonth()+12*(new Date(i).getFullYear()-new Date(n).getFullYear());A('input[name="duration_renewal_period"]').val(r)}}})};A(document).delegate(".cm-agreement-radio-button","click",function(){var e=A(this).data("btn-value");A(".cm-agreement-radio-button").removeClass("cm-agreement-radio-button--activated");A(this).addClass("cm-agreement-radio-button--activated");A('input:hidden[name="agreement_autorenew_value"]').val(e);if(e=="yes"){A('input[name="duration_renewal_period"]').prop("readonly",false);A('input[name="duration_renewal_period"]').prop("disabled",false);A('input[name="termination_date"]').prop("readonly",false);A('input[name="termination_date"]').prop("disabled",false);A(".disable_enable_renewal_period").css("visibility","visible");var t=moment(A("#agreementStartDatepicker").val(),"DD-MM-YYYY").format("YYYY-MM-DD");var n=moment(A("#agreementEndDatepicker").val(),"DD-MM-YYYY").format("YYYY-MM-DD");var i=new Date(n).getMonth()-new Date(t).getMonth()+12*(new Date(n).getFullYear()-new Date(t).getFullYear());A('input[name="duration_renewal_period"]').val(i);A(".durationRenewalPeriod").addClass("visible")}else{A('input[name="duration_renewal_period"]').prop("readonly",true);A('input[name="duration_renewal_period"]').prop("disabled",true);A('input[name="termination_date"]').prop("readonly",true);A('input[name="termination_date"]').prop("disabled",true);A(".disable_enable_renewal_period").css("visibility","hidden");A('input[name="duration_renewal_period"]').val("---");A(".durationRenewalPeriod").removeClass("visible")}});A(document).delegate("#save_budget_allocation_popup","click",function(){var e=true;var t=A('input[name="budget_active_value"]').val();var n=A('input[name="budget_platform_value"]').val();if(t==""||typeof t==="undefined"){A("#cm_budget_active_value.form-required-error").css("display","block");A("#cm_budget_active_value.form-required-error").css("color","#FF4757");e=false}if(n==""||typeof n==="undefined"){A("#cm_budget_platform_value.form-required-error").css("display","block");A("#cm_budget_platform_value.form-required-error").css("color","#FF4757");e=false}if(e==true){A(".budget-agreement-allocation-form").submit()}});A(document).delegate(".save_agreement_popup","click",function(){var e=true;var t=A('input:hidden[name="agreement_cm_provider_id"]').val();var n=A('input:hidden[name="agreement_files_total"]').val();var i=A('input[name="cm_agreement_title"]').val();var r=A('input[name="cm_aggrement_cost"]').val();var a=A('input[name="cm_agreement_analyst_value"]').val();var o=A('select[name="cm_agreement_notice"]').val();var s=A('select[name="cm_primary_sponsor[]"]').val();var l=A('input:hidden[name="agreement_cm_item_uid"]').val();if(l!=""){var c=A("#agreementStartDatepicker").val();var d=A("#agreementEndDatepicker").val();var u=Date.parse(c);var p=Date.parse(d)}else{var c=A("#analystStartDate .agreement_datepicker").val();var d=A("#analystEndDate .agreement_datepicker").val();var u=Date.parse(c);var p=Date.parse(d)}if(n>5){A("#cm_agreement_files_limit.form-required-error").css("display","block");e=false}if(u>p){A("#cm_start_date_notice.form-required-error").css("display","block");e=false}if(p<=u){A("#cm_end_date_notice.form-required-error").css("display","block");e=false}if(i==""||typeof i==="undefined"){A("#cm_agreement_title.form-required-error").css("display","block");e=false}if(t==""||typeof t==="undefined"){A("#cm_agreement_provider.form-required-error").css("display","block");e=false}if(r==""||typeof r==="undefined"){A("#cm_agreement_cost.form-required-error").css("display","block");e=false}if(o==""||o==null||typeof o==="undefined"){A("#cm_agreement_notice.form-required-error").css("display","block");e=false}if(s==""||s==null||typeof s==="undefined"){A("#cm_primary_sponsor_id.form-required-error").css("display","block");e=false}if(a==""||typeof a==="undefined"){A("#cm_agreement_analyst_value.form-required-error").css("display","block");e=false}if(e==true){A(".agreement-item-content-form").submit()}});function i(e){if(A(e).children().length>0){A(e).children("#customFile").click()}else{A("#customFile").click()}}A(document).delegate(".image_doc_btn").click(function(e){var t=A(e.target);if(t.is(".image_doc_btn")||t.is(".upload_agreement_files")){i(t)}});A(".page-detail-table").on("click",".tabs li",function(){var e=A(this).attr("id");var t=A(this).data("total-items");if(e=="l_active_agreemnet"){A(".page-action").css("display","block");A(".page-search-field").css("padding-top","unset");A(".search-past-year-logs").css("display","none");A("#search-saved-agreement").val("");if(t==0){}else{A(".no-agreemnt-data").css("display","none")}}else{searchYear=A(".search-past-year-logs span.active").data("selected-year");A(".search_saved_agreement").val("");searchText=A("#search-saved-agreement").val();tabStatus=A(".page-detail-table li.active").attr("id");u(searchText,tabStatus);A(".search-past-year-logs span").removeClass("active");if(searchYear=="all"){A("#agreement_all").addClass("active")}A("#agreement_"+searchYear).addClass("active");A(this).addClass("active");var n=window.location.origin;A.request("providerAgreement::onYearExpiredAgreements",{data:{searchYear:searchYear},complete:function(e){var t=e.responseJSON;if(t==""||t===undefined){A("table#tblExpiredProviderAgreements").css("display","none");A(".no-agreemnt-data").css("display","block")}else{A("table#tblExpiredProviderAgreements").css("display","grid");A("table#tblExpiredProviderAgreements tbody.tmain").html("");A(".no-agreemnt-data").css("display","none");A.each(t,function(e,t){var n="";var i=moment(t["start_time"],"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY");var r=moment(t["end_time"],"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY");n='<tr><td class="tcol1">'+c(t["name"])+'</td><td class="tcol2">'+c(t["ProducerName"])+'</td><td class="tcol3">'+c(t["puser_name"])+'</td><td class="tcol4">'+t["aggrement_asset_class"]+'</td><td class="tcol5">'+t["platform"]+'</td><td class="tcol6"><table class="activeContractAgreementChlidHead"><tbody><tr><td>'+t["analyst_interaction_value"]+t["analyst_interaction_value_type"]+"</td><td>"+t["corporate_access_value"]+'</td></tr></tbody></table></td><td class="tcol7">'+t["cost_currency"].toUpperCase()+"&nbsp;"+d(t["cost"])+'</td><td class="tcol8">'+t["auto_renew"]+'</td><td class="tcol9">'+i+"-"+r+'</td><td class="tcol10"><span class="agreement_data_options checkicon" data-agreement-value="'+t["uid"]+'"></span><div class="agreement_option_tip_box expired_tooltip" id="item_'+t["uid"]+'"><span data-agreement-value-uid="'+t["uid"]+'" data-agreement-action="view" style="padding-right: 20px;"><i title="view" class="far fa-eye"></i> View Agreement</span></div></td></tr>';A("table#tblExpiredProviderAgreements tbody.tmain").append(n)})}}});A(".page-action").css("display","none");A(".page-search-field").css("padding-top","70px");A(".search-past-year-logs").css("display","block");A("#search-saved-agreement").val("")}A(this).addClass("active").siblings().removeClass("active");A(".tab-content-wrapper").find(".tab-content").eq(A(this).index()).addClass("active").siblings().removeClass("active")});A(function(){A("#sortableImgThumbnailPreview").sortable({connectWith:".RearangeBox",start:function(e,t){A(t.item).addClass("dragElemThumbnail");t.placeholder.height(t.item.height())},stop:function(e,t){A(t.item).removeClass("dragElemThumbnail")}});A("#sortableImgThumbnailPreview").disableSelection()});A(document).delegate(".upload_agreement_files","click",function(e){A("#agreement_files").click();return true});A(document).delegate("#agreement_files","change",function(e){t(e)});function e(e){e.parentNode.outerHTML=""}function t(e){var t=e.target.files;A('input:hidden[name="agreement_files_total"]').val(t.length);var i=document.getElementById("sortableImgThumbnailPreview");for(var n=0,r;r=t[n];n++){var a=new FileReader;a.onload=function(n){return function(e){var t="<div class='RearangeBox imgThumbContainer'><div class='cmAttachmentName'>"+n.name+"</div><i class='fas fa-times agreement_file_remove_icon'></i></div>";i.innerHTML=i.innerHTML+t}}(r);a.readAsDataURL(r)}}A(document).delegate(".agreement_file_remove_icon","click",function(){var e=A(this).data("file-name");n.push(e);var t=n.join(", ");A(this).parent().css("display","none");A('input:hidden[name="cm_agreement_delete_files"]').val(t)});A(document).delegate(".agreement_data_options","click",function(e){A(".agreement_option_tip_box").css("display","none");var t=A(this).data("agreement-value");var n="item_"+t;var i=A(this).position();A("#"+n).css("display","block");A("#"+n).css({top:i.top+1})});A(document).delegate(".budget_data_options","click",function(e){A(".budget_option_tip_box").css("display","none");var t=A(this).data("budget-value");var n="item_"+t;var i=A(this).position();A("#"+n).css("display","block");A("#"+n).css({top:i.top+12})});A("body").on("mousewheel DOMMouseScroll",function(e){var t=window.location.pathname;path_url=t.substring(1);if(path_url=="buyer-tools/provider-manager/agreements"||path_url=="buyer-tools/provider-manager/budgeting"){if(typeof e.originalEvent.detail=="number"&&e.originalEvent.detail!==0){if(e.originalEvent.detail>0){A("ul.ui-autocomplete").hide()}else if(e.originalEvent.detail<0){A("ul.ui-autocomplete").hide()}}else if(typeof e.originalEvent.wheelDelta=="number"){if(e.originalEvent.wheelDelta<0){A("ul.ui-autocomplete").hide()}else if(e.originalEvent.wheelDelta>0){A("ul.ui-autocomplete").hide()}}}});function r(e,t){var n=A("body").data("assetName");A.magnificPopup.open({items:{src:'<div class="white-popup white-popup-upload text-center">'+'<h4 style="font-size:30px;">DELETE '+t+"</h4>"+e+"<br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}A(document).delegate(".agreement_option_tip_box span","click",function(){var e=A(this).data("agreement-action");var t=A(this).data("agreement-value-uid");if(e=="delete"){r('<p style="font-size: 14px;">This Agreement will be deleted, along any budget allocation, are you sure you want to continue?</p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">NO</a>',"Agreement");A("#pop-process").click(function(){A.request("providerAgreement::onDeleteAgreement",{data:{agreement_action:e,agreement_id:t},complete:function(e){location.reload()}})});A("#pop-cancel").click(function(){A.magnificPopup.close()})}if(e=="update"||e=="view"){A.request("providerAgreement::onRenderProviderAgreementPopupContent",{data:{agreement_action:e,agreement_id:t},complete:function(e){A.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);A(".agreement_asset_class_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_platform_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_corporate_access_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".cm_primary_sponsor_select2").select2({placeholder:"Select the internal point of contact",templateSelection:s});A(".cm_groups_select2").select2({placeholder:"Select a Group or Multiple Groups",templateSelection:s});A(".cm_notice_period").select2({placeholder:"Enter a period of time (month)",minimumResultsForSearch:-1,maximumSelectionLength:1,templateSelection:s});A.fn.agreementBaseDateTimePicker()}})}});A(document).delegate("#agreement_log_download_btn","click",function(){A("#tblAgreementLogDownload").tableToCSV()});A(document).delegate("#budget_log_download_btn","click",function(){A("#tblBudgetLogDownload").tableToCSV()});A(document).delegate("#provider_budget_allocation_btn","click",function(){A("#budgetdetailList").tableToCSV()});A(document).delegate("#provider_agreements_btn","click",function(){var e=A(".page-detail-table li.active").attr("id");var t=A("#provider_agreements_btn").data("org-id");A.ajax({url:"/export-contract-managment-logs/"+e+"/"+t,dataType:"jsonp",success:function(e){A.fn.downloadAgreementFile(e)}})});A.fn.downloadAgreementFile=function(e){window.location.href="/agreement-download/"+e};A(document).delegate("#assign_budget_allocation","click",function(e){A.request("providerBudgeting::onRenderProviderBudgetAllocationPopupContent",{data:{valueaction:null,valueType:null},complete:function(e){A.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);A(".agreement_asset_class_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".budget_agreement_asset_class_info").select2({minimumResultsForSearch:-1,templateSelection:s});A(".budget_agreement_p_groups_info").select2({templateSelection:s});A(".budget_agreement_s_groups_info").select2({templateSelection:s});A(".agreement_platform_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_corporate_access_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".cm_groups_select2").select2({placeholder:"Select a Group or Multiple Groups",templateSelection:s});A(".cm_notice_period").select2({placeholder:"Enter a period of time (month)",minimumResultsForSearch:-1,maximumSelectionLength:1,templateSelection:s});A.fn.agreementBaseDateTimePicker()}})});function a(t){A.request("providerBudgeting::onRenderProviderBudgetAllocationPopupContent",{data:{agreement_uid:t},complete:function(e){A.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);A(".budget_agreement_asset_class_info").select2({minimumResultsForSearch:-1,templateSelection:s});A(".budget_agreement_p_groups_info").select2({templateSelection:s});A(".budget_agreement_s_groups_info").select2({templateSelection:s});A('input:hidden[name="selected_agreement_uid"]').val(t);o(t);A.fn.agreementBaseDateTimePicker()}})}A.fn.createAndAppendUserList=function(e,t){A(".budgetPriceSection").find("tbody tr.no-results").hide();A.request("providerBudgeting::onUserListDisplay",{data:{agreementUID:e},complete:function(e){A(".budgetPriceSection").find("thead").after(e.responseJSON.result);A.fn.budetUserDateTimePicker();A("#budget_allocation_buttons").find(".save").addClass("active");A("#budget_allocation_buttons").find(".save").removeAttr("disabled");A(".update_save_agreement").removeClass("hide")}})};function o(e){A.ajax({url:"/fetch-agreemnt-info-for-budget/"+e,method:"GET",dataType:"json"}).done(function(e){let t=JSON.stringify(e);let n=JSON.parse(t);let i="From "+moment(n.agreement_start_date,"YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD")+" to "+moment(n.agreement_end_date,"YYYY-MM-DD HH:mm:ss").format("YYYY-MM-DD");if(n.agreement_cost_currency=="eur"){var r="€"}else if(n.agreement_cost_currency=="usd"){var r="$"}else{var r="£"}var a=n.primary_group_array.split(",");A.each(a,function(e,t){A(".budget_agreement_p_groups_info").append(new Option(t,t,true,true))});A(".budget_agreement_p_groups_info").trigger("change");var o=n.secondary_group_array.split(",");A.each(o,function(e,t){A(".budget_agreement_s_groups_info").append(new Option(t,t,true,true))});A(".budget_agreement_s_groups_info").trigger("change");let s=n.agreement_cost+" "+n.agreement_cost_currency+" "+r;var l=new Option(n.asset_class,n.asset_class,true,true);A(".budget_agreement_asset_class_info").append(l).trigger("change");A("#search-budget-agreement-cm-provider").val(n.agreement_name);A("#budget_agreement_cost_info").val(s);A("#budget_agreement_active_info").val(n.agreement_plateform_value);A("#budget_agreement_platform_info").val(n.agreement_active_value);A("#budget_agreement_time_info").val(i);A(".budgetPriceSection").find("tbody").remove();A.fn.createAndAppendUserList(n.agreement_uid,A(".budgetPriceSection").find("thead"))})}A(document).on("change",'select[name="agreement_selection"]',function(){var e=A(this).val();if(e!=0){a(e)}else{A(".budget-agreement-item-content-form").css("display","none");A(".budget-agreement-item-content-form").css("visiblity","hidden");A("#cm_t_budget").css("display","none");A(".unallocated_budget").css("display","none");A("#calendarBottom").css("display","none")}});function l(){var e=A(".unallocated_budget span").text();var t="00";if(e!=0){A(".unallocated_budget span").text(t)}var s=A("#cm_t_budget").attr("data-budget-currency");var i=0;var r=0;var a=0;var n=0;var o=0;var l=[];var c=A("#cm_t_budget").text();var d=parseInt(c.replace(/[^0-9.]/g,""));var u=A('input[name="budget_active_value"]').val();var p=A('input[name="budget_platform_value"]').val();var f=d*(u/100);var h=d*(p/100);var m=A(".user_select ul").length;var v=[];var g=0;var _=[];var y=0;var b=[];var w=0;A(".user_select").each(function(){A(this).find("ul").each(function(){var n=A(this).data("group-id");A(this).find("li select").each(function(){var e=A(this).data("select-user");var t=A(this).val();if(t=="Active & Platform"){i=i+1;r=r+1}if(t=="Platform"){r=r+1}if(t=="None"){a=a+1}l.push({group_id:n,user_id:e,user_option:t})})})});if(i>0){o=f/i;if(r>0){n=h/r}else{n=h}activeValuePerUserResult=o+n;o=o;activePlatformValuePerUser=n}else{o=f}if(r>0){n=h/r}else{n=h}var C=l.length;for(var x=0;x<C;x++){var k=l[x]["user_id"];var S=l[x]["group_id"];var D=l[x]["user_option"];if(D=="Platform"){A("ul.user_group_"+S+" li.user_amount_"+k+" span.sp_left").text(n.toFixed(2));A("ul.user_group_"+S+" li.user_amount_"+k+" span.sp_right").text("---");A("ul.user_total_"+S+" li.user_amount_"+k+" span.sp_single").text(n.toFixed(2));A('input:hidden[name="attributes[budget_agrement_service_group_'+S+"_user_"+k+']"]').val(D+"_"+n.toFixed(2)+"_"+S+"_"+k)}if(D=="Active & Platform"){A("ul.user_group_"+S+" li.user_amount_"+k+" span.sp_right").text(o.toFixed(2));A("ul.user_total_"+S+" li.user_amount_"+k+" span.sp_single").text(activeValuePerUserResult.toFixed(2));A("ul.user_group_"+S+" li.user_amount_"+k+" span.sp_left").text(activePlatformValuePerUser.toFixed(2));A('input:hidden[name="attributes[budget_agrement_service_group_'+S+"_user_"+k+']"]').val(D+"_"+o.toFixed(2)+"|"+activePlatformValuePerUser.toFixed(2)+"_"+S+"_"+k)}if(D=="None"){A("ul.user_group_"+S+" li.user_amount_"+k+" span.sp_right").text("---");A("ul.user_group_"+S+" li.user_amount_"+k+" span.sp_left").text("---");A("ul.user_total_"+S+" li.user_amount_"+k+" span.sp_single").text("---");A('input:hidden[name="attributes[budget_agrement_service_group_'+S+"_user_"+k+']"]').val(D+"_"+0+"_"+S+"_"+k)}var T="user_total_"+S}A(".budget_services_total_data").each(function(){var e=A(this).data("div-group-id");var n=[];var i=0;A(this).find("ul").each(function(){A(this).find("li.normal").each(function(e){var t=A(this).text();i=parseFloat(t.replace(/[^0-9.]/g,""));if(isNaN(i)){i=0}n.push(i)})});var t=n.reduce(function(e,t){return e+t},0);A("ul.user_total_"+e+" li.cm-ls-last  span.sp_single").text(s.toUpperCase()+" "+t)});A(".budget_services_data").each(function(){var e=A(this).data("div-service-group-id");var n=[];var i=0;var r=[];var a=0;A(this).find("ul").each(function(){A(this).find("li.l_normal span.sp_left").each(function(e){var t=A(this).text();i=parseFloat(t.replace(/[^0-9.]/g,""));if(isNaN(i)){i=0}n.push(i)})});var t=n.reduce(function(e,t){return e+t},0);A("ul.user_group_"+e+" li.cm-ls-last  span.sp_left").text(s.toUpperCase()+" "+t);A(this).find("ul").each(function(){A(this).find("li.l_normal span.sp_right").each(function(e){var t=A(this).text();a=parseFloat(t.replace(/[^0-9.]/g,""));if(isNaN(a)){a=0}r.push(a)})});var o=r.reduce(function(e,t){return e+t},0);A("ul.user_group_"+e+" li.cm-ls-last  span.sp_right").text(s.toUpperCase()+" "+o)});A("span.spleft").each(function(e){var t=A(this).text();g=parseFloat(t.replace(/[^0-9.]/g,""));if(isNaN(g)){g=0}v.push(g)});var $=v.reduce(function(e,t){return e+t},0);A("div.fourth  span.st_left").text(s.toUpperCase()+" "+$);A("span.spright").each(function(e){var t=A(this).text();y=parseFloat(t.replace(/[^0-9.]/g,""));if(isNaN(y)){y=0}_.push(y)});var E=_.reduce(function(e,t){return e+t},0);A("div.fourth  span.st_right").text(s.toUpperCase()+" "+E);A("span.spsingle").each(function(e){var t=A(this).text();w=parseFloat(t.replace(/[^0-9.]/g,""));if(isNaN(y)){w=0}b.push(w)});var O=b.reduce(function(e,t){return e+t},0);A("div.five  span.st_total").text(s.toUpperCase()+" "+O)}A(document).on("change",'input[name="budget_platform_value"]',function(){var e=A(this).val();var t=100-e;A('input[name="budget_active_value"]').val(t)});A(document).on("change",'input[name="budget_active_value"]',function(){var e=A(this).val();var t=100-e;A('input[name="budget_platform_value"]').val(t)});A(document).on("change",'select[name="cm_budget_select_user_id"]',function(){l()});A(document).delegate(".budget_price_user_list tr.parent_row td.col01 i","click",function(){var e=A(this).data("group-id");A("tr.p_group_"+e).nextAll("tr.group_"+e).fadeToggle(500);A(this).toggleClass("fas fa-chevron-down fas fa-chevron-right")}).eq(0).trigger("click");A(document).delegate(".save_budget_agreement_popup","click",function(){var e=A('input:hidden[name="agreement_cm_provider_id"]').val();var t=A('input[name="cm_agreement_title"]').val();if(t==""||typeof t==="undefined"){A("#cm_agreement_title.form-required-error").css("display","block")}var n=A(".budget_last_total .five span").text();if(n==0){A("#cm_agreement_provider.form-required-error").css("display","block")}else{A(".budget-agreement-item-content-form").submit()}});function c(e){if(e.length>20){var t=e.substring(0,20);var n=t+"..."}else{var n=e}return n}function d(e){var t=new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR",currencyDisplay:"code",minimumFractionDigits:0}).format(e).replace("EUR","").trim();return t}function u(e,o){var t={searchText:e,tabStatus:o};var s="";var n="providerAgreement::onFilterAgreementData";A.request(n,{data:t,complete:function(e){if(e.responseJSON!=undefined&&e.responseJSON.length>0){if(o=="l_active_agreemnet"){A("table#tblActiveProviderAgreements tbody.tmain").html("")}else{A("table#tblExpiredProviderAgreements tbody.tmain").html("")}}if(e.responseJSON.length>0){var t=e.responseJSON;var n=[];if(t!=undefined){var i="";if(o=="e_active_agreemnet"){A.each(t,function(e,t){var n="";var i=moment(t["start_time"],"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY");var r=moment(t["end_time"],"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY");n='<tr><td class="tcol1">'+c(t["name"])+'</td><td class="tcol2">'+c(t["ProducerName"])+'</td><td class="tcol3">'+c(t["puser_name"])+'</td><td class="tcol4">'+t["aggrement_asset_class"]+'</td><td class="tcol5">'+t["platform"]+'</td><td class="tcol6"><table class="activeContractAgreementChlidHead"><tbody><tr><td>'+t["analyst_interaction_value"]+t["analyst_interaction_value_type"]+"</td><td>"+t["corporate_access_value"]+'</td></tr></tbody></table></td><td class="tcol7">'+t["cost_currency"].toUpperCase()+"&nbsp;"+d(t["cost"])+'</td><td class="tcol8">'+t["auto_renew"]+'</td><td class="tcol9">'+i+"-"+r+'</td><td class="tcol10"><span class="agreement_data_options checkicon" data-agreement-value="'+t["uid"]+'"></span><div class="agreement_option_tip_box" id="item_'+t["uid"]+'"><span data-agreement-value-uid="'+t["uid"]+'" data-agreement-action="view" style="padding-right: 20px;"><i title="view" class="far fa-eye"></i> View Agreement</span></div></td></tr>';A("table#tblExpiredProviderAgreements tbody.tmain").append(n)})}else{A.each(t,function(e,t){var n="";var i=moment(t["start_time"],"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY");var r=moment(t["end_time"],"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY");n='<tr><td class="tcol1" data-agreement-value-uid="'+t["uid"]+'" data-agreement-action="update">'+c(t["name"])+'</td><td class="tcol2">'+c(t["ProducerName"])+'</td><td class="tcol3">'+c(t["puser_name"])+'</td><td class="tcol4">'+t["aggrement_asset_class"]+'</td><td class="tcol5">'+t["platform"]+'</td><td class="tcol6"><table class="activeContractAgreementChlidHead"><tbody><tr><td>'+t["analyst_interaction_value"]+t["analyst_interaction_value_type"]+"</td><td>"+t["corporate_access_value"]+'</td></tr></tbody></table></td><td class="tcol7">'+t["cost_currency"].toUpperCase()+"&nbsp;"+d(t["cost"])+'</td><td class="tcol8">'+t["auto_renew"]+'</td><td class="tcol9">'+i+"-"+r+'</td><td class="tcol10"><span class="agreement_data_options checkicon" data-agreement-value="'+t["uid"]+'"></span><div class="agreement_option_tip_box" id="item_'+t["uid"]+'"><span data-agreement-value-uid="'+t["uid"]+'" data-agreement-action="view" style="padding-right: 20px;"><i title="view" class="far fa-eye"></i> View Agreement</span><span data-agreement-value-uid="'+t["uid"]+'" data-agreement-action="update" style="padding-right: 23px;"><i title="update" class="far fa-pen" style="padding-left: 0px;"></i> Edit Agreement</span><span data-agreement-value-uid="'+t["uid"]+'" data-agreement-action="delete" style="padding-right: 5px;"><i title="Delete" class="fa-regular fa-trash" style="padding-left: 0px;"></i> Delete Agreement</span></div></td></tr>';A("table#tblActiveProviderAgreements tbody.tmain").append(n)})}var r="";r='<tr class="CompaniesLoaderRow"><td style="width:100%"><div style="text-align:center">Loading...</div></td></tr>';var a="";A("table.companies_listing tbody").append(a);A("table.companies_listing tbody").append(r)}tableInitialised=true}s=""}})}A("#search-saved-agreement").on("keyup",function(){searchText=A("#search-saved-agreement").val();tabStatus=A(".page-detail-table li.active").attr("id");u(searchText,tabStatus)});A(document).delegate(".budget_pgroups_tip","mouseover",function(){var e=A(this).data("budget_uid");var t=A(this).position();var n="budget_p_uid_"+e;A("#"+n).css("display","block");A("#"+n).css({top:t.top+26});A("#"+n).css({left:t.left-80})});A(document).delegate(".budget_pgroups_tip","mouseout",function(e){A(".budget_pgroups_tooltip").css("display","none")});A(document).delegate(".budget_groups_tip","mouseover",function(){var e=A(this).data("budget_uid");var t=A(this).position();var n="budget_uid_"+e;A("#"+n).css("display","block");A("#"+n).css({top:t.top+26})});A(document).delegate(".budget_groups_tip","mouseout",function(e){A(".budget_groups_tooltip").css("display","none")});A(document).delegate(".box_platform h3 i","mouseover",function(){A(".box_platform_hover").css("display","block")});A(document).delegate(".box_platform h3 i","mouseout",function(e){A(".box_platform_hover").css("display","none")});A(document).delegate(".box_active h3 i","mouseover",function(){A(".box_active_hover").css("display","block")});A(document).delegate(".box_active h3 i","mouseout",function(e){A(".box_active_hover").css("display","none")});A(document).delegate(".box_actions i","click",function(){A(".budget_option_tip_box").css("display","none");var e=A(this).data("budget-value");var t="item_"+e;A("#"+t).css("display","block")});A(document).delegate(".budget_option_tip_box span","click",function(){var e=A(this).data("budget-action");var t=A(this).data("budget-value-uid");if(e=="delete"){A.request("providerBudgeting::onDeleteBudgetAllocation",{data:{budget_action:e,budget_id:t},complete:function(e){}})}if(e=="update"){A.request("providerBudgeting::onRenderProviderBudgetAllocationPopupContent",{data:{budget_action:e,budget_id:t},complete:function(e){A.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);var t=A("#cm_t_budget").text();var n=t.split(":");var i=parseInt(t.replace(/[^0-9.]/g,""));var r=i*.25;var a=i*.75;var o=A(".user_list").data("total-users");A(".agreement_asset_class_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_platform_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_corporate_access_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".cm_primary_sponsor_select2").select2({placeholder:"Select the internal point of contact",templateSelection:s});A(".cm_groups_select2").select2({placeholder:"Select a Group or Multiple Groups",templateSelection:s});A(".cm_notice_period").select2({placeholder:"Enter a period of time (month)",minimumResultsForSearch:-1,maximumSelectionLength:1,templateSelection:s});A.fn.agreementBaseDateTimePicker()}})}});A(document).click(function(e){var t=A(e.target).attr("class");if(typeof t!=="undefined"){var n=t.includes("checkicon")}else{var n=""}if(n==false||typeof t=="undefined"){A(".budget_option_tip_box").css("display","none");A(".agreement_option_tip_box").css("display","none")}});function p(e){var t={searchText:e};var o="";var n="providerBudgeting::onFilterBudgetAllocationData";A.request(n,{data:t,complete:function(e){if(e.responseJSON!=undefined&&e.responseJSON.length>0){A(".budget_content_row").html("")}else{console.log(" sorry no data found")}if(e.responseJSON.length>0){var t=e.responseJSON;var n=[];if(t!=undefined){var i="";A.each(t,function(e,t){var n="";var r="";var i=t["user_services"].split(",");var a=t["group_names"].split(",");A.each(a,function(e,t){var n=e+1;var i='<span class="budget_group_name_'+n+'">'+t+"</span>";r=r+i});var o=0;var s=0;var l=0;A.each(i,function(e,t){if(t=="Platform"){s=s+1}if(t!="Platform"&&t!="None"){o=o+1}});s=s+o;var c=parseInt(t["b_plateform_value"]).toFixed(2);n='<div class="budget_content_row"> <div class="b_content box_agreement"> <p>'+t["agreement_name"]+'</p> </div> <div class="b_content box_provider"> <p>'+t["producer_name"]+'</p> </div> <div class="b_content box_budget"><p style="text-transform: uppercase;">'+t["budget_cost_currency"]+" &nbsp; "+t["budget_cost"]+'</p> </div> <div class="b_content box_users"> <p>'+i.length+'</p> </div> <div class="b_content box_groups">'+r+' </div> <div class="b_content box_platform"> <p class="first_child">'+t["budget_cost_currency"]+" &nbsp; "+c+'</p> <hr> <div class="spandiv"><span class="s_left">'+s+' Users</span> <span class="s_middle">|</span> <span class="s_right">Unlimited</span></div> </div> <div class="b_content box_active"> <p class="first_child">'+t["budget_cost_currency"]+" &nbsp; "+t["b_active_value"]+'</p> <hr> <div class="spandiv"><span class="s_left">'+o+' Users</span> <span class="s_middle">|</span> <span class="s_right">'+t["interactionValue"]+" &nbsp; "+t["interactionValueType"]+'</span></div> </div> <div class="b_content box_actions"> <i class="fas fa-ellipsis-v checkicon" data-budget-value="'+t["uid"]+'"></i> <div class="budget_option_tip_box" id="item_'+t["uid"]+'"><span data-budget-value-uid="'+t["uid"]+'" data-budget-action="update" style="padding-right: 40px;"><i title="update" class="far fa-eye"></i> View Budget</span><span data-budget-value-uid="'+t["uid"]+'" data-budget-action="delete"><i title="Delete" class="fa-regular fa-trash"></i> Delete Agreement</span> </div> </div> </div>';A(".top_budget_row").after(n)});var r="";r='<tr class="CompaniesLoaderRow"><td style="width:100%"><div style="text-align:center">Loading...</div></td></tr>';var a=""}tableInitialised=true}o=""}})}A("#search-saved-agreement-budget").on("keyup",function(){searchText=A("#search-saved-agreement-budget").val();p(searchText)});A(".search-past-year-logs").on("click","span",function(){searchYear=A(this).data("selected-year");A(".search-past-year-logs span").removeClass("active");A(this).addClass("active");var e=window.location.origin;A.request("providerAgreement::onYearExpiredAgreements",{data:{searchYear:searchYear},complete:function(e){var t=e.responseJSON;if(t==""||t===undefined){A("table#tblExpiredProviderAgreements").css("display","none");A(".no-agreemnt-data").css("display","block")}else{A("table#tblExpiredProviderAgreements").css("display","grid");A("table#tblExpiredProviderAgreements tbody.tmain").html("");A(".no-agreemnt-data").css("display","none");A.each(t,function(e,t){var n="";var i=moment(t["start_time"],"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY");var r=moment(t["end_time"],"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY");n='<tr><td class="tcol1">'+c(t["name"])+'</td><td class="tcol2">'+c(t["ProducerName"])+'</td><td class="tcol3">'+c(t["puser_name"])+'</td><td class="tcol4">'+t["aggrement_asset_class"]+'</td><td class="tcol5">'+t["platform"]+'</td><td class="tcol6"><table class="activeContractAgreementChlidHead"><tbody><tr><td>'+t["analyst_interaction_value"]+t["analyst_interaction_value_type"]+"</td><td>"+t["corporate_access_value"]+'</td></tr></tbody></table></td><td class="tcol7">'+t["cost_currency"].toUpperCase()+"&nbsp;"+d(t["cost"])+'</td><td class="tcol8">'+t["auto_renew"]+'</td><td class="tcol9">'+i+"-"+r+'</td><td class="tcol10"><span class="agreement_data_options checkicon" data-agreement-value="'+t["uid"]+'"></span><div class="agreement_option_tip_box expired_tooltip" id="item_'+t["uid"]+'"><span data-agreement-value-uid="'+t["uid"]+'" data-agreement-action="view" style="padding-right: 20px;"><i title="view" class="far fa-eye"></i> View Agreement</span></div></td></tr>';A("table#tblExpiredProviderAgreements tbody.tmain").append(n)})}}})});A(document).delegate(".agreement_file_download","click",function(){var e=A(this).attr("data-file-name");var t="file_download";if(e!=""&&e!=null){window.location.href="/download-agreement-files/"+e+"/"+t}});A(document).delegate("#tblActiveProviderAgreements .tmain tr td.tcol1","click",function(){var e=A(this).data("agreement-action");var t=A(this).data("agreement-value-uid");if(e=="update"){A.request("providerAgreement::onRenderProviderAgreementPopupContent",{data:{agreement_action:e,agreement_id:t},complete:function(e){A.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);A(".agreement_asset_class_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_platform_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_corporate_access_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".cm_primary_sponsor_select2").select2({placeholder:"Select the internal point of contact",templateSelection:s});A(".cm_groups_select2").select2({placeholder:"Select a Group or Multiple Groups",templateSelection:s});A(".cm_notice_period").select2({placeholder:"Enter a period of time (month)",minimumResultsForSearch:-1,maximumSelectionLength:1,templateSelection:s});A.fn.agreementBaseDateTimePicker()}})}});A(document).delegate("#tblExpiredProviderAgreements .tmain tr td.tcol1","click",function(){var e=A(this).data("agreement-action");var t=A(this).data("agreement-value-uid");if(e=="update"){A.request("providerAgreement::onRenderProviderAgreementPopupContent",{data:{agreement_action:e,agreement_id:t},complete:function(e){A.fn.showMagnificPopupWithCallbackForEvents(e.responseJSON.popup_content,false);A(".agreement_asset_class_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_platform_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".agreement_corporate_access_select2").select2({minimumResultsForSearch:-1,templateSelection:s});A(".cm_primary_sponsor_select2").select2({placeholder:"Select the internal point of contact",templateSelection:s});A(".cm_groups_select2").select2({placeholder:"Select a Group or Multiple Groups",templateSelection:s});A(".cm_notice_period").select2({placeholder:"Enter a period of time (month)",minimumResultsForSearch:-1,maximumSelectionLength:1,templateSelection:s});A.fn.agreementBaseDateTimePicker()}})}});A("#cm_groups_select2").on("select2:select",function(e){A(".select2-selection__choice__remove").html("x")});A(".search_saved_agreement").focus(function(){A("i.clear_search").css("visibility","visible")});A(document).delegate("i.clear_search","click",function(){A(".search_saved_agreement").val("");searchText=A("#search-saved-agreement").val();tabStatus=A(".page-detail-table li.active").attr("id");u(searchText,tabStatus)});A(document).delegate(".budgetPriceSection tbody tr.child_row  td.col_03 span.startdate","click",function(){var e=A(this).data("user-id");var t=A(this).data("group-id");var n="#start_date_"+e+"_"+t});A.fn.budetUserDateTimePicker=function(){A(".userstartdate").each(function(e,t){var n=t.id;A("#"+n).datepicker({showOn:"button",buttonText:"start date",dateFormat:"dd-mm-yy"}).next(".ui-datepicker-trigger").addClass("userstartdateButton")});A(".userenddate").each(function(e,t){var n=t.id;A("#"+n).datepicker({showOn:"button",buttonText:"end date",dateFormat:"dd-mm-yy"}).next(".ui-datepicker-trigger").addClass("userenddateButton")})};A(document).delegate("#agreement_uid_selection_button","click",function(){A("#agreement_uid_selection_box").toggleClass("hide show")});A(document).delegate(".agreement_selection_name","click",function(){A("#agreement_uid_selection_box").removeClass("show");A("#agreement_uid_selection_box").addClass("hide")});A(document).delegate("#agreement_uid_selection_box li","click",function(){var e=A(this).data("agreement-uid");var t=A(this).data("agreement-name");a(e)})})(jQuery);(function(d){if(!d(".provider-portal").length){d(".pt-link").addClass("move-right")}if(d(".providers-area-wrapper").length){d("#layout-content").find(".providers-area-wrapper").find("#providers-area-content").find(".provider_area_submit_parent_form").on("click",function(){var e=d(this);if(e.hasClass("disabled")){return false}e.addClass("disabled");var t=e.closest("form");var n=d.fn.validateFormsProviderArea(t);if(n){var i=t.find(".new_entitlement_type");if(i.length){if(parseInt(i.val())){d.fn.showMagnificSavePopupWithCallback("Save Entitlement Type","Enter a name below to save the following filters as an Entitlement Type, allowing you to add them to future entitlements in a streamlined way",function(){t.submit()})}else{t.submit()}}else{t.submit()}}else{e.removeClass("disabled")}return false});d("#layout-content").find(".providers-area-wrapper").find("#providers-area-content").find(".provider_area_submit_parent_form_entitlements").on("click",function(){var t=d(this);if(t.hasClass("disabled")){return false}t.addClass("disabled");var n=t.closest("form");var e=d.fn.validateFormsProviderArea(n);if(e){d.request("providerArea::onCheckEntitlementsAndOffers",{data:{user_email:n.find('input[name="email"]').val()},complete:function(e){if(e.responseJSON.status=="01"){n.submit()}else if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){d.magnificPopup.close();d.magnificPopup.open({items:{src:e.responseJSON.error_msg},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)}t.removeClass("disabled")}})}else{t.removeClass("disabled")}return false});d(".provider_update_single_report_data_form").find('input[name="pricing_type"]').change(function(){if(d(this).val()=="premium"){d(".provider_update_single_report_data_form").find('input[name="converted_price"]').parent().show();d(".provider_update_single_report_data_form").find('select[name="currency_selector"]').parent().show()}else if(d(this).val()=="subscription_only"){d(".provider_update_single_report_data_form").find('input[name="converted_price"]').parent().hide();d(".provider_update_single_report_data_form").find('select[name="currency_selector"]').parent().hide()}else{d(".provider_update_single_report_data_form").find('input[name="converted_price"]').val("").parent().hide();d(".provider_update_single_report_data_form").find('select[name="currency_selector"]').parent().hide()}});d("#providers-area-panel").find(".wh-group span").off().on("click",e);d("input.analytics_date").on("change",function(){var e=d('input[data-option="start_date"]').val();var t=d('input[data-option="end_date"]').val();var n={start_date:e,end_date:t};var i=d(this).data("action-name");if(i=="analytics_providers"){var r="providerArea::onGetAjaxDataAnalyticProvider"}else if(i=="analytics_activity"){var r="providerArea::onGetAjaxDataAnalyticActivity";if(d('select[name="filter_by_user_type"]').length){n={start_date:e,end_date:t,user_type:d('select[name="filter_by_user_type"]').val()}}}else if(i=="analytics_transactions"){var r="providerArea::onGetAjaxDataAnalyticTransactions"}else{var r="providerArea::onGetAjaxDataAnalyticReports"}d.request(r,{data:n,complete:function(e){d(".qtip-default.qtip_on_table_th").remove();d.fn.renderQtipTooltips();if(d(".provider-dashboard-analytics-activity-table").length){d("table th:first").click()}}})});d('select[name="filter_by_user_type"]').on("change",function(){var e=d('input[data-option="start_date"]').val();var t=d('input[data-option="end_date"]').val();var n={start_date:e,end_date:t,user_type:d(this).val()};var i="providerArea::onGetAjaxDataAnalyticActivity";d.request(i,{data:n,complete:function(e){d(".qtip-default.qtip_on_table_th").remove();d.fn.renderQtipTooltips();if(d(".provider-dashboard-analytics-activity-table").length){d("table th:first").click()}}})});d(document).on("click","#provider-dashboard-add-new-user",function(){d.request("providerArea::onAjaxAddNewUser",{data:{row_index:d("#provider-dashboard-users-table").find("tbody").find("tr").length},complete:function(e){if(e.responseJSON.resultHtml!=""){d("#provider-dashboard-users-table tbody").append(e.responseJSON.resultHtml);if(d(document).height()>d(window).height()+68){d("html, body").animate({scrollTop:d("#new_user").offset().top},2e3)}d(".qtip.qtip-default").remove();d.fn.renderQtipTooltips()}}})});d(document).delegate("#provider-dashboard-users-table input.required","change keyup",function(){if(d(this).prop("type")!="email"){if(d(this).val()){d(this).addClass("has-success")}else{d(this).removeClass("has-success")}}else{var e=/^([\w-\.]+@([\w-]+\.)+[\w-]{2,})?$/;if(d(this).val()&&e.test(d(this).val())){d(this).addClass("has-success")}else{d(this).removeClass("has-success")}}});d(document).delegate("#provider-dashboard-users-table .resend-activation-email","click",function(e){d(this).remove();d.request("providerArea::onResendUserActivationEmail",{data:{user_id:d(this).data("user")},complete:function(e){}})});d(document).on("click","#provider-dashboard-add-new-report-type",function(){d.request("providerArea::onAjaxAddNewReportType",{data:{row_index:d("#provider-dashboard-users-table").find("tbody").find("tr").length},complete:function(e){if(e.responseJSON.resultHtml!=""){d("#provider-dashboard-users-table tbody").append(e.responseJSON.resultHtml);if(d(document).height()>d(window).height()+68){d("html, body").animate({scrollTop:d("#new_report_type").offset().top},2e3)}d(".qtip.qtip-default").remove();d.fn.renderQtipTooltips()}}})});d(".user-management .editable-table #provider-dashboard-users-table").on("click",".edit-data",function(e){if(d(this).closest(".multiple-editable-items").length===0&&d(this).closest(".has-dropdown").length===0){if(d(this).parent().find(".input-edit-wrapper").length){d(this).parent().find(".input-edit-wrapper").show()}else{var t=d(this).data("type")=="email"?"email":"text";var n=d(this).data("type")=="email"?'data-error-field-name="Email"':"";var i=d(this).data("type")=="email"?" required":"";var r="";if(d(this).data("user-id")){r='<input type="'+t+'" class="provider-area-data-for-submission '+i+'" name="existing_user['+d(this).data("user-id")+"_"+d(this).data("type")+']" value="'+d(this).data("value")+'" data-orig-value="'+d(this).data("value")+'" data-type="'+d(this).data("type")+'" '+n+" autofocus/>"}else if(d(this).data("report-type-id")){r='<input type="'+t+'" class="provider-area-data-for-submission '+i+'" name="existing_report_type['+d(this).data("report-type-id")+"_"+d(this).data("type")+']" value="'+d(this).data("value")+'" data-orig-value="'+d(this).data("value")+'" data-type="'+d(this).data("type")+'" '+n+" autofocus/>"}var a='<div class="input-edit-wrapper">'+r+"</div>";d(this).parent().append(a)}}else if(d(this).closest(".has-dropdown").length){if(d(this).parent().find(".input-edit-wrapper").length){d(this).parent().find(".input-edit-wrapper").show()}else{var o=d(this).data("value")=="Administrator"?'selected="selected"':"";var s='<div class="input-edit-wrapper is-dropdown-edit"><select class="provider-area-data-for-submission" name="existing_user['+d(this).data("user-id")+"_"+d(this).data("type")+']" data-orig-value="'+d(this).data("value")+'" data-type="'+d(this).data("type")+'">'+'<option value="">User</option>'+'<option value="1" '+o+">Administrator</option>"+'<option value="2">Editor</option>'+"</select></div>";d(this).parent().append(s)}}else if(d(this).closest(".multiple-editable-items").length){if(d(this).parent().find(".input-edit-wrapper").length){d(this).parent().find(".input-edit-wrapper").show()}else{var l='<div class="input-edit-wrapper">'+'<input type="text" class="provider-area-data-for-submission required" name="existing_user['+d(this).data("user-id")+'_first_name]" value="'+d(this).data("first-name")+'" data-orig-value="'+d(this).data("first-name")+'" data-type="first-name" data-error-field-name="First Name" autofocus/>'+'<input type="text" class="provider-area-data-for-submission required" name="existing_user['+d(this).data("user-id")+'_last_name]" value="'+d(this).data("last-name")+'" data-orig-value="'+d(this).data("last-name")+'" data-type="last-name" data-error-field-name="Last Name" autofocus/>'+"</div>";d(this).parent().append(l)}}});d(document).delegate(".provider-area-data-for-submission","change",function(){var e=d(this);var t=e.closest("td").find(".data-content").find('[data-compare-type="'+e.data("type")+'"]');if(t.length){if(e.closest("td").find(".has-dropdown").length){var n=e.find(":selected").text()}else{var n=e.val()}if(t.html()!=n){t.html(n);if(n!=t.data("origin-value")){t.closest("td").addClass("currently_changed")}else{t.closest("td").removeClass("currently_changed")}}}if(d(".input-edit-wrapper").length){d(".save-cancel-change").css("display","flex")}});d(".save-cancel-change").on("click",".provider-area-save-changes",function(e){var t=true;var n=d(this);if(!n.hasClass("disabled")){n.addClass("disabled");var i="";var r=0;if(d(".provider-area-data-for-submission.required").length){d(".provider-area-data-for-submission.required").each(function(){if(d(this).val()==""){if(i==""){i+="<b>"+d(this).data("error-field-name")+"</b>"}else{i+=" & <b>"+d(this).data("error-field-name")+"</b>"}r+=1;t=false}else if(d(this).attr("type")=="email"){var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!e.test(d(this).val())){if(i==""){i+="<b>"+"The email is not valid</b>"}else{i+=" & <b>"+"The email is not valid</b>"}r+=1;t=false}}})}if(t){var a=d(".provider-area-data-for-submission").serializeArray();var o="providerArea::onSaveUsersData";var s="on_save_users_data_on_provider_dashboard";var l="on_save_existing_users_data";if(d(this).data("request-type")=="report-types"){o="providerArea::onSaveReportType";s="on_save_report_type_data_on_provider_dashboard"}d.fn.createCookie(s,"",-1);d.request(o,{data:{form_data:a},complete:function(e){if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){d.fn.createCookie(l,e.responseJSON.error_msg,1);d("html, body").animate({scrollTop:"0"},400);location.reload()}else if(e.responseJSON.status=="01"&&e.responseJSON.scs_msg!=""){d.fn.createCookie(s,e.responseJSON.scs_msg,1);d("html, body").animate({scrollTop:"0"},400);location.reload()}n.removeClass("disabled")}})}else{n.removeClass("disabled");if(r==1){i="Field "+i+" is mandatory;"+"<br />"}else{i="Fields "+i+" are mandatory;"+"<br />"}d.fn.showMagnificPopupWithCallback("<p>"+i+"<p>",false)}}});d(".analysts_toggle_on_edit span").on("click",function(e){var t=d(this);if(t.data("item-state")==0){d.request("providerArea::onDeleteAnalyst",{data:{id:t.data("request-data")},complete:function(e){}})}});d(document).on("click",".add_subscription_variant_row",function(){var t=d(this);if(!t.hasClass("disabled")){t.addClass("disabled");var e="providerArea::onAjaxAddNewSubscriptionOptionVariant";d.request(e,{data:{row_index:d(".subscription_variants_row").length},complete:function(e){if(e.responseJSON.resultHtml!=""){d(".provider_area_subscription_variants").append(e.responseJSON.resultHtml)}d(".provider_area_subscription_variants").find("select.enable-select2").each(function(){if(d(this).data("select2-disabled")!=true&&d(this).data("select2-activated")!=true){d(this).select2();d(this).data("select2-activated",true)}});t.removeClass("disabled")}})}});d(document).on("change",'select[name="entitlement_type"]',function(){var l=d(this);var c=d(".provider_add_single_subscription_data_form, .provider_update_single_subscription_data_form");c.find(".new_entitlement_type").val(0);c.find("#collapsible").animate({height:"toggle"},200);if(!l.hasClass("disabled")){l.addClass("disabled");var e="providerArea::onAjaxRetrieveEntitlementType";d.request(e,{data:{entitlement_type_id:l.val()},complete:function(e){u();if(e.responseJSON&&e.responseJSON.result){var t=JSON.parse(e.responseJSON.result);if(t.companies){c.find(".selected_companies_cards_wrapper").empty();c.find(".selected_companies_cards_wrapper").append(t.companyItems)}if(t.super_categories){var n=t.super_categories;c.find(".category-select").first().find("input").each(function(e){if(n.indexOf(parseInt(d(this).val()))!=-1||n.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.report_types){var i=t.report_types;c.find(".category-select").last().find("input").each(function(e){if(i.indexOf(parseInt(d(this).val()))!=-1||i.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.super_sectors){var r=t.super_sectors;c.find(".industry-select").find("input").each(function(e){if(r.indexOf(parseInt(d(this).val()))!=-1||r.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.marketcap){var a=t.marketcap;c.find(".market_caps_select_box").find("input").each(function(e){if(a.indexOf(d(this).val())!=-1||a.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.countries){var o=t.countries;c.find(".countries_selector").find("input").each(function(e){if(o.indexOf(parseInt(d(this).val()))!=-1||o.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.analysts){var s=t.analysts;c.find(".analyst-select").last().find("input").each(function(e){if(s.indexOf(parseInt(d(this).val()))!=-1||s.indexOf(d(this).val())!=-1){d(this).click()}})}}l.removeClass("disabled");c.find(".new_entitlement_type").val(0);c.find("#collapsible").animate({height:"toggle"},200)}})}});function u(){var e=d(".provider_add_single_subscription_data_form, .provider_update_single_subscription_data_form , biz_account_entitlement_request_form");e.find(".new_entitlement_type").val(0);e.find(".selected_companies_cards_wrapper").empty();e.find("input:checked").not('select[name="entitlement_type"]').not(".check-all, .all-selector").each(function(e){d(this).click()});e.find("input:checked").each(function(e){d(this).click()})}d(".provider_dashboard_filter_wrapper").not(".entitlement_dropdown").on("change",function(){d(this).find(".new_entitlement_type").val(1)});d(document).delegate(".subscription_variants_row .delete-row","click",function(){var e=d(this);if(!e.hasClass("disabled")){e.addClass("disabled");if(d(".subscription_variants_row").length>1){e.closest(".subscription_variants_row").remove()}else{e.removeClass("disabled")}}});d(".report-table-item .summary").dotdotdot();d(window).resize(function(e){d(".report-table-item .summary").dotdotdot()});d('.radio_wrapper input[name="reports_visibility"]').change(function(){if(d(this).val()!="for_entitlements"){d("#distribution_settings_market_section").show()}else{d("#distribution_settings_market_section").hide()}});d(".provider_update_single_report_data_form").find('input[name="title"]').on("keypress",function(){if(d(this).val().length>d(this).attr("maxlength"))return false});d(document).ready(function(){if(d(".show_terms_and_conditions_popup_for_prov_das").length){d.request("providerArea::onShowProviderDashboardTermsAndConditionsPopup",{complete:function(e){if(e.responseJSON.status=="01"){var t=e.responseJSON.response_html;d.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}}})}});d(document).on("click","#submit-provider-dashboard-terms-and-conditions-form",function(e){e.preventDefault();d.request("providerArea::onSubmitProviderDashboardTermsAndConditionsPopup",{complete:function(e){if(e.responseJSON.status=="01"){d.magnificPopup.close()}}});return false});d("#providers-area-content").find('select[name="provider_dashboard_admin_email_notifications"]').change(function(){d.request("providerArea::onUpdateProviderDashboardTransactionsEmailNotification",{data:{state:d(this).val()},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}});return false});d(document).delegate("#providers-area-content .approve_or_delete_requested_entitlement","click",function(){var t=d(this);if(!t.hasClass("disabled")){t.addClass("disabled");d.request("providerArea::onApproveOrDeleteEntitlementRequest",{data:{entitlement_request_id:t.data("item-id"),item_action:t.data("item-action")},complete:function(e){if(e.responseJSON.status=="01"){location.reload()}else if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){d.fn.showMagnificPopupWithCallback(e.responseJSON.error_msg,false);t.removeClass("disabled")}},error:function(e){t.removeClass("disabled")}})}});function e(){var e=d(this).parent().parent().find(".wh-group-content");if(d(this).hasClass("closed")){e.slideUp()}else{e.slideDown()}d(this).toggleClass("open").toggleClass("closed")}if(d("#subscriptions-free-trial-wrapper").length){var t=d("#subscriptions-free-trial-wrapper");var n=t.find("div.research_pool_yes_no_switcher_wrapper");var i=t.find('input[name="free_trial"]');var r=t.find(".number_of_weeks_wrapper");var a=t.find("#number_of_weeks");var o=t.find("a.btn");var s=t.find("span.message");n.find("span").click(function(e){if(d(this).data("item-state")==1){r.show()}else{a.val(null);r.hide()}o.show()});a.change(function(e){o.show()});o.click(function(e){d(this).attr("disabled","disabled");if(isNaN(a.val())){s.html("Number of weeks required");s.fadeIn().delay(1250).fadeOut();a.focus();return false}d.request("providerArea::onChangeFreeTrial",{data:{freeTrialStatus:i.val(),numberOfWeeks:a.val()},complete:function(e){if(e.responseJSON.status=="01"){o.hide();o.removeAttr("disabled")}var t=e.responseJSON.message;s.html(t);s.fadeIn().delay(1250).fadeOut()}})})}d("#export-entitlements-table").on("click",function(e){if(!d(this).hasClass("disabled")){d(this).addClass("disabled");d.request("providerArea::onAjaxRequestDownloadEntitlementCSV",{data:null,complete:function(e){var t="data:text/json;charset=utf-8,"+encodeURIComponent(e.responseText);var n=document.createElement("a");n.setAttribute("href",t);n.setAttribute("download","Entitlements.csv");document.body.appendChild(n);n.click();n.remove()}});d(this).removeClass("disabled")}});d(document).delegate(".resend-entitlement-email","click",function(e){if(!d(this).hasClass("disabled")){d(this).addClass("disabled");d.request("providerArea::onAjaxResendEntitlementEmail",{data:{id:d(this).data("id")},complete:function(e){}});d(this).remove()}})}d(".provider_add_single_subscription_type_data_form, .provider_add_single_autoprice_type_data_form, .provider_add_single_subscription_data_form, .provider_update_single_subscription_data_form, .biz_account_entitlement_request_form, .provider_dashboard_filter_wrapper").find(".company_name_ticker_isin").autocomplete({source:function(e,t){d.ajax({url:"/search-company-backend/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},minLength:2,select:function(e,t){e.preventDefault();d("input.company_name_ticker_isin").val(null);var n=d(".provider_dashboard_filter_wrapper").find(".new_entitlement_type");if(n.length){n.val(1)}if(t.item){var i={company_isin:t.item.isin,company_name:t.item.company_name,company_ticker:t.item.ticker,company_exchange_id:t.item.exchange_id,company_country_of_incorporation:t.item.country_id};d.fn.createAndAppendCard(i,d(".selected_companies_cards_wrapper"),t.item.isin)}},open:function(){d(this).removeClass("ui-corner-all").addClass("ui-corner-top");d("ul.ui-autocomplete").addClass("standardWidth")},close:function(){d(this).removeClass("ui-corner-top").addClass("ui-corner-all")}});d.fn.createAndAppendCard=function(e,t,n){d.request("onAddNewCardForCompanyData",{data:{companyData:e,customValue:n},complete:function(e){t.append(e.responseJSON.result)}})};if(d("#provider-dashboard-free-trial-table").length){var l=d("#provider-dashboard-free-trial-table");l.on("click",".edit-data",function(e){if(d(".add-user-to-subscription-free-trial-popup").length){d(".add-user-to-subscription-free-trial-popup").hide()}var t=d(this);if(t.closest("td").find(".add-user-to-subscription-free-trial-popup").length){t.closest("td").find(".add-user-to-subscription-free-trial-popup").show()}else{d.request("providerArea::onAjaxEditFreeTrialInvites",{data:{subscriptionTypeId:t.data("item-id")},complete:function(e){t.closest("td").append(e.responseJSON.resultHtml)}})}});d(document).delegate(".add-user-to-subscription-free-trial-popup .delete-user-item","click",function(){d(this).closest("div.user-row").remove();return false});d(document).delegate(".add-user-to-subscription-free-trial-popup .cancel-change","click",function(){d(this).closest(".add-user-to-subscription-free-trial-popup").remove()});d(document).delegate(".add-user-to-subscription-free-trial-popup .add-email","click",function(){var e=d(this).siblings(".email_for_user_to_invite").val();var t=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(t.test(e)){var n='<div class="user-row">'+'<div class="free-trial-avatar">FT</div>'+'    <span class="name">'+e+"</span>"+'    <input type="hidden" class="free_trial_for_item" name="free_trial_new_item" value="'+e+'" />'+'    <span class="delete-user-item"><i title="Remove free trial" class="fa fa-trash-o"></i></span>'+"</div>";d(this).closest("td").find("form.free_trial_users_form").append(n);d(this).siblings("input").val(null)}});d(document).delegate(".add-user-to-subscription-free-trial-popup .save-changes","click",function(){var t=d(this);if(!t.hasClass("disabled")){t.addClass("disabled");var e=d(this).closest(".add-user-to-subscription-free-trial-popup").find("form").serializeArray();d.request("providerArea::onSaveFreeTrialInvites",{data:{form_data:e},complete:function(e){t.removeClass("disabled")}})}d(this).closest("div.user-row").remove();return false});d(document).click(function(e){if(d(e.target).closest(".add-user-to-subscription-free-trial-popup").length===0&&d(e.target).closest(".edit-data").length===0){d(".add-user-to-subscription-free-trial-popup").hide()}})}if(d(".account_user_company_profile_page").length){if(d("textarea.small_tinymce").length){tinymce.init({selector:".form-group textarea.small_tinymce",height:198,width:"100%",menubar:false,branding:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}if(d("#no_vat_number").length){d("#no_vat_number").on("click",function(){var e=d("#vat_number").prop("disabled");d("#vat_number").val(null);d("#vat_number").prop("disabled",!e);d(this).closest("form").validator("validate")})}if(d("#no_registration_number").length){d("#no_registration_number").on("click",function(){var e=d("#company_number").prop("disabled");d("#company_number").val(null);d("#company_number").prop("disabled",!e);d(this).closest("form").validator("validate")})}}if(d(".providers-area-wrapper").length||d(".biz-account-add-new-report-wrapper").length||d(".biz-account-edit-report-wrapper").length||d(".biz-account-add-entitlements-request-wrapper").length||d(".my-reports-page-wrapper").length){d(".provider_update_single_report_data_form").find('select[name="report_upload_type"]').change(function(){var e=d(this).val();d(".provider_update_single_report_data_form").find(".depends_of_report_upload_type").addClass("hidden");if(d.inArray(e,[0,4,"0","4"])!==-1){d(".depends_of_report_upload_type.full_report_field").removeClass("hidden")}if(d.inArray(e,[5,"5"])!==-1){d(".depends_of_report_upload_type.word_report_field").removeClass("hidden")}if(d.inArray(e,[6,"6"])!==-1){d(".depends_of_report_upload_type.excel_report_field").removeClass("hidden")}if(d.inArray(e,[7,"7"])!==-1){d(".depends_of_report_upload_type.ppt_report_field").removeClass("hidden")}if(d.inArray(e,[8,"8"])!==-1){d(".depends_of_report_upload_type.email_report_field").removeClass("hidden")}if(d.inArray(e,[1,3,"1","3"])!==-1){d(".depends_of_report_upload_type.html_content_field").removeClass("hidden")}if(d.inArray(e,[2,3,4,"2","3","4"])!==-1){d(".depends_of_report_upload_type.link_back_input_field").removeClass("hidden")}});d.fn.initDateTimePicker=function(){d(".datepicker_with_max_date_2").each(function(){var t=d(this),e=d.trim(t.val()),n=moment(e,"YYYY-MM-DD HH:mm:ss").isValid()?e:"",i=t.attr("name");t.attr("name","_datepicker_"+i).attr("data-date-format","DD/MM/YYYY HH:mm").attr("readonly",true);t.after('<input type="hidden" name="'+i+'" value="'+n+'"/>');t.val(n.length==0?"":moment(n,"YYYY-MM-DD HH:mm:ss").format("DD/MM/YYYY HH:mm"));t.datetimepicker({language:"en",minuteStepping:15,pickDate:true,pickTime:true,maxDate:moment()}).on("dp.change",function(e){t.siblings("input").val(moment(e.date,"llll").format("YYYY-MM-DD HH:mm:ss"));t.data("DateTimePicker").setMaxDate(moment())})})};d.fn.initDateTimePicker();d(".simple_datepicker").datepicker({dateFormat:"dd/mm/yy"});d(document).ready(function(){d(".provider_update_single_report_data_form").find(".report_type.provider-area_select2_tags").select2({placeholder:"Select a value below or enter a new template",tags:true,allowClear:true});d(".provider_update_single_report_data_form").find(".provider-area_select2_recommendation").select2({placeholder:"Select a value below or enter a new recommendation",tags:true,allowClear:true})});d(".provider_update_single_report_data_form").find('select[name="tags[]"]').change(function(){if(d(this).val()==""){d(".provider_update_single_report_data_form").find(".optional_for_report_type").hide();d(".provider_update_single_report_data_form").find(".optional_for_report_type").find('input[name="report_type_description"]').val("")}else{d(".provider_update_single_report_data_form").find(".optional_for_report_type").show()}});d(".provider_update_single_report_data_form").find('select[name="recommendation"]').change(function(){if(d(this).val()==""){d(".provider_update_single_report_data_form").find(".optional_for_recommendation").hide();d(".provider_update_single_report_data_form").find(".optional_for_recommendation").find('input[name="recommendation_description"]').val("")}else{d(".provider_update_single_report_data_form").find(".optional_for_recommendation").show()}});d(document).ready(function(){d(".provider-area_select2").select2({placeholder:"Please Select",allowClear:true})});d(".provider_update_single_report_data_form").find(".company_name_ticker_isin").autocomplete({source:function(e,t){d.ajax({url:"/search-company-backend/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},minLength:2,select:function(e,t){e.preventDefault();d(this).val("");if(t.item){var n={company_isin:t.item.isin,company_name:t.item.company_name,company_ticker:t.item.ticker,company_exchange_id:t.item.exchange_id,company_country_of_incorporation:t.item.country_id};d.fn.createAndAppendCard(n,d(".provider_update_single_report_data_form").find(".selected_companies_cards_wrapper"),null)}},open:function(){d(this).removeClass("ui-corner-all").addClass("ui-corner-top");d("ul.ui-autocomplete").addClass("standardWidth");d("input.company_name").val("");d("input.company_ticker").val("");d("select.company_exchange_id").val("");d("select.company_country_of_incorporation").val("")},close:function(){d(this).removeClass("ui-corner-top").addClass("ui-corner-all")}});d(document).delegate(".selected_companies_cards_wrapper .delete_card","click",function(){d(this).parent().remove();var e=d(".provider_dashboard_filter_wrapper").find(".new_entitlement_type");if(e.length){e.val(1)}});d(".provider_update_single_report_data_form").find(".add_new_company").on("click",function(){if(!d(this).hasClass("disabled")){var e=d(".provider_update_single_report_data_form");var t=e.find("input.company_name").val();var n=e.find("input.company_ticker").val();var i=e.find("select.company_exchange_id").val();var r=e.find("select.company_country_of_incorporation").val();if(t.trim().length>0&&n.trim().length>0){var a={company_isin:null,company_name:t,company_ticker:n,company_exchange_id:i,company_country_of_incorporation:r};d.fn.createAndAppendCard(a,e.find(".selected_companies_cards_wrapper"),null)}else{d.fn.showMagnificPopupWithCallback("<p> Fields <b> Ticker </b> and <b> Name </b> are required to add a company <p>",false)}}});d(".biz-account-add-entitlements-request-wrapper").find(".entitlement_request_provider_name").autocomplete({source:function(e,t){d.ajax({url:"/search-connected-providers-for-entitlements/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},minLength:1,select:function(e,t){if(t.item){d(".new_provider_for_entitlement_block_wrapper.potential_disabled_data").addClass("hidden");d(".new_provider_for_entitlement_block_wrapper.potential_disabled_data").find("input.potentially-required").removeClass("required");if(t.item.producer_id==""){d('input[name="new_provider_for_entitlement_provider_name"]').val(t.item.query_string);d(".new_provider_for_entitlement_block_wrapper.potential_disabled_data").removeClass("hidden");d(".new_provider_for_entitlement_block_wrapper.potential_disabled_data").find("input.potentially-required").addClass("required")}else{d.fn.getEntitlementTypesSelectedProducer(t.item.producer_id);d.request("protoolsEntitlements::onAjaxChangeProducer",{data:{producer_id:t.item.producer_id},complete:function(e){d(".provider_dashboard_report_type_input ").closest(".form-group").html(e.responseJSON.report_type_filter);d(".provider_dashboard_analyst_input").closest(".form-group").html(e.responseJSON.analyst_filter)}})}}},open:function(){d(this).removeClass("ui-corner-all").addClass("ui-corner-top");d('input[name="new_provider_for_entitlement_email"]').val("");d('input[name="new_provider_for_entitlement_provider_name"]').val("");d('select[name="new_provider_for_entitlement_contact_first_name"]').val("");d('select[name="new_provider_for_entitlement_contact_last_name"]').val("")},close:function(){d(this).removeClass("ui-corner-top").addClass("ui-corner-all")}});d(".biz-account-add-entitlements-request-wrapper").find(".entitlement_request_provider_name").change(function(){d('input[name="new_provider_for_entitlement_email"]').val("");d('select[name="new_provider_for_entitlement_contact_first_name"]').val("");d('select[name="new_provider_for_entitlement_contact_last_name"]').val("")});d(".biz-account-add-entitlements-request-wrapper").find('select[name="entitlement_request_user_id"]').change(function(){if(d(this).val()==""){d('input[name="entitlement_request_user_first_name"]').val("").prop("readonly",false);d('input[name="entitlement_request_user_last_name"]').val("").prop("readonly",false)}else{var e=d(this).find(":selected");if(e){var t=e.data("user-first-name");var n=e.data("user-last-name");d('input[name="entitlement_request_user_first_name"]').val(t);d('input[name="entitlement_request_user_last_name"]').val(n);if(t!=""){d('input[name="entitlement_request_user_first_name"]').prop("readonly",true)}else{d('input[name="entitlement_request_user_first_name"]').prop("readonly",false)}if(n!=""){d('input[name="entitlement_request_user_last_name"]').prop("readonly",true)}else{d('input[name="entitlement_request_user_last_name"]').prop("readonly",false)}}}});d(".provider_update_single_report_data_form").find('select[name="security_type"]').change(function(){var e=d(".provider_update_single_report_data_form");var t=e.find(".search_company_input_wrapper");var n=e.find(".search_company_block_wrapper");var i=n.find("input");var r=n.find("select");var a=n.find(".add_new_company");if(d(this).val()=="Company shares"){t.removeClass("hidden");n.addClass("hidden");i.prop("readonly",true);r.prop("disabled",true);a.addClass("disabled");e.find(".selected_companies_cards_wrapper").empty()}else{t.addClass("hidden");n.removeClass("hidden");i.prop("readonly",false);r.prop("disabled",false);a.removeClass("disabled")}});d("#layout-content").find("form").find(".biz_account_submit_parent_form").on("click",function(){var e=d(this);if(e.hasClass("disabled")){return false}e.addClass("disabled");var t=e.closest("form");var n=d.fn.validateFormsProviderArea(t);if(n){t.submit()}else{e.removeClass("disabled")}return false});d("#layout-content").find("form").find(".biz_account_submit_parent_form_entitlement").on("click",function(){var t=d(this);if(t.hasClass("disabled")){return false}t.addClass("disabled");var n=t.closest("form");var e=d.fn.validateFormsProviderArea(n);if(e){if(n.find('input[name="provider_name"]').length){var i=n.find('input[name="provider_name"]').val()}else{var i=n.find('input[name="entitlement_request_provider_name"]').val()}if(n.find('select[name="entitlement_type[]"]').length){var r=n.find('select[name="entitlement_type[]"]').val()}else{var r=""}if(n.find('input[name="user_id"]').length){var a=n.find('input[name="user_id"]').val()}else if(n.find('input[name="entitlement_request_user_id"]').length){var a=n.find('input[name="entitlement_request_user_id"]').val()}else{var a=n.find('select[name="entitlement_request_user_id"]').val()}d.request("protoolsEntitlements::onCheckEntitlementsAndOffers",{data:{user_id:a,provider_name:i,entitlement_type:r},complete:function(e){if(e.responseJSON.status=="01"){n.submit()}else if(e.responseJSON.status=="00"&&e.responseJSON.error_msg!=""){d.magnificPopup.close();d.magnificPopup.open({items:{src:e.responseJSON.error_msg},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)}t.removeClass("disabled")}})}else{t.removeClass("disabled")}return false});d.fn.validateFormsProviderArea=function(e){var t="";var n=[];var i=true;d(".js-appended-by-form-validator").remove();d(".form-group").removeClass("js-validation-error");e.find("input.required:enabled").each(function(){if(d(this).val()==""){t+="The field <b>"+d(this).data("validation-name")+"</b> is required;"+"<br />\r\n";n.push({key:d(this).attr("name"),value:"The field <b>"+d(this).data("validation-name")+"</b> is required."});i=false}else if(d(this).attr("type")=="email"){var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(!e.test(d(this).val())){t+="The field <b>"+d(this).data("validation-name")+"</b> is not valid;"+"<br />\r\n";n.push({key:d(this).attr("name"),value:"The field <b>"+d(this).data("validation-name")+"</b> is not valid."});i=false}}else if(d(this).attr("type")=="password"&&d(this).val().length<6){t+="Min length for password fields is 6 characters;"+"\n";i=false}});e.find("input[type=email]:not(.required)").each(function(){var e=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;if(d(this).val()!=""&&!e.test(d(this).val())){t+="The field <b>"+d(this).data("validation-name")+"</b> is not valid;"+"\n";i=false}});if(e.find('input[name="password"]').length&&e.find('input[name="password_confirmation"]').length&&e.find('input[name="password"]').val()!=""&&e.find('input[name="password_confirmation"]').val()!=""){if(e.find('input[name="password"]').val()!=e.find('input[name="password_confirmation"]').val()){t+="Password and password confirmation fields need to be same;"+"\n";i=false}}e.find("select.required").each(function(){if(d(this).val()==""||d(this).val()==null){t+="The field <b>"+d(this).data("validation-name")+"</b> is required;"+"<br />\r\n";n.push({key:d(this).attr("name"),value:"The field <b>"+d(this).data("validation-name")+"</b> is required."});i=false}});if(e.hasClass("provider_update_single_subscription_data_form")||e.hasClass("provider_add_single_subscription_data_form")||e.hasClass("biz_account_entitlement_request_form")){var r="";if(d('input[name="end_date"]').length){r="end_date"}else if(d('input[name="entitlement_request_end_date"]').length){r="entitlement_request_end_date"}if(r!=""){var a=moment(d('input[name="'+r+'"]').val(),"DD/MM/YYYY").format("MM/DD/YYYY");a=new Date(a);a=a.getTime();var o=new Date;o=o.setHours(0,0,0,0);if(a<o){t+="The <b>End Date</b> value needs to be in the future;"+"<br />\r\n";n.push({key:r,value:"The <b>End Date</b> value needs to be in the future."});i=false}}}if(e.hasClass("provider_add_single_autoprice_type_data_form")){var r="";var s=d('input[name="page_start"]').val();if(s>=9999||isNaN(s)){t+="<b>Number of pages</b> range must be between 0 and 9999."+"<br />\r\n";i=false}var l=d('input[name="page_end"]').val();if(l>=1e4||isNaN(l)){t+="<b>Number of pages</b> range must be between 0 and 9999."+"<br />\r\n";i=false}var c=d('input[name="converted_price"]').val();if(c>=9999999||isNaN(c)){t+="The Field <b>Price</b> must be a number."+"<br />\r\n";i=false}}if(e.hasClass("provider_update_single_report_data_form")){if(d('select[name="report_upload_type"]').val()=="0"&&d('input[name="document"]').length&&d('input[name="document"]').val()==""){t+="The field <b>Report PDF Document</b> is required;"+"<br />\r\n";i=false}else if(d('select[name="report_upload_type"]').val()=="1"&&d('textarea[name="pdf_text"]').length){tinyMCE.triggerSave();if(d('textarea[name="pdf_text"]').val()==""){t+="The field <b>Html Content</b> is required;"+"<br />\r\n";i=false}}else if(d('select[name="report_upload_type"]').val()=="2"&&d('input[name="linkback_url"]').length&&d('input[name="linkback_url"]').val()==""){t+="The field <b>LinkBack URl</b> is required;"+"<br />\r\n";i=false}else if(d('select[name="report_upload_type"]').val()=="3"){if(d('input[name="linkback_url"]').length&&d('input[name="linkback_url"]').val()==""){t+="The field <b>LinkBack URl</b> is required;"+"<br />\r\n";i=false}if(d('textarea[name="pdf_text"]').length){tinyMCE.triggerSave();if(d('textarea[name="pdf_text"]').val()==""){t+="The field <b>Html Content</b> is required;"+"<br />\r\n";i=false}}}else if(d('select[name="report_upload_type"]').val()=="4"){if(d('input[name="linkback_url"]').length&&d('input[name="linkback_url"]').val()==""){t+="The field <b>LinkBack URl</b> is required;"+"<br />\r\n";i=false}if(d('input[name="document"]').length&&d('input[name="document"]').val()==""){t+="The field <b>Report PDF Document</b> is required;"+"<br />\r\n";i=false}}if(d('select[name="security_type"]').length&&d('select[name="security_type"]').val()=="Company shares"&&d('select[name="category"]').length&&d('select[name="category"]').find("option:selected").text()=="Company Analysis"){if(d('input[name="company_name_ticker_isin"]').val()==""){t+="The field <b>Search for a company</b> is required;"+"<br />\r\n";i=false}else if(d('input[name="company_name_ticker_isin"]').val().indexOf(" | ")==-1){t+="The company for field <b>Search for a company</b> is not selected;"+"<br />\r\n";i=false}}if(d('textarea[name="summary"]').length){tinyMCE.triggerSave();if(d('textarea[name="summary"]').val()==""){t+="The field <b>Summary</b> is required;"+"<br />\r\n";i=false}}}if(e.find('input[name="pricing_type"]').length&&e.find('input[name="converted_price"]').length){if(e.find('input[name="pricing_type"]:checked').val()=="premium"&&e.find('input[name="converted_price"]').val()==0){t+="For premium reports price must be greater than zero;"+"\n";i=false}}if(e.hasClass("provider_update_single_subscription_data_form")||e.hasClass("provider_add_single_subscription_data_form")||e.hasClass("biz_account_entitlement_request_form")){if(!i&&n!==undefined&&n.length>0){d.each(n,function(e,t){if(d('[name="'+t.key+'"]').length){d('[name="'+t.key+'"]').closest(".form-group").addClass("js-validation-error").append('<span class="js-appended-by-form-validator error">'+t.value+"</span>")}})}}else{if(!i&&t!=""){showPopupMessage('<p style="text-align: left;">'+t+"</p>")}}return i}}if(d("textarea.small_tinymce").length){tinymce.init({selector:".form-group textarea.small_tinymce",height:198,width:"100%",menubar:false,force_br_newlines:false,force_p_newlines:false,branding:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}if(d("textarea.large_tinymce").length){tinymce.init({selector:".form-group textarea.large_tinymce",height:366,width:"100%",menubar:false,branding:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css"})}if(d(".providers-area-wrapper").length||d(".account_profile_page").length||d(".account_user_company_profile_page").length||d(".biz-account-add-new-report-wrapper").length||d(".biz-account-edit-report-wrapper").length||d(".biz-account-add-entitlements-request-wrapper").length){d(".remove_icon_or_document_provider_area").on("click",function(){var e=d(this);if(e.data("append-input-name")=="report_document"){e.closest(".document-or-icon-media-block").html('<div class="only_pdf_btn2" >Choose a File<input type="file" class="conditionally_required only_pdf_document" id ="id_pdf" name="document" accept=".pdf" data-validation-name="report_document" onchange="checkInputValue($(this))"/></div><label class="pdf_doc_label">Upload PDF for second time</label>')}else if(e.data("append-input-name")=="avatar"){e.closest(".document-or-icon-media-block").html('<input type="file" name="'+e.data("append-input-name")+'" accept=".gif,.jpg,.jpeg,.png,.bmp" class="image_document"  onchange="checkInputValue($(this))"/><a href="javascript:void(0)" class="choose-image">Change your profile image</a>')}else if(e.closest(".document-or-icon-media-block").attr("data-edit-logo")==="true"){e.closest(".document-or-icon-media-block").hide();e.closest(".file_inputs_wrapper").find(".upload").show()}else{e.closest(".document-or-icon-media-block").html('<div class="image_doc_btn2">Choose an Image<input type="file" name="icon" accept=".jpg,.jpeg,.png" class="image_document" id ="id_image" onchange="checkInputValue($(this))"/></div><label class="image_doc_label">Upload JPG or PNG </label>')}});d("form .form_content_wrapper").click(function(){d(".save-cancel-change").css("display","flex")});d(document).delegate(".show_cover_effect .close_cover_effect_btn","click",function(){var e=d(this).closest(".show_cover_effect");if(e.find(".document-or-icon-media-block").length){var t="Upload JPG, PNG or BMP";if(e.find(".document-or-icon-media-block").find('input[type="file"]').hasClass("only_pdf_document")){t="Upload PDF"}e.find(".document-or-icon-media-block").find('input[type="file"]').val("");e.find(".document-or-icon-media-block").find("label").html(t);e.removeClass("show_cover_effect")}return false});window.checkInputValueForEntitlements=function(e){var t=e.val();if(t!=""){var n=t.substring(t.lastIndexOf(".")+1,t.length);var i=e.attr("accept");if(typeof i!==typeof undefined&&i!==false){if(i.indexOf(n.toLowerCase())==-1){alert("Not allowed file extension");e.val("")}else{e.closest("form").submit()}}}};window.checkInputValue=function(e){var t="Upload JPG or PNG";if(e.hasClass("only_pdf_document")){t="Upload PDF"}var n=e.val();if(n==""){e.parent().find("label").html(t)}else{var i=n.substring(n.lastIndexOf(".")+1,n.length);var r=e.attr("accept");if(typeof r!==typeof undefined&&r!==false){if(r.indexOf(i.toLowerCase())==-1){alert("Not allowed file extension");e.parent().find("label").html(t);e.val("");e.closest(".file_inputs_wrapper").parent().removeClass("show_cover_effect")}else{var a=n.split("\\");e.parent().find("label").html(a[a.length-1]);if(e.attr("name")!="avatar"){e.closest(".file_inputs_wrapper").parent().addClass("show_cover_effect")}if(e.attr("name")=="avatar"&&d(".new_document_cover_effect .change_image_cover").length){d(".new_document_cover_effect").find(".change_image_cover").show()}}}else{var a=n.split("\\");e.parent().find("label").html(a[a.length-1]);e.closest(".file_inputs_wrapper").parent().addClass("show_cover_effect")}}}}window.re_upload_pdf=function(e){d("#id_pdf").trigger("click")};window.re_upload_image=function(e){d("#id_image").trigger("click")};d(document).delegate(".only_pdf_btn2","click",function(e){var t=d(e.target);if(t.is(".only_pdf_btn2")){re_upload_pdf(t)}});d(document).delegate(".image_doc_btn2","click",function(e){var t=d(e.target);if(t.is(".image_doc_btn2")){re_upload_image(t)}});if(d(".provider_area_table_sortable_by_column").length){d(".provider_area_table_sortable_by_column").find("th.trigger_sorting").on("click",function(){var e=d(this);var t=e.parent().data("sort-url-prefix")+"sort="+e.data("sort-field")+"&sort-direction="+e.data("new-sort-direction");window.location=t})}if(d(".provider_update_general_data_form").length){d("form.provider_update_general_data_form").validator("validate");if(d("#no_vat_number").length){d("#no_vat_number").on("click",function(){var e=d("#vat_number").prop("disabled");d("#vat_number").val(null);d("#vat_number").prop("disabled",!e);d(this).closest("form").validator("validate")})}if(d("#no_registration_number").length){d("#no_registration_number").on("click",function(){var e=d("#registration_number").prop("disabled");d("#registration_number").val(null);d("#registration_number").prop("disabled",!e);d(this).closest("form").validator("validate")})}}if(d(".provider-dashboard-analytics-activity-table").length){d("table th:first").click()}d(document).on("change",'select[name="entitlement_type"]',function(){var l=d(this);var c=d(".biz_account_entitlement_request_form");c.find(".new_entitlement_type").val(0);c.find("#collapsible").animate({height:"toggle"},200);if(!l.hasClass("disabled")){l.addClass("disabled");var e="protoolsEntitlements::onAjaxRetrieveBuyerEntitlementType";d.request(e,{data:{entitlement_type_id:l.val()},complete:function(e){if(e.responseJSON&&e.responseJSON.result){var t=JSON.parse(e.responseJSON.result);if(t.buyer_producer_name){d("#researchprovider ").val(d.trim(t.buyer_producer_name))}if(t.companies){c.find(".selected_companies_cards_wrapper").empty();c.find(".selected_companies_cards_wrapper").append(t.companyItems)}if(t.super_categories){var n=t.super_categories;c.find(".category-select").first().find("input").each(function(e){if(n.indexOf(parseInt(d(this).val()))!=-1||n.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.report_types){var i=t.report_types;c.find(".category-select").last().find("input").each(function(e){if(i.indexOf(parseInt(d(this).val()))!=-1||i.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.super_sectors){var r=t.super_sectors;c.find(".industry-select").find("input").each(function(e){if(r.indexOf(parseInt(d(this).val()))!=-1||r.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.marketcap){var a=t.marketcap;c.find(".market_caps_select_box").find("input").each(function(e){if(a.indexOf(d(this).val())!=-1||a.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.countries){var o=t.countries;c.find(".countries_selector").find("input").each(function(e){if(o.indexOf(parseInt(d(this).val()))!=-1||o.indexOf(d(this).val())!=-1){d(this).click()}})}if(t.analysts){var s=t.analysts;c.find(".analyst-select").last().find("input").each(function(e){if(s.indexOf(parseInt(d(this).val()))!=-1||s.indexOf(d(this).val())!=-1){d(this).click()}})}}l.removeClass("disabled");c.find(".new_entitlement_type").val(0);c.find("#collapsible").animate({height:"toggle"},200)}})}});function c(e){var t=d("body").data("assetName");d.magnificPopup.open({items:{src:'<div class="white-popup white-popup-upload text-center">'+"<h4>NOTICE</h4>"+e+"<br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}function p(e){var t=d("body").data("assetName");if(t!="researchpool"){var n="DOWNLOAD TEMPLATE </br>FOR OFFERS"}else{var n="DOWNLOAD TEMPLATE </br>FOR OFFERS/APPROVALS"}d.magnificPopup.open({items:{src:'<div class="white-popup white-popup-upload text-center">'+"<h4>"+n+"</h4>"+e+"<br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}d(".buyer-entitlement-type").submit(function(e){e.preventDefault();c('<p style="text-align: left;"> If the CSV file contains a user/provider combination for which an entitlement already exists, do you wish to update it or ignore the input from the file ?</p><p style="text-align: left;"><input type="radio"  name="select_val" value="1" checked style="display: inline-block;"> <label for="update" style="display: inline;">Update the existing entitlement</label><p style="text-align:left;margin-top: -10px;margin-left: 16px;"> The current entitlement will remain active until the new request offer is accepted.</p></p><p style="text-align:left"><input type="radio" id="" name="select_val" value="0" style="display: inline-block;"> <label for="ignore" style="display: inline;">Ignore this entitlement change and process the rest of the file </label><p class="p_last">The current entitlement will remain active and no request will be issued.</p></p><a class="btn btn-submit-blue" id="update">PROCESS FILE</a>&nbsp;&nbsp;<a class="btn btn-submit-blue" id="ignore">CANCEL</a>');d("#update").click(function(){var e=d("input[name='select_val']:checked").val();var t=document.getElementById("client-response");t.value=e;d(".buyer-entitlement-type").unbind("submit").submit()});d("#ignore").click(function(){d(".mfp-ready").hide()})});d(".portal-type-provider").on("submit",function(e){e.preventDefault();c('<p style="text-align: left;"> If the CSV file contains a user/provider combination for which an entitlement already exists, do you wish to update it or ignore the input from the file ?</p><p style="text-align: left;"><input type="radio"  name="select_val" value="1" checked style="display: inline-block;"> <label for="update" style="display: inline;">Update the existing entitlement</label> <p style="text-align:left;margin-top: -10px;margin-left: 16px;">The current entitlement will remain active until the new request offer is accepted.</p></p><p style="text-align:left"><input type="radio" id="" name="select_val" value="0" style="display: inline-block;"> <label for="ignore" style="display: inline;">Ignore this entitlement change and process the rest of the file </label><p class="p_last"> The current entitlement will remain active and no request will be issued.</p></p><a class="btn btn-submit-blue" id="update">PROCESS FILE</a>&nbsp;&nbsp;<a class="btn btn-submit-blue" id="ignore">CANCEL</a>');d("#update").click(function(){var e=d("input[name='select_val']:checked").val();var t=document.getElementById("provider-response");t.value=e;d(".portal-type-provider").unbind("submit").submit()});d("#ignore").click(function(){d(".mfp-ready").hide()})});d("#buyer-portal").click(function(){var e=d("#buyer-portal .active").attr("id")});d("#buyer-btn-export-entitlement").click(function(){var e=d("#buyer-portal .active").attr("id");if(e=="validated"){d("#buyer-entitlements-validated").tableToCSV()}else if(e=="expired"){d("#buyer-entitlements-expired").tableToCSV()}else if(e=="audit-log"){d("#buyer-entitlement-audit").enttableToCSV()}else if(e=="requested"){d("#buyer-entitlement-requested").enttableToCSV()}else if(e=="offers"){d("#buyer-entitlement-offers").enttableToCSV()}else if(e=="types"){d("#buyer-entitlements-types").enttableToCSV()}else{preventDefault()}});d("#provider-tool").click(function(){var e=d("#provider-tool .active").attr("id");if(e=="requested_01"||e=="offers_01"||e=="types01"){d("#provider-btn-export-entitlement").hide();d("#provider-btn-export-entitlement").addClass("mass-export-btn-disable").attr("disabled",true)}else{d("#provider-btn-export-entitlement").show();d("#provider-btn-export-entitlement").removeClass("mass-export-btn-disable").removeAttr("disabled")}});d(document).ready(function(){var e=d("#provider-tool .active").attr("id");var t=d("#buyer-portal .active").attr("id");if(t=="requested"||t=="offers"||t=="types"){d("#buyer-btn-export-entitlement").hide()}else{d("#buyer-btn-export-entitlement").show()}if(e=="requested"||e=="offers"||e=="types"){d("#provider-btn-export-entitlement").hide()}else{d("#provider-btn-export-entitlement").show()}});d("#provider-btn-export-entitlement").click(function(){var e=d("#provider-tool .active").attr("id");if(e=="validated"){d("#provider-entitlements-validated").tableToCSV()}else if(e=="expired"){d("#provider-entitlements-expired").tableToCSV()}else if(e=="requested"){d("#provider-entitlements-requested").tableToCSV()}else if(e=="audit-log"){d("#provider-entitlement-audit").enttableToCSV()}else if(e=="offers"){d("#pentReqOffers").enttableToCSV()}else if(e=="types"){d("#pentReqTypes").enttableToCSV()}else{preventDefault()}});d(document).delegate("#ent-del-checkbox","change",function(){d("input:checkbox").prop("checked",d(this).prop("checked"));if(d(this).prop("checked")==true){d("#rowaction").show()}else{d("#rowaction").hide()}});d(document).delegate(".ent-id","change",function(){if(this.checked){d("#rowaction").show()}else{d("#rowaction").hide()}});d("#multi-del-entitlement").click(function(e){e.preventDefault();var t=[];d.each(d("input[name='ent-id']:checked"),function(){t.push(d(this).val())});var n=t.join(",");var i=document.getElementById("all-entitlements");i.value=n;d(".mfp-ready").show();c('<p style="font-size: 14px;">All the selected items will be Deleted, do you want to proceed ? </p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d("#delete-all-entitlements").submit()});d("#pop-cancel").click(function(){d(".mfp-ready").hide();d('input[type="checkbox"]:checked').prop("checked",false);d("#rowaction").hide()})});d(document).delegate("#ent-accept-reject","change",function(){if(d(this).prop("checked")){d("input").prop("checked",true);d("#rowaction_ar").show()}else{d("input").prop("checked",false);d("#rowaction_ar").hide()}return false});d(document).delegate(".ent-accept-reject","change",function(){if(this.checked){d("#rowaction_ar").show()}else{d("#rowaction_ar").hide()}return false});d(".accept-ent").click(function(){var e=[];d.each(d("input[name='ent-accept-reject']:checked"),function(){e.push(d(this).val())});var t=e.join(",");var n=document.getElementById("entitlement_ar_id");var i=document.getElementById("entitlement_option");var r=d(".accept-ent").attr("id");n.value=t;i.value=r;c('<p style="font-size: 14px;">All the selected items will be Approved, do you want to proceed ? </p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d("#accept-reject-entitlements").submit()});d("#pop-cancel").click(function(){d(".mfp-ready").hide();d("#rowaction_ar").hide();n.value="";i.value="";d('input[type="checkbox"]:checked').prop("checked",false)})});d(".reject-ent").click(function(){var e=[];d.each(d("input[name='ent-accept-reject']:checked"),function(){e.push(d(this).val())});var t=e.join(",");var n=document.getElementById("entitlement_ar_id");var i=document.getElementById("entitlement_option");var r=d(".reject-ent").attr("id");n.value=t;i.value=r;c('<p style="font-size: 14px;">All the selected items will be Rejected, do you want to proceed ? </p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d("#accept-reject-entitlements").submit()});d("#pop-cancel").click(function(){d(".mfp-ready").hide();d("#rowaction_ar").hide();n.value="";i.value="";d('input[type="checkbox"]:checked').prop("checked",false)})});d(document).delegate("#p-ent-reject","change",function(){if(d(this).prop("checked")){d("input").prop("checked",true);d("#pro-rowaction").show()}else{d("input").prop("checked",false);d("#pro-rowaction").hide()}return false});d(document).delegate('input[name="pro-ent-offer"]',"change",function(){if(this.checked){d("#pro-rowaction").show()}else{d("#pro-rowaction").hide()}return false});d(document).delegate("#pro-ent-accept-reject","change",function(){if(d(this).prop("checked")){d("input").prop("checked",true);d("#pro_rowaction_ar").show()}else{d("input").prop("checked",false);d("#pro_rowaction_ar").hide()}return false});d(document).delegate(".pro-ent-accept-reject","change",function(){if(this.checked){d("#pro_rowaction_ar").show()}else{d("#pro_rowaction_ar").hide()}return false});d(".pro-del-ent").click(function(e){e.preventDefault();var t=[];d.each(d("input[name='pro-ent-offer']:checked"),function(){t.push(d(this).val())});var n=t.join(",");var i=document.getElementById("all-entitlements");var r=document.getElementById("entitlement_option");var a=d(".pro-del-ent").attr("id");i.value=n;r.value=a;d(".mfp-ready").show();c('<p style="font-size: 14px;">All the selected items will be Deleted, do you want to proceed ? </p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d("#delete-selected-entitlements").submit()});d("#pop-cancel").click(function(){d(".mfp-ready").hide();d("#pro-rowaction").hide();i.value="";r.value="";d('input[type="checkbox"]:checked').prop("checked",false)})});d(document).delegate(".pro-accept-ent","click",function(){var e=[];d.each(d("input[name='pro-ent-accept-reject']:checked"),function(){e.push(d(this).val())});var t=e.join(",");var n=document.getElementById("all-entitlements");var i=document.getElementById("entitlement_option");var r=document.getElementById("entitlement_option_response");var a=d(".pro-accept-ent").attr("id");n.value=t;i.value=a;r.value=a;c('<p style="font-size: 14px;">All the selected items will be Approved, do you want to proceed ? </p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d(this).attr("disabled",true);setTimeout(function(){d("#pop-process").removeAttr("disabled")},4e4);d("#delete-selected-entitlements").submit()});d("#pop-cancel").click(function(){d(".mfp-ready").hide();d("#pro_rowaction_ar").hide();n.value="";i.value="";d('input[type="checkbox"]:checked').prop("checked",false)})});d(".pro-reject-ent").click(function(){var e=[];d.each(d("input[name='pro-ent-accept-reject']:checked"),function(){e.push(d(this).val())});var t=e.join(",");var n=document.getElementById("all-entitlements");var i=document.getElementById("entitlement_option_response");var r=document.getElementById("entitlement_option");var a=d(".pro-reject-ent").attr("id");n.value=t;r.value=a;i.value=a;c('<p style="font-size: 14px;">All the selected items will be Rejected, do you want to proceed ? </p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d("#delete-selected-entitlements").submit()});d("#pop-cancel").click(function(){d(".mfp-ready").hide();d("#pro_rowaction_ar").hide();n.value="";r.value="";d('input[type="checkbox"]:checked').prop("checked",false)})});d(".delete_entitlement_requests").click(function(){var e=d("#buyer-portal .active").attr("id");var t=d(this).attr("data-item-id");var n=document.getElementById("all-entitlements");n.value=t;if(d("input[type=checkbox]").is(":checked")){d(".mfp-ready").show();c('<p style="font-size: 14px;">Multiple items were selected but the button which was clicked will only apply to the single entitlement on this line. Do you wish to proceed ?</p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d("#delete-all-entitlements").submit()});d("#pop-cancel").click(function(){var e=document.getElementById("all-entitlements");e.value="";d(".mfp-ready").hide();d("#rowaction").hide();d('input[type="checkbox"]:checked').prop("checked",false)})}else{d("#delete-all-entitlements").submit()}});d(".approve_or_delete_requested_entitlements").click(function(){var e=d(this).attr("data-item-id");var t=d(this).attr("data-item-action");var n=d(this).attr("data-title");var i=document.getElementById("all-entitlements");var r=document.getElementById("entitlement_option_response");var a=document.getElementById("entitlement_option");d(this).attr("disabled",true);setTimeout(function(){d(".approve_or_delete_requested_entitlements").removeAttr("disabled")},4e4);if(n!=""){r.value=n}i.value=e;a.value=t;if(d("input[type=checkbox]").is(":checked")){d(".mfp-ready").show();c('<p style="font-size: 14px;">Multiple items were selected but the button which was clicked will only apply to the single entitlement on this line. Do you wish to proceed ?</p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d(this).attr("disabled",true);setTimeout(function(){d("#pop-process").removeAttr("disabled")},4e4);d("#delete-selected-entitlements").submit()});d("#pop-cancel").click(function(){d(".mfp-ready").hide();d("#pro-rowaction").hide();d("#pro_rowaction_ar").hide();d('input[type="checkbox"]:checked').prop("checked",false);i.value="";a.value=""})}else{d("#delete-selected-entitlements").submit()}});d(".approve_or_delete_offered_entitlement").click(function(e){e.preventDefault();var t=d(this).attr("data-item-id");var n=d(this).attr("data-item-action");var i=document.getElementById("entitlement_ar_id");var r=document.getElementById("entitlement_option");i.value=t;r.value=n;if(d("input[type=checkbox]").is(":checked")){d(".mfp-ready").show();c('<p style="font-size: 14px;">Multiple items were selected but the button which was clicked will only apply to the single entitlement on this line. Do you wish to proceed ?</p><a class="btn btn-submit-blue" id="pop-process">YES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a class="btn btn-submit-blue" id="pop-cancel">CANCEL</a>');d("#pop-process").click(function(){d("#accept-reject-entitlements").submit()});d("#pop-cancel").click(function(){d(".mfp-ready").hide();d("#rowaction_ar").hide();d("#rowaction").hide();d('input[type="checkbox"]:checked').prop("checked",false);i.value="";r.value=""})}else{preventDefault();d("#accept-reject-entitlements").submit()}});d(document).delegate(".resend-entitlement-email","mouseover",function(e){d(".ent_btn_tip").css("display","block")});d(document).delegate(".resend-entitlement-email","mouseout",function(e){d(".ent_btn_tip").css("display","none")});d.fn.getEntitlementTypesSelectedProducer=function(e){d.request("protoolsEntitlements::onAjaxChangeEntitlementTypes",{data:{producer_id:e},complete:function(e){var t=e.responseJSON.entitlement_types;if(t){d('div#buyerEntTypes select[name="entitlement_type[]"]').select2("destroy").empty().select2({data:t,placeholder:d('.buyer_Ent_Types select[name="entitlement_type[]"]').data("empty-option-label"),allowClear:true,disabled:false,width:"100%"})}else{d('div#buyerEntTypes select[name="entitlement_type[]"]').select2({data:t,placeholder:d('div#buyerEntTypes select[name="entitlement_type[]"]').data("Select one or multiple analyst"),allowClear:true,width:"100%"})}}})};window.checkUploadFileType=function(e){var t=e.val();if(t!=""){var n=t.substring(t.lastIndexOf(".")+1,t.length);var i=e.attr("accept");if(typeof i!==typeof undefined&&i!==false){if(i.indexOf(n.toLowerCase())==-1){alert("Not allowed file extension");e.val("")}else{e.closest("form").submit()}}}};d(".approve-bulk-entitlement-requests").on("submit",function(e){e.preventDefault();c('<p style="text-align: left;"> If the file contains a approve and reject entitlement , do you wish to update all entitlement requests from the file ?</p><p style="text-align: left;"><input type="radio"  name="select_val" value="1" checked style="display: inline-block;"> <label for="update" style="display: inline;">Just Approve Request</label> <p style="text-align:left;margin-top: -10px;margin-left: 16px;">Only entitlements are approved .</p></p><p style="text-align:left"><input type="radio" id="" name="select_val" value="0" style="display: inline-block;"> <label for="ignore" style="display: inline;">Update all approve and reject requests </label><p class="p_last"> All entries are updated approve and rejected.</p></p><a class="btn btn-submit-blue" id="update">PROCESS FILE</a>&nbsp;&nbsp;<a class="btn btn-submit-blue" id="ignore">CANCEL</a>');d("#update").click(function(){var e=d("input[name='select_val']:checked").val();var t=document.getElementById("admin-prov-response");t.value=e;d(".approve-bulk-entitlement-requests").unbind("submit").submit()});d("#ignore").click(function(){d(".mfp-ready").hide()})});d(".download-entitlement-template").on("click",function(e){e.preventDefault();var t=d(this).data("asset_type");var n='<p style="text-align: center;" class="download-temp-csv"><input type="radio"  name="download_sample_ent" value="mass_csv" style="display: inline-block;"> <i class="fal fa-file-csv"></i> <label for="update">Download CSV template for Entitlement approval</label><p style="text-align: center;">Fill your CSV file with correct values in correct column , otherwise the action will be not performed.</p></p>';var i='<p style="text-align: center;" class="download-temp-csv"><input type="radio"  name="download_sample_ent" value="mass_excel" style="display: inline-block;"> <i class="fal fa-file-excel"></i> <label for="update">Download Excel template for Entitlement approval</label><p style="text-align: center;">Fill your Excel file with correct values in correct column , otherwise the action will be not performed.</p></p>';var r='<span style="font-size: 14px;float:right;font-weight: bold;color: #1e90ff;font-family: "Raleway",sans-serif;float: right;" class="btn btn-submit-blue download_ent_temp_file" id="download_temp_ent_files_btn">DOWNLOAD</span>';if(t=="investsecurities"){p('<p style="text-align: center;"> Choose the template you need to offer or approve Entitlement</p></br><h5 class="download_temp_h5">OFFERS</h5><p style="text-align: center;" class="download-temp-csv"><input type="radio"  name="download_sample_ent" value="upload_csv" checked style="display: inline-block;"> <i class="fal fa-file-csv"></i> <label for="update">Download CSV template for creation of Entitlement</label></p>'+r)}else{p('<p style="text-align: center;"> Choose the template you need to offer or approve Entitlement</p></br><h5 class="download_temp_h5">OFFERS</h5><p style="text-align: center;" class="download-temp-csv"><input type="radio"  name="download_sample_ent" value="upload_csv" checked style="display: inline-block;"> <i class="fal fa-file-csv"></i> <label for="update">Download CSV template for creation of Entitlement</label></p><br/><h5 class="download_temp_h5">APPROVALS</h5>'+n+i+r)}d("#download_temp_ent_files_btn").click(function(){var i=d("input[name='download_sample_ent']:checked").val();if(i=="mass_csv"){var r="template_file.csv"}else if(i=="mass_excel"){var r="template_file.xlsx"}else{var r="Provider_Entitlement_Template.csv"}d.request("providerArea::onAjaxRequestDownloadSampleFiles",{data:i,complete:function(e){if(i=="mass_excel"){var t="data:application/vnd.ms-excel,"+encodeURIComponent(e.responseText)}else{var t="data:text/json;charset=utf-8,"+encodeURIComponent(e.responseText)}var n=document.createElement("a");n.setAttribute("href",t);n.setAttribute("download",r);document.body.appendChild(n);n.click();n.remove()}})})});d(document).ready(function(){var e=window.location.pathname;if(e=="/provider-tools/permissioning/entitlements"||e=="/provider-tools/permissioning/entitlements/"){d("#providerValidatedEntitlements").dataTable({pageLength:15,lengthMenu:[[15,30,50,100,-1],[15,30,50,100,"All"]],columnDefs:[{orderable:false,targets:5},{orderable:false,targets:4},{orderable:false,targets:3}]});d("#pentReqExpired").dataTable({pageLength:15,lengthMenu:[[15,30,50,100,-1],[15,30,50,100,"All"]],columnDefs:[{orderable:false,targets:5},{orderable:false,targets:4},{orderable:false,targets:3}]});d("#pentReqRequested").dataTable({pageLength:15,lengthMenu:[[15,30,50,100,-1],[15,30,50,100,"All"]],columnDefs:[{orderable:false,targets:0}]});d("#pent_req_offers").dataTable({pageLength:15,lengthMenu:[[15,30,50,100,-1],[15,30,50,100,"All"]],columnDefs:[{orderable:false,targets:0}]});d("#pentReqTypes").dataTable({pageLength:15,lengthMenu:[[15,30,50,100,-1],[15,30,50,100,"All"]]});d("#provider-entitlement-audit").dataTable({pageLength:15,lengthMenu:[[15,30,50,100,-1],[15,30,50,100,"All"]]})}});d(document).delegate("#provider_user_template","click",function(e){var i="user_template";var r="User_Template.csv";var t="providerArea::onAjaxRequestDownloadSampleFiles";d.request(t,{data:{data:i},complete:function(e){if(i=="mass_excel"){var t="data:application/vnd.ms-excel,"+encodeURIComponent(e.responseText)}else{var t="data:text/json;charset=utf-8,"+encodeURIComponent(e.responseText)}var n=document.createElement("a");n.setAttribute("href",t);n.setAttribute("download",r);document.body.appendChild(n);n.click();n.remove()}})})})(jQuery);(function($){var $simpleRegistrationForm=$("#simpleRegistrationForm"),pageTitle=$("[data-page-title]").data("page-title"),$simpleRegisterButton=$('#simpleRegistrationForm button[type="submit"]');$(window).on("popstate",function(){handler.close()});$simpleRegistrationForm.validator().on("submit",function(e){var reportID=$("#simple-registration-report-id").val();function onClickClosePopUp(e){e.preventDefault();$.magnificPopup.close()}if(e.isDefaultPrevented()){}else{$.oc.stripeLoadIndicator.show();$simpleRegisterButton.attr("disabled","disabled");ga("send","event","button","RegisterNow",pageTitle);$simpleRegistrationForm.request("onSimpleRegister",{error:function(data){var err=eval("("+data.responseText+")");$.oc.stripeLoadIndicator.hide();$simpleRegisterButton.removeAttr("disabled");$.magnificPopup.open({items:{src:'<div class="white-popup"><p>'+err.X_OCTOBER_ERROR_MESSAGE+'</p><button type="button" class="btn btn-info refresh-page-button" id="refreshPgeBtn">Try Again</button></div>',type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'});$("#refreshPgeBtn").click(onClickClosePopUp)},complete:function(e,t){$.oc.stripeLoadIndicator.hide();if(t!="error"){location.reload()}}});return false}});$(document).ready(function(){var e=$("#report-detail-page-id");if(e.length){var t=$.fn.readCookie("report_for_purchase");var n=e.data("report-id")}})})(jQuery);(function($){var $updateBillingDetailsForm=$("#userBillingDetailsForm"),$updateBillingDetailsFormButton=$("#billing-details-submit-button");$updateBillingDetailsForm.validator().on("submit",function(e){var reportID=$("#user-billing-details-report-id").val();if(e.isDefaultPrevented()){}else{$.oc.stripeLoadIndicator.show();$updateBillingDetailsFormButton.attr("disabled","disabled");$updateBillingDetailsForm.request("onUpdateBillingDetails",{error:function(data){var err=eval("("+data.responseText+")");$.oc.stripeLoadIndicator.hide();$updateBillingDetailsFormButton.removeAttr("disabled");$.magnificPopup.open({items:{src:'<div class="white-popup">'+err.X_OCTOBER_ERROR_MESSAGE+"</div>",type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'})},complete:function(e,t){$.oc.stripeLoadIndicator.hide();if(t!="error"){$.magnificPopup.close()}}});return false}})})(jQuery);(function(r){r(".login-form-popup").on("click",function(e){e.preventDefault();setTimeout(function(){r.magnificPopup.open({items:{src:"#login-popup"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)},200)});r(".login-form-save-search-popup").on("click",function(e){e.preventDefault();setTimeout(function(){r.magnificPopup.open({items:{src:"#save-search-login-popup"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)},200)});r("#signinFormPopup").validator().on("submit",function(e){var t=r("#login-button-popup");var n=r("#login-report-id").val();if(e.isDefaultPrevented()){}else{r.oc.stripeLoadIndicator.show();t.attr("disabled","disabled");var i=r("[data-page-title]").data("page-title");ga("send","event","button","Login",i);r("#signinFormPopup").request("onSigninPopup",{error:function(e){r.oc.stripeLoadIndicator.hide();t.removeAttr("disabled");if(e.responseText=="wrong credentials"||e.responseText=="wrong credentials"){e.responseText="Wrong username or password. Please try again."}r.magnificPopup.open({items:{src:'<div class="white-popup">'+e.responseText+"</div>",type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'})},complete:function(e,t){r.oc.stripeLoadIndicator.hide();if(t!="error"){location.reload()}}});return false}})})(jQuery);(function($){var $extendedRegistrationForm=$("#extendedRegistrationForm"),$acceptTermsAndConditionsPopupButtonExtended=$("#accept-terms-and-conditions-popup-button-extended"),$acceptTermsAndConditionsButtonExtended=$("#accept-terms-extended"),$acceptTermsAndConditionsExtended=$("#accept-terms-and-conditions-extended"),pageTitle=$("[data-page-title]").data("page-title"),$extendedRegisterButton=$('#extendedRegistrationForm button[type="submit"]');$("body").on("click",".extended-registration-popup",function(e){e.preventDefault();$.magnificPopup.open({items:{src:"#extendedRegistrationForm"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)});$(window).on("popstate",function(){handler.close()});$acceptTermsAndConditionsPopupButtonExtended.on("click",function(e){e.preventDefault();setTimeout(function(){$.magnificPopup.open({items:{src:"#terms-and-conditions-extended"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)},200)});$acceptTermsAndConditionsButtonExtended.on("click",function(){setTimeout(function(){$.magnificPopup.open({items:{src:"#extendedRegistrationForm"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)},100);$acceptTermsAndConditionsExtended.prop("checked",true);ga("send","event","button","AcceptTermsAndConditions",pageTitle)});$acceptTermsAndConditionsExtended.on("change",function(){if($(this).is(":checked")){$("#registration-submit-button-extended").removeAttr("disabled");ga("send","event","button","AcceptTermsAndConditions",pageTitle)}else{$("#registration-submit-button-extended").attr("disabled","disabled")}});$extendedRegistrationForm.validator().on("submit",function(e){var reportID=$("#extended-registration-report-id").val();if(e.isDefaultPrevented()){}else{$.oc.stripeLoadIndicator.show();$extendedRegisterButton.attr("disabled","disabled");ga("send","event","button","RegisterNow",pageTitle);$extendedRegistrationForm.request("onExtendedRegister",{error:function(data,status){var err=eval("("+data.responseText+")");$.oc.stripeLoadIndicator.hide();$extendedRegisterButton.removeAttr("disabled");$.magnificPopup.open({items:{src:'<div class="white-popup"><p>'+err.X_OCTOBER_ERROR_MESSAGE+'</p><button type="button" class="btn btn-info refresh-page-button" data-reopen-popup="#extendedRegistrationForm">Try Again</button></div>',type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'})},complete:function(e,t){if(t!="error"){var n=$("#report-detail-page-id");if(n.length){location.reload()}else{location.reload()}}},update:{site_navigation:"#site-navigation"}});return false}})})(jQuery);(function($){var loginButton=$("#signinForm #login-button"),registerButton=$('#registrationForm button[type="submit"]'),$registrationForm=$("#registrationForm"),$acceptTermsAndConditions=$("#accept-terms-and-conditions"),$acceptTermsAndConditionsPopupButton=$("#accept-terms-and-conditions-popup-button"),$acceptTermsAndConditionsButton=$("#accept-terms"),pageTitle=$("[data-page-title]").data("page-title");$registrationForm.find("#accountCountryList").on("change",function(){var e=$(this).val();$registrationForm.find("#billingAccountCountryList").val(e)});$acceptTermsAndConditionsPopupButton.on("click",function(e){e.preventDefault();setTimeout(function(){$.magnificPopup.open({items:{src:"#terms-and-conditions"},type:"inline",preloader:false,alignTop:true,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)},200)});$acceptTermsAndConditions.on("change",function(){if($(this).is(":checked")){$("#registration-submit-button").removeAttr("disabled");ga("send","event","button","AcceptTermsAndConditions",pageTitle)}else{$("#registration-submit-button").attr("disabled","disabled")}});$acceptTermsAndConditionsButton.on("click",function(){var e=$.magnificPopup.instance;e.close();$("#registration-submit-button").removeAttr("disabled");$acceptTermsAndConditions.prop("checked",true);ga("send","event","button","AcceptTermsAndConditions",pageTitle)});$registrationForm.validator().on("submit",function(e){var url="/report-search";if(e.isDefaultPrevented()){}else{$.oc.stripeLoadIndicator.show();registerButton.attr("disabled","disabled");ga("send","event","button","RegisterNow",pageTitle);$registrationForm.request("onFullRegister",{redirect:url,error:function(data){var err=eval("("+data.responseText+")");$.oc.stripeLoadIndicator.hide();registerButton.removeAttr("disabled");$.magnificPopup.open({items:{src:'<div class="white-popup"><p>'+err.X_OCTOBER_ERROR_MESSAGE+"</p></div>",type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'})}});return false}});$('form[data-request="onUpdate"]').validator().on("submit",function(e){if(e.isDefaultPrevented()){}else{$.oc.stripeLoadIndicator.show();$('form[data-request="onUpdate"]').request("onUpdate",{complete:function(){$.oc.stripeLoadIndicator.hide();$("#shop-basket-form").request("cart::onRun");return false}});return false}});$("#updatePassForm").validator().on("submit",function(e){if(e.isDefaultPrevented()){}else{$.oc.stripeLoadIndicator.show();$("#updatePassForm").request("onUpdate",{success:function(e){$.oc.stripeLoadIndicator.hide();if(e.X_OCTOBER_REDIRECT!=""&&typeof e.X_OCTOBER_REDIRECT!=="undefined"){window.location=e.X_OCTOBER_REDIRECT}}});return false}});$("#signinForm").validator().on("submit",function(e){if(e.isDefaultPrevented()){}else{$.oc.stripeLoadIndicator.show();loginButton.attr("disabled","disabled");ga("send","event","button","Login",pageTitle);$("#signinForm").request("onSignin",{redirect:"/report-search",error:function(e){$.oc.stripeLoadIndicator.hide();loginButton.removeAttr("disabled");if(e.responseText=="wrong credentials"||e.responseText=="wrong credentials"){e.responseText="Wrong username or password. Please try again."}$.magnificPopup.open({items:{src:'<div class="white-popup">'+e.responseText+"</div>",type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'})}});return false}})})(jQuery);(function(i){if(i("#homepage-popup").length){function e(){if(i("#enter-site-proffesional").val()!="select"&&i("#accountCountry").val()!="select"){i("#entersite-submit-button").removeAttr("disabled")}else{i("#entersite-submit-button").attr("disabled","disabled")}}i("#enter-site-proffesional, #accountCountry").on("change",function(){e()});i("#enter-site-form").on("submit",function(e){e.preventDefault();var t=window.location.pathname;var n=i("#enter-site-report-id").val();if(i("#enter-site-proffesional").val()!="select"&&i("#accountCountry").val()!="select"){i("#enter-site-form").request("entersite::onRun",{success:function(e){var t=i("#report-detail-page-id"),n=i("#enter-site-form #accountCountry").val();i("#userBillingDetailsForm #accountCountryList").val(n);if(t.length){location.reload()}else{location.reload()}}});return false}else{}})}})(jQuery);(function(r){var e=window.location.hash.indexOf("register")!==-1;var i=r("#signinFormPopupSite #site-login-button-popup");var a=r("#siteRegistrationForm"),t=r("#accept-terms-and-conditions-popup-button-site"),n=r("#accept-terms-site"),o=r("#accept-terms-and-conditions-site"),s=r("#registration-submit-button-site"),l=r("[data-page-title]").data("page-title");if(e){setTimeout(function(){r("body").trigger("openRegisterPopup")},500)}r(window).on("hashchange",function(){e=window.location.hash.indexOf("register")!==-1;if(e){r("body").trigger("openRegisterPopup")}});r("body").on("openRegisterPopup",function(e,t){if(t==""){r("#normaluserbtn").hide();r("#noreppricebtn").show()}else{r("#normaluserbtn").show();r("#noreppricebtn").hide()}window.location.hash="";e.preventDefault();r.magnificPopup.open({items:{src:"#siteRegistrationForm"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){if(r("a.js_buy_btn_for_unregistered_users ").length){r("a.js_buy_btn_for_unregistered_users ").removeClass("trigger_payment")}}}},0)});r("#eye").click(function(){if(r(this).hasClass("fa-eye-slash")){r(this).removeClass("fa-eye-slash");r(this).addClass("fa-eye");r("#userSigninPasswordSite").attr("type","password")}else{r(this).removeClass("fa-eye");r(this).addClass("fa-eye-slash");r("#userSigninPasswordSite").attr("type","text")}});r("#eye1").click(function(){if(r(this).hasClass("fa-eye-slash")){r(this).removeClass("fa-eye-slash");r(this).addClass("fa-eye");r("#accountPassword").attr("type","password")}else{r(this).removeClass("fa-eye");r(this).addClass("fa-eye-slash");r("#accountPassword").attr("type","text")}});r("#eye2").click(function(){if(r(this).hasClass("fa-eye-slash")){r(this).removeClass("fa-eye-slash");r(this).addClass("fa-eye");r("#accountPasswordConfirm").attr("type","password")}else{r(this).removeClass("fa-eye");r(this).addClass("fa-eye-slash");r("#accountPasswordConfirm").attr("type","text")}});r("#signinFormPopupSite").validator().on("submit",function(e){if(e.isDefaultPrevented()){}else{r.oc.stripeLoadIndicator.show();i.attr("disabled","disabled");ga("send","event","button","Login",l);var t=window.location.href;var n=t.substr(t.length-1);if(n=="#"){t=t.slice(0,-1)}if(r("a.trigger_payment[data-report-redirect-link]").length){t=r("a[data-report-redirect-link]").data("report-redirect-link")}r("#signinFormPopupSite").request("onSigninPopup",{redirect:t,error:function(e){r.oc.stripeLoadIndicator.hide();i.removeAttr("disabled");if(e.responseText=="wrong credentials"||e.responseText=="wrong credentials."){e.responseText="Wrong username or password. Please try again."}r("#popuperrormessage").show()}});return false}});t.on("click",function(e){e.preventDefault();setTimeout(function(){r.magnificPopup.open({items:{src:"#terms-and-conditions-site"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)},200)});n.on("click",function(){setTimeout(function(){r.magnificPopup.open({items:{src:"#siteRegistrationForm"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)},100);o.prop("checked",true);ga("send","event","button","AcceptTermsAndConditions",l)});o.on("change",function(){if(r(this).is(":checked")){r("#registration-submit-button-site").removeAttr("disabled");ga("send","event","button","AcceptTermsAndConditions",l)}else{r("#registration-submit-button-site").attr("disabled","disabled")}});a.validator().on("submit",function(e){if(e.isDefaultPrevented()){}else{var t=window.location.href;var n=t.substr(t.length-1);if(n=="#"){t=t.slice(0,-1)}if(r("a.trigger_payment[data-report-redirect-link]").length){t=r("a[data-report-redirect-link]").data("report-redirect-link")}if(r('input[name="terms_and_conditions_accepted"]').length){r(".cookie_policy_error_msg").html("");if(!r('input[name="terms_and_conditions_accepted"]').prop("checked")){r(".cookie_policy_error_msg").html("Please accept the items above before clicking sign-up now.");return false}}r.oc.stripeLoadIndicator.show();s.attr("disabled","disabled");ga("send","event","button","RegisterNow",l);r.magnificPopup.close();function i(e){e.preventDefault();r.magnificPopup.close();window.location.href="/login"}a.request("onSimpleRegister",{redirect:t,success:function(e){showSuccessMessage()},error:function(e){r.oc.stripeLoadIndicator.hide();s.removeAttr("disabled");showFailureMessage();r("#refreshPgeBtn").click(i)}});return false}})})(jQuery);function showSuccessMessage(){var e=window.location.origin;var t=$("#registerFirstName").val();var n=$("#popup_firstname").val();if(t==""){t=n}$.magnificPopup.open({items:{src:"<div class='white-popup'><div class='signuppopupp'> <p class='activation-email-bolder success-msg-popup'>Hi "+t+",</p> <p>Check your inbox for the activation email we just sent you.</p> <p> If you can't find it, <span class='activation-email-bolder'>check your spam or junk folder.</span></p><img src='"+e+"/themes/pukkaresearch/assets/images/researchpool/Junk_Email_location.png' /></div></div>",type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'})}function showFailureMessage(){$.magnificPopup.open({items:{src:'<div class="white-popup"><div class="signuppopupp err-msg-popup"><p>This email is already used registered as a user on our plateform. </p><p>You can <span class="activation-email-bolder">login</span> or request a password on the <span class="activation-email-bolder">login page.</span></div><div class="refreshBtn"><button type="button" class="btn btn-info refresh-page-button" id="refreshPgeBtn">LOGIN</button></div></div>',type:"inline"},closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'})}$(document).delegate(".linkedin_popup","click",function(e){var t="account::onRegisterLinkedInUser";$.request(t,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){$("#user_country_list").find(".signupCountryListHome").select2({placeholder:"Select one or multiple categories",allowClear:true,minimumResultsForSearch:-1})}})});$(document).delegate(".microsoft_popup","click",function(e){var t="account::onRegisterMicrosoftUser";$.request(t,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){$("#user_country_list").find(".signupCountryListHome").select2({placeholder:"Select one or multiple categories",allowClear:true,minimumResultsForSearch:-1})}})});$(document).delegate(".google_popup","click",function(e){var t="account::onRegisterGoogleUser";$.request(t,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){$("#user_country_list").find(".signupCountryListHome").select2({placeholder:"Select one or multiple categories",allowClear:true,minimumResultsForSearch:-1})}})});$(document).delegate(".new_user_reg_btn","click",function(e){var t=$(this);var n=$("#new_user_register_popup");var i=$("input#popup_firstname").val();var r=$("input#popup_lastname").val();var a=$("input#popup_email").val();var o=$('select[name="country_id"]').val();var s=$("input#popup_password").val();var l=$("input#popup_confirm_password").val();var c=$(".terms_and_conditions:checkbox:checked").length>0;var d=true;if(i==""||i=="undefined"){$(".popup_firstname span").removeClass("popup_firstname_form_error");$(".popup_firstname span").addClass("popup_firstname_form_error_show");$(".popup_firstname input").css("border","2px solid #FF4757");d=false}if(r==""||typeof r==="undefined"){$(".popup_lastname span").removeClass("popup_lastname_form_error");$(".popup_lastname span").addClass("popup_lastname_form_error_show");$(".popup_lastname input").css("border","2px solid #FF4757");d=false}if(a!=""){var u=/^\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b$/i;if(!u.test(a)){$(".popup_email span").removeClass("popup_email_form_error");$(".popup_email span").addClass("popup_email_form_error_show");$(".popup_email input").css("border","2px solid #FF4757")}}if(a==""||a=="undefined"){$(".popup_email span").removeClass("popup_email_form_error");$(".popup_email span").addClass("popup_email_form_error_show");$(".popup_email input").css("border","2px solid #FF4757");d=false}if(o==""||o=="undefined"||o==null){$(".signupCountryList").find("#pcountry").removeClass("signupCountryList_error");$(".signupCountryList").addClass("signupCountryList_error_show");$(".signupCountryList select").css("border","2px solid #FF4757");d=false}if(s==""||s=="undefined"||l==""||l=="undefined"){if(s==""&&l==""){$(".popup_confirm_password span#empty_password").removeClass("empty_password_error");$(".popup_confirm_password span#empty_password").addClass("empty_password_error_show");$(".popup_password input").css("border","2px solid #FF4757");$(".popup_confirm_password input").css("border","2px solid #FF4757")}else if(s==""||s=="undefined"){$(".popup_confirm_password span#empty_password").removeClass("empty_password_error");$(".popup_confirm_password span#empty_password").addClass("empty_password_error_show");$(".popup_password input").css("border","2px solid #FF4757")}else{$(".popup_confirm_password span#empty_password").removeClass("empty_password_error");$(".popup_confirm_password span#empty_password").addClass("empty_password_error_show");$(".popup_confirm_password input").css("border","2px solid #FF4757")}d=false}if(c==false){$("#conditions_error").removeClass("conditions_error");$("#conditions_error").addClass("conditions_error_show");$(".terms_and_conditions").css("border","2px solid #FF4757");$(".terms_and_conditions").css("-webkit-appearance","none");$(".terms_and_conditions").css("height","1.2em");$(".terms_and_conditions").css("width","1.2em");$(".terms_and_conditions").css("border-radius","4px");d=false}if(d==true){var p=$("#new_user_register_popup").serializeArray();function f(e){e.preventDefault();$.magnificPopup.close();window.location.href="/login"}$.request("account::onSimpleRegister",{data:p,success:function(e){showSuccessMessage()},error:function(e){$.oc.stripeLoadIndicator.hide();showFailureMessage();$("#refreshPgeBtn").click(f)}});return false}else{e.preventDefault();return false}});$(document).delegate("#popup_password","keyup",function(){var e=/^(?=.*\d)(?=.*[a-zA-Z]).{6,}$/;var t=$(this).val();if(e.test(t))$("#popup_password").css("border","2px solid #1E90FF");else $("#popup_password").css("border","2px solid #FF4757")});$(document).delegate("#popup_confirm_password","keyup",function(){var e=/^(?=.*\d)(?=.*[a-zA-Z]).{6,}$/;var t=$(this).val();if(e.test(t))$("#popup_confirm_password").css("border","2px solid #1E90FF");else $("#popup_confirm_password").css("border","2px solid #FF4757")});(function(n){n("body").on("click",".refresh-page-button",function(e){var t=n(this).data("reopen-popup");setTimeout(function(){n.magnificPopup.open({items:{src:t},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)},100)});n("body").on("click","a.js_buy_btn_for_unregistered_users",function(e){n(this).addClass("trigger_payment")})})(jQuery);(function(t){if(t("body").hasClass("show_terms_and_conditions_popup")){var e=t("body").data("asset-name");if(e=="researchpool"){var n="ResearchPool";var i="/privacy-policy/#cookies_policy"}else{var n="Invest Securities";var i="http://www.invest-securities.com/equity-research-cgu/"}if(!t("div.cookie_message_wrapper").length){t("body").append('<div class="cookie_message_wrapper"><p>We use cookies to ensure that we give you the best experience on our website, to help personnalise content and measure audience on our platform.<br /> By accepting or continuing to browse the site, you agree to allow us to collect information through cookies. Learn more on our <a href="'+i+'" >Cookies Policy</a></p><a href="javascript:void(0)" class="terms_and_conditions_popup_accept_btn">Accept</a></div>')}t(document).on("click",".terms_and_conditions_popup_accept_btn",function(){t.request("entersite::onAcceptTermsAndConditions",{complete:function(e){if(e.responseJSON.user_status=="non_registered"){t.fn.createCookie("terms_and_conditions_accepted",true,3650)}t(".cookie_message_wrapper").remove()}})})}})(jQuery);function formatState(e){var t=$(e.element).parent().data("tagstyle");var n=$(e.element).parent().prop("multiple");if(undefined===t){t="default"}var i=$('<span class="field-tag field-tag--'+t+(!n?" field-tag--single-choice":"")+'"><span></span></span>');if(!e.id){i=$('<span style="color: #A4B0BE"><span></span></span>')}i.find("span").text(e.text);return i}function formatParentState(e){if(!e.id){return e.text}var t=$("<span><strong></strong> - <span></span></span>");if($(e.element).attr("data-parent")){t.find("strong").text($(e.element).attr("data-parent").toUpperCase())}t.find("span").text(e.text);return t}function formatGroupLabel(e){if(!e.id){var t=$(e.element).data("icon");var n=$('<span class="s2-optgroup"><i class="'+t+' fa-fw"></i> '+e.text+"</span>");return n}return e.text}(function(t){t(document).delegate(".btn-toggle-help","click",function(e){t(e.target).slideUp("fast");t(".popup-help-container").slideDown("fast")});t(document).delegate(".btn-close-help","click",function(e){t(".popup-help-container").slideUp("fast");t(".btn-toggle-help").slideDown("fast")})})(jQuery);const defaultFieldParameters={lookup_query:null,range_start:0,range_end:100,numerical_currency:false,alphanum_max:255,dropdown_multiple_choice:false,dropdown_options:[],checkbox_label:"",boolean_default:"yes"};const reportTypesAppSpecification={el:"#reportTypesApp",delimiters:["{$","$}"],data:{popup:{content:"",remark:"",action:"",customStyle:"",context:null},reportTypes:[],selectedReportType:null,selectedSection:null,sectionNameStatus:"readonly",editTitle:false,focusOnFirst:false,editions:{title:null,sectionName:null},customFields:{}},computed:{titleWithErrors:function(){return this.checkName()}},methods:{getTabElement:function(){return document.getElementsByClassName("tab__list")[0]},tabScroll:function(e){const t=this.getTabElement();t.scroll(0,e)},tabScrollToLine:function(e){this.tabScroll(79*e)},tabGetScroll:function(){return Math.round(this.getTabElement().scrollTop)},tabGetLine:function(){return this.tabGetScroll()/79},tabScrollDown:function(){this.tabScrollToLine(this.tabGetLine()+1)},tabScrollUp:function(){this.tabScrollToLine(this.tabGetLine()-1)},showToast:function(e,t){toastr.options={closeButton:false,debug:false,newestOnTop:false,progressBar:false,positionClass:"toast-top-center",preventDuplicates:true,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"};const n={info:'<i class="fal fa-check-circle" style="margin-right: 20px"></i>',warning:'<i class="fal fa-exclamation-circle" style="margin-right: 20px"></i>'};toastr[e](`${n[e]} ${t}`)},getReportTypes:function(){const t=this;fetch("/api/report/types").then(function(e){e.json().then(function(e){t.reportTypes=e;t.selectedReportType=e[0];t.getReportSections(e[0])})})},loadCustomFields:function(){const n=this;fetch("/api/report/types/all/fields").then(function(e){e.json().then(function(e){n.customFields={};e.forEach(function(e){if(undefined==e.type||"lookup_field"==e.type){return}const t=null!==e.report_name?e.report_name:"Recently imported  ";if(undefined==n.customFields[t]){n.customFields[t]=[]}n.customFields[t].push(Object.assign({},e,{uid:e.report_id+"-"+e.uid}))})})})},sendData:function(e,t,n,i){if(undefined==i){i=function(e){return e.json()}}fetch(t,{method:e,headers:{"Content-Type":"application/json"},body:JSON.stringify(n)}).then(i)},postTitle:function(e){const t=this},showType:function(e){if(e===this.selectedReportType){return}$(".custom-options").select2("destroy");this.editTitle=false;this.selectedReportType=e;this.getReportSections(e)},editReportName:function(e){this.editTitle=true;this.focusOnFirst=true;this.editions.title=e.name},checkName:function(){const t=this.editions.title;let n=false;this.reportTypes.map(e=>{if(e===this.selectedReportType){return}n=n||t===e.name});return n},commitReportName:function(t){if(this.checkName()||!this.editTitle||""===this.editions.title.trim()){return}const e=Date.now();if(t.lastCalled&&1e3>e-t.lastCalled){return}t.lastCalled=e;t.name=this.editions.title;this.editTitle=false;if(t.flag&&t.flag=="new"){this.sendData("POST","/api/report/types",{name:t.name},function(e){e.json().then(function(e){t.id=e.report_type.id;t.flag=null;t.uid=e.report_type.GroupTagUID;delete t["flag"]})});return}this.sendData("PUT","/api/report/types/"+t.uid,{title:t.name},function(e){e.json().then(function(e){t.name=e.report_type.name})})},reportNameAlreadyUsed(t){let n=false;this.reportTypes.map(e=>{n=n||t===e.name});return n},generateNewName:function(){const e="New report template";const t=/^New report template/;let n=0;this.reportTypes.map(e=>{if(!e.name.match(t)){return}n++});let i=`${e}${1<n?" "+n:""}`;while(this.reportNameAlreadyUsed(i)){n++;i=`${e} ${n}`}return i},addNewReportType:function(){let e=0;const t=this.generateNewName();const n={id:Math.floor(Math.random()*1e5),name:t,number_of_reports:0,flag:"new"};this.reportTypes.push(n);this.showType(this.reportTypes[this.reportTypes.length-1]);this.editReportName(n)},deleteReportType:function(e){const t=this;fetch("/api/report/types/"+e.uid,{method:"DELETE"}).then(function(e){if(200!=e.status){console.warn("Report template could be deleted");return}t.getReportTypes()});this.closePopup();this.showToast("info","Report template successfully deleted");this.tabScrollToLine(0)},getReportSections:function(t,n){const i=this;t.sections=[];this.$forceUpdate();fetch("/api/report/types/"+t.uid+"/sections").then(function(e){e.json().then(function(e){if(0>=e.length){e=[{id:Math.floor(Math.random()*1e5),name:"Default section",report:t.id,fields:[i.createField()],flags:"new"}]}t.sections=e;t.sections.map(function(e){e.fields.map(function(e){e.parameters=Object.assign({},defaultFieldParameters,e.parameters)})});i.$forceUpdate();if(undefined!=n){i.showToast("info",n);i.closePopup()}})})},editSectionName:function(e){this.selectedSection=e;this.sectionNameStatus="editable";this.editions.sectionName=e.name},revertSectionName:function(){this.editions.sectionName="";this.sectionNameStatus="readonly"},commitSectionName:function(){this.selectedSection.name=this.editions.sectionName;this.sectionNameStatus="readonly"},addSection:function(e,t=true){if(undefined===e.sections){e.sections=[]}e.sections.push({id:Math.floor(Math.random()*1e5),name:"New section",report:e.id,fields:t?[this.createField()]:[],flags:"new"});this.$forceUpdate()},deleteField:function(e,t){var n=[];e.fields.map(function(e){if(e.id==t.id){return}n.push(e)});e.fields=n;this.$forceUpdate();this.closePopup();this.showToast("info","Field(s) successfully deleted")},putSections:function(t){const n=this;if(!this.checkSections(t)){this.showToast("warning","template cannot be saved with unnamed fields");return}this.sendData("PUT","/api/report/types/"+t.uid+"/sections",t.sections,function(e){e.json().then(function(e){n.selectedReportType.sections=e.sections;if(0==e.sections.length){n.addSection(t,false)}n.loadCustomFields();n.$forceUpdate();n.showToast("info","Report template successfully saved")})})},createField:function(){return{id:Math.floor(Math.random()*1e5),name:"",placeholder:"",type:"alphanum",parameters:Object.assign({},defaultFieldParameters),help:"",status:false,flags:"new"}},addField:function(e){if(undefined==e.fields){e.fields=[]}e.fields.push(this.createField());this.$forceUpdate()},openPopup:function(e){this.popup.customStyle=undefined==e?{}:e;jQuery.magnificPopup.open({items:{src:".popup",type:"inline"}})},preview:function(){this.popup.action="preview";this.openPopup({maxWidth:1050+"px"});this.$forceUpdate()},closePopup:function(){jQuery.magnificPopup.close()},confirmReportDeletion:function(){this.popup.content="Please note that by deleting this template you will no longer have access to the data related to the specific fields that you have saved before.";this.popup.remark="Are you sure  you want to delete this template?";this.popup.action="delete";this.openPopup()},promptFieldDeletion:function(e,t){this.popup.context=[e,t];this.popup.remark="Are you sure  you want to delete this field?";this.popup.content="Please note that by deleting this field you will no longer have access to the  related data that you have saved before.";this.popup.action="delete-field";this.openPopup()},promptRollback:function(e){this.popup.context=e;this.popup.content="Please note that you will go back to your previous registration and lose your last changes.";this.popup.remark="Are you sure you want to go back to your previous registration?";this.popup.action="rollback";this.openPopup()},setBooleanDefault:function(e,t){e.parameters.boolean_default=t;this.$forceUpdate()},checkField:function(e){this.$forceUpdate()},checkSections:function(e){let t=[];e.sections.map(function(e){e.fields.map(function(e){if(""==e.name.trim()){t.push(`Field with empty name`)}if(""==e.type.trim()){t.push(`${e.name} does not have a type selected`)}})});return 0==t.length}},directives:{switchery:{inserted:function(e,t,n){new Switchery(e,{size:"small",color:"#1E90FF"});const i=document.querySelector(".js-check-change");if(null==i){return}i.onchange=function(){n.context.$forceUpdate()}}},focus:{inserted:function(e){Vue.nextTick(function(){e.focus()})}},select2:{inserted:function(t,n,e){$(t).val(n.value.parameters.dropdown_options);Vue.nextTick(function(){$(t).select2({placeholder:"Add or remove options",allowClear:true,multiple:true,tags:true});$(t).on("change",function(){const e=$(t).val();n.value.parameters.dropdown_options=e})})}},select2query:{inserted:function(t,n,i){$(t).val(n.value.parameters.lookup_query);Vue.nextTick(function(){$(t).select2({placeholder:"Select an option",templateSelection:formatParentState,templateResult:formatGroupLabel});$(t).on("change",function(){const e=$(t).val();n.value.parameters.lookup_query=e;i.context.$forceUpdate()})})}},tinymce:{inserted:function(e){Vue.nextTick(function(){tinymce.init({selector:"textarea.tinymce_text",height:100,menubar:false,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"//www.tiny.cloud/css/codepen.min.css",init_instance_callback:function(e){e.setMode("readonly")}})})}},select:{twoWay:true,bind:function(t,e,n){$(t).select2().on("select2:select",function(e){t.dispatchEvent(new Event("change",{target:e.target}));n.context.$forceUpdate()})},componentUpdated:function(e,t){$(e).trigger("change")}}},mounted:function(){this.getReportTypes();this.loadCustomFields()},updated:function(){this.$nextTick(function(){$(".type_select").select2({templateResult:formatGroupLabel})})}};function startReportTypesApp(e){const t=document.getElementById(undefined!=e?e:"reportTypesApp");if(null==t){return null}return new Vue(reportTypesAppSpecification)}const reportTypesApp=startReportTypesApp();(function(l){function e(e,t){var n=[];var i=t;var r={};var a=t;for(var o=0;o<e.length;o++){r={};r.assetId=e[o].id;var i=parseFloat(e[o].free_credits)-parseFloat(a);r.remainAmmount=i<0?0:i;if(i<0)r.spent=parseFloat(e[o].free_credits);else r.spent=a;n.push(r);if(i>=0)return n;else a=a-e[o].free_credits}}l("body").on("click",".read-free-subscribed-report",function(e){var t=l(this).data("read-method"),n=l(this).data("read-provider"),i=l(this).data("read-title"),r=l(this).data("read-id"),a=l(this).data("read-language"),o=l(this).data("read-investor"),s=l("[data-page-title]").data("page-title");ga("send","event","button","ReadNow"+t,s,1,{provider:n,title:i,id:r,language:a,investor:o})});l("body").on("click",".final-read-report",function(e){var t=l(this).data("read-provider"),n=l(this).data("read-title"),i=l(this).data("read-id"),r=l(this).data("read-language"),a=l(this).data("read-investor"),o=l("[data-page-title]").data("page-title");ga("send","event","button","ReadNowFinal",o,1,{provider:t,title:n,id:i,language:r,investor:a})});l("body").on("click",".close-current-popup",function(e){var t=l.magnificPopup.instance;t.close()});l.fn.createCookie=function(e,t,n){if(n){var i=new Date;i.setTime(i.getTime()+n*24*60*60*1e3);var r="; expires="+i.toGMTString()}else var r="";document.cookie=e+"="+t+r+"; path=/"};l.fn.readCookie=function(e){var t=e+"=";var n=document.cookie.split(";");for(var i=0;i<n.length;i++){var r=n[i];while(r.charAt(0)==" ")r=r.substring(1,r.length);if(r.indexOf(t)==0)return r.substring(t.length,r.length)}return null};l.fn.eraseCookie=function(e){l.fn.createCookie(e,"",-1)}})(jQuery);window.SibConversationsSetup={language:"en"};(function(e,t,n){t.SibConversationsID="5a5c6964e694aa6ba669853e";t[n]=t[n]||function(){(t[n].q=t[n].q||[]).push(arguments)};var i=e.createElement("script");i.async=true;i.src="https://conversations-widget.sendinblue.com/sib-conversations.js";if(e.head)e.head.appendChild(i)})(document,window,"SibConversations");$.ajax({url:"/get-user-info",dataType:"json",async:false,success:function(e){var t="",n="",i="";if(e.email!=undefined&&e.email!=undefined!=""){i=e.email;if(e.surname!=undefined&&e.surname!=undefined!=""){n=e.surname}if(e.name!=undefined&&e.name!=undefined!=""){t=e.name}var r={email:i,firstName:t,lastName:n,notes:"contact from logged in user"};SibConversations("updateIntegrationData",r)}else{window.localStorage.removeItem("SibConversations.clientId");var r={email:null,firstName:null,lastName:null,notes:"contact from non logged user"};SibConversations("updateIntegrationData",r);SibConversations("kill");SibConversations("restart")}}});(function(e){});const createVueApp=function(e,t){const n=new Vue(t);n.$mount(e);return n};const bootVueApp=function(e,t){const n=document.getElementById(e);if(null===n){console.error("No container with the id "+e+" was found on this page. Vue Boot has been stopped.");return}return createVueApp(n,t)};Vue.component("select2",{props:["options","value"],mounted:function(){var e=this;$(this.$el).select2({data:this.options,width:"100%"}).val(this.value).trigger("change").on("change",function(){e.$emit("input",this.value)})},watch:{value:function(e){$(this.$el).val(e).trigger("change")},options:function(e){$(this.$el).empty().select2({data:e})}},destroyed:function(){$(this.$el).off().select2("destroy")},template:`
    <select>
      <slot></slot>
    </select>
`});(function(e){e(".scroll-down-button").on("click",function(){e("html, body").animate({scrollTop:e("#about-us").offset().top},1e3)});providerProfileCoverage();e(".read-more-details").on("click",function(){if(e(".provider-detail-wrapper .sub-body").hasClass("open")){e(this).html("<a class='read-more-link' href='javascript:;''>MORE <i class='fa fa-chevron-down'></i></a>");e(".provider-detail-wrapper .sub-body").removeClass("open");e(".provider-detail-wrapper .sub-body").addClass("has-more")}else{e(this).html("<a class='read-more-link' href='javascript:;''>LESS <i class='fa fa-chevron-up'></i></a>");e(".provider-detail-wrapper .sub-body").addClass("open");e(".provider-detail-wrapper .sub-body").removeClass("has-more")}})})(jQuery);$(document).ready(function(){$(".elastic-search.desktop_variant").css("display","block");$(".vertical_bar_left").css("visibility","visible")});function providerProfileCoverage(){if($(".provider-detail-wrapper .sub-body").height()>300&&$(window).width()<992){$(".provider-detail-wrapper .sub-body").addClass("has-more");$(".read-more-details").show()}else{$(".read-more-details").hide();$(".provider-detail-wrapper .sub-body").removeClass("has-more")}}(function(n){n(".table-sort-container .tabs li").on("click",function(){n(this).addClass("active").siblings().removeClass("active");n(".tabs-content-wrapper").find(".tab-content").eq(n(this).index()).addClass("active").siblings().removeClass("active")});n(document).delegate(".table-name.has-items","click",function(){var e=n(this);var t=e.data("user-id");if(!e.hasClass("open")){e.addClass("open");e.closest("tbody").find("tr.row-item-parent-id-"+t).show()}else{e.removeClass("open");e.closest("tbody").find("tr.row-item-parent-id-"+t).hide()}})})(jQuery);function getOverflow(e){return e[0].scrollWidth>e.innerWidth()}function renderedText(e){var t=s=e.text();if(s.length>250){s=s.slice(0,250)}while(s.length&&getOverflow(e)){s=s.slice(0,-1);e.text(s+".")}e.text(t);return s}(function(e){e(".open-popup-link").magnificPopup({type:"inline",midClick:true})})(jQuery);(function(e){e("select.enable-select2").each(function(){if(e(this).data("select2-disabled")!=true){e(this).select2({minimumResultsForSearch:7});e(this).data("select2-activated",true)}});e("#all_interest_for_email_alerts").find(".all_interest_for_email_alerts").select2({placeholder:"Select one or multiple interests",minimumResultsForSearch:-1})})(jQuery);(function(a){if(a("#checkout-empty-cart").length){a.magnificPopup.open({items:{src:"#checkout-empty-cart"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}a("body").on("click",".js-subscription-popoup-info",function(){a.magnificPopup.open({items:{src:".subscription-info-banner-popup"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"mfp-subscription-popup-wrap"},0)});var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;a("#site-navigation .dropdown i").on("click",function(e){e.preventDefault();a(this).parents(".dropdown").toggleClass("open")});function o(e){e+="";x=e.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var t=/(\d+)(\d{3})/;while(t.test(x1)){x1=x1.replace(t,"$1"+" "+"$2")}return x1+x2}a(document).delegate(".apply_search_filter_btn","click",function(e){a(document).ready(function(){var e=window.location.pathname;var t=120;var n=["/provider-tools/permissioning/add-entitlement-offer","/provider-tools/publication-manager/distribution","/buyer-tools/consumption-statistics/overview","/login","/buyer-tools/settings/organisation-structure","/buyer-tools/provider-manager/classification","/buyer-tools/provider-manager/budget-allocation/logs","/buyer-tools/provider-manager/budgeting","/buyer-tools/provider-manager/agreements/logs","/buyer-tools/provider-manager/agreements","/buyer-tools/publication-manager/templates","/calendar","/buyer-tools/publication-manager/reports","/login","/restore-password","/my-entitlements","/buyer-tools/add-entitlement-request","/provider-tools/settings/users-analysts","/register","/notifications","/my-billing-history","/provider-tools/permissioning/entitlements","/admin/settings/users","/provider-tools/settings/general","/buyer-tools/settings/general","/buyer-tools/budget-permissioning/entitlements","/account-profile","/my-reports","/account-email-notifications","/calendar","/account-entitlements"];var i=n.indexOf(e);if(i==-1){popupTimeout=setTimeout(function(){var e="empty";var n="";a(".rp-data-count").attr("data-total-number-items",t);a.request("reportSearch::onFetchReportCount",{data:{empty:e},complete:function(e){n=e.responseJSON.resultHtml;var t=parseInt(n);totalnum=o(t);a("h5 span.ajax-total-records").text(totalnum);a(".rp-data-count").attr("data-total-number-items",n)}})},5e3)}})});a(document).ready(function(){var t=120;var e=window.location.pathname;var n=["/provider-tools/permissioning/add-entitlement-offer","/provider-tools/publication-manager/distribution","/buyer-tools/consumption-statistics/overview","/buyer-tools/settings/organisation-structure","/buyer-tools/provider-manager/classification","/buyer-tools/provider-manager/budget-allocation/logs","/buyer-tools/provider-manager/budgeting","/buyer-tools/provider-manager/agreements/logs","/buyer-tools/provider-manager/agreements","/buyer-tools/publication-manager/templates","/calendar","/buyer-tools/publication-manager/reports","/login","/restore-password","/my-entitlements","/buyer-tools/add-entitlement-request","/provider-tools/settings/users-analysts","/register","/notifications","/provider-tools/permissioning/entitlements","/my-billing-history","/admin/settings/users","/provider-tools/settings/general","/buyer-tools/settings/general","/buyer-tools/budget-permissioning/entitlements","/account-profile","/my-reports","/account-email-notifications","/calendar","/account-entitlements"];var i=n.indexOf(e);if(i==-1){popupTimeout=setTimeout(function(){var e="empty";var n="";a(".rp-data-count").attr("data-total-number-items",t);a.request("reportSearch::onFetchReportCount",{data:{empty:e},complete:function(e){n=e.responseJSON.resultHtml;var t=parseInt(n);totalnum=o(t);a("h5 span.ajax-total-records").text(totalnum);a(".rp-data-count").attr("data-total-number-items",n)}})},5e3)}adjustColumnsWidth();var r=a(".coverage .details").height()-68;a(".coverage .results-wrapper").css({maxHeight:r+22+"px"})});a(window).on("resize",function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;if(t!=e){t=e;adjustColumnsWidth()}a("#tblAnalyticsOverview tr.dropdown").each(function(e,t){if(a(window).width()<1300){if(a(this).hasClass("no-border")){a(this).next("dropdown-child").css("display","block")}else{a(this).next("dropdown-child").css("display","none")}}});a("#tblAnalyticsOverview tr.dropdown").each(function(e,t){if(a(window).width()>1300){if(a(this).hasClass("no-border")){a(this).next("dropdown-child").css("display","table-row")}else{$$(this).next("dropdown-child").css("display","none")}}});providerProfileCoverage()})})(jQuery);(function(t){var e,n=t(this).parents("[data-page-title]").data("page-title");t("#pay-sec-now").on("click",function(){ga("send","event","button","PaySecurelyNow",n);t("#payment-button-overlay").show();t(".stripe-button-el").trigger("click")});t("#pay-sec-now-free").on("click",function(e){t("#payment-button-overlay").show();ga("send","event","button","PaySecurelyNow",n)});t(document).on("DOMNodeRemoved",".stripe_checkout_app",i);function i(){t("#payment-button-overlay").find("img").show();clearTimeout(e);e=setTimeout(function(){t("#payment-button-overlay").hide();t("#payment-button-overlay").find("img").hide()},5e3)}})(jQuery);(function(e){e(".pagination").find("a").on("click",function(){if(!e(this).hasClass("prev-button")&&!e(this).hasClass("next-button")){e(this).parents(".pagination").find(".active").removeClass("active");e(this).parent().addClass("active")}})})(jQuery);(function(e){e(window).on("ajaxErrorMessage",function(e,t){e.preventDefault()})})(jQuery);(function(n){n("#search-results").on("ajaxUpdate",function(){n("html, body").animate({scrollTop:0},300)});if(n(".companies_select_select2_ajax").length){n(".companies_select_select2_ajax").select2({theme:"Search-Filter-Company",minimumInputLength:1,placeholder:"Enter a Company, ISIN or Ticker",ajax:{url:"/search-autocomplete-companies",dataType:"json",type:"GET",delay:150}})}if(n("#search-form").length&&window.location.href.indexOf("/report-search")>-1&&window.location.href.indexOf("selected-filter=")==-1){n(window).bind("pageshow",function(){if(window.location.href.indexOf("/report-search?")>-1){var e=window.location.href.match(/[a-z\d]+=[a-z\d]+/gi);var t=e?e.length:0;if(t==1&&n("#search-form").find('input[type="checkbox"]:checked').length+n("#search-form").find("input[type=hidden]").length>2){}else if(n("#search-form").find('input[type="checkbox"]:checked').length+n("#search-form").find("input[type=hidden]").length>3){}else if(n("#search-form").find('input[type="checkbox"]:checked').length>0){}else if(n("#search-form").find("select.dashboard_order_by_date").val()){n("#search-form").submit()}}else if(n("#search-form").find("select.dashboard_order_by_date").val()){n("#search-form").submit()}})}n("#change_query_terms").on("click",function(){n("#search-form input.form_submitted_from_search").val(1)});n("#search-form-filters-wrap").on("click",".search-form-box .view-more",function(){n(this).parent().toggleClass("view-all");n(this).toggleClass("view-less")});n("#search-form-filters-wrap").on("click",".search-form-box h4",function(){n(this).parent().toggleClass("collapsed");n(this).parent().find(".inputs-wrap").slideToggle("fast")});n("#save-searches-filters").on("click",".search-form-box h4",function(){n(this).parent().toggleClass("collapsed");n(this).parent().find(".inputs-wrap").slideToggle("fast")})})(jQuery);(function(e){e(".buttons-wrap-investor-type > button").on("click",function(){if(e(this).hasClass("professional-user")){e(".vat-number").removeClass("hidden");e("#registerVat").prop("required",true)}else{e(".vat-number").addClass("hidden");e("#registerVat").prop("required",false)}})})(jQuery);(function(e){e("#homepage-popup #accountCountry").on("change",function(){if(e(this).val()==1){e(this).parents("form").find('select[name="enter_site_currency"]').val("gbp")}else if(e(this).val()==2){e(this).parents("form").find('select[name="enter_site_currency"]').val("eur")}else{e(this).parents("form").find('select[name="enter_site_currency"]').val("usd")}})})(jQuery);(function(t){t("#mc-embedded-subscribe").on("click",function(){ga("send","event","button","NewsletterSignUp","Homepage")});t(".contact-us-wrap a").on("click",function(){var e=t(this).parents("[data-page-title]").data("page-title");ga("send","event","button","ContactUs",e)});t(".download-button").on("click",function(){var e=t(this).parents("[data-page-title]").data("page-title");ga("send","event","button","DownloadPDF",e)});if(t("#trigger-google-analytics-script").length){var e=t("h5.report-title").html();ga("send","event","button","DownloadPDF",e)}})(jQuery);(function(n){n("[name='newsletter_value']").bootstrapSwitch({onColor:"primary",offColor:"warning",size:"mini",onText:"YES",offText:"NO"});n("[name='invoicing_use_pers_details_value']").bootstrapSwitch({onColor:"primary",offColor:"warning",size:"mini",onText:"YES",offText:"NO",onSwitchChange:function(e,t){if(t){n("#billing-details").slideUp()}else{n("#billing-details").slideDown()}}})})(jQuery);(function(g){function e(e,t,n){var i=null;e.onkeyup=function(){if(i){window.clearTimeout(i)}i=window.setTimeout(function(){i=null;t()},n)};e=null}e(document.getElementById("txtSearchBox"),t,500);g("#searchScopeOption").change(t);function t(){var e=g("#txtSearchBox").val();var m=g("#txtSearchBox").data("singleProviderMode");var v=g("#searchScopeOption").val();if(e&&e.length>0){var t="/search-autocomplete-msql/";if(v=="Interests"){t="/search-autocomplete-with-interests/"}else if(v=="Internal Research"){t="/search-autocomplete-with-internal-research/"}g.ajax({url:t+e,type:"get",success:function(e){var t="";var n=0;var r=0;if(v=="All Reports"){var a="<div class='search_result_single_item_heading'>Companies</div>";var o=!m?"<div class='search_result_single_item_heading'>Research Providers</div>":""}var s="<div class='search_result_single_item_heading'>Reports</div>";if(v=="All Reports"){if(e.companies.length==0){a+="<div class='search_result_single_item'><a class='no-highlight'>No Company Found</a></div>"}else{e.companies.sort((e,t)=>e.covered<t.covered?1:-1);for(i=0;i<e.companies.length;i++){var l="/company/"+e.companies[i].slug;var c="";if(e.companies[i].covered!=undefined&&e.companies[i].covered!=""){c=e.companies[i].covered}if(e.companies[i].ticker!=""&&e.companies[i].ticker!="N/A"&&e.companies[i].ticker!="Not applicable"){var d='<a href="'+l+'" style="display: inline-block;"><span style="display: inline-block;">'+e.companies[i].ticker+"</span>"+e.companies[i].name+"</a>"}else{var d='<a href="'+l+'"><span style="display: inline-block;"></span>'+e.companies[i].name+"</a>"}a+="<div class='search_result_single_item'>"+d+c+"</div>";r++}}if(!m){if(e.providers.length==0){o+="<div class='search_result_single_item'><a class='no-highlight'>No Provider Found</a></div>"}else{for(i=0;i<e.providers.length;i++){if(e.providers[i].name.length>0){var u="/provider/"+e.providers[i].slug;var p='<a href="'+u+'">'+e.providers[i].name+"</a>";o+="<div class='search_result_single_item'>"+p+"</div>";n++}}}}}if(e.reports.length==0){s+="<div class='search_result_single_item'><span><a class='no-highlight'>No Report Found</a></span></div>"}else{for(i=0;i<e.reports.length;i++){var f="/provider/"+e.reports[i].producer_slug+"/"+e.reports[i].slug;if(e.reports[i].category&&e.reports[i].category_name=="Press Release"){f="/company/"+e.reports[i].report_companies[0].slug+"/press/"+e.reports[i].slug}var h="";if(e.reports[i].title&&e.reports[i].title.length>0){h='<a href="'+f+'">'+e.reports[i].title+"</a>";s+="<div class='search_result_single_item'><span>"+h+"</span></div>"}}if(e.query.length>0){s+="<div class='search_result_single_item'><span><a class='no-highlight' style='cursor: pointer;' onclick='$(this).closest(\"form\").submit();'>Search all reports for <strong>"+e.query+"</strong></a></span></div>"}}t+='<div class="search_wrapper_reports">'+s+"</div>";if(v=="All Reports"){t+='<div class="search_wrapper_companies">'+a+"</div>";t+='<div class="search_wrapper_providers">'+o+"</div>"}if(t&&t.length>0){g("#tblSuggestions").show()}else{g("#tblSuggestions").hide()}g("#tableBodyAutocomplete").html(t);checkHighlightText();syncCompaniesTickers()},error:function(e,t,n){console.log(t,n)}})}else{g("#tblSuggestions").hide()}}var n=document.getElementById("txtSearchBoxMobile");if(n){e(n,r,500)}function r(){var e=g("#txtSearchBoxMobile").val();var t=g("#searchScopeOptionMobile").val();var n="/search-autocomplete/";if(t=="Interests"){n="/search-autocomplete-with-interests/"}if(e&&e.length>0){g.ajax({url:n+e,type:"get",success:function(e){var t="";var n="<div class='search_result_single_item_heading'>Companies</div>";var r="<div class='search_result_single_item_heading'>Reports</div>";var a="<div class='search_result_single_item_heading'>Research providers</div>";for(i=0;i<e.companies.length;i++){var o="/company/"+e.companies[i].slug;if(e.companies[i].ticker!=""&&e.companies[i].ticker!="N/A"&&e.companies[i].ticker!="Not applicable"){var s='<a href="'+o+'">'+e.companies[i].ticker+"&nbsp;&nbsp;&nbsp;&nbsp;"+e.companies[i].name+"</a>"}else{var s='<a href="'+o+'">'+e.companies[i].name+"</a>"}n+="<div class='search_result_single_item'>"+s+"</div>"}for(i=0;i<e.reports.length;i++){var l="/provider/"+e.reports[i].producer.slug+"/"+e.reports[i].slug;if(e.reports[i].category&&e.reports[i].category.name=="Press Release"){l="/company/"+e.reports[i].report_companies[0].slug+"/press/"+e.reports[i].slug}var c="";if(e.reports[i].title&&e.reports[i].title.length>0){c='<a href="'+l+'">'+e.reports[i].title+"</a>";r+="<div class='search_result_single_item'><span>"+c+"</span></div>"}}for(i=0;i<e.providers.length;i++){if(e.providers[i].name.length>0){var d="/provider/"+e.providers[i].slug;var u='<a href="'+d+'">'+e.providers[i].name+"</a>";a+="<div class='search_result_single_item'>"+u+"</div>"}}if(r!="<div class='search_result_single_item_heading'>Reports</div>"){t+=r}if(n!="<div class='search_result_single_item_heading'>Companies</div>"){t+=n}if(a!="<div class='search_result_single_item_heading'>Research providers</div>"){t+=a}if(t&&t.length>0){g("#tblSuggestionsMobile").show()}else{g("#tblSuggestionsMobile").hide()}g("#tableBodyAutocompleteMobile").html(t);checkHighlightTextMobile()},error:function(e,t,n){}})}else{g("#tblSuggestionsMobile").hide()}}})(jQuery);(function(s){s("input.saved_search_newsletter_checkbox").on("switchChange.bootstrapSwitch",function(e,t){s.request("account::onUpdateSavedSearchEmailNotification",{data:{state:t,item_id:s(this).data("item-id"),item_type:s(this).data("type")},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}});return false});s("select.all_saved_search_newsletter_checkboxes").on("change",function(e){s.request("account::onUpdateAllSavedSearchEmailNotifications",{data:{state:s(this).val()},complete:function(e){if(e.responseJSON.status=="01"){location.reload()}}});return false});s(document).delegate(".dashboard_mail_notification_switcher","change",function(e){var t=s(this);var n="false";if(t.val()==1){n="true"}var i=t.data("dashbord-item-id");var r=t.data("type");var a=t.data("search-filter-text");var o=t.data("saved-search-component-id");s.request("account::onUpdateDashboardSavedSearchEmailNotification",{data:{state:n,dashboard_item_id:i,search_filter_text:a,item_type:r,saved_search_component_id:o},complete:function(e){if(e.responseJSON.status=="00"){alert("Something went wrong, you can not edit this entry.")}}});return false});s("body").on("click",".delete_dashboard_saved_item",function(){var e=s(this).data("item-id");var t=s(this).parent().hasClass("active");var n='<div class="white-popup white-popup-register"><h4>Delete Interest</h4><p style="text-align: center;">Are you sure you want to permanently delete this Interest?</p><div class="new-popup-style-simple-buttons"><a class="btn btn-submit-blue cancel-delete-filters">No</a><a href="javascript:void(0)" class="btn brn-submit-blue delete_dashboard_saved_item_confirmed" data-item-id="'+e+'" data-is-current-saved-search="'+t+'">Yes</a></div></div>';if(s(this).data("saved-search")){n='<div class="white-popup white-popup-register" style="max-width: 460px;"><h4>Delete Saved Search</h4><p style="text-align: center;">Are you sure you want to permanently delete this Saved Search?</p><div class="new-popup-style-simple-buttons"><a class="btn btn-submit-blue cancel-delete-filters">No</a><a href="javascript:void(0)" class="btn brn-submit-blue delete_dashboard_saved_item_confirmed" data-item-id="'+e+'" data-is-current-saved-search="'+t+'">Yes</a></div></div>'}s.magnificPopup.open({items:{src:n},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)});s(document).delegate("a.delete_dashboard_saved_item_confirmed ,a.delete_dashboard_saved_item_confirmed_new","click",function(){s(this).attr("disabled","disabled");var e=s(this).attr("data-item-id");var t=s(this).attr("data-is-current-saved-search");if(e.length){s.request("dashboardSidebar::onDelete",{data:{saved_filter_id:e,is_current_saved_search:t},complete:function(e){if(e.responseJSON.status=="01"){location.reload()}}})}var n=s.magnificPopup.instance;n.close();s(this).removeAttr("disabled")});s(document).delegate("a.cancel-delete-filters","click",function(){var e=s.magnificPopup.instance;e.close()});s(document).ready(function(){if(document.location.hash!=""&&window.location.href.indexOf("/account#")>-1){var e=document.location.hash.replace("#","");if(s(".tab-content").find("#"+e).length){s("ul#account-tabs li").removeClass("active");s("ul#account-tabs").find("."+e).addClass("active");s(".tab-content .tab-pane").removeClass("active");s(".tab-content").find("#"+e).addClass("active")}}calculateCompanyAnalystsWidth();fullWidthAnalystListScroll()})})(jQuery);(function(f){function h(){var e=f(".has-overflow");var t=f(".overflow");e.mouseenter(function(){f(this).find(".overflow").show()});e.mouseleave(function(){f(this).find(".overflow").hide();t.mouseenter(function(){f(this).show()});t.mouseleave(function(){f(this).hide()})})}function m(){f("#layout-footer.footer-call").mouseover(function(){f("#layout-footer.footer-call").addClass("footer-call-hover")});f("#layout-footer.footer-call").mouseout(function(){setTimeout(function(){f("#layout-footer.footer-call").removeClass("footer-call-hover")},4e3)})}h();f(window).scroll(function(){var n=f("#load_more_reports");idleWait=7e3;if(n.length&&!n.hasClass("disable_ajax")){var e=f(window).scrollTop();var t=e+f(window).height();var i=f(n).offset().top;var r=i+f(n).height();if(r>=e&&i<=t&&r<=t&&i>=e){n.addClass("disable_ajax");f(".load-more-reports span").show();var a=f("#search-form").serializeArray();if(1<=a.length){a.push({name:"offset",value:f(".item-wrapper, .list-item-wrapper").length})}else if(0===a.length){a=Object.assign({},document.companyPageFilters,{offset:f(".item-wrapper, .list-item-wrapper").length})}setTimeout(function(){f.request("reportSearch::onAjaxLoadMore",{data:a,complete:function(e){f(".load-more-reports span").hide();if(e.responseJSON.status=="01"){f("#search-results .items-container").append(e.responseJSON.resultHtml);var t=".item-wrapper".length;if(n.attr("data-total-number-items")>t){n.removeClass("disable_ajax")}m();f.fn.renderQtipTooltips();h()}}})},1500);return false}}var o=f("#dashboard_load_more_reports");if(o.length&&!o.hasClass("disable_ajax")){var e=f(window).scrollTop();var t=e+f(window).height();var i=f(o).offset().top;var r=i+f(o).height();if(r>=e&&i<=t&&r<=t&&i>=e){o.addClass("disable_ajax");f(".load-more-reports span").show();if(f('#dashboard-filter-form input[name="access_types_filter"]').length){f('#dashboard-filter-form input[name="access_types_filter"]').val(JSON.stringify(f("#accessTypeSelect").serializeArray()))}if(f('#dashboard-filter-form input[name="access_language_filter"]').length){f('#dashboard-filter-form input[name="access_language_filter"]').val(JSON.stringify(f("#accessTypeSelectlang").serializeArray()))}if(f('#dashboard-filter-form input[name="tags_type_input"]').length){f('#dashboard-filter-form input[name="tags_type_input"]').val(JSON.stringify(f("#tagsTypeSelect").serializeArray()))}var a=f("#search-form").serializeArray();a.push({name:"offset",value:f(".item-wrapper, .list-item-wrapper").length});f.request("dashboardReportSearch::onAjaxLoadMore",{data:a,complete:function(e){f(".load-more-reports span").hide();if(e.responseJSON.status=="01"){f("#search-results .items-container").append(e.responseJSON.resultHtml);var t=f(".item-wrapper").length;if(o.attr("data-total-number-items")>t){o.removeClass("disable_ajax")}f.fn.renderQtipTooltips();h()}}});return false}}var s=f("#load_more_reports_for_provider");if(s.length&&!s.hasClass("disable_ajax")){var e=f(window).scrollTop();var t=e+f(window).height();var i=f(s).offset().top;var r=i+f(s).height();if(r>=e&&i<=t&&r<=t&&i>=e){s.addClass("disable_ajax");s.find("span").show();var l=[];l.push({name:"providerId",value:s.attr("data-provider-id")});l.push({name:"offset",value:f(".premium_reports_wrapper .table-reports-wrapper").find("tbody .report-table-item").length});f.request("reportSearch::onAjaxLoadMoreProviderReports",{data:l,complete:function(e){s.find("span").hide();if(e.responseJSON.status=="01"){f(".premium_reports_wrapper .table-reports-wrapper").find("tbody").append(e.responseJSON.resultHtml);stButtons.locateElements();var t=f(".premium_reports_wrapper .table-reports-wrapper").find("tbody .report-table-item").length;if(s.attr("data-total-number-items")>t){s.removeClass("disable_ajax")}}}});return false}}var c=f("#load_more_providers");if(c.length&&!c.hasClass("disable_ajax")){var e=f(window).scrollTop();var t=e+f(window).height();var i=f(c).offset().top;var r=i+f(c).height();if(r>=e&&i<=t&&r<=t&&i>=e){c.addClass("disable_ajax");c.find("span").show();var l=[];l.push({name:"offset",value:f(".provider-listing-wrapper .provider-listing").find(".provider-list").length});f.request("providerListing::onAjaxLoadMoreProducers",{data:l,complete:function(e){c.find("span").hide();if(e.responseJSON.status=="01"){f(".provider-listing-wrapper").find(".provider-listing").append(e.responseJSON.resultHtml);var t=f(".provider-listing-wrapper .provider-listing").find(".provider-list").length;if(c.attr("data-total-number-items")>t){c.removeClass("disable_ajax")}f.fn.renderQtipTooltips()}}});return false}}var d=f(".active .load_more_reports_for_company");if(d.length&&!d.hasClass("disable_ajax")){var e=f(window).scrollTop();var t=e+f(window).height();var i=f(d).offset().top;var r=i+f(d).height();if(r>=e&&i<=t&&r<=t&&i>=e){d.addClass("disable_ajax");d.find("span").show();var l=[];l.push({name:"companyId",value:d.attr("data-company-id")});l.push({name:"categoryId",value:d.attr("data-category-id")});l.push({name:"offset",value:f(".premium_reports_wrapper .tab-content .active .item-wrapper, .list-item-wrapper").length});f.request("companyDetail::onAjaxLoadMoreCompanyCategoryReports",{data:l,complete:function(e){d.find("span").hide();d.attr("data-total-number-items",e.responseJSON.numberItems);if(e.responseJSON.status=="01"){f(".premium_reports_wrapper .tab-content .active .items-container").append(e.responseJSON.resultHtml);var t=f(".premium_reports_wrapper .tab-content .active .item-wrapper").length;if(d.attr("data-total-number-items")>t){d.removeClass("disable_ajax")}f.fn.renderQtipTooltips();h()}}});return false}}var o=f("#load_more_reports_for_report_company");if(o.length&&!o.hasClass("disable_ajax")){var e=f(window).scrollTop();var t=e+f(window).height();var i=f(o).offset().top;var r=i+f(o).height();if(r>=e&&i<=t&&r<=t&&i>=e){o.addClass("disable_ajax");o.find("span").show();var l=[];l.push({name:"companyId",value:o.attr("data-report-company-id")});l.push({name:"offset",value:f(".premium_reports_wrapper .item-wrapper").length});f.request("reportSearch::onAjaxLoadMoreCompanyReports",{data:l,complete:function(e){o.find("span").hide();if(e.responseJSON.status=="01"){f(".premium_reports_wrapper .items-container").append(e.responseJSON.resultHtml);var t=f(".premium_reports_wrapper .item-wrapper").length;if(o.attr("data-total-number-items")>t){o.removeClass("disable_ajax")}f.fn.renderQtipTooltips();h()}}});return false}}var u=f(".active .load_more_reports_for_provider_tabs");if(u.length&&!u.hasClass("disable_ajax")){var e=f(window).scrollTop();var t=e+f(window).height();var i=f(u).offset().top;var r=i+f(u).height();if(r>=e&&i<=t&&r<=t&&i>=e){u.addClass("disable_ajax");u.find("span").show();if(u.data("partial-type")=="report_page"){var p="reportDetail::onAjaxLoadMoreProviderCategoryReports"}else{var p="providerDetail::onAjaxLoadMoreProviderCategoryReports"}var l=[];l.push({name:"providerId",value:u.attr("data-provider-id")});l.push({name:"categoryId",value:u.attr("data-category-id")});l.push({name:"offset",value:f(".premium_reports_wrapper .tab-content .active .item-wrapper, .list-item-wrapper").length});f.request(p,{data:l,complete:function(e){u.find("span").hide();if(e.responseJSON.status=="01"){f(".premium_reports_wrapper .tab-content .active .items-container").append(e.responseJSON.resultHtml);var t=f(".premium_reports_wrapper .tab-content .active .item-wrapper").length;if(u.attr("data-total-number-items")>t){u.removeClass("disable_ajax")}}f.fn.renderQtipTooltips();h()}});return false}}});f(".submit-filters-on-report-search").click(function(e){e.preventDefault();var t=f(this).closest("form");t.find("input[name=override_search_scope]").val(1);t.submit()});if(f("#search-form").length&&f(".search-page-content").length){f("#search-form .submit-filters-on-report-search").click(function(e){f("#search-form .additional-buttons").slideDown(150);f(this).slideUp(150)});f('#search-form input:not([type="hidden"])').on("change",function(){if(!f("#search-form").hasClass("interest-updated")){f("#search-form").addClass("interest-updated")}f("#search-form .submit-filters-on-report-search").slideDown(150);f("#search-form .additional-buttons").slideUp(150)});f(".update-interest").click(function(e){e.preventDefault();var t=f(this).closest("form");if(!t.hasClass("interest-updated")){t.addClass("interest-updated")}i(function(){location.reload()});return false});f(".new-interest").click(function(e){e.preventDefault();t(n);return false});f(".save-search").click(function(e){e.preventDefault();r(a);return false});if(f("#feed-header-search-page").length){f(".interest-info-text").each(function(){var e=renderedText(f(this));var t=e.split(",");var n=f(this).siblings("div.interest-info-tooltip");if(t.length==n.find("li").length&&e.length==f(this).text().length){n.remove()}else{f(this).addClass("ellipsis-hover");for(var i=0;i<t.length-1;i++){n.find("li:first").remove()}}})}(function e(){var t=f("#feed-header-search-page .interest-info .interest-info-item h4");var n=f("#feed-header-search-page .interest-info .interest-info-item .interest-info-tooltip");t.mouseenter(function(){f(this).next().show()});t.mouseleave(function(){f(this).next().hide();n.mouseenter(function(){f(this).show()});n.mouseleave(function(){f(this).hide()})})})()}if(f(".select-wrapper-report-search").length){f(".upload-company-csv .upload-csv").on("change",function(){var e=f(this).val();if(e!=""){var t=e.substring(e.lastIndexOf(".")+1,e.length);var n=f(this).attr("accept");if(typeof n!==typeof undefined&&n!==false){if(n.indexOf(t.toLowerCase())==-1){alert("Not allowed file extension");f(this).val("")}else{var i=new XMLHttpRequest;var r=f(this).closest("form")[0];var a=new FormData(r);i.onreadystatechange=function(){if(i.readyState===4){if(i.response){var n=JSON.parse(i.response);Object.keys(n).forEach(function(e){f("ul.select2-selection__rendered").append('<li class="select2-selection__choice" title="'+n[e]["ticker"]+" - "+n[e]["name"]+'"><span class="select2-selection__choice__remove" role="presentation">×</span>'+n[e]["ticker"]+" - "+n[e]["name"]+"</li>");f("[name='report_search_company_filter[]']").append('<option value="'+n[e]["id"]+'">'+n[e]["ticker"]+" - "+n[e]["name"]+"</option>");if(f("[name='report_search_company_filter[]']").val()==null){var t=[]}else var t=f("[name='report_search_company_filter[]']").val();t.push(n[e]["id"]);f("[name='report_search_company_filter[]']").val(t)});return false}}};i.open("post",r.getAttribute("action"),true);i.send(a)}}}});f(".select-wrapper-report-search .company-csv-button").click(function(){f(".upload-company-csv .upload-csv").click();return false})}function t(t){var e=f("#search-form");if(e&&e.length){var n=f("#NewInterestPopup");var i=n.find(".btn");i.on("click",function(e){e.preventDefault();if(!f(this).hasClass("disabled")){f(this).addClass("disabled");if(n.find('input[name="interest_name"]').val().trim()==""){n.find('input[name="interest_name"]').addClass("has-error");n.find("span.error").show();f(this).removeClass("disabled");return false}n.find('input[name="interest_name"]').removeClass("has-error");n.find("span.error").hide();f.magnificPopup.close();t()}});f.fn.showNewPopup(function(){f.magnificPopup.close()},"#NewInterestPopup")}}function n(){if(f('#NewInterestPopup input[name="interest_name"]').val().trim()!=""){setTimeout(function(){f.magnificPopup.open({items:{src:"#email-popup-interest"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple",callbacks:{close:function(){var e=f("#search-form").serializeArray();var t=f("#NewInterestPopup").find("input").serializeArray();var n=e.concat(t);f.request("reportSearch::onUpdateInterest",{data:n,complete:function(e){if(e.responseJSON.status=="01"){f.magnificPopup.close()}}})}}},0)},1);f("#email-popup-interest .save_email_notification_popup").click(function(e){e.preventDefault();e.stopPropagation();f("#NewInterestPopup").find('input[name="email_notification"]').val(1);f.magnificPopup.close();return false})}}function i(t){var e=f("#search-form");if(e&&e.length){var n=e.serializeArray();var i=f("#UpdateInterestPopup");n.push({name:"colour",value:i.data("colour")});n.push({name:"interestId",value:i.data("interest-id")});n.push({name:"interest_name",value:i.data("interest-name")});n.push({name:"update_from_search",value:1});f.request("reportSearch::onUpdateInterest",{data:n,complete:function(e){t()}})}}f.fn.showNewPopup=function(e,t){f.magnificPopup.open({items:{src:t},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){e()}}},0);f(t).find("input[checked]").prop("checked",true)};function r(t){var e=f("#search-form");if(e&&e.length){var n=f("#SavedSearchPopup");var i=n.find(".btn");i.on("click",function(e){e.preventDefault();if(!f(this).hasClass("disabled")){f(this).addClass("disabled");if(n.find('input[name="interest_name"]').val().trim()==""){n.find('input[name="interest_name"]').addClass("has-error");n.find("span.error").show();f(this).removeClass("disabled");return false}n.find('input[name="interest_name"]').removeClass("has-error");n.find("span.error").hide();f.magnificPopup.close();t()}});f.fn.showNewPopup(function(){f.magnificPopup.close()},"#SavedSearchPopup")}}function a(){if(f('#SavedSearchPopup input[name="interest_name"]').val().trim()!=""){setTimeout(function(){f.magnificPopup.open({items:{src:"#email-popup-saved-search"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple",callbacks:{close:function(){var e=f("#search-form").serializeArray();var t=f("#SavedSearchPopup").find("input").serializeArray();var n=e.concat(t);f.request("reportSearch::onCreateSavedSearch",{data:n,complete:function(e){if(e.responseJSON.status=="01"){f.magnificPopup.close()}}})}}},0)},1);f("#email-popup-saved-search .save_email_notification_popup").click(function(e){e.preventDefault();e.stopPropagation();f("#SavedSearchPopup").find('input[name="email_notification"]').val(1);f.magnificPopup.close();return false})}}f(document).delegate(".dashboard-filters-trigger","click",function(){if(window.location.pathname!="/report-search"){if(f(".extracted-report-content.show_rating_popup").length){f.fn.createCookie("redirect_after_rating","/report-search?selected-filter="+f(this).data("dashboard-filter-id"),1);f.magnificPopup.open({items:{src:"#reports_rating"},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}else{window.location="/report-search?selected-filter="+f(this).data("dashboard-filter-id")}return false}window.location="/report-search?selected-filter="+f(this).data("dashboard-filter-id")});f(".dashboard_filters_wrapper.dashboard_page").find(".dashboard_order_by_date").on("change",function(){if(f('#dashboard-filter-form input[name="dashboard_order_by_date"]').length){f('#dashboard-filter-form input[name="dashboard_order_by_date"]').val(f(this).val());searchByDashboardFilterForm()}});f(".dashboard_filters_wrapper.dashboard_page").find("#accessTypeSelect").on("change",function(){if(f('#dashboard-filter-form input[name="access_types_filter"]').length){f('#dashboard-filter-form input[name="access_types_filter"]').val(f("#accessTypeSelect").serializeArray());searchByDashboardFilterForm()}});f(".dashboard_filters_wrapper.dashboard_page").find("#accessTypeSelectlang").on("change",function(){if(f('#dashboard-filter-form input[name="access_language_filter"]').length){f('#dashboard-filter-form input[name="access_language_filter"]').val(f("#accessTypeSelectlang").serializeArray());searchByDashboardFilterForm()}});f(".dashboard_filters_wrapper.dashboard_page").find("#tagsTypeSelect").on("change",function(){var e=f("#tag_type_input").val();if(f('#dashboard-filter-form input[name="tags_type_input"]').length){f('#dashboard-filter-form input[name="tags_type_input"]').val(f("#tagsTypeSelect").serializeArray());searchByDashboardFilterForm()}});f(".dashboard_filters_wrapper.report_search_page").find(".dashboard_order_by_date").on("change",function(){f("#search-form").submit()});var e=f("#stoksList tr");f("#stocksListingSearchBox").keyup(function(){var t=f.trim(f(this).val()).replace(/ +/g," ").toLowerCase();e.show().filter(function(){var e=f(this).text().replace(/\s+/g," ").toLowerCase();return!~e.indexOf(t)}).hide()});var o=f("#providerReportsList tr");f("#reportsListingSearchBox").keyup(function(){var t=f.trim(f(this).val()).replace(/ +/g," ").toLowerCase();o.show().filter(function(){var e=f(this).text().replace(/\s+/g," ").toLowerCase();return!~e.indexOf(t)}).hide()});f(document).on("click",".js_provider_follow",function(){var n=f(this);n.attr("disabled","disabled");var e=n.attr("data-provider-id");var t=n.attr("data-is-listing-page");var i="true";var r="onProviderFollow";f.request(r,{data:{provider_id:e,is_on_dashboard:i},complete:function(e){if(e.responseJSON.state=="01"){n.addClass("already_following");n.addClass("is-followed");n.text("Following");if(e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;f.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)}f.request("dashboardSidebar::onRenderSidebarPeriodically",{complete:function(e){}})}else if(e.responseJSON.state=="02"){n.removeClass("already_following");n.text("Follow")}}});n.removeAttr("disabled");return false});f(".js_company_follow").click(function(){if(!f(this).hasClass("already_following")){var n=f(this);n.attr("disabled","disabled");var e=n.attr("data-company-id");if(f(this).data("page-type")=="reportDetail"){var t="reportDetail::onCompanyFollow"}else{var t="companyDetail::onCompanyFollow"}f.request(t,{data:{company_id:e},complete:function(e){if(e.responseJSON.state=="01"){n.addClass("already_following");n.addClass("is-followed");n.text("Following");if(e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;f.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)}f.request("dashboardSidebar::onRenderSidebarPeriodically",{complete:function(e){}})}else if(e.responseJSON.state=="02"){n.removeClass("already_following");n.text("Follow")}}});n.removeAttr("disabled")}return false});f(".js_analyst_follow").click(function(){if(!f(this).hasClass("already_following")){var n=f(this);n.attr("disabled","disabled");var e=n.attr("data-analyst-id");if(f(this).data("page-type")=="reportDetail"){var t="reportDetail::onAnalystFollow"}else{return null}f.request(t,{data:{analyst_id:e},complete:function(e){if(e.responseJSON.state=="01"){n.addClass("already_following");n.addClass("is-followed");n.text("Following");if(e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;f.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)}f.request("dashboardSidebar::onRenderSidebarPeriodically",{complete:function(e){}})}else if(e.responseJSON.state=="02"){n.removeClass("already_following");n.text("Follow")}}});n.removeAttr("disabled")}return false});f("a.image-expand").click(function(){var e=f.magnificPopup.instance;e.close();f.magnificPopup.open({items:{src:f(this).attr("href")},type:"image",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate hide_image_popup">&times;</button>',callbacks:{close:function(){return false}}},0);return false});f(document).delegate(".hide_image_popup","click",function(){var e=f.magnificPopup.instance;e.close();return false})})(jQuery);function searchByDashboardFilterForm(){if($("#dashboard-filter-form").length){if($("#accessTypeSelect").length){$('#dashboard-filter-form input[name="access_types_filter"]').val(JSON.stringify($("#accessTypeSelect").serializeArray()))}if($("#accessTypeSelectlang").length){$('#dashboard-filter-form input[name="access_language_filter"]').val(JSON.stringify($("#accessTypeSelectlang").serializeArray()))}if($("#tagsTypeSelect").length){$('#dashboard-filter-form input[name="tags_type_input"]').val(JSON.stringify($("#tagsTypeSelect").serializeArray()))}setTimeout(function(){$("#dashboard-filter-form").request("onSearch",{complete:function(e){}});return false},100)}}function adjustColumnsWidth(){var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;$(".sections-wrap").each(function(e){if($(this).find(".section-left").length&&$(this).find(".section-right").length){var t=$(this).find(".section-left");var n=$(this).find(".section-right");t.css({minHeight:0});n.css({minHeight:0});if(i>=1025){if(t.outerHeight()>n.outerHeight()){n.css({minHeight:t.outerHeight()})}else{t.css({minHeight:n.outerHeight()})}}}})}function calculateCompanyAnalystsWidth(){var e=$(".company-analysts-list ul").find("li").length;var t=e*535;if(e>1){$(".company-analysts-list ul").css("width",t)}}function fullWidthAnalystListScroll(){if($(".analyst.full-width-content").length){var e=$(".analyst.full-width-content ul li");var t=e.outerWidth(true);var n=$(".analyst.full-width-content .analysts-list").outerWidth(true);var i=$(".analyst.full-width-content .analysts-list ul");if(e.length>4){i.width("")}else{i.width("")}}}(function(r){r(document).ready(function(){var e=window.location.href;var t="selected-filter";if(e.indexOf(t)!=-1){var n=e.split("?");if(n[1].indexOf(t)!=-1){r("form#search-form").addClass("interest-search-page-form")}}r("#searchScopeOption").select2({theme:"SearchScope",minimumResultsForSearch:-1,placeholder:"Select search scope"});r(".dashboard_order_by_date").select2({minimumResultsForSearch:-1});r(".orgdropdown").select2({minimumResultsForSearch:-1});r(".signupCountryList").select2({});r(window).resize(function(){var e=r("#search-results");if(e.length){r("#list-top-head").width(e.width());r(".header-container").width(e.width())}var e=r(".wh-nav.has-portal-link");if(e.length){}var t=r("#tblSuggestions");var n=r(window).height()-50;if(n<t.height()){t.height(n-60)}else{t.height("100%");if(n<t.height()){t.height(n-60)}}});i.on("change","#tblSuggestions",function(){var e=r("#tblSuggestions");var t=r(window).height();if(t<e.height()){e.height(t-110)}else{e.height("100%");if(t<e.height()){e.height(t-110)}}})});var i=r(".elastic-search");var e=r('select[name="search_scope"]').find("option:selected").text();if(e=="Interests"){r('input[name="query"]').attr("placeholder","Search on Interests")}else if(e=="Internal Research"){r('input[name="query"]').attr("placeholder","Search on Internal Research")}else{r('input[name="query"]').attr("placeholder","Search on All Reports")}i.on("click",".search-clear",function(){i.find("#txtSearchBox").val("");i.find(".suggestions").hide();r("#txtSearchBox").val("");setTimeout(function(){i.removeAttr("style")},300)});i.on("change keyup","#txtSearchBox",function(){if(r("#txtSearchBox").val()!=""){i.find(".search-clear").show()}else{i.find(".search-clear").hide()}});i.on("submit",function(){var e=i.find('input[name="query"]').val();var t=i.find('select[name="search_scope"]').val();var n=a(i.attr("action"),"search-term",e);if(t.length){n=a(n,"search-scope",t)}i.attr("action",n)});function a(e,t,n){var i="";var r=e.split("?");var a=r[0];var o=r[1];var s="";if(o){r=o.split("&");for(var l=0;l<r.length;l++){if(r[l].split("=")[0]!=t){i+=s+r[l];s="&"}}}var c=s+""+t+"="+n;return a+"?"+i+c}function t(){var e=['Try "Coca Cola"','Try "US Macro Report"','Try "Edison Investment Research"'],t=r("#txtSearchBox"),n=Math.floor(Math.random()*e.length),i=e[n];if(i==t.attr("placeholder")){if(n+1>e.length){n=n-1}else{n=n+1}i=e[n]}t.attr("placeholder",i)}})(jQuery);$(document).ready(function(){function n(e){if($(e).children().length>0){$(e).children(".image_document").click()}else{$(".image_document").click()}}function i(e){if($(e).children().length>0){$(e).children(".only_pdf_document").click()}else{$(".only_pdf_document").click()}}$(".image_doc_btn").click(function(e){var t=$(e.target);if(t.is(".image_doc_btn")){n(t)}});$(".only_pdf_btn").click(function(e){var t=$(e.target);if(t.is(".only_pdf_btn")){i(t)}})});$(document).ready(function(){$(".row_position").sortable();$(".row_position").disableSelection();$(".row_position").sortable({cancel:".blueli"})});(function(r){r(".btn_categories").click(function(){if(r(this).hasClass("full")||r(this).hasClass("simple")){r(this).toggleClass("check-1")}else if(r(this).hasClass("restricted")){r(this).toggleClass("check-2")}if(r(".btn-progress-next.dashboard_categories_show_tmp_popup_before_submit").length&&(r(this).hasClass("full")||r(this).hasClass("restricted"))){r(".btn-progress-next.dashboard_categories_show_tmp_popup_before_submit").removeClass("dashboard_categories_show_tmp_popup_before_submit")}if(r(this).hasClass("check-1")||r(this).hasClass("check-2"))r(this).next("input").prop("checked",true);else r(this).next("input").attr("checked",false)});r(document).ready(function(){r(".companyPicker").select2({minimumInputLength:1,placeholder:"Select Company",tags:[],ajax:{url:"/search-autocomplete-companies",dataType:"json",type:"GET",quietMillis:50}});var e=r('select[name="search_scope"]').find("option:selected").text();if(e=="Interests"||e=="Internal Research"){r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("color","#2F3542");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("background-color","#FF6B81");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("border-top-left-radius","4px");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("border-bottom-left-radius","4px");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("height","39px");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("margin-left","-1px");r("#inputSearchGroup").css("height","38px")}else{r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("color","#2F3542");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("background-color","#CED6E0");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("border-top-left-radius","4px");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("border-bottom-left-radius","4px");r("#inputSearchGrouph .select2-container--SearchScope .select2-selection--single").css("height","36px");r("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("margin-left","0px");r("#inputSearchGroup").css("height","unset")}});r(document).on("click","a.delete_company",function(){var e=r(this).data("company-id");if(e!=""&&e!=null){var t="thirdstep::onDeleteCompany";r.request(t,{data:{company_id:e},complete:function(e){if(e.responseJSON.status=="01"){r.fn.renderSidebarAutocompleteData();r(".companyPicker").select2({minimumInputLength:1,placeholder:"Select Company",tags:[],ajax:{url:"/search-autocomplete-companies",dataType:"json",type:"GET",quietMillis:50}})}}})}return false});r(document).delegate("#dashboard-setup-companies-block select#companyPicker","change",function(){var e=r("select#companyPicker").val();if(e!=""&&e!=null){var t="thirdstep::onChangeCompanySelect";r.request(t,{data:{company_ids:e},complete:function(e){if(e.responseJSON.status=="01"){r.fn.renderSidebarAutocompleteData();r(".companyPicker").select2({minimumInputLength:1,placeholder:"Select Company",tags:[],ajax:{url:"/search-autocomplete-companies",dataType:"json",type:"GET",quietMillis:50}});if(e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;r.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}}}})}return false});r(document).delegate("#dashboard-panel .wh-group span","click",e);function e(){var e=r(this).parent().siblings(".wh-group-content");if(r(this).hasClass("open")){e.slideDown()}else{e.slideUp()}r(this).toggleClass("open").toggleClass("closed")}r(".sidebar-action").off().on("click",t);function t(){r(".wh-panel.side").toggleClass("collapsed");r(".wh-panel.main").toggleClass("expanded");r(this).toggleClass("collapsed")}r(document).delegate(".custom-select .selector","click",n);function n(){var e=r(this).siblings("ul");var t=r(this).siblings(".search-countries");var n=r(this).siblings(".company_name_ticker_isin");if(r(this).hasClass("open")){e.slideUp(150);t.hide();n.hide()}else{t.show();n.show();e.slideDown(150);t.focus();n.focus()}r(this).toggleClass("open").toggleClass("closed").change()}r(document).delegate(".custom-select .selector","click",function(){if(r(".custom-select .selector").not(r(this)).hasClass("open")){r(".custom-select .selector").not(this).siblings("ul").slideUp(150);r(".custom-select .selector").not(this).each(function(){if(r(this).hasClass("open")){r(this).removeClass("open").addClass("closed").change()}else{r(this).removeClass("open").addClass("closed")}});r(".custom-select .selector").not(this).siblings(".search-countries").hide();r(".custom-select .selector").not(this).siblings(".company_name_ticker_isin").hide()}});r("body").click(function(e){if(!r(e.target).closest(".custom-select ul, .custom-select .selector.open, .search-countries, .company_name_ticker_isin, .ui-autocomplete").length){r(".custom-select .selector").not(this).siblings("ul").slideUp(150);r(".custom-select .selector").each(function(){if(r(this).hasClass("open")){r(this).removeClass("open").addClass("closed").change()}else{r(this).removeClass("open").addClass("closed")}});r(".custom-select .selector").not(this).siblings(".search-countries").hide();r(".custom-select .selector").not(this).siblings(".company_name_ticker_isin").hide()}});r.fn.renderSidebarAutocompleteData=function(){r("input#search_companies").autocomplete({source:function(e,t){r.ajax({url:"/search-company-sidebar/"+e.term,dataType:"jsonp",success:function(e){t(e)}})},appendTo:".company .input-group",select:function(e,t){if(t.item.label!=""){i(t.item.id)}}})};r.fn.renderSidebarAutocompleteData();function i(e){if(e!=""){r.request("dashboardSidebar::onSave",{data:{company_name:e},complete:function(e){if(e.responseJSON.status=="01"){if(r("#dashboard-setup-companies-block").length){r(".companyPicker").select2({minimumInputLength:1,placeholder:"Select Company",tags:[],ajax:{url:"/search-autocomplete-companies",dataType:"json",type:"GET",quietMillis:50}})}r.fn.renderSidebarAutocompleteData();if(r("#search-results").length){var t=r("#dashboard-filter-form").find('input[name="selected_dashboard_filter"]');if(t.val()==""){searchByDashboardFilterForm()}}if(e.responseJSON.notification_popup_html!=""){var n=e.responseJSON.notification_popup_html;r.magnificPopup.open({items:{src:n},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}}}})}}r.fn.renderSidebarAutocompleteProviderData=function(){var n=[];var e="provider";var t=r("select#hidden_providers_list option");r.each(t,function(e,t){n.push({label:r(t).text(),id:r(t).val()})})};r("#layout-content").find(".provider_interest_select2").select2({placeholder:"Enter a provider name",minimumResultsForSearch:1,maximumSelectionLength:1,ajax:{url:"/search-provider-for-filters",dataType:"json",data:function(e){return{q:r.trim(e.term)}},processResults:function(e){r.each(e,function(e,t){if(typeof t.unconnected!=="undefined"){t.text=t.text+t.unconnected}});return{results:e}},cache:true}});r.fn.renderSidebarAutocompleteProviderData();function a(e,t,n,i){if(e!=""){r.request("dashboardSidebar::onSave",{data:{provider_name:e,provider_id:t,type:n,saction:i},complete:function(e){if(e.responseJSON.status=="01"){if(e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;r.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',callbacks:{close:function(){if(window.location.pathname=="/dashboard-setup-providers"){location.reload();return false}}}},0)}if(window.location.pathname=="/dashboard-setup-providers"){}else{r.fn.renderSidebarAutocompleteProviderData();if(r("#search-results").length){var n=r("#dashboard-filter-form").find('input[name="selected_dashboard_filter"]');if(n.val()==""){searchByDashboardFilterForm()}}}}}})}}if(r(".dashboard_filter_wizard_wrapper").length){r(".dashboard_settings_form .submit-wrapper.next").click(function(){r(".first-step").slideUp(600);r(".second-step").slideDown(600)});r(".second-step .edit_link_wizard_step_finished").click(function(){r(".first-step").slideDown(600);r(".second-step").slideUp(600)});r(".second-step .btn-back-black").click(function(e){e.preventDefault();r(".first-step").slideDown(600);r(".second-step").slideUp(600);return false});r(".second-step .btn-submit-blue").click(function(e){var t=r(this).closest("form");t.find('input[name="after_save_action"]').val("new");if(t.find(".has-error").length){e.preventDefault();return false}});r(".second-step .btn-submit-green").click(function(e){var t=r(this).closest("form");t.find('input[name="after_save_action"]').val("dashboard");if(t.find(".has-error").length){e.preventDefault();return false}})}})(jQuery);function showPopupMessage(e){var t=$("body").data("assetName");$.magnificPopup.open({items:{src:'<div class="white-popup white-popup-register text-center">'+'<img src="/themes/pukkaresearch/assets/images/'+t+'/logo.png"/>'+"<br /><hr /><br />"+e+"<br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}(function(_){_(document).on("click",".pro-tools-add-new-user",function(){_.request("proaccount::onAjaxAddNewUser",{data:{row_index:_(".pro-tools-table").find("tbody").find("tr").length},complete:function(e){if(e.responseJSON.resultHtml!=""){_("#pro-tools-users-table tbody").append(e.responseJSON.resultHtml);if(_(document).height()>_(window).height()+68){_("html, body").animate({scrollTop:_("#new_user").offset().top},2e3)}_(".qtip.qtip-default").remove();_.fn.renderQtipTooltips()}}})});function e(e){_(e).find(".read").show();_(e).find("#fullname-text").text(_(e).find("#fullname").val());_(e).find("#title-text").text(_(e).find("#title").val());var t=_(e).find("#email").val();_(e).find("#email-text").text(t);_(e).find("#email-text").prop("href","mailto:"+t);_(e).find(".edit").hide()}function t(e){_(e).find("#fullname").val(_(e).find("#fullname-text").text());_(e).find("#title").val(_(e).find("#title-text").text());_(e).find("#email").val(_(e).find("#email-text").text());_(e).find("input.parent_id").addClass("edit");_(e).find(".edit").not("#email").show();_(e).find(".read").not("#email-text").hide();_(e).find("ul li").find(".edit").hide();_(e).find("ul li").find(".read").show()}_(function(){_("#filter-by-user").change(function(){_("#tblSpending td.js_user:contains('"+_(this).val()+"')").parent().show();_("#tblSpending td.js_user:not(:contains('"+_(this).val()+"'))").parent().hide()})});_(document).on("dragstart",".proaccount-item",function(e){var t={};t.proaccount_name=_(this).find(".proaccount-name").text();t.proaccount_id=_(this).find(".proaccount-id").val().split("_")[1];t.proaccount_title=_(this).find(".proaccount-title").text();drag(e,t);_(".drag-n-drop-container").addClass("drag-in-progress")});_(document).on("dragstart",".proaccount-item-from-content",function(e){var t={};t.proaccount_name=_(this).find(".info").find(".name").text();t.proaccount_id=_(this).find(".proaccount-id").val().split("_")[1];t.proaccount_title=_(this).find(".info").find(".title").text();drag(e,t);_(".drag-n-drop-container").addClass("drag-in-progress")});_(document).on("click",".protools-payment-form input[type=checkbox]",function(){var e=_(".protools-payment-form input[type=checkbox]");r(e);var t=_(this);if(t.closest("form").hasClass("js-add-credit-form")){_("#save_payment_method").removeClass("disabled");t.closest("form").find("div.errors").empty();_(".request-ammount").val("");_(".pricing_optional_wrapper").hide();t.prop("checked",true);if(t.hasClass("invoice_method")){t.closest(".frm-grp").find(".pricing_optional_wrapper").show()}}});(function(t){t(".assign-credits").click(function(e){if(t(".assign-credits").text()=="Edit"){t(".assigned-credit").prop("disabled",false);t(".assign-credits").html("Save");e.preventDefault()}})})(jQuery);_(document).on("click",".assigned-credit",function(){var e=n();_(".unallocated-credit").text(e)});function n(){var n=0;var e=_(".assigned-credit");_.each(e,function(e,t){if(_(t).val().length>0)n+=parseFloat(_(t).val())});var t=parseFloat(_(".total-ammount").text());if(n>t)return"You entered a value that exceeded total amount!";var i=t-n;return i.toFixed(2)}_(document).on("keypress",".assigned-credit",function(e){i(e)});function i(e){var t=e||window.event;var n=t.keyCode||t.which;n=String.fromCharCode(n);var i=/[0-9]|\./;if(!i.test(n)){t.returnValue=false;if(t.preventDefault)t.preventDefault()}}function r(e){_.each(e,function(e,t){_(t).prop("checked",false)})}_("#proTools-panel").find(".wh-group span").off().on("click",a);function a(){var e=_(this).parent().parent().find(".wh-group-content");if(_(this).hasClass("closed")){e.slideUp()}else{e.slideDown()}_(this).toggleClass("open").toggleClass("closed")}_("#proTools-panel").find(".wh-group li a").off().on("click",o);function o(){_("#proTools-panel .wh-group li").removeClass("active");_(this).closest("li").addClass("active")}_(document).on("click","#save_payment_method",function(e){e.preventDefault();if(!_("#save_payment_method").hasClass("disabled")){var t=_(this).closest("form");_("div.errors").empty();if(_(t).find("input:checked").prop("tagName")==undefined){_(".errors:first").html("At least one option must be selected!");return false}if(_(t).find("input:checked").hasClass("invoice_method")){_(".errors:first").html("");var n="Filed can not be empty!";var i="Only numbers are allowed";var r="Only positive numbers are allowed";var a=_(t).find("input:checked").prop("id");if(a=="hard_dollar"){if(_("#hd_request_ammount").val().length==0){_("#hd_request_ammount").closest(".frm-grp").find("div.errors").html(n);return false}else if(isNaN(_("#hd_request_ammount").val())){_("#hd_request_ammount").closest(".frm-grp").find("div.errors").html(i);return false}else if(_("#hd_request_ammount").val()<=0){_("#hd_request_ammount").closest(".frm-grp").find("div.errors").html(r);return false}}else if(a=="credit_card"){if(_("#cc_request_ammount").val().length==0){_("#cc_request_ammount").closest(".frm-grp").find("div.errors").html(n);return false}else if(isNaN(_("#cc_request_ammount").val())){_("#cc_request_ammount").closest(".frm-grp").find("div.errors").html(i);return false}else if(_("#cc_request_ammount").val()<=0){_("#cc_request_ammount").closest(".frm-grp").find("div.errors").html(r);return false}}}var o=_(t).find("input:checked");var s=_(o).val();if(s=="credit_card"){_("#save_payment_method").addClass("disabled");_.magnificPopup.close();_("body").prepend('<div class="universal_page_loader"><div class="image_wrapper">Loading...<img src="/themes/pukkaresearch/assets/images/'+_("body").data("assetName")+'/ajax-preloader.gif" alt=""></div></div>');var l=_("#stripe-info-element"),c=l.data("key"),d="eur",u=l.data("email");var p=_("#cc_request_ammount").val();var f=false;var h=StripeCheckout.configure({key:c,image:"/themes/pukkaresearch/assets/images/logo-img.png",locale:"auto",name:"Research Pool",email:u,token:function(e){f=true;_.request("creditManagement::onChargeCredits",{data:{amount:p,stripe_token:e.id,currency:d},complete:function(e){_("#save_payment_method").removeClass("disabled");_.magnificPopup.close();if(e.responseJSON.state=="01"){_.magnificPopup.open({items:{src:'<div class="white-popup add-credit-popup">'+'<div class="row">'+'<div class="credit-content-wrapper">'+"<h4>Credit Added</h4>"+"<br />"+'<div style="text-align:left;">'+"<p>Your credit purchase was successful.</p>"+'<p>An invoice has been sent by email, you can also find it on the <a class="credit-popup-link" href="/buyer-tools/products-billing/invoices">billing page.</a></p>'+"</div>"+"</div>"+"</div>"+"</div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple",callbacks:{close:function(){location.reload()}}},0)}else{_.fn.showMagnificPopupWithCallback(e.responseJSON.errorMessage,"reload")}},error:function(e,t,n){_("div.universal_page_loader").remove()}})}});h.open({amount:p*100,currency:d,description:"Credit purchasing",closed:function(){if(f==false){_("div.universal_page_loader").remove();_("#save_payment_method").removeClass("disabled")}}})}else if(s=="hard_dollar"){_("#save_payment_method").addClass("disabled");_.request("creditManagement::onSendInvoice",{data:{amount:parseFloat(_("#hd_request_ammount").val()),currency:_("#currency-payment-method").val(),dolar_type:a},complete:function(e){_("#save_payment_method").removeClass("disabled");if(e.responseJSON.status=="01"){_.magnificPopup.close();_.magnificPopup.open({items:{src:'<div class="white-popup add-credit-popup">'+'<div class="row">'+'<div class="credit-content-wrapper">'+"<h4>Credit Added</h4>"+'<div style="text-align:left;">'+'<p>Your invoice is available on the <a class="credit-popup-link" href="/buyer-tools/invoices">billing page</a></p>'+"<p>Download invoice and make payment</p>"+"<p>Once ResearchPool receives payment, the credits will be released</p>"+"</div>"+"</div>"+"</div>"+"<br /></div>"},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple",callbacks:{close:function(){location.reload()}}},0)}else if(e.responseJSON.status=="00"){_.magnificPopup.close();_.fn.showMagnificPopupWithCallback(e.responseJSON.errorMessage,"reload")}}})}}});function s(e){if(e=="eur")return"€";else if(e=="usd")return"$";if(e=="gbp")return"£"}(function(e){e(document).delegate("table .dropdown td:first-child","click",function(){if(e(window).width()<1300){if(e(this).parent().hasClass("no-border")){e(this).parent().removeClass("no-border");e(".dropdown-child-"+e(this).parent().data("provider-id")).css("display","none")}else{e(this).parent().addClass("no-border");e(".dropdown-child-"+e(this).parent().data("provider-id")).css("display","block")}}else{if(e(this).parent().hasClass("no-border")){e(this).parent().removeClass("no-border");e(".dropdown-child-"+e(this).parent().data("provider-id")).hide()}else{e(this).parent().addClass("no-border");e(".dropdown-child-"+e(this).parent().data("provider-id")).show()}}})})(jQuery);(function(l){l(document).delegate("._js-open-list","click",function(){var e=l(this);if(l(this).hasClass("clicked")){e.removeClass("clicked").next().slideUp()}else{l(".users ._js-open-list").removeClass("clicked").next().slideUp(400);setTimeout(function(){e.toggleClass("clicked").next().slideToggle()},400)}});l(".assets-tabs a").on("click",function(){var e=l(".assets-of-management-box .inner-box > ul"),t=e.position().left,n=e.outerWidth(),i=e[0].scrollWidth-n;if(l(this).hasClass("prev")){if(t<0){l(".assets-of-management-box .inner-box > ul").animate({left:"+=285"},200)}else{l(".assets-of-management-box .inner-box > ul").animate({left:0},200)}}else if(l(this).hasClass("next")){if(Math.abs(t)+30<i){l(".assets-of-management-box .inner-box > ul").animate({left:"-=285"},200)}}});l(document).delegate(".btn-add, .heading .name .edit","click",function(e){e.preventDefault();var t=l(this).siblings(".dropdown-block");l(".dropdown-block").fadeOut();t.fadeToggle();var n=t.offset();var i=n.top;var r=t.height();var a=l(".content-wrap").height();var o=l("body").width();var s=i+r<=a;if(!s){l(this).addClass("toTop")}else{l(this).removeClass("toTop")}});l(".dropdown-block .close-dd").click(function(e){e.preventDefault();l(this).closest(".dropdown-block").fadeOut()});l("body").click(function(e){if(!l(e.target).closest(".dropdown-block,.btn-add, .heading .edit").length){l(".dropdown-block").fadeOut()}if(l(".show_on_list a.clicked").length){var t=l(".show_on_list a.clicked").parent();if(!t.is(e.target)&&t.has(e.target).length===0){l("._js-open-list.clicked").click()}}if(l(".tooltip-wrapper").length){var n=l(".tooltip-wrapper");if(!n.hasClass("un_hide_tooltip")){n.fadeOut()}if(l('.tooltip-wrapper[data-next-tooltip="no_next_the_last_one"]:visible').length){l.fn.createCookie("show_tutorial_tooltips","no",1)}}});function e(e){var t=l(window).scrollTop();var n=t+l(window).height();var i=l(e).offset().top;var r=i+l(e).height();return r<=n&&i>=t}l("#proTools-panel .active").each(function(){if(!e(l(this))){l(this).addClass("js-active-scroll")}});function t(e){l.magnificPopup.open({items:{src:e},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0)}l("[data-open-modal]").magnificPopup({closeBtnInside:true});l.fn.showNextInformationTooltip=function(){if(l(".has-tooltip").find(".tooltip-wrapper").length){if(l(".has-tooltip").find(".tooltip-wrapper").length>1){var e=100;l(".has-tooltip").find(".tooltip-wrapper").each(function(){if(l(this).data("index-of-tooptip")&&!isNaN(l(this).data("index-of-tooptip"))&&l(this).data("index-of-tooptip")<e){e=l(this).data("index-of-tooptip")}});if(l(".has-tooltip").find(".tooltip-wrapper[data-index-of-tooptip='"+e+"']").length){l(".has-tooltip").find(".tooltip-wrapper[data-index-of-tooptip='"+e+"']").fadeIn()}else{l(".has-tooltip").find(".tooltip-wrapper").fadeIn()}}else{l(".has-tooltip").find(".tooltip-wrapper").fadeIn()}}};l.fn.showNextInformationTooltip();l(".tooltip-wrapper").on("click",function(e){e.stopPropagation();e.preventDefault()});l(".tooltip-cancel").on("click",function(){var e=l(this);e.closest(".tooltip-wrapper").fadeOut();e.closest(".has-tooltip").removeClass("has-tooltip");e.closest(".tooltip-wrapper").remove();return false});l(".tooltip-wrapper").find(".next-step").on("click",function(){var e=l(this);e.closest(".tooltip-wrapper").fadeOut();if(l(e.closest(".has-tooltip")).find('.tooltip-wrapper[data-next-tooltip="no_next_the_last_one"]:visible').length){l.fn.createCookie("show_tutorial_tooltips","no",1);return false}else if((e.closest(".has-tooltip").attr("href")=="javascript:;"||e.closest(".has-tooltip").attr("href")=="javascript:void(0);")&&!e.closest(".has-tooltip").hasClass("disable_click_and_show_next")){e.closest(".has-tooltip").removeClass("has-tooltip").click();e.closest(".tooltip-wrapper").remove();l.fn.showNextInformationTooltip();return false}else{var t=false;if(e.closest(".has-tooltip").hasClass("simulate_hover_state_and_show_popup")||e.closest(".has-tooltip").hasClass("disable_click_and_show_next")){t=true}e.closest(".has-tooltip").removeClass("has-tooltip");e.closest(".tooltip-wrapper").remove();if(t){l.fn.showNextInformationTooltip();return false}}});if(l(".my-reports-page-wrapper").length){l("input.my_reports_date").on("change",function(){var e=l('input[data-option="start_date"]').val();var t=l('input[data-option="end_date"]').val();var n={start_date:e,end_date:t};var i="cart::onGetAjaxDataMyReports";l.request(i,{data:n,complete:function(e){l(".qtip-default.qtip_on_table_th").remove();l.fn.renderQtipTooltips()}})})}})(jQuery);if(_(".overlay_for_mozilla_browser").length&&navigator.userAgent.indexOf("Firefox")!=-1){_(".overlay_for_mozilla_browser").show()}_(document).delegate("#inputSearchGroup .select2-container--SearchScope .select2-selection--single","click",function(){var e=_('select[name="search_scope"]').find("option:selected").text();if(e=="All Reports"){_("span.select2-container.select2-container--SearchScope.select2-container--open span.select2-dropdown.select2-dropdown--below").css("top","-37px")}});_(document).delegate("#inputSearchGroup .select2-container--SearchScope .select2-selection--single","mousedown",function(){_("span.select2-container.select2-container--SearchScope.select2-container--open span.select2-dropdown.select2-dropdown--below").css("width","165px")});_(document).delegate('select[name="search_scope"]',"change",function(){var e=_(this);if(e.val()=="Interests"||e.val()=="Internal Research"){if(e.val()=="Interests"){_('input[name="query"]').attr("placeholder","Search on Interests")}else{_('input[name="query"]').attr("placeholder","Search on Internal Research")}_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("color","#2F3542");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("background-color","#FF6B81");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("border-top-left-radius","4px");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("height","39px");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("margin-left","-1px");_("#inputSearchGroup").css("height","38px")}else{_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("color","#2F3542");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("background-color","#CED6E0");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("border-top-left-radius","4px");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("border-bottom-left-radius","4px");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("height","36px");_("#inputSearchGroup .select2-container--SearchScope .select2-selection--single").css("margin-left","0px");_("#inputSearchGroup").css("height","unset");_('input[name="query"]').attr("placeholder","Search on All Reports")}});_(document).delegate("p.provider-tip-box","click",function(){var e=_("#dashboard-sidebar-providers").first();var t=e.position();if(!_(".new-add-provider-interest").is(":visible")){_(".new-add-provider-interest").css("display","block");_("#sidebar_provider_interest .select2-container--default .select2-search--inline input.select2-search__field").css("width","auto");_("#provider_tip_box").qtip("destroy");_(".new-add-provider-interest").css({top:t.top+78});_("#layout-content").css("position","static");_("#layout-content").css("overflow","hidden");_("#newSidebarScrollable").removeClass("new-sidebar");_("#newSidebarScrollable").addClass("new-sidebar1")}else{_(".new-add-provider-interest").css("display","none");_("#provider_tip_box").qtip({content:{text:"Add a provider"},position:{my:"top center",at:"bottom center"}});_("#layout-content").css("position","unset");_("#layout-content").css("overflow","unset");_("#newSidebarScrollable").removeClass("new-sidebar1");_("#newSidebarScrollable").addClass("new-sidebar");_(".provider_interest_select2").val(null).trigger("change");_("#sidebar_provider_interest .select2-container--default .select2-search--inline input.select2-search__field").css("width","auto")}});_(".row_position").sortable({delay:150,axis:"y",stop:function(){var e=new Array;var t=new Array;_(".row_position").sortable({items:"row_position>li:not(:first)"});_(".row_position>li.saturatedsky").each(function(){e.push(_(this).attr("data-order-display"));t.push(_(this).attr("data-interest-id"))});l(e,t)}});_(".row_position_all").sortable({delay:150,axis:"y",stop:function(){var e=new Array;var t=new Array;_(".row_position_all>li:not(:first-child)").each(function(){e.push(_(this).attr("data-order-display"));t.push(_(this).attr("data-interest-id"))});l(e,t)}});_(".provider_row_position").sortable({delay:150,axis:"y",stop:function(){var e=new Array;var t=new Array;_(".provider_row_position>li").each(function(){e.push(_(this).attr("data-order-display"));t.push(_(this).attr("data-interest-id"))});l(e,t)}});_(".provider_row_position_all").sortable({delay:150,axis:"y",stop:function(){var e=new Array;var t=new Array;_(".provider_row_position_all>li").each(function(){e.push(_(this).attr("data-order-display"));t.push(_(this).attr("data-interest-id"))});l(e,t)}});_("ul#internal_show_less_int").each(function(){var e=_(this).find("li").length;if(e>3){_("li",this).eq(2).nextAll().hide().addClass("toggleable");_(this).after('<p class="more filter_internal_show_more" id="filter_internal_show_more">Show More <i class="far fa-plus-square"></i></p>')}});_(document).delegate("p#filter_internal_show_more","click",function(){if(_(this).hasClass("filter_internal_show_less")){_("ul#internal_show_less_int").each(function(){var e=_(this).find("li").length;if(e>3){_("li",this).eq(2).nextAll().hide().addClass("toggleable")}});_(this).html('Show More <i class="far far fa-plus-square"></i>').removeClass("filter_internal_show_less")}else{_(".row_position>li").each(function(){if(_(this).hasClass("toggleable")){_(this).removeClass("toggleable");_(this).css("display","block")}});_(this).html('Show Less <i class="far far fa-minus-square"></i>').addClass("filter_internal_show_less")}_("ul.row_position").siblings("li.toggleable").slideToggle()});_("ul#provider_show_less_int").each(function(){var e=_(this).find("li").length;if(e>5){_("li",this).eq(4).nextAll().hide().addClass("toggleable");_(this).after('<p class="more provider_interest_show_more" id="provider_interest_show_more">Show More <i class="far fa-plus-square"></i></p>')}});_(document).delegate("p#provider_interest_show_more","click",function(){if(_(this).hasClass("provider_interest_show_less")){_("ul#provider_show_less_int").each(function(){var e=_(this).find("li").length;if(e>5){_("li",this).eq(4).nextAll().hide().addClass("toggleable")}});_(this).html('Show More <i class="far far fa-plus-square"></i>').removeClass("provider_interest_show_less")}else{_(".provider_row_position>li").each(function(){if(_(this).hasClass("toggleable")){_(this).removeClass("toggleable");_(this).css("display","block")}});_(this).html('Show Less <i class="far far fa-minus-square"></i>').addClass("provider_interest_show_less")}});_("ul#interest_show_less_int").each(function(){var e=_(this).find("li").length;if(e>12){_("li",this).eq(11).nextAll().hide().addClass("toggleable");_(this).after('<p class="more filter_interest_show_more" id="filter_interest_show_more">Show More <i class="far fa-plus-square"></i></p>')}});_(document).delegate("p#filter_interest_show_more","click",function(){if(_(this).hasClass("filter_interest_show_less")){_("ul#interest_show_less_int").each(function(){var e=_(this).find("li").length;if(e>12){_("li",this).eq(11).nextAll().hide().addClass("toggleable")}});_(this).html('Show More <i class="far far fa-plus-square"></i>').removeClass("filter_interest_show_less")}else{_(".interest_row_position>li").each(function(){if(_(this).hasClass("toggleable")){_(this).removeClass("toggleable");_(this).css("display","block")}});_(this).html('Show Less <i class="far far fa-minus-square"></i>').addClass("filter_interest_show_less")}});_(".interest_row_position").sortable({delay:150,axis:"y",stop:function(){var e=new Array;var t=new Array;var n={};_(".interest_row_position>li").each(function(){e.push(_(this).attr("data-order-display"));t.push(_(this).attr("data-interest-id"))});l(e,t)}});_(".interest_row_position_all").sortable({delay:150,axis:"y",stop:function(){var e=new Array;var t=new Array;var n={};_(".interest_row_position_all>li").each(function(){e.push(_(this).attr("data-order-display"));t.push(_(this).attr("data-interest-id"))});l(e,t)}});function l(e,t){_.request("dashboardSidebar::onOrderInterestUpdate",{data:{dispaly_id:e,interest_id:t},complete:function(e){}})}_(".js_provider_follow.already_following").mouseover(function(){var e=_(".js_provider_follow.already_following").text("UNFOLLOW")});_(".js_provider_follow.already_following").mouseout(function(){var e=_(".js_provider_follow.already_following").text("FOLLOWING")});_(".js_provider_follow.already_following.is-followed").mouseover(function(){var e=_(".js_provider_follow.already_following.is-followed").text("UNFOLLOW")});_(".js_provider_follow.already_following.is-followed").mouseout(function(){var e=_(".js_provider_follow.already_following.is-followed").text("FOLLOWING")});_(".btn-custom-grey.js_provider_follow.already_following.is-followed").mouseover(function(){var e=_(".btn-custom-grey.js_provider_follow.already_following.is-followed").text("UNFOLLOW")});_(".btn-custom-grey.js_provider_follow.already_following.is-followed").mouseout(function(){var e=_(".btn-custom-grey.js_provider_follow.already_following.is-followed").text("FOLLOWING")});_(document).click(function(e){var t=e.target.id;var n=e.target.tagName;if(!_(e.target).closest("#new_add_provider_interest").length&&e.target.tagName!="P"&&e.target.tagName!="SPAN"){_(".new-add-provider-interest").css("display","none");_(".provider_interest_select2").val(null).trigger("change");_("#sidebar_provider_interest input.select2-search__field").css("width","auto")}});_(".search-countries").on("keyup",function(e){var n=_(this).val().toLowerCase();var t=_(this).siblings("ul").find("li.country-name");t.each(function(){var e=_(this).attr("id");var t=e.toLowerCase();_(this).closest("ul").scrollTop(0);if(t.indexOf(n)==0){if(n==""){_(this).closest("ul").scrollTop(0)}else{_(this).closest("ul").scrollTop(_("#"+e).position().top)}return false}})});_(".search-countries").keypress(function(e){if(e.which==13)return false;if(e.which==13)e.preventDefault()});_(document).delegate("#internal_research_popup","click",function(e){var t=window.location.pathname;path_name1=t.substring(1);var n=path_name1.split("/");var i=n[0];if(t=="/dashboard"){var r="dashboardReportSearch::onRenderInternalInterestPopupContent"}else if(t=="/report-search"){var r="reportSearch::onRenderInternalInterestPopupContent"}else if(t=="/my-entitlements"){var r="soloBasicUser::onRenderInternalInterestPopupContent"}else if(i=="company"){var r="companyDetail::onRenderInternalInterestPopupContent"}else if(i=="calendar"){var r="calendarPage::onRenderInternalInterestPopupContent"}else if(t=="/account-email-notifications"||t=="/account-profile"||t=="/my-reports"||t=="/account-subscriptions"||t=="/account-billing-history"){var r="account::onRenderInternalInterestPopupContent"}else{var r="reportSearch::onRenderInternalInterestPopupContent"}_.request(r,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){var t=e.responseJSON.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);_(".internal_int_cat").find(".internal_interest_category").select2({placeholder:"Select one or multiple categories",minimumResultsForSearch:-1,ajax:{url:"/search-category-on-interest-popup",dataType:"json",data:function(e){return{q:_.trim(e.term)}},processResults:function(e){return{results:e}},cache:true}});_(".internal_int_sector").find(".internal_interest_sector").select2({placeholder:"Select one or multiple sectors",allowClear:true,minimumResultsForSearch:-1});_(".internal_int_geography").find(".internal_interest_geography").select2({placeholder:"Select one or multiple  geographies",allowClear:true,minimumResultsForSearch:-1});_(".internal_int_company").find(".internal_interest_company").select2({placeholder:"Enter name, ticker, ISIN",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:_.trim(e.term)}},processResults:function(e){_.each(e,function(e,t){if(typeof t.covered!=="undefined"){t.text=t.text+t.covered}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});_(".internal_int_author").find(".internal_interest_author").select2({placeholder:"Select one or multiple authors",allowClear:true,minimumResultsForSearch:-1});_("#main_search_provider").find(".internal_interest_author").select2({placeholder:"Select one or multiple providers",allowClear:true,minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:_.trim(e.term)}},processResults:function(e){_.each(e,function(e,t){if(typeof t.covered!=="undefined"){t.text=t.text+t.covered}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});_("#main_search_analyst").find(".internal_interest_author").select2({placeholder:"Select one or multiple analysts",allowClear:true,minimumResultsForSearch:-1});_(".internal_int_reptype").find(".internal_interest_report_type").select2({placeholder:"Select one or multiple report templates",allowClear:true,minimumResultsForSearch:-1});_(".internal_int_tag").find(".internal_interest_tag").select2({placeholder:"Select one or multiple tags",allowClear:true,minimumResultsForSearch:-1});_(".internal_int_lang").find(".internal_interest_language").select2({placeholder:"Select one or multiple languages",allowClear:true,minimumResultsForSearch:-1});_(".internal_int_recom").find(".internal_interest_recommendation").select2({placeholder:"Select one or multiple recommendations",allowClear:true,tags:"true",minimumResultsForSearch:-1});_(".simple_datepicker").datepicker({dateFormat:"dd/mm/yy"})}})});_(".internal_int_author").find(".internal_interest_author").select2({placeholder:"Select one or multiple authors",minimumResultsForSearch:-1,allowClear:true});_(document).delegate("#main_interest_popup","click",function(e){var t=window.location.pathname;path_name1=t.substring(1);var n=path_name1.split("/");var i=n[0];if(t=="/dashboard"){var r="dashboardReportSearch::onRenderMainInterestPopupContent"}else if(t=="/report-search"){var r="reportSearch::onRenderMainInterestPopupContent"}else if(t=="/my-entitlements"){var r="soloBasicUser::onRenderMainInterestPopupContent"}else if(i=="company"){var r="companyDetail::onRenderMainInterestPopupContent"}else if(i=="calendar"){var r="calendarPage::onRenderMainInterestPopupContent"}else if(t=="/account-email-notifications"||t=="/account-profile"||t=="/my-reports"||t=="/account-subscriptions"||t=="/account-billing-history"){var r="account::onRenderMainInterestPopupContent"}else{var r="reportSearch::onRenderMainInterestPopupContent"}_.request(r,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){_.magnificPopup.open({items:{src:e.responseJSON.response_html},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);_("#main_int_cat").find(".internal_interest_category").select2({placeholder:"Select one or multiple categories",allowClear:true,minimumResultsForSearch:-1});_("#main_int_sector").find(".internal_interest_sector").select2({placeholder:"Select one or multiple sectors",allowClear:true,minimumResultsForSearch:-1});_("#main_int_geography").find(".internal_interest_geography").select2({placeholder:"Select one or multiple  geographies",allowClear:true,minimumResultsForSearch:-1});_(".main_int_company").find(".internal_interest_company").select2({placeholder:"Enter name, ticker, ISIN",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:_.trim(e.term)}},processResults:function(e){_.each(e,function(e,t){if(typeof t.covered!=="undefined"){t.text=t.text+t.covered}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});_("#main_int_author").find(".internal_interest_author").select2({placeholder:"Select one or multiple providers",minimumResultsForSearch:-1,allowClear:true,ajax:{url:"/search-provider-for-filters",dataType:"json",data:function(e){return{q:_.trim(e.term)}},processResults:function(e){_.each(e,function(e,t){if(typeof t.unconnected!=="undefined"){t.text=t.text+t.unconnected}});return{results:e}},cache:true},escapeMarkup:function(e){return e}});_(document).delegate('select[name="providersall[]"]',"select2:selecting",function(e){var t=e.params.args.data.unconnected;if(t==""&&typeof t==="undefined"||t==null){_('input:hidden[name="unconnected_interest_provider"]').val("")}else{_('input:hidden[name="unconnected_interest_provider"]').val("yes")}});_(".main_int_analyst").find(".internal_analyst_author").select2({placeholder:"Select one or multiple analyst",minimumResultsForSearch:-1,allowClear:true});_(".main_int_reptype").find(".internal_interest_report_type").select2({placeholder:"Select one or multiple report templates",allowClear:true,disabled:true,minimumResultsForSearch:Infinity});_(".main_int_reptype").find(".internal_interest_report_type_is").select2({placeholder:"Select one or multiple report templates",allowClear:true,disabled:false,minimumResultsForSearch:Infinity});_("#main_int_tag").find(".internal_interest_tag").select2({placeholder:"Select one or multiple tags",allowClear:true,minimumResultsForSearch:-1});_("#main_int_lang").find(".internal_interest_language").select2({placeholder:"Select one or multiple languages",allowClear:true,minimumResultsForSearch:-1});_("#main_int_recom").find(".internal_interest_recommendation").select2({placeholder:"Select one or multiple recommendations",allowClear:true,minimumResultsForSearch:-1});_(".main_int_acty").find(".main_interest_accesstype").select2({placeholder:"Select one or multiple access types",allowClear:true,minimumResultsForSearch:-1,width:"resolve"});_(".main_int_key").find(".main_interest_keyword").select2({placeholder:"Input a keyword and press enter",allowClear:true,tags:"true",minimumResultsForSearch:-1});_(".simple_datepicker").datepicker({dateFormat:"dd/mm/yy"})}})});_(document).delegate(".interest_upload_company_btn","click",function(){_(".upload-company-csv .upload-csv").click();return false});_(document).delegate(".upload-company-csv .upload-csv","change",function(){var e=_(this).val();var i=_(this).attr("data-popup-value");if(e!=""){var t=e.substring(e.lastIndexOf(".")+1,e.length);var n=_(this).attr("accept");if(typeof n!==typeof undefined&&n!==false){if(n.indexOf(t.toLowerCase())==-1){alert("Not allowed file extension");_(this).val("")}else{var r=new XMLHttpRequest;var a=_(this).closest("form")[0];var o=new FormData(a);r.onreadystatechange=function(){if(r.readyState===4){if(r.response){var n=JSON.parse(r.response);Object.keys(n).forEach(function(e){if(i=="interestinternal"){_(".internal_int_company ul.select2-selection__rendered").append('<li class="select2-selection__choice" title="'+n[e]["ticker"]+" | "+n[e]["name"]+'"><span class="select2-selection__choice__remove" role="presentation">×</span>'+n[e]["ticker"]+" | "+n[e]["name"]+"</li>")}else{_(".main_int_company ul.select2-selection__rendered").append('<li class="select2-selection__choice" title="'+n[e]["ticker"]+" | "+n[e]["name"]+'"><span class="select2-selection__choice__remove" role="presentation">×</span>'+n[e]["ticker"]+" | "+n[e]["name"]+"</li>")}_("[name='report_search_company_filter[]']").append('<option value="'+n[e]["id"]+'">'+n[e]["ticker"]+" | "+n[e]["name"]+"</option>");if(_("[name='report_search_company_filter[]']").val()==null){var t=[]}else var t=_("[name='report_search_company_filter[]']").val();t.push(n[e]["id"]);_("[name='report_search_company_filter[]']").val(t)});return false}}};r.open("post",a.getAttribute("action"),true);r.send(o)}}}});_(document).delegate(".delete_dashboard_saved_item","click",function(e){var t=_(this).data("item-id");var n=_(this).parent().hasClass("active");var i='<div class="white-popup white-popup-register"><h4>Delete Interest</h4><p style="text-align: center;">Are you sure you want to permanently delete this Interest?</p><div class="new-popup-style-simple-buttons"><a class="btn btn-submit-blue cancel-delete-filters">No</a><a href="javascript:void(0)" class="btn brn-submit-blue delete_dashboard_saved_item_confirmed_new" data-item-id="'+t+'" data-is-current-saved-search="'+n+'">Yes</a></div></div>';if(_(this).data("saved-search")){i='<div class="white-popup white-popup-register" style="max-width: 460px;"><h4>Delete Saved Search</h4><p style="text-align: center;">Are you sure you want to permanently delete this Saved Search?</p><div class="new-popup-style-simple-buttons"><a class="btn btn-submit-blue cancel-delete-filters">No</a><a href="javascript:void(0)" class="btn brn-submit-blue delete_dashboard_saved_item_confirmed" data-item-id="'+t+'" data-is-current-saved-search="'+n+'">Yes</a></div></div>'}_.magnificPopup.open({items:{src:i},type:"inline",preloader:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)});_(document).delegate("#top_interest_title_edit_icon","click",function(e){var t=document.getElementById("top_interest_title").contentEditable;_("#top_interest_title").focus();var n=_("#top_interest_title").text();if(t=="inherit"||t=="false"){document.getElementById("top_interest_title").contentEditable=true}else{document.getElementById("top_interest_title").contentEditable=false}_("#top_interest_title").keypress(function(e){var t=e.keyCode?e.keyCode:e.which;if(t=="13"){var n=_("#top_interest_title").text();var i=_("#top_interest_title_edit_icon").attr("data-interest-id");e.preventDefault();_.request("dashboardSidebar::onInterestTitleUpdate",{data:{interest_id:i,interest_title:n},complete:function(e){location.reload()}})}})});_(document).delegate("h3.interest-title.new-interest-title","click",function(e){var t=e.target.tagName;if(_("#top_interest_title").attr("contentEditable")=="true"){if(t=="H3"){var n=_("#top_interest_title").text();var i=_("#top_interest_title_edit_icon").attr("data-interest-id");_.request("dashboardSidebar::onInterestTitleUpdate",{data:{interest_id:i,interest_title:n},complete:function(e){location.reload()}})}}});_(document).delegate("#show_more_less_filters","click",function(e){if(_(".morefiltersSection").is(":visible")){_(".morefiltersSection").css("display","none");_("#show_more_less_filters span").text("MORE FILTERS");_("#show_more_less_filters i").removeClass("fal fa-minus-square");_("#show_more_less_filters i").addClass("fal fa-plus-square")}else{_(".morefiltersSection").css("display","block");_("#show_more_less_filters span").text("LESS FILTERS");_("#show_more_less_filters i").removeClass("fal fa-plus-square");_("#show_more_less_filters i").addClass("fal fa-minus-square")}});_(document).delegate("#show_more_less_filters_interest","click",function(e){if(_(".morefiltersSectionInterest").is(":visible")){_(".morefiltersSectionInterest").css("display","none");_("#show_more_less_filters_interest span").text("MORE FILTERS");_("#show_more_less_filters_interest i").removeClass("fal fa-minus-square");_("#show_more_less_filters_interest i").addClass("fal fa-plus-square")}else{_(".morefiltersSectionInterest").css("display","block");_("#show_more_less_filters_interest span").text("LESS FILTERS");_("#show_more_less_filters_interest i").removeClass("fal fa-plus-square");_("#show_more_less_filters_interest i").addClass("fal fa-minus-square")}});_(document).delegate(".dashboard-filters-trigger-edit","click",function(e){var t=_(this).attr("data-dashboard-filter-editid");window.location="/report-search?selected-filter=edit-"+t;_(".delayloading").click(function(){_(this).addClass("error").delay(3e3).queue(function(){_(this).removeClass("error").addClass("open").dequeue()})});_(".delayloading").trigger("click")});_(document).delegate("#btn_add_provider","click",function(){var e=_('select[name="search_providers"]').find("option:selected").text();var t=_('select[name="search_providers"]').find("option:selected").val();var n="provider";var i="dashboardSidebar::onProviderInterestSave";_.request(i,{data:{providerID:t,providerName:e,provider_interest:n},complete:function(e){if(e.responseJSON.state=="01"){if(e.responseJSON.notification_popup_html!=""){var t=e.responseJSON.notification_popup_html;_.magnificPopup.open({items:{src:t},type:"inline",closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>',mainClass:"new-popup-style-simple"},0)}_.request("dashboardSidebar::onRenderSidebarPeriodically",{complete:function(e){}})}}});return false});_(document).delegate('#main_int_author select[name="providersall[]"]',"change",function(){var e=_(this).val();if(e!=null||e!=undefined){_.request("dashboardSidebar::onRenderInterestPopupAnalystsDropdownContent",{data:{producer_id:_(this).val()},complete:function(e){var t=e.responseJSON.results;var n=e.responseJSON.reporttypes;if(t&&t.length>0){_('#main_search_analyst select[name="analystall[]"]').empty().select2({data:t,placeholder:_('select[name="analystall[]"]').data("empty-option-label"),allowClear:true,width:"100%"})}else{_('#main_search_analyst select[name="analystall[]"]').select2({data:t,placeholder:_('#main_search_analyst select[name="analystall[]"]').data("Select one or multiple analyst"),allowClear:true,width:"100%"})}if(n&&n.length>0){_('select[name="tags[]"]').empty().select2({data:n,placeholder:_('#mainIntReptype select[name="tags"]').data("empty-option-label"),allowClear:true,disabled:false,width:"100%"})}}})}});_(document).delegate('#main_search_provider select[name="providersall[]"]',"change",function(){_.request("dashboardSidebar::onRenderInterestPopupAnalystsDropdownContent",{data:{producer_id:_(this).val()},complete:function(e){var t=e.responseJSON.results;var n=e.responseJSON.reporttypes;if(t&&t.length>0){_('#main_search_analyst select[name="analystall[]"]').select2({data:t,placeholder:_('#main_search_analyst select[name="analystall[]"]').data("empty-option-label"),allowClear:true,width:"100%"})}else{_('#main_search_analyst select[name="analystall[]"]').empty().select2({data:t,placeholder:_('#main_search_analyst select[name="analystall[]"]').data("Select one or multiple analyst"),allowClear:true,width:"100%"})}if(n&&n.length>0){_('select[name="tags[]"]').select2({data:n,placeholder:_('#internalIntReptype select[name="tags[]"]').data("empty-option-label"),allowClear:true,width:"100%"})}else{_('#internalIntReptype select[name="tags[]"]').empty().select2({data:n,placeholder:_('#internalIntReptype select[name="tags[]"]').data("Select one or report types"),allowClear:true,width:"100%"})}}})});_(document).delegate("#interestCompanyCsvbtn","mouseover",function(e){_(".uploadCsvTooltip").css("display","block")});_(document).delegate("#interestCompanyCsvbtn","mouseout",function(e){_(".uploadCsvTooltip").css("display","none")});_(document).delegate("#internalCompanyCsvbtn","mouseover",function(e){_(".uploadCsvTooltip").css("display","block")});_(document).delegate("#internalCompanyCsvbtn","mouseout",function(e){_(".uploadCsvTooltip").css("display","none")});_(document).delegate(".interest_input_market i.calicon","click",function(e){var t=_(this).closest("div.interest_input_market_check").find("input.simple_datepicker").attr("class");if(t.indexOf("int_date_from")!=-1){_(".int_date_from").datepicker("show")}else if(t.indexOf("int_date_to")!=-1){_(".int_date_to").datepicker("show")}else if(t.indexOf("main_date_from")!=-1){_(".main_date_from").datepicker("show")}else if(t.indexOf("main_date_to")!=-1){_(".main_date_to").datepicker("show")}else{}});_(document).delegate(".int_date_from","change",function(){var e=_(".int_date_from").val();_(".int_date_to").datepicker("option","minDate",e)});_(document).delegate(".int_date_to","change",function(){var e=_(".int_date_to").val();_(".int_date_from").datepicker("option","maxDate",e)});_(document).delegate(".main_date_from","change",function(){var e=_(".main_date_from").val();_(".main_date_to").datepicker("option","minDate",e)});_(document).delegate(".main_date_to","change",function(){var e=_(".main_date_to").val();_(".main_date_from").datepicker("option","maxDate",e)});_(document).delegate(".file_attachment_mdf","click",function(){var e=_(this).attr("data-item");if(e!=""&&e!=null){var t="reportDetail::onGetFilePath";_.request(t,{data:{report_id:e},complete:function(e){var t=e.responseJSON.result;window.location=t}})}});function c(e){if(e!=""&&e!=null){var t=["/provider-tools/permissioning/add-entitlement-offer","/provider-tools/publication-manager/distribution","/buyer-tools/consumption-statistics/overview","/login","/buyer-tools/settings/organisation-structure","/buyer-tools/provider-manager/classification","/buyer-tools/provider-manager/budget-allocation/logs","/buyer-tools/provider-manager/budgeting","/buyer-tools/provider-manager/agreements/logs","/buyer-tools/provider-manager/agreements","/buyer-tools/publication-manager/templates","/provider-tools/publication-manager/reports","/buyer-tools/publication-manager/reports","/restore-password","/my-entitlements","/buyer-tools/add-entitlement-request","/provider-tools/settings/users-analysts","/register","/notifications","/my-billing-history","/provider-tools/permissioning/entitlements","/admin/settings/users","/buyer-tools/settings/general","/provider-tools/settings/general","/buyer-tools/budget-permissioning/entitlements","/account-profile","/my-reports","/account-email-notifications","/calendar","/account-entitlements"];var n=t.indexOf(e);if(n==-1){if(e=="/report-search"){var i="reportSearch::onCheckUserVisit"}else{var i="dashboardReportSearch::onCheckUserVisit"}var r=window.innerWidth;var a=window.innerHeight;_.request(i,{data:{page_url:e,screen_width:r,screen_height:a},complete:function(e){var t=e.responseJSON.page_visit_count;if(t!=null||t!=undefined){if(t>5){var n="account::onRenderRegisterPopup";_.request(n,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){var t=e.responseJSON.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,enableEscapeKey:false,showCloseBtn:false},0);_(".new_user_reg_cancel_btn").css("display","none");_(".new_user_reg_cancel_btn").css("visibility","hidden");_("#search-form").css("filter","blur(2px)");_(document).bind("contextmenu",function(e){return false});_(document).keydown(function(e){if(e.keyCode==123){return false}else if(e.ctrlKey&&e.shiftKey&&e.keyCode==73){return false}});_(".signupCountryList").find(".signupCountryListHome").select2({placeholder:"Please select your Country",allowClear:true,minimumResultsForSearch:-1})}})}}}})}}}function d(e){var t=_('select[name="access_types_filter[]"]').filter(function(){return _(this).val()}).length;var n=_('.interest_input_page input[name="min_page"]').val();var i=_('.interest_input_page input[name="max_page"]').val();if(_.isNumeric(n)==true||_.isNumeric(i)==true){page_num=1}else{page_num=0}var r=_('select[name="filter_super_categories[]"]').filter(function(){return _(this).val()}).length;var a=_('.report_input_date_form input[name="date_from"]').filter(function(){return _(this).val()}).length;var o=_('.report_input_date_to input[name="date_to"]').filter(function(){return _(this).val()}).length;var s=_('select[name="filter_sectors_all[]"]').filter(function(){return _(this).val()}).length;var l=_('select[name="countriesall[]"]').filter(function(){return _(this).val()}).length;var c=_('select[name="report_search_company_filter[]"]').filter(function(){return _(this).val()}).length;var d=_('select[name="providersall[]"]').filter(function(){return _(this).val()}).length;var u=_('select[name="analystall[]"]').filter(function(){return _(this).val()}).length;var p=_('select[name="tags[]"]').filter(function(){return _(this).val()}).length;var f=_('select[name="report_tags[]"]').filter(function(){return _(this).val()}).length;var h=_('select[name="recommendation[]"]').filter(function(){return _(this).val()}).length;var m=_('select[name="allanguages[]"]').filter(function(){return _(this).val()}).length;var v=_('select[name="Keywords[]"]').filter(function(){return _(this).val()}).length;var g=t+r+page_num+a+o+s+l+c+d+u+p+f+h+m+v;if(e=="/dashboard"){_("#countFilters").text(g);if(g==0){_("#countFilters").css("color","#57606F")}else{_("#countFilters").css("color","#1e90ff")}}else if(e=="/report-search"){_("#countRFilters").text(g);if(g==0){_("#countRFilters").css("color","#57606F")}else{_("#countRFilters").css("color","#1e90ff")}}}function u(){var e=_("#search-results");if(e.length){_("#list-top-head").width(e.width());_("#list-top-head").css("position","fixed");_("#list-top-head-placeholder").css("display","block");_(".header-container").width(e.width())}}_(window).on("load",function(){u();var e=window.location.pathname;if(e!="/provider-tools/settings/general"){c(e)}d(e)});_(document).delegate(".apply_search_filter_btn ","click",function(e){var t=window.location.pathname;d(t)});_(document).delegate(".list-view-rp-title a","mouseover",function(){var e=_(this);var t=_(this).attr("data-hover-report");if(t!=null||t!=undefined){e.closest("div").find(".report-overflow-"+t).css("display","block");_(".list-view-rp-title").css("overflow","unset")}});_(document).delegate(".list-view-rp-title a","mouseout",function(){_(".report-overflow").css("display","none")});_(document).delegate(".report-company-hover","mouseover",function(){var e=_(this);var t=_(this).attr("data-hover-report");if(t!=null||t!=undefined){e.closest("div").find(".report-company-overflow-"+t).css("display","block")}});_(document).delegate(".report-company-hover","mouseout",function(){_(".report-company-overflow").css("display","none")});_(document).delegate(".report-sector-hover","mouseover",function(){var e=_(this);var t=_(this).attr("data-hover-report");if(t!=null||t!=undefined){e.closest("div").find(".report-sector-overflow-"+t).css("display","block")}});_(document).delegate(".report-sector-hover","mouseout",function(){_(".report-sector-overflow").css("display","none")});_(document).delegate(".report-provider-hover","mouseover",function(){var e=_(this);var t=_(this).attr("data-hover-report");if(t!=null||t!=undefined){e.closest("div").find(".report-provider-overflow-"+t).css("display","block");_(".report-company-overflow-"+t).css("display","none")}});_(document).delegate(".report-provider-hover","mouseout",function(){_(".report-provider-overflow").css("display","none")});_(document).delegate(".apply_search_filter_dashboard_btn","click",function(e){e.preventDefault();var t=_(this).closest("form");if("/dashboard"===document.location.pathname){var n=JSON.stringify(t.serializeArray());_.fn.createCookie("home_filter",n,1);flagSearchType(t,"dashboard")}t.find("input[name=override_search_scope]").val(1);t.submit();_(".new-search-form-trigger").removeClass("open");_(".search-form-filter-holder").css("display","none");_(".search-form-filter-holder").css("box-shadow","unset");_("#search-form .inner.new-transparent").css("box-shadow","2px 2px 4px rgba(0,0,0,0.25)")});_(document).delegate(".item-analysts.has-overflow","mouseover",function(){_(this).find("div.overflow").css("display","block")});_(document).delegate(".item-analysts.has-overflow","mouseout",function(){_(this).find("div.overflow").css("display","none")});_(document).delegate(".ticker-company-sector.is_report_card.is_report_card_hover","mouseover",function(e){var t=_(this).attr("data-hover-report");_(".company_overflow_"+t).css("display","block","important");_("div.company_overflow").css("margin-left",200,"important");_("div.company_overflow").css("margin-top",-95,"important")});_(document).delegate(".ticker-company-sector.is_report_card.is_report_card_hover","mouseout",function(){var e=_(this).attr("data-hover-report");var t=_(".company_overflow_"+e);t.mouseenter(function(){_(".company_overflow_"+e).css("margin-left",200,"important");_(".company_overflow_"+e).css("margin-top",-95,"important")});t.mouseleave(function(){_(".company_overflow_"+e).css("display","none","important");_("div.company_overflow").css("margin-left","unset","important");_("div.company_overflow").css("margin-top","unset","important")})});_(document).delegate(".item-wrapper.item-fixed-height","mouseleave",function(){_(".company_overflow").css("display","none","important")});_(document).delegate(".item-abstract","click",function(e){var t=_(this).attr("data-report-link");window.location=t});_(document).delegate("h4.item-title , p.item-abstract","click",function(e){var t=_(this).parent().attr("data-redirect");if(t!=null){window.location=t}});_(document).delegate("li#register_popup","click",function(e){var t="account::onRenderRegisterPopup";_.request(t,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){var t=e.responseJSON.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false},0);_(".signupCountryList").find(".signupCountryListHome").select2({placeholder:"Please select your Country",allowClear:true,minimumResultsForSearch:-1})}})});_(document).delegate(".linkedin_popup","click",function(e){var t="account::onRegisterLinkedInUser";_.request(t,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){_("#user_country_list").find(".signupCountryListHome").select2({placeholder:"Select one or multiple categories",allowClear:true,minimumResultsForSearch:-1})}})});_(document).delegate(".microsoft_popup","click",function(e){var t="account::onRegisterMicrosoftUser";_.request(t,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){_("#user_country_list").find(".signupCountryListHome").select2({placeholder:"Select one or multiple categories",allowClear:true,minimumResultsForSearch:-1})}})});_(document).delegate(".google_popup","click",function(e){var t="account::onRegisterGoogleUser";_.request(t,{data:{isPublicEvent:1,timezone_offset_minutes:8},complete:function(e){_("#user_country_list").find(".signupCountryListHome").select2({placeholder:"Select one or multiple categories",allowClear:true,minimumResultsForSearch:-1})}})});_(document).delegate("#reveal_icon","click",function(){var e=_(".pwd");if(e.attr("type")==="password"){e.attr("type","text");_("#reveal_icon").addClass("fa-eye");_("#reveal_icon").removeClass("fa-eye-slash")}else{e.attr("type","password");_("#reveal_icon").addClass("fa-eye-slash");_("#reveal_icon").removeClass("fa-eye")}});_(document).delegate("#confirm_reveal_icon","click",function(){var e=_(".confirm_pwd");if(e.attr("type")==="password"){e.attr("type","text");_("#confirm_reveal_icon").addClass("fa-eye");_("#confirm_reveal_icon").removeClass("fa-eye-slash")}else{e.attr("type","password");_("#confirm_reveal_icon").addClass("fa-eye-slash");_("#confirm_reveal_icon").removeClass("fa-eye")}});_(document).delegate(".reveal","click",function(){var e=_(".pwd");if(e.attr("type")==="password"){e.attr("type","text");_("#reveal_icon").addClass("fa-eye");_("#reveal_icon").removeClass("fa-eye-slash")}else{e.attr("type","password");_("#reveal_icon").addClass("fa-eye-slash");_("#reveal_icon").removeClass("fa-eye")}});_(document).delegate(".confirm_reveal","click",function(){var e=_(".confirm_pwd");if(e.attr("type")==="password"){e.attr("type","text");_("#confirm_reveal_icon").addClass("fa-eye");_("#confirm_reveal_icon").removeClass("fa-eye-slash")}else{e.attr("type","password");_("#confirm_reveal_icon").addClass("fa-eye-slash");_("#confirm_reveal_icon").removeClass("fa-eye")}});_(document).mouseup(function(e){var t=_(".dashboard_filters_wrapper");if(!t.is(e.target)&&t.has(e.target).length===0){var n=e.target.id;var i=e.target.tagName;var r="select2";if(n.includes(r)==true||i=="LI"){}else{_(".new-search-form-trigger").removeClass("open")}}});_(document).delegate("#new_user_interest_guide span","click",function(){_("#new_user_interest_guide").css("display","none");_("#new_user_interest_guide").css("visibility","hidden");_.request("account::onUpdateGuideWalkThroughPoupop",{data:{state:"first_attempt"},complete:function(e){}})});_(document).delegate(".basic-entitlement-request-page ,.send-request","click",function(){var e="soloBasicUser::onRenderEntitlementPopupContent";var t=_(this).attr("data-provider-id");_.request("reportSearch::onRenderEntitlementPopupContent",{data:{page_id:e,provider_id:t},complete:function(e){var t=e.responseJSON.response_html;_.magnificPopup.open({items:{src:t},type:"inline",closeOnBgClick:false,closeMarkup:'<button title="Close (Esc)" type="button" class="mfp-close notranslate">&times;</button>'},0);_(".solo-entitlement-request-form-popup").find(".solo-entitlement-request-provider").select2({placeholder:"Select one or multiple providers",multiple:"multiple",maximumSelectionLength:1});_(".solo-entitlement-request-form-popup").find(".entitlement-category").select2({placeholder:"Select one or multiple category",allowClear:true});_(".solo-entitlement-request-form-popup").find(".entitlement-sector").select2({placeholder:"Select one or multiple sectors",allowClear:true});_(".solo-entitlement-request-form-popup").find(".entitlement-geography").select2({placeholder:"Select one or multiple geographies",allowClear:true});_(".solo-entitlement-request-form-popup").find(".entitlement-report-types").select2({placeholder:"Select one or multiple report templates",allowClear:true});_(".simple_datepicker").datepicker({dateFormat:"dd/mm/yy"});_(".solo-entitlement-request-form-popup").find(".entitlement-companies").select2({placeholder:"Enter a company name",minimumResultsForSearch:-1,ajax:{url:"/search-company-on-report_upload-popup",dataType:"json",data:function(e){return{q:_.trim(e.term)}},processResults:function(e){return{results:e}},cache:true}});if(_("#unlimited_date").is(":checked")){_("#solo-ent-request-end-date").prop("readonly",true);_("#solo-ent-request-end-date").val("");_("#unlimited_date").val(1);_("#solo-ent-request-end-date").addClass("ent-input-disabled");_("#solo-ent-request-end-date").datepicker("option","disabled",true)}else{_("#solo-ent-request-end-date").prop("readonly",false);_("#solo-ent-request-end-date").removeClass("ent-input-disabled");_("#unlimited_date").val(0);_("#solo-ent-request-end-date").datepicker("option","disabled",false)}}})});_(document).delegate(".basic-resend-entitlement-email-btn","click",function(e){if(!_(this).hasClass("disabled")){_(this).addClass("disabled");_.request("reportSearch::onResendEntitlementEmail",{data:{id:_(this).data("id")},complete:function(e){}});_(this).remove()}});_(".current_eye").click(function(){if(_(this).hasClass("fa-eye-slash")){_(this).removeClass("fa-eye-slash");_(this).addClass("fa-eye");_("#currentaccountPassword").attr("type","password")}else{_(this).removeClass("fa-eye");_(this).addClass("fa-eye-slash");_("#currentaccountPassword").attr("type","text")}});_(".new_eye").click(function(){if(_(this).hasClass("fa-eye-slash")){_(this).removeClass("fa-eye-slash");_(this).addClass("fa-eye");_("#accountPassword").attr("type","password")}else{_(this).removeClass("fa-eye");_(this).addClass("fa-eye-slash");_("#accountPassword").attr("type","text")}});_(".confirm_eye").click(function(){if(_(this).hasClass("fa-eye-slash")){_(this).removeClass("fa-eye-slash");_(this).addClass("fa-eye");_("#accountPasswordConfirm").attr("type","password")}else{_(this).removeClass("fa-eye");_(this).addClass("fa-eye-slash");_("#accountPasswordConfirm").attr("type","text")}})})(jQuery);