diff --git a/karma.conf.js b/karma.conf.js index d4b214e252..e0baf16c0f 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -17,7 +17,8 @@ module.exports = function(config) { 'karma-sinon', 'karma-jasmine-html-reporter', 'karma-spec-reporter', - 'karma-webpack' + 'karma-webpack', + require("karma-firefox-launcher") ], // frameworks to use @@ -107,7 +108,13 @@ module.exports = function(config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['HeadlessChrome'], + + browsers: [ + 'HeadlessChrome' + // 'HeadlessFirefox' + ], + // If chrome headless is not working, try swapping out which line is commented above + // to use firefox for local dev customLaunchers: { HeadlessChrome: { base: 'ChromeHeadless', @@ -118,7 +125,13 @@ module.exports = function(config) { '--disable-translate', '--disable-extensions' ] - } + }, + HeadlessFirefox: { + base: 'Firefox', + flags: [ + '--headless', + ] + }, }, // Continuous Integration mode diff --git a/openassessment/__init__.py b/openassessment/__init__.py index 3e62edee8f..ee5a0521d0 100644 --- a/openassessment/__init__.py +++ b/openassessment/__init__.py @@ -2,4 +2,4 @@ Initialization Information for Open Assessment Module """ -__version__ = '6.14.3' +__version__ = '6.14.4' diff --git a/openassessment/xblock/static/dist/manifest.json b/openassessment/xblock/static/dist/manifest.json index 6b751415cf..5b0869f924 100644 --- a/openassessment/xblock/static/dist/manifest.json +++ b/openassessment/xblock/static/dist/manifest.json @@ -4,10 +4,10 @@ "openassessment-editor-textarea.js.map": "/openassessment-editor-textarea.cbb31e4372be87d437fb.js.map", "openassessment-editor-tinymce.js": "/openassessment-editor-tinymce.2a1e66e98a2a1132f633.js", "openassessment-editor-tinymce.js.map": "/openassessment-editor-tinymce.2a1e66e98a2a1132f633.js.map", - "openassessment-lms.css": "/openassessment-lms.7deea212f43fa92a5945.css", - "openassessment-lms.js": "/openassessment-lms.7deea212f43fa92a5945.js", - "openassessment-lms.css.map": "/openassessment-lms.7deea212f43fa92a5945.css.map", - "openassessment-lms.js.map": "/openassessment-lms.7deea212f43fa92a5945.js.map", + "openassessment-lms.css": "/openassessment-lms.51b88d7de00c69ab0a2e.css", + "openassessment-lms.js": "/openassessment-lms.51b88d7de00c69ab0a2e.js", + "openassessment-lms.css.map": "/openassessment-lms.51b88d7de00c69ab0a2e.css.map", + "openassessment-lms.js.map": "/openassessment-lms.51b88d7de00c69ab0a2e.js.map", "openassessment-ltr.css": "/openassessment-ltr.2c55d39b6a9784df6e13.css", "openassessment-ltr.js": "/openassessment-ltr.2c55d39b6a9784df6e13.js", "openassessment-ltr.css.map": "/openassessment-ltr.2c55d39b6a9784df6e13.css.map", @@ -16,8 +16,8 @@ "openassessment-rtl.js": "/openassessment-rtl.86c76a295df3b3a8f88c.js", "openassessment-rtl.css.map": "/openassessment-rtl.86c76a295df3b3a8f88c.css.map", "openassessment-rtl.js.map": "/openassessment-rtl.86c76a295df3b3a8f88c.js.map", - "openassessment-studio.js": "/openassessment-studio.aa11b230153dce64cd29.js", - "openassessment-studio.js.map": "/openassessment-studio.aa11b230153dce64cd29.js.map", + "openassessment-studio.js": "/openassessment-studio.65076e7e76039d8c8ab2.js", + "openassessment-studio.js.map": "/openassessment-studio.65076e7e76039d8c8ab2.js.map", "fallback-default.png": "/1b90ce76fe01a1aa6e5ec289a5fb3799.png", "default-avatar.svg": "/95ec738c0b7faac5b5c9126794446bbd.svg" } \ No newline at end of file diff --git a/openassessment/xblock/static/dist/openassessment-lms.51b88d7de00c69ab0a2e.css b/openassessment/xblock/static/dist/openassessment-lms.51b88d7de00c69ab0a2e.css new file mode 100644 index 0000000000..07a397fe66 --- /dev/null +++ b/openassessment/xblock/static/dist/openassessment-lms.51b88d7de00c69ab0a2e.css @@ -0,0 +1,3 @@ + + +/*# sourceMappingURL=openassessment-lms.51b88d7de00c69ab0a2e.css.map*/ \ No newline at end of file diff --git a/openassessment/xblock/static/dist/openassessment-lms.7deea212f43fa92a5945.js b/openassessment/xblock/static/dist/openassessment-lms.51b88d7de00c69ab0a2e.js similarity index 99% rename from openassessment/xblock/static/dist/openassessment-lms.7deea212f43fa92a5945.js rename to openassessment/xblock/static/dist/openassessment-lms.51b88d7de00c69ab0a2e.js index 5e8f1dfe89..27bd097cb9 100644 --- a/openassessment/xblock/static/dist/openassessment-lms.7deea212f43fa92a5945.js +++ b/openassessment/xblock/static/dist/openassessment-lms.51b88d7de00c69ab0a2e.js @@ -360,4 +360,4 @@ a=this,o=[n(10),n(188)],void 0===(r=function(e,t){return a.Backgrid=function(e,t * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,i=o?Symbol.for("react.fragment"):60107,c=o?Symbol.for("react.strict_mode"):60108,p=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,b=o?Symbol.for("react.context"):60110,M=o?Symbol.for("react.async_mode"):60111,u=o?Symbol.for("react.concurrent_mode"):60111,l=o?Symbol.for("react.forward_ref"):60112,z=o?Symbol.for("react.suspense"):60113,d=o?Symbol.for("react.suspense_list"):60120,O=o?Symbol.for("react.memo"):60115,f=o?Symbol.for("react.lazy"):60116,A=o?Symbol.for("react.block"):60121,m=o?Symbol.for("react.fundamental"):60117,h=o?Symbol.for("react.responder"):60118,q=o?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case M:case u:case i:case p:case c:case z:return e;default:switch(e=e&&e.$$typeof){case b:case l:case f:case O:case s:return e;default:return t}}case a:return t}}}function g(e){return y(e)===u}t.AsyncMode=M,t.ConcurrentMode=u,t.ContextConsumer=b,t.ContextProvider=s,t.Element=r,t.ForwardRef=l,t.Fragment=i,t.Lazy=f,t.Memo=O,t.Portal=a,t.Profiler=p,t.StrictMode=c,t.Suspense=z,t.isAsyncMode=function(e){return g(e)||y(e)===M},t.isConcurrentMode=g,t.isContextConsumer=function(e){return y(e)===b},t.isContextProvider=function(e){return y(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===l},t.isFragment=function(e){return y(e)===i},t.isLazy=function(e){return y(e)===f},t.isMemo=function(e){return y(e)===O},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===p},t.isStrictMode=function(e){return y(e)===c},t.isSuspense=function(e){return y(e)===z},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===p||e===c||e===z||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===O||e.$$typeof===s||e.$$typeof===b||e.$$typeof===l||e.$$typeof===m||e.$$typeof===h||e.$$typeof===q||e.$$typeof===A)},t.typeOf=y},,,,,function(e,t,n){"use strict";n.r(t);n(22);var o=n(11),r=n(174);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;nthis.AUTO_SAVE_WAIT&&this.save()}},{key:"handleResponseChanged",value:function(){if(this.responseChanged()){var e=this.checkSaveAbility();this.previewEnabled(e),this.errorOnLastSave||this.saveStatus(gettext("Saving draft"),this.ICON_SAVING),this.baseView.unsavedWarningEnabled(!0,this.UNSAVED_WARNING_KEY,gettext("If you leave this page without saving or submitting your response, you will lose any work you have done on the response."))}this.lastChangeTime=Date.now()}},{key:"save",value:function(){var e=this;this.errorOnLastSave||this.saveStatus(gettext("Saving draft..."),this.ICON_SAVING),this.baseView.unsavedWarningEnabled(!1,this.UNSAVED_WARNING_KEY);var t=this,n=this.response();this.server.save(n).done((function(){if(t.savedResponse=n,t.response().every((function(e,t){return e===n[t]}))){var o=gettext("Draft saved!");t.saveStatus(o,e.ICON_SAVED),t.baseView.srReadTexts([o]),e.baseView.toggleActionError("save",null),t.errorOnLastSave=!1}})).fail((function(n){t.errorOnLastSave||(t.saveStatus(gettext("Error"),e.ICON_ERROR),t.baseView.toggleActionError("save",n)),t.errorOnLastSave=!0}))}},{key:"handleSubmitClicked",value:function(){if(this.isValidForSubmit()){this.submitEnabled(!1);var e=this,t=gettext("Confirm Submit Response"),n="";n="True"===this.allowLearnerResubmissions?gettext("You're about to submit your response for this assignment. After you submit this response, you may have a limited time to resubmit before your submission is graded."):gettext("You're about to submit your response for this assignment. After you submit this response, you can't change it or submit a new response."),this.confirmationDialog.confirm(t,n,(function(){return e.submit()}),(function(){return e.submitEnabled(!0)}))}}},{key:"submit",value:function(){var e=this,t=this.response();this.baseView.toggleActionError("response",null),this.server.submit(t).done((function(){e.moveToNextStep()})).fail((function(t,n){"ENOMULTI"===t?e.moveToNextStep():(n&&e.baseView.toggleActionError("submit",n),e.submitEnabled(!0))}))}},{key:"handleResubmissionClicked",value:function(){var e=this,t=gettext("Confirm Reset"),n=gettext("You're about to reset your response for this assignment. You will need to submit a new response in order to complete this step. Are you sure you want to continue?");this.confirmationDialog.confirm(t,n,(function(){return e.resetSubmission()}),(function(){}))}},{key:"resetSubmission",value:function(){var e=this;this.server.resetSubmission().done((function(){window.location.reload(!0)})).fail((function(t){t&&e.baseView.toggleActionError("submit",t)}))}},{key:"moveToNextStep",value:function(){var e=this.baseView,t=e.getUsageID();this.load(t),e.loadAssessmentModules(t),this.announceStatus=!0,e.unsavedWarningEnabled(!1,this.UNSAVED_WARNING_KEY)}},{key:"prepareUpload",value:function(e,t,n){this.files=null,this.filesType=t,this.filesUploaded=!1;for(var o=!1,r=0;rthis.MAX_FILE_SIZE){this.baseView.toggleActionError("upload",gettext("Individual file size must be {max_files_mb}MB or less.").replace("{max_files_mb}",this.MAX_FILES_MB)),o=!0;break}if(!this.isUploadSupported(e[r],t)){this.baseView.toggleActionError("upload",gettext("File upload failed: unsupported file type. Only the supported file types can be uploaded. If you have questions, please reach out to the course team.")),o=!0;break}}if(this.getSavedFileCount(!1)+e.length>this.data.MAXIMUM_FILE_UPLOAD_COUNT){var a=gettext("The maximum number files that can be saved is ")+this.data.MAXIMUM_FILE_UPLOAD_COUNT;this.baseView.toggleActionError("upload",gettext(a)),o=!0}o||(this.baseView.toggleActionError("upload",null),e.length>0&&(this.files=e),this.updateFilesDescriptionsFields(e,n,t))}},{key:"updateFilesDescriptionsFields",value:function(e,t,n){var o=$(this.element).find(".files__descriptions").first(),r=null,a=null,i=null,c=null,p=null,s=null;this.filesDescriptions=t||[],this.fileNames=[],$(o).show().html("");for(var b=0;b"),(a=$("
")).addClass("submission__file__description__label"),a.text("".concat(gettext("Describe ")+e[b].name," ").concat(gettext("(required):"))),a.appendTo(r),(i=$("
")).addClass("submission__file__description"),s=$("",v.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",v.option=!!xe.lastChild;var Se={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function $e(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?E.merge([e],n):n}function je(e,t){for(var n=0,i=e.length;n",""]);var Ae=/<|&#?\w+;/;function De(e,t,n,i,r){for(var s,o,a,u,l,c,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f-1)r&&r.push(s);else if(l=me(s),o=$e(d.appendChild(s),"script"),l&&je(o),n)for(c=0;s=o[c++];)Te.test(s.type||"")&&n.push(s);return d}var Ne=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Re(){return!1}function Pe(e,t,n,i,r,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Pe(e,a,n,i,t[a],s);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Re;else if(!r)return e;return 1===s&&(o=r,(r=function(e){return E().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=E.guid++)),e.each((function(){E.event.add(this,t,r,i,n)}))}function Ie(e,t,n){n?(oe.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var n,i=oe.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),oe.set(this,t,i),this[t](),n=oe.get(this,t),oe.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(oe.set(this,t,E.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Oe)}})):void 0===oe.get(e,t)&&E.event.add(e,t,Oe)}E.event={global:{},add:function(e,t,n,i,r){var s,o,a,u,l,c,d,h,f,p,m,v=oe.get(e);if(re(e))for(n.handler&&(n=(s=n).handler,r=s.selector),r&&E.find.matchesSelector(pe,r),n.guid||(n.guid=E.guid++),(u=v.events)||(u=v.events=Object.create(null)),(o=v.handle)||(o=v.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(z)||[""]).length;l--;)f=m=(a=Ne.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=E.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=E.event.special[f]||{},c=E.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:p.join(".")},s),(h=u[f])||((h=u[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),E.event.global[f]=!0)},remove:function(e,t,n,i,r){var s,o,a,u,l,c,d,h,f,p,m,v=oe.hasData(e)&&oe.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(z)||[""]).length;l--;)if(f=m=(a=Ne.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=E.event.special[f]||{},h=u[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;s--;)c=h[s],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(s,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,v.handle)||E.removeEvent(e,f,v.handle),delete u[f])}else for(f in u)E.event.remove(e,f+t[l],n,i,!0);E.isEmptyObject(u)&&oe.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,s,o,a=new Array(arguments.length),u=E.event.fix(e),l=(oe.get(this,"events")||Object.create(null))[u.type]||[],c=E.event.special[u.type]||{};for(a[0]=u,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(s=[],o={},n=0;n-1:E.find(r,this,null,[l]).length),o[r]&&s.push(i);s.length&&a.push({elem:l,handlers:s})}return l=this,u\s*$/g;function Fe(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Ve(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,i,r,s,o,a;if(1===t.nodeType){if(oe.hasData(e)&&(a=oe.get(e).events))for(r in oe.remove(t,"handle events"),a)for(n=0,i=a[r].length;n1&&"string"==typeof p&&!v.checkClone&&Me.test(p))return e.each((function(r){var s=e.eq(r);m&&(t[0]=p.call(this,r,s.html())),Ue(s,t,n,i)}));if(h&&(s=(r=De(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(a=(o=E.map($e(r,"script"),Ve)).length;d0&&je(o,!u&&$e(e,"script")),a},cleanData:function(e){for(var t,n,i,r=E.event.special,s=0;void 0!==(n=e[s]);s++)if(re(n)){if(t=n[oe.expando]){if(t.events)for(i in t.events)r[i]?E.event.remove(n,i):E.removeEvent(n,i,t.handle);n[oe.expando]=void 0}n[ae.expando]&&(n[ae.expando]=void 0)}}}),E.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return Z(this,(function(e){return void 0===e?E.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 Ue(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return Ue(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ue(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ue(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&&(E.cleanData($e(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return E.clone(this,e,t)}))},html:function(e){return Z(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!He.test(e)&&!Se[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-u-a-.5))||0),u+l}function lt(e,t,n){var i=Xe(e),r=(!v.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,i),s=r,o=Qe(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(o)){if(!n)return o;o="auto"}return(!v.boxSizingReliable()&&r||!v.reliableTrDimensions()&&T(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===E.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===E.css(e,"boxSizing",!1,i),(s=a in e)&&(o=e[a])),(o=parseFloat(o)||0)+ut(e,t,n||(r?"border":"content"),s,i,o)+"px"}function ct(e,t,n,i,r){return new ct.prototype.init(e,t,n,i,r)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,o,a=ie(t),u=Je.test(t),l=e.style;if(u||(t=it(a)),o=E.cssHooks[t]||E.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:l[t];"string"===(s=typeof n)&&(r=he.exec(n))&&r[1]&&(n=ye(e,t,r),s="number"),null!=n&&n==n&&("number"!==s||u||(n+=r&&r[3]||(E.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,i){var r,s,o,a=ie(t);return Je.test(t)||(t=it(a)),(o=E.cssHooks[t]||E.cssHooks[a])&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=Qe(e,t,i)),"normal"===r&&t in ot&&(r=ot[t]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),E.each(["height","width"],(function(e,t){E.cssHooks[t]={get:function(e,n,i){if(n)return!rt.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,t,i):Ye(e,st,(function(){return lt(e,t,i)}))},set:function(e,n,i){var r,s=Xe(e),o=!v.scrollboxSize()&&"absolute"===s.position,a=(o||i)&&"border-box"===E.css(e,"boxSizing",!1,s),u=i?ut(e,t,i,a,s):0;return a&&o&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-ut(e,t,"border",!1,s)-.5)),u&&(r=he.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),at(0,n,u)}}})),E.cssHooks.marginLeft=Ze(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ye(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(e,t){E.cssHooks[e+t]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+fe[i]+t]=s[i]||s[i-2]||s[0];return r}},"margin"!==e&&(E.cssHooks[e+t].set=at)})),E.fn.extend({css:function(e,t){return Z(this,(function(e,t,n){var i,r,s={},o=0;if(Array.isArray(t)){for(i=Xe(e),r=t.length;o1)}}),E.Tween=ct,ct.prototype={constructor:ct,init:function(e,t,n,i,r,s){this.elem=e,this.prop=n,this.easing=r||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(E.cssNumber[n]?"":"px")},cur:function(){var e=ct.propHooks[this.prop];return e&&e.get?e.get(this):ct.propHooks._default.get(this)},run:function(e){var t,n=ct.propHooks[this.prop];return this.options.duration?this.pos=t=E.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):ct.propHooks._default.set(this),this}},ct.prototype.init.prototype=ct.prototype,ct.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=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},ct.propHooks.scrollTop=ct.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=ct.prototype.init,E.fx.step={};var dt,ht,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function mt(){ht&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(mt):n.setTimeout(mt,E.fx.interval),E.fx.tick())}function vt(){return n.setTimeout((function(){dt=void 0})),dt=Date.now()}function gt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=fe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function yt(e,t,n){for(var i,r=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),s=0,o=r.length;s1)},removeAttr:function(e){return this.each((function(){E.removeAttr(this,e)}))}}),E.extend({attr:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?E.prop(e,t,n):(1===s&&E.isXMLDoc(e)||(r=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=E.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(z);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=wt[t]||E.find.attr;wt[t]=function(e,t,i){var r,s,o=t.toLowerCase();return i||(s=wt[o],wt[o]=r,r=null!=n(e,t,i)?o:null,wt[o]=s),r}}));var xt=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;function Et(e){return(e.match(z)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}E.fn.extend({prop:function(e,t){return Z(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[E.propFix[e]||e]}))}}),E.extend({prop:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&E.isXMLDoc(e)||(t=E.propFix[t]||t,r=E.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(E.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)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(e){var t,n,i,r,s,o;return g(e)?this.each((function(t){E(this).addClass(e.call(this,t,Ct(this)))})):(t=Tt(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+Et(i)+" "){for(s=0;s-1;)n=n.replace(" "+r+" "," ");o=Et(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,s,o=typeof e,a="string"===o||Array.isArray(e);return g(e)?this.each((function(n){E(this).toggleClass(e.call(this,n,Ct(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=Tt(e),this.each((function(){if(a)for(s=E(this),r=0;r-1)return!0;return!1}});var St=/\r/g;E.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=g(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,E(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=E.map(r,(function(e){return null==e?"":e+""}))),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=E.valHooks[r.type]||E.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(St,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:Et(E.text(e))}},select:{get:function(e){var t,n,i,r=e.options,s=e.selectedIndex,o="select-one"===e.type,a=o?null:[],u=o?s+1:r.length;for(i=s<0?u:o?s:0;i-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},v.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var $t=n.location,jt={guid:Date.now()},At=/\?/;E.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||E.error("Invalid XML: "+(i?E.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,i,r){var s,o,a,u,l,c,d,h,p=[i||b],m=f.call(e,"type")?e.type:e,v=f.call(e,"namespace")?e.namespace.split("."):[];if(o=h=a=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!Dt.test(m+E.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[E.expando]?e:new E.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:E.makeArray(t,[e]),d=E.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,t))){if(!r&&!d.noBubble&&!y(i)){for(u=d.delegateType||m,Dt.test(u+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(i.ownerDocument||b)&&p.push(a.defaultView||a.parentWindow||n)}for(s=0;(o=p[s++])&&!e.isPropagationStopped();)h=o,e.type=s>1?u:d.bindType||m,(c=(oe.get(o,"events")||Object.create(null))[e.type]&&oe.get(o,"handle"))&&c.apply(o,t),(c=l&&o[l])&&c.apply&&re(o)&&(e.result=c.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!re(i)||l&&g(i[m])&&!y(i)&&((a=i[l])&&(i[l]=null),E.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Nt),i[m](),e.isPropagationStopped()&&h.removeEventListener(m,Nt),E.event.triggered=void 0,a&&(i[l]=a)),e.result}},simulate:function(e,t,n){var i=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(i,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each((function(){E.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}});var Ot=/\[\]$/,Rt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function Ht(e,t,n,i){var r;if(Array.isArray(t))E.each(t,(function(t,r){n||Ot.test(e)?i(e,r):Ht(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==x(t))i(e,t);else for(r in t)Ht(e+"["+r+"]",t[r],n,i)}E.param=function(e,t){var n,i=[],r=function(e,t){var n=g(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,(function(){r(this.name,this.value)}));else for(n in e)Ht(n,e[n],t,r);return i.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&It.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Ee.test(e))})).map((function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}});var Mt=/%20/g,Lt=/#.*$/,Ft=/([?&])_=[^&]*/,Vt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,Bt=/^\/\//,qt={},Ut={},zt="*/".concat("*"),Gt=b.createElement("a");function Jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,s=t.toLowerCase().match(z)||[];if(g(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Xt(e,t,n,i){var r={},s=e===Ut;function o(a){var u;return r[a]=!0,E.each(e[a]||[],(function(e,a){var l=a(t,n,i);return"string"!=typeof l||s||r[l]?s?!(u=l):void 0:(t.dataTypes.unshift(l),o(l),!1)})),u}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Yt(e,t){var n,i,r=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&E.extend(!0,e,i),e}Gt.href=$t.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test($t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Yt(Yt(e,E.ajaxSettings),t):Yt(E.ajaxSettings,e)},ajaxPrefilter:Jt(qt),ajaxTransport:Jt(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,s,o,a,u,l,c,d,h,f=E.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?E(p):E.event,v=E.Deferred(),g=E.Callbacks("once memory"),y=f.statusCode||{},_={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=Vt.exec(s);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==l&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)k.always(e[k.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),C(0,t),this}};if(v.promise(k),f.url=((e||f.url||$t.href)+"").replace(Bt,$t.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(z)||[""],null==f.crossDomain){u=b.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Gt.protocol+"//"+Gt.host!=u.protocol+"//"+u.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=E.param(f.data,f.traditional)),Xt(qt,f,t,k),l)return k;for(d in(c=E.event&&f.global)&&0==E.active++&&E.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Wt.test(f.type),r=f.url.replace(Lt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Mt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(At.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Ft,"$1"),h=(At.test(r)?"&":"?")+"_="+jt.guid+++h),f.url=r+h),f.ifModified&&(E.lastModified[r]&&k.setRequestHeader("If-Modified-Since",E.lastModified[r]),E.etag[r]&&k.setRequestHeader("If-None-Match",E.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+zt+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||l))return k.abort();if(x="abort",g.add(f.complete),k.done(f.success),k.fail(f.error),i=Xt(Ut,f,t,k)){if(k.readyState=1,c&&m.trigger("ajaxSend",[k,f]),l)return k;f.async&&f.timeout>0&&(a=n.setTimeout((function(){k.abort("timeout")}),f.timeout));try{l=!1,i.send(_,C)}catch(e){if(l)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,o,u){var d,h,b,_,w,x=t;l||(l=!0,a&&n.clearTimeout(a),i=void 0,s=u||"",k.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(_=function(e,t,n){for(var i,r,s,o,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){u.unshift(r);break}if(u[0]in n)s=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==u[0]&&u.unshift(s),n[s]}(f,k,o)),!d&&E.inArray("script",f.dataTypes)>-1&&E.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),_=function(e,t,n,i){var r,s,o,a,u,l={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(s=c.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!u&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=s,s=c.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(o=l[u+" "+s]||l["* "+s]))for(r in l)if((a=r.split(" "))[1]===s&&(o=l[u+" "+a[0]]||l["* "+a[0]])){!0===o?o=l[r]:!0!==l[r]&&(s=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+u+" to "+s}}}return{state:"success",data:t}}(f,_,k,d),d?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(E.lastModified[r]=w),(w=k.getResponseHeader("etag"))&&(E.etag[r]=w)),204===e||"HEAD"===f.type?x="nocontent":304===e?x="notmodified":(x=_.state,h=_.data,d=!(b=_.error))):(b=x,!e&&x||(x="error",e<0&&(e=0))),k.status=e,k.statusText=(t||x)+"",d?v.resolveWith(p,[h,x,k]):v.rejectWith(p,[k,x,b]),k.statusCode(y),y=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,f,d?h:b]),g.fireWith(p,[k,x]),c&&(m.trigger("ajaxComplete",[k,f]),--E.active||E.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],(function(e,t){E[t]=function(e,n,i,r){return g(n)&&(r=r||i,i=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:r,data:n,success:i},E.isPlainObject(e)&&e))}})),E.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){E(this).wrapInner(e.call(this,t))})):this.each((function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){E(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Qt=E.ajaxSettings.xhr();v.cors=!!Qt&&"withCredentials"in Qt,v.ajax=Qt=!!Qt,E.ajaxTransport((function(e){var t,i;if(v.cors||Qt&&!e.crossDomain)return{send:function(r,s){var o,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];for(o in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Kt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),E.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),E.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 E.globalEval(e),e}}}),E.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),E.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=E("