!function e(t,i,o){function a(r,s){if(!i[r]){if(!t[r]){var c="function"==typeof require&&require;if(!s&&c)return c(r,!0);if(n)return n(r,!0);var m=new Error("Cannot find module '"+r+"'");throw m.code="MODULE_NOT_FOUND",m}var l=i[r]={exports:{}};t[r][0].call(l.exports,(function(e){return a(t[r][1][e]||e)}),l,l.exports,e,t,i,o)}return i[r].exports}for(var n="function"==typeof require&&require,r=0;rthis.length&&(a=this.length),a<0&&(a+=this.length+1);var n,r,s=[],c=[],m=[],l=[],u={},d=t.add,p=t.merge,h=t.remove,g=!1,f=this.comparator&&null==a&&!1!==t.sort,b=i.isString(this.comparator)?this.comparator:null;for(r=0;r7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(H,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var o=document.body,a=o.insertBefore(this.iframe,o.firstChild).contentWindow;a.document.open(),a.document.close(),a.location.hash="#"+this.fragment}var n=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?n("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?n("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),I.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),i.some(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0})))},navigate:function(e,t){if(!I.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var i=this.root;""!==e&&"?"!==e.charAt(0)||(i=i.slice(0,-1)||"/");var o=i+e;e=e.replace(N,"");var a=this.decodeFragment(e);if(this.fragment!==a){if(this.fragment=a,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,o);else{if(!this._wantsHashChange)return this.location.assign(o);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var n=this.iframe.contentWindow;t.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,i){if(i){var o=e.href.replace(/(javascript:|#).*$/,"");e.replace(o+"#"+t)}else e.hash="#"+t}}),t.history=new I;b.extend=v.extend=G.extend=M.extend=I.extend=function(e,t){var o,a=this;return o=e&&i.has(e,"constructor")?e.constructor:function(){return a.apply(this,arguments)},i.extend(o,a,t),o.prototype=i.create(a.prototype,e),o.prototype.constructor=o,o.__super__=a.prototype,o};var O=function(){throw new Error('A "url" property or function must be specified')},L=function(e,t){var i=t.error;t.error=function(o){i&&i.call(t.context,e,o,t),e.trigger("error",e,o,t)}};return t}))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{jquery:18,underscore:2}],2:[function(e,t,i){(function(e){(function(){!function(){var o="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},a=o._,n=Array.prototype,r=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=n.push,m=n.slice,l=r.toString,u=r.hasOwnProperty,d=Array.isArray,p=Object.keys,h=Object.create,g=function(){},f=function(e){return e instanceof f?e:this instanceof f?void(this._wrapped=e):new f(e)};void 0===i||i.nodeType?o._=f:(void 0!==t&&!t.nodeType&&t.exports&&(i=t.exports=f),i._=f),f.VERSION="1.9.2";var b,v=function(e,t,i){if(void 0===t)return e;switch(null==i?3:i){case 1:return function(i){return e.call(t,i)};case 3:return function(i,o,a){return e.call(t,i,o,a)};case 4:return function(i,o,a,n){return e.call(t,i,o,a,n)}}return function(){return e.apply(t,arguments)}},k=function(e,t,i){return f.iteratee!==b?f.iteratee(e,t):null==e?f.identity:f.isFunction(e)?v(e,t,i):f.isObject(e)&&!f.isArray(e)?f.matcher(e):f.property(e)};f.iteratee=b=function(e,t){return k(e,t,1/0)};var y=function(e,t){return t=null==t?e.length-1:+t,function(){for(var i=Math.max(arguments.length-t,0),o=Array(i),a=0;a=0&&t<=_};f.each=f.forEach=function(e,t,i){var o,a;if(t=v(t,i),M(e))for(o=0,a=e.length;o0?0:r-1;for(a||(o=t[n?n[s]:s],s+=e);s>=0&&s=3;return t(e,v(i,a,4),o,n)}};f.reduce=f.foldl=f.inject=x(1),f.reduceRight=f.foldr=x(-1),f.find=f.detect=function(e,t,i){var o=(M(e)?f.findIndex:f.findKey)(e,t,i);if(void 0!==o&&-1!==o)return e[o]},f.filter=f.select=function(e,t,i){var o=[];return t=k(t,i),f.each(e,(function(e,i,a){t(e,i,a)&&o.push(e)})),o},f.reject=function(e,t,i){return f.filter(e,f.negate(k(t)),i)},f.every=f.all=function(e,t,i){t=k(t,i);for(var o=!M(e)&&f.keys(e),a=(o||e).length,n=0;n=0},f.invoke=y((function(e,t,i){var o,a;return f.isFunction(t)?a=t:f.isArray(t)&&(o=t.slice(0,-1),t=t[t.length-1]),f.map(e,(function(e){var n=a;if(!n){if(o&&o.length&&(e=A(e,o)),null==e)return;n=e[t]}return null==n?n:n.apply(e,i)}))})),f.pluck=function(e,t){return f.map(e,f.property(t))},f.where=function(e,t){return f.filter(e,f.matcher(t))},f.findWhere=function(e,t){return f.find(e,f.matcher(t))},f.max=function(e,t,i){var o,a,n=-1/0,r=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=M(e)?e:f.values(e)).length;sn&&(n=o);else t=k(t,i),f.each(e,(function(e,i,o){((a=t(e,i,o))>r||a===-1/0&&n===-1/0)&&(n=e,r=a)}));return n},f.min=function(e,t,i){var o,a,n=1/0,r=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=M(e)?e:f.values(e)).length;so||void 0===i)return 1;if(i0?0:a-1;n>=0&&n0?r=n>=0?n:Math.max(n+s,r):s=n>=0?Math.min(n+1,s):n+s+1;else if(i&&n&&s)return o[n=i(o,a)]===a?n:-1;if(a!=a)return(n=t(m.call(o,r,s),f.isNaN))>=0?n+r:-1;for(n=e>0?r:s-1;n>=0&&nt?(o&&(clearTimeout(o),o=null),s=m,r=e.apply(a,n),o||(a=n=null)):o||!1===i.trailing||(o=setTimeout(c,l)),r};return m.cancel=function(){clearTimeout(o),s=0,o=a=n=null},m},f.debounce=function(e,t,i){var o,a,n=function(t,i){o=null,i&&(a=e.apply(t,i))},r=y((function(r){if(o&&clearTimeout(o),i){var s=!o;o=setTimeout(n,t),s&&(a=e.apply(this,r))}else o=f.delay(n,t,this,r);return a}));return r.cancel=function(){clearTimeout(o),o=null},r},f.wrap=function(e,t){return f.partial(t,e)},f.negate=function(e){return function(){return!e.apply(this,arguments)}},f.compose=function(){var e=arguments,t=e.length-1;return function(){for(var i=t,o=e[t].apply(this,arguments);i--;)o=e[i].call(this,o);return o}},f.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},f.before=function(e,t){var i;return function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=null),i}},f.once=f.partial(f.before,2),f.restArguments=y;var V=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],R=function(e,t){var i=B.length,o=e.constructor,a=f.isFunction(o)&&o.prototype||r,n="constructor";for(C(e,n)&&!f.contains(t,n)&&t.push(n);i--;)(n=B[i])in e&&e[n]!==a[n]&&!f.contains(t,n)&&t.push(n)};f.keys=function(e){if(!f.isObject(e))return[];if(p)return p(e);var t=[];for(var i in e)C(e,i)&&t.push(i);return V&&R(e,t),t},f.allKeys=function(e){if(!f.isObject(e))return[];var t=[];for(var i in e)t.push(i);return V&&R(e,t),t},f.values=function(e){for(var t=f.keys(e),i=t.length,o=Array(i),a=0;a1&&(o=v(o,t[1])),t=f.allKeys(e)):(o=H,t=T(t,!1,!1),e=Object(e));for(var a=0,n=t.length;a1&&(i=t[1])):(t=f.map(T(t,!1,!1),String),o=function(e,i){return!f.contains(t,i)}),f.pick(e,o,i)})),f.defaults=F(f.allKeys,!0),f.create=function(e,t){var i=w(e);return t&&f.extendOwn(i,t),i},f.clone=function(e){return f.isObject(e)?f.isArray(e)?e.slice():f.extend({},e):e},f.tap=function(e,t){return t(e),e},f.isMatch=function(e,t){var i=f.keys(t),o=i.length;if(null==e)return!o;for(var a=Object(e),n=0;n":">",'"':""","'":"'","`":"`"},L=f.invert(O),U=function(e){var t=function(t){return e[t]},i="(?:"+f.keys(e).join("|")+")",o=RegExp(i),a=RegExp(i,"g");return function(e){return e=null==e?"":""+e,o.test(e)?e.replace(a,t):e}};f.escape=U(O),f.unescape=U(L),f.result=function(e,t,i){f.isArray(t)||(t=[t]);var o=t.length;if(!o)return f.isFunction(i)?i.call(e):i;for(var a=0;a/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var $=/(.)^/,X={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Q=/\\|'|\r|\n|\u2028|\u2029/g,Z=function(e){return"\\"+X[e]};f.template=function(e,t,i){!t&&i&&(t=i),t=f.defaults({},t,f.templateSettings);var o,a=RegExp([(t.escape||$).source,(t.interpolate||$).source,(t.evaluate||$).source].join("|")+"|$","g"),n=0,r="__p+='";e.replace(a,(function(t,i,o,a,s){return r+=e.slice(n,s).replace(Q,Z),n=s+t.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":o?r+="'+\n((__t=("+o+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),t})),r+="';\n",t.variable||(r="with(obj||{}){\n"+r+"}\n"),r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{o=new Function(t.variable||"obj","_",r)}catch(e){throw e.source=r,e}var s=function(e){return o.call(this,e,f)},c=t.variable||"obj";return s.source="function("+c+"){\n"+r+"}",s},f.chain=function(e){var t=f(e);return t._chain=!0,t};var K=function(e,t){return e._chain?f(t).chain():t};f.mixin=function(e){return f.each(f.functions(e),(function(t){var i=f[t]=e[t];f.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),K(this,i.apply(f,e))}})),f},f.mixin(f),f.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=n[e];f.prototype[e]=function(){var i=this._wrapped;return t.apply(i,arguments),"shift"!==e&&"splice"!==e||0!==i.length||delete i[0],K(this,i)}})),f.each(["concat","join","slice"],(function(e){var t=n[e];f.prototype[e]=function(){return K(this,t.apply(this._wrapped,arguments))}})),f.prototype.value=function(){return this._wrapped},f.prototype.valueOf=f.prototype.toJSON=f.prototype.value,f.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],(function(){return f}))}()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,i){},{}],4:[function(e,t,i){"use strict";var o,a="object"==typeof Reflect?Reflect:null,n=a&&"function"==typeof a.apply?a.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};o=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(e,t){return new Promise((function(i,o){function a(i){e.removeListener(t,n),o(i)}function n(){"function"==typeof e.removeListener&&e.removeListener("error",a),i([].slice.call(arguments))}b(e,t,n,{once:!0}),"error"!==t&&function(e,t,i){"function"==typeof e.on&&b(e,"error",t,i)}(e,a,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function m(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,i,o){var a,n,r,s;if(m(i),void 0===(n=e._events)?(n=e._events=Object.create(null),e._eventsCount=0):(void 0!==n.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),n=e._events),r=n[t]),void 0===r)r=n[t]=i,++e._eventsCount;else if("function"==typeof r?r=n[t]=o?[i,r]:[r,i]:o?r.unshift(i):r.push(i),(a=l(e))>0&&r.length>a&&!r.warned){r.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=r.length,s=c,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,i){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},a=d.bind(o);return a.listener=i,o.wrapFn=a,a}function h(e,t,i){var o=e._events;if(void 0===o)return[];var a=o[t];return void 0===a?[]:"function"==typeof a?i?[a.listener||a]:[a]:i?function(e){for(var t=new Array(e.length),i=0;i0&&(r=t[0]),r instanceof Error)throw r;var s=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw s.context=r,s}var c=a[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var m=c.length,l=f(c,m);for(i=0;i=0;n--)if(i[n]===t||i[n].listener===t){r=i[n].listener,a=n;break}if(a<0)return this;0===a?i.shift():function(e,t){for(;t+1=0;o--)this.removeListener(e,t[o]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},{}],5:[function(e,t,i){"use strict";var o=function(e){};t.exports=function(e,t){for(var i=arguments.length,a=new Array(i>2?i-2:0),n=2;n",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,o){o=e(o||this.defaultElement||this)[0],this.element=e(o),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},o!==this&&(e.data(o,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===o&&this.destroy()}}),this.document=e(o.style?o.ownerDocument:o.document||o),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,i){t._removeClass(i,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var o,a,n,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},o=t.split("."),t=o.shift(),o.length){for(a=r[t]=e.widget.extend({},this.options[t]),n=0;n0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("
").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(i).length||e.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var o=this._uiHash();if(!1===this._trigger("drag",t,o))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=o.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,o=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(o=e.ui.ddmanager.drop(this,t)),this.dropped&&(o=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!o||"valid"===this.options.revert&&o||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,o)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",t)&&i._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,o="function"==typeof i.helper,a=o?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return a.parents("body").length||a.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),o&&a[0]===this.element[0]&&this._setPositionRelative(),a[0]===this.element[0]||/(fixed|absolute)/.test(a.css("position"))||a.css("position","absolute"),a},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,o,a=this.options,n=this.document[0];this.relativeContainer=null,a.containment?"window"!==a.containment?"document"!==a.containment?a.containment.constructor!==Array?("parent"===a.containment&&(a.containment=this.helper[0].parentNode),(o=(i=e(a.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(o.scrollWidth,o.offsetWidth):o.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(o.scrollHeight,o.offsetHeight):o.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=a.containment:this.containment=[0,0,e(n).width()-this.helperProportions.width-this.margins.left,(e(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,o=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,o,a,n,r=this.options,s=this._isRootNode(this.scrollParent[0]),c=e.pageX,m=e.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(o=this.relativeContainer.offset(),i=[this.containment[0]+o.left,this.containment[1]+o.top,this.containment[2]+o.left,this.containment[3]+o.top]):i=this.containment,e.pageX-this.offset.click.lefti[2]&&(c=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(m=i[3]+this.offset.click.top)),r.grid&&(a=r.grid[1]?this.originalPageY+Math.round((m-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,m=i?a-this.offset.click.top>=i[1]||a-this.offset.click.top>i[3]?a:a-this.offset.click.top>=i[1]?a-r.grid[1]:a+r.grid[1]:a,n=r.grid[0]?this.originalPageX+Math.round((c-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,c=i?n-this.offset.click.left>=i[0]||n-this.offset.click.left>i[2]?n:n-this.offset.click.left>=i[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(c=this.originalPageX),"x"===r.axis&&(m=this.originalPageY)),{top:m-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:c-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,o){return o=o||this._uiHash(),e.ui.plugin.call(this,t,[i,o,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),o.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,o)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,o){var a=e.extend({},i,{item:o.element});o.sortables=[],e(o.options.connectToSortable).each((function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(o.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,a))}))},stop:function(t,i,o){var a=e.extend({},i,{item:o.element});o.cancelHelperRemoval=!1,e.each(o.sortables,(function(){var e=this;e.isOver?(e.isOver=0,o.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,a))}))},drag:function(t,i,o){e.each(o.sortables,(function(){var a=!1,n=this;n.positionAbs=o.positionAbs,n.helperProportions=o.helperProportions,n.offset.click=o.offset.click,n._intersectsWith(n.containerCache)&&(a=!0,e.each(o.sortables,(function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&e.contains(n.element[0],this.element[0])&&(a=!1),a}))),a?(n.isOver||(n.isOver=1,o._parent=i.helper.parent(),n.currentItem=i.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return i.helper[0]},t.target=n.currentItem[0],n._mouseCapture(t,!0),n._mouseStart(t,!0,!0),n.offset.click.top=o.offset.click.top,n.offset.click.left=o.offset.click.left,n.offset.parent.left-=o.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=o.offset.parent.top-n.offset.parent.top,o._trigger("toSortable",t),o.dropped=n.element,e.each(o.sortables,(function(){this.refreshPositions()})),o.currentItem=o.element,n.fromOutside=o),n.currentItem&&(n._mouseDrag(t),i.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",t,n._uiHash(n)),n._mouseStop(t,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),i.helper.appendTo(o._parent),o._refreshOffsets(t),i.position=o._generatePosition(t,!0),o._trigger("fromSortable",t),o.dropped=!1,e.each(o.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,o){var a=e("body"),n=o.options;a.css("cursor")&&(n._cursor=a.css("cursor")),a.css("cursor",n.cursor)},stop:function(t,i,o){var a=o.options;a._cursor&&e("body").css("cursor",a._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,o){var a=e(i.helper),n=o.options;a.css("opacity")&&(n._opacity=a.css("opacity")),a.css("opacity",n.opacity)},stop:function(t,i,o){var a=o.options;a._opacity&&e(i.helper).css("opacity",a._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,o){var a=o.options,n=!1,r=o.scrollParentNotHidden[0],s=o.document[0];r!==s&&"HTML"!==r.tagName?(a.axis&&"x"===a.axis||(o.overflowOffset.top+r.offsetHeight-t.pageY=0;d--)m=(c=o.snapElements[d].left-o.margins.left)+o.snapElements[d].width,u=(l=o.snapElements[d].top-o.margins.top)+o.snapElements[d].height,bm+g||ku+g||!e.contains(o.snapElements[d].item.ownerDocument,o.snapElements[d].item)?(o.snapElements[d].snapping&&o.options.snap.release&&o.options.snap.release.call(o.element,t,e.extend(o._uiHash(),{snapItem:o.snapElements[d].item})),o.snapElements[d].snapping=!1):("inner"!==h.snapMode&&(a=Math.abs(l-k)<=g,n=Math.abs(u-v)<=g,r=Math.abs(c-b)<=g,s=Math.abs(m-f)<=g,a&&(i.position.top=o._convertPositionTo("relative",{top:l-o.helperProportions.height,left:0}).top),n&&(i.position.top=o._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.left=o._convertPositionTo("relative",{top:0,left:c-o.helperProportions.width}).left),s&&(i.position.left=o._convertPositionTo("relative",{top:0,left:m}).left)),p=a||n||r||s,"outer"!==h.snapMode&&(a=Math.abs(l-v)<=g,n=Math.abs(u-k)<=g,r=Math.abs(c-f)<=g,s=Math.abs(m-b)<=g,a&&(i.position.top=o._convertPositionTo("relative",{top:l,left:0}).top),n&&(i.position.top=o._convertPositionTo("relative",{top:u-o.helperProportions.height,left:0}).top),r&&(i.position.left=o._convertPositionTo("relative",{top:0,left:c}).left),s&&(i.position.left=o._convertPositionTo("relative",{top:0,left:m-o.helperProportions.width}).left)),!o.snapElements[d].snapping&&(a||n||r||s||p)&&o.options.snap.snap&&o.options.snap.snap.call(o.element,t,e.extend(o._uiHash(),{snapItem:o.snapElements[d].item})),o.snapElements[d].snapping=a||n||r||s||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,o){var a,n=o.options,r=e.makeArray(e(n.stack)).sort((function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)}));r.length&&(a=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each((function(t){e(this).css("zIndex",a+t)})),this.css("zIndex",a+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,o){var a=e(i.helper),n=o.options;a.css("zIndex")&&(n._zIndex=a.css("zIndex")),a.css("zIndex",n.zIndex)},stop:function(t,i,o){var a=o.options;a._zIndex&&e(i.helper).css("zIndex",a._zIndex)}}),e.ui.draggable}))},{}],16:[function(e,t,i){ /*! * jQuery UI Mouse 1.13.2 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}((function(e){"use strict";var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var o=this,a=1===i.which,n=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&e(i.target).closest(this.options.cancel).length;return!(a&&!n&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){o.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return o._mouseMove(e)},this._mouseUpDelegate=function(e){return o._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&e.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,i.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}))},{}],17:[function(e,t,i){ /*! * jQuery UI Sortable 1.13.2 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../ie","../scroll-parent","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.sortable",e.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var o=null,a=!1,n=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,n.widgetName+"-item")===n)return o=e(this),!1})),e.data(t.target,n.widgetName+"-item")===n&&(o=e(t.target)),!!o&&(!(this.options.handle&&!i&&(e(this.options.handle,o).find("*").addBack().each((function(){this===t.target&&(a=!0)})),!a))&&(this.currentItem=o,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,i,o){var a,n,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(n=this.document.find("body"),this.storedCursor=n.css("cursor"),n.css("cursor",r.cursor),this.storedStylesheet=e("").appendTo(n)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!o)for(a=this.containers.length-1;a>=0;a--)this.containers[a]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(a=(o=this.items[i]).item[0],(n=this._intersectsWithPointer(o))&&o.instance===this.currentContainer&&!(a===this.currentItem[0]||this.placeholder[1===n?"next":"prev"]()[0]===a||e.contains(this.placeholder[0],a)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],a))){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(o))break;this._rearrange(t,o),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var o=this,a=this.placeholder.offset(),n=this.options.axis,r={};n&&"x"!==n||(r.left=a.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(r.top=a.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){o._clear(t)}))}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),o=[];return t=t||{},e(i).each((function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&o.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))})),!o.length&&t.key&&o.push(t.key+"="),o.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),o=[];return t=t||{},i.each((function(){o.push(e(t.item||this).attr(t.attribute||"id")||"")})),o},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,o=this.positionAbs.top,a=o+this.helperProportions.height,n=e.left,r=n+e.width,s=e.top,c=s+e.height,m=this.offset.click.top,l=this.offset.click.left,u="x"===this.options.axis||o+m>s&&o+mn&&t+le[this.floating?"width":"height"]?p:n0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,o,a,n,r=[],s=[],c=this._connectWith();if(c&&t)for(i=c.length-1;i>=0;i--)for(o=(a=e(c[i],this.document[0])).length-1;o>=0;o--)(n=e.data(a[o],this.widgetFullName))&&n!==this&&!n.options.disabled&&s.push(["function"==typeof n.options.items?n.options.items.call(n.element):e(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n]);function m(){r.push(this)}for(s.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=s.length-1;i>=0;i--)s[i][0].each(m);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var i=0;i=0;i--)for(o=(a=e(d[i],this.document[0])).length-1;o>=0;o--)(n=e.data(a[o],this.widgetFullName))&&n!==this&&!n.options.disabled&&(u.push(["function"==typeof n.options.items?n.options.items.call(n.element[0],t,{item:this.currentItem}):e(n.options.items,n.element),n]),this.containers.push(n));for(i=u.length-1;i>=0;i--)for(r=u[i][1],o=0,m=(s=u[i][0]).length;o=0;i--)o=this.items[i],this.currentContainer&&o.instance!==this.currentContainer&&o.item[0]!==this.currentItem[0]||(a=this.options.toleranceElement?e(this.options.toleranceElement,o.item):o.item,t||(o.width=a.outerWidth(),o.height=a.outerHeight()),n=a.offset(),o.left=n.left,o.top=n.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,o,a=(t=t||this).options;a.placeholder&&a.placeholder.constructor!==String||(i=a.placeholder,o=t.currentItem[0].nodeName.toLowerCase(),a.placeholder={element:function(){var a=e("<"+o+">",t.document[0]);return t._addClass(a,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(a,"ui-sortable-helper"),"tbody"===o?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("",t.document[0]).appendTo(a)):"tr"===o?t._createTrPlaceholder(t.currentItem,a):"img"===o&&a.attr("src",t.currentItem.attr("src")),i||a.css("visibility","hidden"),a},update:function(e,n){i&&!a.forcePlaceholderSize||(n.height()&&(!a.forcePlaceholderSize||"tbody"!==o&&"tr"!==o)||n.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(a.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),a.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var o=this;t.children().each((function(){e(" ",o.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(t){var i,o,a,n,r,s,c,m,l,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&e.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(a=1e4,n=null,r=(l=d.floating||this._isFloating(this.currentItem))?"left":"top",s=l?"width":"height",u=l?"pageX":"pageY",o=this.items.length-1;o>=0;o--)e.contains(this.containers[p].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(c=this.items[o].item.offset()[r],m=!1,t[u]-c>this.items[o][s]/2&&(m=!0),Math.abs(t[u]-c)this.containment[2]&&(n=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),a.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/a.grid[1])*a.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-a.grid[1]:i+a.grid[1]:i,o=this.originalPageX+Math.round((n-this.originalPageX)/a.grid[0])*a.grid[0],n=this.containment?o-this.offset.click.left>=this.containment[0]&&o-this.offset.click.left<=this.containment[2]?o:o-this.offset.click.left>=this.containment[0]?o-a.grid[0]:o+a.grid[0]:o)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():c?0:s.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():c?0:s.scrollLeft())}},_rearrange:function(e,t,i,o){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var a=this.counter;this._delay((function(){a===this.counter&&this.refreshPositions(!o)}))},_clear:function(e,t){this.reverting=!1;var i,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function a(e,t,i){return function(o){i._trigger(e,o,t._uiHash(t))}}for(this.fromOutside&&!t&&o.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||o.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(o.push((function(e){this._trigger("remove",e,this._uiHash())})),o.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),o.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||o.push(a("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(o.push(a("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i0&&t-1 in e)}w.fn=w.prototype={jquery:y,constructor:w,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),U=new RegExp(R+"|>"),W=new RegExp(P),$=new RegExp("^"+F+"$"),X={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){d()},re=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{S.apply(E=G.call(w.childNodes),w.childNodes),E[w.childNodes.length].nodeType}catch(e){S={apply:E.length?function(e,t){q.apply(e,G.call(t))}:function(e,t){for(var i=e.length,o=0;e[i++]=t[o++];);e.length=i-1}}}function se(e,t,o,a){var n,s,m,l,u,h,b,v=t&&t.ownerDocument,w=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return o;if(!a&&(d(t),t=t||p,g)){if(11!==w&&(u=Y.exec(e)))if(n=u[1]){if(9===w){if(!(m=t.getElementById(n)))return o;if(m.id===n)return o.push(m),o}else if(v&&(m=v.getElementById(n))&&k(t,m)&&m.id===n)return o.push(m),o}else{if(u[2])return S.apply(o,t.getElementsByTagName(e)),o;if((n=u[3])&&i.getElementsByClassName&&t.getElementsByClassName)return S.apply(o,t.getElementsByClassName(n)),o}if(i.qsa&&!M[e+" "]&&(!f||!f.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(b=e,v=t,1===w&&(U.test(e)||L.test(e))){for((v=ee.test(e)&&be(t.parentNode)||t)===t&&i.scope||((l=t.getAttribute("id"))?l=l.replace(oe,ae):t.setAttribute("id",l=y)),s=(h=r(e)).length;s--;)h[s]=(l?"#"+l:":scope")+" "+ke(h[s]);b=h.join(",")}try{return S.apply(o,v.querySelectorAll(b)),o}catch(t){M(e,!0)}finally{l===y&&t.removeAttribute("id")}}}return c(e.replace(N,"$1"),t,o,a)}function ce(){var e=[];return function t(i,a){return e.push(i+" ")>o.cacheLength&&delete t[e.shift()],t[i+" "]=a}}function me(e){return e[y]=!0,e}function le(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var i=e.split("|"),a=i.length;a--;)o.attrHandle[i[a]]=t}function de(e,t){var i=t&&e,o=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function fe(e){return me((function(t){return t=+t,me((function(i,o){for(var a,n=e([],i.length,t),r=n.length;r--;)i[a=n[r]]&&(i[a]=!(o[a]=i[a]))}))}))}function be(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=se.support={},n=se.isXML=function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!Q.test(t||i&&i.nodeName||"HTML")},d=se.setDocument=function(e){var t,a,r=e?e.ownerDocument||e:w;return r!=p&&9===r.nodeType&&r.documentElement?(h=(p=r).documentElement,g=!n(p),w!=p&&(a=p.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ne,!1):a.attachEvent&&a.attachEvent("onunload",ne)),i.scope=le((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.attributes=le((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=le((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(p.getElementsByClassName),i.getById=le((function(e){return h.appendChild(e).id=y,!p.getElementsByName||!p.getElementsByName(y).length})),i.getById?(o.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i=t.getElementById(e);return i?[i]:[]}}):(o.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i,o,a,n=t.getElementById(e);if(n){if((i=n.getAttributeNode("id"))&&i.value===e)return[n];for(a=t.getElementsByName(e),o=0;n=a[o++];)if((i=n.getAttributeNode("id"))&&i.value===e)return[n]}return[]}}),o.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,o=[],a=0,n=t.getElementsByTagName(e);if("*"===e){for(;i=n[a++];)1===i.nodeType&&o.push(i);return o}return n},o.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},b=[],f=[],(i.qsa=J.test(p.querySelectorAll))&&(le((function(e){var t;h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||f.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+B+")"),e.querySelectorAll("[id~="+y+"-]").length||f.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||f.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")})),le((function(e){e.innerHTML="";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&f.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),f.push(",.*:")}))),(i.matchesSelector=J.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le((function(e){i.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),b.push("!=",P)})),f=f.length&&new RegExp(f.join("|")),b=b.length&&new RegExp(b.join("|")),t=J.test(h.compareDocumentPosition),k=t||J.test(h.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(i.contains?i.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},x=t?function(e,t){if(e===t)return u=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===o?e==p||e.ownerDocument==w&&k(w,e)?-1:t==p||t.ownerDocument==w&&k(w,t)?1:l?V(l,e)-V(l,t):0:4&o?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,o=0,a=e.parentNode,n=t.parentNode,r=[e],s=[t];if(!a||!n)return e==p?-1:t==p?1:a?-1:n?1:l?V(l,e)-V(l,t):0;if(a===n)return de(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)s.unshift(i);for(;r[o]===s[o];)o++;return o?de(r[o],s[o]):r[o]==w?-1:s[o]==w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),i.matchesSelector&&g&&!M[t+" "]&&(!b||!b.test(t))&&(!f||!f.test(t)))try{var o=v.call(e,t);if(o||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){M(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),k(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var a=o.attrHandle[t.toLowerCase()],n=a&&j.call(o.attrHandle,t.toLowerCase())?a(e,t,!g):void 0;return void 0!==n?n:i.attributes||!g?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},se.escape=function(e){return(e+"").replace(oe,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,o=[],a=0,n=0;if(u=!i.detectDuplicates,l=!i.sortStable&&e.slice(0),e.sort(x),u){for(;t=e[n++];)t===e[n]&&(a=o.push(n));for(;a--;)e.splice(o[a],1)}return l=null,e},a=se.getText=function(e){var t,i="",o=0,n=e.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=a(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[o++];)i+=a(t);return i},o=se.selectors={cacheLength:50,createPseudo:me,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&W.test(i)&&(t=r(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=A[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+R+"|$)"))&&A(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(o){var a=se.attr(o,e);return null==a?"!="===t:!t||(a+="","="===t?a===i:"!="===t?a!==i:"^="===t?i&&0===a.indexOf(i):"*="===t?i&&a.indexOf(i)>-1:"$="===t?i&&a.slice(-i.length)===i:"~="===t?(" "+a.replace(H," ")+" ").indexOf(i)>-1:"|="===t&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,o,a){var n="nth"!==e.slice(0,3),r="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===a?function(e){return!!e.parentNode}:function(t,i,c){var m,l,u,d,p,h,g=n!==r?"nextSibling":"previousSibling",f=t.parentNode,b=s&&t.nodeName.toLowerCase(),v=!c&&!s,k=!1;if(f){if(n){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===b:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[r?f.firstChild:f.lastChild],r&&v){for(k=(p=(m=(l=(u=(d=f)[y]||(d[y]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===z&&m[1])&&m[2],d=p&&f.childNodes[p];d=++p&&d&&d[g]||(k=p=0)||h.pop();)if(1===d.nodeType&&++k&&d===t){l[e]=[z,p,k];break}}else if(v&&(k=p=(m=(l=(u=(d=t)[y]||(d[y]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===z&&m[1]),!1===k)for(;(d=++p&&d&&d[g]||(k=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==b:1!==d.nodeType)||!++k||(v&&((l=(u=d[y]||(d[y]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]=[z,k]),d!==t)););return(k-=a)===o||k%o==0&&k/o>=0}}},PSEUDO:function(e,t){var i,a=o.pseudos[e]||o.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[y]?a(t):a.length>1?(i=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?me((function(e,i){for(var o,n=a(e,t),r=n.length;r--;)e[o=V(e,n[r])]=!(i[o]=n[r])})):function(e){return a(e,0,i)}):a}},pseudos:{not:me((function(e){var t=[],i=[],o=s(e.replace(N,"$1"));return o[y]?me((function(e,t,i,a){for(var n,r=o(e,null,a,[]),s=e.length;s--;)(n=r[s])&&(e[s]=!(t[s]=n))})):function(e,a,n){return t[0]=e,o(t,null,n,i),t[0]=null,!i.pop()}})),has:me((function(e){return function(t){return se(e,t).length>0}})),contains:me((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:me((function(e){return $.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.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!o.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe((function(){return[0]})),last:fe((function(e,t){return[t-1]})),eq:fe((function(e,t,i){return[i<0?i+t:i]})),even:fe((function(e,t){for(var i=0;it?t:i;--o>=0;)e.push(o);return e})),gt:fe((function(e,t,i){for(var o=i<0?i+t:i;++o1?function(t,i,o){for(var a=e.length;a--;)if(!e[a](t,i,o))return!1;return!0}:e[0]}function ze(e,t,i,o,a){for(var n,r=[],s=0,c=e.length,m=null!=t;s-1&&(n[m]=!(r[m]=u))}}else b=ze(b===r?b.splice(h,b.length):b),a?a(null,r,b,c):S.apply(r,b)}))}function Ae(e){for(var t,i,a,n=e.length,r=o.relative[e[0].type],s=r||o.relative[" "],c=r?1:0,l=ye((function(e){return e===t}),s,!0),u=ye((function(e){return V(t,e)>-1}),s,!0),d=[function(e,i,o){var a=!r&&(o||i!==m)||((t=i).nodeType?l(e,i,o):u(e,i,o));return t=null,a}];c1&&we(d),c>1&&ke(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(N,"$1"),i,c0,a=e.length>0,n=function(n,r,s,c,l){var u,h,f,b=0,v="0",k=n&&[],y=[],w=m,C=n||a&&o.find.TAG("*",l),A=z+=null==w?1:Math.random()||.1,_=C.length;for(l&&(m=r==p||r||l);v!==_&&null!=(u=C[v]);v++){if(a&&u){for(h=0,r||u.ownerDocument==p||(d(u),s=!g);f=e[h++];)if(f(u,r||p,s)){c.push(u);break}l&&(z=A)}i&&((u=!f&&u)&&b--,n&&k.push(u))}if(b+=v,i&&v!==b){for(h=0;f=t[h++];)f(k,y,r,s);if(n){if(b>0)for(;v--;)k[v]||y[v]||(y[v]=T.call(c));y=ze(y)}S.apply(c,y),l&&!n&&y.length>0&&b+t.length>1&&se.uniqueSort(c)}return l&&(z=A,m=w),k};return i?me(n):n}(n,a)),s.selector=e}return s},c=se.select=function(e,t,i,a){var n,c,m,l,u,d="function"==typeof e&&e,p=!a&&r(e=d.selector||e);if(i=i||[],1===p.length){if((c=p[0]=p[0].slice(0)).length>2&&"ID"===(m=c[0]).type&&9===t.nodeType&&g&&o.relative[c[1].type]){if(!(t=(o.find.ID(m.matches[0].replace(te,ie),t)||[])[0]))return i;d&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(n=X.needsContext.test(e)?0:c.length;n--&&(m=c[n],!o.relative[l=m.type]);)if((u=o.find[l])&&(a=u(m.matches[0].replace(te,ie),ee.test(c[0].type)&&be(t.parentNode)||t))){if(c.splice(n,1),!(e=a.length&&ke(c)))return S.apply(i,a),i;break}}return(d||s(e,p))(a,t,!g,i,!t||ee.test(e)&&be(t.parentNode)||t),i},i.sortStable=y.split("").sort(x).join("")===y,i.detectDuplicates=!!u,d(),i.sortDetached=le((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),le((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&le((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),le((function(e){return null==e.getAttribute("disabled")}))||ue(B,(function(e,t,i){var o;if(!i)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null})),se}(e);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var A=function(e,t,i){for(var o=[],a=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&w(e).is(i))break;o.push(e)}return o},_=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},D=w.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var x=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,i){return h(t)?w.grep(e,(function(e,o){return!!t.call(e,o,e)!==i})):t.nodeType?w.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?w.grep(e,(function(e){return s.call(t,e)>-1!==i})):w.filter(t,e,i)}w.filter=function(e,t,i){var o=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?w.find.matchesSelector(o,e)?[o]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,i,o=this.length,a=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t1?w.uniqueSort(i):i},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var E,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,i){var o,a;if(!e)return this;if(i=i||E,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:T.exec(e))||!o[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),x.test(o[1])&&w.isPlainObject(t))for(o in t)h(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(a=f.getElementById(o[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==i.ready?i.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,E=w(f);var q=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function G(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),i=t.length;return this.filter((function(){for(var e=0;e-1:1===i.nodeType&&w.find.matchesSelector(i,e))){n.push(i);break}return this.pushStack(n.length>1?w.uniqueSort(n):n)},index:function(e){return e?"string"==typeof e?s.call(w(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,i){return A(e,"parentNode",i)},next:function(e){return G(e,"nextSibling")},prev:function(e){return G(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,i){return A(e,"nextSibling",i)},prevUntil:function(e,t,i){return A(e,"previousSibling",i)},siblings:function(e){return _((e.parentNode||{}).firstChild,e)},children:function(e){return _(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(i,o){var a=w.map(this,t,i);return"Until"!==e.slice(-5)&&(o=i),o&&"string"==typeof o&&(a=w.filter(o,a)),this.length>1&&(S[e]||w.uniqueSort(a),q.test(e)&&a.reverse()),this.pushStack(a)}}));var V=/[^\x20\t\r\n\f]+/g;function B(e){return e}function R(e){throw e}function F(e,t,i,o){var a;try{e&&h(a=e.promise)?a.call(e).done(t).fail(i):e&&h(a=e.then)?a.call(e,t,i):t.apply(void 0,[e].slice(o))}catch(e){i.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(V)||[],(function(e,i){t[i]=!0})),t}(e):w.extend({},e);var t,i,o,a,n=[],r=[],s=-1,c=function(){for(a=a||e.once,o=t=!0;r.length;s=-1)for(i=r.shift();++s-1;)n.splice(i,1),i<=s&&s--})),this},has:function(e){return e?w.inArray(e,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return a=r=[],n=i="",this},disabled:function(){return!n},lock:function(){return a=r=[],i||t||(n=i=""),this},locked:function(){return!!a},fireWith:function(e,i){return a||(i=[e,(i=i||[]).slice?i.slice():i],r.push(i),t||c()),this},fire:function(){return m.fireWith(this,arguments),this},fired:function(){return!!o}};return m},w.extend({Deferred:function(t){var i=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],o="pending",a={state:function(){return o},always:function(){return n.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(i,(function(i,o){var a=h(e[o[4]])&&e[o[4]];n[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&h(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[o[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(t,o,a){var n=0;function r(t,i,o,a){return function(){var s=this,c=arguments,m=function(){var e,m;if(!(t=n&&(o!==R&&(s=void 0,c=[e]),i.rejectWith(s,c))}};t?l():(w.Deferred.getStackHook&&(l.stackTrace=w.Deferred.getStackHook()),e.setTimeout(l))}}return w.Deferred((function(e){i[0][3].add(r(0,e,h(a)?a:B,e.notifyWith)),i[1][3].add(r(0,e,h(t)?t:B)),i[2][3].add(r(0,e,h(o)?o:R))})).promise()},promise:function(e){return null!=e?w.extend(e,a):a}},n={};return w.each(i,(function(e,t){var r=t[2],s=t[5];a[t[1]]=r.add,s&&r.add((function(){o=s}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),r.add(t[3].fire),n[t[0]]=function(){return n[t[0]+"With"](this===n?void 0:this,arguments),this},n[t[0]+"With"]=r.fireWith})),a.promise(n),t&&t.call(n,n),n},when:function(e){var t=arguments.length,i=t,o=Array(i),n=a.call(arguments),r=w.Deferred(),s=function(e){return function(i){o[e]=this,n[e]=arguments.length>1?a.call(arguments):i,--t||r.resolveWith(o,n)}};if(t<=1&&(F(e,r.done(s(i)).resolve,r.reject,!t),"pending"===r.state()||h(n[i]&&n[i].then)))return r.then();for(;i--;)F(n[i],s(i),r.reject);return r.promise()}});var I=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&I.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var P=w.Deferred();function H(){f.removeEventListener("DOMContentLoaded",H),e.removeEventListener("load",H),w.ready()}w.fn.ready=function(e){return P.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||P.resolveWith(f,[w]))}}),w.ready.then=P.then,"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?e.setTimeout(w.ready):(f.addEventListener("DOMContentLoaded",H),e.addEventListener("load",H));var N=function(e,t,i,o,a,n,r){var s=0,c=e.length,m=null==i;if("object"===k(i))for(s in a=!0,i)N(e,t,s,i[s],!0,n,r);else if(void 0!==o&&(a=!0,h(o)||(r=!0),m&&(r?(t.call(e,o),t=null):(m=t,t=function(e,t,i){return m.call(w(e),i)})),t))for(;s1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),w.extend({queue:function(e,t,i){var o;if(e)return t=(t||"fx")+"queue",o=Q.get(e,t),i&&(!o||Array.isArray(i)?o=Q.access(e,t,w.makeArray(i)):o.push(i)),o||[]},dequeue:function(e,t){t=t||"fx";var i=w.queue(e,t),o=i.length,a=i.shift(),n=w._queueHooks(e,t);"inprogress"===a&&(a=i.shift(),o--),a&&("fx"===t&&i.unshift("inprogress"),delete n.stop,a.call(e,(function(){w.dequeue(e,t)}),n)),!o&&n&&n.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Q.get(e,i)||Q.access(e,i,{empty:w.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",i])}))})}}),w.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;ue=f.createDocumentFragment().appendChild(f.createElement("div")),(de=f.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ue.appendChild(de),p.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",p.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",p.option=!!ue.lastChild;var fe={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function be(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?w.merge([e],i):i}function ve(e,t){for(var i=0,o=e.length;i",""]);var ke=/<|&#?\w+;/;function ye(e,t,i,o,a){for(var n,r,s,c,m,l,u=t.createDocumentFragment(),d=[],p=0,h=e.length;p-1)a&&a.push(n);else if(m=ae(n),r=be(u.appendChild(n),"script"),m&&ve(r),i)for(l=0;n=r[l++];)ge.test(n.type||"")&&i.push(n);return u}var we=/^([^.]*)(?:\.(.+)|)/;function ze(){return!0}function Ce(){return!1}function Ae(e,t){return e===function(){try{return f.activeElement}catch(e){}}()==("focus"===t)}function _e(e,t,i,o,a,n){var r,s;if("object"==typeof t){for(s in"string"!=typeof i&&(o=o||i,i=void 0),t)_e(e,s,i,o,t[s],n);return e}if(null==o&&null==a?(a=i,o=i=void 0):null==a&&("string"==typeof i?(a=o,o=void 0):(a=o,o=i,i=void 0)),!1===a)a=Ce;else if(!a)return e;return 1===n&&(r=a,a=function(e){return w().off(e),r.apply(this,arguments)},a.guid=r.guid||(r.guid=w.guid++)),e.each((function(){w.event.add(this,t,a,o,i)}))}function De(e,t,i){i?(Q.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var o,n,r=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),Q.set(this,t,r),o=i(this,t),this[t](),r!==(n=Q.get(this,t))||o?Q.set(this,t,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Q.set(this,t,{value:w.event.trigger(w.extend(r[0],w.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&w.event.add(e,t,ze)}w.event={global:{},add:function(e,t,i,o,a){var n,r,s,c,m,l,u,d,p,h,g,f=Q.get(e);if($(e))for(i.handler&&(i=(n=i).handler,a=n.selector),a&&w.find.matchesSelector(oe,a),i.guid||(i.guid=w.guid++),(c=f.events)||(c=f.events=Object.create(null)),(r=f.handle)||(r=f.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),m=(t=(t||"").match(V)||[""]).length;m--;)p=g=(s=we.exec(t[m])||[])[1],h=(s[2]||"").split(".").sort(),p&&(u=w.event.special[p]||{},p=(a?u.delegateType:u.bindType)||p,u=w.event.special[p]||{},l=w.extend({type:p,origType:g,data:o,handler:i,guid:i.guid,selector:a,needsContext:a&&w.expr.match.needsContext.test(a),namespace:h.join(".")},n),(d=c[p])||((d=c[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,o,h,r)||e.addEventListener&&e.addEventListener(p,r)),u.add&&(u.add.call(e,l),l.handler.guid||(l.handler.guid=i.guid)),a?d.splice(d.delegateCount++,0,l):d.push(l),w.event.global[p]=!0)},remove:function(e,t,i,o,a){var n,r,s,c,m,l,u,d,p,h,g,f=Q.hasData(e)&&Q.get(e);if(f&&(c=f.events)){for(m=(t=(t||"").match(V)||[""]).length;m--;)if(p=g=(s=we.exec(t[m])||[])[1],h=(s[2]||"").split(".").sort(),p){for(u=w.event.special[p]||{},d=c[p=(o?u.delegateType:u.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=n=d.length;n--;)l=d[n],!a&&g!==l.origType||i&&i.guid!==l.guid||s&&!s.test(l.namespace)||o&&o!==l.selector&&("**"!==o||!l.selector)||(d.splice(n,1),l.selector&&d.delegateCount--,u.remove&&u.remove.call(e,l));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,h,f.handle)||w.removeEvent(e,p,f.handle),delete c[p])}else for(p in c)w.event.remove(e,p+t[m],i,o,!0);w.isEmptyObject(c)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,i,o,a,n,r,s=new Array(arguments.length),c=w.event.fix(e),m=(Q.get(this,"events")||Object.create(null))[c.type]||[],l=w.event.special[c.type]||{};for(s[0]=c,t=1;t=1))for(;m!==this;m=m.parentNode||this)if(1===m.nodeType&&("click"!==e.type||!0!==m.disabled)){for(n=[],r={},i=0;i-1:w.find(a,this,null,[m]).length),r[a]&&n.push(o);n.length&&s.push({elem:m,handlers:n})}return m=this,c\s*$/g;function Ee(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Te(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Se(e,t){var i,o,a,n,r,s;if(1===t.nodeType){if(Q.hasData(e)&&(s=Q.get(e).events))for(a in Q.remove(t,"handle events"),s)for(i=0,o=s[a].length;i1&&"string"==typeof f&&!p.checkClone&&xe.test(f))return e.each((function(a){var n=e.eq(a);b&&(t[0]=f.call(this,a,n.html())),Ve(n,t,i,o)}));if(d&&(r=(a=ye(t,e[0].ownerDocument,!1,e,o)).firstChild,1===a.childNodes.length&&(a=r),r||o)){for(c=(s=w.map(be(a,"script"),Te)).length;u0&&ve(r,!c&&be(e,"script")),s},cleanData:function(e){for(var t,i,o,a=w.event.special,n=0;void 0!==(i=e[n]);n++)if($(i)){if(t=i[Q.expando]){if(t.events)for(o in t.events)a[o]?w.event.remove(i,o):w.removeEvent(i,o,t.handle);i[Q.expando]=void 0}i[Z.expando]&&(i[Z.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return N(this,(function(e){return void 0===e?w.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 Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ee(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ee(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(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&&(w.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return N(this,(function(e){var t=this[0]||{},i=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Me.test(e)&&!fe[(he.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;i=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-n-c-s-.5))||0),c}function Ye(e,t,i){var o=Fe(e),a=(!p.boxSizingReliable()||i)&&"border-box"===w.css(e,"boxSizing",!1,o),n=a,r=He(e,t,o),s="offset"+t[0].toUpperCase()+t.slice(1);if(Re.test(r)){if(!i)return r;r="auto"}return(!p.boxSizingReliable()&&a||!p.reliableTrDimensions()&&M(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===w.css(e,"display",!1,o))&&e.getClientRects().length&&(a="border-box"===w.css(e,"boxSizing",!1,o),(n=s in e)&&(r=e[s])),(r=parseFloat(r)||0)+Je(e,t,i||(a?"border":"content"),n,o,r)+"px"}function et(e,t,i,o,a){return new et.prototype.init(e,t,i,o,a)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=He(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,n,r,s=W(t),c=Xe.test(t),m=e.style;if(c||(t=We(s)),r=w.cssHooks[t]||w.cssHooks[s],void 0===i)return r&&"get"in r&&void 0!==(a=r.get(e,!1,o))?a:m[t];"string"===(n=typeof i)&&(a=te.exec(i))&&a[1]&&(i=se(e,t,a),n="number"),null!=i&&i==i&&("number"!==n||c||(i+=a&&a[3]||(w.cssNumber[s]?"":"px")),p.clearCloneStyle||""!==i||0!==t.indexOf("background")||(m[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,o))||(c?m.setProperty(t,i):m[t]=i))}},css:function(e,t,i,o){var a,n,r,s=W(t);return Xe.test(t)||(t=We(s)),(r=w.cssHooks[t]||w.cssHooks[s])&&"get"in r&&(a=r.get(e,!0,i)),void 0===a&&(a=He(e,t,o)),"normal"===a&&t in Ze&&(a=Ze[t]),""===i||i?(n=parseFloat(a),!0===i||isFinite(n)?n||0:a):a}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,i,o){if(i)return!$e.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ye(e,t,o):Ie(e,Qe,(function(){return Ye(e,t,o)}))},set:function(e,i,o){var a,n=Fe(e),r=!p.scrollboxSize()&&"absolute"===n.position,s=(r||o)&&"border-box"===w.css(e,"boxSizing",!1,n),c=o?Je(e,t,o,s,n):0;return s&&r&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(n[t])-Je(e,t,"border",!1,n)-.5)),c&&(a=te.exec(i))&&"px"!==(a[3]||"px")&&(e.style[t]=i,i=w.css(e,t)),Ke(0,i,c)}}})),w.cssHooks.marginLeft=Ne(p.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(i){for(var o=0,a={},n="string"==typeof i?i.split(" "):[i];o<4;o++)a[e+ie[o]+t]=n[o]||n[o-2]||n[0];return a}},"margin"!==e&&(w.cssHooks[e+t].set=Ke)})),w.fn.extend({css:function(e,t){return N(this,(function(e,t,i){var o,a,n={},r=0;if(Array.isArray(t)){for(o=Fe(e),a=t.length;r1)}}),w.Tween=et,et.prototype={constructor:et,init:function(e,t,i,o,a,n){this.elem=e,this.prop=i,this.easing=a||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=n||(w.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=w.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),i&&i.set?i.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[We(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=et.prototype.init,w.fx.step={};var tt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function nt(){it&&(!1===f.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,w.fx.interval),w.fx.tick())}function rt(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function st(e,t){var i,o=0,a={height:e};for(t=t?1:0;o<4;o+=2-t)a["margin"+(i=ie[o])]=a["padding"+i]=e;return t&&(a.opacity=a.width=e),a}function ct(e,t,i){for(var o,a=(mt.tweeners[t]||[]).concat(mt.tweeners["*"]),n=0,r=a.length;n1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,i){var o,a,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return void 0===e.getAttribute?w.prop(e,t,i):(1===n&&w.isXMLDoc(e)||(a=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?lt:void 0)),void 0!==i?null===i?void w.removeAttr(e,t):a&&"set"in a&&void 0!==(o=a.set(e,i,t))?o:(e.setAttribute(t,i+""),i):a&&"get"in a&&null!==(o=a.get(e,t))?o:null==(o=w.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&M(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,o=0,a=t&&t.match(V);if(a&&1===e.nodeType)for(;i=a[o++];)e.removeAttribute(i)}}),lt={set:function(e,t,i){return!1===t?w.removeAttr(e,i):e.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=ut[t]||w.find.attr;ut[t]=function(e,t,o){var a,n,r=t.toLowerCase();return o||(n=ut[r],ut[r]=a,a=null!=i(e,t,o)?r:null,ut[r]=n),a}}));var dt=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function ht(e){return(e.match(V)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function ft(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}w.fn.extend({prop:function(e,t){return N(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,i){var o,a,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&w.isXMLDoc(e)||(t=w.propFix[t]||t,a=w.propHooks[t]),void 0!==i?a&&"set"in a&&void 0!==(o=a.set(e,i,t))?o:e[t]=i:a&&"get"in a&&null!==(o=a.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):dt.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(w.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)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,i,o,a,n,r,s,c=0;if(h(e))return this.each((function(t){w(this).addClass(e.call(this,t,gt(this)))}));if((t=ft(e)).length)for(;i=this[c++];)if(a=gt(i),o=1===i.nodeType&&" "+ht(a)+" "){for(r=0;n=t[r++];)o.indexOf(" "+n+" ")<0&&(o+=n+" ");a!==(s=ht(o))&&i.setAttribute("class",s)}return this},removeClass:function(e){var t,i,o,a,n,r,s,c=0;if(h(e))return this.each((function(t){w(this).removeClass(e.call(this,t,gt(this)))}));if(!arguments.length)return this.attr("class","");if((t=ft(e)).length)for(;i=this[c++];)if(a=gt(i),o=1===i.nodeType&&" "+ht(a)+" "){for(r=0;n=t[r++];)for(;o.indexOf(" "+n+" ")>-1;)o=o.replace(" "+n+" "," ");a!==(s=ht(o))&&i.setAttribute("class",s)}return this},toggleClass:function(e,t){var i=typeof e,o="string"===i||Array.isArray(e);return"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):h(e)?this.each((function(i){w(this).toggleClass(e.call(this,i,gt(this),t),t)})):this.each((function(){var t,a,n,r;if(o)for(a=0,n=w(this),r=ft(e);t=r[a++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==e&&"boolean"!==i||((t=gt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,o=0;for(t=" "+e+" ";i=this[o++];)if(1===i.nodeType&&(" "+ht(gt(i))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;w.fn.extend({val:function(e){var t,i,o,a=this[0];return arguments.length?(o=h(e),this.each((function(i){var a;1===this.nodeType&&(null==(a=o?e.call(this,i,w(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=w.map(a,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=w.valHooks[a.type]||w.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(a,"value"))?i:"string"==typeof(i=a.value)?i.replace(bt,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:ht(w.text(e))}},select:{get:function(e){var t,i,o,a=e.options,n=e.selectedIndex,r="select-one"===e.type,s=r?null:[],c=r?n+1:a.length;for(o=n<0?c:r?n:0;o-1)&&(i=!0);return i||(e.selectedIndex=-1),n}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},p.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),p.focusin="onfocusin"in e;var vt=/^(?:focusinfocus|focusoutblur)$/,kt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,i,o,a){var n,r,s,c,m,u,d,p,b=[o||f],v=l.call(t,"type")?t.type:t,k=l.call(t,"namespace")?t.namespace.split("."):[];if(r=p=s=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!vt.test(v+w.event.triggered)&&(v.indexOf(".")>-1&&(k=v.split("."),v=k.shift(),k.sort()),m=v.indexOf(":")<0&&"on"+v,(t=t[w.expando]?t:new w.Event(v,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=k.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+k.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),i=null==i?[t]:w.makeArray(i,[t]),d=w.event.special[v]||{},a||!d.trigger||!1!==d.trigger.apply(o,i))){if(!a&&!d.noBubble&&!g(o)){for(c=d.delegateType||v,vt.test(c+v)||(r=r.parentNode);r;r=r.parentNode)b.push(r),s=r;s===(o.ownerDocument||f)&&b.push(s.defaultView||s.parentWindow||e)}for(n=0;(r=b[n++])&&!t.isPropagationStopped();)p=r,t.type=n>1?c:d.bindType||v,(u=(Q.get(r,"events")||Object.create(null))[t.type]&&Q.get(r,"handle"))&&u.apply(r,i),(u=m&&r[m])&&u.apply&&$(r)&&(t.result=u.apply(r,i),!1===t.result&&t.preventDefault());return t.type=v,a||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(b.pop(),i)||!$(o)||m&&h(o[v])&&!g(o)&&((s=o[m])&&(o[m]=null),w.event.triggered=v,t.isPropagationStopped()&&p.addEventListener(v,kt),o[v](),t.isPropagationStopped()&&p.removeEventListener(v,kt),w.event.triggered=void 0,s&&(o[m]=s)),t.result}},simulate:function(e,t,i){var o=w.extend(new w.Event,i,{type:e,isSimulated:!0});w.event.trigger(o,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return w.event.trigger(e,t,i,!0)}}),p.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var o=this.ownerDocument||this.document||this,a=Q.access(o,t);a||o.addEventListener(e,i,!0),Q.access(o,t,(a||0)+1)},teardown:function(){var o=this.ownerDocument||this.document||this,a=Q.access(o,t)-1;a?Q.access(o,t,a):(o.removeEventListener(e,i,!0),Q.remove(o,t))}}}));var yt=e.location,wt={guid:Date.now()},zt=/\?/;w.parseXML=function(t){var i,o;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return o=i&&i.getElementsByTagName("parsererror")[0],i&&!o||w.error("Invalid XML: "+(o?w.map(o.childNodes,(function(e){return e.textContent})).join("\n"):t)),i};var Ct=/\[\]$/,At=/\r?\n/g,_t=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;function Mt(e,t,i,o){var a;if(Array.isArray(t))w.each(t,(function(t,a){i||Ct.test(e)?o(e,a):Mt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,i,o)}));else if(i||"object"!==k(t))o(e,t);else for(a in t)Mt(e+"["+a+"]",t[a],i,o)}w.param=function(e,t){var i,o=[],a=function(e,t){var i=h(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){a(this.name,this.value)}));else for(i in e)Mt(i,e[i],t,a);return o.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Dt.test(this.nodeName)&&!_t.test(e)&&(this.checked||!pe.test(e))})).map((function(e,t){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(e){return{name:t.name,value:e.replace(At,"\r\n")}})):{name:t.name,value:i.replace(At,"\r\n")}})).get()}});var xt=/%20/g,jt=/#.*$/,Et=/([?&])_=[^&]*/,Tt=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:GET|HEAD)$/,St=/^\/\//,Gt={},Vt={},Bt="*/".concat("*"),Rt=f.createElement("a");function Ft(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var o,a=0,n=t.toLowerCase().match(V)||[];if(h(i))for(;o=n[a++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(i)):(e[o]=e[o]||[]).push(i)}}function It(e,t,i,o){var a={},n=e===Vt;function r(s){var c;return a[s]=!0,w.each(e[s]||[],(function(e,s){var m=s(t,i,o);return"string"!=typeof m||n||a[m]?n?!(c=m):void 0:(t.dataTypes.unshift(m),r(m),!1)})),c}return r(t.dataTypes[0])||!a["*"]&&r("*")}function Pt(e,t){var i,o,a=w.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((a[i]?e:o||(o={}))[i]=t[i]);return o&&w.extend(!0,e,o),e}Rt.href=yt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,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":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Pt(Pt(e,w.ajaxSettings),t):Pt(w.ajaxSettings,e)},ajaxPrefilter:Ft(Gt),ajaxTransport:Ft(Vt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var o,a,n,r,s,c,m,l,u,d,p=w.ajaxSetup({},i),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?w(h):w.event,b=w.Deferred(),v=w.Callbacks("once memory"),k=p.statusCode||{},y={},z={},C="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(m){if(!r)for(r={};t=Tt.exec(n);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return m?n:null},setRequestHeader:function(e,t){return null==m&&(e=z[e.toLowerCase()]=z[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==m&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(m)A.always(e[A.status]);else for(t in e)k[t]=[k[t],e[t]];return this},abort:function(e){var t=e||C;return o&&o.abort(t),_(0,t),this}};if(b.promise(A),p.url=((t||p.url||yt.href)+"").replace(St,yt.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(V)||[""],null==p.crossDomain){c=f.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Rt.protocol+"//"+Rt.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=w.param(p.data,p.traditional)),It(Gt,p,i,A),m)return A;for(u in(l=w.event&&p.global)&&0==w.active++&&w.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!qt.test(p.type),a=p.url.replace(jt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(xt,"+")):(d=p.url.slice(a.length),p.data&&(p.processData||"string"==typeof p.data)&&(a+=(zt.test(a)?"&":"?")+p.data,delete p.data),!1===p.cache&&(a=a.replace(Et,"$1"),d=(zt.test(a)?"&":"?")+"_="+wt.guid+++d),p.url=a+d),p.ifModified&&(w.lastModified[a]&&A.setRequestHeader("If-Modified-Since",w.lastModified[a]),w.etag[a]&&A.setRequestHeader("If-None-Match",w.etag[a])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&A.setRequestHeader("Content-Type",p.contentType),A.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Bt+"; q=0.01":""):p.accepts["*"]),p.headers)A.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(h,A,p)||m))return A.abort();if(C="abort",v.add(p.complete),A.done(p.success),A.fail(p.error),o=It(Vt,p,i,A)){if(A.readyState=1,l&&g.trigger("ajaxSend",[A,p]),m)return A;p.async&&p.timeout>0&&(s=e.setTimeout((function(){A.abort("timeout")}),p.timeout));try{m=!1,o.send(y,_)}catch(e){if(m)throw e;_(-1,e)}}else _(-1,"No Transport");function _(t,i,r,c){var u,d,f,y,z,C=i;m||(m=!0,s&&e.clearTimeout(s),o=void 0,n=c||"",A.readyState=t>0?4:0,u=t>=200&&t<300||304===t,r&&(y=function(e,t,i){for(var o,a,n,r,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(a in s)if(s[a]&&s[a].test(o)){c.unshift(a);break}if(c[0]in i)n=c[0];else{for(a in i){if(!c[0]||e.converters[a+" "+c[0]]){n=a;break}r||(r=a)}n=n||r}if(n)return n!==c[0]&&c.unshift(n),i[n]}(p,A,r)),!u&&w.inArray("script",p.dataTypes)>-1&&w.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),y=function(e,t,i,o){var a,n,r,s,c,m={},l=e.dataTypes.slice();if(l[1])for(r in e.converters)m[r.toLowerCase()]=e.converters[r];for(n=l.shift();n;)if(e.responseFields[n]&&(i[e.responseFields[n]]=t),!c&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=n,n=l.shift())if("*"===n)n=c;else if("*"!==c&&c!==n){if(!(r=m[c+" "+n]||m["* "+n]))for(a in m)if((s=a.split(" "))[1]===n&&(r=m[c+" "+s[0]]||m["* "+s[0]])){!0===r?r=m[a]:!0!==m[a]&&(n=s[0],l.unshift(s[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+c+" to "+n}}}return{state:"success",data:t}}(p,y,A,u),u?(p.ifModified&&((z=A.getResponseHeader("Last-Modified"))&&(w.lastModified[a]=z),(z=A.getResponseHeader("etag"))&&(w.etag[a]=z)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=y.state,d=y.data,u=!(f=y.error))):(f=C,!t&&C||(C="error",t<0&&(t=0))),A.status=t,A.statusText=(i||C)+"",u?b.resolveWith(h,[d,C,A]):b.rejectWith(h,[A,C,f]),A.statusCode(k),k=void 0,l&&g.trigger(u?"ajaxSuccess":"ajaxError",[A,p,u?d:f]),v.fireWith(h,[A,C]),l&&(g.trigger("ajaxComplete",[A,p]),--w.active||w.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,i){return w.get(e,t,i,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,i,o,a){return h(i)&&(a=a||o,o=i,i=void 0),w.ajax(w.extend({url:e,type:t,dataType:a,data:i,success:o},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,i){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,i)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(h(e)&&(e=e.call(this[0])),t=w(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 h(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=h(e);return this.each((function(i){w(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ht={0:200,1223:204},Nt=w.ajaxSettings.xhr();p.cors=!!Nt&&"withCredentials"in Nt,p.ajax=Nt=!!Nt,w.ajaxTransport((function(t){var i,o;if(p.cors||Nt&&!t.crossDomain)return{send:function(a,n){var r,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];for(r in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(r,a[r]);i=function(e){return function(){i&&(i=o=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?n(0,"error"):n(s.status,s.statusText):n(Ht[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),o=s.onerror=s.ontimeout=i("error"),void 0!==s.onabort?s.onabort=o:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){i&&o()}))},i=i("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(o,a){t=w("