/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

//>>built
require({cache:{"dojox/mobile/app/_base":function(){define(["dojo","dijit","dojox","dojo/require!dijit/_base,dijit/_WidgetBase,dojox/mobile,dojox/mobile/parser,dojox/mobile/Button,dojox/mobile/app/_event,dojox/mobile/app/_Widget,dojox/mobile/app/StageController,dojox/mobile/app/SceneController,dojox/mobile/app/SceneAssistant,dojox/mobile/app/AlertDialog,dojox/mobile/app/List,dojox/mobile/app/ListSelector,dojox/mobile/app/TextBox,dojox/mobile/app/ImageView,dojox/mobile/app/ImageThumbView"],function(_1,_2,_3){_1.provide("dojox.mobile.app._base");_1.experimental("dojox.mobile.app._base");_1.require("dijit._base");_1.require("dijit._WidgetBase");_1.require("dojox.mobile");_1.require("dojox.mobile.parser");_1.require("dojox.mobile.Button");_1.require("dojox.mobile.app._event");_1.require("dojox.mobile.app._Widget");_1.require("dojox.mobile.app.StageController");_1.require("dojox.mobile.app.SceneController");_1.require("dojox.mobile.app.SceneAssistant");_1.require("dojox.mobile.app.AlertDialog");_1.require("dojox.mobile.app.List");_1.require("dojox.mobile.app.ListSelector");_1.require("dojox.mobile.app.TextBox");_1.require("dojox.mobile.app.ImageView");_1.require("dojox.mobile.app.ImageThumbView");(function(){var _4;var _5;var _6=["dojox.mobile","dojox.mobile.parser"];var _7={};var _8;var _9;var _a=[];function _b(_c,_d){var _e;var _f;do{_e=_c.pop();if(_e.source){_f=_e.source;}else{if(_e.module){_f=_1.moduleUrl(_e.module)+".js";}else{return;}}}while(_c.length>0&&_7[_f]);if(_c.length<1&&_7[_f]){_d();return;}_1.xhrGet({url:_f,sync:false}).addCallbacks(function(_10){_1["eval"](_10);_7[_f]=true;if(_c.length>0){_b(_c,_d);}else{_d();}},function(){});};var _11=function(){_4=new _3.mobile.app.StageController(_9);var _12={id:"com.test.app",version:"1.0.0",initialScene:"main"};if(_1.global["appInfo"]){_1.mixin(_12,_1.global["appInfo"]);}_5=_3.mobile.app.info=_12;if(_5.title){var _13=_1.query("head title")[0]||_1.create("title",{},_1.query("head")[0]);document.title=_5.title;}_4.pushScene(_5.initialScene);};var _14=function(){var _15=false;if(_1.global.BackButton){BackButton.override();_1.connect(document,"backKeyDown",function(e){_1.publish("/dojox/mobile/app/goback");});_15=true;}else{if(_1.global.Mojo){}}if(_15){_1.addClass(_1.body(),"mblNativeBack");}};_1.mixin(_3.mobile.app,{init:function(_16){_9=_16||_1.body();_3.mobile.app.STAGE_CONTROLLER_ACTIVE=true;_1.subscribe("/dojox/mobile/app/goback",function(){_4.popScene();});_1.subscribe("/dojox/mobile/app/alert",function(_17){_3.mobile.app.getActiveSceneController().showAlertDialog(_17);});_1.subscribe("/dojox/mobile/app/pushScene",function(_18,_19){_4.pushScene(_18,_19||{});});_1.xhrGet({url:"view-resources.json",load:function(_1a){var _1b=[];if(_1a){_a=_1a=_1.fromJson(_1a);for(var i=0;i<_1a.length;i++){if(!_1a[i].scene){_1b.push(_1a[i]);}}}if(_1b.length>0){_b(_1b,_11);}else{_11();}},error:_11});_14();},getActiveSceneController:function(){return _4.getActiveSceneController();},getStageController:function(){return _4;},loadResources:function(_1c,_1d){_b(_1c,_1d);},loadResourcesForScene:function(_1e,_1f){var _20=[];for(var i=0;i<_a.length;i++){if(_a[i].scene==_1e){_20.push(_a[i]);}}if(_20.length>0){_b(_20,_1f);}else{_1f();}},resolveTemplate:function(_21){return "app/views/"+_21+"/"+_21+"-scene.html";},resolveAssistant:function(_22){return "app/assistants/"+_22+"-assistant.js";}});})();});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(_23){return _23.dijit;});},"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(_24){return _24.dojox;});},"dijit/_base":function(){define("dijit/_base",[".","./a11y","./WidgetSet","./_base/focus","./_base/manager","./_base/place","./_base/popup","./_base/scroll","./_base/sniff","./_base/typematic","./_base/wai","./_base/window"],function(_25){return _25._base;});},"dijit/a11y":function(){define("dijit/a11y",["dojo/_base/array","dojo/dom","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/_base/sniff","./main"],function(_26,dom,_27,_28,_29,has,_2a){var _2b;var _2c={_isElementShown:function(_2d){var s=_28.get(_2d);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_27.get(_2d,"type")!="hidden");},hasDefaultTabStop:function(_2e){switch(_2e.nodeName.toLowerCase()){case "a":return _27.has(_2e,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _2f;try{var _30=_2e.contentDocument;if("designMode" in _30&&_30.designMode=="on"){return true;}_2f=_30.body;}catch(e1){try{_2f=_2e.contentWindow.document.body;}catch(e2){return false;}}return _2f&&(_2f.contentEditable=="true"||(_2f.firstChild&&_2f.firstChild.contentEditable=="true"));default:return _2e.contentEditable=="true";}},effectiveTabIndex:function(_31){if(_27.get(_31,"disabled")){return _2b;}else{if(_27.has(_31,"tabIndex")){return +_27.get(_31,"tabIndex");}else{return _2c.hasDefaultTabStop(_31)?0:_2b;}}},isTabNavigable:function(_32){return _2c.effectiveTabIndex(_32)>=0;},isFocusable:function(_33){return _2c.effectiveTabIndex(_33)>=-1;},_getTabNavigable:function(_34){var _35,_36,_37,_38,_39,_3a,_3b={};function _3c(_3d){return _3d&&_3d.tagName.toLowerCase()=="input"&&_3d.type&&_3d.type.toLowerCase()=="radio"&&_3d.name&&_3d.name.toLowerCase();};var _3e=_2c._isElementShown,_3f=_2c.effectiveTabIndex;var _40=function(_41){for(var _42=_41.firstChild;_42;_42=_42.nextSibling){if(_42.nodeType!=1||(has("ie")<=9&&_42.scopeName!=="HTML")||!_3e(_42)){continue;}var _43=_3f(_42);if(_43>=0){if(_43==0){if(!_35){_35=_42;}_36=_42;}else{if(_43>0){if(!_37||_43<_38){_38=_43;_37=_42;}if(!_39||_43>=_3a){_3a=_43;_39=_42;}}}var rn=_3c(_42);if(_27.get(_42,"checked")&&rn){_3b[rn]=_42;}}if(_42.nodeName.toUpperCase()!="SELECT"){_40(_42);}}};if(_3e(_34)){_40(_34);}function rs(_44){return _3b[_3c(_44)]||_44;};return {first:rs(_35),last:rs(_36),lowest:rs(_37),highest:rs(_39)};},getFirstInTabbingOrder:function(_45,doc){var _46=_2c._getTabNavigable(dom.byId(_45,doc));return _46.lowest?_46.lowest:_46.first;},getLastInTabbingOrder:function(_47,doc){var _48=_2c._getTabNavigable(dom.byId(_47,doc));return _48.last?_48.last:_48.highest;}};1&&_29.mixin(_2a,_2c);return _2c;});},"dijit/WidgetSet":function(){define("dijit/WidgetSet",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","./registry"],function(_49,_4a,win,_4b){var _4c=_4a("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_4d){if(this._hash[_4d.id]){throw new Error("Tried to register widget with id=="+_4d.id+" but that id is already registered");}this._hash[_4d.id]=_4d;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_4e,_4f){_4f=_4f||win.global;var i=0,id;for(id in this._hash){_4e.call(_4f,this._hash[id],i++,this._hash);}return this;},filter:function(_50,_51){_51=_51||win.global;var res=new _4c(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_50.call(_51,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new _4c(),id,_52;for(id in this._hash){_52=this._hash[id];if(_52.declaredClass==cls){res.add(_52);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_53,_54){return _49.map(this.toArray(),_53,_54);},every:function(_55,_56){_56=_56||win.global;var x=0,i;for(i in this._hash){if(!_55.call(_56,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_57,_58){_58=_58||win.global;var x=0,i;for(i in this._hash){if(_57.call(_58,this._hash[i],x++,this._hash)){return true;}}return false;}});_49.forEach(["forEach","filter","byClass","map","every","some"],function(_59){_4b[_59]=_4c.prototype[_59];});return _4c;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_5a,has,_5b,win,_5c){var _5d={},_5e={};var _5f={length:0,add:function(_60){if(_5e[_60.id]){throw new Error("Tried to register widget with id=="+_60.id+" but that id is already registered");}_5e[_60.id]=_60;this.length++;},remove:function(id){if(_5e[id]){delete _5e[id];this.length--;}},byId:function(id){return typeof id=="string"?_5e[id]:id;},byNode:function(_61){return _5e[_61.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in _5e){ar.push(_5e[id]);}return ar;},getUniqueId:function(_62){var id;do{id=_62+"_"+(_62 in _5d?++_5d[_62]:_5d[_62]=0);}while(_5e[id]);return _5c._scopeName=="dijit"?id:_5c._scopeName+"_"+id;},findWidgets:function(_63){var _64=[];function _65(_66){for(var _67=_66.firstChild;_67;_67=_67.nextSibling){if(_67.nodeType==1){var _68=_67.getAttribute("widgetId");if(_68){var _69=_5e[_68];if(_69){_64.push(_69);}}else{_65(_67);}}}};_65(_63);return _64;},_destroyAll:function(){_5c._curFocus=null;_5c._prevFocus=null;_5c._activeStack=[];_5a.forEach(_5f.findWidgets(win.body()),function(_6a){if(!_6a._destroyed){if(_6a.destroyRecursive){_6a.destroyRecursive();}else{if(_6a.destroy){_6a.destroy();}}}});},getEnclosingWidget:function(_6b){while(_6b){var id=_6b.getAttribute&&_6b.getAttribute("widgetId");if(id){return _5e[id];}_6b=_6b.parentNode;}return null;},_hash:_5e};_5c.registry=_5f;return _5f;});},"dijit/_base/focus":function(){define("dijit/_base/focus",["dojo/_base/array","dojo/dom","dojo/_base/lang","dojo/topic","dojo/_base/window","../focus",".."],function(_6c,dom,_6d,_6e,win,_6f,_70){_6d.mixin(_70,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return _70.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=win.doc.selection,cf=_6f.curNode;if(win.global.getSelection){sel=win.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_71){var _72=win.doc,_73=_71.mark;if(_73){if(win.global.getSelection){var sel=win.global.getSelection();if(sel&&sel.removeAllRanges){if(_73.pRange){var n=_73.node;n.selectionStart=_73.start;n.selectionEnd=_73.end;}else{sel.removeAllRanges();sel.addRange(_73);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_72.selection&&_73){var rg;if(_73.pRange){rg=_73.range;}else{if(_6d.isArray(_73)){rg=_72.body.createControlRange();_6c.forEach(_73,function(n){rg.addElement(n);});}else{rg=_72.body.createTextRange();rg.moveToBookmark(_73);}}rg.select();}}}},getFocus:function(_74,_75){var _76=!_6f.curNode||(_74&&dom.isDescendant(_6f.curNode,_74.domNode))?_70._prevFocus:_6f.curNode;return {node:_76,bookmark:_76&&(_76==_6f.curNode)&&win.withGlobal(_75||win.global,_70.getBookmark),openedForWindow:_75};},_activeStack:[],registerIframe:function(_77){return _6f.registerIframe(_77);},unregisterIframe:function(_78){_78&&_78.remove();},registerWin:function(_79,_7a){return _6f.registerWin(_79,_7a);},unregisterWin:function(_7b){_7b&&_7b.remove();}});_6f.focus=function(_7c){if(!_7c){return;}var _7d="node" in _7c?_7c.node:_7c,_7e=_7c.bookmark,_7f=_7c.openedForWindow,_80=_7e?_7e.isCollapsed:false;if(_7d){var _81=(_7d.tagName.toLowerCase()=="iframe")?_7d.contentWindow:_7d;if(_81&&_81.focus){try{_81.focus();}catch(e){}}_6f._onFocusNode(_7d);}if(_7e&&win.withGlobal(_7f||win.global,_70.isCollapsed)&&!_80){if(_7f){_7f.focus();}try{win.withGlobal(_7f||win.global,_70.moveToBookmark,null,[_7e]);}catch(e2){}}};_6f.watch("curNode",function(_82,_83,_84){_70._curFocus=_84;_70._prevFocus=_83;if(_84){_6e.publish("focusNode",_84);}});_6f.watch("activeStack",function(_85,_86,_87){_70._activeStack=_87;});_6f.on("widget-blur",function(_88,by){_6e.publish("widgetBlur",_88,by);});_6f.on("widget-focus",function(_89,by){_6e.publish("widgetFocus",_89,by);});return _70;});},"dijit/focus":function(){define("dijit/focus",["dojo/aspect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/Evented","dojo/_base/lang","dojo/on","dojo/domReady","dojo/_base/sniff","dojo/Stateful","dojo/_base/window","dojo/window","./a11y","./registry","./main"],function(_8a,_8b,dom,_8c,_8d,_8e,_8f,on,_90,has,_91,win,_92,_93,_94,_95){var _96=_8b([_91,_8e],{curNode:null,activeStack:[],constructor:function(){var _97=_8f.hitch(this,function(_98){if(dom.isDescendant(this.curNode,_98)){this.set("curNode",null);}if(dom.isDescendant(this.prevNode,_98)){this.set("prevNode",null);}});_8a.before(_8d,"empty",_97);_8a.before(_8d,"destroy",_97);},registerIframe:function(_99){return this.registerWin(_99.contentWindow,_99);},registerWin:function(_9a,_9b){var _9c=this,_9d=_9a.document&&_9a.document.body;if(_9d){var mdh=on(_9d,"mousedown",function(evt){_9c._justMouseDowned=true;setTimeout(function(){_9c._justMouseDowned=false;},13);if(evt&&evt.target&&evt.target.parentNode==null){return;}_9c._onTouchNode(_9b||evt.target,"mouse");});var fih=on(_9d,"focusin",function(evt){if(!evt.target.tagName){return;}var tag=evt.target.tagName.toLowerCase();if(tag=="#document"||tag=="body"){return;}if(_93.isTabNavigable(evt.target)){_9c._onFocusNode(_9b||evt.target);}else{_9c._onTouchNode(_9b||evt.target);}});var foh=on(_9d,"focusout",function(evt){_9c._onBlurNode(_9b||evt.target);});return {remove:function(){mdh.remove();fih.remove();foh.remove();mdh=fih=foh=null;_9d=null;}};}},_onBlurNode:function(_9e){if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);}this._clearFocusTimer=setTimeout(_8f.hitch(this,function(){this.set("prevNode",this.curNode);this.set("curNode",null);}),0);if(this._justMouseDowned){return;}if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);}this._clearActiveWidgetsTimer=setTimeout(_8f.hitch(this,function(){delete this._clearActiveWidgetsTimer;this._setStack([]);}),100);},_onTouchNode:function(_9f,by){if(this._clearActiveWidgetsTimer){clearTimeout(this._clearActiveWidgetsTimer);delete this._clearActiveWidgetsTimer;}var _a0=[];try{while(_9f){var _a1=_8c.get(_9f,"dijitPopupParent");if(_a1){_9f=_94.byId(_a1).domNode;}else{if(_9f.tagName&&_9f.tagName.toLowerCase()=="body"){if(_9f===win.body()){break;}_9f=_92.get(_9f.ownerDocument).frameElement;}else{var id=_9f.getAttribute&&_9f.getAttribute("widgetId"),_a2=id&&_94.byId(id);if(_a2&&!(by=="mouse"&&_a2.get("disabled"))){_a0.unshift(id);}_9f=_9f.parentNode;}}}}catch(e){}this._setStack(_a0,by);},_onFocusNode:function(_a3){if(!_a3){return;}if(_a3.nodeType==9){return;}if(this._clearFocusTimer){clearTimeout(this._clearFocusTimer);delete this._clearFocusTimer;}this._onTouchNode(_a3);if(_a3==this.curNode){return;}this.set("prevNode",this.curNode);this.set("curNode",_a3);},_setStack:function(_a4,by){var _a5=this.activeStack,_a6=_a5.length-1,_a7=_a4.length-1;if(_a4[_a7]==_a5[_a6]){return;}this.set("activeStack",_a4);var _a8,i;for(i=_a6;i>=0&&_a5[i]!=_a4[i];i--){_a8=_94.byId(_a5[i]);if(_a8){_a8._hasBeenBlurred=true;_a8.set("focused",false);if(_a8._focusManager==this){_a8._onBlur(by);}this.emit("widget-blur",_a8,by);}}for(i++;i<=_a7;i++){_a8=_94.byId(_a4[i]);if(_a8){_a8.set("focused",true);if(_a8._focusManager==this){_a8._onFocus(by);}this.emit("widget-focus",_a8,by);}}},focus:function(_a9){if(_a9){try{_a9.focus();}catch(e){}}}});var _aa=new _96();_90(function(){var _ab=_aa.registerWin(_92.get(document));if(has("ie")){on(window,"unload",function(){if(_ab){_ab.remove();_ab=null;}});}});_95.focus=function(_ac){_aa.focus(_ac);};for(var _ad in _aa){if(!/^_/.test(_ad)){_95.focus[_ad]=typeof _aa[_ad]=="function"?_8f.hitch(_aa,_ad):_aa[_ad];}}_aa.watch(function(_ae,_af,_b0){_95.focus[_ae]=_b0;});return _aa;});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(_b1,_b2,_b3,_b4){return _b1.declare("dojo.Stateful",null,{postscript:function(_b5){if(_b5){_b3.mixin(this,_b5);}},get:function(_b6){return this[_b6];},set:function(_b7,_b8){if(typeof _b7==="object"){for(var x in _b7){this.set(x,_b7[x]);}return this;}var _b9=this[_b7];this[_b7]=_b8;if(this._watchCallbacks){this._watchCallbacks(_b7,_b9,_b8);}return this;},watch:function(_ba,_bb){var _bc=this._watchCallbacks;if(!_bc){var _bd=this;_bc=this._watchCallbacks=function(_be,_bf,_c0,_c1){var _c2=function(_c3){if(_c3){_c3=_c3.slice();for(var i=0,l=_c3.length;i<l;i++){try{_c3[i].call(_bd,_be,_bf,_c0);}catch(e){console.error(e);}}}};_c2(_bc["_"+_be]);if(!_c1){_c2(_bc["*"]);}};}if(!_bb&&typeof _ba==="function"){_bb=_ba;_ba="*";}else{_ba="_"+_ba;}var _c4=_bc[_ba];if(typeof _c4!=="object"){_c4=_bc[_ba]=[];}_c4.push(_bb);return {unwatch:function(){_c4.splice(_b4.indexOf(_c4,_bb),1);}};}});});},"dojo/window":function(){define(["./_base/lang","./_base/sniff","./_base/window","./dom","./dom-geometry","./dom-style","./dom-construct"],function(_c5,has,_c6,dom,_c7,_c8,_c9){has.add("rtl-adjust-position-for-verticalScrollBar",function(win,doc){var _ca=_c6.body(doc),_cb=_c9.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_ca,"last"),div=_c9.create("div",{style:{overflow:"hidden",direction:"ltr"}},_cb,"last"),ret=_c7.position(div).x!=0;_cb.removeChild(div);_ca.removeChild(_cb);return ret;});has.add("position-fixed-support",function(win,doc){var _cc=_c6.body(doc),_cd=_c9.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_cc,"last"),_ce=_c9.create("span",{style:{position:"fixed",left:"0",top:"0"}},_cd,"last"),ret=_c7.position(_ce).x!=_c7.position(_cd).x;_cd.removeChild(_ce);_cc.removeChild(_cd);return ret;});var _cf=_c5.getObject("dojo.window",true);_cf.getBox=function(){var _d0=(_c6.doc.compatMode=="BackCompat")?_c6.body():_c6.doc.documentElement,_d1=_c7.docScroll(),w,h;if(has("touch")){var _d2=_c6.doc.parentWindow||_c6.doc.defaultView;w=_d2.innerWidth||_d0.clientWidth;h=_d2.innerHeight||_d0.clientHeight;}else{w=_d0.clientWidth;h=_d0.clientHeight;}return {l:_d1.x,t:_d1.y,w:w,h:h};};_cf.get=function(doc){if(has("ie")<9&&_cf!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};_cf.scrollIntoView=function(_d3,pos){try{_d3=dom.byId(_d3);var doc=_d3.ownerDocument||_c6.doc,_d4=_c6.body(doc),_d5=doc.documentElement||_d4.parentNode,_d6=has("ie"),_d7=has("webkit");if(_d3==_d4||_d3==_d5){return;}if(!(has("mozilla")||_d6||_d7||has("opera")||has("trident"))&&("scrollIntoView" in _d3)){_d3.scrollIntoView(false);return;}var _d8=doc.compatMode=="BackCompat",_d9=Math.min(_d4.clientWidth||_d5.clientWidth,_d5.clientWidth||_d4.clientWidth),_da=Math.min(_d4.clientHeight||_d5.clientHeight,_d5.clientHeight||_d4.clientHeight),_db=(_d7||_d8)?_d4:_d5,_dc=pos||_c7.position(_d3),el=_d3.parentNode,_dd=function(el){return (_d6<=6||(_d6==7&&_d8))?false:(has("position-fixed-support")&&(_c8.get(el,"position").toLowerCase()=="fixed"));},_de=this,_df=function(el,x,y){if(el.tagName=="BODY"||el.tagName=="HTML"){_de.get(el.ownerDocument).scrollBy(x,y);}else{x&&(el.scrollLeft+=x);y&&(el.scrollTop+=y);}};if(_dd(_d3)){return;}while(el){if(el==_d4){el=_db;}var _e0=_c7.position(el),_e1=_dd(el),rtl=_c8.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_db){_e0.w=_d9;_e0.h=_da;if(_db==_d5&&(_d6||has("trident"))&&rtl){_e0.x+=_db.offsetWidth-_e0.w;}_e0.x=0;_e0.y=0;}else{var pb=_c7.getPadBorderExtents(el);_e0.w-=pb.w;_e0.h-=pb.h;_e0.x+=pb.l;_e0.y+=pb.t;var _e2=el.clientWidth,_e3=_e0.w-_e2;if(_e2>0&&_e3>0){if(rtl&&has("rtl-adjust-position-for-verticalScrollBar")){_e0.x+=_e3;}_e0.w=_e2;}_e2=el.clientHeight;_e3=_e0.h-_e2;if(_e2>0&&_e3>0){_e0.h=_e2;}}if(_e1){if(_e0.y<0){_e0.h+=_e0.y;_e0.y=0;}if(_e0.x<0){_e0.w+=_e0.x;_e0.x=0;}if(_e0.y+_e0.h>_da){_e0.h=_da-_e0.y;}if(_e0.x+_e0.w>_d9){_e0.w=_d9-_e0.x;}}var l=_dc.x-_e0.x,t=_dc.y-_e0.y,r=l+_dc.w-_e0.w,bot=t+_dc.h-_e0.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_db||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_d6==8&&!_d8)||has("trident")>=5||has("edge"))){s=-s;}old=el.scrollLeft;_df(el,s,0);s=el.scrollLeft-old;_dc.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_db||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;_df(el,0,s);s=el.scrollTop-old;_dc.y-=s;}el=(el!=_db)&&!_e1&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_d3.scrollIntoView(false);}};return _cf;});},"dijit/_base/manager":function(){define("dijit/_base/manager",["dojo/_base/array","dojo/_base/config","../registry",".."],function(_e4,_e5,_e6,_e7){_e4.forEach(["byId","getUniqueId","findWidgets","_destroyAll","byNode","getEnclosingWidget"],function(_e8){_e7[_e8]=_e6[_e8];});_e7.defaultDuration=_e5["defaultDuration"]||200;return _e7;});},"dijit/_base/place":function(){define("dijit/_base/place",["dojo/_base/array","dojo/_base/lang","dojo/window","../place",".."],function(_e9,_ea,_eb,_ec,_ed){_ed.getViewport=function(){return _eb.getBox();};_ed.placeOnScreen=_ec.at;_ed.placeOnScreenAroundElement=function(_ee,_ef,_f0,_f1){var _f2;if(_ea.isArray(_f0)){_f2=_f0;}else{_f2=[];for(var key in _f0){_f2.push({aroundCorner:key,corner:_f0[key]});}}return _ec.around(_ee,_ef,_f2,true,_f1);};_ed.placeOnScreenAroundNode=_ed.placeOnScreenAroundElement;_ed.placeOnScreenAroundRectangle=_ed.placeOnScreenAroundElement;_ed.getPopupAroundAlignment=function(_f3,_f4){var _f5={};_e9.forEach(_f3,function(pos){var ltr=_f4;switch(pos){case "after":_f5[_f4?"BR":"BL"]=_f4?"BL":"BR";break;case "before":_f5[_f4?"BL":"BR"]=_f4?"BR":"BL";break;case "below-alt":ltr=!ltr;case "below":_f5[ltr?"BL":"BR"]=ltr?"TL":"TR";_f5[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above-alt":ltr=!ltr;case "above":default:_f5[ltr?"TL":"TR"]=ltr?"BL":"BR";_f5[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});return _f5;};return _ed;});},"dijit/place":function(){define("dijit/place",["dojo/_base/array","dojo/dom-geometry","dojo/dom-style","dojo/_base/kernel","dojo/_base/window","./Viewport","."],function(_f6,_f7,_f8,_f9,win,_fa,_fb){function _fc(_fd,_fe,_ff,_100){var view=_fa.getEffectiveBox(_fd.ownerDocument);if(!_fd.parentNode||String(_fd.parentNode.tagName).toLowerCase()!="body"){win.body().appendChild(_fd);}var best=null;_f6.some(_fe,function(_101){var _102=_101.corner;var pos=_101.pos;var _103=0;var _104={w:{"L":view.l+view.w-pos.x,"R":pos.x-view.l,"M":view.w}[_102.charAt(1)],h:{"T":view.t+view.h-pos.y,"B":pos.y-view.t,"M":view.h}[_102.charAt(0)]};var s=_fd.style;s.left=s.right="auto";if(_ff){var res=_ff(_fd,_101.aroundCorner,_102,_104,_100);_103=typeof res=="undefined"?0:res;}var _105=_fd.style;var _106=_105.display;var _107=_105.visibility;if(_105.display=="none"){_105.visibility="hidden";_105.display="";}var bb=_f7.position(_fd);_105.display=_106;_105.visibility=_107;var _108={"L":pos.x,"R":pos.x-bb.w,"M":Math.max(view.l,Math.min(view.l+view.w,pos.x+(bb.w>>1))-bb.w)}[_102.charAt(1)],_109={"T":pos.y,"B":pos.y-bb.h,"M":Math.max(view.t,Math.min(view.t+view.h,pos.y+(bb.h>>1))-bb.h)}[_102.charAt(0)],_10a=Math.max(view.l,_108),_10b=Math.max(view.t,_109),endX=Math.min(view.l+view.w,_108+bb.w),endY=Math.min(view.t+view.h,_109+bb.h),_10c=endX-_10a,_10d=endY-_10b;_103+=(bb.w-_10c)+(bb.h-_10d);if(best==null||_103<best.overflow){best={corner:_102,aroundCorner:_101.aroundCorner,x:_10a,y:_10b,w:_10c,h:_10d,overflow:_103,spaceAvailable:_104};}return !_103;});if(best.overflow&&_ff){_ff(_fd,best.aroundCorner,best.corner,best.spaceAvailable,_100);}var s=_fd.style;s.top=best.y+"px";s.left=best.x+"px";s.right="auto";return best;};return (_fb.place={at:function(node,pos,_10e,_10f){var _110=_f6.map(_10e,function(_111){var c={corner:_111,pos:{x:pos.x,y:pos.y}};if(_10f){c.pos.x+=_111.charAt(1)=="L"?_10f.x:-_10f.x;c.pos.y+=_111.charAt(0)=="T"?_10f.y:-_10f.y;}return c;});return _fc(node,_110);},around:function(node,_112,_113,_114,_115){var _116=(typeof _112=="string"||"offsetWidth" in _112)?_f7.position(_112,true):_112;if(_112.parentNode){var _117=_f8.getComputedStyle(_112).position=="absolute";var _118=_112.parentNode;while(_118&&_118.nodeType==1&&_118.nodeName!="BODY"){var _119=_f7.position(_118,true),pcs=_f8.getComputedStyle(_118);if(/relative|absolute/.test(pcs.position)){_117=false;}if(!_117&&/hidden|auto|scroll/.test(pcs.overflow)){var _11a=Math.min(_116.y+_116.h,_119.y+_119.h);var _11b=Math.min(_116.x+_116.w,_119.x+_119.w);_116.x=Math.max(_116.x,_119.x);_116.y=Math.max(_116.y,_119.y);_116.h=_11a-_116.y;_116.w=_11b-_116.x;}if(pcs.position=="absolute"){_117=true;}_118=_118.parentNode;}}var x=_116.x,y=_116.y,_11c="w" in _116?_116.w:(_116.w=_116.width),_11d="h" in _116?_116.h:(_f9.deprecated("place.around: dijit.place.__Rectangle: { x:"+x+", y:"+y+", height:"+_116.height+", width:"+_11c+" } has been deprecated.  Please use { x:"+x+", y:"+y+", h:"+_116.height+", w:"+_11c+" }","","2.0"),_116.h=_116.height);var _11e=[];function push(_11f,_120){_11e.push({aroundCorner:_11f,corner:_120,pos:{x:{"L":x,"R":x+_11c,"M":x+(_11c>>1)}[_11f.charAt(1)],y:{"T":y,"B":y+_11d,"M":y+(_11d>>1)}[_11f.charAt(0)]}});};_f6.forEach(_113,function(pos){var ltr=_114;switch(pos){case "above-centered":push("TM","BM");break;case "below-centered":push("BM","TM");break;case "after-centered":ltr=!ltr;case "before-centered":push(ltr?"ML":"MR",ltr?"MR":"ML");break;case "after":ltr=!ltr;case "before":push(ltr?"TL":"TR",ltr?"TR":"TL");push(ltr?"BL":"BR",ltr?"BR":"BL");break;case "below-alt":ltr=!ltr;case "below":push(ltr?"BL":"BR",ltr?"TL":"TR");push(ltr?"BR":"BL",ltr?"TR":"TL");break;case "above-alt":ltr=!ltr;case "above":push(ltr?"TL":"TR",ltr?"BL":"BR");push(ltr?"TR":"TL",ltr?"BR":"BL");break;default:push(pos.aroundCorner,pos.corner);}});var _121=_fc(node,_11e,_115,{w:_11c,h:_11d});_121.aroundNodePos=_116;return _121;}});});},"dijit/Viewport":function(){define("dijit/Viewport",["dojo/Evented","dojo/on","dojo/ready","dojo/_base/sniff","dojo/_base/window","dojo/window"],function(_122,on,_123,has,win,_124){var _125=new _122();var _126;_123(200,function(){var _127=_124.getBox();_125._rlh=on(win.global,"resize",function(){var _128=_124.getBox();if(_127.h==_128.h&&_127.w==_128.w){return;}_127=_128;_125.emit("resize");});if(has("ie")==8){var _129=screen.deviceXDPI;setInterval(function(){if(screen.deviceXDPI!=_129){_129=screen.deviceXDPI;_125.emit("resize");}},500);}if(has("ios")){on(document,"focusin",function(evt){_126=evt.target;});on(document,"focusout",function(evt){_126=null;});}});_125.getEffectiveBox=function(doc){var box=_124.getBox(doc);var tag=_126&&_126.tagName&&_126.tagName.toLowerCase();if(has("ios")&&_126&&!_126.readOnly&&(tag=="textarea"||(tag=="input"&&/^(color|email|number|password|search|tel|text|url)$/.test(_126.type)))){box.h*=(orientation==0||orientation==180?0.66:0.4);var rect=_126.getBoundingClientRect();box.h=Math.max(box.h,rect.top+rect.height);}return box;};return _125;});},"dijit/_base/popup":function(){define("dijit/_base/popup",["dojo/dom-class","../popup","../BackgroundIframe"],function(_12a,_12b){var _12c=_12b._createWrapper;_12b._createWrapper=function(_12d){if(!_12d.declaredClass){_12d={_popupWrapper:(_12d.parentNode&&_12a.contains(_12d.parentNode,"dijitPopup"))?_12d.parentNode:null,domNode:_12d,destroy:function(){}};}return _12c.call(this,_12d);};var _12e=_12b.open;_12b.open=function(args){if(args.orient&&typeof args.orient!="string"&&!("length" in args.orient)){var ary=[];for(var key in args.orient){ary.push({aroundCorner:key,corner:args.orient[key]});}args.orient=ary;}return _12e.call(this,args);};return _12b;});},"dijit/popup":function(){define("dijit/popup",["dojo/_base/array","dojo/aspect","dojo/_base/connect","dojo/_base/declare","dojo/dom","dojo/dom-attr","dojo/dom-construct","dojo/dom-geometry","dojo/dom-style","dojo/_base/event","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","dojo/_base/window","./place","./BackgroundIframe","."],function(_12f,_130,_131,_132,dom,_133,_134,_135,_136,_137,has,keys,lang,on,win,_138,_139,_13a){function _13b(){if(this._popupWrapper){_134.destroy(this._popupWrapper);delete this._popupWrapper;}};var _13c=_132(null,{_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_13d){var _13e=_13d._popupWrapper,node=_13d.domNode;if(!_13e){_13e=_134.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},win.body());_13e.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";_13d._popupWrapper=_13e;_130.after(_13d,"destroy",_13b,true);}return _13e;},moveOffScreen:function(_13f){var _140=this._createWrapper(_13f);_136.set(_140,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_141){var _142=this._createWrapper(_141);_136.set(_142,"display","none");},getTopPopup:function(){var _143=this._stack;for(var pi=_143.length-1;pi>0&&_143[pi].parent===_143[pi-1].widget;pi--){}return _143[pi];},open:function(args){var _144=this._stack,_145=args.popup,_146=args.orient||["below","below-alt","above","above-alt"],ltr=args.parent?args.parent.isLeftToRight():_135.isBodyLtr(),_147=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_144.length&&(!args.parent||!dom.isDescendant(args.parent.domNode,_144[_144.length-1].widget.domNode))){this.close(_144[_144.length-1].widget);}var _148=this._createWrapper(_145);_133.set(_148,{id:id,style:{zIndex:this._beginZIndex+_144.length},"class":"dijitPopup "+(_145.baseClass||_145["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(has("bgIframe")&&!_145.bgIframe){_145.bgIframe=new _139(_148);}var best=_147?_138.around(_148,_147,_146,ltr,_145.orient?lang.hitch(_145,"orient"):null):_138.at(_148,args,_146=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_148.style.display="";_148.style.visibility="visible";_145.domNode.style.visibility="visible";var _149=[];_149.push(on(_148,_131._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==keys.ESCAPE&&args.onCancel){_137.stop(evt);args.onCancel();}else{if(evt.charOrCode===keys.TAB){_137.stop(evt);var _14a=this.getTopPopup();if(_14a&&_14a.onCancel){_14a.onCancel();}}}})));if(_145.onCancel&&args.onCancel){_149.push(_145.on("cancel",args.onCancel));}_149.push(_145.on(_145.onExecute?"execute":"change",lang.hitch(this,function(){var _14b=this.getTopPopup();if(_14b&&_14b.onExecute){_14b.onExecute();}})));_144.push({widget:_145,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_149});if(_145.onOpen){_145.onOpen(best);}return best;},close:function(_14c){var _14d=this._stack;while((_14c&&_12f.some(_14d,function(elem){return elem.widget==_14c;}))||(!_14c&&_14d.length)){var top=_14d.pop(),_14e=top.widget,_14f=top.onClose;if(_14e.onClose){_14e.onClose();}var h;while(h=top.handlers.pop()){h.remove();}if(_14e&&_14e.domNode){this.hide(_14e);}if(_14f){_14f();}}}});return (_13a.popup=new _13c());});},"dijit/BackgroundIframe":function(){define("dijit/BackgroundIframe",["require",".","dojo/_base/config","dojo/dom-construct","dojo/dom-style","dojo/_base/lang","dojo/on","dojo/_base/sniff","dojo/_base/window"],function(_150,_151,_152,_153,_154,lang,on,has,win){has.add("bgIframe",has("ie")||has("mozilla"));var _155=new function(){var _156=[];this.pop=function(){var _157;if(_156.length){_157=_156.pop();_157.style.display="";}else{if(has("ie")<9){var burl=_152["dojoBlankHtmlUrl"]||_150.toUrl("dojo/resources/blank.html")||"javascript:\"\"";var html="<iframe src='"+burl+"' role='presentation'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_157=win.doc.createElement(html);}else{_157=_153.create("iframe");_157.src="javascript:\"\"";_157.className="dijitBackgroundIframe";_157.setAttribute("role","presentation");_154.set(_157,"opacity",0.1);}_157.tabIndex=-1;}return _157;};this.push=function(_158){_158.style.display="none";_156.push(_158);};}();_151.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(has("bgIframe")){var _159=(this.iframe=_155.pop());node.appendChild(_159);if(has("ie")<7||has("quirks")){this.resize(node);this._conn=on(node,"resize",lang.hitch(this,function(){this.resize(node);}));}else{_154.set(_159,{width:"100%",height:"100%"});}}};lang.extend(_151.BackgroundIframe,{resize:function(node){if(this.iframe){_154.set(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){this._conn.remove();this._conn=null;}if(this.iframe){_155.push(this.iframe);delete this.iframe;}}});return _151.BackgroundIframe;});},"dijit/_base/scroll":function(){define("dijit/_base/scroll",["dojo/window",".."],function(_15a,_15b){_15b.scrollIntoView=function(node,pos){_15a.scrollIntoView(node,pos);};});},"dijit/_base/sniff":function(){define("dijit/_base/sniff",["dojo/uacss"],function(){});},"dojo/uacss":function(){define(["./dom-geometry","./_base/lang","./ready","./_base/sniff","./_base/window"],function(_15c,lang,_15d,has,_15e){var html=_15e.doc.documentElement,ie=has("ie"),_15f=has("trident"),_160=has("opera"),maj=Math.floor,ff=has("ff"),_161=_15c.boxModel.replace(/-/,""),_162={"dj_quirks":has("quirks"),"dj_opera":_160,"dj_khtml":has("khtml"),"dj_webkit":has("webkit"),"dj_safari":has("safari"),"dj_chrome":has("chrome"),"dj_gecko":has("mozilla")};if(ie){_162["dj_ie"]=true;_162["dj_ie"+maj(ie)]=true;_162["dj_iequirks"]=has("quirks");}if(_15f){_162["dj_trident"]=true;_162["dj_trident"+maj(_15f)]=true;}if(ff){_162["dj_ff"+maj(ff)]=true;}_162["dj_"+_161]=true;var _163="";for(var clz in _162){if(_162[clz]){_163+=clz+" ";}}html.className=lang.trim(html.className+" "+_163);_15d(90,function(){if(!_15c.isBodyLtr()){var _164="dj_rtl dijitRtl "+_163.replace(/ /g,"-rtl ");html.className=lang.trim(html.className+" "+_164+"dj_rtl dijitRtl "+_163.replace(/ /g,"-rtl "));}});return has;});},"dijit/_base/typematic":function(){define("dijit/_base/typematic",["../typematic"],function(){});},"dijit/typematic":function(){define("dijit/typematic",["dojo/_base/array","dojo/_base/connect","dojo/_base/event","dojo/_base/kernel","dojo/_base/lang","dojo/on","dojo/_base/sniff","."],function(_165,_166,_167,_168,lang,on,has,_169){var _16a=(_169.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(lang.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_16b,node,_16c,obj,_16d,_16e,_16f){if(obj!=this._obj){this.stop();this._initialDelay=_16e||500;this._subsequentDelay=_16d||0.9;this._minDelay=_16f||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=lang.hitch(_16b,_16c);this._fireEventAndReload();this._evt=lang.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_170,_171,_172,_173,_174,_175){if(_170.keyCode){_170.charOrCode=_170.keyCode;_168.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_170.charCode){_170.charOrCode=String.fromCharCode(_170.charCode);_168.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}var _176=[on(node,_166._keypress,lang.hitch(this,function(evt){if(evt.charOrCode==_170.charOrCode&&(_170.ctrlKey===undefined||_170.ctrlKey==evt.ctrlKey)&&(_170.altKey===undefined||_170.altKey==evt.altKey)&&(_170.metaKey===undefined||_170.metaKey==(evt.metaKey||false))&&(_170.shiftKey===undefined||_170.shiftKey==evt.shiftKey)){_167.stop(evt);_16a.trigger(evt,_171,node,_172,_170,_173,_174,_175);}else{if(_16a._obj==_170){_16a.stop();}}})),on(node,"keyup",lang.hitch(this,function(){if(_16a._obj==_170){_16a.stop();}}))];return {remove:function(){_165.forEach(_176,function(h){h.remove();});}};},addMouseListener:function(node,_177,_178,_179,_17a,_17b){var _17c=[on(node,"mousedown",lang.hitch(this,function(evt){_167.stop(evt);_16a.trigger(evt,_177,node,_178,node,_179,_17a,_17b);})),on(node,"mouseup",lang.hitch(this,function(evt){if(this._obj){_167.stop(evt);}_16a.stop();})),on(node,"mouseout",lang.hitch(this,function(evt){_167.stop(evt);_16a.stop();})),on(node,"mousemove",lang.hitch(this,function(evt){evt.preventDefault();})),on(node,"dblclick",lang.hitch(this,function(evt){_167.stop(evt);if(has("ie")<9){_16a.trigger(evt,_177,node,_178,node,_179,_17a,_17b);setTimeout(lang.hitch(this,_16a.stop),50);}}))];return {remove:function(){_165.forEach(_17c,function(h){h.remove();});}};},addListener:function(_17d,_17e,_17f,_180,_181,_182,_183,_184){var _185=[this.addKeyListener(_17e,_17f,_180,_181,_182,_183,_184),this.addMouseListener(_17d,_180,_181,_182,_183,_184)];return {remove:function(){_165.forEach(_185,function(h){h.remove();});}};}});return _16a;});},"dijit/_base/wai":function(){define("dijit/_base/wai",["dojo/dom-attr","dojo/_base/lang","..","../hccss"],function(_186,lang,_187){lang.mixin(_187,{hasWaiRole:function(elem,role){var _188=this.getWaiRole(elem);return role?(_188.indexOf(role)>-1):(_188.length>0);},getWaiRole:function(elem){return lang.trim((_186.get(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){_186.set(elem,"role",role);},removeWaiRole:function(elem,role){var _189=_186.get(elem,"role");if(!_189){return;}if(role){var t=lang.trim((" "+_189+" ").replace(" "+role+" "," "));_186.set(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_18a){return elem.hasAttribute?elem.hasAttribute("aria-"+_18a):!!elem.getAttribute("aria-"+_18a);},getWaiState:function(elem,_18b){return elem.getAttribute("aria-"+_18b)||"";},setWaiState:function(elem,_18c,_18d){elem.setAttribute("aria-"+_18c,_18d);},removeWaiState:function(elem,_18e){elem.removeAttribute("aria-"+_18e);}});return _187;});},"dijit/hccss":function(){define("dijit/hccss",["require","dojo/_base/config","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dojo/_base/sniff","dojo/_base/window"],function(_18f,_190,_191,_192,_193,_194,has,win){if(has("ie")||has("mozilla")){_194(90,function(){var div=_192.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_190.blankGif||_18f.toUrl("dojo/resources/blank.gif"))+"\");"}},win.body());var cs=_193.getComputedStyle(div);if(cs){var _195=cs.backgroundImage;var _196=(cs.borderTopColor==cs.borderRightColor)||(_195!=null&&(_195=="none"||_195=="url(invalid-url:)"));if(_196){_191.add(win.body(),"dijit_a11y");}if(has("ie")){div.outerHTML="";}else{win.body().removeChild(div);}}});}});},"dijit/_base/window":function(){define("dijit/_base/window",["dojo/window",".."],function(_197,_198){_198.getDocumentWindow=function(doc){return _197.get(doc);};});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["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/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_199,_19a,_19b,_19c,_19d,_19e,dom,_19f,_1a0,_1a1,_1a2,_1a3,_1a4,lang,on,_1a5,_1a6,_1a7,win,_1a8){if(!_1a4.isAsync){_1a5(0,function(){var _1a9=["dijit/_base/manager"];_199(_1a9);});}var _1aa={};function _1ab(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _1ac(attr){return function(val){_19f[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};function _1ad(a,b){return a===b||(a!==a&&b!==b);};return _19e("dijit._WidgetBase",_1a6,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_1ac("lang"),dir:"",_setDirAttr:_1ac("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_19c.blankGif||_199.toUrl("dojo/resources/blank.gif"),postscript:function(_1ae,_1af){this.create(_1ae,_1af);},create:function(_1b0,_1b1){this.srcNodeRef=dom.byId(_1b1);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_1b0){this.params=_1b0;lang.mixin(this,_1b0);}this.postMixInProperties();if(!this.id){this.id=_1a8.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_1a8.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _1b2=this.srcNodeRef;if(_1b2&&_1b2.parentNode&&this.domNode!==_1b2){_1b2.parentNode.replaceChild(this.domNode,_1b2);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var ctor=this.constructor,list=ctor._setterAttrs;if(!list){list=(ctor._setterAttrs=[]);for(var attr in this.attributeMap){list.push(attr);}var _1b3=ctor.prototype;for(var _1b4 in _1b3){if(_1b4 in this.attributeMap){continue;}var _1b5="_set"+_1b4.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_1b5 in _1b3){list.push(_1b4);}}}_19a.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _1b6 in this.params){this.set(_1b6,this[_1b6]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_1a1.create("div");}if(this.baseClass){var _1b7=this.baseClass.split(" ");if(!this.isLeftToRight()){_1b7=_1b7.concat(_19a.map(_1b7,function(name){return name+"Rtl";}));}_1a0.add(this.domNode,_1b7);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_19a.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_1b8){this._beingDestroyed=true;this.destroyDescendants(_1b8);this.destroy(_1b8);},destroy:function(_1b9){this._beingDestroyed=true;this.uninitialize();var c;while((c=this._connects.pop())){c.remove();}var w;while((w=this._supportingWidgets.pop())){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_1b9);_1a8.remove(this.id);this._destroyed=true;},destroyRendering:function(_1ba){if(this.bgIframe){this.bgIframe.destroy(_1ba);delete this.bgIframe;}if(this.domNode){if(_1ba){_19f.remove(this.domNode,"widgetId");}else{_1a1.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_1ba){_1a1.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_1bb){_19a.forEach(this.getChildren(),function(_1bc){if(_1bc.destroyRecursive){_1bc.destroyRecursive(_1bb);}});},uninitialize:function(){return false;},_setStyleAttr:function(_1bd){var _1be=this.domNode;if(lang.isObject(_1bd)){_1a3.set(_1be,_1bd);}else{if(_1be.style.cssText){_1be.style.cssText+="; "+_1bd;}else{_1be.style.cssText=_1bd;}}this._set("style",_1bd);},_attrToDom:function(attr,_1bf,_1c0){_1c0=arguments.length>=3?_1c0:this.attributeMap[attr];_19a.forEach(lang.isArray(_1c0)?_1c0:[_1c0],function(_1c1){var _1c2=this[_1c1.node||_1c1||"domNode"];var type=_1c1.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_1bf)){_1bf=lang.hitch(this,_1bf);}var _1c3=_1c1.attribute?_1c1.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_19f.set(_1c2,_1c3,_1bf);break;case "innerText":_1c2.innerHTML="";_1c2.appendChild(win.doc.createTextNode(_1bf));break;case "innerHTML":_1c2.innerHTML=_1bf;break;case "class":_1a0.replace(_1c2,_1bf,this[attr]);break;}},this);},get:function(name){var _1c4=this._getAttrNames(name);return this[_1c4.g]?this[_1c4.g]():this[name];},set:function(name,_1c5){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _1c6=this._getAttrNames(name),_1c7=this[_1c6.s];if(lang.isFunction(_1c7)){var _1c8=_1c7.apply(this,Array.prototype.slice.call(arguments,1));}else{var _1c9=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_1c9].tagName,_1ca=_1aa[tag]||(_1aa[tag]=_1ab(this[_1c9])),map=name in this.attributeMap?this.attributeMap[name]:_1c6.s in this?this[_1c6.s]:((_1c6.l in _1ca&&typeof _1c5!="function")||/^aria-|^data-|^role$/.test(name))?_1c9:null;if(map!=null){this._attrToDom(name,_1c5,map);}this._set(name,_1c5);}return _1c8||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,_1cb){var _1cc=this[name];this[name]=_1cb;if(this._watchCallbacks&&this._created&&!_1ad(_1cb,_1cc)){this._watchCallbacks(name,_1cc,_1cb);}},on:function(type,func){return _19b.after(this,this._onMap(type),func,true);},_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[type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_1a8.findWidgets(this.containerNode):[];},getParent:function(){return _1a8.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_1cd,_1ce){var _1cf=_19d.connect(obj,_1cd,this,_1ce);this._connects.push(_1cf);return _1cf;},disconnect:function(_1d0){var i=_19a.indexOf(this._connects,_1d0);if(i!=-1){_1d0.remove();this._connects.splice(i,1);}},subscribe:function(t,_1d1){var _1d2=_1a7.subscribe(t,lang.hitch(this,_1d1));this._connects.push(_1d2);return _1d2;},unsubscribe:function(_1d3){this.disconnect(_1d3);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_1a2.isBodyLtr();},isFocusable:function(){return this.focus&&(_1a3.get(this.domNode,"display")!="none");},placeAt:function(_1d4,_1d5){if(_1d4.declaredClass&&_1d4.addChild){_1d4.addChild(this,_1d5);}else{_1a1.place(this.domNode,_1d4,_1d5);}return this;},getTextDir:function(text,_1d6){return _1d6;},applyTextDir:function(){},defer:function(fcn,_1d7){var _1d8=setTimeout(lang.hitch(this,function(){if(!_1d8){return;}_1d8=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_1d7||0);return {remove:function(){if(_1d8){clearTimeout(_1d8);_1d8=null;}return null;}};}});});},"dojox/mobile":function(){require({cache:{"dojox/main":function(){define("dojox/main",["dojo/_base/kernel"],function(dojo){return dojo.dojox;});},"dojox/mobile/_base":function(){define(["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Switch","./ToolBarButton","./ProgressIndicator"],function(_1d9,View,_1da,_1db,_1dc,_1dd,_1de,_1df,_1e0,_1e1,_1e2,_1e3){return _1d9;});},"dojox/mobile/common":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dijit/registry","./sniff","./uacss"],function(dojo,_1e4,_1e5,_1e6,lang,win,_1e7,_1e8,_1e9,_1ea,_1eb,has,_1ec){var dm=lang.getObject("dojox.mobile",true);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();_1e7.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(_1ed){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_1ed||(!this._sz||this._sz<dm.tabletSize))){from="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_1ed||(!this._sz||this._sz>=dm.tabletSize))){from="tablet";to="phone";}}if(to){_1e7.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_1e6.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.setupIcon=function(_1ee,_1ef){if(_1ee&&_1ef){var arr=_1e4.map(_1ef.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];_1e9.set(_1ee,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_1ee.parentNode?_1e9.get(_1ee,"top"):0)-t+"px",left:-l+"px"});}};dm.hideAddressBarWait=typeof (_1e5["mblHideAddressBarWait"])==="number"?_1e5["mblHideAddressBarWait"]:1500;dm.hide_1=function(_1f0){scrollTo(0,1);var h=dm.getScreenSize().h+"px";if(has("android")){if(_1f0){win.body().style.minHeight=h;}dm.resizeAll();}else{if(_1f0||dm._h===h&&h!==win.body().style.minHeight){win.body().style.minHeight=h;dm.resizeAll();}}dm._h=h;};dm.hide_fs=function(){var t=win.body().style.minHeight;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";scrollTo(0,1);setTimeout(function(){dm.hide_1(1);dm._hiding=false;},1000);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._h=0;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";setTimeout(dm.hide_1,0);setTimeout(dm.hide_1,200);setTimeout(dm.hide_1,800);setTimeout(dm.hide_fs,dm.hideAddressBarWait);};dm.resizeAll=function(evt,root){if(dm.disableResizeAll){return;}_1e6.publish("/dojox/mobile/resizeAll",[evt,root]);dm.updateOrient();dm.detectScreenSize();var _1f1=function(w){var _1f2=w.getParent&&w.getParent();return !!((!_1f2||!_1f2.resize)&&w.resize);};var _1f3=function(w){_1e4.forEach(w.getChildren(),function(_1f4){if(_1f1(_1f4)){_1f4.resize();}_1f3(_1f4);});};if(root){if(root.resize){root.resize();}_1f3(root);}else{_1e4.forEach(_1e4.filter(_1eb.toArray(),_1f1),function(w){w.resize();});}};dm.openWindow=function(url,_1f5){win.global.open(url,_1f5||"_blank");};dm.createDomButton=function(_1f6,_1f7,_1f8){if(!dm._domButtons){if(has("webkit")){var _1f9=function(_1fa,dic){var i,j;if(!_1fa){var dic={};var ss=dojo.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_1f9(ss[i],dic);}return dic;}var _1fb=_1fa.cssRules||[];for(i=0;i<_1fb.length;i++){var rule=_1fb[i];if(rule.href&&rule.styleSheet){_1f9(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;}}}}}}};dm._domButtons=_1f9();}else{dm._domButtons={};}}var s=_1f6.className;var node=_1f8||_1f6;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _1fc=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(dm._domButtons[_1fc]!==undefined){nDiv=dm._domButtons[_1fc];}}var _1fd=null;if(has("bb")&&_1e5["mblBBBoxShadowWorkaround"]!==false){_1fd={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_1e8.create("DIV",_1fd,p);}if(_1f8){setTimeout(function(){_1e7.remove(_1f6,_1fc);},0);_1e7.add(_1f8,_1fc);}}else{if(s.indexOf(".")!==-1){_1e8.create("IMG",{src:s},node);}else{return null;}}_1e7.add(node,"mblDomButton");if(_1e5["mblAndroidWorkaround"]!==false&&has("android")>=2.2){_1e9.set(node,"webkitTransform","translate3d(0,0,0)");}!!_1f7&&_1e9.set(node,_1f7);return node;};dm.createIcon=function(icon,_1fe,node,_1ff,_200){if(icon&&icon.indexOf("mblDomButton")===0){if(node&&node.className.match(/(mblDomButton\w+)/)){_1e7.remove(node,RegExp.$1);}else{node=_1e8.create("DIV");}node.title=_1ff;_1e7.add(node,icon);dm.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_1e8.create("IMG",{alt:_1ff});}node.src=(icon||"").replace("${theme}",dm.currentTheme);dm.setupIcon(node,_1fe);if(_200&&_1fe){var arr=_1fe.split(/[ ,]/);_1e9.set(_200,{width:arr[2]+"px",height:arr[3]+"px"});}}}if(_200){_200.appendChild(node);}return node;};dm._iw=_1e5["mblIosWorkaround"]!==false&&has("iphone");if(dm._iw){dm._iwBgCover=_1e8.create("div");}if(_1e5.parseOnLoad){_1ea(90,function(){var _201=win.body().getElementsByTagName("*");var i,len,s;len=_201.length;for(i=0;i<len;i++){s=_201[i].getAttribute("dojoType");if(s){if(_201[i].parentNode.getAttribute("lazy")=="true"){_201[i].setAttribute("__dojoType",s);_201[i].removeAttribute("dojoType");}}}});}_1ea(function(){dm.detectScreenSize(true);if(_1e5["mblApplyPageStyles"]!==false){_1e7.add(win.doc.documentElement,"mobile");}if(has("chrome")){_1e7.add(win.doc.documentElement,"dj_chrome");}if(_1e5["mblAndroidWorkaround"]!==false&&has("android")>=2.2){if(_1e5["mblAndroidWorkaroundButtonStyle"]!==false){_1e8.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;}"},win.doc.head,"first");}if(has("android")<3){_1e9.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");_1e6.connect(null,"onfocus",null,function(e){_1e9.set(win.doc.documentElement,"webkitTransform","");});_1e6.connect(null,"onblur",null,function(e){_1e9.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");});}else{if(_1e5["mblAndroid3Workaround"]!==false){_1e9.set(win.doc.documentElement,{webkitBackfaceVisibility:"hidden",webkitPerspective:8000});}}}var f=dm.resizeAll;if(_1e5["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_1e5["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_1e5["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}_1e6.connect(null,(win.global.onorientationchange!==undefined&&!has("android"))?"onorientationchange":"onresize",null,f);var _202=win.body().getElementsByTagName("*");var i,len=_202.length,s;for(i=0;i<len;i++){s=_202[i].getAttribute("__dojoType");if(s){_202[i].setAttribute("dojoType",s);_202[i].removeAttribute("__dojoType");}}if(dojo.hash){var _203=function(root){if(!root){return [];}var arr=_1eb.findWidgets(root);var _204=arr;for(var i=0;i<_204.length;i++){arr=arr.concat(_203(_204[i].containerNode));}return arr;};_1e6.subscribe("/dojo/hashchange",null,function(_205){var view=dm.currentView;if(!view){return;}var _206=dm._params;if(!_206){var _207=_205?_205:dm._defaultView.id;var _208=_203(view.domNode);var dir=1,_209="slide";for(i=0;i<_208.length;i++){var w=_208[i];if("#"+_207==w.moveTo){_209=w.transition;dir=(w instanceof dm.Heading)?-1:1;break;}}_206=[_207,dir,_209];}view.performTransition.apply(view,_206);dm._params=null;});}win.body().style.visibility="visible";});_1eb.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return _1eb.byId(id);}node=node._parentNode||node.parentNode;}return null;};return dm;});},"dijit/registry":function(){define("dijit/registry",["dojo/_base/array","dojo/_base/sniff","dojo/_base/unload","dojo/_base/window","."],function(_20a,has,_20b,win,_20c){var _20d={},hash={};var _20e={length:0,add:function(_20f){if(hash[_20f.id]){throw new Error("Tried to register widget with id=="+_20f.id+" but that id is already registered");}hash[_20f.id]=_20f;this.length++;},remove:function(id){if(hash[id]){delete hash[id];this.length--;}},byId:function(id){return typeof id=="string"?hash[id]:id;},byNode:function(node){return hash[node.getAttribute("widgetId")];},toArray:function(){var ar=[];for(var id in hash){ar.push(hash[id]);}return ar;},getUniqueId:function(_210){var id;do{id=_210+"_"+(_210 in _20d?++_20d[_210]:_20d[_210]=0);}while(hash[id]);return _20c._scopeName=="dijit"?id:_20c._scopeName+"_"+id;},findWidgets:function(root){var _211=[];function _212(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _213=node.getAttribute("widgetId");if(_213){var _214=hash[_213];if(_214){_211.push(_214);}}else{_212(node);}}}};_212(root);return _211;},_destroyAll:function(){_20c._curFocus=null;_20c._prevFocus=null;_20c._activeStack=[];_20a.forEach(_20e.findWidgets(win.body()),function(_215){if(!_215._destroyed){if(_215.destroyRecursive){_215.destroyRecursive();}else{if(_215.destroy){_215.destroy();}}}});},getEnclosingWidget:function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;},_hash:hash};_20c.registry=_20e;return _20e;});},"dijit/main":function(){define("dijit/main",["dojo/_base/kernel"],function(dojo){return dojo.dijit;});},"dojox/mobile/sniff":function(){define(["dojo/_base/window","dojo/_base/sniff"],function(win,has){var ua=navigator.userAgent;has.add("bb",ua.indexOf("BlackBerry")>=0&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/uacss":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","dojox/mobile/sniff"],function(dojo,lang,win,has){win.doc.documentElement.className+=lang.trim([has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("iphone")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":""].join(" ").replace(/ +/g," "));return dojo;});},"dojox/mobile/View":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./transition"],function(dojo,_216,_217,_218,_219,lang,has,win,_21a,dom,_21b,_21c,_21d,_21e,_21f,_220,_221,_222,_223){var dm=lang.getObject("dojox.mobile",true);return _219("dojox.mobile.View",[_221,_220,_21f],{selected:false,keepScrollPos:true,constructor:function(_224,node){if(node){dom.byId(node).style.visibility="hidden";}this._aw=has("android")>=2.2&&has("android")<3;},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className="mblView";this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_217["mblCSS3Transition"]){this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}var id=location.href.match(/#(\w+)([^\w=]|$)/)?RegExp.$1:null;this._visible=this.selected&&!id||this.id==id;if(this.selected){dm._defaultView=this;}},startup:function(){if(this._started){return;}var _225=[];var _226=this.domNode.parentNode.childNodes;var _227=false;for(var i=0;i<_226.length;i++){var c=_226[i];if(c.nodeType===1&&_21b.contains(c,"mblView")){_225.push(c);_227=_227||_21e.byNode(c)._visible;}}var _228=this._visible;if(_225.length===1||(!_227&&_225[0]===this.domNode)){_228=true;}var _229=this;setTimeout(function(){if(!_228){_229.domNode.style.display="none";}else{dm.currentView=_229;_229.onStartView();_218.publish("/dojox/mobile/startView",[_229]);}if(_229.domNode.style.visibility!="visible"){_229.domNode.style.visibility="visible";}var _22a=_229.getParent&&_229.getParent();if(!_22a||!_22a.resize){_229.resize();}},has("ie")?100:0);this.inherited(arguments);},resize:function(){_216.forEach(this.getChildren(),function(_22b){if(_22b.resize){_22b.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_22c,dir,_22d,_22e,_22f){},onAfterTransitionIn:function(_230,dir,_231,_232,_233){},onBeforeTransitionOut:function(_234,dir,_235,_236,_237){},onAfterTransitionOut:function(_238,dir,_239,_23a,_23b){},_saveState:function(_23c,dir,_23d,_23e,_23f){this._context=_23e;this._method=_23f;if(_23d=="none"){_23d=null;}this._moveTo=_23c;this._dir=dir;this._transition=_23d;this._arguments=lang._toArray(arguments);this._args=[];if(_23e||_23f){for(var i=5;i<arguments.length;i++){this._args.push(arguments[i]);}}},_fixViewState:function(_240){var _241=this.domNode.parentNode.childNodes;for(var i=0;i<_241.length;i++){var n=_241[i];if(n.nodeType===1&&_21b.contains(n,"mblView")){n.className="mblView";}}_240.className="mblView";},convertToId:function(_242){if(typeof (_242)=="string"){_242.match(/^#?([^&?]+)/);return RegExp.$1;}return _242;},performTransition:function(_243,dir,_244,_245,_246){if(_243==="#"){return;}if(dojo.hash){if(typeof (_243)=="string"&&_243.charAt(0)=="#"&&!dm._params){dm._params=[];for(var i=0;i<arguments.length;i++){dm._params.push(arguments[i]);}dojo.hash(_243);return;}}this._saveState.apply(this,arguments);var _247;if(_243){_247=this.convertToId(_243);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("DIV");win.body().appendChild(this._dummyNode);}_247=this._dummyNode;}var _248=this.domNode;var _249=_248.offsetTop;_247=this.toNode=dom.byId(_247);if(!_247){return;}_247.style.visibility=this._aw?"visible":"hidden";_247.style.display="";this._fixViewState(_247);var _24a=_21e.byNode(_247);if(_24a){if(_217["mblAlwaysResizeOnTransition"]||!_24a._resized){dm.resizeAll(null,_24a);_24a._resized=true;}if(_244&&_244!="none"){_24a.containerNode.style.paddingTop=_249+"px";}_24a.movedFrom=_248.id;}this.onBeforeTransitionOut.apply(this,arguments);_218.publish("/dojox/mobile/beforeTransitionOut",[this].concat(lang._toArray(arguments)));if(_24a){if(this.keepScrollPos&&!this.getParent()){var _24b=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_248._scrollTop=_24b;var _24c=(dir==1)?0:(_247._scrollTop||0);_247.style.top="0px";if(_24b>1||_24c!==0){_248.style.top=_24c-_24b+"px";if(_217["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_24c||1));},0);}}}else{_247.style.top="0px";}_24a.onBeforeTransitionIn.apply(_24a,arguments);_218.publish("/dojox/mobile/beforeTransitionIn",[_24a].concat(lang._toArray(arguments)));}if(!this._aw){_247.style.display="none";_247.style.visibility="visible";}if(dm._iw&&dm.scrollable){var ss=dm.getScreenSize();win.body().appendChild(dm._iwBgCover);_21d.set(dm._iwBgCover,{position:"absolute",top:"0px",left:"0px",height:(ss.h+1)+"px",width:ss.w+"px",backgroundColor:_21d.get(win.body(),"background-color"),zIndex:-10000,display:""});_21d.set(_247,{position:"absolute",zIndex:-10001,visibility:"visible",display:""});setTimeout(lang.hitch(this,function(){this._doTransition(_248,_247,_244,dir);}),80);}else{this._doTransition(_248,_247,_244,dir);}},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_24d,_24e,_24f,dir){var rev=(dir==-1)?" mblReverse":"";if(dm._iw&&dm.scrollable){_21d.set(_24e,{position:"",zIndex:""});win.body().removeChild(dm._iwBgCover);}else{if(!this._aw){_24e.style.display="";}}if(!_24f||_24f=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_217["mblCSS3Transition"]){_21a.when(_223,lang.hitch(this,function(_250){var _251=_21d.get(_24e,"position");_21d.set(_24e,"position","absolute");_21a.when(_250(_24d,_24e,{transition:_24f,reverse:(dir===-1)?true:false}),lang.hitch(this,function(){_21d.set(_24e,"position",_251);this.invokeCallback();}));}));}else{var s=this._toCls(_24f);_21b.add(_24d,s+" mblOut"+rev);_21b.add(_24e,s+" mblIn"+rev);setTimeout(function(){_21b.add(_24d,"mblTransition");_21b.add(_24e,"mblTransition");},100);var _252="50% 50%";var _253="50% 50%";var _254,posX,posY;if(_24f.indexOf("swirl")!=-1||_24f.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_254=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_254=-_21c.position(_24d,true).y;}posY=win.global.innerHeight/2+_254;_252="50% "+posY+"px";_253="50% "+posY+"px";}else{if(_24f.indexOf("scale")!=-1){var _255=_21c.position(_24d,true);posX=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_255.x;if(this.keepScrollPos&&!this.getParent()){_254=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_254=-_255.y;}posY=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_254;_252=posX+"px "+posY+"px";_253=posX+"px "+posY+"px";}}_21d.set(_24d,{webkitTransformOrigin:_252});_21d.set(_24e,{webkitTransformOrigin:_253});}}dm.currentView=_21e.byNode(_24e);},onAnimationStart:function(e){},onAnimationEnd:function(e){var name=e.animationName||e.target.className;if(name.indexOf("Out")===-1&&name.indexOf("In")===-1&&name.indexOf("Shrink")===-1){return;}var _256=false;if(_21b.contains(this.domNode,"mblOut")){_256=true;this.domNode.style.display="none";_21b.remove(this.domNode,[this._toCls(this._transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_21d.set(this.domNode,{webkitTransformOrigin:""});if(name.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_21b.remove(li,"mblCloseContent");}if(_256){this.invokeCallback();}this.domNode&&(this.domNode.className="mblView");this.clickedPosX=this.clickedPosY=undefined;},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_218.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _257=_21e.byNode(this.toNode);if(_257){_257.onAfterTransitionIn.apply(_257,this._arguments);_218.publish("/dojox/mobile/afterTransitionIn",[_257].concat(this._arguments));_257.movedFrom=undefined;}var c=this._context,m=this._method;if(!c&&!m){return;}if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._args);}else{m.apply(c,this._args);}},getShowingView:function(){var _258=this.domNode.parentNode.childNodes;for(var i=0;i<_258.length;i++){var n=_258[i];if(n.nodeType===1&&_21b.contains(n,"mblView")&&_21d.get(n,"display")!=="none"){return _21e.byNode(n);}}return null;},show:function(){var view=this.getShowingView();if(view){view.domNode.style.display="none";}this.domNode.style.display="";dm.currentView=this;}});});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_259,_25a){return _259("dijit._Contained",null,{_getSibling:function(_25b){var node=this.domNode;do{node=node[_25b+"Sibling"];}while(node&&node.nodeType!=1);return node&&_25a.byNode(node);},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("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_25c,_25d,_25e,_25f){return _25d("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_260,_261){var _262=this.containerNode;if(_261&&typeof _261=="number"){var _263=this.getChildren();if(_263&&_263.length>=_261){_262=_263[_261-1].domNode;_261="after";}}_25e.place(_260.domNode,_262,_261);if(this._started&&!_260._started){_260.startup();}},removeChild:function(_264){if(typeof _264=="number"){_264=this.getChildren()[_264];}if(_264){var node=_264.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_265,dir){var node=_265.domNode,_266=(dir>0?"nextSibling":"previousSibling");do{node=node[_266];}while(node&&(node.nodeType!=1||!_25f.byNode(node)));return node&&_25f.byNode(node);},getIndexOfChild:function(_267){return _25c.indexOf(this.getChildren(),_267);}});});},"dijit/_WidgetBase":function(){define("dijit/_WidgetBase",["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/_base/kernel","dojo/_base/lang","dojo/on","dojo/ready","dojo/Stateful","dojo/topic","dojo/_base/window","./registry"],function(_268,_269,_26a,_26b,_26c,_26d,dom,_26e,_26f,_270,_271,_272,_273,lang,on,_274,_275,_276,win,_277){if(!_273.isAsync){_274(0,function(){var _278=["dijit/_base/manager"];_268(_278);});}var _279={};function _27a(obj){var ret={};for(var attr in obj){ret[attr.toLowerCase()]=true;}return ret;};function _27b(attr){return function(val){_26e[val?"set":"remove"](this.domNode,attr,val);this._set(attr,val);};};function _27c(a,b){return a===b||(a!==a&&b!==b);};return _26d("dijit._WidgetBase",_275,{id:"",_setIdAttr:"domNode",lang:"",_setLangAttr:_27b("lang"),dir:"",_setDirAttr:_27b("dir"),textDir:"","class":"",_setClassAttr:{node:"domNode",type:"class"},style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{},_blankGif:_26b.blankGif||_268.toUrl("dojo/resources/blank.gif"),postscript:function(_27d,_27e){this.create(_27d,_27e);},create:function(_27f,_280){this.srcNodeRef=dom.byId(_280);this._connects=[];this._supportingWidgets=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_27f){this.params=_27f;lang.mixin(this,_27f);}this.postMixInProperties();if(!this.id){this.id=_277.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_277.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _281=this.srcNodeRef;if(_281&&_281.parentNode&&this.domNode!==_281){_281.parentNode.replaceChild(this.domNode,_281);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var ctor=this.constructor,list=ctor._setterAttrs;if(!list){list=(ctor._setterAttrs=[]);for(var attr in this.attributeMap){list.push(attr);}var _282=ctor.prototype;for(var _283 in _282){if(_283 in this.attributeMap){continue;}var _284="_set"+_283.replace(/^[a-z]|-[a-zA-Z]/g,function(c){return c.charAt(c.length-1).toUpperCase();})+"Attr";if(_284 in _282){list.push(_283);}}}_269.forEach(list,function(attr){if(this.params&&attr in this.params){}else{if(this[attr]){this.set(attr,this[attr]);}}},this);for(var _285 in this.params){this.set(_285,this[_285]);}},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||_270.create("div");}if(this.baseClass){var _286=this.baseClass.split(" ");if(!this.isLeftToRight()){_286=_286.concat(_269.map(_286,function(name){return name+"Rtl";}));}_26f.add(this.domNode,_286);}},postCreate:function(){},startup:function(){if(this._started){return;}this._started=true;_269.forEach(this.getChildren(),function(obj){if(!obj._started&&!obj._destroyed&&lang.isFunction(obj.startup)){obj.startup();obj._started=true;}});},destroyRecursive:function(_287){this._beingDestroyed=true;this.destroyDescendants(_287);this.destroy(_287);},destroy:function(_288){this._beingDestroyed=true;this.uninitialize();var c;while((c=this._connects.pop())){c.remove();}var w;while((w=this._supportingWidgets.pop())){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}}this.destroyRendering(_288);_277.remove(this.id);this._destroyed=true;},destroyRendering:function(_289){if(this.bgIframe){this.bgIframe.destroy(_289);delete this.bgIframe;}if(this.domNode){if(_289){_26e.remove(this.domNode,"widgetId");}else{_270.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_289){_270.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_28a){_269.forEach(this.getChildren(),function(_28b){if(_28b.destroyRecursive){_28b.destroyRecursive(_28a);}});},uninitialize:function(){return false;},_setStyleAttr:function(_28c){var _28d=this.domNode;if(lang.isObject(_28c)){_272.set(_28d,_28c);}else{if(_28d.style.cssText){_28d.style.cssText+="; "+_28c;}else{_28d.style.cssText=_28c;}}this._set("style",_28c);},_attrToDom:function(attr,_28e,_28f){_28f=arguments.length>=3?_28f:this.attributeMap[attr];_269.forEach(lang.isArray(_28f)?_28f:[_28f],function(_290){var _291=this[_290.node||_290||"domNode"];var type=_290.type||"attribute";switch(type){case "attribute":if(lang.isFunction(_28e)){_28e=lang.hitch(this,_28e);}var _292=_290.attribute?_290.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);_26e.set(_291,_292,_28e);break;case "innerText":_291.innerHTML="";_291.appendChild(win.doc.createTextNode(_28e));break;case "innerHTML":_291.innerHTML=_28e;break;case "class":_26f.replace(_291,_28e,this[attr]);break;}},this);},get:function(name){var _293=this._getAttrNames(name);return this[_293.g]?this[_293.g]():this[name];},set:function(name,_294){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _295=this._getAttrNames(name),_296=this[_295.s];if(lang.isFunction(_296)){var _297=_296.apply(this,Array.prototype.slice.call(arguments,1));}else{var _298=this.focusNode&&!lang.isFunction(this.focusNode)?"focusNode":"domNode",tag=this[_298].tagName,_299=_279[tag]||(_279[tag]=_27a(this[_298])),map=name in this.attributeMap?this.attributeMap[name]:_295.s in this?this[_295.s]:((_295.l in _299&&typeof _294!="function")||/^aria-|^data-|^role$/.test(name))?_298:null;if(map!=null){this._attrToDom(name,_294,map);}this._set(name,_294);}return _297||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,_29a){var _29b=this[name];this[name]=_29a;if(this._watchCallbacks&&this._created&&!_27c(_29a,_29b)){this._watchCallbacks(name,_29b,_29a);}},on:function(type,func){return _26a.after(this,this._onMap(type),func,true);},_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[type.toLowerCase()];},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getChildren:function(){return this.containerNode?_277.findWidgets(this.containerNode):[];},getParent:function(){return _277.getEnclosingWidget(this.domNode.parentNode);},connect:function(obj,_29c,_29d){var _29e=_26c.connect(obj,_29c,this,_29d);this._connects.push(_29e);return _29e;},disconnect:function(_29f){var i=_269.indexOf(this._connects,_29f);if(i!=-1){_29f.remove();this._connects.splice(i,1);}},subscribe:function(t,_2a0){var _2a1=_276.subscribe(t,lang.hitch(this,_2a0));this._connects.push(_2a1);return _2a1;},unsubscribe:function(_2a2){this.disconnect(_2a2);},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):_271.isBodyLtr();},isFocusable:function(){return this.focus&&(_272.get(this.domNode,"display")!="none");},placeAt:function(_2a3,_2a4){if(_2a3.declaredClass&&_2a3.addChild){_2a3.addChild(this,_2a4);}else{_270.place(this.domNode,_2a3,_2a4);}return this;},getTextDir:function(text,_2a5){return _2a5;},applyTextDir:function(){},defer:function(fcn,_2a6){var _2a7=setTimeout(lang.hitch(this,function(){if(!_2a7){return;}_2a7=null;if(!this._destroyed){lang.hitch(this,fcn)();}}),_2a6||0);return {remove:function(){if(_2a7){clearTimeout(_2a7);_2a7=null;}return null;}};}});});},"dojo/Stateful":function(){define(["./_base/kernel","./_base/declare","./_base/lang","./_base/array"],function(dojo,_2a8,lang,_2a9){return dojo.declare("dojo.Stateful",null,{postscript:function(_2aa){if(_2aa){lang.mixin(this,_2aa);}},get:function(name){return this[name];},set:function(name,_2ab){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _2ac=this[name];this[name]=_2ab;if(this._watchCallbacks){this._watchCallbacks(name,_2ac,_2ab);}return this;},watch:function(name,_2ad){var _2ae=this._watchCallbacks;if(!_2ae){var self=this;_2ae=this._watchCallbacks=function(name,_2af,_2b0,_2b1){var _2b2=function(_2b3){if(_2b3){_2b3=_2b3.slice();for(var i=0,l=_2b3.length;i<l;i++){try{_2b3[i].call(self,name,_2af,_2b0);}catch(e){console.error(e);}}}};_2b2(_2ae["_"+name]);if(!_2b1){_2b2(_2ae["*"]);}};}if(!_2ad&&typeof name==="function"){_2ad=name;name="*";}else{name="_"+name;}var _2b4=_2ae[name];if(typeof _2b4!=="object"){_2b4=_2ae[name]=[];}_2b4.push(_2ad);return {unwatch:function(){_2b4.splice(_2a9.indexOf(_2b4,_2ad),1);}};}});});},"dojox/mobile/ViewController":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent"],function(dojo,_2b5,_2b6,_2b7,lang,win,dom,_2b8,_2b9,on,_2ba,_2bb,_2bc,_2bd){var dm=lang.getObject("dojox.mobile",true);var _2be=_2b7("dojox.mobile.ViewController",null,{constructor:function(){this.viewMap={};this.currentView=null;this.defaultView=null;_2ba(lang.hitch(this,function(){on(win.body(),"startTransition",lang.hitch(this,"onStartTransition"));}));},findCurrentView:function(_2bf,src){if(_2bf){var w=_2bb.byId(_2bf);if(w&&w.getShowingView){return w.getShowingView();}}if(dm.currentView){return dm.currentView;}w=src;while(true){w=w.getParent();if(!w){return null;}if(_2b8.contains(w.domNode,"mblView")){break;}}return w;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail||(evt.detail&&!evt.detail.moveTo&&!evt.detail.href&&!evt.detail.url&&!evt.detail.scene)){return;}var w=this.findCurrentView(evt.detail.moveTo,(evt.target&&evt.target.id)?_2bb.byId(evt.target.id):_2bb.byId(evt.target));if(!w||(evt.detail&&evt.detail.moveTo&&w===_2bb.byId(evt.detail.moveTo))){return;}if(evt.detail.href){var t=_2bb.byId(evt.target.id).hrefTarget;if(t){dm.openWindow(evt.detail.href,t);}else{w.performTransition(null,evt.detail.transitionDir,evt.detail.transition,evt.target,function(){location.href=evt.detail.href;});}return;}else{if(evt.detail.scene){_2b6.publish("/dojox/mobile/app/pushScene",[evt.detail.scene]);return;}}var _2c0=evt.detail.moveTo;if(evt.detail.url){var id;if(dm._viewMap&&dm._viewMap[evt.detail.url]){id=dm._viewMap[evt.detail.url];}else{var text=this._text;if(!text){if(_2bb.byId(evt.target.id).sync){dojo.xhrGet({url:evt.detail.url,sync:true,load:function(_2c1){text=lang.trim(_2c1);}});}else{var s="dojo/_base/xhr";require([s],lang.hitch(this,function(xhr){var prog=_2bc.getInstance();win.body().appendChild(prog.domNode);prog.start();var obj=xhr.get({url:evt.detail.url,handleAs:"text"});obj.addCallback(lang.hitch(this,function(_2c2,_2c3){prog.stop();if(_2c2){this._text=_2c2;new _2bd(evt.target,{transition:evt.detail.transition,transitionDir:evt.detail.transitionDir,moveTo:_2c0,href:evt.detail.href,url:evt.detail.url,scene:evt.detail.scene},evt.detail).dispatch();}}));obj.addErrback(function(_2c4){prog.stop();});}));return;}}this._text=null;id=this._parse(text,_2bb.byId(evt.target.id).urlTarget);if(!dm._viewMap){dm._viewMap=[];}dm._viewMap[evt.detail.url]=id;}_2c0=id;w=this.findCurrentView(_2c0,_2bb.byId(evt.target.id))||w;}var src=_2bb.getEnclosingWidget(evt.target);var _2c5,_2c6;if(src&&src.callback){_2c5=src;_2c6=src.callback;}w.performTransition(_2c0,evt.detail.transitionDir,evt.detail.transition,_2c5,_2c6);},_parse:function(text,id){var _2c7,view,i,j,len;var _2c8=this.findCurrentView();var _2c9=_2bb.byId(id)&&_2bb.byId(id).containerNode||dom.byId(id)||_2c8&&_2c8.domNode.parentNode||win.body();var _2ca=null;for(j=_2c9.childNodes.length-1;j>=0;j--){var c=_2c9.childNodes[j];if(c.nodeType===1){if(c.getAttribute("fixed")==="bottom"){_2ca=c;break;}}}if(text.charAt(0)==="<"){_2c7=_2b9.create("DIV",{innerHTML:text});for(i=0;i<_2c7.childNodes.length;i++){var n=_2c7.childNodes[i];if(n.nodeType===1){view=n;break;}}if(!view){return;}view.style.visibility="hidden";_2c9.insertBefore(_2c7,_2ca);var ws=dojo.parser.parse(_2c7);_2b5.forEach(ws,function(w){if(w&&!w._started&&w.startup){w.startup();}});for(i=0,len=_2c7.childNodes.length;i<len;i++){_2c9.insertBefore(_2c7.firstChild,_2ca);}_2c9.removeChild(_2c7);_2bb.byNode(view)._visible=true;}else{if(text.charAt(0)==="{"){_2c7=_2b9.create("DIV");_2c9.insertBefore(_2c7,_2ca);this._ws=[];view=this._instantiate(eval("("+text+")"),_2c7);for(i=0;i<this._ws.length;i++){var w=this._ws[i];w.startup&&!w._started&&(!w.getParent||!w.getParent())&&w.startup();}this._ws=null;}}view.style.display="none";view.style.visibility="visible";return dojo.hash?"#"+view.id:view.id;},_instantiate:function(obj,node,_2cb){var _2cc;for(var key in obj){if(key.charAt(0)=="@"){continue;}var cls=lang.getObject(key);if(!cls){continue;}var _2cd={};var _2ce=cls.prototype;var objs=lang.isArray(obj[key])?obj[key]:[obj[key]];for(var i=0;i<objs.length;i++){for(var prop in objs[i]){if(prop.charAt(0)=="@"){var val=objs[i][prop];prop=prop.substring(1);if(typeof _2ce[prop]=="string"){_2cd[prop]=val;}else{if(typeof _2ce[prop]=="number"){_2cd[prop]=val-0;}else{if(typeof _2ce[prop]=="boolean"){_2cd[prop]=(val!="false");}else{if(typeof _2ce[prop]=="object"){_2cd[prop]=eval("("+val+")");}}}}}}_2cc=new cls(_2cd,node);if(node){_2cc._visible=true;this._ws.push(_2cc);}if(_2cb&&_2cb.addChild){_2cb.addChild(_2cc);}this._instantiate(objs[i],null,_2cc);}}return _2cc&&_2cc.domNode;}});new _2be();return _2be;});},"dojox/mobile/ProgressIndicator":function(){define(["dojo/_base/config","dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/has"],function(_2cf,_2d0,_2d1,_2d2,has){var cls=_2d0("dojox.mobile.ProgressIndicator",null,{interval:100,colors:["#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#B8B9B8","#AEAFAE","#A4A5A4","#9A9A9A","#8E8E8E","#838383"],constructor:function(){this._bars=[];this.domNode=_2d1.create("DIV");this.domNode.className="mblProgContainer";if(_2cf["mblAndroidWorkaround"]!==false&&has("android")>=2.2&&has("android")<3){_2d2.set(this.domNode,"webkitTransform","translate3d(0,0,0)");}this.spinnerNode=_2d1.create("DIV",null,this.domNode);for(var i=0;i<this.colors.length;i++){var div=_2d1.create("DIV",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.domNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.domNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _2d3=this;var n=this.colors.length;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_2d3.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;_2d3._bars[i].style.backgroundColor=c[idx];}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_2d1.create("IMG",{src:file},this.domNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.domNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}}});cls._instance=null;cls.getInstance=function(){if(!cls._instance){cls._instance=new cls();}return cls._instance;};return cls;});},"dojox/mobile/TransitionEvent":function(){define(["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_2d4,_2d5,lang,on,_2d6){return _2d4("dojox.mobile.TransitionEvent",null,{constructor:function(_2d7,_2d8,_2d9){this.transitionOptions=_2d8;this.target=_2d7;this.triggerEvent=_2d9||null;},dispatch:function(){var opts={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",opts);if(evt){_2d5.when(_2d6,lang.hitch(this,function(_2da){_2d5.when(_2da.call(this,evt),lang.hitch(this,function(_2db){this.endTransition(_2db);}));}));}},endTransition:function(_2dc){on.emit(this.target,"endTransition",{detail:_2dc.transitionOptions});}});});},"dojox/mobile/transition":function(){define(["dojo/_base/Deferred","dojo/_base/config"],function(_2dd,_2de){if(_2de["mblCSS3Transition"]){var _2df=new _2dd();require([_2de["mblCSS3Transition"]],function(_2e0){_2df.resolve(_2e0);});return _2df;}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","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./View"],function(_2e1,_2e2,_2e3,lang,win,_2e4,_2e5,_2e6,_2e7,_2e8,_2e9,_2ea,View){var dm=lang.getObject("dojox.mobile",true);return _2e3("dojox.mobile.Heading",[_2ea,_2e9,_2e8],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",backProp:{className:"mblArrowButton"},tag:"H1",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.domNode.className="mblHeading";if(!this.label){_2e1.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_2e5.create("SPAN",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_2e5.create("SPAN",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_2e5.create("DIV",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);},startup:function(){if(this._started){return;}var _2eb=this.getParent&&this.getParent();if(!_2eb||!_2eb.resize){var _2ec=this;setTimeout(function(){_2ec.resize();},0);}this.inherited(arguments);},resize:function(){if(this._btn){this._btn.style.width=this._body.offsetWidth+this._head.offsetWidth+"px";}if(this.labelNode){var _2ed,_2ee;var _2ef=this.containerNode.childNodes;for(var i=_2ef.length-1;i>=0;i--){var c=_2ef[i];if(c.nodeType===1){if(!_2ee&&_2e4.contains(c,"mblToolBarButton")&&_2e6.get(c,"float")==="right"){_2ee=c;}if(!_2ed&&(_2e4.contains(c,"mblToolBarButton")&&_2e6.get(c,"float")==="left"||c===this._btn)){_2ed=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=_2ee?bw-_2ee.offsetLeft+5:0;var lw=_2ed?_2ed.offsetLeft+_2ed.offsetWidth+5:0;var tw=this.labelNodeLen||0;_2e4[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_2e1.forEach(this.getChildren(),function(_2f0){if(_2f0.resize){_2f0.resize();}});},_setBackAttr:function(back){if(!back){_2e5.destroy(this._btn);this._btn=null;this.back="";}else{if(!this._btn){var btn=_2e5.create("DIV",this.backProp,this.domNode,"first");var head=_2e5.create("DIV",{className:"mblArrowButtonHead"},btn);var body=_2e5.create("DIV",{className:"mblArrowButtonBody mblArrowButtonText"},btn);this._body=body;this._head=head;this._btn=btn;this.backBtnNode=btn;this.connect(body,"onclick","onClick");}this.back=back;this._body.innerHTML=this._cv?this._cv(this.back):this.back;}this.resize();},_setLabelAttr:function(_2f1){this.label=_2f1;this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_2f1):_2f1;},findCurrentView:function(){var w=this;while(true){w=w.getParent();if(!w){return null;}if(w instanceof View){break;}}return w;},onClick:function(e){var h1=this.domNode;_2e4.add(h1,"mblArrowButtonSelected");setTimeout(function(){_2e4.remove(h1,"mblArrowButtonSelected");},1000);if(this.back&&!this.moveTo&&!this.href&&history){history.back();return;}var view=this.findCurrentView();if(view){view.clickedPosX=e.clientX;view.clickedPosY=e.clientY;}this.goTo(this.moveTo,this.href);},goTo:function(_2f2,href){var view=this.findCurrentView();if(!view){return;}if(href){view.performTransition(null,-1,this.transition,this,function(){location.href=href;});}else{if(dm.app&&dm.app.STAGE_CONTROLLER_ACTIVE){_2e2.publish("/dojox/mobile/app/goback");}else{var node=_2e7.byId(view.convertToId(_2f2));if(node){var _2f3=node.getParent();while(view){var _2f4=view.getParent();if(_2f3===_2f4){break;}view=_2f4;}}if(view){view.performTransition(_2f2,-1,this.transition);}}}}});});},"dojox/mobile/RoundRect":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_2f5,_2f6,win,_2f7,_2f8,_2f9){return _2f6("dojox.mobile.RoundRect",[_2f9,_2f8,_2f7],{shadow:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className=this.shadow?"mblRoundRect mblShadow":"mblRoundRect";},resize:function(){_2f5.forEach(this.getChildren(),function(_2fa){if(_2fa.resize){_2fa.resize();}});}});});},"dojox/mobile/RoundRectCategory":function(){define(["dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_WidgetBase"],function(_2fb,win,_2fc,_2fd){return _2fb("dojox.mobile.RoundRectCategory",[_2fd,_2fc],{label:"",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("H2");this.domNode.className="mblRoundRectCategory";if(!this.label){this.label=this.domNode.innerHTML;}},_setLabelAttr:function(_2fe){this.label=_2fe;this.domNode.innerHTML=this._cv?this._cv(_2fe):_2fe;}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define(["dojo/_base/declare","./RoundRectCategory"],function(_2ff,_300){return _2ff("dojox.mobile.EdgeToEdgeCategory",_300,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojox/mobile/RoundRectList":function(){define(["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_301,_302,win,_303,_304,_305){return _302("dojox.mobile.RoundRectList",[_305,_304,_303],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("UL");this.domNode.className="mblRoundRectList";},resize:function(){_301.forEach(this.getChildren(),function(_306){if(_306.resize){_306.resize();}});},onCheckStateChanged:function(_307,_308){},_setStatefulAttr:function(_309){this.stateful=_309;_301.forEach(this.getChildren(),function(_30a){_30a.setArrow&&_30a.setArrow();});},deselectItem:function(item){item.deselect();},deselectAll:function(){_301.forEach(this.getChildren(),function(_30b){_30b.deselect&&_30b.deselect();});},selectItem:function(item){item.select();}});});},"dojox/mobile/EdgeToEdgeList":function(){define(["dojo/_base/declare","./RoundRectList"],function(_30c,_30d){return _30c("dojox.mobile.EdgeToEdgeList",_30d,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojox/mobile/ListItem":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/has","./common","./_ItemBase","./TransitionEvent"],function(_30e,_30f,_310,lang,_311,_312,has,_313,_314,_315){return _310("dojox.mobile.ListItem",_314,{rightText:"",rightIcon:"",rightIcon2:"",anchorLabel:false,noArrow:false,selected:false,checked:false,arrowClass:"mblDomButtonArrow",checkClass:"mblDomButtonCheck",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",btnClass:"",btnClass2:"",tag:"li",postMixInProperties:function(){if(this.btnClass){this.rightIcon=this.btnClass;}this._setBtnClassAttr=this._setRightIconAttr;this._setBtnClass2Attr=this._setRightIcon2Attr;},buildRendering:function(){this.domNode=this.srcNodeRef||_312.create(this.tag);this.inherited(arguments);this.domNode.className="mblListItem"+(this.selected?" mblItemSelected":"");var box=this.box=_312.create("DIV");box.className="mblListItemTextBox";if(this.anchorLabel){box.style.cursor="pointer";}var r=this.srcNodeRef;if(r&&!this.label){this.label="";for(var i=0,len=r.childNodes.length;i<len;i++){var n=r.firstChild;if(n.nodeType===3&&lang.trim(n.nodeValue)!==""){n.nodeValue=this._cv?this._cv(n.nodeValue):n.nodeValue;this.labelNode=_312.create("SPAN",{className:"mblListItemLabel"});this.labelNode.appendChild(n);n=this.labelNode;}box.appendChild(n);}}if(!this.labelNode){this.labelNode=_312.create("SPAN",{className:"mblListItemLabel"},box);}if(this.anchorLabel){box.style.display="inline";}var a=this.anchorNode=_312.create("A");a.className="mblListItemAnchor";this.domNode.appendChild(a);a.appendChild(box);},startup:function(){if(this._started){return;}this.inheritParams();var _316=this.getParent();if(this.moveTo||this.href||this.url||this.clickable||(_316&&_316.select)){this._onClickHandle=this.connect(this.anchorNode,"onclick","onClick");}this.setArrow();if(_311.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_311.add(this.domNode,"mblVariableHeight");setTimeout(lang.hitch(this,"layoutVariableHeight"));}this.set("icon",this.icon);if(!this.checked&&this.checkClass.indexOf(",")!==-1){this.set("checked",this.checked);}this.inherited(arguments);},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}},onClick:function(e){var a=e.currentTarget;var li=a.parentNode;if(_311.contains(li,"mblItemSelected")){return;}if(this.anchorLabel){for(var p=e.target;p.tagName!==this.tag.toUpperCase();p=p.parentNode){if(p.className=="mblListItemTextBox"){_311.add(p,"mblListItemTextBoxSelected");setTimeout(function(){_311.remove(p,"mblListItemTextBoxSelected");},has("android")?300:1000);this.onAnchorLabelClicked(e);return;}}}var _317=this.getParent();if(_317.select){if(_317.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_317.select==="multiple"){this.set("checked",!this.checked);}}}this.select();if(this.href&&this.hrefTarget){_313.openWindow(this.href,this.hrefTarget);return;}var _318;if(this.moveTo||this.href||this.url||this.scene){_318={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_318=this.transitionOptions;}}if(_318){this.setTransitionPos(e);return new _315(this.domNode,_318,e).dispatch();}},select:function(){var _319=this.getParent();if(_319.stateful){_319.deselectAll();}else{var _31a=this;setTimeout(function(){_31a.deselect();},has("android")?300:1000);}_311.add(this.domNode,"mblItemSelected");},deselect:function(){_311.remove(this.domNode,"mblItemSelected");},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.anchorNode.offsetHeight;if(h===this.anchorNodeHeight){return;}this.anchorNodeHeight=h;_30e.forEach([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.iconNode],function(n){if(n){var t=Math.round((h-n.offsetHeight)/2);n.style.marginTop=t+"px";}});},setArrow:function(){if(this.checked){return;}var c="";var _31b=this.getParent();if(this.moveTo||this.href||this.url||this.clickable){if(!this.noArrow&&!(_31b&&_31b.stateful)){c=this.arrowClass;}}if(c){this._setRightIconAttr(c);}},_setIconAttr:function(icon){if(!this.getParent()){return;}this.icon=icon;var a=this.anchorNode;if(!this.iconNode){if(icon){var ref=this.rightIconNode||this.rightIcon2Node||this.rightTextNode||this.box;this.iconNode=_312.create("DIV",{className:"mblListItemIcon"},ref,"before");}}else{_312.empty(this.iconNode);}if(icon&&icon!=="none"){_313.createIcon(icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_311.add(this.iconNode.firstChild,"mblListItemSpriteIcon");}_311.remove(a,"mblListItemAnchorNoIcon");}else{_311.add(a,"mblListItemAnchorNoIcon");}},_setCheckedAttr:function(_31c){var _31d=this.getParent();if(_31d&&_31d.select==="single"&&_31c){_30e.forEach(_31d.getChildren(),function(_31e){_31e.set("checked",false);});}this._setRightIconAttr(this.checkClass);var _31f=this.rightIconNode.childNodes;if(_31f.length===1){this.rightIconNode.style.display=_31c?"":"none";}else{_31f[0].style.display=_31c?"":"none";_31f[1].style.display=!_31c?"":"none";}_311.toggle(this.domNode,"mblListItemChecked",_31c);if(_31d&&this.checked!==_31c){_31d.onCheckStateChanged(this,_31c);}this.checked=_31c;},_setRightTextAttr:function(text){if(!this.rightTextNode){this.rightTextNode=_312.create("DIV",{className:"mblListItemRightText"},this.box,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){if(!this.rightIconNode){var ref=this.rightIcon2Node||this.rightTextNode||this.box;this.rightIconNode=_312.create("DIV",{className:"mblListItemRightIcon"},ref,"before");}else{_312.empty(this.rightIconNode);}this.rightIcon=icon;var arr=(icon||"").split(/,/);if(arr.length===1){_313.createIcon(icon,null,null,this.rightIconTitle,this.rightIconNode);}else{_313.createIcon(arr[0],null,null,this.rightIconTitle,this.rightIconNode);_313.createIcon(arr[1],null,null,this.rightIconTitle,this.rightIconNode);}},_setRightIcon2Attr:function(icon){if(!this.rightIcon2Node){var ref=this.rightTextNode||this.box;this.rightIcon2Node=_312.create("DIV",{className:"mblListItemRightIcon2"},ref,"before");}else{_312.empty(this.rightIcon2Node);}this.rightIcon2=icon;_313.createIcon(icon,null,null,this.rightIcon2Title,this.rightIcon2Node);},_setLabelAttr:function(text){this.label=text;this.labelNode.innerHTML=this._cv?this._cv(text):text;}});});},"dojox/mobile/_ItemBase":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/_base/declare","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./View"],function(_320,_321,_322,_323,_324,_325,_326,_327,View){return _322("dojox.mobile._ItemBase",[_326,_325,_324],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",transition:"",transitionDir:1,transitionOptions:null,callback:null,sync:true,label:"",toggle:false,_duration:800,inheritParams:function(){var _328=this.getParent();if(_328){if(!this.transition){this.transition=_328.transition;}if(this.icon&&_328.iconBase&&_328.iconBase.charAt(_328.iconBase.length-1)==="/"){this.icon=_328.iconBase+this.icon;}if(!this.icon){this.icon=_328.iconBase;}if(!this.iconPos){this.iconPos=_328.iconPos;}}},select:function(){},deselect:function(){},defaultClickAction:function(e){if(this.toggle){if(this.selected){this.deselect();}else{this.select();}}else{if(!this.selected){this.select();if(!this.selectOne){var _329=this;setTimeout(function(){_329.deselect();},this._duration);}var _32a;if(this.moveTo||this.href||this.url||this.scene){_32a={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_32a=this.transitionOptions;}}if(_32a){return new _327(this.domNode,_32a,e).dispatch();}}}},getParent:function(){var ref=this.srcNodeRef||this.domNode;return ref&&ref.parentNode?_323.getEnclosingWidget(ref.parentNode):null;},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||w instanceof View){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_32b,href,url,_32c){if(_321.isDebug){var _32d=arguments.callee._ach||(arguments.callee._ach={}),_32e=(arguments.callee.caller||"unknown caller").toString();if(!_32d[_32e]){_320.deprecated(this.declaredClass+"::transitionTo() is deprecated."+_32e,"","2.0");_32d[_32e]=true;}}new _327(this.domNode,{moveTo:_32b,href:href,url:url,scene:_32c,transition:this.transition,transitionDir:this.transitionDir}).dispatch();}});});},"dojox/mobile/Switch":function(){define(["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_32f,_330,_331,_332,win,_333,_334,_335,has){return _331("dojox.mobile.Switch",[_335,_334],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",_width:53,buildRendering:function(){this.domNode=win.doc.createElement("DIV");var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];this._swClass=(c||"").replace(/ .*/,"");this.domNode.className="mblSwitch";var _336=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\""+_336+"></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];},postCreate:function(){this.connect(this.domNode,"onclick","onClick");this.connect(this.domNode,has("touch")?"touchstart":"onmousedown","onTouchStart");this._initialValue=this.value;},_changeState:function(_337,anim){var on=(_337==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_333.add(this.domNode,"mblSwitchAnimation");}_333.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_333.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _338=this;setTimeout(function(){_338.left.style.display=on?"":"none";_338.right.style.display=!on?"":"none";_333.remove(_338.domNode,"mblSwitchAnimation");},anim?300:0);},startup:function(){if(this._swClass.indexOf("Round")!=-1){var r=Math.round(this.domNode.offsetHeight/2);this.createRoundMask(this._swClass,r,this.domNode.offsetWidth);}},createRoundMask:function(_339,r,w){if(!has("webkit")||!_339){return;}if(!this._createdMasks){this._createdMasks=[];}if(this._createdMasks[_339]){return;}this._createdMasks[_339]=1;var ctx=win.doc.getCSSCanvasContext("2d",_339+"Mask",w,100);ctx.fillStyle="#000000";ctx.beginPath();ctx.moveTo(r,0);ctx.arcTo(0,0,0,2*r,r);ctx.arcTo(0,2*r,r,2*r,r);ctx.lineTo(w-r,2*r);ctx.arcTo(w,2*r,w,r,r);ctx.arcTo(w,0,w-r,0,r);ctx.closePath();ctx.fill();},onClick:function(e){if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[];this._conn.push(_330.connect(this.inner,has("touch")?"touchmove":"onmousemove",this,"onTouchMove"));this._conn.push(_330.connect(this.inner,has("touch")?"touchend":"onmouseup",this,"onTouchEnd"));}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_332.stop(e);},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return false;}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){_32f.forEach(this._conn,_330.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _33a=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_33a,true);if(_33a!=this.value){this.value=this.input.value=_33a;this.onStateChanged(_33a);}},onStateChanged:function(_33b){},_setValueAttr:function(_33c){this._changeState(_33c,false);if(this.value!=_33c){this.onStateChanged(_33c);}this.value=this.input.value=_33c;},_setLeftLabelAttr:function(_33d){this.leftLabel=_33d;this.left.firstChild.innerHTML=this._cv?this._cv(_33d):_33d;},_setRightLabelAttr:function(_33e){this.rightLabel=_33e;this.right.firstChild.innerHTML=this._cv?this._cv(_33e):_33e;},reset:function(){this.set("value",this._initialValue);}});});},"dojox/mobile/ToolBarButton":function(){define(["dojo/_base/declare","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./common","./_ItemBase"],function(_33f,win,_340,_341,_342,_343,_344){return _33f("dojox.mobile.ToolBarButton",_344,{selected:false,btnClass:"",_defaultColor:"mblColorDefault",_selColor:"mblColorDefaultSel",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("div");this.inheritParams();_340.add(this.domNode,"mblToolBarButton mblArrowButtonText");var _345;if(this.selected){_345=this._selColor;}else{if(this.domNode.className.indexOf("mblColor")==-1){_345=this._defaultColor;}}_340.add(this.domNode,_345);if(!this.label){this.label=this.domNode.innerHTML;}if(this.icon&&this.icon!="none"){this.iconNode=_341.create("div",{className:"mblToolBarButtonIcon"},this.domNode);_343.createIcon(this.icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_340.add(this.iconNode.firstChild,"mblToolBarButtonSpriteIcon");}}else{if(_343.createDomButton(this.domNode)){_340.add(this.domNode,"mblToolBarButtonDomButton");}else{_340.add(this.domNode,"mblToolBarButtonText");}}this.connect(this.domNode,"onclick","onClick");},select:function(){_340.toggle(this.domNode,this._selColor,!arguments[0]);this.selected=!arguments[0];},deselect:function(){this.select(true);},onClick:function(e){this.setTransitionPos(e);this.defaultClickAction();},_setBtnClassAttr:function(_346){var node=this.domNode;if(node.className.match(/(mblDomButton\w+)/)){_340.remove(node,RegExp.$1);}_340.add(node,_346);if(_343.createDomButton(this.domNode)){_340.add(this.domNode,"mblToolBarButtonDomButton");}},_setLabelAttr:function(text){this.label=text;this.domNode.innerHTML=this._cv?this._cv(text):text;}});});}}});define("dojox/mobile",[".","dojo/_base/lang","dojox/mobile/_base"],function(_347,lang,base){lang.getObject("mobile",true,_347);return _347.mobile;});},"dojox/mobile/_base":function(){define("dojox/mobile/_base",["./common","./View","./Heading","./RoundRect","./RoundRectCategory","./EdgeToEdgeCategory","./RoundRectList","./EdgeToEdgeList","./ListItem","./Switch","./ToolBarButton","./ProgressIndicator"],function(_348,View,_349,_34a,_34b,_34c,_34d,_34e,_34f,_350,_351,_352){return _348;});},"dojox/mobile/common":function(){define(["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dojo/ready","dijit/registry","./sniff","./uacss"],function(dojo,_353,_354,_355,lang,win,_356,_357,_358,_359,_35a,has,_35b){var dm=lang.getObject("dojox.mobile",true);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();_356.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(_35c){var dim=dm.getScreenSize();var sz=Math.min(dim.w,dim.h);var from,to;if(sz>=dm.tabletSize&&(_35c||(!this._sz||this._sz<dm.tabletSize))){from="phone";to="tablet";}else{if(sz<dm.tabletSize&&(_35c||(!this._sz||this._sz>=dm.tabletSize))){from="tablet";to="phone";}}if(to){_356.replace(win.doc.documentElement,"dj_"+to,"dj_"+from);_355.publish("/dojox/mobile/screenSize/"+to,[dim]);}this._sz=sz;};dm.detectScreenSize();dm.setupIcon=function(_35d,_35e){if(_35d&&_35e){var arr=_353.map(_35e.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];_358.set(_35d,{clip:"rect("+t+"px "+r+"px "+b+"px "+l+"px)",top:(_35d.parentNode?_358.get(_35d,"top"):0)-t+"px",left:-l+"px"});}};dm.hideAddressBarWait=typeof (_354["mblHideAddressBarWait"])==="number"?_354["mblHideAddressBarWait"]:1500;dm.hide_1=function(_35f){scrollTo(0,1);var h=dm.getScreenSize().h+"px";if(has("android")){if(_35f){win.body().style.minHeight=h;}dm.resizeAll();}else{if(_35f||dm._h===h&&h!==win.body().style.minHeight){win.body().style.minHeight=h;dm.resizeAll();}}dm._h=h;};dm.hide_fs=function(){var t=win.body().style.minHeight;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";scrollTo(0,1);setTimeout(function(){dm.hide_1(1);dm._hiding=false;},1000);};dm.hideAddressBar=function(evt){if(dm.disableHideAddressBar||dm._hiding){return;}dm._hiding=true;dm._h=0;win.body().style.minHeight=(dm.getScreenSize().h*2)+"px";setTimeout(dm.hide_1,0);setTimeout(dm.hide_1,200);setTimeout(dm.hide_1,800);setTimeout(dm.hide_fs,dm.hideAddressBarWait);};dm.resizeAll=function(evt,root){if(dm.disableResizeAll){return;}_355.publish("/dojox/mobile/resizeAll",[evt,root]);dm.updateOrient();dm.detectScreenSize();var _360=function(w){var _361=w.getParent&&w.getParent();return !!((!_361||!_361.resize)&&w.resize);};var _362=function(w){_353.forEach(w.getChildren(),function(_363){if(_360(_363)){_363.resize();}_362(_363);});};if(root){if(root.resize){root.resize();}_362(root);}else{_353.forEach(_353.filter(_35a.toArray(),_360),function(w){w.resize();});}};dm.openWindow=function(url,_364){win.global.open(url,_364||"_blank");};dm.createDomButton=function(_365,_366,_367){if(!dm._domButtons){if(has("webkit")){var _368=function(_369,dic){var i,j;if(!_369){var dic={};var ss=dojo.doc.styleSheets;for(i=0;i<ss.length;i++){ss[i]&&_368(ss[i],dic);}return dic;}var _36a=_369.cssRules||[];for(i=0;i<_36a.length;i++){var rule=_36a[i];if(rule.href&&rule.styleSheet){_368(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;}}}}}}};dm._domButtons=_368();}else{dm._domButtons={};}}var s=_365.className;var node=_367||_365;if(s.match(/(mblDomButton\w+)/)&&s.indexOf("/")===-1){var _36b=RegExp.$1;var nDiv=4;if(s.match(/(mblDomButton\w+_(\d+))/)){nDiv=RegExp.$2-0;}else{if(dm._domButtons[_36b]!==undefined){nDiv=dm._domButtons[_36b];}}var _36c=null;if(has("bb")&&_354["mblBBBoxShadowWorkaround"]!==false){_36c={style:"-webkit-box-shadow:none"};}for(var i=0,p=node;i<nDiv;i++){p=p.firstChild||_357.create("DIV",_36c,p);}if(_367){setTimeout(function(){_356.remove(_365,_36b);},0);_356.add(_367,_36b);}}else{if(s.indexOf(".")!==-1){_357.create("IMG",{src:s},node);}else{return null;}}_356.add(node,"mblDomButton");if(_354["mblAndroidWorkaround"]!==false&&has("android")>=2.2){_358.set(node,"webkitTransform","translate3d(0,0,0)");}!!_366&&_358.set(node,_366);return node;};dm.createIcon=function(icon,_36d,node,_36e,_36f){if(icon&&icon.indexOf("mblDomButton")===0){if(node&&node.className.match(/(mblDomButton\w+)/)){_356.remove(node,RegExp.$1);}else{node=_357.create("DIV");}node.title=_36e;_356.add(node,icon);dm.createDomButton(node);}else{if(icon&&icon!=="none"){if(!node||node.nodeName!=="IMG"){node=_357.create("IMG",{alt:_36e});}node.src=(icon||"").replace("${theme}",dm.currentTheme);dm.setupIcon(node,_36d);if(_36f&&_36d){var arr=_36d.split(/[ ,]/);_358.set(_36f,{width:arr[2]+"px",height:arr[3]+"px"});}}}if(_36f){_36f.appendChild(node);}return node;};dm._iw=_354["mblIosWorkaround"]!==false&&has("iphone");if(dm._iw){dm._iwBgCover=_357.create("div");}if(_354.parseOnLoad){_359(90,function(){var _370=win.body().getElementsByTagName("*");var i,len,s;len=_370.length;for(i=0;i<len;i++){s=_370[i].getAttribute("dojoType");if(s){if(_370[i].parentNode.getAttribute("lazy")=="true"){_370[i].setAttribute("__dojoType",s);_370[i].removeAttribute("dojoType");}}}});}_359(function(){dm.detectScreenSize(true);if(_354["mblApplyPageStyles"]!==false){_356.add(win.doc.documentElement,"mobile");}if(has("chrome")){_356.add(win.doc.documentElement,"dj_chrome");}if(_354["mblAndroidWorkaround"]!==false&&has("android")>=2.2){if(_354["mblAndroidWorkaroundButtonStyle"]!==false){_357.create("style",{innerHTML:"BUTTON,INPUT[type='button'],INPUT[type='submit'],INPUT[type='reset'],INPUT[type='file']::-webkit-file-upload-button{-webkit-appearance:none;}"},win.doc.head,"first");}if(has("android")<3){_358.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");_355.connect(null,"onfocus",null,function(e){_358.set(win.doc.documentElement,"webkitTransform","");});_355.connect(null,"onblur",null,function(e){_358.set(win.doc.documentElement,"webkitTransform","translate3d(0,0,0)");});}else{if(_354["mblAndroid3Workaround"]!==false){_358.set(win.doc.documentElement,{webkitBackfaceVisibility:"hidden",webkitPerspective:8000});}}}var f=dm.resizeAll;if(_354["mblHideAddressBar"]!==false&&navigator.appVersion.indexOf("Mobile")!=-1||_354["mblForceHideAddressBar"]===true){dm.hideAddressBar();if(_354["mblAlwaysHideAddressBar"]===true){f=dm.hideAddressBar;}}_355.connect(null,(win.global.onorientationchange!==undefined&&!has("android"))?"onorientationchange":"onresize",null,f);var _371=win.body().getElementsByTagName("*");var i,len=_371.length,s;for(i=0;i<len;i++){s=_371[i].getAttribute("__dojoType");if(s){_371[i].setAttribute("dojoType",s);_371[i].removeAttribute("__dojoType");}}if(dojo.hash){var _372=function(root){if(!root){return [];}var arr=_35a.findWidgets(root);var _373=arr;for(var i=0;i<_373.length;i++){arr=arr.concat(_372(_373[i].containerNode));}return arr;};_355.subscribe("/dojo/hashchange",null,function(_374){var view=dm.currentView;if(!view){return;}var _375=dm._params;if(!_375){var _376=_374?_374:dm._defaultView.id;var _377=_372(view.domNode);var dir=1,_378="slide";for(i=0;i<_377.length;i++){var w=_377[i];if("#"+_376==w.moveTo){_378=w.transition;dir=(w instanceof dm.Heading)?-1:1;break;}}_375=[_376,dir,_378];}view.performTransition.apply(view,_375);dm._params=null;});}win.body().style.visibility="visible";});_35a.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return _35a.byId(id);}node=node._parentNode||node.parentNode;}return null;};return dm;});},"dojox/mobile/sniff":function(){define(["dojo/_base/window","dojo/_base/sniff"],function(win,has){var ua=navigator.userAgent;has.add("bb",ua.indexOf("BlackBerry")>=0&&parseFloat(ua.split("Version/")[1])||undefined,undefined,true);has.add("android",parseFloat(ua.split("Android ")[1])||undefined,undefined,true);if(ua.match(/(iPhone|iPod|iPad)/)){var p=RegExp.$1.replace(/P/,"p");var v=ua.match(/OS ([\d_]+)/)?RegExp.$1:"1";var os=parseFloat(v.replace(/_/,".").replace(/_/g,""));has.add(p,os,undefined,true);has.add("iphone",os,undefined,true);}if(has("webkit")){has.add("touch",(typeof win.doc.documentElement.ontouchstart!="undefined"&&navigator.appVersion.indexOf("Mobile")!=-1)||!!has("android"),undefined,true);}return has;});},"dojox/mobile/uacss":function(){define(["dojo/_base/kernel","dojo/_base/lang","dojo/_base/window","dojox/mobile/sniff"],function(dojo,lang,win,has){win.doc.documentElement.className+=lang.trim([has("bb")?"dj_bb":"",has("android")?"dj_android":"",has("iphone")?"dj_iphone":"",has("ipod")?"dj_ipod":"",has("ipad")?"dj_ipad":""].join(" ").replace(/ +/g," "));return dojo;});},"dojox/mobile/View":function(){define("dojox/mobile/View",["dojo/_base/kernel","dojo/_base/array","dojo/_base/config","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/sniff","dojo/_base/window","dojo/_base/Deferred","dojo/dom","dojo/dom-class","dojo/dom-geometry","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./ViewController","./transition"],function(dojo,_379,_37a,_37b,_37c,lang,has,win,_37d,dom,_37e,_37f,_380,_381,_382,_383,_384,_385,_386){var dm=lang.getObject("dojox.mobile",true);return _37c("dojox.mobile.View",[_384,_383,_382],{selected:false,keepScrollPos:true,constructor:function(_387,node){if(node){dom.byId(node).style.visibility="hidden";}this._aw=has("android")>=2.2&&has("android")<3;},buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className="mblView";this.connect(this.domNode,"webkitAnimationEnd","onAnimationEnd");this.connect(this.domNode,"webkitAnimationStart","onAnimationStart");if(!_37a["mblCSS3Transition"]){this.connect(this.domNode,"webkitTransitionEnd","onAnimationEnd");}var id=location.href.match(/#(\w+)([^\w=]|$)/)?RegExp.$1:null;this._visible=this.selected&&!id||this.id==id;if(this.selected){dm._defaultView=this;}},startup:function(){if(this._started){return;}var _388=[];var _389=this.domNode.parentNode.childNodes;var _38a=false;for(var i=0;i<_389.length;i++){var c=_389[i];if(c.nodeType===1&&_37e.contains(c,"mblView")){_388.push(c);_38a=_38a||_381.byNode(c)._visible;}}var _38b=this._visible;if(_388.length===1||(!_38a&&_388[0]===this.domNode)){_38b=true;}var _38c=this;setTimeout(function(){if(!_38b){_38c.domNode.style.display="none";}else{dm.currentView=_38c;_38c.onStartView();_37b.publish("/dojox/mobile/startView",[_38c]);}if(_38c.domNode.style.visibility!="visible"){_38c.domNode.style.visibility="visible";}var _38d=_38c.getParent&&_38c.getParent();if(!_38d||!_38d.resize){_38c.resize();}},has("ie")?100:0);this.inherited(arguments);},resize:function(){_379.forEach(this.getChildren(),function(_38e){if(_38e.resize){_38e.resize();}});},onStartView:function(){},onBeforeTransitionIn:function(_38f,dir,_390,_391,_392){},onAfterTransitionIn:function(_393,dir,_394,_395,_396){},onBeforeTransitionOut:function(_397,dir,_398,_399,_39a){},onAfterTransitionOut:function(_39b,dir,_39c,_39d,_39e){},_saveState:function(_39f,dir,_3a0,_3a1,_3a2){this._context=_3a1;this._method=_3a2;if(_3a0=="none"){_3a0=null;}this._moveTo=_39f;this._dir=dir;this._transition=_3a0;this._arguments=lang._toArray(arguments);this._args=[];if(_3a1||_3a2){for(var i=5;i<arguments.length;i++){this._args.push(arguments[i]);}}},_fixViewState:function(_3a3){var _3a4=this.domNode.parentNode.childNodes;for(var i=0;i<_3a4.length;i++){var n=_3a4[i];if(n.nodeType===1&&_37e.contains(n,"mblView")){n.className="mblView";}}_3a3.className="mblView";},convertToId:function(_3a5){if(typeof (_3a5)=="string"){_3a5.match(/^#?([^&?]+)/);return RegExp.$1;}return _3a5;},performTransition:function(_3a6,dir,_3a7,_3a8,_3a9){if(_3a6==="#"){return;}if(dojo.hash){if(typeof (_3a6)=="string"&&_3a6.charAt(0)=="#"&&!dm._params){dm._params=[];for(var i=0;i<arguments.length;i++){dm._params.push(arguments[i]);}dojo.hash(_3a6);return;}}this._saveState.apply(this,arguments);var _3aa;if(_3a6){_3aa=this.convertToId(_3a6);}else{if(!this._dummyNode){this._dummyNode=win.doc.createElement("DIV");win.body().appendChild(this._dummyNode);}_3aa=this._dummyNode;}var _3ab=this.domNode;var _3ac=_3ab.offsetTop;_3aa=this.toNode=dom.byId(_3aa);if(!_3aa){return;}_3aa.style.visibility=this._aw?"visible":"hidden";_3aa.style.display="";this._fixViewState(_3aa);var _3ad=_381.byNode(_3aa);if(_3ad){if(_37a["mblAlwaysResizeOnTransition"]||!_3ad._resized){dm.resizeAll(null,_3ad);_3ad._resized=true;}if(_3a7&&_3a7!="none"){_3ad.containerNode.style.paddingTop=_3ac+"px";}_3ad.movedFrom=_3ab.id;}this.onBeforeTransitionOut.apply(this,arguments);_37b.publish("/dojox/mobile/beforeTransitionOut",[this].concat(lang._toArray(arguments)));if(_3ad){if(this.keepScrollPos&&!this.getParent()){var _3ae=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;_3ab._scrollTop=_3ae;var _3af=(dir==1)?0:(_3aa._scrollTop||0);_3aa.style.top="0px";if(_3ae>1||_3af!==0){_3ab.style.top=_3af-_3ae+"px";if(_37a["mblHideAddressBar"]!==false){setTimeout(function(){win.global.scrollTo(0,(_3af||1));},0);}}}else{_3aa.style.top="0px";}_3ad.onBeforeTransitionIn.apply(_3ad,arguments);_37b.publish("/dojox/mobile/beforeTransitionIn",[_3ad].concat(lang._toArray(arguments)));}if(!this._aw){_3aa.style.display="none";_3aa.style.visibility="visible";}if(dm._iw&&dm.scrollable){var ss=dm.getScreenSize();win.body().appendChild(dm._iwBgCover);_380.set(dm._iwBgCover,{position:"absolute",top:"0px",left:"0px",height:(ss.h+1)+"px",width:ss.w+"px",backgroundColor:_380.get(win.body(),"background-color"),zIndex:-10000,display:""});_380.set(_3aa,{position:"absolute",zIndex:-10001,visibility:"visible",display:""});setTimeout(lang.hitch(this,function(){this._doTransition(_3ab,_3aa,_3a7,dir);}),80);}else{this._doTransition(_3ab,_3aa,_3a7,dir);}},_toCls:function(s){return "mbl"+s.charAt(0).toUpperCase()+s.substring(1);},_doTransition:function(_3b0,_3b1,_3b2,dir){var rev=(dir==-1)?" mblReverse":"";if(dm._iw&&dm.scrollable){_380.set(_3b1,{position:"",zIndex:""});win.body().removeChild(dm._iwBgCover);}else{if(!this._aw){_3b1.style.display="";}}if(!_3b2||_3b2=="none"){this.domNode.style.display="none";this.invokeCallback();}else{if(_37a["mblCSS3Transition"]){_37d.when(_386,lang.hitch(this,function(_3b3){var _3b4=_380.get(_3b1,"position");_380.set(_3b1,"position","absolute");_37d.when(_3b3(_3b0,_3b1,{transition:_3b2,reverse:(dir===-1)?true:false}),lang.hitch(this,function(){_380.set(_3b1,"position",_3b4);this.invokeCallback();}));}));}else{var s=this._toCls(_3b2);_37e.add(_3b0,s+" mblOut"+rev);_37e.add(_3b1,s+" mblIn"+rev);setTimeout(function(){_37e.add(_3b0,"mblTransition");_37e.add(_3b1,"mblTransition");},100);var _3b5="50% 50%";var _3b6="50% 50%";var _3b7,posX,posY;if(_3b2.indexOf("swirl")!=-1||_3b2.indexOf("zoom")!=-1){if(this.keepScrollPos&&!this.getParent()){_3b7=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_3b7=-_37f.position(_3b0,true).y;}posY=win.global.innerHeight/2+_3b7;_3b5="50% "+posY+"px";_3b6="50% "+posY+"px";}else{if(_3b2.indexOf("scale")!=-1){var _3b8=_37f.position(_3b0,true);posX=((this.clickedPosX!==undefined)?this.clickedPosX:win.global.innerWidth/2)-_3b8.x;if(this.keepScrollPos&&!this.getParent()){_3b7=win.body().scrollTop||win.doc.documentElement.scrollTop||win.global.pageYOffset||0;}else{_3b7=-_3b8.y;}posY=((this.clickedPosY!==undefined)?this.clickedPosY:win.global.innerHeight/2)+_3b7;_3b5=posX+"px "+posY+"px";_3b6=posX+"px "+posY+"px";}}_380.set(_3b0,{webkitTransformOrigin:_3b5});_380.set(_3b1,{webkitTransformOrigin:_3b6});}}dm.currentView=_381.byNode(_3b1);},onAnimationStart:function(e){},onAnimationEnd:function(e){var name=e.animationName||e.target.className;if(name.indexOf("Out")===-1&&name.indexOf("In")===-1&&name.indexOf("Shrink")===-1){return;}var _3b9=false;if(_37e.contains(this.domNode,"mblOut")){_3b9=true;this.domNode.style.display="none";_37e.remove(this.domNode,[this._toCls(this._transition),"mblIn","mblOut","mblReverse"]);}else{this.containerNode.style.paddingTop="";}_380.set(this.domNode,{webkitTransformOrigin:""});if(name.indexOf("Shrink")!==-1){var li=e.target;li.style.display="none";_37e.remove(li,"mblCloseContent");}if(_3b9){this.invokeCallback();}this.domNode&&(this.domNode.className="mblView");this.clickedPosX=this.clickedPosY=undefined;},invokeCallback:function(){this.onAfterTransitionOut.apply(this,this._arguments);_37b.publish("/dojox/mobile/afterTransitionOut",[this].concat(this._arguments));var _3ba=_381.byNode(this.toNode);if(_3ba){_3ba.onAfterTransitionIn.apply(_3ba,this._arguments);_37b.publish("/dojox/mobile/afterTransitionIn",[_3ba].concat(this._arguments));_3ba.movedFrom=undefined;}var c=this._context,m=this._method;if(!c&&!m){return;}if(!m){m=c;c=null;}c=c||win.global;if(typeof (m)=="string"){c[m].apply(c,this._args);}else{m.apply(c,this._args);}},getShowingView:function(){var _3bb=this.domNode.parentNode.childNodes;for(var i=0;i<_3bb.length;i++){var n=_3bb[i];if(n.nodeType===1&&_37e.contains(n,"mblView")&&_380.get(n,"display")!=="none"){return _381.byNode(n);}}return null;},show:function(){var view=this.getShowingView();if(view){view.domNode.style.display="none";}this.domNode.style.display="";dm.currentView=this;}});});},"dijit/_Contained":function(){define("dijit/_Contained",["dojo/_base/declare","./registry"],function(_3bc,_3bd){return _3bc("dijit._Contained",null,{_getSibling:function(_3be){var node=this.domNode;do{node=node[_3be+"Sibling"];}while(node&&node.nodeType!=1);return node&&_3bd.byNode(node);},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("dijit/_Container",["dojo/_base/array","dojo/_base/declare","dojo/dom-construct","./registry"],function(_3bf,_3c0,_3c1,_3c2){return _3c0("dijit._Container",null,{buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_3c3,_3c4){var _3c5=this.containerNode;if(_3c4&&typeof _3c4=="number"){var _3c6=this.getChildren();if(_3c6&&_3c6.length>=_3c4){_3c5=_3c6[_3c4-1].domNode;_3c4="after";}}_3c1.place(_3c3.domNode,_3c5,_3c4);if(this._started&&!_3c3._started){_3c3.startup();}},removeChild:function(_3c7){if(typeof _3c7=="number"){_3c7=this.getChildren()[_3c7];}if(_3c7){var node=_3c7.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},_getSiblingOfChild:function(_3c8,dir){var node=_3c8.domNode,_3c9=(dir>0?"nextSibling":"previousSibling");do{node=node[_3c9];}while(node&&(node.nodeType!=1||!_3c2.byNode(node)));return node&&_3c2.byNode(node);},getIndexOfChild:function(_3ca){return _3bf.indexOf(this.getChildren(),_3ca);}});});},"dojox/mobile/ViewController":function(){define("dojox/mobile/ViewController",["dojo/_base/kernel","dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom","dojo/dom-class","dojo/dom-construct","dojo/on","dojo/ready","dijit/registry","./ProgressIndicator","./TransitionEvent"],function(dojo,_3cb,_3cc,_3cd,lang,win,dom,_3ce,_3cf,on,_3d0,_3d1,_3d2,_3d3){var dm=lang.getObject("dojox.mobile",true);var _3d4=_3cd("dojox.mobile.ViewController",null,{constructor:function(){this.viewMap={};this.currentView=null;this.defaultView=null;_3d0(lang.hitch(this,function(){on(win.body(),"startTransition",lang.hitch(this,"onStartTransition"));}));},findCurrentView:function(_3d5,src){if(_3d5){var w=_3d1.byId(_3d5);if(w&&w.getShowingView){return w.getShowingView();}}if(dm.currentView){return dm.currentView;}w=src;while(true){w=w.getParent();if(!w){return null;}if(_3ce.contains(w.domNode,"mblView")){break;}}return w;},onStartTransition:function(evt){evt.preventDefault();if(!evt.detail||(evt.detail&&!evt.detail.moveTo&&!evt.detail.href&&!evt.detail.url&&!evt.detail.scene)){return;}var w=this.findCurrentView(evt.detail.moveTo,(evt.target&&evt.target.id)?_3d1.byId(evt.target.id):_3d1.byId(evt.target));if(!w||(evt.detail&&evt.detail.moveTo&&w===_3d1.byId(evt.detail.moveTo))){return;}if(evt.detail.href){var t=_3d1.byId(evt.target.id).hrefTarget;if(t){dm.openWindow(evt.detail.href,t);}else{w.performTransition(null,evt.detail.transitionDir,evt.detail.transition,evt.target,function(){location.href=evt.detail.href;});}return;}else{if(evt.detail.scene){_3cc.publish("/dojox/mobile/app/pushScene",[evt.detail.scene]);return;}}var _3d6=evt.detail.moveTo;if(evt.detail.url){var id;if(dm._viewMap&&dm._viewMap[evt.detail.url]){id=dm._viewMap[evt.detail.url];}else{var text=this._text;if(!text){if(_3d1.byId(evt.target.id).sync){dojo.xhrGet({url:evt.detail.url,sync:true,load:function(_3d7){text=lang.trim(_3d7);}});}else{var s="dojo/_base/xhr";require([s],lang.hitch(this,function(xhr){var prog=_3d2.getInstance();win.body().appendChild(prog.domNode);prog.start();var obj=xhr.get({url:evt.detail.url,handleAs:"text"});obj.addCallback(lang.hitch(this,function(_3d8,_3d9){prog.stop();if(_3d8){this._text=_3d8;new _3d3(evt.target,{transition:evt.detail.transition,transitionDir:evt.detail.transitionDir,moveTo:_3d6,href:evt.detail.href,url:evt.detail.url,scene:evt.detail.scene},evt.detail).dispatch();}}));obj.addErrback(function(_3da){prog.stop();});}));return;}}this._text=null;id=this._parse(text,_3d1.byId(evt.target.id).urlTarget);if(!dm._viewMap){dm._viewMap=[];}dm._viewMap[evt.detail.url]=id;}_3d6=id;w=this.findCurrentView(_3d6,_3d1.byId(evt.target.id))||w;}var src=_3d1.getEnclosingWidget(evt.target);var _3db,_3dc;if(src&&src.callback){_3db=src;_3dc=src.callback;}w.performTransition(_3d6,evt.detail.transitionDir,evt.detail.transition,_3db,_3dc);},_parse:function(text,id){var _3dd,view,i,j,len;var _3de=this.findCurrentView();var _3df=_3d1.byId(id)&&_3d1.byId(id).containerNode||dom.byId(id)||_3de&&_3de.domNode.parentNode||win.body();var _3e0=null;for(j=_3df.childNodes.length-1;j>=0;j--){var c=_3df.childNodes[j];if(c.nodeType===1){if(c.getAttribute("fixed")==="bottom"){_3e0=c;break;}}}if(text.charAt(0)==="<"){_3dd=_3cf.create("DIV",{innerHTML:text});for(i=0;i<_3dd.childNodes.length;i++){var n=_3dd.childNodes[i];if(n.nodeType===1){view=n;break;}}if(!view){return;}view.style.visibility="hidden";_3df.insertBefore(_3dd,_3e0);var ws=dojo.parser.parse(_3dd);_3cb.forEach(ws,function(w){if(w&&!w._started&&w.startup){w.startup();}});for(i=0,len=_3dd.childNodes.length;i<len;i++){_3df.insertBefore(_3dd.firstChild,_3e0);}_3df.removeChild(_3dd);_3d1.byNode(view)._visible=true;}else{if(text.charAt(0)==="{"){_3dd=_3cf.create("DIV");_3df.insertBefore(_3dd,_3e0);this._ws=[];view=this._instantiate(eval("("+text+")"),_3dd);for(i=0;i<this._ws.length;i++){var w=this._ws[i];w.startup&&!w._started&&(!w.getParent||!w.getParent())&&w.startup();}this._ws=null;}}view.style.display="none";view.style.visibility="visible";return dojo.hash?"#"+view.id:view.id;},_instantiate:function(obj,node,_3e1){var _3e2;for(var key in obj){if(key.charAt(0)=="@"){continue;}var cls=lang.getObject(key);if(!cls){continue;}var _3e3={};var _3e4=cls.prototype;var objs=lang.isArray(obj[key])?obj[key]:[obj[key]];for(var i=0;i<objs.length;i++){for(var prop in objs[i]){if(prop.charAt(0)=="@"){var val=objs[i][prop];prop=prop.substring(1);if(typeof _3e4[prop]=="string"){_3e3[prop]=val;}else{if(typeof _3e4[prop]=="number"){_3e3[prop]=val-0;}else{if(typeof _3e4[prop]=="boolean"){_3e3[prop]=(val!="false");}else{if(typeof _3e4[prop]=="object"){_3e3[prop]=eval("("+val+")");}}}}}}_3e2=new cls(_3e3,node);if(node){_3e2._visible=true;this._ws.push(_3e2);}if(_3e1&&_3e1.addChild){_3e1.addChild(_3e2);}this._instantiate(objs[i],null,_3e2);}}return _3e2&&_3e2.domNode;}});new _3d4();return _3d4;});},"dojox/mobile/ProgressIndicator":function(){define("dojox/mobile/ProgressIndicator",["dojo/_base/config","dojo/_base/declare","dojo/dom-construct","dojo/dom-style","dojo/has"],function(_3e5,_3e6,_3e7,_3e8,has){var cls=_3e6("dojox.mobile.ProgressIndicator",null,{interval:100,colors:["#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#C0C0C0","#B8B9B8","#AEAFAE","#A4A5A4","#9A9A9A","#8E8E8E","#838383"],constructor:function(){this._bars=[];this.domNode=_3e7.create("DIV");this.domNode.className="mblProgContainer";if(_3e5["mblAndroidWorkaround"]!==false&&has("android")>=2.2&&has("android")<3){_3e8.set(this.domNode,"webkitTransform","translate3d(0,0,0)");}this.spinnerNode=_3e7.create("DIV",null,this.domNode);for(var i=0;i<this.colors.length;i++){var div=_3e7.create("DIV",{className:"mblProg mblProg"+i},this.spinnerNode);this._bars.push(div);}},start:function(){if(this.imageNode){var img=this.imageNode;var l=Math.round((this.domNode.offsetWidth-img.offsetWidth)/2);var t=Math.round((this.domNode.offsetHeight-img.offsetHeight)/2);img.style.margin=t+"px "+l+"px";return;}var cntr=0;var _3e9=this;var n=this.colors.length;this.timer=setInterval(function(){cntr--;cntr=cntr<0?n-1:cntr;var c=_3e9.colors;for(var i=0;i<n;i++){var idx=(cntr+i)%n;_3e9._bars[i].style.backgroundColor=c[idx];}},this.interval);},stop:function(){if(this.timer){clearInterval(this.timer);}this.timer=null;if(this.domNode.parentNode){this.domNode.parentNode.removeChild(this.domNode);}},setImage:function(file){if(file){this.imageNode=_3e7.create("IMG",{src:file},this.domNode);this.spinnerNode.style.display="none";}else{if(this.imageNode){this.domNode.removeChild(this.imageNode);this.imageNode=null;}this.spinnerNode.style.display="";}}});cls._instance=null;cls.getInstance=function(){if(!cls._instance){cls._instance=new cls();}return cls._instance;};return cls;});},"dojox/mobile/TransitionEvent":function(){define("dojox/mobile/TransitionEvent",["dojo/_base/declare","dojo/_base/Deferred","dojo/_base/lang","dojo/on","./transition"],function(_3ea,_3eb,lang,on,_3ec){return _3ea("dojox.mobile.TransitionEvent",null,{constructor:function(_3ed,_3ee,_3ef){this.transitionOptions=_3ee;this.target=_3ed;this.triggerEvent=_3ef||null;},dispatch:function(){var opts={bubbles:true,cancelable:true,detail:this.transitionOptions,triggerEvent:this.triggerEvent};var evt=on.emit(this.target,"startTransition",opts);if(evt){_3eb.when(_3ec,lang.hitch(this,function(_3f0){_3eb.when(_3f0.call(this,evt),lang.hitch(this,function(_3f1){this.endTransition(_3f1);}));}));}},endTransition:function(_3f2){on.emit(this.target,"endTransition",{detail:_3f2.transitionOptions});}});});},"dojox/mobile/transition":function(){define(["dojo/_base/Deferred","dojo/_base/config"],function(_3f3,_3f4){if(_3f4["mblCSS3Transition"]){var _3f5=new _3f3();require([_3f4["mblCSS3Transition"]],function(_3f6){_3f5.resolve(_3f6);});return _3f5;}return null;});},"dojox/mobile/Heading":function(){define("dojox/mobile/Heading",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./View"],function(_3f7,_3f8,_3f9,lang,win,_3fa,_3fb,_3fc,_3fd,_3fe,_3ff,_400,View){var dm=lang.getObject("dojox.mobile",true);return _3f9("dojox.mobile.Heading",[_400,_3ff,_3fe],{back:"",href:"",moveTo:"",transition:"slide",label:"",iconBase:"",backProp:{className:"mblArrowButton"},tag:"H1",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement(this.tag);this.domNode.className="mblHeading";if(!this.label){_3f7.forEach(this.domNode.childNodes,function(n){if(n.nodeType==3){var v=lang.trim(n.nodeValue);if(v){this.label=v;this.labelNode=_3fb.create("SPAN",{innerHTML:v},n,"replace");}}},this);}if(!this.labelNode){this.labelNode=_3fb.create("SPAN",null,this.domNode);}this.labelNode.className="mblHeadingSpanTitle";this.labelDivNode=_3fb.create("DIV",{className:"mblHeadingDivTitle",innerHTML:this.labelNode.innerHTML},this.domNode);},startup:function(){if(this._started){return;}var _401=this.getParent&&this.getParent();if(!_401||!_401.resize){var _402=this;setTimeout(function(){_402.resize();},0);}this.inherited(arguments);},resize:function(){if(this._btn){this._btn.style.width=this._body.offsetWidth+this._head.offsetWidth+"px";}if(this.labelNode){var _403,_404;var _405=this.containerNode.childNodes;for(var i=_405.length-1;i>=0;i--){var c=_405[i];if(c.nodeType===1){if(!_404&&_3fa.contains(c,"mblToolBarButton")&&_3fc.get(c,"float")==="right"){_404=c;}if(!_403&&(_3fa.contains(c,"mblToolBarButton")&&_3fc.get(c,"float")==="left"||c===this._btn)){_403=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=_404?bw-_404.offsetLeft+5:0;var lw=_403?_403.offsetLeft+_403.offsetWidth+5:0;var tw=this.labelNodeLen||0;_3fa[bw-Math.max(rw,lw)*2>tw?"add":"remove"](this.domNode,"mblHeadingCenterTitle");}_3f7.forEach(this.getChildren(),function(_406){if(_406.resize){_406.resize();}});},_setBackAttr:function(back){if(!back){_3fb.destroy(this._btn);this._btn=null;this.back="";}else{if(!this._btn){var btn=_3fb.create("DIV",this.backProp,this.domNode,"first");var head=_3fb.create("DIV",{className:"mblArrowButtonHead"},btn);var body=_3fb.create("DIV",{className:"mblArrowButtonBody mblArrowButtonText"},btn);this._body=body;this._head=head;this._btn=btn;this.backBtnNode=btn;this.connect(body,"onclick","onClick");}this.back=back;this._body.innerHTML=this._cv?this._cv(this.back):this.back;}this.resize();},_setLabelAttr:function(_407){this.label=_407;this.labelNode.innerHTML=this.labelDivNode.innerHTML=this._cv?this._cv(_407):_407;},findCurrentView:function(){var w=this;while(true){w=w.getParent();if(!w){return null;}if(w instanceof View){break;}}return w;},onClick:function(e){var h1=this.domNode;_3fa.add(h1,"mblArrowButtonSelected");setTimeout(function(){_3fa.remove(h1,"mblArrowButtonSelected");},1000);if(this.back&&!this.moveTo&&!this.href&&history){history.back();return;}var view=this.findCurrentView();if(view){view.clickedPosX=e.clientX;view.clickedPosY=e.clientY;}this.goTo(this.moveTo,this.href);},goTo:function(_408,href){var view=this.findCurrentView();if(!view){return;}if(href){view.performTransition(null,-1,this.transition,this,function(){location.href=href;});}else{if(dm.app&&dm.app.STAGE_CONTROLLER_ACTIVE){_3f8.publish("/dojox/mobile/app/goback");}else{var node=_3fd.byId(view.convertToId(_408));if(node){var _409=node.getParent();while(view){var _40a=view.getParent();if(_409===_40a){break;}view=_40a;}}if(view){view.performTransition(_408,-1,this.transition);}}}}});});},"dojox/mobile/RoundRect":function(){define("dojox/mobile/RoundRect",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_40b,_40c,win,_40d,_40e,_40f){return _40c("dojox.mobile.RoundRect",[_40f,_40e,_40d],{shadow:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("DIV");this.domNode.className=this.shadow?"mblRoundRect mblShadow":"mblRoundRect";},resize:function(){_40b.forEach(this.getChildren(),function(_410){if(_410.resize){_410.resize();}});}});});},"dojox/mobile/RoundRectCategory":function(){define("dojox/mobile/RoundRectCategory",["dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_WidgetBase"],function(_411,win,_412,_413){return _411("dojox.mobile.RoundRectCategory",[_413,_412],{label:"",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("H2");this.domNode.className="mblRoundRectCategory";if(!this.label){this.label=this.domNode.innerHTML;}},_setLabelAttr:function(_414){this.label=_414;this.domNode.innerHTML=this._cv?this._cv(_414):_414;}});});},"dojox/mobile/EdgeToEdgeCategory":function(){define("dojox/mobile/EdgeToEdgeCategory",["dojo/_base/declare","./RoundRectCategory"],function(_415,_416){return _415("dojox.mobile.EdgeToEdgeCategory",_416,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeCategory";}});});},"dojox/mobile/RoundRectList":function(){define("dojox/mobile/RoundRectList",["dojo/_base/array","dojo/_base/declare","dojo/_base/window","dijit/_Contained","dijit/_Container","dijit/_WidgetBase"],function(_417,_418,win,_419,_41a,_41b){return _418("dojox.mobile.RoundRectList",[_41b,_41a,_419],{transition:"slide",iconBase:"",iconPos:"",select:"",stateful:false,buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("UL");this.domNode.className="mblRoundRectList";},resize:function(){_417.forEach(this.getChildren(),function(_41c){if(_41c.resize){_41c.resize();}});},onCheckStateChanged:function(_41d,_41e){},_setStatefulAttr:function(_41f){this.stateful=_41f;_417.forEach(this.getChildren(),function(_420){_420.setArrow&&_420.setArrow();});},deselectItem:function(item){item.deselect();},deselectAll:function(){_417.forEach(this.getChildren(),function(_421){_421.deselect&&_421.deselect();});},selectItem:function(item){item.select();}});});},"dojox/mobile/EdgeToEdgeList":function(){define("dojox/mobile/EdgeToEdgeList",["dojo/_base/declare","./RoundRectList"],function(_422,_423){return _422("dojox.mobile.EdgeToEdgeList",_423,{buildRendering:function(){this.inherited(arguments);this.domNode.className="mblEdgeToEdgeList";}});});},"dojox/mobile/ListItem":function(){define("dojox/mobile/ListItem",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/lang","dojo/dom-class","dojo/dom-construct","dojo/has","./common","./_ItemBase","./TransitionEvent"],function(_424,_425,_426,lang,_427,_428,has,_429,_42a,_42b){return _426("dojox.mobile.ListItem",_42a,{rightText:"",rightIcon:"",rightIcon2:"",anchorLabel:false,noArrow:false,selected:false,checked:false,arrowClass:"mblDomButtonArrow",checkClass:"mblDomButtonCheck",variableHeight:false,rightIconTitle:"",rightIcon2Title:"",btnClass:"",btnClass2:"",tag:"li",postMixInProperties:function(){if(this.btnClass){this.rightIcon=this.btnClass;}this._setBtnClassAttr=this._setRightIconAttr;this._setBtnClass2Attr=this._setRightIcon2Attr;},buildRendering:function(){this.domNode=this.srcNodeRef||_428.create(this.tag);this.inherited(arguments);this.domNode.className="mblListItem"+(this.selected?" mblItemSelected":"");var box=this.box=_428.create("DIV");box.className="mblListItemTextBox";if(this.anchorLabel){box.style.cursor="pointer";}var r=this.srcNodeRef;if(r&&!this.label){this.label="";for(var i=0,len=r.childNodes.length;i<len;i++){var n=r.firstChild;if(n.nodeType===3&&lang.trim(n.nodeValue)!==""){n.nodeValue=this._cv?this._cv(n.nodeValue):n.nodeValue;this.labelNode=_428.create("SPAN",{className:"mblListItemLabel"});this.labelNode.appendChild(n);n=this.labelNode;}box.appendChild(n);}}if(!this.labelNode){this.labelNode=_428.create("SPAN",{className:"mblListItemLabel"},box);}if(this.anchorLabel){box.style.display="inline";}var a=this.anchorNode=_428.create("A");a.className="mblListItemAnchor";this.domNode.appendChild(a);a.appendChild(box);},startup:function(){if(this._started){return;}this.inheritParams();var _42c=this.getParent();if(this.moveTo||this.href||this.url||this.clickable||(_42c&&_42c.select)){this._onClickHandle=this.connect(this.anchorNode,"onclick","onClick");}this.setArrow();if(_427.contains(this.domNode,"mblVariableHeight")){this.variableHeight=true;}if(this.variableHeight){_427.add(this.domNode,"mblVariableHeight");setTimeout(lang.hitch(this,"layoutVariableHeight"));}this.set("icon",this.icon);if(!this.checked&&this.checkClass.indexOf(",")!==-1){this.set("checked",this.checked);}this.inherited(arguments);},resize:function(){if(this.variableHeight){this.layoutVariableHeight();}},onClick:function(e){var a=e.currentTarget;var li=a.parentNode;if(_427.contains(li,"mblItemSelected")){return;}if(this.anchorLabel){for(var p=e.target;p.tagName!==this.tag.toUpperCase();p=p.parentNode){if(p.className=="mblListItemTextBox"){_427.add(p,"mblListItemTextBoxSelected");setTimeout(function(){_427.remove(p,"mblListItemTextBoxSelected");},has("android")?300:1000);this.onAnchorLabelClicked(e);return;}}}var _42d=this.getParent();if(_42d.select){if(_42d.select==="single"){if(!this.checked){this.set("checked",true);}}else{if(_42d.select==="multiple"){this.set("checked",!this.checked);}}}this.select();if(this.href&&this.hrefTarget){_429.openWindow(this.href,this.hrefTarget);return;}var _42e;if(this.moveTo||this.href||this.url||this.scene){_42e={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_42e=this.transitionOptions;}}if(_42e){this.setTransitionPos(e);return new _42b(this.domNode,_42e,e).dispatch();}},select:function(){var _42f=this.getParent();if(_42f.stateful){_42f.deselectAll();}else{var _430=this;setTimeout(function(){_430.deselect();},has("android")?300:1000);}_427.add(this.domNode,"mblItemSelected");},deselect:function(){_427.remove(this.domNode,"mblItemSelected");},onAnchorLabelClicked:function(e){},layoutVariableHeight:function(){var h=this.anchorNode.offsetHeight;if(h===this.anchorNodeHeight){return;}this.anchorNodeHeight=h;_424.forEach([this.rightTextNode,this.rightIcon2Node,this.rightIconNode,this.iconNode],function(n){if(n){var t=Math.round((h-n.offsetHeight)/2);n.style.marginTop=t+"px";}});},setArrow:function(){if(this.checked){return;}var c="";var _431=this.getParent();if(this.moveTo||this.href||this.url||this.clickable){if(!this.noArrow&&!(_431&&_431.stateful)){c=this.arrowClass;}}if(c){this._setRightIconAttr(c);}},_setIconAttr:function(icon){if(!this.getParent()){return;}this.icon=icon;var a=this.anchorNode;if(!this.iconNode){if(icon){var ref=this.rightIconNode||this.rightIcon2Node||this.rightTextNode||this.box;this.iconNode=_428.create("DIV",{className:"mblListItemIcon"},ref,"before");}}else{_428.empty(this.iconNode);}if(icon&&icon!=="none"){_429.createIcon(icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_427.add(this.iconNode.firstChild,"mblListItemSpriteIcon");}_427.remove(a,"mblListItemAnchorNoIcon");}else{_427.add(a,"mblListItemAnchorNoIcon");}},_setCheckedAttr:function(_432){var _433=this.getParent();if(_433&&_433.select==="single"&&_432){_424.forEach(_433.getChildren(),function(_434){_434.set("checked",false);});}this._setRightIconAttr(this.checkClass);var _435=this.rightIconNode.childNodes;if(_435.length===1){this.rightIconNode.style.display=_432?"":"none";}else{_435[0].style.display=_432?"":"none";_435[1].style.display=!_432?"":"none";}_427.toggle(this.domNode,"mblListItemChecked",_432);if(_433&&this.checked!==_432){_433.onCheckStateChanged(this,_432);}this.checked=_432;},_setRightTextAttr:function(text){if(!this.rightTextNode){this.rightTextNode=_428.create("DIV",{className:"mblListItemRightText"},this.box,"before");}this.rightText=text;this.rightTextNode.innerHTML=this._cv?this._cv(text):text;},_setRightIconAttr:function(icon){if(!this.rightIconNode){var ref=this.rightIcon2Node||this.rightTextNode||this.box;this.rightIconNode=_428.create("DIV",{className:"mblListItemRightIcon"},ref,"before");}else{_428.empty(this.rightIconNode);}this.rightIcon=icon;var arr=(icon||"").split(/,/);if(arr.length===1){_429.createIcon(icon,null,null,this.rightIconTitle,this.rightIconNode);}else{_429.createIcon(arr[0],null,null,this.rightIconTitle,this.rightIconNode);_429.createIcon(arr[1],null,null,this.rightIconTitle,this.rightIconNode);}},_setRightIcon2Attr:function(icon){if(!this.rightIcon2Node){var ref=this.rightTextNode||this.box;this.rightIcon2Node=_428.create("DIV",{className:"mblListItemRightIcon2"},ref,"before");}else{_428.empty(this.rightIcon2Node);}this.rightIcon2=icon;_429.createIcon(icon,null,null,this.rightIcon2Title,this.rightIcon2Node);},_setLabelAttr:function(text){this.label=text;this.labelNode.innerHTML=this._cv?this._cv(text):text;}});});},"dojox/mobile/_ItemBase":function(){define("dojox/mobile/_ItemBase",["dojo/_base/kernel","dojo/_base/config","dojo/_base/declare","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./View"],function(_436,_437,_438,_439,_43a,_43b,_43c,_43d,View){return _438("dojox.mobile._ItemBase",[_43c,_43b,_43a],{icon:"",iconPos:"",alt:"",href:"",hrefTarget:"",moveTo:"",scene:"",clickable:false,url:"",urlTarget:"",transition:"",transitionDir:1,transitionOptions:null,callback:null,sync:true,label:"",toggle:false,_duration:800,inheritParams:function(){var _43e=this.getParent();if(_43e){if(!this.transition){this.transition=_43e.transition;}if(this.icon&&_43e.iconBase&&_43e.iconBase.charAt(_43e.iconBase.length-1)==="/"){this.icon=_43e.iconBase+this.icon;}if(!this.icon){this.icon=_43e.iconBase;}if(!this.iconPos){this.iconPos=_43e.iconPos;}}},select:function(){},deselect:function(){},defaultClickAction:function(e){if(this.toggle){if(this.selected){this.deselect();}else{this.select();}}else{if(!this.selected){this.select();if(!this.selectOne){var _43f=this;setTimeout(function(){_43f.deselect();},this._duration);}var _440;if(this.moveTo||this.href||this.url||this.scene){_440={moveTo:this.moveTo,href:this.href,url:this.url,scene:this.scene,transition:this.transition,transitionDir:this.transitionDir};}else{if(this.transitionOptions){_440=this.transitionOptions;}}if(_440){return new _43d(this.domNode,_440,e).dispatch();}}}},getParent:function(){var ref=this.srcNodeRef||this.domNode;return ref&&ref.parentNode?_439.getEnclosingWidget(ref.parentNode):null;},setTransitionPos:function(e){var w=this;while(true){w=w.getParent();if(!w||w instanceof View){break;}}if(w){w.clickedPosX=e.clientX;w.clickedPosY=e.clientY;}},transitionTo:function(_441,href,url,_442){if(_437.isDebug){var _443=arguments.callee._ach||(arguments.callee._ach={}),_444=(arguments.callee.caller||"unknown caller").toString();if(!_443[_444]){_436.deprecated(this.declaredClass+"::transitionTo() is deprecated."+_444,"","2.0");_443[_444]=true;}}new _43d(this.domNode,{moveTo:_441,href:href,url:url,scene:_442,transition:this.transition,transitionDir:this.transitionDir}).dispatch();}});});},"dojox/mobile/Switch":function(){define("dojox/mobile/Switch",["dojo/_base/array","dojo/_base/connect","dojo/_base/declare","dojo/_base/event","dojo/_base/window","dojo/dom-class","dijit/_Contained","dijit/_WidgetBase","./sniff"],function(_445,_446,_447,_448,win,_449,_44a,_44b,has){return _447("dojox.mobile.Switch",[_44b,_44a],{value:"on",name:"",leftLabel:"ON",rightLabel:"OFF",_width:53,buildRendering:function(){this.domNode=win.doc.createElement("DIV");var c=(this.srcNodeRef&&this.srcNodeRef.className)||this.className||this["class"];this._swClass=(c||"").replace(/ .*/,"");this.domNode.className="mblSwitch";var _44c=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\""+_44c+"></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];},postCreate:function(){this.connect(this.domNode,"onclick","onClick");this.connect(this.domNode,has("touch")?"touchstart":"onmousedown","onTouchStart");this._initialValue=this.value;},_changeState:function(_44d,anim){var on=(_44d==="on");this.left.style.display="";this.right.style.display="";this.inner.style.left="";if(anim){_449.add(this.domNode,"mblSwitchAnimation");}_449.remove(this.domNode,on?"mblSwitchOff":"mblSwitchOn");_449.add(this.domNode,on?"mblSwitchOn":"mblSwitchOff");var _44e=this;setTimeout(function(){_44e.left.style.display=on?"":"none";_44e.right.style.display=!on?"":"none";_449.remove(_44e.domNode,"mblSwitchAnimation");},anim?300:0);},startup:function(){if(this._swClass.indexOf("Round")!=-1){var r=Math.round(this.domNode.offsetHeight/2);this.createRoundMask(this._swClass,r,this.domNode.offsetWidth);}},createRoundMask:function(_44f,r,w){if(!has("webkit")||!_44f){return;}if(!this._createdMasks){this._createdMasks=[];}if(this._createdMasks[_44f]){return;}this._createdMasks[_44f]=1;var ctx=win.doc.getCSSCanvasContext("2d",_44f+"Mask",w,100);ctx.fillStyle="#000000";ctx.beginPath();ctx.moveTo(r,0);ctx.arcTo(0,0,0,2*r,r);ctx.arcTo(0,2*r,r,2*r,r);ctx.lineTo(w-r,2*r);ctx.arcTo(w,2*r,w,r,r);ctx.arcTo(w,0,w-r,0,r);ctx.closePath();ctx.fill();},onClick:function(e){if(this._moved){return;}this.value=this.input.value=(this.value=="on")?"off":"on";this._changeState(this.value,true);this.onStateChanged(this.value);},onTouchStart:function(e){this._moved=false;this.innerStartX=this.inner.offsetLeft;if(!this._conn){this._conn=[];this._conn.push(_446.connect(this.inner,has("touch")?"touchmove":"onmousemove",this,"onTouchMove"));this._conn.push(_446.connect(this.inner,has("touch")?"touchend":"onmouseup",this,"onTouchEnd"));}this.touchStartX=e.touches?e.touches[0].pageX:e.clientX;this.left.style.display="";this.right.style.display="";_448.stop(e);},onTouchMove:function(e){e.preventDefault();var dx;if(e.targetTouches){if(e.targetTouches.length!=1){return false;}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){_445.forEach(this._conn,_446.disconnect);this._conn=null;if(this.innerStartX==this.inner.offsetLeft){if(has("touch")){var ev=win.doc.createEvent("MouseEvents");ev.initEvent("click",true,true);this.inner.dispatchEvent(ev);}return;}var _450=(this.inner.offsetLeft<-(this._width/2))?"off":"on";this._changeState(_450,true);if(_450!=this.value){this.value=this.input.value=_450;this.onStateChanged(_450);}},onStateChanged:function(_451){},_setValueAttr:function(_452){this._changeState(_452,false);if(this.value!=_452){this.onStateChanged(_452);}this.value=this.input.value=_452;},_setLeftLabelAttr:function(_453){this.leftLabel=_453;this.left.firstChild.innerHTML=this._cv?this._cv(_453):_453;},_setRightLabelAttr:function(_454){this.rightLabel=_454;this.right.firstChild.innerHTML=this._cv?this._cv(_454):_454;},reset:function(){this.set("value",this._initialValue);}});});},"dojox/mobile/ToolBarButton":function(){define("dojox/mobile/ToolBarButton",["dojo/_base/declare","dojo/_base/window","dojo/dom-class","dojo/dom-construct","dojo/dom-style","./common","./_ItemBase"],function(_455,win,_456,_457,_458,_459,_45a){return _455("dojox.mobile.ToolBarButton",_45a,{selected:false,btnClass:"",_defaultColor:"mblColorDefault",_selColor:"mblColorDefaultSel",buildRendering:function(){this.domNode=this.containerNode=this.srcNodeRef||win.doc.createElement("div");this.inheritParams();_456.add(this.domNode,"mblToolBarButton mblArrowButtonText");var _45b;if(this.selected){_45b=this._selColor;}else{if(this.domNode.className.indexOf("mblColor")==-1){_45b=this._defaultColor;}}_456.add(this.domNode,_45b);if(!this.label){this.label=this.domNode.innerHTML;}if(this.icon&&this.icon!="none"){this.iconNode=_457.create("div",{className:"mblToolBarButtonIcon"},this.domNode);_459.createIcon(this.icon,this.iconPos,null,this.alt,this.iconNode);if(this.iconPos){_456.add(this.iconNode.firstChild,"mblToolBarButtonSpriteIcon");}}else{if(_459.createDomButton(this.domNode)){_456.add(this.domNode,"mblToolBarButtonDomButton");}else{_456.add(this.domNode,"mblToolBarButtonText");}}this.connect(this.domNode,"onclick","onClick");},select:function(){_456.toggle(this.domNode,this._selColor,!arguments[0]);this.selected=!arguments[0];},deselect:function(){this.select(true);},onClick:function(e){this.setTransitionPos(e);this.defaultClickAction();},_setBtnClassAttr:function(_45c){var node=this.domNode;if(node.className.match(/(mblDomButton\w+)/)){_456.remove(node,RegExp.$1);}_456.add(node,_45c);if(_459.createDomButton(this.domNode)){_456.add(this.domNode,"mblToolBarButtonDomButton");}},_setLabelAttr:function(text){this.label=text;this.domNode.innerHTML=this._cv?this._cv(text):text;}});});},"dojox/mobile/parser":function(){define(["dojo/_base/kernel","dojo/_base/config","dojo/_base/lang","dojo/_base/window","dojo/ready"],function(dojo,_45d,lang,win,_45e){var dm=lang.getObject("dojox.mobile",true);var _45f=new function(){this.instantiate=function(_460,_461,args){_461=_461||{};args=args||{};var i,ws=[];if(_460){for(i=0;i<_460.length;i++){var n=_460[i];var cls=lang.getObject(n.getAttribute("dojoType")||n.getAttribute("data-dojo-type"));var _462=cls.prototype;var _463={},prop,v,t;lang.mixin(_463,eval("({"+(n.getAttribute("data-dojo-props")||"")+"})"));lang.mixin(_463,args.defaults);lang.mixin(_463,_461);for(prop in _462){v=n.getAttributeNode(prop);v=v&&v.nodeValue;t=typeof _462[prop];if(!v&&(t!=="boolean"||v!=="")){continue;}if(t==="string"){_463[prop]=v;}else{if(t==="number"){_463[prop]=v-0;}else{if(t==="boolean"){_463[prop]=(v!=="false");}else{if(t==="object"){_463[prop]=eval("("+v+")");}}}}}_463["class"]=n.className;_463.style=n.style&&n.style.cssText;v=n.getAttribute("data-dojo-attach-point");if(v){_463.dojoAttachPoint=v;}v=n.getAttribute("data-dojo-attach-event");if(v){_463.dojoAttachEvent=v;}var _464=new cls(_463,n);ws.push(_464);var jsId=n.getAttribute("jsId")||n.getAttribute("data-dojo-id");if(jsId){lang.setObject(jsId,_464);}}for(i=0;i<ws.length;i++){var w=ws[i];!args.noStart&&w.startup&&!w._started&&w.startup();}}return ws;};this.parse=function(_465,args){if(!_465){_465=win.body();}else{if(!args&&_465.rootNode){args=_465;_465=_465.rootNode;}}var _466=_465.getElementsByTagName("*");var i,list=[];for(i=0;i<_466.length;i++){var n=_466[i];if(n.getAttribute("dojoType")||n.getAttribute("data-dojo-type")){list.push(n);}}var _467=args&&args.template?{template:true}:null;return this.instantiate(list,_467,args);};}();if(_45d.parseOnLoad){_45e(100,_45f,"parse");}dm.parser=_45f;dojo.parser=_45f;return _45f;});},"dojox/mobile/Button":function(){define("dojox/mobile/Button",["dojo/_base/array","dojo/_base/declare","dojo/dom-class","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_ButtonMixin","dijit/form/_FormWidgetMixin"],function(_468,_469,_46a,_46b,_46c,_46d,_46e){return _469("dojox.mobile.Button",[_46c,_46e,_46d],{baseClass:"mblButton",_setTypeAttr:null,duration:1000,_onClick:function(e){var ret=this.inherited(arguments);if(ret&&this.duration>=0){var _46f=this.focusNode||this.domNode;var _470=(this.baseClass+" "+this["class"]).split(" ");_470=_468.map(_470,function(c){return c+"Selected";});_46a.add(_46f,_470);setTimeout(function(){_46a.remove(_46f,_470);},this.duration);}return ret;},isFocusable:function(){return false;},buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_46b.create("button",{"type":this.type});}else{if(this._cv){var n=this.srcNodeRef.firstChild;if(n&&n.nodeType===3){n.nodeValue=this._cv(n.nodeValue);}}}this.inherited(arguments);this.focusNode=this.domNode;},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onclick","_onClick");},_setLabelAttr:function(_471){this.inherited(arguments,[this._cv?this._cv(_471):_471]);}});});},"dijit/form/_ButtonMixin":function(){define("dijit/form/_ButtonMixin",["dojo/_base/declare","dojo/dom","dojo/_base/event","../registry"],function(_472,dom,_473,_474){return _472("dijit.form._ButtonMixin",null,{label:"",type:"button",_onClick:function(e){if(this.disabled){_473.stop(e);return false;}var _475=this.onClick(e)===false;if(!_475&&this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _476=_474.byNode(node);if(_476&&typeof _476._onSubmit=="function"){_476._onSubmit(e);_475=true;break;}}}if(_475){e.preventDefault();}return !_475;},postCreate:function(){this.inherited(arguments);dom.setSelectable(this.focusNode,false);},onClick:function(){return true;},_setLabelAttr:function(_477){this._set("label",_477);(this.containerNode||this.focusNode).innerHTML=_477;}});});},"dijit/form/_FormWidgetMixin":function(){define("dijit/form/_FormWidgetMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom-attr","dojo/dom-style","dojo/_base/lang","dojo/mouse","dojo/_base/sniff","dojo/_base/window","dojo/window","../a11y"],function(_478,_479,_47a,_47b,lang,_47c,has,win,_47d,a11y){return _479("dijit.form._FormWidgetMixin",null,{name:"",alt:"",value:"",type:"text",tabIndex:"0",_setTabIndexAttr:"focusNode",disabled:false,intermediateChanges:false,scrollOnFocus:true,_setIdAttr:"focusNode",_setDisabledAttr:function(_47e){this._set("disabled",_47e);_47a.set(this.focusNode,"disabled",_47e);if(this.valueNode){_47a.set(this.valueNode,"disabled",_47e);}this.focusNode.setAttribute("aria-disabled",_47e?"true":"false");if(_47e){this._set("hovering",false);this._set("active",false);var _47f="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:("_setTabIndexAttr" in this)?this._setTabIndexAttr:"focusNode";_478.forEach(lang.isArray(_47f)?_47f:[_47f],function(_480){var node=this[_480];if(has("webkit")||a11y.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.set("tabIndex",this.tabIndex);}}},_onFocus:function(by){if(by=="mouse"&&this.isFocusable()){var _481=this.connect(this.focusNode,"onfocus",function(){this.disconnect(_482);this.disconnect(_481);});var _482=this.connect(win.body(),"onmouseup",function(){this.disconnect(_482);this.disconnect(_481);if(this.focused){this.focus();}});}if(this.scrollOnFocus){this.defer(function(){_47d.scrollIntoView(this.domNode);});}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(_47b.get(this.domNode,"display")!="none");},focus:function(){if(!this.disabled&&this.focusNode.focus){try{this.focusNode.focus();}catch(e){}}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(){},_onChangeActive:false,_handleOnChange:function(_483,_484){if(this._lastValueReported==undefined&&(_484===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_483;}this._pendingOnChange=this._pendingOnChange||(typeof _483!=typeof this._lastValueReported)||(this.compare(_483,this._lastValueReported)!=0);if((this.intermediateChanges||_484||_484===undefined)&&this._pendingOnChange){this._lastValueReported=_483;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){this._onChangeHandle.remove();}this._onChangeHandle=this.defer(function(){this._onChangeHandle=null;this.onChange(_483);});}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){this._onChangeHandle.remove();this.onChange(this._lastValueReported);}this.inherited(arguments);}});});},"dojox/mobile/app/_event":function(){define(["dojo","dijit","dojox"],function(dojo,_485,_486){dojo.provide("dojox.mobile.app._event");dojo.experimental("dojox.mobile.app._event.js");dojo.mixin(_486.mobile.app,{eventMap:{},connectFlick:function(_487,_488,_489){var _48a;var _48b;var _48c=false;var _48d;var _48e;var _48f;var _490;var _491;var time;var _492=dojo.connect("onmousedown",_487,function(_493){_48c=false;_48a=_493.targetTouches?_493.targetTouches[0].clientX:_493.clientX;_48b=_493.targetTouches?_493.targetTouches[0].clientY:_493.clientY;time=(new Date()).getTime();_48f=dojo.connect(_487,"onmousemove",_494);_490=dojo.connect(_487,"onmouseup",onUp);});var _494=function(_495){dojo.stopEvent(_495);_48d=_495.targetTouches?_495.targetTouches[0].clientX:_495.clientX;_48e=_495.targetTouches?_495.targetTouches[0].clientY:_495.clientY;if(Math.abs(Math.abs(_48d)-Math.abs(_48a))>15){_48c=true;_491=(_48d>_48a)?"ltr":"rtl";}else{if(Math.abs(Math.abs(_48e)-Math.abs(_48b))>15){_48c=true;_491=(_48e>_48b)?"ttb":"btt";}}};var onUp=function(_496){dojo.stopEvent(_496);_48f&&dojo.disconnect(_48f);_490&&dojo.disconnect(_490);if(_48c){var _497={target:_487,direction:_491,duration:(new Date()).getTime()-time};if(_488&&_489){_488[_489](_497);}else{_489(_497);}}};}});_486.mobile.app.isIPhone=(dojo.isSafari&&(navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPod")>-1));_486.mobile.app.isWebOS=(navigator.userAgent.indexOf("webOS")>-1);_486.mobile.app.isAndroid=(navigator.userAgent.toLowerCase().indexOf("android")>-1);if(_486.mobile.app.isIPhone||_486.mobile.app.isAndroid){_486.mobile.app.eventMap={onmousedown:"ontouchstart",mousedown:"ontouchstart",onmouseup:"ontouchend",mouseup:"ontouchend",onmousemove:"ontouchmove",mousemove:"ontouchmove"};}dojo._oldConnect=dojo._connect;dojo._connect=function(obj,_498,_499,_49a,_49b){_498=_486.mobile.app.eventMap[_498]||_498;if(_498=="flick"||_498=="onflick"){if(dojo.global["Mojo"]){_498=Mojo.Event.flick;}else{return _486.mobile.app.connectFlick(obj,_499,_49a);}}return dojo._oldConnect(obj,_498,_499,_49a,_49b);};});},"dojox/mobile/app/_Widget":function(){define(["dojo","dijit","dojox","dojo/require!dijit/_WidgetBase"],function(dojo,_49c,_49d){dojo.provide("dojox.mobile.app._Widget");dojo.experimental("dojox.mobile.app._Widget");dojo.require("dijit._WidgetBase");dojo.declare("dojox.mobile.app._Widget",_49c._WidgetBase,{getScroll:function(){return {x:dojo.global.scrollX,y:dojo.global.scrollY};},connect:function(_49e,_49f,fn){if(_49f.toLowerCase()=="dblclick"||_49f.toLowerCase()=="ondblclick"){if(dojo.global["Mojo"]){return this.connect(_49e,Mojo.Event.tap,fn);}}return this.inherited(arguments);}});});},"dojox/mobile/app/StageController":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/app/SceneController"],function(dojo,_4a0,_4a1){dojo.provide("dojox.mobile.app.StageController");dojo.experimental("dojox.mobile.app.StageController");dojo.require("dojox.mobile.app.SceneController");dojo.declare("dojox.mobile.app.StageController",null,{scenes:null,effect:"fade",constructor:function(node){this.domNode=node;this.scenes=[];if(dojo.config.mobileAnim){this.effect=dojo.config.mobileAnim;}},getActiveSceneController:function(){return this.scenes[this.scenes.length-1];},pushScene:function(_4a2,_4a3){if(this._opInProgress){return;}this._opInProgress=true;var node=dojo.create("div",{"class":"scene-wrapper",style:{visibility:"hidden"}},this.domNode);var _4a4=new _4a1.mobile.app.SceneController({},node);if(this.scenes.length>0){this.scenes[this.scenes.length-1].assistant.deactivate();}this.scenes.push(_4a4);var _4a5=this;dojo.forEach(this.scenes,this.setZIndex);_4a4.stageController=this;_4a4.init(_4a2,_4a3).addCallback(function(){if(_4a5.scenes.length==1){_4a4.domNode.style.visibility="visible";_4a5.scenes[_4a5.scenes.length-1].assistant.activate(_4a3);_4a5._opInProgress=false;}else{_4a5.scenes[_4a5.scenes.length-2].performTransition(_4a5.scenes[_4a5.scenes.length-1].domNode,1,_4a5.effect,null,function(){_4a5.scenes[_4a5.scenes.length-1].assistant.activate(_4a3);_4a5._opInProgress=false;});}});},setZIndex:function(_4a6,idx){dojo.style(_4a6.domNode,"zIndex",idx+1);},popScene:function(data){if(this._opInProgress){return;}var _4a7=this;if(this.scenes.length>1){this._opInProgress=true;this.scenes[_4a7.scenes.length-2].assistant.activate(data);this.scenes[_4a7.scenes.length-1].performTransition(_4a7.scenes[this.scenes.length-2].domNode,-1,this.effect,null,function(){_4a7._destroyScene(_4a7.scenes[_4a7.scenes.length-1]);_4a7.scenes.splice(_4a7.scenes.length-1,1);_4a7._opInProgress=false;});}else{}},popScenesTo:function(_4a8,data){if(this._opInProgress){return;}while(this.scenes.length>2&&this.scenes[this.scenes.length-2].sceneName!=_4a8){this._destroyScene(this.scenes[this.scenes.length-2]);this.scenes.splice(this.scenes.length-2,1);}this.popScene(data);},_destroyScene:function(_4a9){_4a9.assistant.deactivate();_4a9.assistant.destroy();_4a9.destroyRecursive();}});});},"dojox/mobile/app/SceneController":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/_base"],function(dojo,_4aa,_4ab){dojo.provide("dojox.mobile.app.SceneController");dojo.experimental("dojox.mobile.app.SceneController");dojo.require("dojox.mobile._base");(function(){var app=_4ab.mobile.app;var _4ac={};dojo.declare("dojox.mobile.app.SceneController",_4ab.mobile.View,{stageController:null,keepScrollPos:false,init:function(_4ad,_4ae){this.sceneName=_4ad;this.params=_4ae;var _4af=app.resolveTemplate(_4ad);this._deferredInit=new dojo.Deferred();if(_4ac[_4ad]){this._setContents(_4ac[_4ad]);}else{dojo.xhrGet({url:_4af,handleAs:"text"}).addCallback(dojo.hitch(this,this._setContents));}return this._deferredInit;},_setContents:function(_4b0){_4ac[this.sceneName]=_4b0;this.domNode.innerHTML="<div>"+_4b0+"</div>";var _4b1="";var _4b2=this.sceneName.split("-");for(var i=0;i<_4b2.length;i++){_4b1+=_4b2[i].substring(0,1).toUpperCase()+_4b2[i].substring(1);}_4b1+="Assistant";this.sceneAssistantName=_4b1;var _4b3=this;_4ab.mobile.app.loadResourcesForScene(this.sceneName,function(){var _4b4;if(typeof (dojo.global[_4b1])!="undefined"){_4b3._initAssistant();}else{var _4b5=app.resolveAssistant(_4b3.sceneName);dojo.xhrGet({url:_4b5,handleAs:"text"}).addCallback(function(text){try{dojo.eval(text);}catch(e){throw e;}_4b3._initAssistant();});}});},_initAssistant:function(){var cls=dojo.getObject(this.sceneAssistantName);if(!cls){throw Error("Unable to resolve scene assistant "+this.sceneAssistantName);}this.assistant=new cls(this.params);this.assistant.controller=this;this.assistant.domNode=this.domNode.firstChild;this.assistant.setup();this._deferredInit.callback();},query:function(_4b6,node){return dojo.query(_4b6,node||this.domNode);},parse:function(node){var _4b7=this._widgets=_4ab.mobile.parser.parse(node||this.domNode,{controller:this});for(var i=0;i<_4b7.length;i++){_4b7[i].set("controller",this);}},getWindowSize:function(){return {w:dojo.global.innerWidth,h:dojo.global.innerHeight};},showAlertDialog:function(_4b8){var size=dojo.marginBox(this.assistant.domNode);var _4b9=new _4ab.mobile.app.AlertDialog(dojo.mixin(_4b8,{controller:this}));this.assistant.domNode.appendChild(_4b9.domNode);_4b9.show();},popupSubMenu:function(info){var _4ba=new _4ab.mobile.app.ListSelector({controller:this,destroyOnHide:true,onChoose:info.onChoose});this.assistant.domNode.appendChild(_4ba.domNode);_4ba.set("data",info.choices);_4ba.show(info.fromNode);}});})();});},"dojox/mobile/app/SceneAssistant":function(){define(["dojo","dijit","dojox"],function(dojo,_4bb,_4bc){dojo.provide("dojox.mobile.app.SceneAssistant");dojo.experimental("dojox.mobile.app.SceneAssistant");dojo.declare("dojox.mobile.app.SceneAssistant",null,{constructor:function(){},setup:function(){},activate:function(_4bd){},deactivate:function(){},destroy:function(){var _4be=dojo.query("> [widgetId]",this.containerNode).map(_4bb.byNode);dojo.forEach(_4be,function(_4bf){_4bf.destroyRecursive();});this.disconnect();},connect:function(obj,_4c0,_4c1){if(!this._connects){this._connects=[];}this._connects.push(dojo.connect(obj,_4c0,_4c1));},disconnect:function(){dojo.forEach(this._connects,dojo.disconnect);this._connects=[];}});});},"dojox/mobile/app/AlertDialog":function(){define(["dojo","dijit","dojox","dojo/require!dijit/_WidgetBase"],function(dojo,_4c2,_4c3){dojo.provide("dojox.mobile.app.AlertDialog");dojo.experimental("dojox.mobile.app.AlertDialog");dojo.require("dijit._WidgetBase");dojo.declare("dojox.mobile.app.AlertDialog",_4c2._WidgetBase,{title:"",text:"",controller:null,buttons:null,defaultButtonLabel:"OK",onChoose:null,constructor:function(){this.onClick=dojo.hitch(this,this.onClick);this._handleSelect=dojo.hitch(this,this._handleSelect);},buildRendering:function(){this.domNode=dojo.create("div",{"class":"alertDialog"});var _4c4=dojo.create("div",{"class":"alertDialogBody"},this.domNode);dojo.create("div",{"class":"alertTitle",innerHTML:this.title||""},_4c4);dojo.create("div",{"class":"alertText",innerHTML:this.text||""},_4c4);var _4c5=dojo.create("div",{"class":"alertBtns"},_4c4);if(!this.buttons||this.buttons.length==0){this.buttons=[{label:this.defaultButtonLabel,value:"ok","class":"affirmative"}];}var _4c6=this;dojo.forEach(this.buttons,function(_4c7){var btn=new _4c3.mobile.Button({btnClass:_4c7["class"]||"",label:_4c7.label});btn._dialogValue=_4c7.value;dojo.place(btn.domNode,_4c5);_4c6.connect(btn,"onClick",_4c6._handleSelect);});var _4c8=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>",style:{width:_4c8.w+"px",height:_4c8.h+"px"}},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_4c6.onChoose&&_4c6.onChoose();_4c6.hide();});},postCreate:function(){this.subscribe("/dojox/mobile/app/goback",this._handleSelect);},_handleSelect:function(_4c9){var node;if(_4c9&&_4c9.target){node=_4c9.target;while(!_4c2.byNode(node)){node-node.parentNode;}}if(this.onChoose){this.onChoose(node?_4c2.byNode(node)._dialogValue:undefined);}this.hide();},show:function(){this._doTransition(1);},hide:function(){this._doTransition(-1);},_doTransition:function(dir){var anim;var h=dojo.marginBox(this.domNode.firstChild).h;var _4ca=this.controller.getWindowSize().h;var high=_4ca-h;var low=_4ca;var _4cb=dojo.fx.slideTo({node:this.domNode,duration:400,top:{start:dir<0?high:low,end:dir<0?low:high}});var _4cc=dojo[dir<0?"fadeOut":"fadeIn"]({node:this.mask,duration:400});var anim=dojo.fx.combine([_4cb,_4cc]);var _4cd=this;dojo.connect(anim,"onEnd",this,function(){if(dir<0){_4cd.domNode.style.display="none";dojo.destroy(_4cd.domNode);dojo.destroy(_4cd.mask);}});anim.play();},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);},onClick:function(){}});});},"dojox/mobile/app/List":function(){define(["dojo","dijit","dojox","dojo/require!dojo/string,dijit/_WidgetBase"],function(dojo,_4ce,_4cf){dojo.provide("dojox.mobile.app.List");dojo.experimental("dojox.mobile.app.List");dojo.require("dojo.string");dojo.require("dijit._WidgetBase");(function(){var _4d0={};dojo.declare("dojox.mobile.app.List",_4ce._WidgetBase,{items:null,itemTemplate:"",emptyTemplate:"",dividerTemplate:"",dividerFunction:null,labelDelete:"Delete",labelCancel:"Cancel",controller:null,autoDelete:true,enableDelete:true,enableHold:true,formatters:null,_templateLoadCount:0,_mouseDownPos:null,baseClass:"list",constructor:function(){this._checkLoadComplete=dojo.hitch(this,this._checkLoadComplete);this._replaceToken=dojo.hitch(this,this._replaceToken);this._postDeleteAnim=dojo.hitch(this,this._postDeleteAnim);},postCreate:function(){var _4d1=this;if(this.emptyTemplate){this._templateLoadCount++;}if(this.itemTemplate){this._templateLoadCount++;}if(this.dividerTemplate){this._templateLoadCount++;}this.connect(this.domNode,"onmousedown",function(_4d2){var _4d3=_4d2;if(_4d2.targetTouches&&_4d2.targetTouches.length>0){_4d3=_4d2.targetTouches[0];}var _4d4=_4d1._getRowNode(_4d2.target);if(_4d4){_4d1._setDataInfo(_4d4,_4d2);_4d1._selectRow(_4d4);_4d1._mouseDownPos={x:_4d3.pageX,y:_4d3.pageY};_4d1._dragThreshold=null;}});this.connect(this.domNode,"onmouseup",function(_4d5){if(_4d5.targetTouches&&_4d5.targetTouches.length>0){_4d5=_4d5.targetTouches[0];}var _4d6=_4d1._getRowNode(_4d5.target);if(_4d6){_4d1._setDataInfo(_4d6,_4d5);if(_4d1._selectedRow){_4d1.onSelect(_4d6._data,_4d6._idx,_4d6);}this._deselectRow();}});if(this.enableDelete){this.connect(this.domNode,"mousemove",function(_4d7){dojo.stopEvent(_4d7);if(!_4d1._selectedRow){return;}var _4d8=_4d1._getRowNode(_4d7.target);if(_4d1.enableDelete&&_4d8&&!_4d1._deleting){_4d1.handleDrag(_4d7);}});}this.connect(this.domNode,"onclick",function(_4d9){if(_4d9.touches&&_4d9.touches.length>0){_4d9=_4d9.touches[0];}var _4da=_4d1._getRowNode(_4d9.target,true);if(_4da){_4d1._setDataInfo(_4da,_4d9);}});this.connect(this.domNode,"mouseout",function(_4db){if(_4db.touches&&_4db.touches.length>0){_4db=_4db.touches[0];}if(_4db.target==_4d1._selectedRow){_4d1._deselectRow();}});if(!this.itemTemplate){throw Error("An item template must be provided to "+this.declaredClass);}this._loadTemplate(this.itemTemplate,"itemTemplate",this._checkLoadComplete);if(this.emptyTemplate){this._loadTemplate(this.emptyTemplate,"emptyTemplate",this._checkLoadComplete);}if(this.dividerTemplate){this._loadTemplate(this.dividerTemplate,"dividerTemplate",this._checkLoadComplete);}},handleDrag:function(_4dc){var _4dd=_4dc;if(_4dc.targetTouches&&_4dc.targetTouches.length>0){_4dd=_4dc.targetTouches[0];}var diff=_4dd.pageX-this._mouseDownPos.x;var _4de=Math.abs(diff);if(_4de>10&&!this._dragThreshold){this._dragThreshold=dojo.marginBox(this._selectedRow).w*0.6;if(!this.autoDelete){this.createDeleteButtons(this._selectedRow);}}this._selectedRow.style.left=(_4de>10?diff:0)+"px";if(this._dragThreshold&&this._dragThreshold<_4de){this.preDelete(diff);}},handleDragCancel:function(){if(this._deleting){return;}dojo.removeClass(this._selectedRow,"hold");this._selectedRow.style.left=0;this._mouseDownPos=null;this._dragThreshold=null;this._deleteBtns&&dojo.style(this._deleteBtns,"display","none");},preDelete:function(_4df){var self=this;this._deleting=true;dojo.animateProperty({node:this._selectedRow,duration:400,properties:{left:{end:_4df+((_4df>0?1:-1)*this._dragThreshold*0.8)}},onEnd:dojo.hitch(this,function(){if(this.autoDelete){this.deleteRow(this._selectedRow);}})}).play();},deleteRow:function(row){dojo.style(row,{visibility:"hidden",minHeight:"0px"});dojo.removeClass(row,"hold");this._deleteAnimConn=this.connect(row,"webkitAnimationEnd",this._postDeleteAnim);dojo.addClass(row,"collapsed");},_postDeleteAnim:function(_4e0){if(this._deleteAnimConn){this.disconnect(this._deleteAnimConn);this._deleteAnimConn=null;}var row=this._selectedRow;var _4e1=row.nextSibling;var _4e2=row.previousSibling;if(_4e2&&_4e2._isDivider){if(!_4e1||_4e1._isDivider){_4e2.parentNode.removeChild(_4e2);}}row.parentNode.removeChild(row);this.onDelete(row._data,row._idx,this.items);while(_4e1){if(_4e1._idx){_4e1._idx--;}_4e1=_4e1.nextSibling;}dojo.destroy(row);dojo.query("> *:not(.buttons)",this.domNode).forEach(this.applyClass);this._deleting=false;this._deselectRow();},createDeleteButtons:function(_4e3){var mb=dojo.marginBox(_4e3);var pos=dojo._abs(_4e3,true);if(!this._deleteBtns){this._deleteBtns=dojo.create("div",{"class":"buttons"},this.domNode);this.buttons=[];this.buttons.push(new _4cf.mobile.Button({btnClass:"mblRedButton",label:this.labelDelete}));this.buttons.push(new _4cf.mobile.Button({btnClass:"mblBlueButton",label:this.labelCancel}));dojo.place(this.buttons[0].domNode,this._deleteBtns);dojo.place(this.buttons[1].domNode,this._deleteBtns);dojo.addClass(this.buttons[0].domNode,"deleteBtn");dojo.addClass(this.buttons[1].domNode,"cancelBtn");this._handleButtonClick=dojo.hitch(this._handleButtonClick);this.connect(this._deleteBtns,"onclick",this._handleButtonClick);}dojo.removeClass(this._deleteBtns,"fade out fast");dojo.style(this._deleteBtns,{display:"",width:mb.w+"px",height:mb.h+"px",top:(_4e3.offsetTop)+"px",left:"0px"});},onDelete:function(data,_4e4,_4e5){_4e5.splice(_4e4,1);if(_4e5.length<1){this.render();}},cancelDelete:function(){this._deleting=false;this.handleDragCancel();},_handleButtonClick:function(_4e6){if(_4e6.touches&&_4e6.touches.length>0){_4e6=_4e6.touches[0];}var node=_4e6.target;if(dojo.hasClass(node,"deleteBtn")){this.deleteRow(this._selectedRow);}else{if(dojo.hasClass(node,"cancelBtn")){this.cancelDelete();}else{return;}}dojo.addClass(this._deleteBtns,"fade out");},applyClass:function(node,idx,_4e7){dojo.removeClass(node,"first last");if(idx==0){dojo.addClass(node,"first");}if(idx==_4e7.length-1){dojo.addClass(node,"last");}},_setDataInfo:function(_4e8,_4e9){_4e9.item=_4e8._data;_4e9.index=_4e8._idx;},onSelect:function(data,_4ea,_4eb){},_selectRow:function(row){if(this._deleting&&this._selectedRow&&row!=this._selectedRow){this.cancelDelete();}if(!dojo.hasClass(row,"row")){return;}if(this.enableHold||this.enableDelete){dojo.addClass(row,"hold");}this._selectedRow=row;},_deselectRow:function(){if(!this._selectedRow||this._deleting){return;}this.handleDragCancel();dojo.removeClass(this._selectedRow,"hold");this._selectedRow=null;},_getRowNode:function(_4ec,_4ed){while(_4ec&&!_4ec._data&&_4ec!=this.domNode){if(!_4ed&&dojo.hasClass(_4ec,"noclick")){return null;}_4ec=_4ec.parentNode;}return _4ec==this.domNode?null:_4ec;},applyTemplate:function(_4ee,data){return dojo._toDom(dojo.string.substitute(_4ee,data,this._replaceToken,this.formatters||this));},render:function(){dojo.query("> *:not(.buttons)",this.domNode).forEach(dojo.destroy);if(this.items.length<1&&this.emptyTemplate){dojo.place(dojo._toDom(this.emptyTemplate),this.domNode,"first");}else{this.domNode.appendChild(this._renderRange(0,this.items.length));}if(dojo.hasClass(this.domNode.parentNode,"mblRoundRect")){dojo.addClass(this.domNode.parentNode,"mblRoundRectList");}var divs=dojo.query("> .row",this.domNode);if(divs.length>0){dojo.addClass(divs[0],"first");dojo.addClass(divs[divs.length-1],"last");}},_renderRange:function(_4ef,_4f0){var rows=[];var row,i;var frag=document.createDocumentFragment();_4ef=Math.max(0,_4ef);_4f0=Math.min(_4f0,this.items.length);for(i=_4ef;i<_4f0;i++){row=this.applyTemplate(this.itemTemplate,this.items[i]);dojo.addClass(row,"row");row._data=this.items[i];row._idx=i;rows.push(row);}if(!this.dividerFunction||!this.dividerTemplate){for(i=_4ef;i<_4f0;i++){rows[i]._data=this.items[i];rows[i]._idx=i;frag.appendChild(rows[i]);}}else{var _4f1=null;var _4f2;var _4f3;for(i=_4ef;i<_4f0;i++){rows[i]._data=this.items[i];rows[i]._idx=i;_4f2=this.dividerFunction(this.items[i]);if(_4f2&&_4f2!=_4f1){_4f3=this.applyTemplate(this.dividerTemplate,{label:_4f2,item:this.items[i]});_4f3._isDivider=true;frag.appendChild(_4f3);_4f1=_4f2;}frag.appendChild(rows[i]);}}return frag;},_replaceToken:function(_4f4,key){if(key.charAt(0)=="!"){_4f4=dojo.getObject(key.substr(1),false,_this);}if(typeof _4f4=="undefined"){return "";}if(_4f4==null){return "";}return key.charAt(0)=="!"?_4f4:_4f4.toString().replace(/"/g,"&quot;");},_checkLoadComplete:function(){this._templateLoadCount--;if(this._templateLoadCount<1&&this.get("items")){this.render();}},_loadTemplate:function(url,_4f5,_4f6){if(!url){_4f6();return;}if(_4d0[url]){this.set(_4f5,_4d0[url]);_4f6();}else{var _4f7=this;dojo.xhrGet({url:url,sync:false,handleAs:"text",load:function(text){_4d0[url]=dojo.trim(text);_4f7.set(_4f5,_4d0[url]);_4f6();}});}},_setFormattersAttr:function(_4f8){this.formatters=_4f8;},_setItemsAttr:function(_4f9){this.items=_4f9||[];if(this._templateLoadCount<1&&_4f9){this.render();}},destroy:function(){if(this.buttons){dojo.forEach(this.buttons,function(_4fa){_4fa.destroy();});this.buttons=null;}this.inherited(arguments);}});})();});},"dojo/string":function(){define(["./_base/kernel","./_base/lang"],function(dojo,lang){lang.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_4fb,map,_4fc,_4fd){_4fd=_4fd||dojo.global;_4fc=_4fc?lang.hitch(_4fd,_4fc):function(v){return v;};return _4fb.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_4fe,key,_4ff){var _500=lang.getObject(key,false,map);if(_4ff){_500=lang.getObject(_4ff,false,_4fd).call(_4fd,_500,key);}return _4fc(_500,key).toString();});};dojo.string.trim=String.prototype.trim?lang.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};return dojo.string;});},"dojox/mobile/app/ListSelector":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx"],function(dojo,_501,_502){dojo.provide("dojox.mobile.app.ListSelector");dojo.experimental("dojox.mobile.app.ListSelector");dojo.require("dojox.mobile.app._Widget");dojo.require("dojo.fx");dojo.declare("dojox.mobile.app.ListSelector",_502.mobile.app._Widget,{data:null,controller:null,onChoose:null,destroyOnHide:false,_setDataAttr:function(data){this.data=data;if(this.data){this.render();}},postCreate:function(){dojo.addClass(this.domNode,"listSelector");var _503=this;this.connect(this.domNode,"onclick",function(_504){if(!dojo.hasClass(_504.target,"listSelectorRow")){return;}if(_503.onChoose){_503.onChoose(_503.data[_504.target._idx].value);}_503.hide();});this.connect(this.domNode,"onmousedown",function(_505){if(!dojo.hasClass(_505.target,"listSelectorRow")){return;}dojo.addClass(_505.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseup",function(_506){if(!dojo.hasClass(_506.target,"listSelectorRow")){return;}dojo.removeClass(_506.target,"listSelectorRow-selected");});this.connect(this.domNode,"onmouseout",function(_507){if(!dojo.hasClass(_507.target,"listSelectorRow")){return;}dojo.removeClass(_507.target,"listSelectorRow-selected");});var _508=this.controller.getWindowSize();this.mask=dojo.create("div",{"class":"dialogUnderlayWrapper",innerHTML:"<div class=\"dialogUnderlay\"></div>"},this.controller.assistant.domNode);this.connect(this.mask,"onclick",function(){_503.onChoose&&_503.onChoose();_503.hide();});},show:function(_509){var _50a;var _50b=this.controller.getWindowSize();var _50c;if(_509){_50c=dojo._abs(_509);_50a=_50c;}else{_50a.x=_50b.w/2;_50a.y=200;}dojo.style(this.domNode,{opacity:0,display:"",width:Math.floor(_50b.w*0.8)+"px"});var _50d=0;dojo.query(">",this.domNode).forEach(function(node){dojo.style(node,{"float":"left"});_50d=Math.max(_50d,dojo.marginBox(node).w);dojo.style(node,{"float":"none"});});_50d=Math.min(_50d,Math.round(_50b.w*0.8))+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight")+1;dojo.style(this.domNode,"width",_50d+"px");var _50e=dojo.marginBox(this.domNode).h;var _50f=this;var _510=_50c?Math.max(30,_50c.y-_50e-10):this.getScroll().y+30;var _511=dojo.animateProperty({node:this.domNode,duration:400,properties:{width:{start:1,end:_50d},height:{start:1,end:_50e},top:{start:_50a.y,end:_510},left:{start:_50a.x,end:(_50b.w/2-_50d/2)},opacity:{start:0,end:1},fontSize:{start:1}},onEnd:function(){dojo.style(_50f.domNode,"width","inherit");}});var _512=dojo.fadeIn({node:this.mask,duration:400});dojo.fx.combine([_511,_512]).play();},hide:function(){var _513=this;var _514=dojo.animateProperty({node:this.domNode,duration:500,properties:{width:{end:1},height:{end:1},opacity:{end:0},fontSize:{end:1}},onEnd:function(){if(_513.get("destroyOnHide")){_513.destroy();}}});var _515=dojo.fadeOut({node:this.mask,duration:400});dojo.fx.combine([_514,_515]).play();},render:function(){dojo.empty(this.domNode);dojo.style(this.domNode,"opacity",0);var row;for(var i=0;i<this.data.length;i++){row=dojo.create("div",{"class":"listSelectorRow "+(this.data[i].className||""),innerHTML:this.data[i].label},this.domNode);row._idx=i;if(i==0){dojo.addClass(row,"first");}if(i==this.data.length-1){dojo.addClass(row,"last");}}},destroy:function(){this.inherited(arguments);dojo.destroy(this.mask);}});});},"dojo/fx":function(){define(["./_base/lang","./Evented","./_base/kernel","./_base/array","./_base/connect","./_base/fx","./dom","./dom-style","./dom-geometry","./ready","require"],function(lang,_516,dojo,_517,_518,_519,dom,_51a,geom,_51b,_51c){if(!dojo.isAsync){_51b(0,function(){var _51d=["./fx/Toggler"];_51c(_51d);});}var _51e=dojo.fx={};var _51f={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _520=function(_521){this._index=-1;this._animations=_521||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;_517.forEach(this._animations,function(a){if(a){if(typeof a.duration!="undefined"){this.duration+=a.duration;}if(a.delay){this.duration+=a.delay;}}},this);};_520.prototype=new _516();lang.extend(_520,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){_518.disconnect(this._onAnimateCtx);_518.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=_518.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=_518.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_522,_523){if(!this._current){this._current=this._animations[this._index=0];}if(!_523&&this._current.status()=="playing"){return this;}var _524=_518.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_525=_518.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_526=_518.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);_518.disconnect(_524);_518.disconnect(_525);_518.disconnect(_526);});if(this._onAnimateCtx){_518.disconnect(this._onAnimateCtx);}this._onAnimateCtx=_518.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){_518.disconnect(this._onEndCtx);}this._onEndCtx=_518.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=_518.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);_518.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_527,_528){this.pause();var _529=this.duration*_527;this._current=null;_517.some(this._animations,function(a){if(a.duration<=_529){this._current=a;return true;}_529-=a.duration;return false;});if(this._current){this._current.gotoPercent(_529/this._current.duration,_528);}return this;},stop:function(_52a){if(this._current){if(_52a){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=_518.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);_518.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){_518.disconnect(this._onAnimateCtx);}if(this._onEndCtx){_518.disconnect(this._onEndCtx);}}});lang.extend(_520,_51f);_51e.chain=function(_52b){return new _520(_52b);};var _52c=function(_52d){this._animations=_52d||[];this._connects=[];this._finished=0;this.duration=0;_517.forEach(_52d,function(a){var _52e=a.duration;if(a.delay){_52e+=a.delay;}if(this.duration<_52e){this.duration=_52e;}this._connects.push(_518.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new _519.Animation({curve:[0,1],duration:this.duration});var self=this;_517.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(_518.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};lang.extend(_52c,{_doAction:function(_52f,args){_517.forEach(this._animations,function(a){a[_52f].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_530,args){var t=this._pseudoAnimation;t[_530].apply(t,args);},play:function(_531,_532){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_533,_534){var ms=this.duration*_533;_517.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_534);});this._call("gotoPercent",arguments);return this;},stop:function(_535){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){_517.forEach(this._connects,_518.disconnect);}});lang.extend(_52c,_51f);_51e.combine=function(_536){return new _52c(_536);};_51e.wipeIn=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_519.animateProperty(lang.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _537=_51a.get(node,"height");return Math.max(_537,1);}},end:function(){return node.scrollHeight;}}}},args));var fini=function(){s.height="auto";s.overflow=o;};_518.connect(anim,"onStop",fini);_518.connect(anim,"onEnd",fini);return anim;};_51e.wipeOut=function(args){var node=args.node=dom.byId(args.node),s=node.style,o;var anim=_519.animateProperty(lang.mixin({properties:{height:{end:1}}},args));_518.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});var fini=function(){s.overflow=o;s.height="auto";s.display="none";};_518.connect(anim,"onStop",fini);_518.connect(anim,"onEnd",fini);return anim;};_51e.slideTo=function(args){var node=args.node=dom.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=_51a.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=geom.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=_519.animateProperty(lang.mixin({properties:{top:args.top||0,left:args.left||0}},args));_518.connect(anim,"beforeBegin",anim,init);return anim;};return _51e;});},"dojox/mobile/app/TextBox":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/TextBox"],function(dojo,_538,_539){dojo.provide("dojox.mobile.app.TextBox");dojo.deprecated("dojox.mobile.app.TextBox is deprecated","dojox.mobile.app.TextBox moved to dojox.mobile.TextBox",1.8);dojo.require("dojox.mobile.TextBox");_539.mobile.app.TextBox=_539.mobile.TextBox;});},"dojox/mobile/TextBox":function(){define("dojox/mobile/TextBox",["dojo/_base/declare","dojo/dom-construct","dijit/_WidgetBase","dijit/form/_FormValueMixin","dijit/form/_TextBoxMixin"],function(_53a,_53b,_53c,_53d,_53e){return _53a("dojox.mobile.TextBox",[_53c,_53d,_53e],{baseClass:"mblTextBox",_setTypeAttr:null,_setPlaceHolderAttr:"textbox",buildRendering:function(){if(!this.srcNodeRef){this.srcNodeRef=_53b.create("input",{"type":this.type});}this.inherited(arguments);this.textbox=this.focusNode=this.domNode;},postCreate:function(){this.inherited(arguments);this.connect(this.textbox,"onfocus","_onFocus");this.connect(this.textbox,"onblur","_onBlur");}});});},"dijit/form/_FormValueMixin":function(){define("dijit/form/_FormValueMixin",["dojo/_base/declare","dojo/dom-attr","dojo/keys","dojo/_base/sniff","./_FormWidgetMixin"],function(_53f,_540,keys,has,_541){return _53f("dijit.form._FormValueMixin",_541,{readOnly:false,_setReadOnlyAttr:function(_542){_540.set(this.focusNode,"readOnly",_542);this.focusNode.setAttribute("aria-readonly",_542);this._set("readOnly",_542);},postCreate:function(){this.inherited(arguments);if(has("ie")){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_543,_544){this._handleOnChange(_543,_544);},_handleOnChange:function(_545,_546){this._set("value",_545);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(has("ie")<9||(has("ie")&&has("quirks"))){e.preventDefault();te=document.createEventObject();te.keyCode=keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}}});});},"dijit/form/_TextBoxMixin":function(){define("dijit/form/_TextBoxMixin",["dojo/_base/array","dojo/_base/declare","dojo/dom","dojo/_base/event","dojo/keys","dojo/_base/lang",".."],function(_547,_548,dom,_549,keys,lang,_54a){var _54b=_548("dijit.form._TextBoxMixin",null,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_54c,_54d,_54e){var _54f;if(_54c!==undefined){_54f=this.filter(_54c);if(typeof _54e!="string"){if(_54f!==null&&((typeof _54f!="number")||!isNaN(_54f))){_54e=this.filter(this.format(_54f,this.constraints));}else{_54e="";}}}if(_54e!=null&&_54e!=undefined&&((typeof _54e)!="number"||!isNaN(_54e))&&this.textbox.value!=_54e){this.textbox.value=_54e;this._set("displayedValue",this.get("displayedValue"));}if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_54e);}this.inherited(arguments,[_54f,_54d]);},displayedValue:"",_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},_setDisplayedValueAttr:function(_550){if(_550===null||_550===undefined){_550="";}else{if(typeof _550!="string"){_550=String(_550);}}this.textbox.value=_550;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));if(this.textDir=="auto"){this.applyTextDir(this.focusNode,_550);}},format:function(_551){return ((_551==null||_551==undefined)?"":(_551.toString?_551.toString():_551));},parse:function(_552){return _552;},_refreshState:function(){},onInput:function(){},__skipInputEvent:false,_onInput:function(){if(this.textDir=="auto"){this.applyTextDir(this.focusNode,this.focusNode.value);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);var _553=function(e){var _554=e.charOrCode||e.keyCode||229;if(e.type=="keydown"){switch(_554){case keys.SHIFT:case keys.ALT:case keys.CTRL:case keys.META:case keys.CAPS_LOCK:return;default:if(_554>=65&&_554<=90){return;}}}if(e.type=="keypress"&&typeof _554!="string"){return;}if(e.type=="input"){if(this.__skipInputEvent){this.__skipInputEvent=false;return;}}else{this.__skipInputEvent=true;}var faux=lang.mixin({},e,{charOrCode:_554,wasConsumed:false,preventDefault:function(){faux.wasConsumed=true;e.preventDefault();},stopPropagation:function(){e.stopPropagation();}});if(this.onInput(faux)===false){_549.stop(faux);}if(faux.wasConsumed){return;}setTimeout(lang.hitch(this,"_onInput",faux),0);};_547.forEach(["onkeydown","onkeypress","onpaste","oncut","oninput","oncompositionend"],function(_555){this.connect(this.textbox,_555,_553);},this);},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=lang.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}},_isTextSelected:function(){return this.textbox.selectionStart==this.textbox.selectionEnd;},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);if(this._isTextSelected()){_54b.selectInputText(this.textbox);}});}this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);},_setTextDirAttr:function(_556){if(!this._created||this.textDir!=_556){this._set("textDir",_556);this.applyTextDir(this.focusNode,this.focusNode.value);}}});_54b._setSelectionRange=_54a._setSelectionRange=function(_557,_558,stop){if(_557.setSelectionRange){_557.setSelectionRange(_558,stop);}};_54b.selectInputText=_54a.selectInputText=function(_559,_55a,stop){_559=dom.byId(_559);if(isNaN(_55a)){_55a=0;}if(isNaN(stop)){stop=_559.value?_559.value.length:0;}try{_559.focus();_54b._setSelectionRange(_559,_55a,stop);}catch(e){}};return _54b;});},"dojox/mobile/app/ImageView":function(){define(["dojo","dijit","dojox","dojo/require!dojox/mobile/app/_Widget,dojo/fx/easing"],function(dojo,_55b,_55c){dojo.provide("dojox.mobile.app.ImageView");dojo.experimental("dojox.mobile.app.ImageView");dojo.require("dojox.mobile.app._Widget");dojo.require("dojo.fx.easing");dojo.declare("dojox.mobile.app.ImageView",_55c.mobile.app._Widget,{zoom:1,zoomCenterX:0,zoomCenterY:0,maxZoom:5,autoZoomLevel:3,disableAutoZoom:false,disableSwipe:false,autoZoomEvent:null,_leftImg:null,_centerImg:null,_rightImg:null,_leftSmallImg:null,_centerSmallImg:null,_rightSmallImg:null,constructor:function(){this.panX=0;this.panY=0;this.handleLoad=dojo.hitch(this,this.handleLoad);this._updateAnimatedZoom=dojo.hitch(this,this._updateAnimatedZoom);this._updateAnimatedPan=dojo.hitch(this,this._updateAnimatedPan);this._onAnimPanEnd=dojo.hitch(this,this._onAnimPanEnd);},buildRendering:function(){this.inherited(arguments);this.canvas=dojo.create("canvas",{},this.domNode);dojo.addClass(this.domNode,"mblImageView");},postCreate:function(){this.inherited(arguments);this.size=dojo.marginBox(this.domNode);dojo.style(this.canvas,{width:this.size.w+"px",height:this.size.h+"px"});this.canvas.height=this.size.h;this.canvas.width=this.size.w;var _55d=this;this.connect(this.domNode,"onmousedown",function(_55e){if(_55d.isAnimating()){return;}if(_55d.panX){_55d.handleDragEnd();}_55d.downX=_55e.targetTouches?_55e.targetTouches[0].clientX:_55e.clientX;_55d.downY=_55e.targetTouches?_55e.targetTouches[0].clientY:_55e.clientY;});this.connect(this.domNode,"onmousemove",function(_55f){if(_55d.isAnimating()){return;}if((!_55d.downX&&_55d.downX!==0)||(!_55d.downY&&_55d.downY!==0)){return;}if((!_55d.disableSwipe&&_55d.zoom==1)||(!_55d.disableAutoZoom&&_55d.zoom!=1)){var x=_55f.targetTouches?_55f.targetTouches[0].clientX:_55f.pageX;var y=_55f.targetTouches?_55f.targetTouches[0].clientY:_55f.pageY;_55d.panX=x-_55d.downX;_55d.panY=y-_55d.downY;if(_55d.zoom==1){if(Math.abs(_55d.panX)>10){_55d.render();}}else{if(Math.abs(_55d.panX)>10||Math.abs(_55d.panY)>10){_55d.render();}}}});this.connect(this.domNode,"onmouseout",function(_560){if(!_55d.isAnimating()&&_55d.panX){_55d.handleDragEnd();}});this.connect(this.domNode,"onmouseover",function(_561){_55d.downX=_55d.downY=null;});this.connect(this.domNode,"onclick",function(_562){if(_55d.isAnimating()){return;}if(_55d.downX==null||_55d.downY==null){return;}var x=(_562.targetTouches?_562.targetTouches[0].clientX:_562.pageX);var y=(_562.targetTouches?_562.targetTouches[0].clientY:_562.pageY);if(Math.abs(_55d.panX)>14||Math.abs(_55d.panY)>14){_55d.downX=_55d.downY=null;_55d.handleDragEnd();return;}_55d.downX=_55d.downY=null;if(!_55d.disableAutoZoom){if(!_55d._centerImg||!_55d._centerImg._loaded){return;}if(_55d.zoom!=1){_55d.set("animatedZoom",1);return;}var pos=dojo._abs(_55d.domNode);var _563=_55d.size.w/_55d._centerImg.width;var _564=_55d.size.h/_55d._centerImg.height;_55d.zoomTo(((x-pos.x)/_563)-_55d.panX,((y-pos.y)/_564)-_55d.panY,_55d.autoZoomLevel);}});dojo.connect(this.domNode,"flick",this,"handleFlick");},isAnimating:function(){return this._anim&&this._anim.status()=="playing";},handleDragEnd:function(){this.downX=this.downY=null;if(this.zoom==1){if(!this.panX){return;}var _565=(this._leftImg&&this._leftImg._loaded)||(this._leftSmallImg&&this._leftSmallImg._loaded);var _566=(this._rightImg&&this._rightImg._loaded)||(this._rightSmallImg&&this._rightSmallImg._loaded);var _567=!(Math.abs(this.panX)<this._centerImg._baseWidth/2)&&((this.panX>0&&_565?1:0)||(this.panX<0&&_566?1:0));if(!_567){this._animPanTo(0,dojo.fx.easing.expoOut,700);}else{this.moveTo(this.panX);}}else{if(!this.panX&&!this.panY){return;}this.zoomCenterX-=(this.panX/this.zoom);this.zoomCenterY-=(this.panY/this.zoom);this.panX=this.panY=0;}},handleFlick:function(_568){if(this.zoom==1&&_568.duration<500){if(_568.direction=="ltr"){this.moveTo(1);}else{if(_568.direction=="rtl"){this.moveTo(-1);}}this.downX=this.downY=null;}},moveTo:function(_569){_569=_569>0?1:-1;var _56a;if(_569<1){if(this._rightImg&&this._rightImg._loaded){_56a=this._rightImg;}else{if(this._rightSmallImg&&this._rightSmallImg._loaded){_56a=this._rightSmallImg;}}}else{if(this._leftImg&&this._leftImg._loaded){_56a=this._leftImg;}else{if(this._leftSmallImg&&this._leftSmallImg._loaded){_56a=this._leftSmallImg;}}}this._moveDir=_569;var _56b=this;if(_56a&&_56a._loaded){this._animPanTo(this.size.w*_569,null,500,function(){_56b.panX=0;_56b.panY=0;if(_569<0){_56b._switchImage("left","right");}else{_56b._switchImage("right","left");}_56b.render();_56b.onChange(_569*-1);});}else{this._animPanTo(0,dojo.fx.easing.expoOut,700);}},_switchImage:function(_56c,_56d){var _56e="_"+_56c+"SmallImg";var _56f="_"+_56c+"Img";var _570="_"+_56d+"SmallImg";var _571="_"+_56d+"Img";this[_56f]=this._centerImg;this[_56e]=this._centerSmallImg;this[_56f]._type=_56c;if(this[_56e]){this[_56e]._type=_56c;}this._centerImg=this[_571];this._centerSmallImg=this[_570];this._centerImg._type="center";if(this._centerSmallImg){this._centerSmallImg._type="center";}this[_571]=this[_570]=null;},_animPanTo:function(to,_572,_573,_574){this._animCallback=_574;this._anim=new dojo.Animation({curve:[this.panX,to],onAnimate:this._updateAnimatedPan,duration:_573||500,easing:_572,onEnd:this._onAnimPanEnd});this._anim.play();return this._anim;},onChange:function(_575){},_updateAnimatedPan:function(_576){this.panX=_576;this.render();},_onAnimPanEnd:function(){this.panX=this.panY=0;if(this._animCallback){this._animCallback();}},zoomTo:function(_577,_578,zoom){this.set("zoomCenterX",_577);this.set("zoomCenterY",_578);this.set("animatedZoom",zoom);},render:function(){var cxt=this.canvas.getContext("2d");cxt.clearRect(0,0,this.canvas.width,this.canvas.height);this._renderImg(this._centerSmallImg,this._centerImg,this.zoom==1?(this.panX<0?1:this.panX>0?-1:0):0);if(this.zoom==1&&this.panX!=0){if(this.panX>0){this._renderImg(this._leftSmallImg,this._leftImg,1);}else{this._renderImg(this._rightSmallImg,this._rightImg,-1);}}},_renderImg:function(_579,_57a,_57b){var img=(_57a&&_57a._loaded)?_57a:_579;if(!img||!img._loaded){return;}var cxt=this.canvas.getContext("2d");var _57c=img._baseWidth;var _57d=img._baseHeight;var _57e=_57c*this.zoom;var _57f=_57d*this.zoom;var _580=Math.min(this.size.w,_57e);var _581=Math.min(this.size.h,_57f);var _582=this.dispWidth=img.width*(_580/_57e);var _583=this.dispHeight=img.height*(_581/_57f);var _584=this.zoomCenterX-(this.panX/this.zoom);var _585=this.zoomCenterY-(this.panY/this.zoom);var _586=Math.floor(Math.max(_582/2,Math.min(img.width-_582/2,_584)));var _587=Math.floor(Math.max(_583/2,Math.min(img.height-_583/2,_585)));var _588=Math.max(0,Math.round((img.width-_582)/2+(_586-img._centerX)));var _589=Math.max(0,Math.round((img.height-_583)/2+(_587-img._centerY)));var _58a=Math.round(Math.max(0,this.canvas.width-_580)/2);var _58b=Math.round(Math.max(0,this.canvas.height-_581)/2);var _58c=_580;var _58d=_582;if(this.zoom==1&&_57b&&this.panX){if(this.panX<0){if(_57b>0){_580-=Math.abs(this.panX);_58a=0;}else{if(_57b<0){_580=Math.max(1,Math.abs(this.panX)-5);_58a=this.size.w-_580;}}}else{if(_57b>0){_580=Math.max(1,Math.abs(this.panX)-5);_58a=0;}else{if(_57b<0){_580-=Math.abs(this.panX);_58a=this.size.w-_580;}}}_582=Math.max(1,Math.floor(_582*(_580/_58c)));if(_57b>0){_588=(_588+_58d)-(_582);}_588=Math.floor(_588);}try{cxt.drawImage(img,Math.max(0,_588),_589,Math.min(_58d,_582),_583,_58a,_58b,Math.min(_58c,_580),_581);}catch(e){}},_setZoomAttr:function(_58e){this.zoom=Math.min(this.maxZoom,Math.max(1,_58e));if(this.zoom==1&&this._centerImg&&this._centerImg._loaded){if(!this.isAnimating()){this.zoomCenterX=this._centerImg.width/2;this.zoomCenterY=this._centerImg.height/2;}this.panX=this.panY=0;}this.render();},_setZoomCenterXAttr:function(_58f){if(_58f!=this.zoomCenterX){if(this._centerImg&&this._centerImg._loaded){_58f=Math.min(this._centerImg.width,_58f);}this.zoomCenterX=Math.max(0,Math.round(_58f));}},_setZoomCenterYAttr:function(_590){if(_590!=this.zoomCenterY){if(this._centerImg&&this._centerImg._loaded){_590=Math.min(this._centerImg.height,_590);}this.zoomCenterY=Math.max(0,Math.round(_590));}},_setZoomCenterAttr:function(_591){if(_591.x!=this.zoomCenterX||_591.y!=this.zoomCenterY){this.set("zoomCenterX",_591.x);this.set("zoomCenterY",_591.y);this.render();}},_setAnimatedZoomAttr:function(_592){if(this._anim&&this._anim.status()=="playing"){return;}this._anim=new dojo.Animation({curve:[this.zoom,_592],onAnimate:this._updateAnimatedZoom,onEnd:this._onAnimEnd});this._anim.play();},_updateAnimatedZoom:function(_593){this._setZoomAttr(_593);},_setCenterUrlAttr:function(_594){this._setImage("center",_594);},_setLeftUrlAttr:function(_595){this._setImage("left",_595);},_setRightUrlAttr:function(_596){this._setImage("right",_596);},_setImage:function(name,_597){var _598=null;var _599=null;if(dojo.isString(_597)){_599=_597;}else{_599=_597.large;_598=_597.small;}if(this["_"+name+"Img"]&&this["_"+name+"Img"]._src==_599){return;}var _59a=this["_"+name+"Img"]=new Image();_59a._type=name;_59a._loaded=false;_59a._src=_599;_59a._conn=dojo.connect(_59a,"onload",this.handleLoad);if(_598){var _59b=this["_"+name+"SmallImg"]=new Image();_59b._type=name;_59b._loaded=false;_59b._conn=dojo.connect(_59b,"onload",this.handleLoad);_59b._isSmall=true;_59b._src=_598;_59b.src=_598;}_59a.src=_599;},handleLoad:function(evt){var img=evt.target;img._loaded=true;dojo.disconnect(img._conn);var type=img._type;switch(type){case "center":this.zoomCenterX=img.width/2;this.zoomCenterY=img.height/2;break;}var _59c=img.height;var _59d=img.width;if(_59d/this.size.w<_59c/this.size.h){img._baseHeight=this.canvas.height;img._baseWidth=_59d/(_59c/this.size.h);}else{img._baseWidth=this.canvas.width;img._baseHeight=_59c/(_59d/this.size.w);}img._centerX=_59d/2;img._centerY=_59c/2;this.render();this.onLoad(img._type,img._src,img._isSmall);},onLoad:function(type,url,_59e){}});});},"dojo/fx/easing":function(){define(["../_base/lang"],function(lang){var _59f={linear:function(n){return n;},quadIn:function(n){return Math.pow(n,2);},quadOut:function(n){return n*(n-2)*-1;},quadInOut:function(n){n=n*2;if(n<1){return Math.pow(n,2)/2;}return -1*((--n)*(n-2)-1)/2;},cubicIn:function(n){return Math.pow(n,3);},cubicOut:function(n){return Math.pow(n-1,3)+1;},cubicInOut:function(n){n=n*2;if(n<1){return Math.pow(n,3)/2;}n-=2;return (Math.pow(n,3)+2)/2;},quartIn:function(n){return Math.pow(n,4);},quartOut:function(n){return -1*(Math.pow(n-1,4)-1);},quartInOut:function(n){n=n*2;if(n<1){return Math.pow(n,4)/2;}n-=2;return -1/2*(Math.pow(n,4)-2);},quintIn:function(n){return Math.pow(n,5);},quintOut:function(n){return Math.pow(n-1,5)+1;},quintInOut:function(n){n=n*2;if(n<1){return Math.pow(n,5)/2;}n-=2;return (Math.pow(n,5)+2)/2;},sineIn:function(n){return -1*Math.cos(n*(Math.PI/2))+1;},sineOut:function(n){return Math.sin(n*(Math.PI/2));},sineInOut:function(n){return -1*(Math.cos(Math.PI*n)-1)/2;},expoIn:function(n){return (n==0)?0:Math.pow(2,10*(n-1));},expoOut:function(n){return (n==1)?1:(-1*Math.pow(2,-10*n)+1);},expoInOut:function(n){if(n==0){return 0;}if(n==1){return 1;}n=n*2;if(n<1){return Math.pow(2,10*(n-1))/2;}--n;return (-1*Math.pow(2,-10*n)+2)/2;},circIn:function(n){return -1*(Math.sqrt(1-Math.pow(n,2))-1);},circOut:function(n){n=n-1;return Math.sqrt(1-Math.pow(n,2));},circInOut:function(n){n=n*2;if(n<1){return -1/2*(Math.sqrt(1-Math.pow(n,2))-1);}n-=2;return 1/2*(Math.sqrt(1-Math.pow(n,2))+1);},backIn:function(n){var s=1.70158;return Math.pow(n,2)*((s+1)*n-s);},backOut:function(n){n=n-1;var s=1.70158;return Math.pow(n,2)*((s+1)*n+s)+1;},backInOut:function(n){var s=1.70158*1.525;n=n*2;if(n<1){return (Math.pow(n,2)*((s+1)*n-s))/2;}n-=2;return (Math.pow(n,2)*((s+1)*n+s)+2)/2;},elasticIn:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;n=n-1;return -1*Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p);},elasticOut:function(n){if(n==0||n==1){return n;}var p=0.3;var s=p/4;return Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p)+1;},elasticInOut:function(n){if(n==0){return 0;}n=n*2;if(n==2){return 1;}var p=0.3*1.5;var s=p/4;if(n<1){n-=1;return -0.5*(Math.pow(2,10*n)*Math.sin((n-s)*(2*Math.PI)/p));}n-=1;return 0.5*(Math.pow(2,-10*n)*Math.sin((n-s)*(2*Math.PI)/p))+1;},bounceIn:function(n){return (1-_59f.bounceOut(1-n));},bounceOut:function(n){var s=7.5625;var p=2.75;var l;if(n<(1/p)){l=s*Math.pow(n,2);}else{if(n<(2/p)){n-=(1.5/p);l=s*Math.pow(n,2)+0.75;}else{if(n<(2.5/p)){n-=(2.25/p);l=s*Math.pow(n,2)+0.9375;}else{n-=(2.625/p);l=s*Math.pow(n,2)+0.984375;}}}return l;},bounceInOut:function(n){if(n<0.5){return _59f.bounceIn(n*2)/2;}return (_59f.bounceOut(n*2-1)/2)+0.5;}};lang.setObject("dojo.fx.easing",_59f);return _59f;});},"dojox/mobile/app/ImageThumbView":function(){define(["dojo","dijit","dojox","dojo/require!dijit/_WidgetBase,dojo/string"],function(dojo,_5a0,_5a1){dojo.provide("dojox.mobile.app.ImageThumbView");dojo.experimental("dojox.mobile.app.ImageThumbView");dojo.require("dijit._WidgetBase");dojo.require("dojo.string");dojo.declare("dojox.mobile.app.ImageThumbView",_5a0._WidgetBase,{items:[],urlParam:"url",labelParam:null,itemTemplate:"<div class=\"mblThumbInner\">"+"<div class=\"mblThumbOverlay\"></div>"+"<div class=\"mblThumbMask\">"+"<div class=\"mblThumbSrc\" style=\"background-image:url(${url})\"></div>"+"</div>"+"</div>",minPadding:4,maxPerRow:3,maxRows:-1,baseClass:"mblImageThumbView",thumbSize:"medium",animationEnabled:true,selectedIndex:-1,cache:null,cacheMustMatch:false,clickEvent:"onclick",cacheBust:false,disableHide:false,constructor:function(_5a2,node){},postCreate:function(){this.inherited(arguments);var _5a3=this;var _5a4="mblThumbHover";this.addThumb=dojo.hitch(this,this.addThumb);this.handleImgLoad=dojo.hitch(this,this.handleImgLoad);this.hideCached=dojo.hitch(this,this.hideCached);this._onLoadImages={};this.cache=[];this.visibleImages=[];this._cacheCounter=0;this.connect(this.domNode,this.clickEvent,function(_5a5){var _5a6=_5a3._getItemNodeFromEvent(_5a5);if(_5a6&&!_5a6._cached){_5a3.onSelect(_5a6._item,_5a6._index,_5a3.items);dojo.query(".selected",this.domNode).removeClass("selected");dojo.addClass(_5a6,"selected");}});dojo.addClass(this.domNode,this.thumbSize);this.resize();this.render();},onSelect:function(item,_5a7,_5a8){},_setAnimationEnabledAttr:function(_5a9){this.animationEnabled=_5a9;dojo[_5a9?"addClass":"removeClass"](this.domNode,"animated");},_setItemsAttr:function(_5aa){this.items=_5aa||[];var urls={};var i;for(i=0;i<this.items.length;i++){urls[this.items[i][this.urlParam]]=1;}var _5ab=[];for(var url in this._onLoadImages){if(!urls[url]&&this._onLoadImages[url]._conn){dojo.disconnect(this._onLoadImages[url]._conn);this._onLoadImages[url].src=null;_5ab.push(url);}}for(i=0;i<_5ab.length;i++){delete this._onLoadImages[url];}this.render();},_getItemNode:function(node){while(node&&!dojo.hasClass(node,"mblThumb")&&node!=this.domNode){node=node.parentNode;}return (node==this.domNode)?null:node;},_getItemNodeFromEvent:function(_5ac){if(_5ac.touches&&_5ac.touches.length>0){_5ac=_5ac.touches[0];}return this._getItemNode(_5ac.target);},resize:function(){this._thumbSize=null;this._size=dojo.contentBox(this.domNode);this.disableHide=true;this.render();this.disableHide=false;},hideCached:function(){for(var i=0;i<this.cache.length;i++){if(this.cache[i]){dojo.style(this.cache[i],"display","none");}}},render:function(){var i;var url;var item;var _5ad;while(this.visibleImages&&this.visibleImages.length>0){_5ad=this.visibleImages.pop();this.cache.push(_5ad);if(!this.disableHide){dojo.addClass(_5ad,"hidden");}_5ad._cached=true;}if(this.cache&&this.cache.length>0){setTimeout(this.hideCached,1000);}if(!this.items||this.items.length==0){return;}for(i=0;i<this.items.length;i++){item=this.items[i];url=(dojo.isString(item)?item:item[this.urlParam]);this.addThumb(item,url,i);if(this.maxRows>0&&(i+1)/this.maxPerRow>=this.maxRows){break;}}if(!this._thumbSize){return;}var _5ae=0;var row=-1;var _5af=this._thumbSize.w+(this.padding*2);var _5b0=this._thumbSize.h+(this.padding*2);var _5b1=this.thumbNodes=dojo.query(".mblThumb",this.domNode);var pos=0;_5b1=this.visibleImages;for(i=0;i<_5b1.length;i++){if(_5b1[i]._cached){continue;}if(pos%this.maxPerRow==0){row++;}_5ae=pos%this.maxPerRow;this.place(_5b1[i],(_5ae*_5af)+this.padding,(row*_5b0)+this.padding);if(!_5b1[i]._loading){dojo.removeClass(_5b1[i],"hidden");}if(pos==this.selectedIndex){dojo[pos==this.selectedIndex?"addClass":"removeClass"](_5b1[i],"selected");}pos++;}var _5b2=Math.ceil(pos/this.maxPerRow);this._numRows=_5b2;this.setContainerHeight((_5b2*(this._thumbSize.h+this.padding*2)));},setContainerHeight:function(_5b3){dojo.style(this.domNode,"height",_5b3+"px");},addThumb:function(item,url,_5b4){var _5b5;var _5b6=false;if(this.cache.length>0){var _5b7=false;for(var i=0;i<this.cache.length;i++){if(this.cache[i]._url==url){_5b5=this.cache.splice(i,1)[0];_5b7=true;break;}}if(!_5b5&&!this.cacheMustMatch){_5b5=this.cache.pop();dojo.removeClass(_5b5,"selected");}else{_5b6=true;}}if(!_5b5){_5b5=dojo.create("div",{"class":"mblThumb hidden",innerHTML:dojo.string.substitute(this.itemTemplate,{url:url},null,this)},this.domNode);}if(this.labelParam){var _5b8=dojo.query(".mblThumbLabel",_5b5)[0];if(!_5b8){_5b8=dojo.create("div",{"class":"mblThumbLabel"},_5b5);}_5b8.innerHTML=item[this.labelParam]||"";}dojo.style(_5b5,"display","");if(!this.disableHide){dojo.addClass(_5b5,"hidden");}if(!_5b6){var _5b9=dojo.create("img",{});_5b9._thumbDiv=_5b5;_5b9._conn=dojo.connect(_5b9,"onload",this.handleImgLoad);_5b9._url=url;_5b5._loading=true;this._onLoadImages[url]=_5b9;if(_5b9){_5b9.src=url;}}this.visibleImages.push(_5b5);_5b5._index=_5b4;_5b5._item=item;_5b5._url=url;_5b5._cached=false;if(!this._thumbSize){this._thumbSize=dojo.marginBox(_5b5);if(this._thumbSize.h==0){this._thumbSize.h=100;this._thumbSize.w=100;}if(this.labelParam){this._thumbSize.h+=8;}this.calcPadding();}},handleImgLoad:function(_5ba){var img=_5ba.target;dojo.disconnect(img._conn);dojo.removeClass(img._thumbDiv,"hidden");img._thumbDiv._loading=false;img._conn=null;var url=img._url;if(this.cacheBust){url+=(url.indexOf("?")>-1?"&":"?")+"cacheBust="+(new Date()).getTime()+"_"+(this._cacheCounter++);}dojo.query(".mblThumbSrc",img._thumbDiv).style("backgroundImage","url("+url+")");delete this._onLoadImages[img._url];},calcPadding:function(){var _5bb=this._size.w;var _5bc=this._thumbSize.w;var _5bd=_5bc+this.minPadding;this.maxPerRow=Math.floor(_5bb/_5bd);this.padding=Math.floor((_5bb-(_5bc*this.maxPerRow))/(this.maxPerRow*2));},place:function(node,x,y){dojo.style(node,{"-webkit-transform":"translate("+x+"px,"+y+"px)"});},destroy:function(){var img;var _5be=0;for(var url in this._onLoadImages){img=this._onLoadImages[url];if(img){img.src=null;_5be++;}}this.inherited(arguments);}});});}}});define("dojox/mobile/app",["./app/_base"],function(_5bf){return _5bf;});