123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- /* b04e1ae4-b5cb-47e5-baaa-f1f05be774bd 破解*/
- (function(a,t){function j(a){for(var b in a)if(O[a[b]]!==t)return!0;return!1}function u(b,c,d){var g=b;if("object"===typeof c)return b.each(function(){n[this.id]&&n[this.id].destroy();new a.mobiscroll.classes[c.component||"Scroller"](this,c)});"string"===typeof c&&b.each(function(){var a;if((a=n[this.id])&&a[c])if(a=a[c].apply(this,Array.prototype.slice.call(d,1)),a!==t)return g=a,!1});return g}function f(a){if(d.tapped&&!a.tap&&!("TEXTAREA"==a.target.nodeName&&"mousedown"==a.type))return a.stopPropagation(),
- a.preventDefault(),!1}var d,y=+new Date,n={},m=a.extend,O=document.createElement("modernizr").style,b=j(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]),c=j(["flex","msFlex","WebkitBoxDirection"]),da=function(){var a=["Webkit","Moz","O","ms"],b;for(b in a)if(j([a[b]+"Transform"]))return"-"+a[b].toLowerCase()+"-";return""}(),Q=da.replace(/^\-/,"").replace(/\-$/,"").replace("moz","Moz");a.fn.mobiscroll=function(b){m(this,a.mobiscroll.components);return u(this,
- b,arguments)};d=a.mobiscroll=a.mobiscroll||{version:"2.17.1",running:1,util:{prefix:da,jsPrefix:Q,has3d:b,hasFlex:c,isOldAndroid:/android [1-3]/i.test(navigator.userAgent),preventClick:function(){d.tapped++;setTimeout(function(){d.tapped--},500)},testTouch:function(b,c){if("touchstart"==b.type)a(c).attr("data-touch","1");else if(a(c).attr("data-touch"))return a(c).removeAttr("data-touch"),!1;return!0},objectToArray:function(a){var b=[],c;for(c in a)b.push(a[c]);return b},arrayToObject:function(a){var b={},
- c;if(a)for(c=0;c<a.length;c++)b[a[c]]=a[c];return b},isNumeric:function(a){return 0<=a-parseFloat(a)},isString:function(a){return"string"===typeof a},getCoord:function(a,b,c){var g=a.originalEvent||a,b=(c?"page":"client")+b;return g.changedTouches?g.changedTouches[0][b]:a[b]},getPosition:function(c,d){var f=window.getComputedStyle?getComputedStyle(c[0]):c[0].style,g,q;b?(a.each(["t","webkitT","MozT","OT","msT"],function(a,b){if(f[b+"ransform"]!==t)return g=f[b+"ransform"],!1}),g=g.split(")")[0].split(", "),
- q=d?g[13]||g[5]:g[12]||g[4]):q=d?f.top.replace("px",""):f.left.replace("px","");return q},addIcon:function(b,c){var d={},g=b.parent(),q=g.find(".mbsc-err-msg"),f=b.attr("data-icon-align")||"left",k=b.attr("data-icon");a('<span class="mbsc-input-wrap"></span>').insertAfter(b).append(b);q&&g.find(".mbsc-input-wrap").append(q);k&&(-1!==k.indexOf("{")?d=JSON.parse(k):d[f]=k,m(d,c),g.addClass((d.right?"mbsc-ic-right ":"")+(d.left?" mbsc-ic-left":"")).find(".mbsc-input-wrap").append(d.left?'<span class="mbsc-input-ic mbsc-left-ic mbsc-ic mbsc-ic-'+
- d.left+'"></span>':"").append(d.right?'<span class="mbsc-input-ic mbsc-right-ic mbsc-ic mbsc-ic-'+d.right+'"></span>':""))},constrain:function(a,b,c){return Math.max(b,Math.min(a,c))},vibrate:function(a){"vibrate"in navigator&&navigator.vibrate(a||50)}},tapped:0,autoTheme:"mobiscroll",presets:{scroller:{},numpad:{},listview:{},menustrip:{}},themes:{form:{},frame:{},listview:{},menustrip:{},progress:{}},i18n:{},instances:n,classes:{},components:{},defaults:{context:"body",mousewheel:!0,vibrate:!0},
- setDefaults:function(a){m(this.defaults,a)},presetShort:function(a,b,c){this.components[a]=function(g){return u(this,m(g,{component:b,preset:!1===c?t:a}),arguments)}}};a.mobiscroll.classes.Base=function(b,c){var d,g,q,f,k,i,j=a.mobiscroll,u=j.util,r=u.getCoord,h=this;h.settings={};h._presetLoad=function(){};h._init=function(a){q=h.settings;m(c,a);h._hasDef&&(i=j.defaults);m(q,h._defaults,i,c);if(h._hasTheme){k=q.theme;if("auto"==k||!k)k=j.autoTheme;"default"==k&&(k="mobiscroll");c.theme=k;f=j.themes[h._class]?
- j.themes[h._class][k]:{}}h._hasLang&&(d=j.i18n[q.lang]);h._hasTheme&&h.trigger("onThemeLoad",[d,c]);m(q,f,d,i,c);if(h._hasPreset&&(h._presetLoad(q),g=j.presets[h._class][q.preset]))g=g.call(b,h),m(q,g,c)};h._destroy=function(){h.trigger("onDestroy",[]);delete n[b.id];h=null};h.tap=function(b,c,g){function i(b){if(!e&&(g&&b.preventDefault(),e=this,m=r(b,"X"),n=r(b,"Y"),j=!1,"pointerdown"==b.type))a(document).on("pointermove",d).on("pointerup",k)}function d(a){if(e&&!j&&9<Math.abs(r(a,"X")-m)||9<Math.abs(r(a,
- "Y")-n))j=!0}function k(b){e&&(j||(b.preventDefault(),c.call(e,b,h)),"pointerup"==b.type&&a(document).off("pointermove",d).off("pointerup",k),e=!1,u.preventClick())}function f(){e=!1}var m,n,e,j;if(q.tap)b.on("touchstart.dw pointerdown.dw",i).on("touchcancel.dw pointercancel.dw",f).on("touchmove.dw",d).on("touchend.dw",k);b.on("click.dw",function(a){a.preventDefault();c.call(this,a,h)})};h.trigger=function(d,k){var q;k.push(h);a.each([i,f,g,c],function(a,c){c&&c[d]&&(q=c[d].apply(b,k))});return q};
- h.option=function(a,b){var c={};"object"===typeof a?c=a:c[a]=b;h.init(c)};h.getInst=function(){return h};c=c||{};a(b).addClass("mbsc-comp");b.id||(b.id="mobiscroll"+ ++y);n[b.id]=h};document.addEventListener&&a.each(["mouseover","mousedown","mouseup","click"],function(a,b){document.addEventListener(b,f,!0)})})(jQuery);(function(a){a.mobiscroll.i18n.zh={setText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88",clearText:"\u660e\u786e",selectedText:"{count} \u9009",dateFormat:"yy/mm/dd",dateOrder:"yymmdd",dayNames:"\u5468\u65e5,\u5468\u4e00,\u5468\u4e8c,\u5468\u4e09,\u5468\u56db,\u5468\u4e94,\u5468\u516d".split(","),dayNamesShort:"\u65e5,\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d".split(","),dayNamesMin:"\u65e5,\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d".split(","),dayText:"\u65e5",hourText:"\u65f6",minuteText:"\u5206",monthNames:"1\u6708,2\u6708,3\u6708,4\u6708,5\u6708,6\u6708,7\u6708,8\u6708,9\u6708,10\u6708,11\u6708,12\u6708".split(","),
- monthNamesShort:"\u4e00,\u4e8c,\u4e09,\u56db,\u4e94,\u516d,\u4e03,\u516b,\u4e5d,\u5341,\u5341\u4e00,\u5341\u4e8c".split(","),monthText:"\u6708",secText:"\u79d2",timeFormat:"HH:ii",timeWheels:"HHii",yearText:"\u5e74",nowText:"\u5f53\u524d",pmText:"\u4e0b\u5348",amText:"\u4e0a\u5348",dateText:"\u65e5",timeText:"\u65f6\u95f4",calendarText:"\u65e5\u5386",closeText:"\u5173\u95ed",fromText:"\u5f00\u59cb\u65f6\u95f4",toText:"\u7ed3\u675f\u65f6\u95f4",wholeText:"\u5408\u8ba1",fractionText:"\u5206\u6570",
- unitText:"\u5355\u4f4d",labels:"\u5e74,\u6708,\u65e5,\u5c0f\u65f6,\u5206\u949f,\u79d2,".split(","),labelsShort:"\u5e74,\u6708,\u65e5,\u70b9,\u5206,\u79d2,".split(","),startText:"\u5f00\u59cb",stopText:"\u505c\u6b62",resetText:"\u91cd\u7f6e",lapText:"\u5708",hideText:"\u9690\u85cf",backText:"\u80cc\u90e8",undoText:"\u590d\u539f",offText:"\u5173\u95ed",onText:"\u5f00\u542f",decimalSeparator:",",thousandsSeparator:" "}})(jQuery);(function(a,t,j,u){var f,d,y=a.mobiscroll,n=y.util,m=n.jsPrefix,O=n.has3d,b=n.constrain,c=n.isString,da=n.isOldAndroid,n=/(iphone|ipod|ipad).* os 8_/i.test(navigator.userAgent),Q=function(){},ca=function(a){a.preventDefault()};y.classes.Frame=function(n,G,g){function q(b){p&&p.removeClass("dwb-a");p=a(this);!p.hasClass("dwb-d")&&!p.hasClass("dwb-nhl")&&p.addClass("dwb-a");if("mousedown"===b.type)a(j).on("mouseup",aa);else if("pointerdown"===b.type)a(j).on("pointerup",aa)}function aa(b){p&&(p.removeClass("dwb-a"),
- p=null);"mouseup"===b.type?a(j).off("mouseup",aa):"pointerup"===b.type&&a(j).off("pointerup",aa)}function k(a){13==a.keyCode?l.select():27==a.keyCode&&l.cancel()}function i(b){var c,e,s,g=x.focusOnClose;l._markupRemove();D.remove();f&&!b&&setTimeout(function(){if(g===u||!0===g){d=!0;c=f[0];s=c.type;e=c.value;try{c.type="button"}catch(b){}f.focus();c.type=s;c.value=e}else g&&a(g).focus()},200);l._isVisible=!1;T("onHide",[])}function N(a){clearTimeout(oa[a.type]);oa[a.type]=setTimeout(function(){var b=
- "scroll"==a.type;(!b||Z)&&l.position(!b)},200)}function F(a){a.target.nodeType&&!e[0].contains(a.target)&&e.focus()}function r(){a(this).off("blur",r);setTimeout(function(){l.position()},100)}function h(b,c){b&&b();a(j.activeElement).is("input,textarea")&&a(j.activeElement).blur();!1!==l.show()&&(f=c,setTimeout(function(){d=!1},300))}function A(){l._fillValue();T("onSelect",[l._value])}function B(){T("onCancel",[l._value])}function ja(){l.setVal(null,!0)}var ea,ba,v,D,w,W,e,E,R,ga,p,Y,T,z,S,K,P,$,
- H,x,Z,ha,fa,la,l=this,M=a(n),ia=[],oa={};y.classes.Base.call(this,n,G,!0);l.position=function(c){var g,d,s,i,J,k,X,q,h,f,v=0,m=0;h={};var w=Math.min(E[0].innerWidth||E.innerWidth(),W.width()),n=E[0].innerHeight||E.innerHeight();J=a(j.activeElement);if(J.is("input,textarea")&&!/(button|submit|checkbox|radio)/.test(J.attr("type")))J.on("blur",r);else if(!(fa===w&&la===n&&c||H))if((l._isFullScreen||/top|bottom/.test(x.display))&&e.width(w),!1!==T("onPosition",[D,w,n])&&S){d=E.scrollLeft();c=E.scrollTop();
- i=x.anchor===u?M:a(x.anchor);l._isLiquid&&"liquid"!==x.layout&&(400>w?D.addClass("dw-liq"):D.removeClass("dw-liq"));!l._isFullScreen&&/modal|bubble/.test(x.display)&&(R.width(""),a(".mbsc-w-p",D).each(function(){g=a(this).outerWidth(!0);v+=g;m=g>m?g:m}),g=v>w?m:v,R.width(g+1).css("white-space",v>w?"":"nowrap"));K=e.outerWidth();P=e.outerHeight(!0);Z=P<=n&&K<=w;(l.scrollLock=Z)?ba.addClass("mbsc-fr-lock"):ba.removeClass("mbsc-fr-lock");"modal"==x.display?(d=Math.max(0,d+(w-K)/2),s=c+(n-P)/2):"bubble"==
- x.display?(f=fa!==w,q=a(".dw-arrw-i",D),s=i.offset(),k=Math.abs(ba.offset().top-s.top),X=Math.abs(ba.offset().left-s.left),J=i.outerWidth(),i=i.outerHeight(),d=b(X-(e.outerWidth(!0)-J)/2,d+3,d+w-K-3),s=k-P,s<c||k>c+n?(e.removeClass("dw-bubble-top").addClass("dw-bubble-bottom"),s=k+i):e.removeClass("dw-bubble-bottom").addClass("dw-bubble-top"),q=q.outerWidth(),J=b(X+J/2-(d+(K-q)/2),0,q),a(".dw-arr",D).css({left:J})):"top"==x.display?s=c:"bottom"==x.display&&(s=c+n-P);s=0>s?0:s;h.top=s;h.left=d;e.css(h);
- W.height(0);h=Math.max(s+P,"body"==x.context?a(j).height():ba[0].scrollHeight);W.css({height:h});if(f&&(s+P>c+n||k>c+n))H=!0,setTimeout(function(){H=false},300),E.scrollTop(Math.min(k,s+P-n,h-n));fa=w;la=n;a(".mbsc-comp",D).each(function(){var b=a(this).mobiscroll("getInst");b!==l&&b.position&&b.position()})}};l.attachShow=function(a,b){ia.push({readOnly:a.prop("readonly"),el:a});if("inline"!==x.display){if(ha&&a.is("input"))a.prop("readonly",!0).on("mousedown.dw",function(a){a.preventDefault()});
- if(x.showOnFocus)a.on("focus.dw",function(){d||h(b,a)});x.showOnTap&&(a.on("keydown.dw",function(c){if(32==c.keyCode||13==c.keyCode)c.preventDefault(),c.stopPropagation(),h(b,a)}),l.tap(a,function(){h(b,a)}))}};l.select=function(){S?l.hide(!1,"set",!1,A):A()};l.cancel=function(){S?l.hide(!1,"cancel",!1,B):A()};l.clear=function(){T("onClear",[D]);S&&l._isVisible&&!l.live?l.hide(!1,"clear",!1,ja):ja()};l.enable=function(){x.disabled=!1;l._isInput&&M.prop("disabled",!1)};l.disable=function(){x.disabled=
- !0;l._isInput&&M.prop("disabled",!0)};l.show=function(b,d){var g;if(!x.disabled&&!l._isVisible){l._readValue();if(!1===T("onBeforeShow",[]))return!1;Y=da?!1:x.animate;!1!==Y&&("top"==x.display&&(Y="slidedown"),"bottom"==x.display&&(Y="slideup"));g='<div lang="'+x.lang+'" class="mbsc-'+x.theme+(x.baseTheme?" mbsc-"+x.baseTheme:"")+" dw-"+x.display+" "+(x.cssClass||"")+(l._isLiquid?" dw-liq":"")+(da?" mbsc-old":"")+(z?"":" dw-nobtn")+'"><div class="dw-persp">'+(S?'<div class="dwo"></div>':"")+"<div"+
- (S?' role="dialog" tabindex="-1"':"")+' class="dw'+(x.rtl?" dw-rtl":" dw-ltr")+'">'+("bubble"===x.display?'<div class="dw-arrw"><div class="dw-arrw-i"><div class="dw-arr"></div></div></div>':"")+'<div class="dwwr"><div aria-live="assertive" class="dw-aria dw-hidden"></div>'+(x.headerText?'<div class="dwv">'+(c(x.headerText)?x.headerText:"")+"</div>":"")+'<div class="dwcc">';g+=l._generateContent();g+="</div>";z&&(g+='<div class="dwbc">',a.each(ga,function(a,b){b=c(b)?l.buttons[b]:b;if(b.handler===
- "set")b.parentClass="dwb-s";if(b.handler==="cancel")b.parentClass="dwb-c";g=g+("<div"+(x.btnWidth?' style="width:'+100/ga.length+'%"':"")+' class="dwbw '+(b.parentClass||"")+'"><div tabindex="0" role="button" class="dwb'+a+" dwb-e "+(b.cssClass===u?x.btnClass:b.cssClass)+(b.icon?" mbsc-ic mbsc-ic-"+b.icon:"")+'">'+(b.text||"")+"</div></div>")}),g+="</div>");g+="</div></div></div></div>";D=a(g);W=a(".dw-persp",D);w=a(".dwo",D);R=a(".dwwr",D);v=a(".dwv",D);e=a(".dw",D);ea=a(".dw-aria",D);l._markup=
- D;l._header=v;l._isVisible=!0;$="orientationchange resize";l._markupReady(D);T("onMarkupReady",[D]);if(S){a(t).on("keydown",k);if(x.scrollLock)D.on("touchmove mousewheel wheel",function(a){Z&&a.preventDefault()});"Moz"!==m&&a("input,select,button",ba).each(function(){this.disabled||a(this).addClass("dwtd").prop("disabled",true)});y.activeInstance&&y.activeInstance.hide();$+=" scroll";y.activeInstance=l;D.appendTo(ba);if(x.focusTrap)E.on("focusin",F);O&&Y&&!b&&D.addClass("dw-in dw-trans").on("webkitAnimationEnd animationend",
- function(){D.off("webkitAnimationEnd animationend").removeClass("dw-in dw-trans").find(".dw").removeClass("dw-"+Y);d||e.focus();l.ariaMessage(x.ariaMessage)}).find(".dw").addClass("dw-"+Y)}else M.is("div")&&!l._hasContent?M.html(D):D.insertAfter(M);l._markupInserted(D);T("onMarkupInserted",[D]);l.position();E.on($,N);D.on("selectstart mousedown",ca).on("click",".dwb-e",ca).on("keydown",".dwb-e",function(b){if(b.keyCode==32){b.preventDefault();b.stopPropagation();a(this).click()}}).on("keydown",function(b){if(b.keyCode==
- 32)b.preventDefault();else if(b.keyCode==9&&S&&x.focusTrap){var c=D.find('[tabindex="0"]').filter(function(){return this.offsetWidth>0||this.offsetHeight>0}),J=c.index(a(":focus",D)),e=c.length-1,g=0;if(b.shiftKey){e=0;g=-1}if(J===e){c.eq(g).focus();b.preventDefault()}}});a("input,select,textarea",D).on("selectstart mousedown",function(a){a.stopPropagation()}).on("keydown",function(a){a.keyCode==32&&a.stopPropagation()});a.each(ga,function(b,e){l.tap(a(".dwb"+b,D),function(a){e=c(e)?l.buttons[e]:
- e;(c(e.handler)?l.handlers[e.handler]:e.handler).call(this,a,l)},true)});x.closeOnOverlay&&l.tap(w,function(){l.cancel()});S&&!Y&&(d||e.focus(),l.ariaMessage(x.ariaMessage));D.on("touchstart mousedown pointerdown",".dwb-e",q).on("touchend",".dwb-e",aa);l._attachEvents(D);T("onShow",[D,l._tempValue])}};l.hide=function(b,c,e,g){if(!l._isVisible||!e&&!l._isValid&&"set"==c||!e&&!1===T("onBeforeClose",[l._tempValue,c]))return!1;D&&("Moz"!==m&&a(".dwtd",ba).each(function(){a(this).prop("disabled",!1).removeClass("dwtd")}),
- O&&S&&Y&&!b&&!D.hasClass("dw-trans")?D.addClass("dw-out dw-trans").on("webkitAnimationEnd animationend",function(){i(b)}).find(".dw").addClass("dw-"+Y):i(b),E.off($,N).off("focusin",F));S&&(ba.removeClass("mbsc-fr-lock"),a(t).off("keydown",k),delete y.activeInstance);g&&g();T("onClosed",[l._value])};l.ariaMessage=function(a){ea.html("");setTimeout(function(){ea.html(a)},100)};l.isVisible=function(){return l._isVisible};l.setVal=Q;l.getVal=Q;l._generateContent=Q;l._attachEvents=Q;l._readValue=Q;l._fillValue=
- Q;l._markupReady=Q;l._markupInserted=Q;l._markupRemove=Q;l._processSettings=Q;l._presetLoad=function(a){a.buttons=a.buttons||("inline"!==a.display?["set","cancel"]:[]);a.headerText=a.headerText===u?"inline"!==a.display?"{value}":!1:a.headerText};l.destroy=function(){l.hide(!0,!1,!0);a.each(ia,function(a,b){b.el.off(".dw").prop("readonly",b.readOnly)});l._destroy()};l.init=function(b){b.onClose&&(b.onBeforeClose=b.onClose);l._init(b);l._isLiquid="liquid"===(x.layout||(/top|bottom/.test(x.display)?
- "liquid":""));l._processSettings();M.off(".dw");ga=x.buttons||[];S="inline"!==x.display;ha=x.showOnFocus||x.showOnTap;l._window=E=a("body"==x.context?t:x.context);l._context=ba=a(x.context);l.live=!0;a.each(ga,function(a,b){if(b=="ok"||b=="set"||b.handler=="set")return l.live=false});l.buttons.set={text:x.setText,handler:"set"};l.buttons.cancel={text:l.live?x.closeText:x.cancelText,handler:"cancel"};l.buttons.clear={text:x.clearText,handler:"clear"};l._isInput=M.is("input");z=0<ga.length;l._isVisible&&
- l.hide(!0,!1,!0);T("onInit",[]);S?(l._readValue(),l._hasContent||l.attachShow(M)):l.show();M.on("change.dw",function(){l._preventChange||l.setVal(M.val(),true,false);l._preventChange=false})};l.buttons={};l.handlers={set:l.select,cancel:l.cancel,clear:l.clear};l._value=null;l._isValid=!0;l._isVisible=!1;x=l.settings;T=l.trigger;g||l.init(G)};y.classes.Frame.prototype._defaults={lang:"en",setText:"Set",selectedText:"{count} selected",closeText:"Close",cancelText:"Cancel",clearText:"Clear",disabled:!1,
- closeOnOverlay:!0,showOnFocus:!1,showOnTap:!0,display:"modal",scrollLock:!0,tap:!0,btnClass:"dwb",btnWidth:!0,focusTrap:!0,focusOnClose:!n};y.themes.frame.mobiscroll={rows:5,showLabel:!1,headerText:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:1,dateOrder:"MMddyy",weekDays:"min",checkIcon:"ion-ios7-checkmark-empty",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5"};
- a(t).on("focus",function(){f&&(d=!0)})})(jQuery,window,document);(function(a){var t;a.mobiscroll.themes.frame.jqm={jqmBorder:"a",jqmHeader:"b",jqmWheel:"d",jqmLine:"b",jqmClickPick:"c",jqmSet:"b",jqmCancel:"c",disabledClass:"ui-disabled",activeClass:"ui-btn-active",activeTabInnerClass:"ui-btn-active",btnCalPrevClass:"",btnCalNextClass:"",selectedLineHeight:!0,selectedLineBorder:1,onThemeLoad:function(j,u){var f=u.jqmBody||"c",d=u.jqmEventText||"b",y=u.jqmEventBubble||"a";t=a.mobile&&a.mobile.version&&a.mobile.version.match(/1\.4/);u.jqmBody||(u.jqmBody=t?"a":"c");
- u.dayClass="ui-body-a ui-body-"+f;u.innerDayClass="ui-state-default ui-btn ui-btn-up-"+f;u.calendarClass="ui-body-a ui-body-"+f;u.weekNrClass="ui-body-a ui-body-"+f;u.eventTextClass="ui-btn-up-"+d;u.eventBubbleClass="ui-body-"+y},onEventBubbleShow:function(j,u){a(".dw-cal-event-list",u).attr("data-role","listview");u.page().trigger("create")},onMarkupInserted:function(j,u){var f=u.settings;t&&(j.addClass("mbsc-jqm14"),a(".mbsc-np-btn, .dwwb, .dw-cal-sc-m-cell .dw-i",j).addClass("ui-btn"),a(".dwbc .dwb, .dw-dr",
- j).addClass("ui-btn ui-mini ui-corner-all"),a(".dw-cal-prev .dw-cal-btn-txt",j).addClass("ui-btn ui-icon-arrow-l ui-btn-icon-notext ui-shadow ui-corner-all"),a(".dw-cal-next .dw-cal-btn-txt",j).addClass("ui-btn ui-icon-arrow-r ui-btn-icon-notext ui-shadow ui-corner-all"));a(".dw",j).removeClass("dwbg").addClass("ui-selectmenu ui-overlay-shadow ui-corner-all ui-body-"+f.jqmBorder);a(".dwbc .dwb",j).attr("data-role","button").attr("data-mini","true").attr("data-theme",f.jqmCancel);a(".dwb-s .dwb",j).addClass("ui-btn-"+
- f.jqmSet).attr("data-theme",f.jqmSet);a(".dwwb",j).attr("data-role","button").attr("data-theme",f.jqmClickPick);a(".dwv",j).addClass("ui-header ui-bar-"+f.jqmHeader);a(".dwwr",j).addClass("ui-corner-all ui-body-"+f.jqmBody);a(".dwwl",j).addClass("ui-body-"+f.jqmWheel);a(".dwwol",j).addClass("ui-body-"+f.jqmLine);a(".dwl",j).addClass("ui-body-"+f.jqmBody);a(".dw-cal-tabs",j).attr("data-role","navbar");a(".dw-cal-prev .dw-cal-btn-txt",j).attr("data-role","button").attr("data-icon","arrow-l").attr("data-iconpos",
- "notext");a(".dw-cal-next .dw-cal-btn-txt",j).attr("data-role","button").attr("data-icon","arrow-r").attr("data-iconpos","notext");a(".dw-cal-events",j).attr("data-role","page");a(".dw-dr",j).attr("data-role","button").attr("data-mini","true");a(".mbsc-np-btn",j).attr("data-role","button").attr("data-corners","false");j.trigger("create")}}})(jQuery);(function(a,t,j,u){var f,d=a.extend,y=a.mobiscroll,n=y.classes,m=y.util,O=m.prefix,b=m.jsPrefix,c=m.has3d,da=m.getCoord,Q=m.testTouch,ca=m.vibrate,V=1,G=function(){},g=t.requestAnimationFrame||function(a){a()},q=t.cancelAnimationFrame||G,aa="webkitAnimationEnd animationend",k="transparent";n.ListView=function(i,y){function F(){Jb=Kb=!1;ec=J=0;fc=new Date;bb=ma.width();Db=x(ma);ua=Db.index(L);Ea=L.outerHeight();Ma=L[0].offsetTop;Ca=ub[L.attr("data-type")||"defaults"];Eb=Ca.stages}function r(c){"touchstart"===
- c.type&&(Lb=!0,clearTimeout(gc));if(Q(c,this)&&!ka&&!jb&&!f&&!Mb&&a.mobiscroll.running&&(qa=ka=!0,Nb=da(c,"X"),Ob=da(c,"Y"),Ga=na=0,L=a(this),F(),Wb=U.onItemTap||Ca.tap||L.hasClass("mbsc-lv-parent")||L.hasClass("mbsc-lv-back"),Na.offset(),pb=L.offset().top,Wb&&(sa=setTimeout(function(){L.addClass("mbsc-lv-item-active");Aa("onItemActivate",[L,c])},120)),I.sortable&&!L.hasClass("mbsc-lv-back")&&((I.sortable.group||(Xb=L.nextUntil(".mbsc-lv-gr-title").filter(".mbsc-lv-item"),Yb=L.prevUntil(".mbsc-lv-gr-title").filter(".mbsc-lv-item")),
- qb=(!I.sortable.group?Yb.length?Yb.eq(-1):L:ma.children("li").eq(0))[0].offsetTop-Ma,kb=(!I.sortable.group?Xb.length?Xb.eq(-1):L:ma.children("li").eq(-1))[0].offsetTop-Ma,I.sortable.handle)?a(c.target).hasClass("mbsc-lv-handle")&&(clearTimeout(sa),"Moz"===b?(c.preventDefault(),ba()):Pb=setTimeout(function(){ba()},100)):Pb=setTimeout(function(){if(U.fillAnimation){xa.appendTo(L);xa[0].style[b+"Animation"]="mbsc-lv-fill "+(U.sortDelay-100)+"ms linear"}clearTimeout(cb);clearTimeout(sa);qa=false;Pb=setTimeout(function(){xa[0].style[b+
- "Animation"]="";ba()},U.sortDelay-80)},80)),"mousedown"==c.type))a(j).on("mousemove",h).on("mouseup",A)}function h(a){var b=!1,c=!0;if(ka)if(rb=da(a,"X"),Fb=da(a,"Y"),na=rb-Nb,Ga=Fb-Ob,clearTimeout(cb),!Xa&&!lb&&!vb&&!L.hasClass("mbsc-lv-back")&&(10<Math.abs(Ga)?(vb=!0,a.type="mousemove"==a.type?"mouseup":"touchend",A(a),clearTimeout(sa)):7<Math.abs(na)?B():"touchmove"===a.type&&(cb=setTimeout(function(){a.type="touchend";A(a)},300))),lb)a.preventDefault(),J=100*(na/bb),ja();else if(Xa){a.preventDefault();
- var e,g=Oa.scrollTop(),d=Math.max(qb,Math.min(Ga+wb,kb)),s=Wa?pb-hc+g-wb:pb;Zb+g<s+d+Ea?(Oa.scrollTop(s+d-Zb+Ea),e=!0):s+d<g&&(Oa.scrollTop(s+d),e=!0);e&&(e=Wa?Oa.scrollTop()-g:0,wb+=e);if(mb&&(I.sortable.multiLevel&&va.hasClass("mbsc-lv-parent")?Ma+Ea/4+d>mb?b=!0:Ma+Ea-Ea/4+d>mb&&(Ia=va.addClass("mbsc-lv-item-hl"),c=!1):Ma+Ea/2+d>mb&&(va.hasClass("mbsc-lv-back")?I.sortable.multiLevel&&(pa=va.addClass("mbsc-lv-item-hl"),c=!1):b=!0),b))db.insertAfter(va),Pa=va,va=ha(va,"next"),nb=mb,mb=va.length&&
- va[0].offsetTop,Ba++;if(!b&&nb&&(I.sortable.multiLevel&&Pa.hasClass("mbsc-lv-parent")?Ma+Ea-Ea/4+d<nb?b=!0:Ma+Ea/4+d<nb&&(Ia=Pa.addClass("mbsc-lv-item-hl"),c=!1):Ma+Ea/2+d<nb&&(Pa.hasClass("mbsc-lv-back")?I.sortable.multiLevel&&(pa=Pa.addClass("mbsc-lv-item-hl"),c=!1):b=!0),b))db.insertBefore(Pa),va=Pa,Pa=ha(Pa,"prev"),mb=nb,nb=Pa.length&&Pa[0].offsetTop+Pa.outerHeight(),Ba--;if(c&&(Ia&&(Ia.removeClass("mbsc-lv-item-hl"),Ia=!1),pa))pa.removeClass("mbsc-lv-item-hl"),pa=!1;b&&Aa("onSortChange",[L,Ba]);
- p(L,d);Aa("onSort",[L,Ba])}else(5<Math.abs(na)||5<Math.abs(Ga))&&Y()}function A(b){var c,e;if(ka){ka=!1;Y();"mouseup"==b.type&&a(j).off("mousemove",h).off("mouseup",A);vb||(gc=setTimeout(function(){Lb=!1},300));if(lb||vb||Xa)Jb=!0;lb?ea():Xa?(c=ma,Ia?(K(L.detach()),b=eb[Ia.attr("data-ref")],Ba=x(b.child).length,Ia.removeClass("mbsc-lv-item-hl"),U.navigateOnDrop?ia(Ia,function(){I.add(null,L,null,null,Ia,!0);l(L);v(L,ua,c,!0)}):(I.add(null,L,null,null,Ia,!0),v(L,ua,c,!0))):pa?(K(L.detach()),b=eb[pa.attr("data-back")],
- Ba=x(b.parent).index(b.item)+1,pa.removeClass("mbsc-lv-item-hl"),U.navigateOnDrop?ia(pa,function(){I.add(null,L,Ba,null,ma,!0);l(L);v(L,ua,c,!0)}):(I.add(null,L,Ba,null,b.parent,!0),v(L,ua,c,!0))):(b=db[0].offsetTop-Ma,p(L,b,6*Math.abs(b-Math.max(qb,Math.min(Ga+wb,kb))),function(){K(L);L.insertBefore(db);v(L,ua,c,Ba!==ua)})),Xa=!1):!vb&&5>Math.abs(na)&&5>Math.abs(Ga)&&(Ca.tap&&(e=Ca.tap.call(Ra,L,ua,b,I)),Wb&&("touchend"===b.type&&m.preventClick(),L.addClass("mbsc-lv-item-active"),Aa("onItemActivate",
- [L,b])),e=Aa("onItemTap",[L,ua,b]),!1!==e&&ia(L));clearTimeout(sa);setTimeout(function(){L.removeClass("mbsc-lv-item-active");Aa("onItemDeactivate",[L])},100);vb=!1;Ja=null}}function B(){if(lb=P(Ca.swipe,[L,ua,0<na?"right":"left",I]))Y(),clearTimeout(sa),Ca.actions?(s=la(Ca),Qa.html(Ca.icons).show().children().css("width",s+"%"),Qa.find(".mbsc-lv-multi-ic-right").css("margin-left",100-s+"%"),Fa.hide(),a(".mbsc-lv-ic-m",Da).removeClass("mbsc-lv-ic-disabled"),a(Ca.leftMenu).each(w),a(Ca.rightMenu).each(w)):
- (Fa.show(),Qa.hide(),Sa=Ca.start+(0<na?0:1),sb=Eb[Sa-1],tb=Eb[Sa]),L.addClass("mbsc-lv-item-swiping").removeClass("mbsc-lv-item-active"),Qb.css("line-height",Ea+"px"),Da.css({top:Ma,height:Ea,backgroundColor:(0<na?Ca.right:Ca.left).color||k}).addClass("mbsc-lv-stage-c-v").appendTo(ma),U.iconSlide&&L.append(Fa),Aa("onSlideStart",[L,ua])}function ja(){var a=!1;if(!Rb){if(Ca.actions)Da.attr("class","mbsc-lv-stage-c-v mbsc-lv-stage-c mbsc-lv-"+(0>J?"right":"left"));else if(sb&&J<=sb.percent?(Sa--,tb=
- sb,sb=Eb[Sa],a=!0):tb&&J>=tb.percent&&(Sa++,sb=tb,tb=Eb[Sa],a=!0),a)if(Ja=0<J?sb:tb)T(Ja,U.iconSlide),Aa("onStageChange",[L,ua,Ja]);xb||(Rb=!0,ic=g(E))}}function ea(b){var c,g,d=!1;q(ic);Rb=!1;xb||E();if(Ca.actions)10<Math.abs(J)&&s&&(ga(L,0>J?-s:s,200),f=d=!0,X=L,La=ua,a(j).on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.preventDefault();R(L,!0,b)}));else if(U.quickSwipe&&!xb&&(g=new Date-fc,c=300>g&&-50>na,g=300>g&&50<na,c?(Kb=!0,Ja=Ca.left,T(Ja,U.iconSlide)):g&&(Kb=!0,Ja=Ca.right,
- T(Ja,U.iconSlide))),Ja&&Ja.action)Ta=P(Ja.disabled,[L,ua,I]),Ta||(d=!0,(f=xb||P(Ja.confirm,[L,ua,I]))?(ga(L,100*(0>J?-1:1)*Fa.outerWidth(!0)/bb,200,!0),e(Ja,L,ua,!1,b)):W(Ja,L,ua,b));d||R(L,!0,b);lb=!1}function ba(){Xa=!0;pa=Ia=!1;wb=0;Ba=ua;U.vibrate&&ca();va=ha(L,"next");mb=va.length&&va[0].offsetTop;Pa=ha(L,"prev");nb=Pa.length&&Pa[0].offsetTop+Pa.outerHeight();db.height(Ea).insertAfter(L);L.css({top:Ma}).addClass("mbsc-lv-item-dragging").removeClass("mbsc-lv-item-active").appendTo(Ua);Aa("onSortStart",
- [L,Ba])}function v(a,b,c,e){a.removeClass("mbsc-lv-item-dragging");db.remove();Aa("onSortStop",[a,Ba]);U.vibrate&&ca();e&&(I.addUndoAction(function(e){I.move(a,b,null,e,c,!0)},!0),Aa("onSortUpdate",[a,Ba]))}function D(){Lb||(clearTimeout(Gb),f&&a(j).trigger("touchstart"),yb&&(I.close(Ha,Ya),yb=!1,Ha=null))}function w(b,c){P(c.disabled,[L,ua,I])&&a(".mbsc-ic-"+c.icon,Da).addClass("mbsc-lv-ic-disabled")}function W(b,c,g,J){var d,s={icon:"undo2",text:U.undoText,color:"#b1b1b1",action:function(){I.undo()}};
- b.undo&&(I.startActionTrack(),a.isFunction(b.undo)&&I.addUndoAction(function(){b.undo.call(Ra,c,I,g)}),Sb=c.attr("data-ref"));d=b.action.call(Ra,c,I,g);b.undo?(I.endActionTrack(),!1!==d&&ga(c,0>+c.attr("data-pos")?-100:100,200),db.height(Ea).insertAfter(c),c.css("top",Ma).addClass("mbsc-lv-item-undo"),Qa.hide(),Fa.show(),Da.append(Fa),T(s),e(s,c,g,!0,J)):R(c,d,J)}function e(b,c,e,g,J){var d,s;f=!0;a(j).off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.preventDefault();
- g&&S(c);R(c,!0,J)});if(!Za)Fa.off(".mbsc-lv-conf").on("touchstart.mbsc-lv-conf mousedown.mbsc-lv-conf",function(a){a.stopPropagation();d=da(a,"X");s=da(a,"Y")}).on("touchend.mbsc-lv-conf mouseup.mbsc-lv-conf",function(a){a.preventDefault();"touchend"===a.type&&m.preventClick();10>Math.abs(da(a,"X")-d)&&10>Math.abs(da(a,"Y")-s)&&(W(b,c,e,J),g&&(Tb=null,S(c)))})}function E(){ga(L,ec+100*na/bb);Rb=!1}function R(b,c,e){a(j).off(".mbsc-lv-conf");Fa.off(".mbsc-lv-conf");!1!==c?ga(b,0,"0"!==b.attr("data-pos")?
- 200:0,!1,function(){z(b,e);K(b)}):z(b,e);f=!1}function ga(a,e,g,d,s){e=Math.max("right"==lb?0:-100,Math.min(e,"left"==lb?0:100));$a=a[0].style;a.attr("data-pos",e);c?($a[b+"Transform"]="translate3d("+(d?bb*e/100+"px":e+"%")+",0,0)",$a[b+"Transition"]=O+"transform "+(g||0)+"ms"):$a.left=e+"%";s&&(jb++,setTimeout(function(){s();jb--},g));J=e}function p(a,e,g,J){e=Math.max(qb,Math.min(e,kb));$a=a[0].style;c?($a[b+"Transform"]="translate3d(0,"+e+"px,0)",$a[b+"Transition"]=O+"transform "+(g||0)+"ms ease-out"):
- $a.top=Ma+e+"px";J&&(jb++,setTimeout(function(){J();jb--},g))}function Y(){clearTimeout(Pb);!qa&&I.sortable&&U.fillAnimation&&(qa=!0,xa.remove())}function T(a,b){var c=P(a.text,[L,ua,I])||"";P(a.disabled,[L,ua,I])?Da.addClass("mbsc-lv-ic-disabled"):Da.removeClass("mbsc-lv-ic-disabled");Da.css("background-color",a.color||(0===a.percent?(0<J?Ca.right:Ca.left).color||k:k));Fa.attr("class","mbsc-lv-ic-c mbsc-lv-ic-"+(b?"move-":"")+(0>J?"right":"left"));ra.attr("class"," mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-"+
- (a.icon||"none"));Qb.attr("class","mbsc-lv-ic-text"+(a.icon?"":" mbsc-lv-ic-text-only")+(c?"":" mbsc-lv-ic-only")).html(c||" ");U.animateIcons&&(Kb?ra.addClass("mbsc-lv-ic-v"):setTimeout(function(){ra.addClass("mbsc-lv-ic-a")},10))}function z(a,b){ka||(ra.attr("class","mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"),Da.attr("style","").removeClass("mbsc-lv-stage-c-v"),Qb.html(""));Da.removeClass("mbsc-lv-left mbsc-lv-right");a&&(Aa("onSlideEnd",[a,ua]),b&&b())}function S(a){a.css("top","").removeClass("mbsc-lv-item-undo");
- Tb?I.animate(db,"collapse",function(){db.remove()}):db.remove();z();Tb=Sb=null}function K(a){$a=a[0].style;$a[b+"Transform"]="";$a[b+"Transition"]="";$a.top="";a.removeClass("mbsc-lv-item-swiping")}function P(b,c){return a.isFunction(b)?b.apply(this,c):b}function $(b){var c;b.attr("data-ref")||(c=V++,b.attr("data-ref",c),eb[c]={item:b,child:b.children("ul,ol"),parent:b.parent(),ref:b.parent()[0]===Ra?null:b.parent().parent().attr("data-ref")});b.addClass("mbsc-lv-item");I.sortable.handle&&"list-divider"!=
- b.attr("data-role")&&!b.children(".mbsc-lv-handle-c").length&&b.append(ob);if(U.enhance&&!b.hasClass("mbsc-lv-item-enhanced")){c=b.attr("data-icon");var e=b.find("img").eq(0).addClass("mbsc-lv-img");e.is(":first-child")?b.addClass("mbsc-lv-img-"+(U.rtl?"right":"left")):e.length&&b.addClass("mbsc-lv-img-"+(U.rtl?"left":"right"));b.addClass("mbsc-lv-item-enhanced").children().each(function(b,c){c=a(c);c.is("p, h1, h2, h3, h4, h5, h6")&&c.addClass("mbsc-lv-txt")});c&&b.addClass("mbsc-lv-item-ic-"+(b.attr("data-icon-align")||
- (U.rtl?"right":"left"))).append('<div class="mbsc-lv-item-ic mbsc-ic mbsc-ic-'+c+'"></div')}b.append()}function H(b){a("li",b).not(".mbsc-lv-item").each(function(){$(a(this))});a('li[data-role="list-divider"]',b).removeClass("mbsc-lv-item").addClass("mbsc-lv-gr-title");a("ul,ol",b).not(".mbsc-lv").addClass("mbsc-lv").prepend(Ka).parent().addClass("mbsc-lv-parent").prepend(ab);a(".mbsc-lv-back",b).each(function(){a(this).attr("data-back",a(this).parent().parent().attr("data-ref"))})}
- function x(a){return a.children("li").not(".mbsc-lv-back").not(".mbsc-lv-removed").not(".mbsc-lv-ph")}function Z(b){"object"!==typeof b&&(b=a('li[data-id="'+b+'"]',ya));return b}function ha(a,b){for(a=a[b]();a.length&&(!a.hasClass("mbsc-lv-item")||a.hasClass("mbsc-lv-ph")||a.hasClass("mbsc-lv-item-dragging"));){if(!I.sortable.group&&a.hasClass("mbsc-lv-gr-title"))return!1;a=a[b]()}return a}function fa(a){return m.isNumeric(a)?a+"":0}function la(a){return+(0>na?fa((a.actionsWidth||0).right)||fa(a.actionsWidth)||
- fa(U.actionsWidth.right)||fa(U.actionsWidth):fa((a.actionsWidth||0).left)||fa(a.actionsWidth)||fa(U.actionsWidth.left)||fa(U.actionsWidth))}function l(a){a&&Oa.scrollTop(Wa?a.offset().top-Oa.offset().top+Oa.scrollTop():a.offset().top)}function M(a,b,c,e){var g=b.parent(),J=b.prev(),e=e||G;J[0]===Fa[0]&&(J=Fa.prev());ma[0]!==b[0]?(Aa("onNavStart",[zb,a,b]),$b.prepend(b.addClass("mbsc-lv-v mbsc-lv-sl-new")),l(ya),oa($b,"mbsc-lv-sl-"+a,function(){ma.removeClass("mbsc-lv-sl-curr");b.removeClass("mbsc-lv-sl-new").addClass("mbsc-lv-sl-curr");
- hb&&hb.length?ma.removeClass("mbsc-lv-v").insertAfter(hb):ib.append(ma.removeClass("mbsc-lv-v"));hb=J;ib=g;ma=b;l(c);e.call(Ra,c);Aa("onNavEnd",[zb,a,b])})):(l(c),e.call(Ra,c))}function ia(a,b){jb||(a.hasClass("mbsc-lv-parent")?(zb++,M("r",eb[a.attr("data-ref")].child,null,b)):a.hasClass("mbsc-lv-back")&&(zb--,M("l",eb[a.attr("data-back")].parent,eb[a.attr("data-back")].item,b)))}function oa(a,b,e){function g(){clearTimeout(J);jb--;a.off(aa,g).removeClass(b);e.call(Ra,a)}var J,e=e||G;c&&U.animation&&
- "mbsc-lv-item-none"!==b?(jb++,a.on(aa,g).addClass(b),J=setTimeout(g,500)):e.call(Ra,a)}function C(a,b){var c,e=a.attr("data-ref");c=ac[e]=ac[e]||[];b&&c.push(b);a.attr("data-action")||(b=c.shift(),a.attr("data-action",1),b(function(){a.removeAttr("data-action");c.length?C(a):delete ac[e]}))}function za(b,c,e){var g,J;b&&b.length&&(g=100/(b.length+2),a.each(b,function(a,s){s.key===u&&(s.key=bc++);s.percent===u&&(s.percent=c*g*(a+1),e&&(J=d({},s),J.key=bc++,J.percent=-g*(a+1),b.push(J),Ub[J.key]=J));
- Ub[s.key]=s}))}var ka,s,sa,J,qa,X,La,ya,Ba,ta,ma,hb,ib,Db,Ja,Sa,Va,Za,Ta,na,Ga,Ia,pa,Xa,Ua,cb,rb,Fb,Aa,xa,fb,wa,Ab,Bb,Vb,o,Wa,ob,Hb,Ha,yb,Ya,gb,Gb,Ka,ab,ra,Fa,Da,bb,L,Ea,ua,pb,kb,qb,Qa,va,mb,tb,Xb,Jb,Lb,gc,Yb,db,Pa,nb,sb,Kb,ic,Rb,U,vb,xb,$b,bc,Eb,ec,fc,Nb,Ob,$a,lb,cc,jc,Wb,Qb,Pb,Ca,ub,Sb,Tb,Oa,Zb,wb,hc,I=this,Ra=i,Na=a(Ra),jb=0,zb=0,Ma=0,Ub={},ac={},eb={};n.Base.call(this,i,y,!0);I.animate=function(a,b,c){oa(a,"mbsc-lv-item-"+b,c)};I.add=function(b,c,e,g,J,d){var s,i,l,k,h,q,X="",f=J===u?Na:Z(J),qa=f,v="object"!==typeof c?a('<li data-ref="'+V++ +'" data-id="'+b+'">'+c+"</li>"):c,m=0>v.attr("data-pos")?"left":"right",w=v.attr("data-ref"),g=g||G;w||(w=V++,v.addClass("mbsc-lv-item").attr("data-ref",w));$(v);d||I.addUndoAction(function(a){k?
- I.navigate(f,function(){qa.remove();f.removeClass("mbsc-lv-parent").children(".mbsc-lv-arr").remove();h.child=f.children("ul,ol");I.remove(v,null,a,true)}):I.remove(v,null,a,true)},!0);C(v,function(b){K(v.css("top","").removeClass("mbsc-lv-item-undo"));if(f.is("li")){q=f.attr("data-ref");if(!f.children("ul,ol").length){k=true;f.append("<ul></ul>")}}else q=f.children(".mbsc-lv-back").attr("data-back");if(h=eb[q])if(h.child.length)qa=h.child;else{f.addClass("mbsc-lv-parent").prepend(ab);qa=f.children("ul,ol").prepend(Ka).addClass("mbsc-lv");
- h.child=qa;a(".mbsc-lv-back",f).attr("data-back",q)}eb[w]={item:v,child:v.children("ul,ol"),parent:qa,ref:q};l=x(qa);i=l.length;if(e===u||e===null)e=i;d&&(X="mbsc-lv-item-new-"+(d?m:""));H(v.addClass(X));if(e!==false)if(i)e<i?v.insertBefore(l.eq(e)):v.insertAfter(l.eq(i-1));else{s=a(".mbsc-lv-back",qa);s.length?v.insertAfter(s):qa.append(v)}if(qa.hasClass("mbsc-lv-v"))I.animate(v.height(v.outerHeight()),d&&Sb===w?"none":"expand",function(a){I.animate(a.height(""),d?"add-"+m:"pop-in",function(a){g.call(Ra,
- a.removeClass(X));b()})});else{g.call(Ra,v.removeClass(X));b()}ya.trigger("mbsc-enhance",[{theme:U.theme,lang:U.lang}]);Aa("onItemAdd",[v])})};I.swipe=function(a,b,c,e,g){L=a=Z(a);Za=e;ka=xb=!0;c=c===u?300:c;na=0<b?1:-1;F();B();ga(a,b,c);clearTimeout(jc);clearInterval(cc);cc=setInterval(function(){J=100*(m.getPosition(a)/bb);ja()},10);jc=setTimeout(function(){clearInterval(cc);J=b;ja();ea(g);ka=xb=Za=!1},c)};I.openStage=function(a,b,c,e){Ub[b]&&I.swipe(a,Ub[b].percent,c,e)};I.openActions=function(a,
- b,c,e){var g=la(ub[a.attr("data-type")||"defaults"]);I.swipe(a,"left"==b?-g:g,c,e)};I.close=function(a,b){I.swipe(a,0,b)};I.remove=function(a,b,c,e){var g,J,c=c||G,a=Z(a);a.length&&(J=a.parent(),g=x(J).index(a),e||(a.attr("data-ref")===Sb&&(Tb=!0),I.addUndoAction(function(b){I.add(null,a,g,b,J,!0)},!0)),C(a,function(g){b=b||a.attr("data-pos")<0?"left":"right";if(J.hasClass("mbsc-lv-v"))I.animate(a.addClass("mbsc-lv-removed"),e?"pop-out":"remove-"+b,function(a){I.animate(a.height(a.outerHeight()),
- "collapse",function(a){K(a.height("").removeClass("mbsc-lv-removed").remove());c.call(Ra,a);g()})});else{a.remove();c.call(Ra,a);g()}Aa("onItemRemove",[a])}))};I.move=function(a,b,c,e,g,J){a=Z(a);J||I.startActionTrack();Da.append(Fa);I.remove(a,c,null,J);I.add(null,a,b,e,g,J);J||I.endActionTrack()};I.navigate=function(a,b){var c,e,a=Z(a);c=eb[a.attr("data-ref")];e=0;for(var g=eb[a.attr("data-ref")];g.ref;)e++,g=eb[g.ref];c&&(M(e>=zb?"r":"l",c.parent,a,b),zb=e)};I.init=function(b){var e=Na.find("ul,ol").length?
- "left":"right",g=0,d="",s="",i="";I._init(b);b=U.sort||U.sortable;"group"===b&&(b={group:!1,multiLevel:!0});!0===b&&(b={group:!0,multiLevel:!0,handle:U.sortHandle});b&&b.handle===u&&(b.handle=U.sortHandle);I.sortable=b||!1;d+='<div class="mbsc-lv-multi-c"></div><div class="mbsc-lv-ic-c"><div class="mbsc-lv-ic-s mbsc-lv-ic mbsc-ic mbsc-ic-none"></div><div class="mbsc-lv-ic-text"></div></div>';Na.addClass("mbsc-lv mbsc-lv-v mbsc-lv-root").show();Da=a('<div class="mbsc-lv-stage-c">'+d+"</div>");Fa=a(".mbsc-lv-ic-c",
- Da);Qa=a(".mbsc-lv-multi-c",Da);ra=a(".mbsc-lv-ic-s",Da);Qb=a(".mbsc-lv-ic-text",Da);db=a('<li class="mbsc-lv-item mbsc-lv-ph"></li>');xa=a('<div class="mbsc-lv-fill-item"></div>');ya=a('<div class="mbsc-lv-cont mbsc-lv-'+U.theme+(U.baseTheme?" mbsc-lv-"+U.baseTheme:"")+(U.animateIcons?" mbsc-lv-ic-anim":"")+(c?"":" mbsc-lv-no3d")+(U.altRow?" mbsc-lv-alt-row ":"")+'"><ul class="mbsc-lv mbsc-lv-dummy"></ul><div class="mbsc-lv-sl-c"></div></div>');Wa="body"!==U.context;Oa=a(Wa?U.context:t);Ua=a(".mbsc-lv-dummy",
- ya);ya.insertAfter(Na);I.sortable.handle&&(o=!0===I.sortable.handle?e:I.sortable.handle,ob='<div class="mbsc-lv-handle-c mbsc-lv-item-h-'+o+' mbsc-lv-handle"><div class="'+U.handleClass+' mbsc-lv-handle-bar-c mbsc-lv-handle">'+U.handleMarkup+"</div></div>",ya.addClass("mbsc-lv-handle-"+o));Oa.on("orientationchange.mbsc-lv resize.mbsc-lv",function(){clearTimeout(Va);Va=setTimeout(function(){Zb=Oa[0].innerHeight||Oa.innerHeight();hc=Wa?Oa.offset().top:0;if(ka){Ma=L[0].offsetTop;Ea=L.outerHeight();Da.css({top:Ma,
- height:Ea})}},200)}).trigger("resize.mbsc-lv");ya.on("touchstart mousedown",".mbsc-lv-item",r).on("touchmove",".mbsc-lv-item",h).on("touchend touchcancel",".mbsc-lv-item",A);Ra.addEventListener&&Ra.addEventListener("click",function(a){if(Jb){a.stopPropagation();a.preventDefault();Jb=false}},!0);ya.on("touchstart mousedown",".mbsc-lv-ic-m",function(a){if(!Za){a.stopPropagation();a.preventDefault()}Nb=da(a,"X");Ob=da(a,"Y")}).on("touchend mouseup",".mbsc-lv-ic-m",function(b){if(!Za){b.type==="touchend"&&
- m.preventClick();f&&!a(this).hasClass("mbsc-lv-ic-disabled")&&Math.abs(da(b,"X")-Nb)<10&&Math.abs(da(b,"Y")-Ob)<10&&W((J<0?Ca.rightMenu:Ca.leftMenu)[a(this).index()],X,La)}});$b=a(".mbsc-lv-sl-c",ya).append(Na.addClass("mbsc-lv-sl-curr")).attr("data-ref",V++);ma=Na;ib=ya;Ka='<li class="mbsc-lv-item mbsc-lv-back">'+U.backText+'<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic '+U.leftArrowClass+'"></div></li>';ab='<div class="mbsc-lv-arr mbsc-lv-ic mbsc-ic '+U.rightArrowClass+'"></div>';H(Na);bc=0;ub=U.itemGroups||
- {};ub.defaults={swipeleft:U.swipeleft,swiperight:U.swiperight,stages:U.stages,actions:U.actions,actionsWidth:U.actionsWidth};a.each(ub,function(b,c){c.swipe=c.swipe||U.swipe;c.stages=c.stages||[];za(c.stages,1,true);za(c.stages.left,1);za(c.stages.right,-1);if(c.stages.left||c.stages.right)c.stages=[].concat(c.stages.left||[],c.stages.right||[]);fb=false;if(!c.stages.length){c.swipeleft&&c.stages.push({percent:-30,action:c.swipeleft});c.swiperight&&c.stages.push({percent:30,action:c.swiperight})}a.each(c.stages,
- function(a,b){if(b.percent===0){fb=true;return false}});fb||c.stages.push({percent:0});c.stages.sort(function(a,b){return a.percent-b.percent});a.each(c.stages,function(a,b){if(b.percent===0){c.start=a;return false}});if(fb)c.left=c.right=c.stages[c.start];else{c.left=c.stages[c.start-1]||{};c.right=c.stages[c.start+1]||{}}if(c.actions){c.leftMenu=c.actions.left||c.actions;c.rightMenu=c.actions.right||c.leftMenu;i=s="";for(g=0;g<c.leftMenu.length;g++)s=s+('<div class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-'+
- c.leftMenu[g].icon+'"></div>');for(g=0;g<c.rightMenu.length;++g)i=i+('<div class="mbsc-lv-ic-m mbsc-lv-ic mbsc-ic mbsc-ic-'+c.rightMenu[g].icon+'"></div>');if(c.actions.left)c.swipe=c.actions.right?c.swipe:"right";if(c.actions.right)c.swipe=c.actions.left?c.swipe:"left";c.icons='<div class="mbsc-lv-multi mbsc-lv-multi-ic-left">'+s+'</div><div class="mbsc-lv-multi mbsc-lv-multi-ic-right">'+i+"</div>"}});U.fixedHeader&&(wa=a('<div class="mbsc-lv-fixed-header"></div>'),Ab=a(".mbsc-lv-gr-title",Na),Wa?
- (Oa.before(wa),wa.addClass("mbsc-lv-fixed-header-ctx mbsc-lv-"+U.theme+(U.baseTheme?" mbsc-lv-"+U.baseTheme:""))):ya.prepend(wa),Oa.on("scroll.mbsc-lv touchmove.mbsc-lv",function(){if(Xa||!ka){var b=a(this).scrollTop(),c=Na.offset().top;Ab.each(function(e,g){if(a(g).offset().top-(Wa?c:0)<b)Bb=e});ta=Ab[Bb];c<(Wa?Oa.offset().top:b)&&b<(Wa?Na[0].scrollHeight:c+Na.height())?wa.empty().append(a(ta).clone()).show():wa.hide()}}));U.rtl&&ya.addClass("mbsc-lv-rtl");U.hover&&(Ya=U.hover.time||200,gb=U.hover.timeout||
- 200,Hb=U.hover.direction||U.hover||"right",ya.on("mouseenter.mbsc-lv",".mbsc-lv-item",function(){if(!Ha||Ha[0]!=this){D();Ha=a(this);if(ub[Ha.attr("data-type")||"defaults"].actions)Gb=setTimeout(function(){if(Lb)Ha=null;else{yb=true;I.openActions(Ha,Hb,Ya,false)}},gb)}}).on("mouseleave.mbsc-lv",D));Na.is("[mbsc-enhance]")&&(Vb=!0,Na.removeAttr("mbsc-enhance"),ya.attr("mbsc-enhance",""));ya.trigger("mbsc-enhance",[{theme:U.theme,lang:U.lang}]);Aa("onInit",[])};I.destroy=function(){ib.append(ma);Wa&&
- wa&&wa.remove();Vb&&Na.attr("mbsc-enhance","");ya.find(".mbsc-lv-txt,.mbsc-lv-img").removeClass("mbsc-lv-txt mbsc-lv-img");ya.find("ul,ol").removeClass("mbsc-lv mbsc-lv-v mbsc-lv-root mbsc-lv-sl-curr").find("li").removeClass("mbsc-lv-gr-title mbsc-lv-item mbsc-lv-item-enhanced mbsc-lv-parent mbsc-lv-img-left mbsc-lv-img-right mbsc-lv-item-ic-left mbsc-lv-item-ic-right").removeAttr("data-ref");a(".mbsc-lv-back,.mbsc-lv-handle-c,.mbsc-lv-arr,.mbsc-lv-item-ic",ya).remove();Na.insertAfter(ya);ya.off().remove();
- Da.remove();Oa.off(".mbsc-lv");I._destroy()};var Mb,kc=[],Cb=[],dc=[],Ib=0;I.startActionTrack=function(){Ib||(dc=[]);Ib++};I.endActionTrack=function(){Ib--;Ib||Cb.push(dc)};I.addUndoAction=function(a,b){var c={action:a,async:b};Ib?dc.push(c):(Cb.push([c]),Cb.length>U.undoLimit&&Cb.shift())};I.undo=function(){function a(){0>e?(Mb=!1,b()):(c=g[e],e--,c.async?c.action(a):(c.action(),a()))}function b(){if(g=kc.shift())Mb=!0,e=g.length-1,a()}var c,e,g;Cb.length&&kc.push(Cb.pop());Mb||b()};U=I.settings;
- Aa=I.trigger;I.init(y)};n.ListView.prototype={_class:"listview",_hasDef:!0,_hasTheme:!0,_hasLang:!0,_defaults:{actionsWidth:90,sortDelay:250,undoLimit:10,swipe:!0,quickSwipe:!0,animateIcons:!0,fillAnimation:!0,animation:!0,revert:!0,handleClass:"",handleMarkup:'<div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div><div class="mbsc-lv-handle-bar mbsc-lv-handle"></div>',leftArrowClass:"mbsc-ic-arrow-left4",rightArrowClass:"mbsc-ic-arrow-right4",backText:"Back",
- undoText:"Undo",stages:[]}};y.themes.listview.mobiscroll={leftArrowClass:"mbsc-ic-arrow-left5",rightArrowClass:"mbsc-ic-arrow-right5"};y.presetShort("listview","ListView")})(jQuery,window,document);(function(a){a.mobiscroll.themes.listview.jqm={handleClass:"ui-btn ui-icon-bars ui-btn-up-c ui-btn-icon-notext ui-icon-shadow ui-corner-all ui-btn-corner-all",handleMarkup:'<span class="ui-btn-inner mbsc-lv-handle"><span class="ui-icon ui-icon-bars ui-icon-shadow mbsc-lv-handle"> </span></span>',leftArrowClass:"ui-btn-icon-left ui-icon-carat-l",rightArrowClass:"ui-btn-icon-right ui-icon-carat-r",onInit:function(){a(this).closest(".mbsc-lv-cont").addClass(a(this).data("inset")?"mbsc-lv-jqm-inset":
- "").find(".mbsc-lv-dummy, .mbsc-lv-fixed-header").addClass("ui-listview");a("ul,ol",this).listview("refresh")},onItemAdd:function(a){a=a.parent();a.hasClass("ui-listview")?a.listview("refresh"):a.listview()},onSortUpdate:function(a){a.parent().listview("refresh")}}})(jQuery);(function(a,t){var j=a.mobiscroll,u=j.util.isNumeric,f=function(){},d=j.classes;d.Numpad=function(f,n,m){function j(c){var d,w=(d=q.validate.call(f,k.slice(0),ja,h)||[])&&d.disabled||[];h._isValid=d.invalid?!1:!0;h._tempValue=q.formatValue.call(f,k.slice(0),ja,h);g=k.length;i=d.length||N;if(h._isVisible&&a.mobiscroll.running){a(".mbsc-np-ph",ca).each(function(b){a(this).html("ltr"==q.fill?b>=g?G:aa||k[b]:b>=N-i?b+g<N?G:aa||k[b+g-N]:"")});a(".mbsc-np-cph",ca).each(function(){a(this).html(ja[a(this).attr("data-var")]||
- a(this).attr("data-ph"))});if(g===N)for(d=0;9>=d;d++)w.push(d);a(".mbsc-np-btn",ca).removeClass(V);for(d=0;d<w.length;d++)a('.mbsc-np-btn[data-val="'+w[d]+'"]',ca).addClass(V);h._isValid?a(".dwb-s .dwb",ca).removeClass(V):a(".dwb-s .dwb",ca).addClass(V);h.live&&(h._hasValue=c||h._hasValue,b(c))}}function b(b,c,g,d){c&&j();d||(F=k.slice(0),ea=a.extend({},ja),A=B.slice(0),h._value=h._tempValue);b&&(h._isInput&&r.val(h._hasValue&&h._isValid?h._value:""),g&&(h._preventChange=!0,r.change()))}function c(a){var b,
- c=a||[],g=[];B=[];ja={};for(a=0;a<c.length;a++)/:/.test(c[a])?(b=c[a].split(":"),ja[b[0]]=b[1],B.push(b[0])):(g.push(c[a]),B.push("digit"));return g}function da(b,c){if(!(!g&&!c&&!q.allowLeadingZero||b.hasClass("dwb-d")||b.hasClass("mbsc-np-btn-empty"))&&g<N&&a.mobiscroll.running)B.push("digit"),k.push(c),j(!0)}function Q(){var a,b,c=B.pop();if(g||"digit"!==c){if("digit"!==c&&ja[c]){delete ja[c];b=B.slice(0);B=[];for(a=0;a<b.length;a++)b[a]!==c&&B.push(b[a])}else k.pop();j(!0)}}var ca,V,G,g,q,aa,
- k,i,N,F,r=a(f),h=this,A=[],B=[],ja={},ea={},ba={48:0,49:1,50:2,51:3,52:4,53:5,54:6,55:7,56:8,57:9,96:0,97:1,98:2,99:3,100:4,101:5,102:6,103:7,104:8,105:9};d.Frame.call(this,f,n,!0);h.setVal=h._setVal=function(g,d,i,m){h._hasValue=null!==g&&g!==t;k=c(a.isArray(g)?g.slice(0):q.parseValue.call(f,g,h));b(d,!0,i===t?d:i,m)};h.getVal=h._getVal=function(a){return h._hasValue||a?h[a?"_tempValue":"_value"]:null};h.setArrayVal=h.setVal;h.getArrayVal=function(a){return a?k.slice(0):h._hasValue?F.slice(0):null};
- h.setValue=h.setVal;h.getValue=h.getArrayVal;h._readValue=function(){var a=r.val()||"";""!==a&&(h._hasValue=!0);aa?(ja={},B=[],k=[]):(ja=h._hasValue?ea:{},B=h._hasValue?A:[],k=h._hasValue&&F?F.slice(0):c(q.parseValue.call(f,a,h)),b(!1,!0))};h._fillValue=function(){h._hasValue=!0;b(!0,!1,!0)};h._generateContent=function(){var b,c,g,d=1;b="";var e;e=""+('<div class="mbsc-np-hdr"><div role="button" tabindex="0" aria-label="'+
- q.deleteText+'" class="mbsc-np-del dwb-e mbsc-ic mbsc-ic-'+q.deleteIcon+'"></div><div class="mbsc-np-dsp">');b=q.template.replace(/d/g,'<span class="mbsc-np-ph">'+G+"</span>").replace(/d/g,"d");b=b.replace(/{([a-zA-Z0-9]*)\:?([a-zA-Z0-9\-\_]*)}/g,'<span class="mbsc-np-cph" data-var="$1" data-ph="$2">$2</span>');e=e+b+'</div></div><div class="mbsc-np-tbl-c mbsc-w-p"><div class="mbsc-np-tbl">';for(b=0;4>b;b++){e+='<div class="mbsc-np-row">';for(c=0;3>c;c++)g=d,10==d||12==d?g="":11==d&&(g=0),e=
- ""===g?10==d&&q.leftButton?e+('<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom dwb-e" '+(q.leftButton.variable?'data-var="'+q.leftButton.variable+'"':"")+' data-val="'+q.leftButton.value+'" >'+q.leftButton.text+"</div>"):12==d&&q.rightButton?e+('<div role="button" tabindex="0" class="mbsc-np-btn mbsc-np-btn-custom dwb-e" '+(q.rightButton.variable?'data-var="'+q.rightButton.variable+'"':"")+' data-val="'+q.rightButton.value+'" >'+q.rightButton.text+"</div>"):e+'<div class="mbsc-np-btn mbsc-np-btn-empty"></div>':
- e+('<div tabindex="0" role="button" class="mbsc-np-btn dwb-e" data-val="'+g+'">'+g+"</div>"),d++;e+="</div>"}return e+"</div></div>"};h._markupReady=function(){ca=h._markup;j()};h._attachEvents=function(b){b.on("keydown",function(b){ba[b.keyCode]!==t?da(a('.mbsc-np-btn[data-val="'+ba[b.keyCode]+'"]'),ba[b.keyCode]):8==b.keyCode&&(b.preventDefault(),Q())});h.tap(a(".mbsc-np-btn",b),function(){var b=a(this);if(b.hasClass("mbsc-np-btn-custom")){var c=b.attr("data-val"),d=b.attr("data-var");
- if(!b.hasClass("dwb-d")){d&&(b=d.split(":"),B.push(b[0]),ja[b[0]]=b[1]);if(c.length+g<=i)for(b=0;b<c.length;++b)B.push("digit"),k.push(u(c[b])?+c[b]:c[b]);j(!0)}}else da(b,+b.attr("data-val"))});h.tap(a(".mbsc-np-del",b),Q)};h._processSettings=function(){q=h.settings;q.headerText=(q.headerText||"").replace("{value}","");q.cssClass=(q.cssClass||"")+" mbsc-np";q.template=q.template.replace(/\\d/,"d");G=q.placeholder;N=(q.template.match(/d/g)||[]).length;V="dwb-d "+(q.disabledClass||"");(aa=q.mask)&&
- r.is("input")&&r.attr("type","password")};h._indexOf=function(a,b){var c;for(c=0;c<a.length;++c)if(a[c].toString()===b.toString())return c;return-1};m||h.init(n)};d.Numpad.prototype={_hasDef:!0,_hasTheme:!0,_hasLang:!0,_hasPreset:!0,_class:"numpad",_defaults:a.extend({},d.Frame.prototype._defaults,{template:"dd.dd",placeholder:"0",deleteIcon:"backspace",allowLeadingZero:!1,fill:"rtl",deleteText:"Delete",decimalSeparator:".",thousandsSeparator:",",validate:f,parseValue:f,formatValue:function(d,f,m){var j,
- b=1;j=m.settings;var m=j.placeholder,c=j.template,u=d.length,Q=c.length,t="";for(j=0;j<Q;j++)"d"==c[Q-j-1]?(t=b<=u?d[u-b]+t:m+t,b++):t=c[Q-j-1]+t;a.each(f,function(a,b){t=t.replace("{"+a+"}",b)});return a("<div>"+t+"</div>").text()}})};j.themes.numpad=j.themes.frame;j.presetShort("numpad","Numpad",!1)})(jQuery);
- (function(a){var t=a.mobiscroll,j={min:0,max:99.99,scale:2,prefix:"",suffix:"",returnAffix:!1};t.presets.numpad.decimal=function(u){function f(a){var d;d=a.slice(0);for(a=0;d.length;)a=10*a+d.shift();for(d=0;d<n.scale;d++)a/=10;return a}function d(a){return f(a).toFixed(n.scale).replace(".",n.decimalSeparator).replace(/\B(?=(\d{3})+(?!\d))/g,n.thousandsSeparator)}var y=a.extend({},u.settings),n=a.extend(u.settings,j,y);u.getVal=function(a){a=u._getVal(a);return t.util.isNumeric(a)?+a:a};return{template:n.prefix.replace(/d/g,
- "\\d")+Array((Math.floor(n.max)+"").length+1).join("d")+(n.scale?"."+Array(n.scale+1).join("d"):"")+n.suffix.replace(/d/g,"\\d"),parseValue:function(a){var d,b;d=a||n.defaultValue;a=[];if(d&&(b=(d+"").match(/\d+\.?\d*/g))){b=(+b[0]).toFixed(n.scale);for(d=0;d<b.length;d++)"."!=b[d]&&(+b[d]?a.push(+b[d]):a.length&&a.push(0))}return a},formatValue:function(a){a=d(a);return n.returnAffix?n.prefix+a+n.suffix:a},validate:function(j){var y=d(j),b=f(j),c=[];!j.length&&!n.allowLeadingZero&&c.push(0);u.isVisible()&&
- a(".mbsc-np-dsp",u._markup).html(n.prefix+y+n.suffix);return{disabled:c,invalid:b>n.max||b<n.min||(n.invalid?-1!=u._indexOf(n.invalid,b):!1)}}}}})(jQuery);
- (function(a){function t(a){for(var f=0,j=1,m=0;a.length;)3<f?j=3600:1<f&&(j=60),m+=a.pop()*j*(f%2?10:1),f++;return m}var j=a.mobiscroll,u=["h","m","s"],f={min:0,max:362439,defaultValue:0,hourTextShort:"h",minuteTextShort:"m",secTextShort:"s"};j.presets.numpad.timespan=function(d){function y(b){var c,d="",f=3600;a(u).each(function(a,j){c=Math.floor(b/f);b-=c*f;f/=60;if(0<c||"s"==j&&!d)d=d+(d?" ":"")+c+O[j]});return d}var n=a.extend({},d.settings),m=a.extend(d.settings,f,n),O={h:m.hourTextShort.replace(/d/g,
- "\\d"),m:m.minuteTextShort.replace(/d/g,"\\d"),s:m.secTextShort.replace(/d/g,"\\d")},n='d<span class="mbsc-np-sup mbsc-np-time">'+O.s+"</span>";9<m.max&&(n="d"+n);99<m.max&&(n='<span class="mbsc-np-ts-m">'+(639<m.max?"d":"")+'d</span><span class="mbsc-np-sup mbsc-np-time">'+O.m+"</span>"+n);6039<m.max&&(n='<span class="mbsc-np-ts-h">'+(38439<m.max?"d":"")+'d</span><span class="mbsc-np-sup mbsc-np-time">'+O.h+"</span>"+n);d.setVal=function(a,c,f,n){j.util.isNumeric(a)&&(a=y(a));return d._setVal(a,
- c,f,n)};d.getVal=function(a){return d._hasValue||a?t(d.getArrayVal(a)):null};return{template:n,parseValue:function(b){var c,d=b||y(m.defaultValue),f=[];d&&a(u).each(function(a,b){(c=RegExp("(\\d+)"+O[b],"gi").exec(d))?(c=+c[1],9<c?(f.push(Math.floor(c/10)),f.push(c%10)):(f.length&&f.push(0),(c||f.length)&&f.push(c))):f.length&&(f.push(0),f.push(0))});return f},formatValue:function(a){return y(t(a))},validate:function(a){var c=t(a.slice(0)),f=[];a.length||f.push(0);return{disabled:f,invalid:c>m.max||
- c<m.min||(m.invalid?-1!=d._indexOf(m.invalid,+c):!1)}}}}})(jQuery);
- (function(a){var t={timeFormat:"hh:ii A",amText:"am",pmText:"pm"};a.mobiscroll.presets.numpad.time=function(j){function u(b,c){var d,f="";for(d=0;d<b.length;++d)f+=b[d]+(d%2==(1==b.length%2?0:1)&&d!=b.length-1?":":"");a.each(c,function(a,b){f+=" "+b});return f}var f=a.extend({},j.settings),d=a.extend(j.settings,t,f),y=d.timeFormat.split(":"),n=d.timeFormat.match(/a/i),m=n?"a"==n[0]?d.amText:d.amText.toUpperCase():"",O=n?"a"==n[0]?d.pmText:d.pmText.toUpperCase():"",b=0,c=d.min?""+d.min.getHours():
- "",da=d.max?""+d.max.getHours():"",Q=d.min?""+(10>d.min.getMinutes()?"0"+d.min.getMinutes():d.min.getMinutes()):"",ca=d.max?""+(10>d.max.getMinutes()?"0"+d.max.getMinutes():d.max.getMinutes()):"",V=d.min?""+(10>d.min.getSeconds()?"0"+d.min.getSeconds():d.min.getSeconds()):"",G=d.max?""+(10>d.max.getSeconds()?"0"+d.max.getSeconds():d.max.getSeconds()):"";d.min&&d.min.setFullYear(2014,7,20);d.max&&d.max.setFullYear(2014,7,20);return{placeholder:"-",allowLeadingZero:!0,template:(3==y.length?"dd:dd:dd":
- 2==y.length?"dd:dd":"dd")+(n?'<span class="mbsc-np-sup">{ampm:--}</span>':""),leftButton:n?{text:m,variable:"ampm:"+m,value:"00"}:{text:":00",value:"00"},rightButton:n?{text:O,variable:"ampm:"+O,value:"00"}:{text:":30",value:"30"},parseValue:function(a){var b,c=a||d.defaultValue,f=[];if(c){c+="";if(b=c.match(/\d/g))for(a=0;a<b.length;a++)f.push(+b[a]);n&&f.push("ampm:"+(c.match(RegExp(d.pmText,"gi"))?O:m))}return f},formatValue:function(a,b){return u(a,b)},validate:function(a,f){var m=u(a,f),k=3<=
- a.length?new Date(2014,7,20,""+a[0]+(0===a.length%2?a[1]:""),""+a[0===a.length%2?2:1]+a[0===a.length%2?3:2]):"",i,t,F,r,h,A,B=[];b=i=2*y.length;a.length||(n&&(B.push(0),B.push(d.leftButton.value)),B.push(d.rightButton.value));if(!n&&(2>i-a.length||1!=a[0]&&(2<a[0]||3<a[1])&&2>=i-a.length))B.push("30"),B.push("00");if((n?1<a[0]||2<a[1]:1!=a[0]&&(2<a[0]||3<a[1]))&&a[0])a.unshift(0),b=i-1;if(a.length==i)for(i=0;9>=i;++i)B.push(i);else if(1==a.length&&n&&1==a[0]||a.length&&0===a.length%2||!n&&2==a[0]&&
- 3<a[1]&&1==a.length%2)for(i=6;9>=i;++i)B.push(i);F=void 0!==a[1]?""+a[0]+a[1]:"";r=+ca==+(void 0!==a[3]?""+a[2]+a[3]:0);if(d.invalid)for(i=0;i<d.invalid.length;++i)if(t=d.invalid[i].getHours(),h=d.invalid[i].getMinutes(),A=d.invalid[i].getSeconds(),t==+F)if(2==y.length&&(10>h?0:+(""+h)[0])==+a[2]){B.push(10>h?h:+(""+h)[1]);break}else if((10>A?0:+(""+A)[0])==+a[4]){B.push(10>A?A:+(""+A)[1]);break}if(d.min||d.max){t=+c==+F;h=(F=+da==+F)&&r;r=t&&r;if(0===a.length){for(i=n?2:19<c?c[0]:3;i<=(1==c[0]?9:
- c[0]-1);++i)B.push(i);if(10<=c&&(B.push(0),2==c[0]))for(i=3;9>=i;++i)B.push(i);if(da&&10>da||c&&10<=c)for(i=da&&10>da?+da[0]+1:0;i<(c&&10<=c?c[0]:10);++i)B.push(i)}if(1==a.length){if(0===a[0])for(i=0;i<c[0];++i)B.push(i);if(c&&0!==a[0]&&(n?1==a[0]:2==a[0]))for(i=n?3:4;9>=i;++i)B.push(i);if(a[0]==c[0])for(i=0;i<c[1];++i)B.push(i);if(a[0]==da[0]&&!n)for(i=+da[1]+1;9>=i;++i)B.push(i)}if(2==a.length&&(t||F))for(i=F?+ca[0]+1:0;i<(t?+Q[0]:10);++i)B.push(i);if(3==a.length&&(F&&a[2]==ca[0]||t&&a[2]==Q[0]))for(i=
- F&&a[2]==ca[0]?+ca[1]+1:0;i<(t&&a[2]==Q[0]?+Q[1]:10);++i)B.push(i);if(4==a.length&&(r||h))for(i=h?+G[0]+1:0;i<(r?+V[0]:10);++i)B.push(i);if(5==a.length&&(r&&a[4]==V[0]||h&&a[4]==G[0]))for(i=h&&a[4]==G[0]?+G[1]+1:0;i<(r&&a[4]==V[0]?+V[1]:10);++i)B.push(i)}return{disabled:B,length:b,invalid:(n?!RegExp("^(0?[1-9]|1[012])(:[0-5]\\d)?(:[0-5][0-9]) (?:"+d.amText+"|"+d.pmText+")$","i").test(m):!/^([0-1]?[0-9]|2[0-4]):([0-5][0-9])(:[0-5][0-9])?$/.test(m))||(d.invalid?-1!=j._indexOf(d.invalid,k):!1)||!((d.min?
- d.min<=k:1)&&(d.max?k<=d.max:1))}}}}})(jQuery);
- (function(a){var t=a.mobiscroll,j={dateOrder:"mdy",dateFormat:"mm/dd/yy",delimiter:"/"};t.presets.numpad.date=function(u){function f(a){return new Date(+(""+a[d]+a[d+1]+a[d+2]+a[d+3]),+(""+a[y]+a[y+1])-1,+(""+a[n]+a[n+1]))}var d,y,n,m,O=[];m=a.extend({},u.settings);var b=a.extend(u.settings,t.datetime.defaults,j,m),c=b.dateOrder,da=b.min?""+(b.getMonth(b.min)+1):0,Q=b.max?""+(b.getMonth(b.max)+1):0,ca=b.min?""+b.getDay(b.min):0,V=b.max?""+b.getDay(b.max):0,G=b.min?""+b.getYear(b.min):0,g=b.max?""+
- b.getYear(b.max):0,c=c.replace(/y+/gi,"yyyy"),c=c.replace(/m+/gi,"mm"),c=c.replace(/d+/gi,"dd");d=c.toUpperCase().indexOf("Y");y=c.toUpperCase().indexOf("M");n=c.toUpperCase().indexOf("D");c="";O.push({val:d,n:"yyyy"},{val:y,n:"mm"},{val:n,n:"dd"});O.sort(function(a,b){return a.val-b.val});a.each(O,function(a,b){c+=b.n});d=c.indexOf("y");y=c.indexOf("m");n=c.indexOf("d");c="";for(m=0;8>m;++m)if(c+="d",m+1==d||m+1==y||m+1==n)c+=b.delimiter;u.getVal=function(a){return u._hasValue||a?f(u.getArrayVal(a)):
- null};return{placeholder:"-",fill:"ltr",allowLeadingZero:!0,template:c,parseValue:function(a){var c,d=[];c=a||b.defaultValue;a=t.datetime.parseDate(b.dateFormat,c,b);if(c)for(c=0;c<O.length;++c)d=/m/i.test(O[c].n)?d.concat(((9>b.getMonth(a)?"0":"")+(b.getMonth(a)+1)).split("")):/d/i.test(O[c].n)?d.concat(((10>b.getDay(a)?"0":"")+b.getDay(a)).split("")):d.concat((b.getYear(a)+"").split(""));return d},formatValue:function(a){return t.datetime.formatDate(b.dateFormat,f(a),b)},validate:function(a){var c=
- f(a),k,i,j,m,r=[],h=void 0!==a[d+3]?""+a[d]+a[d+1]+a[d+2]+a[d+3]:"",t=void 0!==a[y+1]?""+a[y]+a[y+1]:"",B=void 0!==a[n+1]?""+a[n]+a[n+1]:"",O=""+b.getMaxDayOfMonth(h||2012,t-1||0),ea=G===h&&+da===+t,ba=g===h&&+Q===+t;if(b.invalid)for(k=0;k<b.invalid.length;++k){i=b.getYear(b.invalid[k]);j=b.getMonth(b.invalid[k]);m=b.getDay(b.invalid[k]);if(i==+h&&j+1==+t&&(10>m?0:+(""+m)[0])==+a[n]){r.push(10>m?m:+(""+m)[1]);break}if(j+1==+t&&m==+B&&(""+i).substring(0,3)==""+a[d]+a[d+1]+a[d+2]){r.push((""+i)[3]);
- break}if(i==+h&&m==+B&&(10>j?0:+(""+(j+1))[0])==+a[y]){r.push(10>j?j:+(""+(j+1))[1]);break}}if("31"==B&&(a.length==y||a.length==y+1))1!=a[y]?r.push(2,4,6,9,11):r.push(1);"30"==B&&0===a[y]&&a.length<=y+1&&r.push(2);if(a.length==y){for(k=g===h&&10>+Q?1:2;9>=k;++k)r.push(k);G===h&&10<=+da&&r.push(0)}if(a.length==y+1){if(1==a[y]){for(k=g===h?+Q[1]+1:3;9>=k;++k)r.push(k);if(G==h)for(k=0;k<+da[1];++k)r.push(k)}if(0===a[y]&&(r.push(0),g===h||G===h))for(k=g===h?+B>+V?+Q:+Q+1:0;k<=(G===h?+da-1:9);++k)r.push(k)}if(a.length==
- n){for(k=ba?(10<+V?+V[0]:0)+1:+O[0]+1;9>=k;++k)r.push(k);if(ea)for(k=0;k<(10>+ca?0:ca[0]);++k)r.push(k)}if(a.length==n+1){if(3<=a[n]||"02"==t)for(k=+O[1]+1;9>=k;++k)r.push(k);if(ba&&+V[0]==a[n])for(k=+V[1]+1;9>=k;++k)r.push(k);if(ea&&ca[0]==a[n])for(k=0;k<+ca[1];++k)r.push(k);if(0===a[n]&&(r.push(0),ba||ea))for(k=ba?+V+1:1;k<=(ea?+ca-1:9);++k)r.push(k)}if(void 0!==a[d+2]&&"02"==t&&"29"==B)for(i=+(""+a[d]+a[d+1]+a[d+2]+0);i<=+(""+a[d]+a[d+1]+a[d+2]+9);++i)r.push(!(0===i%4&&0!==i%100||0===i%400)?i%
- 10:"");if(a.length==d){if(b.min)for(k=0;k<+G[0];++k)r.push(k);if(b.max)for(k=+g[0]+1;9>=k;++k)r.push(k);r.push(0)}if(b.min||b.max)for(i=1;4>i;++i)if(a.length==d+i){if(a[d+i-1]==+G[i-1]&&(3==i?a[d+i-2]==+G[i-2]:1))for(k=0;k<+G[i]+(3==i&&a[y+1]&&+da>+t?1:0);++k)r.push(k);if(a[d+i-1]==+g[i-1]&&(3==i?a[d+i-2]==+g[i-2]:1))for(k=+g[i]+(3==i&&+Q<+t?0:1);9>=k;++k)r.push(k)}return{disabled:r,invalid:!("Invalid Date"!=c&&(b.min?b.min<=c:1)&&(b.max?c<=b.max:1))||(b.invalid?-1!=u._indexOf(b.invalid,c):!1)}}}}})(jQuery);(function(a,t,j,u){var t=a.mobiscroll,f=t.classes,d=t.util,y=d.jsPrefix,n=d.has3d,m=d.hasFlex,O=d.getCoord,b=d.constrain,c=d.testTouch;t.presetShort("scroller","Scroller",!1);f.Scroller=function(t,Q,ca){function V(b){if(c(b,this)&&!l&&!P&&!R&&!r(this)&&a.mobiscroll.running&&(b.preventDefault(),b.stopPropagation(),ga="clickpick"!=z.mode,l=a(".dw-ul",this),A(l),ha=($=ka[M]!==u)?Math.round(-d.getPosition(l,!0)/p):s[M],H=O(b,"Y",!0),x=new Date,Z=H,ea(l,M,ha,0.001),ga&&l.closest(".dwwl").addClass("dwa"),
- "mousedown"===b.type))a(j).on("mousemove",G).on("mouseup",g)}function G(a){if(l&&ga&&(a.preventDefault(),a.stopPropagation(),Z=O(a,"Y",!0),3<Math.abs(Z-H)||$))ea(l,M,b(ha+(H-Z)/p,fa-1,la+1)),$=!0}function g(c){if(l){var e=new Date-x,d=b(Math.round(ha+(H-Z)/p),fa-1,la+1),f=d,s,i=l.offset().top;c.stopPropagation();"mouseup"===c.type&&a(j).off("mousemove",G).off("mouseup",g);n&&300>e?(s=(Z-H)/e,e=s*s/z.speedUnit,0>Z-H&&(e=-e)):e=Z-H;if($)f=b(Math.round(ha-e/p),fa,la),e=s?Math.max(0.1,Math.abs((f-d)/
- s)*z.timeUnit):0.1;else{var d=Math.floor((Z-i)/p),h=a(a(".dw-li",l)[d]);s=h.hasClass("dw-v");i=ga;e=0.1;!1!==K("onValueTap",[h])&&s?f=d:i=!0;i&&s&&(h.addClass("dw-hl"),setTimeout(function(){h.removeClass("dw-hl")},100));if(!Y&&(!0===z.confirmOnTap||z.confirmOnTap[M])&&h.hasClass("dw-sel")){C.select();l=!1;return}}ga&&D(l,M,f,0,e,!0);l=!1}}function q(b){R=a(this);c(b,this)&&a.mobiscroll.running&&F(b,R.closest(".dwwl"),R.hasClass("dwwbp")?w:W);if("mousedown"===b.type)a(j).on("mouseup",aa)}function aa(b){R=
- null;P&&(clearInterval(oa),P=!1);"mouseup"===b.type&&a(j).off("mouseup",aa)}function k(b){38==b.keyCode?F(b,a(this),W):40==b.keyCode&&F(b,a(this),w)}function i(){P&&(clearInterval(oa),P=!1)}function N(c){if(!r(this)&&a.mobiscroll.running){c.preventDefault();var c=c.originalEvent||c,e=c.deltaY||c.wheelDelta||c.detail,d=a(".dw-ul",this);A(d);ea(d,M,b(((0>e?-20:20)-T[M])/p,fa-1,la+1));clearTimeout(S);S=setTimeout(function(){D(d,M,Math.round(s[M]),0<e?1:2,0.1)},200)}}function F(a,b,c){a.stopPropagation();
- a.preventDefault();if(!P&&!r(b)&&!b.hasClass("dwa")){P=!0;var e=b.find(".dw-ul");A(e);clearInterval(oa);oa=setInterval(function(){c(e)},z.delay);c(e)}}function r(b){return a.isArray(z.readonly)?(b=a(".dwwl",E).index(b),z.readonly[b]):z.readonly}function h(b){var c='<div class="dw-bf">',b=sa[b],e=1,d=b.labels||[],g=b.values||[],f=b.keys||g;a.each(g,function(b,g){0===e%20&&(c+='</div><div class="dw-bf">');c+='<div role="option" aria-selected="false" class="dw-li dw-v" data-val="'+f[b]+'"'+(d[b]?' aria-label="'+
- d[b]+'"':"")+' style="height:'+p+"px;line-height:"+p+'px;"><div class="dw-i"'+(1<ia?' style="line-height:'+Math.round(p/ia)+"px;font-size:"+Math.round(0.8*(p/ia))+'px;"':"")+">"+g+"</div></div>";e++});return c+="</div>"}function A(b){Y=b.closest(".dwwl").hasClass("dwwms");fa=a(".dw-li",b).index(a(Y?".dw-li":".dw-v",b).eq(0));la=Math.max(fa,a(".dw-li",b).index(a(Y?".dw-li":".dw-v",b).eq(-1))-(Y?z.rows-("scroller"==z.mode?1:3):0));M=a(".dw-ul",E).index(b)}function B(a){var b=z.headerText;
- return b?"function"===typeof b?b.call(t,a):b.replace(/\{value\}/i,a):""}function ja(a,b){clearTimeout(ka[b]);delete ka[b];a.closest(".dwwl").removeClass("dwa")}function ea(a,b,c,e,g){var f=-c*p,i=a[0].style;f==T[b]&&ka[b]||(T[b]=f,n?(i[y+"Transition"]=d.prefix+"transform "+(e?e.toFixed(3):0)+"s ease-out",i[y+"Transform"]="translate3d(0,"+f+"px,0)"):i.top=f+"px",ka[b]&&ja(a,b),e&&g&&(a.closest(".dwwl").addClass("dwa"),ka[b]=setTimeout(function(){ja(a,b)},1E3*e)),s[b]=c)}function ba(c,e,d,g,f){var s=
- a('.dw-li[data-val="'+c+'"]',e),i=a(".dw-li",e),c=i.index(s),h=i.length;if(g)A(e);else if(!s.hasClass("dw-v")){for(var l=s,k=0,j=0;0<=c-k&&!l.hasClass("dw-v");)k++,l=i.eq(c-k);for(;c+j<h&&!s.hasClass("dw-v");)j++,s=i.eq(c+j);(j<k&&j&&2!==d||!k||0>c-k||1==d)&&s.hasClass("dw-v")?c+=j:(s=l,c-=k)}d=s.hasClass("dw-sel");f&&(g||(a(".dw-sel",e).removeAttr("aria-selected"),s.attr("aria-selected","true")),a(".dw-sel",e).removeClass("dw-sel"),s.addClass("dw-sel"));return{selected:d,v:g?b(c,fa,la):c,val:s.hasClass("dw-v")||
- g?s.attr("data-val"):null}}function v(b,c,d,g,f){!1!==K("validate",[E,c,b,g])&&(a(".dw-ul",E).each(function(e){var d=a(this),s=d.closest(".dwwl").hasClass("dwwms"),i=e==c||c===u,s=ba(C._tempWheelArray[e],d,g,s,!0);if(!s.selected||i)C._tempWheelArray[e]=s.val,ea(d,e,s.v,i?b:0.1,i?f:!1)}),K("onValidated",[c]),C._tempValue=z.formatValue(C._tempWheelArray,C),C.live&&(C._hasValue=d||C._hasValue,e(d,d,0,!0)),C._header.html(B(C._tempValue)),d&&K("onChange",[C._tempValue]))}function D(c,e,d,g,f,s){d=b(d,
- fa,la);C._tempWheelArray[e]=a(".dw-li",c).eq(d).attr("data-val");ea(c,e,d,f,s);setTimeout(function(){v(f,e,!0,g,s)},10)}function w(a){var b=s[M]+1;D(a,M,b>la?fa:b,1,0.1)}function W(a){var b=s[M]-1;D(a,M,b<fa?la:b,2,0.1)}function e(a,b,c,e,d){C._isVisible&&!e&&v(c);C._tempValue=z.formatValue(C._tempWheelArray,C);d||(C._wheelArray=C._tempWheelArray.slice(0),C._value=C._hasValue?C._tempValue:null);a&&(K("onValueFill",[C._hasValue?C._tempValue:"",b]),C._isInput&&za.val(C._hasValue?C._tempValue:""),b&&
- (C._preventChange=!0,za.change()))}var E,R,ga,p,Y,T,z,S,K,P,$,H,x,Z,ha,fa,la,l,M,ia,oa,C=this,za=a(t),ka={},s={},sa=[];f.Frame.call(this,t,Q,!0);C.setVal=C._setVal=function(b,c,d,g,f){C._hasValue=null!==b&&b!==u;C._tempWheelArray=a.isArray(b)?b.slice(0):z.parseValue.call(t,b,C)||[];e(c,d===u?c:d,f,!1,g)};C.getVal=C._getVal=function(a){a=C._hasValue||a?C[a?"_tempValue":"_value"]:null;return d.isNumeric(a)?+a:a};C.setArrayVal=C.setVal;C.getArrayVal=function(a){return a?C._tempWheelArray:C._wheelArray};
- C.setValue=function(a,b,c,e,d){C.setVal(a,b,d,e,c)};C.getValue=C.getArrayVal;C.changeWheel=function(b,c,e){if(E){var d=0,g=b.length;a.each(z.wheels,function(f,s){a.each(s,function(f,s){if(-1<a.inArray(d,b)&&(sa[d]=s,a(".dw-ul",E).eq(d).html(h(d)),g--,!g))return C.position(),v(c,u,e),!1;d++});if(!g)return!1})}};C.getValidCell=ba;C.scroll=ea;C._generateContent=function(){var b,c="",e=0;a.each(z.wheels,function(d,g){c+='<div class="mbsc-w-p dwc'+("scroller"!=z.mode?" dwpm":" dwsc")+(z.showLabel?"":" dwhl")+'"><div class="dwwc"'+(z.maxWidth?"":' style=""')+">"+(m?"":'<table class="dw-tbl" cellpadding="0" cellspacing="0"><tr>');a.each(g,function(a,d){sa[e]=d;b=d.label!==
- u?d.label:a;c+="<"+(m?"div":"td")+' class="dwfl" style="'+(z.fixedWidth?"width:"+(z.fixedWidth[e]||z.fixedWidth)+"px;":(z.minWidth?"min-width:"+(z.minWidth[e]||z.minWidth)+"px;":"min-width:"+z.width+"px;")+(z.maxWidth?"max-width:"+(z.maxWidth[e]||z.maxWidth)+"px;":""))+'"><div class="dwwl dwwl'+e+(d.multiple?" dwwms":"")+'">'+("scroller"!=z.mode?'<div class="dwb-e dwwb dwwbp '+(z.btnPlusClass||"")+'" style="height:'+p+"px;line-height:"+p+'px;"><span>+</span></div><div class="dwb-e dwwb dwwbm '+(z.btnMinusClass||
- "")+'" style="height:'+p+"px;line-height:"+p+'px;"><span>–</span></div>':"")+/*'<div class="dwl">'+b+'</div>*/'<div tabindex="0" aria-live="off" aria-label="'+b+'" role="listbox" class="dwww"><div class="dww" style="height:'+z.rows*p+'px;"><div class="dw-ul" style="margin-top:'+(d.multiple?"scroller"==z.mode?0:p:z.rows/2*p-p/2)+'px;">';c+=h(e)+'</div></div><div class="dwwo"></div></div><div class="dwwol"'+(z.selectedLineHeight?' style="height:'+p+"px;margin-top:-"+(p/2+(z.selectedLineBorder||0))+
- 'px;"':"")+"></div></div>"+(m?"</div>":"</td>");e++});c+=(m?"":"</tr></table>")+"</div></div>"});return c};C._attachEvents=function(a){a.on("keydown",".dwwl",k).on("keyup",".dwwl",i).on("touchstart mousedown",".dwwl",V).on("touchmove",".dwwl",G).on("touchend",".dwwl",g).on("touchstart mousedown",".dwwb",q).on("touchend touchcancel",".dwwb",aa);if(z.mousewheel)a.on("wheel mousewheel",".dwwl",N)};C._markupReady=function(a){E=a;T={};v()};C._fillValue=function(){C._hasValue=!0;e(!0,!0,0,!0)};C._readValue=
- function(){var a=za.val()||"";""!==a&&(C._hasValue=!0);C._tempWheelArray=C._hasValue&&C._wheelArray?C._wheelArray.slice(0):z.parseValue.call(t,a,C)||[];e()};C._processSettings=function(){z=C.settings;K=C.trigger;p=z.height;ia=z.multiline;C._isLiquid="liquid"===(z.layout||(/top|bottom/.test(z.display)&&1==z.wheels.length?"liquid":""));z.formatResult&&(z.formatValue=z.formatResult);1<ia&&(z.cssClass=(z.cssClass||"")+" dw-ml");"scroller"!=z.mode&&(z.rows=Math.max(3,z.rows))};C._selectedValues={};ca||
- C.init(Q)};f.Scroller.prototype={_hasDef:!0,_hasTheme:!0,_hasLang:!0,_hasPreset:!0,_class:"scroller",_defaults:a.extend({},f.Frame.prototype._defaults,{minWidth:80,height:40,rows:3,multiline:1,delay:300,readonly:!1,showLabel:!0,confirmOnTap:!0,wheels:[],mode:"scroller",preset:"",speedUnit:0.0012,timeUnit:0.08,formatValue:function(a){return a.join(" ")},parseValue:function(b,c){var d=[],f=[],j=0,g,n;null!==b&&b!==u&&(d=(b+"").split(" "));a.each(c.settings.wheels,function(b,c){a.each(c,function(b,c){n=
- c.keys||c.values;g=n[0];a.each(n,function(a,b){if(d[j]==b)return g=b,!1});f.push(g);j++})});return f}})};t.themes.scroller=t.themes.frame})(jQuery,window,document);(function(a){var t=a.mobiscroll;t.datetime={defaults:{shortYearCutoff:"+10",monthNames:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthNamesShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),dayNames:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),dayNamesShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),dayNamesMin:"S,M,T,W,T,F,S".split(","),amText:"am",pmText:"pm",getYear:function(a){return a.getFullYear()},
- getMonth:function(a){return a.getMonth()},getDay:function(a){return a.getDate()},getDate:function(a,u,f,d,t,n,m){return new Date(a,u,f,d||0,t||0,n||0,m||0)},getMaxDayOfMonth:function(a,t){return 32-(new Date(a,t,32)).getDate()},getWeekNumber:function(a){a=new Date(a);a.setHours(0,0,0);a.setDate(a.getDate()+4-(a.getDay()||7));var t=new Date(a.getFullYear(),0,1);return Math.ceil(((a-t)/864E5+1)/7)}},formatDate:function(j,u,f){if(!u)return null;var f=a.extend({},t.datetime.defaults,f),d=function(a){for(var b=
- 0;m+1<j.length&&j.charAt(m+1)==a;)b++,m++;return b},y=function(a,b,c){b=""+b;if(d(a))for(;b.length<c;)b="0"+b;return b},n=function(a,b,c,f){return d(a)?f[b]:c[b]},m,O,b="",c=!1;for(m=0;m<j.length;m++)if(c)"'"==j.charAt(m)&&!d("'")?c=!1:b+=j.charAt(m);else switch(j.charAt(m)){case "d":b+=y("d",f.getDay(u),2);break;case "D":b+=n("D",u.getDay(),f.dayNamesShort,f.dayNames);break;case "o":b+=y("o",(u.getTime()-(new Date(u.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":b+=y("m",f.getMonth(u)+1,
- 2);break;case "M":b+=n("M",f.getMonth(u),f.monthNamesShort,f.monthNames);break;case "y":O=f.getYear(u);b+=d("y")?O:(10>O%100?"0":"")+O%100;break;case "h":O=u.getHours();b+=y("h",12<O?O-12:0===O?12:O,2);break;case "H":b+=y("H",u.getHours(),2);break;case "i":b+=y("i",u.getMinutes(),2);break;case "s":b+=y("s",u.getSeconds(),2);break;case "a":b+=11<u.getHours()?f.pmText:f.amText;break;case "A":b+=11<u.getHours()?f.pmText.toUpperCase():f.amText.toUpperCase();break;case "'":d("'")?b+="'":c=!0;break;default:b+=
- j.charAt(m)}return b},parseDate:function(j,u,f){var f=a.extend({},t.datetime.defaults,f),d=f.defaultValue||new Date;if(!j||!u)return d;if(u.getTime)return u;var u="object"==typeof u?u.toString():u+"",y=f.shortYearCutoff,n=f.getYear(d),m=f.getMonth(d)+1,O=f.getDay(d),b=-1,c=d.getHours(),da=d.getMinutes(),Q=0,ca=-1,V=!1,G=function(a){(a=k+1<j.length&&j.charAt(k+1)==a)&&k++;return a},g=function(a){G(a);a=u.substr(aa).match(RegExp("^\\d{1,"+("@"==a?14:"!"==a?20:"y"==a?4:"o"==a?3:2)+"}"));if(!a)return 0;
- aa+=a[0].length;return parseInt(a[0],10)},q=function(a,b,c){a=G(a)?c:b;for(b=0;b<a.length;b++)if(u.substr(aa,a[b].length).toLowerCase()==a[b].toLowerCase())return aa+=a[b].length,b+1;return 0},aa=0,k;for(k=0;k<j.length;k++)if(V)"'"==j.charAt(k)&&!G("'")?V=!1:aa++;else switch(j.charAt(k)){case "d":O=g("d");break;case "D":q("D",f.dayNamesShort,f.dayNames);break;case "o":b=g("o");break;case "m":m=g("m");break;case "M":m=q("M",f.monthNamesShort,f.monthNames);break;case "y":n=g("y");break;case "H":c=g("H");
- break;case "h":c=g("h");break;case "i":da=g("i");break;case "s":Q=g("s");break;case "a":ca=q("a",[f.amText,f.pmText],[f.amText,f.pmText])-1;break;case "A":ca=q("A",[f.amText,f.pmText],[f.amText,f.pmText])-1;break;case "'":G("'")?aa++:V=!0;break;default:aa++}100>n&&(n+=(new Date).getFullYear()-(new Date).getFullYear()%100+(n<=("string"!=typeof y?y:(new Date).getFullYear()%100+parseInt(y,10))?0:-100));if(-1<b){m=1;O=b;do{y=32-(new Date(n,m-1,32)).getDate();if(O<=y)break;m++;O-=y}while(1)}c=f.getDate(n,
- m-1,O,-1==ca?c:ca&&12>c?c+12:!ca&&12==c?0:c,da,Q);return f.getYear(c)!=n||f.getMonth(c)+1!=m||f.getDay(c)!=O?d:c}};t.formatDate=t.datetime.formatDate;t.parseDate=t.datetime.parseDate})(jQuery);(function(a,t){var j=a.mobiscroll,u=j.datetime,f=new Date,d={startYear:f.getFullYear()-100,endYear:f.getFullYear()+1,separator:" ",dateFormat:"mm/dd/yy",dateOrder:"mmddy",timeWheels:"hhiiA",timeFormat:"hh:ii A",dayText:"Day",monthText:"Month",yearText:"Year",hourText:"Hours",minuteText:"Minutes",ampmText:" ",secText:"Seconds",nowText:"Now"},y=function(f){function m(a,b,c){return R[b]!==t?+a[R[b]]:ga[b]!==t?ga[b]:c!==t?c:p[b](x)}function y(a,b,c,e){a.push({values:c,keys:b,label:e})}function b(a,
- b,c,e){return Math.min(e,Math.floor(a/b)*b+c)}function c(a){if(null===a)return a;var b=m(a,"y"),c=m(a,"m"),e=Math.min(m(a,"d"),w.getMaxDayOfMonth(b,c)),d=m(a,"h",0);return w.getDate(b,c,e,m(a,"a",0)?d+12:d,m(a,"i",0),m(a,"s",0),m(a,"u",0))}function da(a,b){var e,d,f=!1,g=!1,i=0,h=0;la=c(q(la));l=c(q(l));if(Q(a))return a;a<la&&(a=la);a>l&&(a=l);d=e=a;if(2!==b)for(f=Q(e);!f&&e<l;)e=new Date(e.getTime()+864E5),f=Q(e),i++;if(1!==b)for(g=Q(d);!g&&d>la;)d=new Date(d.getTime()-864E5),g=Q(d),h++;return 1===
- b&&f?e:2===b&&g?d:h<=i&&g?d:e}function Q(a){return a<la||a>l?!1:ca(a,T)?!0:ca(a,Y)?!1:!0}function ca(a,b){var c,e,d;if(b)for(e=0;e<b.length;e++)if(c=b[e],d=c+"",!c.start)if(c.getTime){if(a.getFullYear()==c.getFullYear()&&a.getMonth()==c.getMonth()&&a.getDate()==c.getDate())return!0}else if(d.match(/w/i)){if(d=+d.replace("w",""),d==a.getDay())return!0}else if(d=d.split("/"),d[1]){if(d[0]-1==a.getMonth()&&d[1]==a.getDate())return!0}else if(d[0]==a.getDate())return!0;return!1}function V(a,b,c,e,d,f,
- g){var i,l,k;if(a)for(i=0;i<a.length;i++)if(l=a[i],k=l+"",!l.start)if(l.getTime)w.getYear(l)==b&&w.getMonth(l)==c&&(f[w.getDay(l)-1]=g);else if(k.match(/w/i)){k=+k.replace("w","");for(h=k-e;h<d;h+=7)0<=h&&(f[h]=g)}else k=k.split("/"),k[1]?k[0]-1==c&&(f[k[1]-1]=g):f[k[0]-1]=g}function G(c,d,f,i,l,h,k,j,H){var C,m,n,x,p,y,r,u,oa,q,z,A,E,B,la,W,M,G,R={},F={h:Z,i:ha,s:fa,a:1},K=w.getDate(l,h,k),ia=["a","h","i","s"];c&&(a.each(c,function(a,b){if(b.start&&(b.apply=!1,C=b.d,m=C+"",n=m.split("/"),C&&(C.getTime&&
- l==w.getYear(C)&&h==w.getMonth(C)&&k==w.getDay(C)||!m.match(/w/i)&&(n[1]&&k==n[1]&&h==n[0]-1||!n[1]&&k==n[0])||m.match(/w/i)&&K.getDay()==+m.replace("w",""))))b.apply=!0,R[K]=!0}),a.each(c,function(c,s){z=B=E=0;A=t;r=y=!0;la=!1;if(s.start&&(s.apply||!s.d&&!R[K])){x=s.start.split(":");p=s.end.split(":");for(q=0;3>q;q++)x[q]===t&&(x[q]=0),p[q]===t&&(p[q]=59),x[q]=+x[q],p[q]=+p[q];x.unshift(11<x[0]?1:0);p.unshift(11<p[0]?1:0);$&&(12<=x[1]&&(x[1]-=12),12<=p[1]&&(p[1]-=12));for(q=0;q<d;q++)if(e[q]!==t){u=
- b(x[q],F[ia[q]],v[ia[q]],D[ia[q]]);oa=b(p[q],F[ia[q]],v[ia[q]],D[ia[q]]);G=M=W=0;$&&1==q&&(W=x[0]?12:0,M=p[0]?12:0,G=e[0]?12:0);y||(u=0);r||(oa=D[ia[q]]);if((y||r)&&u+W<e[q]+G&&e[q]+G<oa+M)la=!0;e[q]!=u&&(y=!1);e[q]!=oa&&(r=!1)}if(!H)for(q=d+1;4>q;q++)0<x[q]&&(E=F[f]),p[q]<D[ia[q]]&&(B=F[f]);la||(u=b(x[d],F[f],v[f],D[f])+E,oa=b(p[d],F[f],v[f],D[f])-B,y&&(z=0>u?0:u>D[f]?a(".dw-li",j).length:g(j,u)+0),r&&(A=0>oa?0:oa>D[f]?a(".dw-li",j).length:g(j,oa)+1));if(y||r||la)H?a(".dw-li",j).slice(z,A).addClass("dw-v"):
- a(".dw-li",j).slice(z,A).removeClass("dw-v")}}))}function g(b,c){return a(".dw-li",b).index(a('.dw-li[data-val="'+c+'"]',b))}function q(b,c){var e=[];if(null===b||b===t)return b;a.each("y,m,d,a,h,i,s,u".split(","),function(a,d){R[d]!==t&&(e[R[d]]=p[d](b));c&&(ga[d]=p[d](b))});return e}function aa(a){var b,c,e,d=[];if(a){for(b=0;b<a.length;b++)if(c=a[b],c.start&&c.start.getTime)for(e=new Date(c.start);e<=c.end;)d.push(new Date(e.getFullYear(),e.getMonth(),e.getDate())),e.setDate(e.getDate()+1);else d.push(c);
- return d}return a}var k=a(this),i={},N;if(k.is("input")){switch(k.attr("type")){case "date":N="yy-mm-dd";break;case "datetime":N="yy-mm-ddTHH:ii:ssZ";break;case "datetime-local":N="yy-mm-ddTHH:ii:ss";break;case "month":N="yy-mm";i.dateOrder="mmyy";break;case "time":N="HH:ii:ss"}var F=k.attr("min"),k=k.attr("max");F&&(i.minDate=u.parseDate(N,F));k&&(i.maxDate=u.parseDate(N,k))}var r,h,A,B,ja,ea,ba,v,D,F=a.extend({},f.settings),w=a.extend(f.settings,j.datetime.defaults,d,i,F),W=0,e=[],i=[],E=[],R={},
- ga={},p={y:function(a){return w.getYear(a)},m:function(a){return w.getMonth(a)},d:function(a){return w.getDay(a)},h:function(a){a=a.getHours();a=$&&12<=a?a-12:a;return b(a,Z,M,C)},i:function(a){return b(a.getMinutes(),ha,ia,za)},s:function(a){return b(a.getSeconds(),fa,oa,ka)},u:function(a){return a.getMilliseconds()},a:function(a){return P&&11<a.getHours()?1:0}},Y=w.invalid,T=w.valid,F=w.preset,z=w.dateOrder,S=w.timeWheels,K=z.match(/D/),P=S.match(/a/i),$=S.match(/h/),H="datetime"==F?w.dateFormat+
- w.separator+w.timeFormat:"time"==F?w.timeFormat:w.dateFormat,x=new Date,k=w.steps||{},Z=k.hour||w.stepHour||1,ha=k.minute||w.stepMinute||1,fa=k.second||w.stepSecond||1,k=k.zeroBased,la=w.minDate||new Date(w.startYear,0,1),l=w.maxDate||new Date(w.endYear,11,31,23,59,59),M=k?0:la.getHours()%Z,ia=k?0:la.getMinutes()%ha,oa=k?0:la.getSeconds()%fa,C=Math.floor((($?11:23)-M)/Z)*Z+M,za=Math.floor((59-ia)/ha)*ha+ia,ka=Math.floor((59-ia)/ha)*ha+ia;N=N||H;if(F.match(/date/i)){a.each(["y","m","d"],function(a,
- b){r=z.search(RegExp(b,"i"));-1<r&&E.push({o:r,v:b})});E.sort(function(a,b){return a.o>b.o?1:-1});a.each(E,function(a,b){R[b.v]=a});k=[];for(h=0;3>h;h++)if(h==R.y){W++;B=[];A=[];ja=w.getYear(la);ea=w.getYear(l);for(r=ja;r<=ea;r++)A.push(r),B.push((z.match(/yy/i)?r:(r+"").substr(2,2))+(w.yearSuffix||""));y(k,A,B,w.yearText)}else if(h==R.m){W++;B=[];A=[];for(r=0;12>r;r++)ja=z.replace(/[dy]/gi,"").replace(/mm/,(9>r?"0"+(r+1):r+1)+(w.monthSuffix||"")).replace(/m/,r+1+(w.monthSuffix||"")),A.push(r),B.push(ja.match(/MM/)?
- ja.replace(/MM/,'<span class="dw-mon">'+w.monthNames[r]+"</span>"):ja.replace(/M/,'<span class="dw-mon">'+w.monthNamesShort[r]+"</span>"));y(k,A,B,w.monthText)}else if(h==R.d){W++;B=[];A=[];for(r=1;32>r;r++)A.push(r),B.push((z.match(/dd/i)&&10>r?"0"+r:r)+(w.daySuffix||""));y(k,A,B,w.dayText)}i.push(k)}if(F.match(/time/i)){ba=!0;E=[];a.each(["h","i","s","a"],function(a,b){a=S.search(RegExp(b,"i"));-1<a&&E.push({o:a,v:b})});E.sort(function(a,b){return a.o>b.o?1:-1});a.each(E,function(a,b){R[b.v]=W+
- a});k=[];for(h=W;h<W+4;h++)if(h==R.h){W++;B=[];A=[];for(r=M;r<($?12:24);r+=Z)A.push(r),B.push($&&0===r?12:S.match(/hh/i)&&10>r?"0"+r:r);y(k,A,B,w.hourText)}else if(h==R.i){W++;B=[];A=[];for(r=ia;60>r;r+=ha)A.push(r),B.push(S.match(/ii/)&&10>r?"0"+r:r);y(k,A,B,w.minuteText)}else if(h==R.s){W++;B=[];A=[];for(r=oa;60>r;r+=fa)A.push(r),B.push(S.match(/ss/)&&10>r?"0"+r:r);y(k,A,B,w.secText)}else h==R.a&&(W++,F=S.match(/A/),y(k,[0,1],F?[w.amText.toUpperCase(),w.pmText.toUpperCase()]:[w.amText,w.pmText],
- w.ampmText));i.push(k)}f.getVal=function(a){return f._hasValue||a?c(f.getArrayVal(a)):null};f.setDate=function(a,b,c,e,d){f.setArrayVal(q(a),b,d,e,c)};f.getDate=f.getVal;f.format=H;f.order=R;f.handlers.now=function(){f.setDate(new Date,!1,0.3,!0,!0)};f.buttons.now={text:w.nowText,handler:"now"};Y=aa(Y);T=aa(T);v={y:la.getFullYear(),m:0,d:1,h:M,i:ia,s:oa,a:0};D={y:l.getFullYear(),m:11,d:31,h:C,i:za,s:ka,a:1};return{wheels:i,headerText:w.headerText?function(){return u.formatDate(H,c(f.getArrayVal(!0)),
- w)}:!1,formatValue:function(a){return u.formatDate(N,c(a),w)},parseValue:function(a){a||(ga={});return q(a?u.parseDate(N,a,w):w.defaultValue||new Date,!!a&&!!a.getTime)},validate:function(b,d,i,h){var d=da(c(f.getArrayVal(!0)),h),k=q(d),j=m(k,"y"),H=m(k,"m"),C=!0,x=!0;a.each("y,m,d,a,h,i,s".split(","),function(c,e){if(R[e]!==t){var d=v[e],f=D[e],i=31,h=m(k,e),n=a(".dw-ul",b).eq(R[e]);if(e=="d"){f=i=w.getMaxDayOfMonth(j,H);K&&a(".dw-li",n).each(function(){var b=a(this),c=b.data("val"),e=w.getDate(j,
- H,c).getDay(),c=z.replace(/[my]/gi,"").replace(/dd/,(c<10?"0"+c:c)+(w.daySuffix||"")).replace(/d/,c+(w.daySuffix||""));a(".dw-i",b).html(c.match(/DD/)?c.replace(/DD/,'<span class="dw-day">'+w.dayNames[e]+"</span>"):c.replace(/D/,'<span class="dw-day">'+w.dayNamesShort[e]+"</span>"))})}C&&la&&(d=p[e](la));x&&l&&(f=p[e](l));if(e!="y"){var Z=g(n,d),q=g(n,f);a(".dw-li",n).removeClass("dw-v").slice(Z,q+1).addClass("dw-v");e=="d"&&a(".dw-li",n).removeClass("dw-h").slice(i).addClass("dw-h")}h<d&&(h=d);h>
- f&&(h=f);C&&(C=h==d);x&&(x=h==f);if(e=="d"){d=w.getDate(j,H,1).getDay();f={};V(Y,j,H,d,i,f,1);V(T,j,H,d,i,f,0);a.each(f,function(b,c){c&&a(".dw-li",n).eq(b).removeClass("dw-v")})}}});ba&&a.each(["a","h","i","s"],function(c,d){var g=m(k,d),i=m(k,"d"),l=a(".dw-ul",b).eq(R[d]);R[d]!==t&&(G(Y,c,d,k,j,H,i,l,0),G(T,c,d,k,j,H,i,l,1),e[c]=+f.getValidCell(g,l,h).val)});f._tempWheelArray=k}}};a.each(["date","time","datetime"],function(a,d){j.presets.scroller[d]=y})})(jQuery);(function(a,t,j,u){var f=a.mobiscroll,d=f.presets.scroller,y=f.util,n=y.has3d,m=y.jsPrefix,O=y.testTouch,b={controls:["calendar"],firstDay:0,weekDays:"short",maxMonthWidth:170,months:1,preMonths:1,highlight:!0,highlightNow:!0,swipe:!0,liveSwipe:!0,divergentDayChange:!0,quickNav:!0,navigation:"yearMonth",todayClass:"dw-cal-today",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left6",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right6",dateText:"Date",timeText:"Time",calendarText:"Calendar",todayText:"Today",prevMonthText:"Previous Month",
- nextMonthText:"Next Month",prevYearText:"Previous Year",nextYearText:"Next Year"};d.calbase=function(c){function t(b,c,e){var d,f,g,i,h={},l=ra+Ia;b&&a.each(b,function(a,b){d=b.d||b.start||b;f=d+"";if(b.start&&b.end)for(i=new Date(b.start);i<=b.end;)g=new Date(i.getFullYear(),i.getMonth(),i.getDate()),h[g]=h[g]||[],h[g].push(b),i.setDate(i.getDate()+1);else if(d.getTime)g=new Date(d.getFullYear(),d.getMonth(),d.getDate()),h[g]=h[g]||[],h[g].push(b);else if(f.match(/w/i)){var k=+f.replace("w",""),
- j=0,H=o.getDate(c,e-ra-pa,1).getDay();1<o.firstDay-H+1&&(j=7);for(E=0;E<5*Ga;E++)g=o.getDate(c,e-ra-pa,7*E-j-H+1+k),h[g]=h[g]||[],h[g].push(b)}else if(f=f.split("/"),f[1])11<=e+l&&(g=o.getDate(c+1,f[0]-1,f[1]),h[g]=h[g]||[],h[g].push(b)),1>=e-l&&(g=o.getDate(c-1,f[0]-1,f[1]),h[g]=h[g]||[],h[g].push(b)),g=o.getDate(c,f[0]-1,f[1]),h[g]=h[g]||[],h[g].push(b);else for(E=0;E<Ga;E++)g=o.getDate(c,e-ra-pa+E,f[0]),o.getDay(g)==f[0]&&(h[g]=h[g]||[],h[g].push(b))});return h}function Q(a,b){Ja=t(o.invalid,a,
- b);Db=t(o.valid,a,b);c.onGenMonth(a,b)}function ca(a,b,c,d,f,g,h){var i='<div class="dw-cal-h dw-cal-sc-c dw-cal-'+a+"-c "+(o.calendarClass||"")+'"><div class="dw-cal-sc"><div class="dw-cal-sc-p"><div class="dw-cal-sc-tbl"><div class="dw-cal-sc-row">';for(e=1;e<=b;e++)i=12>=e||e>c?i+'<div class="dw-cal-sc-m-cell dw-cal-sc-cell dw-cal-sc-empty"><div class="dw-i"> </div></div>':i+('<div tabindex="0" role="button"'+(g?' aria-label="'+g[e-13]+'"':"")+' class="dwb-e dwb-nhl dw-cal-sc-m-cell dw-cal-sc-cell dw-cal-'+
- a+'-s" data-val='+(d+e-13)+'><div class="dw-i dw-cal-sc-tbl"><div class="dw-cal-sc-cell">'+(h?h[e-13]:d+e-13+f)+"</div></div></div>"),e<b&&(0===e%12?i+='</div></div></div><div class="dw-cal-sc-p" style="'+(Ka?"top":Ya?"right":"left")+":"+100*Math.round(e/12)+'%"><div class="dw-cal-sc-tbl"><div class="dw-cal-sc-row">':0===e%3&&(i+='</div><div class="dw-cal-sc-row">'));return i+"</div></div></div></div></div>"}function V(b,e){var d,f,g,h,i,l,k,j,H,C,s,x,n,m,Z=1,p=0;d=o.getDate(b,e,1);var q=o.getYear(d),
- t=o.getMonth(d),y=null===o.defaultValue&&!c._hasValue?null:c.getDate(!0),r=o.getDate(q,t,1).getDay(),v='<div class="dw-cal-table">',ha='<div class="dw-week-nr-c">';1<o.firstDay-r+1&&(p=7);for(m=0;42>m;m++)n=m+o.firstDay-p,d=o.getDate(q,t,n-r+1),f=d.getFullYear(),g=d.getMonth(),h=d.getDate(),i=o.getMonth(d),l=o.getDay(d),x=o.getMaxDayOfMonth(f,g),k=f+"-"+g+"-"+h,g=a.extend({valid:d<new Date(La.getFullYear(),La.getMonth(),La.getDate())||d>ya?!1:Ja[d]===u||Db[d]!==u,selected:y&&y.getFullYear()===f&&
- y.getMonth()===g&&y.getDate()===h},c.getDayProps(d,y)),j=g.valid,H=g.selected,f=g.cssClass,C=d.getTime()===(new Date).setHours(0,0,0,0),s=i!==t,Ab[k]=g,0===m%7&&(v+=(m?"</div>":"")+'<div class="dw-cal-row'+(o.highlight&&y&&0<=y-d&&6048E5>y-d?" dw-cal-week-hl":"")+'">'),ob&&1==d.getDay()&&("month"==ob&&s&&1<Z?Z=1==h?1:2:"year"==ob&&(Z=o.getWeekNumber(d)),ha+='<div class="dw-week-nr"><div class="dw-week-nr-i">'+Z+"</div></div>",Z++),v+='<div role="button" tabindex="-1" aria-label="'+(C?o.todayText+
- ", ":"")+o.dayNames[d.getDay()]+", "+o.monthNames[i]+" "+l+" "+(g.ariaLabel?", "+g.ariaLabel:"")+'"'+(s&&!Xa?' aria-hidden="true"':"")+(H?' aria-selected="true"':"")+(j?"":' aria-disabled="true"')+' data-day="'+n%7+'" data-full="'+k+'"class="dw-cal-day '+(o.dayClass||"")+(H?" dw-sel":"")+(C?" "+o.todayClass:"")+(f?" "+f:"")+(1==l?" dw-cal-day-first":"")+(l==x?" dw-cal-day-last":"")+(s?" dw-cal-day-diff":"")+(j?" dw-cal-day-v dwb-e dwb-nhl":" dw-cal-day-inv")+'"><div class="dw-i '+(H?ua:"")+" "+(o.innerDayClass||
- "")+'"><div class="dw-cal-day-fg">'+l+"</div>"+(g.markup||"")+'<div class="dw-cal-day-frame"></div></div></div>';return v+("</div></div>"+ha+"</div>")}function G(b,c,d){var f=o.getDate(b,c,1),h=o.getYear(f),f=o.getMonth(f),i=h+Ea;if(ab){cb&&cb.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ua);rb&&rb.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ua);cb=a('.dw-cal-year-s[data-val="'+h+'"]',p).addClass("dw-sel").attr("aria-selected",
- "true");rb=a('.dw-cal-month-s[data-val="'+f+'"]',p).addClass("dw-sel").attr("aria-selected","true");cb.find(".dw-i").addClass(ua);rb.find(".dw-i").addClass(ua);Ua&&Ua.scroll(cb,d);a(".dw-cal-month-s",p).removeClass("dwb-d");if(h===ka)for(e=0;e<sa;e++)a('.dw-cal-month-s[data-val="'+e+'"]',p).addClass("dwb-d");if(h===s)for(e=J+1;12>=e;e++)a('.dw-cal-month-s[data-val="'+e+'"]',p).addClass("dwb-d")}1==C.length&&C.attr("aria-label",h).html(i);for(e=0;e<na;++e)f=o.getDate(b,c-pa+e,1),h=o.getYear(f),f=o.getMonth(f),
- i=h+Ea,a(ia[e]).attr("aria-label",o.monthNames[f]+(Fa?"":" "+h)).html((!Fa&&za<oa?i+" ":"")+la[f]+(!Fa&&za>oa?" "+i:"")),1<C.length&&a(C[e]).html(i);o.getDate(b,c-pa-1,1)<qa?q(a(".dw-cal-prev-m",p)):g(a(".dw-cal-prev-m",p));o.getDate(b,c+na-pa,1)>X?q(a(".dw-cal-next-m",p)):g(a(".dw-cal-next-m",p));o.getDate(b,c,1).getFullYear()<=qa.getFullYear()?q(a(".dw-cal-prev-y",p)):g(a(".dw-cal-prev-y",p));o.getDate(b,c,1).getFullYear()>=X.getFullYear()?q(a(".dw-cal-next-y",p)):g(a(".dw-cal-next-y",p))}function g(a){a.removeClass(qb).find(".dw-cal-btn-txt").removeAttr("aria-disabled")}
- function q(a){a.addClass(qb).find(".dw-cal-btn-txt").attr("aria-disabled","true")}function aa(b,e){if($&&("calendar"===Va||e)){var d,f,g=o.getDate(ta,ma,1),h=Math.abs(12*(o.getYear(b)-o.getYear(g))+o.getMonth(b)-o.getMonth(g));c.needsSlide&&h&&(ta=o.getYear(b),ma=o.getMonth(b),b>g?(f=h>ra-pa+na-1,ma-=f?0:h-ra,d="next"):b<g&&(f=h>ra+pa,ma+=f?0:h-ra,d="prev"),F(ta,ma,d,Math.min(h,ra),f,!0));e||(c.trigger("onDayHighlight",[b]),o.highlight&&(a(".dw-sel .dw-i",T).removeClass(ua),a(".dw-sel",T).removeClass("dw-sel").removeAttr("aria-selected"),
- a(".dw-cal-week-hl",T).removeClass("dw-cal-week-hl"),(null!==o.defaultValue||c._hasValue)&&a('.dw-cal-day[data-full="'+b.getFullYear()+"-"+b.getMonth()+"-"+b.getDate()+'"]',T).addClass("dw-sel").attr("aria-selected","true").find(".dw-i").addClass(ua).closest(".dw-cal-row").addClass("dw-cal-week-hl")));c.needsSlide=!0}}function k(a,b){Q(a,b);for(e=0;e<Ga;e++)xa[e].html(V(a,b-pa-ra+e));N();c.needsRefresh=!1;c.trigger("onMonthLoaded",[a,b])}function i(b,c,e){var d=ra,f=ra;if(e){for(;f&&o.getDate(b,c+
- d+na-pa-1,1)>X;)f--;for(;d&&o.getDate(b,c-f-pa,1)<qa;)d--}a.extend(l.settings,{contSize:na*S,snap:S,minScroll:K-(Ya?d:f)*S,maxScroll:K+(Ya?f:d)*S});l.refresh()}function N(){ob&&Z.html(a(".dw-week-nr-c",xa[ra]).html());a(".dw-cal-slide-a .dw-cal-day",z).attr("tabindex",0)}function F(b,d,f,g,j,H,C){b&&fb.push({y:b,m:d,dir:f,slideNr:g,load:j,active:H,callback:C});if(!Za){var s=fb.shift(),b=s.y,d=s.m,f="next"===s.dir,g=s.slideNr,j=s.load,H=s.active,C=s.callback||Bb,s=o.getDate(b,d,1),b=o.getYear(s),d=
- o.getMonth(s);Za=!0;c.changing=!0;c.trigger("onMonthChange",[b,d]);Q(b,d);if(j)for(e=0;e<na;e++)xa[f?Ga-na+e:e].html(V(b,d-pa+e));H&&Aa.addClass("dw-cal-slide-a");setTimeout(function(){c.ariaMessage(o.monthNames[d]+" "+b);G(b,d,200);K=f?K-S*g*gb:K+S*g*gb;l.scroll(K,fa?200:0,function(){setTimeout(function(){var l;if(xa.length){Aa.removeClass("dw-cal-slide-a").attr("aria-hidden","true");if(f){l=xa.splice(0,g);for(e=0;e<g;e++)xa.push(l[e]),h(xa[xa.length-1],+xa[xa.length-2].data("curr")+100*gb)}else{l=
- xa.splice(Ga-g,g);for(e=g-1;0<=e;e--)xa.unshift(l[e]),h(xa[0],+xa[1].data("curr")-100*gb)}for(e=0;e<g;e++)xa[f?Ga-g+e:e].html(V(b,d-pa-ra+e+(f?Ga-g:0))),j&&xa[f?e:Ga-g+e].html(V(b,d-pa-ra+e+(f?0:Ga-g)));for(e=0;e<na;e++)xa[ra+e].addClass("dw-cal-slide-a").removeAttr("aria-hidden");i(b,d,!0);Za=!1}fb.length?setTimeout(function(){F()},10):(ta=b,ma=d,c.changing=!1,a(".dw-cal-day",z).attr("tabindex",-1),N(),c.needsRefresh?c.isVisible()&&$&&k(ta,ma):c.trigger("onMonthLoaded",[b,d]),C())},fa?0:200)})},
- 10)}}function r(){var b=a(this),d=c.live,e=c.getDate(!0),f=b.attr("data-full"),g=f.split("-"),g=new Date(g[0],g[1],g[2]),e=new Date(g.getFullYear(),g.getMonth(),g.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()),h=b.hasClass("dw-sel");if((Xa||!b.hasClass("dw-cal-day-diff"))&&!1!==c.trigger("onDayChange",[a.extend(Ab[f],{date:e,cell:this,selected:h})]))c.needsSlide=!1,P=!0,c.setDate(e,d,0.2,!d,!0),o.divergentDayChange&&(Ta=!0,g<o.getDate(ta,ma-pa,1)?B():g>o.getDate(ta,ma-pa+na,0)&&A(),Ta=!1)}
- function h(a,b){a.data("curr",b);n?a[0].style[m+"Transform"]="translate3d("+(Ka?"0,"+b+"%,":b+"%,0,")+"0)":a[0].style[Ka?"top":"left"]=b+"%"}function A(){Ta&&o.getDate(ta,ma+na-pa,1)<=X&&a.mobiscroll.running&&F(ta,++ma,"next",1,!1,!0,A)}function B(){Ta&&o.getDate(ta,ma-pa-1,1)>=qa&&a.mobiscroll.running&&F(ta,--ma,"prev",1,!1,!0,B)}function ja(b){Ta&&o.getDate(ta,ma,1)<=o.getDate(o.getYear(X)-1,o.getMonth(X)-Ia,1)&&a.mobiscroll.running?F(++ta,ma,"next",ra,!0,!0,function(){ja(b)}):Ta&&!b.hasClass("dwb-d")&&
- a.mobiscroll.running&&F(o.getYear(X),o.getMonth(X)-Ia,"next",ra,!0,!0)}function ea(b){Ta&&o.getDate(ta,ma,1)>=o.getDate(o.getYear(qa)+1,o.getMonth(qa)+pa,1)&&a.mobiscroll.running?F(--ta,ma,"prev",ra,!0,!0,function(){ea(b)}):Ta&&!b.hasClass("dwb-d")&&a.mobiscroll.running&&F(o.getYear(qa),o.getMonth(qa)+pa,"prev",ra,!0,!0)}function ba(a,b){a.hasClass("dw-cal-v")||(a.addClass("dw-cal-v"+(b?"":" dw-cal-p-in")).removeClass("dw-cal-p-out dw-cal-h"),c.trigger("onSelectShow",[]))}function v(a,b){a.hasClass("dw-cal-v")&&
- a.removeClass("dw-cal-v dw-cal-p-in").addClass("dw-cal-h"+(b?"":" dw-cal-p-out"))}function D(a,b){(b||a).hasClass("dw-cal-v")?v(a):ba(a)}function w(){a(this).removeClass("dw-cal-p-out dw-cal-p-in")}var W,e,E,R,ga,p,Y,T,z,S,K,P,$,H,x,Z,ha,fa,la,l,M,ia,oa,C,za,ka,s,sa,J,qa,X,La,ya,Ba,ta,ma,hb,ib,Db,Ja,Sa,Va,Za,Ta,na,Ga,Ia,pa,Xa,Ua,cb,rb,Fb=this,Aa=[],xa=[],fb=[],wa={},Ab={},Bb=function(){},Vb=a.extend({},c.settings),o=a.extend(c.settings,b,Vb),Wa="full"==o.weekDays?"":"min"==o.weekDays?"Min":"Short",
- ob=o.weekCounter,Hb=o.layout||(/top|bottom/.test(o.display)?"liquid":""),Ha="liquid"==Hb&&"bubble"!==o.display,yb="modal"==o.display,Ya=o.rtl,gb=Ya?-1:1,Gb=Ha?null:o.calendarWidth,Ka="vertical"==o.swipeDirection,ab=o.quickNav,ra=o.preMonths,Fa="yearMonth"==o.navigation,Da=o.controls.join(","),bb=(!0===o.tabs||!1!==o.tabs&&Ha)&&1<o.controls.length,L=!bb&&o.tabs===u&&!Ha&&1<o.controls.length,Ea=o.yearSuffix||"",ua=o.activeClass||"",pb="dw-sel "+(o.activeTabClass||""),kb=o.activeTabInnerClass||"",qb=
- "dwb-d "+(o.disabledClass||""),Qa="",va="";Da.match(/calendar/)?$=!0:ab=!1;Da.match(/date/)&&(wa.date=1);Da.match(/time/)&&(wa.time=1);$&&wa.date&&(bb=!0,L=!1);o.layout=Hb;o.preset=(wa.date||$?"date":"")+(wa.time?"time":"");if("inline"==o.display)a(this).closest('[data-role="page"]').on("pageshow",function(){c.position()});c.changing=!1;c.needsRefresh=!1;c.needsSlide=!0;c.getDayProps=Bb;c.onGenMonth=Bb;c.prepareObj=t;c.refresh=function(){c.changing?c.needsRefresh=true:c.isVisible()&&$&&k(ta,ma)};
- c.navigate=function(a,b){var d,e,f=c.isVisible();if(b&&f)aa(a,true);else{d=o.getYear(a);e=o.getMonth(a);if(f&&(d!=ta||e!=ma)){c.trigger("onMonthChange",[d,e]);G(d,e);k(d,e);i(a.getFullYear(),a.getMonth(),true)}ta=d;ma=e}};c.showMonthView=function(){if(ab&&!fa){v(va,true);v(Qa,true);ba(ha,true);fa=true}};c.changeTab=function(b){if(c._isVisible&&wa[b]&&Va!=b){Va=b;a(".dw-cal-pnl",p).removeClass("dw-cal-p-in").addClass("dw-cal-pnl-h");a(".dw-cal-tab",p).removeClass(pb).removeAttr("aria-selected").find(".dw-i").removeClass(kb);
- a('.dw-cal-tab[data-control="'+b+'"]',p).addClass(pb).attr("aria-selected","true").find(".dw-i").addClass(kb);wa[Va].removeClass("dw-cal-pnl-h").addClass("dw-cal-p-in");if(Va==="calendar"){W=c.getDate(true);(W.getFullYear()!==Ba.getFullYear()||W.getMonth()!==Ba.getMonth()||W.getDate()!==Ba.getDate())&&aa(W)}else{Ba=c.getDate(true);c.setDate(Ba,false,0,true)}c.showMonthView();c.trigger("onTabChange",[Va])}};R=d.datetime.call(this,c);oa=o.dateOrder.search(/m/i);za=o.dateOrder.search(/y/i);a.extend(R,
- {ariaMessage:o.calendarText,onMarkupReady:function(b){var d,g,i="";p=b;Y=o.display=="inline"?a(this).is("div")?a(this):a(this).parent():c._window;Ba=c.getDate(true);if(!ta){ta=o.getYear(Ba);ma=o.getMonth(Ba)}K=0;x=true;Za=false;la=o.monthNames;Va="calendar";if(o.minDate){qa=new Date(o.minDate.getFullYear(),o.minDate.getMonth(),1);La=o.minDate}else La=qa=new Date(o.startYear,0,1);if(o.maxDate){X=new Date(o.maxDate.getFullYear(),o.maxDate.getMonth(),1);ya=o.maxDate}else ya=X=new Date(o.endYear,11,31,
- 23,59,59);b.addClass("dw-calendar"+(n?"":" dw-cal-no3d"));ga=a(".dw",b);Sa=a(".dwcc",b);wa.date?wa.date=a(".dwc",p).eq(0):$&&a(".dwc",p).eq(0).addClass("dwc-hh");if(wa.time)wa.time=a(".dwc",p).eq(1);if($){na=o.months=="auto"?Math.max(1,Math.min(3,Math.floor((Gb||Y[0].innerWidth||Y.innerWidth())/280))):o.months;Ga=na+2*ra;Ia=Math.floor(na/2);pa=Math.round(na/2)-1;Xa=o.showDivergentDays===u?na<2:o.showDivergentDays;Ka=Ka&&na<2;g='<div class="dw-cal-btnw"><div class="'+(Ya?"dw-cal-next-m":"dw-cal-prev-m")+
- ' dw-cal-prev dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt '+(o.btnCalPrevClass||"")+'" aria-label="'+o.prevMonthText+'"></div></div>';for(e=0;e<na;++e)g=g+('<div class="dw-cal-btnw-m" style="width: '+100/na+'%"><span role="button" class="dw-cal-month"></span></div>');g=g+('<div class="'+(Ya?"dw-cal-prev-m":"dw-cal-next-m")+' dw-cal-next dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt '+(o.btnCalNextClass||"")+'" aria-label="'+o.nextMonthText+
- '"></div></div></div>');Fa&&(i='<div class="dw-cal-btnw"><div class="'+(Ya?"dw-cal-next-y":"dw-cal-prev-y")+' dw-cal-prev dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt '+(o.btnCalPrevClass||"")+'" aria-label="'+o.prevYearText+'"></div></div><span role="button" class="dw-cal-year"></span><div class="'+(Ya?"dw-cal-prev-y":"dw-cal-next-y")+' dw-cal-next dw-cal-btn dwb dwb-e"><div role="button" tabindex="0" class="dw-cal-btn-txt '+(o.btnCalNextClass||"")+'" aria-label="'+
- o.nextYearText+'"></div></div></div>');if(ab){ka=o.getYear(qa);s=o.getYear(X);sa=o.getMonth(qa);J=o.getMonth(X);ib=Math.ceil((s-ka+1)/12)+2;Qa=ca("month",36,24,0,"",o.monthNames,o.monthNamesShort);va=ca("year",ib*12,s-ka+13,ka,Ea)}H='<div class="mbsc-w-p dw-cal-c"><div class="dw-cal '+(na>1?" dw-cal-multi ":"")+(ob?" dw-weeks ":"")+(Ka?" mbsc-cal-vertical":"")+(Xa?"":" dw-hide-diff ")+(o.highlightNow?" dw-hl-now ":"")+(o.calendarClass||"")+'"><div class="dw-cal-header"><div class="dw-cal-btnc '+(Fa?
- "dw-cal-btnc-ym":"dw-cal-btnc-m")+'">'+(za<oa||na>1?i+g:g+i)+'</div></div><div class="dw-cal-body"><div class="dw-cal-m-c dw-cal-v"><div class="dw-cal-days-c">';for(E=0;E<na;++E){H=H+('<div aria-hidden="true" class="dw-cal-days" style="width: '+100/na+'%"><table cellpadding="0" cellspacing="0"><tr>');for(e=0;e<7;e++)H=H+("<th>"+o["dayNames"+Wa][(e+o.firstDay)%7]+"</th>");H=H+"</tr></table></div>"}H=H+('</div><div class="dw-cal-anim-c '+(o.calendarClass||"")+'"><div class="dw-week-nrs-c '+(o.weekNrClass||
- "")+'"><div class="dw-week-nrs"></div></div><div class="dw-cal-anim">');for(e=0;e<na+2*ra;e++)H=H+'<div class="dw-cal-slide" aria-hidden="true"></div>';H=H+("</div></div></div>"+Qa+va+"</div></div></div>");wa.calendar=a(H)}a.each(o.controls,function(b,c){wa[c]=a('<div class="dw-cal-pnl" id="'+(Fb.id+"_dw_pnl_"+b)+'"></div>').append(a('<div class="dw-cal-pnl-i"></div>').append(wa[c])).appendTo(Sa)});d='<div class="dw-cal-tabs"><ul role="tablist">';a.each(o.controls,function(a,b){wa[b]&&(d=d+('<li role="tab" aria-controls="'+
- (Fb.id+"_dw_pnl_"+a)+'" class="dw-cal-tab '+(a?"":pb)+'" data-control="'+b+'"><a href="#" class="dwb-e dwb-nhl dw-i '+(!a?kb:"")+'">'+o[b+"Text"]+"</a></li>"))});d=d+"</ul></div>";Sa.before(d);T=a(".dw-cal-anim-c",p);z=a(".dw-cal-anim",T);Z=a(".dw-week-nrs",T);if($){fa=true;Aa=a(".dw-cal-slide",z).each(function(b,c){xa.push(a(c))});Aa.slice(ra,ra+na).addClass("dw-cal-slide-a").removeAttr("aria-hidden");for(e=0;e<Ga;e++)h(xa[e],100*(e-ra)*gb);k(ta,ma);l=new f.classes.ScrollView(T[0],{axis:Ka?"Y":"X",
- easing:"",contSize:0,snap:1,maxSnapScroll:ra,moveElement:z,mousewheel:o.mousewheel,swipe:o.swipe,liveSwipe:o.liveSwipe,time:200,lock:true,onGestureStart:function(a,b){b.settings.scrollLock=c.scrollLock},onAnimationEnd:function(a){(a=Math.round(((Ka?a.posY:a.posX)-K)/S)*gb)&&F(ta,ma-a,a>0?"prev":"next",a>0?a:-a)}})}ia=a(".dw-cal-month",p);C=a(".dw-cal-year",p);ha=a(".dw-cal-m-c",p);if(ab){ha.on("webkitAnimationEnd animationend",w);Qa=a(".dw-cal-month-c",p).on("webkitAnimationEnd animationend",w);va=
- a(".dw-cal-year-c",p).on("webkitAnimationEnd animationend",w);a(".dw-cal-sc-p",p);hb={axis:Ka?"Y":"X",contSize:0,snap:1,maxSnapScroll:1,rtl:o.rtl,mousewheel:o.mousewheel,swipe:o.swipe,liveSwipe:o.liveSwipe,time:200};Ua=new f.classes.ScrollView(va[0],hb);M=new f.classes.ScrollView(Qa[0],hb)}Ha?b.addClass("dw-cal-liq"):a(".dw-cal",p).width(Gb||280*na);o.calendarHeight&&a(".dw-cal-anim-c",p).height(o.calendarHeight);c.tap(T,function(b){b=a(b.target);if(!Za&&!l.scrolled&&o.readonly!==true){b=b.closest(".dw-cal-day",
- this);b.hasClass("dw-cal-day-v")&&r.call(b[0])}});a(".dw-cal-btn",p).on("touchstart mousedown keydown",function(b){var c=a(this);if(b.type!=="keydown"){b.preventDefault();b=O(b,this)}else b=b.keyCode===32;if(!Ta&&b&&!c.hasClass("dwb-d")){Ta=true;c.hasClass("dw-cal-prev-m")?B():c.hasClass("dw-cal-next-m")?A():c.hasClass("dw-cal-prev-y")?ea(c):c.hasClass("dw-cal-next-y")&&ja(c);a(j).on("mouseup.dwbtn",function(){a(j).off(".dwbtn");Ta=false})}}).on("touchend touchcancel keyup",function(){Ta=false});
- a(".dw-cal-tab",p).on("touchstart click",function(b){O(b,this)&&a.mobiscroll.running&&c.changeTab(a(this).attr("data-control"))});if(ab){c.tap(a(".dw-cal-month",p),function(){if(!va.hasClass("dw-cal-v")){D(ha);fa=ha.hasClass("dw-cal-v")}D(Qa);v(va)});c.tap(a(".dw-cal-year",p),function(){va.hasClass("dw-cal-v")||Ua.scroll(cb);if(!Qa.hasClass("dw-cal-v")){D(ha);fa=ha.hasClass("dw-cal-v")}D(va);v(Qa)});c.tap(a(".dw-cal-month-s",p),function(){!M.scrolled&&!a(this).hasClass("dwb-d")&&c.navigate(o.getDate(ta,
- a(this).attr("data-val"),1))});c.tap(a(".dw-cal-year-s",p),function(){if(!Ua.scrolled){W=o.getDate(a(this).attr("data-val"),ma,1);c.navigate(new Date(y.constrain(W,qa,X)))}});c.tap(va,function(){if(!Ua.scrolled){v(va);ba(ha);fa=true}});c.tap(Qa,function(){if(!M.scrolled){v(Qa);ba(ha);fa=true}})}},onShow:function(){$&&G(ta,ma)},onPosition:function(b,d,f){var g,h,l,k=0,j=0,H=0;if(Ha){yb&&T.height("");Sa.height("");z.width("")}S&&(l=S);if(S=Math.round(Math.round(parseInt(T.css(Ka?"height":"width")))/
- na)){p.removeClass("mbsc-cal-m mbsc-cal-l");S>1024?p.addClass("mbsc-cal-l"):S>640&&p.addClass("mbsc-cal-m")}if(bb&&(x||Ha)||L){a(".dw-cal-pnl",p).removeClass("dw-cal-pnl-h");a.each(wa,function(a,b){g=b.outerWidth();k=Math.max(k,g);j=Math.max(j,b.outerHeight());H=H+g});if(bb||L&&H>(Y[0].innerWidth||Y.innerWidth())){h=true;Va=a(".dw-cal-tabs .dw-sel",p).attr("data-control");ga.addClass("dw-cal-tabbed")}else{Va="calendar";j=k="";ga.removeClass("dw-cal-tabbed");Sa.css({width:"",height:""})}}if(Ha&&yb){c._isFullScreen=
- true;h&&$&&Sa.height(wa.calendar.outerHeight());b=ga.outerHeight();f>=b&&T.height(f-b+T.outerHeight());$&&(j=Math.max(j,wa.calendar.outerHeight()))}if(h){Sa.css({width:Ha?"":k,height:j});S=Math.round(Math.round(parseInt(T.css(Ka?"height":"width")))/na)}if(S){z[Ka?"height":"width"](S);if(S!==l){if(Fa){la=o.maxMonthWidth>a(".dw-cal-btnw-m",p).width()?o.monthNamesShort:o.monthNames;for(e=0;e<na;++e)a(ia[e]).text(la[o.getMonth(o.getDate(ta,ma-pa+e,1))])}if(ab){f=va[Ka?"height":"width"]();a.extend(Ua.settings,
- {contSize:f,snap:f,minScroll:(2-ib)*f,maxScroll:-f});a.extend(M.settings,{contSize:f,snap:f,minScroll:-f,maxScroll:-f});Ua.refresh();M.refresh();va.hasClass("dw-cal-v")&&Ua.scroll(cb)}if(Ha&&!x&&l){f=K/l;K=f*S}i(ta,ma,!l)}}else S=l;if(h){a(".dw-cal-pnl",p).addClass("dw-cal-pnl-h");wa[Va].removeClass("dw-cal-pnl-h")}c.trigger("onCalResize",[]);x=false},onHide:function(){fb=[];xa=[];ma=ta=Va=null;Za=true;S=0;l&&l.destroy();if(ab&&Ua&&M){Ua.destroy();M.destroy()}},onValidated:function(a){var b,d,e;d=
- c.getDate(true);if(P)b="calendar";else for(e in c.order)e&&c.order[e]===a&&(b=/[mdy]/.test(e)?"date":"time");c.trigger("onSetDate",[{date:d,control:b}]);aa(d);P=false}});return R}})(jQuery,window,document);(function(a,t){var j=a.mobiscroll,u=j.classes,f=j.util,d=f.constrain,y=f.jsPrefix,n=f.prefix,m=f.has3d,O=f.getCoord,b=f.getPosition,c=f.testTouch,da=f.isNumeric,Q=f.isString,ca=window.requestAnimationFrame||function(a){a()},V=window.cancelAnimationFrame||function(){};u.ScrollView=function(f,g,j){function aa(d){X.stopProp&&d.stopPropagation();(X.prevDef||"mousedown"==d.type)&&d.preventDefault();if((!X.lock||!S)&&c(d,this)&&!z&&a.mobiscroll.running)if(A&&A.removeClass("mbsc-btn-a"),ga=!1,S||(A=a(d.target).closest(".mbsc-btn-e",
- this),A.length&&!A.hasClass("mbsc-btn-d")&&(ga=!0,B=setTimeout(function(){A.addClass("mbsc-btn-a")},100))),z=!0,K=!1,s.scrolled=S,l=O(d,"X"),M=O(d,"Y"),e=l,v=ba=ea=0,la=new Date,fa=+b(oa,ka)||0,h(fa,1),"mousedown"===d.type)a(document).on("mousemove",k).on("mouseup",N);else if("pointerdown"===d.type)a(document).on("pointermove",k).on("pointerup",N)}function k(a){if(z){X.stopProp&&a.stopPropagation();e=O(a,"X");E=O(a,"Y");ea=e-l;ba=E-M;v=ka?ba:ea;if(ga&&(5<Math.abs(ba)||5<Math.abs(ea)))clearTimeout(B),
- A.removeClass("mbsc-btn-a"),ga=!1;if(s.scrolled||!K&&5<Math.abs(v))s.scrolled||za("onGestureStart",[R]),s.scrolled=!0,X.liveSwipe&&!$&&($=!0,P=ca(i));ka||X.scrollLock?a.preventDefault():s.scrolled?a.preventDefault():7<Math.abs(ba)&&(K=!0,s.scrolled=!0,La.trigger("touchend"))}}function i(){Y&&(v=d(v,-Z*Y,Z*Y));h(d(fa+v,T-W,p+W));$=!1}function N(b){if(z){var c;c=new Date-la;X.stopProp&&b.stopPropagation();V(P);$=!1;!K&&s.scrolled&&(X.momentum&&m&&300>c&&(c=v/c,v=Math.max(Math.abs(v),c*c/X.speedUnit)*
- (0>v?-1:1)),za("onGestureEnd",[R]),r(v));ga&&(clearTimeout(B),A.addClass("mbsc-btn-a"),setTimeout(function(){A.removeClass("mbsc-btn-a")},100),!K&&!s.scrolled&&za("onBtnTap",[A]));"mouseup"==b.type?a(document).off("mousemove",k).off("mouseup",N):"pointerup"==b.type&&a(document).off("pointermove",k).off("pointerup",N);z=!1}}function F(b){b=b.originalEvent||b;v=ka?b.deltaY||b.wheelDelta||b.detail:b.deltaX;X.stopProp&&b.stopPropagation();v&&a.mobiscroll.running&&(b.preventDefault(),v=0>v?20:-20,fa=sa,
- $||($=!0,P=ca(i)),clearTimeout(H),H=setTimeout(function(){V(P);$=false;r(v)},200))}function r(a){var b;Y&&(a=d(a,-Z*Y,Z*Y));J=Math.round((fa+a)/Z);b=d(J*Z,T,p);if(ha){if(0>a)for(a=ha.length-1;0<=a;a--){if(Math.abs(b)+ja>=ha[a].breakpoint){J=a;qa=2;b=ha[a].snap2;break}}else if(0<=a)for(a=0;a<ha.length;a++)if(Math.abs(b)<=ha[a].breakpoint){J=a;qa=1;b=ha[a].snap1;break}b=d(b,T,p)}a=X.time||(sa<T||sa>p?200:Math.max(200,Math.abs(b-sa)*X.timeUnit));h(b,a)}function h(a,c,d){var e=a!=sa,f=1<c,g=function(){clearInterval(x);
- S=!1;sa=a;R.posX=ka?0:a;R.posY=ka?a:0;e&&za("onMove",[R]);f&&(s.scrolled=!1,za("onAnimationEnd",[R]));d&&d()};R={posX:ka?0:sa,posY:ka?sa:0,originX:ka?0:fa,originY:ka?fa:0,direction:0<a-sa?ka?270:360:ka?90:180};sa=a;f&&(R.destinationX=ka?0:a,R.destinationY=ka?a:0,R.duration=c,R.transitionTiming=w,za("onAnimationStart",[R]));m?(ia[y+"Transition"]=c?n+"transform "+Math.round(c)+"ms "+w:"",ia[y+"Transform"]="translate3d("+(ka?"0,"+a+"px,":a+"px,0,")+"0)"):ia[D]=a+"px";!e&&!S||!c||1>=c?g():c&&(S=!0,clearInterval(x),
- x=setInterval(function(){var a=+b(oa,ka)||0;R.posX=ka?0:a;R.posY=ka?a:0;za("onMove",[R])},100),clearTimeout(C),C=setTimeout(function(){g();m&&(ia[y+"Transition"]="")},c))}var A,B,ja,ea,ba,v,D,w,W,e,E,R,ga,p,Y,T,z,S,K,P,$,H,x,Z,ha,fa,la,l,M,ia,oa,C,za,ka,s=this,sa=0,J=0,qa=1,X=g,La=a(f);u.Base.call(this,f,g,!0);s.scrolled=!1;s.scroll=function(b,c,e){b=da(b)?Math.round(b/Z)*Z:Math.ceil((a(b,f).length?Math.round(oa.offset()[D]-a(b,f).offset()[D]):sa)/Z)*Z;J=Math.round(b/Z);fa=sa;h(d(b,T,p),c,e)};s.refresh=
- function(){var a;ja=X.contSize===t?ka?La.height():La.width():X.contSize;T=X.minScroll===t?ka?ja-oa.height():ja-oa.width():X.minScroll;p=X.maxScroll===t?0:X.maxScroll;!ka&&X.rtl&&(a=p,p=-T,T=-a);Q(X.snap)&&(ha=[],oa.find(X.snap).each(function(){var a=ka?this.offsetTop:this.offsetLeft,b=ka?this.offsetHeight:this.offsetWidth;ha.push({breakpoint:a+b/2,snap1:-a,snap2:ja-a-b})}));Z=da(X.snap)?X.snap:1;Y=X.snap?X.maxSnapScroll:0;w=X.easing;W=X.elastic?da(X.snap)?Z:da(X.elastic)?X.elastic:0:0;sa===t&&(sa=
- X.initialPos,J=Math.round(sa/Z));s.scroll(X.snap?ha?ha[J]["snap"+qa]:J*Z:sa)};s.init=function(a){s._init(a);D=(ka="Y"==X.axis)?"top":"left";oa=X.moveElement||La.children().eq(0);ia=oa[0].style;s.refresh();if(X.swipe)La.on("touchstart mousedown pointerdown",aa).on("touchmove",k).on("touchend touchcancel pointercancel",N);if(X.mousewheel)La.on("wheel mousewheel",F);f.addEventListener&&f.addEventListener("click",function(a){s.scrolled&&(a.stopPropagation(),a.preventDefault())},!0)};s.destroy=function(){clearInterval(x);
- La.off("touchstart mousedown pointerdown",aa).off("touchmove",k).off("touchend touchcancel pointercancel",N).off("wheel mousewheel",F);s._destroy()};X=s.settings;za=s.trigger;j||s.init(g)};u.ScrollView.prototype={_class:"scrollview",_defaults:{speedUnit:0.0022,timeUnit:0.8,initialPos:0,axis:"Y",easing:"ease-out",stopProp:!0,swipe:!0,liveSwipe:!0,momentum:!0,elastic:!0}};j.presetShort("scrollview","ScrollView",!1)})(jQuery);(function(a,t){var j=a.mobiscroll,u={wheelOrder:"hhiiss",useShortLabels:!1,minTime:0,maxTime:Infinity,labels:"Years,Months,Days,Hours,Minutes,Seconds".split(","),labelsShort:"Yrs,Mths,Days,Hrs,Mins,Secs".split(",")};j.presetShort("timespan");j.presets.scroller.timespan=function(f){function d(b){var c={};a(h).each(function(a,d){c[d]=ea[d]?Math.floor(b/A[d].limit):0;b-=c[d]*A[d].limit});return c}function y(a,b){var d=!1,f=ja[ea[a]-1]||1,h=A[a],j=h.wheel,n=h.prefix;G=0;g=h.until;a==ba&&(G=Math.max(k[a],
- b[a]-50*f),g=Math.min(i[a],G+100*f),c=G+5*f,da=g-5*f);j.keys=[];j.values=[];j.label=h.label;r.match(RegExp(h.re+h.re,"i"))&&(d=!0);for(m=G;m<=g;m+=f)j.keys.push(m),j.values.push((n||"")+(10>m&&d?"0":"")+m+'<span class="dwtlbl">'+h.label+"</span>")}function n(b){var c=0;a.each(B,function(a,d){isNaN(+b[0])||(c+=A[d.v].limit*b[a])});return c}var m,O,b,c,da,Q,ca,V,G,g,q,aa,k,i,N=a.extend({},f.settings),F=a.extend(f.settings,u,N),r=F.wheelOrder,N=F.useShortLabels?F.labelsShort:F.labels,h="years,months,days,hours,minutes,seconds".split(","),
- A={years:{ord:0,index:6,until:10,limit:31536E6,label:N[0],re:"y",wheel:{}},months:{ord:1,index:5,until:11,limit:2592E6,label:N[1],re:"m",wheel:{}},days:{ord:2,index:4,until:31,limit:864E5,label:N[2],re:"d",wheel:{}},hours:{ord:3,index:3,until:23,limit:36E5,label:N[3],re:"h",wheel:{}},minutes:{ord:4,index:2,until:59,limit:6E4,label:N[4],re:"i",wheel:{}},seconds:{ord:5,index:1,until:59,limit:1E3,label:N[5],re:"s",wheel:{}}},B=[],ja=F.steps||[],ea={},ba="seconds",v=0,D=F.defaultValue||Math.max(F.minTime,
- Math.min(0,F.maxTime)),w=[[]];b=0;V=d(b);k=d(F.minTime);i=d(F.maxTime);a(h).each(function(a,b){O=r.search(RegExp(A[b].re,"i"));-1<O&&(B.push({o:O,v:b}),A[b].index>A[ba].index&&(ba=b))});B.sort(function(a,b){return a.o>b.o?1:-1});a.each(B,function(a,b){b.v==ba&&(v=a);ea[b.v]=a+1;w[0].push(A[b.v].wheel);y(b.v,V)});f.getVal=function(a,b){return b?f._getVal(a):f._hasValue||a?n(f.getArrayVal(a)):null};return{mode:"scroller",showLabel:!0,wheels:w,parseValue:function(b){var c=[],f;j.util.isNumeric(b)||!b?
- (V=d(b||D),a.each(B,function(a,b){c.push(V[b.v])})):a.each(B,function(a,d){f=RegExp("(\\d+)\\s?("+F.labels[A[d.v].ord]+"|"+F.labelsShort[A[d.v].ord]+")","gi").exec(b);c.push(f?f[1]:0)});a(c).each(function(a,b){c[a]=Math.floor(b/(ja[a]||1))*(ja[a]||1)});return c},formatValue:function(b){var c="";a.each(B,function(a,d){c+=+b[a]?b[a]+" "+A[d.v].label+" ":""});return c.replace(/\s+$/g,"")},validate:function(j,e,m){var r,u,p=f._tempWheelArray;b=n(p);r=d(b);if(e===v||!Q&&(p[v]<c||p[v]>da))if(y(ba,r),q!==
- G||aa!==g)u=p[v],ca=setTimeout(function(){q=G;aa=g;Q=!0;p[v]=u;f.changeWheel([v],t,e!==t)},1E3*m);var w=!0,A=!0;a(h).each(function(b,c){if(ea[c]!==t){var d=a(".dw-ul",j).eq(ea[c]-1),e=a(".dw-li",d).index(a('.dw-li[data-val="'+i[c]+'"]',d)),f=a(".dw-li",d).index(a('.dw-li[data-val="'+k[c]+'"]',d));a(".dw-li",d).addClass("dw-v");w&&-1<e&&a(".dw-li",d).slice(e+1).removeClass("dw-v");A&&-1<f&&a(".dw-li",d).slice(0,f).removeClass("dw-v");w=w&&r[c]==i[c];A=A&&r[c]==k[c]}});Q=!1},onBeforeShow:function(){b=
- n(f._tempWheelArray);V=d(b);k=d(F.minTime);i=d(F.maxTime);y(ba,V)},onMarkupReady:function(b){b.addClass("dw-timespan");a(".dwwl"+v,b).on("mousedown touchstart",function(){clearTimeout(ca)})}}}})(jQuery);(function(a,t){var j=a.mobiscroll,u={controls:["start","reset"],autostart:!1,step:1,useShortLabels:!1,labels:"Years,Months,Days,Hours,Minutes,Seconds,".split(","),labelsShort:"Yrs,Mths,Days,Hrs,Mins,Secs,".split(","),startText:"Start",stopText:"Stop",resetText:"Reset",lapText:"Lap",hideText:"Hide"};j.presetShort("timer");j.presets.scroller.timer=function(f){function d(a){return new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds())}
- function j(b){var c={};if($&&W[z].index>W.days.index){var e,f,g,h;e=new Date;var i=q?e:P;e=q?P:e;e=d(e);i=d(i);c.years=i.getFullYear()-e.getFullYear();c.months=i.getMonth()-e.getMonth();c.days=i.getDate()-e.getDate();c.hours=i.getHours()-e.getHours();c.minutes=i.getMinutes()-e.getMinutes();c.seconds=i.getSeconds()-e.getSeconds();c.fract=(i.getMilliseconds()-e.getMilliseconds())/10;for(e=w.length;0<e;e--)f=w[e-1],g=W[f],h=w[a.inArray(f,w)-1],W[h]&&0>c[f]&&(c[h]--,c[f]+="months"==h?32-(new Date(i.getFullYear(),
- i.getMonth(),32)).getDate():g.until+1);"months"==z&&(c.months+=12*c.years,delete c.years)}else a(w).each(function(a,d){W[d].index<=W[z].index&&(c[d]=Math.floor(b/W[d].limit),b-=c[d]*W[d].limit)});return c}function n(c,d){var f=1,g=W[c],h=g.wheel,j=g.prefix,H=W[w[a.inArray(c,w)-1]];A=0;B=g.until;c==z&&(A=Math.max(0,d[c]-50),B=A+100,k=A+5,i=B-5);if(g.index<=W[z].index&&(!H||H.limit>T)){e[c]||x[0].push(h);e[c]=1;h.keys=[];h.values=[];h.label=g.label||"";T>=g.limit&&(f=Math.max(Math.round(T/g.limit),
- 1),da=f*g.limit);for(b=A;b<=B;b+=f)h.keys.push(b),h.values.push((j||"")+(10>b?"0":"")+b+'<span class="dwtlbl">'+(g.label||"")+"</span>")}}function m(b){var c=[],d,f=j(b);a(w).each(function(a,b){e[b]&&(d=Math.max(Math.round(T/W[b].limit),1),c.push(Math.round(f[b]/d)*d))});return c}function O(a){$?(G=P-new Date,0>G?(G*=-1,q=!0):q=!1,g=0,Y=!0):(P!==t?(Y=!1,G=1E3*P,q="down"!==v.countDirection):(G=0,Y=q="down"!==v.countDirection),a&&(g=0))}var b,c,da,Q,ca,V,G,g,q,aa,k,i,N,F,r,h,A,B,ja,ea,ba=a.extend({},
- f.settings),v=a.extend(f.settings,u,ba),D=v.useShortLabels?v.labelsShort:v.labels,w="years,months,days,hours,minutes,seconds,fract".split(","),W={years:{index:6,until:10,limit:31536E6,label:D[0],wheel:{}},months:{index:5,until:11,limit:2592E6,label:D[1],wheel:{}},days:{index:4,until:31,limit:864E5,label:D[2],wheel:{}},hours:{index:3,until:23,limit:36E5,label:D[3],wheel:{}},minutes:{index:2,until:59,limit:6E4,label:D[4],wheel:{}},seconds:{index:1,until:59,limit:1E3,label:D[5],wheel:{}},fract:{index:0,
- until:99,limit:10,label:D[6],prefix:".",wheel:{}}},e={},E=[],R=0,ga=!1,p=!0,Y=!1,T=Math.max(10,1E3*v.step),z=v.maxWheel,S=v.locked||$,K=(a.isArray(v.controls)?v.controls:[]).join(","),P=v.targetTime,$=P&&P.getTime!==t,H="jqm"==v.theme,x=[[]];f.start=function(){p&&f.reset();if(!ga&&(O(),Y||!(g>=G)))ga=!0,p=!1,ca=new Date,Q=g,v.readonly=!0,f.setValue(m(q?g:G-g),!0,0.1),c=setInterval(function(){g=new Date-ca+Q;f.setValue(m(q?g:G-g),!0,0.1);!Y&&g+da>=G&&(clearInterval(c),setTimeout(function(){f.stop();
- g=G;f.setValue(m(q?g:0),!0,0.1);f.trigger("onFinish",[G]);p=!0},G-g))},da),a(".dwwr",aa).addClass("dw-running dw-locked"),a(".dw-timer-st",aa).removeClass(v.btnStartClass||"").addClass(v.btnStopClass||"").attr("title",v.stopText).find(".dwb-txt").text(v.stopText),f.trigger("onStart",[])};f.stop=function(){ga&&(ga=!1,clearInterval(c),g=new Date-ca+Q,a(".dwwr",aa).removeClass("dw-running"),a(".dw-timer-st",aa).removeClass(v.btnStopClass||"").addClass(v.btnStartClass||"").attr("title",v.startText).find(".dwb-txt").text(v.startText),
- f.trigger("onStop",[g]))};f.reset=function(){f.stop();g=0;E=[];R=0;f.setValue(m(q?0:G),!0,0.1);f.settings.readonly=S;p=!0;S||a(".dwwr",aa).removeClass("dw-locked");f.trigger("onReset",[])};f.lap=function(){ga&&(V=new Date-ca+Q,N=V-R,R=V,E.push(V),f.trigger("lap",[V,N,E]))};f.getTime=function(){return G};f.setTime=function(a){P=a/1E3;G=a};f.getElapsedTime=f.getEllapsedTime=function(){return ga?new Date-ca+Q:0};f.setElapsedTime=f.setEllapsedTime=function(a,b){p||(Q=g=a,ca=new Date,f.setValue(m(q?g:
- G-g),!0,0.1,!1,b))};O(!0);!z&&!G&&(z="minutes");z||a(w).each(function(a,b){if(!z&&G>=W[b].limit)return z=b,!1});h=j(G);a(w).each(function(a,b){n(b,h)});da=Math.max(87,da);v.autostart&&setTimeout(function(){f.start()},0);return{wheels:x,headerText:!1,readonly:S,parseValue:function(){return m(q?0:G)},formatValue:function(b){var c="",d=0;a(w).each(function(a,f){"fract"!=f&&e[f]&&(c+=b[d]+("seconds"==f&&e.fract?"."+b[d+1]:"")+" "+D[a]+" ",d++)});return c},validate:function(b,c,d){var h,l,H=0,x=f._tempWheelArray,
- b=!1;p&&c!==t&&(P=0,a(w).each(function(a,b){e[b]&&(P+=W[b].limit*x[H],H++)}),P/=1E3,O(!0));if(p&&0===c)b=!0,h=j(G);else if(!F&&(x[0]<k||x[0]>i))h=j(q?g:G-g),b=!0;if(b&&(n(z,h),ja!==A||ea!==B))l=x[0],r=setTimeout(function(){ja=A;ea=B;F=true;x[0]=l;f.changeWheel([0],t,c!==t)},1E3*d);F=!1},onBeforeShow:function(){v.mode="scroller";v.showLabel=!0},onMarkupReady:function(b){var c=0;aa=b;b.addClass("dw-timer");ga?a(".dwwr",b).addClass("dw-running"):a(".dwwr",b).removeClass("dw-running");S&&a(".dwwr",aa).addClass("dw-locked");
- a(".dwbc",b).remove();a(".dwwl0",b).on("mousedown touchstart",function(){clearTimeout(r)});a(w).each(function(d,f){e[f]&&(a(".dwwl"+c,b).addClass("dwwl-"+f),c++)});var d=K.match(/start/),g=K.match(/reset/)&&!$,h=K.match(/lap/)&&!$,i="inline"!==v.display;if(d||g||h||i)a(".dwwr",b).addClass("dw-timer-btns").append('<div class="dwbc">'+(d?'<span class="dwbw dwbgr dwbgrf'+(!g&&!h?" dwbgrl":"")+'"><a href="#" role="button" class="dwb-e dwb dw-timer-st '+(ga?v.btnStopClass||"":v.btnStartClass||"")+'"'+
- (H?' data-role="button" data-icon="arrow-r" data-iconpos="notext"':"")+' title="'+(ga?v.stopText:v.startText)+'"><span class="dwb-i"><span class="dwb-txt">'+(ga?v.stopText:v.startText)+"</span></span></a></span>":"")+(g?'<span class="dwbw dwbgr'+(!d?" dwbgrf":"")+(!h?" dwbgrl":"")+'"><a href="#" role="button" class="dwb-e dwb dw-timer-r '+(v.btnResetClass||"")+'"'+(H?' data-role="button" data-icon="delete" data-iconpos="notext"':"")+' title="'+v.resetText+'"><span class="dwb-i"><span class="dwb-txt">'+
- v.resetText+"</span></span></a></span>":"")+(h?'<span class="dwbw dwbgr dwbgrl'+(!d&&!g?" dwbgrf":"")+'"><a href="#" role="button" class="dwb-e dwb dw-timer-l '+(v.btnLapClass||"")+'"'+(H?' data-role="button" data-icon="refresh" data-iconpos="notext"':"")+' title="'+v.lapText+'"><span class="dwb-i"><span class="dwb-txt">'+v.lapText+"</span></span></a></span>":"")+(i?'<span class="dwbw dwtcl"><a href="#" role="button" class="dwb-e dwb dw-timer-cl '+(v.btnHideClass||"")+' "'+(H?' data-role="button" data-mini="true"':
- "")+">"+v.hideText+"</a></span>":"")+"</div>"),f.tap(a(".dw-timer-st",b),function(){ga?f.stop():f.start()},!0),f.tap(a(".dw-timer-r",b),function(){f.reset()},!0),f.tap(a(".dw-timer-l",b),function(){f.lap()},!0),f.tap(a(".dw-timer-cl",b),function(){f.hide()},!0)},onPosition:function(b){a(".dwwr",b).css("min-width",0).css("min-width",a(".dwbc",b).outerWidth())},onDestroy:function(){clearInterval(c)}}}})(jQuery);(function(a,t,j,u){var f=a.mobiscroll,d=a.extend,y=f.util,n=f.datetime,m=f.presets.scroller,O={labelsShort:"Yrs,Mths,Days,Hrs,Mins,Secs".split(","),fromText:"Start",toText:"End",eventText:"event",eventsText:"events"};f.presetShort("calendar");m.calendar=function(b){function c(b){if(b){if(W[b])return W[b];var c=a('<div style="background-color:'+b+';"></div>').appendTo("body"),d=(t.getComputedStyle?getComputedStyle(c[0]):c[0].style).backgroundColor.replace(/rgb|rgba|\(|\)|\s/g,"").split(","),d=130<
- 0.299*d[0]+0.587*d[1]+0.114*d[2]?"#000":"#fff";c.remove();return W[b]=d}}function j(a){return a.sort(function(a,b){var c=a.d||a.start,d=b.d||b.start,c=!c.getTime?0:a.start&&a.end&&a.start.toDateString()!==a.end.toDateString()?1:c.getTime(),d=!d.getTime?0:b.start&&b.end&&b.start.toDateString()!==b.end.toDateString()?1:d.getTime();return c-d})}function Q(b){var c;c=a(".dw-cal-c",k).outerHeight();var d=b.outerHeight(),e=b.outerWidth(),f=b.offset().top-a(".dw-cal-c",k).offset().top,g=2>b.closest(".dw-cal-row").index();
- c=i.addClass("dw-cal-events-t").css({top:g?f+d:"0",bottom:g?"0":c-f}).addClass("dw-cal-events-v").height();i.css(g?"bottom":"top","auto").removeClass("dw-cal-events-t");h.css("max-height",c);r.refresh();r.scroll(0);g?i.addClass("dw-cal-events-b"):i.removeClass("dw-cal-events-b");a(".dw-cal-events-arr",i).css("left",b.offset().left-i.offset().left+e/2)}function ca(d,g){var h=F[d];if(h){var k,m,n,l,q,p='<ul class="dw-cal-event-list">';N=g;g.addClass(E).find(".dw-i").addClass(ga);g.hasClass(R)&&g.attr("data-hl",
- "true").removeClass(R);j(h);a.each(h,function(a,b){l=b.d||b.start;q=b.start&&b.end&&b.start.toDateString()!==b.end.toDateString();n=b.color;c(n);m=k="";l.getTime&&(k=f.datetime.formatDate((q?"MM d yy ":"")+e.timeFormat,l));b.end&&(m=f.datetime.formatDate((q?"MM d yy ":"")+e.timeFormat,b.end));var d=p,g='<li role="button" aria-label="'+b.text+(k?", "+e.fromText+" "+k:"")+(m?", "+e.toText+" "+m:"")+'" class="dw-cal-event"><div class="dw-cal-event-color" style="'+(n?"background:"+n+";":"")+'"></div><div class="dw-cal-event-text">'+
- (l.getTime&&!q?'<div class="dw-cal-event-time">'+f.datetime.formatDate(e.timeFormat,l)+"</div>":"")+b.text+"</div>",h;if(b.start&&b.end){h=e.labelsShort;var i=Math.abs(b.end-b.start)/1E3,j=i/60,H=j/60,x=H/24,r=x/365;h='<div class="dw-cal-event-dur">'+(45>i&&Math.round(i)+" "+h[5].toLowerCase()||45>j&&Math.round(j)+" "+h[4].toLowerCase()||24>H&&Math.round(H)+" "+h[3].toLowerCase()||30>x&&Math.round(x)+" "+h[2].toLowerCase()||365>x&&Math.round(x/30)+" "+h[1].toLowerCase()||Math.round(r)+" "+h[0].toLowerCase())+
- "</div>"}else h="";p=d+(g+h+"</li>")});p+="</ul>";A.html(p);b.trigger("onEventBubbleShow",[N,i]);Q(N);b.tap(a(".dw-cal-event",A),function(c){r.scrolled||b.trigger("onEventSelect",[c,h[a(this).index()],d])});B=!0}}function V(){i&&i.removeClass("dw-cal-events-v");N&&(N.removeClass(E).find(".dw-i").removeClass(ga),N.attr("data-hl")&&N.removeAttr("data-hl").addClass(R));B=!1}function G(a){return new Date(a.getFullYear(),a.getMonth(),a.getDate())}function g(a){K={};if(a&&a.length)for(ea=0;ea<a.length;ea++)K[G(a[ea])]=
- a[ea]}function q(){P&&V();b.refresh()}var aa,k,i,N,F,r,h,A,B,ja,ea,ba,v,D,w,W={};D=d({},b.settings);var e=d(b.settings,O,D),E="dw-sel dw-cal-day-ev",R="dw-cal-day-hl",ga=e.activeClass||"",p=e.multiSelect||"week"==e.selectType,Y=y.isNumeric(e.multiSelect)?e.multiSelect:Infinity,T=e.markedDisplay,z=!0===e.events||!0===e.markedText,S=0,K={},P=a.isArray(e.events),$=P?d(!0,[],e.events):[];D=m.calbase.call(this,b);aa=d({},D);ja=e.firstSelectDay===u?e.firstDay:e.firstSelectDay;if(e.selectedValues)for(ea=
- 0;ea<e.selectedValues.length;ea++)K[G(e.selectedValues[ea])]=e.selectedValues[ea];P&&a.each($,function(a,b){b._id===u&&(b._id=S++)});b.onGenMonth=function(a,c){F=b.prepareObj($,a,c);ba=b.prepareObj(e.marked,a,c)};b.getDayProps=function(b){for(var d=p?K[b]!==u:P?b.getTime()===(new Date).setHours(0,0,0,0):u,f=ba[b]?ba[b][0]:!1,g=F[b]?F[b][0]:!1,h=f||g,f=f.text||(g?F[b].length+" "+(1<F[b].length?e.eventsText:e.eventText):0),g=ba[b]||F[b]||[],i=h.color,j=z&&f?c(i):"",k="",m='<div class="dw-cal-day-m"'+
- (i?' style="background-color:'+i+";border-color:"+i+" "+i+' transparent transparent"':"")+"></div>",b=0;b<g.length;b++)g[b].icon&&(k+='<span class="mbsc-ic mbsc-ic-'+g[b].icon+'"'+(g[b].text?"":g[b].color?' style="color:'+g[b].color+';"':"")+"></span>\n");if("bottom"==T){m='<div class="dw-cal-day-m"><div class="dw-cal-day-m-t">';for(b=0;b<g.length;b++)m+='<div class="dw-cal-day-m-c"'+(g[b].color?' style="background:'+g[b].color+';"':"")+"></div>";m+="</div></div>"}return{marked:h,selected:P?!1:d,
- cssClass:P&&d?"dw-cal-day-hl":h?"dw-cal-day-marked":"",ariaLabel:z||P?f:"",markup:z&&f?'<div class="dw-cal-day-txt-c"><div class="dw-cal-day-txt '+(e.eventTextClass||"")+'" title="'+a("<div>"+f+"</div>").text()+'"'+(i?' style="background:'+i+";color:"+j+';text-shadow:none;"':"")+">"+k+f+"</div></div>":z&&k?'<div class="dw-cal-day-ic-c">'+k+"</div>":h?m:""}};b.addValue=function(a){K[G(a)]=a;q()};b.removeValue=function(a){delete K[G(a)];q()};b.setVal=function(a,c,d,e,f){p&&(g(a),a=a?a[0]:null);b._setVal(a,
- c,d,e,f);q()};b.getVal=function(a){return p?y.objectToArray(K):b.getDate(a)};b.setValues=function(a,c){b.setDate(a?a[0]:null,c);g(a);q()};b.getValues=function(){return p?b.getVal():[b.getDate()]};P&&(b.addEvent=function(b){var c=[],b=d(!0,[],a.isArray(b)?b:[b]);a.each(b,function(a,b){b._id===u&&(b._id=S++);$.push(b);c.push(b._id)});q();return c},b.removeEvent=function(b){b=a.isArray(b)?b:[b];a.each(b,function(b,c){a.each($,function(a,b){if(b._id===c)return $.splice(a,1),!1})});q()},b.getEvents=function(a){var c;
- return a?(a.setHours(0,0,0,0),c=b.prepareObj($,a.getFullYear(),a.getMonth()),c[a]?j(c[a]):[]):d(!0,[],$)},b.setEvents=function(b){var c=[];$=d(!0,[],b);a.each($,function(a,b){b._id===u&&(b._id=S++);c.push(b._id)});q();return c});d(D,{highlight:!p&&!P,divergentDayChange:!p&&!P,buttons:P&&"inline"!==e.display?["cancel"]:e.buttons,parseValue:function(a){var c,d;if(p&&a&&typeof a==="string"){K={};a=a.split(",");for(c=0;c<a.length;c++){d=n.parseDate(b.format,a[c].replace(/^\s+|\s+$/g,""),e);K[G(d)]=d}a=
- a[0]}return aa.parseValue.call(this,a)},formatValue:function(a){var c,d=[];if(p){for(c in K)d.push(n.formatDate(b.format,K[c],e));return d.join(", ")}return aa.formatValue.call(this,a)},onClear:function(){if(p){K={};b.refresh()}},onBeforeShow:function(){if(P)e.headerText=false;if(e.closeOnSelect)e.divergentDayChange=false;if(e.counter&&p)e.headerText=function(){var b=0,c=e.selectType=="week"?7:1;a.each(K,function(){b++});b=Math.round(b/c);return(b>1?e.selectedPluralText||e.selectedText:e.selectedText).replace(/{count}/,
- b)}},onMarkupReady:function(c){aa.onMarkupReady.call(this,c);k=c;if(p){a(".dwv",c).attr("aria-live","off");v=d({},K)}z&&a(".dw-cal",c).addClass("dw-cal-ev");T&&a(".dw-cal",c).addClass("dw-cal-m-"+T);if(P){c.addClass("dw-cal-em");i=a('<div class="dw-cal-events '+(e.eventBubbleClass||"")+'"><div class="dw-cal-events-arr"></div><div class="dw-cal-events-i"><div class="dw-cal-events-sc"></div></div></div>').appendTo(a(".dw-cal-c",c));h=a(".dw-cal-events-i",i);A=a(".dw-cal-events-sc",i);r=new f.classes.ScrollView(h[0]);
- B=false;b.tap(h,function(){r.scrolled||V()})}},onMonthChange:function(){P&&V()},onSelectShow:function(){P&&V()},onMonthLoaded:function(){if(w){ca(w.d,a('.dw-cal-day-v[data-full="'+w.full+'"]:not(.dw-cal-day-diff)',k));w=false}},onDayChange:function(c){var d=c.date,f=G(d),g=a(c.cell),c=c.selected;if(P){V();g.hasClass("dw-cal-day-ev")||setTimeout(function(){b.changing?w={d:f,full:g.attr("data-full")}:ca(f,g)},10)}else if(p)if(e.selectType=="week"){var h,i,j=f.getDay()-ja,j=j<0?7+j:j;e.multiSelect||
- (K={});for(h=0;h<7;h++){i=new Date(f.getFullYear(),f.getMonth(),f.getDate()-j+h);c?delete K[i]:y.objectToArray(K).length/7<Y&&(K[i]=i)}q()}else{h=a('.dw-cal .dw-cal-day[data-full="'+g.attr("data-full")+'"]',k);if(c){h.removeClass("dw-sel").removeAttr("aria-selected").find(".dw-i").removeClass(ga);delete K[f]}else if(y.objectToArray(K).length<Y){h.addClass("dw-sel").attr("aria-selected","true").find(".dw-i").addClass(ga);K[f]=f}}if(!P&&!e.multiSelect&&e.closeOnSelect&&e.display!=="inline"){b.needsSlide=
- false;b.setDate(d);b.select();return false}},onCalResize:function(){B&&Q(N)},onCancel:function(){!b.live&&p&&(K=d({},v))}});return D}})(jQuery,window,document);(function(a,t){var j=a.mobiscroll,u=j.util,f=u.isString,d={batch:40,inputClass:"",invalid:[],rtl:!1,showInput:!0,groupLabel:"Groups",checkIcon:"checkmark",dataText:"text",dataValue:"value",dataGroup:"group",dataDisabled:"disabled"};j.presetShort("select");j.presets.scroller.select=function(j){function n(){var b,c,d,e,f,g=0,h=0,i={};M={};ia={};r=[];q=[];la.length=0;$?a.each(E.data,function(a,g){e=g[E.dataText];f=g[E.dataValue];c=g[E.dataGroup];d={value:f,text:e,index:a};M[f]=d;r.push(d);H&&(i[c]===
- t?(b={text:c,value:h,options:[],index:h},ia[h]=b,i[c]=h,q.push(b),h++):b=ia[i[c]],Z&&(d.index=b.options.length),d.group=i[c],b.options.push(d));g[E.dataDisabled]&&la.push(f)}):H?a("optgroup",p).each(function(b){ia[b]={text:this.label,value:b,options:[],index:b};q.push(ia[b]);a("option",this).each(function(a){d={value:this.value,text:this.text,index:Z?a:g++,group:b};M[this.value]=d;r.push(d);ia[b].options.push(d);this.disabled&&la.push(this.value)})}):a("option",p).each(function(a){d={value:this.value,
- text:this.text,index:a};M[this.value]=d;r.push(d);this.disabled&&la.push(this.value)});r.length&&(G=r[0].value);ha&&(r=[],g=0,a.each(ia,function(b,c){f="__group"+b;d={text:c.text,value:f,group:b,index:g++};M[f]=d;r.push(d);la.push(d.value);a.each(c.options,function(a,b){b.index=g++;r.push(b)})}))}function m(a,b,c,d,e,f,g){var h=[],i=[],d=Math.max(0,(c[d]!==t?c[d].index:0)-R),j=Math.min(b.length-1,d+2*R);if(v[e]!==d||D[e]!==j){for(c=d;c<=j;c++)i.push(b[c].text),h.push(b[c].value);ba[e]=!0;w[e]=d;W[e]=
- j;b={multiple:f,values:i,keys:h,label:g};ga?a[0][e]=b:a[e]=[b]}else ba[e]=!1}function O(a){m(a,q,ia,g,i,!1,E.groupLabel)}function b(a){m(a,Z?ia[g].options:r,M,A,h,Y,S)}function c(b){Y&&(b&&f(b)&&(b=b.split(",")),a.isArray(b)&&(b=b[0]));A=b===t||null===b||""===b||!M[b]?G:b;x&&(ja=g=M[A]?M[A].group:null)}function da(a,b){var c=a?j._tempWheelArray:j._hasValue?j._wheelArray:null;return c?E.group&&b?c:c[h]:null}function Q(){var a,b;a=[];var c=0;if(Y){b=[];for(c in l)a.push(M[c]?M[c].text:""),b.push(c);
- a=a.join(", ")}else b=A,a=M[A]?M[A].text:"";j._tempValue=b;F.val(a);p.val(b)}function ca(a){var b=a.attr("data-val"),c=a.hasClass("dw-msel");if(Y&&a.closest(".dwwl").hasClass("dwwms"))return a.hasClass("dw-v")&&(c?(a.removeClass(K).removeAttr("aria-selected"),delete l[b]):u.objectToArray(l).length<T&&(a.addClass(K).attr("aria-selected","true"),l[b]=b)),!1;a.hasClass("dw-w-gr")&&(k=a.attr("data-val"))}var V,G,g,q,aa,k,i,N,F,r,h,A,B,ja,ea,ba={},v={},D={},w={},W={},e=a.extend({},j.settings),E=a.extend(j.settings,
- d,e),R=E.batch,e=E.layout||(/top|bottom/.test(E.display)?"liquid":""),ga="liquid"==e,p=a(this),Y=E.multiple||p.prop("multiple"),T=u.isNumeric(E.multiple)?E.multiple:Infinity,z=this.id+"_dummy";N=a('label[for="'+this.id+'"]').attr("for",z);var S=E.label!==t?E.label:N.length?N.text():p.attr("name"),K="dw-msel mbsc-ic mbsc-ic-"+E.checkIcon,P=E.readonly,$=!!E.data,H=$?!!E.group:a("optgroup",p).length;N=E.group;var x=H&&N&&!1!==N.groupWheel,Z=H&&N&&x&&!0===N.clustered,ha=H&&(!N||!1!==N.header&&!Z),fa=
- p.val()||[],la=[],l={},M={},ia={};E.invalid.length||(E.invalid=la);x?(i=0,h=1):(i=-1,h=0);if(Y){p.prop("multiple",!0);fa&&f(fa)&&(fa=fa.split(","));for(N=0;N<fa.length;N++)l[fa[N]]=fa[N]}n();c(p.val());a("#"+z).remove();p.next().is("input.mbsc-control")?F=p.off(".mbsc-form").next().removeAttr("tabindex"):(F=a('<input type="text" id="'+z+'" class="mbsc-control mbsc-control-ev '+E.inputClass+'" readonly />'),E.showInput&&F.insertBefore(p));j.attachShow(F.attr("placeholder",E.placeholder||""));p.addClass("dw-hsel").attr("tabindex",
- -1).closest(".ui-field-contain").trigger("create");Q();j.setVal=function(a,b,c,d,e){if(Y){a&&f(a)&&(a=a.split(","));l=u.arrayToObject(a);a=a?a[0]:null}j._setVal(a,b,c,d,e)};j.getVal=function(a,b){return Y?u.objectToArray(l):da(a,b)};j.refresh=function(){n();v={};D={};var a=E,d=[[]];x&&O(d);b(d);a.wheels=d;v[i]=w[i];D[i]=W[i];v[h]=w[h];D[h]=W[h];V=true;c(A);j._tempWheelArray=x?[g,A]:[A];j._isVisible&&j.changeWheel(x?[i,h]:[h])};j.getValues=j.getVal;j.getValue=da;return{width:50,layout:e,headerText:!1,
- anchor:F,confirmOnTap:x?[!1,!0]:!0,formatValue:function(a){var b,c=[];if(Y){for(b in l)c.push(M[b]?M[b].text:"");return c.join(", ")}a=a[h];return M[a]?M[a].text:""},parseValue:function(a){c(a===t?p.val():a);return x?[g,A]:[A]},onValueTap:ca,onValueFill:Q,onBeforeShow:function(){if(Y&&E.counter)E.headerText=function(){var b=0;a.each(l,function(){b++});return(b>1?E.selectedPluralText||E.selectedText:E.selectedText).replace(/{count}/,b)};c(p.val());if(x)j._tempWheelArray=[g,A];j.refresh()},onMarkupReady:function(b){b.addClass("dw-select");
- a(".dwwl"+i,b).on("mousedown touchstart",function(){clearTimeout(ea)});a(".dwwl"+h,b).on("mousedown touchstart",function(){aa||clearTimeout(ea)});ha&&a(".dwwl"+h,b).addClass("dw-select-gr");if(Y){b.addClass("dwms");a(".dwwl",b).on("keydown",function(b){if(b.keyCode==32){b.preventDefault();b.stopPropagation();ca(a(".dw-sel",this))}}).eq(h).attr("aria-multiselectable","true");B=a.extend({},l)}},validate:function(c,d,e,f){var m,n=[];m=j.getArrayVal(true);var p=m[i],u=m[h],z=a(".dw-ul",c).eq(i),B=a(".dw-ul",
- c).eq(h);v[i]>1&&a(".dw-li",z).slice(0,2).removeClass("dw-v").addClass("dw-fv");D[i]<q.length-2&&a(".dw-li",z).slice(-2).removeClass("dw-v").addClass("dw-fv");v[h]>1&&a(".dw-li",B).slice(0,2).removeClass("dw-v").addClass("dw-fv");D[h]<(Z?ia[p].options:r).length-2&&a(".dw-li",B).slice(-2).removeClass("dw-v").addClass("dw-fv");if(!V){A=u;if(x){g=M[A].group;if(d===t||d===i){g=+m[i];aa=false;if(g!==ja){A=ia[g].options[0].value;v[h]=null;D[h]=null;aa=true;E.readonly=[false,true]}else E.readonly=P}}if(H&&
- (/__group/.test(A)||k)){u=A=ia[M[k||A].group].options[0].value;k=false}j._tempWheelArray=x?[p,u]:[u];if(x){O(E.wheels);ba[i]&&n.push(i)}b(E.wheels);ba[h]&&n.push(h);clearTimeout(ea);ea=setTimeout(function(){if(n.length){V=true;aa=false;ja=g;v[i]=w[i];D[i]=W[i];v[h]=w[h];D[h]=W[h];j._tempWheelArray=x?[p,A]:[A];j.changeWheel(n,0,d!==t)}if(x){d===h&&j.scroll(z,i,j.getValidCell(g,z,f,false,true).v,0.1);j._tempWheelArray[i]=g}E.readonly=P},d===t?100:e*1E3);if(n.length)return aa?false:true}if(d===t&&Y){m=
- l;e=0;a(".dwwl"+h+" .dw-li",c).removeClass(K).removeAttr("aria-selected");for(e in m)a(".dwwl"+h+' .dw-li[data-val="'+m[e]+'"]',c).addClass(K).attr("aria-selected","true")}ha&&a('.dw-li[data-val^="__group"]',c).addClass("dw-w-gr");a.each(E.invalid,function(b,c){a('.dw-li[data-val="'+c+'"]',B).removeClass("dw-v dw-fv")});V=false},onValidated:function(){A=j._tempWheelArray[h]},onClear:function(b){l={};F.val("");a(".dwwl"+h+" .dw-li",b).removeClass(K).removeAttr("aria-selected")},onCancel:function(){!j.live&&
- Y&&(l=a.extend({},B))},onDestroy:function(){F.hasClass("mbsc-control")||F.remove();p.removeClass("dw-hsel").removeAttr("tabindex")}}}})(jQuery);(function(a){a.each(["date","time","datetime"],function(t,j){a.mobiscroll.presetShort(j)})})(jQuery);(function(a){a.mobiscroll.themes.frame["mobiscroll-dark"]={baseTheme:"mobiscroll",rows:5,showLabel:!1,headerText:!1,btnWidth:!1,selectedLineHeight:!0,selectedLineBorder:1,dateOrder:"MMddyy",weekDays:"min",checkIcon:"ion-ios7-checkmark-empty",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5"};a.mobiscroll.themes.listview["mobiscroll-dark"]={baseTheme:"mobiscroll"};a.mobiscroll.themes.menustrip["mobiscroll-dark"]=
- {baseTheme:"mobiscroll"};a.mobiscroll.themes.form["mobiscroll-dark"]={baseTheme:"mobiscroll"};a.mobiscroll.themes.progress["mobiscroll-dark"]={baseTheme:"mobiscroll"}})(jQuery);(function(a){var t,j,u,f=a.mobiscroll,d=f.themes;j=navigator.userAgent.match(/Android|iPhone|iPad|iPod|Windows|Windows Phone|MSIE/i);if(/Android/i.test(j)){if(t="android-holo",j=navigator.userAgent.match(/Android\s+([\d\.]+)/i))j=j[0].replace("Android ",""),t=5<=j.split(".")[0]?"material":4<=j.split(".")[0]?"android-holo":"android"}else if(/iPhone/i.test(j)||/iPad/i.test(j)||/iPod/i.test(j)){if(t="ios",j=navigator.userAgent.match(/OS\s+([\d\_]+)/i))j=j[0].replace(/_/g,".").replace("OS ",""),t="7"<=
- j?"ios":"ios-classic"}else if(/Windows/i.test(j)||/MSIE/i.test(j)||/Windows Phone/i.test(j))t="wp";a.each(d,function(d,j){a.each(j,function(a,d){if(d.baseTheme==t)return f.autoTheme=a,u=!0,!1;a==t&&(f.autoTheme=a)});if(u)return!1})})(jQuery);
|