UNPKG

testcafe-legacy-api

Version:
1 lines 155 kB
!function(){function initTestCafeLegacyRunner(window){var document=window.document;!function(hammerhead,testCafeCore,testCafeUI,testcafeAutomation){function _interopDefaultLegacy(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var hammerhead__default=_interopDefaultLegacy(hammerhead),testCafeCore__default=_interopDefaultLegacy(testCafeCore),testCafeUI__default=_interopDefaultLegacy(testCafeUI),testcafeAutomation__default=_interopDefaultLegacy(testcafeAutomation),Settings={settings:{},set:function(e){this.settings=e},get:function(){return this.settings}};function forEachSeries(t,e,n){if(n=n||function(){},!t.length)return n();function r(){e(t[i],function(e){e?(n(e),n=function(){}):((i+=1)===t.length?n:r)()})}var i=0;r()}var ERROR_TYPE={okAssertion:"legacy|okAssertion",notOkAssertion:"legacy|notOkAssertion",eqAssertion:"legacy|eqAssertion",notEqAssertion:"legacy|notEqAssertion",iframeLoadingTimeout:"legacy|iframeLoadingTimeout",inIFrameTargetLoadingTimeout:"legacy|inIFrameTargetLoadingTimeout",uncaughtJSError:"legacy|uncaughtJSError",uncaughtJSErrorInTestCodeStep:"legacy|uncaughtJSErrorInTestCodeStep",storeDomNodeOrJqueryObject:"legacy|storeDomNodeOrJqueryObject",emptyFirstArgument:"legacy|emptyFirstArgument",invisibleActionElement:"legacy|invisibleActionElement",incorrectDraggingSecondArgument:"legacy|incorrectDraggingSecondArgument",incorrectPressActionArgument:"legacy|incorrectPressActionArgument",emptyTypeActionArgument:"legacy|emptyTypeActionArgument",unexpectedDialog:"legacy|unexpectedDialog",expectedDialogDoesntAppear:"legacy|expectedDialogDoesntAppear",incorrectSelectActionArguments:"legacy|incorrectSelectActionArguments",incorrectWaitActionMillisecondsArgument:"legacy|incorrectWaitActionMillisecondsArgument",incorrectWaitForActionEventArgument:"legacy|incorrectWaitForActionEventArgument",incorrectWaitForActionTimeoutArgument:"legacy|incorrectWaitForActionTimeoutArgument",waitForActionTimeoutExceeded:"legacy|waitForActionTimeoutExceeded",incorrectGlobalWaitForActionEventArgument:"legacy|incorrectGlobalWaitForActionEventArgument",incorrectGlobalWaitForActionTimeoutArgument:"legacy|incorrectGlobalWaitForActionTimeoutArgument",globalWaitForActionTimeoutExceeded:"legacy|globalWaitForActionTimeoutExceeded",emptyIFrameArgument:"legacy|emptyIFrameArgument",iframeArgumentIsNotIFrame:"legacy|iframeArgumentIsNotIFrame",multipleIFrameArgument:"legacy|multipleIFrameArgument",incorrectIFrameArgument:"legacy|incorrectIFrameArgument",uploadCanNotFindFileToUpload:"legacy|uploadCanNotFindFileToUpload",uploadElementIsNotFileInput:"legacy|uploadElementIsNotFileInput",uploadInvalidFilePathArgument:"legacy|uploadInvalidFilePathArgument",pageNotLoaded:"legacy|pageNotLoaded"},browserUtils=hammerhead__default.default.utils.browser,JSON$4=hammerhead__default.default.json,nativeMethods$6=hammerhead__default.default.nativeMethods,RequestEmitter$2=testCafeCore__default.default.ClientRequestEmitter,RequestBarrier$2=testCafeCore__default.default.RequestBarrier,pageUnloadBarrier=testCafeCore__default.default.pageUnloadBarrier,serviceUtils$3=testCafeCore__default.default.serviceUtils,domUtils$3=testCafeCore__default.default.domUtils,eventUtils$2=testCafeCore__default.default.eventUtils,SUSPEND_ACTIONS={runStep:"runStep",asyncAction:"asyncAction",asyncActionSeries:"asyncActionSeries"},StepIterator=function(e){this.state={step:0,stepNames:null,testSteps:null,inAsyncAction:!1,stepsSharedData:{},lastSyncedSharedDataJSON:null,stopped:!1,suspended:!1,suspendedAction:null,suspendedArgs:[],waitedIFrame:null,curStepErrors:[]},this.pingIframe=e,this.globalWaitForEvent=null,this.globalWaitForTimeout=null,this.eventEmitter=new serviceUtils$3.EventEmitter},SOURCE_INDEX_ARG_REGEXP=(StepIterator.TEST_COMPLETE_EVENT="testComplete",StepIterator.NEXT_STEP_STARTED_EVENT="nextStepStarted",StepIterator.ACTION_TARGET_WAITING_STARTED_EVENT="actionTargetWaitingStarted",StepIterator.ACTION_RUN_EVENT="actionRun",StepIterator.ERROR_EVENT="error",StepIterator.ASSERTION_FAILED_EVENT="assertionFailed",StepIterator.SET_STEPS_SHARED_DATA_EVENT="setStepsSharedData",StepIterator.GET_STEPS_SHARED_DATA_EVENT="getStepsSharedData",StepIterator.TAKE_SCREENSHOT_EVENT="takeScreenshot",StepIterator.BEFORE_UNLOAD_EVENT_RAISED="beforeUnload",StepIterator.UNLOAD_EVENT_RAISED="unload",StepIterator.prototype.on=function(){return this.eventEmitter.on.apply(this.eventEmitter,arguments)},StepIterator.prototype._checkSharedDataSerializable=function(){var e;return!!JSON$4.isSerializable(this.state.stepsSharedData)||(e={type:ERROR_TYPE.storeDomNodeOrJqueryObject,stepName:Settings.get().CURRENT_TEST_STEP_NAME,stepNum:this.state.step-1},this.eventEmitter.emit(StepIterator.ERROR_EVENT,e),!1)},StepIterator.prototype._runStep=function(){var n,e;this.state.suspended?this.state.suspendedAction=SUSPEND_ACTIONS.runStep:(this.state.stopped=!1,this.state.curStepErrors=[],0<(n=this).state.step&&!n.state.stepDoneCalled&&"function"==typeof n.state.stepDone&&(n.state.stepDone(),n.state.stepDoneCalled=!0),this.state.stopped||(n.state.step>=n.state.testSteps.length?this.eventEmitter.emit(StepIterator.TEST_COMPLETE_EVENT,{callback:function(){n.state.runningCopmlete=!0}}):(Settings.get().CURRENT_TEST_STEP_NAME=n.state.stepNames[n.state.step],e=n.state.testSteps[n.state.step],n.state.step++,n.eventEmitter.emit(StepIterator.NEXT_STEP_STARTED_EVENT,{nextStep:n.state.step,callback:function(){n.__waitFor(function(){var t;"function"==typeof n.state.stepSetup&&n.state.stepSetup(),n.state.stepDoneCalled=!1,n.state.inAsyncAction=!1;try{n.callWithSharedDataContext(e)}catch(e){t={type:ERROR_TYPE.uncaughtJSErrorInTestCodeStep,scriptErr:e&&e.message||e,stepName:Settings.get().CURRENT_TEST_STEP_NAME,stepNum:n.state.step-1},n.eventEmitter.emit(StepIterator.ERROR_EVENT,t)}n.state.stopped||n.state.inAsyncAction||n._checkSharedDataSerializable()&&("function"!=typeof n.state.stepDone||n.state.stepDoneCalled||(n.state.stepDone(),n.state.stepDoneCalled=!0),n._runStep())})}}))))},StepIterator.prototype._setupUnloadHandlers=function(){var e=this,t=function(){return e.eventEmitter.emit(StepIterator.BEFORE_UNLOAD_EVENT_RAISED)};hammerhead__default.default.on(hammerhead__default.default.EVENTS.beforeUnload,browserUtils.isIE?function(){nativeMethods$6.setTimeout.call(window,function(){"loading"!==document.readyState||document.activeElement&&domUtils$3.isAnchorElement(document.activeElement)&&document.activeElement.hasAttribute("download")||t()},0)}:t),eventUtils$2.bind(window,"unload",function(){return e.eventEmitter.emit(StepIterator.UNLOAD_EVENT_RAISED)})},StepIterator.prototype._syncSharedDataWithServer=function(e){var t,n=this;n._checkSharedDataSerializable()&&(t=JSON$4.stringify(n.state.stepsSharedData),n.state.lastSyncedSharedDataJSON===t?"function"==typeof e&&e():n.eventEmitter.emit(StepIterator.SET_STEPS_SHARED_DATA_EVENT,{stepsSharedData:n.state.stepsSharedData,callback:function(){n.state.lastSyncedSharedDataJSON=t,"function"==typeof e&&e()}}))},StepIterator.prototype._waitActionSideEffectsCompletion=function(e,t){var n=new RequestEmitter$2,r=new RequestBarrier$2(n,{requestsCollection:Settings.get().REQUESTS_COLLECTION_DELAY,additionalRequestsCollection:Settings.get().ADDITIONAL_REQUESTS_COLLECTION_DELAY});e.call(window,function(){r.wait().then(t)})},StepIterator.prototype._completeAsyncAction=function(){var e=this;e.state.stopped||pageUnloadBarrier.wait(Settings.get().PAGE_UNLOAD_BARRIER_TIMEOUT).then(function(){return e._runStep()})},StepIterator.prototype.callWithSharedDataContext=function(e){return e.apply(this.state.stepsSharedData)},StepIterator.prototype._checkIFrame=function(e,t){var n;window.top===window&&domUtils$3.isElementInIframe(e)?(n=domUtils$3.getIframeByElement(e),this.pingIframe(n).then(function(){return t(n)}).catch(function(){return t(n)})):t(null)},StepIterator.prototype.asyncAction=function(e){var t;this.state.suspended?(this.state.suspendedAction=SUSPEND_ACTIONS.asyncAction,this.state.suspendedArgs=arguments):((t=this).state.inAsyncAction=!0,t._waitActionSideEffectsCompletion(e,function(){t._completeAsyncAction.apply(t,arguments)}),t._syncSharedDataWithServer(function(){}))},StepIterator.prototype.asyncActionSeries=function(e,t,a){var s,n;this.state.suspended?(this.state.suspendedAction=SUSPEND_ACTIONS.asyncActionSeries,this.state.suspendedArgs=arguments):((s=this).state.inAsyncAction=!0,n=function(e,t){forEachSeries(e,function(o,e){s._checkIFrame(o,function(i){i?s._waitActionSideEffectsCompletion(function(e){var t=!1;s.iFrameActionCallback=function(){s.iFrameActionCallback=null,s.waitedIFrame=null,e()},s.waitedIFrame=i,eventUtils$2.bind(i.contentWindow,"beforeunload",function e(){eventUtils$2.unbind(i.contentWindow,"beforeunload",e),t=!0});var n=new i.contentWindow["%testCafeCore%"].ClientRequestEmitter,r=new RequestBarrier$2(n,{requestsCollection:Settings.get().REQUESTS_COLLECTION_DELAY,additionalRequestsCollection:Settings.get().ADDITIONAL_REQUESTS_COLLECTION_DELAY});a(o,function(){r.wait().then(function(){t||s.iFrameActionCallback()})},i)},e):s._waitActionSideEffectsCompletion(function(e){a(o,e)},e)})},function(){s.state.stopped||t()})},s._syncSharedDataWithServer(function(){t(e,n,function(){s._completeAsyncAction.apply(s,arguments)})}))},StepIterator.prototype._init=function(){this.initialized=!0,this._setupUnloadHandlers(),pageUnloadBarrier.init()},StepIterator.prototype.start=function(e,t,n,r,i){this._init(),this.runSteps(e,t,n,r,i)},StepIterator.prototype.stop=function(){this.state.stopped=!0},StepIterator.prototype.runSteps=function(e,t,n,r,i){this.initialized||this._init();var o=this;o.state.testSteps=t,o.state.stepNames=e,o.state.inAsyncAction=!1,o.state.step=i,o.state.stepSetup=n,o.state.stepDone=r,o.state.runningCopmlete=!1,o.eventEmitter.emit(StepIterator.GET_STEPS_SHARED_DATA_EVENT,{callback:function(e){o.state.stepsSharedData=e||{},o.state.lastSyncedSharedDataJSON=JSON$4.stringify(o.state.stepsSharedData),o._runStep()}})},StepIterator.prototype.getSharedData=function(){return this.state.stepsSharedData},StepIterator.prototype.setSharedData=function(e){this.state.stepsSharedData=e,this._syncSharedDataWithServer()},StepIterator.prototype.onError=function(e){this.state.stopped||(this.state.curStepErrors.push(e),this.eventEmitter.emit(StepIterator.ERROR_EVENT,hammerhead__default.default.utils.extend({stepNum:this.state.step-1},e)))},StepIterator.prototype.onAssertionFailed=function(e){this.state.stopped||(this.state.curStepErrors.push(e),this.eventEmitter.emit(StepIterator.ASSERTION_FAILED_EVENT,{err:e,stepNum:this.state.step-1,isAssertion:!0}))},StepIterator.prototype.runNext=function(){this._runStep()},StepIterator.prototype.runLast=function(){this.state.step--,this.runNext()},StepIterator.prototype.getCurrentStep=function(){return this.state.stepNames?this.state.stepNames[this.state.step-1]:Settings.get().CURRENT_TEST_STEP_NAME},StepIterator.prototype.getCurrentStepNum=function(){return this.state.step-1},StepIterator.prototype.onActionTargetWaitingStarted=function(e){this.eventEmitter.emit(StepIterator.ACTION_TARGET_WAITING_STARTED_EVENT,e)},StepIterator.prototype.onActionRun=function(){this.eventEmitter.emit(StepIterator.ACTION_RUN_EVENT,{})},StepIterator.prototype.suspend=function(){this.state.suspended=!0},StepIterator.prototype.resume=function(){this.state.suspended&&!this.state.stopped&&(this.state.suspended=!1,this.state.suspendedAction===SUSPEND_ACTIONS.runStep&&this._runStep(),this.state.suspendedAction===SUSPEND_ACTIONS.asyncAction&&this.asyncAction.apply(this,this.state.suspendedArgs),this.state.suspendedAction===SUSPEND_ACTIONS.asyncActionSeries&&this.asyncActionSeries.apply(this,this.state.suspendedArgs),this.state.suspendedAction=null,this.state.suspendedArgs=[])},StepIterator.prototype.setGlobalWaitFor=function(e,t){"function"!=typeof e&&this.onError({type:ERROR_TYPE.incorrectGlobalWaitForActionEventArgument,stepName:Settings.get().CURRENT_TEST_STEP_NAME}),"number"!=typeof t&&this.onError({type:ERROR_TYPE.incorrectGlobalWaitForActionTimeoutArgument,stepName:Settings.get().CURRENT_TEST_STEP_NAME}),this.globalWaitForEvent=e,this.globalWaitForTimeout=t},StepIterator.prototype.__waitFor=function(e){var t,n=this;"function"!=typeof this.globalWaitForEvent?e():("number"!=typeof this.globalWaitForTimeout&&(this.globalWaitForTimeout=0),t=nativeMethods$6.setTimeout.call(window,function(){n.onError({type:ERROR_TYPE.globalWaitForActionTimeoutExceeded,stepName:Settings.get().CURRENT_TEST_STEP_NAME})},this.globalWaitForTimeout),n.callWithSharedDataContext(function(){n.globalWaitForEvent.call(n,function(){window.clearTimeout(t),e()})}))},StepIterator.prototype.takeScreenshot=function(e,t){this.eventEmitter.emit(StepIterator.TAKE_SCREENSHOT_EVENT,{filePath:t||"",callback:e})},/#(\d+)/),currentIndex=null;function wrapTrackableMethods(t,e){testCafeCore.arrayUtils.forEach(e,function(e){var n=t[e];t[e]=function(){var e,t=Array.prototype.slice.call(arguments);return Settings.get().ENABLE_SOURCE_INDEX&&(e="string"==typeof(e=t[t.length-1])&&e.match(SOURCE_INDEX_ARG_REGEXP))&&(currentIndex=parseInt(e[1],10),t.pop()),n.apply(this,t)}})}var CROSS_DOMAIN_MESSAGES={IFRAME_TEST_RUNNER_PING_DISPATCHER_CMD:"pingIFrameDispatcher",IFRAME_TEST_RUNNER_RUN_CMD:"runInIFrameTestRunner",IFRAME_TEST_RUNNER_WAITING_STEP_COMPLETION_REQUEST_CMD:"waitingStepCompletionRequest",IFRAME_TEST_RUNNER_WAITING_STEP_COMPLETION_RESPONSE_CMD:"waitingStepCompletionResponse",ASSERT_REQUEST_CMD:"assertRequest",ASSERT_RESPONSE_CMD:"assertResponse"};function isJQueryObj(e){return e&&e.jquery}var messageSandbox$3=hammerhead__default.default.eventSandbox.message,arrayUtils$1=testCafeCore__default.default.arrayUtils,domUtils$2=testCafeCore__default.default.domUtils;function createDiffObject(e,t){return{actual:getDescription(e),expected:getDescription(t)}}function isElementsCollection(e){return e instanceof NodeList||e instanceof HTMLCollection}function getObjectsDiff(e,t,n,r){if(r=r||{actual:{},expected:{}},e!==t){if(e instanceof Date&&t instanceof Date)return(o=e.getTime())===(a=t.getTime())?null:{actual:o,expected:a,isDates:!0};if("string"==typeof e&&"string"==typeof t)return getStringDiff(e,t);if(arrayUtils$1.isArray(e)||arrayUtils$1.isArray(t))return(arrayUtils$1.isArray(e)&&arrayUtils$1.isArray(t)?getArraysDiff:createDiffObject)(e,t);if(isElementsCollection(e)||isElementsCollection(t))return isElementsCollection(e)&&isElementsCollection(t)?getArraysDiff(o=arrayUtils$1.from(e),a=arrayUtils$1.from(t))?createDiffObject(o,a):null:createDiffObject(e,t);if(domUtils$2.isDomElement(e)||domUtils$2.isDomElement(t))return domUtils$2.isDomElement(e)&&domUtils$2.isDomElement(t)&&e===t?null:createDiffObject(e,t);if(isJQueryObj(e)||isJQueryObj(t))return isJQueryObj(e)&&isJQueryObj(t)&&!getArraysDiff(arrayUtils$1.from(e),arrayUtils$1.from(t))?null:createDiffObject(e,t);if(null==e||null==t)return createDiffObject(e,t);if("function"==typeof e||"function"==typeof t)return"function"!=typeof e||"function"!=typeof t||e!==t?createDiffObject(e,t):null;if("object"!=typeof e||"object"!=typeof t)return e==t?null:createDiffObject(e,t);if(e.prototype!==t.prototype)return createDiffObject(e,t);var i=getKeys(e),o=getKeys(t),a=(i.sort(),o.sort(),getKeysDiff(i,o));if(a)return o=a.actual||a.expected,{key:n?[n,o].join("."):o,actual:getDescription(e[o],!0),expected:getDescription(t[o],!0),isObjects:!0};for(var s,u=null,l=0;l<i.length;l++){var u=i[l],c=n?[n,u].join("."):u;if(isCircularDependency(r.actual,e[u])&&isCircularDependency(r.expected,t[u]))return null;if(r.actual[c]=e[u],r.expected[c]=t[u],s=getObjectsDiff(e[u],t[u],c,r))return{key:s.key||c,actual:s.isArrays?getDescription(e[u]):s.actual,expected:s.isArrays?getDescription(t[u]):s.expected,isObjects:!0,diffType:{isObjects:s.isObjects,isArrays:s.isArrays,isStrings:s.isStrings,isDates:s.isDates}}}}return null}function isCircularDependency(e,t){if("object"==typeof t&&null!==t)for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return 1}function getArrayDiffIndex(e,t){for(var n=0;n<Math.min(e.length,t.length);n++)if(getObjectsDiff(e[n],t[n]))return n;return e.length!==t.length?Math.min(e.length,t.length):-1}function getKeysDiff(e,t){for(var n=-1,r=0;r<Math.min(e.length,t.length);r++)e[r]!==t[r]&&(n=r);return-1<(n=e.length!==t.length?Math.min(Math.max(e.length-1,0),Math.max(t.length-1,0)):n)?{key:n,actual:getDescription(e[n],!0),expected:getDescription(t[n],!0),isArrays:!0}:null}function getStringDiff(e,t){for(var n=-1,r=Math.min(e.length,t.length),i=0;i<r;i++)if(e[i]!==t[i]){n=i;break}return-1<(n=n<0&&e.length!==t.length?r?r-1:0:n)?{key:n,actual:getDescription(e),expected:getDescription(t),isStrings:!0}:null}function getArraysDiff(e,t){var n=getArrayDiffIndex(e,t),r={};return"string"==typeof e[n]&&"string"==typeof t[n]?(r.isStrings=!0,r.diffIndex=getStringDiff(e[n],t[n]).key):e[n]instanceof Date&&t[n]instanceof Date&&(r.isDates=!0),-1<n?{key:n,actual:r.isDates?e[n].getTime():getDescription(e[n]),expected:r.isDates?t[n].getTime():getDescription(t[n]),isArrays:!0,diffType:r}:null}function getKeys(e){var t,n=[];for(t in e)e.hasOwnProperty(t)&&n.push(t);return n}function getDescription(t,e){if("string"==typeof t&&!e)return"'"+t+"'";if(t instanceof Date||/string|number|boolean|function/.test(typeof t))return t.toString();if(arrayUtils$1.isArray(t))return getArrayDescription(t);if(isJQueryObj(t))return getArrayDescription(arrayUtils$1.from(t));if(null===t)return"null";if(void 0===t)return"undefined";if(domUtils$2.isDomElement(t))return domUtils$2.getElementDescription(t);try{return JSON.stringify(t)}catch(e){return t.toString()}}function getArrayDescription(e){for(var t=[],n=0;n<e.length;n++)t.push(getDescription(e[n]));return"["+t.join(", ")+"]"}var AssertionsAPI=function(e){this.onAssertionFailed=e},AUTOMATIONS_STORAGE_FLAG=(AssertionsAPI.prototype._fail=function(e){e.stepName=Settings.get().CURRENT_TEST_STEP_NAME,e.__sourceIndex=currentIndex,this.onAssertionFailed(e)},AssertionsAPI.prototype.ok=function(e,t){e||this._fail({type:ERROR_TYPE.okAssertion,message:t,actual:getDescription(e)})},AssertionsAPI.prototype.notOk=function(e,t){e&&this._fail({type:ERROR_TYPE.notOkAssertion,message:t,actual:getDescription(e)})},AssertionsAPI.prototype.eq=function(e,t,n){e=getObjectsDiff(e,t);e&&this._fail({type:ERROR_TYPE.eqAssertion,message:n,actual:e.actual,expected:e.expected,key:e.key,isStrings:e.isStrings,isArrays:e.isArrays,isObjects:e.isObjects,isDates:e.isDates,diffType:e.diffType||{}})},AssertionsAPI.prototype.notEq=function(e,t,n,r){getObjectsDiff(e,t)?r&&r():this._fail({type:ERROR_TYPE.notEqAssertion,message:n,actual:getDescription(e),callback:r})},AssertionsAPI.assert=function(e,t,n,r){var i,o;r?(messageSandbox$3.on(messageSandbox$3.SERVICE_MSG_RECEIVED_EVENT,function e(t){t.message.cmd===CROSS_DOMAIN_MESSAGES.ASSERT_RESPONSE_CMD&&(messageSandbox$3.off(messageSandbox$3.SERVICE_MSG_RECEIVED_EVENT,e),n(t.message.err))}),o={cmd:CROSS_DOMAIN_MESSAGES.ASSERT_REQUEST_CMD,operator:e,args:t},messageSandbox$3.sendServiceMsg(o,r)):(i=null,(o=new AssertionsAPI(function(e){i=e}))[e].apply(o,t),n(i))},wrapTrackableMethods(AssertionsAPI.prototype,["ok","notOk","eq","notEq"]),"runner|automations-storage-flag");function fill(){window[AUTOMATIONS_STORAGE_FLAG]={Click:testcafeAutomation.Click,SelectChildClick:testcafeAutomation.SelectChildClick,RClick:testcafeAutomation.RClick,DblClick:testcafeAutomation.DblClick,Hover:testcafeAutomation.Hover,DragToOffset:testcafeAutomation.DragToOffset,DragToElement:testcafeAutomation.DragToElement,SelectText:testcafeAutomation.SelectText,SelectEditableContent:testcafeAutomation.SelectEditableContent,Press:testcafeAutomation.Press,Type:testcafeAutomation.Type,Upload:testcafeAutomation.Upload}}function getAutomations(e){return e[AUTOMATIONS_STORAGE_FLAG]}var nativeMethods$5=hammerhead__default.default.nativeMethods,processScript=hammerhead__default.default.processScript,jQuery=null;function exportJQuery(){jQuery=window.jQuery.noConflict(!0)}function init$4(window,undefined$1){var jQueryFunction=function(T,k){function S(e){return"function"==typeof e&&"number"!=typeof e.nodeType}function g(e){return null!=e&&e===e.window}var t=[],P=Object.getPrototypeOf,s=t.slice,U=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},L=t.push,W=t.indexOf,B={},j=B.toString,q=B.hasOwnProperty,H=q.toString,V=H.call(Object),m={},v=T.document,G={type:!0,src:!0,nonce:!0,noModule:!0};function Y(e,t,n){var r,i,o=(n=n||v).createElement("script");if(o.text=e,t)for(r in G)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function h(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?B[j.call(e)]||"object":typeof e}var A=function(e,t){return new A.fn.init(e,t)};function Q(e){var t=!!e&&"length"in e&&e.length,n=h(e);return!S(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}A.fn=A.prototype={jquery:"3.5.1",constructor:A,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=A.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return A.each(this,e)},map:function(n){return this.pushStack(A.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(A.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:L,sort:t.sort,splice:t.splice},A.extend=A.fn.extend=function(){var e,t,n,r,i,o=arguments[0]||{},a=1,s=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||S(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&o!==n&&(u&&n&&(A.isPlainObject(n)||(r=Array.isArray(n)))?(i=o[t],i=r&&!Array.isArray(i)?[]:r||A.isPlainObject(i)?i:{},r=!1,o[t]=A.extend(u,i,n)):n!==undefined$1&&(o[t]=n));return o},A.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==j.call(e)||(e=P(e))&&("function"!=typeof(e=q.call(e,"constructor")&&e.constructor)||H.call(e)!==V))},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){Y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(Q(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(Q(Object(e))?A.merge(t,"string"==typeof e?[e]:e):L.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:W.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!=a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(Q(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return U(a)},guid:1,support:m}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=t[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){B["[object "+t+"]"]=t.toLowerCase()});function r(e,t,n){for(var r=[],i=n!==undefined$1;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&A(e).is(n))break;r.push(e)}return r}function X(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var e=function(k){function f(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function P(){v()}var e,d,_,o,U,p,L,W,T,u,l,v,A,n,I,h,r,i,g,R="sizzle"+ +new Date,c=k.document,C=0,B=0,j=w(),q=w(),H=w(),m=w(),V=function(e,t){return e===t&&(l=!0),0},G={}.hasOwnProperty,t=[],Y=t.pop,Q=t.push,D=t.push,X=t.slice,S=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",K=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",Z=new RegExp(a+"+","g"),E=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),ee=new RegExp("^"+a+"*,"+a+"*"),te=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),ne=new RegExp(a+"|>"),re=new RegExp(K),ie=new RegExp("^"+s+"$"),y={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+K),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},oe=/HTML$/i,ae=/^(?:input|select|textarea|button)$/i,se=/^h\d$/i,b=/^[^{]+\{\s*\[native \w/,ue=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,le=/[+~]/,x=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,fe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},de=Se(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{D.apply(t=X.call(c.childNodes),c.childNodes),t[c.childNodes.length].nodeType}catch(e){D={apply:t.length?function(e,t){Q.apply(e,X.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function N(t,e,n,r){var i,o,a,s,u,l,c=e&&e.ownerDocument,f=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return n;if(!r&&(v(e),e=e||A,I)){if(11!==f&&(s=ue.exec(t)))if(i=s[1]){if(9===f){if(!(l=e.getElementById(i)))return n;if(l.id===i)return n.push(l),n}else if(c&&(l=c.getElementById(i))&&g(e,l)&&l.id===i)return n.push(l),n}else{if(s[2])return D.apply(n,e.getElementsByTagName(t)),n;if((i=s[3])&&d.getElementsByClassName&&e.getElementsByClassName)return D.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!m[t+" "]&&(!h||!h.test(t))&&(1!==f||"object"!==e.nodeName.toLowerCase())){if(l=t,c=e,1===f&&(ne.test(t)||te.test(t))){for((c=le.test(t)&&me(e.parentNode)||e)===e&&d.scope||((a=e.getAttribute("id"))?a=a.replace(ce,fe):e.setAttribute("id",a=R)),o=(u=p(t)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+F(u[o]);l=u.join(",")}try{return D.apply(n,c.querySelectorAll(l)),n}catch(e){m(t,!0)}finally{a===R&&e.removeAttribute("id")}}}return W(t.replace(E,"$1"),e,n,r)}function w(){var n=[];function r(e,t){return n.push(e+" ")>_.cacheLength&&delete r[n.shift()],r[e+" "]=t}return r}function O(e){return e[R]=!0,e}function M(e){var t=A.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function pe(e,t){for(var n=e.split("|"),r=n.length;r--;)_.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&de(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function $(a){return O(function(o){return o=+o,O(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=N.support={},U=N.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!oe.test(t||e&&e.nodeName||"HTML")},v=N.setDocument=function(e){var e=e?e.ownerDocument||e:c;return e!=A&&9===e.nodeType&&e.documentElement&&(n=(A=e).documentElement,I=!U(A),c!=A&&(e=A.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",P,!1):e.attachEvent&&e.attachEvent("onunload",P)),d.scope=M(function(e){return n.appendChild(e).appendChild(A.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=M(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=M(function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=b.test(A.getElementsByClassName),d.getById=M(function(e){return n.appendChild(e).id=R,!A.getElementsByName||!A.getElementsByName(R).length}),d.getById?(_.filter.ID=function(e){var t=e.replace(x,f);return function(e){return e.getAttribute("id")===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&I)return(t=t.getElementById(e))?[t]:[]}):(_.filter.ID=function(e){var t=e.replace(x,f);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},_.find.ID=function(e,t){if(void 0!==t.getElementById&&I){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),_.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},_.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&I)return t.getElementsByClassName(e)},r=[],h=[],(d.qsa=b.test(A.querySelectorAll))&&(M(function(e){var t;n.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+a+"*(?:value|"+J+")"),e.querySelectorAll("[id~="+R+"-]").length||h.push("~="),(t=A.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")}),M(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(d.matchesSelector=b.test(i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&M(function(e){d.disconnectedMatch=i.call(e,"*"),i.call(e,"[s!='']:x"),r.push("!=",K)}),h=h.length&&new RegExp(h.join("|")),r=r.length&&new RegExp(r.join("|")),e=b.test(n.compareDocumentPosition),g=e||b.test(n.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=e?function(e,t){var n;return e===t?(l=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==A||e.ownerDocument==c&&g(c,e)?-1:t==A||t.ownerDocument==c&&g(c,t)?1:u?S(u,e)-S(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==A?-1:t==A?1:i?-1:o?1:u?S(u,e)-S(u,t):0;if(i===o)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?he(a[r],s[r]):a[r]==c?-1:s[r]==c?1:0}),A},N.matches=function(e,t){return N(e,null,null,t)},N.matchesSelector=function(e,t){if(v(e),d.matchesSelector&&I&&!m[t+" "]&&(!r||!r.test(t))&&(!h||!h.test(t)))try{var n=i.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){m(t,!0)}return 0<N(t,A,null,[e]).length},N.contains=function(e,t){return(e.ownerDocument||e)!=A&&v(e),g(e,t)},N.attr=function(e,t){(e.ownerDocument||e)!=A&&v(e);var n=_.attrHandle[t.toLowerCase()],n=n&&G.call(_.attrHandle,t.toLowerCase())?n(e,t,!I):undefined$1;return n!==undefined$1?n:d.attributes||!I?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},N.escape=function(e){return(e+"").replace(ce,fe)},N.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},N.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(V),l){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return u=null,e},o=N.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(_=N.selectors={cacheLength:50,createPseudo:O,match:y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(x,f),e[3]=(e[3]||e[4]||e[5]||"").replace(x,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||N.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&N.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&re.test(n)&&(t=(t=p(n,!0))&&n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(x,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=j[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&j(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=N.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1<e.indexOf(r):"$="===n?r&&e.slice(-r.length)===r:"~="===n?-1<(" "+e.replace(Z," ")+" ").indexOf(r):"|="===n&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(h,e,t,g,m){var E="nth"!==h.slice(0,3),S="last"!==h.slice(-4),y="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=E!=S?"nextSibling":"previousSibling",c=e.parentNode,f=y&&e.nodeName.toLowerCase(),d=!n&&!y,p=!1;if(c){if(E){for(;l;){for(a=e;a=a[l];)if(y?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[S?c.firstChild:c.lastChild],S&&d){for(p=(s=(r=(i=(o=(a=c)[R]||(a[R]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===C&&r[1])&&r[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(p=s=0,u.pop());)if(1===a.nodeType&&++p&&a===e){i[h]=[C,s,p];break}}else if(!1===(p=d?s=(r=(i=(o=(a=e)[R]||(a[R]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===C&&r[1]:p))for(;(a=++s&&a&&a[l]||(p=s=0,u.pop()))&&((y?a.nodeName.toLowerCase()!==f:1!==a.nodeType)||!++p||(d&&((i=(o=a[R]||(a[R]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[C,p]),a!==e)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,o){var t,a=_.pseudos[e]||_.setFilters[e.toLowerCase()]||N.error("unsupported pseudo: "+e);return a[R]?a(o):1<a.length?(t=[e,e,"",o],_.setFilters.hasOwnProperty(e.toLowerCase())?O(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=S(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:O(function(e){var r=[],i=[],s=L(e.replace(E,"$1"));return s[R]?O(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:O(function(t){return function(e){return 0<N(t,e).length}}),contains:O(function(t){return t=t.replace(x,f),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:O(function(n){return ie.test(n||"")||N.error("unsupported lang: "+n),n=n.replace(x,f).toLowerCase(),function(e){var t;do{if(t=I?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=k.location&&k.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!_.pseudos.empty(e)},header:function(e){return se.test(e.nodeName)},input:function(e){return ae.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:$(function(){return[0]}),last:$(function(e,t){return[t-1]}),eq:$(function(e,t,n){return[n<0?n+t:n]}),even:$(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:$(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:$(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:$(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})_.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function Ee(){}function F(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Se(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=B++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[C,f];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(i=(i=e[R]||(e[R]={}))[e.uniqueID]||(i[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((r=i[l])&&r[0]===C&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function ye(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function _e(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,r,i)||(a.push(o),l&&t.push(s));return a}function Te(p,h,g,m,E,e){return m&&!m[R]&&(m=Te(m)),E&&!E[R]&&(E=Te(E,e)),O(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)N(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!p||!e&&h?c:_e(c,s,p,n,r),d=g?E||(e?p:l||m)?[]:t:f;if(g&&g(f,d,n,r),m)for(i=_e(d,u),m(i,[],n,r),o=i.length;o--;)(a=i[o])&&(d[u[o]]=!(f[u[o]]=a));if(e){if(E||p){if(E){for(i=[],o=d.length;o--;)(a=d[o])&&i.push(f[o]=a);E(null,d=[],i,r)}for(o=d.length;o--;)(a=d[o])&&-1<(i=E?S(e,a):s[o])&&(e[i]=!(t[i]=a))}}else d=_e(d===t?d.splice(l,d.length):d),E?E(null,t,d,r):D.apply(t,d)})}function ve(m,E){function e(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],d=T,p=e||y&&_.find.TAG("*",i),h=C+=null==d?1:Math.random()||.1,g=p.length;for(i&&(T=t==A||t||i);l!==g&&null!=(o=p[l]);l++){if(y&&o){for(a=0,t||o.ownerDocument==A||(v(o),n=!I);s=m[a++];)if(s(o,t||A,n)){r.push(o);break}i&&(C=h)}S&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=l,S&&l!==u){for(a=0;s=E[a++];)s(c,f,t,n);if(e){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=Y.call(r));f=_e(f)}D.apply(r,f),i&&!e&&0<f.length&&1<u+E.length&&N.uniqueSort(r)}return i&&(C=h,T=d),c}var S=0<E.length,y=0<m.length;return S?O(e):e}return Ee.prototype=_.filters=_.pseudos,_.setFilters=new Ee,p=N.tokenize=function(e,t){var n,r,i,o,a,s,u,l=q[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=_.preFilter;a;){for(o in n&&!(r=ee.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=te.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(E," ")}),a=a.slice(n.length)),_.filter)!(r=y[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?N.error(e):q(e,s).slice(0)},L=N.compile=function(e,t){var n,r=[],i=[],o=H[e+" "];if(!o){for(n=(t=t||p(e)).length;n--;)((o=function e(t){for(var r,n,i,o=t.length,a=_.relative[t[0].type],s=a||_.relative[" "],u=a?1:0,l=Se(function(e){return e===r},s,!0),c=Se(function(e){return-1<S(r,e)},s,!0),f=[function(e,t,n){return e=!a&&(n||t!==T)||((r=t).nodeType?l:c)(e,t,n),r=null,e}];u<o;u++)if(n=_.relative[t[u].type])f=[Se(ye(f),n)];else{if((n=_.filter[t[u].type].apply(null,t[u].matches))[R]){for(i=++u;i<o&&!_.relative[t[i].type];i++);return Te(1<u&&ye(f),1<u&&F(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(E,"$1"),n,u<i&&e(t.slice(u,i)),i<o&&e(t=t.slice(i)),i<o&&F(t))}f.push(n)}return ye(f)}(t[n]))[R]?r:i).push(o);(o=H(e,ve(i,r))).selector=e}return o},W=N.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&p(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&I&&_.relative[o[1].type]){if(!(t=(_.find.ID(a.matches[0].replace(x,f),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=y.needsContext.test(e)?0:o.length;i--&&(a=o[i],!_.relative[s=a.type]);)if((u=_.find[s])&&(r=u(a.matches[0].replace(x,f),le.test(o[0].type)&&me(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&F(o))break;return D.apply(n,r),n}}return(l||L(e,c))(r,t,!I,n,!t||le.test(e)&&me(t.parentNode)||t),n},d.sortStable=R.split("").sort(V).join("")===R,d.detectDuplicates=!!l,v(),d.sortDetached=M(function(e){return 1&e.compareDocumentPosition(A.createElement("fieldset"))}),M(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||pe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&M(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||pe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),M(function(e){return null==e.getAttribute("disabled")})||pe(J,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),N}(T),J=(A.find=e,A.expr=e.selectors,A.expr[":"]=A.expr.pseudos,A.uniqueSort=A.unique=e.uniqueSort,A.text=e.getText,A.isXMLDoc=e.isXML,A.contains=e.contains,A.escapeSelector=e.escape,A.expr.match.needsContext);function u(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function K(e,n,r){return S(n)?A.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?A.grep(e,function(e){return e===n!==r}):"string"!=typeof n?A.grep(e,function(e){return-1<W.call(n,e)!==r}):A.filter(n,e,r)}A.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?A.find.matchesSelector(r,e)?[r]:[]:A.find.matches(e,A.grep(t,function(e){return 1===e.nodeType}))},A.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(A(e).filter(function(){for(t=0;t<r;t++)if(A.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)A.find(e,i[t],n);return 1<r?A.uniqueSort(n):n},filter:function(e){return this.pushStack(K(this,e||[],!1))},not:function(e){return this.pushStack(K(this,e||[],!0))},is:function(e){return!!K(this,"string"==typeof e&&J.test(e)?A(e):e||[],!1).length}});var Z,ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,te=((A.fn.init=function(e,t,n){if(e){if(n=n||Z,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):S(e)?n.ready!==undefined$1?n.ready(e):e(A):A.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ee.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),z.test(r[1])&&A.isPlainObject(t))for(var r in t)S(this[r])?this[r](t[r]):this.attr(r,t[r])}else(n=v.getElementById(r[2]))&&(this[0]=n,this.length=1)}return this}).prototype=A.fn,Z=A(v),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function re(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}A.fn.extend({has:function(e){var t=A(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(A.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&A(e);if(!J.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&A.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?A.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?W.call(A(e),this[0]):W.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return r(e,"parentNode")},parentsUntil:function(e,t,n){return r(e,"parentNode",n)},next:function(e){return re(e,"nextSibling")},prev:function(e){return re(e,"previousSibling")},nextAll:function(e){return r(e,"nextSibling")},prevAll:function(e){return r(e,"previousSibling")},nextUntil:function(e,t,n){return r(e,"nextSibling",n)},prevUntil:function(e,t,n){return r(e,"previousSibling",n)},siblings:function(e){return X((e.parentNode||{}).firstChild,e)},children:function(e){return X(e.firstChild)},contents:function(e){return null!=e.contentDocument&&P(e.contentDocument)?e.contentDocument:(u(e,"template")&&(e=e.content||e),A.merge([],e.childNodes))}},function(r,i){A.fn[r]=function(e,t){var n=A.map(this,i,e);return(t="Until"!==r.slice(-5)?e:t)&&"string"==typeof t&&(n=A.filter(t,n)),1<this.length&&(ne[r]||A.uniqueSort(n),te.test(r))&&n.reverse(),this.pushStack(n)}});var I=/[^\x20\t\r\n\f]+/g;function c(e){return e}function ie(e){throw e}function oe(e,t,n,r){var i;try{e&&S(i=e.promise)?i.call(e).done(t).fail(n):e&&S(i=e.then)?i.call(e,t,n):t.apply(undefined$1,[e].slice(r))}catch(e){n.apply(undefined$1,[e])}}A.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},A.each(e.match(I)||[],function(e,t){n[t]=!0}),n):A.extend({},r);function i(){for(s=s||r.once,a=o=!0;l.length;c=-1)for(t=l.shift();++c<u.length;)!1===u[c].apply(t[0],t[1])&&r.stopOnFalse&&(c=u.length,t=!1);r.memory||(t=!1),o=!1,s&&(u=t?[]:"")}var o,t,a,s,u=[],l=[],c=-1,f={add:function(){return u&&(t&&!o&&(c=u.length-1,l.push(t)),function n(e){A.each(e,function(e,t){S(t)?r.unique&&f.has(t)||u.push(t):t&&t.length&&"string"!==h(t)&&n(t)})}(arguments),t)&&!o&&i(),this},remove:function(){return A.each(arguments,function(e,t){for(var n;-1<(n=A.inArray(t,u,n));)u.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<A.inArray(e,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return s=l=[],u=t="",this},disabled:function(){return!u},lock:function(){return s=l=[],t||o||(u=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),o)||i(),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!a}};return f},A.extend({Deferred:function(e){var o=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var i=arguments;return A.Deferred(function(r){A.each(o,function(e,t){var n=S(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&S(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){function e(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,S(t)?s?t.call(e,l(u,o,c,s),l(u,o,ie,s)):(u++,t.call(e,l(u,o,c,s),l(u,o,ie,s),l(u,o,c,o.notifyWith))):(a!==c&&(n=undefined$1,r=[e]),(s||o.resolveWith)(n,r))}}var n=this,r=arguments,t=s?e:function(){try{e()}catch(e){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==ie&&(n=undefined$1,r=[e]),o.rejectWith(n,r))}};i?t():(A.Deferred.getStackHook&&(t.stackTrace=A.Deferred.getStackHook()),nativeMethods$5.setTimeout.call(T,t))}}return A.Deferred(function(e){o[