1(function(n,t,i){typeof define=="function"&&define.amd?define(["jquery"],function(r){return i(r,n,t),r.mobile}):i(n.jQuery,n,t)})(this,document,function(n,t,i){(function(n){n.extend(n.support,{orientation:"orientation"in t&&"onorientationchange"in t})})(n),function(n){n.event.special.throttledresize={setup:function(){n(this).bind("resize",t)},teardown:function(){n(this).unbind("resize",t)}};var f=250,t=function(){r=(new Date).getTime();u=r-e;u>=f?(e=r,n(this).trigger("throttledresize")):(i&&clearTimeout(i),i=setTimeout(t,f-u))},e=0,i,r,u}(n),function(n,t){function v(){var n=f();n!==e&&(e=n,r.trigger(u))}var r=n(t),u="orientationchange",f,e,o,s,h={"0":!0,"180":!0},c,l,a;n.support.orientation&&(c=t.innerWidth||r.width(),l=t.innerHeight||r.height(),a=50,o=c>l&&c-l>a,s=h[t.orientation],(o&&s||!o&&!s)&&(h={"-90":!0,"90":!0}));n.event.special.orientationchange=n.extend({},n.event.special.orientationchange,{setup:function(){if(n.support.orientation&&!n.event.special.orientationchange.disabled)return!1;e=f();r.bind("throttledresize",v)},teardown:function(){if(n.support.orientation&&!n.event.special.orientationchange.disabled)return!1;r.unbind("throttledresize",v)},add:function(n){var t=n.handler;n.handler=function(n){return n.orientation=f(),t.apply(this,arguments)}}});n.event.special.orientationchange.orientation=f=function(){var u=!0,r=i.documentElement;return u=n.support.orientation?h[t.orientation]:r&&r.clientWidth/r.clientHeight<1.1,u?"portrait":"landscape"};n.fn[u]=function(n){return n?this.bind(u,n):this.trigger(u)};n.attrFn&&(n.attrFn[u]=!0)}(n,this),function(n,t,i,r){function a(n){while(n&&typeof n.originalEvent!="undefined")n=n.originalEvent;return n}function wt(t,i){var u=t.type,e,o,c,f,s,l,v,h,y;if(t=n.Event(t),t.type=i,e=t.originalEvent,o=n.event.props,u.search(/^(mouse|click)/)>-1&&(o=yt),e)for(v=o.length,f;v;)f=o[--v],t[f]=e[f];if(u.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),u.search(/^touch/)!==-1&&(c=a(e),u=c.touches,s=c.changedTouches,l=u&&u.length?u[0]:s&&s.length?s[0]:r,l))for(h=0,y=tt.length;h<y;h++)f=tt[h],t[f]=l[f];return t}function p(t){for(var i={},r,u;t;){r=n.data(t,o);for(u in r)r[u]&&(i[u]=i.hasVirtualBinding=!0);t=t.parentNode}return i}function bt(t,i){for(var r;t;){if(r=n.data(t,o),r&&(!i||r[i]))return t;t=t.parentNode}return null}function kt(){c=!1}function ut(){c=!0}function dt(){s=0;v.length=0;k=!1;ut()}function gt(){kt()}function nt(){ft();h=setTimeout(function(){h=0;dt()},n.vmouse.resetTimerDuration)}function ft(){h&&(clearTimeout(h),h=0)}function e(t,i,r){var u;return(r&&r[t]||!r&&bt(i.target,t))&&(u=wt(i,t),n(i.target).trigger(u)),u}function et(t){var r=n.data(t.target,w),i;k||s&&s===r||(i=e("v"+t.type,t),i&&(i.isDefaultPrevented()&&t.preventDefault(),i.isPropagationStopped()&&t.stopPropagation(),i.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function ot(t){var o=a(t).touches,r,i,u;o&&o.length===1&&(r=t.target,i=p(r),i.hasVirtualBinding&&(s=pt++,n.data(r,w,s),ft(),gt(),f=!1,u=a(t).touches[0],it=u.pageX,rt=u.pageY,e("vmouseover",t,i),e("vmousedown",t,i)))}function st(n){c||(f||e("vmousecancel",n,p(n.target)),f=!0,nt())}function ht(t){if(!c){var i=a(t).touches[0],o=f,r=n.vmouse.moveDistanceThreshold,u=p(t.target);f=f||Math.abs(i.pageX-it)>r||Math.abs(i.pageY-rt)>r;f&&!o&&e("vmousecancel",t,u);e("vmousemove",t,u);nt()}}function ct(n){if(!c){ut();var t=p(n.target),i,r;e("vmouseup",n,t);f||(i=e("vclick",n,t),i&&i.isDefaultPrevented()&&(r=a(n).changedTouches[0],v.push({touchID:s,x:r.clientX,y:r.clientY}),k=!0));e("vmouseout",n,t);f=!1;nt()}}function lt(t){var i=n.data(t,o),r;if(i)for(r in i)if(i[r])return!0;return!1}function at(){}function ni(t){var i=t.substr(1);return{setup:function(){lt(this)||n.data(this,o,{});var r=n.data(this,o);r[t]=!0;u[t]=(u[t]||0)+1;u[t]===1&&y.bind(i,et);n(this).bind(i,at);d&&(u.touchstart=(u.touchstart||0)+1,u.touchstart===1&&y.bind("touchstart",ot).bind("touchend",ct).bind("touchmove",ht).bind("scroll",st))},teardown:function(){--u[t];u[t]||y.unbind(i,et);d&&(--u.touchstart,u.touchstart||y.unbind("touchstart",ot).unbind("touchmove",ht).unbind("touchend",ct).unbind("scroll",st));var r=n(this),f=n.data(this,o);f&&(f[t]=!1);r.unbind(i,at);lt(this)||r.removeData(o)}}}var o="virtualMouseBindings",w="virtualTouchID",b="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),tt="clientX clientY pageX pageY screenX screenY".split(" "),vt=n.event.mouseHooks?n.event.mouseHooks.props:[],yt=n.event.props.concat(vt),u={},h=0,it=0,rt=0,f=!1,v=[],k=!1,c=!1,d="addEventListener"in i,y=n(i),pt=1,s=0,g,l;for(n.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},l=0;l<b.length;
1l++)n.event.special[b[l]]=ni(b[l]);d&&i.addEventListener("click",function(t){var f=v.length,e=t.target,o,s,i,r,u,h;if(f)for(o=t.clientX,s=t.clientY,g=n.vmouse.clickDistanceThreshold,i=e;i;){for(r=0;r<f;r++)if(u=v[r],h=0,i===e&&Math.abs(u.x-o)<g&&Math.abs(u.y-s)<g||n.data(i,w)===u.touchID){t.preventDefault();t.stopPropagation();return}i=i.parentNode}},!0)}(n,t,i),function(n){n.mobile={}}(n),function(n){var t={touch:"ontouchend"in i};n.mobile.support=n.mobile.support||{};n.extend(n.support,t);n.extend(n.mobile.support,t)}(n),function(n,t,r){function f(t,i,u,f){var e=u.type;u.type=i;f?n.event.trigger(u,r,t):n.event.dispatch.call(t,u);u.type=e}var u=n(i),e=n.mobile.support.touch,s="touchmove scroll",h=e?"touchstart":"mousedown",c=e?"touchend":"mouseup",o=e?"touchmove":"mousemove";n.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,i){n.fn[i]=function(n){return n?this.bind(i,n):this.trigger(i)};n.attrFn&&(n.attrFn[i]=!0)});n.event.special.scrollstart={enabled:!0,setup:function(){function u(n,r){t=r;f(i,t?"scrollstart":"scrollstop",n)}var i=this,e=n(i),t,r;e.bind(s,function(i){n.event.special.scrollstart.enabled&&(t||u(i,!0),clearTimeout(r),r=setTimeout(function(){u(i,!1)},50))})},teardown:function(){n(this).unbind(s)}};n.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var i=this,r=n(i),t=!1;r.bind("vmousedown",function(e){function o(){clearTimeout(c)}function s(){o();r.unbind("vclick",l).unbind("vmouseup",o);u.unbind("vmousecancel",s)}function l(n){s();t||h!==n.target?t&&n.preventDefault():f(i,"tap",n)}if(t=!1,e.which&&e.which!==1)return!1;var h=e.target,c;r.bind("vmouseup",o).bind("vclick",l);u.bind("vmousecancel",s);c=setTimeout(function(){n.event.special.tap.emitTapOnTaphold||(t=!0);f(i,"taphold",n.Event("taphold",{target:h}))},n.event.special.tap.tapholdThreshold)})},teardown:function(){n(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup");u.unbind("vmousecancel")}};n.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(n){var u=t.pageXOffset,f=t.pageYOffset,i=n.clientX,r=n.clientY;return n.pageY===0&&Math.floor(r)>Math.floor(n.pageY)||n.pageX===0&&Math.floor(i)>Math.floor(n.pageX)?(i=i-u,r=r-f):(r<n.pageY-f||i<n.pageX-u)&&(i=n.pageX-u,r=n.pageY-f),{x:i,y:r}},start:function(t){var r=t.originalEvent.touches?t.originalEvent.touches[0]:t,i=n.event.special.swipe.getLocation(r);return{time:(new Date).getTime(),coords:[i.x,i.y],origin:n(t.target)}},stop:function(t){var r=t.originalEvent.touches?t.originalEvent.touches[0]:t,i=n.event.special.swipe.getLocation(r);return{time:(new Date).getTime(),coords:[i.x,i.y]}},handleSwipe:function(t,i,r,u){if(i.time-t.time<n.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-i.coords[0])>n.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-i.coords[1])<n.event.special.swipe.verticalDistanceThreshold){var e=t.coords[0]>i.coords[0]?"swipeleft":"swiperight";return f(r,"swipe",n.Event("swipe",{target:u,swipestart:t,swipestop:i}),!0),f(r,e,n.Event(e,{target:u,swipestart:t,swipestop:i}),!0),!0}return!1},eventInProgress:!1,setup:function(){var i,r=this,f=n(r),t={};i=n.data(this,"mobile-events");i||(i={length:0},n.data(this,"mobile-events",i));i.length++;i.swipe=t;t.start=function(i){if(!n.event.special.swipe.eventInProgress){n.event.special.swipe.eventInProgress=!0;var e,s=n.event.special.swipe.start(i),h=i.target,f=!1;t.move=function(t){s&&!t.isDefaultPrevented()&&(e=n.event.special.swipe.stop(t),f||(f=n.event.special.swipe.handleSwipe(s,e,r,h),f&&(n.event.special.swipe.eventInProgress=!1)),Math.abs(s.coords[0]-e.coords[0])>n.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())};t.stop=function(){f=!0;n.event.special.swipe.eventInProgress=!1;u.off(o,t.move);t.move=null};u.on(o,t.move).one(c,t.stop)}};f.on(h,t.start)},teardown:function(){var i,t;i=n.data(this,"mobile-events");i&&(t=i.swipe,delete i.swipe,i.length--,i.length===0&&n.removeData(this,"mobile-events"));t&&(t.start&&n(this).off(h,t.start),t.move&&u.off(o,t.move),t.stop&&u.off(c,t.stop))}};n.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,i){n.event.special[t]={setup:function(){n(this).bind(i,n.noop)},teardown:function(){n(this).unbind(i)}}})}(n,this),function(n,t,i){var r={},u=n.find,f=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,e=/:jqmData\(([^)]*)\)/g;n.extend(n.mobile,{ns:"",getAttribute:function(t,i){var r;t=t.jquery?t[0]:t;t&&t.getAttribute&&(r=t.getAttribute("data-"+n.mobile.ns+i));try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:f.test(r)?JSON.parse(r):r}catch(u){}return r},nsNormalizeDict:r,nsNormalize:function(t){return r[t]||(r[t]=n.camelCase(n.mobile.ns+t))},closestPageData:function(n){return n.closest(":jqmData(role='page'), :jqmData(role='dialog')").data("mobile-page")}});n.fn.jqmData=function(t,r){var u;return typeof t!="undefined"&&(t&&(t=n.mobile.nsNormalize(t)),u=arguments.length<2||r===i?this.data(t):this.data(t,r)),u};n.jqmData=function(t,i,r){var u;return typeof i!="undefined"&&(u=n.data(t,i?n.mobile.nsNormalize(i):i,r)),u};n.fn.jqmRemoveData=function(t){return this.removeData(n.mobile.nsNormalize(t))};n.jqmRemoveData=function(t,i){return n.removeData(t,n.mobile.nsNormalize(i))};n.find=function(t,i,r,f){return t.indexOf(":jqmData")>-1&&(t=t.replace(e,"[data-"+(n.mobile.ns||"")+"$1]")),u.call(this,t,i,r,f)};n.extend(n.find,u)}(n,this),function(n){n.extend(n.mobile,{version:"1.4.5",subPageUrlKey:"ui-p
1age",hideUrlBar:!0,keepNative:":jqmData(role='none'), :jqmData(role='nojs')",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",focusClass:"ui-focus",ajaxEnabled:!0,hashListeningEnabled:!0,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:0,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"a",phonegapNavigationEnabled:!1,autoInitializePage:!0,pushStateEnabled:!0,ignoreContentEnabled:!1,buttonMarkup:{hoverDelay:200},dynamicBaseEnabled:!0,pageContainer:n(),allowCrossDomainPages:!1,dialogHashKey:"&ui-state=dialog"})}(n,this),function(n,t){var r=0,i=Array.prototype.slice,u=n.cleanData;n.cleanData=function(t){for(var i=0,r;(r=t[i])!=null;i++)try{n(r).triggerHandler("remove")}catch(f){}u(t)};n.widget=function(t,i,r){var s,f,u,o,h={},e=t.split(".")[0];return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){if(!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){if(!n.isFunction(r)){h[t]=r;return}h[t]=function(){var n=function(){return i.prototype[t].apply(this,arguments)},u=function(n){return i.prototype[t].apply(this,n)};return function(){var i=this._super,f=this._superApply,t;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}()}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(r){for(var o=i.call(arguments,1),e=0,s=o.length,u,f;e<s;e++)for(u in o[e])f=o[e][u],o[e].hasOwnProperty(u)&&f!==t&&(r[u]=n.isPlainObject(f)?n.isPlainObject(r[u])?n.widget.extend({},r[u],f):n.widget.extend({},f):f);return r};n.widget.bridge=function(r,u){var f=u.prototype.widgetFullName||r;n.fn[r]=function(e){var h=typeof e=="string",s=i.call(arguments,1),o=this;return e=!h&&s.length?n.widget.extend.apply(null,[e].concat(s)):e,h?this.each(function(){var i,u=n.data(this,f);return e==="instance"?(o=u,!1):u?!n.isFunction(u[e])||e.charAt(0)==="_"?n.error("no such method '"+e+"' for "+r+" widget instance"):(i=u[e].apply(u,s),i!==u&&i!==t?(o=i&&i.jquery?o.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+e+"'")}):this.each(function(){var t=n.data(this,f);t?t.option(e||{})._init():n.data(this,f,new u(e,this))}),o}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=r++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this.bindings=n();this.hoverable=n();this.focusable=n();i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(i,r){var o=i,u,f,e;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof i=="string")if(o={},u=i.split("."),i=u.shift(),u.length){for(f=o[i]=n.widget.extend({},this.options[i]),e=0;e<u.length-1;e++)f[u[e]]=f[u[e]]||{},f=f[u[e]];if(i=u.pop(),r===t)return f[i]===t?null:f[i];f[i]=r}else{if(r===t)return this.options[i]===t?null:this.options[i];o[i]=r}return this._setOptions(o),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,r){var f,u=this;typeof t!="boolean"&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^(\w+)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];c?f.delegate(c,h,o):i.bind(h,o)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;n.unbind(t).undelegate(t)},_delay:function(n,t){function r(){return(typeof n=="string"?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent,f)for(u in f)u in i||(i[u]=f[u]);
1return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{};typeof u=="number"&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}})}(n),function(n){var t=/[A-Z]/g,i=function(n){return"-"+n.toLowerCase()};n.extend(n.Widget.prototype,{_getCreateOptions:function(){var r,u,f=this.element[0],e={};if(!n.mobile.getAttribute(f,"defaults"))for(r in this.options)u=n.mobile.getAttribute(f,r.replace(t,i)),u!=null&&(e[r]=u);return e}});n.mobile.widget=n.Widget}(n),function(n,t){function r(t,i){var r,f,e,o=t.nodeName.toLowerCase();return"area"===o?(r=t.parentNode,f=r.name,!t.href||!f||r.nodeName.toLowerCase()!=="map")?!1:(e=n("img[usemap=#"+f+"]")[0],!!e&&u(e)):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&u(t)}function u(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return n.css(this,"visibility")==="hidden"}).length}var f=0,e=/^ui-id-\d+$/;n.ui=n.ui||{};n.extend(n.ui,{version:"c0ab71056b936627e8a7821f03c044aec6280a40",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});n.fn.extend({focus:function(t){return function(i,r){return typeof i=="number"?this.each(function(){var t=this;setTimeout(function(){n(t).focus();r&&r.call(t)},i)}):t.apply(this,arguments)}}(n.fn.focus),scrollParent:function(){var t;return t=n.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(n.css(this,"position"))&&/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(n.css(this,"overflow")+n.css(this,"overflow-y")+n.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?n(this[0].ownerDocument||i):t},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++f)})},removeUniqueId:function(){return this.each(function(){e.test(this.id)&&n(this).removeAttr("id")})}});n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return r(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var i=n.attr(t,"tabindex"),u=isNaN(i);return(u||i>=0)&&r(t,!u)}});n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(i,r){function e(t,i,r,u){return n.each(o,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var o=r==="Width"?["Left","Right"]:["Top","Bottom"],u=r.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+r]=function(i){return i===t?f["inner"+r].call(this):this.each(function(){n(this).css(u,e(this,i)+"px")})};n.fn["outer"+r]=function(t,i){return typeof t!="number"?f["outer"+r].call(this,t):this.each(function(){n(this).css(u,e(this,t,!0,i)+"px")})}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData));n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());n.support.selectstart="onselectstart"in i.createElement("div");n.fn.extend({disableSelection:function(){return this.bind((n.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(n){n.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(r){if(r!==t)return this.css("zIndex",r);if(this.length)for(var u=n(this[0]),f,e;u.length&&u[0]!==i;){if(f=u.css("position"),(f==="absolute"||f==="relative"||f==="fixed")&&(e=parseInt(u.css("zIndex"),10),!isNaN(e)&&e!==0))return e;u=u.parent()}return 0}});n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&n.element[0].parentNode.nodeType!==11))for(u=0;
1u<f.length;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}}}(n),function(n,t){var r=function(t,i){var u=t.parent(),r=[],f=function(){var t=n(this),i=n.mobile.toolbar&&t.data("mobile-toolbar")?t.toolbar("option"):{position:t.attr("data-"+n.mobile.ns+"position"),updatePagePadding:t.attr("data-"+n.mobile.ns+"update-page-padding")!==!1};return!(i.position==="fixed"&&i.updatePagePadding===!0)},e=u.children(":jqmData(role='header')").filter(f),s=t.children(":jqmData(role='header')"),o=u.children(":jqmData(role='footer')").filter(f),h=t.children(":jqmData(role='footer')");return s.length===0&&e.length>0&&(r=r.concat(e.toArray())),h.length===0&&o.length>0&&(r=r.concat(o.toArray())),n.each(r,function(t,r){i-=n(r).outerHeight()}),Math.max(0,i)};n.extend(n.mobile,{window:n(t),document:n(i),keyCode:n.ui.keyCode,behaviors:{},silentScroll:function(i){n.type(i)!=="number"&&(i=n.mobile.defaultHomeScroll);n.event.special.scrollstart.enabled=!1;setTimeout(function(){t.scrollTo(0,i);n.mobile.document.trigger("silentscroll",{x:0,y:i})},20);setTimeout(function(){n.event.special.scrollstart.enabled=!0},150)},getClosestBaseUrl:function(t){var i=n(t).closest(".ui-page").jqmData("url"),r=n.mobile.path.documentBase.hrefNoHash;return n.mobile.dynamicBaseEnabled&&i&&n.mobile.path.isPath(i)||(i=r),n.mobile.path.makeUrlAbsolute(i,r)},removeActiveLinkClass:function(t){!n.mobile.activeClickedLink||n.mobile.activeClickedLink.closest("."+n.mobile.activePageClass).length&&!t||n.mobile.activeClickedLink.removeClass(n.mobile.activeBtnClass);n.mobile.activeClickedLink=null},getInheritedTheme:function(n,t){for(var i=n[0],u="",r,f;i;){if(r=i.className||"",r&&(f=/ui-(bar|body|overlay)-([a-z])\b/.exec(r))&&(u=f[2]))break;i=i.parentNode}return u||t||"a"},enhanceable:function(n){return this.haveParents(n,"enhance")},hijackable:function(n){return this.haveParents(n,"ajax")},haveParents:function(t,i){if(!n.mobile.ignoreContentEnabled)return t;for(var h=t.length,f=n(),r,o,e,s,u=0;u<h;u++){for(o=t.eq(u),e=!1,r=t[u];r;){if(s=r.getAttribute?r.getAttribute("data-"+n.mobile.ns+i):"",s==="false"){e=!0;break}r=r.parentNode}e||(f=f.add(o))}return f},getScreenHeight:function(){return t.innerHeight||n.mobile.window.height()},resetActivePageHeight:function(t){var i=n("."+n.mobile.activePageClass),u=i.height(),f=i.outerHeight(!0);t=r(i,typeof t=="number"?t:n.mobile.getScreenHeight());i.css("min-height","");i.height()<t&&i.css("min-height",t-(f-u))},loading:function(){var t=this.loading._widget||n(n.mobile.loader.prototype.defaultHtml).loader(),i=t.loader.apply(t,arguments);return this.loading._widget=t,i}});n.addDependents=function(t,i){var r=n(t),u=r.jqmData("dependents")||n();r.jqmData("dependents",n(u).add(i))};n.fn.extend({removeWithDependents:function(){n.removeWithDependents(this)},enhanceWithin:function(){var t,i={},r=n.mobile.page.prototype.keepNativeSelector(),u=this;n.mobile.nojs&&n.mobile.nojs(this);n.mobile.links&&n.mobile.links(this);n.mobile.degradeInputsWithin&&n.mobile.degradeInputsWithin(this);n.fn.buttonMarkup&&this.find(n.fn.buttonMarkup.initSelector).not(r).jqmEnhanceable().buttonMarkup();n.fn.fieldcontain&&this.find(":jqmData(role='fieldcontain')").not(r).jqmEnhanceable().fieldcontain();n.each(n.mobile.widgets,function(t,f){if(f.initSelector){var e=n.mobile.enhanceable(u.find(f.initSelector));e.length>0&&(e=e.not(r));e.length>0&&(i[f.prototype.widgetName]=e)}});for(t in i)i[t][t]();return this},addDependents:function(t){n.addDependents(this,t)},getEncodedText:function(){return n("<a>").text(this.text()).html()},jqmEnhanceable:function(){return n.mobile.enhanceable(this)},jqmHijackable:function(){return n.mobile.hijackable(this)}});n.removeWithDependents=function(t){var i=n(t);(i.jqmData("dependents")||n()).remove();i.remove()};n.addDependents=function(t,i){var r=n(t),u=r.jqmData("dependents")||n();r.jqmData("dependents",n(u).add(i))};n.find.matches=function(t,i){return n.find(t,null,null,i)};n.find.matchesSelector=function(t,i){return n.find(i,null,null,[t]).length>0}}(n,this),function(n,t){n.mobile.widgets={};var i=n.widget,r=n.mobile.keepNative;n.widget=function(i){return function(){var r=i.apply(this,arguments),u=r.prototype.widgetName;return r.initSelector=r.prototype.initSelector!==t?r.prototype.initSelector:":jqmData(role='"+u+"')",n.mobile.widgets[u]=r,r}}(n.widget);n.extend(n.widget,i);n.mobile.document.on("create",function(t){n(t.target).enhanceWithin()});n.widget("mobile.page",{options:{theme:"a",domCache:!1,keepNativeDefault:n.mobile.keepNative,contentTheme:null,enhanced:!1},_createWidget:function(){n.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_create:function(){if(this._trigger("beforecreate")===!1)return!1;this.options.enhanced||this._enhance();
vendor: 4,484 bytes, line 1
1this._on(this.element,{pagebeforehide:"removeContainerBackground",pagebeforeshow:"_handlePageBeforeShow"});this.element.enhanceWithin();n.mobile.getAttribute(this.element[0],"role")==="dialog"&&n.mobile.dialog&&this.element.dialog()},_enhance:function(){var r="data-"+n.mobile.ns,i=this;this.options.role&&this.element.attr("data-"+n.mobile.ns+"role",this.options.role);this.element.attr("tabindex","0").addClass("ui-page ui-page-theme-"+this.options.theme);this.element.find("["+r+"role='content']").each(function(){var u=n(this),f=this.getAttribute(r+"theme")||t;i.options.contentTheme=f||i.options.contentTheme||i.options.dialog&&i.options.theme||i.element.jqmData("role")==="dialog"&&i.options.theme;u.addClass("ui-content");i.options.contentTheme&&u.addClass("ui-body-"+i.options.contentTheme);u.attr("role","main").addClass("ui-content")})},bindRemove:function(t){var i=this.element;!i.data("mobile-page").options.domCache&&i.is(":jqmData(external-page='true')")&&i.bind("pagehide.remove",t||function(t,i){if(!i.samePage){var r=n(this),u=new n.Event("pageremove");r.trigger(u);u.isDefaultPrevented()||r.removeWithDependents()}})},_setOptions:function(i){i.theme!==t&&this.element.removeClass("ui-page-theme-"+this.options.theme).addClass("ui-page-theme-"+i.theme);i.contentTheme!==t&&this.element.find("[data-"+n.mobile.ns+"='content']").removeClass("ui-body-"+this.options.contentTheme).addClass("ui-body-"+i.contentTheme)},_handlePageBeforeShow:function(){this.setContainerBackground()},removeContainerBackground:function(){this.element.closest(":mobile-pagecontainer").pagecontainer({theme:"none"})},setContainerBackground:function(n){this.element.parent().pagecontainer({theme:n||this.options.theme})},keepNativeSelector:function(){var i=this.options,u=n.trim(i.keepNative||""),f=n.trim(n.mobile.keepNative),o=n.trim(i.keepNativeDefault),t=r===f?"":f,e=t===""?o:"";return(u?[u]:[]).concat(t?[t]:[]).concat(e?[e]:[]).join(", ")}})}(n),function(n){n.mobile.degradeInputs={color:!1,date:!1,datetime:!1,"datetime-local":!1,email:!1,month:!1,number:!1,range:"number",search:"text",tel:!1,time:!1,url:!1,week:!1};n.mobile.page.prototype.options.degradeInputs=n.mobile.degradeInputs;n.mobile.degradeInputsWithin=function(t){t=n(t);t.find("input").not(n.mobile.page.prototype.keepNativeSelector()).each(function(){var u=n(this),t=this.getAttribute("type"),o=n.mobile.degradeInputs[t]||"text",i,r,f,e;n.mobile.degradeInputs[t]&&(i=n("<div>").html(u.clone()).html(),r=i.indexOf(" type=")>-1,f=r?/\s+type=["']?\w+['"]?/:/\/?>/,e=' type="'+o+'" data-'+n.mobile.ns+'type="'+t+'"'+(r?"":">"),u.replaceWith(i.replace(f,e)))})}}(n),function(n){var t=n("meta[name=viewport]"),i=t.attr("content"),u=i+",maximum-scale=1, user-scalable=no",f=i+",maximum-scale=10, user-scalable=yes",r=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(i);n.mobile.zoom=n.extend({},{enabled:!r,locked:!1,disable:function(i){r||n.mobile.zoom.locked||(t.attr("content",u),n.mobile.zoom.enabled=!1,n.mobile.zoom.locked=i||!1)},enable:function(i){r||n.mobile.zoom.locked&&i!==!0||(t.attr("content",f),n.mobile.zoom.enabled=!0,n.mobile.zoom.locked=!1)},restore:function(){r||(t.attr("content",i),n.mobile.zoom.enabled=!0)}})}(n),function(n){n.mobile.behaviors.formReset={_handleFormReset:function(){this._on(this.element.closest("form"),{reset:function(){this._delay("_reset")}})}}}(n),function(n,t){n.widget("mobile.textinput",{initSelector:"input[type='text'],input[type='search'],:jqmData(type='search'),input[type='number'],:jqmData(type='number'),input[type='password'],input[type='email'],input[type='url'],input[type='tel'],textarea,input[type='time'],input[type='date'],input[type='month'],input[type='week'],input[type='datetime'],input[type='datetime-local'],input[type='color'],input:not([type]),input[type='file']",options:{theme:null,corners:!0,mini:!1,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,wrapperClass:"",enhanced:!1},_create:function(){var t=this.options,r=this.element.is("[type='search'], :jqmData(type='search')"),u=this.element[0].tagName==="TEXTAREA",i=this.element.is("[data-"+(n.mobile.ns||"")+"type='range']"),f=(this.element.is("input")||this.element.is("[data-"+(n.mobile.ns||"")+"type='search']"))&&!i;this.element.prop("disabled")&&(t.disabled=!0);n.extend(this,{classes:this._classesFromOptions(),isSearch:r,isTextarea:u,isRange:i,inputNeedsWrap:f});this._autoCorrect();t.enhanced||this._enhance();
vendor: 4,176 bytes, line 1
1this._on({focus:"_handleFocus",blur:"_handleBlur"})},refresh:function(){this.setOptions({disabled:this.element.is(":disabled")})},_enhance:function(){var n=[];this.isTextarea&&n.push("ui-input-text");(this.isTextarea||this.isRange)&&n.push("ui-shadow-inset");this.inputNeedsWrap?this.element.wrap(this._wrap()):n=n.concat(this.classes);this.element.addClass(n.join(" "))},widget:function(){return this.inputNeedsWrap?this.element.parent():this.element},_classesFromOptions:function(){var n=this.options,t=[];return t.push("ui-body-"+(n.theme===null?"inherit":n.theme)),n.corners&&t.push("ui-corner-all"),n.mini&&t.push("ui-mini"),n.disabled&&t.push("ui-state-disabled"),n.wrapperClass&&t.push(n.wrapperClass),t},_wrap:function(){return n("<div class='"+(this.isSearch?"ui-input-search ":"ui-input-text ")+this.classes.join(" ")+" ui-shadow-inset'><\/div>")},_autoCorrect:function(){typeof this.element[0].autocorrect=="undefined"||n.support.touchOverflow||(this.element[0].setAttribute("autocorrect","off"),this.element[0].setAttribute("autocomplete","off"))},_handleBlur:function(){this.widget().removeClass(n.mobile.focusClass);this.options.preventFocusZoom&&n.mobile.zoom.enable(!0)},_handleFocus:function(){this.options.preventFocusZoom&&n.mobile.zoom.disable(!0);this.widget().addClass(n.mobile.focusClass)},_setOptions:function(n){var i=this.widget();this._super(n);n.disabled===t&&n.mini===t&&n.corners===t&&n.theme===t&&n.wrapperClass===t||(i.removeClass(this.classes.join(" ")),this.classes=this._classesFromOptions(),i.addClass(this.classes.join(" ")));n.disabled!==t&&this.element.prop("disabled",!!n.disabled)},_destroy:function(){this.options.enhanced||(this.inputNeedsWrap&&this.element.unwrap(),this.element.removeClass("ui-input-text "+this.classes.join(" ")))}})}(n),function(n,r){n.widget("mobile.slider",n.extend({initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",widgetEventPrefix:"slide",options:{theme:null,trackTheme:null,corners:!0,mini:!1,highlight:!1},_create:function(){var ot=this,u=this.element,w=this.options.trackTheme||n.mobile.getAttribute(u[0],"theme"),st=w?" ui-bar-"+w:" ui-bar-inherit",ht=this.options.corners||u.jqmData("corners")?" ui-corner-all":"",ct=this.options.mini||u.jqmData("mini")?" ui-mini":"",b=u[0].nodeName.toLowerCase(),f=b==="select",k=u.parent().is(":jqmData(role='rangeslider')"),lt=f?"ui-slider-switch":"",d=u.attr("id"),g=n("[for='"+d+"']"),nt=g.attr("id")||d+"-label",tt=f?0:parseFloat(u.attr("min")),it=f?u.find("option").length-1:parseFloat(u.attr("max")),at=t.parseFloat(u.attr("step")||1),a=i.createElement("a"),c=n(a),o=i.createElement("div"),e=n(o),vt=this.options.highlight&&!f?function(){var t=i.createElement("div");return t.className="ui-slider-bg "+n.mobile.activeBtnClass,n(t).prependTo(e)}():!1,y,s,v,rt,h,ut,p,ft,et,l;if(g.attr("id",nt),this.isToggleSwitch=f,a.setAttribute("href","#"),o.setAttribute("role","application"),o.className=[this.isToggleSwitch?"ui-slider ui-slider-track ui-shadow-inset ":"ui-slider-track ui-shadow-inset ",lt,st,ht,ct].join(""),a.className="ui-slider-handle",o.appendChild(a),c.attr({role:"slider","aria-valuemin":tt,"aria-valuemax":it,"aria-valuenow":this._value(),"aria-valuetext":this._value(),title:this._value(),"aria-labelledby":nt}),n.extend(this,{slider:e,handle:c,control:u,type:b,step:at,max:it,min:tt,valuebg:vt,isRangeslider:k,dragging:!1,beforeStart:null,userModified:!1,mouseMoved:!1}),f){for(p=u.attr("tabindex"),p&&c.attr("tabindex",p),u.attr("tabindex","-1").focus(function(){n(this).blur();c.focus()}),s=i.createElement("div"),s.className="ui-slider-inneroffset",v=0,rt=o.childNodes.length;v<rt;v++)s.appendChild(o.childNodes[v]);for(o.appendChild(s),c.addClass("ui-slider-handle-snapping"),y=u.find("option"),h=0,ut=y.length;h<ut;h++)ft=h?"a":"b",et=h?" "+n.mobile.activeBtnClass:"",l=i.createElement("span"),l.className=["ui-slider-label ui-slider-label-",ft,et].join(""),l.setAttribute("role","img"),l.appendChild(i.createTextNode(y[h].innerHTML)),n(l).prependTo(e);ot._labels=n(".ui-slider-label",e)}u.addClass(f?"ui-slider-switch":"ui-slider-input");this._on(u,{change:"_controlChange",keyup:"_controlKeyup",blur:"_c
1ontrolBlur",vmouseup:"_controlVMouseUp"});e.bind("vmousedown",n.proxy(this._sliderVMouseDown,this)).bind("vclick",!1);this._on(i,{vmousemove:"_preventDocumentDrag"});this._on(e.add(i),{vmouseup:"_sliderVMouseUp"});e.insertAfter(u);f||k||(s=this.options.mini?"<div class='ui-slider ui-mini'>":"<div class='ui-slider'>",u.add(e).wrapAll(s));this._on(this.handle,{vmousedown:"_handleVMouseDown",keydown:"_handleKeydown",keyup:"_handleKeyup"});this.handle.bind("vclick",!1);this._handleFormReset();this.refresh(r,r,!0)},_setOptions:function(n){n.theme!==r&&this._setTheme(n.theme);n.trackTheme!==r&&this._setTrackTheme(n.trackTheme);n.corners!==r&&this._setCorners(n.corners);n.mini!==r&&this._setMini(n.mini);n.highlight!==r&&this._setHighlight(n.highlight);n.disabled!==r&&this._setDisabled(n.disabled);this._super(n)},_controlChange:function(n){if(this._trigger("controlchange",n)===!1)return!1;this.mouseMoved||this.refresh(this._value(),!0)},_controlKeyup:function(){this.refresh(this._value(),!0,!0)},_controlBlur:function(){this.refresh(this._value(),!0)},_controlVMouseUp:function(){this._checkedRefresh()},_handleVMouseDown:function(){this.handle.focus()},_handleKeydown:function(t){var i=this._value();if(!this.options.disabled){switch(t.keyCode){case n.mobile.keyCode.HOME:case n.mobile.keyCode.END:case n.mobile.keyCode.PAGE_UP:case n.mobile.keyCode.PAGE_DOWN:case n.mobile.keyCode.UP:case n.mobile.keyCode.RIGHT:case n.mobile.keyCode.DOWN:case n.mobile.keyCode.LEFT:t.preventDefault();this._keySliding||(this._keySliding=!0,this.handle.addClass("ui-state-active"))}switch(t.keyCode){case n.mobile.keyCode.HOME:this.refresh(this.min);break;case n.mobile.keyCode.END:this.refresh(this.max);break;case n.mobile.keyCode.PAGE_UP:case n.mobile.keyCode.UP:case n.mobile.keyCode.RIGHT:this.refresh(i+this.step);break;case n.mobile.keyCode.PAGE_DOWN:case n.mobile.keyCode.DOWN:case n.mobile.keyCode.LEFT:this.refresh(i-this.step)}}},_handleKeyup:function(){this._keySliding&&(this._keySliding=!1,this.handle.removeClass("ui-state-active"))},_sliderVMouseDown:function(n){return this.options.disabled||!(n.which===1||n.which===0||n.which===r)?!1:this._trigger("beforestart",n)===!1?!1:(this.dragging=!0,this.userModified=!1,this.mouseMoved=!1,this.isToggleSwitch&&(this.beforeStart=this.element[0].selectedIndex),this.refresh(n),this._trigger("start"),!1)},_sliderVMouseUp:function(){if(this.dragging)return this.dragging=!1,this.isToggleSwitch&&(this.handle.addClass("ui-slider-handle-snapping"),this.mouseMoved?this.userModified?this.refresh(this.beforeStart===0?1:0):this.refresh(this.beforeStart):this.refresh(this.beforeStart===0?1:0)),this.mouseMoved=!1,this._trigger("stop"),!1},_preventDocumentDrag:function(n){return this._trigger("drag",n)===!1?!1:this.dragging&&!this.options.disabled?(this.mouseMoved=!0,this.isToggleSwitch&&this.handle.removeClass("ui-slider-handle-snapping"),this.refresh(n),this.userModified=this.beforeStart!==this.element[0].selectedIndex,!1):void 0},_checkedRefresh:function(){this.value!==this._value()&&this.refresh(this._value())},_value:function(){return this.isToggleSwitch?this.element[0].selectedIndex:parseFloat(this.element.val())},_reset:function(){this.refresh(r,!1,!0)},refresh:function(t,r,u){var it=this,rt=n.mobile.getAttribute(this.element[0],"theme"),ut=this.options.theme||rt,st=ut?" ui-btn-"+ut:"",ft=this.options.trackTheme||rt,ht=ft?" ui-bar-"+ft:" ui-bar-inherit",ct=this.options.corners?" ui-corner-all":"",lt=this.options.mini?" ui-mini":"",v,a,y,g,p,e,o,h,w,s,l,c,f,b,nt,et,k,tt,ot,d;if(it.slider[0].className=[this.isToggleSwitch?"ui-slider ui-slider-switch ui-slider-track ui-shadow-inset":"ui-slider-track ui-shadow-inset",ht,ct,lt].join(""),(this.options.disabled||this.element.prop("disabled"))&&this.disable(),this.value=this._value(),this.options.highlight&&!this.isToggleSwitch&&this.slider.find(".ui-slider-bg").length===0&&(this.valuebg=function(){var t=i.createElement("div");return t.className="ui-slider-bg "+n.mobile.activeBtnClass,n(t).prependTo(it.slider)}()),this.handle.addClass("ui-btn"+st+" ui-shadow"),o=this.element,h=!this.isToggleSwitch,w=h?[]:o.find("option"),s=h?parseFloat(o.attr("min")):0,l=h?parseFloat(o.attr("max")):w.length-1,c=h&&parseFloat(o.attr("step"))>0?parseFloat(o.attr("step")):1,typeof t=="object"){if(y=t,g=8,v=this.slider.offset().left,a=this.slider.width(),p=a/((l-s)/c),!this.dragging||y.pageX<v-g||y.pageX>v+a+g)return;e=p>1?(y.pageX-v)/a*100:Math.round((y.pageX-v)/a*100)}else t==null&&(t=h?parseFloat(o.val()||0):o[0].selectedIndex),e=(parseFloat(t)-s)/(l-s)*100;if(!isNaN(e)&&(f=e/100*(l-s)+s,b=(f-s)%c,nt=f-b,Math.abs(b)*2>=c&&(nt+=b>0?c:-c),et=100/((l-s)/c),f=parseFloat(nt.toFixed(5)),typeof p=="undefined"&&(p=a/((l-s)/c)),p>1&&h&&(e=(f-s)*et*(1/c)),e<0&&(e=0),e>100&&(e=100),f<s&&(f=s),f>l&&(f=l),this.handle.css("left",e+"%"),this.handle[0].setAttribute("aria-valuenow",h?f:w.eq(f).attr("value")),this.handle[0].setAttribute("aria-valuetext",h?f:w.eq(f).getEncodedText()),this.handle[0].setAttribute("title",h?f:w.eq(f).getEncodedText()),this.valuebg&&this.valuebg.css("width",e+"%"),this._labels&&(k=this.handle.width()/this.slider.width()*100,tt
1=e&&k+(100-k)*e/100,ot=e===100?0:Math.min(k+100-tt,100),this._labels.each(function(){var t=n(this).hasClass("ui-slider-label-a");n(this).width((t?tt:ot)+"%")})),!u)){if(d=!1,h?(d=parseFloat(o.val())!==f,o.val(f)):(d=o[0].selectedIndex!==f,o[0].selectedIndex=f),this._trigger("beforechange",t)===!1)return!1;!r&&d&&o.trigger("change")}},_setHighlight:function(n){n=!!n;n?(this.options.highlight=!!n,this.refresh()):this.valuebg&&(this.valuebg.remove(),this.valuebg=!1)},_setTheme:function(n){this.handle.removeClass("ui-btn-"+this.options.theme).addClass("ui-btn-"+n);var t=this.options.theme?this.options.theme:"inherit",i=n?n:"inherit";this.control.removeClass("ui-body-"+t).addClass("ui-body-"+i)},_setTrackTheme:function(n){var t=this.options.trackTheme?this.options.trackTheme:"inherit",i=n?n:"inherit";this.slider.removeClass("ui-body-"+t).addClass("ui-body-"+i)},_setMini:function(n){n=!!n;this.isToggleSwitch||this.isRangeslider||(this.slider.parent().toggleClass("ui-mini",n),this.element.toggleClass("ui-mini",n));this.slider.toggleClass("ui-mini",n)},_setCorners:function(n){this.slider.toggleClass("ui-corner-all",n);this.isToggleSwitch||this.control.toggleClass("ui-corner-all",n)},_setDisabled:function(n){n=!!n;this.element.prop("disabled",n);this.slider.toggleClass("ui-state-disabled",n).attr("aria-disabled",n);this.element.toggleClass("ui-state-disabled",n)}},n.mobile.behaviors.formReset))}(n),function(n){var t="ui-loader",i=n("html");n.widget("mobile.loader",{options:{theme:"a",textVisible:!1,html:"",text:"loading"},defaultHtml:"<div class='"+t+"'><span class='ui-icon-loading'><\/span><h1><\/h1><\/div>",fakeFixLoader:function(){var t=n("."+n.mobile.activeBtnClass).first();this.element.css({top:n.support.scrollTop&&this.window.scrollTop()+this.window.height()/2||t.length&&t.offset().top||100})},checkLoaderPosition:function(){var t=this.element.offset(),i=this.window.scrollTop(),r=n.mobile.getScreenHeight();(t.top<i||t.top-i>r)&&(this.element.addClass("ui-loader-fakefix"),this.fakeFixLoader(),this.window.unbind("scroll",this.checkLoaderPosition).bind("scroll",n.proxy(this.fakeFixLoader,this)))},resetHtml:function(){this.element.html(n(this.defaultHtml).html())},show:function(r,u,f){var o,s,e;this.resetHtml();n.type(r)==="object"?(e=n.extend({},this.options,r),r=e.theme):(e=this.options,r=r||e.theme);s=u||(e.text===!1?"":e.text);i.addClass("ui-loading");o=e.textVisible;this.element.attr("class",t+" ui-corner-all ui-body-"+r+" ui-loader-"+(o||u||r.text?"verbose":"default")+(e.textonly||f?" ui-loader-textonly":""));e.html?this.element.html(e.html):this.element.find("h1").text(s);this.element.appendTo(n.mobile.pagecontainer?n(":mobile-pagecontainer"):n("body"));this.checkLoaderPosition();this.window.bind("scroll",n.proxy(this.checkLoaderPosition,this))},hide:function(){i.removeClass("ui-loading");this.options.text&&this.element.removeClass("ui-loader-fakefix");this.window.unbind("scroll",this.fakeFixLoader);this.window.unbind("scroll",this.checkLoaderPosition)}})}(n,this)});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.