PageSourceSearch

https://www.repsol.pe/etc.clientlibs/repsol-paises/clientlibs/clie…ase.min.68c88fec147aa7f38a3c79b47c14ef88.js

js repsol.pe collected 2026-09-29 21:47:46 UTC 1,334,155 bytes, 3,986 lines download raw bytes

vendor: 15,088 bytes, lines 1-2
1/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */
2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=v.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),$=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.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]&&se.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&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}
vendor: 4,356 bytes, line 2
2:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var y="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=y!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(y){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[S]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===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===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ve(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{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]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];
vendor: 10,068 bytes, line 2
2if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[S]||(e[S]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,v,y,e){return v&&!v[S]&&(v=Ce(v)),y&&!y[S]&&(y=Ce(y,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?y||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v){i=Te(p,u),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(y||d){if(y){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);y(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=y?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),y?y(null,t,p,r):H.apply(t,p)})}function Ee(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Ee(e.slice(s,n)),n<r&&Ee(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,v,y,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Ee(t[n]))[S]?i.push(a):o.push(a);(a=A(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!E);while(s=v[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ye(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!E,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},d.sortStable=S.split("").sort(D).join("")===S,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);S.find=d,S.expr=d.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=d.uniqueSort,S.text=d.getText,S.isXMLDoc=d.isXML,S.contains=d.contains,S.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=S.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1<i.call(n,e)!==r}):S.filter(n,e,r)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return 1<r?S.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&S(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(S(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},function(r,i){S.fn[r]=function(e,t){var n=S.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(H[r]||S.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},S.each(e.match(P)||[],function(e,t){n[t]=!0}),n):S.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){S.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return S.each(arguments,function(e,t){var n;while(-1<(n=S.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},S.extend({Deferred:function(e){var o=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],i="pe
vendor: 8,547 bytes, line 2
2nding",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return S.Deferred(function(r){S.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(S.Deferred.getStackHook&&(t.stackTrace=S.Deferred.getStackHook()),C.setTimeout(t))}}return S.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return S.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=S.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){C.setTimeout(function(){throw e})};var F=S.Deferred();function B(){E.removeEventListener("DOMContentLoaded",B),C.removeEventListener("load",B),S.ready()}S.fn.ready=function(e){return F.then(e)["catch"](function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||F.resolveWith(E,[S])}}),S.ready.then=F.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(S.ready):(E.addEventListener("DOMContentLoaded",B),C.addEventListener("load",B));var $=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=S.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!S.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),S.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):$(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){S.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:S.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=E.documentElement,ie=function(e){return S.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===S.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&te.exec(S.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,S.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=S.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}S.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?S(this).show():S(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone
vendor: 51,417 bytes, line 2
2=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",y.option=!!ce.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,y.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))S.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<S.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ve(f.appendChild(o),"script"),l&&ye(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function Se(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function Ae(e,i,o){o?(Y.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Y.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&S.event.add(e,i,Ce)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(re,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=Te.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=S.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<S(i,this).index(l):S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Ae(this,e,Se),!1},trigger:function(){return Ae(this,e),!0},delegateType:t}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){S.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),S.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){S.event.remove(this,e,n,t)})}});var Ne=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=S.extend({},o),Q.set(t,a))}}function Pe(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!y.checkClone&&De.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),Pe(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=S.map(ve(e,"script"),Le)).length;c<f;c++)u=e,c!==p&&(u=S.clone(u,!0,!0),s&&S.merge(a,ve(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,S.map(a,He),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&S.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?S._evalUrl&&!u.noModule&&S._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(je,""),u,l))}return n}function Re(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(ve(r)),r.parentNode&&(n&&ie(r)&&ye(ve(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ve(e),a=a||ve(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return 0<(a=ve(c,"script")).length&&ye(a,!f&&ve(e,"script")),c},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return $(this,function(e){return void 0===e?S.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(S.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return Pe(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(ve(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=[],r=S(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),S(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Me=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},We=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Fe=new RegExp(ne.join("|"),"i");function Be(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Me.test(a)&&Fe.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=E.createElement("div"),l=E.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(y,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=E.createElement("table"),t=E.createElement("tr"),n=E.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",n.style.height="9px",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=3<parseInt(r.height),re.removeChild(e)),a}}))}();var _e=["Webkit","Moz","ms"],ze=E.createElement("div").style,Ue={};function Xe(e){var t=S.cssProps[e]||Ue[e];return t||(e in ze?e:Ue[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=_e.length;while(n--)if((e=_e[n]+t)in ze)return e}(e)||e)}var Ve=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+ne[a]+"Width",!0,i))):(u+=S.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=S.css(e,"border"+ne[a]+"Width",!0,i):s+=S.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Ie(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&i||!y.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Ge.test(t),l=e.style;if(u||(t=Xe(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Ge.test(t)||(t=Xe(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],function(e,u){S.cssHooks[u]={get:function(e,t,n){if(t)return!Ve.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):We(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Ie(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Je(0,t,s)}}}),S.cssHooks.marginLeft=$e(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(i,o){S.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(S.cssHooks[i+o].set=Je)}),S.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)}}),((S.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=et.prototype.init,S.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,S.fx.interval),S.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return S.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=S._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,S.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=S.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)S.style(e,r,d[r])})),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=S.isEmptyObject(t),o=S.speed(e,n,r),a=function(){var e=ft(this,S.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=S.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,r){var i=S.fn[r];S.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),S.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){S.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),tt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){nt||(nt=!0,st())},S.fx.stop=function(){nt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(r,e){return r=S.fx&&S.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=E.createElement("input"),it=E.createElement("select").appendChild(E.createElement("option")),rt.type="checkbox",y.checkOn=""!==rt.value,y.optSelected=it.selected,(rt=E.createElement("input")).value="t",rt.type="radio",y.radioValue="t"===rt.value;var pt,dt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return $(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!y.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||S.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(P)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}S.fn.extend({prop:function(e,t){return $(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),y.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).addClass(t.call(this,e,yt(this)))});if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(m(t))return this.each(function(e){S(this).removeClass(t.call(this,e,yt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)while(n=this[u++])if(i=yt(n),r=1===n.nodeType&&" "+vt(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=vt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"===o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):m(i)?this.each(function(e){S(this).toggleClass(i.call(this,e,yt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=mt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=yt(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+vt(yt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(r=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=S.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<S.inArray(S.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},y.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),y.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||E],d=v.call(e,"type")?e.type:e,h=v.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+S.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[S.expando]?e:new S.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),c=S.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||E)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),S.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),S.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),y.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){S.event.simulate(r,e.target,S.event.fix(e))};S.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},Et=/\?/;S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var St=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function Dt(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||St.test(n)?i(n,t):Dt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)Dt(n+"["+t+"]",e[t],r,i)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Dt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var jt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=E.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Bt(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function $t(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,S.ajaxSettings),t):$t(S.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=S.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?S(y):S.event,x=S.Deferred(),b=S.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(P)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=S.param(v.data,v.traditional)),Bt(Rt,v,t,T),h)return T;for(i in(g=S.event&&v.global)&&0==S.active++&&S.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ot.test(v.type),f=v.url.replace(qt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(jt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Et.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Lt,"$1"),o=(Et.test(f)?"&":"?")+"_="+Ct.guid+++o),v.url=f+o),v.ifModified&&(S.lastModified[f]&&T.setRequestHeader("If-Modified-Since",S.lastModified[f]),S.etag[f]&&T.setRequestHeader("If-None-Match",S.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+It+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Bt(Mt,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<S.inArray("script",v.dataTypes)&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(S.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(S.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,i){S[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:i,dataType:r,data:t,success:n},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=S.ajaxSettings.xhr();y.cors=!!zt&&"withCredentials"in zt,y.ajax=zt=!!zt,S.ajaxTransport(function(i){var o,a;if(y.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),S.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=S("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=vt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=A,S.isFunction=m,S.isWindow=x,S.camelCase=X,S.type=w,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Yt=C.jQuery,Qt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Qt),e&&C.jQuery===S&&(C.jQuery=Yt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});
3
4/*!
5 * jQuery Cookie Plugin
6 */
7(function (factory) {
8    if (typeof define === 'function' && define.amd) {
9        // AMD (Register as an anonymous module)
10        define(['jquery'], factory);
11    } else if (typeof exports === 'object') {
12        // Node/CommonJS
13        module.exports = factory(require('jquery'));
14    } else {
15        // Browser globals
16        factory(jQuery);
17    }
18}(function ($) {
19
20    var pluses = /\+/g;
21
22    function encode(s) {
23        return config.raw ? s : encodeURIComponent(s);
24    }
25
26    function decode(s) {
27        return config.raw ? s : decodeURIComponent(s);
28    }
29
30    function stringifyCookieValue(value) {
31        return encode(config.json ? JSON.stringify(value) : String(value));
32    }
33
34    function parseCookieValue(s) {
35        if (s.indexOf('"') === 0) {
36            // This is a quoted cookie as according to RFC2068, unescape...
37            s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
38        }
39
40        try {
41            // Replace server-side written pluses with spaces.
42            // If we can't decode the cookie, ignore it, it's unusable.
43            // If we can't parse the cookie, ignore it, it's unusable.
44            s = decodeURIComponent(s.replace(pluses, ' '));
45            return config.json ? JSON.parse(s) : s;
46        } catch(e) {}
47    }
48
49    function read(s, converter) {
50        var value = config.raw ? s : parseCookieValue(s);
51        return $.isFunction(converter) ? converter(value) : value;
52    }
53
54    var config = $.cookie = function (key, value, options) {
55
56        // Write
57
58        if (arguments.length > 1 && !$.isFunction(value)) {
59            options = $.extend({}, config.defaults, options);
60
61            if (typeof options.expires === 'number') {
62                var days = options.expires, t = options.expires = new Date();
63                t.setMilliseconds(t.getMilliseconds() + days * 864e+5);
64            }
65
66            return (document.cookie = [
67                encode(key), '=', stringifyCookieValue(value),
68                options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
69                options.path    ? '; path=' + options.path : '',
70                options.domain  ? '; domain=' + options.domain : '',
71                options.secure  ? '; secure' : ''
72            ].join(''));
73        }
74
75        // Read
76
77        var result = key ? undefined : {},
78            // To prevent the for loop in the first place assign an empty array
79            // in case there are no cookies at all. Also prevents odd result when
80            // calling $.cookie().
81            cookies = document.cookie ? document.cookie.split('; ') : [],
82            i = 0,
83            l = cookies.length;
84
85        for (; i < l; i++) {
86            var parts = cookies[i].split('='),
87                name = decode(parts.shift()),
88                cookie = parts.join('=');
89
90            if (key === name) {
91                // If second argument (value) is a function it's a converter...
92                result = read(cookie, value);
93                break;
94            }
95
96            // Prevent storing a cookie that we couldn't decode.
97            if (!key && (cookie = read(cookie)) !== undefined) {
98                result[name] = cookie;
99            }
100        }
101
102        return result;
103    };
104
105    config.defaults = {};
106
107    $.removeCookie = function (key, options) {
vendor: 8,957 bytes, lines 108-115
108        // Must not alter options, thus extending a fresh object...
109        $.cookie(key, '', $.extend({}, options, { expires: -1 }));
110        return !$.cookie(key);
111    };
112
113}));
114
115(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(V){V.ui=V.ui||{},V.ui.version="1.13.3";var n,s,x,k,o,a,r,l,h,i,N=0,E=Array.prototype.hasOwnProperty,c=Array.prototype.slice;function C(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function D(t,e){return parseInt(V.css(t,e),10)||0}function I(t){return null!=t&&t===t.window}V.cleanData=(n=V.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=V._data(i,"events"))&&e.remove&&V(i).triggerHandler("remove");n(t)}),V.widget=function(t,i,e){var s,n,o,a={},r=t.split(".")[0],l=r+"-"+(t=t.split(".")[1]);return e||(e=i,i=V.Widget),Array.isArray(e)&&(e=V.extend.apply(null,[{}].concat(e))),V.expr.pseudos[l.toLowerCase()]=function(t){return!!V.data(t,l)},V[r]=V[r]||{},s=V[r][t],n=V[r][t]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},V.extend(n,s,{version:e.version,_proto:V.extend({},e),_childConstructors:[]}),(o=new i).options=V.widget.extend({},o.options),V.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}a[e]="function"!=typeof s?s:function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}}),n.prototype=V.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},a,{constructor:n,namespace:r,widgetName:t,widgetFullName:l}),s?(V.each(s._childConstructors,function(t,e){var i=e.prototype;V.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),V.widget.bridge(t,n),n},V.widget.extend=function(t){for(var e,i,s=c.call(arguments,1),n=0,o=s.length;n<o;n++)for(e in s[n])i=s[n][e],E.call(s[n],e)&&void 0!==i&&(V.isPlainObject(i)?t[e]=V.isPlainObject(t[e])?V.widget.extend({},t[e],i):V.widget.extend({},i):t[e]=i);return t},V.widget.bridge=function(o,e){var a=e.prototype.widgetFullName||o;V.fn[o]=function(i){var t="string"==typeof i,s=c.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=V.data(this,a);return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for "+o+" widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=V.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=V.data(this,a);t?(t.option(i||{}),t._init&&t._init()):V.data(this,a,new e(i,this))})),n}},V.Widget=function(){},V.Widget._childConstructors=[],V.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=V(e||this.defaultElement||this)[0],this.element=V(e),this.uuid=N++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=V(),this.hoverable=V(),this.focusable=V(),this.classesElementLookup={},e!==this&&(V.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=V(e.style?e.ownerDocument:e.document||e),this.window=V(this.document[0].defaultView||this.document[0].parentWindow)),this.options=V.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:V.noop,_create:V.noop,_init:V.noop,destroy:function(){var i=this;this._destroy(),V.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:V.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return V.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=V.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=V(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(n){var o=[],a=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=a.classesElementLookup[t[s]]||V(),i=n.add?((()=>{var i=[];n.element.each(function(t,e){V.map(a.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),a._on(V(i),{remove:"_untrackClassesElement"})})(),V(V.uniqueSort(i.get().concat(n.element.get())))):V(i.not(n.element).get()),a.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}return(n=V.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var s=this;V.each(s.classesElementLookup,function(t,e){-1!==V.inArray(i.target,e)&&(s.classesElementLookup[t]=V(e.not(i.target).get()))}),this._off(V(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var n="string"==typeof t||null===t;return(e={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof s?s:i}).element.toggleClass(this._classes(e),s),this},_on:function(n,o,t){var a,r=this;"boolean"!=typeof n&&(t=o,o=n,n=!1),t?(o=a=V(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,a=this.widget()),V.each(t,function(t,e){function i(){if(n||!0!==r.options.disabled&&!V(this).hasClass("ui-state-disabled"))return("string"==typeof e?r[e]:e).apply(r,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||V.guid++);var s=(t=t.match(/^([\w:-]*)\s*(.*)$/))[1]+r.eventNamespace;(t=t[2])?a.on(s,t,i):o.on(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=V(this.bindings.not(t).get()),this.focusable=V(this.focusable.not(t).get()),this.hoverable=V(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(V(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(V(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(V(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=V.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!("function"==typeof o&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},V.each({show:"fadeIn",hide:"fadeOut"},function(o,a){V.Widget.prototype["_"+o]=function(e,t,i){var s,n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||a:o;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!V.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&V.effects&&V.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){V(this)[o](),i&&i.call(e[0]),t()})}}),V.widget,x=Math.max,k=Math.abs,o=/left|center|right/,a=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,h=/%$/,i=V.fn.position,V.position={scrollbarWidth:function(){var t,e,i;return void 0!==s?s:(i=(e=V("<div style='display:block;position:absolute;
115width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],V("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?V.position.scrollbarWidth():0,height:e?V.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=V(t||window),i=I(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:i||s?{left:0,top:0}:V(t).offset(),scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},V.fn.position=function(u){var d,p,f,g,m,_,v,b,y,w,t,e;return u&&u.of?(_="string"==typeof(u=V.extend({},u)).of?V(document).find(u.of):V(u.of),v=V.position.getWithinInfo(u.within),b=V.position.getScrollInfo(v),y=(u.collision||"flip").split(" "),w={},e=9===(e=(t=_)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:I(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},_[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,m=V.extend({},g=e.offset),V.each(["my","at"],function(){var t,e,i=(u[this]||"").split(" ");(i=1===i.length?o.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",t=r.exec(i[0]),e=r.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],u[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===u.at[0]?m.left+=p:"center"===u.at[0]&&(m.left+=p/2),"bottom"===u.at[1]?m.top+=f:"center"===u.at[1]&&(m.top+=f/2),d=C(w.at,p,f),m.left+=d[0],m.top+=d[1],this.each(function(){var i,t,a=V(this),r=a.outerWidth(),l=a.outerHeight(),e=D(this,"marginLeft"),s=D(this,"marginTop"),n=r+e+D(this,"marginRight")+b.width,o=l+s+D(this,"marginBottom")+b.height,h=V.extend({},m),c=C(w.my,a.outerWidth(),a.outerHeight());"right"===u.my[0]?h.left-=r:"center"===u.my[0]&&(h.left-=r/2),"bottom"===u.my[1]?h.top-=l:"center"===u.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:s},V.each(["left","top"],function(t,e){V.ui.position[y[t]]&&V.ui.position[y[t]][e](h,{targetWidth:p,targetHeight:f,elemWidth:r,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:o,offset:[d[0]+c[0],d[1]+c[1]],my:u.my,at:u.at,within:v,elem:a})}),u.using&&(t=function(t){var e=g.left-h.left,i=e+p-r,s=g.top-h.top,n=s+f-l,o={target:{element:_,left:g.left,top:g.top,width:p,height:f},element:{element:a,left:h.left,top:h.top,width:r,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};p<r&&k(e+i)<p&&(o.horizontal="center"),f<l&&k(s+n)<f&&(o.vertical="middle"),x(k(e),k(i))>x(k(s),k(n))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),a.offset(V.extend(h,{using:t}))})):i.apply(this,arguments)},V.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,o=t.left-e.collisionPosition.marginLeft,a=n-o,r=o+e.collisionWidth-(s=s.width)-n;s<e.collisionWidth?0<a&&r<=0?(i=t.left+a+e.collisionWidth-s-n,t.left+=a-i):t.left=!(0<r&&a<=0)&&r<a?n+s-e.collisionWidth:n:0<a?t.left+=a:0<r?t.left-=r:t.left=x(t.left-o,t.left)},top:function(t,e){var i,s=(s=e.within).isWindow?s.scrollTop:s.offset.top,n=e.within.height,o=t.top-e.collisionPosition.marginTop,a=s-o,r=o+e.collisionHeight-n-s;n<e.collisionHeight?0<a&&r<=0?(i=t.top+a+e.collisionHeight-n-s,t.top+=a-i):t.top=!(0<r&&a<=0)&&r<a?s+n-e.collisionHeight:s:0<a?t.top+=a:0<r?t.top-=r:t.top=x(t.top-o,t.top)}},flip:{left:function(t,e){var i=(n=e.within).offset.left+n.scrollLeft,s=n.width,n=n.isWindow?n.scrollLeft:n.offset.left,o=(a=t.left-e.collisionPosition.marginLeft)-n,a=a+e.collisionWidth-s-n,r="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"
vendor: 37,954 bytes, line 115
115===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];o<0?((s=t.left+r+l+h+e.collisionWidth-s-i)<0||s<k(o))&&(t.left+=r+l+h):0<a&&(0<(i=t.left-e.collisionPosition.marginLeft+r+l+h-n)||k(i)<a)&&(t.left+=r+l+h)},top:function(t,e){var i=(n=e.within).offset.top+n.scrollTop,s=n.height,n=n.isWindow?n.scrollTop:n.offset.top,o=(a=t.top-e.collisionPosition.marginTop)-n,a=a+e.collisionHeight-s-n,r="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];o<0?((s=t.top+r+l+h+e.collisionHeight-s-i)<0||s<k(o))&&(t.top+=r+l+h):0<a&&(0<(i=t.top-e.collisionPosition.marginTop+r+l+h-n)||k(i)<a)&&(t.top+=r+l+h)}},flipfit:{left:function(){V.ui.position.flip.left.apply(this,arguments),V.ui.position.fit.left.apply(this,arguments)},top:function(){V.ui.position.flip.top.apply(this,arguments),V.ui.position.fit.top.apply(this,arguments)}}},V.ui.position,V.extend(V.expr.pseudos,{data:V.expr.createPseudo?V.expr.createPseudo(function(e){return function(t){return!!V.data(t,e)}}):function(t,e,i){return!!V.data(t,i[3])}}),V.fn.extend({disableSelection:(W="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(W+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var W,u=V,d={},F=d.toString,L=/^([\-+])=\s*(\d+\.?\d*)/,R=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],p=u.Color=function(t,e,i,s){return new u.Color.fn.parse(t,e,i,s)},f={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"}}}},Y={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},B=p.support={},t=u("<p>")[0],g=u.each;function m(t){return null==t?t+"":"object"==typeof t?d[F.call(t)]||"object":typeof t}function _(t,e,i){var s=Y[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:Math.min(s.max,Math.max(0,t)))}function j(s){var n=p(),o=n._rgba=[];return s=s.toLowerCase(),g(R,function(t,e){var i=(i=e.re.exec(s))&&e.parse(i),e=e.space||"rgba";if(i)return i=n[e](i),n[f[e].cache]=i[f[e].cache],o=n._rgba=i._rgba,!1}),o.length?("0,0,0,0"===o.join()&&u.extend(o,y.transparent),n):y[s]}function v(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}t.style.cssText="background-color:rgba(1,1,1,.5)",B.rgba=-1<t.style.backgroundColor.indexOf("rgba"),g(f,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),u.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){d["[object "+e+"]"]=e.toLowerCase()}),(p.fn=u.extend(p.prototype,{parse:function(n,t,e,i){if(void 0===n)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=u(n).css(t),t=void 0);var o=this,s=m(n),a=this._rgba=[];return void 0!==t&&(n=[n,t,e,i],s="array"),"string"===s?this.parse(j(n)||y._default):"array"===s?(g(f.rgba.props,function(t,e){a[e.idx]=_(n[e.idx],e)}),this):"object"===s?(n instanceof p?g(f,function(t,e){n[e.cache]&&(o[e.cache]=n[e.cache].slice())}):g(f,function(t,i){var s=i.cache;g(i.props,function(t,e){if(!o[s]&&i.to){if("alpha"===t||null==n[t])return;o[s]=i.to(o._rgba)}o[s][e.idx]=_(n[t],e,!0)}),o[s]&&u.inArray(null,o[s].slice(0,3))<0&&(null==o[s][3]&&(o[s][3]=1),i.from)&&(o._rgba=i.from(o[s]))}),this):void 0},is:function(t){var n=p(t),o=!0,a=this;return g(f,function(t,e){var i,s=n[e.cache];return s&&(i=a[e.cache]||e.to&&e.to(a._rgba)||[],g(e.props,function(t,e){if(null!=s[e.idx])return o=s[e.idx]===i[e.idx]})),o}),o},_space:function(){var i=[],s=this;return g(f,function(t,e){s[e.cache]&&i.push(t)}),i.pop()},transition:function(t,a){var t=(h=p(t))._space(),e=f[t],i=0===this.alpha()?p("transparent"):this,r=i[e.cache]||e.to(i._rgba),l=r.slice(),h=h[e.cache];return g(e.props,function(t,e){var i=e.idx,s=r[i],n=h[i],o=Y[e.type]||{};null!==n&&(null===s?l[i]=n:(o.mod&&(n-s>o.mod/2?s+=o.mod:s-n>o.mod/2&&(s-=o.mod)),l[i]=_((n-s)*a+s,e)))}),this[t](l)},blend:function(t){var e,i,s;return 1===this._rgba[3]?this:(e=this._rgba.slice(),i=e.pop(),s=p(t)._rgba,p(u.map(e,function(t,e){return(1-i)*s[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=u.map(this._rgba,function(t,e){return null!=t?t:2<e?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=u.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+u.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=p.fn,f.hsla.to=function(t){var e,i,s,n,o,a,r,l;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,i=t[1]/255,s=t[2]/255,t=t[3],n=(l=Math.max(e,i,s))-(r=Math.min(e,i,s)),a=.5*(o=l+r),r=r===l?0:e===l?60*(i-s)/n+360:i===l?60*(s-e)/n+120:60*(e-i)/n+240,l=0==n?0:a<=.5?n/o:n/(2-o),[Math.round(r)%360,l,a,null==t?1:t])},f.hsla.from=function(t){var e,i,s;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,s=t[1],i=t[2],t=t[3],s=2*i-(i=i<=.5?i*(1+s):i+s-i*s),[Math.round(255*v(s,i,e+1/3)),Math.round(255*v(s,i,e)),Math.round(255*v(s,i,e-1/3)),t])},g(f,function(r,t){var e=t.props,o=t.cache,a=t.to,l=t.from;p.fn[r]=function(t){var i,s,n;return a&&!this[o]&&(this[o]=a(this._rgba)),void 0===t?this[o].slice():(i=m(t),s="array"===i||"object"===i?t:arguments,n=this[o].slice(),g(e,function(t,e){null==(t=s["object"===i?t:e.idx])&&(t=n[e.idx]),n[e.idx]=_(t,e)}),l?((t=p(l(n)))[o]=n,t):p(n))},g(e,function(o,a){p.fn[o]||(p.fn[o]=function(t){var e=m(t),i="alpha"===o?this._hsla?"hsla":"rgba":r,s=this[i](),n=s[a.idx];return"undefined"===e?n:("function"===e&&(e=m(t=t.call(this,n))),null==t&&a.empty?this:("string"===e&&(e=L.exec(t))&&(t=n+parseFloat(e[2])*("+"===e[1]?1:-1)),s[a.idx]=t,this[i](s)))})})}),(p.hook=function(t){t=t.split(" "),g(t,function(t,o){u.cssHooks[o]={set:function(t,e){var i,s,n="";if("transparent"!==e&&("string"!==m(e)||(i=j(e)))){if(e=p(i||e),!B.rgba&&1!==e._rgba[3]){for(s="backgroundColor"===o?t.parentNode:t;(""===n||"transparent"===n)&&s&&s.style;)try{n=u.css(s,"backgroundColor"),s=s.parentNode}catch(t){}e=e.blend(n&&"transparent"!==n?n:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},u.fx.step[o]=function(t){t.colorInit||(t.start=p(t.elem,o),t.end=p(t.end),t.colorInit=!0),u.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),u.cssHooks.borderColor={expand:function(i){var s={};return g(["Top","Right","Bottom","Left"],function(t,e){s["border"+e+"Color"]=i}),s}};var q,K,U,X,$,G,Q,J,Z,b,y=u.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"},w="ui-effects-",e="ui-effects-style",T="ui-effects-animated";function tt(t){var e,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,n={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[e=s[i]]&&(n[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=s[e]);else for(e in s)"string"==typeof s[e]&&(n[e]=s[e]);return n}function P(t,e,i,s){return t={effect:t=V.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(s=e,i=null,e={}),"number"!=typeof e&&!V.fx.speeds[e]||(s=i,i=e,e={}),"function"==typeof i&&(s=i,i=null),e&&V.extend(t,e),i=i||e.duration,t.duration=V.fx.off?0:"number"==typeof i?i:i in V.fx.speeds?V.fx.speeds[i]:V.fx.speeds._default,t.complete=s||e.complete,t}function M(t){return!t||"number"==typeof t||V.fx.speeds[t]||"string"==typeof t&&!V.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function et(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}V.effects={effect:{}},X=["add","remove","toggle"],$={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},V.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){V.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(u.style(t.elem,e,t.end),t.setAttr=!0)}}),V.fn.addBack||(V.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),V.effects.animateClass=function(n,t,e,i){var o=V.speed(t,e,i);return this.queue(function(){function t(){V.each(X,function(t,e){n[e]&&i[e+"Class"](n[e])})}var i=V(this),e=i.attr("class")||"",s=(s=o.children?i.find("*").addBack():i).map(function(){return{el:V(this),start:tt(this)}});t(),s=s.map(function(){return this.end=tt(this.el[0]),this.diff=((t,e)=>{var i,s,n={};for(i in e)s=e[i],t[i]===s||$[i]||!V.fx.step[i]&&isNaN(parseFloat(s))||(n[i]=s);return n})(this.start,this.end),this}),i.attr("class",e),s=s.map(function(){var t=this,e=V.Deferred(),i=V.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),V.when.apply(V,s.get()).done(function(){t(),V.each(arguments,function(){var e=this.el;V.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},V.fn.extend({addClass:(U=V.fn.addClass,function(t,e,i,s){return e?V.effects.animateClass.call(this,{add:t},e,i,s):U.apply(this,arguments)}),removeClass:(K=V.fn.removeClass,function(t,e,i,s){return 1<arguments.length?V.effects.animateClass.call(this,{remove:t},e,i,s):K.apply(this,arguments)}),toggleClass:(q=V.fn.toggleClass,function(t,e,i,s,n){return"boolean"==typeof e||void 0===e?i?V.effects.animateClass.call(this,e?{add:t}:{remove:t},i,s,n):q.apply(this,arguments):V.effects.animateClass.call(this,{toggle:t},e,i,s)}),switchClass:function(t,e,i,s,n){return V.effects.animateClass.call(this,{add:e,remove:t},i,s,n)}}),V.expr&&V.expr.pseudos&&V.expr.pseudos.animated&&(V.expr.pseudos.animated=(G=V.expr.pseudos.animated,function(t){return!!V(t).data(T)||G(t)})),!1!==V.uiBackCompat&&V.extend(V.effects,{save:function(t,e){for(var i=0,s=e.length;i<s;i++)null!==e[i]&&t.data(w+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;s<n;s++)null!==e[s]&&(i=t.data(w+e[s]),t.css(e[s],i))},setMode:function(t,e){return"toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var s={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=V("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!V.contains(i[0],n)||V(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(V.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),V.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!V.contains(t[0],e)||V(e).trigger("focus")),t}}),V.extend(V.effects,{version:"1.13.3",define:function(t,e,i){return i||(i=e,e="effect"),V.effects.effect[t]=i,V.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){var s;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(s="horizontal"!==i?(e||100)/100:1,i="vertical"!==i?(e||100)/100:1,{height:t.height()*i,width:t.width()*s,outerHeight:t.outerHeight()*i,outerWidth:t.outerWidth()*s})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();1<e&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(e,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(e)||"",t.removeData(e)},mode:function(t,e){return t=t.is(":hidden"),"toggle"===e&&(e=t?"show":"hide"),(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=V("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(w+"placeholder",e)),t.css({position:i,left:s.left,top:s.top}),e},removePlaceholder:function(t){var e=w+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){V.effects.restoreStyle(t),V.effects.removePlaceholder(t)},setTransition:function(s,t,n,o){return o=o||{},V.each(t,function(t,e){var i=s.cssUnit(e);0<i[0]&&(o[e]=i[0]*n+i[1])}),o}}),V.fn.extend({effect:function(){function t(t){var e=V(this),i=V.effects.mode(e,r)||o;e.data(T,!0),l.push(i),o&&("show"===i||i===o&&"hide"===i)&&e.show(),o&&"none"===i||V.effects.saveStyle(e),"function"==typeof t&&t()}var s=P.apply(this,arguments),n=V.effects.effect[s.effect],o=n.mode,e=s.queue,i=e||"fx",a=s.complete,r=s.mode,l=[];return V.fx.off||!n?r?this[r](s.duration,a):this.each(function(){a&&a.call(this)}):!1===e?this.each(t).each(h):this.queue(i,t).queue(i,h);function h(t){var e=V(this);function i(){"function"==typeof a&&a.call(e[0]),"function"==typeof t&&t()}s.mode=l.shift(),!1===V.uiBackCompat||o?"none"===s.mode?(e[r](),i()):n.call(e[0],s,function(){e.removeData(T),V.effects.cleanUp(e),"hide"===s.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===r:"show"===r)?(e[r](),i()):n.call(e[0],s,i)}},show:(Z=V.fn.show,function(t){return M(t)?Z.apply(this,arguments):((t=P.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(J=V.fn.hide,function(t){return M(t)?J.apply(this,arguments):((t=P.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(Q=V.fn.toggle,function(t){return M(t)||"boolean"==typeof t?Q.apply(this,arguments):((t=P.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var i=this.css(t),s=[];return V.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):et(this.css("clip"),this)},transfer:function(t,e){var i=V(this),s="fixed"===(r=V(t.to)).css("position"),n=V("body"),o=s?n.scrollTop():0,n=s?n.scrollLeft():0,a={top:(a=r.offset()).top-o,left:a.left-n,height:r.innerHeight(),width:r.innerWidth()},r=i.offset(),l=V("<div class='ui-effects-transfer'></div>");l.appendTo("body").addClass(t.className).css({top:r.top-o,left:r.left-n,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),V.fx.step.clip=function(t){t.clipInit||(t.start=V(t.elem).cssClip(),"string"==typeof t.end&&(t.end=et(t.end,t.elem)),t.clipInit=!0),V(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},b={},V.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){b[t]=function(t){return Math.pow(t,e+2)}}),V.extend(b,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),V.each(b,function(t,e){V.easing["easeIn"+t]=e,V.easing["easeOut"+t]=function(t){return 1-e(1-t)},V.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),t=V.effects,V.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=V(this),n=t.direction||"up",o=s.cssClip(),a={clip:V.extend({},o)},r=V.effects.createPlaceholder(s);a.clip[i[n][0]]=a.clip[i[n][1]],"show"===t.mode&&(s.cssClip(a.clip),r&&r.css(V.effects.clipToBox(a)),a.clip=o),r&&r.animate(V.effects.clipToBox(a),t.duration,t.easing),s.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("bounce",function(t,e){var i,s,n=V(this),o=t.mode,a="hide"===o,r=t.direction||"up",l=t.distance,h=t.times||5,c=2*h+((o="show"===o)||a?1:0),u=t.duration/c,d=t.easing,p="up"===r||"down"===r?"top":"left",f="up"===r||"left"===r,g=0,t=n.queue().length;for(V.effects.createPlaceholder(n),r=n.css(p),l=l||n["top"==p?"outerHeight":"outerWidth"]()/3,o&&((s={opacity:1})[p]=r,n.css("opacity",0).css(p,f?2*-l:2*l).animate(s,u,d)),a&&(l/=Math.pow(2,h-1)),(s={})[p]=r;g<h;g++)(i={})[p]=(f?"-=":"+=")+l,n.animate(i,u,d).animate(s,u,d),l=a?2*l:l/2;a&&((i={opacity:0})[p]=(f?"-=":"+=")+l,n.animate(i,u,d)),n.queue(e),V.effects.unshift(n,t,1+c)}),V.effects.define("clip","hide",function(t,e){var i={},s=V(this),n=(o="both"===(a=t.direction||"vertical"))||"horizontal"===a,o=o||"vertical"===a,a=s.cssClip();i.clip={top:o?(a.bottom-a.top)/2:a.top,right:n?(a.right-a.left)/2:a.right,bottom:o?(a.bottom-a.top)/2:a.bottom,left:n?(a.right-a.left)/2:a.left},V.effects.createPlaceholder(s),"show"===t.mode&&(s.cssClip(i.clip),i.clip=a),s.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("drop","hide",function(t,e){var i,s=V(this),n="show"===t.mode,o=t.direction||"left",a="up"===o||"down"===o?"top":"left",r="+="==(o="up"===o||"left"===o?"-=":"+=")?"-=":"+=",l={opacity:0};V.effects.createPlaceholder(s),i=t.distance||s["top"==a?"outerHeight":"outerWidth"](!0)/2,l[a]=o+i,n&&(s.css(l),l[a]=r+i,l.opacity=1),s.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("explode","hide",function(t,e){var i,s,n,o,a,r,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=l,c=V(this),u="show"===t.mode,d=c.show().css("visibility","hidden").offset(),p=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),g=[];function m(){g.push(this),g.length===l*h&&(c.css({visibility:"visible"}),V(g).remove(),e())}for(i=0;i<l;i++)for(o=d.top+i*f,r=i-(l-1)/2,s=0;s<h;s++)n=d.left+s*p,a=s-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:n+(u?a*p:0),top:o+(u?r*f:0),opacity:u?0:1}).animate({left:n+(u?0:a*p),top:o+(u?0:r*f),opacity:u?1:0},t.duration||500,t.easing,m)}),V.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;V(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("fold","hide",function(e,t){var i=V(this),s="show"===(n=e.mode),n="hide"===n,o=e.size||15,a=/([0-9]+)%/.exec(o),r=e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,h=V.effects.createPlaceholder(i),c=i.cssClip(),u={clip:V.extend({},c)},d={clip:V.extend({},c)},p=[c[r[0]],c[r[1]]],f=i.queue().length;a&&(o=parseInt(a[1],10)/100*p[n?0:1]),u.clip[r[0]]=o,d.clip[r[0]]=o,d.clip[r[1]]=0,s&&(i.cssClip(d.clip),h&&h.css(V.effects.clipToBox(d)),d.clip=c),i.queue(function(t){h&&h.animate(V.effects.clipToBox(u),l,e.easing).animate(V.effects.clipToBox(d),l,e.easing),t()}).animate(u,l,e.easing).animate(d,l,e.easing).queue(t),V.effects.unshift(i,f,4)}),V.effects.define("highlight","show",function(t,e){var i=V(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),V.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),V.effects.define("size",function(s,e){var n,i=V(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],a=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=s.mode,l="effect"!==r,h=s.scale||"both",c=s.origin||["middle","center"],u=i.css("position"),d=i.position(),p=V.effects.scaledDimensions(i),f=s.from||p,g=s.to||V.effects.scaledDimensions(i,0);V.effects.createPlaceholder(i),"show"===r&&(r=f,f=g,g=r),n={from:{y:f.height/p.height,x:f.width/p.width},to:{y:g.height/p.height,x:g.width/p.width}},"box"!==h&&"both"!==h||(n.from.y!==n.to.y&&(f=V.effects.setTransition(i,o,n.from.y,f),g=V.effects.setTransition(i,o,n.to.y,g)),n.from.x!==n.to.x&&(f=V.effects.setTransition(i,a,n.from.x,f),g=V.effects.setTransition(i,a,n.to.x,g))),"content"!==h&&"both"!==h||n.from.y!==n.to.y&&(f=V.effects.setTransition(i,t,n.from.y,f),g=V.effects.setTransition(i,t,n.to.y,g)),c&&(r=V.effects.getBaseline(c,p),f.top=(p.outerHeight-f.outerHeight)*r.y+d.top,f.left=(p.outerWidth-f.outerWidth)*r.x+d.left,g.top=(p.outerHeight-g.outerHeight)*r.y+d.top,g.left=(p.outerWidth-g.outerWidth)*r.x+d.left),delete f.outerHeight,delete f.outerWidth,i.css(f),"content"!==h&&"both"!==h||(o=o.concat(["marginTop","marginBottom"]).concat(t),a=a.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=V(this),e={height:(i=V.effects.scaledDimensions(t)).height*n.from.y,width:i.width*n.from.x,outerHeight:i.outerHeight*n.from.y,outerWidth:i.outerWidth*n.from.x},i={height:i.height*n.to.y,width:i.width*n.to.x,outerHeight:i.height*n.to.y,outerWidth:i.width*n.to.x};n.from.y!==n.to.y&&(e=V.effects.setTransition(t,o,n.from.y,e),i=V.effects.setTransition(t,o,n.to.y,i)),n.from.x!==n.to.x&&(e=V.effects.setTransition(t,a,n.from.x,e),i=V.effects.setTransition(t,a,n.to.x,i)),l&&V.effects.saveStyle(t),t.css(e),t.animate(i,s.duration,s.easing,function(){l&&V.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),V.effects.saveStyle(i)),e()}})}),V.effects.define("scale",function(t,e){var i=V(this),s=t.mode,s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),i=V.extend(!0,{from:V.effects.scaledDimensions(i),to:V.effects.scaledDimensions(i,s,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(i.from.opacity=1,i.to.opacity=0),V.effects.effect.size.call(this,i,e)}),V.effects.define("puff","hide",function(t,e){t=V.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150}),V.effects.effect.scale.call(this,t,e)}),V.effects.define("pulsate","show",function(t,e){var i=V(this),s="show"===(l=t.mode),n=2*(t.times||5)+(s||"hide"===l?1:0),o=t.duration/n,a=0,r=1,l=i.queue().length;for(!s&&i.is(":visible")||(i.css("opacity",0).show(),a=1);r<n;r++)i.animate({opacity:a},o,t.easing),a=1-a;i.animate({opacity:a},o,t.easing),i.queue(e),V.effects.unshift(i,l,1+n)}),V.effects.define("shake",function(t,e){var i=1,s=V(this),n=t.direction||"left",o=t.distance||20,a=t.times||3,r=2*a+1,l=Math.round(t.duration/r),h="up"===n||"down"===n?"top":"left",n="up"===n||"left"===n,c={},u={},d={},p=s.queue().length;for(V.effects.createPlaceholder(s),c[h]=(n?"-=":"+=")+o,u[h]=(n?"+=":"-=")+2*o,d[h]=(n?"-=":"+=")+2*o,s.animate(c,l,t.easing);i<a;i++)s.animate(u,l,t.easing).animate(d,l,t.easing);s.animate(u,l,t.easing).animate(c,l/2,t.easing).queue(e),V.effects.unshift(s,p,1+r)}),V.effects.define("slide","show",function(t,e){var i,s,n=V(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,r=t.direction||"left",l="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r,c=t.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};V.effects.createPlaceholder(n),i=n.cssClip(),s=n.position()[l],u[l]=(h?-1:1)*c+s,u.clip=n.cssClip(),u.clip[o[r][1]]=u.clip[o[r][0]],"show"===a&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=s),n.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),t=!1!==V.uiBackCompat?V.effects.define("transfer",function(t,e){V(this).transfer(t,e)}):t,V.ui.focusable=function(t,e){var i,s,n,o=t.nodeName.toLowerCase();return"area"===o?(n=(i=t.parentNode).name,!(!t.href||!n||"map"!==i.nodeName.toLowerCase())&&0<(i=V("img[usemap='#"+n+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(o)?(s=!t.disabled)&&(n=V(t).closest("fieldset")[0])&&(s=!n.disabled):s="a"===o&&t.href||e,s&&V(t).is(":visible")&&(t=>{for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"visible"===e})(V(t)))},V.extend(V.expr.pseudos,{focusable:function(t){return V.ui.focusable(t,null!=V.attr(t,"tabindex"))}}),V.ui.focusable,V.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):V(this[0].form)},V.ui.formResetMixin={_formResetHandler:function(){var e=V(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");V.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(V.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},V.expr.pseudos||(V.expr.pseudos=V.expr[":"]),V.uniqueSort||(V.uniqueSort=V.unique),V.escapeSelector||(it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,st=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},V.escapeSelector=function(t){return(t+"").replace(it,st)}),V.fn.even&&V.fn.odd||V.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),V.ui.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},V.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+V.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},V.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=V(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:V(this[0].ownerDocument||document)},V.extend(V.expr.pseudos,{tabbable:function(t){var e=V.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&V.ui.focusable(t,i)}}),V.fn.extend({uniqueId:(nt=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++nt)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&V(this).removeAttr("id")})}}),V.widget("ui.accordion",{version:"1.13.3",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(t){return t.find("> li > :first-child").add(t.find("> :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 t=this.options;this.prevShow=this.prevHide=V(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():V()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=V("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"===t?this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e)&&this._createIcons())},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=V.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&(V(t.target).attr("tabIndex",-1),V(n).attr("tabIndex",0),V(n).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===V.ui.keyCode.UP&&t.ctrlKey&&V(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=V()):!1===t.active?this._activate(0):this.active.length&&!V.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=V()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=V(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=V(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=V(this).outerHeight(!0)}),this.headers.next().each(function(){V(this).height(Math.max(0,i-V(this).innerHeight()+V(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=V(this).is(":visible");t||V(this).show(),i=Math.max(i,V(this).css("height","").height()),t||V(this).hide()}).height(i))},_activate:function(t){(t=this._findActive(t)[0])!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:V.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):V()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&V.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,s=V(t.currentTarget),n=s[0]===i[0],o=n&&e.collapsible,a=o?V():s.next(),r=i.next(),r={oldHeader:i,oldPanel:r,newHeader:o?V():s,newPanel:a};t.preventDefault(),n&&!e.collapsible||!1===this._trigger("beforeActivate",t,r)||(e.active=!o&&this.headers.index(s),this.active=n?V():s,this._toggle(r),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(a=i.children(".ui-accordion-header-icon"),this._removeClass(a,null,e.icons.activeHeader)._addClass(a,null,e.icons.header)),n)||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),e.icons&&(t=s.children(".ui-accordion-header-icon"),this._removeClass(t,null,e.icons.header)._addClass(t,null,e.icons.activeHeader)),this._addClass(s.next(),"ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(V(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){function s(){o._toggleComplete(e)}var n,o=this,a=0,r=t.css("box-sizing"),l=t.length&&(!i.length||t.index()<i.index()),h=this.options.animate||{},c=(c="string"==typeof(l=l&&h.down||h)?l:c)||l.easing||h.easing,u=(u="number"==typeof l?l:u)||l.duration||h.duration;return i.length?t.length?(n=t.show().outerHeight(),i.animate(this.hideProps,{duration:u,easing:c,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:u,easing:c,complete:s,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===r&&(a+=e.now):"content"!==o.options.heightStyle&&(e.now=Math.round(n-i.outerHeight()-a),a=0)}})):i.animate(this.hideProps,u,c,s):t.animate(this.showProps,u,c,s)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),V.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return
vendor: 10,190 bytes, line 115
115(i=i||e.body).nodeName?i:e.body},V.widget("ui.menu",{version:"1.13.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=V(t.target),i=V(V.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){V.contains(this.element[0],V.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=V(t.target).closest(".ui-menu-item"),i=V(t.currentTarget),e[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=V(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case V.ui.keyCode.PAGE_UP:this.previousPage(t);break;case V.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case V.ui.keyCode.HOME:this._move("first","first",t);break;case V.ui.keyCode.END:this._move("last","last",t);break;case V.ui.keyCode.UP:this.previous(t);break;case V.ui.keyCode.DOWN:this.next(t);break;case V.ui.keyCode.LEFT:this.collapse(t);break;case V.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case V.ui.keyCode.ENTER:case V.ui.keyCode.SPACE:this._activate(t);break;case V.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=V(this),e=t.prev(),i=V("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=V(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),e=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!V.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(e=parseFloat(V.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(V.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=V.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:V(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!V(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===V.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=V(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===V.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=V(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||V(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(String.prototype.trim.call(V(this).children(".ui-menu-item-wrapper").text()))})}}),V.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,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,liveRegionTimer:null,_create:function(){var i,s,n,t=
vendor: 8,718 bytes, line 115
115"textarea"===(e=this.element[0].nodeName.toLowerCase()),e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=V.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!s){var e=V.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){n?(n=!1,t.preventDefault()):this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=V("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,s;this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent)&&/^mouse/.test(t.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){V(t.target).trigger(t.originalEvent)})):(s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(V("<div>").text(i))},100)))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==V.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=V("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||V.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return(t=(t=t&&(t.jquery||t.nodeType?V(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(V.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=V.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:V.map(t,function(t){return"string"==typeof t?{label:t,value:t}:V.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(V.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var s=this;V.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return V("<li>").append(V("<div>").text(e.label)).appendTo(t)},_move:function(t,e){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[t](e):this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){var e;return!!t.length&&("inherit"===(e=t.prop("contentEditable"))?this._isContentEditable(t.parent()):"true"===e)}}),V.extend(V.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(V.ui.autocomplete.escapeRegex(e),"i");return V.grep(t,function(t){return i.test(t.label||t.value||t)})}}),V.widget("ui.autocomplete",V.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(V("<div>").text(e))},100))}}),V.ui.autocomplete;var it,st,nt,ot,S,at=/ui-corner-([a-z]){2,6}/g;function rt(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,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","Frid
115ay","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:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},V.extend(this._defaults,this.regional[""]),this.regional.en=V.extend(!0,{},this.regional[""]),this.regional["en-US"]=V.extend(!0,{},this.regional.en),this.dpDiv=lt(V("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function lt(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){V(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,ht)}function ht(){V.datepicker._isDisabledDatepicker((S.inline?S.dpDiv.parent():S.input)[0])||(V(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),V(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&V(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&V(this).addClass("ui-datepicker-next-hover"))}function H(t,e){for(var i in V.extend(t,e),e)null==e[i]&&(t[i]=e[i])}V.widget("ui.controlgroup",{version:"1.13.3",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var o=this,a=[];V.each(this.options.items,function(s,t){var e,n;t&&("controlgroupLabel"===s?((e=o.element.find(t)).each(function(){var t=V(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),a=a.concat(e.get())):V.fn[s]&&(n=o["_"+s+"Options"]?o["_"+s+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=V(this),e=t[s]("instance"),i=V.widget.extend({},n);"button"===s&&t.parent(".ui-spinner").length||((e=e||t[s]()[s]("instance"))&&(i.classes=o._resolveClassesValues(i.classes,e)),t[s](i),i=t[s]("widget"),V.data(i[0],"ui-controlgroup-data",e||t[s]("instance")),a.push(i[0]))})))}),this.childWidgets=V(V.uniqueSort(a)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=V(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label,this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){return(t=this._buildSimpleOptions(t,"ui-spinner"))
vendor: 7,196 bytes, line 115
115.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,s){var n={};return V.each(i,function(t){var e=s.options.classes[t]||"",e=String.prototype.trim.call(e.replace(at,""));n[t]=(e+" "+i[t]).replace(/\s+/g," ")}),n},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?this._callChildMethod(e?"disable":"enable"):this.refresh()},refresh:function(){var n,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),n=this.childWidgets,(n=this.options.onlyVisible?n.filter(":visible"):n).length&&(V.each(["first","last"],function(t,e){var i,s=n[e]().data("ui-controlgroup-data");s&&o["_"+s.widgetName+"Options"]?((i=o["_"+s.widgetName+"Options"](1===n.length?"only":e)).classes=o._resolveClassesValues(i.classes,s),s.element[s.widgetName](i)):o._updateCornerClass(n[e](),e)}),this._callChildMethod("refresh"))}}),V.widget("ui.checkboxradio",[V.ui.formResetMixin,{version:"1.13.3",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this._super()||{};return this._readType(),t=this.element.labels(),this.label=V(t[t.length-1]),this.label.length||V.error("No label found for checkboxradio widget"),this.originalLabel="",(t=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=t.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(e.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(e.disabled=t),e},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||V.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+V.escapeSelector(t)+"']";return t?(this.form.length?V(this.form[0].elements).filter(e):V(e).filter(function(){return 0===V(this)._form().length})).not(this.element):V([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=V(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){"label"===t&&!e||(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e):this.refresh())},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=V("<span>"),this.iconSpace=V("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),V.ui.checkboxradio,V.widget("ui.button",{version:"1.13.3",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===V.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var 
vendor: 448 bytes, line 115
115i=(t="iconPosition"!==t)?this.options.iconPosition:e,s="top"===i||"bottom"===i;this.icon?t&&this._removeClass(this.icon,null,this.options.icon):(this.icon=V("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),t&&this._addClass(this.icon,null,e),this._attachIcon(i),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 25,456 bytes, line 115
115pace||(this.iconSpace=V("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(i))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e)&&this.element.trigger("blur")},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==V.uiBackCompat&&(V.widget("ui.button",V.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"===t?this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments))}}),V.fn.button=(ot=V.fn.button,function(i){var t="string"==typeof i,s=Array.prototype.slice.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=V(this).attr("type"),e=V.data(this,"ui-"+("checkbox"!==e&&"radio"!==e?"button":"checkboxradio"));return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?V.error("no such method '"+i+"' for button widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:V.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=V.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=V(this).attr("type"),e=V.data(this,"ui-"+(t="checkbox"!==t&&"radio"!==t?"button":"checkboxradio"));e?(e.option(i||{}),e._init&&e._init()):"button"==t?ot.call(V(this),i):V(this).checkboxradio(V.extend({icon:!1},i))})),n}),V.fn.buttonset=function(){return V.ui.controlgroup||V.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),V.ui.button,V.extend(V.ui,{datepicker:{version:"1.13.3"}}),V.extend(rt.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return H(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),n="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(V(t),n)).settings=V.extend({},e||{}),"input"===s?this._connectDatepicker(t,i):n&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?lt(V("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=V(t);e.append=V([]),e.trigger=V([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),V.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=V("<span>").addClass(this._appendClass).text(s),t[n?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(s=this._get(e,"showOn"))&&"both"!==s||t.on("focus",this._showDatepicker),"button"!==s&&"both"!==s||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=V("<img>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):(e.trigger=V("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html(V("<img>").attr({src:i,alt:s,title:s})):e.trigger.text(s)),t[n?"before":"after"](e.trigger),e.trigger.on("click",function(){return V.datepicker._datepickerShowing&&V.datepicker._lastInput===t[0]?V.datepicker._hideDatepicker():(V.datepicker._datepickerShowing&&V.datepicker._lastInput!==t[0]&&V.datepicker._hideDatepicker(),V.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,n,o,a;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(a=this._get(t,"dateFormat")).match(/[DM]/)&&(o.setMonth((e=function(t){for(n=s=i=0;n<t.length;n++)t[n].length>i&&(i=t[n].length,s=n);return s})(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var i=V(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),V.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,s,n){var o,a=this._dialogInst;return a||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=V("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),V("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},V.data(this._dialogInput[0],"datepicker",a)),H(a.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(a,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,s/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),V.blockUI&&V.blockUI(this.dpDiv),V.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(t){var e,i=V(t),s=V.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),V.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),S===s)&&(S=null,this._curInst=null)},_enableDatepicker:function(e){var t,i=V(e),s=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((s=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=V(e),s=V.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((s=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=V.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return V.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,o=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?V.extend({},V.datepicker._defaults):o?"all"===e?V.extend({},o.settings):this._get(o,e):null;s=e||{},"string"==typeof e&&((s={})[e]=i),o&&(this._curInst===o&&this._hideDatepicker(),e=this._getDateDatepicker(t,!0),i=this._getMinMaxDate(o,"min"),n=this._getMinMaxDate(o,"max"),H(o.settings,s),null!==i&&void 0!==s.dateFormat&&void 0===s.minDate&&(o.settings.minDate=this._formatDate(o,i)),null!==n&&void 0!==s.dateFormat&&void 0===s.maxDate&&(o.settings.maxDate=this._formatDate(o,n)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(V(t),o),this._autoSize(o),this._setDate(o,e),this._updateAlternate(o),this._updateDatepicker(o))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){(t=this._getInst(t))&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){(t=this._getInst(t))&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){return(t=this._getInst(t))&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,s=V.datepicker._getInst(t.target),n=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,V.datepicker._datepickerShowing)switch(t.keyCode){case 9:V.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=V("td."+V.datepicker._dayOverClass+":not(."+V.datepicker._currentClass+")",s.dpDiv))[0]&&V.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(i=V.datepicker._get(s,"onSelect"))?(e=V.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[e,s])):V.datepicker._hideDatepicker(),!1;case 27:V.datepicker._hideDatepicker();break;case 33:V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(s,"stepBigMonths"):-V.datepicker._get(s,"stepMonths"),"M");break;case 34:V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(s,"stepBigMonths"):+V.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&V.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&V.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,o?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?-V.datepicker._get(s,"stepBigMonths"):-V.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,o?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&V.datepicker._adjustDate(t.target,t.ctrlKey?+V.datepicker._get(s,"stepBigMonths"):+V.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&V.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?V.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=V.datepicker._getInst(t.target);if(V.datepicker._get(i,"constrainInput"))return i=V.datepicker._possibleChars(V.datepicker._get(i,"dateFormat")),e=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||e<" "||!i||-1<i.indexOf(e)},_doKeyUp:function(t){if((t=V.datepicker._getInst(t.target)).input.val()!==t.lastVal)try{V.datepicker.parseDate(V.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,V.datepicker._getFormatConfig(t))&&(V.datepicker._setDateFromField(t),V.datepicker._updateAlternate(t),V.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=V("input",t.parentNode)[0]),V.datepicker._isDisabledDatepicker(t)||V.datepicker._lastInput===t||(n=V.datepicker._getInst(t),V.datepicker._curInst&&V.datepicker._curInst!==n&&(V.datepicker._curInst.dpDiv.stop(!0,!0),n)&&V.datepicker._datepickerShowing&&V.datepicker._hideDatepicker(V.datepicker._curInst.input[0]),!1===(i=(i=V.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{}))||(H(n.settings,i),n.lastVal=null,V.datepicker._lastInput=t,V.datepicker._setDateFromField(n),V.datepicker._inDialog&&(t.value=""),V.datepicker._pos||(V.datepicker._pos=V.datepicker._findPos(t),V.datepicker._pos[1]+=t.offsetHeight),e=!1,V(t).parents().each(function(){return!(e|="fixed"===V(this).css("position"))}),i={left:V.datepicker._pos[0],top:V.datepicker._pos[1]},V.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),V.datepicker._updateDatepicker(n),i=V.datepicker._checkOffset(n,i,e),n.dpDiv.css({position:V.datepicker._inDialog&&V.blockUI?"static":e?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),n.inline)||(i=V.datepicker._get(n,"showAnim"),s=V.datepicker._get(n,"duration"),n.dpDiv.css("z-index",(t=>{for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0})(V(t))+1),V.datepicker._datepickerShowing=!0,V.effects&&V.effects.effect[i]?n.dpDiv.show(i,V.datepicker._get(n,"showOptions"),s):n.dpDiv[i||"show"](i?s:null),V.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),V.datepicker._curInst=n)},_updateDatepicker:function(t){this.maxRows=4,(S=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a"),o=V.datepicker._get(t,"onUpdateDatepicker");0<n.length&&ht.apply(n.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===V.datepicker._curInst&&V.datepicker._datepickerShowing&&V.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+(i?0:V(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:V(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-o:0,e.left-=i&&e.left===t.input.offset().left?V(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+a?V(document).scrollTop():0,e.left-=Math.min(e.left,r<e.left+s&&s<r?Math.abs(e.left+s-r):0),e.top-=Math.min(e.top,l<e.top+n&&n<l?Math.abs(n+a):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||V.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=V(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==V.data(t,"datepicker")||this._datepickerShowing&&(t=this._get(s,"showAnim"),i=this._get(s,"duration"),e=function(){V.datepicker._tidyDialog(s)},V.effects&&(V.effects.effect[t]||V.effects[t])?s.dpDiv.hide(t,V.datepicker._get(s,"showOptions"),i,e):s.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?i:null,e),t||e(),this._datepickerShowing=!1,(i=this._get(s,"onClose"))&&i.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),V.blockUI)&&(V.unblockUI(),V("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;V.datepicker._curInst&&(t=V(t.target),e=V.datepicker._getInst(t[0]),!(t[0].id===V.datepicker._mainDivId||0!==t.parents("#"+V.datepicker._mainDivId).length||t.hasClass(V.datepicker.markerClassName)||t.closest("."+V.datepicker._triggerClass).length||!V.datepicker._datepickerShowing||V.datepicker._inDialog&&V.blockUI)||t.hasClass(V.datepicker.markerClassName)&&V.datepicker._curInst!==e)&&V.datepicker._hideDatepicker()},_adjustDate:function(t,e,i){var t=V(t),s=this._getInst(t[0]);this._isDisabledDatepicker(t[0])||(this._adjustInstDate(s,e,i),this._updateDatepicker(s))},_gotoToday:function(t){var e,t=V(t),i=this._getInst(t[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(e=new Date,i.selectedDay=e.getDate(),i.drawMonth=i.selectedMonth=e.getMonth(),i.drawYear=i.selectedYear=e.getFullYear()),this._notifyChange(i),this._adjustDate(t)},_selectMonthYear:function(t,e,i){var t=V(t),s=this._getInst(t[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(t)},_selectDay:function(t,e,i,s){var n=V(t);V(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=parseInt(V("a",s).attr("data-date")),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){t=V(t),this._selectDate(t,"")},_selectDate:function(t,e){var i,t=V(t),t=this._getInst(t[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,s=this._get(t,"altField");s&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),e=this._getDate(t),i=this.formatDate(i,e,this._getFormatConfig(t)),V(document).find(s).val(i))},noWeekends:function(t){return[0<(t=t.getDay())&&t<6,""]},iso8601Week:function(t){var e;return(t=new Date(t.getTime())).setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;for(var i,s,o=0,a="string"!=typeof(a=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff)?a:(new Date).getFullYear()%100+parseInt(a,10),r=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,l=(t?t.dayNames:null)||this._defaults.dayNames,h=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,c=(t?t.monthNames:null)||this._defaults.monthNames,u=-1,d=-1,p=-1,f=-1,g=!1,m=function(t){return(t=y+1<e.length&&e.charAt(y+1)===t)&&y++,t},_=function(t){var e=m(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,t=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(e=n.substring(o).match(t))return o+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+o},v=function(t,e,i){var s=-1,t=V.map(m(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(V.each(t,function(t,e){var i=e[1];if(n.substr(o,i.length).toLowerCase()===i.toLowerCase())return s=e[0],o+=i.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+o},b=function(){if(n.charAt(o)!==e.charAt(y))throw"Unexpected literal at position "+o;o++},y=0;y<e.length;y++)if(g)"'"!==e.charAt(y)||m("'")?b():g=!1;else switch(e.charAt(y)){case"d":p=_("d");break;case"D":v("D",r,l);break;case"o":f=_("o");break;case"m":d=_("m");break;case"M":d=v("M",h,c);break;case"y":u=_("y");break;case"@":u=(s=new Date(_("@"))).getFullYear(),d=s.getMonth()+1,p=s.getDate();break;case"!":u=(s=new Date((_("!")-this._ticksTo1970)/1e4)).getFullYear(),d=s.getMonth()+1,p=s.getDate();break;case"'":m("'")?b():g=!0;break;default:b()}if(o<n.length&&(t=n.substr(o),!/^\s+/.test(t)))throw"Extra/unparsed characters found in date: "+t;if(-1===u?u=(new Date).getFullYear():u<100&&(u+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u<=a?0:-100)),-1<f)for(d=1,p=f;!(p<=(i=this._getDaysInMonth(u,d-1)));)d++,p-=i;if((s=this._daylightSavingAdjust(new Date(u,d-1,p))).getFullYear()!==u||s.getMonth()+1!==d||s.getDate()!==p)throw"Invalid date";return s},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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function s(t,e,i){var s=""+e;if(c(t))for(;s.length<i;)s="0"+s;return s}function n(t,e,i,s){return(c(t)?s:i)[e]}var o,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,c=function(t){return(t=o+1<e.length&&e.charAt(o+1)===t)&&o++,t},u="",d=!1;if(t)for(o=0;o<e.length;o++)if(d)"'"!==e.charAt(o)||c("'")?u+=e.charAt(o):d=!1;else switch(e.charAt(o)){case"d":u+=s("d",t.getDate(),2);break;case"D":u+=n("D",t.getDay(),a,r);break;case"o":u+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=s("m",t.getMonth()+1,2);break;case"M":u+=n("M",t.getMonth(),l,h);break;case"y":u+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?u+="'":d=!0;break;default:u+=e.charAt(o)}return u},_possibleChars:function(e){for(var t="",i=!1,s=function(t){return(t=n+1<e.length&&e.charAt(n+1)===t)&&n++,t},n=0;n<e.length;n++)if(i)"'"!==e.charAt(n)||s("'")?t+=e.charAt(n):i=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":s("'")?t+="'":i=!0;break;default:t+=e.charAt(n)}return t},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(t){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(r,t,e){var i,s=null==t||""===t?e:"string"==typeof t?(t=>{try{return V.datepicker.parseDate(V.datepicker._get(r,"dateFormat"),t,V.datepicker._getFormatConfig(r))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?V.datepicker._getDate(r):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(t);a;){switch(a[2]||"d"){case"d":case"D":n+=parseInt(a[1],10);break;case"w":case"W":n+=7*parseInt(a[1],10);break;case"m":case"M":s+=parseInt(a[1],10),n=Math.min(n,V.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(a[1],10),n=Math.min(n,V.datepicker._getDaysInMonth(i,s))}a=o.exec(t)}return new Date(i,s,n)})
vendor: 8,106 bytes, line 115
115(t):"number"==typeof t?isNaN(t)?e:(s=t,(i=new Date).setDate(i.getDate()+s),i):new Date(t.getTime());return(s=s&&"Invalid Date"===s.toString()?e:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){V.datepicker._adjustDate(i,-e,"M")},next:function(){V.datepicker._adjustDate(i,+e,"M")},hide:function(){V.datepicker._hideDatepicker()},today:function(){V.datepicker._gotoToday(i)},selectDay:function(){return V.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return V.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return V.datepicker._selectMonthYear(i,this,"Y"),!1}};V(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,E,W,F,L,a,r,R,l,h,c,u,d,p,f,g,m,_,Y,v,b,B,y,j,q,w,x,k,C=new Date,K=this._daylightSavingAdjust(new Date(C.getFullYear(),C.getMonth(),C.getDate())),D=this._get(t,"isRTL"),C=this._get(t,"showButtonPanel"),I=this._get(t,"hideIfNoPrevNext"),T=this._get(t,"navigationAsDateFormat"),P=this._getNumberOfMonths(t),M=this._get(t,"showCurrentAtPos"),S=this._get(t,"stepMonths"),U=1!==P[0]||1!==P[1],H=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),z=this._getMinMaxDate(t,"min"),A=this._getMinMaxDate(t,"max"),O=t.drawMonth-M,N=t.drawYear;if(O<0&&(O+=12,N--),A)for(e=this._daylightSavingAdjust(new Date(A.getFullYear(),A.getMonth()-P[0]*P[1]+1,A.getDate())),e=z&&e<z?z:e;this._daylightSavingAdjust(new Date(N,O,1))>e;)--O<0&&(O=11,N--);for(t.drawMonth=O,t.drawYear=N,M=this._get(t,"prevText"),M=T?this.formatDate(M,this._daylightSavingAdjust(new Date(N,O-S,1)),this._getFormatConfig(t)):M,i=this._canAdjustMonth(t,-1,N,O)?V("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:M}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(D?"e":"w")).text(M))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:M}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(D?"e":"w")).text(M))[0].outerHTML,M=this._get(t,"nextText"),M=T?this.formatDate(M,this._daylightSavingAdjust(new Date(N,O+S,1)),this._getFormatConfig(t)):M,s=this._canAdjustMonth(t,1,N,O)?V("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:M}).append(V("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(D?"w":"e")).text(M))[0].outerHTML:I?"":V("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:M}).append(V("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(D?"w":"e")).text(M))[0].outerHTML,S=this._get(t,"currentText"),I=this._get(t,"gotoCurrent")&&t.currentDay?H:K,S=T?this.formatDate(S,I,this._getFormatConfig(t)):S,M="",t.inline||(M=V("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),T="",C&&(T=V("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(D?M:"").append(this._isInRange(t,I)?V("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(S):"").append(D?"":M)[0].outerHTML),n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,o=this._get(t,"showWeek"),E=this._get(t,"dayNames"),W=this._get(t,"dayNamesMin"),F=this._get(t,"monthNames"),L=this._get(t,"monthNamesShort"),a=this._get(t,"beforeShowDay"),r=this._get(t,"showOtherMonths"),R=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),h="",u=0;u<P[0];u++){for(d="",this.maxRows=4,p=0;p<P[1];p++){if(f=this._daylightSavingAdjust(new Date(N,O,t.selectedDay)),g=" ui-corner-all",m="",U){if(m+="<div class='ui-datepicker-group",1<P[1])switch(p){case 0:m+=" ui-datepicker-group-first",g=" ui-corner-"+(D?"right":"left");break;case P[1]-1:m+=" ui-datepicker-group-last",g=" ui-corner-"+(D?"left":"right");break;default:m+=" ui-datepicker-group-middle",g=""}m+="'>"}for(m+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+g+"'>"+(/all|left/.test(g)&&0===u?D?s:i:"")+(/all|right/.test(g)&&0===u?D?i:s:"")+this._generateMonthYearHeader(t,O,N,z,A,0<u||0<p,F,L)+"</div><table class='ui-datepicker-calendar'><thead><tr>",_=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",c=0;c<7;c++)_+="<th scope='col'"+(5<=(c+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+E[Y=(c+n)%7]+"'>"+W[Y]+"</span></th>";for(m+=_+"</tr></thead><tbody>",b=this._getDaysInMonth(N,O),N===t.selectedYear&&O===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,b)),v=(this._getFirstDayOfMonth(N,O)-n+7)%7,b=Math.ceil((v+b)/7),B=U&&this.maxRows>b?this.maxRows:b,this.maxRows=B,y=this._daylightSavingAdjust(new Date(N,O,1-v)),j=0;j<B;j++){for(m+="<tr>",q=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(y)+"</td>":"",c=0;c<7;c++)w=a?a.apply(t.input?t.input[0]:null,[y]):[!0,""],k=(x=y.getMonth()!==O)&&!R||!w[0]||z&&y<z||A&&A<y,q+="<td class='"+(5<=(c+n+6)%7?" ui-datepicker-week-end":"")+(x?" ui-datepicker-other-month":"")+(y.getTime()===f.getTime()&&O===t.selectedMonth&&t._keyEvent||l.getTime()===y.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+(k?" "+this._unselectableClass+" ui-state-disabled":"")+(x&&!r?"":" "+w[1]+(y.getTime()===H.getTime()?" "+this._currentClass:"")+(y.getTime()===K.getTime()?" ui-datepicker-today":""))+"'"+(x&&!r||!w[2]?"":" title='"+w[2].replace(/'/g,"&#39;")+"'")+(k?"":" data-handler='selectDay' data-event='click' data-month='"+y.getMonth()+"' data-year='"+y.getFullYear()+"'")+">"+(x&&!r?"&#xa0;":k?"<span class='ui-state-default'>"+y.getDate()+"</span>":"<a class='ui-state-default"+(y.getTime()===K.getTime()?" ui-state-highlight":"")+(y.getTime()===H.getTime()?" ui-state-active":"")+(x?" ui-priority-secondary":"")+"' href='#' aria-current='"+(y.getTime()===H.getTime()?"true":"false")+"' data-date='"+y.getDate()+"'>"+y.getDate()+"</a>")+"</td>",y.setDate(y.getDate()+1),y=this._daylightSavingAdjust(y);m+=q+"</tr>"}11<++O&&(O=0,N++),d+=m+="</tbody></table>"+(U?"</div>"+(0<P[0]&&p===P[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}h+=d}return h+=T,t._keyEvent=!1,h},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var l,h,c,u,d,p,f=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),m=this._get(t,"showMonthAfterYear"),_=this._get(t,"selectMonthLabel"),v=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",y="";if(o||!f)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' aria-label='"+_+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||c<=n.getMonth())&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(m||(b+=y+(!o&&f&&g?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!g)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(a=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),d=(_=function(t){
115return t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10),isNaN(t)?u:t})(a[0]),p=Math.max(d,_(a[1]||"")),d=s?Math.max(d,s.getFullYear()):d,p=n?Math.min(p,n.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+v+"' data-handler='selectYear' data-event='change'>";d<=p;d++)t.yearshtml+="<option value='"+d+"'"+(d===i?" selected='selected'":"")+">"+d+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),m&&(b+=(!o&&f&&g?"":"&#xa0;")+y),b+"</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=(i=this._getMinMaxDate(t,"min"))&&e<i?i:e;return(t=this._getMinMaxDate(t,"max"))&&t<i?t:i},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){return null==(t=this._get(t,"numberOfMonths"))?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()}
vendor: 10,670 bytes, line 115
115,_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),i=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth())),this._isInRange(t,i)},_isInRange:function(t,e){var i,s=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),o=null,a=null;return(t=this._get(t,"yearRange"))&&(t=t.split(":"),i=(new Date).getFullYear(),o=parseInt(t[0],10),a=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(o+=i),t[1].match(/[+\-].*/))&&(a+=i),(!s||e.getTime()>=s.getTime())&&(!n||e.getTime()<=n.getTime())&&(!o||e.getFullYear()>=o)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){return e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear),s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay)),this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),V.fn.datepicker=function(t){if(!this.length)return this;V.datepicker.initialized||(V(document).on("mousedown",V.datepicker._checkExternalClick),V.datepicker.initialized=!0),0===V("#"+V.datepicker._mainDivId).length&&V("body").append(V.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?V.datepicker["_"+t+"Datepicker"].apply(V.datepicker,[this].concat(e)):V.datepicker._attachDatepicker(this,t)})},V.datepicker=new rt,V.datepicker.initialized=!1,V.datepicker.uuid=(new Date).getTime(),V.datepicker.version="1.13.3",V.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var z,A=!1;function ct(t,e,i){return e<=t&&t<e+i}function O(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}V(document).on("mouseup",function(){A=!1}),V.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===V.data(t.target,e.widgetName+".preventClickEvent"))return V.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){var e,i,s;if(!A)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),i=1===(this._mouseDownEvent=t).which,s=!("string"!=typeof(e=this).options.cancel||!t.target.nodeName)&&V(t.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===V.data(t.target,this.widgetName+".preventClickEvent")&&V.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),A=!0)),!0},_mouseMove:function(t){if(this._mouseMoved){if(V.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&V.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,A=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),V.ui.plugin={add:function(t,e,i){var s,n=V.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;n<o.length;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},V.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&V(t).trigger("blur")},V.widget("ui.draggable",V.ui.mouse,{version:"1.13.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<V(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=V(this);return V("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=V.ui.safeActiveElement(this.document[0]);V(t.target).closest(e).length||V.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),V.ui.ddmanager&&(V.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===V(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),V.ui.ddmanager&&!e.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),V.ui.ddmanager&&V.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){if(e=this._uiHash(),!1===this._trigger("drag",t,e))return this._mouseUp(new V.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",V.ui.ddmanager&&V.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return V.ui.ddmanager&&!this.options.dropBehaviour&&(i=V.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?V(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),V.ui.ddmanager&&V.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),V.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new V.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!V(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,i="function"==typeof e.helper;return(t=i?V(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element)
vendor: 7,359 bytes, line 115
115.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&V.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())})},_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 t,e=this.options,i=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[V(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,V(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,V(window).scrollLeft()+V(window).width()-this.helperProportions.width-this.margins.left,V(window).scrollTop()+(V(window).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,V(i).width()-this.helperProportions.width-this.margins.left,(V(i).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(i=V(e.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var i,s=this.options,n=this._isRootNode(this.scrollParent[0]),o=t.pageX,a=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(a=e&&(this.containment&&(i=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(a=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3])&&(a=i[3]+this.offset.click.top),s.grid&&(e=s.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,a=!i||e-this.offset.click.top>=i[1]||e-this.offset.click.top>i[3]?e:e-this.offset.click.top>=i[1]?e-s.grid[1]:e+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,o=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-s.grid[0]:t+s.grid[0]),"y"===s.axis&&(o=this.originalPageX),"x"===s.axis)?this.originalPageY:a)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,i){return i=i||this._uiHash(),V.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),V.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),V.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=V.extend({},t,{item:i.element});i.sortables=[],V(i.options.connectToSortable).each(function(){var t=V(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(e,t,i){var s=V.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,V.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(i,s,n){V.each(n.sortables,function(){var t=!1,e=this;e.positionAbs=n.positionAbs,e.helperProportions=n.helperProportions,e.offset.click=n.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,V.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,t=
vendor: 8,178 bytes, line 115
115(this===e||!this._intersectsWith(this.containerCache)||!V.contains(e.element[0],this.element[0]))&&t})),t?(e.isOver||(e.isOver=1,n._parent=s.helper.parent(),e.currentItem=s.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return s.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=n.offset.click.top,e.offset.click.left=n.offset.click.left,e.offset.parent.left-=n.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=n.offset.parent.top-e.offset.parent.top,n._trigger("toSortable",i),n.dropped=e.element,V.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,e.fromOutside=n),e.currentItem&&(e._mouseDrag(i),s.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),s.helper.appendTo(n._parent),n._refreshOffsets(i),s.position=n._generatePosition(i,!0),n._trigger("fromSortable",i),n.dropped=!1,V.each(n.sortables,function(){this.refreshPositions()}))})}}),V.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=V("body"),i=i.options;s.css("cursor")&&(i._cursor=s.css("cursor")),s.css("cursor",i.cursor)},stop:function(t,e,i){(i=i.options)._cursor&&V("body").css("cursor",i._cursor)}}),V.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=V(e.helper),i=i.options,e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){(i=i.options)._opacity&&V(e.helper).css("opacity",i._opacity)}}),V.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var s=i.options,n=!1,o=i.scrollParentNotHidden[0],a=i.document[0];o!==a&&"HTML"!==o.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY<s.scrollSensitivity?o.scrollTop=n=o.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(o.scrollTop=n=o.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+o.offsetWidth-t.pageX<s.scrollSensitivity?o.scrollLeft=n=o.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(o.scrollLeft=n=o.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-V(a).scrollTop()<s.scrollSensitivity?n=V(a).scrollTop(V(a).scrollTop()-s.scrollSpeed):V(window).height()-(t.pageY-V(a).scrollTop())<s.scrollSensitivity&&(n=V(a).scrollTop(V(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-V(a).scrollLeft()<s.scrollSensitivity?n=V(a).scrollLeft(V(a).scrollLeft()-s.scrollSpeed):V(window).width()-(t.pageX-V(a).scrollLeft())<s.scrollSensitivity&&(n=V(a).scrollLeft(V(a).scrollLeft()+s.scrollSpeed)))),!1!==n&&V.ui.ddmanager&&!s.dropBehaviour&&V.ui.ddmanager.prepareOffsets(i,t)}}),V.ui.plugin.add("draggable","snap",{start:function(t,e,i){var s=i.options;i.snapElements=[],V(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=V(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var s,n,o,a,r,l,h,c,u,d=i.options,p=d.snapTolerance,f=e.offset.left,g=f+i.helperProportions.width,m=e.offset.top,_=m+i.helperProportions.height,v=i.snapElements.length-1;0<=v;v--)l=(r=i.snapElements[v].left-i.margins.left)+i.snapElements[v].width,c=(h=i.snapElements[v].top-i.margins.top)+i.snapElements[v].height,g<r-p||l+p<f||_<h-p||c+p<m||!V.contains(i.snapElements[v].item.ownerDocument,i.snapElements[v].item)?(i.snapElements[v].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,V.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=!1):("inner"!==d.snapMode&&(s=Math.abs(h-_)<=p,n=Math.abs(c-m)<=p,o=Math.abs(r-g)<=p,a=Math.abs(l-f)<=p,s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left),a)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),u=s||n||o||a,"outer"!==d.snapMode&&(s=Math.abs(h-m)<=p,n=Math.abs(c-_)<=p,o=Math.abs(r-f)<=p,a=Math.abs(l-g)<=p,s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r}).left),a)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),!i.snapElements[v].snapping&&(s||n||o||a||u)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,V.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=s||n||o||a||u)}}),V.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,i=i.options;(i=V.makeArray(V(i.stack)).sort(function(t,e){return(parseInt(V(t).css("zIndex"),10)||0)-(parseInt(V(e).css("zIndex"),10)||0)})).length&&(s=parseInt(V(i[0]).css("zIndex"),10)||0,V(i).each(function(t){V(this).css("zIndex",s+t)}),this.css("zIndex",s+i.length))}}),V.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=V(e.helper),i=i.options,e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){(i=i.options)._zIndex&&V(e.helper).css("zIndex",i._zIndex)}}),V.ui.draggable,V.widget("ui.resizable",V.ui.mouse,{version:"1.13.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if("hidden"===V(t).css("overflow"))return!1;var i=!1;if(0<t[e=e&&"left"===e?"scrollLeft":"scrollTop"])return!0;try{t[e]=1,i=0<t[e],t[e]=0}catch(t){}return i},_create:function(){var t,e=this.options,i=this;this._addClass("ui-resizable"),V.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(V("<div class='ui-wrapper'></div>").css({overflow:"hidden",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=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",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(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&V(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){function t(t){V(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var e;return this._mouseDestroy(),this._addedHandles.remove(),
vendor: 9,923 bytes, line 115
115this.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),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var t,e,i,s,n,o=this.options,a=this;if(this.handles=o.handles||(V(".ui-resizable-handle",this.element).length?{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"}:"e,s,se"),this._handles=V(),this._addedHandles=V(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e<i.length;e++)s="ui-resizable-"+(t=String.prototype.trim.call(i[e])),n=V("<div>"),this._addClass(n,"ui-resizable-handle "+s),n.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(t){var e,i,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=V(this.handles[e]),this._on(this.handles[e],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=V(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?s.outerHeight():s.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)(i=V(this.handles[e])[0])!==t.target&&!V.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s=this.options,n=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(e+=V(s.containment).scrollLeft()||0,i+=V(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:n.width(),height:n.height()},this.originalSize=this._helper?{width:n.outerWidth(),height:n.outerHeight()}:{width:n.width(),height:n.height()},this.sizeDiff={width:n.outerWidth()-n.width(),height:n.outerHeight()-n.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=V(".ui-resizable-"+this.axis).css("cursor"),V("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,s=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(i=i.apply(this,[t,s,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),V.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n=this.options,o=this;return this._helper&&(i=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,e=e?0:o.sizeDiff.width,e={width:o.helper.width()-e,height:o.helper.height()-i},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,s=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,n.animate||this.element.css(V.extend(e,{top:s,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper)&&!n.animate&&this._proportionallyResize(),V("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_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 t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,i,s,n=this.options,n={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||t)&&(t=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,e=n.maxHeight*this.aspectRatio,s=n.maxWidth/this.aspectRatio,n.minWidth<t&&(n.minWidth=t),n.minHeight<i&&(n.minHeight=i),e<n.maxWidth&&(n.maxWidth=e),s<n.maxHeight)&&(n.maxHeight=s),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&i&&(t.top=l-e.minHeight),n&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||V("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return V.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return V.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return V.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return V.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){V.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,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}}}),V.ui.plugin.add("resizable","animate",{stop:function(e){var i=V(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=
vendor: 2,058 bytes, line 115
115(o=s.length&&/textarea/i.test(s[0].nodeName))&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,o=o?0:i.sizeDiff.width,o={width:i.size.width-o,height:i.size.height-n},n=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,a=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(V.extend(o,a&&n?{top:a,left:n}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&V(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),V.ui.plugin.add("resizable","containment",{start:function(){var i,s,t,e,n=V(this).resizable("instance"),o=n.options,a=n.element;(a=(o=o.containment)instanceof V?o.get(0):/parent/.test(o)?a.parent().get(0):o)&&(n.containerElement=V(a),/document/.test(o)||o===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:V(document),left:0,top:0,width:V(document).width(),height:V(document).height()||document.body.parentNode.scrollHeight}):(i=V(a),s=[],V(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=n._num(i.css("padding"+e))}),n.containerOffset=i.offset(),n.containerPosition=i.position(),n.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},o=n.containerOffset,e=n.containerSize.height,t=n.containerSize.width,t=n._hasScroll(a,"left")?a.scrollWidth:t,e=n._hasScroll(a)?a.scrollHeight:e,n.parentData={element:a,left:o.left,top:o.top,width:t,height:e}))},resize:function(t){var e=V(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.position,t=e._aspectRatio||t.shiftKey,o={top:0,left:0},a=e.containerElement,r=!0;a[0]!==document&&/static/.test(a.css("position"))&&(o=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-o.left),t&&(e.size.height=e.size.width/e.aspectRatio,r=!1),e.position.left
vendor: 16,661 bytes, line 115
115=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),t&&(e.size.width=e.size.height*e.aspectRatio,r=!1),e.position.top=e._helper?s.top:0),a=e.containerElement.get(0)===e.element.parent().get(0),i=/relative|absolute/.test(e.containerElement.css("position")),a&&i?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),n=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-o.left:e.offset.left-s.left)),a=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-o.top:e.offset.top-s.top)),n+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-n,t)&&(e.size.height=e.size.width/e.aspectRatio,r=!1),a+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-a,t)&&(e.size.width=e.size.height*e.aspectRatio,r=!1),r||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=V(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,o=(r=V(t.helper)).offset(),a=r.outerWidth()-t.sizeDiff.width,r=r.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&V(this).css({left:o.left-s.left-i.left,width:a,height:r}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&V(this).css({left:o.left-s.left-i.left,width:a,height:r})}}),V.ui.plugin.add("resizable","alsoResize",{start:function(){var t=V(this).resizable("instance").options;V(t.alsoResize).each(function(){var t=V(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.css("width")),height:parseFloat(t.css("height")),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=V(this).resizable("instance"),s=e.options,n=e.originalSize,o=e.originalPosition,a={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};V(s.alsoResize).each(function(){var t=V(this),s=V(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];V.each(e,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){V(this).removeData("ui-resizable-alsoresize")}}),V.ui.plugin.add("resizable","ghost",{start:function(){var t=V(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==V.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=V(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=V(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),V.ui.plugin.add("resizable","grid",{resize:function(){var t,e=V(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,o=e.originalPosition,a=e.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=r[0]||1,h=r[1]||1,c=Math.round((s.width-n.width)/l)*l,s=Math.round((s.height-n.height)/h)*h,u=n.width+c,d=n.height+s,p=i.maxWidth&&i.maxWidth<u,f=i.maxHeight&&i.maxHeight<d,g=i.minWidth&&i.minWidth>u,m=i.minHeight&&i.minHeight>d;i.grid=r,g&&(u+=l),m&&(d+=h),p&&(u-=l),f&&(d-=h),/^(se|s|e)$/.test(a)?(e.size.width=u,e.size.height=d):/^(ne)$/.test(a)?(e.size.width=u,e.size.height=d,e.position.top=o.top-s):/^(sw)$/.test(a)?(e.size.width=u,e.size.height=d,e.position.left=o.left-c):((d-h<=0||u-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<d-h?(e.size.height=d,e.position.top=o.top-s):(d=h-t.height,e.size.height=d,e.position.top=o.top+n.height-d),0<u-l?(e.size.width=u,e.position.left=o.left-c):(u=l-t.width,e.size.width=u,e.position.left=o.left+n.width-u))}}),V.ui.resizable,V.widget("ui.dialog",{version:"1.13.3",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=V(this).css(t).offset().top;e<0&&V(this).css("top",t.top-e)}},resizable:!0,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:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_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"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&V.fn.draggable&&this._makeDraggable(),this.options.resizable&&V.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?V(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:V.noop,enable:V.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||V.ui.safeBlur(V.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+V(this).css("z-index")}).get();return(s=Math.max.apply(null,s))>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=V(V.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=V.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||V.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=V("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){var e,i,s;this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===V.ui.keyCode.ESCAPE?(t.preventDefault(),this.close(t)):t.keyCode!==V.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.first(),s=e.last(),t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=V("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){V(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=V("<button type='button'></button>").button({label:V("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=V("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=V("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=V("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),V.isEmptyObject(t)||Array.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(V.each(t,function(t,e){var i;e=V.extend({type:"button"},e="function"==typeof e?{click:e,text:t}:e),i=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,V("<button></button>",e).button(t).appendTo(s.uiButtonSet).on("click",function(){i.apply(s.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var n=this,o=this.options;function a(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){n._addClass(V(this),"ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",t,a(e))},drag:function(t,e){n._trigger("drag",t,a(e))},stop:function(t,e){var i=e.offset.left-n.document.scrollLeft(),s=e.offset.top-n.document.scrollTop();o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:n.window},n._removeClass(V(this),"ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",t,a(e))}})},_makeResizable:function(){var n=this,o=this.options,t=o.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function a(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.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:t,start:function(t,e){n._addClass(V(this),"ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",t,a(e))},resize:function(t,e){n._trigger("resize",t,a(e))},stop:function(t,e){var i=(s=n.uiDialog.offset()).left-n.document.scrollLeft(),s=s.top-n.document.scrollTop();o.height=n.uiDialog.height(),o.width=n.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:n.window},n._removeClass(V(this),"ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",t,a(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=V(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=V.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};V.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,e){var i,s=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:V("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=s.is(":data(ui-draggable)"))&&!e&&s.draggable("destroy"),!i)&&e&&this._makeDraggable(),"position"===t&&this._position(),"resizable"===t&&((i=s.is(":data(ui-resizable)"))&&!e&&s.resizable("destroy"),i&&"string"==typeof e&&s.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t)&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=V(this);return V("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!V(t.target).closest(".ui-dialog").length||!!V(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var i,s;this.options.modal&&(i=V.fn.jquery.substring(0,4),s=!0,this._delay(function(){s=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){var e;s||(e=this._trackingInstances()[0])._allowInteraction(t)||(t.preventDefault(),e._focusTabbable(),"3.4."!==i&&"3.5."!==i&&"3.6."!==i)||e._delay(e._restoreTabbableFocus)}.bind(this)),this.overlay=V("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==V.uiBackCompat&&V.widget("ui.dialog",V.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),V.ui.dialog,
vendor: 6,251 bytes, line 115
115V.widget("ui.droppable",{version:"1.13.3",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){V.ui.ddmanager.droppables[t]=V.ui.ddmanager.droppables[t]||[],V.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=V.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept="function"==typeof e?e:function(t){return t.is(e)}:"scope"===t&&(i=V.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=V.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=V.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=V.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=V.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||V.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=V(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&V.ui.intersect(i,V.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(s=!0)}),s)||!this.accept.call(this.element[0],i.currentItem||i.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),V.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var n=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,a=n+t.helperProportions.width,r=o+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,u=h+e.proportions().height;switch(i){case"fit":return l<=n&&a<=c&&h<=o&&r<=u;case"intersect":return l<n+t.helperProportions.width/2&&a-t.helperProportions.width/2<c&&h<o+t.helperProportions.height/2&&r-t.helperProportions.height/2<u;case"pointer":return ct(s.pageY,h,e.proportions().height)&&ct(s.pageX,l,e.proportions().width);case"touch":return(h<=o&&o<=u||h<=r&&r<=u||o<h&&u<r)&&(l<=n&&n<=c||l<=a&&a<=c||n<l&&c<a);default:return!1}},!(V.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var i,s,n=V.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<n.length;i++)if(!(n[i].options.disabled||t&&!n[i].accept.call(n[i].element[0],t.currentItem||t.element))){for(s=0;s<a.length;s++)if(a[s]===n[i].element[0]){n[i].proportions().height=0;continue t}n[i].visible="none"!==n[i].element.css("display"),n[i].visible&&("mousedown"===o&&n[i]._activate.call(n[i],e),n[i].offset=n[i].element.offset(),n[i].proportions({width:n[i].element[0].offsetWidth,height:n[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return V.each((V.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&V.ui.intersect(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||V.ui.ddmanager.prepareOffsets(t,e)})},drag:function(n,o){n.options.refreshPositions&&V.ui.ddmanager.prepareOffsets(n,o),V.each(V.ui.ddmanager.droppables[n.options.scope]||[],function(){var t,e,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(s=V.ui.intersect(n,this,this.options.tolerance,o))&&this.isover?"isout":s&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return V(this).droppable("instance").options.scope===e})).length)&&((t=V(i[0]).droppable("instance")).greedyChild="isover"===s),t&&"isover"===s&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,o),t)&&"isout"===s&&(t.isout=!1,t.isover=!0,t._over.call(t,o))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||V.ui.ddmanager.prepareOffsets(t,e)}})!==V.uiBackCompat&&V.widget("ui.droppable",V.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}})
vendor: 22,970 bytes, line 115
115,V.ui.droppable,V.widget("ui.progressbar",{version:"1.13.3",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=V("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=V("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),V.widget("ui.selectable",V.ui.mouse,{version:"1.13.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var i=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){i.elementPos=V(i.element[0]).offset(),i.selectees=V(i.options.filter,i.element[0]),i._addClass(i.selectees,"ui-selectee"),i.selectees.each(function(){var t=V(this),e={left:(e=t.offset()).left-i.elementPos.left,top:e.top-i.elementPos.top};V.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=V("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var s=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=V(this.element[0]).offset(),this.options.disabled||(this.selectees=V(t.filter,this.element[0]),this._trigger("start",i),V(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=V.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))}),V(i.target).parents().addBack().each(function(){var t,e=V.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),s._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?s._trigger("selecting",i,{selecting:e.element}):s._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(s){var t,n,o,a,r,l,h;if(this.dragged=!0,!this.options.disabled)return o=(n=this).options,a=this.opos[0],r=this.opos[1],(l=s.pageX)<a&&(t=l,l=a,a=t),(h=s.pageY)<r&&(t=h,h=r,r=t),this.helper.css({left:a,top:r,width:l-a,height:h-r}),this.selectees.each(function(){var t=V.data(this,"selectable-item"),e=!1,i={};t&&t.element!==n.element[0]&&(i.left=t.left+n.elementPos.left,i.right=t.right+n.elementPos.left,i.top=t.top+n.elementPos.top,i.bottom=t.bottom+n.elementPos.top,"touch"===o.tolerance?e=!(l<i.left||i.right<a||h<i.top||i.bottom<r):"fit"===o.tolerance&&(e=a<i.left&&i.right<l&&r<i.top&&i.bottom<h),e?(t.selected&&(n._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(n._addClass(t.$element,"ui-selecting"),t.selecting=!0,n._trigger("selecting",s,{selecting:t.element}))):(t.selecting&&((s.metaKey||s.ctrlKey)&&t.startselected?(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,n._addClass(t.$element,"ui-selected"),t.selected=!0):(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),n._trigger("unselecting",s,{unselecting:t.element}))),!t.selected||s.metaKey||s.ctrlKey||t.startselected||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",s,{unselecting:t.element}))))}),!1},_mouseStop:function(e){var i=this;return this.dragged=!1,V(".ui-unselecting",this.element[0]).each(function(){var t=V.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),V(".ui-selecting",this.element[0]).each(function(){var t=V.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),V.widget("ui.selectmenu",[V.ui.formResetMixin,{version:"1.13.3",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=V()},_drawButton:function(){var t,e=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.trigger("focus"),t.preventDefault()}}),this.element.hide(),this.button=V("<span>",{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",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=V("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=V("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=V("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),i._setSelection(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item"),null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(V.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=V("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(s,t){var n=this,o="";V.each(t,function(t,e){var i;e.optgroup!==o&&(i=V("<li>",{text:e.optgroup}),n._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(s),o=e.optgroup),n._renderItemData(s,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=V("<li>"),s=V("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),e.hidden?i.prop("hidden",!0):this._setText(s,e.label),i.append(s).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(i="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(t){this.isOpen&&!V(t.target).closest(".ui-selectmenu-menu, #"+V.escapeSelector(this.ids.button)).length&&this.close(t)}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case V.ui.keyCode.TAB:case V.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case V.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case V.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case V.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case V.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case V.ui.keyCode.LEFT:this._move("prev",t);break;case V.ui.keyCode.RIGHT:this._move("next",t);break;case V.ui.keyCode.HOME:case V.ui.keyCode.PAGE_UP:this._move("first",t);break;case V.ui.keyCode.END:case V.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id"),this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return(t=(t=t&&(t.jquery||t.nodeType?V(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1===t?this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,s=[];t.each(function(t,e){s.push(i._parseOption(V(e),t))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),hidden:i.prop("hidden")||t.prop("hidden"),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),V.widget("ui.slider",V.ui.mouse,{version:"1.13.3",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle"),s=[],n=e.values&&e.values.length||1;for(i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)s.push("<span tabindex='0'></span>");this.handles=i.add(V(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){V(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=V("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(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(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,o,e,a,r=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-r.values(t));(e<s||s===e&&(t===r._lastChangedValue||r.values(t)===l.min))&&(s=e,n=V(this),o=t)}),!1!==this._start(t,o))&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),e=n.offset(),a=!V(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:t.pageX-e.left-n.width()/2,top:t.pageY-e.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e;return(t=1<(t=(t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/e)?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),t=this._valueMin()+t*e,this._trimAlignValue(t)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n=this.value(),o=this.values();this._hasMultipleValues()&&(s=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(s,i):Math.max(s,i)),o[e]=i),i!==n&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0)},values:function(t,e){var i,s,n;if(1<arguments.length)this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),this._change(null,t);else{if(!arguments.length)return this._values();if(!Array.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,s=t,n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()}},_setOption:function(t,e){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length)return t=this.options.values[t],this._trimAlignValue(t);if(this._hasMultipleValues()){for(e=this.options.values.slice(),i=0;i<e.length;i+=1)e[i]=this._trimAlignValue(e[i]);return e}return[]},_trimAlignValue:function(t){var e,i;return t<=this._valueMin()?this._valueMin():t>=this._valueMax()?this._valueMax():(e=0<this.options.step?this.options.step:1,i=t-(t=(t-this._valueMin())%e),2*Math.abs(t)>=e&&(i+=0<t?e:-e),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=(t=t.toString())
vendor: 19,467 bytes, line 115
115.indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,s,n,o=this.options.range,a=this.options,r=this,l=!this._animateOff&&a.animate,h={};this._hasMultipleValues()?this.handles.each(function(t){i=(r.values(t)-r._valueMin())/(r._valueMax()-r._valueMin())*100,h["horizontal"===r.orientation?"left":"bottom"]=i+"%",V(this).stop(1,1)[l?"animate":"css"](h,a.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===t&&r.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===t&&r.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(t=this.value(),s=this._valueMin(),n=this._valueMax(),i=n!==s?(t-s)/(n-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,a.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},a.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},a.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},a.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var e,i,s,n=V(t.target).data("ui-slider-handle-index");switch(t.keyCode){case V.ui.keyCode.HOME:case V.ui.keyCode.END:case V.ui.keyCode.PAGE_UP:case V.ui.keyCode.PAGE_DOWN:case V.ui.keyCode.UP:case V.ui.keyCode.RIGHT:case V.ui.keyCode.DOWN:case V.ui.keyCode.LEFT:if(t.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(V(t.target),null,"ui-state-active"),!1!==this._start(t,n)))break;return}switch(s=this.options.step,e=i=this._hasMultipleValues()?this.values(n):this.value(),t.keyCode){case V.ui.keyCode.HOME:i=this._valueMin();break;case V.ui.keyCode.END:i=this._valueMax();break;case V.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case V.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case V.ui.keyCode.UP:case V.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+s);break;case V.ui.keyCode.DOWN:case V.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-s)}this._slide(t,n,i)},keyup:function(t){var e=V(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(V(t.target),null,"ui-state-active"))}}}),V.widget("ui.sortable",V.ui.mouse,{version:"1.13.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,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(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),V.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,n=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),V(t.target).parents().each(function(){if(V.data(this,n.widgetName+"-item")===n)return i=V(this),!1}),!(i=V.data(t.target,n.widgetName+"-item")===n?V(t.target):i))||(this.options.handle&&!e&&(V(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,i){var s,n,o=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=V("parent"!==o.appendTo?o.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},V.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),V.extend(this.offset,{parent:this._getParentOffset()}),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",o.cursor),this.storedStylesheet=V("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(n)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return V.ui.ddmanager&&(V.ui.ddmanager.current=this),V.ui.ddmanager&&!o.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,n,o=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),o.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),V.ui.ddmanager)&&!o.dropBehaviour&&V.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(n=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===n?"next":"prev"]()[0]===s||V.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&V.contains(this.element[0],s))){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),V.ui.ddmanager&&V.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,n,o;if(t)return V.ui.ddmanager&&!this.options.dropBehaviour&&V.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),o={},(n=this.options.axis)&&"x"!==n||(o.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(o.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,V(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new V.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),V.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?V(this.domPosition.prev).after(this.currentItem):V(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},V(t).each(function(){var t=(V(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(V(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||r<s+h&&s+h<l,c="y"===this.options.axis||o<e+c&&e+c<a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h&&c:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&r<s+this.helperProportions.height/2&&n-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,n,o=[],a=[],r=this._connectWith();if(r&&t)for(e=r.length-1;0<=e;e--)for(i=(s=V(r[e],this.document[0])).length-1;0<=i;i--)(n=V.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&a.push(["function"==typeof n.options.items?n.options.items.call(n.element):V(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n]);function l(){o.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):V(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=a.length-1;0<=e;e--)a[e][0].each(l);return V(o)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=V.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,n,o,a,r,l,h=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):V(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(e=u.length-1;0<=e;e--)for(i=(s=V(u[e],this.document[0])).length-1;0<=i;i--)(n=V.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&(c.push(["function"==typeof n.options.items?n.options.items.call(n.element[0],t,{item:this.currentItem}):V(n.options.items,n.element),n]),this.containers.push(n));for(e=c.length-1;0<=e;e--)for(o=c[e][1],l=(a=c[e][i=0]).length;i<l;i++)(r=V(a[i])).data(this.widgetName+"-item",o),h.push({item:r,instance:o,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?V(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,n,o=(i=i||this).options;o.placeholder&&o.placeholder.constructor!==String||(s=o.placeholder,n=i.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var t=V("<"+n+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===n?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),V("<tr>",i.document[0]).appendTo(t)):"tr"===n?i._createTrPlaceholder(i.currentItem,t):"img"===n&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!o.forcePlaceholderSize||(e.height()&&(!o.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=V(o.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),o.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){V("<td>&#160;</td>",i.document[0]).attr("colspan",V(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,n,o,a,r,l,h,c=null,u=null,d=this.containers.length-1;0<=d;d--)V.contains(this.currentItem[0],this.containers[d].element[0])||(this._intersectsWith(this.containers[d].containerCache)?c&&V.contains(this.containers[d].element[0],c.element[0])||(c=this.containers[d],u=d):this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[u].containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1);else{for(i=1e4,s=null,n=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",h=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)V.contains(this.containers[u].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(a=this.items[e].item.offset()[n],r=!1,t[h]-a>this.items[e][o]/2&&(r=!0),Math.abs(t[h]-a)<i)&&(i=Math.abs(t[h]-a),s=this.items[e],this.direction=r?"up":"down");(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[u]?this.currentContainer.containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[u].element,!0),this._trigger("change",t,this._uiHash()),this.containers[u]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[u],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1))}},_createHelper:function(t){var e=this.options
115;return(t="function"==typeof e.helper?V(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem)
vendor: 8,386 bytes, line 115
115.parents("body").length||this.appendTo[0].appendChild(t[0]),t[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")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&V.ui.ie?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{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 t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=V(i.containment)[0],i=V(i.containment).offset(),e="hidden"!==V(t).css("overflow"),this.containment=[i.left+(parseInt(V(t).css("borderLeftWidth"),10)||0)+(parseInt(V(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(V(t).css("borderTopWidth"),10)||0)+(parseInt(V(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(V(t).css("borderLeftWidth"),10)||0)-(parseInt(V(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(V(t).css("borderTopWidth"),10)||0)-(parseInt(V(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&V.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!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-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function n(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||s.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===V.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||V([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}})
vendor: 886 bytes, line 115
115,V.widget("ui.spinner",{version:"1.13.3",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,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),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var s=this._super(),n=this.element;return V.each(["min","max","step"],function(t,e){var i=n.attr(e);null!=i&&i.length&&(s[e]=i)}),s}
vendor: 21,506 bytes, line 115
115,_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){var i=V.ui.safeActiveElement(this.document[0]);if(this.element[0]===i&&e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function i(){this.element[0]!==V.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===V.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,V(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(V(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,V(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,i=V.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=(t=t.toString()).indexOf(".");return-1===e?0:t.length-e-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0;return t=i+Math.round((t-i)/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:O(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_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 t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:O(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:O(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:O(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:O(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());O(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==V.uiBackCompat&&V.widget("ui.spinner",V.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),V.ui.spinner,V.widget("ui.tabs",{version:"1.13.3",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(z=/#.*$/,function(t){var e=t.href.replace(z,""),i=location.href.replace(z,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=V.uniqueSort(t.disabled.concat(V.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=V(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,s=location.hash.substring(1);return null===i&&(s&&this.tabs.each(function(t,e){if(V(e).attr("aria-controls")===s)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):V()}},_tabKeydown:function(t){var e=V(V.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case V.ui.keyCode.RIGHT:case V.ui.keyCode.DOWN:i++;break;case V.ui.keyCode.UP:case V.ui.keyCode.LEFT:s=!1,i--;break;case V.ui.keyCode.END:i=this.anchors.length-1;break;case V.ui.keyCode.HOME:i=0;break;case V.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case V.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,s),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===V.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===V.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===V.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var i=this.tabs.length-1;-1!==V.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"===t?this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=V.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!V.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=V()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=V()),this._refresh()},_refresh:function(){this._setOptionDisabled(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"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){V(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){V(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return V("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=V(),this.anchors.each(function(t,e){var i,s,n,o=V(e).uniqueId().attr("id"),a=V(e).closest("li"),r=a.attr("aria-controls");l._isLocal(e)?(n=(i=e.hash).substring(1),s=l.element.find(l._sanitizeSelector(i))):(n=a.attr("aria-controls")||V({}).uniqueId()[0].id,(s=l.element.find(i="#"+n)).length||(s=l._createPanel(n)).insertAfter(l.panels[t-1]||l.tablist),s.attr("aria-live","polite")),s.length&&(l.panels=l.panels.add(s)),r&&a.data("ui-tabs-aria-controls",r),a.attr({"aria-controls":n,"aria-labelledby":o}),s.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return V("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=V(e),!0===t||-1!==V.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&V.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=V(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=V(this).outerHeight(!0)}),this.panels.each(function(){V(this).height(Math.max(0,i-V(this).innerHeight()+V(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,V(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,s=V(t.currentTarget).closest("li"),n=s[0]===i[0],o=n&&e.collapsible,a=o?V():this._getPanelForTab(s),r=i.length?this._getPanelForTab(i):V(),i={oldTab:i,oldPanel:r,newTab:o?V():s,newPanel:a};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||n&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!o&&this.tabs.index(s),this.active=n?V():s,this.xhr&&this.xhr.abort(),r.length||a.length||V.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,s=e.newPanel,n=e.oldPanel;function o(){i.running=!1,i._trigger("activate",t,e)}function a(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&i.options.show?i._show(s,i.options.show,o):(s.show(),o())}this.running=!0,n.length&&this.options.hide?this._hide(n,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n.hide(),a()),n.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&n.length?e.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter(function(){return 0===V(this).attr("tabIndex")}).attr("tabIndex",-1),s.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){(t=this._findActive(t))[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:V.noop}))},_findActive:function(t){return!1===t?V():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+V.escapeSelector(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){V.data(this,"ui-tabs-destroy")?V(this).remove():V(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=V(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?V.map(t,function(t){return t!==i?t:null}):V.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==V.inArray(t,e))return;e=Array.isArray(e)?V.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,s){function n(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(i,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}t=this._getIndex(t);var o=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),a=this._getPanelForTab(i),r={tab:i,panel:a};this._isLocal(t[0])||(this.xhr=V.ajax(this._ajaxSettings(t,s,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){a.html(t),o._trigger("load",s,r),n(i,e)},1)}).fail(function(t,e){setTimeout(function(){n(t,e)},1)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return n._trigger("beforeLoad",i,V.extend({jqXHR:t,ajaxSettings:e},s))}}},_getPanelForTab:function(t){return t=V(t).attr("aria-controls"),this.element.find(this._sanitizeSelector("#"+t))}}),!1!==V.uiBackCompat&&V.widget("ui.tabs",V.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),V.ui.tabs,V.widget("ui.tooltip",{version:"1.13.3",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=V(this).attr("title");return V("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/);-1!==(e=V.inArray(e,i))&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=String.prototype.trim.call(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=V("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=V([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&V.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var s=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=V(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=V(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=V([])},open:function(t){var i=this,e=V(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=V(this);e.data("ui-tooltip-open")&&((t=V.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,s=this,n=i?i.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(i,e,t);(t=t.call(e[0],function(t){s._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=n),this._open(i,e,t))})}))&&this._open(i,e,t)},_open:function(t,e,i){var s,n,o,a=V.extend({},this.options.position);function r(t){a.of=t,s.is(":hidden")||s.position(a)}i&&((o=this._find(e))?o.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),o=this._tooltip(e),s=o.tooltip,this._addDescribedBy(e,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(o=V("<div>").html(s.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),o.removeAttr("id").find("[id]").removeAttr("id"),o.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:r}),r(t)):s.position(V.extend({of:e},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(n=this.delayedShow=setInterval(function(){s.is(":visible")&&(r(a.of),clearInterval(n))},13)),this._trigger("open",t,{tooltip:s}
115)))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===V.ui.keyCode.ESCAPE&&((t=V.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){var t=this._find(e);t&&this._removeTooltip(t.tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,s=V(t?t.currentTarget:this.element),n=this._find(s);n?(e=n.tooltip,n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(V(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&V.each(this.parents,function(t,e){V(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding)||(n.closing=!1)):s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=V("<div>").attr("role","tooltip"),i=V("<div>").appendTo(e),s=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:e}},_find:function(t){return(t=t.data("ui-tooltip-id"))?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){return(t=t.closest(".ui-front, dialog")).length?t:this.document[0].body},_destroy:function(){var s=this;V.each(this.tooltips,function(t,e){var i=V.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],s.close(i,!0),V("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==V.uiBackCompat&&V.widget("ui.tooltip",V.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),V.ui.tooltip});
116function getAccountInfoResponse(a){if(null!=a&&0==a.errorCode&&(a={username:a.profile.firstName,method:Repsol.Analytics.getMethodLogin(a),user_id:a.UID,user_services:a.data.Service,user_registration_date:a.registered,user_bulletins:null!=a.Bulletins?a.Bulletins:null},window.sessionStorage.setItem("user",JSON.stringify(a))),null!=sessionStorage.getItem("user")){let e=JSON.parse(sessionStorage.getItem("user")),t=$("#GigyaUserBlock");t.addClass("logged-in"),0<$(".rp-login-pt").length&&$(".bottom-control.user-section").addClass("logged");var a=$("#user-area"),o=void 0===e.username?"":e.username,o=(-1<window.location.href.indexOf("/es/")?a.html('<button class="dropdown-toggle" type="button" id="dropdownUserMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="welcome">Hola </span><span class="user">'+o+"</span></button>"):"pt"===$("html").attr("lang")?a.html('<button class="dropdown-toggle" type="button" id="dropdownUserMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="welcome">Olá, </span><span class="user">'+o+"</span></button>"):a.html('<button class="dropdown-toggle" type="button" id="dropdownUserMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="welcome">Hi </span><span class="user">'+o+"</span></button>"),a.append('<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownUserMenuButton"></div>'),a.find(".dropdown-menu"));-1<window.location.href.indexOf("/es/")?(o.append('<a class="dropdown-item" href="'+t.attr("data-userAccount")+'" title="Account">Mi cuenta</a>'),o.append('<a class="dropdown-item" href="'+t.attr("data-userServices")+'" title="Services">Mis servicios</a>'),o.append('<a class="dropdown-item logout" href="" title="Logout">Cerrar sesión</a>')):"pt"===$("html").attr("lang")?(o.append('<a class="dropdown-item" href="'+t.attr("data-userAccount")+'" title="Account">Minha conta</a>'),o.append('<a class="dropdown-item" href="'+t.attr("data-userServices")+'" title="Services">Meus serviços</a>'),o.append('<a class="dropdown-item logout" href="" title="Logout">Fechar sessão</a>')):(o.append('<a class="dropdown-item" href="'+t.attr("data-userAccount")+'" title="Account">User account</a>'),o.append('<a class="dropdown-item" href="'+t.attr("data-userServices")+'" title="Services">User services</a>'),o.append('<a class="dropdown-item logout" href="" title="Logout">Logout</a>')),0<$(".header-user-pt").length&&$(".user-section").html($(".header-user-pt").html()),$(".dropdown-user").on("show.bs.dropdown",function(e){$(this).find(".dropdown-menu").first().stop(!0,!0).show()}),$(".dropdown-user").on("hide.bs.dropdown",function(e){$(this).find(".dropdown-menu").first().stop(!0,!0).hide()}
116),0<$(".header-user-pt").length?($(document).off("click",".logout"),$(document).on("click",".logout",function(e){e.preventDefault(),sessionStorage.removeItem("user");e=$("#GigyaUserBlock").attr("data-user-authentication-method");"repsol"===e?window.location.href=t.attr("data-logout"):"gigya"===e&&window.gigya&&(Repsol.utils.setLoader(!0,$(document).find("body")),gigya.accounts.logout({callback:onLogoutReload}))})):o.on("click",".logout",function(e){e.preventDefault(),sessionStorage.removeItem("user");e=$("#GigyaUserBlock").attr("data-user-authentication-method");"repsol"===e?window.location.href=t.attr("data-logout"):"gigya"===e&&window.gigya&&(Repsol.utils.setLoader(!0,$(document).find("body")),gigya.accounts.logout({callback:onLogoutReload}))})}}function onLogoutReload(e){window.location.href="https://login.repsol.com/"+Repsol.utils.getLanguage()+"/landing/logout?returnUrl=https://www.repsol.com/"+Repsol.utils.getLanguage()+"/index.cshtml",Repsol.utils.setLoader(!1,$(document).find("body"))}function hideCall(){var e=new Date;9<e.getHours()&&e.getHours()<21&&1<=e.getDay()&&e.getDay()<6?($(".header-center-top-zone").show(),$(".numberPhoneHeader").addClass("active"),$(".floating-input-sol .component-title").addClass("active"),$(".floating-input-sol .component-description").addClass("active")):($(".header-center-top-zone").hide(),$(".numberPhoneHeader").removeClass("active"),$(".floating-input-sol .component-title").removeClass("active"),$(".floating-input-sol .component-description").removeClass("active"))}HeaderCOM={positionScroll:null,breackpoint:1330,dateStart:null,dateEnd:null,timeOutXL:null,init:function(){var e=$
116(document).find("header");e&&(HeaderCOM.isFixed(),HeaderCOM.markActiveSection(),HeaderCOM.events(),e.hasClass("header-net")||HeaderCOM.eventResizeNav(),document.querySelector(".rp-lubricantes-page")||document.querySelector(".toolbox-principal-page")||HeaderCOM.gigya.init(),$(document).find(".header-complejos-industriales"))&&HeaderCOM.complejosIndustriales.init()},events:function(){$("#nav-header").on("hidden.bs.collapse",function(){HeaderCOM.eventCloseNav()}),$("#nav-header").on("shown.bs.collapse",function(){HeaderCOM.eventOpenNav()}),$(window).resize(function(){var e=$(document).find("header");$("body").css("padding-top","0"),HeaderCOM.isFixed(),e.hasClass("header-net")||HeaderCOM.eventResizeNav(),HeaderCOM.showMiniHeader()}),$(window).scroll(function(){HeaderCOM.closeMenu(),HeaderCOM.showMiniHeader(),HeaderCOM.isFixed()}),$(document).on("click",".header-bottom a",function(){HeaderCOM.closeMenu()}),$(document).on("mouseenter",".header .header-top, .header .header-net-top",function(){HeaderCOM.closeMenu()}),$(document).on("mouseout",".header .header-bottom .block-menu .block-bg",function(e){e=$(e.relatedTarget);null!=HeaderCOM.timeOutClose&&clearTimeout(HeaderCOM.timeOutClose),null!=HeaderCOM.timeOutXL&&clearTimeout(HeaderCOM.timeOutXL),0==e.parents(".block-menu").length&&(HeaderCOM.timeOutClose=setTimeout(function(){HeaderCOM.closeMenu()},500))}),$(document).on("mouseenter",".header .header-bottom .menu-xl .head-item.head-1",function(){var e;$(window).width()>=HeaderCOM.breackpoint&&(e=$(this),null!=HeaderCOM.timeOutClose&&clearTimeout(HeaderCOM.timeOutClose),null!=HeaderCOM.timeOutXL&&clearTimeout(HeaderCOM.timeOutXL),HeaderCOM.timeOutXL=setTimeout(function(){HeaderCOM.eventOpenXL(e)},500))}),$(document).on("mouseenter",".header .header-bottom  .menu-xl .head-item.head-2",function(){var t;$(window).width()>=HeaderCOM.breackpoint&&(null!=HeaderCOM.timeOutNivel2&&clearTimeout(HeaderCOM.timeOutNivel2),t=$(this),HeaderCOM.timeOutNivel2=setTimeout(function(){var e=$
116(""+t.attr("data-target"));e.length?e.hasClass("show")||(HeaderCOM.openImg(t),t.trigger("click")):$(".header .menu-xl .head-2[aria-expanded='true']").trigger("click")},300))})},showMiniHeader:function(){document.querySelector("header").classList.contains("non-fixed")||(HeaderCOM.breackpoint<=$(window).width()&&0==$("header").parents(".isAuthor").length?(HeaderCOM.positionScroll>$(window).scrollTop()||0==$(window).scrollTop()?$("header .header-bottom").is(":visible")||($("header .header-bottom").slideDown(),document.body.classList.remove("hidingHeaderBottom")):$("header .header-bottom").is(":visible")&&($("header .header-bottom").slideUp(),document.body.classList.add("hidingHeaderBottom")),HeaderCOM.positionScroll=$(window).scrollTop()):($("header .header-bottom").is(":visible")||($("header .header-bottom").slideDown(),document.body.classList.remove("hidingHeaderBottom")),HeaderCOM.positionScroll=null))},eventOpenXL:function(e){null!=HeaderSearch&&HeaderSearch.closeSearch();var t=$(""+e.attr("data-target"));t.length?t.hasClass("show")||(e.trigger("click"),HeaderCOM.openImg(e),$(".header .menu-xl .head-2[aria-expanded='true']").length&&$(".header .menu-xl .head-2[aria-expanded='true']").trigger("click")):$(".header .menu-xl .head-1[aria-expanded='true']").trigger("click")},openImg:function(e){var t=$(".header .menu-xl ."+e.attr("aria-controls")+"-img");t.length?t.is(":visible")||t.collapse("show"):(t=$(".header .menu-xl "+e.attr("data-parent")+"-img")).length?t.is(":visible")||t.collapse("show"):HeaderCOM.closeAllImg()},closeAllImg:function(){$(".header .menu-xl .block-advice").collapse("hide")},eventOpenNav:function(){$(window).width()<=HeaderCOM.breackpoint&&($(document).find(".header").addClass("open-header"),$(document).find("body").addClass("modal-open"))},eventCloseNav:function(){$(document).find("#nav-header").is(":visible")||($(document).find(".header").removeClass("open-header"),$(document).find("body").removeClass("modal-open"),$(".header .head-1[aria-expanded='true']").length&&$(".header .head-1[aria-expanded='true']").trigger("click"),$(".header .head-2[aria-expanded='true']").length&&$(".header .head-2[aria-expanded='true']").trigger("click")),$(document).find(".menu-xl").is(":visible")||($(".header .menu-xl .head-1[aria-expanded='true']").length&&$(".header .menu-xl .head-1[aria-expanded='true']").trigger("click"),$(".header .menu-xl .head-2[aria-expanded='true']").length&&$(".header .menu-xl .head-2[aria-expanded='true']").trigger("click"),HeaderCOM.closeAllImg())},eventResizeNav:function(){HeaderCOM.eventCloseNav(),$("#nav-header").collapse("hide"),$(window).width()>=HeaderCOM.breackpoint&&$("#nav-header").collapse("show")},closeMenu:function(){null!=HeaderCOM.timeOutClose&&clearTimeout(HeaderCOM.timeOutClose),null!=HeaderCOM.timeOutXL&&clearTimeout(HeaderCOM.timeOutXL),null!=HeaderCOM.timeOutNivel2&&clearTimeout(HeaderCOM.timeOutNivel2),$(window).width()>=HeaderCOM.breackpoint&&$(".header .head-1[aria-expanded='true']").trigger("click")},isFixed:function(){document.querySelector("header").classList.contains("non-fixed")||($(
116document).find("header").addClass("isFixed"),0<$(document).find(".header-xf > .no-author").length&&"0px"==$("body").css("padding-top")&&$(document).find("body").css("padding-top",$(document).find("header").outerHeight(!0)+"px"))},markActiveSection:function(){if(!$(".menu-xl .rp-navigation .head-1.active").length){var e=$(".menu-xl .rp-navigation .head-1"),t=window.location.pathname.split("/");if(3<t.length){let o=t[2];$.each(e,function(e,t){var a=$(t).find("a").attr("href");if(a){let e=[];if(3<(e=(-1<a.indexOf("https")?new URL(a).pathname:a).split("/")).length&&e[2]==o)return $(t).addClass("active"),!1}})}}},complejosIndustriales:{init:function(){HeaderCOM.complejosIndustriales.moveContactIconHeader()},moveContactIconHeader:function(){var e=$(".header-top .rp-link-header.rp-link-login"),t=e.find(".icon-rp");e.find("a.rp-link-header").prepend(t)}},gigya:{init:function(){window.gigya&&gigya.accounts.addEventHandlers({onLogin:HeaderCOM.gigya.showAccountInfo}),HeaderCOM.gigya.showAccountInfo(),HeaderCOM.gigya.showModal(),HeaderCOM.gigya.closeModal()},showModal:function(){$("body").on("click",".gigya-login-text",function(){var e=$
116("#GigyaUserBlock"),t=e.attr("data-user-authentication-method");"repsol"===t?location.href=e.attr("data-login"):"gigya"===t&&window.gigya&&(t={email_already_exists:e.attr("rp-catalog-login-email"),invalid_login_or_password:e.attr("rp-catalog-login-invalid"),passwords_do_not_match:e.attr("rp-catalog-login-pass"),this_field_is_required:e.attr("rp-catalog-login-required")},e={screenSet:"Authn-RegistrationLogin",lang:Repsol.utils.getLanguage(),customLang:t},gigya.accounts.showScreenSet(e))})},closeModal:function(){$("body").on("click","#gigya-screen-dialog-page-overlay",function(){$(".gigya-screen-dialog, #gigya-screen-dialog-page-overlay").hide()})},showAccountInfo:function(){window.gigya&&gigya.accounts.getAccountInfo({callback:getAccountInfoResponse})}}},$(document).ready(function(){HeaderCOM.init(),null==sessionStorage.getItem("user")||document.querySelector(".rp-lubricantes-page")||document.querySelector(".toolbox-principal-page")||getAccountInfoResponse(),$(".solmat-header-component .header-ecom-top .button1-nav").on("click",function(e){0<$(".roofer-form").length||0<$(".kam-form").length?window.history.back():($(".solmat-header-component #header-call").addClass("show"),$(".solmat-header-component").find(".header-layer-expanded").addClass("show"))}),$(".solmat-header-component .btn-close").on("click",function(e){return e.stopPropagation(),$(".solmat-header-component #header-call").removeClass("show"),$(".solmat-header-component").find(".header-layer-expanded").removeClass("show"),!1}),0<$(".solmat-header-component").length&&($(".floating-input").addClass("floating-input-sol"),hideCall())}),$(window).on("load",function(){$(".header-center-top-zone .rp-link-click").attr("href",$(".numberPhoneHeader a").attr("href")).text($(".numberPhoneHeader a").text())});
117var RepsolHeaderHero={mainHead:$(".header"),heroExists:!1,init:function(){RepsolHeaderHero.heroExists="true"===$("#headerTransparent").val(),RepsolHeaderHero.hero=$("#headerTransparent + .hero-home"),RepsolHeaderHero.events()},events:function(){RepsolHeaderHero.cookie.check("username"),$(".header-child").on("show.bs.collapse",function(){RepsolHeaderHero.heroExists&&RepsolHeaderHero.setWhiteHeader()}),$(".header-child").on("hidden.bs.collapse",function(){RepsolHeaderHero.heroExists&&0===$(".header-child.show").length&&0===$(".header-child.collapsing").length&&RepsolHeaderHero.setTransparentHeader()}),$("header .icon-rp-Search").on("click",function(e){RepsolHeaderHero.setWhiteHeader()}),$(".rp-link-header.icon-rp-Menu_02").on("click",function(e){RepsolHeaderHero.heroExists&&RepsolHeaderHero.setWhiteHeader()}),$(".header-bottom .icon-rp.icon-close, .block-search .rp-close-search").on("click",function(e){RepsolHeaderHero.setTransparentHeader()}),RepsolHeaderHero.heroExists?($("body").addClass("header-transparent"),RepsolHeaderHero.mainHead.addClass("fixed-top"),RepsolHeaderHero.hero.css({"padding-top":RepsolHeaderHero.mainHead.find("header").height()}),RepsolHeaderHero.setTransparentHeader()):RepsolHeaderHero.setWhiteHeader()},setTransparentHeader:function(){0===$(window).scrollTop()&&RepsolHeaderHero.heroExists&&($(".rp-logo.transparent").show(),$(".rp-logo.black").hide(),RepsolHeaderHero.mainHead.find("header").removeClass("border-header").addClass("header-transparent"),RepsolHeaderHero.mainHead.find("header > div").removeClass("bg-white"))},setWhiteHeader:function(){$(".rp-logo.transparent").hide(),$(".rp-logo.black").show(),RepsolHeaderHero.mainHead.find("header").removeClass("header-transparent").addClass("border-header"),RepsolHeaderHero.mainHead.find("header > div").addClass("bg-white")},cookie:{check:function(e){var r,e=RepsolHeaderHero.cookie.get(e);"null"!=e&&""!=e&&($(document).find(".header-ecom .rp-dropdown-user .user-firstname ").text(e),e=$(document).find(".header-user"),r=$(document).find(".bottom-control.user-section"),e.addClass("logged"),r.addClass("logged"))},get:function(e){for(var r=e+"=",o=decodeURIComponent(document.cookie).split(";"),a=0;a<o.length;a++){for(var s=o[a];" "==s.charAt(0);)s=s.substring(1);if(0==s.indexOf(r))return s.substring(r.length,s.length)}return""}}};$(document).ready(function(){RepsolHeaderHero.init()}),$(window).scroll(function(){0==$(this).scrollTop()&&RepsolHeaderHero.heroExists&&RepsolHeaderHero.setTransparentHeader(),0<$(this).scrollTop()&&RepsolHeaderHero.setWhiteHeader()});
118let AnalyticsHeader={events:function(){$(document).on("click","header .logged-in .logout",function(){isLubricant||AccountActionsRomProd.pushData($(this),{})})}};$(document).ready(function(){AnalyticsHeader.events()});
119((t,e)=>{"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exp
vendor: 13,864 bytes, line 119
119orts.Handlebars=e():t.Handlebars=e()})(this,function(){return n=[function(t,e,r){function n(){var r=h();return r.compile=function(t,e){return c.compile(t,e,r)},r.precompile=function(t,e){return c.precompile(t,e,r)},r.AST=o.default,r.Compiler=c.Compiler,r.JavaScriptCompiler=l.default,r.Parser=a.parser,r.parse=a.parse,r.parseWithoutProcessing=a.parseWithoutProcessing,r}var s=r(1).default;e.__esModule=!0;var i=s(r(2)),o=s(r(45)),a=r(46),c=r(51),l=s(r(52)),p=s(r(49)),s=s(r(44)),h=i.default.create,r=n();r.create=n,s.default(r),r.Visitor=p.default,r.default=r,e.default=r,t.exports=e.default},function(t,e){e.default=function(t){return t&&t.__esModule?t:{default:t}},e.__esModule=!0},function(t,e,r){function n(){var e=new o.HandlebarsEnvironment;return l.extend(e,o),e.SafeString=a.default,e.Exception=c.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=p,e.template=function(t){return p.template(t,e)},e}var s=r(3).default,i=r(1).default;e.__esModule=!0;var o=s(r(4)),a=i(r(37)),c=i(r(6)),l=s(r(5)),p=s(r(38)),s=i(r(44)),i=n();i.create=n,s.default(i),i.default=i,e.default=i,t.exports=e.default},function(t,e){e.default=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e},e.__esModule=!0},function(t,e,r){function n(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},a.registerDefaultHelpers(this),c.registerDefaultDecorators(this)}var s=r(1).default,i=(e.__esModule=!0,e.HandlebarsEnvironment=n,r(5)),o=s(r(6)),a=r(10),c=r(30),s=s(r(32)),l=r(33),p=(e.VERSION="4.7.7",e.COMPILER_REVISION=8,e.LAST_COMPATIBLE_COMPILER_REVISION=7,e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"},"[object Object]"),r=(n.prototype={constructor:n,logger:s.default,log:s.default.log,registerHelper:function(t,e){if(i.toString.call(t)===p){if(e)throw new o.default("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(i.toString.call(t)===p)i.extend(this.partials,t);else{if(void 0===e)throw new o.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(i.toString.call(t)===p){if(e)throw new o.default("Arg not supported with multiple decorators");i.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){l.resetLoggedProperties()}},s.default.log);e.log=r,e.createFrame=i.createFrame,e.logger=s.default},function(t,e){function r(t){return s[t]}function n(t){for(var e=1;e<arguments.length;e++)for(var r in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],r)&&(t[r]=arguments[e][r]);return t}e.__esModule=!0,e.extend=n,e.indexOf=function(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},e.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}return o.test(t)?t.replace(i,r):t},e.isEmpty=function(t){return!t&&0!==t||!(!l(t)||0!==t.length)},e.createFrame=function(t){var e=n({},t);return e._parent=t,e},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e};var s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},i=/[&<>"'`=]/g,o=/[&<>"'`=]/,a=Object.prototype.toString,c=(e.toString=a,function(t){return"function"==typeof t}),l=(c(/x/)&&(e.isFunction=c=function(t){return"function"==typeof t&&"[object Function]"===a.call(t)}),e.isFunction=c,Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===a.call(t)});e.isArray=l},function(t,e,r){function c(t,e){var e=e&&e.loc,r=void 0,n=void 0,s=void 0,i=void 0;e&&(r=e.start.line,n=e.end.line,s=e.start.column,i=e.end.column,t+=" - "+r+":"+s);for(var o=Error.prototype.constructor.call(this,t),a=0;a<p.length;a++)this[p[a]]=o[p[a]];Error.captureStackTrace&&Error.captureStackTrace(this,c);try{e&&(this.lineNumber=r,this.endLineNumber=n,l?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:i,enumerable:!0})):(this.column=s,this.endColumn=i))}catch(t){}}var l=r(7).default,p=(e.__esModule=!0,["description","fileName","lineNumber","endLineNumber","message","name","number","stack"]);c.prototype=new Error,e.default=c,t.exports=e.default},function(t,e,r){t.exports={default:r(8),__esModule:!0}},function(t,e,r){var n=r(9);t.exports=function(t,e,r){return n.setDesc(t,e,r)}},function(t,e){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(t,e,r){var n=r(1).default;e.__esModule=!0,e.registerDefaultHelpers=function(t){s.default(t),i.default(t),o.default(t),a.default(t),c.default(t),l.default(t),p.default(t)},e.moveHelperToHooks=function(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||delete t.helpers[e])};var s=n(r(11)),i=n(r(12)),o=n(r(25)),a=n(r(26)),c=n(r(27)),l=n(r(28)),p=n(r(29))},function(t,e,r){e.__esModule=!0;var i=r(5);e.default=function(s){s.registerHelper("blockHelperMissing",function(t,e){var r=e.inverse,n=e.fn;return!0===t?n(this):!1===t||null==t?r(this):i.isArray(t)?0<t.length?(e.ids&&(e.ids=[e.name]),s.helpers.each(t,e)):r(this):(e.data&&e.ids&&((r=i.createFrame(e.data)).contextPath=i.appendContextPath(e.data.contextPath,e.name),e={data:r}),n(t,e))})},t.exports=e.default},function(e,r,n){!function(d){var m=n(13).default,t=n(1).default,g=(r.__esModule=!0,n(5)),y=t(n(6));r.default=function(t){t.registerHelper("each",function(n,t){function e(t,e,r){c&&(c.key=t,c.index=e,c.first=0===e,c.last=!!r,l)&&(c.contextPath=l+t),a+=s(n[t],{data:c,blockParams:g.blockParams([n[t],t],[l+t,null])})}if(!t)throw new y.default("Must pass iterator to #each");var r,s=t.fn,i=t.inverse,o=0,a="",c=void 0,l=void 0;if(t.data&&t.ids&&(l=g.appendContextPath(t.data.contextPath,t.ids[0])+"."),g.isFunction(n)&&(n=n.call(this)),t.data&&(c=g.createFrame(t.data)),n&&"object"==typeof n)if(g.isArray(n))for(var p=n.length;o<p;o++)o in n&&e(o,o,o===n.length-1);else if(d.Symbol&&n[d.Symbol.iterator]){for(var h=[],u=n[d.Symbol.iterator](),f=u.next();!f.done;f=u.next())h.push(f.value);for(p=(n=h).length;o<p;o++)e(o,o,o===n.length-1)}else r=void 0,m(n).forEach(function(t){void 0!==r&&e(r,o-1),r=t,o++}),void 0!==r&&e(r,o-1,!0);return a=0===o?i(this):a})},e.exports=r.default}.call(r,function(){return this}())},function(t,e,r){t.exports={default:r(14),__esModule:!0}},function(t,e,r){r(15),t.exports=r(21).Object.keys},function(t,e,r){var n=r(16);r(18)("keys",function(e){return function(t){return e(n(t))}})},function(t,e,r){var n=r(17);t.exports=function(t){return Object(n(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,r){var s=r(19),i=r(21),o=r(24);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],n={};n[t]=e(r),s(s.S+s.F*o(function(){r(1)}),"Object",n)}},function(t,e,r){function d(t,e,r){var n,s,i,o=t&d.F,a=t&d.G,c=t&d.S,l=t&d.P,p=t&d.B,h=t&d.W,u=a?g:g[e]||(g[e]={}),f=a?m:c?m[e]:(m[e]||{})[v];for(n in r=a?e:r)s=!o&&f&&n in f,s&&n in u||(i=(s?f:r)[n],u[n]=a&&"function"!=typeof f[n]?r[n]:p&&s?y(i,m):h&&f[n]==i?(e=>{function t(t){return this instanceof e?new e(t):e(t)}return t[v]=e[v],t})(i):l&&"function"==typeof i?y(Function.call,i):i,l&&((u[v]||(u[v]={}))[n]=i))}var m=r(20),g=r(21),y=r(22),v="prototype";d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,t.exports=d},function(t,e){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(t,e){t=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=t)},function(t,e,r){var i=r(23);t.exports=function(n,s,t){if(i(n),void 0===s)return n;switch(t){case 1:return function(t){return n.call(s,t)};case 2:return function(t,e){return n.call(s,t,e)};case 3:return function(t,e,r){return n.call(s,t,e,r)}}return function(){return n.apply(s,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n=r(1).default;e.__esModule=!0;var s=n(r(6));e.default=function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new s.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default},function(t,e,r){var n=r(1).default,s=(e.__esModule=!0,r(5)),i=n(r(6));e.default=function(r){r.registerHelper("if",function(t,e){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return s.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||s.isEmpty(t)?e.inverse(this):e.fn(this)}),r.registerHelper("unless",function(t,e){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return r.helpers.if.call(this,t,{fn:e.inverse,inverse:e.fn,hash:e.hash})})},t.exports=e.default},function(t,e){e.__esModule=!0,e.default=function(s){s.registerHelper("log",function(){for(var t=[void 0],e=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var n=1;null!=e.hash.level?n=e.hash.level:e.data&&null!=e.data.level&&(n=e.data.level),t[0]=n,s.log.apply(s,t)})},t.exports=e.default},function(t,e){e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(t,e,r){return t&&r.lookupProperty(t,e)})},t.exports=e.default},function(t,e,r){var n=r(1).default,s=(e.__esModule=!0,r(5)),i=n(r(6));e.default=function(t){t.registerHelper("with",function(t,e){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");s.isFunction(t)&&(t=t.call(this));var r,n=e.fn;return s.isEmpty(t)?e.inverse(this):(r=e.data,e.data&&e.ids&&((r=s.createFrame(e.data)).contextPath=s.appendContextPath(e.data.contextPath,e.ids[0])),n(t,{data:r,blockParams:s.blockParams([t],[r&&r.contextPath])}))})},t.exports=e.default},function(t,e,r){var n=r(1).default;e.__esModule=!0,e.registerDefaultDecorators=function(t){s.default(t)};var s=n(r(31))},function(t,e,r){e.__esModule=!0;var o=r(5);e.default=function(t){t.registerDecorator("inline",function(n,s,i,t){var e=n;return s.partials||(s.partials={},e=function(t,e){var r=i.partials,t=(i.partials=o.extend({},r,s.partials),n(t,e));return i.partials=r,t}),s.partials[t.args[0]]=t.fn,e})},t.exports=e.default},function(t,e,r){e.__esModule=!0;var n=r(5),s={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){var e;return t="string"==typeof t?0<=(e=n.indexOf(s.methodMap,t.toLowerCase()))?e:parseInt(t,10):t},log:function(t){if(t=s.lookupLevel(t),"undefined"!=typeof console&&s.lookupLevel(s.level)<=t){t=s.methodMap[t];console[t]||(t="log");for(var e=arguments.length,r=Array(1<e?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];console[t].apply(console,r)}}};e.default=s,t.exports=e.default},function(t,e,r){function n(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(!0!==l[t=e]&&(l[t]=!0,c.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details')),!1)}var s=r(34).default,i=r(13).default,o=r(3).default,a=(e.__esModule=!0,e.createProtoAccessControl=function(t){var e=s(null),r=(e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1,s(null));return r.__proto__=!1,{properties:{whitelist:a.createNewLookupObject(r,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:a.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}},e.resultIsAllowed=function(t,e,r){return n("function"==typeof t?e.methods:e.properties,r)},e.resetLoggedProperties=function(){i(l).forEach(function(t){delete l[t]})},r(36)),c=o(r(32)),l=s(null)},function(t,e,r){t.exports={default:r(35),__esModule:!0}},function(t,e,r){var n=r(9);t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){var n=r(34).default,s=(e.__esModule=!0,e.createNewLookupObject=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return s.extend.apply(void 0,[n(null)].concat(e))},r(5))},function(t,e){function r(t){this.string=t}e.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},e.default=r,t.exports=e.default},function(t,e,r){function a(n,t,s,i,e,o,a){function r(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=a;return!a||t==a[0]||t===n.nullContext&&null===a[0]||(r=[t].concat(a)),s(n,t,n.helpers,n.partials,e.data||i,o&&[e.blockParams].concat(o),r)}return(r=u(s,r,n,a,i,o)).program=t,r.depth=a?a.length:0,r.blockParams=e||0,r}function o(){return""}function u(t,e,r,n,s,i){return t.decorator&&(e=t.decorator(e,t={},r,n&&n[0],s,i,n),f.extend(e,t)),e}var n=r(39).default,i=r(13).default,s=r(3).default,c=r(1).default;e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1,r=m.COMPILER_REVISION;if(!(m.LAST_COMPATIBLE_COMPILER_REVISION<=e&&e<=m.COMPILER_REVISION)){if(e<m.LAST_COMPATIBLE_COMPILER_REVISION)throw r=m.REVISION_CHANGES[r],e=m.REVISION_CHANGES[e],new d.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your prec
119ompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+e+").");throw new d.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}},e.template=function(c,l){function p(t){function e(t){return""+c.main(h,t,h.helpers,h.partials,i,a,o)}var r,n,s=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=s.data,o=(p._setup(s),!s.partial&&c.useData&&(r=t,(n=i)&&"root"in n||((n=n?m.createFrame(n):{}).root=r),i=n),void 0),a=c.useBlockParams?[]:void 0;return c.useDepths&&(o=s.depths?t!=s.depths[0]?[t].concat(s.depths):s.depths:[t]),(e=u(c.main,e,h,s.depths||[],i,a))(t,s)}if(!l)throw new d.default("No environment passed to template");if(!c||!c.main)throw new d.default("Unknown template object: "+typeof c);c.main.decorator=c.main_d,l.VM.checkRevision(c.compiler);var r=c.compiler&&7===c.compiler[0],h={strict:function(t,e,r){if(t&&e in t)return h.lookupProperty(t,e);throw new d.default('"'+e+'" not defined in '+t,{loc:r})},lookupProperty:function(t,e){var r=t[e];return null==r||Object.prototype.hasOwnProperty.call(t,e)||v.resultIsAllowed(r,h.protoAccessControl,e)?r:void 0},lookup:function(t,e){for(var r=t.length,n=0;n<r;n++)if(null!=(t[n]&&h.lookupProperty(t[n],e)))return t[n][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:f.escapeExpression,invokePartial:function(t,e,r){r.hash&&(e=f.extend({},e,r.hash),r.ids)&&(r.ids[0]=!0),t=l.VM.resolvePartial.call(this,t,e,r);var n=f.extend({},r,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),s=l.VM.invokePartial.call(this,t,e,n);if(null==s&&l.compile&&(r.partials[r.name]=l.compile(t,c.compilerOptions,l),s=r.partials[r.name](e,n)),null==s)throw new d.default("The partial "+r.name+" could not be compiled when running in runtime-only mode");if(r.indent){for(var i=s.split("\n"),o=0,a=i.length;o<a&&(i[o]||o+1!==a);o++)i[o]=r.indent+i[o];s=i.join("\n")}return s},fn:function(t){var e=c[t];return e.decorator=c[t+"_d"],e},programs:[],program:function(t,e,r,n,s){var i=this.programs[t],o=this.fn(t);return i=e||s||n||r?a(this,t,o,e,r,n,s):i||(this.programs[t]=a(this,t,o))},data:function(t,e){for(;t&&e--;)t=t._parent;return t},mergeIfNeeded:function(t,e){var r=t||e;return r=t&&e&&t!==e?f.extend({},e,t):r},nullContext:n({}),noop:l.VM.noop,compilerInfo:c.compiler};return p.isTop=!0,p._setup=function(t){var e,n,s;t.partial?(h.protoAccessControl=t.protoAccessControl,h.helpers=t.helpers,h.partials=t.partials,h.decorators=t.decorators,h.hooks=t.hooks):(e=f.extend({},l.helpers,t.helpers),s=h,i(n=e).forEach(function(t){var e,r=n[t];n[t]=(e=s.lookupProperty,y.wrapHelper(r,function(t){return f.extend({lookupProperty:e},t)}))}),h.helpers=e,c.usePartial&&(h.partials=h.mergeIfNeeded(t.partials,l.partials)),(c.usePartial||c.useDecorators)&&(h.decorators=f.extend({},l.decorators,t.decorators)),h.hooks={},h.protoAccessControl=v.createProtoAccessControl(t),e=t.allowCallsToHelperMissing||r,g.moveHelperToHooks(h,"helperMissing",e),g.moveHelperToHooks(h,"blockHelperMissing",e))},p._child=function(t,e,r,n){if(c.useBlockParams&&!r)throw new d.default("must pass block params");if(c.useDepths&&!n)throw new d.default("must pass parent depths");return a(h,t,c[t],e,0,r,n)},p},e.wrapProgram=a,e.resolvePartial=function(t,e,r){return t?t.call||r.name||(r.name=t,t=r.partials[t]):t="@partial-block"===r.name?r.data["partial-block"]:r.partials[r.name],t},e.invokePartial=function(t,e,r){var n,s=r.data&&r.data["partial-block"],i=(r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath),void 0);if(r.fn&&r.fn!==o&&(r.data=m.createFrame(r.data),n=r.fn,i=r.data["partial-block"]=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return e.data=m.createFrame(e.data),e.data["partial-block"]=s,n(t,e)},n.partials&&(r.partials=f.extend({},r.partials,n.partials))),void 0===(t=void 0===t&&i?i:t))throw new d.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)},e.noop=o;var f=s(r(5)),d=c(r(6)),m=r(4),g=r(10),y=r(43),v=r(33)},function(t,e,r){t.exports={default:r(40),__esModule:!0}},function(t,e,r){r(41),t.exports=r(21).Object.seal},function(t,e,r){var n=r(42);r(18)("seal",function(e){return function(t){return e&&n(t)?e(t):t}})},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}}
vendor: 2,511 bytes, line 119
119,function(t,e){e.__esModule=!0,e.wrapHelper=function(e,r){return"function"!=typeof e?e:function(){var t=arguments[arguments.length-1];return arguments[arguments.length-1]=r(t),e.apply(this,arguments)}}},function(t,e){!function(n){e.__esModule=!0,e.default=function(t){var e=void 0!==n?n:window,r=e.Handlebars;t.noConflict=function(){return e.Handlebars===t&&(e.Handlebars=r),t}},t.exports=e.default}.call(e,function(){return this}())},function(t,e){e.__esModule=!0;var r={helpers:{helperExpression:function(t){return"SubExpression"===t.type||("MustacheStatement"===t.type||"BlockStatement"===t.type)&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return 1===t.parts.length&&!r.helpers.scopedId(t)&&!t.depth}}};e.default=r,t.exports=e.default},function(t,e,r){function n(t,e){return"Program"===t.type?t:((o.default.yy=c).locInfo=function(t){return new c.SourceLocation(e&&e.srcName,t)},o.default.parse(t))}var s=r(1).default,i=r(3).default;e.__esModule=!0,e.parseWithoutProcessing=n,e.parse=function(t,e){return t=n(t,e),new a.default(e).accept(t)};var o=s(r(47)),a=s(r(48)),s=i(r(50)),i=r(5),c=(e.parser=o.default,{});i.extend(c,s)},function(t,e){e.__esModule=!0;(r={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,
vendor: 4,222 bytes, line 119
119EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(t,e,r,n,s,i,o){var a=i.length-1;switch(s){case 1:return i[a-1];case 2:this.$=n.prepareProgram(i[a]);break;case 3:case 4:case 5:case 6:case 7:case 8:this.$=i[a];break;case 9:this.$={type:"CommentStatement",value:n.stripComment(i[a]),strip:n.stripFlags(i[a],i[a]),loc:n.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:i[a],value:i[a],loc:n.locInfo(this._$)};break;case 11:this.$=n.prepareRawBlock(i[a-2],i[a-1],i[a],this._$);break;case 12:this.$={path:i[a-3],params:i[a-2],hash:i[a-1]};break;case 13:this.$=n.prepareBlock(i[a-3],i[a-2],i[a-1],i[a],!1,this._$);break;case 14:this.$=n.prepareBlock(i[a-3],i[a-2],i[a-1],i[a],!0,this._$);break;case 15:this.$={open:i[a-5],path:i[a-4],params:i[a-3],hash:i[a-2],blockParams:i[a-1],strip:n.stripFlags(i[a-5],i[a])};break;case 16:case 17:this.$={path:i[a-4],params:i[a-3],hash:i[a-2],blockParams:i[a-1],strip:n.stripFlags(i[a-5],i[a])};break;case 18:this.$={strip:n.stripFlags(i[a-1],i[a-1]),program:i[a]};break;case 19:var c=n.prepareBlock(i[a-2],i[a-1],i[a],i[a],!1,this._$),c=n.prepareProgram([c],i[a-1].loc);c.chained=!0,this.$={strip:i[a-2].strip,program:c,chain:!0};break;case 20:this.$=i[a];break;case 21:this.$={path:i[a-1],strip:n.stripFlags(i[a-2],i[a])};break;case 22:case 23:this.$=n.prepareMustache(i[a-3],i[a-2],i[a-1],i[a-4],n.stripFlags(i[a-4],i[a]),this._$);break;case 24:this.$={type:"PartialStatement",name:i[a-3],params:i[a-2],hash:i[a-1],indent:"",strip:n.stripFlags(i[a-4],i[a]),loc:n.locInfo(this._$)};break;case 25:this.$=n.preparePartialBlock(i[a-2],i[a-1],i[a],this._$);break;case 26:this.$={path:i[a-3],params:i[a-2],hash:i[a-1],strip:n.stripFlags(i[a-4],i[a])};break;case 27:case 28:this.$=i[a];break;case 29:this.$={type:"SubExpression",path:i[a-3],params:i[a-2],hash:i[a-1],loc:n.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:i[a],loc:n.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:n.id(i[a-2]),value:i[a],loc:n.locInfo(this._$)};break;case 32:this.$=n.id(i[a-1]);break;case 33:case 34:this.$=i[a];break;case 35:this.$={type:"StringLiteral",value:i[a],original:i[a],loc:n.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(i[a]),original:Number(i[a]),loc:n.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===i[a],original:"true"===i[a],loc:n.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:n.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:n.locInfo(this._$)};break;case 40:case 41:this.$=i[a];break;case 42:this.$=n.preparePath(!0,i[a],this._$);break;case 43:this.$=n.preparePath(!1,i[a],this._$);break;case 44:i[a-2].push({part:n.id(i[a]),original:i[a],separator:i[a-1]}),this.$=i[a-2];break;case 45:this.$=[{part:n
vendor: 12,303 bytes, line 119
119.id(i[a]),original:i[a]}];break;case 46:this.$=[];break;case 47:i[a-1].push(i[a]);break;case 48:this.$=[];break;case 49:i[a-1].push(i[a]);break;case 50:this.$=[];break;case 51:i[a-1].push(i[a]);break;case 58:this.$=[];break;case 59:i[a-1].push(i[a]);break;case 64:this.$=[];break;case 65:i[a-1].push(i[a]);break;case 70:this.$=[];break;case 71:i[a-1].push(i[a]);break;case 78:this.$=[];break;case 79:i[a-1].push(i[a]);break;case 82:this.$=[];break;case 83:i[a-1].push(i[a]);break;case 86:this.$=[];break;case 87:i[a-1].push(i[a]);break;case 90:this.$=[];break;case 91:i[a-1].push(i[a]);break;case 94:this.$=[];break;case 95:i[a-1].push(i[a]);break;case 98:this.$=[i[a]];break;case 99:i[a-1].push(i[a]);break;case 100:this.$=[i[a]];break;case 101:i[a-1].push(i[a])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(t,e){throw new Error(t)},parse:function(t){var e=this,r=[0],
vendor: 2,318 bytes, line 119
119n=[null],s=[],i=this.table,o="",a=0,c=0,l=0,p=(this.lexer.setInput(t),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,void 0===(this.yy.parser=this).lexer.yylloc&&(this.lexer.yylloc={}),this.lexer.yylloc),h=(s.push(p),this.lexer.options&&this.lexer.options.ranges);"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var u,f,d,m,g,y,v,k,S={};;){if(d=r[r.length-1],void 0===(m=this.defaultActions[d]||(null==u&&(b=void 0,u=b="number"!=typeof(b=e.lexer.lex()||1)&&e.symbols_[b]||b),i[d]&&i[d][u]))||!m.length||!m[0]){var b;if(!l){for(g in k=[],i[d])this.terminals_[g]&&2<g&&k.push("'"+this.terminals_[g]+"'");b=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+k.join(", ")+", got '"+(this.terminals_[u]||u)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==u?"end of input":"'"+(this.terminals_[u]||u)+"'"),this.parseError(b,{text:this.lexer.match,token:this.terminals_[u]||u,line:this.lexer.yylineno,loc:p,expected:k})}}if(m[0]instanceof Array&&1<m.length)throw new Error("Parse Error: multiple actions possible at state: "+d+", token: "+u);switch(m[0]){case 1:r.push(u),n.push(this.lexer.yytext),s.push(this.lexer.yylloc),r.push(m[1]),u=null,f?(u=f,f=null):(c=this.lexer.yyleng,o=this.lexer.yytext,a=this.lexer.yylineno,p=this.lexer.yylloc,0<l&&l--);break;case 2:if(y=this.productions_[m[1]][1],S.$=n[n.length-y],S._$={first_line:s[s.length-(y||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(y||1)].first_column,last_column:s[s.length-1].last_column},h&&(S._$.range=[s[s.length-(y||1)].range[0],s[s.length-1].range[1]]),void 0!==(v=this.performAction.call(S,o,c,a,this.yy,m[1],n,s)))return v;y&&(r=r.slice(0,-1*y*2),n=n.slice(0,-1*y),s=s.slice(0,-1*y)),r.push(this.productions_[m[1]][0]),n.push(S.$),s.push(S._$),v=i[r[r.length-2]][r[r.length-1]],r.push(v);break;case 3:return!0}}return!0}}).lexer={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t){return this._input=t,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}
vendor: 6,702 bytes, line 119
119,input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,r=t.split(/(?:\r\n?|\n)/g),t=(this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e-1),this.offset-=e,this.match.split(/(?:\r\n?|\n)/g)),n=(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1),this.yylloc.range);return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===t.length?this.yylloc.first_column:0)+t[t.length-r.length].length-r[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this},more:function(){return this._more=!0,this},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(20<t.length?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(20<t.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},next:function(){if(this.done)return this.EOF;var t,e,r,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var s=this._currentRules(),i=0;i<s.length&&(!(e=this._input.match(this.rules[s[i]]))||t&&!(e[0].length>t[0].length)||(t=e,r=i,this.options.flex));i++);return t?((n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,s[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return void 0!==t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(t){this.begin(t)},options:{},performAction:function(t,r,e,n){function s(t,e){return r.yytext=r.yytext.substring(t,r.yyleng-e+t)}switch(e){case 0:if("\\\\"===r.yytext.slice(-2)?(s(0,1),this.begin("mu")):"\\"===r.yytext.slice(-1)?(s(0,1),this.begin("emu")):this.begin("mu"),r.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(s(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(r.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return r.yytext=s(1,2).replace(/\\"/g,'"'),80;case 32:return r.yytext=s(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return r.yytext=r.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};var r=new((n.prototype=r).Parser=n);function n(){this.yy={}}e.default=r,t.exports=e.default},function(t,e,r){function n(){this.options=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]}function u(t,e,r){var n=t[(e=void 0===e?t.length:e)-1];return n?"ContentStatement"===n.type?(t[e-2]||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original):void 0:r}function f(t,e,r){var n=t[(e=void 0===e?-1:e)+1];return n?"ContentStatement"===n.type?(t[e+2]||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original):void 0:r}function d(t,e,r){t=t[null==e?0:e+1];!t||"ContentStatement"!==t.type||!r&&t.rightStripped||(e=t.value,t.value=t.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),t.rightStripped=t.value!==e)}function m(t,e,r){t=t[null==e?t.length-1:e-1];if(t&&"ContentStatement"===t.type&&(r||!t.leftStripped))return e=t.value,t.value=t.value.replace(r?/\s+$/:/[ \t]+$/,""),t.leftStripped=t.value!==e,t.leftStripped}var s=r(1).default;
vendor: 28,023 bytes, line 119
119e.__esModule=!0;s=s(r(49));(n.prototype=new s.default).Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,s=0,i=n.length;s<i;s++){var o,a,c,l,p=n[s],h=this.accept(p);h&&(l=u(n,s,r),o=f(n,s,r),a=h.openStandalone&&l,c=h.closeStandalone&&o,l=h.inlineStandalone&&l&&o,h.close&&d(n,s,!0),h.open&&m(n,s,!0),e&&l&&(d(n,s),m(n,s))&&"PartialStatement"===p.type&&(p.indent=/([ \t]+$)/.exec(n[s-1].original)[1]),e&&a&&(d((p.program||p.inverse).body),m(n,s)),e)&&c&&(d(n,s),m((p.inverse||p.program).body))}return t},n.prototype.BlockStatement=n.prototype.DecoratorBlock=n.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,r=t.program&&t.inverse,n=r,s=r;if(r&&r.chained)for(n=r.body[0].program;s.chained;)s=s.body[s.body.length-1].program;var i={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:f(e.body),closeStandalone:u((n||e).body)};return t.openStrip.close&&d(e.body,null,!0),r?((r=t.inverseStrip).open&&m(e.body,null,!0),r.close&&d(n.body,null,!0),t.closeStrip.open&&m(s.body,null,!0),!this.options.ignoreStandalone&&u(e.body)&&f(n.body)&&(m(e.body),d(n.body))):t.closeStrip.open&&m(e.body,null,!0),i},n.prototype.Decorator=n.prototype.MustacheStatement=function(t){return t.strip},n.prototype.PartialStatement=n.prototype.CommentStatement=function(t){t=t.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},e.default=n,t.exports=e.default},function(t,e,r){function n(){this.parents=[]}function s(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function i(t){s.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function o(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}var a=r(1).default;e.__esModule=!0;var c=a(r(6));n.prototype={constructor:n,mutating:!1,acceptKey:function(t,e){var r=this.accept(t[e]);if(this.mutating){if(r&&!n.prototype[r.type])throw new c.default('Unexpected node type "'+r.type+'" found when accepting '+e+" on "+t.type);t[e]=r}},acceptRequired:function(t,e){if(this.acceptKey(t,e),!t[e])throw new c.default(t.type+" requires "+e)},acceptArray:function(t){for(var e=0,r=t.length;e<r;e++)this.acceptKey(t,e),t[e]||(t.splice(e,1),e--,r--)},accept:function(t){if(t){if(!this[t.type])throw new c.default("Unknown type: "+t.type,t);this.current&&this.parents.unshift(this.current),this.current=t;var e=this[t.type](t);return this.current=this.parents.shift(),!this.mutating||e?e:!1!==e?t:void 0}},Program:function(t){this.acceptArray(t.body)},MustacheStatement:s,Decorator:s,BlockStatement:i,DecoratorBlock:i,PartialStatement:o,PartialBlockStatement:function(t){o.call(this,t),this.acceptKey(t,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(t){this.acceptArray(t.pairs)},HashPair:function(t){this.acceptRequired(t,"value")}},e.default=n,t.exports=e.default},function(t,e,r){function l(t,e){var r;if(e=e.path?e.path.original:e,t.path.original!==e)throw r={loc:t.path.loc},new p.default(t.path.original+" doesn't match "+e,r)}var n=r(1).default;e.__esModule=!0,e.SourceLocation=function(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}},e.id=function(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t},e.stripFlags=function(t,e){return{open:"~"===t.charAt(2),close:"~"===e.charAt(e.length-3)}},e.stripComment=function(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},e.preparePath=function(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",s=[],i=0,o=0,a=e.length;o<a;o++){var c=e[o].part,l=e[o].original!==c;if(n+=(e[o].separator||"")+c,l||".."!==c&&"."!==c&&"this"!==c)s.push(c);else{if(0<s.length)throw new p.default("Invalid path: "+n,{loc:r});".."===c&&i++}}return{type:"PathExpression",data:t,depth:i,parts:s,original:n,loc:r}},e.prepareMustache=function(t,e,r,n,s,i){var o="{"!==(o=n.charAt(3)||n.charAt(2))&&"&"!==o;return{type:/\*/.test(n)?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:o,strip:s,loc:this.locInfo(i)}},e.prepareRawBlock=function(t,e,r,n){return l(t,r),n=this.locInfo(n),{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:{type:"Program",body:e,strip:{},loc:n},openStrip:{},inverseStrip:{},closeStrip:{},loc:n}},e.prepareBlock=function(t,e,r,n,s,i){n&&n.path&&l(t,n);var o=/\*/.test(t.open),a=(e.blockParams=t.blockParams,void 0),c=void 0;if(r){if(o)throw new p.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,a=r.program}return s&&(s=a,a=e,e=s),{type:o?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:a,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(i)}},e.prepareProgram=function(t,e){var r;return{type:"Program",body:t,strip:{},loc:e=!e&&t.length&&(r=t[0].loc,t=t[t.length-1].loc,r)&&t?{source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:t.end.line,column:t.end.column}}:e}},e.preparePartialBlock=function(t,e,r,n){return l(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}};var p=n(r(6))},function(t,e,r){function n(){}function s(t){var e;t.path.parts||(e=t.path,t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc})}var i=r(34).default,o=r(1).default;e.__esModule=!0,e.Compiler=n,e.precompile=function(t,e,r){if(null==t||"string"!=typeof t&&"Program"!==t.type)throw new a.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);return"data"in(e=e||{})||(e.data=!0),e.compat&&(e.useDepths=!0),t=r.parse(t,e),t=(new r.Compiler).compile(t,e),(new r.JavaScriptCompiler).compile(t,e)},e.compile=function(e,r,n){function s(){var t=n.parse(e,r),t=(new n.Compiler).compile(t,r),t=(new n.JavaScriptCompiler).compile(t,r,void 0,!0);return n.template(t)}function t(t,e){return(i=i||s()).call(this,t,e)}if(void 0===r&&(r={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new a.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in(r=c.extend({},r))||(r.data=!0),r.compat&&(r.useDepths=!0);var i=void 0;return t._setup=function(t){return(i=i||s())._setup(t)},t._child=function(t,e,r,n){return(i=i||s())._child(t,e,r,n)},t};var a=o(r(6)),c=r(5),l=o(r(45)),p=[].slice;n.prototype={compiler:n,equals:function(t){var e=this.opcodes.length;if(t.opcodes.length!==e)return!1;for(var r=0;r<e;r++){var n=this.opcodes[r],s=t.opcodes[r];if(n.opcode!==s.opcode||!function t(e,r){if(e===r)return 1;if(c.isArray(e)&&c.isArray(r)&&e.length===r.length){for(var n=0;n<e.length;n++)if(!t(e[n],r[n]))return;return 1}}(n.args,s.args))return!1}for(e=this.children.length,r=0;r<e;r++)if(!this.children[r].equals(t.children[r]))return!1;return!0},guid:0,compile:function(t,e){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=e,this.stringParams=e.stringParams,this.trackIds=e.trackIds,e.blockParams=e.blockParams||[],e.knownHelpers=c.extend(i(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},e.knownHelpers),this.accept(t)},compileProgram:function(t){var t=(new this.compiler).compile(t,this.options),e=this.guid++;return this.usePartial=this.usePartial||t.usePartial,this.children[e]=t,this.useDepths=this.useDepths||t.useDepths,e},accept:function(t){if(!this[t.type])throw new a.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);t=this[t.type](t);return this.sourceNode.shift(),t},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var e=t.body,r=e.length,n=0;n<r;n++)this.accept(e[n]);return this.options.blockParams.shift(),this.isSimple=1===r,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){s(t);var e=t.program,r=t.inverse,e=e&&this.compileProgram(e),r=r&&this.compileProgram(r),n=this.classifySexpr(t);"helper"===n?this.helperSexpr(t,e,r):"simple"===n?(this.simpleSexpr(t),this.opcode("pushProgram",e),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,e,r),this.opcode("pushProgram",e),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var e=t.program&&this.compileProgram(t.program),e=this.setupFullMustacheParams(t,e,void 0),t=t.path;this.useDecorators=!0,this.opcode("registerDecorator",e.length,t.original)},PartialStatement:function(t){this.usePartial=!0;var e=(e=t.program)&&this.compileProgram(t.program),r=t.params;if(1<r.length)throw new a.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,n="SubExpression"===t.name.type,e=(n&&this.accept(t.name),this.setupFullMustacheParams(t,e,void 0,!0),t.indent||"");this.options.preventIndent&&e&&(this.opcode("appendContent",e),e=""),this.opcode("invokePartial",n,r,e),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){s(t);var e=this.classifySexpr(t);"simple"===e?this.simpleSexpr(t):"helper"===e?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,e,r){var t=t.path,n=t.parts[0],s=null!=e||null!=r;this.opcode("getContext",t.depth),this.opcode("pushProgram",e),this.opcode("pushProgram",r),t.strict=!0,this.accept(t),this.opcode("invokeAmbiguous",n,s)},simpleSexpr:function(t){t=t.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,e,r){var e=this.setupFullMustacheParams(t,e,r),r=t.path,n=r.parts[0];if(this.options.knownHelpers[n])this.opcode("invokeKnownHelper",e.length,n);else{if(this.options.knownHelpersOnly)throw new a.default("You specified knownHelpersOnly, but used the unknown helper "+n,t);r.strict=!0,r.falsy=!0,this.accept(r),this.opcode("invokeHelper",e.length,r.original,l.default.helpers.simpleId(r))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var e=t.parts[0],r=l.default.helpers.scopedId(t),n=!t.depth&&!r&&this.blockParamIndex(e);n?this.opcode("lookupBlockParam",n,t.parts):e?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,r):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var e=t.pairs,r=0,n=e.length;for(this.opcode("pushHash");r<n;r++)this.pushParam(e[r].value);for(;r--;)this.opcode("assignToHash",e[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:p.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var e=l.default.helpers.simpleId(t.path),r=e&&!!this.blockParamIndex(t.path.parts[0]),n=!r&&l.default.helpers.helperExpression(t),r=!r&&(n||e);return r&&!n&&(e=t.path.parts[0],(t=this.options).knownHelpers[e]?n=!0:t.knownHelpersOnly&&(r=!1)),n?"helper":r?"ambiguous":"simple"},pushParams:function(t){for(var e=0,r=t.length;e<r;e++)this.pushParam(t[e])},pushParam:function(t){var e,r,n=null!=t.value?t.value:t.original||"";this.stringParams?(n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),"SubExpression"===t.type&&this.accept(t)):(this.trackIds&&(e=void 0,(e=!t.parts||l.default.helpers.scopedId(t)||t.depth?e:this.blockParamIndex(t.parts[0]))?(r=t.parts.slice(1).join("."),this.opcode("pushId","BlockParam",e,r)):((n=t.original||n).replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n))),this.accept(t))},setupFullMustacheParams:function(t,e,r,n){var s=t.params;return this.pushParams(s),this.opcode("pushProgram",e),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",n),s},blockParamIndex:function(t){for(var e=0,r=this.options.blockParams.length;e<r;e++){var n=this.options.blockParams[e],s=n&&c.indexOf(n,t);if(n&&0<=s)return[e,s]}}}},function(t,e,r){function a(t){this.value=t}function n(){}var o=r(13).default,s=r(1).default,i=(e.__esModule=!0,r(4)),u=s(r(6)),c=r(5),l=s(r(53));n.prototype={nameLookup:function(t,e){return this.internalNameLookup(t,e)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=i.COMPILER_REVISION;return[t,i.REVISION_CHANGES[t]]},appendToBuffer:function(t,e,r){return c.isArray(t)||(t=[t]),t=this.source.wrap(t,e),this.environment.isSimple?["return ",t,";"]:r?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,e){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(e),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,e,r,n){this.environment=t,this.options=e,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!r,this.context=r||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,e),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;for(var s,i=t.opcodes,o=void 0,a=void 0,c=void 0,a=0,c=i.length;a<c;a++)s=i[a],this.source.currentLocation=s.loc,o=o||s.loc,this[s.opcode].apply(this,s.args);if(this.source.currentLocation=o,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new u.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),";\n"]),this.decorators.push("return fn;"),n?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));r=this.createFunctionContext(n);if(this.isChild)return r;var l={compiler:this.compilerInfo(),main:r},t=(this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0),this.context),p=t.programs,h=t.decorators;for(a=0,c=p.length;a<c;a++)p[a]&&(l[a]=p[a],h[a])&&(l[a+"_d"]=h[a],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),n?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),e.srcName?(l=l.toStringWithSourceMap({file:e.destName})).map=l.map&&l.map.toString():l=l.toString()),l},preamble:function(){this.lastContext=0,this.source=new l.default(this.options.srcName),this.decorators=new l.default(this.options.srcName)},createFunctionContext:function(t){var r=this,n="",e=this.stackVars.concat(this.registers.list),s=(0<e.length&&(n+=", "+e.join(", ")),0),e=(o(this.aliases).forEach(function(t){var e=r.aliases[t];e.children&&1<e.referenceCount&&(n+=", alias"+ ++s+"="+t,e.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration()),["container","depth0","helpers","partials","data"]),i=((this.useBlockParams||this.useDepths)&&e.push("blockParams"),this.useDepths&&e.push("depths"),this.mergeSource(n));return t?(e.push(i),Function.apply(this,e)):this.source.wrap(["function(",e.join(","),") {\n  ",i,"}"])},mergeSource:function(t){var e=this.environment.isSimple,r=!this.forceBuffer,n=void 0,s=void 0,i=void 0,o=void 0;return this.source.each(function(t){t.appendToBuffer?(i?t.prepend("  + "):i=t,o=t):(i&&(s?i.prepend("buffer += "):n=!0,o.add(";"),i=o=void 0),s=!0,e||(r=!1))}),r?i?(i.prepend("return "),o.add(";")):s||this.source.push('return "";'):(t+=", buffer = "+(n?"":this.initializeBuffer()),i?(i.prepend("return buffer + "),o.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(n?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n      lookupProperty = container.lookupProperty || function(parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined\n    }\n    ".trim()},blockValue:function(t){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)],t=(this.setupHelperArgs(t,0,r),this.popStack());r.splice(1,0,t),this.push(this.source.functionCall(e,"call",r))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),e=[this.contextName(0)],r=(this.setupHelperArgs("",0,e,!0),this.flushInline(),this.topStack());e.splice(1,0,r),this.pushSource(["if (!",this.lastHelper,") { ",r," = ",this.source.functionCall(t,"call",e),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){var t;this.isInline()?(this.replaceStack(function(t){return[" != null ? ",t,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()))):(t=this.popStack(),this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"]))},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,e,r,n){var s=0;n||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(t[s++])),this.resolvePath("context",t,s,e,r)},lookupBlockParam:function(t,e){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",e,1)},lookupData:function(t,e,r){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",e,0,!0,r)},resolvePath:function(r,n,s,i,t){var o=this;if(this.options.strict||this.options.assumeObjects)this.push(((t,e,r,n)=>{var s=e.popStack(),i=0,o=r.length;for(t&&o--;i<o;i++)s=e.nameLookup(s,r[i],n);return t?[e.aliasable("container.strict"),"(",s,", ",e.quotedString(r[i]),", ",JSON.stringify(e.source.currentLocation)," )"]:s})(this.options.strict&&t,this,n,r));else for(var e=n.length;s<e;s++)this.replaceStack(function(t){var e=o.nameLookup(t,n[s],r);return i?[" && ",e]:[" != null ? ",e," : ",t]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(t,e){this.pushContext(),this.pushString(e),"SubExpression"!==e&&("string"==typeof t?this.pushString(t):this.pushStackLiteral(t))},emptyHash:function(t){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(t?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var t=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(t.ids)),this.stringParams&&(this.push(this.objectLiteral(t.contexts)),this.push(this.objectLiteral(t.types))),this.push(this.objectLiteral(t.values))},pushString:function(t){this.pushStackLiteral(this.quotedString(t))},pushLiteral:function(t){this.pushStackLiteral(t)},pushProgram:function(t){null!=t?this.pushStackLiteral(this.programExpression(t)):this.pushStackLiteral(null)},registerDecorator:function(t,e){var r=this.nameLookup("decorators",e,"decorator"),e=this.setupHelperArgs(e,t);this.decorators.push(["fn = ",this.decorators.functionCall(r,"",["fn","props","container",e])," || fn;"])},invokeHelper:function(t,e,r){var n=this.popStack(),t=this.setupHelper(t,e),e=[],r=(r&&e.push(t.name),e.push(n),this.options.strict||e.push(this.aliasable("container.hooks.helperMissing")),["(",this.itemsSeparatedBy(e,"||"),")"]),n=this.source.functionCall(r,"call",t.callParams);this.push(n)},itemsSeparatedBy:function(t,e){var r=[];r.push(t[0]);for(var n=1;n<t.length;n++)r.push(e,t[n]);return r},invokeKnownHelper:function(t,e){t=this.setupHelper(t,e);this.push(this.source.functionCall(t.name,"call",t.callParams))},invokeAmbiguous:function(t,e){this.useRegister("helper");var r=this.popStack(),e=(this.emptyHash(),this.setupHelper(0,t,e)),t=["(","(helper = ",this.lastHelper=this.nameLookup("helpers",t,"helper")," || ",r,")"];this.options.strict||(t[0]="(helper = ",t.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",t,e.paramsInit?["),(",e.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",e.callParams)," : helper))"])},invokePartial:function(t,e,r){var n=[],s=this.setupParams(e,1,n);t&&(e=this.popStack(),delete s.name),r&&(s.indent=JSON.stringify(r)),s.helpers="helpers",s.partials="partials",s.decorators="container.decorators",t?n.unshift(e):n.unshift(this.nameLookup("partials",e,"partial")),this.options.compat&&(s.depths="depths"),s=this.objectLiteral(s),n.push(s),this.push(this.source.functionCall("container.invokePartial","",n))},assignToHash:function(t){var e=this.popStack(),r=void 0,n=void 0,s=void 0,i=(this.trackIds&&(s=this.popStack()),this.stringParams&&(n=this.popStack(),r=this.popStack()),this.hash);r&&(i.contexts[t]=r),n&&(i.types[t]=n),s&&(i.ids[t]=s),i.values[t]=e},pushId:function(t,e,r){"BlockParam"===t?this.pushStackLiteral("blockParams["+e[0]+"].path["+e[1]+"]"+(r?" + "+JSON.stringify("."+r):"")):"PathExpression"===t?this.pushString(e):"SubExpression"===t?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:n,compileChildren:function(t,e){for(var r=t.children,n=void 0,s=void 0,i=0,o=r.length;i<o;i++){var a,n=r[i],s=new this.compiler,c=this.matchExistingProgram(n);null==c?(this.context.programs.push(""),a=this.context.programs.length,n.index=a,n.name="program"+a,this.context.programs[a]=s.compile(n,e,this.context,!this.precompile),this.context.decorators[a]=s.decorators,this.context.environments[a]=n,this.useDepths=this.useDepths||s.useDepths,this.useBlockParams=this.useBlockParams||s.useBlockParams,n.useDepths=this.useDepths,n.useBlockParams=this.useBlockParams):(n.index=c.index,n.name="program"+c.index,this.useDepths=this.useDepths||c.useDepths,this.useBlockParams=this.useBlockParams||c.useBlockParams)}},matchExistingProgram:function(t){for(var e=0,r=this.context.environments.length;e<r;e++){var n=this.context.environments[e];if(n&&n.equals(t))return n}},programExpression:function(t){t=this.environment.children[t],t=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&t.push("blockParams"),this.useDepths&&t.push("depths"),"container.program("+t.join(", ")+")"},useRegister:function(t){this.registers[t]||(this.registers[t]=!0,this.registers.list.push(t))},push:function(t){return t instanceof a||(t=this.source.wrap(t)),this.inlineStack.push(t),t},pushStackLiteral:function(t){this.push(new a(t))},pushSource:function(t){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),t&&this.source.push(t)},replaceStack:function(t){var e=["("],r=void 0,n=void 0,s=void 0;if(!this.isInline())throw new u.default("replaceStack on non-inline");var i=this.popStack(!0),o=(i instanceof a?(e=["(",r=[i.value]],s=!0):(n=!0,o=this.incrStack(),e=["((",this.push(o)," = ",i,")"],r=this.topStack()),t.call(this,r));s||this.popStack(),n&&this.stackSlot--,this.push(e.concat(o,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var e=0,r=t.length;e<r;e++){var n,s=t[e];s instanceof a?this.compileStack.push(s):(n=this.incrStack(),this.pushSource([n," = ",s,";"]),this.compileStack.push(n))}},isInline:function(){return this.inlineStack.length},popStack:function(t){var e=this.isInline(),r=(e?this.inlineStack:this.compileStack).pop();if(!t&&r instanceof a)return r.value;if(!e){if(!this.stackSlot)throw new u.default("Invalid stack pop");this.stackSlot--}return r},topStack:function(){var t=this.isInline()?this.inlineStack:this.compileStack,t=t[t.length-1];return t instanceof a?t.value:t},contextName:function(t){return this.useDepths&&t?"depths["+t+"]":"depth"+t},quotedString:function(t){return this.source.quotedString(t)},objectLiteral:function(t){return this.source.objectLiteral(t)},aliasable:function(t){var e=this.aliases[t];return e?e.referenceCount++:((e=this.aliases[t]=this.source.wrap(t)).aliasable=!0,e.referenceCount=1),e},setupHelper:function(t,e,r){var n=[];return{params:n,paramsInit:this.setupHelperArgs(e,t,n,r),name:this.nameLookup("helpers",e,"helper"),callParams:[this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})")].concat(n)}},setupParams:function(t,e,r){var n,s={},i=[],o=[],a=[],c=!r,t=(c&&(r=[]),s.name=this.quotedString(t),s.hash=this.popStack(),this.trackIds&&(s.hashIds=this.popStack()),this.stringParams&&(s.hashTypes=this.popStack(),s.hashContexts=this.popStack()),this.popStack()),l=this.popStack();(l||t)&&(s.fn=l||"container.noop",s.inverse=t||"container.noop");for(var p=e;p--;)n=this.popStack(),r[p]=n,this.trackIds&&(a[p]=this.popStack()),this.stringParams&&(o[p]=this.popStack(),i[p]=this.popStack());return c&&(s.args=this.source.generateArray(r)),this.trackIds&&(s.ids=this.source.generateArray(a)),this.stringParams&&(s.types=this.source.generateArray(o),s.contexts=this.source.generateArray(i)),this.options.data&&(s.data="data"),this.useBlockParams&&(s.blockParams="blockParams"),s},setupHelperArgs:function(t,e,r,n){t=this.setupParams(t,e,r);return t.loc=JSON.stringify(this.source.currentLocation),t=this.objectLiteral(t),n?(this.useRegister("options"),r.push("options"),["options=",t]):r?(r.push(t),""):t}};for(var p="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),h=n.RESERVED_WORDS={},f=0,d=p.length;f<d;f++)h[p[f]]=!0;
119n.isValidJavaScriptVariableName=function(t){return!n.RESERVED_WORDS[t]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(t)},e.default=n,t.exports=e.default},function(t,e,r){function i(t,e,r){if(a.isArray(t)){for(var n=[],s=0,i=t.length;s<i;s++)n.push(e.wrap(t[s],r));return n}return"boolean"==typeof t||"number"==typeof t?t+"":t}function n(t){this.srcFile=t,this.source=[]}var o=r(13).default,a=(e.__esModule=!0,r(5)),s=void 0;s||((s=function(t,e,r,n){this.src="",n&&this.add(n)}).prototype={add:function(t){a.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){a.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),n.prototype={isEmpty:function(){return!this.source.length},prepend:function(t,e){this.source.unshift(this.wrap(t,e))},push:function(t,e){this.source.push(this.wrap(t,e))},merge:function(){var e=this.empty();return this.each(function(t){e.add(["  ",t,"\n"])}),e},each:function(t){for(var e=0,r=this.source.length;e<r;e++)t(this.source[e])},empty:function(){var t=this.currentLocation||{start:{}};return new s(t.start.line,t.start.column,this.srcFile)},wrap:function(t){var e=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return t instanceof s?t:(t=i(t,this,e),new s(e.start.line,e.start.column,this.srcFile,t))},functionCall:function(t,e,r){return r=this.generateList(r),this.wrap([t,e?"."+e+"(":"(",r,")"])},quotedString:function(t){return'"'+(t+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(r){var n=this,s=[],t=(o(r).forEach(function(t){var e=i(r[t],n);"undefined"!==e&&s.push([n.quotedString(t),":",e])}),this.generateList(s));return t.prepend("{"),t.add("}"),t},generateList:function(t){for(var e=this.empty(),r=0,n=t.length;r<n;r++)r&&e.add(","),e.add(i(t[r],this));return e},generateArray:function(t){t=this.generateList(t);return t.prepend("["),t.add("]"),t}},e.default=n,t.exports=e.default}],s={},r.m=n,r.c=s,r.p="",r(0);function r(t){var e;return(s[t]||(e=s[t]={exports:{},id:t,loaded:!1},n[t].call(e.exports,e,e.exports,r),e.loaded=!0,e)).exports}var n,s});
120Handlebars.registerHelper("ifCond",function(e,r,s,n){switch(r){case"==":return e==s?n.fn(this):n.inverse(this);case"===":return e===s?n.fn(this):n.inverse(this);case"!=":return e!=s?n.fn(this):n.inverse(this);case"!==":return e!==s?n.fn(this):n.inverse(this);case"<":return e<s?n.fn(this):n.inverse(this);case"<=":return e<=s?n.fn(this):n.inverse(this);case">":return s<e?n.fn(this):n.inverse(this);case">=":return s<=e?n.fn(this):n.inverse(this);case"&&":return e&&s?n.fn(this):n.inverse(this);case"||":return e||s?n.fn(this):n.inverse(this);default:return n.inverse(this)}}),Handlebars.registerHelper("ifIn",function(e,r,s){return-1<r.indexOf(e)?s.fn(this):s.inverse(this)}),Handlebars.registerHelper("reverse",function(e){return e.slice().reverse()}),Handlebars.registerHelper("skipIfExistsContent",function(e,r){return document.querySelector('[data-content-id="'+e+'"]')?r.inverse(this):r.fn(this)});
121((e,t)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){function s(e){return e&&"[object Function]"==={}.toString.call(e)}function d(e,t){return 1!==e.nodeType?[]:(e=getComputedStyle(e,null),t?e[t]:e)}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function h(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=d(e),n=t.overflow;return/(auto|scroll)/.test(n+t.overflowY+t.overflowX)?e:h(u(e))}function p(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===d(t,"position")?p(t):t:(e?e.ownerDocument:document).documentElement}function i(e){return null===e.parentNode?e:i(e.parentNode)}function m(e,t){var n,o,r;return e&&e.nodeType&&t&&t.nodeType?(o=(r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,r=r?t:e,(n=document.createRange()).setStart(o,0),n.setEnd(r,0),e!==(n=n.commonAncestorContainer)&&t!==n||o.contains(r)?"BODY"===(r=(o=n).nodeName)||"HTML"!==r&&p(o.firstElementChild)!==o?p(n):n:(r=i(e)).host?m(r.host,t):m(e,i(t).host)):document.documentElement}function g(e,t){var t="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return("BODY"===n||"HTML"===n?(n=e.ownerDocument.documentElement,e.ownerDocument.scrollingElement||n):e)[t]}function f(e,t){var t="x"===t?"Left":"Top",n="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"],10)+parseFloat(e["border"+n+"Width"],10)}function o(e,t,n,o){return H(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],A()?n["offset"+e]+o["margin"+("Height"===e?"Top":"Left")]+o["margin"+("Height"===e?"Bottom":"Right")]:0)}function b(){var e=document.body,t=document.documentElement,n=A()&&getComputedStyle(t);return{height:o("Height",e,t,n),width:o("Width",e,t,n)}}function v(e){return C({},e,{right:e.left+e.width,bottom:e.top+e.height})}function l(e){var t={};if(A())try{var t=e.getBoundingClientRect(),n=g(e,"top"),o=g(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}catch(e){}else t=e.getBoundingClientRect();var r,n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
121,o="HTML"===e.nodeName?b():{},t=o.width||e.clientWidth||n.right-n.left,o=o.height||e.clientHeight||n.bottom-n.top,t=e.offsetWidth-t,o=e.offsetHeight-o;return(t||o)&&(t-=f(r=d(e),"x"),o-=f(r,"y"),n.width-=t,n.height-=o),v(n)}function w(e,t){var n=A(),o="HTML"===t.nodeName,r=l(e),i=l(t),e=h(e),s=d(t),f=parseFloat(s.borderTopWidth,10),a=parseFloat(s.borderLeftWidth,10),i=v({top:r.top-i.top-f,left:r.left-i.left-a,width:r.width,height:r.height});return i.marginTop=0,i.marginLeft=0,!n&&o&&(r=parseFloat(s.marginTop,10),o=parseFloat(s.marginLeft,10),i.top-=f-r,i.bottom-=f-r,i.left-=a-o,i.right-=a-o,i.marginTop=r,i.marginLeft=o),i=(n?t.contains(e):t===e&&"BODY"!==e.nodeName)?function(e,t,n){var n=2<arguments.length&&void 0!==n&&n,o=g(t,"top"),t=g(t,"left"),n=n?-1:1;return e.top+=o*n,e.bottom+=o*n,e.left+=t*n,e.right+=t*n,e}(i,t):i}function y(e,t,n,o){var r,i,s,f,a,p,l={top:0,left:0},c=m(e,t);return"viewport"===o?(s=(i=c).ownerDocument.documentElement,i=w(i,s),f=H(s.clientWidth,window.innerWidth||0),a=H(s.clientHeight,window.innerHeight||0),p=g(s),s=g(s,"left"),l=v({to
121p:p-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:f,height:a})):("scrollParent"===o?"BODY"===(r=h(u(t))).nodeName&&(r=e.ownerDocument.documentElement):r="window"===o?e.ownerDocument.documentElement:o,p=w(r,c),"HTML"!==r.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===d(t,"position")||e(u(t)))}(c)?l=p:(i=(s=b()).height,f=s.width,l.top+=p.top-p.marginTop,l.bottom=i+p.top,l.left+=p.left-p.marginLeft,l.right=f+p.left)),l.left+=n,l.top+=n,l.right-=n,l.bottom-=n,l}function a(e,t,n,o,r,i){var s,i=5<arguments.length&&void 0!==i?i:0;return-1===e.indexOf("auto")?e:(o=y(n,o,i,r),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},(0<(r=(i=Object.keys(s).map(function(e){return C({key:e},s[e],{area:(e=s[e]).width*e.height})}).sort(function(e,t){return t.area-e.area})).filter(function(e){return e.width>=n.clientWidth&&e.height>=n.clientHeight})).length?r:i)[0].key+((t=e.split("-")[1])?"-"+t:""))}function c(e,t,n){return w(n,m(t,n))}function E(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),t=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+t,height:e.offsetHeight+n}}function O(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function x(e,t,n){n=n.split("-")[0];var e=E(e),o={width:e.width,height:e.height},r=-1!==["right","left"].indexOf(n),i=r?"top":"left",s=r?"left":"top",f=r?"height":"width",r=r?"width":"height";return o[i]=t[i]+t[f]/2-e[f]/2,o[s]=n===s?t[s]-e[r]:t[O(s)],o}function L(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function T(e,n,t){var o,r;return(void 0===t?e:e.slice(0,(e=e,o="name",r=t,Array.prototype.findIndex?e.findIndex(function(e){return e[o]===r}):(t=L(e,function(e){return e[o]===r}),e.indexOf(t))))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&s(t)&&(n.offsets.popper=v(n.offsets.popper),n.offsets.reference=v(n.offsets.reference),n=t(n,e))}),n}function e(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function D(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length-1;o++){var r=t[o],r=r?""+r+n:e;if(void 0!==document.body.style[r])return r}return null}function S(e){e=e.ownerDocument;return e?e.defaultView:window}function M(e,t,n,o){n.updateBound=o,S(e).addEventListener("resize",n.updateBound,{passive:!0});o=h(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,t=i?t.ownerDocument.defaultView:t;t.addEventListener(n,o,{passive:!0}),i||e(h(t.parentNode),n,o,r),r.push(t)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function j(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,S(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function N(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function k(n,o){Object.keys(o).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&N(o[e])&&(t="px"),n.style[e]=o[e]+t})}function R(e,t,n){var o,r=L(e,function(e){return e.name===t}),e=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});return e||(o="`"+t+"`",console.warn("`"+n+"` modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")),e}function U(e,t){t=1<arguments.length&&void 0!==t&&t,e=F.indexOf(e),e=F.slice(e+1).concat(F.slice(0,e));return t?e.reverse():e}function Y(e,f,a,t){var r=[0,0],o=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(L(t,function(e){return-1!==e.search(/,|\s/)})),n=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s
121*,\s*|\s+/);return(-1===e?[t]:[t.slice(0,e).concat([t[e].split(n)[0]]),[t[e].split(n)[1]].concat(t.slice(e+1))]).map(function(e,t){var s=(1===t?!o:o)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return t=s,n=f,o=a,r=+(i=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],i=i[2],r?0===i.indexOf("%")?v("%p"===i?n:o)[t]/100*r:"vh"===i||"vw"===i?("vh"===i?H(document.documentElement.clientHeight,window.innerHeight||0):H(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r:e;var t,n,o,r,i})}).forEach(function(n,o){n.forEach(function(e,t){N(e)&&(r[o]+=e*("-"===n[t-1]?-1:1))})}),r}for(var I=Math.min,B=Math.floor,H=Math.max,q="undefined"!=typeof window&&"undefined"!=typeof document,V=["Edge","Trident","Firefox"],z=0,t=0;t<V.length;t+=1)if(q&&0<=navigator.userAgent.indexOf(V[t])){z=1;break}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n,G=q&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},z))}},A=function(){return n=null==n?-1!==navigator.appVersion.indexOf("MSIE 10"):n},r=function(e,t,n){return t&&Q(e.prototype,t),n&&Q(e,n),e},C=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],F=_.slice(3),X="flip",J="clockwise",K="counterclockwise",r=(r(P,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=c(this.state,this.popper,this.reference),e.placement=a(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=x(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=T(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,e(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[D("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=M(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return j.call(this)}}]),P);function P(e,t){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,i=P;if(!(r instanceof i))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=G(this.update.bind(this)),this.options=C({},P.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(C({},P.Defaults.modifiers,o.modifiers)).forEach(function(e){n.options.modifiers[e]=C({},P.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return C({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&s(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}function Q(e,t){for(var n,o=0;o<t.length;o++)(n=t[o]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return r.Utils=("undefined"==typeof window?global:window).PopperUtils,r.placements=_,r.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,o,r=e.placement,i=r.split("-")[0],r=r.split("-")[1];return r&&(t=(n=e.offsets).reference,n=n.popper,o=(i=-1!==["bottom","top"].indexOf(i))?"width":"height",i={start:W({},i=i?"left":"top",t[i]),end:W({},i,t[i]+t[o]-n[o])},e.offsets.popper=C({},n,i[r])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,n=e.placement,o=(r=e.offsets).popper,r=r.reference,n=n.split("-")[0],t=N(+t)?[+t,0]:Y(t,o,r,n);return"left"===n?(o.top+=t[0],o.left-=t[1]):"right"===n?(o.top+=t[0],o.left+=t[1]):"top"===n?(o.left+=t[0],o.top-=t[1]):"bottom"===n&&(o.left+=t[0],o.top+=t[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,o){var t=o.boundariesElement||p(e.instance.popper),r=(e.instance.reference===t&&(t=p(t)),y(e.instance.popper,e.instance.reference,o.padding,t)),t=(o.boundaries=r,o.priority),i=e.offsets.popper,n={primary:function(e){var t=i[e];return i[e]<r[e]&&!o.escapeWithReference&&(t=H(i[e],r[e])),W({},e,t)}
121,secondary:function(e){var t="right"===e?"left":"top",n=i[t];return i[e]>r[e]&&!o.escapeWithReference&&(n=I(i[t],r[e]-("right"===e?i.width:i.height))),W({},t,n)}};return t.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";i=C({},i,n[t](e))}),e.offsets.popper=i,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,t=t.reference,o=e.placement.split("-")[0],r=B,o=-1!==["top","bottom"].indexOf(o),i=o?"right":"bottom",s=o?"left":"top",o=o?"width":"height";return n[i]<r(t[s])&&(e.offsets.popper[s]=r(t[s])-n[o]),n[s]>r(t[i])&&(e.offsets.popper[s]=r(t[i])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(R(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],o=e.offsets,r=o.popper,o=o.reference,n=-1!==["left","right"].indexOf(n),i=n?"height":"width",s=n?"Top":"Left",f=s.toLowerCase(),a=n?"left":"top",n=n?"bottom":"right",p=E(t)[i],n=(o[n]-p<r[f]&&(e.offsets.popper[f]-=r[f]-(o[n]-p)),o[f]+p>r[n]&&(e.offsets.popper[f]+=o[f]+p-r[n]),e.offsets.popper=v(e.offsets.popper),o[f]+o[i]/2-p/2),o=d(e.instance.popper),l=parseFloat(o["margin"+s],10),o=parseFloat(o["border"+s+"Width"],10),s=n-e.offsets.popper[f]-l-o,s=H(I(r[i]-p,s),0);e.arrowElement=t,e.offsets.arrow=(W(n={},f,Math.round(s)),W(n,a,""),n)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(a,p){if(!(e(a.instance.modifiers,"inner")||a.flipped&&a.placement===a.originalPlacement)){var l=y(a.instance.popper,a.instance.reference,p.padding,p.boundariesElement),c=a.placement.split("-")[0],d=O(c),u=a.placement.split("-")[1]||"",h=[];switch(p.behavior){case X:h=[c,d];break;case J:h=U(c);break;case K:h=U(c,!0);break;default:h=p.behavior}h.forEach(function(e,t){if(c!==e||h.length===t+1)return a;c=a.placement.split("-")[0],d=O(c);var e=a.offsets.popper,n=a.offsets.reference,o=B,n="left"===c&&o(e.right)>o(n.left)||"right"===c&&o(e.left)<o(n.right)||"top"===c&&o(e.bottom)>o(n.top)||"bottom"===c&&o(e.top)<o(n.bottom),r=o(e.left)<o(l.left),i=o(e.right)>o(l.right),s=o(e.top)<o(l.top),e=o(e.bottom)>o(l.bottom),o="left"===c&&r||"right"===c&&i||"top"===c&&s||"bottom"===c&&e,f=-1!==["top","bottom"].indexOf(c),r=!!p.flipVariations&&(f&&"start"===u&&r||f&&"end"===u&&i||!f&&"start"===u&&s||!f&&"end"===u&&e);(n||o||r)&&(a.flipped=!0,(n||o)&&(c=h[t+1]),r&&(u="end"===(i=u)?"start":"start"===i?"end":i),a.placement=c+(u?"-"+u:""),a.offsets.popper=C({},a.offsets.popper,x(a.instance.popper,a.offsets.reference,a.placement)),a=T(a.instance.modifiers,a,"flip"))})}return a},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,o=o.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[i?"left":"top"]=o[n]-(s?r[i?"width":"height"]:0),e.placement=O(t),e.offsets.popper=v(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(R(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,n=L(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=L(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var t=void 0===i?t.gpuAcceleration:i,i=l(p(e.instance.popper)),s={position:r.position},r={left:B(r.left),top:B(r.top),bottom:B(r.bottom),right:B(r.right)},n="bottom"===n?"top":"bottom",o="right"===o?"left":"right",f=D("transform"),a="bottom"==n?-i.height+r.bottom:r.to
121p,i="right"==o?-i.width+r.right:r.left,t=(t&&f?(s[f]="translate3d("+i+"px, "+a+"px, 0)",s[n]=0,s[o]=0,s.willChange="transform"):(r="right"==o?-1:1,s[n]=a*("bottom"==n?-1:1),s[o]=i*r,s.willChange=n+", "+o),{"x-placement":e.placement});return e.attributes=C({},t,e.attributes),e.styles=C({},s,e.styles),e.arrowStyles=C({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return k(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1===n[e]?t.removeAttribute(e):t.setAttribute(e,n[e])}),e.arrowElement&&Object.keys(e.arrowStyles).length&&k(e.arrowElement,e.arrowStyles),e;var t,n},onLoad:function(e,t,n,o,r){var i=c(0,t,e),i=a(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),k(t,{position:"absolute"}),n},gpuAcceleration:void 0}}},r});
122((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)})(this,function(t,h,o){function R(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){e&&R(t.prototype,e),n&&R(t,n)}function a(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);(e="function"==typeof Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable})):e).forEach(function(t){var e,n;e=i,n=o[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return i}h=h&&h.hasOwnProperty("default")?h.default:h,o=o&&o.hasOwnProperty("default")?o.default:o;var x="transitionend";function F(t){var e=this,n=!1;return h(this).one(u.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||u.triggerTransitionEnd(e)},t),this}var u={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=(t=t.getAttribute("href"))&&"#"!==t?t.trim():"");try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){var e,n,i;return t&&(e=h(t).css("transition-duration"),t=h(t).css("transition-delay"),n=parseFloat(e),i=parseFloat(t),n||i)?(e=e.split(",")[0],t=t.split(",")[0],1e3*(parseFloat(e)+parseFloat(t))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){h(t).trigger(x)},supportsTransitionEnd:function(){return Boolean(x)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],s=e[i],s=s&&u.isElement(s)?"element":{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}},findShadowRoot:function(t){var e;return document.documentElement.attachShadow?"function"==typeof t.getRootNode?(e=t.getRootNode())instanceof ShadowRoot?e:null:t instanceof ShadowRoot?t:t.parentNode?u.findShadowRoot(t.parentNode):null:null}},U=(h.fn.emulateTransitionEnd=F,h.event.special[u.TRANSITION_END]={bindType:x,delegateType:x,handle:function(t){if(h(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},"alert"),W="bs.alert",e="."+W,q=h.fn[U],M={CLOSE:"close"+e,CLOSED:"closed"+e,CLICK_DATA_API:"click"+e+".data-api"},K="alert",Q="fade",B="show",n=(()=>{function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){h.removeData(this._element,W),this._element=null},t._getRootElement=function(t){var e=u.getSelectorFromElement(t),n=!1;return n=(n=e?document.querySelector(e):n)||h(t).closest("."+K)[0]},t._triggerCloseEvent=function(t){var e=h.Event(M.CLOSE);return h(t).trigger(e),e},t._removeElement=function(e){var t,n=this;h(e).removeClass(B),h(e).hasClass(Q)?(t=u.getTransitionDurationFromElement(e),h(e).one(u.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)):this._destroyElement(e)},t._destroyElement=function(t){h(t).detach().trigger(M.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=h(this),e=t.data(W);e||(e=new i(this),t.data(W,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i})(),V=(h(document).on(M.CLICK_DATA_API,'[data-dismiss="alert"]',n._handleDismiss(new n)),h.fn[U]=n._jQueryInterface,h.fn[U].Constructor=n,h.fn[U].noConflict=function(){return h.fn[U]=q,n._jQueryInterface},"button"),Y="bs.button",e="."+Y,i=".data-api",z=h.fn[V],X="active",$="btn",G="focus",s='[data-toggle^="button"]',J='[data-toggle="buttons"]',Z='input
122:not([type="hidden"])',tt=".active",et=".btn",e={CLICK_DATA_API:"click"+e+i,FOCUS_BLUR_DATA_API:"focus"+e+i+" blur"+e+i},nt=(()=>{function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=h(this._element).closest(J)[0];if(n){var i,o=this._element.querySelector(Z);if(o){if("radio"===o.type&&(o.checked&&this._element.classList.contains(X)?t=!1:(i=n.querySelector(tt))&&h(i).removeClass(X)),t){if(o.hasAttribute("disabled")||n.hasAttribute("disabled")||o.classList.contains("disabled")||n.classList.contains("disabled"))return;o.checked=!this._element.classList.contains(X),h(o).trigger("change")}o.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(X)),t&&h(this._element).toggleClass(X)},t.dispose=function(){h.removeData(this._element,Y),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=h(this).data(Y);t||(t=new n(this),h(this).data(Y,t)),"toggle"===e&&t[e]()})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n})(),l=(h(document).on(e.CLICK_DATA_API,s,function(t){t.preventDefault();t=t.target;h(t).hasClass($)||(t=h(t).closest(et)),nt._jQueryInterface.call(h(t),"toggle")}).on(e.FOCUS_BLUR_DATA_API,s,function(t){var e=h(t.target).closest(et)[0];h(e).toggleClass(G,/^focus(in)?$/.test(t.type))}),h.fn[V]=nt._jQueryInterface,h.fn[V].Constructor=nt,h.fn[V].noConflict=function(){return h.fn[V]=z,nt._jQueryInterface},"carousel"),it="bs.carousel",c="."+it,i=".data-api",ot=h.fn[l],st={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},rt={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},at="next",lt="prev",ct="left",ht="right",d={SLIDE:"slide"+c,SLID:"slid"+c,KEYDOWN:"keydown"+c,MOUSEENTER:"mouseenter"+c,MOUSELEAVE:"mouseleave"+c,TOUCHSTART:"touchstart"+c,TOUCHMOVE:"touchmove"+c,TOUCHEND:"touchend"+c,POINTERDOWN:"pointerdown"+c,POINTERUP:"pointerup"+c,DRAG_START:"dragstart"+c,LOAD_DATA_API:"load"+c+i,CLICK_DATA_API:"click"+c+i},ut="carousel",f="active",dt="slide",ft="carousel-item-right",gt="carousel-item-left",_t="carousel-item-next",mt="carousel-item-prev",pt="pointer-event",vt=".active",Et=".active.carousel-item",yt=".carousel-item",Ct=".carousel-item img",Tt=".carousel-item-next, .carousel-item-prev",St=".carousel-indicators",e="[data-slide], [data-slide-to]",bt='[data-ride="carousel"]',It={TOUCH:"touch",PEN:"pen"},g=(()=>{function o(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(St),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=o.prototype;return t.next=function(){this._isSliding||this._slide(at)},t.nextWhenVisible=function(){!document.hidden&&h(this._element).is(":visible")&&"hidden"!==h(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(lt)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(Tt)&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this,n=(this._activeElement=this._element.querySelector(Et),this._getItemIndex(this._activeElement));t>this._items.length-1||t<0||(this._isSliding?h(this._element).one(d.SLID,function(){return e.to(t)}):n===t?(this.pause(),this.cycle()):(n=n<t?at:lt,this._slide(n,this._items[t])))},t.dispose=function(){h(this._element).off(c),h.removeData(this._element,it),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=a({},st,t),u.typeCheckConfig(l,t,rt),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);t<=40||(0<(t=t/this.touchDeltaX)&&this.prev(),t<0&&this.next())},t._addEventListeners=function(){var e=this;this._config.keyboard&&h(this._element).on(d.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&h(this._element).on(d.MOUSEENTER,function(t){return e.pause(t)}).on(d.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var t,e,n=this;this._touchSupported&&(t=function(t){n._pointerEvent&&It[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},e=function(t){n._pointerEvent&&It[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},h(this._element.querySelectorAll(Ct)).on(d.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(h(this._element).on(d.POINTERDOWN,t),h(this._element).on(d.POINTERUP,e),this._element.classList.add(pt)):(h(this._element).on(d.TOUCHSTART,t),h(this._element).on(d.TOUCHMOVE,function(t){(t=t).originalEvent.touches&&1<t.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}),h(this._element).on(d.TOUCHEND,e)))},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(yt)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===at,i=t===lt,o=this._getItemIndex(e),s=this._items.length-1;return(i&&0===o||n&&o===s)&&!this._config.wrap?e:-1==(i=(o+(t===lt?-1:1))%this._items.length)?this._items[this._items.length-1]:this._items[i]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(Et)),t=h.Event(d.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return h(this._element).trigger(t),t},t._setActiveIndicatorElement=function(t){var e;this._indicatorsElement&&(e=[].slice.call(this._indicatorsElement.querySelectorAll(vt)),h(e).removeClass(f),e=this._indicatorsElement.children[this._getItemIndex(t)])&&h(e).addClass(f)},t._slide=function(t,e){var n,i,o,s=this,r=this._element.querySelector(Et),a=this._getItemIndex(r),l=e||r&&this._getItemByDirection(t,r),e=this._getItemIndex(l),c=Boolean(this._interval),t=t===at?(n=gt,i=_t,ct):(n=ft,i=mt,ht);l&&h(l).hasClass(f)?this._isSliding=!1:this._triggerSlideEvent(l,t).isDefaultPrevented()||r&&l&&(this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l),o=h.Event(d.SLID,{relatedTarget:l,direction:t,from:a,to:e}),h(this._element).hasClass(dt)?(h(l).addClass(i),u.reflow(l),h(r).addClass(n),h(l).addClass(n),(t=parseInt(l.getAttribute("data-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval,a=u.getTransitionDurationFromElement(r),h(r).one(u.TRANSITION_END,function(){h(l).removeClass(n+" "+i).addClass(f),h(r).removeClass(f+" "+i+" "+n),s._isSli
122ding=!1,setTimeout(function(){return h(s._element).trigger(o)},0)}).emulateTransitionEnd(a)):(h(r).removeClass(f),h(l).addClass(f),this._isSliding=!1,h(this._element).trigger(o)),c)&&this.cycle()},o._jQueryInterface=function(i){return this.each(function(){var t=h(this).data(it),e=a({},st,h(this).data()),n=("object"==typeof i&&(e=a({},e,i)),"string"==typeof i?i:e.slide);if(t||(t=new o(this,e),h(this).data(it,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},o._dataApiClickHandler=function(t){var e,n,i=u.getSelectorFromElement(this);i&&(i=h(i)[0])&&h(i).hasClass(ut)&&(e=a({},h(i).data(),h(this).data()),(n=this.getAttribute("data-slide-to"))&&(e.interval=!1),o._jQueryInterface.call(h(i),e),n&&h(i).data(it).to(n),t.preventDefault())},r(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return st}}]),o})(),_=(h(document).on(d.CLICK_DATA_API,e,g._dataApiClickHandler),h(window).on(d.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(bt)),e=0,n=t.length;e<n;e++){var i=h(t[e]);g._jQueryInterface.call(i,i.data())}}),h.fn[l]=g._jQueryInterface,h.fn[l].Constructor=g,h.fn[l].noConflict=function(){return h.fn[l]=ot,g._jQueryInterface},"collapse"),m="bs.collapse",s="."+m,Dt=h.fn[_],wt={toggle:!0,parent:""},At={toggle:"boolean",parent:"(string|element)"},Nt={SHOW:"show"+s,SHOWN:"shown"+s,HIDE:"hide"+s,HIDDEN:"hidden"+s,CLICK_DATA_API:"click"+s+".data-api"},p="show",Ot="collapse",kt="collapsing",Pt="collapsed",Lt="width",jt="height",Ht=".show, .collapsing",Rt='[data-toggle="collapse"]',xt=(()=>{function s(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(Rt)),i=0,o=n.length;i<o;i++){var s=n[i],r=u.getSelectorFromElement(s),a=[].slice.call(document.querySelectorAll(r)).filter(function(t){return t===e});null!==r&&0<a.length&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=s.prototype;return t.toggle=function(){h(this._element).hasClass(p)?this.hide():this.show()},t.show=function(){var t,e,n,i,o=this;this._isTransitioning||h(this._element).hasClass(p)||(t=this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Ht)).filter(function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(Ot)})).length?null:t)&&(i=h(t).not(this._selector).data(m))&&i._isTransitioning||(n=h.Event(Nt.SHOW),h(this._element).trigger(n),n.isDefaultPrevented())||(t&&(s._jQueryInterface.call(h(t).not(this._selector),"hide"),i||h(t).data(m,null)),e=this._getDimension(),h(this._element).removeClass(Ot).addClass(kt),this._element.style[e]=0,this._triggerArray.length&&h(this._triggerArray).removeClass(Pt).attr("aria-expanded",!0),this.setTransitioning(!0),n="scroll"+(e[0].toUpperCase()+e.slice(1)),i=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,function(){h(o._element).removeClass(kt).addClass(Ot).addClass(p),o._element.style[e]="",o.setTransitioning(!1),h(o._element).trigger(Nt.SHOWN)}).emulateTransitionEnd(i),this._element.style[e]=this._element[n]+"px")},t.hide=function(){var t=this;if(!this._isTransitioning&&h(this._element).hasClass(p)){var e=h.Event(Nt.HIDE);if(h(this._element).trigger(e),!e.isDefaultPrevented()){var e=this._getDimension(),n=(this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",u.reflow(this._element),h(this._element).addClass(kt).removeClass(Ot).removeClass(p),this._triggerArray.length);if(0<n)for(var i=0;i<n;i++){var o=this._triggerArray[i],s=u.getSelectorFromElement(o);null===s||h([].slice.call(document.querySelectorAll(s))).hasClass(p)||h(o).addClass(Pt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[e]="";e=u.getTransitionDurationFromElement(this._element);h(this._element).one(u.TRANSITION_END,function(){t.setTransitioning(!1),h(t._element).removeClass(kt).addClass(Ot).trigger(Nt.HIDDEN)}).emulateTransitionEnd(e)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){h.removeData(this._element,m),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=a({},wt,t)).toggle=Boolean(t.toggle),u.typeCheckConfig(_,t,At),t},t._getDimension=function(){return h(this._element).hasClass(Lt)?Lt:jt},t._getParent=function(){var t,n=this,e=(u.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent),'[data-toggle="collapse"][data-parent="'+this._config.parent+'"]'),e=[].slice.call(t.querySelectorAll(e));return h(e).each(function(t,e){n._addAriaAndCollapsedClass(s._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){t=h(t).hasClass(p);e.length&&h(e).toggleClass(Pt,!t).attr("aria-expanded",t)},s._getTargetFromElement=function(t){t=u.getSelectorFromElement(t);return t?document.querySelector(t):null},s._jQueryInterface=function(i){return this.each(function(){var t=h(this),e=t.data(m),n=a({},wt,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new s(this,n),t.data(m,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method n
122amed "'+i+'"');e[i]()}})},r(s,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return wt}}]),s})(),v=(h(document).on(Nt.CLICK_DATA_API,Rt,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=h(this),t=u.getSelectorFromElement(this),t=[].slice.call(document.querySelectorAll(t));h(t).each(function(){var t=h(this),e=t.data(m)?"toggle":n.data();xt._jQueryInterface.call(t,e)})}),h.fn[_]=xt._jQueryInterface,h.fn[_].Constructor=xt,h.fn[_].noConflict=function(){return h.fn[_]=Dt,xt._jQueryInterface},"dropdown"),Ft="bs.dropdown",E="."+Ft,i=".data-api",Ut=h.fn[v],Wt=new RegExp("38|40|27"),y={HIDE:"hide"+E,HIDDEN:"hidden"+E,SHOW:"show"+E,SHOWN:"shown"+E,CLICK:"click"+E,CLICK_DATA_API:"click"+E+i,KEYDOWN_DATA_API:"keydown"+E+i,KEYUP_DATA_API:"keyup"+E+i},qt="disabled",C="show",Mt="dropup",Kt="dropright",Qt="dropleft",Bt="dropdown-menu-right",Vt="position-static",Yt='[data-toggle="dropdown"]',e=".dropdown form",zt=".dropdown-menu",Xt=".navbar-nav",$t=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Gt="top-start",Jt="top-end",Zt="bottom-start",te="bottom-end",ee="right-start",ne="left-start",ie={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},oe={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},T=(()=>{function l(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=l.prototype;return t.toggle=function(){if(!this._element.disabled&&!h(this._element).hasClass(qt)){var t=l._getParentFromElement(this._element),e=h(this._menu).hasClass(C);if(l._clearMenus(),!e){var e={relatedTarget:this._element},n=h.Event(y.SHOW,e);if(h(t).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar){if(void 0===o)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");n=this._element;"parent"===this._config.reference?n=t:u.isElement(this._config.reference)&&(n=this._config.reference,void 0!==this._config.reference.jquery)&&(n=this._config.reference[0]),"scrollParent"!==this._config.boundary&&h(t).addClass(Vt),this._popper=new o(n,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===h(t).closest(Xt).length&&h(document.body).children().on("mouseover",null,h.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),h(this._menu).toggleClass(C),h(t).toggleClass(C).trigger(h.Event(y.SHOWN,e))}}}},t.show=function(){var t,e,n;this._element.disabled||h(this._element).hasClass(qt)||h(this._menu).hasClass(C)||(t={relatedTarget:this._element},e=h.Event(y.SHOW,t),n=l._getParentFromElement(this._element),h(n).trigger(e),e.isDefaultPrevented())||(h(this._menu).toggleClass(C),h(n).toggleClass(C).trigger(h.Event(y.SHOWN,t)))},t.hide=function(){var t,e,n;this._element.disabled||h(this._element).hasClass(qt)||!h(this._menu).hasClass(C)||(t={relatedTarget:this._element},e=h.Event(y.HIDE,t),n=l._getParentFromElement(this._element),h(n).trigger(e),e.isDefaultPrevented())||(h(this._menu).toggleClass(C),h(n).toggleClass(C).trigger(h.Event(y.HIDDEN,t)))},t.dispose=function(){h.removeData(this._element,Ft),h(this._element).off(E),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;h(this._element).on(y.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=a({},this.constructor.Default,h(this._element).data(),t),u.typeCheckConfig(v,t,this.constructor.DefaultType),t},t._getMenuElement=function(){var t;return this._menu||(t=l._getParentFromElement(this._element))&&(this._menu=t.querySelector(zt)),this._menu},t._getPlacement=function(){var t=h(this._element.parentNode),e=Zt;return t.hasClass(Mt)?(e=Gt,h(this._menu).hasClass(Bt)&&(e=Jt)):t.hasClass(Kt)?e=ee:t.hasClass(Qt)?e=ne:h(this._menu).hasClass(Bt)&&(e=te),e},t._detectNavbar=function(){return 0<h(this._element).closest(".
122navbar").length},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=a({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},l._jQueryInterface=function(e){return this.each(function(){var t=h(this).data(Ft);if(t||(t=new l(this,"object"==typeof e?e:null),h(this).data(Ft,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},l._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Yt)),n=0,i=e.length;n<i;n++){var o,s=l._getParentFromElement(e[n]),r=h(e[n]).data(Ft),a={relatedTarget:e[n]};t&&"click"===t.type&&(a.clickEvent=t),r&&(r=r._menu,!h(s).hasClass(C)||t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&h.contains(s,t.target)||(o=h.Event(y.HIDE,a),h(s).trigger(o),o.isDefaultPrevented())||("ontouchstart"in document.documentElement&&h(document.body).children().off("mouseover",null,h.noop),e[n].setAttribute("aria-expanded","false"),h(r).removeClass(C),h(s).removeClass(C).trigger(h.Event(y.HIDDEN,a))))}},l._getParentFromElement=function(t){var e,n=u.getSelectorFromElement(t);return(e=n?document.querySelector(n):e)||t.parentNode},l._dataApiKeydownHandler=function(t){var e,n,i;(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||h(t.target).closest(zt).length):!Wt.test(t.which))||(t.preventDefault(),t.stopPropagation(),this.disabled)||h(this).hasClass(qt)||(e=l._getParentFromElement(this),h(e).hasClass(C)&&27!==t.which&&32!==t.which?0!==(n=[].slice.call(e.querySelectorAll($t))).length&&(i=n.indexOf(t.target),38===t.which&&0<i&&i--,40===t.which&&i<n.length-1&&i++,n[i=i<0?0:i].focus()):(27===t.which&&(n=e.querySelector(Yt),h(n).trigger("focus")),h(this).trigger("click")))},r(l,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ie}},{key:"DefaultType",get:function(){return oe}}]),l})(),S=(h(document).on(y.KEYDOWN_DATA_API,Yt,T._dataApiKeydownHandler).on(y.KEYDOWN_DATA_API,zt,T._dataApiKeydownHandler).on(y.CLICK_DATA_API+" "+y.KEYUP_DATA_API,T._clearMenus).on(y.CLICK_DATA_API,Yt,function(t){t.preventDefault(),t.stopPropagation(),T._jQueryInterface.call(h(this),"toggle")}).on(y.CLICK_DATA_API,e,function(t){t.stopPropagation()}),h.fn[v]=T._jQueryInterface,h.fn[v].Constructor=T,h.fn[v].noConflict=function(){return h.fn[v]=Ut,T._jQueryInterface},"modal"),se="bs.modal",b="."+se,re=h.fn[S],ae={backdrop:!0,keyboard:!0,focus:!0,show:!0},le={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},I={HIDE:"hide"+b,HIDDEN:"hidden"+b,SHOW:"show"+b,SHOWN:"shown"+b,FOCUSIN:"focusin"+b,RESIZE:"resize"+b,CLICK_DISMISS:"click.dismiss"+b,KEYDOWN_DISMISS:"keydown.dismiss"+b,MOUSEUP_DISMISS:"mouseup.dismiss"+b,MOUSEDOWN_DISMISS:"mousedown.dismiss"+b,CLICK_DATA_API:"click"+b+".data-api"},ce="modal-dialog-scrollable",he="modal-scrollbar-measure",ue="modal-backdrop",de="modal-open",D="fade",fe="show",ge=".modal-dialog",_e=".modal-body",s='[data-toggle="modal"]',me='[data-dismiss="modal"]',pe=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ve=".sticky-top",Ee=(()=>{function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(ge),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=o.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e,n=this;this._isShown||this._isTransitioning||(h(this._element).hasClass(D)&&(this._isTransitioning=!0),e=h.Event(I.SHOW,{relatedTarget:t}),h(this._element).trigger(e),this._isShown)||e.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),h(this._element).on(I.CLICK_DISMISS,me,function(t){return n.hide(t)}),h(this._dialog).on(I.MOUSEDOWN_DISMISS,function(){h(n._element).one(I.MOUSEUP_DISMISS,function(t){h(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)}))},t.hide=function(t){var e=this;t&&t.preventDefault(),this._isShown&&!this._isTransitioning&&(t=h.Event(I.HIDE),h(this._element).trigger(t),this._isShown)&&!t.isDefaultPrevented()&&(this._isShown=!1,(t=h(this._element).hasClass(D))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),h(document).off(I.FOCUSIN),h(this._element).removeClass(fe),h(this._element).off(I.CLICK_DISMISS),h(this._dialog).off(I.MOUSEDOWN_DISMISS),t?(t=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(t)):this._hideModal())},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return h(t).off(b)}),h(document).off(I.FOCUSIN),h.removeData(this._element,se),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=a({},ae,t),u.typeCheckConfig(S,t,le),t},t._showElement=function(t){function e(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,h(n._element).trigger(o)}var n=this,i=h(this._element).hasClass(D),o=(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),h(this._dialog).hasClass(ce)?this._dialog.querySelector(_e).scrollTop=0:this._element.scrollTop=0,i&&u.reflow(this._element),h(this._element).addClass(fe),this._config.focus&&this._enforceFocus(),h.Event(I.SHOWN,{relatedTarget:t}));i?(t=u.getTransitionDurationFromElement(this._dialog),h(this._dialog).one(u.TRANSITION_END,e).emulateTransitionEnd(t)):e()},t._enforceFocus=function(){var e=this;h(document).off(I.FOCUSIN).on(I.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===h(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?h(this._element).on(I.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||h(this._element).off(I.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?h(window).on(I.RESIZE,function(t){return e.handleUpdate(t)}):h(window).off(I.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){h(document.body).removeClass(de),t._resetAdjustments(),t._resetScrollbar(),h(t._element).trigger(I.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(h(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e,n=this,i=h(this._element).hasClass(D)?D:"";this._isShown&&this._config.backdrop?(this._backdrop=document.createElement("div"),this._backdrop.className=ue,i&&this._backdrop.classList.add(i),h(this._backdrop).appendTo(document.body),h(this._element).on(I.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),i&&u.reflow(this._backdrop),h(this._backdrop).addClass(fe),t&&(i?(i=u.getTransitionDurationFromElement(this._backdrop),h(this._backdrop).one(u.TRANSITION_END,t).emulateTransitionEnd(i)):t())):!this._isShown&&this._backdrop?(h(this._backdrop).removeClass(fe),i=function(){n._removeBackdrop(),t&&t()},h(this._element).hasClass(D)?(e=u.getTransitionDurationFromElement(this._backdrop),h(this._backdrop).one(u.TRANSITION_END,i).emulateTransitionEnd(e)):i()):t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var t,e,o=this;this._isBodyOverflowing&&(t=[].slice.call(document.querySelectorAll(pe)),e=[].slice.call(document.querySelectorAll(ve)),h(t).each(function(t,e){var n=e.style.paddingRight,i=h(e).css("padding-right");h(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),h(e).each(function(t,e){var n=e.style.marginRight,i=h(e).css("margin-right");h(e).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")}),t=document.body.style.paddingRight,e=h(document.body).css("padding-right"),h(document.body).data("padding-right",t).css("padding-right",parseFloat(e)+this._scrollbarWidth+"px")),h(document.body).addClass(de)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(pe)),t=(h(t).each(function(t,e){var n=h(e).data("padding-right");h(e).removeData("padding-right"),e.style.paddingRight=n||""}),[].slice.call(document.querySelectorAll(""+ve))),t=(h(t).each(function(t,e){var n=h(e).data("margin-right");void 0!==n&&h(e).css("margin-right",n).removeData("margin-right")}),h(document.body).data("padding-right"));h(document.body).removeData("padding-right"),document.body.style.paddingRight=t||""},t._getScrollbarWidth=function(){var t=document.createElement("div"),e=(t.className=he,document.body.appendChild(t),t.getBoundingClientRect().width-t.clientWidth);return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var t=h(this).data(se),e=a({},ae,h(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new o(this,e),h(this).data(se,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method n
122amed "'+n+'"');t[n](i)}else e.show&&t.show(i)})},r(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ae}}]),o})(),ye=(h(document).on(I.CLICK_DATA_API,s,function(t){var e,n=this,i=u.getSelectorFromElement(this),i=(i&&(e=document.querySelector(i)),h(e).data(se)?"toggle":a({},h(e).data(),h(this).data())),o=("A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault(),h(e).one(I.SHOW,function(t){t.isDefaultPrevented()||o.one(I.HIDDEN,function(){h(n).is(":visible")&&n.focus()})}));Ee._jQueryInterface.call(h(e),i,this)}),h.fn[S]=Ee._jQueryInterface,h.fn[S].Constructor=Ee,h.fn[S].noConflict=function(){return h.fn[S]=re,Ee._jQueryInterface},["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),i={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ce=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Se(t,s,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var e=(new window.DOMParser).parseFromString(t,"text/html"),r=Object.keys(s),a=[].slice.call(e.body.querySelectorAll("*")),n=function(t,e){var n=a[t],t=n.nodeName.toLowerCase();if(-1===r.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var i=[].slice.call(n.attributes),o=[].concat(s["*"]||[],s[t]||[]);i.forEach(function(t){((t,e)=>{var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===ye.indexOf(n)||Boolean(t.nodeValue.match(Ce)||t.nodeValue.match(Te));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,s=i.length;o<s;o++)if(n.match(i[o]))return 1})(t,o)||n.removeAttribute(t.nodeName)})},i=0,o=a.length;i<o;i++)n(i);return e.body.innerHTML}var w="tooltip",be="bs.tooltip",A="."+be,Ie=h.fn[w],De="bs-tooltip",we=new RegExp("(^|\\s)"+De+"\\S+","g"),Ae=["sanitize","whiteList","sanitizeFn"],Ne={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},Oe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},ke={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:i},Pe="show",Le="out",je={HIDE:"hide"+A,HIDDEN:"hidden"+A,SHOW:"show"+A,SHOWN:"shown"+A,INSERTED:"inserted"+A,CLICK:"click"+A,FOCUSIN:"focusin"+A,FOCUSOUT:"focusout"+A,MOUSEENTER:"mouseenter"+A,MOUSELEAVE:"mouseleave"+A},He="fade",Re="show",xe=".tooltip-inner",Fe=".arrow",Ue="hover",We="focus",qe="click",Me="manual",N=(()=>{function i(t,e){if(void 0===o)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){var e,n;this._isEnabled&&(t?(e=this.constructor.DATA_KEY,(n=h(t.currentTarget).data(e))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):h(this.getTipElement()).hasClass(Re)?this._leave(null,this):this._enter(null,this))},t.dispose=function(){clearTimeout(this._timeout),h.removeData(this.element,this.constructor.DATA_KEY),h(this.element).off(this.constructor.EVENT_KEY),h(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&h(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===h(this.element).css("display"))throw new Error("Please use show on visible elements");var t,n,i=h.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(h(this.element).trigger(i),n=u.findShadowRoot(this.element),n=h.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element),!i.isDefaultPrevented())&&n&&(i=this.getTipElement(),n=u.getUID(this.constructor.NAME),i.setAttribute("id",n),this.element.setAttribute("aria-describedby",n),this.setContent(),this.config.animation&&h(i).addClass(He),n="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,n=this._getAttachment(n),this.addAttachmentClass(n),t=this._getContainer(),h(i).data(this.constructor.DATA_KEY,this),h.contains(this.element.ownerDocument.documentElement,this.tip)||h(i).appendTo(t),h(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o(this.element,i,{placement:n,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Fe}
122,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),h(i).addClass(Re),"ontouchstart"in document.documentElement&&h(document.body).children().on("mouseover",null,h.noop),t=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,h(e.element).trigger(e.constructor.Event.SHOWN),t===Le&&e._leave(null,e)},h(this.tip).hasClass(He)?(n=u.getTransitionDurationFromElement(this.tip),h(this.tip).one(u.TRANSITION_END,t).emulateTransitionEnd(n)):t())},t.hide=function(t){function e(){n._hoverState!==Pe&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),h(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()}var n=this,i=this.getTipElement(),o=h.Event(this.constructor.Event.HIDE);h(this.element).trigger(o),o.isDefaultPrevented()||(h(i).removeClass(Re),"ontouchstart"in document.documentElement&&h(document.body).children().off("mouseover",null,h.noop),this._activeTrigger[qe]=!1,this._activeTrigger[We]=!1,this._activeTrigger[Ue]=!1,h(this.tip).hasClass(He)?(o=u.getTransitionDurationFromElement(i),h(i).one(u.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){h(this.getTipElement()).addClass(De+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||h(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(h(t.querySelectorAll(xe)),this.getTitle()),h(t).removeClass(He+" "+Re)},t.setElementContent=function(t,e){"object"==typeof e&&(e.nodeType||e.jquery)?this.config.html?h(e).parent().is(t)||t.empty().append(e):t.text(h(e).text()):this.config.html?(this.config.sanitize&&(e=Se(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e)},t.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=a({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?h(this.config.container):h(document).find(this.config.container)},t._getAttachment=function(t){return Oe[t.toUpperCase()]},t._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?h(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)}):t!==Me&&(e=t===Ue?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,t=t===Ue?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,h(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(t,n.config.selector,function(t){return n._leave(t)}))}),h(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()}),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||h(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?We:Ue]=!0),h(e.getTipElement()).hasClass(Re)||e._hoverState===Pe?e._hoverState=Pe:(clearTimeout(e._timeout),e._hoverState=Pe,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Pe&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||h(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?We:Ue]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=Le,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===Le&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=h(this.element).data();return Object.keys(e).forEach(function(t){-1!==Ae.indexOf(t)&&delete e[t]}),"number"==typeof(t=a({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),u.typeCheckConfig(w,t,this.constructor.DefaultType),t.sanitize&&(t.template=Se(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=h(this.getTipElement()),e=t.attr("class").match(we);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(h(t).removeClass(He),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=h(this).data(be),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),h(this).data(be,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method n
122amed "'+n+'"');t[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ke}},{key:"NAME",get:function(){return w}},{key:"DATA_KEY",get:function(){return be}},{key:"Event",get:function(){return je}},{key:"EVENT_KEY",get:function(){return A}},{key:"DefaultType",get:function(){return Ne}}]),i})(),O=(h.fn[w]=N._jQueryInterface,h.fn[w].Constructor=N,h.fn[w].noConflict=function(){return h.fn[w]=Ie,N._jQueryInterface},"popover"),Ke="bs.popover",k="."+Ke,Qe=h.fn[O],Be="bs-popover",Ve=new RegExp("(^|\\s)"+Be+"\\S+","g"),Ye=a({},N.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ze=a({},N.DefaultType,{content:"(string|element|function)"}),Xe="fade",$e="show",Ge=".popover-header",Je=".popover-body",Ze={HIDE:"hide"+k,HIDDEN:"hidden"+k,SHOW:"show"+k,SHOWN:"shown"+k,INSERTED:"inserted"+k,CLICK:"click"+k,FOCUSIN:"focusin"+k,FOCUSOUT:"focusout"+k,MOUSEENTER:"mouseenter"+k,MOUSELEAVE:"mouseleave"+k},tn=(t=>{var e;function i(){return t.apply(this,arguments)||this}e=t,(n=i).prototype=Object.create(e.prototype),(n.prototype.constructor=n).__proto__=e;var n=i.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){h(this.getTipElement()).addClass(Be+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||h(this.config.template)[0],this.tip},n.setContent=function(){var t=h(this.getTipElement()),e=(this.setElementContent(t.find(Ge),this.getTitle()),this._getContent());"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Je),e),t.removeClass(Xe+" "+$e)},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=h(this.getTipElement()),e=t.attr("class").match(Ve);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=h(this).data(Ke),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),h(this).data(Ke,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Ye}},{key:"NAME",get:function(){return O}},{key:"DATA_KEY",get:function(){return Ke}},{key:"Event",get:function(){return Ze}},{key:"EVENT_KEY",get:function(){return k}},{key:"DefaultType",get:function(){return ze}}]),i})(N),P=(h.fn[O]=tn._jQueryInterface,h.fn[O].Constructor=tn,h.fn[O].noConflict=function(){return h.fn[O]=Qe,tn._jQueryInterface},"scrollspy"),en="bs.scrollspy",nn="."+en,on=h.fn[P],sn={offset:10,method:"auto",target:""},rn={offset:"number",method:"string",target:"(string|element)"},an={ACTIVATE:"activate"+nn,SCROLL:"scroll"+nn,LOAD_DATA_API:"load"+nn+".data-api"},ln="dropdown-item",L="active",cn='[data-spy="scroll"]',hn=".nav, .list-group",un=".nav-link",dn=".nav-item",fn=".list-group-item",gn=".dropdown",_n=".dropdown-item",mn=".dropdown-toggle",pn="offset",vn="position",En=(()=>{function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+un+","+this._config.target+" "+fn+","+this._config.target+" "+_n,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,h(this._scrollElement).on(an.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?pn:vn,i="auto"===this._config.method?t:this._config.method,o=i===vn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,t=u.getSelectorFromElement(t);if(e=t?document.querySelector(t):e){var n=e.getBoundingClientRect();if(n.width||n.height)return[h(e)[i]().top+o,t]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
122).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){h.removeData(this._element,en),h(this._scrollElement).off(nn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){var e;return"string"!=typeof(t=a({},sn,"object"==typeof t&&t?t:{})).target&&((e=h(t.target).attr("id"))||(e=u.getUID(P),h(t.target).attr("id",e)),t.target="#"+e),u.typeCheckConfig(P,t,rn),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t)e=this._targets[this._targets.length-1],this._activeTarget!==e&&this._activate(e);else if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])this._activeTarget=null,this._clear();else for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||t<this._offsets[i+1])&&this._activate(this._targets[i])},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),t=h([].slice.call(document.querySelectorAll(t.join(","))));(t.hasClass(ln)?(t.closest(gn).find(mn).addClass(L),t):(t.addClass(L),t.parents(hn).prev(un+", "+fn).addClass(L),t.parents(hn).prev(dn).children(un))).addClass(L),h(this._scrollElement).trigger(an.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(L)}).forEach(function(t){return t.classList.remove(L)})},n._jQueryInterface=function(e){return this.each(function(){var t=h(this).data(en);if(t||(t=new n(this,"object"==typeof e&&e),h(this).data(en,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},r(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return sn}}]),n})(),yn=(h(window).on(an.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(cn)),e=t.length;e--;){var n=h(t[e]);En._jQueryInterface.call(n,n.data())}}),h.fn[P]=En._jQueryInterface,h.fn[P].Constructor=En,h.fn[P].noConflict=function(){return h.fn[P]=on,En._jQueryInterface},"bs.tab"),e="."+yn,Cn=h.fn.tab,Tn={HIDE:"hide"+e,HIDDEN:"hidden"+e,SHOW:"show"+e,SHOWN:"shown"+e,CLICK_DATA_API:"click"+e+".data-api"},Sn="dropdown-menu",bn="active",In="disabled",Dn="fade",wn="show",An=".dropdown",Nn=".nav, .list-group",On=".active",kn="> li > .active",s='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',Pn=".dropdown-toggle",Ln="> .dropdown-menu .active",jn=(()=>{function i(t){this._element=t}var t=i.prototype;return t.show=function(){var t,e,n,i,o,s,r=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&h(this._element).hasClass(bn)||h(this._element).hasClass(In)||(e=h(this._element).closest(Nn)[0],n=u.getSelectorFromElement(this._element),e&&(o="UL"===e.nodeName||"OL"===e.nodeName?kn:On,i=(i=h.makeArray(h(e).find(o)))[i.length-1]),o=h.Event(Tn.HIDE,{relatedTarget:this._element}),s=h.Event(Tn.SHOW,{relatedTarget:i}),i&&h(i).trigger(o),h(this._element).trigger(s),s.isDefaultPrevented())||o.isDefaultPrevented()||(n&&(t=document.querySelector(n)),this._activate(this._element,e),s=function(){var t=h.Event(Tn.HIDDEN,{relatedTarget:r._element}),e=h.Event(Tn.SHOWN,{relatedTarget:i});h(i).trigger(t),h(r._element).trigger(e)},t?this._activate(t,t.parentNode,s):s())},t.dispose=function(){h.removeData(this._element,yn),this._element=null},t._activate=function(t,e,n){function i(){return o._transitionComplete(t,s,n)}var o=this,s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?h(e).children(On):h(e).find(kn))[0],e=n&&s&&h(s).hasClass(Dn);s&&e?(e=u.getTransitionDurationFromElement(s),h(s).removeClass(wn).one(u.TRANSITION_END,i).emulateTransitionEnd(e)):i()},t._transitionComplete=function(t,e,n){var i;e&&(h(e).removeClass(bn),(i=h(e.parentNode).find(Ln)[0])&&h(i).removeClass(bn),"tab"===e.getAttribute("role"))&&e.setAttribute("aria-selected",!1),h(t).addClass(bn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),u.reflow(t),t.classList.contains(Dn)&&t.classList.add(wn),t.parentNode&&h(t.parentNode).hasClass(Sn)&&((i=h(t).closest(An)[0])&&(e=[].slice.call(i.querySelectorAll(Pn)),h(e).addClass(bn)),t.setAttribute("aria-expanded",!0)),n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=h(this),e=t.data(yn);if(e||(e=new i(this),t.data(yn,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method n
122amed "'+n+'"');e[n]()}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i})(),j=(h(document).on(Tn.CLICK_DATA_API,s,function(t){t.preventDefault(),jn._jQueryInterface.call(h(this),"show")}),h.fn.tab=jn._jQueryInterface,h.fn.tab.Constructor=jn,h.fn.tab.noConflict=function(){return h.fn.tab=Cn,jn._jQueryInterface},"toast"),Hn="bs.toast",i="."+Hn,Rn=h.fn[j],H={CLICK_DISMISS:"click.dismiss"+i,HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i},xn="fade",Fn="hide",Un="show",Wn="showing",qn={animation:"boolean",autohide:"boolean",delay:"number"},Mn={animation:!0,autohide:!0,delay:500},Kn='[data-dismiss="toast"]',Qn=(()=>{function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){function t(){n._element.classList.remove(Wn),n._element.classList.add(Un),h(n._element).trigger(H.SHOWN),n._config.autohide&&n.hide()}var e,n=this;h(this._element).trigger(H.SHOW),this._config.animation&&this._element.classList.add(xn);this._element.classList.remove(Fn),this._element.classList.add(Wn),this._config.animation?(e=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(e)):t()},t.hide=function(t){var e=this;this._element.classList.contains(Un)&&(h(this._element).trigger(H.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Un)&&this._element.classList.remove(Un),h(this._element).off(H.CLICK_DISMISS),h.removeData(this._element,Hn),this._element=null,this._config=null},t._getConfig=function(t){return t=a({},Mn,h(this._element).data(),"object"==typeof t&&t?t:{}),u.typeCheckConfig(j,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;h(this._element).on(H.CLICK_DISMISS,Kn,function(){return t.hide(!0)})},t._close=function(){function t(){n._element.classList.add(Fn),h(n._element).trigger(H.HIDDEN)}var e,n=this;this._element.classList.remove(Un),this._config.animation?(e=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(e)):t()},i._jQueryInterface=function(n){return this.each(function(){var t=h(this),e=t.data(Hn);if(e||(e=new i(this,"object"==typeof n&&n),t.data(Hn,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n](this)}})},r(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return qn}},{key:"Default",get:function(){return Mn}}]),i})();if(h.fn[j]=Qn._jQueryInterface,h.fn[j].Constructor=Qn,h.fn[j].noConflict=function(){return h.fn[j]=Rn,Qn._jQueryInterface},void 0===h)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");e=h.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");t.Util=u,t.Alert=n,t.Button=nt,t.Carousel=g,t.Collapse=xt,t.Dropdown=T,t.Modal=Ee,t.Popover=tn,t.Scrollspy=En,t.Tab=jn,t.Toast=Qn,t.Tooltip=N,Object.defineProperty(t,"__esModule",{value:!0})});
123((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)})(this,function(t,h,o){function R(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function e(t,e,n){e&&R(t.prototype,e),n&&R(t,n)}function s(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);(e="function"==typeof Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable})):e).forEach(function(t){var e=i,n=o[t=t];t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return i}h=h&&h.hasOwnProperty("default")?h.default:h,o=o&&o.hasOwnProperty("default")?o.default:o;var x="transitionend";var u={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e,n=t.getAttribute("data-target");n&&"#"!==n||(n=(e=t.getAttribute("href"))&&"#"!==e?e.trim():"");try{return document.querySelector(n)?n:null}catch(t){return null}},getTransitionDurationFromElement:function(t){var e,n,i;return t&&(e=h(t).css("transition-duration"),t=h(t).css("transition-delay"),n=parseFloat(e),i=parseFloat(t),n||i)?(e=e.split(",")[0],t=t.split(",")[0],1e3*(parseFloat(e)+parseFloat(t))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){h(t).trigger(x)},supportsTransitionEnd:function(){return Boolean(x)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],s=e[i],s=s&&u.isElement(s)?"element":{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}},findShadowRoot:function(t){return document.documentElement.attachShadow?"function"!=typeof t.getRootNode?t instanceof ShadowRoot?t:t.parentNode?u.findShadowRoot(t.parentNode):null:(t=t.getRootNode())instanceof ShadowRoot?t:null:null}},F=(h.fn.emulateTransitionEnd=function(t){var e=this,n=!1;return h(this).one(u.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||u.triggerTransitionEnd(e)},t),this},h.event.special[u.TRANSITION_END]={bindType:x,delegateType:x,handle:function(t){if(h(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},"alert"),U="bs.alert",n="."+U,W=h.fn[F],q={CLOSE:"close"+n,CLOSED:"closed"+n,CLICK_DATA_API:"click"+n+".data-api"},i=((n=r.prototype).close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){h.removeData(this._element,U),this._element=null},n._getRootElement=function(t){var e=u.getSelectorFromElement(t),n=!1;return n=(n=e?document.querySelector(e):n)||h(t).closest(".alert")[0]},n._triggerCloseEvent=function(t){var e=h.Event(q.CLOSE);return h(t).trigger(e),e},n._removeElement=function(e){var t,n=this;h(e).removeClass("show"),h(e).hasClass("fade")?(t=u.getTransitionDurationFromElement(e),h(e).one(u.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)):this._destroyElement(e)},n._destroyElement=function(t){h(t).detach().trigger(q.CLOSED).remove()},r._jQueryInterface=function(n){return this.each(function(){var t=h(this),e=t.data(U);e||(e=new r(this),t.data(U,e)),"close"===n&&e[n](this)})},r._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},e(r,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),r);function r(t){this._element=t}h(document).on(q.CLICK_DATA_API,'[data-dismiss="alert"]',i._handleDismiss(new i)),h.fn[F]=i._jQueryInterface,h.fn[F].Constructor=i,h.fn[F].noConflict=function(){return h.fn[F]=W,i._jQueryInterface};var M="button",K="bs.button",n="."+K,a=".data-api",Q=h.fn[M],B="active",l='[data-toggle^="button"]',V=".btn",n={CLICK_DATA_API:"click"+n+a,FOCUS_BLUR_DATA_API:"focus"+n+a+" blur"+n+a},Y=((a=z.prototype).toggle=function(){var t=!0,e=!0,n=h(this._element).closest('[data-toggle="buttons"]')[0];if(n){var i,o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type&&(o.checked&&this._element.classList.contains(B)?t=!1:(i=n.querySelector(".active"))&&h(i).removeClass(B)),t){if(o.hasAttribute("disabled")||n.hasAttribute("disabled")||o.classList.contains("disabled")||n.classList.contains("disabled"))return;o.checked=!this._element.classList.contains(B),h(o).trigger("change")}o.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(B)),t&&h(this._element).toggleClass(B)},a.dispose=function(){h.removeData(this._element,K),this._element=null},z._jQueryInterface=function(e){return this.each(function(){var t=h(this).data(K);t||(t=new z(this),h(this).data(K,t)),"toggle"===e&&t[e]()})},e(z,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),z);function z(t){this._element=t}h(document).on(n.CLICK_DATA_API,l,function(t){t.preventDefault();t=t.target;h(t).hasClass("btn")||(t=h(t).closest(V)),Y._jQueryInterface.call(h(t),"toggle")}).on(n.FOCUS_BLUR_DATA_API,l,function(t){var e=h(t.target).closest(V)[0];h(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),h.fn[M]=Y._jQueryInterface,h.fn[M].Constructor=Y,h.fn[M].noConflict=function(){return h.fn[M]=Q,Y._jQueryInterface};var c="carousel",X="bs.carousel",d="."+X,a=".data-api",$=h.fn[c],G={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},J={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Z="next",tt="prev",f={SLIDE:"slide"+d,SLID:"slid"+d,KEYDOWN:"keydown"+d,MOUSEENTER:"mouseenter"+d,MOUSELEAVE:"mouseleave"+d,TOUCHSTART:"touchstart"+d,TOUCHMOVE:"touchmove"+d,TOUCHEND:"touchend"+d,POINTERDOWN:"pointerdown"+d,POINTERUP:"pointerup"+d,DRAG_START:"dragstart"+d,LOAD_DATA_API:"load"+d+a,CLICK_DATA_API:"click"+
123d+a},g="active",et=".active.carousel-item",nt={TOUCH:"touch",PEN:"pen"},_=((n=m.prototype).next=function(){this._isSliding||this._slide(Z)},n.nextWhenVisible=function(){!document.hidden&&h(this._element).is(":visible")&&"hidden"!==h(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(tt)},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var e=this,n=(this._activeElement=this._element.querySelector(et),this._getItemIndex(this._activeElement));t>this._items.length-1||t<0||(this._isSliding?h(this._element).one(f.SLID,function(){return e.to(t)}):n===t?(this.pause(),this.cycle()):this._slide(n<t?Z:tt,this._items[t]))},n.dispose=function(){h(this._element).off(d),h.removeData(this._element,X),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=s({},G,t),u.typeCheckConfig(c,t,J),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);t<=40||(0<(t=t/this.touchDeltaX)&&this.prev(),t<0&&this.next())},n._addEventListeners=function(){var e=this;this._config.keyboard&&h(this._element).on(f.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&h(this._element).on(f.MOUSEENTER,function(t){return e.pause(t)}).on(f.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t,e,n=this;this._touchSupported&&(t=function(t){n._pointerEvent&&nt[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},e=function(t){n._pointerEvent&&nt[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))},h(this._element.querySelectorAll(".carousel-item img")).on(f.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(h(this._element).on(f.POINTERDOWN,t),h(this._element).on(f.POINTERUP,e),this._element.classList.add("pointer-event")):(h(this._element).on(f.TOUCHSTART,t),h(this._element).on(f.TOUCHMOVE,function(t){(t=t).originalEvent.touches&&1<t.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=t.originalEvent.touches[0].clientX-n.touchStartX}),h(this._element).on(f.TOUCHEND,e)))},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n=t===Z,i=t===tt,o=this._getItemIndex(e),s=this._items.length-1;return(i&&0===o||n&&o===s)&&!this._config.wrap?e:-1==(i=(o+(t===tt?-1:1))%this._items.length)?this._items[this._items.length-1]:this._items[i]},n._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(et)),t=h.Event(f.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return h(this._element).trigger(t),t},n._setActiveIndicatorElement=function(t){var e;this._indicatorsElement&&(e=[].slice.call(this._indicatorsElement.querySelectorAll(".active")),h(e).removeClass(g),e=this._indicatorsElement.children[this._getItemIndex(t)])&&h(e).addClass(g)},n._slide=function(t,e){var n,i,o,s=this,r=this._element.querySelector(et),a=this._getItemIndex(r),l=e||r&&this._getItemByDirection(t,r),e=this._getItemIndex(l),c=Boolean(this._interval),t=t===Z?(n="carousel-item-left",i="carousel-item-next","left"):(n="carousel-item-right",i="carousel-item-prev","right");l&&h(l).hasClass(g)?this._isSliding=!1:!this._triggerSlideEvent(l,t).isDefaultPrevented()&&r&&l&&(this._isSliding=!0,c&&this.pause(),this._setActiveIndicatorElement(l),o=h.Event(f.SLID,{relatedTarget:l,direction:t,from:a,to:e}),h(this._element).hasClass("slide")?(h(l).addClass(i),u.reflow(l),h(r).addClass(n),h(l).addClass(n),t=parseInt(l.getAttribute("data-interval"),10),this._config.interval=t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,t):this._config.defaultInterval||this._config.interval,a=u.getTransitionDurationFromElement(r),h(r).one(u.TRANSITION_END,function(){h(l).removeClass(n+" "+i).addClass(g),h(r).removeClass(g+" "+i+" "+n),s._isSli
123ding=!1,setTimeout(function(){return h(s._element).trigger(o)},0)}).emulateTransitionEnd(a)):(h(r).removeClass(g),h(l).addClass(g),this._isSliding=!1,h(this._element).trigger(o)),c)&&this.cycle()},m._jQueryInterface=function(i){return this.each(function(){var t=h(this).data(X),e=s({},G,h(this).data()),n=("object"==typeof i&&(e=s({},e,i)),"string"==typeof i?i:e.slide);if(t||(t=new m(this,e),h(this).data(X,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},m._dataApiClickHandler=function(t){var e,n,i=u.getSelectorFromElement(this);i&&(i=h(i)[0])&&h(i).hasClass("carousel")&&(e=s({},h(i).data(),h(this).data()),(n=this.getAttribute("data-slide-to"))&&(e.interval=!1),m._jQueryInterface.call(h(i),e),n&&h(i).data(X).to(n),t.preventDefault())},e(m,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return G}}]),m);function m(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}h(document).on(f.CLICK_DATA_API,"[data-slide], [data-slide-to]",_._dataApiClickHandler),h(window).on(f.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),e=0,n=t.length;e<n;e++){var i=h(t[e]);_._jQueryInterface.call(i,i.data())}}),h.fn[c]=_._jQueryInterface,h.fn[c].Constructor=_,h.fn[c].noConflict=function(){return h.fn[c]=$,_._jQueryInterface};var p="collapse",v="bs.collapse",l="."+v,it=h.fn[p],ot={toggle:!0,parent:""},st={toggle:"boolean",parent:"(string|element)"},rt={SHOW:"show"+l,SHOWN:"shown"+l,HIDE:"hide"+l,HIDDEN:"hidden"+l,CLICK_DATA_API:"click"+l+".data-api"},E="show",at="collapse",lt="collapsing",ct="collapsed",ht='[data-toggle="collapse"]',ut=((a=y.prototype).toggle=function(){h(this._element).hasClass(E)?this.hide():this.show()},a.show=function(){var t,e,n,i,o=this;this._isTransitioning||h(this._element).hasClass(E)||(t=this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains(at)})).length?null:t)&&(i=h(t).not(this._selector).data(v))&&i._isTransitioning||(n=h.Event(rt.SHOW),h(this._element).trigger(n),n.isDefaultPrevented()||(t&&(y._jQueryInterface.call(h(t).not(this._selector),"hide"),i||h(t).data(v,null)),e=this._getDimension(),h(this._element).removeClass(at).addClass(lt),this._element.style[e]=0,this._triggerArray.length&&h(this._triggerArray).removeClass(ct).attr("aria-expanded",!0),this.setTransitioning(!0),n="scroll"+(e[0].toUpperCase()+e.slice(1)),i=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,function(){h(o._element).removeClass(lt).addClass(at).addClass(E),o._element.style[e]="",o.setTransitioning(!1),h(o._element).trigger(rt.SHOWN)}).emulateTransitionEnd(i),this._element.style[e]=this._element[n]+"px"))},a.hide=function(){var t=this;if(!this._isTransitioning&&h(this._element).hasClass(E)){var e=h.Event(rt.HIDE);if(h(this._element).trigger(e),!e.isDefaultPrevented()){var e=this._getDimension(),n=(this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",u.reflow(this._element),h(this._element).addClass(lt).removeClass(at).removeClass(E),this._triggerArray.length);if(0<n)for(var i=0;i<n;i++){var o=this._triggerArray[i],s=u.getSelectorFromElement(o);null===s||h([].slice.call(document.querySelectorAll(s))).hasClass(E)||h(o).addClass(ct).attr("aria-expanded",!1)}this.setTransitioning(!0),this._element.style[e]="";e=u.getTransitionDurationFromElement(this._element);h(this._element).one(u.TRANSITION_END,function(){t.setTransitioning(!1),h(t._element).removeClass(lt).addClass(at).trigger(rt.HIDDEN)}).emulateTransitionEnd(e)}}},a.setTransitioning=function(t){this._isTransitioning=t},a.dispose=function(){h.removeData(this._element,v),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},a._getConfig=function(t){return(t=s({},ot,t)).toggle=Boolean(t.toggle),u.typeCheckConfig(p,t,st),t},a._getDimension=function(){return h(this._element).hasClass("width")?"width":"height"},a._getParent=function(){var t,n=this,e=(u.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent),'[data-toggle="collapse"][data-parent="'+this._config.parent+'"]'),e=[].slice.call(t.querySelectorAll(e));return h(e).each(function(t,e){n._addAriaAndCollapsedClass(y._getTargetFromElement(e),[e])}),t},a._addAriaAndCollapsedClass=function(t,e){t=h(t).hasClass(E);e.length&&h(e).toggleClass(ct,!t).attr("aria-expanded",t)},y._getTargetFromElement=function(t){t=u.getSelectorFromElement(t);return t?document.querySelector(t):null},y._jQueryInterface=function(i){return this.each(function(){var t=h(this),e=t.data(v),n=s({},ot,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new y(this,n),t.data(v,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method n
123amed "'+i+'"');e[i]()}})},e(y,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ot}}]),y);function y(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ht)),i=0,o=n.length;i<o;i++){var s=n[i],r=u.getSelectorFromElement(s),a=[].slice.call(document.querySelectorAll(r)).filter(function(t){return t===e});null!==r&&0<a.length&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}h(document).on(rt.CLICK_DATA_API,ht,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=h(this),t=u.getSelectorFromElement(this),t=[].slice.call(document.querySelectorAll(t));h(t).each(function(){var t=h(this),e=t.data(v)?"toggle":n.data();ut._jQueryInterface.call(t,e)})}),h.fn[p]=ut._jQueryInterface,h.fn[p].Constructor=ut,h.fn[p].noConflict=function(){return h.fn[p]=it,ut._jQueryInterface};var C="dropdown",dt="bs.dropdown",T="."+dt,n=".data-api",ft=h.fn[C],gt=new RegExp("38|40|27"),S={HIDE:"hide"+T,HIDDEN:"hidden"+T,SHOW:"show"+T,SHOWN:"shown"+T,CLICK:"click"+T,CLICK_DATA_API:"click"+T+n,KEYDOWN_DATA_API:"keydown"+T+n,KEYUP_DATA_API:"keyup"+T+n},_t="disabled",b="show",mt="dropdown-menu-right",pt='[data-toggle="dropdown"]',vt=".dropdown-menu",Et={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},yt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},I=((l=D.prototype).toggle=function(){if(!this._element.disabled&&!h(this._element).hasClass(_t)){var t=D._getParentFromElement(this._element),e=h(this._menu).hasClass(b);if(D._clearMenus(),!e){var e={relatedTarget:this._element},n=h.Event(S.SHOW,e);if(h(t).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar){if(void 0===o)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");n=this._element;"parent"===this._config.reference?n=t:u.isElement(this._config.reference)&&(n=this._config.reference,void 0!==this._config.reference.jquery)&&(n=this._config.reference[0]),"scrollParent"!==this._config.boundary&&h(t).addClass("position-static"),this._popper=new o(n,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===h(t).closest(".navbar-nav").length&&h(document.body).children().on("mouseover",null,h.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),h(this._menu).toggleClass(b),h(t).toggleClass(b).trigger(h.Event(S.SHOWN,e))}}}},l.show=function(){var t,e,n;this._element.disabled||h(this._element).hasClass(_t)||h(this._menu).hasClass(b)||(t={relatedTarget:this._element},e=h.Event(S.SHOW,t),n=D._getParentFromElement(this._element),h(n).trigger(e),e.isDefaultPrevented())||(h(this._menu).toggleClass(b),h(n).toggleClass(b).trigger(h.Event(S.SHOWN,t)))},l.hide=function(){var t,e,n;this._element.disabled||h(this._element).hasClass(_t)||!h(this._menu).hasClass(b)||(t={relatedTarget:this._element},e=h.Event(S.HIDE,t),n=D._getParentFromElement(this._element),h(n).trigger(e),e.isDefaultPrevented())||(h(this._menu).toggleClass(b),h(n).toggleClass(b).trigger(h.Event(S.HIDDEN,t)))},l.dispose=function(){h.removeData(this._element,dt),h(this._element).off(T),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},l.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},l._addEventListeners=function(){var e=this;h(this._element).on(S.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},l._getConfig=function(t){return t=s({},this.constructor.Default,h(this._element).data(),t),u.typeCheckConfig(C,t,this.constructor.DefaultType),t},l._getMenuElement=function(){var t;return this._menu||(t=D._getParentFromElement(this._element))&&(this._menu=t.querySelector(vt)),this._menu},l._getPlacement=function(){var t=h(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?(e="top-start",h(this._menu).hasClass(mt)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":h(this._menu).hasClass(mt)&&(e="bottom-end"),e},l._detectNavbar=function(){return 0<h(this._element).closest(".
123navbar").length},l._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},l._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},D._jQueryInterface=function(e){return this.each(function(){var t=h(this).data(dt);if(t||(t=new D(this,"object"==typeof e?e:null),h(this).data(dt,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},D._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(pt)),n=0,i=e.length;n<i;n++){var o,s=D._getParentFromElement(e[n]),r=h(e[n]).data(dt),a={relatedTarget:e[n]};t&&"click"===t.type&&(a.clickEvent=t),r&&(r=r._menu,!h(s).hasClass(b)||t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&h.contains(s,t.target)||(o=h.Event(S.HIDE,a),h(s).trigger(o),o.isDefaultPrevented())||("ontouchstart"in document.documentElement&&h(document.body).children().off("mouseover",null,h.noop),e[n].setAttribute("aria-expanded","false"),h(r).removeClass(b),h(s).removeClass(b).trigger(h.Event(S.HIDDEN,a))))}},D._getParentFromElement=function(t){var e,n=u.getSelectorFromElement(t);return(e=n?document.querySelector(n):e)||t.parentNode},D._dataApiKeydownHandler=function(t){var e,n,i;(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||h(t.target).closest(vt).length):!gt.test(t.which))||(t.preventDefault(),t.stopPropagation(),this.disabled)||h(this).hasClass(_t)||(e=D._getParentFromElement(this),(i=h(e).hasClass(b))&&(!i||27!==t.which&&32!==t.which)?0!==(i=[].slice.call(e.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"))).length&&(n=i.indexOf(t.target),38===t.which&&0<n&&n--,40===t.which&&n<i.length-1&&n++,i[n=n<0?0:n].focus()):(27===t.which&&(i=e.querySelector(pt),h(i).trigger("focus")),h(this).trigger("click")))},e(D,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Et}},{key:"DefaultType",get:function(){return yt}}]),D);function D(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}h(document).on(S.KEYDOWN_DATA_API,pt,I._dataApiKeydownHandler).on(S.KEYDOWN_DATA_API,vt,I._dataApiKeydownHandler).on(S.CLICK_DATA_API+" "+S.KEYUP_DATA_API,I._clearMenus).on(S.CLICK_DATA_API,pt,function(t){t.preventDefault(),t.stopPropagation(),I._jQueryInterface.call(h(this),"toggle")}).on(S.CLICK_DATA_API,".dropdown form",function(t){t.stopPropagation()}),h.fn[C]=I._jQueryInterface,h.fn[C].Constructor=I,h.fn[C].noConflict=function(){return h.fn[C]=ft,I._jQueryInterface};var w="modal",Ct="bs.modal",A="."+Ct,Tt=h.fn[w],St={backdrop:!0,keyboard:!0,focus:!0,show:!0},bt={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},N={HIDE:"hide"+A,HIDDEN:"hidden"+A,SHOW:"show"+A,SHOWN:"shown"+A,FOCUSIN:"focusin"+A,RESIZE:"resize"+A,CLICK_DISMISS:"click.dismiss"+A,KEYDOWN_DISMISS:"keydown.dismiss"+A,MOUSEUP_DISMISS:"mouseup.dismiss"+A,MOUSEDOWN_DISMISS:"mousedown.dismiss"+A,CLICK_DATA_API:"click"+A+".data-api"},It="modal-open",O="fade",Dt="show",wt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",At=".sticky-top",Nt=((a=Ot.prototype).toggle=function(t){return this._isShown?this.hide():this.show(t)},a.show=function(t){var e,n=this;this._isShown||this._isTransitioning||(h(this._element).hasClass(O)&&(this._isTransitioning=!0),e=h.Event(N.SHOW,{relatedTarget:t}),h(this._element).trigger(e),this._isShown)||e.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),h(this._element).on(N.CLICK_DISMISS,'[data-dismiss="modal"]',function(t){return n.hide(t)}),h(this._dialog).on(N.MOUSEDOWN_DISMISS,function(){h(n._element).one(N.MOUSEUP_DISMISS,function(t){h(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)}))},a.hide=function(t){var e=this;t&&t.preventDefault(),this._isShown&&!this._isTransitioning&&(t=h.Event(N.HI
123DE),h(this._element).trigger(t),this._isShown)&&!t.isDefaultPrevented()&&(this._isShown=!1,(t=h(this._element).hasClass(O))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),h(document).off(N.FOCUSIN),h(this._element).removeClass(Dt),h(this._element).off(N.CLICK_DISMISS),h(this._dialog).off(N.MOUSEDOWN_DISMISS),t?(t=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(t)):this._hideModal())},a.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return h(t).off(A)}),h(document).off(N.FOCUSIN),h.removeData(this._element,Ct),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},a.handleUpdate=function(){this._adjustDialog()},a._getConfig=function(t){return t=s({},St,t),u.typeCheckConfig(w,t,bt),t},a._showElement=function(t){function e(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,h(n._element).trigger(o)}var n=this,i=h(this._element).hasClass(O),o=(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),h(this._dialog).hasClass("modal-dialog-scrollable")?this._dialog.querySelector(".modal-body").scrollTop=0:this._element.scrollTop=0,i&&u.reflow(this._element),h(this._element).addClass(Dt),this._config.focus&&this._enforceFocus(),h.Event(N.SHOWN,{relatedTarget:t}));i?(t=u.getTransitionDurationFromElement(this._dialog),h(this._dialog).one(u.TRANSITION_END,e).emulateTransitionEnd(t)):e()},a._enforceFocus=function(){var e=this;h(document).off(N.FOCUSIN).on(N.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===h(e._element).has(t.target).length&&e._element.focus()})},a._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?h(this._element).on(N.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||h(this._element).off(N.KEYDOWN_DISMISS)},a._setResizeEvent=function(){var e=this;this._isShown?h(window).on(N.RESIZE,function(t){return e.handleUpdate(t)}):h(window).off(N.RESIZE)},a._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){h(document.body).removeClass(It),t._resetAdjustments(),t._resetScrollbar(),h(t._element).trigger(N.HIDDEN)})},a._removeBackdrop=function(){this._backdrop&&(h(this._backdrop).remove(),this._backdrop=null)},a._showBackdrop=function(t){var e,n=this,i=h(this._element).hasClass(O)?O:"";this._isShown&&this._config.backdrop?(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),h(this._backdrop).appendTo(document.body),h(this._element).on(N.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),i&&u.reflow(this._backdrop),h(this._backdrop).addClass(Dt),t&&(i?(i=u.getTransitionDurationFromElement(this._backdrop),h(this._backdrop).one(u.TRANSITION_END,t).emulateTransitionEnd(i)):t())):!this._isShown&&this._backdrop?(h(this._backdrop).removeClass(Dt),i=function(){n._removeBackdrop(),t&&t()},h(this._element).hasClass(O)?(e=u.getTransitionDurationFromElement(this._backdrop),h(this._backdrop).one(u.TRANSITION_END,i).emulateTransitionEnd(e)):i()):t&&t()},a._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},a._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},a._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},a._setScrollbar=function(){var t,e,o=this;this._isBodyOverflowing&&(t=[].slice.call(document.querySelectorAll(wt)),e=[].slice.call(document.querySelectorAll(At)),h(t).each(function(t,e){var n=e.style.paddingRight,i=h(e).css("padding-right");h(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),h(e).each(function(t,e){var n=e.style.marginRight,i=h(e).css("margin-right");h(e).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")}),t=document.body.style.paddingRight,e=h(document.body).css("padding-right"),h(document.body).data("padding-right",t).css("padding-right",parseFloat(e)+this._scrollbarWidth+"px")),h(document.body).addClass(It)},a._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(wt)),t=(h(t).each(function(t,e){var n=h(e).data("padding-right");h(e).removeData("padding-right"),e.style.paddingRight=n||""}),[].slice.call(document.querySelectorAll(At))),t=(h(t).each(function(t,e){var n=h(e).data("margin-right");void 0!==n&&h(e).css("margin-right",n).removeData("margin-right")}),h(document.body).data("padding-right"));h(document.body).removeData("padding-right"),document.body.style.paddingRight=t||""},a._getScrollbarWidth=function(){var t=document.createElement("div"),e=(t.className="modal-scrollbar-measure",document.body.appendChild(t),t.getBoundingClientRect().width-t.clientWidth);return document.body.removeChild(t),e},Ot._jQueryInterface=function(n,i){return this.each(function(){var t=h(this).data(Ct),e=s({},St,h(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new Ot(this,e),h(this).data(Ct,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method n
123amed "'+n+'"');t[n](i)}else e.show&&t.show(i)})},e(Ot,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return St}}]),Ot);function Ot(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}h(document).on(N.CLICK_DATA_API,'[data-toggle="modal"]',function(t){var e,n=this,i=u.getSelectorFromElement(this),i=(i&&(e=document.querySelector(i)),h(e).data(Ct)?"toggle":s({},h(e).data(),h(this).data())),o=("A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault(),h(e).one(N.SHOW,function(t){t.isDefaultPrevented()||o.one(N.HIDDEN,function(){h(n).is(":visible")&&n.focus()})}));Nt._jQueryInterface.call(h(e),i,this)}),h.fn[w]=Nt._jQueryInterface,h.fn[w].Constructor=Nt,h.fn[w].noConflict=function(){return h.fn[w]=Tt,Nt._jQueryInterface};var kt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Pt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Lt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function jt(t,o,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var e=(new window.DOMParser).parseFromString(t,"text/html"),s=Object.keys(o),r
123=[].slice.call(e.body.querySelectorAll("*")),n=0,i=r.length;n<i;n++)(t=>{var e=r[t],t=e.nodeName.toLowerCase();if(-1===s.indexOf(e.nodeName.toLowerCase()))return e.parentNode.removeChild(e);var n=[].slice.call(e.attributes),i=[].concat(o["*"]||[],o[t]||[]);n.forEach(function(t){((t,e)=>{var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===kt.indexOf(n)||Boolean(t.nodeValue.match(Pt)||t.nodeValue.match(Lt));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,s=i.length;o<s;o++)if(n.match(i[o]))return 1})(t,i)||e.removeAttribute(t.nodeName)})})(n);return e.body.innerHTML}var k="tooltip",Ht="bs.tooltip",P="."+Ht,Rt=h.fn[k],xt="bs-tooltip",Ft=new RegExp("(^|\\s)"+xt+"\\S+","g"),Ut=["sanitize","whiteList","sanitizeFn"],Wt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},qt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Mt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},Kt="show",Qt={HIDE:"hide"+P,HIDDEN:"hidden"+P,SHOW:"show"+P,SHOWN:"shown"+P,INSERTED:"inserted"+P,CLICK:"click"+P,FOCUSIN:"focusin"+P,FOCUSOUT:"focusout"+P,MOUSEENTER:"mouseenter"+P,MOUSELEAVE:"mouseleave"+P},Bt="fade",Vt="show",Yt="hover",zt="focus",L=((n=Xt.prototype).enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){var e,n;this._isEnabled&&(t?(e=this.constructor.DATA_KEY,(n=h(t.currentTarget).data(e))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):h(this.getTipElement()).hasClass(Vt)?this._leave(null,this):this._enter(null,this))},n.dispose=function(){clearTimeout(this._timeout),h.removeData(this.element,this.constructor.DATA_KEY),h(this.element).off(this.constructor.EVENT_KEY),h(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&h(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var e=this;if("none"===h(this.element).css("display"))throw new Error("Please use show on visible elements");var t,n,i=h.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(h(this.element).trigger(i),n=u.findShadowRoot(this.element),n=h.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element),!i.isDefaultPrevented())&&n&&(i=this.getTipElement(),n=u.getUID(this.constructor.NAME),i.setAttribute("id",n),this.element.setAttribute("aria-describedby",n),this.setContent(),this.config.animation&&h(i).addClass(Bt),n="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,n=this._getAttachment(n),this.addAttachmentClass(n),t=this._getContainer(),h(i).data(this.constructor.DATA_KEY,this),h.contains(this.element.ownerDocument.documentElement,this.tip)||h(i).appendTo(t),h(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o(this.element,i,{placement:n,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"}
123,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),h(i).addClass(Vt),"ontouchstart"in document.documentElement&&h(document.body).children().on("mouseover",null,h.noop),t=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,h(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)},h(this.tip).hasClass(Bt)?(n=u.getTransitionDurationFromElement(this.tip),h(this.tip).one(u.TRANSITION_END,t).emulateTransitionEnd(n)):t())},n.hide=function(t){function e(){n._hoverState!==Kt&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),h(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()}var n=this,i=this.getTipElement(),o=h.Event(this.constructor.Event.HIDE);h(this.element).trigger(o),o.isDefaultPrevented()||(h(i).removeClass(Vt),"ontouchstart"in document.documentElement&&h(document.body).children().off("mouseover",null,h.noop),this._activeTrigger.click=!1,this._activeTrigger[zt]=!1,this._activeTrigger[Yt]=!1,h(this.tip).hasClass(Bt)?(o=u.getTransitionDurationFromElement(i),h(i).one(u.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(t){h(this.getTipElement()).addClass(xt+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||h(this.config.template)[0],this.tip},n.setContent=function(){var t=this.getTipElement();this.setElementContent(h(t.querySelectorAll(".tooltip-inner")),this.getTitle()),h(t).removeClass(Bt+" "+Vt)},n.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=jt(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?h(e).parent().is(t)||t.empty().append(e):t.text(h(e).text())},n.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},n._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},n._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?h(this.config.container):h(document).find(this.config.container)},n._getAttachment=function(t){return qt[t.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?h(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)}):"manual"!==t&&(e=t===Yt?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,t=t===Yt?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,h(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(t,n.config.selector,function(t){return n._leave(t)}))}),h(this.element).closest(".modal").on("hide.bs.modal",function(){n.element&&n.hide()}),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||h(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?zt:Yt]=!0),h(e.getTipElement()).hasClass(Vt)||e._hoverState===Kt?e._hoverState=Kt:(clearTimeout(e._timeout),e._hoverState=Kt,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Kt&&e.show()},e.config.delay.show):e.show())},n._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||h(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),h(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?zt:Yt]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){var e=h(this.element).data();return Object.keys(e).forEach(function(t){-1!==Ut.indexOf(t)&&delete e[t]}),"number"==typeof(t=s({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),u.typeCheckConfig(k,t,this.constructor.DefaultType),t.sanitize&&(t.template=jt(t.template,t.whiteList,t.sanitizeFn)),t},n._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},n._cleanTipClass=function(){var t=h(this.getTipElement()),e=t.attr("class").match(Ft);null!==e&&e.length&&t.removeClass(e.join(""))},n._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},n._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(h(t).removeClass(Bt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},Xt._jQueryInterface=function(n){return this.each(function(){var t=h(this).data(Ht),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new Xt(this,e),h(this).data(Ht,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method n
123amed "'+n+'"');t[n]()}})},e(Xt,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Mt}},{key:"NAME",get:function(){return k}},{key:"DATA_KEY",get:function(){return Ht}},{key:"Event",get:function(){return Qt}},{key:"EVENT_KEY",get:function(){return P}},{key:"DefaultType",get:function(){return Wt}}]),Xt);function Xt(t,e){if(void 0===o)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}h.fn[k]=L._jQueryInterface,h.fn[k].Constructor=L,h.fn[k].noConflict=function(){return h.fn[k]=Rt,L._jQueryInterface};var $t,Gt="popover",Jt="bs.popover",j="."+Jt,Zt=h.fn[Gt],te="bs-popover",ee=new RegExp("(^|\\s)"+te+"\\S+","g"),ne=s({},L.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ie=s({},L.DefaultType,{content:"(string|element|function)"}),oe={HIDE:"hide"+j,HIDDEN:"hidden"+j,SHOW:"show"+j,SHOWN:"shown"+j,INSERTED:"inserted"+j,CLICK:"click"+j,FOCUSIN:"focusin"+j,FOCUSOUT:"focusout"+j,MOUSEENTER:"mouseenter"+j,MOUSELEAVE:"mouseleave"+j},se=(l=$t=L,(a=re).prototype=Object.create(l.prototype),(a.prototype.constructor=a).__proto__=l,(a=re.prototype).isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){h(this.getTipElement()).addClass(te+"-"+t)},a.getTipElement=function(){return this.tip=this.tip||h(this.config.template)[0],this.tip},a.setContent=function(){var t=h(this.getTipElement()),e=(this.setElementContent(t.find(".popover-header"),this.getTitle()),this._getContent());"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var t=h(this.getTipElement()),e=t.attr("class").match(ee);null!==e&&0<e.length&&t.removeClass(e.join(""))},re._jQueryInterface=function(n){return this.each(function(){var t=h(this).data(Jt),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new re(this,e),h(this).data(Jt,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},e(re,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ne}},{key:"NAME",get:function(){return Gt}},{key:"DATA_KEY",get:function(){return Jt}},{key:"Event",get:function(){return oe}},{key:"EVENT_KEY",get:function(){return j}},{key:"DefaultType",get:function(){return ie}}]),re);function re(){return $t.apply(this,arguments)||this}h.fn[Gt]=se._jQueryInterface,h.fn[Gt].Constructor=se,h.fn[Gt].noConflict=function(){return h.fn[Gt]=Zt,se._jQueryInterface};var H="scrollspy",ae="bs.scrollspy",le="."+ae,ce=h.fn[H],he={offset:10,method:"auto",target:""},ue={offset:"number",method:"string",target:"(string|element)"},de={ACTIVATE:"activate"+le,SCROLL:"scroll"+le,LOAD_DATA_API:"load"+le+".data-api"},fe="active",ge=".nav, .list-group",_e=".nav-link",me=".list-group-item",pe="position",ve=((n=Ee.prototype).refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":pe,i="auto"===this._config.method?t:this._config.method,o=i===pe?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,t=u.getSelectorFromElement(t);if(e=t?document.querySelector(t):e){var n=e.getBoundingClientRect();if(n.width||n.height)return[h(e)[i]().top+o,t]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},n.dispose=function(){h.removeData(this._element,ae),h(this._scrollElement).off(le),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){var e;return"string"!=typeof(t=s({},he,"object"==typeof t&&t?t:{})).target&&((e=h(t.target).attr("id"))||(e=u.getUID(H),h(t.target).attr("id",e)),t.target="#"+e),u.typeCheckConfig(H,t,ue),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])this._activeTarget=null,this._clear();else for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||t<this._offsets[i+1])&&this._activate(this._targets[i])},n._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),t=h([].slice.call(document.querySelectorAll(t.join(","))));(t.hasClass("dropdown-item")?(t.closest(".dropdown").find(".dropdown-toggle").addClass(fe),t):(t.addClass(fe),t.parents(ge).prev(_e+", "+me).addClass(fe),t.parents(ge).prev(".nav-item").children(_e))).addClass(fe),h(this._scrollElement).trigger(de.ACTIVATE,{relatedTarget:e})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(fe)}
123).forEach(function(t){return t.classList.remove(fe)})},Ee._jQueryInterface=function(e){return this.each(function(){var t=h(this).data(ae);if(t||(t=new Ee(this,"object"==typeof e&&e),h(this).data(ae,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},e(Ee,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return he}}]),Ee);function Ee(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+_e+","+this._config.target+" "+me+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,h(this._scrollElement).on(de.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}h(window).on(de.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),e=t.length;e--;){var n=h(t[e]);ve._jQueryInterface.call(n,n.data())}}),h.fn[H]=ve._jQueryInterface,h.fn[H].Constructor=ve,h.fn[H].noConflict=function(){return h.fn[H]=ce,ve._jQueryInterface};var ye="bs.tab",l="."+ye,Ce=h.fn.tab,Te={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,CLICK_DATA_API:"click"+l+".data-api"},Se="active",be=".active",Ie="> li > .active",De=((a=we.prototype).show=function(){var t,e,n,i,o,s,r=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&h(this._element).hasClass(Se)||h(this._element).hasClass("disabled")||(e=h(this._element).closest(".nav, .list-group")[0],n=u.getSelectorFromElement(this._element),e&&(o="UL"===e.nodeName||"OL"===e.nodeName?Ie:be,i=(i=h.makeArray(h(e).find(o)))[i.length-1]),o=h.Event(Te.HIDE,{relatedTarget:this._element}),s=h.Event(Te.SHOW,{relatedTarget:i}),i&&h(i).trigger(o),h(this._element).trigger(s),s.isDefaultPrevented())||o.isDefaultPrevented()||(n&&(t=document.querySelector(n)),this._activate(this._element,e),s=function(){var t=h.Event(Te.HIDDEN,{relatedTarget:r._element}),e=h.Event(Te.SHOWN,{relatedTarget:i});h(i).trigger(t),h(r._element).trigger(e)},t?this._activate(t,t.parentNode,s):s())},a.dispose=function(){h.removeData(this._element,ye),this._element=null},a._activate=function(t,e,n){function i(){return o._transitionComplete(t,s,n)}var o=this,s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?h(e).children(be):h(e).find(Ie))[0],e=n&&s&&h(s).hasClass("fade");s&&e?(e=u.getTransitionDurationFromElement(s),h(s).removeClass("show").one(u.TRANSITION_END,i).emulateTransitionEnd(e)):i()},a._transitionComplete=function(t,e,n){var i;e&&(h(e).removeClass(Se),(i=h(e.parentNode).find("> .dropdown-menu .active")[0])&&h(i).removeClass(Se),"tab"===e.getAttribute("role"))&&e.setAttribute("aria-selected",!1),h(t).addClass(Se),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),u.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&h(t.parentNode).hasClass("dropdown-menu")&&((i=h(t).closest(".dropdown")[0])&&(e=[].slice.call(i.querySelectorAll(".dropdown-toggle")),h(e).addClass(Se)),t.setAttribute("aria-expanded",!0)),n&&n()},we._jQueryInterface=function(n){return this.each(function(){var t=h(this),e=t.data(ye);if(e||(e=new we(this),t.data(ye,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},e(we,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),we);function we(t){this._element=t}h(document).on(Te.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),De._jQueryInterface.call(h(this),"show")}),h.fn.tab=De._jQueryInterface,h.fn.tab.Constructor=De,h.fn.tab.noConflict=function(){return h.fn.tab=Ce,De._jQueryInterface};var Ae="toast",Ne="bs.toast",n="."+Ne,Oe=h.fn[Ae],ke={CLICK_DISMISS:"click.dismiss"+n,HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n},Pe="show",Le="showing",je={animation:"boolean",autohide:"boolean",delay:"number"},He={animation:!0,autohide:!0,delay:500},Re=((l=xe.prototype).show=function(){function t(){n._element.classList.remove(Le),n._element.classList.add(Pe),h(n._element).trigger(ke.SHOWN),n._config.autohide&&n.hide()}var e,n=this;h(this._element).trigger(ke.SHOW),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove("hide"),this._element.classList.add(Le),this._config.animation?(e=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(e)):t()},l.hide=function(t){var e=this;this._element.classList.contains(Pe)&&(h(this._element).trigger(ke.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},l.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Pe)&&this._element.classList.remove(Pe),h(this._element).off(ke.CLICK_DISMISS),h.removeData(this._element,Ne),this._element=null,this._config=null},l._getConfig=function(t){return t=s({},He,h(this._element).data(),"object"==typeof t&&t?t:{}),u.typeCheckConfig(Ae,t,this.constructor.DefaultType),t},l._setListeners=function(){var t=this;h(this._element).on(ke.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return t.hide(!0)})},l._close=function(){function t(){n._element.classList.add("hide"),h(n._element).trigger(ke.HIDDEN)}var e,n=this;this._element.classList.remove(Pe),this._config.animation?(e=u.getTransitionDurationFromElement(this._element),h(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(e)):t()},xe._jQueryInterface=function(n){return this.each(function(){var t=h(this),e=t.data(Ne);if(e||(e=new xe(this,"object"==typeof n&&n),t.data(Ne,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method n
123amed "'+n+'"');e[n](this)}})},e(xe,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return je}},{key:"Default",get:function(){return He}}]),xe);function xe(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}if(h.fn[Ae]=Re._jQueryInterface,h.fn[Ae].Constructor=Re,h.fn[Ae].noConflict=function(){return h.fn[Ae]=Oe,Re._jQueryInterface},void 0===h)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");a=h.fn.jquery.split(" ")[0].split(".");if(a[0]<2&&a[1]<9||1===a[0]&&9===a[1]&&a[2]<1||4<=a[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");t.Util=u,t.Alert=i,t.Button=Y,t.Carousel=_,t.Collapse=ut,t.Dropdown=I,t.Modal=Nt,t.Popover=se,t.Scrollspy=ve,t.Tab=De,t.Toast=Re,t.Tooltip=L,Object.defineProperty(t,"__esModule",{value:!0})});
vendor: 19,187 bytes, lines 124-128
124/*
125 Copyright (C) Federico Zivolo 2017
126 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
127 */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=getComputedStyle(e,null);return t?o[t]:o}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll)/.test(r+s+p)?e:n(o(e))}function r(e){var o=e&&e.offsetParent,i=o&&o.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TD','TABLE'].indexOf(o.nodeName)&&'static'===t(o,'position')?r(o):o:e?e.ownerDocument.documentElement:document.documentElement}function p(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||r(e.firstElementChild)===e)}function s(e){return null===e.parentNode?e:s(e.parentNode)}function d(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=o?e:t,n=o?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(n,0);var l=a.commonAncestorContainer;if(e!==l&&t!==l||i.contains(n))return p(l)?l:r(l);var f=s(e);return f.host?d(f.host,t):d(e,s(t).host)}function a(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',o='top'===t?'scrollTop':'scrollLeft',i=e.nodeName;if('BODY'===i||'HTML'===i){var n=e.ownerDocument.documentElement,r=e.ownerDocument.scrollingElement||n;return r[o]}return e[o]}function l(e,t){var o=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=a(t,'top'),n=a(t,'left'),r=o?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=n*r,e.right+=n*r,e}function f(e,t){var o='x'===t?'Left':'Top',i='Left'==o?'Right':'Bottom';return parseFloat(e['border'+o+'Width'],10)+parseFloat(e['border'+i+'Width'],10)}function m(e,t,o,i){return J(t['offset'+e],t['scroll'+e],o['client'+e],o['offset'+e],o['scroll'+e],ie()?o['offset'+e]+i['margin'+('Height'===e?'Top':'Left')]+i['margin'+('Height'===e?'Bottom':'Right')]:0)}function h(){var e=document.body,t=document.documentElement,o=ie()&&getComputedStyle(t);return{height:m('Height',e,t,o),width:m('Width',e,t,o)}}function c(e){return se({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var o={};if(ie())try{o=e.getBoundingClientRect();var i=a(e,'top'),n=a(e,'left');o.top+=i,o.left+=n,o.bottom+=i,o.right+=n}catch(e){}else o=e.getBoundingClientRect();var r={left:o.left,top:o.top,width:o.right-o.left,height:o.bottom-o.top},p='HTML'===e.nodeName?h():{},s=p.width||e.clientWidth||r.right-r.left,d=p.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-s,m=e.offsetHeight-d;if(l||m){var g=t(e);l-=f(g,'x'),m-=f(g,'y'),r.width-=l,r.height-=m}return c(r)}function u(e,o){var i=ie(),r='HTML'===o.nodeName,p=g(e),s=g(o),d=n(e),a=t(o),f=parseFloat(a.borderTopWidth,10),m=parseFloat(a.borderLeftWidth,10),h=c({top:p.top-s.top-f,left:p.left-s.left-m,width:p.width,height:p.height});if(h.marginTop=0,h.marginLeft=0,!i&&r){var u=parseFloat(a.marginTop,10),b=parseFloat(a.marginLeft,10);h.top-=f-u,h.bottom-=f-u,h.left-=m-b,h.right-=m-b,h.marginTop=u,h.marginLeft=b}return(i?o.contains(d):o===d&&'BODY'!==d.nodeName)&&(h=l(h,o)),h}function b(e){var t=e.ownerDocument.documentElement,o=u(e,t),i=J(t.clientWidth,window.innerWidth||0),n=J(t.clientHeight,window.innerHeight||0),r=a(t),p=a(t,'left'),s={top:r-o.top+o.marginTop,left:p-o.left+o.marginLeft,width:i,height:n};return c(s)}function w(e){var i=e.nodeName;return'BODY'===i||'HTML'===i?!1:'fixed'===t(e,'position')||w(o(e))}function y(e,t,i,r){var p={top:0,left:0},s=d(e,t);if('viewport'===r)p=b(s);else{var a;'scrollParent'===r?(a=n(o(t)),'BODY'===a.nodeName&&(a=e.ownerDocument.documentElement)):'window'===r?a=e.ownerDocument.documentElement:a=r;var l=u(a,s);if('HTML'===a.nodeName&&!w(s)){var f=h(),m=f.height,c=f.width;p.top+=l.top-l.marginTop,p.bottom=m+l.top,p.left+=l.left-l.marginLeft,p.right=c+l.left}else p=l}return p.left+=i,p.top+=i,p.right-=i,p.bottom-=i,p}function E(e){var t=e.width,o=e.height;return t*o}function v(e,t,o,i,n){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf('auto'))return e;var p=y(o,i,r,n),s={top:{width:p.width,height:t.top-p.top},right:{width:p.right-t.right,height:p.height},bottom:{width:p.width,height:p.bottom-t.bottom},left:{width:t.left-p.left,height:p.height}},d=Object.keys(s).map(function(e){return se({key:e},s[e],{area:E(s[e])})}).sort(function(e,t){return t.area-e.area}),a=d.filter(function(e){var t=e.width,i=e.height;return t>=o.clientWidth&&i>=o.clientHeight}),l=0<a.length?a[0].key:d[0].key,f=e.split('-')[1];return l+(f?'-'+f:'')}function O(e,t,o){var i=d(t,o);return u(o,i)}function L(e){var t=getComputedStyle(e),o=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight),n={width:e.offsetWidth+i,height:e.offsetHeight+o};return n}function x(e){var t={left:'right',right:'left',bottom:'top',top:'bottom'};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function S(e,t,o){o=o.split('-')[0];var i=L(e),n={width:i.width,height:i.height},r=-1!==['right','left'].indexOf(o),p=r?'top':'left',s=r?'left':'top',d=r?'height':'width',a=r?'width':'height';return n[p]=t[p]+t[d]/2-i[d]/2,n[s]=o===s?t[s]-i[a]:t[x(s)],n}function T(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function D(e,t,o){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===o});var i=T(e,function(e){return e[t]===o});return e.indexOf(i)}function C(t,o,i){var n=void 0===i?t:t.slice(0,D(t,'name',i));return n.forEach(function(t){t['function']&&console.warn('`modifier.function` is deprecated, use `modifier.fn`!');var i=t['function']||t.fn;t.enabled&&e(i)&&(o.offsets.popper=c(o.offsets.popper),o.offsets.reference=c(o.offsets.reference),o=i(o,t))}),o}function N(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=O(this.state,this.popper,this.reference),e.placement=v(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=S(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position='absolute',e=C(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function k(e,t){return e.some(function(e){var o=e.name,i=e.enabled;return i&&o===t})}function W(e){for(var t=[!1,'ms','Webkit','Moz','O'],o=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length-1;n++){var i=t[n],r=i?''+i+o:e;if('undefined'!=typeof document.body.style[r])return r}return null}function P(){return this.state.isDestroyed=!0,k(this.modifiers,'applyStyle')&&(this.popper.removeAttribute('x-placement'),this.popper.style.left='',this.popper.style.position='',this.popper.style.top='',this.popper.style[W('transform')]=''),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function B(e){var t=e.ownerDocument;return t?t.defaultView:window}function H(e,t,o,i){var r='BODY'===e.nodeName,p=r?e.ownerDocument.defaultView:e;p.addEventListener(t,o,{passive:!0}),r||H(n(p.parentNode),t,o,i),i.push(p)}function A(e,t,o,i){o.updateBound=i,B(e).addEventListener('resize',o.updateBound,{passive:!0});var r=n(e);return H(r,'scroll',o.updateBound,o.scrollParents),o.scrollElement=r,o.eventsEnabled=!0,o}function I(){this.state.eventsEnabled||(this.state=A(this.reference,this.options,this.state,this.scheduleUpdate))}function M(e,t){return B(e).removeEventListener('resize',t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener('scroll',t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function R(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=M(this.reference,this.state))}function U(e){return''!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Y(e,t){Object.keys(t).forEach(function(o){var i='';-1!==['width','height','top','right','bottom','left'].indexOf(o)&&U(t[o])&&(i='px'),e.style[o]=t[o]+i})}function j(e,t){Object.keys(t).forEach(function(o){var i=t[o];!1===i?e.removeAttribute(o):e.setAttribute(o,t[o])})}function F(e,t,o){var i=T(e,function(e){var o=e.name;return o===t}),n=!!i&&e.some(function(e){return e.name===o&&e.enabled&&e.order<i.order});if(!n){var r='`'+t+'`';console.warn('`'+o+'`'+' modifier is required by '+r+' modifier in order to work, be sure to include it before '+r+'!')}return n}function K(e){return'end'===e?'start':'start'===e?'end':e}function q(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=ae.indexOf(e),i=ae.slice(o+1).concat(ae.slice(0,o));return t?i.reverse():i}function V(e,t,o,i){var n=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+n[1],p=n[2];if(!r)return e;if(0===p.indexOf('%')){var s;switch(p){case'%p':s=o;break;case'%':case'%r':default:s=i;}var d=c(s);return d[t]/100*r}if('vh'===p||'vw'===p){var a;return a='vh'===p?J(document.documentElement.clientHeight,window.innerHeight||0):J(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function z(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(T(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p[s].split(d)[1]].concat(p.slice(s+1))];return a=a.map(function(e,i){var n=(1===i?!r:r)?'height':'width',p=!1;return e.reduce(function(e,t){return''===e[e.length-1]&&-1!==['+','-'].indexOf(t)?(e[e.length-1]=t,p=!0,e):p?(e[e.length-1]+=t,p=!1,e):e.concat(t)},[]).map(function(e){return V(e,n,t,o)})}),a.forEach(function(e,t){e.forEach(function(o,i){U(o)&&(n[t]+=o*('-'===e[i-1]?-1:1))})}),n}function G(e,t){var o,i=t.offset,n=e.placement,r=e.offsets,p=r.popper,s=r.reference,d=n.split('-')[0];return o=U(+i)?[+i,0]:z(i,p,s,d),'left'===d?(p.top+=o[0],p.left-=o[1]):'right'===d?(p.top+=o[0],p.left+=o[1]):'top'===d?(p.left+=o[0],p.top-=o[1]):'bottom'===d&&(p.left+=o[0],p.top+=o[1]),e.popper=p,e}for(var _=Math.min,X=Math.floor,J=Math.max,Q='undefined'!=typeof window&&'undefined'!=typeof document,Z=['Edge','Trident','Firefox'],$=0,ee=0;ee<Z.length;ee+=1)if(Q&&0<=navigator.userAgent.indexOf(Z[ee])){$=1;break}var i,te=Q&&window.Promise,oe=te?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},$))}},ie=function(){return void 0==i&&(i=-1!==navigator.appVersion.indexOf('MSIE 10')),i},ne=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')},re=function(){function e(e,t){for(var o,n=0;n<t.length;n++)o=t[n],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}return function(t,o,i){return o&&e(t.prototype,o),i&&e(t,i),t}}(),pe=function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},se=Object.assign||function(e){for(var t,o=1;o<arguments.length;o++)for(var i in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},de=['auto-start','auto','auto-end','top-start','top','top-end','right-start','right','right-end','bottom-end','bottom','bottom-start','left-end','left','left-start'],ae=de.slice(3),le={FLIP:'flip',CLOCKWISE:'clockwise',COUNTERCLOCKWISE:'counterclockwise'},fe=function(){function t(o,i){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};ne(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=oe(this.update.bind(this)),this.options=se({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=o&&o.jquery?o[0]:o,this.popper=i&&i.jquery?i[0]:i,this.options.modifiers={},Object.keys(se({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){n.options.modifiers[e]=se({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return se({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(t){t.enabled&&e(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();var p=this.options.eventsEnabled;p&&this.enableEventListeners(),this.state.eventsEnabled=p}return re(t,[{key:'update',value:function(){return N.call(this)}},{key:'destroy',value:function(){return P.call(this)}},{key:'enableEventListeners',value:function(){return I.call(this)}},{key:'disableEventListeners',value:function(){return R.call(this)}}]),t}();return fe.Utils=('undefined'==typeof window?global:window).PopperUtils,fe.placements=de,fe.Defaults={placement:'bottom',eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,o=t.split('-')[0],i=t.split('-')[1];if(i){var n=e.offsets,r=n.reference,p=n.popper,s=-1!==['bottom','top'].indexOf(o),d=s?'left':'top',a=s?'width':'height',l={start:pe({},d,r[d]),end:pe({},d,r[d]+r[a]-p[a])};e.offsets.popper=se({},p,l[i])}return e}},offset:{order:200,enabled:!0,fn:G,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var o=t.boundariesElement||r(e.instance.popper);e.instance.reference===o&&(o=r(o));var i=y(e.instance.popper,e.instance.reference,t.padding,o);t.boundaries=i;var n=t.priority,p=e.offsets.popper,s={primary:function(e){var o=p[e];return p[e]<i[e]&&!t.escapeWithReference&&(o=J(p[e],i[e])),pe({},e,o)},secondary:function(e){var o='right'===e?'left':'top',n=p[o];return p[e]>i[e]&&!t.escapeWithReference&&(n=_(p[o],i[e]-('right'===e?p.width:p.height))),pe({},o,n)}};return n.forEach(function(e){var t=-1===['left','top'].indexOf(e)?'secondary':'primary';p=se({},p,s[t](e))}),e.offsets.popper=p,e},priority:['left','right','top','bottom'],padding:5,boundariesElement:'scrollParent'},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,o=t.popper,i=t.reference,n=e.placement.split('-')[0],r=X,p=-1!==['top','bottom'].indexOf(n),s=p?'right':'bottom',d=p?'left':'top',a=p?'width':'height';return o[s]<r(i[d])&&(e.offsets.popper[d]=r(i[d])-o[a]),o[d]>r(i[s])&&(e.offsets.popper[d]=r(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,o){var i;if(!F(e.instance.modifiers,'arrow','keepTogether'))return e;var n=o.element;if('string'==typeof n){if(n=e.instance.popper.querySelector(n),!n)return e;}else if(!e.instance.popper.contains(n))return console.warn('WARNING: `arrow.element` must be child of its popper element!'),e;var r=e.placement.split('-')[0],p=e.offsets,s=p.popper,d=p.reference,a=-1!==['left','right'].indexOf(r),l=a?'height':'width',f=a?'Top':'Left',m=f.toLowerCase(),h=a?'left':'top',g=a?'bottom':'right',u=L(n)[l];d[g]-u<s[m]&&(e.offsets.popper[m]-=s[m]-(d[g]-u)),d[m]+u>s[g]&&(e.offsets.popper[m]+=d[m]+u-s[g]),e.offsets.popper=c(e.offsets.popper);var b=d[m]+d[l]/2-u/2,w=t(e.instance.popper),y=parseFloat(w['margin'+f],10),E=parseFloat(w['border'+f+'Width'],10),v=b-e.offsets.popper[m]-y-E;return v=J(_(s[l]-u,v),0),e.arrowElement=n,e.offsets.arrow=(i={},pe(i,m,Math.round(v)),pe(i,h,''),i),e},element:'[x-arrow]'},flip:{order:600,enabled:!0,fn:function(e,t){if(k(e.instance.modifiers,'inner'))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var o=y(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split('-')[0],n=x(i),r=e.placement.split('-')[1]||'',p=[];switch(t.behavior){case le.FLIP:p=[i,n];break;case le.CLOCKWISE:p=q(i);break;case le.COUNTERCLOCKWISE:p=q(i,!0);break;default:p=t.behavior;}return p.forEach(function(s,d){if(i!==s||p.length===d+1)return e;i=e.placement.split('-')[0],n=x(i);var a=e.offsets.popper,l=e.offsets.reference,f=X,m='left'===i&&f(a.right)>f(l.left)||'right'===i&&f(a.left)<f(l.right)||'top'===i&&f(a.bottom)>f(l.top)||'bottom'===i&&f(a.top)<f(l.bottom),h=f(a.left)<f(o.left),c=f(a.right)>f(o.right),g=f(a.top)<f(o.top),u=f(a.bottom)>f(o.bottom),b='left'===i&&h||'right'===i&&c||'top'===i&&g||'bottom'===i&&u,w=-1!==['top','bottom'].indexOf(i),y=!!t.flipVariations&&(w&&'start'===r&&h||w&&'end'===r&&c||!w&&'start'===r&&g||!w&&'end'===r&&u);(m||b||y)&&(e.flipped=!0,(m||b)&&(i=p[d+1]),y&&(r=K(r)),e.placement=i+(r?'-'+r:''),e.offsets.popper=se({},e.offsets.popper,S(e.instance.popper,e.offsets.reference,e.placement)),e=C(e.instance.modifiers,e,'flip'))}),e},behavior:'flip',padding:5,boundariesElement:'viewport'},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,o=t.split('-')[0],i=e.offsets,n=i.popper,r=i.reference,p=-1!==['left','right'].indexOf(o),s=-1===['top','left'].indexOf(o);return n[p?'left':'top']=r[o]-(s?n[p?'width':'height']:0),e.placement=x(t),e.offsets.popper=c(n),e}},hide:{order:800,enabled:!0,fn:function(e){if(!F(e.instance.modifiers,'hide','preventOverflow'))return e;var t=e.offsets.reference,o=T(e.instance.modifiers,function(e){return'preventOverflow'===e.name}).boundaries;if(t.bottom<o.top||t.left>o.right||t.top>o.bottom||t.right<o.left){if(!0===e.hide)return e;e.hide=!0,e.attributes['x-out-of-boundaries']=''}else{if(!1===e.hide)return e;e.hide=!1,e.attributes['x-out-of-boundaries']=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var o=t.x,i=t.y,n=e.offsets.popper,p=T(e.instance.modifiers,function(e){return'applyStyle'===e.name}).gpuAcceleration;void 0!==p&&console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');var s,d,a=void 0===p?t.gpuAcceleration:p,l=r(e.instance.popper),f=g(l),m={position:n.position},h={left:X(n.left),top:X(n.top),bottom:X(n.bottom),right:X(n.right)},c='bottom'===o?'top':'bottom',u='right'===i?'left':'right',b=W('transform');if(d='bottom'==c?-f.height+h.bottom:h.top,s='right'==u?-f.width+h.right:h.left,a&&b)m[b]='translate3d('+s+'px, '+d+'px, 0)',m[c]=0,m[u]=0,m.willChange='transform';else{var w='bottom'==c?-1:1,y='right'==u?-1:1;m[c]=d*w,m[u]=s*y,m.willChange=c+', '+u}var E={"x-placement":e.placement};return e.attributes=se({},E,e.attributes),e.styles=se({},m,e.styles),e.arrowStyles=se({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:'bottom',y:'right'},applyStyle:{order:900,enabled:!0,fn:function(e){return Y(e.instance.popper,e.styles),j(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Y(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,o,i,n){var r=O(n,t,e),p=v(o.placement,r,t,e,o.modifiers.flip.boundariesElement,o.modifiers.flip.padding);return t.setAttribute('x-placement',p),Y(t,{position:'absolute'}),o},gpuAcceleration:void 0}}},fe});
128//# sourceMappingURL=popper.min.js.map
128
129/*!
130  * Bootstrap v4.3.1 (https://getbootstrap.com/)
131  * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
132  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
133  */
134!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t=t||self).bootstrap={},t.jQuery,t.Popper)}(this,function(t,g,u){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function l(o){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},e=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.forEach(function(t){var e,n,i;e=o,i=r[n=t],n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i})}return o}g=g&&g.hasOwnProperty("default")?g.default:g,u=u&&u.hasOwnProperty("default")?u.default:u;var e="transitionend";function n(t){var e=this,n=!1;return g(this).one(_.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||_.triggerTransitionEnd(e)},t),this}var _={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=g(t).css("transition-duration"),n=g(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(n);return i||o?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){g(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],s=r&&_.isElement(r)?"element":(a=r,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?_.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null}};g.fn.emulateTransitionEnd=n,g.event.special[_.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(g(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var o="alert",r="bs.alert",a="."+r,c=g.fn[o],h={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+".data-api"},f="alert",d="fade",m="show",p=function(){function i(t){this._element=t}var t=i.prototype;return t.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){g.removeData(this._element,r),this._element=null},t._getRootElement=function(t){var e=_.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=g(t).closest("."+f)[0]),n},t._triggerCloseEvent=function(t){var e=g.Event(h.CLOSE);return g(t).trigger(e),e},t._removeElement=function(e){var n=this;if(g(e).removeClass(m),g(e).hasClass(d)){var t=_.getTransitionDurationFromElement(e);g(e).one(_.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(t)}else this._destroyElement(e)},t._destroyElement=function(t){g(t).detach().trigger(h.CLOSED).remove()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(r);e||(e=new i(this),t.data(r,e)),"close"===n&&e[n](this)})},i._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();
134g(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),g.fn[o]=p._jQueryInterface,g.fn[o].Constructor=p,g.fn[o].noConflict=function(){return g.fn[o]=c,p._jQueryInterface};var v="button",y="bs.button",E="."+y,C=".data-api",T=g.fn[v],S="active",b="btn",I="focus",D='[data-toggle^="button"]',w='[data-toggle="buttons"]',A='input:not([type="hidden"])',N=".active",O=".btn",k={CLICK_DATA_API:"click"+E+C,FOCUS_BLUR_DATA_API:"focus"+E+C+" blur"+E+C},P=function(){function n(t){this._element=t}var t=n.prototype;return t.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(w)[0];if(n){var i=this._element.querySelector(A);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(S))t=!1;else{var o=n.querySelector(N);o&&g(o).removeClass(S)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(S),g(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(S)),t&&g(this._element).toggleClass(S)},t.dispose=function(){g.removeData(this._element,y),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(y);t||(t=new n(this),g(this).data(y,t)),"toggle"===e&&t[e]()})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),n}();g(document).on(k.CLICK_DATA_API,D,function(t){t.preventDefault();var e=t.target;g(e).hasClass(b)||(e=g(e).closest(O)),P._jQueryInterface.call(g(e),"toggle")}).on(k.FOCUS_BLUR_DATA_API,D,function(t){var e=g(t.target).closest(O)[0];g(e).toggleClass(I,/^focus(in)?$/.test(t.type))}),g.fn[v]=P._jQueryInterface,g.fn[v].Constructor=P,g.fn[v].noConflict=function(){return g.fn[v]=T,P._jQueryInterface};var L="carousel",j="bs.carousel",H="."+j,R=".data-api",x=g.fn[L],F={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},U={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},W="next",q="prev",M="left",K="right",Q={SLIDE:"slide"+H,SLID:"slid"+H,KEYDOWN:"keydown"+H,MOUSEENTER:"mouseenter"+H,MOUSELEAVE:"mouseleave"+H,TOUCHSTART:"touchstart"+H,TOUCHMOVE:"touchmove"+H,TOUCHEND:"touchend"+H,POINTERDOWN:"pointerdown"+H,POINTERUP:"pointerup"+H,DRAG_START:"dragstart"+H,LOAD_DATA_API:"load"+H+R,CLICK_DATA_API:"click"+H+R},B="carousel",V="active",Y="slide",z="carousel-item-right",X="carousel-item-left",$="carousel-item-next",G="carousel-item-prev",J="pointer-event",Z=".active",tt=".active.carousel-item",et=".carousel-item",nt=".carousel-item img",it=".carousel-item-next, .carousel-item-prev",ot=".carousel-indicators",rt="[data-slide], [data-slide-to]",st='[data-ride="carousel"]',at={TOUCH:"touch",PEN:"pen"},lt=function(){function r(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(ot),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=r.prototype;return t.next=function(){this._isSliding||this._slide(W)},t.nextWhenVisible=function(){!document.hidden&&g(this._element).is(":visible")&&"hidden"!==g(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(q)},t.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(it)&&(_.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=this._element.querySelector(tt);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)g(this._element).one(Q.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=n<t?W:q;this._slide(i,this._items[t])}},t.dispose=function(){g(this._element).off(H),g.removeData(this._element,j),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=l({},F,t),_.typeCheckConfig(L,t,U),t},t._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;0<e&&this.prev(),e<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&g(this._element).on(Q.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&g(this._element).on(Q.MOUSEENTER,function(t){return e.pause(t)}).on(Q.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var n=this;if(this._touchSupported){var e=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]?n.touchStartX=t.originalEvent.clientX:n._pointerEvent||(n.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){n._pointerEvent&&at[t.originalEvent.pointerType.toUpperCase()]&&(n.touchDeltaX=t.originalEvent.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))};g(this._element.querySelectorAll(nt)).on(Q.DRAG_START,function(t){return t.preventDefault()}),this._pointerEvent?(g(this._element).on(Q.POINTERDOWN,function(t){return e(t)}),g(this._element).on(Q.POINTERUP,function(t){return i(t)}),this._element.classList.add(J)):(g(this._element).on(Q.TOUCHSTART,function(t){return e(t)}),g(this._element).on(Q.TOUCHMOVE,function(t){var e;(e=t).originalEvent.touches&&1<e.originalEvent.touches.length?n.touchDeltaX=0:n.touchDeltaX=e.originalEvent.touches[0].clientX-n.touchStartX}),g(this._element).on(Q.TOUCHEND,function(t){return i(t)}))}},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(et)):[],this._items.indexOf(t)},t._getItemByDirection=function(t,e){var n=t===W,i=t===q,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+(t===q?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},t._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(tt)),o=g.Event(Q.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return g(this._element).trigger(o),o},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=[].slice.call(this._indicatorsElement.querySelectorAll(Z));g(e).removeClass(V);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&g(n).addClass(V)}},t._slide=function(t,e){var n,i,o,r=this,s=this._element.querySelector(tt),a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(o=t===W?(n=X,i=$,M):(n=z,i=G,K),l&&g(l).hasClass(V))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var u=g.Event(Q.SLID,{relatedTarget:l,direction:o,from:a,to:c});if(g(this._element).hasClass(Y)){g(l).addClass(i),_.reflow(l),g(s).addClass(n),g(l).addClass(n);var f=parseInt(l.getAttribute("data-interval"),10);this._config.interval=f?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,f):this._config.defaultInterval||this._config.interval;var d=_.getTransitionDurationFromElement(s);g(s).one(_.TRANSITION_END,function(){g(l).removeClass(n+" "+i).addClass(V),g(s).removeClass(V+" "+i+" "+n),r._isSliding=!1,setTimeout(function(){return g(r._element).trigger(u)},0)}).emulateTransitionEnd(d)}else g(s).removeClass(V),g(l).addClass(V),this._isSliding=!1,g(this._element).trigger(u);h&&this.cycle()}},r._jQueryInterface=function(i){return this.each(function(){var t=g(this).data(j),e=l({},F,g(this).data());"object"==typeof i&&(e=l({},e,i));var n="string"==typeof i?i:e.slide;if(t||(t=new r(this,e),g(this).data(j,t)),"number"==typeof i)t.to(i);else if("string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
134amed "'+n+'"');t[n]()}else e.interval&&e.ride&&(t.pause(),t.cycle())})},r._dataApiClickHandler=function(t){var e=_.getSelectorFromElement(this);if(e){var n=g(e)[0];if(n&&g(n).hasClass(B)){var i=l({},g(n).data(),g(this).data()),o=this.getAttribute("data-slide-to");o&&(i.interval=!1),r._jQueryInterface.call(g(n),i),o&&g(n).data(j).to(o),t.preventDefault()}}},s(r,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return F}}]),r}();g(document).on(Q.CLICK_DATA_API,rt,lt._dataApiClickHandler),g(window).on(Q.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(st)),e=0,n=t.length;e<n;e++){var i=g(t[e]);lt._jQueryInterface.call(i,i.data())}}),g.fn[L]=lt._jQueryInterface,g.fn[L].Constructor=lt,g.fn[L].noConflict=function(){return g.fn[L]=x,lt._jQueryInterface};var ct="collapse",ht="bs.collapse",ut="."+ht,ft=g.fn[ct],dt={toggle:!0,parent:""},gt={toggle:"boolean",parent:"(string|element)"},_t={SHOW:"show"+ut,SHOWN:"shown"+ut,HIDE:"hide"+ut,HIDDEN:"hidden"+ut,CLICK_DATA_API:"click"+ut+".data-api"},mt="show",pt="collapse",vt="collapsing",yt="collapsed",Et="width",Ct="height",Tt=".show, .collapsing",St='[data-toggle="collapse"]',bt=function(){function a(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(St)),i=0,o=n.length;i<o;i++){var r=n[i],s=_.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=a.prototype;return t.toggle=function(){g(this._element).hasClass(mt)?this.hide():this.show()},t.show=function(){var t,e,n=this;if(!this._isTransitioning&&!g(this._element).hasClass(mt)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(Tt)).filter(function(t){return"string"==typeof n._config.parent?t.getAttribute("data-parent")===n._config.parent:t.classList.contains(pt)})).length&&(t=null),!(t&&(e=g(t).not(this._selector).data(ht))&&e._isTransitioning))){var i=g.Event(_t.SHOW);if(g(this._element).trigger(i),!i.isDefaultPrevented()){t&&(a._jQueryInterface.call(g(t).not(this._selector),"hide"),e||g(t).data(ht,null));var o=this._getDimension();g(this._element).removeClass(pt).addClass(vt),this._element.style[o]=0,this._triggerArray.length&&g(this._triggerArray).removeClass(yt).attr("aria-expanded",!0),this.setTransitioning(!0);var r="scroll"+(o[0].toUpperCase()+o.slice(1)),s=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){g(n._element).removeClass(vt).addClass(pt).addClass(mt),n._element.style[o]="",n.setTransitioning(!1),g(n._element).trigger(_t.SHOWN)}).emulateTransitionEnd(s),this._element.style[o]=this._element[r]+"px"}}},t.hide=function(){var t=this;if(!this._isTransitioning&&g(this._element).hasClass(mt)){var e=g.Event(_t.HIDE);if(g(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",_.reflow(this._element),g(this._element).addClass(vt).removeClass(pt).removeClass(mt);var i=this._triggerArray.length;if(0<i)for(var o=0;o<i;o++){var r=this._triggerArray[o],s=_.getSelectorFromElement(r);if(null!==s)g([].slice.call(document.querySelectorAll(s))).hasClass(mt)||g(r).addClass(yt).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[n]="";var a=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(){t.setTransitioning(!1),g(t._element).removeClass(vt).addClass(pt).trigger(_t.HIDDEN)}).emulateTransitionEnd(a)}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){g.removeData(this._element,ht),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=l({},dt,t)).toggle=Boolean(t.toggle),_.typeCheckConfig(ct,t,gt),t},t._getDimension=function(){return g(this._element).hasClass(Et)?Et:Ct},t._getParent=function(){var t,n=this;_.isElement(this._config.parent)?(t=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(t.querySelectorAll(e));return g(i).each(function(t,e){n._addAriaAndCollapsedClass(a._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){var n=g(t).hasClass(mt);e.length&&g(e).toggleClass(yt,!n).attr("aria-expanded",n)},a._getTargetFromElement=function(t){var e=_.getSelectorFromElement(t);return e?document.querySelector(e):null},a._jQueryInterface=function(i){return this.each(function(){var t=g(this),e=t.data(ht),n=l({},dt,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new a(this,n),t.data(ht,e)),"string"==typeof i){if("undefined"==typeof e[i])throw new TypeError('No method n
134amed "'+i+'"');e[i]()}})},s(a,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return dt}}]),a}();g(document).on(_t.CLICK_DATA_API,St,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=g(this),e=_.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(e));g(i).each(function(){var t=g(this),e=t.data(ht)?"toggle":n.data();bt._jQueryInterface.call(t,e)})}),g.fn[ct]=bt._jQueryInterface,g.fn[ct].Constructor=bt,g.fn[ct].noConflict=function(){return g.fn[ct]=ft,bt._jQueryInterface};var It="dropdown",Dt="bs.dropdown",wt="."+Dt,At=".data-api",Nt=g.fn[It],Ot=new RegExp("38|40|27"),kt={HIDE:"hide"+wt,HIDDEN:"hidden"+wt,SHOW:"show"+wt,SHOWN:"shown"+wt,CLICK:"click"+wt,CLICK_DATA_API:"click"+wt+At,KEYDOWN_DATA_API:"keydown"+wt+At,KEYUP_DATA_API:"keyup"+wt+At},Pt="disabled",Lt="show",jt="dropup",Ht="dropright",Rt="dropleft",xt="dropdown-menu-right",Ft="position-static",Ut='[data-toggle="dropdown"]',Wt=".dropdown form",qt=".dropdown-menu",Mt=".navbar-nav",Kt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Qt="top-start",Bt="top-end",Vt="bottom-start",Yt="bottom-end",zt="right-start",Xt="left-start",$t={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Gt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Jt=function(){function c(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=c.prototype;return t.toggle=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)){var t=c._getParentFromElement(this._element),e=g(this._menu).hasClass(Lt);if(c._clearMenus(),!e){var n={relatedTarget:this._element},i=g.Event(kt.SHOW,n);if(g(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof u)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o=this._element;"parent"===this._config.reference?o=t:_.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&g(t).addClass(Ft),this._popper=new u(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===g(t).closest(Mt).length&&g(document.body).children().on("mouseover",null,g.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),g(this._menu).toggleClass(Lt),g(t).toggleClass(Lt).trigger(g.Event(kt.SHOWN,n))}}}},t.show=function(){if(!(this._element.disabled||g(this._element).hasClass(Pt)||g(this._menu).hasClass(Lt))){var t={relatedTarget:this._element},e=g.Event(kt.SHOW,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.SHOWN,t)))}},t.hide=function(){if(!this._element.disabled&&!g(this._element).hasClass(Pt)&&g(this._menu).hasClass(Lt)){var t={relatedTarget:this._element},e=g.Event(kt.HIDE,t),n=c._getParentFromElement(this._element);g(n).trigger(e),e.isDefaultPrevented()||(g(this._menu).toggleClass(Lt),g(n).toggleClass(Lt).trigger(g.Event(kt.HIDDEN,t)))}},t.dispose=function(){g.removeData(this._element,Dt),g(this._element).off(wt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;g(this._element).on(kt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=l({},this.constructor.Default,g(this._element).data(),t),_.typeCheckConfig(It,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=c._getParentFromElement(this._element);t&&(this._menu=t.querySelector(qt))}return this._menu},t._getPlacement=function(){var t=g(this._element.parentNode),e=Vt;return t.hasClass(jt)?(e=Qt,g(this._menu).hasClass(xt)&&(e=Bt)):t.hasClass(Ht)?e=zt:t.hasClass(Rt)?e=Xt:g(this._menu).hasClass(xt)&&(e=Yt),e},t._detectNavbar=function(){return 0<g(this._element).closest(".
134navbar").length},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},c._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(Dt);if(t||(t=new c(this,"object"==typeof e?e:null),g(this).data(Dt,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},c._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(Ut)),n=0,i=e.length;n<i;n++){var o=c._getParentFromElement(e[n]),r=g(e[n]).data(Dt),s={relatedTarget:e[n]};if(t&&"click"===t.type&&(s.clickEvent=t),r){var a=r._menu;if(g(o).hasClass(Lt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&g.contains(o,t.target))){var l=g.Event(kt.HIDE,s);g(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),e[n].setAttribute("aria-expanded","false"),g(a).removeClass(Lt),g(o).removeClass(Lt).trigger(g.Event(kt.HIDDEN,s)))}}}},c._getParentFromElement=function(t){var e,n=_.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},c._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||g(t.target).closest(qt).length)):Ot.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!g(this).hasClass(Pt))){var e=c._getParentFromElement(this),n=g(e).hasClass(Lt);if(n&&(!n||27!==t.which&&32!==t.which)){var i=[].slice.call(e.querySelectorAll(Kt));if(0!==i.length){var o=i.indexOf(t.target);38===t.which&&0<o&&o--,40===t.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(27===t.which){var r=e.querySelector(Ut);g(r).trigger("focus")}g(this).trigger("click")}}},s(c,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return $t}},{key:"DefaultType",get:function(){return Gt}}]),c}();g(document).on(kt.KEYDOWN_DATA_API,Ut,Jt._dataApiKeydownHandler).on(kt.KEYDOWN_DATA_API,qt,Jt._dataApiKeydownHandler).on(kt.CLICK_DATA_API+" "+kt.KEYUP_DATA_API,Jt._clearMenus).on(kt.CLICK_DATA_API,Ut,function(t){t.preventDefault(),t.stopPropagation(),Jt._jQueryInterface.call(g(this),"toggle")}).on(kt.CLICK_DATA_API,Wt,function(t){t.stopPropagation()}),g.fn[It]=Jt._jQueryInterface,g.fn[It].Constructor=Jt,g.fn[It].noConflict=function(){return g.fn[It]=Nt,Jt._jQueryInterface};var Zt="modal",te="bs.modal",ee="."+te,ne=g.fn[Zt],ie={backdrop:!0,keyboard:!0,focus:!0,show:!0},oe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},re={HIDE:"hide"+ee,HIDDEN:"hidden"+ee,SHOW:"show"+ee,SHOWN:"shown"+ee,FOCUSIN:"focusin"+ee,RESIZE:"resize"+ee,CLICK_DISMISS:"click.dismiss"+ee,KEYDOWN_DISMISS:"keydown.dismiss"+ee,MOUSEUP_DISMISS:"mouseup.dismiss"+ee,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ee,CLICK_DATA_API:"click"+ee+".data-api"},se="modal-dialog-scrollable",ae="modal-scrollbar-measure",le="modal-backdrop",ce="modal-open",he="fade",ue="show",fe=".modal-dialog",de=".modal-body",ge='[data-toggle="modal"]',_e='[data-dismiss="modal"]',me=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pe=".sticky-top",ve=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(fe),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=o.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){g(this._element).hasClass(he)&&(this._isTransitioning=!0);var n=g.Event(re.SHOW,{relatedTarget:t});g(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g(this._element).on(re.CLICK_DISMISS,_e,function(t){return e.hide(t)}),g(this._dialog).on(re.MOUSEDOWN_DISMISS,function(){g(e._element).one(re.MOUSEUP_DISMISS,function(t){g(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=g.Event(re.HIDE);if(g(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var i=g(this._element).hasClass(he);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g(document).off(re.FOCUSIN),g(this._element).removeClass(ue),g(this._element).off(re.CLICK_DISMISS),g(this._dialog).off(re.MOUSEDOWN_DISMISS),i){var o=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(o)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return g(t).off(ee)}),g(document).off(re.FOCUSIN),g.removeData(this._element,te),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=l({},ie,t),_.typeCheckConfig(Zt,t,oe),t},t._showElement=function(t){var e=this,n=g(this._element).hasClass(he);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),g(this._dialog).hasClass(se)?this._dialog.querySelector(de).scrollTop=0:this._element.scrollTop=0,n&&_.reflow(this._element),g(this._element).addClass(ue),this._config.focus&&this._enforceFocus();
134var i=g.Event(re.SHOWN,{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,g(e._element).trigger(i)};if(n){var r=_.getTransitionDurationFromElement(this._dialog);g(this._dialog).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()},t._enforceFocus=function(){var e=this;g(document).off(re.FOCUSIN).on(re.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===g(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?g(this._element).on(re.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||g(this._element).off(re.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?g(window).on(re.RESIZE,function(t){return e.handleUpdate(t)}):g(window).off(re.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){g(document.body).removeClass(ce),t._resetAdjustments(),t._resetScrollbar(),g(t._element).trigger(re.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(g(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,n=g(this._element).hasClass(he)?he:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=le,n&&this._backdrop.classList.add(n),g(this._backdrop).appendTo(document.body),g(this._element).on(re.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&_.reflow(this._backdrop),g(this._backdrop).addClass(ue),!t)return;if(!n)return void t();var i=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){g(this._backdrop).removeClass(ue);var o=function(){e._removeBackdrop(),t&&t()};if(g(this._element).hasClass(he)){var r=_.getTransitionDurationFromElement(this._backdrop);g(this._backdrop).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var o=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(me)),e=[].slice.call(document.querySelectorAll(pe));g(t).each(function(t,e){var n=e.style.paddingRight,i=g(e).css("padding-right");g(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),g(e).each(function(t,e){var n=e.style.marginRight,i=g(e).css("margin-right");g(e).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")});var n=document.body.style.paddingRight,i=g(document.body).css("padding-right");g(document.body).data("padding-right",n).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}g(document.body).addClass(ce)},t._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(me));g(t).each(function(t,e){var n=g(e).data("padding-right");g(e).removeData("padding-right"),e.style.paddingRight=n||""});var e=[].slice.call(document.querySelectorAll(""+pe));g(e).each(function(t,e){var n=g(e).data("margin-right");"undefined"!=typeof n&&g(e).css("margin-right",n).removeData("margin-right")});var n=g(document.body).data("padding-right");g(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className=ae,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var t=g(this).data(te),e=l({},ie,g(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new o(this,e),g(this).data(te,t)),"string"==typeof n){if("undefined"==typeof t[n])throw new TypeError('No method n
134amed "'+n+'"');t[n](i)}else e.show&&t.show(i)})},s(o,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return ie}}]),o}();g(document).on(re.CLICK_DATA_API,ge,function(t){var e,n=this,i=_.getSelectorFromElement(this);i&&(e=document.querySelector(i));var o=g(e).data(te)?"toggle":l({},g(e).data(),g(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var r=g(e).one(re.SHOW,function(t){t.isDefaultPrevented()||r.one(re.HIDDEN,function(){g(n).is(":visible")&&n.focus()})});ve._jQueryInterface.call(g(e),o,this)}),g.fn[Zt]=ve._jQueryInterface,g.fn[Zt].Constructor=ve,g.fn[Zt].noConflict=function(){return g.fn[Zt]=ne,ve._jQueryInterface};var ye=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],Ee={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ce=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function Se(t,s,e){if(0===t.length)return t;if(e&&"function"==typeof e)return e(t);for(var n=(new window.DOMParser).parseFromString(t,"text/html"),a=Object.keys(s),l=[].slice.call(n.body.querySelectorAll("*")),i=function(t,e){var n=l[t],i=n.nodeName.toLowerCase();if(-1===a.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var o=[].slice.call(n.attributes),r=[].concat(s["*"]||[],s[i]||[]);o.forEach(function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===ye.indexOf(n)||Boolean(t.nodeValue.match(Ce)||t.nodeValue.match(Te));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,r=i.length;o<r;o++)if(n.match(i[o]))return!0;return!1})(t,r)||n.removeAttribute(t.nodeName)})},o=0,r=l.length;o<r;o++)i(o);return n.body.innerHTML}var be="tooltip",Ie="bs.tooltip",De="."+Ie,we=g.fn[be],Ae="bs-tooltip",Ne=new RegExp("(^|\\s)"+Ae+"\\S+","g"),Oe=["sanitize","whiteList","sanitizeFn"],ke={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object"},Pe={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Le={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Ee},je="show",He="out",Re={HIDE:"hide"+De,HIDDEN:"hidden"+De,SHOW:"show"+De,SHOWN:"shown"+De,INSERTED:"inserted"+De,CLICK:"click"+De,FOCUSIN:"focusin"+De,FOCUSOUT:"focusout"+De,MOUSEENTER:"mouseenter"+De,MOUSELEAVE:"mouseleave"+De},xe="fade",Fe="show",Ue=".tooltip-inner",We=".arrow",qe="hover",Me="focus",Ke="click",Qe="manual",Be=function(){function i(t,e){if("undefined"==typeof u)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=g(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(g(this.getTipElement()).hasClass(Fe))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),g.removeData(this.element,this.constructor.DATA_KEY),g(this.element).off(this.constructor.EVENT_KEY),g(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&g(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===g(this.element).css("display"))throw new Error("Please use show on visible elements");var t=g.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){g(this.element).trigger(t);var n=_.findShadowRoot(this.element),i=g.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=_.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&g(o).addClass(xe);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();g(o).data(this.constructor.DATA_KEY,this),g.contains(this.element.ownerDocument.documentElement,this.tip)||g(o).appendTo(l),g(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,o,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:We}
134,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),g(o).addClass(Fe),"ontouchstart"in document.documentElement&&g(document.body).children().on("mouseover",null,g.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,g(e.element).trigger(e.constructor.Event.SHOWN),t===He&&e._leave(null,e)};if(g(this.tip).hasClass(xe)){var h=_.getTransitionDurationFromElement(this.tip);g(this.tip).one(_.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=g.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==je&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),g(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(g(this.element).trigger(i),!i.isDefaultPrevented()){if(g(n).removeClass(Fe),"ontouchstart"in document.documentElement&&g(document.body).children().off("mouseover",null,g.noop),this._activeTrigger[Ke]=!1,this._activeTrigger[Me]=!1,this._activeTrigger[qe]=!1,g(this.tip).hasClass(xe)){var r=_.getTransitionDurationFromElement(n);g(n).one(_.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){g(this.getTipElement()).addClass(Ae+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(g(t.querySelectorAll(Ue)),this.getTitle()),g(t).removeClass(xe+" "+Fe)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=Se(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?g(e).parent().is(t)||t.empty().append(e):t.text(g(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:_.isElement(this.config.container)?g(this.config.container):g(document).find(this.config.container)},t._getAttachment=function(t){return Pe[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)g(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Qe){var e=t===qe?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===qe?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;g(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),g(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Me:qe]=!0),g(e.getTipElement()).hasClass(Fe)||e._hoverState===je?e._hoverState=je:(clearTimeout(e._timeout),e._hoverState=je,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===je&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||g(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),g(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Me:qe]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=He,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===He&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=g(this.element).data();return Object.keys(e).forEach(function(t){-1!==Oe.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),_.typeCheckConfig(be,t,this.constructor.DefaultType),t.sanitize&&(t.template=Se(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ne);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(g(t).removeClass(xe),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ie),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ie,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method n
134amed "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Le}},{key:"NAME",get:function(){return be}},{key:"DATA_KEY",get:function(){return Ie}},{key:"Event",get:function(){return Re}},{key:"EVENT_KEY",get:function(){return De}},{key:"DefaultType",get:function(){return ke}}]),i}();g.fn[be]=Be._jQueryInterface,g.fn[be].Constructor=Be,g.fn[be].noConflict=function(){return g.fn[be]=we,Be._jQueryInterface};var Ve="popover",Ye="bs.popover",ze="."+Ye,Xe=g.fn[Ve],$e="bs-popover",Ge=new RegExp("(^|\\s)"+$e+"\\S+","g"),Je=l({},Be.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Ze=l({},Be.DefaultType,{content:"(string|element|function)"}),tn="fade",en="show",nn=".popover-header",on=".popover-body",rn={HIDE:"hide"+ze,HIDDEN:"hidden"+ze,SHOW:"show"+ze,SHOWN:"shown"+ze,INSERTED:"inserted"+ze,CLICK:"click"+ze,FOCUSIN:"focusin"+ze,FOCUSOUT:"focusout"+ze,MOUSEENTER:"mouseenter"+ze,MOUSELEAVE:"mouseleave"+ze},sn=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){g(this.getTipElement()).addClass($e+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},o.setContent=function(){var t=g(this.getTipElement());this.setElementContent(t.find(nn),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(on),e),t.removeClass(tn+" "+en)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=g(this.getTipElement()),e=t.attr("class").match(Ge);null!==e&&0<e.length&&t.removeClass(e.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(Ye),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),g(this).data(Ye,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return Je}},{key:"NAME",get:function(){return Ve}},{key:"DATA_KEY",get:function(){return Ye}},{key:"Event",get:function(){return rn}},{key:"EVENT_KEY",get:function(){return ze}},{key:"DefaultType",get:function(){return Ze}}]),i}(Be);g.fn[Ve]=sn._jQueryInterface,g.fn[Ve].Constructor=sn,g.fn[Ve].noConflict=function(){return g.fn[Ve]=Xe,sn._jQueryInterface};var an="scrollspy",ln="bs.scrollspy",cn="."+ln,hn=g.fn[an],un={offset:10,method:"auto",target:""},fn={offset:"number",method:"string",target:"(string|element)"},dn={ACTIVATE:"activate"+cn,SCROLL:"scroll"+cn,LOAD_DATA_API:"load"+cn+".data-api"},gn="dropdown-item",_n="active",mn='[data-spy="scroll"]',pn=".nav, .list-group",vn=".nav-link",yn=".nav-item",En=".list-group-item",Cn=".dropdown",Tn=".dropdown-item",Sn=".dropdown-toggle",bn="offset",In="position",Dn=function(){function n(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+vn+","+this._config.target+" "+En+","+this._config.target+" "+Tn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g(this._scrollElement).on(dn.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var t=n.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?bn:In,o="auto"===this._config.method?t:this._config.method,r=o===In?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(t){var e,n=_.getSelectorFromElement(t);if(n&&(e=document.querySelector(n)),e){var i=e.getBoundingClientRect();if(i.width||i.height)return[g(e)[o]().top+r,n]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
134).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){g.removeData(this._element,ln),g(this._scrollElement).off(cn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=l({},un,"object"==typeof t&&t?t:{})).target){var e=g(t.target).attr("id");e||(e=_.getUID(an),g(t.target).attr("id",e)),t.target="#"+e}return _.typeCheckConfig(an,t,fn),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),n=g([].slice.call(document.querySelectorAll(t.join(","))));n.hasClass(gn)?(n.closest(Cn).find(Sn).addClass(_n),n.addClass(_n)):(n.addClass(_n),n.parents(pn).prev(vn+", "+En).addClass(_n),n.parents(pn).prev(yn).children(vn).addClass(_n)),g(this._scrollElement).trigger(dn.ACTIVATE,{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(t){return t.classList.contains(_n)}).forEach(function(t){return t.classList.remove(_n)})},n._jQueryInterface=function(e){return this.each(function(){var t=g(this).data(ln);if(t||(t=new n(this,"object"==typeof e&&e),g(this).data(ln,t)),"string"==typeof e){if("undefined"==typeof t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},s(n,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return un}}]),n}();g(window).on(dn.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(mn)),e=t.length;e--;){var n=g(t[e]);Dn._jQueryInterface.call(n,n.data())}}),g.fn[an]=Dn._jQueryInterface,g.fn[an].Constructor=Dn,g.fn[an].noConflict=function(){return g.fn[an]=hn,Dn._jQueryInterface};var wn="bs.tab",An="."+wn,Nn=g.fn.tab,On={HIDE:"hide"+An,HIDDEN:"hidden"+An,SHOW:"show"+An,SHOWN:"shown"+An,CLICK_DATA_API:"click"+An+".data-api"},kn="dropdown-menu",Pn="active",Ln="disabled",jn="fade",Hn="show",Rn=".dropdown",xn=".nav, .list-group",Fn=".active",Un="> li > .active",Wn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',qn=".dropdown-toggle",Mn="> .dropdown-menu .active",Kn=function(){function i(t){this._element=t}var t=i.prototype;return t.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&g(this._element).hasClass(Pn)||g(this._element).hasClass(Ln))){var t,i,e=g(this._element).closest(xn)[0],o=_.getSelectorFromElement(this._element);if(e){var r="UL"===e.nodeName||"OL"===e.nodeName?Un:Fn;i=(i=g.makeArray(g(e).find(r)))[i.length-1]}var s=g.Event(On.HIDE,{relatedTarget:this._element}),a=g.Event(On.SHOW,{relatedTarget:i});if(i&&g(i).trigger(s),g(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(t=document.querySelector(o)),this._activate(this._element,e);var l=function(){var t=g.Event(On.HIDDEN,{relatedTarget:n._element}),e=g.Event(On.SHOWN,{relatedTarget:i});g(i).trigger(t),g(n._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){g.removeData(this._element,wn),this._element=null},t._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?g(e).children(Fn):g(e).find(Un))[0],r=n&&o&&g(o).hasClass(jn),s=function(){return i._transitionComplete(t,o,n)};if(o&&r){var a=_.getTransitionDurationFromElement(o);g(o).removeClass(Hn).one(_.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},t._transitionComplete=function(t,e,n){if(e){g(e).removeClass(Pn);var i=g(e.parentNode).find(Mn)[0];i&&g(i).removeClass(Pn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(g(t).addClass(Pn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),_.reflow(t),t.classList.contains(jn)&&t.classList.add(Hn),t.parentNode&&g(t.parentNode).hasClass(kn)){var o=g(t).closest(Rn)[0];if(o){var r=[].slice.call(o.querySelectorAll(qn));g(r).addClass(Pn)}t.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(wn);if(e||(e=new i(this),t.data(wn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method n
134amed "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();g(document).on(On.CLICK_DATA_API,Wn,function(t){t.preventDefault(),Kn._jQueryInterface.call(g(this),"show")}),g.fn.tab=Kn._jQueryInterface,g.fn.tab.Constructor=Kn,g.fn.tab.noConflict=function(){return g.fn.tab=Nn,Kn._jQueryInterface};var Qn="toast",Bn="bs.toast",Vn="."+Bn,Yn=g.fn[Qn],zn={CLICK_DISMISS:"click.dismiss"+Vn,HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn},Xn="fade",$n="hide",Gn="show",Jn="showing",Zn={animation:"boolean",autohide:"boolean",delay:"number"},ti={animation:!0,autohide:!0,delay:500},ei='[data-dismiss="toast"]',ni=function(){function i(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var t=i.prototype;return t.show=function(){var t=this;g(this._element).trigger(zn.SHOW),this._config.animation&&this._element.classList.add(Xn);var e=function(){t._element.classList.remove(Jn),t._element.classList.add(Gn),g(t._element).trigger(zn.SHOWN),t._config.autohide&&t.hide()};if(this._element.classList.remove($n),this._element.classList.add(Jn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},t.hide=function(t){var e=this;this._element.classList.contains(Gn)&&(g(this._element).trigger(zn.HIDE),t?this._close():this._timeout=setTimeout(function(){e._close()},this._config.delay))},t.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Gn)&&this._element.classList.remove(Gn),g(this._element).off(zn.CLICK_DISMISS),g.removeData(this._element,Bn),this._element=null,this._config=null},t._getConfig=function(t){return t=l({},ti,g(this._element).data(),"object"==typeof t&&t?t:{}),_.typeCheckConfig(Qn,t,this.constructor.DefaultType),t},t._setListeners=function(){var t=this;g(this._element).on(zn.CLICK_DISMISS,ei,function(){return t.hide(!0)})},t._close=function(){var t=this,e=function(){t._element.classList.add($n),g(t._element).trigger(zn.HIDDEN)};if(this._element.classList.remove(Gn),this._config.animation){var n=_.getTransitionDurationFromElement(this._element);g(this._element).one(_.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},i._jQueryInterface=function(n){return this.each(function(){var t=g(this),e=t.data(Bn);if(e||(e=new i(this,"object"==typeof n&&n),t.data(Bn,e)),"string"==typeof n){if("undefined"==typeof e[n])throw new TypeError('No method named "'+n+'"');e[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Zn}},{key:"Default",get:function(){return ti}}]),i}();g.fn[Qn]=ni._jQueryInterface,g.fn[Qn].Constructor=ni,g.fn[Qn].noConflict=function(){return g.fn[Qn]=Yn,ni._jQueryInterface},function(){if("undefined"==typeof g)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=g.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),t.Util=_,t.Alert=p,t.Button=P,t.Carousel=lt,t.Collapse=bt,t.Dropdown=Jt,t.Modal=ve,t.Popover=sn,t.Scrollspy=Dn,t.Tab=Kn,t.Toast=ni,t.Tooltip=Be,Object.defineProperty(t,"__esModule",{value:!0})});
135//# sourceMappingURL=bootstrap.min.js.map
136(i=>{"function"==typeof define&&define.amd?define(["jquery"],i):"undefined"!=typeof exports?module.exports=i(require("jquery")):i(jQuery)})(function(a){var o,r=window.Slick||{};o=0,(r=function(i,e){var t=this;t.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(i),appendDots:a(i),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(i,e){return a('<button type="button" />').text(e+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},t.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,
vendor: 9,054 bytes, line 136
136sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(t,t.initials),t.activeBreakpoint=null,t.animType=null,t.animProp=null,t.breakpoints=[],t.breakpointSettings=[],t.cssTransitions=!1,t.focussed=!1,t.interrupted=!1,t.hidden="hidden",t.paused=!0,t.positionProp=null,t.respondTo=null,t.rowCount=1,t.shouldClick=!0,t.$slider=a(i),t.$slidesCache=null,t.transformType=null,t.transitionType=null,t.visibilityChange="visibilitychange",t.windowWidth=0,t.windowTimer=null,i=a(i).data("slick")||{},t.options=a.extend({},t.defaults,e,i),t.currentSlide=t.options.initialSlide,t.originalSettings=t.options,void 0!==document.mozHidden?(t.hidden="mozHidden",t.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(t.hidden="webkitHidden",t.visibilityChange="webkitvisibilitychange"),t.autoPlay=a.proxy(t.autoPlay,t),t.autoPlayClear=a.proxy(t.autoPlayClear,t),t.autoPlayIterator=a.proxy(t.autoPlayIterator,t),t.changeSlide=a.proxy(t.changeSlide,t),t.clickHandler=a.proxy(t.clickHandler,t),t.selectHandler=a.proxy(t.selectHandler,t),t.setPosition=a.proxy(t.setPosition,t),t.swipeHandler=a.proxy(t.swipeHandler,t),t.dragHandler=a.proxy(t.dragHandler,t),t.keyHandler=a.proxy(t.keyHandler,t),t.instanceUid=o++,t.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,t.registerBreakpoints(),t.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},r.prototype.addSlide=r.prototype.slickAdd=function(i,e,t){var o=this;if("boolean"==typeof e)t=e,e=null;else if(e<0||e>=o.slideCount)return!1;o.unload(),"number"==typeof e?0===e&&0===o.$slides.length?a(i).appendTo(o.$slideTrack):t?a(i).insertBefore(o.$slides.eq(e)):a(i).insertAfter(o.$slides.eq(e)):!0===t?a(i).prependTo(o.$slideTrack):a(i).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(i,e){a(e).attr("data-slick-index",i)}),o.$slidesCache=o.$slides,o.reinit()},r.prototype.animateHeight=function(){var i,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(i=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.animate({height:i},e.options.speed))},r.prototype.animateSlide=function(i,e){var t={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(i=-i),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:i},o.options.speed,o.options.easing,e):o.$slideTrack.animate({top:i},o.options.speed,o.options.easing,e):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),a({animStart:o.currentLeft}).animate({animStart:i},{duration:o.options.speed,easing:o.options.easing,step:function(i){i=Math.ceil(i),!1===o.options.vertical?t[o.animType]="translate("+i+"px, 0px)":t[o.animType]="translate(0px,"+i+"px)",o.$slideTrack.css(t)},complete:function(){e&&e.call()}})):(o.applyTransition(),i=Math.ceil(i),!1===o.options.vertical?t[o.animType]="translate3d("+i+"px, 0px, 0px)":t[o.animType]="translate3d(0px,"+i+"px, 0px)",o.$slideTrack.css(t),e&&setTimeout(function(){o.disableTransition(),e.call()},o.options.speed))},r.prototype.getNavTarget=function(){var i=this.options.asNavFor;return i=i&&null!==i?a(i).not(this.$slider):i},r.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=a(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},r.prototype.applyTransition=function(i){var e=this,t={};!1===e.options.fade?t[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:t[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(i)).css(t)},r.prototype.autoPlay=function(){var i=this;i.autoPlayClear(),i.slideCount>i.options.slidesToShow&&(i.autoPlayTimer=setInterval(i.autoPlayIterator,i.options.autoplaySpeed))},r.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},r.prototype.autoPlayIterator=function(){var i=this,e=i.currentSlide+i.options.slidesToScroll;i.paused||i.interrupted||i.focussed||(!1===i.options.infinite&&(1===i.direction&&i.currentSlide+1===i.slideCount-1?i.direction=0:0===i.direction&&(e=i.currentSlide-i.options.slidesToScroll,i.currentSlide-1==0)&&(i.direction=1)),i.slideHandler(e))},r.prototype.buildArrows=function(){var i=this;!0===i.options.arrows&&(i.$prevArrow=a(i.options.prevArrow).addClass("slick-arrow"),i.$nextArrow=a(i.options.nextArrow).addClass("slick-arrow"),i.slideCount>i.options.slidesToShow?(i.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),i.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.prependTo(i.options.appendArrows),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.appendTo(i.options.appendArrows),!0!==i.options.infinite&&i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):i.$prevArrow.add(i.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},r.prototype.buildDots=function(){var i,e,t=this;if(!0===t.options.dots){for(t.$slider.addClass("slick-dotted"),e=a("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)e.append(a("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=e.appendTo(t.options.appendDots),t.$dots.find("li").first().addClass("slick-active")}},r.prototype.buildOut=function(){var i=this;i.$slides=i.$slider.children(i.options.slide+":not(.slick-cloned)").addClass("slick-slide"),i.slideCount=i.$slides.length,i.$slides.each(function(i,e){a(e).attr("data-slick-index",i).data("originalStyling",a(e).attr("style")||"")}),i.$slider.addClass("slick-slider"),i.$slideTrack=0===i.slideCount?a('<div class="slick-track"/>').appendTo(i.$slider):i.$slides.wrapAll('<div class="slick-track"/>').parent(),i.$list=i.$slideTrack.wrap('<div class="slick-list"/>').parent(),i.$slideTrack.css("opacity",0),!0!==i.options.centerMode&&!0!==i.options.swipeToSlide||(i.options.slidesToScroll=1),a("img[data-lazy]",i.$slider).not("[src]").addClass("slick-loading"),i.setupInfinite(),i.buildArrows(),i.buildDots(),i.updateDots(),i.setSlideClasses("number"==typeof i.currentSlide?i.currentSlide:0),!0===i.options.draggable&&i.$list.addClass("draggable")},r.prototype.buildRows=function(){var i,e,t,o=this,s=document.createDocumentFragment(),n=o.$slider.children();if(1<o.options.rows){for(t=o.options.slidesPerRow*o.options.rows,e=Math.ceil(n.length/t),i=0;i<e;i++){for(var r=document.createElement("div"),l=0;l<o.options.rows;l++){for(var d=document.createElement("div"),a=0;a<o.options.slidesPerRow;a++){var c=i*t+(l*o.options.slidesPerRow+a);n.get(c)&&d.appendChild(n.get(c))}r.appendChild(d)}s.appendChild(r)}o.$slider.empty().append(s),o.$slider.children().children().children().css({width:100/o.options.slidesPerRow+"%",display:"inline-block"})}},r.prototype.checkResponsive=function(i,e){var t,o,s,n=this,r=!1,l=n.$slider.width(),d=window.innerWidth||a(window).width();if("window"===n.respondTo?s=d:"slider"===n.respondTo?s=l:"min"===n.respondTo&&(s=Math.min(d,l)),n.options.responsive&&n.options.responsive.length&&null!==n.options.responsive){for(t in o=null,n.breakpoints)n.breakpoints.hasOwnProperty(t)&&(!1===n.originalSettings.mobileFirst?s<n.breakpoints[t]&&(o=n.breakpoints[t]):s>n.breakpoints[t]&&(o=n.breakpoints[t]));null!==o?null!==n.activeBreakpoint&&o===n.activeBreakpoint&&!e||(n.activeBreakpoint=o,"unslick"===n.breakpointSettings[o]?n.unslick(o):(n.options=a.extend({},n.originalSettings,n.breakpointSettings[o]),!0===i&&(n.currentSlide=n.options.initialSlide),n.refresh(i)),r=o):null!==n.activeBreakpoint&&(n.activeBreakpoint=null,n.options=n.originalSettings,!0===i&&(n.currentSlide=n.options.initialSlide),n.refresh(i),r=o),i||!1===r||n.$slider.trigger("breakpoint",[n,r])}},r.prototype.changeSlide=function(i,e){var t,o=this,s=a(i.currentTarget);switch(s.is("a")&&i.preventDefault(),s.is("li")||(s=s.closest("li")),t=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,i.data.message){case"previous":n=0==t?o.options.slidesToScroll:o.options.slidesToShow-t,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-n,!1,e);break;case"next":n=0==t?o.options.slidesToScroll:t,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+n,!1,e);break;case"index":var n=0===i.data.index?0:i.data.index||s.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(n),!1,e),s.children().trigger("focus");break;default:return}},r.prototype.checkNavigable=function(i){var e=this.getNavigableIndexes(),t=0;if(i>e[e.length-1])i=e[e.length-1];else for(var o in e){if(i<e[o]){i=t;break}t=e[o]}return i},r.prototype.cleanUpEvents=function(){var i=this;i.options.dots&&null!==i.$dots&&(a("li",i.$dots).off("click.slick",i.changeSlide).off("mouseenter.slick",a.proxy(i.interrupt,i,!0)).off("mouseleave.
136slick",a.proxy(i.interrupt,i,!1)),!0===i.options.accessibility)&&i.$dots.off("keydown.slick",i.keyHandler),i.$slider.off("focus.slick blur.slick"),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow&&i.$prevArrow.off("click.slick",i.changeSlide),i.$nextArrow&&i.$nextArrow.off("click.slick",i.changeSlide),!0===i.options.accessibility)&&(i.$prevArrow&&i.$prevArrow.off("keydown.slick",i.keyHandler),i.$nextArrow)&&i.$nextArrow.off("keydown.slick",i.keyHandler),i.$list.off("touchstart.slick mousedown.slick",i.swipeHandler),i.$list.off("touchmove.slick mousemove.slick",i.swipeHandler),i.$list.off("touchend.slick mouseup.slick",i.swipeHandler),i.$list.off("touchcancel.slick mouseleave.slick",i.swipeHandler),i.$list.off("click.slick",i.clickHandler),a(document).off(i.visibilityChange,i.visibility),i.cleanUpSlideEvents(),!0===i.options.accessibility&&i.$list.off("keydown.slick",i.keyHandler),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().off("click.slick",i.selectHandler),a(window).off("orientationchange.slick.slick-"+i.instanceUid,i.orientationChange),a(window).off("resize.slick.slick-"+i.instanceUid,i.resize),a("[draggable!=true]",i.$slideTrack).off("dragstart",i.preventDefault),a(window).off("load.slick.slick-"+i.instanceUid,i.setPosition)},r.prototype.cleanUpSlideEvents=function(){var i=this;i.$list.off("mouseenter.slick",a.proxy(i.interrupt,i,!0)),i.$list.off("mouseleave.slick",a.proxy(i.interrupt,i,!1))},r.prototype.cleanUpRows=function(){var i;1<this.options.rows&&((i=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(i))},r.prototype.clickHandler=function(i){!1===this.shouldClick&&(i.stopImmediatePropagation(),i.stopPropagation(),i.preventDefault())},r.prototype.destroy=function(i){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),a(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow))&&e.$prevArrow.remove(),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow))&&e.$nextArrow.remove(),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,i||e.$slider.trigger("destroy",[e])},r.prototype.disableTransition=function(i){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(i)).css(e)},r.prototype.fadeSlide=function(i,e){var t=this;!1===t.cssTransitions?(t.$slides.eq(i).css({zIndex:t.options.zIndex}),t.$slides.eq(i).animate({opacity:1},t.options.speed,t.options.easing,e)):(t.applyTransition(i),t.$slides.eq(i).css({opacity:1,zIndex:t.options.zIndex}),e&&setTimeout(function(){t.disableTransition(i),e.call()},t.options.speed))},r.prototype.fadeSlideOut=function(i){var e=this;!1===e.cssTransitions?e.$slides.eq(i).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(i),e.$slides.eq(i).css({opacity:0,zIndex:e.options.zIndex-2}))},r.prototype.filterSlides=r.prototype.slickFilter=function(i){var e=this;null!==i&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(i).appendTo(e.$slideTrack),e.reinit())},r.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var e=a(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=e.is(":focus"),t.autoPlay())}
vendor: 1,219 bytes, line 136
136,0)})},r.prototype.getCurrent=r.prototype.slickCurrentSlide=function(){return this.currentSlide},r.prototype.getDotCount=function(){var i=this,e=0,t=0,o=0;if(!0===i.options.infinite)if(i.slideCount<=i.options.slidesToShow)++o;else for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else if(!0===i.options.centerMode)o=i.slideCount;else if(i.options.asNavFor)for(;e<i.slideCount;)++o,e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;else o=1+Math.ceil((i.slideCount-i.options.slidesToShow)/i.options.slidesToScroll);return o-1},r.prototype.getLeft=function(i){var e,t,o=this,s=0;return o.slideOffset=0,e=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,t=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?t=-1.5:1===o.options.slidesToShow&&(t=-2)),s=e*o.options.slidesToShow*t),o.slideCount%o.options.slidesToScroll!=0&&i+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(s=i>
136o.slideCount?(o.slideOffset=(o.options.slidesToShow-(i-o.slideCount))*o.slideWidth*-1,(o.options.slidesToShow-(i-o.slideCount))*e*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,o.slideCount%o.options.slidesToScroll*e*-1))):i+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(i+o.options.slidesToShow-o.slideCount)*o.slideWidth,s=(i+o.options.slidesToShow-o.slideCount)*e),o.slideCount<=o.options.slidesToShow&&(s=o.slideOffset=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),t=!1===o.options.vertical?i*o.slideWidth*-1+o.slideOffset:i*e*-1+s,!0===o.options.variableWidth&&(e=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(i):o.$slideTrack.children(".slick-slide").eq(i+o.options.slidesToShow),t=!0===o.options.rtl?e[0]?-1*(o.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,!0===o.options.centerMode)&&(e=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(i):o.$slideTrack.children(".slick-slide").eq(i+o.options.slidesToShow+1),t=!0===o.options.rtl?e[0]?-1*(o.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,t+=(o.$list.width()-e.outerWidth())/2),t},r.prototype.getOption=r.prototype.slickGetOption=function(i){return this.options[i]},r.prototype.getNavigableIndexes=function(){for(var i=this,e=0,t=0,o=[],s=!1===i.options.infinite?i.slideCount:(e=-1*i.options.slidesToScroll,t=-1*i.options.slidesToScroll,2*i.slideCount);e<s;)o.push(e),e=t+i.options.slidesToScroll,t+=i.options.slidesToScroll<=i.options.slidesToShow?i.options.slidesToScroll:i.options.slidesToShow;return o},r.prototype.getSlick=function(){return this},r.prototype.getSlideCount=function(){var t,o=this,s=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0;return!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(i,e){if(e.offsetLeft-s+a(e).outerWidth()/2>-1*o.swipeLeft)return t=e,!1}),Math.abs(a(t).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},r.prototype.goTo=r.prototype.slickGoTo=function(i,e){this.changeSlide({data:{message:"index",index:parseInt(i)}},e)},r.prototype.init=function(i){var e=this;a(e.$slider).hasClass("slick-initialized")||(a(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),i&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},r.prototype.initADA=function(){var t=this,o=Math.ceil(t.slideCount/t.options.slidesToShow),s=t.getNavigableIndexes().filter(function(i){return 0<=i&&i<t.slideCount});t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){var e=s.indexOf(i);a(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1}),-1!==e&&a(this).attr({"aria-describedby":"slick-slide-control"+t.instanceUid+e})}),t.$dots.attr("role","tablist").find("li").each(function(i){var e=s[i];a(this).attr({role:"presentation"}),a(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+i,"aria-controls":"slick-slide"+t.instanceUid+e,"aria-label":i+1+" of "+o,"aria-selected":null,tabindex:"-1"})}).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var i=t.currentSlide,e=i+t.options.slidesToShow;i<e;i++)t.$slides.eq(i).attr("tabindex",0);t.activateADA()},r.prototype.initArrowEvents=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},i.changeSlide),i.$nextArrow.off("click.slick").on("click.slick",{message:"next"},i.changeSlide),!0===i.options.accessibility)&&(i.$prevArrow.on("keydown.slick",i.keyHandler),i.$nextArrow.on("keydown.slick",i.keyHandler))},r.prototype.initDotEvents=function(){var i=this;!0===i.options.dots&&(a("li",i.$dots).on("click.slick",{message:"index"},i.changeSlide),!0===i.options.accessibility)&&i.$dots.on("keydown.slick",i.keyHandler),!0===i.options.dots&&!0===i.options.pauseOnDotsHover&&a("li",i.$dots).on("mouseenter.slick",a.proxy(i.interrupt,i,!0)).on("mouseleave.
136slick",a.proxy(i.interrupt,i,!1))},r.prototype.initSlideEvents=function(){var i=this;i.options.pauseOnHover&&(i.$list.on("mouseenter.slick",a.proxy(i.interrupt,i,!0)),i.$list.on("mouseleave.slick",a.proxy(i.interrupt,i,!1)))},r.prototype.initializeEvents=function(){var i=this;i.initArrowEvents(),i.initDotEvents(),i.initSlideEvents(),i.$list.on("touchstart.slick mousedown.slick",{action:"start"},i.swipeHandler),i.$list.on("touchmove.slick mousemove.slick",{action:"move"},i.swipeHandler),i.$list.on("touchend.slick mouseup.slick",{action:"end"},i.swipeHandler),i.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},i.swipeHandler),i.$list.on("click.slick",i.clickHandler),a(document).on(i.visibilityChange,a.proxy(i.visibility,i)),!0===i.options.accessibility&&i.$list.on("keydown.slick",i.keyHandler),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().on("click.slick",i.selectHandler),a(window).on("orientationchange.slick.slick-"+i.instanceUid,a.proxy(i.orientationChange,i)),a(window).on("resize.slick.slick-"+i.instanceUid,a.proxy(i.resize,i)),a("[draggable!=true]",i.$slideTrack).on("dragstart",i.preventDefault),a(window).on("load.slick.slick-"+i.instanceUid,i.setPosition),a(i.setPosition)},r.prototype.initUI=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.show(),i.$nextArrow.show()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.show()},r.prototype.keyHandler=function(i){var e=this;i.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===i.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===i.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},r.prototype.lazyLoad=function(){function i(i){a("img[data-lazy]",i).each(function(){var i=a(this),e=a(this).attr("data-lazy"),t=a(this).attr("data-srcset"),o=a(this).attr("data-sizes")||n.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){i.animate({opacity:0}
vendor: 7,040 bytes, line 136
136,100,function(){t&&(i.attr("srcset",t),o)&&i.attr("sizes",o),i.attr("src",e).animate({opacity:1},200,function(){i.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),n.$slider.trigger("lazyLoaded",[n,i,e])})},s.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,i,e])},s.src=e})}var e,t,o,n=this;if(!0===n.options.centerMode?o=!0===n.options.infinite?(t=n.currentSlide+(n.options.slidesToShow/2+1))+n.options.slidesToShow+2:(t=Math.max(0,n.currentSlide-(n.options.slidesToShow/2+1)),n.options.slidesToShow/2+1+2+n.currentSlide):(t=n.options.infinite?n.options.slidesToShow+n.currentSlide:n.currentSlide,o=Math.ceil(t+n.options.slidesToShow),!0===n.options.fade&&(0<t&&t--,o<=n.slideCount)&&o++),e=n.$slider.find(".slick-slide").slice(t,o),"anticipated"===n.options.lazyLoad)for(var s=t-1,r=o,l=n.$slider.find(".slick-slide"),d=0;d<n.options.slidesToScroll;d++)s<0&&(s=n.slideCount-1),e=(e=e.add(l.eq(s))).add(l.eq(r)),s--,r++;i(e),n.slideCount<=n.options.slidesToShow?i(n.$slider.find(".slick-slide")):n.currentSlide>=n.slideCount-n.options.slidesToShow?i(n.$slider.find(".slick-cloned").slice(0,n.options.slidesToShow)):0===n.currentSlide&&i(n.$slider.find(".slick-cloned").slice(-1*n.options.slidesToShow))},r.prototype.loadSlider=function(){var i=this;i.setPosition(),i.$slideTrack.css({opacity:1}),i.$slider.removeClass("slick-loading"),i.initUI(),"progressive"===i.options.lazyLoad&&i.progressiveLazyLoad()},r.prototype.next=r.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},r.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},r.prototype.pause=r.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},r.prototype.play=r.prototype.slickPlay=function(){var i=this;i.autoPlay(),i.options.autoplay=!0,i.paused=!1,i.focussed=!1,i.interrupted=!1},r.prototype.postSlide=function(i){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,i]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange)&&a(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus())},r.prototype.prev=r.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},r.prototype.preventDefault=function(i){i.preventDefault()},r.prototype.progressiveLazyLoad=function(i){i=i||1;var e,t,o,s,n=this,r=a("img[data-lazy]",n.$slider);r.length?(e=r.first(),t=e.attr("data-lazy"),o=e.attr("data-srcset"),s=e.attr("data-sizes")||n.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){o&&(e.attr("srcset",o),s)&&e.attr("sizes",s),e.attr("src",t).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===n.options.adaptiveHeight&&n.setPosition(),n.$slider.trigger("lazyLoaded",[n,e,t]),n.progressiveLazyLoad()},r.onerror=function(){i<3?setTimeout(function(){n.progressiveLazyLoad(i+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),n.$slider.trigger("lazyLoadError",[n,e,t]),n.progressiveLazyLoad())},r.src=t):n.$slider.trigger("allImagesLoaded",[n])},r.prototype.refresh=function(i){var e=this,t=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>t&&(e.currentSlide=t),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),t=e.currentSlide,e.destroy(!0),a.extend(e,e.initials,{currentSlide:t}),e.init(),i||e.changeSlide({data:{message:"index",index:t}},!1)},r.prototype.registerBreakpoints=function(){var i,e,t,o=this,s=o.options.responsive||null;if("array"===a.type(s)&&s.length){for(i in o.respondTo=o.options.respondTo||"window",s)if(t=o.breakpoints.length-1,s.hasOwnProperty(i)){for(e=s[i].breakpoint;0<=t;)o.breakpoints[t]&&o.breakpoints[t]===e&&o.breakpoints.splice(t,1),t--;o.breakpoints.push(e),o.breakpointSettings[e]=s[i].settings}o.breakpoints.sort(function(i,e){return o.options.mobileFirst?i-e:e-i})}},r.prototype.reinit=function(){var i=this;i.$slides=i.$slideTrack.children(i.options.slide).addClass("slick-slide"),i.slideCount=i.$slides.length,i.currentSlide>=i.slideCount&&0!==i.currentSlide&&(i.currentSlide=i.currentSlide-i.options.slidesToScroll),i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0),i.registerBreakpoints(),i.setProps(),i.setupInfinite(),i.buildArrows(),i.updateArrows(),i.initArrowEvents(),i.buildDots(),i.updateDots(),i.initDotEvents(),i.cleanUpSlideEvents(),i.initSlideEvents(),i.checkResponsive(!1,!0),!0===i.options.focusOnSelect&&a(i.$slideTrack).children().on("click.slick",i.selectHandler),i.setSlideClasses("number"==typeof i.currentSlide?i.currentSlide:0),i.setPosition(),i.focusHandler(),i.paused=!i.options.autoplay,i.autoPlay(),i.$slider.trigger("reInit",[i])},r.prototype.resize=function(){var i=this;a(window).width()!==i.windowWidth&&(clearTimeout(i.windowDelay),i.windowDelay=window.setTimeout(function(){i.windowWidth=a(window).width(),i.checkResponsive(),i.unslicked||i.setPosition()},50))},r.prototype.removeSlide=r.prototype.slickRemove=function(i,e,t){var o=this;if(i="boolean"==typeof i?!0===(e=i)?0:o.slideCount-1:!0===e?--i:i,o.slideCount<1||i<0||i>o.slideCount-1)return!1;o.unload(),(!0===t?o.$slideTrack.children():o.$slideTrack.children(this.options.slide).eq(i)).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},r.prototype.setCSS=function(i){var e,t,o=this,s={};!0===o.options.rtl&&(i=-i),e="left"==o.positionProp?Math.ceil(i)+"px":"0px",t="top"==o.positionProp?Math.ceil(i)+"px":"0px",s[o.positionProp]=i,!1!==o.transformsEnabled&&(!(s={})===o.cssTransitions?s[o.animType]="translate("+e+", "+t+")":s[o.animType]="translate3d("+e+", "+t+", 0px)"),o.$slideTrack.css(s)},r.prototype.setDimensions=function(){var i=this,e=(!1===i.options.vertical?!0===i.options.centerMode&&i.$list.css({padding:"0px "+i.options.centerPadding}):(i.$list.height(i.$slides.first().outerHeight(!0)*i.options.slidesToShow),!0===i.options.centerMode&&i.$list.css({padding:i.options.centerPadding+" 0px"})),i.listWidth=i.$list.width(),i.listHeight=i.$list.height(),!1===i.options.vertical&&!1===i.options.variableWidth?(i.slideWidth=Math.ceil(i.listWidth/i.options.slidesToShow),i.$slideTrack.width(Math.ceil(i.slideWidth*i.$slideTrack.children(".slick-slide").length))):!0===i.options.variableWidth?i.$slideTrack.width(5e3*i.slideCount):(i.slideWidth=Math.ceil(i.listWidth),i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0)*i.$slideTrack.children(".slick-slide").length))),i.$slides.first().outerWidth(!0)-i.$slides.first().width());!1===i.options.variableWidth&&i.$slideTrack.children(".slick-slide").width(i.slideWidth-e)},r.prototype.setFade=function(){var t,o=this;o.$slides.each(function(i,e){t=o.slideWidth*i*-1,!0===o.options.rtl?a(e).css({position:"relative",right:t,top:0,zIndex:o.options.zIndex-2,opacity:0}
136):a(e).css({position:"relative",left:t,top:0,zIndex:o.options.zIndex-2,opacity:0})}),o.$slides.eq(o.currentSlide).css({zIndex:o.options.zIndex-1,opacity:1})},r.prototype.setHeight=function(){var i,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(i=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.css("height",i))},r.prototype.setOption=r.prototype.slickSetOption=function(){var i,e,t,o,s,n=this,r=!1;if("object"===a.type(arguments[0])?(t=arguments[0],r=arguments[1],s="multiple"):"string"===a.type(arguments[0])&&(t=arguments[0],o=arguments[1],r=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)n.options[t]=o;else if("multiple"===s)a.each(t,function(i,e){n.options[i]=e});else if("responsive"===s)for(e in o)if("array"!==a.type(n.options.responsive))n.options.responsive=[o[e]];else{for(i=n.options.responsive.length-1;0<=i;)n.options.responsive[i].breakpoint===o[e].breakpoint&&n.options.responsive.splice(i,1),i--;n.options.responsive.push(o[e])}r&&(n.unload(),n.reinit())},r.prototype.setPosition=function(){var i=this;i.setDimensions(),i.setHeight(),!1===i.options.fade?i.setCSS(i.getLeft(i.currentSlide)):i.setFade(),i.$slider.trigger("setPosition",[i])},r.prototype.setProps=function(){var i=this,e=document.body.style;i.positionProp=!0===i.options.vertical?"top":"left","top"===i.positionProp?i.$slider.addClass("slick-vertical"):i.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===i.options.useCSS&&(i.cssTransitions=!0),i.options.fade&&("number"==typeof i.options.zIndex?i.options.zIndex<3&&(i.options.zIndex=3):i.options.zIndex=i.defaults.zIndex),void 0!==e.OTransform&&(i.animType="OTransform",i.transformType="-o-transform",i.transitionType="OTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(i.animType=!1),void 0!==e.MozTransform&&(i.animType="MozTransform",i.transformType="-moz-transform",i.transitionType="MozTransition",void 0===e.perspectiveProperty)&&void 0===e.MozPerspective&&(i.animType=!1),void 0!==e.webkitTransform&&(i.animType="webkitTransform",i.transformType="-webkit-transform",i.transitionType="webkitTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(i.animType=!1),void 0!==e.msTransform&&(i.animType="msTransform",i.transformType="-ms-transform",i.transitionType="msTransition",void 0===e.msTransform)&&(i.animType=!1),void 0!==e.transform&&!1!==i.animType&&(i.animType="transform",i.transformType="transform",i.transitionType="transition"),i.transformsEnabled=i.options.useTransform&&null!==i.animType&&!1!==i.animType},r.prototype.setSlideClasses=function(i){var e,t,o,s=this,n=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");s.$slides.eq(i).addClass("slick-current"),!0===s.options.centerMode?(t=s.options.slidesToShow%2==0?1:0,o=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&((o<=i&&i<=s.slideCount-1-o?s.$slides.slice(i-o+t,i+o+1):(e=s.options.slidesToShow+i,n.slice(e-o+1+t,e+o+2))).addClass("slick-active").attr("aria-hidden","false"),0===i?n.eq(n.length-1-s.options.slidesToShow).addClass("slick-center"):i===s.slideCount-1&&n.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(i).addClass("slick-center")):(0<=i&&i<=s.slideCount-s.options.slidesToShow?s.$slides.slice(i,i+s.options.slidesToShow):n.length<=s.options.slidesToShow?n:(t=s.slideCount%s.options.slidesToShow,e=!0===s.options.infinite?s.options.slidesToShow+i:i,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-i<s.options.slidesToShow?n.slice(e-(s.options.slidesToShow-t),e+t):n.slice(e,e+s.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},r.prototype.setupInfinite=function(){var i,e,t,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(e=null,o.slideCount>o.options.slidesToShow)){for(t=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,i=o.slideCount;i>o.slideCount-t;--i)a(o.$slides[e=i-1]).clone(!0).attr("id","").attr("data-slick-index",e-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(i=0;i<t+o.slideCount;i+=1)e=i,a(o.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},r.prototype.interrupt=function(i){i||this.autoPlay(),this.interrupted=i},r.prototype.selectHandler=function(i){i=a(i.target).is(".slick-slide")?a(i.target):a(i.target).parents(".slick-slide"),i=(i=parseInt(i.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(i,!1,!0):this.slideHandler(i)},r.prototype.slideHandler=function(i,e,t){var o,s,n,r=this;e=e||!1,!0===r.animating&&!0===r.options.waitForAnimate||!0===r.options.fade&&r.currentSlide===i||(!1===e&&r.asNavFor(i),o=i,e=r.getLeft(o),n=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?n:r.swipeLeft,!1===r.options.infinite&&!1===r.options.centerMode&&(i<0||i>r.getDotCount()*r.options.slidesToScroll)||!1===r.options.infinite&&!0===r.options.centerMode&&(i<0||i>r.slideCount-r.options.slidesToScroll)?!1===r.options.fade&&(o=r.currentSlide,!0!==t?r.animateSlide(n,function(){r.postSlide(o)}):r.postSlide(o)):(r.options.autoplay&&clearInterval(r.autoPlayTimer),s=o<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+
vendor: 4,991 bytes, line 136
136o:o>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:o-r.slideCount:o,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,s]),i=r.currentSlide,r.currentSlide=s,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(n=(n=r.getNavTarget()).slick("getSlick")).slideCount<=n.options.slidesToShow&&n.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),!0===r.options.fade?(!0!==t?(r.fadeSlideOut(i),r.fadeSlide(s,function(){r.postSlide(s)})):r.postSlide(s),r.animateHeight()):!0!==t?r.animateSlide(e,function(){r.postSlide(s)}):r.postSlide(s)))},r.prototype.startLoad=function(){var i=this;!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&(i.$prevArrow.hide(),i.$nextArrow.hide()),!0===i.options.dots&&i.slideCount>i.options.slidesToShow&&i.$dots.hide(),i.$slider.addClass("slick-loading")},r.prototype.swipeDirection=function(){var i=this,e=i.touchObject.startX-i.touchObject.curX,t=i.touchObject.startY-i.touchObject.curY,t=Math.atan2(t,e);return(e=(e=Math.round(180*t/Math.PI))<0?360-Math.abs(e):e)<=45&&0<=e||e<=360&&315<=e?!1===i.options.rtl?"left":"right":135<=e&&e<=225?!1===i.options.rtl?"right":"left":!0===i.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},r.prototype.swipeEnd=function(i){var e,t,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1;if(o.interrupted=!1,o.shouldClick=!(10<o.touchObject.swipeLength),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(t=o.swipeDirection()){case"left":case"down":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":e=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=t&&(o.slideHandler(e),o.touchObject={},o.$slider.trigger("swipe",[o,t]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},r.prototype.swipeHandler=function(i){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==i.type.indexOf("mouse")))switch(e.touchObject.fingerCount=i.originalEvent&&void 0!==i.originalEvent.touches?i.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),i.data.action){case"start":e.swipeStart(i);break;case"move":e.swipeMove(i);break;case"end":e.swipeEnd(i)}},r.prototype.swipeMove=function(i){var e,t,o=this,s=void 0!==i.originalEvent?i.originalEvent.touches:null;return!(!o.dragging||o.scrolling||s&&1!==s.length)&&(e=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==s?s[0].pageX:i.clientX,o.touchObject.curY=void 0!==s?s[0].pageY:i.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2))),!o.options.verticalSwiping&&!o.swiping&&4<s?!(o.scrolling=!0):(!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=s),s=o.swipeDirection(),void 0!==i.originalEvent&&4<o.touchObject.swipeLength&&(o.swiping=!0,i.preventDefault()),i=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(i=o.touchObject.curY>o.touchObject.startY?1:-1),t=o.touchObject.swipeLength,(o.touchObject.edgeHit=!1)===o.options.infinite&&(0===o.currentSlide&&"right"===s||o.currentSlide>=o.getDotCount()&&"left"===s)&&(t=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=e+t*i:o.swipeLeft=e+t*(o.$list.height()/o.listWidth)*i,!0===o.options.verticalSwiping&&(o.swipeLeft=e+t*i),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))))},r.prototype.swipeStart=function(i){var e,t=this;if(t.interrupted=!0,1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow)return!(t.touchObject={});void 0!==i.originalEvent&&void 0!==i.originalEvent.touches&&(e=i.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==e?e.pageX:i.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==e?e.pageY:i.clientY,t.dragging=!0},r.prototype.unfilterSlides=r.prototype.slickUnfilter=function(){var i=this;null!==i.$slidesCache&&(i.unload(),i.$slideTrack.children(this.options.slide).detach(),i.$slidesCache.appendTo(i.$slideTrack),i.reinit())},r.prototype.unload=function(){var i=this;a(".slick-cloned",i.$slider).remove(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove(),i.$nextArrow&&i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove(),i.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
136,r.prototype.unslick=function(i){this.$slider.trigger("unslick",[this,i]),this.destroy()},r.prototype.updateArrows=function(){var i=this;Math.floor(i.options.slidesToShow/2),!0===i.options.arrows&&i.slideCount>i.options.slidesToShow&&!i.options.infinite&&(i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===i.currentSlide?(i.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(i.currentSlide>=i.slideCount-i.options.slidesToShow&&!1===i.options.centerMode||i.currentSlide>=i.slideCount-1&&!0===i.options.centerMode)&&(i.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},r.prototype.updateDots=function(){var i=this;null!==i.$dots&&(i.$dots.find("li").removeClass("slick-active").end(),i.$dots.find("li").eq(Math.floor(i.currentSlide/i.options.slidesToScroll)).addClass("slick-active"))},r.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},a.fn.slick=function(){for(var i,e=this,t=arguments[0],o=Array.prototype.slice.call(arguments,1),s=e.length,n=0;n<s;n++)if("object"==typeof t||void 0===t?e[n].slick=new r(e[n],t):i=e[n].slick[t].apply(e[n].slick,o),void 0!==i)return i;return e}});
137(e=>{"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)})(function(d){function t(){if(s.length){var e=0,t=d.map(s,function(e){var t=e.data.selector,e=e.$element;return t?e.find(t):e});for(c=c||(a=(a={height:p.innerHeight,width:p.innerWidth}).height||!(f=u.compatMode)&&d.support.boxModel?a:{height:(f="CSS1Compat"===f?g:u.body).clientHeight,width:f.clientWidth}),h=h||{top:p.pageYOffset||g.scrollTop||u.body.scrollTop,left:p.pageXOffset||g.scrollLeft||u.body.scrollLeft};e<s.length;e++)if(d.contains(g,t[e][0])){var n=d(t[e]),i=n[0].offsetHeight,o=n[0].offsetWidth,l=n.offset(),r=n.data("inview");if(!h||!c)return;l.top+i>h.top&&l.top<h.top+c.height&&l.left+o>h.left&&l.left<h.left+c.width?r||n.data("inview",!0).trigger("inview",[!0]):r&&n.data("inview",!1).trigger("inview",[!1])}}var f,a}var c,h,i,s=[],u=document,p=window,g=u.documentElement;d.event.special.inview={add:function(e){s.push({data:e,$element:d(this),element:this}),!i&&s.length&&(i=setInterval(t,250))},remove:function(e){for(var t=0;t<s.length;t++){var n=s[t];if(n.element===this&&n.data.guid===e.guid){s.splice(t,1);break}}s.length||(clearInterval(i),i=null)}},d(p).on("scroll resize scrollstop",function(){c=h=null}),!g.addEventListener&&g.attachEvent&&g.attachEvent("onfocusin",function(){h=null})});
138$(function(){window.location.href.split("/")[0];var e=document.createElement("script"),t=(e.src="https://www.youtube.com/iframe_api",document.getElementsByTagName("script")[0]);t.parentNode.insertBefore(e,t),window.onYouTubeIframeAPIReady=function(){$("body").trigger("youtubeready").addClass("youtubeready")}});
139/*******************************************************************************
140 * Copyright 2019 Adobe
141 *
142 * Licensed under the Apache License, Version 2.0 (the "License");
143 * you may not use this file except in compliance with the License.
144 * You may obtain a copy of the License at
145 *
146 *     http://www.apache.org/licenses/LICENSE2.0
147 *
148 * Unless required by applicable law or agreed to in writing, software
149 * distributed under the License is distributed on an "AS IS" BASIS,
150 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
151 * See the License for the specific language governing permissions and
152 * limitations under the License.
153 ******************************************************************************/
154
155/**
156 * Element.matches()
157 * https://developer.mozilla.org/enUS/docs/Web/API/Element/matches#Polyfill
158 */
159if (!Element.prototype.matches) {
160    Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
161}
162
163// eslint-disable-next-line valid-jsdoc
164/**
165 * Element.closest()
166 * https://developer.mozilla.org/enUS/docs/Web/API/Element/closest#Polyfill
167 */
168if (!Element.prototype.closest) {
169    Element.prototype.closest = function(s) {
170        "use strict";
171        var el = this;
172        if (!document.documentElement.contains(el)) {
173            return null;
174        }
175        do {
176            if (el.matches(s)) {
177                return el;
178            }
179            el = el.parentElement || el.parentNode;
180        } while (el !== null && el.nodeType === 1);
181        return null;
182    };
183}
184
185/*******************************************************************************
186 * Copyright 2019 Adobe
187 *
188 * Licensed under the Apache License, Version 2.0 (the "License");
189 * you may not use this file except in compliance with the License.
190 * You may obtain a copy of the License at
191 *
192 *     http://www.apache.org/licenses/LICENSE-2.0
193 *
194 * Unless required by applicable law or agreed to in writing, software
195 * distributed under the License is distributed on an "AS IS" BASIS,
196 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
197 * See the License for the specific language governing permissions and
198 * limitations under the License.
199 ******************************************************************************/
200(function() {
201    "use strict";
202
203    var containerUtils = window.CQ && window.CQ.CoreComponents && window.CQ.CoreComponents.container && window.CQ.CoreComponents.container.utils ? window.CQ.CoreComponents.container.utils : undefined;
204    if (!containerUtils) {
205        // eslint-disable-next-line no-console
206        console.warn("Accordion: container utilities at window.CQ.CoreComponents.container.utils are not available. This can lead to missing features. Ensure the core.wcm.components.commons.site.container client library is included on the page.");
207    }
208    var dataLayerEnabled;
209    var dataLayer;
210    var dataLayerName;
211    var delay = 100;
212
213    var NS = "cmp";
214    var IS = "accordion";
215
216    var keyCodes = {
217        ENTER: 13,
218        SPACE: 32,
219        END: 35,
220        HOME: 36,
221        ARROW_LEFT: 37,
222        ARROW_UP: 38,
223        ARROW_RIGHT: 39,
224        ARROW_DOWN: 40
225    };
226
227    var selectors = {
228        self: "[data-" + NS + '-is="' + IS + '"]'
229    };
230
231    var cssClasses = {
232        button: {
233            disabled: "cmp-accordion__button--disabled",
234            expanded: "cmp-accordion__button--expanded"
235        },
236        panel: {
237            hidden: "cmp-accordion__panel--hidden",
238            expanded: "cmp-accordion__panel--expanded"
239        }
240    };
241
242    var dataAttributes = {
243        item: {
244            expanded: "data-cmp-expanded"
245        }
246    };
247
248    var properties = {
249        /**
250         * Determines whether a single accordion item is forced to be expanded at a time.
251         * Expanding one item will collapse all others.
252         *
253         * @memberof Accordion
254         * @type {Boolean}
255         * @default false
256         */
257        "singleExpansion": {
258            "default": false,
259            "transform": function(value) {
260                return !(value === null || typeof value === "undefined");
261            }
262        }
263    };
264
265    /**
266     * Accordion Configuration.
267     *
268     * @typedef {Object} AccordionConfig Represents an Accordion configuration
269     * @property {HTMLElement} element The HTMLElement representing the Accordion
270     * @property {Object} options The Accordion options
271     */
272
273    /**
274     * Accordion.
275     *
276     * @class Accordion
277     * @classdesc An interactive Accordion component for toggling panels of related content
278     * @param {AccordionConfig} config The Accordion configuration
279     */
280    function Accordion(config) {
281        var that = this;
282
283        if (config && config.element) {
284            init(config);
285        }
286
287        /**
288         * Initializes the Accordion.
289         *
290         * @private
291         * @param {AccordionConfig} config The Accordion configuration
292         */
293        function init(config) {
294            that._config = config;
295
296            // prevents multiple initialization
297            config.element.removeAttribute("data-" + NS + "-is");
298
299            setupProperties(config.options);
300            cacheElements(config.element);
301
302            if (that._elements["item"]) {
303                // ensures multiple element types are arrays.
304                that._elements["item"] = Array.isArray(that._elements["item"]) ? that._elements["item"] : [that._elements["item"]];
305                that._elements["button"] = Array.isArray(that._elements["button"]) ? that._elements["button"] : [that._elements["button"]];
306                that._elements["panel"] = Array.isArray(that._elements["panel"]) ? that._elements["panel"] : [that._elements["panel"]];
307
308                if (that._properties.singleExpansion) {
309                    var expandedItems = getExpandedItems();
310                    // multiple expanded items annotated, display the last item open.
311                    if (expandedItems.length > 1) {
312                        toggle(expandedItems.length - 1);
313                    }
314                }
315
316                refreshItems();
317                bindEvents();
318                scrollToDeepLinkIdInAccordion();
319            }
320            if (window.Granite && window.Granite.author && window.Granite.author.MessageChannel) {
321                /*
322                 * Editor message handling:
323                 * - subscribe to "cmp.panelcontainer" message requests sent by the editor frame
324                 * - check that the message data panel container type is correct and that the id (path) matches this specific Accordion component
325                 * - if so, route the "navigate" operation to enact a navigation of the Accordion based on index data
326                 */
327                window.CQ.CoreComponents.MESSAGE_CHANNEL = window.CQ.CoreComponents.MESSAGE_CHANNEL || new window.Granite.author.MessageChannel("cqauthor", window);
328                window.CQ.CoreComponents.MESSAGE_CHANNEL.subscribeRequestMessage("cmp.panelcontainer", function(message) {
329                    if (message.data && message.data.type === "cmp-accordion" && message.data.id === that._elements.self.dataset["cmpPanelcontainerId"]) {
330                        if (message.data.operation === "navigate") {
331                            // switch to single expansion mode when navigating in edit mode.
332                            var singleExpansion = that._properties.singleExpansion;
333                            that._properties.singleExpansion = true;
334                            toggle(message.data.index);
335
336                            // revert to the configured state.
337                            that._properties.singleExpansion = singleExpansion;
338                        }
339                    }
340                });
341            }
342        }
343
344        /**
345         * Displays the panel containing the element that corresponds to the deep link in the URI fragment
346         * and scrolls the browser to this element.
347         */
348        function scrollToDeepLinkIdInAccordion() {
349            if (containerUtils) {
350                var deepLinkItemIdx = containerUtils.getDeepLinkItemIdx(that, "item", "item");
351                if (deepLinkItemIdx > -1) {
352                    var deepLinkItem = that._elements["item"][deepLinkItemIdx];
353                    if (deepLinkItem && !deepLinkItem.hasAttribute(dataAttributes.item.expanded)) {
354                        // if single expansion: close all accordion items
355                        if (that._properties.singleExpansion) {
356                            for (var j = 0; j < that._elements["item"].length; j++) {
357                                if (that._elements["item"][j].hasAttribute(dataAttributes.item.expanded)) {
358                                    setItemExpanded(that._elements["item"][j], false, true);
359                                }
360                            }
361                        }
362                        // expand the accordion item containing the deep link
363                        setItemExpanded(deepLinkItem, true, true);
364                    }
365                    var hashId = window.location.hash.substring(1);
366                    if (hashId) {
367                        var hashItem = document.querySelector("[id='" + hashId + "']");
368                        if (hashItem) {
369                            hashItem.scrollIntoView();
370                        }
371                    }
372                }
373            }
374        }
375
376        /**
377         * Caches the Accordion elements as defined via the {@code data-accordion-hook="ELEMENT_NAME"} markup API.
378         *
379         * @private
380         * @param {HTMLElement} wrapper The Accordion wrapper element
381         */
382        function cacheElements(wrapper) {
383            that._elements = {};
384            that._elements.self = wrapper;
385            var hooks = that._elements.self.querySelectorAll("[data-" + NS + "-hook-" + IS + "]");
386
387            for (var i = 0; i < hooks.length; i++) {
388                var hook = hooks[i];
389                if (hook.closest("." + NS + "-" + IS) === that._elements.self) { // only process own accordion elements
390                    var capitalized = IS;
391                    capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
392                    var key = hook.dataset[NS + "Hook" + capitalized];
393                    if (that._elements[key]) {
394                        if (!Array.isArray(that._elements[key])) {
395                            var tmp = that._elements[key];
396                            that._elements[key] = [tmp];
397                        }
398                        that._elements[key].push(hook);
399                    } else {
400                        that._elements[key] = hook;
401                    }
402                }
403            }
404        }
405
406        /**
407         * Sets up properties for the Accordion based on the passed options.
408         *
409         * @private
410         * @param {Object} options The Accordion options
411         */
412        function setupProperties(options) {
413            that._properties = {};
414
415            for (var key in properties) {
416                if (Object.prototype.hasOwnProperty.call(properties, key)) {
417                    var property = properties[key];
418                    var value = null;
419
420                    if (options && options[key] != null) {
421                        value = options[key];
422
423                        // transform the provided option
424                        if (property && typeof property.transform === "function") {
425                            value = property.transform(value);
426                        }
427                    }
428
429                    if (value === null) {
430                        // value still null, take the property default
431                        value = properties[key]["default"];
432                    }
433
434                    that._properties[key] = value;
435                }
436            }
437        }
438
439        /**
440         * Binds Accordion event handling.
441         *
442         * @private
443         */
444        function bindEvents() {
445            window.addEventListener("hashchange", scrollToDeepLinkIdInAccordion, false);
446            var buttons = that._elements["button"];
447            if (buttons) {
448                for (var i = 0; i < buttons.length; i++) {
449                    (function(index) {
450                        buttons[i].addEventListener("click", function(event) {
451                            toggle(index);
452                            focusButton(index);
453                        });
454                        buttons[i].addEventListener("keydown", function(event) {
455                            onButtonKeyDown(event, index);
456                        });
457                    })(i);
458                }
459            }
460        }
461
462        /**
463         * Handles button keydown events.
464         *
465         * @private
466         * @param {Object} event The keydown event
467         * @param {Number} index The index of the button triggering the event
468         */
469        function onButtonKeyDown(event, index) {
470            var lastIndex = that._elements["button"].length - 1;
471
472            switch (event.keyCode) {
473                case keyCodes.ARROW_LEFT:
474                case keyCodes.ARROW_UP:
475                    event.preventDefault();
476                    if (index > 0) {
477                        focusButton(index - 1);
478                    }
479                    break;
480                case keyCodes.ARROW_RIGHT:
481                case keyCodes.ARROW_DOWN:
482                    event.preventDefault();
483                    if (index < lastIndex) {
484                        focusButton(index + 1);
485                    }
486                    break;
487                case keyCodes.HOME:
488                    event.preventDefault();
489                    focusButton(0);
490                    break;
491                case keyCodes.END:
492                    event.preventDefault();
493                    focusButton(lastIndex);
494                    break;
495                case keyCodes.ENTER:
496                case keyCodes.SPACE:
497                    event.preventDefault();
498                    toggle(index);
499                    focusButton(index);
500                    break;
501                default:
502                    return;
503            }
504        }
505
506        /**
507         * General handler for toggle of an item.
508         *
509         * @private
510         * @param {Number} index The index of the item to toggle
511         */
512        function toggle(index) {
513            var item = that._elements["item"][index];
514            if (item) {
515                if (that._properties.singleExpansion) {
516                    // ensure only a single item is expanded if single expansion is enabled.
517                    for (var i = 0; i < that._elements["item"].length; i++) {
518                        if (that._elements["item"][i] !== item) {
519                            var expanded = getItemExpanded(that._elements["item"][i]);
520                            if (expanded) {
521                                setItemExpanded(that._elements["item"][i], false);
522                            }
523                        }
524                    }
525                }
526                setItemExpanded(item, !getItemExpanded(item));
527
528                if (dataLayerEnabled) {
529                    var accordionId = that._elements.self.id;
530                    var expandedItems = getExpandedItems()
531                        .map(function(item) {
532                            return getDataLayerId(item);
533                        });
534
535                    var uploadPayload = { component: {} };
536                    uploadPayload.component[accordionId] = { shownItems: expandedItems };
537
538                    var removePayload = { component: {} };
539                    removePayload.component[accordionId] = { shownItems: undefined };
540
541                    dataLayer.push(removePayload);
542                    dataLayer.push(uploadPayload);
543                }
544            }
545        }
546
547        /**
548         * Sets an item's expanded state based on the provided flag and refreshes its internals.
549         *
550         * @private
551         * @param {HTMLElement} item The item to mark as expanded, or not expanded
552         * @param {Boolean} expanded true to mark the item expanded, false otherwise
553         * @param {Boolean} keepHash true to keep the hash in the URL, false to update it
554         */
555        function setItemExpanded(item, expanded, keepHash) {
556            if (expanded) {
557                item.setAttribute(dataAttributes.item.expanded, "");
558                var index = that._elements["item"].indexOf(item);
559                if (!keepHash && containerUtils) {
560                    containerUtils.updateUrlHash(that, "item", index);
561                }
562                if (dataLayerEnabled) {
563                    dataLayer.push({
564                        event: "cmp:show",
565                        eventInfo: {
566                            path: "component." + getDataLayerId(item)
567                        }
568                    });
569                }
570
571            } else {
572                item.removeAttribute(dataAttributes.item.expanded);
573                if (!keepHash && containerUtils) {
574                    containerUtils.removeUrlHash();
575                }
576                if (dataLayerEnabled) {
577                    dataLayer.push({
578                        event: "cmp:hide",
579                        eventInfo: {
580                            path: "component." + getDataLayerId(item)
581                        }
582                    });
583                }
584            }
585            refreshItem(item);
586        }
587
588        /**
589         * Gets an item's expanded state.
590         *
591         * @private
592         * @param {HTMLElement} item The item for checking its expanded state
593         * @returns {Boolean} true if the item is expanded, false otherwise
594         */
595        function getItemExpanded(item) {
596            return item && item.dataset && item.dataset["cmpExpanded"] !== undefined;
597        }
598
599        /**
600         * Refreshes an item based on its expanded state.
601         *
602         * @private
603         * @param {HTMLElement} item The item to refresh
604         */
605        function refreshItem(item) {
606            var expanded = getItemExpanded(item);
607            if (expanded) {
608                expandItem(item);
609            } else {
610                collapseItem(item);
611            }
612        }
613
614        /**
615         * Refreshes all items based on their expanded state.
616         *
617         * @private
618         */
619        function refreshItems() {
620            for (var i = 0; i < that._elements["item"].length; i++) {
621                refreshItem(that._elements["item"][i]);
622            }
623        }
624
625        /**
626         * Returns all expanded items.
627         *
628         * @private
629         * @returns {HTMLElement[]} The expanded items
630         */
631        function getExpandedItems() {
632            var expandedItems = [];
633
634            for (var i = 0; i < that._elements["item"].length; i++) {
635                var item = that._elements["item"][i];
636                var expanded = getItemExpanded(item);
637                if (expanded) {
638                    expandedItems.push(item);
639                }
640            }
641
642            return expandedItems;
643        }
644
645        /**
646         * Annotates the item and its internals with
647         * the necessary style and accessibility attributes to indicate it is expanded.
648         *
649         * @private
650         * @param {HTMLElement} item The item to annotate as expanded
651         */
652        function expandItem(item) {
653            var index = that._elements["item"].indexOf(item);
654            if (index > -1) {
655                var button = that._elements["button"][index];
656                var panel = that._elements["panel"][index];
657                button.classList.add(cssClasses.button.expanded);
658                // used to fix some known screen readers issues in reading the correct state of the 'aria-expanded' attribute
659                // e.g. https://bugs.webkit.org/show_bug.cgi?id=210934
660                setTimeout(function() {
661                    button.setAttribute("aria-expanded", true);
662                }, delay);
663                panel.classList.add(cssClasses.panel.expanded);
664                panel.classList.remove(cssClasses.panel.hidden);
665                panel.setAttribute("aria-hidden", false);
666            }
667        }
668
669        /**
670         * Annotates the item and its internals with
671         * the necessary style and accessibility attributes to indicate it is not expanded.
672         *
673         * @private
674         * @param {HTMLElement} item The item to annotate as not expanded
675         */
676        function collapseItem(item) {
677            var index = that._elements["item"].indexOf(item);
678            if (index > -1) {
679                var button = that._elements["button"][index];
680                var panel = that._elements["panel"][index];
681                button.classList.remove(cssClasses.button.expanded);
682                // used to fix some known screen readers issues in reading the correct state of the 'aria-expanded' attribute
683                // e.g. https://bugs.webkit.org/show_bug.cgi?id=210934
684                setTimeout(function() {
685                    button.setAttribute("aria-expanded", false);
686                }, delay);
687                panel.classList.add(cssClasses.panel.hidden);
688                panel.classList.remove(cssClasses.panel.expanded);
689                panel.setAttribute("aria-hidden", true);
690            }
691        }
692
693        /**
694         * Focuses the button at the provided index.
695         *
696         * @private
697         * @param {Number} index The index of the button to focus
698         */
699        function focusButton(index) {
700            var button = that._elements["button"][index];
701            button.focus();
702        }
703    }
704
705    /**
706     * Reads options data from the Accordion wrapper element, defined via {@code data-cmp-*} data attributes.
707     *
708     * @private
709     * @param {HTMLElement} element The Accordion element to read options data from
710     * @returns {Object} The options read from the component data attributes
711     */
712    function readData(element) {
713        var data = element.dataset;
714        var options = [];
715        var capitalized = IS;
716        capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
717        var reserved = ["is", "hook" + capitalized];
718
719        for (var key in data) {
720            if (Object.prototype.hasOwnProperty.call(data, key)) {
721                var value = data[key];
722
723                if (key.indexOf(NS) === 0) {
724                    key = key.slice(NS.length);
725                    key = key.charAt(0).toLowerCase() + key.substring(1);
726
727                    if (reserved.indexOf(key) === -1) {
728                        options[key] = value;
729                    }
730                }
731            }
732        }
733
734        return options;
735    }
736
737    /**
738     * Parses the dataLayer string and returns the ID
739     *
740     * @private
741     * @param {HTMLElement} item the accordion item
742     * @returns {String} dataLayerId or undefined
743     */
744    function getDataLayerId(item) {
745        if (item) {
746            if (item.dataset.cmpDataLayer) {
747                return Object.keys(JSON.parse(item.dataset.cmpDataLayer))[0];
748            } else {
749                return item.id;
750            }
751        }
752        return null;
753    }
754
755    /**
756     * Document ready handler and DOM mutation observers. Initializes Accordion components as necessary.
757     *
758     * @private
759     */
760    function onDocumentReady() {
761        dataLayerEnabled = document.body.hasAttribute("data-cmp-data-layer-enabled");
762        if (dataLayerEnabled) {
763            dataLayerName = document.body.getAttribute("data-cmp-data-layer-name") || "adobeDataLayer";
764            dataLayer = window[dataLayerName] = window[dataLayerName] || [];
765        }
766
767        var elements = document.querySelectorAll(selectors.self);
768        for (var i = 0; i < elements.length; i++) {
769            new Accordion({ element: elements[i], options: readData(elements[i]) });
770        }
771
772        var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
773        var body = document.querySelector("body");
774        var observer = new MutationObserver(function(mutations) {
775            mutations.forEach(function(mutation) {
776                // needed for IE
777                var nodesArray = [].slice.call(mutation.addedNodes);
778                if (nodesArray.length > 0) {
779                    nodesArray.forEach(function(addedNode) {
780                        if (addedNode.querySelectorAll) {
781                            var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self));
782                            elementsArray.forEach(function(element) {
783                                new Accordion({ element: element, options: readData(element) });
784                            });
785                        }
786                    });
787                }
788            });
789        });
790
791        observer.observe(body, {
792            subtree: true,
793            childList: true,
794            characterData: true
795        });
796    }
797
798    if (document.readyState !== "loading") {
799        onDocumentReady();
800    } else {
801        document.addEventListener("DOMContentLoaded", onDocumentReady);
802    }
803
804    if (containerUtils) {
805        window.addEventListener("load", containerUtils.scrollToAnchor, false);
806    }
807
808}());
809
810/*******************************************************************************
811 * Copyright 2018 Adobe
812 *
813 * Licensed under the Apache License, Version 2.0 (the "License");
814 * you may not use this file except in compliance with the License.
815 * You may obtain a copy of the License at
816 *
817 *     http://www.apache.org/licenses/LICENSE2.0
818 *
819 * Unless required by applicable law or agreed to in writing, software
820 * distributed under the License is distributed on an "AS IS" BASIS,
821 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
822 * See the License for the specific language governing permissions and
823 * limitations under the License.
824 ******************************************************************************/
825
826/**
827 * Element.matches()
828 * https://developer.mozilla.org/enUS/docs/Web/API/Element/matches#Polyfill
829 */
830if (!Element.prototype.matches) {
831    Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
832}
833
834// eslint-disable-next-line valid-jsdoc
835/**
836 * Element.closest()
837 * https://developer.mozilla.org/enUS/docs/Web/API/Element/closest#Polyfill
838 */
839if (!Element.prototype.closest) {
840    Element.prototype.closest = function(s) {
841        "use strict";
842        var el = this;
843        if (!document.documentElement.contains(el)) {
844            return null;
845        }
846        do {
847            if (el.matches(s)) {
848                return el;
849            }
850            el = el.parentElement || el.parentNode;
851        } while (el !== null && el.nodeType === 1);
852        return null;
853    };
854}
855
856/*******************************************************************************
857 * Copyright 2018 Adobe
858 *
859 * Licensed under the Apache License, Version 2.0 (the "License");
860 * you may not use this file except in compliance with the License.
861 * You may obtain a copy of the License at
862 *
863 *     http://www.apache.org/licenses/LICENSE-2.0
864 *
865 * Unless required by applicable law or agreed to in writing, software
866 * distributed under the License is distributed on an "AS IS" BASIS,
867 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
868 * See the License for the specific language governing permissions and
869 * limitations under the License.
870 ******************************************************************************/
871/* global
872    CQ
873 */
874(function() {
875    "use strict";
876
877    var containerUtils = window.CQ && window.CQ.CoreComponents && window.CQ.CoreComponents.container && window.CQ.CoreComponents.container.utils ? window.CQ.CoreComponents.container.utils : undefined;
878    if (!containerUtils) {
879        // eslint-disable-next-line no-console
880        console.warn("Tabs: container utilities at window.CQ.CoreComponents.container.utils are not available. This can lead to missing features. Ensure the core.wcm.components.commons.site.container client library is included on the page.");
881    }
882    var dataLayerEnabled;
883    var dataLayer;
884    var dataLayerName;
885
886    var NS = "cmp";
887    var IS = "tabs";
888
889    var keyCodes = {
890        END: 35,
891        HOME: 36,
892        ARROW_LEFT: 37,
893        ARROW_UP: 38,
894        ARROW_RIGHT: 39,
895        ARROW_DOWN: 40
896    };
897
898    var selectors = {
899        self: "[data-" + NS + '-is="' + IS + '"]',
900        active: {
901            tab: "cmp-tabs__tab--active",
902            tabpanel: "cmp-tabs__tabpanel--active"
903        }
904    };
905
906    /**
907     * Tabs Configuration
908     *
909     * @typedef {Object} TabsConfig Represents a Tabs configuration
910     * @property {HTMLElement} element The HTMLElement representing the Tabs
911     * @property {Object} options The Tabs options
912     */
913
914    /**
915     * Tabs
916     *
917     * @class Tabs
918     * @classdesc An interactive Tabs component for navigating a list of tabs
919     * @param {TabsConfig} config The Tabs configuration
920     */
921    function Tabs(config) {
922        var that = this;
923
924        if (config && config.element) {
925            init(config);
926        }
927
928        /**
929         * Initializes the Tabs
930         *
931         * @private
932         * @param {TabsConfig} config The Tabs configuration
933         */
934        function init(config) {
935            that._config = config;
936
937            // prevents multiple initialization
938            config.element.removeAttribute("data-" + NS + "-is");
939
940            cacheElements(config.element);
941            that._active = getActiveIndex(that._elements["tab"]);
942
943            if (that._elements.tabpanel) {
944                refreshActive();
945                bindEvents();
946                scrollToDeepLinkIdInTabs();
947            }
948
949            if (window.Granite && window.Granite.author && window.Granite.author.MessageChannel) {
950                /*
951                 * Editor message handling:
952                 * - subscribe to "cmp.panelcontainer" message requests sent by the editor frame
953                 * - check that the message data panel container type is correct and that the id (path) matches this specific Tabs component
954                 * - if so, route the "navigate" operation to enact a navigation of the Tabs based on index data
955                 */
956                CQ.CoreComponents.MESSAGE_CHANNEL = CQ.CoreComponents.MESSAGE_CHANNEL || new window.Granite.author.MessageChannel("cqauthor", window);
957                CQ.CoreComponents.MESSAGE_CHANNEL.subscribeRequestMessage("cmp.panelcontainer", function(message) {
958                    if (message.data && message.data.type === "cmp-tabs" && message.data.id === that._elements.self.dataset["cmpPanelcontainerId"]) {
959                        if (message.data.operation === "navigate") {
960                            navigate(message.data.index);
961                        }
962                    }
963                });
964            }
965        }
966
967        /**
968         * Displays the panel containing the element that corresponds to the deep link in the URI fragment
969         * and scrolls the browser to this element.
970         */
971        function scrollToDeepLinkIdInTabs() {
972            if (containerUtils) {
973                var deepLinkItemIdx = containerUtils.getDeepLinkItemIdx(that, "tab", "tabpanel");
974                if (deepLinkItemIdx > -1) {
975                    var deepLinkItem = that._elements["tab"][deepLinkItemIdx];
976                    if (deepLinkItem && that._elements["tab"][that._active].id !== deepLinkItem.id) {
977                        navigateAndFocusTab(deepLinkItemIdx, true);
978                    }
979                    var hashId = window.location.hash.substring(1);
980                    if (hashId) {
981                        var hashItem = document.querySelector("[id='" + hashId + "']");
982                        if (hashItem) {
983                            hashItem.scrollIntoView();
984                        }
985                    }
986                }
987            }
988        }
989
990        /**
991         * Returns the index of the active tab, if no tab is active returns 0
992         *
993         * @param {Array} tabs Tab elements
994         * @returns {Number} Index of the active tab, 0 if none is active
995         */
996        function getActiveIndex(tabs) {
997            if (tabs) {
998                for (var i = 0; i < tabs.length; i++) {
999                    if (tabs[i].classList.contains(selectors.active.tab)) {
1000                        return i;
1001                    }
1002                }
1003            }
1004            return 0;
1005        }
1006
1007        /**
1008         * Caches the Tabs elements as defined via the {@code data-tabs-hook="ELEMENT_NAME"} markup API
1009         *
1010         * @private
1011         * @param {HTMLElement} wrapper The Tabs wrapper element
1012         */
1013        function cacheElements(wrapper) {
1014            that._elements = {};
1015            that._elements.self = wrapper;
1016            var hooks = that._elements.self.querySelectorAll("[data-" + NS + "-hook-" + IS + "]");
1017
1018            for (var i = 0; i < hooks.length; i++) {
1019                var hook = hooks[i];
1020                if (hook.closest("." + NS + "-" + IS) === that._elements.self) { // only process own tab elements
1021                    var capitalized = IS;
1022                    capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
1023                    var key = hook.dataset[NS + "Hook" + capitalized];
1024                    if (that._elements[key]) {
1025                        if (!Array.isArray(that._elements[key])) {
1026                            var tmp = that._elements[key];
1027                            that._elements[key] = [tmp];
1028                        }
1029                        that._elements[key].push(hook);
1030                    } else {
1031                        that._elements[key] = hook;
1032                    }
1033                }
1034            }
1035        }
1036
1037        /**
1038         * Binds Tabs event handling
1039         *
1040         * @private
1041         */
1042        function bindEvents() {
1043            window.addEventListener("hashchange", scrollToDeepLinkIdInTabs, false);
1044            var tabs = that._elements["tab"];
1045            if (tabs) {
1046                for (var i = 0; i < tabs.length; i++) {
1047                    (function(index) {
1048                        tabs[i].addEventListener("click", function(event) {
1049                            navigateAndFocusTab(index);
1050                        });
1051                        tabs[i].addEventListener("keydown", function(event) {
1052                            onKeyDown(event);
1053                        });
1054                    })(i);
1055                }
1056            }
1057        }
1058
1059        /**
1060         * Handles tab keydown events
1061         *
1062         * @private
1063         * @param {Object} event The keydown event
1064         */
1065        function onKeyDown(event) {
1066            var index = that._active;
1067            var lastIndex = that._elements["tab"].length - 1;
1068
1069            switch (event.keyCode) {
1070                case keyCodes.ARROW_LEFT:
1071                case keyCodes.ARROW_UP:
1072                    event.preventDefault();
1073                    if (index > 0) {
1074                        navigateAndFocusTab(index - 1);
1075                    }
1076                    break;
1077                case keyCodes.ARROW_RIGHT:
1078                case keyCodes.ARROW_DOWN:
1079                    event.preventDefault();
1080                    if (index < lastIndex) {
1081                        navigateAndFocusTab(index + 1);
1082                    }
1083                    break;
1084                case keyCodes.HOME:
1085                    event.preventDefault();
1086                    navigateAndFocusTab(0);
1087                    break;
1088                case keyCodes.END:
1089                    event.preventDefault();
1090                    navigateAndFocusTab(lastIndex);
1091                    break;
1092                default:
1093                    return;
1094            }
1095        }
1096
1097        /**
1098         * Refreshes the tab markup based on the current {@code Tabs#_active} index
1099         *
1100         * @private
1101         */
1102        function refreshActive() {
1103            var tabpanels = that._elements["tabpanel"];
1104            var tabs = that._elements["tab"];
1105
1106            if (tabpanels) {
1107                if (Array.isArray(tabpanels)) {
1108                    for (var i = 0; i < tabpanels.length; i++) {
1109                        if (i === parseInt(that._active)) {
1110                            tabpanels[i].classList.add(selectors.active.tabpanel);
1111                            tabpanels[i].removeAttribute("aria-hidden");
1112                            tabs[i].classList.add(selectors.active.tab);
1113                            tabs[i].setAttribute("aria-selected", true);
1114                            tabs[i].setAttribute("tabindex", "0");
1115                        } else {
1116                            tabpanels[i].classList.remove(selectors.active.tabpanel);
1117                            tabpanels[i].setAttribute("aria-hidden", true);
1118                            tabs[i].classList.remove(selectors.active.tab);
1119                            tabs[i].setAttribute("aria-selected", false);
1120                            tabs[i].setAttribute("tabindex", "-1");
1121                        }
1122                    }
1123                } else {
1124                    // only one tab
1125                    tabpanels.classList.add(selectors.active.tabpanel);
1126                    tabs.classList.add(selectors.active.tab);
1127                }
1128            }
1129        }
1130
1131        /**
1132         * Focuses the element and prevents scrolling the element into view
1133         *
1134         * @param {HTMLElement} element Element to focus
1135         */
1136        function focusWithoutScroll(element) {
1137            var x = window.scrollX || window.pageXOffset;
1138            var y = window.scrollY || window.pageYOffset;
1139            element.focus();
1140            window.scrollTo(x, y);
1141        }
1142
1143        /**
1144         * Navigates to the tab at the provided index
1145         *
1146         * @private
1147         * @param {Number} index The index of the tab to navigate to
1148         */
1149        function navigate(index) {
1150            that._active = index;
1151            refreshActive();
1152        }
1153
1154        /**
1155         * Navigates to the item at the provided index and ensures the active tab gains focus
1156         *
1157         * @private
1158         * @param {Number} index The index of the item to navigate to
1159         * @param {Boolean} keepHash true to keep the hash in the URL, false to update it
1160         */
1161        function navigateAndFocusTab(index, keepHash) {
1162            var exActive = that._active;
1163            if (!keepHash && containerUtils) {
1164                containerUtils.updateUrlHash(that, "tab", index);
1165            }
1166            navigate(index);
1167            focusWithoutScroll(that._elements["tab"][index]);
1168
1169            if (dataLayerEnabled) {
1170
1171                var activeItem = getDataLayerId(that._elements.tabpanel[index]);
1172                var exActiveItem = getDataLayerId(that._elements.tabpanel[exActive]);
1173
1174                dataLayer.push({
1175                    event: "cmp:show",
1176                    eventInfo: {
1177                        path: "component." + activeItem
1178                    }
1179                });
1180
1181                dataLayer.push({
1182                    event: "cmp:hide",
1183                    eventInfo: {
1184                        path: "component." + exActiveItem
1185                    }
1186                });
1187
1188                var tabsId = that._elements.self.id;
1189                var uploadPayload = { component: {} };
1190                uploadPayload.component[tabsId] = { shownItems: [activeItem] };
1191
1192                var removePayload = { component: {} };
1193                removePayload.component[tabsId] = { shownItems: undefined };
1194
1195                dataLayer.push(removePayload);
1196                dataLayer.push(uploadPayload);
1197            }
1198        }
1199    }
1200
1201    /**
1202     * Reads options data from the Tabs wrapper element, defined via {@code data-cmp-*} data attributes
1203     *
1204     * @private
1205     * @param {HTMLElement} element The Tabs element to read options data from
1206     * @returns {Object} The options read from the component data attributes
1207     */
1208    function readData(element) {
1209        var data = element.dataset;
1210        var options = [];
1211        var capitalized = IS;
1212        capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
1213        var reserved = ["is", "hook" + capitalized];
1214
1215        for (var key in data) {
1216            if (Object.prototype.hasOwnProperty.call(data, key)) {
1217                var value = data[key];
1218
1219                if (key.indexOf(NS) === 0) {
1220                    key = key.slice(NS.length);
1221                    key = key.charAt(0).toLowerCase() + key.substring(1);
1222
1223                    if (reserved.indexOf(key) === -1) {
1224                        options[key] = value;
1225                    }
1226                }
1227            }
1228        }
1229
1230        return options;
1231    }
1232
1233    /**
1234     * Parses the dataLayer string and returns the ID
1235     *
1236     * @private
1237     * @param {HTMLElement} item the accordion item
1238     * @returns {String} dataLayerId or undefined
1239     */
1240    function getDataLayerId(item) {
1241        if (item) {
1242            if (item.dataset.cmpDataLayer) {
1243                return Object.keys(JSON.parse(item.dataset.cmpDataLayer))[0];
1244            } else {
1245                return item.id;
1246            }
1247        }
1248        return null;
1249    }
1250
1251    /**
1252     * Document ready handler and DOM mutation observers. Initializes Tabs components as necessary.
1253     *
1254     * @private
1255     */
1256    function onDocumentReady() {
1257        dataLayerEnabled = document.body.hasAttribute("data-cmp-data-layer-enabled");
1258        if (dataLayerEnabled) {
1259            dataLayerName = document.body.getAttribute("data-cmp-data-layer-name") || "adobeDataLayer";
1260            dataLayer = window[dataLayerName] = window[dataLayerName] || [];
1261        }
1262
1263        var elements = document.querySelectorAll(selectors.self);
1264        for (var i = 0; i < elements.length; i++) {
1265            new Tabs({ element: elements[i], options: readData(elements[i]) });
1266        }
1267
1268        var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
1269        var body = document.querySelector("body");
1270        var observer = new MutationObserver(function(mutations) {
1271            mutations.forEach(function(mutation) {
1272                // needed for IE
1273                var nodesArray = [].slice.call(mutation.addedNodes);
1274                if (nodesArray.length > 0) {
1275                    nodesArray.forEach(function(addedNode) {
1276                        if (addedNode.querySelectorAll) {
1277                            var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self));
1278                            elementsArray.forEach(function(element) {
1279                                new Tabs({ element: element, options: readData(element) });
1280                            });
1281                        }
1282                    });
1283                }
1284            });
1285        });
1286
1287        observer.observe(body, {
1288            subtree: true,
1289            childList: true,
1290            characterData: true
1291        });
1292    }
1293
1294    if (document.readyState !== "loading") {
1295        onDocumentReady();
1296    } else {
1297        document.addEventListener("DOMContentLoaded", onDocumentReady);
1298    }
1299
1300    if (containerUtils) {
1301        window.addEventListener("load", containerUtils.scrollToAnchor, false);
1302    }
1303
1304}());
1305
1306/*******************************************************************************
1307 * Copyright 2017 Adobe
1308 *
1309 * Licensed under the Apache License, Version 2.0 (the "License");
1310 * you may not use this file except in compliance with the License.
1311 * You may obtain a copy of the License at
1312 *
1313 *     http://www.apache.org/licenses/LICENSE-2.0
1314 *
1315 * Unless required by applicable law or agreed to in writing, software
1316 * distributed under the License is distributed on an "AS IS" BASIS,
1317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1318 * See the License for the specific language governing permissions and
1319 * limitations under the License.
1320 ******************************************************************************/
1321if (window.Element && !Element.prototype.closest) {
1322    // eslint valid-jsdoc: "off"
1323    Element.prototype.closest =
1324        function(s) {
1325            "use strict";
1326            var matches = (this.document || this.ownerDocument).querySelectorAll(s);
1327            var el      = this;
1328            var i;
1329            do {
1330                i = matches.length;
1331                while (--i >= 0 && matches.item(i) !== el) {
1332                    // continue
1333                }
1334            } while ((i < 0) && (el = el.parentElement));
1335            return el;
1336        };
1337}
1338
1339if (window.Element && !Element.prototype.matches) {
1340    Element.prototype.matches =
1341        Element.prototype.matchesSelector ||
1342        Element.prototype.mozMatchesSelector ||
1343        Element.prototype.msMatchesSelector ||
1344        Element.prototype.oMatchesSelector ||
1345        Element.prototype.webkitMatchesSelector ||
1346        function(s) {
1347            "use strict";
1348            var matches = (this.document || this.ownerDocument).querySelectorAll(s);
1349            var i       = matches.length;
1350            while (--i >= 0 && matches.item(i) !== this) {
1351                // continue
1352            }
1353            return i > -1;
1354        };
1355}
1356
1357if (!Object.assign) {
1358    Object.assign = function(target, varArgs) { // .length of function is 2
1359        "use strict";
1360        if (target === null) {
1361            throw new TypeError("Cannot convert undefined or null to object");
1362        }
1363
1364        var to = Object(target);
1365
1366        for (var index = 1; index < arguments.length; index++) {
1367            var nextSource = arguments[index];
1368
1369            if (nextSource !== null) {
1370                for (var nextKey in nextSource) {
1371                    if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
1372                        to[nextKey] = nextSource[nextKey];
1373                    }
1374                }
1375            }
1376        }
1377        return to;
1378    };
1379}
1380
1381(function(arr) {
1382    "use strict";
1383    arr.forEach(function(item) {
1384        if (Object.prototype.hasOwnProperty.call(item, "remove")) {
1385            return;
1386        }
1387        Object.defineProperty(item, "remove", {
1388            configurable: true,
1389            enumerable: true,
1390            writable: true,
1391            value: function remove() {
1392                this.parentNode.removeChild(this);
1393            }
1394        });
1395    });
1396})([Element.prototype, CharacterData.prototype, DocumentType.prototype]);
1397
1398/*******************************************************************************
1399 * Copyright 2022 Adobe
1400 *
1401 * Licensed under the Apache License, Version 2.0 (the "License");
1402 * you may not use this file except in compliance with the License.
1403 * You may obtain a copy of the License at
1404 *
1405 *     http://www.apache.org/licenses/LICENSE-2.0
1406 *
1407 * Unless required by applicable law or agreed to in writing, software
1408 * distributed under the License is distributed on an "AS IS" BASIS,
1409 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1410 * See the License for the specific language governing permissions and
1411 * limitations under the License.
1412 ******************************************************************************/
1413(function(document) {
1414    "use strict";
1415
1416    window.CMP = window.CMP || {};
1417    window.CMP.utils = (function() {
1418        var NS = "cmp";
1419
1420        /**
1421         * Reads options data from the Component wrapper element, defined via {@code data-cmp-*} data attributes
1422         *
1423         * @param {HTMLElement} element The component element to read options data from
1424         * @param {String} is The component identifier
1425         * @returns {String[]} The options read from the component data attributes
1426         */
1427        var readData = function(element, is) {
1428            var data = element.dataset;
1429            var options = [];
1430            var capitalized = is;
1431            capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
1432            var reserved = ["is", "hook" + capitalized];
1433
1434            for (var key in data) {
1435                if (Object.prototype.hasOwnProperty.call(data, key)) {
1436                    var value = data[key];
1437
1438                    if (key.indexOf(NS) === 0) {
1439                        key = key.slice(NS.length);
1440                        key = key.charAt(0).toLowerCase() + key.substring(1);
1441
1442                        if (reserved.indexOf(key) === -1) {
1443                            options[key] = value;
1444                        }
1445                    }
1446                }
1447            }
1448            return options;
1449        };
1450
1451        /**
1452         * Set up the final properties of a component by evaluating the transform function or fall back to the default value on demand
1453         * @param {String[]} options the options to transform
1454         * @param {Object} properties object of properties of property functions
1455         * @returns {Object} transformed properties
1456         */
1457        var setupProperties = function(options, properties) {
1458            var transformedProperties = {};
1459
1460            for (var key in properties) {
1461                if (Object.prototype.hasOwnProperty.call(properties, key)) {
1462                    var property = properties[key];
1463                    if (options && options[key] != null) {
1464                        if (property && typeof property.transform === "function") {
1465                            transformedProperties[key] = property.transform(options[key]);
1466                        } else {
1467                            transformedProperties[key] = options[key];
1468                        }
1469                    } else {
1470                        transformedProperties[key] = properties[key]["default"];
1471                    }
1472                }
1473            }
1474            return transformedProperties;
1475        };
1476
1477
1478        return {
1479            readData: readData,
1480            setupProperties: setupProperties
1481        };
1482    }());
1483}(window.document));
1484
1485/*******************************************************************************
1486 * Copyright 2022 Adobe
1487 *
1488 * Licensed under the Apache License, Version 2.0 (the "License");
1489 * you may not use this file except in compliance with the License.
1490 * You may obtain a copy of the License at
1491 *
1492 *     http://www.apache.org/licenses/LICENSE-2.0
1493 *
1494 * Unless required by applicable law or agreed to in writing, software
1495 * distributed under the License is distributed on an "AS IS" BASIS,
1496 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1497 * See the License for the specific language governing permissions and
1498 * limitations under the License.
1499 ******************************************************************************/
1500(function(document) {
1501    "use strict";
1502
1503    window.CMP = window.CMP || {};
1504    window.CMP.image = window.CMP.image || {};
1505    window.CMP.image.dynamicMedia = (function() {
1506        var autoSmartCrops = {};
1507        var SRC_URI_TEMPLATE_WIDTH_VAR = "{.width}";
1508        var SRC_URI_TEMPLATE_DPR_VAR = "{dpr}";
1509        var SRC_URI_DPR_OFF = "dpr=off";
1510        var SRC_URI_DPR_ON = "dpr=on,{dpr}";
1511        var dpr = window.devicePixelRatio || 1;
1512        var config = {
1513            minWidth: 20
1514        };
1515
1516        /**
1517         * get auto smart crops from dm
1518         * @param {String} src the src uri
1519         * @returns {{}} the smart crop json object
1520         */
1521        var getAutoSmartCrops = function(src) {
1522            var request = new XMLHttpRequest();
1523            var url = src.split(SRC_URI_TEMPLATE_WIDTH_VAR)[0] + "?req=set,json";
1524            request.open("GET", url, false);
1525            request.onload = function() {
1526                if (request.status >= 200 && request.status < 400) {
1527                    // success status
1528                    var responseText = request.responseText;
1529                    var rePayload = new RegExp(/^(?:\/\*jsonp\*\/)?\s*([^()]+)\(([\s\S]+),\s*"[0-9]*"\);?$/gmi);
1530                    var rePayloadJSON = new RegExp(/^{[\s\S]*}$/gmi);
1531                    var resPayload = rePayload.exec(responseText);
1532                    var payload;
1533                    if (resPayload) {
1534                        var payloadStr = resPayload[2];
1535                        if (rePayloadJSON.test(payloadStr)) {
1536                            payload = JSON.parse(payloadStr);
1537                        }
1538
1539                    }
1540                    // check "relation" - only in case of smartcrop preset
1541                    if (payload && payload.set.relation && payload.set.relation.length > 0) {
1542                        for (var i = 0; i < payload.set.relation.length; i++) {
1543                            autoSmartCrops[parseInt(payload.set.relation[i].userdata.SmartCropWidth)] =
1544                                ":" + payload.set.relation[i].userdata.SmartCropDef;
1545                        }
1546                    }
1547                } else {
1548                    // error status
1549                }
1550            };
1551            request.send();
1552            return autoSmartCrops;
1553        };
1554
1555        /**
1556         * Build and return the srcset value based on the available auto smart crops
1557         * @param {String} src the src uri
1558         * @param {Object} smartCrops the smart crops object
1559         * @returns {String} the srcset
1560         */
1561        var getSrcSet = function(src, smartCrops) {
1562            var srcset;
1563            var keys = Object.keys(smartCrops);
1564            if (keys.length > 0) {
1565                srcset = [];
1566                for (var key in autoSmartCrops) {
1567                    srcset.push(src.replace(SRC_URI_TEMPLATE_WIDTH_VAR, smartCrops[key]) + " " + key + "w");
1568                }
1569            }
1570            return  srcset.join(",");
1571        };
1572
1573        /**
1574         * Get the optimal width based on the available sizes
1575         * @param {[Number]} sizes the available sizes
1576         * @param {Number} width the element width
1577         * @returns {String} the optimal width
1578         */
1579        function getOptimalWidth(sizes, width) {
1580            var len = sizes.length;
1581            var key = 0;
1582
1583            while ((key < len - 1) && (sizes[key] < width)) {
1584                key++;
1585            }
1586
1587            return sizes[key] !== undefined ? sizes[key].toString() : width;
1588        }
1589
1590        /**
1591         * Get the width of an element or parent element if the width is smaller than the minimum width
1592         * @param {HTMLElement} component the image component
1593         * @param {HTMLElement | Node} parent the parent element
1594         * @returns {Number} the width of the element
1595         */
1596        var getWidth = function(component, parent) {
1597            var width = component.offsetWidth;
1598            while (width < config.minWidth && parent && !component._autoWidth) {
1599                width =  parent.offsetWidth;
1600                parent = parent.parentNode;
1601            }
1602            return width;
1603        };
1604
1605        /**
1606         * Set the src and srcset attribute for a Dynamic Media Image which auto smart crops enabled.
1607         * @param {HTMLElement} component the image component
1608         * @param {{}} properties the component properties
1609         */
1610        var setDMAttributes = function(component, properties) {
1611            // for v3 we first have to turn the dpr on
1612            var src = properties.src.replace(SRC_URI_DPR_OFF, SRC_URI_DPR_ON);
1613            src = src.replace(SRC_URI_TEMPLATE_DPR_VAR, dpr);
1614            var smartCrops = {};
1615            var width;
1616            if (properties["smartcroprendition"] === "SmartCrop:Auto") {
1617                smartCrops = getAutoSmartCrops(src);
1618            }
1619            var hasWidths = (properties.widths && properties.widths.length > 0) || Object.keys(smartCrops).length > 0;
1620            if (hasWidths) {
1621                var image = component.querySelector("img");
1622                var elemWidth = getWidth(component, component.parentNode);
1623                if (properties["smartcroprendition"] === "SmartCrop:Auto") {
1624                    image.setAttribute("srcset", CMP.image.dynamicMedia.getSrcSet(src, smartCrops));
1625                    width = getOptimalWidth(Object.keys(smartCrops, elemWidth));
1626                    image.setAttribute("src", CMP.image.dynamicMedia.getSrc(src, smartCrops[width]));
1627                } else {
1628                    width = getOptimalWidth(properties.widths, elemWidth);
1629                    image.setAttribute("src", CMP.image.dynamicMedia.getSrc(src, width));
1630                }
1631            }
1632        };
1633
1634        /**
1635         * Get the src attribute based on the optimal width
1636         * @param {String} src the src uri
1637         * @param {String} width the element width
1638         * @returns {String} the final src attribute
1639         */
1640        var getSrc = function(src, width) {
1641            if (src.indexOf(SRC_URI_TEMPLATE_WIDTH_VAR) > -1) {
1642                src = src.replace(SRC_URI_TEMPLATE_WIDTH_VAR, width);
1643            }
1644            return src;
1645        };
1646
1647
1648        return {
1649            getAutoSmartCrops: getAutoSmartCrops,
1650            getSrcSet: getSrcSet,
1651            getSrc: getSrc,
1652            setDMAttributes: setDMAttributes,
1653            getWidth: getWidth
1654        };
1655    }());
1656    document.dispatchEvent(new CustomEvent("core.wcm.components.commons.site.image.dynamic-media.loaded"));
1657}(window.document));
1658
1659/*******************************************************************************
1660 * Copyright 2016 Adobe
1661 *
1662 * Licensed under the Apache License, Version 2.0 (the "License");
1663 * you may not use this file except in compliance with the License.
1664 * You may obtain a copy of the License at
1665 *
1666 *     http://www.apache.org/licenses/LICENSE-2.0
1667 *
1668 * Unless required by applicable law or agreed to in writing, software
1669 * distributed under the License is distributed on an "AS IS" BASIS,
1670 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1671 * See the License for the specific language governing permissions and
1672 * limitations under the License.
1673 ******************************************************************************/
1674(function() {
1675    "use strict";
1676
1677    var NS = "cmp";
1678    var IS = "image";
1679
1680    var EMPTY_PIXEL = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
1681    var LAZY_THRESHOLD_DEFAULT = 0;
1682    var SRC_URI_TEMPLATE_WIDTH_VAR = "{.width}";
1683    var SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY = "width={width}";
1684    var SRC_URI_TEMPLATE_DPR_VAR = "{dpr}";
1685
1686    var selectors = {
1687        self: "[data-" + NS + '-is="' + IS + '"]',
1688        image: '[data-cmp-hook-image="image"]',
1689        map: '[data-cmp-hook-image="map"]',
1690        area: '[data-cmp-hook-image="area"]'
1691    };
1692
1693    var lazyLoader = {
1694        "cssClass": "cmp-image__image--is-loading",
1695        "style": {
1696            "height": 0,
1697            "padding-bottom": "" // will be replaced with % ratio
1698        }
1699    };
1700
1701    var properties = {
1702        /**
1703         * An array of alternative image widths (in pixels).
1704         * Used to replace a {.width} variable in the src property with an optimal width if a URI template is provided.
1705         *
1706         * @memberof Image
1707         * @type {Number[]}
1708         * @default []
1709         */
1710        "widths": {
1711            "default": [],
1712            "transform": function(value) {
1713                var widths = [];
1714                value.split(",").forEach(function(item) {
1715                    item = parseFloat(item);
1716                    if (!isNaN(item)) {
1717                        widths.push(item);
1718                    }
1719                });
1720                return widths;
1721            }
1722        },
1723        /**
1724         * Indicates whether the image should be rendered lazily.
1725         *
1726         * @memberof Image
1727         * @type {Boolean}
1728         * @default false
1729         */
1730        "lazy": {
1731            "default": false,
1732            "transform": function(value) {
1733                return !(value === null || typeof value === "undefined");
1734            }
1735        },
1736        /**
1737         * Indicates image is DynamicMedia image.
1738         *
1739         * @memberof Image
1740         * @type {Boolean}
1741         * @default false
1742         */
1743        "dmimage": {
1744            "default": false,
1745            "transform": function(value) {
1746                return !(value === null || typeof value === "undefined");
1747            }
1748        },
1749        /**
1750         * The lazy threshold.
1751         * This is the number of pixels, in advance of becoming visible, when an lazy-loading image should begin
1752         * to load.
1753         *
1754         * @memberof Image
1755         * @type {Number}
1756         * @default 0
1757         */
1758        "lazythreshold": {
1759            "default": 0,
1760            "transform": function(value) {
1761                var val =  parseInt(value);
1762                if (isNaN(val)) {
1763                    return LAZY_THRESHOLD_DEFAULT;
1764                }
1765                return val;
1766            }
1767        },
1768        /**
1769         * The image source.
1770         *
1771         * Can be a simple image source, or a URI template representation that
1772         * can be variable expanded - useful for building an image configuration with an alternative width.
1773         * e.g. '/path/image.coreimg{.width}.jpeg/1506620954214.jpeg'
1774         *
1775         * @memberof Image
1776         * @type {String}
1777         */
1778        "src": {
1779            "transform": function(value) {
1780                return decodeURIComponent(value);
1781            }
1782        }
1783    };
1784
1785    var devicePixelRatio = window.devicePixelRatio || 1;
1786
1787    function Image(config) {
1788        var that = this;
1789
1790        var smartCrops = {};
1791
1792        var useAssetDelivery = false;
1793        var srcUriTemplateWidthVar = SRC_URI_TEMPLATE_WIDTH_VAR;
1794
1795        function init(config) {
1796            // prevents multiple initialization
1797            config.element.removeAttribute("data-" + NS + "-is");
1798
1799            // check if asset delivery is used
1800            if (config.options.src && config.options.src.indexOf(SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY) >= 0) {
1801                useAssetDelivery = true;
1802                srcUriTemplateWidthVar = SRC_URI_TEMPLATE_WIDTH_VAR_ASSET_DELIVERY;
1803            }
1804
1805            that._properties = CMP.utils.setupProperties(config.options, properties);
1806            cacheElements(config.element);
1807            // check image is DM asset; if true try to make req=set
1808            if (config.options.src && Object.prototype.hasOwnProperty.call(config.options, "dmimage") && (config.options["smartcroprendition"] === "SmartCrop:Auto")) {
1809                smartCrops = CMP.image.dynamicMedia.getAutoSmartCrops(config.options.src);
1810            }
1811
1812            if (!that._elements.noscript) {
1813                return;
1814            }
1815
1816            that._elements.container = that._elements.link ? that._elements.link : that._elements.self;
1817
1818            unwrapNoScript();
1819
1820            if (that._properties.lazy) {
1821                addLazyLoader();
1822            }
1823
1824            if (that._elements.map) {
1825                that._elements.image.addEventListener("load", onLoad);
1826            }
1827
1828            window.addEventListener("resize", onWindowResize);
1829            ["focus", "click", "load", "transitionend", "animationend", "scroll"].forEach(function(name) {
1830                document.addEventListener(name, that.update);
1831            });
1832
1833            that._elements.image.addEventListener("cmp-image-redraw", that.update);
1834
1835            that._interSectionObserver = new IntersectionObserver(function(entries, interSectionObserver) {
1836                entries.forEach(function(entry) {
1837                    if (entry.intersectionRatio > 0) {
1838                        that.update();
1839                    }
1840                });
1841            });
1842            that._interSectionObserver.observe(that._elements.self);
1843
1844            that.update();
1845        }
1846
1847        function loadImage() {
1848            var hasWidths = (that._properties.widths && that._properties.widths.length > 0) || Object.keys(smartCrops).length > 0;
1849            var replacement;
1850            if (Object.keys(smartCrops).length > 0) {
1851                var optimalWidth = getOptimalWidth(Object.keys(smartCrops), false);
1852                replacement = smartCrops[optimalWidth];
1853            } else {
1854                replacement = hasWidths ? (that._properties.dmimage ? "" : ".") + getOptimalWidth(that._properties.widths, true) : "";
1855            }
1856            if (useAssetDelivery) {
1857                replacement = replacement !== "" ? ("width=" + replacement.substring(1)) : "";
1858            }
1859            var url = that._properties.src.replace(srcUriTemplateWidthVar, replacement);
1860            url = url.replace(SRC_URI_TEMPLATE_DPR_VAR, devicePixelRatio);
1861
1862            var imgSrcAttribute = that._elements.image.getAttribute("src");
1863
1864            if (url !== imgSrcAttribute) {
1865                if (imgSrcAttribute === null || imgSrcAttribute === EMPTY_PIXEL) {
1866                    that._elements.image.setAttribute("src", url);
1867                } else {
1868                    var urlTemplateParts = that._properties.src.split(srcUriTemplateWidthVar);
1869                    // check if image src was dynamically swapped meanwhile (e.g. by Target)
1870                    var isImageRefSame = imgSrcAttribute.startsWith(urlTemplateParts[0]);
1871                    if (isImageRefSame && urlTemplateParts.length > 1) {
1872                        isImageRefSame = imgSrcAttribute.endsWith(urlTemplateParts[urlTemplateParts.length - 1]);
1873                    }
1874                    if (isImageRefSame) {
1875                        that._elements.image.setAttribute("src", url);
1876                        if (!hasWidths) {
1877                            window.removeEventListener("scroll", that.update);
1878                        }
1879                    }
1880                }
1881            }
1882            if (that._lazyLoaderShowing) {
1883                that._elements.image.addEventListener("load", removeLazyLoader);
1884            }
1885            that._interSectionObserver.unobserve(that._elements.self);
1886        }
1887
1888        function getOptimalWidth(widths, useDevicePixelRatio) {
1889            var container = that._elements.self;
1890            var containerWidth = container.clientWidth;
1891            while (containerWidth === 0 && container.parentNode) {
1892                container = container.parentNode;
1893                containerWidth = container.clientWidth;
1894            }
1895
1896            var dpr = useDevicePixelRatio ? devicePixelRatio : 1;
1897            var optimalWidth = containerWidth * dpr;
1898            var len = widths.length;
1899            var key = 0;
1900
1901            while ((key < len - 1) && (widths[key] < optimalWidth)) {
1902                key++;
1903            }
1904
1905            return widths[key].toString();
1906        }
1907
1908        function addLazyLoader() {
1909            var width = that._elements.image.getAttribute("width");
1910            var height = that._elements.image.getAttribute("height");
1911
1912            if (width && height) {
1913                var ratio = (height / width) * 100;
1914                var styles = lazyLoader.style;
1915
1916                styles["padding-bottom"] = ratio + "%";
1917
1918                for (var s in styles) {
1919                    if (Object.prototype.hasOwnProperty.call(styles, s)) {
1920                        that._elements.image.style[s] = styles[s];
1921                    }
1922                }
1923            }
1924            that._elements.image.setAttribute("src", EMPTY_PIXEL);
1925            that._elements.image.classList.add(lazyLoader.cssClass);
1926            that._lazyLoaderShowing = true;
1927        }
1928
1929        function unwrapNoScript() {
1930            var markup = decodeNoscript(that._elements.noscript.textContent.trim());
1931            var parser = new DOMParser();
1932
1933            // temporary document avoids requesting the image before removing its src
1934            var temporaryDocument = parser.parseFromString(markup, "text/html");
1935            var imageElement = temporaryDocument.querySelector(selectors.image);
1936            imageElement.removeAttribute("src");
1937            that._elements.container.insertBefore(imageElement, that._elements.noscript);
1938
1939            var mapElement = temporaryDocument.querySelector(selectors.map);
1940            if (mapElement) {
1941                that._elements.container.insertBefore(mapElement, that._elements.noscript);
1942            }
1943
1944            that._elements.noscript.parentNode.removeChild(that._elements.noscript);
1945            if (that._elements.container.matches(selectors.image)) {
1946                that._elements.image = that._elements.container;
1947            } else {
1948                that._elements.image = that._elements.container.querySelector(selectors.image);
1949            }
1950
1951            that._elements.map = that._elements.container.querySelector(selectors.map);
1952            that._elements.areas = that._elements.container.querySelectorAll(selectors.area);
1953        }
1954
1955        function removeLazyLoader() {
1956            that._elements.image.classList.remove(lazyLoader.cssClass);
1957            for (var property in lazyLoader.style) {
1958                if (Object.prototype.hasOwnProperty.call(lazyLoader.style, property)) {
1959                    that._elements.image.style[property] = "";
1960                }
1961            }
1962            that._elements.image.removeEventListener("load", removeLazyLoader);
1963            that._lazyLoaderShowing = false;
1964        }
1965
1966        function isLazyVisible() {
1967            if (that._elements.container.offsetParent === null) {
1968                return false;
1969            }
1970
1971            var wt = window.pageYOffset;
1972            var wb = wt + document.documentElement.clientHeight;
1973            var et = that._elements.container.getBoundingClientRect().top + wt;
1974            var eb = et + that._elements.container.clientHeight;
1975
1976            return eb >= wt - that._properties.lazythreshold && et <= wb + that._properties.lazythreshold;
1977        }
1978
1979        function resizeAreas() {
1980            if (that._elements.areas && that._elements.areas.length > 0) {
1981                for (var i = 0; i < that._elements.areas.length; i++) {
1982                    var width = that._elements.image.width;
1983                    var height = that._elements.image.height;
1984
1985                    if (width && height) {
1986                        var relcoords = that._elements.areas[i].dataset.cmpRelcoords;
1987                        if (relcoords) {
1988                            var relativeCoordinates = relcoords.split(",");
1989                            var coordinates = new Array(relativeCoordinates.length);
1990
1991                            for (var j = 0; j < coordinates.length; j++) {
1992                                if (j % 2 === 0) {
1993                                    coordinates[j] = parseInt(relativeCoordinates[j] * width);
1994                                } else {
1995                                    coordinates[j] = parseInt(relativeCoordinates[j] * height);
1996                                }
1997                            }
1998
1999                            that._elements.areas[i].coords = coordinates;
2000                        }
2001                    }
2002                }
2003            }
2004        }
2005
2006        function cacheElements(wrapper) {
2007            that._elements = {};
2008            that._elements.self = wrapper;
2009            var hooks = that._elements.self.querySelectorAll("[data-" + NS + "-hook-" + IS + "]");
2010
2011            for (var i = 0; i < hooks.length; i++) {
2012                var hook = hooks[i];
2013                var capitalized = IS;
2014                capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
2015                var key = hook.dataset[NS + "Hook" + capitalized];
2016                that._elements[key] = hook;
2017            }
2018        }
2019
2020        function onWindowResize() {
2021            that.update();
2022            resizeAreas();
2023        }
2024
2025        function onLoad() {
2026            resizeAreas();
2027        }
2028
2029        that.update = function() {
2030            if (that._properties.lazy) {
2031                if (isLazyVisible()) {
2032                    loadImage();
2033                }
2034            } else {
2035                loadImage();
2036            }
2037        };
2038
2039        if (config && config.element) {
2040            init(config);
2041        }
2042    }
2043
2044    function onDocumentReady() {
2045        var elements = document.querySelectorAll(selectors.self);
2046        for (var i = 0; i < elements.length; i++) {
2047            new Image({ element: elements[i], options: CMP.utils.readData(elements[i], IS) });
2048        }
2049
2050        var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
2051        var body             = document.querySelector("body");
2052        var observer         = new MutationObserver(function(mutations) {
2053            mutations.forEach(function(mutation) {
2054                // needed for IE
2055                var nodesArray = [].slice.call(mutation.addedNodes);
2056                if (nodesArray.length > 0) {
2057                    nodesArray.forEach(function(addedNode) {
2058                        if (addedNode.querySelectorAll) {
2059                            var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self));
2060                            elementsArray.forEach(function(element) {
2061                                new Image({ element: element, options: CMP.utils.readData(element, IS) });
2062                            });
2063                        }
2064                    });
2065                }
2066            });
2067        });
2068
2069        observer.observe(body, {
2070            subtree: true,
2071            childList: true,
2072            characterData: true
2073        });
2074    }
2075
2076    var documentReady = document.readyState !== "loading" ? Promise.resolve() : new Promise(function(resolve) {
2077        document.addEventListener("DOMContentLoaded", resolve);
2078    });
2079
2080    Promise.all([documentReady]).then(onDocumentReady);
2081    /*
2082        on drag & drop of the component into a parsys, noscript's content will be escaped multiple times by the editor which creates
2083        the DOM for editing; the HTML parser cannot be used here due to the multiple escaping
2084     */
2085    function decodeNoscript(text) {
2086        text = text.replace(/&(amp;)*lt;/g, "<");
2087        text = text.replace(/&(amp;)*gt;/g, ">");
2088        return text;
2089    }
2090
2091})();
2092
2093/*******************************************************************************
2094 * Copyright 2017 Adobe
2095 *
2096 * Licensed under the Apache License, Version 2.0 (the "License");
2097 * you may not use this file except in compliance with the License.
2098 * You may obtain a copy of the License at
2099 *
2100 *     http://www.apache.org/licenses/LICENSE-2.0
2101 *
2102 * Unless required by applicable law or agreed to in writing, software
2103 * distributed under the License is distributed on an "AS IS" BASIS,
2104 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2105 * See the License for the specific language governing permissions and
2106 * limitations under the License.
2107 ******************************************************************************/
2108(function() {
2109    "use strict";
2110
2111    var NS = "cmp";
2112    var IS = "search";
2113
2114    var DELAY = 300; // time before fetching new results when the user is typing a search string
2115    var LOADING_DISPLAY_DELAY = 300; // minimum time during which the loading indicator is displayed
2116    var PARAM_RESULTS_OFFSET = "resultsOffset";
2117
2118    var keyCodes = {
2119        TAB: 9,
2120        ENTER: 13,
2121        ESCAPE: 27,
2122        ARROW_UP: 38,
2123        ARROW_DOWN: 40
2124    };
2125
2126    var selectors = {
2127        self: "[data-" + NS + '-is="' + IS + '"]',
2128        item: {
2129            self: "[data-" + NS + "-hook-" + IS + '="item"]',
2130            title: "[data-" + NS + "-hook-" + IS + '="itemTitle"]',
2131            focused: "." + NS + "-search__item--is-focused"
2132        }
2133    };
2134
2135    var properties = {
2136        /**
2137         * The minimum required length of the search term before results are fetched.
2138         *
2139         * @memberof Search
2140         * @type {Number}
2141         * @default 3
2142         */
2143        minLength: {
2144            "default": 3,
2145            transform: function(value) {
2146                value = parseFloat(value);
2147                return isNaN(value) ? null : value;
2148            }
2149        },
2150        /**
2151         * The maximal number of results fetched by a search request.
2152         *
2153         * @memberof Search
2154         * @type {Number}
2155         * @default 10
2156         */
2157        resultsSize: {
2158            "default": 10,
2159            transform: function(value) {
2160                value = parseFloat(value);
2161                return isNaN(value) ? null : value;
2162            }
2163        }
2164    };
2165
2166    var idCount = 0;
2167
2168    function readData(element) {
2169        var data = element.dataset;
2170        var options = [];
2171        var capitalized = IS;
2172        capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
2173        var reserved = ["is", "hook" + capitalized];
2174
2175        for (var key in data) {
2176            if (Object.prototype.hasOwnProperty.call(data, key)) {
2177                var value = data[key];
2178
2179                if (key.indexOf(NS) === 0) {
2180                    key = key.slice(NS.length);
2181                    key = key.charAt(0).toLowerCase() + key.substring(1);
2182
2183                    if (reserved.indexOf(key) === -1) {
2184                        options[key] = value;
2185                    }
2186                }
2187            }
2188        }
2189
2190        return options;
2191    }
2192
2193    function toggleShow(element, show) {
2194        if (element) {
2195            if (show !== false) {
2196                element.style.display = "block";
2197                element.setAttribute("aria-hidden", false);
2198            } else {
2199                element.style.display = "none";
2200                element.setAttribute("aria-hidden", true);
2201            }
2202        }
2203    }
2204
2205    function serialize(form) {
2206        var query = [];
2207        if (form && form.elements) {
2208            for (var i = 0; i < form.elements.length; i++) {
2209                var node = form.elements[i];
2210                if (!node.disabled && node.name) {
2211                    var param = [node.name, encodeURIComponent(node.value)];
2212                    query.push(param.join("="));
2213                }
2214            }
2215        }
2216        return query.join("&");
2217    }
2218
2219    function mark(node, regex) {
2220        if (!node || !regex) {
2221            return;
2222        }
2223
2224        // text nodes
2225        if (node.nodeType === 3) {
2226            var nodeValue = node.nodeValue;
2227            var match = regex.exec(nodeValue);
2228
2229            if (nodeValue && match) {
2230                var element = document.createElement("mark");
2231                element.className = NS + "-search__item-mark";
2232                element.appendChild(document.createTextNode(match[0]));
2233
2234                var after = node.splitText(match.index);
2235                after.nodeValue = after.nodeValue.substring(match[0].length);
2236                node.parentNode.insertBefore(element, after);
2237            }
2238        } else if (node.hasChildNodes()) {
2239            for (var i = 0; i < node.childNodes.length; i++) {
2240                // recurse
2241                mark(node.childNodes[i], regex);
2242            }
2243        }
2244    }
2245
2246    function Search(config) {
2247        if (config.element) {
2248            // prevents multiple initialization
2249            config.element.removeAttribute("data-" + NS + "-is");
2250        }
2251
2252        this._cacheElements(config.element);
2253        this._setupProperties(config.options);
2254
2255        this._action = this._elements.form.getAttribute("action");
2256        this._resultsOffset = 0;
2257        this._hasMoreResults = true;
2258
2259        this._elements.input.addEventListener("input", this._onInput.bind(this));
2260        this._elements.input.addEventListener("focus", this._onInput.bind(this));
2261        this._elements.input.addEventListener("keydown", this._onKeydown.bind(this));
2262        this._elements.clear.addEventListener("click", this._onClearClick.bind(this));
2263        document.addEventListener("click", this._onDocumentClick.bind(this));
2264        this._elements.results.addEventListener("scroll", this._onScroll.bind(this));
2265
2266        this._makeAccessible();
2267    }
2268
2269    Search.prototype._displayResults = function() {
2270        if (this._elements.input.value.length === 0) {
2271            toggleShow(this._elements.clear, false);
2272            this._cancelResults();
2273        } else if (this._elements.input.value.length < this._properties.minLength) {
2274            toggleShow(this._elements.clear, true);
2275        } else {
2276            this._updateResults();
2277            toggleShow(this._elements.clear, true);
2278        }
2279    };
2280
2281    Search.prototype._onScroll = function(event) {
2282        // fetch new results when the results to be scrolled down are less than the visible results
2283        if (this._elements.results.scrollTop + 2 * this._elements.results.clientHeight >= this._elements.results.scrollHeight) {
2284            this._resultsOffset += this._properties.resultsSize;
2285            this._displayResults();
2286        }
2287    };
2288
2289    Search.prototype._onInput = function(event) {
2290        var self = this;
2291        self._cancelResults();
2292        // start searching when the search term reaches the minimum length
2293        this._timeout = setTimeout(function() {
2294            self._displayResults();
2295        }, DELAY);
2296    };
2297
2298    Search.prototype._onKeydown = function(event) {
2299        var self = this;
2300
2301        switch (event.keyCode) {
2302            case keyCodes.TAB:
2303                if (self._resultsOpen()) {
2304                    toggleShow(self._elements.results, false);
2305                    self._elements.input.setAttribute("aria-expanded", "false");
2306                }
2307                break;
2308            case keyCodes.ENTER:
2309                event.preventDefault();
2310                if (self._resultsOpen()) {
2311                    var focused = self._elements.results.querySelector(selectors.item.focused);
2312                    if (focused) {
2313                        focused.click();
2314                    }
2315                }
2316                break;
2317            case keyCodes.ESCAPE:
2318                self._cancelResults();
2319                break;
2320            case keyCodes.ARROW_UP:
2321                if (self._resultsOpen()) {
2322                    event.preventDefault();
2323                    self._stepResultFocus(true);
2324                }
2325                break;
2326            case keyCodes.ARROW_DOWN:
2327                if (self._resultsOpen()) {
2328                    event.preventDefault();
2329                    self._stepResultFocus();
2330                } else {
2331                    // test the input and if necessary fetch and display the results
2332                    self._onInput();
2333                }
2334                break;
2335            default:
2336                return;
2337        }
2338    };
2339
2340    Search.prototype._onClearClick = function(event) {
2341        event.preventDefault();
2342        this._elements.input.value = "";
2343        toggleShow(this._elements.clear, false);
2344        toggleShow(this._elements.results, false);
2345        this._elements.input.setAttribute("aria-expanded", "false");
2346    };
2347
2348    Search.prototype._onDocumentClick = function(event) {
2349        var inputContainsTarget =  this._elements.input.contains(event.target);
2350        var resultsContainTarget = this._elements.results.contains(event.target);
2351
2352        if (!(inputContainsTarget || resultsContainTarget)) {
2353            toggleShow(this._elements.results, false);
2354            this._elements.input.setAttribute("aria-expanded", "false");
2355        }
2356    };
2357
2358    Search.prototype._resultsOpen = function() {
2359        return this._elements.results.style.display !== "none";
2360    };
2361
2362    Search.prototype._makeAccessible = function() {
2363        var id = NS + "-search-results-" + idCount;
2364        this._elements.input.setAttribute("aria-owns", id);
2365        this._elements.results.id = id;
2366        idCount++;
2367    };
2368
2369    Search.prototype._generateItems = function(data, results) {
2370        var self = this;
2371
2372        data.forEach(function(item) {
2373            var el = document.createElement("span");
2374            el.innerHTML = self._elements.itemTemplate.innerHTML;
2375            el.querySelectorAll(selectors.item.title)[0].appendChild(document.createTextNode(item.title));
2376            el.querySelectorAll(selectors.item.self)[0].setAttribute("href", self._safeHref(item.url));
2377            results.innerHTML += el.innerHTML;
2378        });
2379    };
2380
2381    Search.prototype._safeHref = function(href) {
2382        var a = document.createElement("a");
2383        a.href = href;
2384        return a.pathname;
2385    };
2386
2387    Search.prototype._markResults = function() {
2388        var nodeList = this._elements.results.querySelectorAll(selectors.item.self);
2389        var escapedTerm = this._elements.input.value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
2390        var regex = new RegExp("(" + escapedTerm + ")", "gi");
2391
2392        for (var i = this._resultsOffset - 1; i < nodeList.length; ++i) {
2393            var result = nodeList[i];
2394            mark(result, regex);
2395        }
2396    };
2397
2398    Search.prototype._stepResultFocus = function(reverse) {
2399        var results = this._elements.results.querySelectorAll(selectors.item.self);
2400        var focused = this._elements.results.querySelector(selectors.item.focused);
2401        var newFocused;
2402        var index = Array.prototype.indexOf.call(results, focused);
2403        var focusedCssClass = NS + "-search__item--is-focused";
2404
2405        if (results.length > 0) {
2406
2407            if (!reverse) {
2408                // highlight the next result
2409                if (index < 0) {
2410                    results[0].classList.add(focusedCssClass);
2411                    results[0].setAttribute("aria-selected", "true");
2412                } else if (index + 1 < results.length) {
2413                    results[index].classList.remove(focusedCssClass);
2414                    results[index].setAttribute("aria-selected", "false");
2415                    results[index + 1].classList.add(focusedCssClass);
2416                    results[index + 1].setAttribute("aria-selected", "true");
2417                }
2418
2419                // if the last visible result is partially hidden, scroll up until it's completely visible
2420                newFocused = this._elements.results.querySelector(selectors.item.focused);
2421                if (newFocused) {
2422                    var bottomHiddenHeight = newFocused.offsetTop + newFocused.offsetHeight - this._elements.results.scrollTop - this._elements.results.clientHeight;
2423                    if (bottomHiddenHeight > 0) {
2424                        this._elements.results.scrollTop += bottomHiddenHeight;
2425                    } else {
2426                        this._onScroll();
2427                    }
2428                }
2429
2430            } else {
2431                // highlight the previous result
2432                if (index >= 1) {
2433                    results[index].classList.remove(focusedCssClass);
2434                    results[index].setAttribute("aria-selected", "false");
2435                    results[index - 1].classList.add(focusedCssClass);
2436                    results[index - 1].setAttribute("aria-selected", "true");
2437                }
2438
2439                // if the first visible result is partially hidden, scroll down until it's completely visible
2440                newFocused = this._elements.results.querySelector(selectors.item.focused);
2441                if (newFocused) {
2442                    var topHiddenHeight = this._elements.results.scrollTop - newFocused.offsetTop;
2443                    if (topHiddenHeight > 0) {
2444                        this._elements.results.scrollTop -= topHiddenHeight;
2445                    }
2446                }
2447            }
2448        }
2449    };
2450
2451    Search.prototype._updateResults = function() {
2452        var self = this;
2453        if (self._hasMoreResults) {
2454            var request = new XMLHttpRequest();
2455            var url = self._action + "?" + serialize(self._elements.form) + "&" + PARAM_RESULTS_OFFSET + "=" + self._resultsOffset;
2456
2457            request.open("GET", url, true);
2458            request.onload = function() {
2459                // when the results are loaded: hide the loading indicator and display the search icon after a minimum period
2460                setTimeout(function() {
2461                    toggleShow(self._elements.loadingIndicator, false);
2462                    toggleShow(self._elements.icon, true);
2463                }, LOADING_DISPLAY_DELAY);
2464                if (request.status >= 200 && request.status < 400) {
2465                    // success status
2466                    var data = JSON.parse(request.responseText);
2467                    if (data.length > 0) {
2468                        self._generateItems(data, self._elements.results);
2469                        self._markResults();
2470                        toggleShow(self._elements.results, true);
2471                        self._elements.input.setAttribute("aria-expanded", "true");
2472                    } else {
2473                        self._hasMoreResults = false;
2474                    }
2475                    // the total number of results is not a multiple of the fetched results:
2476                    // -> we reached the end of the query
2477                    if (self._elements.results.querySelectorAll(selectors.item.self).length % self._properties.resultsSize > 0) {
2478                        self._hasMoreResults = false;
2479                    }
2480                } else {
2481                    // error status
2482                }
2483            };
2484            // when the results are loading: display the loading indicator and hide the search icon
2485            toggleShow(self._elements.loadingIndicator, true);
2486            toggleShow(self._elements.icon, false);
2487            request.send();
2488        }
2489    };
2490
2491    Search.prototype._cancelResults = function() {
2492        clearTimeout(this._timeout);
2493        this._elements.results.scrollTop = 0;
2494        this._resultsOffset = 0;
2495        this._hasMoreResults = true;
2496        this._elements.results.innerHTML = "";
2497        this._elements.input.setAttribute("aria-expanded", "false");
2498    };
2499
2500    Search.prototype._cacheElements = function(wrapper) {
2501        this._elements = {};
2502        this._elements.self = wrapper;
2503        var hooks = this._elements.self.querySelectorAll("[data-" + NS + "-hook-" + IS + "]");
2504
2505        for (var i = 0; i < hooks.length; i++) {
2506            var hook = hooks[i];
2507            var capitalized = IS;
2508            capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
2509            var key = hook.dataset[NS + "Hook" + capitalized];
2510            this._elements[key] = hook;
2511        }
2512    };
2513
2514    Search.prototype._setupProperties = function(options) {
2515        this._properties = {};
2516
2517        for (var key in properties) {
2518            if (Object.prototype.hasOwnProperty.call(properties, key)) {
2519                var property = properties[key];
2520                if (options && options[key] != null) {
2521                    if (property && typeof property.transform === "function") {
2522                        this._properties[key] = property.transform(options[key]);
2523                    } else {
2524                        this._properties[key] = options[key];
2525                    }
2526                } else {
2527                    this._properties[key] = properties[key]["default"];
2528                }
2529            }
2530        }
2531    };
2532
2533    function onDocumentReady() {
2534        var elements = document.querySelectorAll(selectors.self);
2535        for (var i = 0; i < elements.length; i++) {
2536            new Search({ element: elements[i], options: readData(elements[i]) });
2537        }
2538
2539        var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
2540        var body = document.querySelector("body");
2541        var observer = new MutationObserver(function(mutations) {
2542            mutations.forEach(function(mutation) {
2543                // needed for IE
2544                var nodesArray = [].slice.call(mutation.addedNodes);
2545                if (nodesArray.length > 0) {
2546                    nodesArray.forEach(function(addedNode) {
2547                        if (addedNode.querySelectorAll) {
2548                            var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self));
2549                            elementsArray.forEach(function(element) {
2550                                new Search({ element: element, options: readData(element) });
2551                            });
2552                        }
2553                    });
2554                }
2555            });
2556        });
2557
2558        observer.observe(body, {
2559            subtree: true,
2560            childList: true,
2561            characterData: true
2562        });
2563    }
2564
2565    if (document.readyState !== "loading") {
2566        onDocumentReady();
2567    } else {
2568        document.addEventListener("DOMContentLoaded", onDocumentReady);
2569    }
2570
2571})();
2572
2573/*******************************************************************************
2574 * Copyright 2016 Adobe
2575 *
2576 * Licensed under the Apache License, Version 2.0 (the "License");
2577 * you may not use this file except in compliance with the License.
2578 * You may obtain a copy of the License at
2579 *
2580 *     http://www.apache.org/licenses/LICENSE-2.0
2581 *
2582 * Unless required by applicable law or agreed to in writing, softw
2582are
2583 * distributed under the License is distributed on an "AS IS" BASIS,
2584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2585 * See the License for the specific language governing permissions and
2586 * limitations under the License.
2587 ******************************************************************************/
2588(function() {
2589    "use strict";
2590
2591    var NS = "cmp";
2592    var IS = "formText";
2593    var IS_DASH = "form-text";
2594    var SELF_SELECTOR = "[data-" + NS + '-is="' + IS + '"]';
2595
2596    var selectors = {
2597        self: SELF_SELECTOR,
2598        validationMessage: SELF_SELECTOR + " .cmp-form-text__validation-message"
2599    };
2600
2601    var displayValidationMessage = false;
2602
2603    var properties = {
2604        /**
2605         * A validation message to display if there is a type mismatch between the user input and expected input.
2606         *
2607         * @type {String}
2608         */
2609        constraintMessage: "",
2610        /**
2611         * A validation message to display if no input is supplied, but input is expected for the field.
2612         *
2613         * @type {String}
2614         */
2615        requiredMessage: ""
2616    };
2617
2618    function readData(element) {
2619        var data = element.dataset;
2620        var options = [];
2621        var capitalized = IS;
2622        capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
2623        var reserved = ["is", "hook" + capitalized];
2624
2625        for (var key in data) {
2626            if (Object.prototype.hasOwnProperty.call(data, key)) {
2627                var value = data[key];
2628
2629                if (key.indexOf(NS) === 0) {
2630                    key = key.slice(NS.length);
2631                    key = key.charAt(0).toLowerCase() + key.substring(1);
2632
2633                    if (reserved.indexOf(key) === -1) {
2634                        options[key] = value;
2635                    }
2636                }
2637            }
2638        }
2639
2640        return options;
2641    }
2642
2643    function FormText(config) {
2644        if (config.element) {
2645            // prevents multiple initialization
2646            config.element.removeAttribute("data-" + NS + "-is");
2647        }
2648
2649        this._cacheElements(config.element);
2650        this._setupProperties(config.options);
2651
2652        this._elements.input.addEventListener("invalid", this._onInvalid.bind(this));
2653        this._elements.input.addEventListener("input", this._onInput.bind(this));
2654        if (displayValidationMessage) {
2655            this._elements.input.checkValidity();
2656        }
2657    }
2658
2659    FormText.prototype._onInvalid = function(event) {
2660        event.target.setCustomValidity("");
2661        if (event.target.validity.typeMismatch) {
2662            if (this._properties.constraintMessage) {
2663                event.target.setCustomValidity(this._properties.constraintMessage);
2664            }
2665        } else if (event.target.validity.valueMissing) {
2666            if (this._properties.requiredMessage) {
2667                event.target.setCustomValidity(this._properties.requiredMessage);
2668            }
2669        }
2670        if (displayValidationMessage) {
2671            var validationMessage = event.target.parentElement.querySelector(".cmp-form-text__validation-message");
2672            if (validationMessage) {
2673                validationMessage.innerText = event.target.validationMessage;
2674            }
2675        }
2676    };
2677
2678    FormText.prototype._onInput = function(event) {
2679        event.target.setCustomValidity("");
2680        if (displayValidationMessage) {
2681            event.target.checkValidity();
2682        }
2683    };
2684
2685    FormText.prototype._cacheElements = function(wrapper) {
2686        this._elements = {};
2687        this._elements.self = wrapper;
2688        var hooks = this._elements.self.querySelectorAll("[data-" + NS + "-hook-" + IS_DASH + "]");
2689        for (var i = 0; i < hooks.length; i++) {
2690            var hook = hooks[i];
2691            var capitalized = IS;
2692            capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
2693            var key = hook.dataset[NS + "Hook" + capitalized];
2694            this._elements[key] = hook;
2695        }
2696    };
2697
2698    FormText.prototype._setupProperties = function(options) {
2699        this._properties = {};
2700
2701        for (var key in properties) {
2702            if (Object.prototype.hasOwnProperty.call(properties, key)) {
2703                var property = properties[key];
2704                if (options && options[key] != null) {
2705                    if (property && typeof property.transform === "function") {
2706                        this._properties[key] = property.transform(options[key]);
2707                    } else {
2708                        this._properties[key] = options[key];
2709                    }
2710                } else {
2711                    this._properties[key] = properties[key]["default"];
2712                }
2713            }
2714        }
2715    };
2716
2717    function onDocumentReady() {
2718        var validationMessages = document.querySelectorAll(selectors.validationMessage);
2719        if (validationMessages && validationMessages.length > 0) {
2720            displayValidationMessage = true;
2721        }
2722
2723        var elements = document.querySelectorAll(selectors.self);
2724        for (var i = 0; i < elements.length; i++) {
2725            new FormText({ element: elements[i], options: readData(elements[i]) });
2726        }
2727
2728        var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
2729        var body = document.querySelector("body");
2730        var observer = new MutationObserver(function(mutations) {
2731            mutations.forEach(function(mutation) {
2732                // needed for IE
2733                var nodesArray = [].slice.call(mutation.addedNodes);
2734                if (nodesArray.length > 0) {
2735                    nodesArray.forEach(function(addedNode) {
2736                        if (addedNode.querySelectorAll) {
2737                            var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self));
2738                            elementsArray.forEach(function(element) {
2739                                new FormText({ element: element, options: readData(element) });
2740                            });
2741                        }
2742                    });
2743                }
2744            });
2745        });
2746
2747        observer.observe(body, {
2748            subtree: true,
2749            childList: true,
2750            characterData: true
2751        });
2752    }
2753
2754    if (document.readyState !== "loading") {
2755        onDocumentReady();
2756    } else {
2757        document.addEventListener("DOMContentLoaded", onDocumentReady);
2758    }
2759
2760})();
2761
2762/*******************************************************************************
2763 * Copyright 2020 Adobe
2764 *
2765 * Licensed under the Apache License, Version 2.0 (the "License");
2766 * you may not use this file except in compliance with the License.
2767 * You may obtain a copy of the License at
2768 *
2769 *     http://www.apache.org/licenses/LICENSE-2.0
2770 *
2771 * Unless required by applicable law or agreed to in writing, software
2772 * distributed under the License is distributed on an "AS IS" BASIS,
2773 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2774 * See the License for the specific language governing permissions and
2775 * limitations under the License.
2776 ******************************************************************************/
2777(function() {
2778    "use strict";
2779
2780    var NS = "cmp";
2781    var IS = "pdfviewer";
2782    var SDK_URL = "https://acrobatservices.adobe.com/view-sdk/viewer.js";
2783    var SDK_READY_EVENT = "adobe_dc_view_sdk.ready";
2784
2785    var selectors = {
2786        self: "[data-" + NS + '-is="' + IS + '"]',
2787        sdkScript: 'script[src="' + SDK_URL + '"]'
2788    };
2789
2790    function initSDK() {
2791        var sdkIncluded = document.querySelectorAll(selectors.sdkScript).length > 0;
2792        if (!window.adobe_dc_view_sdk && !sdkIncluded) {
2793            var dcv = document.createElement("script");
2794            dcv.type = "text/javascript";
2795            dcv.src = SDK_URL;
2796            document.body.appendChild(dcv);
2797        }
2798    }
2799
2800    function previewPdf(component) {
2801        // prevents multiple initialization
2802        component.removeAttribute("data-" + NS + "-is");
2803
2804        // add the view sdk to the page
2805        initSDK();
2806
2807        // manage the preview
2808        if (component.dataset && component.id) {
2809            if (window.AdobeDC && window.AdobeDC.View) {
2810                dcView(component);
2811            } else {
2812                document.addEventListener(SDK_READY_EVENT, function() {
2813                    dcView(component);
2814                });
2815            }
2816        }
2817    }
2818
2819    function dcView(component) {
2820        var adobeDCView = new window.AdobeDC.View({
2821            clientId: component.dataset.cmpClientId,
2822            divId: component.id + "-content",
2823            reportSuiteId: component.dataset.cmpReportSuiteId,
2824            locale: typeof Granite !== "undefined" && Granite && Granite.I18n ? Granite.I18n.getLocale() : navigator.language || navigator.userLanguage
2825        });
2826        adobeDCView.previewFile({
2827            content: { location: { url: component.dataset.cmpDocumentPath } },
2828            metaData: { fileName: component.dataset.cmpDocumentFileName }
2829        }, JSON.parse(component.dataset.cmpViewerConfigJson));
2830    }
2831
2832    /**
2833     * Document ready handler and DOM mutation observers. Initializes Accordion components as necessary.
2834     *
2835     * @private
2836     */
2837    function onDocumentReady() {
2838        var elements = document.querySelectorAll(selectors.self);
2839        for (var i = 0; i < elements.length; i++) {
2840            previewPdf(elements[i]);
2841        }
2842
2843        var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
2844        var body = document.querySelector("body");
2845        var observer = new MutationObserver(function(mutations) {
2846            mutations.forEach(function(mutation) {
2847                // needed for IE
2848                var nodesArray = [].slice.call(mutation.addedNodes);
2849                if (nodesArray.length > 0) {
2850                    nodesArray.forEach(function(addedNode) {
2851                        if (addedNode.querySelectorAll) {
2852                            var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self));
2853                            elementsArray.forEach(function(element) {
2854                                previewPdf(element);
2855                            });
2856                        }
2857                    });
2858                }
2859            });
2860        });
2861
2862        observer.observe(body, {
2863            subtree: true,
2864            childList: true,
2865            characterData: true
2866        });
2867
2868    }
2869
2870    if (document.readyState !== "loading") {
2871        onDocumentReady();
2872    } else {
2873        document.addEventListener("DOMContentLoaded", onDocumentReady);
2874    }
2875}());
2876
2877/*******************************************************************************
2878 * Copyright 2020 Adobe
2879 *
2880 * Licensed under the Apache License, Version 2.0 (the "License");
2881 * you may not use this file except in compliance with the License.
2882 * You may obtain a copy of the License at
2883 *
2884 *     http://www.apache.org/licenses/LICENSE2.0
2885 *
2886 * Unless required by applicable law or agreed to in writing, software
2887 * distributed under the License is distributed on an "AS IS" BASIS,
2888 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2889 * See the License for the specific language governing permissions and
2890 * limitations under the License.
2891 ******************************************************************************/
2892
2893/**
2894 * Element.matches()
2895 * https://developer.mozilla.org/enUS/docs/Web/API/Element/matches#Polyfill
2896 */
2897if (!Element.prototype.matches) {
2898    Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
2899}
2900
2901// eslint-disable-next-line valid-jsdoc
2902/**
2903 * Element.closest()
2904 * https://developer.mozilla.org/enUS/docs/Web/API/Element/closest#Polyfill
2905 */
2906if (!Element.prototype.closest) {
2907    Element.prototype.closest = function(s) {
2908        "use strict";
2909        var el = this;
2910        if (!document.documentElement.contains(el)) {
2911            return null;
2912        }
2913        do {
2914            if (el.matches(s)) {
2915                return el;
2916            }
2917            el = el.parentElement || el.parentNode;
2918        } while (el !== null && el.nodeType === 1);
2919        return null;
2920    };
2921}
2922
2923// https://tc39.github.io/ecma262/#sec-array.prototype.find
2924if (!Array.prototype.find) {
2925    Object.defineProperty(Array.prototype, "find", {
2926        value: function(predicate) {
2927            "use strict";
2928            // 1. Let O be ? ToObject(this value).
2929            if (this == null) {
2930                throw TypeError('"this" is null or not defined');
2931            }
2932
2933            var o = Object(this);
2934
2935            // 2. Let len be ? ToLength(? Get(O, "length")).
2936            var len = o.length >>> 0;
2937
2938            // 3. If IsCallable(predicate) is false, throw a TypeError exception.
2939            if (typeof predicate !== "function") {
2940                throw TypeError("predicate must be a function");
2941            }
2942
2943            // 4. If thisArg was supplied, let T be thisArg; else let T be undefined.
2944            var thisArg = arguments[1];
2945
2946            // 5. Let k be 0.
2947            var k = 0;
2948
2949            // 6. Repeat, while k < len
2950            while (k < len) {
2951                // a. Let Pk be ! ToString(k).
2952                // b. Let kValue be ? Get(O, Pk).
2953                // c. Let testResult be ToBoolean(? Call(predicate, T, « kValue, k, O »)).
2954                // d. If testResult is true, return kValue.
2955                var kValue = o[k];
2956                if (predicate.call(thisArg, kValue, k, o)) {
2957                    return kValue;
2958                }
2959                // e. Increase k by 1.
2960                k++;
2961            }
2962
2963            // 7. Return undefined.
2964            return undefined;
2965        },
2966        configurable: true,
2967        writable: true
2968    });
2969}
2970
2971"use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,a=void 0;try{for(var i,u=t[Symbol.iterator]();!(r=(i=u.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,a=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw a}}return n}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=_unsupportedIterableToArray(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,a=!0,i=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){i=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function a(i,u,c){function f(e,t){if(!u[e]){if(!i[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(s)return s(e,!0);var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}var o=u[e]={exports:{}};i[e][0].call(o.exports,function(t){return f(i[e][1][t]||t)},o,o.exports,a,i,u,c)}return u[e].exports}for(var s="function"==typeof require&&require,t=0;t<c.length;t++)f(c[t]);return f}({1:[function(t,wn,En){(function(On){(function(){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=0,a=[];++n<r;){var i=t[n];e(i,n,t)&&(a[o++]=i)}return a}function a(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function f(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function b(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function o(t,e,n){var r=t.length;for(n+=-1;++n<r;)if(e(t[n],n,t))return n;return-1}function i(t){return t!=t}function t(e){return function(t){return e(t)}}function h(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}function e(e){var n=Object;return function(t){return e(n(t))}}function v(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function r(){}function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function d(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new s;++e<n;)this.add(t[e])}function g(t){this.size=(this.__data__=new c(t)).size}function l(t,e){var n=hn(t),r=!n&&bn(t),o=!n&&!r&&vn(t),a=!n&&!r&&!o&&_n(t);if(n=n||r||o||a){r=t.length;for(var i=String,u=-1,c=Array(r);++u<r;)c[u]=i(u);r=c}else r=[];var f;i=r.length;for(f in t)!e&&!be.call(t,f)||n&&("length"==f||o&&("offset"==f||"parent"==f)||a&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Q(f,i))||r.push(f);return r}function _(t,e,n){(n===Mt||ft(t[e],n))&&(n!==Mt||e in t)||j(t,e,n)}function y(t,e,n){var r=t[e];be.call(t,e)&&ft(r,n)&&(n!==Mt||e in t)||j(t,e,n)}function p(t,e){for(var n=t.length;n--;)if(ft(t[n][0],e))return n;return-1}function j(t,e,n){"__proto__"==e&&xe?xe(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function m(n,r,o,t,e,a){var i,u=1&r,c=2&r,f=4&r;
2971if(o&&(i=e?o(n,t,e,a):o(n)),i!==Mt)return i;if(!bt(n))return n;if(t=hn(n)){if(i=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&be.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(n),!u)return U(n,i)}else{var s=nn(n),l="[object Function]"==s||"[object GeneratorFunction]"==s;if(vn(n))return M(n,u);if("[object Object]"==s||"[object Arguments]"==s||l&&!e){if(i=c||l?{}:Y(n),!u)return c?function(t,e){return P(t,en(t),e)}(n,function(t,e){return t&&P(e,St(e),t)}(i,n)):function(t,e){return P(t,tn(t),e)}(n,function(t,e){return t&&P(e,Lt(e),t)}(i,n))}else{if(!Kt[s])return e?n:{};i=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return z(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return e=n?z(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return C(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return(e=new t.constructor(t.source,Ht.exec(t))).lastIndex=t.lastIndex,e;case"[object Set]":return new r;case"[object Symbol]":return qe?Object(qe.call(t)):{}}}(n,s,u)}}if(e=(a=a||new g).get(n))return e;if(a.set(n,i),gn(n))return n.forEach(function(t){i.add(m(t,r,o,t,n,a))}),i;if(dn(n))return n.forEach(function(t,e){i.set(e,m(t,r,o,e,n,a))}),i;c=f?c?B:H:c?St:Lt;var p=t?Mt:c(n);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););}(p||n,function(t,e){p&&(t=n[e=t]),y(i,e,m(t,r,o,e,n,a))}),i}function A(t,e){for(var n=0,r=(e=F(e,t)).length;null!=t&&n<r;)t=t[nt(e[n++])];return n&&n==r?t:Mt}function O(t,e,n){return e=e(t),hn(t)?e:f(e,n(t))}function w(t){if(null==t)t=t===Mt?"[object Undefined]":"[object Null]";else if(Te&&Te in Object(t)){var e=be.call(t,Te),n=t[Te];try{t[Te]=Mt;var r=!0}catch(t){}var o=ve.call(t);r&&(e?t[Te]=n:delete t[Te]),t=o}else t=ve.call(t);return t}function E(t,e){return null!=t&&be.call(t,e)}function L(t,e){return null!=t&&e in Object(t)}function S(t){return ht(t)&&"[object Arguments]"==w(t)}function T(t,e,n,r,o){if(t===e)e=!0;else if(null==t||null==e||!ht(t)&&!ht(e))e=t!=t&&e!=e;else t:{var a,i,u=hn(t),c=hn(e),f="[object Object]"==(a="[object Arguments]"==(a=u?"[object Array]":nn(t))?"[object Object]":a);c="[object Object]"==(i="[object Arguments]"==(i=c?"[object Array]":nn(e))?"[object Object]":i);if((i=a==i)&&vn(t)){if(!vn(e)){e=!1;break t}f=!(u=!0)}if(i&&!f)o=o||new g,e=u||_n(t)?V(t,e,n,r,T,o):function(t,e,n,r,o,a,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!a(new me(t),new me(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return ft(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var u=h;case"[object Set]":if(u=u||v,t.size!=e.size&&!(1&r))break;return(n=i.get(t))?n==e:(r|=2,i.set(t,e),e=V(u(t),u(e),r,o,a,i),i.delete(t),e);case"[object Symbol]":if(qe)return qe.call(t)==qe.call(e)}return!1}(t,e,a,n,r,T,o);else{if(!(1&n)&&(u=f&&be.call(t,"__wrapped__"),a=c&&be.call(e,"__wrapped__"),u||a)){e=T(t=u?t.value():t,e=a?e.value():e,n,r,o=o||new g);break t}if(i)e:if(o=o||new g,u=1&n,a=H(t),c=a.length,i=H(e).length,c==i||u){for(f=c;f--;){var s=a[f];if(!(u?s in e:be.call(e,s))){e=!1;break e}}if((i=o.get(t))&&o.get(e))e=i==e;else{i=!0,o.set(t,e),o.set(e,t);for(var l=u;++f<c;){var p=t[s=a[f]],y=e[s];if(r)var b=u?r(y,p,s,e,t,o):r(p,y,s,t,e,o);if(b===Mt?p!==y&&!T(p,y,n,r,o):!b){i=!1;break}l=l||"constructor"==s}i&&!l&&((n=t.constructor)!=(r=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof n&&n instanceof n&&"function"==typeof r&&r instanceof r)&&(i=!1)),o.delete(t),o.delete(e),e=i}}else e=!1;else e=!1}}return e}function x(t){return"function"==typeof t?t:null==t?It:"object"==_typeof(t)?hn(t)?function(n,r){return X(n)&&r==r&&!bt(r)?tt(nt(n),r):function(t){var e=wt(t,n);return e===Mt&&e===r?Et(t,n):T(r,e,3)}}(t[0],t[1]):function(e){var n=function(t){for(var e=Lt(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,o==o&&!bt(o)]}return e}(e);return 1==n.length&&n[0][2]?tt(n[0][0],n[0][1]):function(t){return t===e||function(t,e){var n=e.length,r=n;if(null==t)return!r;for(t=Object(t);n--;){if((o=e[n])[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++n<r;
2971){var o,a=(o=e[n])[0],i=t[a],u=o[1];if(o[2]){if(i===Mt&&!(a in t))return!1}else if(o=new g,void 0!==Mt||!T(u,i,3,void 0,o))return!1}return!0}(t,n)}}(t):Nt(t)}function I(t){if(!Z(t))return Ne(t);var e,n=[];for(e in Object(t))be.call(t,e)&&"constructor"!=e&&n.push(e);return n}function k(s,l,p,y,b){s!==l&&Xe(l,function(t,e){if(bt(t)){var n=b=b||new g,r="__proto__"==e?Mt:s[e],o="__proto__"==e?Mt:l[e];if(f=n.get(o))_(s,e,f);else{var a=(f=y?y(r,o,e+"",s,l,n):Mt)===Mt;if(a){var i=hn(o),u=!i&&vn(o),c=!i&&!u&&_n(o),f=o;i||u||c?f=hn(r)?r:lt(r)?U(r):u?M(o,!(a=!1)):c?C(o,!(a=!1)):[]:vt(o)||bn(o)?bn(f=r)?f=At(r):(!bt(r)||p&&pt(r))&&(f=Y(o)):a=!1}a&&(n.set(o,f),k(f,o,p,y,n),n.delete(o)),_(s,e,f)}}else(n=y?y("__proto__"==e?Mt:s[e],t,e+"",s,l,b):Mt)===Mt&&(n=t),_(s,e,n)},St)}function N(t){if("string"==typeof t)return t;if(hn(t))return a(t,N)+"";if(gt(t))return Je?Je.call(t):"";var e=t+"";return"0"==e&&1/t==-zt?"-0":e}function D(t,e){var n;if((e=F(e,t)).length<2)n=t;else{var r=0,o=-1,a=-1,i=(n=e).length;for(r<0&&(r=i<-r?0:i+r),(o=i<o?i:o)<0&&(o+=i),i=o<r?0:o-r>>>0,r>>>=0,o=Array(i);++a<i;)o[a]=n[a+r];n=A(t,o)}null==(t=n)||delete t[nt(it(e))]}function F(t,e){return hn(t)?t:X(t,e)?[t]:ln(Ot(t))}function M(t,e){if(e)return t.slice();var n=t.length;n=Ae?Ae(n):new t.constructor(n);return t.copy(n),n}function z(t){var e=new t.constructor(t.byteLength);return new me(e).set(new me(t)),e}function C(t,e){return new t.constructor(e?z(t.buffer):t.buffer,t.byteOffset,t.length)}function U(t,e){var n=-1,r=t.length;for(e=e||Array(r);++n<r;)e[n]=t[n];return e}function P(t,e,n){var r=!n;n=n||{};for(var o=-1,a=e.length;++o<a;){var i=e[o],u=Mt;u===Mt&&(u=t[i]),r?j(n,i,u):y(n,i,u)}return n}function R(f){return function(t){return sn(et(t,void 0,It),t+"")}(function(t,e){var n,r=-1,o=e.length,a=1<o?e[o-1]:Mt,i=2<o?e[2]:Mt;a=3<f.length&&"function"==typeof a?(o--,a):Mt;if(n=i){n=e[0];var u=e[1];if(bt(i)){var c=_typeof(u);n=!!("number"==c?st(i)&&Q(u,i.length):"string"==c&&u in i)&&ft(i[u],n)}else n=!1}for(n&&(a=o<3?Mt:a,o=1),t=Object(t);++r<o;)(i=e[r])&&f(t,i,r,a);return t})}function $(t){return vt(t)?Mt:t}function V(t,e,n,r,o,a){var i=1&n,u=t.length;if(u!=(c=e.length)&&!(i&&u<c))return!1;if((c=a.get(t))&&a.get(e))return c==e;var c=-1,f=!0,s=2&n?new d:Mt;for(a.set(t,e),a.set(e,t);++c<u;){var l=t[c],p=e[c];if(r)var y=i?r(p,l,c,e,t,a):r(l,p,c,t,e,a);if(y!==Mt){if(y)continue;f=!1;break}if(s){if(!b(e,function(t,e){if(!s.has(e)&&(l===t||o(l,t,n,r,a)))return s.push(e)})){f=!1;break}}else if(l!==p&&!o(l,p,n,r,a)){f=!1;break}}return a.delete(t),a.delete(e),f}function H(t){return O(t,Lt,tn)}function B(t){return O(t,St,en)}function W(t,e){var n=(n=r.iteratee||kt)===kt?x:n;return arguments.length?n(t,e):n}function G(t,e){var n=t.__data__,r=_typeof(e);return("string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e)?n["string"==typeof e?"string":"hash"]:n.map}function q(t,e){var n=null==t?Mt:t[e];return!bt(n)||he&&he in n||!(pt(n)?ge:Gt).test(rt(n))?Mt:n}function J(t,e,n){for(var r=-1,o=(e=F(e,t)).length,a=!1;++r<o;){var i=nt(e[r]);if(!(a=null!=t&&n(t,i)))break;t=t[i]}return a||++r!=o?a:!!(o=null==t?0:t.length)&&yt(o)&&Q(i,o)&&(hn(t)||bn(t))}function Y(t){return"function"!=typeof t.constructor||Z(t)?{}:Ye(Oe(t))}function K(t){return hn(t)||bn(t)||!!(Se&&t&&t[Se])}function Q(t,e){var n=_typeof(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Jt.test(t))&&-1<t&&0==t%1&&t<e}function X(t,e){if(hn(t))return!1;var n=_typeof(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!gt(t))||Pt.test(t)||!Ut.test(t)||null!=e&&t in Object(e)}function Z(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||le)}function tt(e,n){return function(t){return null!=t&&t[e]===n&&(n!==Mt||e in Object(t))}}function et(o,a,i){return a=De(a===Mt?o.length-1:a,0),function(){for(var t=arguments,e=-1,n=De(t.length-a,0),r=Array(n);++e<n;)r[e]=t[a+e];for(e=-1,n=Array(a+1);++e<a;)n[e]=t[e];return n[a]=i(r),function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(o,this,n)}}function nt(t){if("string"==typeof t||gt(t))return t;var e=t+"";return"0"==e&&1/t==-zt?"-0":e}function rt(t){if(null==t)return"";try{return ye.call(t)}catch(t){}return t+""}function ot(t,e,n){var r=null==t?0:t.length;return r?((n=null==n?0:jt(n))<0&&(n=De(r+n,0)),o(t,W(e,3),n)):-1}function at(t){return null!=t&&t.length?function t(e,n,r,o,a){var i=-1,u=e.length;for(r=r||K,a=a||[];++i<u;){var c=e[i];0<n&&r(c)?1<n?t(c,n-1,r,o,a):f(a,c):o||(a[a.length]=c)}return a}(t,1):[]}function it(t){var e=null==t?0:t.length;return e?t[e-1]:Mt}function ut(r,o){function a(){var t=arguments,e=o?o.apply(this,t):t[0],n=a.cache;return n.has(e)?n.get(e):(t=r.apply(this,t),a.cache=n.set(e,t)||n,t)}if("function"!=typeof r||null!=o&&"function"!=typeof o)throw new TypeError("Expected a function");return a.cache=new(ut.Cache||s),a}function ct(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ft(t,e){return t===e||t!=t&&e!=e}function st(t){return null!=t&&yt(t.length)&&!pt(t)}function lt(t){return ht(t)&&st(t)}function pt(t){return!!bt(t)&&("[object Function]"==(t=w(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}function yt(t){return"number"==typeof t&&-1<t&&0==t%1&&t<=9007199254740991}function bt(t){var e=_typeof(t);return null!=t&&("object"==e||"function"==e)}function ht(t){return null!=t&&"object"==_typeof(t)}function vt(t){return!(!ht(t)||"[object Object]"!=w(t))&&(null===(t=Oe(t))||"function"==typeof(t=be.call(t,"constructor")&&t.constructor)&&t instanceof t&&ye.call(t)==de)}function dt(t){return"string"==typeof t||!hn(t)&&ht(t)&&"[object String]"==w(t)}function gt(t){return"symbol"==_typeof(t)||ht(t)&&"[object Symbol]"==w(t)}function _t(t){return t?(t=mt(t))===zt||t===-zt?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function jt(t){var e=(t=_t(t))%1;return t==t?e?t-e:t:0}function mt(t){if("number"==typeof t)return t;if(gt(t))return Ct;if(bt(t)&&(t=bt(t="function"==typeof t.valueOf?t.valueOf():t)?t+"":t),"string"!=typeof t)return 0===t?t:+t;t=t.replace($t,"");var e=Wt.test(t);return e||qt.test(t)?Xt(t.slice(2),e?2:8):Bt.test(t)?Ct:+t}function At(t){return P(t,St(t))}function Ot(t){return null==t?"":N(t)}function wt(t,e,n){return(t=null==t?Mt:A(t,e))===Mt?n:t}function Et(t,e){return null!=t&&J(t,e,L)}function Lt(t){return st(t)?l(t):I(t)}function St(t){if(st(t))t=l(t,!0);else if(bt(t)){var e,n=Z(t),r=[];for(e in t)("constructor"!=e||!n&&be.call(t,e))&&r.push(e);t=r}else{if(e=[],null!=t)for(n in Object(t))e.push(n);t=e}return t}function Tt(t){return null==t?[]:function(e,t){return a(t,function(t){return e[t]})}(t,Lt(t))}function xt(t){return function(){return t}}function It(t){return t}function kt(t){return x("function"==typeof t?t:m(t,1))}function Nt(t){return X(t)?function(e){return function(t){return null==t?Mt:t[e]}}(nt(t)):function(e){return function(t){return A(t,e)}}(t)}function Dt(){return[]}function Ft(){return!1}var Mt,zt=1/0,Ct=NaN,Ut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pt=/^\w*$/,Rt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/^\s+|\s+$/g,Vt=/\\(\\)?/g,Ht=/\w*$/,Bt=/^[-+]0x[0-9a-f]+$/i,Wt=/^0b[01]+$/i,Gt=/^\[object .+?Constructor\]$/,qt=/^0o[0-7]+$/i,Jt=/^(?:0|[1-9]\d*)$/,Yt={};
2971Yt["[object Float32Array]"]=Yt["[object Float64Array]"]=Yt["[object Int8Array]"]=Yt["[object Int16Array]"]=Yt["[object Int32Array]"]=Yt["[object Uint8Array]"]=Yt["[object Uint8ClampedArray]"]=Yt["[object Uint16Array]"]=Yt["[object Uint32Array]"]=!0,Yt["[object Arguments]"]=Yt["[object Array]"]=Yt["[object ArrayBuffer]"]=Yt["[object Boolean]"]=Yt["[object DataView]"]=Yt["[object Date]"]=Yt["[object Error]"]=Yt["[object Function]"]=Yt["[object Map]"]=Yt["[object Number]"]=Yt["[object Object]"]=Yt["[object RegExp]"]=Yt["[object Set]"]=Yt["[object String]"]=Yt["[object WeakMap]"]=!1;var Kt={};Kt["[object Arguments]"]=Kt["[object Array]"]=Kt["[object ArrayBuffer]"]=Kt["[object DataView]"]=Kt["[object Boolean]"]=Kt["[object Date]"]=Kt["[object Float32Array]"]=Kt["[object Float64Array]"]=Kt["[object Int8Array]"]=Kt["[object Int16Array]"]=Kt["[object Int32Array]"]=Kt["[object Map]"]=Kt["[object Number]"]=Kt["[object Object]"]=Kt["[object RegExp]"]=Kt["[object Set]"]=Kt["[object String]"]=Kt["[object Symbol]"]=Kt["[object Uint8Array]"]=Kt["[object Uint8ClampedArray]"]=Kt["[object Uint16Array]"]=Kt["[object Uint32Array]"]=!0,Kt["[object Error]"]=Kt["[object Function]"]=Kt["[object WeakMap]"]=!1;var Qt,Xt=parseInt,Zt="object"==_typeof(On)&&On&&On.Object===Object&&On,te="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,ee=Zt||te||Function("return this")(),ne="object"==_typeof(En)&&En&&!En.nodeType&&En,re=ne&&"object"==_typeof(wn)&&wn&&!wn.nodeType&&wn,oe=re&&re.exports===ne,ae=oe&&Zt.process;t:{try{Qt=ae&&ae.binding&&ae.binding("util");break t}catch(t){}Qt=void 0}var ie,ue=Qt&&Qt.isMap,ce=Qt&&Qt.isSet,fe=Qt&&Qt.isTypedArray,se=Array.prototype,le=Object.prototype,pe=ee["__core-js_shared__"],ye=Function.prototype.toString,be=le.hasOwnProperty,he=(ie=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",ve=le.toString,de=ye.call(Object),ge=RegExp("^"+ye.call(be).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_e=oe?ee.Buffer:Mt,je=ee.Symbol,me=ee.Uint8Array,Ae=_e?_e.a:Mt,Oe=e(Object.getPrototypeOf),we=Object.create,Ee=le.propertyIsEnumerable,Le=se.splice,Se=je?je.isConcatSpreadable:Mt,Te=je?je.toStringTag:Mt,xe=function(){try{var t=q(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ie=Object.getOwnPropertySymbols,ke=_e?_e.isBuffer:Mt,Ne=e(Object.keys),De=Math.max,Fe=Date.now,Me=q(ee,"DataView"),ze=q(ee,"Map"),Ce=q(ee,"Promise"),Ue=q(ee,"Set"),Pe=q(ee,"WeakMap"),Re=q(Object,"create"),$e=rt(Me),Ve=rt(ze),He=rt(Ce),Be=rt(Ue),We=rt(Pe),Ge=je?je.prototype:Mt,qe=Ge?Ge.valueOf:Mt,Je=Ge?Ge.toString:Mt,Ye=function(t){return bt(t)?we?we(t):(Ke.prototype=t,t=new Ke,Ke.prototype=Mt,t):{}};function Ke(){}u.prototype.clear=function(){this.__data__=Re?Re(null):{},this.size=0},u.prototype.delete=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t},u.prototype.get=function(t){var e=this.__data__;return Re?"__lodash_hash_undefined__"===(t=e[t])?Mt:t:be.call(e,t)?e[t]:Mt},u.prototype.has=function(t){var e=this.__data__;return Re?e[t]!==Mt:be.call(e,t)},u.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Re&&e===Mt?"__lodash_hash_undefined__":e,this},c.prototype.clear=function(){this.__data__=[],this.size=0},c.prototype.delete=function(t){var e=this.__data__;return!((t=p(e,t))<0||(t==e.length-1?e.pop():Le.call(e,t,1),--this.size,0))},c.prototype.get=function(t){var e=this.__data__;return(t=p(e,t))<0?Mt:e[t][1]},c.prototype.has=function(t){return-1<p(this.__data__,t)},c.prototype.set=function(t,e){var n=this.__data__,r=p(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},s.prototype.clear=function(){this.size=0,this.__data__={hash:new u,map:new(ze||c),string:new u}},s.prototype.delete=function(t){return t=G(this,t).delete(t),this.size-=t?1:0,t},s.prototype.get=function(t){return G(this,t).get(t)},s.prototype.has=function(t){return G(this,t).has(t)},s.prototype.set=function(t,e){var n=G(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},d.prototype.add=d.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},d.prototype.has=function(t){return this.__data__.has(t)},g.prototype.clear=function(){this.__data__=new c,this.size=0},g.prototype.delete=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t},g.prototype.get=function(t){return this.__data__.get(t)},g.prototype.has=function(t){return this.__data__.has(t)},g.prototype.set=function(t,e){var n=this.__data__;if(n instanceof c){var r=n.__data__;if(!ze||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new s(r)}return n.set(t,e),this.size=n.size,this};var Qe=function(t,e){if(null==t)return t;if(!st(t))return function(t,e){return t&&Xe(t,e,Lt)}(t,e);for(var n=t.length,r=-1,o=Object(t);++r<n&&!1!==e(o[r],r,o););return t},Xe=function(t,e,n){for(var r=-1,o=Object(t),a=(n=n(t)).length;a--;){var i=n[++r];if(!1===e(o[i],i,o))break}return t},Ze=xe?function(t,e){return xe(t,"toString",{configurable:!0,enumerable:!1,value:xt(e),writable:!0})}:It,tn=Ie?function(e){return null==e?[]:(e=Object(e),n(Ie(e),function(t){return Ee.call(e,t)}))}:Dt,en=Ie?function(t){for(var e=[];t;)f(e,tn(t)),t=Oe(t);return e}:Dt,nn=w;(Me&&"[object DataView]"!=nn(new Me(new ArrayBuffer(1)))||ze&&"[object Map]"!=nn(new ze)||Ce&&"[object Promise]"!=nn(Ce.resolve())||Ue&&"[object Set]"!=nn(new Ue)||Pe&&"[object WeakMap]"!=nn(new Pe))&&(nn=function(t){var e=w(t);if(t=(t="[object Object]"==e?t.constructor:Mt)?rt(t):"")switch(t){case $e:return"[object DataView]";case Ve:return"[object Map]";case He:return"[object Promise]";case Be:return"[object Set]";case We:return"[object WeakMap]"}return e});var rn,on,an,un,cn,fn,sn=(un=Ze,fn=cn=0,function(){var t=Fe(),e=16-(t-fn);if(fn=t,0<e){if(800<=++cn)return arguments[0]}else cn=0;return un.apply(Mt,arguments)}),ln=(an=(on=ut(on=function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(Rt,function(t,e,n,r){o.push(n?r.replace(Vt,"$1"):e||t)}),o},function(t){return 500===an.size&&an.clear(),t})).cache,on),pn=(rn=ot,function(t,e,n){var r=Object(t);if(!st(t)){var o=W(e,3);t=Lt(t),e=function(t){return o(r[t],t,r)}}return-1<(e=rn(t,e,n))?r[o?t[e]:e]:Mt});ut.Cache=s;var yn,bn=S(function(){return arguments}())?S:function(t){return ht(t)&&be.call(t,"callee")&&!Ee.call(t,"callee")},hn=Array.isArray,vn=ke||Ft,dn=ue?t(ue):function(t){return ht(t)&&"[object Map]"==nn(t)},gn=ce?t(ce):function(t){return ht(t)&&"[object Set]"==nn(t)}
2971,_n=fe?t(fe):function(t){return ht(t)&&yt(t.length)&&!!Yt[w(t)]},jn=R(function(t,e,n){k(t,e,n)}),mn=R(function(t,e,n,r){k(t,e,n,r)}),An=sn(et(yn=function(e,t){var n={};if(null==e)return n;var r=!1;t=a(t,function(t){return t=F(t,e),r=r||1<t.length,t}),P(e,B(e),n),r&&(n=m(n,7,$));for(var o=t.length;o--;)D(n,t[o]);return n},Mt,at),yn+"");r.constant=xt,r.flatten=at,r.iteratee=kt,r.keys=Lt,r.keysIn=St,r.memoize=ut,r.merge=jn,r.mergeWith=mn,r.negate=ct,r.omit=An,r.property=Nt,r.reject=function(t,e){return(hn(t)?n:function(t,r){var o=[];return Qe(t,function(t,e,n){r(t,e,n)&&o.push(t)}),o})(t,ct(W(e,3)))},r.toPlainObject=At,r.values=Tt,r.cloneDeep=function(t){return m(t,5)},r.cloneDeepWith=function(t,e){return m(t,5,e="function"==typeof e?e:Mt)},r.eq=ft,r.find=pn,r.findIndex=ot,r.get=wt,r.has=function(t,e){return null!=t&&J(t,e,E)},r.hasIn=Et,r.identity=It,r.includes=function(t,e,n,r){if(t=st(t)?t:Tt(t),n=n&&!r?jt(n):0,r=t.length,n<0&&(n=De(r+n,0)),dt(t))t=n<=r&&-1<t.indexOf(e,n);else{if(r=!!r){if(e==e)t:{for(n-=1,r=t.length;++n<r;)if(t[n]===e){t=n;break t}t=-1}else t=o(t,i,n);r=-1<t}t=r}return t},r.isArguments=bn,r.isArray=hn,r.isArrayLike=st,r.isArrayLikeObject=lt,r.isBuffer=vn,r.isEmpty=function(t){if(null==t)return!0;if(st(t)&&(hn(t)||"string"==typeof t||"function"==typeof t.splice||vn(t)||_n(t)||bn(t)))return!t.length;var e=nn(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(Z(t))return!I(t).length;for(var n in t)if(be.call(t,n))return!1;return!0},r.isEqual=function(t,e){return T(t,e)},r.isFunction=pt,r.isLength=yt,r.isMap=dn,r.isNull=function(t){return null===t},r.isObject=bt,r.isObjectLike=ht,r.isPlainObject=vt,r.isSet=gn,r.isString=dt,r.isSymbol=gt,r.isTypedArray=_n,r.last=it,r.stubArray=Dt,r.stubFalse=Ft,r.toFinite=_t,r.toInteger=jt,r.toNumber=mt,r.toString=Ot,r.VERSION="4.17.5",re&&((re.exports=r)._=r,ne._=r)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){e.exports={itemType:{DATA:"data",FCTN:"fctn",EVENT:"event",LISTENER_ON:"listenerOn",LISTENER_OFF:"listenerOff"},dataLayerEvent:{CHANGE:"adobeDataLayer:change",EVENT:"adobeDataLayer:event"},listenerScope:{PAST:"past",FUTURE:"future",ALL:"all"}}},{}],3:[function(t,e,n){var r=t("../custom-lodash"),c=t("../version.json").version,l=r.cloneDeep,p=r.get,y=t("./item"),b=t("./listener"),h=t("./listenerManager"),v=t("./constants"),d=t("./utils/customMerge");e.exports=function(t){var f,e=t||{},n=[],r=[],o={},a={getState:function(){return o},getDataLayer:function(){return n}};function i(t){o=d(o,t.data)}function u(t){t.valid?{data:function(t){i(t),f.triggerListeners(t)},fctn:function(t){t.config.call(n,n)},event:function(t){t.data&&i(t),f.triggerListeners(t)},listenerOn:function(t){var e=b(t);switch(e.scope){case v.listenerScope.PAST:var n,r=_createForOfIteratorHelper(c(t));try{for(r.s();!(n=r.n()).done;){var o=n.value;f.triggerListener(e,o)}}catch(t){r.e(t)}finally{r.f()}break;case v.listenerScope.FUTURE:f.register(e);break;case v.listenerScope.ALL:if(f.register(e)){var a,i=_createForOfIteratorHelper(c(t));try{for(i.s();!(a=i.n()).done;){var u=a.value;f.triggerListener(e,u)}}catch(t){i.e(t)}finally{i.f()}}}},listenerOff:function(t){f.unregister(b(t))}}[t.type](t):s(t);function c(t){return 0===n.length||t.index>n.length-1?[]:n.slice(0,t.index).map(function(t){return y(t)})}}function s(t){var e="The following item cannot be handled by the data layer because it does not have a valid format: "+JSON.stringify(t.config);console.error(e)}return function(){Array.isArray(e.dataLayer)||(e.dataLayer=[]);r=e.dataLayer.splice(0,e.dataLayer.length),(n=e.dataLayer).version=c,o={},f=h(a)}(),n.push=function(t){var n=arguments,r=arguments;if(Object.keys(n).forEach(function(t){var e=y(n[t]);switch(e.valid||(s(e),delete r[t]),e.type){case v.itemType.DATA:case v.itemType.EVENT:u(e);break;case v.itemType.FCTN:delete r[t],u(e);break;case v.itemType.LISTENER_ON:case v.itemType.LISTENER_OFF:delete r[t]}}),r[0])return Array.prototype.push.apply(this,r)},n.getState=function(t){return t?p(l(o),t):l(o)},n.addEventListener=function(t,e,n){u(y({on:t,handler:e,scope:n&&n.scope,path:n&&n.path}))},n.removeEventListener=function(t,e){u(y({off:t,handler:e}))},function(){for(var t=0;t<r.length;t++)n.push(r[t])}(),a}},{"../custom-lodash":1,"../version.json":14,"./constants":2,"./item":5,"./listener":7,"./listenerManager":8,"./utils/customMerge":10}],4:[function(t,e,n){var r={Manager:t("./dataLayerManager")};window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.version?console.warn("Adobe Client Data Layer v".concat(window.adobeDataLayer.version," has already been imported/initialized on this page. You may be erroneously loading it a second time.")):r.Manager({dataLayer:window.adobeDataLayer}),e.exports=r},{"./dataLayerManager":3}],5:[function(t,e,n){var r=t("../custom-lodash"),i=r.isPlainObject,u=r.isEmpty,c=r.omit,f=r.find,s=t("./utils/dataMatchesContraints"),l=t("./itemConstraints"),p=t("./constants");e.exports=function(t,e){var n=t,r=e,o=f(Object.keys(l),function(t){return s(n,l[t])})||"function"==typeof n&&p.itemType.FCTN||i(n)&&p.itemType.DATA,a=function(){var t=c(n,Object.keys(l.event));if(!u(t))return t}();return{config:n,type:o,data:a,valid:!!o,index:r}}},{"../custom-lodash":1,"./constants":2,"./itemConstraints":6,"./utils/dataMatchesContraints":11}],6:[function(t,e,n){e.exports={event:{event:{type:"string"},eventInfo:{optional:!0}},listenerOn:{on:{type:"string"},handler:{type:"function"},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}},listenerOff:{off:{type:"string"},handler:{type:"function",optional:!0},scope:{type:"string",values:["past","future","all"],optional:!0},path:{type:"string",optional:!0}}}},{}],7:[function(t,e,n){var r=t("./constants");e.exports=function(t){return{event:t.config.on||t.config.off,handler:t.config.handler||null,scope:t.config.scope||t.config.on&&r.listenerScope.ALL||null,path:t.config.path||null}}},{"./constants":2}],8:[function(t,e,n){var u=t("../custom-lodash").cloneDeep,c=t("./constants"),f=t("./utils/listenerMatch"),s=t("./utils/indexOfListener");e.exports=function(t){var o={},r=t,a=s.bind(null,o);function i(t,e){if(f(t,e)){var n=[u(e.config)];t.handler.apply(r.getDataLayer(),n)}}return{register:function(t){var e=t.event;return Object.prototype.hasOwnProperty.call(o,e)?-1===a(t)&&(o[t.event].push(t),!0):(o[t.event]=[t],!0)},unregister:function(t){var e=t.event;if(Object.prototype.hasOwnProperty.call(o,e))if(t.handler||t.scope||t.path){var n=a(t);-1<n&&o[e].splice(n,1)}else o[e]=[]},triggerListeners:function(r){(function(t){var e=[];switch(t.type){case c.itemType.DATA:e.push(c.dataLayerEvent.CHANGE);break;case c.itemType.EVENT:e.push(c.dataLayerEvent.EVENT),t.data&&e.push(c.dataLayerEvent.CHANGE),t.config.event!==c.dataLayerEvent.CHANGE&&e.push(t.config.event)}return e})(r).forEach(function(t){if(Object.prototype.hasOwnProperty.call(o,t)){var e,n=_createForOfIteratorHelper(o[t]);try{for(n.s();!(e=n.n()).done;){i(e.value,r)}}catch(t){n.e(t)}finally{n.f()}}})},triggerListener:function(t,e){i(t,e)}}}},{"../custom-lodash":1,"./constants":2,"./utils/indexOfListener":12,"./utils/listenerMatch":13}],9:[function(t,e,n){var r=t("../../custom-lodash"),o=r.has,a=r.get;e.exports=function(t,e){for(var n=e.substring(0,e.lastIndexOf("."));n;){if(o(t,n)){var r=a(t,n);if(null==r)return!0}n=n.substring(0,n.lastIndexOf("."))}return!1}},{"../../custom-lodash":1}],10:[function(t,e,n){var r=t("../../custom-lodash"),s=r.cloneDeepWith,l=r.isObject,p=r.isArray,y=r.reject,o=r.mergeWith,a=r.isNull;e.exports=function(t,e){return o(t,e,function(t,e,n,r){if(null==e)return null}),t=function(t,e){return s(t,function(f){return function e(t,n,r,o){if(l(t)){if(p(t))return y(t,f).map(function(t){return s(t,e)});for(var a={},i=0,u=Object.keys(t);i<u.length;i++){var c=u[i];f(t[c])||(a[c]=s(t[c],e))}return a}}}(1<arguments.length&&void 0!==e?e:function(t){return!t}))}(t,a)}},{"../../custom-lodash":1}],11:[function(t,e,n){var r=t("../../custom-lodash"),o=r.find,s=r.includes;e.exports=function(c,f){return void 0===o(Object.keys(f),function(t){var e=f[t].type,n=t&&f[t].values,r=!f[t].optional,o=c[t],a=_typeof(o),i=e&&a!==e,u=n&&!s(n,o);return r?!o||i||u:o&&(i||u)})}},{"../../custom-lodash":1}],12:[function(t,e,n){var c=t("../../custom-lodash").isEqual;e.exports=function(t,e){var n=e.event;if(Object.prototype.hasOwnProperty.call(t,n)){var r,o=_createForOfIteratorHelper(t[n].entries());try{for(o.s();!(r=o.n()).done;){var a=_slicedToArray(r.value,2),i=a[0],u=a[1];if(c(u.handler,e.handler))return i}}catch(t){o.e(t)}finally{o.f()}}return-1}},{"../../custom-lodash":1}],13:[function(t,e,n){var r=t("../../custom-lodash").has,a=t("../constants"),o=t("./ancestorRemoved");function i(t,e){return!e.data||!t.path||(r(e.data,t.path)||o(e.data,t.path))}
2971e.exports=function(t,e){var n=t.event,r=e.config,o=!1;return e.type===a.itemType.DATA?n===a.dataLayerEvent.CHANGE&&(o=i(t,e)):e.type===a.itemType.EVENT&&(n!==a.dataLayerEvent.EVENT&&n!==r.event||(o=i(t,e)),e.data&&n===a.dataLayerEvent.CHANGE&&(o=i(t,e))),o}},{"../../custom-lodash":1,"../constants":2,"./ancestorRemoved":9}],14:[function(t,e,n){e.exports={version:"2.0.2"}},{}]},{},[4]);
2972//# sourceMappingURL=adobe-client-data-layer.min.js.map
2973
2974/*******************************************************************************
2975 * Copyright 2020 Adobe
2976 *
2977 * Licensed under the Apache License, Version 2.0 (the "License");
2978 * you may not use this file except in compliance with the License.
2979 * You may obtain a copy of the License at
2980 *
2981 *     http://www.apache.org/licenses/LICENSE-2.0
2982 *
2983 * Unless required by applicable law or agreed to in writing, software
2984 * distributed under the License is distributed on an "AS IS" BASIS,
2985 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2986 * See the License for the specific language governing permissions and
2987 * limitations under the License.
2988 ******************************************************************************/
2989(function() {
2990    "use strict";
2991
2992    var dataLayerEnabled;
2993    var dataLayerName;
2994    var dataLayer;
2995
2996    function addComponentToDataLayer(component) {
2997        dataLayer.push({
2998            component: getComponentObject(component)
2999        });
3000    }
3001
3002    function attachClickEventListener(element) {
3003        element.addEventListener("click", addClickToDataLayer);
3004    }
3005
3006    function getComponentObject(element) {
3007        var component = getComponentData(element);
3008        var componentID = Object.keys(component)[0];
3009        // if the component does not have a parent ID property, use the ID of the parent element
3010        if (component && component[componentID] && !component[componentID].parentId) {
3011            var parentElement = element.parentNode.closest("[data-cmp-data-layer], body");
3012            if (parentElement) {
3013                component[componentID].parentId = parentElement.id;
3014            }
3015        }
3016
3017        return component;
3018    }
3019
3020    function addClickToDataLayer(event) {
3021        var element = event.currentTarget;
3022        var componentId = getClickId(element);
3023
3024        dataLayer.push({
3025            event: "cmp:click",
3026            eventInfo: {
3027                path: "component." + componentId
3028            }
3029        });
3030    }
3031
3032    function getComponentData(element) {
3033        var dataLayerJson = element.dataset.cmpDataLayer;
3034        if (dataLayerJson) {
3035            return JSON.parse(dataLayerJson);
3036        } else {
3037            return undefined;
3038        }
3039    }
3040
3041    function getClickId(element) {
3042        if (element.dataset.cmpDataLayer) {
3043            return Object.keys(JSON.parse(element.dataset.cmpDataLayer))[0];
3044        }
3045
3046        var componentElement = element.closest("[data-cmp-data-layer]");
3047
3048        return Object.keys(JSON.parse(componentElement.dataset.cmpDataLayer))[0];
3049    }
3050
3051    function onDocumentReady() {
3052        dataLayerEnabled = document.body.hasAttribute("data-cmp-data-layer-enabled");
3053        if (dataLayerEnabled) {
3054            dataLayerName = document.body.getAttribute("data-cmp-data-layer-name") || "adobeDataLayer";
3055            dataLayer = window[dataLayerName] = window[dataLayerName] || [];
3056
3057            var components        = document.querySelectorAll("[data-cmp-data-layer]");
3058            var clickableElements = document.querySelectorAll("[data-cmp-clickable]");
3059
3060            components.forEach(function(component) {
3061                addComponentToDataLayer(component);
3062            });
3063
3064            clickableElements.forEach(function(element) {
3065                attachClickEventListener(element);
3066            });
3067
3068            dataLayer.push({
3069                event: "cmp:loaded"
3070            });
3071        }
3072    }
3073
3074    if (document.readyState !== "loading") {
3075        onDocumentReady();
3076    } else {
3077        document.addEventListener("DOMContentLoaded", onDocumentReady);
3078    }
3079
3080}());
3081
3082(n=>{var r={};function o(e){var t;return(r[e]||(t=r[e]={i:e,l:!1,exports:{}},n[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
3082),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)})([function(e,t,n){n.r(t),n(1),n(0)},function(e,t,n){}]);
3083let defaultSiteKey="6LeBtQ4eAAAAANAGriN7irklmRSsgUXVbzzyw-O3",preSiteKey="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI",recaptchaId=$("#recaptchaID").val(),isPreEnvironment=/(^|\.)(dev|qa|stage)-/.test(window.location.hostname),siteKey=isPreEnvironment?preSiteKey:recaptchaId||defaultSiteKey;function onSubmitRecaptcha(e){0<e.length&&$(".g-recaptcha").trigger("success",[e]),grecaptcha.reset()}var RepsolRecaptcha={init:function(){var e;window.location.href.includes("repsol-landings")||window.location.hostname.includes("luzgas.ahorraconrepsol.com")||window.location.hostname.includes("athleticpetronorenergia.com")||window.location.hostname.includes("ofertas.repsol.es")||window.location.hostname.includes("energia.repsol.com")||$(".g-recaptcha").length&&($(".g-recaptcha").attr("data-sitekey",siteKey),(e=document.createElement("script")).setAttribute("type","text/javascript"),e.setAttribute("src","https://www.google.com/recaptcha/api.js"),document.getElementsByTagName("head")[0].appendChild(e))},checkCaptcha:function(e){var t;window.location.href.includes("repsol-landings")||window.location.hostname.includes("luzgas.ahorraconrepsol.com")||window.location.hostname.includes("athleticpetronorenergia.com")||window.location.hostname.includes("ofertas.repsol.es")||window.location.hostname.includes("energia.repsol.com")||($(document).find(".g-recaptcha").length?$(document).find(".g-recaptcha").removeClass("d-none"):(e=e||$(".rp-es-container").find("form"),t='<div class="g-recaptcha" data-sitekey="'+siteKey+'" data-callback="onSubmitRecaptcha" data-size="invisible"></div>',0!=e.length&&(e.append(t),(e=document.createElement("script")).setAttribute("type","text/javascript"),e.setAttribute("src","https://www.google.com/recaptcha/api.js"),document.getElementsByTagName("head")[0].appendChild(e))))},hideCaptcha:function(){0==$("main.rp-es-container").find("form, .form").not(".form-modal").length&&$(document).find(".g-recaptcha").addClass("d-none")},moveCaptcha:function(e){$(document).find(".g-recaptcha").insertAfter(e)},execute:()=>new Promise((a,n)=>{$(".g-recaptcha").on("success",function(e,t){t?a(t):n("No se recibió token")});try{grecaptcha.execute()}catch(e){n(e)}})},RepsolDropdownExtend={init:function(){0<$(".dropdown-extend").length&&$(".dropdown-extend").each(function(){var e=$
3083(this);RepsolDropdownExtend.addClassListener(e)})},addClassListener:function(n){let e={attributes:!0};let t=new MutationObserver(function(e,t){for(;0<e.length;){var a=e[0];if("attributes"===a.type&&"class"===a.attributeName){0<n.find(".dropdown-item.active").length?RepsolDropdownExtend.setActiveText(n,n.find(".dropdown-item.active").text()):RepsolDropdownExtend.setActiveText(n,$(n.find(".dropdown-item")[0]).text());break}}});n.find(".dropdown-item").each(function(){t.observe(this,e)})},setActiveText:function(e,t){e.find(".dropdown-toggle").text(t)}};Repsol.ACG={setData:e=>{var t=new URLSearchParams(window.location.search),t=t.has("guid")?t.get("guid"):"";return t&&(e.Gigya_UID__c=t),e}},Repsol.favicon={incognito:()=>{try{detectIncognito().then(e=>{if(e.isPrivate){e=document.querySelectorAll('link[rel="icon"]');let t=e[0]?.getAttribute("data-dark");t&&e.forEach(e=>e.href=t)}})}catch(e){}}},Repsol.modal={init:async()=>{await Repsol.modal.loadModalContent()},loadModalContent:()=>{document.querySelectorAll(".modal[data-path-modal]").forEach(async t=>{var e=t.getAttribute("data-path-modal");if(e)try{var a=await fetch(e);if(a.ok){var n,o,i,c=await a.text();let e=c;(e=-1!=c.indexOf('data-load-modal-content="data-path-modal"')&&((n=document.createElement("div")).innerHTML=c,o=n.querySelector("[data-load-modal-content='data-path-modal']"))?o.innerHTML:e)&&(t.innerHTML=e,i=new Event("uploadedModalContent"),t.dispatchEvent(i))}}catch(e){}})}},$(document).ready(function(){Repsol.favicon.incognito(),RepsolRecaptcha.init(),RepsolDropdownExtend.init(),Repsol.modal.init(),$("table th:nth-child(1)").addClass("sticky-table"),$("table td:nth-child(1)").addClass("sticky-table")});
3084Repsol.select={event:document.createEvent("Event"),init:function(){Repsol.select.event.initEvent("rp-select-change",!0,!0),Repsol.select.events(),Repsol.select.multiselect()},events:function(){$(document).on("click",".rp-dropdown.mode-select:not(.rp-disabled) .dropdown-item",function(){Repsol.select.setValue($(this)),document.dispatchEvent(Repsol.select.event),(0<$(this).closest(".rp-dropdown").find(".dropdown-toggle-custom").length?$(this).closest(".rp-dropdown").find(".dropdown-toggle-custom"):$(this).closest(".rp-dropdown").find(".dropdown-toggle")).trigger("rp-change")})},setValue:function(e){var t=e.text(),o=(0<e.find(".rds-color-content-medium").length&&(t=e.find(".text-dropdown").text()),e.attr("data-value")),d=(e.parents(".rp-dropdown").find(".active-dropdown-item").removeClass("active-dropdown-item"),e.addClass("active-dropdown-item"),0<e.parents(".rp-dropdown").find(".dropdown-toggle-custom").length?e.parents(".rp-dropdown").find(".dropdown-toggle-custom"):e.parents(".rp-dropdown").find(".dropdown-toggle"));$(".rp-dropdown--checkbox").length<=0&&(d.attr("data-value",o).text(t),d.addClass("is-checked")),e.parents(".rp-dropdown").trigger("change")},multiselect:function(){$(".rp-dropdown--checkbox").length&&($(".rp-dropdown--checkbox").attr("selected-filters"),$(".dropdown-cta-delete").on("click",function(){$(this).closest(".rp-dropdown--checkbox").attr("selected-filters","");(0<$(this).closest(".rp-dropdown").find(".dropdown-toggle-custom").length?$(this).closest(".rp-dropdown").find(".dropdown-toggle-custom"):$(this).closest(".rp-dropdown").find(".dropdown-toggle")).find(".selected-filters-length").remove();var e=$(this).closest(".dropdown-menu").find(".dropdown-item");$(e).each(function(){$(this).find(".dropdown-checkbox").prop("checked",!1)})}
3084),$(".dropdown-cta-save").on("click",function(){var e=$(this).closest(".dropdown-menu").find(".dropdown-item"),t=[],e=($(e).each(function(){var e;$(this).find(".dropdown-checkbox").is(":checked")&&(e=$(this).find(".dropdown-name").text()),t.push(e),$(this).closest(".rp-dropdown--checkbox").attr("selected-filters",t)}),$(this).closest(".dropdown-menu").find(".dropdown-checkbox:checked").length),o=0<$(this).closest(".rp-dropdown").find(".dropdown-toggle-custom").length?$(this).closest(".rp-dropdown").find(".dropdown-toggle-custom"):$(this).closest(".rp-dropdown").find(".dropdown-toggle");o.find(".selected-filters-length").length?o.find(".selected-filters-length").text("("+e+")"):o.append("<span class='selected-filters-length'>("+e+")</span>"),o.attr("selected-filters",t)}))}},Repsol.select.init();
3085Repsol.utils={getLanguage:function(){return"es-ES"==$(document).find("html").attr("lang")||"es"==$(document).find("html").attr("lang")?"es":"en"},setLoader:function(e,t){var o,a,n=!1,i=(void 0===t&&(t=$("main").first(),n=!0),null!=t&&0==t.find(".rp-loader").length&&t.prepend(Repsol.utils.getLoaderHtml()),t.find(".rp-loader"));e?(n&&(e=$("header").outerHeight(),o=$(window).height(),a=t.outerHeight(),t.css("position","relative"),$("body").css("overflow","hidden"),a<o?t.find(".rp-loader__container").css({position:"absolute",top:"50%",left:"50%","margin-left":"-52px",transform:"translateY(-50%)"}):(a=(window.scrollY||window.pageYOffset)+e+(o-e)/2-52-80,t.find(".rp-loader__container").css({position:"absolute",top:a+"px",left:"50%","margin-left":"-52px",transform:""}))),i.attr("aria-hidden","false").show()):(n&&(t.css("position",""),$("body").css("overflow",""),t.find(".rp-loader__container").css({position:"",top:"",left:"","margin-left":"",transform:""})),i.attr("aria-hidden","true").hide())},getLoaderHtml:function(){var e=Math.random().toString(36).substring(2,9);return`
3086			<div class="rp-loader" role="dialog" aria-modal="true" aria-labelledby="modal-label" aria-describedby="modal-description" tabindex="-1">
3087				<div class="rp-loader__overlay">
3088					<div class="rp-loader__container">
3089						<div class="rp-loader__content">
3090							<svg viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg" class="loading-img w3-spin">
3091								<path fill-rule="evenodd" clip-rule="evenodd" d="M40 0C17.909 0 0 17.909 0 40s17.909 40 40 40 40-17.909 40-40S62.091 0 40 0Zm0 3.333C19.75 3.333 3.333 19.75 3.333 40S19.75 76.667 40 76.667 76.667 60.25 76.667 40 60.25 3.333 40 3.333Z" fill="#FFF5F0"></path>
3092								<path fill-rule="evenodd" clip-rule="evenodd" d="M40 0C17.909 0 0 17.909 0 40s17.909 40 40 40 40-17.909 40-40S62.091 0 40 0Zm0 3.333C19.75 3.333 3.333 19.75 3.333 40S19.75 76.667 40 76.667 76.667 60.25 76.667 40 60.25 3.333 40 3.333Z" fill="url(#spinner_svg__paint0_radial_${e})" fill-opacity=".16"></path>
3093								<path fill-rule="evenodd" clip-rule="evenodd" d="M40 0C17.909 0 0 17.909 0 40s17.909 40 40 40 40-17.909 40-40S62.091 0 40 0Zm0 3.333C19.75 3.333 3.333 19.75 3.333 40S19.75 76.667 40 76.667 76.667 60.25 76.667 40 60.25 3.333 40 3.333Z" fill="url(#spinner_svg__paint1_radial_${e})" fill-opacity=".08"></path>
3094								<path fill-rule="evenodd" clip-rule="evenodd" d="M40 0C17.909 0 0 17.909 0 40s17.909 40 40 40 40-17.909 40-40S62.091 0 40 0Zm0 3.333C19.75 3.333 3.333 19.75 3.333 40S19.75 76.667 40 76.667 76.667 60.25 76.667 40 60.25 3.333 40 3.333Z" fill="url(#spinner_svg__paint2_radial_${e})" fill-opacity=".16"></path>
3095								<path fill-rule="evenodd" clip-rule="evenodd" d="M40 0C17.909 0 0 17.909 0 40s17.909 40 40 40 40-17.909 40-40S62.091 0 40 0Zm0 3.333C19.75 3.333 3.333 19.75 3.333 40S19.75 76.667 40 76.667 76.667 60.25 76.667 40 60.25 3.333 40 3.333Z" fill="url(#spinner_svg__paint3_radial_${e})" fill-opacity=".16"></path>
3096								<mask id="spinner_svg__mask0_${e}" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="0" width="80" height="80">
3097									<path fill-rule="evenodd" clip-rule="evenodd" d="M40 0C17.909 0 0 17.909 0 40s17.909 40 40 40 40-17.909 40-40S62.091 0 40 0Zm0 3.333C19.75 3.333 3.333 19.75 3.333 40S19.75 76.667 40 76.667 76.667 60.25 76.667 40 60.25 3.333 40 3.333Z" fill="#fff"></path>
3098								</mask>
3099								<g mask="url(#spinner_svg__mask0_${e})">
3100									<path fill-rule="evenodd" clip-rule="evenodd" d="M39.333-5.333v52.667L6 72l26 13.334L72.667 78l10.666-30.666V18L62-2 39.333-5.333Z" fill="url(#spinner_svg__paint4_linear_${e})"></path>
3101								</g>
3102								<defs>
3103									<radialGradient id="spinner_svg__paint0_radial_${e}" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(57.61258 -44.16074 47.13316 61.49043 -24.58 99.858)">
3104										<stop stop-color="#F63D78"></stop>
3105										<stop offset="1" stop-color="#F63D78" stop-opacity="0"></stop>
3106									</radialGradient>
3107									<radialGradient id="spinner_svg__paint1_radial_${e}" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(40.07805 40.09484 -49.29998 49.27933 0 0)">
3108										<stop stop-color="#FFC700"></stop>
3109										<stop offset="1" stop-color="#FFC700" stop-opacity="0"></stop>
3110									</radialGradient>
3111									<radialGradient id="spinner_svg__paint2_radial_${e}" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(150.728 58.023 -1.413) scale(92.2494 124.493)">
3112										<stop stop-color="#F50D36"></stop>
3113										<stop offset="1" stop-color="#F50D36" stop-opacity="0"></stop>
3114									</radialGradient>
3115									<radialGradient id="spinner_svg__paint3_radial_${e}" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-43.60053 -31.6788 41.20297 -56.70895 83.68 85.201)">
3116										<stop stop-color="#FF9903"></stop>
3117										<stop offset="1" stop-color="#FF9903" stop-opacity="0"></stop>
3118									</radialGradient>
3119									<linearGradient id="spinner_svg__paint4_linear_${e}" x1="12.77" y1="-18.931" x2="97.378" y2="94.794" gradientUnits="userSpaceOnUse">
3120										<stop stop-color="#FF9C00"></stop>
3121										<stop offset=".35" stop-color="#FF7E45"></stop>
3122										<stop offset=".75" stop-color="#FF3740"></stop>
3123										<stop offset="1" stop-color="#C02030"></stop>
3124									</linearGradient>
3125								</defs>
3126							</svg>
3127						</div>
3128					</div>
3129				</div>
3130			</div>`},getCookie:function(e){for(var t=e+"=",o=decodeURIComponent(document.cookie).split(";"),a=0;a<o.length;a++){for(var n=o[a];" "==n.charAt(0);)n=n.substring(1);if(0==n.indexOf(t))return n.substring(t.length,n.length)}return""},replaceAll:function(e,t,o){return null!=e?e.replace(new RegExp(t,"g"),o):e},replaceAllVowels:function(e){return e.replace(/[áàâä]/gi,"a").replace(/[éèêë]/gi,"e").replace(/[íìîï]/gi,"i").replace(/[óòôö]/gi,"o").replace(/[úùûü]/gi,"u")},getFreeSpaceText:function(e){for(var t=e.split(/[\s\t\n]/g),o="",a=0;a<t.length;a++)""!=t[a]&&(o+=t[a]+" ");return o},getRandomId:function(){return"a"+Math.random().toString(36).substring(7)},setCookie:function(e,t,o){var a=new Date;a.setTime(a.getTime()+864e5*o),document.cookie=e+"="+t+";path=/;expires="+a.toGMTString()},deleteCookie:function(e){Repsol.utils.setCookie(e,"",-1)},getTypePipeline:function(e){var t=Repsol.Analytics.getInfoUser(),o=e.attr("data-pipeline");null==o||"net"!=o&&"Myrepsolnet"!=o||(o="865986578",null!=t&&null!=t.type&&"interno"==t.type&&(o="489434832"),e.attr("data-pipeline",o))},queryParam:function(e){return queryParams[e]||""},searchParamUtm:function(){3<window.location.search.length&&(queryParams={},queryParamsExit=!1,$.each(window.location.search.substring(1).split("&"),function(){var e=this.split("=");["utm_source","utm_campaign","utm_content","utm_medium","utm_term","sf_reyg_source","origin_component"].includes(e[0])&&(queryParamsExit=queryParamsExit||!0,queryParams[e[0]]=decodeURIComponent(e[1]||""))}),void 0!==queryParams&&null===Repsol.utils.getData("UTM")&&(Repsol.utils.createStorage("UTM",queryParams,!0),utm_Form=Repsol.utils.getData("UTM")),queryParams.origin_component)&&Repsol.utils.createStorage("originComponent",queryParams.origin_component,!0),Repsol.utils.setParamUtm()},setParamUtm:function(){var e;sf_reyg_source=void 0!==window.utm_Form?(utm_Source=utm_Form.utm_source,utm_Component=utm_Form.utm_component||Repsol.utils.getData("originComponent"),utm_campaign=utm_Form.utm_campaign,utm_content=utm_Form.utm_content,utm_medium=utm_Form.utm_medium,utm_term=utm_Form.utm_term,void 0!==utm_Form.sf_reyg_source?utm_Form.sf_reyg_source:""):"rpVar_UTM"in sessionStorage?(e=Repsol.utils.getData("rpVar_UTM")||{},utm_Source=e.utm_source,utm_Component=e.utm_component||Repsol.utils.getData("originComponent"),utm_campaign=e.utm_campaign,utm_content=e.utm_content,utm_medium=e.utm_medium,utm_term=e.utm_term,void 0!==e.sf_reyg_source?e.sf_reyg_source:""):(utm_Component=Repsol.utils.getData("originComponent")||null,utm_Source=null,utm_campaign="",utm_content="",utm_medium="",utm_term="")},getParamUtm:function(){let o={};return 3<window.location.search.length&&$.each(window.location.search.substring(1).split("&"),function(e){var t=this.split("=");"utm_source"!=t[0]&&"utm_component"!=t[0]&&"utm_campaign"!=t[0]&&"utm_content"!=t[0]&&"utm_medium"!=t[0]&&"utm_term"!=t[0]&&"sf_reyg_source"!=t[0]||(o[t[0]]=t[1])}),o},getQueryParamValue:function(e){return new URLSearchParams(window.location.search).get(e)},setOriginSource:function(){var e=Repsol.utils.getQueryParamValue("origin_source");e&&Repsol.utils.createStorage("originSource",e,!0)},setOriginComponent:function(){var e=Repsol.utils.getQueryParamValue("origin_component");e&&Repsol.utils.createStorage("originComponent",e,!0)},getOptanonConsent:function(){var e=Repsol.utils.getCookie("OptanonConsent").split("&").find(e=>e.startsWith("groups="));return e?(e=e.split("=")[1],decodeURIComponent(e?","+e+",":"Cookie no encontrada")):"Cookie no encontrada"},scrollableDiv:{init:function(e){e.addClass("is-scrollable");var t=e.find(" > * ");Repsol.utils.scrollableDiv.check(e,t),t.scroll(function(){Repsol.utils.scrollableDiv.check(e,t)})},check:function(e,t){0==t.scrollTop()?(e.removeClass("scrolling scroll-on-bottom"),e.addClass("scroll-on-top")):t.scrollTop()+t.innerHeight()>=t[0].scrollHeight?(e.removeClass("scrolling scroll-on-top"),e.addClass("scroll-on-bottom")):(e.removeClass("scroll-on-top scroll-on-bottom"),e.addClass("scrolling"))},reset:function(e){e.removeClass("is-scrollable scrolling scroll-on-top scroll-on-bottom")}},modalPolicies:{init:function(e,t){e="<div class='modal modal-policies' id='policies'><div class='modal-dialog modal-dialog-scrollable modal-lg'><div class='modal-content'><div class='modal-header'><h4 class='modal-title rp-subheadline'>"+e+"</h4><button type='button' class='close' data-dismiss='modal' aria-label=Close><span aria-hidden='true'>&times;</span></button></div><div class='modal-body'>"+t+"</div></div></div></div>";0!=$(document).find(".modal.modal-policies").length&&Repsol.utils.modalPolicies.hide(),$("body").append(e),Repsol.utils.modalPolicies.show("#policies")},show:function(e){$(e).modal(),$(e).modal("show")},hide:function(){$("#policies").remove()}},createStorage:function(e,t,o=!0){o=o?"rpVar_":"";"undefined"!=typeof Storage?window.sessionStorage.setItem(o+e,JSON.stringify(t)):console.log("Navegador no compatible con storage")},createStorageExist:function(e,t){var o,a;null==window.sessionStorage.getItem(e)?window.sessionStorage.setItem(e,t):(o=window.sessionStorage.getItem(e).split(","),a=!1,$.each(o,function(e){o[e]==t&&(a=!0)}),a||(o.push(t),window.sessionStorage.setItem(e,o)))},getData:function(e){null!=(data=window.sessionStorage.getItem(e))&&data.length||(data=window.sessionStorage.getItem("rpVar_"+e));try{return JSON.parse(data)}catch(e){return data}},setData:function(e,t){window.sessionStorage.setItem(e,JSON.stringify(t))},removeData:function(e){window.sessionStorage.removeItem(e),window.sessionStorage.removeItem("rpVar_"+e)},sendData:function(t){t=Repsol.utils.getData(t);
3130if(t)try{window.dataLayer.push(JSON.parse(t)),Repsol.Analytics.sendAdobeDataLayer(JSON.parse(t))}catch(e){window.dataLayer.push(t),Repsol.Analytics.sendAdobeDataLayer(t)}},sendDataLY:function(e){var t=Repsol.utils.getData(e);for(key in t)"undefined"==t[key]&&(t[key]=void 0);Repsol.Analytics.setInfoClick(t)},addVarSession:function(e){varSessions.push(e)},funnel:{initFunnel:function(){var e="quotationData";window.sessionStorage.getItem(e)?Repsol.utils.sendData(e):(Repsol.utils.createStorage(e,JSON.parse('{ "existingIdLead":"", "GPMIR_fld_canal":"", "GPMIR_fld_codigoOrigen":"", "GPMIR_fld_nif_nie_cif":"", "GPMIR_fld_firstName":"", "GPMIR_fld_lastName":"", "GPMIR_fld_email":"", "GPMIR_fld_phone":"", "GPMIR_fld_consent":"", "GPMIR_fld_rpsClosing":"", "GPMIR_fld_customerType":"", "DireccionCP":"", "DireccionProvincia":"", "DireccionCiudad":"", "GPMIR_fld_city":"", "DireccionMunicipio":"", "Direccion":"", "DireccionVia":"", "DireccionCalle":"", "DireccionBloque":"", "DireccionNumero":"", "DireccionPiso":"",  "DireccionPuerta":"", "DigitalCategory":"FunnelWeb", "Suborigen":"", "UTM_Campaign":"", "UTM_Content":"", "UTM_Medium":"", "UTM_Source":"", "UTM_Term":"", "IdLanding":"100", "Google_CID":"", "Commodity":"", "GPMIR_fld_description":"", "GPMIR_fld_cups1":"", "GPMIR_fld_supplierE":"", "Tarifa_Luz":"", "Potencia":"", "Productfamily":"", "Product":"", "Comments":"", "SVAprice1":"", "SVAprice2":"", "Powerprice1":"", "Powerprice2":"", "Powerprice3":"", "Powerprice4":"", "Powerprice5":"", "Powerprice6":"", "Energyprice1":"", "Energyprice2":"", "Energyprice3":"", "Energyprice4":"", "Energyprice5":"", "Energyprice6":"", "AnnualConsumption1":"", "AnnualConsumption2":"", "AnnualConsumption3":"", "AnnualConsumption4":"", "AnnualConsumption5":"", "AnnualConsumption6":"", "idPark":"", "idZone":"", "Tarifa_Gas":"", "TFprice":"", "TVprice":"",  "Totalprice":"", "Flow":"", "canOfferFlatRate": "", "stageOriginal": "", "productExist": "", "Suborigen": "", "idContract": "", "TotalpriceService": "", "ProductoGas": "", "ProductfamilyGas": "", "SVAname1": "", "SVAname2": "", "Power1": "", "Power2": "", "Power3": "", "Power4": "", "Power5": "", "Power6": ""}'),!1),Repsol.utils.funnel.checkQuoteProductExits())},checkQuoteProductExits:function(){var e=Repsol.utils.getData("quoteProduct"),t=Repsol.utils.getData("quotationData");t.productExist=e&&e.name&&""!=e.name?e.name:"",Repsol.utils.setData("quotationData",t)},clearEYGSession:()=>{Repsol.utils.removeData("funnelStarted"),Repsol.utils.removeData("formFunnel"),Repsol.utils.removeData("repsolDataLayer"),Repsol.utils.removeData("quotationData"),Repsol.utils.removeData("quoteProduct"),Repsol.utils.removeData("quoteProductFlatRate"),Repsol.utils.removeData("cups"),Repsol.utils.removeData("cups2"),Repsol.utils.removeData("hiringData"),Repsol.utils.removeData("supplyAddressesData"),Repsol.utils.removeData("data-park"),Repsol.utils.removeData("id_park"),Repsol.utils.removeData("data-zona"),Repsol.utils.removeData("funnelFlags"),Repsol.utils.deleteCookie("crossSellingTP"),Repsol.utils.removeData("rpVar_family_name"),Repsol.utils.removeData("JsonProductos")},clearSVASession:()=>{Repsol.utils.removeData("funnelSVAProduct"),Repsol.utils.removeData("funnelSVAData")},clearSession:function(){Repsol.utils.funnel.clearEYGSession(),Repsol.utils.funnel.clearSVASession()}},getProductFamily:function(){var e=Repsol.utils.getData("quoteProduct");return e&&""!=e?e.family||"":Repsol.utils.getData("family_name")||""},setPointMill:function(e){return e.replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d)\.?)/g,".")},getNoBrowserCacheParam:function(){return"skipcache="+(new Date).getTime()},formatFareCardFare:function(e){var t=parseFloat(e.find(".price-max").attr("data-base-fare")).toFixed(2).toString();e.find(".price-max").html(t.replace(".",",")),$("body").find(".card-fare-including-price").each(function(){var e=$
3130(this),t=parseFloat(e.attr("data-base-fare")).toFixed(2).toString();e.find(".fare-amount").html(t.replace(".",","))}),$("body").find(".card-fare-sva-item").each(function(){var e=$(this),t=parseFloat(e.find(".fare").attr("data-base-fare")).toFixed(2).toString();e.find(".fare-amount").html(t.replace(".",","))})},encryptCUPS:function(e){return e=(e=e).replace(/.(?=.{6,}$)/g,"*")},encryptAddress:function(e){return e="***************"+(e=e).substr(e.length-6)},isMobilePhone:function(e){return!!/^(6|7)([0-9]){8}$/.test(e)},isHomePhone:function(e){return!!/^(9|8)([0-9]){8}$/.test(e)},parseParams:function(e){var t={};if(""!=e)for(var o=e.split("&"),a=0;a<o.length;a++){var n=o[a].split("="),i=n[0]||"",n=n[1]||"";""!=i&&""!=n&&(t[i]=n)}return t},getType:function(){return window.location.pathname.indexOf("/pymes1/")?"BTB":"BTC"},isLocationPermissionActivated:function(){return new Promise(function(t,o){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(){t()},function(e){(e.code==e.PERMISSION_DENIED?o:t)()}):o()})},setQueryParamsStorage:function(){window.location.href;var e=window.location.search,t=new URLSearchParams(e),o=t.get("gclid"),a=t.get("msclkid");null!==e&&(t.has("gclid")&&Repsol.utils.setCookie("gclid",o),t.has("_fbc")&&Repsol.utils.setCookie("_fbc",fbcVal),t.has("_fbp")&&Repsol.utils.setCookie("_fbp",fbpVal),t.has("msclkid"))&&Repsol.utils.setCookie("msclkid",a)},getKeyValuesFromObject:function(e,o){e.forEach(e=>{var t;t=e,void 0!==(e=(e=o).find(e=>e.hasOwnProperty(t)))&&(e=e[t],Repsol.utils.createStorage(t,e,!0))})},checkRequiredLopd:e=>!!(e.find(".lopd-tooltip").length&&0==e.find(".lopd-tooltip [data-disabled-check]").length||"false"==e.find(".lopd-tooltip [data-disabled-check]").attr("data-disabled-check")),isGDPR4:e=>0<e.find("input[name='accept-policy']").closest(".lopd-tooltip").find(".pre-lopd").length,getGoogleCID:()=>window.google_cid||Repsol.Analytics.ES.funnel.getGoogleCID(),getRouteUrl:e=>{let t="",o;return e&&(""==(o=e.split("/"))[o.length-1]&&o.pop(),t=-1!=o[o.length-1].indexOf(".")?o[o.length-1].toLowerCase().substring(0,o[o.length-1].indexOf(".")):o[o.length-1].toLowerCase()),t},decodeHtmlEntities:(()=>{var t;return function(e){return(t=t||document.createElement("textarea")).innerHTML=e,t.value}})(),isDateHigherThanToday(e,t){e=Date.parse(e+" "+t);return Date.now()<=e},retrieveProducts:a=>{let n="/bin/repsol/wso2api/retrieve-products.json?data="+a;return new Promise(function(t,o){var e=new XMLHttpRequest;e.addEventListener("readystatechange",function(){var e;4===this.readyState&&(200==this.status&&(e=JSON.parse(this.responseText))&&0<e.length?t(e):o())}),e.open("GET",n),e.setRequestHeader("Content-Type","application/json"),e.send(JSON.stringify(a))})},cleanLandingPage:e=>{var t;return e&&e.includes("?")&&(t=e.indexOf("?"),e=e.substring(0,t)),e},timePercentage:function(e,t){return Math.floor(100/t*e)+"%"},getAccountUserData:()=>new Promise(function(o,a){window.gigya?gigya.accounts.getAccountInfo({include:"profile,data,preferences",callback:function(e){var t;0===e.errorCode?(t=e.UID||"",o({uid:t})):a(e)}}):a()}),getHeaderHeight:()=>document.querySelector("header").offsetHeight,replaceCharacters:function(e){for(var t,o="ÝÃÀÄÂÉËÈÊÝÝÌÎÓÖÒÔØÚÜÙÛÑÇáãàäâéëèêíïìîóöòôøúüùûñç",a=0;a<e.length;a++)-1!=o.indexOf(e.charAt(a))&&(t="AAAAAEEEEIIIIOOOOOUUUUNcaaaaaeeeeiiiiooooouuuunc".charAt(o.indexOf(e.charAt(a))),e=e.replace(e.charAt(a),t));return e},zeroFill:function(e,t){var o,a;return isNaN(e)?e:t<=(a=(o=Math.abs(e)).toString().length)?e<0?"-"+o.toString():o.toString():e<0?"-"+"0".repeat(t-a)+o.toString():"0".repeat(t-a)+o.toString()},currentURL:function(){var e=window.location.pathname.split("/");return""==e[e.length-1]&&e.pop(),-1!=e[e.length-1].indexOf(".")?e[e.length-1].toLowerCase().substring(0,e[e.length-1].indexOf(".")):e[e.length-1].toLowerCase()},redirectToUrl:e=>{Repsol.utils.validateURL(e)&&(window.location.href=e)},validateURL:e=>Repsol.utils.parseURL(e).hostname.trim().toUpperCase()==location.hostname.trim().toUpperCase(),parseURL(e){var i=document.createElement("a");return{source:i.href=e,protocol:i.protocol.replace(":",""),hostname:i.hostname,host:i.host,port:i.port,query:i.search,params:(()=>{for(var e,t={},o=i.search.replace(/^\?/,"").split("&"),a=o.length,n=0;n<a;n++)o[n]&&(t[(e=o[n].split("="))[0]]=e[1]);return t})(),file:(i.pathname.match(/\/([^\/?#]+)$/i)||[,""])[1],hash:i.hash.replace("#",""),path:i.pathname.replace(/^([^\/])/,"/$1"),relative:(i.href.match(/tps?:\/\/[^\/]+(.+)/)||[,""])[1],segments:i.pathname.replace(/^\//,"").split("/")}},validations:{phpsessid:e=>new RegExp(/^[-,a-zA-Z0-9]{1,128}$/).test(e)},isMultiTabsSystem:function(){return null!=document.querySelector(".multi-tabs-system")},getActiveTab:function(){return this.isMultiTabsSystem()&&document.querySelector('.multi-tabs-system [role="tab"][aria-selected="true"]')||null},getActiveCfPath:function(){var e;return this.isMultiTabsSystem()?(e=this.getActiveTab())?e.dataset.cfPath:null:document.querySelector("#cf-path")?.dataset.path},isValidNMPTariffHash:(e=window.location.hash)=>/^#(?:gasrl[1-3]|opcion[1-3]|gasrl[1-3]-opcion[1-3])$/.test(e)};
3131let repsolDataLayer="repsolDataLayer";Repsol.Analytics.ES={init:function(){var e,t;"corporate"!==document.querySelector('meta[name="portal"]')?.content&&(Repsol.Analytics.ES.events(),Repsol.Analytics.ES.initChatSoleAnalytics(),e=Repsol.utils.getCookie("lastPath"),-1<window.location.href.indexOf("cotizador")?(t=Repsol.utils.getCookie("previousUrl"),e&&!t&&Repsol.utils.setCo
3131okie("previousUrl",e),Repsol.utils.setCookie("lastPath","/")):(""!==e&&"/"!==e?Repsol.utils.setCookie("previousUrl",e):Repsol.utils.setCookie("previousUrl",window.location.href),Repsol.utils.setCookie("lastPath",window.location.href)),Repsol.Analytics.ES.saveOrigin())},events:function(){$(".rp-ecommerce-page header .js-hamburger").on("click",function(e){var t=$(this).hasClass("is-active");MenuClickRomProd2024.pushData($(this),{menu_name:"header",link_text:t?"close":"open"})}),$(".rp-ecommerce-page .header-2024 .js-hamburger .hamburger-box").on("click",function(e){var t,n=$(this);(n.closest(".js-hamburger.is-active").length?(Repsol.Analytics.ES.header.clickCloseHam2024(n),t={element_type:"close menu",link_text:"x"},ClickInteractionRomProd):(t={link_text:"menu"},MenuClickRomProd2024)).pushData($(this),t)}),$(document).on("click",".rp-ecommerce-page header:not('.header-megamenu') .menu-desktop .level-1-link.view-all a, header:not('.header-megamenu') .menu-desktop .level-2-link a, header:not('.header-megamenu') .menu-mobile .level-2 a",function(e){MenuClickRomProd2024.pushData($(this),{menu_name:"header"})}),$(document).on("click",".rp-ecommerce-page .embedded-messaging .embeddedMessagingConversationButton",function(e){Repsol.Analytics.ES.clickChatShop($(this))}),$(document).on("click",".rp-ecommerce-page .rp-logo",function(e){var t;(0<$(".header-2024").length?(t={link_text:"home",menu_name:"header"},MenuClickRomProd2024):(t={link_text:"home",menu_name:"header"},MenuClickRomProd)).pushData($(this),t)}),$(document).on("click",".rp-ecommerce-page .header-navigation .links__link",function(e){MenuClickRomProd2024.pushData($(this),{menu_name:"header"})}),$(document).on("click",".rp-ecommerce-page .menu-v2 .menu__primary .menu__primary--left .menu__tab-text a",function(e){window.matchMedia("(min-width: 768px)").matches&&MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .menu-v2 .menu-component .menu__primary .links__link-variant .links__link",function(e){MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .menu-v2 .menu-component .menu__secondary .links__item--dropdown .links__title",function(e){$(this).is("a")&&MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .menu-v2 .menu-component .menu__secondary .links__item--dropdown .links__list--sublist .links__link, .rp-ecommerce-page .menu-v2 .menu-component .menu__secondary .links__item--dropdown .portugal .links__link",function(e){MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .menu-v2 .offers__cards a",function(e){var t={link_text:$(this).find(".offers__title").text()};MenuClickRomProd2024.pushData($(this),t)}),$(document).on("click",".rp-ecommerce-page .menu-v2 .menu__secondary .menu-title__mobile[href][href!='#']",function(e){MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .menu-v2 .menu__primary .button-repsol.menu__tab-text .rp-btn",function(e){MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page header .header-call-button .rp-link-click",function(){var e=$
3131(this),e={component_position:Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e)||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e)};Repsol.Analytics.clickBullet($(this)),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page header .cmb-header-analytics .rp-btn-submit .rp-link-click",function(){0==$(".rp-ecommerce-page header .cmb-header-analytics").find(".lopd-tooltip .pre-lopd").length&&(Repsol.Analytics.ES.header.clickCallMeBtnHeader($(this)),ClickInteractionRomProd.pushData($(this),{}))}),$(document).on("click",".rp-ecommerce-page header .rp-language .dropdown-toggle, .rp-ecommerce-page header .rp-language .dropdown-menu .dropdown-item",function(){MenuClickRomProd2024.pushData($(this),{menu_name:"header"})}),$(document).on("click",".rp-ecommerce-page .header-2024 .menu__primary__userbtn a",function(){MenuClickRomProd2024.pushData($(this),{link_type:"navigation"})}),$(document).on("click",".rp-ecommerce-page header .header-search-button",function(){0==$(".header-2024").length&&MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .header-megamenu .header-megamenu-subheader a",function(){MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .header-megamenu .menu-desktop .level-1-link.view-all a, .rp-ecommerce-page .header-megamenu .menu-desktop .level-2-link a, .rp-ecommerce-page .header-megamenu .menu-mobile .level-2 a, .rp-ecommerce-page .header-megamenu .menu-mobile .submenu .submenu__list-links a, .rp-ecommerce-page .header-megamenu .menu-desktop .ecommerce-subheader-title a",function(e){MenuClickRomProd2024.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .header-megamenu .header-offers .rp-link-click",function(e){Repsol.Analytics.ES.header.linkClickMegamenu($(this)),LinkClickRomProd.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .header-ecom .charging-point-button .select-radio-button",function(e){Repsol.Analytics.ES.clickRadioButtonOption($(this));var t=$(this),t={link_text:t.closest(".charging-point-button").find(".charging-point-text p").text(),element_type:"button",component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(0<t.closest(".data-component-parent").length&&0<t.parents(["data-component"]).length?t.parents(["data-component"]):t),component_position:Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(t)||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(t)};ClickInteractionRomProd.pushData($(this),t)}),$(document).on("click",".rp-ecommerce-page .funnel-container .service-detail-component .rp-link-click",function(){Repsol.Analytics.clickBtn(),LinkClickRomProd.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .funnel-container .funnel-button .rp-link-click",function(){Repsol.Analytics.clickBtn(),LinkClickRomProd.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .funnel-container .form-ecommerce-fields .rp-btn",function(){var e;0<$(".error").length&&(Repsol.Analytics.ES.funnel.funnelErrors($(this)),e={error_description:Repsol.AnalyticsRomProdUtils.Getters.getFunnelType(),error_type:"funnel_error"},ErrorRomProd.pushData($(this),e))}),$(document).on("click",".rp-ecommerce-page .distributive-es-basic-component .rp-link-click",function(){Repsol.Analytics.ES.funnel.datalyDistributiveCardIndex($(this))}),$(document).on("click",".rp-ecommerce-page .distributive-es-basic-component .card-funnel .rp-link-click",function(){Repsol.Analytics.ES.funnel.datalyDistributiveLink($(this))}),$(document).on("click",".rp-ecommerce-page .item-login-2 .card-comparative .card-link .rp-btn",function(){AccountRegisterRomProd.pushData($(this),{funnel_type:"private area",funnel_action:"create account",funnel_step:"01",component_name:"card de registro"})}),$(document).on("click",".rp-ecommerce-page .login-form .button-input .rp-btn, .rp-ecommerce-page .social-login .rp-btn ",function(){$(this).closest(".rp-ecommerce-page").find(".emotional-detail")||Repsol.Analytics.ES.login.clickLogin($(this),Repsol.Analytics.ES.loginMethod)}),$(document).on("click",".rp-ecommerce-page .login-form .rp-link-click",function(){Repsol.Analytics.ES.login.clickForgotPass($(this));LinkClickRomProd.pushData($(this),{link_type:"navigation",component_name:"card de login"})}),$(document).on("click",".rp-ecommerce-page header .menu-movil-item .url-back",function(){MenuClickRomProd2024.pushData($(this),{menu_name:"header",component_name:"navigation bar area cliente"})}),$(document).on("click",".rp-ecommerce-page header .header-user .logged .dropdown-item",function(){MenuClickRomProd2024.pushData($(this),{menu_name:"header",component_name:"navigation bar area cliente"})}),$(document).on("click",".rp-ecommerce-page .distributive-es-basic-component .digital-services-list .card-ecommerce .rp-link",function(){Repsol.Analytics.ES.login.clickClientAreaService($
3131(this));LinkClickRomProd.pushData($(this),{link_type:"navigation",component_name:"cards servicios digitales area cliente"})}),$(document).on("click",".rp-ecommerce-page .distributive-es-basic-component .distributive-es-link .rp-link",function(){Repsol.Analytics.ES.login.clickClientAreaNoService($(this));LinkClickRomProd.pushData($(this),{link_type:"navigation",component_name:"cards servicios digitales area cliente"})}),$(document).on("click",".rp-ecommerce-page .password-recovery .recovery-password-form .button-repsol .rp-btn",function(){Repsol.Analytics.ES.login.clickPassRecoverySend($(this));LinkClickRomProd.pushData($(this),{link_type:"navigation",component_name:"card de login"})}),$(document).on("click",".rp-ecommerce-page .password-recovery .recovery-password-form .openLogin .rp-link",function(){Repsol.Analytics.ES.login.clickPassRecoveryOk($(this));LinkClickRomProd.pushData($(this),{link_type:"navigation",component_name:"pop-up recuperar de contraseña"})}),$(document).on("click",".rp-ecommerce-page .password-recovery .modal#sendEmailRecovery .modal-dialog .modal-body .rp-btn",function(){Repsol.Analytics.ES.login.clickPassRecoveryModal($(this));LinkClickRomProd.pushData($(this),{link_type:"navigation",component_name:"card de login"})}),$("#sendEmailRecovery").on("shown.bs.modal",function(){Repsol.Analytics.ES.login.clickPassRecoveryModalShow()}),$(document).on("click",".rp-ecommerce-page .hero-input .call-me-form .button-input",function(){var e,t=$(this),n=(size=1,{});if(0<t.closest(".card-fare").length||0<t.closest(".form-ecommerce-fields").length||0<t.closest(".cmb-header-analytics").length||0<t.closest(".floating-input-component").length){t=t.closest(".card-fare,.form-ecommerce-fields,.cmb-header-analytics,.floating-input-component").find(".cmp-form-options").find('input[type="checkbox"]');size=1,t.each(function(){e=$(this).closest(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim()||$(this).closest("fieldset").find(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim(),n["field_name_"+size]=e,e=$(this).prop("checked")?"true":"false",n["selected_option_"+size]=e,size++});for(var o=size;o<=4;o++)n["field_name_"+o]=void 0,n["selected_option_"+o]=void 0}Repsol.Analytics.ES.clickCallMeBtnHero($(this)),ClickInteractionRomProd.pushData($(this),n)}),$(document).on("click",".rp-ecommerce-page .hero-es-component .hero-links .link .rp-link-click",function(){Repsol.Analytics.clickBtn($(this)),LinkClickRomProd.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .hero-es-component .hero-links .button:not('.js-call-me-back-modal') .rp-link-click",function(){var e={component_name:Repsol.Analytics.getComponentLink(0<$(this).parents(["data-component"]).length?$(this).parents(["data-component"]):$(this))};Repsol.Analytics.clickBtn($(this),e),LinkClickRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page .hero-es-component .hero-landing .card-cmb .js-send-landing-btn .rp-link-click",function(){var e;0==$(".rp-ecommerce-page .hero-es-component .hero-landing .card-cmb").find(".lopd-tooltip .pre-lopd").length&&(e=$(this),e={component_position:Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e)||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e)},Repsol.Analytics.clickBullet($(this)),ClickInteractionRomProd.pushData($(this),e))}),$(document).on("click",".rp-ecommerce-page .rp-es-container .landing-eess-component .contact-form-es .landing-eess-form .float-md-left .button-input .rp-btn",function(){Repsol.Analytics.clickInteraction($(this)),ClickInteractionRomProd.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .rp-es-container .pymes-eyg-component .contact-form-es .pymes-eyg-form .float-md-left .button-input .rp-btn",function(){Repsol.Analytics.clickInteraction($(this)),ClickInteractionRomProd.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .sticky-bar .rp-btn",function(){var e=$
3131(this),e={link_text:e.attr("data-text")?Repsol.AnalyticsRomProdUtils.Getters.getFreeSpaceText(e.attr("data-text")):Repsol.AnalyticsRomProdUtils.Getters.getFreeSpaceText(e.text()),component_name:"sticky comercial destino servicio o awarness"};Repsol.Analytics.ES.header.clickCallMeBtnStickyBarHeader($(this)),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page .sticky-bar .rp-input-repsol .cmp-form-options__field--checkbox",function(){var e=$(this),e={link_text:e.attr("data-text")?Repsol.AnalyticsRomProdUtils.Getters.getFreeSpaceText(e.attr("data-text")):Repsol.AnalyticsRomProdUtils.Getters.getCheckboxText(e),component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e),element_type:"checkbox"};Repsol.Analytics.clickInteractionCheckbox($(this)),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page .sticky-bar .rp-input-repsol .js-modal-policies",function(){Repsol.Analytics.ES.clickBtnPolicy($(this)),LinkClickRomProd.pushData($(this),{})}),$(document).on("mouseover",".rp-ecommerce-page header .search-content .list-results p",function(){var e=$
3131(this).closest(".search-content").find(".box-input input[name='search']").val();sessionStorage.setItem("search_term",e)}),$(document).on("click",".rp-ecommerce-page header .search-content .list-results p",function(){var e=sessionStorage.getItem("search_term"),e={component_name:"flujo de busqueda",search_suggestion:$(this).text(),search_term:e};Repsol.Analytics.ES.search.clickSuggestedTerm($(this)),SearchRomProd.pushData($(this),e),sessionStorage.removeItem("search_term")}),$(document).on("click",".rp-ecommerce-page .card-ecommerce .block-content .rp-link-click",function(){$(this).parents(".detail-eess-component").length||(Repsol.Analytics.clickBtn($(this)),$(this).parents(".card-moment").length)||$(this).parents(".card-es-basic").length||LinkClickRomProd.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .card-ecommerce .block-img .rp-link-click",function(e){e.preventDefault(),e.stopPropagation(),$(this).closest(".card-ecommerce").find(".block-content .rp-link-click .card-title").click()}),$(document).on("keypress",".rp-ecommerce-page header .box-input input[name='search']",function(e){var t=$(this),n=t.val(),o={component_name:"flujo de busqueda",search_term:t.val(),search_suggestion:t.closest(".search-content").find(".list-results p").text()||void 0,search_engine_name:"buscador general"};13==e.which&&0<n.length&&(0==$(".header-2024").length?Repsol.Analytics.ES.search.enterSearch(t):Repsol.Analytics.ES.search.enterSearch2024(t),SearchRomProd.pushData(t,o))}),$(document).find(".form-ecommerce-content").each(function(){var o=$(this),i=Repsol.Analytics.ES.getErrorType(o);o.on("click",".rp-btn",function(){var e,t,n;"ok"==o.attr("data-status")||o.hasClass("item-login-1")||o.hasClass("js-send-confirm-supply-address-form")||!(o.find(".js-send-confirm-supply-address-form").length<=0)||o.is('[class*="funnel"]')||o.hasClass("hero-landing-form")||o.hasClass("landing-eess-form")||o.hasClass("pymes-eyg-form")||o.hasClass("photo-invoice-form-pt")||o.find("form").hasClass("register-form")||$(this).hasClass("js-send-store-service-activation-btn")||$(this).hasClass("js-send-product-review-form")||(n=(t="forms"==i?(e={event:"error",error_type:i,error_digitalcategory:"form",event_type:Repsol.Analytics.ES.getEvenType(o),error_description:Repsol.Analytics.ES.getFormErrorFields(o),business:Repsol.Analytics.ES.getBusinessMeta(),component_name:Repsol.Analytics.getComponentLink(o),funnel_type:Repsol.Analytics.ES.getFunnelType()},(t=Repsol.AnalyticsRomProdUtils.Getters.getEvenType(o))&&t.includes("funnel")?(n=Repsol.AnalyticsRomProdUtils.Getters.getFunnelType(),"funnel_error"):t&&t.includes("form")?(n=void 0,"form_error"):(n=void 0,Repsol.AnalyticsRomProdUtils.Getters.getErrorType(o))):o.hasClass("bulk-gas")?(e={event:"error",error_type:"forms",forms_digitalcategory:"form",event_type:"bulk gas registration",error_description:Repsol.Analytics.ES.getFormErrorFields(o),business:Repsol.Analytics.ES.getBusinessMeta(),component_name:Repsol.Analytics.getComponentLink(o)},(t=Repsol.AnalyticsRomProdUtils.Getters.getEvenType(o))&&t.includes("funnel")?(n=Repsol.AnalyticsRomProdUtils.Getters.getFunnelType(),"funnel_error"):t&&t.includes("form")?(n=void 0,"form_error"):(n=void 0,Repsol.AnalyticsRomProdUtils.Getters.getErrorType(o))):(e={event:"error",error_type:i,error_digitalcategory:Repsol.Analytics.ES.getComponentCategory(o),event_type:Repsol.Analytics.ES.getEvenType(o),error_description:Repsol.Analytics.ES.getFormErrorFields(o),business:Repsol.Analytics.ES.getBusinessMeta(),funnel_type:Repsol.Analytics.ES.getFunnelType(),component_name:Repsol.Analytics.getComponentLink(o),component_position:Repsol.Analytics.getComponentPosition(o)||Repsol.Analytics.getComponentLink(o)},o.closest("[data-component]")&&(t=o.closest("[data-component]"),Repsol.utils.isGDPR4(t))&&(e.GDPR_4__c=Repsol.Analytics.ES.GDPR.getGDPR4(t),e.gdpr_consent="true"),(t=Repsol.AnalyticsRomProdUtils.Getters.getEvenType(o))&&t.includes("funnel")?(n=Repsol.AnalyticsRomProdUtils.Getters.getFunnelType(),"funnel_error"):t&&t.includes("form")?(n=void 0,"form_error"):(n=void 0,Repsol.AnalyticsRomProdUtils.Getters.getErrorType(o))),{error_description:n,error_type:t}
3131),Repsol.Analytics.ES.form(e),ErrorRomProd.pushData($(this),n))})}),$(document).on("click",".rp-ecommerce-page .footer-es .footer-es-container li a",function(){MenuClickRomProd2024.pushData($(this),{menu_name:"Footer",component_name:"footer"})}),$(document).on("click",".rp-ecommerce-page .card-fare-sva-item .cmp-form-options__field.card-fare-sva",function(){var e=$(this),e={link_text:AnalyticsRomProdEcommerce.getTextLinkSVA(e),element_type:"checkbox",component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e)};Repsol.Analytics.ES.clickInteractionCheckboxSVA($(this)),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page .card-fare-link-anchor",function(){Repsol.Analytics.ES.linkClickPricesSVA($(this));LinkClickRomProd.pushData($(this),{link_type:"navigation"})}),$(document).on("click",".rp-ecommerce-page .footer-es .cmp-breadcrumb li a",function(){Repsol.Analytics.clickBtn($(this)),LinkClickRomProd.pushData($(this),{})}),$(document).on("click",".rp-ecommerce-page .hero .hero-card .card-fare .button-repsol.button2 a",function(){var e,t=$(this),n=(size=1,{});if(0<t.closest(".card-fare").length||0<t.closest(".form-ecommerce-fields").length||0<t.closest(".cmb-header-analytics").length||0<t.closest(".floating-input-component").length){t=t.closest(".card-fare,.form-ecommerce-fields,.cmb-header-analytics,.floating-input-component").find(".cmp-form-options").find('input[type="checkbox"]');size=1,t.each(function(){e=$(this).closest(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim()||$(this).closest("fieldset").find(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim(),n["field_name_"+size]=e,e=$(this).prop("checked")?"true":"false",n["selected_option_"+size]=e,size++});for(var o=size;o<=4;o++)n["field_name_"+o]=void 0,n["selected_option_"+o]=void 0}Repsol.Analytics.ES.clickCallMeBtnHero($(this)),ClickInteractionRomProd.pushData($(this),n)});function l(e){return e.hasClass("step-3")?Repsol.AnalyticsRomProdUtils.cleanString(e.find(".dropdown-toggle[data-value]").text())||void 0:(e=e.find("input[type='radio']:checked")).length&&(e=(e=e.closest(".rp-input-radio")).find(".card-title").first().text()||e.find(".rp-description").first().text(),Repsol.AnalyticsRomProdUtils.cleanString(e))||void 0}function s(e){return l(e.find("fieldset.step-1"))}$(document).on("click",".card-recommender-form .continue-step",function(e){var t,n,o=$(this),i=o.closest("fieldset.step"),o=o.closest(".card-recommender-form-component"),a=$(".card-recommender-form").index()+1;$(this).hasClass("continue-step1")&&$(document).find("#illustration3").parent().hasClass("selected")?$("input[type='radio'][id='illustration3']").is(":checked")&&(t=$(document).find(".landingSolredPrepaidCard").html()||window.location.href,t={card_type:"tarjeta solred prepago",component_catalogue:!0,component_description:"slider repsol.es",component_name:"card-recommender-form",component_position:a,content_name:"¿Que tipo de tarjeta necesitas?",link_domain:window.location.hostname,link_is_cta:"false",link_text:"continuar",link_type:"navigation",link_url:t,event_detail:void 0},Repsol.Analytics.ES.linkClickCardRecommendForm($(this),t),LinkClickRomProd.pushData($(this),t)):$(this).hasClass("continue-step1")&&i.hasClass("step-1")&&($("input[type='radio'][id='illustration1']").is(":checked")||$("input[type='radio'][id='illustration2']").is(":checked"))?(t={event:"funnel",component_catalogue:!0,field_name_1:"seleccion_tarjeta",field_value_1:void 0,funnel_action:"seleccionar tarjeta",funnel_product:s(o),funnel_step:"1",funnel_type:"tarjetas solred",selected_option_1:l(i),component_position:a,event_detail:void 0},Repsol.Analytics.ES.funnel.funnelEventCardRecommnd($(this),t),FunnelRomProd.pushData($(this),t),n={component_catalogue:!0,component_description:"slider repsol.es",component_name:"card-recommender-form",component_position:a,element_description:"button_recommender",establishment_adress:void 0,content_name:"¿Que tipo de tarjeta necesitas?",link_domain:window.location.hostname,link_is_cta:"false",link_text:"continuar",link_type:"navigation",link_url:void 0,event_detail:void 0},Repsol.Analytics.ES.clickInteractionCardRecommendForm($(this),n),ClickInteractionRomProd.pushData($(this),n)
3131):i.hasClass("step-2")&&(t={event:"funnel",component_catalogue:!0,field_name_1:"zona_uso",field_value_1:void 0,funnel_action:"elegir zona uso",funnel_product:s(o),funnel_step:"2",funnel_type:"tarjetas solred",selected_option_1:l(i),component_position:a,event_detail:void 0},Repsol.Analytics.ES.funnel.funnelEventCardRecommnd($(this),t),FunnelRomProd.pushData($(this),t),n={component_catalogue:!0,component_description:"slider repsol.es",component_name:"card-recommender-form",component_position:a,element_description:"button_recommender",content_name:"¿Que tipo de tarjeta necesitas?",link_domain:window.location.hostname,link_is_cta:"false",link_text:"continuar",link_type:"navigation",link_url:void 0,event_detail:void 0},Repsol.Analytics.ES.clickInteractionCardRecommendForm($(this),n),ClickInteractionRomProd.pushData($(this),n))}),$(document).on("click",".card-recommender-form .continue-to-url",function(e){var t=$(this),n=t.closest(".card-recommender-form-component"),o=$(".card-recommender-form").index()+1,i=$(document).find(".landingSolredPrepaidCard").html()||window.location.href,i={card_type:"tarjeta solred prepago",component_catalogue:!0,component_description:"slider repsol.es",component_name:"card-recommender-form",component_position:o,content_name:"¿Que tipo de tarjeta necesitas?",link_domain:window.location.hostname,link_is_cta:"false",link_text:"continuar",link_type:"navigation",link_url:i,event_detail:void 0},n={event:"funnel",component_catalogue:!0,field_name_1:"segmento_profesional",field_value_1:void 0,funnel_action:"elegir segmento profesional",funnel_product:s(n),funnel_step:"3",funnel_type:"tarjetas solred",selected_option_1:l(t.closest("fieldset.step")),component_position:o,event_detail:void 0};Repsol.Analytics.ES.funnel.funnelEventCardRecommnd($(this),n),FunnelRomProd.pushData($(this),n),Repsol.Analytics.ES.linkClickCardRecommendForm($(this),i),LinkClickRomProd.pushData($(this),i)}),$(document).on("click",".card-recommender-form .prev-step",function(e){e.preventDefault();e={card_type:"tarjeta solred prepago",component_catalogue:!0,component_description:"slider repsol.es",component_name:"card-recommender-form",component_position:$(".card-recommender-form").index()+1,element_description:"button_recommender",establishment_adress:void 0,content_name:"¿Que tipo de tarjeta necesitas?",link_domain:window.location.hostname,link_is_cta:"false",link_text:"continuar",link_type:"navigation",link_url:void 0,event_detail:void 0};Repsol.Analytics.ES.clickInteractionCardRecommendForm($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(".rp-ecommerce-page div[data-analytics='solidarityInitiative']").on("click","button.button-repsol, .button-repsol a:not(.hero-btn-cta), .dropdown-item, .rp-link[data-toggle='modal']",function(){var e=$
3131(this),e={component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e)};Repsol.Analytics.ES.solidarityInitiative.clickONG($(this)),ClickInteractionRomProd.pushData($(this),e)}),$(".rp-ecommerce-page div[data-analytics='solidarityInitiative']").on("click",".button-repsol:not(.rp-btn-callmeback) a, .card-funnel-button a",function(){if(!$(this).parents(".header-layer-call").length){Repsol.Analytics.ES.solidarityInitiative.clickBtnONGCta($(this));let e=$(".recommender-solidarity-initiative-component").find(".selected input[type='radio']").val(),t=void 0,n={event_detail:t=e&&""!=e?e.toLowerCase().replace(/\s/g,""):t};LinkClickRomProd.pushData($(this),n)}}),$(document).on("change",".rp-ecommerce-page .lopd-tooltip .pre-lopd + .lopd-xf input[name='accept-policy']",function(){var e=$(this),t="portugal"===$("meta[name='portal']").attr("content")?.toLowerCase(),n={link_text:Repsol.AnalyticsRomProdUtils.Getters.getCheckboxText(e),element_type:"checkbox",component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e)};t&&0<e.closest(".modal-call-me-back").length&&(n.component_name=AnalyticsPT.getComponentParentLink(e)),Repsol.Analytics.ES.GDPR.clickInteractionCheckbox($(this)),ClickInteractionRomProd.pushData($(this),n)}),$(document).on("click",".rp-ecommerce-page .lopd-tooltip .pre-lopd .js-modal-policies, .rp-ecommerce-page .lopd-tooltip .pre-lopd + .lopd-xf .js-modal-policies",function(){Repsol.Analytics.ES.GDPR.clickLinkModal($(this));LinkClickRomProd.pushData($(this),{link_type:"navigation"})}),$(document).on("mouseenter",".rp-ecommerce-page .lopd-tooltip .pre-lopd .js-modal-tooltip2, .rp-ecommerce-page .lopd-tooltip .pre-lopd + .lopd-xf .js-modal-tooltip",function(){var e=$
3131(this),t="portugal"===$("meta[name='portal']").attr("content")?.toLowerCase(),e={link_text:Repsol.AnalyticsRomProdUtils.Getters.getTooltipText(e),element_type:"info-circle",component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e)};t&&0<$(this).closest(".modal-call-me-back").length&&(e.component_name=AnalyticsPT.getComponentParentLink($(this))),Repsol.Analytics.ES.GDPR.clickInteractionTooltip($(this)),ClickInteractionRomProd.pushData($(this),e)}),$(document).find(".rp-ecommerce-page .lopd-tooltip .pre-lopd").each(function(){var e=$(this),t="portugal"===$("meta[name='portal']").attr("content")?.toLowerCase();0<e.closest("#lead-capture-modal").length&&t||e.closest("[data-component]").find('.rp-btn-submit a, button[type="submit"]').each(function(){$(this).on("click",function(){var e,t=$(this),n={component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(t)};if(0<t.closest(".card-fare").length||0<t.closest(".form-ecommerce-fields").length||0<t.closest(".cmb-header-analytics").length||0<t.closest(".call-me-form").length||0<t.closest(".form-ecommerce-content").length){t=t.closest(".card-fare,.form-ecommerce-fields,.cmb-header-analytics,.call-me-form,.form-ecommerce-content").find(".cmp-form-options").find('input[type="checkbox"]');size=1,t.each(function(){e=$(this).closest(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim(),n["field_name_"+size]=e,e=$(this).prop("checked")?"true":"false",n["selected_option_"+size]=e,size++});for(var o=size;o<=4;o++)n["field_name_"+o]=void 0,n["selected_option_"+o]=void 0}Repsol.Analytics.ES.GDPR.clickBtnForm($(this)),ClickInteractionRomProd.pushData($(this),n)})})}),$(document).on("hide.bs.modal",".modal-feed-email, .modal-call-me-back",function(e){let t="";0<$(this).closest(".service-detail-component").length&&(t="cards sva");var n="portugal"===$("meta[name='portal']").attr("content")?.toLowerCase(),o=$(this).find('.modal-content[class*="step-"]:not(.d-none)')?.find(".modal-header .rp-description")?.text()?.trim(),i={contentName:"popup - "+o,eventDetail:t},o={content_name:"popup - "+o,event_detail:t};n&&0<$(this).closest(".modal-call-me-back").length&&(o.component_name=AnalyticsPT.getComponentParentLink($(this))),Repsol.Analytics.ES.clickModalCloseBtn($(this),i),ClickInteractionRomProd.pushData($(this),o)}),$(document).on("click",".form-message .rp-link-click",function(e){var t;0==$(this).closest(".lead-roadcast-component").length&&(Repsol.Analytics.ES.linkClick($(this)),t={component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(0<$(this).closest(".data-component-parent").length&&0<$(this).parents(["data-component"]).length?$(this).parents(["data-component"]):$(this)),component_position:Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition($(this))||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink($(this))},LinkClickRomProd.pushData($(this),t))}),$(document).on("click",".hero-landing[data-country='PT'] input[type='radio']",function(e){Repsol.Analytics.ES.PT.clickRadioButton($(this))}),$(document).on("click",".hero-landing[data-country='PT'] a[href^='tel']",function(e){e.preventDefault,Repsol.Analytics.clickPhone($(this))}),$(document).on("change",".hero-landing[data-country='PT'] input[name='accept-policy']",function(){Repsol.Analytics.ES.PT.clickInteractionCheckbox($(this))}
3131),$(document).on("click",".rp-interaction",function(){var e=$(this),e={link_text:e.attr("data-text")?Repsol.AnalyticsRomProdUtils.Getters.getFreeSpaceText(e.attr("data-text")):Repsol.AnalyticsRomProdUtils.Getters.getFreeSpaceText(e.text()),component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e),component_position:Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e)||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e),element_type:e.attr("data-element-type")};Repsol.Analytics.ES.clickInteraction($(this),{}),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".popup-solar360 .rp-btn-white",function(e){Repsol.Analytics.ES.clickPopUp360($(this));var t={link_text:"Saber mas",link_type:"navigation",component_name:"popUp 360popup-solar360",content_name:"Instala placas solares en tu hogar y comienza a ahorrar",component_description:void 0,component_position:"modal"};LinkClickRomProd.pushData($(this),t)}),$(document).on("click",".popup-solar360 .icon-rp-Cross ",function(e){Repsol.Analytics.ES.clickPopUp360Close($(this)),ClickInteractionRomProd.pushData($(this),{element_type:"dropdown",link_text:"Cerrar",component_name:"popUp 360popup-solar360",content_name:"Instala placas solares en tu hogar y comienza a ahorrar",element_description:"close"})});let c=new Set,r=!1;$(document).on("click",".rp-ecommerce-page .calculator-step:not(.calculator-step-pt).calculator-component .step-card-button.first-step",function(){var e=$
3131(this).closest(".step-component").attr("data-funnel-step"),e=(c.has(e)?r=!0:c.add(e),Repsol.Analytics.ES.clickFunnelCalculator($(this),r),obj.closest(".step-component").attr("data-component-name")),t=obj.closest(".multi-step-component").attr("data-component-name"),t=null==e?t:e;let n="01",o=$(this).closest(".step-component"),i=$(this).closest(".step-component").attr("data-funnel-action");var e=Repsol.Analytics.ES.getFieldName1(o,i),a=Repsol.Analytics.ES.getSelectedOpcion1(o),l=obj.closest(".row").find(".totalsave-year:first").text()?obj.closest(".row").find(".totalsave-year:first").text():"0,00",s=(o.attr("data-step-before")&&(islastStep?(n=o.attr("data-funnel-step"),console.log("ultimo step")):(s=$(this).closest(".step-component").attr("data-step-before"),o=$('.step-component[data-step="'+s+'"]'),n=o.attr("data-funnel-step"),i=o.attr("data-funnel-action"))),{funnel_action:i,funnel_step:n,funnel_type:t,field_name_1:e,field_name_2:"ahorro total",field_name_3:void 0,selected_option_1:a,selected_option_2:l,selected_option_3:void 0});FunnelRomProd.pushData($(this),s)}),$(document).on("click",".rp-ecommerce-page .calculator-step:not(.calculator-step-pt).calculator-component .button-card-save",function(){var e=$
3131(this).closest(".step-component").attr("data-funnel-step"),e=(c.has(e)?r=!0:c.add(e),Repsol.Analytics.ES.clickFunnelCalculator($(this),r),$(this).closest(".step-component").attr("data-component-name")),t=$(this).closest(".multi-step-component").attr("data-component-name"),t=null==e?t:e;let n="01",o=$(this).closest(".step-component"),i=$(this).closest(".step-component").attr("data-funnel-action");var e=Repsol.Analytics.ES.getFieldName1(o,i),a=Repsol.Analytics.ES.getSelectedOpcion1(o),l=$(this).closest(".row").find(".totalsave-year:first").text()?$(this).closest(".row").find(".totalsave-year:first").text():"0,00",s=(o.attr("data-step-before")&&(r?(n=o.attr("data-funnel-step"),console.log("ultimo step")):(s=$(this).closest(".step-component").attr("data-step-before"),o=$('.step-component[data-step="'+s+'"]'),n=o.attr("data-funnel-step"),i=o.attr("data-funnel-action"))),{funnel_action:i,funnel_step:n,funnel_type:t,field_name_1:e,field_name_2:"ahorro total",field_name_3:void 0,selected_option_1:a,selected_option_2:l,selected_option_3:void 0});FunnelRomProd.pushData($(this),s)}),$(document).on("click",".lead-roadcast-component .open-modal__btn .rp-link-click",function(){var e=$
3131(this).closest(".content-block-component").find(".content-title .rp-title")?$(this).closest(".content-block-component").find(".content-title .rp-title").text().trim():void 0,t=$(this),t={component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(t),content_name:e};Repsol.Analytics.ES.roadcastLead.clickBtn($(this),"interaction",e),ClickInteractionRomProd.pushData($(this),t)}),$(document).on("click",".lead-roadcast-component .rodascast-lead-modal .close",function(){var e=$(this).closest(".modal-header").find(".modal-title").text().trim(),t={content_name:e};Repsol.Analytics.ES.roadcastLead.interactionPopUp($(this),e),ClickInteractionRomProd.pushData($(this),t)}),$(document).on("click",".lead-roadcast-component .rodascast-lead-modal .js-send-roadscast-lead",function(){var e=$(this).closest(".modal-content").find(".modal-header .modal-title").text().trim(),t={content_name:e};Repsol.Analytics.ES.roadcastLead.interactionPopUp($(this),e),ClickInteractionRomProd.pushData($(this),t)}),$(document).on("click",".general-calculator .general-calculator-cmp__form .cmp-form-options__field",function(){var e={element_description:"checkbox_calculadora ahorro",link_text:$(this).next("label").text().trim()};$(this).hasClass("cmp-form-options__field--checkbox")||"checkbox"===$(this).attr("type")?Repsol.Analytics.clickInteractionCheckbox($(this)):Repsol.Analytics.clickInteraction($(this)),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".lead-roadcast-component .form-message .rp-link-click",function(e){e.preventDefault();e=$(this).closest(".form-message-component").find(".form-message__title").text().trim(),Repsol.Analytics.ES.roadcastLead.clickBtn($(this),"link_click",e),e={component_name:Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(obj),content_name:e};LinkClickRomProd.pushData($(this),e)}),$(document).on("click",".service-detail-component .service-detail-item .js-hiring-funnel .rp-link-click",function(e){var t={funnelProduct:"sva",funnelAction:"contratar",funnelStep:"0",eventDetail:"Contratar online"};Repsol.Analytics.ES.funnel.funnelEvent($(this),t);let n={funnel_action:t.funnelAction??void 0,funnel_step:t.funnelStep??void 0,event_detail:t.eventDetail??void 0};t=obj.closest("form").find(".cmp-form-options").find('input[type="checkbox"]');let o=1;t.each(function(){fieldName=$(this).closest(".rp-input-repsol").find(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim(),n["field_name_"+o]=fieldName,isChecked=$(this).is(":checked")?"true":"false",n["selected_option_"+o]=isChecked,o++});for(var i=o;i<=1;i++)n["field_name_"+i]=void 0,n["selected_option_"+i]=void 0;FunnelRomProd.pushData($(this),n)}),$(document).on("click",".service-detail-component .service-detail-item .js-call-me-back-modal .rp-link-click",function(e){var t=$(this).closest(".service-detail-item").find(".service-detail-item-title .rp-title")?.text()?.trim(),n={content_name:t},t={content_name:t};Repsol.Analytics.ES.clickInteractionV3($(this),n),ClickInteractionRomProd.pushData($(this),t)}),$(document).on("shown.bs.modal",".service-detail-component .modal-call-me-back",function(e){var t=$(this).find(".step-1 .modal-header .rp-description")?.text()?.trim(),t={contentName:t,componentDescription:"modal sva",content_name:t,component_description:"modal sva"};ViewElementRomProd.pushData($(this),t)}),$(document).on("click",".funnel-select-supply-point-component .funnel-select-supply-point__add-address-btn",function(e){var t=$(this).closest(".step-component").find(".funnel-title-description-ctas .component-title .rp-title")?.text()?.trim(),n={content_name:t},t={content_name:t};Repsol.Analytics.ES.clickInteractionV3($(this),n),ClickInteractionRomProd.pushData($(this),t)}),$(document).on("click",".funnel-title-description-ctas-component .show-modal-login",function(e){var t=$(this).closest(".step-component"),n=t.find(".funnel-title-description-ctas .component-title .rp-title")?.text()?.trim(),o={content_name:n,component_name:t.attr("data-component-name")},n={content_name:n,component_name:t.attr("data-component-name")};Repsol.Analytics.ES.clickInteractionV3($(this),o),ClickInteractionRomProd.pushData($(this),n)}),$(document).on("click",".funnel-title-description-ctas-component .js-go-to-step .rp-btn",function(e){var t=$(this).closest(".step-component"),n=t.find(".funnel-title-description-ctas .component-title .rp-title")?.text()?.trim(),o=t.find(".funnel-title-description-ctas .component-description .rp-description")?.text()?.trim(),t={content_name:n,component_name:t.attr("data-component-name"),event_detail:o},t=(Repsol.Analytics.ES.linkClickV2($(this),t),{content_name:n,event_detail:o});LinkClickRomProd.pushData($(this),t)}),$(document).on("shown.bs.modal",".register-login-modal-component",function(e){$(this).closest(".step-component");
3131var t={content_name:$(this).find(".modal-header .modal-title .rp-title")?.text()?.trim(),component_description:"modal",event_detail:$(this).closest(".rp-ecommerce-page").find(".detail-emotional-component").length?"beneficios":void 0};ViewElementRomProd.pushData($(this),t)}),$(document).on("hide.bs.modal",".register-login-modal-component:not(.register-login-modal-js)",function(e){$(this).closest(".step-component");var t=$(this).find(".modal-header .modal-title .rp-title")?.text()?.trim(),n={contentName:t,elementType:"icon"},t={content_name:t,element_type:"icon"};Repsol.Analytics.ES.clickModalCloseBtn($(this),n),ClickInteractionRomProd.pushData($(this),t)}),$(document).on("click",".link-button-modal-component .rp-link-click",function(e){var t=$(this).closest(".link-button-modal-component")?.closest("[data-component]"),n=t?.find(".component-title .rp-title").text().trim(),t=t?.find(".component-description .rp-description").text().trim(),o={content_name:n,event_detail:t};$(this).hasClass("rp-btn")?(Repsol.Analytics.ES.clickInteractionV2($(this),n,t),ClickInteractionRomProd.pushData($(this),o)):(n={content_name:contentName,event_detail:eventDetail},Repsol.Analytics.ES.linkClickV2($(this),n),t={content_name:contentName,event_detail:eventDetail},LinkClickRomProd.pushData($(this),t))}),$(".link-button-modal-component .modal").on("shown.bs.modal",function(){var e={content_name:"popup - "+$(this).find(".modal-header .modal-title .rp-description").text().trim(),event_detail:$(this).find(".modal-body .rp-description").text().trim()};ViewElementRomProd.pushData($(this),e)}),$(document).on("click",".link-button-modal-component .modal .modal-header .close",function(e){var t=$(this).closest(".modal"),n="popup - "+t.find(".modal-header .modal-title .rp-description").text().trim(),t=t.find(".modal-body .rp-description").text().trim(),o={content_name:n,event_detail:t};Repsol.Analytics.ES.clickInteractionV2($(this),n,t),ClickInteractionRomProd.pushData($(this),o)}),$(document).on("click",".link-button-modal-component .modal .modal-body ul a",function(e){var t=$(this).closest(".modal"),n="popup - "+t.find(".modal-header .modal-title .rp-description").text().trim(),t=t.find(".modal-body .rp-description").text().trim(),o={content_name:n,event_detail:t};Repsol.Analytics.ES.clickInteractionV2($(this),n,t),ClickInteractionRomProd.pushData($(this),o)}),$(document).on("click",".iva-accordion__button",function(){ClickInteractionRomProd.pushData($(this),{})}),$(document).on("click",".header-user__popup .popup__info-button",function(){var e={element_type:"Button",link_text:"iniciar sesion",content_name:"pop up inicio de sesion",component_description:"inicia sesion o crea tu cuenta"};Repsol.Analytics.ES.clickInteractionV4($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".header-user__popup .popup__close",function(){var e={element_type:"Button",link_text:"x",content_name:"pop up inicio de sesion",component_description:"inicia sesion o crea tu cuenta"};Repsol.Analytics.ES.clickInteractionV4($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".distributive-eess-component .distributive-eess__item .distributive-eess__item-btn a",function(e){var t=$(this).closest(".distributive-eess-component"),n=$(this).closest(".distributive-eess__item"),t=t.find(".distributive-eess__tittle .rp-title")?.text()?.trim(),o=n.attr("data-eess-type"),t={is_establishment:!0,component_description:"button",content_name:t,establishment_name:n.find(".distributive-eess__item-name").text()?.trim(),establishment_category:"1"==o||"2"==o?"Estacion de servicio":"Recarga electrica",establishment_adress:n.attr("data-eess-address")+" "+n.attr("data-eess-locality")+", "+n.attr("data-eess-province")};Repsol.Analytics.ES.linkClickV3($(this),t),LinkClickRomProd.pushData($(this),t)}),$(document).on("click",".distributive-eess-component .content-float-btn .rp-click-interactive",function(e){var t={is_establishment:!0,content_name:$(this).closest(".distributive-eess-component").find(".distributive-eess__tittle .rp-title")?.text()?.trim(),element_description:Repsol.Analytics.ES.getElementDescription($(this)),element_type:"show_more",component_description:"distributive-eess",establishment_name:void 0,establishment_category:void 0,establishment_adress:void 0};Repsol.Analytics.ES.clickInteractionV4($(this),t),ClickInteractionRomProd.pushData($(this),t)}),$(document).on("click",".funnel-multistep-support-component .js-toggleCollapse",function(){var e={element_type:"drop-down",component_name:"tab bar",component_position:"footer",link_text:($(this).hasClass("active")?"open":"close")+" "+Repsol.Analytics.getFreeSpaceText($(this).text())};Repsol.Analytics.ES.clickInteraction($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page .general-calculator .general-calculator-cmp .general-calculator-cmp__container .general-calculator-cmp__form .general-calculator-cmp__form-buttons .rp-btn",function(){var e=document.querySelector(".general-calculator-cmp__form form").getAttribute("id");let t=document.querySelector(".general-calculator-cmp .general-calculator-cmp__header");var n=0<t.textContent.trim().length?t.textContent.trim():void 0,o=document.querySelector(".general-calculator-cmp__card");let i;if(o){let e=o.querySelector(".general-calculator-cmp__card-title span.rp-subheadline");var a=o.querySelector(".general-calculator-cmp__card-result span.general-calculator-cmp__card-value"),o=o.querySelector(".general-calculator-cmp__card-result");e&&a&&o&&(l=e?e.textContent.trim():void 0,a=a?a.textContent.trim():void 0,o=o?o.textContent.replace(a,"").trim():void 0,i=l+` - ${a}
3131 `+o)}var l={formId:e,formAction:n,component_name:"general calculator",eventDetail:i};(generalCalculator.validateInputs()||null)&&(Repsol.Analytics.ES.clickCalculate($(this),l),ClickCalculateRomProd.pushData($(this),l),Repsol.Analytics.ES.clickInteraction($(this),l),ClickInteractionRomProd.pushData($(this),l))}),$(document).on("click",".js-open-modal-ahorro",function(){var e=document.querySelector(".general-calculator-cmp__form form").getAttribute("id");let t=document.querySelector(".general-calculator-cmp .general-calculator-cmp__header");var n=t?t.textContent.trim():void 0,o=document.querySelector(".general-calculator-cmp .js-general-calculator-modal-component .modal-title p")?.textContent.trim()||"",i=document.querySelector(".general-calculator-cmp__card");let a;if(i){let e=i.querySelector(".general-calculator-cmp__card-title span.rp-subheadline");var l=i.querySelector(".general-calculator-cmp__card-result span.general-calculator-cmp__card-value"),i=i.querySelector(".general-calculator-cmp__card-result");e&&l&&i&&(s=e?e.textContent.trim():void 0,l=l?l.textContent.trim():void 0,i=i?i.textContent.replace(l,"").trim():void 0,a=s+` - ${l} `+i)}var s={formId:e,formAction:n,component_name:"general calculator",eventDetail:a,contentName:o};ViewElementRomProd.pushData($(this),s)}),$(document).on("click",".rp-ecommerce-page .general-calculator .general-calculator-cmp .general-calculator-cmp__container .general-calculator-cmp__form .general-calculator-cmp__form-buttons .rp-link",function(){var e=document.querySelector(".general-calculator-cmp .general-calculator-cmp__header"),e={contentName:e?e.textContent.trim():void 0};Repsol.Analytics.ES.clickCleanCalculate($(this),e),ClickCleanCalculateRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page .general-calculator .general-calculator-cmp .general-calculator-cmp__result-container .general-calculator-cmp__card .js-call-me-back-modal",function(){var e=document.querySelector(".modal-call-me-back.modal"),e={content_name:Repsol.AnalyticsRomProdUtils.Getters.getContentName($(e))};ViewElementRomProd.pushData($(this),e)}),$(document).on("click","#walmeric-whatsapp-widget div",function(){var e={link_type:"navigation",link_url:"https://api.whatsapp.com",component_name:"walmeric-whatsapp-widget"};Repsol.Analytics.ES.linkClickRomProdCopy($(this),e),LinkClickRomProd.pushData($(this),e)}),$(document).on("change",".price-selector__taxes-switch input",function(){var e={content_name:$(this).closest(".price-selector-component").find(".price-selector__title .rp-title")?.text()?.trim(),element_type:"checkbox-button",event_detail:""};Repsol.Analytics.ES.clickInteractionV5($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("change",".funnel-summary-card__taxes-switch input",function(){var e={component_name:"Resumen de tu oferta",content_name:$(this).closest(".funnel-container").find(".component-title .rp-title")?.text()?.trim(),element_type:"checkbox-button",event_detail:""};Repsol.Analytics.ES.clickInteractionV5($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page .emotional-distributor-card .card-emotional-component .card-emotional-experience__buttons button",function(){$(this).closest(".emotional-distributor-card").find("a").attr("href")}),$(document).on("click",".rp-ecommerce-page .manual-emotional-card .manual-emotional-card__button a",function(){var e={link_type:"navigation",content_name:"Descubre las experiencias repsol",event_detail:$(this).closest(".manual-emotional-card").find(".manual-emotional-card__title").text().trim()||void 0};Repsol.Analytics.ES.linkClickRomProdCopy($(this),e),LinkClickRomProd.pushData($(this),e)}),$(document).on("click",".rp-ecommerce-page .emotional-distributor-card > a, .rp-ecommerce-page .emotional-slide-cards-container .emotional-slide-card .link-click-card",function(e){var e=$(e.currentTarget),t=e.closest(".emotional-distributor-card")||null,n=(t.length?t:e.closest(".emotional-slide-card")).find(".card-emotional")||null,t=(t.length?t.find("a"):e.closest(".emotional-slide-card").find(".link-click-card")).attr("href")||null,e={funnel_action:"discover experiences",funnel_step:"01",funnel_type:"experiences",field_name_1:"Título card",selected_option_1:new URL(t,window.location.origin).pathname.split("/").filter(
3131Boolean).pop()||void 0,field_name_2:"loyalty bar",selected_option_2:n.find(".card-emotional__label").text().trim()||void 0,field_name_3:"ticks",selected_option_3:Repsol.Analytics.ES.funnelExperiences.getTicks(n)||void 0,event_detail:n.find(".card-emotional-experience__btn:not(.d-none) .text").text().trim()||void 0};RepsolCardEmotional.setSessionStorageEmotionalFunnelData(e.selected_option_1,e.selected_option_2,e.selected_option_3),Repsol.Analytics.ES.funnelExperiences.funnelExperiencesSteps($(this),"01",e),FunnelRomProd.pushData($(this),e)}),$(document).ready(function(){if($(".emotional-thank-you-page-component")[0]){var e=new URLSearchParams(window.location.search).get("status"),t=$(this).find(".emotional-thank-you-page-component"),{selected_option_1:n,selected_option_2:o,selected_option_3:i}=RepsolCardEmotional.getSessionStorageEmotionalFunnelData()||{},a={field_name_1:"Título card",selected_option_1:n||void 0,field_name_2:"loyalty bar",selected_option_2:o||void 0,field_name_3:"ticks",selected_option_3:i||void 0},l={funnel_action:"congratulations registered",funnel_step:"03",funnel_type:"experiences"},s={funnel_action:"reserved draw",funnel_step:"03b",funnel_type:"experiences"},c={funnel_action:"already registered",funnel_step:"03c",funnel_type:"experiences"},r={error_description:t.find(".js-emotional-thank-you-page-tier-error .emotional-thank-you-page__title").text().trim(),error_type:"texto"},m={error_description:t.find(".js-emotional-thank-you-page-registered-error .emotional-thank-you-page__title").text().trim(),error_type:"texto"};switch(e){case"success":Repsol.Analytics.ES.funnelExperiences.funnelExperiencesSteps(t,"03",{...l,...a}),FunnelRomProd.pushData(t,{...l,...a});break;case"already_registered":Repsol.Analytics.ES.funnelExperiences.funnelExperiencesSteps(t,"03c",{...c,...a}),FunnelRomProd.pushData(t,{...c,...a}),Repsol.Analytics.ES.funnelExperiences.error(t,{...m,...a}),ErrorRomProd.pushData(t,{...m,...a});break;default:Repsol.Analytics.ES.funnelExperiences.funnelExperiencesSteps(t,"03b",{...s,...a}),FunnelRomProd.pushData(t,{...s,...a}),Repsol.Analytics.ES.funnelExperiences.error(t,{...r,...a}),ErrorRomProd.pushData(t,{...r,...a})}}}),$(document).on("click",".rp-ecommerce-page .emotional-distributor-component .emotional-distributor-tabs .cmp-tabs__tab",function(){var e={component_description:void 0,filter_interaction:"category-filter",filter_search_term:$(this).text().trim()||void 0,filter_section:"Descubre las experiencias repsol"};FilterRomProd.pushData($(this),e)}),$(document).on("click",".emotional-slide-cards-container .emotional-slide-card .link-click-card, .emotional-slide-component .container .emotional-slide__btn .rp-btn, .emotional-slide-component .container .emotional-slide__link .rp-link",function(e){var t=$(this),n={content_name:t.closest(".emotional-slide-component").find(".title-description-es .rp-title h2").text()||""};Repsol.Analytics.clickBtn(t,n),LinkClickRomProd.pushData(t,n)}),document.addEventListener("click",function(e){var t,n=e.target.closest(".rp-ecommerce-page .emotional-detail .detail-content-block .detail-emotional__shared-modal-link"),e=e.target.closest(".rp-ecommerce-page .emotional-detail .detail-content-block .block-modal .icon-rp-Cross");n&&(t={element_type:Repsol.AnalyticsRomProd.Getters.getTypeInteraction($(n))},Repsol.Analytics.ES.clickInteraction($(n),t),ClickInteractionRomProd.pushData($(n),t)),e&&(n={contentName:"compartir",elementType:"Button",linkText:"cerrar"},t={content_name:"compartir",element_type:"button",link_text:"cerrar",element_description:"button_compartir"},Repsol.Analytics.ES.clickModalCloseBtn($(e),n),ClickInteractionRomProd.pushData($(e),t))},!0),$(document).on("click",".funnel-multistep-support-component .funnel-accordion .cmp-accordion__button",function(){var e={element_type:"text"};0<$(this).closest(".funnel-container").find(".photo-invoice-form").length&&(e.content_name="Adjunta tu factura"),Repsol.Analytics.ES.clickInteractionV4($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".supply-address-form-ff .supply-address-form__user-edit, .supply-address-form-ff .js-save-data",function(){var e={content_name:$(this).closest(".funnel-container").find(".component-title .rp-title p").text().trim()||void 0};Repsol.Analytics.ES.clickInteractionV4($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".hiring-finish-form-ff .cmp-form-options__field--checkbox",function(){var e=$
3131(this),t=0<e.closest(".legal-container").length,n=$(this).closest(".funnel-form-hiring-finish-component"),o={content_name:$(this).closest(".funnel-container").find(".component-title .rp-title p").text().trim()||void 0,element_type:"checkbox-button",link_text:Repsol.AnalyticsRomProdUtils.Getters.getCheckboxText($(this))};t&&(o.gdpr_4__c=Repsol.AnalyticsRomProdUtils.Getters.getGDPR4(n)),t||(o.field_name_1=Repsol.AnalyticsRomProdUtils.Getters.getCheckboxText($(this)),o.field_value_1=e.is(":checked")?"true":"false"),Repsol.Analytics.ES.clickInteractionV4($(this),o),ClickInteractionRomProd.pushData($(this),o)}),$(document).on("click",".price-selector-component .price-selector-tabs .price-selector-tab__button",function(e){var t={element_type:"button"};Repsol.Analytics.ES.clickInteractionV6($(this),t),ClickInteractionRomProd.pushData($(this),t)}),$(document).on("click",".rp-ecommerce-page .es-fvv-b2b-form .lopd-modal-link, .rp-ecommerce-page .es-fvv-b2b-form .js-es-fvv-b2b-form__button",function(){Repsol.Analytics.clickInteraction($(this)),ClickInteractionRomProd.pushData($(this),{})}),$(document).on("click",".es-tabs-conf-container .es-tabs-conf-item .es-tabs-conf-item__button",function(e){let t="tab";var n={element_type:t=0<$(this).closest(".es-tabs-conf-container--accordion").length||0<$(this).closest(".es-tabs-conf-container--lateral").length&&!window.matchMedia("(min-width: 1024px)").matches?"drop-down":t};Repsol.Analytics.ES.clickInteractionV6($(this),n),ClickInteractionRomProd.pushData($(this),n)}),$(document).on("click",".es-help-center-faq-detail-component .es-help-center-faq-detail__tab-labels label",function(){var e={element_type:"tab",gdpr_4__c:"no"};Repsol.Analytics.ES.clickInteractionV3($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".popular-cats .es-help-center-popular-cats__filter .es-help-center-popular-cats__category-tag",function(){var e={filter_search_term:$(this).text().trim()||"",filter_interaction:$(this).hasClass("es-help-center-popular-cats__category-tag--active")?"add filter":"remove 'filter"};FilterRomProd.pushData($(this),e)}),$(document).on("click",".es-help-center-main-search-results-component .es-help-center-main-search-results__filters .es-help-center-main-search-results__filter, .es-help-center-themes-search-results-component .es-help-center-themes-search-results__filters .es-help-center-themes-search-results__filter",function(){var e={filter_search_term:$(this).text().trim()||"",filter_interaction:$(this).hasClass("active")?"add filter":"remove 'filter"};FilterRomProd.pushData($(this),e)}),$(document).on("click",".es-help-center-main-search-results-component .es-help-center-main-search-results__accordion-container .es-help-center-main-search-results__header",function(){var e={element_type:"drop-down",element_description:$(this).closest(".es-help-center-main-search-results__item").find(".es-help-center-main-search-results__trigger").is(":checked")?"close":"open",gdpr_4__c:"no"};Repsol.Analytics.ES.clickInteractionV3($(this),e),ClickInteractionRomProd.pushData($(this),e)}),$(document).on("click",".es-help-center-faq-detail__feedback__buttons button, .es-help-center-faq-detail__feedback__response__negative__button",function(){var e={element_type:"button",gdpr_4__c:"no"};Repsol.Analytics.ES.clickInteractionV3($(this),e),ClickInteractionRomProd.pushData($(this),e)})},header:{clickTlfHeader:function(){Repsol.Analytics.setInfoClick({event:"lead_ok",lead_digitalcategory:"ringpool",x_lead_id:"id",component_name:"menu"})},clickCallMeBtnHeader:function(e){e={event:"interaction",link_text:e.attr("data-text")?Repsol.Analytics.getFreeSpaceText(e.attr("data-text")):Repsol.Analytics.getFreeSpaceText(e.text()),component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),element_type:Repsol.Analytics.getTypeInteraction(e)};Repsol.Analytics.setInfoClick(e)},clickCallMeBtnStickyBarHeader:function(e){e={event:"interaction",link_text:e.attr("data-text")?Repsol.Analytics.getFreeSpaceText(e.attr("data-text")):Repsol.Analytics.getFreeSpaceText(e.text()),component_name:"sticky comercial destino servicio o awarness",component_position:void 0,element_type:Repsol.Analytics.getTypeInteraction(e)};Repsol.Analytics.setInfoClick(e)},clickBtnHeader:function(e){e={event:"menu_click",link_domain:"",link_text:e.hasClass("is-active")?"close"
3131:"open",link_url:e.attr("href")||"",page_language:Repsol.Analytics.getLanguage(),component_name:"navigation bar",menu_name:"header",menu_selected_language:Repsol.Analytics.getLanguage()};Repsol.Analytics.setInfoClick(e)},clickMenuLogo:function(e){e={event:"menu_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e.find("img")),link_url:e.attr("href")||"",page_language:Repsol.Analytics.getLanguage(),component_name:"navigation bar",menu_name:"header"};Repsol.Analytics.setInfoClick(e)},clickHeader2024:function(e){e={event:"menu_click",link_text:Repsol.Analytics.getTextLink(e),link_domain:Repsol.Analytics.getDomineLink(e),link_url:e.attr("href")||void 0,link_type:Repsol.Analytics.getTypeLink(e),component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:"header",menu_main_name:Repsol.Analytics.ES.getMenuName2024(e,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-tertiary-menu-name"),component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(e)},clickUserBtn2024:function(e){let t="main desktop";window.innerWidth<=768&&(t="main mobile");e={event:"menu_click",link_text:Repsol.Analytics.getTextLink(e),link_domain:Repsol.Analytics.getDomineLink(e),link_url:e.attr("href")||void 0,link_type:"navigation",component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:t,menu_main_name:Repsol.Analytics.ES.getMenuName2024(e,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-tertiary-menu-name"),component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(e)},clickMenu2024:function(e){var t="main desktop",t=(window.innerWidth<=768&&(t="main mobile"),{event:"menu_click",link_text:Repsol.Analytics.getTextLink(e),link_domain:Repsol.Analytics.getDomineLink(e),link_url:e.attr("href")||void 0,link_type:Repsol.Analytics.getTypeLink(e),component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:t,menu_main_name:Repsol.Analytics.ES.getMenuName2024(e,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-tertiary-menu-name"),component_catalogue:Repsol.Analytics.getComponentCatalog(e)});Repsol.Analytics.setInfoClick(t)},clickHam2024:function(e){var t="main desktop",t=(window.innerWidth<=768&&(t="main mobile"),{event:"menu_click",link_text:"menu",link_domain:void 0,link_url:void 0,link_type:void 0,component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:t,menu_main_name:void 0,menu_secondary_name:void 0,menu_tertiary_name:void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e)});Repsol.Analytics.setInfoClick(t)},clickCloseHam2024:function(e){e={event:"interaction",component_name:Repsol.Analytics.getComponentLink(e),component_description:void 0,element_type:"close menu",element_description:void 0,link_text:"x",content_name:void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(e)},clickMenuCards2024:function(e){var t="main desktop";window.innerWidth<=768&&(t="main mobile");t={event:"menu_click",link_text:$(e).find(".offers__title").text(),link_domain:Repsol.Analytics.getDomineLink(e),link_url:e.attr("href")||void 0,link_type:Repsol.Analytics.getTypeLink(e),component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:t,menu_main_name:Repsol.Analytics.ES.getMenuName2024(e,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-tertiary-menu-name"),component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(t)},hoverMenu2024:function(e){var t="main desktop",n=Repsol.Analytics.getTypeLink(e),o=e.attr("href")?Repsol.Analytics.getDomineLink(e):void 0;let i=e.attr("href")||void 0;window.innerWidth<=768&&(t="main mobile",o=n=void 0,i=void 0);o={event:"menu_view",link_text:Repsol.Analytics.getTextLink(e)||void 0,link_domain:o,link_url:i,link_type:n,component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:t,menu_main_name:Repsol.Analytics.ES.getMenuName2024(e,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-tertiary-menu-name"),component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(o)},hoverMenuIcon2024:function(e){var t="main desktop",n=Repsol.Analytics.getTypeLink(e),o=(window.innerWidth<=768&&(t="main mobile",n=void 0),$(e).closest("div").find(".links__link").first()),n={event:"menu_view",link_text:Repsol.Analytics.getTextLink(o)||void 0,link_domain:void 0,link_url:e.attr("href")||void 0,link_type:n,component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:t,menu_main_name:Repsol.Analytics.ES.getMenuName2024(o,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName2024(o,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName2024(o,"data-tertiary-menu-name"),component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(n)},clickLogoMenu2024:function(e){e={event:"menu_click",link_text:"home",link_domain:Repsol.Analytics.getDomineLink(e),link_url:e.attr("href")||void 0,link_type:Repsol.Analytics.getTypeLink(e),component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:"header",menu_main_name:Repsol.Analytics.ES.getMenuName2024(e,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-tertiary-menu-name"),component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(e)},clickLinkMenu:function(e){e={event:"menu_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",page_language:Repsol.Analytics.getLanguage(),component_name:"navigation bar",menu_name:"header"};Repsol.Analytics.setInfoClick(e)},clickDropdownNavigation:function(e){e={event:"menu_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",page_language:Repsol.Analytics.getLanguage(),component_name:"navigation bar",menu_name:"header",menu_selected_language:Repsol.Analytics.getLanguage()};Repsol.Analytics.setInfoClick(e)},clickBtnLogin:function(e){var t,n={event:"menu_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:$.trim(e.find(".user-firstname").text()),link_url:e.attr("href")||"",page_language:Repsol.Analytics.getLanguage(),component_name:"navigation bar",menu_name:"header",menu_selected_language:Repsol.Analytics.getLanguage()};0<e.closest(".header-megamenu").length&&(t=Repsol.Analytics.getAccountInfoDL(),n.link_type=Repsol.Analytics.getTypeLink(e),n.outbound=Repsol.Analytics.getOutboundLink(e),n.component_name="header",n.page_real_url=window.location.href,n.menu_main_name=Repsol.Analytics.ES.getMenuName(e,"data-main-menu-name"),n.menu_secondary_name=Repsol.Analytics.ES.getMenuName(e,"data-secondary-menu-name"),n.menu_tertiary_name=Repsol.Analytics.ES.getMenuName(e,"data-tertiary-menu-name"),n.services_available=t&&t.service?t.service:void 0,n.services_available_quantity=t&&t.serviceQty?t.serviceQty:void 0,delete n.menu_selected_language),Repsol.Analytics.setInfoClick(n)},eventMenuClickMegamenu:function(e){var t=Repsol.Analytics.getAccountInfoDL(),e={event:"menu_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:Repsol.Analytics.getTypeLink(e),outbound:Repsol.Analytics.getOutboundLink(e),page_language:Repsol.Analytics.getLanguage(),component_name:"menu",menu_name:Repsol.Analytics.ES.getMenuName(e,"data-menu-name"),page_real_url:window.location.href,menu_main_name:Repsol.Analytics.ES.getMenuName(e,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName(e,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName(e,"data-tertiary-menu-name"),services_available:t&&t.service?t.service:void 0,services_available_quantity:t&&t.serviceQty?t.serviceQty:void 0};Repsol.Analytics.setInfoClick(e)},linkClickMegamenu:function(e){e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",outbound:Repsol.Analytics.getOutboundLink(e),link_type:Repsol.Analytics.getTypeLink(e),component_name:"menu",link_
3131is_cta:e.attr("data-cta")||"False"};Repsol.Analytics.setInfoClick(e)},clickBtnSearch:function(){Repsol.Analytics.setInfoClick({event:"search",outbound:!1,link_text:"buscador",link_type:"navigation",component_name:"navigation bar",link_is_cta:"false"})},clickBtnPhone:function(){Repsol.Analytics.setInfoClick({event:"lead",lead_digitalcategory:"ringpool",x_lead_id:"",component_name:"navigation bar"})},handleUserBtnClick:e=>{var t;$(".header-2024").length,t={menu_name:"header"},MenuClickRomProd2024.pushData(e,t)}},search:{clickSuggestedTerm:function(e){e={event:"search",search_suggestion:e.text(),outbound:"false",link_type:"navigation",component_name:"flujo de busqueda",link_is_cta:"false"};Repsol.Analytics.setInfoClick(e)},enterSearch:function(e){e={event:"search",search_term:e.val(),outbound:"false",link_type:"navigation",component_name:"flujo de busqueda",link_is_cta:"false"};Repsol.Analytics.setInfoClick(e)},enterSearch2024:function(e){e={event:"search",component_name:"flujo de busqueda",search_term:e.val(),search_suggestion:e.closest(".search-content").find(".list-results p").text()||void 0,search_engine_name:"buscador general",component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(e)},clickBtnSearch:function(e,t){e={event:"search",component_name:t.component_name||Repsol.Analytics.ES.getComponentName(e),component_position:t.component_position||Repsol.Analytics.getComponentPosition(e)||void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e),event_detail:t.event_detail||void 0,search_engine_name:t.search_engine_name||void 0,search_suggestion:t.search_suggestion||void 0,search_term:t.search_term||void 0};Repsol.Analytics.setInfoClick(e)}},login:{clickRegister:function(){Repsol.Analytics.setInfoClick({event:"account_register",funnel_type:"private area",funnel_action:"create account",funnel_step:"01",component_name:"card de registro"})},clickLogin:function(e,t){e={event:"start_session",funnel_type:"private area",funnel_action:"login start",funnel_step:"01",method:e.parent().hasClass("social-login-btns")?"social":"password",component_name:"card de login"};Repsol.Analytics.setInfoClick(e)},clickForgotPass:function(e){e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:"navigation",link_is_cta:"true",outbound:"false",component_name:"card de login"};Repsol.Analytics.setInfoClick(e)},okLogin:e=>{let t=Repsol.Analytics.getAccountInfoDL(),n="";t&&""!=t&&(n=t.service||"undefined");e={event:"account_login",method:"password",account_action:"login",component_name:Repsol.Analytics.getComponentLink(e),component_position:void 0,customer_type:void 0,funnel_action:"Iniciar sesion",funnel_step:"01",funnel_type:"login",service:"repsol.es",user_services:n||void 0,event_detail:void 0};window.dataLayer.push(e),Repsol.Analytics.sendAdobeDataLayer(e)},errorLogin:function(e,t){var n=$(".login-form");let o=Repsol.Analytics.ES.getErrorDescription(n);o=o||e;e={event:"account_error",error_type:Repsol.Analytics.ES.getFormErrorType(n),funnel_type:"login",funnel_action:"login_form",funnel_step:"01",method:t,error_description:o,component_name:"card de login",account_action:"error",service:"repsol.es"};Repsol.Analytics.setInfoClick(e)},clickClientArea:function(e,t){var n=void 0,o=void 0,i=void 0,t=(t&&""!=t&&(i=t.user||void 0,n=t.service||void 0,o=t.serviceQty||void 0),{event:"menu_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",menu_name:"header",menu_selected_language:"es",user_id:i,services_available:n,services_available_quantity:o,component_name:"navigation bar area cliente"});Repsol.Analytics.setInfoClick(t)},clickClientAreaService:function(e){e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:"navigation",link_is_cta:"true",outbound:"false",user_id:Repsol.Analytics.getIdUser(),services_available:void 0,services_available_quantity:void 0,component_name:"cards servicios digitales area cliente"};Repsol.Analytics.setInfoClick(e)},clickClientAreaNoService:function(e){e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:"navigation",link_is_cta:"true",outbound:"false",user_id:Repsol.Analytics.getIdUser(),services_available:void 0,services_available_quantity:void 0,component_name:"cards servicios digitales area cliente"};Repsol.Analytics.setInfoClick(e)},clickPassRecoverySend:function(e){jsonInfo={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:"navigation",link_is_cta:"true",outbound:"false",component_name:"card de login"},Repsol.Analytics.setInfoClick(jsonInfo)},clickPassRecoveryOk:function(e){jsonInfo={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:"navigation",link_is_cta:"true",outbound:"false",component_name:"pop-up recuperar de contraseña"},Repsol.Analytics.setInfoClick(jsonInfo)},clickPassRecoveryModal:function(e){jsonInfo={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:"navigation",link_is_cta:"true",outbound:"false",component_name:"card de login"},Repsol.Analytics.setInfoClick(jsonInfo)},clickPassRecoveryModalShow:function(){jsonInfo={event:"password_recover",funnel_type:"private area",funnel_action:"forgotten password sent",funnel_step:"01",component_name:"pop-up solicitud recuperar de contraseña"},Repsol.Analytics.setInfoClick(jsonInfo)},loadClientArea:function(e){jsonInfo={event:"start_session",funnel_type:"private area",funnel_action:"login ok",funnel_step:"02",method:"site"==e?"password":"social"},Repsol.Analytics.setInfoClick(jsonInfo)}},submitDataLayerInfo:function(){Repsol.Analytics.ES.form({event:"solmatch_roofer_funnel",funnel_action:"roofer form sent",funnel_step:"01",funnel_type:"roofer",event_category:void 0,solmatch_solar_community_name:void 0,solmatch_solar_community_address:void 0,solmatch_solar_community_state:"sent roofer",solmatch_solar_community_type:void 0,solmatch_solar_community:void 0})},clickInteractionCheckboxSVA:function(e){e={event:"interaction",link_text:Repsol.Analytics.getTextLinkSVA(e),element_type:"checkbox",component_name:Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(e)},linkClickPricesSVA:function(e){e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:"navigation",link_is_cta:"false",outbound:"false",component_name:Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(e)},clickBtnPolicy:function(e){e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",outbound:"false",link_type:Repsol.Analytics.getTypeLink(e),component_name:Repsol.Analytics.getComponentLink(e),link_is_cta:e.attr("data-cta")||"false"};Repsol.Analytics.setInfoClick(e)},clickCallMeBtnHero:function(e){size=1;var t,n={event:"interaction",link_text:e.find(".text").text(),component_name:"hero",element_type:"button",link_type:"navigation",link_is_cta:"true"};if(0<e.closest(".card-fare").length||0<e.closest(".form-ecommerce-fields").length||0<e.closest(".cmb-header-analytics").length||0<e.closest(".floating-input-component").length){var o=e.closest(".card-fare,.form-ecommerce-fields,.cmb-header-analytics,.floating-input-component").find(".cmp-form-options").find('input[type="checkbox"]');size=1,o.each(function(){t=$(this).closest(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim()||$(this).closest("fieldset").find(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim(),n["field_name_"+size]=t,t=$(this).prop("checked")?"true":"false",n["selected_option_"+size]=t,
3131size++});for(var i=size;i<=4;i++)n["field_name_"+i]=void 0,n["selected_option_"+i]=void 0}else n={event:"interaction",outbound:"false",link_text:e.find(".text").text(),component_name:"hero",component_position:Repsol.Analytics.getComponentLink(e),element_type:"button",link_type:"navigation",link_is_cta:"true"};Repsol.Analytics.setInfoClick(n)},getComponentCategory:function(e){e=e.parents("[data-category]");if(0<e.length)return(0<e.parents("[data-category]").length?e.parents("[data-category]"):e).attr("data-category").toLowerCase()},getErrorDescription:e=>{let t="";return e.find(".cmp-form-text.error .error-msg:not(.d-none)").each(function(){var e=$(this).text();-1==t.indexOf(e)&&(t+=e?(""==t?"":"|")+e:"")}),t},getFormErrorFields:function(e){var t="";if(e.find('.cmp-form-text.error [name], .input-file-box.error [name], .cmp-form-options--dropdown.error [data-name], .cmp-form-options--checkbox [name][data-status=false], .cmp-form-options__field.rp-error[name], .form-ecommerce-form-files .dragdrop-box--error .rp-caption:not(".d-none"), .block-radio-error .cmp-form-options--radio:first [name]').each(function(){$(this).attr("name")||$(this).attr("data-name")?t+=($(this).attr("name")?$(this).attr("name"):$(this).attr("data-name"))+",":t+=$(this).text()+","}),","==t.slice(-1))return t.substring(0,t.length-1)},getFormErrorFieldsFunnel:function(e){var o="";if(e.find('.cmp-form-text.error [name], .input-file-box.error [name], .cmp-form-options--dropdown.error [data-name], .cmp-form-options--checkbox [name][data-status=false], .cmp-form-options__field.rp-error[name], .form-ecommerce-form-files .dragdrop-box--error .rp-caption:not(".d-none"), .block-radio-error .cmp-form-options--radio:first [name]').each(function(){var e,t,n;0==$(this).parents('[style*="display: none"]').length&&(e=$(this).attr("name")||$(this).attr("data-name"),n="",n=(t=0===(t=$(this).siblings(".rp-caption.error-msg:not(.d-none)")).length&&null==(t=(0<$(this).parent().siblings(".rp-caption.error-msg:not(.d-none)").length?$(this):$(this).parent()).parent().siblings(".rp-caption.error-msg:not(.d-none)"))?$(this).closest(".cmp-form-options--checkbox").siblings(".rp-caption.error-msg:not(.d-none)"):t).first().text(),o+=(e?e+"-"+n:$(this).text())+"|")}),"|"==o.slice(-1))return o.substring(0,o.length-1)},getFormErrorFieldsES:function(e){var n="";return e.find('.cmp-form-text.error [name], .input-file-box.error [name], .cmp-form-options--dropdown.error [data-name], .cmp-form-options--checkbox [name][data-status=false], .cmp-form-options__field.rp-error[name], .form-ecommerce-form-files .dragdrop-box--error .rp-caption:not(".d-none"), .block-radio-error .cmp-form-options--radio:first [name]').each(function(){var e,t;0==$(this).parents('[style*="display: none"]').length&&(t="",t=(e=0===(e=$(this).siblings(".rp-caption.error-msg:not(.d-none)")).length&&null==(e=(0<$(this).parent().siblings(".rp-caption.error-msg:not(.d-none)").length?$(this):$(this).parent()).parent().siblings(".rp-caption.error-msg:not(.d-none)"))?$(this).closest(".cmp-form-options--checkbox").siblings(".rp-caption.error-msg:not(.d-none)"):e).first().text(),-1==n.indexOf(t))&&(n+=(""==n?"":"|")+t)}),n},getFormErrorType:function(e){let t="";return e.find('.cmp-form-text.error [name], .input-file-box.error [name], .cmp-form-options--dropdown.error [data-name], .cmp-form-options--checkbox [name][data-status=false], .cmp-form-options__field.rp-error[name], .form-ecommerce-form-files .dragdrop-box--error .rp-caption:not(".d-none"), .block-radio-error .cmp-form-options--radio:first [name]').each(function(){var e=$
3131(this).attr("name")||$(this).attr("data-name");-1==t.indexOf(e)&&(t+=e?(""==t?"":"|")+e:"")}),""==t&&e.find(".cmp-form-text [name]").each(function(){t="forms"}),t},getFormErrorTypeTitle:function(e){var t="";return e.find('.cmp-form-text.error [name], .input-file-box.error [name], .cmp-form-options--dropdown.error [data-name], .cmp-form-options--checkbox [name][data-status=false], .cmp-form-options__field.rp-error[name], .form-ecommerce-form-files .dragdrop-box--error .rp-caption:not(".d-none"), .block-radio-error .cmp-form-options--radio:first [name]').each(function(){var e;0==$(this).parents('[style*="display: none"]').length&&(e=$(this).closest(".input.rp-input-repsol").find("label").text()||$(this).attr("data-name"),-1==t.indexOf(e))&&(t+=e?(""==t?"":"|")+e:"")}),t},getBusinessMeta:function(){var e=$("meta[name='rp-business']");return e.length&&""!==e.attr("content")?e.attr("content"):void 0},getFunnelType:function(){let e=void 0;var t,n=0<$(".rate-fare-proposal-ecommerce-component").length;return $("body").hasClass("funnel-page")&&(t=Repsol.utils.getData(repsolDataLayer),e="undefined"!==t.funnel_type?t.funnel_type:t.funnel_step),e=n?"recomendador de tarifas":e},getErrorType:function(e){e=e.parents("[data-error-type]");if(0<e.length)return(0<e.parents("[data-error-type]").length?e.parents("[data-error-type]"):e).attr("data-error-type").toLowerCase()},getEvenType:function(e){e=e.parents("[data-event-type]");if(0<e.length)return(0<e.parents("[data-event-type]").length?e.parents("[data-event-type]"):e).attr("data-event-type").toLowerCase()},form:function(e){Repsol.Analytics.setInfoClick(e)},clickFooterLink:function(e){e={event:"menu_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:Repsol.Analytics.getTypeLink(e),page_language:Repsol.Analytics.getLanguage(),menu_name:"Footer",component_name:"footer"};Repsol.Analytics.setInfoClick(e)},showAccount:function(e){e={user:e.UID,service:e.data.Service?Object.keys(e.data.Service).join():void 0,serviceQty:e.data.Service?Object.keys(e.data.Service).length:"0"};Repsol.utils.createStorage("DLaccount",e,!0)},getAccountInfoDL:function(){return Repsol.utils.getData("DLaccount")},getComponentPositionX:function(e){var t;return e&&"function"==typeof e.getBoundingClientRect?(t=window.innerWidth,e.getBoundingClientRect().left/t*100):0},getComponentPositionY:function(e){var t;return e&&"function"==typeof e.getBoundingClientRect?(t=window.innerHeight,e.getBoundingClientRect().top/t*100):0},clickPopUp360:function(e){console.log(e);e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:"Saber mas",link_url:e.attr("href")||"",link_type:"navigation",component_name:"popUp 360popup-solar360",content_name:"Instala placas solares en tu hogar y comienza a ahorrar",component_description:void 0,"component position":"modal",component_position_x:Repsol.Analytics.ES.getComponentPositionX(e),component_position_y:Repsol.Analytics.ES.getComponentPositionY(e),link_is_cta:"false",link_is_tag:"false",component_catalogue:"true"};Repsol.Analytics.setInfoClickPopUp360(e)},clickPopUp360Close:function(e){Repsol.Analytics.setInfoClickPopUp360({event:"interaction",element_type:"dropdown",link_text:"Cerrar",component_description:void 0,component_name:"popUp 360popup-solar360",content_name:"Instala placas solares en tu hogar y comienza a ahorrar",element_description:"close",component_catalogue:!0})},funnel:{initFunnel:function(e=null){Repsol.Analytics.ES.funnel.createFunnelDL(e),Repsol.utils.sendDataLY(repsolDataLayer),FunnelRomProd.pushData($(".content-funnel-component"),Repsol.utils.getData(repsolDataLayer)),$("[data-end-funnel]").length&&$("[data-end-funnel]").data("endFunnel")&&Repsol.Analytics.ES.funnel.funnelFinalLead()},createFunnelDL:function(e=null){window.sessionStorage.getItem(repsolDataLayer)||Repsol.utils.createStorage(repsolDataLayer,JSON.parse('{"event":"funnel_lyg_po", "funnel_action": "undefined", "funnel_step": "undefined","funnel_invoice": "undefined","funnel_type": "undefined","funnel_supply_type": "undefined","funnel_street": "undefined","funnel_postal_code": "undefined","funnel_town": "undefined","funnel_province": "undefined","funnel_country": "undefined","funnel_address": "undefined","funnel_rate_type": "undefined","funnel_rate_price": "undefined","funnel_assistant": "undefined","funnel_energy_origin_source": "undefined","funnel_energy_origin_park": "undefined","funnel_energy_origin_zone": "undefined","funnel_energy_origin_town": "undefined","funnel_energy_origin_province": "undefined","funnel_energy_origin_distance": "undefined","funnel_energy_origin": "undefined", "funnel_idcard_type": "undefined", "GDPR_4__c": "no", "gdpr_consent": "true"}'),!1),Repsol.Analytics.ES.funnel.funnelDataLayer(repsolDataLayer,e),Repsol.Analytics.ES.funnel.funnelRateType(repsolDataLayer)},funnelRateType:function(e){var t=Repsol.utils.getData(e),n="funnel_rate_type",o=Repsol.utils.getData("quoteProduct");o&&(void 0!==t?(t[n]=o.name||"undefined",Repsol.utils.setData(e,t)):console.log("Datalayer: error on key definition"))},funnelDataLayer:function(e,t=null){var n=Repsol.utils.getData(e);n.funnel_step=t?.funnel_step?t.funnel_step:$("meta[name=rp-funnel-step]").prop("content")?$("meta[name=rp-funnel-step]").prop("content"):"undefined",n.funnel_action=t?.funnel_action?t.funnel_action:$("meta[name=rp-funnel-action]").prop("content")?$("meta[name=rp-funnel-action]").prop("content"):"undefined",Repsol.utils.setData(e,n)},funnelFotopymeDataLayer:function(){var e=Repsol.utils.getData("studyFormRequest"),t=Repsol.utils.getData("quotationData");e&&""!=e&&(t={event:"funnel_lyg_po_email",idLead:t.existingIdLead||void 0,digitalCategory:e.digitalCategory||void 0,collective:e.stateCode?e.stateCode.toLowerCase():void 0,status:e.stateRegulatedFare},Repsol.Analytics.ES.form(t))},funnelClickBtn:function(e,t){t={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:t||void 0,outbound:Repsol.Analytics.getOutboundLink(e),link_type:Repsol.Analytics.getTypeLink(e),component_name:Repsol.Analytics.getComponentLink(e),link_is_cta:e.attr("data-cta")||"False"},t=Repsol.Analytics.isEcommerce(e,t);Repsol.Analytics.setInfoClick(t)},funnelErrors:function(e){var t,n={event:"error",error_type:"funnel_ly_po",error_digitalcategory:"FunnelWeb",error_description:Repsol.Analytics.ES.getFormErrorFieldsFunnel(e.closest(".form-ecommerce-content")),business:Repsol.Analytics.ES.getBusinessMeta(),component_name:Repsol.Analytics.getComponentLink(e),funnel_type:Repsol.Analytics.ES.getFunnelType()};e.closest("[data-component]")&&(t=e.closest("[data-component]"),Repsol.utils.isGDPR4(t)||0<e.closest(".funnel-form-hiring-finish-component").length)&&(n.GDPR_4__c=Repsol.Analytics.ES.GDPR.getGDPR4(t),n.gdpr_consent="true"),Repsol.Analytics.setInfoClick(n)},getGoogleCID:function(){var e;return e=-1<document.cookie.indexOf("_ga=")?(gaCookie=document.cookie.split("_ga=")[1].split(";")[0].split("."))[2]+"."+gaCookie[3]:e},funnelFinalLead:function(){var e,t=Repsol.utils.getData("repsolDataLayer"),n=Repsol.utils.getData("quotationData"),o=n.Flow,i=(o&&"address"==o?o="funnelweb address a":o&&"cups"==o&&(o="funnelweb cups a"),$("meta[name='rp-business']")),i=i.length&&""!==i.attr("content")?i.attr("content"):"undefined",a=$(".content-funnel-component").data("c
3131omponent"),l=Repsol.utils.getData("studyFormRequest");e=l&&""!=l?(e={collective:l.stateCode||void 0,status:l.stateRegulatedFare},Repsol.Analytics.ES.form(e),{event:"sale",lead_digitalcategory:l.digitalCategory||void 0,event_type:l.digitalCategory?l.digitalCategory.toLowerCase():void 0,x_lead_id:n.existingIdLead||void 0,business:i||void 0,funnel_type:t.funnel_type||void 0,component_name:a||void 0}):{event:"sale",lead_digitalcategory:n.DigitalCategory||void 0,event_type:o||void 0,x_lead_id:n.existingIdLead||void 0,business:i||void 0,funnel_type:t.funnel_type||void 0,component_name:a||void 0},Repsol.Analytics.setInfoClick(e)},datalyCheckout:function(e=!1){var t=Repsol.utils.getData("hiringData"),n=Repsol.utils.getData("quoteProduct"),o=Repsol.utils.getData("cups"),i=Repsol.utils.getData("quotationData"),a=Repsol.utils.getData("cups2"),l=/V[0-9]{1,9}/,s=Repsol.utils.getCookie("cardProdIndex"),c=n.commodity;let r=n.rate&&n.rate.match(l)?n.rate.match(l)[0]:"",m=("dual"==c&&(r+=i.ProductoGas&&null!=i.ProductoGas.match(l)?","+i.ProductoGas.match(l)[0]:""),o.tariff||"");"dual"==c&&(m+=a.tariff?","+a.tariff:"");n=(e?i:t).idContract,l=e?i.Totalprice:t.ProductoPrecio,o=(e?i:t).ProductoNombre,a=(e?i:t).ProductoId,e=e?i.svasAnalyticsName||"SIN SVA":0<t.ProductoSVAsActive?.length?"electricity"===c?"TA 24H":"TAG":"SIN SVA",t={event:"purchase",ecommerce:{transaction_id:n||void 0,affiliation:void 0,value:l||void 0,tax:void 0,shipping:void 0,currency:"EUR",coupon:void 0,items:[{item_name:o||void 0,item_id:a||void 0,price:l||void 0,item_brand:Repsol.Analytics.ES.getBusinessMeta()?Repsol.Analytics.ES.getBusinessMeta():void 0,item_category:"electricity"===c?"Luz":"gas"===c?"Gas":"dual",item_category2:i.GPMIR_fld_customerType||void 0,item_category3:e,item_category4:r||void 0,item_category5:m||void 0,promotion_name:void 0,promotion_id:void 0,item_variant:void 0,item_list_name:void 0,item_list_id:void 0,coupon:void 0,tax:21,index:s,quantity:"1",currency:"EUR"}]}};Repsol.Analytics.ES.form(t)},datalyDistributive:function(e){$distributive=e;let o=/V[0-9]{1,9}/;e=Repsol.Analytics.getCookie("isLogged");let i={event:"view_item_list",user_is_logged:"true"==e&&null!=e,ecommerce:{currency:"EUR",items:[]}},a;$distributive.find(".card-funnel").each(function(){var e,t,n;!$(this).hasClass("card-not-product-cf")&&$(this).find(".productDetail").data("productName")&&""!=$(this).find(".productDetail").data("productName")&&(n=t=void 0,(e={ProductoNombre:$(this).find(".productDetail").data("productNameText")?$(this).find(".productDetail").data("productNameText"):void 0,ProductoId:$(this).find(".productDetail").data("productId")?$(this).find(".productDetail").data("productId"):void 0,ProductoPrecio:$(this).find(".productDetail").data("productPrice")?$(this).find(".productDetail").data("productPrice"):void 0,svasAnalyticsName:$(this).find(".productDetail").data("svasAnalyticsName")?$(this).find(".productDetail").data("svasAnalyticsName"):void 0,commodity:$(this).find(".productDetail").data("productC
3131ommodity")?$(this).find(".productDetail").data("productCommodity"):void 0,rate:$(this).find(".productDetail").data("productRate")?$(this).find(".productDetail").data("productRate"):void 0,gasProductRate:$(this).find(".productDetail").data("gasProductRate")?$(this).find(".productDetail").data("gasProductRate"):void 0}).rate&&""!=e.rate&&(n=e.rate.substr(0,e.rate.indexOf(" ")),e.rate.match(o)&&""!=e.rate.match(o)[0]&&(t=e.rate.match(o)[0]),"dual"==e.commodity)&&e.gasProductRate&&""!=e.gasProductRate&&(t+=e.gasProductRate.match(o)&&""!=e.gasProductRate.match(o)[0]?","+e.gasProductRate.match(o)[0]:void 0,n+=","+e.gasProductRate.substr(0,e.gasProductRate.indexOf(" "))),a={item_name:e.ProductoNombre||void 0,item_id:e.ProductoId||void 0,price:e.ProductoPrecio||void 0,item_brand:Repsol.Analytics.ES.getBusinessMeta()?Repsol.Analytics.ES.getBusinessMeta():void 0,item_category:"electricity"===e.commodity?"Luz":"gas"===e.commodity?"Gas":"dual",item_category2:"Residencial",item_category3:e.svasAnalyticsName||"SIN SVA",item_category4:t||void 0,item_category5:n||void 0,promotion_name:void 0,promotion_id:void 0,item_variant:void 0,item_list_name:void 0,item_list_id:void 0,coupon:void 0,tax:21,index:i.ecommerce.items.length+1,quantity:"1",currency:"EUR"},i.ecommerce.items.push(a))}),$distributive.is(":visible")&&0<i.ecommerce.items.length&&Repsol.Analytics.ES.form(i)},datalyDistributiveLink:function(e){0==($this=e.closest(".block-flex")).length&&""!=$this&&($this=e.closest(".card-link"));var t=/V[0-9]{1,9}/,n=Repsol.utils.getCookie("cardProdIndex"),o=$this.closest(".card-funnel"),i=Repsol.Analytics.isEcommercePortal&&Repsol.Analytics.isEcommercePortal()&&o.hasClass("card-product"),o={ProductoNombre:o.find(".productDetail").data("productNameText")?o.find(".productDetail").data("productNameText"):void 0,ProductoId:o.find(".productDetail").data("productId")?o.find(".productDetail").data("productId"):void 0,ProductoPrecio:o.find(".productDetail").data("productPrice")?o.find(".productDetail").data("productPrice"):void 0,svasAnalyticsName:o.find(".productDetail").data("svasAnalyticsName")?o.find(".productDetail").data("svasAnalyticsName"):void 0,commodity:o.find(".productDetail").data("productC
3131ommodity")?o.find(".productDetail").data("productCommodity"):void 0,rate:o.find(".productDetail").data("productRate")?o.find(".productDetail").data("productRate"):void 0,gasProductRate:o.find(".productDetail").data("gasProductRate")?o.find(".productDetail").data("gasProductRate"):void 0},a=void 0,l=void 0,s=(o.rate&&""!=o.rate&&(l=o.rate.substr(0,o.rate.indexOf(" ")),o.rate.match(t)&&""!=o.rate.match(t)[0]&&(a=o.rate.match(t)[0]),"dual"==o.commodity)&&o.gasProductRate&&""!=o.gasProductRate&&(a+=o.gasProductRate.match(t)&&""!=o.gasProductRate.match(t)[0]?","+o.gasProductRate.match(t)[0]:void 0,l+=","+o.gasProductRate.substr(0,o.gasProductRate.indexOf(" "))),t=0<$this.parents().find(".productDetail").length&&-1!=e.attr("href").indexOf("cotizador")?"add_to_cart":"select_item",Repsol.Analytics.getCookie("isLogged")),s={event:t,user_is_logged:"true"==s&&null!=s,ecommerce:{affiliation:i?"Retail":void 0,currency:"EUR",items:[{item_name:o.ProductoNombre||void 0,item_id:o.ProductoId||void 0,price:o.ProductoPrecio||void 0,item_brand:Repsol.Analytics.ES.getBusinessMeta()?Repsol.Analytics.ES.getBusinessMeta():void 0,affiliation:i?"Retail":void 0,item_category:"electricity"===o.commodity?"Luz":"gas"===o.commodity?"Gas":"dual",item_category2:"Residencial",item_category3:o.svasAnalyticsName||"SIN SVA",item_category4:a||void 0,item_category5:l||void 0,promotion_name:void 0,promotion_id:void 0,item_variant:void 0,item_list_name:void 0,item_list_id:void 0,coupon:void 0,tax:21,index:n,quantity:"1",currency:"EUR"}]}};"select_item"!==t&&Repsol.Analytics.ES.form(s),t=s.event,AnalyticsRomProdEcommerce.ecommerceDataLayer(t,e,s.ecommerce.items,{})},datalyProductPage:function(e){var t=/V[0-9]{1,9}/,n=Repsol.utils.getCookie("cardProdIndex");let o=void 0,i=void 0;e={ProductoNombre:e.ProductoNombre||void 0,ProductoId:e.ProductoId||void 0,ProductoPrecio:e.ProductoPrecio||void 0,svasAnalyticsName:e.svasAnalyticsName||void 0,commodity:e.commodity||void 0,rate:e.rate||void 0,gasProductRate:e.gasProductRate||void 0},e.rate&&""!=e.rate&&(i=e.rate.substr(0,e.rate.indexOf(" ")),e.rate.match(t)&&""!=e.rate.match(t)[0]&&(o=e.rate.match(t)[0]),"dual"==e.commodity)&&e.gasProductRate&&""!=e.gasProductRate&&(o+=e.gasProductRate.match(t)&&""!=e.gasProductRate.match(t)[0]?","+e.gasProductRate.match(t)[0]:void 0,i+=","+e.gasProductRate.substr(0,e.gasProductRate.indexOf(" "))),t={event:"view_item",ecommerce:{currency:"EUR",items:[{item_name:e.ProductoNombre||void 0,item_id:e.ProductoId||void 0,price:e.ProductoPrecio||void 0,item_brand:Repsol.Analytics.ES.getBusinessMeta()?Repsol.Analytics.ES.getBusinessMeta():void 0,item_category:"electricity"===e.commodity?"Luz":"gas"===e.commodity?"Gas":"dual",item_category2:"Residencial",item_category3:e.svasAnalyticsName||"SIN SVA",item_category4:o||void 0,item_category5:i||void 0,promotion_name:void 0,promotion_id:void 0,item_variant:void 0,item_list_name:void 0,item_list_id:void 0,coupon:void 0,tax:21,index:n,quantity:"1",currency:"EUR"}]}};Repsol.Analytics.ES.form(t)},datalyDistributiveCardIndex:function(e){($card=e.closest(".card-product")).addClass("selected");e=$(".cards-product .selected").parent().index()+1;Repsol.utils.setCookie("cardProdIndex",e,10)},datalyCardLink:function(e){var t=/V[0-9]{1,9}/,n=Repsol.utils.getCookie("cardProdIndex");let o={ProductoNombre:e.ProductoNombre||void 0,ProductoId:e.ProductoId||void 0,ProductoPrecio:e.ProductoPrecio||void 0,svasAnalyticsName:e.svasAnalyticsName||void 0,commodity:e.commodity||void 0,rate:e.rate||void 0,gasProductRate:e.gasProductRate||void 0},i=void 0,a=void 0;o.rate&&""!=o.rate&&(a=o.rate.substr(0,o.rate.indexOf(" ")),o.rate.match(t)&&""!=o.rate.match(t)[0]&&(i=o.rate.match(t)[0]),"dual"==o.commodity)&&o.gasProductRate&&""!=o.gasProductRate&&(i+=o.gasProductRate.match(t)&&""!=o.gasProductRate.match(t)[0]?","+o.gasProductRate.match(t)[0]:void 0,a+=","+o.gasProductRate.substr(0,o.gasProductRate.indexOf(" ")));e=Repsol.Analytics.getCookie("isLogged"),t={event:"add_to_cart",user_is_logged:"true"==e&&null!=e,ecommerce:{currency:"EUR",items:[{item_name:o.ProductoNombre||void 0,item_id:o.ProductoId||void 0,price:o.ProductoPrecio||void 0,item_brand:Repsol.Analytics.ES.getBusinessMeta()?Repsol.Analytics.ES.getBusinessMeta():void 0,item_category:"electricity"===o.commodity?"Luz":"gas"===o.commodity?"Gas":"dual",item_category2:"Residencial",item_category3:o.svasAnalyticsName||"SIN SVA",item_category4:i||void 0,item_category5:a||void 0,promotion_name:void 0,promotion_id:void 0,item_variant:void 0,item_list_name:void 0,item_list_id:void 0,coupon:void 0,tax:21,index:n,quantity:"1",currency:"EUR"}]}};Repsol.Analytics.ES.form(t)},funnelEvent:(e,t)=>
3131{let n={event:"funnel",funnel_product:t.funnelProduct??void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e),funnel_action:t.funnelAction??void 0,funnel_step:t.funnelStep??void 0,component_position:void 0,consent_status:void 0,event_detail:t.eventDetail??void 0};t=e.closest("form").find(".cmp-form-options").find('input[type="checkbox"]');let o=1;t.each(function(){fieldName=$(this).closest(".rp-input-repsol").find(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim(),n["field_name_"+o]=fieldName,isChecked=$(this).is(":checked")?"true":"false",n["selected_option_"+o]=isChecked,o++});for(var i=o;i<=1;i++)n["field_name_"+i]=void 0,n["selected_option_"+i]=void 0;Repsol.Analytics.setInfoClick(n)},funnelEventCardRecommnd:(e,t)=>{e={event:"funnel",component_catalogue:t.component_catalogue||Repsol.Analytics.getComponentCatalog(e)||!1,component_position:t.component_position||Repsol.Analytics.getComponentPosition(e)||void 0,event_detail:t.event_detail||void 0,field_name_1:t.field_name_1||void 0,field_name_2:t.field_name_2||void 0,field_name_3:t.field_name_3||void 0,field_value_1:t.field_value_1||void 0,field_value_2:t.field_value_2||void 0,field_value_3:t.field_value_3||void 0,funnel_step:t.funnel_step||void 0,funnel_action:t.funnel_action||void 0,funnel_type:t.funnel_type||Repsol.Analytics.getFunnelType(),selected_option_1:t.selected_option_1||void 0,selected_option_2:t.selected_option_2||void 0,selected_option_3:t.selected_option_3||void 0,funnel_product:t.funnel_product||void 0};Repsol.Analytics.isInsideIframe()||window.dataLayer.push(e),Repsol.Analytics.sendAdobeDataLayer(e)}},solidarityInitiative:{clickONG:function(e){e={event:"interaction",service:Repsol.Analytics.ES.getService(e),event_detail:Repsol.Analytics.ES.solidarityInitiative.getEventDetail(),link_text:Repsol.Analytics.getTextLink(e),element_type:Repsol.Analytics.ES.getElementType(e),funnel_donation_ngo:Repsol.Analytics.ES.solidarityInitiative.getONG(e),funnel_donation:void 0,component_name:Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(e)},clickBtnONGCta:function(e){e={event:"link_click",service:Repsol.Analytics.ES.getService(e),event_detail:Repsol.Analytics.ES.solidarityInitiative.getEventDetail(),link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",outbound:Repsol.Analytics.getOutboundLink(e),link_is_cta:e.attr("data-cta")||"False",link_type:Repsol.Analytics.getTypeLink(e),funnel_donation_ngo:Repsol.Analytics.ES.solidarityInitiative.getONG(e),funnel_donation:void 0,component_name:Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(e)},getONG:function(e){var t=void 0,n=e.parents("[data-component]");if(0<n.length)return e.hasClass("dropdown-item")?t=(0<e.find("span").length?e.find("span"):e).html():0<n.find(".dropdown-toggle").length&&""!=n.find(".dropdown-toggle").attr("data-value")?t=n.find(".dropdown-toggle").html():0<n.find(".funnel-ong-list-item").length&&(t=e.parent().find(".rp-title-1").html()),t}
3131,getEventDetail:function(){var e=$(".recommender-solidarity-initiative-component").find(".selected input[type='radio']").val();if(e&&""!=e)return e.toLowerCase().replace(/\s/g,"")},isONG:function(e,t){"solidarityInitiative"===e.parents("[data-component]").attr("data-analytics")&&(t.service=Repsol.Analytics.ES.getService(e),t.event_detail=Repsol.Analytics.ES.solidarityInitiative.getEventDetail(),t.funnel_donation_ngo=Repsol.Analytics.ES.solidarityInitiative.getONG(e),t.funnel_donation=void 0,t.component_name=Repsol.Analytics.getComponentLink(e))}},ecommerce:{ecommerceDataLayer:function(e,t){var n=Repsol.Analytics.ES.ecommerce.getProductData(e),o=n.products,n=n.value??void 0,i=t.eventType??void 0,a=t.eventDetail??void 0;componentName=t.componentName||Repsol.Analytics.ES.getComponentName(e),paymentType=t.paymentType??void 0,transactionId=t.transactionId??void 0;let l={event:i,user_id:Repsol.Analytics.ES.getUserId(),component_name:componentName,business:Repsol.Analytics.ES.getBusinessMeta(),ecommerce:{items:o}};"begin_checkout"!=i&&"add_shipping_info"!=i&&"add_payment_info"!=i&&"purchase"!=i||(l.ecommerce.currency="EUR",l.ecommerce.value=n,l.event_detail=a),"add_payment_info"!=i&&"purchase"!=i||(l.ecommerce.payment_type=paymentType),"purchase"==i&&(l.ecommerce.transaction_id=transactionId),l=Repsol.Analytics.ES.setUndefinedValues(l),Repsol.Analytics.ES.ecommerce.resetDataLayer(),Repsol.Analytics.setInfoClick(l)},resetDataLayer:()=>{window.dataLayer.push({ecommerce:null})},getPreviousUrl:()=>{let e=Repsol.utils.getCookie("lastPath");return e=e||document.referrer},getProductData:e=>{let f=/V[0-9]{1,9}/;e=e.find(".js-analytics-ecommerce");let h=[],k=0;
3131return e.each(function(){var e=$(this),t=e.attr("data-product-name"),n=e.attr("data-product-id"),o=e.attr("data-product-commodity"),i=e.attr("data-svas-analytics-name"),a=e.attr("data-product-price"),l=e.attr("data-product-rate"),s=e.attr("data-product-discount")??0,c=e.attr("data-product-variant"),r=e.attr("data-product-is-sva");let m=e.attr("data-product-quantity"),p=void(k+=parseFloat(a)-parseFloat(s)),d=void 0,u=void 0,_=void 0,g=void 0,y="repsol";"false"===r?(d="Retail",u=i||"SIN SVA",l&&-1!=l.indexOf(" ")&&(p=l.substr(0,l.indexOf(" ")),l.match(f)&&""!=l.match(f)[0]&&(_=l.match(f)[0]),g=p)):(u="sva",e=Repsol.Analytics.ES.ecommerce.getPreviousUrl(),d=e&&e.includes("particulares")?"residencial":"empresa",y=Repsol.Analytics.ES.getBusinessMeta()),m=isNaN(parseInt(m))?"":parseInt(m);r={item_id:n??void 0,item_name:t??void 0,item_category:"electricity"===o?"luz":"gas"===o?"gas":"dual",item_category2:d,item_category3:u,item_category4:_,item_category5:g,item_brand:y,discount:s,price:a?parseFloat(a):void 0,item_variant:c??void 0,quantity:m??void 0};h.push(r)}),{value:k,products:h}}},getService:function(e){var t=e.closest("[data-component]").attr("data-analytics");if("solidarityInitiative"===(t=null==t?e.parents("[data-analytics]").attr("data-analytics"):t))return"iniciativa solidaria"},getElementType:function(e){return e.hasClass("rp-link")&&"modal"==e.attr("data-toggle")?"card":e.hasClass("button-repsol")||e.parent().hasClass("button-repsol")?"button":e.hasClass("dropdown-item")?"drop-down select":void 0},getElementDescription:function(e){var t=Repsol.AnalyticsRomProdUtils.Getters.getTypeInteraction(e),n=Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e);return"drop-down"===t?t+"_"+("true"===$(e).attr("aria-expanded")?"open":"close"):t+"_"+n},saveOrigin:()=>{var e=document.referrer,t=""!=window.sf_reyg_source?window.sf_reyg_source:window.utm_Source,n=Repsol.forms.resolveOriginCode(t,e),t=Suborigen__c=null==Suborigen__c?Repsol.forms.resolveSubOrigin(t,e):Suborigen__c,e=Repsol.utils.getCookie("originCode"),o=originCodes.organicRepsol;e&&n==o||(Repsol.utils.setCookie("originCode",n),Repsol.utils.setCookie("suborigin",t))},getMenuName:(e,t)=>"data-tertiary-menu-name"==t?0<e.closest(`[${t}]`).length?Repsol.Analytics.getTextLink(e):void 0:0<e.closest(`[${t}]`).length?e.closest(`[${t}]`).attr(""+t):void 0,getMenuName2024:(t,e)=>{let n=void 0;if("data-main-menu-name"===e)if(0<t.closest(".menu__primary").length)n=Repsol.Analytics.getTextLink(t),0<t.closest(".links__link-variant").length&&(n=void 0),0<t.closest(".button-repsol.menu__tab-text").length&&(n=void 0),1023<window.innerWidth&&(n=void 0);else{let e=void 0;var o,i=t.closest(".tab-menu");if(0<i.length){var a=i[0].classList;if(0<a.length)for(var l of a)if(l.startsWith("menu-")){e=l;break}e&&(a=document.querySelector(`[data-menuname="${e}"]`)||document.querySelector(`[data-targettabname="${e}"]`))&&(n=a.textContent),i.attr("data-tabname")&&(menuNameMobile=i.attr("data-tabname"),a=document.querySelector(`[data-targettabname="${menuNameMobile}"]`))&&(n=a.textContent.trim())}(t.hasClass("link-terciary")||t.hasClass("menu_title_mobile__3"))&&(i=(o=t.attr("data-targettabname")).split(".")[0],a=(document.querySelector(".menu__primary--mobile")||document.querySelector(".menu__primary-links")).querySelector(`.links__link[data-targettabname^="${i}"]`),n=a?a.textContent.trim():void 0)}else"data-secondary-menu-name"===e&&(0==t.closest(".menu__primary").length&&(0<t.closest(".menu__secondary").length&&0<t.closest(".links__item--dropdown").length&&(i=t.closest(".links__item--dropdown").find(".links__title").text().trim(),n=i),0<t.closest(".offers").length)&&(n="cards"),0<t.closest(".links__item--dropdown").closest(".menu__secondary--mobile").length&&!t.hasClass("keep-menu-secondary-name")&&(n=void 0),t.hasClass("menu-title__mobile")&&0<t.closest(".menu__secondary--mobile").length&&0==t.closest("links__item--mobile").length&&(n=void 0),t.hasClass("link-terciary")||t.hasClass("menu_title_mobile__3"))&&(o=t.closest(".tab-menu").attr("data-tabname"),a=document.querySelector(`.menu__secondary--mobile .links__link[data-targettabname^="${o}"]`),n=a?a.textContent.trim():void 0);return n},GDPR:{getGDPR4:e=>e.find("input[name='accept-policy']").is(":checked")?"sí":"no",clickInteractionCheckbox:function(e){var t=e.closest("[data-component]"),n="portugal"===$("meta[name='portal']").attr("content")?.toLowerCase(),t={event:"interaction",link_text:Repsol.Analytics.getCheckboxText(e),element_type:"checkbox",gdpr_consent:"true",GDPR_4__c:Repsol.Analytics.ES.GDPR.getGDPR4(t),component_name:Repsol.Analytics.getComponentLink(e)};n&&0<e.closest(".modal-call-me-back").length&&(t.component_name=AnalyticsPT.getComponentParentLink(e)),Repsol.Analytics.setInfoClick(t)},clickLinkModal:e=>{var t=e.closest("[data-component]"),t={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href"),link_type:"navigation",link_is_cta:"false",outbound:"false",gdpr_consent:"true",GDPR_4__c:Repsol.Analytics.ES.GDPR.getGDPR4(t),component_name:Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(t)},clickBtnForm:function(e){var t,n=e.closest("[data-component]"),o={event:"interaction",link_text:Repsol.Analytics.getTextLink(e),element_type:"button",link_type:"navigation",link_is_cta:"true",outbound:"false",component_name:Repsol.Analytics.getComponentLink(e),GDPR_4__c:Repsol.Analytics.ES.GDPR.getGDPR4(n),gdpr_consent:"true"};if(0<e.closest(".card-fare").length||0<e.closest(".form-ecommerce-fields").length||0<e.closest(".cmb-header-analytics").length||0<e.closest(".call-me-form").length||0<e.closest(".form-ecommerce-content").length){n=e.closest(".card-fare,.form-ecommerce-fields,.cmb-header-analytics,.call-me-form,.form-ecommerce-content").find(".cmp-form-options").find('input[type="checkbox"]');size=1,n.each(function(){t=$(this).closest(".cmp-form-options__field-description").text().replace(/[\n\t]/g,"").trim(),o["field_name_"+size]=t,t=$(this).prop("checked")?"true":"false",o["selected_option_"+size]=t,
3131size++});for(var i=size;i<=4;i++)o["field_name_"+i]=void 0,o["selected_option_"+i]=void 0}Repsol.Analytics.setInfoClick(o)},clickCallMeBtn:function(e){var t="portugal"===$("meta[name='portal']").attr("content")?.toLowerCase(),n={event:"interaction",link_text:Repsol.Analytics.getTextLink(e),element_type:"button",link_type:"navigation",link_is_cta:"true",outbound:"false",component_name:Repsol.Analytics.getComponentLink(0<e.parents(["data-component"]).length?e.parents(["data-component"]):e),gdpr_consent:"true"};t&&(n.component_name=AnalyticsPT.getComponentParentLink(e)),Repsol.Analytics.setInfoClick(n)},clickInteractionTooltip:e=>{e={event:"interaction",link_text:Repsol.Analytics.getTooltipText(e),element_type:"info-circle",component_name:Repsol.Analytics.getComponentLink(e),gdpr_consent:"true"};Repsol.Analytics.setInfoClick(e)}},clickModalCloseBtn:(e,t)=>{e.closest("[data-component]");var n="portugal"===$("meta[name='portal']").attr("content")?.toLowerCase(),o=(0<e.closest(".modal-feed-email").length&&$(".header-layer-call .header-center-bottom-zone"),t.contentName||void 0),i=t.eventDetail||void 0,a=t.elementType||"Button",t=t.linkText||"X",o={event:"interaction",component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_description:"modal",component_name:Repsol.Analytics.getComponentLink(e),component_position:void 0,content_name:o,element_description:void 0,element_type:a,link_text:t,event_detail:i};n&&0<e.closest(".modal-call-me-back").length&&(o.component_name=AnalyticsPT.getComponentParentLink(e)),Repsol.Analytics.setInfoClick(o)},createCalculatorDL:function(e,t){var n=e.attr("data-business"),o=e.closest(".multi-step-component").attr("data-business"),o=null==n||""==n?o:n,n=e.attr("data-funnel-step"),i=e.closest(".multi-step-component").attr("data-funnel-step"),i=null==n?i:n,n=e.attr("data-funnel-action"),a=e.closest(".multi-step-component").attr("data-funnel-action"),a=null==n?a:n,n=e.attr("data-component-name"),l=e.closest(".multi-step-component").attr("data-component-name"),l=null==n?l:n,n={event:"funnel_calculadora_ahorro",funnel_action:a,funnel_step:i,funnel_type:l,funnel_rate_price:null==t?t:t.toFixed(2),business:o,component_position:void 0,component_name:l},t=(Repsol.Analytics.setInfoClick(n),{funnel_action:a,funnel_step:i,funnel_type:l});FunnelRomProd.pushData(e,t)},createCalculatorVP:function(e,t){var n=e.attr("data-funnel-action"),o=e.closest(".multi-step-component").attr("data-funnel-action"),o=null==n?o:n,n=e.attr("data-funnel-step"),i=e.closest(".multi-step-component").attr("data-funnel-step"),i=null==n?i:n,n=e.attr("data-component-name"),e=e.closest(".multi-step-component").attr("data-component-name"),e=null==n?e:n,n={event:"virtualpage",page_name:"/particulares/calculadora-de-ahorro/"+o,page_environment:Repsol.Analytics.getPageEnviroment(),page_is_public:Repsol.Analytics.ES.isPagePublished(),page_type:"funnel",page_section:"particulares",page_subsection_1:"calculadora-de-ahorro",page_subsection_2:o,page_subsection_3:void 0,page_language:Repsol.Analytics.getLanguage(),page_hostname_real:window.location.hostname,page_first_publication_date:datePageCreate||null,page_last_publication_date:datePagePublic||null,user_is_logged:!1,user_id:void 0,funnel_action:o,funnel_step:i,funnel_type:e};Repsol.Analytics.isEcommercePage(n),Repsol.Analytics.setInfoClick(n)},isPagePublished:function(){var e=new URLSearchParams(window.location.search).get("wcmmode");return!e||"edit"!==e},clickInteractionCalculator:function(e){var t,n,o=e.closest(".step-component").attr("data-component-name"),e=(null==o&&(o=e.closest(".multi-step-component").attr("data-component-name")),e.hasClass("step-text")?(t=e.text(),n="button"):e.hasClass("cmp-accordion__title")&&(t=e.text(),n="drop-down"),{event:"interaction",link_text:t,element_type:n,component_name:o,component_position:void 0});Repsol.Analytics.setInfoClick(e)},clickFunnelCalculator:function(e,t){console.log(e);let n="01",o=e.closest(".step-component"),i=e.closest(".step-component").attr("data-funnel-action");o.attr("data-step-before")&&(t?n=o.attr("data-funnel-step"):(t=e.closest(".step-component").attr("data-step-before"),o=$('.step-component[data-step="'+t+'"]'),n=o.attr("data-funnel-step"),i=o.attr("data-funnel-action")));var t=e.closest(".step-component").attr("data-component-name"),a=e.closest(".multi-step-component").attr("data-component-name"),a=null==t?a:t,t=Repsol.Analytics.ES.getFieldName1(o,i),l=Repsol.Analytics.ES.getSelectedOpcion1(o),e=e.closest(".row").find(".totalsave-year:first").text()?e.closest(".row").find(".totalsave-year:first").text():"0,00",s=Repsol.Analytics.getIdUser()?Repsol.Analytics.getIdUser():void 0,a={event:"funnel",funnel_action:i,funnel_step:n,funnel_type:a,field_name_1:t,field_name_2:"ahorro total",field_name_3:void 0,selected_option_1:l,selected_option_2:e,selected_option_3:void 0,component_position:void 0,client_id:s};Repsol.Analytics.setInfoClick(a)},getFieldName1:function(e,t){let n=t;return 0<e.find(".select-radio-button").length&&0<e.find(".container-placeholder").find(".step-placeholder").length&&(n=Repsol.Analytics.ES.getSelectedRadioButtonTextCA(e)),n="calculo ahorro"==t?void 0:n},getSelectedOpcion1:function(e){let t=void 0;return 0<e.find(".first-step").length?t=e.find(".step-text").text():0<e.f
3131ind(".select-radio-button").length?t=0<e.find(".container-placeholder").find(".step-placeholder").length?Repsol.Analytics.ES.getPlaceholderValueCA(e):Repsol.Analytics.ES.getSelectedRadioButtonTextCA(e):0<e.find(".container-placeholder").find(".step-placeholder").length&&(t=Repsol.Analytics.ES.getPlaceholderValueCA(e)),t},getSelectedRadioButtonTextCA:function(e){e=e.find('input[name="opcion"]:checked').closest(".step-card-button").find(".step-text").text();return e||void 0},getPlaceholderValueCA:function(e){var t=e.find('input[name="opcion"]:checked');let n;return(n=(0<t.length?t.closest(".step-card-button"):e).find(".step-placeholder").val())||void 0},linkClick:function(e){e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_is_cta:e.attr("data-cta")||"False",outbound:Repsol.Analytics.getOutboundLink(e),link_type:Repsol.Analytics.getTypeLink(e),component_name:Repsol.Analytics.getComponentLink(0<e.closest(".data-component-parent").length&&0<e.parents(["data-component"]).length?e.parents(["data-component"]):e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),business:Repsol.Analytics.ES.getBusinessMeta()};Repsol.Analytics.setInfoClick(e)},linkClickV2:function(e,t){var n=t.content_name||void 0,o=t.component_name||Repsol.Analytics.ES.getComponentName(e),t=t.event_detail||void 0,e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href")||"",link_type:Repsol.Analytics.getTypeLink(e),link_is_cta:e.attr("data-cta")||"False",content_name:n,component_name:o,component_description:void 0,component_position:void 0,event_detail:t};window.dataLayer.push(e),Repsol.Analytics.sendAdobeDataLayer(e)},linkClickV3:function(e,t){e={event:"link_click",component_description:t.component_description||void 0,component_name:Repsol.Analytics.getComponentLink(e),component_position:t.component_position||void 0,content_name:t.content_name||void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e),link_domain:Repsol.Analytics.getDomineLink(e),link_is_cta:e.attr("data-cta")||"False",link_text:e.attr("data-text")?Repsol.Analytics.getFreeSpaceText(e.attr("data-text")):Repsol.Analytics.getFreeSpaceText(e.text()),link_type:Repsol.Analytics.getTypeLink(e),link_url:e.attr("href")};t.is_establishment&&(e.establishment_name=t.establishment_name||void 0,e.establishment_category=t.establishment_category||void 0,e.establishment_adress=t.establishment_adress||void 0),t.user_id&&(e.user_id=Repsol.Analytics.ES.getUserId()||void 0),window.dataLayer.push(e),Repsol.Analytics.sendAdobeDataLayer(e)},linkClickCardRecommendForm:function(e,t){e={event:"link_click",component_catalogue:t.component_catalogue||Repsol.Analytics.getComponentCatalog(e),component_description:t.component_description||void 0,component_name:t.component_name||Repsol.Analytics.getComponentLink(e),component_position:t.component_position||Repsol.Analytics.getComponentPosition(e),content_name:t.content_name||void 0,link_domain:t.link_domain||Repsol.Analytics.getDomineLink(e),link_is_cta:t.link_is_cta||e.attr("data-cta")||"False",link_text:t.link_text||Repsol.Analytics.getTextLink(e),link_type:t.link_type||Repsol.Analytics.getTypeLink(e),link_url:t.link_url||e.attr("href")||void 0,event_detail:t.event_detail||void 0,establishment_adress:t.establishment_adress||void 0,card_type:t.card_type||void 0};Repsol.Analytics.setInfoClick(e)},linkClickRomProdCopy:function(e,t){var n={event:"link_click",component_catalogue:t.component_catalogue||Repsol.AnalyticsRomProdUtils.Getters.getComponentCatalog(e),component_description:t.component_description||Repsol.AnalyticsRomProdUtils.Getters.getComponentDesc(e)||void 0,component_name:t.component_name||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e),component_position:t.component_position||Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e),content_name:t.content_name||Repsol.AnalyticsRomProdUtils.Getters.getContentName(e),link_domain:t.link_domain||Repsol.AnalyticsRomProdUtils.Getters.getDomineLink(e),link_is_cta:t.link_is_cta||e.attr("data-cta")||"False",link_text:t.link_text||Repsol.AnalyticsRomProdUtils.Getters.getTextLink(e),link_type:t.link_type||Repsol.AnalyticsRomProdUtils.Getters.getTypeLink(e),link_url:t.link_url||e.attr("href")||void 0,event_detail:t.event_detail||Repsol.AnalyticsRomProdUtils.Getters.getEventDetail(e)};(Repsol.AnalyticsRomProdUtils.Site.isGuiaSite||Repsol.AnalyticsRomProdUtils.Site.isEessSite||Repsol.AnalyticsRomProdUtils.Site.isLubricants)&&(n.establishment_adress=t.establishment_adress||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentAdress(),n.establishment_category=t.establishment_category||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentCategory(),n.establishment_name=t.establishment_name||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentName(),n.establishment_raiting=t.establishment_raiting||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentRaiting(),n.establishment_type=t.establishment_type||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentType(e)),Repsol.AnalyticsRomProdUtils.Site.isCommerceSite&&(n.establishment_adress=t.establishment_adress||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentAdress()),t.is_establishment_filter&&(n.establishment_type=t.establishment_type||void 0),t.is_establishment&&(n.establishment_name=t.establishment_name||void 0,n.establishment_category=t.establishment_category||void 0,n.establishment_adress=t.establishment_adress||void 0),t.is_establishment_filter&&(n.establishment_type=t.establishment_type||void 0),t.card_type&&(n.card_type=t.card_type),Repsol.AnalyticsRomProdUtils.Getters.setInfoClick(n)},linkClickRomProdCopy:function(e,t){var n={event:"link_click",component_catalogue:t.component_catalogue||Repsol.AnalyticsRomProdUtils.Getters.getComponentCatalog(e),component_description:t.component_description||Repsol.AnalyticsRomProdUtils.Getters.getComponentDesc(e)||void 0,component_name:t.component_name||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e),component_position:t.component_position||Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e),content_name:t.content_name||Repsol.AnalyticsRomProdUtils.Getters.getContentName(e),link_domain:t.link_domain||Repsol.AnalyticsRomProdUtils.Getters.getDomineLink(e),link_is_cta:t.link_is_cta||e.attr("data-cta")||"False",link_text:t.link_text||Repsol.AnalyticsRomProdUtils.Getters.getTextLink(e),link_type:t.link_type||Repsol.AnalyticsRomProdUtils.Getters.getTypeLink(e),link_url:t.link_url||e.attr("href")||void 0,event_detail:t.event_detail||Repsol.AnalyticsRomProdUtils.Getters.getEventDetail(e)};(Repsol.AnalyticsRomProdUtils.Site.isGuiaSite||Repsol.AnalyticsRomProdUtils.Site.isEessSite||Repsol.AnalyticsRomProdUtils.Site.isLubricants)&&(n.establishment_adress=t.establishment_adress||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentAdress(),n.establishment_category=t.establishment_category||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentCategory(),n.establishment_name=t.establishment_name||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentName(),n.establishment_raiting=t.establishment_raiting||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentRaiting(),n.establishment_type=t.establishment_type||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentType(e)),Repsol.AnalyticsRomProdUtils.Site.isCommerceSite&&(n.establishment_adress=t.establishment_adress||Repsol.AnalyticsRomProdUtils.Getters.getEstablishmentAdress()),t.is_establishment_filter&&(n.establishment_type=t.establishment_type||void 0),t.is_establishment&&(n.establishment_name=t.establishment_name||void 0,n.establishment_category=t.establishment_category||void 0,n.establishment_adress=t.establishment_adress||void 0),t.is_establishment_filter&&(n.establishment_type=t.establishment_type||void 0),t.card_type&&(n.card_type=t.card_type),Repsol.AnalyticsRomProdUtils.Getters.setInfoClick(n)},filterRomProdCopy:function(e,t){e={event:"filter",component_description:t.component_description||Repsol.AnalyticsRomProdUtils.Getters.getComponentDesc(e)||void 0,component_name:t.component_name||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e),component_catalogue:t.component_catalogue||Repsol.AnalyticsRomProdUtils.Getters.getComponentCatalog(e),component_position:t.component_position||Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e),filter_interaction:t.filter_interaction||e.text().trim()||void 0,filter_search_term:t.filter_search_term||void 0,filter_section:t.filter_section||void 0};Repsol.AnalyticsRomProdUtils.Getters.setInfoClick(e)},clickInteraction:function(e,t){t={event:"interaction",link_text:t.link_text||(e.attr("data-text")?Repsol.Analytics.getFreeSpaceText(e.attr("data-text")):Repsol.Analytics.getFreeSpaceText(e.text())),component_name:t.component_name||Repsol.Analytics.getComponentLink(e),component_position:t.component_position||Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),element_type:t.element_type||e.attr("data-element-type")};window.dataLayer.push(t),Repsol.Analytics.sendAdobeDataLayer(t)},clickInteractionV2:function(e,t,n){t={event:"interaction",link_domain:-1!=e.attr("href")?.indexOf("tel:")?void 0:Repsol.Analytics.getDomineLink(e),link_text:e.attr("data-text")?Repsol.Analytics.getFreeSpaceText(e.attr("data-text")):Repsol.Analytics.getFreeSpaceText(e.text()),content_name:t,component_name:Repsol.Analytics.getComponentLink(e),component_description:void 0,component_position:void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e),event_detail:n,element_description:void 0,element_type:Repsol.Analytics.getTypeInteraction(e)};window.dataLayer.push(t),Repsol.Analytics.sendAdobeDataLayer(t)},clickInteractionV3:function(e,t){e={event:"interaction",component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_description:void 0,component_name:t.component_name||Repsol.Analytics.ES.getComponentName(e),component_position:void 0,content_name:t.content_name||Repsol.AnalyticsRomProdUtils.Getters.getContentName(e),element_description:t.element_description||void 0,element_type:t.element_type||Repsol.Analytics.ES.getElementType(e),link_text:Repsol.Analytics.getTextLink(e),field_name_1:void 0,field_value_1:void 0,selected_option_1:void 0,event_detail:void 0};Object.hasOwn(t,"gdpr_4__c")&&(e.gdpr_4__c=t.gdpr_4__c),window.dataLayer.push(e),Repsol.Analytics.sendAdobeDataLayer(e)},clickInteractionV4:function(e,t){var n=t.content_name||void 0,o=t.component_name||Repsol.Analytics.ES.getComponentName(e),i=t.component_description||void 0,a=t.element_description||void 0,l=t.link_text||Repsol.Analytics.getTextLink(e),o={event:"interaction",component_name:o,component_description:i,component_position:void 0,element_type:t.element_type,element_description:a,link_text:l??void 0,content_name:n,component_catalogue:Repsol.Analytics.getComponentCatalog(e)};t.is_establishment&&(o.establishment_name=t.establishment_name||void 0,o.establishment_category=t.establishment_category||void 0,o.establishment_adress=t.establishment_adress||void 0),t.user_id&&(o.user_id=Repsol.Analytics.ES.getUserId()||Repsol.AnalyticsRomProdUtils.Getters.getUserId()||void 0),t.event_detail&&(o.event_detail=t.event_detail||void 0),Repsol.Analytics.setInfoClick(o)},clickInteractionV5:function(e,t){var n=t.content_name||void 0,o=t.component_name||Repsol.Analytics.ES.getComponentName(e),i=t.component_description||void 0,a=t.event_detail||void 0,l=t.link_text||Repsol.Analytics.getTextLink(e),o={event:"interaction",component_name:o,component_description:i,component_position:void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e),content_name:n,element_type:t.element_type,link_text:l??void 0};Object.hasOwn(t,"event_detail")&&(o.event_detail=a),t.user_id&&(o.user_id=Repsol.Analytics.ES.getUserId()||void 0),window.dataLayer.push(o),Repsol.Analytics.sendAdobeDataLayer(o)},clickInteractionV6:function(e,t){var n=t.component_name||Repsol.Analytics.ES.getComponentName(e),o=t.element_type||e.attr("data-element-type"),t=t.link_text||Repsol.Analytics.getTextLink(e);Repsol.Analytics.setInfoClick({event:"interaction",component_name:n,element_type:o,link_text:t??void 0})},clickInteractionCardRecommendForm:function(e,t){var n={event:"interaction",component_catalogue:t.component_catalogue||Repsol.Analytics.getComponentCatalog(e)||void 0,component_description:t.component_description||void 0,component_name:t.component_name||Repsol.Analytics.ES.getComponentName(e)||void 0,component_position:t.component_position||void 0,content_name:t.content_name||void 0,element_description:t.element_description||Repsol.Analytics.ES.getElementDescription($(this))||void 0,element_type:t.element_type||Repsol.Analytics.getTypeInteraction(e)||void 0,link_text:t.link_text||Repsol.Analytics.getTextLink(e)||void 0,event_detail:t.event_detail||void 0};Repsol.AnalyticsRomProdUtils.Site.isCommerceSite&&(n.gdpr_4__c=Repsol.AnalyticsRomProdUtils.Getters.getGDPR4(e),n.establishment_adress=t.establishment_adress||void 0),Repsol.Analytics.setInfoClick(n)}
3131,PT:{clickRadioButton:e=>{e={event:"interaction",element_type:"radio-button",link_text:e.attr("data-text")?Repsol.Analytics.getFreeSpaceText(e.attr("data-text")):Repsol.Analytics.getFreeSpaceText(e.val()),component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(e)},clickInteractionCheckbox:function(e){e.closest("[data-component]");e={event:"interaction",link_text:Repsol.Analytics.getCheckboxText(e),element_type:"checkbox",component_name:Repsol.Analytics.getComponentLink(e),component_postition:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(e)},clickLinkModal:e=>{e.closest("[data-component]");e={event:"link_click",link_domain:Repsol.Analytics.getDomineLink(e),link_text:Repsol.Analytics.getTextLink(e),link_url:e.attr("href"),link_type:"navigation",link_is_cta:"false",outbound:"false",component_name:Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(e)}},clickRadioButtonOption:function(e){e={event:"interaction",link_text:e.closest(".charging-point-button").find(".charging-point-text p").text(),element_type:"button",component_name:Repsol.Analytics.getComponentLink(0<e.closest(".data-component-parent").length&&0<e.parents(["data-component"]).length?e.parents(["data-component"]):e),component_position:Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e)||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e)};Repsol.Analytics.isInsideIframe()||window.dataLayer.push(e),Repsol.Analytics.sendAdobeDataLayer(e)},roadcastLead:{clickBtn:(e,t,n)=>{n={event:t,component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_description:void 0,component_name:Repsol.Analytics.getComponentLink(e),component_position:void 0,content_name:n,link_text:Repsol.Analytics.getTextLink(e)};"interaction"==t&&(n.element_description=void 0,n.element_type=Repsol.Analytics.getTypeInteraction(e)),"link_click"==t&&(n.link_domain=Repsol.Analytics.getDomineLink(e),n.link_is_cta=e.attr("data-cta")||"False",n.link_type=Repsol.Analytics.getTypeLink(e),n.link_url=e.attr("href")),Repsol.Analytics.setInfoClick(n)},interactionPopUp:(e,t)=>{var n=e.closest(".modal-content").find("form"),t={event:"interaction",component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_description:void 0,component_name:Repsol.Analytics.getComponentLink(e),component_position:"popup",content_name:t,element_description:void 0,element_type:"button",link_text:e.attr("data-text")?e.attr("data-text"):Repsol.Analytics.getTextLink(e),event_detail:void 0};0<n.length&&(t.gdpr_4__c="sí"==Repsol.Analytics.ES.GDPR.getGDPR4(n)),Repsol.Analytics.setInfoClick(t)},lead:(e,t)=>{t={event:"lead",lead_digitalcategory:"form",x_lead_id:t,business:"movilidad electrica",funnel_type:Repsol.Analytics.ES.getFunnelType(),component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_description:void 0,component_name:Repsol.Analytics.getComponentLink(e),event_detail:void 0,gdpr_consent:"true",gdpr_4__c:"sí"==Repsol.Analytics.ES.GDPR.getGDPR4(e)};Repsol.Analytics.setInfoClick(t)},error:e=>{e={event:"r_error",business:"movilidad electrica",component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_name:Repsol.Analytics.getComponentLink(0<e.closest(".data-component-parent").length&&0<e.parents(["data-component"]).length?e.parents(["data-component"]):e),error_description:e.find(".form-message__title").text().trim(),error_type:"lead"};Repsol.Analytics.setInfoClick(e)}},getComponentName:e=>Repsol.Analytics.getComponentLink(0<e.closest(".data-component-parent").length&&0<e.parents(["data-component"]).length?e.parents(["data-component"]):e),viewElement:(e,t)=>{var n=t.contentName||t.content_name||void 0,t={event:"view_element",component_description:t.componentDescription||void 0,content_name:n,component_name:Repsol.Analytics.ES.getComponentName(e)||Repsol.Analytics.getComponentLink(e)||void 0,event_detail:void 0};Repsol.Analytics.setInfoClick(t)},viewElement2:(e,t)=>{var n=t.content_name||void 0,t={event:"view_element",component_description:t.component_description||void 0,component_name:Repsol.Analytics.getComponentLink(e),content_name:n,component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(t)},viewElementV3:(e,t)=>{var n=t.content_name||void 0,o=t.component_description||void 0,o={event:"view_element",component_name:Repsol.Analytics.getComponentLink(e),component_description:o,component_position:void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e),content_name:n};t.user_id&&(o.user_id=Repsol.Analytics.ES.getUserId()||void 0),window.dataLayer.push(o),Repsol.Analytics.sendAdobeDataLayer(o)},getUserId:()=>{let e=void 0;var t=Repsol.Analytics.getCookie("isLogged");return e="true"===t&&(t=Repsol.Analytics.getAccountInfoDL())&&t.user&&""!=t.user?t.user:e},viewPopUp:(e,t)=>{let n="view_popup";var o=t.content_name||void 0,i=t.event_detail||void 0,t=t.component_description||void 0,a=e.closest(".rp-ecommerce-page").find(".payment-in-installments--js"),a=0<$(a).length&&!$(a).hasClass("d-none"),a={event:n=a?"view_element":n,component_description:t,component_name:Repsol.Analytics.getComponentLink(e),content_name:o,event_detail:i};Repsol.Analytics.setInfoClick(a)},setUndefinedValues:t=>{var n=Object.keys(t);for(let e=0;e<n.length;e++){var o=n[e];"object"!=typeof t[o]&&!Array.isArray(t[o])||null===t[o]?null===t[o]||""===t[o]||"undefined"===t[o]?t[o]=void 0:t[o]=t[o]:Repsol.Analytics.ES.setUndefinedValues(t[o])}return t},clickCalculate:(e,t)=>
3131{var n=document.querySelectorAll(".general-calculator-cmp__form-fields");let o=document.querySelector(".general-calculator-cmp"),s={event:"form",component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e)||void 0,business:Repsol.Analytics.ES.getBusinessMeta(),form_action:t.formAction,form_type:"Calculate",form_id:t.formId};function c(e,t){var n;if(e)return n=e.getAttribute("condition-component"),e=e.getAttribute("condition-value"),!n||t[n]===e}n.forEach((e,t)=>{let i={},a=[],l=[];o.classList.contains("container_calc_ahorro")?(e.querySelectorAll(".text-extended").forEach(e=>{var t=e.parentElement.parentElement.querySelector("legend").textContent.trim(),n=e.querySelector("label");c(e.querySelector("input"),i)&&(e=n?.textContent.trim(),a.push(t),n.parentElement.parentElement.parentElement.parentElement.classList.contains("active"))&&l.push(e)}),e.querySelectorAll(".options-single").forEach(e=>{var t=e.parentElement.parentElement.querySelector("legend").textContent.trim(),n=e.querySelector("label");c(e.querySelector("input"),i)&&(e=n?.textContent.trim(),a.push(t),n.parentElement.parentElement.parentElement.classList.contains("active"))&&l.push(e)})):(e.querySelectorAll(".options-extended").forEach(e=>{var t=e.querySelector(".label"),e=e.querySelector(".dropdown-toggle"),t=t?.textContent.trim(),n=e?.textContent.trim(),o=e?.getAttribute("name");o&&(i[o]=e.getAttribute("data-value")),c(e,i)&&(a.push(t),l.push(n))}),e.querySelectorAll(".text-extended").forEach(e=>{var t=e.querySelector("label"),e=e.querySelector("input");c(e,i)&&(t=t?.textContent.trim(),e=e?.value.trim(),a.push(t),l.push(e))}
3131)),s["field_name_"+(t+1)]=[...new Set(a)].join(" - "),s["selected_option_"+(t+1)]=[...new Set(l)].join(" - ")}),s.event_detail=t.eventDetail,window.dataLayer.push(s)},clickChatShop:function(e){e=e.attr("role")||"undefined";window.dataLayer.push({event:"interaction",component_name:e,element_type:"chatbox",link_text:"more_info",content_name:"chat"})},initChatSoleAnalytics:function(){function e(e){e={component_name:"chat sole",element_type:"chatbox",link_text:e,content_name:"chat"};window.dataLayer.push({event:"interaction",component_name:e.component_name,element_type:e.element_type,link_text:e.link_text,content_name:e.content_name}),ClickInteractionRomProd.pushData($(window),e)}window.addEventListener("onEmbeddedMessagingWindowMaximized",function(){e("more_info")}),window.addEventListener("onEmbeddedMessagingWindowMinimized",function(){e("drop-down")}),window.addEventListener("onEmbeddedMessagingWindowClosed",function(){e("close")}),window.addEventListener("onEmbeddedMessagingConversationClosed",function(){e("close")})},clickCleanCalculate:(e,t)=>{t={event:"interaction",component_name:Repsol.Analytics.getComponentLink(e),component_description:void 0,component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e)||void 0,content_name:t.contentName,element_type:"button",link_text:e?e.find("span").text().trim():void 0};window.dataLayer.push(t)},searchLS:function(e,t){var n=t.component_name||Repsol.Analytics.ES.getComponentName(e),o=t.search_engine_name||void 0,i=t.search_suggestion||void 0,a=t.search_term||void 0,t=t.event_detail||void 0,e={event:"search",component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_name:n,search_engine_name:o,search_suggestion:i,search_term:a,event_detail:t};Repsol.Analytics.setInfoClick(e)},funnelExperiences:{getTicks:function(e){e=e.closest(".card-emotional").find(".card-emotional-experience__detail .card-emotional__icon-text");let n=[];return e.each((e,t)=>{""!==t.textContent.trim()&&n.push(t.textContent.trim())}),n.join()},funnelExperiencesSteps:function(e,t,n){e={event:"funnel",component_catalogue:Repsol.Analytics.getComponentCatalog(e),component_position:Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e),funnel_action:n.funnel_action,funnel_step:n.funnel_step,funnel_type:n.funnel_type,field_name_1:"field_name_1",selected_option_1:n.selected_option_1||void 0,field_name_2:"field_name_2",selected_option_2:n.selected_option_2||void 0,field_name_3:"field_name_3",selected_option_3:n.selected_option_3||void 0,event_detail:n.event_detail};Repsol.Analytics.setInfoClick(e)},error:(e,t)=>{e={event:"r_error",component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e)||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e),component_catalogue:Repsol.Analytics.getComponentCatalog(e),business:Repsol.Analytics.ES.getBusinessMeta(),error_description:t.error_description,error_type:t.error_type};Repsol.Analytics.setInfoClick(e)}},clickPaginationNumber:function(e){e={event:"interaction",element_type:"page number",link_text:$.trim(Repsol.Analytics.getFreeSpaceText(e.text())),component_name:Repsol.Analytics.getComponentLink(e)};Repsol.Analytics.setInfoClick(e)},errorCopyFromRom:function(e,t){t={event:"r_error",business:t.business||Repsol.AnalyticsRomProdUtils.Getters.getBusinessMeta(),component_catalogue:Repsol.AnalyticsRomProdUtils.Getters.getComponentCatalog(e),component_name:t.component_name||Repsol.AnalyticsRomProdUtils.Getters.getComponentLink(e),component_position:t.component_position||Repsol.AnalyticsRomProdUtils.Getters.getComponentPosition(e),error_description:t.error_description||void 0,error_type:t.error_type||Repsol.AnalyticsRomProdUtils.Getters.getErrorType(e),event_detail:t.event_detail||Repsol.AnalyticsRomProdUtils.Getters.getEventDetail(e)};Repsol.AnalyticsRomProdUtils.Getters.setInfoClick(t)},clickPaginationArrow:function(e){e.hasClass("page-item--prev"),e.attr("data-text"),Repsol.Analytics.getComponentLink(e)},menuClick:function(e,t){t={event:"menu_click",link_text:Repsol.Analytics.getTextLink(e),link_domain:Repsol.Analytics.getDomineLink(e),link_url:e.attr("href")||void 0,link_type:Repsol.Analytics.getTypeLink(e),component_name:Repsol.Analytics.getComponentLink(e),component_position:Repsol.Analytics.getComponentPosition(e)||Repsol.Analytics.getComponentLink(e),menu_name:t.menu_name||void 0,menu_main_name:Repsol.Analytics.ES.getMenuName2024(e,"data-main-menu-name"),menu_secondary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-secondary-menu-name"),menu_tertiary_name:Repsol.Analytics.ES.getMenuName2024(e,"data-tertiary-menu-name"),component_catalogue:Repsol.Analytics.getComponentCatalog(e)};Repsol.Analytics.setInfoClick(t)},NMP:{funnel:{ecommerceDataLayer:(e,t)=>{var n=Repsol.Analytics.ES.NMP.funnel.getProductData(e);let o=n.products;n=n.value;let i=t.eventType;o=o.map(e=>("select_item"!=i&&"add_to_cart"!=i||(e.item_list_id=t.itemListId||void 0,e.item_list_name=t.itemListName||void 0),e));
3131var a={event:i,component_name:t.componentName||Repsol.Analytics.getComponentLink($(e)),component_position:void 0,component_description:t.componentDescription||void 0,component_catalogue:Repsol.Analytics.getComponentCatalog($(e)),event_detail:t.eventDetail||void 0,funnel_type:t.funnelType||void 0,ecommerce:{items:o}},n=("view_item_list"==i&&(a.item_list_id=t.itemListId||void 0,a.item_list_name=t.itemListName||void 0),"add_to_cart"==i&&(a.currency="EUR",a.value=n||void 0),"view_item_list"!=i&&"select_item"!=i||(a.ecommerce.currency="EUR"),!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length));n&&0<a.ecommerce.items.length&&Repsol.Analytics.ES.form(a)},getProductData:p=>{let d=/V[0-9]{1,9}/,u=p.querySelectorAll(".js-quote-product-data");var e=p.parentNode;let _=Array.from(e.children),g=[],y=0;return u.forEach(e=>{var t=e.getAttribute("data-product-name"),n=e.getAttribute("data-product-id"),o=e.getAttribute("data-product-rate"),i=e.getAttribute("data-gas-product-rate"),a=e.getAttribute("data-product-access-rate"),l=e.getAttribute("data-gas-product-access-rate"),s=e.getAttribute("data-product-commodity"),c=e.getAttribute("data-product-price")||0,r=e.getAttribute("data-product-discount")||0,e=e.getAttribute("data-svas-analytics-name"),m=1<u.length?g.length+1:_.indexOf(p)+1,o=(itemCategory="Tarifas",itemCategory4=void 0,itemCategory5=void 0,y+=parseFloat(c),o&&(o.match(d)&&""!=o.match(d)[0]&&(itemCategory4=o.match(d)[0]),"dual"==s)&&i&&(itemCategory4+=i.match(d)&&""!=i.match(d)[0]?","+i.match(d)[0]:void 0),a&&(itemCategory5=a,"dual"==s)&&l&&(itemCategory5+=","+l),{item_id:n||void 0,item_name:t||void 0,discount:r?parseFloat(r):void 0,index:m,item_brand:Repsol.Analytics.ES.getBusinessMeta()?Repsol.Analytics.ES.getBusinessMeta():void 0,item_category:itemCategory,item_category2:"electricity"===s?"Luz":"gas"===s?"Gas":"dual",item_category3:e||"SIN SVA",item_category4:itemCategory4,item_category5:itemCategory5,item_variant:void 0,price:c?parseFloat(c):void 0,quantity:1,creative_name:void 0,creative_slot:void 0});g.push(o)}),{value:y,products:g}}}}},$(document).ready(function(){if(Repsol.Analytics.ES.init(),$("body").hasClass("funnel-page")&&(document.querySelector(".multi-step-component")?document.querySelector(".multi-step-component").querySelectorAll(".step-component").forEach(n=>{n.addEventListener("active",eventHandler=e=>{window.location.hash=n.getAttribute("data-step");var t={funnel_step:n.getAttribute("data-funnel-step"),funnel_action:n.getAttribute("data-funnel-action")};Repsol.Analytics.ES.funnel.initFunnel(t)})}):Repsol.Analytics.ES.funnel.initFunnel()),-1<window.location.href.indexOf("solred")){let e=Repsol.utils.getCookie("previousUrl"),t;!(e=e||document.referrer||"No hay URL previa disponible").includes("autonomos-y-empresas/solred/tarjetas")||window.location.href.endsWith("autonomos-y-empresas/solred/tarjetas/")||window.location.href.endsWith("autonomos-y-empresas/solred/tarjetas.html")||(t={event:"funnel",component_catalogue:!1,field_name_1:void 0,field_value_1:void 0,funnel_action:"mostrar pagina tarjeta seleccionada",funnel_product:"tarjeta solred clasica",funnel_step:"4",funnel_type:"tarjetas solred",selected_option_1:void 0,component_position:void 0,event_detail:void 0},Repsol.Analytics.ES.funnel.funnelEventCardRecommnd($(this),t),FunnelRomProd.pushData($(this),t))}});
3132Repsol.video={init:function(){"corporate"!==document.querySelector('meta[name="portal"]')?.content&&(Repsol.video.events(),Repsol.video.standardEvents(),Repsol.video.dynamicEvents())},events:function(){var o=!1,a=!1,t=!1,s=null,n=null;$(document).on("click",".open-video-modal",function(e){e.preventDefault(),s=$(this),o=!!s.closest(".hero-com").length,a=!!s.closest(".hero-full-screen").length,t=!!s.closest(".video-button").length,0<(n=(s.hasClass("open-video-modal--external")?s.parent():s).siblings(".modalVideo")).length&&((o||a||t)&&(n.addClass("modalVideoHeroCom"),$("body").append(n)),n.modal("show"))}),$(".modalVideo, .floatingModalVideo").off("shown.bs.modal").on("shown.bs.modal",function(){var e=$
3132(this),t=e.find("video");0<t.length&&(t.data("started")||(t.attr("data-status","playing"),Repsol.AnalyticsRomProdUtils.Getters.videoSite(t,"video","start"),t.data("started",!0),Repsol.video.play(t.get(0))),t.off("play"),Repsol.video.addVideoEvents(e),e.hasClass("floatingModalVideo"))&&Repsol.video.play(t.get(0)),$("body").find(".rp-intranet-page").length&&(e.closest(".secondary-higlight-component").length||e.closest(".testimony-component").length)||0<(t=e.find(".video-external-yt")).length&&(t[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*"),o||a)&&setTimeout(function(){$(".modalVideo.show").find(".video-external")[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},400)}),$(".modalVideo, .floatingModalVideo").off("hide.bs.modal").on("hide.bs.modal",function(){var e=$(this),t=e.find("video"),t=(0<t.length&&(t.attr("data-status","stopped"),Repsol.video.stop(t.get(0)),t.off(),t.data("started",!1)),e.find(".video-external-yt")),t=(0<t.length&&t[0].contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"),e.find(".video-external-ms"));0<t.length&&t.attr("src",t.attr("src"))}),$(".modalVideo, .floatingModalVideo").on("hidden.bs.modal",function(e){(o||a||t)&&s.after(n)}
3132),$("video.video-hover").each(function(){var e=$(this);window.matchMedia("(max-width: 1023px)").matches&&0<e.closest("[class*='col-12']").length&&Repsol.video.checkAutoplay(e),window.matchMedia("(min-width: 1024px)").matches&&(0<e.closest("[class*='col-md-12']").length?Repsol.video.checkAutoplay(e):Repsol.video.stop(e.get(0))),window.matchMedia("(min-width: 1440px)").matches&&(0<$(this).closest("[class*='col-lg-12']").length?Repsol.video.checkAutoplay(e):Repsol.video.stop(e.get(0))),window.matchMedia("(min-width: 1920px)").matches&&(0<$(this).closest("[class*='col-xl-12']").length?Repsol.video.checkAutoplay(e):Repsol.video.stop(e.get(0)))}),$(".modal.modalVideo").on("shown.bs.modal",function(){Repsol.video.standardEvents()})},checkAutoplay:function(o){0<o.length&&(o.addClass("autoplay"),o.attr("data-status","stopped"),o.on("inview",function(e,t){t?(o.attr("data-status","playing"),Repsol.video.play(o.get(0))):(o.attr("data-status","stopped"),Repsol.video.stop(o.get(0)))}))},dynamicEvents:function(){$(".dynamic-distributor, .block-content-item").each(function(){var e,t=$(this);0<t.find("video.video-hover").length&&(e=t.find("video.video-hover"),t.mouseenter(function(){e.hasClass("autoplay")||e.get(0).playing||(e.attr("data-status","playing"),Repsol.video.play(e.get(0)))}).mouseleave(function(){e.hasClass("autoplay")||(e.attr("data-status","stopped"),Repsol.video.stop(e.get(0)))}))})},standardEvents:function(){$("video.video-hover").each(function(){var e=$
3132(this);0==e.closest(".dynamic-distributor, .block-content-item").length&&($(".rp-lubricantes-page").length?(e.attr("data-status","playing"),Repsol.video.play(e.get(0))):e.closest(".secondary-higlight-component").length||e.mouseenter(function(){e.hasClass("autoplay")||(e.attr("data-status","playing"),Repsol.video.play(e.get(0)))}).mouseleave(function(){e.hasClass("autoplay")||(e.attr("data-status","stopped"),Repsol.video.stop(e.get(0)))}))})},addVideoEvents:function(e){var t,o,a=e.find("video");function s(){var e=0<t.duration?t.currentTime/t.duration*100:0,e=25*Math.floor(e/25);o.progressReported<e&&(o.progressReported=e,Repsol.AnalyticsRomProdUtils.Getters.videoSite(a,"video","progress",e+"%"))}0<a.length&&(t=a.get(0),o={progressReported:0,isStarted:!1,isPaused:!1,isEnded:!1},t.loop=!1,a.off("play pause ended timeupdate"),a.on("play",function(){o.isPaused||o.isEnded?(o.isPaused=!1,o.isEnded=!1,o.isStarted=!0,Repsol.AnalyticsRomProdUtils.Getters.videoSite(a,"video","start")):o.isStarted||(o.isStarted=!0)}),a.on("pause",function(){o.isPaused||(o.isPaused=!0,Repsol.AnalyticsRomProdUtils.Getters.videoSite(a,"video","pause"))}),a.on("ended",function(){o.isEnded||(o.isEnded=!0,o.isStarted=!1,Repsol.AnalyticsRomProdUtils.Getters.videoSite(a,"video","complete"))}),a.on("timeupdate",function(){s()}))},play:function(e,t){t||$(e).closest(".floatingModalVideo").length,e.loop=!1,e.play()},pause:function(e){e.pause()},stop:function(e){e.pause(),e.currentTime=0},external:{init:function(){0<$(".video-external-wrapper").length&&$(".video-external").each(function(e){var t=$(this).data("original-src");null!=t&&0<t.indexOf("youtu")?$(this).attr("src",Repsol.video.external.youtube.formatEmbedURL(t)):$(this).attr("src",t)})},youtube:{onPlayerReady:function(e){console.log("YoutubePlayer ready")},onPlayerStateChange:function(e){console.log("YoutubePlayer state change")},formatEmbedURL:function(e){return"//www.youtube.com/embed/"+this.getId(e)},getId:function(e){e=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return e&&11==e[2].length?e[2]:"error"}}}},$(document).ready(function(){Repsol.video.init()});
3133let isLubricant=document.querySelector(".rp-lubricantes-page");Repsol.Carousel={timeKey:null,init:function(t=!1){Repsol.Carousel.width=Repsol.Carousel.tipeBp(),0<$(document).find(".rp-carousel").length&&$(".rp-carousel").each(function(){Repsol.Carousel.isCarousel($(this),t)}),$(window).resize(function(){var e=Repsol.Carousel.tipeBp();Repsol.Carousel.width!=e&&(Repsol.Carousel.width=e,null!=Repsol.Carousel.timeKey&&clearTimeout(Repsol.Carousel.timeKey),Repsol.Carousel.timeKey=setTimeout(function(){$(".rp-carousel").each(function(){Repsol.Carousel.isCarousel($(this),t)})},500)),Repsol.Carousel.hideCarouselIfNotExist()}),Repsol.Carousel.hideCarouselIfNotExist()},hideCarouselIfNotExist:function(){var e=document.querySelector("section.carousel-component"),t=document.querySelector(".rp-carousel"),e=e?.classList.contains("isAuthor");null!==t&&0!==t?.childElementCount||!isLubricant||e||((e=(t=document.querySelector(".carousel-content.carousel"))?.nextElementSibling?.classList.contains("featured-strip"))&&$(window).width()<720?t.nextElementSibling.style.marginTop="48px":e&&(t.nextElementSibling.style.marginTop="96px"),t?.classList.add("hidden"))},tipeBp:function(){$(window).width()<720?Repsol.Carousel.width="SM":$(window).width()<1022?Repsol.Carousel.width="MD":Repsol.Carousel.width="XL","SM"==Repsol.Carousel.width&&$(".lubricantes-caroursel .rp-carousel article:nth-child(10)").nextAll().each(function(){this.remove()})},isCarousel:function(e,t){e.hasClass("slick-slider")&&e.slick("unslick");var s=e.find("> :not(link, script)").length;($(window).width()<720?1:$(window).width()<1022?Repsol.Carousel.getNumItemsMD(e):Repsol.Carousel.getNumItemsXL(e))<s&&Repsol.Carousel.initCarousel(e),isLubricant&&3===s&&Repsol.Carousel.initCarousel(e),isLubricant&&!t&&Repsol.Carousel.getItemsLubricants(e)},hideLinkScript:function(e){e.find("link, script").each(function(){$(this).addClass("hide-link-script")})},initCarousel:function(i){let e="slick-dots";i.find(".principal-hightlight-item").length&&(i.find(".principal-hightlight-item").hasClass("principal-hightlight-item--home")?e+=" slick-dots--highlight slick-dots--home":e+=" slick-dots--highlight");var t=!!i.hasClass("rp-carousel-autoplay"),s=i.hasClass("rp-carousel-autoplay")?12e3:0;let l=i;i.find(".principal-hightlight-item").length&&(l.on("click",".slick-dots--highlight button",function(){l.
3133slick("slickPlay")}),l.on("init",function(e,t,s,o){Repsol.Carousel.setActiveAnimation(i),Repsol.Carousel.playVideo(i),null==s&&(s=0);s=l.find(".principal-highlight").eq(s);null!=s&&(s.hasClass("rp-align-right")?i.find(".slick-dots").addClass("dot-align-left"):(s.hasClass("rp-align-left"),i.find(".slick-dots").removeClass("dot-align-left")))}),l.on("afterChange",function(e,t,s,o){l.slick("slickPlay"),Repsol.Carousel.setActiveAnimation(i);s=l.find(".principal-highlight").eq(s);0<s.length&&(s.hasClass("rp-align-right")?i.find(".slick-dots").addClass("dot-align-left"):(s.hasClass("rp-align-left"),i.find(".slick-dots").removeClass("dot-align-left"))),0<i.find("video").length&&i.find("video").get(0).pause(),Repsol.Carousel.playVideo(i)}));var o,n=document.querySelector(".rp-lubricantes-page"),t={dots:i.hasClass("rp-carousel-dot"),arrows:!1,infinite:t||i.hasClass("rp-carousel-infinite"),dotsClass:e,mobileFirst:!0,slidesToShow:1,autoplay:t,autoplaySpeed:s,pauseOnFocus:!1,pauseOnHover:!1,prevArrow:'<button type="button" class="slick-prev rds-button rds-button__secondary rds-button-round" data-text="left arrow"><div class="rp-icon"><span class="icon-rp-Arrow_left"></span></div></button>',nextArrow:'<button type="button"  class="slick-next rds-button rds-button__secondary rds-button-round" data-text="right arrow"><div class="rp-icon"><span class="icon-rp-Arrow_right"></span></div></button>',responsive:[{breakpoint:719,settings:{slidesToShow:Repsol.Carousel.getNumItemsMD(i)}},{breakpoint:1023,settings:{arrows:i.hasClass("rp-carousel-arrow"),slidesToShow:Repsol.Carousel.getNumItemsXL(i)}}]};i.slick(t),n&&(o=!1,$(window).width()<1024&&Repsol.Carousel.setMobileDots(),window.onresize=function(e){$(window).width()<1024?(o||(Repsol.Carousel.setMobileDots(),console.log("prueba modificando dots")),o=!0,console.log("prueba dots no modificados")):o=!1}),Repsol.Carousel.hideLinkScript(i)},getItemsLubricants:function(){var e=document.querySelector(".carousel-component").dataset.rsPath,t=JSON.parse(Repsol.utils.getCookie("country-selected-rp"))?.countryId;$.ajax({url:e+`.${t}.html`,method:"GET"}).done(function(e){document.querySelector(".carousel-content").innerHTML=e,document.querySelector(".rp-carousel-dot").classList.add("rp-carousel"),Repsol.Carousel.init(!0),"undefined"!=typeof RepsolCardProductLubricants&&setTimeout(RepsolCardProductLubricants?.hideUnnecesaryTooltip,1500)})},getNumItemsXL:function(e){e=null!=e.attr("class")?e.attr("class").match(/rp-carousel-item-\d+/):"";return Repsol.Carousel.getNum(e)},getNumItemsMD:function(e){e=null!=e.attr("class")?e.attr("class").match(/rp-carousel-md-item-\d+/):"";return Repsol.Carousel.getNum(e)},getNum:function(e){e=(e=(null!=e&&0<e.length?e[0]:"1").split("-"))[e.length-1];return parseInt(e)},setMobileDots:function(){for(var e=document.querySelector(".slick-dots"),t=e.children.length;10<e.children.length||e.children.length>t-2;)e.removeChild(e.lastChild)},getAutoPlayTime:function(e){e=null!=e.attr("class")?e.attr("class").match(/rp-carousel-speed-\d+/):"";return Repsol.Carousel.getNum(e)},setActiveAnimation:function(e){e.find(".slick-dots--highlight li button").removeClass("animation-playing"),setTimeout(function(){e.find(".slick-dots--highlight .slick-active button").addClass("animation-playing")},200)},playVideo:function(e){e=e.find(".slick-active");0<e.find("video").length&&(e.find("video").get(0).loop=!0,e.find("video").get(0).play())}},$(document).ready(function(){Repsol.Carousel.init()});
3134var RpAlert={minTime:5e3,timeActuali:1,timeOutReset:null,msgInfo:function(t){RpAlert.addTemplate({type:"rp-warning-info",text:t})},msgCaution:function(t){RpAlert.addTemplate({type:"rp-warning-caution",text:t})},msgOK:function(t,e){RpAlert.addTemplate({type:"rp-warning-success",text:t},e)},msgError:function(t,e,n=null){n&&""!=(n=Repsol.forms.getDelioErrorMessage(n))&&(t+=n),RpAlert.addTemplate({type:"rp-warning-danger",text:t,component:'data-component="sticker error"'},e)},msgOKlarge:function(t,e,n){t={icon:"icon-rp-check",type:"rp-warning-success",title:t.title,text:t.text,linkText:t.linkText,link:t.link};RpAlert.addTemplate(t,e,"large",n)},msgContainer:function(t,e,n,i){t={type:t.type,icon:t.icon,text:t.text};t.close=i?"rp-warning-close":"",RpAlert.addTemplate(t,e,"container",n,i)},addTemplate:function(t,e,n,i,r){var n=RpAlert.getSource(n);null!=n&&(n=Handlebars.compile(n)(t),n=Repsol.utils.decodeHtmlEntities(n),(e&&""!=e?e:$(document).find("body .rp-container:eq(0), body .rp-es-container:eq(0), body.toolbox-principal-page")).prepend(n),null==i&&RpAlert.setTime(),r)&&RpAlert.closeAlertEvent(document.querySelector(".warning-block-alert .rp-close"))},getSource:function(t){switch(t){case"large":return'<div class="rp-warning-float {{this.type}} warning-block-alert" {{this.component}}><section class="warning-component warning"><div class="warning-content large"><div class="block-text"><div class="icon-rp {{this.icon}}"></div><div><div class="rp-title-2">{{this.title}}</div><div class="rp-body-2">{{this.text}}</div></div></div><a class="rp-link" href="{{this.link}}">{{this.linkText}}</div></div></section></div>';case"container":return'<div class="rp-warning-float {{this.type}} {{this.close}} rp-warning-container warning-block-alert" {{this.component}}><section class="warning-component warning"><div class="warning-content"><div class="container"><div class="{{this.icon}}"></div><div class="rp-body-2">{{this.text}}</div><button class="rp-close"></button></div></div></section></div>';default:return'<div class="rp-warning-float {{this.type}} warning-block-alert" {{this.component}}><section class="warning-component warning"><div class="warning-content"><div class="icon-rp {{this.icon}}"></div><div class="rp-body-2">{{this.text}}</div></div></section></div>'}},setTime:function(){var t=RpAlert.minTime*RpAlert.timeActuali,e=(null!=RpAlert.timeOutReset&&clearTimeout(RpAlert.timeOutReset),RpAlert.timeOutReset=setTimeout(function(){RpAlert.resetTime()},t),$(document).find(".warning-block-alert").eq(0));setTimeout(function(){RpAlert.removeAlert(e)},t),RpAlert.timeActuali++},removeAlert:function(t){t.fadeOut(function(){t.remove()})},resetTime:function(){RpAlert.timeActuali=1},closeAlertEvent:t=>{t?.addEventListener("click",t=>{t=t.target.closest(".warning-block-alert");RpAlert.removeAlert($(t))})}};
3135Repsol.page={init:function(){Repsol.page.events(),""===Repsol.utils.getCookie("landingUrl")&&Repsol.utils.setCookie("landingUrl",window.location.href)},events:function(){function s(t,e){t=$(t).parents(e);return t.length?t.find("a").attr("href"):null}$(document).on("click",".rp-tag-new:not(.rp-tag), .rp-tag .rp-tag-text",function(t){t.stopPropagation(),t.preventDefault();var e,t=$(document).find("input[type='hidden'][name='search-topics-page']").val(),i=$(this).text(),n=$(this).parents("a").attr("href")||s(this,".rp-card-component")||s(this,".card-event-component");t&&i&&(e="",e="..."!==i?t+"?topic="+encodeURIComponent(i):n,Repsol.Analytics.clickTag($(this),e),t={content_name:$(this).parents(".rp-card-component").find(".title").text(),link_url:e},LinkClickRomProd.pushData($(this),t),e)&&(i=DOMPurify.sanitize(e),window.location.href=i)})},deleteTags:function(){$(".rp-list-tag").each(function(t){$this=$(this);let e=0,i=Math.min($(this).outerWidth(!0),$(this).width()),n=!1,s=!1;var o=$this.find(".rp-tag-new");1<$(".rp-lubricantes-page").length?1<o.length?o.each(function(t){(e+=$(this).outerWidth(!0))+34>i&&(e-=$(this).outerWidth(!0),s?($(this).remove(),n=!0):(e=0,s=!0))}):o.each(function(t){e+=$(this).outerWidth(!0),n?e+34>i&&(e-=$(this).outerWidth(!0),$(this).remove()):e>i&&(e-=$(this).outerWidth(!0),$(this).remove(),n=!0)}):1<o.length?o.each(function(t){(e+=$(this).outerWidth(!0))+34>i&&(e-=$(this).outerWidth(!0),$(this).remove(),n=!0)}):o.each(function(t){e+=$(this).outerWidth(!0),n?e+34>i&&(e-=$(this).outerWidth(!0),$(this).remove()):e>i&&(e-=$(this).outerWidth(!0),$(this).remove(),n=!0)}),n&&($this.is("ul")?$this.append('<li class="rp-tag-new rp-caption rds-tags rds-tags-default" style="padding:4px 7px">...</li>'):$this.append('<div class="rp-tag-new rp-caption rds-tags rds-tags-default" style="padding:4px 7px"><span>...</span></div>'))})}},$(document).ready(function(){Repsol.page.init()}),$(document).ready(function(){setTimeout(function(){Repsol.page.deleteTags()},1e3)});
3136var Suborigen__c;Repsol.forms={regExpNumberPhone:new RegExp(/^(6|7|8|9)[ -]*([0-9][ -]*){8}$/),regExpNumberMobilePhone:new RegExp(/^(6|7)[ -]*([0-9][ -]*){8}$/),regExpLandlinePhone:new RegExp(/^(8|9)[ -]*([0-9][ -]*){8}$/),regExpEmail:new RegExp(/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/),regString:new RegExp(/^[a-zA-ZàáâäãåąĝćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçĝšžÀÝÂÄÃÅĄĆČĖĘÈÉÊËÌÝÎÝĮŝŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ðœæ ,.'-]+$/),regSimple:new RegExp(/^[ A-Za-zÀ-ÖØ-öø-ÿ0-9,.]*$/),regExpNIF:new RegExp(/^(\d{8})([AaBbCcDdEeFfGgHhJjKkLlMmNnPpQqRrSsTtVvWwXxYyZz])$/),regExpCIF:new RegExp(/^([AaBbCcDdEeFfGgHhJjKkLlMmNnPpQqRrSsUuVvWw])(\d{7})([0-9A-Ja-z])$/),regExpVATPT:new RegExp(/^(PT)(\d{9})$/),regExpVATFR:new RegExp(/^(FR)(\d{11})$/),regExpNIE:new RegExp(/^[XxTtYyZz]{1}[0-9]{7}[a-zA-Z]{1}$/),regExpPass:new RegExp(/^(?=.*\d)(?=.*[A-Z])(?!.*[^a-zA-Z0-9])(?!.*[^a-zA-ZÀ-ÿ-Z0-9*-+)(><}{¿!?¡|ºª=$%·@"'^_;:,.])(.{5,8})$/),regExpPostalCode:new RegExp(/^[0-9]{5}$/),RegExpCUp:new RegExp(/^ES[0-9]{16}[a-zA-Z]{2}[0-9]{0,1}[a-zA-Z]{0,1}$/),RegExpDate:new RegExp(/^\d{1,2}\-\d{1,2}\-\d{4}$/),RegExpBirthdate:new RegExp(/^\d{1,2}\/\d{1,2}\/\d{4}$/),RegExpHour:new RegExp(/^([0-1][0-9]|2[0-3])(:)([0-5][0-9])(:)([0-5][0-9])$/),RegExpDecimalNumber:new RegExp(/^[0-9]+([\\,|.])?([0-9]{1,2})?$/),regExpNumberPhonePT:new RegExp(/^(2|9)[ -]*([0-9][ -]*){8}$/),regExpIdPT:new RegExp(/^(\d{9})$/),regExpGasStationCodePT:new RegExp(/^(P|E)(\d{4})$/),regExpMemberNumberPT:new RegExp(/^\d{1,6}$/),regExpMemberNumber2PT:new RegExp(/^\d{1}$/),regExpMemberPortoPT:new RegExp(/^\d{1,6}$/),regExpCartao:new RegExp(/^(789698118|789698119)(\d{10})$/),regExpPassword:new RegExp(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)([A-Za-z\d;:,._=\-+$@$!¡%*¿?&()}{><]|[^])/),regExpPhoneMobilePT:new RegExp(/^(9)[ -]*([0-9][ -]*){8}$/),regExpFirstSixNumbersCard:new RegExp(/^\d{6}$/),regExpLicensePlateNumber:new RegExp(/^[0-9]{4}[BCDFGHJKLMNPRSTVWXYZ]{3}$/),commercesList:[],init:function(){Repsol.utils.setParamUtm();var r=document.referrer,a=""!=window.sf_reyg_source?window.sf_reyg_source:window.utm_Source;window.originCode=null==window.originCode?Repsol.forms.resolveOriginCode(a,r):window.originCode,window.subOriginCodes=Repsol.forms.resolveSubOrigin(a,r),$(document).on("blur","input[name='name'], input[name='name-contact-person']",function(){Repsol.forms.validate.InputName($(this)),$(this).trigger("validated_field")}),$(document).on("blur","input[name='surname'], input[name='surname-contact-person'], input[name='surname-2']",function(){Repsol.forms.validate.InputSurname($(this)),$(this).trigger("validated_field")}),$(document).on("blur","input[name='email']:not(.PT), input[name='email-business']",function(){Repsol.forms.validate.InputEmail($(this))}),$(document).on("blur","input[name='phone']:not(.header-call-phone):not(.floating-inpunt-phone):not(.phone-hero-input):not(.phone-not-required):not(.phone-Pt), input[name='phone-business']",function(){Repsol.forms.validate.InputPhone($(this))}),$(document).on("blur","input[name='phoneES']",function(){Repsol.forms.validate.InputPhone($(this))}),$(document).on("blur","input.document-number-identification[name='document-number
3136ES']",function(){Repsol.forms.validate.InputDocumentNumberES($(this))}),$(document).on("blur","input.document-number-identification[name='document-number']",function(){Repsol.forms.validate.InputDocumentNumberES($(this))}),$(document).on("change","input[name='accept-policy'], input[name='cesion-policy'], input[name='cesion-eroski-policy'], input[name='digital-invoice-policy'], input[name='policy-cesion-profile'], input[name='policy-cesion-consent']",function(){Repsol.forms.validate.CheckLegal($(this))}),$(document).on("blur","input[name='postal-code']",function(){Repsol.forms.validate.InputPostalCode($(this))}),$(document).on("blur","input[name='company']",function(){Repsol.forms.validate.InputCompany($(this))}),$(document).on("blur",".dropdown.mode-select .dropdown-toggle:not([data-validation])",function(){Repsol.forms.validate.SelectedDropdown($(this))}),$(document).on("rp-change",".dropdown.mode-select .dropdown-toggle:not([data-validation])",function(){Repsol.forms.validate.SelectedDropdown($(this))}),$(document).on("blur","input[name='agencyName']",function(){Repsol.forms.validate.InputAgency($(this))}),$(document).on("blur","input[name='zone']",function(){Repsol.forms.validate.InputZone($(this))}),$(document).on("blur","input[name='road-name']",function(){Repsol.forms.validate.InputRoadName($(this))}),$(document).on("blur","input[name='road-number']",function(){Repsol.forms.validate.InputRoadNumber($(this))}),$(document).on("blur","input[name='name-business']",function(){Repsol.forms.validate.InputBusinessName($(this))}),$(document).on("blur","input[name='city']",function(){Repsol.forms.validate.InputCity($(this))}),$(document).on("blur","input[name='birth-date']",function(){Repsol.forms.validate.InputBirthDate($(this))}),$(document).on("blur","input[name='nationality']",function(){Repsol.forms.validate.InputNationality($(this))}),$(document).on("blur","input[name='town']",function(){Repsol.forms.validate.InputTown($(this))}),$(document).on("blur","input[name='province']",function(){Repsol.forms.validate.InputProvince($(this))}),$(document).on("blur","input[name='hour']",function(){Repsol.forms.validate.InputHour($(this))}),$(document).on("blur","input[name='operation-number']",function(){Repsol.forms.validate.InputOperationNumber($(this))}),$(document).on("blur","input[name='id']",function(){Repsol.forms.validate.InputIdTicket($(this))}),$(document).on("blur","input[name='commerce']",function(){Repsol.forms.validate.InputCommerce($(this))}),$(document).on("blur","input[name='amount']",function(){Repsol.forms.validate.InputAmount($(this))}),$(document).on("blur","input[name='fich-rem']",function(){Repsol.forms.validate.InputFichRem($(this))}),$(document).on("blur","input[name='date']",function(){Repsol.forms.validate.InputDate($(this))}),$(document).on("blur","input[name='phonePT']",function(){Repsol.forms.validate.InputPhonePT($(this))}),$(document).on("blur","input[name='document-numberPT']",function(){Repsol.forms.validate.InputIdPT($(this))}),$(document).on("blur","input[name='gasStationCode']",function(){Repsol.forms.validate.InputGasStationCodePT($(this))}),$(document).on("blur","input[name='member-number']",function(){$memberOposite=$
3136(this).closest(".form-ecommerce-fields").find("input[name='member-number-2']"),Repsol.forms.validate.InputMemberNumberPT($(this),$memberOposite)}),$(document).on("blur","input[name='member-number-2']",function(){$memberOposite=$(this).closest(".form-ecommerce-fields").find("input[name='member-number']"),Repsol.forms.validate.InputMemberNumber2PT($(this),$memberOposite)}),$(document).on("blur","input[name='member-porto']",function(){Repsol.forms.validate.InputMemberPortoPT($(this))}),$(document).on("blur","input[name='cartao-number']",function(){Repsol.forms.validate.InputCartaoAgea($(this))}),$(document).on("change","input[id='showRepsolClient-si'], input[id='showRepsolClient-no'] ",function(){Repsol.forms.validate.Ask()}),$(document).on("blur","input[name='phonePeru']",function(){Repsol.forms.validate.inputPhonePeru($(this))}),$(document).on("blur","input[name='card-six-numbers']",function(){Repsol.forms.validate.InputSixFirstNumbersCard($(this))}),$(document).on("blur","input[name='group']",function(){Repsol.forms.validate.InputRequired($(this))}),$(document).on("blur","input[name='group-code']",function(){Repsol.forms.validate.InputRequired($(this))}),$(document).on("blur","input",function(){""!==this.value.trim()?this.classList.add("filled"):this.classList.contains("filled")&&this.classList.remove("filled")})},validate:{Ask:function(){var r=$("#showRepsolClient-si"),a=$("#showRepsolClient-no");r[0].checked?(r.attr("data-status",!0),a.attr("data-status",!1),$(".error-msg-required.ask").addClass("d-none")):a[0].checked?(r.attr("data-status",!1),a.attr("data-status",!0),$(".error-msg-required.ask").addClass("d-none")):($(".error-msg-required.ask").removeClass("d-none"),r.attr("data-status",!1),a.attr("data-status",!1))},InputName:function(r,a=!0){r.attr("data-status",!1);var e=r.closest(".cmp-form");e.find(".error-msg-required").addClass("d-none"),e.find(".error-msg-format").addClass("d-none"),e.find(".error-msg").removeAttr("role"),r.attr("aria-describedby",e.find(".error-msg-required").attr("id")),Repsol.forms.validateFilledInput(r)||!a?(r.attr("data-status",!0),r.attr("aria-invalid",!1),e.addClass("valid"),e.removeClass("error"),e.find(".error-msg-required").addClass("d-none"),e.find(".error-msg-required").removeAttr("role"),r.attr("data-error-description-analytics",null),Repsol.forms.validateString(r)||!a&&0==r.val().trim()?(r.attr("data-status",!0),r.attr("aria-invalid",!1),e.addClass("valid"),e.removeClass("error"),e.find(".error-msg-format").addClass("d-none"),e.find(".error-msg-format").removeAttr("role")):(r.attr("data-status",!1),r.attr("aria-invalid",!0),e.removeClass("valid"),e.find(".error-msg-format").removeClass("d-none"),e.find(".error-msg-format").attr("role","alert"),r.attr("aria-describedby",e.find(".error-msg-format").attr("id")),e.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),r.attr("aria-invalid",!0),e.removeClass("valid"),e.find(".error-msg-required").removeClass("d-none"),e.find(".error-msg-required").attr("role","alert"),r.attr("aria-describedby",e.find(".error-msg-required").attr("id")),e.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-required")))},InputSurname:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateString(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputEmail:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),a.find(".error-msg").removeAttr("role"),r.attr("aria-describedby",a.find(".error-msg-required").attr("id")),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),r.attr("aria-invalid",!1),a.addClass("val
3136id"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-required").removeAttr("role"),r.attr("data-error-description-analytics",null),Repsol.forms.validateEmail(r)?(r.attr("data-status",!0),r.attr("aria-invalid",!1),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none"),a.find(".error-msg-format").removeAttr("role")):(r.attr("data-status",!1),r.attr("aria-invalid",!0),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.find(".error-msg-format").attr("role","alert"),r.attr("aria-describedby",a.find(".error-msg-format").attr("id")),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),r.attr("aria-invalid",!0),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.find(".error-msg-required").attr("role","alert"),r.attr("aria-describedby",a.find(".error-msg-required").attr("id")),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputPhone:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validatePhoneNumber(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputPhonePT:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validatePhoneNumberPT(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},inputPhonePeru:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validatePhonePeru(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputPhoneMobilePT:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validatePhoneNumberMobilePT
3136(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputMobilePhone:function(r,a=!0){r.attr("data-status",!1);var e=r.closest(".cmp-form");e.find(".error-msg").addClass("d-none"),e.find(".error-msg").removeAttr("role"),Repsol.forms.validateFilledInput(r)||!a?(r.attr("data-status",!0),r.attr("aria-invalid",!1),e.addClass("valid"),e.removeClass("error"),e.find(".error-msg-required").addClass("d-none"),e.find(".error-msg-required").removeAttr("role"),r.attr("aria-describedby",e.find(".error-msg-required").attr("id")),r.attr("data-error-description-analytics",null),Repsol.forms.validateMobilePhoneNumber(r)||!a&&0==r.val().trim().length?(r.attr("data-status",!0),r.attr("aria-invalid",!1),e.addClass("valid"),e.removeClass("error"),e.find(".error-msg-format").addClass("d-none"),e.find(".error-msg-format").removeAttr("role")):(r.attr("data-status",!1),r.attr("aria-invalid",!0),e.removeClass("valid"),e.addClass("error"),e.find(".error-msg-mobile-phone-format").removeClass("d-none"),e.find(".error-msg-mobile-phone-format").attr("role","alert"),r.attr("aria-describedby",e.find(".error-msg-mobile-phone-format").attr("id")))):(r.attr("data-status",!1),r.attr("aria-invalid",!0),e.removeClass("valid"),e.find(".error-msg-required").removeClass("d-none"),e.find(".error-msg-required").attr("role","alert"),r.attr("aria-describedby",e.find(".error-msg-required").attr("id")),e.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},CheckLegal:function(r){var a=r.closest(".cmp-form"),e=!("true"===a.find("[data-disabled-check]").attr("data-disabled-check"));!e||Repsol.forms.validateCheck(r)?(r.attr("data-status",!0),a.find(".error-msg-required").addClass("d-none"),a.removeClass("error"),r.attr("data-error-description-analytics",null)):(r.attr("data-status",!1),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputPostalCode:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validatePostalCode(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputCUPS:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateCupsRegex(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputIBAN:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("val
3136id"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateIbanRegex(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputDocumentNumber:function(r){var a=r.$typeDocObj?r.$typeDocObj.attr("data-value"):"DNI",e=r.$numberDocObj,t=(e.attr("data-status",!1),e.closest(".cmp-form"));if(t.find(".error-msg-required").addClass("d-none"),t.find(".error-msg-format").addClass("d-none"),t.find(".error-msg-not-match-cups").addClass("d-none"),Repsol.forms.validateFilledInput(e))switch(e.attr("data-status",!0),t.addClass("valid"),t.removeClass("error"),t.find(".error-msg-required").addClass("d-none"),t.find(".error-msg-format").addClass("d-none"),a){case"DNI":Repsol.forms.validateNIF(e)?(e.attr("data-status",!0),t.addClass("valid"),t.removeClass("error"),t.find(".error-msg-format-dni").addClass("d-none")):(e.attr("data-status",!1),t.removeClass("valid"),t.find(".error-msg-format-dni").removeClass("d-none"),t.addClass("error"));break;case"NIE":Repsol.forms.validateNIE(e)?(e.attr("data-status",!0),t.addClass("valid"),t.removeClass("error"),t.find(".error-msg-format-nie").addClass("d-none")):(e.attr("data-status",!1),t.removeClass("valid"),t.find(".error-msg-format-nie").removeClass("d-none"),t.addClass("error"));break;case"CIF":Repsol.forms.validateCIF(e)?(e.attr("data-status",!0),t.addClass("valid"),t.removeClass("error"),t.find(".error-msg-format-cif").addClass("d-none")):(e.attr("data-status",!1),t.removeClass("valid"),t.find(".error-msg-format-cif").removeClass("d-none"),t.addClass("error"));break;case"PASS":Repsol.forms.validatePassport(e.val())?(e.attr("data-status",!0),t.addClass("valid"),t.removeClass("error"),t.find(".error-msg-format-pass").addClass("d-none")):(e.attr("data-status",!1),t.removeClass("valid"),t.find(".error-msg-format-pass").removeClass("d-none"),t.addClass("error"));break;case"DNI-PE":new RegExp(/^\d{8}$/).test(e.val())?(e.attr("data-status",!0),t.addClass("valid"),t.removeClass("error"),t.find(".error-msg-format-dni").addClass("d-none")):(e.attr("data-status",!1),t.removeClass("valid"),t.find(".error-msg-format-dni").removeClass("d-none"),t.addClass("error"));break;case"RUC":Repsol.forms.validateRUC(e)?(e.attr("data-status",!0),t.addClass("valid"),t.removeClass("error"),t.find(".error-msg-format-ruc").addClass("d-none")):(e.attr("data-status",!1),t.removeClass("valid"),t.find(".error-msg-format-ruc").removeClass("d-none"),t.addClass("error"));break;case"CE":new RegExp(/^[a-zA-Z0-9]{8,12}$/).test(e.val())?(e.attr("data-status",!0),t.addClass("valid"),t.removeClass("error"),t.find(".error-msg-format-ce").addClass("d-none")):(e.attr("data-status",!1),t.removeClass("valid"),t.find(".error-msg-format-ce").removeClass("d-none"),t.addClass("error"))}else e.attr("data-status",!1),t.removeClass("valid"),t.find(".error-msg-required").removeClass("d-none"),t.addClass("error")},InputDocumentNumberES:function(r,a=!0){r.attr("data-status",!1);var e=r.closest(".cmp-form");e.find(".error-msg-required").addClass("d-none"),e.find(".error-msg-format").addClass("d-none"),e.find(".error-msg").removeAttr("role"),Repsol.forms.validateFilledInput(r)||!a?(r.attr("data-status",!0),r.attr("aria-invalid",!1),e.addClass("valid"),e.removeClass("error"),e.find(".error-msg-required").addClass("d-none"),e.find(".error-msg-required").removeAttr("role"),r.attr("aria-describedby",e.find(".error-msg-required").attr("id")),Repsol.forms.validateNIF(r)||Repsol.forms.validateNIE(r)||Repsol.forms.validateCIF(r)||!a&&0==r.val().trim().length?(r.attr("data-status",!0),r.attr("aria-invalid",!1),e.addClass("valid"),e.removeClass("error"),e.find(".error-msg-format").addClass("d-none"),e.find(".error-msg-format").removeAttr("role")):(r.attr("data-status",!1),r.attr("aria-invalid",!0),e.removeClass("valid"),e.find(".error-msg-format").removeClass("d-none"),e.find(".error-msg-format").attr("role","alert"),r.attr("aria-describedby",e.find(".error-msg-format").attr("id")),e.addClass("error"))):(r.attr("data-status",!1),r.attr("aria-invalid",!0),e.removeClass("val
3136id"),e.find(".error-msg-required").removeClass("d-none"),e.find(".error-msg-required").attr("role","alert"),r.attr("aria-describedby",e.find(".error-msg-required").attr("id")),e.addClass("error"))},inputDocumentNumberRUC:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");r.val();a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),a.find(".error-msg-not-match-cups").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateRUC(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputIdPT:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validateIdPT(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputGasStationCodePT:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validateGasStationCodePT(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputMemberNumberPT:function(r,a){r.attr("data-status",!1);var e=r.closest(".cmp-form");e.find(".error-msg-required").addClass("d-none"),e.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)&&Repsol.forms.validateFilledInput(a)?(r.attr("data-status",!0),e.addClass("valid"),e.find(".error-msg-required").addClass("d-none"),e.removeClass("error"),r.attr("data-error-description-analytics",null),Repsol.forms.validateMemberNumberPT(r)&&Repsol.forms.validateMemberNumber2PT(a)?(r.attr("data-status",!0),e.addClass("valid"),e.find(".error-msg-format").addClass("d-none"),e.removeClass("error")):(r.attr("data-status",!1),e.removeClass("valid"),e.find(".error-msg-validate").addClass("d-none"),e.find(".error-msg-format").removeClass("d-none"),e.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),e.removeClass("valid"),e.find(".error-msg-validate").addClass("d-none"),e.find(".error-msg-required").removeClass("d-none"),e.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputMemberNumber2PT:function(r,a){r.attr("data-status",!1);var e=r.closest(".cmp-form");e.find(".error-msg-required").addClass("d-none"),e.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)&&Repsol.forms.validateFilledInput(a)?(r.attr("data-status",!0),e.addClass("val
3136id"),e.find(".error-msg-required").addClass("d-none"),e.removeClass("error"),r.attr("data-error-description-analytics",null),Repsol.forms.validateMemberNumber2PT(r)&&Repsol.forms.validateMemberNumberPT(a)?(r.attr("data-status",!0),e.addClass("valid"),e.find(".error-msg-format").addClass("d-none"),e.removeClass("error")):(r.attr("data-status",!1),e.removeClass("valid"),e.find(".error-msg-validate").addClass("d-none"),e.find(".error-msg-format").removeClass("d-none"),e.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),e.removeClass("valid"),e.find(".error-msg-validate").addClass("d-none"),e.find(".error-msg-required").removeClass("d-none"),e.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputMemberPortoPT:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),r.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validateMemberPortoPT(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputCartaoAgea:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),r.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validateCartaoAgea(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputCompany:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},SelectedDropdown:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validateSelectedDropdown(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputAgency:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputZone:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("val
3136id"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputContactPerson:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputRoadName:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputRoadNumber:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputBusinessName:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputCity:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputBirthDate:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-format").addClass("d-none"),a.find(".error-msg-adult").addClass("d-none"),Repsol.forms.validateBirthDay(r)?(r.attr("data-status",!0),r.attr("data-adult",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none"),a.find(".error-msg-adult").addClass("d-none")):("adult"==r.attr("data-adult")?(console.log("is adult"),r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.find(".error-msg-adult").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").addClass("d-none"),a.find(".error-msg-adult").removeClass("d-none")),a.addClass("error"))},InputNationality:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateString(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputTown:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("val
3136id"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputProvince:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputHour:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateHour(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.addClass("error"),a.find(".error-msg-format").removeClass("d-none"))},InputCommerce:function(a){a.attr("data-status",!1);var e=a.closest(".cmp-form");e.find(".error-msg-required").addClass("d-none"),e.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(a)?(a.attr("data-status",!0),e.addClass("valid"),e.removeClass("error"),e.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateCommerce(a).then(r=>{a.attr("data-status",!0),e.addClass("valid"),e.removeClass("error"),e.find(".error-msg-format").addClass("d-none")}).catch(r=>{a.attr("data-status",!1),e.removeClass("valid"),e.find(".error-msg-format").removeClass("d-none"),e.addClass("error")})):(a.attr("data-status",!1),e.removeClass("valid"),e.find(".error-msg-required").removeClass("d-none"),e.addClass("error"))},InputAmount:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateDecimalNumber(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputFichRem:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputDate:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateDate(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.addClass("error"),a.find(".error-msg-format").removeClass("d-none"))},InputOperationNumber:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputIdTicket:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"))},InputPassword:function(r,a){r.attr("data-status",!1);var e=r.closest(".cmp-form");e.find(".error-msg-required").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),e.addClass("val
3136id"),e.removeClass("error"),e.find(".error-msg-required").addClass("d-none"),a&&(Repsol.forms.validatePassword(r)?(r.attr("data-status",!0),e.addClass("valid"),e.removeClass("error")):(r.attr("data-status",!1),e.removeClass("valid"),e.find(".error-msg-format").removeClass("d-none"),e.addClass("error")))):(r.attr("data-status",!1),e.removeClass("valid"),e.find(".error-msg-required").removeClass("d-none"),e.find(".error-msg-format").addClass("d-none"),e.addClass("error"))},InputReviewName:function(r){Repsol.forms.validate.InputRequired(r);var a=r.closest(".cmp-form");"true"==r.attr("data-status")&&(Repsol.forms.validateString(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error")))},InputRequired:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg").addClass("d-none"),a.find(".error-msg").removeAttr("role"),r.attr("aria-describedby",a.find(".error-msg-required").attr("id")),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),r.attr("aria-invalid",!1),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-required").removeAttr("role"),Repsol.forms.validateMaxLengthInput(r)?(r.attr("data-status",!0),r.attr("aria-invalid",!1),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-maxlength")?.addClass("d-none"),a.find(".error-msg-maxlength")?.removeAttr("role")):(r.attr("data-status",!1),r.attr("aria-invalid",!0),a.removeClass("valid"),a.find(".error-msg-maxlength").text(a.find(".error-msg-maxlength").text().replace("{0}",r.attr("maxlength"))),a.find(".error-msg-maxlength").text().replace("{0}",r.attr("maxlength")),a.find(".error-msg-maxlength").removeClass("d-none"),a.find(".error-msg-maxlength").attr("role","alert"),r.attr("aria-describedby",a.find(".error-msg-maxlength").attr("id")),a.addClass("error"))):(r.attr("data-status",!1),r.attr("aria-invalid",!0),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.find(".error-msg-required").attr("role","alert"),r.attr("aria-describedby",a.find(".error-msg-required").attr("id")),a.addClass("error"))},InputRating:function(r){var a=r?r[0].closest(".cmp-form"):"";a?.setAttribute("data-status",!1),a?.querySelector(".error-msg-required").classList.add("d-none");let e=!1;r.forEach(r=>{if(r.checked)return!(e=!0)}),e?(a?.setAttribute("data-status",!0),a?.classList.add("valid"),a?.classList.remove("error")):(a?.setAttribute("data-status",!1),a?.classList.remove("valid"),a?.querySelector(".error-msg-required").classList.remove("d-none"),a?.classList.add("error"))},InputSixFirstNumbersCard(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validateFirstSixCardNumbers(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-req")))},InputLicensePlateNumber:function(r){r.attr("data-status",!1);var a=r.closest(".cmp-form");a.find(".error-msg-required").addClass("d-none"),a.find(".error-msg-format").addClass("d-none"),Repsol.forms.validateFilledInput(r)?(r.attr("data-status",!0),a.addClass("valid"),a.removeClass("error"),a.find(".error-msg-required").addClass("d-none"),r.attr("data-error-description-analytics",null),Repsol.forms.validateLicensePlateNumber(r)?(r.attr("data-status",!0),a.addClass("val
3136id"),a.removeClass("error"),a.find(".error-msg-format").addClass("d-none")):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-format").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-format")))):(r.attr("data-status",!1),a.removeClass("valid"),a.find(".error-msg-required").removeClass("d-none"),a.addClass("error"),r.attr("data-error-description-analytics",r.attr("data-msg-error-required")))}},validateFilledInput:function(r){return 0<r.val().trim().replace(/\s+/g," ").length},validateRequiredFiles:function(r){r=null!=r&&1<=r.length;return r},validateSelectedDropdown:function(r){return"0"!=r.attr("data-value")&&0!=r.attr("data-value")&&""!=r.attr("data-value")},validateString:function(r){return Repsol.forms.regString.test(r.val())},validateSimple:function(r){return Repsol.forms.regSimple.test(r.val())},validatePhoneNumber:function(r){return Repsol.forms.regExpNumberPhone.test(r.val())},validateFirstSixCardNumbers:function(r){return Repsol.forms.regExpFirstSixNumbersCard.test(r.val())},validatePhoneNumberPT:function(r){return Repsol.forms.regExpNumberPhonePT.test(r.val())},validatePhoneNumberMobile:function(r){return Repsol.forms.regExpNumberPhoneMobile.test(r.val())},validatePhoneNumberMobilePT:function(r){return Repsol.forms.regExpPhoneMobilePT.test(r.val())},validateMobilePhoneNumber:function(r){return Repsol.forms.regExpNumberMobilePhone.test(r.val())},validateEmail:function(r){return Repsol.forms.regExpEmail.test(r.val())},validateNIF:function(r){var a,r=r.val();return!!Repsol.forms.regExpNIF.test(r)&&(a=r.substr(0,r.length-1),r=r.substr(r.length-1,1),"TRWAGMYFPDXBNJZSQVHLCKET".substring(a%=23,1+a)==r.toUpperCase())},validateNIE:function(r){var a,r=r.val().toUpperCase();return!!Repsol.forms.regExpNIE.test(r)&&(a=(a=(a=(a=r.substr(0,r.length-1)).replace("X",0)).replace("Y",1)).replace("Z",2),r=r.substr(r.length-1,1),"TRWAGMYFPDXBNJZSQVHLCKET".substring(a%=23,a+1)==r.toUpperCase())},validateCIF:function(r){r=r.val();if(Repsol.forms.regExpCIF.test(r)){var a=r.substr(1,r.length-2),e=0;for(i=1;i<a.length;i+=2)e+=parseInt(a.substr(i,1));var t=0;for(i=0;i<a.length;i+=2){var s=2*parseInt(a.substr(i,1));1==String(s).length?t+=parseInt(s):t=t+parseInt(String(s).substr(0,1))+parseInt(String(s).substr(1,1))}e+=t;var d=10-parseInt(String(e).substr(1,1)),o=r.substr(0,1).toUpperCase();return o.match(/^[KNPQRSW]$/)?String.fromCharCode(64+d).toUpperCase()==r.substr(r.length-1,1).toUpperCase():!!o.match(/^[ABCDEFGHLMUJV]$/)&&(10==d&&(d=0),r.substr(r.length-1,1)==String(d))}return!1},validateRUC:function(r){return Repsol.forms.compilePattern(/^\d{11}$/,r.val())},validatePhonePeru:function(r){return Repsol.forms.compilePattern(/^\d{7}(\d{2})?$/g,r.val())},compilePattern:function(r,a){return r.test(a)},validatePass:function(r){Repsol.forms.regExpPass.test(r)},validateIdPT:function(r){return Repsol.forms.regExpIdPT.test(r.val())},validateGasStationCodePT:function(r){return Repsol.forms.regExpGasStationCodePT.test(r.val())},validateMemberNumberPT:function(r){return Repsol.forms.regExpMemberNumberPT.test(r.val())},validateMemberNumber2PT:function(r){return Repsol.forms.regExpMemberNumber2PT.test(r.val())},validateMemberPortoPT:function(r){return Repsol.forms.regExpMemberPortoPT.test(r.val())},validateCartaoAgea:function(r){return Repsol.forms.regExpCartao.test(r.val())},validateCheck:function(r){return r.is(":checked")},validatePostalCode:function(r){return Repsol.forms.regExpPostalCode.test(r.val())},validateCupsElectricity:function(r){var a,e,t,s,d,o,r=r.val().toUpperCase();return!(!new RegExp(/^ES[0-9]{16}[a-zA-Z]{2}[0-9]{0,1}[a-zA-Z]{0,1}$/).test(r)||(a=r.substring(0,2),d=r.substring(2,18),e=r.substring(18,19),t=r.substring(19,20),s=r.substring(20,22),d=new BigNumber(d).mod(529),(o=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"])[parseInt(d/23)]!==e)||o[d%23]!==t||"ES"!==a||(s?"ES0022"===r.substring(0,6)&&"1P"!==s:"ES0021"!==r.substring(0,6)&&"ES0022"!==r.substring(0,6)&&"ES00"!==r.substring(0,4)))},validateCupsGas:function(r){var a,e,t,s,r=r.val().toUpperCase();return!!new RegExp(/^ES[0-9]{16}[a-zA-Z]{2}$/).test(r)&&(a=r.substring(0,2),t=r.substring(2,18),e=r.substring(18,19),r=r.substring(19,20),t=new BigNumber(t).mod(529),(s=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"])[parseInt(t/23)]===e)&&s[t%23]===r&&"ES"===a},validateCupsRegex:function(r){return Repsol.forms.validateCupsElectricity(r)||Repsol.forms.validateCupsGas(r)}
3136,validateIbanRegex:function(r){r.val(),Math.fmod=function(r,a){return Number((r-Math.floor(r/a)*a).toPrecision(8))};var r=r.val().toUpperCase().replace(/[^A-Z0-9]/g,""),a=r.match(/^([A-Z]{2})(\d{2})([A-Z\d]+)$/);if(!a||r.length!=={AD:24,AE:23,AT:20,AZ:28,BA:20,BE:16,BG:22,BH:22,BR:29,CH:21,CY:28,CZ:24,DE:22,DK:18,DO:28,EE:20,ES:24,FI:18,FO:18,FR:27,GB:22,GI:23,GL:18,GR:27,GT:28,HR:21,HU:28,IE:22,IL:23,IS:26,IT:27,JO:30,KW:30,KZ:20,LB:28,LI:21,LT:20,LU:20,LV:21,MC:27,MD:24,ME:22,MK:19,MR:27,MT:31,MU:30,NL:18,NO:15,PK:24,PL:28,PS:29,PT:25,QA:29,RO:24,RS:22,SA:24,SE:24,SI:19,SK:24,SM:27,TN:24,TR:26,AL:28,BY:28,CR:22,EG:29,GE:22,IQ:23,LC:32,SC:31,ST:25,SV:28,TL:23,UA:29,VA:22,VG:24,XK:20}[a[1]])return!1;for(var e,t=(a[3]+a[1]+a[2]).replace(/[A-Z]/g,function(r){return r.charCodeAt(0)-55}),s=t.slice(0,2),d=2;d<t.length;d+=7)e=String(s)+t.substring(d,d+7),s=parseInt(e,10)%97;return s},validateDNI:function(r){return r=r.toUpperCase(),"TRWAGMYFPDXBNJZSQVHLCKE".charAt(parseInt(r,10)%23)==r.charAt(8)},validatePassport:a=>[r=>/^[A-Za-z0-9]{1,9}$/.test(r),r=>!/^(.)\1*$/.test(r),r=>!/^[XYZ][0-9]{7}[A-Za-z]$/.test(r),r=>!/^[0-9]{8}[A-Za-z]$/.test(r),r=>[...r].some((r,a,e)=>a<e.length-1&&1!==Math.abs(r.charCodeAt()-e[a+1].charCodeAt())),r=>4<[...new Set([...r.split("")])].length].every(r=>r(a)),validateMailSolmatch:function(r){return Repsol.forms.regExpEmail.test(r)},validateBirthDay:function(r){var a,e,t,s,d,o=r.val().split("-").reverse().join("/");o.split("-").reverse().join("-");return!Repsol.forms.RegExpBirthdate.test(o)||(o=o.split("/"),a=parseInt(o[0],10),e=parseInt(o[1],10),o=parseInt(o[2],10),t=(new Date).getFullYear(),d=new Date,s=new Date(o+18,e-1,a),o<1900)||t<o||0==e||12<e?(r.attr("data-adult","adult"),!1):d<=s&&o<=t?(r.attr("data-adult","notadult"),!1):(d=[31,28,31,30,31,30,31,31,30,31,30,31],(o%400==0||o%100!=0&&o%4==0)&&(d[1]=29),0<a&&a<=d[e-1])},validateMaxLengthInput:r=>{var a=r.attr("maxlength");return!a||r.val().trim().replace(/\s+/g," ").length<=a},resolveSubOrigin:function(r,a){let e;var t;return null!=a&&""!==a.trim()&&(t=a.toLowerCase(),/google.(com|es)/.test(t)?e=subOriginCodes.google:/bing.com/.test(t)?e=subOriginCodes.bing:/repsol.(com|es)/.test(t)||(e=a)),e},resolveOriginCode:function(r,a){let e;return e=""!=r&&null!=r?Repsol.forms.resolveOriginCodeFromUtmSource(r):Repsol.forms.resolveOriginCodeFromReferrer(a)},resolveOriginCodeFromUtmSource:function(r){let a=null;var e;return null!=r&&""!=r&&(Repsol.forms.isValidUTMPattern(r)?(e=r.match(utmOriginCodePattern)[0],e=parseInt(e.replace("SF_","")),null!=(r=r.split("_"))[1]?(a=r[1],null!=r[2]&&(Suborigen__c=r[2])):a=e):a=originCodes.unknownOrigin),a},isValidUTMPattern:function(r){return utmPattern.test(r)},resolveOriginCodeFromReferrer:function(r){let a=null,e;return a=null!=r&&""!==r.trim()?(e=r.toLowerCase(),/repsol.(com|es)/.test(e)?originCodes.organicRepsol:(/google.(com|es)/.test(e)||/bing.com/.test(e),originCodes.organic)):originCodes.direct},validateDate:function(r){var a,e,t,r=r.val().split("-").reverse().join("-");return!!Repsol.forms.RegExpDate.test(r)&&(r=r.split("-"),a=parseInt(r[0],10),e=parseInt(r[1],10),t=[31,28,31,30,31,30,31,31,30,31,30,31],((r=parseInt(r[2],10))%4
313600==0||r%100!=0&&r%4==0)&&(t[1]=29),0<a)&&a<=t[e-1]},validateLengthPhone:function(r,a){r.value.length>a&&(r.value=r.value.slice(0,a))},validateHour:function(r){return Repsol.forms.RegExpHour.test(r.val())},validateDecimalNumber:function(r){return Repsol.forms.RegExpDecimalNumber.test(r.val())},validateCommerce:function(t){return new Promise(function(a,e){var r;0<Repsol.forms.commercesList.length?Repsol.forms.isValidCommerce(t)?a(!0):e(!1):""!=(r=0<$("#jsonCommercePath").length?$("#jsonCommercePath").text():"")?$.ajax({url:r,type:"GET",contentType:"application/json",dataType:"json",success:function(r){!r||!r.comercios||(Repsol.forms.commercesList=r.comercios,Repsol.forms.isValidCommerce(t))?a(!0):e(!1)},error:function(){a(!0)}}):a(!0)})},validatePassword:function(r){r=r.val();return 8<=r.length&&Repsol.forms.regExpPassword.test(r)},validateLicensePlateNumber:function(r){return Repsol.forms.regExpLicensePlateNumber.test(r.val()?.toUpperCase())},isValidCommerce:function(r){for(var a,r=r.val(),e=((0<r.indexOf("-")||0<r.indexOf(" "))&&(a=0<r.indexOf("-")?r.indexOf("-"):0<r.indexOf(" ")?r.indexOf(" "):r.length,r=r.substring(0,a)),RepsolEcommerce.utils.zeroFill(r,9)),t=Repsol.forms.commercesList,s=0;s<t.length;s++){var d=t[s].id||"";if(""!=d&&d==e)return!0}return!1},addDataIntoObject:function(e,r){var a;return a=e,"[object Object]"!==Object.prototype.toString.call(a)&&(e=JSON.parse(e)),Object.entries(r).forEach(([r,a])=>{e[r]=a}),e},addConversionProps:function(t){var r,a=Repsol.utils.getCookie("gclid"),e=Repsol.utils.getCookie("_fbc"),s=Repsol.utils.getCookie("_fbp"),d=Repsol.utils.getCookie("msclkid");return r=t,"[object Object]"!==Object.prototype.toString.call(r)&&(t=JSON.parse(t)),null!==a&&0<a.length&&(t.Google_GLID__c=a),null!==e&&0<e.length&&(t.Facebook_FBC__c=e),null!==s&&0<s.length&&(t.Facebook_FBP__c=s),null!==d&&0<d.length&&(t.Bing_MCID__c=d),Object.entries({campaign_id:"cro_campaign_id__cc",campaign_name:"cro_campaign_name__cc",experience_name:"cro_experience_name__cc"}
3136).forEach(([a,r])=>{var e;dataLayer&&void 0!==(e=dataLayer.find(r=>{if(r)return r.hasOwnProperty(a)}))&&(e=e[a])&&(t[r]=e)}),t},setDataLayerPropsStorage:function(){Repsol.utils.getKeyValuesFromObject(["campaign_id","campaign_name","experience_name"],dataLayer)},getDelioErrorMessage:r=>{var r=r.find(".delio-error-message");let a="";return 0<r.length&&(r=r.prop("outerHTML"),a=r.replace("d-none","")),a},showMessage:(r,a,e)=>{let t=document.querySelector(".rp-modal-message-form");t?(t.querySelector(".rp-modal-message-form .modal-header .modal-title").innerText=r,t.querySelector(".rp-modal-message-form .modal-body div").innerText=a):(e.innerHTML+=`<div class="modal fade rp-modal-basic rp-modal-message-form"    
3137            tabindex="-1" role="dialog" aria-labelledby="modalMessageFormTitle" aria-hidden="true" data-id-link="">
3138                <div class="modal-dialog modal-dialog--centered" role="document">    
3139                    <div class="modal-content">    
3140                        <div class="modal-header">    
3141                            <h5 class="modal-title rp-subheadline" id="modalMessageFormTitle">    
3142                                ${r}    
3143                            </h5>    
3144                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">    
3145                                <span aria-hidden="true" class="icon-rp icon-rp-Cross"></span>    
3146                            </button>    
3147                        </div>
3148    
3149                        <div class="modal-body">    
3150                            <div class="rp-body-1">    
3151                              ${a}    
3152                            </div>
3153                        </div>    
3154                    </div>    
3155                </div>    
3156            </div>`,t=document.querySelector(".rp-modal-message-form")),$(t).modal("show")},setGigyaUidLead:async r=>{try{var a=await Repsol.utils.getAccountUserData();a.uid&&(r.Gigya_UID__c=a.uid)}catch{}finally{return r}},setEmailSessionStore:r=>{r&&sessionStorage.setItem("usr_email",r)},setPhoneSessionStore:r=>{r&&sessionStorage.setItem("usr_num",r)},setEmailPhoneSessionStore:(r,a)=>{Repsol.forms.setEmailSessionStore(r),Repsol.forms.setPhoneSessionStore(a)}},$(document).ready(function(){Repsol.forms.init()});let rejectionReasons={solifyCase1:"74_TAMAÑO DE TEJADO INSUFICIENTE",solifyCase2:"113_PRECALIFICA SOLIFY"},originCodes={unknownOrigin:107,affiliation:105,communication:121,shareholder:101,organic:115,organicRepsol:116,direct:108,solifyCase1:143,solifyCase2:143,paidSearchEnergia:119,paidSearchCorporativo:118},subOriginCodes={google:"SE01",bing:"SE02"},utmPattern=/^SF_\d+_([a-zA-Z0-9]{4,}_.*)?/,utmOriginCodePattern=/^SF_\d+/,utmSubOriginCodePattern=/^SF_\d+_[a-zA-Z0-9]{4,}/,replaceOriginCode={130:{AF04:originCodes.affiliation,RC03:originCodes.communication,AC01:originCodes.shareholder}};
3157var CallMeBackUtils={padLeft:function(t,e){return String("00000"+t).slice(-e)},idLeadFn:function(t){var e=new Date;return t+"_"+e.getFullYear()+CallMeBackUtils.padLeft(1+e.getMonth(),2)+CallMeBackUtils.padLeft(e.getDate(),2)+CallMeBackUtils.padLeft(e.getHours(),2)+CallMeBackUtils.padLeft(e.getMinutes(),2)+CallMeBackUtils.padLeft(e.getSeconds(),2)+Math.random().toString(26).slice(-4)}};
3158var PhoneHidden={init:function(){$("a.delio-phone-control").addClass("drp_ring_container"),PhoneHidden.setDisplayDelioPhone()},setDisplayDelioPhone:function(){$(".delio-phone-control").each(function(){var n,e,t,s,i,a;null!=$(this).attr("data-constants")&&""!=$(this).attr("data-constants")&&(t=$(this).attr("data-constants"),n=!1,e=new Date,null!=JSON.parse(t))&&""!=JSON.parse(t)&&(n=!(null==(t=JSON.parse(t)).horario||""==t.horario||(1<(i=t.horario.split("-")).length&&(a=parseInt(i[0]),i=parseInt(i[1]),s=e.getHours(),i<a)&&(i+=24,s<a&&(s+=24),n=a<=s&&s<i),null!=t.fines_de_semana&&""!=t.fines_de_semana&&(a=t.fines_de_semana,s=e.toLocaleString("es-es",{weekday:"long"}),a.includes(s))&&(n=!0),null==t.festivos)||""==t.festivos||(i=(i=t.festivos).split(","),a=e.getDate()+"/"+(e.getUTCMonth()+1)+"/"+e.getFullYear(),!i.includes(a)))||n)&&(0<$(this).find(".header-es-phone-number__delio-number").length?($(this).find(".info-text-mobile-delio").css("display","none"),$(this).hasClass("drp_ring_container")?$(this).parent().parent().css("display","none"):$(this).find(".drp_ring_container").parent().parent().css("cssText","display:none !important")):$(this).hasClass("drp_ring_container")?$(this).parent().css("display","none"):$(this).find(".drp_ring_container").parent().css("cssText","display:none !important"))})}};$(document).ready(function(){PhoneHidden.init()});
3159function disableBefore(){var e;document.getElementById("disable-before-icons")||((e=document.createElement("style")).id="disable-before-icons",e.innerHTML=`
3160    .is-multipath::before {
3161      content: none !important;
3162      display: none !important;
3163    }
3164  `,document.head.appendChild(e))}(()=>{let t={"icon-rp-Filter_Active":["","","","","","",""],"icon-rp-Filter":["","","","","","","","",""],"icon-rp-Cart-filled":["","",""],"icon-rp-User_active":["","",""],"icon-rp-Notification_active":["",""],"icon-rp-Klin":["",""],"icon-rp-Wayllet_02":["","",""],"icon-rp-LogoR":["","","","",""],"icon-rp-App-Icon":["","",""]},r={"icon-rp-Filter_Active":[7],"icon-rp-User_active":[1],"icon-rp-Notification_active":[2],"icon-rp-Klin":[2],"icon-rp-Wayllet_02":[3],"icon-rp-LogoR":[5],"icon-rp-App-Icon":[3]};function n(i,c){"true"!==i.dataset.multipathRendered&&(i.dataset.multipathRendered="true",i.classList.add(c.replace("icon-rp-","icon-")),i.classList.add("is-multipath"),i.innerHTML="",t[c].forEac
3164h(function(e,t){var n=t+1,o=document.createElement("span");o.textContent=e,o.className="path"+n,o.style.fontFamily="icomoon",o.style.display="inline-block",o.style.lineHeight="1",0<t&&(o.style.marginLeft="-1em"),r[c]&&-1!==r[c].indexOf(n)&&(o.style.color="rgb(245,150,0)"),i.appendChild(o)}))}function e(){var e;disableBefore(),e=(e=document)||document,Object.keys(t).forEach(function(t){e.querySelectorAll("."+t).forEach(function(e){n(e,t)})}),new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){1===e.nodeType&&Object.keys(t).forEach(function(t){e.classList&&e.classList.contains(t)&&n(e,t),e.querySelectorAll&&e.querySelectorAll("."+t).forEach(function(e){n(e,t)})})})})}).observe(document.body,{childList:!0,subtree:!0})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()})();
3165let RdsOverlay={components:null,breakpoints:{xs:576,s:720,m:1024,l:1350,xl:1920},init(){"corporate"===document.querySelector('meta[name="portal"]')?.content&&this.removePseudoElements(),this.components=document.querySelectorAll(".rds-dynamic-overlay-js"),this.components.length&&(this.render(),window.addEventListener("resize",()=>this.render()))},render(){let l=document.documentElement.clientWidth||window.innerWidth;this.components.forEach(e=>{var{rdsOverlayXs:s,rdsOverlayS:t,rdsOverlayM:r,rdsOverlayL:n,rdsOverlayXl:a}=e.dataset;let o="";o=l<this.breakpoints.s?s:l<this.breakpoints.m?t||s:l<this.breakpoints.l?r||t||s:l<this.breakpoints.xl?n||r||t||s:a||n||r||t||s,this.clearOverlayClasses(e),o&&"none"!==o&&e.classList.add(o)})},clearOverlayClasses(e){let t=["rds-overlay-","rds-oval-mask","rds-rectangular-mask"];Array.from(e.classList).forEach(s=>{t.some(e=>s.startsWith(e))&&e.classList.remove(s)})},removePseudoElements(){document.querySelectorAll([".modular-content-fragment.bg-image",".functionalities-product-component",".card-es-bg.card-mask"].join(",")).forEach(e=>{e.classList.add("no-before")})}};document.addEventListener("DOMContentLoaded",()=>RdsOverlay.init());
3166((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("uikit",e):(t="undefined"!=typeof globalThis?globalThis:t||self).UIkit=e()})(this,function(){var n=(fr=Object.prototype).hasOwnProperty;function j(t,e){return n.call(t,e)}var e=/\B([A-Z])/g,F=At(function(t){return t.replace(e,"-$1").toLowerCase()}),i=/-(\w)/g,W=At(function(t){return t.replace(i,r)}),V=At(function(t){return t.length?r(0,t.charAt(0))+t.slice(1):""});function r(t,e){return e?e.toUpperCase():""}var R=(kr=String.prototype).startsWith||function(t){return 0===this.lastIndexOf(t,0)};function q(t,e){return R.call(t,e)}var U=kr.endsWith||function(t){return this.substr(-t.length)===t};function Y(t,e){return U.call(t,e)}var X=Array.prototype,G=function(t,e){return!!~this.indexOf(t,e)},K=kr.includes||G,J=X.includes||G;function v(t,e){return t&&(g(t)?K:J).call(t,e)}var Z=X.findIndex||function(t){for(var e=arguments,n=0;n<this.length;n++)if(t.call(e[1],this[n],n,this))return n;return-1};function Q(t,e){return Z.call(t,e)}var tt=Array.isArray;function et(t){return"function"==typeof t}function nt(t){return null!==t&&"object"==typeof t}var it=fr.toString;function rt(t){return"[object Object]"===it.call(t)}function ot(t){return nt(t)&&t===t.window}function st(t){return 9===ut(t)}function at(t){return 1<=ut(t)}function ct(t){return 1===ut(t)}function ut(t){return!ot(t)&&nt(t)&&t.nodeType}function ht(t){return"boolean"==typeof t}function g(t){return"string"==typeof t}function lt(t){return"number"==typeof t}function dt(t){return lt(t)||g(t)&&!isNaN(t-parseFloat(t))}function ft(t){return!(tt(t)?t.length:nt(t)&&Object.keys(t).length)}function w(t){return void 0===t}function pt(t){return ht(t)?t:"true"===t||"1"===t||""===t||"false"!==t&&"0"!==t&&t}function mt(t){return t=Number(t),!isNaN(t)&&t}function b(t){return parseFloat(t)||0}var gt=Array.from||function(t){return X.slice.call(t)};function c(t){return u(t)[0]}function u(t){return t&&(at(t)?[t]:gt(t).filter(at))||[]}function vt(t){return ot(t)?t:(t=c(t))?(st(t)?t:t.ownerDocument).defaultView:window}function wt(t){return t?Y(t,"ms")?b(t):1e3*b(t):0}function bt(t,n){return t===n||nt(t)&&nt(n)&&Object.keys(t).length===Object.keys(n).length&&kt(t,function(t,e){return t===n[e]})}function xt(t,e,n){return t.replace(new RegExp(e+"|"+n,"g"),function(t){return t===e?n:e})}var p=Object.assign||function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];t=Object(t);for(var i=0;i<e.length;i++){var r=e[i];if(null!==r)for(var o in r)j(r,o)&&(t[o]=r[o])}return t};function yt(t){return t[t.length-1]}function kt(t,e){for(var n in t)if(!1===e(t[n],n))return!1;return!0}function $t(t,n){return t.slice().sort(function(t,e){return t=t[n],(e=void 0===(e=e[n])?0:e)<(t=void 0===t?0:t)?1:t<e?-1:0})}function St(t,e){var n=new Set;return t.filter(function(t){return t=t[e],!n.has(t)&&(n.add(t)||!0)})}function It(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),Math.min(Math.max(mt(t)||0,e),n)}function m(){}function Et(){for(var i=[],t=arguments.length;t--;)i[t]=arguments[t];return[["bottom","top"],["right","left"]].every(function(t){var e=t[0],n=t[1];return 0<Math.min.apply(Math,i.map(function(t){return t[e]}))-Math.max.apply(Math,i.map(function(t){return t[n]}))})}function Tt(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}var Ct={ratio:function(t,e,n){var i="width"===e?"height":"width",r={};return r[i]=t[e]?Math.round(n*t[i]/t[e]):t[i],r[e]=n,r},contain:function(n,i){var r=this;return kt(n=p({},n),function(t,e){return n=n[e]>i[e]?r.ratio(n,e,i[e]):n}),n},cover:function(n,i){var r=this;return kt(n=this.contain(n,i),function(t,e){return n=n[e]<i[e]?r.ratio(n,e,i[e]):n}),n}};function _t(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var r=(e=u(e)).length;return t=dt(t)?mt(t):"next"===t?n+1:"previous"===t?n-1:e.indexOf(c(t)),i?It(t,0,r-1):(t%=r)<0?t+r:t}function At(e){var n=Object.create(null);return function(t){return n[t]||(n[t]=e(t))}}
3166function l(t,e,n){if(nt(e))for(var i in e)l(t,i,e[i]);else{if(w(n))return(t=c(t))&&t.getAttribute(e);u(t).forEach(function(t){null===(n=et(n)?n.call(t,l(t,e)):n)?zt(t,e):t.setAttribute(e,n)})}}function Mt(t,e){return u(t).some(function(t){return t.hasAttribute(e)})}function zt(t,e){t=u(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.hasAttribute(e)&&t.removeAttribute(e)})})}function Nt(t,e){for(var n=0,i=[e,"data-"+e];n<i.length;n++)if(Mt(t,i[n]))return l(t,i[n])}var Bt="undefined"!=typeof window,Dt=Bt&&/msie|trident/i.test(window.navigator.userAgent),f=Bt&&"rtl"===l(document.documentElement,"dir"),Ot=Bt&&"ontouchstart"in window,Pt=Bt&&window.PointerEvent,Ht=Bt&&(Ot||window.DocumentTouch&&document instanceof DocumentTouch||navigator.maxTouchPoints),Lt=Pt?"pointerdown":Ot?"touchstart":"mousedown",jt=Pt?"pointermove":Ot?"touchmove":"mousemove",Ft=Pt?"pointerup":Ot?"touchend":"mouseup",Wt=Pt?"pointerenter":Ot?"":"mouseenter",Vt=Pt?"pointerleave":Ot?"":"mouseleave",Rt=Pt?"pointercancel":"touchcancel",qt={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function Ut(t){return u(t).some(function(t){return qt[t.tagName.toLowerCase()]})}function x(t){return u(t).some(function(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length})}var Yt="input,select,textarea,button";function Xt(t){return u(t).some(function(t){return d(t,Yt)})}function Gt(t){return Xt(t)||d(t,"a[href],button")||Mt(t,"tabindex")}function y(t){return(t=c(t))&&ct(t.parentNode)&&t.parentNode}function Kt(t,e){return u(t).filter(function(t){return d(t,e)})}var Jt=(mr=Bt?Element.prototype:{}).matches||mr.webkitMatchesSelector||mr.msMatchesSelector||m;function d(t,e){return u(t).some(function(t){return Jt.call(t,e)})}var Zt=mr.closest||function(t){var e=this;do{if(d(e,t))return e}while(e=y(e))};function Qt(t,e){return q(e,">")&&(e=e.slice(1)),ct(t)?Zt.call(t,e):u(t).map(function(t){return Qt(t,e)}).filter(Boolean)}function h(t,e){return g(e)?d(t,e)||!!Qt(t,e):t===e||(st(e)?e.documentElement:c(e)).contains(c(t))}function te(t,e){for(var n=[];t=y(t);)e&&!d(t,e)||n.push(t);return n}function k(t,e){return t=(t=c(t))?u(t.children):[],e?Kt(t,e):t}function ee(t,e){return e?u(t).indexOf(c(e)):k(y(t)).indexOf(t)}function ne(t,e){return oe(t,re(t,e))}function ie(t,e){return se(t,re(t,e))}function re(t,e){return void 0===e&&(e=document),g(t)&&he(t)||st(e)?e:e.ownerDocument}function oe(t,e){return c(ae(t,e,"querySelector"))}function se(t,e){return u(ae(t,e,"querySelectorAll"))}function ae(t,r,e){if(void 0===r&&(r=document),!t||!g(t))return t;t=t.replace(ue,"$1 *"),he(t)&&(t=de(t).map(function(t){var e,n,i=r;return"!"===t[0]&&(n=t.substr(1).trim().split(" "),i=Qt(y(r),n[0]),t=n.slice(1).join(" ").trim()),"-"===t[0]&&(e=t.substr(1).trim().split(" "),i=d(n=(i||r).previousElementSibling,t.substr(1))?n:null,t=e.slice(1).join(" ")),i?(t=>{for(var e=[];t.parentNode;){if(t.id){e.unshift("#"+pe(t.id));break}var n=t.tagName;"HTML"!==n&&(n+=":nth-child("+(ee(t)+1)+")"),e.unshift(n),t=t.parentNode}return e.join(" > ")})(i)+" "+t:null}).filter(Boolean).join(","),r=document);try{return r[e](t)}catch(t){return null}}var ce=/(^|[^\\],)\s*[!>+~-]/,ue=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,he=At(function(t){return t.match(ce)}),le=/.*?[^\\](?:,|$)/g,de=At(function(t){return t.match(le).map(function(t){return t.replace(/,$/,"").trim()})}),fe=Bt&&window.CSS&&CSS.escape||function(t){return t.replace(/([^\x7f-\uFFFF\w-])/g,function(t){return"\\"+t})};function pe(t){return g(t)?fe.call(null,t):""}function $(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,i,r=ve(t),o=r[0],s=r[1],a=r[2],c=r[3],u=r[4],o=ye(o);return 1<c.length&&(n=c,c=function(t){return tt(t.detail)?n.apply(void 0,[t].concat(t.detail)):n(t)}),u&&u.self&&(i=c,c=function(t){if(t.target===t.currentTarget||t.target===t.current)return i.call(null,t)}),a&&(c=function(n,i){var r=this;return function(e){var t=">"===n[0]?se(n,e.currentTarget).reverse().filter(function(t){return h(e.target,t)})[0]:Qt(e.target,n);t&&(e.current=t,i.call(r,e))}}(a,c)),u=we(u),s.split(" ").forEach(function(e){return o.forEach(function(t){return t.addEventListener(e,c,u)})}),function(){return me(o,s,c,u)}}function me(t,e,n,i){i=we(i=void 0!==i&&i),t=ye(t),e.split(" ").forEach(function(e){return t.forEach(function(t){return t.removeEventListener(e,n,i)})})}function S(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];
3166var n=ve(t),i=n[0],r=n[3],o=n[5],s=$(i,n[1],n[2],function(t){var e=!o||o(t);e&&(s(),r(t,e))},n[4]);return s}function I(t,n,i){return ye(t).reduce(function(t,e){return t&&e.dispatchEvent(ge(n,!0,!0,i))},!0)}function ge(t,e,n,i){var r;return void 0===e&&(e=!0),void 0===n&&(n=!1),g(t)&&((r=document.createEvent("CustomEvent")).initCustomEvent(t,e,n,i),t=r),t}function ve(t){return et(t[2])&&t.splice(2,0,!1),t}function we(t){return t&&Dt&&!ht(t)?!!t.capture:t}function be(t){return t&&"addEventListener"in t}function xe(t){return be(t)?t:c(t)}function ye(t){return tt(t)?t.map(xe).filter(Boolean):g(t)?se(t):be(t)?[t]:u(t)}function ke(t){return"touch"===t.pointerType||!!t.touches}function $e(t){var e=t.touches,n=t.changedTouches;return{x:(t=e&&e[0]||n&&n[0]||t).clientX,y:t.clientY}}function Se(){var n=this;this.promise=new E(function(t,e){n.reject=e,n.resolve=t})}var E=Bt&&window.Promise||Te,Ie=2,Ee=Bt&&window.setImmediate||setTimeout;function Te(t){this.state=Ie,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}function Ce(t,e){var n=p({data:null,method:"GET",headers:{},xhr:new XMLHttpRequest,beforeSend:m,responseType:""},e);return E.resolve().then(function(){return n.beforeSend(n)}).then(function(){return o=t,s=n,new E(function(t,e){var n,i,r=s.xhr;for(n in s)if(n in r)try{r[n]=s[n]}catch(t){}for(i in r.open(s.method.toUpperCase(),o),s.headers)r.setRequestHeader(i,s.headers[i]);$(r,"load",function(){0===r.status||200<=r.status&&r.status<300||304===r.status?("json"===s.responseType&&g(r.response)&&(r=p((t=>{var e,n={};for(e in t)n[e]=t[e];return n})(r),{response:JSON.parse(r.response)})),t(r)):e(p(Error(r.statusText),{xhr:r,status:r.status}))}),$(r,"error",function(){return e(p(Error("Network Error"),{xhr:r}))}),$(r,"timeout",function(){return e(p(Error("Network Timeout"),{xhr:r}))}),r.send(s.data)});var o,s})}function _e(i,r,o){return new E(function(t,e){var n=new Image;n.onerror=function(t){return e(t)},n.onload=function(){return t(n)},o&&(n.sizes=o),r&&(n.srcset=r),n.src=i})}function Ae(t){return(t=s(t)).innerHTML="",t}function Me(t,e){return t=s(t),w(e)?t.innerHTML:T(t.hasChildNodes()?Ae(t):t,e)}function T(e,t){return e=s(e),Be(t,function(t){return e.appendChild(t)})}function ze(e,t){return e=s(e),Be(t,function(t){return e.parentNode.insertBefore(t,e)})}function Ne(e,t){return e=s(e),Be(t,function(t){return e.nextSibling?ze(e.nextSibling,t):T(e.parentNode,t)})}function Be(t,e){return(t=g(t)?Fe(t):t)?"length"in t?u(t).map(e):e(t):null}function De(t){u(t).forEach(function(t){return t.parentNode&&t.parentNode.removeChild(t)})}function Oe(t,e){for(e=c(ze(t,e));e.firstChild;)e=e.firstChild;return T(e,t),e}function Pe(t,e){return u(u(t).map(function(t){return t.hasChildNodes?Oe(u(t.childNodes),e):T(t,e)}))}function He(t){u(t).map(y).filter(function(t,e,n){return n.indexOf(t)===e}).forEach(function(t){ze(t,t.childNodes),De(t)})}Te.reject=function(n){return new Te(function(t,e){e(n)})},Te.resolve=function(n){return new Te(function(t,e){t(n)})},Te.all=function(o){return new Te(function(n,t){var i=[],r=0;0===o.length&&n(i);for(var e=0;e<o.length;e+=1)Te.resolve(o[e]).then((e=>function(t){i[e]=t,(r+=1)===o.length&&n(i)})(e),t)})},Te.race=function(i){return new Te(function(t,e){for(var n=0;n<i.length;n+=1)Te.resolve(i[n]).then(t,e)})},(gr=Te.prototype).resolve=function(t){var e=this;if(e.state===Ie){if(t===e)throw new TypeError("Promise settled with itself.");var n=!1;try{var i=t&&t.then;if(null!==t&&nt(t)&&et(i))return void i.call(t,function(t){n||e.resolve(t),n=!0},function(t){n||e.reject(t),n=!0})}catch(t){return void(n||e.reject(t))}e.state=0,e.value=t,e.notify()}},gr.reject=function(t){var e=this;if(e.state===Ie){if(t===e)throw new TypeError("Promise settled with itself.");e.state=1,e.value=t,e.notify()}},gr.notify=function(){var r=this;Ee(function(){if(r.state!==Ie)for(;r.deferred.length;){var t=(i=r.deferred.shift())[0],e=i[1],n=i[2],i=i[3];try{0===r.state?n(et(t)?t.call(void 0,r.value):r.value):1===r.state&&(et(e)?n(e.call(void 0,r.value)):i(r.value))}catch(t){i(t)}}})},gr.then=function(n,i){var r=this;return new Te(function(t,e){r.deferred.push([n,i,t,e]),r.notify()})},gr.catch=function(t){return this.then(void 0,t)};var Le=/^\s*<(\w+|!)[^>]*>/,je=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Fe(t){var e=je.exec(t);return e?document.createElement(e[1]):(e=document.createElement("div"),Le.test(t)?e.insertAdjacentHTML("beforeend",t.trim()):e.textContent=t,1<e.childNodes.length?u(e.childNodes):e.firstChild)}function We(t,e){if(ct(t))for(e(t),t=t.firstElementChild;t;){var n=t.nextElementSibling;We(t,e),t=n}}function s(t,e){return Ve(t)?c(Fe(t)):oe(t,e)}function a(t,e){return Ve(t)?u(Fe(t)):se(t,e)}function Ve(t){return g(t)&&("<"===t[0]||t.match(/^\s*</))}function C(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];Ue(t,e,"add")}function _(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];Ue(t,e,"remove")}function Re(t,e){l(t,"class",function(t){return(t||"").replace(new RegExp("\\b"+e+"\\b","g"),"")})}function qe(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];e[0]&&_(t,e[0]),e[1]&&C(t,e[1])}function A(t,e){e=Ye(e)[0];for(var n=u(t),i=0;i<n.length;i++)if(e&&n[i].classList.contains(e))return!0;return!1}function M(t,e,n){e=Ye(e);for(var i=u(t),r=0;r<i.length;
3166r++)for(var o=i[r].classList,s=0;s<e.length;s++)w(n)?o.toggle(e[s]):Xe.Force?o.toggle(e[s],!!n):o[n?"add":"remove"](e[s])}function Ue(t,n,i){var r;n=n.reduce(function(t,e){return t.concat(Ye(e))},[]);for(var o=u(t),e=0;e<o.length;e++)(e=>{Xe.Multiple?(r=o[e].classList)[i].apply(r,n):n.forEach(function(t){return o[e].classList[i](t)})})(e)}function Ye(t){return String(t).split(/\s|,/).filter(Boolean)}var Xe={get Multiple(){return this.get("Multiple")},get Force(){return this.get("Force")},get:function(t){var e=document.createElement("_").classList;return e.add("a","b"),e.toggle("c",!1),(Xe={Multiple:e.contains("b"),Force:!e.contains("c")})[t]}},Ge={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function z(t,e,r,o){return void 0===o&&(o=""),u(t).map(function(n){if(g(e)){if(e=tn(e),w(r))return Je(n,e);r||lt(r)?n.style.setProperty(e,dt(r)&&!Ge[e]?r+"px":r,o):n.style.removeProperty(e)}else{var i;if(tt(e))return i=Ke(n),e.reduce(function(t,e){return t[e]=i[tn(e)],t},{});nt(e)&&(o=r,kt(e,function(t,e){return z(n,e,t,o)}))}return n})[0]}function Ke(t,e){return vt(t).getComputedStyle(t,e)}function Je(t,e,n){return Ke(t,n)[e]}var Ze=At(function(t){var e=T(document.documentElement,document.createElement("div"));return C(e,"uk-"+t),t=Je(e,"content",":before").replace(/^["'](.*)["']$/,"$1"),De(e),t});function Qe(t){return Dt?Ze(t):Ke(document.documentElement).getPropertyValue("--uk-"+t)}var tn=At(function(t){t=F(t);var e=document.documentElement.style;if(t in e)return t;for(var n,i=en.length;i--;)if((n="-"+en[i]+"-"+t)in e)return n}),en=["webkit","moz","ms"];function nn(t,s,a,c){return void 0===a&&(a=400),void 0===c&&(c="linear"),E.all(u(t).map(function(o){return new E(function(e,n){for(var t in s){var i=z(o,t);""===i&&z(o,t,i)}var r=setTimeout(function(){return I(o,"transitionend")},a);S(o,"transitionend transitioncanceled",function(t){t=t.type,clearTimeout(r),_(o,"uk-transition"),z(o,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),"transitioncanceled"===t?n():e(o)},{self:!0}),C(o,"uk-transition"),z(o,p({transitionProperty:Object.keys(s).map(tn).join(","),transitionDuration:a+"ms",transitionTimingFunction:c},s))})}))}var N={start:nn,stop:function(t){return I(t,"transitionend"),E.resolve()},cancel:function(t){I(t,"transitioncanceled")},inProgress:function(t){return A(t,"uk-transition")}},rn="uk-animation-";function on(t,o,s,a,c){return void 0===s&&(s=200),E.all(u(t).map(function(r){return new E(function(e,n){I(r,"animationcanceled");var i=setTimeout(function(){return I(r,"animationend")},s);S(r,"animationend animationcanceled",function(t){t=t.type,clearTimeout(i),"animationcanceled"===t?n():e(r),z(r,"animationDuration",""),Re(r,rn+"\\S*")},{self:!0}),z(r,"animationDuration",s+"ms"),C(r,o,rn+(c?"leave":"enter")),q(o,rn)&&(a&&C(r,"uk-transform-origin-"+a),c)&&C(r,rn+"reverse")})}))}var sn=new RegExp(rn+"(enter|leave)"),an={in:on,out:function(t,e,n,i){return on(t,e,n,i,!0)},inProgress:function(t){return sn.test(l(t,"class"))},cancel:function(t){I(t,"animationcanceled")}},cn={width:["left","right"],height:["top","bottom"]};function B(t){return{height:(t=ct(t)?c(t).getBoundingClientRect():{height:O(t),width:ln(t),top:0,left:0}).height,width:t.width,top:t.top,left:t.left,bottom:t.top+t.height,right:t.left+t.width}}function D(n,i){var t,r=B(n),e=vt(n),o={height:e.pageYOffset,width:e.pageXOffset};for(t in cn)for(var s in cn[t])r[cn[t][s]]+=o[t];if(!i)return r;var a=z(n,"position");kt(z(n,["left","top"]),function(t,e){return z(n,e,i[e]-r[e]+b("absolute"===a&&"auto"===t?un(n)[e]:t))})}function un(t){for(var e=D(t),n=e.top,i=e.left,r=c(t),o=(e=r.ownerDocument).body,s=e.documentElement,a=r.offsetParent||s;a&&(a===o||a===s)&&"static"===z(a,"position");)a=a.parentNode;return ct(a)&&(n-=(r=D(a)).top+b(z(a,"borderTopWidth")),i-=r.left+b(z(a,"borderLeftWidth"))),{top:n-b(z(t,"marginTop")),left:i-b(z(t,"marginLeft"))}}function hn(t){var e,n=[0,0];t=c(t);
3166do{if(n[0]+=t.offsetTop,n[1]+=t.offsetLeft,"fixed"===z(t,"position"))return e=vt(t),n[0]+=e.pageYOffset,n[1]+=e.pageXOffset,n}while(t=t.offsetParent);return n}var O=dn("height"),ln=dn("width");function dn(i){var r=V(i);return function(t,e){var n;return w(e)?ot(t)?t["inner"+r]:st(t)?(n=t.documentElement,Math.max(n["offset"+r],n["scroll"+r])):(e="auto"===(e=z(t=c(t),i))?t["offset"+r]:b(e)||0)-fn(t,i):z(t,i,e||0===e?+e+fn(t,i)+"px":"")}}function fn(n,t,e){return void 0===e&&(e="border-box"),z(n,"boxSizing")===e?cn[t].map(V).reduce(function(t,e){return t+b(z(n,"padding"+e))+b(z(n,"border"+e+"Width"))},0):0}function pn(t){for(var e in cn)for(var n in cn[e])if(cn[e][n]===t)return cn[e][1-n];return t}function mn(t,e,n){return void 0===e&&(e="width"),void 0===n&&(n=window),dt(t)?+t:Y(t,"vh")?gn(O(vt(n)),t):Y(t,"vw")?gn(ln(vt(n)),t):Y(t,"%")?gn(B(n)[e],t):b(t)}function gn(t,e){return t*b(e)/100}var P={reads:[],writes:[],read:function(t){return this.reads.push(t),bn(),t},write:function(t){return this.writes.push(t),bn(),t},clear:function(t){yn(this.reads,t),yn(this.writes,t)},flush:vn};function vn(t){void 0===t&&(t=1),xn(P.reads),xn(P.writes.splice(0)),P.scheduled=!1,(P.reads.length||P.writes.length)&&bn(t+1)}var wn=4;function bn(t){P.scheduled||(P.scheduled=!0,t&&t<wn?E.resolve().then(function(){return vn(t)}):requestAnimationFrame(function(){return vn()}))}function xn(t){for(var e;e=t.shift();)try{e()}catch(t){console.error(t)}}function yn(t,e){~(e=t.indexOf(e))&&t.splice(e,1)}function kn(){}kn.prototype={positions:[],init:function(){var e,t=this;this.positions=[],this.unbind=$(document,"mousemove",function(t){return e=$e(t)}),this.interval=setInterval(function(){e&&(t.positions.push(e),5<t.positions.length)&&t.positions.shift()},50)},cancel:function(){this.unbind&&this.unbind(),this.interval&&clearInterval(this.interval)},movesTo:function(t){var h,e,n,i,r,l;return!(this.positions.length<2||(e=(h=t.getBoundingClientRect()).left,n=h.right,i=h.top,r=h.bottom,l=[this.positions[0],t=yt(this.positions)],Tt(t,h)))&&[[{x:e,y:i},{x:n,y:r}],[{x:e,y:r},{x:n,y:i}]].some(function(t){var e,n,i,r,o,s,a,c,u;return n=t,i=(c=l[0]).x,r=c.y,s=(o=l[1]).x,a=o.y,c=(u=n[0]).x,e=u.y,u=(o=n[1]).x,(t=0!=(o=((n=o.y)-e)*(s-i)-(u-c)*(a-r))&&!((o=((u-c)*(r-e)-(n-e)*(i-c))/o)<0)&&{x:i+o*(s-i),y:r+o*(a-r)})&&Tt(t,h)})}};var H={};function $n(t,e,n){return H.computed(et(t)?t.call(n,n):t,et(e)?e.call(n,n):e)}function Sn(t,e){return t=t&&!tt(t)?[t]:t,e?t?t.concat(e):tt(e)?e:[e]:t}function In(e,n,i){var t,r,o={};if((n=et(n)?n.options:n).extends&&(e=In(e,n.extends,i)),n.mixins)for(var s=0,a=n.mixins.length;s<a;
3166s++)e=In(e,n.mixins[s],i);for(t in e)c(t);for(r in n)j(e,r)||c(r);function c(t){o[t]=(H[t]||function(t,e){return w(e)?t:e})(e[t],n[t],i)}return o}function En(t,e){var n;void 0===e&&(e=[]);try{return t?q(t,"{")?JSON.parse(t):e.length&&!v(t,":")?((n={})[e[0]]=t,n):t.split(";").reduce(function(t,e){var e=(n=e.split(/:(.*)/))[0],n=n[1];return e&&!w(n)&&(t[e.trim()]=n.trim()),t},{}):{}}catch(t){return{}}}function Tn(t){if(Mn(t)&&Bn(t,{func:"playVideo",method:"play"}),An(t))try{t.play().catch(m)}catch(t){}}function Cn(t){Mn(t)&&Bn(t,{func:"pauseVideo",method:"pause"}),An(t)&&t.pause()}function _n(t){Mn(t)&&Bn(t,{func:"mute",method:"setVolume",value:0}),An(t)&&(t.muted=!0)}function An(t){return t&&"VIDEO"===t.tagName}function Mn(t){return t&&"IFRAME"===t.tagName&&(zn(t)||Nn(t))}function zn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function Nn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}function Bn(t,e){var n,i,r,o,s;((n=t)[On]||(r=zn(n),o=Nn(n),s=++Pn,n[On]=new E(function(t){r&&S(n,"load",function(){function t(){return Dn(n,{event:"listening",id:s})}i=setInterval(t,100),t()}),S(window,"message",t,!1,function(t){t=t.data;try{return(t=JSON.parse(t))&&(r&&t.id===s&&"onReady"===t.event||o&&Number(t.player_id)===s)}catch(t){}}),n.src=n.src+(v(n.src,"?")?"&":"?")+(r?"enablejsapi=1":"api=1&player_id="+s)}).then(function(){return clearInterval(i)}))).then(function(){return Dn(t,e)})}function Dn(t,e){try{t.contentWindow.postMessage(JSON.stringify(p({event:"command"},e)),"*")}catch(t){}}H.events=H.created=H.beforeConnect=H.connected=H.beforeDisconnect=H.disconnected=H.destroy=Sn,H.args=function(t,e){return!1!==e&&Sn(e||t)},H.update=function(t,e){return $t(Sn(t,et(e)?{read:e}:e),"order")},H.props=function(t,e){return tt(e)&&(e=e.reduce(function(t,e){return t[e]=String,t},{})),H.methods(t,e)},H.computed=H.methods=function(t,e){return e?t?p({},t,e):e:t},H.data=function(e,n,t){return t?$n(e,n,t):n?e?function(t){return $n(e,n,t)}:n:e};var On="_ukPlayer",Pn=0;function Hn(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),!!x(t)&&Et.apply(void 0,Wn(t).map(function(t){var e=D(Vn(t));return{top:e.top-n,left:e.left-i,bottom:(t=e.bottom)+n,right:e.right+i}}).concat(D(t)))}function Ln(t,e){(t=(ot(t)||st(t)?qn:c)(t)).scrollTop=e}function jn(s,t){var a=(t=void 0===t?{}:t).offset,c=(void 0===a&&(a=0),x(s)?Wn(s):[]),u=0;return c.reduce(function(t,e,n){var i=e.scrollTop,r=e.scrollHeight-Rn(e),o=Math.ceil(D(c[n-1]||s).top-D(Vn(e)).top-a+u+i);return r<o?(u=o-r,o=r):u=0,function(){return s=e,a=o-i,new E(function(n){var t,i=s.scrollTop,r=(t=Math.abs(a),40*Math.pow(t,.375)),o=Date.now();!function t(){e=It((Date.now()-o)/r);var e=.5*(1-Math.cos(Math.PI*e));Ln(s,i+a*e),1!=e?requestAnimationFrame(t):n()}()}).then(t);var s,a}},function(){return E.resolve()})()}function Fn(t,e){var n,i,r,o,s;return void 0===e&&(e=0),x(t)?(n=(s=Wn(t,/auto|scroll/,!0)[0]).scrollHeight,i=s.scrollTop,r=Rn(s),It(-1*((o=hn(t)[0]-i-hn(s)[0])-(s=Math.min(r,o+i)))/Math.min(t.offsetHeight+e+s,n-(o+i),n-r))):0}function Wn(t,e,n){void 0===e&&(e=/auto|scroll|hidden/),void 0===n&&(n=!1);var i=qn(t),r=te(t).reverse();return~(t=Q(r=r.slice(r.indexOf(i)+1),function(t){return"fixed"===z(t,"position")}))&&(r=r.slice(t)),[i].concat(r.filter(function(t){return e.test(z(t,"overflow"))&&(!n||t.scrollHeight>Rn(t))})).reverse()}function Vn(t){return t===qn(t)?window:t}function Rn(t){return(t===qn(t)?document.documentElement:t).clientHeight}function qn(t){return(t=vt(t).document).scrollingElement||t.documentElement}var Un={width:["x","left","right"],height:["y","top","bottom"]};function Yn(t,e,h,l,d,n,i,r){h=Gn(h),l=Gn(l);var o,f,p,m,g={element:h,target:l};return t&&e&&(f=D(t),p=D(e),Xn(m=p,h,f,-1),Xn(m,l,p,1),d=Kn(d,f.width,f.height),n=Kn(n,p.width,p.height),d.x+=n.x,d.y+=n.y,m.left+=d.x,m.top+=d.y,i&&(o=Wn(t).map(Vn),r&&!v(o,r)&&o.unshift(r),o=o.map(function(t){return D(t)}),kt(Un,function(t,s){var a=t[0],c=t[1],u=t[2];!0!==i&&!v(i,a)||o.some(function(n){var t,e,i=h[a]===c?-f[s]:h[a]===u?f[s]:0,r=l[a]===c?p[s]:l[a]===u?-p[s]:0;if(m[c]<n[c]||m[c]+f[s]>n[u])return t=f[s]/2,e="center"===l[a]?-p[s]/2:0,"center"===h[a]&&(o(t,e)||o(-t,-e))||o(i,r);function o(e,t){if((t=b((m[c]+e+t-2*d[a]).toFixed(4)))>=n[c]&&t+f[s]<=n[u])return m[c]=t,["element","target"].forEach(function(t){g[t][a]=e?g[t][a]===Un[s][1]?Un[s][2]:Un[s][1]:g[t][a]}),!0}})})),D(t,m)),g}function Xn(r,o,s,a){kt(Un,function(t,e){var n=t[0],i=t[1],t=t[2];o[n]===t?r[i]+=s[e]*a:"center"===o[n]&&(r[i]+=s[e]*a/2)}
3166)}function Gn(t){var e=/left|center|right/,n=/top|center|bottom/;return 1===(t=(t||"").split(" ")).length&&(t=e.test(t[0])?t.concat("center"):n.test(t[0])?["center"].concat(t):["center","center"]),{x:e.test(t[0])?t[0]:"center",y:n.test(t[1])?t[1]:"center"}}function Kn(t,e,n){var t=(i=(t||"").split(" "))[0],i=i[1];return{x:t?b(t)*(Y(t,"%")?e/100:1):0,y:i?b(i)*(Y(i,"%")?n/100:1):0}}var Jn=Object.freeze({__proto__:null,ajax:Ce,getImage:_e,transition:nn,Transition:N,animate:on,Animation:an,attr:l,hasAttr:Mt,removeAttr:zt,data:Nt,addClass:C,removeClass:_,removeClasses:Re,replaceClass:qe,hasClass:A,toggleClass:M,dimensions:B,offset:D,position:un,offsetPosition:hn,height:O,width:ln,boxModelAdjust:fn,flipPosition:pn,toPx:mn,ready:function(t){var e;"loading"===document.readyState?e=$(document,"DOMContentLoaded",function(){e(),t()}):t()},empty:Ae,html:Me,prepend:function(e,t){return(e=s(e)).hasChildNodes()?Be(t,function(t){return e.insertBefore(t,e.firstChild)}):T(e,t)},append:T,before:ze,after:Ne,remove:De,wrapAll:Oe,wrapInner:Pe,unwrap:He,fragment:Fe,apply:We,$:s,$$:a,inBrowser:Bt,isIE:Dt,isRtl:f,hasTouch:Ht,pointerDown:Lt,pointerMove:jt,pointerUp:Ft,pointerEnter:Wt,pointerLeave:Vt,pointerCancel:Rt,on:$,off:me,once:S,trigger:I,createEvent:ge,toEventTargets:ye,isTouch:ke,getEventPos:$e,fastdom:P,isVoidElement:Ut,isVisible:x,selInput:Yt,isInput:Xt,isFocusable:Gt,parent:y,filter:Kt,matches:d,closest:Qt,within:h,parents:te,children:k,index:ee,hasOwn:j,hyphenate:F,camelize:W,ucfirst:V,startsWith:q,endsWith:Y,includes:v,findIndex:Q,isArray:tt,isFunction:et,isObject:nt,isPlainObject:rt,isWindow:ot,isDocument:st,isNode:at,isElement:ct,isBoolean:ht,isString:g,isNumber:lt,isNumeric:dt,isEmpty:ft,isUndefined:w,toBoolean:pt,toNumber:mt,toFloat:b,toArray:gt,toNode:c,toNodes:u,toWindow:vt,toMs:wt,isEqual:bt,swap:xt,assign:p,last:yt,each:kt,sortBy:$t,uniqueBy:St,clamp:It,noop:m,intersectRect:Et,pointInRect:Tt,Dimensions:Ct,getIndex:_t,memoize:At,MouseTracker:kn,mergeOptions:In,parseOptions:En,play:Tn,pause:Cn,mute:_n,positionAt:Yn,Promise:E,Deferred:Se,query:ne,queryAll:ie,find:oe,findAll:se,escape:pe,css:z,getCssVar:Qe,propName:tn,isInView:Hn,scrollTop:Ln,scrollIntoView:jn,scrolledOver:Fn,scrollParents:Wn,getViewport:Vn,getViewportClientHeight:Rn});function Zn(t){this._init(t)}var Qn,ti,ei,ni,ii,ri,oi,si,ai,ci,ui=At(function(t){return!(!q(t,"uk-")&&!q(t,"data-uk-"))&&W(t.replace("data-uk-","").replace("uk-",""))});function hi(t,e){if(t)for(var n in t)t[n]._connected&&t[n]._callUpdate(e)}function li(t,e){var n={},i=t.args;void 0===i&&(i=[]);var r,o=t.props,s=t.el;if(o=void 0===o?{}:o){for(r in o){var a=F(r),c=Nt(s,a);!w(c)&&(c=o[r]===Boolean&&""===c||fi(o[r],c),"target"!==a||c&&!q(c,"_"))&&(n[r]=c)}var u,h=En(Nt(s,e),i);for(u in h){var l=W(u);void 0!==o[l]&&(n[l]=fi(o[l],h[u]))}}return n}function di(e,n,i){var t=(n=rt(n)?n:{name:i,handler:n}).name,r=n.el,o=n.handler,s=n.capture,a=n.passive,c=n.delegate,u=n.filter,h=n.self,r=et(r)?r.call(e):r||e.$el;tt(r)?r.forEach(function(t){return di(e,p({},n,{el:t}),i)}):!r||u&&!u.call(e)||e._events.push($(r,t,c?g(c)?c:c.call(e):null,g(o)?e[o]:o.bind(e),{passive:a,capture:s,self:h}))}function fi(t,e){return t===Boolean?pt(e):t===Number?mt(e):"list"===t?tt(n=e)?n:g(n)?n.split(/,(?![^(]*\))/).map(function(t){return dt(t)?mt(t):pt(t.trim())}):[n]:t?t(e):e;var n}Zn.util=Jn,Zn.data="__uikit__",Zn.prefix="uk-",Zn.options={},Zn.version="3.7.2",ei=(Qn=Zn).data,Qn.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},Qn.mixin=function(t,e){(e=(g(e)?Qn.component(e):e)||this).options=In(e.options,t)},Qn.extend=function(t){function e(t){this._init(t)}return t=t||{},((e.prototype=Object.create(this.prototype)).constructor=e).options=In(this.options,t),e.super=this,e.extend=this.extend,e},Qn.update=function(t,e){te(t=t?c(t):document.body).reverse().forEach(function(t){return hi(t[ei],e)}),We(t,function(t){return hi(t[ei],e)})},Object.defineProperty(Qn,"container",{get:function(){return ti||document.body},set:function(t){ti=s(t)}}),(t=Zn).prototype._callHook=function(t){var e=this;(t=this.$options[t])&&t.forEach(function(t){return t.call(e)})},t.prototype._callConnected=function(){this._connected||(this._data={},this._computeds={},this._initProps(),this._callHook("beforeConnect"),this._connected=!0,this._initEvents(),this._initOb
3166servers(),this._callHook("connected"),this._callUpdate())},t.prototype._callDisconnected=function(){this._connected&&(this._callHook("beforeDisconnect"),this._disconnectObservers(),this._unbindEvents(),this._callHook("disconnected"),this._connected=!1,delete this._watch)},t.prototype._callUpdate=function(t){var e=this;void 0===t&&(t="update"),this._connected&&("update"!==t&&"resize"!==t||this._callWatches(),this.$options.update)&&(this._updates||(this._updates=new Set,P.read(function(){e._connected&&!function(i){for(var r=this,o=this.$options.update,t=0;t<o.length;t++)(t=>{var t=(n=o[t]).read,e=n.write,n=n.events;(i.has("update")||n&&n.some(function(t){return i.has(t)}))&&(n=void 0,t&&(n=t.call(r,r._data,i))&&rt(n)&&p(r._data,n),e)&&!1!==n&&P.write(function(){return e.call(r,r._data,i)})})(t)}.call(e,e._updates),delete e._updates})),this._updates.add(t.type||t))},t.prototype._callWatches=function(){var t,e=this;this._watch||(t=!j(this,"_watch"),this._watch=P.read(function(){e._connected&&!function(t){var e,n=this.$options.computed,i=this._computeds;for(e in n){var r=j(i,e),o=i[e];delete i[e];var s=(a=n[e]).watch,a=a.immediate;s&&(t&&a||r&&!bt(o,this[e]))&&s.call(this,this[e],o)}}.call(e,t),e._watch=null}))},ni=0,(t=Zn).prototype._init=function(t){(t=t||{}).data=((t,e)=>{var n=t.data,i=e.args,r=e.props;if(void 0===r&&(r={}),n=tt(n)?ft(i)?void 0:n.slice(0,i.length).reduce(function(t,e,n){return rt(e)?p(t,e):t[i[n]]=e,t},{}):n)for(var o in n)w(n[o])?delete n[o]:n[o]=r[o]?fi(r[o],n[o]):n[o];return n})(t,this.constructor.options),this.$options=In(this.constructor.options,t,this),this.$el=null,this.$props={},this._uid=ni++,this._initData(),this._initMethods(),this._initComputeds(),this._callHook("created"),t.el&&this.$mount(t.el)},t.prototype._initData=function(){var t,e=this.$options.data;for(t in e=void 0===e?{}:e)this.$props[t]=this[t]=e[t]},t.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=t[e].bind(this)},t.prototype._initComputeds=function(){var t=this.$options.computed;if(this._computeds={},t)for(var e in t)((i,r,o)=>{Object.defineProperty(i,r,{enumerable:!0,get:function(){var t=i._computeds,e=i.$props,n=i.$el;return j(t,r)||(t[r]=(o.get||o).call(i,e,n)),t[r]},set:function(t){var e=i._computeds;e[r]=o.set?o.set.call(i,t):t,w(e[r])&&delete e[r]}})})(this,e,t[e])},t.prototype._initProps=function(t){for(var e in t=t||li(this.$options,this.$name))w(t[e])||(this.$props[e]=t[e]);var n=[this.$options.computed,this.$options.methods];for(e in this.$props)e in t&&(e=>n.every(function(t){return!t||!j(t,e)}))(e)&&(this[e]=this.$props[e])},t.prototype._initEvents=function(){var n=this,t=(this._events=[],this.$options.events);t&&t.forEach(function(t){if(j(t,"handler"))di(n,t);else for(var e in t)di(n,t[e],e)})},t.prototype._unbindEvents=function(){this._events.forEach(function(t){return t()}),delete this._events},t.prototype._initObservers=function(){var t,e,n;this._observers=[(e=(t=this).$options.el,(n=new MutationObserver(function(){return t.$emit()})).observe(e,{childList:!0,subtree:!0}),n),(e=>{var i,r=e.$name,o=e.$options,s=e.$props,t=o.attrs,n=o.props,a=o.el;if(n&&!1!==t)return t=(i=tt(t)?t:Object.keys(n)).map(function(t){return F(t)}).concat(r),(n=new MutationObserver(function(t){var n=li(o,r);t.some(function(t){var e=t.attributeName;return((t=e.replace("data-",""))===r?i:[W(t),W(e)]).some(function(t){return!w(n[t])&&n[t]!==s[t]})})&&e.$reset()})).observe(a,{attributes:!0,attributeFilter:t.concat(t.map(function(t){return"data-"+t}))}),n})(this)]},t.prototype._disconnectObservers=function(){this._observers.forEach(function(t){return t&&t.disconnect()})},ri=(ii=Zn).data,oi={},ii.component=function(s,t){var e=F(s);if(s=W(e),!t)return rt(oi[s])&&(oi[s]=ii.extend(oi[s])),oi[s];ii[s]=function(t,n){for(var e=arguments.length,i=Array(e);e--;)i[e]=arguments[e];var r=ii.component(s);return r.options.functional?new r({data:rt(t)?t:[].concat(i)}):t?a(t).map(o)[0]:o(t);function o(t){var e=ii.getComponent(t,s);if(e){if(!n)return e;e.$destroy()}return new r({el:t,data:n})}};var n=rt(t)?p({},t):t.options;return n.name=s,n.install&&n.install(ii,n,s),ii._initialized&&!n.functional&&P.read(function(){return ii[s]("[uk-"+e+"],[data-uk-"+e+"]")}),oi[s]=rt(t)?n:t},ii.getComponents=function(t){return t&&t[ri]||{}},ii.getComponent=function(t,e){return ii.getComponents(t)[e]},ii.connect=function(t){if(t[ri])for(var e in t[ri])t[ri][e]._callConnected();for(var n=0;n<t.attributes.length;n++){var i=ui(t.attributes[n].name);i&&i in oi&&ii[i](t)}},ii.disconnect=function(t){for(var e in t[ri])t[ri][e]._callDisconnected()},ai=(si=Zn).data,si.prototype.$create=function(t,e,n){return si[t](e,n)},si.prototype.$mount=function(t){var e=this.$options.name;t[ai]||(t[ai]={}),t[ai][e]||((t[ai][e]=this).$el=this.$options.el=this.$options.el||t,h(t,document)&&this._callConnected())},si.prototype.$reset=function(){this._callDisconnected(),this._callConnected()},si.prototype.$destroy=function(t){void 0===t&&(t=!1);var e=(n=this.$options).el,n=n.name;e&&this._callDisconnected(),this._callHook("destroy"),e&&e[ai]&&(delete e[ai][n],ft(e[ai])||delete e[ai],t)&&De(this.$el)},si.prototype.$emit=function(t){this._callUpdate(t)},si.prototype.$update=function(t,e){void 0===t&&(t=this.$el),si.update(t,e)},si.prototype.$getComponent=si.getComponent,ci=At(function(t){return si.prefix+F(t)}),Object.defineProperties(si.prototype,{$container:Object.getOwnPropertyDescriptor(si,"container"),$name:{get:function(){return ci(this.$options.name)}}});var t={connected:function(){A(this.$el,this.$name)||C(this.$el,this.$name)}},pi={props:{cls:Boolean,animation:"list",duration:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,origin:!1,transition:"linear",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave",initProps:{overflow:"",height:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:""},hideProps:{overflow:"hidden",height:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0}},computed:{hasAnimation:function(t){return!!t.animation[0]},hasTransition:function(t){return t=t.animation,this.hasAnimation&&!0===t[0]}},methods:{toggleElement:function(e,s,a){var c=this;return new E(function(t){return E.all(u(e).map(function(t){var o,e,n,i=ht(s)?s:!c.isToggled(t);return I(t,"before"+(i?"show":"hide"),[c])?(e=(et(a)?a:!1!==a&&c.hasAnimation?c.hasTransition?mi(c):(o=c,function(t,e){an.cancel(t);var n=o.animation,i=o.duration,r=o._toggle;return e?(r(t,!0),an.in(t,n[0],i,o.origin)):an.out(t,n[1]||n[0],i,o.origin).then(function(){return r(t,!1)})}):c._toggle)(t,i),n=i?c.clsEnter:c.clsLeave,C(t,n),I(t,i?"show":"hide",[c]),e?e.then(r,function(){return _(t,n),E.reject()}):r()):E.reject();function r(){_(t,n),I(t,i?"shown":"hidden",[c]),c.$update(t)}})).then(t,m)})},isToggled:function(t){return!!A(t=void 0===t?this.$el:t,this.clsEnter)||!A(t,this.clsLeave)&&(this.cls?A(t,this.cls.split(" ")[0]):!Mt(t,"hidden"))},_toggle:function(t,e){var n;t&&(e=Boolean(e),this.cls?(n=v(this.cls," ")||e!==A(t,this.cls))&&M(t,this.cls,v(this.cls," ")?void 0:e):(n=e===t.hidden)&&(t.hidden=!e),a("[autofocus]",t).some(function(t){return x(t)?t.focus()||!0:t.blur()}),n)&&(I(t,"toggled",[e,this]),this.$update(t))}}};function mi(t){var o=t.isToggled,s=t.duration,a=t.initProps,c=t.hideProps,u=t.transition,h=t._toggle;return function(t,e){var n=N.inProgress(t),i=t.hasChildNodes?b(z(t.firstElementChild,"marginTop"))+b(z(t.lastElementChild,"marginBottom")):0,r=x(t)?O(t)+(n?0:i):0;return N.cancel(t),o(t)||h(t,!0),O(t,""),P.flush(),i=O(t)+(n?0:i),O(t,r),(e?N.start(t,p({},a,{overflow:"hidden",height:i}),Math.round(s*(1-r/i)),u):N.start(t,c,Math.round(s*(r/i)),u).then(function(){return h(t,!1)})).then(function(){return z(t,a)})}}var gi={mixins:[t,pi],props:{targets:String,active:null,collapsible:Boolean,multiple:Boolean,toggle:String,content:String,transition:String,offset:Number},data:{targets:"> *",active:!1,animation:[!0],collapsible:!0,multiple:!1,clsOpen:"uk-open",toggle:"> .uk-accordion-title",content:"> .uk-accordion-content",transition:"ease",offset:0},computed:{items:{get:function(t,e){return a(t.targets,e)},watch:function(t,e){var n=this;t.forEach(function(t){return vi(s(n.content,t),!A(t,n.clsOpen))}),e||A(t,this.clsOpen)||(t=!1!==this.active&&t[Number(this.active)]||!this.collapsible&&t[0])&&this.toggle(t,!1)},immediate:!0},toggles:function(t){var e=t.toggle;return this.items.map(function(t){return s(e,t)})}},events:[{name:"click",delegate:function(){return this.targets+" "+this.$props.toggle},handler:function(t){t.preventDefault(),this.toggle(ee(this.toggles,t.current))}}],methods:{toggle:function(t,r){var o=this,e=[this.items[_t(t,this.items)]],t=Kt(this.items,"."+this.clsOpen);this.multiple||v(t,e[0])||(e=e.concat(t)),!this.collapsible&&t.length<2&&!Kt(e,":not(."+this.clsOpen+")").length||e.forEach(function(t){return o.toggleElement(t,!A(t,o.clsOpen),function(e,n){M(e,o.clsOpen,n),l(s(o.$props.toggle,e),"aria-expanded",n);var i=s((e._wrapper?"> * ":"")+o.content,e);if(!1!==r&&o.hasTransition)return e._wrapper||(e._wrapper=Oe(i,"<div"+(n?" hidden":"")+">")),vi(i,!1),mi(o)(e._wrapper,n).then(function(){var t;vi(i,!n),delete e._wrapper,He(i),n&&!Hn(t=s(o.$props.toggle,e))&&jn(t,{offset:o.offset})});vi(i,!n)})})}}};function vi(t,e){t&&(t.hidden=e)}var o,wi={mixins:[t,pi],args:"animation",props:{close:String},data:{animation:[!0],selClose:".uk-alert-close",duration:150,hideProps:p({opacity:0}
3166,pi.data.hideProps)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.close()}}],methods:{close:function(){var t=this;this.toggleElement(this.$el).then(function(){return t.$destroy(!0)})}}},bi={mixins:[t,io={args:"autoplay",props:{automute:Boolean,autoplay:Boolean},data:{automute:!1,autoplay:!0},computed:{inView:function(t){return"inview"===t.autoplay}},connected:function(){this.inView&&!Mt(this.$el,"preload")&&(this.$el.preload="none"),this.automute&&_n(this.$el)},update:{read:function(){return{visible:x(this.$el)&&"hidden"!==z(this.$el,"visibility"),inView:this.inView&&Hn(this.$el)}},write:function(t){var e=t.visible,t=t.inView;!e||this.inView&&!t?Cn(this.$el):(!0===this.autoplay||this.inView&&t)&&Tn(this.$el)},events:["resize","scroll"]}}],props:{width:Number,height:Number},data:{automute:!0},update:{read:function(){var t=this.$el,e=(t=>{for(;t=y(t);)if("static"!==z(t,"position"))return t})(t)||y(t),n=e.offsetHeight;return!(!(n=Ct.cover({width:this.width||t.naturalWidth||t.videoWidth||t.clientWidth,height:this.height||t.naturalHeight||t.videoHeight||t.clientHeight},{width:(e=e.offsetWidth)+(e%2?1:0),height:n+(n%2?1:0)})).width||!n.height)&&n},write:function(t){var e=t.height,t=t.width;z(this.$el,{height:e,width:t})},events:["resize"]}},xi={props:{container:Boolean},data:{container:!0},computed:{container:function(t){return!0===(t=t.container)&&this.$container||t&&s(t)}}},yi={props:{pos:String,offset:null,flip:Boolean,clsPos:String},data:{pos:"bottom-"+(f?"right":"left"),flip:!0,offset:!1,clsPos:""},computed:{pos:function(t){return((t=t.pos)+(v(t,"-")?"":"-center")).split("-")},dir:function(){return this.pos[0]},align:function(){return this.pos[1]}},methods:{positionAt:function(t,e,n){Re(t,this.clsPos+"-(top|bottom|left|right)(-[a-z]+)?");var i,r=this.offset,o=this.getAxis();dt(r)||(r=(i=s(r))?D(i)["x"===o?"left":"top"]-D(e)["x"===o?"right":"bottom"]:0),n=(r=Yn(t,e,"x"===o?pn(this.dir)+" "+this.align:this.align+" "+pn(this.dir),"x"===o?this.dir+" "+this.align:this.align+" "+this.dir,"x"===o?""+("left"===this.dir?-r:r):" "+("top"===this.dir?-r:r),null,this.flip,n).target).x,r=r.y,this.dir="x"===o?n:r,this.align="x"===o?r:n,M(t,this.clsPos+"-"+this.dir+"-"+this.align,!1===this.offset)},getAxis:function(){return"top"===this.dir||"bottom"===this.dir?"y":"x"}}},ki={mixins:[xi,yi,pi],args:"pos",props:{mode:"list",toggle:Boolean,boundary:Boolean,boundaryAlign:Boolean,delayShow:Number,delayHide:Number,clsDrop:String},data:{mode:["click","hover"],toggle:"- *",boundary:!0,boundaryAlign:!1,delayShow:0,delayHide:800,clsDrop:!1,animation:["uk-animation-fade"],cls:"uk-open",container:!1},computed:{boundary:function(t,e){return!0===(t=t.boundary)?window:ne(t,e)},clsDrop:function(t){return t.clsDrop||"uk-"+this.$options.name},clsPos:function(){return this.clsDrop}},created:function(){this.tracker=new kn},connected:function(){C(this.$el,this.clsDrop),this.toggle&&!this.target&&(this.target=this.$create("toggle",ne(this.toggle,this.$el),{target:this.$el,mode:this.mode}))},disconnected:function(){this.isActive()&&(o=null)},events:[{name:"click",delegate:function(){return"."+this.clsDrop+"-close"},handler:function(t){t.preventDefault(),this.hide(!1)}},{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){var e=t.defaultPrevented,t=t.current.hash;e||!t||h(t,this.$el)||this.hide(!1)}},{name:"beforescroll",handler:function(){this.hide(!1)}},{name:"toggle",self:!0,handler:function(t,e){t.preventDefault(),this.isToggled()?this.hide(!1):this.show(e.$el,!1)}},{name:"toggleshow",self:!0,handler:function(t,e){t.preventDefault(),this.show(e.$el)}},{name:"togglehide",self:!0,handler:function(t){t.preventDefault(),this.hide()}},{name:Wt+" focusin",filter:function(){return v(this.mode,"hover")},handler:function(t){ke(t)||this.clearTimers()}},{name:Vt+" focusout",filter:function(){return v(this.mode,"hover")},handler:function(t){!ke(t)&&t.relatedTarget&&this.hide()}},{name:"toggled",self:!0,handler:function(t,e){e&&(this.clearTimers(),this.position())}},{name:"show",self:!0,handler:function(){var r=this;(o=this).tracker.init(),S(this.$el,"hide",$(document,Lt,function(t){var i=t.target;return!h(i,r.$el)&&S(document,Ft+" "+Rt+" scroll",function(t){var e=t.defaultPrevented,n=t.type,t=t.target;e||n!==Ft||i!==t||r.target&&h(i,r.target)||r.hide(!1)},!0)}),{self:!0}),S(this.$el,"hide",$(document,"keydown",function(t){27===t.keyCode&&r.hide(!1)}),{self:!0})}},{name:"beforehide",self:!0,handler:function(){this.clearTimers()}},{name:"hide",handler:function(t){t=t.target,this.$el===t?(o=this.isActive()?null:o,this.tracker.cancel()):o=null===o&&h(t,this.$el)&&this.isToggled()?this:o}}],update:{write:function(){this.isToggled()&&!A(this.$el,this.clsEnter)&&this.position()},events:["resize"]},methods:{show:function(t,e){var n,i=this;if(void 0===t&&(t=this.target),void 0===e&&(e=!0),this.isToggled()&&t&&this.target&&t!==this.target&&this.hide(!1),this.target=t,this.clearTimers(),!this.isActive()){if(o){if(e&&o.isDelaying)return void(this.showTimer=setTimeout(this.show,10));for(;o&&n!==o&&!h(this.$el,o.$el);)(n=o).hide(!1)}this.container&&y(this.$el)!==this.container&&T(this.container,this.$el),this.showTimer=setTimeout(function(){return i.toggleElement(i.$el,!0)},e&&this.delayShow||0)}},hide:function(t){var e,n,i=this;function r(){return i.toggleElement(i.$el,!1,!1)}void 0===t&&(t=!0),this.clearTimers(),this.isDelaying=(e=this.$el,n=[],We(e,function(t){return"static"!==z(t,"position")&&n.push(t)}),n.some(function(t){return i.tracker.movesTo(t)})),t&&this.isDelaying?this.hideTimer=setTimeout(this.hide,50):t&&this.delayHide?this.hideTimer=setTimeout(r,this.delayHide):r()},clearTimers:function(){clearTimeout(this.showTimer),clearTimeout(this.hideTimer),this.showTimer=null,this.hideTimer=null,this.isDelaying=!1},isActive:function(){return o===this},position:function(){_(this.$el,this.clsDrop+"-stack"),M(this.$el,this.clsDrop+"-boundary",this.boundaryAlign);var t,e=D(this.boundary),n=this.boundaryAlign?e:D(this.target);
3166"justify"===this.align?(t="y"===this.getAxis()?"width":"height",z(this.$el,t,n[t])):this.boundary&&this.$el.offsetWidth>Math.max(e.right-n.left,n.right-e.left)&&C(this.$el,this.clsDrop+"-stack"),this.positionAt(this.$el,this.boundaryAlign?this.boundary:this.target,this.boundary)}}},$i={mixins:[t],args:"target",props:{target:Boolean},data:{target:!1},computed:{input:function(t,e){return s(Yt,e)},state:function(){return this.input.nextElementSibling},target:function(t,e){return(t=t.target)&&(!0===t&&y(this.input)===e&&this.input.nextElementSibling||ne(t,e))}},update:function(){var t,e,n=this.target,i=this.input;n&&n[e=Xt(n)?"value":"textContent"]!==(i=i.files&&i.files[0]?i.files[0].name:d(i,"select")&&(t=a("option",i).filter(function(t){return t.selected})[0])?t.textContent:i.value)&&(n[e]=i)},events:[{name:"change",handler:function(){this.$update()}},{name:"reset",el:function(){return Qt(this.$el,"form")},handler:function(){this.$update()}}]},Si={update:{read:function(t){var e=Hn(this.$el);if(!e||t.isInView===e)return!1;t.isInView=e},write:function(){this.$el.src=""+this.$el.src},events:["scroll","resize"]}},Ii={props:{margin:String,firstColumn:Boolean},data:{margin:"uk-margin-small-top",firstColumn:"uk-first-column"},update:{read:function(){var t=Ei(this.$el.children);return{rows:t,columns:(t=>{for(var e=[],n=0;n<t.length;n++)for(var i=Ti(t[n],"left","right"),r=0;r<i.length;r++)e[r]=e[r]?e[r].concat(i[r]):i[r];return f?e.reverse():e})(t)}},write:function(t){for(var e=t.columns,n=t.rows,i=0;i<n.length;i++)for(var r=0;r<n[i].length;r++)M(n[i][r],this.margin,0!==i),M(n[i][r],this.firstColumn,!!~e[0].indexOf(n[i][r]))},events:["resize"]}};function Ei(t){return Ti(t,"top","bottom")}function Ti(t,e,n){for(var i=[[]],r=0;r<t.length;r++){var o=t[r];if(x(o))for(var s=Ci(o),a=i.length-1;0<=a;a--){var c=i[a];if(!c[0]){c.push(o);break}var u=c[0].offsetParent===o.offsetParent?Ci(c[0]):(s=Ci(o,!0),Ci(c[0],!0));if(s[e]>=u[n]-1&&s[e]!==u[e]){i.push([o]);break}if(s[n]-1>u[e]||s[e]===u[e]){c.push(o);break}if(0===a){i.unshift([o]);break}}}return i}function Ci(t,e){var n=t.offsetTop,i=t.offsetLeft,r=t.offsetHeight,o=t.offsetWidth;return(e=void 0!==e&&e)&&(n=(t=hn(t))[0],i=t[1]),{top:n,left:i,bottom:n+r,right:i+o}}var _i={extends:Ii,mixins:[t],name:"grid",props:{masonry:Boolean,parallax:Number},data:{margin:"uk-grid-margin",clsStack:"uk-grid-stack",masonry:!1,parallax:0},connected:function(){this.masonry&&C(this.$el,"uk-flex-top uk-flex-wrap-top")},update:[{write:function(t){t=t.columns,M(this.$el,this.clsStack,t.length<2)},events:["resize"]},{read:function(t){var e,r,n,i,o,s,a,c,u=t.columns,h=t.rows;return!u.length||!this.masonry&&!this.parallax||Ai(this.$el)?t.translates=!1:(n=!1,i=k(this.$el),o=u.map(function(t){return t.reduce(function(t,e){return t+e.offsetHeight},0)}),e=this.margin,s=b((i=(t=i).filter(function(t){return A(t,e)})[0])?z(i,"marginTop"):z(t[0],"paddingLeft"))*(h.length-1),a=Math.max.apply(Math,o)+s,this.masonry&&(t=u=u.map(function(t){return $t(t,"offsetTop")}),r=h.map(function(t){return Math.max.apply(Math,t.map(function(t){return t.offsetHeight}))}),n=t.map(function(n){var i=0;return n.map(function(t,e){return i+=e?r[e-1]-n[e-1].offsetHeight:0})})),{padding:c=(c=Math.abs(this.parallax))&&o.reduce(function(t,e,n){return Math.max(t,e+s+(n%2?c:c/8)-a)},0),columns:u,translates:n,height:n?a:""})},write:function(t){var e=t.height,t=t.padding;z(this.$el,"paddingBottom",t||""),!1!==e&&z(this.$el,"height",e)},events:["resize"]},{read:function(t){return t=t.height,!Ai(this.$el)&&{scrolled:!!this.parallax&&Fn(this.$el,t?t-O(this.$el):0)*Math.abs(this.parallax)}},write:function(t){var e=t.columns,i=t.scrolled,r=t.translates;!1===i&&!r||e.forEach(function(t,n){return t.forEach(function(t,e){return z(t,"transform",i||r?"translateY("+((r&&-r[n][e])+(i?n%2?i:i/8:0))+"px)":"")})})},events:["scroll","resize"]}]};function Ai(t){return k(t).some(function(t){return"absolute"===z(t,"position")})}var Mi={mixins:[yr=Dt?{props:{selMinHeight:String},data:{selMinHeight:!1,forceHeight:!1},computed:{elements:function(t,e){return(t=t.selMinHeight)?a(t,e):[e]}},update:[{read:function(){z(this.elements,"height","")},order:-5,events:["resize"]},{write:function(){var n=this;
3166this.elements.forEach(function(t){var e=b(z(t,"minHeight"));e&&(n.forceHeight||Math.round(e+fn(t,"height","content-box"))>=t.offsetHeight)&&z(t,"height",e)})},order:5,events:["resize"]}]}:{}],args:"target",props:{target:String,row:Boolean},data:{target:"> *",row:!0,forceHeight:!0},computed:{elements:function(t,e){return a(t.target,e)}},update:{read:function(){return{rows:(this.row?Ei(this.elements):[this.elements]).map(zi)}},write:function(t){t.rows.forEach(function(t){var n=t.heights;return t.elements.forEach(function(t,e){return z(t,"minHeight",n[e])})})},events:["resize"]}};function zi(t){var n,i,e,r;return t.length<2?{heights:[""],elements:t}:(n=t.map(Ni),i=Math.max.apply(Math,n),e=t.some(function(t){return t.style.minHeight}),r=t.some(function(t,e){return!t.style.minHeight&&n[e]<i}),e&&r&&(z(t,"minHeight",""),n=t.map(Ni),i=Math.max.apply(Math,n)),{heights:n=t.map(function(t,e){return n[e]===i&&b(t.style.minHeight).toFixed(2)!==i.toFixed(2)?"":i}),elements:t})}function Ni(t){var e=!1,n=(x(t)||(e=t.style.display,z(t,"display","block","important")),B(t).height-fn(t,"height","content-box"));return!1!==e&&z(t,"display",e),n}var Bi={mixins:[yr],props:{expand:Boolean,offsetTop:Boolean,offsetBottom:Boolean,minHeight:Number},data:{expand:!1,offsetTop:!1,offsetBottom:!1,minHeight:0},update:{read:function(t){var e,n,i=t.minHeight;return!!x(this.$el)&&(e="",n=fn(this.$el,"height","content-box"),this.expand?e=O(window)-(B(document.documentElement).height-B(this.$el).height)-n||"":(e="calc(100vh",this.offsetTop&&(e+=0<(t=D(this.$el).top)&&t<O(window)/2?" - "+t+"px":""),!0===this.offsetBottom?e+=" - "+B(this.$el.nextElementSibling).height+"px":dt(this.offsetBottom)?e+=" - "+this.offsetBottom+"vh":this.offsetBottom&&Y(this.offsetBottom,"px")?e+=" - "+b(this.offsetBottom)+"px":g(this.offsetBottom)&&(e+=" - "+B(ne(this.offsetBottom,this.$el)).height+"px"),e+=(n?" - "+n+"px":"")+")"),{minHeight:e,prev:i})},write:function(t){var e=t.minHeight,t=t.prev;z(this.$el,{minHeight:e}),e!==t&&this.$update(this.$el,"resize"),this.minHeight&&b(z(this.$el,"minHeight"))<this.minHeight&&z(this.$el,"minHeight",this.minHeight)},events:["resize"]}},Di={args:"src",props:{id:Boolean,icon:String,src:String,style:String,width:Number,height:Number,ratio:Number,class:String,strokeAnimation:Boolean,focusable:Boolean,attributes:"list"},data:{ratio:1,include:["style","class","focusable"],class:"",strokeAnimation:!1},beforeConnect:function(){this.class+=" uk-svg"},connected:function(){var t,r=this;!this.icon&&v(this.src,"#")&&(t=this.src.split("#"),this.src=t[0],this.icon=t[1]),this.svg=this.getSvg().then(function(t){var e,n,i;if(r._connected)return e=t,i=Ut(n=r.$el)||"CANVAS"===n.tagName?(n.hidden=!0,ji(e,i=n.nextElementSibling)?i:Ne(n,e)):ji(e,i=n.lastElementChild)?i:T(n,e),r.svgEl&&i!==r.svgEl&&De(r.svgEl),r.applyAttributes(i,t),r.$emit(),r.svgEl=i},m)},disconnected:function(){var e=this;this.svg.then(function(t){e._connected||(Ut(e.$el)&&(e.$el.hidden=!1),De(t),e.svgEl=null)}),this.svg=null},update:{read:function(){return!!(this.strokeAnimation&&this.svgEl&&x(this.svgEl))},write:function(){var t,e=this.svgEl;(t=Li(e))&&e.style.setProperty("--uk-animation-stroke",t)},type:["resize"]},methods:{getSvg:function(){var n=this;return Oi(this.src).then(function(t){return t=t,e=n.icon,(t=s((t=e&&v(t,"<symbol")?((t,e)=>{var n;if(!Hi[t])for(Hi[t]={},Pi.lastIndex=0;n=Pi.exec(t);)Hi[t][n[3]]='<svg xmlns="http://www.w3.org/2000/svg"'+n[1]+"svg>";return Hi[t][e]})(t,e)||t:t).substr(t.indexOf("<svg"))))&&t.hasChildNodes()&&t||E.reject("SVG not found.");var e})},applyAttributes:function(n,e){var t,i,r=this;for(t in this.$options.props)v(this.include,t)&&t in this&&l(n,t,this[t]);for(i in this.attributes){var o=this.attributes[i].split(":",2),s=o[0];l(n,s,o[1])}this.id||zt(n,"id");var a=["width","height"],c=a.map(function(t){return r[t]}),u=(c.some(function(t){return t})||(c=a.map(function(t){return l(e,t)})),l(e,"viewBox"));(c=u&&!c.some(function(t){return t})?u.split(" ").slice(2):c).forEach(function(t,e){return l(n,a[e],b(t)*r.ratio||null)})}}},Oi=At(function(n){return new E(function(e,t){n?q(n,"data:")?e(decodeURIComponent(n.split(",")[1])):Ce(n).then(function(t){return e(t.response)},function(){return t("SVG not found.")}):t()})}),Pi=/<symbol([^]*?id=(['"])(.+?)\2[^]*?<\/)symbol>/g,Hi={};function Li(t){return Math.ceil(Math.max.apply(Math,[0].concat(a("[stroke]",t).map(function(t){try{return t.getTotalLength()}catch(t){return 0}}))))}function ji(t,e){return Fi(t)&&Fi(e)&&Wi(t)===Wi(e)}function Fi(t){return t&&"svg"===t.tagName}function Wi(t){return(t.innerHTML||(new XMLSerializer).serializeToString(t).replace(/<svg.*?>(.*?)<\/svg>/g,"$1")).replace(/\s/g,"")}var Vi={spinner:'<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" cx="15" cy="15" r="14"/></svg>
3166',totop:'<svg width="18" height="10" viewBox="0 0 18 10" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 9 9 1 17 9 "/></svg>',marker:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect x="9" y="4" width="1" height="11"/><rect x="4" y="9" width="11" height="1"/></svg>',"close-icon":'<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.1" x1="1" y1="1" x2="13" y2="13"/><line fill="none" stroke="#000" stroke-width="1.1" x1="13" y1="1" x2="1" y2="13"/></svg>',"close-large":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><line fill="none" stroke="#000" stroke-width="1.4" x1="1" y1="1" x2="19" y2="19"/><line fill="none" stroke="#000" stroke-width="1.4" x1="19" y1="1" x2="1" y2="19"/></svg>',"navbar-toggle-icon":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect y="9" width="20" height="2"/><rect y="3" width="20" height="2"/><rect y="15" width="20" height="2"/></svg>',"overlay-icon":'<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><rect x="19" y="0" width="1" height="40"/><rect x="0" y="19" width="40" height="1"/></svg>',"pagination-next":'<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="1 1 6 6 1 11"/></svg>',"pagination-previous":'<svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.2" points="6 1 1 6 6 11"/></svg>',"search-icon":'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.1" cx="9" cy="9" r="7"/><path fill="none" stroke="#000" stroke-width="1.1" d="M14,14 L18,18 L14,14 Z"/></svg>',"search-large":'<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.8" cx="17.5" cy="17.5" r="16.5"/><line fill="none" stroke="#000" stroke-width="1.8" x1="38" y1="39" x2="29" y2="30"/></svg>',"search-navbar":'<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="#000" stroke-width="1.1" cx="10.5" cy="10.5" r="9.5"/><line fill="none" stroke="#000" stroke-width="1.1" x1="23" y1="23" x2="17" y2="17"/></svg>',"slidenav-next":'<svg width="14" height="24" viewBox="0 0 14 24" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="1.225,23 12.775,12 1.225,1 "/></svg>',"slidenav-next-large":'<svg width="25" height="40" viewBox="0 0 25 40" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="2" points="4.002,38.547 22.527,20.024 4,1.5 "/></svg>',"slidenav-previous":'<svg width="14" height="24" viewBox="0 0 14 24" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="1.4" points="12.775,1 1.225,12 12.775,23 "/></svg>',"slidenav-previous-large":'<svg width="25" height="40" viewBox="0 0 25 40" xmlns="http://www.w3.org/2000/svg"><polyline fill="none" stroke="#000" stroke-width="2" points="20.527,1.5 2,20.024 20.525,38.547 "/></svg>'},Ri={install:function(r){r.icon.add=function(t,e){var n,i=g(t)?((n={})[t]=e,n):t;kt(i,function(t,e){Vi[e]=t,delete Gi[e]}),r._initialized&&We(document.body,function(t){return kt(r.getComponents(t),function(t){t.$options.isIcon&&t.icon in i&&t.$reset()})})}},extends:Di,args:"icon",props:["icon"],data:{include:["focusable"]},isIcon:!0,beforeConnect:function(){C(this.$el,"uk-icon")},methods:{getSvg:function(){t=this.icon;var t,e=Vi[t]?(Gi[t]||(Gi[t]=s((Vi[e=t,f?xt(xt(e,"left","right"),"previous","next"):e]||Vi[t]).trim())),Gi[t].cloneNode(!0)):null;return e?E.resolve(e):E.reject("Icon not found.")}}},qi={extends:qr={args:!1,extends:Ri,data:function(t){return{icon:F(t.constructor.options.name)}},beforeConnect:function(){C(this.$el,this.$name)}},beforeConnect:function(){C(this.$el,"uk-slidenav")},computed:{icon:function(t,e){return t=t.icon,A(e,"uk-slidenav-large")?t+"-large":t}}},Ui={extends:qr,computed:{icon:function(t,e){return t=t.icon,A(e,"uk-search-icon")&&te(e,".uk-search-large").length?"search-large":te(e,".uk-search-navbar").length?"search-navbar":t}}},Yi={extends:qr,computed:{icon:function(){return"close-"+(A(this.$el,"uk-close-large")?"large":"icon")}}},Xi={extends:qr,connected:function(){var e=this;this.svg.then(function(t){return t&&1!==e.ratio&&z(s("circle",t),"strokeWidth",1/e.ratio)})}},Gi={},Ki={args:"dataSrc",props:{dataSrc:String,dataSrcset:Boolean,sizes:String,width:Number,height:Number,offsetTop:String,offsetLeft:String,target:String},data:{dataSrc:"",dataSrcset:!1,sizes:!1,width:!1,height:!1,offsetTop:"50vh",offsetLeft:"50vw",target:!1},computed:{cacheKey:function(t){return t=t.dataSrc,this.$name+"."+t},width:function(t){var e=t.width,t=t.dataWidth;return e||t},height:function(t){var e=t.height,t=t.dataHeight;return e||t},sizes:function(t){var e=t.sizes,t=t.dataSizes;return e||t},isImg:function(t,e){return ir(e)},target:{get:function(t){return t=t.target,[this.$el].concat(ie(t,this.$el))},watch:function(){this.observe()}},offsetTop:function(t){return mn(t.offsetTop,"height")},offsetLeft:function(t){return mn(t.offsetLeft,"width")}},connected:function(){var t,e,n;window.IntersectionObserver?(or[this.cacheKey]?Ji(this.$el,or[this.cacheKey],this.dataSrcset,this.sizes):this.isImg&&this.width&&this.height&&Ji(this.$el,(t=this.width,e=this.height,(n=this.sizes)&&(t=(n=Ct.ratio({width:t,height:e},"width",mn(Qi(n)))).width,e=n.height),'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="'+t+'" height="'+e+'"></svg>')),this.observer=new IntersectionObserver(this.load,{rootMargin:this.offsetTop+"px "+this.offsetLeft+"px"}),requestAnimationFrame(this.observe)):Ji(this.$el,this.dataSrc,this.dataSrcset,this.sizes)},disconnected:function(){this.observer&&this.observer.disconnect()},update:{read:function(t){var e=this,t=t.image;return!!this.observer&&(t||"complete"!==document.readyState||this.load(this.observer.takeRecords()),!this.isImg)&&void(t&&t.then(function(t){return t&&""!==t.currentSrc&&Ji(e.$el,rr(t))}))},write:function(t){var e,n,i;this.dataSrcset&&1!==window.devicePixelRatio&&((n=z(this.$el,"backgroundSize")).match(/^(auto\s?)+$/)||b(n)===t.bgSize)&&(t.bgSize=(e=this.dataSrcset,n=this.sizes,i=mn(Qi(n)),(e=(e.match(nr)||[]).map(b).sort(function(t,e){return t-e})).filter(function(t){return i<=t})[0]||e.pop()||""),z(this.$el,"backgroundSize",t.bgSize+"px"))},events:["resize"]},methods:{load:function(t){var e=this;t.some(function(t){return w(t.isIntersecting)||t.isIntersecting})&&(this._data.image=_e(this.dataSrc,this.dataSrcset,this.sizes).then(function(t){return Ji(e.$el,rr(t),t.srcset,t.sizes),or[e.cacheKey]=rr(t),t},function(t){return I(e.$el,new t.constructor(t.type,t))}),this.observer.disconnect())},observe:function(){var e=this;this._connected&&!this._data.image&&this.target.forEach(function(t){return e.observer.observe(t)})}}};function Ji(n,t,e,i){var r;ir(n)?((r=function(t,e){e&&e!==n[t]&&(n[t]=e)})("sizes",i),r("srcset",e),r("src",t)):t&&!v(n.style.backgroundImage,t)&&(z(n,"backgroundImage","url("+pe(t)+")"),I(n,ge("load",!1)))}var Zi=/\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;function Qi(t){var e,n;for(Zi.lastIndex=0;e=Zi.exec(t);)if(!e[1]||window.matchMedia(e[1]).matches){e=q(n=e[2],"calc")?n.slice(5,-1).replace(tr,function(t){return mn(t)}).replace(/ /g,"").match(er).reduce(function(t,e){return t+ +e},0):n;break}return e||"100vw"}var tr=/\d+(?:\w+|%)/g,er=/[+-]?(\d+)/g,nr=/\s+\d+w\s*(?:,|$)/g;function ir(t){return"IMG"===t.tagName}function rr(t){return t.currentSrc||t.src}var or,sr="__test__";try{(or=window.sessionStorage||{})[sr]=1,delete or[sr]}catch(fr){or={}}var ar={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var t=(t=>
3166{if(g(t))if("@"===t[0])t=b(Qe("breakpoint-"+t.substr(1)));else if(isNaN(t))return t;return!(!t||isNaN(t))&&"(min-width: "+t+"px)"})(this.media);return!t||window.matchMedia(t).matches}}},cr={mixins:[t,ar],props:{fill:String},data:{fill:"",clsWrapper:"uk-leader-fill",clsHide:"uk-leader-hide",attrFill:"data-fill"},computed:{fill:function(t){return t.fill||Qe("leader-fill-content")}},connected:function(){var t=Pe(this.$el,'<span class="'+this.clsWrapper+'">');this.wrapper=t[0]},disconnected:function(){He(this.wrapper.childNodes)},update:{read:function(t){var e,n=t.changed,t=t.width;return{width:e=Math.floor(this.$el.offsetWidth/2),fill:this.fill,changed:n||t!==e,hide:!this.matchMedia}},write:function(t){M(this.wrapper,this.clsHide,t.hide),t.changed&&(t.changed=!1,l(this.wrapper,this.attrFill,new Array(t.width).join(t.fill)))},events:["resize"]}},ur=[],hr={mixins:[t,xi,pi],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel:function(t,e){return s(t.selPanel,e)},transitionElement:function(){return this.panel},bgClose:function(t){return t.bgClose&&this.panel}},beforeDisconnect:function(){this.isToggled()&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:function(){return this.selClose},handler:function(t){t.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler:function(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===v(ur,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler:function(t){if(v(ur,this))return!1;!this.stack&&ur.length?(E.all(ur.map(function(t){return t.hide()})).then(this.show),t.preventDefault()):ur.push(this)}},{name:"show",self:!0,handler:function(){var r=this,t=document.documentElement;ln(window)>t.clientWidth&&this.overlay&&z(document.body,"overflowY","scroll"),this.stack&&z(this.$el,"zIndex",b(z(this.$el,"zIndex"))+ur.length),C(t,this.clsPage),this.bgClose&&S(this.$el,"hide",$(document,Lt,function(t){var i=t.target;yt(ur)!==r||r.overlay&&!h(i,r.$el)||h(i,r.panel)||S(document,Ft+" "+Rt+" scroll",function(t){var e=t.defaultPrevented,n=t.type,t=t.target;e||n!==Ft||i!==t||r.hide()},!0)}),{self:!0}),this.escClose&&S(this.$el,"hide",$(document,"keydown",function(t){27===t.keyCode&&yt(ur)===r&&r.hide()}),{self:!0})}},{name:"hidden",self:!0,handler:function(){var e=this;v(ur,this)&&ur.splice(ur.indexOf(this),1),ur.length||z(document.body,"overflowY",""),z(this.$el,"zIndex",""),ur.some(function(t){return t.clsPage===e.clsPage})||_(document.documentElement,this.clsPage)}}],methods:{toggle:function(){return this.isToggled()?this.hide():this.show()},show:function(){var e=this;return this.container&&y(this.$el)!==this.container?(T(this.container,this.$el),new E(function(t){return requestAnimationFrame(function(){return e.show().then(t)})})):this.toggleElement(this.$el,!0,lr(this))},hide:function(){return this.toggleElement(this.$el,!1,lr(this))}}};function lr(t){var s=t.transitionElement,a=t._toggle;return function(r,o){return new E(function(n,i){return S(r,"show hide",function(){r._reject&&r._reject(),r._reject=i,a(r,o);var t=S(s,"transitionstart",function(){S(s,"transitionend transitioncancel",n,{self:!0}),clearTimeout(e)},{self:!0}),e=setTimeout(function(){t(),n()},wt(z(s,"transitionDuration")))})}).then(function(){return delete r._reject})}}function dr(){return s('meta[name="viewport"]',document.head)||T(document.head,'<meta name="viewport">')}kr=".uk-navbar-nav > li > a, .uk-navbar-item, .uk-navbar-toggle";var G={mixins:[t,xi,yr],props:{dropdown:String,mode:"list",align:String,offset:Number,boundary:Boolean,boundaryAlign:Boolean,clsDrop:String,delayShow:Number,delayHide:Number,dropbar:Boolean,dropbarMode:String,dropbarAnchor:Boolean,duration:Number},data:{dropdown:kr,align:f?"right":"left",clsDrop:"uk-navbar-dropdown",mode:void 0,offset:void 0,delayShow:void 0,delayHide:void 0,boundaryAlign:void 0,flip:"x",boundary:!0,dropbar:!1,dropbarMode:"slide",dropbarAnchor:!1,duration:200,forceHeight:!0,selMinHeight:kr,container:!1}
3166,computed:{boundary:function(t,e){var n=t.boundary,t=t.boundaryAlign;return!0===n||t?e:n},dropbarAnchor:function(t,e){return ne(t.dropbarAnchor,e)},pos:function(t){return"bottom-"+t.align},dropbar:{get:function(t){return(t=t.dropbar)?(t=this._dropbar||ne(t,this.$el)||s("+ .uk-navbar-dropbar",this.$el))||(this._dropbar=s("<div></div>")):null},watch:function(t){C(t,"uk-navbar-dropbar")},immediate:!0},dropContainer:function(t,e){return this.container||e},dropdowns:{get:function(t,e){var n=a("."+(t=t.clsDrop),e);return this.container!==e&&a("."+t,this.container).forEach(function(t){return!v(n,t)&&n.push(t)}),n},watch:function(t){var e=this;this.$create("drop",t.filter(function(t){return!e.getDropdown(t)}),p({},this.$props,{boundary:this.boundary,pos:this.pos,offset:this.dropbar||this.offset}))},immediate:!0}},disconnected:function(){this.dropbar&&De(this.dropbar),delete this._dropbar},events:[{name:"mouseover",delegate:function(){return this.dropdown},handler:function(t){var e=t.current;(t=this.getActive())&&t.target&&!h(t.target,e)&&!t.tracker.movesTo(t.$el)&&t.hide(!1)}},{name:"mouseleave",el:function(){return this.dropbar},handler:function(){var t=this.getActive();t&&!this.dropdowns.some(function(t){return d(t,":hover")})&&t.hide()}},{name:"beforeshow",el:function(){return this.dropContainer},filter:function(){return this.dropbar},handler:function(){y(this.dropbar)||Ne(this.dropbarAnchor||this.$el,this.dropbar)}},{name:"show",el:function(){return this.dropContainer},filter:function(){return this.dropbar},handler:function(t,e){var n=e.$el,e=e.dir;A(n,this.clsDrop)&&("slide"===this.dropbarMode&&C(this.dropbar,"uk-navbar-dropbar-slide"),this.clsDrop&&C(n,this.clsDrop+"-dropbar"),"bottom"===e)&&this.transitionTo(n.offsetHeight+b(z(n,"marginTop"))+b(z(n,"marginBottom")),n)}},{name:"beforehide",el:function(){return this.dropContainer},filter:function(){return this.dropbar},handler:function(t,e){var n=e.$el,e=this.getActive();d(this.dropbar,":hover")&&e&&e.$el===n&&t.preventDefault()}},{name:"hide",el:function(){return this.dropContainer},filter:function(){return this.dropbar},handler:function(t,e){var n=e.$el;A(n,this.clsDrop)&&(!(e=this.getActive())||e&&e.$el===n)&&this.transitionTo(0)}}],methods:{getActive:function(){return o&&v(o.mode,"hover")&&h(o.target,this.$el)&&o},transitionTo:function(t,e){var n=this,i=this.dropbar,r=x(i)?O(i):0;return z(e=r<t&&e,"clip","rect(0,"+e.offsetWidth+"px,"+r+"px,0)"),O(i,r),N.cancel([e,i]),E.all([N.start(i,{height:t},this.duration),N.start(e,{clip:"rect(0,"+e.offsetWidth+"px,"+t+"px,0)"},this.duration)]).catch(m).then(function(){z(e,{clip:""}),n.$update(i)})},getDropdown:function(t){return this.$getComponent(t,"drop")||this.$getComponent(t,"dropdown")}}},fr={mixins:[hr],args:"mode",props:{mode:String,flip:Boolean,overlay:Boolean},data:{mode:"slide",flip:!1,overlay:!1,clsPage:"uk-offcanvas-page",clsContainer:"uk-offcanvas-container",selPanel:".uk-offcanvas-bar",clsFlip:"uk-offcanvas-flip",clsContainerAnimation:"uk-offcanvas-container-animation",clsSidebarAnimation:"uk-offcanvas-bar-animation",clsMode:"uk-offcanvas",clsOverlay:"uk-offcanvas-overlay",selClose:".uk-offcanvas-close",container:!1},computed:{clsFlip:function(t){var e=t.flip,t=t.clsFlip;return e?t:""},clsOverlay:function(t){var e=t.overlay,t=t.clsOverlay;return e?t:""},clsMode:function(t){var e=t.mode;return t.clsMode+"-"+e},clsSidebarAnimation:function(t){var e=t.mode,t=t.clsSidebarAnimation;return"none"===e||"reveal"===e?"":t},clsContainerAnimation:function(t){var e=t.mode,t=t.clsContainerAnimation;return"push"!==e&&"reveal"!==e?"":t},transitionElement:function(t){return"reveal"===t.mode?y(this.panel):this.panel}},update:{read:function(){this.isToggled()&&!x(this.$el)&&this.hide()},events:["resize"]},events:[{name:"click",delegate:function(){return'a[href^="#"]'},handler:function(t){var e=t.current.hash;!t.defaultPrevented&&e&&s(e,document.body)&&this.hide()}},{name:"touchstart",passive:!0,el:function(){return this.panel},handler:function(t){1===(t=t.targetTouches).length&&(this.clientY=t[0].clientY)}},{name:"touchmove",self:!0,passive:!1,filter:function(){return this.overlay},handler:function(t){t.cancelable&&t.preventDefault()}},{name:"touchmove",passive:!1,el:function(){return this.panel},handler:function(t){var e,n,i,r;1===t.targetTouches.length&&(e=t.targetTouches[0].clientY-this.clientY,n=(r=this.panel).scrollTop,(i=r.scrollHeight)<=(r=r.clientHeight)||0===n&&0<e||i-n<=r&&e<0)&&t.cancelable&&t.preventDefault()}}
3166,{name:"show",self:!0,handler:function(){"reveal"!==this.mode||A(y(this.panel),this.clsMode)||(Oe(this.panel,"<div>"),C(y(this.panel),this.clsMode)),z(document.documentElement,"overflowY",this.overlay?"hidden":""),C(document.body,this.clsContainer,this.clsFlip),z(document.body,"touch-action","pan-y pinch-zoom"),z(this.$el,"display","block"),C(this.$el,this.clsOverlay),C(this.panel,this.clsSidebarAnimation,"reveal"!==this.mode?this.clsMode:""),O(document.body),C(document.body,this.clsContainerAnimation),this.clsContainerAnimation&&(dr().content+=",user-scalable=0")}},{name:"hide",self:!0,handler:function(){_(document.body,this.clsContainerAnimation),z(document.body,"touch-action","")}},{name:"hidden",self:!0,handler:function(){var t;this.clsContainerAnimation&&((t=dr()).content=t.content.replace(/,user-scalable=0$/,"")),"reveal"===this.mode&&He(this.panel),_(this.panel,this.clsSidebarAnimation,this.clsMode),_(this.$el,this.clsOverlay),z(this.$el,"display",""),_(document.body,this.clsContainer,this.clsFlip),z(document.documentElement,"overflowY","")}},{name:"swipeLeft swipeRight",handler:function(t){this.isToggled()&&Y(t.type,"Left")^this.flip&&this.hide()}}]},Ot={mixins:[t],props:{selContainer:String,selContent:String},data:{selContainer:".uk-modal",selContent:".uk-modal-dialog"},computed:{container:function(t,e){return Qt(e,t.selContainer)}
3166,content:function(t,e){return Qt(e,t.selContent)}},connected:function(){z(this.$el,"minHeight",150)},update:{read:function(){return!!(this.content&&this.container&&x(this.$el))&&{current:b(z(this.$el,"maxHeight")),max:Math.max(150,O(this.container)-(B(this.content).height-O(this.$el)))}},write:function(t){var e=t.current,t=t.max;z(this.$el,"maxHeight",t),Math.round(e)!==Math.round(t)&&I(this.$el,"resize")},events:["resize"]}},Pt={props:{offset:Number},data:{offset:0},methods:{scrollTo:function(t){var e=this;t=t&&s(t)||document.body,I(this.$el,"beforescroll",[this,t])&&jn(t,{offset:this.offset}).then(function(){return I(e.$el,"scrolled",[e,t])})}},events:{click:function(t){t.defaultPrevented||(t.preventDefault(),this.scrollTo("#"+pe(decodeURIComponent((this.$el.hash||"").substr(1)))))}}},pr="_ukScrollspy",mr={args:"cls",props:{cls:String,target:String,hidden:Boolean,offsetTop:Number,offsetLeft:Number,repeat:Boolean,delay:Number},data:function(){return{cls:!1,target:!1,hidden:!0,offsetTop:0,offsetLeft:0,repeat:!1,delay:0,inViewClass:"uk-scrollspy-inview"}},computed:{elements:{get:function(t,e){return(t=t.target)?a(t,e):[e]},watch:function(t){this.hidden&&z(Kt(t,":not(."+this.inViewClass+")"),"visibility","hidden")},immediate:!0}},disconnected:function(){var e=this;this.elements.forEach(function(t){_(t,e.inViewClass,t[pr]?t[pr].cls:""),delete t[pr]})},update:[{read:function(t){var e=this;if(!t.update)return E.resolve().then(function(){e.$emit(),t.update=!0}),!1;this.elements.forEach(function(t){t[pr]||(t[pr]={cls:Nt(t,"uk-scrollspy-class")||e.cls}),t[pr].show=Hn(t,e.offsetTop,e.offsetLeft)})},write:function(n){var i=this;this.elements.forEach(function(t){var e=t[pr];!e.show||e.inview||e.queued?!e.show&&e.inview&&!e.queued&&i.repeat&&i.toggle(t,!1):(e.queued=!0,n.promise=(n.promise||E.resolve()).then(function(){return new E(function(t){return setTimeout(t,i.delay)})}).then(function(){i.toggle(t,!0),setTimeout(function(){e.queued=!1,i.$emit()},300)}))})},events:["scroll","resize"]}],methods:{toggle:function(t,e){var n=t[pr];n.off&&n.off(),z(t,"visibility",!e&&this.hidden?"hidden":""),M(t,this.inViewClass,e),M(t,n.cls),/\buk-animation-/.test(n.cls)&&(n.off=S(t,"animationcancel animationend",function(){return Re(t,"uk-animation-[\\w-]+")})),I(t,e?"inview":"outview"),n.inview=e,this.$update(t)}}},gr={props:{cls:String,closest:String,scroll:Boolean,overflow:Boolean,offset:Number},data:{cls:"uk-active",closest:!1,scroll:!1,overflow:!0,offset:0},computed:{links:{get:function(t,e){return a('a[href^="#"]',e).filter(function(t){return t.hash})},watch:function(t){this.scroll&&this.$create("scroll",t,{offset:this.offset||0})},immediate:!0},targets:function(){return a(this.links.map(function(t){return pe(t.hash).substr(1)}).join(","))},elements:function(t){return t=t.closest,Qt(this.links,t||"*")}},update:[{read:function(){var n,t,e,i,r=this,o=this.targets.length;return!(!o||!x(this.$el))&&(t=(n=Wn(this.targets,/auto|scroll/,!0)[0]).scrollTop,e=n.scrollHeight-Rn(n),i=!1,t===e?i=o-1:(this.targets.every(function(t,e){if(D(t).top-D(Vn(n)).top-r.offset<=0)return i=e,!0}),!1===i&&this.overflow&&(i=0)),{active:i})},write:function(t){var e=t.active,t=!1!==e&&!A(this.elements[e],this.cls);this.links.forEach(function(t){return t.blur()}),_(this.elements,this.cls),C(this.elements[e],this.cls),t&&I(this.$el,"active",[e,this.elements[e]])},events:["scroll","resize"]}]},Jn={mixins:[t,ar],props:{top:null,bottom:Boolean,offset:String,animation:String,clsActive:String,clsInactive:String,clsFixed:String,clsBelow:String,selTarget:String,widthElement:Boolean,showOnUp:Boolean,targetOffset:Number},data:{top:0,bottom:!1,offset:0,animation:"",clsActive:"uk-active",clsInactive:"",clsFixed:"uk-sticky-fixed",clsBelow:"uk-sticky-below",selTarget:"",widthElement:!1,showOnUp:!1,targetOffset:!1},computed:{offset:function(t){return mn(t.offset)},selTarget:function(t,e){return(t=t.selTarget)&&s(t,e)||e},widthElement:function(t,e){return ne(t.widthElement,e)||this.placeholder},isActive:{get:function(){return A(this.selTarget,this.clsActive)},set:function(t){t&&!this.isActive?(qe(this.selTarget,this.clsInactive,this.clsActive),I(this.$el,"active")):t||A(this.selTarget,this.clsInactive)||(qe
3166(this.selTarget,this.clsActive,this.clsInactive),I(this.$el,"inactive"))}}},connected:function(){this.placeholder=s("+ .uk-sticky-placeholder",this.$el)||s('<div class="uk-sticky-placeholder"></div>'),this.isFixed=!1,this.isActive=!1},disconnected:function(){this.isFixed&&(this.hide(),_(this.selTarget,this.clsInactive)),De(this.placeholder),this.placeholder=null,this.widthElement=null},events:[{name:"load hashchange popstate",el:function(){return window},handler:function(){var i,r=this;!1!==this.targetOffset&&location.hash&&0<window.pageYOffset&&(i=s(location.hash))&&P.read(function(){var t=D(i).top,e=D(r.$el).top,n=r.$el.offsetHeight;r.isFixed&&t<=e+n&&e<=t+i.offsetHeight&&Ln(window,t-n-(dt(r.targetOffset)?r.targetOffset:0)-r.offset)})}}],update:[{read:function(t,e){return t=t.height,this.inactive=!this.matchMedia||!x(this.$el),!this.inactive&&(this.isActive&&e.has("resize")&&(this.hide(),t=this.$el.offsetHeight,this.show()),t=this.isActive?t:this.$el.offsetHeight,this.topOffset=D(this.isFixed?this.placeholder:this.$el).top,this.bottomOffset=this.topOffset+t,e=vr("bottom",this),this.top=Math.max(b(vr("top",this)),this.topOffset)-this.offset,this.bottom=e&&e-this.$el.offsetHeight,this.width=B(x(this.widthElement)?this.widthElement:this.$el).width,{height:t,top:hn(this.placeholder)[0],margins:z(this.$el,["marginTop","marginBottom","marginLeft","marginRight"])})},write:function(t){var e=t.height,n=t.margins;z(t=this.placeholder,p({height:e},n)),h(t,document)||(Ne(this.$el,t),t.hidden=!0),this.isActive=!!this.isActive},events:["resize"]},{read:function(t){return void 0===(t=t.scroll)&&(t=0),this.scroll=window.pageYOffset,{dir:t<=this.scroll?"down":"up",scroll:this.scroll}},write:function(t,e){var n=this,i=Date.now(),r=e.has("scroll"),o=t.initTimestamp,s=(void 0===o&&(o=0),t.dir),a=t.lastDir,c=t.lastScroll,u=t.scroll,e=t.top;(t.lastScroll=u)<0||u===c&&r||this.showOnUp&&!r&&!this.isFixed||((300<i-o||s!==a)&&(t.initScroll=u,t.initTimestamp=i),t.lastDir=s,this.showOnUp&&!this.isFixed&&Math.abs(t.initScroll-u)<=30&&Math.abs(c-u)<=10)||(this.inactive||u<this.top||this.showOnUp&&(u<=this.top||"down"===s&&r||"up"===s&&!this.isFixed&&u<=this.bottomOffset)?this.isFixed?(this.isFixed=!1,this.animation&&u>this.topOffset?(an.cancel(this.$el),an.out(this.$el,this.animation).then(function(){return n.hide()},m)):this.hide()):an.inProgress(this.$el)&&u<e&&(an.cancel(this.$el),this.hide()):this.isFixed?this.update():this.animation?(an.cancel(this.$el),this.show(),an.in(this.$el,this.animation).catch(m)):this.show())},events:["resize","scroll"]}],methods:{show:function(){this.isFixed=!0,this.update(),this.placeholder.hidden=!1},hide:function(){this.isActive=!1,_(this.$el,this.clsFixed,this.clsBelow),z(this.$el,{position:"",top:"",width:""}),this.placeholder.hidden=!0},update:function(){var t=0!==this.top||this.scroll>this.top,e=Math.max(0,this.offset);dt(this.bottom)&&this.scroll>this.bottom-this.offset&&(e=this.bottom-this.scroll),z(this.$el,{position:"fixed",top:e+"px",width:this.width}),this.isActive=t,M(this.$el,this.clsBelow,this.scroll>this.bottomOffset),C(this.$el,this.clsFixed)}}};function vr(t,e){var n=e.$props,i=e.$el,e=e[t+"Offset"];if(t=n[t])return g(t)&&t.match(/^-?\d/)?e+mn(t):D(!0===t?y(i):ne(t,i)).bottom}var wr,br,xr,yr={mixins:[t],extends:sr={mixins:[pi],args:"connect",props:{connect:String,toggle:String,active:Number,swiping:Boolean},data:{connect:"~.uk-switcher",toggle:"> * > :first-child",active:0,swiping:!0,cls:"uk-active",attrItem:"uk-switcher-item"},computed:{connects:{get:function(t,e){return ie(t.connect,e)},watch:function(t){var n=this,i=(this.swiping&&z(t,"touch-action","pan-y pinch-zoom"),this.index());this.connects.forEach(function(t){return k(t).forEach(function(t,e){return M(t,n.cls,e===i)})})},immediate:!0},toggles:{get:function(t,e){return a(t.toggle,e).filter(function(t){return!d(t,".uk-disabled *, .uk-disabled, [disabled]")})},watch:function(t){var e=this.index();this.show(~e?e:t[this.active]||t[0])},immediate:!0},children:function(){var t=this;return k(this.$el).filter(function(e){return t.toggles.some(function(t){return h(t,e)})})}},events:[{name:"click",delegate:function(){return this.toggle},handler:function(t){t.preventDefault(),this.show(t.current)}},{name:"click",el:function(){return this.connects},delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.show(Nt(t.current,this.attrItem))}},{name:"swipeRight swipeLeft",filter:function(){return this.swiping},el:function(){return this.connects},handler:function(t){t=t.type,this.show(Y(t,"Left")?"next":"previous")}}],methods:{index:function(){var e=this;return Q(this.children,function(t){return A(t,e.cls)})},show:function(t){var n=this,i=this.index(),r=_t(this.children[_t(t,this.toggles,i)],k(this.$el));
3166i!==r&&(this.children.forEach(function(t,e){M(t,n.cls,r===e),l(n.toggles[e],"aria-expanded",r===e)}),this.connects.forEach(function(t){var e=t.children;return n.toggleElement(u(e).filter(function(t){return A(t,n.cls)}),!1,0<=i).then(function(){return n.toggleElement(e[r],!0,0<=i)})}))}}},props:{media:Boolean},data:{media:960,attrItem:"uk-tab-item"},connected:function(){var t=A(this.$el,"uk-tab-left")?"uk-tab-left":!!A(this.$el,"uk-tab-right")&&"uk-tab-right";t&&this.$create("toggle",this.$el,{cls:t,mode:"media",media:this.media})}},kr={mixins:[ar,pi],args:"target",props:{href:String,target:null,mode:"list",queued:Boolean},data:{href:!1,target:!1,mode:"click",queued:!0},connected:function(){Gt(this.$el)||l(this.$el,"tabindex","0")},computed:{target:{get:function(t,e){var n=t.href;return(t=ie((t=t.target)||n,e)).length&&t||[e]},watch:function(){this.updateAria()},immediate:!0}},events:[{name:Wt+" "+Vt+" focus blur",filter:function(){return v(this.mode,"hover")},handler:function(t){ke(t)||this.toggle("toggle"+(v([Wt,"focus"],t.type)?"show":"hide"))}},{name:"click",filter:function(){return v(this.mode,"click")||Ht&&v(this.mode,"hover")},handler:function(t){var e;(Qt(t.target,'a[href="#"], a[href=""]')||(e=Qt(t.target,"a[href]"))&&(!$r(this.target,this.cls)||e.hash&&d(this.target,e.hash)))&&t.preventDefault(),this.toggle()}},{name:"toggled",self:!0,el:function(){return this.target},handler:function(t,e){this.updateAria(e)}}],update:{read:function(){return!(!v(this.mode,"media")||!this.media)&&{match:this.matchMedia}},write:function(t){var e=t.match,t=this.isToggled(this.target);(e?!t:t)&&this.toggle()},events:["resize"]},methods:{toggle:function(t){var n=this;if(I(this.target,t||"toggle",[this])){if(!this.queued)return this.toggleElement(this.target);var e,i=this.target.filter(function(t){return A(t,n.clsLeave)});i.length?this.target.forEach(function(t){var e=v(i,t);n.toggleElement(t,e,e)}):(e=this.target.filter(this.isToggled),this.toggleElement(e,!1).then(function(){return n.toggleElement(n.target.filter(function(t){return!v(e,t)}),!0)}))}},updateAria:function(t){l(this.$el,"aria-expanded",ht(t)?t:$r(this.target,this.cls))}}};function $r(t,e){return e?A(t,e.split(" ")[0]):x(t)}function Sr(t){for(var e=t.addedNodes,n=t.removedNodes,i=0;i<e.length;i++)We(e[i],br);for(var r=0;r<n.length;r++)We(n[r],xr)}function Ir(t){var e=t.target,n=t.attributeName;(t=ui(n))&&t in wr&&(Mt(e,n)?wr[t](e):(t=wr.getComponent(e,t))&&t.$destroy())}kt(Object.freeze({__proto__:null,Accordion:gi,Alert:wi,Cover:bi,Drop:ki,Dropdown:ki,FormCustom:$i,Gif:Si,Grid:_i,HeightMatch:Mi,HeightViewport:Bi,Icon:Ri,Img:Ki,Leader:cr,Margin:Ii,Modal:{install:function(t){var a=t.modal;function i(t,e,n,i){e=p({bgClose:!1,escClose:!0,labels:a.labels},e);var r=a.dialog(t(e),e),o=new Se,s=!1;return $(r.$el,"submit","form",function(t){t.preventDefault(),o.resolve(i&&i(r)),s=!0,r.hide()}),$(r.$el,"hide",function(){return!s&&n(o)}),o.promise.dialog=r,o.promise}a.dialog=function(t,e){var n=a('<div class="uk-modal"> <div class="uk-modal-dialog">'+t+"</div> </div>",e);return n.show(),$(n.$el,"hidden",function(){return E.resolve().then(function(){return n.$destroy(!0)})},{self:!0}),n},a.alert=function(e,t){return i(function(t){return t=t.labels,'<div class="uk-modal-body">'+(g(e)?e:Me(e))+'</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-primary uk-modal-close" autofocus>'+t.ok+"</button> </div>"},t,function(t){return t.resolve()})},a.confirm=function(e,t){return i(function(t){return t=t.labels,'<form> <div class="uk-modal-body">'+(g(e)?e:Me(e))+'</div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">'+t.cancel+'</button> <button class="uk-button uk-button-primary" autofocus>'+t.ok+"</button> </div> </form>"},t,function(t){return t.reject()})},a.prompt=function(e,n,t){return i(function(t){return t=t.labels,'<form class="uk-form-stacked"> <div class="uk-modal-body"> <label>'+(g(e)?e:Me(e))+'</label> <input class="uk-input" value="'+(n||"")+'" autofocus> </div> <div class="uk-modal-footer uk-text-right"> <button class="uk-button uk-button-default uk-modal-close" type="button">'+t.cancel+'</button> <button class="uk-button uk-button-primary">'+t.ok+"</button> </div> </form>"},t,function(t){return t.resolve(null)},function(t){return s("input",t.$el).value})},a.labels={ok:"Ok",cancel:"Cancel"}},mixins:[hr],data:{clsPage:"uk-modal-page",selPanel:".uk-modal-dialog",selClose:".uk-modal-close, .uk-modal-close-default, .uk-modal-close-outside, .uk-modal-close-full"}
3166,events:[{name:"show",self:!0,handler:function(){A(this.panel,"uk-margin-auto-vertical")?C(this.$el,"uk-flex"):z(this.$el,"display","block"),O(this.$el)}},{name:"hidden",self:!0,handler:function(){z(this.$el,"display",""),_(this.$el,"uk-flex")}}]},Nav:{extends:gi,data:{targets:"> .uk-parent",toggle:"> a",content:"> ul"}},Navbar:G,Offcanvas:fr,OverflowAuto:Ot,Responsive:{props:["width","height"],connected:function(){C(this.$el,"uk-responsive-width")},update:{read:function(){return!!(x(this.$el)&&this.width&&this.height)&&{width:ln(y(this.$el)),height:this.height}},write:function(t){O(this.$el,Ct.contain({height:this.height,width:this.width},t).height)},events:["resize"]}},Scroll:Pt,Scrollspy:mr,ScrollspyNav:gr,Sticky:Jn,Svg:Di,Switcher:sr,Tab:yr,Toggle:kr,Video:io,Close:Yi,Spinner:Xi,SlidenavNext:qi,SlidenavPrevious:qi,SearchIcon:Ui,Marker:qr,NavbarToggleIcon:qr,OverlayIcon:qr,PaginationNext:qr,PaginationPrevious:qr,Totop:qr}),function(t,e){return Zn.component(e,t)}),Zn.use(function(e){var t,n,i,r;Bt&&(n=function(){t||(t=!0,P.write(function(){return t=!1}),e.update(null,"resize"))},$(window,"load resize",n),$(document,"loadedmetadata load",n,!0),"ResizeObserver"in window&&new ResizeObserver(n).observe(document.documentElement),$(window,"scroll",function(t){i||(i=!0,P.write(function(){return i=!1}),e.update(null,t.type))},{passive:!0,capture:!0}),r=0,$(document,"animationstart",function(t){(z(t=t.target,"animationName")||"").match(/^uk-.*(left|right)/)&&(r++,z(document.documentElement,"overflowX","hidden"),setTimeout(function(){--r||z(document.documentElement,"overflowX","")},wt(z(t,"animationDuration"))+100))},!0),$(document,Lt,function(t){var s,a;ke(t)&&(s=$e(t),a="tagName"in t.target?t.target:y(t.target),S(document,Ft+" "+Rt+" scroll",function(t){var e=$e(t),r=e.x,o=e.y;("scroll"!==t.type&&a&&r&&100<Math.abs(s.x-r)||o&&100<Math.abs(s.y-o))&&setTimeout(function(){var t,e,n,i;I(a,"swipe"),I(a,"swipe"+(t=s.x,e=s.y,n=r,i=o,Math.abs(t-n)>=Math.abs(e-i)?0<t-n?"Left":"Right":0<e-i?"Up":"Down"))})}))},{passive:!0}))}),br=(wr=Zn).connect,xr=wr.disconnect,Bt&&window.MutationObserver&&P.read(function(){document.body&&We(document.body,br),new MutationObserver(function(t){return t.forEach(Sr)}).observe(document,{childList:!0,subtree:!0}),new MutationObserver(function(t){return t.forEach(Ir)}).observe(document,{attributes:!0,subtree:!0}),wr._initialized=!0}),sr={mixins:[t],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},computed:{date:function(t){return t=t.date,Date.parse(t)},days:function(t,e){return s(t.clsWrapper.replace("%unit%","days"),e)},hours:function(t,e){return s(t.clsWrapper.replace("%unit%","hours"),e)},minutes:function(t,e){return s(t.clsWrapper.replace("%unit%","minutes"),e)},seconds:function(t,e){return s(t.clsWrapper.replace("%unit%","seconds"),e)},units:function(){var e=this;return["days","hours","minutes","seconds"].filter(function(t){return e[t]})}},connected:function(){this.start()},disconnected:function(){var e=this;this.stop(),this.units.forEach(function(t){return Ae(e[t])})},events:[{name:"visibilitychange",el:function(){return document},handler:function(){document.hidden?this.stop():this.start()}}],update:{write:function(){var t,i=this,r=(t=this.date,{total:t-=Date.now(),seconds:t/1e3%60,minutes:t/1e3/60%60,hours:t/1e3/60/60%24,days:t/1e3/60/60/24});r.total<=0&&(this.stop(),r.days=r.hours=r.minutes=r.seconds=0),this.units.forEach(function(t){var e=(e=String(Math.floor(r[t]))).length<2?"0"+e:e,n=i[t];n.textContent!==e&&((e=e.split("")).length!==n.children.length&&Me(n,e.map(function(){return"<span></span>"}).join("")),e.forEach(function(t,e){return n.children[e].textContent=t}))})}},methods:{start:function(){this.stop(),this.date&&this.units.length&&(this.$update(),this.timer=setInterval(this.$update,1e3))},stop:function(){this.timer&&(clearInterval(this.timer),this.timer=null)}}};var Er="uk-transition-leave",Tr="uk-transition-enter";function Cr(t,s,a,c){void 0===c&&(c=0);var u=_r(s,!0),h={opacity:1},l={opacity:0},e=(n=function(t){return function(){return u===_r(s)?t():E.reject()}})(function(){return C(s,Er),E.all(Mr(s).map(function(e,n){return new E(function(t){return setTimeout(function(){return N.start(e,l,a/2,"ease").then(t)},n*c)})})).then(function(){return _(s,Er)})}),n=n(function(){var o=O(s);return C(s,Tr),t(),z(k(s),{opacity:0}
3166),new E(function(r){return requestAnimationFrame(function(){var t=k(s),e=O(s),n=(z(s,"alignContent","flex-start"),O(s,o),Mr(s)),i=(z(t,l),n.map(function(e,n){return new E(function(t){return setTimeout(function(){return N.start(e,h,a/2,"ease").then(t)},n*c)})}));o!==e&&i.push(N.start(s,{height:e},a/2+n.length*c,"ease")),E.all(i).then(function(){_(s,Tr),u===_r(s)&&(z(s,{height:"",alignContent:""}),z(t,{opacity:""}),delete s.dataset.transition),r()})})})});return(A(s,Er)?Ar(s):A(s,Tr)?Ar(s).then(e):e()).then(n)}function _r(t,e){return e&&(t.dataset.transition=1+_r(t)),mt(t.dataset.transition)||0}function Ar(t){return E.all(k(t).filter(N.inProgress).map(function(e){return new E(function(t){return S(e,"transitionend transitioncanceled",t)})}))}function Mr(t){return Ei(k(t)).reduce(function(t,e){return t.concat($t(e.filter(function(t){return Hn(t)}),"offsetLeft"))},[])}function zr(t,e){var n=z(t,"zIndex");return!!x(t)&&p({display:"",opacity:e?z(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:"auto"===n?ee(t):n},Br(t))}function Nr(t){z(t.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),z(t,{height:"",display:"",padding:""})}function Br(t){var e=D(t),n=e.height,e=e.width,i=un(t);return{top:i.top,left:i.left,height:n,width:e,marginLeft:(t=z(t,["marginTop","marginLeft"])).marginLeft,marginTop:t.marginTop,transform:""}}function Dr(t,e){return En(Nt(t,e),["filter"])}function Or(t,e,n){var i=Dr(t,e),r=i.filter,t=i.group,e=i.sort;return void 0===(i=i.order)&&(i="asc"),(r||w(e))&&(t?r?(delete n.filter[""],n.filter[t]=r):(delete n.filter[t],(ft(n.filter)||""in n.filter)&&(n.filter={"":r||""})):n.filter={"":r||""}),w(e)||(n.sort=[e,i]),n}function Pr(t){return Math.abs(z(t,"transform").split(",")[4]/t.offsetWidth)||0}function L(t,e){return void 0===t&&(t=0),void 0===e&&(e="%"),t+=t?e:"",Dt?"translateX("+t+")":"translate3d("+t+", 0, 0)"}function Hr(t){return"scale3d("+t+", "+t+", 1)"}kr={mixins:[yr={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate:function(t,e){var n=this,i=(void 0===e&&(e=this.$el),this.animation);return("fade"===i?Cr:"delayed-fade"===i?function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Cr.apply(void 0,t.concat([40]))}:i?function(t,d,f){return new E(function(l){return requestAnimationFrame(function(){var c=k(d),u=c.map(function(t){return zr(t,!0)}),h=z(d,["height","padding"]);N.cancel(d),c.forEach(N.cancel),Nr(d),t(),c=c.concat(k(d).filter(function(t){return!v(c,t)})),E.resolve().then(function(){P.flush();var n,i,r,t,e=z(d,["height","padding"]),o=(n=d,r=u,o=(t=(i=c).map(function(t,e){return!!(y(t)&&e in r)&&(r[e]?x(t)?Br(t):{opacity:0}:{opacity:x(t)?1:0})})).map(function(t,e){return!!(e=y(i[e])===n&&(r[e]||zr(i[e])))&&(t?"opacity"in t||(e.opacity%1?t.opacity=1:delete e.opacity):delete e.opacity,e)}),[t,o]),s=o[0],a=o[1];c.forEach(function(t,e){return a[e]&&z(t,a[e])}),z(d,p({display:"block"},h)),requestAnimationFrame(function(){var t=c.map(function(t,e){return y(t)===d&&N.start(t,s[e],f,"ease")}).concat(N.start(d,e,f,"ease"));E.all(t).then(function(){c.forEach(function(t,e){return y(t)===d&&z(t,"display",0===s[e].opacity?"none":"")}),Nr(d)},m).then(l)})})})})}:function(){return t(),E.resolve()})(t,e,this.duration).then(function(){return n.$update(e,"resize")},m)}}}],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles:{get:function(t,e){return a("["+(t=t.attrItem)+"],[data-"+t+"]",e)},watch:function(){var e,n=this;this.updateState(),!1!==this.selActive&&(e=a(this.selActive,this.$el),this.toggles.forEach(function(t){return M(t,n.cls,v(e,t))}))},immediate:!0},children:{get:function(t,e){return a(t.target+" > *",e)},watch:function(t,e){var n;e&&(n=e,t.length!==n.length||!t.every(function(t){return~n.indexOf(t)}))&&this.updateState()},immediate:!0}},events:[{name:"click",delegate:function(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler:function(t){t.preventDefault(),this.apply(t.current)}}],methods:{apply:function(t){var e=this.getState(),t=Or(t,this.attrItem,this.get
3166State()),n=e,i=t;["filter","sort"].every(function(t){return bt(n[t],i[t])})||this.setState(t)},getState:function(){var n=this;return this.toggles.filter(function(t){return A(t,n.cls)}).reduce(function(t,e){return Or(e,n.attrItem,t)},{filter:{"":""},sort:[]})},setState:function(u,e){var h=this;void 0===e&&(e=!0),u=p({filter:{"":""},sort:[]},u),I(this.$el,"beforeFilter",[this,u]),this.toggles.forEach(function(t){return M(t,h.cls,(t=t,e=h.attrItem,void 0===(i=(n=u).filter)&&(i={"":""}),o=(r=n.sort)[0],s=r[1],void 0===(r=(n=Dr(t,e)).filter)&&(r=""),void 0===(t=n.group)&&(t=""),e=n.sort,void 0===(n=n.order)&&(n="asc"),!!(w(e)?t in i&&r===i[t]||!r&&t&&!(t in i)&&!i[""]:o===e&&s===n)));var e,n,i,r,o,s}),E.all(a(this.target,this.$el).map(function(c){function t(){var t,e,n,i,r,o,s,a;t=u,n=k(e=c),a=t.filter,i="",kt(a,function(t){return i+=t||""}),r=i,n.forEach(function(t){return z(t,"display",r&&!d(t,r)?"none":"")}),t=(a=t.sort)[0],a=a[1],t&&!bt((o=t,s=a,a=p([],n).sort(function(t,e){return Nt(t,o).localeCompare(Nt(e,o),void 0,{numeric:!0})*("asc"===s||-1)})),n)&&T(e,a),h.$update(h.$el)}return e?h.animate(t,c):t()})).then(function(){return I(h.$el,"afterFilter",[h])})},updateState:function(){var t=this;P.write(function(){return t.setState(t.getState(),!1)})}}};var Lr=p({},io={slide:{show:function(t){return[{transform:L(-100*t)},{transform:L()}]},percent:Pr,translate:function(t,e){return[{transform:L(-100*e*t)},{transform:L(100*e*(1-t))}]}}},{fade:{show:function(){return[{opacity:0},{opacity:1}]},percent:function(t){return 1-z(t,"opacity")},translate:function(t){return[{opacity:1-t},{opacity:t}]}},scale:{show:function(){return[{opacity:0,transform:Hr(.8)},{opacity:1,transform:Hr(1)}]},percent:function(t){return 1-z(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:Hr(1-.2*t)},{opacity:t,transform:Hr(.8+.2*t)}]}}});function jr(t,e,n){I(t,ge(e,!1,!1,n))}function Fr(t){return.5*t+300}var Wr={mixins:[xi,hr,pi,Xi={mixins:[Yi={mixins:[{props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected:function(){this.autoplay&&this.startAutoplay()},disconnected:function(){this.stopAutoplay()},update:function(){l(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:function(){return document},filter:function(){return this.autoplay},handler:function(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay:function(){var t=this;this.stopAutoplay(),this.interval=setInterval(function(){return(!t.draggable||!s(":focus",t.$el))&&(!t.pauseOnHover||!d(t.$el,":hover"))&&!t.stack.length&&t.show("next")},this.autoplayInterval)},stopAutoplay:function(){this.interval&&clearInterval(this.interval)}}},{props:{draggable:Boolean},data:{draggable:!0,threshold:10},created:function(){var i=this;["start","move","end"].forEach(function(t){var n=i[t];i[t]=function(t){var e=$e(t).x*(f?-1:1);i.prevPos=e!==i.pos?i.pos:i.prevPos,i.pos=e,n(t)}})},events:[{name:Lt,delegate:function(){return this.selSlides},handler:function(t){var e;!this.draggable||!ke(t)&&!(e=t.target).children.length&&e.childNodes.length||Qt(t.target,Yt)||0<t.button||this.length<2||this.start(t)}},{name:"dragstart",handler:function(t){t.preventDefault()}}],methods:{start:function(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,$(document,jt,this.move,{passive:!1}),$(document,Ft+" "+Rt+" input",this.end,!0),z(this.list,"userSelect","none")},move:function(t){var e=this;if(!(0==(u=this.pos-this.drag)||this.prevPos===this.pos||!this.dragging&&Math.abs(u)<this.threshold)){z(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=u<0?1:-1;for(var n=this.slides,i=this.prevIndex,r=Math.abs(u),o=this.getIndex(i+this.dir,i),s=this._getDistance(i,o)||n[i].offsetWidth;o!==i&&s<r;
3166)this.drag-=s*this.dir,i=o,r-=s,o=this.getIndex(i+this.dir,i),s=this._getDistance(i,o)||n[i].offsetWidth;this.percent=r/s;var a,c=n[i],t=n[o],u=this.index!==o,h=i===o;[this.index,this.prevIndex].filter(function(t){return!v([o,i],t)}).forEach(function(t){I(n[t],"itemhidden",[e]),h&&(a=!0,e.prevIndex=i)}),(this.index===i&&this.prevIndex!==i||a)&&I(n[this.index],"itemshown",[this]),u&&(this.prevIndex=i,this.index=o,h||I(c,"beforeitemhide",[this]),I(t,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),c,!h&&t),u&&(h||I(c,"itemhide",[this]),I(t,"itemshow",[this]))}},end:function(){var t;me(document,jt,this.move,{passive:!1}),me(document,Ft+" "+Rt+" input",this.end,!0),this.dragging&&(this.dragging=null,this.index===this.prevIndex?(this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null):(t=(f?this.dir*(f?1:-1):this.dir)<0==this.prevPos>this.pos,this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(0<this.dir&&!t||this.dir<0&&t?"next":"previous",!0))),z(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}},{data:{selNav:!1},computed:{nav:function(t,e){return s(t.selNav,e)},selNavItem:function(t){return"["+(t=t.attrItem)+"],[data-"+t+"]"},navItems:function(t,e){return a(this.selNavItem,e)}},update:{write:function(){var n=this;this.nav&&this.length!==this.nav.children.length&&Me(this.nav,this.slides.map(function(t,e){return"<li "+n.attrItem+'="'+e+'"><a href></a></li>'}).join("")),this.navItems.concat(this.nav).forEach(function(t){return t&&(t.hidden=!n.maxIndex)}),this.updateNav()},events:["resize"]},events:[{name:"click",delegate:function(){return this.selNavItem},handler:function(t){t.preventDefault(),this.show(Nt(t.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav:function(){var n=this,i=this.getValidIndex();this.navItems.forEach(function(t){var e=Nt(t,n.attrItem);M(t,n.clsActive,mt(e)===i),M(t,"uk-invisible",n.finite&&("previous"===e&&0===i||"next"===e&&i>=n.maxIndex))})}}}],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:function(){return{easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}},connected:function(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected:function(){_(this.slides,this.clsActive)},computed:{duration:function(t,e){return t=t.velocity,Fr(e.offsetWidth/t)},list:function(t,e){return s(t.selList,e)},maxIndex:function(){return this.length-1},selSlides:function(t){return t.selList+" "+(t.selSlides||"> *")},slides:{get:function(){return a(this.selSlides,this.$el)},watch:function(){this.$reset()}},length:function(){return this.slides.length}},events:{itemshown:function(){this.$update(this.list)}},methods:{show:function(t,e){var n=this;if(void 0===e&&(e=!1),!this.dragging&&this.length){var i=this.stack,r=e?0:i.length,o=function(){i.splice(r,1),i.length&&n.show(i.shift(),!0)};if(i[e?"unshift":"push"](t),!e&&1<i.length)2===i.length&&this._transitioner.forward(Math.min(this.duration,200));else{var s=this.getIndex(this.index),a=A(this.slides,this.clsActive)&&this.slides[s],c=this.getIndex(t,this.index),u=this.slides[c];if(a!==u)return this.dir="next"!==t&&("previous"===t||t<s)?-1:1,this.prevIndex=s,this.index=c,a&&!I(a,"beforeitemhide",[this])||!I(u,"beforeitemshow",[this,a])?(this.index=this.prevIndex,void o()):(e=this._show(a,u,e).then(function(){return a&&I(a,"itemhidden",[n]),I(u,"itemshown",[n]),new E(function(t){P.write(function(){i.shift(),i.length?n.show(i.shift(),!0):n._transitioner=null,t()})})}),a&&I(a,"itemhide",[this]),I(u,"itemshow",[this]),e);o()}}},getIndex:function(t,e){return void 0===t&&(t=this.index),void 0===e&&(e=this.index),It(_t(t,this.slides,e,this.finite),0,this.maxIndex)},getValidIndex:function(t,e){return void 0===t&&(t=this.index),void 0===e&&(e=this.prevIndex),this.getIndex(t,e)},_show:function(t,e,n){return this._transitioner=this._getTransitioner(t,e,this.dir,p({easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing},this.transitionOptions)),n||t?(t=this.stack.length,this._transitioner[1<t?"forward":"show"](1<t?Math.min(this.duration,75+75/(t-1)):this.duration,this.percent)):(this._translate(1),E.resolve())},_getDistance:function(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate:function(t,e,n){return void 0===e&&(e=this.prevIndex),void 0===n&&(n=this.index),(n=this._getTransitioner(e!==n&&e,n)).translate(t),n},_getTransitioner:function(t,e,n,i){return void 0===t&&(t=this.prevIndex),void 0===e&&(e=this.index),void 0===n&&(n=this.dir||1),void 0===i&&(i=this.transitionOptions),new this.Transitioner(lt(t)?this.slides[t]:t,lt(e)?this.slides[e]:e,n*(f?-1:1),i)}}}],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:io,Transitioner:function(r,o,s,t){var e=t.animation,a=t.easing,n=e.percent,i=e.translate,c=(e=void 0===(e=e.show)?m:e)(s),u=new Se;return{dir:s,show:function(t,e,n){var i=this;return void 0===e&&(e=0),n=n?"linear":a,t-=Math.round(t*It(e,-1,1)),this.translate(e),jr(o,"itemin",{percent:e,duration:t,timing:n,dir:s}),jr(r,"itemout",{percent:1-e,duration:t,timing:n,dir:s}),E.all([N.start(o,c[1],t,n),N.start(r,c[0],t,n)]).then(function(){i.reset(),u.resolve()},m),u.promise},cancel:function(){N.cancel([o,r])},reset:function(){for(var t in c[0])z([o,r],t,"")},forward:function(t,e){return void 0===e&&(e=this.percent()),N.cancel([o,r]),this.show(t,e,!0)},translate:function(t){this.reset();var e=i(t,s);z(o,e[1]),z(r,e[0]),jr(o,"itemtranslatein",{percent:t,dir:s}),jr(r,"itemtranslateout",{percent:1-t,dir:s})},percent:function(){return n(r||o,o,s)},getDistance:function(){return r&&r.offsetWidth}}}},computed:{animation:function(t){var e=t.animation;return p((t=t.Animations)[e]||t.slide,{name:e})},transitionOptions:function(){return{animation:this.animation}}},events:{"itemshow itemhide itemshown itemhidden":function(t){t=t.target,this.$update(t)},beforeitemshow:function(t){C(t.target,this.clsActive)},itemshown:function(t){C(t.target,this.clsActivated)},itemhidden:function(t){_(t.target,this.clsActive,this.clsActivated)}}}],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:function(){return{preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-l
3166ightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:Lr,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}},created:function(){var t=s(this.template),e=s(this.selList,t);this.items.forEach(function(){return T(e,"<li>")}),this.$mount(T(this.container,t))},computed:{caption:function(t,e){return s(t.selCaption,e)}},events:[{name:jt+" "+Lt+" keydown",handler:"showControls"},{name:"click",self:!0,delegate:function(){return this.selSlides},handler:function(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:function(){this.showControls()}},{name:"hide",self:!0,handler:function(){this.hideControls(),_(this.slides,this.clsActive),N.stop(this.slides)}},{name:"hidden",self:!0,handler:function(){this.$destroy(!0)}},{name:"keyup",el:function(){return document},handler:function(t){if(this.isToggled(this.$el)&&this.draggable)switch(t.keyCode){case 37:this.show("previous");break;case 39:this.show("next")}}},{name:"beforeitemshow",handler:function(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=Lr.scale,_(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler:function(){Me(this.caption,this.getItem().caption||"");for(var t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler:function(){this.draggable=this.$props.draggable}},{name:"itemload",handler:function(t,n){var i=this,r=n.source,e=n.type,o=n.alt;void 0===o&&(o="");var s,a,c,u=n.poster,h=n.attrs;void 0===h&&(h={}),this.setItem(n,"<span uk-spinner></span>"),r&&(a={frameborder:"0",allow:"autoplay",allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay},"image"===e||r.match(/\.(avif|jpe?g|a?png|gif|svg|webp)($|\?)/i)?_e(r,h.srcset,h.size).then(function(t){var e=t.width,t=t.height;return i.setItem(n,Vr("img",p({src:r,width:e,height:t,alt:o},h)))},function(){return i.setError(n)}):"video"===e||r.match(/\.(mp4|webm|ogv)($|\?)/i)?($(c=Vr("video",p({src:r,poster:u,controls:"",playsinline:"","uk-video":""+this.videoAutoplay},h)),"loadedmetadata",function(){l(c,{width:c.videoWidth,height:c.videoHeight}),i.setItem(n,c)}),$(c,"error",function(){return i.setError(n)})):"iframe"===e||r.match(/\.(html|php)($|\?)/i)?this.setItem(n,Vr("iframe",p({src:r,frameborder:"0",allowfullscreen:"",class:"uk-lightbox-iframe"},h))):(s=r.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))?this.setItem(n,Vr("iframe",p({src:"https://www.youtube"+(s[1]||"")+".com/embed/"+s[2]+(s[3]?"?"+s[3]:""),width:1920,height:1080},a,h))):(s=r.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))&&Ce("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(r),{responseType:"json",withCredentials:!1}).then(function(t){var e=t.response,t=e.height;return i.setItem(n,Vr("iframe",p({src:"https://player.vimeo.com/video/"+s[1]+(s[2]?"?"+s[2]:""),width:e.width,height:t},a,h)))},function(){return i.setError(n)}))}}],methods:{loadItem:function(t){void 0===t&&(t=this.index),t=this.getItem(t),this.getSlide(t).childElementCount||I(this.$el,"itemload",[t])},getItem:function(t){return void 0===t&&(t=this.index),this.items[_t(t,this.slides)]},setItem:function(t,e){I(this.$el,"itemloaded",[this,Me(this.getSlide(t),e)])},getSlide:function(t){return this.slides[this.items.indexOf(t)]},setError:function(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls:function(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),C(this.$el,"uk-active","uk-transition-active")},hideControls:function(){_(this.$el,"uk-active","uk-transition-active")}}};function Vr(t,e){return l(t=Fe("<"+t+">"),e),t}function Rr(e){var n={};return["href","caption","type","poster","alt","attrs"].forEach(function(t){n["href"===t?"source":t]=Nt(e,t)}),n.attrs=En(n.attrs),n}var qi={install:function(t,e){t.lightboxPanel||t.component("lightboxPanel",Wr),p(e.props,t.component("lightboxPanel").options.props)},props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get:function(t,e){return a(t.toggle,e)},watch:function(){this.hide()}}},disconnected:function(){this.hide()},events:[{name:"click",delegate:function(){return this.toggle+":not(.uk-disabled)"},handler:function(t){t.preventDefault(),this.show(t.current)}}],methods:{show:function(t){var e,n=this,i=St(this.toggles.map(Rr),"source");return ct(t)&&(e=Rr(t).source,t=Q(i,function(t){return t=t.source,e===t})),this.panel=this.panel||this.$create("lightboxPanel",p({},this.$props,{items:i})),$(this.panel.$el,"hidden",function(){return n.panel=!1}),this.panel.show(t)},hide:function(){return this.panel&&this.panel.hide()}}},qr={mixins:[xi],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:function(i){i.notification.closeAll=function(e,n){We(document.body,function(t){!(t=i.getComponent(t,"notification"))||e&&e!==t.group||t.close(n)})}},computed:{marginProp:function(t){return"margin"+(q(t.pos,"top")?"Top":"Bottom")},startProps:function(){var t={opacity:0}
3166;return t[this.marginProp]=-this.$el.offsetHeight,t}},created:function(){var t=s("."+this.clsContainer+"-"+this.pos,this.container)||T(this.container,'<div class="'+this.clsContainer+" "+this.clsContainer+"-"+this.pos+'" style="display: block"></div>');this.$mount(T(t,'<div class="'+this.clsMsg+(this.status?" "+this.clsMsg+"-"+this.status:"")+'"> <a href class="'+this.clsClose+'" data-uk-close></a> <div>'+this.message+"</div> </div>"))},connected:function(){var t,e=this,n=b(z(this.$el,this.marginProp));N.start(z(this.$el,this.startProps),((t={opacity:1})[this.marginProp]=n,t)).then(function(){e.timeout&&(e.timer=setTimeout(e.close,e.timeout))})},events:((Ui={click:function(t){Qt(t.target,'a[href="#"],a[href=""]')&&t.preventDefault(),this.close()}})[Wt]=function(){this.timer&&clearTimeout(this.timer)},Ui[Vt]=function(){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},Ui),methods:{close:function(t){function e(t){var e=y(t);I(t,"close",[n]),De(t),e&&!e.hasChildNodes()&&De(e)}var n=this;this.timer&&clearTimeout(this.timer),t?e(this.$el):N.start(this.$el,this.startProps).then(e)}}},Ur=["x","y","bgx","bgy","rotate","scale","color","backgroundColor","borderColor","opacity","blur","hue","grayscale","invert","saturate","sepia","fopacity","stroke"];function Yr(t,e){var n=t.length-1,i=Math.min(Math.floor(n*e),n-1);return(i=t.slice(i,i+2)).push(1===e?1:e%(1/n)*n),i}function Xr(t,e,n){var i=Jr(t,e);return n?i-(B(e).width/2-B(t).width/2):Math.min(i,Gr(e))}function Gr(t){return Math.max(0,Kr(t)-B(t).width)}function Kr(t){return k(t).reduce(function(t,e){return B(e).width+t},0)}function Jr(t,e){return t&&(un(t).left+(f?B(t).width-B(e).width:0))*(f?-1:1)||0}function Zr(n,i){var r=--i+B(n).width+2;return k(n).filter(function(t){var e=Jr(t,n),t=e+B(t).width;return i<=e&&t<=r})}function Qr(t,e,n){I(t,ge(e,!1,!1,n))}function to(t){return Y(t,"in")}function eo(t,e,n){return n/=2,to(t)?e<0?1-n:n:e<0?n:1-n}Ui={mixins:[hr={mixins:[ar],props:Ur.reduce(function(t,e){return t[e]="list",t},{}),data:Ur.reduce(function(t,e){return t[e]=void 0,t},{}),computed:{props:function(f,p){var m=this;return Ur.reduce(function(t,e){if(!w(f[e])){var n,i,r=e.match(/color/i),o=r||"opacity"===e,s=f[e].slice();o&&z(p,e,""),s.length<2&&s.unshift(("scale"===e?1:o?z(p,e):0)||0);var a,c,u,h,l,o=s.reduce(function(t,e){return g(e)&&e.replace(/-|\d/g,"").trim()||t},"");if(r?(r=p.style.color,s=s.map(function(t){return z(z(p,"color",t),"color").split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(b)}),p.style.color=r):q(e,"bg")?(a="bgy"===e?"height":"width",s=s.map(function(t){return mn(t,a,m.$el)}),z(p,"background-position-"+e[2],""),i=z(p,"backgroundPosition").split(" ")["x"===e[2]?0:1],n=m.covers?(c=Math.min.apply(Math,s),u=Math.max.apply(Math,s),h=s.indexOf(c)<s.indexOf(u),l=u-c,s=s.map(function(t){return t-(h?c:u)}),(h?-l:0)+"px"):i):s=s.map(b),"stroke"===e){if(!s.some(function(t){return t}))return t;var d=Li(m.$el);z(p,"strokeDasharray",d),s=(s="%"===o?s.map(function(t){return t*d/100}):s).reverse(),e="strokeDashoffset"}t[e]={steps:s,unit:o,pos:n,bgPos:i,diff:l}}return t},{})},bgProps:function(){var e=this;return["bgx","bgy"].filter(function(t){return t in e.props})},covers:function(t,e){return i=(n=e).style.backgroundSize,e="cover"===z(z(n,"backgroundSize",""),"backgroundSize"),n.style.backgroundSize=i,e;var n,i}},disconnected:function(){delete this._image},update:{read:function(t){var e,n,a,c,u,h=this;this.matchMedia&&(!t.image&&this.covers&&this.bgProps.length&&(e=z(this.$el,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1"))&&((n=new Image).src=e,(t.image=n).naturalWidth||(n.onload=function(){return h.$update(
3166)})),n=t.image)&&n.naturalWidth&&(a={width:this.$el.offsetWidth,height:this.$el.offsetHeight},c={width:n.naturalWidth,height:n.naturalHeight},u=Ct.cover(c,a),this.bgProps.forEach(function(t){var e,n=h.props[t],i=n.diff,r=n.bgPos,o=n.steps,s=u[n="bgy"===t?"height":"width"]-a[n];s<i?a[n]=u[n]+i-s:i<s&&(e=a[n]/mn(r,n,h.$el))&&(h.props[t].steps=o.map(function(t){return t-(s-i)/e})),u=Ct.cover(c,a)}),t.dim=u)},write:function(t){t=t.dim,this.matchMedia?t&&z(this.$el,{backgroundSize:t.width+"px "+t.height+"px",backgroundRepeat:"no-repeat"}):z(this.$el,{backgroundSize:"",backgroundRepeat:""})},events:["resize"]},methods:{reset:function(){var n=this;kt(this.getCss(0),function(t,e){return z(n.$el,e,"")})},getCss:function(p){var m=this.props;return Object.keys(m).reduce(function(t,e){var n,i,r,o=m[e],s=o.steps,a=o.unit,c=o.pos,u=(void 0===r&&(r=2),n=(o=Yr(s,p))[0],i=o[1],o=o[2],(lt(n)?n+Math.abs(n-i)*o*(n<i?1:-1):+i).toFixed(r));switch(e){case"x":case"y":a=a||"px",t.transform+=" translate"+V(e)+"("+b(u).toFixed("px"===a?0:2)+a+")";break;case"rotate":t.transform+=" rotate("+(u+(a=a||"deg"))+")";break;case"scale":t.transform+=" scale("+u+")";break;case"bgy":case"bgx":t["background-position-"+e[2]]="calc("+c+" + "+u+"px)";break;case"color":case"backgroundColor":case"borderColor":var h=Yr(s,p),l=h[0],d=h[1],f=h[2];t[e]="rgba("+l.map(function(t,e){return t+=f*(d[e]-t),3===e?b(t):parseInt(t,10)}).join(",")+")";break;case"blur":t.filter+=" blur("+(u+(a=a||"px"))+")";break;case"hue":t.filter+=" hue-rotate("+(u+(a=a||"deg"))+")";break;case"fopacity":t.filter+=" opacity("+(u+(a=a||"%"))+")";break;case"grayscale":case"invert":case"saturate":case"sepia":t.filter+=" "+e+"("+(u+(a=a||"%"))+")";break;default:t[e]=u}return t},{transform:"",filter:""})}}}],props:{target:String,viewport:Number,easing:Number},data:{target:!1,viewport:1,easing:1},computed:{target:function(t,e){return function t(e){return e?"offsetTop"in e?e:t(y(e)):document.body}((t=t.target)&&ne(t,e)||e)}},update:{read:function(t,e){var n,i=t.percent;if(e.has("scroll")||(i=!1),this.matchMedia)return n=i,{percent:i=It((t=Fn(this.target)/(this.viewport||1))*(1-((e=this.easing)-e*t))),style:n!==i&&this.getCss(i)}},write:function(t){t=t.style,this.matchMedia?t&&z(this.$el,t):this.reset()},events:["scroll","resize"]}},Yi={mixins:[t,Yi,ar={update:{write:function(){var t;this.stack.length||this.dragging||(t=this.getValidIndex(this.index),~this.prevIndex&&this.index===t)||this.show(t)},events:["resize"]}}],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:function(c,u,h,t){var i=t.center,r=t.easing,l=t.list,o=new Se,e=c?Xr(c,l,i):Xr(u,l,i)+B(u).width*h,d=u?Xr(u,l,i):e+B(c).width*h*(f?-1:1);return{dir:h,show:function(t,e,n){return void 0===e&&(e=0),n=n?"linear":r,t-=Math.round(t*It(e,-1,1)),this.translate(e),e=c?e:It(e,0,1),Qr(this.getItemIn(),"itemin",{percent:e,duration:t,timing:n,dir:h}),c&&Qr(this.getItemIn(!0),"itemout",{percent:1-e,duration:t,timing:n,dir:h}),N.start(l,{transform:L(-d*(f?-1:1),"px")},t,n).then(o.resolve,m),o.promise},cancel:function(){N.cancel(l)},reset:function(){z(l,"transform","")},forward:function(t,e){return void 0===e&&(e=this.percent()),N.cancel(l),this.show(t,e,!0)},translate:function(r){var t=this.getDistance()*h*(f?-1:1),o=(z(l,"transform",L(It(t-t*r-d,-Kr(l),B(l).width)*(f?-1:1),"px")),this.getActives()),s=this.getItemIn(),a=this.getItemIn(!0);r=c?It(r,-1,1):0,k(l).forEach(function(t){var e=v(o,t),n=t===s,i=t===a;Qr(t,"itemtranslate"+(n||!i&&(e||h*(f?-1:1)==-1^Jr(t,l)>Jr(c||u))?"in":"out"),{dir:h,percent:i?1-r:n?r:e?1:0})})},percent:function(){return Math.abs((z(l,"transform").split(",")[4]*(f?-1:1)+e)/(d-e))},getDistance:function(){return Math.abs(d-e)},getItemIn:function(t){void 0===t&&(t=!1);var e=this.getActives(),n=Zr(l,Xr(u||c,l,i));return t&&(t=e,e=n,n=t),n[Q(n,function(t){return!v(e,t)})]},getActives:function(){return Zr(l,Xr(c||u,l,i))}}}},computed:{avgWidth:function(){return Kr(this.list)/this.length},finite:function(t){return t.finite||Math.ceil(Kr(this.list))<B(this.list).width+(t=this.list,Math.max.apply(Math,[0].concat(k(t).map(function(t){return B(t).width}))))+this.center},maxIndex:function(){var e,n,t;return!this.finite||this.center&&!this.sets?this.length-1:this.center?yt(this.sets):(e=0,n=Gr(this.list),~(t=Q(this.slides,function(t){return n<=e||void(e+=B(t).width)}))?t:this.length-1)}
3166,sets:function(t){var r,o,s,a,c=this;if(t=t.sets)return r=B(this.list).width/(this.center?2:1),s=r,a=o=0,!ft(t=$t(this.slides,"offsetLeft").reduce(function(t,e,n){var i=B(e).width;return o<a+i&&(v(t,n=!c.center&&n>c.maxIndex?c.maxIndex:n)||(e=c.slides[n+1],c.center&&e&&i<s-B(e).width/2?s-=i:(s=r,t.push(n),o=a+r+(c.center?i/2:0)))),a+=i,t},[]))&&t},transitionOptions:function(){return{center:this.center,list:this.list}}},connected:function(){M(this.$el,this.clsContainer,!s("."+this.clsContainer,this.$el))},update:{write:function(){var n=this,e=(this.navItems.forEach(function(t){var e=mt(Nt(t,n.attrItem));!1!==e&&(t.hidden=!n.maxIndex||e>n.maxIndex||n.sets&&!v(n.sets,e))}),!this.length||this.dragging||this.stack.length||(this.reorder(),this._translate(1)),this._getTransitioner(this.index).getActives());this.slides.forEach(function(t){return M(t,n.clsActive,v(e,t))}),!this.clsActivated||this.sets&&!v(this.sets,b(this.index))||this.slides.forEach(function(t){return M(t,n.clsActivated||"",v(e,t))})},events:["resize"]},events:{beforeitemshow:function(t){!this.dragging&&this.sets&&this.stack.length<2&&!v(this.sets,this.index)&&(this.index=this.getValidIndex());var e=Math.abs(this.index-this.prevIndex+(0<this.dir&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&1<e){for(var n=0;n<e;n++)this.stack.splice(1,0,0<this.dir?"next":"previous");t.preventDefault()}else t=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,this.duration=Fr(this.avgWidth/this.velocity)*(B(this.slides[t]).width/this.avgWidth),this.reorder()},itemshow:function(){~this.prevIndex&&C(this._getTransitioner().getItemIn(),this.clsActive)}},methods:{reorder:function(){var n=this;if(this.finite)z(this.slides,"order","");else{var i=0<this.dir&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach(function(t,e){return z(t,"order",0<n.dir&&e<i?1:n.dir<0&&e>=n.index?-1:"")}),this.center)for(var t=this.slides[i],e=B(this.list).width/2-B(t).width/2,r=0;0<e;){var o=this.getIndex(--r+i,i),s=this.slides[o];z(s,"order",i<o?-2:-1),e-=B(s).width}}},getValidIndex:function(t,e){var n;if(void 0===t&&(t=this.index),void 0===e&&(e=this.prevIndex),t=this.getIndex(t,e),this.sets)do{if(v(this.sets,t))return t}while(n=t,(t=this.getIndex(t+this.dir,e))!==n);return t}}},hr={mixins:[hr],data:{selItem:"!li"},computed:{item:function(t,e){return ne(t.selItem,e)}},events:[{name:"itemin itemout",self:!0,el:function(){return this.item},handler:function(t){var n=this,i=t.type,r=(t=t.detail).percent,o=t.duration,s=t.timing,a=t.dir;P.read(function(){var t=n.getCss(eo(i,a,r)),e=n.getCss(to(i)?.5:0<a?1:0);P.write(function(){z(n.$el,t),N.start(n.$el,e,o,s).catch(m)})})}},{name:"transitioncanceled transitionend",self:!0,el:function(){return this.item},handler:function(){N.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:function(){return this.item},handler:function(t){var e=this,n=t.type,i=(t=t.detail).percent,r=t.dir;P.read(function(){var t=e.getCss(eo(n,r,i));P.write(function(){return z(e.$el,t)})})}}]};var no,io=p({},io,{fade:{show:function(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent:function(t){return 1-z(t,"opacity")},translate:function(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show:function(){return[{opacity:0,transform:Hr(1.5),zIndex:0},{zIndex:-1}]},percent:function(t){return 1-z(t,"opacity")},translate:function(t){return[{opacity:1-t,transform:Hr(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show:function(t){return t<0?[{transform:L(30),zIndex:-1},{transform:L(),zIndex:0}]:[{transform:L(-100),zIndex:0},{transform:L(),zIndex:-1}]},percent:function(t,e,n){return n<0?1-Pr(e):Pr(t)},translate:function(t,e){return e<0?[{transform:L(30*t),zIndex:-1},{transform:L(-100*(1-t)),zIndex:0}]:[{transform:L(100*-t),zIndex:0},{transform:L(30*(1-t)),zIndex:-1}]}},push:{show:function(t){return t<0?[{transform:L(100),zIndex:0},{transform:L(),zIndex:-1}]:[{transform:L(-30),zIndex:-1},{transform:L(),zIndex:0}]},percent:function(t,e,n){return 0<n?1-Pr(e):Pr(t)},translate:function(t,e){return e<0?[{transform:L(100*t),zIndex:0},{transform:L(-30*(1-t)),zIndex:-1}]:[{transform:L(-30*t),zIndex:-1},{transform:L(100*(1-t)),zIndex:0}]}}}),io={mixins:[t,Xi,ar],props:{ratio:String,minHeight:Number,maxHeight:Number},data:{ratio:"16:9",minHeight:!1,maxHeight:!1,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:io},update:{read:function(){var t=(e=this.ratio.split(":").map(Number))[0],e=(e=e[1])*this.list.offsetWidth/t||0;return this.minHeight&&(e=Math.max(this.minHeight,e)),{height:(e=this.maxHeight?Math.min(this.maxHeight,e):e)-fn(this.list,"height","content-box")}},write:function(t){0<(t=t.height)&&z(this.list,"minHeight",t)},events:["resize"]}},yr={mixins:[t,yr],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"u
3166k-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},created:function(){var n=this;["init","start","move","end"].forEach(function(t){var e=n[t];n[t]=function(t){p(n.pos,$e(t)),e(t)}})},events:{name:Lt,passive:!1,handler:"init"},computed:{target:function(){return(this.$el.tBodies||[this.$el])[0]},items:function(){return k(this.target)},isEmpty:{get:function(){return ft(this.items)},watch:function(t){M(this.target,this.clsEmpty,t)},immediate:!0},handles:{get:function(t,e){return(t=t.handle)?a(t,e):this.items},watch:function(t,e){z(e,{touchAction:"",userSelect:""}),z(t,{touchAction:Ht?"none":"",userSelect:"none"})},immediate:!0}},update:{write:function(t){var e,n,i,r,o,s,a;this.drag&&y(this.placeholder)&&(e=(n=this.pos).x,a=n.y,s=(i=this.origin).offsetTop,n=this.placeholder,z(this.drag,{top:a-s,left:e-i.offsetLeft}),i=this.getSortable(document.elementFromPoint(e,a)))&&((s=i.items).some(N.inProgress)||(o={x:e,y:a},r=s[Q(s,function(t){return Tt(o,t.getBoundingClientRect())})],s.length&&(!r||r===n))||(s=this.getSortable(n),!1===(a=((t,e,n,i,r,o)=>{var s,a;if(k(t).length)return s=e.getBoundingClientRect(),o?(o=n.getBoundingClientRect(),n=(t=ro([s.top,s.bottom],[o.top,o.bottom]))?i:r,i=o[i=t?"width":"height"]<s[i]?s[i]-o[i]:0,o[r=t?"left":"top"]<s[r]?!(i&&n<s[r]+i)&&e.nextElementSibling:!(i&&n>s[t?"right":"bottom"]-i)&&e):(o=n,(n=1===k(i=t).length)&&T(i,o),a=k(i),i=a.some(function(t,e){var n=t.getBoundingClientRect();return a.slice(e+1).some(function(t){return t=t.getBoundingClientRect(),!ro([n.left,n.right],[t.left,t.right])})}),n&&De(o),i||r<s.top+s.height/2?e:e.nextElementSibling)})(i.target,r,n,e,a,i===s&&t.moved!==r)))||a&&n===a||(i!==s?(s.remove(n),t.moved=r):delete t.moved,i.insert(n,a),this.touched.add(i)))},events:["move"]},methods:{init:function(t){var e=t.target,n=t.button,i=t.defaultPrevented,r=this.items.filter(function(t){return h(e,t)})[0];!r||i||0<n||Xt(e)||h(e,"."+this.clsNoDrag)||this.handle&&!h(e,this.handle)||(t.preventDefault(),this.touched=new Set([this]),this.placeholder=r,this.origin=p({target:e,index:ee(r)},this.pos),$(document,jt,this.move),$(document,Ft,this.end),this.threshold)||this.start(t)},start:function(t){this.drag=(r=this.$container,i=this.placeholder,z(r=T(r,i.outerHTML.replace(/(^<)(?:li|tr)|(?:li|tr)(\/>$)/g,"$1div$2")),"margin","0","important"),z(r,p({boxSizing:"border-box",width:i.offsetWidth,height:i.offsetHeight},z(i,["paddingLeft","paddingRight","paddingTop","paddingBottom"]))),O(r.firstElementChild,O(i.firstElementChild)),r);var e,n,i=this.placeholder.getBoundingClientRect(),r=i.left;p(this.origin,{offsetLeft:this.pos.x-r,offsetTop:this.pos.y-i.top}),C(this.drag,this.clsDrag,this.clsCustom),C(this.placeholder,this.clsPlaceholder),C(this.items,this.clsItem),C(document.documentElement,this.clsDragState),I(this.$el,"start",[this,this.placeholder]),e=this.pos,n=Date.now(),no=setInterval(function(){var t=e.x,s=e.y,a=(s+=window.pageYOffset,.3*(Date.now()-n));n=Date.now(),Wn(document.elementFromPoint(t,e.y)).reverse().some(function(t){var e=t.scrollTop,n=t.scrollHeight,i=(o=D(Vn(t))).top,r=o.bottom,o=o.height;if(i<s&&s<i+35)e-=a;else{if(!(s<r&&r-35<s))return;e+=a}if(0<e&&e<n-o)return Ln(t,e),!0})},15),this.move(t)},move:function(t){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(t)},end:function(){var t,i=this;me(document,jt,this.move),me(document,Ft,this.end),me(window,"scroll",this.scroll),this.drag&&(clearInterval(no),t=this.getSortable(this.placeholder),this===t?this.origin.index!==ee(this.placeholder)&&I(this.$el,"moved",[this,this.placeholder]):(I(t.$el,"added",[t,this.placeholder]),I(this.$el,"removed",[this,this.placeholder])),I(this.$el,"stop",[this,this.placeholder]),De(this.drag),this.drag=null,this.touched.forEach(function(t){var e=t.clsPlaceholder,n=t.clsItem;return i.touched.forEach(function(t){return _(t.items,e,n)})}),this.touched=null,_(document.documentElement,this.clsDragState))},insert:function(t,e){var n=this;C(this.items,this.clsItem),this.animate(function(){return e?ze(e,t):T(n.target,t)})},remove:function(t){h(t,this.target)&&this.animate(function(){return De(t)})},getSortable:function(t){do{var e=this.$getComponent(t,"sortable");if(e&&(e===this||!1!==this.group&&e.group===this.group))return e}while(t=y(t))}}};function ro(t,e){return t[1]>e[0]&&e[1]>t[0]}function oo(t,e){return e.match(new RegExp("^"+t.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$","i"))}function so(t){t.preventDefault(),t.stopPropagation()}return Vt={mixins:[xi,pi,yi],args:"title",props:{delay:Number,title:String},data:{pos:"top",title:"",delay:0,animation:["uk-animation-scale-up"],duration:100,cls:"uk-active",clsPos:"uk-tooltip"},beforeConnect:function(){var t;this._hasTitle=Mt(this.$el,"title"),l(this.$el,"title",""),this.updateAria(!1),Gt(t=this.$el)||l(t,"tabindex","0")},disconnected:function(){this.hide(),l(this.$el,"title",this._hasTitle?this.title:null)},methods:{show:function(){var e=this;!this.isToggled(this.tooltip||null)&&this.title&&(this._unbind=S(document,"show keydown "+Lt,this.hide,!1,function(t){return t.type===Lt&&!h(t.target,e.$el)||"keydown"===t.type&&27===t.keyCode||"show"===t.type&&t.detail[0]!==e&&t.detail[0].$n
3166ame===e.$name}),clearTimeout(this.showTimer),this.showTimer=setTimeout(this._show,this.delay))},hide:function(){var t=this;d(this.$el,"input:focus")||(clearTimeout(this.showTimer),this.isToggled(this.tooltip||null)&&this.toggleElement(this.tooltip,!1,!1).then(function(){t.tooltip=De(t.tooltip),t._unbind()}))},_show:function(){var n=this;this.tooltip=T(this.container,'<div class="'+this.clsPos+'"> <div class="'+this.clsPos+'-inner">'+this.title+"</div> </div>"),$(this.tooltip,"toggled",function(t,e){n.updateAria(e),e&&(n.positionAt(n.tooltip,n.$el),n.origin="y"===n.getAxis()?pn(n.dir)+"-"+n.align:n.align+"-"+pn(n.dir))}),this.toggleElement(this.tooltip,!0)},updateAria:function(t){l(this.$el,"aria-expanded",t)}},events:((yi={focus:"show",blur:"hide"})[Wt+" "+Vt]=function(t){ke(t)||this[t.type===Wt?"show":"hide"]()},yi[Lt]=function(t){ke(t)&&this.show()},yi)},yi={props:{allow:String,clsDragover:String,concurrent:Number,maxSize:Number,method:String,mime:String,msgInvalidMime:String,msgInvalidName:String,msgInvalidSize:String,multiple:Boolean,name:String,params:Object,type:String,url:String},data:{allow:!1,clsDragover:"uk-dragover",concurrent:1,maxSize:0,method:"POST",mime:!1,msgInvalidMime:"Invalid File Type: %s",msgInvalidName:"Invalid File Name: %s",msgInvalidSize:"Invalid File Size: %s Kilobytes Max",multiple:!1,name:"files[]",params:{},type:"",url:"",abort:m,beforeAll:m,beforeSend:m,complete:m,completeAll:m,error:m,fail:m,load:m,loadEnd:m,loadStart:m,progress:m},events:{change:function(t){d(t.target,'input[type="file"]')&&(t.preventDefault(),t.target.files&&this.upload(t.target.files),t.target.value="")},drop:function(t){so(t),(t=t.dataTransfer)&&t.files&&(_(this.$el,this.clsDragover),this.upload(t.files))},dragenter:function(t){so(t)},dragover:function(t){so(t),C(this.$el,this.clsDragover)},dragleave:function(t){so(t),_(this.$el,this.clsDragover)}},methods:{upload:function(t){var i=this;if(t.length){I(this.$el,"upload",[t]);for(var e=0;e<t.length;e++){if(this.maxSize&&1e3*this.maxSize<t[e].size)return void this.fail(this.msgInvalidSize.replace("%s",this.maxSize));if(this.allow&&!oo(this.allow,t[e].name))return void this.fail(this.msgInvalidName.replace("%s",this.allow));if(this.mime&&!oo(this.mime,t[e].type))return void this.fail(this.msgInvalidMime.replace("%s",this.mime))}this.multiple||(t=[t[0]]),this.beforeAll(this,t);var r=((t,e)=>{for(var n=[],i=0;i<t.length;i+=e){for(var r=[],o=0;o<e;o++)r.push(t[i+o]);n.push(r)}return n})(t,this.concurrent),o=function(t){var e,n=new FormData;for(e in t.forEach(function(t){return n.append(i.name,t)}),i.params)n.append(e,i.params[e]);Ce(i.url,{data:n,method:i.method,responseType:i.type,beforeSend:function(t){var e=t.xhr;return e.upload&&$(e.upload,"progress",i.progress),["loadStart","load","loadEnd","abort"].forEach(function(t){return $(e,t.toLowerCase(),i[t])}),i.beforeSend(t)}}).then(function(t){i.complete(t),r.length?o(r.shift()):i.completeAll(t)},function(t){return i.error(t)})};o(r.shift())}}}},kt(Object.freeze({__proto__:null,Countdown:sr,Filter:kr,Lightbox:qi,LightboxPanel:Wr,Notification:qr,Parallax:Ui,Slider:Yi,SliderParallax:hr,Slideshow:io,SlideshowParallax:hr,Sortable:yr,Tooltip:Vt,Upload:yi}),function(t,e){return Zn.component(e,t)}),Zn});
3167((e,t)=>{"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.ScrollMagic=t()})(this,function(){function M(){B.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")}M.version="2.0.7",window.addEventListener("mousewheel",function(){});var k="data-scrollmagic-pin-spacer",F=(M.Controller=function(e){function o(e){return e.length<=1?e:((e=e.slice(0)).sort(function(e,t){return e.scrollOffset()>t.scrollOffset()?1:-1}),e)}var n,r,t,i="ScrollMagic.Controller",l="FORWARD",s="REVERSE",a="PAUSED",c=F.defaults,u=this,d=B.extend({},c,e),f=[],p=!1,g=0,h=a,v=!0,m=0,w=!0,y=function(){0<d.refreshInterval&&(r=window.setTimeout(O,d.refreshInterval))},S=function(){return d.vertical?B.get.scrollTop(d.container):B.get.scrollLeft(d.container)},E=function(){return d.vertical?B.get.height(d.container):B.get.width(d.container)},b=this._setScrollPos=function(e){d.vertical?v?window.scrollTo(B.get.scrollLeft(),e):d.container.scrollTop=e:v?window.scrollTo(e,B.get.scrollTop()):d.container.scrollLeft=e},R=function(){var n,e;w&&p&&(n=B.type.Array(p)?p:f.slice(0),p=!1,e=g,e=(g=u.scrollPos())-e,(h=0!=e?0<e?l:s:h)===s&&n.reverse(),n.forEac
3167h(function(e,t){x(3,"updating Scene "+(t+1)+"/"+n.length+" ("+f.length+" total)"),e.update(!0)}),0===n.length)&&3<=d.loglevel&&x(3,"updating 0 Scenes (nothing added to controller)")},T=function(){n=B.rAF(R)},C=function(e){x(3,"event fired causing an update:",e.type),"resize"==e.type&&(m=E(),h=a),!0!==p&&(p=!0,T())},O=function(){if(!v&&m!=E()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}d.container.dispatchEvent(t)}f.forEach(function(e,t){e.refresh()}),y()},x=this._log=function(e,t){d.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+i+") ->"),B.log.apply(window,arguments))};this._options=d;for(t in this.addScene=function(e){if(B.type.Array(e))e.forEach(function(e,t){u.addScene(e)});else if(e instanceof M.Scene){if(e.controller()!==u)e.addTo(u);else if(f.indexOf(e)<0){for(var t in f.push(e),f=o(f),e.on("shift.controller_sort",function(){f=o(f)}),d.globalSceneOptions)e[t]&&e[t].call(e,d.globalSceneOptions[t]);x(3,"adding Scene (now "+f.length+" total)")}}else x(1,"ERROR: invalid argument supplied for '.addScene()'");return u},this.removeScene=function(e){var t;return B.type.Array(e)?e.forEach(function(e,t){u.removeScene(e)}):-1<(t=f.indexOf(e))&&(e.off("shift.controller_sort"),f.splice(t,1),x(3,"removing Scene (now "+f.length+" left)"),e.remove()),u},this.updateScene=function(e,n){return B.type.Array(e)?e.forEach(function(e,t){u.updateScene(e,n)}):n?e.update(!0):!0!==p&&e instanceof M.Scene&&(-1==(p=p||[]).indexOf(e)&&p.push(e),p=o(p),T()),u},this.update=function(e){return C({type:"resize"}),e&&R(),u},this.scrollTo=function(e,t){if(B.type.Number(e))b.call(d.container,e,t);else if(e instanceof M.Scene)e.controller()===u?u.scrollTo(e.scrollOffset(),t):x(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",e);else if(B.type.Function(e))b=e;else{var n=B.get.elements(e)[0];if(n){for(;n.parentNode.hasAttribute(k);)n=n.parentNode;var o=d.vertical?"top":"left",r=B.get.offset(d.container),i=B.get.offset(n);v||(r[o]-=u.scrollPos()),u.scrollTo(i[o]-r[o],t)}else x(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",e)}return u},this.scrollPos=function(e){return arguments.length?(B.type.Function(e)?S=e:x(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),u):S.call(u)},this.info=function(e){var t={size:m,vertical:d.vertical,scrollPos:g,scrollDirection:h,container:d.container,isDocument:v};return arguments.length?void 0!==t[e]?t[e]:void x(1,'ERROR: option "'+e+'" is not available'):t},this.loglevel=function(e){return arguments.length?(d.loglevel!=e&&(d.loglevel=e),u):d.loglevel},this.enabled=function(e){return arguments.length?(w!=e&&(w=!!e,u.updateScene(f,!0)),u):w},this.destroy=function(e){window.clearTimeout(r);for(var t=f.length;t--;)f[t].destroy(e);return d.container.removeEventListener("resize",C),d.container.removeEventListener("scroll",C),B.cAF(n),x(3,"destroyed "+i+" (reset: "+(e?"true":"false")+")"),null},d)c.hasOwnProperty(t)||(x(2,'WARNING: Unknown option "'+t+'"'),delete d[t]);if(d.container=B.get.elements(d.container)[0],!d.container)throw x(1,"ERROR creating object "+i+": No valid scroll container supplied"),i+" init failed.";(v=d.container===window||d.container===document.body||!document.body.contains(d.container))&&(d.container=window),m=E(),d.container.addEventListener("resize",C),d.container.addEventListener("scroll",C);e=parseInt(d.refreshInterval,10);return d.refreshInterval=B.type.Number(e)?e:c.refreshInterval,y(),x(3,"added new "+i+" controller (v"+M.version+")"),u},{defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}}),D=(M.Controller.addOption=function(e,t){F.defaults[e]=t},M.Controller.extend=function(e){var t=this;M.Controller=function(){return t.apply(this,arguments),this.$super=B.extend({},this),e.apply(this,arguments)||this},B.extend(M.Controller,t),M.Controller.prototype=t.prototype,M.Controller.prototype.constructor=M.Controller},{defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parseFloat(e),B.type.Number(e))return e;throw['Invalid value for option "offset":',e]},triggerElement:function(e){if(e=e||void 0){var t=B.get.elements(e)[0];if(!t||!t.parentNode)throw['Element defined in option "triggerElement" was not found:',e];e=t}return e},triggerHook:function(e){var t={onCenter:.5,onEnter:1,onLeave:0};if(B.type.Number(e))e=Math.max(0,Math.min(parseFloat(e),1));else{if(!(e in t))throw['Invalid value for option "triggerHook": ',e];e=t[e]}return e},reverse:function(e){return!!e},loglevel:function(e){if(e=parseInt(e),!B.type.Number(e)||e<0||3<e)throw['Invalid value for option "loglevel":',e];return e}},shifts:["duration","offset","triggerHook"]}),B=((M.Scene=function(e){function c(){s&&f&&m===a&&!s.info("isDocument")&&P()}function u(){s&&f&&m===a&&((p.relSize.width||p.relSize.autoFullWidth)&&B.get.width(window)!=B.get.width(p.spacer.parentNode)||p.relSize.height&&B.get.height(window)!=B.get.height(p.spacer.parentNode))&&A()}function d(e){s&&f&&m===a&&!s.info("isDocument")&&(e.preventDefault(),s._setScrollPos(s.info("scrollPos")-((e.wheelDelta||e[s.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-e.detail)))}var n,s,f,p,o="ScrollMagic.Scene",l="BEFORE",a="DURING",g="AFTER",r=D.defaults,h=this,v=B.extend({},r,e),m=l,w=0,i={start:0,end:0},y=0,S=!0,E={},b=(this.on=function(e,n){return B.type.Function(n)?(e=e.trim().split(" ")).forEac
3167h(function(e){var e=e.split("."),t=e[0],e=e[1];"*"!=t&&(E[t]||(E[t]=[]),E[t].push({namespace:e||"",callback:n}))}):b(1,"ERROR when calling '.on()': Supplied callback for '"+e+"' is not a valid function!"),h},this.off=function(e,i){return e?(e=e.trim().split(" ")).forEach(function(e,t){var e=e.split("."),n=e[0],r=e[1]||"";("*"===n?Object.keys(E):[n]).forEach(function(e){for(var t=E[e]||[],n=t.length;n--;){var o=t[n];!o||r!==o.namespace&&"*"!==r||i&&i!=o.callback||t.splice(n,1)}t.length||delete E[e]})}):b(1,"ERROR: Invalid event name supplied."),h},this.trigger=function(e,n){var o,r;return e?(e=e.trim().split("."),o=e[0],r=e[1],e=E[o],b(3,"event fired:",o,n?"->":"",n||""),e&&e.forEach(function(e,t){r&&r!==e.namespace||e.callback.call(h,new M.Event(o,e.namespace,h,n))})):b(1,"ERROR: Invalid event name supplied."),h},h.on("change.internal",function(e){"loglevel"!==e.what&&"tweenChanges"!==e.what&&("triggerElement"===e.what?T():"reverse"===e.what&&h.update())}).on("shift.internal",function(e){t(),h.update()}),this._log=function(e,t){v.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+o+") ->"),B.log.apply(window,arguments))}),t=(this.addTo=function(e){return e instanceof M.Controller?s!=e&&(s&&s.removeScene(h),s=e,x(),R(!0),T(!0),t(),s.info("container").addEventListener("resize",C),e.addScene(h),h.trigger("add",{controller:s}),b(3,"added "+o+" to controller"),h.update()):b(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),h},this.enabled=function(e){return arguments.length?(S!=e&&(S=!!e,h.update(!0)),h):S},this.remove=function(){var e;return s&&(s.info("container").removeEventListener("resize",C),e=s,s=void 0,e.removeScene(h),h.trigger("remove"),b(3,"removed "+o+" from controller")),h},this.destroy=function(e){return h.trigger("destroy",{reset:e}),h.remove(),h.off("*.*"),b(3,"destroyed "+o+" (reset: "+(e?"true":"false")+")"),null},this.update=function(e){var t;return s&&(e?s.enabled()&&S?(e=s.info("scrollPos"),t=0<v.duration?(e-i.start)/(i.end-i.start):e>=i.start?1:0,h.trigger("update",{startPos:i.start,endPos:i.end,scrollPos:e}),h.progress(t)):f&&m===a&&P(!0):s.updateScene(h,!1)),h},this.refresh=function(){return R(),T(),h},this.progress=function(e){var t,n,o,r,i;return arguments.length?(t=!1,n=m,o=s?s.info("scrollDirection"):"PAUSED",i=v.reverse||w<=e,0===v.duration?(t=w!=e,m=0===(w=e<1&&i?0:1)?l:a):e<0&&m!==l&&i?(m=l,t=!(w=0)):0<=e&&e<1&&i?(w=e,m=a,t=!0):1<=e&&m!==g?(w=1,m=g,t=!0):m!==a||i||P(),t&&(r={progress:w,state:m,scrollDirection:o},e=function(e){h.trigger(e,r)},(i=m!=n)&&n!==a&&(e("enter"),e(n===l?"start":"end")),e("progress"),i)&&m!==a&&(e(m===l?"start":"end"),e("leave")),h):w},function(){i={start:y+v.offset},s&&v.triggerElement&&(i.start-=s.info("size")*v.triggerHook),i.end=i.start+v.duration}),R=function(e){var t;n&&F(t="duration",n.call(h))&&!e&&(h.trigger("change",{what:t,newval:v[t]}
3167),h.trigger("shift",{reason:t}))},T=function(e){var t=0,n=v.triggerElement;if(s&&(n||0<y)){if(n)if(n.parentNode){for(var o=s.info(),r=B.get.offset(o.container),i=o.vertical?"top":"left";n.parentNode.hasAttribute(k);)n=n.parentNode;var l=B.get.offset(n);o.isDocument||(r[i]-=s.scrollPos()),t=l[i]-r[i]}else b(2,"WARNING: triggerElement was removed from DOM and will be reset to",void 0),h.triggerElement(void 0);o=t!=y;y=t,o&&!e&&h.trigger("shift",{reason:"triggerElementPosition"})}},C=function(e){0<v.triggerHook&&h.trigger("shift",{reason:"containerResize"})},O=B.extend(D.validate,{duration:function(t){var e;if(B.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)&&(e=parseFloat(t)/100,t=function(){return s?s.info("size")*e:0}),B.type.Function(t)){n=t;try{t=parseFloat(n.call(h))}catch(e){t=-1}}if(t=parseFloat(t),!B.type.Number(t)||t<0)throw n?(n=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}}),x=function(e){(e=arguments.length?[e]:Object.keys(O)).forEach(function(t,e){if(O[t])try{n=O[t](v[t])}catch(e){var n=r[t],o=B.type.String(e)?[e]:e;B.type.Array(o)?(o[0]="ERROR: "+o[0],o.unshift(1),b.apply(this,o)):b(1,"ERROR: Problem executing validation callback for option '"+t+"':",e.message)}finally{v[t]=n}})},F=function(e,t){var n=!1,o=v[e];return v[e]!=t&&(v[e]=t,x(e),n=o!=v[e]),n},z=function(t){h[t]||(h[t]=function(e){return arguments.length?("duration"===t&&(n=void 0),F(t,e)&&(h.trigger("change",{what:t,newval:v[t]}
3167),-1<D.shifts.indexOf(t))&&h.trigger("shift",{reason:t}),h):v[t]})},P=(this.controller=function(){return s},this.state=function(){return m},this.scrollOffset=function(){return i.start},this.triggerPosition=function(){var e=v.offset;return s&&(v.triggerElement?e+=y:e+=s.info("size")*h.triggerHook()),e},h.on("shift.internal",function(e){e="duration"===e.reason;(m===g&&e||m===a&&0===v.duration)&&P(),e&&A()}).on("progress.internal",function(e){P()}).on("add.internal",function(e){A()}).on("destroy.internal",function(e){h.removePin(e.reset)}),function(e){var t,n,o;f&&s&&(t=s.info(),n=p.spacer.firstChild,e||m!==a?(e={position:p.inFlow?"relative":"absolute",top:0,left:0},o=B.css(n,"position")!=e.position,p.pushFollowers?0<v.duration&&(m===g&&0===parseFloat(B.css(p.spacer,"padding-top"))||m===l&&0===parseFloat(B.css(p.spacer,"padding-bottom")))&&(o=!0):e[t.vertical?"top":"left"]=v.duration*w,B.css(n,e),o&&A()):("fixed"!=B.css(n,"position")&&(B.css(n,{position:"fixed"}),A()),e=B.get.offset(p.spacer,!0),o=v.reverse||0===v.duration?t.scrollPos-i.start:Math.round(w*v.duration*10)/10,e[t.vertical?"top":"left"]+=o,B.css(p.spacer.firstChild,{top:e.top,left:e.left})))}),A=function(){var e,t,n,o,r;f&&s&&p.inFlow&&(e=m===a,t=s.info("vertical"),n=p.spacer.firstChild,o=B.isMarginCollapseType(B.css(p.spacer,"display")),r={},p.relSize.width||p.relSize.autoFullWidth?e?B.css(f,{width:B.get.width(p.spacer)}):B.css(f,{width:"100%"}):(r["min-width"]=B.get.width(t?f:n,!0,!0),r.width=e?r["min-width"]:"auto"),p.relSize.height?e?B.css(f,{height:B.get.height(p.spacer)-(p.pushFollowers?v.duration:0)}):B.css(f,{height:"100%"}):(r["min-height"]=B.get.height(t?n:f,!0,!o),r.height=e?r["min-height"]:"auto"),p.pushFollowers&&(r["padding"+(t?"Top":"Left")]=v.duration*w,r["padding"+(t?"Bottom":"Right")]=v.duration*(1-w)),B.css(p.spacer,r))};this.setPin=function(e,t){var n=t&&t.hasOwnProperty("pushFollowers");if(t=B.extend({},{pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"},t),e=B.get.elements(e)[0])if("fixed"===B.css(e,"position"))b(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'.");else{if(f){if(f===e)return h;h.removePin()}var o,e=(f=e).parentNode.style.display,r=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"],i=(f.parentNode.style.display="none","absolute"!=B.css(f,"position")),l=B.css(f,r.concat(["display"])),s=B.css(f,["width","height"]),e=(f.parentNode.style.display=e,!i&&t.pushFollowers&&(b(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),t.pushFollowers=!1),window.setTimeout(function(){f&&0===v.duration&&n&&t.pushFollowers&&b(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")},0),f.parentNode.insertBefore(document.createElement("div"),f)),a=B.extend(l,{position:i?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});i||B.extend(a,B.css(f,["width","height"])),B.css(e,a),e.setAttribute(k,""),B.addClass(e,t.spacerClass),p={spacer:e,relSize:{width:"%"===s.width.slice(-1),height:"%"===s.height.slice(-1),autoFullWidth:"auto"===s.width&&i&&B.isMarginCollapseType(l.display)},pushFollowers:t.pushFollowers,inFlow:i},f.___origStyle||(f.___origStyle={},o=f.style,r.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach(function(e){f.___origStyle[e]=o[e]||""})),p.relSize.width&&B.css(e,{width:s.width}),p.relSize.height&&B.css(e,{height:s.height}),e.appendChild(f),B.css(f,{position:i?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(p.relSize.width||p.relSize.autoFullWidth)&&B.css(f,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",c),window.addEventListener("resize",c),window.addEventListener("resize",u),f.addEventListener("mousewheel",d),f.addEventListener("DOMMouseScroll",d),b(3,"added pin"),P()}else b(1,"ERROR calling method 'setPin()': Invalid pin element supplied.");return h},this.removePin=function(e){var t,n,o;return f&&(m===a&&P(!0),!e&&s||((t=p.spacer.firstChild).hasAttribute(k)&&(n=p.spacer.style,o={},["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach(function(e){o[e]=n[e]||""}),B.css(t,o)),p.spacer.parentNode.insertBefore(t,p.spacer),p.spacer.parentNode.removeChild(p.spacer),f.parentNode.hasAttribute(k))||(B.css(f,f.___origStyle),delete f.___origStyle),window.removeEventListener("scroll",c),window.removeEventListener("resize",c),window.removeEventListener("resize",u),f.removeEventListener("mousewheel",d),f.removeEventListener("DOMMouseScroll",d),f=void 0,b(3,"removed pin (reset: "+(e?"true":"false")+")")),h};var L,N,I,_=[];for(N in h.on("destroy.internal",function(e){h.removeClassToggle(e.reset)}),this.setClassToggle=function(e,t){e=B.get.elements(e);return 0!==e.length&&B.type.String(t)?(0<_.length&&h.removeClassToggle(
3167),L=t,_=e,h.on("enter.internal_class leave.internal_class",function(e){var n="enter"===e.type?B.addClass:B.removeClass;_.forEach(function(e,t){n(e,L)})})):b(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===e.length?"element":"classes")+" supplied."),h},this.removeClassToggle=function(e){return e&&_.forEach(function(e,t){B.removeClass(e,L)}),h.off("start.internal_class end.internal_class"),L=void 0,_=[],h},v)r.hasOwnProperty(N)||(b(2,'WARNING: Unknown option "'+N+'"'),delete v[N]);for(I in r)z(I);return x(),h}).addOption=function(e,t,n,o){e in D.defaults?M._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(D.defaults[e]=t,D.validate[e]=n,o&&D.shifts.push(e))},M.Scene.extend=function(e){var t=this;M.Scene=function(){return t.apply(this,arguments),this.$super=B.extend({},this),e.apply(this,arguments)||this},B.extend(M.Scene,t),M.Scene.prototype=t.prototype,M.Scene.prototype.constructor=M.Scene},M.Event=function(e,t,n,o){for(var r in o=o||{})this[r]=o[r];return this.type=e,this.target=this.currentTarget=n,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this},M._util=(i=>{for(var e={},l=function(e){return parseFloat(e)||0},s=function(e){return e.currentStyle||i.getComputedStyle(e)},o=function(e,t,n,o){if((t=t===document?i:t)===i)o=!1;else if(!g.DomElement(t))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var r=(n?t["offset"+e]||t["outer"+e]:t["client"+e]||t["inner"+e])||0;return n&&o&&(n=s(t),r+="Height"===e?l(n.marginTop)+l(n.marginBottom):l(n.marginLeft)+l(n.marginRight)),r},a=function(e){return e.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},r=(e.extend=function(e){for(e=e||{},u=1;u<arguments.length;u++)if(arguments[u])for(var t in arguments[u])arguments[u].hasOwnProperty(t)&&(e[t]=arguments[u][t]);return e},e.isMarginCollapseType=function(e){return-1<["block","flex","list-item","table","-webkit-box"].indexOf(e)}
3167,0),t=["ms","moz","webkit","o"],n=i.requestAnimationFrame,c=i.cancelAnimationFrame,u=0;!n&&u<t.length;++u)n=i[t[u]+"RequestAnimationFrame"],c=i[t[u]+"CancelAnimationFrame"]||i[t[u]+"CancelRequestAnimationFrame"];c=c||function(e){i.clearTimeout(e)},e.rAF=(n=n||function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-r)),o=i.setTimeout(function(){e(t+n)},n);return r=t+n,o}).bind(i),e.cAF=c.bind(i);var d=["error","warn","log"],f=i.console||{};for(f.log=f.log||function(){},u=0;u<d.length;u++){var p=d[u];f[p]||(f[p]=f.log)}e.log=function(e){(d.length<e||e<=0)&&(e=d.length);var t=new Date,t=("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)+":"+("00"+t.getMilliseconds()).slice(-3),e=d[e-1],n=Array.prototype.splice.call(arguments,1),e=Function.prototype.bind.call(f[e],f);n.unshift(t),e.apply(f,n)};var g=e.type=function(e){return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},h=(g.String=function(e){return"string"===g(e)},g.Function=function(e){return"function"===g(e)},g.Array=function(e){return Array.isArray(e)},g.Number=function(e){return!g.Array(e)&&0<=e-parseFloat(e)+1},g.DomElement=function(e){return"object"==typeof HTMLElement||"function"==typeof HTMLElement?e instanceof HTMLElement||e instanceof SVGElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.get={});return h.elements=function(e){var t=[];if(g.String(e))try{e=document.querySelectorAll(e)}catch(e){return t}if("nodelist"===g(e)||g.Array(e)||e instanceof NodeList)for(var n=0,o=t.length=e.length;n<o;n++){var r=e[n];t[n]=g.DomElement(r)?r:h.elements(r)}else!g.DomElement(e)&&e!==document&&e!==i||(t=[e]);return t},h.scrollTop=function(e){return e&&"number"==typeof e.scrollTop?e.scrollTop:i.pageYOffset||0},h.scrollLeft=function(e){return e&&"number"==typeof e.scrollLeft?e.scrollLeft:i.pageXOffset||0},h.width=function(e,t,n){return o("width",e,t,n)},h.height=function(e,t,n){return o("height",e,t,n)},h.offset=function(e,t){var n={top:0,left:0};return e&&e.getBoundingClientRect&&(e=e.getBoundingClientRect(),n.top=e.top,n.left=e.left,t||(n.top+=h.scrollTop(),n.left+=h.scrollLeft())),n},e.addClass=function(e,t){t&&(e.classList?e.classList.add(t):e.className+=" "+t)},e.removeClass=function(e,t){t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},e.css=function(e,t){if(g.String(t))return s(e)[a(t)];var n,o,r;if(g.Array(t))return n={},o=s(e),t.forEach(function(e,t){n[e]=o[a(e)]}),n;for(r in t){var i=t[r];i==parseFloat(i)&&(i+="px"),e.style[a(r)]=i}},e})(window||{}));return M.Scene.prototype.addIndicators=function(){return M._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},M.Scene.prototype.removeIndicators=function(){return M._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},M.Scene.prototype.setTween=function(){return M._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},M.Scene.prototype.removeTween=function(){return M._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},M.Scene.prototype.setVelocity=function(){return M._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},M.Scene.prototype.removeVelocity=function(){return M._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},M});
3168((e,r)=>{"function"==typeof define&&define.amd?define(["ScrollMagic"],r):"object"==typeof exports?r(require("scrollmagic")):r(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic)})(this,function(o){var G="debug.addIndicators",e=window.console||{},e=Function.prototype.bind.call(e.error||e.log||function(){},e),i=(o||e("("+G+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),"0.85em"),n="9999",w=o._util,_=0,s=(o.Scene.extend(function(){var r,t=this;t.addIndicators=function(e){return r||(e=w.extend({},{name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"},e),_++,r=new s(t,e),t.on("add.plugin_addIndicators",r.add),t.on("remove.plugin_addIndicators",r.remove),t.on("destroy.plugin_addIndicators",t.removeIndicators),t.controller()&&r.add()),t},t.removeIndicators=function(){return r&&(r.remove(),this.off("*.plugin_addIndicators"),r=void 0),t}}),o.Controller.addOption("addIndicators",!1),o.Controller.extend(function(){function e(){h.updateBoundsPositions()}function r(){h.updateTriggerGroupPositions()}var p=this,t=p.info(),c=t.container,u=t.isDocument,f=t.vertical,h={groups:[]};p._indicators&&!function(){p._log&&(Array.prototype.splice.call(arguments,1,0,"("+G+")","->"),p._log.apply(this,arguments))}
3168(2,"WARNING: Scene already has a property '_indicators', which will be overwritten by plugin."),this._indicators=h;return c.addEventListener("resize",r),u||(window.addEventListener("resize",r),window.addEventListener("scroll",r)),c.addEventListener("resize",e),c.addEventListener("scroll",e),this._indicators.updateBoundsPositions=function(e){for(var r,t,o,i=e?[w.extend({},e.triggerGroup,{members:[e]})]:h.groups,n=i.length,s={},d=f?"left":"top",a=f?"width":"height",g=f?w.get.scrollLeft(c)+w.get.width(c)-15:w.get.scrollTop(c)+w.get.height(c)-15;n--;)for(r=(o=i[n]).members.length,t=w.get[a](o.element.firstChild);r--;)s[d]=g-t,w.css(o.members[r].bounds,s)},this._indicators.updateTriggerGroupPositions=function(e){for(var r,t,o,i,n=e?[e]:h.groups,s=n.length,e=u?document.body:c,d=u?{top:0,left:0}:w.get.offset(e,!0),a=f?w.get.width(c)-15:w.get.height(c)-15,g=f?"width":"height",l=f?"Y":"X";s--;)t=(r=n[s]).element,o=r.triggerHook*p.info("size"),i=w.get[g](t.firstChild.firstChild)<o?"translate"+l+"(-100%)":"",w.css(t,{top:d.top+(f?o:a-r.members[0].options.indent),left:d.left+(f?a-r.members[0].options.indent:o)}),w.css(t.firstChild.firstChild,{"-ms-transform":i,"-webkit-transform":i,transform:i})},this._indicators.updateTriggerGroupLabel=function(e){var r="trigger"+(1<e.members.length?"":" "+e.members[0].options.name),e=e.element.firstChild.firstChild;e.textContent!==r&&(e.textContent=r,f)&&h.updateBoundsPositions()},this.addScene=function(e){this._options.addIndicators&&e instanceof o.Scene&&e.controller()===p&&e.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){c.removeEventListener("resize",r),u||(window.removeEventListener("resize",r),window.removeEventListener("scroll",r)),c.removeEventListener("resize",e),c.removeEventListener("scroll",e),this.$super.destroy.apply(this,arguments)},p}),function(i,t){function r(){i._log&&(Array.prototype.splice.call(arguments,1,0,"("+G+")","->"),i._log.apply(this,arguments))}var o,n,s=this,d=x.bounds(),a=x.start(t.colorStart),g=x.end(t.colorEnd),l=t.parent&&w.get.elements(t.parent)[0],p=(t.name=t.name||_,a.firstChild.textContent+=" "+t.name,g.textContent+=" "+t.name,d.appendChild(a),d.appendChild(g),s.options=t,s.bounds=d,s.triggerGroup=void 0,this.add=function(){n=i.controller(),o=n.info("vertical");var e=n.info("isDocument");l=l||(e?document.body:n.info("container")),e||"static"!==w.css(l,"position")||w.css(l,{position:"relative"}),i.on("change.plugin_addIndicators",c),i.on("shift.plugin_addIndicators",p),b(),h(),setTimeout(function(){n._indicators.updateBoundsPositions(s)},0),r(3,"added indicators")},this.remove=function(){var e;s.triggerGroup&&(i.off("change.plugin_addIndicators",c),i.off("shift.plugin_addIndicators",p),1<s.triggerGroup.members.length?((e=s.triggerGroup).members.splice(e.members.indexOf(s),1),n._indicators.updateTriggerGroupLabel(e),n._indicators.updateTriggerGroupPositions(e),s.triggerGroup=void 0):v(),f(),r(3,"removed indicators"))},function(){h()}),c=function(e){"triggerHook"===e.what&&b()},u=function(){var e=n.info("vertical");w.css(a.firstChild,{"border-bottom-width":e?1:0,"border-right-width":e?0:1,bottom:e?-1:t.indent,right:e?t.indent:-1,padding:e?"0 8px":"2px 4px"}),w.css(g,{"border-top-width":e?1:0,"border-left-width":e?0:1,top:e?"100%":"",right:e?t.indent:"",bottom:e?"":t.indent,left:e?"":"100%",padding:e?"0 8px":"2px 4px"}),l.appendChild(d)},f=function(){d.parentNode.removeChild(d)},h=function(){d.parentNode!==l&&u();var e={};e[o?"top":"left"]=i.triggerPosition(),e[o?"height":"width"]=i.duration(),w.css(d,e),w.css(g,{display:0<i.duration()?"":"none"})},m=function(){var e=x.trigger(t.colorTrigger),r={},r=(r[o?"right":"bottom"]=0,r[o?"border-top-width":"border-left-width"]=1,w.css(e.firstChild,r),w.css(e.firstChild.firstChild,{padding:o?"0 8px 3px 8px":"3px 4px"}),document.body.appendChild(e),{triggerHook:i.triggerHook(),element:e,members:[s]});n._indicators.groups.push(r),s.triggerGroup=r,n._indicators.updateTriggerGroupLabel(r),n._indicators.updateTriggerGroupPositions(r)},v=function(){n._indicators.groups.splice(n._indicators.groups.indexOf(s.triggerGroup),1),s.triggerGroup.element.parentNode.removeChild(s.triggerGroup.element),s.triggerGroup=void 0},b=function(){var e=i.triggerHook();if(!(s.triggerGroup&&Math.abs(s.triggerGroup.triggerHook-e)<1e-4)){for(var r,t=n._indicators.groups,o=t.length;o--;)if(r=t[o],Math.abs(r.triggerHook-e)<1e-4)return s.triggerGroup&&(1===s.triggerGroup.members.length?v():(s.triggerGroup.members.splice(s.triggerGroup.members.indexOf(s),1),n._indicators.updateTriggerGroupLabel(s.triggerGroup),n._indicators.updateTriggerGroupPositions(s.triggerGroup))),r.members.push(s),s.triggerGroup=r,void n._indicators.updateTriggerGroupLabel(r);if(s.triggerGroup){if(1===s.triggerGroup.members.length)return s.triggerGroup.triggerHook=e,void n._indicators.updateTriggerGroupPositions(s.triggerGroup);s.triggerGroup.members.splice(s.triggerGroup.members.indexOf(s),1),n._indicators.updateTriggerGroupLabel(s.triggerGroup),n._indicators.updateTriggerGroupPositions(s.triggerGroup),s.triggerGroup=void 0}m()}}}),x={start:function(e){var r=document.createElement("div"),e=(r.textContent="start",w.css(r,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e}),document.createElement("div"));return w.css(e,{position:"absolute",overflow:"visible",width:0,height:0}),e.appendChild(r),e},end:function(e){var r=document.createElement("div");return r.textContent="end",w.css(r,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e}),r},bounds:function(){var e=document.createElement("div");return w.css(e,{position:"absolute",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":i}),e.style.zIndex=n,e},trigger:function(e){var r=document.createElement("div"),t=(r.textContent="trigger",w.css(r,{position:"relative"}),document.createElement("div")),e=(w.css(t,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:e,"border-color":e}),t.appendChild(r),document.createElement("div"));return w.css(e,{position:"fixed",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":i}),e.style.zIndex=n,e.appendChild(t),e}}});
3169((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})})(this,function(t){function i(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function B(t){return"string"==typeof t}function f(t){return"function"==typeof t}function b(t){return"number"==typeof t}function d(t){return void 0===t}function M(t){return"object"==typeof t}function z(t){return!1!==t}function m(){return"undefined"!=typeof window}function D(t){return f(t)||B(t)}function g(t){return(Ut=be(t,a))&&l}function Q(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")}function P(t,e){return!e&&console.warn(t)}function v(t,e){return t&&(a[t]=e)&&Ut&&(Ut[t]=e)||a}function S(){return 0}function G(t){var e,r,i=t[0];if(M(i)||f(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=xe.length;r--&&!xe[r].targetTest(i););e=xe[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Le(t[r],e)))||t.splice(r,1);return t}function W(t){return t._gsap||G(O(t))[0]._gsap}function y(t,e){var r=t[e];return f(r)?t[e]():d(r)&&t.getAttribute(e)||r}
3169function c(t,e){return(t=t.split(",")).forEach(e)||t}function F(t){return Math.round(1e5*t)/1e5||0}function w(t,e,r){var i,n=b(t[1]),s=(n?2:1)+(e<2?0:1),a=t[s];if(n&&(a.duration=t[1]),a.parent=r,e){for(i=a;r&&!("immediateRender"in i);)i=r.vars.defaults||{},r=z(r.vars.inherit)&&r.parent;a.immediateRender=z(i.immediateRender),e<2?a.runBackwards=1:a.startAt=t[s-1]}return a}function Z(){var t,e,r=ge.length,i=ge.slice(0);for(ve={},t=ge.length=0;t<r;t++)(e=i[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)}function H(t,e,r,i){ge.length&&Z(),t.render(e,r,i),ge.length&&Z()}function $(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(de).length<2?e:t}function J(t){return t}function R(t,e){for(var r in e)r in t||(t[r]=e[r]);return t}function K(t,e){for(var r in e)r in t||"duration"===r||"ease"===r||(t[r]=e[r])}function tt(t,e){for(var r in e)t[r]=M(e[r])?tt(t[r]||(t[r]={}),e[r]):e[r];return t}function et(t,e){var r,i={};for(r in t)r in e||(i[r]=t[r]);return i}function rt(t){var e=t.parent||E,r=t.keyframes?K:R;if(z(t.inherit))for(;e;)r(t,e.vars.defaults),e=e.parent||e._dp;return t}function it(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null}function nt(t,e){!t.parent||e&&!t.parent.autoRemoveChildren||t.parent.remove(t),t._act=0}function st(t){for(var e=t;e;)e._dirty=1,e=e.parent;return t}function at(t){return t._repeat?Bt(t._tTime,t=t.duration()+t._rDelay)*t:0}function ot(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalDuration():e._tDur)}function ut(t){return t._end=F(t._start+(t._tDur/Math.abs(t._ts||t._rts||Y)||0))}function ht(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=ot(t.rawTime(),e),!e._dur||Oe(0,e.totalDuration(),r)-e._tTime>Y)&&e.render(r,!0),st(t)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)0<=r.rawTime()&&r.totalTime(r._tTime),r=r._dp;t._zTime=-Y}}function u(t,e,r,i){e.parent&&nt(e),e._start=F(r+e._delay),e._end=F(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0));var r=t,n=e,s="_first",a="_last",o=t._sort?"_start":0;void 0===s&&(s="_first");var u,h=r[a=void 0===a?"_last":a];if(o)for(u=n[o];h&&h[o]>u;)h=h._prev;return h?(n._next=h._next,h._next=n):(n._next=r[s],r[s]=n),n._next?n._next._prev=n:r[a]=n,n._prev=h,n.parent=n._dp=r,t._recent=e,i||ht(t,e),t}function lt(t,e){(a.ScrollTrigger||Q("scrollTrigger",e))&&a.ScrollTrigger.create(e,t)}function ft(t,e,r,i){return qe(t,e),!t._initted||!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Nt!==_.frame&&(ge.push(t),t._lazy=[e,i])}function pt(t,e,r){var i=t._repeat,e=F(e)||0;return t._dur=e,t._tDur=i?i<0?1e10:F(e*(i+1)+t._rDelay*i):e,e<t._time&&(t._time=e,t._tTime=Math.min(t._tTime,t._tDur)),r||st(t.parent),t.parent&&ut(t),t}function ct(t){return t instanceof A?st(t):pt(t,t._dur)}function o(t,e){var r,i=t.labels,n=t._recent||Me,s=t.duration()>=k?n.endTime(!1):t._dur;return B(e)&&(isNaN(e)||e in i)?"<"===(r=e.charAt(0))||">"===r?("<"===r?n._start:n.endTime(0<=n._repeat))+(parseFloat(e.substr(1))||0):(r=e.indexOf("="))<0?(e in i||(i[e]=s),i[e]):(n=+(e.charAt(r-1)+e.substr(r+1)),1<r?o(t,e.substr(0,r-1))+n:s+n):null==e?s:+e}function _t(t,e){return t||0===t?e(t):e}function L(t){return(t+"").substr((parseFloat(t)+"").length)}function dt(t,e){return t&&M(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&M(t[0]))&&!t.nodeType&&t!==r}function mt(t){return t.sort(function(){return.5-Math.random()})}function gt(t){var c,_,d,m,g,v,y,w,x;return f(t)?t:(_=Fe((c=M(t)?t:{each:t}).ease),d=c.from||0,m=parseFloat(c.base)||0,g={},t=0<d&&d<1,v=isNaN(d)||t,y=c.axis,B(x=w=d)?w=x={center:.5,edges:.5,end:1}[d]||0:!t&&v&&(w=d[0],x=d[1]),function(t,e,r){var i,n,s,a,o,u,h,l,f=(r||c).length,p=g[f];if(!p){if(!(l="auto"===c.grid?0:(c.grid||[1,k])[1])){for(u=-k;u<(u=r[l++].getBoundingClientRect().left)&&l<f;);l--}for(p=g[f]=[],i=v?Math.min(l,f)*w-.5:d%l,n=v?f*x/l-.5:d/l|0,h=k,o=u=0;o<f;o++)a=o%l-i,s=n-(o/l|0),p[o]=a=y?Math.abs("y"===y?s:a):ae(a*a+s*s),u<a&&(u=a),a<h&&(h=a);"random"===d&&mt(p),p.max=u-h,p.min=h,p.v=f=(parseFloat(c.amount)||parseFloat(c.each)*(f<l?f-1:y?"y"===y?f/l:l:Math.max(l,f/l))||0)*("edges"===d?-1:1),p.b=f<0?m-f:m,p.u=L(c.amount||c.each)||0,_=_&&f<0?Re(_):_}return f=(p[t]-p.min)/p.max||0,F(p.b+(_?_(f):f)*p.v)+p.u})}function vt(e){var r=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return Math.floor(Math.round(parseFloat(t)/e)*e*r)/r+(b(t)?0:L(t))}}function yt(u,t){var h,l,e=C(u);
vendor: 4,642 bytes, line 3169
3169return!e&&M(u)&&(h=e=u.radius||k,u.values?(u=O(u.values),(l=!b(u[0]))&&(h*=h)):u=vt(u.increment)),_t(t,e?f(u)?function(t){return l=u(t),Math.abs(l-t)<=h?l:t}:function(t){for(var e,r,i=parseFloat(l?t.x:t),n=parseFloat(l?t.y:0),s=k,a=0,o=u.length;o--;)(e=l?(e=u[o].x-i)*e+(r=u[o].y-n)*r:Math.abs(u[o]-i))<s&&(s=e,a=o);return a=!h||s<=h?u[a]:t,l||a===t||b(t)?a:a+L(t)}:vt(u))}function wt(t,e,r,i){return _t(C(t)?!e:!0===r?!!(r=0):!i,function(){return C(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t+Math.random()*(e-t))/r)*r*i)/i})}function xt(e,r,t){return _t(t,function(t){return e[~~r(t)]})}function Tt(t){for(var e,r,i,n,s=0,a="";~(e=t.indexOf("random(",s));)i=t.indexOf(")",e),n="["===t.charAt(e+7),r=t.substr(e+7,i-e-7).match(n?de:he),a+=t.substr(s,e-s)+wt(n?r:+r[0],+r[1],+r[2]||1e-5),s=i+1;return a+t.substr(s,t.length-s)}function bt(t,e,r){var i,n,s,a=t.labels,o=k;for(i in a)(n=a[i]-e)<0==!!r&&n&&o>(n=Math.abs(n))&&(s=i,o=n);return s}function Mt(t){return nt(t),t.progress()<1&&x(t,"onInterrupt"),t}function Ot(t,e,r){return(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*p+.5|0}function kt(t,e,r){var i,n,s,a,o,u,h,l=t?b(t)?[t>>16,t>>8&p,t&p]:0:Ce.black;if(!l){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ce[t])l=Ce[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(s=t.charAt(3))+s),l=[(t=parseInt(t.substr(1),16))>>16,t>>8&p,t&p];else if("hsl"===t.substr(0,3))if(l=h=t.match(he),e){if(~t.indexOf("="))return l=t.match(le),r&&l.length<4&&(l[3]=1),l}else a=+l[0]%360/360,o=l[1]/100,i=2*(u=l[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3<l.length&&(l[3]*=1),l[0]=Ot(a+1/3,i,n),l[1]=Ot(a,i,n),l[2]=Ot(a-1/3,i,n);else l=t.match(he)||Ce.transparent;l=l.map(Number)}return e&&!h&&(i=l[0]/p,n=l[1]/p,s=l[2]/p,u=((t=Math.max(i,n,s))+(e=Math.min(i,n,s)))/2,t===e?a=o=0:(h=t-e,o=.5<u?h/(2-t-e):h/(t+e),a=t===i?(n-s)/h+(n<s?6:0):t===n?(s-i)/h+2:(i-n)/h+4,a*=60),l[0]=~~(a+.5),l[1]=~~(100*o+.5),l[2]=~~(100*u+.5)),r&&l.length<4&&(l[3]=1),l}function Ct(t){var e=[],r=[],i=-1;return t.split(Ae).forEach(function(t){t=t.match(fe)||[];e.push.apply(e,t),r.push(i+=t.length+1)}),e.c=r,e}function At(t,e,r){var i,n,s,a,o="",u=(t+o).match(Ae),h=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map(function(t){return(t=kt(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"}),r&&(s=Ct(t),(i=r.c).join(o)!==s.c.join(o)))for(a=(n=t.replace(Ae,"1").split(fe)).length-1;l<a;l++)o+=n[l]+(~i.indexOf(l)?u.shift()||h+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!n)for(a=(n=t.split(Ae)).length-1;l<a;l++)o+=n[l]+u[l];return o+n[a]}function Dt(t){var e=t.join(" ");if(Ae.lastIndex=0,Ae.test(e))return e=De.test(e),t[1]=At(t[1],e),t[0]=At(t[0],e,Ct(t[1])),!0}function Pt(t){var e=(t+"").split("("),r=h[e[0]];return r&&1<e.length&&r.config?r.config.apply(null,~t.indexOf("{")?[(t=>{for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,i=r.substr(0,e),n[a]=isNaN(i)?i.replace(ze,"").trim():+i,a=r.substr(e+1).trim();return n})(e[1])]:ce.exec(t)[1].split(",").map($)):h._CE&&Se.test(t)?h._CE("",t):r}function St(t,e){for(var r,i=t._first;i;)i instanceof A?St(i,e):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===e||(i.timeline?St(i.timeline,e):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=e)),i=i._next}function zt(t,e,r,i){var n,s={easeIn:e,easeOut:r=void 0===r?function(t){return 1-e(1-t)}:r,easeInOut:i=void 0===i?function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2}:i};c(t,function(t){for(var e in h[t]=a[t]=s,h[n=t.toLowerCase()]=r,s)h[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=h[t+"."+e]=s[e]})}function Rt(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}}function Ft(r,t,e){function i(t){return 1===t?1:n*Math.pow(2,-10*t)*ue((t-s)*a)+1}var n=1<=t?t:1,s=(a=(e||(r?.3:.45))/(t<1?t:1))/ie*(Math.asin(1/n)||0),e="out"===r?i:"in"===r?function(t){return 1-i(1-t)}:Rt(i),a=ie/a;return e.config=function(t,e){return Ft(r,t,e)},e}function Et(e,r){function i(t){return t?--t*t*((r+1)*t+r)+1:0}void 0===r&&(r=1.70158);var t="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:Rt(i);return t.config=function(t){return Et(e,t)},t}function Bt(t,e){return(t/=e)&&~~t===t?~~t-1:~~t}function O(t,e){return!B(t)||e||!It&&Pe()?C(t)?(r=e,void 0===i&&(i=[]),t.forEach(function(t){return B(t)&&!r||dt(t,1)?i.push.apply(i,O(t)):i.push(t)})||i):dt(t)?ke.call(t,0):t?[t]:[]:ke.call(Yt.querySelectorAll(t),0);var r,i}function Lt(e,t,r,i,n){var s=t-e,a=i-r;return _t(n,function(t){return r+((t-e)/s*a||0)})}function x(t,e,r){var i=t.vars,n=i[e];
3169if(n)e=i[e+"Params"],i=i.callbackScope||t,r&&ge.length&&Z(),e?n.apply(i,e):n.call(i)}var E,r,It,Yt,Ut,Xt,Nt,qt,Vt,jt,Qt,s,Gt,Wt,Zt,Ht,$t,Jt,Kt,te,ee,I={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},re={duration:.5,overwrite:!1,delay:0},k=1e8,Y=1/k,ie=2*Math.PI,ne=ie/4,se=0,ae=Math.sqrt,oe=Math.cos,ue=Math.sin,C=Array.isArray,he=/(?:-?\.?\d|\.)+/gi,le=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,fe=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,pe=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,ce=/\(([^()]+)\)/i,_e=/[+-]=-?[\.\d]+/,de=/[#\-+.]*\b[a-z\d-=+%.]+/gi,a={},me={},ge=[],ve={},U={},ye={},we=30,xe=[],Te="",be=function(t,e){for(var r in e)t[r]=e[r];return t},Me={_start:0,endTime:S},Oe=function(t,e,r){return r<t?t:e<r?e:r},ke=[].slice,p=255,Ce={aqua:[0,p,p],lime:[0,p,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,p],navy:[0,0,128],white:[p,p,p],olive:[128,128,0],yellow:[p,p,0],orange:[p,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[p,0,0],pink:[p,192,203],cyan:[0,p,p],transparent:[p,p,p,0]},Ae=(()=>{var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in Ce)e+="|"+t+"\\b";return new RegExp(e+")","gi")}
3169)(),De=/hsl[a]?\(/,_=(Gt=Date.now,Wt=500,Zt=33,Ht=Gt(),$t=Ht,Kt=Jt=1/240,s={time:0,frame:0,tick:function(){Ee(!0)},wake:function(){Xt&&(!It&&m()&&(r=It=window,Yt=r.document||{},a.gsap=l,(r.gsapVersions||(r.gsapVersions=[])).push(l.version),g(Ut||r.GreenSockGlobals||!r.gsap&&r||{}),Qt=r.requestAnimationFrame),Vt&&s.sleep(),jt=Qt||function(t){return setTimeout(t,1e3*(Kt-s.time)+1|0)},qt=1,Ee(2))},sleep:function(){(Qt?r.cancelAnimationFrame:clearTimeout)(Vt),qt=0,jt=S},lagSmoothing:function(t,e){Wt=t||1e8,Zt=Math.min(e,Wt,0)},fps:function(t){Jt=1/(t||240),Kt=s.time+Jt},add:function(t){te.indexOf(t)<0&&te.push(t),Pe()},remove:function(t){~(t=te.indexOf(t))&&te.splice(t,1)},_listeners:te=[]}),Pe=function(){return!qt&&_.wake()},h={},Se=/^[\d.\-M][\d.\-,\s]/,ze=/["']/g,Re=function(e){return function(t){return 1-e(1-t)}},Fe=function(t,e){return t&&(f(t)?t:h[t]||Pt(t))||e};function Ee(e){var t,r,i=Gt()-$t,n=!0===e;Wt<i&&(Ht+=i-Zt),$t+=i,s.time=($t-Ht)/1e3,(0<(t=s.time-Kt)||n)&&(s.frame++,Kt+=t+(Jt<=t?.004:Jt-t),r=1),n||(Vt=jt(Ee)),r&&te.forEach(function(t){return t(s.time,i,s.frame,e)})}function Be(t){return t<1/2.75?ee*t*t:t<.7272727272727273?ee*Math.pow(t-1.5/2.75,2)+.75:t<.9090909090909092?ee*(t-=2.25/2.75)*t+.9375:ee*Math.pow(t-2.625/2.75,2)+.984375}c("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;zt(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2})}),h.Linear.easeNone=h.none=h.Linear.easeIn,zt("Elastic",Ft("in"),Ft("out"),Ft()),ee=7.5625,zt("Bounce",function(t){return 1-Be(1-t)},Be),zt("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),zt("Circ",function(t){return-(ae(1-t*t)-1)}),zt("Sine",function(t){return 1===t?1:1-oe(t*ne)}),zt("Back",Et("in"),Et("out"),Et()),h.SteppedEase=h.steps=a.SteppedEase={config:function(t,e){var r=1/(t=void 0===t?1:t),i=t+(e?0:1),n=e?1:0;return function(t){return((i*Oe(0,.99999999,t)|0)+n)*r}}},re.ease=h["quad.out"],c("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Te+=t+","+t+"Params,"});var Le=function(t,e){this.id=se++,(t._gsap=this).target=t,this.harness=e,this.get=e?e.get:y,this.set=e?e.getSetter:or},Ie=((e=Ye.prototype).delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(0<this._repeat?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,pt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Pe(),!arguments.length)return this._tTime;var r=this.parent||this._dp;if(r&&r.smoothChildTiming&&this._ts){for(this._start=F(r._time-(0<this._ts?t/this._ts:((this._dirty?this.totalDuration():this._tDur)-t)/-this._ts)),ut(this),r._dirty||st(r);r.parent;)r.parent._time!==r._start+(0<=r._ts?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(0<this._ts&&t<this._tDur||this._ts<0&&0<t||!this._tDur&&!t)&&u(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Y||!t&&!this._initted)&&(this._ts||(this._pTime=t),H(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+at(this))%this._dur||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+at(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Bt(this._tTime,r)+1:1},e.timeScale=function(t){if(!arguments.length)return this._rts===-Y?0:this._rts;if(this._rts===t)return this;for(var e=this.parent&&this._ts?ot(this.parent._time,this):this._tTime,t=(this._rts=+t||0,this._ts=this._ps||t===-Y?0:this._rts,this.totalTime(Oe(0,this._tDur,e),!0)),r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},e.paused=function(t){return arguments.length?(this._ps!==t&&((this._ps=t)?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Pe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=Y)&&Math.abs(this._zTime)!==Y))),this):this._ps},e.startTime=function(t){var e;return arguments.length?(this._start=t,!(e=this.parent||this._dp)||!e._sort&&this.parent||u(e,this,t-this._delay),this):this._start},e.endTime=function(t){return this._start+(z(t)?this.totalDuration():this.duration())/Math.abs(this._ts
3169)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ot(e.rawTime(t),this):this._tTime:this._tTime},e.repeat=function(t){return arguments.length?(this._repeat=t,ct(this)):this._repeat},e.repeatDelay=function(t){return arguments.length?(this._rDelay=t,ct(this)):this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(o(this,t),z(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,z(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-Y:0)),this):this._rts<0},e.invalidate=function(){return this._initted=0,this._zTime=-Y,this},e.isActive=function(t){var e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&(this._initted||!t)&&e.isActive(t)&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-Y))},e.eventCallback=function(t,e,r){var i=this.vars;return 1<arguments.length?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(i){var n=this;return new Promise(function(e){function t(){var t=n.then;n.then=null,f(r)&&(r=r(n))&&(r.then||r===n)&&(n.then=t),e(r),n.then=t}var r=f(i)?i:J;n._initted&&1===n.totalProgress()&&0<=n._ts||!n._tTime&&n._ts<0?t():n._prom=t})},Ye);function Ye(t,e){var r=t.parent||E;this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,pt(this,+t.duration,1),this.data=t.data,qt||_.wake(),r&&u(r,this,e||0===e?e:r._time,1),t.reversed&&this.reverse(),t.paused&&this.paused(!0)}R(Ie.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!(e.kill=function(){Mt(this)}),parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Y,_prom:0,_ps:!1,_rts:1});i(Xe,Ue=Ie),(e=Xe.prototype).to=function(t,e,r,i){return new X(t,w(arguments,0,this),o(this,b(e)?i:r)),this},e.from=function(t,e,r,i){return new X(t,w(arguments,1,this),o(this,b(e)?i:r)),this},e.fromTo=function(t,e,r,i,n){return new X(t,w(arguments,2,this),o(this,b(e)?n:i)),this},e.set=function(t,e,r){return e.duration=0,e.parent=this,rt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new X(t,e,o(this,r),1),this},e.call=function(t,e,r){return u(this,X.delayedCall(0,t,e),o(this,r))},e.staggerTo=function(t,e,r,i,n,s,a){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new X(t,r,o(this,n)),this},e.staggerFrom=function(t,e,r,i,n,s,a){return r.runBackwards=1,rt(r).immediateRender=z(r.immediateRender),this.staggerTo(t,e,r,i,n,s,a)},e.staggerFromTo=function(t,e,r,i,n,s,a,o){return i.startAt=r,rt(i).immediateRender=z(i.immediateRender),this.staggerTo(t,e,i,n,s,a,o)},e.render=function(t,e,r){var i,n,s,a,o,u,h,l,f,p,c=this._time,_=this._dirty?this.totalDuration():this._tDur,d=this._dur,m=this!==E&&_-Y<t&&0<=t?_:t<Y?0:t,g=this._zTime<0!=t<0&&(this._initted||!d);if(m!==this._tTime||r||g){if(c!==this._time&&d&&(m+=this._time-c,t+=this._time-c),i=m,l=this._start,o=!(h=this._ts),g&&(d||(c=this._zTime),!t&&e||(this._zTime=t)),this._repeat&&(v=this._yoyo,(d<(i=F(m%(a=d+this._rDelay)))||_===m)&&(i=d),(s=~~(m/a))&&s===m/a&&(i=d,s--),f=Bt(this._tTime,a),v&&1&s&&(i=d-i,p=1),s!==(f=!c&&this._tTime&&f!==s?s:f))&&!this._lock){var g=v&&1&f,v=g===(v&&1&s),c=(g=s<f?!g:g)?0:d;if(this._lock=1,this.render(c||(p?0:F(s*a)),e,!d)._lock=0,!e&&this.parent&&x(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),c!==this._time||o!=!this._ts)return this;if(v&&(this._lock=2,this.render(c=g?d+1e-4:-1e-4,!0),this.vars.repeatRefresh)&&!p&&this.invalidate(),this._lock=0,!this._ts&&!o)return this;St(this,p)}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=((t,e,r)=>{var i;if(e<r)for(i=t._first;i&&i._start<=r;){if(!i._dur&&"isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(!i._dur&&"isPause"===i.data&&i._start<e)return i;i=i._prev}}
3169)(this,F(c),F(i)))&&(m-=i-(i=u._start)),this._tTime=m,this._time=i,this._act=!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t),c||!i||e||x(this,"onStart"),c<=i&&0<=t)for(y=this._first;y;){if(n=y._next,(y._act||i>=y._start)&&y._ts&&u!==y){if(y.parent!==this)return this.render(t,e,r);if(y.render(0<y._ts?(i-y._start)*y._ts:(y._dirty?y.totalDuration():y._tDur)+(i-y._start)*y._ts,e,r),i!==this._time||!this._ts&&!o){u=0,n&&(m+=this._zTime=-Y);break}}y=n}else for(var y=this._last,w=t<0?t:i;y;){if(n=y._prev,(y._act||w<=y._end)&&y._ts&&u!==y){if(y.parent!==this)return this.render(t,e,r);if(y.render(0<y._ts?(w-y._start)*y._ts:(y._dirty?y.totalDuration():y._tDur)+(w-y._start)*y._ts,e,r),i!==this._time||!this._ts&&!o){u=0,n&&(m+=this._zTime=w?-Y:Y);break}}y=n}if(u&&!e&&(this.pause(),u.render(c<=i?0:-Y)._zTime=c<=i?1:-1,this._ts))return this._start=l,ut(this),this.render(t,e,r);this._onUpdate&&!e&&x(this,"onUpdate",!0),!(m===_&&_>=this.totalDuration()||!m&&c)||l!==this._start&&Math.abs(h)===Math.abs(this._ts)||this._lock||(!t&&d||!(m===_&&0<this._ts||!m&&this._ts<0)||nt(this,1),e)||t<0&&!c||!m&&!c||(x(this,m===_?"onComplete":"onReverseComplete",!0),!this._prom)||m<_&&0<this.timeScale()||this._prom()}return this},e.add=function(t,e){var r=this;if(b(e)||(e=o(this,e)),!(t instanceof Ie)){if(C(t))return t.forEach(function(t){return r.add(t,e)}),st(this);if(B(t))return this.addLabel(t,e);if(!f(t))return this;t=X.delayedCall(0,t)}return this!==t?u(this,t,e):this},e.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-k);for(var n=[],s=this._first;s;)s._start>=i&&(s instanceof X?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},e.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},e.remove=function(t){return B(t)?this.removeLabel(t):f(t)?this.killTweensOf(t):(it(this,t),t===this._recent&&(this._recent=this._last),st(this))},e.totalTime=function(t,e){return arguments.length?(this._forcing=1,this.parent||this._dp||!this._ts||(this._start=F(_.time-(0<this._ts?t/this._ts:(this.totalDuration()-t)/-this._ts))),Ue.prototype.totalTime.call(this,t,e),this._forcing=0,this):this._tTime},e.addLabel=function(t,e){return this.labels[t]=o(this,e),this},e.removeLabel=function(t){return delete this.labels[t],this},e.addPause=function(t,e,r){e=X.delayedCall(0,e||S,r);return e.data="isPause",this._hasPause=1,u(this,e,o(this,t))},e.removePause=function(t){var e=this._first;for(t=o(this,t);e;)e._start===t&&"isPause"===e.data&&nt(e),e=e._next},e.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)je!==i[n]&&i[n].kill(t,e);return this},e.getTweensOf=function(t,e){for(var r,i=[],n=O(t),s=this._first;s;)s instanceof X?!((t,e)=>{for(var r=e.length,i=0;t.indexOf(e[i])<0&&++i<r;);return i<r})(s._targets,n)||e&&!s.isActive("started"===e)||i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},e.tweenTo=function(t,e){e=e||{};var r=this,i=o(r,t),t=e.startAt,n=e.onStart,s=e.onStartParams,a=X.to(r,R(e,{ease:"none",lazy:!1,time:i,duration:e.duration||Math.abs((i-(t&&"time"in t?t.time:r._time))/r.timeScale())||Y,onStart:function(){r.pause();var t=e.duration||Math.abs((i-r._time)/r.timeScale());a._dur!==t&&pt(a,t).render(a._time,!0,!0),n&&n.apply(a,s||[])}}));return a},e.tweenFromTo=function(t,e,r){return this.tweenTo(e,R({startAt:{time:o(this,t)}},r))},e.recent=function(){return this._recent},e.nextLabel=function(t){return bt(this,o(this,t=void 0===t?this._time:t))},e.previousLabel=function(t){return bt(this,o(this,t=void 0===t?this._time:t),1)},e.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Y)},e.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return st(this)},e.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return Ue.prototype.invalidate.call(this)},e.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._time=this._tTime=this._pTime=0,t&&(this.labels={}),st(this)},e.totalDuration=function(t){var e,r,i,n=0,s=this,a=s._last,o=k;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),o<(r=a._start)&&s._sort&&a._ts&&!s._lock?(s._lock=1,u(s,a,r-
3169a._delay,1)._lock=0):o=r,r<0&&a._ts&&(n-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-1/0),o=0),n<(r=ut(a))&&a._ts&&(n=r),a=e;pt(s,s===E&&s._time>n?s._time:n,1),s._dirty=0}return s._tDur},Xe.updateRoot=function(t){if(E._ts&&(H(E,ot(t,E)),Nt=_.frame),_.frame>=we){we+=I.autoSleep||120;var e=E._first;if((!e||!e._ts)&&I.autoSleep&&_._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||_.sleep()}}};var Ue,A=Xe;function Xe(t,e){return(e=Ue.call(this,t=void 0===t?{}:t,e)||this).labels={},e.smoothChildTiming=!!t.smoothChildTiming,e.autoRemoveChildren=!!t.autoRemoveChildren,e._sort=z(t.sortChildren),e.parent&&ht(e.parent,T(e)),t.scrollTrigger&&lt(T(e),t.scrollTrigger),e}function Ne(t,e,r,i,n,s){var a,o,u,h;if(U[t]&&!1!==(a=new U[t]).init(n,a.rawVars?e[t]:((t,e,r,i,n)=>{if(!M(t=f(t)?Ve(t,n,e,r,i):t)||t.style&&t.nodeType||C(t))return B(t)?Ve(t,n,e,r,i):t;var s,a={};for(s in t)a[s]=Ve(t[s],n,e,r,i);return a})(e[t],i,n,s,r),r,i,s)&&(r._pt=o=new N(r._pt,n,t,0,1,a.render,a,0,a.priority),r!==pr))for(u=r._ptLookup[r._targets.indexOf(n)],h=a._props.length;h--;)u[a._props[h]]=o;return a}R(A.prototype,{_lock:0,_hasPause:0,_forcing:0});function qe(t,e){var r,i,n,s,a,o,u,h,l,f,p,c,_=t.vars,d=_.ease,m=_.startAt,g=_.immediateRender,v=_.lazy,y=_.onUpdate,w=_.onUpdateParams,x=_.callbackScope,T=_.runBackwards,b=_.yoyoEase,M=_.autoRevert,O=t._dur,k=t._startAt,C=t._targets,A=t.parent,D=A&&"nested"===A.data?A.parent._targets:C,P="auto"===t._overwrite,S=t.timeline;if(t._ease=Fe(d=!S||_.keyframes&&d?d:"none",re.ease),t._yEase=b?Re(Fe(!0===b?d:b,re.ease)):0,b&&t._yoyo&&!t._repeat&&(b=t._yEase,t._yEase=t._ease,t._ease=b),!S){if(c=(h=C[0]?W(C[0]).harness:0)&&_[h.prop],r=et(_,me),k&&k.render(-1,!0).kill(),m){if(nt(t._startAt=X.set(C,R({data:"isStart",overwrite:!1,parent:A,immediateRender:!0,lazy:z(v),startAt:null,delay:0,onUpdate:y,onUpdateParams:w,callbackScope:x,stagger:0},m))),g)if(0<e)M||(t._startAt=0);else if(O)return}else if(T&&O)if(k)M||(t._startAt=0);else if(n=be(r,{overwrite:!1,data:"isFromStart",lazy:(g=e?!1:g)&&z(v),immediateRender:g,stagger:0,parent:A}),c&&(n[h.prop]=c),nt(t._startAt=X.set(C,n)),g){if(!e)return}else qe(t._startAt,Y);for(t._pt=0,v=O&&z(v)||v&&!O,i=0;i<C.length;i++){if(u=(a=C[i])._gsap||G(C)[i]._gsap,t._ptLookup[i]=f={},ve[u.id]&&Z(),p=D===C?i:D.indexOf(a),h&&!1!==(l=new h).init(a,c||r,t,p,D)&&(t._pt=s=new N(t._pt,a,l.name,0,1,l.render,l,0,l.priority),l._props.forEach(function(t){f[t]=s}),l.priority)&&(o=1),!h||c)for(n in r)U[n]&&(l=Ne(n,r,t,p,a,D))?l.priority&&(o=1):f[n]=s=Ge.call(t,a,n,"get",r[n],p,D,0,_.stringFilter);t._op&&t._op[i]&&t.kill(a,t._op[i]),P&&t._pt&&(je=t,E.killTweensOf(a,f,"started"),je=0),t._pt&&v&&(ve[u.id]=1)}o&&ur(t),t._onInit&&t._onInit(t)}t._from=!S&&!!_.runBackwards,t._onUpdate=y,t._initted=!!t.parent}function Ve(t,e,r,i,n){return f(t)?t.call(e,r,i,n):B(t)&&~t.indexOf("random(")?Tt(t):t}var je,Qe,Ge=function(t,e,r,i,n,s,a,o,u){f(i)&&(i=i(n||0,t,s));n=t[e],s="get"!==r?r:f(n)?u?t[e.indexOf("set")||!f(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():n,r=f(n)?u?tr:Ke:Je;if(s!==(i=B(i)&&"="===(i=~i.indexOf("random(")?Tt(i):i).charAt(1)?parseFloat(s)+parseFloat(i.substr(2))*("-"===i.charAt(0)?-1:1)+(L(s)||0):i))return isNaN(s+i)?(n||e in t||Q(e,i),function(t,e,r,i,n,s,a){var o,u,h,l,f,p=new N(this._pt,t,e,0,1,ir,null,n),c=0,_=0;for(p.b=r,p.e=i,r+="",(n=~(i+="").indexOf("random("))&&(i=Tt(i)),s&&(s(s=[r,i],t,e),r=s[0],i=s[1]),o=r.match(pe)||[];l=pe.exec(i);)h=l[0],l=i.substring(c,l.index),u?u=(u+1)%5:"rgba("===l.substr(-5)&&(u=1),h!==o[_++]&&(f=parseFloat(o[_-1])||0,p._pt={_next:p._pt,p:l||1===_?l:",",s:f,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-f,m:u&&u<4?Math.round:0},c=pe.lastIndex);return p.c=c<i.length?i.substring(c,i.length):"",p.fp=a,(_e.test(i)||n)&&(p.e=0),this._pt=p}.call(this,t,e,s,i,r,o||I.stringFilter,u)):(o=new N(this._pt,t,e,+s||0,i-(s||0),"boolean"==typeof n?rr:er,0,r),u&&(o.fp=u),a&&o.modifier(a,this,t),this._pt=o)},We=Te+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase",Ze=(We+",id,stagger,delay,duration,paused,scrollTrigger").split(","),X=(i(n,Qe=Ie),(e=n.prototype).render=function(t,e,r){var i,n,s=this._time,a=this._tDur,o=this._dur,u=a-Y<t&&0<=t?a:t<Y?0:t;if(o){if(u!==this._tTime||!t||r||this._startAt&&this._zTime<0!=t<0){
3169if(f=u,d=this.timeline,this._repeat){if((o<(f=F(u%(h=o+this._rDelay)))||a===u)&&(f=o),(g=~~(u/h))&&g===u/h&&(f=o,g--),(p=this._yoyo&&1&g)&&(l=this._yEase,f=o-f),v=Bt(this._tTime,h),f===s&&!r&&this._initted)return this;g!==v&&(d&&this._yEase&&St(d,p),!this.vars.repeatRefresh||p||this._lock||(this._lock=r=1,this.render(F(h*g),!0).invalidate()._lock=0))}if(!this._initted){if(ft(this,f,r,e))return this._tTime=0,this;if(o!==this._dur)return this.render(t,e,r)}for(this._tTime=u,this._time=f,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=n=(l||this._ease)(f/o),this._from&&(this.ratio=n=1-n),!f||s||e||x(this,"onStart"),i=this._pt;i;)i.r(n,i.d),i=i._next;d&&d.render(t<0?t:!f&&p?-Y:d._dur*n,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),x(this,"onUpdate")),this._repeat&&g!==v&&this.vars.onRepeat&&!e&&this.parent&&x(this,"onRepeat"),u!==this._tDur&&u||this._tTime!==u||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,!0),!t&&o||!(u===this._tDur&&0<this._ts||!u&&this._ts<0)||nt(this,1),e)||t<0&&!s||!u&&!s||(x(this,u===a?"onComplete":"onReverseComplete",!0),!this._prom)||u<a&&0<this.timeScale()||this._prom()}}else{var h=this;var l=t;var f=e;var p=r;var c,_,d=h.ratio,m=l<0||!l&&d&&!h._start&&h._zTime>Y&&!h._dp._lock||h._ts<0||h._dp._ts<0?0:1,g=h._rDelay,v=0;if(g&&h._repeat&&(v=Oe(0,h._tDur,l),Bt(v,g)!==(_=Bt(h._tTime,g)))&&(d=1-m,h.vars.repeatRefresh)&&h._initted&&h.invalidate(),h._initted||!ft(h,l,p,f))if(m!==d||p||h._zTime===Y||!l&&h._zTime){for(_=h._zTime,h._zTime=l||(f?Y:0),f=f||l&&!_,h.ratio=m,h._from&&(m=1-m),h._time=0,h._tTime=v,f||x(h,"onStart"),c=h._pt;c;)c.r(m,c.d),c=c._next;h._startAt&&l<0&&h._startAt.render(l,!0,!0),h._onUpdate&&!f&&x(h,"onUpdate"),v&&h._repeat&&!f&&h.parent&&x(h,"onRepeat"),(h._tDur<=l||l<0)&&h.ratio===m&&(m&&nt(h,1),f||(x(h,m?"onComplete":"onReverseComplete",!0),h._prom&&h._prom()))}else h._zTime||(h._zTime=l)}return this},e.targets=function(){return this._targets},e.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),Qe.prototype.invalidate.call(this)},e.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return Mt(this);if(this.timeline)p=this.timeline.totalDuration(),this.timeline.killTweensOf(t,e,je&&!0!==je.vars.overwrite)._first||Mt(this),this.parent&&p!==this.timeline.totalDuration()&&pt(this,this._dur*this.timeline._tDur/p);else{var r,i,n,s,a,o,u,h=this._targets,l=t?O(t):h,f=this._ptLookup,p=this._pt;if((!e||"all"===e)&&((t,e)=>{for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}
3169)(h,l))return Mt(this);for(r=this._op=this._op||[],"all"!==e&&(B(e)&&(a={},c(e,function(t){return a[t]=1}),e=a),e=((t,e)=>{var r,i,n,s,a=(t=t[0]?W(t[0]).harness:0)&&t.aliases;if(!a)return e;for(i in r=be({},e),a)if(i in r)for(n=(s=a[i].split(",")).length;n--;)r[s[n]]=r[i];return r})(h,e)),u=h.length;u--;)if(~l.indexOf(h[u]))for(a in i=f[u],"all"===e?(r[u]=e,s=i,n={}):(n=r[u]=r[u]||{},s=e),s)(o=i&&i[a])&&("kill"in o.d&&!0!==o.d.kill(a)||it(this,o,"_pt"),delete i[a]),"all"!==n&&(n[a]=1);this._initted&&!this._pt&&p&&Mt(this)}return this},n.to=function(t,e,r){return new n(t,e,r)},n.from=function(t,e){return new n(t,w(arguments,1))},n.delayedCall=function(t,e,r,i){return new n(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},n.fromTo=function(t,e,r){return new n(t,w(arguments,2))},n.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new n(t,e)},n.killTweensOf=function(t,e,r){return E.killTweensOf(t,e,r)},n);function n(t,e,r,i){var n;"number"==typeof e&&(r.duration=e,e=r,r=null);var s,a,o,u,h,l,f,p,i=(n=Qe.call(this,i?e:rt(e),r)||this).vars,c=i.duration,_=i.delay,r=i.immediateRender,d=i.stagger,m=i.overwrite,g=i.keyframes,v=i.defaults,y=i.scrollTrigger,w=i.yoyoEase,i=n.parent,x=(C(t)?b(t[0]):"length"in e)?[t]:O(t);if(n._targets=x.length?G(x):P("GSAP target "+t+" not found. https://greensock.com",!I.nullTargetWarn)||[],n._ptLookup=[],n._overwrite=m,g||d||D(c)||D(_)){if(e=n.vars,(s=n.timeline=new A({data:"nested",defaults:v||{}})).kill(),s.parent=T(n),g)R(s.vars.defaults,{ease:"none"}),g.forEach(function(t){return s.to(x,t,">")});else{if(u=x.length,f=d?gt(d):S,M(d))for(h in d)~We.indexOf(h)&&((p=p||{})[h]=d[h]);for(a=0;a<u;a++){for(h in o={},e)Ze.indexOf(h)<0&&(o[h]=e[h]);o.stagger=0,w&&(o.yoyoEase=w),p&&be(o,p),l=x[a],o.duration=+Ve(c,T(n),a,l,x),o.delay=(+Ve(_,T(n),a,l,x)||0)-n._delay,!d&&1===u&&o.delay&&(n._delay=_=o.delay,n._start+=_,o.delay=0),s.to(l,o,f(a,l,x))}s.duration()?c=_=0:n.timeline=0}c||n.duration(c=s.duration())}else n.timeline=0;return!0===m&&(je=T(n),E.killTweensOf(x),je=0),i&&ht(i,T(n)),(r||!c&&!g&&n._start===F(i._time)&&z(r)&&function t(e){return!e||e._ts&&t(e.parent)}(T(n))&&"nested"!==i.data)&&(n._tTime=-Y,n.render(Math.max(0,-_))),y&&lt(T(n),y),n}function He(t,e,r){return t.setAttribute(e,r)}function $e(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)}R(X.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),c("staggerTo,staggerFrom,staggerFromTo",function(r){X[r]=function(){var t=new A,e=ke.call(arguments,0);return e.splice("staggerFromTo"===r?5:4,0,0),t[r].apply(t,e)}});function Je(t,e,r){return t[e]=r}function Ke(t,e,r){return t[e](r)}function tr(t,e,r,i){return t[e](i.fp,r)}function er(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)}function rr(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)}function ir(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)}function nr(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next}function sr(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n}function ar(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?it(this,i,"_pt"):i.dep||(e=1),i=r;return!e}var or=function(t,e){return f(t[e])?Ke:d(t[e])&&t.setAttribute?He:Je},ur=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},N=(hr.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=$e,this.m=t,this.mt=r,this.tween=e},hr);function hr(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||er,this.d=a||this,this.set=o||Je,this.pr=u||0,(this._next=t)&&(t._prev=this)}c(Te+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return me[t]=1}),a.TweenMax=a.TweenLite=X,a.TimelineLite=a.TimelineMax=A,E=new A({sortChildren:!1,defaults:re,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),I.stringFilter=Dt;var lr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t){var e=(t=!t.name&&t.default||t).name,r=e&&!f(t)&&t.init?function(){this._props=[]}:t,i={init:S,render:nr,add:Ge,kill:ar,modifier:sr,rawVars:0},n={targetTest:0,get:0,getSetter:or,aliases:{},register:0};if(Pe(),t!==r){if(U[e])return;R(r,R(et(t,i),n)),be(r.prototype,be(i,et(t,n))),U[r.prop=e]=r,t.targetTest&&(xe.push(r),me[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}v(e,r),t.register&&t.register(l,r,N)})},timeline:function(t){return new A(t)},getTweensOf:function(t,e){return E.getTweensOf(t,e)},getProperty:function(i,t,e,r){var n=W((i=B(i)?O(i)[0]:i)||{}).get,s=e?J:$;return"native"===e&&(e=""),i&&(t?s((U[t]&&U[t].get||n)(i,t,e,r)):function(t,e,r){return s((U[t]&&U[t].get||n)(i,t,e,r))})},quickSetter:function(r,e,i){var n,s;if(1<(r=O(r)).length)return n=r.map(function(t){return l.quickSetter(t,e,i)}),s=n.length,function(t){for(var e=s;e--;)n[e](t)};r=r[0]||{};var a=U[e],o=W(r),u=o.harness&&(o.harness.aliases||{})[e]||e,h=a?function(t){var e=new a;pr._pt=0,e.init(r,i?t+i:t,pr,0,[r]),e.render(1,e),pr._pt&&nr(1,pr)}:o.set(r,u);return a?h:function(t){return h(r,u,i?t+i:t,o,1)}},isTweening:function(t){return 0<E.getTweensOf(t,!0).length},defaults:function(t){return t&&t.ease&&(t.ease=Fe(t.ease,re.ease)),tt(re,t||{})},config:function(t){return tt(I,t||{})},registerEffect:function(t){var i=t.name,n=t.effect,e=t.plugins,s=t.defaults,t=t.extendTimeline;(e||"").split(",").forEach(function(t){return t&&!U[t]&&!a[t]&&P(i+" effect requires "+t+" plugin.")}),ye[i]=function(t,e,r){return n(O(t),R(e||{},s),r)},t&&(A.prototype[i]=function(t,e,r){return this.add(ye[i](t,M(e)?e:(r=e)&&{},this),r)})},registerEase:function(t,e){h[t]=Fe(e)},parseEase:function(t,e){return arguments.length?Fe(t,e):h},getById:function(t){return E.getById(t)},exportRoot:function(t,e){var r,i,n=new A(t=void 0===t?{}:t);for(n.smoothChildTiming=z(t.smoothChildTiming),E.remove(n),n._dp=0,n._time=n._tTime=E._time,r=E._first;r;)i=r._next,!e&&!r._dur&&r instanceof X&&r.vars.onComplete===r._targets[0]||u(n,r,r._start-r._delay),r=i;return u(E,n,0),n},utils:{wrap:function t(e,r,i){var n=r-e;return C(e)?xt(e,t(0,e.length),r):_t(i,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function t(e,r,i){var n=r-e,s=2*n;return C(e)?xt(e,t(0,e.length-1),r):_t(i,function(t){return e+(n<(t=(s+(t-e)%s)%s||
31690)?s-t:t)})},distribute:gt,random:wt,snap:yt,normalize:function(t,e,r){return Lt(t,e,0,1,r)},getUnit:L,clamp:function(e,r,t){return _t(t,function(t){return Oe(e,r,t)})},splitColor:kt,toArray:O,mapRange:Lt,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce(function(t,e){return e(t)},t)}},unitize:function(e,r){return function(t){return e(parseFloat(t))+(r||L(t))}},interpolate:function t(e,r,i,n){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,h,l,f=B(e),p={};if(!0===i&&(n=1,i=null),f)e={p:e},r={p:r};else if(C(e)&&!C(r)){for(u=[],h=e.length,l=h-2,o=1;o<h;o++)u.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(l,~~t);return u[e](t-e)},i=r}else n||(e=be(C(e)?[]:{},e));if(!u){for(a in r)Ge.call(p,e,a,"get",r[a]);s=function(t){return nr(t,p),f?e.p:e}}}return _t(i,s)},shuffle:mt},install:g,effects:ye,ticker:_,updateRoot:A.updateRoot,plugins:U,globalTimeline:E,core:{PropTween:N,globals:v,Tween:X,Timeline:A,Animation:Ie,getCache:W,_removeLinkedListItem:it}};function fr(t,l){return{name:t,rawVars:1,init:function(t,h,e){e._onInit=function(t){var e,r;if(B(h)&&(e={},c(h,function(t){return e[t]=1}),h=e),l){for(r in e={},h)e[r]=l(h[r]);h=e}var i,n,s,a=t,o=h,u=a._targets;for(i in o)for(n=u.length;n--;)(s=(s=a._ptLookup[n][i])&&s.d)&&(s._pt&&(s=((t,e)=>{for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r})(s,i)),s)&&s.modifier&&s.modifier(o[i],a,u[n],i)}}}}c("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return lr[t]=X[t]}),_.add(A.updateRoot);var pr=lr.to({},{duration:0}),l=lr.registerPlugin({name:"attr",init:function(t,e,r,i,n){var s,a;for(s in e)(a=this.add(t,"setAttribute",(t.getAttribute(s)||0)+"",e[s],i,n,0,0,s))&&(a.op=s),this._props.push(s)}},{name:"endArray",init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r])}},fr("roundProps",vt),fr("modifiers"),fr("snap",yt))||lr;function cr(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function _r(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)}function dr(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)}function mr(t,e){t=e.s+e.c*t;e.set(e.t,e.p,~~(t+(t<0?-.5:.5))+e.u,e)}function gr(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)}function vr(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)}function yr(t,e,r){return t.style[e]=r}function wr(t,e,r){return t.style.setProperty(e,r)}function xr(t,e,r){return t._gsap[e]=r}function Tr(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r}function br(t,e,r,i,n){t=t._gsap;t.scaleX=t.scaleY=r,t.renderTransform(n,t)}function Mr(t,e,r,i,n){t=t._gsap;t[e]=r,t.renderTransform(n,t)}function Or(t,e){e=V.createElementNS?V.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):V.createElement(t);return e.style?e:V.createElement(t)}function q(t,e,r){var i=getComputedStyle(t);return i[e]||i.getPropertyValue(e.replace(di,"-$1").toLowerCase())||i.getPropertyValue(e)||!r&&q(t,xi(e)||e,1)||""}function kr(){"undefined"!=typeof window&&window.document&&(Nr=(V=window.document).documentElement,Vr=Or("div")||{style:{}},jr=Or("div"),j=xi(j),yi=xi(yi),Vr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Gr=!!xi("perspective"),qr=1)}function Cr(t){var e,r=Or("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,s=this.style.cssText;if(Nr.appendChild(r),r.appendChild(this),this.style.display="block",t)try{e=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=Cr}catch(t){}else this._gsapBBox&&(e=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),Nr.removeChild(r),this.style.cssText=s,e}function Ar(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])}function Dr(e){var r;try{r=e.getBBox()}catch(t){r=Cr.call(e,!0)}return!(r=r&&(r.width||r.height)||e.getBBox===Cr?r:Cr.call(e,!0))||r.width||r.x||r.y?r:{x:+Ar(e,["x","cx","x1"])||0,y:+Ar(e,["y","cy","y1"])||0,width:0,height:0}}function Pr(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Dr(t))}
vendor: 5,109 bytes, line 3169
3169function Sr(t,e){e&&(t=t.style,e in fi&&(e=j),t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(di,"-$1").toLowerCase())):t.removeAttribute(e))}function zr(t,e,r,i,n,s){e=new N(t._pt,e,r,0,1,s?vr:gr);(t._pt=e).b=i,e.e=n,t._props.push(r)}function Rr(t,e,r,i){var n=parseFloat(r)||0,s=(r+"").trim().substr((n+"").length)||"px",a=Vr.style,o=mi.test(e),u="svg"===t.tagName.toLowerCase(),h=(u?"client":"offset")+(o?"Width":"Height"),l="px"===i,f="%"===i;return i===s||!n||Ti[i]||Ti[s]?n:("px"===s||l||(n=Rr(t,e,r,"px")),r=t.getCTM&&Pr(t),f&&(fi[e]||~e.indexOf("adius"))?F(n/(r?t.getBBox()[o?"width":"height"]:t[h])*100):(a[o?"width":"height"]=100+(l?s:i),e=~e.indexOf("adius")||"em"===i&&t.appendChild&&!u?t:t.parentNode,(i=(e=(e=r?(t.ownerSVGElement||{}).parentNode:e)&&e!==V&&e.appendChild?e:V.body)._gsap)&&f&&i.width&&o&&i.time===_.time?F(n/i.width*100):(!f&&"%"!==s||(a.position=q(t,"position")),e===t&&(a.position="static"),e.appendChild(Vr),u=Vr[h],e.removeChild(Vr),a.position="absolute",o&&f&&((i=W(e)).time=_.time,i.width=e[h]),F(l?u*n/100:u&&n?100/u*n:0))))}function Fr(t,e,r,i){var n;return qr||kr(),e in vi&&"transform"!==e&&~(e=vi[e]).indexOf(",")&&(e=e.split(",")[0]),fi[e]&&"transform"!==e?(n=Ci(t,i),n="transformOrigin"!==e?n[e]:Ai(q(t,yi))+" "+n.zOrigin+"px"):(n=t.style[e])&&"auto"!==n&&!i&&!~(n+"").indexOf("calc(")||(n=Mi[e]&&Mi[e](t,e,r)||q(t,e)||y(t,e)||("opacity"===e?1:0)),r&&!~(n+"").indexOf(" ")?Rr(t,e,n,r)+r:n}function Er(t,e,r,i){var n;r&&"none"!==r||(n=(s=xi(e,t,1))&&q(t,s,1))&&n!==r&&(e=s,r=n);var s,a,o,u,h,l,f,p,c,_,d=new N(this._pt,t.style,e,0,1,ir),m=0,g=0;if(d.b=r,d.e=i,r+="","auto"==(i+="")&&(t.style[e]=i,i=q(t,e)||i,t.style[e]=r),Dt(s=[r,i]),i=s[1],a=(r=s[0]).match(fe)||[],(i.match(fe)||[]).length){for(;f=fe.exec(i);)p=f[0],f=i.substring(m,f.index),u?u=(u+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(u=1),p!==(h=a[g++]||"")&&(o=parseFloat(h)||0,c=h.substr((o+"").length),(_="="===p.charAt(1)?+(p.charAt(0)+"1"):0)&&(p=p.substr(2)),l=parseFloat(p),p=p.substr((l+"").length),m=fe.lastIndex-p.length,p||(p=p||I.units[e]||c,m===i.length&&(i+=p,d.e+=p)),c!==p&&(o=Rr(t,e,h,p)||0),d._pt={_next:d._pt,p:f||1===g?f:",",s:o,c:_?_*l:l-o,m:u&&u<4?Math.round:0});d.c=m<i.length?i.substring(m,i.length):""}else d.r="display"===e&&"none"===i?vr:gr;return _e.test(i)&&(d.e=0),this._pt=d}function Br(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,i,n,s=e.t,a=s.style,o=e.u,e=s._gsap;if("all"===o||!0===o)a.cssText="",i=1;else for(n=(o=o.split(",")).length;-1<--n;)r=o[n],fi[r]&&(i=1,r="transformOrigin"===r?yi:j),Sr(s,r);i&&(Sr(s,j),e)&&(e.svg&&s.removeAttribute("transform"),Ci(s,1),e.uncache=1)}}function Lr(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t}function Ir(t){t=q(t,j);return Lr(t)?Oi:t.substr(7).match(le).map(F)}function Yr(t,e){var r,i,n,s=t._gsap||W(t),a=t.style,o=Ir(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(o=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Oi:o:(o!==Oi||t.offsetParent||t===Nr||s.svg||(i=a.display,a.display="block",(s=t.parentNode)&&t.offsetParent||(n=1,r=t.nextSibling,Nr.appendChild(t)),o=Ir(t),i?a.display=i:Sr(t,"display"),n&&(r?s.insertBefore(t,r):s?s.appendChild(t):Nr.removeChild(t))),e&&6<o.length?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)}function Ur(t,e,r,i,n,s){var a,o=t._gsap,n=n||Yr(t,!0),u=o.xOrigin||0,h=o.yOrigin||0,l=o.xOffset||0,f=o.yOffset||0,p=n[0],c=n[1],_=n[2],d=n[3],m=n[4],g=n[5],v=e.split(" "),y=parseFloat(v[0])||0,w=parseFloat(v[1])||0;r?n!==Oi&&(n=p*d-c*_)&&(a=y*(-c/n)+w*(p/n)-(p*g-c*m)/n,y=y*(d/n)+w*(-_/n)+(_*g-d*m)/n,w=a):(y=(n=Dr(t)).x+(~v[0].indexOf("%")?y/100*n.width:y),w=n.y+(~(v[1]||v[0]).indexOf("%")?w/100*n.height:w)),i||!1!==i&&o.smooth?(o.xOffset=l+((m=y-u)*p+(g=w-h)*_)-m,o.yOffset=f+(m*c+g*d)-g):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=w,o.smooth=!!i,o.origin=e,o.originIsAbsolute=!!r,t.style[yi]="0px 0px",s&&(zr(s,o,"xOrigin",u,y),zr(s,o,"yOrigin",h,w),zr(s,o,"xOffset",l,o.xOffset),zr(s,o,"yOffset",f,o.yOffset)),t.setAttribute("data-svg-origin",y+" "+w)}function Xr(t,e,r){var i=L(e);return F(parseFloat(e)+parseFloat(Rr(t,"x",r+"px",i)))+i}X.version=A.version=l.version="3.3.3",Xt=1,m()&&Pe();var V,Nr,qr,Vr,jr,Qr,Gr,e=h.Power0,Wr=h.Power1,Zr=h.Power2,Hr=h.Power3,$r=h.Power4,Jr=h.Linear,Kr=h.Quad,ti=h.Cubic,ei=h.Quart,ri=h.Quint,ii=h.Strong,ni=h.Elastic,si=h.Back,ai=h.SteppedEase,oi=h.Bounce,ui=h.Sine,hi=h.Expo,li=h.Circ,fi={},pi=180/Math.PI,ci=Math.PI/180,_i=Math.atan2,di=/([A-Z])/g,mi=/(?:left|right|width|margin|padding|x)/i,gi=/[\s,\(]\S/,vi={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},j="transform",yi=j+"Origin",wi="O,Moz,ms,Ms,Webkit".split(","),xi=function(t,e,r){var i=(e||Vr).style,n=5;if(t in i&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(wi[n]+t in i););return n<0?null:(3===n?"ms":0<=n?wi[n]:"")+t},Ti={deg:1,rad:1,turn:1},bi={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Mi={clearProps:function(t,e,r,i,n){if("isFromStart"!==n.data)return(e=t._pt=new N(t._pt,e,r,0,0,Br)).u=i,e.pr=-10,e.t
3169ween=n,t._props.push(r),1}},Oi=[1,0,0,1,0,0],ki={},Ci=function(t,e){var r,i,n,s,a,o,u,h,l,f,p,c,_,d,m,g,v,y,w,x,T,b,M,O,k,C,A,D,P,S,z,R=t._gsap||new Le(t);return"x"in R&&!e&&!R.uncache||(e=t.style,A=R.scaleX<0,D="deg",P=q(t,yi)||"0",S=r=i=s=a=o=u=h=0,z=n=1,R.svg=!(!t.getCTM||!Pr(t)),l=Yr(t,R.svg),R.svg&&(y=!R.uncache&&t.getAttribute("data-svg-origin"),Ur(t,y||P,!!y||R.originIsAbsolute,!1!==R.smooth,l)),C=R.xOrigin||0,O=R.yOrigin||0,l!==Oi&&(c=l[0],_=l[1],d=l[2],m=l[3],S=g=l[4],r=v=l[5],6===l.length?(z=Math.sqrt(c*c+_*_),n=Math.sqrt(m*m+d*d),s=c||_?_i(_,c)*pi:0,(u=d||m?_i(d,m)*pi+s:0)&&(n*=Math.cos(u*ci)),R.svg&&(S-=C-(C*c+O*d),r-=O-(C*_+O*m))):(C=l[6],O=l[7],T=l[8],b=l[9],M=l[10],k=l[11],S=l[12],r=l[13],i=l[14],a=(l=_i(C,M))*pi,l&&(y=g*(f=Math.cos(-l))+T*(p=Math.sin(-l)),w=v*f+b*p,x=C*f+M*p,T=g*-p+T*f,b=v*-p+b*f,M=C*-p+M*f,k=O*-p+k*f,g=y,v=w,C=x),o=(l=_i(-d,M))*pi,l&&(f=Math.cos(-l),k=m*(p=Math.sin(-l))+k*f,c=y=c*f-T*p,_=w=_*f-b*p,d=x=d*f-M*p),s=(l=_i(_,c))*pi,l&&(y=c*(f=Math.cos(l))+_*(p=Math.sin(l)),w=g*f+v*p,_=_*f-c*p,v=v*f-g*p,c=y,g=w),a&&359.9<Math.abs(a)+Math.abs(s)&&(a=s=0,o=180-o),z=F(Math.sqrt(c*c+_*_+d*d)),n=F(Math.sqrt(v*v+C*C)),l=_i(g,v),u=2e-4<Math.abs(l)?l*pi:0,h=k?1/(k<0?-k:k):0),R.svg)&&(y=t.getAttribute("transform"),R.forceCSS=t.setAttribute("transform","")||!Lr(q(t,j)),y)&&t.setAttribute("transform",y),90<Math.abs(u)&&Math.abs(u)<270&&(A?(z*=-1,u+=s<=0?180:-180,s+=s<=0?180:-180):(n*=-1,u+=u<=0?180:-180)),R.x=((R.xPercent=S&&Math.round(t.offsetWidth/2)===Math.round(-S)?-50:0)?0:S)+"px",R.y=((R.yPercent=r&&Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)?0:r)+"px",R.z=i+"px",R.scaleX=F(z),R.scaleY=F(n),R.rotation=F(s)+D,R.rotationX=F(a)+D,R.rotationY=F(o)+D,R.skewX=u+D,R.skewY=0+D,R.transformPerspective=h+"px",(R.zOrigin=parseFloat(P.split(" ")[2])||0)&&(e[yi]=Ai(P)),R.xOffset=R.yOffset=0,R.force3D=I.force3D,R.renderTransform=R.svg?Fi:Gr?Ri:Di,R.uncache=0),R},Ai=function(t){return(t=t.split(" "))[0]+" "+t[1]},Di=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Ri(t,e)},Pi="0deg",Si="0px",zi=") ",Ri=function(t,e){var r,i,e=e||this,n=e.xPercent,s=e.yPercent,a=e.x,o=e.y,u=e.z,h=e.rotation,l=e.rotationY,f=e.rotationX,p=e.skewX,c=e.skewY,_=e.scaleX,d=e.scaleY,m=e.transformPerspective,g=e.force3D,v=e.target,e=e.zOrigin,y="",t="auto"===g&&t&&1!==t||!0===g;!e||f===Pi&&l===Pi||(g=parseFloat(l)*ci,i=Math.sin(g),r=Math.cos(g),g=parseFloat(f)*ci,a=Xr(v,a,i*(i=Math.cos(g))*-e),o=Xr(v,o,-Math.sin(g)*-e),u=Xr(v,u,r*i*-e+e)),m!==Si&&(y+="perspective("+m+zi),(n||s)&&(y+="translate("+n+"%, "+s+"%) "),!t&&a===Si&&o===Si&&u===Si||(y+=u!==Si||t?"translate3d("+a+", "+o+", "+u+") ":"translate("+a+", "+o+zi),h!==Pi&&(y+="rotate("+h+zi),l!==Pi&&(y+="rotateY("+l+zi),f!==Pi&&(y+="rotateX("+f+zi),p===Pi&&c===Pi||(y+="skew("+p+", "+c+zi),1===_&&1===d||(y+="scale("+_+", "+d+zi),v.style[j]=y||"translate(0, 0)"},Fi=function(t,e){var r,i,n,s,a,e=e||this,o=e.xPercent,u=e.yPercent,h=e.x,l=e.y,f=e.rotation,p=e.skewX,c=e.skewY,_=e.scaleX,d=e.scaleY,m=e.target,g=e.xOrigin,v=e.yOrigin,y=e.xOffset,w=e.yOffset,e=e.forceCSS,x=parseFloat(h),T=parseFloat(l),f=parseFloat(f),p=parseFloat(p);(c=parseFloat(c))&&(p+=c=parseFloat(c),f+=c),f||p?(f*=ci,p*=ci,r=Math.cos(f)*_,i=Math.sin(f)*_,n=Math.sin(f-p)*-d,s=Math.cos(f-p)*d,p&&(c*=ci,a=Math.tan(p-c),n*=a=Math.sqrt(1+a*a),s*=a,c)&&(a=Math.tan(c),r*=a=Math.sqrt(1+a*a),i*=a),r=F(r),i=F(i),n=F(n),s=F(s)):(r=_,s=d,i=n=0),(x&&!~(h+"").indexOf("px")||T&&!~(l+"").indexOf("px"))&&(x=Rr(m,"x",h,"px"),T=Rr(m,"y",l,"px")),(g||v||y||w)&&(x=F(x+g-(g*r+v*n)+y),T=F(T+v-(g*i+v*s)+w)),(o||u)&&(x=F(x+o/100*(a=m.getBBox()).width),T=F(T+u/100*a.height)),m.setAttribute("transform",a="matrix("+r+","+i+","+n+","+s+","+x+","+T+")"),e&&(m.style[j]=a)};c("padding,margin,Width,Radius",function(e,r){var t="Right",i="Bottom",n="Left",o=(r<3?["Top",t,i,n]:["Top"+n,"Top"+t,i+t,i+n]).map(function(t){return r<2?e+t:"border"+t+e});Mi[1<r?"border"+e:e]=function(e,t,r,i,n){var s,a;if(arguments.length<4)return s=o.map(function(t){return Fr(e,t,r)}),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(i+"").split(" "),a={},o.forEach(function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]}),e.init(t,a,n)}});var Ei,Bi={name:"css",register:kr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,i,n){var s,a,o,u,h,l,f,p,c,_,d,m,g,v,y,w,x,T,b,M=this._props,O=t.style;for(h in qr||kr(),e)if("autoRound"!==h&&(s=e[h],!U[h]||!Ne(h,e,r,i,t,n)))if(f=typeof s,u=Mi[h],"function"===f&&(f=typeof(s=s.call(r,i,t,n))),"string"===f&&~s.indexOf("random(")&&(s=Tt(s)),u)u(this,t,h,s,r)&&(m=1);else if("--"===h.substr(0,2))this.add(O,"setProperty",getComputedStyle(t).getPropertyValue(h)+"",s+"",i,n,0,0,h);else{if(u=Fr(t,h),o=parseFloat(u),(f="string"===f&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),a=parseFloat(s),p=(h=h in vi&&("autoAlpha"===h&&zr(this,O,"visibility",(o=1===o&&"hidden"===Fr(t,"visibility")&&a?0:o)?"inherit":"hidden",a?"inherit":"hidden",!a),"scale"!==h)&&"transform"!==h&&~(h=vi[h]).indexOf(",")?h.split(",")[0]:h)in fi)if(c||((_=t._gsap).renderTransform||
3169Ci(t),d=!1!==e.smoothOrigin&&_.smooth,(c=this._pt=new N(this._pt,O,j,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===h)this._pt=new N(this._pt,_,"scaleY",_.scaleY,f?f*a:a-_.scaleY),M.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b=T=x=void 0,x=(w=s).split(" "),T=x[0],b=x[1]||"50%","top"!==T&&"bottom"!==T&&"left"!==b&&"right"!==b||(w=T,T=b,b=w),x[0]=bi[T]||T,x[1]=bi[b]||b,s=x.join(" "),_.svg?Ur(t,s,0,d,0,this):((l=parseFloat(s.split(" ")[2])||0)!==_.zOrigin&&zr(this,_,"zOrigin",_.zOrigin,l),zr(this,O,h,Ai(u),Ai(s)));continue}if("svgOrigin"===h){Ur(t,s,1,d,0,this);continue}if(h in ki){w=this,T=_,b=h,x=o,v=f,y=z=F=void 0,F=360,z=B(g=s),y=parseFloat(g)*(z&&~g.indexOf("rad")?pi:1),y=x+(v=v?y*v:y-x)+"deg",z&&("short"===(z=g.split("_")[1])&&(v%=F)!=v%180&&(v+=v<0?F:-F),"cw"===z&&v<0?v=(v+36e9)%F-~~(v/F)*F:"ccw"===z&&0<v&&(v=(v-36e9)%F-~~(v/F)*F)),w._pt=g=new N(w._pt,T,b,x,v,_r),g.e=y,g.u="deg",w._props.push(b);continue}if("smoothOrigin"===h){zr(this,_,"smooth",_.smooth,s);continue}if("force3D"===h){_[h]=s;continue}if("transform"===h){E=F=P=D=A=C=k=R=z=S=void 0;var k,C,A,D,P,S=this,z=s,R=t,F=jr.style,E=R._gsap;for(C in F.cssText=getComputedStyle(R).cssText+";position:absolute;display:block;",F[j]=z,V.body.appendChild(jr),k=Ci(jr,1),fi)(A=E[C])!==(D=k[C])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(C)<0&&(A=L(A)!==(P=L(D))?Rr(R,C,A,P):parseFloat(A),D=parseFloat(D),S._pt=new N(S._pt,E,C,A,D-A,cr),S._pt.u=P||0,S._props.push(C));V.body.removeChild(jr);continue}}else h in O||(h=xi(h)||h);if(p||(a||0===a)&&(o||0===o)&&!gi.test(s)&&h in O)(v=(u+"").substr((o+"").length))!==(l=(s+"").substr(((a=a||0)+"").length)||(h in I.units?I.units[h]:v))&&(o=Rr(t,h,u,l)),this._pt=new N(this._pt,p?_:O,h,o,f?f*a:a-o,"px"!==l||!1===e.autoRound||p?cr:mr),this._pt.u=l||0,v!==l&&(this._pt.b=u,this._pt.r=dr);else if(h in O)Er.call(this,t,h,u,s);else{if(!(h in t)){Q(h,s);continue}this.add(t,h,t[h],s,i,n)}M.push(h)}m&&ur(this)},get:Fr,aliases:vi,getSetter:function(t,e,r){var i=vi[e];return(e=i&&i.indexOf(",")<0?i:e)in fi&&e!==yi&&(t._gsap.x||Fr(t,"x"))?r&&Qr===r?"scale"===e?Tr:xr:(Qr=r||{})&&("scale"===e?br:Mr):t.style&&!d(t.style[e])?yr:~e.indexOf("-")?wr:or(t,e)},core:{_removeProperty:Sr,_getMatrix:Yr}},Li=(l.utils.checkPrefix=xi,Ei=c("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Li="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",function(t){fi[t]=1}),c(Li,function(t){I.units[t]="deg",ki[t]=1}),vi[Ei[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Li,c("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",function(t){t=t.split(":");vi[t[1]]=Ei[t[0]]}),c("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){I.units[t]="px"}),l.registerPlugin(Bi),l.registerPlugin(Bi)||l),Ii=Li.core.Tween;t.Back=si,t.Bounce=oi,t.CSSPlugin=Bi,t.Circ=li,t.Cubic=ti,t.Elastic=ni,t.Expo=hi,t.Linear=Jr,t.Power0=e,t.Power1=Wr,t.Power2=Zr,t.Power3=Hr,t.Power4=$r,t.Quad=Kr,t.Quart=ei,t.Quint=ri,t.Sine=ui,t.SteppedEase=ai,t.Strong=ii,t.TimelineLite=A,t.TimelineMax=A,t.TweenLite=X,t.TweenMax=Ii,t.default=Li,t.gsap=Li,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.default});
3170((e,n)=>{"function"==typeof define&&define.amd?define(["ScrollMagic","TweenMax","TimelineMax"],n):"object"==typeof exports?(require("gsap"),n(require("scrollmagic"),TweenMax,TimelineMax)):n(e.ScrollMagic||e.jQuery&&e.jQuery.ScrollMagic,e.TweenMax||e.TweenLite,e.TimelineMax||e.TimelineLite)})(this,function(e,w,f){var n="animation.gsap",o=window.console||{},o=Function.prototype.bind.call(o.error||o.log||function(){},o);e||o("("+n+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),w||o("("+n+") -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."),e.Scene.addOption("tweenChanges",!1,function(e){return!!e}),e.Scene.extend(function(){function u(){d._log&&(Array.prototype.splice.call(arguments,1,0,"("+n+")","->"),d._log.apply(this,arguments))}var p,d=this,g=(d.on("progress.plugin_gsap",function(){g()}),d.on("destroy.plugin_gsap",function(e){d.removeTween(e.reset)}),function(){var e,n;p&&(e=d.progress(),n=d.state(),p.repeat&&-1===p.repeat()?"DURING"===n&&p.paused()?p.play():"DURING"===n||p.paused()||p.pause():e!=p.progress()&&(0===d.duration()?0<e?p.play():p.reverse():d.tweenChanges()&&p.tweenTo?p.tweenTo(e*p.duration()):p.progress(e).pause()))});d.setTween=function(e,n,o){var t,r;1<arguments.length&&(arguments.length<3&&(o=n,n=1),e=w.to(e,n,o));try{(t=f?new f({smoothChildTiming:!0}).add(e):e).pause()}catch(e){return u(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"),d}if(p&&d.removeTween(),p=t,e.repeat&&-1===e.repeat()&&(p.repeat(-1),p.yoyo(e.yoyo())),d.tweenChanges()&&!p.tweenTo&&u(2,"WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."),p&&d.controller()&&d.triggerElement()&&2<=d.loglevel()&&(n=w.getTweensOf(d.triggerElement()),r=d.controller().info("vertical"),n.forEac
3170h(function(e,n){e=e.vars.css||e.vars;if(r?void 0!==e.top||void 0!==e.bottom:void 0!==e.left||void 0!==e.right)return u(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1})),1.14<=parseFloat(TweenLite.version))for(var i,a,l=p.getChildren?p.getChildren(!0,!0,!1):[p],s=function(){u(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")},c=0;c<l.length;c++)i=l[c],a!==s&&(a=i.vars.onOverwrite,i.vars.onOverwrite=function(){a&&a.apply(this,arguments),s.apply(this,arguments)});return u(3,"added tween"),g(),d},d.removeTween=function(e){return p&&(e&&p.progress(0).pause(),p.kill(),p=void 0,u(3,"removed tween (reset: "+(e?"true":"false")+")")),d}})});
3171/*******************************************************************************
3172 * Copyright 2022 Adobe
3173 *
3174 * Licensed under the Apache License, Version 2.0 (the "License");
3175 * you may not use this file except in compliance with the License.
3176 * You may obtain a copy of the License at
3177 *
3178 *     http://www.apache.org/licenses/LICENSE-2.0
3179 *
3180 * Unless required by applicable law or agreed to in writing, software
3181 * distributed under the License is distributed on an "AS IS" BASIS,
3182 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3183 * See the License for the specific language governing permissions and
3184 * limitations under the License.
3185 ******************************************************************************/
3186(function(document) {
3187    "use strict";
3188
3189    window.CMP = window.CMP || {};
3190    window.CMP.utils = (function() {
3191        var NS = "cmp";
3192
3193        /**
3194         * Reads options data from the Component wrapper element, defined via {@code data-cmp-*} data attributes
3195         *
3196         * @param {HTMLElement} element The component element to read options data from
3197         * @param {String} is The component identifier
3198         * @returns {String[]} The options read from the component data attributes
3199         */
3200        var readData = function(element, is) {
3201            var data = element.dataset;
3202            var options = [];
3203            var capitalized = is;
3204            capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
3205            var reserved = ["is", "hook" + capitalized];
3206
3207            for (var key in data) {
3208                if (Object.prototype.hasOwnProperty.call(data, key)) {
3209                    var value = data[key];
3210
3211                    if (key.indexOf(NS) === 0) {
3212                        key = key.slice(NS.length);
3213                        key = key.charAt(0).toLowerCase() + key.substring(1);
3214
3215                        if (reserved.indexOf(key) === -1) {
3216                            options[key] = value;
3217                        }
3218                    }
3219                }
3220            }
3221            return options;
3222        };
3223
3224        /**
3225         * Set up the final properties of a component by evaluating the transform function or fall back to the default value on demand
3226         * @param {String[]} options the options to transform
3227         * @param {Object} properties object of properties of property functions
3228         * @returns {Object} transformed properties
3229         */
3230        var setupProperties = function(options, properties) {
3231            var transformedProperties = {};
3232
3233            for (var key in properties) {
3234                if (Object.prototype.hasOwnProperty.call(properties, key)) {
3235                    var property = properties[key];
3236                    if (options && options[key] != null) {
3237                        if (property && typeof property.transform === "function") {
3238                            transformedProperties[key] = property.transform(options[key]);
3239                        } else {
3240                            transformedProperties[key] = options[key];
3241                        }
3242                    } else {
3243                        transformedProperties[key] = properties[key]["default"];
3244                    }
3245                }
3246            }
3247            return transformedProperties;
3248        };
3249
3250
3251        return {
3252            readData: readData,
3253            setupProperties: setupProperties
3254        };
3255    }());
3256}(window.document));
3257
3258/*******************************************************************************
3259 * Copyright 2018 Adobe
3260 *
3261 * Licensed under the Apache License, Version 2.0 (the "License");
3262 * you may not use this file except in compliance with the License.
3263 * You may obtain a copy of the License at
3264 *
3265 *     http://www.apache.org/licenses/LICENSE-2.0
3266 *
3267 * Unless required by applicable law or agreed to in writing, software
3268 * distributed under the License is distributed on an "AS IS" BASIS,
3269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3270 * See the License for the specific language governing permissions and
3271 * limitations under the License.
3272 ******************************************************************************/
3273(function() {
3274    "use strict";
3275
3276    var containerUtils = window.CQ && window.CQ.CoreComponents && window.CQ.CoreComponents.container && window.CQ.CoreComponents.container.utils ? window.CQ.CoreComponents.container.utils : undefined;
3277    if (!containerUtils) {
3278        // eslint-disable-next-line no-console
3279        console.warn("Tabs: container utilities at window.CQ.CoreComponents.container.utils are not available. This can lead to missing features. Ensure the core.wcm.components.commons.site.container client library is included on the page.");
3280    }
3281    var dataLayerEnabled;
3282    var dataLayer;
3283    var dataLayerName;
3284
3285    var NS = "cmp";
3286    var IS = "carousel";
3287
3288    var keyCodes = {
3289        SPACE: 32,
3290        END: 35,
3291        HOME: 36,
3292        ARROW_LEFT: 37,
3293        ARROW_UP: 38,
3294        ARROW_RIGHT: 39,
3295        ARROW_DOWN: 40
3296    };
3297
3298    var selectors = {
3299        self: "[data-" + NS + '-is="' + IS + '"]'
3300    };
3301
3302    var properties = {
3303        /**
3304         * Determines whether the Carousel will automatically transition between slides
3305         *
3306         * @memberof Carousel
3307         * @type {Boolean}
3308         * @default false
3309         */
3310        "autoplay": {
3311            "default": false,
3312            "transform": function(value) {
3313                return !(value === null || typeof value === "undefined");
3314            }
3315        },
3316        /**
3317         * Duration (in milliseconds) before automatically transitioning to the next slide
3318         *
3319         * @memberof Carousel
3320         * @type {Number}
3321         * @default 5000
3322         */
3323        "delay": {
3324            "default": 5000,
3325            "transform": function(value) {
3326                value = parseFloat(value);
3327                return !isNaN(value) ? value : null;
3328            }
3329        },
3330        /**
3331         * Determines whether automatic pause on hovering the carousel is disabled
3332         *
3333         * @memberof Carousel
3334         * @type {Boolean}
3335         * @default false
3336         */
3337        "autopauseDisabled": {
3338            "default": false,
3339            "transform": function(value) {
3340                return !(value === null || typeof value === "undefined");
3341            }
3342        }
3343    };
3344
3345    /**
3346     * Carousel Configuration
3347     *
3348     * @typedef {Object} CarouselConfig Represents a Carousel configuration
3349     * @property {HTMLElement} element The HTMLElement representing the Carousel
3350     * @property {*[]} options The Carousel options
3351     */
3352
3353    /**
3354     * Carousel
3355     *
3356     * @class Carousel
3357     * @classdesc An interactive Carousel component for navigating a list of generic items
3358     * @param {CarouselConfig} config The Carousel configuration
3359     */
3360    function Carousel(config) {
3361        var that = this;
3362
3363        if (config && config.element) {
3364            init(config);
3365        }
3366
3367        /**
3368         * Initializes the Carousel
3369         *
3370         * @private
3371         * @param {CarouselConfig} config The Carousel configuration
3372         */
3373        function init(config) {
3374            that._config = config;
3375
3376            // prevents multiple initialization
3377            config.element.removeAttribute("data-" + NS + "-is");
3378
3379            setupProperties(config.options);
3380            cacheElements(config.element);
3381
3382            that._active = 0;
3383            that._paused = false;
3384
3385            if (that._elements.item) {
3386                initializeActive();
3387                bindEvents();
3388                resetAutoplayInterval();
3389                refreshPlayPauseActions();
3390                scrollToDeepLinkIdInCarousel();
3391            }
3392
3393            // TODO: This section is only relevant in edit mode and should move to the editor clientLib
3394            if (window.Granite && window.Granite.author && window.Granite.author.MessageChannel) {
3395                /*
3396                 * Editor message handling:
3397                 * - subscribe to "cmp.panelcontainer" message requests sent by the editor frame
3398                 * - check that the message data panel container type is correct and that the id (path) matches this specific Carousel component
3399                 * - if so, route the "navigate" operation to enact a navigation of the Carousel based on index data
3400                 */
3401                window.CQ = window.CQ || {};
3402                window.CQ.CoreComponents = window.CQ.CoreComponents || {};
3403                window.CQ.CoreComponents.MESSAGE_CHANNEL = window.CQ.CoreComponents.MESSAGE_CHANNEL || new window.Granite.author.MessageChannel("cqauthor", window);
3404                window.CQ.CoreComponents.MESSAGE_CHANNEL.subscribeRequestMessage("cmp.panelcontainer", function(message) {
3405                    if (message.data && message.data.type === "cmp-carousel" && message.data.id === that._elements.self.dataset["cmpPanelcontainerId"]) {
3406                        if (message.data.operation === "navigate") {
3407                            navigate(message.data.index);
3408                        }
3409                    }
3410                });
3411            }
3412        }
3413
3414        /**
3415         * Displays the slide containing the element that corresponds to the deep link in the URI fragment
3416         * and scrolls the browser to this element.
3417         */
3418        function scrollToDeepLinkIdInCarousel() {
3419            if (containerUtils) {
3420                var deepLinkItemIdx = containerUtils.getDeepLinkItemIdx(that, "item", "item");
3421                if (deepLinkItemIdx > -1) {
3422                    var deepLinkItem = that._elements["item"][deepLinkItemIdx];
3423                    if (deepLinkItem && that._elements["item"][that._active].id !== deepLinkItem.id) {
3424                        navigateAndFocusIndicator(deepLinkItemIdx, true);
3425                        // pause the carousel auto-rotation
3426                        pause();
3427                    }
3428                    var hashId = window.location.hash.substring(1);
3429                    if (hashId) {
3430                        var hashItem = document.querySelector("[id='" + hashId + "']");
3431                        if (hashItem) {
3432                            hashItem.scrollIntoView();
3433                        }
3434                    }
3435                }
3436            }
3437        }
3438
3439        /**
3440         * Caches the Carousel elements as defined via the {@code data-carousel-hook="ELEMENT_NAME"} markup API
3441         *
3442         * @private
3443         * @param {HTMLElement} wrapper The Carousel wrapper element
3444         */
3445        function cacheElements(wrapper) {
3446            that._elements = {};
3447            that._elements.self = wrapper;
3448            var hooks = that._elements.self.querySelectorAll("[data-" + NS + "-hook-" + IS + "]");
3449
3450            for (var i = 0; i < hooks.length; i++) {
3451                var hook = hooks[i];
3452                var capitalized = IS;
3453                capitalized = capitalized.charAt(0).toUpperCase() + capitalized.slice(1);
3454                var key = hook.dataset[NS + "Hook" + capitalized];
3455                if (that._elements[key]) {
3456                    if (!Array.isArray(that._elements[key])) {
3457                        var tmp = that._elements[key];
3458                        that._elements[key] = [tmp];
3459                    }
3460                    that._elements[key].push(hook);
3461                } else {
3462                    that._elements[key] = hook;
3463                }
3464            }
3465        }
3466
3467        /**
3468         * Sets up properties for the Carousel based on the passed options.
3469         *
3470         * @private
3471         * @param {Object} options The Carousel options
3472         */
3473        function setupProperties(options) {
3474            that._properties = {};
3475
3476            for (var key in properties) {
3477                if (Object.prototype.hasOwnProperty.call(properties, key)) {
3478                    var property = properties[key];
3479                    var value = null;
3480
3481                    if (options && options[key] != null) {
3482                        value = options[key];
3483
3484                        // transform the provided option
3485                        if (property && typeof property.transform === "function") {
3486                            value = property.transform(value);
3487                        }
3488                    }
3489
3490                    if (value === null) {
3491                        // value still null, take the property default
3492                        value = properties[key]["default"];
3493                    }
3494
3495                    that._properties[key] = value;
3496                }
3497            }
3498        }
3499
3500        /**
3501         * Binds Carousel event handling
3502         *
3503         * @private
3504         */
3505        function bindEvents() {
3506            window.addEventListener("hashchange", scrollToDeepLinkIdInCarousel, false);
3507            if (that._elements["previous"]) {
3508                that._elements["previous"].addEventListener("click", function() {
3509                    var index = getPreviousIndex();
3510                    navigate(index);
3511                    if (dataLayerEnabled) {
3512                        dataLayer.push({
3513                            event: "cmp:show",
3514                            eventInfo: {
3515                                path: "component." + getDataLayerId(that._elements.item[index])
3516                            }
3517                        });
3518                    }
3519                });
3520            }
3521
3522            if (that._elements["next"]) {
3523                that._elements["next"].addEventListener("click", function() {
3524                    var index = getNextIndex();
3525                    navigate(index);
3526                    if (dataLayerEnabled) {
3527                        dataLayer.push({
3528                            event: "cmp:show",
3529                            eventInfo: {
3530                                path: "component." + getDataLayerId(that._elements.item[index])
3531                            }
3532                        });
3533                    }
3534                });
3535            }
3536
3537            var indicators = that._elements["indicator"];
3538            if (indicators) {
3539                for (var i = 0; i < indicators.length; i++) {
3540                    (function(index) {
3541                        indicators[i].addEventListener("click", function(event) {
3542                            navigateAndFocusIndicator(index);
3543                            // pause the carousel auto-rotation
3544                            pause();
3545                        });
3546                    })(i);
3547                }
3548            }
3549
3550            if (that._elements["pause"]) {
3551                if (that._properties.autoplay) {
3552                    that._elements["pause"].addEventListener("click", onPauseClick);
3553                }
3554            }
3555
3556            if (that._elements["play"]) {
3557                if (that._properties.autoplay) {
3558                    that._elements["play"].addEventListener("click", onPlayClick);
3559                }
3560            }
3561
3562            that._elements.self.addEventListener("keydown", onKeyDown);
3563
3564            if (!that._properties.autopauseDisabled) {
3565                that._elements.self.addEventListener("mouseenter", onMouseEnter);
3566                that._elements.self.addEventListener("mouseleave", onMouseLeave);
3567            }
3568
3569            // for accessibility we pause animation when a element get focused
3570            var items = that._elements["item"];
3571            if (items) {
3572                for (var j = 0; j < items.length; j++) {
3573                    items[j].addEventListener("focusin", onMouseEnter);
3574                    items[j].addEventListener("focusout", onMouseLeave);
3575                }
3576            }
3577        }
3578
3579        /**
3580         * Handles carousel keydown events
3581         *
3582         * @private
3583         * @param {Object} event The keydown event
3584         */
3585        function onKeyDown(event) {
3586            var index = that._active;
3587            var lastIndex = that._elements["indicator"].length - 1;
3588
3589            switch (event.keyCode) {
3590                case keyCodes.ARROW_LEFT:
3591                case keyCodes.ARROW_UP:
3592                    event.preventDefault();
3593                    if (index > 0) {
3594                        navigateAndFocusIndicator(index - 1);
3595                    }
3596                    break;
3597                case keyCodes.ARROW_RIGHT:
3598                case keyCodes.ARROW_DOWN:
3599                    event.preventDefault();
3600                    if (index < lastIndex) {
3601                        navigateAndFocusIndicator(index + 1);
3602                    }
3603                    break;
3604                case keyCodes.HOME:
3605                    event.preventDefault();
3606                    navigateAndFocusIndicator(0);
3607                    break;
3608                case keyCodes.END:
3609                    event.preventDefault();
3610                    navigateAndFocusIndicator(lastIndex);
3611                    break;
3612                case keyCodes.SPACE:
3613                    if (that._properties.autoplay && (event.target !== that._elements["previous"] && event.target !== that._elements["next"])) {
3614                        event.preventDefault();
3615                        if (!that._paused) {
3616                            pause();
3617                        } else {
3618                            play();
3619                        }
3620                    }
3621                    if (event.target === that._elements["pause"]) {
3622                        that._elements["play"].focus();
3623                    }
3624                    if (event.target === that._elements["play"]) {
3625                        that._elements["pause"].focus();
3626                    }
3627                    break;
3628                default:
3629                    return;
3630            }
3631        }
3632
3633        /**
3634         * Handles carousel mouseenter events
3635         *
3636         * @private
3637         * @param {Object} event The mouseenter event
3638         */
3639        function onMouseEnter(event) {
3640            clearAutoplayInterval();
3641        }
3642
3643        /**
3644         * Handles carousel mouseleave events
3645         *
3646         * @private
3647         * @param {Object} event The mouseleave event
3648         */
3649        function onMouseLeave(event) {
3650            resetAutoplayInterval();
3651        }
3652
3653        /**
3654         * Handles pause element click events
3655         *
3656         * @private
3657         * @param {Object} event The click event
3658         */
3659        function onPauseClick(event) {
3660            pause();
3661            that._elements["play"].focus();
3662        }
3663
3664        /**
3665         * Handles play element click events
3666         *
3667         * @private
3668         * @param {Object} event The click event
3669         */
3670        function onPlayClick() {
3671            play();
3672            that._elements["pause"].focus();
3673        }
3674
3675        /**
3676         * Pauses the playing of the Carousel. Sets {@code Carousel#_paused} marker.
3677         * Only relevant when autoplay is enabled
3678         *
3679         * @private
3680         */
3681        function pause() {
3682            that._paused = true;
3683            clearAutoplayInterval();
3684            refreshPlayPauseActions();
3685        }
3686
3687        /**
3688         * Enables the playing of the Carousel. Sets {@code Carousel#_paused} marker.
3689         * Only relevant when autoplay is enabled
3690         *
3691         * @private
3692         */
3693        function play() {
3694            that._paused = false;
3695
3696            // If the Carousel is hovered, don't begin auto transitioning until the next mouse leave event
3697            var hovered = false;
3698            if (that._elements.self.parentElement) {
3699                hovered = that._elements.self.parentElement.querySelector(":hover") === that._elements.self;
3700            }
3701            if (that._properties.autopauseDisabled || !hovered) {
3702                resetAutoplayInterval();
3703            }
3704
3705            refreshPlayPauseActions();
3706        }
3707
3708        /**
3709         * Refreshes the play/pause action markup based on the {@code Carousel#_paused} state
3710         *
3711         * @private
3712         */
3713        function refreshPlayPauseActions() {
3714            setActionDisabled(that._elements["pause"], that._paused);
3715            setActionDisabled(that._elements["play"], !that._paused);
3716        }
3717
3718        /**
3719         * Initialize {@code Carousel#_active} based on the active item of the carousel.
3720         */
3721        function initializeActive() {
3722            var items = that._elements["item"];
3723            if (items && Array.isArray(items)) {
3724                for (var i = 0; i < items.length; i++) {
3725                    if (items[i].classList.contains("cmp-carousel__item--active")) {
3726                        that._active = i;
3727                        break;
3728                    }
3729                }
3730            }
3731        }
3732
3733        /**
3734         * Refreshes the item markup based on the current {@code Carousel#_active} index
3735         *
3736         * @private
3737         */
3738        function refreshActive() {
3739            var items = that._elements["item"];
3740            var indicators = that._elements["indicator"];
3741
3742            if (items) {
3743                if (Array.isArray(items)) {
3744                    for (var i = 0; i < items.length; i++) {
3745                        if (i === parseInt(that._active)) {
3746                            items[i].classList.add("cmp-carousel__item--active");
3747                            items[i].removeAttribute("aria-hidden");
3748                            indicators[i].classList.add("cmp-carousel__indicator--active");
3749                            indicators[i].setAttribute("aria-selected", true);
3750                            indicators[i].setAttribute("tabindex", "0");
3751                        } else {
3752                            items[i].classList.remove("cmp-carousel__item--active");
3753                            items[i].setAttribute("aria-hidden", true);
3754                            indicators[i].classList.remove("cmp-carousel__indicator--active");
3755                            indicators[i].setAttribute("aria-selected", false);
3756                            indicators[i].setAttribute("tabindex", "-1");
3757                        }
3758                    }
3759                } else {
3760                    // only one item
3761                    items.classList.add("cmp-carousel__item--active");
3762                    indicators.classList.add("cmp-carousel__indicator--active");
3763                }
3764            }
3765        }
3766
3767        /**
3768         * Focuses the element and prevents scrolling the element into view
3769         *
3770         * @param {HTMLElement} element Element to focus
3771         */
3772        function focusWithoutScroll(element) {
3773            var x = window.scrollX || window.pageXOffset;
3774            var y = window.scrollY || window.pageYOffset;
3775            element.focus();
3776            window.scrollTo(x, y);
3777        }
3778
3779        /**
3780         * Retrieves the next active index, with looping
3781         *
3782         * @private
3783         * @returns {Number} Index of the next carousel item
3784         */
3785        function getNextIndex() {
3786            return that._active === (that._elements["item"].length - 1) ? 0 : that._active + 1;
3787        }
3788
3789        /**
3790         * Retrieves the previous active index, with looping
3791         *
3792         * @private
3793         * @returns {Number} Index of the previous carousel item
3794         */
3795        function getPreviousIndex() {
3796            return that._active === 0 ? (that._elements["item"].length - 1) : that._active - 1;
3797        }
3798
3799        /**
3800         * Navigates to the item at the provided index
3801         *
3802         * @private
3803         * @param {Number} index The index of the item to navigate to
3804         * @param {Boolean} keepHash true to keep the hash in the URL, false to update it
3805         */
3806        function navigate(index, keepHash) {
3807            if (index < 0 || index > (that._elements["item"].length - 1)) {
3808                return;
3809            }
3810
3811            that._active = index;
3812            refreshActive();
3813
3814            if (!keepHash && containerUtils) {
3815                containerUtils.updateUrlHash(that, "item", index);
3816            }
3817
3818            if (dataLayerEnabled) {
3819                var carouselId = that._elements.self.id;
3820                var activeItem = getDataLayerId(that._elements.item[index]);
3821                var updatePayload = { component: {} };
3822                updatePayload.component[carouselId] = { shownItems: [activeItem] };
3823
3824                var removePayload = { component: {} };
3825                removePayload.component[carouselId] = { shownItems: undefined };
3826
3827                dataLayer.push(removePayload);
3828                dataLayer.push(updatePayload);
3829            }
3830
3831            // reset the autoplay transition interval following navigation, if not already hovering the carousel
3832            if (that._elements.self.parentElement) {
3833                if (that._elements.self.parentElement.querySelector(":hover") !== that._elements.self) {
3834                    resetAutoplayInterval();
3835                }
3836            }
3837        }
3838
3839        /**
3840         * Navigates to the item at the provided index and ensures the active indicator gains focus
3841         *
3842         * @private
3843         * @param {Number} index The index of the item to navigate to
3844         * @param {Boolean} keepHash true to keep the hash in the URL, false to update it
3845         */
3846        function navigateAndFocusIndicator(index, keepHash) {
3847            navigate(index, keepHash);
3848            focusWithoutScroll(that._elements["indicator"][index]);
3849
3850            if (dataLayerEnabled) {
3851                dataLayer.push({
3852                    event: "cmp:show",
3853                    eventInfo: {
3854                        path: "component." + getDataLayerId(that._elements.item[index])
3855                    }
3856                });
3857            }
3858        }
3859
3860        /**
3861         * Starts/resets automatic slide transition interval
3862         *
3863         * @private
3864         */
3865        function resetAutoplayInterval() {
3866            if (that._paused || !that._properties.autoplay) {
3867                return;
3868            }
3869            clearAutoplayInterval();
3870            that._autoplayIntervalId = window.setInterval(function() {
3871                if (document.visibilityState && document.hidden) {
3872                    return;
3873                }
3874                var indicators = that._elements["indicators"];
3875                if (indicators !== document.activeElement && indicators.contains(document.activeElement)) {
3876                    // if an indicator has focus, ensure we switch focus following navigation
3877                    navigateAndFocusIndicator(getNextIndex(), true);
3878                } else {
3879                    navigate(getNextIndex(), true);
3880                }
3881            }, that._properties.delay);
3882        }
3883
3884        /**
3885         * Clears/pauses automatic slide transition interval
3886         *
3887         * @private
3888         */
3889        function clearAutoplayInterval() {
3890            window.clearInterval(that._autoplayIntervalId);
3891            that._autoplayIntervalId = null;
3892        }
3893
3894        /**
3895         * Sets the disabled state for an action and toggles the appropriate CSS classes
3896         *
3897         * @private
3898         * @param {HTMLElement} action Action to disable
3899         * @param {Boolean} [disable] {@code true} to disable, {@code false} to enable
3900         */
3901        function setActionDisabled(action, disable) {
3902            if (!action) {
3903                return;
3904            }
3905            if (disable !== false) {
3906                action.disabled = true;
3907                action.classList.add("cmp-carousel__action--disabled");
3908            } else {
3909                action.disabled = false;
3910                action.classList.remove("cmp-carousel__action--disabled");
3911            }
3912        }
3913    }
3914
3915    /**
3916     * Parses the dataLayer string and returns the ID
3917     *
3918     * @private
3919     * @param {HTMLElement} item the accordion item
3920     * @returns {String} dataLayerId or undefined
3921     */
3922    function getDataLayerId(item) {
3923        if (item) {
3924            if (item.dataset.cmpDataLayer) {
3925                return Object.keys(JSON.parse(item.dataset.cmpDataLayer))[0];
3926            } else {
3927                return item.id;
3928            }
3929        }
3930        return null;
3931    }
3932
3933    /**
3934     * Document ready handler and DOM mutation observers. Initializes Carousel components as necessary.
3935     *
3936     * @private
3937     */
3938    function onDocumentReady() {
3939        dataLayerEnabled = document.body.hasAttribute("data-cmp-data-layer-enabled");
3940        if (dataLayerEnabled) {
3941            dataLayerName = document.body.getAttribute("data-cmp-data-layer-name") || "adobeDataLayer";
3942            dataLayer = window[dataLayerName] = window[dataLayerName] || [];
3943        }
3944
3945        var elements = document.querySelectorAll(selectors.self);
3946        for (var i = 0; i < elements.length; i++) {
3947            new Carousel({ element: elements[i], options: CMP.utils.readData(elements[i], IS) });
3948        }
3949
3950        var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
3951        var body = document.querySelector("body");
3952        var observer = new MutationObserver(function(mutations) {
3953            mutations.forEach(function(mutation) {
3954                // needed for IE
3955                var nodesArray = [].slice.call(mutation.addedNodes);
3956                if (nodesArray.length > 0) {
3957                    nodesArray.forEach(function(addedNode) {
3958                        if (addedNode.querySelectorAll) {
3959                            var elementsArray = [].slice.call(addedNode.querySelectorAll(selectors.self));
3960                            elementsArray.forEach(function(element) {
3961                                new Carousel({ element: element, options: CMP.utils.readData(element, IS) });
3962                            });
3963                        }
3964                    });
3965                }
3966            });
3967        });
3968
3969        observer.observe(body, {
3970            subtree: true,
3971            childList: true,
3972            characterData: true
3973        });
3974    }
3975
3976    var documentReady = document.readyState !== "loading" ? Promise.resolve() : new Promise(function(resolve) {
3977        document.addEventListener("DOMContentLoaded", resolve);
3978    });
3979    Promise.all([documentReady]).then(onDocumentReady);
3980
3981    if (containerUtils) {
3982        window.addEventListener("load", containerUtils.scrollToAnchor, false);
3983    }
3984
3985}());
3986

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.