pkerspe / ESP-StepperMotor-Server

Turn your ESP32 into a complete stepper motor control server with web UI, REST API and serial control interface
MIT License
225 stars 39 forks source link

Server UI Doesnt Show -> Unexpected end of input ... app.js.gz:25 #21

Closed Humanoidx closed 3 years ago

Humanoidx commented 3 years ago

Describe the bug After Installation, the server doesnt show the home page, but the test page and the OTA page show fine. Environment PlatformIO:

[env:esp32dev] platform = espressif32 board = esp32dev framework = arduino

lib_deps = ESP-StepperMotor-Server

monitor_speed = 115200

To Reproduce Uses the above Platformio.ini and Default sketch Builds fine, Uploads Fine Says server is running on 192.168.1.20 but when you go there on multiple browser with cache off, just a blank page The SelfTest and OTA pages display fine,

Expected behavior

Screenshots Self Test results: ESP-StepperMotorServer self test Testing environment:

Server Version: 0.4.4 SPIFFS Initialized: true WEB UI installed completely: true Listing files in root folder of SPIFFS: File: /index.html (678) -1 File: /js/app.js.gz (29440) -1 File: /img/logo.svg (25066) -1 File: /favicon.ico (318) -1 File: /img/rotaryEncoderWheel.svg (13750) -1 File: /img/emergencyStopSwitch.svg (11442) -1 File: /img/stepper.svg (22739) -1 File: /img/switch.svg (19709) -1 File: /upload.html.gz (1212) -1 {"version":"0.4.4","wifi":{"mode":"client","ip":"192.168.1.20"},"spiffss":{"total_space":1378241,"free_space":1250482},"activeModules":{"serial_cli":true,"rest_api":true,"web_ui":true}}

Additional context

rst:0x1 ([INFO] Setting log level to INFO [WARNING] Failed to load configuration file from SPIFFS. File /config.json not found or SPIFFS is not enabled/mounted [INFO] Starting ESP-StepperMotor-Server (v. 0.4.4)
[INFO] Trying to connect to WiFi with SSID 'XPTPCREWX' ..... [INFO] Connected to network with IP address 192.168.1.20 [INFO] Listing files in root folder of SPIFFS: [INFO] File: /index.html (678) -1 [INFO] File: /js/app.js.gz (29440) -1 [INFO] File: /img/logo.svg (25066) -1 [INFO] File: /favicon.ico (318) -1 [INFO] File: /img/rotaryEncoderWheel.svg (13750) -1 [INFO] File: /img/emergencyStopSwitch.svg (11442) -1 [INFO] File: /img/stepper.svg (22739) -1 [INFO] File: /img/switch.svg (19709) -1 [INFO] File: /upload.html.gz (1212) -1 [INFO] Starting webserver on port 80 [INFO] Webserver started, you can now open the user interface on http://192.168.1.20:80/ [INFO] Command Line Interface started, registered 22 commands. Type 'help' to get a list of all supported commands [INFO] Motion Controller task started

pkerspe commented 3 years ago

Can you please open the console of your browser (e.g. by pressing F12 in chrome) and check of there are some errors showing? Also please check if there is any source code loaded or if it is basically a blank response from the server when you open the root path / home page

Humanoidx commented 3 years ago

Under Console it says : Uncaught SyntaxError: Unexpected end of input ... app.js.gz:25

sources shows: the js folder the app.js.gz file with:

(function(t){var e={};function o(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=e,o.d=function(t,e,r){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(r,n,function(e){return t[e]}.bind(null,n));return r},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/",o(o.s=0)})({0:function(t,e,o){t.exports=o("56d7")},"034f":function(t,e,o){"use strict";var r=o("3ebb"),n=o.n(r);n.a},"07d6":function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},"09cb":function(t,e,o){var r=o("1918");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var n=o("499e").default;n("41f4ec7f",r,!0,{sourceMap:!1,shadowMode:!1})},"0a06":function(t,e,o){"use strict";var r=o("c532"),n=o("30b5"),i=o("f6b4"),a=o("5270"),s=o("4a7b");function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],o=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)o=o.then(e.shift(),e.shift());return o},l.prototype.getUri=function(t){return t=s(this.defaults,t),n(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,o){return this.request(r.merge(o||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,o,n){return this.request(r.merge(n||{},{method:t,url:e,data:o}))}})),t.exports=l},"0df6":function(t,e,o){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1157:function(t,e,o){var r,n;
/*!
 * jQuery JavaScript Library v3.4.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2019-04-10T19:48Z
 */(function(e,o){"use strict";"object"===typeof t.exports?t.exports=e.document?o(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return o(t)}:o(e)})("undefined"!==typeof window?window:this,(function(o,i){"use strict";var a=[],s=o.document,l=Object.getPrototypeOf,c=a.slice,d=a.concat,p=a.push,u=a.indexOf,b={},f=b.toString,m=b.hasOwnProperty,g=m.toString,h=g.call(Object),v={},x=function(t){return"function"===typeof t&&"number"!==typeof t.nodeType},w=function(t){return null!=t&&t===t.window},y={type:!0,src:!0,nonce:!0,noModule:!0};function k(t,e,o){o=o||s;var r,n,i=o.createElement("script");if(i.text=t,e)for(r in y)n=e[r]||e.getAttribute&&e.getAttribute(r),n&&i.setAttribute(r,n);o.head.appendChild(i).parentNode.removeChild(i)}function C(t){return null==t?t+"":"object"===typeof t||"function"===typeof t?b[f.call(t)]||"object":typeof t}var A="3.4.0",S=function(t,e){return new S.fn.init(t,e)},_=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(t){var e=!!t&&"length"in t&&t.length,o=C(t);return!x(t)&&!w(t)&&("array"===o||0===e||"number"===typeof e&&e>0&&e-1 in t)}S.fn=S.prototype={jquery:A,constructor:S,length:0,toArray:function(){return c.call(this)},get:function(t){return null==t?c.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,(function(e,o){return t.call(e,o,e)})))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,o=+t+(t<0?e:0);return this.pushStack(o>=0&&o<e?[this[o]]:[])},end:function(){return this.prevObject||this.constructor()},push:p,sort:a.sort,splice:a.splice},S.extend=S.fn.extend=function(){var t,e,o,r,n,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"===typeof a&&(c=a,a=arguments[s]||{},s++),"object"===typeof a||x(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(c&&r&&(S.isPlainObject(r)||(n=Array.isArray(r)))?(o=a[e],i=n&&!Array.isArray(o)?[]:n||S.isPlainObject(o)?o:{},n=!1,a[e]=S.extend(c,i,r)):void 0!==r&&(a[e]=r));return a},S.extend({expando:"jQuery"+(A+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,o;return!(!t||"[object Object]"!==f.call(t))&&(e=l(t),!e||(o=m.call(e,"constructor")&&e.constructor,"function"===typeof o&&g.call(o)===h))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e){k(t,{nonce:e&&e.nonce})},each:function(t,e){var o,r=0;if(T(t)){for(o=t.length;r<o;r++)if(!1===e.call(t[r],r,t[r]))break}else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(_,"")},makeArray:function(t,e){var o=e||[];return null!=t&&(T(Object(t))?S.merge(o,"string"===typeof t?[t]:t):p.call(o,t)),o},inArray:function(t,e,o){return null==e?-1:u.call(e,t,o)},merge:function(t,e){for(var o=+e.length,r=0,n=t.length;r<o;r++)t[n++]=e[r];return t.length=n,t},grep:function(t,e,o){for(var r,n=[],i=0,a=t.length,s=!o;i<a;i++)r=!e(t[i],i),r!==s&&n.push(t[i]);return n},map:function(t,e,o){var r,n,i=0,a=[];if(T(t))for(r=t.length;i<r;i++)n=e(t[i],i,o),null!=n&&a.push(n);else for(i in t)n=e(t[i],i,o),null!=n&&a.push(n);return d.apply([],a)},guid:1,support:v}),"function"===typeof Symbol&&(S.fn[Symbol.iterator]=a[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){b["[object "+e+"]"]=e.toLowerCase()}));var E=
/*!
 * Sizzle CSS Selector Engine v2.3.4
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2019-04-08
 */
function(t){var e,o,r,n,i,a,s,l,c,d,p,u,b,f,m,g,h,v,x,w="sizzle"+1*new Date,y=t.document,k=0,C=0,A=lt(),S=lt(),_=lt(),T=lt(),E=function(t,e){return t===e&&(p=!0),0},O={}.hasOwnProperty,j=[],P=j.pop,z=j.push,N=j.push,D=j.slice,M=function(t,e){for(var o=0,r=t.length;o<r;o++)if(t[o]===e)return o;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",B="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",L="\\["+R+"*("+B+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+R+"*\\]",$=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",H=new RegExp(R+"+","g"),q=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),F=new RegExp("^"+R+"*,"+R+"*"),U=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),V=new RegExp(R+"|>"),W=new RegExp($),X=new RegExp("^"+B+"$"),G={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),ot=function(t,e,o){var r="0x"+e-65536;return r!==r||o?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){u()},at=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{N.apply(j=D.call(y.childNodes),y.childNodes),j[y.childNodes.length].nodeType}catch(Tt){N={apply:j.length?function(t,e){z.apply(t,D.call(e))}:function(t,e){var o=t.length,r=0;while(t[o++]=e[r++]);t.length=o-1}}}function st(t,e,r,n){var i,s,c,d,p,f,h,v=e&&e.ownerDocument,k=e?e.nodeType:9;if(r=r||[],"string"!==typeof t||!t||1!==k&&9!==k&&11!==k)return r;if(!n&&((e?e.ownerDocument||e:y)!==b&&u(e),e=e||b,m)){if(11!==k&&(p=Z.exec(t)))if(i=p[1]){if(9===k){if(!(c=e.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(v&&(c=v.getElementById(i))&&x(e,c)&&c.id===i)return r.push(c),r}else{if(p[2])return N.apply(r,e.getElementsByTagName(t)),r;if((i=p[3])&&o.getElementsByClassName&&e.getElementsByClassName)return N.apply(r,e.getElementsByClassName(i)),r}if(o.qsa&&!T[t+" "]&&(!g||!g.test(t))&&(1!==k||"object"!==e.nodeName.toLowerCase())){if(h=t,v=e,1===k&&V.test(t)){(d=e.getAttribute("id"))?d=d.replace(rt,nt):e.setAttribute("id",d=w),f=a(t),s=f.length;while(s--)f[s]="#"+d+" "+xt(f[s]);h=f.join(","),v=tt.test(t)&&ht(e.parentNode)||e}try{return N.apply(r,v.querySelectorAll(h)),r}catch(C){T(t,!0)}finally{d===w&&e.removeAttribute("id")}}}return l(t.replace(q,"$1"),e,r,n)}function lt(){var t=[];function e(o,n){return t.push(o+" ")>r.cacheLength&&delete e[t.shift()],e[o+" "]=n}return e}function ct(t){return t[w]=!0,t}function dt(t){var e=b.createElement("fieldset");try{return!!t(e)}catch(Tt){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function pt(t,e){var o=t.split("|"),n=o.length;while(n--)r.attrHandle[o[n]]=e}function ut(t,e){var o=e&&t,r=o&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(o)while(o=o.nextSibling)if(o===e)return-1;return t?1:-1}function bt(t){return function(e){var o=e.nodeName.toLowerCase();return"input"===o&&e.type===t}}function ft(t){return function(e){var o=e.nodeName.toLowerCase();return("input"===o||"button"===o)&&e.type===t}}function mt(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&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ct((function(e){return e=+e,ct((function(o,r){var n,i=t([],o.length,e),a=i.length;while(a--)o[n=i[a]]&&(o[n]=!(r[n]=o[n]))}))}))}function ht(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}for(e in o=st.support={},i=st.isXML=function(t){var e=t.namespaceURI,o=(t.ownerDocument||t).documentElement;return!Y.test(e||o&&o.nodeName||"HTML")},u=st.setDocument=function(t){var e,n,a=t?t.ownerDocument||t:y;return a!==b&&9===a.nodeType&&a.documentElement?(b=a,f=b.documentElement,m=!i(b),y!==b&&(n=b.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",it,!1):n.attachEvent&&n.attachEvent("onunload",it)),o.attributes=dt((function(t){return t.className="i",!t.getAttribute("className")})),o.getElementsByTagName=dt((function(t){return t.appendChild(b.createComment("")),!t.getElementsByTagName("*").length})),o.getElementsByClassName=K.test(b.getElementsByClassName),o.getById=dt((function(t){return f.appendChild(t).id=w,!b.getElementsByName||!b.getElementsByName(w).length})),o.getById?(r.filter["ID"]=function(t){var e=t.replace(et,ot);return function(t){return t.getAttribute("id")===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&m){var o=e.getElementById(t);return o?[o]:[]}}):(r.filter["ID"]=function(t){var e=t.replace(et,ot);return function(t){var o="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return o&&o.value===e}},r.find["ID"]=function(t,e){if("undefined"!==typeof e.getElementById&&m){var o,r,n,i=e.getElementById(t);if(i){if(o=i.getAttributeNode("id"),o&&o.value===t)return[i];n=e.getElementsByName(t),r=0;while(i=n[r++])if(o=i.getAttributeNode("id"),o&&o.value===t)return[i]}return[]}}),r.find["TAG"]=o.getElementsByTagName?function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):o.qsa?e.querySelectorAll(t):void 0}:function(t,e){var o,r=[],n=0,i=e.getElementsByTagName(t);if("*"===t){while(o=i[n++])1===o.nodeType&&r.push(o);return r}return i},r.find["CLASS"]=o.getElementsByClassName&&function(t,e){if("undefined"!==typeof e.getElementsByClassName&&m)return e.getElementsByClassName(t)},h=[],g=[],(o.qsa=K.test(b.querySelectorAll))&&(dt((function(t){f.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+w+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")})),dt((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=b.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(o.matchesSelector=K.test(v=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&dt((function(t){o.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),h.push("!=",$)})),g=g.length&&new RegExp(g.join("|")),h=h.length&&new RegExp(h.join("|")),e=K.test(f.compareDocumentPosition),x=e||K.test(f.contains)?function(t,e){var o=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(o.contains?o.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},E=e?function(t,e){if(t===e)return p=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&r||!o.sortDetached&&e.compareDocumentPosition(t)===r?t===b||t.ownerDocument===y&&x(y,t)?-1:e===b||e.ownerDocument===y&&x(y,e)?1:d?M(d,t)-M(d,e):0:4&r?-1:1)}:function(t,e){if(t===e)return p=!0,0;var o,r=0,n=t.parentNode,i=e.parentNode,a=[t],s=[e];if(!n||!i)return t===b?-1:e===b?1:n?-1:i?1:d?M(d,t)-M(d,e):0;if(n===i)return ut(t,e);o=t;while(o=o.parentNode)a.unshift(o);o=e;while(o=o.parentNode)s.unshift(o);while(a[r]===s[r])r++;return r?ut(a[r],s[r]):a[r]===y?-1:s[r]===y?1:0},b):b},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if((t.ownerDocument||t)!==b&&u(t),o.matchesSelector&&m&&!T[e+" "]&&(!h||!h.test(e))&&(!g||!g.test(e)))try{var r=v.call(t,e);if(r||o.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(Tt){T(e,!0)}return st(e,b,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!==b&&u(t),x(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!==b&&u(t);var n=r.attrHandle[e.toLowerCase()],i=n&&O.call(r.attrHandle,e.toLowerCase())?n(t,e,!m):void 0;return void 0!==i?i:o.attributes||!m?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},st.escape=function(t){return(t+"").replace(rt,nt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],n=0,i=0;if(p=!o.detectDuplicates,d=!o.sortStable&&t.slice(0),t.sort(E),p){while(e=t[i++])e===t[i]&&(n=r.push(i));while(n--)t.splice(r[n],1)}return d=null,t},n=st.getText=function(t){var e,o="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)o+=n(t)}else if(3===i||4===i)return t.nodeValue}else while(e=t[r++])o+=n(e);return o},r=st.selectors={cacheLength:50,createPseudo:ct,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,ot),t[3]=(t[3]||t[4]||t[5]||"").replace(et,ot),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,o=!t[6]&&t[2];return G["CHILD"].test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":o&&W.test(o)&&(e=a(o,!0))&&(e=o.indexOf(")",o.length-e)-o.length)&&(t[0]=t[0].slice(0,e),t[2]=o.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,ot).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=A[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&A(t,(function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,o){return function(r){var n=st.attr(r,t);return null==n?"!="===e:!e||(n+="","="===e?n===o:"!="===e?n!==o:"^="===e?o&&0===n.indexOf(o):"*="===e?o&&n.indexOf(o)>-1:"$="===e?o&&n.slice(-o.length)===o:"~="===e?(" "+n.replace(H," ")+" ").indexOf(o)>-1:"|="===e&&(n===o||n.slice(0,o.length+1)===o+"-"))}},CHILD:function(t,e,o,r,n){var i="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===n?function(t){return!!t.parentNode}:function(e,o,l){var c,d,p,u,b,f,m=i!==a?"nextSibling":"previousSibling",g=e.parentNode,h=s&&e.nodeName.toLowerCase(),v=!l&&!s,x=!1;if(g){if(i){while(m){u=e;while(u=u[m])if(s?u.nodeName.toLowerCase()===h:1===u.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&v){u=g,p=u[w]||(u[w]={}),d=p[u.uniqueID]||(p[u.uniqueID]={}),c=d[t]||[],b=c[0]===k&&c[1],x=b&&c[2],u=b&&g.childNodes[b];while(u=++b&&u&&u[m]||(x=b=0)||f.pop())if(1===u.nodeType&&++x&&u===e){d[t]=[k,b,x];break}}else if(v&&(u=e,p=u[w]||(u[w]={}),d=p[u.uniqueID]||(p[u.uniqueID]={}),c=d[t]||[],b=c[0]===k&&c[1],x=b),!1===x)while(u=++b&&u&&u[m]||(x=b=0)||f.pop())if((s?u.nodeName.toLowerCase()===h:1===u.nodeType)&&++x&&(v&&(p=u[w]||(u[w]={}),d=p[u.uniqueID]||(p[u.uniqueID]={}),d[t]=[k,x]),u===e))break;return x-=n,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(t,e){var o,n=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return n[w]?n(e):n.length>1?(o=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,o){var r,i=n(t,e),a=i.length;while(a--)r=M(t,i[a]),t[r]=!(o[r]=i[a])})):function(t){return n(t,0,o)}):n}},pseudos:{not:ct((function(t){var e=[],o=[],r=s(t.replace(q,"$1"));return r[w]?ct((function(t,e,o,n){var i,a=r(t,null,n,[]),s=t.length;while(s--)(i=a[s])&&(t[s]=!(e[s]=i))})):function(t,n,i){return e[0]=t,r(e,null,i,o),e[0]=null,!o.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,ot),function(e){return(e.textContent||n(e)).indexOf(t)>-1}})),lang:ct((function(t){return X.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,ot).toLowerCase(),function(e){var o;do{if(o=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return o=o.toLowerCase(),o===t||0===o.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var o=t.location&&t.location.hash;return o&&o.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===b.activeElement&&(!b.hasFocus||b.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos["empty"](t)},header:function(t){return J.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,o){return[o<0?o+e:o]})),even:gt((function(t,e){for(var o=0;o<e;o+=2)t.push(o);return t})),odd:gt((function(t,e){for(var o=1;o<e;o+=2)t.push(o);return t})),lt:gt((function(t,e,o){for(var r=o<0?o+e:o>e?e:o;--r>=0;)t.push(r);return t})),gt:gt((function(t,e,o){for(var r=o<0?o+e:o;++r<e;)t.push(r);return t}))}},r.pseudos["nth"]=r.pseudos["eq"],{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=bt(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=ft(e);function vt(){}function xt(t){for(var e=0,o=t.length,r="";e<o;e++)r+=t[e].value;return r}function wt(t,e,o){var r=e.dir,n=e.next,i=n||r,a=o&&"parentNode"===i,s=C++;return e.first?function(e,o,n){while(e=e[r])if(1===e.nodeType||a)return t(e,o,n);return!1}:function(e,o,l){var c,d,p,u=[k,s];if(l){while(e=e[r])if((1===e.nodeType||a)&&t(e,o,l))return!0}else while(e=e[r])if(1===e.nodeType||a)if(p=e[w]||(e[w]={}),d=p[e.uniqueID]||(p[e.uniqueID]={}),n&&n===e.nodeName.toLowerCase())e=e[r]||e;else{if((c=d[i])&&c[0]===k&&c[1]===s)return u[2]=c[2];if(d[i]=u,u[2]=t(e,o,l))return!0}return!1}}function yt(t){return t.length>1?function(e,o,r){var n=t.length;while(n--)if(!t[n](e,o,r))return!1;return!0}:t[0]}function kt(t,e,o){for(var r=0,n=e.length;r<n;r++)st(t,e[r],o);return o}function Ct(t,e,o,r,n){for(var i,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(i=t[s])&&(o&&!o(i,r,n)||(a.push(i),c&&e.push(s)));return a}function At(t,e,o,r,n,i){return r&&!r[w]&&(r=At(r)),n&&!n[w]&&(n=At(n,i)),ct((function(i,a,s,l){var c,d,p,u=[],b=[],f=a.length,m=i||kt(e||"*",s.nodeType?[s]:s,[]),g=!t||!i&&e?m:Ct(m,u,t,s,l),h=o?n||(i?t:f||r)?[]:a:g;if(o&&o(g,h,s,l),r){c=Ct(h,b),r(c,[],s,l),d=c.length;while(d--)(p=c[d])&&(h[b[d]]=!(g[b[d]]=p))}if(i){if(n||t){if(n){c=[],d=h.length;while(d--)(p=h[d])&&c.push(g[d]=p);n(null,h=[],c,l)}d=h.length;while(d--)(p=h[d])&&(c=n?M(i,p):u[d])>-1&&(i[c]=!(a[c]=p))}}else h=Ct(h===a?h.splice(f,h.length):h),n?n(null,a,h,l):N.apply(a,h)}))}function St(t){for(var e,o,n,i=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],l=a?1:0,d=wt((function(t){return t===e}),s,!0),p=wt((function(t){return M(e,t)>-1}),s,!0),u=[function(t,o,r){var n=!a&&(r||o!==c)||((e=o).nodeType?d(t,o,r):p(t,o,r));return e=null,n}];l<i;l++)if(o=r.relative[t[l].type])u=[wt(yt(u),o)];else{if(o=r.filter[t[l].type].apply(null,t[l].matches),o[w]){for(n=++l;n<i;n++)if(r.relative[t[n].type])break;return At(l>1&&yt(u),l>1&&xt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(q,"$1"),o,l<n&&St(t.slice(l,n)),n<i&&St(t=t.slice(n)),n<i&&xt(t))}u.push(o)}return yt(u)}function _t(t,e){var o=e.length>0,n=t.length>0,i=function(i,a,s,l,d){var p,f,g,h=0,v="0",x=i&&[],w=[],y=c,C=i||n&&r.find["TAG"]("*",d),A=k+=null==y?1:Math.random()||.1,S=C.length;for(d&&(c=a===b||a||d);v!==S&&null!=(p=C[v]);v++){if(n&&p){f=0,a||p.ownerDocument===b||(u(p),s=!m);while(g=t[f++])if(g(p,a||b,s)){l.push(p);break}d&&(k=A)}o&&((p=!g&&p)&&h--,i&&x.push(p))}if(h+=v,o&&v!==h){f=0;while(g=e[f++])g(x,w,a,s);if(i){if(h>0)while(v--)x[v]||w[v]||(w[v]=P.call(l));w=Ct(w)}N.apply(l,w),d&&!i&&w.length>0&&h+e.length>1&&st.uniqueSort(l)}return d&&(k=A,c=y),x};return o?ct(i):i}return vt.prototype=r.filters=r.pseudos,r.setFilters=new vt,a=st.tokenize=function(t,e){var o,n,i,a,s,l,c,d=S[t+" "];if(d)return e?0:d.slice(0);s=t,l=[],c=r.preFilter;while(s){for(a in o&&!(n=F.exec(s))||(n&&(s=s.slice(n[0].length)||s),l.push(i=[])),o=!1,(n=U.exec(s))&&(o=n.shift(),i.push({value:o,type:n[0].replace(q," ")}),s=s.slice(o.length)),r.filter)!(n=G[a].exec(s))||c[a]&&!(n=c[a](n))||(o=n.shift(),i.push({value:o,type:a,matches:n}),s=s.slice(o.length));if(!o)break}return e?s.length:s?st.error(t):S(t,l).slice(0)},s=st.compile=function(t,e){var o,r=[],n=[],i=_[t+" "];if(!i){e||(e=a(t)),o=e.length;while(o--)i=St(e[o]),i[w]?r.push(i):n.push(i);i=_(t,_t(n,r)),i.selector=t}return i},l=st.select=function(t,e,o,n){var i,l,c,d,p,u="function"===typeof t&&t,b=!n&&a(t=u.selector||t);if(o=o||[],1===b.length){if(l=b[0]=b[0].slice(0),l.length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&r.relative[l[1].type]){if(e=(r.find["ID"](c.matches[0].replace(et,ot),e)||[])[0],!e)return o;u&&(e=e.parentNode),t=t.slice(l.shift().value.length)}i=G["needsContext"].test(t)?0:l.length;while(i--){if(c=l[i],r.relative[d=c.type])break;if((p=r.find[d])&&(n=p(c.matches[0].replace(et,ot),tt.test(l[0].type)&&ht(e.parentNode)||e))){if(l.splice(i,1),t=n.length&&xt(l),!t)return N.apply(o,n),o;break}}}return(u||s(t,b))(n,e,!m,o,!e||tt.test(t)&&ht(e.parentNode)||e),o},o.sortStable=w.split("").sort(E).join("")===w,o.detectDuplicates=!!p,u(),o.sortDetached=dt((function(t){return 1&t.compareDocumentPosition(b.createElement("fieldset"))})),dt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||pt("type|href|height|width",(function(t,e,o){if(!o)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),o.attributes&&dt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||pt("value",(function(t,e,o){if(!o&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),dt((function(t){return null==t.getAttribute("disabled")}))||pt(I,(function(t,e,o){var r;if(!o)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),st}(o);S.find=E,S.expr=E.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=E.uniqueSort,S.text=E.getText,S.isXMLDoc=E.isXML,S.contains=E.contains,S.escapeSelector=E.escape;var O=function(t,e,o){var r=[],n=void 0!==o;while((t=t[e])&&9!==t.nodeType)if(1===t.nodeType){if(n&&S(t).is(o))break;r.push(t)}return r},j=function(t,e){for(var o=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&o.push(t);return o},P=S.expr.match.needsContext;function z(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(t,e,o){return x(e)?S.grep(t,(function(t,r){return!!e.call(t,r,t)!==o})):e.nodeType?S.grep(t,(function(t){return t===e!==o})):"string"!==typeof e?S.grep(t,(function(t){return u.call(e,t)>-1!==o})):S.filter(e,t,o)}S.filter=function(t,e,o){var r=e[0];return o&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,o,r=this.length,n=this;if("string"!==typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e<r;e++)if(S.contains(n[e],this))return!0})));for(o=this.pushStack([]),e=0;e<r;e++)S.find(t,n[e],o);return r>1?S.uniqueSort(o):o},filter:function(t){return this.pushStack(D(this,t||[],!1))},not:function(t){return this.pushStack(D(this,t||[],!0))},is:function(t){return!!D(this,"string"===typeof t&&P.test(t)?S(t):t||[],!1).length}});var M,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,R=S.fn.init=function(t,e,o){var r,n;if(!t)return this;if(o=o||M,"string"===typeof t){if(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:I.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||o).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:s,!0)),N.test(r[1])&&S.isPlainObject(e))for(r in e)x(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return n=s.getElementById(r[2]),n&&(this[0]=n,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):x(t)?void 0!==o.ready?o.ready(t):t(S):S.makeArray(t,this)};R.prototype=S.fn,M=S(s);var B=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function $(t,e){while((t=t[e])&&1!==t.nodeType);return t}S.fn.extend({has:function(t){var e=S(t,this),o=e.length;return this.filter((function(){for(var t=0;t<o;t++)if(S.contains(this,e[t]))return!0}))},closest:function(t,e){var o,r=0,n=this.length,i=[],a="string"!==typeof t&&S(t);if(!P.test(t))for(;r<n;r++)for(o=this[r];o&&o!==e;o=o.parentNode)if(o.nodeType<11&&(a?a.index(o)>-1:1===o.nodeType&&S.find.matchesSelector(o,t))){i.push(o);break}return this.pushStack(i.length>1?S.uniqueSort(i):i)},index:function(t){return t?"string"===typeof t?u.call(S(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return O(t,"parentNode")},parentsUntil:function(t,e,o){return O(t,"parentNode",o)},next:function(t){return $(t,"nextSibling")},prev:function(t){return $(t,"previousSibling")},nextAll:function(t){return O(t,"nextSibling")},prevAll:function(t){return O(t,"previousSibling")},nextUntil:function(t,e,o){return O(t,"nextSibling",o)},prevUntil:function(t,e,o){return O(t,"previousSibling",o)},siblings:function(t){return j((t.parentNode||{}).firstChild,t)},children:function(t){return j(t.firstChild)},contents:function(t){return"undefined"!==typeof t.contentDocument?t.contentDocument:(z(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(o,r){var n=S.map(this,e,o);return"Until"!==t.slice(-5)&&(r=o),r&&"string"===typeof r&&(n=S.filter(r,n)),this.length>1&&(L[t]||S.uniqueSort(n),B.test(t)&&n.reverse()),this.pushStack(n)}}));var H=/[^\x20\t\r\n\f]+/g;function q(t){var e={};return S.each(t.match(H)||[],(function(t,o){e[o]=!0})),e}function F(t){return t}function U(t){throw t}function V(t,e,o,r){var n;try{t&&x(n=t.promise)?n.call(t).done(e).fail(o):t&&x(n=t.then)?n.call(t,e,o):e.apply(void 0,[t].slice(r))}catch(t){o.apply(void 0,[t])}}S.Callbacks=function(t){t="string"===typeof t?q(t):S.extend({},t);var e,o,r,n,i=[],a=[],s=-1,l=function(){for(n=n||t.once,r=e=!0;a.length;s=-1){o=a.shift();while(++s<i.length)!1===i[s].apply(o[0],o[1])&&t.stopOnFalse&&(s=i.length,o=!1)}t.memory||(o=!1),e=!1,n&&(i=o?[]:"")},c={add:function(){return i&&(o&&!e&&(s=i.length-1,a.push(o)),function e(o){S.each(o,(function(o,r){x(r)?t.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==C(r)&&e(r)}))}(arguments),o&&!e&&l()),this},remove:function(){return S.each(arguments,(function(t,e){var o;while((o=S.inArray(e,i,o))>-1)i.splice(o,1),o<=s&&s--})),this},has:function(t){return t?S.inArray(t,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return n=a=[],i=o="",this},disabled:function(){return!i},lock:function(){return n=a=[],o||e||(i=o=""),this},locked:function(){return!!n},fireWith:function(t,o){return n||(o=o||[],o=[t,o.slice?o.slice():o],a.push(o),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},S.extend({Deferred:function(t){var e=[["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"]],r="pending",n={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(t){return n.then(null,t)},pipe:function(){var t=arguments;return S.Deferred((function(o){S.each(e,(function(e,r){var n=x(t[r[4]])&&t[r[4]];i[r[1]]((function(){var t=n&&n.apply(this,arguments);t&&x(t.promise)?t.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[r[0]+"With"](this,n?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,n){var i=0;function a(t,e,r,n){return function(){var s=this,l=arguments,c=function(){var o,c;if(!(t<i)){if(o=r.apply(s,l),o===e.promise())throw new TypeError("Thenable self-resolution");c=o&&("object"===typeof o||"function"===typeof o)&&o.then,x(c)?n?c.call(o,a(i,e,F,n),a(i,e,U,n)):(i++,c.call(o,a(i,e,F,n),a(i,e,U,n),a(i,e,F,e.notifyWith))):(r!==F&&(s=void 0,l=[o]),(n||e.resolveWith)(s,l))}},d=n?c:function(){try{c()}catch(o){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(o,d.stackTrace),t+1>=i&&(r!==U&&(s=void 0,l=[o]),e.rejectWith(s,l))}};t?d():(S.Deferred.getStackHook&&(d.stackTrace=S.Deferred.getStackHook()),o.setTimeout(d))}}return S.Deferred((function(o){e[0][3].add(a(0,o,x(n)?n:F,o.notifyWith)),e[1][3].add(a(0,o,x(t)?t:F)),e[2][3].add(a(0,o,x(r)?r:U))})).promise()},promise:function(t){return null!=t?S.extend(t,n):n}},i={};return S.each(e,(function(t,o){var a=o[2],s=o[5];n[o[1]]=a.add,s&&a.add((function(){r=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(o[3].fire),i[o[0]]=function(){return i[o[0]+"With"](this===i?void 0:this,arguments),this},i[o[0]+"With"]=a.fireWith})),n.promise(i),t&&t.call(i,i),i},when:function(t){var e=arguments.length,o=e,r=Array(o),n=c.call(arguments),i=S.Deferred(),a=function(t){return function(o){r[t]=this,n[t]=arguments.length>1?c.call(arguments):o,--e||i.resolveWith(r,n)}};if(e<=1&&(V(t,i.done(a(o)).resolve,i.reject,!e),"pending"===i.state()||x(n[o]&&n[o].then)))return i.then();while(o--)V(n[o],a(o),i.reject);return i.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){o.console&&o.console.warn&&t&&W.test(t.name)&&o.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){o.setTimeout((function(){throw t}))};var X=S.Deferred();function G(){s.removeEventListener("DOMContentLoaded",G),o.removeEventListener("load",G),S.ready()}S.fn.ready=function(t){return X.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||X.resolveWith(s,[S]))}}),S.ready.then=X.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?o.setTimeout(S.ready):(s.addEventListener("DOMContentLoaded",G),o.addEventListener("load",G));var Y=function(t,e,o,r,n,i,a){var s=0,l=t.length,c=null==o;if("object"===C(o))for(s in n=!0,o)Y(t,e,s,o[s],!0,i,a);else if(void 0!==r&&(n=!0,x(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,o){return c.call(S(t),o)})),e))for(;s<l;s++)e(t[s],o,a?r:r.call(t[s],s,e(t[s],o)));return n?t:c?e.call(t):l?e(t[0],o):i},Q=/^-ms-/,J=/-([a-z])/g;function K(t,e){return e.toUpperCase()}function Z(t){return t.replace(Q,"ms-").replace(J,K)}var tt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function et(){this.expando=S.expando+et.uid++}et.uid=1,et.prototype={cache:function(t){var e=t[this.expando];return e||(e={},tt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,o){var r,n=this.cache(t);if("string"===typeof e)n[Z(e)]=o;else for(r in e)n[Z(r)]=e[r];return n},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Z(e)]},access:function(t,e,o){return void 0===e||e&&"string"===typeof e&&void 0===o?this.get(t,e):(this.set(t,e,o),void 0!==o?o:e)},remove:function(t,e){var o,r=t[this.expando];if(void 0!==r){if(void 0!==e){Array.isArray(e)?e=e.map(Z):(e=Z(e),e=e in r?[e]:e.match(H)||[]),o=e.length;while(o--)delete r[e[o]]}(void 0===e||S.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var ot=new et,rt=new et,nt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,it=/[A-Z]/g;function at(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:nt.test(t)?JSON.parse(t):t)}function st(t,e,o){var r;if(void 0===o&&1===t.nodeType)if(r="data-"+e.replace(it,"-$&").toLowerCase(),o=t.getAttribute(r),"string"===typeof o){try{o=at(o)}catch(n){}rt.set(t,e,o)}else o=void 0;return o}S.extend({hasData:function(t){return rt.hasData(t)||ot.hasData(t)},data:function(t,e,o){return rt.access(t,e,o)},removeData:function(t,e){rt.remove(t,e)},_data:function(t,e,o){return ot.access(t,e,o)},_removeData:function(t,e){ot.remove(t,e)}}),S.fn.extend({data:function(t,e){var o,r,n,i=this[0],a=i&&i.attributes;if(void 0===t){if(this.length&&(n=rt.get(i),1===i.nodeType&&!ot.get(i,"hasDataAttrs"))){o=a.length;while(o--)a[o]&&(r=a[o].name,0===r.indexOf("data-")&&(r=Z(r.slice(5)),st(i,r,n[r])));ot.set(i,"hasDataAttrs",!0)}return n}return"object"===typeof t?this.each((function(){rt.set(this,t)})):Y(this,(function(e){var o;if(i&&void 0===e)return o=rt.get(i,t),void 0!==o?o:(o=st(i,t),void 0!==o?o:void 0);this.each((function(){rt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){rt.remove(this,t)}))}}),S.extend({queue:function(t,e,o){var r;if(t)return e=(e||"fx")+"queue",r=ot.get(t,e),o&&(!r||Array.isArray(o)?r=ot.access(t,e,S.makeArray(o)):r.push(o)),r||[]},dequeue:function(t,e){e=e||"fx";var o=S.queue(t,e),r=o.length,n=o.shift(),i=S._queueHooks(t,e),a=function(){S.dequeue(t,e)};"inprogress"===n&&(n=o.shift(),r--),n&&("fx"===e&&o.unshift("inprogress"),delete i.stop,n.call(t,a,i)),!r&&i&&i.empty.fire()},_queueHooks:function(t,e){var o=e+"queueHooks";return ot.get(t,o)||ot.access(t,o,{empty:S.Callbacks("once memory").add((function(){ot.remove(t,[e+"queue",o])}))})}}),S.fn.extend({queue:function(t,e){var o=2;return"string"!==typeof t&&(e=t,t="fx",o--),arguments.length<o?S.queue(this[0],t):void 0===e?this:this.each((function(){var o=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==o[0]&&S.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){S.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var o,r=1,n=S.Deferred(),i=this,a=this.length,s=function(){--r||n.resolveWith(i,[i])};"string"!==typeof t&&(e=t,t=void 0),t=t||"fx";while(a--)o=ot.get(i[a],t+"queueHooks"),o&&o.empty&&(r++,o.empty.add(s));return s(),n.promise(e)}});var lt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+lt+")([a-z%]*)$","i"),dt=["Top","Right","Bottom","Left"],pt=s.documentElement,ut=function(t){return S.contains(t.ownerDocument,t)},bt={composed:!0};pt.attachShadow&&(ut=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(bt)===t.ownerDocument});var ft=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&ut(t)&&"none"===S.css(t,"display")},mt=function(t,e,o,r){var n,i,a={};for(i in e)a[i]=t.style[i],t.style[i]=e[i];for(i in n=o.apply(t,r||[]),e)t.style[i]=a[i];return n};function gt(t,e,o,r){var n,i,a=20,s=r?function(){return r.cur()}:function(){return S.css(t,e,"")},l=s(),c=o&&o[3]||(S.cssNumber[e]?"":"px"),d=t.nodeType&&(S.cssNumber[e]||"px"!==c&&+l)&&ct.exec(S.css(t,e));if(d&&d[3]!==c){l/=2,c=c||d[3],d=+l||1;while(a--)S.style(t,e,d+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),d/=i;d*=2,S.style(t,e,d+c),o=o||[]}return o&&(d=+d||+l||0,n=o[1]?d+(o[1]+1)*o[2]:+o[2],r&&(r.unit=c,r.start=d,r.end=n)),n}var ht={};function vt(t){var e,o=t.ownerDocument,r=t.nodeName,n=ht[r];return n||(e=o.body.appendChild(o.createElement(r)),n=S.css(e,"display"),e.parentNode.removeChild(e),"none"===n&&(n="block"),ht[r]=n,n)}function xt(t,e){for(var o,r,n=[],i=0,a=t.length;i<a;i++)r=t[i],r.style&&(o=r.style.display,e?("none"===o&&(n[i]=ot.get(r,"display")||null,n[i]||(r.style.display="")),""===r.style.display&&ft(r)&&(n[i]=vt(r))):"none"!==o&&(n[i]="none",ot.set(r,"display",o)));for(i=0;i<a;i++)null!=n[i]&&(t[i].style.display=n[i]);return t}S.fn.extend({show:function(){return xt(this,!0)},hide:function(){return xt(this)},toggle:function(t){return"boolean"===typeof t?t?this.show():this.hide():this.each((function(){ft(this)?S(this).show():S(this).hide()}))}});var wt=/^(?:checkbox|radio)$/i,yt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,kt=/^$|^module$|\/(?:java|ecma)script/i,Ct={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function At(t,e){var o;return o="undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!==typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&z(t,e)?S.merge([t],o):o}function St(t,e){for(var o=0,r=t.length;o<r;o++)ot.set(t[o],"globalEval",!e||ot.get(e[o],"globalEval"))}Ct.optgroup=Ct.option,Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td;var _t=/<|&#?\w+;/;function Tt(t,e,o,r,n){for(var i,a,s,l,c,d,p=e.createDocumentFragment(),u=[],b=0,f=t.length;b<f;b++)if(i=t[b],i||0===i)if("object"===C(i))S.merge(u,i.nodeType?[i]:i);else if(_t.test(i)){a=a||p.appendChild(e.createElement("div")),s=(yt.exec(i)||["",""])[1].toLowerCase(),l=Ct[s]||Ct._default,a.innerHTML=l[1]+S.htmlPrefilter(i)+l[2],d=l[0];while(d--)a=a.lastChild;S.merge(u,a.childNodes),a=p.firstChild,a.textContent=""}else u.push(e.createTextNode(i));p.textContent="",b=0;while(i=u[b++])if(r&&S.inArray(i,r)>-1)n&&n.push(i);else if(c=ut(i),a=At(p.appendChild(i),"script"),c&&St(a),o){d=0;while(i=a[d++])kt.test(i.type||"")&&o.push(i)}return p}(function(){var t=s.createDocumentFragment(),e=t.appendChild(s.createElement("div")),o=s.createElement("input");o.setAttribute("type","radio"),o.setAttribute("checked","checked"),o.setAttribute("name","t"),e.appendChild(o),v.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue})();var Et=/^key/,Ot=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,jt=/^([^.]*)(?:\.(.+)|)/;function Pt(){return!0}function zt(){return!1}function Nt(t,e){return t===Dt()===("focus"===e)}function Dt(){try{return s.activeElement}catch(t){}}function Mt(t,e,o,r,n,i){var a,s;if("object"===typeof e){for(s in"string"!==typeof o&&(r=r||o,o=void 0),e)Mt(t,s,o,r,e[s],i);return t}if(null==r&&null==n?(n=o,r=o=void 0):null==n&&("string"===typeof o?(n=r,r=void 0):(n=r,r=o,o=void 0)),!1===n)n=zt;else if(!n)return t;return 1===i&&(a=n,n=function(t){return S().off(t),a.apply(this,arguments)},n.guid=a.guid||(a.guid=S.guid++)),t.each((function(){S.event.add(this,e,n,r,o)}))}function It(t,e,o){o?(ot.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var r,n,i=ot.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=c.call(arguments),ot.set(this,e,i),r=o(this,e),this[e](),n=ot.get(this,e),i!==n||r?ot.set(this,e,!1):n=void 0,i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(ot.set(this,e,S.event.trigger(S.extend(i.shift(),S.Event.prototype),i,this)),t.stopImmediatePropagation())}})):S.event.add(t,e,Pt)}S.event={global:{},add:function(t,e,o,r,n){var i,a,s,l,c,d,p,u,b,f,m,g=ot.get(t);if(g){o.handler&&(i=o,o=i.handler,n=i.selector),n&&S.find.matchesSelector(pt,n),o.guid||(o.guid=S.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(e){return"undefined"!==typeof S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(H)||[""],c=e.length;while(c--)s=jt.exec(e[c])||[],b=m=s[1],f=(s[2]||"").split(".").sort(),b&&(p=S.event.special[b]||{},b=(n?p.delegateType:p.bindType)||b,p=S.event.special[b]||{},d=S.extend({type:b,origType:m,data:r,handler:o,guid:o.guid,selector:n,needsContext:n&&S.expr.match.needsContext.test(n),namespace:f.join(".")},i),(u=l[b])||(u=l[b]=[],u.delegateCount=0,p.setup&&!1!==p.setup.call(t,r,f,a)||t.addEventListener&&t.addEventListener(b,a)),p.add&&(p.add.call(t,d),d.handler.guid||(d.handler.guid=o.guid)),n?u.splice(u.delegateCount++,0,d):u.push(d),S.event.global[b]=!0)}},remove:function(t,e,o,r,n){var i,a,s,l,c,d,p,u,b,f,m,g=ot.hasData(t)&&ot.get(t);if(g&&(l=g.events)){e=(e||"").match(H)||[""],c=e.length;while(c--)if(s=jt.exec(e[c])||[],b=m=s[1],f=(s[2]||"").split(".").sort(),b){p=S.event.special[b]||{},b=(r?p.delegateType:p.bindType)||b,u=l[b]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=u.length;while(i--)d=u[i],!n&&m!==d.origType||o&&o.guid!==d.guid||s&&!s.test(d.namespace)||r&&r!==d.selector&&("**"!==r||!d.selector)||(u.splice(i,1),d.selector&&u.delegateCount--,p.remove&&p.remove.call(t,d));a&&!u.length&&(p.teardown&&!1!==p.teardown.call(t,f,g.handle)||S.removeEvent(t,b,g.handle),delete l[b])}else for(b in l)S.event.remove(t,b+e[c],o,r,!0);S.isEmptyObject(l)&&ot.remove(t,"handle events")}},dispatch:function(t){var e,o,r,n,i,a,s=S.event.fix(t),l=new Array(arguments.length),c=(ot.get(this,"events")||{})[s.type]||[],d=S.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,s)){a=S.event.handlers.call(this,s,c),e=0;while((n=a[e++])&&!s.isPropagationStopped()){s.currentTarget=n.elem,o=0;while((i=n.handlers[o++])&&!s.isImmediatePropagationStopped())s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,r=((S.event.special[i.origType]||{}).handle||i.handler).apply(n.elem,l),void 0!==r&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()))}return d.postDispatch&&d.postDispatch.call(this,s),s.result}},handlers:function(t,e){var o,r,n,i,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(i=[],a={},o=0;o<l;o++)r=e[o],n=r.selector+" ",void 0===a[n]&&(a[n]=r.needsContext?S(n,this).index(c)>-1:S.find(n,this,null,[c]).length),a[n]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(S.Event.prototype,t,{enumerable:!0,configurable:!0,get:x(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(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return wt.test(e.type)&&e.click&&z(e,"input")&&void 0===ot.get(e,"click")&&It(e,"click",Pt),!1},trigger:function(t){var e=this||t;return wt.test(e.type)&&e.click&&z(e,"input")&&void 0===ot.get(e,"click")&&It(e,"click"),!0},_default:function(t){var e=t.target;return wt.test(e.type)&&e.click&&z(e,"input")&&ot.get(e,"click")||z(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,o){t.removeEventListener&&t.removeEventListener(e,o)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Pt:zt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:zt,isPropagationStopped:zt,isImmediatePropagationStopped:zt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Pt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Pt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Pt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Et.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Ot.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){S.event.special[t]={setup:function(){return It(this,t,Nt),!1},trigger:function(){return It(this,t),!0},delegateType:e}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var o,r=this,n=t.relatedTarget,i=t.handleObj;return n&&(n===r||S.contains(r,n))||(t.type=i.origType,o=i.handler.apply(this,arguments),t.type=e),o}}})),S.fn.extend({on:function(t,e,o,r){return Mt(this,t,e,o,r)},one:function(t,e,o,r){return Mt(this,t,e,o,r,1)},off:function(t,e,o){var r,n;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof t){for(n in t)this.off(n,e,t[n]);return this}return!1!==e&&"function"!==typeof e||(o=e,e=void 0),!1===o&&(o=zt),this.each((function(){S.event.remove(this,t,o,e)}))}});var Rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Bt=/<script|<style|<link/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,$t=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ht(t,e){return z(t,"table")&&z(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ft(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ut(t,e){var o,r,n,i,a,s,l,c;if(1===e.nodeType){if(ot.hasData(t)&&(i=ot.access(t),a=ot.set(e,i),c=i.events,c))for(n in delete a.handle,a.events={},c)for(o=0,r=c[n].length;o<r;o++)S.event.add(e,n,c[n][o]);rt.hasData(t)&&(s=rt.access(t),l=S.extend({},s),rt.set(e,l))}}function Vt(t,e){var o=e.nodeName.toLowerCase();"input"===o&&wt.test(t.type)?e.checked=t.checked:"input"!==o&&"textarea"!==o||(e.defaultValue=t.defaultValue)}function Wt(t,e,o,r){e=d.apply([],e);var n,i,a,s,l,c,p=0,u=t.length,b=u-1,f=e[0],m=x(f);if(m||u>1&&"string"===typeof f&&!v.checkClone&&Lt.test(f))return t.each((function(n){var i=t.eq(n);m&&(e[0]=f.call(this,n,i.html())),Wt(i,e,o,r)}));if(u&&(n=Tt(e,t[0].ownerDocument,!1,t,r),i=n.firstChild,1===n.childNodes.length&&(n=i),i||r)){for(a=S.map(At(n,"script"),qt),s=a.length;p<u;p++)l=n,p!==b&&(l=S.clone(l,!0,!0),s&&S.merge(a,At(l,"script"))),o.call(t[p],l,p);if(s)for(c=a[a.length-1].ownerDocument,S.map(a,Ft),p=0;p<s;p++)l=a[p],kt.test(l.type||"")&&!ot.access(l,"globalEval")&&S.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?S._evalUrl&&!l.noModule&&S._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):k(l.textContent.replace($t,""),l,c))}return t}function Xt(t,e,o){for(var r,n=e?S.filter(e,t):t,i=0;null!=(r=n[i]);i++)o||1!==r.nodeType||S.cleanData(At(r)),r.parentNode&&(o&&ut(r)&&St(At(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t.replace(Rt,"<$1></$2>")},clone:function(t,e,o){var r,n,i,a,s=t.cloneNode(!0),l=ut(t);if(!v.noCloneChecked&&(1===t.nodeType||11===t.nodeType)&&!S.isXMLDoc(t))for(a=At(s),i=At(t),r=0,n=i.length;r<n;r++)Vt(i[r],a[r]);if(e)if(o)for(i=i||At(t),a=a||At(s),r=0,n=i.length;r<n;r++)Ut(i[r],a[r]);else Ut(t,s);return a=At(s,"script"),a.length>0&&St(a,!l&&At(t,"script")),s},cleanData:function(t){for(var e,o,r,n=S.event.special,i=0;void 0!==(o=t[i]);i++)if(tt(o)){if(e=o[ot.expando]){if(e.events)for(r in e.events)n[r]?S.event.remove(o,r):S.removeEvent(o,r,e.handle);o[ot.expando]=void 0}o[rt.expando]&&(o[rt.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return Y(this,(function(t){return void 0===t?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Wt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ht(this,t);e.appendChild(t)}}))},prepend:function(){return Wt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ht(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Wt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Wt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(At(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return Y(this,(function(t){var e=this[0]||{},o=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"===typeof t&&!Bt.test(t)&&!Ct[(yt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;o<r;o++)e=this[o]||{},1===e.nodeType&&(S.cleanData(At(e,!1)),e.innerHTML=t);e=0}catch(n){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Wt(this,arguments,(function(e){var o=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(At(this)),o&&o.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var o,r=[],n=S(t),i=n.length-1,a=0;a<=i;a++)o=a===i?this:this.clone(!0),S(n[a])[e](o),p.apply(r,o.get());return this.pushStack(r)}}));var Gt=new RegExp("^("+lt+")(?!px)[a-z%]+$","i"),Yt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=o),e.getComputedStyle(t)},Qt=new RegExp(dt.join("|"),"i");function Jt(t,e,o){var r,n,i,a,s=t.style;return o=o||Yt(t),o&&(a=o.getPropertyValue(e)||o[e],""!==a||ut(t)||(a=S.style(t,e)),!v.pixelBoxStyles()&&Gt.test(a)&&Qt.test(e)&&(r=s.width,n=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=o.width,s.width=r,s.minWidth=n,s.maxWidth=i)),void 0!==a?a+"":a}function Kt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}(function(){function t(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",pt.appendChild(c).appendChild(d);var t=o.getComputedStyle(d);r="1%"!==t.top,l=12===e(t.marginLeft),d.style.right="60%",a=36===e(t.right),n=36===e(t.width),d.style.position="absolute",i=12===e(d.offsetWidth/3),pt.removeChild(c),d=null}}function e(t){return Math.round(parseFloat(t))}var r,n,i,a,l,c=s.createElement("div"),d=s.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===d.style.backgroundClip,S.extend(v,{boxSizingReliable:function(){return t(),n},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),i}}))})();var Zt=["Webkit","Moz","ms"],te=s.createElement("div").style,ee={};function oe(t){var e=t[0].toUpperCase()+t.slice(1),o=Zt.length;while(o--)if(t=Zt[o]+e,t in te)return t}function re(t){var e=S.cssProps[t]||ee[t];return e||(t in te?t:ee[t]=oe(t)||t)}var ne=/^(none|table(?!-c[ea]).+)/,ie=/^--/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function le(t,e,o){var r=ct.exec(e);return r?Math.max(0,r[2]-(o||0))+(r[3]||"px"):e}function ce(t,e,o,r,n,i){var a="width"===e?1:0,s=0,l=0;if(o===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===o&&(l+=S.css(t,o+dt[a],!0,n)),r?("content"===o&&(l-=S.css(t,"padding"+dt[a],!0,n)),"margin"!==o&&(l-=S.css(t,"border"+dt[a]+"Width",!0,n))):(l+=S.css(t,"padding"+dt[a],!0,n),"padding"!==o?l+=S.css(t,"border"+dt[a]+"Width",!0,n):s+=S.css(t,"border"+dt[a]+"Width",!0,n));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-i-l-s-.5))||0),l}function de(t,e,o){var r=Yt(t),n=!v.boxSizingReliable()||o,i=n&&"border-box"===S.css(t,"boxSizing",!1,r),a=i,s=Jt(t,e,r),l="offset"+e[0].toUpperCase()+e.slice(1);if(Gt.test(s)){if(!o)return s;s="auto"}return(!v.boxSizingReliable()&&i||"auto"===s||!parseFloat(s)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),a=l in t,a&&(s=t[l])),s=parseFloat(s)||0,s+ce(t,e,o||(i?"border":"content"),a,r,s)+"px"}function pe(t,e,o,r,n){return new pe.prototype.init(t,e,o,r,n)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var o=Jt(t,"opacity");return""===o?"1":o}}}},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(t,e,o,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var n,i,a,s=Z(e),l=ie.test(e),c=t.style;if(l||(e=re(s)),a=S.cssHooks[e]||S.cssHooks[s],void 0===o)return a&&"get"in a&&void 0!==(n=a.get(t,!1,r))?n:c[e];i=typeof o,"string"===i&&(n=ct.exec(o))&&n[1]&&(o=gt(t,e,n),i="number"),null!=o&&o===o&&("number"!==i||l||(o+=n&&n[3]||(S.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==o||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(o=a.set(t,o,r))||(l?c.setProperty(e,o):c[e]=o))}},css:function(t,e,o,r){var n,i,a,s=Z(e),l=ie.test(e);return l||(e=re(s)),a=S.cssHooks[e]||S.cssHooks[s],a&&"get"in a&&(n=a.get(t,!0,o)),void 0===n&&(n=Jt(t,e,r)),"normal"===n&&e in se&&(n=se[e]),""===o||o?(i=parseFloat(n),!0===o||isFinite(i)?i||0:n):n}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,o,r){if(o)return!ne.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?de(t,e,r):mt(t,ae,(function(){return de(t,e,r)}))},set:function(t,o,r){var n,i=Yt(t),a=!v.scrollboxSize()&&"absolute"===i.position,s=a||r,l=s&&"border-box"===S.css(t,"boxSizing",!1,i),c=r?ce(t,e,r,l,i):0;return l&&a&&(c-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-ce(t,e,"border",!1,i)-.5)),c&&(n=ct.exec(o))&&"px"!==(n[3]||"px")&&(t.style[e]=o,o=S.css(t,e)),le(t,o,c)}}})),S.cssHooks.marginLeft=Kt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Jt(t,"marginLeft"))||t.getBoundingClientRect().left-mt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.cssHooks[t+e]={expand:function(o){for(var r=0,n={},i="string"===typeof o?o.split(" "):[o];r<4;r++)n[t+dt[r]+e]=i[r]||i[r-2]||i[0];return n}},"margin"!==t&&(S.cssHooks[t+e].set=le)})),S.fn.extend({css:function(t,e){return Y(this,(function(t,e,o){var r,n,i={},a=0;if(Array.isArray(e)){for(r=Yt(t),n=e.length;a<n;a++)i[e[a]]=S.css(t,e[a],!1,r);return i}return void 0!==o?S.style(t,e,o):S.css(t,e)}),t,e,arguments.length>1)}}),S.Tween=pe,pe.prototype={constructor:pe,init:function(t,e,o,r,n,i){this.elem=t,this.prop=o,this.easing=n||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=i||(S.cssNumber[o]?"":"px")},cur:function(){var t=pe.propHooks[this.prop];return t&&t.get?t.get(this):pe.propHooks._default.get(this)},run:function(t){var e,o=pe.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),o&&o.set?o.set(this):pe.propHooks._default.set(this),this}},pe.prototype.init.prototype=pe.prototype,pe.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},pe.propHooks.scrollTop=pe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=pe.prototype.init,S.fx.step={};var ue,be,fe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){be&&(!1===s.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(ge):o.setTimeout(ge,S.fx.interval),S.fx.tick())}function he(){return o.setTimeout((function(){ue=void 0})),ue=Date.now()}function ve(t,e){var o,r=0,n={height:t};for(e=e?1:0;r<4;r+=2-e)o=dt[r],n["margin"+o]=n["padding"+o]=t;return e&&(n.opacity=n.width=t),n}function xe(t,e,o){for(var r,n=(ke.tweeners[e]||[]).concat(ke.tweeners["*"]),i=0,a=n.length;i<a;i++)if(r=n[i].call(o,e,t))return r}function we(t,e,o){var r,n,i,a,s,l,c,d,p="width"in e||"height"in e,u=this,b={},f=t.style,m=t.nodeType&&ft(t),g=ot.get(t,"fxshow");for(r in o.queue||(a=S._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,u.always((function(){u.always((function(){a.unqueued--,S.queue(t,"fx").length||a.empty.fire()}))}))),e)if(n=e[r],fe.test(n)){if(delete e[r],i=i||"toggle"===n,n===(m?"hide":"show")){if("show"!==n||!g||void 0===g[r])continue;m=!0}b[r]=g&&g[r]||S.style(t,r)}if(l=!S.isEmptyObject(e),l||!S.isEmptyObject(b))for(r in p&&1===t.nodeType&&(o.overflow=[f.overflow,f.overflowX,f.overflowY],c=g&&g.display,null==c&&(c=ot.get(t,"display")),d=S.css(t,"display"),"none"===d&&(c?d=c:(xt([t],!0),c=t.style.display||c,d=S.css(t,"display"),xt([t]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===S.css(t,"float")&&(l||(u.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),o.overflow&&(f.overflow="hidden",u.always((function(){f.overflow=o.overflow[0],f.overflowX=o.overflow[1],f.overflowY=o.overflow[2]}))),l=!1,b)l||(g?"hidden"in g&&(m=g.hidden):g=ot.access(t,"fxshow",{display:c}),i&&(g.hidden=!m),m&&xt([t],!0),u.done((function(){for(r in m||xt([t]),ot.remove(t,"fxshow"),b)S.style(t,r,b[r])}))),l=xe(m?g[r]:0,r,u),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}function ye(t,e){var o,r,n,i,a;for(o in t)if(r=Z(o),n=e[r],i=t[o],Array.isArray(i)&&(n=i[1],i=t[o]=i[0]),o!==r&&(t[r]=i,delete t[o]),a=S.cssHooks[r],a&&"expand"in a)for(o in i=a.expand(i),delete t[r],i)o in t||(t[o]=i[o],e[o]=n);else e[r]=n}function ke(t,e,o){var r,n,i=0,a=ke.prefilters.length,s=S.Deferred().always((function(){delete l.elem})),l=function(){if(n)return!1;for(var e=ue||he(),o=Math.max(0,c.startTime+c.duration-e),r=o/c.duration||0,i=1-r,a=0,l=c.tweens.length;a<l;a++)c.tweens[a].run(i);return s.notifyWith(t,[c,i,o]),i<1&&l?o:(l||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},o),originalProperties:e,originalOptions:o,startTime:ue||he(),duration:o.duration,tweens:[],createTween:function(e,o){var r=S.Tween(t,c.opts,e,o,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var o=0,r=e?c.tweens.length:0;if(n)return this;for(n=!0;o<r;o++)c.tweens[o].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),d=c.props;for(ye(d,c.opts.specialEasing);i<a;i++)if(r=ke.prefilters[i].call(c,t,d,c.opts),r)return x(r.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return S.map(d,xe,c),x(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(ke,{tweeners:{"*":[function(t,e){var o=this.createTween(t,e);return gt(o.elem,t,ct.exec(e),o),o}]},tweener:function(t,e){x(t)?(e=t,t=["*"]):t=t.match(H);for(var o,r=0,n=t.length;r<n;r++)o=t[r],ke.tweeners[o]=ke.tweeners[o]||[],ke.tweeners[o].unshift(e)},prefilters:[we],prefilter:function(t,e){e?ke.prefilters.unshift(t):ke.prefilters.push(t)}}),S.speed=function(t,e,o){var r=t&&"object"===typeof t?S.extend({},t):{complete:o||!o&&e||x(t)&&t,duration:t,easing:o&&e||e&&!x(e)&&e};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(){x(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(t,e,o,r){return this.filter(ft).css("opacity",0).show().end().animate({opacity:e},t,o,r)},animate:function(t,e,o,r){var n=S.isEmptyObject(t),i=S.speed(e,o,r),a=function(){var e=ke(this,S.extend({},t),i);(n||ot.get(this,"finish"))&&e.stop(!0)};return a.finish=a,n||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(t,e,o){var r=function(t){var e=t.stop;delete t.stop,e(o)};return"string"!==typeof t&&(o=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,n=null!=t&&t+"queueHooks",i=S.timers,a=ot.get(this);if(n)a[n]&&a[n].stop&&r(a[n]);else for(n in a)a[n]&&a[n].stop&&me.test(n)&&r(a[n]);for(n=i.length;n--;)i[n].elem!==this||null!=t&&i[n].queue!==t||(i[n].anim.stop(o),e=!1,i.splice(n,1));!e&&o||S.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,o=ot.get(this),r=o[t+"queue"],n=o[t+"queueHooks"],i=S.timers,a=r?r.length:0;for(o.finish=!0,S.queue(this,t,[]),n&&n.stop&&n.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===t&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete o.finish}))}}),S.each(["toggle","show","hide"],(function(t,e){var o=S.fn[e];S.fn[e]=function(t,r,n){return null==t||"boolean"===typeof t?o.apply(this,arguments):this.animate(ve(e,!0),t,r,n)}})),S.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){S.fn[t]=function(t,o,r){return this.animate(e,t,o,r)}})),S.timers=[],S.fx.tick=function(){var t,e=0,o=S.timers;for(ue=Date.now();e<o.length;e++)t=o[e],t()||o[e]!==t||o.splice(e--,1);o.length||S.fx.stop(),ue=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){be||(be=!0,ge())},S.fx.stop=function(){be=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,r){var n=o.setTimeout(e,t);r.stop=function(){o.clearTimeout(n)}}))},function(){var t=s.createElement("input"),e=s.createElement("select"),o=e.appendChild(s.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=o.selected,t=s.createElement("input"),t.value="t",t.type="radio",v.radioValue="t"===t.value}();var Ce,Ae=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return Y(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,o){var r,n,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"===typeof t.getAttribute?S.prop(t,e,o):(1===i&&S.isXMLDoc(t)||(n=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?Ce:void 0)),void 0!==o?null===o?void S.removeAttr(t,e):n&&"set"in n&&void 0!==(r=n.set(t,o,e))?r:(t.setAttribute(e,o+""),o):n&&"get"in n&&null!==(r=n.get(t,e))?r:(r=S.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&z(t,"input")){var o=t.value;return t.setAttribute("type",e),o&&(t.value=o),e}}}},removeAttr:function(t,e){var o,r=0,n=e&&e.match(H);if(n&&1===t.nodeType)while(o=n[r++])t.removeAttribute(o)}}),Ce={set:function(t,e,o){return!1===e?S.removeAttr(t,o):t.setAttribute(o,o),o}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var o=Ae[e]||S.find.attr;Ae[e]=function(t,e,r){var n,i,a=e.toLowerCase();return r||(i=Ae[a],Ae[a]=n,n=null!=o(t,e,r)?a:null,Ae[a]=i),n}}));var Se=/^(?:input|select|textarea|button)$/i,_e=/^(?:a|area)$/i;function Te(t){var e=t.match(H)||[];return e.join(" ")}function Ee(t){return t.getAttribute&&t.getAttribute("class")||""}function Oe(t){return Array.isArray(t)?t:"string"===typeof t&&t.match(H)||[]}S.fn.extend({prop:function(t,e){return Y(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,o){var r,n,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&S.isXMLDoc(t)||(e=S.propFix[e]||e,n=S.propHooks[e]),void 0!==o?n&&"set"in n&&void 0!==(r=n.set(t,o,e))?r:t[e]=o:n&&"get"in n&&null!==(r=n.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.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,o,r,n,i,a,s,l=0;if(x(t))return this.each((function(e){S(this).addClass(t.call(this,e,Ee(this)))}));if(e=Oe(t),e.length)while(o=this[l++])if(n=Ee(o),r=1===o.nodeType&&" "+Te(n)+" ",r){a=0;while(i=e[a++])r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=Te(r),n!==s&&o.setAttribute("class",s)}return this},removeClass:function(t){var e,o,r,n,i,a,s,l=0;if(x(t))return this.each((function(e){S(this).removeClass(t.call(this,e,Ee(this)))}));if(!arguments.length)return this.attr("class","");if(e=Oe(t),e.length)while(o=this[l++])if(n=Ee(o),r=1===o.nodeType&&" "+Te(n)+" ",r){a=0;while(i=e[a++])while(r.indexOf(" "+i+" ")>-1)r=r.replace(" "+i+" "," ");s=Te(r),n!==s&&o.setAttribute("class",s)}return this},toggleClass:function(t,e){var o=typeof t,r="string"===o||Array.isArray(t);return"boolean"===typeof e&&r?e?this.addClass(t):this.removeClass(t):x(t)?this.each((function(o){S(this).toggleClass(t.call(this,o,Ee(this),e),e)})):this.each((function(){var e,n,i,a;if(r){n=0,i=S(this),a=Oe(t);while(e=a[n++])i.hasClass(e)?i.removeClass(e):i.addClass(e)}else void 0!==t&&"boolean"!==o||(e=Ee(this),e&&ot.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":ot.get(this,"__className__")||""))}))},hasClass:function(t){var e,o,r=0;e=" "+t+" ";while(o=this[r++])if(1===o.nodeType&&(" "+Te(Ee(o))+" ").indexOf(e)>-1)return!0;return!1}});var je=/\r/g;S.fn.extend({val:function(t){var e,o,r,n=this[0];return arguments.length?(r=x(t),this.each((function(o){var n;1===this.nodeType&&(n=r?t.call(this,o,S(this).val()):t,null==n?n="":"number"===typeof n?n+="":Array.isArray(n)&&(n=S.map(n,(function(t){return null==t?"":t+""}))),e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,n,"value")||(this.value=n))}))):n?(e=S.valHooks[n.type]||S.valHooks[n.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(o=e.get(n,"value"))?o:(o=n.value,"string"===typeof o?o.replace(je,""):null==o?"":o)):void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Te(S.text(t))}},select:{get:function(t){var e,o,r,n=t.options,i=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?i+1:n.length;for(r=i<0?l:a?i:0;r<l;r++)if(o=n[r],(o.selected||r===i)&&!o.disabled&&(!o.parentNode.disabled||!z(o.parentNode,"optgroup"))){if(e=S(o).val(),a)return e;s.push(e)}return s},set:function(t,e){var o,r,n=t.options,i=S.makeArray(e),a=n.length;while(a--)r=n[a],(r.selected=S.inArray(S.valHooks.option.get(r),i)>-1)&&(o=!0);return o||(t.selectedIndex=-1),i}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},v.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in o;var Pe=/^(?:focusinfocus|focusoutblur)$/,ze=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,r,n){var i,a,l,c,d,p,u,b,f=[r||s],g=m.call(t,"type")?t.type:t,h=m.call(t,"namespace")?t.namespace.split("."):[];if(a=b=l=r=r||s,3!==r.nodeType&&8!==r.nodeType&&!Pe.test(g+S.event.triggered)&&(g.indexOf(".")>-1&&(h=g.split("."),g=h.shift(),h.sort()),d=g.indexOf(":")<0&&"on"+g,t=t[S.expando]?t:new S.Event(g,"object"===typeof t&&t),t.isTrigger=n?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:S.makeArray(e,[t]),u=S.event.special[g]||{},n||!u.trigger||!1!==u.trigger.apply(r,e))){if(!n&&!u.noBubble&&!w(r)){for(c=u.delegateType||g,Pe.test(c+g)||(a=a.parentNode);a;a=a.parentNode)f.push(a),l=a;l===(r.ownerDocument||s)&&f.push(l.defaultView||l.parentWindow||o)}i=0;while((a=f[i++])&&!t.isPropagationStopped())b=a,t.type=i>1?c:u.bindType||g,p=(ot.get(a,"events")||{})[t.type]&&ot.get(a,"handle"),p&&p.apply(a,e),p=d&&a[d],p&&p.apply&&tt(a)&&(t.result=p.apply(a,e),!1===t.result&&t.preventDefault());return t.type=g,n||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),e)||!tt(r)||d&&x(r[g])&&!w(r)&&(l=r[d],l&&(r[d]=null),S.event.triggered=g,t.isPropagationStopped()&&b.addEventListener(g,ze),r[g](),t.isPropagationStopped()&&b.removeEventListener(g,ze),S.event.triggered=void 0,l&&(r[d]=l)),t.result}},simulate:function(t,e,o){var r=S.extend(new S.Event,o,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var o=this[0];if(o)return S.event.trigger(t,e,o,!0)}}),v.focusin||S.each({focus:"focusin",blur:"focusout"},(function(t,e){var o=function(t){S.event.simulate(e,t.target,S.event.fix(t))};S.event.special[e]={setup:function(){var r=this.ownerDocument||this,n=ot.access(r,e);n||r.addEventListener(t,o,!0),ot.access(r,e,(n||0)+1)},teardown:function(){var r=this.ownerDocument||this,n=ot.access(r,e)-1;n?ot.access(r,e,n):(r.removeEventListener(t,o,!0),ot.remove(r,e))}}}));var Ne=o.location,De=Date.now(),Me=/\?/;S.parseXML=function(t){var e;if(!t||"string"!==typeof t)return null;try{e=(new o.DOMParser).parseFromString(t,"text/xml")}catch(r){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+t),e};var Ie=/\[\]$/,Re=/\r?\n/g,Be=/^(?:submit|button|image|reset|file)$/i,Le=/^(?:input|select|textarea|keygen)/i;function $e(t,e,o,r){var n;if(Array.isArray(e))S.each(e,(function(e,n){o||Ie.test(t)?r(t,n):$e(t+"["+("object"===typeof n&&null!=n?e:"")+"]",n,o,r)}));else if(o||"object"!==C(e))r(t,e);else for(n in e)$e(t+"["+n+"]",e[n],o,r)}S.param=function(t,e){var o,r=[],n=function(t,e){var o=x(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==o?"":o)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,(function(){n(this.name,this.value)}));else for(o in t)$e(o,t[o],e,n);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Le.test(this.nodeName)&&!Be.test(t)&&(this.checked||!wt.test(t))})).map((function(t,e){var o=S(this).val();return null==o?null:Array.isArray(o)?S.map(o,(function(t){return{name:e.name,value:t.replace(Re,"\r\n")}})):{name:e.name,value:o.replace(Re,"\r\n")}})).get()}});var He=/%20/g,qe=/#.*$/,Fe=/([?&])_=[^&]*/,Ue=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ve=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,We=/^(?:GET|HEAD)$/,Xe=/^\/\//,Ge={},Ye={},Qe="*/".concat("*"),Je=s.createElement("a");function Ke(t){return function(e,o){"string"!==typeof e&&(o=e,e="*");var r,n=0,i=e.toLowerCase().match(H)||[];if(x(o))while(r=i[n++])"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(o)):(t[r]=t[r]||[]).push(o)}}function Ze(t,e,o,r){var n={},i=t===Ye;function a(s){var l;return n[s]=!0,S.each(t[s]||[],(function(t,s){var c=s(e,o,r);return"string"!==typeof c||i||n[c]?i?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!n["*"]&&a("*")}function to(t,e){var o,r,n=S.ajaxSettings.flatOptions||{};for(o in e)void 0!==e[o]&&((n[o]?t:r||(r={}))[o]=e[o]);return r&&S.extend(!0,t,r),t}function eo(t,e,o){var r,n,i,a,s=t.contents,l=t.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(n in s)if(s[n]&&s[n].test(r)){l.unshift(n);break}if(l[0]in o)i=l[0];else{for(n in o){if(!l[0]||t.converters[n+" "+l[0]]){i=n;break}a||(a=n)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),o[i]}function oo(t,e,o,r){var n,i,a,s,l,c={},d=t.dataTypes.slice();if(d[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];i=d.shift();while(i)if(t.responseFields[i]&&(o[t.responseFields[i]]=e),!l&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=i,i=d.shift(),i)if("*"===i)i=l;else if("*"!==l&&l!==i){if(a=c[l+" "+i]||c["* "+i],!a)for(n in c)if(s=n.split(" "),s[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]],a)){!0===a?a=c[n]:!0!==c[n]&&(i=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+i}}}return{state:"success",data:e}}Je.href=Ne.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ne.href,type:"GET",isLocal:Ve.test(Ne.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Qe,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(t,e){return e?to(to(t,S.ajaxSettings),e):to(S.ajaxSettings,t)},ajaxPrefilter:Ke(Ge),ajaxTransport:Ke(Ye),ajax:function(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};var r,n,i,a,l,c,d,p,u,b,f=S.ajaxSetup({},e),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?S(m):S.event,h=S.Deferred(),v=S.Callbacks("once memory"),x=f.statusCode||{},w={},y={},k="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(d){if(!a){a={};while(e=Ue.exec(i))a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2])}e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?i:null},setRequestHeader:function(t,e){return null==d&&(t=y[t.toLowerCase()]=y[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==d&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(d)C.always(t[C.status]);else for(e in t)x[e]=[x[e],t[e]];return this},abort:function(t){var e=t||k;return r&&r.abort(e),A(0,e),this}};if(h.promise(C),f.url=((t||f.url||Ne.href)+"").replace(Xe,Ne.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(H)||[""],null==f.crossDomain){c=s.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Je.protocol+"//"+Je.host!==c.protocol+"//"+c.host}catch(_){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!==typeof f.data&&(f.data=S.param(f.data,f.traditional)),Ze(Ge,f,e,C),d)return C;for(u in p=S.event&&f.global,p&&0===S.active++&&S.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!We.test(f.type),n=f.url.replace(qe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(He,"+")):(b=f.url.slice(n.length),f.data&&(f.processData||"string"===typeof f.data)&&(n+=(Me.test(n)?"&":"?")+f.data,delete f.data),!1===f.cache&&(n=n.replace(Fe,"$1"),b=(Me.test(n)?"&":"?")+"_="+De+++b),f.url=n+b),f.ifModified&&(S.lastModified[n]&&C.setRequestHeader("If-Modified-Since",S.lastModified[n]),S.etag[n]&&C.setRequestHeader("If-None-Match",S.etag[n])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Qe+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(m,C,f)||d))return C.abort();if(k="abort",v.add(f.complete),C.done(f.success),C.fail(f.error),r=Ze(Ye,f,e,C),r){if(C.readyState=1,p&&g.trigger("ajaxSend",[C,f]),d)return C;f.async&&f.timeout>0&&(l=o.setTimeout((function(){C.abort("timeout")}),f.timeout));try{d=!1,r.send(w,A)}catch(_){if(d)throw _;A(-1,_)}}else A(-1,"No Transport");function A(t,e,a,s){var c,u,b,w,y,k=e;d||(d=!0,l&&o.clearTimeout(l),r=void 0,i=s||"",C.readyState=t>0?4:0,c=t>=200&&t<300||304===t,a&&(w=eo(f,C,a)),w=oo(f,w,C,c),c?(f.ifModified&&(y=C.getResponseHeader("Last-Modified"),y&&(S.lastModified[n]=y),y=C.getResponseHeader("etag"),y&&(S.etag[n]=y)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=w.state,u=w.data,b=w.error,c=!b)):(b=k,!t&&k||(k="error",t<0&&(t=0))),C.status=t,C.statusText=(e||k)+"",c?h.resolveWith(m,[u,k,C]):h.rejectWith(m,[C,k,b]),C.statusCode(x),x=void 0,p&&g.trigger(c?"ajaxSuccess":"ajaxError",[C,f,c?u:b]),v.fireWith(m,[C,k]),p&&(g.trigger("ajaxComplete",[C,f]),--S.active||S.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,o){return S.get(t,e,o,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,o,r,n){return x(o)&&(n=n||r,r=o,o=void 0),S.ajax(S.extend({url:t,type:e,dataType:n,data:o,success:r},S.isPlainObject(t)&&t))}})),S._evalUrl=function(t,e){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(x(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){var t=this;while(t.firstElementChild)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return x(t)?this.each((function(e){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),o=e.contents();o.length?o.wrapAll(t):e.append(t)}))},wrap:function(t){var e=x(t);return this.each((function(o){S(this).wrapAll(e?t.call(this,o):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(t){}};var ro={0:200,1223:204},no=S.ajaxSettings.xhr();v.cors=!!no&&"withCredentials"in no,v.ajax=no=!!no,S.ajaxTransport((function(t){var e,r;if(v.cors||no&&!t.crossDomain)return{send:function(n,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=

an index file:

 <!DOCTYPE html>
<html class="no-js h-100" lang=en>
    <head>
        <meta charset=utf-8>
        <meta http-equiv=X-UA-Compatible content="IE=edge">
        <meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no">
        <link rel=icon href=/favicon.ico>
        <title>ESP-StepperMotor-Server 0.4.1</title>
        <script>
            window.serverUIVersion = "0.4.1";
        </script>
        <link href=/js/app.js.gz rel=preload as=script>
    </head>
    <body class=h-100>
        <noscript>
            <strong>We're sorry but esp-steppermotor-server-ui doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
        </noscript>
        <div class=container-fluid>
            <div id=app class=row></div>
        </div>
        <script src=/js/app.js.gz></script>
    </body>
</html>
pkerspe commented 3 years ago

Ok, so your app.js.gz file on the ESP32 seems to be corrupt. It is cut off at the end. Please compare the end of the file with the end of the file on your hard disk that you uploaded to spiffs (you might need to unzip the local one to see the actual content/js code) Maybe just try uploading spiffs contents again and check for errors in the console while uploading.

pkerspe commented 3 years ago

I just uploaded UI version 0.4.2 to SPIFFS and installed server version 0.4.4 I cannot reproduce the issue, all works fine in Chrome browser (not tested in other browsers though) Please try uploading the data folder again to SPIFFs.

The app.js file should end with:

[...]shadowMode:!1})}});
//# sourceMappingURL=app.js.map
Humanoidx commented 3 years ago

Ok I had to delete all my PlatformIO IDE and reinstall it and then in worked! Thank you much for your support.