/usr/share/javascript/dojox/mobile.js is in libjs-dojo-dojox 1.11.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | //>>built
require({cache:{"dojox/main":function(){define(["dojo/_base/kernel"],function(_1){return _1.dojox;});},"dojox/mobile/_base":function(){define(["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Container","./Pane","./Switch","./ToolBarButton","./ProgressIndicator"],function(_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d){return _2;});},"dojox/mobile/common":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/_base/kernel","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/domReady","dojo/ready","dojo/touch","dijit/registry","./sniff","./uacss"],function(_e,_f,_10,_11,win,_12,dom,_13,_14,_15,_16,_17,_18,has){var dm=_11.getObject("dojox.mobile",true);win.doc.dojoClick=true;if(has("touch")){has.add("clicks-prevented",!(has("android")>=4.1||(has("ie")===10)||(!has("ie")&&has("trident")>6)));if(has("clicks-prevented")){dm._sendClick=function(_19,e){for(var _1a=_19;_1a;_1a=_1a.parentNode){if(_1a.dojoClick){return;}}var ev=win.doc.createEvent("MouseEvents");ev.initMouseEvent("click",true,true,win.global,1,e.screenX,e.screenY,e.clientX,e.clientY);_19.dispatchEvent(ev);};}}dm.getScreenSize=function(){return {h:win.global.innerHeight||win.doc.documentElement.clientHeight,w:win.global.innerWidth||win.doc.documentElement.clientWidth};};dm.updateOrient=function(){var dim=dm.getScreenSize();_13.replace(win.doc.documentElement,dim.h>dim.w?"dj_portrait":"dj_landscape",dim.h>dim.w?"dj_landscape":"dj_portrait");};dm.updateOrient();dm.tabletSize=500;dm.detectScreenSize=function(_1b){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var _1c,to;if(sz>=dm.tabletSize&&(_1b||(!this._sz||this._sz<dm.tabletSize))){_1c="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_1b||(!this._sz||this._sz>=dm.tabletSize))){_1c="tablet";to="phone";}}if(to){_13.replace(win.doc.documentElement,"dj_"+to,"dj_"+_1c);_10.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.hideAddressBarWait=typeof (_f.mblHideAddressBarWait)==="number"?_f.mblHideAddressBarWait:1500;dm.hide_1=function(){scrollTo(0,1);dm._hidingTimer=(dm._hidingTimer==0)?200:dm._hidingTimer*2;setTimeout(function(){if(dm.isAddressBarHidden()||dm._hidingTimer>dm.hideAddressBarWait){dm.resizeAll();dm._hiding=false;}else{setTimeout(dm.hide_1,dm._hidingTimer);}},50);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._hidingTimer=has("ios")?200:0;var _1d=screen.availHeight;if(has("android")){_1d=outerHeight/devicePixelRatio;if(_1d==0){dm._hiding=false;setTimeout(function(){dm.hideAddressBar();},200);}if(_1d<=innerHeight){_1d=outerHeight;}if(has("android")<3){win.doc.documentElement.style.overflow=win.body().style.overflow="visible";}}if(win.body().offsetHeight<_1d){win.body().style.minHeight=_1d+"px";dm._resetMinHeight=true;}setTimeout(dm.hide_1,dm._hidingTimer);};dm.isAddressBarHidden=function(){return pageYOffset===1;};dm.resizeAll=function(evt,_1e){if(dm.disableResizeAll){return;}_10.publish("/dojox/mobile/resizeAll",[evt,_1e]);_10.publish("/dojox/mobile/beforeResizeAll",[evt,_1e]);if(dm._resetMinHeight){win.body().style.minHeight=dm.getScreenSize().h+"px";}dm.updateOrient();dm.detectScreenSize();var _1f=function(w){var _20=w.getParent&&w.getParent();return !!((!_20||!_20.resize)&&w.resize);};var _21=function(w){_e.forEach(w.getChildren(),function(_22){if(_1f(_22)){_22.resize();}_21(_22);});};if(_1e){if(_1e.resize){_1e.resize();}_21(_1e);}else{_e.forEach(_e.filter(_18.toArray(),_1f),function(w){w.resize();});}_10.publish("/dojox/mobile/afterResizeAll",[evt,_1e]);};dm.openWindow=function(url,_23){win.global.open(url,_23||"_blank");};dm._detectWindowsTheme=function(){if(navigator.userAgent.match(/IEMobile\/10\.0/)){_14.create("style",{innerHTML:"@-ms-viewport {width: auto !important}"},win.doc.head);}var _24=function(){_13.add(win.doc.documentElement,"windows_theme");_12.experimental("Dojo Mobile Windows theme","Behavior and appearance of the Windows theme are experimental.");};var _25=has("windows-theme");if(_25!==undefined){if(_25){_24();}return;}var i,j;var _26=function(_27){if(_27&&_27.indexOf("/windows/")!==-1){has.add("windows-theme",true);_24();return true;}return false;};var s=win.doc.styleSheets;for(i=0;i<s.length;i++){if(s[i].href){continue;}var r=s[i].cssRules||s[i].imports;if(!r){continue;}for(j=0;j<r.length;j++){if(_26(r[j].href)){return;}}}var _28=win.doc.getElementsByTagName("link");for(i=0;i<_28.length;i++){if(_26(_28[i].href)){return;}}};if(_f.mblApplyPageStyles!==false){_13.add(win.doc.documentElement,"mobile");}if(has("chrome")){_13.add(win.doc.documentElement,"dj_chrome");}if(win.global._no_dojo_dm){var _29=win.global._no_dojo_dm;for(var i in _29){dm[i]=_29[i];}dm.deviceTheme.setDm(dm);}has.add("mblAndroidWorkaround",_f.mblAndroidWorkaround!==false&&has("android")<3,undefined,true);has.add("mblAndroid3Workaround",_f.mblAndroid3Workaround!==false&&has("android")>=3,undefined,true);dm._detectWindowsTheme();dm.setSelectable=function(_2a,_2b){var _2c,i;_2a=dom.byId(_2a);if(has("ie")<=9){_2c=_2a.getElementsByTagName("*");i=_2c.length;if(_2b){_2a.removeAttribute("unselectable");while(i--){_2c[i].removeAttribute("unselectable");}}else{_2a.setAttribute("unselectable","on");while(i--){if(_2c[i].tagName!=="INPUT"){_2c[i].setAttribute("unselectable","on");}}}}else{_13.toggle(_2a,"unselectable",!_2b);}};var _2d=has("pointer-events")?"touchAction":has("MSPointer")?"msTouchAction":null;dm._setTouchAction=_2d?function(_2e,_2f){_2e.style[_2d]=_2f;}:function(){};_15(function(){if(_f.mblApplyPageStyles!==false){_13.add(win.body(),"mblBackground");}});_16(function(){dm.detectScreenSize(true);if(_f.mblAndroidWorkaroundButtonStyle!==false&&has("android")){_14.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;} audio::-webkit-media-controls-play-button,video::-webkit-media-controls-play-button{-webkit-appearance:media-play-button;} video::-webkit-media-controls-fullscreen-button{-webkit-appearance:media-fullscreen-button;}"},win.doc.head,"first");}if(has("mblAndroidWorkaround")){_14.create("style",{innerHTML:".mblView.mblAndroidWorkaround{position:absolute;top:-9999px !important;left:-9999px !important;}"},win.doc.head,"last");}var f=dm.resizeAll;var _30=navigator.appVersion.indexOf("Mobile")!=-1&&!(has("ios")>=7);if((_f.mblHideAddressBar!==false&&_30)||_f.mblForceHideAddressBar===true){dm.hideAddressBar();if(_f.mblAlwaysHideAddressBar===true){f=dm.hideAddressBar;}}var _31=has("ios")>=6;if((has("android")||_31)&&win.global.onorientationchange!==undefined){var _32=f;var _33,_34,_35;if(_31){_34=win.doc.documentElement.clientWidth;_35=win.doc.documentElement.clientHeight;}else{f=function(evt){var _36=_10.connect(null,"onresize",null,function(e){_10.disconnect(_36);_32(e);});};_33=dm.getScreenSize();}_10.connect(null,"onresize",null,function(e){if(_31){var _37=win.doc.documentElement.clientWidth,_38=win.doc.documentElement.clientHeight;if(_37==_34&&_38!=_35){_32(e);}_34=_37;_35=_38;}else{var _39=dm.getScreenSize();if(_39.w==_33.w&&Math.abs(_39.h-_33.h)>=100){_32(e);}_33=_39;}});}_10.connect(null,win.global.onorientationchange!==undefined?"onorientationchange":"onresize",null,f);win.body().style.visibility="visible";});return dm;});},"dojo/touch":function(){define(["./_base/kernel","./aspect","./dom","./dom-class","./_base/lang","./on","./has","./mouse","./domReady","./_base/window"],function(_3a,_3b,dom,_3c,_3d,on,has,_3e,_3f,win){var _40=has("ios")<5;var _41=has("pointer-events")||has("MSPointer"),_42=(function(){var _43={};for(var _44 in {down:1,move:1,up:1,cancel:1,over:1,out:1}){_43[_44]=has("MSPointer")?"MSPointer"+_44.charAt(0).toUpperCase()+_44.slice(1):"pointer"+_44;}return _43;})();var _45=has("touch-events");var _46,_47,_48=false,_49,_4a,_4b,_4c,_4d,_4e;var _4f;function _50(_51,_52,_53){if(_41&&_53){return function(_54,_55){return on(_54,_53,_55);};}else{if(_45){return function(_56,_57){var _58=on(_56,_52,function(evt){_57.call(this,evt);_4f=(new Date()).getTime();}),_59=on(_56,_51,function(evt){if(!_4f||(new Date()).getTime()>_4f+1000){_57.call(this,evt);}});return {remove:function(){_58.remove();_59.remove();}};};}else{return function(_5a,_5b){return on(_5a,_51,_5b);};}}};function _5c(_5d){do{if(_5d.dojoClick!==undefined){return _5d;}}while(_5d=_5d.parentNode);};function _5e(e,_5f,_60){if(_3e.isRight(e)){return;}var _61=_5c(e.target);_47=!e.target.disabled&&_61&&_61.dojoClick;if(_47){_48=(_47=="useTarget");_49=(_48?_61:e.target);if(_48){e.preventDefault();}_4a=e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX;_4b=e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY;_4c=(typeof _47=="object"?_47.x:(typeof _47=="number"?_47:0))||4;_4d=(typeof _47=="object"?_47.y:(typeof _47=="number"?_47:0))||4;if(!_46){_46=true;function _62(e){if(_48){_47=dom.isDescendant(win.doc.elementFromPoint((e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX),(e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY)),_49);}else{_47=_47&&(e.changedTouches?e.changedTouches[0].target:e.target)==_49&&Math.abs((e.changedTouches?e.changedTouches[0].pageX-win.global.pageXOffset:e.clientX)-_4a)<=_4c&&Math.abs((e.changedTouches?e.changedTouches[0].pageY-win.global.pageYOffset:e.clientY)-_4b)<=_4d;}};win.doc.addEventListener(_5f,function(e){if(_3e.isRight(e)){return;}_62(e);if(_48){e.preventDefault();}},true);win.doc.addEventListener(_60,function(e){if(_3e.isRight(e)){return;}_62(e);if(_47){_4e=(new Date()).getTime();var _63=(_48?_49:e.target);if(_63.tagName==="LABEL"){_63=dom.byId(_63.getAttribute("for"))||_63;}var src=(e.changedTouches)?e.changedTouches[0]:e;function _64(_65){var evt=document.createEvent("MouseEvents");evt._dojo_click=true;evt.initMouseEvent(_65,true,true,e.view,e.detail,src.screenX,src.screenY,src.clientX,src.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,0,null);return evt;};var _66=_64("mousedown");var _67=_64("mouseup");var _68=_64("click");setTimeout(function(){on.emit(_63,"mousedown",_66);on.emit(_63,"mouseup",_67);on.emit(_63,"click",_68);_4e=(new Date()).getTime();},0);}},true);function _69(_6a){win.doc.addEventListener(_6a,function(e){var _6b=e.target;if(_47&&!e._dojo_click&&(new Date()).getTime()<=_4e+1000&&!(_6b.tagName=="INPUT"&&_3c.contains(_6b,"dijitOffScreen"))){e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();if(_6a=="click"&&(_6b.tagName!="INPUT"||(_6b.type=="radio"&&(_3c.contains(_6b,"dijitCheckBoxInput")||_3c.contains(_6b,"mblRadioButton")))||(_6b.type=="checkbox"&&(_3c.contains(_6b,"dijitCheckBoxInput")||_3c.contains(_6b,"mblCheckBox"))))&&_6b.tagName!="TEXTAREA"&&_6b.tagName!="AUDIO"&&_6b.tagName!="VIDEO"){e.preventDefault();}}},true);};_69("click");_69("mousedown");_69("mouseup");}}};var _6c;if(has("touch")){if(_41){_3f(function(){win.doc.addEventListener(_42.down,function(evt){_5e(evt,_42.move,_42.up);},true);});}else{_3f(function(){_6c=win.body();win.doc.addEventListener("touchstart",function(evt){_4f=(new Date()).getTime();var _6d=_6c;_6c=evt.target;on.emit(_6d,"dojotouchout",{relatedTarget:_6c,bubbles:true});on.emit(_6c,"dojotouchover",{relatedTarget:_6d,bubbles:true});_5e(evt,"touchmove","touchend");},true);function _6e(evt){var _6f=_3d.delegate(evt,{bubbles:true});if(has("ios")>=6){_6f.touches=evt.touches;_6f.altKey=evt.altKey;_6f.changedTouches=evt.changedTouches;_6f.ctrlKey=evt.ctrlKey;_6f.metaKey=evt.metaKey;_6f.shiftKey=evt.shiftKey;_6f.targetTouches=evt.targetTouches;}return _6f;};on(win.doc,"touchmove",function(evt){_4f=(new Date()).getTime();var _70=win.doc.elementFromPoint(evt.pageX-(_40?0:win.global.pageXOffset),evt.pageY-(_40?0:win.global.pageYOffset));if(_70){if(_6c!==_70){on.emit(_6c,"dojotouchout",{relatedTarget:_70,bubbles:true});on.emit(_70,"dojotouchover",{relatedTarget:_6c,bubbles:true});_6c=_70;}if(!on.emit(_70,"dojotouchmove",_6e(evt))){evt.preventDefault();}}});on(win.doc,"touchend",function(evt){_4f=(new Date()).getTime();var _71=win.doc.elementFromPoint(evt.pageX-(_40?0:win.global.pageXOffset),evt.pageY-(_40?0:win.global.pageYOffset))||win.body();on.emit(_71,"dojotouchend",_6e(evt));});});}}var _72={press:_50("mousedown","touchstart",_42.down),move:_50("mousemove","dojotouchmove",_42.move),release:_50("mouseup","dojotouchend",_42.up),cancel:_50(_3e.leave,"touchcancel",_41?_42.cancel:null),over:_50("mouseover","dojotouchover",_42.over),out:_50("mouseout","dojotouchout",_42.out),enter:_3e._eventHandler(_50("mouseover","dojotouchover",_42.over)),leave:_3e._eventHandler(_50("mouseout","dojotouchout",_42.out))};1&&(_3a.touch=_72);return _72;});},"dijit/registry":function(){define(["dojo/_base/array","dojo/_base/window","./main"],function(_73,win,_74){var _75={},_76={};var _77={length:0,add:function(_78){if(_76[_78.id]){throw new Error("Tried to register widget with id=="+_78.id+" but that id is already registered");}_76[_78.id]=_78;this.length++;},remove:function(id){if(_76[id]){delete _76[id];this.length--;}},byId:function(id){return typeof id=="string"?_76[id]:id;},byNode:function(_79){return _76[_79.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _76){ar.push(_76[id]);}return ar;},getUniqueId:function(_7a){var id;do{id=_7a+"_"+(_7a in _75?++_75[_7a]:_75[_7a]=0);}while(_76[id]);return _74._scopeName=="dijit"?id:_74._scopeName+"_"+id;},findWidgets:function(_7b,_7c){var _7d=[];function _7e(_7f){for(var _80=_7f.firstChild;_80;_80=_80.nextSibling){if(_80.nodeType==1){var _81=_80.getAttribute("widgetId");if(_81){var _82=_76[_81];if(_82){_7d.push(_82);}}else{if(_80!==_7c){_7e(_80);}}}}};_7e(_7b);return _7d;},_destroyAll:function(){_74._curFocus=null;_74._prevFocus=null;_74._activeStack=[];_73.forEach(_77.findWidgets(win.body()),function(_83){if(!_83._destroyed){if(_83.destroyRecursive){_83.destroyRecursive();}else{if(_83.destroy){_83.destroy();}}}});},getEnclosingWidget:function(_84){while(_84){var id=_84.nodeType==1&&_84.getAttribute("widgetId");if(id){return _76[id];}_84=_84.parentNode;}return null;},_hash:_76};_74.registry=_77;return _77;});},"dijit/main":function(){define(["dojo/_base/kernel"],function(_85){return _85.dijit;});},"dojox/mobile/sniff":function(){define(["dojo/_base/kernel","dojo/sniff"],function(_86,has){_86.deprecated("dojox/mobile/sniff","Use dojo/sniff instead","2.0");has.add("iphone",has("ios"));return has;});},"dojox/mobile/uacss":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","./sniff"],function(_87,_88,win,has){var _89=win.doc.documentElement;_89.className=_88.trim(_89.className+" "+[has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("ios")?"dj_ios":"",has("ios")>=6?"dj_ios6":"",has("ios")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":"",has("ie")?"dj_ie":""].join(" ").replace(/ +/g," "));return _87;});},"dojox/mobile/View":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./common","./transition","./viewRegistry","./_css3"],function(_8a,_8b,_8c,_8d,_8e,has,win,_8f,dom,_90,_91,_92,_93,_94,_95,_96,_97,_98,_99,_9a,_9b,_9c){var dm=_8e.getObject("dojox.mobile",true);return _8d("dojox.mobile.View",[_97,_96,_95],{selected:false,keepScrollPos:true,tag:"div",baseClass:"mblView",constructor:function(_9d,_9e){if(_9e){dom.byId(_9e).style.visibility="hidden";}},destroy:function(){_9b.remove(this.id);this.inherited(arguments);},buildRendering:function(){if(!this.templateString){this.domNode=this.containerNode=this.srcNodeRef||_91.create(this.tag);}this._animEndHandle=this.connect(this.domNode,_9c.name("animationEnd"),"onAnimationEnd");this._animStartHandle=this.connect(this.domNode,_9c.name("animationStart"),"onAnimationStart");if(!_8b.mblCSS3Transition){this._transEndHandle=this.connect(this.domNode,_9c.name("transitionEnd"),"onAnimationEnd");}if(has("mblAndroid3Workaround")){_93.set(this.domNode,_9c.name("transformStyle"),"preserve-3d");}_9b.add(this);this.inherited(arguments);},startup:function(){if(this._started){return;}if(this._visible===undefined){var _9f=this.getSiblingViews();var ids=location.hash&&location.hash.substring(1).split(/,/);var _a0,_a1,_a2;_8a.forEach(_9f,function(v,i){if(_8a.indexOf(ids,v.id)!==-1){_a0=v;}if(i==0){_a2=v;}if(v.selected){_a1=v;}v._visible=false;},this);(_a0||_a1||_a2)._visible=true;}if(this._visible){this.show(true,true);this.defer(function(){this.onStartView();_8c.publish("/dojox/mobile/startView",[this]);});}if(this.domNode.style.visibility==="hidden"){this.domNode.style.visibility="inherit";}this.inherited(arguments);var _a3=this.getParent();if(!_a3||!_a3.resize){this.resize();}if(!this._visible){this.hide();}},resize:function(){_8a.forEach(this.getChildren(),function(_a4){if(_a4.resize){_a4.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_a5,dir,_a6,_a7,_a8){},onAfterTransitionIn:function(_a9,dir,_aa,_ab,_ac){},onBeforeTransitionOut:function(_ad,dir,_ae,_af,_b0){},onAfterTransitionOut:function(_b1,dir,_b2,_b3,_b4){},_clearClasses:function(_b5){if(!_b5){return;}var _b6=[];_8a.forEach(_8e.trim(_b5.className||"").split(/\s+/),function(c){if(c.match(/^mbl\w*View$/)||c.indexOf("mbl")===-1){_b6.push(c);}},this);_b5.className=_b6.join(" ");},_fixViewState:function(_b7){var _b8=this.domNode.parentNode.childNodes;for(var i=0;i<_b8.length;i++){var n=_b8[i];if(n.nodeType===1&&_90.contains(n,"mblView")){this._clearClasses(n);}}this._clearClasses(_b7);var _b9=_94.byNode(_b7);if(_b9){_b9._inProgress=false;}},convertToId:function(_ba){if(typeof (_ba)=="string"){return _ba.replace(/^#?([^&?]+).*/,"$1");}return _ba;},_isBookmarkable:function(_bb){return _bb.moveTo&&(_8b.mblForceBookmarkable||_bb.moveTo.charAt(0)==="#")&&!_bb.hashchange;},performTransition:function(_bc,_bd,_be,_bf,_c0){if(this._inProgress){return;}this._inProgress=true;var _c1,_c2;if(_bc&&typeof (_bc)==="object"){_c1=_bc;_c2=_bd;}else{_c1={moveTo:_bc,transitionDir:_bd,transition:_be,context:_bf,method:_c0};_c2=[];for(var i=5;i<arguments.length;i++){_c2.push(arguments[i]);}}this._detail=_c1;this._optArgs=_c2;this._arguments=[_c1.moveTo,_c1.transitionDir,_c1.transition,_c1.context,_c1.method];if(_c1.moveTo==="#"){return;}var _c3;if(_c1.moveTo){_c3=this.convertToId(_c1.moveTo);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("div");win.body().appendChild(this._dummyNode);}_c3=this._dummyNode;}if(this.addTransitionInfo&&typeof (_c1.moveTo)=="string"&&this._isBookmarkable(_c1)){this.addTransitionInfo(this.id,_c1.moveTo,{transitionDir:_c1.transitionDir,transition:_c1.transition});}var _c4=this.domNode;var _c5=_c4.offsetTop;_c3=this.toNode=dom.byId(_c3);if(!_c3){return;}_c3.style.visibility="hidden";_c3.style.display="";this._fixViewState(_c3);var _c6=_94.byNode(_c3);if(_c6){if(_8b.mblAlwaysResizeOnTransition||!_c6._resized){_99.resizeAll(null,_c6);_c6._resized=true;}if(_c1.transition&&_c1.transition!="none"){_c6._addTransitionPaddingTop(_c5);}_c6.load&&_c6.load();_c6.movedFrom=_c4.id;}if(has("mblAndroidWorkaround")&&!_8b.mblCSS3Transition&&_c1.transition&&_c1.transition!="none"){_93.set(_c3,_9c.name("transformStyle"),"preserve-3d");_93.set(_c4,_9c.name("transformStyle"),"preserve-3d");_90.add(_c3,"mblAndroidWorkaround");}this.onBeforeTransitionOut.apply(this,this._arguments);_8c.publish("/dojox/mobile/beforeTransitionOut",[this].concat(_8e._toArray(this._arguments)));if(_c6){if(this.keepScrollPos&&!this.getParent()){var _c7=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_c4._scrollTop=_c7;var _c8=(_c1.transitionDir==1)?0:(_c3._scrollTop||0);_c3.style.top="0px";if(_c7>1||_c8!==0){_c4.style.top=_c8-_c7+"px";if(!(has("ios")>=7)&&_8b.mblHideAddressBar!==false){this.defer(function(){win.global.scrollTo(0,(_c8||1));});}}}else{_c3.style.top="0px";}_c6.onBeforeTransitionIn.apply(_c6,this._arguments);_8c.publish("/dojox/mobile/beforeTransitionIn",[_c6].concat(_8e._toArray(this._arguments)));}_c3.style.display="none";_c3.style.visibility="inherit";_99.fromView=this;_99.toView=_c6;this._doTransition(_c4,_c3,_c1.transition,_c1.transitionDir);},_addTransitionPaddingTop:function(_c9){this.containerNode.style.paddingTop=_c9+"px";},_removeTransitionPaddingTop:function(){this.containerNode.style.paddingTop="";},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_ca,_cb,_cc,_cd){var rev=(_cd==-1)?" mblReverse":"";_cb.style.display="";if(!_cc||_cc=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_8b.mblCSS3Transition){_8f.when(_9a,_8e.hitch(this,function(_ce){var _cf=_93.get(_cb,"position");_93.set(_cb,"position","absolute");_8f.when(_ce(_ca,_cb,{transition:_cc,reverse:(_cd===-1)?true:false}),_8e.hitch(this,function(){_93.set(_cb,"position",_cf);_cb.style.paddingTop="";this.invokeCallback();}));}));}else{if(_cc.indexOf("cube")!=-1){if(has("ipad")){_93.set(_cb.parentNode,{webkitPerspective:1600});}else{if(has("ios")){_93.set(_cb.parentNode,{webkitPerspective:800});}}}var s=this._toCls(_cc);if(has("mblAndroidWorkaround")){var _d0=this;_d0.defer(function(){_90.add(_ca,s+" mblOut"+rev);_90.add(_cb,s+" mblIn"+rev);_90.remove(_cb,"mblAndroidWorkaround");_d0.defer(function(){_90.add(_ca,"mblTransition");_90.add(_cb,"mblTransition");},30);},70);}else{_90.add(_ca,s+" mblOut"+rev);_90.add(_cb,s+" mblIn"+rev);this.defer(function(){_90.add(_ca,"mblTransition");_90.add(_cb,"mblTransition");},100);}var _d1="50% 50%";var _d2="50% 50%";var _d3,_d4,_d5;if(_cc.indexOf("swirl")!=-1||_cc.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_d3=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_d3=-_92.position(_ca,true).y;}_d5=win.global.innerHeight/2+_d3;_d1="50% "+_d5+"px";_d2="50% "+_d5+"px";}else{if(_cc.indexOf("scale")!=-1){var _d6=_92.position(_ca,true);_d4=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_d6.x;if(this.keepScrollPos&&!this.getParent()){_d3=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_d3=-_d6.y;}_d5=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_d3;_d1=_d4+"px "+_d5+"px";_d2=_d4+"px "+_d5+"px";}}_93.set(_ca,_9c.add({},{transformOrigin:_d1}));_93.set(_cb,_9c.add({},{transformOrigin:_d2}));}}},onAnimationStart:function(e){},onAnimationEnd:function(e){var _d7=e.animationName||e.target.className;if(_d7.indexOf("Out")===-1&&_d7.indexOf("In")===-1&&_d7.indexOf("Shrink")===-1){return;}var _d8=false;if(_90.contains(this.domNode,"mblOut")){_d8=true;this.domNode.style.display="none";_90.remove(this.domNode,[this._toCls(this._detail.transition),"mblIn","mblOut","mblReverse"]);}else{this._removeTransitionPaddingTop();}_93.set(this.domNode,_9c.add({},{transformOrigin:""}));if(_d7.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_90.remove(li,"mblCloseContent");var p=_9b.getEnclosingScrollable(this.domNode);p&&p.onTouchEnd();}if(_d8){this.invokeCallback();}this._clearClasses(this.domNode);this.clickedPosX=this.clickedPosY=undefined;if(_d7.indexOf("Cube")!==-1&&_d7.indexOf("In")!==-1&&has("ios")){this.domNode.parentNode.style[_9c.name("perspective")]="";}},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_8c.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _d9=_94.byNode(this.toNode);if(_d9){_d9.onAfterTransitionIn.apply(_d9,this._arguments);_8c.publish("/dojox/mobile/afterTransitionIn",[_d9].concat(this._arguments));_d9.movedFrom=undefined;if(this.setFragIds&&this._isBookmarkable(this._detail)){this.setFragIds(_d9);}}if(has("mblAndroidWorkaround")){this.defer(function(){if(_d9){_93.set(this.toNode,_9c.name("transformStyle"),"");}_93.set(this.domNode,_9c.name("transformStyle"),"");});}var c=this._detail.context,m=this._detail.method;if(c||m){if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._optArgs);}else{if(typeof (m)=="function"){m.apply(c,this._optArgs);}}}this._detail=this._optArgs=this._arguments=undefined;this._inProgress=false;},isVisible:function(_da){var _db=function(_dc){return _93.get(_dc,"display")!=="none";};if(_da){for(var n=this.domNode;n.tagName!=="BODY";n=n.parentNode){if(!_db(n)){return false;}}return true;}else{return _db(this.domNode);}},getShowingView:function(){var _dd=this.domNode.parentNode.childNodes;for(var i=0;i<_dd.length;i++){var n=_dd[i];if(n.nodeType===1&&_90.contains(n,"mblView")&&n.style.display!=="none"){return _94.byNode(n);}}return null;},getSiblingViews:function(){if(!this.domNode.parentNode){return [this];}return _8a.map(_8a.filter(this.domNode.parentNode.childNodes,function(n){return n.nodeType===1&&_90.contains(n,"mblView");}),function(n){return _94.byNode(n);});},show:function(_de,_df){var out=this.getShowingView();if(!_de){if(out){out.onBeforeTransitionOut(out.id);_8c.publish("/dojox/mobile/beforeTransitionOut",[out,out.id]);}this.onBeforeTransitionIn(this.id);_8c.publish("/dojox/mobile/beforeTransitionIn",[this,this.id]);}if(_df){this.domNode.style.display="";}else{_8a.forEach(this.getSiblingViews(),function(v){v.domNode.style.display=(v===this)?"":"none";},this);}this.load&&this.load();if(!_de){if(out){out.onAfterTransitionOut(out.id);_8c.publish("/dojox/mobile/afterTransitionOut",[out,out.id]);}this.onAfterTransitionIn(this.id);_8c.publish("/dojox/mobile/afterTransitionIn",[this,this.id]);}},hide:function(){this.domNode.style.display="none";}});});},"dijit/_Contained":function(){define(["dojo/_base/declare","./registry"],function(_e0,_e1){return _e0("dijit._Contained",null,{_getSibling:function(_e2){var p=this.getParent();return (p&&p._getSiblingOfChild&&p._getSiblingOfChild(this,_e2=="previous"?-1:1))||null;},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});});},"dijit/_Container":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","dojo/_base/kernel"],function(_e3,_e4,_e5,_e6){return _e4("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_e7,_e8){var _e9=this.containerNode;if(_e8>0){_e9=_e9.firstChild;while(_e8>0){if(_e9.nodeType==1){_e8--;}_e9=_e9.nextSibling;}if(_e9){_e8="before";}else{_e9=this.containerNode;_e8="last";}}_e5.place(_e7.domNode,_e9,_e8);if(this._started&&!_e7._started){_e7.startup();}},removeChild:function(_ea){if(typeof _ea=="number"){_ea=this.getChildren()[_ea];}if(_ea){var _eb=_ea.domNode;if(_eb&&_eb.parentNode){_eb.parentNode.removeChild(_eb);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_ec,dir){var _ed=this.getChildren(),idx=_e3.indexOf(_ed,_ec);return _ed[idx+dir];},getIndexOfChild:function(_ee){return _e3.indexOf(this.getChildren(),_ee);}});});},"dijit/_WidgetBase":function(){define(["require","dojo/_base/array","dojo/aspect","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./Destroyable","dojo/has!dojo-bidi?./_BidiMixin","./registry"],function(_ef,_f0,_f1,_f2,_f3,_f4,dom,_f5,_f6,_f7,_f8,_f9,has,_fa,_fb,on,_fc,_fd,_fe,win,_ff,_100,_101){has.add("dijit-legacy-requires",!_fa.isAsync);has.add("dojo-bidi",false);if(has("dijit-legacy-requires")){_fc(0,function(){var _102=["dijit/_base/manager"];_ef(_102);});}var _103={};function _104(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _105(attr){return function(val){_f5[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};function _106(a,b){return a===b||(a!==a&&b!==b);};var _107=_f4("dijit._WidgetBase",[_fd,_ff],{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_105("lang"),dir:"",_setDirAttr:_105("dir"),"class":"",_setClassAttr:{node:"domNode",type:"class"},_setTypeAttr:null,style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,ownerDocument:null,_setOwnerDocumentAttr:function(val){this._set("ownerDocument",val);},attributeMap:{},_blankGif:_f2.blankGif||_ef.toUrl("dojo/resources/blank.gif"),textDir:"",_introspect:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var _108=ctor.prototype,_109=ctor._setterAttrs=[],_10a=(ctor._onMap={});for(var name in _108.attributeMap){_109.push(name);}for(name in _108){if(/^on/.test(name)){_10a[name.substring(2).toLowerCase()]=name;}if(/^_set[A-Z](.*)Attr$/.test(name)){name=name.charAt(4).toLowerCase()+name.substr(5,name.length-9);if(!_108.attributeMap||!(name in _108.attributeMap)){_109.push(name);}}}}},postscript:function(_10b,_10c){this.create(_10b,_10c);},create:function(_10d,_10e){this._introspect();this.srcNodeRef=dom.byId(_10e);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&this.srcNodeRef.id&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_10d){this.params=_10d;_fb.mixin(this,_10d);}this.postMixInProperties();if(!this.id){this.id=_101.getUniqueId(this.declaredClass.replace(/\./g,"_"));if(this.params){delete this.params.id;}}this.ownerDocument=this.ownerDocument||(this.srcNodeRef?this.srcNodeRef.ownerDocument:document);this.ownerDocumentBody=win.body(this.ownerDocument);_101.add(this);this.buildRendering();var _10f;if(this.domNode){this._applyAttributes();var _110=this.srcNodeRef;if(_110&&_110.parentNode&&this.domNode!==_110){_110.parentNode.replaceChild(this.domNode,_110);_10f=true;}this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(_10f){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _111={};for(var key in this.params||{}){_111[key]=this._get(key);}_f0.forEach(this.constructor._setterAttrs,function(key){if(!(key in _111)){var val=this._get(key);if(val){this.set(key,val);}}},this);for(key in _111){this.set(key,_111[key]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||this.ownerDocument.createElement("div");}if(this.baseClass){var _112=this.baseClass.split(" ");if(!this.isLeftToRight()){_112=_112.concat(_f0.map(_112,function(name){return name+"Rtl";}));}_f6.add(this.domNode,_112);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_f0.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&_fb.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_113){this._beingDestroyed=true;this.destroyDescendants(_113);this.destroy(_113);},destroy:function(_114){this._beingDestroyed=true;this.uninitialize();function _115(w){if(w.destroyRecursive){w.destroyRecursive(_114);}else{if(w.destroy){w.destroy(_114);}}};_f0.forEach(this._connects,_fb.hitch(this,"disconnect"));_f0.forEach(this._supportingWidgets,_115);if(this.domNode){_f0.forEach(_101.findWidgets(this.domNode,this.containerNode),_115);}this.destroyRendering(_114);_101.remove(this.id);this._destroyed=true;},destroyRendering:function(_116){if(this.bgIframe){this.bgIframe.destroy(_116);delete this.bgIframe;}if(this.domNode){if(_116){_f5.remove(this.domNode,"widgetId");}else{_f7.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_116){_f7.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_117){_f0.forEach(this.getChildren(),function(_118){if(_118.destroyRecursive){_118.destroyRecursive(_117);}});},uninitialize:function(){return false;},_setStyleAttr:function(_119){var _11a=this.domNode;if(_fb.isObject(_119)){_f9.set(_11a,_119);}else{if(_11a.style.cssText){_11a.style.cssText+="; "+_119;}else{_11a.style.cssText=_119;}}this._set("style",_119);},_attrToDom:function(attr,_11b,_11c){_11c=arguments.length>=3?_11c:this.attributeMap[attr];_f0.forEach(_fb.isArray(_11c)?_11c:[_11c],function(_11d){var _11e=this[_11d.node||_11d||"domNode"];var type=_11d.type||"attribute";switch(type){case "attribute":if(_fb.isFunction(_11b)){_11b=_fb.hitch(this,_11b);}var _11f=_11d.attribute?_11d.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);if(_11e.tagName){_f5.set(_11e,_11f,_11b);}else{_11e.set(_11f,_11b);}break;case "innerText":_11e.innerHTML="";_11e.appendChild(this.ownerDocument.createTextNode(_11b));break;case "innerHTML":_11e.innerHTML=_11b;break;case "class":_f6.replace(_11e,_11b,this[attr]);break;case "toggleClass":_f6.toggle(_11e,_11d.className||attr,_11b);break;}},this);},get:function(name){var _120=this._getAttrNames(name);return this[_120.g]?this[_120.g]():this._get(name);},set:function(name,_121){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _122=this._getAttrNames(name),_123=this[_122.s];if(_fb.isFunction(_123)){var _124=_123.apply(this,Array.prototype.slice.call(arguments,1));}else{var _125=this.focusNode&&!_fb.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_125]&&this[_125].tagName,_126=tag&&(_103[tag]||(_103[tag]=_104(this[_125]))),map=name in this.attributeMap?this.attributeMap[name]:_122.s in this?this[_122.s]:((_126&&_122.l in _126&&typeof _121!="function")||/^aria-|^data-|^role$/.test(name))?_125:null;if(map!=null){this._attrToDom(name,_121,map);}this._set(name,_121);}return _124||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();});return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr",l:uc.toLowerCase()});},_set:function(name,_127){var _128=this[name];this[name]=_127;if(this._created&&!_106(_128,_127)){if(this._watchCallbacks){this._watchCallbacks(name,_128,_127);}this.emit("attrmodified-"+name,{detail:{prevValue:_128,newValue:_127}});}},_get:function(name){return this[name];},emit:function(type,_129,_12a){_129=_129||{};if(_129.bubbles===undefined){_129.bubbles=true;}if(_129.cancelable===undefined){_129.cancelable=true;}if(!_129.detail){_129.detail={};}_129.detail.widget=this;var ret,_12b=this["on"+type];if(_12b){ret=_12b.apply(this,_12a?_12a:[_129]);}if(this._started&&!this._beingDestroyed){on.emit(this.domNode,type.toLowerCase(),_129);}return ret;},on:function(type,func){var _12c=this._onMap(type);if(_12c){return _f1.after(this,_12c,func,true);}return this.own(on(this.domNode,type,func))[0];},_onMap:function(type){var ctor=this.constructor,map=ctor._onMap;if(!map){map=(ctor._onMap={});for(var attr in ctor.prototype){if(/^on/.test(attr)){map[attr.replace(/^on/,"").toLowerCase()]=attr;}}}return map[typeof type=="string"&&type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_101.findWidgets(this.containerNode):[];},getParent:function(){return _101.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_12d,_12e){return this.own(_f3.connect(obj,_12d,this,_12e))[0];},disconnect:function(_12f){_12f.remove();},subscribe:function(t,_130){return this.own(_fe.subscribe(t,_fb.hitch(this,_130)))[0];},unsubscribe:function(_131){_131.remove();},isLeftToRight:function(){return this.dir?(this.dir.toLowerCase()=="ltr"):_f8.isBodyLtr(this.ownerDocument);},isFocusable:function(){return this.focus&&(_f9.get(this.domNode,"display")!="none");},placeAt:function(_132,_133){var _134=!_132.tagName&&_101.byId(_132);if(_134&&_134.addChild&&(!_133||typeof _133==="number")){_134.addChild(this,_133);}else{var ref=_134&&("domNode" in _134)?(_134.containerNode&&!/after|before|replace/.test(_133||"")?_134.containerNode:_134.domNode):dom.byId(_132,this.ownerDocument);_f7.place(this.domNode,ref,_133);if(!this._started&&(this.getParent()||{})._started){this.startup();}}return this;},defer:function(fcn,_135){var _136=setTimeout(_fb.hitch(this,function(){if(!_136){return;}_136=null;if(!this._destroyed){_fb.hitch(this,fcn)();}}),_135||0);return {remove:function(){if(_136){clearTimeout(_136);_136=null;}return null;}};}});if(has("dojo-bidi")){_107.extend(_100);}return _107;});},"dojo/Stateful":function(){define(["./_base/declare","./_base/lang","./_base/array","./when"],function(_137,lang,_138,when){return _137("dojo.Stateful",null,{_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}return (apn[name]={s:"_"+name+"Setter",g:"_"+name+"Getter"});},postscript:function(_139){if(_139){this.set(_139);}},_get:function(name,_13a){return typeof this[_13a.g]==="function"?this[_13a.g]():this[name];},get:function(name){return this._get(name,this._getAttrNames(name));},set:function(name,_13b){if(typeof name==="object"){for(var x in name){if(name.hasOwnProperty(x)&&x!="_watchCallbacks"){this.set(x,name[x]);}}return this;}var _13c=this._getAttrNames(name),_13d=this._get(name,_13c),_13e=this[_13c.s],_13f;if(typeof _13e==="function"){_13f=_13e.apply(this,Array.prototype.slice.call(arguments,1));}else{this[name]=_13b;}if(this._watchCallbacks){var self=this;when(_13f,function(){self._watchCallbacks(name,_13d,_13b);});}return this;},_changeAttrValue:function(name,_140){var _141=this.get(name);this[name]=_140;if(this._watchCallbacks){this._watchCallbacks(name,_141,_140);}return this;},watch:function(name,_142){var _143=this._watchCallbacks;if(!_143){var self=this;_143=this._watchCallbacks=function(name,_144,_145,_146){var _147=function(_148){if(_148){_148=_148.slice();for(var i=0,l=_148.length;i<l;i++){_148[i].call(self,name,_144,_145);}}};_147(_143["_"+name]);if(!_146){_147(_143["*"]);}};}if(!_142&&typeof name==="function"){_142=name;name="*";}else{name="_"+name;}var _149=_143[name];if(typeof _149!=="object"){_149=_143[name]=[];}_149.push(_142);var _14a={};_14a.unwatch=_14a.remove=function(){var _14b=_138.indexOf(_149,_142);if(_14b>-1){_149.splice(_14b,1);}};return _14a;}});});},"dijit/Destroyable":function(){define(["dojo/_base/array","dojo/aspect","dojo/_base/declare"],function(_14c,_14d,_14e){return _14e("dijit.Destroyable",null,{destroy:function(_14f){this._destroyed=true;},own:function(){var _150=["destroyRecursive","destroy","remove"];_14c.forEach(arguments,function(_151){var _152;var odh=_14d.before(this,"destroy",function(_153){_151[_152](_153);});var hdhs=[];function _154(){odh.remove();_14c.forEach(hdhs,function(hdh){hdh.remove();});};if(_151.then){_152="cancel";_151.then(_154,_154);}else{_14c.forEach(_150,function(_155){if(typeof _151[_155]==="function"){if(!_152){_152=_155;}hdhs.push(_14d.after(_151,_155,_154,true));}});}},this);return arguments;}});});},"dojox/mobile/ViewController":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent","./viewRegistry"],function(dojo,_156,_157,_158,lang,win,_159,dom,_15a,_15b,on,_15c,_15d,_15e,_15f,_160){var _161=_158("dojox.mobile.ViewController",null,{dataHandlerClass:"dojox/mobile/dh/DataHandler",dataSourceClass:"dojox/mobile/dh/UrlDataSource",fileTypeMapClass:"dojox/mobile/dh/SuffixFileTypeMap",constructor:function(){this.viewMap={};_15c(lang.hitch(this,function(){on(win.body(),"startTransition",lang.hitch(this,"onStartTransition"));}));},findTransitionViews:function(_162){if(!_162){return [];}_162.match(/^#?([^&?]+)(.*)/);var _163=RegExp.$2;var view=_15d.byId(RegExp.$1);if(!view){return [];}for(var v=view.getParent();v;v=v.getParent()){if(v.isVisible&&!v.isVisible()){var sv=view.getShowingView();if(sv&&sv.id!==view.id){view.show();}view=v;}}return [view.getShowingView(),view,_163];},openExternalView:function(_164,_165){var d=new _159();var id=this.viewMap[_164.url];if(id){_164.moveTo=id;if(_164.noTransition){_15d.byId(id).hide();}else{new _15f(win.body(),_164).dispatch();}d.resolve(true);return d;}var _166=null;for(var i=_165.childNodes.length-1;i>=0;i--){var c=_165.childNodes[i];if(c.nodeType===1){var _167=c.getAttribute("fixed")||c.getAttribute("data-mobile-fixed")||(_15d.byNode(c)&&_15d.byNode(c).fixed);if(_167==="bottom"){_166=c;break;}}}var dh=_164.dataHandlerClass||this.dataHandlerClass;var ds=_164.dataSourceClass||this.dataSourceClass;var ft=_164.fileTypeMapClass||this.fileTypeMapClass;require([dh,ds,ft],lang.hitch(this,function(_168,_169,_16a){var _16b=new _168(new _169(_164.data||_164.url),_165,_166);var _16c=_164.contentType||_16a.getContentType(_164.url)||"html";_16b.processData(_16c,lang.hitch(this,function(id){if(id){this.viewMap[_164.url]=_164.moveTo=id;if(_164.noTransition){_15d.byId(id).hide();}else{new _15f(win.body(),_164).dispatch();}d.resolve(true);}else{d.reject("Failed to load "+_164.url);}}));}));return d;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail){return;}var _16d=evt.detail;if(!_16d.moveTo&&!_16d.href&&!_16d.url&&!_16d.scene){return;}if(_16d.url&&!_16d.moveTo){var _16e=_16d.urlTarget;var w=_15d.byId(_16e);var _16f=w&&w.containerNode||dom.byId(_16e);if(!_16f){w=_160.getEnclosingView(evt.target);_16f=w&&w.domNode.parentNode||win.body();}var src=_15d.getEnclosingWidget(evt.target);if(src&&src.callback){_16d.context=src;_16d.method=src.callback;}this.openExternalView(_16d,_16f);return;}else{if(_16d.href){if(_16d.hrefTarget&&_16d.hrefTarget!="_self"){win.global.open(_16d.href,_16d.hrefTarget);}else{var view;for(var v=_160.getEnclosingView(evt.target);v;v=_160.getParentView(v)){view=v;}if(view){view.performTransition(null,_16d.transitionDir,_16d.transition,evt.target,function(){location.href=_16d.href;});}}return;}else{if(_16d.scene){_157.publish("/dojox/mobile/app/pushScene",[_16d.scene]);return;}}}var arr=this.findTransitionViews(_16d.moveTo),_170=arr[0],_171=arr[1],_172=arr[2];if(!location.hash&&!_16d.hashchange){_160.initialView=_170;}if(_16d.moveTo&&_171){_16d.moveTo=(_16d.moveTo.charAt(0)==="#"?"#"+_171.id:_171.id)+_172;}if(!_170||(_16d.moveTo&&_170===_15d.byId(_16d.moveTo.replace(/^#?([^&?]+).*/,"$1")))){return;}src=_15d.getEnclosingWidget(evt.target);if(src&&src.callback){_16d.context=src;_16d.method=src.callback;}_170.performTransition(_16d);}});_161._instance=new _161();_161.getInstance=function(){return _161._instance;};return _161;});},"dojox/mobile/ProgressIndicator":function(){define(["dojo/_base/config","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/has","dijit/_Contained","dijit/_WidgetBase","./_css3","dojo/has!dojo-bidi?dojox/mobile/bidi/ProgressIndicator"],function(_173,_174,lang,_175,_176,_177,_178,has,_179,_17a,css3,_17b){var cls=_174("dojox.mobile.ProgressIndicator",[_17a,_179],{interval:100,size:40,removeOnStop:true,startSpinning:false,center:true,colors:null,baseClass:"mblProgressIndicator",constructor:function(){this.colors=[];this._bars=[];},buildRendering:function(){this.inherited(arguments);if(this.center){_175.add(this.domNode,"mblProgressIndicatorCenter");}this.containerNode=_176.create("div",{className:"mblProgContainer"},this.domNode);this.spinnerNode=_176.create("div",null,this.containerNode);for(var i=0;i<12;i++){var div=_176.create("div",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}this.scale(this.size);if(this.startSpinning){this.start();}},scale:function(size){var _17c=size/40;_178.set(this.containerNode,css3.add({},{transform:"scale("+_17c+")",transformOrigin:"0 0"}));_177.setMarginBox(this.domNode,{w:size,h:size});_177.setMarginBox(this.containerNode,{w:size/_17c,h:size/_17c});},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.containerNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.containerNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _17d=this;var n=12;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_17d.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;if(c[idx]){_17d._bars[i].style.backgroundColor=c[idx];}else{_175.replace(_17d._bars[i],"mblProg"+idx+"Color","mblProg"+(idx===n-1?0:idx+1)+"Color");}}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.removeOnStop&&this.domNode&&this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_176.create("img",{src:file},this.containerNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.containerNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}},destroy:function(){this.inherited(arguments);if(this===cls._instance){cls._instance=null;}}});cls=has("dojo-bidi")?_174("dojox.mobile.ProgressIndicator",[cls,_17b]):cls;cls._instance=null;cls.getInstance=function(_17e){if(!cls._instance){cls._instance=new cls(_17e);}return cls._instance;};return cls;});},"dojox/mobile/_css3":function(){define(["dojo/_base/window","dojo/_base/array","dojo/has"],function(win,arr,has){var _17f=[],_180=[];var _181=win.doc.createElement("div").style;var _182=["webkit"];has.add("css3-animations",function(_183,_184,_185){var _186=_185.style;return (_186["animation"]!==undefined&&_186["transition"]!==undefined)||arr.some(_182,function(p){return _186[p+"Animation"]!==undefined&&_186[p+"Transition"]!==undefined;});});has.add("t17164",function(_187,_188,_189){return (_189.style["transition"]!==undefined)&&!("TransitionEvent" in window);});var css3={name:function(p,_18a){var n=(_18a?_180:_17f)[p];if(!n){if(/End|Start/.test(p)){var idx=p.length-(p.match(/End/)?3:5);var s=p.substr(0,idx);var pp=this.name(s);if(pp==s){n=p.toLowerCase();}else{n=pp+p.substr(idx);}}else{if(p=="keyframes"){var pk=this.name("animation",_18a);if(pk=="animation"){n=p;}else{if(_18a){n=pk.replace(/animation/,"keyframes");}else{n=pk.replace(/Animation/,"Keyframes");}}}else{var cn=_18a?p.replace(/-(.)/g,function(_18b,p1){return p1.toUpperCase();}):p;if(_181[cn]!==undefined&&!has("t17164")){n=p;}else{cn=cn.charAt(0).toUpperCase()+cn.slice(1);arr.some(_182,function(_18c){if(_181[_18c+cn]!==undefined){if(_18a){n="-"+_18c+"-"+p;}else{n=_18c+cn;}}});}}}if(!n){n=p;}(_18a?_180:_17f)[p]=n;}return n;},add:function(_18d,_18e){for(var p in _18e){if(_18e.hasOwnProperty(p)){_18d[css3.name(p)]=_18e[p];}}return _18d;}};return css3;});},"dojox/mobile/TransitionEvent":function(){define(["dojo/_base/declare","dojo/on"],function(_18f,on){return _18f("dojox.mobile.TransitionEvent",null,{constructor:function(_190,_191,_192){this.transitionOptions=_191;this.target=_190;this.triggerEvent=_192||null;},dispatch:function(){var opts={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",opts);}});});},"dojox/mobile/viewRegistry":function(){define(["dojo/_base/array","dojo/dom-class","dijit/registry"],function(_193,_194,_195){var _196={length:0,hash:{},initialView:null,add:function(view){this.hash[view.id]=view;this.length++;},remove:function(id){if(this.hash[id]){delete this.hash[id];this.length--;}},getViews:function(){var arr=[];for(var i in this.hash){arr.push(this.hash[i]);}return arr;},getParentView:function(view){for(var v=view.getParent();v;v=v.getParent()){if(_194.contains(v.domNode,"mblView")){return v;}}return null;},getChildViews:function(_197){return _193.filter(this.getViews(),function(v){return this.getParentView(v)===_197;},this);},getEnclosingView:function(node){for(var n=node;n&&n.tagName!=="BODY";n=n.parentNode){if(n.nodeType===1&&_194.contains(n,"mblView")){return _195.byNode(n);}}return null;},getEnclosingScrollable:function(node){for(var w=_195.getEnclosingWidget(node);w;w=w.getParent()){if(w.scrollableParams&&w._v){return w;}}return null;}};return _196;});},"dojox/mobile/transition":function(){define(["dojo/_base/Deferred","dojo/_base/config"],function(_198,_199){if(_199.mblCSS3Transition){var _19a=new _198();require([_199.mblCSS3Transition],function(_19b){_19a.resolve(_19b);});return _19a;}return null;});},"dojox/mobile/Heading":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/dom-attr","dijit/registry","./common","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ProgressIndicator","./ToolBarButton","./View","dojo/has","dojo/has!dojo-bidi?dojox/mobile/bidi/Heading"],function(_19c,_19d,_19e,lang,win,_19f,_1a0,_1a1,_1a2,_1a3,_1a4,_1a5,_1a6,_1a7,_1a8,_1a9,View,has,_1aa){var dm=lang.getObject("dojox.mobile",true);var _1ab=_19e(has("dojo-bidi")?"dojox.mobile.NonBidiHeading":"dojox.mobile.Heading",[_1a7,_1a6,_1a5],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",tag:"h1",busy:false,progStyle:"mblProgWhite",baseClass:"mblHeading",buildRendering:function(){if(!this.templateString){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);}this.inherited(arguments);if(!this.templateString){if(!this.label){_19c.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_1a0.create("span",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_1a0.create("span",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_1a0.create("div",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);}if(this.labelDivNode){_1a2.set(this.labelDivNode,"role","heading");_1a2.set(this.labelDivNode,"aria-level","1");}_1a4.setSelectable(this.domNode,false);},startup:function(){if(this._started){return;}var _1ac=this.getParent&&this.getParent();if(!_1ac||!_1ac.resize){var _1ad=this;_1ad.defer(function(){_1ad.resize();});}this.inherited(arguments);},resize:function(){if(this.labelNode){var _1ae,_1af;var _1b0=this.containerNode.childNodes;for(var i=_1b0.length-1;i>=0;i--){var c=_1b0[i];if(c.nodeType===1&&_1a1.get(c,"display")!=="none"){if(!_1af&&_1a1.get(c,"float")==="right"){_1af=c;}if(!_1ae&&_1a1.get(c,"float")==="left"){_1ae=c;}}}if(!this.labelNodeLen&&this.label){this.labelNode.style.display="inline";this.labelNodeLen=this.labelNode.offsetWidth;this.labelNode.style.display="";}var bw=this.domNode.offsetWidth;var rw=_1af?bw-_1af.offsetLeft+5:0;var lw=_1ae?_1ae.offsetLeft+_1ae.offsetWidth+5:0;var tw=this.labelNodeLen||0;_19f[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_19c.forEach(this.getChildren(),function(_1b1){if(_1b1.resize){_1b1.resize();}});},_setBackAttr:function(back){this._set("back",back);if(!this.backButton){this.backButton=new _1a9({arrow:"left",label:back,moveTo:this.moveTo,back:!this.moveTo&&!this.href,href:this.href,transition:this.transition,transitionDir:-1,dir:this.isLeftToRight()?"ltr":"rtl"});this.backButton.placeAt(this.domNode,"first");}else{this.backButton.set("label",back);}this.resize();},_setMoveToAttr:function(_1b2){this._set("moveTo",_1b2);if(this.backButton){this.backButton.set("moveTo",_1b2);this.backButton.set("back",!_1b2&&!this.href);}},_setHrefAttr:function(href){this._set("href",href);if(this.backButton){this.backButton.set("href",href);this.backButton.set("back",!this.moveTo&&!href);}},_setTransitionAttr:function(_1b3){this._set("transition",_1b3);if(this.backButton){this.backButton.set("transition",_1b3);}},_setLabelAttr:function(_1b4){this._set("label",_1b4);this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_1b4):_1b4;delete this.labelNodeLen;},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!prog){prog=this._prog=new _1a8({size:30,center:false});_19f.add(prog.domNode,this.progStyle);}_1a0.place(prog.domNode,this.domNode,"first");prog.start();}else{if(prog){prog.stop();}}this._set("busy",busy);}});return has("dojo-bidi")?_19e("dojox.mobile.Heading",[_1ab,_1aa]):_1ab;});},"dojox/mobile/ToolBarButton":function(){define(["dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/dom-attr","./sniff","./_ItemBase","dojo/has!dojo-bidi?dojox/mobile/bidi/ToolBarButton"],function(_1b5,lang,win,_1b6,_1b7,_1b8,_1b9,has,_1ba,_1bb){var _1bc=_1b5(has("dojo-bidi")?"dojox.mobile.NonBidiToolBarButton":"dojox.mobile.ToolBarButton",_1ba,{selected:false,arrow:"",light:true,defaultColor:"mblColorDefault",selColor:"mblColorDefaultSel",baseClass:"mblToolBarButton",_selStartMethod:"touch",_selEndMethod:"touch",buildRendering:function(){if(!this.label&&this.srcNodeRef){this.label=this.srcNodeRef.innerHTML;}this.label=lang.trim(this.label);this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_1b7.create("span");_1b9.set(this.domNode,"role","button");this.inherited(arguments);if(this.light&&!this.arrow&&(!this.icon||!this.label)){this.labelNode=this.tableNode=this.bodyNode=this.iconParentNode=this.domNode;_1b6.add(this.domNode,this.defaultColor+" mblToolBarButtonBody"+(this.icon?" mblToolBarButtonLightIcon":" mblToolBarButtonLightText"));return;}this.domNode.innerHTML="";if(this.arrow==="left"||this.arrow==="right"){this.arrowNode=_1b7.create("span",{className:"mblToolBarButtonArrow mblToolBarButton"+(this.arrow==="left"?"Left":"Right")+"Arrow "+(has("ie")<10?"":(this.defaultColor+" "+this.defaultColor+"45"))},this.domNode);_1b6.add(this.domNode,"mblToolBarButtonHas"+(this.arrow==="left"?"Left":"Right")+"Arrow");}this.bodyNode=_1b7.create("span",{className:"mblToolBarButtonBody"},this.domNode);this.tableNode=_1b7.create("table",{cellPadding:"0",cellSpacing:"0",border:"0",role:"presentation"},this.bodyNode);if(!this.label&&this.arrow){this.tableNode.className="mblToolBarButtonText";}var row=this.tableNode.insertRow(-1);this.iconParentNode=row.insertCell(-1);this.labelNode=row.insertCell(-1);this.iconParentNode.className="mblToolBarButtonIcon";this.labelNode.className="mblToolBarButtonLabel";if(this.icon&&this.icon!=="none"&&this.label){_1b6.add(this.domNode,"mblToolBarButtonHasIcon");_1b6.add(this.bodyNode,"mblToolBarButtonLabeledIcon");}_1b6.add(this.bodyNode,this.defaultColor);},startup:function(){if(this._started){return;}this.connect(this.domNode,"onkeydown","_onClick");this.inherited(arguments);if(!this._isOnLine){this._isOnLine=true;this.set("icon",this._pendingIcon!==undefined?this._pendingIcon:this.icon);delete this._pendingIcon;}},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}this.defaultClickAction(e);},onClick:function(){},_setLabelAttr:function(text){this.inherited(arguments);_1b6.toggle(this.tableNode,"mblToolBarButtonText",text||this.arrow);},_setSelectedAttr:function(_1bd){var _1be=function(node,a,b){_1b6.replace(node,a+" "+a+"45",b+" "+b+"45");};this.inherited(arguments);if(_1bd){_1b6.replace(this.bodyNode,this.selColor,this.defaultColor);if(!(has("ie")<10)&&this.arrowNode){_1be(this.arrowNode,this.selColor,this.defaultColor);}}else{_1b6.replace(this.bodyNode,this.defaultColor,this.selColor);if(!(has("ie")<10)&&this.arrowNode){_1be(this.arrowNode,this.defaultColor,this.selColor);}}_1b6.toggle(this.domNode,"mblToolBarButtonSelected",_1bd);_1b6.toggle(this.bodyNode,"mblToolBarButtonBodySelected",_1bd);}});return has("dojo-bidi")?_1b5("dojox.mobile.ToolBarButton",[_1bc,_1bb]):_1bc;});},"dojox/mobile/_ItemBase":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/touch","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./iconUtils","./sniff","./viewRegistry","dojo/has!dojo-bidi?dojox/mobile/bidi/_ItemBase"],function(_1bf,_1c0,lang,win,_1c1,_1c2,_1c3,_1c4,_1c5,_1c6,_1c7,_1c8,has,_1c9,_1ca){var _1cb=_1c0(has("dojo-bidi")?"dojox.mobile._NonBidiItemBase":"dojox.mobile._ItemBase",[_1c6,_1c5,_1c4],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",back:false,transition:"",transitionDir:1,transitionOptions:null,callback:null,label:"",toggle:false,selected:false,tabIndex:"0",_setTabIndexAttr:"",paramsToInherit:"transition,icon",_selStartMethod:"none",_selEndMethod:"none",_delayedSelection:false,_duration:800,_handleClick:true,buildRendering:function(){this.inherited(arguments);this._isOnLine=this.inheritParams();},startup:function(){if(this._started){return;}if(!this._isOnLine){this.inheritParams();}this._updateHandles();this.inherited(arguments);},inheritParams:function(){var _1cc=this.getParent();if(_1cc){_1bf.forEach(this.paramsToInherit.split(/,/),function(p){if(p.match(/icon/i)){var base=p+"Base",pos=p+"Pos";if(this[p]&&_1cc[base]&&_1cc[base].charAt(_1cc[base].length-1)==="/"){this[p]=_1cc[base]+this[p];}if(!this[p]){this[p]=_1cc[base];}if(!this[pos]){this[pos]=_1cc[pos];}}if(!this[p]){this[p]=_1cc[p];}},this);}return !!_1cc;},_updateHandles:function(){if(this._handleClick&&this._selStartMethod==="touch"){if(!this._onTouchStartHandle){this._onTouchStartHandle=this.connect(this.domNode,_1c2.press,"_onTouchStart");}}else{if(this._onTouchStartHandle){this.disconnect(this._onTouchStartHandle);this._onTouchStartHandle=null;}}},getTransOpts:function(){var opts=this.transitionOptions||{};_1bf.forEach(["moveTo","href","hrefTarget","url","target","urlTarget","scene","transition","transitionDir"],function(p){opts[p]=opts[p]||this[p];},this);return opts;},userClickAction:function(){},defaultClickAction:function(e){this.handleSelection(e);if(this.userClickAction(e)===false){return;}this.makeTransition(e);},handleSelection:function(e){if(this._delayedSelection){this.set("selected",true);}if(this._onTouchEndHandle){this.disconnect(this._onTouchEndHandle);this._onTouchEndHandle=null;}var p=this.getParent();if(this.toggle){this.set("selected",!this._currentSel);}else{if(p&&p.selectOne){this.set("selected",true);}else{if(this._selEndMethod==="touch"){this.set("selected",false);}else{if(this._selEndMethod==="timer"){this.defer(function(){this.set("selected",false);},this._duration);}}}}},makeTransition:function(e){if(this.back&&history){history.back();return;}if(this.href&&this.hrefTarget&&this.hrefTarget!="_self"){win.global.open(this.href,this.hrefTarget||"_blank");this._onNewWindowOpened(e);return;}var opts=this.getTransOpts();var _1cd=!!(opts.moveTo||opts.href||opts.url||opts.target||opts.scene);if(this._prepareForTransition(e,_1cd?opts:null)===false){return;}if(_1cd){this.setTransitionPos(e);new _1c7(this.domNode,opts,e).dispatch();}},_onNewWindowOpened:function(){},_prepareForTransition:function(e,_1ce){},_onTouchStart:function(e){if(this.getParent().isEditing||this.onTouchStart(e)===false){return;}var _1cf=_1c9.getEnclosingScrollable(this.domNode);if(_1cf&&_1c1.contains(_1cf.containerNode,"mblScrollableScrollTo2")){return;}if(!this._onTouchEndHandle&&this._selStartMethod==="touch"){this._onTouchMoveHandle=this.connect(win.body(),_1c2.move,"_onTouchMove");this._onTouchEndHandle=this.connect(win.body(),_1c2.release,"_onTouchEnd");}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.touchStartY=e.touches?e.touches[0].pageY:e.clientY;this._currentSel=this.selected;if(this._delayedSelection){this._selTimer=this.defer(function(){this.set("selected",true);},100);}else{this.set("selected",true);}},onTouchStart:function(){},_onTouchMove:function(e){var x=e.touches?e.touches[0].pageX:e.clientX;var y=e.touches?e.touches[0].pageY:e.clientY;if(Math.abs(x-this.touchStartX)>=4||Math.abs(y-this.touchStartY)>=4){this.cancel();var p=this.getParent();if(p&&p.selectOne){this._prevSel&&this._prevSel.set("selected",true);}else{this.set("selected",false);}}},_disconnect:function(){this.disconnect(this._onTouchMoveHandle);this.disconnect(this._onTouchEndHandle);this._onTouchMoveHandle=this._onTouchEndHandle=null;},cancel:function(){if(this._selTimer){this._selTimer.remove();this._selTimer=null;}this._disconnect();},_onTouchEnd:function(e){if(!this._selTimer&&this._delayedSelection){return;}this.cancel();this._onClick(e);},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||_1c1.contains(w.domNode,"mblView")){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_1d0,href,url,_1d1){var opts=(_1d0&&typeof (_1d0)==="object")?_1d0:{moveTo:_1d0,href:href,url:url,scene:_1d1,transition:this.transition,transitionDir:this.transitionDir};new _1c7(this.domNode,opts).dispatch();},_setIconAttr:function(icon){if(!this._isOnLine){this._pendingIcon=icon;return;}this._set("icon",icon);this.iconNode=_1c8.setIcon(icon,this.iconPos,this.iconNode,this.alt,this.iconParentNode,this.refNode,this.position);},_setLabelAttr:function(text){this._set("label",text);this.labelNode.innerHTML=this._cv?this._cv(text):text;},_setSelectedAttr:function(_1d2){if(_1d2){var p=this.getParent();if(p&&p.selectOne){var arr=_1bf.filter(p.getChildren(),function(w){return w.selected;});_1bf.forEach(arr,function(c){this._prevSel=c;c.set("selected",false);},this);}}this._set("selected",_1d2);}});return has("dojo-bidi")?_1c0("dojox.mobile._ItemBase",[_1cb,_1ca]):_1cb;});},"dojox/mobile/iconUtils":function(){define(["dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./sniff"],function(_1d3,_1d4,_1d5,_1d6,lang,win,_1d7,_1d8,_1d9,has){var dm=lang.getObject("dojox.mobile",true);var _1da=function(){this.setupSpriteIcon=function(_1db,_1dc){if(_1db&&_1dc){var arr=_1d3.map(_1dc.split(/[ ,]/),function(item){return item-0;});var t=arr[0];var r=arr[1]+arr[2];var b=arr[0]+arr[3];var l=arr[1];_1d9.set(_1db,{position:"absolute",clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_1db.parentNode?_1d9.get(_1db,"top"):0)-t+"px",left:-l+"px"});_1d7.add(_1db,"mblSpriteIcon");}};this.createDomButton=function(_1dd,_1de,_1df){if(!this._domButtons){if(has("webkit")){var _1e0=function(_1e1,dic){var i,j;if(!_1e1){var _1e2={};var ss=win.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_1e0(ss[i],_1e2);}return _1e2;}var _1e3=_1e1.cssRules||[];for(i=0;i<_1e3.length;i++){var rule=_1e3[i];if(rule.href&&rule.styleSheet){_1e0(rule.styleSheet,dic);}else{if(rule.selectorText){var sels=rule.selectorText.split(/,/);for(j=0;j<sels.length;j++){var sel=sels[j];var n=sel.split(/>/).length-1;if(sel.match(/(mblDomButton\w+)/)){var cls=RegExp.$1;if(!dic[cls]||n>dic[cls]){dic[cls]=n;}}}}}}return dic;};this._domButtons=_1e0();}else{this._domButtons={};}}var s=_1dd.className;var node=_1df||_1dd;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _1e4=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(this._domButtons[_1e4]!==undefined){nDiv=this._domButtons[_1e4];}}var _1e5=null;if(has("bb")&&_1d4.mblBBBoxShadowWorkaround!==false){_1e5={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_1d8.create("div",_1e5,p);}if(_1df){setTimeout(function(){_1d7.remove(_1dd,_1e4);},0);_1d7.add(_1df,_1e4);}}else{if(s.indexOf(".")!==-1){_1d8.create("img",{src:s},node);}else{return null;}}_1d7.add(node,"mblDomButton");!!_1de&&_1d9.set(node,_1de);return node;};this.createIcon=function(icon,_1e6,node,_1e7,_1e8,_1e9,pos){_1e7=_1e7||"";if(icon&&icon.indexOf("mblDomButton")===0){if(!node){node=_1d8.create("div",null,_1e9||_1e8,pos);}else{if(node.className.match(/(mblDomButton\w+)/)){_1d7.remove(node,RegExp.$1);}}node.title=_1e7;_1d7.add(node,icon);this.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_1d8.create("img",{alt:_1e7},_1e9||_1e8,pos);}node.src=(icon||"").replace("${theme}",dm.currentTheme);this.setupSpriteIcon(node,_1e6);if(_1e6&&_1e8){var arr=_1e6.split(/[ ,]/);_1d9.set(_1e8,{position:"relative",width:arr[2]+"px",height:arr[3]+"px"});_1d7.add(_1e8,"mblSpriteIconParent");}_1d5.connect(node,"ondragstart",_1d6,"stop");}}return node;};this.iconWrapper=false;this.setIcon=function(icon,_1ea,_1eb,alt,_1ec,_1ed,pos){if(!_1ec||!icon&&!_1eb){return null;}if(icon&&icon!=="none"){if(!this.iconWrapper&&icon.indexOf("mblDomButton")!==0&&!_1ea){if(_1eb&&_1eb.tagName==="DIV"){_1d8.destroy(_1eb);_1eb=null;}_1eb=this.createIcon(icon,null,_1eb,alt,_1ec,_1ed,pos);_1d7.add(_1eb,"mblImageIcon");}else{if(_1eb&&_1eb.tagName==="IMG"){_1d8.destroy(_1eb);_1eb=null;}_1eb&&_1d8.empty(_1eb);if(!_1eb){_1eb=_1d8.create("div",null,_1ed||_1ec,pos);}this.createIcon(icon,_1ea,null,null,_1eb);if(alt){_1eb.title=alt;}}_1d7.remove(_1ec,"mblNoIcon");return _1eb;}else{_1d8.destroy(_1eb);_1d7.add(_1ec,"mblNoIcon");return null;}};};return new _1da();});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/declare","dojo/dom-class","./Container"],function(_1ee,_1ef,_1f0){return _1ee("dojox.mobile.RoundRect",_1f0,{shadow:false,baseClass:"mblRoundRect",buildRendering:function(){this.inherited(arguments);if(this.shadow){_1ef.add(this.domNode,"mblShadow");}}});});},"dojox/mobile/Container":function(){define(["dojo/_base/declare","dijit/_Container","./Pane"],function(_1f1,_1f2,Pane){return _1f1("dojox.mobile.Container",[Pane,_1f2],{baseClass:"mblContainer"});});},"dojox/mobile/Pane":function(){define(["dojo/_base/array","dojo/_base/declare","dijit/_Contained","dijit/_WidgetBase"],function(_1f3,_1f4,_1f5,_1f6){return _1f4("dojox.mobile.Pane",[_1f6,_1f5],{baseClass:"mblPane",buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},resize:function(){_1f3.forEach(this.getChildren(),function(_1f7){if(_1f7.resize){_1f7.resize();}});}});});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dojo/dom-construct","dijit/_Contained","dijit/_WidgetBase","dojo/has","dojo/has!dojo-bidi?dojox/mobile/bidi/RoundRectCategory"],function(_1f8,win,_1f9,_1fa,_1fb,has,_1fc){var _1fd=_1f8(has("dojo-bidi")?"dojox.mobile.NonBidiRoundRectCategory":"dojox.mobile.RoundRectCategory",[_1fb,_1fa],{label:"",tag:"h2",baseClass:"mblRoundRectCategory",buildRendering:function(){var _1fe=this.domNode=this.containerNode=this.srcNodeRef||_1f9.create(this.tag);this.inherited(arguments);if(!this.label&&_1fe.childNodes.length===1&&_1fe.firstChild.nodeType===3){this.label=_1fe.firstChild.nodeValue;}},_setLabelAttr:function(_1ff){this.label=_1ff;this.domNode.innerHTML=this._cv?this._cv(_1ff):_1ff;}});return has("dojo-bidi")?_1f8("dojox.mobile.RoundRectCategory",[_1fd,_1fc]):_1fd;});},"dojox/mobile/EdgeToEdgeCategory":function(){define(["dojo/_base/declare","./RoundRectCategory"],function(_200,_201){return _200("dojox.mobile.EdgeToEdgeCategory",_201,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";if(this.type&&this.type=="long"){this.domNode.className+=" mblEdgeToEdgeCategoryLong";}}});});},"dojox/mobile/RoundRectList":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/event","dojo/_base/lang","dojo/_base/window","dojo/dom-construct","dojo/dom-attr","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_202,_203,_204,lang,win,_205,_206,_207,_208,_209){return _203("dojox.mobile.RoundRectList",[_209,_208,_207],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,syncWithViews:false,editable:false,tag:"ul",editableMixinClass:"dojox/mobile/_EditableListMixin",baseClass:"mblRoundRectList",filterBoxClass:"mblFilteredRoundRectListSearchBox",buildRendering:function(){this.domNode=this.srcNodeRef||_205.create(this.tag);if(this.select){_206.set(this.domNode,"role","listbox");if(this.select==="multiple"){_206.set(this.domNode,"aria-multiselectable","true");}}this.inherited(arguments);},postCreate:function(){if(this.editable){require([this.editableMixinClass],lang.hitch(this,function(_20a){_203.safeMixin(this,new _20a());}));}this.connect(this.domNode,"onselectstart",_204.stop);if(this.syncWithViews){var f=function(view,_20b,dir,_20c,_20d,_20e){var _20f=_202.filter(this.getChildren(),function(w){return w.moveTo==="#"+view.id||w.moveTo===view.id;})[0];if(_20f){_20f.set("selected",true);}};this.subscribe("/dojox/mobile/afterTransitionIn",f);this.subscribe("/dojox/mobile/startView",f);}},resize:function(){_202.forEach(this.getChildren(),function(_210){if(_210.resize){_210.resize();}});},onCheckStateChanged:function(){},_setStatefulAttr:function(_211){this._set("stateful",_211);this.selectOne=_211;_202.forEach(this.getChildren(),function(_212){_212.setArrow&&_212.setArrow();});},deselectItem:function(item){item.set("selected",false);},deselectAll:function(){_202.forEach(this.getChildren(),function(_213){_213.set("selected",false);});},selectItem:function(item){item.set("selected",true);}});});},"dojox/mobile/EdgeToEdgeList":function(){define(["dojo/_base/declare","./RoundRectList"],function(_214,_215){return _214("dojox.mobile.EdgeToEdgeList",_215,{filterBoxClass:"mblFilteredEdgeToEdgeListSearchBox",buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojox/mobile/ListItem":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/dom-attr","dijit/registry","dijit/_WidgetBase","./iconUtils","./_ItemBase","./ProgressIndicator","dojo/has","dojo/has!dojo-bidi?dojox/mobile/bidi/ListItem"],function(_216,_217,lang,_218,_219,_21a,_21b,_21c,_21d,_21e,_21f,_220,has,_221){var _222=_217(has("dojo-bidi")?"dojox.mobile.NonBidiListItem":"dojox.mobile.ListItem",_21f,{rightText:"",rightIcon:"",rightIcon2:"",deleteIcon:"",anchorLabel:false,noArrow:false,checked:false,arrowClass:"",checkClass:"",uncheckClass:"",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",header:false,tag:"li",busy:false,progStyle:"",layoutOnResize:false,paramsToInherit:"variableHeight,transition,deleteIcon,icon,rightIcon,rightIcon2,uncheckIcon,arrowClass,checkClass,uncheckClass,deleteIconTitle,deleteIconRole",baseClass:"mblListItem",_selStartMethod:"touch",_selEndMethod:"timer",_delayedSelection:true,_selClass:"mblListItemSelected",buildRendering:function(){this._templated=!!this.templateString;if(!this._templated){this.domNode=this.containerNode=this.srcNodeRef||_219.create(this.tag);}this.inherited(arguments);if(this.selected){_218.add(this.domNode,this._selClass);}if(this.header){_218.replace(this.domNode,"mblEdgeToEdgeCategory",this.baseClass);}if(!this._templated){this.labelNode=_219.create("div",{className:"mblListItemLabel"});var ref=this.srcNodeRef;if(ref&&ref.childNodes.length===1&&ref.firstChild.nodeType===3){this.labelNode.appendChild(ref.firstChild);}this.domNode.appendChild(this.labelNode);}this._layoutChildren=[];},startup:function(){if(this._started){return;}var _223=this.getParent();var opts=this.getTransOpts();if((!this._templated||this.labelNode)&&this.anchorLabel){this.labelNode.style.display="inline";this.labelNode.style.cursor="pointer";this.connect(this.labelNode,"onclick","_onClick");this.onTouchStart=function(e){return (e.target!==this.labelNode);};}this.inherited(arguments);if(_218.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_218.add(this.domNode,"mblVariableHeight");this.defer("layoutVariableHeight");}if(!this._isOnLine){this._isOnLine=true;this.set({icon:this._pending_icon!==undefined?this._pending_icon:this.icon,deleteIcon:this._pending_deleteIcon!==undefined?this._pending_deleteIcon:this.deleteIcon,rightIcon:this._pending_rightIcon!==undefined?this._pending_rightIcon:this.rightIcon,rightIcon2:this._pending_rightIcon2!==undefined?this._pending_rightIcon2:this.rightIcon2,uncheckIcon:this._pending_uncheckIcon!==undefined?this._pending_uncheckIcon:this.uncheckIcon});delete this._pending_icon;delete this._pending_deleteIcon;delete this._pending_rightIcon;delete this._pending_rightIcon2;delete this._pending_uncheckIcon;}if(_223&&_223.select){this.set("checked",this._pendingChecked!==undefined?this._pendingChecked:this.checked);_21b.set(this.domNode,"role","option");if(this._pendingChecked||this.checked){_21b.set(this.domNode,"aria-selected","true");}delete this._pendingChecked;}this.setArrow();this.layoutChildren();},_updateHandles:function(){var _224=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable||(_224&&_224.select)){if(!this._keydownHandle){this._keydownHandle=this.connect(this.domNode,"onkeydown","_onClick");}this._handleClick=true;}else{if(this._keydownHandle){this.disconnect(this._keydownHandle);this._keydownHandle=null;}this._handleClick=false;}this.inherited(arguments);},layoutChildren:function(){var _225;_216.forEach(this.domNode.childNodes,function(n){if(n.nodeType!==1){return;}var _226=n.getAttribute("layout")||n.getAttribute("data-mobile-layout")||(_21c.byNode(n)||{}).layout;if(_226){_218.add(n,"mblListItemLayout"+_226.charAt(0).toUpperCase()+_226.substring(1));this._layoutChildren.push(n);if(_226==="center"){_225=n;}}},this);if(_225){this.domNode.insertBefore(_225,this.domNode.firstChild);}},resize:function(){if(this.layoutOnResize&&this.variableHeight){this.layoutVariableHeight();}if(!this._templated||this.labelNode){this.labelNode.style.display=this.labelNode.firstChild?"block":"inline";}},_onTouchStart:function(e){if(e.target.getAttribute("preventTouch")||e.target.getAttribute("data-mobile-prevent-touch")||(_21c.getEnclosingWidget(e.target)||{}).preventTouch){return;}this.inherited(arguments);},_onClick:function(e){if(this.getParent().isEditing||e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}var n=this.labelNode;if((this._templated||n)&&this.anchorLabel&&e.currentTarget===n){_218.add(n,"mblListItemLabelSelected");this.defer(function(){_218.remove(n,"mblListItemLabelSelected");},this._duration);this.onAnchorLabelClicked(e);return;}var _227=this.getParent();if(_227.select){if(_227.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_227.select==="multiple"){this.set("checked",!this.checked);}}}this.defaultClickAction(e);},onClick:function(){},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.domNode.offsetHeight;if(h===this.domNodeHeight){return;}this.domNodeHeight=h;_216.forEach(this._layoutChildren.concat([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.uncheckIconNode,this.iconNode,this.deleteIconNode,this.knobIconNode]),function(n){if(n){var _228=this.domNode;var f=function(){var t=Math.round((_228.offsetHeight-n.offsetHeight)/2)-_21a.get(_228,"paddingTop");n.style.marginTop=t+"px";};if(n.offsetHeight===0&&n.tagName==="IMG"){n.onload=f;}else{f();}}},this);},setArrow:function(){if(this.checked){return;}var c="";var _229=this.getParent();var opts=this.getTransOpts();if(opts.moveTo||opts.href||opts.url||this.clickable){if(!this.noArrow&&!(_229&&_229.selectOne)){c=this.arrowClass||"mblDomButtonArrow";_21b.set(this.domNode,"role","button");}}if(c){this._setRightIconAttr(c);}},_findRef:function(type){var i,node,list=["deleteIcon","icon","rightIcon","uncheckIcon","rightIcon2","rightText"];for(i=_216.indexOf(list,type)+1;i<list.length;i++){node=this[list[i]+"Node"];if(node){return node;}}for(i=list.length-1;i>=0;i--){node=this[list[i]+"Node"];if(node){return node.nextSibling;}}return this.domNode.firstChild;},_setIcon:function(icon,type){if(!this._isOnLine){this["_pending_"+type]=icon;return;}this._set(type,icon);this[type+"Node"]=_21e.setIcon(icon,this[type+"Pos"],this[type+"Node"],this[type+"Title"]||this.alt,this.domNode,this._findRef(type),"before");if(this[type+"Node"]){var cap=type.charAt(0).toUpperCase()+type.substring(1);_218.add(this[type+"Node"],"mblListItem"+cap);}var role=this[type+"Role"];if(role){this[type+"Node"].setAttribute("role",role);}},_setDeleteIconAttr:function(icon){this._setIcon(icon,"deleteIcon");},_setIconAttr:function(icon){this._setIcon(icon,"icon");},_setRightTextAttr:function(text){if(!this._templated&&!this.rightTextNode){this.rightTextNode=_219.create("div",{className:"mblListItemRightText"},this.labelNode,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){this._setIcon(icon,"rightIcon");},_setUncheckIconAttr:function(icon){this._setIcon(icon,"uncheckIcon");},_setRightIcon2Attr:function(icon){this._setIcon(icon,"rightIcon2");},_setCheckedAttr:function(_22a){if(!this._isOnLine){this._pendingChecked=_22a;return;}var _22b=this.getParent();if(_22b&&_22b.select==="single"&&_22a){_216.forEach(_22b.getChildren(),function(_22c){_22c!==this&&_22c.checked&&_22c.set("checked",false)&&_21b.set(_22c.domNode,"aria-selected","false");},this);}this._setRightIconAttr(this.checkClass||"mblDomButtonCheck");this._setUncheckIconAttr(this.uncheckClass);_218.toggle(this.domNode,"mblListItemChecked",_22a);_218.toggle(this.domNode,"mblListItemUnchecked",!_22a);_218.toggle(this.domNode,"mblListItemHasUncheck",!!this.uncheckIconNode);this.rightIconNode.style.position=(this.uncheckIconNode&&!_22a)?"absolute":"";if(_22b&&this.checked!==_22a){_22b.onCheckStateChanged(this,_22a);}this._set("checked",_22a);_21b.set(this.domNode,"aria-selected",_22a?"true":"false");},_setBusyAttr:function(busy){var prog=this._prog;if(busy){if(!this._progNode){this._progNode=_219.create("div",{className:"mblListItemIcon"});prog=this._prog=new _220({size:25,center:false,removeOnStop:false});_218.add(prog.domNode,this.progStyle);this._progNode.appendChild(prog.domNode);}if(this.iconNode){this.domNode.replaceChild(this._progNode,this.iconNode);}else{_219.place(this._progNode,this._findRef("icon"),"before");}prog.start();}else{if(this._progNode){if(this.iconNode){this.domNode.replaceChild(this.iconNode,this._progNode);}else{this.domNode.removeChild(this._progNode);}prog.stop();}}this._set("busy",busy);},_setSelectedAttr:function(_22d){this.inherited(arguments);_218.toggle(this.domNode,this._selClass,_22d);},_setClickableAttr:function(_22e){this._set("clickable",_22e);this._updateHandles();},_setMoveToAttr:function(_22f){this._set("moveTo",_22f);this._updateHandles();},_setHrefAttr:function(href){this._set("href",href);this._updateHandles();},_setUrlAttr:function(url){this._set("url",url);this._updateHandles();}});_222.ChildWidgetProperties={layout:"",preventTouch:false};lang.extend(_21d,_222.ChildWidgetProperties);return has("dojo-bidi")?_217("dojox.mobile.ListItem",[_222,_221]):_222;});},"dojox/mobile/Switch":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/dom-attr","dojo/touch","dijit/_Contained","dijit/_WidgetBase","./sniff","./_maskUtils","./common","dojo/has!dojo-bidi?dojox/mobile/bidi/Switch"],function(_230,_231,_232,_233,win,_234,_235,_236,_237,_238,_239,_23a,has,_23b,dm,_23c){var _23d=_232(has("dojo-bidi")?"dojox.mobile.NonBidiSwitch":"dojox.mobile.Switch",[_23a,_239],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",shape:"mblSwDefaultShape",tabIndex:"0",_setTabIndexAttr:"",baseClass:"mblSwitch",role:"",buildRendering:function(){if(!this.templateString){this.domNode=(this.srcNodeRef&&this.srcNodeRef.tagName==="SPAN")?this.srcNodeRef:_235.create("span");}dm._setTouchAction(this.domNode,"none");this.inherited(arguments);if(!this.templateString){var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];if((c=c.match(/mblSw.*Shape\d*/))){this.shape=c;}_234.add(this.domNode,this.shape);var _23e=this.name?" name=\""+this.name+"\"":"";this.domNode.innerHTML="<div class=\"mblSwitchInner\">"+"<div class=\"mblSwitchBg mblSwitchBgLeft\">"+"<div class=\"mblSwitchText mblSwitchTextLeft\"></div>"+"</div>"+"<div class=\"mblSwitchBg mblSwitchBgRight\">"+"<div class=\"mblSwitchText mblSwitchTextRight\"></div>"+"</div>"+"<div class=\"mblSwitchKnob\"></div>"+"<input type=\"hidden\""+_23e+" value=\""+this.value+"\"></div>"+"</div>";var n=this.inner=this.domNode.firstChild;this.left=n.childNodes[0];this.right=n.childNodes[1];this.knob=n.childNodes[2];this.input=n.childNodes[3];}_237.set(this.domNode,"role","checkbox");_237.set(this.domNode,"aria-checked",(this.value==="on")?"true":"false");this.switchNode=this.domNode;if(has("windows-theme")){var _23f=_235.create("div",{className:"mblSwitchContainer"});this.labelNode=_235.create("label",{"class":"mblSwitchLabel","for":this.id},_23f);_23f.appendChild(this.domNode.cloneNode(true));this.domNode=_23f;this.focusNode=_23f.childNodes[1];this.labelNode.innerHTML=(this.value=="off")?this.rightLabel:this.leftLabel;this.switchNode=this.domNode.childNodes[1];var _240=this.inner=this.domNode.childNodes[1].firstChild;this.left=_240.childNodes[0];this.right=_240.childNodes[1];this.knob=_240.childNodes[2];this.input=_240.childNodes[3];}},postCreate:function(){this.connect(this.switchNode,"onclick","_onClick");this.connect(this.switchNode,"onkeydown","_onClick");this._startHandle=this.connect(this.switchNode,_238.press,"onTouchStart");this._initialValue=this.value;},startup:function(){this.inherited(arguments);if(!this._started){this.resize();}},resize:function(){if(has("windows-theme")){_236.set(this.domNode,"width","100%");}else{var _241=_236.get(this.domNode,"width");var _242=_241+"px";var _243=(_241-_236.get(this.knob,"width"))+"px";_236.set(this.left,"width",_242);_236.set(this.right,this.isLeftToRight()?{width:_242,left:_243}:{width:_242});_236.set(this.left.firstChild,"width",_243);_236.set(this.right.firstChild,"width",_243);_236.set(this.knob,"left",_243);if(this.value=="off"){_236.set(this.inner,"left",this.isLeftToRight()?("-"+_243):0);}this._hasMaskImage=false;this._createMaskImage();}},_changeState:function(_244,anim){var on=(_244==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_234.add(this.switchNode,"mblSwitchAnimation");}_234.remove(this.switchNode,on?"mblSwitchOff":"mblSwitchOn");_234.add(this.switchNode,on?"mblSwitchOn":"mblSwitchOff");_237.set(this.switchNode,"aria-checked",on?"true":"false");if(!on&&!has("windows-theme")){this.inner.style.left=(this.isLeftToRight()?(-(_236.get(this.domNode,"width")-_236.get(this.knob,"width"))):0)+"px";}var _245=this;_245.defer(function(){_245.left.style.display=on?"":"none";_245.right.style.display=!on?"":"none";_234.remove(_245.switchNode,"mblSwitchAnimation");},anim?300:0);},_createMaskImage:function(){if(this._timer){this._timer.remove();delete this._timer;}if(this._hasMaskImage){return;}var w=_236.get(this.domNode,"width"),h=_236.get(this.domNode,"height");this._width=(w-_236.get(this.knob,"width"));this._hasMaskImage=true;if(!(has("mask-image"))){return;}var rDef=_236.get(this.left,"borderTopLeftRadius");if(rDef=="0px"){return;}var _246=rDef.split(" ");var rx=parseFloat(_246[0]),ry=(_246.length==1)?rx:parseFloat(_246[1]);var id=(this.shape+"Mask"+w+h+rx+ry).replace(/\./,"_");_23b.createRoundMask(this.switchNode,0,0,0,0,w,h,rx,ry,1);},_onClick:function(e){if(e&&e.type==="keydown"&&e.keyCode!==13){return;}if(this.onClick(e)===false){return;}if(this._moved){return;}this._set("value",this.input.value=(this.value=="on")?"off":"on");this._changeState(this.value,true);this.onStateChanged(this.value);},onClick:function(){},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[this.connect(this.inner,_238.move,"onTouchMove"),this.connect(win.doc,_238.release,"onTouchEnd")];if(has("windows-theme")){this._conn.push(this.connect(win.doc,"MSPointerCancel","onTouchEnd"));}}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_233.stop(e);this._createMaskImage();},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return;}dx=e.targetTouches[0].clientX-this.touchStartX;}else{dx=e.clientX-this.touchStartX;}var pos=this.innerStartX+dx;var d=10;if(pos<=-(this._width-d)){pos=-this._width;}if(pos>=-d){pos=0;}this.inner.style.left=pos+"px";if(Math.abs(dx)>d){this._moved=true;}},onTouchEnd:function(e){_230.forEach(this._conn,_231.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")&&has("clicks-prevented")){dm._sendClick(this.inner,e);}return;}var _247=(this.inner.offsetLeft<-(this._width/2))?"off":"on";_247=this._newState(_247);this._changeState(_247,true);if(_247!=this.value){this._set("value",this.input.value=_247);this.onStateChanged(_247);}},_newState:function(_248){return _248;},onStateChanged:function(_249){if(this.labelNode){this.labelNode.innerHTML=_249=="off"?this.rightLabel:this.leftLabel;}},_setValueAttr:function(_24a){this._changeState(_24a,false);if(this.value!=_24a){this._set("value",this.input.value=_24a);this.onStateChanged(_24a);}},_setLeftLabelAttr:function(_24b){this.leftLabel=_24b;this.left.firstChild.innerHTML=this._cv?this._cv(_24b):_24b;},_setRightLabelAttr:function(_24c){this.rightLabel=_24c;this.right.firstChild.innerHTML=this._cv?this._cv(_24c):_24c;},reset:function(){this.set("value",this._initialValue);}});return has("dojo-bidi")?_232("dojox.mobile.Switch",[_23d,_23c]):_23d;});},"dojox/mobile/_maskUtils":function(){define(["dojo/_base/window","dojo/dom-style","./sniff"],function(win,_24d,has){has.add("mask-image-css",function(_24e,doc,elt){return typeof doc.getCSSCanvasContext==="function"&&typeof elt.style.webkitMaskImage!=="undefined";});has.add("mask-image",function(){return has("mask-image-css")||has("svg");});var _24f={};return {createRoundMask:function(node,x,y,r,b,w,h,rx,ry,e){var tw=x+w+r;var th=y+h+b;if(has("mask-image-css")){var id=("DojoMobileMask"+x+y+w+h+rx+ry).replace(/\./g,"_");if(!_24f[id]){_24f[id]=1;var ctx=win.doc.getCSSCanvasContext("2d",id,tw,th);ctx.beginPath();if(rx==ry){if(rx==2&&w==5){ctx.fillStyle="rgba(0,0,0,0.5)";ctx.fillRect(1,0,3,2);ctx.fillRect(0,1,5,1);ctx.fillRect(0,h-2,5,1);ctx.fillRect(1,h-1,3,2);ctx.fillStyle="rgb(0,0,0)";ctx.fillRect(0,2,5,h-4);}else{if(rx==2&&h==5){ctx.fillStyle="rgba(0,0,0,0.5)";ctx.fillRect(0,1,2,3);ctx.fillRect(1,0,1,5);ctx.fillRect(w-2,0,1,5);ctx.fillRect(w-1,1,2,3);ctx.fillStyle="rgb(0,0,0)";ctx.fillRect(2,0,w-4,5);}else{ctx.fillStyle="#000000";ctx.moveTo(x+rx,y);ctx.arcTo(x,y,x,y+rx,rx);ctx.lineTo(x,y+h-rx);ctx.arcTo(x,y+h,x+rx,y+h,rx);ctx.lineTo(x+w-rx,y+h);ctx.arcTo(x+w,y+h,x+w,y+rx,rx);ctx.lineTo(x+w,y+rx);ctx.arcTo(x+w,y,x+w-rx,y,rx);}}}else{var pi=Math.PI;ctx.scale(1,ry/rx);ctx.moveTo(x+rx,y);ctx.arc(x+rx,y+rx,rx,1.5*pi,0.5*pi,true);ctx.lineTo(x+w-rx,y+2*rx);ctx.arc(x+w-rx,y+rx,rx,0.5*pi,1.5*pi,true);}ctx.closePath();ctx.fill();}node.style.webkitMaskImage="-webkit-canvas("+id+")";}else{if(has("svg")){if(node._svgMask){node.removeChild(node._svgMask);}var bg=null;for(var p=node.parentNode;p;p=p.parentNode){bg=_24d.getComputedStyle(p).backgroundColor;if(bg&&bg!="transparent"&&!bg.match(/rgba\(.*,\s*0\s*\)/)){break;}}var _250="http://www.w3.org/2000/svg";var svg=win.doc.createElementNS(_250,"svg");svg.setAttribute("width",tw);svg.setAttribute("height",th);svg.style.position="absolute";svg.style.pointerEvents="none";svg.style.opacity="1";svg.style.zIndex="2147483647";var path=win.doc.createElementNS(_250,"path");e=e||0;rx+=e;ry+=e;var d=" M"+(x+rx-e)+","+(y-e)+" a"+rx+","+ry+" 0 0,0 "+(-rx)+","+ry+" v"+(-ry)+" h"+rx+" Z"+" M"+(x-e)+","+(y+h-ry+e)+" a"+rx+","+ry+" 0 0,0 "+rx+","+ry+" h"+(-rx)+" v"+(-ry)+" z"+" M"+(x+w-rx+e)+","+(y+h+e)+" a"+rx+","+ry+" 0 0,0 "+rx+","+(-ry)+" v"+ry+" h"+(-rx)+" z"+" M"+(x+w+e)+","+(y+ry-e)+" a"+rx+","+ry+" 0 0,0 "+(-rx)+","+(-ry)+" h"+rx+" v"+ry+" z";if(y>0){d+=" M0,0 h"+tw+" v"+y+" h"+(-tw)+" z";}if(b>0){d+=" M0,"+(y+h)+" h"+tw+" v"+b+" h"+(-tw)+" z";}path.setAttribute("d",d);path.setAttribute("fill",bg);path.setAttribute("stroke",bg);path.style.opacity="1";svg.appendChild(path);node._svgMask=svg;node.appendChild(svg);}}}};});}}});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_251,lang,base){lang.getObject("mobile",true,_251);return _251.mobile;});
|