(function(){ // register module paths to enabler and builder ibmConfig = ibmCfg.enablerConfig; dojo.registerModulePath("com.ibm.mm", ibmCfg.enablerConfig["com.ibm.mashups.contextroot.enabler"] + "/js/com/ibm/mm"); dojo.registerModulePath("com.ibm.mashups", ibmCfg.enablerConfig["com.ibm.mashups.contextroot.enabler"] + "/js/com/ibm/mashups"); dojo.registerModulePath("com.ibm.mm.builder", ibmCfg.enablerConfig["com.ibm.mashups.contextroot.builder"] + "/js/com/ibm/mm/builder"); dojo.registerModulePath("com.ibm.mashups.builder", ibmCfg.enablerConfig["com.ibm.mashups.contextroot.builder"] + "/js/com/ibm/mashups/builder"); })();/** Licensed Materials - Property of IBM, 5724-U69, (C) Copyright IBM Corp. 2008, 2010 - All Rights reserved. **/ dojo.provide("com.ibm.mm.enabler.extreg");if(typeof (ExtensionRegistry)=="undefined"){this.ExtensionRegistry=function(_1){var _2=window;var _3={root:document.body,enabled:false,_queue:[],debug:function(_4){if(this.enabled){}},log:function(_5){if(this.enabled){}},_flushQueueIfNecessary:function(){var _6=(this._queue.length>0);while(this._queue.length>0){this.root.appendChild(this._queue.shift());}if(_6){this.log("----------------- END STMTS EXECUTED BEFORE ONLOAD ---------------");}}};var _7=function(_8){var _9=_8.split(".");var _a=null;var _b=window;var _c=null;for(var i=0;(i<_9.length&&_b);i++){_a=_b;_c=_9[i];_b=_a[_9[i]];}return [{object:_a,method:_c}];};if(!_1){_1=_7;}function forInLoop(_d,_e){for(var _f in _d){if(Object.prototype.hasOwnProperty.call(_d,_f)){_e(_f,_d[_f]);}}};function isArray(obj){return (obj&&obj.length&&typeof (obj.length)=="number");};function applyToObjectOrArray(obj,_10){if(isArray(obj)){for(var i=0;i [ "+arguments+" ]");_3.log("handler to execute: "+_15.toString());_3.debug(_15);_3.log("next function in the chain (executor parameter): "+fn.toString());_3.debug(fn);}var me=this;var _16=_15.call(this,function(_17){return fn.apply(me,_17);},arguments);if(_3.enabled){_3.log("around advice exit ==> "+_16);}return _16;});};ExtensionPointController.prototype.execute=function(_18,_19){if(_3.enabled){_3.log("ExtensionPointController.execute entry ==> [ "+_18+", "+_19+" ] ");_3.debug(_18);_3.debug(_19);}function argumentsToArray(_1a){var arr=[];for(var i=0;i<_1a.length;i++){arr.push(_1a[i]);}return arr;};var _1b=null;if(_3.enabled){_3.log("Executing extensions for \""+this.name+"\"...");}var _1c=this.extensions;var _1d=this.fnDescriptor;function doExecution(_1e){if(_3.enabled){_3.log("doExecution entry ==> "+_1e);_3.debug(_1e);}if(_1e){_1e=argumentsToArray(_1e);}var _1f=null;var _20=_1d.getMethod();_1d.revert();var _21=_1c.before;if(_3.enabled){_3.log("Executing "+_21.length+" before advice extensions.");}for(var i=0;i<_21.length;i++){if(_3.enabled){_3.log("beforeAdvice["+i+"] = "+_21[i].toString());_3.debug(_21[i]);}_1e=_21[i].call(this,_1e);}if(_3.enabled){_3.log("Executing the original function: "+_1d.getMethod().toString());}_1f=_1d.getMethod().apply(this,_1e);var _22=_1c.after;if(_3.enabled){_3.log("Executing "+_22.length+" after advice extensions.");}if(_1e){for(var j=0;j<_22.length;j++){if(_3.enabled){_3.log("afterAdvice["+j+"] = "+_22[j].toString());_3.debug(_22[j]);_3.log("Return value: "+_1f);_3.debug(_1f);}_1f=_22[j].call(this,_1f,_1e);}}_1d.setMethod(_20);if(_3.enabled){_3.log("doExecution exit ==> "+_1f);}return _1f;};_1b=doExecution.apply(_18,[_19]);if(_3.enabled){_3.log("ExtensionPointController.execute exit ==> "+_1b);}return _1b;};if(!ExtensionRegistry.prototype.extensionPointControllers){ExtensionRegistry.prototype.extensionPointControllers={};}function getExtensionPointController(_23,_24){if(_3.enabled){_3.log("ExtensionRegistry.getExtensionPointController entry ==> [ "+_23+", "+_24+" ]");}var _25=ExtensionRegistry.prototype.extensionPointControllers[_23];if(!_25){_25={};ExtensionRegistry.prototype.extensionPointControllers[_23]=_25;}var _26=_25[_24.id];if(!_26){_26=new ExtensionPointController(_23,_24);ExtensionRegistry.prototype.extensionPointControllers[_23][_24.id]=_26;_24.setMethod(function(){if(_3.enabled){_3.log(_23+" entry ==> "+arguments);}var _27=_26.execute(this,arguments);if(_3.enabled){_3.log(_23+" exit ==> "+_27);}return _27;});}if(_3.enabled){_3.log("ExtensionRegistry.getExtensionPointController exit ==> "+_26);}return _26;};function processExtensionDefinition(_28,_29){if(_3.enabled){_3.log("processExtensionDefinition entry ==> [ "+_28+", "+_29+" ]");_3.log("Extension: "+_28+"; extension: { type: \""+_29.type+"\", handler: "+_29.handler+" }");}var _2a=_1(_28);_2a=_2a||null;if(_2a===null){_2a=_7(_28);}if(_3.enabled){_3.log("impls="+_2a);}for(var i=0;i<_2a.length;i++){var _2b=_2a[i];var md=new MethodDescriptor(_2b.object,_2b.method);if(md.originalValue){var _2c=getExtensionPointController(_28,md);if(_3.enabled){_3.log("Extension Point (after mapping function): "+md);}switch(_29.type){case "before":if(_3.enabled){_3.log("wrapping in a before extension");}_2c.extensions.before.push(_29.handler);break;case "after":if(_3.enabled){_3.log("wrapping in an after extension");}_2c.extensions.after.push(_29.handler);break;case "around":if(_3.enabled){_3.log("wrapping in an around extension");}_2c.addAroundAdvice(_29.handler);break;default:if(_3.enabled){_3.log("Unrecognized extension type: "+_29.type);}}}else{if(console&&console.log){console.log("WARNING! \""+_28+"\" does not exist! The provided extension will be ignored!");}}}if(_3.enabled){_3.log("processExtensionDefinition exit");}};function removeExtensionDefinition(_2d){if(_3.enabled){_3.log("removeExtensionDefinition entry ==> [ "+_2d+" ]");}var _2e=ExtensionRegistry.prototype.extensionPointControllers[_2d];forInLoop(_2e,function(_2f,_30){_30.fnDescriptor.revert();});delete ExtensionRegistry.prototype.extensionPointControllers[_2d];if(_3.enabled){_3.log("removeExtensionDefinition exit");}};this.process=function(_31){if(_3.enabled){_3.log("ExtensionRegistry.process entry ==>"+_31);}applyToObjectOrArray(_31,function(_32){forInLoop(_32,function(_33,_34){applyToObjectOrArray(_34,function(obj){processExtensionDefinition(_33,obj);});});});if(_3.enabled){_3.log("ExtensionRegistry.process exit");}};this.disconnect=function(_35){if(_3.enabled){_3.log("ExtensionRegistry.disconnect entry ==>"+_35);}removeExtensionDefinition(_35);if(_3.enabled){_3.log("ExtensionRegistry.disconnect exit");}};this.enableTracking=function(_36){var _37=new ImplementationTracker(true);var _38={"dojo.declare":{type:"before",handler:function(_39){_37.add(_39[0],_39[1]);return _39;}}};this.process(_38);var _3a=function(_3b){return _37.getImpls(_3b);};dojo.addOnLoad(function(){if(_36&&_36.extensions&&_36.extensions.length>0){var _3c={};function forInLoop(obj,_3d){for(var _3e in obj){if(obj.hasOwnProperty(_3e)){_3d(_3e,obj[_3e]);}}};for(var i=0;i<_36.extensions.length;i++){forInLoop(_36.extensions[i],function(_3f,_40){_3c[_3f]=_40;});}var _41=new ExtensionRegistry(_3a);_41.process(_36.extensions);}});};this.disableTracking=function(){this.disconnect("dojo.declare");};};}if(typeof ImplementationTracker=="undefined"){this.ImplementationTracker=function(_42){var _43={enabled:false,log:function(msg){if(this.enabled){}},debug:function(obj){if(this.enabled){}}};function forInLoop(obj,_44){for(var _45 in obj){if(Object.prototype.hasOwnProperty.call(obj,_45)){_44(_45,obj[_45]);}}};function getMethodImpl(_46){var _47=_46.split(".");var _48=null;var _49=window;var _4a=null;for(var i=0,l=_47.length;(i "+[_53,_54]);}if(!_4b[_53]){if(_54&&typeof _54=="function"){_54=[_54];}var _55=new ObjectInfo(_53);_4b[_53]=_55;for(var i=0,l=_54?_54.length:0;i "+_58);}var _59=_58.substring(0,_58.lastIndexOf("."));var _5a=_58.substring(_58.lastIndexOf(".")+1);if(_43.enabled){_43.log("className = "+_59+"; methodName = "+_5a);}var _5b=getMethodImpl(_58);_5b=_5b||null;if(!_4b[_59]||_5b===null){if(_43.enabled){_43.log("ImplementationTracker.getImpls exit ==> null ");}return null;}var _5c=_4b[_59].implementors;if(_43.enabled){_43.log("impls = "+_5c);}var _5d=[];for(var i=0,l=_5c.length;i "+_5d);}return _5d;};};}(function() { var implTracker = new ImplementationTracker(true); var DojoExtensions = { "dojo.declare": { type: "before", handler: function ( fnArgs ) { implTracker.add( fnArgs[0], fnArgs[1] ); return fnArgs; } } }; var registry = new ExtensionRegistry(); registry.process( DojoExtensions ); ibmConfig.mappingFunction = function ( name ) { return implTracker.getImpls( name ); }; })();dojo.provide("com.ibm.mm.enabler.nls.enabler_zh");dojo.provide("com.ibm.mm.enabler.nls.modelMessages");com.ibm.mm.enabler.nls.modelMessages._built=true;dojo.provide("com.ibm.mm.enabler.nls.modelMessages.zh");com.ibm.mm.enabler.nls.modelMessages.zh={"E_COMNODE_NOTFOUND_1":"BMWMF0011E: 找不到以下節點:${0}。","E_WIDGETDEF_MUST_BE_IDENTIFIABLE_0":"BMWMF0018E: 無法標識窗口小部件定義。","E_INVALID_PARAM_TYPE_0":"BMWMF0021E: 參數 ${num} 無效。值的類型必須為 ${type}。","E_LAYOUTNODE_NEXT_CAN_NOT_BE_ITSELF_0":"BMWMF0027E: 無法將插入的節點插入到自身旁邊。","E_LAYOUTNODE_NOTFOUND_1":"BMWMF0015E: 找不到以下布局節點:${0}。","E_INVALID_DOCUMENT_0":"BMWMF0022E: 文檔不得為 Null。","E_XHR_REQUEST_FAILED_2":"BMWMF0025E: 服務器未能響應 HTTP 請求。此請求返回時的狀態為“${0}”,響應數據為“${1}”。","E_PARAM_ISNULL_0":"BMWMF0014E: 參數值不得為 Null。","E_PARAM_IS_SMALLER_ZERO_0":"BMWMF0016E: 參數值必須大于或等于零。","E_PARAM_ISNULL_OR_UNDEFINED_3":"BMWMF0024E: 函數“${1}.${2}”中的參數 ${0} 不能為 Null 或未定義。","E_INVALID_CONTEXT_MISSING_TYPE_0":"BMWMF0019E: 上下文必須包含類型。","E_INVALID_CONTEXT_SPECIFIED_0":"BMWMF0017E: 未定義窗口小部件上下文。","E_CATNODE_NOTFOUND_1":"BMWMF0010E: 找不到以下目錄條目:${0}。","E_NODE_NOTFOUND_1":"BMWMF0004E: 系統找不到以下節點:${0}。","E_NODE_ISNULL_0":"BMWMF0001E: 節點為 Null,導致出錯。","E_INVALID_XPATH_EXPR_0":"BMWMF0023E: XPath 表達式不得為空。","E_ELEMENT_NOT_FOUND_2":"BMWMF0013E: 在 ${1} 中找不到元素 ${0}。","E_INVALID_PARAM_COUNT_0":"BMWMF0020E: 參數數目無效。","E_UNSUPPORTED_OP_0":"BMWMF0003E: 不支持此操作。","E_OBJECT_DISPOSED_0":"BMWMF0026E: 此對象已處置完畢。","E_CCATNODE_NOTFOUND_1":"BMWMF0012E: 找不到以下目錄類別:${0}。","E_WIDGET_NOTFOUND_1":"BMWMF0002E: 未能裝入以下窗口小部件:${0}。"};dojo.provide("com.ibm.mm.data.nls.dataTypeStrings");com.ibm.mm.data.nls.dataTypeStrings._built=true;dojo.provide("com.ibm.mm.data.nls.dataTypeStrings.zh");com.ibm.mm.data.nls.dataTypeStrings.zh={"countrycode":"國家或地區代碼","languagecode":"語言代碼","date":"日期","boolean":"布爾值","json":"JSON","table":"表","rss":"RSS","email":"電子郵件","image":"圖像","any":"任意數據","text":"文本","html":"HTML","modeldata":"模型數據","time":"時間","phone":"電話","url":"URL","currency":"貨幣","address":"地址","postalcode":"郵政編碼","xml":"XML","timestamp":"時間戳記","person":"人員","number":"數字","atom":"Atom"};dojo.provide("com.ibm.mm.enabler.nls.iwStr");com.ibm.mm.enabler.nls.iwStr._built=true;dojo.provide("com.ibm.mm.enabler.nls.iwStr.zh");com.ibm.mm.enabler.nls.iwStr.zh={"I_NO_PREVIEW_SUPPORT_0":"BMWIS0001I: 此項不支持預覽。","ALL_AUTH":"所有已認證的用戶","LOAD":"正在裝入.....","I_ONEUI_INFORMATION_0":"信息","I_ONEUI_INFORMATION_1":"信息:","WIDGET_NOT_INSTALLED":"窗口小部件不可用","ERROR":"錯誤","WARNING":"警告","ANON":"匿名","INFO":"信息","WIDGET_NOT_INSTALLED_SUB":"此窗口小部件未啟用或不可用。","ALL_PORTAL":"All Portal Users"};dojo.provide("com.ibm.mm.enabler.nls.iwMessages");com.ibm.mm.enabler.nls.iwMessages._built=true;dojo.provide("com.ibm.mm.enabler.nls.iwMessages.zh");com.ibm.mm.enabler.nls.iwMessages.zh={"E_WIDGET_DISPLAY_FAIL_2":"BMWIW0006E: 無法正確顯示窗口小部件 ${0}。錯誤詳細信息:${1}。","W_STANDALONECLASS_MISSING_1":"BMWIW0013W: 窗口小部件 ${0} 缺少 iw-Standalone 類。","E_IWIDGETDEF_NOTAVAILABLE_1":"BMWIW0001E: ${0} 窗口小部件不可用。請檢查網絡連接,或者與管理員聯系以確認該窗口小部件仍存在于所請求的服務器上。","W_API_DEPRECATED_1":"BMWIW0008W: 使用的方法不再受支持。請改為使用 ${0}。","E_NODISPLAY_UNSECUREWIDGET_1":"BMWIW0010E: 未能顯示不受信任的窗口小部件 ${0}。","E_RESOURCE_LOAD_FAIL_2":"BMWIW0011E: 未能裝入資源 ${0} : ${1}。","E_SUBDOMAIN_NOTAVAILABLE_2":"BMWIW0003E: 由于子域數超出其限制 ${1},因此未能裝入不受信任的窗口小部件 ${0}。請將頁面上的另一個窗口小部件標記為受信任,以使另一個子域可用。","E_SUBDOMAIN_NOTAVAILABLE1_2":"BMWIW0009E: 由于子域數超出其限制 ${1},因此未能裝入不可信的窗口小部件 ${0}。","E_WIDGET_EVENT_FAIL_3":"BMWIW0007E: 系統無法處理窗口小部件 ${1} 的事件 ${0}。錯誤詳細信息:${2}。","E_WIDGETS_UNLOAD_FAIL_1":"BMWIW0004E: 由于未完全刷新瀏覽器窗口,因此未能正確裝入窗口小部件。錯誤詳細信息:${0}。","W_DEPRECATE_2":"BMWIW0012W: 建議您不要使用功能:${0}。請改為使用 ${1}。","E_WIDGET_UNLOAD_FAIL_2":"BMWIW0005E: 未正確裝入窗口小部件 ${0}。錯誤詳細信息:${1}。","E_IWIDGETDEF_CONTENTNOTAVAILABLE_1":"BMWIW0002E: 系統找不到以下方式的內容:${0}。","E_WIDGET_INCORRECTCONFIG_1":"BMWIW0014E: 未正確配置窗口小部件 ${0}。"};/** Licensed Materials - Property of IBM, 5724-U69, (C) Copyright IBM Corp. 2008, 2010 - All Rights reserved. **/ dojo.provide("com.ibm.mm.enabler.portal");dojo.i18n._preloadLocalizations("com.ibm.mm.enabler.nls.enabler",["ROOT","ar","ca","cs","da","de","de-de","el","en","en-gb","en-us","es","es-es","fi","fi-fi","fr","fr-fr","he","he-il","hr","hu","it","it-it","ja","ja-jp","kk","ko","ko-kr","nb","nl","nl-be","nl-nl","no","pl","pt","pt-br","pt-pt","ro","ro-ro","ru","sk","sl","sv","th","tr","uk","xx","zh","zh-cn","zh-tw"]);(function(){var _1="3.0.0.20140512-1700".split(".");var _2="enabler";var _3="3.0.0.1-CF3";if(_2){_2="_"+_2;}if(_1.length==4){dojo.setObject("com.ibm.mashups.enabler.version",{major:_1[0],minor:_1[1],patch:_1[2],"projectName":_3,"flag":_2,revision:_1[3],toString:function(){return this.major+"."+this.minor+"."+this.patch+(this.flag||"")+" ("+this.revision+")"+(this.projectName?"["+this.projectName+"]":"");}});}})();if(!dojo._hasResource["com.ibm.mashups.enabler.Deferred_API"]){dojo._hasResource["com.ibm.mashups.enabler.Deferred_API"]=true;dojo.provide("com.ibm.mashups.enabler.Deferred_API");dojo.provide("com.ibm.mashups.enabler.Deferred");dojo.declare("com.ibm.mashups.enabler.Deferred",null,{setFinishedCallback:function(_4,_5,_6){},start:function(_7){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.logging.LogLevel"]){dojo._hasResource["com.ibm.mashups.enabler.logging.LogLevel"]=true;dojo.provide("com.ibm.mashups.enabler.logging.LogLevel");dojo.declare("com.ibm.mashups.enabler.logging.LogLevel",null,{TRACE:500,INFO:800,WARNING:900,SEVERE:1000});com.ibm.mashups.enabler.logging.LogLevel=new com.ibm.mashups.enabler.logging.LogLevel();}if(!dojo._hasResource["com.ibm.mashups.enabler.logging.LogHandler"]){dojo._hasResource["com.ibm.mashups.enabler.logging.LogHandler"]=true;dojo.provide("com.ibm.mashups.enabler.logging.LogHandler");dojo.require("com.ibm.mashups.enabler.logging.LogLevel");dojo.declare("com.ibm.mashups.enabler.logging.LogHandler",null,{constructor:function(){},getHandlerID:function(){return null;},getLogLevel:function(){return null;},log:function(_8,_9,_a,_b){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.logging.Logger_API"]){dojo._hasResource["com.ibm.mashups.enabler.logging.Logger_API"]=true;dojo.provide("com.ibm.mashups.enabler.logging.Logger_API");dojo.provide("com.ibm.mashups.enabler.logging.Logger");dojo.require("com.ibm.mashups.enabler.logging.LogLevel");dojo.declare("com.ibm.mashups.enabler.logging.Logger",null,{constructor:function(){},getLogger:function(_c){return null;},addHandler:function(_d){},removeHandler:function(_e){},entering:function(_f,_10){},exiting:function(_11,_12){},info:function(_13,_14,_15){},warning:function(_16,_17,_18){},severe:function(_19,_1a,_1b){},trace:function(_1c,_1d,_1e){},log:function(_1f,_20,_21,_22){},isLoggable:function(_23){return false;}});}if(!dojo._hasResource["com.ibm.mm.enabler.logging.ConsoleHandler"]){dojo._hasResource["com.ibm.mm.enabler.logging.ConsoleHandler"]=true;dojo.provide("com.ibm.mm.enabler.logging.ConsoleHandler");dojo.declare("com.ibm.mm.enabler.logging.ConsoleHandler",[com.ibm.mashups.enabler.logging.LogHandler],{constructor:function(){this.handlerID="com.ibm.mm.enabler.logging.ConsoleHandler";this.logLevel=com.ibm.mashups.enabler.logging.LogLevel.TRACE;},getHandlerID:function(){return this.handlerID;},getLogLevel:function(){return this.logLevel;},log:function(_24,_25,_26,_27){if(_25==com.ibm.mashups.enabler.logging.LogLevel.SEVERE){console.error(_24+" "+_26+": "+_27);}else{if(_25==com.ibm.mashups.enabler.logging.LogLevel.WARNING){console.warn(_24+" "+_26+": "+_27);}else{if(_25==com.ibm.mashups.enabler.logging.LogLevel.INFO){console.info(_24+" "+_26+": "+_27);}else{if(_25==com.ibm.mashups.enabler.logging.LogLevel.TRACE){console.debug(_24+" "+_26+": "+_27);}}}}}});}if(!dojo._hasResource["com.ibm.mm.enabler.logging.LoggerImpl"]){dojo._hasResource["com.ibm.mm.enabler.logging.LoggerImpl"]=true;dojo.provide("com.ibm.mm.enabler.logging.LoggerImpl");dojo.declare("com.ibm.mm.enabler.logging.LoggerImpl",[com.ibm.mashups.enabler.logging.Logger],{BASE_TOPIC:"com.ibm.mm.enabler.logging.",constructor:function(_28,_29){this.loggers={};this.handlers={};this.name=_28?_28:null;this.parentLogger=_29?_29:null;if(!this.parentLogger){if(ibmConfig&&ibmConfig.traceConfig){this._setTraceConfig(ibmConfig.traceConfig);}else{this._setTraceConfig();}}},getLogger:function(_2a){if(this.parentLogger){return this.parentLogger.getLogger(_2a);}if(!this.loggers[_2a]){this.loggers[_2a]=new com.ibm.mm.enabler.logging.LoggerImpl(_2a,this);}return this.loggers[_2a];},addHandler:function(_2b){if(this.parentLogger){return this.parentLogger.addHandler(_2b);}this.handlers[_2b.handlerID]={};var _2c=this.handlers[_2b.handlerID];_2c.handler=_2b;var _2d=_2b.getLogLevel();var _2e="log";_2c.severeHandle=dojo.subscribe(this.BASE_TOPIC+com.ibm.mashups.enabler.logging.LogLevel.SEVERE,_2b,_2e);if(_2d<=com.ibm.mashups.enabler.logging.LogLevel.WARNING){_2c.warningHandle=dojo.subscribe(this.BASE_TOPIC+com.ibm.mashups.enabler.logging.LogLevel.WARNING,_2b,_2e);}if(_2d<=com.ibm.mashups.enabler.logging.LogLevel.INFO){_2c.infoHandle=dojo.subscribe(this.BASE_TOPIC+com.ibm.mashups.enabler.logging.LogLevel.INFO,_2b,_2e);}if(_2d<=com.ibm.mashups.enabler.logging.LogLevel.TRACE){_2c.traceHandle=dojo.subscribe(this.BASE_TOPIC+com.ibm.mashups.enabler.logging.LogLevel.TRACE,_2b,_2e);}},removeHandler:function(_2f){var _30;var _31;if(dojo.isString(_2f)){if(!_2f in this.handlers){return;}_30=this.handlers[_2f];_31=_2f;}else{if(dojo.isObject(_2f)){_30=this.handlers[_2f.getHandlerID()];_31=_2f.getHandlerID();}else{return;}}if(_30){if(_30.severeHandle){dojo.unsubscribe(_30.severeHandle);}if(_30.warningHandle){dojo.unsubscribe(_30.warningHandle);}if(_30.infoHandle){dojo.unsubscribe(_30.infoHandle);}if(_30.traceHandle){dojo.unsubscribe(_30.traceHandle);}if(_30.handler){delete _30.handler;}}delete this.handlers[_31];},entering:function(_32,_33){var _34=com.ibm.mashups.enabler.logging.LogLevel.TRACE;if(this.isLoggable(_34)){var msg=this._getMessageString(_33);this._log(this.name,_34,_32,"ENTRY"+(msg?" "+msg:""));}},exiting:function(_35,_36){var _37=com.ibm.mashups.enabler.logging.LogLevel.TRACE;if(this.isLoggable(_37)){var msg=this._getMessageString(_36);this._log(this.name,_37,_35,"RETURN"+(msg?" "+msg:""));}},info:function(_38,_39,_3a){var _3b=com.ibm.mashups.enabler.logging.LogLevel.INFO;this.log(_3b,_38,_39,_3a);},warning:function(_3c,_3d,_3e){var _3f=com.ibm.mashups.enabler.logging.LogLevel.WARNING;this.log(_3f,_3c,_3d,_3e);},severe:function(_40,_41,_42){var _43=com.ibm.mashups.enabler.logging.LogLevel.SEVERE;this.log(_43,_40,_41,_42);},trace:function(_44,_45,_46){var _47=com.ibm.mashups.enabler.logging.LogLevel.TRACE;this.log(_47,_44,_45,_46);},log:function(_48,_49,_4a,_4b){if(!this.parentLogger){this._log("com.ibm.mashups.enabler.logging.Logger",com.ibm.mashups.enabler.logging.LogLevel.WARNING,"{log|info|warning|severe|trace|entering|exiting}","You must not use the RootLogger (com.ibm.mashups.enabler.logging.Logger). Create your own logger for each class.");}if(this.isLoggable(_48)){this._log(this.name,_48,_49,_4a,_4b);}},isLoggable:function(_4c){if(_4c!=com.ibm.mashups.enabler.logging.LogLevel.TRACE){return true;}if(!(ibmConfig&&ibmConfig.isDebug)){return false;}var _4d=this._getRegExp();if(_4d&&_4d.exec(this.name)){return true;}return false;},_log:function(_4e,_4f,_50,_51,_52){if((_52&&!dojo.isArray(_52))||_52===false){_52=[_52];}var _53=_52?dojo.string.substitute(_51.toString(),_52):_51;dojo.publish(this.BASE_TOPIC+_4f,[_4e,_4f,_50,_53]);},_getMessageString:function(_54){var _55=0;var msg="";if(_54||_54===false){msg+="[ ";if(dojo.isArray(_54)){for(var i=0;i<_54.length;++i){var arg=_54[i];if(msg.length>2){msg+=", ";}if(typeof arg=="undefined"){msg+="undefined";}if(arg&&arg.toString){msg+=arg.toString();}else{if(arg===null){msg+="null";}else{msg+="n/a";}}}}else{if(_54&&_54.toString){msg+=_54.toString();}else{if(_54===null){msg+="null";}else{msg+="n/a";}}}msg+=" ]";}return msg;},_setTraceConfig:function(_56){if(dojo.isString(_56)&&_56.length>0&&_56=="*"){this._log("RootLogger",com.ibm.mashups.enabler.logging.LogLevel.TRACE,"_setTraceConfig","Invalid traceConfig specified: *");}else{if((dojo.isArray(_56)||dojo.isString(_56))&&_56.length>0){this._log("RootLogger",com.ibm.mashups.enabler.logging.LogLevel.TRACE,"_setTraceConfig","Changing traceConfig: "+_56);var _57=dojo.isArray(_56)?_56.join("|"):_56;if(_57.length>0){this.regExp=new RegExp(_57);return;}}}this.regExp=null;},_disableTraceConfig:function(){this.regExp=null;},_getRegExp:function(){if(this.parentLogger){return this.parentLogger._getRegExp();}return this.regExp;}});com.ibm.mashups.enabler.logging.Logger=new com.ibm.mm.enabler.logging.LoggerImpl();com.ibm.mashups.enabler.logging.Logger.addHandler(new com.ibm.mm.enabler.logging.ConsoleHandler());}if(!dojo._hasResource["com.ibm.mashups.enabler.logging.Logger"]){dojo._hasResource["com.ibm.mashups.enabler.logging.Logger"]=true;dojo.provide("com.ibm.mashups.enabler.logging.Logger");}if(!dojo._hasResource["com.ibm.mm.enabler.DeferredImpl"]){dojo._hasResource["com.ibm.mm.enabler.DeferredImpl"]=true;dojo.provide("com.ibm.mm.enabler.DeferredImpl");dojo.declare("com.ibm.mm.enabler.DeferredImpl",[com.ibm.mashups.enabler.Deferred],{_chainedDeferred:null,_sync:false,_previous:null,constructor:function(_58,_59,_5a){this.context=_58;this.startfn=_59;this.params=_5a;this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);},addErrorCallback:function(_5b,_5c){dojo.deprecated("com.ibm.mashups.enabler.Deferred.addErrorCallback()","use com.ibm.mashups.enabler.Deferred.setFinishedCallback() instead");this.errorCallback=_5b;this.errorCallbackParameters=_5c;},addFinishedCallback:function(_5d,_5e){dojo.deprecated("com.ibm.mashups.enabler.Deferred.addFinishedCallback()","use com.ibm.mashups.enabler.Deferred.setFinishedCallback() instead");this.finishedCallback=_5d;this.finishedCallbackParameters=_5e;},setFinishedCallback:function(_5f,_60,_61){if(_61===true){this._isVerboseFinish=true;}this.finishedCallback2=_5f;this.finishedCallbackParameters2=_60;return this;},start:function(_62,_63){this._sync=(_62||typeof (_62)=="undefined");var ret=null;if(dojo.isFunction(this.startfn)){ret=dojo.hitch(this.context||null,this.startfn)(this,this._sync,this.params,_63||null);}return ret;},getFinishedCallback:function(){return this.finishedCallback2;},getFinishedCallbackParameters:function(){return this.finishedCallbackParameters2;},setChainedDeferred:function(_64){this._chainedDeferred=_64;},getChainedDeferred:function(){return this._chainedDeferred;},getPrevious:function(){return this._previous;},_setPreviousDeferred:function(_65,_66,_67){this._previous={deferred:_65,result:_66,status:_67};},removeChainedDeferred:function(){this._chainedDeferred=null;},finish:function(_68,_69,_6a){try{if(dojo.isFunction(this.getFinishedCallback())){if(this._isVerboseFinish){var _6b={resource:_68,parameter:this.getFinishedCallbackParameters()};_6b.statusCode=_69;if(this._verboseOperationResults){_6b.operations=this._verboseOperationResults||[];}else{_6b.request=_6a||{statusCode:_69};}dojo.partial(this.getFinishedCallback())(_6b);}else{dojo.partial(this.getFinishedCallback())(_68,_69,this.getFinishedCallbackParameters());}}else{if(dojo.isFunction(this.finishedCallback)&&(""+_69).indexOf("2")===0){dojo.partial(this.finishedCallback)(_68,this.finishedCallbackParameters);}else{if(dojo.isFunction(this.errorCallback)&&_69>=400){dojo.partial(this.errorCallback)(_68,this.errorCallbackParameters);}}}}catch(e){this.LOGGER.warning("finish","Callback failed to execute; skipping. Reason: "+e.message);}if(this._chainedDeferred){this._chainedDeferred._setPreviousDeferred(this,_68,_69);this._chainedDeferred.start(this._sync);}}});}if(!dojo._hasResource["com.ibm.mashups.enabler.Deferred"]){dojo._hasResource["com.ibm.mashups.enabler.Deferred"]=true;dojo.provide("com.ibm.mashups.enabler.Deferred");}if(!dojo._hasResource["com.ibm.mashups.enabler.context.LocalizedContext_API"]){dojo._hasResource["com.ibm.mashups.enabler.context.LocalizedContext_API"]=true;dojo.provide("com.ibm.mashups.enabler.context.LocalizedContext_API");dojo.provide("com.ibm.mashups.enabler.context.LocalizedContext");dojo.declare("com.ibm.mashups.enabler.context.LocalizedContext",null,{getPreferredLocale:function(){},getDefaultLocale:function(){},getLocale:function(_6c){},getDisplayLocale:function(_6d){},getTitle:function(_6e){},getDescription:function(_6f){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.xml.XPath_API"]){dojo._hasResource["com.ibm.mashups.enabler.xml.XPath_API"]=true;dojo.provide("com.ibm.mashups.enabler.xml.XPath_API");dojo.provide("com.ibm.mashups.enabler.xml.XPath");dojo.declare("com.ibm.mashups.enabler.xml.XPath",null,{evaluateXPath:function(_70,doc,_71){},evaluateEntry:function(_72,doc,_73){},evaluateBoolean:function(_74,doc,_75){},evaluateString:function(_76,doc,_77){},evaluateNumber:function(_78,doc,_79){}});}if(!dojo._hasResource["com.ibm.mm.enabler.utils.Dom"]){dojo._hasResource["com.ibm.mm.enabler.utils.Dom"]=true;dojo.provide("com.ibm.mm.enabler.utils.Dom");com.ibm.mm.enabler.utils.Dom={getAttributeWithNS:function(_7a,_7b,_7c,_7d){if(!_7a){return null;}if(!_7b){return null;}if(!_7c){return null;}if(!_7d){return null;}var _7e=null;if(dojo.isIE||window.ActiveXObject!==undefined){_7e=_7a.getAttribute(_7b);if(_7e===null||_7e==""){var _7f=_7a.attributes;for(var i=_7f.length;i>0;i--){if(_7f[i-1].baseName==_7c&&_7f[i-1].namespaceURI==_7d){_7e=_7f[i-1].value;break;}}}}else{_7e=_7a.getAttributeNS(_7d,_7c);}return _7e;},setAttributeWithNS:function(dom,_80,_81,_82,_83,_84){if(!dojo.isObject(_80)){throw new Error("element must be a DOMNode");}if(dojo.isIE||window.ActiveXObject!==undefined){var _85=dom.createNode(2,_81,_83);if(_84===null||_84===undefined){_84="";}_85.nodeValue=_84;_80.setAttributeNode(_85);}else{_80.setAttributeNS(_83,_81,_84);}},textContent:function(_86,_87){if(!_86){return "";}if(arguments.length>1){var doc=_86.ownerDocument;var _88=doc.createTextNode(_87||"");com.ibm.mm.enabler.utils.Dom.replaceChildren(_86,_88);return;}else{var tc=dojox.xml.parser.textContent(_86);if(tc){return tc;}return dojo.map(_86.childNodes||[],function(_89){return (_89.nodeType>0&&_89.nodeType<4)?_89.nodeValue:"";}).join("");}},createElement:function(dom,_8a,ns){var _8b;if(dojo.isIE||window.ActiveXObject!==undefined){if(ns){_8b=dom.createNode(1,_8a,ns);}else{_8b=dom.createElement(_8a);}}else{_8b=dom.createElementNS(ns,_8a);}return _8b;},destroyNode:function(_8c){var _8d=dojo.byId("IELeakGarbageBin");if(!_8d){_8d=dojo.create("div",{id:"IELeakGarbageBin",style:{display:"none"}},dojo.body());}dojo.place(_8c,_8d);dojo.attr(_8d,"innerHTML","");if(_8c.nodeType!=3){if(dojo.isIE||window.ActiveXObject!==undefined){dojo.attr(_8c,"outerHTML","");}}},createDocument:function(_8e,_8f){if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){var _90=["MSXML2.FreeThreadedDOMDocument.6.0","Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.3.0"];for(var i=0;i<_90.length;i++){try{oXml=new ActiveXObject(_90[i]);if(oXml){break;}}catch(e){if(i==_90.length){console.warn("Error creating Msxml.DOMDocument; reason: ",e);}}}oXml.async=false;if(_8e){oXml.loadXML(_8e);if(oXml.parseError.errorCode!=0){var _91=oXml.parseError;console.warn("Error parsing XML data. Reason: '"+_91.reason+"'; data: '"+_8e+"'.");}}return oXml;}else{return dojox.xml.parser.parse(_8e,_8f);}},replaceChildren:function(_92,_93){return dojox.xml.parser.replaceChildren(_92,_93);},innerXML:function(_94){return _94?dojox.xml.parser.innerXML(_94):null;},removeChildren:function(_95){return dojox.xml.parser.removeChildren(_95);},copyChildren:function(_96,_97,_98){var _99=_96.cloneNode(true);return this.moveChildren(_99,_97,_98);},moveChildren:function(_9a,_9b,_9c){var _9d=0;if(_9c){while(_9a.hasChildNodes()&&_9a.firstChild.nodeType==3){_9a.removeChild(_9a.firstChild);}while(_9a.hasChildNodes()&&_9a.lastChild.nodeType==3){_9a.removeChild(_9a.lastChild);}}while(_9a.hasChildNodes()){_9b.appendChild(_9a.firstChild);_9d++;}return _9d;},getLocalName:function(_9e){if(!_9e){return null;}switch(_9e.nodeType){case 3:return "#text";case 1:return _9e.localName||com.ibm.mm.enabler.utils.Dom.removeNodeNS(_9e.nodeName);}return null;},getNodeNSPrefix:function(_9f){var tN=""+_9f;var _a0=tN.indexOf(":");return (_a0!=-1)?tN.substring(0,_a0):null;},removeNodeNS:function(_a1){var tN=""+_a1;var _a2=tN.indexOf(":");return (_a2!=-1)?tN.substring(1+_a2):_a1;},lookupNamespaceURI:function(_a3,_a4){if(!(dojo.isIE||window.ActiveXObject!==undefined)){return _a3.lookupNamespaceURI(_a4);}var _a5=_a3;while(_a5&&_a5.nodeType!=9){var _a6=_a5.getAttribute("xmlns:"+_a4);if(_a6){return _a6;}_a5=_a5.parentNode;}return null;}};}if(!dojo._hasResource["com.ibm.mm.enabler.xml.xpath._Generic"]){dojo._hasResource["com.ibm.mm.enabler.xml.xpath._Generic"]=true;dojo.provide("com.ibm.mm.enabler.xml.xpath._Generic");dojo.declare("com.ibm.mm.enabler.xml.xpath._Generic",null,{constructor:function(){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger("com.ibm.mm.enabler.xml.xpath._Generic");},_evaluateXPath:function(_a7,doc,_a8){if(dojo.isSafari){return this._safariEvaluateXPath(_a7,doc,_a8);}else{if(dojo.isIE||window.ActiveXObject!==undefined){return this._ieEvaluateXPath(_a7,doc,_a8);}else{return this._geckoEvaluateXPath(_a7,doc,_a8);}}},_transformNode:function(_a9,_aa){if(typeof XPathResult!="undefined"&&_a9 instanceof XPathResult){return this._xpathResultValue(_a9,_aa);}else{if(_aa==com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE){return _a9;}else{if(_aa==com.ibm.mm.enabler.xml.xpath._Generic.NUMBER_TYPE){return parseFloat(com.ibm.mm.enabler.utils.Dom.textContent(_a9));}else{if(_aa==com.ibm.mm.enabler.xml.xpath._Generic.STRING_TYPE){return com.ibm.mm.enabler.utils.Dom.textContent(_a9);}else{if(_aa==com.ibm.mm.enabler.xml.xpath._Generic.BOOLEAN_TYPE){return !!_a9;}}}}}return null;},_xpathResultValue:function(_ab,_ac){if(_ac==com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE){return _ab;}else{if(_ac==com.ibm.mm.enabler.xml.xpath._Generic.NUMBER_TYPE){return _ab.numberValue;}else{if(_ac==com.ibm.mm.enabler.xml.xpath._Generic.STRING_TYPE){return _ab.stringValue;}else{if(_ac==com.ibm.mm.enabler.xml.xpath._Generic.BOOLEAN_TYPE){return _ab.booleanValue;}}}}return null;},_evaluateXPathSingle:function(_ad,doc,_ae,_af){_af=_af||com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE;var _b0;if(dojo.isSafari){_b0=this._safariEvaluateXPathRaw(_ad,doc,_ae,_af);if(XPathResult&&_b0 instanceof XPathResult){if(_af==com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE){return _b0.iterateNext();}return this._transformNode(_b0,_af);}else{if(_b0){return this._transformNode(_b0[0],_af);}}}else{if(dojo.isIE||window.ActiveXObject!==undefined){_b0=this._ieEvaluateXPathRawSingle(_ad,doc,_ae);if(_b0||_b0===null){return this._transformNode(_b0,_af);}}else{_b0=this._geckoEvaluateXPathRaw(_ad,doc,_ae,_af);if(_b0&&_af==com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE){return _b0.iterateNext();}else{return this._transformNode(_b0,_af);}}}return _b0||null;},_geckoEvaluateXPath:function(_b1,doc,_b2){var _b3=this._geckoEvaluateXPathRaw(_b1,doc,_b2,com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE);var _b4=[];if(_b3){var _b5;while((_b5=_b3.iterateNext())){_b4.push(_b5);}}return _b4;},_geckoEvaluateXPathRaw:function(_b6,doc,_b7,_b8){var _b9=doc;if(doc.nodeType!=9){_b9=doc.ownerDocument;}return _b9.evaluate(_b6,doc,function(_ba){return _b7[_ba]?_b7[_ba].toString():null;},_b8,null);},_ieEvaluateXPath:function(_bb,doc,_bc){var _bd=this._ieEvaluateXPathRaw(_bb,doc,_bc);return _bd||[];},_setIeNamespaces:function(doc,_be){if(_be){var ns=[];var _bf;for(var _c0 in _be){_bf=_be[_c0];if(_c0!="xml"){ns.push("xmlns:",_c0,"='",_bf,"' ");}}var _c1=doc.ownerDocument||doc;_c1.setProperty("SelectionNamespaces",ns.join(""));_c1.setProperty("SelectionLanguage","XPath");}},_ieEvaluateXPathRaw:function(_c2,doc,_c3){this._setIeNamespaces(doc,_c3);return doc.selectNodes(_c2);},_ieEvaluateXPathRawSingle:function(_c4,doc,_c5){this._setIeNamespaces(doc,_c5);return doc.selectSingleNode(_c4);},_safariEvaluateXPath:function(_c6,doc,_c7){var _c8=this._safariEvaluateXPathRaw(_c6,doc,_c7,com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE);if(XPathResult&&_c8 instanceof XPathResult){var _c9=[];var _ca;while((_ca=_c8.iterateNext())){_c9.push(_ca);}return _c9;}return _c8||[];},_safariEvaluateXPathRaw:function(_cb,doc,_cc,_cd){if(typeof XPathResult!="undefined"){return document.evaluate(_cb,doc,function(_ce){return _cc[_ce]?_cc[_ce].toString():null;},_cd,null);}else{if(doc.selectNodes){return doc.selectNodes(_cb);}}}});com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE=0;com.ibm.mm.enabler.xml.xpath._Generic.NUMBER_TYPE=1;com.ibm.mm.enabler.xml.xpath._Generic.STRING_TYPE=2;com.ibm.mm.enabler.xml.xpath._Generic.BOOLEAN_TYPE=3;}if(!dojo._hasResource["com.ibm.mm.enabler.xml.XPathImpl"]){dojo._hasResource["com.ibm.mm.enabler.xml.XPathImpl"]=true;dojo.provide("com.ibm.mm.enabler.xml.XPathImpl");dojo.declare("com.ibm.mm.enabler.xml.XPathImpl",[com.ibm.mashups.enabler.xml.XPath,com.ibm.mm.enabler.xml.xpath._Generic],{modelMessages:null,constructor:function(){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger("com.ibm.mm.enabler.xml.XPath");this.modelMessages=dojo.i18n.getLocalization("com.ibm.mm.enabler","modelMessages");},ANY_TYPE:com.ibm.mm.enabler.xml.xpath._Generic.ANY_TYPE,NUMBER_TYPE:com.ibm.mm.enabler.xml.xpath._Generic.NUMBER_TYPE,STRING_TYPE:com.ibm.mm.enabler.xml.xpath._Generic.STRING_TYPE,BOOLEAN_TYPE:com.ibm.mm.enabler.xml.xpath._Generic.BOOLEAN_TYPE,evaluateXPath:function(_cf,doc,_d0){var _d1="evaluateXPath(xpathExpr, doc, namespaces)";var _d2=this.LOGGER.isLoggable(com.ibm.mashups.enabler.logging.LogLevel.TRACE);if(_d2){this.LOGGER.entering(_d1,[_cf,doc,_d0]);}if(!dojo.isString(_cf)||_cf.length===0){throw new Error(this.modelMessages.E_INVALID_XPATH_EXPR_0);}if(!doc){throw new Error(this.modelMessages.E_INVALID_DOCUMENT_0);}var ret=this._evaluateXPath(_cf,doc,_d0);if(_d2){this.LOGGER.exiting(_d1,ret);}return ret;},evaluateSingle:function(_d3,doc,_d4,_d5){if(!dojo.isString(_d3)||_d3.length===0){throw new Error(this.modelMessages.E_INVALID_XPATH_EXPR_0);}if(!doc){throw new Error(this.modelMessages.E_INVALID_DOCUMENT_0);}return this._evaluateXPathSingle(_d3,doc,_d4,_d5);},evaluateEntry:function(_d6,doc,_d7){return this.evaluateSingle(_d6,doc,_d7,com.ibm.mashups.enabler.xml.XPath.ANY_TYPE);},evaluateBoolean:function(_d8,doc,_d9){return this.evaluateSingle(_d8,doc,_d9,com.ibm.mashups.enabler.xml.XPath.BOOLEAN_TYPE);},evaluateString:function(_da,doc,_db){return this.evaluateSingle(_da,doc,_db,com.ibm.mashups.enabler.xml.XPath.STRING_TYPE);},evaluateNumber:function(_dc,doc,_dd){return this.evaluateSingle(_dc,doc,_dd,com.ibm.mashups.enabler.xml.XPath.NUMBER_TYPE);},createXPath:function(_de,_df,_e0){var _e1=_de.split("/");var _e2=_e1[0];var _e3=_e2.split(":");var _e4,_e5;if(_e3.length>1){_e5=_e3[0];_e4=_e3[1];}else{_e4=_e3[0];}var _e6=com.ibm.mashups.enabler.xml.XPath.evaluateXPath((_e5?_e5+":":"")+_e4,_df,_e0);var _e7;if(_e6&&_e6.length>0){_e7=_e6[0];}else{_e7=com.ibm.mm.enabler.utils.Dom.createElement(_df.ownerDocument,(_e5?_e5+":":"")+_e4,_e5?_e0[_e5]:null);_df.appendChild(_e7);}if(_e1.length>1){_e7=com.ibm.mashups.enabler.xml.XPath.createXPath(_de.substr(_de.indexOf("/")+1),_e7,_e0);}return _e7;}});com.ibm.mashups.enabler.xml.XPath=new com.ibm.mm.enabler.xml.XPathImpl();com.ibm.mm.enabler.xml.xpath.evaluateXPath=function(_e8,doc,_e9){var _ea=com.ibm.mashups.enabler.logging.Logger.getLogger("com.ibm.mm.enabler.xml.xpath");var _eb="evaluateXPath";_ea.warning(_eb,"This method must not be used directly. Use com.ibm.mashups.enabler.xml.XPath.evaluateXPath instead.");dojo.deprecated("com.ibm.mm.enabler.xml.xpath.evaluateXPath","The method com.ibm.mm.enabler.xml.xpath.evaluateXPath is deprecated, please use com.ibm.mashups.enabler.xml.XPath.evaluateXPath instead");return com.ibm.mm.enabler.xml.xpath._Generic.evaluateXPath.apply(null,arguments);};}if(!dojo._hasResource["com.ibm.mashups.enabler.xml.XPath"]){dojo._hasResource["com.ibm.mashups.enabler.xml.XPath"]=true;dojo.provide("com.ibm.mashups.enabler.xml.XPath");}if(!dojo._hasResource["com.ibm.mm.enabler.utils.LocaleHelper"]){dojo._hasResource["com.ibm.mm.enabler.utils.LocaleHelper"]=true;dojo.provide("com.ibm.mm.enabler.utils.LocaleHelper");com.ibm.mm.enabler.utils.LocaleHelper={LOG_LEVEL:com.ibm.mashups.enabler.logging.LogLevel.TRACE,LOGGER:com.ibm.mashups.enabler.logging.Logger.getLogger("com.ibm.mm.enabler.utils.LocaleHelper"),getLocale:function(_ec,_ed,_ee){com.ibm.mm.enabler.utils.LocaleHelper.LOGGER.warning("com.ibm.mm.enabler.utils.LocaleHelper.getLocale","Deprecated. Use com.ibm.mashups.enabler.context.Factory.getLocalizedContext().getLocale() instead.");if(typeof _ec=="undefined"||_ec===null){return null;}var _ef=_ec.getLocales();if(typeof _ef=="undefined"||_ef===null||!dojo.isArray(_ef)){return null;}if(_ef.length===0){return null;}var _f0=null;if(_ef.length===1){_f0=_ef[0];}var arr={};for(var i in _ef){if(Object.prototype.hasOwnProperty.call(_ef,i)){var _f1=_ef[i];arr[_f1]=_f1;}}var _f2;if(_f0===null){if(typeof _ed!="undefined"&&_ed!==null){_f0=this.findMatchLocale(arr,_ed);if(_f0===null){_f2=_ed.split(/-|_/);if(_f2.length==2){var _f3=_f2[0];if(typeof arr[_f3]!="undefined"&&arr[_f3]!==null){_f0=_f3;}}}}}if(_f0===null){var _f4=(dojo.isIE||window.ActiveXObject!==undefined?navigator.userLanguage:navigator.language).toLowerCase();if(typeof ibmConfig!="undefined"&&ibmConfig&&typeof (ibmConfig.locale)!="undefined"&&ibmConfig.locale){_f4=ibmConfig.locale;}if(_f4!==null){_f0=this.findMatchLocale(arr,_f4);if(_f0===null){_f2=_f4.split(/-|_/);if(_f2.length==2){var _f5=_f2[0];if(typeof arr[_f5]!="undefined"&&arr[_f5]!==null){_f0=_f5;}}}}}if(_f0===null){if(_ee){_f0=_ee;}}if(_f0===null){if(arr.en){_f0="en";}}if(_f0===null){_f0=_ef[0];}return _f0;},findMatchLocale:function(arr,_f6){com.ibm.mm.enabler.utils.LocaleHelper.LOGGER.warning("com.ibm.mm.enabler.utils.LocaleHelper.findMatchLocale","Deprecated. Use com.ibm.mm.enabler.utils.LocaleHelper.matchLocale() instead.");var _f7=null;if(arr[_f6]){_f7=_f6;}var _f8=this.toServerLocale(_f6);if(_f7===null&&arr[_f8]){_f7=_f8;}var _f9=_f8.toLowerCase();if(_f7===null&&arr[_f9]){_f7=_f9;}return _f7;},matchLocale:function(_fa,_fb){return com.ibm.mm.enabler.utils.LocaleHelper._matchLocale(com.ibm.mm.enabler.utils.LocaleHelper._getLocaleObj(_fa),com.ibm.mm.enabler.utils.LocaleHelper.normalizeLocale(_fb));},_matchLocale:function(_fc,_fd,_fe){var _ff=_fc;var _100=null;var _101=dojo.some(_fd,function(item){if(item==com.ibm.mm.enabler.utils.LocaleHelper.normalizeLocale(_fc.toString())){_100=item;return true;}});if(_101&&_100){return _100;}if(_fc.variant){_fc.variant=null;return com.ibm.mm.enabler.utils.LocaleHelper._matchLocale(_fc,_fd);}if(_fc.country){_fc.country=null;return com.ibm.mm.enabler.utils.LocaleHelper._matchLocale(_fc,_fd);}if(!_fe){_fc=_ff;switch(_fc.language){case "he":_fc.language="iw";break;case "iw":_fc.language="he";break;}return com.ibm.mm.enabler.utils.LocaleHelper._matchLocale(_fc,_fd,true);}return null;},toServerLocale:function(_102){com.ibm.mm.enabler.utils.LocaleHelper.LOGGER.warning("com.ibm.mm.enabler.utils.LocaleHelper.normalizeLocale","Deprecated. Use com.ibm.mm.enabler.utils.LocaleHelper.normalizeLocale() instead.");if(!_102){return null;}if(_102.indexOf("-")<0){return _102;}_102=_102.replace(/-/,"_");var _103=_102.split("_");var lang=_103[0];var _104=_103[1].toUpperCase();var _105=lang+"_"+_104;return _105;},_getLocaleObj:function(_106){if(dojo.isArray(_106)){return dojo.map(_106,function(item){return com.ibm.mm.enabler.utils.LocaleHelper._getLocaleObj(item);});}else{if(dojo.isString(_106)&&dojo.string.trim(_106).length>0){var _107={language:null,country:null,variant:null,toString:function(){return (this.language?this.language+(this.country?"_"+this.country+(this.variant?"_"+this.variant:""):""):"");},isValid:function(){return !!this.language;}};var _108=dojo.string.trim(_106).replace(/-/g,"_").split("_");switch(_108.length){case 3:_107.variant=_108[2];case 2:_107.country=_108[1].toUpperCase();case 1:_107.language=_108[0].toLowerCase();break;}return _107;}else{return null;}}},normalizeLocale:function(_109){if(dojo.isArray(_109)){return dojo.map(_109,function(item){return com.ibm.mm.enabler.utils.LocaleHelper.normalizeLocale(item);});}else{if(_109&&dojo.isString(_109)){return _109.replace(/_/g,"-").toLowerCase();}else{return null;}}}};}if(!dojo._hasResource["com.ibm.mm.enabler.model.NameSpaceFactory"]){dojo._hasResource["com.ibm.mm.enabler.model.NameSpaceFactory"]=true;dojo.provide("com.ibm.mm.enabler.model.NameSpaceFactory");dojo.declare("com.ibm.mm.enabler.model.NameSpaceFactoryImpl",null,{constructor:function(){this.NS_APP="app";this.NS_ATOM="atom";this.NS_THR="thr";this.NS_UM="um";this.NS_XHTML="xhtml";this.NS_XML="xml";this.NS_XSI="xsi";this.NS_OPENSEARCH="opensearch";this.NS_CM="cm";this.NS_CA="ca";this.NS_AC="ac";this.NS_EVENT_DATATYPES="event-datatypes";this.NS_XMLNS="xmlns";this.NS_XSD="xsd";this.NS_JS="js";this.NS_ENV="env";this.namespaces={};this.namespaces[this.NS_APP]="http://www.w3.org/2007/app";this.namespaces[this.NS_ATOM]="http://www.w3.org/2005/Atom";this.namespaces[this.NS_THR]="http://purl.org/syndication/thread/1.0";this.namespaces[this.NS_UM]="http://www.ibm.com/xmlns/prod/websphere/um.xsd";this.namespaces[this.NS_XHTML]="http://www.w3.org/1999/xhtml";this.namespaces[this.NS_XML]="http://www.w3.org/XML/1998/namespace";this.namespaces[this.NS_XSI]="http://www.w3.org/2001/XMLSchema-instance";this.namespaces[this.NS_XMLNS]="http://www.w3.org/2000/xmlns/";this.namespaces[this.NS_OPENSEARCH]="http://a9.com/-/spec/opensearch/1.1/";this.namespaces[this.NS_CM]="http://www.ibm.com/xmlns/prod/composite-applications/v1.0";this.namespaces[this.NS_CA]="http://www.ibm.com/xmlns/prod/composite-applications/v1.0";this.namespaces[this.NS_AC]="http://www.ibm.com/xmlns/prod/lotus/access-control/v1.0";this.namespaces[this.NS_EVENT_DATATYPES]="http://www.ibm.com/xmlns/prod/lotus/mashups/event-datatypes";this.namespaces[this.NS_XSD]="http://www.w3.org/2001/XMLSchema";this.namespaces[this.NS_JS]="text/javascript";this.namespaces[this.NS_ENV]="http://www.w3.org/2003/05/soap-envelope";},getNameSpaces:function(_10a){var _10b={};var len=_10a.length;for(var i=0;i").replace(/</g,"<");if(_121){this.LOGGER.exiting(_120,[dojo.doc.title]);}}});com.ibm.mm.enabler.context.PageContext=new com.ibm.mm.enabler.context.PageContextImpl();}if(!dojo._hasResource["com.ibm.mashups.enabler.context.PageContext"]){dojo._hasResource["com.ibm.mashups.enabler.context.PageContext"]=true;dojo.provide("com.ibm.mashups.enabler.context.PageContext");}if(!dojo._hasResource["com.ibm.mashups.enabler.context.Factory_API"]){dojo._hasResource["com.ibm.mashups.enabler.context.Factory_API"]=true;dojo.provide("com.ibm.mashups.enabler.context.Factory_API");dojo.provide("com.ibm.mashups.enabler.context.Factory");dojo.declare("com.ibm.mashups.enabler.context.Factory",null,{getLocalizedContext:function(){},getLocalizedContext:function(_122,_123){},getPageContext:function(){}});}if(!dojo._hasResource["com.ibm.mm.enabler.context.FactoryImpl"]){dojo._hasResource["com.ibm.mm.enabler.context.FactoryImpl"]=true;dojo.provide("com.ibm.mm.enabler.context.FactoryImpl");dojo.declare("com.ibm.mm.enabler.context.FactoryImpl",[com.ibm.mashups.enabler.context.Factory],{constructor:function(){},getLocalizedContext:function(_124,_125){return new com.ibm.mm.enabler.context.LocalizedContextImpl(_124,_125);},getPageContext:function(){return new com.ibm.mm.enabler.context.PageContextImpl();}});com.ibm.mashups.enabler.context.Factory=new com.ibm.mm.enabler.context.FactoryImpl();}if(!dojo._hasResource["com.ibm.mashups.enabler.context.Factory"]){dojo._hasResource["com.ibm.mashups.enabler.context.Factory"]=true;dojo.provide("com.ibm.mashups.enabler.context.Factory");}if(!dojo._hasResource["com.ibm.mashups.enabler.services.ConfigConstants"]){dojo._hasResource["com.ibm.mashups.enabler.services.ConfigConstants"]=true;dojo.provide("com.ibm.mashups.enabler.services.ConfigConstants");dojo.declare("com.ibm.mashups.enabler.services.ConfigConstants",null,{PROXY_URL:"com.ibm.mashups.proxy.url",HUB_URL:"com.ibm.mashups.hub.url",LOGIN_URL:"com.ibm.mashups.url.login",LOGOUT_URL:"com.ibm.mashups.url.logout",CONTEXT_ROOT:"com.ibm.mashups.contextroot",CONTEXT_ROOT_ENABLER:"com.ibm.mashups.contextroot.enabler",CONTEXT_ROOT_BUILDER:"com.ibm.mashups.contextroot.builder",CONTENTHANDLER_PUBLIC:"com.ibm.mashups.contenthandler.public",CONTENTHANDLER_PRIVATE:"com.ibm.mashups.contenthandler.private",EMBEDDING_PUBLIC:"com.ibm.mashups.embedding.public",EMBEDDING_PRIVATE:"com.ibm.mashups.embedding.private",THEMES_FEEDS_EXPIRATION:"themes.feed.expiration",AVAILABLE_LOCALES:"availableLocales",DEFAULT_LOCALE:"default.locale",DISPLAY_LOCALE:"displayLocale",TUNNEL_MODE:"tunnel.mode",CLIENT_IS_DEBUG:"isDebug",CLIENT_IS_BIDI:"isBidi",WIDGETDEFID_SANDBOX_DISABLED:"com.ibm.mashups.sandbox.force.disable",TRACE_CONFIG:"traceConfig",CLIENT_POPUP_CONSOLE:"popupConsole",CLIENT_ALLOW_PUBLISH_LOGGING:"allowPublishLogging",CLIENT_ALLOW_PUBLISH_TRACING:"allowPublishTracing",CLIENT_ADDITIONAL_SERVICES:"additionalServices",CLIENT_DEFAULT_THEME_ID:"com.ibm.mashups.theme.defaultThemeId",CLIENT_PAGE_SOURCE_READ_ONLY:"pageSourceReadOnly",CLIENT_AUTO_ACCEPT_SHARED_GROUPNAME:"autoAcceptSharedGroupName",AUTO_WIRING_DEFAULT_ENABLED:"autoWiringDefaultEnabled",CLIENT_USER_ID_KEY:"userIdKey",CLIENT_GROUP_CN_KEY:"groupCNKey",SERVICE_DOCUMENT_URL:"serviceDocumentUrl",MULTIPART_ENABLED:"com.ibm.mashups.multipart.enabled",MULTIPART_CORRELATE_HOSTS:"com.ibm.mashups.multipart.correlatehosts",MULTIPART_CACHE_QUERIES:"com.ibm.mashups.multipart.cachequeries",ENDPOINTS:"endpointIDs",ENDPOINT_CONFIG_PROVIDER:"Endpoints",ANONYMOUS_USER:"anonymousUser",NAVIGATION_HIDDEN:"com.ibm.mashups.navigation.hidden",SPACE_HIDDEN:"com.ibm.mashups.space.hidden",USER:"user",SUBDOMAINS:"subdomains",SERVERDOMAIN:"serverdomain",SANDBOXENABLED:"sandboxenabled",SUBDOMAINREUSE:"subdomainreuse",NAVSTATE_PERSISTENCE_URL:"navstate.persistence.url",NAVSTATE_PERSISTENCE_PSTORE:"navstate.persistence.pstore",NAVSTATE_PERSISTENCE_URL_LIMIT:"navstate.persistence.url.limit",NAVSTATE_PERSISTENCE_URL_SPLIMIT:"navstate.persistence.url.splimit",NAVSTATE_HUFFMANNENCODE_ENABLED:"navstate.huffmannencode.enabled",LOADING_HTML:"loadingHTML",PAGE_LOAD_OPTIMIZATION:"pageLoadOptimization",PAGE_LOAD_OPTIMIZATION_THEME:"pageLoadOptimizationTheme",PAGE_LOAD_OPTIMIZATION_APP_WIDGETS:"pageLoadOptimizationAppWidgets",ANONYMOUS_ALLOW_CREATE:"com.ibm.mashups.anonymous.allow.create",DEFAULT_USER_DISPLAY_PROP:"com.ibm.mashups.default.user.display.prop",PRODUCT_NAME:"com.ibm.mashups.productname",DEFAULT_GROUP_DISPLAY_PROP:"com.ibm.mashups.default.group.display.prop",WELCOME_SPACE_ID:"com.ibm.mashups.welcome.space.name",BUILDER_TITLE_FILTER_REGEXP:"com.ibm.mashups.builder.filter.title.regexp",ANON_VIRTUAL_USER_ID:"com.ibm.mashups.anonUserId",ALL_AUTH_VIRTUAL_GROUP_ID:"com.ibm.mashups.allAuthGroupId",SERVER_TYPE:"com.ibm.mashups.server",SERVER_TYPE_MASHUPS:"Lotus_Mashups",SERVER_TYPE_PORTAL:"WebSphere_Portal",SERVER_TYPE_BSPACE:"Business_Space",ANON_MODE_ENABLED:"com.ibm.mashups.anonymous.mode",AUTO_WILDCARD_DISABLED:"com.ibm.mashups.autoWildcardSearchDisabled",CONTEXT_MENU_NAME:"com.ibm.mashups.contextmenu.name",WIDGET_BUILDER_ENABLED:"com.ibm.mashups.widgetBuilder.enabled",CREATE_SPACE_TEMPLATE_MODE:"createSpaceOnTemplateMode",FAVORITE_SPACES_MAXIMUM_NUMBER:"favorite.spaces.maximum.number",RECENT_SPACES_MAXIMUM_NUMBER:"recent.spaces.maximum.number",REGISTER_LOADEDRESOURCES:"register.loadedresources",PERSISTENCE_MODE:"com.ibm.mashups.enabler.icontext.persistence.mode",PERSISTENCE_MODE_EVENTS:"com.ibm.mashups.enabler.icontext.persistence.mode.events",PERSISTENCE_MODE_EVENTS_MODIFIABLE:"com.ibm.mashups.enabler.icontext.persistence.mode.events.modifiable",PERSISTENCE_MODE_WIRES:"com.ibm.mashups.enabler.icontext.persistence.mode.wires",PERSISTENCE_MODE_WIRES_MODIFIABLE:"com.ibm.mashups.enabler.icontext.persistence.mode.wires.modifiable",PERSISTENCE_MODE_ATTRIBUTES:"com.ibm.mashups.enabler.icontext.persistence.mode.attributes",PERSISTENCE_MODE_ATTRIBUTES_MODIFIABLE:"com.ibm.mashups.enabler.icontext.persistence.mode.attributes.modifiable",PERSISTENCE_MODE_ATTRIBUTES_JSON_INJECTXML:"com.ibm.mashups.enabler.icontext.attributes.json.injectxml",ICONTEXT_AUTO_COMMIT:"com.ibm.mashups.enabler.icontext.autocommit",ID_PREFIX:"com.ibm.mashups.iWidget.idPrefix",API_ENFORCEMENT_MODE:"com.ibm.mashups.enabler.enforcement",API_ENFORCEMENT_MODE_WARN:"warning",API_ENFORCEMENT_MODE_ERROR:"error",NON_PREVIEWABLE_WIDGET_LOCATION:"com.ibm.mashups.enabler.layout.widget.NonPreviewableContentWidget.location",LIMIT_PAGE_DESCRIPTION:"com.ibm.mashups.persistence.page.description.limit",WIDGET_PERSONALIZE_ENABLED:"com.ibm.mashups.widget.attributes.personalize.enabled",SPACEMANAGER_PAGE_QUERYCOUNT:"com.ibm.mashups.spacemanager.page.queryCount",SPACEMANAGER_PAGE_QUERYKEYWORD:"com.ibm.mashups.spacemanager.page.queryKeyword",SPACEMANAGER_SPACE_QUERYCOUNT:"com.ibm.mashups.spacemanager.spacetemplate.queryCount",SPACEMANAGER_SPACE_QUERYKEYWORD:"com.ibm.mashups.spacemanager.spacetemplate.queryKeyword",LOCALAPPS_REGEX:"com.ibm.mashups.multipart.localapps.regex",SERVER_OBJECT_ID_FORMAT:"com.ibm.mashups.server.oid.format",LOGOUT_VERIFICATION_REGEXP:"com.ibm.mashups.logout.verification.regexp",MULTIPART_SPLIT_PUBLIC:"com.ibm.mashups.multipart.splitPublic",MULTIPART_SPLIT_TRANSACTIONS:"com.ibm.mashups.multipart.splitTransactions",QUEUE_RENDERING:"com.ibm.mashups.queueRendering",MULTIPART_USE_SINK:"com.ibm.mashups.multipart.useSinkForModRequests",NAVIGATION_CREATION_NOOP:"com.ibm.mashups.navigation.creation.noop",ALL_PORTAL_VIRTUAL_GROUP_ID:"com.ibm.mashups.allPortalGroupId"});com.ibm.mashups.enabler.services.ConfigConstants=new com.ibm.mashups.enabler.services.ConfigConstants();}if(!dojo._hasResource["com.ibm.mashups.enabler.services.ConfigObject_API"]){dojo._hasResource["com.ibm.mashups.enabler.services.ConfigObject_API"]=true;dojo.provide("com.ibm.mashups.enabler.services.ConfigObject_API");dojo.provide("com.ibm.mashups.enabler.services.ConfigObject");dojo.declare("com.ibm.mashups.enabler.services.ConfigObject",null,{getValue:function(name){return null;},getValueDeferred:function(name){return null;}});}if(!dojo._hasResource["com.ibm.mm.enabler.services.ConfigObjectDefaultImpl"]){dojo._hasResource["com.ibm.mm.enabler.services.ConfigObjectDefaultImpl"]=true;dojo.provide("com.ibm.mm.enabler.services.ConfigObjectDefaultImpl");dojo.declare("com.ibm.mm.enabler.services.ConfigObjectDefaultImpl",[com.ibm.mashups.enabler.services.ConfigObject],{constructor:function(_126,_127){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);this.provider=_126;this.configService=_127;this.ns={};this.ns.app="http://www.w3.org/2007/app";this.ns.atom="http://www.w3.org/2005/Atom";},getPreferenceValue:function(name){if(this.provider=="all"){return this.configService.getValue(name);}else{return this._getValue(this.provider,name);}return null;},getValue:function(name){if(this.provider=="all"){return this.configService.getValue(name,internal);}else{return this._getValue(this.provider,name);}return null;},_getValue:function(_128,name){return null;},getValueDeferred:function(name){if(this.provider=="all"){return new com.ibm.mm.enabler.DeferredImpl(this,function(_129,sync,name){var _12a=_129.getFinishedCallback();var _12b=this.configService.getValue(name,internal);if(_12b&&_12a){_12a(_12b,com.ibm.mm.enabler.model.HttpStatusCodes.HTTP_OK,_129.getFinishedCallbackParameters());}return _12b;});}else{return this._getValueDeferred(this.provider,name);}},_getValueDeferred:function(_12c,name){return null;}});if((ibmConfig.enablerLayerModules)&&(dojo.indexOf(ibmConfig.enablerLayerModules,"Base")>=0)){dojo["require"]("com.ibm.mm.enabler.services.ConfigObjectExtendedImpl");}}if(!dojo._hasResource["com.ibm.mashups.enabler.services.ConfigObject"]){dojo._hasResource["com.ibm.mashups.enabler.services.ConfigObject"]=true;dojo.provide("com.ibm.mashups.enabler.services.ConfigObject");}if(!dojo._hasResource["com.ibm.mashups.enabler.services.ConfigService_API"]){dojo._hasResource["com.ibm.mashups.enabler.services.ConfigService_API"]=true;dojo.provide("com.ibm.mashups.enabler.services.ConfigService_API");dojo.provide("com.ibm.mashups.enabler.services.ConfigService");dojo.declare("com.ibm.mashups.enabler.services.ConfigService",null,{SERVICE_NAME:"configService",getValue:function(name){return null;},getConfigObject:function(name){return null;},getConfigProviderNames:function(){return null;}});com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME="configService";}if(!dojo._hasResource["com.ibm.mashups.services.ServiceManager_API"]){dojo._hasResource["com.ibm.mashups.services.ServiceManager_API"]=true;dojo.provide("com.ibm.mashups.services.ServiceManager_API");dojo.provide("com.ibm.mashups.services.ServiceManager");dojo.declare("com.ibm.mashups.services.ServiceManager",null,{constructor:function(){},getService:function(_12d){}});}if(!dojo._hasResource["com.ibm.mashups.services.ServiceManager"]){dojo._hasResource["com.ibm.mashups.services.ServiceManager"]=true;dojo.provide("com.ibm.mashups.services.ServiceManager");}if(!dojo._hasResource["com.ibm.mm.services.ServiceManagerImpl"]){dojo._hasResource["com.ibm.mm.services.ServiceManagerImpl"]=true;dojo.provide("com.ibm.mm.services.ServiceManagerImpl");dojo.declare("com.ibm.mm.services.ServiceManagerImpl",com.ibm.mashups.services.ServiceManager,{constructor:function(){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);this.LOG_LEVEL=com.ibm.mashups.enabler.logging.LogLevel.TRACE;this._serviceEntries={};ibmConfig=ibmConfig||{};ibmConfig.additionalServices=ibmConfig.additionalServices||null;if(ibmConfig.additionalServices){var _12e=dojo.fromJson(ibmConfig.additionalServices);for(var i in _12e){if(Object.prototype.hasOwnProperty.call(_12e,i)){var _12f=_12e[i];this._serviceEntries[_12f.name]=_12f;}}}},getService:function(_130){var _131=this._serviceEntries[_130];_131=_131||null;if(_131!==null){var _132=_131.serviceHandler;_132=_132||null;if(_132===null){_132=this._createService(_131);_132=_132||null;if(_132===null){this._loadScript(_131);}else{this._serviceEntries[_130].serviceHandler=_132;}}}return this._serviceEntries[_130].serviceHandler;},setService:function(_133,_134){_134=_134||null;if(_134===null){return null;}var _135=this._serviceEntries[_133];_135=_135||null;if(_135!==null){delete this._serviceEntries[_133];}if(!this._serviceEntries[_133]){this._serviceEntries[_133]={};}if(dojo.isString(_134)){this._serviceEntries[_133].baseClass=_134;}else{this._serviceEntries[_133].serviceHandler=_134;}},_loadScript:function(_136){var me=this;dojo.xhrGet({url:_136.path,ibmMultipart:{context:com.ibm.mashups.enabler.io.XHRMultipartFactory.CONTEXT_ENABLER},handleAs:"text",sync:true,load:function(_137){dojo.eval(_137);var _138=me._createService(_136);if(typeof _138!="undefined"&&_138!==null){var _139=_136.name;_136.serviceHandler=_138;}},error:function(data,_13a){this.LOGGER.severe("_loadScript","error loading service:"+_136.name,data);}});},_createService:function(_13b){var _13c=null;try{_13c=new (dojo.getObject(_13b.baseClass))();}catch(err){}return _13c;}});com.ibm.mashups.services.ServiceManager=new com.ibm.mm.services.ServiceManagerImpl();}if(!dojo._hasResource["com.ibm.mm.enabler.services.AbstractConfigServiceImpl"]){dojo._hasResource["com.ibm.mm.enabler.services.AbstractConfigServiceImpl"]=true;dojo.provide("com.ibm.mm.enabler.services.AbstractConfigServiceImpl");dojo.declare("com.ibm.mm.enabler.services.AbstractConfigServiceImpl",com.ibm.mashups.enabler.services.ConfigService,{constructor:function(){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);},getPreferenceValue:function(name){return this.getValue(name);},getValue:function(name,_13d){if(typeof _13d=="undefined"){this.LOGGER.warning("com.ibm.mm.enabler.services.ConfigService.getValue","This method must not be used directly. Use com.ibm.mashups.enabler.services.ConfigService.getValue instead. name: ${0}",[name]);}var _13e=ibmConfig[name];return _13e;},getConfigObject:function(_13f){return null;},getConfigProviderNames:function(){return null;}});}if(!dojo._hasResource["com.ibm.mm.enabler.services.ConfigServiceDefaultImpl"]){dojo._hasResource["com.ibm.mm.enabler.services.ConfigServiceDefaultImpl"]=true;dojo.provide("com.ibm.mm.enabler.services.ConfigServiceDefaultImpl");dojo.declare("com.ibm.mm.enabler.services.ConfigServiceDefaultImpl",[com.ibm.mm.enabler.services.AbstractConfigServiceImpl],{constructor:function(){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger("com.ibm.mm.enabler.services.ConfigServiceDefaultImpl");},_getConfigObject:function(_140){if(!ibmConfig["CO_"+_140]){var co=new com.ibm.mm.enabler.services.ConfigObjectDefaultImpl(_140,this);ibmConfig["CO_"+_140]=co;}return ibmConfig["CO_"+_140];},_getConfigProviderNames:function(){var ret=[];ret.push("all");return ret;},getValue:function(name){var _141="getValue(name)";var _142=this.LOGGER.isLoggable(com.ibm.mashups.enabler.logging.LogLevel.TRACE);if(_142){this.LOGGER.entering(_141,name);}var ret=this.inherited(arguments,[name,true]);if(_142){this.LOGGER.exiting(_141,ret);}return ret;},getConfigObject:function(name){var _143="getConfigObject(name)";var _144=this.LOGGER.isLoggable(com.ibm.mashups.enabler.logging.LogLevel.TRACE);if(_144){this.LOGGER.entering(_143,name);}var ret=this._getConfigObject(name);if(_144){this.LOGGER.exiting(_143,ret);}return ret;},getConfigProviderNames:function(){var _145="getConfigProviderNames()";var _146=this.LOGGER.isLoggable(com.ibm.mashups.enabler.logging.LogLevel.TRACE);if(_146){this.LOGGER.entering(_145,name);}var ret=this._getConfigProviderNames();if(_146){this.LOGGER.exiting(_145,ret);}return ret;}});com.ibm.mashups.services.ServiceManager.setService("configService","com.ibm.mm.enabler.services.ConfigServiceDefaultImpl");if((ibmConfig.enablerLayerModules)&&(dojo.indexOf(ibmConfig.enablerLayerModules,"Base")>=0)){dojo["require"]("com.ibm.mm.enabler.services.ConfigServiceExtendedImpl");}}if(!dojo._hasResource["com.ibm.mashups.enabler.services.ConfigService"]){dojo._hasResource["com.ibm.mashups.enabler.services.ConfigService"]=true;dojo.provide("com.ibm.mashups.enabler.services.ConfigService");}if(!dojo._hasResource["com.ibm.mashups.enabler.utils.EndpointHelper_API"]){dojo._hasResource["com.ibm.mashups.enabler.utils.EndpointHelper_API"]=true;dojo.provide("com.ibm.mashups.enabler.utils.EndpointHelper_API");dojo.provide("com.ibm.mashups.enabler.utils.EndpointHelper");dojo.declare("com.ibm.mashups.enabler.utils.EndpointHelper",null,{resolve:function(url){return null;}});}if(!dojo._hasResource["com.ibm.mm.enabler.EndpointUtils"]){dojo._hasResource["com.ibm.mm.enabler.EndpointUtils"]=true;dojo.provide("com.ibm.mm.enabler.EndpointUtils");dojo.declare("com.ibm.mm.enabler.EndpointUtilsDefaultImpl",null,{constructor:function(){},checkForEndpoints:function(url){return null;}});com.ibm.mm.enabler.EndpointUtils=new com.ibm.mm.enabler.EndpointUtilsDefaultImpl();if((ibmConfig.enablerLayerModules)&&(dojo.indexOf(ibmConfig.enablerLayerModules,"iWidget")>=0)){dojo["require"]("com.ibm.mm.enabler.EndpointUtilsExtendedImpl");}}if(!dojo._hasResource["com.ibm.mm.enabler.utils.EndpointHelperImpl"]){dojo._hasResource["com.ibm.mm.enabler.utils.EndpointHelperImpl"]=true;dojo.provide("com.ibm.mm.enabler.utils.EndpointHelperImpl");dojo.declare("com.ibm.mm.enabler.utils.EndpointHelperImpl",null,{resolve:function(url){if(!url){return url;}var url2=com.ibm.mm.enabler.EndpointUtils.checkForEndpoints(url);if(url2){return url2;}return url;}});com.ibm.mashups.enabler.utils.EndpointHelper=new com.ibm.mm.enabler.utils.EndpointHelperImpl();}if(!dojo._hasResource["com.ibm.mashups.enabler.utils.EndpointHelper"]){dojo._hasResource["com.ibm.mashups.enabler.utils.EndpointHelper"]=true;dojo.provide("com.ibm.mashups.enabler.utils.EndpointHelper");}if(!dojo._hasResource["com.ibm.mashups.enabler.utils.URLHelper_API"]){dojo._hasResource["com.ibm.mashups.enabler.utils.URLHelper_API"]=true;dojo.provide("com.ibm.mashups.enabler.utils.URLHelper_API");dojo.provide("com.ibm.mashups.enabler.utils.URLHelper");dojo.declare("com.ibm.mashups.enabler.utils.URLHelper",null,{rewriteURL:function(_147){return null;}});}if(!dojo._hasResource["com.ibm.mm.enabler.utils.Misc"]){dojo._hasResource["com.ibm.mm.enabler.utils.Misc"]=true;dojo.provide("com.ibm.mm.enabler.utils.Misc");com.ibm.mm.enabler.utils.Misc={LOG_LEVEL:com.ibm.mashups.enabler.logging.LogLevel.TRACE,LOGGER:com.ibm.mashups.enabler.logging.Logger.getLogger("com.ibm.mm.enabler.utils.Misc"),forIn:function(obj,func,_148){if(!obj||typeof obj!="object"){return;}_148=_148||null;var item;for(var idx in obj){if(Object.prototype.hasOwnProperty.call(obj,idx)){item=obj[idx];dojo.hitch(_148,func)(item,idx,obj);}}},encodePath:function(path,_149){if(path.length===0){return path;}var _14a=path.split("/");for(var i=0;i<_14a.length;++i){_14a[i]=_149?com.ibm.mm.enabler.utils.Misc._pathPartUnescape(_14a[i]):com.ibm.mm.enabler.utils.Misc._pathPartEscape(com.ibm.mm.enabler.utils.Misc._pathPartUnescape(_14a[i]));}return _14a.join("/");},_pathPartUnescape:function(_14b){_14b=decodeURIComponent(_14b);return _14b;},_pathPartEscape:function(_14c){_14c=encodeURIComponent(_14c);_14c=_14c.replace(/%3a/g,":");_14c=_14c.replace(/%3A/g,":");return _14c;},inStringArray:function(str,_14d){var rc=false;for(var i in _14d){if(Object.prototype.hasOwnProperty.call(_14d,i)){var _14e=_14d[i];if(_14e==str){rc=true;break;}}}return rc;},isEmpty:function(_14f){if(_14f===null||typeof _14f=="undefined"){return true;}else{if(dojo.isString(_14f)){return _14f.length===0;}else{for(var i in _14f){if(Object.prototype.hasOwnProperty.call(_14f,i)){return false;}}return true;}}},encodeModelID4Uri:function(uri){var pos=uri.indexOf(":");if(pos!=-1){var _150=uri.slice(0,pos+1);var end=uri.slice(pos+1);uri=_150+encodeURIComponent(end);}return encodeURIComponent(uri);},preloadImage:function(path,_151,_152){var _153=(_151&&_152)?new Image(_151,_152):new Image();_153.src=path;return _153;},isInstanceOf:function(obj1,obj2){if(obj1&&obj2){if(typeof obj1.isInstanceOf=="function"){if(obj1.isInstanceOf(obj2)){return true;}}return (obj1 instanceof obj2);}return false;},isPocUrl:function(_154){var _155={http:"http",https:"https",file:"file",endpoint:"endpoint"};var rc=false;if(_154.indexOf(":")>0){if(_154.indexOf("/")===0){return false;}if(_154.indexOf("?")===0){return false;}var _156=_154.substring(0,_154.indexOf(":"));if(!_155[_156]){rc=true;}}return rc;},_transferURLParameter:function(_157,_158){var _159=_158.getParameters();var _15a=_157.getParameters();var c=com.ibm.mm.enabler.model.url.ModelUrlConstants;for(var s in _15a){if(_159[s]){if(s==c.PARAMETER_MDNAME||s==c.PARAMETER_ASPECT){var sv=_15a[s];var _15b=dojo.filter(dojo.isArray(sv)?sv:[sv],function(v){if(dojo.isArray(_159[s])){return dojo.indexOf(_159[s],v)==-1;}else{return _159[s]!=v;}},this);dojo.forEach(_15b,function(v){_158.addParameter(s,v);},this);}}else{_158.setParameter(s,_15a[s]);}}return _158;}};}if(!dojo._hasResource["com.ibm.mm.enabler.utils.HttpUrl"]){dojo._hasResource["com.ibm.mm.enabler.utils.HttpUrl"]=true;dojo.provide("com.ibm.mm.enabler.utils.HttpUrl");dojo.declare("com.ibm.mm.enabler.utils.HttpUrl",null,{constructor:function(_15c,_15d){if(_15d!==false){var _15e=com.ibm.mm.enabler.EndpointUtils.checkForEndpoints(_15c);if(_15e){_15c=_15e;}}this.pocurl=this._resolvePocUrl(_15c);if(!this.pocurl){this.scheme=this._extractScheme(_15c);this.server=this._extractServer(_15c);this.port=this._extractPort(_15c);this.path=this._extractPath(_15c);this.parameters=this._extractQuery(_15c);this.anchor=this._extractAnchor(_15c);}},_resolvePocUrl:function(_15f){var rv=null;if(com.ibm.mm.enabler.utils.Misc.isPocUrl(_15f)){var _160=this._getPrefix();_15f=escape(unescape(_15f));rv=_160.concat(_15f);}return rv;},_getPrefix:function(){var cs=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME);var _161=cs.getValue(com.ibm.mashups.enabler.services.ConfigConstants.CONTEXT_ROOT);var _162=cs.getValue(com.ibm.mashups.enabler.services.ConfigConstants.ANONYMOUS_USER);var _163;if(_162){_163=cs.getValue(com.ibm.mashups.enabler.services.ConfigConstants.CONTENTHANDLER_PUBLIC);}else{_163=cs.getValue(com.ibm.mashups.enabler.services.ConfigConstants.CONTENTHANDLER_PRIVATE);}var rv=_161.concat(_163).concat("?uri=");return rv;},addParameter:function(name,_164){if(dojo.isString(this.parameters[name])){this.parameters[name]=[this.parameters[name],_164];}else{if(dojo.isArray(this.parameters[name])){this.parameters[name].push(_164);}else{this.parameters[name]=_164;}}},setParameter:function(name,_165){if(!this.parameters){this.parameters={};}this.parameters[name]=_165;},getParameter:function(name){if(!this.parameters){return false;}return this.parameters[name];},getParameters:function(){return this.parameters;},isProxyNeeded:function(){var loc=document.location;if(loc.protocol!=this.scheme){return true;}if(!this._equalsServer(loc.hostname)){return true;}if(loc.port==this.port){return false;}var _166;if(this.scheme=="http:"){_166="80";if((loc.port==""&&this.port==_166)||(loc.port==_166&&this.port=="")){return false;}}if(this.scheme=="https:"){_166="443";if((loc.port==""&&this.port==_166)||(loc.port==_166&&this.port=="")){return false;}}return true;},toServerRelativeString:function(_167){if(this.pocurl){return this.pocurl;}var str="";if(this.path!=""){str+="/"+com.ibm.mm.enabler.utils.Misc.encodePath(this.path,_167);}if(!com.ibm.mm.enabler.utils.Misc.isEmpty(this.parameters)){str+="?"+(_167?this._parametersToQuery(this.parameters):dojo.objectToQuery(this.parameters));}if(this.anchor!=""){str+="#"+this.anchor;}return str;},toProxifiedString:function(){if(this.pocurl){return this.pocurl;}if(typeof ibmConfig=="undefined"){return this.toString();}var _168=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME).getValue(com.ibm.mashups.enabler.services.ConfigConstants.PROXY_URL);if(!_168){return this.toString();}_168+="/";if(window.location.protocol==this.scheme&&this._equalsServer(window.location.hostname)){if(window.location.port==this.port){return this.toString();}else{if(this.scheme=="http:"&&window.location.port==""&&this.port=="80"){return this.toString();}else{if(this.scheme=="https:"&&window.location.port==""&&this.port=="443"){return this.toString();}else{if(this.scheme=="http:"&&window.location.port=="80"&&this.port==""){return this.toString();}else{if(this.scheme=="https:"&&window.location.port=="443"&&this.port==""){return this.toString();}}}}}}if(this.scheme=="https:"){_168+="https/"+this.server+((this.port!="443"&&this.port!="")?":"+this.port:"");}else{_168+="http/"+this.server+((this.port!="80"&&this.port!="")?":"+this.port:"");}_168+="/";if(this.path!=""){_168+=com.ibm.mm.enabler.utils.Misc.encodePath(this.path);}if(!com.ibm.mm.enabler.utils.Misc.isEmpty(this.parameters)){_168+="?"+dojo.objectToQuery(this.parameters);}if(this.anchor!=""){_168+="#"+this.anchor;}return _168;},getPath:function(){return "/"+this.path;},toString:function(_169){if(this.pocurl){return this.pocurl;}var str="";if(this.server!=""){str+=this.scheme+"http://"+this.server;if(this.port!=""){if(this.scheme=="http:"&&this.port=="80"){str+="";}else{if(this.scheme=="https:"&&this.port=="443"){str+="";}else{str+=":"+this.port;}}}}str+="/";if(this.path!=""){str+=com.ibm.mm.enabler.utils.Misc.encodePath(this.path,_169);}if(!com.ibm.mm.enabler.utils.Misc.isEmpty(this.parameters)){str+="?"+(_169?this._parametersToQuery(this.parameters):dojo.objectToQuery(this.parameters));}if(this.anchor!=""){str+="#"+this.anchor;}return str;},_parametersToQuery:function(_16a){var str="";var fn=function(_16b){str+=k+"="+_16b+"&";};for(var k in _16a){if(dojo.isArray(_16a[k])){dojo.forEach(_16a[k],fn);}else{fn(_16a[k]);}}if(str.lastIndexOf("&")===str.length-1){str=str.substr(0,str.length-1);}return str;},_isAbsolute:function(){return this._absoluteURL;},_extractScheme:function(_16c){var _16d=_16c.indexOf("/")===0;if(_16d){return window.location.protocol;}var _16e=_16c.indexOf("://");if(_16e==-1){this._absoluteURL=false;return window.location.protocol;}this._absoluteURL=true;return _16c.substring(0,_16e+1);},_extractServer:function(_16f){var _170=_16f.indexOf(this.scheme);var _171="";if(_170===0){var _172;var _173=_16f.indexOf("/",_170+this.scheme.length+2);if(_173!=-1){_172=_16f.substring(_170+this.scheme.length+2,_173);}else{_172=_16f.substring(_170+this.scheme.length+2);}_171=_172.split(":")[0];}else{var _174=window.location.hostname;_171=this._isIPv6(_174)?"["+_174+"]":_174;}return _171;},_extractPort:function(_175){var _176=_175.indexOf("/")===0;if(_176){return window.location.port;}var _177=_175.indexOf(this.scheme);if(_177>0){return window.location.port;}var _178=_175.indexOf(this.server);if(_178>=0){var _179;var _17a=_175.indexOf("/",_178);if(_17a!=-1){_179=_175.substring(_178,_17a);}else{_179=_175.substring(_178);}var _17b=_179.split(":");if(_17b.length>1){return _17b[1];}}return "";},_extractPath:function(_17c){var _17d=_17c.indexOf(this.scheme);var _17e=0;if(_17d===0){_17e=this.scheme.length+2;}var _17f="";var _180=_17c.indexOf("/",_17e);var _181=_17c.indexOf("?");var _182=_17c.lastIndexOf("#");if(_181>=0){_17f=_17c.substring(_180+1,_181);}else{if(_182>=0&&_180!=-1){_17f=_17c.substring(_180+1,_182);}else{if(_180!=-1){_17f=_17c.substring(_180+1);}}}return _17f;},_extractQuery:function(_183){var _184={};var _185=_183.split("?");if(_185.length>1){_184=dojo.queryToObject(_185[1].split("#")[0]);}return _184;},_extractAnchor:function(_186){var _187="";var _188=_186.split("#");if(_188.length>1){_187=_188[_188.length-1];}return _187;},_isIPv6:function(_189){return _189.indexOf(":")!=-1;},_equalsServer:function(_18a){return this.server.toLowerCase()==(this._isIPv6(_18a)?"["+_18a+"]":_18a).toLowerCase();}});}if(!dojo._hasResource["com.ibm.mm.enabler.utils.URLHelper"]){dojo._hasResource["com.ibm.mm.enabler.utils.URLHelper"]=true;dojo.provide("com.ibm.mm.enabler.utils.URLHelper");dojo.declare("com.ibm.mm.enabler.utils.URLHelperImpl",com.ibm.mashups.enabler.utils.URLHelper,{rewriteURL:function(_18b){var _18c=new com.ibm.mm.enabler.utils.HttpUrl(_18b);return _18c.toProxifiedString();}});com.ibm.mashups.enabler.utils.URLHelper=new com.ibm.mm.enabler.utils.URLHelperImpl();com.ibm.mm.enabler.utils.URLHelper=com.ibm.mashups.enabler.utils.URLHelper;}if(!dojo._hasResource["com.ibm.mashups.enabler.utils.URLHelper"]){dojo._hasResource["com.ibm.mashups.enabler.utils.URLHelper"]=true;dojo.provide("com.ibm.mashups.enabler.utils.URLHelper");}if(!dojo._hasResource["com.ibm.mm.enabler.services.ConfigObjectExtendedImpl"]){dojo._hasResource["com.ibm.mm.enabler.services.ConfigObjectExtendedImpl"]=true;dojo.provide("com.ibm.mm.enabler.services.ConfigObjectExtendedImpl");dojo.declare("com.ibm.mm.enabler.services.ConfigObjectExtendedImpl",[com.ibm.mm.enabler.services.ConfigObjectDefaultImpl],{constructor:function(_18d,_18e){this.valuesArray=null;this.provider=_18d;this.configService=_18e;},_getValue:function(_18f,name){if(!this.valuesArray){this._loadConfigData(_18f);}return this.valuesArray[name];},_getValueDeferred:function(_190,name){return new com.ibm.mm.enabler.DeferredImpl(this,function(_191,sync,name){var _192=_191.getFinishedCallback();if(!this.valuesArray){dojo["require"]("com.ibm.mashups.enabler.xml.XPath");dojo["require"]("com.ibm.mashups.enabler.model.url.ModelUrlFactory");dojo["require"]("com.ibm.mm.enabler.services.ModelRestServiceRequest");var _193="ConfigProvider."+_190;var _194=ibmConfig[_193];if((typeof _194!="undefined")||(_194!==null)){_190=_194;}var _195=com.ibm.mashups.enabler.model.url.ModelUrlFactory.createModelURL(com.ibm.mashups.enabler.model.url.ModelUrlFactory.CONFIG_URL,this);_195.setSchemeSpecificPart("/"+_190+"/*");var _196=new com.ibm.mm.enabler.services.ModelRestServiceRequest(_195,null,null,false,sync);var me=this;_196.read(function(type,data,xhr,args){if(!me.valuesArray){me.valuesArray={};}var _197=com.ibm.mashups.enabler.xml.XPath.evaluateXPath("http://atom:entry/atom:content/preferences/root/node/map/*",data,me.ns);if(_197&&_197.length>0){for(var i=0,l=_197.length;i0){for(var i=0;i<_19e.length;i++){var name=_19e[i].getAttribute("key");var _19f=_19e[i].getAttribute("value");ret[name]=_19f;}}});this.valuesArray=ret;}});}if(!dojo._hasResource["com.ibm.mashups.enabler.strategy.Strategy"]){dojo._hasResource["com.ibm.mashups.enabler.strategy.Strategy"]=true;dojo.provide("com.ibm.mashups.enabler.strategy.Strategy");dojo.declare("com.ibm.mashups.enabler.strategy.Strategy",null,{});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.Model_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.Model_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.Model_API");dojo.provide("com.ibm.mashups.enabler.model.Model");dojo.declare("com.ibm.mashups.enabler.model.Model",null,{setStrategy:function(_1a0){},getStrategies:function(){},getStrategy:function(_1a1){},addStrategy:function(_1a2){},removeStrategy:function(_1a3){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.Model"]){dojo._hasResource["com.ibm.mashups.enabler.model.Model"]=true;dojo.provide("com.ibm.mashups.enabler.model.Model");}if(!dojo._hasResource["com.ibm.mashups.enabler.strategy.NoCacheStrategy"]){dojo._hasResource["com.ibm.mashups.enabler.strategy.NoCacheStrategy"]=true;dojo.provide("com.ibm.mashups.enabler.strategy.NoCacheStrategy");dojo.declare("com.ibm.mashups.enabler.strategy.NoCacheStrategy",com.ibm.mashups.enabler.strategy.Strategy,{_apply:function(_1a4){_1a4.setHeader("Pragma","no-cache");_1a4.setHeader("Cache-Control","no-cache");_1a4.setHeader("If-Modified-Since","Thu, 1 Jan 1970 00:00:00 GMT");}});}if(!dojo._hasResource["com.ibm.mm.enabler.model.ModelImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.ModelImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.ModelImpl");dojo.declare("com.ibm.mm.enabler.model.ModelImpl",com.ibm.mashups.enabler.model.Model,{strategy:null,constructor:function(){this.modelMessages=dojo.i18n.getLocalization("com.ibm.mm.enabler","modelMessages");},setStrategy:function(_1a5){if(_1a5===null||typeof _1a5=="undefined"){this.strategy=null;}else{if(com.ibm.mm.enabler.utils.Misc.isInstanceOf(_1a5,Array)){if(_1a5.length>0){this.strategy=[];dojo.forEach(_1a5,function(item,idx,arr){this.strategy.push(item);this._preprocessStrategy(item);},this);}}else{this.strategy=[_1a5];this._preprocessStrategy(_1a5);}}},getStrategies:function(){return this.strategy||[];},addStrategy:function(_1a6){if(_1a6===null||typeof _1a6=="undefined"){throw new Error(this.modelMessages.E_PARAM_ISNULL_0);}if(null===this.strategy){this.strategy=[];}this._preprocessStrategy(_1a6);for(var i=0,l=this.strategy.length;i=0)){this.strategy.splice(s,1+s);}},getStrategy:function(s){if(!this.strategy){return null;}else{if(dojo.isString(s)){return this._findStrategyByType(s);}else{if(!isNaN(s)&&(s=0)){return this.strategy[s];}else{return null;}}}},_findStrategyByType:function(type){var i=this._getIndexOfStrategyByType(type);return i>=0?this.strategy[i]:null;},_getIndexOfStrategyByType:function(type){if(this.strategy){for(var i=0,l=this.strategy.length;i=0){me._doLogin();return;}if(dojo.isIE||window.ActiveXObject!==undefined){data=com.ibm.mm.enabler.utils.Dom.createDocument(xhr.responseText);}_1ad(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_LOAD,data,xhr,_1ae);},error:function(_1b2,_1b3){var xhr=_1b3.xhr;var _1b4=xhr.status;if(_1b4==401){me._doLogin();return;}_1ad(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_ERROR,null,xhr,_1ae);},sync:this._sync,postData:feed.toString(),handleAs:this._handleAs};dojo.rawXhrPost(args);},read:function(_1b5,_1b6){if(this._textOnly){this._retrieveRawFeed(_1b5,_1b6);}else{this._retrieve(_1b5,_1b6);}},update:function(feed,_1b7,_1b8){this._updateCookie();var me=this;var args={url:this._feedURI,ibmMultipart:{context:com.ibm.mashups.enabler.io.XHRMultipartFactory.CONTEXT_ENABLER},load:function(_1b9,_1ba){var xhr=_1ba.xhr;var xrd=xhr.getResponseHeader("X-Request-Digest");if(xrd!==null){com.ibm.mm.enabler.services.ModelRestServiceRequestStatic.setXRequestDigest(xrd);}var _1bb=xhr.getResponseHeader("Content-Type");if(typeof _1bb!="undefined"&&_1bb!==null&&_1bb.indexOf("text/html")>=0){me._doLogin();return;}dojo.partial(_1b7)(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_LOAD,_1b9,xhr,_1b8);},error:function(_1bc,_1bd){var xhr=_1bd.xhr;var _1be=xhr.status;if(_1be==401){me._doLogin();return;}dojo.partial(_1b7)(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_ERROR,null,xhr,_1b8);},sync:this._sync,handleAs:this._handleAs};var _1bf={"Content-Type":"application/atom+xml; charset=utf-8","X-IBM-XHR":"true"};var _1c0=com.ibm.mashups.enabler.io.XHRMultipartFactory.create();var _1c1=_1c0.isTransaction();if(com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME).getValue(com.ibm.mashups.enabler.services.ConfigConstants.TUNNEL_MODE)===true&&(!_1c1||this._sync)){_1bf[this.POST_ACTION_HEADER]=this.REQUEST_METHOD_PUT;args.headers=_1bf;args.postData=feed;dojo.rawXhrPost(args);}else{args.putData=feed;args.headers=_1bf;dojo.rawXhrPut(args);}},remove:function(_1c2,_1c3){this._updateCookie();var me=this;var args={url:this._feedURI,ibmMultipart:{context:com.ibm.mashups.enabler.io.XHRMultipartFactory.CONTEXT_ENABLER},load:function(_1c4,_1c5){var type=com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_LOAD;var data=_1c4;var xhr=_1c5.xhr;var xrd=xhr.getResponseHeader("X-Request-Digest");if(xrd!==null){com.ibm.mm.enabler.services.ModelRestServiceRequestStatic.setXRequestDigest(xrd);}var _1c6=xhr.getResponseHeader("Content-Type");if(typeof _1c6!="undefined"&&_1c6!==null&&_1c6.indexOf("text/html")>=0){me._doLogin();return;}if(dojo.isIE||window.ActiveXObject!==undefined){data=com.ibm.mm.enabler.utils.Dom.createDocument(xhr.responseText);}_1c2(type,data,xhr,_1c3);},error:function(_1c7,_1c8){var xhr=_1c8.xhr;var _1c9=xhr.status;if(_1c9==401){me._doLogin();return;}_1c2(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_ERROR,null,xhr,_1c3);},sync:this._sync,handleAs:this._handleAs};var _1ca={"Content-Type":"application/atom+xml","X-IBM-XHR":"true"};if(com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME).getValue(com.ibm.mashups.enabler.services.ConfigConstants.TUNNEL_MODE)===true){_1ca[this.POST_ACTION_HEADER]=this.REQUEST_METHOD_DELETE;args.headers=_1ca;dojo.rawXhrPost(args);}else{args.headers=_1ca;dojo.xhrDelete(args);}},_retrieveRawFeed:function(_1cb,_1cc){var _1cd=this._headers;_1cd["X-IBM-XHR"]=true;var me=this;dojo.xhrGet({url:this._feedURI,headers:_1cd,ibmMultipart:{context:com.ibm.mashups.enabler.io.XHRMultipartFactory.CONTEXT_ENABLER},load:function(data,_1ce){var xhr=_1ce.xhr;var xrd=xhr.getResponseHeader("X-Request-Digest");if(xrd!==null){com.ibm.mm.enabler.services.ModelRestServiceRequestStatic.setXRequestDigest(xrd);}if((me.logoutVerificationForRaw)&&(xhr.responseText)){var _1cf=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME).getValue(com.ibm.mashups.enabler.services.ConfigConstants.LOGOUT_VERIFICATION_REGEXP);if(_1cf){var _1d0=new RegExp(_1cf);if(_1d0&&(xhr.responseText.match(_1d0))){me._doLogin();return;}}}_1cb(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_LOAD,data,_1ce.xhr,_1cc);},error:function(data,_1d1){var xhr=_1d1.xhr;var _1d2=xhr.status;if(_1d2==401){me._doLogin();return;}_1cb(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_ERROR,data,_1d1.xhr,_1cc);},sync:this._sync,handleAs:this._handleAs});},_retrieve:function(_1d3,_1d4,_1d5,_1d6){var _1d7={};var mt="xml";if(dojo.isIE||window.ActiveXObject!==undefined){mt="text";}var _1d8=this._headers;_1d8["X-IBM-XHR"]=true;var me=this;var args={url:this._feedURI,content:_1d7,headers:_1d8,ibmMultipart:{context:com.ibm.mashups.enabler.io.XHRMultipartFactory.CONTEXT_ENABLER},load:function(_1d9,_1da){var data=_1d9;var xhr=_1da.xhr;var xrd=xhr.getResponseHeader("X-Request-Digest");if(xrd!==null){com.ibm.mm.enabler.services.ModelRestServiceRequestStatic.setXRequestDigest(xrd);}var _1db=xhr.getResponseHeader("Content-Type");if(typeof _1db!="undefined"&&_1db!==null&&_1db.indexOf("text/html")>=0){me._doLogin();return;}if(dojo.isIE||window.ActiveXObject!==undefined){var doc=com.ibm.mm.enabler.utils.Dom.createDocument(data);_1d3(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_LOAD,doc,xhr,_1d4);}else{_1d3(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_LOAD,data,xhr,_1d4);}},error:function(_1dc,_1dd){var data=_1dc;var xhr=_1dd.xhr;var _1de=xhr.status;if(_1de==401){me._doLogin();return;}if(dojo.isIE||window.ActiveXObject!==undefined){var doc=null;try{if(data){doc=com.ibm.mm.enabler.utils.Dom.createDocument(data);}}catch(e){}_1d3(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_ERROR,doc,xhr,_1d4);}else{_1d3(com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_ERROR,data,xhr,_1d4);}},sync:this._sync,handleAs:mt};var _1df="Get";if(this._formNode){args.form=this._formNode;_1df="Post";}if(this._formFilter){args.formFilter=this._formFilter;}dojo["xhr"+_1df](args);},_updateCookie:function(){var dt=new Date();var _1e0={};_1e0.path=this._config.getValue(com.ibm.mashups.enabler.services.ConfigConstants.CONTEXT_ROOT);dojo.cookie(this.MODIFICATION_COOKIE,dt.getTime(),_1e0);},_doLogin:function(){dojo["require"]("com.ibm.mashups.enabler.model.state.NavigationStateModelFactory");dojo["require"]("com.ibm.mashups.enabler.model.state.UrlGeneratorFactory");var pid=null;var url=document.location.href;var cb=function(url){if(url){top.location.href=url;}};var _1e1=com.ibm.mashups.enabler.model.state.NavigationStateModelFactory.getNavigationStateModel();com.ibm.mashups.enabler.model.state.UrlGeneratorFactory.getURLGenerator().getUrl(_1e1,cb,{nohash:"true"});},toString:function(){return this._feedURI;}});com.ibm.mm.enabler.services.ModelRestServiceRequestStatic={xRequestDigest:null,getXRequestDigest:function(){if((null===this.xRequestDigest)&&(ibmConfig["com.ibm.resolver.digest"])){this.xRequestDigest=ibmConfig["com.ibm.resolver.digest"];}return this.xRequestDigest;},setXRequestDigest:function(_1e2){this.xRequestDigest=_1e2;},invalidateXRequestDigest:function(){var dt=new Date();var _1e3=dt.getTime();this.setXRequestDigest(_1e3);var _1e4={};var cs=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME);_1e4.path=cs.getValue(com.ibm.mashups.enabler.services.ConfigConstants.CONTEXT_ROOT);dojo.cookie("modified.id",_1e3,_1e4);}};com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_LOAD="load";com.ibm.mm.enabler.services.ModelRestServiceRequest.XHR_STATUS_ERROR="error";}if(!dojo._hasResource["com.ibm.mm.enabler.endpoints.XHREndpointExtensionImpl"]){dojo._hasResource["com.ibm.mm.enabler.endpoints.XHREndpointExtensionImpl"]=true;dojo.provide("com.ibm.mm.enabler.endpoints.XHREndpointExtensionImpl");dojo.declare("com.ibm.mm.enabler.endpoints.XHREndpointExtensionImpl",null,{LOG_LEVEL:com.ibm.mashups.enabler.logging.LogLevel.TRACE,constructor:function(){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);this.LOG_METHOD="dojo.xhrGet()";this.bIsLoggable=this.LOGGER.isLoggable(this.LOG_LEVEL);this.originalDojoXHR=dojo.xhr;dojo.xhr=dojo.hitch(this,function(_1e5,args,_1e6){if(this.bIsLoggable){this.LOGGER.entering(this.LOG_METHOD,[args]);}var url=args.url;var url2=com.ibm.mm.enabler.EndpointUtils.checkForEndpoints(url);url2=url2||null;if(url2!==null){args.url=url2;}var ret=this.originalDojoXHR(_1e5,args,_1e6);if(this.bIsLoggable){this.LOGGER.exiting(this.LOG_METHOD);}return ret;});}});com.ibm.mm.enabler.endpoints.XHREndpointExtension=new com.ibm.mm.enabler.endpoints.XHREndpointExtensionImpl();}if(!dojo._hasResource["com.ibm.mm.enabler.services.ConfigServiceExtendedImpl"]){dojo._hasResource["com.ibm.mm.enabler.services.ConfigServiceExtendedImpl"]=true;dojo.provide("com.ibm.mm.enabler.services.ConfigServiceExtendedImpl");dojo.declare("com.ibm.mm.enabler.services.ConfigServiceExtendedImpl",[com.ibm.mm.enabler.services.ConfigServiceDefaultImpl],{constructor:function(){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger("com.ibm.mm.enabler.services.ConfigServiceExtendedImpl");},_getConfigObject:function(_1e7){if(!ibmConfig["CO_"+_1e7]){var co=new com.ibm.mm.enabler.services.ConfigObjectExtendedImpl(_1e7,this);ibmConfig["CO_"+_1e7]=co;}return ibmConfig["CO_"+_1e7];},_getConfigProviderNames:function(){dojo["require"]("com.ibm.mashups.enabler.model.url.ModelUrlFactory");var ret=[];ret.push("all");var _1e8=com.ibm.mashups.enabler.model.url.ModelUrlFactory.createModelURL(com.ibm.mashups.enabler.model.url.ModelUrlFactory.CONFIG_URL,this);_1e8.setSchemeSpecificPart("/*");_1e8.setParameter("rep","compact");var _1e9=new com.ibm.mm.enabler.services.ModelRestServiceRequest(_1e8,null,null,false,true);var me=this;_1e9.read(function(type,data,xhr,args){var _1ea=com.ibm.mashups.enabler.xml.XPath.evaluateXPath("http://atom:entry/atom:id",data,me.ns);if(_1ea&&_1ea.length>0){for(var i=0,l=_1ea.length;i0){var _1fc=[];for(var ii=0,ll=_1fb.length;ii0){var _205=[];for(var ii=0,ll=_204.length;iithis.max_version)){_209=-1000;}_207[i]=_209;}var _20b=-1;var _20c=1000;for(i=0,scl=_207.length;i_20c){_20b=i;_20c=_207[i];}}if(_20b==-1){return null;}return this.cache[_20b];},_processCollection:function(i,node){var ret={};var _20d="app:categories//atom:category[@term]";var _20e=com.ibm.mashups.enabler.xml.XPath.evaluateXPath(_20d,node,this.ns);var _20f=[];if(_20e){for(var jj=0,ll=_20e.length;jj0;i--){if(fn===this._dirtyCallbacks[i-1].fn){this._dirtyCallbacks.splice(i-1,1);break;}}}}});}if(!dojo._hasResource["com.ibm.mashups.enabler.DirtyFlagProvider"]){dojo._hasResource["com.ibm.mashups.enabler.DirtyFlagProvider"]=true;dojo.provide("com.ibm.mashups.enabler.DirtyFlagProvider");}if(!dojo._hasResource["com.ibm.mashups.enabler.Discardable_API"]){dojo._hasResource["com.ibm.mashups.enabler.Discardable_API"]=true;dojo.provide("com.ibm.mashups.enabler.Discardable_API");dojo.provide("com.ibm.mashups.enabler.Discardable");dojo.declare("com.ibm.mashups.enabler.Discardable",null,{discard:function(node){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.Discardable"]){dojo._hasResource["com.ibm.mashups.enabler.Discardable"]=true;dojo.provide("com.ibm.mashups.enabler.Discardable");}if(!dojo._hasResource["com.ibm.mashups.enabler.Identifiable"]){dojo._hasResource["com.ibm.mashups.enabler.Identifiable"]=true;dojo.provide("com.ibm.mashups.enabler.Identifiable");dojo.declare("com.ibm.mashups.enabler.Identifiable",null,{getID:function(){},getUniqueName:function(){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.Invalidatable_API"]){dojo._hasResource["com.ibm.mashups.enabler.Invalidatable_API"]=true;dojo.provide("com.ibm.mashups.enabler.Invalidatable_API");dojo.provide("com.ibm.mashups.enabler.Invalidatable");dojo.declare("com.ibm.mashups.enabler.Invalidatable",null,{invalidate:function(node){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.Invalidatable"]){dojo._hasResource["com.ibm.mashups.enabler.Invalidatable"]=true;dojo.provide("com.ibm.mashups.enabler.Invalidatable");}if(!dojo._hasResource["com.ibm.mashups.enabler.Locator"]){dojo._hasResource["com.ibm.mashups.enabler.Locator"]=true;dojo.provide("com.ibm.mashups.enabler.Locator");dojo.declare("com.ibm.mashups.enabler.Locator",null,{find:function(id){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.ListModel"]){dojo._hasResource["com.ibm.mashups.enabler.ListModel"]=true;dojo.provide("com.ibm.mashups.enabler.ListModel");dojo.declare("com.ibm.mashups.enabler.ListModel",[com.ibm.mashups.enabler.model.Model,com.ibm.mashups.enabler.Locator],{iterator:function(){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.ListModelController"]){dojo._hasResource["com.ibm.mashups.enabler.ListModelController"]=true;dojo.provide("com.ibm.mashups.enabler.ListModelController");dojo.declare("com.ibm.mashups.enabler.ListModelController",com.ibm.mashups.enabler.ListModel,{create:function(_22b){},confirmCreate:function(_22c){},insert:function(node,_22d){},confirmInsert:function(node,_22e){},remove:function(node){},confirmRemove:function(node){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.Localized_API"]){dojo._hasResource["com.ibm.mashups.enabler.Localized_API"]=true;dojo.provide("com.ibm.mashups.enabler.Localized_API");dojo.provide("com.ibm.mashups.enabler.Localized");dojo.declare("com.ibm.mashups.enabler.Localized",null,{getLocales:function(){},getTitle:function(_22f){},getTitles:function(){},getDescription:function(_230){},getDescriptions:function(_231){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.ModifiableLocalized"]){dojo._hasResource["com.ibm.mashups.enabler.ModifiableLocalized"]=true;dojo.provide("com.ibm.mashups.enabler.ModifiableLocalized");dojo.declare("com.ibm.mashups.enabler.ModifiableLocalized",com.ibm.mashups.enabler.Localized,{setTitle:function(_232,_233){},confirmSetTitle:function(_234,_235){},removeTitle:function(_236){},confirmRemoveTitle:function(_237){},removeTitles:function(){},confirmRemoveTitles:function(){},setDescription:function(desc,_238){},confirmSetDescription:function(desc,_239){},removeDescription:function(_23a){},confirmRemoveDescription:function(_23b){},removeDescriptions:function(){},confirmRemoveDescriptions:function(){}});}if(!dojo._hasResource["com.ibm.mashups.enabler.Localized"]){dojo._hasResource["com.ibm.mashups.enabler.Localized"]=true;dojo.provide("com.ibm.mashups.enabler.Localized");}if(!dojo._hasResource["com.ibm.mashups.enabler.Representation_API"]){dojo._hasResource["com.ibm.mashups.enabler.Representation_API"]=true;dojo.provide("com.ibm.mashups.enabler.Representation_API");dojo.provide("com.ibm.mashups.enabler.Representation");dojo.declare("com.ibm.mashups.enabler.Representation",com.ibm.mashups.enabler.Identifiable,{getID:function(){},getURL:function(){},getMimeType:function(){}});}if(!dojo._hasResource["com.ibm.mm.enabler.RepresentationImpl"]){dojo._hasResource["com.ibm.mm.enabler.RepresentationImpl"]=true;dojo.provide("com.ibm.mm.enabler.RepresentationImpl");dojo.declare("com.ibm.mm.enabler.RepresentationImpl",com.ibm.mashups.enabler.Representation,{constructor:function(url,type){this.url=url;this.type=type;},getID:function(){return this.type;},getURL:function(){return this.url;},getMimeType:function(){return this.type;}});}if(!dojo._hasResource["com.ibm.mashups.enabler.Representation"]){dojo._hasResource["com.ibm.mashups.enabler.Representation"]=true;dojo.provide("com.ibm.mashups.enabler.Representation");}if(!dojo._hasResource["com.ibm.mashups.enabler.RepresentationProvider_API"]){dojo._hasResource["com.ibm.mashups.enabler.RepresentationProvider_API"]=true;dojo.provide("com.ibm.mashups.enabler.RepresentationProvider_API");dojo.provide("com.ibm.mashups.enabler.RepresentationProvider");dojo.declare("com.ibm.mashups.enabler.RepresentationProvider",null,{getAlternateModel:function(){}});}if(!dojo._hasResource["com.ibm.mm.enabler.RepresentationModelImpl"]){dojo._hasResource["com.ibm.mm.enabler.RepresentationModelImpl"]=true;dojo.provide("com.ibm.mm.enabler.RepresentationModelImpl");dojo.declare("com.ibm.mm.enabler.RepresentationModelImpl",[com.ibm.mashups.enabler.ListModel,com.ibm.mm.enabler.DeferredIteratorImpl],{constructor:function(_23c){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);this.LOG_LEVEL=com.ibm.mashups.enabler.logging.LogLevel.TRACE;this.loadedNodes={};this.entries=[];this.cursor=0;this.size=null;this.start=null;this.num=null;this.strategy=null;if(_23c&&_23c.length>0){this.size=_23c.length;for(var i=0;i<_23c.length;i++){var link=_23c[i];var url=link.getAttribute("href");var _23d=link.getAttribute("type");var uri=_23d;var node=new com.ibm.mm.enabler.RepresentationImpl(url,_23d);this.entries[i]=uri;this.loadedNodes[uri]=node;}}},find:function(uri){return new com.ibm.mm.enabler.DeferredImpl(this,this._find,uri);},_find:function(_23e,sync,uri){return this._load(uri,_23e,sync);},start:function(sync){while(this._hasNext(this,sync)){if(this._next(this,sync)){continue;}else{break;}}},hasNext:function(){return this._hasNext(null,true);},_hasNext:function(_23f,sync){if(this.start===null||this.cursor=(this.start+this.num)&&(this.size>this.cursor))){this._loadAhead(_23f,sync);}return (this.size>this.cursor);},next:function(){return this._next(null,true);},_next:function(_240,sync){return this._hasNext(_240,sync)?this.loadedNodes[this.entries[this.cursor++]]:null;},size:function(){return this.size;},setCursorPosition:function(_241){this.cursor=_241;},getCursorPosition:function(){return this.cursor;},setStrategy:function(_242){if(com.ibm.mm.enabler.utils.Misc.isInstanceOf(_242,Array)){this.strategy=_242[0];}else{this.strategy=_242;}},_load:function(uri,_243,sync){var _244="_load";var _245=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_245){this.LOGGER.entering(_244,arguments);}if(uri in this.loadedNodes){if(_243){_243.finish(this.loadedNodes[uri],com.ibm.mm.enabler.model.HttpStatusCodes.HTTP_OK);}}if(_245){this.LOGGER.exiting(_244,this.loadedNodes[uri]);}return this.loadedNodes[uri];},_loadAhead:function(_246,sync){}});}if(!dojo._hasResource["com.ibm.mm.enabler.RepresentationProviderImpl"]){dojo._hasResource["com.ibm.mm.enabler.RepresentationProviderImpl"]=true;dojo.provide("com.ibm.mm.enabler.RepresentationProviderImpl");dojo.declare("com.ibm.mm.enabler.RepresentationProviderImpl",com.ibm.mashups.enabler.RepresentationProvider,{constructor:function(){this.serviceJson=com.ibm.mm.enabler.model.ServiceDocumentModel.getCollectionData(com.ibm.mm.enabler.model.ServiceDocumentModel.SERVICE_NAVIGATION);var nsf=com.ibm.mm.enabler.model.NameSpaceFactory;this.r_ns=dojo.delegate(this.serviceJson.namespaces,nsf.getNameSpaces([nsf.NS_ATOM,nsf.NS_XML]));this.XPATH="atom:link";},getAlternateModel:function(){var _247=[];var md=com.ibm.mashups.enabler.xml.XPath.evaluateXPath(this.XPATH,this.xmlData,this.r_ns);if(md&&md.length>0){for(var i=0,l=md.length;i0){if(i#%{}|\\^~[]`\"Z",constructor:function(){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);},isUnsafeChar:function(_2a9){if(this.UNSAFE_CHARS.indexOf(_2a9)>-1||_2a9.charCodeAt(0)<=32||_2a9.charCodeAt(0)>=123){return true;}return false;},zEncode:function(_2aa){var _2ab="";for(var i=0;i<_2aa.length;++i){var _2ac=_2aa.charAt(i);if(!this.isUnsafeChar(_2ac)){_2ab+=_2ac;continue;}_2ab+=this.zEncodeChar(_2ac);}return _2ab;},zEncodeChar:function(_2ad){var _2ae="Z";return _2ae+this.byteToHex(_2ad.charCodeAt(0));},byteToHex:function(_2af){var _2b0=Math.floor(_2af/16);var _2b1=_2af%16;return this.HEX_CHARS[_2b0]+this.HEX_CHARS[_2b1];},zDecode:function(_2b2){var _2b3="";var _2b4="Z";if(_2b2.indexOf(_2b4)!=-1){for(var i=0,l=_2b2.length;i0){_2ba.dwords.push(_2ba.dword);len+=((_2ba.bits+7)>>3);_2ba.bits=0;}return this._encodeBase64(_2ba.dwords,0,len);},_initStream:function(_2bb){_2bb.dword=0;_2bb.mask=1;_2bb.bits=0;_2bb.dwords=[];return _2bb;},_addBits:function(_2bc,data){var mask=_2bc.mask,_2bd=_2bc.dword,bits=_2bc.bits;var len=data.length,off=0;while(len>0){var copy=Math.min(len,32-bits);for(var i=0;i>2;var _2c0=off&3;var _2c1=data[_2bf++],_2c2;var c1,c2,c3,c4;var _2c3="";for(var i=len;i>0;i-=3){switch(_2c0){case 0:c1=((_2c1>>2)&63);c2=((_2c1<<4)&48)|((_2c1>>12)&15);c3=((_2c1>>6)&60)|((_2c1>>22)&3);c4=((_2c1>>16)&63);_2c0=3;break;case 1:c1=((_2c1>>10)&63);c2=((_2c1>>4)&48)|((_2c1>>20)&15);c3=((_2c1>>14)&60)|((_2c1>>30)&3);c4=((_2c1>>24)&63);_2c0=0;_2c1=data[_2bf++];break;case 2:_2c2=data[_2bf++];c1=((_2c1>>18)&63);c2=((_2c1>>12)&48)|((_2c1>>28)&15);c3=((_2c1>>22)&60)|((_2c2>>6)&3);c4=(_2c2&63);_2c1=_2c2;_2c0=1;break;case 3:_2c2=data[_2bf++];c1=((_2c1>>26)&63);c2=((_2c1>>20)&48)|((_2c2>>4)&15);c3=((_2c2<<2)&60)|((_2c2>>14)&3);c4=((_2c2>>8)&63);_2c1=_2c2;_2c0=2;break;}switch(i){case 1:c3=64;c4=64;break;case 2:c4=64;break;}_2c3+=ab.charAt(c1);_2c3+=ab.charAt(c2);_2c3+=ab.charAt(c3);_2c3+=ab.charAt(c4);}return _2c3;},_decodeBase64:function(_2c4){var ab=this.URL_ALPHABET;var len=_2c4.length/4;var i=0;var _2c5=[];for(var j=0;j>4);c2=((indexC2&15)<<4)|(indexC3>>2);c3=((indexC3&3)<<6)|indexC4;_2c5.push(c1);switch(_2c6){case 0:_2c5.push(c2);_2c5.push(c3);break;case 1:_2c5.push(c2);break;case 2:break;}}return _2c5;},_frequencyCompare:function(n1,n2){return n1.frequency-n2.frequency;},_initTree:function(_2c7,node,_2c8){if(node.left&&node.right){this._addBit(_2c7,1);this._initTree(_2c7,node.left,_2c8.concat(0));this._initTree(_2c7,node.right,_2c8.concat(1));}else{this._addBit(_2c7,0);node.prefix=_2c8;_2c7.tokens.push(node.name);}return _2c7;},_dumpTokens:function(tree,_2c9){var _2ca=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_2ca){for(var i=0;i=0;--i){var _2cd=_2cb[i];node=_2cc[_2cd];if(node){node.frequency++;}else{node={frequency:1,name:_2cd};_2cc[_2cd]=node;}}var _2ce=[];for(node in _2cc){if(Object.prototype.hasOwnProperty.call(_2cc,node)){_2ce.push(_2cc[node]);}}_2ce.sort(this._frequencyCompare);while(_2ce.length>1){var left=_2ce.shift(),_2cf=_2ce.shift();_2ce.push({frequency:left.frequency+_2cf.frequency,left:left,right:_2cf});_2ce.sort(this._frequencyCompare);}var root=_2ce[0];var tree=this._initTree(this._initStream({tokens:[]}),_2ce.shift(),[]);this._dumpTokens(tree,_2cc);var url=this._encodeStream(tree);len=tree.tokens.length;for(i=0;i=0)&&(i1>=0)){var _2d6=this._decodeBase64(tree.substring(0,i0));var _2d7=tree.substring(i0+1,i1).split("/");var _2d8=this._decodeBase64(tree.substring(i1+1));encodedTokens=this._decodeTokens(_2d7);var root=this._readStructure(this._convertBitToChar(_2d6),encodedTokens);var _2d9=this._convertBitToChar(_2d8);var _2da="";while(_2d9.length>0){_2da=this._buildData(_2da,_2d9,root);}return _2da;}return null;},_buildData:function(_2db,_2dc,root){var _2dd=false;var node=null;while(!_2dd){var bit=_2dc.shift();if(typeof bit=="undefined"){node=null;break;}node=this._getNode(bit,root);if(node&&node.token&&node.token){_2dd=true;}else{if(!node){_2dd=true;}}root=node;}if(_2dd&&node){_2db=_2db.concat(node.token);}return _2db;},_getNode:function(bit,_2de){var node=null;node=(bit==1)?_2de.right:_2de.left;if(!node){return null;}return node;},_convertBitToChar:function(_2df){var arr=[];var mask=1;var bit=0;for(var i=0;i<_2df.length;i++){var _2e0=_2df[i];for(var j=0;j<8;j++){bit=_2e0&mask;arr.push(bit);_2e0=(_2e0>>1);}}return arr;},_readStructure:function(_2e1,_2e2){var bit=_2e1.shift();var node={};if(bit==1){node.left=this._readStructure(_2e1,_2e2);node.right=this._readStructure(_2e1,_2e2);}else{var _2e3=_2e2.shift();node.token=_2e3;}return node;},_decodeTokens:function(_2e4){var arr=[];for(var i in _2e4){if(Object.prototype.hasOwnProperty.call(_2e4,i)){arr.push(com.ibm.mm.enabler.encode.huffman.ZEncoder.zDecode(_2e4[i]));}}return arr;}});com.ibm.mm.enabler.encode.huffman.HuffmanURL=new com.ibm.mm.enabler.encode.huffman.HuffmanURL();}if(!dojo._hasResource["com.ibm.mm.enabler.ArrayMap"]){dojo._hasResource["com.ibm.mm.enabler.ArrayMap"]=true;dojo.provide("com.ibm.mm.enabler.ArrayMap");dojo.declare("com.ibm.mm.enabler.ArrayMap",null,{constructor:function(){this.entries=[];this.keys={};},values:function(){return this.entries;},put:function(key,_2e5){var _2e6=this.keys[key];if(typeof _2e6!="undefined"&&_2e6!==null){this.entries[_2e6]=_2e5;}else{_2e6=this.entries.length;this.entries.push(_2e5);this.keys[key]=_2e6;}},getKey:function(_2e7){if(_2e7=400){if(this.error){this.error(new Error(_2f6.xhr.status+": "+_2f7.URI),_2f6,_2f7);}}else{if(this.load){this.load(_2f5,_2f6,_2f7);}}}if(this.handle){this.handle(_2f5,_2f6,_2f7);}}catch(err){try{if(this.error){this.error(_2f5,_2f6,_2f7);}}catch(err2){}}});work();},_handleMultiPartResponse:function(_2f8,_2f9,_2fa,_2fb,_2fc){var _2fd=_2fc.xhr.getResponseHeader("Content-Type");var _2fe=_2fd.match(_2fa.boundaryRegx);if(!_2fe){throw new Error("No boundary specified in Content-Type response header");}var _2ff=_2fe[1];var _300=_2ff.indexOf(";");if(_300!=-1){_2ff=_2ff.substring(0,_300);}var _301=new RegExp(_2fa.newL+_2fa.sep+_2ff,"mg");var _302=_2fb.split(_301);var _303=null;if(_2f9){_303=new com.ibm.mm.enabler.io.XHRMultipartImpl();_303.startTransaction();}var i=1;for(var _304 in _2f8){if(Object.prototype.hasOwnProperty.call(_2f8,_304)){var _305=_2f8[_304];for(var x=0,l=_305.length;x0)){if(-1==_308[1].indexOf(":")){continue;}if(-1==_308[1].indexOf("digest=")){var _30b=_308[1].match(_2fa.headerPartsRegx);_307[_30b[1]]=_30b[2];if(_30b[1]=="X-Status-Code"){_309=_30b[2];}else{if(_30b[1]=="Content-Type"){_2fd=_30b[2];}else{if(_30b[1]=="Content-Language"){_30a=_30b[2];}}}}}part=dojo.string.trim(part.substr(_2fa.headerRegx.lastIndex+_2fa.newL.length));var _30c="";var _30d="";var _30e=parseInt(_309,10);if(_30e<400){_30d=part;if(_306.handleAs=="xml"){_30c=com.ibm.mm.enabler.utils.Dom.createDocument(part);}else{_30c=dojo.contentHandlers[_306.handleAs]({responseText:part});}}else{if(_2fd&&_2fd.indexOf(this.CONTENT_TYPE_SOAP)===0){var _30f=com.ibm.mm.enabler.utils.Dom.createDocument(part);var _310="env:Fault/env:Reason/env:Text/@xml:lang";var _311=com.ibm.mashups.enabler.xml.XPath.evaluateXPath(_310,_30f,this.ns);if(!_30a){_30a=_2fc.xhr.getResponseHeader("Content-Language");}var _312=null;if(_30a&&_311){var _313=dojo.map(_311,function(node){return node.textContent;});_312=com.ibm.mm.enabler.utils.LocaleHelper.matchLocale(_30a,_313);}var expr="env:Fault/env:Reason/env:Text";if(_312){expr+="[@xml:lang='"+_312+"']";}var node=com.ibm.mashups.enabler.xml.XPath.evaluateEntry(expr,_30f,this.ns);if(node){_30d=com.ibm.mm.enabler.utils.Dom.textContent(node);_30c=_30d;}}}var _314=new com.ibm.mm.enabler.io.XHRWrapper(_2fc,_30d,_30e,_2fd,_307);var xhr=_2fc.xhr;_2fc.xhr=_314;_2fa._partHandler(_306,_30c,_2fc,_307);_2fc.xhr=xhr;}}}if(_2f9){var _315=false;if(_2fc&&_2fc["com.ibm.mm.Multipart.forceOnNextResponse"]){_315=_2fc["com.ibm.mm.Multipart.forceOnNextResponse"];}_303.endTransactionDeferred(_315).start();}},_multiPartXhr:function(_316,args,_317,_318){var body="";var _319=null;for(var _31a in _317){if(Object.prototype.hasOwnProperty.call(_317,_31a)){for(var _31b in _317[_31a]){if(Object.prototype.hasOwnProperty.call(_317[_31a],_31b)){var part=_317[_31a][_31b];part.handleAs=part.handleAs?part.handleAs.toLowerCase():"text";_319="";for(var x in part.headers){if(Object.prototype.hasOwnProperty.call(part.headers,x)){_319+=x+": "+part.headers[x]+this.newL;}}body+=this.startB+_319+this.newL;if(part.data&&part.data.length>1){body+=part.data+this.newL;}else{if(part.postData&&part.postData.length>1){body+=part.postData+this.newL;}else{if(part.putData&&part.putData.length>1){body+=part.putData+this.newL;}}}}}}}body+=this.endB;if(_316.toUpperCase()!="PUT"){_316="POST";}var me=this;var _31c;var _31d=dojo.mixin({},args,{load:function(_31e,_31f){me._handleMultiPartResponse(_317,_318,me,_31e,_31f);_31c=_31f.xhr.status;},error:function(_320,_321){for(var part in _317){for(var x=0,l=part.length;xthis.urlMaxLength){if(!this.splitTransactions){if(_33b){this.LOGGER.trace(_33a,"url is too long, falling back to POST");}_33c=this._doMultipartPOSTRequest(this.method,_339,this.multipartParts);}else{if(_33b){this.LOGGER.trace(_33a,"url is too long, split transactions is enabled");}_33c=this._doMultipartGETSplitRequest(_339,url);}}else{_33c=this._doMultipartGETRequest(url,_339);}}else{_33c=this._doMultipartPOSTRequest(this.method,_339,this.multipartParts);}return _33c;},_doMultipartGETSplitRequest:function(_33d,_33e){var urls=[];for(var url in _33d){urls.push(url);}if(urls.length==0){return 200;}var _33f;if(!_33e){_33f=this._createHuffmanUrl(_33d);}else{_33f=_33e;}if(_33f.length<=this.urlMaxLength||urls.length==1){return this._doMultipartGETRequest(_33f,_33d);}var half=Math.round(urls.length/2);var left={};for(var i=0;i_342?_340:_342;},_doMultipartGETRequest:function(url,_343){var me=this;xhrArgs={url:url,load:function(_344,_345){me._handleMultiPartResponse(_343,me.multipartParts,me,_344,_345);status=_345.xhr.status;},error:function(_346,_347){for(var part in _343){for(var x=0,l=part.length;x_34a){_34a=_34b;}}}else{var _34c={};var pub=_349[this.SCOPE_PUBLIC];for(var part in pub){if(Object.prototype.hasOwnProperty.call(pub,part)){for(var i=0,l=pub[part].length;i_354){_354=_355;}}}}else{var _357=this.partsArray;_354=this._loadPartsArray(_357);}if(_354!==0&&_34e){_34e(_34f);}if(_351){this.LOGGER.exiting(_350);}},endTransactionDeferred:function(_358){if(typeof _358!=="undefined"&&true===_358){this.multipartParts=true;}return new com.ibm.mm.enabler.DeferredOperationImpl(this,this._endTransaction);},_endTransaction:function(_359,sync){var _35a="_endTransaction(deferred, sync)";var _35b=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_35b){this.LOGGER.entering(_35a,[_359,sync]);}if(!this.doMultipart){if(_35b){this.LOGGER.exiting(_35a);}return;}this._release();if(0_35d){_35d=tmpStatus;}}}}else{var _35f=this.partsArray;_35d=this._loadPartsArray(_35f);}if(_35d!==0&&_359){var _360=_359.getOperationCallback();if(_360){_360(id,com.ibm.mashups.enabler.DeferredOperation.OPERATION_GET,xhr.status,myDeferred.getOperationCallbackParameters());}}if(_35b){this.LOGGER.exiting(_35a);}},_doMultipartPOSTRequest:function(_361,_362,_363){var _364=this._processMultipartBody(_362);this._initServiceDoc();var _365;if(_364){_365={url:this.serviceCHJson.url,sync:true};}else{_365={url:this.serviceMPJson.url,sync:true};}var _366=this._multiPartXhr(_361,_365,_362,_363);return _366;},_assocArraySize:function(_367){var size=0;for(var x in _367){if(Object.prototype.hasOwnProperty.call(_367,x)){size++;}}return size;},_addToPartsArray:function(_368,args){var _369=_368[args.url];if(!_369){_368[args.url]=[];_368[args.url][0]=args;}else{_369[_369.length]=args;}},_acquire:function(){this.statics.semaphore++;},_release:function(_36a,_36b){this.statics.semaphore--;},_createPocURI:function(args){var _36c="_createPocURI(args)";var _36d=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_36d){this.LOGGER.entering(_36c,args);}var url=args.url;var _36e=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME).getValue(com.ibm.mashups.enabler.services.ConfigConstants.PROXY_URL);var _36f=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME).getValue(com.ibm.mashups.enabler.services.ConfigConstants.LOCALAPPS_REGEX);_36e+="/http/";if(url.indexOf(_36e)===0){var _370="http://";var _371=url.indexOf("/",_36e.length+1);if(_371>-1){_370+=unescape(url.substring(_36e.length,_371));_370+=url.substring(_371);}else{_370="http://"+url.substring(_36e.length);}url=_370;}var _372=new com.ibm.mm.enabler.utils.HttpUrl(url);var _373=this._extractDigest(_372,url);if(_373){if(null===this.digest&&false===this.replaceDigest){this.replaceDigest=true;}else{if(_373!==this.digest){this.replaceDigest=false;}}this.digest=_373;}else{this.digest="";this.replaceDigest=false;}if(args.content){for(var name in args.content){if(Object.prototype.hasOwnProperty.call(args.content,name)){var _374=args.content[name];_372.addParameter(name,_374);}}}var uri="";var _375=_372.isProxyNeeded();var _376=null;if(_36f){_376=new RegExp(_36f);}if((_375)||(_376&&(url.match(_376)))){uri=_372.toString();}else{var _377=(args.method)?args.method.toLowerCase():null;if(_377&&!this.useSinkForModRequests&&(_377=="post"||_377=="put"||_377=="delete")){uri=_372.getParameter("uri");}else{uri="res:"+_372.toServerRelativeString();}}if(_36d){this.LOGGER.trace(_36c,"proxy? ${0}: ${1}",[_375,uri]);}if(_36d){this.LOGGER.exiting(_36c,uri);}return uri;},_processMultipartBody:function(_378){var _379="_processMultipartBody(parts)";var _37a=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_37a){this.LOGGER.entering(_379,_378);}var _37b=false;for(var w in _378){if(Object.prototype.hasOwnProperty.call(_378,w)){for(var x in _378[w]){if(Object.prototype.hasOwnProperty.call(_378[w],x)){var args=_378[w][x];var uri=this._createPocURI(args);var _37c=uri;args.headers=dojo.mixin({},args.headers,{"X-Method-Override":args.method,"Content-ID":_37c});if("GET"!==args.method){_37b=true;}}}}}if(_37a){this.LOGGER.exiting(_379,_37b);}return _37b;},_createSiteMap:function(_37d){var _37e="_createSiteMap(parts)";var _37f=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_37f){this.LOGGER.entering(_37e,_37d);}var cxml="";for(var w in _37d){if(Object.prototype.hasOwnProperty.call(_37d,w)){var args=_37d[w][0];args.handleAs=args.handleAs?args.handleAs.toLowerCase():"text";var uri=this._createPocURI(args).replace(//g,">").replace(/&/g,"&");cxml+="";}}cxml+="";if(_37f){this.LOGGER.exiting(_37e,cxml);}return cxml;},_extractDigest:function(_380,url){var _381="_extractDigest(httpUrl, url)";var _382=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_382){this.LOGGER.entering(_381,[_380,url]);}var _383;var _384=_380.getParameter("digest");if(!_384){var _385=url.indexOf("digest!");if(0<_385){_385+=7;var end=url.indexOf("/",_385);_383=url.substring(_385,end);}if(_382){this.LOGGER.trace(_381,"digest portal style - ${0}",_383);}}else{_383=_384;}if(_382){this.LOGGER.exiting(_381,_383);}return _383;},_updateDigest:function(url){var _386="_updateDigest(url)";var _387=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_387){this.LOGGER.entering(_386,url);}if(!this.replaceDigest){if(_387){this.LOGGER.trace(_386,"this.replaceDigest is false, returning");this.LOGGER.exiting(_386,url);}return url;}var _388;var end;var _389=url.indexOf("digest!");if(0<_389){_389+=7;end=url.indexOf("/",_389);_388=url.substring(_389,end);}else{if(!_388){_389=url.indexOf("digest=");if(0<_389){_389+=7;end=url.indexOf("&",_389);if(-1===end){_388=url.substring(_389);}else{_388=url.substring(_389,end);}}}}if(_387){this.LOGGER.trace(_386,"extracted digest - ${0}",_388);}var _38a=url;if(_388){_38a=url.replace(_388,this.digest);}if(_387){this.LOGGER.exiting(_386,_38a);}return _38a;}});}if(!dojo._hasResource["com.ibm.mashups.enabler.io.XHRMultipart"]){dojo._hasResource["com.ibm.mashups.enabler.io.XHRMultipart"]=true;dojo.provide("com.ibm.mashups.enabler.io.XHRMultipart");}if(!dojo._hasResource["com.ibm.mashups.enabler.io.XHRMultipartFactory_API"]){dojo._hasResource["com.ibm.mashups.enabler.io.XHRMultipartFactory_API"]=true;dojo.provide("com.ibm.mashups.enabler.io.XHRMultipartFactory_API");dojo.provide("com.ibm.mashups.enabler.io.XHRMultipartFactory");dojo.declare("com.ibm.mashups.enabler.io.XHRMultipartFactory",null,{create:function(){},isMultipartEnabled:function(){},isMultipartApplicationWidgets:function(){}});}if(!dojo._hasResource["com.ibm.mm.enabler.io.XHRMultipartFactoryImpl"]){dojo._hasResource["com.ibm.mm.enabler.io.XHRMultipartFactoryImpl"]=true;dojo.provide("com.ibm.mm.enabler.io.XHRMultipartFactoryImpl");dojo.declare("com.ibm.mm.enabler.io.XHRMultipartFactoryImpl",[com.ibm.mashups.enabler.io.XHRMultipartFactory,com.ibm.mm.enabler.ServiceDocConsumer],{constructor:function(){this._init=false;this.serviceMPJson=null;this.doMultipart=false;var _38b=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME);var _38c=_38b.getValue(com.ibm.mashups.enabler.services.ConfigConstants.PAGE_LOAD_OPTIMIZATION_APP_WIDGETS);this.multipartAppWidgets=false;if(typeof (_38c)=="undefined"||_38c===null||_38c===true){this.multipartAppWidgets=true;}this.CONTEXT_ENABLER="enabler";},_initServiceDoc:function(){this.inherited("_initServiceDoc",arguments);if(dojo.exists("com.ibm.mm.enabler.model.ServiceDocumentModel")){this.serviceMPJson=com.ibm.mm.enabler.model.ServiceDocumentModel.getCollectionData([com.ibm.mm.enabler.model.ServiceDocumentModel.SERVICE_MODEL,com.ibm.mm.enabler.model.ServiceDocumentModel.SERVICE_MULTIPART]);}if(this.serviceMPJson&&this.serviceMPJson.url){this.doMultipart=true;}},create:function(){return new com.ibm.mm.enabler.io.XHRMultipartImpl();},isMultipartEnabled:function(){if(!this._init){this._init=true;var _38d=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.enabler.services.ConfigService.SERVICE_NAME);var _38e=_38d.getValue(com.ibm.mashups.enabler.services.ConfigConstants.MULTIPART_ENABLED);if(dojo.isIE!=6&&_38e){this._initServiceDoc();}}return this.doMultipart;},isMultipartApplicationWidgets:function(){return this.multipartAppWidgets;}});com.ibm.mashups.enabler.io.XHRMultipartFactory=new com.ibm.mm.enabler.io.XHRMultipartFactoryImpl();}if(!dojo._hasResource["com.ibm.mashups.enabler.io.XHRMultipartFactory"]){dojo._hasResource["com.ibm.mashups.enabler.io.XHRMultipartFactory"]=true;dojo.provide("com.ibm.mashups.enabler.io.XHRMultipartFactory");dojo.require("com.ibm.mm.enabler.io.XHRMultipartFactoryImpl");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.Accessor"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.Accessor"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.Accessor");dojo.declare("com.ibm.mashups.enabler.model.state.Accessor",null,{});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.PageAccessor_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.PageAccessor_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.PageAccessor_API");dojo.provide("com.ibm.mashups.enabler.model.state.PageAccessor");dojo.declare("com.ibm.mashups.enabler.model.state.PageAccessor",[com.ibm.mashups.enabler.model.state.Accessor],{getPageID:function(){},setPageID:function(_38f){},confirmSetPageID:function(_390){return true;}});}if(!dojo._hasResource["com.ibm.mm.enabler.model.state.PageAccessorImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.state.PageAccessorImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.state.PageAccessorImpl");dojo.declare("com.ibm.mm.enabler.model.state.PageAccessorImpl",[com.ibm.mashups.enabler.model.state.PageAccessor],{constructor:function(_391,_392){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);this.LOG_LEVEL=com.ibm.mashups.enabler.logging.LogLevel.TRACE;this.bIsLoggable=this.LOGGER.isLoggable(this.LOG_LEVEL);if(this.bIsLoggable){this.LOGGER.entering("constructor");this.LOGGER.trace("constructor","spaceId:"+_392);}this.navStateModel=_391;if(_392){this.spaceid=_392;}},getPageID:function(){var _393=this.navStateModel._state;var rc=null;if(!_393){return null;}if(!this.spaceid){if(_393.pid){if(this.bIsLoggable){this.LOGGER.trace("getPageID","No required pace is defined, return Pageid"+_393.pid.value);}return _393.pid.value;}if(this.bIsLoggable){this.LOGGER.trace("getPageID","No required space is defined, no pid is defined in state return null");}return null;}else{if(_393.pageselection&&_393.pageselection[this.spaceid]){if(this.bIsLoggable){this.LOGGER.trace("getPageID","return pid:"+_393.pageselection[this.spaceid]+" for space:"+this.spaceid);}return _393.pageselection[this.spaceid].value;}if(this.bIsLoggable){this.LOGGER.trace("getPageID","No page is found for required space "+this.spaceid+" return null");}return null;}if(this.bIsLoggable){this.LOGGER.trace("getPageID","return null");}return null;},setPageID:function(_394){if(this.bIsLoggable){this.LOGGER.trace("setPageID","pageId:"+_394);}var _395=this.navStateModel._state;if(!_395){this.navStateModel._state={};_395=this.navStateModel._state;}if(!_394){_395.pid=null;if(this.spaceid){if(_395.pageselection&&_395.pageselection[this.spaceid]){_395.pageselection[this.spaceid]=null;}}this.navStateModel.setDirty(true,"pid");return;}var lm=new Date().getTime();_395.pid=_395.pid?_395.pid:{};_395.pid.value=_394;_395.pid.params=_395.pid.params?_395.pid.params:{};_395.pid.params.lm=lm;if(this.spaceid){if(!_395.pageselection){_395.pageselection={};}if(!_395.pageselection[this.spaceid]){_395.pageselection[this.spaceid]={};}_395.pageselection[this.spaceid].value=_394;_395.pageselection[this.spaceid].params=_395.pageselection[this.spaceid].params?_395.pageselection[this.spaceid].params:{};_395.pageselection[this.spaceid].params.lm=lm;}this.navStateModel.setDirty(true,"pid");}});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.PageAccessor"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.PageAccessor"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.PageAccessor");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.SpaceAccessor_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.SpaceAccessor_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.SpaceAccessor_API");dojo.provide("com.ibm.mashups.enabler.model.state.SpaceAccessor");dojo.declare("com.ibm.mashups.enabler.model.state.SpaceAccessor",[com.ibm.mashups.enabler.model.state.Accessor],{getSpaceID:function(){},setSpaceID:function(_396){},confirmSetSpaceID:function(_397){return true;}});}if(!dojo._hasResource["com.ibm.mm.enabler.model.state.SpaceAccessorImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.state.SpaceAccessorImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.state.SpaceAccessorImpl");dojo.declare("com.ibm.mm.enabler.model.state.SpaceAccessorImpl",[com.ibm.mashups.enabler.model.state.SpaceAccessor],{constructor:function(_398){this.LOGGER=com.ibm.mashups.enabler.logging.Logger.getLogger(this.declaredClass);this.LOG_LEVEL=com.ibm.mashups.enabler.logging.LogLevel.TRACE;this.bIsLoggable=this.LOGGER.isLoggable(this.LOG_LEVEL);if(this.bIsLoggable){this.LOGGER.entering("constructor");}this.navStateModel=_398;},getSpaceID:function(){var _399=this.navStateModel._state;if(!_399){return null;}if(_399.sid&&_399.sid.value){if(this.bIsLoggable){this.LOGGER.trace("getSpaceID","sid:"+_399.sid.value);}return _399.sid.value;}if(this.bIsLoggable){this.LOGGER.trace("getSpaceID","sid:null");}return null;},_setSpaceIDInternal:function(_39a){var _39b=this.navStateModel._state;if(!_39b){this.navStateModel._state={};_39b=this.navStateModel._state;}var lm=new Date().getTime();if(typeof _39a=="undefined"){_39b.sid={};}else{_39b.sid=_39b.sid?_39b.sid:{};_39b.sid.value=_39a;_39b.sid.params=_39b.sid.params?_39b.sid.params:{};_39b.sid.params.lm=lm;}if(_39b.pid){_39b.pid=null;}},setSpaceID:function(_39c){if(this.bIsLoggable){this.LOGGER.trace("setSpaceID","sid:"+_39c);}this._setSpaceIDInternal(_39c);this.navStateModel.setDirty(true,"sid");}});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.SpaceAccessor"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.SpaceAccessor"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.SpaceAccessor");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.WidgetAccessor_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.WidgetAccessor_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.WidgetAccessor_API");dojo.provide("com.ibm.mashups.enabler.model.state.WidgetAccessor");dojo.declare("com.ibm.mashups.enabler.model.state.WidgetAccessor",[com.ibm.mashups.enabler.model.state.Accessor],{constructor:function(_39d,id){},getWidgetID:function(){},getWidgetStateValues:function(key){},getWidgetState:function(key){},setWidgetState:function(key,_39e){},confirmSetWidgetState:function(key,_39f){return true;},setWidgetState:function(key,_3a0){},confirmSetWidgetState:function(key,_3a1){return true;},removeWidgetState:function(key){},confirmRemoveWidgetState:function(key){return true;},getWidgetStateNames:function(){},getWidgetMode:function(){},setWidgetMode:function(mode){},confirmSetWidgetMode:function(mode){return true;},getWindowState:function(){},setWindowState:function(_3a2){},confirmSetWindowState:function(_3a3){return true;},getSize:function(){},setSize:function(_3a4,_3a5){},confirmSetSize:function(_3a6,_3a7){return true;},MIN:"minimize",MAX:"maximize",NORMAL:"normal"});}if(!dojo._hasResource["com.ibm.mm.enabler.model.state.WidgetAccessorImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.state.WidgetAccessorImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.state.WidgetAccessorImpl");dojo.declare("com.ibm.mm.enabler.model.state.WidgetAccessorImpl",[com.ibm.mashups.enabler.model.state.WidgetAccessor],{constructor:function(_3a8,id){this.navStateModel=_3a8;this.wid=id;this.uniqueWid=this._getUniqueWid();this.widgetNavStateNode=_3a8._find(this.WIDGET_PREFIX+this.navStateModel.DELIMITER+this.uniqueWid);if(this.wid!=this.uniqueWid&&!this.widgetNavStateNode){this.widgetNavStateNodeFallback=_3a8._find(this.WIDGET_PREFIX+this.navStateModel.DELIMITER+this.wid);}},WIDGET_PREFIX:"wparams",WIDTH:"w",HEIGHT:"h",WINDOWSTATE:"st",SYSTEMSTATE:"rp",CUSTOMSTATE:"cp",VALUE:"value",PARAMS:"params",MODE:"md",RP:{w:"w",h:"h",st:"st",md:"md"},VIEW:"view",getWidgetID:function(){return this.wid;},_getUniqueWid:function(){return this.navStateModel._getUniqueWid(this.wid);},getWidgetStateSet:function(){var _3a9=null;if(!this.widgetNavStateNode&&!this.widgetNavStateNodeFallback){return null;}var _3aa=this.widgetNavStateNode;if(!_3aa){_3aa=this.widgetNavStateNodeFallback;}var data=_3aa.getRef();if(data&&data[this.VALUE]){if(data[this.VALUE][this.CUSTOMSTATE]){_3a9=data[this.VALUE][this.CUSTOMSTATE];}}if(_3a9&&!dojo.isString(_3a9)){_3a9=dojo.toJson(_3a9);}return _3a9;},_createWidgetNavStateNode:function(){var _3ab=this.navStateModel.create({key:this.uniqueWid});var _3ac=this.navStateModel._find(this.WIDGET_PREFIX);if(!_3ac){var temp=this.navStateModel.create({key:this.WIDGET_PREFIX});this.navStateModel.insert(temp,this.navStateModel._getRoot());_3ac=this.navStateModel._find(this.WIDGET_PREFIX);}this.navStateModel.insert(_3ab,_3ac);_3ab=this.navStateModel._find(this.WIDGET_PREFIX+this.navStateModel.DELIMITER+this.uniqueWid);return _3ab;},setWidgetStateSet:function(_3ad){var _3ae=null;if(dojo.isString(_3ad)){try{_3ad=dojo.fromJson(_3ad);}catch(e){}}if(!this.widgetNavStateNode){this.widgetNavStateNode=this._createWidgetNavStateNode();}var data=this.widgetNavStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();if(data&&data[this.VALUE]){if(data[this.VALUE][this.CUSTOMSTATE]){_3ae=dojo.clone(data[this.VALUE][this.CUSTOMSTATE]);}}data[this.VALUE]=data[this.VALUE]?data[this.VALUE]:{};var obj=_3ad;if(_3ae&&!dojo.isString(_3ae)&&!dojo.isString(_3ad)){obj=dojo.mixin(_3ae,_3ad);}data[this.VALUE][this.CUSTOMSTATE]=obj;this.navStateModel.setDirty(true);return this;},_getWidgetSystemState:function(key){var _3af=null;if(!this.widgetNavStateNode&&!this.widgetNavStateNodeFallback){return null;}var _3b0=this.widgetNavStateNode;if(!_3b0){_3b0=this.widgetNavStateNodeFallback;}var data=_3b0.getRef();if(data&&data[this.VALUE]){if(data[this.VALUE][this.SYSTEMSTATE]){data=data[this.VALUE][this.SYSTEMSTATE];if(data&&data[key]){_3af=data[key];}}}return _3af;},_setWidgetSystemState:function(key,_3b1){if(!this.widgetNavStateNode){this.widgetNavStateNode=this._createWidgetNavStateNode();}var data=this.widgetNavStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();var _3b2=null;data[this.VALUE]=data[this.VALUE]?data[this.VALUE]:{};data[this.VALUE][this.SYSTEMSTATE]=data[this.VALUE][this.SYSTEMSTATE]?data[this.VALUE][this.SYSTEMSTATE]:{};_3b2=data[this.VALUE][this.SYSTEMSTATE];_3b2[key]=_3b1;this.navStateModel.setDirty(true);return this;},getWidgetState:function(key){var rc=this._getWidgetStateValue(key)||null;if(!rc){return null;}if(!dojo.isString(rc)){rc=dojo.toJson(rc);}return rc;},_getWidgetStateValue:function(key){if(!key){return null;}if(key&&key=="cp"){return this.getWidgetStateSet();}if(this.RP[key]){return this._getWidgetSystemState(key);}var _3b3=null;if(!this.widgetNavStateNode&&!this.widgetNavStateNodeFallback){return null;}var _3b4=this.widgetNavStateNode;if(!_3b4){_3b4=this.widgetNavStateNodeFallback;}var data=_3b4.getRef();if(data&&data[this.VALUE]){if(data[this.VALUE][this.CUSTOMSTATE]){data=data[this.VALUE][this.CUSTOMSTATE];if(dojo.isString(data)){return null;}if(data&&data[key]){_3b3=data[key];}}}return _3b3;},getWidgetStateValues:function(key){var rc=this._getWidgetStateValue(key)||null;if(!rc){return null;}if(dojo.isString(rc)){var arr=[];arr.push(rc);return arr;}return rc;},getWidgetStateNames:function(){var _3b5=[];if(!this.widgetNavStateNode&&!this.widgetNavStateNodeFallback){return null;}var _3b6=this.widgetNavStateNode;if(!_3b6){_3b6=this.widgetNavStateNodeFallback;}var data=_3b6.getRef();if(data&&data[this.VALUE]){if(data[this.VALUE][this.CUSTOMSTATE]){data=data[this.VALUE][this.CUSTOMSTATE];if(dojo.isString(data)){return null;}if(data){for(var i in data){if(Object.prototype.hasOwnProperty.call(data,i)){if(data[i]){_3b5.push(i);}}}}}}if(_3b5.length===0){return null;}return _3b5;},setWidgetState:function(key,_3b7){if(!key||!_3b7){return null;}if(key&&key=="cp"){return this.setWidgetStateSet(_3b7);}var _3b8=false;if(dojo.isArray(_3b7)&&_3b7.length>=1){if(dojo.isString(_3b7[0])){_3b8=true;}}if(!_3b8){if(dojo.isString(_3b7)){_3b8=true;}}if(!_3b8){return null;}if(this.RP[key]){return this._setWidgetSystemState(key,_3b7);}if(key&&key=="cp"){return this.setWidgetStateSet(_3b7);}if(!this.widgetNavStateNode){this.widgetNavStateNode=this._createWidgetNavStateNode();}var data=this.widgetNavStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();var _3b9=null;data[this.VALUE]=data[this.VALUE]?data[this.VALUE]:{};data[this.VALUE][this.CUSTOMSTATE]=data[this.VALUE][this.CUSTOMSTATE]?data[this.VALUE][this.CUSTOMSTATE]:{};_3b9=data[this.VALUE][this.CUSTOMSTATE];_3b9[key]=_3b7;this.navStateModel.setDirty(true);return this;},removeWidgetState:function(key){if(!key){return false;}if(this.RP[key]){return this._removeWidgetSystemState(key);}if(!this.widgetNavStateNode){return false;}var data=this.widgetNavStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();if(key&&key=="cp"){if(data&&data[this.VALUE]&&data[this.VALUE][this.CUSTOMSTATE]){data[this.VALUE][this.CUSTOMSTATE]=null;this.navStateModel.setDirty(true);return true;}return false;}if(data&&data[this.VALUE]&&data[this.VALUE][this.CUSTOMSTATE]){var _3ba=data[this.VALUE][this.CUSTOMSTATE];if(_3ba&&_3ba[key]){_3ba[key]=null;this.navStateModel.setDirty(true);return true;}}return false;},_removeWidgetSystemState:function(key){if(!key){return false;}if(!this.widgetNavStateNode){return false;}var data=this.widgetNavStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();if(data&&data[this.VALUE]&&data[this.VALUE][this.SYSTEMSTATE]){var _3bb=data[this.VALUE][this.SYSTEMSTATE];if(_3bb&&_3bb[key]){_3bb[key]=null;this.navStateModel.setDirty(true);return true;}}return false;},getWindowState:function(){rc=this._getWidgetSystemState(this.WINDOWSTATE);return rc;},setWindowState:function(_3bc){if(_3bc&&(_3bc==this.MIN||_3bc==this.MAX||_3bc==this.NORMAL)){this._setWidgetSystemState(this.WINDOWSTATE,_3bc);}},getWidgetMode:function(){var rc=this._getWidgetSystemState(this.MODE);return rc;},setWidgetMode:function(_3bd){if(_3bd){this._setWidgetSystemState(this.MODE,_3bd);return this;}return null;},getSize:function(){var size={};var _3be=this._getWidgetSystemState(this.HEIGHT);var _3bf=this._getWidgetSystemState(this.WIDTH);if(_3be){size[this.HEIGHT]=_3be;}if(_3bf){size[this.WIDTH]=_3bf;}if(!size[this.HEIGHT]&&!size[this.WIDTH]){return null;}return size;},setSize:function(_3c0,_3c1){if(_3c0){this._setWidgetSystemState(this.WIDTH,_3c0);}if(_3c1){this._setWidgetSystemState(this.HEIGHT,_3c1);}return this;}});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.WidgetAccessor"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.WidgetAccessor"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.WidgetAccessor");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.PageModeAccessor_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.PageModeAccessor_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.PageModeAccessor_API");dojo.provide("com.ibm.mashups.enabler.model.state.PageModeAccessor");dojo.declare("com.ibm.mashups.enabler.model.state.PageModeAccessor",[com.ibm.mashups.enabler.model.state.Accessor],{VIEW:"view",EDIT:"edit",getPageMode:function(){},setPageMode:function(_3c2){},confirmSetPageMode:function(_3c3){return true;}});com.ibm.mashups.enabler.model.state.PageModeAccessor.VIEW="view";com.ibm.mashups.enabler.model.state.PageModeAccessor.EDIT="edit";}if(!dojo._hasResource["com.ibm.mm.enabler.model.state.PageModeAccessorImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.state.PageModeAccessorImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.state.PageModeAccessorImpl");dojo.declare("com.ibm.mm.enabler.model.state.PageModeAccessorImpl",[com.ibm.mashups.enabler.model.state.PageModeAccessor],{constructor:function(_3c4){this.navStateModel=_3c4;},getPageMode:function(){var _3c5=this.navStateModel._getPageMode();if(!_3c5){return null;}return _3c5;},setPageMode:function(mode){if(mode){this.navStateModel._setPageMode(mode);}return;}});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.PageModeAccessor"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.PageModeAccessor"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.PageModeAccessor");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor_API");dojo.provide("com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor");dojo.declare("com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor",[com.ibm.mashups.enabler.model.state.Accessor],{getId:function(){},getScope:function(){},getAllNames:function(){},setItemValue:function(_3c6,_3c7){},confirmSetItemValue:function(_3c8,_3c9){return true;},removeItem:function(_3ca){},confirmRemoveItem:function(_3cb){return true;},getItemValue:function(_3cc){},registerListener:function(_3cd){},removeListener:function(_3ce){},confirmRemoveListener:function(_3cf){return true;}});}if(!dojo._hasResource["com.ibm.mm.enabler.model.state.ShareableParameterSetAccessorImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.state.ShareableParameterSetAccessorImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.state.ShareableParameterSetAccessorImpl");dojo.declare("com.ibm.mm.enabler.model.state.ShareableParameterSetAccessorImpl",[com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor],{DELETE_TOKEN:"DELETE_TOKEN",TYPE_NEW:"newItem",TYPE_UPDATE:"changedValue",TYPE_REMOVE:"removedItem",constructor:function(_3d0,name,_3d1){if(!_3d1){this.scope=com.ibm.mm.enabler.model.state.ShareableParameterSetAccessorImpl.GLOBAL_SCOPE;}else{this.scope=_3d1;}this.name=name;this.navStateModel=_3d0;this.navStateNode=_3d0._find("sparams"+this.navStateModel.DELIMITER+name+this.navStateModel.DELIMITER+this.scope);},_createNavStateNode:function(){var temp;var _3d2=this.navStateModel._find("sparams");if(!_3d2){temp=this.navStateModel.create({key:"sparams"});this.navStateModel.insert(temp,this.navStateModel._getRoot());_3d2=this.navStateModel._find("sparams");}var _3d3=this.navStateModel._find(this.name);if(!_3d3){temp=this.navStateModel.create({key:this.name});this.navStateModel.insert(temp,_3d2);_3d3=this.navStateModel._find("sparams"+this.navStateModel.DELIMITER+this.name);}var _3d4=this.navStateModel.create({key:this.scope});this.navStateModel.insert(_3d4,_3d3);_3d4=this.navStateModel._find("sparams"+this.navStateModel.DELIMITER+this.name+this.navStateModel.DELIMITER+this.scope);return _3d4;},getId:function(){return this.name;},getScope:function(){return this.scope;},getAllNames:function(){if(!this.navStateNode){return null;}var arr=[];var data=this.navStateNode.getRef();if(data&&data[this.navStateModel.VALUE]){for(var i in data[this.navStateModel.VALUE]){if(data[this.navStateModel.VALUE].hasOwnProperty(i)){var _3d5=data[this.navStateModel.VALUE][i][this.navStateModel.VALUE];if(_3d5&&_3d5!=this.DELETE_TOKEN){arr.push(i);}}}}return arr;},setItemValue:function(_3d6,_3d7){if(!this.navStateNode){this.navStateNode=this._createNavStateNode();}var data=this.navStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();data.value=data.value?data.value:{};var _3d8={};if(!data.value[_3d6]){data.value[_3d6]={};data.value[_3d6].value=_3d7;data.value[_3d6].params=data.value[_3d6].params?data.value[_3d6].params:{};data.value[_3d6].params._isDirty=true;_3d8.alias=_3d6;_3d8.type=this.TYPE_NEW;_3d8.newVal=_3d7;data.value[_3d6].params._change=_3d8;}else{if(data.value[_3d6]){var _3d9=dojo.clone(data.value[_3d6].value);data.value[_3d6].value=_3d7;data.value[_3d6].params=data.value[_3d6].params?data.value[_3d6].params:{};var _3da=data.value[_3d6].params._isDirty;if(_3da){_3d8=data.value[_3d6].params._change;if(_3d8.type==this.TYPE_NEW){_3d8.newVal=_3d7;}else{if(_3d8.type==this.TYPE_UPDATE){_3d8.newVal=_3d7;}else{if(_3d8.type==this.TYPE_REMOVE){if(_3d8.oldVal){_3d8.type=this.TYPE_UPDATE;}else{_3d8.type=this.TYPE_NEW;}_3d8.newVal=_3d7;}}}}else{_3d8.type=this.TYPE_UPDATE;_3d8.oldVal=_3d9;_3d8.newVal=_3d7;_3d8.alias=_3d6;data.value[_3d6].params._change=_3d8;}data.value[_3d6].params._isDirty=true;}}this.navStateModel.setDirty(true);return true;},removeItem:function(_3db){if(!this.navStateNode){return false;}var data=this.navStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();if(data&&data[this.navStateModel.VALUE]){if(data[this.navStateModel.VALUE][_3db]){var _3dc=data[this.navStateModel.VALUE][_3db];var _3dd=dojo.clone(_3dc.value);_3dc.value=this.DELETE_TOKEN;_3dc.params=_3dc.params?_3dc.params:{};var _3de=_3dc.params._isDirty;var _3df={};if(_3de){_3df=_3dc.params._change;if(_3df.type==this.TYPE_NEW){delete data[this.navStateModel.VALUE][_3db];}else{if(_3df.type==this.TYPE_UPDATE){_3df.type=this.TYPE_REMOVE;_3df.newVal=null;delete _3df.oldVal;}}}else{_3df.type=this.TYPE_REMOVE;_3df.alias=_3db;_3df.oldVal=_3dd;_3dc.params._change=_3df;_3dc.params._isDirty=true;}this.navStateModel.setDirty(true);}else{return false;}}return true;},getItemValue:function(_3e0){if(!this.navStateNode){return null;}var data=this.navStateNode.getRef();if(data&&data[this.navStateModel.VALUE]){if(data[this.navStateModel.VALUE][_3e0]){var _3e1=data[this.navStateModel.VALUE][_3e0];var _3e2=_3e1[this.navStateModel.VALUE];if(_3e2&&_3e2!=this.DELETE_TOKEN){return _3e2;}}}return null;},registerListener:function(_3e3){if(!this.navStateNode){this.navStateNode=this._createNavStateNode();}var data=this.navStateNode.getRef();var _3e4=data[this.navStateModel.PARAMS];if(!_3e4){data[this.navStateModel.PARAMS]={};_3e4=data[this.navStateModel.PARAMS];}if(!_3e4._listeners){_3e4._listeners={};}var _3e5=this.navStateModel._generateListenerId();_3e4._listeners[_3e5]=_3e3;return _3e5;},removeListener:function(_3e6){if(!this.navStateNode){return null;}var data=this.navStateNode.getRef();var _3e7=data[this.navStateModel.PARAMS];if(_3e7&&_3e7._listeners){var _3e8=_3e7._listeners;if(_3e8[_3e6]){_3e8[_3e6]=null;delete _3e8[_3e6];return true;}}return false;},_setItems:function(_3e9){for(var i in _3e9){if(_3e9[i]&&_3e9[i]==this.DELETE_TOKEN){this.removeItem(i);}else{if(_3e9[i]){this.setItemValue(i,_3e9[i]);}}}}});com.ibm.mm.enabler.model.state.ShareableParameterSetAccessorImpl.GLOBAL_SCOPE="global";}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.ShareableParameterSetAccessor");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.LayoutContainerAccessor_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.LayoutContainerAccessor_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.LayoutContainerAccessor_API");dojo.provide("com.ibm.mashups.enabler.model.state.LayoutContainerAccessor");dojo.declare("com.ibm.mashups.enabler.model.state.LayoutContainerAccessor",[com.ibm.mashups.enabler.model.state.Accessor],{constructor:function(_3ea,_3eb,_3ec){},getID:function(){},getSize:function(){},setSize:function(_3ed){},confirmSetSize:function(_3ee){return true;}});}if(!dojo._hasResource["com.ibm.mm.enabler.model.state.LayoutContainerAccessorImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.state.LayoutContainerAccessorImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.state.LayoutContainerAccessorImpl");dojo.declare("com.ibm.mm.enabler.model.state.LayoutContainerAccessorImpl",[com.ibm.mashups.enabler.model.state.LayoutContainerAccessor],{constructor:function(_3ef,_3f0,_3f1){this.navStateModel=_3ef;this.cid=_3f0;this.pid=_3f1;var _3f2=this.navStateModel.DELIMITER;var path=this.LAYOUT_PREFIX;path+=_3f2+this.pid;this.layoutNavStateNode=_3ef._find(path);if(this.layoutNavStateNode){path+=_3f2+this.VALUE+_3f2+this.cid;this.layoutContainerNavStateNode=_3ef._find(path);}else{this.layoutContainerNavStateNode=null;}},LAYOUT_PREFIX:"lcparams",WIDTH:"w",SYSTEMSTATE:"rp",VALUE:"value",PARAMS:"params",MODE:"md",RP:{w:"w"},getID:function(){return this.cid;},_getLayoutContainerSystemState:function(key){var _3f3=null;if(!this.layoutContainerNavStateNode){return null;}var data=this.layoutContainerNavStateNode.getRef();if(data&&data[this.VALUE]){if(data[this.VALUE][this.SYSTEMSTATE]){data=data[this.VALUE][this.SYSTEMSTATE];if(data&&data[key]){_3f3=data[key];}}}return _3f3;},_setLayoutContainerSystemState:function(key,_3f4){var data;if(!this.layoutContainerNavStateNode){this.layoutContainerNavStateNode=this._createLayoutContainerNavStateNode();}data=this.layoutNavStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();data=this.layoutContainerNavStateNode.getRef();var _3f5=null;data[this.VALUE]=data[this.VALUE]?data[this.VALUE]:{};data[this.VALUE][this.SYSTEMSTATE]=data[this.VALUE][this.SYSTEMSTATE]?data[this.VALUE][this.SYSTEMSTATE]:{};_3f5=data[this.VALUE][this.SYSTEMSTATE];_3f5[key]=_3f4;this.navStateModel.setDirty(true);return this;},_createLayoutNavStateNode:function(){var _3f6=this.navStateModel.create({key:this.pid});var _3f7=this.navStateModel._find(this.LAYOUT_PREFIX);if(!_3f7){var temp=this.navStateModel.create({key:this.LAYOUT_PREFIX});this.navStateModel.insert(temp,this.navStateModel._getRoot());_3f7=this.navStateModel._find(this.LAYOUT_PREFIX);}this.navStateModel.insert(_3f6,_3f7);_3f6=this.navStateModel._find(this.LAYOUT_PREFIX+this.navStateModel.DELIMITER+this.pid);return _3f6;},_createLayoutContainerNavStateNode:function(){if(!this.layoutNavStateNode){this.layoutNavStateNode=this._createLayoutNavStateNode();}var data=this.layoutNavStateNode.getRef();data[this.VALUE]=data[this.VALUE]?data[this.VALUE]:{};var _3f8=this.navStateModel.DELIMITER;var path=this.LAYOUT_PREFIX+_3f8+this.pid+_3f8+this.VALUE;var _3f9=this.navStateModel.create({key:this.cid});var _3fa=this.navStateModel._find(path);this.navStateModel.insert(_3f9,_3fa);_3f9=this.navStateModel._find(path+_3f8+this.cid);return _3f9;},getSize:function(){var size={};var _3fb=this._getLayoutContainerSystemState(this.WIDTH);if(_3fb){size[this.WIDTH]=_3fb;return size;}else{return null;}return size;},setSize:function(_3fc){if(_3fc){this._setLayoutContainerSystemState(this.WIDTH,_3fc);}return this;}});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.LayoutContainerAccessor"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.LayoutContainerAccessor"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.LayoutContainerAccessor");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.LayoutAccessor_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.LayoutAccessor_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.LayoutAccessor_API");dojo.provide("com.ibm.mashups.enabler.model.state.LayoutAccessor");dojo.declare("com.ibm.mashups.enabler.model.state.LayoutAccessor",[com.ibm.mashups.enabler.model.state.Accessor],{constructor:function(_3fd,_3fe){},getTemplateURL:function(){},setTemplateURL:function(url){},getContainerAccessor:function(_3ff){},removeAll:function(_400){}});}if(!dojo._hasResource["com.ibm.mm.enabler.model.state.LayoutAccessorImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.state.LayoutAccessorImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.state.LayoutAccessorImpl");dojo.declare("com.ibm.mm.enabler.model.state.LayoutAccessorImpl",[com.ibm.mashups.enabler.model.state.LayoutAccessor],{constructor:function(_401,_402){this.navStateModel=_401;this.pid=_402;this.path=this.LAYOUT_PREFIX+this.navStateModel.DELIMITER+this.pid;this.layoutNavStateNode=null;},LAYOUT_PREFIX:"lcparams",WIDGET_PREFIX:"wparams",VALUE:"value",TEMPLATE_URL:"templateURL",SYSTEMSTATE:"rp",WIDTH:"w",HEIGHT:"h",_getLayoutState:function(key){var _403=null;if(!this.layoutNavStateNode){this.layoutNavStateNode=this.navStateModel._find(this.path);if(!this.layoutNavStateNode){return null;}}var data=this.layoutNavStateNode.getRef();if(data&&data[key]){_403=data[key];}return _403;},_setLayoutState:function(key,_404){var data;if(!this.layoutNavStateNode){this.layoutNavStateNode=this.navStateModel._find(this.path);if(!this.layoutNavStateNode){this.layoutNavStateNode=this._createLayoutNavStateNode();}}data=this.layoutNavStateNode.getRef();data.params=data.params?data.params:{};data.params.lm=new Date().getTime();data[key]=_404;this.navStateModel.setDirty(true);return this;},_createLayoutNavStateNode:function(){var _405=this.navStateModel.create({key:this.pid});var _406=this.navStateModel._find(this.LAYOUT_PREFIX);if(!_406){var temp=this.navStateModel.create({key:this.LAYOUT_PREFIX});this.navStateModel.insert(temp,this.navStateModel._getRoot());_406=this.navStateModel._find(this.LAYOUT_PREFIX);}this.navStateModel.insert(_405,_406);_405=this.navStateModel._find(this.path);return _405;},getTemplateURL:function(){return this._getLayoutState(this.TEMPLATE_URL);},setTemplateURL:function(url){return this._setLayoutState(this.TEMPLATE_URL,url);},removeAll:function(_407){var _408=this.navStateModel.DELIMITER;if(_407&&this.navStateModel._find(this.WIDGET_PREFIX)){var i;var _409;for(i=0;i<_407.length;i++){_409=this.navStateModel._find(this.WIDGET_PREFIX+_408+_407[i]+_408+this.VALUE+_408+this.SYSTEMSTATE);if(_409){_409=_409.getRef();delete _409[this.WIDTH];delete _409[this.HEIGHT];this.navStateModel.setDirty(true);}}}if(this.layoutNavStateNode){this.navStateModel.remove(this.layoutNavStateNode);this.navStateModel.setDirty(true);delete this.layoutNavStateNode;}return this;},getContainerAccessor:function(_40a){return new com.ibm.mm.enabler.model.state.LayoutContainerAccessorImpl(this.navStateModel,_40a,this.pid);}});}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.LayoutAccessor"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.LayoutAccessor"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.LayoutAccessor");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.AccessorFactory_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.AccessorFactory_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.AccessorFactory_API");dojo.provide("com.ibm.mashups.enabler.model.state.AccessorFactory");dojo.declare("com.ibm.mashups.enabler.model.state.AccessorFactory",null,{getPageAccessor:function(_40b,_40c){},getSpaceAccessor:function(_40d){},getWidgetAccessor:function(_40e,_40f){},getPageModeAccessor:function(_410){},getShareableParameterSetAccessor:function(_411,id,_412){},getLayoutAccessor:function(_413,_414){}});}if(!dojo._hasResource["com.ibm.mm.enabler.model.state.AccessorFactoryImpl"]){dojo._hasResource["com.ibm.mm.enabler.model.state.AccessorFactoryImpl"]=true;dojo.provide("com.ibm.mm.enabler.model.state.AccessorFactoryImpl");dojo.declare("com.ibm.mm.enabler.model.state.AccessorFactoryImpl",[com.ibm.mashups.enabler.model.state.AccessorFactory],{constructor:function(){},getPageAccessor:function(_415,_416){return new com.ibm.mm.enabler.model.state.PageAccessorImpl(_415,_416);},getPageModeAccessor:function(_417){return new com.ibm.mm.enabler.model.state.PageModeAccessorImpl(_417);},getSpaceAccessor:function(_418){return new com.ibm.mm.enabler.model.state.SpaceAccessorImpl(_418);},getWidgetAccessor:function(_419,_41a){return new com.ibm.mm.enabler.model.state.WidgetAccessorImpl(_419,_41a);},getShareableParameterSetAccessor:function(_41b,name,_41c){return new com.ibm.mm.enabler.model.state.ShareableParameterSetAccessorImpl(_41b,name,_41c);},getLayoutAccessor:function(_41d,_41e){return new com.ibm.mm.enabler.model.state.LayoutAccessorImpl(_41d,_41e);}});com.ibm.mashups.enabler.model.state.AccessorFactory=new com.ibm.mm.enabler.model.state.AccessorFactoryImpl();}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.AccessorFactory"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.AccessorFactory"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.AccessorFactory");}if(!dojo._hasResource["com.ibm.mashups.enabler.model.state.NavigationStateModel_API"]){dojo._hasResource["com.ibm.mashups.enabler.model.state.NavigationStateModel_API"]=true;dojo.provide("com.ibm.mashups.enabler.model.state.NavigationStateModel_API");dojo.provide("com.ibm.mashups.enabler.model.state.NavigationStateModel");dojo.declare("com.ibm.mashups.enabler.model.state.NavigationStateModel",null,{ONNAVSTATEUPDATED:"com.ibm.mashups.enabler.model.state.onNavStateUpdated",startTransaction:function(){return;},commitTransaction:function(){return;},discardTransaction:function(){return;},isTransaction:function(){return false;},commit:function(_41f){return new com.ibm.mashups.enabler.Deferred();},discard:function(){return;},dispose:function(){return;}});}if(!dojo._hasResource["com.ibm.mashups.enabler.services.IdentificationService_API"]){dojo._hasResource["com.ibm.mashups.enabler.services.IdentificationService_API"]=true;dojo.provide("com.ibm.mashups.enabler.services.IdentificationService_API");dojo.provide("com.ibm.mashups.enabler.services.IdentificationService");dojo.declare("com.ibm.mashups.enabler.services.IdentificationService",null,{createClientID:function(){},attachClientID:function(_420){},releaseClientID:function(id){},isClientID:function(id){},isServerID:function(id){},isAlienID:function(id){},attachServerID:function(_421,_422){},resolveID:function(id){},resolveIdentifiable:function(id){}});}if(!dojo._hasResource["com.ibm.mm.enabler.utils.Utils"]){dojo._hasResource["com.ibm.mm.enabler.utils.Utils"]=true;dojo.provide("com.ibm.mm.enabler.utils.Utils");dojo.declare("com.ibm.mm.enabler.utils.UtilsImpl",null,{constructor:function(){this.serviceJson=null;},_lazyInit:function(){if(this.serviceJson){return;}this.xmlDom=com.ibm.mm.enabler.utils.Dom.createDocument();this.serviceJson=com.ibm.mm.enabler.model.ServiceDocumentModel.getCollectionData(com.ibm.mm.enabler.model.ServiceDocumentModel.SERVICE_NAVIGATION);this.prefix=this.serviceJson.idprefix;var nsf=com.ibm.mm.enabler.model.NameSpaceFactory;this.ns=dojo.delegate(this.serviceJson.namespaces,nsf.getNameSpaces([nsf.NS_ATOM]));},createNode:function(name,ns){this._lazyInit();return com.ibm.mm.enabler.utils.Dom.createElement(this.xmlDom,name,ns);},createLinkNode:function(href,rel,ns){var _423=this.createNode("atom:link",ns);_423.setAttribute("href",href);_423.setAttribute("rel",rel);return _423;},createExtLinkNode:function(href,rel,_424){this._lazyInit();var nsf=com.ibm.mm.enabler.model.NameSpaceFactory;var _425=this.createNode("atom:link",this.ns[nsf.NS_ATOM]);_425.setAttribute("href",href);if(rel){_425.setAttribute("rel",rel);}com.ibm.mm.enabler.utils.Dom.setAttributeWithNS(this.xmlDom,_425,"ext:rel","rel",this.ns.ext,_424);return _425;},getIdFromExtUri:function(_426,node){this._lazyInit();var id=null;var uri=com.ibm.mm.enabler.utils.Dom.getAttributeWithNS(node,"ext:uri","uri",this.ns.ext);if(uri){var aPos=uri.indexOf("@");if(aPos!=-1){uri=uri.slice(0,aPos);}id=uri;var _427=id.lastIndexOf(":");if(_427!=-1){id=id.slice(_427+1);}_427=id.toUpperCase().lastIndexOf("%3A");if(_427!=-1){id=id.slice(_427+3);}_427=id.lastIndexOf("/");if(_427!=-1){id=id.slice(_427+1);}}return id;},getHrefFromIdentifiable:function(_428){return (_428&&(typeof _428._getParameters=="function"))?_428._getParameters().href:null;},getIdFromIdentifiable:function(_429){if(com.ibm.mm.enabler.utils.Misc.isInstanceOf(_429,com.ibm.mashups.enabler.Identifiable)){return _429.getID();}else{if(dojo.isString(_429)){return dojo.string.trim(_429);}else{return _429;}}},setAttributeWithNS:function(_42a,_42b,_42c,_42d){this._lazyInit();com.ibm.mm.enabler.utils.Dom.setAttributeWithNS(this.xmlDom,_42a,_42b,null,_42c,_42d);},createFeed:function(id,_42e,_42f,_430){var ns="";for(var _431 in _430){if(Object.prototype.hasOwnProperty.call(_430,_431)){ns+="xmlns:"+_431+"=\""+_430[_431]+"\" ";}}var time=new Date();var feed="\n"+"\n"+""+_42e+"\n"+""+id+"\n"+""+time.toGMTString()+"\n"+_42f+"";return feed;},transferElements:function(_432,_433,_434,ns){dojo.forEach(_434,function(ctx){var _435=ctx.parentXpath+"/"+ctx.element;if(ctx.replace===true){var _436=com.ibm.mashups.enabler.xml.XPath.evaluateEntry(_435,_433,ns);if(_436){_436.parentNode.removeChild(_436);}}var _437=com.ibm.mashups.enabler.xml.XPath.evaluateEntry(_435,_432,ns);if(_437){var _438=_437.cloneNode(true);var _439=com.ibm.mashups.enabler.xml.XPath.evaluateEntry(ctx.parentXpath,_433,ns);if(_439){_439.appendChild(_438);}}},this);}});com.ibm.mm.enabler.utils.Utils=new com.ibm.mm.enabler.utils.UtilsImpl();}if(!dojo._hasResource["com.ibm.mm.enabler.IdentifiableHelper"]){dojo._hasResource["com.ibm.mm.enabler.IdentifiableHelper"]=true;dojo.provide("com.ibm.mm.enabler.IdentifiableHelper");com.ibm.mm.enabler.IdentifiableHelper.ID_MATCHER=/^(.*?)(%3a)?([ \.\w_\-]*)(@.*?)?$/i;com.ibm.mm.enabler.IdentifiableHelper.getID=function(id){var _43a=id.match(com.ibm.mm.enabler.IdentifiableHelper.ID_MATCHER);return _43a?_43a[3]:"";};com.ibm.mm.enabler.IdentifiableHelper.replaceID=function(_43b,_43c,_43d){var id=com.ibm.mm.enabler.IdentifiableHelper.getID(_43d);var _43e=_43b.match(com.ibm.mm.enabler.IdentifiableHelper.ID_MATCHER);return _43c+":"+id+(_43e?(_43e[4]||""):"");};}if(!dojo._hasResource["com.ibm.mm.enabler.utils.Atom"]){dojo._hasResource["com.ibm.mm.enabler.utils.Atom"]=true;dojo.provide("com.ibm.mm.enabler.utils.Atom");com.ibm.mm.enabler.utils.Atom={_FEED:"atom:feed",_ENTRY:"atom:entry",_LINK:"atom:link",_ID:"atom:id",_NEXT_LINK:"atom:link[@rel='next']",_EDIT_LINK:"atom:link[@rel='edit']",_REPLIES_LINK:"atom:link[@rel='replies']",_REPLIES_LINK_HREF:"atom:link[@rel='replies']/@href",_IN_REPLY_TO_LINK:"thr:in-reply-to",_IN_REPLY_TO_LINK_HREF:"thr:in-reply-to/@href",LOG_LEVEL:com.ibm.mashups.enabler.logging.LogLevel.TRACE,LOGGER:com.ibm.mashups.enabler.logging.Logger.getLogger("com.ibm.mm.enabler.utils.Atom"),createEntry:function(_43f,_440,_441){var _442={};var _443="createEntry";var _444=this.LOGGER.isLoggable(this.LOG_LEVEL);if(_444){this.LOGGER.entering(_443,[_43f,_440,_441]);}var nsf=com.ibm.mm.enabler.model.NameSpaceFactory;var ns=nsf.getNameSpaces([nsf.NS_ATOM]);var _445=com.ibm.mm.enabler.utils.Utils.createNode("atom:entry",ns.atom);var _446=com.ibm.mm.enabler.utils.Utils.createNode("atom:id",ns.atom);_445.appendChild(_446);var _447=com.ibm.mm.enabler.utils.Utils.createNode("atom:title",ns.atom);if(_43f){com.ibm.mm.enabler.utils.Dom.textContent(_447,_43f);}_445.appendChild(_447);var _448=com.ibm.mm.enabler.utils.Utils.createNode("atom:updated",ns.atom);var time=new Date();com.ibm.mm.enabler.utils.Dom.textContent(_448,time.toGMTString());_445.appendChild(_448);var _449=com.ibm.mm.enabler.utils.Utils.createNode("atom:content",ns.atom);_449.setAttribute("type","application/xml");_445.appendChild(_449);if(_440&&_441){var elem=com.ibm.mm.enabler.utils.Utils.createNode(_440,_441);_449.appendChild(elem);_442.modelElement=elem;}_442.entryElement=_445;_442.idElement=_446;if(_444){this.LOGGER.exiting(_443,_442);}return _442;}};}if(!dojo._hasResource["com.ibm.mm.enabler.persistence.xml.IdentifiableXmlImpl"]){dojo._hasResource["com.ibm.mm.enabler.persistence.xml.IdentifiableXmlImpl"]=true;dojo.provide("com.ibm.mm.enabler.persistence.xml.IdentifiableXmlImpl");dojo.declare("com.ibm.mm.enabler.persistence.xml.IdentifiableXmlImpl",[com.ibm.mashups.enabler.Identifiable,com.ibm.mm.enabler.DirtyFlagProviderImpl,com.ibm.mm.enabler.ServiceDocConsumer],{constructor:function(){this.modelMessages=dojo.i18n.getLocalization("com.ibm.mm.enabler","modelMessages");this._resetCachedRawID();this._addDirtyCallback(this,this._resetCachedRawID,null,true);},_cachedRawIdToken:{},_resetCachedRawID:function(){this._cachedRawID=this._cachedRawIdToken;},_cachedRawID:null,_initServiceDoc:function(){this.inherited("_initServiceDoc",arguments);var _44a=com.ibm.mm.enabler.model.ServiceDocumentModel.getCollectionData(com.ibm.mm.enabler.model.ServiceDocumentModel.SERVICE_NAVIGATION);var nsf=com.ibm.mm.enabler.model.NameSpaceFactory;this.id_ns=dojo.delegate(_44a.namespaces,nsf.getNameSpaces([nsf.NS_ATOM,nsf.NS_THR,nsf.NS_XML,nsf.NS_OPENSEARCH,nsf.NS_XHTML,nsf.NS_APP]));this.id_prefix=_44a.idprefix;},getID:function(){var id=this._getRawID();return id?com.ibm.mm.enabler.IdentifiableHelper.getID(id):id;},_getRawID:function(){this._initServiceDoc();if(this._cachedRawID===this._cachedRawIdToken){var _44b=null;var node=com.ibm.mashups.enabler.xml.XPath.evaluateString(com.ibm.mm.enabler.utils.Atom._ID,this.xmlData,this.id_ns);if(node){_44b=dojo.string.trim(node);}this._cachedRawID=_44b;}return this._cachedRawID;},equals:function(_44c){return com.ibm.mm.enabler.utils.Utils.getIdFromIdentifiable(this)==com.ibm.mm.enabler.utils.Utils.getIdFromIdentifiable(_44c);},setID:function(id){this._initServiceDoc();var _44d=this._getRawID();var _44e=this.id_prefix;if(_44d){var _44f=_44d.indexOf(this.id_prefix);if(_44f>0){_44e=_44d.substring(0,_44f+this.id_prefix.length);}}var _450=com.ibm.mm.enabler.IdentifiableHelper.replaceID(_44d||"",_44e,id);if(_450!=_44d){this._setRawID(_450);}},_setRawID:function(id){this._initServiceDoc();id=id||"";var node=com.ibm.mashups.enabler.xml.XPath.evaluateEntry(com.ibm.mm.enabler.utils.Atom._ID,this.xmlData,this.id_ns);if(node){var _451=this._getRawID();if(id!=_451){com.ibm.mm.enabler.utils.Dom.textContent(node,id);this._setDirty();this._cachedRawID=dojo.string.trim(id);}}else{throw new Error(dojo.string.substitute(this.modelMessages.E_ELEMENT_NOT_FOUND_2,[com.ibm.mm.enabler.utils.Atom._ID,this.toString()]));}},getUn