1 2/*! jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */�
vendor: 89,413 bytes, lines 2-3
2 3!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&&"function"!=typeof e.item},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.6.0",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(),j=function(e,t){return e===t&&(l=!0),0},D={}.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&&e.namespaceURI,n=e&&(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},j=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&&D.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(j),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}: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];if(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(j).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 j(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(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?S(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"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,D=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="pending",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=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=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ee(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)Ee(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=Te;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 Se(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&&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,we)}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=be.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=be.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")&&Se(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Se(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?we:Te,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:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,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:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(e,t){S.event.special[e]={setup:function(){return Se(this,e,Ce),!1},trigger:function(){return Se(this,e),!0},_default:function(){return!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 Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(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=Te),this.each(function(){S.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(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 He(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&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(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"),De)).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,qe),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(Ne,""),u,l))}return n}function Oe(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++)Le(o[r],a[r]);else Le(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 Oe(this,e,!0)},remove:function(e){return Oe(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 He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(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&&!ke.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 He(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 Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Me=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},Ie=new RegExp(ne.join("|"),"i");function We(e,t,n){var r,i,o,a,s=e.style;return(n=n||Re(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ie(e)||(a=S.style(e,t)),!y.pixelBoxStyles()&&Pe.test(a)&&Ie.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 Fe(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;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Be=["Webkit","Moz","ms"],$e=E.createElement("div").style,_e={};function ze(e){var t=S.cssProps[e]||_e[e];return t||(e in $e?e:_e[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Be.length;while(n--)if((e=Be[n]+t)in $e)return e}(e)||e)}var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ve={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(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 Je(e,t,n){var r=Re(e),i=(!y.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=We(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.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)+Qe(e,t,n||(i?"border":"content"),o,r,a)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(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=Xe.test(t),l=e.style;if(u||(t=ze(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 Xe.test(t)||(t=ze(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=We(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[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!Ue.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,u,n):Me(e,Ve,function(){return Je(e,u,n)})},set:function(e,t,n){var r,i=Re(e),o=!y.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===S.css(e,"boxSizing",!1,i),s=n?Qe(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Qe(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=S.css(e,u)),Ye(0,t,s)}}}),S.cssHooks.marginLeft=Fe(y.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-Me(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=Ye)}),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=Re(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=Ke).prototype={constructor:Ke,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=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.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):Ke.propHooks._default.set(this),this}}).init.prototype=Ke.prototype,(Ke.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[ze(e.prop)]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ke.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=Ke.prototype.init,S.fx.step={};var Ze,et,tt,nt,rt=/^(?:toggle|show|hide)$/,it=/queueHooks$/;function ot(){et&&(!1===E.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(ot):C.setTimeout(ot,S.fx.interval),S.fx.tick())}function at(){return C.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function st(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 ut(e,t,n){for(var r,i=(lt.tweeners[t]||[]).concat(lt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function lt(o,e,t){var n,a,r=0,i=lt.prefilters.length,s=S.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ze||at(),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:Ze||at(),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=lt.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,ut,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(lt,{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],lt.tweeners[n]=lt.tweeners[n]||[],lt.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],rt.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=ut(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?lt.prefilters.unshift(e):lt.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=lt(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&&it.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(st(r,!0),e,t,n)}}),S.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("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(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),Ze=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){et||(et=!0,ot())},S.fx.stop=function(){et=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)}})},tt=E.createElement("input"),nt=E.createElement("select").appendChild(E.createElement("option")),tt.type="checkbox",y.checkOn=""!==tt.value,y.optSelected=nt.selected,(tt=E.createElement("input")).value="t",tt.type="radio",y.radioValue="t"===tt.value;var ct,ft=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)?ct: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)}}),ct={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=ft[t]||S.find.attr;ft[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=ft[o],ft[o]=r,r=null!=a(e,t,n)?o:null,ft[o]=i),r}});var pt=/^(?:input|select|textarea|button)$/i,dt=/^(?:a|area)$/i;function ht(e){return(e.match(P)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(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):pt.test(e.nodeName)||dt.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,gt(this)))});if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=ht(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,gt(this)))});if(!arguments.length)return this.attr("class","");if((e=vt(t)).length)while(n=this[u++])if(i=gt(n),r=1===n.nodeType&&" "+ht(i)+" "){a=0;while(o=e[a++])while(-1<r.indexOf(" "+o+" "))r=r.replace(" "+o+" "," ");i!==(s=ht(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,gt(this),t),t)}):this.each(function(){var e,t,n,r;if(a){t=0,n=S(this),r=vt(i);while(e=r[t++])n.hasClass(e)?n.removeClass(e):n.addClass(e)}else void 0!==i&&"boolean"!==o||((e=gt(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<(" "+ht(gt(n))+" ").indexOf(t))return!0;return!1}});var yt=/\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(yt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:ht(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 mt=/^(?:focusinfocus|focusoutblur)$/,xt=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&&!mt.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,mt.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,xt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,xt),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 bt=C.location,wt={guid:Date.now()},Tt=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Ct=/\[\]$/,Et=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,kt=/^(?:input|select|textarea|keygen)/i;function At(n,e,r,i){var t;if(Array.isArray(e))S.each(e,function(e,t){r||Ct.test(n)?i(n,t):At(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)At(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)At(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")&&kt.test(this.nodeName)&&!St.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(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var Nt=/%20/g,jt=/#.*$/,Dt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ot={},Pt={},Rt="*/".concat("*"),Mt=E.createElement("a");function It(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 Wt(t,i,o,a){var s={},u=t===Pt;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 Ft(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}Mt.href=bt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,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?Ft(Ft(e,S.ajaxSettings),t):Ft(S.ajaxSettings,e)},ajaxPrefilter:It(Ot),ajaxTransport:It(Pt),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=qt.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||bt.href)+"").replace(Ht,bt.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=Mt.protocol+"//"+Mt.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)),Wt(Ot,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=!Lt.test(v.type),f=v.url.replace(jt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Nt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(Tt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Dt,"$1"),o=(Tt.test(f)?"&":"?")+"_="+wt.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]?", "+Rt+"; 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=Wt(Pt,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)&&S.inArray("json",v.dataTypes)<0&&(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 Bt={0:200,1223:204},$t=S.ajaxSettings.xhr();y.cors=!!$t&&"withCredentials"in $t,y.ajax=$t=!!$t,S.ajaxTransport(function(i){var o,a;if(y.cors||$t&&!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(Bt[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 _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.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(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.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,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===_t.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=ht(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):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]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.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 Xt=/^[\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(Xt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Vt=C.jQuery,Gt=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=Gt),e&&C.jQuery===S&&(C.jQuery=Vt),S},"undefined"==typeof e&&(C.jQuery=C.$=S),S});
4/*! jQuery UI - v1.13.1 - 2022-07-13 5* http://jqueryui.com
vendor: 8,858 bytes, lines 6-9
6* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/datepicker.js, widgets/tabs.js 7* Copyright jQuery Foundation and other contributors; Licensed MIT */ 8 9!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function($){"use strict";$.ui=$.ui||{};$.ui.version="1.13.1";var s,i=0,r=Array.prototype.hasOwnProperty,o=Array.prototype.slice;$.cleanData=(s=$.cleanData,function(t){for(var e,i,a=0;null!=(i=t[a]);a++)(e=$._data(i,"events"))&&e.remove&&$(i).triggerHandler("remove");s(t)}),$.widget=function(t,i,e){var a,s,n,r={},o=t.split(".")[0],l=o+"-"+(t=t.split(".")[1]);return e||(e=i,i=$.Widget),Array.isArray(e)&&(e=$.extend.apply(null,[{}].concat(e))),$.expr.pseudos[l.toLowerCase()]=function(t){return!!$.data(t,l)},$[o]=$[o]||{},a=$[o][t],s=$[o][t]=function(t,e){if(!this||!this._createWidget)return new s(t,e);arguments.length&&this._createWidget(t,e)},$.extend(s,a,{version:e.version,_proto:$.extend({},e),_childConstructors:[]}),(n=new i).options=$.widget.extend({},n.options),$.each(e,function(e,a){function s(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}r[e]="function"==typeof a?function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=n,t=a.apply(this,arguments),this._super=e,this._superApply=i,t}:a}),s.prototype=$.widget.extend(n,{widgetEventPrefix:a&&n.widgetEventPrefix||t},r,{constructor:s,namespace:o,widgetName:t,widgetFullName:l}),a?($.each(a._childConstructors,function(t,e){var i=e.prototype;$.widget(i.namespace+"."+i.widgetName,s,e._proto)}),delete a._childConstructors):i._childConstructors.push(s),$.widget.bridge(t,s),s},$.widget.extend=function(t){for(var e,i,a=o.call(arguments,1),s=0,n=a.length;s<n;s++)for(e in a[s])i=a[s][e],r.call(a[s],e)&&void 0!==i&&($.isPlainObject(i)?t[e]=$.isPlainObject(t[e])?$.widget.extend({},t[e],i):$.widget.extend({},i):t[e]=i);return t},$.widget.bridge=function(n,e){var r=e.prototype.widgetFullName||n;$.fn[n]=function(i){var t="string"==typeof i,a=o.call(arguments,1),s=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=$.data(this,r);return"instance"===i?(s=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?$.error("no such method '"+i+"' for "+n+" widget instance"):(t=e[i].apply(e,a))!==e&&void 0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:$.error("cannot call methods on "+n+" prior to initialization; attempted to call method '"+i+"'")}):s=void 0:(a.length&&(i=$.widget.extend.apply(null,[i].concat(a))),this.each(function(){var t=$.data(this,r);t?(t.option(i||{}),t._init&&t._init()):$.data(this,r,new e(i,this))})),s}},$.Widget=function(){},$.Widget._childConstructors=[],$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=$(e||this.defaultElement||this)[0],this.element=$(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=$(),this.hoverable=$(),this.focusable=$(),this.classesElementLookup={},e!==this&&($.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=$(e.style?e.ownerDocument:e.document||e),this.window=$(this.document[0].defaultView||this.document[0].parentWindow)),this.options=$.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:$.noop,_create:$.noop,_init:$.noop,destroy:function(){var i=this;this._destroy(),$.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:$.noop,widget:function(){return this.element},option:function(t,e){var i,a,s,n=t;if(0===arguments.length)return $.widget.extend({},this.options);if("string"==typeof t)if(n={},t=(i=t.split(".")).shift(),i.length){for(a=n[t]=$.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)a[i[s]]=a[i[s]]||{},a=a[i[s]];if(t=i.pop(),1===arguments.length)return void 0===a[t]?null:a[t];a[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];n[t]=e}return this._setOptions(n),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,a;for(e in t)a=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&a&&a.length&&(i=$(a.get()),this._removeClass(a,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(s){var n=[],r=this;function t(t,e){for(var i,a=0;a<t.length;a++)i=r.classesElementLookup[t[a]]||$(),i=s.add?(function(){var i=[];s.element.each(function(t,e){$.map(r.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),r._on($(i),{remove:"_untrackClassesElement"})}(),$($.uniqueSort(i.get().concat(s.element.get())))):$(i.not(s.element).get()),r.classesElementLookup[t[a]]=i,n.push(t[a]),e&&s.classes[t[a]]&&n.push(s.classes[t[a]])}return(s=$.extend({element:this.element,classes:this.options.classes||{}},s)).keys&&t(s.keys.match(/\S+/g)||[],!0),s.extra&&t(s.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(i){var a=this;$.each(a.classesElementLookup,function(t,e){-1!==$.inArray(i.target,e)&&(a.classesElementLookup[t]=$(e.not(i.target).get()))}),this._off($(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,a){var s="string"==typeof t||null===t,i={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:a="boolean"==typeof a?a:i};return i.element.toggleClass(this._classes(i),a),this},_on:function(s,n,t){var r,o=this;"boolean"!=typeof s&&(t=n,n=s,s=!1),t?(n=r=$(n),this.bindings=this.bindings.add(n)):(t=n,n=this.element,r=this.widget()),$.each(t,function(t,e){function i(){if(s||!0!==o.options.disabled&&!$(this).hasClass("ui-state-disabled"))return("string"==typeof e?o[e]:e).apply(o,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||$.guid++);var a=t.match(/^([\w:-]*)\s*(.*)$/),t=a[1]+o.eventNamespace,a=a[2];a?r.on(t,a,i):n.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=$(this.bindings.not(t).get()),this.focusable=$(this.focusable.not(t).get()),this.hoverable=$(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($(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass($(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass($(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass($(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var a,s,n=this.options[t];if(i=i||{},(e=$.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(a in s)a in e||(e[a]=s[a]);return this.element.trigger(e,i),!("function"==typeof n&&!1===n.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},$.each({show:"fadeIn",hide:"fadeOut"},function(n,r){$.Widget.prototype["_"+n]=function(e,t,i){var a,s=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||r:n;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),a=!$.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),a&&$.effects&&$.effects.effect[s]?e[n](t):s!==n&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){$(this)[n](),i&&i.call(e[0]),t()})}});var a,D,w,n,l,h,c,d,x;$.widget;function C(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function M(t,e){return parseInt($.css(t,e),10)||0}function I(t){return null!=t&&t===t.window}
vendor: 4,645 bytes, line 9
9D=Math.max,w=Math.abs,n=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,d=/%$/,x=$.fn.position,$.position={scrollbarWidth:function(){if(void 0!==a)return a;var t,e=$("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),i=e.children()[0];return $("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),a=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?$.position.scrollbarWidth():0,height:e?$.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=$(t||window),i=I(e[0]),a=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:a,offset:!i&&!a?$(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},$.fn.position=function(d){if(!d||!d.of)return x.apply(this,arguments);var u,p,g,f,_,t,v="string"==typeof(d=$.extend({},d)).of?$(document).find(d.of):$(d.of),m=$.position.getWithinInfo(d.within),b=$.position.getScrollInfo(m),y=(d.collision||"flip").split(" "),k={},e=9===(t=(e=v)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:I(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return v[0].preventDefault&&(d.at="left top"),p=e.width,g=e.height,_=$.extend({},f=e.offset),$.each(["my","at"],function(){var t,e,i=(d[this]||"").split(" ");(i=1===i.length?n.test(i[0])?i.concat(["center"]):l.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=n.test(i[0])?i[0]:"center",i[1]=l.test(i[1])?i[1]:"center",t=h.exec(i[0]),e=h.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],d[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===y.length&&(y[1]=y[0]),"right"===d.at[0]?_.left+=p:"center"===d.at[0]&&(_.left+=p/2),"bottom"===d.at[1]?_.top+=g:"center"===d.at[1]&&(_.top+=g/2),u=C(k.at,p,g),_.left+=u[0],_.top+=u[1],this.each(function(){var i,t,r=$(this),o=r.outerWidth(),l=r.outerHeight(),e=M(this,"marginLeft"),a=M(this,"marginTop"),s=o+e+M(this,"marginRight")+b.width,n=l+a+M(this,"marginBottom")+b.height,h=$.extend({},_),c=C(k.my,r.outerWidth(),r.outerHeight());"right"===d.my[0]?h.left-=o:"center"===d.my[0]&&(h.left-=o/2),"bottom"===d.my[1]?h.top-=l:"center"===d.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:a},$.each(["left","top"],function(t,e){$.ui.position[y[t]]&&$.ui.position[y[t]][e](h,{targetWidth:p,targetHeight:g,elemWidth:o,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:n,offset:[u[0]+c[0],u[1]+c[1]],my:d.my,at:d.at,within:m,elem:r})}),d.using&&(t=function(t){var e=f.left-h.left,i=e+p-o,a=f.top-h.top,s=a+g-l,n={target:{element:v,left:f.left,top:f.top,width:p,height:g},element:{element:r,left:h.left,top:h.top,width:o,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:s<0?"top":0<a?"bottom":"middle"};p<o&&w(e+i)<p&&(n.horizontal="center"),g<l&&w(a+s)<g&&(n.vertical="middle"),D(w(e),w(i))>D(w(a),w(s))?n.important="horizontal":n.important="vertical",d.using.call(this,t,n)}),r.offset($.extend(h,{using:t}))})},$.ui.position={fit:{left:function(t,e){var i=e.within,a=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,n=t.left-e.collisionPosition.marginLeft,r=a-n,o=n+e.collisionWidth-s-a;e.collisionWidth>s?0<r&&o<=0?(i=t.left+r+e.collisionWidth-s-a,t.left+=r-i):t.left=!(0<o&&r<=0)&&o<r?a+s-e.collisionWidth:a:0<r?t.left+=r:0<o?t.left-=o:t.left=D(t.left-n,t.left)},top:function(t,e){var i=e.within,a=i.isWindow?i.scrollTop:i.offset.top,s=e.within.height,n=t.top-e.collisionPosition.marginTop,r=a-n,o=n+e.collisionHeight-s-a;e.collisionHeight>s?0<r&&o<=0?(i=t.top+r+e.collisionHeight-s-a,t.top+=r-i):t.top=!(0<o&&r<=0)&&o<r?a+s-e.collisionHeight:a:0<r?t.top+=r:0<o?t.top-=o:t.top=D(t.top-n,t.top)}},flip:{left:function(t,e){var i=e.within,a=i.offset.left+i.scrollLeft,s=i.width,n=i.isWindow?i.scrollLeft:i.offset.left,r=t.left-e.collisionPosition.marginLeft,o=r-n,l=r+e.collisionWidth-s-n,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,r=-2*e.offset[0];o<0?((a=t.left+h+i+r+e.collisionWidth-s-a)<0||a<w(o))&&(t.left+=h+i+r):0<l&&(0<(n=t.left-e.collisionPosition.marginLeft+h+i+r-n)||w(n)<l)&&(t.left+=h+i+r)}
vendor: 17,398 bytes, line 9
9,top:function(t,e){var i=e.within,a=i.offset.top+i.scrollTop,s=i.height,n=i.isWindow?i.scrollTop:i.offset.top,r=t.top-e.collisionPosition.marginTop,o=r-n,l=r+e.collisionHeight-s-n,h="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,r=-2*e.offset[1];o<0?((a=t.top+h+i+r+e.collisionHeight-s-a)<0||a<w(o))&&(t.top+=h+i+r):0<l&&(0<(n=t.top-e.collisionPosition.marginTop+h+i+r-n)||w(n)<l)&&(t.top+=h+i+r)}},flipfit:{left:function(){$.ui.position.flip.left.apply(this,arguments),$.ui.position.fit.left.apply(this,arguments)},top:function(){$.ui.position.flip.top.apply(this,arguments),$.ui.position.fit.top.apply(this,arguments)}}};var t;$.ui.position,$.extend($.expr.pseudos,{data:$.expr.createPseudo?$.expr.createPseudo(function(e){return function(t){return!!$.data(t,e)}}):function(t,e,i){return!!$.data(t,i[3])}}),$.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});$.ui.focusable=function(t,e){var i,a,s,n,r=t.nodeName.toLowerCase();return"area"===r?(a=(i=t.parentNode).name,!(!t.href||!a||"map"!==i.nodeName.toLowerCase())&&(0<(a=$("img[usemap='#"+a+"']")).length&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(s=!t.disabled)&&(n=$(t).closest("fieldset")[0])&&(s=!n.disabled):s="a"===r&&t.href||e,s&&$(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"visible"===e}($(t)))},$.extend($.expr.pseudos,{focusable:function(t){return $.ui.focusable(t,null!=$.attr(t,"tabindex"))}});var e,u;$.ui.focusable,$.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},$.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='"+$.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},$.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,a=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=$(this);return(!i||"static"!==t.css("position"))&&a.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:$(this[0].ownerDocument||document)},$.extend($.expr.pseudos,{tabbable:function(t){var e=$.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&$.ui.focusable(t,i)}}),$.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&$(this).removeAttr("id")})}}),$.widget("ui.accordion",{version:"1.13.1",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=$(),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():$()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=$("<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?("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())):this._activate(e)},_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=$.ui.keyCode,i=this.headers.length,a=this.headers.index(t.target),s=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:s=this.headers[(a+1)%i];break;case e.LEFT:case e.UP:s=this.headers[(a-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:s=this.headers[0];break;case e.END:s=this.headers[i-1]}s&&($(t.target).attr("tabIndex",-1),$(s).attr("tabIndex",0),$(s).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===$.ui.keyCode.UP&&t.ctrlKey&&$(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=$()):!1===t.active?this._activate(0):this.active.length&&!$.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=$()):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,a=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=$(this),e=t.uniqueId().attr("id"),i=t.next(),a=i.uniqueId().attr("id");t.attr("aria-controls",a),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=a.height(),this.element.siblings(":visible").each(function(){var t=$(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=$(this).outerHeight(!0)}),this.headers.next().each(function(){$(this).height(Math.max(0,i-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=$(this).is(":visible");t||$(this).show(),i=Math.max(i,$(this).css("height","").height()),t||$(this).hide()}).height(i))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:$.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):$()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&$.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,a=$(t.currentTarget),s=a[0]===i[0],n=s&&e.collapsible,r=n?$():a.next(),o=i.next(),r={oldHeader:i,oldPanel:o,newHeader:n?$():a,newPanel:r};t.preventDefault(),s&&!e.collapsible||!1===this._trigger("beforeActivate",t,r)||(e.active=!n&&this.headers.index(a),this.active=s?$():a,this._toggle(r),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(i=i.children(".ui-accordion-header-icon"),this._removeClass(i,null,e.icons.activeHeader)._addClass(i,null,e.icons.header)),s||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),e.icons&&(s=a.children(".ui-accordion-header-icon"),this._removeClass(s,null,e.icons.header)._addClass(s,null,e.icons.activeHeader)),this._addClass(a.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($(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){var a,s,n,r=this,o=0,l=t.css("box-sizing"),h=t.length&&(!i.length||t.index()<i.index()),c=this.options.animate||{},d=h&&c.down||c,h=function(){r._toggleComplete(e)};return s=(s="string"==typeof d?d:s)||d.easing||c.easing,n=(n="number"==typeof d?d:n)||d.duration||c.duration,i.length?t.length?(a=t.show().outerHeight(),i.animate(this.hideProps,{duration:n,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:n,easing:s,complete:h,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===l&&(o+=e.now):"content"!==r.options.heightStyle&&(e.now=Math.round(a-i.outerHeight()-o),o=0)}})):i.animate(this.hideProps,n,s,h):t.animate(this.showProps,n,s,h)},_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)}});function p(){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","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!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},$.extend(this._defaults,this.regional[""]),this.regional.en=$.extend(!0,{},this.regional[""]),this.regional["en-US"]=$.extend(!0,{},this.regional.en),this.dpDiv=g($("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function g(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){$(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&$(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&$(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,f)}function f(){$.datepicker._isDisabledDatepicker((u.inline?u.dpDiv.parent():u.input)[0])||($(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&$(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&$(this).addClass("ui-datepicker-next-hover"))}function _(t,e){for(var i in $.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}$.extend($.ui,{datepicker:{version:"1.13.1"}}),$.extend(p.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return _(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,a=t.nodeName.toLowerCase(),s="div"===a||"span"===a;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst($(t),s)).settings=$.extend({},e||{}),"input"===a?this._connectDatepicker(t,i):s&&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?g($("<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=$(t);e.append=$([]),e.trigger=$([]),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),$.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,a=this._get(e,"appendText"),s=this._get(e,"isRTL");e.append&&e.append.remove(),a&&(e.append=$("<span>").addClass(this._appendClass).text(a),t[s?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(a=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=$("<img>").addClass(this._triggerClass).attr({src:i,alt:a,title:a}):(e.trigger=$("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html($("<img>").attr({src:i,alt:a,title:a})):e.trigger.text(a)),t[s?"before":"after"](e.trigger),e.trigger.on("click",function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput===t[0]?$.datepicker._hideDatepicker():($.datepicker._datepickerShowing&&$.datepicker._lastInput!==t[0]&&$.datepicker._hideDatepicker(),$.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,a,s,n,r;this._get(t,"autoSize")&&!t.inline&&(n=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(s=a=i=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,a=s);return a},n.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),t.input.attr("size",this._formatDate(t,n).length))},_inlineDatepicker:function(t,e){var i=$(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),$.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"))}
vendor: 13,325 bytes, line 9
9,_dialogDatepicker:function(t,e,i,a,s){var n,r=this._dialogInst;return r||(this.uuid+=1,n="dp"+this.uuid,this._dialogInput=$("<input type='text' id='"+n+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),$("body").append(this._dialogInput),(r=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},$.data(this._dialogInput[0],"datepicker",r)),_(r.settings,a||{}),e=e&&e.constructor===Date?this._formatDate(r,e):e,this._dialogInput.val(e),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(n=document.documentElement.clientWidth,a=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[n/2-100+e,a/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),r.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],"datepicker",r),this},_destroyDatepicker:function(t){var e,i=$(t),a=$.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),$.removeData(t,"datepicker"),"input"===e?(a.append.remove(),a.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(),u===a&&(u=null,this._curInst=null))},_enableDatepicker:function(e){var t,i=$(e),a=$.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=$.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=$(e),a=$.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=$.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return $.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var a,s,n=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?$.extend({},$.datepicker._defaults):n?"all"===e?$.extend({},n.settings):this._get(n,e):null;a=e||{},"string"==typeof e&&((a={})[e]=i),n&&(this._curInst===n&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),e=this._getMinMaxDate(n,"min"),i=this._getMinMaxDate(n,"max"),_(n.settings,a),null!==e&&void 0!==a.dateFormat&&void 0===a.minDate&&(n.settings.minDate=this._formatDate(n,e)),null!==i&&void 0!==a.dateFormat&&void 0===a.maxDate&&(n.settings.maxDate=this._formatDate(n,i)),"disabled"in a&&(a.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments($(t),n),this._autoSize(n),this._setDate(n,s),this._updateAlternate(n),this._updateDatepicker(n))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,a=$.datepicker._getInst(t.target),s=!0,n=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,$.datepicker._datepickerShowing)switch(t.keyCode){case 9:$.datepicker._hideDatepicker(),s=!1;break;case 13:return(i=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",a.dpDiv))[0]&&$.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,i[0]),(e=$.datepicker._get(a,"onSelect"))?(i=$.datepicker._formatDate(a),e.apply(a.input?a.input[0]:null,[i,a])):$.datepicker._hideDatepicker(),!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(a,"stepBigMonths"):-$.datepicker._get(a,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(a,"stepBigMonths"):+$.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&$.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&$.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,n?1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(a,"stepBigMonths"):-$.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,n?-1:1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(a,"stepBigMonths"):+$.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else 36===t.keyCode&&t.ctrlKey?$.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=$.datepicker._getInst(t.target);if($.datepicker._get(i,"constrainInput"))return e=$.datepicker._possibleChars($.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){t=$.datepicker._getInst(t.target);if(t.input.val()!==t.lastVal)try{$.datepicker.parseDate($.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,$.datepicker._getFormatConfig(t))&&($.datepicker._setDateFromField(t),$.datepicker._updateAlternate(t),$.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,a,s;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=$("input",t.parentNode)[0]),$.datepicker._isDisabledDatepicker(t)||$.datepicker._lastInput===t||(s=$.datepicker._getInst(t),$.datepicker._curInst&&$.datepicker._curInst!==s&&($.datepicker._curInst.dpDiv.stop(!0,!0),s&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0])),!1!==(i=(a=$.datepicker._get(s,"beforeShow"))?a.apply(t,[t,s]):{})&&(_(s.settings,i),s.lastVal=null,$.datepicker._lastInput=t,$.datepicker._setDateFromField(s),$.datepicker._inDialog&&(t.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(t),$.datepicker._pos[1]+=t.offsetHeight),e=!1,$(t).parents().each(function(){return!(e|="fixed"===$(this).css("position"))}),a={left:$.datepicker._pos[0],top:$.datepicker._pos[1]},$.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(s),a=$.datepicker._checkOffset(s,a,e),s.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":e?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),s.inline||(i=$.datepicker._get(s,"showAnim"),a=$.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}($(t))+1),$.datepicker._datepickerShowing=!0,$.effects&&$.effects.effect[i]?s.dpDiv.show(i,$.datepicker._get(s,"showOptions"),a):s.dpDiv[i||"show"](i?a:null),$.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),$.datepicker._curInst=s)))},_updateDatepicker:function(t){this.maxRows=4,(u=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),a=i[1],s=t.dpDiv.find("."+this._dayOverClass+" a"),n=$.datepicker._get(t,"onUpdateDatepicker");0<s.length&&f.apply(s.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<a&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",17*a+"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===$.datepicker._curInst&&$.datepicker._datepickerShowing&&$.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)),n&&n.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 a=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),n=t.input?t.input.outerWidth():0,r=t.input?t.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:$(document).scrollTop());return e.left-=this._get(t,"isRTL")?a-n:0,e.left-=i&&e.left===t.input.offset().left?$(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+r?$(document).scrollTop():0,e.left-=Math.min(e.left,e.left+a>o&&a<o?Math.abs(e.left+a-o):0),e.top-=Math.min(e.top,e.top+s>l&&s<l?Math.abs(s+r):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||$.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=$(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,a=this._curInst;!a||t&&a!==$.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(a,"showAnim"),i=this._get(a,"duration"),t=function(){$.datepicker._tidyDialog(a)},$.effects&&($.effects.effect[e]||$.effects[e])?a.dpDiv.hide(e,$.datepicker._get(a,"showOptions"),i,t):a.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(a,"onClose"))&&t.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;$.datepicker._curInst&&(e=$(t.target),t=$.datepicker._getInst(e[0]),(e[0].id===$.datepicker._mainDivId||0!==e.parents("#"+$.datepicker._mainDivId).length||e.hasClass($.datepicker.markerClassName)||e.closest("."+$.datepicker._triggerClass).length||!$.datepicker._datepickerShowing||$.datepicker._inDialog&&$.blockUI)&&(!e.hasClass($.datepicker.markerClassName)||$.datepicker._curInst===t)||$.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var a=$(t),t=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(t,e,i),this._updateDatepicker(t))},_gotoToday:function(t){var e=$(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var a=$(t),t=this._getInst(a[0]);t["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(a)},_selectDay:function(t,e,i,a){var s=$(t);$(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=parseInt($("a",a).attr("data-date")),s.selectedMonth=s.currentMonth=e,s.selectedYear=s.currentYear=i,this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(t){t=$(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=$(t),t=this._getInst(i[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,a=this._get(t,"altField");a&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),$(document).find(a).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]}
vendor: 12,630 bytes, line 9
9,iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,s,t){if(null==e||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;for(var i,a,n,r=0,o=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,o="string"!=typeof o?o:(new Date).getFullYear()%100+parseInt(o,10),l=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,h=(t?t.dayNames:null)||this._defaults.dayNames,c=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,d=(t?t.monthNames:null)||this._defaults.monthNames,u=-1,p=-1,g=-1,f=-1,_=!1,v=function(t){t=k+1<e.length&&e.charAt(k+1)===t;return t&&k++,t},m=function(t){var e=v(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}"),e=s.substring(r).match(e);if(!e)throw"Missing number at position "+r;return r+=e[0].length,parseInt(e[0],10)},b=function(t,e,i){var a=-1,e=$.map(v(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if($.each(e,function(t,e){var i=e[1];if(s.substr(r,i.length).toLowerCase()===i.toLowerCase())return a=e[0],r+=i.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+r},y=function(){if(s.charAt(r)!==e.charAt(k))throw"Unexpected literal at position "+r;r++},k=0;k<e.length;k++)if(_)"'"!==e.charAt(k)||v("'")?y():_=!1;else switch(e.charAt(k)){case"d":g=m("d");break;case"D":b("D",l,h);break;case"o":f=m("o");break;case"m":p=m("m");break;case"M":p=b("M",c,d);break;case"y":u=m("y");break;case"@":u=(n=new Date(m("@"))).getFullYear(),p=n.getMonth()+1,g=n.getDate();break;case"!":u=(n=new Date((m("!")-this._ticksTo1970)/1e4)).getFullYear(),p=n.getMonth()+1,g=n.getDate();break;case"'":v("'")?y():_=!0;break;default:y()}if(r<s.length&&(a=s.substr(r),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===u?u=(new Date).getFullYear():u<100&&(u+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u<=o?0:-100)),-1<f)for(p=1,g=f;;){if(g<=(i=this._getDaysInMonth(u,p-1)))break;p++,g-=i}if((n=this._daylightSavingAdjust(new Date(u,p-1,g))).getFullYear()!==u||n.getMonth()+1!==p||n.getDate()!==g)throw"Invalid date";return n},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 a(t,e,i){var a=""+e;if(c(t))for(;a.length<i;)a="0"+a;return a}function s(t,e,i,a){return(c(t)?a:i)[e]}var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(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){t=n+1<e.length&&e.charAt(n+1)===t;return t&&n++,t},d="",u=!1;if(t)for(n=0;n<e.length;n++)if(u)"'"!==e.charAt(n)||c("'")?d+=e.charAt(n):u=!1;else switch(e.charAt(n)){case"d":d+=a("d",t.getDate(),2);break;case"D":d+=s("D",t.getDay(),r,o);break;case"o":d+=a("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=a("m",t.getMonth()+1,2);break;case"M":d+=s("M",t.getMonth(),l,h);break;case"y":d+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?d+="'":u=!0;break;default:d+=e.charAt(n)}return d},_possibleChars:function(e){for(var t="",i=!1,a=function(t){t=s+1<e.length&&e.charAt(s+1)===t;return t&&s++,t},s=0;s<e.length;s++)if(i)"'"!==e.charAt(s)||a("'")?t+=e.charAt(s):i=!1;else switch(e.charAt(s)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":a("'")?t+="'":i=!0;break;default:t+=e.charAt(s)}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"),a=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),n=s,r=this._getFormatConfig(t);try{n=this.parseDate(i,a,r)||s}catch(t){a=e?"":a}t.selectedDay=n.getDate(),t.drawMonth=t.selectedMonth=n.getMonth(),t.drawYear=t.selectedYear=n.getFullYear(),t.currentDay=a?n.getDate():0,t.currentMonth=a?n.getMonth():0,t.currentYear=a?n.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(o,t,e){var i,a,t=null==t||""===t?e:"string"==typeof t?function(t){try{return $.datepicker.parseDate($.datepicker._get(o,"dateFormat"),t,$.datepicker._getFormatConfig(o))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?$.datepicker._getDate(o):null)||new Date,i=e.getFullYear(),a=e.getMonth(),s=e.getDate(),n=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,r=n.exec(t);r;){switch(r[2]||"d"){case"d":case"D":s+=parseInt(r[1],10);break;case"w":case"W":s+=7*parseInt(r[1],10);break;case"m":case"M":a+=parseInt(r[1],10),s=Math.min(s,$.datepicker._getDaysInMonth(i,a));break;case"y":case"Y":i+=parseInt(r[1],10),s=Math.min(s,$.datepicker._getDaysInMonth(i,a))}r=n.exec(t)}return new Date(i,a,s)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(a=new Date).setDate(a.getDate()+i),a):new Date(t.getTime());return(t=t&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var a=!e,s=t.selectedMonth,n=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(),s===t.selectedMonth&&n===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(a?"":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(){$.datepicker._adjustDate(i,-e,"M")},next:function(){$.datepicker._adjustDate(i,+e,"M")},hide:function(){$.datepicker._hideDatepicker()},today:function(){$.datepicker._gotoToday(i)},selectDay:function(){return $.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return $.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return $.datepicker._selectMonthYear(i,this,"Y"),!1}};$(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,a,s,n,r,o,l,h,c,d,u,p,g,f,_,v,m,b,y,k,D,w,x,C,M,I,T,S,N,A,F,Y=new Date,E=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())),P=this._get(t,"isRTL"),H=this._get(t,"showButtonPanel"),O=this._get(t,"hideIfNoPrevNext"),W=this._get(t,"navigationAsDateFormat"),L=this._getNumberOfMonths(t),K=this._get(t,"showCurrentAtPos"),Y=this._get(t,"stepMonths"),j=1!==L[0]||1!==L[1],R=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),U=this._getMinMaxDate(t,"min"),q=this._getMinMaxDate(t,"max"),z=t.drawMonth-K,B=t.drawYear;if(z<0&&(z+=12,B--),q)for(e=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-L[0]*L[1]+1,q.getDate())),e=U&&e<U?U:e;this._daylightSavingAdjust(new Date(B,z,1))>e;)--z<0&&(z=11,B--);for(t.drawMonth=z,t.drawYear=B,K=this._get(t,"prevText"),K=W?this.formatDate(K,this._daylightSavingAdjust(new Date(B,z-Y,1)),this._getFormatConfig(t)):K,i=this._canAdjustMonth(t,-1,B,z)?$("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:K}).append($("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(P?"e":"w")).text(K))[0].outerHTML:O?"":$("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:K}).append($("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(P?"e":"w")).text(K))[0].outerHTML,K=this._get(t,"nextText"),K=W?this.formatDate(K,this._daylightSavingAdjust(new Date(B,z+Y,1)),this._getFormatConfig(t)):K,a=this._canAdjustMonth(t,1,B,z)?$("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:K}).append($("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(P?"w":"e")).text(K))[0].outerHTML:O?"":$("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:K}).append($("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(P?"w":"e")).text(K))[0].outerHTML,Y=this._get(t,"currentText"),O=this._get(t,"gotoCurrent")&&t.currentDay?R:E,Y=W?this.formatDate(Y,O,this._getFormatConfig(t)):Y,K="",t.inline||(K=$("<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),W="",H&&(W=$("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(P?K:"").append(this._isInRange(t,O)?$("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(Y):"").append(P?"":K)[0].outerHTML),s=parseInt(this._get(t,"firstDay"),10),s=isNaN(s)?0:s,n=this._get(t,"showWeek"),r=this._get(t,"dayNames"),o=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),h=this._get(t,"monthNamesShort"),c=this._get(t,"beforeShowDay"),d=this._get(t,"showOtherMonths"),u=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),g="",_=0;_<L[0];_++){for(v="",this.maxRows=4,m=0;m<L[1];m++){if(b=this._daylightSavingAdjust(new Date(B,z,t.selectedDay)),y=" ui-corner-all",k="",j){if(k+="<div class='ui-datepicker-group",1<L[1])switch(m){case 0:k+=" ui-datepicker-group-first",y=" ui-corner-"+(P?"right":"left");break;case L[1]-1:k+=" ui-datepicker-group-last",y=" ui-corner-"+(P?"left":"right");break;default:k+=" ui-datepicker-group-middle",y=""}k+="'>"}for(k+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+y+"'>"+(/all|left/.test(y)&&0===_?P?a:i:"")+(/all|right/.test(y)&&0===_?P?i:a:"")+this._generateMonthYearHeader(t,z,B,U,q,0<_||0<m,l,h)+"</div><table class='ui-datepicker-calendar'><thead><tr>",D=n?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",f=0;f<7;f++)D+="<th scope='col'"+(5<=(f+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+r[w=(f+s)%7]+"'>"+o[w]+"</span></th>";for(k+=D+"</tr></thead><tbody>",C=this._getDaysInMonth(B,z),B===t.selectedYear&&z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,C)),x=(this._getFirstDayOfMonth(B,z)-s+7)%7,C=Math.ceil((x+C)/7),M=j&&this.maxRows>C?this.maxRows:C,this.maxRows=M,I=this._daylightSavingAdjust(new Date(B,z,1-x)),T=0;T<M;T++){for(k+="<tr>",S=n?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(I)+"</td>":"",f=0;f<7;f++)N=c?c.apply(t.input?t.input[0]:null,[I]):[!0,""],F=(A=I.getMonth()!==z)&&!u||!N[0]||U&&I<U||q&&q<I,S+="<td class='"+(5<=(f+s+6)%7?" ui-datepicker-week-end":"")+(A?" ui-datepicker-other-month":"")+(I.getTime()===b.getTime()&&z===t.selectedMonth&&t._keyEvent||p.getTime()===I.getTime()&&p.getTime()===b.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(A&&!d?"":" "+N[1]+(I.getTime()===R.getTime()?" "+this._currentClass:"")+(I.getTime()===E.getTime()?" ui-datepicker-today":""))+"'"+(A&&!d||!N[2]?"":" title='"+N[2].replace(/'/g,"'")+"'")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(A&&!d?" ":F?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===E.getTime()?" ui-state-highlight":"")+(I.getTime()===R.getTime()?" ui-state-active":"")+(A?" ui-priority-secondary":"")+"' href='#' aria-current='"+(I.getTime()===R.getTime()?"true":"false")+"' data-date='"+I.getDate()+"'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);k+=S+"</tr>"}11<++z&&(z=0,B++),v+=k+="</tbody></table>"+(j?"</div>"+(0<L[0]&&m===L[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}g+=v}return g+=W,t._keyEvent=!1,g}
vendor: 6,301 bytes, line 9
9,_generateMonthYearHeader:function(t,e,i,a,s,n,r,o){var l,h,c,d,u,p,g=this._get(t,"changeMonth"),f=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),v=this._get(t,"selectMonthLabel"),m=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",y="";if(n||!g)y+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=a&&a.getFullYear()===i,h=s&&s.getFullYear()===i,y+="<select class='ui-datepicker-month' aria-label='"+v+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=a.getMonth())&&(!h||c<=s.getMonth())&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+o[c]+"</option>");y+="</select>"}if(_||(b+=y+(!n&&g&&f?"":" ")),!t.yearshtml)if(t.yearshtml="",n||!f)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(r=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),u=(v=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(t)?d:t})(r[0]),p=Math.max(u,v(r[1]||"")),u=a?Math.max(u,a.getFullYear()):u,p=s?Math.min(p,s.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+m+"' data-handler='selectYear' data-event='change'>";u<=p;u++)t.yearshtml+="<option value='"+u+"'"+(u===i?" selected='selected'":"")+">"+u+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),_&&(b+=(!n&&g&&f?"":" ")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var a=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(a,s))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(a,s,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),e=i&&e<i?i:e;return t&&t<e?t:e},_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){t=this._get(t,"numberOfMonths");return null==t?[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()},_canAdjustMonth:function(t,e,i,a){var s=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,a+(e<0?e:s[0]*s[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),s=null,n=null,r=this._get(t,"yearRange");return r&&(t=r.split(":"),r=(new Date).getFullYear(),s=parseInt(t[0],10),n=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(s+=r),t[1].match(/[+\-].*/)&&(n+=r)),(!i||e.getTime()>=i.getTime())&&(!a||e.getTime()<=a.getTime())&&(!s||e.getFullYear()>=s)&&(!n||e.getFullYear()<=n)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="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,a){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(a,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).on("mousedown",$.datepicker._checkExternalClick),$.datepicker.initialized=!0),0===$("#"+$.datepicker._mainDivId).length&&$("body").append($.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]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)})},$.datepicker=new p,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.13.1";var v;$.datepicker,$.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return i=!(i=i||e.body).nodeName?e.body:i};$.widget("ui.tabs",{version:"1.13.1",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:(v=/#.*$/,function(t){var e=t.href.replace(v,""),i=location.href.replace(v,"");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=$.uniqueSort(t.disabled.concat($.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=$(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,a=location.hash.substring(1);return null===i&&(a&&this.tabs.each(function(t,e){if($(e).attr("aria-controls")===a)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):$()}}
vendor: 9,424 bytes, line 9
9,_tabKeydown:function(t){var e=$($.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),a=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:i++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:a=!1,i--;break;case $.ui.keyCode.END:i=this.anchors.length-1;break;case $.ui.keyCode.HOME:i=0;break;case $.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case $.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,a),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===$.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===$.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===$.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var i=this.tabs.length-1;for(;-1!==$.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._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)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=$.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!$.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=$()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=$()),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){$(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){$(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 $("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=$(),this.anchors.each(function(t,e){var i,a,s,n=$(e).uniqueId().attr("id"),r=$(e).closest("li"),o=r.attr("aria-controls");l._isLocal(e)?(s=(i=e.hash).substring(1),a=l.element.find(l._sanitizeSelector(i))):(s=r.attr("aria-controls")||$({}).uniqueId()[0].id,(a=l.element.find(i="#"+s)).length||(a=l._createPanel(s)).insertAfter(l.panels[t-1]||l.tablist),a.attr("aria-live","polite")),a.length&&(l.panels=l.panels.add(a)),o&&r.data("ui-tabs-aria-controls",o),r.attr({"aria-controls":s,"aria-labelledby":n}),a.attr("aria-labelledby",n)}),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 $("<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=$(e),!0===t||-1!==$.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&&$.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=$(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=$(this).outerHeight(!0)}),this.panels.each(function(){$(this).height(Math.max(0,i-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,$(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,a=$(t.currentTarget).closest("li"),s=a[0]===i[0],n=s&&e.collapsible,r=n?$():this._getPanelForTab(a),o=i.length?this._getPanelForTab(i):$(),i={oldTab:i,oldPanel:o,newTab:n?$():a,newPanel:r};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!n&&this.tabs.index(a),this.active=s?$():a,this.xhr&&this.xhr.abort(),o.length||r.length||$.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(a),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,a=e.newPanel,s=e.oldPanel;function n(){i.running=!1,i._trigger("activate",t,e)}function r(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&i.options.show?i._show(a,i.options.show,n):(a.show(),n())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),r()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===$(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=!t.length?this.active:t).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:$.noop}))},_findActive:function(t){return!1===t?$():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+$.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(){$.data(this,"ui-tabs-destroy")?$(this).remove():$(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=$(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)?$.map(t,function(t){return t!==i?t:null}):$.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!==$.inArray(t,e))return;e=Array.isArray(e)?$.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,a){t=this._getIndex(t);function s(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(i,"ui-tabs-loading"),r.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr}var n=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),r=this._getPanelForTab(i),o={tab:i,panel:r};this._isLocal(t[0])||(this.xhr=$.ajax(this._ajaxSettings(t,a,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(t,e,
9i){setTimeout(function(){r.html(t),n._trigger("load",a,o),s(i,e)},1)}).fail(function(t,e){setTimeout(function(){s(t,e)},1)})))},_ajaxSettings:function(t,i,a){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return s._trigger("beforeLoad",i,$.extend({jqXHR:t,ajaxSettings:e},a))}}},_getPanelForTab:function(t){t=$(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==$.uiBackCompat&&$.widget("ui.tabs",$.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});$.ui.tabs}); 10/** 11 * Created by ulbrich on 08.11.2016. 12 */ 13 14/*** 15 * maps for displaying the branches gm_* 16 *********/ 17var gm_map, gm_autocomplete, gm_infoWindow, gm_currentPlaceMarker, gm_directionsService, gm_directionsRenderer, gm_geocoder, gm_sourceAddress = ""; 18var gm_branches = [], gm_markers = []; 19 20function gm_init() { 21 if (!$(".maps .mapsContainer").length) 22 return false; 23 24 25 26 //initialization of the actual map 27 gm_map = new google.maps.Map(document.querySelector(".maps .mapsContainer"), { 28 zoom: 10, 29 //center: {lat: 51.65583633917826, lng: 7.42384548437498}, 30 center: {lat: 51.67469116824808, lng: 6.8265930175781575}, 31 mapTypeId: google.maps.MapTypeId.ROADMAP, 32 scrollwheel: false 33 }); 34 gm_directionsService = new google.maps.DirectionsService(); 35 36 gm_geocoder = new google.maps.Geocoder(); 37 38 //create a branch object for each option available in the select menu 39 $(".maps .search select option").each(function () { 40 if (!$(this).val()) 41 return true; 42 43 gm_branches.push({ 44 uid: $(this).val(), 45 infoWindowContent: "<div class='infoWindow'>" + $(".maps .infoWindows div[data-id='" + $(this).val() + "']").html() + "</div>", 46 location: new google.maps.LatLng( 47 $(this).data("lat"), 48 $(this).data("lon") 49 ), 50 marker: null, 51 name: $(this).html() 52 }); 53 }); 54 55 $.each(gm_branches, function(key) { 56 gm_createMarker(key); 57 }); 58 59 google.maps.event.addListener(gm_map, 'click', function() { 60 if (gm_infoWindow !== undefined) 61 gm_infoWindow.close(); 62 }); 63 64 65 //initialization of the input fields 66 67 //text field gets an auto complete function from the google maps api 68 gm_autocomplete = new google.maps.places.Autocomplete(document.querySelector(".maps .search input")); 69 gm_autocomplete.bindTo('bounds', gm_map); 70 71 gm_autocomplete.addListener("place_changed", gm_locationInputChanged); 72 73 $(".maps .search input").attr('disabled', false); 74 //On select item changed: 75 // Finds the chosen branch an jumps to it 76 $(".maps .search select").attr('disabled', false); 77 $(".maps .search select").change(gm_branchSelectionChanged); 78 79 //gps button click event 80 // tries to get the current location via geolocation api 81 // jumps to the nearest branch on success 82 $(".maps .search .gps").click(gm_geoLocationActivated); 83 84 85 var selectedBranch = $(".maps .search select").val(); 86 if (selectedBranch) { 87 selectedBranch = gm_getBranchKey(selectedBranch); 88 google.maps.event.trigger(gm_branches[selectedBranch].marker, 'click'); 89 } 90 91 92} 93 94function gm_branchSelectionChanged() { 95 var branchKey = gm_getBranchKey($(".maps .search select").val()); 96 97 if (branchKey !== null) 98 google.maps.event.trigger(gm_branches[branchKey].marker, 'click'); 99} 100 101function gm_geoLocationActivated() { 102 if (navigator.geolocation) { 103 navigator.geolocation.getCurrentPosition(function (pos) { 104 var curLocation = new google.maps.LatLng(pos.coords.latitude, pos.coords.longitude), curKey = null; 105 106 gm_geocoder.geocode({location: curLocation}, gm_geoLocationActivatedCallback); 107 }, gm_geoLocationDied); 108 } 109 else { 110 gm_geoLocationDied(); 111 } 112} 113function gm_geoLocationDied() { 114 alert("Wir konnten Ihre Position leider nicht ermitteln. Bitte tragen Sie Ihren Standort ein!"); 115 $(".maps .search input").focus(); 116} 117function gm_geoLocationActivatedCallback(result, status) { 118 if (status == "OK") { 119 gm_sourceAddress = result[0].formatted_address; 120 $(".maps .search input").val(result[0].formatted_address); 121 122 var branches = $(".maps .search select"); 123 //get nearest branch 124 var curLocation = result[0].geometry.location, 125 key = gm_getNearestBranch(curLocation); 126 127 branches.val(gm_branches[key].uid); 128 google.maps.event.trigger(gm_branches[key].marker, 'click'); 129 } 130} 131 132function gm_locationInputChanged() { 133 var srcPlace = gm_autocomplete.getPlace(), 134 branches = $(".maps .search select"); 135 136 gm_sourceAddress = srcPlace.formatted_address; 137 138 //get nearest branch 139 var curLocation = srcPlace.geometry.location, 140 key = gm_getNearestBranch(curLocation); 141 142 branches.val(gm_branches[key].uid); 143 google.maps.event.trigger(gm_branches[key].marker, 'click'); 144} 145 146 147/** 148 * Creates a marker for the branch with the given key from gm_branches 149 */ 150function gm_createMarker(key) { 151 //Create marker 152 var marker = new google.maps.Marker({ 153 position: gm_branches[key].location, 154 map: gm_map, 155 title: "Reifen Stiebling GmbH - " + gm_branches[key].name 156 });
157 158 //and add listener for opening the info window 159 marker.addListener('click', function () { 160 if (gm_infoWindow !== undefined) 161 gm_infoWindow.close(); 162 163 gm_infoWindow = new google.maps.InfoWindow({ 164 content: gm_branches[key].infoWindowContent, 165 disableAutoPan: (gm_sourceAddress !== "") //only auto pen this info window if the source address is not set 166 }); 167 168 gm_infoWindow.open(gm_map, this); 169 170 //Initialize the "Route planen" Button of this InfoWindow 171 $(".infoWindow .planRoute").click(function () { 172 $(".maps .search select").val($(this).data("id")); 173 if (gm_sourceAddress == "") 174 $(".maps .search .gps").trigger("click"); 175 else 176 gm_calcRoute(); 177 }); 178 }); 179 180 //save marker 181 gm_markers.push(marker); 182 gm_branches[key].marker = marker; 183} 184 185function gm_getBranchKey(uid) { 186 var branchKey = null; 187 188 $.each(gm_branches, function(key) { 189 if (gm_branches[key].uid == uid) { 190 branchKey = key; 191 return false; 192 } 193 }); 194 195 return branchKey; 196} 197 198/** 199 * Calculates the branch with the shortest distance to the given location 200 * @param currentLocation 201 * @returns {*} key for the calculated branch 202 */ 203function gm_getNearestBranch(currentLocation) { 204 var curKey = null, curDist = Number.MAX_VALUE, shortestDist = Number.MAX_VALUE; 205 206 //Loop over each brand to find the nearest one 207 $.each(gm_branches, function (key) { 208 //calculate the distance between the current position and the current branch 209 curDist = google.maps.geometry.spherical.computeDistanceBetween( 210 currentLocation, 211 gm_branches[key].location); 212 //if this distance is shorter then the temporarily saved one: save it 213 if (curDist < shortestDist) { 214 shortestDist = curDist; 215 curKey = key; 216 } 217 }); 218 219 return curKey; 220} 221 222 223 224 225 226/*** 227 * contact forms con_* 228 *********/ 229$(function () { 230 231 //On submition of the preview contact form 232 $(".contactPreview input[name=tiresStored]").change(function (e) { 233 var form = $(".contactPreview form"); 234 235 form.find(".submit").hide(); 236 if (form.find("input[name=tiresStored]:checked").val() == 1) { 237 e.preventDefault(); 238 form.find(".redirect").show(); 239 } 240 else { 241 localStorage.setItem('selectedBranch', form.find("select[name=branch]").val()); 242 form.find(".form-submit").show(); 243 } 244 }); 245 246 if ($('select#powermail_field_filiale')) { 247 $('select#powermail_field_filiale').val(localStorage.getItem('selectedBranch')); 248 } 249 250 var con_content = $(".contact .content"); 251 if (con_content) { 252 con_content.find("input, textarea").focusout(function () { 253 if (con_validate(con_content)) 254 con_content.find("input[type=submit]").removeClass("disabled"); 255 else 256 con_content.find("input[type=submit]").addClass("disabled"); 257 }); 258 con_content.find("form").submit(function (e) { 259 if (!con_validate(con_content)) 260 e.preventDefault(); 261 }); 262 } 263}); 264 265 266function con_validate(content) { 267 var isValid = true; 268 269 if (content.find("input[name=date]").val().trim() == "") 270 isValid = false; 271 if (content.find("input[name=time]").val().trim() == "") 272 isValid = false; 273 if (content.find("input[name=name]").val().trim() == "") 274 isValid = false; 275 if (content.find("input[name=phone]").val().trim() == "") 276 isValid = false; 277 if (content.find("input[name=email]").val().trim() == "") 278 isValid = false; 279 280 return isValid; 281} 282(function ($, undefined) { 283 'use strict'; 284 var defaults = { 285 item: 1, 286 autoWidth: false, 287 slideMove: 1, 288 slideMargin: 10, 289 addClass: '', 290 mode: 'slide', 291 useCSS: true, 292 cssEasing: 'ease', //'cubic-bezier(0.25, 0, 0.25, 1)', 293 easing: 'linear', //'for jquery animation',// 294 speed: 400, //ms'
295 auto: false, 296 pauseOnHover: false, 297 loop: false, 298 slideEndAnimation: true, 299 pause: 2000, 300 keyPress: false, 301 controls: true, 302 prevHtml: '', 303 nextHtml: '', 304 rtl: false, 305 adaptiveHeight: false, 306 vertical: false, 307 verticalHeight: 500, 308 vThumbWidth: 100, 309 thumbItem: 10, 310 pager: true, 311 gallery: false, 312 galleryMargin: 5, 313 thumbMargin: 5, 314 currentPagerPosition: 'middle', 315 enableTouch: true, 316 enableDrag: true, 317 freeMove: true, 318 swipeThreshold: 40, 319 responsive: [], 320 arrowPos: 'inside'
vendor: 5,790 bytes, lines 320-467
320, 321 /* jshint ignore:start */ 322 onBeforeStart: function ($el) {}, 323 onSliderLoad: function ($el) {}, 324 onBeforeSlide: function ($el, scene) {}, 325 onAfterSlide: function ($el, scene) {}, 326 onBeforeNextSlide: function ($el, scene) {}, 327 onBeforePrevSlide: function ($el, scene) {} 328 /* jshint ignore:end */ 329 }; 330 $.fn.lightSlider = function (options) { 331 if (this.length === 0) { 332 return this; 333 } 334 335 if (this.length > 1) { 336 this.each(function () { 337 $(this).lightSlider(options); 338 }); 339 return this; 340 } 341 342 var plugin = {}, 343 settings = $.extend(true, {}, defaults, options), 344 settingsTemp = {}, 345 $el = this; 346 plugin.$el = this; 347 348 if (settings.mode === 'fade') { 349 settings.vertical = false; 350 } 351 var $children = $el.children(), 352 windowW = $(window).width(), 353 breakpoint = null, 354 resposiveObj = null, 355 length = 0, 356 w = 0, 357 on = false, 358 elSize = 0, 359 $slide = '', 360 scene = 0, 361 property = (settings.vertical === true) ? 'height' : 'width', 362 gutter = (settings.vertical === true) ? 'margin-bottom' : 'margin-right', 363 slideValue = 0, 364 pagerWidth = 0, 365 slideWidth = 0, 366 thumbWidth = 0, 367 interval = null, 368 isTouch = ('ontouchstart' in document.documentElement); 369 var refresh = {}; 370 371 refresh.chbreakpoint = function () { 372 windowW = $(window).width(); 373 if (settings.responsive.length) { 374 var item; 375 if (settings.autoWidth === false) { 376 item = settings.item; 377 } 378 if (windowW < settings.responsive[0].breakpoint) { 379 for (var i = 0; i < settings.responsive.length; i++) { 380 if (windowW < settings.responsive[i].breakpoint) { 381 breakpoint = settings.responsive[i].breakpoint; 382 resposiveObj = settings.responsive[i]; 383 } 384 } 385 } 386 if (typeof resposiveObj !== 'undefined' && resposiveObj !== null) { 387 for (var j in resposiveObj.settings) { 388 if (resposiveObj.settings.hasOwnProperty(j)) { 389 if (typeof settingsTemp[j] === 'undefined' || settingsTemp[j] === null) { 390 settingsTemp[j] = settings[j]; 391 } 392 settings[j] = resposiveObj.settings[j]; 393 } 394 } 395 } 396 if (!$.isEmptyObject(settingsTemp) && windowW > settings.responsive[0].breakpoint) { 397 for (var k in settingsTemp) { 398 if (settingsTemp.hasOwnProperty(k)) { 399 settings[k] = settingsTemp[k]; 400 } 401 } 402 } 403 if (settings.autoWidth === false) { 404 if (slideValue > 0 && slideWidth > 0) { 405 if (item !== settings.item) { 406 scene = Math.round(slideValue / ((slideWidth + settings.slideMargin) * settings.slideMove)); 407 } 408 } 409 } 410 } 411 }; 412 413 refresh.calSW = function () { 414 if (settings.autoWidth === false) { 415 slideWidth = (elSize - ((settings.item * (settings.slideMargin)) - settings.slideMargin)) / settings.item; 416 } 417 }; 418 419 refresh.calWidth = function (cln) { 420 var ln = cln === true ? $slide.find('.lslide').length : $children.length; 421 if (settings.autoWidth === false) { 422 w = ln * (slideWidth + settings.slideMargin); 423 } else { 424 w = 0; 425 for (var i = 0; i < ln; i++) { 426 w += (parseInt($children.eq(i).width()) + settings.slideMargin); 427 } 428 } 429 return w; 430 }; 431 plugin = { 432 doCss: function () { 433 var support = function () { 434 var transition = ['transition', 'MozTransition', 'WebkitTransition', 'OTransition', 'msTransition', 'KhtmlTransition']; 435 var root = document.documentElement; 436 for (var i = 0; i < transition.length; i++) { 437 if (transition[i] in root.style) { 438 return true; 439 } 440 } 441 }; 442 if (settings.useCSS && support()) { 443 return true; 444 } 445 return false; 446 }, 447 keyPress: function () { 448 if (settings.keyPress) { 449 $(document).on('keyup.lightslider', function (e) { 450 if (!$(':focus').is('input, textarea')) { 451 if (e.preventDefault) { 452 e.preventDefault(); 453 } else { 454 e.returnValue = false; 455 } 456 if (e.keyCode === 37) { 457 $el.goToPrevSlide(); 458 } else if (e.keyCode === 39) { 459 $el.goToNextSlide(); 460 } 461 } 462 }); 463 } 464 }, 465 controls: function () { 466 if (settings.controls) { 467
vendor: 13,532 bytes, lines 467-748
467var changePos = ""; 468 var addClick; 469 var domElem = '<div class="lSAction"><a class="lSPrev">' + settings.prevHtml + '</a><a class="lSNext">' + settings.nextHtml + '</a></div>'; 470 if (settings.arrowPos != 'inside') { 471 changePos += $el.parent().after(domElem); 472 addClick = $slide.parent(); 473 } else { 474 changePos += $el.after(domElem); 475 addClick = $slide; 476 } 477 changePos; 478 if (!settings.autoWidth) { 479 if (length <= settings.item) { 480 $slide.find('.lSAction').hide(); 481 } 482 } else { 483 if (refresh.calWidth(false) < elSize) { 484 $slide.find('.lSAction').hide(); 485 } 486 } 487 addClick.find('.lSAction a').on('click', function (e) { 488 if (e.preventDefault) { 489 e.preventDefault(); 490 } else { 491 e.returnValue = false; 492 } 493 if ($(this).attr('class') === 'lSPrev') { 494 $el.goToPrevSlide(); 495 } else { 496 $el.goToNextSlide(); 497 } 498 return false; 499 }); 500 } 501 }, 502 initialStyle: function () { 503 var $this = this; 504 if (settings.mode === 'fade') { 505 settings.autoWidth = false; 506 settings.slideEndAnimation = false; 507 } 508 if (settings.auto) { 509 settings.slideEndAnimation = false; 510 } 511 if (settings.autoWidth) { 512 settings.slideMove = 1; 513 settings.item = 1; 514 } 515 if (settings.loop) { 516 settings.slideMove = 1; 517 settings.freeMove = false; 518 } 519 settings.onBeforeStart.call(this, $el); 520 refresh.chbreakpoint(); 521 $el.addClass('lightSlider').wrap('<div class="lSSlideOuter ' + settings.addClass + '"><div class="lSSlideWrapper"></div></div>'); 522 $slide = $el.parent('.lSSlideWrapper'); 523 if (settings.rtl === true) { 524 $slide.parent().addClass('lSrtl'); 525 } 526 if (settings.vertical) { 527 $slide.parent().addClass('vertical'); 528 elSize = settings.verticalHeight; 529 $slide.css('height', elSize + 'px'); 530 } else { 531 elSize = $el.outerWidth(); 532 } 533 $children.addClass('lslide'); 534 if (settings.loop === true && settings.mode === 'slide') { 535 refresh.calSW(); 536 refresh.clone = function () { 537 if (refresh.calWidth(true) > elSize) { 538 /**/ 539 var tWr = 0, 540 tI = 0; 541 for (var k = 0; k < $children.length; k++) { 542 tWr += (parseInt($el.find('.lslide').eq(k).width()) + settings.slideMargin); 543 tI++; 544 if (tWr >= (elSize + settings.slideMargin)) { 545 break; 546 } 547 } 548 var tItem = settings.autoWidth === true ? tI : settings.item; 549 550 /**/ 551 if (tItem < $el.find('.clone.left').length) { 552 for (var i = 0; i < $el.find('.clone.left').length - tItem; i++) { 553 $children.eq(i).remove(); 554 } 555 } 556 if (tItem < $el.find('.clone.right').length) { 557 for (var j = $children.length - 1; j > ($children.length - 1 - $el.find('.clone.right').length); j--) { 558 scene--; 559 $children.eq(j).remove(); 560 } 561 } 562 /**/ 563 for (var n = $el.find('.clone.right').length; n < tItem; n++) { 564 $el.find('.lslide').eq(n).clone().removeClass('lslide').addClass('clone right').appendTo($el); 565 scene++; 566 } 567 for (var m = $el.find('.lslide').length - $el.find('.clone.left').length; m > ($el.find('.lslide').length - tItem); m--) { 568 $el.find('.lslide').eq(m - 1).clone().removeClass('lslide').addClass('clone left').prependTo($el); 569 } 570 $children = $el.children(); 571 } else { 572 if ($children.hasClass('clone')) { 573 $el.find('.clone').remove(); 574 $this.move($el, 0); 575 } 576 } 577 }; 578 refresh.clone(); 579 } 580 refresh.sSW = function () { 581 length = $children.length; 582 if (settings.rtl === true && settings.vertical === false) { 583 gutter = 'margin-left'; 584 } 585 if (settings.autoWidth === false) { 586 $children.css(property, slideWidth + 'px'); 587 } 588 $children.css(gutter, settings.slideMargin + 'px'); 589 w = refresh.calWidth(false); 590 $el.css(property, w + 'px'); 591 if (settings.loop === true && settings.mode === 'slide') { 592 if (on === false) { 593 scene = $el.find('.clone.left').length; 594 } 595 } 596 }; 597 refresh.calL = function () { 598 $children = $el.children(); 599 length = $children.length; 600 }; 601 if (this.doCss()) { 602 $slide.addClass('usingCss'); 603 } 604 refresh.calL(); 605 if (settings.mode === 'slide') { 606 refresh.calSW(); 607 refresh.sSW(); 608 if (settings.loop === true) { 609 slideValue = $this.slideValue(); 610 this.move($el, slideValue); 611 } 612 if (settings.vertical === false) { 613 this.setHeight($el, false); 614 } 615 616 } else { 617 this.setHeight($el, true); 618 $el.addClass('lSFade'); 619 if (!this.doCss()) { 620 $children.fadeOut(0); 621 $children.eq(scene).fadeIn(0); 622 } 623 } 624 if (settings.loop === true && settings.mode === 'slide') { 625 $children.eq(scene).addClass('active'); 626 } else { 627 $children.first().addClass('active'); 628 } 629 }, 630 pager: function () { 631 var $this = this; 632 refresh.createPager = function () { 633 thumbWidth = (elSize - ((settings.thumbItem * (settings.thumbMargin)) - settings.thumbMargin)) / settings.thumbItem; 634 var $children = $slide.find('.lslide'); 635 var length = $slide.find('.lslide').length; 636 var i = 0, 637 pagers = '', 638 v = 0; 639 for (i = 0; i < length; i++) { 640 if (settings.mode === 'slide') { 641 // calculate scene * slide value 642 if (!settings.autoWidth) { 643 v = i * ((slideWidth + settings.slideMargin) * settings.slideMove); 644 } else { 645 v += ((parseInt($children.eq(i).width()) + settings.slideMargin) * settings.slideMove); 646 } 647 } 648 var thumb = $children.eq(i * settings.slideMove).attr('data-thumb'); 649 if (settings.gallery === true) { 650 pagers += '<li style="width:100%;' + property + ':' + thumbWidth + 'px;' + gutter + ':' + settings.thumbMargin + 'px"><a href="#"><img src="' + thumb + '" /></a></li>'; 651 } else { 652 pagers += '<li><a href="#">' + (i + 1) + '</a></li>'; 653 } 654 if (settings.mode === 'slide') { 655 if ((v) >= w - elSize - settings.slideMargin) { 656 i = i + 1; 657 var minPgr = 2; 658 if (settings.autoWidth) { 659 pagers += '<li><a href="#">' + (i + 1) + '</a></li>'; 660 minPgr = 1; 661 } 662 if (i < minPgr) { 663 pagers = null; 664 $slide.parent().addClass('noPager'); 665 } else { 666 $slide.parent().removeClass('noPager'); 667 } 668 break; 669 } 670 } 671 } 672 var $cSouter = $slide.parent(); 673 $cSouter.find('.lSPager').html(pagers); 674 if (settings.gallery === true) { 675 if (settings.vertical === true) { 676 // set Gallery thumbnail width 677 $cSouter.find('.lSPager').css('width', settings.vThumbWidth + 'px'); 678 } 679 pagerWidth = (i * (settings.thumbMargin + thumbWidth)) + 0.5; 680 $cSouter.find('.lSPager').css({ 681 property: pagerWidth + 'px', 682 'transition-duration': settings.speed + 'ms' 683 }); 684 if (settings.vertical === true) { 685 $slide.parent().css('padding-right', (settings.vThumbWidth + settings.galleryMargin) + 'px'); 686 } 687 $cSouter.find('.lSPager').css(property, pagerWidth + 'px'); 688 } 689 var $pager = $cSouter.find('.lSPager').find('li'); 690 $pager.first().addClass('active'); 691 $pager.on('click', function () { 692 if (settings.loop === true && settings.mode === 'slide') { 693 scene = scene + ($pager.index(this) - $cSouter.find('.lSPager').find('li.active').index()); 694 } else { 695 scene = $pager.index(this); 696 } 697 $el.mode(false); 698 if (settings.gallery === true) { 699 $this.slideThumb(); 700 } 701 return false; 702 }); 703 }; 704 if (settings.pager) { 705 var cl = 'lSpg'; 706 if (settings.gallery) { 707 cl = 'lSGallery'; 708 } 709 $slide.after('<ul class="lSPager ' + cl + '"></ul>'); 710 var gMargin = (settings.vertical) ? 'margin-left' : 'margin-top'; 711 $slide.parent().find('.lSPager').css(gMargin, settings.galleryMargin + 'px'); 712 refresh.createPager(); 713 } 714 715 setTimeout(function () { 716 refresh.init(); 717 }, 0); 718 }, 719 setHeight: function (ob, fade) { 720 var obj = null, 721 $this = this; 722 if (settings.loop) { 723 obj = ob.children('.lslide ').first(); 724 } else { 725 obj = ob.children().first(); 726 } 727 var setCss = function () { 728 var tH = obj.outerHeight(), 729 tP = 0, 730 tHT = tH; 731 if (fade) { 732 tH = 0; 733 tP = ((tHT) * 100) / elSize; 734 } 735 ob.css({ 736 'height': tH + 'px', 737 'padding-bottom': tP + '%' 738 }); 739 }; 740 setCss(); 741 if (obj.find('img').length) { 742 if ( obj.find('img')[0].complete) { 743 setCss(); 744 if (!interval) { 745 $this.auto(); 746 } 747 }else{ 748 obj.find('img').load(
vendor: 6,979 bytes, lines 748-907
748function () { 749 setTimeout(function () { 750 setCss(); 751 if (!interval) { 752 $this.auto(); 753 } 754 }, 100); 755 }); 756 } 757 }else{ 758 if (!interval) { 759 $this.auto(); 760 } 761 } 762 }, 763 active: function (ob, t) { 764 if (this.doCss() && settings.mode === 'fade') { 765 $slide.addClass('on'); 766 } 767 var sc = 0; 768 if (scene * settings.slideMove < length) { 769 ob.removeClass('active'); 770 if (!this.doCss() && settings.mode === 'fade' && t === false) { 771 ob.fadeOut(settings.speed); 772 } 773 if (t === true) { 774 sc = scene; 775 } else { 776 sc = scene * settings.slideMove; 777 } 778 //t === true ? sc = scene : sc = scene * settings.slideMove; 779 var l, nl; 780 if (t === true) { 781 l = ob.length; 782 nl = l - 1; 783 if (sc + 1 >= l) { 784 sc = nl; 785 } 786 } 787 if (settings.loop === true && settings.mode === 'slide') { 788 //t === true ? sc = scene - $el.find('.clone.left').length : sc = scene * settings.slideMove; 789 if (t === true) { 790 sc = scene - $el.find('.clone.left').length; 791 } else { 792 sc = scene * settings.slideMove; 793 } 794 if (t === true) { 795 l = ob.length; 796 nl = l - 1; 797 if (sc + 1 === l) { 798 sc = nl; 799 } else if (sc + 1 > l) { 800 sc = 0; 801 } 802 } 803 } 804 805 if (!this.doCss() && settings.mode === 'fade' && t === false) { 806 ob.eq(sc).fadeIn(settings.speed); 807 } 808 ob.eq(sc).addClass('active'); 809 } else { 810 ob.removeClass('active'); 811 ob.eq(ob.length - 1).addClass('active'); 812 if (!this.doCss() && settings.mode === 'fade' && t === false) { 813 ob.fadeOut(settings.speed); 814 ob.eq(sc).fadeIn(settings.speed); 815 } 816 } 817 }, 818 move: function (ob, v) { 819 if (settings.rtl === true) { 820 v = -v; 821 } 822 if (this.doCss()) { 823 if (settings.vertical === true) { 824 ob.css({ 825 'transform': 'translate3d(0px, ' + (-v) + 'px, 0px)', 826 '-webkit-transform': 'translate3d(0px, ' + (-v) + 'px, 0px)' 827 }); 828 } else { 829 ob.css({ 830 'transform': 'translate3d(' + (-v) + 'px, 0px, 0px)', 831 '-webkit-transform': 'translate3d(' + (-v) + 'px, 0px, 0px)', 832 }); 833 } 834 } else { 835 if (settings.vertical === true) { 836 ob.css('position', 'relative').animate({ 837 top: -v + 'px' 838 }, settings.speed, settings.easing); 839 } else { 840 ob.css('position', 'relative').animate({ 841 left: -v + 'px' 842 }, settings.speed, settings.easing); 843 } 844 } 845 var $thumb = $slide.parent().find('.lSPager').find('li'); 846 this.active($thumb, true); 847 }, 848 fade: function () { 849 this.active($children, false); 850 var $thumb = $slide.parent().find('.lSPager').find('li'); 851 this.active($thumb, true); 852 }, 853 slide: function () { 854 var $this = this; 855 refresh.calSlide = function () { 856 if (w > elSize) { 857 slideValue = $this.slideValue(); 858 $this.active($children, false); 859 if ((slideValue) > w - elSize - settings.slideMargin) { 860 slideValue = w - elSize - settings.slideMargin; 861 } else if (slideValue < 0) { 862 slideValue = 0; 863 } 864 $this.move($el, slideValue); 865 if (settings.loop === true && settings.mode === 'slide') { 866 if (scene >= (length - ($el.find('.clone.left').length / settings.slideMove))) { 867 $this.resetSlide($el.find('.clone.left').length); 868 } 869 if (scene === 0) { 870 $this.resetSlide($slide.find('.lslide').length); 871 } 872 } 873 } 874 }; 875 refresh.calSlide(); 876 }, 877 resetSlide: function (s) { 878 var $this = this; 879 $slide.find('.lSAction a').addClass('disabled'); 880 setTimeout(function () { 881 scene = s; 882 $slide.css('transition-duration', '0ms'); 883 slideValue = $this.slideValue(); 884 $this.active($children, false); 885 plugin.move($el, slideValue); 886 setTimeout(function () { 887 $slide.css('transition-duration', settings.speed + 'ms'); 888 $slide.find('.lSAction a').removeClass('disabled'); 889 }, 50); 890 }, settings.speed + 100); 891 }, 892 slideValue: function () { 893 var _sV = 0; 894 if (settings.autoWidth === false) { 895 _sV = scene * ((slideWidth + settings.slideMargin) * settings.slideMove); 896 } else { 897 _sV = 0; 898 for (var i = 0; i < scene; i++) { 899 _sV += (parseInt($children.eq(i).width()) + settings.slideMargin); 900 } 901 } 902 return _sV; 903 }, 904 slideThumb: function () { 905 var position; 906 switch (settings.currentPagerPosition) { 907
907 case 'left': 908 position = 0; 909 break; 910 case 'middle': 911 position = (elSize / 2) - (thumbWidth / 2); 912 break; 913 case 'right': 914
vendor: 11,391 bytes, lines 914-1171
914 position = elSize - thumbWidth; 915 } 916 var sc = scene - $el.find('.clone.left').length; 917 var $pager = $slide.parent().find('.lSPager'); 918 if (settings.mode === 'slide' && settings.loop === true) { 919 if (sc >= $pager.children().length) { 920 sc = 0; 921 } else if (sc < 0) { 922 sc = $pager.children().length; 923 } 924 } 925 var thumbSlide = sc * ((thumbWidth + settings.thumbMargin)) - (position); 926 if ((thumbSlide + elSize) > pagerWidth) { 927 thumbSlide = pagerWidth - elSize - settings.thumbMargin; 928 } 929 if (thumbSlide < 0) { 930 thumbSlide = 0; 931 } 932 this.move($pager, thumbSlide); 933 }, 934 auto: function () { 935 if (settings.auto) { 936 clearInterval(interval); 937 interval = setInterval(function () { 938 $el.goToNextSlide(); 939 }, settings.pause); 940 } 941 }, 942 pauseOnHover: function(){ 943 var $this = this; 944 if (settings.auto && settings.pauseOnHover) { 945 $slide.on('mouseenter', function(){ 946 $(this).addClass('ls-hover'); 947 $el.pause(); 948 settings.auto = true; 949 }); 950 $slide.on('mouseleave',function(){ 951 $(this).removeClass('ls-hover'); 952 if (!$slide.find('.lightSlider').hasClass('lsGrabbing')) { 953 $this.auto(); 954 } 955 }); 956 } 957 }, 958 touchMove: function (endCoords, startCoords) { 959 $slide.css('transition-duration', '0ms'); 960 if (settings.mode === 'slide') { 961 var distance = endCoords - startCoords; 962 var swipeVal = slideValue - distance; 963 if ((swipeVal) >= w - elSize - settings.slideMargin) { 964 if (settings.freeMove === false) { 965 swipeVal = w - elSize - settings.slideMargin; 966 } else { 967 var swipeValT = w - elSize - settings.slideMargin; 968 swipeVal = swipeValT + ((swipeVal - swipeValT) / 5); 969 970 } 971 } else if (swipeVal < 0) { 972 if (settings.freeMove === false) { 973 swipeVal = 0; 974 } else { 975 swipeVal = swipeVal / 5; 976 } 977 } 978 this.move($el, swipeVal); 979 } 980 }, 981 982 touchEnd: function (distance) { 983 $slide.css('transition-duration', settings.speed + 'ms'); 984 if (settings.mode === 'slide') { 985 var mxVal = false; 986 var _next = true; 987 slideValue = slideValue - distance; 988 if ((slideValue) > w - elSize - settings.slideMargin) { 989 slideValue = w - elSize - settings.slideMargin; 990 if (settings.autoWidth === false) { 991 mxVal = true; 992 } 993 } else if (slideValue < 0) { 994 slideValue = 0; 995 } 996 var gC = function (next) { 997 var ad = 0; 998 if (!mxVal) { 999 if (next) { 1000 ad = 1; 1001 } 1002 } 1003 if (!settings.autoWidth) { 1004 var num = slideValue / ((slideWidth + settings.slideMargin) * settings.slideMove); 1005 scene = parseInt(num) + ad; 1006 if (slideValue >= (w - elSize - settings.slideMargin)) { 1007 if (num % 1 !== 0) { 1008 scene++; 1009 } 1010 } 1011 } else { 1012 var tW = 0; 1013 for (var i = 0; i < $children.length; i++) { 1014 tW += (parseInt($children.eq(i).width()) + settings.slideMargin); 1015 scene = i + ad; 1016 if (tW >= slideValue) { 1017 break; 1018 } 1019 } 1020 } 1021 }; 1022 if (distance >= settings.swipeThreshold) { 1023 gC(false); 1024 _next = false; 1025 } else if (distance <= -settings.swipeThreshold) { 1026 gC(true); 1027 _next = false; 1028 } 1029 $el.mode(_next); 1030 this.slideThumb(); 1031 } else { 1032 if (distance >= settings.swipeThreshold) { 1033 $el.goToPrevSlide(); 1034 } else if (distance <= -settings.swipeThreshold) { 1035 $el.goToNextSlide(); 1036 } 1037 } 1038 }, 1039 1040 1041 1042 enableDrag: function () { 1043 var $this = this; 1044 if (!isTouch) { 1045 var startCoords = 0, 1046 endCoords = 0, 1047 isDraging = false; 1048 $slide.find('.lightSlider').addClass('lsGrab'); 1049 $slide.on('mousedown', function (e) { 1050 if (w < elSize) { 1051 if (w !== 0) { 1052 return false; 1053 } 1054 } 1055 if ($(e.target).attr('class') !== ('lSPrev') && $(e.target).attr('class') !== ('lSNext')) { 1056 startCoords = (settings.vertical === true) ? e.pageY : e.pageX; 1057 isDraging = true; 1058 if (e.preventDefault) { 1059 e.preventDefault(); 1060 } else { 1061 e.returnValue = false; 1062 } 1063 // ** Fix for webkit cursor issue https://code.google.com/p/chromium/issues/detail?id=26723 1064 $slide.scrollLeft += 1; 1065 $slide.scrollLeft -= 1; 1066 // * 1067 $slide.find('.lightSlider').removeClass('lsGrab').addClass('lsGrabbing'); 1068 clearInterval(interval); 1069 } 1070 }); 1071 $(window).on('mousemove', function (e) { 1072 if (isDraging) { 1073 endCoords = (settings.vertical === true) ? e.pageY : e.pageX; 1074 $this.touchMove(endCoords, startCoords); 1075 } 1076 }); 1077 $(window).on('mouseup', function (e) { 1078 if (isDraging) { 1079 $slide.find('.lightSlider').removeClass('lsGrabbing').addClass('lsGrab'); 1080 isDraging = false; 1081 endCoords = (settings.vertical === true) ? e.pageY : e.pageX; 1082 var distance = endCoords - startCoords; 1083 if (Math.abs(distance) >= settings.swipeThreshold) { 1084 $(window).on('click.ls', function (e) { 1085 if (e.preventDefault) { 1086 e.preventDefault(); 1087 } else { 1088 e.returnValue = false; 1089 } 1090 e.stopImmediatePropagation(); 1091 e.stopPropagation(); 1092 $(window).off('click.ls'); 1093 }); 1094 } 1095 1096 $this.touchEnd(distance); 1097 1098 } 1099 }); 1100 } 1101 }, 1102 1103 1104 1105 1106 enableTouch: function () { 1107 var $this = this; 1108 if (isTouch) { 1109 var startCoords = {}, 1110 endCoords = {}; 1111 $slide.on('touchstart', function (e) { 1112 endCoords = e.originalEvent.targetTouches[0]; 1113 startCoords.pageX = e.originalEvent.targetTouches[0].pageX; 1114 startCoords.pageY = e.originalEvent.targetTouches[0].pageY; 1115 clearInterval(interval); 1116 }); 1117 $slide.on('touchmove', function (e) { 1118 if (w < elSize) { 1119 if (w !== 0) { 1120 return false; 1121 } 1122 } 1123 var orig = e.originalEvent; 1124 endCoords = orig.targetTouches[0]; 1125 var xMovement = Math.abs(endCoords.pageX - startCoords.pageX); 1126 var yMovement = Math.abs(endCoords.pageY - startCoords.pageY); 1127 if (settings.vertical === true) { 1128 if ((yMovement * 3) > xMovement) { 1129 e.preventDefault(); 1130 } 1131 $this.touchMove(endCoords.pageY, startCoords.pageY); 1132 } else { 1133 if ((xMovement * 3) > yMovement) { 1134 e.preventDefault(); 1135 } 1136 $this.touchMove(endCoords.pageX, startCoords.pageX); 1137 } 1138 1139 }); 1140 $slide.on('touchend', function () { 1141 if (w < elSize) { 1142 if (w !== 0) { 1143 return false; 1144 } 1145 } 1146 var distance; 1147 if (settings.vertical === true) { 1148 distance = endCoords.pageY - startCoords.pageY; 1149 } else { 1150 distance = endCoords.pageX - startCoords.pageX; 1151 } 1152 $this.touchEnd(distance); 1153 }); 1154 } 1155 }, 1156 build: function () { 1157 var $this = this; 1158 $this.initialStyle(); 1159 if (this.doCss()) { 1160 1161 if (settings.enableTouch === true) { 1162 $this.enableTouch(); 1163 } 1164 if (settings.enableDrag === true) { 1165 $this.enableDrag(); 1166 } 1167 } 1168 1169 $(window).on('focus', function(){ 1170 $this.auto(); 1171 });
vendor: 7,017 bytes, lines 1172-1357
1172 1173 $(window).on('blur', function(){ 1174 clearInterval(interval); 1175 }); 1176 1177 $this.pager(); 1178 $this.pauseOnHover(); 1179 $this.controls(); 1180 $this.keyPress(); 1181 } 1182 }; 1183 plugin.build(); 1184 refresh.init = function () { 1185 // do not re-init if slides are hidden, eg. in Accordion or display none... 1186 if($slide.outerWidth() == 0) return false; 1187 refresh.chbreakpoint(); 1188 if (settings.vertical === true) { 1189 if (settings.item > 1) { 1190 elSize = settings.verticalHeight; 1191 } else { 1192 elSize = $children.outerHeight(); 1193 } 1194 $slide.css('height', elSize + 'px'); 1195 } else { 1196 elSize = $slide.outerWidth(); 1197 } 1198 if (settings.loop === true && settings.mode === 'slide') { 1199 refresh.clone(); 1200 } 1201 refresh.calL(); 1202 if (settings.mode === 'slide') { 1203 $el.removeClass('lSSlide'); 1204 } 1205 if (settings.mode === 'slide') { 1206 refresh.calSW(); 1207 refresh.sSW(); 1208 } 1209 setTimeout(function () { 1210 if (settings.mode === 'slide') { 1211 $el.addClass('lSSlide'); 1212 } 1213 }, 1000); 1214 if (settings.pager) { 1215 refresh.createPager(); 1216 } 1217 if (settings.adaptiveHeight === true && settings.vertical === false) { 1218 $el.css('height', $children.eq(scene).outerHeight(true)); 1219 } 1220 if (settings.adaptiveHeight === false) { 1221 if (settings.mode === 'slide') { 1222 if (settings.vertical === false) { 1223 plugin.setHeight($el, false); 1224 }else{ 1225 plugin.auto(); 1226 } 1227 } else { 1228 plugin.setHeight($el, true); 1229 } 1230 } 1231 if (settings.gallery === true) { 1232 plugin.slideThumb(); 1233 } 1234 if (settings.mode === 'slide') { 1235 plugin.slide(); 1236 } 1237 if (settings.autoWidth === false) { 1238 if ($children.length <= settings.item) { 1239 $slide.find('.lSAction').hide(); 1240 } else { 1241 $slide.find('.lSAction').show(); 1242 } 1243 } else { 1244 if ((refresh.calWidth(false) < elSize) && (w !== 0)) { 1245 $slide.find('.lSAction').hide(); 1246 } else { 1247 $slide.find('.lSAction').show(); 1248 } 1249 } 1250 }; 1251 $el.goToPrevSlide = function () { 1252 if (scene > 0) { 1253 settings.onBeforePrevSlide.call(this, $el, scene); 1254 scene--; 1255 $el.mode(false); 1256 if (settings.gallery === true) { 1257 plugin.slideThumb(); 1258 } 1259 } else { 1260 if (settings.loop === true) { 1261 settings.onBeforePrevSlide.call(this, $el, scene); 1262 if (settings.mode === 'fade') { 1263 var l = (length - 1); 1264 scene = parseInt(l / settings.slideMove); 1265 } 1266 $el.mode(false); 1267 if (settings.gallery === true) { 1268 plugin.slideThumb(); 1269 } 1270 } else if (settings.slideEndAnimation === true) { 1271 $el.addClass('leftEnd'); 1272 setTimeout(function () { 1273 $el.removeClass('leftEnd'); 1274 }, 400); 1275 } 1276 } 1277 }; 1278 $el.goToNextSlide = function () { 1279 var nextI = true; 1280 if (settings.mode === 'slide') { 1281 var _slideValue = plugin.slideValue(); 1282 nextI = _slideValue < w - elSize - settings.slideMargin; 1283 } 1284 if (((scene * settings.slideMove) < length - settings.slideMove) && nextI) { 1285 settings.onBeforeNextSlide.call(this, $el, scene); 1286 scene++; 1287 $el.mode(false); 1288 if (settings.gallery === true) { 1289 plugin.slideThumb(); 1290 } 1291 } else { 1292 if (settings.loop === true) { 1293 settings.onBeforeNextSlide.call(this, $el, scene); 1294 scene = 0; 1295 $el.mode(false); 1296 if (settings.gallery === true) { 1297 plugin.slideThumb(); 1298 } 1299 } else if (settings.slideEndAnimation === true) { 1300 $el.addClass('rightEnd'); 1301 setTimeout(function () { 1302 $el.removeClass('rightEnd'); 1303 }, 400); 1304 } 1305 } 1306 }; 1307 $el.mode = function (_touch) { 1308 if (settings.adaptiveHeight === true && settings.vertical === false) { 1309 $el.css('height', $children.eq(scene).outerHeight(true)); 1310 } 1311 if (on === false) { 1312 if (settings.mode === 'slide') { 1313 if (plugin.doCss()) { 1314 $el.addClass('lSSlide'); 1315 if (settings.speed !== '') { 1316 $slide.css('transition-duration', settings.speed + 'ms'); 1317 } 1318 if (settings.cssEasing !== '') { 1319 $slide.css('transition-timing-function', settings.cssEasing); 1320 } 1321 } 1322 } else { 1323 if (plugin.doCss()) { 1324 if (settings.speed !== '') { 1325 $el.css('transition-duration', settings.speed + 'ms'); 1326 } 1327 if (settings.cssEasing !== '') { 1328 $el.css('transition-timing-function', settings.cssEasing); 1329 } 1330 } 1331 } 1332 } 1333 if (!_touch) { 1334 settings.onBeforeSlide.call(this, $el, scene); 1335 } 1336 if (settings.mode === 'slide') { 1337 plugin.slide(); 1338 } else { 1339 plugin.fade(); 1340 } 1341 if (!$slide.hasClass('ls-hover')) { 1342 plugin.auto(); 1343 } 1344 setTimeout(function () { 1345 if (!_touch) { 1346 settings.onAfterSlide.call(this, $el, scene); 1347 } 1348 }, settings.speed); 1349 on = true; 1350 }; 1351 $el.play = function () { 1352 $el.goToNextSlide(); 1353 settings.auto = true; 1354 plugin.auto(); 1355 }; 1356 $el.pause = function () { 1357 settings.auto = false;
1358 clearInterval(interval); 1359 }; 1360 $el.refresh = function () { 1361 refresh.init(); 1362 }; 1363 $el.getCurrentSlideCount = function () { 1364 var sc = scene; 1365 if (settings.loop) { 1366 var ln = $slide.find('.lslide').length, 1367 cl = $el.find('.clone.left').length; 1368 if (scene <= cl - 1) { 1369 sc = ln + (scene - cl); 1370 } else if (scene >= (ln + cl)) { 1371 sc = scene - ln - cl; 1372 } else { 1373 sc = scene - cl; 1374 } 1375 } 1376 return sc + 1; 1377 }; 1378 $el.getTotalSlideCount = function () { 1379 return $slide.find('.lslide').length; 1380 }; 1381 $el.goToSlide = function (s) { 1382 if (settings.loop) { 1383 scene = (s + $el.find('.clone.left').length - 1); 1384 } else { 1385 scene = s; 1386 } 1387 $el.mode(false); 1388 if (settings.gallery === true) { 1389 plugin.slideThumb(); 1390 } 1391 }; 1392 $el.destroy = function () { 1393 if ($el.lightSlider) { 1394 $el.goToPrevSlide = function(){}; 1395 $el.goToNextSlide = function(){}; 1396 $el.mode = function(){}; 1397 $el.play = function(){}; 1398 $el.pause = function(){}; 1399 $el.refresh = function(){}; 1400 $el.getCurrentSlideCount = function(){}; 1401 $el.getTotalSlideCount = function(){}; 1402 $el.goToSlide = function(){}; 1403 $el.lightSlider = null; 1404 refresh = { 1405 init : function(){} 1406 }; 1407 $el.parent().parent().find('.lSAction, .lSPager').remove(); 1408 $el.removeClass('lightSlider lSFade lSSlide lsGrab lsGrabbing leftEnd right').removeAttr('style').unwrap().unwrap(); 1409 $el.children().removeAttr('style'); 1410 $children.removeClass('lslide active'); 1411 $el.find('.clone').remove(); 1412 $children = null; 1413 interval = null; 1414 on = false; 1415 scene = 0; 1416 } 1417 1418 }; 1419 setTimeout(function () { 1420 settings.onSliderLoad.call(this, $el); 1421 }, 10); 1422 $(window).on('resize orientationchange', function (e) { 1423 setTimeout(function () { 1424 if (e.preventDefault) { 1425 e.preventDefault(); 1426 } else { 1427 e.returnValue = false; 1428 } 1429 refresh.init(); 1430 }, 200); 1431 }); 1432 return this; 1433 }; 1434}(jQuery)); 1435 1436/* instafeed.js | v2.0.0 | https://github.com/stevenschobert/instafeed.js | License: MIT */ 1437!function (e, t) { 1438 'object' == typeof exports && 'undefined' != typeof module 1439 ? module.exports = t() 1440 : 'function' == typeof define && define.amd ? define(t) : (e = 'undefined' != typeof globalThis 1441 ? globalThis 1442 : e || self).Instafeed = t(); 1443}(this, function () { 1444 'use strict'; 1445 1446 function e(e, t) { 1447 if (!e) throw new Error(t); 1448 } 1449 1450 function t(t) { 1451 e(!t || 'object' == typeof t, 'options must be an object, got ' + t + ' (' + typeof t + ')'); 1452 var o = { 1453 accessToken: null, 1454 accessTokenTimeout: 1e4, 1455 after: null, 1456 apiTimeout: 1e4, 1457 apiLimit: null, 1458 before: null, 1459 debug: !1, 1460 error: null, 1461 filter: null, 1462 limit: null, 1463 mock: !1, 1464 render: null, 1465 sort: null, 1466 success: null, 1467 target: 'instafeed', 1468 template: '<a href="{{link}}"><img title="{{caption}}" src="{{image}}" /></a>', 1469 templateBoundaries: ['{{', '}}'], 1470 transform: null 1471 }; 1472 if (t) for (var n in o) 'undefined' != typeof t[n] && (o[n] = t[n]); 1473 e( 1474 'string' == typeof o.target || 'object' == typeof o.target, 1475 'target must be a string or DOM node, got ' + o.target + ' (' + typeof o.target + ')' 1476 ), e( 1477 'string' == typeof o.accessToken || 'function' == typeof o.accessToken, 1478 'accessToken must be a string or function, got ' + o.accessToken + ' (' + typeof o.accessToken + ')' 1479 ), e( 1480 'number' == typeof o.accessTokenTimeout, 1481 'accessTokenTimeout must be a number, got ' + o.accessTokenTimeout + ' (' + typeof o.accessTokenTimeout + ')' 1482 ), e( 1483 'number' == typeof o.apiTimeout, 1484 'apiTimeout must be a number, got ' + o.apiTimeout + ' (' + typeof o.apiTimeout + ')' 1485 ), e( 1486 'boolean' == typeof o.debug, 1487 'debug must be true or false, got ' + o.debug + ' (' + typeof o.debug + ')' 1488 ), e('boolean' == typeof o.mock, 'mock must be true or false, got ' + o.mock + ' (' + typeof o.mock + ')'), e( 1489 'object' == typeof o.templateBoundaries && 2 === o.templateBoundaries.length && 'string' == typeof o.templateBoundaries[0] && 'string' == typeof o.templateBoundaries[1], 1490 'templateBoundaries must be an array of 2 strings, got ' + o.templateBoundaries + '
1490(' + typeof o.templateBoundaries + ')' 1491 ), e( 1492 !o.template || 'string' == typeof o.template, 1493 'template must null or string, got ' + o.template + ' (' + typeof o.template + ')' 1494 ), e( 1495 !o.error || 'function' == typeof o.error, 1496 'error must be null or function, got ' + o.error + ' (' + typeof o.error + ')' 1497 ), e( 1498 !o.before || 'function' == typeof o.before, 1499 'before must be null or function, got ' + o.before + ' (' + typeof o.before + ')' 1500 ), e( 1501 !o.after || 'function' == typeof o.after, 1502 'after must be null or function, got ' + o.after + ' (' + typeof o.after + ')' 1503 ), e( 1504 !o.success || 'function' == typeof o.success, 1505 'success must be null or function, got ' + o.success + ' (' + typeof o.success + ')' 1506 ), e( 1507 !o.filter || 'function' == typeof o.filter, 1508 'filter must be null or function, got ' + o.filter + ' (' + typeof o.filter + ')' 1509 ), e( 1510 !o.transform || 'function' == typeof o.transform, 1511 'transform must be null or function, got ' + o.transform + ' (' + typeof o.transform + ')' 1512 ), e( 1513 !o.sort || 'function' == typeof o.sort, 1514 'sort must be null or function, got ' + o.sort + ' (' + typeof o.sort + ')' 1515 ), e( 1516 !o.render || 'function' == typeof o.render, 1517 'render must be null or function, got ' + o.render + ' (' + typeof o.render + ')' 1518 ), e( 1519 !o.limit || 'number' == typeof o.limit, 1520 'limit must be null or number, got ' + o.limit + ' (' + typeof o.limit + ')' 1521 ), e( 1522 !o.apiLimit || 'number' == typeof o.apiLimit, 1523 'apiLimit must null or number, got ' + o.apiLimit + ' (' + typeof o.apiLimit + ')' 1524 ), this._state = {running: !1, node: null, token: null, paging: null, pool: []}, this._options = o; 1525 } 1526 1527 return t.prototype.run = function () { 1528 var e = this; 1529 return this._debug('run', 'options', this._options), this._debug( 1530 'run', 1531 'state', 1532 this._state 1533 ), this._state.running ? (this._debug('run', 'already running, skipping'), !1) : (this._start(), this._debug( 1534 'run', 1535 'getting dom node' 1536 ), 'string' == typeof this._options.target 1537 ? this._state.node = document.getElementById(this._options.target) 1538 : this._state.node = this._options.target, this._state.node ? (this._debug( 1539 'run', 1540 'got dom node', 1541 this._state.node 1542 ), this._debug('run', 'getting access token'), this._getAccessToken(function (t, o) { 1543 if (t) return e._debug( 1544 'onTokenReceived', 1545 'error', 1546 t 1547 ), void e._fail(new Error('error getting access token: ' + t.message)); 1548 e._debug('onTokenReceived', 'got token', o), e._state.token = o, e._showNext(function (t) { 1549 if (t) return e._debug('onNextShown', 'error', t), void e._fail(t); 1550 e._finish(); 1551 }); 1552 }), !0) : (this._fail(new Error('no element found with ID ' + this._options.target)), !1)); 1553 }, t.prototype.hasNext = function () { 1554 var e = this._state.paging, t = this._state.pool; 1555 return this._debug('hasNext', 'paging', e), this._debug( 1556 'hasNext', 1557 'pool', 1558 t.length, 1559 t 1560 ), t.length > 0 || e && 'string' == typeof e.next; 1561 }, t.prototype.next = function () { 1562 var e = this; 1563 return e.hasNext() ? e._state.running 1564 ? (e._debug('next', 'already running, skipping'), !1) 1565 : (e._start(), void e._showNext(function (t) { 1566 if (t) return e._debug('onNextShown', 'error', t), void e._fail(t); 1567 e._finish(); 1568 })) : (e._debug('next', 'hasNext is false, skipping'), !1); 1569 }, t.prototype._showNext = function (e) { 1570 var t = this, o = null, n = null, i = 'number' == typeof this._options.limit; 1571 if (t._debug('showNext', 'pool', t._state.pool.length, t._state.pool), t._state.pool.length > 0) { 1572 if (n = i ? t._state.pool.splice(0, t._options.limit) : t._state.pool.splice(0), t._debug( 1573 'showNext', 1574 'items from pool', 1575 n.length, 1576 n 1577 ), t._debug('showNext', 'updated pool', t._state.pool.length, t._state.pool), t._options.mock) t._debug( 1578 'showNext', 1579 'mock enabled, skipping render' 1580 ); else try { 1581 t._renderData(n); 1582 } catch (s) { 1583 return void e(s); 1584 } 1585 e(null); 1586 } else t._state.paging && 'string' == typeof t._state.paging.next 1587 ? o = t._state.paging.next 1588 : (o = window.location.protocol+'//'+window.location.hostname+'/fileadmin/service/instagram/images/?fields=caption,id,media_type,media_url,permalink,thumbnail_url,timestamp,username&access_token='
1588+ t._state.token, t._options.apiLimit || 'number' != typeof t._options.limit 1589 ? 'number' == typeof t._options.apiLimit && (t._debug( 1590 'showNext', 1591 'apiLimit set, overriding limit', 1592 t._options.apiLimit, 1593 t._options.limit 1594 ), o = o + '&limit=' + t._options.apiLimit) 1595 : (t._debug( 1596 'showNext', 1597 'no apiLimit set, falling back to limit', 1598 t._options.apiLimit, 1599 t._options.limit 1600 ), o = o + '&limit=' + t._options.limit)), t._debug('showNext', 'making request', o), t._makeApiRequest( 1601 o, 1602 function (o, n) { 1603 var i = null; 1604 if (o) return t._debug( 1605 'onResponseReceived', 1606 'error', 1607 o 1608 ), void e(new Error('api request error: ' + o.message)); 1609 t._debug('onResponseReceived', 'data', n), t._success(n), t._debug( 1610 'onResponseReceived', 1611 'setting paging', 1612 n.paging 1613 ), t._state.paging = n.paging; 1614 try { 1615 if (i = t._processData(n), t._debug( 1616 'onResponseReceived', 1617 'processed data', 1618 i 1619 ), i.unused && i.unused.length > 0) { 1620 t._debug('onResponseReceived', 'saving unused to pool', i.unused.length, i.unused); 1621 for (var r = 0; r < i.unused.length; r++) t._state.pool.push(i.unused[r]); 1622 } 1623 } catch (a) { 1624 return void e(a); 1625 } 1626 if (t._options.mock) t._debug('onResponseReceived', 'mock enabled, skipping append'); else try { 1627 t._renderData(i.items); 1628 } catch (s) { 1629 return void e(s); 1630 } 1631 e(null); 1632 } 1633 ); 1634 }, t.prototype._processData = function (e) { 1635 var t = 'function' == typeof this._options.transform, o = 'function' == typeof this._options.filter, 1636 n = 'function' == typeof this._options.sort, i = 'number' == typeof this._options.limit, s = [], r = null, 1637 a = null, u = null, l = null, p = null; 1638 if (this._debug( 1639 'processData', 1640 'hasFilter', 1641 o, 1642 'hasTransform', 1643 t, 1644 'hasSort', 1645 n, 1646 'hasLimit', 1647 i 1648 ), 'object' != typeof e || 'object' != typeof e.data || e.data.length <= 0) return null; 1649 for (var c = 0; c < e.data.length; c++) { 1650 if (a = this._getItemData(e.data[c]), t) try { 1651 u = this._options.transform(a), this._debug('processData', 'transformed item', a, u); 1652 } catch (f) { 1653 throw this._debug( 1654 'processData', 1655 'error calling transform', 1656 f 1657 ), new Error('error in transform: ' + f.message); 1658 } else u = a; 1659 if (o) { 1660 try { 1661 l = this._options.filter(u), this._debug('processData', 'filter item result', u, l); 1662 } catch (f) { 1663 throw this._debug( 1664 'processData', 1665 'error calling filter', 1666 f 1667 ), new Error('error in filter: ' + f.message); 1668 } 1669 l && s.push(u); 1670 } else s.push(u); 1671 } 1672 if (n) try { 1673 s.sort(this._options.sort); 1674 } catch (f) { 1675 throw this._debug('processData', 'error calling sort', f), new Error('error in sort: ' + f.message); 1676 } 1677 return i && (r = s.length - this._options.limit, this._debug( 1678 'processData', 1679 'checking limit', 1680 s.length, 1681 this._options.limit, 1682 r 1683 ), r > 0 && (p = s.slice(s.length - r), this._debug( 1684 'processData', 1685 'unusedItems', 1686 p.length, 1687 p 1688 ), s.splice(s.length - r, r))), {items: s, unused: p}; 1689 }, t.prototype._extractTags = function (e) {
1690 var t = /#([^\s]+)/gi, o = /[~`!@#$%^&*\(\)\-\+={}\[\]:;"'<>\?,\./|\\\s]+/i, n = [], i = null; 1691 if ('string' == typeof e) for (; null !== (i = t.exec(e));) !1 === o.test(i[1]) && n.push(i[1]); 1692 return n; 1693 }, t.prototype._getItemData = function (e) { 1694 var t = null, o = null; 1695 switch (e.media_type) { 1696 case'IMAGE': 1697 t = 'image', o = e.media_url; 1698 break; 1699 case'VIDEO': 1700 t = 'video', o = e.thumbnail_url; 1701 break; 1702 case'CAROUSEL_ALBUM': 1703 t = 'album', o = e.media_url; 1704 } 1705 return { 1706 caption: e.caption, 1707 tags: this._extractTags(e.caption), 1708 id: e.id, 1709 image: o, 1710 link: e.permalink, 1711 model: e, 1712 timestamp: e.timestamp, 1713 type: t, 1714 username: e.username 1715 }; 1716 }, t.prototype._renderData = function (e) { 1717 var t = 'string' == typeof this._options.template, o = 'function' == typeof this._options.render, n = null, 1718 i = null, s = null, r = ''; 1719 if (this._debug('renderData', 'hasTemplate', t, 'hasRender', o), !('object' != typeof e || e.length <= 0)) { 1720 for (var a = 0; a < e.length; a++) { 1721 if (n = e[a], o) try { 1722 i = this._options.render(n, this._options), this._debug('renderData', 'custom render result', n, i); 1723 } catch (u) { 1724 throw this._debug( 1725 'renderData', 1726 'error calling render', 1727 u 1728 ), new Error('error in render: ' + u.message); 1729 } else t && (i = this._basicRender(n)); 1730 i ? r += i : this._debug('renderData', 'render item did not return any content', n); 1731 } 1732 for (this._debug( 1733 'renderData', 1734 'html content', 1735 r 1736 ), (s = document.createElement('div')).innerHTML = r, this._debug( 1737 'renderData', 1738 'container', 1739 s, 1740 s.childNodes.length, 1741 s.childNodes 1742 ); s.childNodes.length > 0;) this._debug( 1743 'renderData', 1744 'appending child', 1745 s.childNodes[0] 1746 ), this._state.node.appendChild(s.childNodes[0]); 1747 } 1748 }, t.prototype._basicRender = function (e) { 1749 for (var t = new RegExp( 1750 this._options.templateBoundaries[0] + '([\\s\\w.]+)' + this._options.templateBoundaries[1], 1751 'gm' 1752 ), o = this._options.template, n = null, i = '', s = 0, r = null, a = null; null !== (n = t.exec(o));) r = n[1], i += o.slice( 1753 s, 1754 n.index 1755 ), (a = this._valueForKeyPath(r, e)) && (i += a.toString()), s = t.lastIndex; 1756 return s < o.length && (i += o.slice(s, o.length)), i; 1757 }, t.prototype._valueForKeyPath = function (e, t) { 1758 for (var o = /([\w]+)/gm, n = null, i = t; null !== (n = o.exec(e));) { 1759 if ('object' != typeof i) return null; 1760 i = i[n[1]]; 1761 } 1762 return i; 1763 }, t.prototype._fail = function (e) { 1764 !this._runHook( 1765 'error', 1766 e 1767 ) && console && 'function' == typeof console.error && console.error(e), this._state.running = !1; 1768 }, t.prototype._start = function () { 1769 this._state.running = !0, this._runHook('before'); 1770 }, t.prototype._finish = function () { 1771 this._runHook('after'), this._state.running = !1; 1772 }, t.prototype._success = function (e) { 1773 this._runHook('success', e), this._state.running = !1; 1774 }, t.prototype._makeApiRequest = function (e, t) { 1775 var o = !1, n = this, i = null, s = function (e, n) { 1776 o || (o = !0, t(e, n)); 1777 }; 1778 (i = new XMLHttpRequest).ontimeout = function () { 1779 s(new Error('api request timed out')); 1780 }, i.onerror = function () { 1781 s(new Error('api connection error')); 1782 }, i.onload = function (e) { 1783 var t = i.getResponseHeader('Content-Type'), o = null; 1784 if (n._debug('apiRequestOnLoad', 'loaded', e), n._debug( 1785 'apiRequestOnLoad', 1786 'response status', 1787 i.status 1788 ), n._debug('apiRequestOnLoad', 'response content type', t), t.indexOf('application/json') >= 0) try { 1789 o = JSON.parse(i.responseText); 1790 } catch (r) { 1791 return n._debug('apiRequestOnLoad', 'json parsing error', r, i.responseText), void s(new Error( 1792 'error parsing response json')); 1793 } 1794 200 === i.status ? s(null, o) : o && o.error 1795 ? s(new Error(o.error.code + ' ' + o.error.message)) 1796 : s(new Error('status code ' + i.status)); 1797 }, i.open('GET', e, !0), i.timeout = this._options.apiTimeout, i.send(); 1798 }, t.prototype._getAccessToken = function (e) { 1799 var t = !1, o = this, n = null, i = function (o, i) { 1800 t || (t = !0, clearTimeout(n), e(o, i)); 1801 }; 1802 if ('function' == typeof this._options.accessToken) { 1803 this._debug('getAccessToken', 'calling accessToken as function'), n = setTimeout(function () { 1804 o._debug('getAccessToken', 'timeout check', t), i(new Error('accessToken timed out'), null); 1805 }, this._options.accessTokenTimeout); 1806 try { 1807 this._options.accessToken(function (e, n) { 1808 o._debug('getAccessToken', 'received accessToken callback', t, e, n), i(e, n); 1809 }); 1810 } catch (s) { 1811 this._debug('getAccessToken', 'error invoking the accessToken as function', s), i(s, null); 1812 } 1813 } else this._debug( 1814 'getAccessToken', 1815 'treating accessToken as static', 1816 typeof this._options.accessToken 1817 ), i(null, this._options.accessToken); 1818 }, t.prototype._debug = function () { 1819 var e = null; 1820 this._options.debug && console && 'function' == typeof console.log && ((e = [].slice.call(arguments))[0] = '[Instafeed] [' + e[0] + ']', console.log.apply( 1821 null, 1822 e 1823 )); 1824 }, t.prototype._runHook = function (e, t) { 1825 var o = !1; 1826 if ('function' == typeof this._options[e]) try { 1827 this._options[e](t), o = !0; 1828 } catch (n) { 1829 this._debug('runHook', 'error calling hook', e, n); 1830 } 1831 return o; 1832 }, t; 1833});
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.