var COMPILED=!0,goog=goog||{};goog.global=this;goog.exportPath_=function(a,b,c){a=a.split(".");c=c||goog.global;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&void 0!==b?c[d]=b:c=c[d]?c[d]:c[d]={}};
goog.define=function(a,b){var c=b;COMPILED||(goog.global.CLOSURE_UNCOMPILED_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_UNCOMPILED_DEFINES,a)?c=goog.global.CLOSURE_UNCOMPILED_DEFINES[a]:goog.global.CLOSURE_DEFINES&&Object.prototype.hasOwnProperty.call(goog.global.CLOSURE_DEFINES,a)&&(c=goog.global.CLOSURE_DEFINES[a]));goog.exportPath_(a,c)};goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.STRICT_MODE_COMPATIBLE=!1;
goog.provide=function(a){if(!COMPILED){if(goog.isProvided_(a))throw Error('Namespace "'+a+'" already declared.');delete goog.implicitNamespaces_[a];for(var b=a;(b=b.substring(0,b.lastIndexOf(".")))&&!goog.getObjectByName(b);)goog.implicitNamespaces_[b]=!0}goog.exportPath_(a)};goog.setTestOnly=function(a){if(COMPILED&&!goog.DEBUG)throw a=a||"",Error("Importing test-only code into non-debug environment"+a?": "+a:".");};goog.forwardDeclare=function(a){};
COMPILED||(goog.isProvided_=function(a){return!goog.implicitNamespaces_[a]&&goog.isDefAndNotNull(goog.getObjectByName(a))},goog.implicitNamespaces_={});goog.getObjectByName=function(a,b){for(var c=a.split("."),d=b||goog.global,e;e=c.shift();)if(goog.isDefAndNotNull(d[e]))d=d[e];else return null;return d};goog.globalize=function(a,b){var c=b||goog.global,d;for(d in a)c[d]=a[d]};
goog.addDependency=function(a,b,c){if(goog.DEPENDENCIES_ENABLED){var d;a=a.replace(/\\/g,"/");for(var e=goog.dependencies_,f=0;d=b[f];f++)e.nameToPath[d]=a,a in e.pathToNames||(e.pathToNames[a]={}),e.pathToNames[a][d]=!0;for(d=0;b=c[d];d++)a in e.requires||(e.requires[a]={}),e.requires[a][b]=!0}};goog.ENABLE_DEBUG_LOADER=!0;
goog.require=function(a){if(!COMPILED&&!goog.isProvided_(a)){if(goog.ENABLE_DEBUG_LOADER){var b=goog.getPathFromDeps_(a);if(b){goog.included_[b]=!0;goog.writeScripts_();return}}a="goog.require could not find: "+a;goog.global.console&&goog.global.console.error(a);throw Error(a);}};goog.basePath="";goog.nullFunction=function(){};goog.identityFunction=function(a,b){return a};goog.abstractMethod=function(){throw Error("unimplemented abstract method");};
goog.addSingletonGetter=function(a){a.getInstance=function(){if(a.instance_)return a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER;
goog.DEPENDENCIES_ENABLED&&(goog.included_={},goog.dependencies_={pathToNames:{},nameToPath:{},requires:{},visited:{},written:{}},goog.inHtmlDocument_=function(){var a=goog.global.document;return"undefined"!=typeof a&&"write"in a},goog.findBasePath_=function(){if(goog.global.CLOSURE_BASE_PATH)goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_())for(var a=goog.global.document.getElementsByTagName("script"),b=a.length-1;0<=b;--b){var c=a[b].src,d=c.lastIndexOf("?"),d=-1==d?c.length:
d;if("base.js"==c.substr(d-7,7)){goog.basePath=c.substr(0,d-7);break}}},goog.importScript_=function(a){var b=goog.global.CLOSURE_IMPORT_SCRIPT||goog.writeScriptTag_;!goog.dependencies_.written[a]&&b(a)&&(goog.dependencies_.written[a]=!0)},goog.writeScriptTag_=function(a){if(goog.inHtmlDocument_()){var b=goog.global.document;if("complete"==b.readyState){if(/\bdeps.js$/.test(a))return!1;throw Error('Cannot write "'+a+'" after document load');}b.write('<script type="text/javascript" src="'+a+'">\x3c/script>');
return!0}return!1},goog.writeScripts_=function(){function a(e){if(!(e in d.written)){if(!(e in d.visited)&&(d.visited[e]=!0,e in d.requires))for(var g in d.requires[e])if(!goog.isProvided_(g))if(g in d.nameToPath)a(d.nameToPath[g]);else throw Error("Undefined nameToPath for "+g);e in c||(c[e]=!0,b.push(e))}}var b=[],c={},d=goog.dependencies_,e;for(e in goog.included_)d.written[e]||a(e);for(e=0;e<b.length;e++)if(b[e])goog.importScript_(goog.basePath+b[e]);else throw Error("Undefined script input");
},goog.getPathFromDeps_=function(a){return a in goog.dependencies_.nameToPath?goog.dependencies_.nameToPath[a]:null},goog.findBasePath_(),goog.global.CLOSURE_NO_DEPS||goog.importScript_(goog.basePath+"deps.js"));
goog.typeOf=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};goog.isDef=function(a){return void 0!==a};goog.isNull=function(a){return null===a};goog.isDefAndNotNull=function(a){return null!=a};goog.isArray=function(a){return"array"==goog.typeOf(a)};goog.isArrayLike=function(a){var b=goog.typeOf(a);return"array"==b||"object"==b&&"number"==typeof a.length};goog.isDateLike=function(a){return goog.isObject(a)&&"function"==typeof a.getFullYear};goog.isString=function(a){return"string"==typeof a};
goog.isBoolean=function(a){return"boolean"==typeof a};goog.isNumber=function(a){return"number"==typeof a};goog.isFunction=function(a){return"function"==goog.typeOf(a)};goog.isObject=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};goog.getUid=function(a){return a[goog.UID_PROPERTY_]||(a[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(a){return!!a[goog.UID_PROPERTY_]};goog.removeUid=function(a){"removeAttribute"in a&&a.removeAttribute(goog.UID_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}};
goog.UID_PROPERTY_="closure_uid_"+(1E9*Math.random()>>>0);goog.uidCounter_=0;goog.getHashCode=goog.getUid;goog.removeHashCode=goog.removeUid;goog.cloneObject=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.cloneObject(a[c]);return b}return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)};
goog.bindJs_=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}};goog.bind=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_;return goog.bind.apply(null,arguments)};
goog.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};goog.mixin=function(a,b){for(var c in b)a[c]=b[c]};goog.now=goog.TRUSTED_SITE&&Date.now||function(){return+new Date};
goog.globalEval=function(a){if(goog.global.execScript)goog.global.execScript(a,"JavaScript");else if(goog.global.eval)if(null==goog.evalWorksForGlobals_&&(goog.global.eval("var _et_ = 1;"),"undefined"!=typeof goog.global._et_?(delete goog.global._et_,goog.evalWorksForGlobals_=!0):goog.evalWorksForGlobals_=!1),goog.evalWorksForGlobals_)goog.global.eval(a);else{var b=goog.global.document,c=b.createElement("script");c.type="text/javascript";c.defer=!1;c.appendChild(b.createTextNode(a));b.body.appendChild(c);
b.body.removeChild(c)}else throw Error("goog.globalEval not available");};goog.evalWorksForGlobals_=null;goog.getCssName=function(a,b){var c=function(a){return goog.cssNameMapping_[a]||a},d=function(a){a=a.split("-");for(var b=[],d=0;d<a.length;d++)b.push(c(a[d]));return b.join("-")},d=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?c:d:function(a){return a};return b?a+"-"+d(b):d(a)};goog.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingStyle_=b};
!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING);goog.getMsg=function(a,b){var c=b||{},d;for(d in c){var e=(""+c[d]).replace(/\$/g,"$$$$");a=a.replace(RegExp("\\{\\$"+d+"\\}","gi"),e)}return a};goog.getMsgWithFallback=function(a,b){return a};goog.exportSymbol=function(a,b,c){goog.exportPath_(a,b,c)};goog.exportProperty=function(a,b,c){a[b]=c};
goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,f){var g=Array.prototype.slice.call(arguments,2);return b.prototype[c].apply(a,g)}};
goog.base=function(a,b,c){var d=arguments.callee.caller;if(goog.STRICT_MODE_COMPATIBLE||goog.DEBUG&&!d)throw Error("arguments.caller not defined.  goog.base() cannot be used with strict mode code. See http://www.ecma-international.org/ecma-262/5.1/#sec-C");if(d.superClass_)return d.superClass_.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var e=Array.prototype.slice.call(arguments,2),f=!1,g=a.constructor;g;g=g.superClass_&&g.superClass_.constructor)if(g.prototype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a,
e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("goog.base called from a method of one name to a method of a different name");};goog.scope=function(a){a.call(goog.global)};var neutron={dashboard:{}};neutron.dashboard.tests={};neutron.dashboard.tests.RunSession=function(a,b){this._testCaseRunners=[];this.exceptionsHandler=null;this._stopAtBreakpointWhenFail=!1;this._outputHTMLOnException=!0;this._context=a||null;this._startDate=b?new Date(1E3*(b||0)):new Date};neutron.dashboard.tests.RunSession.prototype.getContext=function(){return this._context};neutron.dashboard.tests.RunSession.prototype.setStopAtBreakpointWhenFail=function(a){this._stopAtBreakpointWhenFail=a};
neutron.dashboard.tests.RunSession.prototype.shouldStopAtBreakpointWhenFail=function(){return this._stopAtBreakpointWhenFail};neutron.dashboard.tests.RunSession.prototype.setOutputHTMLOnExceptionWhenException=function(a){this._outputHTMLOnException=a};neutron.dashboard.tests.RunSession.prototype.shouldOutputHTMLOnExceptionWhenException=function(){return this._outputHTMLOnException};neutron.dashboard.tests.RunSession.prototype.addRunner=function(a){this._testCaseRunners.push(a)};
neutron.dashboard.tests.RunSession.prototype.run=function(a){var b=a||function(){},c=this,d=function(a){window.automationIsRunning=!0;var e=a||0;window.neutronJavaScriptObject.executeQuery("setSidePanelTestAreRunning",JSON.stringify({value:!0}));c._testCaseRunners.length>e?c._testCaseRunners[e].run(function(){d(e+1)}):(window.onerror=null,b(),console.log("JSTESTS - Tests finnished"),c._printSummary(),window.neutronJavaScriptObject.executeQuery("setSidePanelTestAreRunning",JSON.stringify({value:!1})),
neutron.dashboard.tests.standartOutput.testSuiteEnd(),window.automationIsRunning=!1)};window.neutronJavaScriptObject.executeQuery("storeTestResults","TestRunStart");console.log("JSTESTS - Tests start");window.onerror=function(a,b,d,e,l){var m=a;c.shouldOutputHTMLOnExceptionWhenException()&&(m+="\n<![CDATA["+document.documentElement.innerHTML+"]]\x3e");window.setTimeout(function(){c._failWithException(m,b,d,e,l)},0)};var e=0;for(a=0;a<c._testCaseRunners.length;a++)e+=c._testCaseRunners[a].getTestsRunnersCount();
setTimeout(function(){neutron.dashboard.tests.standartOutput.testSuiteStart(e);d()},0)};neutron.dashboard.tests.RunSession.prototype.getAtTimeDescription=function(){var a=Math.round((new Date-this._startDate)/1E3);return Math.floor(a/60)+":"+a%60};neutron.dashboard.tests.RunSession.prototype._failWithException=function(a,b,c,d,e){null!=this.exceptionsHandler&&this.exceptionsHandler(a,b,c,d,e)};
neutron.dashboard.tests.RunSession.prototype._printSummary=function(){var a=0,b=0;console.log("-------------------------------------------------------");for(var c=0;c<this._testCaseRunners.length;c++)this._testCaseRunners[c].foreachTestRunner(function(c){c.hasFailed()?(b++,console.log("JSTESTS - %c* FAILED "+c.getFullName(),"color:red")):(a++,console.log("JSTESTS - * PASSED "+c.getFullName()))});console.log("JSTESTS - ");console.log("JSTESTS - * "+a+" test(s) has PASSED");console.log("JSTESTS - * "+
b+" test(s) has FAILED");console.log("JSTESTS - ");console.log("JSTESTS - -------------------------------------------------------")};neutron.dashboard.tests.TestSuiteEntryPoint=function(a){this.run={};this._testSuite=a;a.addedToEntryPoint(this)};neutron.dashboard.tests.WaitForBool=function(a){this._boolFunc=a};neutron.dashboard.tests.WaitForBool.prototype.becomeTrue=function(a,b,c){var d=this,e=Date.now(),f=function(){var g=Date.now()-e;c>g?!0===d._boolFunc()?a():window.setTimeout(f,200):b()};f();return this};neutron.dashboard.tests.WaitForBool.prototype.becomeFalse=function(a,b,c){var d=this,e=Date.now(),f=function(){var g=Date.now()-e;c>g?!1===d._boolFunc()?a():window.setTimeout(f,200):b()};f();return this};neutron.dashboard.tests.WaitForElement=function(a){this._elementFinder=a};neutron.dashboard.tests.WaitForElement.prototype.appeared=function(a,b,c){var d=this,e=Date.now(),f=function(){var g=Date.now()-e;c>g?(g=d._elementFinder(),goog.isDefAndNotNull(g)?a(g):window.setTimeout(f,200)):b()};f();return this};
neutron.dashboard.tests.WaitForElement.prototype.disappeared=function(a,b,c){var d=this,e=Date.now(),f=function(){var g=Date.now()-e;c>g?(g=d._elementFinder(),!1==goog.isDefAndNotNull(g)?a(g):window.setTimeout(f,200)):b()};f();return this};neutron.dashboard.tests.Flow=function(a){this._testHandler=a||null;this._steps=[];this._running=!1;this._completion=null};neutron.dashboard.tests.Flow.prototype.setTestHandler=function(a){this._testHandler=a};neutron.dashboard.tests.Flow.prototype.complete=function(a){!0===this._running?this._testHandler.fail("flow.complete() called more than once!"):(this._running=!0,this._completion=a||null,this._makeStep(0))};
neutron.dashboard.tests.Flow.prototype.waitForElementAppear=function(a,b,c,d,e){var f=this,g=new neutron.dashboard.tests.WaitForElement(c),h=f._steps.length,k=d||!1,l=e||0;return{then:function(c){var d=c||null;f._steps.push({make:function(){var c=Date.now();f._testHandler.infoWithTimeStamp(a);g.appeared(function(a){f._testHandler.info("   done at time "+(Date.now()-c)/1E3+"s");f._continue(h,d,[a])},function(){0<l-0?(l++,f._continue(h-2,d)):!1===k?f._testHandler.fail(a+" timeout at time "+(Date.now()-
c)/1E3+"s"):(f._testHandler.info("   timeout at time "+(Date.now()-c)/1E3+"s but i can continue"),f._continue(h,d,[null]))},b)}});return f}}};
neutron.dashboard.tests.Flow.prototype.waitForElementDisappear=function(a,b,c,d){var e=this,f=new neutron.dashboard.tests.WaitForElement(c),g=e._steps.length,h=d||!1;return{then:function(c){var d=c||null;e._steps.push({make:function(){var c=Date.now();e._testHandler.infoWithTimeStamp(a);f.disappeared(function(){e._testHandler.info("   done at time "+(Date.now()-c)/1E3+"s");e._continue(g,d)},function(){!1===h?e._testHandler.fail(a+": timeout at time "+(Date.now()-c)/1E3+"s"):(e._testHandler.info(a+
": timeout at time "+(Date.now()-c)/1E3+"s but i can continue"),e._continue(g,d,[null]))},b)}});return e}}};
neutron.dashboard.tests.Flow.prototype.waitForBoolBecomeTrue=function(a,b,c,d){var e=this,f=new neutron.dashboard.tests.WaitForBool(c),g=e._steps.length,h=d||0,k=0;return{then:function(c){var d=c||null;e._steps.push({make:function(){var c=Date.now();e._testHandler.infoWithTimeStamp(a);f.becomeTrue(function(){e._testHandler.info("   done at time "+(Date.now()-c)/1E3+"s");e._continue(g,d)},function(){0<h-k?(e._testHandler.info("   timeout at time "+(Date.now()-c)/1E3+"s. BUT REPEAT IS POSSIBLE :"+k+
1),k++,e._continue(g-2,d)):e._testHandler.fail(a+" timeout at time "+(Date.now()-c)/1E3+"s")},b)}});return e}}};
neutron.dashboard.tests.Flow.prototype.waitForBoolBecomeFalse=function(a,b,c){var d=this,e=new neutron.dashboard.tests.WaitForBool(c),f=d._steps.length;return{then:function(c){var h=c||null;d._steps.push({make:function(){var c=Date.now();d._testHandler.infoWithTimeStamp(a);e.becomeFalse(function(){d._testHandler.info("   done at time "+(Date.now()-c)/1E3+"s");d._continue(f,h)},function(){d._testHandler.fail(a+" timeout at time "+(Date.now()-c)/1E3+"s")},b)}});return d}}};
neutron.dashboard.tests.Flow.prototype.waitForTimeout=function(a,b){var c=this,d=c._steps.length;return{then:function(e){var f=e||null;c._steps.push({make:function(){var e=Date.now();c._testHandler.infoWithTimeStamp(a);window.setTimeout(function(){c._testHandler.info("   done at time "+(Date.now()-e)/1E3+"s");c._continue(d,f)},b)}});return c}}};
neutron.dashboard.tests.Flow.prototype.justDo=function(a){var b=this,c=b._steps.length;return{then:function(d){var e=d||null;b._steps.push({make:function(){window.setTimeout(function(){a();b._continue(c,e)},0)}});return b}}};neutron.dashboard.tests.Flow.prototype.justDoWithCompletionHandler=function(a){var b=this,c=b._steps.length;return{then:function(d){var e=d||null;b._steps.push({make:function(){window.setTimeout(function(){a({done:function(){b._continue(c,e)}})},0)}});return b}}};
neutron.dashboard.tests.Flow.prototype.alternatives=function(a){var b=this,c=b._steps.length;return{then:function(d){var e=d||null;b._steps.push({make:function(){var d=a();null!=d?(d.setTestHandler(b._testHandler),d.complete(function(){b._continue(c,e)})):b._continue(c,e)}});return b}}};
neutron.dashboard.tests.Flow.prototype.waitForFlowComplete=function(a){var b=this,c=b._steps.length;return{then:function(d){var e=d||null;b._steps.push({make:function(){a.setTestHandler(b._testHandler);a.complete(function(){b._continue(c,e)})}});return b}}};
neutron.dashboard.tests.Flow.prototype.waitForCallback=function(a,b,c){var d=this,e=d._steps.length;return{then:function(f){var g=f||null,h=!1;d._steps.push({make:function(){var f=Date.now();window.setTimeout(function(){!1==h&&d._testHandler.fail(a+" timeout at time "+(Date.now()-f)/1E3+"s")},c);d._testHandler.infoWithTimeStamp(a);goog.async.nextTick(function(){b(function(){d._testHandler.hasFailed()||!0==h||(h=!0,d._continue(e,g))})})}});return d}}};
neutron.dashboard.tests.Flow.prototype.testHandler=function(){return this._testHandler};neutron.dashboard.tests.Flow.prototype._continue=function(a,b,c){var d=this;if(!1===this._testHandler.hasFailed()){var e=b||null,f=function(){!1===d._testHandler.hasFailed()?d._makeStep(a+1):d._finnish()};null!=e?window.setTimeout(function(){e.apply(this,c);f()},200):f()}else this._finnish()};neutron.dashboard.tests.Flow.prototype._makeStep=function(a){this._steps.length>a?this._steps[a].make():this._finnish()};
neutron.dashboard.tests.Flow.prototype._finnish=function(){null!=this._completion?this._completion():this._testHandler.markComplete()};neutron.dashboard.tests.Flow.prototype.fail=function(a){this._testHandler.fail(a)};neutron.dashboard.tests.Flow.prototype.info=function(a){this._testHandler.infoWithTimeStamp(a)};goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.debug={};goog.debug.Error=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,goog.debug.Error);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};goog.inherits(goog.debug.Error,Error);goog.debug.Error.prototype.name="CustomError";goog.string={};goog.string.Unicode={NBSP:"\u00a0"};goog.string.startsWith=function(a,b){return 0==a.lastIndexOf(b,0)};goog.string.endsWith=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};goog.string.caseInsensitiveStartsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(0,b.length))};goog.string.caseInsensitiveEndsWith=function(a,b){return 0==goog.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))};
goog.string.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowerCase()};goog.string.subs=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")};goog.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmpty=function(a){return/^[\s\xa0]*$/.test(a)};goog.string.isEmptySafe=function(a){return goog.string.isEmpty(goog.string.makeSafe(a))};
goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};goog.string.isNumeric=function(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return" "==a};goog.string.isUnicodeChar=function(a){return 1==a.length&&" "<=a&&"~">=a||"\u0080"<=a&&"\ufffd">=a};goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};
goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};goog.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensitiveCompare=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase();return c<d?-1:c==d?0:1};goog.string.numerateCompareRegExp_=/(\.\d+)|(\d+)|(\D+)/g;
goog.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var c=a.toLowerCase().match(goog.string.numerateCompareRegExp_),d=b.toLowerCase().match(goog.string.numerateCompareRegExp_),e=Math.min(c.length,d.length),f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h)return c=parseInt(g,10),!isNaN(c)&&(d=parseInt(h,10),!isNaN(d)&&c-d)?c-d:g<h?-1:1}return c.length!=d.length?c.length-d.length:a<b?-1:1};goog.string.urlEncode=function(a){return encodeURIComponent(String(a))};
goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};goog.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
goog.string.htmlEscape=function(a,b){if(b)return a.replace(goog.string.amperRe_,"&amp;").replace(goog.string.ltRe_,"&lt;").replace(goog.string.gtRe_,"&gt;").replace(goog.string.quotRe_,"&quot;").replace(goog.string.singleQuoteRe_,"&#39;");if(!goog.string.allRe_.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(goog.string.amperRe_,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(goog.string.ltRe_,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(goog.string.gtRe_,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(goog.string.quotRe_,
"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(goog.string.singleQuoteRe_,"&#39;"));return a};goog.string.amperRe_=/&/g;goog.string.ltRe_=/</g;goog.string.gtRe_=/>/g;goog.string.quotRe_=/"/g;goog.string.singleQuoteRe_=/'/g;goog.string.allRe_=/[&<>"']/;goog.string.unescapeEntities=function(a){return goog.string.contains(a,"&")?"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.string.unescapePureXmlEntities_(a):a};
goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contains(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a};
goog.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},d;d=b?b.createElement("div"):document.createElement("div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(a,b){var g=c[a];if(g)return g;if("#"==b.charAt(0)){var h=Number("0"+b.substr(1));isNaN(h)||(g=String.fromCharCode(h))}g||(d.innerHTML=a+" ",g=d.firstChild.nodeValue.slice(0,-1));return c[a]=g})};
goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return a}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g;goog.string.whitespaceEscape=function(a,b){return goog.string.newLineToBr(a.replace(/  /g," &#160;"),b)};
goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=1==c?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a};goog.string.truncate=function(a,b,c){c&&(a=goog.string.unescapeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.htmlEscape(a));return a};
goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities(a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;a=a.substring(0,b-d)+"..."+a.substring(e)}else a.length>b&&(d=Math.floor(b/2),e=a.length-d,a=a.substring(0,d+b%2)+"..."+a.substring(e));c&&(a=goog.string.htmlEscape(a));return a};goog.string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"};goog.string.jsEscapeCache_={"'":"\\'"};
goog.string.quote=function(a){a=String(a);if(a.quote)return a.quote();for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string.specialEscapeChars_[d]||(31<e&&127>e?d:goog.string.escapeChar(d))}b.push('"');return b.join("")};goog.string.escapeString=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")};
goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b=a,c=a.charCodeAt(0);if(31<c&&127>c)b=a;else{if(256>c){if(b="\\x",16>c||256<c)b+="0"}else b="\\u",4096>c&&(b+="0");b+=c.toString(16).toUpperCase()}return goog.string.jsEscapeCache_[a]=b};goog.string.toMap=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=!0;return b};
goog.string.contains=function(a,b){return-1!=a.indexOf(b)};goog.string.caseInsensitiveContains=function(a,b){return goog.string.contains(a.toLowerCase(),b.toLowerCase())};goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};goog.string.removeAt=function(a,b,c){var d=a;0<=b&&(b<a.length&&0<c)&&(d=a.substr(0,b)+a.substr(b+c,a.length-b-c));return d};goog.string.remove=function(a,b){var c=RegExp(goog.string.regExpEscape(b),"");return a.replace(c,"")};
goog.string.removeAll=function(a,b){var c=RegExp(goog.string.regExpEscape(b),"g");return a.replace(c,"")};goog.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.string.repeat=function(a,b){return Array(b+1).join(a)};goog.string.padNumber=function(a,b,c){a=goog.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return goog.string.repeat("0",Math.max(0,b-c))+a};
goog.string.makeSafe=function(a){return null==a?"":String(a)};goog.string.buildString=function(a){return Array.prototype.join.call(arguments,"")};goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)};
goog.string.compareVersions=function(a,b){for(var c=0,d=goog.string.trim(String(a)).split("."),e=goog.string.trim(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",k=e[g]||"",l=RegExp("(\\d*)(\\D*)","g"),m=RegExp("(\\d*)(\\D*)","g");do{var n=l.exec(h)||["","",""],q=m.exec(k)||["","",""];if(0==n[0].length&&0==q[0].length)break;var c=0==n[1].length?0:parseInt(n[1],10),p=0==q[1].length?0:parseInt(q[1],10),c=goog.string.compareElements_(c,p)||goog.string.compareElements_(0==
n[2].length,0==q[2].length)||goog.string.compareElements_(n[2],q[2])}while(0==c)}return c};goog.string.compareElements_=function(a,b){return a<b?-1:a>b?1:0};goog.string.HASHCODE_MAX_=4294967296;goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=goog.string.HASHCODE_MAX_;return b};goog.string.uniqueStringCounter_=2147483648*Math.random()|0;goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++};
goog.string.toNumber=function(a){var b=Number(a);return 0==b&&goog.string.isEmpty(a)?NaN:b};goog.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)};goog.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.test(a)};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
goog.string.toTitleCase=function(a,b){var c=goog.isString(b)?goog.string.regExpEscape(b):"\\s";return a.replace(RegExp("(^"+(c?"|["+c+"]+":"")+")([a-z])","g"),function(a,b,c){return b+c.toUpperCase()})};goog.string.parseInt=function(a){isFinite(a)&&(a=String(a));return goog.isString(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};goog.string.splitLimit=function(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d};goog.asserts={};goog.asserts.ENABLE_ASSERTS=goog.DEBUG;goog.asserts.AssertionError=function(a,b){b.unshift(a);goog.debug.Error.call(this,goog.string.subs.apply(null,b));b.shift();this.messagePattern=a};goog.inherits(goog.asserts.AssertionError,goog.debug.Error);goog.asserts.AssertionError.prototype.name="AssertionError";goog.asserts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);throw new goog.asserts.AssertionError(""+e,f||[]);};
goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.fail=function(a,b){if(goog.asserts.ENABLE_ASSERTS)throw new goog.asserts.AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};
goog.asserts.assertNumber=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isNumber(a)&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertString=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isString(a)&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.assertFunction=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isFunction(a)&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertObject=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isObject(a)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.assertArray=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isArray(a)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertBoolean=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!goog.isBoolean(a)&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};
goog.asserts.assertElement=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&(!goog.isObject(a)||a.nodeType!=goog.dom.NodeType.ELEMENT)&&goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a};goog.asserts.assertInstanceof=function(a,b,c,d){goog.asserts.ENABLE_ASSERTS&&!(a instanceof b)&&goog.asserts.doAssertFailure_("instanceof check failed.",null,c,Array.prototype.slice.call(arguments,3));return a};
goog.asserts.assertObjectPrototypeIsIntact=function(){for(var a in Object.prototype)goog.asserts.fail(a+" should not be enumerable in Object.prototype.")};goog.disposable={};goog.disposable.IDisposable=function(){};goog.Disposable=function(){goog.Disposable.MONITORING_MODE!=goog.Disposable.MonitoringMode.OFF&&(goog.Disposable.INCLUDE_STACK_ON_CREATION&&(this.creationStack=Error().stack),goog.Disposable.instances_[goog.getUid(this)]=this)};goog.Disposable.MonitoringMode={OFF:0,PERMANENT:1,INTERACTIVE:2};goog.Disposable.MONITORING_MODE=0;goog.Disposable.INCLUDE_STACK_ON_CREATION=!0;goog.Disposable.instances_={};
goog.Disposable.getUndisposedObjects=function(){var a=[],b;for(b in goog.Disposable.instances_)goog.Disposable.instances_.hasOwnProperty(b)&&a.push(goog.Disposable.instances_[Number(b)]);return a};goog.Disposable.clearUndisposedObjects=function(){goog.Disposable.instances_={}};goog.Disposable.prototype.disposed_=!1;goog.Disposable.prototype.isDisposed=function(){return this.disposed_};goog.Disposable.prototype.getDisposed=goog.Disposable.prototype.isDisposed;
goog.Disposable.prototype.dispose=function(){if(!this.disposed_&&(this.disposed_=!0,this.disposeInternal(),goog.Disposable.MONITORING_MODE!=goog.Disposable.MonitoringMode.OFF)){var a=goog.getUid(this);if(goog.Disposable.MONITORING_MODE==goog.Disposable.MonitoringMode.PERMANENT&&!goog.Disposable.instances_.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");delete goog.Disposable.instances_[a]}};
goog.Disposable.prototype.registerDisposable=function(a){this.addOnDisposeCallback(goog.partial(goog.dispose,a))};goog.Disposable.prototype.addOnDisposeCallback=function(a,b){this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]);this.onDisposeCallbacks_.push(goog.bind(a,b))};goog.Disposable.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};
goog.Disposable.isDisposed=function(a){return a&&"function"==typeof a.isDisposed?a.isDisposed():!1};goog.dispose=function(a){a&&"function"==typeof a.dispose&&a.dispose()};goog.disposeAll=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];goog.isArrayLike(d)?goog.disposeAll.apply(null,d):goog.dispose(d)}};goog.labs={};goog.labs.userAgent={};goog.labs.userAgent.util={};goog.labs.userAgent.util.getNativeUserAgentString_=function(){var a=goog.labs.userAgent.util.getNavigator_();return a&&(a=a.userAgent)?a:""};goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator};goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_();goog.labs.userAgent.util.setUserAgent=function(a){goog.labs.userAgent.util.userAgent_=a||goog.labs.userAgent.util.getNativeUserAgentString_()};
goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_};goog.labs.userAgent.util.matchUserAgent=function(a){var b=goog.labs.userAgent.util.getUserAgent();return goog.string.contains(b,a)};goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(a){var b=goog.labs.userAgent.util.getUserAgent();return goog.string.caseInsensitiveContains(b,a)};
goog.labs.userAgent.util.extractVersionTuples=function(a){for(var b=RegExp("(\\w[\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c};goog.array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;goog.array.ASSUME_NATIVE_FUNCTIONS=!1;goog.array.peek=function(a){return a[a.length-1]};goog.array.ARRAY_PROTOTYPE_=Array.prototype;
goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.indexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog.isString(a))return!goog.isString(b)||1!=b.length?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.lastIndexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(goog.isString(a))return!goog.isString(b)||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.forEach)?function(a,b,c){goog.asserts.assert(null!=a.length);goog.array.ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)};
goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.filter)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e};
goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.map)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=goog.isString(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};
goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.reduce)?function(a,b,c,d){goog.asserts.assert(null!=a.length);d&&(b=goog.bind(b,d));return goog.array.ARRAY_PROTOTYPE_.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEach(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.reduceRight)?function(a,b,c,d){goog.asserts.assert(null!=a.length);d&&(b=goog.bind(b,d));return goog.array.ARRAY_PROTOTYPE_.reduceRight.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEachRight(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.some)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};
goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.every)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};goog.array.count=function(a,b,c){var d=0;goog.array.forEach(a,function(a,f,g){b.call(c,a,f,g)&&++d},c);return d};
goog.array.find=function(a,b,c){b=goog.array.findIndex(a,b,c);return 0>b?null:goog.isString(a)?a.charAt(b):a[b]};goog.array.findIndex=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};goog.array.findRight=function(a,b,c){b=goog.array.findIndexRight(a,b,c);return 0>b?null:goog.isString(a)?a.charAt(b):a[b]};
goog.array.findIndexRight=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,d=d-1;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};goog.array.contains=function(a,b){return 0<=goog.array.indexOf(a,b)};goog.array.isEmpty=function(a){return 0==a.length};goog.array.clear=function(a){if(!goog.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};goog.array.insert=function(a,b){goog.array.contains(a,b)||a.push(b)};
goog.array.insertAt=function(a,b,c){goog.array.splice(a,c,0,b)};goog.array.insertArrayAt=function(a,b,c){goog.partial(goog.array.splice,a,c,0).apply(null,b)};goog.array.insertBefore=function(a,b,c){var d;2==arguments.length||0>(d=goog.array.indexOf(a,c))?a.push(b):goog.array.insertAt(a,b,d)};goog.array.remove=function(a,b){var c=goog.array.indexOf(a,b),d;(d=0<=c)&&goog.array.removeAt(a,c);return d};
goog.array.removeAt=function(a,b){goog.asserts.assert(null!=a.length);return 1==goog.array.ARRAY_PROTOTYPE_.splice.call(a,b,1).length};goog.array.removeIf=function(a,b,c){b=goog.array.findIndex(a,b,c);return 0<=b?(goog.array.removeAt(a,b),!0):!1};goog.array.concat=function(a){return goog.array.ARRAY_PROTOTYPE_.concat.apply(goog.array.ARRAY_PROTOTYPE_,arguments)};goog.array.join=function(a){return goog.array.ARRAY_PROTOTYPE_.concat.apply(goog.array.ARRAY_PROTOTYPE_,arguments)};
goog.array.toArray=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};goog.array.clone=goog.array.toArray;goog.array.extend=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(goog.isArray(d)||(e=goog.isArrayLike(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,g=d.length,h=0;h<g;h++)a[f+h]=d[h];else a.push(d)}};
goog.array.splice=function(a,b,c,d){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.splice.apply(a,goog.array.slice(arguments,1))};goog.array.slice=function(a,b,c){goog.asserts.assert(null!=a.length);return 2>=arguments.length?goog.array.ARRAY_PROTOTYPE_.slice.call(a,b):goog.array.ARRAY_PROTOTYPE_.slice.call(a,b,c)};
goog.array.removeDuplicates=function(a,b,c){b=b||a;var d=function(a){return goog.isObject(g)?"o"+goog.getUid(g):(typeof g).charAt(0)+g};c=c||d;for(var d={},e=0,f=0;f<a.length;){var g=a[f++],h=c(g);Object.prototype.hasOwnProperty.call(d,h)||(d[h]=!0,b[e++]=g)}b.length=e};goog.array.binarySearch=function(a,b,c){return goog.array.binarySearch_(a,c||goog.array.defaultCompare,!1,b)};goog.array.binarySelect=function(a,b,c){return goog.array.binarySearch_(a,b,!0,void 0,c)};
goog.array.binarySearch_=function(a,b,c,d,e){for(var f=0,g=a.length,h;f<g;){var k=f+g>>1,l;l=c?b.call(e,a[k],k,a):b(d,a[k]);0<l?f=k+1:(g=k,h=!l)}return h?f:~f};goog.array.sort=function(a,b){a.sort(b||goog.array.defaultCompare)};goog.array.stableSort=function(a,b){for(var c=0;c<a.length;c++)a[c]={index:c,value:a[c]};var d=b||goog.array.defaultCompare;goog.array.sort(a,function(a,b){return d(a.value,b.value)||a.index-b.index});for(c=0;c<a.length;c++)a[c]=a[c].value};
goog.array.sortObjectsByKey=function(a,b,c){var d=c||goog.array.defaultCompare;goog.array.sort(a,function(a,c){return d(a[b],c[b])})};goog.array.isSorted=function(a,b,c){b=b||goog.array.defaultCompare;for(var d=1;d<a.length;d++){var e=b(a[d-1],a[d]);if(0<e||0==e&&c)return!1}return!0};goog.array.equals=function(a,b,c){if(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;var d=a.length;c=c||goog.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};
goog.array.compare3=function(a,b,c){c=c||goog.array.defaultCompare;for(var d=Math.min(a.length,b.length),e=0;e<d;e++){var f=c(a[e],b[e]);if(0!=f)return f}return goog.array.defaultCompare(a.length,b.length)};goog.array.defaultCompare=function(a,b){return a>b?1:a<b?-1:0};goog.array.defaultCompareEquality=function(a,b){return a===b};goog.array.binaryInsert=function(a,b,c){c=goog.array.binarySearch(a,b,c);return 0>c?(goog.array.insertAt(a,b,-(c+1)),!0):!1};
goog.array.binaryRemove=function(a,b,c){b=goog.array.binarySearch(a,b,c);return 0<=b?goog.array.removeAt(a,b):!1};goog.array.bucket=function(a,b,c){for(var d={},e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);goog.isDef(g)&&(d[g]||(d[g]=[])).push(f)}return d};goog.array.toObject=function(a,b,c){var d={};goog.array.forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d};
goog.array.range=function(a,b,c){var d=[],e=0,f=a;c=c||1;void 0!==b&&(e=a,f=b);if(0>c*(f-e))return[];if(0<c)for(a=e;a<f;a+=c)d.push(a);else for(a=e;a>f;a+=c)d.push(a);return d};goog.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};goog.array.flatten=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];goog.isArray(d)?b.push.apply(b,goog.array.flatten.apply(null,d)):b.push(d)}return b};
goog.array.rotate=function(a,b){goog.asserts.assert(null!=a.length);a.length&&(b%=a.length,0<b?goog.array.ARRAY_PROTOTYPE_.unshift.apply(a,a.splice(-b,b)):0>b&&goog.array.ARRAY_PROTOTYPE_.push.apply(a,a.splice(0,-b)));return a};goog.array.moveItem=function(a,b,c){goog.asserts.assert(0<=b&&b<a.length);goog.asserts.assert(0<=c&&c<a.length);b=goog.array.ARRAY_PROTOTYPE_.splice.call(a,b,1);goog.array.ARRAY_PROTOTYPE_.splice.call(a,c,0,b[0])};
goog.array.zip=function(a){if(!arguments.length)return[];for(var b=[],c=0;;c++){for(var d=[],e=0;e<arguments.length;e++){var f=arguments[e];if(c>=f.length)return b;d.push(f[c])}b.push(d)}};goog.array.shuffle=function(a,b){for(var c=b||Math.random,d=a.length-1;0<d;d--){var e=Math.floor(c()*(d+1)),f=a[d];a[d]=a[e];a[e]=f}};goog.labs.userAgent.browser={};goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")||goog.labs.userAgent.util.matchUserAgent("OPR")};goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")};goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")};
goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!goog.labs.userAgent.util.matchUserAgent("Chrome")&&!goog.labs.userAgent.util.matchUserAgent("CriOS")&&!goog.labs.userAgent.util.matchUserAgent("Android")};goog.labs.userAgent.browser.matchChrome_=function(){return goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS")};
goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!goog.labs.userAgent.util.matchUserAgent("Chrome")&&!goog.labs.userAgent.util.matchUserAgent("CriOS")};goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_;goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_;goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_;goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_;
goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_;goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_;goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")};
goog.labs.userAgent.browser.getVersion=function(){var a=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(a);if(goog.labs.userAgent.browser.isOpera())return goog.labs.userAgent.browser.getOperaVersion_(a);a=goog.labs.userAgent.util.extractVersionTuples(a);return goog.labs.userAgent.browser.getVersionFromTuples_(a)};
goog.labs.userAgent.browser.isVersionOrHigher=function(a){return 0<=goog.string.compareVersions(goog.labs.userAgent.browser.getVersion(),a)};goog.labs.userAgent.browser.getIEVersion_=function(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];var b="",c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),"7.0"==c[1])if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b};
goog.labs.userAgent.browser.getOperaVersion_=function(a){a=goog.labs.userAgent.util.extractVersionTuples(a);var b=goog.array.peek(a);return"OPR"==b[0]&&b[1]?b[1]:goog.labs.userAgent.browser.getVersionFromTuples_(a)};goog.labs.userAgent.browser.getVersionFromTuples_=function(a){goog.asserts.assert(2<a.length,"Couldn't extract version tuple from user agent string");return a[2]&&a[2][1]?a[2][1]:""};goog.labs.userAgent.engine={};goog.labs.userAgent.engine.isPresto=function(){return goog.labs.userAgent.util.matchUserAgent("Presto")};goog.labs.userAgent.engine.isTrident=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")};goog.labs.userAgent.engine.isWebKit=function(){return goog.labs.userAgent.util.matchUserAgent("WebKit")};
goog.labs.userAgent.engine.isGecko=function(){return goog.labs.userAgent.util.matchUserAgent("Gecko")&&!goog.labs.userAgent.engine.isWebKit()&&!goog.labs.userAgent.engine.isTrident()};goog.labs.userAgent.engine.getVersion=function(){var a=goog.labs.userAgent.util.getUserAgent();if(a){var a=goog.labs.userAgent.util.extractVersionTuples(a),b=a[1];if(b)return"Gecko"==b[0]?goog.labs.userAgent.engine.getVersionForKey_(a,"Firefox"):b[1];var a=a[0],c;if(a&&(c=a[2]))if(c=/Trident\/([^\s;]+)/.exec(c))return c[1]}return""};
goog.labs.userAgent.engine.isVersionOrHigher=function(a){return 0<=goog.string.compareVersions(goog.labs.userAgent.engine.getVersion(),a)};goog.labs.userAgent.engine.getVersionForKey_=function(a,b){var c=goog.array.find(a,function(a){return b==a[0]});return c&&c[1]||""};goog.userAgent={};goog.userAgent.ASSUME_IE=!1;goog.userAgent.ASSUME_GECKO=!1;goog.userAgent.ASSUME_WEBKIT=!1;goog.userAgent.ASSUME_MOBILE_WEBKIT=!1;goog.userAgent.ASSUME_OPERA=!1;goog.userAgent.ASSUME_ANY_VERSION=!1;goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA;goog.userAgent.getUserAgentString=function(){return goog.labs.userAgent.util.getUserAgent()};
goog.userAgent.getNavigator=function(){return goog.global.navigator||null};goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:goog.labs.userAgent.browser.isOpera();goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:goog.labs.userAgent.browser.isIE();goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:goog.labs.userAgent.engine.isGecko();
goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:goog.labs.userAgent.engine.isWebKit();goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&goog.labs.userAgent.util.matchUserAgent("Mobile")};goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_();goog.userAgent.SAFARI=goog.userAgent.WEBKIT;
goog.userAgent.determinePlatform_=function(){var a=goog.userAgent.getNavigator();return a&&a.platform||""};goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_();goog.userAgent.ASSUME_MAC=!1;goog.userAgent.ASSUME_WINDOWS=!1;goog.userAgent.ASSUME_LINUX=!1;goog.userAgent.ASSUME_X11=!1;goog.userAgent.ASSUME_ANDROID=!1;goog.userAgent.ASSUME_IPHONE=!1;goog.userAgent.ASSUME_IPAD=!1;
goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_X11||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD;
goog.userAgent.initPlatform_=function(){goog.userAgent.detectedMac_=goog.string.contains(goog.userAgent.PLATFORM,"Mac");goog.userAgent.detectedWindows_=goog.string.contains(goog.userAgent.PLATFORM,"Win");goog.userAgent.detectedLinux_=goog.string.contains(goog.userAgent.PLATFORM,"Linux");goog.userAgent.detectedX11_=!!goog.userAgent.getNavigator()&&goog.string.contains(goog.userAgent.getNavigator().appVersion||"","X11");var a=goog.userAgent.getUserAgentString();goog.userAgent.detectedAndroid_=!!a&&
goog.string.contains(a,"Android");goog.userAgent.detectedIPhone_=!!a&&goog.string.contains(a,"iPhone");goog.userAgent.detectedIPad_=!!a&&goog.string.contains(a,"iPad")};goog.userAgent.PLATFORM_KNOWN_||goog.userAgent.initPlatform_();goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:goog.userAgent.detectedMac_;goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:goog.userAgent.detectedWindows_;
goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.detectedLinux_;goog.userAgent.X11=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_X11:goog.userAgent.detectedX11_;goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:goog.userAgent.detectedAndroid_;goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:goog.userAgent.detectedIPhone_;
goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:goog.userAgent.detectedIPad_;
goog.userAgent.determineVersion_=function(){var a="",b;if(goog.userAgent.OPERA&&goog.global.opera)return a=goog.global.opera.version,goog.isFunction(a)?a():a;goog.userAgent.GECKO?b=/rv\:([^\);]+)(\)|;)/:goog.userAgent.IE?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:goog.userAgent.WEBKIT&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(goog.userAgent.getUserAgentString()))?a[1]:"");return goog.userAgent.IE&&(b=goog.userAgent.getDocumentMode_(),b>parseFloat(a))?String(b):a};
goog.userAgent.getDocumentMode_=function(){var a=goog.global.document;return a?a.documentMode:void 0};goog.userAgent.VERSION=goog.userAgent.determineVersion_();goog.userAgent.compare=function(a,b){return goog.string.compareVersions(a,b)};goog.userAgent.isVersionOrHigherCache_={};
goog.userAgent.isVersionOrHigher=function(a){return goog.userAgent.ASSUME_ANY_VERSION||goog.userAgent.isVersionOrHigherCache_[a]||(goog.userAgent.isVersionOrHigherCache_[a]=0<=goog.string.compareVersions(goog.userAgent.VERSION,a))};goog.userAgent.isVersion=goog.userAgent.isVersionOrHigher;goog.userAgent.isDocumentModeOrHigher=function(a){return goog.userAgent.IE&&goog.userAgent.DOCUMENT_MODE>=a};goog.userAgent.isDocumentMode=goog.userAgent.isDocumentModeOrHigher;
goog.userAgent.DOCUMENT_MODE=function(){var a=goog.global.document;return!a||!goog.userAgent.IE?void 0:goog.userAgent.getDocumentMode_()||("CSS1Compat"==a.compatMode?parseInt(goog.userAgent.VERSION,10):5)}();goog.events={};goog.events.EventId=function(a){this.id=a};goog.events.EventId.prototype.toString=function(){return this.id};goog.events.Listenable=function(){};goog.events.Listenable.IMPLEMENTED_BY_PROP="closure_listenable_"+(1E6*Math.random()|0);goog.events.Listenable.addImplementation=function(a){a.prototype[goog.events.Listenable.IMPLEMENTED_BY_PROP]=!0};goog.events.Listenable.isImplementedBy=function(a){try{return!(!a||!a[goog.events.Listenable.IMPLEMENTED_BY_PROP])}catch(b){return!1}};goog.events.ListenableKey=function(){};goog.events.ListenableKey.counter_=0;goog.events.ListenableKey.reserveKey=function(){return++goog.events.ListenableKey.counter_};goog.events.Listener=function(a,b,c,d,e,f){goog.events.Listener.ENABLE_MONITORING&&(this.creationStack=Error().stack);this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.key=goog.events.ListenableKey.reserveKey();this.removed=this.callOnce=!1};goog.events.Listener.ENABLE_MONITORING=!1;goog.events.Listener.prototype.markAsRemoved=function(){this.removed=!0;this.handler=this.src=this.proxy=this.listener=null};goog.object={};goog.object.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};goog.object.filter=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};goog.object.map=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};goog.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};goog.object.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};
goog.object.getCount=function(a){var b=0,c;for(c in a)b++;return b};goog.object.getAnyKey=function(a){for(var b in a)return b};goog.object.getAnyValue=function(a){for(var b in a)return a[b]};goog.object.contains=function(a,b){return goog.object.containsValue(a,b)};goog.object.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};goog.object.getKeys=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
goog.object.getValueByKeys=function(a,b){for(var c=goog.isArrayLike(b),d=c?b:arguments,c=c?0:1;c<d.length&&!(a=a[d[c]],!goog.isDef(a));c++);return a};goog.object.containsKey=function(a,b){return b in a};goog.object.containsValue=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};goog.object.findValue=function(a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]};
goog.object.isEmpty=function(a){for(var b in a)return!1;return!0};goog.object.clear=function(a){for(var b in a)delete a[b]};goog.object.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};goog.object.add=function(a,b,c){if(b in a)throw Error('The object already contains the key "'+b+'"');goog.object.set(a,b,c)};goog.object.get=function(a,b,c){return b in a?a[b]:c};goog.object.set=function(a,b,c){a[b]=c};goog.object.setIfUndefined=function(a,b,c){return b in a?a[b]:a[b]=c};
goog.object.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};goog.object.unsafeClone=function(a){var b=goog.typeOf(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=goog.object.unsafeClone(a[c]);return b}return a};goog.object.transpose=function(a){var b={},c;for(c in a)b[a[c]]=c;return b};goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
goog.object.extend=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<goog.object.PROTOTYPE_FIELDS_.length;f++)c=goog.object.PROTOTYPE_FIELDS_[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
goog.object.create=function(a){var b=arguments.length;if(1==b&&goog.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};goog.object.createSet=function(a){var b=arguments.length;if(1==b&&goog.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
goog.object.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};goog.object.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};goog.events.ListenerMap=function(a){this.src=a;this.listeners={};this.typeCount_=0};goog.events.ListenerMap.prototype.getTypeCount=function(){return this.typeCount_};goog.events.ListenerMap.prototype.getListenerCount=function(){var a=0,b;for(b in this.listeners)a+=this.listeners[b].length;return a};
goog.events.ListenerMap.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var g=goog.events.ListenerMap.findListenerIndex_(a,b,d,e);-1<g?(b=a[g],c||(b.callOnce=!1)):(b=new goog.events.Listener(b,null,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};
goog.events.ListenerMap.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=goog.events.ListenerMap.findListenerIndex_(e,b,c,d);return-1<b?(e[b].markAsRemoved(),goog.array.removeAt(e,b),0==e.length&&(delete this.listeners[a],this.typeCount_--),!0):!1};
goog.events.ListenerMap.prototype.removeByKey=function(a){var b=a.type;if(!(b in this.listeners))return!1;var c=goog.array.remove(this.listeners[b],a);c&&(a.markAsRemoved(),0==this.listeners[b].length&&(delete this.listeners[b],this.typeCount_--));return c};goog.events.ListenerMap.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,d[e].markAsRemoved();delete this.listeners[c];this.typeCount_--}return b};
goog.events.ListenerMap.prototype.getListeners=function(a,b){var c=this.listeners[a.toString()],d=[];if(c)for(var e=0;e<c.length;++e){var f=c[e];f.capture==b&&d.push(f)}return d};goog.events.ListenerMap.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=goog.events.ListenerMap.findListenerIndex_(a,b,c,d));return-1<e?a[e]:null};
goog.events.ListenerMap.prototype.hasListener=function(a,b){var c=goog.isDef(a),d=c?a.toString():"",e=goog.isDef(b);return goog.object.some(this.listeners,function(a,g){for(var h=0;h<a.length;++h)if((!c||a[h].type==d)&&(!e||a[h].capture==b))return!0;return!1})};goog.events.ListenerMap.findListenerIndex_=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.handler==d)return e}return-1};goog.events.BrowserFeature={HAS_W3C_BUTTON:!goog.userAgent.IE||goog.userAgent.isDocumentModeOrHigher(9),HAS_W3C_EVENT_SUPPORT:!goog.userAgent.IE||goog.userAgent.isDocumentModeOrHigher(9),SET_KEY_CODE_TO_PREVENT_DEFAULT:goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("9"),HAS_NAVIGATOR_ONLINE_PROPERTY:!goog.userAgent.WEBKIT||goog.userAgent.isVersionOrHigher("528"),HAS_HTML5_NETWORK_EVENT_SUPPORT:goog.userAgent.GECKO&&goog.userAgent.isVersionOrHigher("1.9b")||goog.userAgent.IE&&goog.userAgent.isVersionOrHigher("8")||
goog.userAgent.OPERA&&goog.userAgent.isVersionOrHigher("9.5")||goog.userAgent.WEBKIT&&goog.userAgent.isVersionOrHigher("528"),HTML5_NETWORK_EVENTS_FIRE_ON_BODY:goog.userAgent.GECKO&&!goog.userAgent.isVersionOrHigher("8")||goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("9"),TOUCH_ENABLED:"ontouchstart"in goog.global||!(!goog.global.document||!(document.documentElement&&"ontouchstart"in document.documentElement))||!(!goog.global.navigator||!goog.global.navigator.msMaxTouchPoints)};goog.debug.entryPointRegistry={};goog.debug.EntryPointMonitor=function(){};goog.debug.entryPointRegistry.refList_=[];goog.debug.entryPointRegistry.monitors_=[];goog.debug.entryPointRegistry.monitorsMayExist_=!1;goog.debug.entryPointRegistry.register=function(a){goog.debug.entryPointRegistry.refList_[goog.debug.entryPointRegistry.refList_.length]=a;if(goog.debug.entryPointRegistry.monitorsMayExist_)for(var b=goog.debug.entryPointRegistry.monitors_,c=0;c<b.length;c++)a(goog.bind(b[c].wrap,b[c]))};
goog.debug.entryPointRegistry.monitorAll=function(a){goog.debug.entryPointRegistry.monitorsMayExist_=!0;for(var b=goog.bind(a.wrap,a),c=0;c<goog.debug.entryPointRegistry.refList_.length;c++)goog.debug.entryPointRegistry.refList_[c](b);goog.debug.entryPointRegistry.monitors_.push(a)};
goog.debug.entryPointRegistry.unmonitorAllIfPossible=function(a){var b=goog.debug.entryPointRegistry.monitors_;goog.asserts.assert(a==b[b.length-1],"Only the most recent monitor can be unwrapped.");a=goog.bind(a.unwrap,a);for(var c=0;c<goog.debug.entryPointRegistry.refList_.length;c++)goog.debug.entryPointRegistry.refList_[c](a);b.length--};goog.events.getVendorPrefixedName_=function(a){return goog.userAgent.WEBKIT?"webkit"+a:goog.userAgent.OPERA?"o"+a.toLowerCase():a.toLowerCase()};
goog.events.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",SELECTSTART:"selectstart",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",DEACTIVATE:"deactivate",FOCUSIN:goog.userAgent.IE?"focusin":"DOMFocusIn",FOCUSOUT:goog.userAgent.IE?"focusout":"DOMFocusOut",CHANGE:"change",SELECT:"select",SUBMIT:"submit",INPUT:"input",PROPERTYCHANGE:"propertychange",
DRAGSTART:"dragstart",DRAG:"drag",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",DRAGEND:"dragend",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",TOUCHCANCEL:"touchcancel",BEFOREUNLOAD:"beforeunload",CONSOLEMESSAGE:"consolemessage",CONTEXTMENU:"contextmenu",DOMCONTENTLOADED:"DOMContentLoaded",ERROR:"error",HELP:"help",LOAD:"load",LOSECAPTURE:"losecapture",ORIENTATIONCHANGE:"orientationchange",READYSTATECHANGE:"readystatechange",RESIZE:"resize",SCROLL:"scroll",
UNLOAD:"unload",HASHCHANGE:"hashchange",PAGEHIDE:"pagehide",PAGESHOW:"pageshow",POPSTATE:"popstate",COPY:"copy",PASTE:"paste",CUT:"cut",BEFORECOPY:"beforecopy",BEFORECUT:"beforecut",BEFOREPASTE:"beforepaste",ONLINE:"online",OFFLINE:"offline",MESSAGE:"message",CONNECT:"connect",ANIMATIONSTART:goog.events.getVendorPrefixedName_("AnimationStart"),ANIMATIONEND:goog.events.getVendorPrefixedName_("AnimationEnd"),ANIMATIONITERATION:goog.events.getVendorPrefixedName_("AnimationIteration"),TRANSITIONEND:goog.events.getVendorPrefixedName_("TransitionEnd"),
POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTERCANCEL:"pointercancel",POINTERMOVE:"pointermove",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",GOTPOINTERCAPTURE:"gotpointercapture",LOSTPOINTERCAPTURE:"lostpointercapture",MSGESTURECHANGE:"MSGestureChange",MSGESTUREEND:"MSGestureEnd",MSGESTUREHOLD:"MSGestureHold",MSGESTURESTART:"MSGestureStart",MSGESTURETAP:"MSGestureTap",MSGOTPOINTERCAPTURE:"MSGotPointerCapture",MSINERTIASTART:"MSInertiaStart",
MSLOSTPOINTERCAPTURE:"MSLostPointerCapture",MSPOINTERCANCEL:"MSPointerCancel",MSPOINTERDOWN:"MSPointerDown",MSPOINTERENTER:"MSPointerEnter",MSPOINTERHOVER:"MSPointerHover",MSPOINTERLEAVE:"MSPointerLeave",MSPOINTERMOVE:"MSPointerMove",MSPOINTEROUT:"MSPointerOut",MSPOINTEROVER:"MSPointerOver",MSPOINTERUP:"MSPointerUp",TEXTINPUT:"textinput",COMPOSITIONSTART:"compositionstart",COMPOSITIONUPDATE:"compositionupdate",COMPOSITIONEND:"compositionend",EXIT:"exit",LOADABORT:"loadabort",LOADCOMMIT:"loadcommit",
LOADREDIRECT:"loadredirect",LOADSTART:"loadstart",LOADSTOP:"loadstop",RESPONSIVE:"responsive",SIZECHANGED:"sizechanged",UNRESPONSIVE:"unresponsive",VISIBILITYCHANGE:"visibilitychange",STORAGE:"storage"};goog.events.Event=function(a,b){this.type=a instanceof goog.events.EventId?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1;this.returnValue_=!0};goog.events.Event.prototype.disposeInternal=function(){};goog.events.Event.prototype.dispose=function(){};goog.events.Event.prototype.stopPropagation=function(){this.propagationStopped_=!0};goog.events.Event.prototype.preventDefault=function(){this.defaultPrevented=!0;this.returnValue_=!1};
goog.events.Event.stopPropagation=function(a){a.stopPropagation()};goog.events.Event.preventDefault=function(a){a.preventDefault()};goog.reflect={};goog.reflect.object=function(a,b){return b};goog.reflect.sinkValue=function(a){goog.reflect.sinkValue[" "](a);return a};goog.reflect.sinkValue[" "]=goog.nullFunction;goog.reflect.canAccessProperty=function(a,b){try{return goog.reflect.sinkValue(a[b]),!0}catch(c){}return!1};goog.events.BrowserEvent=function(a,b){goog.events.BrowserEvent.base(this,"constructor",a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.platformModifierKey=!1;this.event_=null;a&&this.init(a,b)};goog.inherits(goog.events.BrowserEvent,goog.events.Event);
goog.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2};goog.events.BrowserEvent.IEButtonMap=[1,4,2];
goog.events.BrowserEvent.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?goog.userAgent.GECKO&&(goog.reflect.canAccessProperty(d,"nodeName")||(d=null)):c==goog.events.EventType.MOUSEOVER?d=a.fromElement:c==goog.events.EventType.MOUSEOUT&&(d=a.toElement);this.relatedTarget=d;this.offsetX=goog.userAgent.WEBKIT||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=goog.userAgent.WEBKIT||void 0!==a.offsetY?a.offsetY:a.layerY;
this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=goog.userAgent.MAC?a.metaKey:a.ctrlKey;this.state=a.state;this.event_=a;a.defaultPrevented&&this.preventDefault()};
goog.events.BrowserEvent.prototype.isButton=function(a){return goog.events.BrowserFeature.HAS_W3C_BUTTON?this.event_.button==a:"click"==this.type?a==goog.events.BrowserEvent.MouseButton.LEFT:!!(this.event_.button&goog.events.BrowserEvent.IEButtonMap[a])};goog.events.BrowserEvent.prototype.isMouseActionButton=function(){return this.isButton(goog.events.BrowserEvent.MouseButton.LEFT)&&!(goog.userAgent.WEBKIT&&goog.userAgent.MAC&&this.ctrlKey)};
goog.events.BrowserEvent.prototype.stopPropagation=function(){goog.events.BrowserEvent.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
goog.events.BrowserEvent.prototype.preventDefault=function(){goog.events.BrowserEvent.superClass_.preventDefault.call(this);var a=this.event_;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,goog.events.BrowserFeature.SET_KEY_CODE_TO_PREVENT_DEFAULT)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};goog.events.BrowserEvent.prototype.getBrowserEvent=function(){return this.event_};goog.events.BrowserEvent.prototype.disposeInternal=function(){};goog.events.listeners_={};goog.events.LISTENER_MAP_PROP_="closure_lm_"+(1E6*Math.random()|0);goog.events.onString_="on";goog.events.onStringMap_={};goog.events.CaptureSimulationMode={OFF_AND_FAIL:0,OFF_AND_SILENT:1,ON:2};goog.events.CAPTURE_SIMULATION_MODE=2;goog.events.listenerCountEstimate_=0;
goog.events.listen=function(a,b,c,d,e){if(goog.isArray(b)){for(var f=0;f<b.length;f++)goog.events.listen(a,b[f],c,d,e);return null}c=goog.events.wrapListener(c);return goog.events.Listenable.isImplementedBy(a)?a.listen(b,c,d,e):goog.events.listen_(a,b,c,!1,d,e)};
goog.events.listen_=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=!!e;if(g&&!goog.events.BrowserFeature.HAS_W3C_EVENT_SUPPORT){if(goog.events.CAPTURE_SIMULATION_MODE==goog.events.CaptureSimulationMode.OFF_AND_FAIL)return goog.asserts.fail("Can not register capture listener in IE8-."),null;if(goog.events.CAPTURE_SIMULATION_MODE==goog.events.CaptureSimulationMode.OFF_AND_SILENT)return null}var h=goog.events.getListenerMap_(a);h||(a[goog.events.LISTENER_MAP_PROP_]=h=new goog.events.ListenerMap(a));
c=h.add(b,c,d,e,f);if(c.proxy)return c;d=goog.events.getProxy();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,g):a.attachEvent(goog.events.getOnString_(b.toString()),d);goog.events.listenerCountEstimate_++;return c};goog.events.getProxy=function(){var a=goog.events.handleBrowserEvent_,b=goog.events.BrowserFeature.HAS_W3C_EVENT_SUPPORT?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b};
goog.events.listenOnce=function(a,b,c,d,e){if(goog.isArray(b)){for(var f=0;f<b.length;f++)goog.events.listenOnce(a,b[f],c,d,e);return null}c=goog.events.wrapListener(c);return goog.events.Listenable.isImplementedBy(a)?a.listenOnce(b,c,d,e):goog.events.listen_(a,b,c,!0,d,e)};goog.events.listenWithWrapper=function(a,b,c,d,e){b.listen(a,c,d,e)};
goog.events.unlisten=function(a,b,c,d,e){if(goog.isArray(b)){for(var f=0;f<b.length;f++)goog.events.unlisten(a,b[f],c,d,e);return null}c=goog.events.wrapListener(c);if(goog.events.Listenable.isImplementedBy(a))return a.unlisten(b,c,d,e);if(!a)return!1;d=!!d;if(a=goog.events.getListenerMap_(a))if(b=a.getListener(b,c,d,e))return goog.events.unlistenByKey(b);return!1};
goog.events.unlistenByKey=function(a){if(goog.isNumber(a)||!a||a.removed)return!1;var b=a.src;if(goog.events.Listenable.isImplementedBy(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(goog.events.getOnString_(c),d);goog.events.listenerCountEstimate_--;(c=goog.events.getListenerMap_(b))?(c.removeByKey(a),0==c.getTypeCount()&&(c.src=null,b[goog.events.LISTENER_MAP_PROP_]=null)):a.markAsRemoved();return!0};
goog.events.unlistenWithWrapper=function(a,b,c,d,e){b.unlisten(a,c,d,e)};goog.events.removeAll=function(a,b){if(!a)return 0;if(goog.events.Listenable.isImplementedBy(a))return a.removeAllListeners(b);var c=goog.events.getListenerMap_(a);if(!c)return 0;var d=0,e=b&&b.toString(),f;for(f in c.listeners)if(!e||f==e)for(var g=goog.array.clone(c.listeners[f]),h=0;h<g.length;++h)goog.events.unlistenByKey(g[h])&&++d;return d};
goog.events.removeAllNativeListeners=function(){return goog.events.listenerCountEstimate_=0};goog.events.getListeners=function(a,b,c){return goog.events.Listenable.isImplementedBy(a)?a.getListeners(b,c):!a?[]:(a=goog.events.getListenerMap_(a))?a.getListeners(b,c):[]};goog.events.getListener=function(a,b,c,d,e){c=goog.events.wrapListener(c);d=!!d;return goog.events.Listenable.isImplementedBy(a)?a.getListener(b,c,d,e):!a?null:(a=goog.events.getListenerMap_(a))?a.getListener(b,c,d,e):null};
goog.events.hasListener=function(a,b,c){if(goog.events.Listenable.isImplementedBy(a))return a.hasListener(b,c);a=goog.events.getListenerMap_(a);return!!a&&a.hasListener(b,c)};goog.events.expose=function(a){var b=[],c;for(c in a)a[c]&&a[c].id?b.push(c+" = "+a[c]+" ("+a[c].id+")"):b.push(c+" = "+a[c]);return b.join("\n")};goog.events.getOnString_=function(a){return a in goog.events.onStringMap_?goog.events.onStringMap_[a]:goog.events.onStringMap_[a]=goog.events.onString_+a};
goog.events.fireListeners=function(a,b,c,d){return goog.events.Listenable.isImplementedBy(a)?a.fireListeners(b,c,d):goog.events.fireListeners_(a,b,c,d)};goog.events.fireListeners_=function(a,b,c,d){var e=1;if(a=goog.events.getListenerMap_(a))if(b=a.listeners[b.toString()]){b=goog.array.clone(b);for(a=0;a<b.length;a++){var f=b[a];f&&(f.capture==c&&!f.removed)&&(e&=!1!==goog.events.fireListener(f,d))}}return Boolean(e)};
goog.events.fireListener=function(a,b){var c=a.listener,d=a.handler||a.src;a.callOnce&&goog.events.unlistenByKey(a);return c.call(d,b)};goog.events.getTotalListenerCount=function(){return goog.events.listenerCountEstimate_};goog.events.dispatchEvent=function(a,b){goog.asserts.assert(goog.events.Listenable.isImplementedBy(a),"Can not use goog.events.dispatchEvent with non-goog.events.Listenable instance.");return a.dispatchEvent(b)};
goog.events.protectBrowserEventEntryPoint=function(a){goog.events.handleBrowserEvent_=a.protectEntryPoint(goog.events.handleBrowserEvent_)};
goog.events.handleBrowserEvent_=function(a,b){if(a.removed)return!0;if(!goog.events.BrowserFeature.HAS_W3C_EVENT_SUPPORT){var c=b||goog.getObjectByName("window.event"),d=new goog.events.BrowserEvent(c,this),e=!0;if(goog.events.CAPTURE_SIMULATION_MODE==goog.events.CaptureSimulationMode.ON){if(!goog.events.isMarkedIeEvent_(c)){goog.events.markIeEvent_(c);for(var c=[],f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,g=c.length-1;!d.propagationStopped_&&0<=g;g--)d.currentTarget=c[g],e&=goog.events.fireListeners_(c[g],
f,!0,d);for(g=0;!d.propagationStopped_&&g<c.length;g++)d.currentTarget=c[g],e&=goog.events.fireListeners_(c[g],f,!1,d)}}else e=goog.events.fireListener(a,d);return e}return goog.events.fireListener(a,new goog.events.BrowserEvent(b,this))};goog.events.markIeEvent_=function(a){var b=!1;if(0==a.keyCode)try{a.keyCode=-1;return}catch(c){b=!0}if(b||void 0==a.returnValue)a.returnValue=!0};goog.events.isMarkedIeEvent_=function(a){return 0>a.keyCode||void 0!=a.returnValue};goog.events.uniqueIdCounter_=0;
goog.events.getUniqueId=function(a){return a+"_"+goog.events.uniqueIdCounter_++};goog.events.getListenerMap_=function(a){a=a[goog.events.LISTENER_MAP_PROP_];return a instanceof goog.events.ListenerMap?a:null};goog.events.LISTENER_WRAPPER_PROP_="__closure_events_fn_"+(1E9*Math.random()>>>0);
goog.events.wrapListener=function(a){goog.asserts.assert(a,"Listener can not be null.");if(goog.isFunction(a))return a;goog.asserts.assert(a.handleEvent,"An object listener must have handleEvent method.");return a[goog.events.LISTENER_WRAPPER_PROP_]||(a[goog.events.LISTENER_WRAPPER_PROP_]=function(b){return a.handleEvent(b)})};goog.debug.entryPointRegistry.register(function(a){goog.events.handleBrowserEvent_=a(goog.events.handleBrowserEvent_)});goog.math={};goog.math.randomInt=function(a){return Math.floor(Math.random()*a)};goog.math.uniformRandom=function(a,b){return a+Math.random()*(b-a)};goog.math.clamp=function(a,b,c){return Math.min(Math.max(a,b),c)};goog.math.modulo=function(a,b){var c=a%b;return 0>c*b?c+b:c};goog.math.lerp=function(a,b,c){return a+c*(b-a)};goog.math.nearlyEquals=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)};goog.math.standardAngle=function(a){return goog.math.modulo(a,360)};
goog.math.standardAngleInRadians=function(a){return goog.math.modulo(a,2*Math.PI)};goog.math.toRadians=function(a){return a*Math.PI/180};goog.math.toDegrees=function(a){return 180*a/Math.PI};goog.math.angleDx=function(a,b){return b*Math.cos(goog.math.toRadians(a))};goog.math.angleDy=function(a,b){return b*Math.sin(goog.math.toRadians(a))};goog.math.angle=function(a,b,c,d){return goog.math.standardAngle(goog.math.toDegrees(Math.atan2(d-b,c-a)))};
goog.math.angleDifference=function(a,b){var c=goog.math.standardAngle(b)-goog.math.standardAngle(a);180<c?c-=360:-180>=c&&(c=360+c);return c};goog.math.sign=function(a){return 0==a?0:0>a?-1:1};
goog.math.longestCommonSubsequence=function(a,b,c,d){c=c||function(a,b){return a==b};d=d||function(b,c){return a[b]};for(var e=a.length,f=b.length,g=[],h=0;h<e+1;h++)g[h]=[],g[h][0]=0;for(var k=0;k<f+1;k++)g[0][k]=0;for(h=1;h<=e;h++)for(k=1;k<=f;k++)c(a[h-1],b[k-1])?g[h][k]=g[h-1][k-1]+1:g[h][k]=Math.max(g[h-1][k],g[h][k-1]);for(var l=[],h=e,k=f;0<h&&0<k;)c(a[h-1],b[k-1])?(l.unshift(d(h-1,k-1)),h--,k--):g[h-1][k]>g[h][k-1]?h--:k--;return l};
goog.math.sum=function(a){return goog.array.reduce(arguments,function(a,c){return a+c},0)};goog.math.average=function(a){return goog.math.sum.apply(null,arguments)/arguments.length};goog.math.sampleVariance=function(a){var b=arguments.length;if(2>b)return 0;var c=goog.math.average.apply(null,arguments);return goog.math.sum.apply(null,goog.array.map(arguments,function(a){return Math.pow(a-c,2)}))/(b-1)};goog.math.standardDeviation=function(a){return Math.sqrt(goog.math.sampleVariance.apply(null,arguments))};
goog.math.isInt=function(a){return isFinite(a)&&0==a%1};goog.math.isFiniteNumber=function(a){return isFinite(a)&&!isNaN(a)};goog.math.log10Floor=function(a){if(0<a){var b=Math.round(Math.log(a)*Math.LOG10E);return b-(Math.pow(10,b)>a)}return 0==a?-Infinity:NaN};goog.math.safeFloor=function(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return Math.floor(a+(b||2E-15))};goog.math.safeCeil=function(a,b){goog.asserts.assert(!goog.isDef(b)||0<b);return Math.ceil(a-(b||2E-15))};goog.math.Coordinate=function(a,b){this.x=goog.isDef(a)?a:0;this.y=goog.isDef(b)?b:0};goog.math.Coordinate.prototype.clone=function(){return new goog.math.Coordinate(this.x,this.y)};goog.DEBUG&&(goog.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"});goog.math.Coordinate.equals=function(a,b){return a==b?!0:!a||!b?!1:a.x==b.x&&a.y==b.y};goog.math.Coordinate.distance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};
goog.math.Coordinate.magnitude=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};goog.math.Coordinate.azimuth=function(a){return goog.math.angle(0,0,a.x,a.y)};goog.math.Coordinate.squaredDistance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d};goog.math.Coordinate.difference=function(a,b){return new goog.math.Coordinate(a.x-b.x,a.y-b.y)};goog.math.Coordinate.sum=function(a,b){return new goog.math.Coordinate(a.x+b.x,a.y+b.y)};
goog.math.Coordinate.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};goog.math.Coordinate.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};goog.math.Coordinate.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};goog.math.Coordinate.prototype.translate=function(a,b){a instanceof goog.math.Coordinate?(this.x+=a.x,this.y+=a.y):(this.x+=a,goog.isNumber(b)&&(this.y+=b));return this};
goog.math.Coordinate.prototype.scale=function(a,b){var c=goog.isNumber(b)?b:a;this.x*=a;this.y*=c;return this};goog.math.Coordinate.prototype.rotateRadians=function(a,b){var c=b||new goog.math.Coordinate(0,0),d=this.x,e=this.y,f=Math.cos(a),g=Math.sin(a);this.x=(d-c.x)*f-(e-c.y)*g+c.x;this.y=(d-c.x)*g+(e-c.y)*f+c.y};goog.math.Coordinate.prototype.rotateDegrees=function(a,b){this.rotateRadians(goog.math.toRadians(a),b)};goog.math.Box=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};goog.math.Box.boundingBox=function(a){for(var b=new goog.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),c=1;c<arguments.length;c++){var d=arguments[c];b.top=Math.min(b.top,d.y);b.right=Math.max(b.right,d.x);b.bottom=Math.max(b.bottom,d.y);b.left=Math.min(b.left,d.x)}return b};goog.math.Box.prototype.clone=function(){return new goog.math.Box(this.top,this.right,this.bottom,this.left)};
goog.DEBUG&&(goog.math.Box.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"});goog.math.Box.prototype.contains=function(a){return goog.math.Box.contains(this,a)};goog.math.Box.prototype.expand=function(a,b,c,d){goog.isObject(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=b,this.bottom+=c,this.left-=d);return this};
goog.math.Box.prototype.expandToInclude=function(a){this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.right=Math.max(this.right,a.right);this.bottom=Math.max(this.bottom,a.bottom)};goog.math.Box.equals=function(a,b){return a==b?!0:!a||!b?!1:a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left};
goog.math.Box.contains=function(a,b){return!a||!b?!1:b instanceof goog.math.Box?b.left>=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom:b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};goog.math.Box.relativePositionX=function(a,b){return b.x<a.left?b.x-a.left:b.x>a.right?b.x-a.right:0};goog.math.Box.relativePositionY=function(a,b){return b.y<a.top?b.y-a.top:b.y>a.bottom?b.y-a.bottom:0};
goog.math.Box.distance=function(a,b){var c=goog.math.Box.relativePositionX(a,b),d=goog.math.Box.relativePositionY(a,b);return Math.sqrt(c*c+d*d)};goog.math.Box.intersects=function(a,b){return a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom};goog.math.Box.intersectsWithPadding=function(a,b,c){return a.left<=b.right+c&&b.left<=a.right+c&&a.top<=b.bottom+c&&b.top<=a.bottom+c};
goog.math.Box.prototype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};goog.math.Box.prototype.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
goog.math.Box.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};goog.math.Box.prototype.translate=function(a,b){a instanceof goog.math.Coordinate?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,goog.isNumber(b)&&(this.top+=b,this.bottom+=b));return this};
goog.math.Box.prototype.scale=function(a,b){var c=goog.isNumber(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};goog.math.Size=function(a,b){this.width=a;this.height=b};goog.math.Size.equals=function(a,b){return a==b?!0:!a||!b?!1:a.width==b.width&&a.height==b.height};goog.math.Size.prototype.clone=function(){return new goog.math.Size(this.width,this.height)};goog.DEBUG&&(goog.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"});goog.math.Size.prototype.getLongest=function(){return Math.max(this.width,this.height)};
goog.math.Size.prototype.getShortest=function(){return Math.min(this.width,this.height)};goog.math.Size.prototype.area=function(){return this.width*this.height};goog.math.Size.prototype.perimeter=function(){return 2*(this.width+this.height)};goog.math.Size.prototype.aspectRatio=function(){return this.width/this.height};goog.math.Size.prototype.isEmpty=function(){return!this.area()};goog.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
goog.math.Size.prototype.fitsInside=function(a){return this.width<=a.width&&this.height<=a.height};goog.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};goog.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};goog.math.Size.prototype.scale=function(a,b){var c=goog.isNumber(b)?b:a;this.width*=a;this.height*=c;return this};
goog.math.Size.prototype.scaleToFit=function(a){a=this.aspectRatio()>a.aspectRatio()?a.width/this.width:a.height/this.height;return this.scale(a)};goog.math.Rect=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};goog.math.Rect.prototype.clone=function(){return new goog.math.Rect(this.left,this.top,this.width,this.height)};goog.math.Rect.prototype.toBox=function(){return new goog.math.Box(this.top,this.left+this.width,this.top+this.height,this.left)};goog.math.Rect.createFromBox=function(a){return new goog.math.Rect(a.left,a.top,a.right-a.left,a.bottom-a.top)};
goog.DEBUG&&(goog.math.Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"});goog.math.Rect.equals=function(a,b){return a==b?!0:!a||!b?!1:a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height};
goog.math.Rect.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1};
goog.math.Rect.intersection=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return new goog.math.Rect(c,e,d-c,f-e)}return null};goog.math.Rect.intersects=function(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height};goog.math.Rect.prototype.intersects=function(a){return goog.math.Rect.intersects(this,a)};
goog.math.Rect.difference=function(a,b){var c=goog.math.Rect.intersection(a,b);if(!c||!c.height||!c.width)return[a.clone()];var c=[],d=a.top,e=a.height,f=a.left+a.width,g=a.top+a.height,h=b.left+b.width,k=b.top+b.height;b.top>a.top&&(c.push(new goog.math.Rect(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);k<g&&(c.push(new goog.math.Rect(a.left,k,a.width,g-k)),e=k-d);b.left>a.left&&c.push(new goog.math.Rect(a.left,d,b.left-a.left,e));h<f&&c.push(new goog.math.Rect(h,d,f-h,e));return c};
goog.math.Rect.prototype.difference=function(a){return goog.math.Rect.difference(this,a)};goog.math.Rect.prototype.boundingRect=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top};goog.math.Rect.boundingRect=function(a,b){if(!a||!b)return null;var c=a.clone();c.boundingRect(b);return c};
goog.math.Rect.prototype.contains=function(a){return a instanceof goog.math.Rect?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};goog.math.Rect.prototype.squaredDistance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return b*b+a*a};
goog.math.Rect.prototype.distance=function(a){return Math.sqrt(this.squaredDistance(a))};goog.math.Rect.prototype.getSize=function(){return new goog.math.Size(this.width,this.height)};goog.math.Rect.prototype.getTopLeft=function(){return new goog.math.Coordinate(this.left,this.top)};goog.math.Rect.prototype.getCenter=function(){return new goog.math.Coordinate(this.left+this.width/2,this.top+this.height/2)};
goog.math.Rect.prototype.getBottomRight=function(){return new goog.math.Coordinate(this.left+this.width,this.top+this.height)};goog.math.Rect.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};goog.math.Rect.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
goog.math.Rect.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};goog.math.Rect.prototype.translate=function(a,b){a instanceof goog.math.Coordinate?(this.left+=a.x,this.top+=a.y):(this.left+=a,goog.isNumber(b)&&(this.top+=b));return this};goog.math.Rect.prototype.scale=function(a,b){var c=goog.isNumber(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};goog.dom.vendor={};goog.dom.vendor.getVendorJsPrefix=function(){return goog.userAgent.WEBKIT?"Webkit":goog.userAgent.GECKO?"Moz":goog.userAgent.IE?"ms":goog.userAgent.OPERA?"O":null};goog.dom.vendor.getVendorPrefix=function(){return goog.userAgent.WEBKIT?"-webkit":goog.userAgent.GECKO?"-moz":goog.userAgent.IE?"-ms":goog.userAgent.OPERA?"-o":null};
goog.dom.vendor.getPrefixedPropertyName=function(a,b){if(b&&a in b)return a;var c=goog.dom.vendor.getVendorJsPrefix();return c?(c=c.toLowerCase(),c+=goog.string.toTitleCase(a),!goog.isDef(b)||c in b?c:null):null};goog.dom.vendor.getPrefixedEventType=function(a){return((goog.dom.vendor.getVendorJsPrefix()||"")+a).toLowerCase()};goog.dom.classes={};goog.dom.classes.set=function(a,b){a.className=b};goog.dom.classes.get=function(a){a=a.className;return goog.isString(a)&&a.match(/\S+/g)||[]};goog.dom.classes.add=function(a,b){var c=goog.dom.classes.get(a),d=goog.array.slice(arguments,1),e=c.length+d.length;goog.dom.classes.add_(c,d);goog.dom.classes.set(a,c.join(" "));return c.length==e};
goog.dom.classes.remove=function(a,b){var c=goog.dom.classes.get(a),d=goog.array.slice(arguments,1),e=goog.dom.classes.getDifference_(c,d);goog.dom.classes.set(a,e.join(" "));return e.length==c.length-d.length};goog.dom.classes.add_=function(a,b){for(var c=0;c<b.length;c++)goog.array.contains(a,b[c])||a.push(b[c])};goog.dom.classes.getDifference_=function(a,b){return goog.array.filter(a,function(a){return!goog.array.contains(b,a)})};
goog.dom.classes.swap=function(a,b,c){for(var d=goog.dom.classes.get(a),e=!1,f=0;f<d.length;f++)d[f]==b&&(goog.array.splice(d,f--,1),e=!0);e&&(d.push(c),goog.dom.classes.set(a,d.join(" ")));return e};goog.dom.classes.addRemove=function(a,b,c){var d=goog.dom.classes.get(a);goog.isString(b)?goog.array.remove(d,b):goog.isArray(b)&&(d=goog.dom.classes.getDifference_(d,b));goog.isString(c)&&!goog.array.contains(d,c)?d.push(c):goog.isArray(c)&&goog.dom.classes.add_(d,c);goog.dom.classes.set(a,d.join(" "))};
goog.dom.classes.has=function(a,b){return goog.array.contains(goog.dom.classes.get(a),b)};goog.dom.classes.enable=function(a,b,c){c?goog.dom.classes.add(a,b):goog.dom.classes.remove(a,b)};goog.dom.classes.toggle=function(a,b){var c=!goog.dom.classes.has(a,b);goog.dom.classes.enable(a,b,c);return c};goog.dom.TagName={A:"A",ABBR:"ABBR",ACRONYM:"ACRONYM",ADDRESS:"ADDRESS",APPLET:"APPLET",AREA:"AREA",ARTICLE:"ARTICLE",ASIDE:"ASIDE",AUDIO:"AUDIO",B:"B",BASE:"BASE",BASEFONT:"BASEFONT",BDI:"BDI",BDO:"BDO",BIG:"BIG",BLOCKQUOTE:"BLOCKQUOTE",BODY:"BODY",BR:"BR",BUTTON:"BUTTON",CANVAS:"CANVAS",CAPTION:"CAPTION",CENTER:"CENTER",CITE:"CITE",CODE:"CODE",COL:"COL",COLGROUP:"COLGROUP",COMMAND:"COMMAND",DATA:"DATA",DATALIST:"DATALIST",DD:"DD",DEL:"DEL",DETAILS:"DETAILS",DFN:"DFN",DIALOG:"DIALOG",DIR:"DIR",DIV:"DIV",
DL:"DL",DT:"DT",EM:"EM",EMBED:"EMBED",FIELDSET:"FIELDSET",FIGCAPTION:"FIGCAPTION",FIGURE:"FIGURE",FONT:"FONT",FOOTER:"FOOTER",FORM:"FORM",FRAME:"FRAME",FRAMESET:"FRAMESET",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",HEAD:"HEAD",HEADER:"HEADER",HGROUP:"HGROUP",HR:"HR",HTML:"HTML",I:"I",IFRAME:"IFRAME",IMG:"IMG",INPUT:"INPUT",INS:"INS",ISINDEX:"ISINDEX",KBD:"KBD",KEYGEN:"KEYGEN",LABEL:"LABEL",LEGEND:"LEGEND",LI:"LI",LINK:"LINK",MAP:"MAP",MARK:"MARK",MATH:"MATH",MENU:"MENU",META:"META",METER:"METER",
NAV:"NAV",NOFRAMES:"NOFRAMES",NOSCRIPT:"NOSCRIPT",OBJECT:"OBJECT",OL:"OL",OPTGROUP:"OPTGROUP",OPTION:"OPTION",OUTPUT:"OUTPUT",P:"P",PARAM:"PARAM",PRE:"PRE",PROGRESS:"PROGRESS",Q:"Q",RP:"RP",RT:"RT",RUBY:"RUBY",S:"S",SAMP:"SAMP",SCRIPT:"SCRIPT",SECTION:"SECTION",SELECT:"SELECT",SMALL:"SMALL",SOURCE:"SOURCE",SPAN:"SPAN",STRIKE:"STRIKE",STRONG:"STRONG",STYLE:"STYLE",SUB:"SUB",SUMMARY:"SUMMARY",SUP:"SUP",SVG:"SVG",TABLE:"TABLE",TBODY:"TBODY",TD:"TD",TEXTAREA:"TEXTAREA",TFOOT:"TFOOT",TH:"TH",THEAD:"THEAD",
TIME:"TIME",TITLE:"TITLE",TR:"TR",TRACK:"TRACK",TT:"TT",U:"U",UL:"UL",VAR:"VAR",VIDEO:"VIDEO",WBR:"WBR"};goog.functions={};goog.functions.constant=function(a){return function(){return a}};goog.functions.FALSE=goog.functions.constant(!1);goog.functions.TRUE=goog.functions.constant(!0);goog.functions.NULL=goog.functions.constant(null);goog.functions.identity=function(a,b){return a};goog.functions.error=function(a){return function(){throw Error(a);}};goog.functions.fail=function(a){return function(){throw a;}};
goog.functions.lock=function(a,b){b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};goog.functions.nth=function(a){return function(){return arguments[a]}};goog.functions.withReturnValue=function(a,b){return goog.functions.sequence(a,goog.functions.constant(b))};goog.functions.compose=function(a,b){var c=arguments,d=c.length;return function(){var a;d&&(a=c[d-1].apply(this,arguments));for(var b=d-2;0<=b;b--)a=c[b].call(this,a);return a}};
goog.functions.sequence=function(a){var b=arguments,c=b.length;return function(){for(var a,e=0;e<c;e++)a=b[e].apply(this,arguments);return a}};goog.functions.and=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(!b[a].apply(this,arguments))return!1;return!0}};goog.functions.or=function(a){var b=arguments,c=b.length;return function(){for(var a=0;a<c;a++)if(b[a].apply(this,arguments))return!0;return!1}};
goog.functions.not=function(a){return function(){return!a.apply(this,arguments)}};goog.functions.create=function(a,b){var c=function(){};c.prototype=a.prototype;c=new c;a.apply(c,Array.prototype.slice.call(arguments,1));return c};goog.functions.CACHE_RETURN_VALUE=!0;goog.functions.cacheReturnValue=function(a){var b=!1,c;return function(){if(!goog.functions.CACHE_RETURN_VALUE)return a();b||(c=a(),b=!0);return c}};goog.dom.BrowserFeature={CAN_ADD_NAME_OR_TYPE_ATTRIBUTES:!goog.userAgent.IE||goog.userAgent.isDocumentModeOrHigher(9),CAN_USE_CHILDREN_ATTRIBUTE:!goog.userAgent.GECKO&&!goog.userAgent.IE||goog.userAgent.IE&&goog.userAgent.isDocumentModeOrHigher(9)||goog.userAgent.GECKO&&goog.userAgent.isVersionOrHigher("1.9.1"),CAN_USE_INNER_TEXT:goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("9"),CAN_USE_PARENT_ELEMENT_PROPERTY:goog.userAgent.IE||goog.userAgent.OPERA||goog.userAgent.WEBKIT,INNER_HTML_NEEDS_SCOPED_ELEMENT:goog.userAgent.IE};goog.dom.ASSUME_QUIRKS_MODE=!1;goog.dom.ASSUME_STANDARDS_MODE=!1;goog.dom.COMPAT_MODE_KNOWN_=goog.dom.ASSUME_QUIRKS_MODE||goog.dom.ASSUME_STANDARDS_MODE;goog.dom.getDomHelper=function(a){return a?new goog.dom.DomHelper(goog.dom.getOwnerDocument(a)):goog.dom.defaultDomHelper_||(goog.dom.defaultDomHelper_=new goog.dom.DomHelper)};goog.dom.getDocument=function(){return document};goog.dom.getElement=function(a){return goog.dom.getElementHelper_(document,a)};
goog.dom.getElementHelper_=function(a,b){return goog.isString(b)?a.getElementById(b):b};goog.dom.getRequiredElement=function(a){return goog.dom.getRequiredElementHelper_(document,a)};goog.dom.getRequiredElementHelper_=function(a,b){goog.asserts.assertString(b);var c=goog.dom.getElementHelper_(a,b);return c=goog.asserts.assertElement(c,"No element found with id: "+b)};goog.dom.$=goog.dom.getElement;
goog.dom.getElementsByTagNameAndClass=function(a,b,c){return goog.dom.getElementsByTagNameAndClass_(document,a,b,c)};goog.dom.getElementsByClass=function(a,b){var c=b||document;return goog.dom.canUseQuerySelector_(c)?c.querySelectorAll("."+a):goog.dom.getElementsByTagNameAndClass_(document,"*",a,b)};goog.dom.getElementByClass=function(a,b){var c=b||document,d=null;return(d=goog.dom.canUseQuerySelector_(c)?c.querySelector("."+a):goog.dom.getElementsByTagNameAndClass_(document,"*",a,b)[0])||null};
goog.dom.getRequiredElementByClass=function(a,b){var c=goog.dom.getElementByClass(a,b);return goog.asserts.assert(c,"No element found with className: "+a)};goog.dom.canUseQuerySelector_=function(a){return!(!a.querySelectorAll||!a.querySelector)};
goog.dom.getElementsByTagNameAndClass_=function(a,b,c,d){a=d||a;b=b&&"*"!=b?b.toUpperCase():"";if(goog.dom.canUseQuerySelector_(a)&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,g;g=a[f];f++)b==g.nodeName&&(d[e++]=g);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;g=a[f];f++)b=g.className,"function"==typeof b.split&&goog.array.contains(b.split(/\s+/),c)&&(d[e++]=g);d.length=
e;return d}return a};goog.dom.$$=goog.dom.getElementsByTagNameAndClass;goog.dom.setProperties=function(a,b){goog.object.forEach(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in goog.dom.DIRECT_ATTRIBUTE_MAP_?a.setAttribute(goog.dom.DIRECT_ATTRIBUTE_MAP_[d],b):goog.string.startsWith(d,"aria-")||goog.string.startsWith(d,"data-")?a.setAttribute(d,b):a[d]=b})};
goog.dom.DIRECT_ATTRIBUTE_MAP_={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};goog.dom.getViewportSize=function(a){return goog.dom.getViewportSize_(a||window)};goog.dom.getViewportSize_=function(a){a=a.document;a=goog.dom.isCss1CompatMode_(a)?a.documentElement:a.body;return new goog.math.Size(a.clientWidth,a.clientHeight)};
goog.dom.getDocumentHeight=function(){return goog.dom.getDocumentHeight_(window)};goog.dom.getDocumentHeight_=function(a){var b=a.document,c=0;if(b){a=goog.dom.getViewportSize_(a).height;var c=b.body,d=b.documentElement;if(goog.dom.isCss1CompatMode_(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{var b=d.scrollHeight,e=d.offsetHeight;d.clientHeight!=e&&(b=c.scrollHeight,e=c.offsetHeight);c=b>a?b>e?b:e:b<e?b:e}}return c};
goog.dom.getPageScroll=function(a){return goog.dom.getDomHelper((a||goog.global||window).document).getDocumentScroll()};goog.dom.getDocumentScroll=function(){return goog.dom.getDocumentScroll_(document)};
goog.dom.getDocumentScroll_=function(a){var b=goog.dom.getDocumentScrollElement_(a);a=goog.dom.getWindow_(a);return goog.userAgent.IE&&goog.userAgent.isVersionOrHigher("10")&&a.pageYOffset!=b.scrollTop?new goog.math.Coordinate(b.scrollLeft,b.scrollTop):new goog.math.Coordinate(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};goog.dom.getDocumentScrollElement=function(){return goog.dom.getDocumentScrollElement_(document)};
goog.dom.getDocumentScrollElement_=function(a){return!goog.userAgent.WEBKIT&&goog.dom.isCss1CompatMode_(a)?a.documentElement:a.body||a.documentElement};goog.dom.getWindow=function(a){return a?goog.dom.getWindow_(a):window};goog.dom.getWindow_=function(a){return a.parentWindow||a.defaultView};goog.dom.createDom=function(a,b,c){return goog.dom.createDom_(document,arguments)};
goog.dom.createDom_=function(a,b){var c=b[0],d=b[1];if(!goog.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',goog.string.htmlEscape(d.name),'"');if(d.type){c.push(' type="',goog.string.htmlEscape(d.type),'"');var e={};goog.object.extend(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(goog.isString(d)?c.className=d:goog.isArray(d)?goog.dom.classes.add.apply(null,[c].concat(d)):goog.dom.setProperties(c,d));2<b.length&&
goog.dom.append_(a,c,b,2);return c};goog.dom.append_=function(a,b,c,d){function e(c){c&&b.appendChild(goog.isString(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var f=c[d];goog.isArrayLike(f)&&!goog.dom.isNodeLike(f)?goog.array.forEach(goog.dom.isNodeList(f)?goog.array.toArray(f):f,e):e(f)}};goog.dom.$dom=goog.dom.createDom;goog.dom.createElement=function(a){return document.createElement(a)};goog.dom.createTextNode=function(a){return document.createTextNode(String(a))};
goog.dom.createTable=function(a,b,c){return goog.dom.createTable_(document,a,b,!!c)};goog.dom.createTable_=function(a,b,c,d){for(var e=["<tr>"],f=0;f<c;f++)e.push(d?"<td>&nbsp;</td>":"<td></td>");e.push("</tr>");e=e.join("");c=["<table>"];for(f=0;f<b;f++)c.push(e);c.push("</table>");a=a.createElement(goog.dom.TagName.DIV);a.innerHTML=c.join("");return a.removeChild(a.firstChild)};goog.dom.htmlToDocumentFragment=function(a){return goog.dom.htmlToDocumentFragment_(document,a)};
goog.dom.htmlToDocumentFragment_=function(a,b){var c=a.createElement("div");goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT?(c.innerHTML="<br>"+b,c.removeChild(c.firstChild)):c.innerHTML=b;if(1==c.childNodes.length)return c.removeChild(c.firstChild);for(var d=a.createDocumentFragment();c.firstChild;)d.appendChild(c.firstChild);return d};goog.dom.isCss1CompatMode=function(){return goog.dom.isCss1CompatMode_(document)};
goog.dom.isCss1CompatMode_=function(a){return goog.dom.COMPAT_MODE_KNOWN_?goog.dom.ASSUME_STANDARDS_MODE:"CSS1Compat"==a.compatMode};goog.dom.canHaveChildren=function(a){if(a.nodeType!=goog.dom.NodeType.ELEMENT)return!1;switch(a.tagName){case goog.dom.TagName.APPLET:case goog.dom.TagName.AREA:case goog.dom.TagName.BASE:case goog.dom.TagName.BR:case goog.dom.TagName.COL:case goog.dom.TagName.COMMAND:case goog.dom.TagName.EMBED:case goog.dom.TagName.FRAME:case goog.dom.TagName.HR:case goog.dom.TagName.IMG:case goog.dom.TagName.INPUT:case goog.dom.TagName.IFRAME:case goog.dom.TagName.ISINDEX:case goog.dom.TagName.KEYGEN:case goog.dom.TagName.LINK:case goog.dom.TagName.NOFRAMES:case goog.dom.TagName.NOSCRIPT:case goog.dom.TagName.META:case goog.dom.TagName.OBJECT:case goog.dom.TagName.PARAM:case goog.dom.TagName.SCRIPT:case goog.dom.TagName.SOURCE:case goog.dom.TagName.STYLE:case goog.dom.TagName.TRACK:case goog.dom.TagName.WBR:return!1}return!0};
goog.dom.appendChild=function(a,b){a.appendChild(b)};goog.dom.append=function(a,b){goog.dom.append_(goog.dom.getOwnerDocument(a),a,arguments,1)};goog.dom.removeChildren=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};goog.dom.insertSiblingBefore=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};goog.dom.insertSiblingAfter=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};goog.dom.insertChildAt=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
goog.dom.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};goog.dom.replaceNode=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};goog.dom.flattenElement=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=goog.dom.NodeType.DOCUMENT_FRAGMENT){if(a.removeNode)return a.removeNode(!1);for(;b=a.firstChild;)c.insertBefore(b,a);return goog.dom.removeNode(a)}};
goog.dom.getChildren=function(a){return goog.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE&&void 0!=a.children?a.children:goog.array.filter(a.childNodes,function(a){return a.nodeType==goog.dom.NodeType.ELEMENT})};goog.dom.getFirstElementChild=function(a){return void 0!=a.firstElementChild?a.firstElementChild:goog.dom.getNextElementNode_(a.firstChild,!0)};goog.dom.getLastElementChild=function(a){return void 0!=a.lastElementChild?a.lastElementChild:goog.dom.getNextElementNode_(a.lastChild,!1)};
goog.dom.getNextElementSibling=function(a){return void 0!=a.nextElementSibling?a.nextElementSibling:goog.dom.getNextElementNode_(a.nextSibling,!0)};goog.dom.getPreviousElementSibling=function(a){return void 0!=a.previousElementSibling?a.previousElementSibling:goog.dom.getNextElementNode_(a.previousSibling,!1)};goog.dom.getNextElementNode_=function(a,b){for(;a&&a.nodeType!=goog.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};
goog.dom.getNextNode=function(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null};goog.dom.getPreviousNode=function(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a};goog.dom.isNodeLike=function(a){return goog.isObject(a)&&0<a.nodeType};goog.dom.isElement=function(a){return goog.isObject(a)&&a.nodeType==goog.dom.NodeType.ELEMENT};
goog.dom.isWindow=function(a){return goog.isObject(a)&&a.window==a};goog.dom.getParentElement=function(a){if(goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY&&(!goog.userAgent.IE||(!goog.userAgent.isVersionOrHigher("9")||goog.userAgent.isVersionOrHigher("10"))||!(goog.global.SVGElement&&a instanceof goog.global.SVGElement)))return a.parentElement;a=a.parentNode;return goog.dom.isElement(a)?a:null};
goog.dom.contains=function(a,b){if(a.contains&&b.nodeType==goog.dom.NodeType.ELEMENT)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
goog.dom.compareNodeOrder=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if(goog.userAgent.IE&&!goog.userAgent.isDocumentModeOrHigher(9)){if(a.nodeType==goog.dom.NodeType.DOCUMENT)return-1;if(b.nodeType==goog.dom.NodeType.DOCUMENT)return 1}if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==goog.dom.NodeType.ELEMENT,d=b.nodeType==goog.dom.NodeType.ELEMENT;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,
f=b.parentNode;return e==f?goog.dom.compareSiblingOrder_(a,b):!c&&goog.dom.contains(e,b)?-1*goog.dom.compareParentsDescendantNodeIe_(a,b):!d&&goog.dom.contains(f,a)?goog.dom.compareParentsDescendantNodeIe_(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=goog.dom.getOwnerDocument(a);c=d.createRange();c.selectNode(a);c.collapse(!0);d=d.createRange();d.selectNode(b);d.collapse(!0);return c.compareBoundaryPoints(goog.global.Range.START_TO_END,d)};
goog.dom.compareParentsDescendantNodeIe_=function(a,b){var c=a.parentNode;if(c==b)return-1;for(var d=b;d.parentNode!=c;)d=d.parentNode;return goog.dom.compareSiblingOrder_(d,a)};goog.dom.compareSiblingOrder_=function(a,b){for(var c=b;c=c.previousSibling;)if(c==a)return-1;return 1};
goog.dom.findCommonAncestor=function(a){var b,c=arguments.length;if(c){if(1==c)return arguments[0]}else return null;var d=[],e=Infinity;for(b=0;b<c;b++){for(var f=[],g=arguments[b];g;)f.unshift(g),g=g.parentNode;d.push(f);e=Math.min(e,f.length)}f=null;for(b=0;b<e;b++){for(var g=d[0][b],h=1;h<c;h++)if(g!=d[h][b])return f;f=g}return f};goog.dom.getOwnerDocument=function(a){return a.nodeType==goog.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};
goog.dom.getFrameContentDocument=function(a){return a.contentDocument||a.contentWindow.document};goog.dom.getFrameContentWindow=function(a){return a.contentWindow||goog.dom.getWindow(goog.dom.getFrameContentDocument(a))};
goog.dom.setTextContent=function(a,b){goog.asserts.assert(null!=a,"goog.dom.setTextContent expects a non-null value for node");if("textContent"in a)a.textContent=b;else if(a.nodeType==goog.dom.NodeType.TEXT)a.data=b;else if(a.firstChild&&a.firstChild.nodeType==goog.dom.NodeType.TEXT){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{goog.dom.removeChildren(a);var c=goog.dom.getOwnerDocument(a);a.appendChild(c.createTextNode(String(b)))}};
goog.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;var b=goog.dom.getOwnerDocument(a).createElement("div");b.appendChild(a.cloneNode(!0));return b.innerHTML};goog.dom.findNode=function(a,b){var c=[];return goog.dom.findNodes_(a,b,c,!0)?c[0]:void 0};goog.dom.findNodes=function(a,b){var c=[];goog.dom.findNodes_(a,b,c,!1);return c};goog.dom.findNodes_=function(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||goog.dom.findNodes_(a,b,c,d))return!0;a=a.nextSibling}return!1};
goog.dom.TAGS_TO_IGNORE_={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};goog.dom.PREDEFINED_TAG_VALUES_={IMG:" ",BR:"\n"};goog.dom.isFocusableTabIndex=function(a){return goog.dom.hasSpecifiedTabIndex_(a)&&goog.dom.isTabIndexFocusable_(a)};goog.dom.setFocusableTabIndex=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))};
goog.dom.isFocusable=function(a){var b;return(b=goog.dom.nativelySupportsFocus_(a)?!a.disabled&&(!goog.dom.hasSpecifiedTabIndex_(a)||goog.dom.isTabIndexFocusable_(a)):goog.dom.isFocusableTabIndex(a))&&goog.userAgent.IE?goog.dom.hasNonZeroBoundingRect_(a):b};goog.dom.hasSpecifiedTabIndex_=function(a){a=a.getAttributeNode("tabindex");return goog.isDefAndNotNull(a)&&a.specified};goog.dom.isTabIndexFocusable_=function(a){a=a.tabIndex;return goog.isNumber(a)&&0<=a&&32768>a};
goog.dom.nativelySupportsFocus_=function(a){return a.tagName==goog.dom.TagName.A||a.tagName==goog.dom.TagName.INPUT||a.tagName==goog.dom.TagName.TEXTAREA||a.tagName==goog.dom.TagName.SELECT||a.tagName==goog.dom.TagName.BUTTON};goog.dom.hasNonZeroBoundingRect_=function(a){a=goog.isFunction(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth};return goog.isDefAndNotNull(a)&&0<a.height&&0<a.width};
goog.dom.getTextContent=function(a){if(goog.dom.BrowserFeature.CAN_USE_INNER_TEXT&&"innerText"in a)a=goog.string.canonicalizeNewlines(a.innerText);else{var b=[];goog.dom.getTextContent_(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");goog.dom.BrowserFeature.CAN_USE_INNER_TEXT||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a};goog.dom.getRawTextContent=function(a){var b=[];goog.dom.getTextContent_(a,b,!1);return b.join("")};
goog.dom.getTextContent_=function(a,b,c){if(!(a.nodeName in goog.dom.TAGS_TO_IGNORE_))if(a.nodeType==goog.dom.NodeType.TEXT)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in goog.dom.PREDEFINED_TAG_VALUES_)b.push(goog.dom.PREDEFINED_TAG_VALUES_[a.nodeName]);else for(a=a.firstChild;a;)goog.dom.getTextContent_(a,b,c),a=a.nextSibling};goog.dom.getNodeTextLength=function(a){return goog.dom.getTextContent(a).length};
goog.dom.getNodeTextOffset=function(a,b){for(var c=b||goog.dom.getOwnerDocument(a).body,d=[];a&&a!=c;){for(var e=a;e=e.previousSibling;)d.unshift(goog.dom.getTextContent(e));a=a.parentNode}return goog.string.trimLeft(d.join("")).replace(/ +/g," ").length};
goog.dom.getNodeAtOffset=function(a,b,c){a=[a];for(var d=0,e=null;0<a.length&&d<b;)if(e=a.pop(),!(e.nodeName in goog.dom.TAGS_TO_IGNORE_))if(e.nodeType==goog.dom.NodeType.TEXT)var f=e.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," "),d=d+f.length;else if(e.nodeName in goog.dom.PREDEFINED_TAG_VALUES_)d+=goog.dom.PREDEFINED_TAG_VALUES_[e.nodeName].length;else for(f=e.childNodes.length-1;0<=f;f--)a.push(e.childNodes[f]);goog.isObject(c)&&(c.remainder=e?e.nodeValue.length+b-d-1:0,c.node=e);return e};
goog.dom.isNodeList=function(a){if(a&&"number"==typeof a.length){if(goog.isObject(a))return"function"==typeof a.item||"string"==typeof a.item;if(goog.isFunction(a))return"function"==typeof a.item}return!1};goog.dom.getAncestorByTagNameAndClass=function(a,b,c){if(!b&&!c)return null;var d=b?b.toUpperCase():null;return goog.dom.getAncestor(a,function(a){return(!d||a.nodeName==d)&&(!c||goog.dom.classes.has(a,c))},!0)};
goog.dom.getAncestorByClass=function(a,b){return goog.dom.getAncestorByTagNameAndClass(a,null,b)};goog.dom.getAncestor=function(a,b,c,d){c||(a=a.parentNode);c=null==d;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return null};goog.dom.getActiveElement=function(a){try{return a&&a.activeElement}catch(b){}return null};
goog.dom.getPixelRatio=goog.functions.cacheReturnValue(function(){var a=goog.dom.getWindow(),b=goog.userAgent.GECKO&&goog.userAgent.MOBILE;return goog.isDef(a.devicePixelRatio)&&!b?a.devicePixelRatio:a.matchMedia?goog.dom.matchesPixelRatio_(0.75)||goog.dom.matchesPixelRatio_(1.5)||goog.dom.matchesPixelRatio_(2)||goog.dom.matchesPixelRatio_(3)||1:1});
goog.dom.matchesPixelRatio_=function(a){return goog.dom.getWindow().matchMedia("(-webkit-min-device-pixel-ratio: "+a+"),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+a+"dppx)").matches?a:0};goog.dom.DomHelper=function(a){this.document_=a||goog.global.document||document};goog.dom.DomHelper.prototype.getDomHelper=goog.dom.getDomHelper;goog.dom.DomHelper.prototype.setDocument=function(a){this.document_=a};goog.dom.DomHelper.prototype.getDocument=function(){return this.document_};
goog.dom.DomHelper.prototype.getElement=function(a){return goog.dom.getElementHelper_(this.document_,a)};goog.dom.DomHelper.prototype.getRequiredElement=function(a){return goog.dom.getRequiredElementHelper_(this.document_,a)};goog.dom.DomHelper.prototype.$=goog.dom.DomHelper.prototype.getElement;goog.dom.DomHelper.prototype.getElementsByTagNameAndClass=function(a,b,c){return goog.dom.getElementsByTagNameAndClass_(this.document_,a,b,c)};
goog.dom.DomHelper.prototype.getElementsByClass=function(a,b){return goog.dom.getElementsByClass(a,b||this.document_)};goog.dom.DomHelper.prototype.getElementByClass=function(a,b){return goog.dom.getElementByClass(a,b||this.document_)};goog.dom.DomHelper.prototype.getRequiredElementByClass=function(a,b){return goog.dom.getRequiredElementByClass(a,b||this.document_)};goog.dom.DomHelper.prototype.$$=goog.dom.DomHelper.prototype.getElementsByTagNameAndClass;
goog.dom.DomHelper.prototype.setProperties=goog.dom.setProperties;goog.dom.DomHelper.prototype.getViewportSize=function(a){return goog.dom.getViewportSize(a||this.getWindow())};goog.dom.DomHelper.prototype.getDocumentHeight=function(){return goog.dom.getDocumentHeight_(this.getWindow())};goog.dom.DomHelper.prototype.createDom=function(a,b,c){return goog.dom.createDom_(this.document_,arguments)};goog.dom.DomHelper.prototype.$dom=goog.dom.DomHelper.prototype.createDom;
goog.dom.DomHelper.prototype.createElement=function(a){return this.document_.createElement(a)};goog.dom.DomHelper.prototype.createTextNode=function(a){return this.document_.createTextNode(String(a))};goog.dom.DomHelper.prototype.createTable=function(a,b,c){return goog.dom.createTable_(this.document_,a,b,!!c)};goog.dom.DomHelper.prototype.htmlToDocumentFragment=function(a){return goog.dom.htmlToDocumentFragment_(this.document_,a)};goog.dom.DomHelper.prototype.isCss1CompatMode=function(){return goog.dom.isCss1CompatMode_(this.document_)};
goog.dom.DomHelper.prototype.getWindow=function(){return goog.dom.getWindow_(this.document_)};goog.dom.DomHelper.prototype.getDocumentScrollElement=function(){return goog.dom.getDocumentScrollElement_(this.document_)};goog.dom.DomHelper.prototype.getDocumentScroll=function(){return goog.dom.getDocumentScroll_(this.document_)};goog.dom.DomHelper.prototype.getActiveElement=function(a){return goog.dom.getActiveElement(a||this.document_)};goog.dom.DomHelper.prototype.appendChild=goog.dom.appendChild;
goog.dom.DomHelper.prototype.append=goog.dom.append;goog.dom.DomHelper.prototype.canHaveChildren=goog.dom.canHaveChildren;goog.dom.DomHelper.prototype.removeChildren=goog.dom.removeChildren;goog.dom.DomHelper.prototype.insertSiblingBefore=goog.dom.insertSiblingBefore;goog.dom.DomHelper.prototype.insertSiblingAfter=goog.dom.insertSiblingAfter;goog.dom.DomHelper.prototype.insertChildAt=goog.dom.insertChildAt;goog.dom.DomHelper.prototype.removeNode=goog.dom.removeNode;
goog.dom.DomHelper.prototype.replaceNode=goog.dom.replaceNode;goog.dom.DomHelper.prototype.flattenElement=goog.dom.flattenElement;goog.dom.DomHelper.prototype.getChildren=goog.dom.getChildren;goog.dom.DomHelper.prototype.getFirstElementChild=goog.dom.getFirstElementChild;goog.dom.DomHelper.prototype.getLastElementChild=goog.dom.getLastElementChild;goog.dom.DomHelper.prototype.getNextElementSibling=goog.dom.getNextElementSibling;goog.dom.DomHelper.prototype.getPreviousElementSibling=goog.dom.getPreviousElementSibling;
goog.dom.DomHelper.prototype.getNextNode=goog.dom.getNextNode;goog.dom.DomHelper.prototype.getPreviousNode=goog.dom.getPreviousNode;goog.dom.DomHelper.prototype.isNodeLike=goog.dom.isNodeLike;goog.dom.DomHelper.prototype.isElement=goog.dom.isElement;goog.dom.DomHelper.prototype.isWindow=goog.dom.isWindow;goog.dom.DomHelper.prototype.getParentElement=goog.dom.getParentElement;goog.dom.DomHelper.prototype.contains=goog.dom.contains;goog.dom.DomHelper.prototype.compareNodeOrder=goog.dom.compareNodeOrder;
goog.dom.DomHelper.prototype.findCommonAncestor=goog.dom.findCommonAncestor;goog.dom.DomHelper.prototype.getOwnerDocument=goog.dom.getOwnerDocument;goog.dom.DomHelper.prototype.getFrameContentDocument=goog.dom.getFrameContentDocument;goog.dom.DomHelper.prototype.getFrameContentWindow=goog.dom.getFrameContentWindow;goog.dom.DomHelper.prototype.setTextContent=goog.dom.setTextContent;goog.dom.DomHelper.prototype.getOuterHtml=goog.dom.getOuterHtml;goog.dom.DomHelper.prototype.findNode=goog.dom.findNode;
goog.dom.DomHelper.prototype.findNodes=goog.dom.findNodes;goog.dom.DomHelper.prototype.isFocusableTabIndex=goog.dom.isFocusableTabIndex;goog.dom.DomHelper.prototype.setFocusableTabIndex=goog.dom.setFocusableTabIndex;goog.dom.DomHelper.prototype.isFocusable=goog.dom.isFocusable;goog.dom.DomHelper.prototype.getTextContent=goog.dom.getTextContent;goog.dom.DomHelper.prototype.getNodeTextLength=goog.dom.getNodeTextLength;goog.dom.DomHelper.prototype.getNodeTextOffset=goog.dom.getNodeTextOffset;
goog.dom.DomHelper.prototype.getNodeAtOffset=goog.dom.getNodeAtOffset;goog.dom.DomHelper.prototype.isNodeList=goog.dom.isNodeList;goog.dom.DomHelper.prototype.getAncestorByTagNameAndClass=goog.dom.getAncestorByTagNameAndClass;goog.dom.DomHelper.prototype.getAncestorByClass=goog.dom.getAncestorByClass;goog.dom.DomHelper.prototype.getAncestor=goog.dom.getAncestor;goog.style={};goog.style.GET_BOUNDING_CLIENT_RECT_ALWAYS_EXISTS=!1;goog.style.setStyle=function(a,b,c){goog.isString(b)?goog.style.setStyle_(a,c,b):goog.object.forEach(b,goog.partial(goog.style.setStyle_,a))};goog.style.setStyle_=function(a,b,c){(c=goog.style.getVendorJsStyleName_(a,c))&&(a.style[c]=b)};goog.style.getVendorJsStyleName_=function(a,b){var c=goog.string.toCamelCase(b);if(void 0===a.style[c]){var d=goog.dom.vendor.getVendorJsPrefix()+goog.string.toTitleCase(b);if(void 0!==a.style[d])return d}return c};
goog.style.getVendorStyleName_=function(a,b){var c=goog.string.toCamelCase(b);return void 0===a.style[c]&&(c=goog.dom.vendor.getVendorJsPrefix()+goog.string.toTitleCase(b),void 0!==a.style[c])?goog.dom.vendor.getVendorPrefix()+"-"+b:b};goog.style.getStyle=function(a,b){var c=a.style[goog.string.toCamelCase(b)];return"undefined"!==typeof c?c:a.style[goog.style.getVendorJsStyleName_(a,b)]||""};
goog.style.getComputedStyle=function(a,b){var c=goog.dom.getOwnerDocument(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};goog.style.getCascadedStyle=function(a,b){return a.currentStyle?a.currentStyle[b]:null};goog.style.getStyle_=function(a,b){return goog.style.getComputedStyle(a,b)||goog.style.getCascadedStyle(a,b)||a.style&&a.style[b]};
goog.style.getComputedBoxSizing=function(a){return goog.style.getStyle_(a,"boxSizing")||goog.style.getStyle_(a,"MozBoxSizing")||goog.style.getStyle_(a,"WebkitBoxSizing")||null};goog.style.getComputedPosition=function(a){return goog.style.getStyle_(a,"position")};goog.style.getBackgroundColor=function(a){return goog.style.getStyle_(a,"backgroundColor")};goog.style.getComputedOverflowX=function(a){return goog.style.getStyle_(a,"overflowX")};
goog.style.getComputedOverflowY=function(a){return goog.style.getStyle_(a,"overflowY")};goog.style.getComputedZIndex=function(a){return goog.style.getStyle_(a,"zIndex")};goog.style.getComputedTextAlign=function(a){return goog.style.getStyle_(a,"textAlign")};goog.style.getComputedCursor=function(a){return goog.style.getStyle_(a,"cursor")};goog.style.getComputedTransform=function(a){var b=goog.style.getVendorStyleName_(a,"transform");return goog.style.getStyle_(a,b)||goog.style.getStyle_(a,"transform")};
goog.style.setPosition=function(a,b,c){var d,e=goog.userAgent.GECKO&&(goog.userAgent.MAC||goog.userAgent.X11)&&goog.userAgent.isVersionOrHigher("1.9");b instanceof goog.math.Coordinate?(d=b.x,b=b.y):(d=b,b=c);a.style.left=goog.style.getPixelStyleValue_(d,e);a.style.top=goog.style.getPixelStyleValue_(b,e)};goog.style.getPosition=function(a){return new goog.math.Coordinate(a.offsetLeft,a.offsetTop)};
goog.style.getClientViewportElement=function(a){a=a?goog.dom.getOwnerDocument(a):goog.dom.getDocument();return goog.userAgent.IE&&!goog.userAgent.isDocumentModeOrHigher(9)&&!goog.dom.getDomHelper(a).isCss1CompatMode()?a.body:a.documentElement};goog.style.getViewportPageOffset=function(a){var b=a.body;a=a.documentElement;return new goog.math.Coordinate(b.scrollLeft||a.scrollLeft,b.scrollTop||a.scrollTop)};
goog.style.getBoundingClientRect_=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}goog.userAgent.IE&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
goog.style.getOffsetParent=function(a){if(goog.userAgent.IE&&!goog.userAgent.isDocumentModeOrHigher(8))return a.offsetParent;var b=goog.dom.getOwnerDocument(a),c=goog.style.getStyle_(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=goog.style.getStyle_(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
goog.style.getVisibleRectForElement=function(a){for(var b=new goog.math.Box(0,Infinity,Infinity,0),c=goog.dom.getDomHelper(a),d=c.getDocument().body,e=c.getDocument().documentElement,f=c.getDocumentScrollElement();a=goog.style.getOffsetParent(a);)if((!goog.userAgent.IE||0!=a.clientWidth)&&(!goog.userAgent.WEBKIT||0!=a.clientHeight||a!=d)&&a!=d&&a!=e&&"visible"!=goog.style.getStyle_(a,"overflow")){var g=goog.style.getPageOffset(a),h=goog.style.getClientLeftTop(a);g.x+=h.x;g.y+=h.y;b.top=Math.max(b.top,
g.y);b.right=Math.min(b.right,g.x+a.clientWidth);b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null};
goog.style.getContainerOffsetToScrollInto=function(a,b,c){var d=goog.style.getPageOffset(a),e=goog.style.getPageOffset(b),f=goog.style.getBorderBox(b),g=d.x-e.x-f.left,d=d.y-e.y-f.top,e=b.clientWidth-a.offsetWidth;a=b.clientHeight-a.offsetHeight;f=b.scrollLeft;b=b.scrollTop;c?(f+=g-e/2,b+=d-a/2):(f+=Math.min(g,Math.max(g-e,0)),b+=Math.min(d,Math.max(d-a,0)));return new goog.math.Coordinate(f,b)};
goog.style.scrollIntoContainerView=function(a,b,c){a=goog.style.getContainerOffsetToScrollInto(a,b,c);b.scrollLeft=a.x;b.scrollTop=a.y};
goog.style.getClientLeftTop=function(a){if(goog.userAgent.GECKO&&!goog.userAgent.isVersionOrHigher("1.9")){var b=parseFloat(goog.style.getComputedStyle(a,"borderLeftWidth"));if(goog.style.isRightToLeft(a))var c=a.offsetWidth-a.clientWidth-b-parseFloat(goog.style.getComputedStyle(a,"borderRightWidth")),b=b+c;return new goog.math.Coordinate(b,parseFloat(goog.style.getComputedStyle(a,"borderTopWidth")))}return new goog.math.Coordinate(a.clientLeft,a.clientTop)};
goog.style.getPageOffset=function(a){var b,c=goog.dom.getOwnerDocument(a),d=goog.style.getStyle_(a,"position");goog.asserts.assertObject(a,"Parameter is required");var e=!goog.style.GET_BOUNDING_CLIENT_RECT_ALWAYS_EXISTS&&goog.userAgent.GECKO&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new goog.math.Coordinate(0,0),g=goog.style.getClientViewportElement(c);if(a==g)return f;if(goog.style.GET_BOUNDING_CLIENT_RECT_ALWAYS_EXISTS||
a.getBoundingClientRect)b=goog.style.getBoundingClientRect_(a),a=goog.dom.getDomHelper(c).getDocumentScroll(),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(g),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(goog.userAgent.WEBKIT&&"fixed"==goog.style.getComputedPosition(b)){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&
b!=a);if(goog.userAgent.OPERA||goog.userAgent.WEBKIT&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=goog.style.getOffsetParent(b))&&b!=c.body&&b!=g;)if(f.x-=b.scrollLeft,!goog.userAgent.OPERA||"TR"!=b.tagName)f.y-=b.scrollTop}return f};goog.style.getPageOffsetLeft=function(a){return goog.style.getPageOffset(a).x};goog.style.getPageOffsetTop=function(a){return goog.style.getPageOffset(a).y};
goog.style.getFramedPageOffset=function(a,b){var c=new goog.math.Coordinate(0,0),d=goog.dom.getWindow(goog.dom.getOwnerDocument(a)),e=a;do{var f=d==b?goog.style.getPageOffset(e):goog.style.getClientPositionForElement_(goog.asserts.assert(e));c.x+=f.x;c.y+=f.y}while(d&&d!=b&&(e=d.frameElement)&&(d=d.parent));return c};
goog.style.translateRectForAnotherFrame=function(a,b,c){if(b.getDocument()!=c.getDocument()){var d=b.getDocument().body;c=goog.style.getFramedPageOffset(d,c.getWindow());c=goog.math.Coordinate.difference(c,goog.style.getPageOffset(d));goog.userAgent.IE&&!b.isCss1CompatMode()&&(c=goog.math.Coordinate.difference(c,b.getDocumentScroll()));a.left+=c.x;a.top+=c.y}};
goog.style.getRelativePosition=function(a,b){var c=goog.style.getClientPosition(a),d=goog.style.getClientPosition(b);return new goog.math.Coordinate(c.x-d.x,c.y-d.y)};
goog.style.getClientPositionForElement_=function(a){var b;if(goog.style.GET_BOUNDING_CLIENT_RECT_ALWAYS_EXISTS||a.getBoundingClientRect)b=goog.style.getBoundingClientRect_(a),b=new goog.math.Coordinate(b.left,b.top);else{b=goog.dom.getDomHelper(a).getDocumentScroll();var c=goog.style.getPageOffset(a);b=new goog.math.Coordinate(c.x-b.x,c.y-b.y)}return goog.userAgent.GECKO&&!goog.userAgent.isVersionOrHigher(12)?goog.math.Coordinate.sum(b,goog.style.getCssTranslation(a)):b};
goog.style.getClientPosition=function(a){goog.asserts.assert(a);if(a.nodeType==goog.dom.NodeType.ELEMENT)return goog.style.getClientPositionForElement_(a);var b=goog.isFunction(a.getBrowserEvent),c=a;a.targetTouches?c=a.targetTouches[0]:b&&a.getBrowserEvent().targetTouches&&(c=a.getBrowserEvent().targetTouches[0]);return new goog.math.Coordinate(c.clientX,c.clientY)};
goog.style.setPageOffset=function(a,b,c){var d=goog.style.getPageOffset(a);b instanceof goog.math.Coordinate&&(c=b.y,b=b.x);goog.style.setPosition(a,a.offsetLeft+(b-d.x),a.offsetTop+(c-d.y))};goog.style.setSize=function(a,b,c){if(b instanceof goog.math.Size)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");goog.style.setWidth(a,b);goog.style.setHeight(a,c)};goog.style.getPixelStyleValue_=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
goog.style.setHeight=function(a,b){a.style.height=goog.style.getPixelStyleValue_(b,!0)};goog.style.setWidth=function(a,b){a.style.width=goog.style.getPixelStyleValue_(b,!0)};goog.style.getSize=function(a){return goog.style.evaluateWithTemporaryDisplay_(goog.style.getSizeWithDisplay_,a)};
goog.style.evaluateWithTemporaryDisplay_=function(a,b){if("none"!=goog.style.getStyle_(b,"display"))return a(b);var c=b.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";var g=a(b);c.display=d;c.position=f;c.visibility=e;return g};
goog.style.getSizeWithDisplay_=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=goog.userAgent.WEBKIT&&!b&&!c;return(!goog.isDef(b)||d)&&a.getBoundingClientRect?(a=goog.style.getBoundingClientRect_(a),new goog.math.Size(a.right-a.left,a.bottom-a.top)):new goog.math.Size(b,c)};goog.style.getTransformedSize=function(a){if(!a.getBoundingClientRect)return null;a=goog.style.evaluateWithTemporaryDisplay_(goog.style.getBoundingClientRect_,a);return new goog.math.Size(a.right-a.left,a.bottom-a.top)};
goog.style.getBounds=function(a){var b=goog.style.getPageOffset(a);a=goog.style.getSize(a);return new goog.math.Rect(b.x,b.y,a.width,a.height)};goog.style.toCamelCase=function(a){return goog.string.toCamelCase(String(a))};goog.style.toSelectorCase=function(a){return goog.string.toSelectorCase(a)};
goog.style.getOpacity=function(a){var b=a.style;a="";"opacity"in b?a=b.opacity:"MozOpacity"in b?a=b.MozOpacity:"filter"in b&&(b=b.filter.match(/alpha\(opacity=([\d.]+)\)/))&&(a=String(b[1]/100));return""==a?a:Number(a)};goog.style.setOpacity=function(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*b+")")};
goog.style.setTransparentBackgroundImage=function(a,b){var c=a.style;goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("8")?c.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="crop")':(c.backgroundImage="url("+b+")",c.backgroundPosition="top left",c.backgroundRepeat="no-repeat")};goog.style.clearTransparentBackgroundImage=function(a){a=a.style;"filter"in a?a.filter="":a.backgroundImage="none"};
goog.style.showElement=function(a,b){goog.style.setElementShown(a,b)};goog.style.setElementShown=function(a,b){a.style.display=b?"":"none"};goog.style.isElementShown=function(a){return"none"!=a.style.display};
goog.style.installStyles=function(a,b){var c=goog.dom.getDomHelper(b),d=null,e=c.getDocument();goog.userAgent.IE&&e.createStyleSheet?(d=e.createStyleSheet(),goog.style.setStyles(d,a)):(e=c.getElementsByTagNameAndClass("head")[0],e||(d=c.getElementsByTagNameAndClass("body")[0],e=c.createDom("head"),d.parentNode.insertBefore(e,d)),d=c.createDom("style"),goog.style.setStyles(d,a),c.appendChild(e,d));return d};goog.style.uninstallStyles=function(a){goog.dom.removeNode(a.ownerNode||a.owningElement||a)};
goog.style.setStyles=function(a,b){goog.userAgent.IE&&goog.isDef(a.cssText)?a.cssText=b:a.innerHTML=b};goog.style.setPreWrap=function(a){a=a.style;goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("8")?(a.whiteSpace="pre",a.wordWrap="break-word"):a.whiteSpace=goog.userAgent.GECKO?"-moz-pre-wrap":"pre-wrap"};
goog.style.setInlineBlock=function(a){a=a.style;a.position="relative";goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("8")?(a.zoom="1",a.display="inline"):a.display=goog.userAgent.GECKO?goog.userAgent.isVersionOrHigher("1.9a")?"inline-block":"-moz-inline-box":"inline-block"};goog.style.isRightToLeft=function(a){return"rtl"==goog.style.getStyle_(a,"direction")};goog.style.unselectableStyle_=goog.userAgent.GECKO?"MozUserSelect":goog.userAgent.WEBKIT?"WebkitUserSelect":null;
goog.style.isUnselectable=function(a){return goog.style.unselectableStyle_?"none"==a.style[goog.style.unselectableStyle_].toLowerCase():goog.userAgent.IE||goog.userAgent.OPERA?"on"==a.getAttribute("unselectable"):!1};
goog.style.setUnselectable=function(a,b,c){c=!c?a.getElementsByTagName("*"):null;var d=goog.style.unselectableStyle_;if(d){if(b=b?"none":"",a.style[d]=b,c){a=0;for(var e;e=c[a];a++)e.style[d]=b}}else if(goog.userAgent.IE||goog.userAgent.OPERA)if(b=b?"on":"",a.setAttribute("unselectable",b),c)for(a=0;e=c[a];a++)e.setAttribute("unselectable",b)};goog.style.getBorderBoxSize=function(a){return new goog.math.Size(a.offsetWidth,a.offsetHeight)};
goog.style.setBorderBoxSize=function(a,b){var c=goog.dom.getOwnerDocument(a),d=goog.dom.getDomHelper(c).isCss1CompatMode();if(goog.userAgent.IE&&(!d||!goog.userAgent.isVersionOrHigher("8")))if(c=a.style,d){var d=goog.style.getPaddingBox(a),e=goog.style.getBorderBox(a);c.pixelWidth=b.width-e.left-d.left-d.right-e.right;c.pixelHeight=b.height-e.top-d.top-d.bottom-e.bottom}else c.pixelWidth=b.width,c.pixelHeight=b.height;else goog.style.setBoxSizingSize_(a,b,"border-box")};
goog.style.getContentBoxSize=function(a){var b=goog.dom.getOwnerDocument(a),c=goog.userAgent.IE&&a.currentStyle;if(c&&goog.dom.getDomHelper(b).isCss1CompatMode()&&"auto"!=c.width&&"auto"!=c.height&&!c.boxSizing)return b=goog.style.getIePixelValue_(a,c.width,"width","pixelWidth"),a=goog.style.getIePixelValue_(a,c.height,"height","pixelHeight"),new goog.math.Size(b,a);c=goog.style.getBorderBoxSize(a);b=goog.style.getPaddingBox(a);a=goog.style.getBorderBox(a);return new goog.math.Size(c.width-a.left-
b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)};
goog.style.setContentBoxSize=function(a,b){var c=goog.dom.getOwnerDocument(a),d=goog.dom.getDomHelper(c).isCss1CompatMode();if(goog.userAgent.IE&&(!d||!goog.userAgent.isVersionOrHigher("8")))if(c=a.style,d)c.pixelWidth=b.width,c.pixelHeight=b.height;else{var d=goog.style.getPaddingBox(a),e=goog.style.getBorderBox(a);c.pixelWidth=b.width+e.left+d.left+d.right+e.right;c.pixelHeight=b.height+e.top+d.top+d.bottom+e.bottom}else goog.style.setBoxSizingSize_(a,b,"content-box")};
goog.style.setBoxSizingSize_=function(a,b,c){a=a.style;goog.userAgent.GECKO?a.MozBoxSizing=c:goog.userAgent.WEBKIT?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"};goog.style.getIePixelValue_=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b};
goog.style.getIePixelDistance_=function(a,b){var c=goog.style.getCascadedStyle(a,b);return c?goog.style.getIePixelValue_(a,c,"left","pixelLeft"):0};
goog.style.getBox_=function(a,b){if(goog.userAgent.IE){var c=goog.style.getIePixelDistance_(a,b+"Left"),d=goog.style.getIePixelDistance_(a,b+"Right"),e=goog.style.getIePixelDistance_(a,b+"Top"),f=goog.style.getIePixelDistance_(a,b+"Bottom");return new goog.math.Box(e,d,f,c)}c=goog.style.getComputedStyle(a,b+"Left");d=goog.style.getComputedStyle(a,b+"Right");e=goog.style.getComputedStyle(a,b+"Top");f=goog.style.getComputedStyle(a,b+"Bottom");return new goog.math.Box(parseFloat(e),parseFloat(d),parseFloat(f),
parseFloat(c))};goog.style.getPaddingBox=function(a){return goog.style.getBox_(a,"padding")};goog.style.getMarginBox=function(a){return goog.style.getBox_(a,"margin")};goog.style.ieBorderWidthKeywords_={thin:2,medium:4,thick:6};
goog.style.getIePixelBorder_=function(a,b){if("none"==goog.style.getCascadedStyle(a,b+"Style"))return 0;var c=goog.style.getCascadedStyle(a,b+"Width");return c in goog.style.ieBorderWidthKeywords_?goog.style.ieBorderWidthKeywords_[c]:goog.style.getIePixelValue_(a,c,"left","pixelLeft")};
goog.style.getBorderBox=function(a){if(goog.userAgent.IE&&!goog.userAgent.isDocumentModeOrHigher(9)){var b=goog.style.getIePixelBorder_(a,"borderLeft"),c=goog.style.getIePixelBorder_(a,"borderRight"),d=goog.style.getIePixelBorder_(a,"borderTop");a=goog.style.getIePixelBorder_(a,"borderBottom");return new goog.math.Box(d,c,a,b)}b=goog.style.getComputedStyle(a,"borderLeftWidth");c=goog.style.getComputedStyle(a,"borderRightWidth");d=goog.style.getComputedStyle(a,"borderTopWidth");a=goog.style.getComputedStyle(a,
"borderBottomWidth");return new goog.math.Box(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};goog.style.getFontFamily=function(a){var b=goog.dom.getOwnerDocument(a),c="";if(b.body.createTextRange){b=b.body.createTextRange();b.moveToElementText(a);try{c=b.queryCommandValue("FontName")}catch(d){c=""}}c||(c=goog.style.getStyle_(a,"fontFamily"));a=c.split(",");1<a.length&&(c=a[0]);return goog.string.stripQuotes(c,"\"'")};goog.style.lengthUnitRegex_=/[^\d]+$/;
goog.style.getLengthUnits=function(a){return(a=a.match(goog.style.lengthUnitRegex_))&&a[0]||null};goog.style.ABSOLUTE_CSS_LENGTH_UNITS_={cm:1,"in":1,mm:1,pc:1,pt:1};goog.style.CONVERTIBLE_RELATIVE_CSS_UNITS_={em:1,ex:1};
goog.style.getFontSize=function(a){var b=goog.style.getStyle_(a,"fontSize"),c=goog.style.getLengthUnits(b);if(b&&"px"==c)return parseInt(b,10);if(goog.userAgent.IE){if(c in goog.style.ABSOLUTE_CSS_LENGTH_UNITS_)return goog.style.getIePixelValue_(a,b,"left","pixelLeft");if(a.parentNode&&a.parentNode.nodeType==goog.dom.NodeType.ELEMENT&&c in goog.style.CONVERTIBLE_RELATIVE_CSS_UNITS_)return a=a.parentNode,c=goog.style.getStyle_(a,"fontSize"),goog.style.getIePixelValue_(a,b==c?"1em":b,"left","pixelLeft")}c=
goog.dom.createDom("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});goog.dom.appendChild(a,c);b=c.offsetHeight;goog.dom.removeNode(c);return b};goog.style.parseStyleAttribute=function(a){var b={};goog.array.forEach(a.split(/\s*;\s*/),function(a){a=a.split(/\s*:\s*/);2==a.length&&(b[goog.string.toCamelCase(a[0].toLowerCase())]=a[1])});return b};
goog.style.toStyleAttribute=function(a){var b=[];goog.object.forEach(a,function(a,d){b.push(goog.string.toSelectorCase(d),":",a,";")});return b.join("")};goog.style.setFloat=function(a,b){a.style[goog.userAgent.IE?"styleFloat":"cssFloat"]=b};goog.style.getFloat=function(a){return a.style[goog.userAgent.IE?"styleFloat":"cssFloat"]||""};
goog.style.getScrollbarWidth=function(a){var b=goog.dom.createElement("div");a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=goog.dom.createElement("div");goog.style.setSize(a,"200px","200px");b.appendChild(a);goog.dom.appendChild(goog.dom.getDocument().body,b);a=b.offsetWidth-b.clientWidth;goog.dom.removeNode(b);return a};goog.style.MATRIX_TRANSLATION_REGEX_=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;
goog.style.getCssTranslation=function(a){a=goog.style.getComputedTransform(a);if(!a)return new goog.math.Coordinate(0,0);a=a.match(goog.style.MATRIX_TRANSLATION_REGEX_);return!a?new goog.math.Coordinate(0,0):new goog.math.Coordinate(parseFloat(a[1]),parseFloat(a[2]))};goog.events.KeyCodes={WIN_KEY_FF_LINUX:0,MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,FF_DASH:173,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,
V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SCROLL_LOCK:145,FIRST_MEDIA_KEY:166,LAST_MEDIA_KEY:183,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,
TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,MAC_WK_CMD_LEFT:91,MAC_WK_CMD_RIGHT:93,WIN_IME:229,PHANTOM:255};
goog.events.KeyCodes.isTextModifyingKeyEvent=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=goog.events.KeyCodes.F1&&a.keyCode<=goog.events.KeyCodes.F12)return!1;switch(a.keyCode){case goog.events.KeyCodes.ALT:case goog.events.KeyCodes.CAPS_LOCK:case goog.events.KeyCodes.CONTEXT_MENU:case goog.events.KeyCodes.CTRL:case goog.events.KeyCodes.DOWN:case goog.events.KeyCodes.END:case goog.events.KeyCodes.ESC:case goog.events.KeyCodes.HOME:case goog.events.KeyCodes.INSERT:case goog.events.KeyCodes.LEFT:case goog.events.KeyCodes.MAC_FF_META:case goog.events.KeyCodes.META:case goog.events.KeyCodes.NUMLOCK:case goog.events.KeyCodes.NUM_CENTER:case goog.events.KeyCodes.PAGE_DOWN:case goog.events.KeyCodes.PAGE_UP:case goog.events.KeyCodes.PAUSE:case goog.events.KeyCodes.PHANTOM:case goog.events.KeyCodes.PRINT_SCREEN:case goog.events.KeyCodes.RIGHT:case goog.events.KeyCodes.SCROLL_LOCK:case goog.events.KeyCodes.SHIFT:case goog.events.KeyCodes.UP:case goog.events.KeyCodes.WIN_KEY:case goog.events.KeyCodes.WIN_KEY_RIGHT:return!1;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return!goog.userAgent.GECKO;
default:return a.keyCode<goog.events.KeyCodes.FIRST_MEDIA_KEY||a.keyCode>goog.events.KeyCodes.LAST_MEDIA_KEY}};
goog.events.KeyCodes.firesKeyPressEvent=function(a,b,c,d,e){if(!goog.userAgent.IE&&(!goog.userAgent.WEBKIT||!goog.userAgent.isVersionOrHigher("525")))return!0;if(goog.userAgent.MAC&&e)return goog.events.KeyCodes.isCharacterKey(a);if(e&&!d)return!1;goog.isNumber(b)&&(b=goog.events.KeyCodes.normalizeKeyCode(b));if(!c&&(b==goog.events.KeyCodes.CTRL||b==goog.events.KeyCodes.ALT||goog.userAgent.MAC&&b==goog.events.KeyCodes.META))return!1;if(goog.userAgent.WEBKIT&&d&&c)switch(a){case goog.events.KeyCodes.BACKSLASH:case goog.events.KeyCodes.OPEN_SQUARE_BRACKET:case goog.events.KeyCodes.CLOSE_SQUARE_BRACKET:case goog.events.KeyCodes.TILDE:case goog.events.KeyCodes.SEMICOLON:case goog.events.KeyCodes.DASH:case goog.events.KeyCodes.EQUALS:case goog.events.KeyCodes.COMMA:case goog.events.KeyCodes.PERIOD:case goog.events.KeyCodes.SLASH:case goog.events.KeyCodes.APOSTROPHE:case goog.events.KeyCodes.SINGLE_QUOTE:return!1}if(goog.userAgent.IE&&
d&&b==a)return!1;switch(a){case goog.events.KeyCodes.ENTER:return!(goog.userAgent.IE&&goog.userAgent.isDocumentModeOrHigher(9));case goog.events.KeyCodes.ESC:return!goog.userAgent.WEBKIT}return goog.events.KeyCodes.isCharacterKey(a)};
goog.events.KeyCodes.isCharacterKey=function(a){if(a>=goog.events.KeyCodes.ZERO&&a<=goog.events.KeyCodes.NINE||a>=goog.events.KeyCodes.NUM_ZERO&&a<=goog.events.KeyCodes.NUM_MULTIPLY||a>=goog.events.KeyCodes.A&&a<=goog.events.KeyCodes.Z||goog.userAgent.WEBKIT&&0==a)return!0;switch(a){case goog.events.KeyCodes.SPACE:case goog.events.KeyCodes.QUESTION_MARK:case goog.events.KeyCodes.NUM_PLUS:case goog.events.KeyCodes.NUM_MINUS:case goog.events.KeyCodes.NUM_PERIOD:case goog.events.KeyCodes.NUM_DIVISION:case goog.events.KeyCodes.SEMICOLON:case goog.events.KeyCodes.FF_SEMICOLON:case goog.events.KeyCodes.DASH:case goog.events.KeyCodes.EQUALS:case goog.events.KeyCodes.FF_EQUALS:case goog.events.KeyCodes.COMMA:case goog.events.KeyCodes.PERIOD:case goog.events.KeyCodes.SLASH:case goog.events.KeyCodes.APOSTROPHE:case goog.events.KeyCodes.SINGLE_QUOTE:case goog.events.KeyCodes.OPEN_SQUARE_BRACKET:case goog.events.KeyCodes.BACKSLASH:case goog.events.KeyCodes.CLOSE_SQUARE_BRACKET:return!0;
default:return!1}};goog.events.KeyCodes.normalizeKeyCode=function(a){return goog.userAgent.GECKO?goog.events.KeyCodes.normalizeGeckoKeyCode(a):goog.userAgent.MAC&&goog.userAgent.WEBKIT?goog.events.KeyCodes.normalizeMacWebKitKeyCode(a):a};
goog.events.KeyCodes.normalizeGeckoKeyCode=function(a){switch(a){case goog.events.KeyCodes.FF_EQUALS:return goog.events.KeyCodes.EQUALS;case goog.events.KeyCodes.FF_SEMICOLON:return goog.events.KeyCodes.SEMICOLON;case goog.events.KeyCodes.FF_DASH:return goog.events.KeyCodes.DASH;case goog.events.KeyCodes.MAC_FF_META:return goog.events.KeyCodes.META;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return goog.events.KeyCodes.WIN_KEY;default:return a}};
goog.events.KeyCodes.normalizeMacWebKitKeyCode=function(a){switch(a){case goog.events.KeyCodes.MAC_WK_CMD_RIGHT:return goog.events.KeyCodes.META;default:return a}};goog.events.EventTarget=function(){goog.Disposable.call(this);this.eventTargetListeners_=new goog.events.ListenerMap(this);this.actualEventTarget_=this};goog.inherits(goog.events.EventTarget,goog.Disposable);goog.events.Listenable.addImplementation(goog.events.EventTarget);goog.events.EventTarget.MAX_ANCESTORS_=1E3;goog.events.EventTarget.prototype.parentEventTarget_=null;goog.events.EventTarget.prototype.getParentEventTarget=function(){return this.parentEventTarget_};
goog.events.EventTarget.prototype.setParentEventTarget=function(a){this.parentEventTarget_=a};goog.events.EventTarget.prototype.addEventListener=function(a,b,c,d){goog.events.listen(this,a,b,c,d)};goog.events.EventTarget.prototype.removeEventListener=function(a,b,c,d){goog.events.unlisten(this,a,b,c,d)};
goog.events.EventTarget.prototype.dispatchEvent=function(a){this.assertInitialized_();var b,c=this.getParentEventTarget();if(c){b=[];for(var d=1;c;c=c.getParentEventTarget())b.push(c),goog.asserts.assert(++d<goog.events.EventTarget.MAX_ANCESTORS_,"infinite loop")}return goog.events.EventTarget.dispatchEventInternal_(this.actualEventTarget_,a,b)};
goog.events.EventTarget.prototype.disposeInternal=function(){goog.events.EventTarget.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};goog.events.EventTarget.prototype.listen=function(a,b,c,d){this.assertInitialized_();return this.eventTargetListeners_.add(String(a),b,!1,c,d)};goog.events.EventTarget.prototype.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
goog.events.EventTarget.prototype.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};goog.events.EventTarget.prototype.unlistenByKey=function(a){return this.eventTargetListeners_.removeByKey(a)};goog.events.EventTarget.prototype.removeAllListeners=function(a){return!this.eventTargetListeners_?0:this.eventTargetListeners_.removeAll(a)};
goog.events.EventTarget.prototype.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=goog.array.clone(a);for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var g=f.listener,h=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=!1!==g.call(h,c)&&d}}return d&&!1!=c.returnValue_};goog.events.EventTarget.prototype.getListeners=function(a,b){return this.eventTargetListeners_.getListeners(String(a),b)};
goog.events.EventTarget.prototype.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};goog.events.EventTarget.prototype.hasListener=function(a,b){var c=goog.isDef(a)?String(a):void 0;return this.eventTargetListeners_.hasListener(c,b)};goog.events.EventTarget.prototype.setTargetForTesting=function(a){this.actualEventTarget_=a};goog.events.EventTarget.prototype.assertInitialized_=function(){goog.asserts.assert(this.eventTargetListeners_,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};
goog.events.EventTarget.dispatchEventInternal_=function(a,b,c){var d=b.type||b;if(goog.isString(b))b=new goog.events.Event(b,a);else if(b instanceof goog.events.Event)b.target=b.target||a;else{var e=b;b=new goog.events.Event(d,a);goog.object.extend(b,e)}var e=!0,f;if(c)for(var g=c.length-1;!b.propagationStopped_&&0<=g;g--)f=b.currentTarget=c[g],e=f.fireListeners(d,!0,b)&&e;b.propagationStopped_||(f=b.currentTarget=a,e=f.fireListeners(d,!0,b)&&e,b.propagationStopped_||(e=f.fireListeners(d,!1,b)&&e));
if(c)for(g=0;!b.propagationStopped_&&g<c.length;g++)f=b.currentTarget=c[g],e=f.fireListeners(d,!1,b)&&e;return e};goog.testing={};goog.testing.events={};goog.testing.events.Event=function(a,b){this.type=a;this.currentTarget=this.target=b||null};goog.testing.events.Event.prototype.propagationStopped_=!1;goog.testing.events.Event.prototype.defaultPrevented=!1;goog.testing.events.Event.prototype.returnValue_=!0;goog.testing.events.Event.prototype.stopPropagation=function(){this.propagationStopped_=!0};goog.testing.events.Event.prototype.preventDefault=function(){this.defaultPrevented=!0;this.returnValue_=!1};
goog.testing.events.assertEventTarget_=function(a){return goog.asserts.assert(a,"EventTarget should be defined.")};goog.testing.events.setEventClientXY_=function(a,b){if(!b&&a.target&&a.target.nodeType==goog.dom.NodeType.ELEMENT)try{b=goog.style.getClientPosition(a.target)}catch(c){}a.clientX=b?b.x:0;a.clientY=b?b.y:0;a.screenX=a.clientX;a.screenY=a.clientY};
goog.testing.events.fireClickSequence=function(a,b,c,d){return!!(goog.testing.events.fireMouseDownEvent(a,b,c,d)&goog.testing.events.fireMouseUpEvent(a,b,c,d)&goog.testing.events.fireClickEvent(a,b,c,d))};
goog.testing.events.fireDoubleClickSequence=function(a,b,c){var d=goog.events.BrowserEvent.MouseButton.LEFT;return!!(goog.testing.events.fireMouseDownEvent(a,d,b,c)&goog.testing.events.fireMouseUpEvent(a,d,b,c)&goog.testing.events.fireClickEvent(a,d,b,c)&(goog.userAgent.IE||goog.testing.events.fireMouseDownEvent(a,d,b,c))&goog.testing.events.fireMouseUpEvent(a,d,b,c)&(goog.userAgent.IE||goog.testing.events.fireClickEvent(a,d,b,c))&goog.testing.events.fireDoubleClickEvent(a,b,c))};
goog.testing.events.fireKeySequence=function(a,b,c){return goog.testing.events.fireNonAsciiKeySequence(a,b,b,c)};
goog.testing.events.fireNonAsciiKeySequence=function(a,b,c,d){var e=new goog.testing.events.Event(goog.events.EventType.KEYDOWN,a),f=new goog.testing.events.Event(goog.events.EventType.KEYUP,a);a=new goog.testing.events.Event(goog.events.EventType.KEYPRESS,a);e.keyCode=f.keyCode=b;a.keyCode=c;d&&(goog.object.extend(e,d),goog.object.extend(f,d),goog.object.extend(a,d));c=!0;goog.testing.events.isBrokenGeckoMacActionKey_(e)||(c=goog.testing.events.fireBrowserEvent(e));if(goog.events.KeyCodes.firesKeyPressEvent(b,
void 0,e.shiftKey,e.ctrlKey,e.altKey)&&(!goog.userAgent.IE||c))c&=goog.testing.events.fireBrowserEvent(a);return!!(c&goog.testing.events.fireBrowserEvent(f))};goog.testing.events.isBrokenGeckoMacActionKey_=function(a){return goog.userAgent.MAC&&goog.userAgent.GECKO&&(a.keyCode==goog.events.KeyCodes.C||a.keyCode==goog.events.KeyCodes.X||a.keyCode==goog.events.KeyCodes.V)&&a.metaKey};
goog.testing.events.fireMouseOverEvent=function(a,b,c){a=new goog.testing.events.Event(goog.events.EventType.MOUSEOVER,a);a.relatedTarget=b;goog.testing.events.setEventClientXY_(a,c);return goog.testing.events.fireBrowserEvent(a)};goog.testing.events.fireMouseMoveEvent=function(a,b){var c=new goog.testing.events.Event(goog.events.EventType.MOUSEMOVE,a);goog.testing.events.setEventClientXY_(c,b);return goog.testing.events.fireBrowserEvent(c)};
goog.testing.events.fireMouseOutEvent=function(a,b,c){a=new goog.testing.events.Event(goog.events.EventType.MOUSEOUT,a);a.relatedTarget=b;goog.testing.events.setEventClientXY_(a,c);return goog.testing.events.fireBrowserEvent(a)};
goog.testing.events.fireMouseDownEvent=function(a,b,c,d){b=b||goog.events.BrowserEvent.MouseButton.LEFT;b=!goog.events.BrowserFeature.HAS_W3C_BUTTON?goog.events.BrowserEvent.IEButtonMap[b]:b;return goog.testing.events.fireMouseButtonEvent_(goog.events.EventType.MOUSEDOWN,a,b,c,d)};
goog.testing.events.fireMouseUpEvent=function(a,b,c,d){b=b||goog.events.BrowserEvent.MouseButton.LEFT;b=!goog.events.BrowserFeature.HAS_W3C_BUTTON?goog.events.BrowserEvent.IEButtonMap[b]:b;return goog.testing.events.fireMouseButtonEvent_(goog.events.EventType.MOUSEUP,a,b,c,d)};goog.testing.events.fireClickEvent=function(a,b,c,d){return goog.testing.events.fireMouseButtonEvent_(goog.events.EventType.CLICK,a,b,c,d)};
goog.testing.events.fireDoubleClickEvent=function(a,b,c){return goog.testing.events.fireMouseButtonEvent_(goog.events.EventType.DBLCLICK,a,goog.events.BrowserEvent.MouseButton.LEFT,b,c)};goog.testing.events.fireMouseButtonEvent_=function(a,b,c,d,e){a=new goog.testing.events.Event(a,b);a.button=c||goog.events.BrowserEvent.MouseButton.LEFT;goog.testing.events.setEventClientXY_(a,d);e&&goog.object.extend(a,e);return goog.testing.events.fireBrowserEvent(a)};
goog.testing.events.fireContextMenuEvent=function(a,b){var c=goog.userAgent.MAC&&goog.userAgent.WEBKIT?goog.events.BrowserEvent.MouseButton.LEFT:goog.events.BrowserEvent.MouseButton.RIGHT,d=new goog.testing.events.Event(goog.events.EventType.CONTEXTMENU,a);d.button=!goog.events.BrowserFeature.HAS_W3C_BUTTON?goog.events.BrowserEvent.IEButtonMap[c]:c;d.ctrlKey=goog.userAgent.MAC;goog.testing.events.setEventClientXY_(d,b);return goog.testing.events.fireBrowserEvent(d)};
goog.testing.events.fireContextMenuSequence=function(a,b){var c=goog.userAgent.MAC?{ctrlKey:!0}:{},d=goog.userAgent.MAC&&goog.userAgent.WEBKIT?goog.events.BrowserEvent.MouseButton.LEFT:goog.events.BrowserEvent.MouseButton.RIGHT,e=goog.testing.events.fireMouseDownEvent(a,d,b,c);goog.userAgent.WINDOWS?e&=goog.testing.events.fireMouseUpEvent(a,d,b)&goog.testing.events.fireContextMenuEvent(a,b):(e&=goog.testing.events.fireContextMenuEvent(a,b),e&=goog.testing.events.fireMouseUpEvent(a,d,b,c),goog.userAgent.WEBKIT&&
goog.userAgent.MAC&&(e&=goog.testing.events.fireClickEvent(a,d,b,c)));return!!e};goog.testing.events.firePopStateEvent=function(a,b){var c=new goog.testing.events.Event(goog.events.EventType.POPSTATE,a);c.state=b;return goog.testing.events.fireBrowserEvent(c)};goog.testing.events.fireBlurEvent=function(a){a=new goog.testing.events.Event(goog.events.EventType.BLUR,a);return goog.testing.events.fireBrowserEvent(a)};
goog.testing.events.fireFocusEvent=function(a){a=new goog.testing.events.Event(goog.events.EventType.FOCUS,a);return goog.testing.events.fireBrowserEvent(a)};
goog.testing.events.fireBrowserEvent=function(a){a.returnValue_=!0;for(var b=[],c=a.target;c;c=c.parentNode)b.push(c);for(c=b.length-1;0<=c&&!a.propagationStopped_;c--)goog.events.fireListeners(b[c],a.type,!0,new goog.events.BrowserEvent(a,b[c]));for(c=0;c<b.length&&!a.propagationStopped_;c++)goog.events.fireListeners(b[c],a.type,!1,new goog.events.BrowserEvent(a,b[c]));return a.returnValue_};
goog.testing.events.fireTouchStartEvent=function(a,b,c){a=new goog.testing.events.Event(goog.events.EventType.TOUCHSTART,a);goog.testing.events.setEventClientXY_(a,b);c&&goog.object.extend(a,c);return goog.testing.events.fireBrowserEvent(a)};goog.testing.events.fireTouchMoveEvent=function(a,b,c){a=new goog.testing.events.Event(goog.events.EventType.TOUCHMOVE,a);goog.testing.events.setEventClientXY_(a,b);c&&goog.object.extend(a,c);return goog.testing.events.fireBrowserEvent(a)};
goog.testing.events.fireTouchEndEvent=function(a,b,c){a=new goog.testing.events.Event(goog.events.EventType.TOUCHEND,a);goog.testing.events.setEventClientXY_(a,b);c&&goog.object.extend(a,c);return goog.testing.events.fireBrowserEvent(a)};goog.testing.events.fireTouchSequence=function(a,b,c){return!!(goog.testing.events.fireTouchStartEvent(a,b,c)&goog.testing.events.fireTouchEndEvent(a,b,c))};
goog.testing.events.mixinListenable=function(a){var b=new goog.events.EventTarget;b.setTargetForTesting(a);var c=goog.events.EventTarget.prototype,d=goog.Disposable.prototype,e;for(e in c)if(c.hasOwnProperty(e)||d.hasOwnProperty(e)){var f=c[e];goog.isFunction(f)?a[e]=goog.bind(f,b):a[e]=f}};goog.crypt={};goog.crypt.stringToByteArray=function(a){for(var b=[],c=0,d=0;d<a.length;d++){for(var e=a.charCodeAt(d);255<e;)b[c++]=e&255,e>>=8;b[c++]=e}return b};goog.crypt.byteArrayToString=function(a){return String.fromCharCode.apply(null,a)};goog.crypt.byteArrayToHex=function(a){return goog.array.map(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
goog.crypt.hexToByteArray=function(a){goog.asserts.assert(0==a.length%2,"Key string length must be multiple of 2");for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};goog.crypt.stringToUtf8ByteArray=function(a){a=a.replace(/\r\n/g,"\n");for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
goog.crypt.utf8ByteArrayToString=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else{var f=a[c++],g=a[c++];b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}}return b.join("")};goog.crypt.xorByteArray=function(a,b){goog.asserts.assert(a.length==b.length,"XOR array lengths must match");for(var c=[],d=0;d<a.length;d++)c.push(a[d]^b[d]);return c};goog.crypt.base64={};goog.crypt.base64.byteToCharMap_=null;goog.crypt.base64.charToByteMap_=null;goog.crypt.base64.byteToCharMapWebSafe_=null;goog.crypt.base64.charToByteMapWebSafe_=null;goog.crypt.base64.ENCODED_VALS_BASE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.ENCODED_VALS_BASE+"+/=";goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.ENCODED_VALS_BASE+"-_.";
goog.crypt.base64.HAS_NATIVE_SUPPORT=goog.userAgent.GECKO||goog.userAgent.WEBKIT||goog.userAgent.OPERA||"function"==typeof goog.global.atob;
goog.crypt.base64.encodeByteArray=function(a,b){if(!goog.isArrayLike(a))throw Error("encodeByteArray takes an array as a parameter");goog.crypt.base64.init_();for(var c=b?goog.crypt.base64.byteToCharMapWebSafe_:goog.crypt.base64.byteToCharMap_,d=[],e=0;e<a.length;e+=3){var f=a[e],g=e+1<a.length,h=g?a[e+1]:0,k=e+2<a.length,l=k?a[e+2]:0,m=f>>2,f=(f&3)<<4|h>>4,h=(h&15)<<2|l>>6,l=l&63;k||(l=64,g||(h=64));d.push(c[m],c[f],c[h],c[l])}return d.join("")};
goog.crypt.base64.encodeString=function(a,b){return goog.crypt.base64.HAS_NATIVE_SUPPORT&&!b?goog.global.btoa(a):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(a),b)};goog.crypt.base64.decodeString=function(a,b){return goog.crypt.base64.HAS_NATIVE_SUPPORT&&!b?goog.global.atob(a):goog.crypt.byteArrayToString(goog.crypt.base64.decodeStringToByteArray(a,b))};
goog.crypt.base64.decodeStringToByteArray=function(a,b){goog.crypt.base64.init_();for(var c=b?goog.crypt.base64.charToByteMapWebSafe_:goog.crypt.base64.charToByteMap_,d=[],e=0;e<a.length;){var f=c[a.charAt(e++)],g=e<a.length?c[a.charAt(e)]:0;++e;var h=e<a.length?c[a.charAt(e)]:0;++e;var k=e<a.length?c[a.charAt(e)]:0;++e;if(null==f||null==g||null==h||null==k)throw Error();d.push(f<<2|g>>4);64!=h&&(d.push(g<<4&240|h>>2),64!=k&&d.push(h<<6&192|k))}return d};
goog.crypt.base64.init_=function(){if(!goog.crypt.base64.byteToCharMap_){goog.crypt.base64.byteToCharMap_={};goog.crypt.base64.charToByteMap_={};goog.crypt.base64.byteToCharMapWebSafe_={};goog.crypt.base64.charToByteMapWebSafe_={};for(var a=0;a<goog.crypt.base64.ENCODED_VALS.length;a++)goog.crypt.base64.byteToCharMap_[a]=goog.crypt.base64.ENCODED_VALS.charAt(a),goog.crypt.base64.charToByteMap_[goog.crypt.base64.byteToCharMap_[a]]=a,goog.crypt.base64.byteToCharMapWebSafe_[a]=goog.crypt.base64.ENCODED_VALS_WEBSAFE.charAt(a),
goog.crypt.base64.charToByteMapWebSafe_[goog.crypt.base64.byteToCharMapWebSafe_[a]]=a}};neutron.dashboard.tests.actions={};neutron.dashboard.tests.actions.generals={};
neutron.dashboard.tests.actions.generals.clickWith=function(a,b,c,d){if(!1===goog.isDefAndNotNull(a))console.error("neutron.dashboard.tests.actions.generals.clickWith called with null element.");else{var e=function(){var d=-1!=navigator.userAgent.toLowerCase().indexOf("(macintosh"),e=!1;!0==b&&!0==d&&(e=!0,b=!1);d=document.createEvent("MouseEvents");d.initMouseEvent("click",!0,!0,window,0,0,0,0,0,b,!1,c,e,0,null);a.dispatchEvent(d)};!0==goog.isDefAndNotNull(d)?setTimeout(function(){e()},d):e()}};
neutron.dashboard.tests.actions.generals.rightClickWithContextMenu=function(a){goog.testing.events.fireClickSequence(a,goog.events.BrowserEvent.MouseButton.RIGHT);window.setTimeout(function(){goog.testing.events.fireContextMenuEvent(a)},200)};neutron.dashboard.tests.actions.generals.doubleClick=function(a){var b=new MouseEvent("dblclick",{view:window,bubbles:!0,cancelable:!0});a.dispatchEvent(b)};
neutron.dashboard.tests.actions.generals.closeCurrentDocument=function(a,b){a.justDo(function(){var c=!0;if(goog.isDefAndNotNull(b)){var d=JSON.parse(window.neutronJavaScriptObject.executeQuery("getTabTexts",""));!0==goog.isDefAndNotNull(d)&&!0==goog.isDefAndNotNull(d.tabs)&&(c=goog.object.containsValue(d.tabs,b))}c?(a.info("Closing current document (make it not using by) to be able to delete, rename etc. document"),neutron.dashboard.tests.actions.generals.runFusionTextCommand("NuCommands.CloseDocumentCmd")):
a.info("Requested document name not found in open tabs, close document ignored.")}).then().waitForTimeout("Waiting for some time because when we close document server needs some time to make it unused.",3E3).then(function(){neutron.dashboard.tests.actions.generals.runFusionTextCommand('NuCommands.CycleTabsCmd "0" "0"')})};neutron.dashboard.tests.actions.generals.runFusionTextCommand=function(a){return window.neutronJavaScriptObject.executeQuery("executeTextCommandWithoutOutput",a)};
neutron.dashboard.tests.actions.generals.playTextScript=function(a){window.neutronJavaScriptObject.executeQuery("playTextScript",a)};neutron.dashboard.tests.actions.generals.keyPress=function(a){goog.testing.events.fireKeySequence(a,0)};neutron.dashboard.tests.actions.generals.createGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})};
neutron.dashboard.tests.actions.generals.createNewEmptyFile=function(){var a=neutron.dashboard.tests.actions.generals.createGuid();neutron.dashboard.tests.actions.generals.runFusionTextCommand("NuCommands.NewDocumentCmd FusionAssetType "+a+" 2")};
neutron.dashboard.tests.actions.generals.saveDesign=function(a,b){var c=b||null;neutron.dashboard.invoker.getLastUsedProject();var d={};d.name=a;d.folderId=neutron.dashboard.tests.actions.dataView.projectDetails.getCurrentFolderId();c=goog.isDefAndNotNull(c)&&!0===c?"saveCurrentDocument":"saveCurrentDocumentAs";window.neutronJavaScriptObject.executeQuery(c,JSON.stringify(d))};
neutron.dashboard.tests.actions.generals.findSpinningBox=function(a){return document.evaluate('//div[contains(@class, "spinner")]//ancestor::div[contains(@class, "datalistNode") and .//div[text()="'+a+'"]]',document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.generals.createFileWithVersionsIfNotExists=function(a,b,c){a.alternatives(function(){if(null===neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b)){var a=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.generals.createDesign(a,b);for(var e=0;e<c-1;e++)neutron.dashboard.tests.actions.dataView.projectDetails.updateDesign(a,b,"we want change to make more versions to be able to promote",!0);return a}return null}).then()};
neutron.dashboard.tests.actions.generals.createDesign=function(a,b){var c=this;a.justDo(function(){neutron.dashboard.tests.actions.generals.createNewEmptyFile();neutron.dashboard.tests.actions.generals.saveDesign(b)}).then().waitForElementAppear("createDesign-Waiting for spinning box",2E4,function(){return c.findSpinningBox(b)}).then().waitForElementDisappear("createDesign-Waiting for spinning box to disappear, which means save is done",24E4,function(){return c.findSpinningBox(b)}).then().waitForTimeout("createDesign-Wait for save finishes (even when spinning box disappear it does not mean finnish is truly done - SHOULD BE REMOVED WHEN BUSINESS LOGIC WILL BE MOVED TO CPP)",
5E3).then()};neutron.dashboard.tests.actions.generals.createDesignIfNotExists=function(a,b){a.alternatives(function(){if(null==neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b)){var a=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.generals.createDesign(a,b);return a}return null}).then()};
neutron.dashboard.tests.actions.generals.xpathSingleNode=function(a,b,c){b=b||null;c=c||document.documentElement;var d=document.evaluate(a,c,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(null==d&&b){var e="",e=c.innerHTML?c.innerHTML:document.documentElement.innerHTML;b.fail(a+" + NOT FOUND\n<![CDATA["+e+"]]\x3e")}return d};neutron.dashboard.tests.TestCaseTestHandler=function(a,b){this._testRunner=a;this._executor=b};neutron.dashboard.tests.TestCaseTestHandler.prototype.setTimeout=function(a){this._executor.setTimeout(a)};neutron.dashboard.tests.TestCaseTestHandler.prototype.markComplete=function(){this._executor.markComplete()};neutron.dashboard.tests.TestCaseTestHandler.prototype.getContext=function(){return this._testRunner.getContext()};
neutron.dashboard.tests.TestCaseTestHandler.prototype.fail=function(a,b){var c=b||!0;this._testRunner.fail(a);!0===c&&this.markComplete()};neutron.dashboard.tests.TestCaseTestHandler.prototype.info=function(a){this._testRunner.info(a)};neutron.dashboard.tests.TestCaseTestHandler.prototype.infoWithTimeStamp=function(a){this._testRunner.infoWithTimeStamp(a)};neutron.dashboard.tests.TestCaseTestHandler.prototype.hasFailed=function(){return this._testRunner.hasFailed()};neutron.dashboard.tests.TimeoutableExecutor=function(a,b,c){this._successCompletion=a;this._timeOutCompletion=b;this._completed=!1;this._timeout=c||0};neutron.dashboard.tests.TimeoutableExecutor.prototype.setTimeout=function(a){this._timeout=a};neutron.dashboard.tests.TimeoutableExecutor.prototype.markComplete=function(){!1===this._completed&&(this._completed=!0,this._successCompletion())};
neutron.dashboard.tests.TimeoutableExecutor.prototype._startTimeOut=function(){var a=this;0!=a._timeout&&window.setTimeout(function(){!1===a._completed&&(a._completed=!0,a._timeOutCompletion())},this._timeout)};neutron.dashboard.tests.TimeoutableExecutor.prototype.run=function(a){a();this._startTimeOut()};neutron.dashboard.tests.Output=function(){};neutron.dashboard.tests.Output.prototype.testSuiteStart=function(a){window.neutronJavaScriptObject.executeQuery("storeTestResults",JSON.stringify({type:"TestSuite",message:"start",count:a}))};neutron.dashboard.tests.Output.prototype.testSuiteEnd=function(){var a={type:"TestSuite",message:"end"};goog.isDefAndNotNull(window.cc)&&(a.coverage=JSON.stringify(window.cc));window.neutronJavaScriptObject.executeQuery("storeTestResults",JSON.stringify(a))};
neutron.dashboard.tests.Output.prototype.testSuiteStartTest=function(a){a={type:"TestSuite",message:"startTest",test:{className:a.getClassName(),testName:a.getName()}};window.neutronJavaScriptObject.executeQuery("storeTestResults",JSON.stringify(a))};
neutron.dashboard.tests.Output.prototype.testFailed=function(a,b){b=b.replace("<",";");b=b.replace(">",";");var c={type:"Test",message:"failed",test:{className:a.getClassName(),testName:a.getName()},info:b};window.neutronJavaScriptObject.executeQuery("storeTestResults",JSON.stringify(c))};
neutron.dashboard.tests.Output.prototype.testChangedState=function(a,b){var c={type:"Test",message:"changedState",test:{className:a.getClassName(),testName:a.getName()},info:b};window.neutronJavaScriptObject.executeQuery("storeTestResults",JSON.stringify(c))};neutron.dashboard.tests.Output.prototype.testEnd=function(a,b){var c={type:"Test",message:"end",test:{className:a.getClassName(),testName:a.getName()},time:b};window.neutronJavaScriptObject.executeQuery("storeTestResults",JSON.stringify(c))};
neutron.dashboard.tests.standartOutput=new neutron.dashboard.tests.Output;neutron.dashboard.tests.TestCaseTestRunner=function(a,b,c,d){var e=this;this._completion=null;this._testCase=a;this._testFunc=b;this._testName=c;this._runSession=d;this._failed=!1;this._infos=[];this._testCaseTestExecutor=new neutron.dashboard.tests.TimeoutableExecutor(function(){e._finnish()},function(){e.fail("test timeout");e._finnish()});this._startTime=null;this._logColor="rgb("+(Math.floor(57*Math.random())+200)+","+(Math.floor(57*Math.random())+200)+","+(Math.floor(57*Math.random())+200)+")";
this._isSetupReceiver=!1};
neutron.dashboard.tests.TestCaseTestRunner.prototype.run=function(a){!1==this._isSetupReceiver&&this._start();this._completion=a;console.log("JSTESTS - %cTest "+this.getFullName()+" start","background:"+this._logColor);var b=this;this._testCaseTestExecutor.run(function(){b._runSession.exceptionsHandler=function(a,c,f,g,h){b._failWithException(a,c,f,g,h);b._testCaseTestExecutor.markComplete()};var a=new neutron.dashboard.tests.TestCaseTestHandler(b,b._testCaseTestExecutor);b._testFunc.apply(b._testCase,
[a])})};neutron.dashboard.tests.TestCaseTestRunner.prototype.info=function(a){this._infos.push(a);neutron.dashboard.tests.standartOutput.testChangedState(this,a);console.log("JSTESTS - %c"+a,"background:"+this._logColor)};neutron.dashboard.tests.TestCaseTestRunner.prototype.infoWithTimeStamp=function(a){a=this._runSession.getAtTimeDescription()+" "+a;this._infos.push(a);neutron.dashboard.tests.standartOutput.testChangedState(this,a);console.log("JSTESTS - %c"+a,"background:"+this._logColor)};
neutron.dashboard.tests.TestCaseTestRunner.prototype.fail=function(a){if(!0!==this._failed&&(this._failed=!0,neutron.dashboard.tests.standartOutput.testFailed(this,a),console.log("JSTESTS - %cFail: "+a,"background:"+this._logColor),this._runSession.shouldStopAtBreakpointWhenFail()))debugger};neutron.dashboard.tests.TestCaseTestRunner.prototype._start=function(){neutron.dashboard.tests.standartOutput.testSuiteStartTest(this);this._startTime=Date.now()};
neutron.dashboard.tests.TestCaseTestRunner.prototype._finnish=function(){neutron.dashboard.tests.standartOutput.testEnd(this,(Date.now()-this._startTime)/1E3);this.hasFailed()?console.log("JSTESTS - %cTest "+this.getFullName()+" finnished with fail","background:"+this._logColor):console.log("JSTESTS - %cTest "+this.getFullName()+" finnished sucessfully","background:"+this._logColor);this._runSession.exceptionsHandler=null;this._completion&&this._completion()};
neutron.dashboard.tests.TestCaseTestRunner.prototype._failWithException=function(a,b,c,d,e){goog.isDefAndNotNull(e)?this.fail("Exception : "+a+"| in file: "+b+"| at line: "+c+" column: "+d+"\n"+e.stack):this.fail("Exception : "+a+"| in file: "+b+"| at line: "+c+" column: "+d)};neutron.dashboard.tests.TestCaseTestRunner.prototype.hasFailed=function(){return this._failed};neutron.dashboard.tests.TestCaseTestRunner.prototype.getName=function(){return this._testName};
neutron.dashboard.tests.TestCaseTestRunner.prototype.getClassName=function(){return this._testCase.getFullName()};neutron.dashboard.tests.TestCaseTestRunner.prototype.getFullName=function(){return this._testCase.getFullName()+"."+this.getName()};neutron.dashboard.tests.TestCaseTestRunner.prototype.getTestSuiteName=function(){return this._testCase.getTestSuiteName()};neutron.dashboard.tests.TestCaseTestRunner.prototype.getContext=function(){return this._runSession.getContext()};
neutron.dashboard.tests.TestCaseTestRunner.prototype.becomeCaseSetUpReceiver=function(){this._isSetupReceiver=!0;this._start()};neutron.dashboard.tests.TestCaseTestRunner.prototype.caseSetupFailed=function(a){this._start();this.fail("SETUP HAS FAILED WITH : "+a);this._finnish()};neutron.dashboard.tests.TestCaseRunner=function(a,b,c){this._testCase=a;this._runSession=b;this._runSetupAndTeardownOnlyOnce=!0===goog.isDef(c)?c:!0;this._tearDownInfo=[];this._testsRunners=[];this._completion=null;this._logColor="rgb("+(Math.floor(57*Math.random())+200)+","+(Math.floor(57*Math.random())+200)+","+(Math.floor(57*Math.random())+200)+")";this._setUpFailed=!1};
neutron.dashboard.tests.TestCaseRunner.prototype.run=function(a){this._completion=a;0==this._testsRunners.length?this._finnish():this._runSetupAndTeardownOnlyOnce?this._runInModeWhenSetupAndTeardownAreExecutedOnce():this._runInModeWhenSetupAndTeardownAreExecutedForEachRun()};
neutron.dashboard.tests.TestCaseRunner.prototype._runInModeWhenSetupAndTeardownAreExecutedOnce=function(){var a=this,b=new neutron.dashboard.tests.TimeoutableExecutor(function(){a._tearDownInfo.push("Called teardown completion");a._finnish()},function(){a.fail("testcase teardown timeout")}),c=this._testsRunners[0];c.becomeCaseSetUpReceiver();var d=this._testsRunners[this._testsRunners.length-1],e=!1,f={fail:function(c){a._tearDownInfo.push(c);d.fail("TEARDOWN ERROR: "+c);e=!0;b.markComplete()},info:function(b){a._tearDownInfo.push(b);
d.info("TEARDOWN INFO: "+b)},infoWithTimeStamp:function(b){a._tearDownInfo.push(b);d.infoWithTimeStamp("TEARDOWN INFO: "+b)},hasFailed:function(){return e},markComplete:function(){a._tearDownInfo.push("Teardown marked complete");b.markComplete()}},g=new neutron.dashboard.tests.TimeoutableExecutor(function(){var c=function(d){d<a._testsRunners.length?a._testsRunners[d].run(function(){c(d+1)}):b.run(function(){a._runSession.exceptionsHandler=function(b,c,d,e,g){a._failWithException(b,c,d,e,g,f);f.markComplete()};
a._testCase.tearDown(f)})};c(0)},function(){a.fail("testcase setup timeout")}),h={fail:function(b){a._setUpFailed=!0;c.fail(b);a.foreachTestRunner(function(a){a!=c&&a.caseSetupFailed(b)});a._finnish()},info:function(a){c.info(a)},infoWithTimeStamp:function(a){c.infoWithTimeStamp(a)},hasFailed:function(){return a._setUpFailed},markComplete:function(){!1===a._setUpFailed&&g.markComplete()}};g.run(function(){a._runSession.exceptionsHandler=function(b,c,d,e,f){a._failWithException(b,c,d,e,f,h)};a._testCase.setUp(h)})};
neutron.dashboard.tests.TestCaseRunner.prototype._runInModeWhenSetupAndTeardownAreExecutedForEachRun=function(){var a=this,b=function(c){if(a._testsRunners.length>=c)a._finnish();else{var d=a._testsRunners[c],e=function(){d.run(function(){b(c+1)})};(function(){var b=!1,c=new neutron.dashboard.tests.TimeoutableExecutor(function(){e()},function(){a.fail("testcase setup timeout")}),h={fail:function(a){b=!0;d.fail(a)},info:function(a){d.info(a)},infoWithTimeStamp:function(a){d.infoWithTimeStamp(a)},hasFailed:function(){return b},
markComplete:function(){c.markComplete()}};c.run(function(){a._runSession.exceptionsHandler=function(b,c,d,e,f){a._failWithException(b,c,d,e,f,h)};a._testCase.setUp(h)})})()}};b(0)};neutron.dashboard.tests.TestCaseRunner.prototype._finnish=function(){this._tearDownInfo.push("Finnish of testcase runner called");this._completion()};
neutron.dashboard.tests.TestCaseRunner.prototype._failWithException=function(a,b,c,d,e,f){goog.isDefAndNotNull(e)?f.fail("Exception : "+a+"| in file: "+b+"| at line: "+c+" column: "+d+"\n"+e.stack):f.fail("Exception : "+a+"| in file: "+b+"| at line: "+c+" column: "+d)};neutron.dashboard.tests.TestCaseRunner.prototype.addRunnerForTest=function(a){a=a.createRunner(this._runSession,this._testCase);this._testsRunners.push(a)};neutron.dashboard.tests.TestCaseRunner.prototype.getTestsRunnersCount=function(){return this._testsRunners.length};
neutron.dashboard.tests.TestCaseRunner.prototype.foreachTestRunner=function(a){for(var b=0;b<this._testsRunners.length;b++)a(this._testsRunners[b])};neutron.dashboard.tests.TestCaseRunner.prototype.fail=function(a){console.log("REALLY??? "+a)};neutron.dashboard.tests.TestCaseTest=function(a,b,c){this._testCase=c;this._test=a;this._testName=b};neutron.dashboard.tests.TestCaseTest.prototype.createRunner=function(a,b){return new neutron.dashboard.tests.TestCaseTestRunner(b,this._test,this._testName,a)};neutron.dashboard.tests.TestCaseTest.prototype.getName=function(){return this._testName};neutron.dashboard.tests.TestCaseTest.prototype.getTestCase=function(){return this._testCase};neutron.dashboard.tests.TestCase=function(){this._name=this._testSuite=null};neutron.dashboard.tests.TestCase.prototype._runSetupAndTeardownOnlyOnce=!0;neutron.dashboard.tests.TestCase.prototype.repeatSetupAndTeardownForEveryTest=function(){this._runSetupAndTeardownOnlyOnce=!1};neutron.dashboard.tests.TestCase.prototype.setTestSuite=function(a){this._testSuite=a};neutron.dashboard.tests.TestCase.prototype.setUp=function(a){a.markComplete()};neutron.dashboard.tests.TestCase.prototype.tearDown=function(a){a.markComplete()};
neutron.dashboard.tests.TestCase.prototype._getAllTestFunctions=function(){return[]};neutron.dashboard.tests.TestCase.prototype._createTestCaseTest=function(a,b){return new neutron.dashboard.tests.TestCaseTest(a,b,this)};neutron.dashboard.tests.TestCase.prototype.foreachTestCaseTest=function(a){for(var b=this._getAllTestFunctions(),c=0;c<b.length;c++)a(b[c],this)};
neutron.dashboard.tests.TestCase.prototype.fillRunSessionWithMyTests=function(a){for(var b=this.createRunner(a),c=this._getAllTestFunctions(),d=0;d<c.length;d++)b.addRunnerForTest(c[d]);a.addRunner(b)};neutron.dashboard.tests.TestCase.prototype._fillRunSessionWithMyTest=function(a,b){for(var c=this._getAllTestFunctions(),d=0;d<c.length;d++){var e=c[d];if(e.getName()==a){c=this.createRunner(b);c.addRunnerForTest(e);b.addRunner(c);break}}};
neutron.dashboard.tests.TestCase.prototype.createRunner=function(a){var b=Object.create(this);return new neutron.dashboard.tests.TestCaseRunner(b,a,this._runSetupAndTeardownOnlyOnce)};neutron.dashboard.tests.TestCase.prototype.getTestSuiteName=function(){return this._testSuite.getName()};neutron.dashboard.tests.TestCase.prototype.getName=function(){return this._name};neutron.dashboard.tests.TestCase.prototype.getFullName=function(){return this._testSuite.getName()+"."+this._name};
neutron.dashboard.tests.TestCase.prototype.addTestsToEntryPoint=function(a,b){var c=this,d={all:function(){var a=b.createRunSession();c.fillRunSessionWithMyTests(a);a.run()}};a.run[this.getName()]=d;for(var e=this._getAllTestFunctions(),f=0;f<e.length;f++){var g=e[f].getName();d[g]=function(a){return function(){var d=b.createRunSession();c._fillRunSessionWithMyTest(a,d);d.run()}}(g)}};neutron.dashboard.tests.FlowTestCase=function(){neutron.dashboard.tests.TestCase.call(this);this.generals=neutron.dashboard.tests.actions.generals};goog.inherits(neutron.dashboard.tests.FlowTestCase,neutron.dashboard.tests.TestCase);neutron.dashboard.tests.FlowTestCase.prototype.flow=function(a){return new neutron.dashboard.tests.Flow(a)};neutron.dashboard.tests.prepareDataSets={};neutron.dashboard.tests.prepareDataSets.XrefSets=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="XrefSets"};goog.inherits(neutron.dashboard.tests.prepareDataSets.XrefSets,neutron.dashboard.tests.FlowTestCase);function compareItemsInArray(a,b){for(var c="",d=0;d<a.length;++d){for(var e=!1,f=0;f<b.length;++f){var g=a[d].trim(),h=b[f].trim();if(g==h){e=!0;break}}e||(c+=g+"\n")}return c}
function runFusionTextCommand(a){return window.neutronJavaScriptObject.executeQuery("executeTextCommandWithoutOutput",a)}function hasDesignCorrectInstances(a){var b=getDesignInstancesFromTextCommandResult(runFusionTextCommand("ComponentData.ListInstances"));return"No instances to l"==b[0]?!1:b.length==a}function getDesignInstancesFromTextCommandResult(a){var b=[];a=a.split("\r");for(var c=0;c<a.length;++c){var d=a[c];(""!=d||4<d.length&&" "!=d[3])&&b.push(d.substr(0,d.length-5))}return b}
function getDataPanelItems(a){a=document.evaluate(a,document.documentElement,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);for(var b=a.iterateNext(),c=[];b;)c.push(b.data),b=a.iterateNext();return c}
function compareLists(a,b,c){c.info("Number of items in Data Panel: "+b.length);c.info("Number of components in Design: "+a.length);var d=compareItemsInArray(b,a);a=compareItemsInArray(a,b);b="";d&&(b=b+"Items missing in Design:\n"+d);a&&(b+="Extra items in Design:\n",b+=a);b.length?c.info(b):c.info("There is no difference")}
neutron.dashboard.tests.prepareDataSets.XrefSets.prototype.testDataPanelDuplicates=function(a){for(var b=getDataPanelItems("//div[contains(@class, 'projectDetailPane')]//div[contains(@class, 'fusionFile')]//div[@class='descriptionText']/text()"),c="",d=0,e=0;e<b.length;++e){for(var f=!1,g=0;g<b.length&&e!==g;++g){var h=b[e].trim(),k=b[g].trim();if(h==k){f=!0;d++;break}}f&&(c+=h+" : item =  "+e+"\n")}c?a.info(c+("Number of duplicates - "+d+"\n")):a.info("There is no duplicates");a.markComplete()};
neutron.dashboard.tests.prepareDataSets.XrefSets.prototype.testCheckDetailInfoVersusDesign=function(a){var b=getDesignInstancesFromTextCommandResult(runFusionTextCommand("ComponentData.ListInstances")),c=getDataPanelItems("//div[contains(@class, 'relatedItem fusion')]/text()");compareLists(b,c,a);a.markComplete()};
neutron.dashboard.tests.prepareDataSets.XrefSets.prototype.testDataPanelItemsVersusDesign=function(a){var b=getDesignInstancesFromTextCommandResult(runFusionTextCommand("ComponentData.ListInstances")),c=getDataPanelItems("//div[contains(@class, 'projectDetailPane')]//div[contains(@class, 'fusionFile')]//div[@class='descriptionText']/text()");compareLists(b,c,a);a.markComplete()};
neutron.dashboard.tests.prepareDataSets.XrefSets.prototype.testInsertXrefsIntoDesign=function(a){function b(e,f){e<=c?(new neutron.dashboard.tests.Flow(a)).justDo(function(){var a=document.evaluate("(//div[contains(@class, 'projectDetailPane')]//*[contains(@class, 'fusionFile')])["+e+"]",document.documentElement,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue;goog.testing.events.fireContextMenuEvent(a)}).then().waitForElementAppear("Waiting for Insert into Current Design menu item",
1E3,d).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)}).waitForTimeout("Wait for end of insert command",3E3).then().complete(function(){b(e+1,f)}):f()}var c=document.evaluate("count(//div[contains(@class, 'projectDetailPane')]//*[contains(@class, 'fusionFile')])",document.documentElement,null,XPathResult.ANY_TYPE,null).numberValue,d=function(){return document.evaluate("//div[contains(@class, 'contextMenu')]//div[contains(@class, 'item') and (text()='Insert into Current Design')]",
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};b(1,function(){a.markComplete()})};neutron.dashboard.tests.prepareDataSets.XrefSets.prototype.testContext=function(a){a.getContext();a.markComplete()};
neutron.dashboard.tests.prepareDataSets.XrefSets.prototype.testCreateXrefSubAssemblies=function(a){function b(b){for(var c=new neutron.dashboard.tests.Flow(a),d=0;d<f;++d){var h=new neutron.dashboard.tests.Flow,k=function(a){return function(){return hasDesignCorrectInstances(a)}}(d+1);h.justDo(function(){var a;a=e++;a=document.evaluate("(//div[contains(@class, 'projectDetailPane')]//*[contains(@class, 'fusionFile')])["+a+"]",document.documentElement,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue;
goog.testing.events.fireContextMenuEvent(a)}).then().waitForElementAppear("Waiting for Insert into Current Design menu item",1E3,g).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)}).waitForBoolBecomeTrue("Wait for inserted component",3E4,k).then();c.waitForFlowComplete(h).then(function(){})}c.complete(b)}var c=a.getContext()||{},d=1,e=1,f=c.parts||2,c=c.assemblies||2;document.evaluate("count(//div[contains(@class, 'projectDetailPane')]//*[contains(@class, 'fusionFile')])",document.documentElement,
null,XPathResult.ANY_TYPE,null);for(var g=function(){return document.evaluate("//div[contains(@class, 'contextMenu')]//div[contains(@class, 'item') and (text()='Insert into Current Design')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue},h=new neutron.dashboard.tests.Flow(a),k=0;k<c;++k){var l=new neutron.dashboard.tests.Flow;l.justDoWithCompletionHandler(function(a){var c="SubAssembly_"+d++;neutron.dashboard.tests.actions.generals.createNewEmptyFile();neutron.dashboard.tests.actions.generals.saveDesign(c);
b(function(){runFusionTextCommand("Document.Save");a.done();neutron.dashboard.tests.actions.generals.runFusionTextCommand("NuCommands.CloseDocumentCmd")})}).then().waitForTimeout("Just to be sure everything is ready after succesfull insertion to be able to safely swicth to new document.",2E3).then();h.waitForFlowComplete(l).then()}h.complete()};
neutron.dashboard.tests.prepareDataSets.XrefSets.prototype.testCreateAssemblyWithXrefSubAssemblies=function(a){function b(a){return document.evaluate("(//div[contains(@class, 'projectDetailPane')]//*[contains(@class, 'fusionFile')])["+a+"]",document.documentElement,null,XPathResult.ANY_UNORDERED_NODE_TYPE,null).singleNodeValue}function c(){var a;a=runFusionTextCommand("DocumentMgt.List").split("\n")[0];a=a.split(":");return parseInt(a[1].trim())}function d(d){var f=new neutron.dashboard.tests.Flow(a);
(function(a){return function(){return hasDesignCorrectInstances(a)}})(l+1);var k=0,m=0,s=function(){var a=b(e);return document.evaluate('.//div[contains(@class, "spinner")]',a,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};f.justDo(function(){k=c();var a=b(e+1);goog.testing.events.fireContextMenuEvent(a)}).then().waitForElementAppear("Waiting for Open menu item",1E3,h).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)}).waitForBoolBecomeTrue("Wait for opening Design",
3E4,function(){var a=k;return c()>a}).then(function(){m=getDesignInstancesFromTextCommandResult(runFusionTextCommand("ComponentData.ListInstances")).length;var a=b(e++);goog.testing.events.fireContextMenuEvent(a)}).waitForElementAppear("Waiting for Insert selected Design menu item",1E5,g).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)}).waitForBoolBecomeTrue("Wait for inserted component",3E4,function(){var a=m;return getDesignInstancesFromTextCommandResult(runFusionTextCommand("ComponentData.ListInstances")).length>
a}).then(function(){runFusionTextCommand("Document.Save")}).waitForElementAppear("Waiting for design start to save",3E8,s).then().waitForElementDisappear("Waiting for design is saved",3E8,s).then();f.complete(d)}var e=1,f=(a.getContext()||{}).assemblies||2;document.evaluate("count(//div[contains(@class, 'projectDetailPane')]//*[contains(@class, 'fusionFile')])",document.documentElement,null,XPathResult.ANY_TYPE,null);for(var g=function(){return document.evaluate("//div[contains(@class, 'contextMenu')]//div[contains(@class, 'item') and (text()='Insert into Current Design')]",
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue},h=function(){return document.evaluate("//div[contains(@class, 'contextMenu')]//div[contains(@class, 'item') and (text()='Open')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue},k=new neutron.dashboard.tests.Flow(a),l=0;l<f;++l){var m=new neutron.dashboard.tests.Flow;m.justDoWithCompletionHandler(function(a){d(function(){a.done()})}).then().waitForTimeout("Just to be sure everything is ready after succesfull insertion to be able to safely swicth to new document.",
2E3).then();k.waitForFlowComplete(m).then()}k.complete()};
neutron.dashboard.tests.prepareDataSets.XrefSets.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testInsertXrefsIntoDesign,"testInsertXrefsIntoDesign"),this._createTestCaseTest(this.testDataPanelItemsVersusDesign,"testDataPanelItemsVersusDesign"),this._createTestCaseTest(this.testCheckDetailInfoVersusDesign,"testCheckDetailInfoVersusDesign"),this._createTestCaseTest(this.testDataPanelDuplicates,"testDataPanelDuplicates"),this._createTestCaseTest(this.testCreateXrefSubAssemblies,
"testCreateXrefSubAssemblies"),this._createTestCaseTest(this.testCreateAssemblyWithXrefSubAssemblies,"testCreateAssemblyWithXrefSubAssemblies"),this._createTestCaseTest(this.testContext,"testContext")]};neutron.dashboard.tests.TestSuite=function(){this._name=null;this._testCases=[]};neutron.dashboard.tests.TestSuite.prototype.addTestCase=function(a){this._testCases.push(a);a.setTestSuite(this)};
neutron.dashboard.tests.TestSuite.prototype.addedToEntryPoint=function(a){var b=this,c=function(){var a,b,c=!0;return{createRunSession:function(){var d=new neutron.dashboard.tests.RunSession(a,b);d.setOutputHTMLOnExceptionWhenException(c);b=a=null;c=!0;return d},setContext:function(b){a=b},setStartTime:function(a){b=a},setHtmlOutputWhenException:function(a){c=a}}}(),d=function(){var d={all:function(){var d=c.createRunSession();b._fillSessionWithTestCasesRunners(d);d.run();a.currentRunSession=d},withContext:function(a){c.setContext(a);
return d},withStartTime:function(a){c.setStartTime(a);return d},withNoHTMLOutputWhenException:function(){c.setHtmlOutputWhenException(!1);return d}};return d}();a.run=d;for(d=0;d<this._testCases.length;d++)this._testCases[d].addTestsToEntryPoint(a,c);a.configure=function(){var a=[],c=!1,d=function(b){var d=new neutron.dashboard.tests.RunSession;d.setStopAtBreakpointWhenFail(c);for(var g={},h=0;h<a.length;h++){var k=a[h],l=g[k.getTestCase().getName()];l||(l=k.getTestCase().createRunner(d),g[k.getTestCase().getName()]=
l,d.addRunner(l));l.addRunnerForTest(k)}d.run(b);return d},h={},k=function(c){for(var d={},f={},g=0;g<b._testCases.length;g++)b._testCases[g].foreachTestCaseTest(function(b,g){for(var k=g.getName()+"_"+b.getName(),l=-1,m=0;m<a.length;m++)if(a[m].getName()==b.getName()){l=m;break}-1!=l?f[k]=function(){a.splice(l,1);c()}:d[k]=function(){a.push(b);c()};h.add=d;h.remove=f})},l=function(a){c?h.disableStopAtBreakpointWhenFail=function(){c=!1;a()}:h.enableStopAtBreakpointWhenFail=function(){c=!0;a()}},m=
function(){for(var a in h)h.hasOwnProperty(a)&&delete h[a];h.executeOnce=function(){return d()};h.executeRepeatedly=function(a){var b=0,c=[],e=function(){b<a&&(c.push(d(e)),b++)};e();return c};k(m);l(m)};m();return h}};neutron.dashboard.tests.TestSuite.prototype._fillSessionWithTestCasesRunners=function(a){for(var b=0;b<this._testCases.length;b++)this._testCases[b].fillRunSessionWithMyTests(a)};neutron.dashboard.tests.TestSuite.prototype.getName=function(){return this._name};neutron.dashboard.tests.PrepareDataSetTestSuite=function(){neutron.dashboard.tests.TestSuite.call(this);this._name="PrepareDataSetTestSuite";this.addTestCase(new neutron.dashboard.tests.prepareDataSets.XrefSets)};goog.inherits(neutron.dashboard.tests.PrepareDataSetTestSuite,neutron.dashboard.tests.TestSuite);neutron.dashboard.tests.dataSetPrepare=new neutron.dashboard.tests.TestSuiteEntryPoint(new neutron.dashboard.tests.PrepareDataSetTestSuite);neutron.dashboard.tests.actions.dataView={};neutron.dashboard.tests.actions.dataView.projectDetails={};neutron.dashboard.tests.actions.dataView.projectDetails.leaveProjectDetails=function(a){a.justDo(function(){var b=document.querySelector("div.leave");!1==goog.isDefAndNotNull(b)?a.testHandler().fail("leaveProjectDetails-Project selector not found",!0):b.click()}).then().waitForBoolBecomeFalse("leaveProjectDetails-Waiting for project details disappear",1E3,function(){return!0==neutron.dashboard.tests.actions.dataView.board.isVisibleDetailOfProject(a.testHandler())}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.isActiveDataTab=function(a){var b=!0,c=document.querySelector("#projectDetailData");if(null==c)return a.fail("isActiveDataTab-Cannot find project detail data area",!0),!1;"hidden"==c.style.visibility&&(b=!1);return b};
neutron.dashboard.tests.actions.dataView.projectDetails.isActivePeopleTab=function(a){var b=!0,c=document.querySelector("#projectDetailPeople");if(null==c)return a.fail("isActivePeopleTab-Cannot find project detail people area",!0),!1;"hidden"==c.style.visibility&&(b=!1);return b};
neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab=function(a){a.justDo(function(){var b=document.querySelectorAll("#tabsCtrl div.tabButton");if(0==b.length)return a.testHandler().fail("switchToProjectDataTab-Cannot find project detail tabs buttons",!0),!1;if(1>b.length)return a.testHandler().fail("switchToProjectDataTab-Cannot data tabs button",!0),!1;b=b[0];if(!1==goog.isDefAndNotNull(b))return a.testHandler().fail("switchToProjectDataTab-Cannot data tabs button",!0),
!1;b.click()}).then().waitForBoolBecomeTrue("switchToProjectDataTab-Waiting for data tab become active",1E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.isActiveDataTab(a.testHandler())}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectPeopleTab=function(a){a.justDo(function(){var b=document.querySelectorAll("#tabsCtrl div.tabButton");if(0==b.length)return a.testHandler().fail("switchToProjectPeopleTab-Cannot find project detail tabs buttons",!0),!1;if(2>b.length)return a.testHandler().fail("switchToProjectPeopleTab-Cannot find people tabs button",!0),!1;b=b[1];if(!1==goog.isDefAndNotNull(b))return a.testHandler().fail("switchToProjectPeopleTab-Cannot find people tabs button",
!0),!1;b.click()}).then().waitForBoolBecomeTrue("switchToProjectPeopleTab-Waiting for people tab become active",1E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.isActivePeopleTab(a.testHandler())}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.updateBranchList=function(a,b){a.waitForCallback("updateBranchList : calling getBranchList",function(c){var d=b.fulfil();neutron.dashboard.invoker.getBranchList(d.id,function(b,d){!1==goog.isDefAndNotNull(d)||d===neutron.dashboard.constants.Status.ERROR||!1==goog.isDefAndNotNull(b)||0==b.length?a.testHandler().fail("updateBranchList : calling getBranchList has ERROR status"):d===neutron.dashboard.constants.Status.DONE&&(goog.isDefAndNotNull(neutron.dashboard.Application.instance._dataViewBoard._projectDetailPane._projectDetailData),
c())})},1E4).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch=function(a,b){a.justDo(function(){a.info("Switching to branch with name: "+b)}).then();a.waitForElementAppear("Wait for dropdown is shown",5E3,function(){return document.evaluate("//div[contains(@class, 'breadcrumbsBar')]//div[contains(@class, 'content')]//div[contains(@class, 'project')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then(function(a){goog.testing.events.fireClickEvent(a);return!0}).waitForElementAppear("Wait for dropdown popup is shown by seeing at popup item for creating new branch",
15E3,function(){return document.evaluate("//div[contains(@class, 'branchlist') and contains(@class, 'popup')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then();a.waitForElementAppear("Waiting for refresh button which is not animating",4E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getRefreshButtonStill()}).then().waitForElementAppear("Wait for destination item is shown",15E3,function(){return document.evaluate("//div[contains(@class, 'branchlist') and contains(@class, 'popup')]//div[contains(@class, 'branch') and text()='"+
b+"']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then(function(a){goog.testing.events.fireClickEvent(a);return!0}).waitForBoolBecomeTrue("Wait for new branch dropdown popup item is shown",2E4,function(){return-1<document.evaluate("//div[contains(@class, 'breadcrumbsBar')]//div[contains(@class, 'content')]//div[contains(@class, 'branch')]//div[contains(@class, 'label')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue.innerText.indexOf(b)}).then();
neutron.dashboard.tests.actions.dataView.projectDetails.waitForProjectContentSynchronized(a)};
neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranchIfNotIn=function(a,b){a.justDo(function(){a.info("Checking if it is necessary to switch to branch with name: "+b+" or if we are already in.")}).then();var c=neutron.dashboard.tests.actions.workflows.getLastUsedProject(a),d=neutron.dashboard.tests.actions.Branches.getList(a,c);a.alternatives(function(){var c=d.getBranchWithName(b).fulfil();if(!c)return a.fail("Cannot find branch with name: "+b+" for action switchToBranchIfNotIn"),
null;if(!0===c.selected)return a.info("Branch with name:"+b+" is already selected so no need to switch"),null;c=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(c,b);return c}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.createFolder=function(a,b){var c=function(){return document.evaluate("//div[contains(@class, 'folderNode')]//div[contains(@class, 'spinnerSmall')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};a.waitForElementAppear("createFolder-Waiting for create folder button",2E3,function(){return document.querySelector("#projectDetailData .actionButton.newFolder")}).then(function(a){a.click();return!0}).waitForElementAppear("createFolder-Waiting for input for folder name",
1E4,function(){return document.evaluate("//div[contains(@class, 'folderNode')]//input",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then(function(c){if(null==c)return a.testHandler().fail("createFolder-We can not find new folder name input"),!1;c.value=b;goog.testing.events.fireKeySequence(c,13);return!0}).waitForElementAppear("createFolder-Waiting for spinner which is sign of save in progress",6E4,function(){return c()}).then().waitForElementDisappear("createFolder-Waiting for spinner diseappear which is sign of save is done",
6E4,function(){return c()}).then().waitForElementAppear("createFolder-Waiting for created folder appear",2E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getFolder(b)}).then().waitForTimeout("createFolder-Waiting for some time to be sure that folder is downloaded from server. THIS WAIT SHOULD BE REMOVED AFTER KAMILS FIX WHICH CAUSE SPINNER TO DISAPPEAR WHEN FOLDER IS REALLY READY",1E3).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists=function(a,b){a.alternatives(function(){if(null==neutron.dashboard.tests.actions.dataView.projectDetails.getFolder(b)){var a=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.dataView.projectDetails.createFolder(a,b);return a}return null}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.openFolder=function(a,b){a.waitForElementAppear("openFolder-Waiting for '"+b+"' folder",1E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getFolder(b)}).then(function(a){neutron.dashboard.tests.actions.generals.doubleClick(a);return!0}).waitForElementDisappear("openFolder-Waiting for disappearing '"+b+"' folder",1E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getFolder(b)}).then();neutron.dashboard.tests.actions.dataView.projectDetails.waitForProjectContentSynchronized(a)};
neutron.dashboard.tests.actions.dataView.projectDetails.waitForProjectContentSynchronized=function(a){a.waitForElementAppear("waitForProjectContentSynchronized-Waiting for refresh button which is animating",3E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getRefreshButtonAnimating()},!0).then().waitForElementAppear("waitForProjectContentSynchronized-Waiting for refresh button which is not animating",4E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getRefreshButtonStill()}).then();
a.waitForElementAppear("waitForProjectContentSynchronized-Waiting for refresh button which re-starts animating",1E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getRefreshButtonAnimating()},!0).then().waitForElementAppear("waitForProjectContentSynchronized-Waiting for refresh button which is not animating (2ndtime)",4E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getRefreshButtonStill()}).then().waitForTimeout("waitForProjectContentSynchronized-Waiting for some time because when animating is done, it takes some little time to refresh pane with folders content",
500).then(function(){return!0})};neutron.dashboard.tests.actions.dataView.projectDetails.goToRootFolderIfNotIn=function(a){a.justDo(function(){var a;a=document.querySelector(".breadcrumbsBar");(a=null!=a&&"block"==a.style.display?neutron.dashboard.invoker.supportsBranching()?document.querySelector(".breadcrumbsBar .content .item.branch"):document.querySelector(".breadcrumbsBar  .content .item.project"):null)&&a.click()}).then();neutron.dashboard.tests.actions.dataView.projectDetails.waitForProjectContentSynchronized(a)};
neutron.dashboard.tests.actions.dataView.projectDetails.deleteItem=function(a,b){a.justDo(function(){var c=neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b);!1===goog.isDefAndNotNull(c)&&a.testHandler().fail("deleteDesignItem-We can not find item with id: "+b);neutron.dashboard.tests.actions.generals.rightClickWithContextMenu(c)}).then().waitForElementAppear("Wait for Context Menu on (' "+b+" ')item appear",15E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getContextMenu()}).then().waitForElementAppear("Wait for 'Delete' item of Context Menu",
1E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getContextMenuItem("Delete")}).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)}).waitForElementDisappear("Wait for design element disappear",12E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b)}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.deleteItemIfExists=function(a,b){a.alternatives(function(){if(neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b)){var a=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.dataView.projectDetails.deleteItem(a,b);return a}return null}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.renameItem=function(a,b,c){a.justDo(function(){var c=neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b);!1===goog.isDefAndNotNull(c)&&a.testHandler().fail("renameDesignItem-We can not find item with id: "+b);goog.testing.events.fireContextMenuSequence(c)}).then().waitForElementAppear("Wait for Context Menu on (' "+b+" ')item appear",15E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getContextMenu()}).then().waitForElementAppear("Wait for 'Rename' item of Context Menu",
1E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getContextMenuItem("Rename")}).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)}).waitForElementAppear("Wait for Inplace Edit",1E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getItemInplaceEdit(b)}).then(function(a){a.value=c;goog.testing.events.fireKeySequence(a,13)}).waitForElementAppear("Wait for progress spinner appear",1E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getRenameProgressSpinner(c)}).then().waitForElementDisappear("Wait for progress spinner disappear, which means that rename is done",
16E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getRenameProgressSpinner(c)}).then(function(){var b=neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(c);goog.isDefAndNotNull(b)?(b=b.getElementsByClassName("descriptionText"),goog.isDefAndNotNull(b)&&1==b.length?b[0].innerText!==c&&a.fail("renameDesignItem - Operation failed!!"):a.fail("renameDesignItem-We can not find item with new name: "+c)):a.fail("renameDesignItem-We can not find item with new name: "+
c)})};neutron.dashboard.tests.actions.dataView.projectDetails.renameItemIfNotExists=function(a,b,c){a.alternatives(function(){var a=neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(c);return!1===goog.isDefAndNotNull(a)?(a=new neutron.dashboard.tests.Flow,neutron.dashboard.tests.actions.dataView.projectDetails.renameItem(a,b,c),a):null}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.refreshFolder=function(a){a.waitForElementAppear("Waiting for refresh button to clicks on it",2E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getRefreshButtonStill()}).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)});neutron.dashboard.tests.actions.dataView.projectDetails.waitForProjectContentSynchronized(a)};
neutron.dashboard.tests.actions.dataView.projectDetails.openDesign=function(a,b,c){neutron.dashboard.tests.actions.dataView.projectDetails.clickOnContextMenuItem(a,b,"Open",c);a.waitForElementAppear("openDesign-Waiting for spinning box ("+c+")",1E4,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(b)}).then().waitForElementDisappear("openDesign-Waiting for spinning box to disappear ("+c+")",2E4,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(b)}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.insertIntoCurrentDesign=function(a,b,c,d){var e=function(){for(var a=[],b=neutron.dashboard.tests.actions.generals.runFusionTextCommand("ComponentData.ListInstances").split("\r"),c=0;c<b.length;++c){var d=b[c];(""!=d||4<d.length&&" "!=d[3])&&a.push(d.substr(0,d.length-5))}return"No instances to l"==a[0]?0:a.length},f;a.justDo(function(){f=e()}).then();neutron.dashboard.tests.actions.dataView.projectDetails.clickOnContextMenuItem(a,b,"Insert into Current Design",
d);a.waitForBoolBecomeTrue("Wait for inserted component ("+d+")",3E4,function(){return e()==f+1}).then(function(){neutron.dashboard.tests.actions.generals.runFusionTextCommand("Document.Save")}).waitForElementAppear("saveDesign-Waiting for spinning box ("+d+")",2E4,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(c)}).then().waitForElementDisappear("saveDesign-Waiting for spinning box to disappear, which means save is done",24E4,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(c)}).then()};
neutron.dashboard.tests.actions.dataView.projectDetails.clickOnContextMenuItem=function(a,b,c,d){a.justDo(function(){var c=neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b);!1===goog.isDefAndNotNull(c)?a.testHandler().fail("Design to update not found. ("+d+")"):neutron.dashboard.tests.actions.generals.rightClickWithContextMenu(c)}).then().waitForElementAppear("Wait for Context Menu on (' "+b+" ')item appear. ("+d+")",15E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getContextMenu()}).then().waitForElementAppear("Wait for '"+
c+"' item of Context Menu",1E3,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getContextMenuItem(c)}).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)})};
neutron.dashboard.tests.actions.dataView.projectDetails.updateDesign=function(a,b,c,d){!1===(d||!1)&&neutron.dashboard.tests.actions.dataView.projectDetails.openDesign(a,b,c);a.justDo(function(){a.info("Making new version of design ("+c+")");neutron.dashboard.tests.actions.generals.runFusionTextCommand("Asset.MarkDirty");neutron.dashboard.tests.actions.generals.saveDesign(b,!0)}).then().waitForElementAppear("saveDesign-Waiting for spinning box ("+c+")",2E4,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(b)}).then().waitForElementDisappear("saveDesign-Waiting for spinning box to disappear, which means save is done",
24E4,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(b)}).then()};neutron.dashboard.tests.actions.dataView.projectDetails.findFusionFileSpinner=function(a){return(a=neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(a))?document.evaluate(".//div[contains(@class, 'spinner')]",a,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue:null};
neutron.dashboard.tests.actions.dataView.projectDetails.findFusionFileWithoutSpinner=function(a){return goog.isDefAndNotNull(neutron.dashboard.tests.actions.dataView.projectDetails.findFusionFileSpinner(a))?null:neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(a)};
neutron.dashboard.tests.actions.dataView.projectDetails.getRenameProgressSpinner=function(a){return document.evaluate("//div[@id='projectDetailData']//div[contains(@class, 'datalistNode ')]//div[contains(@class,'descriptionText') and text() = '"+a+"']//div[contains(@class,'spinnerSmall')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.dataView.projectDetails.getItemInplaceEdit=function(a){return document.evaluate("//div[@id='projectDetailData']//div[contains(@class, 'datalistNode ')]//div[text()='"+a+"']//..//..//following-sibling::input[contains(@class,'inplaceedit')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.dataView.projectDetails.getContextMenuItem=function(a){return document.evaluate("//div[contains(@class, 'contextMenu')]//div[contains(@class, 'item') and text()='"+a+"']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.dataView.projectDetails.getContextMenu=function(){return document.evaluate("//div[contains(@class, 'contextMenu')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};neutron.dashboard.tests.actions.dataView.projectDetails.getFolder=function(a){return document.evaluate("//div[@id='projectDetailData']//div[contains(@class, 'folderNode')]//div[text()='"+a+"']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.dataView.projectDetails.getDesign=function(a){return document.evaluate('//div[contains(@class, "datalistNode") and .//div[text()="'+a+'"]]',document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};neutron.dashboard.tests.actions.dataView.projectDetails.getRefreshButtonStill=function(){return document.querySelector("div .actionButton.refresh")};neutron.dashboard.tests.actions.dataView.projectDetails.getRefreshButtonAnimating=function(){return document.querySelector("div .actionButton.refreshAnim")};
neutron.dashboard.tests.actions.dataView.projectDetails.getCurrentFolderId=function(){return window.neutron.dashboard.Application.instance._dataViewBoard._projectDetailPane._projectDetailData._designsPane.getCurrFolder()};neutron.dashboard.tests.actions.dataView.projectDetails.isEmptyDocImportMessageVisible=function(){return"visible"==document.querySelector("div .zeroDocMessageEllipsisMsgPopup.noSelection").style.overflow?!0:!1};
neutron.dashboard.tests.actions.dataView.projectDetails.isEmptyDocSavedMessageVisible=function(){return"visible"==document.querySelector("div .zeroDocMessageRefreshToolbar").style.overflow?!0:!1};neutron.dashboard.tests.actions.dataView.projects={};neutron.dashboard.tests.actions.dataView.projects.withProjectByName=function(a,b,c){var d=document.evaluate('//div[contains(@class, "projectName") and contains(text(),"'+b+'")]//ancestor::div[contains(@class, "projectListItem")]',document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;null==goog.isDefAndNotNull(d)?a.fail(b+" project not found"):c(d)};
neutron.dashboard.tests.actions.dataView.projects.createProject=function(a,b,c){var d=15E3;goog.isDefAndNotNull(c)&&!1===c&&(d=1);a.waitForBoolBecomeTrue("createProject-Waiting for projects list become visible",1E4,function(){return neutron.dashboard.tests.actions.dataView.board.isVisibleListOfProjects(a.testHandler())}).then(function(){document.evaluate("//div[text()='New Project']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue.click();return!0}).waitForElementAppear("createProject-Waiting for input to write project name",
2E4,function(){return document.querySelector(".projectListItem input")}).then(function(a){a.value=b;goog.testing.events.fireKeySequence(a,13);return!0}).waitForElementAppear("createProject-Wait for spinner appear",2E3,function(){return document.querySelector(".listItem .spinner")}).then().waitForElementDisappear("createProject-Wait for spinner disappear",6E4,function(){return document.querySelector(".listItem .spinner")}).then().waitForTimeout("Give the project some time to become live.",d).then().waitForElementAppear("createProject-Wait for new project box is visible or appear",
1E4,function(){return document.evaluate("//div[contains(@class, 'projectName') and text()='"+b+"']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then(function(){return null!=document.evaluate("//div[contains(@class, 'projectListItem')]//div[contains(@class, 'showByScale') and contains(@class, 'errorMessage')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue?(a.testHandler().fail("createProject-Failed on server side"),
!1):!0})};
neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists=function(a,b){a.waitForBoolBecomeTrue("createProjectIfNotExists-Waiting for projects list become visible",5E3,function(){return neutron.dashboard.tests.actions.dataView.board.isVisibleListOfProjects(a.testHandler())}).then().alternatives(function(){if(null==neutron.dashboard.tests.actions.dataView.projects.getProjectRow(b)){var a=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.dataView.projects.createProject(a,b);
return a}return null}).then()};
neutron.dashboard.tests.actions.dataView.projects.openProject=function(a,b){a.waitForElementAppear("openProject-Wait for appear row for project:"+b,15E3,function(){return neutron.dashboard.tests.actions.dataView.projects.getProjectRow(b)}).then(function(a){neutron.dashboard.tests.actions.generals.doubleClick(a);return!0}).waitForBoolBecomeTrue("openProject-Waiting for detail project pane",3E3,function(){return neutron.dashboard.tests.actions.dataView.board.isVisibleDetailOfProject(a.testHandler())},1).then();
neutron.dashboard.tests.actions.dataView.projectDetails.waitForProjectContentSynchronized(a)};neutron.dashboard.tests.actions.dataView.projects.openProjectContainsString=function(a,b){var c=neutron.dashboard.tests.actions.dataView.projects.getProjectNameBySubstring(b);neutron.dashboard.tests.actions.dataView.projects.openProject(a,c)};
neutron.dashboard.tests.actions.dataView.projects.openSearch=function(a){a.justDo(function(){var b=document.querySelector("div.searchButton");null==b?a.testHandler().fail("Search button on projects list not found"):b.click()}).then().waitForBoolBecomeTrue("openSearch-Waiting for search pane become visible",1E3,function(){return neutron.dashboard.tests.actions.dataView.board.isVisibleSearch(a.testHandler())}).then()};
neutron.dashboard.tests.actions.dataView.projects.pinProjectWithNameDoNotWaitToEnd=function(a,b){a.justDo(function(){a.info("Getting pin glyph of project with name: "+b);var c=neutron.dashboard.tests.actions.dataView.projects.getPinGlyphOfProjectWithName(b,a);!1===goog.isDefAndNotNull(c)&&a.fail("pinProjectWithNameDoNotWaitToEnd - no pinGlyph to click with.");a.info("Clicking on pin glyph of project with name: "+b);neutron.dashboard.tests.actions.generals.clickWith(c,!1,!1)}).then()};
neutron.dashboard.tests.actions.dataView.projects.unPinProjectWithNameDoNotWaitToEnd=function(a,b){a.justDo(function(){a.info("Getting unpin glyph of project with name: "+b);var c=neutron.dashboard.tests.actions.dataView.projects.getUnPinGlyphOfProjectWithName(b,a);!1===goog.isDefAndNotNull(c)&&a.fail("unPinProjectWithNameDoNotWaitToEnd - no upPinGlyph to click with.");a.info("Clicking on unpin glyph of project with name: "+b);neutron.dashboard.tests.actions.generals.clickWith(c,!1,!1)}).then()};
neutron.dashboard.tests.actions.dataView.projects.pinProjectWithName=function(a,b){neutron.dashboard.tests.actions.dataView.projects.pinProjectWithNameDoNotWaitToEnd(a,b);a.waitForElementAppear("pinProjectWithName ("+b+") - Waiting pin will be finnished and unpin glyph will appear",1E4,function(){return neutron.dashboard.tests.actions.dataView.projects.getUnPinGlyphOfProjectWithName(b)}).then()};
neutron.dashboard.tests.actions.dataView.projects.unPinProjectWithName=function(a,b){neutron.dashboard.tests.actions.dataView.projects.unPinProjectWithNameDoNotWaitToEnd(a,b);a.waitForElementAppear("unPinProjectWithName ("+b+") - Waiting unpin will be finnished and unpin glyph will disappear",1E4,function(){return neutron.dashboard.tests.actions.dataView.projects.getPinGlyphOfProjectWithName(b)}).then()};
neutron.dashboard.tests.actions.dataView.projects.isProjectWithNamePinned=function(a){return null!=neutron.dashboard.tests.actions.dataView.projects.getUnPinGlyphOfProjectWithName(a)};neutron.dashboard.tests.actions.dataView.projects.getProjectRowBySubstring=function(a){return neutron.dashboard.tests.actions.generals.xpathSingleNode('//div[contains(@class, "projectName") and contains(text(),"'+a+'")]//ancestor::div[contains(@class, "projectListItem")]')};
neutron.dashboard.tests.actions.dataView.projects.getProjectRow=function(a,b){return neutron.dashboard.tests.actions.generals.xpathSingleNode('//div[contains(@class, "projectName") and text()="'+a+'"]//ancestor::div[contains(@class, "projectListItem")]',b)};
neutron.dashboard.tests.actions.dataView.projects.getPinGlyphOfProjectWithName=function(a,b){var c=neutron.dashboard.tests.actions.dataView.projects.getProjectRow(a,b);return neutron.dashboard.tests.actions.generals.xpathSingleNode('.//div[contains(@class, "itemGlyph") and contains(@class, "pin")]',b,c)};
neutron.dashboard.tests.actions.dataView.projects.getUnPinGlyphOfProjectWithName=function(a,b){var c=neutron.dashboard.tests.actions.dataView.projects.getProjectRow(a,b);return neutron.dashboard.tests.actions.generals.xpathSingleNode('.//div[contains(@class, "itemGlyph") and not(contains(@class, "pin"))]',b,c)};
neutron.dashboard.tests.actions.dataView.projects.getProjectNameBySubstring=function(a){a=neutron.dashboard.tests.actions.dataView.projects.getProjectRowBySubstring(a);return document.evaluate('.//div[contains(@class, "projectName")]//text()',a,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue.textContent};
neutron.dashboard.tests.actions.dataView.projects.getAllProjectsSortedByPosition=function(){for(var a=[],b=document.evaluate("//div[contains(@class, 'projectsPane')]//div[contains(@class, 'listContainer')]//div[contains(@class, 'listItem useAnimation')]",document.documentElement,null,XPathResult.ANY_TYPE,null),c=b.iterateNext();c;)a.push(c),c=b.iterateNext();goog.array.sort(a,function(a,b){var c=parseInt(a.style.top),g=parseInt(b.style.top);return c<g?-1:c===g?0:1});return a};
neutron.dashboard.tests.actions.dataView.projects.getNameOfProjectFromProjectRow=function(a){a=goog.dom.getElementByClass("projectName",a);return!0===goog.isDefAndNotNull(a)?a.innerText:""};neutron.dashboard.tests.consoleFlowHandlerFactory={createHandler:function(){var a=!1,b="rgb("+(Math.floor(57*Math.random())+200)+","+(Math.floor(57*Math.random())+200)+","+(Math.floor(57*Math.random())+200)+")";return{markComplete:function(){},fail:function(c){a=!0;console.log("%cFail: "+c,"background:"+b)},info:function(a){console.log("%c"+a,"background:"+b)},infoWithTimeStamp:function(a){console.log("%c"+a,"background:"+b)},hasFailed:function(){return a}}}};
neutron.dashboard.tests.consoleFlowFactory={createFlow:function(){var a=neutron.dashboard.tests.consoleFlowHandlerFactory.createHandler();return new neutron.dashboard.tests.Flow(a)}};neutron.dashboard.tests.InviteFromOtherAccountTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="InviteFromOtherAccountTestCase"};goog.inherits(neutron.dashboard.tests.InviteFromOtherAccountTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.InviteFromOtherAccountTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,"TEST_LEAVE_PROJECT");neutron.dashboard.tests.actions.dataView.projects.openProject(a,"TEST_LEAVE_PROJECT");a.complete()};
neutron.dashboard.tests.InviteFromOtherAccountTestCase.prototype.testInvite=function(a){(new neutron.dashboard.tests.WaitForElement(function(){return document.evaluate('//span[text()="People"]',document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue})).appeared(function(b){b.click();(new neutron.dashboard.tests.WaitForElement(function(){return document.evaluate("//input[@placeholder='Enter email addresses']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,
null).singleNodeValue})).appeared(function(b){var d=a.getContext()[0].toLowerCase();b.value=d;b=document.evaluate("//div[contains(@class, 'invitebtn')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;!1==goog.isDefAndNotNull(b)&&a.fail("Input button is missing",!0);b.click();(new neutron.dashboard.tests.WaitForElement(function(){return-1!=document.body.innerText.indexOf(d)?!0:null})).appeared(function(){var b=document.evaluate('//div[contains(@class, "primaryEmail") and text()="'+
d+'"]//ancestor::div[contains(@class, "peopleListItem")]//span[contains(@class, "glyphText") and text()="Remove"]',document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;!1==goog.isDefAndNotNull(b)?a.fail("No new invitation appeared",!0):a.markComplete()},function(){a.fail("No new invitation appeared",!0)},3E4)},function(){a.fail("Input e-mail address filed is missing",!0)},1E3)},function(){a.fail("Project items did not appear",!0)},1E3)};
neutron.dashboard.tests.InviteFromOtherAccountTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testInvite,"testInvite")]};neutron.dashboard.tests.InviteFromOtherAccountTestSuite=function(){neutron.dashboard.tests.TestSuite.call(this);this._name="InviteFromOtherAccountTestSuite";this.addTestCase(new neutron.dashboard.tests.InviteFromOtherAccountTestCase)};goog.inherits(neutron.dashboard.tests.InviteFromOtherAccountTestSuite,neutron.dashboard.tests.TestSuite);
neutron.dashboard.tests.inviteFromOtherAccountEntryPoint=new neutron.dashboard.tests.TestSuiteEntryPoint(new neutron.dashboard.tests.InviteFromOtherAccountTestSuite);goog.json={};goog.json.USE_NATIVE_JSON=!1;goog.json.isValid_=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};
goog.json.parse=goog.json.USE_NATIVE_JSON?goog.global.JSON.parse:function(a){a=String(a);if(goog.json.isValid_(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};goog.json.unsafeParse=goog.json.USE_NATIVE_JSON?goog.global.JSON.parse:function(a){return eval("("+a+")")};goog.json.serialize=goog.json.USE_NATIVE_JSON?goog.global.JSON.stringify:function(a,b){return(new goog.json.Serializer(b)).serialize(a)};goog.json.Serializer=function(a){this.replacer_=a};
goog.json.Serializer.prototype.serialize=function(a){var b=[];this.serializeInternal(a,b);return b.join("")};
goog.json.Serializer.prototype.serializeInternal=function(a,b){switch(typeof a){case "string":this.serializeString_(a,b);break;case "number":this.serializeNumber_(a,b);break;case "boolean":b.push(a);break;case "undefined":b.push("null");break;case "object":if(null==a){b.push("null");break}if(goog.isArray(a)){this.serializeArray(a,b);break}this.serializeObject_(a,b);break;case "function":break;default:throw Error("Unknown type: "+typeof a);}};
goog.json.Serializer.charToJsonCharCache_={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"};goog.json.Serializer.charsToReplace_=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
goog.json.Serializer.prototype.serializeString_=function(a,b){b.push('"',a.replace(goog.json.Serializer.charsToReplace_,function(a){if(a in goog.json.Serializer.charToJsonCharCache_)return goog.json.Serializer.charToJsonCharCache_[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return goog.json.Serializer.charToJsonCharCache_[a]=e+b.toString(16)}),'"')};goog.json.Serializer.prototype.serializeNumber_=function(a,b){b.push(isFinite(a)&&!isNaN(a)?a:"null")};
goog.json.Serializer.prototype.serializeArray=function(a,b){var c=a.length;b.push("[");for(var d="",e=0;e<c;e++)b.push(d),d=a[e],this.serializeInternal(this.replacer_?this.replacer_.call(a,String(e),d):d,b),d=",";b.push("]")};
goog.json.Serializer.prototype.serializeObject_=function(a,b){b.push("{");var c="",d;for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];"function"!=typeof e&&(b.push(c),this.serializeString_(d,b),b.push(":"),this.serializeInternal(this.replacer_?this.replacer_.call(a,d,e):e,b),c=",")}b.push("}")};goog.storage={};goog.storage.ErrorCode={INVALID_VALUE:"Storage: Invalid value was encountered",DECRYPTION_ERROR:"Storage: The value could not be decrypted"};goog.storage.Storage=function(a){this.mechanism=a};goog.storage.Storage.prototype.set=function(a,b){goog.isDef(b)?this.mechanism.set(a,goog.json.serialize(b)):this.mechanism.remove(a)};goog.storage.Storage.prototype.get=function(a){var b;try{b=this.mechanism.get(a)}catch(c){return}if(!goog.isNull(b))try{return goog.json.parse(b)}catch(d){throw goog.storage.ErrorCode.INVALID_VALUE;}};goog.storage.Storage.prototype.remove=function(a){this.mechanism.remove(a)};goog.iter={};goog.iter.StopIteration="StopIteration"in goog.global?goog.global.StopIteration:Error("StopIteration");goog.iter.Iterator=function(){};goog.iter.Iterator.prototype.next=function(){throw goog.iter.StopIteration;};goog.iter.Iterator.prototype.__iterator__=function(a){return this};
goog.iter.toIterator=function(a){if(a instanceof goog.iter.Iterator)return a;if("function"==typeof a.__iterator__)return a.__iterator__(!1);if(goog.isArrayLike(a)){var b=0,c=new goog.iter.Iterator;c.next=function(){for(;;){if(b>=a.length)throw goog.iter.StopIteration;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");};
goog.iter.forEach=function(a,b,c){if(goog.isArrayLike(a))try{goog.array.forEach(a,b,c)}catch(d){if(d!==goog.iter.StopIteration)throw d;}else{a=goog.iter.toIterator(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==goog.iter.StopIteration)throw e;}}};goog.iter.filter=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;a.next=function(){for(;;){var a=d.next();if(b.call(c,a,void 0,d))return a}};return a};
goog.iter.filterFalse=function(a,b,c){return goog.iter.filter(a,goog.functions.not(b),c)};goog.iter.range=function(a,b,c){var d=0,e=a,f=c||1;1<arguments.length&&(d=a,e=b);if(0==f)throw Error("Range step argument must not be zero");var g=new goog.iter.Iterator;g.next=function(){if(0<f&&d>=e||0>f&&d<=e)throw goog.iter.StopIteration;var a=d;d+=f;return a};return g};goog.iter.join=function(a,b){return goog.iter.toArray(a).join(b)};
goog.iter.map=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;a.next=function(){var a=d.next();return b.call(c,a,void 0,d)};return a};goog.iter.reduce=function(a,b,c,d){var e=c;goog.iter.forEach(a,function(a){e=b.call(d,e,a)});return e};goog.iter.some=function(a,b,c){a=goog.iter.toIterator(a);try{for(;;)if(b.call(c,a.next(),void 0,a))return!0}catch(d){if(d!==goog.iter.StopIteration)throw d;}return!1};
goog.iter.every=function(a,b,c){a=goog.iter.toIterator(a);try{for(;;)if(!b.call(c,a.next(),void 0,a))return!1}catch(d){if(d!==goog.iter.StopIteration)throw d;}return!0};goog.iter.chain=function(a){var b=goog.iter.toIterator(arguments),c=new goog.iter.Iterator,d=null;c.next=function(){for(;;){if(null==d){var a=b.next();d=goog.iter.toIterator(a)}try{return d.next()}catch(c){if(c!==goog.iter.StopIteration)throw c;d=null}}};return c};
goog.iter.chainFromIterable=function(a){return goog.iter.chain.apply(void 0,a)};goog.iter.dropWhile=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;var e=!0;a.next=function(){for(;;){var a=d.next();if(!e||!b.call(c,a,void 0,d))return e=!1,a}};return a};goog.iter.takeWhile=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;var e=!0;a.next=function(){for(;;)if(e){var a=d.next();if(b.call(c,a,void 0,d))return a;e=!1}else throw goog.iter.StopIteration;};return a};
goog.iter.toArray=function(a){if(goog.isArrayLike(a))return goog.array.toArray(a);a=goog.iter.toIterator(a);var b=[];goog.iter.forEach(a,function(a){b.push(a)});return b};goog.iter.equals=function(a,b){var c=goog.iter.zipLongest({},a,b);return goog.iter.every(c,function(a){return a[0]==a[1]})};goog.iter.nextOrValue=function(a,b){try{return goog.iter.toIterator(a).next()}catch(c){if(c!=goog.iter.StopIteration)throw c;return b}};
goog.iter.product=function(a){if(goog.array.some(arguments,function(a){return!a.length})||!arguments.length)return new goog.iter.Iterator;var b=new goog.iter.Iterator,c=arguments,d=goog.array.repeat(0,c.length);b.next=function(){if(d){for(var a=goog.array.map(d,function(a,b){return c[b][a]}),b=d.length-1;0<=b;b--){goog.asserts.assert(d);if(d[b]<c[b].length-1){d[b]++;break}if(0==b){d=null;break}d[b]=0}return a}throw goog.iter.StopIteration;};return b};
goog.iter.cycle=function(a){var b=goog.iter.toIterator(a),c=[],d=0;a=new goog.iter.Iterator;var e=!1;a.next=function(){var a=null;if(!e)try{return a=b.next(),c.push(a),a}catch(g){if(g!=goog.iter.StopIteration||goog.array.isEmpty(c))throw g;e=!0}a=c[d];d=(d+1)%c.length;return a};return a};goog.iter.count=function(a,b){var c=a||0,d=goog.isDef(b)?b:1,e=new goog.iter.Iterator;e.next=function(){var a=c;c+=d;return a};return e};
goog.iter.repeat=function(a){var b=new goog.iter.Iterator;b.next=goog.functions.constant(a);return b};goog.iter.accumulate=function(a){var b=goog.iter.toIterator(a),c=0;a=new goog.iter.Iterator;a.next=function(){return c+=b.next()};return a};goog.iter.zip=function(a){var b=arguments,c=new goog.iter.Iterator;if(0<b.length){var d=goog.array.map(b,goog.iter.toIterator);c.next=function(){return goog.array.map(d,function(a){return a.next()})}}return c};
goog.iter.zipLongest=function(a,b){var c=goog.array.slice(arguments,1),d=new goog.iter.Iterator;if(0<c.length){var e=goog.array.map(c,goog.iter.toIterator);d.next=function(){var b=!1,c=goog.array.map(e,function(c){var d;try{d=c.next(),b=!0}catch(e){if(e!==goog.iter.StopIteration)throw e;d=a}return d});if(!b)throw goog.iter.StopIteration;return c}}return d};goog.iter.compress=function(a,b){var c=goog.iter.toIterator(b);return goog.iter.filter(a,function(){return!!c.next()})};
goog.iter.GroupByIterator_=function(a,b){this.iterator=goog.iter.toIterator(a);this.keyFunc=b||goog.functions.identity};goog.inherits(goog.iter.GroupByIterator_,goog.iter.Iterator);goog.iter.GroupByIterator_.prototype.next=function(){for(;this.currentKey==this.targetKey;)this.currentValue=this.iterator.next(),this.currentKey=this.keyFunc(this.currentValue);this.targetKey=this.currentKey;return[this.currentKey,this.groupItems_(this.targetKey)]};
goog.iter.GroupByIterator_.prototype.groupItems_=function(a){for(var b=[];this.currentKey==a;){b.push(this.currentValue);try{this.currentValue=this.iterator.next()}catch(c){if(c!==goog.iter.StopIteration)throw c;break}this.currentKey=this.keyFunc(this.currentValue)}return b};goog.iter.groupBy=function(a,b){return new goog.iter.GroupByIterator_(a,b)};
goog.iter.starMap=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;a.next=function(){var a=goog.iter.toArray(d.next());return b.apply(c,goog.array.concat(a,void 0,d))};return a};
goog.iter.tee=function(a,b){var c=goog.iter.toIterator(a),d=goog.isNumber(b)?b:2,e=goog.array.map(goog.array.range(d),function(){return[]}),f=function(){var a=c.next();goog.array.forEach(e,function(b){b.push(a)})};return goog.array.map(e,function(a){var b=new goog.iter.Iterator;b.next=function(){goog.array.isEmpty(a)&&f();goog.asserts.assert(!goog.array.isEmpty(a));return a.shift()};return b})};goog.iter.enumerate=function(a,b){return goog.iter.zip(goog.iter.count(b),a)};
goog.iter.limit=function(a,b){goog.asserts.assert(goog.math.isInt(b)&&0<=b);var c=goog.iter.toIterator(a),d=new goog.iter.Iterator,e=b;d.next=function(){if(0<e--)return c.next();throw goog.iter.StopIteration;};return d};goog.iter.consume=function(a,b){goog.asserts.assert(goog.math.isInt(b)&&0<=b);for(var c=goog.iter.toIterator(a);0<b--;)goog.iter.nextOrValue(c,null);return c};
goog.iter.slice=function(a,b,c){goog.asserts.assert(goog.math.isInt(b)&&0<=b);a=goog.iter.consume(a,b);goog.isNumber(c)&&(goog.asserts.assert(goog.math.isInt(c)&&c>=b),a=goog.iter.limit(a,c-b));return a};goog.iter.hasDuplicates_=function(a){var b=[];goog.array.removeDuplicates(a,b);return a.length!=b.length};goog.iter.permutations=function(a,b){var c=goog.iter.toArray(a),d=goog.isNumber(b)?b:c.length,c=goog.array.repeat(c,d),c=goog.iter.product.apply(void 0,c);return goog.iter.filter(c,function(a){return!goog.iter.hasDuplicates_(a)})};
goog.iter.combinations=function(a,b){function c(a){return d[a]}var d=goog.iter.toArray(a),e=goog.iter.range(d.length),e=goog.iter.permutations(e,b),f=goog.iter.filter(e,function(a){return goog.array.isSorted(a)}),e=new goog.iter.Iterator;e.next=function(){return goog.array.map(f.next(),c)};return e};
goog.iter.combinationsWithReplacement=function(a,b){function c(a){return d[a]}var d=goog.iter.toArray(a),e=goog.array.range(d.length),e=goog.array.repeat(e,b),e=goog.iter.product.apply(void 0,e),f=goog.iter.filter(e,function(a){return goog.array.isSorted(a)}),e=new goog.iter.Iterator;e.next=function(){return goog.array.map(f.next(),c)};return e};goog.storage.mechanism={};goog.storage.mechanism.Mechanism=function(){};goog.storage.mechanism.IterableMechanism=function(){goog.storage.mechanism.IterableMechanism.base(this,"constructor")};goog.inherits(goog.storage.mechanism.IterableMechanism,goog.storage.mechanism.Mechanism);goog.storage.mechanism.IterableMechanism.prototype.getCount=function(){var a=0;goog.iter.forEach(this.__iterator__(!0),function(b){goog.asserts.assertString(b);a++});return a};
goog.storage.mechanism.IterableMechanism.prototype.clear=function(){var a=goog.iter.toArray(this.__iterator__(!0)),b=this;goog.array.forEach(a,function(a){b.remove(a)})};goog.storage.mechanism.ErrorCode={INVALID_VALUE:"Storage mechanism: Invalid value was encountered",QUOTA_EXCEEDED:"Storage mechanism: Quota exceeded",STORAGE_DISABLED:"Storage mechanism: Storage disabled"};goog.storage.mechanism.HTML5WebStorage=function(a){goog.storage.mechanism.HTML5WebStorage.base(this,"constructor");this.storage_=a};goog.inherits(goog.storage.mechanism.HTML5WebStorage,goog.storage.mechanism.IterableMechanism);goog.storage.mechanism.HTML5WebStorage.STORAGE_AVAILABLE_KEY_="__sak";
goog.storage.mechanism.HTML5WebStorage.prototype.isAvailable=function(){if(!this.storage_)return!1;try{return this.storage_.setItem(goog.storage.mechanism.HTML5WebStorage.STORAGE_AVAILABLE_KEY_,"1"),this.storage_.removeItem(goog.storage.mechanism.HTML5WebStorage.STORAGE_AVAILABLE_KEY_),!0}catch(a){return!1}};
goog.storage.mechanism.HTML5WebStorage.prototype.set=function(a,b){try{this.storage_.setItem(a,b)}catch(c){if(0==this.storage_.length)throw goog.storage.mechanism.ErrorCode.STORAGE_DISABLED;throw goog.storage.mechanism.ErrorCode.QUOTA_EXCEEDED;}};goog.storage.mechanism.HTML5WebStorage.prototype.get=function(a){a=this.storage_.getItem(a);if(!goog.isString(a)&&!goog.isNull(a))throw goog.storage.mechanism.ErrorCode.INVALID_VALUE;return a};goog.storage.mechanism.HTML5WebStorage.prototype.remove=function(a){this.storage_.removeItem(a)};
goog.storage.mechanism.HTML5WebStorage.prototype.getCount=function(){return this.storage_.length};goog.storage.mechanism.HTML5WebStorage.prototype.__iterator__=function(a){var b=0,c=this.storage_,d=new goog.iter.Iterator;d.next=function(){if(b>=c.length)throw goog.iter.StopIteration;var d=goog.asserts.assertString(c.key(b++));if(a)return d;d=c.getItem(d);if(!goog.isString(d))throw goog.storage.mechanism.ErrorCode.INVALID_VALUE;return d};return d};
goog.storage.mechanism.HTML5WebStorage.prototype.clear=function(){this.storage_.clear()};goog.storage.mechanism.HTML5WebStorage.prototype.key=function(a){return this.storage_.key(a)};goog.storage.mechanism.HTML5LocalStorage=function(){var a=null;try{a=window.localStorage||null}catch(b){}goog.storage.mechanism.HTML5LocalStorage.base(this,"constructor",a)};goog.inherits(goog.storage.mechanism.HTML5LocalStorage,goog.storage.mechanism.HTML5WebStorage);neutron.dashboard.events={};
neutron.dashboard.events.EventType={REMOVE:"neutron.dashboard.events.remove",CHANGE:"neutron.dashboard.events.change",WAIT_CURSOR:"neutron.dashboard.events.waitcursor",UPDATE:"neutron.dashboard.events.update",NEED_UPDATE:"neutron.dashboard.events.needupdate",FINISHED:"neutron.dashboard.events.finished",VIEW_CHANGE:"neutron.dashboard.events.viewchange",SERVER_DATA_UPDATED:"neutron.dashboard.events.serverdataupdated",SORT_CHANGE:"neutron.dashboard.events.sortchange",GROUPBY_CHANGE:"neutron.dashboard.events.groupby",HIDE:"neutron.dashboard.events.hide",
NEUTRON_EVENT:"neutron.dashboard.events.neutronevent",THUMBNAIL_DOWNLOADED:"neutron.dashboard.events.thumbnaildownloaded",PROGRESS_CHANGE:"neutron.dashboard.events.progresschange",PATH_CHANGE:"neutron.dashboard.events.pathchange",LEAVE_PROJECT:"neutron.dashboard.events.leaveproject",COMMENT_ADDED:"neutron.dashboard.events.commentadded",COMMENT_POSTED:"neutron.dashboard.events.commentposted",INPUT_ERROR:"neutron.dashboard.events.inputerror",INPUT_CHANGE:"neutron.dashboard.events.inputchange",ITEM_SELECTED:"neutron.dashboard.events.itemselected",
COMMAND_SELECTED:"neutron.dashboard.events.commandselected",DATA_DOWNLOADED:"neutron.dashboard.events.datadownloaded",INITIAL_DATA:"neutron.dashboard.events.initialdata",ERROR_MESSAGE_BAR_CHANGE:"neutron.dashboard.events.errormessagebarchange",UPDATE_AFTER_RENAME:"neutron.dashboard.events.UpdateAfterRename",GO_TO_PANE:"neutron.dashboard.events.GoToPane",BREADCRUMBBAR_CHANGE:"neutron.dashboard.events.breadcrumbbarchange",ERROR_MESSAGE_CHANGE:"neutron.dashboard.events.errormessagechange",CREATE_CONTEXT_MENU:"neutron.dashboard.events.createcontextmenu",
CONTEXT_MENU_WILL_APPEAR:"neutron.dashboard.events.contextmenuwillappear",CONTEXT_MENU_ITEM_SELECTED:"neutron.dashboard.events.contextmenuitemselected",TAB_PANE_ACTIVATED:"neutron.dashboard.events.tabpaneactivated",GROUP_ACTION_SELECTED:"neutron.dashboard.events.groupactionselected",START_ACTION:"neutron.dashboard.events.StartAction",AGGREGATOR_EVENT:"neutron.dashboard.events.aggregatorevent",PROJECT_CHANGE:"neutron.dashboard.events.projectchange",INVITATION_DONE:"neutron.dashboard.events.invitationdone",
ERROR_MESSAGE:"neutron.dashboard.events.errormessage",CLOSE:"neutron.dashboard.events.close",CREATE_UPLOAD_ITEM:"neutron.dashboard.events.CreateUploadItem",DESTROY_UPLOAD_ITEM:"neutron.dashboard.events.DestroyUploadItem",REFRESH:"neutron.dashboard.events.Refresh",BRANCH_CHANGE:"neutron.dashboard.events.BranchChange",PROJECTS_FAILED:"neutron.dashboard.events.projectsfailed",STATUS_MESSAGE_CHANGE:"neutron.dashboard.events.statusmessagechange",FOLDER_ACCESS_DENIED:"neutron.dashboard.events.FolderAccessDenied",
NEW_PROJECT:"neutron.dashboard.events.NewProject",CHANGE_HEIGHT:"neutron.dashboard.events.changeheight",FOLDER_REFRESHED:"neutron.dashboard.events.folderrefreshed"};neutron.dashboard.events.AggregatorEvent=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.AGGREGATOR_EVENT;this.command=a;this.response=b};goog.inherits(neutron.dashboard.events.AggregatorEvent,goog.events.Event);neutron.dashboard.memory={};neutron.dashboard.memory.storage={};neutron.dashboard.storage=function(){this._storageCache={}};neutron.dashboard.storage.prototype._setStorageData=function(a,b,c){c=JSON.parse(JSON.stringify(c));var d=this._storageCache[a];null!=d?d[b]=c:(d={},d[b]=c,this._storageCache[a]=d)};
neutron.dashboard.storage.prototype.set=function(a,b,c){this._setStorageData(a,b,c);a={action:1,group:a,key:b,value:JSON.stringify(c)};window.neutronJavaScriptObject.executeQuery("browserStorage",JSON.stringify(a))};
neutron.dashboard.storage.prototype.get=function(a,b){if(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(b)||""==a||""==b)return"";var c=this._storageCache[a];if(null!=c&&(c=c[b],null!=c))return JSON.parse(JSON.stringify(c));c=window.neutronJavaScriptObject.executeQuery("browserStorage",JSON.stringify({action:0,group:a,key:b}));if(null==c)return c;try{var d=c.length?goog.json.parse(c):null;this._setStorageData(a,b,d);return d}catch(e){return null}};
neutron.dashboard.storage.prototype.getGroup=function(a){return this._storageCache[a]};neutron.dashboard.storage.prototype.removeItem=function(a,b){if(!1!=goog.isDefAndNotNull(a)){var c=this._storageCache[a];null!=c&&goog.object.remove(c,b);window.neutronJavaScriptObject.executeQuery("browserStorage",JSON.stringify({action:3,group:a,key:b}))}};neutron.dashboard.storage.prototype.flushItem=function(a,b){var c=this._storageCache[a];null!=c&&goog.object.remove(c,b)};
neutron.dashboard.storage.prototype.removeGroup=function(a){goog.object.remove(this._storageCache,a);window.neutronJavaScriptObject.executeQuery("browserStorage",JSON.stringify({action:4,group:a,key:""}))};neutron.dashboard.storage.prototype.clearAll=function(a){this._storageCache={};window.neutronJavaScriptObject.executeQuery("browserStorage",JSON.stringify({action:2,group:"",key:""}))};neutron.dashboard.constants={};neutron.dashboard.constants.ViewType={TILE_VIEW:"neutron.dashboard.constants.ViewType.tileview",LIST_VIEW:"neutron.dashboard.constants.ViewType.listview",FOLDERS_VIEW:"neutron.dashboard.constants.ViewType.folderview",FLAT_VIEW:"neutron.dashboard.constants.ViewType.flatview"};neutron.dashboard.constants.SortType={RECENT_SORT:"neutron.dashboard.constants.SortType.recentsort",NAME_SORT:"neutron.dashboard.constants.SortType.namesort"};
neutron.dashboard.constants.ApplicationSize={COLLAPSED:"neutron.dashboard.constants.ApplicationSize.collapsed",EXPANDED:"neutron.dashboard.constants.ApplicationSize.expanded",FULLY_EXPANDED:"neutron.dashboard.constants.ApplicationSize.fullyexpanded"};
neutron.dashboard.constants.ServerRqDataType={FQAMYHUB:"neutron.dashboard.constants.ServerRqDataType.fqamyhub",THUMBNAIL:"neutron.dashboard.constants.ServerRqDataType.thumbnail",QTTHUMBNAIL:"neutron.dashboard.constants.ServerRqDataType.qtthumbnail",ACTIVITIES:"neutron.dashboard.constants.ServerRqDataType.fqamyhub",STRINGDATA:"neutron.dashboard.constants.ServerRqDataType.stringdata"};
neutron.dashboard.constants.OptionType={VIEWTYPE:"fileViewType",SORTTYPE:"fileSortType",GROUPBY:"fileGroupBy",CACHE_VIEW:"fileCacheView",VIEW_SORT_TOOLBAR_VISIBILITY:"VS_TOOLBAR_VISIBLE",LAST_USED_PROJECT:"LastUsedProject",MANAGE_VIEW_TYPE:"manageViewType",MANAGE_SORT_TYPE:"manageSortType"};neutron.dashboard.constants.OptionKeys={VIEW:"viewType",SORT:"sortType"};neutron.dashboard.constants.PaneName={PROJECTS:"projectsPane",PROJECT_DETAIL:"projectDetailPane",SEARCH:"searchPane"};
neutron.dashboard.constants.EmptyPNG="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=";
neutron.dashboard.constants.BrowserAPIConstants={GET_PROJECTS_URL:"get_groups_url",UPDATE_PROJECT:"update_project",LEAVE_PROJECT:"leave_project",DEACTIVATE_PROJECT:"deactivate_project",PIN_PROJECT:"pin_project",GET_PROJECTS_LIST:"get_projects_list",DASHBOARD_OPTIONS:"dashboard_options",LAST_USED_PROJECT:"last_used_project",PROJECT_BY_ID:"get_project_by_id",CREATE_PROJECT:"create_project",CREATE_FOLDER:"create_folder",GET_USER_LIST:"get_user_list",INVITE_PEOPLE:"invite_people",GET_FOLDER_CONTENT:"get_folder_content",
GET_FOLDER_INFO:"get_folder_info",PROJECT_CREATED:"project_created",ALLOWED_ACTIONS:"allowedActions",REFRESH_ITEM:"refresh_item",FOLDER_UPDATE:"folder_update",FOLDER_CREATED:"folder_created",FILE_UPDATE:"file_update",GET_BRANCH_LIST:"get_branch_list",DELETE_ITEMS:"deleteItems",MOVE_ITEMS:"moveItems",COPY_ITEMS:"copyItems",ACTIVE_BRANCH_FOR_PROJECT:"current_branch",RECOVER_BRANCHES_TO_FOLDER:"move_branches",GET_DIFF_ON_BRANCHES:"get_diff_branches",GET_DIFF_ON_TIME_LABELS:"get_diff_labels",RENAME_ITEM:"renameItem",
PROMOTE_VERSION:"promote_version",CREATE_NEW_BRANCH_IN_PROJECT:"create_branch",RENAME_BRANCH:"rename_branch",GET_THUMBNAILS:"getThumbnails",GET_CONTENTDATA:"getContentData",GET_FOLDER_THUMBNAIL:"getFolderThumbnail",GET_QONTEXT_THUMBNAIL:"getQontextThumbnail",THUMBNAIL:"thumbnail",GET_FILE_VERSIONS:"get_versions_for_files",GET_ITEM_DETAILS:"getItemDetails",GET_ITEM_BASICS:"getItemBasics",GET_DATA_FOR_PREVIEW:"getDataForPreview",NEW_BRANCH_CREATED:"new_branch_created",BRANCH_MERGED_SUCCESSFULLY:"branch_merged_succesfully",
BRANCHING_DIALOG_FINISHED:"branching_dialog_finished",MERGE_BRANCHES:"merge_branches",REMOVE_BRANCH_DIFF:"remove_branch_diff",REMOVE_BRANCH_DIFFS:"remove_branch_diffs",GET_USER_PROFILE:"get_user_profile_data",GET_OFFLINE_FILES:"get_offline_files",GET_PROJECT_HISTORY:"get_project_history",GET_MANAGE_DLG_INITIAL_DATA:"get_manage_initial_data",CREATE_MILESTONE:"create_milestone",CREATE_TEAMHUB:"create_teamhub",NEW_MILESTONE_CREATED:"new_milestone_created",GET_MILESTONE_CHANGES:"get_milestone_changes",
REMOVE_USER_FROM_PROJECT:"remove_user_from_project",REJECT_USER_FROM_PROJECT:"reject_user_from_project",APPROVE_USER_TO_PROJECT:"approve_user_to_project",SEARCH:"search",GET_RECENT_ITEMS:"get_recent_items",CLEAR_SEARCH_RESULTS:"clear_search_cache",GET_MERGEABLE_BRANCHES:"get_mergeable_branches",GET_BRANCH_LIST_WITH_ROOT_FOLDERS:"get_branch_list_with_root_folders",SUPPORTS_BRANCHING:"supports_branching",GET_FOLDERS:"get_folders",SHOW_STATUS:"error_status_show",CACHE_ITEMS:"cacheItems",GET_CACHE_CONTENTS:"getCacheContents",
GET_RECOVERY_STATUS:"getRecoveryStatus",RELEASE_VERSION:"releaseVersion",SHOW_INACCESSIBLE_FILES_PUNCHOUT:"showInaccessibleFilesPunchout"};neutron.dashboard.constants.Status={PROGRESS:"progress",DONE:"done",ERROR:"error",WORKFLOW_KEY_REASON_ERROR:"error_reason"};neutron.dashboard.constants.ViewTypeId={LIST:0,TILE:1};neutron.dashboard.constants.SortTypeId={RECENT_SORT:1,NAME_SORT:2};
neutron.dashboard.constants.BranchManageCommands={CREATE_NEW_BRANCH:-1,CREATE_MILESTONE:-2,MERGE_PULL:-3,MERGE_PUSH:-4,MANAGE:-5,SEPARATOR:-999};neutron.dashboard.constants.CreateBranchStartType={DATA_PANEL:"neutron.dashboard.constants.CreateBranchStartType.dataPanel",PROJECT_HISTORY_TIP:"neutron.dashboard.constants.CreateBranchStartType.projectHistoryTip",PROJECT_HISTORY_LEGACY:"neutron.dashboard.constants.CreateBranchStartType.projectHistoryLegacy"};
neutron.dashboard.constants.RecoveryStatus={NOT_STARTED:"NOT_STARTED",IN_PROGRESS:"IN_PROGRESS",FINISHED:"FINISHED"};neutron.dashboard.utils={};neutron.dashboard.utils.AggregatorPackage=function(){};neutron.dashboard.utils.AggregatorPackage.prototype._containsInMultiValue=function(a,b){if(!1==goog.isDefAndNotNull(a)||!1==goog.isString(a))return console.error("multiValue is null or is not string"),!1;if(!1==goog.isDefAndNotNull(b)||!1==goog.isString(b))return console.error("value is null or is not string"),!1;var c=a.split("|");return!1==goog.isDefAndNotNull(c)||0==c.length?!1:goog.array.contains(c,b)};
neutron.dashboard.utils.AggregatorPackage.prototype._generateMultiValue=function(a){return!1==goog.isDefAndNotNull(arguments)||0==arguments.length?"":Array.prototype.join.call(arguments,"|")};neutron.dashboard.utils.AggregatorQueryPackage=function(){neutron.dashboard.utils.AggregatorPackage.call(this);this._data={query:null,params:null}};goog.inherits(neutron.dashboard.utils.AggregatorQueryPackage,neutron.dashboard.utils.AggregatorPackage);
neutron.dashboard.utils.AggregatorQueryPackage.prototype.setQuery=function(a){this._data.query=a};neutron.dashboard.utils.AggregatorQueryPackage.prototype.setParameters=function(a){!1==goog.isDefAndNotNull(a)?this._data.params=null:this._data.params=goog.json.parse(goog.json.serialize(a))};neutron.dashboard.utils.AggregatorQueryPackage.prototype.serialize=function(){return goog.json.serialize(this._data)};
neutron.dashboard.utils.AggregatorQueryReturnPackage=function(a){neutron.dashboard.utils.AggregatorPackage.call(this);this._data=null;!0==goog.isString(a)?this._data=goog.json.parse(a):!0==goog.isObject(a)&&(this._data=a)};goog.inherits(neutron.dashboard.utils.AggregatorQueryReturnPackage,neutron.dashboard.utils.AggregatorPackage);
neutron.dashboard.utils.AggregatorQueryReturnPackage.prototype.getTicket=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.ticket)?(console.error("AggregatorQueryReturnPackage does not contain ticket id"),null):this._data.ticket};neutron.dashboard.utils.AggregatorQueryReturnPackage.prototype.getData=function(){return!1==goog.isDefAndNotNull(this._data)?(console.error("AggregatorQueryReturnPackage does not contain data"),null):this._data.data};
neutron.dashboard.utils.AggregatorQueryReturnPackage.prototype.isDone=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorQueryReturnPackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.DONE)};
neutron.dashboard.utils.AggregatorQueryReturnPackage.prototype.isProgress=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorQueryReturnPackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.PROGRESS)};
neutron.dashboard.utils.AggregatorQueryReturnPackage.prototype.isError=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorQueryReturnPackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.ERROR)};neutron.dashboard.utils.AggregatorQueryReturnPackage.prototype.setError=function(){!1==goog.isDefAndNotNull(this._data)&&(this._data={});this._data.status=neutron.dashboard.constants.Status.ERROR};
neutron.dashboard.utils.AggregatorResponsePackage=function(a){neutron.dashboard.utils.AggregatorPackage.call(this);this._data=null;!0==goog.isString(a)?this._data=goog.json.parse(a):!0==goog.isObject(a)&&(this._data=a)};goog.inherits(neutron.dashboard.utils.AggregatorResponsePackage,neutron.dashboard.utils.AggregatorPackage);
neutron.dashboard.utils.AggregatorResponsePackage.prototype.getTicket=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.ticket)?(console.error("AggregatorResponsePackage does not contain ticket id"),null):this._data.ticket};neutron.dashboard.utils.AggregatorResponsePackage.prototype.getData=function(){return!1==goog.isDefAndNotNull(this._data)?(console.error("AggregatorResponsePackage does not contain data"),null):this._data.data};
neutron.dashboard.utils.AggregatorResponsePackage.prototype.getStatus=function(){return this._data.status};neutron.dashboard.utils.AggregatorResponsePackage.prototype.isDone=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorResponsePackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.DONE)};
neutron.dashboard.utils.AggregatorResponsePackage.prototype.isError=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorResponsePackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.ERROR)};
neutron.dashboard.utils.AggregatorResponsePackage.prototype.isProgress=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorResponsePackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.PROGRESS)};
neutron.dashboard.utils.AggregatorEventPackage=function(a){neutron.dashboard.utils.AggregatorPackage.call(this);this._data=null;!0==goog.isString(a)?this._data=goog.json.parse(a):!0==goog.isObject(a)&&(this._data=a)};goog.inherits(neutron.dashboard.utils.AggregatorEventPackage,neutron.dashboard.utils.AggregatorPackage);
neutron.dashboard.utils.AggregatorEventPackage.prototype.getEvent=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.event)?(console.error("AggregatorEventPackage does not contain ticket id"),null):this._data.event};neutron.dashboard.utils.AggregatorEventPackage.prototype.getData=function(){return!1==goog.isDefAndNotNull(this._data)?(console.error("AggregatorEventPackage does not contain data"),null):this._data.data};
neutron.dashboard.utils.AggregatorEventPackage.prototype.getStatus=function(){return this._data.status};neutron.dashboard.utils.AggregatorEventPackage.prototype.isDone=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorEventPackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.DONE)};
neutron.dashboard.utils.AggregatorEventPackage.prototype.isProgress=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorEventPackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.PROGRESS)};
neutron.dashboard.utils.AggregatorEventPackage.prototype.isError=function(){return!1==goog.isDefAndNotNull(this._data)||!1==goog.isDefAndNotNull(this._data.status)?(console.error("AggregatorEventPackage does not contain status code"),!1):this._containsInMultiValue(this._data.status,neutron.dashboard.constants.Status.ERROR)};neutron.dashboard.utils.Aggregator=function(){this._ticketsMap={};this._queriesMap={};this._NOTIFY_ALL_CONSTANT="NOTIFY_ALL";this._AGGREGATOR_QUERY=neutron.dashboard.utils.Aggregator.Prefix+"QUERY";this._AGGREGATOR_RESPONSE=neutron.dashboard.utils.Aggregator.Prefix+"RESPONSE";this._AGGREGATOR_EVENT=neutron.dashboard.utils.Aggregator.Prefix+"EVENT"};neutron.dashboard.utils.Aggregator.Prefix="AGG_";
neutron.dashboard.utils.Aggregator.prototype.init=function(a){var b=this;this._eventHandlerKey=goog.events.listen(a,neutron.dashboard.events.EventType.AGGREGATOR_EVENT,function(a){b._onEvent(a)})};neutron.dashboard.utils.Aggregator.prototype.destroy=function(){goog.isDefAndNotNull(this._eventHandlerKey)&&goog.events.unlistenByKey(this._eventHandlerKey)};
neutron.dashboard.utils.Aggregator.prototype.executeQuery=function(a,b,c,d){if(!1==goog.isDefAndNotNull(a)||!1==goog.isString(a))console.error("queryName is null or is not string");else{var e=new neutron.dashboard.utils.AggregatorQueryPackage;e.setQuery(a);e.setParameters(b);b=new neutron.dashboard.utils.AggregatorQueryReturnPackage(window.neutronJavaScriptObject.executeQuery(this._AGGREGATOR_QUERY,e.serialize()));if(!0==b.isError()){var e=b.getData(),f="??";goog.isDefAndNotNull(e)&&(goog.isString(e.error_reason)&&
0<e.error_reason.length)&&(f=e.error_reason);neutron.dashboard.notifier.fireErrorMessage(f);console.error("queryReturnPackage contains error: "+f)}else!0==b.isProgress()&&(e=b.getTicket(),!1==goog.isDefAndNotNull(e)||!0==goog.string.isEmpty(e)?(console.error("queryReturnPackage has no ticket!"),b.setError()):this._storeTicket(e,a,c));e=neutron.dashboard.constants.Status.DONE;!0==b.isError()?e=neutron.dashboard.constants.Status.ERROR:!0==b.isProgress()&&(e=neutron.dashboard.constants.Status.PROGRESS);
!0==goog.isDefAndNotNull(c)?c.call(d,b.getData(),e):neutron.dashboard.notifier.fireBrowserApiEvent(a,b.getData(),e)}};
neutron.dashboard.utils.Aggregator.prototype._storeTicket=function(a,b,c){if(!1==goog.isDefAndNotNull(a)||!1==goog.isString(a))console.error("ticket has wrong format: "+String(a));else if(!1==goog.isDefAndNotNull(b)||!1==goog.isString(b))console.error("query name has wrong format: "+String(b));else{!1==goog.isDefAndNotNull(c)&&(c=this._NOTIFY_ALL_CONSTANT);if(!1==goog.object.containsKey(this._ticketsMap,a))goog.object.add(this._ticketsMap,a,[c]);else{var d=goog.object.get(this._ticketsMap,a);!1==
goog.isDefAndNotNull(d)&&(d=[]);var e=goog.array.contains(d,this._NOTIFY_ALL_CONSTANT);if(!1==e&&0<d.length&&c===this._NOTIFY_ALL_CONSTANT||!0==e&&c!==this._NOTIFY_ALL_CONSTANT){console.error("Aggregator's callback array for ticket "+a+" must not be mixed!");return}goog.array.insert(d,c);goog.object.set(this._ticketsMap,a,d)}!0==goog.object.containsKey(this._queriesMap,a)?console.warn("queriesMap already contains ticket "+a+" for query "+b):goog.object.add(this._queriesMap,a,b)}};
neutron.dashboard.utils.Aggregator.prototype._processTicket=function(a,b,c){if(!1==goog.isDefAndNotNull(a)||!1==goog.isString(a))console.error("ticket has wrong format: "+String(a));else if(!1!=goog.object.containsKey(this._ticketsMap,a)){var d=goog.object.get(this._ticketsMap,a);!1==goog.isDefAndNotNull(d)||!1==goog.isArray(d)||0==d.length?console.warn("callback array for ticket "+a+" is empty"):goog.array.forEach(d,function(d){!1!=goog.isDefAndNotNull(d)&&(!0==goog.isFunction(d)?d(b,c):!0==goog.isString(d)&&
d===this._NOTIFY_ALL_CONSTANT&&(!1==goog.object.containsKey(this._queriesMap,a)?console.error("Aggregator cannot find query name for ticket"+a):neutron.dashboard.notifier.fireBrowserApiEvent(goog.object.get(this._queriesMap,a),b,c)))},this)}};neutron.dashboard.utils.Aggregator.prototype._removeTicket=function(a){!1==goog.isDefAndNotNull(a)||!1==goog.isString(a)?console.error("ticket has wrong format: "+String(a)):(goog.object.remove(this._ticketsMap,a),goog.object.remove(this._queriesMap,a))};
neutron.dashboard.utils.Aggregator.prototype._processResponse=function(a){if(!1==goog.isDefAndNotNull(a))console.error("Aggregator responseJSON is null");else{a=new neutron.dashboard.utils.AggregatorResponsePackage(a);var b=a.getTicket();if(!1==goog.isDefAndNotNull(b))console.error("AggregatorResponsePackage does not contain ticket");else{this._processTicket(b,a.getData(),a.getStatus());if(!0===a.isError()){var c=_LCLZ("Some error occurs."),d=a.getData();!0===goog.isDefAndNotNull(d)&&!0===goog.isDefAndNotNull(d[neutron.dashboard.constants.Status.WORKFLOW_KEY_REASON_ERROR])&&
(!1===/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/.test(d[neutron.dashboard.constants.Status.WORKFLOW_KEY_REASON_ERROR])?(c=d[neutron.dashboard.constants.Status.WORKFLOW_KEY_REASON_ERROR],!0===goog.string.contains(c,"Read access denied")&&(console.warn(c),c=_LCLZ("Read access denied"))):c=_LCLZ("Operation failed"));neutron.dashboard.notifier.fireErrorMessage(c)}!1==a.isProgress()&&this._removeTicket(b)}}};
neutron.dashboard.utils.Aggregator.prototype._processEvent=function(a){!1==goog.isDefAndNotNull(a)?console.error("Aggregator eventJSON is null"):(a=new neutron.dashboard.utils.AggregatorEventPackage(a),neutron.dashboard.notifier.fireBrowserApiEvent(a.getEvent(),a.getData(),a.getStatus()))};
neutron.dashboard.utils.Aggregator.prototype._onEvent=function(a){a.command===this._AGGREGATOR_RESPONSE?this._processResponse(a.response):a.command===this._AGGREGATOR_EVENT?this._processEvent(a.response):console.error("Aggregator event command has wrong format: "+String(a.command))};neutron.dashboard.events.Update=function(a,b,c,d,e){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.UPDATE;this.parentHtmlNode=a;this.left=b;this.top=c;this.width=d;this.height=e};goog.inherits(neutron.dashboard.events.Update,goog.events.Event);neutron.dashboard.controls={};neutron.dashboard.controls.CoverLayer=function(){goog.events.EventTarget.call(this);this._div=goog.dom.createDom("div");this._div.style.position="fixed";this._div.style.top=0;this._div.style.left=0;this._div.style.width=window.innerWidth.toString()+"px";this._div.style.height=window.innerHeight.toString()+"px";this._div.style.zIndex="9";document.body.appendChild(this._div);var a=this;this._eventHandler=goog.events.listen(this._div,goog.events.EventType.CLICK,function(b){a.dispatchEvent(b)})};
goog.inherits(neutron.dashboard.controls.CoverLayer,goog.events.EventTarget);neutron.dashboard.controls.CoverLayer.prototype.remove=function(){goog.events.unlistenByKey(this._eventHandler);goog.dom.removeNode(this._div)};neutron.dashboard.events.Change=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.CHANGE;this.newValue=a;this.oldValue=b};goog.inherits(neutron.dashboard.events.Change,goog.events.Event);neutron.dashboard.events.ServerDataUpdated=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.SERVER_DATA_UPDATED;this.updateId=a;this.metaData=b};goog.inherits(neutron.dashboard.events.ServerDataUpdated,goog.events.Event);neutron.dashboard.events.CommentAdded=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.COMMENT_ADDED;this.itemId=a};goog.inherits(neutron.dashboard.events.CommentAdded,goog.events.Event);var _LCLZ=function(a){return neutron.dashboard.utils.Localization._instance.localize(a)};neutron.dashboard.utils.Localization=function(){this._stringsTable=this._currentLocale=null;this._init()};
neutron.dashboard.utils.Localization.prototype._init=function(){var a=null;try{var b=window.neutronJavaScriptObject.executeQuery("getDashboardLocalizeStrings","{}"),a=goog.json.parse(b)}catch(c){console.warn("Can't parse response for getDashboardLocalizeStrings: '"+b+"'"),a={table:{},lang:"ERR"}}this._currentLocale=a.lang;this._stringsTable=a.table;neutron.dashboard.utils.Localization._instance=this};
neutron.dashboard.utils.Localization.prototype.localize=function(a,b){var c=this._stringsTable[a];if(goog.isDefAndNotNull(c))return c;console.warn('Localization: missing "'+this._currentLocale+'" translated value for key:"'+a+'", hint: "'+(b||"(null)")+'"');return a};neutron.dashboard.utils.Report=function(a){switch(typeof a){case "object":a=JSON.stringify(a);break;case "string":break;default:return!1}return window.neutronJavaScriptObject.executeQuery("report",a)};goog.style.bidi={};goog.style.bidi.getScrollLeft=function(a){var b=goog.style.isRightToLeft(a);return b&&goog.userAgent.GECKO?-a.scrollLeft:b&&(!goog.userAgent.IE||!goog.userAgent.isVersionOrHigher("8"))&&"visible"!=goog.style.getComputedOverflowX(a)?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft};
goog.style.bidi.getOffsetStart=function(a){var b=a.offsetLeft,c=a.offsetParent;!c&&"fixed"==goog.style.getComputedPosition(a)&&(c=goog.dom.getOwnerDocument(a).documentElement);if(!c)return b;if(goog.userAgent.GECKO)var d=goog.style.getBorderBox(c),b=b+d.left;else goog.userAgent.isDocumentModeOrHigher(8)&&(d=goog.style.getBorderBox(c),b-=d.left);return goog.style.isRightToLeft(c)?c.clientWidth-(b+a.offsetWidth):b};
goog.style.bidi.setScrollOffset=function(a,b){b=Math.max(b,0);goog.style.isRightToLeft(a)?goog.userAgent.GECKO?a.scrollLeft=-b:!goog.userAgent.IE||!goog.userAgent.isVersionOrHigher("8")?a.scrollLeft=a.scrollWidth-b-a.clientWidth:a.scrollLeft=b:a.scrollLeft=b};goog.style.bidi.setPosition=function(a,b,c,d){goog.isNull(c)||(a.style.top=c+"px");d?(a.style.right=b+"px",a.style.left=""):(a.style.left=b+"px",a.style.right="")};goog.positioning={};goog.positioning.Corner={TOP_LEFT:0,TOP_RIGHT:2,BOTTOM_LEFT:1,BOTTOM_RIGHT:3,TOP_START:4,TOP_END:6,BOTTOM_START:5,BOTTOM_END:7};goog.positioning.CornerBit={BOTTOM:1,RIGHT:2,FLIP_RTL:4};goog.positioning.Overflow={IGNORE:0,ADJUST_X:1,FAIL_X:2,ADJUST_Y:4,FAIL_Y:8,RESIZE_WIDTH:16,RESIZE_HEIGHT:32,ADJUST_X_EXCEPT_OFFSCREEN:65,ADJUST_Y_EXCEPT_OFFSCREEN:132};
goog.positioning.OverflowStatus={NONE:0,ADJUSTED_X:1,ADJUSTED_Y:2,WIDTH_ADJUSTED:4,HEIGHT_ADJUSTED:8,FAILED_LEFT:16,FAILED_RIGHT:32,FAILED_TOP:64,FAILED_BOTTOM:128,FAILED_OUTSIDE_VIEWPORT:256};goog.positioning.OverflowStatus.FAILED=goog.positioning.OverflowStatus.FAILED_LEFT|goog.positioning.OverflowStatus.FAILED_RIGHT|goog.positioning.OverflowStatus.FAILED_TOP|goog.positioning.OverflowStatus.FAILED_BOTTOM|goog.positioning.OverflowStatus.FAILED_OUTSIDE_VIEWPORT;
goog.positioning.OverflowStatus.FAILED_HORIZONTAL=goog.positioning.OverflowStatus.FAILED_LEFT|goog.positioning.OverflowStatus.FAILED_RIGHT;goog.positioning.OverflowStatus.FAILED_VERTICAL=goog.positioning.OverflowStatus.FAILED_TOP|goog.positioning.OverflowStatus.FAILED_BOTTOM;
goog.positioning.positionAtAnchor=function(a,b,c,d,e,f,g,h,k){goog.asserts.assert(c);var l=goog.positioning.getOffsetParentPageOffset(c),m=goog.positioning.getVisiblePart_(a);goog.style.translateRectForAnotherFrame(m,goog.dom.getDomHelper(a),goog.dom.getDomHelper(c));a=goog.positioning.getEffectiveCorner(a,b);m=new goog.math.Coordinate(a&goog.positioning.CornerBit.RIGHT?m.left+m.width:m.left,a&goog.positioning.CornerBit.BOTTOM?m.top+m.height:m.top);m=goog.math.Coordinate.difference(m,l);e&&(m.x+=
(a&goog.positioning.CornerBit.RIGHT?-1:1)*e.x,m.y+=(a&goog.positioning.CornerBit.BOTTOM?-1:1)*e.y);var n;if(g)if(k)n=k;else if(n=goog.style.getVisibleRectForElement(c))n.top-=l.y,n.right-=l.x,n.bottom-=l.y,n.left-=l.x;return goog.positioning.positionAtCoordinate(m,c,d,f,n,g,h)};
goog.positioning.getOffsetParentPageOffset=function(a){var b;if(a=a.offsetParent){var c=a.tagName==goog.dom.TagName.HTML||a.tagName==goog.dom.TagName.BODY;if(!c||"static"!=goog.style.getComputedPosition(a))b=goog.style.getPageOffset(a),c||(b=goog.math.Coordinate.difference(b,new goog.math.Coordinate(goog.style.bidi.getScrollLeft(a),a.scrollTop)))}return b||new goog.math.Coordinate};
goog.positioning.getVisiblePart_=function(a){var b=goog.style.getBounds(a);(a=goog.style.getVisibleRectForElement(a))&&b.intersection(goog.math.Rect.createFromBox(a));return b};
goog.positioning.positionAtCoordinate=function(a,b,c,d,e,f,g){a=a.clone();var h=goog.positioning.OverflowStatus.NONE;c=goog.positioning.getEffectiveCorner(b,c);var k=goog.style.getSize(b);g=g?g.clone():k.clone();if(d||c!=goog.positioning.Corner.TOP_LEFT)c&goog.positioning.CornerBit.RIGHT?a.x-=g.width+(d?d.right:0):d&&(a.x+=d.left),c&goog.positioning.CornerBit.BOTTOM?a.y-=g.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f&&(h=e?goog.positioning.adjustForViewport_(a,g,e,f):goog.positioning.OverflowStatus.FAILED_OUTSIDE_VIEWPORT,
h&goog.positioning.OverflowStatus.FAILED))return h;goog.style.setPosition(b,a);goog.math.Size.equals(k,g)||goog.style.setBorderBoxSize(b,g);return h};
goog.positioning.adjustForViewport_=function(a,b,c,d){var e=goog.positioning.OverflowStatus.NONE,f=goog.positioning.Overflow.ADJUST_X_EXCEPT_OFFSCREEN,g=goog.positioning.Overflow.ADJUST_Y_EXCEPT_OFFSCREEN;if((d&f)==f&&(a.x<c.left||a.x>=c.right))d&=~goog.positioning.Overflow.ADJUST_X;if((d&g)==g&&(a.y<c.top||a.y>=c.bottom))d&=~goog.positioning.Overflow.ADJUST_Y;a.x<c.left&&d&goog.positioning.Overflow.ADJUST_X&&(a.x=c.left,e|=goog.positioning.OverflowStatus.ADJUSTED_X);a.x<c.left&&(a.x+b.width>c.right&&
d&goog.positioning.Overflow.RESIZE_WIDTH)&&(b.width=Math.max(b.width-(a.x+b.width-c.right),0),e|=goog.positioning.OverflowStatus.WIDTH_ADJUSTED);a.x+b.width>c.right&&d&goog.positioning.Overflow.ADJUST_X&&(a.x=Math.max(c.right-b.width,c.left),e|=goog.positioning.OverflowStatus.ADJUSTED_X);d&goog.positioning.Overflow.FAIL_X&&(e|=(a.x<c.left?goog.positioning.OverflowStatus.FAILED_LEFT:0)|(a.x+b.width>c.right?goog.positioning.OverflowStatus.FAILED_RIGHT:0));a.y<c.top&&d&goog.positioning.Overflow.ADJUST_Y&&
(a.y=c.top,e|=goog.positioning.OverflowStatus.ADJUSTED_Y);a.y<=c.top&&(a.y+b.height<c.bottom&&d&goog.positioning.Overflow.RESIZE_HEIGHT)&&(b.height=Math.max(b.height-(c.top-a.y),0),a.y=c.top,e|=goog.positioning.OverflowStatus.HEIGHT_ADJUSTED);a.y>=c.top&&(a.y+b.height>c.bottom&&d&goog.positioning.Overflow.RESIZE_HEIGHT)&&(b.height=Math.max(b.height-(a.y+b.height-c.bottom),0),e|=goog.positioning.OverflowStatus.HEIGHT_ADJUSTED);a.y+b.height>c.bottom&&d&goog.positioning.Overflow.ADJUST_Y&&(a.y=Math.max(c.bottom-
b.height,c.top),e|=goog.positioning.OverflowStatus.ADJUSTED_Y);d&goog.positioning.Overflow.FAIL_Y&&(e|=(a.y<c.top?goog.positioning.OverflowStatus.FAILED_TOP:0)|(a.y+b.height>c.bottom?goog.positioning.OverflowStatus.FAILED_BOTTOM:0));return e};goog.positioning.getEffectiveCorner=function(a,b){return(b&goog.positioning.CornerBit.FLIP_RTL&&goog.style.isRightToLeft(a)?b^goog.positioning.CornerBit.RIGHT:b)&~goog.positioning.CornerBit.FLIP_RTL};
goog.positioning.flipCornerHorizontal=function(a){return a^goog.positioning.CornerBit.RIGHT};goog.positioning.flipCornerVertical=function(a){return a^goog.positioning.CornerBit.BOTTOM};goog.positioning.flipCorner=function(a){return a^goog.positioning.CornerBit.BOTTOM^goog.positioning.CornerBit.RIGHT};goog.Timer=function(a,b){goog.events.EventTarget.call(this);this.interval_=a||1;this.timerObject_=b||goog.Timer.defaultTimerObject;this.boundTick_=goog.bind(this.tick_,this);this.last_=goog.now()};goog.inherits(goog.Timer,goog.events.EventTarget);goog.Timer.MAX_TIMEOUT_=2147483647;goog.Timer.prototype.enabled=!1;goog.Timer.defaultTimerObject=goog.global;goog.Timer.intervalScale=0.8;goog.Timer.prototype.timer_=null;goog.Timer.prototype.getInterval=function(){return this.interval_};
goog.Timer.prototype.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
goog.Timer.prototype.tick_=function(){if(this.enabled){var a=goog.now()-this.last_;0<a&&a<this.interval_*goog.Timer.intervalScale?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchTick(),this.enabled&&(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=goog.now()))}};goog.Timer.prototype.dispatchTick=function(){this.dispatchEvent(goog.Timer.TICK)};
goog.Timer.prototype.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=goog.now())};goog.Timer.prototype.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};goog.Timer.prototype.disposeInternal=function(){goog.Timer.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};goog.Timer.TICK="tick";
goog.Timer.callOnce=function(a,b,c){if(goog.isFunction(a))c&&(a=goog.bind(a,c));else if(a&&"function"==typeof a.handleEvent)a=goog.bind(a.handleEvent,a);else throw Error("Invalid listener argument");return b>goog.Timer.MAX_TIMEOUT_?-1:goog.Timer.defaultTimerObject.setTimeout(a,b||0)};goog.Timer.clear=function(a){goog.Timer.defaultTimerObject.clearTimeout(a)};goog.positioning.AbstractPosition=function(){};goog.positioning.AbstractPosition.prototype.reposition=function(a,b,c,d){};goog.positioning.AnchoredPosition=function(a,b,c){this.element=a;this.corner=b;this.overflow_=c};goog.inherits(goog.positioning.AnchoredPosition,goog.positioning.AbstractPosition);goog.positioning.AnchoredPosition.prototype.reposition=function(a,b,c,d){goog.positioning.positionAtAnchor(this.element,this.corner,a,b,void 0,c,this.overflow_)};goog.events.EventHandler=function(a){goog.Disposable.call(this);this.handler_=a;this.keys_={}};goog.inherits(goog.events.EventHandler,goog.Disposable);goog.events.EventHandler.typeArray_=[];goog.events.EventHandler.prototype.listen=function(a,b,c,d){return this.listen_(a,b,c,d)};goog.events.EventHandler.prototype.listenWithScope=function(a,b,c,d,e){return this.listen_(a,b,c,d,e)};
goog.events.EventHandler.prototype.listen_=function(a,b,c,d,e){goog.isArray(b)||(b&&(goog.events.EventHandler.typeArray_[0]=b.toString()),b=goog.events.EventHandler.typeArray_);for(var f=0;f<b.length;f++){var g=goog.events.listen(a,b[f],c||this.handleEvent,d||!1,e||this.handler_||this);if(!g)break;this.keys_[g.key]=g}return this};goog.events.EventHandler.prototype.listenOnce=function(a,b,c,d){return this.listenOnce_(a,b,c,d)};
goog.events.EventHandler.prototype.listenOnceWithScope=function(a,b,c,d,e){return this.listenOnce_(a,b,c,d,e)};goog.events.EventHandler.prototype.listenOnce_=function(a,b,c,d,e){if(goog.isArray(b))for(var f=0;f<b.length;f++)this.listenOnce_(a,b[f],c,d,e);else{a=goog.events.listenOnce(a,b,c||this.handleEvent,d,e||this.handler_||this);if(!a)return this;this.keys_[a.key]=a}return this};goog.events.EventHandler.prototype.listenWithWrapper=function(a,b,c,d){return this.listenWithWrapper_(a,b,c,d)};
goog.events.EventHandler.prototype.listenWithWrapperAndScope=function(a,b,c,d,e){return this.listenWithWrapper_(a,b,c,d,e)};goog.events.EventHandler.prototype.listenWithWrapper_=function(a,b,c,d,e){b.listen(a,c,d,e||this.handler_||this,this);return this};goog.events.EventHandler.prototype.getListenerCount=function(){var a=0,b;for(b in this.keys_)Object.prototype.hasOwnProperty.call(this.keys_,b)&&a++;return a};
goog.events.EventHandler.prototype.unlisten=function(a,b,c,d,e){if(goog.isArray(b))for(var f=0;f<b.length;f++)this.unlisten(a,b[f],c,d,e);else if(a=goog.events.getListener(a,b,c||this.handleEvent,d,e||this.handler_||this))goog.events.unlistenByKey(a),delete this.keys_[a.key];return this};goog.events.EventHandler.prototype.unlistenWithWrapper=function(a,b,c,d,e){b.unlisten(a,c,d,e||this.handler_||this,this);return this};
goog.events.EventHandler.prototype.removeAll=function(){goog.object.forEach(this.keys_,goog.events.unlistenByKey);this.keys_={}};goog.events.EventHandler.prototype.disposeInternal=function(){goog.events.EventHandler.superClass_.disposeInternal.call(this);this.removeAll()};goog.events.EventHandler.prototype.handleEvent=function(a){throw Error("EventHandler.handleEvent not implemented");};goog.fx={};goog.fx.Transition=function(){};goog.fx.Transition.EventType={PLAY:"play",BEGIN:"begin",RESUME:"resume",END:"end",STOP:"stop",FINISH:"finish",PAUSE:"pause"};goog.ui={};goog.ui.PopupBase=function(a,b){goog.events.EventTarget.call(this);this.handler_=new goog.events.EventHandler(this);this.setElement(a||null);b&&this.setType(b)};goog.inherits(goog.ui.PopupBase,goog.events.EventTarget);goog.ui.PopupBase.Type={TOGGLE_DISPLAY:"toggle_display",MOVE_OFFSCREEN:"move_offscreen"};goog.ui.PopupBase.prototype.element_=null;goog.ui.PopupBase.prototype.autoHide_=!0;goog.ui.PopupBase.prototype.autoHideRegion_=null;goog.ui.PopupBase.prototype.isVisible_=!1;
goog.ui.PopupBase.prototype.shouldHideAsync_=!1;goog.ui.PopupBase.prototype.lastShowTime_=-1;goog.ui.PopupBase.prototype.lastHideTime_=-1;goog.ui.PopupBase.prototype.hideOnEscape_=!1;goog.ui.PopupBase.prototype.enableCrossIframeDismissal_=!0;goog.ui.PopupBase.prototype.type_=goog.ui.PopupBase.Type.TOGGLE_DISPLAY;goog.ui.PopupBase.EventType={BEFORE_SHOW:"beforeshow",SHOW:"show",BEFORE_HIDE:"beforehide",HIDE:"hide"};goog.ui.PopupBase.DEBOUNCE_DELAY_MS=150;goog.ui.PopupBase.prototype.getType=function(){return this.type_};
goog.ui.PopupBase.prototype.setType=function(a){this.type_=a};goog.ui.PopupBase.prototype.shouldHideAsync=function(){return this.shouldHideAsync_};goog.ui.PopupBase.prototype.setShouldHideAsync=function(a){this.shouldHideAsync_=a};goog.ui.PopupBase.prototype.getElement=function(){return this.element_};goog.ui.PopupBase.prototype.setElement=function(a){this.ensureNotVisible_();this.element_=a};goog.ui.PopupBase.prototype.getAutoHide=function(){return this.autoHide_};
goog.ui.PopupBase.prototype.setAutoHide=function(a){this.ensureNotVisible_();this.autoHide_=a};goog.ui.PopupBase.prototype.getHideOnEscape=function(){return this.hideOnEscape_};goog.ui.PopupBase.prototype.setHideOnEscape=function(a){this.ensureNotVisible_();this.hideOnEscape_=a};goog.ui.PopupBase.prototype.getEnableCrossIframeDismissal=function(){return this.enableCrossIframeDismissal_};goog.ui.PopupBase.prototype.setEnableCrossIframeDismissal=function(a){this.enableCrossIframeDismissal_=a};
goog.ui.PopupBase.prototype.getAutoHideRegion=function(){return this.autoHideRegion_};goog.ui.PopupBase.prototype.setAutoHideRegion=function(a){this.autoHideRegion_=a};goog.ui.PopupBase.prototype.setTransition=function(a,b){this.showTransition_=a;this.hideTransition_=b};goog.ui.PopupBase.prototype.getLastShowTime=function(){return this.lastShowTime_};goog.ui.PopupBase.prototype.getLastHideTime=function(){return this.lastHideTime_};goog.ui.PopupBase.prototype.getHandler=function(){return this.handler_};
goog.ui.PopupBase.prototype.ensureNotVisible_=function(){if(this.isVisible_)throw Error("Can not change this state of the popup while showing.");};goog.ui.PopupBase.prototype.isVisible=function(){return this.isVisible_};goog.ui.PopupBase.prototype.isOrWasRecentlyVisible=function(){return this.isVisible_||goog.now()-this.lastHideTime_<goog.ui.PopupBase.DEBOUNCE_DELAY_MS};
goog.ui.PopupBase.prototype.setVisible=function(a){this.showTransition_&&this.showTransition_.stop();this.hideTransition_&&this.hideTransition_.stop();a?this.show_():this.hide_()};goog.ui.PopupBase.prototype.reposition=goog.nullFunction;
goog.ui.PopupBase.prototype.show_=function(){if(!this.isVisible_&&this.onBeforeShow()){if(!this.element_)throw Error("Caller must call setElement before trying to show the popup");this.reposition();var a=goog.dom.getOwnerDocument(this.element_);this.hideOnEscape_&&this.handler_.listen(a,goog.events.EventType.KEYDOWN,this.onDocumentKeyDown_,!0);if(this.autoHide_)if(this.handler_.listen(a,goog.events.EventType.MOUSEDOWN,this.onDocumentMouseDown_,!0),goog.userAgent.IE){var b;try{b=a.activeElement}catch(c){}for(;b&&
"IFRAME"==b.nodeName;){try{var d=goog.dom.getFrameContentDocument(b)}catch(e){break}a=d;b=a.activeElement}this.handler_.listen(a,goog.events.EventType.MOUSEDOWN,this.onDocumentMouseDown_,!0);this.handler_.listen(a,goog.events.EventType.DEACTIVATE,this.onDocumentBlur_)}else this.handler_.listen(a,goog.events.EventType.BLUR,this.onDocumentBlur_);this.type_==goog.ui.PopupBase.Type.TOGGLE_DISPLAY?this.showPopupElement():this.type_==goog.ui.PopupBase.Type.MOVE_OFFSCREEN&&this.reposition();this.isVisible_=
!0;this.lastShowTime_=goog.now();this.lastHideTime_=-1;if(this.showTransition_)goog.events.listenOnce(this.showTransition_,goog.fx.Transition.EventType.END,this.onShow_,!1,this),this.showTransition_.play();else this.onShow_()}};
goog.ui.PopupBase.prototype.hide_=function(a){if(!this.isVisible_||!this.onBeforeHide_(a))return!1;this.handler_&&this.handler_.removeAll();this.isVisible_=!1;this.lastHideTime_=goog.now();this.hideTransition_?(goog.events.listenOnce(this.hideTransition_,goog.fx.Transition.EventType.END,goog.partial(this.continueHidingPopup_,a),!1,this),this.hideTransition_.play()):this.continueHidingPopup_(a);return!0};
goog.ui.PopupBase.prototype.continueHidingPopup_=function(a){this.type_==goog.ui.PopupBase.Type.TOGGLE_DISPLAY?this.shouldHideAsync_?goog.Timer.callOnce(this.hidePopupElement,0,this):this.hidePopupElement():this.type_==goog.ui.PopupBase.Type.MOVE_OFFSCREEN&&this.moveOffscreen_();this.onHide_(a)};goog.ui.PopupBase.prototype.showPopupElement=function(){this.element_.style.visibility="visible";goog.style.setElementShown(this.element_,!0)};
goog.ui.PopupBase.prototype.hidePopupElement=function(){this.element_.style.visibility="hidden";goog.style.setElementShown(this.element_,!1)};goog.ui.PopupBase.prototype.moveOffscreen_=function(){this.element_.style.top="-10000px"};goog.ui.PopupBase.prototype.onBeforeShow=function(){return this.dispatchEvent(goog.ui.PopupBase.EventType.BEFORE_SHOW)};goog.ui.PopupBase.prototype.onShow_=function(){this.dispatchEvent(goog.ui.PopupBase.EventType.SHOW)};
goog.ui.PopupBase.prototype.onBeforeHide_=function(a){return this.dispatchEvent({type:goog.ui.PopupBase.EventType.BEFORE_HIDE,target:a})};goog.ui.PopupBase.prototype.onHide_=function(a){this.dispatchEvent({type:goog.ui.PopupBase.EventType.HIDE,target:a})};goog.ui.PopupBase.prototype.onDocumentMouseDown_=function(a){a=a.target;!goog.dom.contains(this.element_,a)&&((!this.autoHideRegion_||goog.dom.contains(this.autoHideRegion_,a))&&!this.shouldDebounce_())&&this.hide_(a)};
goog.ui.PopupBase.prototype.onDocumentKeyDown_=function(a){a.keyCode==goog.events.KeyCodes.ESC&&this.hide_(a.target)&&(a.preventDefault(),a.stopPropagation())};goog.ui.PopupBase.prototype.onDocumentBlur_=function(a){if(this.enableCrossIframeDismissal_){var b=goog.dom.getOwnerDocument(this.element_);if("undefined"!=typeof document.activeElement){if(a=b.activeElement,!a||goog.dom.contains(this.element_,a)||"BODY"==a.tagName)return}else if(a.target!=b)return;this.shouldDebounce_()||this.hide_()}};
goog.ui.PopupBase.prototype.shouldDebounce_=function(){return goog.now()-this.lastShowTime_<goog.ui.PopupBase.DEBOUNCE_DELAY_MS};goog.ui.PopupBase.prototype.disposeInternal=function(){goog.ui.PopupBase.base(this,"disposeInternal");this.handler_.dispose();goog.dispose(this.showTransition_);goog.dispose(this.hideTransition_);delete this.element_;delete this.handler_};goog.positioning.ViewportPosition=function(a,b){this.coordinate=a instanceof goog.math.Coordinate?a:new goog.math.Coordinate(a,b)};goog.inherits(goog.positioning.ViewportPosition,goog.positioning.AbstractPosition);goog.positioning.ViewportPosition.prototype.reposition=function(a,b,c,d){goog.positioning.positionAtAnchor(goog.style.getClientViewportElement(a),goog.positioning.Corner.TOP_LEFT,a,b,this.coordinate,c,null,d)};goog.string.TypedString=function(){};goog.string.Const=function(){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_="";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_};goog.string.Const.prototype.implementsGoogStringTypedString=!0;goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"};goog.string.Const.unwrap=function(a){if(a instanceof goog.string.Const&&a.constructor===goog.string.Const&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_)return a.stringConstValueWithSecurityContract__googStringSecurityPrivate_;goog.asserts.fail("expected object of type Const, got '"+a+"'");return"type_error:Const"};
goog.string.Const.from=function(a){return goog.string.Const.create__googStringSecurityPrivate_(a)};goog.string.Const.TYPE_MARKER_={};goog.string.Const.create__googStringSecurityPrivate_=function(a){var b=new goog.string.Const;b.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a;return b};goog.i18n={};goog.i18n.bidi={};goog.i18n.bidi.FORCE_RTL=!1;
goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||("ar"==goog.LOCALE.substring(0,2).toLowerCase()||"fa"==goog.LOCALE.substring(0,2).toLowerCase()||"he"==goog.LOCALE.substring(0,2).toLowerCase()||"iw"==goog.LOCALE.substring(0,2).toLowerCase()||"ps"==goog.LOCALE.substring(0,2).toLowerCase()||"sd"==goog.LOCALE.substring(0,2).toLowerCase()||"ug"==goog.LOCALE.substring(0,2).toLowerCase()||"ur"==goog.LOCALE.substring(0,2).toLowerCase()||"yi"==goog.LOCALE.substring(0,2).toLowerCase())&&(2==goog.LOCALE.length||
"-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))||3<=goog.LOCALE.length&&"ckb"==goog.LOCALE.substring(0,3).toLowerCase()&&(3==goog.LOCALE.length||"-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4));goog.i18n.bidi.Format={LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"};goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0,UNKNOWN:0};goog.i18n.bidi.RIGHT="right";goog.i18n.bidi.LEFT="left";goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT;
goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT;goog.i18n.bidi.toDir=function(a,b){return"number"==typeof a?0<a?goog.i18n.bidi.Dir.LTR:0>a?goog.i18n.bidi.Dir.RTL:b?null:goog.i18n.bidi.Dir.NEUTRAL:null==a?null:a?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.ltrChars_="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff";goog.i18n.bidi.rtlChars_="\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc";
goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g;goog.i18n.bidi.stripHtmlIfNeeded_=function(a,b){return b?a.replace(goog.i18n.bidi.htmlSkipReg_,""):a};goog.i18n.bidi.rtlCharReg_=RegExp("["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.ltrCharReg_=RegExp("["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.hasAnyRtl=function(a,b){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl;
goog.i18n.bidi.hasAnyLtr=function(a,b){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.ltrRe_=RegExp("^["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.rtlRe_=RegExp("^["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.isRtlChar=function(a){return goog.i18n.bidi.rtlRe_.test(a)};goog.i18n.bidi.isLtrChar=function(a){return goog.i18n.bidi.ltrRe_.test(a)};goog.i18n.bidi.isNeutralChar=function(a){return!goog.i18n.bidi.isLtrChar(a)&&!goog.i18n.bidi.isRtlChar(a)};
goog.i18n.bidi.ltrDirCheckRe_=RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.rtlDirCheckRe_=RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.startsWithRtl=function(a,b){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl;
goog.i18n.bidi.startsWithLtr=function(a,b){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr;goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/;goog.i18n.bidi.isNeutralText=function(a,b){a=goog.i18n.bidi.stripHtmlIfNeeded_(a,b);return goog.i18n.bidi.isRequiredLtrRe_.test(a)||!goog.i18n.bidi.hasAnyLtr(a)&&!goog.i18n.bidi.hasAnyRtl(a)};
goog.i18n.bidi.ltrExitDirCheckRe_=RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$");goog.i18n.bidi.rtlExitDirCheckRe_=RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$");goog.i18n.bidi.endsWithLtr=function(a,b){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr;
goog.i18n.bidi.endsWithRtl=function(a,b){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl;goog.i18n.bidi.rtlLocalesRe_=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");goog.i18n.bidi.isRtlLanguage=function(a){return goog.i18n.bidi.rtlLocalesRe_.test(a)};goog.i18n.bidi.bracketGuardHtmlRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(&lt;.*?(&gt;)+)/g;
goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g;goog.i18n.bidi.guardBracketInHtml=function(a,b){return(void 0===b?goog.i18n.bidi.hasAnyRtl(a):b)?a.replace(goog.i18n.bidi.bracketGuardHtmlRe_,"<span dir=rtl>$&</span>"):a.replace(goog.i18n.bidi.bracketGuardHtmlRe_,"<span dir=ltr>$&</span>")};
goog.i18n.bidi.guardBracketInText=function(a,b){var c=(void 0===b?goog.i18n.bidi.hasAnyRtl(a):b)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM;return a.replace(goog.i18n.bidi.bracketGuardTextRe_,c+"$&"+c)};goog.i18n.bidi.enforceRtlInHtml=function(a){return"<"==a.charAt(0)?a.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+a+"</span>"};goog.i18n.bidi.enforceRtlInText=function(a){return goog.i18n.bidi.Format.RLE+a+goog.i18n.bidi.Format.PDF};
goog.i18n.bidi.enforceLtrInHtml=function(a){return"<"==a.charAt(0)?a.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+a+"</span>"};goog.i18n.bidi.enforceLtrInText=function(a){return goog.i18n.bidi.Format.LRE+a+goog.i18n.bidi.Format.PDF};goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g;goog.i18n.bidi.leftRe_=/left/gi;goog.i18n.bidi.rightRe_=/right/gi;goog.i18n.bidi.tempRe_=/%%%%/g;
goog.i18n.bidi.mirrorCSS=function(a){return a.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)};goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g;goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g;
goog.i18n.bidi.normalizeHebrewQuote=function(a){return a.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05f4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05f3")};goog.i18n.bidi.wordSeparatorRe_=/\s+/;goog.i18n.bidi.hasNumeralsRe_=/\d/;goog.i18n.bidi.rtlDetectionThreshold_=0.4;
goog.i18n.bidi.estimateDirection=function(a,b){for(var c=0,d=0,e=!1,f=goog.i18n.bidi.stripHtmlIfNeeded_(a,b).split(goog.i18n.bidi.wordSeparatorRe_),g=0;g<f.length;g++){var h=f[g];goog.i18n.bidi.startsWithRtl(h)?(c++,d++):goog.i18n.bidi.isRequiredLtrRe_.test(h)?e=!0:goog.i18n.bidi.hasAnyLtr(h)?d++:goog.i18n.bidi.hasNumeralsRe_.test(h)&&(e=!0)}return 0==d?e?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:c/d>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};
goog.i18n.bidi.detectRtlDirectionality=function(a,b){return goog.i18n.bidi.estimateDirection(a,b)==goog.i18n.bidi.Dir.RTL};goog.i18n.bidi.setElementDirAndAlign=function(a,b){if(a&&(b=goog.i18n.bidi.toDir(b)))a.style.textAlign=b==goog.i18n.bidi.Dir.RTL?"right":"left",a.dir=b==goog.i18n.bidi.Dir.RTL?"rtl":"ltr"};goog.i18n.bidi.DirectionalString=function(){};goog.html={};goog.html.SafeUrl=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="";this.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez";goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0;goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_};
goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR};goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"});
goog.html.SafeUrl.unwrap=function(a){if(a instanceof goog.html.SafeUrl&&a.constructor===goog.html.SafeUrl&&a.SAFE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;goog.asserts.fail("expected object of type SafeUrl, got '"+a+"'");return"type_error:SafeUrl"};goog.html.SafeUrl.fromConstant=function(a){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse_(goog.string.Const.unwrap(a))};
goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto):|[^&:/?#]*(?:[/?#]|$))/i;goog.html.SafeUrl.sanitize=function(a){a=a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);a=goog.html.SAFE_URL_PATTERN_.test(a)?goog.html.SafeUrl.normalize_(a):goog.html.SafeUrl.INNOCUOUS_STRING;return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse_(a)};
goog.html.SafeUrl.normalize_=function(a){try{var b=encodeURI(a)}catch(c){return goog.html.SafeUrl.INNOCUOUS_STRING}return b.replace(goog.html.SafeUrl.NORMALIZE_MATCHER_,function(a){return goog.html.SafeUrl.NORMALIZE_REPLACER_MAP_[a]})};goog.html.SafeUrl.NORMALIZE_MATCHER_=/[()']|%5B|%5D|%25/g;goog.html.SafeUrl.NORMALIZE_REPLACER_MAP_={"'":"%27","(":"%28",")":"%29","%5B":"[","%5D":"]","%25":"%"};goog.html.SafeUrl.from=function(a){return a instanceof goog.html.SafeUrl?a:goog.html.SafeUrl.sanitize(a)};
goog.html.SafeUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse_=function(a){var b=new goog.html.SafeUrl;b.privateDoNotAccessOrElseSafeHtmlWrappedValue_=a;return b};goog.dom.tags={};goog.dom.tags.VOID_TAGS_=goog.object.createSet("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));goog.dom.tags.isVoidTag=function(a){return a in goog.dom.tags.VOID_TAGS_};goog.html.SafeStyle=function(){this.privateDoNotAccessOrElseSafeStyleWrappedValue_="";this.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0;
goog.html.SafeStyle.fromConstant=function(a){a=goog.string.Const.unwrap(a);if(0===a.length)return goog.html.SafeStyle.EMPTY;goog.asserts.assert(!/[<>]/.test(a),"Forbidden characters in style string: "+a);goog.asserts.assert(goog.string.endsWith(a,";"),"Last character of style string is not ';': "+a);goog.asserts.assert(goog.string.contains(a,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+a);return goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse_(a)};
goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_};goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"});
goog.html.SafeStyle.unwrap=function(a){if(a instanceof goog.html.SafeStyle&&a.constructor===goog.html.SafeStyle&&a.SAFE_STYLE_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeStyleWrappedValue_;goog.asserts.fail("expected object of type SafeStyle, got '"+a+"'");return"type_error:SafeStyle"};
goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse_=function(a){var b=new goog.html.SafeStyle;b.privateDoNotAccessOrElseSafeStyleWrappedValue_=a;return b};goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse_("");goog.html.SafeStyle.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.SafeHtml=function(){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_="";this.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_;this.dir_=null};goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_};goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0;goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_};
goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"});goog.html.SafeHtml.unwrap=function(a){if(a instanceof goog.html.SafeHtml&&a.constructor===goog.html.SafeHtml&&a.SAFE_HTML_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseSafeHtmlWrappedValue_;goog.asserts.fail("expected object of type SafeHtml, got '"+a+"'");return"type_error:SafeHtml"};
goog.html.SafeHtml.htmlEscape=function(a){var b=null;a.implementsGoogI18nBidiDirectionalString&&(b=a.getDirection());a=a.implementsGoogStringTypedString?a.getTypedStringValue():String(a);return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse_(goog.string.htmlEscape(a),b)};
goog.html.SafeHtml.from=function(a){return a instanceof goog.html.SafeHtml?a:a.implementsGoogI18nBidiDirectionalString?goog.html.SafeHtml.htmlEscape(a):a.implementsGoogStringTypedString?goog.html.SafeHtml.htmlEscape(a.getTypedStringValue()):goog.html.SafeHtml.htmlEscape(String(a))};goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/;goog.html.SafeHtml.URL_ATTRIBUTES_=goog.object.createSet("action","cite","data","formaction","href","manifest","poster","src");
goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_=goog.object.createSet("link","script","style");
goog.html.SafeHtml.create=function(a,b,c){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(a))throw Error("Invalid tag name <"+a+">.");if(a.toLowerCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error("Tag name <"+a+"> is not allowed for SafeHtml.");var d=null,e="<"+a;if(b)for(var f in b){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(f))throw Error('Invalid attribute name "'+f+'".');var g=b[f];if(null!=g){if(g instanceof goog.string.Const)g=goog.string.Const.unwrap(g);else{if(/^on/i.test(f))throw Error('Attribute "'+
f+'" requires goog.string.Const value, "'+g+'" given.');if(g instanceof goog.html.SafeUrl)g=goog.html.SafeUrl.unwrap(g);else{if(f.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)throw Error('Attribute "'+f+'" requires goog.string.Const or goog.html.SafeUrl value, "'+g+'" given.');g instanceof goog.html.SafeStyle&&(goog.asserts.assert("style"==f.toLowerCase(),'goog.html.SafeStyle is only supported in "style" attribute.'),g=goog.html.SafeStyle.unwrap(g))}}e+=" "+f+'="'+goog.string.htmlEscape(g)+
'"'}}goog.isDef(c)?goog.isArray(c)||(c=[c]):c=[];goog.dom.tags.isVoidTag(a.toLowerCase())?(goog.asserts.assert(!c.length,"Void tag <"+a+"> does not allow content."),e+=">"):(d=goog.html.SafeHtml.concat(c),e+=">"+goog.html.SafeHtml.unwrap(d)+"</"+a+">",d=d.getDirection());(a=b&&b.dir)&&(d="ltr"==a.toLowerCase()?goog.i18n.bidi.Dir.LTR:"rtl"==a.toLowerCase()?goog.i18n.bidi.Dir.RTL:null);return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse_(e,d)};
goog.html.SafeHtml.concat=function(a){var b=goog.i18n.bidi.Dir.NEUTRAL,c="",d=function(a){goog.isArray(a)?goog.array.forEach(a,d):(a=goog.html.SafeHtml.from(a),c+=goog.html.SafeHtml.unwrap(a),a=a.getDirection(),b==goog.i18n.bidi.Dir.NEUTRAL?b=a:a!=goog.i18n.bidi.Dir.NEUTRAL&&b!=a&&(b=null))};goog.array.forEach(arguments,d);return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse_(c,b)};goog.html.SafeHtml.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};
goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse_=function(a,b){var c=new goog.html.SafeHtml;c.privateDoNotAccessOrElseSafeHtmlWrappedValue_=a;c.dir_=b;return c};goog.html.SafeHtml.EMPTY=goog.html.SafeHtml.htmlEscape("");goog.dom.safe={};goog.dom.safe.setInnerHtml=function(a,b){a.innerHTML=goog.html.SafeHtml.unwrap(b)};goog.dom.safe.setLocationHref=function(a,b){var c;c=b instanceof goog.html.SafeUrl?b:goog.html.SafeUrl.sanitize(b);a.href=goog.html.SafeUrl.unwrap(c)};goog.positioning.ClientPosition=function(a,b){this.coordinate=a instanceof goog.math.Coordinate?a:new goog.math.Coordinate(a,b)};goog.inherits(goog.positioning.ClientPosition,goog.positioning.AbstractPosition);
goog.positioning.ClientPosition.prototype.reposition=function(a,b,c,d){goog.asserts.assert(a);var e=goog.style.getViewportPageOffset(goog.dom.getOwnerDocument(a)),f=this.coordinate.x+e.x,e=this.coordinate.y+e.y,g=goog.positioning.getOffsetParentPageOffset(a),f=f-g.x,e=e-g.y;goog.positioning.positionAtCoordinate(new goog.math.Coordinate(f,e),a,b,c,null,null,d)};goog.positioning.ViewportClientPosition=function(a,b){goog.positioning.ClientPosition.call(this,a,b)};goog.inherits(goog.positioning.ViewportClientPosition,goog.positioning.ClientPosition);goog.positioning.ViewportClientPosition.prototype.lastResortOverflow_=0;goog.positioning.ViewportClientPosition.prototype.setLastResortOverflow=function(a){this.lastResortOverflow_=a};
goog.positioning.ViewportClientPosition.prototype.reposition=function(a,b,c,d){var e=goog.style.getClientViewportElement(a),e=goog.style.getVisibleRectForElement(e),f=goog.dom.getDomHelper(a).getDocumentScrollElement(),f=new goog.math.Coordinate(this.coordinate.x+f.scrollLeft,this.coordinate.y+f.scrollTop),g=goog.positioning.Overflow.FAIL_X|goog.positioning.Overflow.FAIL_Y,h=b,k=goog.positioning.positionAtCoordinate(f,a,h,c,e,g,d);if(0!=(k&goog.positioning.OverflowStatus.FAILED)){if(k&goog.positioning.OverflowStatus.FAILED_LEFT||
k&goog.positioning.OverflowStatus.FAILED_RIGHT)h=goog.positioning.flipCornerHorizontal(h);if(k&goog.positioning.OverflowStatus.FAILED_TOP||k&goog.positioning.OverflowStatus.FAILED_BOTTOM)h=goog.positioning.flipCornerVertical(h);k=goog.positioning.positionAtCoordinate(f,a,h,c,e,g,d);0!=(k&goog.positioning.OverflowStatus.FAILED)&&goog.positioning.positionAtCoordinate(f,a,b,c,e,this.lastResortOverflow_,d)}};goog.positioning.AbsolutePosition=function(a,b){this.coordinate=a instanceof goog.math.Coordinate?a:new goog.math.Coordinate(a,b)};goog.inherits(goog.positioning.AbsolutePosition,goog.positioning.AbstractPosition);goog.positioning.AbsolutePosition.prototype.reposition=function(a,b,c,d){goog.positioning.positionAtCoordinate(this.coordinate,a,b,c,null,null,d)};goog.positioning.AnchoredViewportPosition=function(a,b,c,d){goog.positioning.AnchoredPosition.call(this,a,b);this.lastResortOverflow_=c?goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.ADJUST_Y:goog.positioning.Overflow.IGNORE;this.overflowConstraint_=d||void 0};goog.inherits(goog.positioning.AnchoredViewportPosition,goog.positioning.AnchoredPosition);goog.positioning.AnchoredViewportPosition.prototype.getOverflowConstraint=function(){return this.overflowConstraint_};
goog.positioning.AnchoredViewportPosition.prototype.setOverflowConstraint=function(a){this.overflowConstraint_=a};goog.positioning.AnchoredViewportPosition.prototype.getLastResortOverflow=function(){return this.lastResortOverflow_};goog.positioning.AnchoredViewportPosition.prototype.setLastResortOverflow=function(a){this.lastResortOverflow_=a};
goog.positioning.AnchoredViewportPosition.prototype.reposition=function(a,b,c,d){var e=goog.positioning.positionAtAnchor(this.element,this.corner,a,b,null,c,goog.positioning.Overflow.FAIL_X|goog.positioning.Overflow.FAIL_Y,d,this.overflowConstraint_);if(e&goog.positioning.OverflowStatus.FAILED){var f=this.adjustCorner(e,this.corner);b=this.adjustCorner(e,b);e=goog.positioning.positionAtAnchor(this.element,f,a,b,null,c,goog.positioning.Overflow.FAIL_X|goog.positioning.Overflow.FAIL_Y,d,this.overflowConstraint_);
e&goog.positioning.OverflowStatus.FAILED&&(f=this.adjustCorner(e,f),b=this.adjustCorner(e,b),goog.positioning.positionAtAnchor(this.element,f,a,b,null,c,this.getLastResortOverflow(),d,this.overflowConstraint_))}};goog.positioning.AnchoredViewportPosition.prototype.adjustCorner=function(a,b){a&goog.positioning.OverflowStatus.FAILED_HORIZONTAL&&(b=goog.positioning.flipCornerHorizontal(b));a&goog.positioning.OverflowStatus.FAILED_VERTICAL&&(b=goog.positioning.flipCornerVertical(b));return b};goog.ui.Popup=function(a,b){this.popupCorner_=goog.positioning.Corner.TOP_START;this.position_=b||void 0;goog.ui.PopupBase.call(this,a)};goog.inherits(goog.ui.Popup,goog.ui.PopupBase);goog.ui.Popup.Corner=goog.positioning.Corner;goog.ui.Popup.Overflow=goog.positioning.Overflow;goog.ui.Popup.prototype.getPinnedCorner=function(){return this.popupCorner_};goog.ui.Popup.prototype.setPinnedCorner=function(a){this.popupCorner_=a;this.isVisible()&&this.reposition()};
goog.ui.Popup.prototype.getPosition=function(){return this.position_||null};goog.ui.Popup.prototype.setPosition=function(a){this.position_=a||void 0;this.isVisible()&&this.reposition()};goog.ui.Popup.prototype.getMargin=function(){return this.margin_||null};goog.ui.Popup.prototype.setMargin=function(a,b,c,d){this.margin_=null==a||a instanceof goog.math.Box?a:new goog.math.Box(a,b,c,d);this.isVisible()&&this.reposition()};
goog.ui.Popup.prototype.reposition=function(){if(this.position_){var a=!this.isVisible()&&this.getType()!=goog.ui.PopupBase.Type.MOVE_OFFSCREEN,b=this.getElement();a&&(b.style.visibility="hidden",goog.style.setElementShown(b,!0));this.position_.reposition(b,this.popupCorner_,this.margin_);a&&goog.style.setElementShown(b,!1)}};goog.ui.Popup.AnchoredPosition=goog.positioning.AnchoredPosition;goog.ui.Popup.AnchoredViewPortPosition=goog.positioning.AnchoredViewportPosition;
goog.ui.Popup.AbsolutePosition=goog.positioning.AbsolutePosition;goog.ui.Popup.ViewPortPosition=goog.positioning.ViewportPosition;goog.ui.Popup.ClientPosition=goog.positioning.ClientPosition;goog.ui.Popup.ViewPortClientPosition=goog.positioning.ViewportClientPosition;goog.html.TrustedResourceUrl=function(){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_="";this.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_=goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_};goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0;goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_};
goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0;goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR};goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"});
goog.html.TrustedResourceUrl.unwrap=function(a){if(a instanceof goog.html.TrustedResourceUrl&&a.constructor===goog.html.TrustedResourceUrl&&a.TRUSTED_RESOURCE_URL_TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_===goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_)return a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_;goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+a+"'");return"type_error:TrustedResourceUrl"};goog.html.TrustedResourceUrl.fromConstant=function(a){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse_(goog.string.Const.unwrap(a))};
goog.html.TrustedResourceUrl.TYPE_MARKER_GOOG_HTML_SECURITY_PRIVATE_={};goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse_=function(a){var b=new goog.html.TrustedResourceUrl;b.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=a;return b};goog.html.legacyconversions={};goog.html.legacyconversions.ALLOW_LEGACY_CONVERSIONS=!0;goog.html.legacyconversions.ALLOW_LEGACY_CONVERSION_OVERRIDES=!1;goog.html.legacyconversions.safeHtmlFromString=function(a,b){goog.html.legacyconversions.throwIfConversionDisallowed_(b);return goog.html.legacyconversions.createSafeHtmlSecurityPrivateDoNotAccessOrElse_(a)};goog.html.legacyconversions.trustedResourceUrlFromString=function(a,b){goog.html.legacyconversions.throwIfConversionDisallowed_(b);return goog.html.legacyconversions.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse_(a)};
goog.html.legacyconversions.safeUrlFromString=function(a,b){goog.html.legacyconversions.throwIfConversionDisallowed_(b);return goog.html.legacyconversions.createSafeUrlSecurityPrivateDoNotAccessOrElse_(a)};goog.html.legacyconversions.createSafeHtmlSecurityPrivateDoNotAccessOrElse_=function(a){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse_(a,null)};goog.html.legacyconversions.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse_=function(a){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse_(a)};
goog.html.legacyconversions.createSafeUrlSecurityPrivateDoNotAccessOrElse_=function(a){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse_(a)};goog.html.legacyconversions.throwIfConversionDisallowed_=function(a){if(!goog.html.legacyconversions.ALLOW_LEGACY_CONVERSIONS&&(!goog.html.legacyconversions.ALLOW_LEGACY_CONVERSION_OVERRIDES||!a))throw Error("Error: Legacy conversion from string to goog.html types is disabled");};goog.structs={};goog.structs.Collection=function(){};goog.structs.getCount=function(a){return"function"==typeof a.getCount?a.getCount():goog.isArrayLike(a)||goog.isString(a)?a.length:goog.object.getCount(a)};goog.structs.getValues=function(a){if("function"==typeof a.getValues)return a.getValues();if(goog.isString(a))return a.split("");if(goog.isArrayLike(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return goog.object.getValues(a)};
goog.structs.getKeys=function(a){if("function"==typeof a.getKeys)return a.getKeys();if("function"!=typeof a.getValues){if(goog.isArrayLike(a)||goog.isString(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return goog.object.getKeys(a)}};goog.structs.contains=function(a,b){return"function"==typeof a.contains?a.contains(b):"function"==typeof a.containsValue?a.containsValue(b):goog.isArrayLike(a)||goog.isString(a)?goog.array.contains(a,b):goog.object.containsValue(a,b)};
goog.structs.isEmpty=function(a){return"function"==typeof a.isEmpty?a.isEmpty():goog.isArrayLike(a)||goog.isString(a)?goog.array.isEmpty(a):goog.object.isEmpty(a)};goog.structs.clear=function(a){"function"==typeof a.clear?a.clear():goog.isArrayLike(a)?goog.array.clear(a):goog.object.clear(a)};
goog.structs.forEach=function(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(goog.isArrayLike(a)||goog.isString(a))goog.array.forEach(a,b,c);else for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)};
goog.structs.filter=function(a,b,c){if("function"==typeof a.filter)return a.filter(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.filter(a,b,c);var d,e=goog.structs.getKeys(a),f=goog.structs.getValues(a),g=f.length;if(e){d={};for(var h=0;h<g;h++)b.call(c,f[h],e[h],a)&&(d[e[h]]=f[h])}else{d=[];for(h=0;h<g;h++)b.call(c,f[h],void 0,a)&&d.push(f[h])}return d};
goog.structs.map=function(a,b,c){if("function"==typeof a.map)return a.map(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.map(a,b,c);var d,e=goog.structs.getKeys(a),f=goog.structs.getValues(a),g=f.length;if(e){d={};for(var h=0;h<g;h++)d[e[h]]=b.call(c,f[h],e[h],a)}else{d=[];for(h=0;h<g;h++)d[h]=b.call(c,f[h],void 0,a)}return d};
goog.structs.some=function(a,b,c){if("function"==typeof a.some)return a.some(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.some(a,b,c);for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)if(b.call(c,e[g],d&&d[g],a))return!0;return!1};
goog.structs.every=function(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(goog.isArrayLike(a)||goog.isString(a))return goog.array.every(a,b,c);for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return!1;return!0};goog.structs.Map=function(a,b){this.map_={};this.keys_=[];this.version_=this.count_=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};goog.structs.Map.prototype.getCount=function(){return this.count_};goog.structs.Map.prototype.getValues=function(){this.cleanupKeysArray_();for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};
goog.structs.Map.prototype.getKeys=function(){this.cleanupKeysArray_();return this.keys_.concat()};goog.structs.Map.prototype.containsKey=function(a){return goog.structs.Map.hasKey_(this.map_,a)};goog.structs.Map.prototype.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(goog.structs.Map.hasKey_(this.map_,c)&&this.map_[c]==a)return!0}return!1};
goog.structs.Map.prototype.equals=function(a,b){if(this===a)return!0;if(this.count_!=a.getCount())return!1;var c=b||goog.structs.Map.defaultEquals;this.cleanupKeysArray_();for(var d,e=0;d=this.keys_[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};goog.structs.Map.defaultEquals=function(a,b){return a===b};goog.structs.Map.prototype.isEmpty=function(){return 0==this.count_};goog.structs.Map.prototype.clear=function(){this.map_={};this.version_=this.count_=this.keys_.length=0};
goog.structs.Map.prototype.remove=function(a){return goog.structs.Map.hasKey_(this.map_,a)?(delete this.map_[a],this.count_--,this.version_++,this.keys_.length>2*this.count_&&this.cleanupKeysArray_(),!0):!1};
goog.structs.Map.prototype.cleanupKeysArray_=function(){if(this.count_!=this.keys_.length){for(var a=0,b=0;a<this.keys_.length;){var c=this.keys_[a];goog.structs.Map.hasKey_(this.map_,c)&&(this.keys_[b++]=c);a++}this.keys_.length=b}if(this.count_!=this.keys_.length){for(var d={},b=a=0;a<this.keys_.length;)c=this.keys_[a],goog.structs.Map.hasKey_(d,c)||(this.keys_[b++]=c,d[c]=1),a++;this.keys_.length=b}};
goog.structs.Map.prototype.get=function(a,b){return goog.structs.Map.hasKey_(this.map_,a)?this.map_[a]:b};goog.structs.Map.prototype.set=function(a,b){goog.structs.Map.hasKey_(this.map_,a)||(this.count_++,this.keys_.push(a),this.version_++);this.map_[a]=b};goog.structs.Map.prototype.addAll=function(a){var b;a instanceof goog.structs.Map?(b=a.getKeys(),a=a.getValues()):(b=goog.object.getKeys(a),a=goog.object.getValues(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};
goog.structs.Map.prototype.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};goog.structs.Map.prototype.clone=function(){return new goog.structs.Map(this)};goog.structs.Map.prototype.transpose=function(){for(var a=new goog.structs.Map,b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.set(this.map_[c],c)}return a};
goog.structs.Map.prototype.toObject=function(){this.cleanupKeysArray_();for(var a={},b=0;b<this.keys_.length;b++){var c=this.keys_[b];a[c]=this.map_[c]}return a};goog.structs.Map.prototype.getKeyIterator=function(){return this.__iterator__(!0)};goog.structs.Map.prototype.getValueIterator=function(){return this.__iterator__(!1)};
goog.structs.Map.prototype.__iterator__=function(a){this.cleanupKeysArray_();var b=0,c=this.keys_,d=this.map_,e=this.version_,f=this,g=new goog.iter.Iterator;g.next=function(){for(;;){if(e!=f.version_)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw goog.iter.StopIteration;var g=c[b++];return a?g:d[g]}};return g};goog.structs.Map.hasKey_=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};goog.structs.Set=function(a){this.map_=new goog.structs.Map;a&&this.addAll(a)};goog.structs.Set.getKey_=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+goog.getUid(a):b.substr(0,1)+a};goog.structs.Set.prototype.getCount=function(){return this.map_.getCount()};goog.structs.Set.prototype.add=function(a){this.map_.set(goog.structs.Set.getKey_(a),a)};goog.structs.Set.prototype.addAll=function(a){a=goog.structs.getValues(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])};
goog.structs.Set.prototype.removeAll=function(a){a=goog.structs.getValues(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};goog.structs.Set.prototype.remove=function(a){return this.map_.remove(goog.structs.Set.getKey_(a))};goog.structs.Set.prototype.clear=function(){this.map_.clear()};goog.structs.Set.prototype.isEmpty=function(){return this.map_.isEmpty()};goog.structs.Set.prototype.contains=function(a){return this.map_.containsKey(goog.structs.Set.getKey_(a))};
goog.structs.Set.prototype.containsAll=function(a){return goog.structs.every(a,this.contains,this)};goog.structs.Set.prototype.intersection=function(a){var b=new goog.structs.Set;a=goog.structs.getValues(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};goog.structs.Set.prototype.difference=function(a){var b=this.clone();b.removeAll(a);return b};goog.structs.Set.prototype.getValues=function(){return this.map_.getValues()};goog.structs.Set.prototype.clone=function(){return new goog.structs.Set(this)};
goog.structs.Set.prototype.equals=function(a){return this.getCount()==goog.structs.getCount(a)&&this.isSubsetOf(a)};goog.structs.Set.prototype.isSubsetOf=function(a){var b=goog.structs.getCount(a);if(this.getCount()>b)return!1;!(a instanceof goog.structs.Set)&&5<b&&(a=new goog.structs.Set(a));return goog.structs.every(this,function(b){return goog.structs.contains(a,b)})};goog.structs.Set.prototype.__iterator__=function(a){return this.map_.__iterator__(!1)};goog.ui.Tooltip=function(a,b,c){this.dom_=c||(a?goog.dom.getDomHelper(goog.dom.getElement(a)):goog.dom.getDomHelper());goog.ui.Popup.call(this,this.dom_.createDom("div",{style:"position:absolute;display:none;"}));this.cursorPosition=new goog.math.Coordinate(1,1);this.elements_=new goog.structs.Set;a&&this.attach(a);null!=b&&this.setText(b)};goog.inherits(goog.ui.Tooltip,goog.ui.Popup);goog.ui.Tooltip.ALLOW_UNSAFE_API=!1;goog.ui.Tooltip.activeInstances_=[];goog.ui.Tooltip.prototype.activeEl_=null;
goog.ui.Tooltip.prototype.className="goog-tooltip";goog.ui.Tooltip.prototype.showDelayMs_=500;goog.ui.Tooltip.prototype.hideDelayMs_=0;goog.ui.Tooltip.State={INACTIVE:0,WAITING_TO_SHOW:1,SHOWING:2,WAITING_TO_HIDE:3,UPDATING:4};goog.ui.Tooltip.Activation={CURSOR:0,FOCUS:1};goog.ui.Tooltip.prototype.getDomHelper=function(){return this.dom_};goog.ui.Tooltip.prototype.getChildTooltip=function(){return this.childTooltip_};
goog.ui.Tooltip.prototype.attach=function(a){a=goog.dom.getElement(a);this.elements_.add(a);goog.events.listen(a,goog.events.EventType.MOUSEOVER,this.handleMouseOver,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEOUT,this.handleMouseOutAndBlur,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEMOVE,this.handleMouseMove,!1,this);goog.events.listen(a,goog.events.EventType.FOCUS,this.handleFocus,!1,this);goog.events.listen(a,goog.events.EventType.BLUR,this.handleMouseOutAndBlur,!1,this)};
goog.ui.Tooltip.prototype.detach=function(a){if(a)a=goog.dom.getElement(a),this.detachElement_(a),this.elements_.remove(a);else{for(var b=this.elements_.getValues(),c=0;a=b[c];c++)this.detachElement_(a);this.elements_.clear()}};
goog.ui.Tooltip.prototype.detachElement_=function(a){goog.events.unlisten(a,goog.events.EventType.MOUSEOVER,this.handleMouseOver,!1,this);goog.events.unlisten(a,goog.events.EventType.MOUSEOUT,this.handleMouseOutAndBlur,!1,this);goog.events.unlisten(a,goog.events.EventType.MOUSEMOVE,this.handleMouseMove,!1,this);goog.events.unlisten(a,goog.events.EventType.FOCUS,this.handleFocus,!1,this);goog.events.unlisten(a,goog.events.EventType.BLUR,this.handleMouseOutAndBlur,!1,this)};
goog.ui.Tooltip.prototype.setShowDelayMs=function(a){this.showDelayMs_=a};goog.ui.Tooltip.prototype.getShowDelayMs=function(){return this.showDelayMs_};goog.ui.Tooltip.prototype.setHideDelayMs=function(a){this.hideDelayMs_=a};goog.ui.Tooltip.prototype.getHideDelayMs=function(){return this.hideDelayMs_};goog.ui.Tooltip.prototype.setText=function(a){goog.dom.setTextContent(this.getElement(),a)};
goog.ui.Tooltip.prototype.setHtml=function(a){this.setSafeHtml(goog.html.legacyconversions.safeHtmlFromString(a,goog.ui.Tooltip.ALLOW_UNSAFE_API))};goog.ui.Tooltip.prototype.setSafeHtml=function(a){var b=this.getElement();b&&goog.dom.safe.setInnerHtml(b,a)};goog.ui.Tooltip.prototype.setElement=function(a){var b=this.getElement();b&&goog.dom.removeNode(b);goog.ui.Tooltip.superClass_.setElement.call(this,a);a&&(b=this.dom_.getDocument().body,b.insertBefore(a,b.lastChild))};
goog.ui.Tooltip.prototype.getText=function(){return goog.dom.getTextContent(this.getElement())};goog.ui.Tooltip.prototype.getHtml=function(){return this.getElement().innerHTML};goog.ui.Tooltip.prototype.getState=function(){return this.showTimer?this.isVisible()?goog.ui.Tooltip.State.UPDATING:goog.ui.Tooltip.State.WAITING_TO_SHOW:this.hideTimer?goog.ui.Tooltip.State.WAITING_TO_HIDE:this.isVisible()?goog.ui.Tooltip.State.SHOWING:goog.ui.Tooltip.State.INACTIVE};
goog.ui.Tooltip.prototype.setRequireInteraction=function(a){this.requireInteraction_=a};goog.ui.Tooltip.prototype.isCoordinateInTooltip=function(a){if(!this.isVisible())return!1;var b=goog.style.getPageOffset(this.getElement()),c=goog.style.getSize(this.getElement());return b.x<=a.x&&a.x<=b.x+c.width&&b.y<=a.y&&a.y<=b.y+c.height};
goog.ui.Tooltip.prototype.onBeforeShow=function(){if(!goog.ui.PopupBase.prototype.onBeforeShow.call(this))return!1;if(this.anchor)for(var a,b=0;a=goog.ui.Tooltip.activeInstances_[b];b++)goog.dom.contains(a.getElement(),this.anchor)||a.setVisible(!1);goog.array.insert(goog.ui.Tooltip.activeInstances_,this);a=this.getElement();a.className=this.className;this.clearHideTimer();goog.events.listen(a,goog.events.EventType.MOUSEOVER,this.handleTooltipMouseOver,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEOUT,
this.handleTooltipMouseOut,!1,this);this.clearShowTimer();return!0};
goog.ui.Tooltip.prototype.onHide_=function(){goog.array.remove(goog.ui.Tooltip.activeInstances_,this);for(var a=this.getElement(),b,c=0;b=goog.ui.Tooltip.activeInstances_[c];c++)b.anchor&&goog.dom.contains(a,b.anchor)&&b.setVisible(!1);this.parentTooltip_&&this.parentTooltip_.startHideTimer();goog.events.unlisten(a,goog.events.EventType.MOUSEOVER,this.handleTooltipMouseOver,!1,this);goog.events.unlisten(a,goog.events.EventType.MOUSEOUT,this.handleTooltipMouseOut,!1,this);this.anchor=void 0;this.getState()==
goog.ui.Tooltip.State.INACTIVE&&(this.seenInteraction_=!1);goog.ui.PopupBase.prototype.onHide_.call(this)};goog.ui.Tooltip.prototype.maybeShow=function(a,b){this.anchor==a&&this.elements_.contains(this.anchor)&&(this.seenInteraction_||!this.requireInteraction_?(this.setVisible(!1),this.isVisible()||this.positionAndShow_(a,b)):this.anchor=void 0);this.showTimer=void 0};goog.ui.Tooltip.prototype.getElements=function(){return this.elements_};goog.ui.Tooltip.prototype.getActiveElement=function(){return this.activeEl_};
goog.ui.Tooltip.prototype.setActiveElement=function(a){this.activeEl_=a};goog.ui.Tooltip.prototype.showForElement=function(a,b){this.attach(a);this.activeEl_=a;this.positionAndShow_(a,b)};goog.ui.Tooltip.prototype.positionAndShow_=function(a,b){this.anchor=a;this.setPosition(b||this.getPositioningStrategy(goog.ui.Tooltip.Activation.CURSOR));this.setVisible(!0)};
goog.ui.Tooltip.prototype.maybeHide=function(a){this.hideTimer=void 0;a==this.anchor&&(null==this.activeEl_||this.activeEl_!=this.getElement()&&!this.elements_.contains(this.activeEl_))&&!this.hasActiveChild()&&this.setVisible(!1)};goog.ui.Tooltip.prototype.hasActiveChild=function(){return!(!this.childTooltip_||!this.childTooltip_.activeEl_)};
goog.ui.Tooltip.prototype.saveCursorPosition_=function(a){var b=this.dom_.getDocumentScroll();this.cursorPosition.x=a.clientX+b.x;this.cursorPosition.y=a.clientY+b.y};goog.ui.Tooltip.prototype.handleMouseOver=function(a){var b=this.getAnchorFromElement(a.target);this.activeEl_=b;this.clearHideTimer();b!=this.anchor&&(this.anchor=b,this.startShowTimer(b),this.checkForParentTooltip_(),this.saveCursorPosition_(a))};
goog.ui.Tooltip.prototype.getAnchorFromElement=function(a){try{for(;a&&!this.elements_.contains(a);)a=a.parentNode;return a}catch(b){return null}};goog.ui.Tooltip.prototype.handleMouseMove=function(a){this.saveCursorPosition_(a);this.seenInteraction_=!0};
goog.ui.Tooltip.prototype.handleFocus=function(a){this.activeEl_=a=this.getAnchorFromElement(a.target);this.seenInteraction_=!0;if(this.anchor!=a){this.anchor=a;var b=this.getPositioningStrategy(goog.ui.Tooltip.Activation.FOCUS);this.clearHideTimer();this.startShowTimer(a,b);this.checkForParentTooltip_()}};goog.ui.Tooltip.prototype.getPositioningStrategy=function(a){return a==goog.ui.Tooltip.Activation.CURSOR?(a=this.cursorPosition.clone(),new goog.ui.Tooltip.CursorTooltipPosition(a)):new goog.ui.Tooltip.ElementTooltipPosition(this.activeEl_)};
goog.ui.Tooltip.prototype.checkForParentTooltip_=function(){if(this.anchor)for(var a,b=0;a=goog.ui.Tooltip.activeInstances_[b];b++)goog.dom.contains(a.getElement(),this.anchor)&&(a.childTooltip_=this,this.parentTooltip_=a)};
goog.ui.Tooltip.prototype.handleMouseOutAndBlur=function(a){var b=this.getAnchorFromElement(a.target),c=this.getAnchorFromElement(a.relatedTarget);b!=c&&(b==this.activeEl_&&(this.activeEl_=null),this.clearShowTimer(),this.seenInteraction_=!1,this.isVisible()&&(!a.relatedTarget||!goog.dom.contains(this.getElement(),a.relatedTarget))?this.startHideTimer():this.anchor=void 0)};
goog.ui.Tooltip.prototype.handleTooltipMouseOver=function(a){a=this.getElement();this.activeEl_!=a&&(this.clearHideTimer(),this.activeEl_=a)};goog.ui.Tooltip.prototype.handleTooltipMouseOut=function(a){var b=this.getElement();if(this.activeEl_==b&&(!a.relatedTarget||!goog.dom.contains(b,a.relatedTarget)))this.activeEl_=null,this.startHideTimer()};goog.ui.Tooltip.prototype.startShowTimer=function(a,b){this.showTimer||(this.showTimer=goog.Timer.callOnce(goog.bind(this.maybeShow,this,a,b),this.showDelayMs_))};
goog.ui.Tooltip.prototype.clearShowTimer=function(){this.showTimer&&(goog.Timer.clear(this.showTimer),this.showTimer=void 0)};goog.ui.Tooltip.prototype.startHideTimer=function(){this.getState()==goog.ui.Tooltip.State.SHOWING&&(this.hideTimer=goog.Timer.callOnce(goog.bind(this.maybeHide,this,this.anchor),this.getHideDelayMs()))};goog.ui.Tooltip.prototype.clearHideTimer=function(){this.hideTimer&&(goog.Timer.clear(this.hideTimer),this.hideTimer=void 0)};
goog.ui.Tooltip.prototype.disposeInternal=function(){this.setVisible(!1);this.clearShowTimer();this.detach();this.getElement()&&goog.dom.removeNode(this.getElement());this.activeEl_=null;delete this.dom_;goog.ui.Tooltip.superClass_.disposeInternal.call(this)};goog.ui.Tooltip.CursorTooltipPosition=function(a,b){goog.positioning.ViewportPosition.call(this,a,b)};goog.inherits(goog.ui.Tooltip.CursorTooltipPosition,goog.positioning.ViewportPosition);
goog.ui.Tooltip.CursorTooltipPosition.prototype.reposition=function(a,b,c){b=goog.style.getClientViewportElement(a);b=goog.style.getVisibleRectForElement(b);c=c?new goog.math.Box(c.top+10,c.right,c.bottom,c.left+10):new goog.math.Box(10,0,0,10);goog.positioning.positionAtCoordinate(this.coordinate,a,goog.positioning.Corner.TOP_START,c,b,goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.FAIL_Y)&goog.positioning.OverflowStatus.FAILED&&goog.positioning.positionAtCoordinate(this.coordinate,
a,goog.positioning.Corner.TOP_START,c,b,goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.ADJUST_Y)};goog.ui.Tooltip.ElementTooltipPosition=function(a){goog.positioning.AnchoredPosition.call(this,a,goog.positioning.Corner.BOTTOM_RIGHT)};goog.inherits(goog.ui.Tooltip.ElementTooltipPosition,goog.positioning.AnchoredPosition);
goog.ui.Tooltip.ElementTooltipPosition.prototype.reposition=function(a,b,c){var d=new goog.math.Coordinate(10,0);goog.positioning.positionAtAnchor(this.element,this.corner,a,b,d,c,goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.FAIL_Y)&goog.positioning.OverflowStatus.FAILED&&goog.positioning.positionAtAnchor(this.element,goog.positioning.Corner.TOP_RIGHT,a,goog.positioning.Corner.BOTTOM_LEFT,d,c,goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.ADJUST_Y)};neutron.dashboard.events.ErrorMessage=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.ERROR_MESSAGE;this.message=a;this.showPermanently=b};goog.inherits(neutron.dashboard.events.ErrorMessage,goog.events.Event);neutron.dashboard.events.GoToPane=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.GO_TO_PANE;this.paneName=a};goog.inherits(neutron.dashboard.events.GoToPane,goog.events.Event);neutron.dashboard.events.NewProject=function(){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.NEW_PROJECT};goog.inherits(neutron.dashboard.events.NewProject,goog.events.Event);neutron.dashboard.events.PathChange=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.PATH_CHANGE;this.path=a};goog.inherits(neutron.dashboard.events.PathChange,goog.events.Event);neutron.dashboard.events.ProjectChange=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.PROJECT_CHANGE;this.newProjectId=a;this.newProjectObj=b};goog.inherits(neutron.dashboard.events.ProjectChange,goog.events.Event);neutron.dashboard.events.BrowserApiEvent=function(a,b,c){goog.events.Event.call(this);this.type=a;this.data=b;this.status=c};goog.inherits(neutron.dashboard.events.BrowserApiEvent,goog.events.Event);neutron.dashboard.Notifier=function(){goog.events.EventTarget.call(this);this._arrHandlers=[]};goog.inherits(neutron.dashboard.Notifier,goog.events.EventTarget);neutron.dashboard.Notifier.EVENT_SUFFIX=" EVENT";neutron.dashboard.Notifier.prototype._realEventName=function(a){return a.toUpperCase()+neutron.dashboard.Notifier.EVENT_SUFFIX};
neutron.dashboard.Notifier.prototype.register=function(a,b,c,d){var e=goog.object.containsValue(neutron.dashboard.constants.BrowserAPIConstants,a),f=goog.object.containsValue(neutron.dashboard.events.EventType,a);if(!1==goog.isString(a)||!1==(e||f))console.error("Invalid parameter! It must be neutron.dashboard.constants.BrowserAPIConstants or neutron.dashboard.events.EventType");else if(!1==goog.isObject(b)||!0==goog.isFunction(b))console.error("Invalid parameter! It must be 'object'");else if(!1==
goog.isFunction(c))console.error("Invalid parameter! It must be some function inside handlerObject");else{d=d||!1;f=a;e&&(f=this._realEventName(a));var g=goog.array.find(this._arrHandlers,function(a){return a.handlerObj===b}),e=null;if(!1==goog.isDefAndNotNull(g))e={},g={handlerObj:b,map:e},this._arrHandlers.push(g);else if(e=g.map,g=e[a],goog.isDefAndNotNull(g)){console.warn("Object is already registered for "+a);return}g=null;if(d)var h=this,g=goog.events.listenOnce(this,f,function(d){c.call(b,
d);h.unregister(a,b)});else g=goog.events.listen(this,f,function(a){c.call(b,a)});e[a]=g}};
neutron.dashboard.Notifier.prototype.unregister=function(a,b){if(!1==goog.isString(a)||!1==goog.isDefAndNotNull(goog.object.containsValue(neutron.dashboard.constants.BrowserAPIConstants,a)))console.error("Invalid parameter! It must be neutron.dashboard.constants.BrowserAPIConstants");else if(!1==goog.isObject(b)||!0==goog.isFunction(b))console.error("Invalid parameter! It must be 'object'");else{var c=goog.array.findIndex(this._arrHandlers,function(a){return a.handlerObj===b});if(-1==c)console.warn("Object is not registered for any event!");
else{var d=this._arrHandlers[c].map,e=d[a];!1==goog.isDefAndNotNull(e)?console.warn("Object is not registered for such event "+a):(goog.events.unlistenByKey(e),delete d[a],!1==goog.isDefAndNotNull(goog.object.getAnyKey(d))&&goog.array.removeAt(this._arrHandlers,c))}}};
neutron.dashboard.Notifier.prototype.unregisterAll=function(a){if(!1==goog.isObject(a)||!0==goog.isFunction(a))console.error("Invalid parameter! It must be 'object'");else{var b=goog.array.findIndex(this._arrHandlers,function(b){return b.handlerObj===a});-1==b?console.log("Object is not registered for any event!"):(goog.object.forEach(this._arrHandlers[b].map,function(a){goog.events.unlistenByKey(a)}),goog.array.removeAt(this._arrHandlers,b))}};
neutron.dashboard.Notifier.prototype.fireBrowserApiEvent=function(a,b,c){!1==goog.isString(a)||!1==goog.isDefAndNotNull(goog.object.containsValue(neutron.dashboard.constants.BrowserAPIConstants,a))?console.error("Invalid parameter! It must be neutron.dashboard.constants.BrowserAPIConstants"):(a=this._realEventName(a),this.dispatchEvent(new neutron.dashboard.events.BrowserApiEvent(a,b,c)))};
neutron.dashboard.Notifier.prototype.fireProjectChange=function(a,b){goog.isDefAndNotNull(a)&&this.dispatchEvent(new neutron.dashboard.events.ProjectChange(a,b))};neutron.dashboard.Notifier.prototype.fireNewProject=function(){this.dispatchEvent(new neutron.dashboard.events.NewProject)};neutron.dashboard.Notifier.prototype.firePathChange=function(a){goog.isDefAndNotNull(a)&&this.dispatchEvent(new neutron.dashboard.events.PathChange(a))};
neutron.dashboard.Notifier.prototype.fireErrorMessage=function(a,b){this.dispatchEvent(new neutron.dashboard.events.ErrorMessage(a,b))};neutron.dashboard.Notifier.prototype.fireContexMenuWillAppear=function(){this.dispatchEvent(neutron.dashboard.events.EventType.CONTEXT_MENU_WILL_APPEAR)};neutron.dashboard.BaseClass=function(){goog.events.EventTarget.call(this);this._eventHanderKeys={};this.__init()};goog.inherits(neutron.dashboard.BaseClass,goog.events.EventTarget);neutron.dashboard.BaseClass.prototype.__init=function(){this.__connectEvents()};neutron.dashboard.BaseClass.prototype.__update=function(a,b,c,d,e){this._update()};neutron.dashboard.BaseClass.prototype.__remove=function(){this._remove()};neutron.dashboard.BaseClass.prototype.__hide=function(){this._hide()};
neutron.dashboard.BaseClass.prototype._hide=function(){};neutron.dashboard.BaseClass.prototype._addEventHandlerKey=function(a,b){this._eventHanderKeys[a]=b};neutron.dashboard.BaseClass.prototype._addEventHandlerKeyToGroup=function(a,b,c){this._eventHanderKeys["GRP:"+a+":"+b]=c};neutron.dashboard.BaseClass.prototype._disconnectEventByEventNameFromGroup=function(a,b){var c="GRP:"+a+":"+b;!0==goog.isDefAndNotNull(this._eventHanderKeys[c])&&(goog.events.unlistenByKey(this._eventHanderKeys[c]),delete this._eventHanderKeys[c])};
neutron.dashboard.BaseClass.prototype._disconnectEventByEventName=function(a){!0==goog.isDefAndNotNull(this._eventHanderKeys[a])&&(goog.events.unlistenByKey(this._eventHanderKeys[a]),delete this._eventHanderKeys[a])};neutron.dashboard.BaseClass.prototype._disconnectEventsGroup=function(a){var b=[],c=Object.keys(this._eventHanderKeys);a="GRP:"+a+":";for(var d=a.length,e=0;e<c.length;e++)c[e].substr(0,d)==a&&b.push(c[e]);for(e=0;e<b.length;e++)this._disconnectEventByEventName(b[e])};
neutron.dashboard.BaseClass.prototype.__connectEvents=function(){var a=this;this._eventHanderKeys[neutron.dashboard.events.EventType.UPDATE]=goog.events.listen(this,neutron.dashboard.events.EventType.UPDATE,function(b){a.__onUpdate(b)});this._eventHanderKeys[neutron.dashboard.events.EventType.REMOVE]=goog.events.listen(this,neutron.dashboard.events.EventType.REMOVE,function(b){a.__onRemove(b)});this._eventHanderKeys[neutron.dashboard.events.EventType.HIDE]=goog.events.listen(this,neutron.dashboard.events.EventType.HIDE,
function(b){a.__onHide(b)})};neutron.dashboard.BaseClass.prototype.__disconnectEvents=function(){for(var a in this._eventHanderKeys)goog.events.unlistenByKey(this._eventHanderKeys[a]);this._eventHanderKeys={};neutron.dashboard.notifier.unregisterAll(this)};neutron.dashboard.BaseClass.prototype.__onUpdate=function(a){this.__update(a.parentHtmlNode,a.left,a.top,a.width,a.height)};neutron.dashboard.BaseClass.prototype.__onRemove=function(a){this.__disconnectEvents();this.__remove()};
neutron.dashboard.BaseClass.prototype.__onHide=function(a){this.__hide()};neutron.dashboard.RenderableObject=function(){neutron.dashboard.BaseClass.call(this);this._area=this._htmlNode=null};goog.inherits(neutron.dashboard.RenderableObject,neutron.dashboard.BaseClass);neutron.dashboard.RenderableObject.prototype.__update=function(a,b,c,d,e){!1==goog.isDefAndNotNull(this._htmlNode)&&this._construct(a);this._area={left:b,top:c,width:d,height:e};this._update()};
neutron.dashboard.RenderableObject.prototype.__remove=function(){this._remove();!0==goog.isDefAndNotNull(this._htmlNode)&&(goog.dom.removeNode(this._htmlNode),this._htmlNode=null)};neutron.dashboard.RenderableObject.prototype.__hide=function(){this._hide();!0==goog.isDefAndNotNull(this._htmlNode)&&(goog.dom.removeNode(this._htmlNode),this._htmlNode=null)};neutron.dashboard.RenderableObject.prototype._construct=function(a){};neutron.dashboard.RenderableObject.prototype._update=function(){};
neutron.dashboard.RenderableObject.prototype._remove=function(){};neutron.dashboard.RenderableObject.prototype._hide=function(){};neutron.dashboard.RenderableObject.prototype.htmlNode=function(){return this._htmlNode};neutron.dashboard.RenderableObject.prototype.width=function(){return!1==goog.isDefAndNotNull(this._htmlNode)?0:goog.style.getSize(this._htmlNode).width};neutron.dashboard.RenderableObject.prototype.height=function(){return!1==goog.isDefAndNotNull(this._htmlNode)?0:goog.style.getSize(this._htmlNode).height};
neutron.dashboard.RenderableObject.prototype.area=function(){return this._area};neutron.dashboard.controls.CommentHere_v2=function(a,b){neutron.dashboard.RenderableObject.call(this);this._isClientComments2Compliant=a;this._parentActivityFeedPanel=b;this._obsoletePunchOutNode=this._obsoleteMessageNode=this._file=null;this._screenshotHeight=this._screenshotWidth=0;this._currentDocumentInfo={documentUri:"",lineageUri:"",docTypeName:""};this._commentHerePreviewNode=this._commentHerePostBtnsBarNode=this._commentHereImageBtnNode=this._commentHereCancelBtnNode=this._commentHerePostBtnNode=
this._commentHereEditBoxNode=this._commentHereEditBoxContainerNode=this._commentHereStaticTextNode=null;this._commentHerePreviewActiv=this._commentHereEditInProgress=!1;this._commentHereContentBar=this._commentHereBottomSeparator=this._commentLinkNode=this._associatedPointOffset=this._externalEntityId=this._imageLocalFilePath=null;this._isObjectPointLinkSupported=!0;this._COMMENT_KEY_PREFIX="neutron.dashboard.boards.CommentHere_v2.Comment_";this._PICTURE_COMMENT_KEY_PREFIX="neutron.dashboard.boards.CommentHere_v2.Picture_";
this._linkObjectTipText=_LCLZ("This comment is attached to an object");this._linkPointTipText=_LCLZ("This comment is attached to a point");this._postText=_LCLZ("Post");this._cancelText=_LCLZ("Cancel");this._commentHereText=_LCLZ("Comment here...");this._saveDocumentText=_LCLZ("Save this document to add comments, screenshots, and attachments.");this._linkObjectTooltipText=_LCLZ("Comment on an object");this._linkObjectTooltipDisabledText=_LCLZ("Object commenting is not available");this._linkPointTooltipText=
_LCLZ("Comment on a point");this._linkPointTooltipDisabledText=_LCLZ("Point commenting is not available");this._cameraTooltip=new goog.ui.Tooltip(null,_LCLZ("Capture an image"));this._linkObjectTooltip=new goog.ui.Tooltip(null,this._linkObjectTooltipText);this._linkPointTooltip=new goog.ui.Tooltip(null,this._linkPointTooltipText);this._refreshTooltip=new goog.ui.Tooltip(null,_LCLZ("Refresh"));this._linkTooltip=new goog.ui.Tooltip(null,this._linkObjectTipText);this._refreshDefaultToolTipDelayMs=500;
this._refreshToolTipDelayForDisable=1E7;this._refreshTooltip.setShowDelayMs(this._refreshDefaultToolTipDelayMs);this._cameraTooltip.setShowDelayMs(this._refreshDefaultToolTipDelayMs);this._linkObjectTooltip.setShowDelayMs(this._refreshDefaultToolTipDelayMs);this._linkPointTooltip.setShowDelayMs(this._refreshDefaultToolTipDelayMs);this._linkTooltip.setShowDelayMs(this._refreshDefaultToolTipDelayMs)};goog.inherits(neutron.dashboard.controls.CommentHere_v2,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.CommentHere_v2.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"commentHere"});this._commentHereStaticTextNode=goog.dom.createDom("div",{"class":"commentHereStaticText noSelection"});this._commentHereStaticTextNode.style.display="none";this._htmlNode.appendChild(this._commentHereStaticTextNode);var b=goog.dom.createDom("div",{id:"commentHereContentBar"});this._commentHereContentBar=b;this._htmlNode.appendChild(b);this._commentLinkNode=goog.dom.createDom("div",
{"class":"commentHereLinkButton"});this._commentLinkNode.style.visibility="hidden";b.appendChild(this._commentLinkNode);this._commentHereEditBoxContainerNode=goog.dom.createDom("div",{"class":"commentHereEditBoxContainer"});b.appendChild(this._commentHereEditBoxContainerNode);this._commentHereEditBoxNode=goog.dom.createDom("textarea",{"class":"commentHereEditBox",contentEditable:"true",placeholder:this._commentHereText});this._commentHereEditBoxContainerNode.appendChild(this._commentHereEditBoxNode);
this._commentHerePreviewNode=goog.dom.createDom("img",{"class":"previewImg"});this._commentHerePreviewNode.style.visibility="hidden";b.appendChild(this._commentHerePreviewNode);this._commentHerePostBtnsBarNode=goog.dom.createDom("div",{"class":"commentHereButtonsBar"});this._commentHereImageBtnNode=goog.dom.createDom("div",{"class":"commentButton cameraButton"});this._commentHerePostBtnsBarNode.appendChild(this._commentHereImageBtnNode);this._cameraTooltip.attach(this._commentHereImageBtnNode);this._isObjectPointLinkSupported&&
(this._commentHereLinkObjectBtnNode=goog.dom.createDom("div",{"class":"commentButton linkObjectButton"}),this._commentHerePostBtnsBarNode.appendChild(this._commentHereLinkObjectBtnNode),this._commentHereLinkPointBtnNode=goog.dom.createDom("div",{"class":"commentButton linkPointButton"}),this._commentHerePostBtnsBarNode.appendChild(this._commentHereLinkPointBtnNode),this._linkObjectTooltip.attach(this._commentHereLinkObjectBtnNode),this._linkPointTooltip.attach(this._commentHereLinkPointBtnNode),this._linkTooltip.attach(this._commentLinkNode));
this._commentHereRefreshBtnNode=goog.dom.createDom("div",{"class":"commentButton refreshButton"});this._commentHerePostBtnsBarNode.appendChild(this._commentHereRefreshBtnNode);this._refreshTooltip.attach(this._commentHereRefreshBtnNode);this._commentHereCancelBtnNode=goog.dom.createDom("div",{"class":"commentButton postCancelButton"},this._cancelText);this._commentHerePostBtnsBarNode.appendChild(this._commentHereCancelBtnNode);this._commentHerePostBtnNode=goog.dom.createDom("div",{"class":"commentButton postCancelButton"},
this._postText);this._commentHerePostBtnsBarNode.appendChild(this._commentHerePostBtnNode);this._htmlNode.appendChild(this._commentHerePostBtnsBarNode);this._commentHereBottomSeparator=goog.dom.createDom("div",{"class":"commentHereBottomSeparator"});this._resetCommentHereControls(!0);a.appendChild(this._htmlNode);a.appendChild(this._commentHereBottomSeparator);this._connectEvents()};
neutron.dashboard.controls.CommentHere_v2.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey("ACTIVITYFEED_EDITBOX_MOUSEDOWN",goog.events.listen(this._commentHereEditBoxNode,goog.events.EventType.MOUSEDOWN,function(b){a._onEditBox()}));this._addEventHandlerKey("ACTIVITYFEED_EDITBOX_SELECTSTART",goog.events.listen(this._commentHereEditBoxNode,goog.events.EventType.SELECTSTART,function(b){a._onEditBoxSelect(b)}));this._addEventHandlerKey("ACTIVITYFEED_EDITBOX_FOCUS",goog.events.listen(this._commentHereEditBoxNode,
goog.events.EventType.FOCUS,function(b){a._onEditBoxFocus(!0)}));this._addEventHandlerKey("ACTIVITYFEED_EDITBOX_BLUR",goog.events.listen(this._commentHereEditBoxNode,goog.events.EventType.BLUR,function(b){a._onEditBoxFocus(!1)}));this._addEventHandlerKey("ACTIVITYFEED_IMAGE_BTN_CLICK",goog.events.listen(this._commentHereImageBtnNode,goog.events.EventType.CLICK,function(b){a._onImageButton()}));this._addEventHandlerKey("ACTIVITYFEED_POST_BTN_CLICK",goog.events.listen(this._commentHerePostBtnNode,goog.events.EventType.CLICK,
function(b){a._onPostButton()}));this._addEventHandlerKey("ACTIVITYFEED_CANCEL_BTN_CLICK",goog.events.listen(this._commentHereCancelBtnNode,goog.events.EventType.CLICK,function(b){a._onCancelButton()}));this._addEventHandlerKey("ACTIVITYFEED_EDITBOX_KEYPRESS",goog.events.listen(this._commentHereEditBoxNode,goog.events.EventType.KEYUP,function(b){a._onEditBoxKeypress(b)}));this._addEventHandlerKey("ACTIVITYFEED_EDITBOX_PASTE",goog.events.listen(this._commentHereEditBoxNode,goog.events.EventType.PASTE,
function(b){a._onEditBoxCutPaste(b)}));this._addEventHandlerKey("ACTIVITYFEED_EDITBOX_CUT",goog.events.listen(this._commentHereEditBoxNode,goog.events.EventType.CUT,function(b){a._onEditBoxCutPaste(b)}));this._addEventHandlerKey("ACTIVITYFEED_REFRESH_BTN_CLICK",goog.events.listen(this._commentHereRefreshBtnNode,goog.events.EventType.CLICK,function(b){a._onRefreshButton()}));this._isObjectPointLinkSupported&&(this._addEventHandlerKey("ACTIVITYFEED_LINK_OBJECT_BTN_CLICK",goog.events.listen(this._commentHereLinkObjectBtnNode,
goog.events.EventType.CLICK,function(b){a._onLinkObjectButton()})),this._addEventHandlerKey("ACTIVITYFEED_LINK_POINT_BTN_CLICK",goog.events.listen(this._commentHereLinkPointBtnNode,goog.events.EventType.CLICK,function(b){a._onLinkPointButton()})))};neutron.dashboard.controls.CommentHere_v2.prototype.setFocus=function(){if(!0==goog.isDefAndNotNull(this._commentHereEditBoxNode)){var a=this;setTimeout(function(){a._commentHereEditBoxNode.focus()},100)}};
neutron.dashboard.controls.CommentHere_v2.prototype.onNeutronEvent=function(a){if("preDocumentSwitch"==a.cmdId)a=goog.json.parse(a.cmdArgs),this._onPreDocumentSwitch(a.lineage,a.documentUri);else if("DocumentSwitched"==a.cmdId||"ActivityFeedRefresh"==a.cmdId){var b="DocumentSwitched"==a.cmdId;a=goog.json.parse(a.cmdArgs);var c=a.documentInfo,d=this._currentDocumentInfo.documentUri;goog.isDefAndNotNull(c)&&(this._currentDocumentInfo=c,a.whileSaving?this._saveInProgressStatus():this._updateComment(d,
this._currentDocumentInfo.documentUri,b?"":this._commentHereEditBoxNode.value))}else if("SavingDocument"==a.cmdId){if(!this._isClientComments2Compliant)return;this._saveInProgressStatus()}else"setComments"!=a.cmdId&&("captureThumbnail"==a.cmdId?(b=goog.json.parse(a.cmdArgs),!0==goog.isDefAndNotNull(b)&&(!0==goog.isDefAndNotNull(b.imageData)&&!0==goog.isDefAndNotNull(this._commentHerePreviewNode))&&(this._commentHerePreviewNode.src=b.imageData,!0==goog.isDefAndNotNull(b.localFilePath)&&(this._imageLocalFilePath=
b.localFilePath),this._commentHerePreviewActiv=!0,this._updateWidths(!0),this._activateCommentHereImgBtn(!1))):"refreshStatus"==a.cmdId?(b=goog.json.parse(a.cmdArgs),!0==goog.isDefAndNotNull(b)&&this._updateRefreshStatus(b)):"setAssociatedBody"==a.cmdId?(b=goog.json.parse(a.cmdArgs),!0==goog.isDefAndNotNull(b)&&(this._externalEntityId=b.externalEntityId,this._linkTooltip.setText(this._linkObjectTipText))):"setAssociatedPoint"==a.cmdId?(b=goog.json.parse(a.cmdArgs),!0==goog.isDefAndNotNull(b)&&(this._externalEntityId=
b.externalEntityId,this._associatedPointOffset=b.associatedPointOffset,this._linkTooltip.setText(this._linkPointTipText))):"startCommentInteractiveCmd"==a.cmdId?(b=goog.json.parse(a.cmdArgs),!0==goog.isDefAndNotNull(b)&&(b=goog.json.parse(b.cmdContext),b=b.bLinkPoint,this._updateLinkCmdIcons(!0,b))):"endCommentInteractiveCmd"==a.cmdId&&(b=goog.json.parse(a.cmdArgs),!0==goog.isDefAndNotNull(b)&&(b=goog.json.parse(b.cmdContext),b=b.bLinkPoint,this._updateLinkCmdIcons(!1,b),this._associatedPointOffset=
this._externalEntityId=null)));this._updatePostCancelStatus();this._updateLinkVisibility()};neutron.dashboard.controls.CommentHere_v2.prototype._convertDataURIToBinary=function(a){var b=a.substring(5,a.indexOf(";"));a=window.atob(a.split(",")[1]);for(var c=new ArrayBuffer(a.length),d=new Uint8Array(c),e=0;e<a.length;e++)d[e]=a.charCodeAt(e);return new Blob([c],{type:b})};
neutron.dashboard.controls.CommentHere_v2.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",!0==goog.isDefAndNotNull(this._commentHereEditBoxContainerNode)&&(this._commentHerePreviewActiv?goog.dom.classes.add(this._commentHereEditBoxContainerNode,"withSnapshotPreview"):goog.dom.classes.remove(this._commentHereEditBoxContainerNode,"withSnapshotPreview")))};
neutron.dashboard.controls.CommentHere_v2.prototype._onEditBox=function(){!0==goog.isDefAndNotNull(this._commentHereEditBoxNode)&&(!1==this._commentHereEditInProgress&&(this._commentHereEditBoxNode.value=""),this._onStartEdit())};
neutron.dashboard.controls.CommentHere_v2.prototype._onEditBoxFocus=function(a){!0==a?(this._parentActivityFeedPanel.onAugumentableTextAreaFocused(this._commentHereEditBoxNode,this._commentHereContentBar),!1==this._commentHereEditInProgress&&this._onEditBox()):0==this._commentHereEditBoxNode.value.trim().length&&this._updatePostCancelStatus()};neutron.dashboard.controls.CommentHere_v2.prototype._onEditBoxSelect=function(a){!1==this._commentHereEditInProgress&&(a.preventDefault(),a.stopPropagation())};
neutron.dashboard.controls.CommentHere_v2.prototype._onEditBoxKeypress=function(a){this._onEditBoxValueChanged();this._parentActivityFeedPanel.onAugumentableTextAreaKeypress(a,this._commentHereEditBoxNode,this._commentHereContentBar);if((10===a.keyCode||13===a.keyCode)&&!0===a.ctrlKey)return this._commentHereEditBoxNode.value+="\n",!0};neutron.dashboard.controls.CommentHere_v2.prototype._onEditBoxCutPaste=function(a){var b=this;setTimeout(function(){b._onEditBoxValueChanged()},100)};
neutron.dashboard.controls.CommentHere_v2.prototype._onEditBoxValueChanged=function(){this._updatePostCancelStatus()};neutron.dashboard.controls.CommentHere_v2.prototype._updatePostCancelStatus=function(){var a=this._commentHereEditBoxNode.value.trim(),b=0<a.length,a=0<a.length,a=a|(goog.isDefAndNotNull(this._commentHerePreviewNode.src)&&0<this._commentHerePreviewNode.src.length),a=a|goog.isDefAndNotNull(this._externalEntityId);this._activateCommentHerePost(b);this._activateCommentHereCancel(a)};
neutron.dashboard.controls.CommentHere_v2.prototype._onStartEdit=function(){this._commentHereEditInProgress=!0;!0==goog.isDefAndNotNull(this._commentHereEditBoxNode)&&goog.dom.classes.add(this._commentHereEditBoxNode,"active")};neutron.dashboard.controls.CommentHere_v2.prototype._onStartPost=function(){this._activateCommentHerePost(!1);!0==goog.isDefAndNotNull(this._commentHereEditBoxNode)&&goog.dom.classes.remove(this._commentHereEditBoxNode,"active")};
neutron.dashboard.controls.CommentHere_v2.prototype._updateWidths=function(a){!1==goog.isDefAndNotNull(this._commentHereEditBoxNode)||(!1==goog.isDefAndNotNull(this._commentHerePreviewNode)||!1==goog.isDefAndNotNull(this._area))||(!1==a?(this._commentHerePreviewNode.style.visibility="hidden",goog.dom.classes.remove(this._commentHereEditBoxContainerNode,"withSnapshotPreview")):(this._commentHerePreviewNode.style.visibility="visible",goog.dom.classes.add(this._commentHereEditBoxContainerNode,"withSnapshotPreview")))};
neutron.dashboard.controls.CommentHere_v2.prototype._updateLinkVisibility=function(){var a=goog.isDefAndNotNull(this._externalEntityId);this._commentLinkNode.style.visibility=a?"visible":"hidden"};
neutron.dashboard.controls.CommentHere_v2.prototype._updateLinkCmdIcons=function(a,b){goog.isDefAndNotNull(this._commentHereLinkObjectBtnNode)&&goog.isDefAndNotNull(this._commentHereLinkPointBtnNode)&&(a?goog.dom.classes.add:goog.dom.classes.remove)(b?this._commentHereLinkPointBtnNode:this._commentHereLinkObjectBtnNode,"active")};
neutron.dashboard.controls.CommentHere_v2.prototype._onImageButton=function(){var a=this;this._activateCommentHereImgBtn(!0);var b={CaptureImageOptions:this._screenshotWidth+" "+this._screenshotHeight+" true true",GetImageDataOnly:1,SendBase64Image:1};setTimeout(function(){var c=window.neutronJavaScriptObject.executeQuery("Comments.takeScreenshot",JSON.stringify(b));goog.isDefAndNotNull(c)&&0<c.length&&(c=goog.json.parse(c),goog.isDefAndNotNull(c)&&goog.isDefAndNotNull(c.imageData)&&(a._commentHerePreviewNode.src=
c.imageData,!0==goog.isDefAndNotNull(c.localFilePath)&&(a._imageLocalFilePath=c.localFilePath),a._commentHerePreviewActiv=!0,a._updateWidths(!0),a._activateCommentHereImgBtn(!1)));neutron.dashboard.utils.Report({Action:"takeScreenshot"})},100)};
neutron.dashboard.controls.CommentHere_v2.prototype._onLinkObjectButton=function(){!0!==goog.dom.classes.has(this._commentHereLinkObjectBtnNode,"disabled")&&(window.neutronJavaScriptObject.executeCommand("CommentObjectCommand",JSON.stringify({linkPoint:0})),neutron.dashboard.utils.Report({Action:"CommentObjectCommand"}))};
neutron.dashboard.controls.CommentHere_v2.prototype._onLinkPointButton=function(){!0!==goog.dom.classes.has(this._commentHereLinkPointBtnNode,"disabled")&&(window.neutronJavaScriptObject.executeCommand("CommentObjectCommand",JSON.stringify({linkPoint:1})),neutron.dashboard.utils.Report({Action:"CommentObjectCommand"}))};
neutron.dashboard.controls.CommentHere_v2.prototype._onPostButton=function(){!0!==goog.dom.classes.has(this._commentHerePostBtnNode,"disabled")&&(this._commentHereEditBoxNode.blur(),this._onPostCommited())};
neutron.dashboard.controls.CommentHere_v2.prototype._onPostCommited=function(){this._onStartPost();var a=this._parentActivityFeedPanel.augumentCommentText(this._commentHereEditBoxNode.value);if(0<a.length&&""!=this._currentDocumentInfo.documentUri){var b={comment:a};this._externalEntityId&&(b.externalEntityId=this._externalEntityId);this._associatedPointOffset&&(b.associatedPointOffset=this._associatedPointOffset);if(!0==goog.isDefAndNotNull(this._commentHerePreviewNode.src)&&""!=this._commentHerePreviewNode.src&&
!0==goog.isDefAndNotNull(this._imageLocalFilePath)){b.localFilePath=this._imageLocalFilePath;var c=window.neutronJavaScriptObject.executeQuery("Comments.postImage",JSON.stringify(b));goog.isDefAndNotNull(c)&&0<c.length&&(c=goog.json.parse(c),goog.isDefAndNotNull(c)&&goog.isDefAndNotNull(c.requestToken)&&(b.imageDataSrc=this._commentHerePreviewNode.src,b.requestToken=c.requestToken,b.body=a,this._parentActivityFeedPanel.onPostRequested(b)))}else c=window.neutronJavaScriptObject.executeQuery("Comments.postText",
JSON.stringify(b)),goog.isDefAndNotNull(c)&&0<c.length&&(c=goog.json.parse(c),goog.isDefAndNotNull(c)&&goog.isDefAndNotNull(c.requestToken)&&(b.requestToken=c.requestToken,b.body=a,this._parentActivityFeedPanel.onPostRequested(b)));this._resetCommentHereControls(!0);neutron.dashboard.utils.Report({Action:"ActivityPostComment"})}};neutron.dashboard.controls.CommentHere_v2.prototype._onCancelButton=function(){!0!==goog.dom.classes.has(this._commentHereCancelBtnNode,"disabled")&&this._resetCommentHereControls(!0)};
neutron.dashboard.controls.CommentHere_v2.prototype._onRefreshButton=function(){!0!==goog.dom.classes.has(this._commentHereRefreshBtnNode,"refreshAnim")&&(goog.dom.classes.remove(this._commentHereRefreshBtnNode,"refreshButton"),goog.dom.classes.add(this._commentHereRefreshBtnNode,"refreshAnim"),window.neutronJavaScriptObject.executeQuery("Comments.refresh",JSON.stringify({})),neutron.dashboard.utils.Report({Action:"ActivityRefresh"}))};
neutron.dashboard.controls.CommentHere_v2.prototype._updateRefreshStatus=function(a){goog.isDefAndNotNull(a.statusType)&&("Requesting"==a.statusType?(goog.dom.classes.remove(this._commentHereRefreshBtnNode,"refreshButton"),goog.dom.classes.add(this._commentHereRefreshBtnNode,"refreshAnim")):(goog.dom.classes.remove(this._commentHereRefreshBtnNode,"refreshAnim"),goog.dom.classes.add(this._commentHereRefreshBtnNode,"refreshButton")),neutron.dashboard.utils.Report({Action:"ActivityRefreshStatus"}))};
neutron.dashboard.controls.CommentHere_v2.prototype._getComment=function(){var a=null;!0==goog.isDefAndNotNull(this._commentHereEditBoxNode)&&(a=this._commentHereEditBoxNode.value);return a};
neutron.dashboard.controls.CommentHere_v2.prototype._setComment=function(a){if(!(!1==goog.isDefAndNotNull(a)||0>=a.length)&&!1!=goog.isDefAndNotNull(this._commentHereEditBoxNode))this._commentHereStaticTextNode.style.display="none",this._commentHerePostBtnsBarNode.style.display="block",this._commentHereEditBoxContainerNode.style.display="block",this._commentHereEditBoxNode.value=a,this._activateCommentHereImgBtn(!1),this._onStartEdit()};
neutron.dashboard.controls.CommentHere_v2.prototype._updateComment=function(a,b,c){!0==goog.isDefAndNotNull(a)&&""!=a&&(!0==goog.isDefAndNotNull(neutron.dashboard.globalStorage().get(this._COMMENT_KEY_PREFIX,a))&&neutron.dashboard.globalStorage().removeItem(this._COMMENT_KEY_PREFIX,a),!0==goog.isDefAndNotNull(c)&&0<c.length&&neutron.dashboard.globalStorage().set(this._COMMENT_KEY_PREFIX,a,c));this._resetCommentHereControls(!1);!0==goog.isDefAndNotNull(b)&&""!=b&&(a=neutron.dashboard.globalStorage().get(this._COMMENT_KEY_PREFIX,
b),!0==goog.isDefAndNotNull(a)&&this._setComment(a))};
neutron.dashboard.controls.CommentHere_v2.prototype._resetCommentHereControls=function(a){!0==goog.isDefAndNotNull(this._commentHereEditBoxNode)&&goog.dom.classes.remove(this._commentHereEditBoxNode,"active");this._commentHereStaticTextNode.style.display="none";this._commentHerePostBtnsBarNode.style.display="block";this._commentHereEditBoxContainerNode.style.display="block";this._commentHereEditBoxNode.value="";this._activateCommentHerePost(!1);this._activateCommentHereCancel(!1);this._activateCommentHereImgBtn(!1);
""==this._currentDocumentInfo.documentUri?this._initialNotSavedStatus():this._saveInProgressStatus();var b="FusionDrawingDocType"===this._currentDocumentInfo.docTypeName?"hidden":"visible";this._commentHereImageBtnNode.style.visibility=b;var c=goog.dom.classes.remove;this._linkObjectTooltip.setText(this._linkObjectTooltipText);this._linkPointTooltip.setText(this._linkPointTooltipText);0>this._currentDocumentInfo.linkEntitySupportStatus&&(c=goog.dom.classes.add,this._linkObjectTooltip.setText(this._linkObjectTooltipDisabledText),
this._linkPointTooltip.setText(this._linkPointTooltipDisabledText));goog.isDefAndNotNull(this._commentHereLinkObjectBtnNode)&&(this._commentHereLinkObjectBtnNode.style.visibility=b,c(this._commentHereLinkObjectBtnNode,"disabled"));goog.isDefAndNotNull(this._commentHereLinkPointBtnNode)&&(this._commentHereLinkPointBtnNode.style.visibility=b,c(this._commentHereLinkPointBtnNode,"disabled"));this._commentHerePreviewActiv=!1;this._associatedPointOffset=this._externalEntityId=this._commentHerePreviewNode.src=
null;this._updateWidths(this._commentHerePreviewActiv);this._updateLinkVisibility();!0==goog.isDefAndNotNull(a)&&!0===a&&(a=this._currentDocumentInfo.documentUri,!0==goog.isDefAndNotNull(neutron.dashboard.globalStorage().get(this._COMMENT_KEY_PREFIX,a))&&neutron.dashboard.globalStorage().removeItem(this._COMMENT_KEY_PREFIX,a))};
neutron.dashboard.controls.CommentHere_v2.prototype._activateCommentHerePost=function(a){!1!=goog.isDefAndNotNull(this._commentHerePostBtnNode)&&(!1==a?(goog.dom.classes.add(this._commentHerePostBtnNode,"disabled"),this._commentHereEditInProgress=!1):goog.dom.classes.remove(this._commentHerePostBtnNode,"disabled"))};
neutron.dashboard.controls.CommentHere_v2.prototype._activateCommentHereImgBtn=function(a){!1!=goog.isDefAndNotNull(this._commentHereImageBtnNode)&&(a?goog.dom.classes.add(this._commentHereImageBtnNode,"active"):goog.dom.classes.remove(this._commentHereImageBtnNode,"active"),!0==goog.isDefAndNotNull(this._currentDocumentInfo.docTypeName)&&"FusionDrawingDocType"==this._currentDocumentInfo.docTypeName?this._commentHereImageBtnNode.style.visibility="hidden":this._commentHereImageBtnNode.style.visibility=
"visible")};neutron.dashboard.controls.CommentHere_v2.prototype._activateCommentHereCancel=function(a){!1!=goog.isDefAndNotNull(this._commentHereCancelBtnNode)&&(!1==a?goog.dom.classes.add(this._commentHereCancelBtnNode,"disabled"):goog.dom.classes.remove(this._commentHereCancelBtnNode,"disabled"))};
neutron.dashboard.controls.CommentHere_v2.prototype._initialNotSavedStatus=function(){this._activateCommentHerePost(!1);this._activateCommentHereCancel(!1);!0==goog.isDefAndNotNull(this._commentHereEditBoxNode)&&(goog.dom.classes.remove(this._commentHereEditBoxNode,"active"),this._commentHereStaticTextNode.style.display="block",this._commentHereStaticTextNode.innerHTML="<span class='firstLine'>"+this._saveDocumentText+"</span>",this._commentHereEditBoxContainerNode.style.display="none",this._commentHerePreviewNode.style.visibility=
"hidden",this._commentHerePostBtnsBarNode.style.display="none",this._activateCommentHereImgBtn(!1))};neutron.dashboard.controls.CommentHere_v2.prototype._onPreDocumentSwitch=function(a,b){this._currentDocumentInfo={documentUri:b,lineageUri:a,docTypeName:""};this._resetCommentHereControls(!1);this._commentHereStaticTextNode.style.display="none";this._commentHerePostBtnsBarNode.style.display="none";this._commentHereEditBoxContainerNode.style.display="none"};
neutron.dashboard.controls.CommentHere_v2.prototype._saveInProgressStatus=function(){};goog.ui.ac={};goog.ui.ac.AutoComplete=function(a,b,c){goog.events.EventTarget.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;goog.events.listen(b,[goog.ui.ac.AutoComplete.EventType.HILITE,goog.ui.ac.AutoComplete.EventType.SELECT,goog.ui.ac.AutoComplete.EventType.CANCEL_DISMISS,goog.ui.ac.AutoComplete.EventType.DISMISS],this.handleEvent,!1,this);this.token_=null;this.rows_=[];this.hiliteId_=-1;this.firstRowId_=0;this.dismissTimer_=this.target_=null;this.inputToAnchorMap_={}};
goog.inherits(goog.ui.ac.AutoComplete,goog.events.EventTarget);goog.ui.ac.AutoComplete.prototype.maxMatches_=10;goog.ui.ac.AutoComplete.prototype.autoHilite_=!0;goog.ui.ac.AutoComplete.prototype.allowFreeSelect_=!1;goog.ui.ac.AutoComplete.prototype.wrap_=!1;goog.ui.ac.AutoComplete.prototype.triggerSuggestionsOnUpdate_=!1;goog.ui.ac.AutoComplete.EventType={ROW_HILITE:"rowhilite",HILITE:"hilite",SELECT:"select",DISMISS:"dismiss",CANCEL_DISMISS:"canceldismiss",UPDATE:"update",SUGGESTIONS_UPDATE:"suggestionsupdate"};
goog.ui.ac.AutoComplete.prototype.getMatcher=function(){return goog.asserts.assert(this.matcher_)};goog.ui.ac.AutoComplete.prototype.setMatcher=function(a){this.matcher_=a};goog.ui.ac.AutoComplete.prototype.getSelectionHandler=function(){return goog.asserts.assert(this.selectionHandler_)};goog.ui.ac.AutoComplete.prototype.getRenderer=function(){return this.renderer_};goog.ui.ac.AutoComplete.prototype.setRenderer=function(a){this.renderer_=a};goog.ui.ac.AutoComplete.prototype.getToken=function(){return this.token_};
goog.ui.ac.AutoComplete.prototype.setTokenInternal=function(a){this.token_=a};goog.ui.ac.AutoComplete.prototype.getSuggestion=function(a){return this.rows_[a]};goog.ui.ac.AutoComplete.prototype.getAllSuggestions=function(){return goog.asserts.assert(this.rows_)};goog.ui.ac.AutoComplete.prototype.getSuggestionCount=function(){return this.rows_.length};goog.ui.ac.AutoComplete.prototype.getHighlightedId=function(){return this.hiliteId_};
goog.ui.ac.AutoComplete.prototype.setHighlightedIdInternal=function(a){this.hiliteId_=a};
goog.ui.ac.AutoComplete.prototype.handleEvent=function(a){var b=this.matcher_;if(a.target==this.renderer_)switch(a.type){case goog.ui.ac.AutoComplete.EventType.HILITE:this.hiliteId(a.row);break;case goog.ui.ac.AutoComplete.EventType.SELECT:var c=!1;if(goog.isNumber(a.row)){a=a.row;var c=this.getIndexOfId(a),d=this.rows_[c],c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&(!c&&this.hiliteId_!=a)&&this.hiliteId(a)}c||this.selectHilited();break;case goog.ui.ac.AutoComplete.EventType.CANCEL_DISMISS:this.cancelDelayedDismiss();
break;case goog.ui.ac.AutoComplete.EventType.DISMISS:this.dismissOnDelay()}};goog.ui.ac.AutoComplete.prototype.setMaxMatches=function(a){this.maxMatches_=a};goog.ui.ac.AutoComplete.prototype.setAutoHilite=function(a){this.autoHilite_=a};goog.ui.ac.AutoComplete.prototype.setAllowFreeSelect=function(a){this.allowFreeSelect_=a};goog.ui.ac.AutoComplete.prototype.setWrap=function(a){this.wrap_=a};
goog.ui.ac.AutoComplete.prototype.setTriggerSuggestionsOnUpdate=function(a){this.triggerSuggestionsOnUpdate_=a};goog.ui.ac.AutoComplete.prototype.setToken=function(a,b){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,goog.bind(this.matchListener_,this),b),this.cancelDelayedDismiss())};goog.ui.ac.AutoComplete.prototype.getTarget=function(){return this.target_};goog.ui.ac.AutoComplete.prototype.setTarget=function(a){this.target_=a};
goog.ui.ac.AutoComplete.prototype.isOpen=function(){return this.renderer_.isVisible()};goog.ui.ac.AutoComplete.prototype.getRowCount=function(){return this.getSuggestionCount()};
goog.ui.ac.AutoComplete.prototype.hiliteNext=function(){for(var a=this.firstRowId_+this.rows_.length-1,b=this.hiliteId_,c=0;c<this.rows_.length;c++){if(b>=this.firstRowId_&&b<a)b++;else if(-1==b)b=this.firstRowId_;else if(this.allowFreeSelect_&&b==a){this.hiliteId(-1);break}else if(this.wrap_&&b==a)b=this.firstRowId_;else break;if(this.hiliteId(b))return!0}return!1};
goog.ui.ac.AutoComplete.prototype.hilitePrev=function(){for(var a=this.firstRowId_+this.rows_.length-1,b=this.hiliteId_,c=0;c<this.rows_.length;c++){if(b>this.firstRowId_)b--;else if(this.allowFreeSelect_&&b==this.firstRowId_){this.hiliteId(-1);break}else if(this.wrap_&&(-1==b||b==this.firstRowId_))b=a;else break;if(this.hiliteId(b))return!0}return!1};
goog.ui.ac.AutoComplete.prototype.hiliteId=function(a){var b=this.getIndexOfId(a),c=this.rows_[b];return!c||!this.matcher_.isRowDisabled||!this.matcher_.isRowDisabled(c)?(this.hiliteId_=a,this.renderer_.hiliteId(a),-1!=b):!1};goog.ui.ac.AutoComplete.prototype.hiliteIndex=function(a){return this.hiliteId(this.getIdOfIndex_(a))};
goog.ui.ac.AutoComplete.prototype.selectHilited=function(){var a=this.getIndexOfId(this.hiliteId_);if(-1!=a){var b=this.rows_[a],c=this.selectionHandler_.selectRow(b);this.triggerSuggestionsOnUpdate_?(this.token_=null,this.dismissOnDelay()):this.dismiss();c||(this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.UPDATE,row:b,index:a}),this.triggerSuggestionsOnUpdate_&&this.selectionHandler_.update(!0));return!0}this.dismiss();this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.UPDATE,
row:null,index:null});return!1};goog.ui.ac.AutoComplete.prototype.hasHighlight=function(){return this.isOpen()&&-1!=this.getIndexOfId(this.hiliteId_)};goog.ui.ac.AutoComplete.prototype.dismiss=function(){this.hiliteId_=-1;this.token_=null;this.firstRowId_+=this.rows_.length;this.rows_=[];window.clearTimeout(this.dismissTimer_);this.dismissTimer_=null;this.renderer_.dismiss();this.dispatchEvent(goog.ui.ac.AutoComplete.EventType.SUGGESTIONS_UPDATE);this.dispatchEvent(goog.ui.ac.AutoComplete.EventType.DISMISS)};
goog.ui.ac.AutoComplete.prototype.dismissOnDelay=function(){this.dismissTimer_||(this.dismissTimer_=window.setTimeout(goog.bind(this.dismiss,this),100))};goog.ui.ac.AutoComplete.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};
goog.ui.ac.AutoComplete.prototype.cancelDelayedDismiss=function(){this.immediatelyCancelDelayedDismiss_()||window.setTimeout(goog.bind(this.immediatelyCancelDelayedDismiss_,this),10)};goog.ui.ac.AutoComplete.prototype.disposeInternal=function(){goog.ui.ac.AutoComplete.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};
goog.ui.ac.AutoComplete.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
goog.ui.ac.AutoComplete.prototype.renderRows=function(a,b){var c="object"==goog.typeOf(b)&&b,d=(c?c.getPreserveHilited():b)?this.getIndexOfId(this.hiliteId_):-1;this.firstRowId_+=this.rows_.length;this.rows_=a;for(var e=[],f=0;f<a.length;++f)e.push({id:this.getIdOfIndex_(f),data:a[f]});f=null;this.target_&&(f=this.inputToAnchorMap_[goog.getUid(this.target_)]||this.target_);this.renderer_.setAnchorElement(f);this.renderer_.renderRows(e,this.token_,this.target_);f=this.autoHilite_;c&&void 0!==c.getAutoHilite()&&
(f=c.getAutoHilite());this.hiliteId_=-1;if((f||0<=d)&&0!=e.length&&this.token_)0<=d?this.hiliteId(this.getIdOfIndex_(d)):this.hiliteNext();this.dispatchEvent(goog.ui.ac.AutoComplete.EventType.SUGGESTIONS_UPDATE)};goog.ui.ac.AutoComplete.prototype.getIndexOfId=function(a){a-=this.firstRowId_;return 0>a||a>=this.rows_.length?-1:a};goog.ui.ac.AutoComplete.prototype.getIdOfIndex_=function(a){return this.firstRowId_+a};
goog.ui.ac.AutoComplete.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};goog.ui.ac.AutoComplete.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);goog.array.forEach(arguments,function(a){goog.object.remove(this.inputToAnchorMap_,goog.getUid(a))},this)};goog.ui.ac.AutoComplete.prototype.attachInputWithAnchor=function(a,b){this.inputToAnchorMap_[goog.getUid(a)]=b;this.attachInputs(a)};
goog.ui.ac.AutoComplete.prototype.update=function(a){this.selectionHandler_.update(a)};goog.string.linkify={};
goog.string.linkify.linkifyPlainText=function(a,b){if(-1==a.indexOf("@")&&-1==a.indexOf("://")&&-1==a.indexOf("www."))return goog.string.htmlEscape(a);var c=b||{};"rel"in c||(c.rel="nofollow");"target"in c||(c.target="_blank");var d=[],e;for(e in c)c.hasOwnProperty(e)&&c[e]&&d.push(goog.string.htmlEscape(e),'="',goog.string.htmlEscape(c[e]),'" ');var f=d.join("");return a.replace(goog.string.linkify.FIND_LINKS_RE_,function(a,b,c,d,e){a=[goog.string.htmlEscape(b)];if(!c)return a[0];a.push("<a ",f,
'href="');d?(a.push("mailto:"),c=d,d=""):(e||a.push("http://"),(d=c.match(goog.string.linkify.ENDS_WITH_PUNCTUATION_RE_))?(c=d[1],d=d[2]):d="");c=goog.string.htmlEscape(c);d=goog.string.htmlEscape(d);a.push(c,'">',c,"</a>",d);return a.join("")})};goog.string.linkify.findFirstUrl=function(a){a=a.match(goog.string.linkify.URL_);return null!=a?a[0]:""};goog.string.linkify.findFirstEmail=function(a){a=a.match(goog.string.linkify.EMAIL_);return null!=a?a[0]:""};
goog.string.linkify.ENDING_PUNCTUATION_CHARS_=":;,\\.?>\\]\\)!";goog.string.linkify.ENDS_WITH_PUNCTUATION_RE_=RegExp("^(.*?)(["+goog.string.linkify.ENDING_PUNCTUATION_CHARS_+"]+)$");goog.string.linkify.ACCEPTABLE_URL_CHARS_="\\w~#-@!\\[\\]";goog.string.linkify.RECOGNIZED_PROTOCOLS_=["https?","ftp"];goog.string.linkify.PROTOCOL_START_="("+goog.string.linkify.RECOGNIZED_PROTOCOLS_.join("|")+")://";goog.string.linkify.WWW_START_="www\\.";
goog.string.linkify.URL_="(?:"+goog.string.linkify.PROTOCOL_START_+"|"+goog.string.linkify.WWW_START_+")\\w["+goog.string.linkify.ACCEPTABLE_URL_CHARS_+"]*";goog.string.linkify.TOP_LEVEL_DOMAIN_="(?:com|org|net|edu|gov|aero|biz|cat|coop|info|int|jobs|mobi|museum|name|pro|travel|arpa|asia|xxx|[a-z][a-z])\\b";goog.string.linkify.EMAIL_="(?:mailto:)?([\\w.+-]+@[A-Za-z0-9.-]+\\."+goog.string.linkify.TOP_LEVEL_DOMAIN_+")";
goog.string.linkify.FIND_LINKS_RE_=RegExp("([\\S\\s]*?)(\\b"+goog.string.linkify.EMAIL_+"|\\b"+goog.string.linkify.URL_+"|$)","g");goog.ui.IdGenerator=function(){};goog.addSingletonGetter(goog.ui.IdGenerator);goog.ui.IdGenerator.prototype.nextId_=0;goog.ui.IdGenerator.prototype.getNextUniqueId=function(){return":"+(this.nextId_++).toString(36)};goog.ui.Component=function(a){goog.events.EventTarget.call(this);this.dom_=a||goog.dom.getDomHelper();this.rightToLeft_=goog.ui.Component.defaultRightToLeft_};goog.inherits(goog.ui.Component,goog.events.EventTarget);goog.ui.Component.ALLOW_DETACHED_DECORATION=!1;goog.ui.Component.prototype.idGenerator_=goog.ui.IdGenerator.getInstance();goog.ui.Component.DEFAULT_BIDI_DIR=0;goog.ui.Component.defaultRightToLeft_=1==goog.ui.Component.DEFAULT_BIDI_DIR?!1:-1==goog.ui.Component.DEFAULT_BIDI_DIR?!0:null;
goog.ui.Component.EventType={BEFORE_SHOW:"beforeshow",SHOW:"show",HIDE:"hide",DISABLE:"disable",ENABLE:"enable",HIGHLIGHT:"highlight",UNHIGHLIGHT:"unhighlight",ACTIVATE:"activate",DEACTIVATE:"deactivate",SELECT:"select",UNSELECT:"unselect",CHECK:"check",UNCHECK:"uncheck",FOCUS:"focus",BLUR:"blur",OPEN:"open",CLOSE:"close",ENTER:"enter",LEAVE:"leave",ACTION:"action",CHANGE:"change"};
goog.ui.Component.Error={NOT_SUPPORTED:"Method not supported",DECORATE_INVALID:"Invalid element to decorate",ALREADY_RENDERED:"Component already rendered",PARENT_UNABLE_TO_BE_SET:"Unable to set parent component",CHILD_INDEX_OUT_OF_BOUNDS:"Child component index out of bounds",NOT_OUR_CHILD:"Child is not in parent component",NOT_IN_DOCUMENT:"Operation not supported while component is not in document",STATE_INVALID:"Invalid component state"};
goog.ui.Component.State={ALL:255,DISABLED:1,HOVER:2,ACTIVE:4,SELECTED:8,CHECKED:16,FOCUSED:32,OPENED:64};
goog.ui.Component.getStateTransitionEvent=function(a,b){switch(a){case goog.ui.Component.State.DISABLED:return b?goog.ui.Component.EventType.DISABLE:goog.ui.Component.EventType.ENABLE;case goog.ui.Component.State.HOVER:return b?goog.ui.Component.EventType.HIGHLIGHT:goog.ui.Component.EventType.UNHIGHLIGHT;case goog.ui.Component.State.ACTIVE:return b?goog.ui.Component.EventType.ACTIVATE:goog.ui.Component.EventType.DEACTIVATE;case goog.ui.Component.State.SELECTED:return b?goog.ui.Component.EventType.SELECT:
goog.ui.Component.EventType.UNSELECT;case goog.ui.Component.State.CHECKED:return b?goog.ui.Component.EventType.CHECK:goog.ui.Component.EventType.UNCHECK;case goog.ui.Component.State.FOCUSED:return b?goog.ui.Component.EventType.FOCUS:goog.ui.Component.EventType.BLUR;case goog.ui.Component.State.OPENED:return b?goog.ui.Component.EventType.OPEN:goog.ui.Component.EventType.CLOSE}throw Error(goog.ui.Component.Error.STATE_INVALID);};
goog.ui.Component.setDefaultRightToLeft=function(a){goog.ui.Component.defaultRightToLeft_=a};goog.ui.Component.prototype.id_=null;goog.ui.Component.prototype.inDocument_=!1;goog.ui.Component.prototype.element_=null;goog.ui.Component.prototype.rightToLeft_=null;goog.ui.Component.prototype.model_=null;goog.ui.Component.prototype.parent_=null;goog.ui.Component.prototype.children_=null;goog.ui.Component.prototype.childIndex_=null;goog.ui.Component.prototype.wasDecorated_=!1;
goog.ui.Component.prototype.getId=function(){return this.id_||(this.id_=this.idGenerator_.getNextUniqueId())};goog.ui.Component.prototype.setId=function(a){this.parent_&&this.parent_.childIndex_&&(goog.object.remove(this.parent_.childIndex_,this.id_),goog.object.add(this.parent_.childIndex_,a,this));this.id_=a};goog.ui.Component.prototype.getElement=function(){return this.element_};
goog.ui.Component.prototype.getElementStrict=function(){var a=this.element_;goog.asserts.assert(a,"Can not call getElementStrict before rendering/decorating.");return a};goog.ui.Component.prototype.setElementInternal=function(a){this.element_=a};goog.ui.Component.prototype.getElementsByClass=function(a){return this.element_?this.dom_.getElementsByClass(a,this.element_):[]};goog.ui.Component.prototype.getElementByClass=function(a){return this.element_?this.dom_.getElementByClass(a,this.element_):null};
goog.ui.Component.prototype.getRequiredElementByClass=function(a){var b=this.getElementByClass(a);goog.asserts.assert(b,"Expected element in component with class: %s",a);return b};goog.ui.Component.prototype.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new goog.events.EventHandler(this));return this.googUiComponentHandler_};
goog.ui.Component.prototype.setParent=function(a){if(this==a)throw Error(goog.ui.Component.Error.PARENT_UNABLE_TO_BE_SET);if(a&&this.parent_&&this.id_&&this.parent_.getChild(this.id_)&&this.parent_!=a)throw Error(goog.ui.Component.Error.PARENT_UNABLE_TO_BE_SET);this.parent_=a;goog.ui.Component.superClass_.setParentEventTarget.call(this,a)};goog.ui.Component.prototype.getParent=function(){return this.parent_};
goog.ui.Component.prototype.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error(goog.ui.Component.Error.NOT_SUPPORTED);goog.ui.Component.superClass_.setParentEventTarget.call(this,a)};goog.ui.Component.prototype.getDomHelper=function(){return this.dom_};goog.ui.Component.prototype.isInDocument=function(){return this.inDocument_};goog.ui.Component.prototype.createDom=function(){this.element_=this.dom_.createElement("div")};goog.ui.Component.prototype.render=function(a){this.render_(a)};
goog.ui.Component.prototype.renderBefore=function(a){this.render_(a.parentNode,a)};goog.ui.Component.prototype.render_=function(a,b){if(this.inDocument_)throw Error(goog.ui.Component.Error.ALREADY_RENDERED);this.element_||this.createDom();a?a.insertBefore(this.element_,b||null):this.dom_.getDocument().body.appendChild(this.element_);(!this.parent_||this.parent_.isInDocument())&&this.enterDocument()};
goog.ui.Component.prototype.decorate=function(a){if(this.inDocument_)throw Error(goog.ui.Component.Error.ALREADY_RENDERED);if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=goog.dom.getOwnerDocument(a);if(!this.dom_||this.dom_.getDocument()!=b)this.dom_=goog.dom.getDomHelper(a);this.decorateInternal(a);(!goog.ui.Component.ALLOW_DETACHED_DECORATION||goog.dom.contains(b,a))&&this.enterDocument()}else throw Error(goog.ui.Component.Error.DECORATE_INVALID);};
goog.ui.Component.prototype.canDecorate=function(a){return!0};goog.ui.Component.prototype.wasDecorated=function(){return this.wasDecorated_};goog.ui.Component.prototype.decorateInternal=function(a){this.element_=a};goog.ui.Component.prototype.enterDocument=function(){this.inDocument_=!0;this.forEachChild(function(a){!a.isInDocument()&&a.getElement()&&a.enterDocument()})};
goog.ui.Component.prototype.exitDocument=function(){this.forEachChild(function(a){a.isInDocument()&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
goog.ui.Component.prototype.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);this.forEachChild(function(a){a.dispose()});!this.wasDecorated_&&this.element_&&goog.dom.removeNode(this.element_);this.parent_=this.model_=this.element_=this.childIndex_=this.children_=null;goog.ui.Component.superClass_.disposeInternal.call(this)};
goog.ui.Component.prototype.makeId=function(a){return this.getId()+"."+a};goog.ui.Component.prototype.makeIds=function(a){var b={},c;for(c in a)b[c]=this.makeId(a[c]);return b};goog.ui.Component.prototype.getModel=function(){return this.model_};goog.ui.Component.prototype.setModel=function(a){this.model_=a};goog.ui.Component.prototype.getFragmentFromId=function(a){return a.substring(this.getId().length+1)};
goog.ui.Component.prototype.getElementByFragment=function(a){if(!this.inDocument_)throw Error(goog.ui.Component.Error.NOT_IN_DOCUMENT);return this.dom_.getElement(this.makeId(a))};goog.ui.Component.prototype.addChild=function(a,b){this.addChildAt(a,this.getChildCount(),b)};
goog.ui.Component.prototype.addChildAt=function(a,b,c){goog.asserts.assert(!!a,"Provided element must not be null.");if(a.inDocument_&&(c||!this.inDocument_))throw Error(goog.ui.Component.Error.ALREADY_RENDERED);if(0>b||b>this.getChildCount())throw Error(goog.ui.Component.Error.CHILD_INDEX_OUT_OF_BOUNDS);if(!this.childIndex_||!this.children_)this.childIndex_={},this.children_=[];a.getParent()==this?(goog.object.set(this.childIndex_,a.getId(),a),goog.array.remove(this.children_,a)):goog.object.add(this.childIndex_,
a.getId(),a);a.setParent(this);goog.array.insertAt(this.children_,a,b);a.inDocument_&&this.inDocument_&&a.getParent()==this?(c=this.getContentElement(),c.insertBefore(a.getElement(),c.childNodes[b]||null)):c?(this.element_||this.createDom(),b=this.getChildAt(b+1),a.render_(this.getContentElement(),b?b.element_:null)):this.inDocument_&&(!a.inDocument_&&a.element_&&a.element_.parentNode&&a.element_.parentNode.nodeType==goog.dom.NodeType.ELEMENT)&&a.enterDocument()};
goog.ui.Component.prototype.getContentElement=function(){return this.element_};goog.ui.Component.prototype.isRightToLeft=function(){null==this.rightToLeft_&&(this.rightToLeft_=goog.style.isRightToLeft(this.inDocument_?this.element_:this.dom_.getDocument().body));return this.rightToLeft_};goog.ui.Component.prototype.setRightToLeft=function(a){if(this.inDocument_)throw Error(goog.ui.Component.Error.ALREADY_RENDERED);this.rightToLeft_=a};
goog.ui.Component.prototype.hasChildren=function(){return!!this.children_&&0!=this.children_.length};goog.ui.Component.prototype.getChildCount=function(){return this.children_?this.children_.length:0};goog.ui.Component.prototype.getChildIds=function(){var a=[];this.forEachChild(function(b){a.push(b.getId())});return a};goog.ui.Component.prototype.getChild=function(a){return this.childIndex_&&a?goog.object.get(this.childIndex_,a)||null:null};
goog.ui.Component.prototype.getChildAt=function(a){return this.children_?this.children_[a]||null:null};goog.ui.Component.prototype.forEachChild=function(a,b){this.children_&&goog.array.forEach(this.children_,a,b)};goog.ui.Component.prototype.indexOfChild=function(a){return this.children_&&a?goog.array.indexOf(this.children_,a):-1};
goog.ui.Component.prototype.removeChild=function(a,b){if(a){var c=goog.isString(a)?a:a.getId();a=this.getChild(c);c&&a&&(goog.object.remove(this.childIndex_,c),goog.array.remove(this.children_,a),b&&(a.exitDocument(),a.element_&&goog.dom.removeNode(a.element_)),a.setParent(null))}if(!a)throw Error(goog.ui.Component.Error.NOT_OUR_CHILD);return a};goog.ui.Component.prototype.removeChildAt=function(a,b){return this.removeChild(this.getChildAt(a),b)};
goog.ui.Component.prototype.removeChildren=function(a){for(var b=[];this.hasChildren();)b.push(this.removeChildAt(0,a));return b};goog.dom.classlist={};goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST=!1;goog.dom.classlist.get=function(a){if(goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList)return a.classList;a=a.className;return goog.isString(a)&&a.match(/\S+/g)||[]};goog.dom.classlist.set=function(a,b){a.className=b};goog.dom.classlist.contains=function(a,b){return goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList?a.classList.contains(b):goog.array.contains(goog.dom.classlist.get(a),b)};
goog.dom.classlist.add=function(a,b){goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList?a.classList.add(b):goog.dom.classlist.contains(a,b)||(a.className+=0<a.className.length?" "+b:b)};
goog.dom.classlist.addAll=function(a,b){if(goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList)goog.array.forEach(b,function(b){goog.dom.classlist.add(a,b)});else{var c={};goog.array.forEach(goog.dom.classlist.get(a),function(a){c[a]=!0});goog.array.forEach(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
goog.dom.classlist.remove=function(a,b){goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList?a.classList.remove(b):goog.dom.classlist.contains(a,b)&&(a.className=goog.array.filter(goog.dom.classlist.get(a),function(a){return a!=b}).join(" "))};
goog.dom.classlist.removeAll=function(a,b){goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList?goog.array.forEach(b,function(b){goog.dom.classlist.remove(a,b)}):a.className=goog.array.filter(goog.dom.classlist.get(a),function(a){return!goog.array.contains(b,a)}).join(" ")};goog.dom.classlist.enable=function(a,b,c){c?goog.dom.classlist.add(a,b):goog.dom.classlist.remove(a,b)};
goog.dom.classlist.swap=function(a,b,c){return goog.dom.classlist.contains(a,b)?(goog.dom.classlist.remove(a,b),goog.dom.classlist.add(a,c),!0):!1};goog.dom.classlist.toggle=function(a,b){var c=!goog.dom.classlist.contains(a,b);goog.dom.classlist.enable(a,b,c);return c};goog.dom.classlist.addRemove=function(a,b,c){goog.dom.classlist.remove(a,b);goog.dom.classlist.add(a,c)};goog.ui.registry={};goog.ui.registry.getDefaultRenderer=function(a){for(var b;a;){b=goog.getUid(a);if(b=goog.ui.registry.defaultRenderers_[b])break;a=a.superClass_?a.superClass_.constructor:null}return b?goog.isFunction(b.getInstance)?b.getInstance():new b:null};
goog.ui.registry.setDefaultRenderer=function(a,b){if(!goog.isFunction(a))throw Error("Invalid component class "+a);if(!goog.isFunction(b))throw Error("Invalid renderer class "+b);var c=goog.getUid(a);goog.ui.registry.defaultRenderers_[c]=b};goog.ui.registry.getDecoratorByClassName=function(a){return a in goog.ui.registry.decoratorFunctions_?goog.ui.registry.decoratorFunctions_[a]():null};
goog.ui.registry.setDecoratorByClassName=function(a,b){if(!a)throw Error("Invalid class name "+a);if(!goog.isFunction(b))throw Error("Invalid decorator function "+b);goog.ui.registry.decoratorFunctions_[a]=b};goog.ui.registry.getDecorator=function(a){for(var b=goog.dom.classlist.get(a),c=0,d=b.length;c<d;c++)if(a=goog.ui.registry.getDecoratorByClassName(b[c]))return a;return null};goog.ui.registry.reset=function(){goog.ui.registry.defaultRenderers_={};goog.ui.registry.decoratorFunctions_={}};
goog.ui.registry.defaultRenderers_={};goog.ui.registry.decoratorFunctions_={};goog.a11y={};goog.a11y.aria={};
goog.a11y.aria.State={ACTIVEDESCENDANT:"activedescendant",ATOMIC:"atomic",AUTOCOMPLETE:"autocomplete",BUSY:"busy",CHECKED:"checked",CONTROLS:"controls",DESCRIBEDBY:"describedby",DISABLED:"disabled",DROPEFFECT:"dropeffect",EXPANDED:"expanded",FLOWTO:"flowto",GRABBED:"grabbed",HASPOPUP:"haspopup",HIDDEN:"hidden",INVALID:"invalid",LABEL:"label",LABELLEDBY:"labelledby",LEVEL:"level",LIVE:"live",MULTILINE:"multiline",MULTISELECTABLE:"multiselectable",ORIENTATION:"orientation",OWNS:"owns",POSINSET:"posinset",
PRESSED:"pressed",READONLY:"readonly",RELEVANT:"relevant",REQUIRED:"required",SELECTED:"selected",SETSIZE:"setsize",SORT:"sort",VALUEMAX:"valuemax",VALUEMIN:"valuemin",VALUENOW:"valuenow",VALUETEXT:"valuetext"};goog.a11y.aria.AutoCompleteValues={INLINE:"inline",LIST:"list",BOTH:"both",NONE:"none"};goog.a11y.aria.DropEffectValues={COPY:"copy",MOVE:"move",LINK:"link",EXECUTE:"execute",POPUP:"popup",NONE:"none"};goog.a11y.aria.LivePriority={OFF:"off",POLITE:"polite",ASSERTIVE:"assertive"};
goog.a11y.aria.OrientationValues={VERTICAL:"vertical",HORIZONTAL:"horizontal"};goog.a11y.aria.RelevantValues={ADDITIONS:"additions",REMOVALS:"removals",TEXT:"text",ALL:"all"};goog.a11y.aria.SortValues={ASCENDING:"ascending",DESCENDING:"descending",NONE:"none",OTHER:"other"};goog.a11y.aria.CheckedValues={TRUE:"true",FALSE:"false",MIXED:"mixed",UNDEFINED:"undefined"};goog.a11y.aria.ExpandedValues={TRUE:"true",FALSE:"false",UNDEFINED:"undefined"};
goog.a11y.aria.GrabbedValues={TRUE:"true",FALSE:"false",UNDEFINED:"undefined"};goog.a11y.aria.InvalidValues={FALSE:"false",TRUE:"true",GRAMMAR:"grammar",SPELLING:"spelling"};goog.a11y.aria.PressedValues={TRUE:"true",FALSE:"false",MIXED:"mixed",UNDEFINED:"undefined"};goog.a11y.aria.SelectedValues={TRUE:"true",FALSE:"false",UNDEFINED:"undefined"};goog.a11y.aria.datatables={};
goog.a11y.aria.datatables.getDefaultValuesMap=function(){goog.a11y.aria.DefaultStateValueMap_||(goog.a11y.aria.DefaultStateValueMap_=goog.object.create(goog.a11y.aria.State.ATOMIC,!1,goog.a11y.aria.State.AUTOCOMPLETE,"none",goog.a11y.aria.State.DROPEFFECT,"none",goog.a11y.aria.State.HASPOPUP,!1,goog.a11y.aria.State.LIVE,"off",goog.a11y.aria.State.MULTILINE,!1,goog.a11y.aria.State.MULTISELECTABLE,!1,goog.a11y.aria.State.ORIENTATION,"vertical",goog.a11y.aria.State.READONLY,!1,goog.a11y.aria.State.RELEVANT,
"additions text",goog.a11y.aria.State.REQUIRED,!1,goog.a11y.aria.State.SORT,"none",goog.a11y.aria.State.BUSY,!1,goog.a11y.aria.State.DISABLED,!1,goog.a11y.aria.State.HIDDEN,!1,goog.a11y.aria.State.INVALID,"false"));return goog.a11y.aria.DefaultStateValueMap_};goog.a11y.aria.Role={ALERT:"alert",ALERTDIALOG:"alertdialog",APPLICATION:"application",ARTICLE:"article",BANNER:"banner",BUTTON:"button",CHECKBOX:"checkbox",COLUMNHEADER:"columnheader",COMBOBOX:"combobox",COMPLEMENTARY:"complementary",CONTENTINFO:"contentinfo",DEFINITION:"definition",DIALOG:"dialog",DIRECTORY:"directory",DOCUMENT:"document",FORM:"form",GRID:"grid",GRIDCELL:"gridcell",GROUP:"group",HEADING:"heading",IMG:"img",LINK:"link",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",LOG:"log",
MAIN:"main",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUBAR:"menubar",MENU_ITEM:"menuitem",MENU_ITEM_CHECKBOX:"menuitemcheckbox",MENU_ITEM_RADIO:"menuitemradio",NAVIGATION:"navigation",NOTE:"note",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",ROW:"row",ROWGROUP:"rowgroup",ROWHEADER:"rowheader",SCROLLBAR:"scrollbar",SEARCH:"search",SEPARATOR:"separator",SLIDER:"slider",SPINBUTTON:"spinbutton",STATUS:"status",TAB:"tab",
TAB_LIST:"tablist",TAB_PANEL:"tabpanel",TEXTBOX:"textbox",TIMER:"timer",TOOLBAR:"toolbar",TOOLTIP:"tooltip",TREE:"tree",TREEGRID:"treegrid",TREEITEM:"treeitem"};goog.a11y.aria.ARIA_PREFIX_="aria-";goog.a11y.aria.ROLE_ATTRIBUTE_="role";goog.a11y.aria.TAGS_WITH_ASSUMED_ROLES_=[goog.dom.TagName.A,goog.dom.TagName.AREA,goog.dom.TagName.BUTTON,goog.dom.TagName.HEAD,goog.dom.TagName.INPUT,goog.dom.TagName.LINK,goog.dom.TagName.MENU,goog.dom.TagName.META,goog.dom.TagName.OPTGROUP,goog.dom.TagName.OPTION,goog.dom.TagName.PROGRESS,goog.dom.TagName.STYLE,goog.dom.TagName.SELECT,goog.dom.TagName.SOURCE,goog.dom.TagName.TEXTAREA,goog.dom.TagName.TITLE,goog.dom.TagName.TRACK];
goog.a11y.aria.setRole=function(a,b){b?(goog.asserts.ENABLE_ASSERTS&&goog.asserts.assert(goog.object.containsValue(goog.a11y.aria.Role,b),"No such ARIA role "+b),a.setAttribute(goog.a11y.aria.ROLE_ATTRIBUTE_,b)):goog.a11y.aria.removeRole(a)};goog.a11y.aria.getRole=function(a){return a.getAttribute(goog.a11y.aria.ROLE_ATTRIBUTE_)||null};goog.a11y.aria.removeRole=function(a){a.removeAttribute(goog.a11y.aria.ROLE_ATTRIBUTE_)};
goog.a11y.aria.setState=function(a,b,c){goog.isArrayLike(c)&&(c=c.join(" "));var d=goog.a11y.aria.getAriaAttributeName_(b);""===c||void 0==c?(c=goog.a11y.aria.datatables.getDefaultValuesMap(),b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)};goog.a11y.aria.removeState=function(a,b){a.removeAttribute(goog.a11y.aria.getAriaAttributeName_(b))};goog.a11y.aria.getState=function(a,b){var c=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));return null==c||void 0==c?"":String(c)};
goog.a11y.aria.getActiveDescendant=function(a){var b=goog.a11y.aria.getState(a,goog.a11y.aria.State.ACTIVEDESCENDANT);return goog.dom.getOwnerDocument(a).getElementById(b)};goog.a11y.aria.setActiveDescendant=function(a,b){var c="";b&&(c=b.id,goog.asserts.assert(c,"The active element should have an id."));goog.a11y.aria.setState(a,goog.a11y.aria.State.ACTIVEDESCENDANT,c)};goog.a11y.aria.getLabel=function(a){return goog.a11y.aria.getState(a,goog.a11y.aria.State.LABEL)};
goog.a11y.aria.setLabel=function(a,b){goog.a11y.aria.setState(a,goog.a11y.aria.State.LABEL,b)};goog.a11y.aria.assertRoleIsSetInternalUtil=function(a,b){if(!goog.array.contains(goog.a11y.aria.TAGS_WITH_ASSUMED_ROLES_,a.tagName)){var c=goog.a11y.aria.getRole(a);goog.asserts.assert(null!=c,"The element ARIA role cannot be null.");goog.asserts.assert(goog.array.contains(b,c),'Non existing or incorrect role set for element.The role set is "'+c+'". The role should be any of "'+b+'". Check the ARIA specification for more details http://www.w3.org/TR/wai-aria/roles.')}};
goog.a11y.aria.getStateBoolean=function(a,b){var c=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));goog.asserts.assert(goog.isBoolean(c)||null==c||"true"==c||"false"==c);return null==c?c:goog.isBoolean(c)?c:"true"==c};goog.a11y.aria.getStateNumber=function(a,b){var c=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));goog.asserts.assert((null==c||!isNaN(Number(c)))&&!goog.isBoolean(c));return null==c?null:Number(c)};
goog.a11y.aria.getStateString=function(a,b){var c=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));goog.asserts.assert((null==c||goog.isString(c))&&isNaN(Number(c))&&"true"!=c&&"false"!=c);return null==c?null:c};goog.a11y.aria.getStringArrayStateInternalUtil=function(a,b){var c=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));return goog.a11y.aria.splitStringOnWhitespace_(c)};goog.a11y.aria.splitStringOnWhitespace_=function(a){return a?a.split(/\s+/):[]};
goog.a11y.aria.getAriaAttributeName_=function(a){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.assert(a,"ARIA attribute cannot be empty."),goog.asserts.assert(goog.object.containsValue(goog.a11y.aria.State,a),"No such ARIA attribute "+a));return goog.a11y.aria.ARIA_PREFIX_+a};goog.ui.ControlRenderer=function(){};goog.addSingletonGetter(goog.ui.ControlRenderer);goog.ui.ControlRenderer.getCustomRenderer=function(a,b){var c=new a;c.getCssClass=function(){return b};return c};goog.ui.ControlRenderer.CSS_CLASS="goog-control";goog.ui.ControlRenderer.IE6_CLASS_COMBINATIONS=[];goog.ui.ControlRenderer.prototype.getAriaRole=function(){};
goog.ui.ControlRenderer.prototype.createDom=function(a){var b=a.getDomHelper().createDom("div",this.getClassNames(a).join(" "),a.getContent());this.setAriaStates(a,b);return b};goog.ui.ControlRenderer.prototype.getContentElement=function(a){return a};
goog.ui.ControlRenderer.prototype.enableClassName=function(a,b,c){if(a=a.getElement?a.getElement():a)if(goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("7")){var d=this.getAppliedCombinedClassNames_(goog.dom.classes.get(a),b);d.push(b);goog.partial(c?goog.dom.classes.add:goog.dom.classes.remove,a).apply(null,d)}else goog.dom.classes.enable(a,b,c)};goog.ui.ControlRenderer.prototype.enableExtraClassName=function(a,b,c){this.enableClassName(a,b,c)};
goog.ui.ControlRenderer.prototype.canDecorate=function(a){return!0};
goog.ui.ControlRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);var c=this.getContentElement(b);c&&c.firstChild?a.setContentInternal(c.firstChild.nextSibling?goog.array.clone(c.childNodes):c.firstChild):a.setContentInternal(null);var d=0,e=this.getCssClass(),f=this.getStructuralCssClass(),g=!1,h=!1,c=!1,k=goog.dom.classes.get(b);goog.array.forEach(k,function(a){!g&&a==e?(g=!0,f==e&&(h=!0)):!h&&a==f?h=!0:d|=this.getStateFromClass(a)},this);a.setStateInternal(d);g||(k.push(e),f==e&&(h=
!0));h||k.push(f);var l=a.getExtraClassNames();l&&k.push.apply(k,l);if(goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("7")){var m=this.getAppliedCombinedClassNames_(k);0<m.length&&(k.push.apply(k,m),c=!0)}(!g||!h||l||c)&&goog.dom.classes.set(b,k.join(" "));this.setAriaStates(a,b);return b};goog.ui.ControlRenderer.prototype.initializeDom=function(a){a.isRightToLeft()&&this.setRightToLeft(a.getElement(),!0);a.isEnabled()&&this.setFocusable(a,a.isVisible())};
goog.ui.ControlRenderer.prototype.setAriaRole=function(a,b){var c=b||this.getAriaRole();c&&(goog.asserts.assert(a,"The element passed as a first parameter cannot be null."),goog.a11y.aria.setRole(a,c))};
goog.ui.ControlRenderer.prototype.setAriaStates=function(a,b){goog.asserts.assert(a);goog.asserts.assert(b);a.isVisible()||goog.a11y.aria.setState(b,goog.a11y.aria.State.HIDDEN,!a.isVisible());a.isEnabled()||this.updateAriaState(b,goog.ui.Component.State.DISABLED,!a.isEnabled());a.isSupportedState(goog.ui.Component.State.SELECTED)&&this.updateAriaState(b,goog.ui.Component.State.SELECTED,a.isSelected());a.isSupportedState(goog.ui.Component.State.CHECKED)&&this.updateAriaState(b,goog.ui.Component.State.CHECKED,
a.isChecked());a.isSupportedState(goog.ui.Component.State.OPENED)&&this.updateAriaState(b,goog.ui.Component.State.OPENED,a.isOpen())};goog.ui.ControlRenderer.prototype.setAllowTextSelection=function(a,b){goog.style.setUnselectable(a,!b,!goog.userAgent.IE&&!goog.userAgent.OPERA)};goog.ui.ControlRenderer.prototype.setRightToLeft=function(a,b){this.enableClassName(a,this.getStructuralCssClass()+"-rtl",b)};
goog.ui.ControlRenderer.prototype.isFocusable=function(a){var b;return a.isSupportedState(goog.ui.Component.State.FOCUSED)&&(b=a.getKeyEventTarget())?goog.dom.isFocusableTabIndex(b):!1};goog.ui.ControlRenderer.prototype.setFocusable=function(a,b){var c;if(a.isSupportedState(goog.ui.Component.State.FOCUSED)&&(c=a.getKeyEventTarget())){if(!b&&a.isFocused()){try{c.blur()}catch(d){}a.isFocused()&&a.handleBlur(null)}goog.dom.isFocusableTabIndex(c)!=b&&goog.dom.setFocusableTabIndex(c,b)}};
goog.ui.ControlRenderer.prototype.setVisible=function(a,b){goog.style.setElementShown(a,b);a&&goog.a11y.aria.setState(a,goog.a11y.aria.State.HIDDEN,!b)};goog.ui.ControlRenderer.prototype.setState=function(a,b,c){var d=a.getElement();if(d){var e=this.getClassForState(b);e&&this.enableClassName(a,e,c);this.updateAriaState(d,b,c)}};
goog.ui.ControlRenderer.prototype.updateAriaState=function(a,b,c){goog.ui.ControlRenderer.ARIA_STATE_MAP_||(goog.ui.ControlRenderer.ARIA_STATE_MAP_=goog.object.create(goog.ui.Component.State.DISABLED,goog.a11y.aria.State.DISABLED,goog.ui.Component.State.SELECTED,goog.a11y.aria.State.SELECTED,goog.ui.Component.State.CHECKED,goog.a11y.aria.State.CHECKED,goog.ui.Component.State.OPENED,goog.a11y.aria.State.EXPANDED));if(b=goog.ui.ControlRenderer.ARIA_STATE_MAP_[b])goog.asserts.assert(a,"The element passed as a first parameter cannot be null."),
goog.a11y.aria.setState(a,b,c)};goog.ui.ControlRenderer.prototype.setContent=function(a,b){var c=this.getContentElement(a);if(c&&(goog.dom.removeChildren(c),b))if(goog.isString(b))goog.dom.setTextContent(c,b);else{var d=function(a){if(a){var b=goog.dom.getOwnerDocument(c);c.appendChild(goog.isString(a)?b.createTextNode(a):a)}};goog.isArray(b)?goog.array.forEach(b,d):goog.isArrayLike(b)&&!("nodeType"in b)?goog.array.forEach(goog.array.clone(b),d):d(b)}};
goog.ui.ControlRenderer.prototype.getKeyEventTarget=function(a){return a.getElement()};goog.ui.ControlRenderer.prototype.getCssClass=function(){return goog.ui.ControlRenderer.CSS_CLASS};goog.ui.ControlRenderer.prototype.getIe6ClassCombinations=function(){return[]};goog.ui.ControlRenderer.prototype.getStructuralCssClass=function(){return this.getCssClass()};
goog.ui.ControlRenderer.prototype.getClassNames=function(a){var b=this.getCssClass(),c=[b],d=this.getStructuralCssClass();d!=b&&c.push(d);b=this.getClassNamesForState(a.getState());c.push.apply(c,b);(a=a.getExtraClassNames())&&c.push.apply(c,a);goog.userAgent.IE&&!goog.userAgent.isVersionOrHigher("7")&&c.push.apply(c,this.getAppliedCombinedClassNames_(c));return c};
goog.ui.ControlRenderer.prototype.getAppliedCombinedClassNames_=function(a,b){var c=[];b&&(a=a.concat([b]));goog.array.forEach(this.getIe6ClassCombinations(),function(d){goog.array.every(d,goog.partial(goog.array.contains,a))&&(!b||goog.array.contains(d,b))&&c.push(d.join("_"))});return c};goog.ui.ControlRenderer.prototype.getClassNamesForState=function(a){for(var b=[];a;){var c=a&-a;b.push(this.getClassForState(c));a&=~c}return b};
goog.ui.ControlRenderer.prototype.getClassForState=function(a){this.classByState_||this.createClassByStateMap_();return this.classByState_[a]};goog.ui.ControlRenderer.prototype.getStateFromClass=function(a){this.stateByClass_||this.createStateByClassMap_();a=parseInt(this.stateByClass_[a],10);return isNaN(a)?0:a};
goog.ui.ControlRenderer.prototype.createClassByStateMap_=function(){var a=this.getStructuralCssClass();this.classByState_=goog.object.create(goog.ui.Component.State.DISABLED,a+"-disabled",goog.ui.Component.State.HOVER,a+"-hover",goog.ui.Component.State.ACTIVE,a+"-active",goog.ui.Component.State.SELECTED,a+"-selected",goog.ui.Component.State.CHECKED,a+"-checked",goog.ui.Component.State.FOCUSED,a+"-focused",goog.ui.Component.State.OPENED,a+"-open")};
goog.ui.ControlRenderer.prototype.createStateByClassMap_=function(){this.classByState_||this.createClassByStateMap_();this.stateByClass_=goog.object.transpose(this.classByState_)};goog.ui.decorate=function(a){var b=goog.ui.registry.getDecorator(a);b&&b.decorate(a);return b};goog.events.KeyHandler=function(a,b){goog.events.EventTarget.call(this);a&&this.attach(a,b)};goog.inherits(goog.events.KeyHandler,goog.events.EventTarget);goog.events.KeyHandler.prototype.element_=null;goog.events.KeyHandler.prototype.keyPressKey_=null;goog.events.KeyHandler.prototype.keyDownKey_=null;goog.events.KeyHandler.prototype.keyUpKey_=null;goog.events.KeyHandler.prototype.lastKey_=-1;goog.events.KeyHandler.prototype.keyCode_=-1;goog.events.KeyHandler.prototype.altKey_=!1;
goog.events.KeyHandler.EventType={KEY:"key"};
goog.events.KeyHandler.safariKey_={3:goog.events.KeyCodes.ENTER,12:goog.events.KeyCodes.NUMLOCK,63232:goog.events.KeyCodes.UP,63233:goog.events.KeyCodes.DOWN,63234:goog.events.KeyCodes.LEFT,63235:goog.events.KeyCodes.RIGHT,63236:goog.events.KeyCodes.F1,63237:goog.events.KeyCodes.F2,63238:goog.events.KeyCodes.F3,63239:goog.events.KeyCodes.F4,63240:goog.events.KeyCodes.F5,63241:goog.events.KeyCodes.F6,63242:goog.events.KeyCodes.F7,63243:goog.events.KeyCodes.F8,63244:goog.events.KeyCodes.F9,63245:goog.events.KeyCodes.F10,
63246:goog.events.KeyCodes.F11,63247:goog.events.KeyCodes.F12,63248:goog.events.KeyCodes.PRINT_SCREEN,63272:goog.events.KeyCodes.DELETE,63273:goog.events.KeyCodes.HOME,63275:goog.events.KeyCodes.END,63276:goog.events.KeyCodes.PAGE_UP,63277:goog.events.KeyCodes.PAGE_DOWN,63289:goog.events.KeyCodes.NUMLOCK,63302:goog.events.KeyCodes.INSERT};
goog.events.KeyHandler.keyIdentifier_={Up:goog.events.KeyCodes.UP,Down:goog.events.KeyCodes.DOWN,Left:goog.events.KeyCodes.LEFT,Right:goog.events.KeyCodes.RIGHT,Enter:goog.events.KeyCodes.ENTER,F1:goog.events.KeyCodes.F1,F2:goog.events.KeyCodes.F2,F3:goog.events.KeyCodes.F3,F4:goog.events.KeyCodes.F4,F5:goog.events.KeyCodes.F5,F6:goog.events.KeyCodes.F6,F7:goog.events.KeyCodes.F7,F8:goog.events.KeyCodes.F8,F9:goog.events.KeyCodes.F9,F10:goog.events.KeyCodes.F10,F11:goog.events.KeyCodes.F11,F12:goog.events.KeyCodes.F12,
"U+007F":goog.events.KeyCodes.DELETE,Home:goog.events.KeyCodes.HOME,End:goog.events.KeyCodes.END,PageUp:goog.events.KeyCodes.PAGE_UP,PageDown:goog.events.KeyCodes.PAGE_DOWN,Insert:goog.events.KeyCodes.INSERT};goog.events.KeyHandler.USES_KEYDOWN_=goog.userAgent.IE||goog.userAgent.WEBKIT&&goog.userAgent.isVersionOrHigher("525");goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_=goog.userAgent.MAC&&goog.userAgent.GECKO;
goog.events.KeyHandler.prototype.handleKeyDown_=function(a){if(goog.userAgent.WEBKIT&&(this.lastKey_==goog.events.KeyCodes.CTRL&&!a.ctrlKey||this.lastKey_==goog.events.KeyCodes.ALT&&!a.altKey||goog.userAgent.MAC&&this.lastKey_==goog.events.KeyCodes.META&&!a.metaKey))this.keyCode_=this.lastKey_=-1;-1==this.lastKey_&&(a.ctrlKey&&a.keyCode!=goog.events.KeyCodes.CTRL?this.lastKey_=goog.events.KeyCodes.CTRL:a.altKey&&a.keyCode!=goog.events.KeyCodes.ALT?this.lastKey_=goog.events.KeyCodes.ALT:a.metaKey&&
a.keyCode!=goog.events.KeyCodes.META&&(this.lastKey_=goog.events.KeyCodes.META));goog.events.KeyHandler.USES_KEYDOWN_&&!goog.events.KeyCodes.firesKeyPressEvent(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey)?this.handleEvent(a):(this.keyCode_=goog.events.KeyCodes.normalizeKeyCode(a.keyCode),goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(this.altKey_=a.altKey))};goog.events.KeyHandler.prototype.resetState=function(){this.keyCode_=this.lastKey_=-1};
goog.events.KeyHandler.prototype.handleKeyup_=function(a){this.resetState();this.altKey_=a.altKey};
goog.events.KeyHandler.prototype.handleEvent=function(a){var b=a.getBrowserEvent(),c,d,e=b.altKey;goog.userAgent.IE&&a.type==goog.events.EventType.KEYPRESS?(c=this.keyCode_,d=c!=goog.events.KeyCodes.ENTER&&c!=goog.events.KeyCodes.ESC?b.keyCode:0):goog.userAgent.WEBKIT&&a.type==goog.events.EventType.KEYPRESS?(c=this.keyCode_,d=0<=b.charCode&&63232>b.charCode&&goog.events.KeyCodes.isCharacterKey(c)?b.charCode:0):goog.userAgent.OPERA?(c=this.keyCode_,d=goog.events.KeyCodes.isCharacterKey(c)?b.keyCode:
0):(c=b.keyCode||this.keyCode_,d=b.charCode||0,goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(e=this.altKey_),goog.userAgent.MAC&&(d==goog.events.KeyCodes.QUESTION_MARK&&c==goog.events.KeyCodes.WIN_KEY)&&(c=goog.events.KeyCodes.SLASH));var f=c=goog.events.KeyCodes.normalizeKeyCode(c),g=b.keyIdentifier;c?63232<=c&&c in goog.events.KeyHandler.safariKey_?f=goog.events.KeyHandler.safariKey_[c]:25==c&&a.shiftKey&&(f=9):g&&g in goog.events.KeyHandler.keyIdentifier_&&(f=goog.events.KeyHandler.keyIdentifier_[g]);
a=f==this.lastKey_;this.lastKey_=f;b=new goog.events.KeyEvent(f,d,a,b);b.altKey=e;this.dispatchEvent(b)};goog.events.KeyHandler.prototype.getElement=function(){return this.element_};
goog.events.KeyHandler.prototype.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=goog.events.listen(this.element_,goog.events.EventType.KEYPRESS,this,b);this.keyDownKey_=goog.events.listen(this.element_,goog.events.EventType.KEYDOWN,this.handleKeyDown_,b,this);this.keyUpKey_=goog.events.listen(this.element_,goog.events.EventType.KEYUP,this.handleKeyup_,b,this)};
goog.events.KeyHandler.prototype.detach=function(){this.keyPressKey_&&(goog.events.unlistenByKey(this.keyPressKey_),goog.events.unlistenByKey(this.keyDownKey_),goog.events.unlistenByKey(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};goog.events.KeyHandler.prototype.disposeInternal=function(){goog.events.KeyHandler.superClass_.disposeInternal.call(this);this.detach()};
goog.events.KeyEvent=function(a,b,c,d){goog.events.BrowserEvent.call(this,d);this.type=goog.events.KeyHandler.EventType.KEY;this.keyCode=a;this.charCode=b;this.repeat=c};goog.inherits(goog.events.KeyEvent,goog.events.BrowserEvent);goog.ui.Control=function(a,b,c){goog.ui.Component.call(this,c);this.renderer_=b||goog.ui.registry.getDefaultRenderer(this.constructor);this.setContentInternal(goog.isDef(a)?a:null)};goog.inherits(goog.ui.Control,goog.ui.Component);goog.ui.Control.registerDecorator=goog.ui.registry.setDecoratorByClassName;goog.ui.Control.getDecorator=goog.ui.registry.getDecorator;goog.ui.Control.decorate=goog.ui.decorate;goog.ui.Control.prototype.content_=null;goog.ui.Control.prototype.state_=0;
goog.ui.Control.prototype.supportedStates_=goog.ui.Component.State.DISABLED|goog.ui.Component.State.HOVER|goog.ui.Component.State.ACTIVE|goog.ui.Component.State.FOCUSED;goog.ui.Control.prototype.autoStates_=goog.ui.Component.State.ALL;goog.ui.Control.prototype.statesWithTransitionEvents_=0;goog.ui.Control.prototype.visible_=!0;goog.ui.Control.prototype.extraClassNames_=null;goog.ui.Control.prototype.handleMouseEvents_=!0;goog.ui.Control.prototype.allowTextSelection_=!1;
goog.ui.Control.prototype.preferredAriaRole_=null;goog.ui.Control.prototype.isHandleMouseEvents=function(){return this.handleMouseEvents_};goog.ui.Control.prototype.setHandleMouseEvents=function(a){this.isInDocument()&&a!=this.handleMouseEvents_&&this.enableMouseEventHandling_(a);this.handleMouseEvents_=a};goog.ui.Control.prototype.getKeyEventTarget=function(){return this.renderer_.getKeyEventTarget(this)};
goog.ui.Control.prototype.getKeyHandler=function(){return this.keyHandler_||(this.keyHandler_=new goog.events.KeyHandler)};goog.ui.Control.prototype.getRenderer=function(){return this.renderer_};goog.ui.Control.prototype.setRenderer=function(a){if(this.isInDocument())throw Error(goog.ui.Component.Error.ALREADY_RENDERED);this.getElement()&&this.setElementInternal(null);this.renderer_=a};goog.ui.Control.prototype.getExtraClassNames=function(){return this.extraClassNames_};
goog.ui.Control.prototype.addClassName=function(a){a&&(this.extraClassNames_?goog.array.contains(this.extraClassNames_,a)||this.extraClassNames_.push(a):this.extraClassNames_=[a],this.renderer_.enableExtraClassName(this,a,!0))};goog.ui.Control.prototype.removeClassName=function(a){a&&(this.extraClassNames_&&goog.array.remove(this.extraClassNames_,a))&&(0==this.extraClassNames_.length&&(this.extraClassNames_=null),this.renderer_.enableExtraClassName(this,a,!1))};
goog.ui.Control.prototype.enableClassName=function(a,b){b?this.addClassName(a):this.removeClassName(a)};goog.ui.Control.prototype.createDom=function(){var a=this.renderer_.createDom(this);this.setElementInternal(a);this.renderer_.setAriaRole(a,this.getPreferredAriaRole());this.isAllowTextSelection()||this.renderer_.setAllowTextSelection(a,!1);this.isVisible()||this.renderer_.setVisible(a,!1)};goog.ui.Control.prototype.getPreferredAriaRole=function(){return this.preferredAriaRole_};
goog.ui.Control.prototype.setPreferredAriaRole=function(a){this.preferredAriaRole_=a};goog.ui.Control.prototype.getContentElement=function(){return this.renderer_.getContentElement(this.getElement())};goog.ui.Control.prototype.canDecorate=function(a){return this.renderer_.canDecorate(a)};
goog.ui.Control.prototype.decorateInternal=function(a){a=this.renderer_.decorate(this,a);this.setElementInternal(a);this.renderer_.setAriaRole(a,this.getPreferredAriaRole());this.isAllowTextSelection()||this.renderer_.setAllowTextSelection(a,!1);this.visible_="none"!=a.style.display};
goog.ui.Control.prototype.enterDocument=function(){goog.ui.Control.superClass_.enterDocument.call(this);this.renderer_.initializeDom(this);if(this.supportedStates_&~goog.ui.Component.State.DISABLED&&(this.isHandleMouseEvents()&&this.enableMouseEventHandling_(!0),this.isSupportedState(goog.ui.Component.State.FOCUSED))){var a=this.getKeyEventTarget();if(a){var b=this.getKeyHandler();b.attach(a);this.getHandler().listen(b,goog.events.KeyHandler.EventType.KEY,this.handleKeyEvent).listen(a,goog.events.EventType.FOCUS,
this.handleFocus).listen(a,goog.events.EventType.BLUR,this.handleBlur)}}};
goog.ui.Control.prototype.enableMouseEventHandling_=function(a){var b=this.getHandler(),c=this.getElement();a?(b.listen(c,goog.events.EventType.MOUSEOVER,this.handleMouseOver).listen(c,goog.events.EventType.MOUSEDOWN,this.handleMouseDown).listen(c,goog.events.EventType.MOUSEUP,this.handleMouseUp).listen(c,goog.events.EventType.MOUSEOUT,this.handleMouseOut),this.handleContextMenu!=goog.nullFunction&&b.listen(c,goog.events.EventType.CONTEXTMENU,this.handleContextMenu),goog.userAgent.IE&&b.listen(c,
goog.events.EventType.DBLCLICK,this.handleDblClick)):(b.unlisten(c,goog.events.EventType.MOUSEOVER,this.handleMouseOver).unlisten(c,goog.events.EventType.MOUSEDOWN,this.handleMouseDown).unlisten(c,goog.events.EventType.MOUSEUP,this.handleMouseUp).unlisten(c,goog.events.EventType.MOUSEOUT,this.handleMouseOut),this.handleContextMenu!=goog.nullFunction&&b.unlisten(c,goog.events.EventType.CONTEXTMENU,this.handleContextMenu),goog.userAgent.IE&&b.unlisten(c,goog.events.EventType.DBLCLICK,this.handleDblClick))};
goog.ui.Control.prototype.exitDocument=function(){goog.ui.Control.superClass_.exitDocument.call(this);this.keyHandler_&&this.keyHandler_.detach();this.isVisible()&&this.isEnabled()&&this.renderer_.setFocusable(this,!1)};goog.ui.Control.prototype.disposeInternal=function(){goog.ui.Control.superClass_.disposeInternal.call(this);this.keyHandler_&&(this.keyHandler_.dispose(),delete this.keyHandler_);delete this.renderer_;this.extraClassNames_=this.content_=null};goog.ui.Control.prototype.getContent=function(){return this.content_};
goog.ui.Control.prototype.setContent=function(a){this.renderer_.setContent(this.getElement(),a);this.setContentInternal(a)};goog.ui.Control.prototype.setContentInternal=function(a){this.content_=a};goog.ui.Control.prototype.getCaption=function(){var a=this.getContent();if(!a)return"";a=goog.isString(a)?a:goog.isArray(a)?goog.array.map(a,goog.dom.getRawTextContent).join(""):goog.dom.getTextContent(a);return goog.string.collapseBreakingSpaces(a)};goog.ui.Control.prototype.setCaption=function(a){this.setContent(a)};
goog.ui.Control.prototype.setRightToLeft=function(a){goog.ui.Control.superClass_.setRightToLeft.call(this,a);var b=this.getElement();b&&this.renderer_.setRightToLeft(b,a)};goog.ui.Control.prototype.isAllowTextSelection=function(){return this.allowTextSelection_};goog.ui.Control.prototype.setAllowTextSelection=function(a){this.allowTextSelection_=a;var b=this.getElement();b&&this.renderer_.setAllowTextSelection(b,a)};goog.ui.Control.prototype.isVisible=function(){return this.visible_};
goog.ui.Control.prototype.setVisible=function(a,b){if(b||this.visible_!=a&&this.dispatchEvent(a?goog.ui.Component.EventType.SHOW:goog.ui.Component.EventType.HIDE)){var c=this.getElement();c&&this.renderer_.setVisible(c,a);this.isEnabled()&&this.renderer_.setFocusable(this,a);this.visible_=a;return!0}return!1};goog.ui.Control.prototype.isEnabled=function(){return!this.hasState(goog.ui.Component.State.DISABLED)};
goog.ui.Control.prototype.isParentDisabled_=function(){var a=this.getParent();return!!a&&"function"==typeof a.isEnabled&&!a.isEnabled()};goog.ui.Control.prototype.setEnabled=function(a){!this.isParentDisabled_()&&this.isTransitionAllowed(goog.ui.Component.State.DISABLED,!a)&&(a||(this.setActive(!1),this.setHighlighted(!1)),this.isVisible()&&this.renderer_.setFocusable(this,a),this.setState(goog.ui.Component.State.DISABLED,!a))};goog.ui.Control.prototype.isHighlighted=function(){return this.hasState(goog.ui.Component.State.HOVER)};
goog.ui.Control.prototype.setHighlighted=function(a){this.isTransitionAllowed(goog.ui.Component.State.HOVER,a)&&this.setState(goog.ui.Component.State.HOVER,a)};goog.ui.Control.prototype.isActive=function(){return this.hasState(goog.ui.Component.State.ACTIVE)};goog.ui.Control.prototype.setActive=function(a){this.isTransitionAllowed(goog.ui.Component.State.ACTIVE,a)&&this.setState(goog.ui.Component.State.ACTIVE,a)};goog.ui.Control.prototype.isSelected=function(){return this.hasState(goog.ui.Component.State.SELECTED)};
goog.ui.Control.prototype.setSelected=function(a){this.isTransitionAllowed(goog.ui.Component.State.SELECTED,a)&&this.setState(goog.ui.Component.State.SELECTED,a)};goog.ui.Control.prototype.isChecked=function(){return this.hasState(goog.ui.Component.State.CHECKED)};goog.ui.Control.prototype.setChecked=function(a){this.isTransitionAllowed(goog.ui.Component.State.CHECKED,a)&&this.setState(goog.ui.Component.State.CHECKED,a)};goog.ui.Control.prototype.isFocused=function(){return this.hasState(goog.ui.Component.State.FOCUSED)};
goog.ui.Control.prototype.setFocused=function(a){this.isTransitionAllowed(goog.ui.Component.State.FOCUSED,a)&&this.setState(goog.ui.Component.State.FOCUSED,a)};goog.ui.Control.prototype.isOpen=function(){return this.hasState(goog.ui.Component.State.OPENED)};goog.ui.Control.prototype.setOpen=function(a){this.isTransitionAllowed(goog.ui.Component.State.OPENED,a)&&this.setState(goog.ui.Component.State.OPENED,a)};goog.ui.Control.prototype.getState=function(){return this.state_};
goog.ui.Control.prototype.hasState=function(a){return!!(this.state_&a)};goog.ui.Control.prototype.setState=function(a,b){this.isSupportedState(a)&&b!=this.hasState(a)&&(this.renderer_.setState(this,a,b),this.state_=b?this.state_|a:this.state_&~a)};goog.ui.Control.prototype.setStateInternal=function(a){this.state_=a};goog.ui.Control.prototype.isSupportedState=function(a){return!!(this.supportedStates_&a)};
goog.ui.Control.prototype.setSupportedState=function(a,b){if(this.isInDocument()&&this.hasState(a)&&!b)throw Error(goog.ui.Component.Error.ALREADY_RENDERED);!b&&this.hasState(a)&&this.setState(a,!1);this.supportedStates_=b?this.supportedStates_|a:this.supportedStates_&~a};goog.ui.Control.prototype.isAutoState=function(a){return!!(this.autoStates_&a)&&this.isSupportedState(a)};goog.ui.Control.prototype.setAutoStates=function(a,b){this.autoStates_=b?this.autoStates_|a:this.autoStates_&~a};
goog.ui.Control.prototype.isDispatchTransitionEvents=function(a){return!!(this.statesWithTransitionEvents_&a)&&this.isSupportedState(a)};goog.ui.Control.prototype.setDispatchTransitionEvents=function(a,b){this.statesWithTransitionEvents_=b?this.statesWithTransitionEvents_|a:this.statesWithTransitionEvents_&~a};
goog.ui.Control.prototype.isTransitionAllowed=function(a,b){return this.isSupportedState(a)&&this.hasState(a)!=b&&(!(this.statesWithTransitionEvents_&a)||this.dispatchEvent(goog.ui.Component.getStateTransitionEvent(a,b)))&&!this.isDisposed()};goog.ui.Control.prototype.handleMouseOver=function(a){!goog.ui.Control.isMouseEventWithinElement_(a,this.getElement())&&(this.dispatchEvent(goog.ui.Component.EventType.ENTER)&&this.isEnabled()&&this.isAutoState(goog.ui.Component.State.HOVER))&&this.setHighlighted(!0)};
goog.ui.Control.prototype.handleMouseOut=function(a){!goog.ui.Control.isMouseEventWithinElement_(a,this.getElement())&&this.dispatchEvent(goog.ui.Component.EventType.LEAVE)&&(this.isAutoState(goog.ui.Component.State.ACTIVE)&&this.setActive(!1),this.isAutoState(goog.ui.Component.State.HOVER)&&this.setHighlighted(!1))};goog.ui.Control.prototype.handleContextMenu=goog.nullFunction;goog.ui.Control.isMouseEventWithinElement_=function(a,b){return!!a.relatedTarget&&goog.dom.contains(b,a.relatedTarget)};
goog.ui.Control.prototype.handleMouseDown=function(a){this.isEnabled()&&(this.isAutoState(goog.ui.Component.State.HOVER)&&this.setHighlighted(!0),a.isMouseActionButton()&&(this.isAutoState(goog.ui.Component.State.ACTIVE)&&this.setActive(!0),this.renderer_.isFocusable(this)&&this.getKeyEventTarget().focus()));!this.isAllowTextSelection()&&a.isMouseActionButton()&&a.preventDefault()};
goog.ui.Control.prototype.handleMouseUp=function(a){this.isEnabled()&&(this.isAutoState(goog.ui.Component.State.HOVER)&&this.setHighlighted(!0),this.isActive()&&(this.performActionInternal(a)&&this.isAutoState(goog.ui.Component.State.ACTIVE))&&this.setActive(!1))};goog.ui.Control.prototype.handleDblClick=function(a){this.isEnabled()&&this.performActionInternal(a)};
goog.ui.Control.prototype.performActionInternal=function(a){this.isAutoState(goog.ui.Component.State.CHECKED)&&this.setChecked(!this.isChecked());this.isAutoState(goog.ui.Component.State.SELECTED)&&this.setSelected(!0);this.isAutoState(goog.ui.Component.State.OPENED)&&this.setOpen(!this.isOpen());var b=new goog.events.Event(goog.ui.Component.EventType.ACTION,this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.platformModifierKey=a.platformModifierKey);return this.dispatchEvent(b)};
goog.ui.Control.prototype.handleFocus=function(a){this.isAutoState(goog.ui.Component.State.FOCUSED)&&this.setFocused(!0)};goog.ui.Control.prototype.handleBlur=function(a){this.isAutoState(goog.ui.Component.State.ACTIVE)&&this.setActive(!1);this.isAutoState(goog.ui.Component.State.FOCUSED)&&this.setFocused(!1)};goog.ui.Control.prototype.handleKeyEvent=function(a){return this.isVisible()&&this.isEnabled()&&this.handleKeyEventInternal(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
goog.ui.Control.prototype.handleKeyEventInternal=function(a){return a.keyCode==goog.events.KeyCodes.ENTER&&this.performActionInternal(a)};goog.ui.registry.setDefaultRenderer(goog.ui.Control,goog.ui.ControlRenderer);goog.ui.registry.setDecoratorByClassName(goog.ui.ControlRenderer.CSS_CLASS,function(){return new goog.ui.Control(null)});goog.ui.TabRenderer=function(){goog.ui.ControlRenderer.call(this)};goog.inherits(goog.ui.TabRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.TabRenderer);goog.ui.TabRenderer.CSS_CLASS="goog-tab";goog.ui.TabRenderer.prototype.getCssClass=function(){return goog.ui.TabRenderer.CSS_CLASS};goog.ui.TabRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.TAB};
goog.ui.TabRenderer.prototype.createDom=function(a){var b=goog.ui.TabRenderer.superClass_.createDom.call(this,a);(a=a.getTooltip())&&this.setTooltip(b,a);return b};goog.ui.TabRenderer.prototype.decorate=function(a,b){b=goog.ui.TabRenderer.superClass_.decorate.call(this,a,b);var c=this.getTooltip(b);c&&a.setTooltipInternal(c);if(a.isSelected()&&(c=a.getParent())&&goog.isFunction(c.setSelectedTab))a.setState(goog.ui.Component.State.SELECTED,!1),c.setSelectedTab(a);return b};
goog.ui.TabRenderer.prototype.getTooltip=function(a){return a.title||""};goog.ui.TabRenderer.prototype.setTooltip=function(a,b){a&&(a.title=b||"")};goog.ui.Tab=function(a,b,c){goog.ui.Control.call(this,a,b||goog.ui.TabRenderer.getInstance(),c);this.setSupportedState(goog.ui.Component.State.SELECTED,!0);this.setDispatchTransitionEvents(goog.ui.Component.State.DISABLED|goog.ui.Component.State.SELECTED,!0)};goog.inherits(goog.ui.Tab,goog.ui.Control);goog.ui.Tab.prototype.getTooltip=function(){return this.tooltip_};goog.ui.Tab.prototype.setTooltip=function(a){this.getRenderer().setTooltip(this.getElement(),a);this.setTooltipInternal(a)};
goog.ui.Tab.prototype.setTooltipInternal=function(a){this.tooltip_=a};goog.ui.registry.setDecoratorByClassName(goog.ui.TabRenderer.CSS_CLASS,function(){return new goog.ui.Tab(null)});neutron.dashboard.events.CommentPosted=function(a,b,c){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.COMMENT_POSTED;this.commentText=a;this.requestToken=b;this.isReply=c};goog.inherits(neutron.dashboard.events.CommentPosted,goog.events.Event);neutron.dashboard.controls.Spinner=function(a,b){neutron.dashboard.RenderableObject.call(this);this._useSmallVersion=!1;!0==goog.isDefAndNotNull(b)&&(this._useSmallVersion=b);!0==goog.isDefAndNotNull(a)&&this._construct(a)};goog.inherits(neutron.dashboard.controls.Spinner,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.Spinner.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":!1==this._useSmallVersion?"spinner":"spinnerSmall"});var b=goog.dom.createDom("div",{"class":"spin"});this._htmlNode.appendChild(b);a.appendChild(this._htmlNode)};
neutron.dashboard.controls.Spinner.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode)||(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.bottom="auto",this._htmlNode.style.right="auto",this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px")};neutron.dashboard.controls.Spinner.prototype._remove=function(){};neutron.dashboard.controls.Reply_v2=function(a){neutron.dashboard.RenderableObject.call(this);this._parentCommentId=a;this._deactivateTimeout=this._spinner=this._postButtonHtmlNode=this._cancelButtonHtmlNode=this._additionalInfoContainer=this._buttonsContainerHtmlNode=this._textAreaHiddenHtmlNode=this._textAreaHtmlNode=null;this._inProgress=!1;this._TEXTAREA_LINE_HEIGHT=16;this._TEXTAREA_PADDING_TOP=5;this._TEXTAREA_PADDING_BOTTOM=3;this._TEXTAREA_BORDER_CONST=2;this._TEXTAREA_MAX_NUMBER_OF_LINES=
12;this._ADDITIONAL_INFO_CLEAR=0;this._ADDITIONAL_INFO_ERROR=1;this._ADDITIONAL_INFO_PROGRESS=2;this._board=neutron.dashboard.Application.instance.getBoard();this._KEY_UP_EVENT_KEY="KEY_UP_EVENT_KEY";this._FOCUS_EVENT_KEY="FOCUS_EVENT_KEY";this._BLUR_EVENT_KEY="BLUR_EVENT_KEY";this._POST_CLICK_EVENT_KEY="POST_CLICK_EVENT_KEY";this._PASTE_EVENT_KEY="PASTE_EVENT_KEY";this._CUT_EVENT_KEY="CUT_EVENT_KEY";this._CANCEL_CLICK_EVENT_KEY="CANCEL_CLICK_EVENT_KEY"};
goog.inherits(neutron.dashboard.controls.Reply_v2,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.Reply_v2.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"replyInput"});this._textAreaHtmlNode=goog.dom.createDom("textarea",{placeholder:_LCLZ("Reply...")});this._textAreaHtmlNode.style.lineHeight=this._TEXTAREA_LINE_HEIGHT+"px";this._textAreaHtmlNode.style.paddingTop=this._TEXTAREA_PADDING_TOP+"px";this._textAreaHtmlNode.style.paddingBottom=this._TEXTAREA_PADDING_BOTTOM+"px";this._htmlNode.appendChild(this._textAreaHtmlNode);this._textAreaHiddenHtmlNode=
goog.dom.createDom("textarea",{"class":"hidden"});this._htmlNode.appendChild(this._textAreaHiddenHtmlNode);this._buttonsContainerHtmlNode=goog.dom.createDom("div",{"class":"buttonsContainer"});this._htmlNode.appendChild(this._buttonsContainerHtmlNode);this._additionalInfoContainer=goog.dom.createDom("div",{"class":"additionalInfoContainer"});this._buttonsContainerHtmlNode.appendChild(this._additionalInfoContainer);this._postButtonHtmlNode=goog.dom.createDom("div",{"class":"replyButton"},_LCLZ("Post"));
this._buttonsContainerHtmlNode.appendChild(this._postButtonHtmlNode);this._cancelButtonHtmlNode=goog.dom.createDom("div",{"class":"replyButton"},_LCLZ("Cancel"));this._buttonsContainerHtmlNode.appendChild(this._cancelButtonHtmlNode);a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.controls.Reply_v2.prototype._update=function(){this._updateTextAreaHeight();this._updateControls()};
neutron.dashboard.controls.Reply_v2.prototype._remove=function(){this._hideSpinner();this._postButtonHtmlNode=this._cancelButtonHtmlNode=this._additionalInfoContainer=this._buttonsContainerHtmlNode=this._textAreaHiddenHtmlNode=this._textAreaHtmlNode=null};
neutron.dashboard.controls.Reply_v2.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey(this._KEY_UP_EVENT_KEY,goog.events.listen(this._textAreaHtmlNode,goog.events.EventType.KEYUP,function(b){a._onKeyUp(b)}));this._addEventHandlerKey(this._FOCUS_EVENT_KEY,goog.events.listen(this._textAreaHtmlNode,goog.events.EventType.FOCUS,function(){a._onFocusIn()}));this._addEventHandlerKey(this._BLUR_EVENT_KEY,goog.events.listen(this._textAreaHtmlNode,goog.events.EventType.BLUR,function(){a._onFocusOut()}));
this._addEventHandlerKey(this._PASTE_EVENT_KEY,goog.events.listen(this._textAreaHtmlNode,goog.events.EventType.PASTE,function(b){a._onEditBoxCutPaste()}));this._addEventHandlerKey(this._CUT_EVENT_KEY,goog.events.listen(this._textAreaHtmlNode,goog.events.EventType.CUT,function(b){a._onEditBoxCutPaste()}));this._addEventHandlerKey(this._POST_CLICK_EVENT_KEY,goog.events.listen(this._postButtonHtmlNode,goog.events.EventType.CLICK,function(){a._onPost()}));this._addEventHandlerKey(this._CANCEL_CLICK_EVENT_KEY,
goog.events.listen(this._cancelButtonHtmlNode,goog.events.EventType.CLICK,function(){a._onCancel()}))};neutron.dashboard.controls.Reply_v2.prototype._reset=function(){!1!=goog.isDefAndNotNull(this._textAreaHtmlNode)&&(this._textAreaHtmlNode.value="",this._textAreaHtmlNode.blur(),this._textAreaHiddenHtmlNode.value="",this._updateAdditionalInfo(this._ADDITIONAL_INFO_CLEAR),this._updateActivity(!1),this._updateTextAreaHeight(),this._updateControls())};
neutron.dashboard.controls.Reply_v2.prototype._updateAdditionalInfo=function(a){!1!=goog.isDefAndNotNull(this._additionalInfoContainer)&&(a==this._ADDITIONAL_INFO_CLEAR?(this._hideSpinner(),goog.dom.classes.remove(this._additionalInfoContainer,"visible"),this._additionalInfoContainer.innerHTML=""):a==this._ADDITIONAL_INFO_ERROR?(this._hideSpinner(),goog.dom.classes.add(this._additionalInfoContainer,"visible"),this._additionalInfoContainer.innerHTML='<span class="errorMessage">'+_LCLZ("Comment cannot be posted")+
"</span>"):a==this._ADDITIONAL_INFO_PROGRESS&&(goog.dom.classes.add(this._additionalInfoContainer,"visible"),this._additionalInfoContainer.innerHTML='&nbsp;<div class="spinnerContainer"></div>',this._showSpinner()))};
neutron.dashboard.controls.Reply_v2.prototype._showSpinner=function(){if(!(!1==goog.isDefAndNotNull(this._additionalInfoContainer)||!0==goog.isDefAndNotNull(this._spinner))){var a=goog.dom.getElementByClass("spinnerContainer",this._additionalInfoContainer);!0==goog.isDefAndNotNull(a)&&(this._spinner=new neutron.dashboard.controls.Spinner(a,!0))}};
neutron.dashboard.controls.Reply_v2.prototype._hideSpinner=function(){!0==goog.isDefAndNotNull(this._spinner)&&(this._spinner.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._spinner=null)};
neutron.dashboard.controls.Reply_v2.prototype._setInProgress=function(a){!1==goog.isDefAndNotNull(this._htmlNode)||!1==goog.isDefAndNotNull(this._textAreaHtmlNode)||(this._inProgress=a,!0==a?(this._textAreaHtmlNode.disabled=!0,goog.dom.classes.add(this._htmlNode,"inProgress")):(this._textAreaHtmlNode.disabled=!1,goog.dom.classes.remove(this._htmlNode,"inProgress")))};neutron.dashboard.controls.Reply_v2.prototype._isInProgress=function(){return this._inProgress};
neutron.dashboard.controls.Reply_v2.prototype._hasFocus=function(){return!1==goog.isDefAndNotNull(this._textAreaHtmlNode)?!1:goog.dom.getActiveElement(goog.dom.getOwnerDocument(this._textAreaHtmlNode))==this._textAreaHtmlNode};
neutron.dashboard.controls.Reply_v2.prototype._updateTextAreaHeight=function(){if(!1!=goog.isDefAndNotNull(this._textAreaHtmlNode)){var a=0==this._textAreaHtmlNode.value.length,b=this._hasFocus(),c=this._TEXTAREA_PADDING_TOP+this._TEXTAREA_PADDING_BOTTOM+this._TEXTAREA_BORDER_CONST;!0==a&&!0==b?(this._textAreaHtmlNode.style.height=2*this._TEXTAREA_LINE_HEIGHT+c+"px",this._textAreaHtmlNode.style.overflow="hidden"):!0==a&&!1==b?(this._textAreaHtmlNode.style.height=this._TEXTAREA_LINE_HEIGHT+c+"px",
this._textAreaHtmlNode.style.overflow="hidden"):(this._textAreaHiddenHtmlNode.style.width=goog.style.getSize(this._textAreaHtmlNode).width+"px",this._textAreaHiddenHtmlNode.value=this._textAreaHtmlNode.value,a=Math.ceil(this._textAreaHiddenHtmlNode.scrollHeight/this._TEXTAREA_LINE_HEIGHT),a=Math.min(a+1,this._TEXTAREA_MAX_NUMBER_OF_LINES),this._textAreaHtmlNode.style.height=a*this._TEXTAREA_LINE_HEIGHT+c+"px",this._textAreaHtmlNode.style.overflow=a==this._TEXTAREA_MAX_NUMBER_OF_LINES?"auto":"hidden")}};
neutron.dashboard.controls.Reply_v2.prototype._updateActivity=function(a){if(!1!=goog.isDefAndNotNull(this._htmlNode))if(!0==a)goog.dom.classes.add(this._htmlNode,"active"),!0==goog.isDefAndNotNull(this._deactivateTimeout)&&(clearTimeout(this._deactivateTimeout),this._deactivateTimeout=null);else if(!1==goog.isDefAndNotNull(this._deactivateTimeout)){var b=this;this._deactivateTimeout=setTimeout(function(){goog.dom.classes.remove(b._htmlNode,"active")},150)}};
neutron.dashboard.controls.Reply_v2.prototype._updateControls=function(){!1==goog.isDefAndNotNull(this._htmlNode)||!1==goog.isDefAndNotNull(this._textAreaHtmlNode)||this._onEditBoxValueChanged()};neutron.dashboard.controls.Reply_v2.prototype._onEditBoxCutPaste=function(){var a=this;setTimeout(function(){a._onEditBoxValueChanged()},100)};
neutron.dashboard.controls.Reply_v2.prototype._onEditBoxValueChanged=function(){0<this._textAreaHtmlNode.value.trim().length?goog.dom.classes.remove(this._htmlNode,"disabled"):goog.dom.classes.add(this._htmlNode,"disabled")};neutron.dashboard.controls.Reply_v2.prototype._onKeyUp=function(a){this._board.onAugumentableTextAreaKeypress(a,this._textAreaHtmlNode,this._textAreaHiddenHtmlNode);this._updateTextAreaHeight();this._updateControls()};
neutron.dashboard.controls.Reply_v2.prototype._onFocusIn=function(){this._board.onAugumentableTextAreaFocused(this._textAreaHtmlNode,this._textAreaHiddenHtmlNode);this._updateActivity(!0);this._updateTextAreaHeight()};neutron.dashboard.controls.Reply_v2.prototype._onFocusOut=function(){this._updateActivity(0<this._textAreaHtmlNode.value.length);this._updateTextAreaHeight()};
neutron.dashboard.controls.Reply_v2.prototype._onPost=function(){if(!0!=this._isInProgress()&&!(!1==goog.isDefAndNotNull(this._textAreaHtmlNode)||!1==goog.isDefAndNotNull(this._additionalInfoContainer))){var a=this._board.augumentCommentText(this._textAreaHtmlNode.value),b={parentId:this._parentCommentId,comment:a};this._setInProgress(!0);b=window.neutronJavaScriptObject.executeQuery("Comments.replyText",JSON.stringify(b));goog.isDefAndNotNull(b)&&0<b.length&&(b=goog.json.parse(b),goog.isDefAndNotNull(b)&&
goog.isDefAndNotNull(b.requestToken)&&this.dispatchEvent(new neutron.dashboard.events.CommentPosted(a,b.requestToken,!0)));this._setInProgress(!1);this._reset()}};neutron.dashboard.controls.Reply_v2.prototype._onCancel=function(){this._reset()};neutron.dashboard.controls.Reply_v2.prototype.onReplyFinished=function(a){this._setInProgress(!1);!0==a?(this._reset(),!0==this._hasFocus()&&this._onFocusIn()):this._updateAdditionalInfo(this._ADDITIONAL_INFO_ERROR)};goog.async={};goog.async.Delay=function(a,b,c){goog.Disposable.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=goog.bind(this.doAction_,this)};goog.inherits(goog.async.Delay,goog.Disposable);goog.Delay=goog.async.Delay;goog.async.Delay.prototype.id_=0;goog.async.Delay.prototype.disposeInternal=function(){goog.async.Delay.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_};
goog.async.Delay.prototype.start=function(a){this.stop();this.id_=goog.Timer.callOnce(this.callback_,goog.isDef(a)?a:this.interval_)};goog.async.Delay.prototype.stop=function(){this.isActive()&&goog.Timer.clear(this.id_);this.id_=0};goog.async.Delay.prototype.fire=function(){this.stop();this.doAction_()};goog.async.Delay.prototype.fireIfActive=function(){this.isActive()&&this.fire()};goog.async.Delay.prototype.isActive=function(){return 0!=this.id_};
goog.async.Delay.prototype.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};goog.async.AnimationDelay=function(a,b,c){goog.async.AnimationDelay.base(this,"constructor");this.listener_=a;this.handler_=c;this.win_=b||window;this.callback_=goog.bind(this.doAction_,this)};goog.inherits(goog.async.AnimationDelay,goog.Disposable);goog.async.AnimationDelay.prototype.id_=null;goog.async.AnimationDelay.prototype.usingListeners_=!1;goog.async.AnimationDelay.TIMEOUT=20;goog.async.AnimationDelay.MOZ_BEFORE_PAINT_EVENT_="MozBeforePaint";
goog.async.AnimationDelay.prototype.start=function(){this.stop();this.usingListeners_=!1;var a=this.getRaf_(),b=this.getCancelRaf_();a&&!b&&this.win_.mozRequestAnimationFrame?(this.id_=goog.events.listen(this.win_,goog.async.AnimationDelay.MOZ_BEFORE_PAINT_EVENT_,this.callback_),this.win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.id_=a&&b?a.call(this.win_,this.callback_):this.win_.setTimeout(goog.functions.lock(this.callback_),goog.async.AnimationDelay.TIMEOUT)};
goog.async.AnimationDelay.prototype.stop=function(){if(this.isActive()){var a=this.getRaf_(),b=this.getCancelRaf_();a&&!b&&this.win_.mozRequestAnimationFrame?goog.events.unlistenByKey(this.id_):a&&b?b.call(this.win_,this.id_):this.win_.clearTimeout(this.id_)}this.id_=null};goog.async.AnimationDelay.prototype.fire=function(){this.stop();this.doAction_()};goog.async.AnimationDelay.prototype.fireIfActive=function(){this.isActive()&&this.fire()};
goog.async.AnimationDelay.prototype.isActive=function(){return null!=this.id_};goog.async.AnimationDelay.prototype.doAction_=function(){this.usingListeners_&&this.id_&&goog.events.unlistenByKey(this.id_);this.id_=null;this.listener_.call(this.handler_,goog.now())};goog.async.AnimationDelay.prototype.disposeInternal=function(){this.stop();goog.async.AnimationDelay.base(this,"disposeInternal")};
goog.async.AnimationDelay.prototype.getRaf_=function(){var a=this.win_;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};goog.async.AnimationDelay.prototype.getCancelRaf_=function(){var a=this.win_;return a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};goog.fx.anim={};goog.fx.anim.Animated=function(){};goog.fx.anim.TIMEOUT=goog.async.AnimationDelay.TIMEOUT;goog.fx.anim.activeAnimations_={};goog.fx.anim.animationWindow_=null;goog.fx.anim.animationDelay_=null;goog.fx.anim.registerAnimation=function(a){var b=goog.getUid(a);b in goog.fx.anim.activeAnimations_||(goog.fx.anim.activeAnimations_[b]=a);goog.fx.anim.requestAnimationFrame_()};
goog.fx.anim.unregisterAnimation=function(a){a=goog.getUid(a);delete goog.fx.anim.activeAnimations_[a];goog.object.isEmpty(goog.fx.anim.activeAnimations_)&&goog.fx.anim.cancelAnimationFrame_()};goog.fx.anim.tearDown=function(){goog.fx.anim.animationWindow_=null;goog.dispose(goog.fx.anim.animationDelay_);goog.fx.anim.animationDelay_=null;goog.fx.anim.activeAnimations_={}};
goog.fx.anim.setAnimationWindow=function(a){var b=goog.fx.anim.animationDelay_&&goog.fx.anim.animationDelay_.isActive();goog.dispose(goog.fx.anim.animationDelay_);goog.fx.anim.animationDelay_=null;goog.fx.anim.animationWindow_=a;b&&goog.fx.anim.requestAnimationFrame_()};
goog.fx.anim.requestAnimationFrame_=function(){goog.fx.anim.animationDelay_||(goog.fx.anim.animationDelay_=goog.fx.anim.animationWindow_?new goog.async.AnimationDelay(function(a){goog.fx.anim.cycleAnimations_(a)},goog.fx.anim.animationWindow_):new goog.async.Delay(function(){goog.fx.anim.cycleAnimations_(goog.now())},goog.fx.anim.TIMEOUT));var a=goog.fx.anim.animationDelay_;a.isActive()||a.start()};goog.fx.anim.cancelAnimationFrame_=function(){goog.fx.anim.animationDelay_&&goog.fx.anim.animationDelay_.stop()};
goog.fx.anim.cycleAnimations_=function(a){goog.object.forEach(goog.fx.anim.activeAnimations_,function(b){b.onAnimationFrame(a)});goog.object.isEmpty(goog.fx.anim.activeAnimations_)||goog.fx.anim.requestAnimationFrame_()};goog.fx.TransitionBase=function(){goog.fx.TransitionBase.base(this,"constructor");this.state_=goog.fx.TransitionBase.State.STOPPED;this.endTime=this.startTime=null};goog.inherits(goog.fx.TransitionBase,goog.events.EventTarget);goog.fx.TransitionBase.State={STOPPED:0,PAUSED:-1,PLAYING:1};goog.fx.TransitionBase.prototype.getStateInternal=function(){return this.state_};goog.fx.TransitionBase.prototype.setStatePlaying=function(){this.state_=goog.fx.TransitionBase.State.PLAYING};
goog.fx.TransitionBase.prototype.setStatePaused=function(){this.state_=goog.fx.TransitionBase.State.PAUSED};goog.fx.TransitionBase.prototype.setStateStopped=function(){this.state_=goog.fx.TransitionBase.State.STOPPED};goog.fx.TransitionBase.prototype.isPlaying=function(){return this.state_==goog.fx.TransitionBase.State.PLAYING};goog.fx.TransitionBase.prototype.isPaused=function(){return this.state_==goog.fx.TransitionBase.State.PAUSED};
goog.fx.TransitionBase.prototype.isStopped=function(){return this.state_==goog.fx.TransitionBase.State.STOPPED};goog.fx.TransitionBase.prototype.onBegin=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.BEGIN)};goog.fx.TransitionBase.prototype.onEnd=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.END)};goog.fx.TransitionBase.prototype.onFinish=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.FINISH)};
goog.fx.TransitionBase.prototype.onPause=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.PAUSE)};goog.fx.TransitionBase.prototype.onPlay=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.PLAY)};goog.fx.TransitionBase.prototype.onResume=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.RESUME)};goog.fx.TransitionBase.prototype.onStop=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.STOP)};
goog.fx.TransitionBase.prototype.dispatchAnimationEvent=function(a){this.dispatchEvent(a)};goog.fx.Animation=function(a,b,c,d){goog.fx.Animation.base(this,"constructor");if(!goog.isArray(a)||!goog.isArray(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.startPoint=a;this.endPoint=b;this.duration=c;this.accel_=d;this.coords=[];this.useRightPositioningForRtl_=!1};goog.inherits(goog.fx.Animation,goog.fx.TransitionBase);
goog.fx.Animation.prototype.enableRightPositioningForRtl=function(a){this.useRightPositioningForRtl_=a};goog.fx.Animation.prototype.isRightPositioningForRtlEnabled=function(){return this.useRightPositioningForRtl_};
goog.fx.Animation.EventType={PLAY:goog.fx.Transition.EventType.PLAY,BEGIN:goog.fx.Transition.EventType.BEGIN,RESUME:goog.fx.Transition.EventType.RESUME,END:goog.fx.Transition.EventType.END,STOP:goog.fx.Transition.EventType.STOP,FINISH:goog.fx.Transition.EventType.FINISH,PAUSE:goog.fx.Transition.EventType.PAUSE,ANIMATE:"animate",DESTROY:"destroy"};goog.fx.Animation.TIMEOUT=goog.fx.anim.TIMEOUT;goog.fx.Animation.State=goog.fx.TransitionBase.State;goog.fx.Animation.setAnimationWindow=function(a){goog.fx.anim.setAnimationWindow(a)};
goog.fx.Animation.prototype.fps_=0;goog.fx.Animation.prototype.progress=0;goog.fx.Animation.prototype.lastFrame=null;
goog.fx.Animation.prototype.play=function(a){if(a||this.isStopped())this.progress=0,this.coords=this.startPoint;else if(this.isPlaying())return!1;goog.fx.anim.unregisterAnimation(this);this.startTime=a=goog.now();this.isPaused()&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.lastFrame=this.startTime;if(!this.progress)this.onBegin();this.onPlay();if(this.isPaused())this.onResume();this.setStatePlaying();goog.fx.anim.registerAnimation(this);this.cycle(a);
return!0};goog.fx.Animation.prototype.stop=function(a){goog.fx.anim.unregisterAnimation(this);this.setStateStopped();a&&(this.progress=1);this.updateCoords_(this.progress);this.onStop();this.onEnd()};goog.fx.Animation.prototype.pause=function(){this.isPlaying()&&(goog.fx.anim.unregisterAnimation(this),this.setStatePaused(),this.onPause())};goog.fx.Animation.prototype.getProgress=function(){return this.progress};
goog.fx.Animation.prototype.setProgress=function(a){this.progress=a;this.isPlaying()&&(this.startTime=goog.now()-this.duration*this.progress,this.endTime=this.startTime+this.duration)};goog.fx.Animation.prototype.disposeInternal=function(){this.isStopped()||this.stop(!1);this.onDestroy();goog.fx.Animation.base(this,"disposeInternal")};goog.fx.Animation.prototype.destroy=function(){this.dispose()};goog.fx.Animation.prototype.onAnimationFrame=function(a){this.cycle(a)};
goog.fx.Animation.prototype.cycle=function(a){this.progress=(a-this.startTime)/(this.endTime-this.startTime);1<=this.progress&&(this.progress=1);this.fps_=1E3/(a-this.lastFrame);this.lastFrame=a;this.updateCoords_(this.progress);if(1==this.progress)this.setStateStopped(),goog.fx.anim.unregisterAnimation(this),this.onFinish(),this.onEnd();else if(this.isPlaying())this.onAnimate()};
goog.fx.Animation.prototype.updateCoords_=function(a){goog.isFunction(this.accel_)&&(a=this.accel_(a));this.coords=Array(this.startPoint.length);for(var b=0;b<this.startPoint.length;b++)this.coords[b]=(this.endPoint[b]-this.startPoint[b])*a+this.startPoint[b]};goog.fx.Animation.prototype.onAnimate=function(){this.dispatchAnimationEvent(goog.fx.Animation.EventType.ANIMATE)};goog.fx.Animation.prototype.onDestroy=function(){this.dispatchAnimationEvent(goog.fx.Animation.EventType.DESTROY)};
goog.fx.Animation.prototype.dispatchAnimationEvent=function(a){this.dispatchEvent(new goog.fx.AnimationEvent(a,this))};goog.fx.AnimationEvent=function(a,b){goog.fx.AnimationEvent.base(this,"constructor",a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.z=b.coords[2];this.duration=b.duration;this.progress=b.getProgress();this.fps=b.fps_;this.state=b.getStateInternal();this.anim=b};goog.inherits(goog.fx.AnimationEvent,goog.events.Event);
goog.fx.AnimationEvent.prototype.coordsAsInts=function(){return goog.array.map(this.coords,Math.round)};neutron.dashboard.utils.ScrollAnimator=function(a,b,c){var d=function(){!0==goog.isDefAndNotNull(c)&&c()};if(!1==goog.isDefAndNotNull(a))d();else{var e=a.scrollTop,f=b-e,g=Math.max(Math.min(Math.abs(f/2),1E3),250);if(e==b)d();else{var h=new goog.fx.Animation([0],[1],g),k=goog.events.listen(h,goog.fx.Animation.EventType.ANIMATE,function(b){a.scrollTop=e+parseInt(f*h.getProgress())}),l=goog.events.listen(h,goog.fx.Transition.EventType.FINISH,function(c){a.scrollTop=b;goog.events.unlistenByKey(k);k=
null;goog.events.unlistenByKey(l);l=null;d()});h.play()}}};goog.i18n.DateTimePatterns_af={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_am={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE\u1363 MMM d y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ar={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/\u200fM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM\u060c y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE\u060c d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE\u060c d MMM\u060c y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_bg={YEAR_FULL:"y '\u0433'.",YEAR_FULL_WITH_ERA:"y '\u0433'. G",YEAR_MONTH_ABBR:"MMM y '\u0433'.",YEAR_MONTH_FULL:"MMMM y '\u0433'.",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"d MMMM",MONTH_DAY_SHORT:"d.MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y '\u0433'.",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y '\u0433'.",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_bn={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_br={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"y MMM",YEAR_MONTH_FULL:"y MMMM",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"MM-dd",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"y MMM d",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y MMM d, EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ca={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"LLL y",YEAR_MONTH_FULL:"LLLL 'de' y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_chr={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_cs={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"LLLL y",YEAR_MONTH_FULL:"LLLL y",MONTH_DAY_ABBR:"d. M.",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d. M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. M. y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d. M.",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d. M. y",DAY_ABBR:"d."};
goog.i18n.DateTimePatterns_cy={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_da={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d. MMM y",DAY_ABBR:"d."};
goog.i18n.DateTimePatterns_de={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_de_AT={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_de_CH={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_el={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"LLL y",YEAR_MONTH_FULL:"LLLL y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_en={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_en_AU={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd/MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_en_GB={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd/MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_en_IE={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_en_IN={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd/MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_en_SG={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd/MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_en_US={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_en_ZA={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"dd MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"MM/dd",MONTH_DAY_MEDIUM:"dd MMMM",MONTH_DAY_YEAR_MEDIUM:"dd MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE dd MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, dd MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_es={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM 'de' y",YEAR_MONTH_FULL:"MMMM 'de' y",MONTH_DAY_ABBR:"d 'de' MMM",MONTH_DAY_FULL:"dd 'de' MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d 'de' MMMM",MONTH_DAY_YEAR_MEDIUM:"d 'de' MMM 'de' y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d 'de' MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d 'de' MMMM 'de' y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_es_419={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM 'de' y",YEAR_MONTH_FULL:"MMMM 'de' y",MONTH_DAY_ABBR:"d 'de' MMM",MONTH_DAY_FULL:"dd 'de' MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d 'de' MMMM",MONTH_DAY_YEAR_MEDIUM:"d 'de' MMM 'de' y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d 'de' MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d 'de' MMMM 'de' y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_es_ES={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM 'de' y",YEAR_MONTH_FULL:"MMMM 'de' y",MONTH_DAY_ABBR:"d 'de' MMM",MONTH_DAY_FULL:"dd 'de' MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d 'de' MMMM",MONTH_DAY_YEAR_MEDIUM:"d 'de' MMM 'de' y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d 'de' MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d 'de' MMMM 'de' y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_et={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_eu={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"y('e')'ko' MMM",YEAR_MONTH_FULL:"y('e')'ko' MMMM",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"y('e')'ko' MMM d",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y('e')'ko' MMM d, EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_fa={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d LLL",MONTH_DAY_FULL:"dd LLLL",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"d LLLL",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d LLL",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_fi={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"LLL y",YEAR_MONTH_FULL:"LLLL y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"ccc d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d. MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_fil={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_fr={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_fr_CA={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"M-d",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_gl={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d-M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_gsw={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"y MMM d",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_gu={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_haw={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"y MMM",YEAR_MONTH_FULL:"y MMMM",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"MM-dd",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"y MMM d",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y MMM d, EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_he={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d \u05d1MMM",MONTH_DAY_FULL:"dd \u05d1MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d \u05d1MMMM",MONTH_DAY_YEAR_MEDIUM:"d \u05d1MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d \u05d1MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d \u05d1MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_hi={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_hr={YEAR_FULL:"y.",YEAR_FULL_WITH_ERA:"y. G",YEAR_MONTH_ABBR:"LLL y.",YEAR_MONTH_FULL:"LLLL y.",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d. M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y.",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y.",DAY_ABBR:"d."};
goog.i18n.DateTimePatterns_hu={YEAR_FULL:"y.",YEAR_FULL_WITH_ERA:"G y.",YEAR_MONTH_ABBR:"y. MMM",YEAR_MONTH_FULL:"y. MMMM",MONTH_DAY_ABBR:"MMM d.",MONTH_DAY_FULL:"MMMM dd.",MONTH_DAY_SHORT:"M. d.",MONTH_DAY_MEDIUM:"MMMM d.",MONTH_DAY_YEAR_MEDIUM:"y. MMM d.",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d., EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y. MMM d., EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_id={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_in={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_is={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_it={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_iw={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d \u05d1MMM",MONTH_DAY_FULL:"dd \u05d1MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d \u05d1MMMM",MONTH_DAY_YEAR_MEDIUM:"d \u05d1MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d \u05d1MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d \u05d1MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ja={YEAR_FULL:"y\u5e74",YEAR_FULL_WITH_ERA:"Gy\u5e74",YEAR_MONTH_ABBR:"y\u5e74M\u6708",YEAR_MONTH_FULL:"y\u5e74M\u6708",MONTH_DAY_ABBR:"M\u6708d\u65e5",MONTH_DAY_FULL:"M\u6708dd\u65e5",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"M\u6708d\u65e5",MONTH_DAY_YEAR_MEDIUM:"y\u5e74M\u6708d\u65e5",WEEKDAY_MONTH_DAY_MEDIUM:"M\u6708d\u65e5(EEE)",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y\u5e74M\u6708d\u65e5(EEE)",DAY_ABBR:"d\u65e5"};
goog.i18n.DateTimePatterns_kn={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d, MMM, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"d MMM, y EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ko={YEAR_FULL:"y\ub144",YEAR_FULL_WITH_ERA:"G y\ub144",YEAR_MONTH_ABBR:"y\ub144 MMM",YEAR_MONTH_FULL:"y\ub144 MMMM",MONTH_DAY_ABBR:"MMM d\uc77c",MONTH_DAY_FULL:"MMMM dd\uc77c",MONTH_DAY_SHORT:"M. d.",MONTH_DAY_MEDIUM:"MMMM d\uc77c",MONTH_DAY_YEAR_MEDIUM:"y\ub144 MMM d\uc77c",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d\uc77c (EEE)",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y\ub144 MMM d\uc77c (EEE)",DAY_ABBR:"d\uc77c"};
goog.i18n.DateTimePatterns_ln={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_lt={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"y MMM",YEAR_MONTH_FULL:"y MMMM",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"MM-d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"y MMM d",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y MMM d, EEE",DAY_ABBR:"dd"};
goog.i18n.DateTimePatterns_lv={YEAR_FULL:"y. 'g'.",YEAR_FULL_WITH_ERA:"G y. 'g'.",YEAR_MONTH_ABBR:"y. 'g'. MMM",YEAR_MONTH_FULL:"y. 'g'. MMMM",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"dd.MM.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"y. 'g'. d. MMM",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, y. 'g'. d. MMM",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ml={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"y MMM",YEAR_MONTH_FULL:"y MMMM",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"y MMM d",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y MMM d, EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_mo={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd.MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_mr={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d, MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ms={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d-M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_mt={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"y MMM",YEAR_MONTH_FULL:"y MMMM",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"MM-dd",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"y MMM d",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y MMM d, EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_nb={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d. MMM y",DAY_ABBR:"d."};
goog.i18n.DateTimePatterns_nl={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d-M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_no={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d. MMM y",DAY_ABBR:"d."};
goog.i18n.DateTimePatterns_or={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"y MMM",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"d-M",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y MMM d, EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_pl={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"LLL y",YEAR_MONTH_FULL:"LLLL y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d.MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_pt={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM 'de' y",YEAR_MONTH_FULL:"MMMM 'de' y",MONTH_DAY_ABBR:"d 'de' MMM",MONTH_DAY_FULL:"dd 'de' MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d 'de' MMMM",MONTH_DAY_YEAR_MEDIUM:"d 'de' MMM 'de' y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d 'de' MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d 'de' MMM 'de' y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_pt_BR={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM 'de' y",YEAR_MONTH_FULL:"MMMM 'de' y",MONTH_DAY_ABBR:"d 'de' MMM",MONTH_DAY_FULL:"dd 'de' MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d 'de' MMMM",MONTH_DAY_YEAR_MEDIUM:"d 'de' MMM 'de' y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d 'de' MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d 'de' MMM 'de' y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_pt_PT={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MM/y",YEAR_MONTH_FULL:"MMMM 'de' y",MONTH_DAY_ABBR:"d/MM",MONTH_DAY_FULL:"dd 'de' MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d 'de' MMMM",MONTH_DAY_YEAR_MEDIUM:"d/MM/y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d/MM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d/MM/y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ro={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd.MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ru={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"LLL y",YEAR_MONTH_FULL:"LLLL y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd.MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y '\u0433'.",WEEKDAY_MONTH_DAY_MEDIUM:"ccc, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_sk={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"LLL y",YEAR_MONTH_FULL:"LLLL y",MONTH_DAY_ABBR:"d. MMM.",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d.M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d.M.y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM.",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y",DAY_ABBR:"d."};
goog.i18n.DateTimePatterns_sl={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d. M.",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_sq={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_sr={YEAR_FULL:"y.",YEAR_FULL_WITH_ERA:"y. G",YEAR_MONTH_ABBR:"MMM y.",YEAR_MONTH_FULL:"MMMM y.",MONTH_DAY_ABBR:"d. MMM",MONTH_DAY_FULL:"dd. MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d. MMMM",MONTH_DAY_YEAR_MEDIUM:"d. MMM y.",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d. MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d. MMM y.",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_sv={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd:'e' MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d:'e' MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_sw={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d-M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ta={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM, y",WEEKDAY_MONTH_DAY_MEDIUM:"MMM d, EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_te={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d, MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d, MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_th={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_tl={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_tr={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"G y",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd/MM",MONTH_DAY_MEDIUM:"dd MMMM",MONTH_DAY_YEAR_MEDIUM:"dd MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"d MMMM EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"d MMM y EEE",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_uk={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"LLL y",YEAR_MONTH_FULL:"LLLL y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd.MM",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, d MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_ur={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"d MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"d MMMM",MONTH_DAY_YEAR_MEDIUM:"d MMM\u060c y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE\u060c d MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE\u060c d MMM\u060c y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_vi={YEAR_FULL:"'N\u0103m' y",YEAR_FULL_WITH_ERA:"'N\u0103m' y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"dd MMM",MONTH_DAY_FULL:"dd MMMM",MONTH_DAY_SHORT:"dd-M",MONTH_DAY_MEDIUM:"dd MMMM",MONTH_DAY_YEAR_MEDIUM:"dd MMM, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, dd MMM",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, dd MMM y",DAY_ABBR:"d"};
goog.i18n.DateTimePatterns_zh={YEAR_FULL:"y\u5e74",YEAR_FULL_WITH_ERA:"Gy\u5e74",YEAR_MONTH_ABBR:"y\u5e74M\u6708",YEAR_MONTH_FULL:"y\u5e74M\u6708",MONTH_DAY_ABBR:"M\u6708d\u65e5",MONTH_DAY_FULL:"M\u6708dd\u65e5",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"M\u6708d\u65e5",MONTH_DAY_YEAR_MEDIUM:"y\u5e74M\u6708d\u65e5",WEEKDAY_MONTH_DAY_MEDIUM:"M\u6708d\u65e5EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y\u5e74M\u6708d\u65e5EEE",DAY_ABBR:"d\u65e5"};
goog.i18n.DateTimePatterns_zh_CN={YEAR_FULL:"y\u5e74",YEAR_FULL_WITH_ERA:"Gy\u5e74",YEAR_MONTH_ABBR:"y\u5e74M\u6708",YEAR_MONTH_FULL:"y\u5e74M\u6708",MONTH_DAY_ABBR:"M\u6708d\u65e5",MONTH_DAY_FULL:"M\u6708dd\u65e5",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"M\u6708d\u65e5",MONTH_DAY_YEAR_MEDIUM:"y\u5e74M\u6708d\u65e5",WEEKDAY_MONTH_DAY_MEDIUM:"M\u6708d\u65e5EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y\u5e74M\u6708d\u65e5EEE",DAY_ABBR:"d\u65e5"};
goog.i18n.DateTimePatterns_zh_HK={YEAR_FULL:"y\u5e74",YEAR_FULL_WITH_ERA:"G y \u5e74",YEAR_MONTH_ABBR:"y \u5e74 M \u6708",YEAR_MONTH_FULL:"y \u5e74 M \u6708",MONTH_DAY_ABBR:"M\u6708d\u65e5",MONTH_DAY_FULL:"M\u6708dd\u65e5",MONTH_DAY_SHORT:"d/M",MONTH_DAY_MEDIUM:"M\u6708d\u65e5",MONTH_DAY_YEAR_MEDIUM:"y \u5e74 M \u6708 d \u65e5",WEEKDAY_MONTH_DAY_MEDIUM:"M\u6708d\u65e5 (EEE)",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y \u5e74 M \u6708 d \u65e5 (EEE)",DAY_ABBR:"d\u65e5"};
goog.i18n.DateTimePatterns_zh_TW={YEAR_FULL:"y\u5e74",YEAR_FULL_WITH_ERA:"G y \u5e74",YEAR_MONTH_ABBR:"y\u5e74M\u6708",YEAR_MONTH_FULL:"y\u5e74M\u6708",MONTH_DAY_ABBR:"M\u6708d\u65e5",MONTH_DAY_FULL:"M\u6708dd\u65e5",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"M\u6708d\u65e5",MONTH_DAY_YEAR_MEDIUM:"y\u5e74M\u6708d\u65e5",WEEKDAY_MONTH_DAY_MEDIUM:"M\u6708d\u65e5EEE",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"y\u5e74M\u6708d\u65e5EEE",DAY_ABBR:"d\u65e5"};
goog.i18n.DateTimePatterns_zu={YEAR_FULL:"y",YEAR_FULL_WITH_ERA:"y G",YEAR_MONTH_ABBR:"MMM y",YEAR_MONTH_FULL:"MMMM y",MONTH_DAY_ABBR:"MMM d",MONTH_DAY_FULL:"MMMM dd",MONTH_DAY_SHORT:"M/d",MONTH_DAY_MEDIUM:"MMMM d",MONTH_DAY_YEAR_MEDIUM:"MMM d, y",WEEKDAY_MONTH_DAY_MEDIUM:"EEE, MMM d",WEEKDAY_MONTH_DAY_YEAR_MEDIUM:"EEE, MMM d, y",DAY_ABBR:"d"};goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en;"af"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_af);
"am"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_am);"ar"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ar);"bg"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_bg);"bn"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_bn);"br"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_br);"ca"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ca);
"chr"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_chr);"cs"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_cs);"cy"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_cy);"da"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_da);"de"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_de);if("de_AT"==goog.LOCALE||"de-AT"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_de_AT;
if("de_CH"==goog.LOCALE||"de-CH"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_de_CH;"el"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_el);"en"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en);if("en_AU"==goog.LOCALE||"en-AU"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en_AU;if("en_GB"==goog.LOCALE||"en-GB"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en_GB;
if("en_IE"==goog.LOCALE||"en-IE"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en_IE;if("en_IN"==goog.LOCALE||"en-IN"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en_IN;if("en_SG"==goog.LOCALE||"en-SG"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en_SG;if("en_US"==goog.LOCALE||"en-US"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en_US;if("en_ZA"==goog.LOCALE||"en-ZA"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_en_ZA;
"es"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_es);if("es_419"==goog.LOCALE||"es-419"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_es_419;if("es_ES"==goog.LOCALE||"es-ES"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_es_ES;"et"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_et);"eu"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_eu);"fa"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_fa);
"fi"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_fi);"fil"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_fil);"fr"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_fr);if("fr_CA"==goog.LOCALE||"fr-CA"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_fr_CA;"gl"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_gl);"gsw"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_gsw);
"gu"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_gu);"haw"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_haw);"he"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_he);"hi"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_hi);"hr"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_hr);"hu"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_hu);
"id"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_id);"in"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_in);"is"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_is);"it"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_it);"iw"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_iw);"ja"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ja);
"kn"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_kn);"ko"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ko);"ln"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ln);"lt"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_lt);"lv"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_lv);"ml"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ml);
"mo"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_mo);"mr"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_mr);"ms"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ms);"mt"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_mt);"nb"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_nb);"nl"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_nl);
"no"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_no);"or"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_or);"pl"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_pl);"pt"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_pt);if("pt_BR"==goog.LOCALE||"pt-BR"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_pt_BR;if("pt_PT"==goog.LOCALE||"pt-PT"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_pt_PT;
"ro"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ro);"ru"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ru);"sk"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_sk);"sl"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_sl);"sq"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_sq);"sr"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_sr);
"sv"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_sv);"sw"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_sw);"ta"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ta);"te"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_te);"th"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_th);"tl"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_tl);
"tr"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_tr);"uk"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_uk);"ur"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_ur);"vi"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_vi);"zh"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_zh);if("zh_CN"==goog.LOCALE||"zh-CN"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_zh_CN;
if("zh_HK"==goog.LOCALE||"zh-HK"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_zh_HK;if("zh_TW"==goog.LOCALE||"zh-TW"==goog.LOCALE)goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_zh_TW;"zu"==goog.LOCALE&&(goog.i18n.DateTimePatterns=goog.i18n.DateTimePatterns_zu);goog.string.format=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,h,k,l,m,n){if("%"==l)return"%";var q=c.shift();if("undefined"==typeof q)throw Error("[goog.string.format] Not enough arguments");arguments[0]=q;return goog.string.format.demuxes_[l].apply(null,arguments)})};goog.string.format.demuxes_={};
goog.string.format.demuxes_.s=function(a,b,c,d,e,f,g,h){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+goog.string.repeat(" ",c-a.length):goog.string.repeat(" ",c-a.length)+a};
goog.string.format.demuxes_.f=function(a,b,c,d,e,f,g,h){d=a.toString();isNaN(e)||""==e||(d=a.toFixed(e));f=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=f+d);if(isNaN(c)||d.length>=c)return d;d=isNaN(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-f.length;0<=b.indexOf("-",0)?d=f+d+goog.string.repeat(" ",a):(b=0<=b.indexOf("0",0)?"0":" ",d=f+goog.string.repeat(b,a)+d);return d};
goog.string.format.demuxes_.d=function(a,b,c,d,e,f,g,h){return goog.string.format.demuxes_.f(parseInt(a,10),b,c,d,0,f,g,h)};goog.string.format.demuxes_.i=goog.string.format.demuxes_.d;goog.string.format.demuxes_.u=goog.string.format.demuxes_.d;goog.i18n.DateTimeSymbols_en_ISO={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, y MMMM dd",
"y MMMM d","y MMM d","yyyy-MM-dd"],TIMEFORMATS:["HH:mm:ss v","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],AVAILABLEFORMATS:{Md:"M/d",MMMMd:"MMMM d",MMMd:"MMM d"},FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_af={ERAS:["v.C.","n.C."],ERANAMES:["voor Christus","na Christus"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"Januarie Februarie Maart April Mei Junie Julie Augustus September Oktober November Desember".split(" "),STANDALONEMONTHS:"Januarie Februarie Maart April Mei Junie Julie Augustus September Oktober November Desember".split(" "),SHORTMONTHS:"Jan Feb Mar Apr Mei Jun Jul Aug Sep Okt Nov Des".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr Mei Jun Jul Aug Sep Okt Nov Des".split(" "),
WEEKDAYS:"Sondag Maandag Dinsdag Woensdag Donderdag Vrydag Saterdag".split(" "),STANDALONEWEEKDAYS:"Sondag Maandag Dinsdag Woensdag Donderdag Vrydag Saterdag".split(" "),SHORTWEEKDAYS:"So Ma Di Wo Do Vr Sa".split(" "),STANDALONESHORTWEEKDAYS:"So Ma Di Wo Do Vr Sa".split(" "),NARROWWEEKDAYS:"SMDWDVS".split(""),STANDALONENARROWWEEKDAYS:"SMDWDVS".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"],AMPMS:["vm.","nm."],DATEFORMATS:["EEEE dd MMMM y",
"dd MMMM y","dd MMM y","y-MM-dd"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_am={ERAS:["\u12d3/\u12d3","\u12d3/\u121d"],ERANAMES:["\u12d3\u1218\u1270 \u12d3\u1208\u121d","\u12d3\u1218\u1270 \u121d\u1215\u1228\u1275"],NARROWMONTHS:"\u1303\u134c\u121b\u12a4\u121c\u1301\u1301\u12a6\u1234\u12a6\u1296\u12f2".split(""),STANDALONENARROWMONTHS:"\u1303\u134c\u121b\u12a4\u121c\u1301\u1301\u12a6\u1234\u12a6\u1296\u12f2".split(""),MONTHS:"\u1303\u1295\u12e9\u12c8\u122a \u134c\u1265\u1229\u12c8\u122a \u121b\u122d\u127d \u12a4\u1355\u122a\u120d \u121c\u12ed \u1301\u1295 \u1301\u120b\u12ed \u12a6\u1308\u1235\u1275 \u1234\u1355\u1274\u121d\u1260\u122d \u12a6\u12ad\u1270\u12cd\u1260\u122d \u1296\u126c\u121d\u1260\u122d \u12f2\u1234\u121d\u1260\u122d".split(" "),
STANDALONEMONTHS:"\u1303\u1295\u12e9\u12c8\u122a \u134c\u1265\u1229\u12c8\u122a \u121b\u122d\u127d \u12a4\u1355\u122a\u120d \u121c\u12ed \u1301\u1295 \u1301\u120b\u12ed \u12a6\u1308\u1235\u1275 \u1234\u1355\u1274\u121d\u1260\u122d \u12a6\u12ad\u1276\u1260\u122d \u1296\u126c\u121d\u1260\u122d \u12f2\u1234\u121d\u1260\u122d".split(" "),SHORTMONTHS:"\u1303\u1295\u12e9 \u134c\u1265\u1229 \u121b\u122d\u127d \u12a4\u1355\u122a \u121c\u12ed \u1301\u1295 \u1301\u120b\u12ed \u12a6\u1308\u1235 \u1234\u1355\u1274 \u12a6\u12ad\u1270 \u1296\u126c\u121d \u12f2\u1234\u121d".split(" "),
STANDALONESHORTMONTHS:"\u1303\u1295\u12e9 \u134c\u1265\u1229 \u121b\u122d\u127d \u12a4\u1355\u122a \u121c\u12ed \u1301\u1295 \u1301\u120b\u12ed \u12a6\u1308\u1235 \u1234\u1355\u1274 \u12a6\u12ad\u1276 \u1296\u126c\u121d \u12f2\u1234\u121d".split(" "),WEEKDAYS:"\u12a5\u1211\u12f5 \u1230\u129e \u121b\u12ad\u1230\u129e \u1228\u1261\u12d5 \u1210\u1219\u1235 \u12d3\u122d\u1265 \u1245\u12f3\u121c".split(" "),STANDALONEWEEKDAYS:"\u12a5\u1211\u12f5 \u1230\u129e \u121b\u12ad\u1230\u129e \u1228\u1261\u12d5 \u1210\u1219\u1235 \u12d3\u122d\u1265 \u1245\u12f3\u121c".split(" "),
SHORTWEEKDAYS:"\u12a5\u1211\u12f5 \u1230\u129e \u121b\u12ad\u1230 \u1228\u1261\u12d5 \u1210\u1219\u1235 \u12d3\u122d\u1265 \u1245\u12f3\u121c".split(" "),STANDALONESHORTWEEKDAYS:"\u12a5\u1211\u12f5 \u1230\u129e \u121b\u12ad\u1230 \u1228\u1261\u12d5 \u1210\u1219\u1235 \u12d3\u122d\u1265 \u1245\u12f3\u121c".split(" "),NARROWWEEKDAYS:"\u12a5\u1230\u121b\u1228\u1210\u12d3\u1245".split(""),STANDALONENARROWWEEKDAYS:"\u12a5\u1230\u121b\u1228\u1210\u12d3\u1245".split(""),SHORTQUARTERS:["\u1229\u12651","\u1229\u12652",
"\u1229\u12653","\u1229\u12654"],QUARTERS:["1\u129b\u12cd \u1229\u1265","\u1201\u1208\u1270\u129b\u12cd \u1229\u1265","3\u129b\u12cd \u1229\u1265","4\u129b\u12cd \u1229\u1265"],AMPMS:["\u1325\u12cb\u1275","\u12a8\u1230\u12d3\u1275"],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","d MMM y","dd/MM/y"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_ar={ZERODIGIT:1632,ERAS:["\u0642.\u0645","\u0645"],ERANAMES:["\u0642\u0628\u0644 \u0627\u0644\u0645\u064a\u0644\u0627\u062f","\u0645\u064a\u0644\u0627\u062f\u064a"],NARROWMONTHS:"\u064a\u0641\u0645\u0623\u0648\u0646\u0644\u063a\u0633\u0643\u0628\u062f".split(""),STANDALONENARROWMONTHS:"\u064a\u0641\u0645\u0623\u0648\u0646\u0644\u063a\u0633\u0643\u0628\u062f".split(""),MONTHS:"\u064a\u0646\u0627\u064a\u0631 \u0641\u0628\u0631\u0627\u064a\u0631 \u0645\u0627\u0631\u0633 \u0623\u0628\u0631\u064a\u0644 \u0645\u0627\u064a\u0648 \u064a\u0648\u0646\u064a\u0648 \u064a\u0648\u0644\u064a\u0648 \u0623\u063a\u0633\u0637\u0633 \u0633\u0628\u062a\u0645\u0628\u0631 \u0623\u0643\u062a\u0648\u0628\u0631 \u0646\u0648\u0641\u0645\u0628\u0631 \u062f\u064a\u0633\u0645\u0628\u0631".split(" "),
STANDALONEMONTHS:"\u064a\u0646\u0627\u064a\u0631 \u0641\u0628\u0631\u0627\u064a\u0631 \u0645\u0627\u0631\u0633 \u0623\u0628\u0631\u064a\u0644 \u0645\u0627\u064a\u0648 \u064a\u0648\u0646\u064a\u0648 \u064a\u0648\u0644\u064a\u0648 \u0623\u063a\u0633\u0637\u0633 \u0633\u0628\u062a\u0645\u0628\u0631 \u0623\u0643\u062a\u0648\u0628\u0631 \u0646\u0648\u0641\u0645\u0628\u0631 \u062f\u064a\u0633\u0645\u0628\u0631".split(" "),SHORTMONTHS:"\u064a\u0646\u0627\u064a\u0631 \u0641\u0628\u0631\u0627\u064a\u0631 \u0645\u0627\u0631\u0633 \u0623\u0628\u0631\u064a\u0644 \u0645\u0627\u064a\u0648 \u064a\u0648\u0646\u064a\u0648 \u064a\u0648\u0644\u064a\u0648 \u0623\u063a\u0633\u0637\u0633 \u0633\u0628\u062a\u0645\u0628\u0631 \u0623\u0643\u062a\u0648\u0628\u0631 \u0646\u0648\u0641\u0645\u0628\u0631 \u062f\u064a\u0633\u0645\u0628\u0631".split(" "),
STANDALONESHORTMONTHS:"\u064a\u0646\u0627\u064a\u0631 \u0641\u0628\u0631\u0627\u064a\u0631 \u0645\u0627\u0631\u0633 \u0623\u0628\u0631\u064a\u0644 \u0645\u0627\u064a\u0648 \u064a\u0648\u0646\u064a\u0648 \u064a\u0648\u0644\u064a\u0648 \u0623\u063a\u0633\u0637\u0633 \u0633\u0628\u062a\u0645\u0628\u0631 \u0623\u0643\u062a\u0648\u0628\u0631 \u0646\u0648\u0641\u0645\u0628\u0631 \u062f\u064a\u0633\u0645\u0628\u0631".split(" "),WEEKDAYS:"\u0627\u0644\u0623\u062d\u062f \u0627\u0644\u0627\u062b\u0646\u064a\u0646 \u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621 \u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621 \u0627\u0644\u062e\u0645\u064a\u0633 \u0627\u0644\u062c\u0645\u0639\u0629 \u0627\u0644\u0633\u0628\u062a".split(" "),
STANDALONEWEEKDAYS:"\u0627\u0644\u0623\u062d\u062f \u0627\u0644\u0627\u062b\u0646\u064a\u0646 \u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621 \u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621 \u0627\u0644\u062e\u0645\u064a\u0633 \u0627\u0644\u062c\u0645\u0639\u0629 \u0627\u0644\u0633\u0628\u062a".split(" "),SHORTWEEKDAYS:"\u0627\u0644\u0623\u062d\u062f \u0627\u0644\u0627\u062b\u0646\u064a\u0646 \u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621 \u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621 \u0627\u0644\u062e\u0645\u064a\u0633 \u0627\u0644\u062c\u0645\u0639\u0629 \u0627\u0644\u0633\u0628\u062a".split(" "),
STANDALONESHORTWEEKDAYS:"\u0627\u0644\u0623\u062d\u062f \u0627\u0644\u0627\u062b\u0646\u064a\u0646 \u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621 \u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621 \u0627\u0644\u062e\u0645\u064a\u0633 \u0627\u0644\u062c\u0645\u0639\u0629 \u0627\u0644\u0633\u0628\u062a".split(" "),NARROWWEEKDAYS:"\u062d\u0646\u062b\u0631\u062e\u062c\u0633".split(""),STANDALONENARROWWEEKDAYS:"\u062d\u0646\u062b\u0631\u062e\u062c\u0633".split(""),SHORTQUARTERS:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644",
"\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"],QUARTERS:["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0646\u064a","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062b\u0627\u0644\u062b","\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"],AMPMS:["\u0635",
"\u0645"],DATEFORMATS:["EEEE\u060c d MMMM\u060c y","d MMMM\u060c y","dd\u200f/MM\u200f/y","d\u200f/M\u200f/y"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:5,WEEKENDRANGE:[4,5],FIRSTWEEKCUTOFFDAY:4};
goog.i18n.DateTimeSymbols_bg={ERAS:["\u043f\u0440.\u0425\u0440.","\u0441\u043b.\u0425\u0440."],ERANAMES:["\u043f\u0440.\u0425\u0440.","\u0441\u043b.\u0425\u0440."],NARROWMONTHS:"\u044f\u0444\u043c\u0430\u043c\u044e\u044e\u0430\u0441\u043e\u043d\u0434".split(""),STANDALONENARROWMONTHS:"\u044f\u0444\u043c\u0430\u043c\u044e\u044e\u0430\u0441\u043e\u043d\u0434".split(""),MONTHS:"\u044f\u043d\u0443\u0430\u0440\u0438 \u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438 \u043c\u0430\u0440\u0442 \u0430\u043f\u0440\u0438\u043b \u043c\u0430\u0439 \u044e\u043d\u0438 \u044e\u043b\u0438 \u0430\u0432\u0433\u0443\u0441\u0442 \u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438 \u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438 \u043d\u043e\u0435\u043c\u0432\u0440\u0438 \u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split(" "),
STANDALONEMONTHS:"\u044f\u043d\u0443\u0430\u0440\u0438 \u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438 \u043c\u0430\u0440\u0442 \u0430\u043f\u0440\u0438\u043b \u043c\u0430\u0439 \u044e\u043d\u0438 \u044e\u043b\u0438 \u0430\u0432\u0433\u0443\u0441\u0442 \u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438 \u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438 \u043d\u043e\u0435\u043c\u0432\u0440\u0438 \u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split(" "),SHORTMONTHS:"\u044f\u043d. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442 \u0430\u043f\u0440. \u043c\u0430\u0439 \u044e\u043d\u0438 \u044e\u043b\u0438 \u0430\u0432\u0433. \u0441\u0435\u043f\u0442. \u043e\u043a\u0442. \u043d\u043e\u0435\u043c. \u0434\u0435\u043a.".split(" "),
STANDALONESHORTMONTHS:"\u044f\u043d. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442 \u0430\u043f\u0440. \u043c\u0430\u0439 \u044e\u043d\u0438 \u044e\u043b\u0438 \u0430\u0432\u0433. \u0441\u0435\u043f\u0442. \u043e\u043a\u0442. \u043d\u043e\u0435\u043c. \u0434\u0435\u043a.".split(" "),WEEKDAYS:"\u043d\u0435\u0434\u0435\u043b\u044f \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a \u0432\u0442\u043e\u0440\u043d\u0438\u043a \u0441\u0440\u044f\u0434\u0430 \u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a \u043f\u0435\u0442\u044a\u043a \u0441\u044a\u0431\u043e\u0442\u0430".split(" "),
STANDALONEWEEKDAYS:"\u043d\u0435\u0434\u0435\u043b\u044f \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a \u0432\u0442\u043e\u0440\u043d\u0438\u043a \u0441\u0440\u044f\u0434\u0430 \u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a \u043f\u0435\u0442\u044a\u043a \u0441\u044a\u0431\u043e\u0442\u0430".split(" "),SHORTWEEKDAYS:"\u043d\u0434 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),STANDALONESHORTWEEKDAYS:"\u043d\u0434 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),
NARROWWEEKDAYS:"\u043d\u043f\u0432\u0441\u0447\u043f\u0441".split(""),STANDALONENARROWWEEKDAYS:"\u043d\u043f\u0432\u0441\u0447\u043f\u0441".split(""),SHORTQUARTERS:["1 \u0442\u0440\u0438\u043c.","2 \u0442\u0440\u0438\u043c.","3 \u0442\u0440\u0438\u043c.","4 \u0442\u0440\u0438\u043c."],QUARTERS:["1-\u0432\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","2-\u0440\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435","3-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435",
"4-\u0442\u043e \u0442\u0440\u0438\u043c\u0435\u0441\u0435\u0447\u0438\u0435"],AMPMS:["\u043f\u0440.\u043e\u0431.","\u0441\u043b.\u043e\u0431."],DATEFORMATS:["EEEE, d MMMM y '\u0433'.","d MMMM y '\u0433'.","d.MM.y '\u0433'.","d.MM.yy"],TIMEFORMATS:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],DATETIMEFORMATS:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_bn={ZERODIGIT:2534,ERAS:["\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09aa\u09c2\u09b0\u09cd\u09ac","\u0996\u09c3\u09b7\u09cd\u099f\u09be\u09ac\u09cd\u09a6"],ERANAMES:["\u0996\u09cd\u09b0\u09bf\u09b8\u09cd\u099f\u09aa\u09c2\u09b0\u09cd\u09ac","\u0996\u09c3\u09b7\u09cd\u099f\u09be\u09ac\u09cd\u09a6"],NARROWMONTHS:"\u099c\u09be \u09ab\u09c7 \u09ae\u09be \u098f \u09ae\u09c7 \u099c\u09c1\u09a8 \u099c\u09c1 \u0986 \u09b8\u09c7 \u0985 \u09a8 \u09a1\u09bf".split(" "),STANDALONENARROWMONTHS:"\u099c\u09be \u09ab\u09c7 \u09ae\u09be \u098f \u09ae\u09c7 \u099c\u09c1\u09a8 \u099c\u09c1 \u0986 \u09b8\u09c7 \u0985 \u09a8 \u09a1\u09bf".split(" "),
MONTHS:"\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0 \u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0 \u09ae\u09be\u09b0\u09cd\u099a \u098f\u09aa\u09cd\u09b0\u09bf\u09b2 \u09ae\u09c7 \u099c\u09c1\u09a8 \u099c\u09c1\u09b2\u09be\u0987 \u0986\u0997\u09b8\u09cd\u099f \u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0 \u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0 \u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0 \u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split(" "),STANDALONEMONTHS:"\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0 \u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0 \u09ae\u09be\u09b0\u09cd\u099a \u098f\u09aa\u09cd\u09b0\u09bf\u09b2 \u09ae\u09c7 \u099c\u09c1\u09a8 \u099c\u09c1\u09b2\u09be\u0987 \u0986\u0997\u09b8\u09cd\u099f \u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0 \u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0 \u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0 \u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split(" "),
SHORTMONTHS:"\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0 \u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0 \u09ae\u09be\u09b0\u09cd\u099a \u098f\u09aa\u09cd\u09b0\u09bf\u09b2 \u09ae\u09c7 \u099c\u09c1\u09a8 \u099c\u09c1\u09b2\u09be\u0987 \u0986\u0997\u09b8\u09cd\u099f \u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0 \u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0 \u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0 \u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split(" "),
STANDALONESHORTMONTHS:"\u099c\u09be\u09a8\u09c1\u09af\u09bc\u09be\u09b0\u09c0 \u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09af\u09bc\u09be\u09b0\u09c0 \u09ae\u09be\u09b0\u09cd\u099a \u098f\u09aa\u09cd\u09b0\u09bf\u09b2 \u09ae\u09c7 \u099c\u09c1\u09a8 \u099c\u09c1\u09b2\u09be\u0987 \u0986\u0997\u09b8\u09cd\u099f \u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0 \u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0 \u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0 \u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split(" "),
WEEKDAYS:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0 \u09b8\u09cb\u09ae\u09ac\u09be\u09b0 \u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0 \u09ac\u09c1\u09a7\u09ac\u09be\u09b0 \u09ac\u09c3\u09b9\u09b7\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0 \u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0 \u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split(" "),STANDALONEWEEKDAYS:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0 \u09b8\u09cb\u09ae\u09ac\u09be\u09b0 \u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0 \u09ac\u09c1\u09a7\u09ac\u09be\u09b0 \u09ac\u09c3\u09b9\u09b7\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0 \u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0 \u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split(" "),
SHORTWEEKDAYS:"\u09b0\u09ac\u09bf \u09b8\u09cb\u09ae \u09ae\u0999\u09cd\u0997\u09b2 \u09ac\u09c1\u09a7 \u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf \u09b6\u09c1\u0995\u09cd\u09b0 \u09b6\u09a8\u09bf".split(" "),STANDALONESHORTWEEKDAYS:"\u09b0\u09ac\u09bf \u09b8\u09cb\u09ae \u09ae\u0999\u09cd\u0997\u09b2 \u09ac\u09c1\u09a7 \u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf \u09b6\u09c1\u0995\u09cd\u09b0 \u09b6\u09a8\u09bf".split(" "),NARROWWEEKDAYS:"\u09b0 \u09b8\u09cb \u09ae \u09ac\u09c1 \u09ac\u09c3 \u09b6\u09c1 \u09b6".split(" "),
STANDALONENARROWWEEKDAYS:"\u09b0 \u09b8\u09cb \u09ae \u09ac\u09c1 \u09ac\u09c3 \u09b6\u09c1 \u09b6".split(" "),SHORTQUARTERS:["\u099a\u09a4\u09c1\u09b0\u09cd\u09a5\u09be\u0982\u09b6 \u09e7","\u099a\u09a4\u09c1\u09b0\u09cd\u09a5\u09be\u0982\u09b6 \u09e8","\u099a\u09a4\u09c1\u09b0\u09cd\u09a5\u09be\u0982\u09b6 \u09e9","\u099a\u09a4\u09c1\u09b0\u09cd\u09a5\u09be\u0982\u09b6 \u09ea"],QUARTERS:["\u09aa\u09cd\u09b0\u09a5\u09ae \u099a\u09a4\u09c1\u09b0\u09cd\u09a5\u09be\u0982\u09b6","\u09a6\u09cd\u09ac\u09bf\u09a4\u09c0\u09af\u09bc \u099a\u09a4\u09c1\u09b0\u09cd\u09a5\u09be\u0982\u09b6",
"\u09a4\u09c3\u09a4\u09c0\u09af\u09bc \u099a\u09a4\u09c1\u09b0\u09cd\u09a5\u09be\u0982\u09b6","\u099a\u09a4\u09c1\u09b0\u09cd\u09a5 \u099a\u09a4\u09c1\u09b0\u09cd\u09a5\u09be\u0982\u09b6"],AMPMS:["am","pm"],DATEFORMATS:["EEEE, d MMMM, y","d MMMM, y","d MMM, y","d/M/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:4,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_br={ERAS:["BCE","CE"],ERANAMES:["BCE","CE"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"Genver C\u02bchwevrer Meurzh Ebrel Mae Mezheven Gouere Eost Gwengolo Here Du Kerzu".split(" "),STANDALONEMONTHS:"Genver C\u02bchwevrer Meurzh Ebrel Mae Mezheven Gouere Eost Gwengolo Here Du Kerzu".split(" "),SHORTMONTHS:"Gen C\u02bchwe Meur Ebr Mae Mezh Goue Eost Gwen Here Du Ker".split(" "),STANDALONESHORTMONTHS:"Gen C\u02bchwe Meur Ebr Mae Mezh Goue Eost Gwen Here Du Ker".split(" "),
WEEKDAYS:"Sul Lun Meurzh Merc\u02bcher Yaou Gwener Sadorn".split(" "),STANDALONEWEEKDAYS:"Sul Lun Meurzh Merc\u02bcher Yaou Gwener Sadorn".split(" "),SHORTWEEKDAYS:"sul lun meu. mer. yaou gwe. sad.".split(" "),STANDALONESHORTWEEKDAYS:"sul lun meu. mer. yaou gwe. sad.".split(" "),NARROWWEEKDAYS:"su lu mz mc ya gw sa".split(" "),STANDALONENARROWWEEKDAYS:"su lu mz mc ya gw sa".split(" "),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["Q1","Q2","Q3","Q4"],AMPMS:["AM","PM"],DATEFORMATS:["y MMMM d, EEEE",
"y MMMM d","y MMM d","y-MM-dd"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_ca={ERAS:["aC","dC"],ERANAMES:["abans de Crist","despr\u00e9s de Crist"],NARROWMONTHS:"GN FB M\u00c7 AB MG JN JL AG ST OC NV DS".split(" "),STANDALONENARROWMONTHS:"GN FB M\u00c7 AB MG JN JL AG ST OC NV DS".split(" "),MONTHS:"gener febrer mar\u00e7 abril maig juny juliol agost setembre octubre novembre desembre".split(" "),STANDALONEMONTHS:"gener febrer mar\u00e7 abril maig juny juliol agost setembre octubre novembre desembre".split(" "),SHORTMONTHS:"gen. feb. mar\u00e7 abr. maig juny jul. ag. set. oct. nov. des.".split(" "),
STANDALONESHORTMONTHS:"gen. feb. mar\u00e7 abr. maig juny jul. ag. set. oct. nov. des.".split(" "),WEEKDAYS:"diumenge dilluns dimarts dimecres dijous divendres dissabte".split(" "),STANDALONEWEEKDAYS:"diumenge dilluns dimarts dimecres dijous divendres dissabte".split(" "),SHORTWEEKDAYS:"dg. dl. dt. dc. dj. dv. ds.".split(" "),STANDALONESHORTWEEKDAYS:"dg. dl. dt. dc. dj. dv. ds.".split(" "),NARROWWEEKDAYS:"dg dl dt dc dj dv ds".split(" "),STANDALONENARROWWEEKDAYS:"dg dl dt dc dj dv ds".split(" "),
SHORTQUARTERS:["1T","2T","3T","4T"],QUARTERS:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"],AMPMS:["a. m.","p. m."],DATEFORMATS:["EEEE, d MMMM 'de' y","d MMMM 'de' y","dd/MM/y","d/M/yy"],TIMEFORMATS:["H.mm.ss zzzz","H.mm.ss z","H.mm.ss","H.mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_chr={ERAS:["\u13a4\u13d3\u13b7\u13b8","\u13a4\u13b6\u13d0\u13c5"],ERANAMES:["\u13cf \u13e5\u13cc \u13be\u13d5\u13b2\u13cd\u13ac\u13be","\u13a0\u13a9\u13c3\u13ae\u13b5\u13d3\u13cd\u13d7\u13f1 \u13a0\u13d5\u13d8\u13f1\u13cd\u13ac \u13f1\u13b0\u13e9 \u13e7\u13d3\u13c2\u13b8\u13a2\u13cd\u13d7"],NARROWMONTHS:"\u13a4\u13a7\u13a0\u13a7\u13a0\u13d5\u13ab\u13a6\u13da\u13da\u13c5\u13a4".split(""),STANDALONENARROWMONTHS:"\u13a4\u13a7\u13a0\u13a7\u13a0\u13d5\u13ab\u13a6\u13da\u13da\u13c5\u13a4".split(""),
MONTHS:"\u13a4\u13c3\u13b8\u13d4\u13c5 \u13a7\u13a6\u13b5 \u13a0\u13c5\u13f1 \u13a7\u13ec\u13c2 \u13a0\u13c2\u13cd\u13ac\u13d8 \u13d5\u13ad\u13b7\u13f1 \u13ab\u13f0\u13c9\u13c2 \u13a6\u13b6\u13c2 \u13da\u13b5\u13cd\u13d7 \u13da\u13c2\u13c5\u13d7 \u13c5\u13d3\u13d5\u13c6 \u13a4\u13cd\u13a9\u13f1".split(" "),STANDALONEMONTHS:"\u13a4\u13c3\u13b8\u13d4\u13c5 \u13a7\u13a6\u13b5 \u13a0\u13c5\u13f1 \u13a7\u13ec\u13c2 \u13a0\u13c2\u13cd\u13ac\u13d8 \u13d5\u13ad\u13b7\u13f1 \u13ab\u13f0\u13c9\u13c2 \u13a6\u13b6\u13c2 \u13da\u13b5\u13cd\u13d7 \u13da\u13c2\u13c5\u13d7 \u13c5\u13d3\u13d5\u13c6 \u13a4\u13cd\u13a9\u13f1".split(" "),
SHORTMONTHS:"\u13a4\u13c3 \u13a7\u13a6 \u13a0\u13c5 \u13a7\u13ec \u13a0\u13c2 \u13d5\u13ad \u13ab\u13f0 \u13a6\u13b6 \u13da\u13b5 \u13da\u13c2 \u13c5\u13d3 \u13a4\u13cd".split(" "),STANDALONESHORTMONTHS:"\u13a4\u13c3 \u13a7\u13a6 \u13a0\u13c5 \u13a7\u13ec \u13a0\u13c2 \u13d5\u13ad \u13ab\u13f0 \u13a6\u13b6 \u13da\u13b5 \u13da\u13c2 \u13c5\u13d3 \u13a4\u13cd".split(" "),WEEKDAYS:"\u13a4\u13be\u13d9\u13d3\u13c6\u13cd\u13ac \u13a4\u13be\u13d9\u13d3\u13c9\u13c5\u13af \u13d4\u13b5\u13c1\u13a2\u13a6 \u13e6\u13a2\u13c1\u13a2\u13a6 \u13c5\u13a9\u13c1\u13a2\u13a6 \u13e7\u13be\u13a9\u13b6\u13cd\u13d7 \u13a4\u13be\u13d9\u13d3\u13c8\u13d5\u13be".split(" "),
STANDALONEWEEKDAYS:"\u13a4\u13be\u13d9\u13d3\u13c6\u13cd\u13ac \u13a4\u13be\u13d9\u13d3\u13c9\u13c5\u13af \u13d4\u13b5\u13c1\u13a2\u13a6 \u13e6\u13a2\u13c1\u13a2\u13a6 \u13c5\u13a9\u13c1\u13a2\u13a6 \u13e7\u13be\u13a9\u13b6\u13cd\u13d7 \u13a4\u13be\u13d9\u13d3\u13c8\u13d5\u13be".split(" "),SHORTWEEKDAYS:"\u13c6\u13cd\u13ac \u13c9\u13c5\u13af \u13d4\u13b5\u13c1 \u13e6\u13a2\u13c1 \u13c5\u13a9\u13c1 \u13e7\u13be\u13a9 \u13c8\u13d5\u13be".split(" "),STANDALONESHORTWEEKDAYS:"\u13c6\u13cd\u13ac \u13c9\u13c5\u13af \u13d4\u13b5\u13c1 \u13e6\u13a2\u13c1 \u13c5\u13a9\u13c1 \u13e7\u13be\u13a9 \u13c8\u13d5\u13be".split(" "),
NARROWWEEKDAYS:"\u13c6\u13c9\u13d4\u13e6\u13c5\u13e7\u13a4".split(""),STANDALONENARROWWEEKDAYS:"\u13c6\u13c9\u13d4\u13e6\u13c5\u13e7\u13a4".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["Q1","Q2","Q3","Q4"],AMPMS:["\u13cc\u13be\u13b4","\u13d2\u13af\u13f1\u13a2\u13d7\u13e2"],DATEFORMATS:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,
6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_cs={ERAS:["p\u0159. n. l.","n. l."],ERANAMES:["p\u0159. n. l.","n. l."],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"l\u00fabdk\u010d\u010dsz\u0159lp".split(""),MONTHS:"ledna \u00fanora b\u0159ezna dubna kv\u011btna \u010dervna \u010dervence srpna z\u00e1\u0159\u00ed \u0159\u00edjna listopadu prosince".split(" "),STANDALONEMONTHS:"leden \u00fanor b\u0159ezen duben kv\u011bten \u010derven \u010dervenec srpen z\u00e1\u0159\u00ed \u0159\u00edjen listopad prosinec".split(" "),SHORTMONTHS:"led \u00fano b\u0159e dub kv\u011b \u010dvn \u010dvc srp z\u00e1\u0159 \u0159\u00edj lis pro".split(" "),
STANDALONESHORTMONTHS:"led \u00fano b\u0159e dub kv\u011b \u010dvn \u010dvc srp z\u00e1\u0159 \u0159\u00edj lis pro".split(" "),WEEKDAYS:"ned\u011ble pond\u011bl\u00ed \u00fater\u00fd st\u0159eda \u010dtvrtek p\u00e1tek sobota".split(" "),STANDALONEWEEKDAYS:"ned\u011ble pond\u011bl\u00ed \u00fater\u00fd st\u0159eda \u010dtvrtek p\u00e1tek sobota".split(" "),SHORTWEEKDAYS:"ne po \u00fat st \u010dt p\u00e1 so".split(" "),STANDALONESHORTWEEKDAYS:"ne po \u00fat st \u010dt p\u00e1 so".split(" "),NARROWWEEKDAYS:"NP\u00daS\u010cPS".split(""),
STANDALONENARROWWEEKDAYS:"NP\u00daS\u010cPS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1. \u010dtvrtlet\u00ed","2. \u010dtvrtlet\u00ed","3. \u010dtvrtlet\u00ed","4. \u010dtvrtlet\u00ed"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE d. MMMM y","d. MMMM y","d. M. y","dd.MM.yy"],TIMEFORMATS:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_cy={ERAS:["CC","OC"],ERANAMES:["Cyn Crist","Oed Crist"],NARROWMONTHS:"I Ch M E M M G A M H T Rh".split(" "),STANDALONENARROWMONTHS:"I Ch M E M M G A M H T Rh".split(" "),MONTHS:"Ionawr Chwefror Mawrth Ebrill Mai Mehefin Gorffennaf Awst Medi Hydref Tachwedd Rhagfyr".split(" "),STANDALONEMONTHS:"Ionawr Chwefror Mawrth Ebrill Mai Mehefin Gorffennaf Awst Medi Hydref Tachwedd Rhagfyr".split(" "),SHORTMONTHS:"Ion Chwef Mawrth Ebrill Mai Meh Gorff Awst Medi Hyd Tach Rhag".split(" "),
STANDALONESHORTMONTHS:"Ion Chw Maw Ebr Mai Meh Gor Awst Medi Hyd Tach Rhag".split(" "),WEEKDAYS:"Dydd Sul;Dydd Llun;Dydd Mawrth;Dydd Mercher;Dydd Iau;Dydd Gwener;Dydd Sadwrn".split(";"),STANDALONEWEEKDAYS:"Dydd Sul;Dydd Llun;Dydd Mawrth;Dydd Mercher;Dydd Iau;Dydd Gwener;Dydd Sadwrn".split(";"),SHORTWEEKDAYS:"Sul Llun Maw Mer Iau Gwen Sad".split(" "),STANDALONESHORTWEEKDAYS:"Sul Llun Maw Mer Iau Gwe Sad".split(" "),NARROWWEEKDAYS:"S Ll M M I G S".split(" "),STANDALONENARROWWEEKDAYS:"S Ll M M I G S".split(" "),
SHORTQUARTERS:["Ch1","Ch2","Ch3","Ch4"],QUARTERS:["Chwarter 1af","2il chwarter","3ydd chwarter","4ydd chwarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","d MMM y","dd/MM/y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} 'am' {0}","{1} 'am' {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_da={ERAS:["f.Kr.","e.Kr."],ERANAMES:["f.Kr.","e.Kr."],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"januar februar marts april maj juni juli august september oktober november december".split(" "),STANDALONEMONTHS:"januar februar marts april maj juni juli august september oktober november december".split(" "),SHORTMONTHS:"jan. feb. mar. apr. maj jun. jul. aug. sep. okt. nov. dec.".split(" "),STANDALONESHORTMONTHS:"jan feb mar apr maj jun jul aug sep okt nov dec".split(" "),
WEEKDAYS:"s\u00f8ndag mandag tirsdag onsdag torsdag fredag l\u00f8rdag".split(" "),STANDALONEWEEKDAYS:"s\u00f8ndag mandag tirsdag onsdag torsdag fredag l\u00f8rdag".split(" "),SHORTWEEKDAYS:"s\u00f8n. man. tir. ons. tor. fre. l\u00f8r.".split(" "),STANDALONESHORTWEEKDAYS:"s\u00f8n man tir ons tor fre l\u00f8r".split(" "),NARROWWEEKDAYS:"SMTOTFL".split(""),STANDALONENARROWWEEKDAYS:"SMTOTFL".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],
AMPMS:["AM","PM"],DATEFORMATS:["EEEE 'den' d. MMMM y","d. MMM y","dd/MM/y","dd/MM/yy"],TIMEFORMATS:["HH.mm.ss zzzz","HH.mm.ss z","HH.mm.ss","HH.mm"],DATETIMEFORMATS:["{1} 'kl.' {0}","{1} 'kl.' {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_de={ERAS:["v. Chr.","n. Chr."],ERANAMES:["v. Chr.","n. Chr."],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"Januar Februar M\u00e4rz April Mai Juni Juli August September Oktober November Dezember".split(" "),STANDALONEMONTHS:"Januar Februar M\u00e4rz April Mai Juni Juli August September Oktober November Dezember".split(" "),SHORTMONTHS:"Jan. Feb. M\u00e4rz Apr. Mai Juni Juli Aug. Sep. Okt. Nov. Dez.".split(" "),STANDALONESHORTMONTHS:"Jan Feb M\u00e4r Apr Mai Jun Jul Aug Sep Okt Nov Dez".split(" "),
WEEKDAYS:"Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag".split(" "),STANDALONEWEEKDAYS:"Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag".split(" "),SHORTWEEKDAYS:"So. Mo. Di. Mi. Do. Fr. Sa.".split(" "),STANDALONESHORTWEEKDAYS:"So Mo Di Mi Do Fr Sa".split(" "),NARROWWEEKDAYS:"SMDMDFS".split(""),STANDALONENARROWWEEKDAYS:"SMDMDFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"],AMPMS:["vorm.","nachm."],DATEFORMATS:["EEEE, d. MMMM y",
"d. MMMM y","dd.MM.y","dd.MM.yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_de_AT={ERAS:["v. Chr.","n. Chr."],ERANAMES:["v. Chr.","n. Chr."],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"J\u00e4nner Februar M\u00e4rz April Mai Juni Juli August September Oktober November Dezember".split(" "),STANDALONEMONTHS:"J\u00e4nner Februar M\u00e4rz April Mai Juni Juli August September Oktober November Dezember".split(" "),SHORTMONTHS:"J\u00e4n. Feb. M\u00e4rz Apr. Mai Juni Juli Aug. Sep. Okt. Nov. Dez.".split(" "),
STANDALONESHORTMONTHS:"J\u00e4n Feb M\u00e4r Apr Mai Jun Jul Aug Sep Okt Nov Dez".split(" "),WEEKDAYS:"Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag".split(" "),STANDALONEWEEKDAYS:"Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag".split(" "),SHORTWEEKDAYS:"So. Mo. Di. Mi. Do. Fr. Sa.".split(" "),STANDALONESHORTWEEKDAYS:"So Mo Di Mi Do Fr Sa".split(" "),NARROWWEEKDAYS:"SMDMDFS".split(""),STANDALONENARROWWEEKDAYS:"SMDMDFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1. Quartal",
"2. Quartal","3. Quartal","4. Quartal"],AMPMS:["vorm.","nachm."],DATEFORMATS:["EEEE, dd. MMMM y","dd. MMMM y","dd.MM.y","dd.MM.yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};goog.i18n.DateTimeSymbols_de_CH=goog.i18n.DateTimeSymbols_de;
goog.i18n.DateTimeSymbols_el={ERAS:["\u03c0.\u03a7.","\u03bc.\u03a7."],ERANAMES:["\u03c0.\u03a7.","\u03bc.\u03a7."],NARROWMONTHS:"\u0399\u03a6\u039c\u0391\u039c\u0399\u0399\u0391\u03a3\u039f\u039d\u0394".split(""),STANDALONENARROWMONTHS:"\u0399\u03a6\u039c\u0391\u039c\u0399\u0399\u0391\u03a3\u039f\u039d\u0394".split(""),MONTHS:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5 \u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5 \u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5 \u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5 \u039c\u03b1\u0390\u03bf\u03c5 \u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5 \u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5 \u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5 \u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5 \u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5 \u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5 \u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split(" "),
STANDALONEMONTHS:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2 \u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2 \u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2 \u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2 \u039c\u03ac\u03b9\u03bf\u03c2 \u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2 \u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2 \u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2 \u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2 \u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2 \u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2 \u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split(" "),
SHORTMONTHS:"\u0399\u03b1\u03bd \u03a6\u03b5\u03b2 \u039c\u03b1\u03c1 \u0391\u03c0\u03c1 \u039c\u03b1\u0390 \u0399\u03bf\u03c5\u03bd \u0399\u03bf\u03c5\u03bb \u0391\u03c5\u03b3 \u03a3\u03b5\u03c0 \u039f\u03ba\u03c4 \u039d\u03bf\u03b5 \u0394\u03b5\u03ba".split(" "),STANDALONESHORTMONTHS:"\u0399\u03b1\u03bd \u03a6\u03b5\u03b2 \u039c\u03ac\u03c1 \u0391\u03c0\u03c1 \u039c\u03ac\u03b9 \u0399\u03bf\u03cd\u03bd \u0399\u03bf\u03cd\u03bb \u0391\u03cd\u03b3 \u03a3\u03b5\u03c0 \u039f\u03ba\u03c4 \u039d\u03bf\u03ad \u0394\u03b5\u03ba".split(" "),
WEEKDAYS:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae \u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1 \u03a4\u03c1\u03af\u03c4\u03b7 \u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7 \u03a0\u03ad\u03bc\u03c0\u03c4\u03b7 \u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae \u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split(" "),STANDALONEWEEKDAYS:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae \u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1 \u03a4\u03c1\u03af\u03c4\u03b7 \u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7 \u03a0\u03ad\u03bc\u03c0\u03c4\u03b7 \u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae \u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split(" "),
SHORTWEEKDAYS:"\u039a\u03c5\u03c1 \u0394\u03b5\u03c5 \u03a4\u03c1\u03af \u03a4\u03b5\u03c4 \u03a0\u03ad\u03bc \u03a0\u03b1\u03c1 \u03a3\u03ac\u03b2".split(" "),STANDALONESHORTWEEKDAYS:"\u039a\u03c5\u03c1 \u0394\u03b5\u03c5 \u03a4\u03c1\u03af \u03a4\u03b5\u03c4 \u03a0\u03ad\u03bc \u03a0\u03b1\u03c1 \u03a3\u03ac\u03b2".split(" "),NARROWWEEKDAYS:"\u039a\u0394\u03a4\u03a4\u03a0\u03a0\u03a3".split(""),STANDALONENARROWWEEKDAYS:"\u039a\u0394\u03a4\u03a4\u03a0\u03a0\u03a3".split(""),SHORTQUARTERS:["\u03a41",
"\u03a42","\u03a43","\u03a44"],QUARTERS:["1\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","2\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","3\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf","4\u03bf \u03c4\u03c1\u03af\u03bc\u03b7\u03bd\u03bf"],AMPMS:["\u03c0.\u03bc.","\u03bc.\u03bc."],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","d MMM y","d/M/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} - {0}","{1} - {0}","{1} - {0}","{1} - {0}"],FIRSTDAYOFWEEK:0,
WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_en={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_en_AU={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d MMMM y",
"d MMMM y","d MMM y","d/MM/y"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_en_GB={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["am","pm"],DATEFORMATS:["EEEE, d MMMM y",
"d MMMM y","d MMM y","dd/MM/y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_en_IE={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["a.m.","p.m."],DATEFORMATS:["EEEE d MMMM y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:2};
goog.i18n.DateTimeSymbols_en_IN={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE d MMMM y",
"d MMMM y","dd-MMM-y","dd/MM/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_en_SG={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d MMMM, y",
"d MMMM, y","d MMM, y","d/M/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};goog.i18n.DateTimeSymbols_en_US=goog.i18n.DateTimeSymbols_en;
goog.i18n.DateTimeSymbols_en_ZA={ERAS:["BC","AD"],ERANAMES:["Before Christ","Anno Domini"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"January February March April May June July August September October November December".split(" "),STANDALONEMONTHS:"January February March April May June July August September October November December".split(" "),SHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
WEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),STANDALONEWEEKDAYS:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),STANDALONESHORTWEEKDAYS:"Sun Mon Tue Wed Thu Fri Sat".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["1st quarter","2nd quarter","3rd quarter","4th quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE dd MMMM y",
"dd MMMM y","dd MMM y","y/MM/dd"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_es={ERAS:["a. C.","d. C."],ERANAMES:["antes de Cristo","anno D\u00f3mini"],NARROWMONTHS:"EFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"EFMAMJJASOND".split(""),MONTHS:"enero febrero marzo abril mayo junio julio agosto septiembre octubre noviembre diciembre".split(" "),STANDALONEMONTHS:"Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre".split(" "),SHORTMONTHS:"ene. feb. mar. abr. may. jun. jul. ago. sept. oct. nov. dic.".split(" "),
STANDALONESHORTMONTHS:"Ene. Feb. Mar. Abr. May. Jun. Jul. Ago. Sept. Oct. Nov. Dic.".split(" "),WEEKDAYS:"domingo lunes martes mi\u00e9rcoles jueves viernes s\u00e1bado".split(" "),STANDALONEWEEKDAYS:"Domingo Lunes Martes Mi\u00e9rcoles Jueves Viernes S\u00e1bado".split(" "),SHORTWEEKDAYS:"dom. lun. mar. mi\u00e9. jue. vie. s\u00e1b.".split(" "),STANDALONESHORTWEEKDAYS:"Dom. Lun. Mar. Mi\u00e9. Jue. Vie. S\u00e1b.".split(" "),NARROWWEEKDAYS:"DLMXJVS".split(""),STANDALONENARROWWEEKDAYS:"DLMXJVS".split(""),
SHORTQUARTERS:["T1","T2","T3","T4"],QUARTERS:["1.er trimestre","2.\u00ba trimestre","3.er trimestre","4.\u00ba trimestre"],AMPMS:["a. m.","p. m."],DATEFORMATS:["EEEE, d 'de' MMMM 'de' y","d 'de' MMMM 'de' y","d/M/y","d/M/yy"],TIMEFORMATS:["H:mm:ss (zzzz)","H:mm:ss z","H:mm:ss","H:mm"],DATETIMEFORMATS:["{1}, {0}","{1}, {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};goog.i18n.DateTimeSymbols_es_419=goog.i18n.DateTimeSymbols_es;goog.i18n.DateTimeSymbols_es_ES=goog.i18n.DateTimeSymbols_es;
goog.i18n.DateTimeSymbols_et={ERAS:["e.m.a.","m.a.j."],ERANAMES:["enne meie aega","meie aja j\u00e4rgi"],NARROWMONTHS:"JVMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JVMAMJJASOND".split(""),MONTHS:"jaanuar veebruar m\u00e4rts aprill mai juuni juuli august september oktoober november detsember".split(" "),STANDALONEMONTHS:"jaanuar veebruar m\u00e4rts aprill mai juuni juuli august september oktoober november detsember".split(" "),SHORTMONTHS:"jaan veebr m\u00e4rts apr mai juuni juuli aug sept okt nov dets".split(" "),
STANDALONESHORTMONTHS:"jaan veebr m\u00e4rts apr mai juuni juuli aug sept okt nov dets".split(" "),WEEKDAYS:"p\u00fchap\u00e4ev esmasp\u00e4ev teisip\u00e4ev kolmap\u00e4ev neljap\u00e4ev reede laup\u00e4ev".split(" "),STANDALONEWEEKDAYS:"p\u00fchap\u00e4ev esmasp\u00e4ev teisip\u00e4ev kolmap\u00e4ev neljap\u00e4ev reede laup\u00e4ev".split(" "),SHORTWEEKDAYS:"PETKNRL".split(""),STANDALONESHORTWEEKDAYS:"PETKNRL".split(""),NARROWWEEKDAYS:"PETKNRL".split(""),STANDALONENARROWWEEKDAYS:"PETKNRL".split(""),
SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d. MMMM y","d. MMMM y","dd.MM.y","dd.MM.yy"],TIMEFORMATS:["H:mm.ss zzzz","H:mm.ss z","H:mm.ss","H:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_eu={ERAS:["K.a.","K.o."],ERANAMES:["K.a.","K.o."],NARROWMONTHS:"UOMAMEUAIUAA".split(""),STANDALONENARROWMONTHS:"UOMAMEUAIUAA".split(""),MONTHS:"urtarrilak otsailak martxoak apirilak maiatzak ekainak uztailak abuztuak irailak urriak azaroak abenduak".split(" "),STANDALONEMONTHS:"urtarrila otsaila martxoa apirila maiatza ekaina uztaila abuztua iraila urria azaroa abendua".split(" "),SHORTMONTHS:"urt. ots. mar. api. mai. eka. uzt. abu. ira. urr. aza. abe.".split(" "),STANDALONESHORTMONTHS:"urt. ots. mar. api. mai. eka. uzt. abu. ira. urr. aza. abe.".split(" "),
WEEKDAYS:"igandea astelehena asteartea asteazkena osteguna ostirala larunbata".split(" "),STANDALONEWEEKDAYS:"igandea astelehena asteartea asteazkena osteguna ostirala larunbata".split(" "),SHORTWEEKDAYS:"ig. al. ar. az. og. or. lr.".split(" "),STANDALONESHORTWEEKDAYS:"ig. al. ar. az. og. or. lr.".split(" "),NARROWWEEKDAYS:"IAAAOOL".split(""),STANDALONENARROWWEEKDAYS:"IAAAOOL".split(""),SHORTQUARTERS:["1Hh","2Hh","3Hh","4Hh"],QUARTERS:["1. hiruhilekoa","2. hiruhilekoa","3. hiruhilekoa","4. hiruhilekoa"],
AMPMS:["AM","PM"],DATEFORMATS:["y('e')'ko' MMMM d, EEEE","y('e')'ko' MMMM d","y MMM d","y-MM-dd"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_fa={ZERODIGIT:1776,ERAS:["\u0642.\u0645.","\u0645."],ERANAMES:["\u0642\u0628\u0644 \u0627\u0632 \u0645\u06cc\u0644\u0627\u062f","\u0645\u06cc\u0644\u0627\u062f\u06cc"],NARROWMONTHS:"\u0698\u0641\u0645\u0622\u0645\u0698\u0698\u0627\u0633\u0627\u0646\u062f".split(""),STANDALONENARROWMONTHS:"\u0698\u0641\u0645\u0622\u0645\u0698\u0698\u0627\u0633\u0627\u0646\u062f".split(""),MONTHS:"\u0698\u0627\u0646\u0648\u06cc\u0647\u0654 \u0641\u0648\u0631\u06cc\u0647\u0654 \u0645\u0627\u0631\u0633 \u0622\u0648\u0631\u06cc\u0644 \u0645\u0647\u0654 \u0698\u0648\u0626\u0646 \u0698\u0648\u0626\u06cc\u0647\u0654 \u0627\u0648\u062a \u0633\u067e\u062a\u0627\u0645\u0628\u0631 \u0627\u06a9\u062a\u0628\u0631 \u0646\u0648\u0627\u0645\u0628\u0631 \u062f\u0633\u0627\u0645\u0628\u0631".split(" "),
STANDALONEMONTHS:"\u0698\u0627\u0646\u0648\u06cc\u0647 \u0641\u0648\u0631\u06cc\u0647 \u0645\u0627\u0631\u0633 \u0622\u0648\u0631\u06cc\u0644 \u0645\u0647 \u0698\u0648\u0626\u0646 \u0698\u0648\u0626\u06cc\u0647 \u0627\u0648\u062a \u0633\u067e\u062a\u0627\u0645\u0628\u0631 \u0627\u06a9\u062a\u0628\u0631 \u0646\u0648\u0627\u0645\u0628\u0631 \u062f\u0633\u0627\u0645\u0628\u0631".split(" "),SHORTMONTHS:"\u0698\u0627\u0646\u0648\u06cc\u0647\u0654 \u0641\u0648\u0631\u06cc\u0647\u0654 \u0645\u0627\u0631\u0633 \u0622\u0648\u0631\u06cc\u0644 \u0645\u0647\u0654 \u0698\u0648\u0626\u0646 \u0698\u0648\u0626\u06cc\u0647\u0654 \u0627\u0648\u062a \u0633\u067e\u062a\u0627\u0645\u0628\u0631 \u0627\u06a9\u062a\u0628\u0631 \u0646\u0648\u0627\u0645\u0628\u0631 \u062f\u0633\u0627\u0645\u0628\u0631".split(" "),
STANDALONESHORTMONTHS:"\u0698\u0627\u0646\u0648\u06cc\u0647 \u0641\u0648\u0631\u06cc\u0647 \u0645\u0627\u0631\u0633 \u0622\u0648\u0631\u06cc\u0644 \u0645\u0647 \u0698\u0648\u0626\u0646 \u0698\u0648\u0626\u06cc\u0647 \u0627\u0648\u062a \u0633\u067e\u062a\u0627\u0645\u0628\u0631 \u0627\u06a9\u062a\u0628\u0631 \u0646\u0648\u0627\u0645\u0628\u0631 \u062f\u0633\u0627\u0645\u0628\u0631".split(" "),WEEKDAYS:"\u06cc\u06a9\u0634\u0646\u0628\u0647 \u062f\u0648\u0634\u0646\u0628\u0647 \u0633\u0647\u200c\u0634\u0646\u0628\u0647 \u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647 \u067e\u0646\u062c\u0634\u0646\u0628\u0647 \u062c\u0645\u0639\u0647 \u0634\u0646\u0628\u0647".split(" "),
STANDALONEWEEKDAYS:"\u06cc\u06a9\u0634\u0646\u0628\u0647 \u062f\u0648\u0634\u0646\u0628\u0647 \u0633\u0647\u200c\u0634\u0646\u0628\u0647 \u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647 \u067e\u0646\u062c\u0634\u0646\u0628\u0647 \u062c\u0645\u0639\u0647 \u0634\u0646\u0628\u0647".split(" "),SHORTWEEKDAYS:"\u06cc\u06a9\u0634\u0646\u0628\u0647 \u062f\u0648\u0634\u0646\u0628\u0647 \u0633\u0647\u200c\u0634\u0646\u0628\u0647 \u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647 \u067e\u0646\u062c\u0634\u0646\u0628\u0647 \u062c\u0645\u0639\u0647 \u0634\u0646\u0628\u0647".split(" "),
STANDALONESHORTWEEKDAYS:"\u06cc\u06a9\u0634\u0646\u0628\u0647 \u062f\u0648\u0634\u0646\u0628\u0647 \u0633\u0647\u200c\u0634\u0646\u0628\u0647 \u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647 \u067e\u0646\u062c\u0634\u0646\u0628\u0647 \u062c\u0645\u0639\u0647 \u0634\u0646\u0628\u0647".split(" "),NARROWWEEKDAYS:"\u06cc\u062f\u0633\u0686\u067e\u062c\u0634".split(""),STANDALONENARROWWEEKDAYS:"\u06cc\u062f\u0633\u0686\u067e\u062c\u0634".split(""),SHORTQUARTERS:["\u0633\u200c\u0645\u06f1","\u0633\u200c\u0645\u06f2",
"\u0633\u200c\u0645\u06f3","\u0633\u200c\u0645\u06f4"],QUARTERS:["\u0633\u0647\u200c\u0645\u0627\u0647\u0647\u0654 \u0627\u0648\u0644","\u0633\u0647\u200c\u0645\u0627\u0647\u0647\u0654 \u062f\u0648\u0645","\u0633\u0647\u200c\u0645\u0627\u0647\u0647\u0654 \u0633\u0648\u0645","\u0633\u0647\u200c\u0645\u0627\u0647\u0647\u0654 \u0686\u0647\u0627\u0631\u0645"],AMPMS:["\u0642\u0628\u0644\u200c\u0627\u0632\u0638\u0647\u0631","\u0628\u0639\u062f\u0627\u0632\u0638\u0647\u0631"],DATEFORMATS:["EEEE d MMMM y",
"d MMMM y","d MMM y","y/M/d"],TIMEFORMATS:["H:mm:ss (zzzz)","H:mm:ss (z)","H:mm:ss","H:mm"],DATETIMEFORMATS:["{1}\u060c \u0633\u0627\u0639\u062a {0}","{1}\u060c \u0633\u0627\u0639\u062a {0}","{1}\u060c\u200f {0}","{1}\u060c\u200f {0}"],FIRSTDAYOFWEEK:5,WEEKENDRANGE:[3,4],FIRSTWEEKCUTOFFDAY:4};
goog.i18n.DateTimeSymbols_fi={ERAS:["eKr.","jKr."],ERANAMES:["ennen Kristuksen syntym\u00e4\u00e4","j\u00e4lkeen Kristuksen syntym\u00e4n"],NARROWMONTHS:"THMHTKHESLMJ".split(""),STANDALONENARROWMONTHS:"THMHTKHESLMJ".split(""),MONTHS:"tammikuuta helmikuuta maaliskuuta huhtikuuta toukokuuta kes\u00e4kuuta hein\u00e4kuuta elokuuta syyskuuta lokakuuta marraskuuta joulukuuta".split(" "),STANDALONEMONTHS:"tammikuu helmikuu maaliskuu huhtikuu toukokuu kes\u00e4kuu hein\u00e4kuu elokuu syyskuu lokakuu marraskuu joulukuu".split(" "),
SHORTMONTHS:"tammikuuta helmikuuta maaliskuuta huhtikuuta toukokuuta kes\u00e4kuuta hein\u00e4kuuta elokuuta syyskuuta lokakuuta marraskuuta joulukuuta".split(" "),STANDALONESHORTMONTHS:"tammi helmi maalis huhti touko kes\u00e4 hein\u00e4 elo syys loka marras joulu".split(" "),WEEKDAYS:"sunnuntaina maanantaina tiistaina keskiviikkona torstaina perjantaina lauantaina".split(" "),STANDALONEWEEKDAYS:"sunnuntai maanantai tiistai keskiviikko torstai perjantai lauantai".split(" "),SHORTWEEKDAYS:"su ma ti ke to pe la".split(" "),
STANDALONESHORTWEEKDAYS:"su ma ti ke to pe la".split(" "),NARROWWEEKDAYS:"SMTKTPL".split(""),STANDALONENARROWWEEKDAYS:"SMTKTPL".split(""),SHORTQUARTERS:["1. nelj.","2. nelj.","3. nelj.","4. nelj."],QUARTERS:["1. nelj\u00e4nnes","2. nelj\u00e4nnes","3. nelj\u00e4nnes","4. nelj\u00e4nnes"],AMPMS:["ap.","ip."],DATEFORMATS:["cccc d. MMMM y","d. MMMM y","d.M.y","d.M.y"],TIMEFORMATS:["H.mm.ss zzzz","H.mm.ss z","H.mm.ss","H.mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,
WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_fil={ERAS:["BC","AD"],ERANAMES:["BC","AD"],NARROWMONTHS:"EPMAMHHASOND".split(""),STANDALONENARROWMONTHS:"EPMAMHHASOND".split(""),MONTHS:"Enero Pebrero Marso Abril Mayo Hunyo Hulyo Agosto Setyembre Oktubre Nobyembre Disyembre".split(" "),STANDALONEMONTHS:"Enero Pebrero Marso Abril Mayo Hunyo Hulyo Agosto Setyembre Oktubre Nobyembre Disyembre".split(" "),SHORTMONTHS:"Ene Peb Mar Abr May Hun Hul Ago Set Okt Nob Dis".split(" "),STANDALONESHORTMONTHS:"Ene Peb Mar Abr May Hun Hul Ago Set Okt Nob Dis".split(" "),WEEKDAYS:"Linggo Lunes Martes Miyerkules Huwebes Biyernes Sabado".split(" "),
STANDALONEWEEKDAYS:"Linggo Lunes Martes Miyerkules Huwebes Biyernes Sabado".split(" "),SHORTWEEKDAYS:"Lin Lun Mar Miy Huw Biy Sab".split(" "),STANDALONESHORTWEEKDAYS:"Lin Lun Mar Miy Huw Biy Sab".split(" "),NARROWWEEKDAYS:"LLMMHBS".split(""),STANDALONENARROWWEEKDAYS:"LLMMHBS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["ika-1 quarter","ika-2 quarter","ika-3 quarter","ika-4 na quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss a zzzz",
"h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'ng' {0}","{1} 'ng' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_fr={ERAS:["av. J.-C.","ap. J.-C."],ERANAMES:["avant J\u00e9sus-Christ","apr\u00e8s J\u00e9sus-Christ"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"janvier f\u00e9vrier mars avril mai juin juillet ao\u00fbt septembre octobre novembre d\u00e9cembre".split(" "),STANDALONEMONTHS:"janvier f\u00e9vrier mars avril mai juin juillet ao\u00fbt septembre octobre novembre d\u00e9cembre".split(" "),SHORTMONTHS:"janv. f\u00e9vr. mars avr. mai juin juil. ao\u00fbt sept. oct. nov. d\u00e9c.".split(" "),
STANDALONESHORTMONTHS:"janv. f\u00e9vr. mars avr. mai juin juil. ao\u00fbt sept. oct. nov. d\u00e9c.".split(" "),WEEKDAYS:"dimanche lundi mardi mercredi jeudi vendredi samedi".split(" "),STANDALONEWEEKDAYS:"dimanche lundi mardi mercredi jeudi vendredi samedi".split(" "),SHORTWEEKDAYS:"dim. lun. mar. mer. jeu. ven. sam.".split(" "),STANDALONESHORTWEEKDAYS:"dim. lun. mar. mer. jeu. ven. sam.".split(" "),NARROWWEEKDAYS:"DLMMJVS".split(""),STANDALONENARROWWEEKDAYS:"DLMMJVS".split(""),SHORTQUARTERS:["T1",
"T2","T3","T4"],QUARTERS:["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE d MMMM y","d MMMM y","d MMM y","dd/MM/y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_fr_CA={ERAS:["av. J.-C.","ap. J.-C."],ERANAMES:["avant J\u00e9sus-Christ","apr\u00e8s J\u00e9sus-Christ"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"janvier f\u00e9vrier mars avril mai juin juillet ao\u00fbt septembre octobre novembre d\u00e9cembre".split(" "),STANDALONEMONTHS:"janvier f\u00e9vrier mars avril mai juin juillet ao\u00fbt septembre octobre novembre d\u00e9cembre".split(" "),SHORTMONTHS:"janv. f\u00e9vr. mars avr. mai juin juil. ao\u00fbt sept. oct. nov. d\u00e9c.".split(" "),
STANDALONESHORTMONTHS:"janv. f\u00e9vr. mars avr. mai juin juil. ao\u00fbt sept. oct. nov. d\u00e9c.".split(" "),WEEKDAYS:"dimanche lundi mardi mercredi jeudi vendredi samedi".split(" "),STANDALONEWEEKDAYS:"dimanche lundi mardi mercredi jeudi vendredi samedi".split(" "),SHORTWEEKDAYS:"dim. lun. mar. mer. jeu. ven. sam.".split(" "),STANDALONESHORTWEEKDAYS:"dim. lun. mar. mer. jeu. ven. sam.".split(" "),NARROWWEEKDAYS:"DLMMJVS".split(""),STANDALONENARROWWEEKDAYS:"DLMMJVS".split(""),SHORTQUARTERS:["T1",
"T2","T3","T4"],QUARTERS:["1er trimestre","2e trimestre","3e trimestre","4e trimestre"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE d MMMM y","d MMMM y","y-MM-dd","yy-MM-dd"],TIMEFORMATS:["HH 'h' mm 'min' ss 's' zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_gl={ERAS:["a.C.","d.C."],ERANAMES:["antes de Cristo","despois de Cristo"],NARROWMONTHS:"XFMAMXXASOND".split(""),STANDALONENARROWMONTHS:"XFMAMXXASOND".split(""),MONTHS:"xaneiro febreiro marzo abril maio xu\u00f1o xullo agosto setembro outubro novembro decembro".split(" "),STANDALONEMONTHS:"Xaneiro Febreiro Marzo Abril Maio Xu\u00f1o Xullo Agosto Setembro Outubro Novembro Decembro".split(" "),SHORTMONTHS:"xan feb mar abr mai xu\u00f1 xul ago set out nov dec".split(" "),STANDALONESHORTMONTHS:"Xan Feb Mar Abr Mai Xu\u00f1 Xul Ago Set Out Nov Dec".split(" "),
WEEKDAYS:"domingo luns martes m\u00e9rcores xoves venres s\u00e1bado".split(" "),STANDALONEWEEKDAYS:"Domingo Luns Martes M\u00e9rcores Xoves Venres S\u00e1bado".split(" "),SHORTWEEKDAYS:"dom lun mar m\u00e9r xov ven s\u00e1b".split(" "),STANDALONESHORTWEEKDAYS:"Dom Lun Mar M\u00e9r Xov Ven S\u00e1b".split(" "),NARROWWEEKDAYS:"DLMMXVS".split(""),STANDALONENARROWWEEKDAYS:"DLMMXVS".split(""),SHORTQUARTERS:["T1","T2","T3","T4"],QUARTERS:["1o trimestre","2o trimestre","3o trimestre","4o trimestre"],AMPMS:["a.m.",
"p.m."],DATEFORMATS:["EEEE dd MMMM y","dd MMMM y","d MMM, y","dd/MM/yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_gsw={ERAS:["v. Chr.","n. Chr."],ERANAMES:["v. Chr.","n. Chr."],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"Januar Februar M\u00e4rz April Mai Juni Juli Auguscht Sept\u00e4mber Oktoober Nov\u00e4mber Dez\u00e4mber".split(" "),STANDALONEMONTHS:"Januar Februar M\u00e4rz April Mai Juni Juli Auguscht Sept\u00e4mber Oktoober Nov\u00e4mber Dez\u00e4mber".split(" "),SHORTMONTHS:"Jan Feb M\u00e4r Apr Mai Jun Jul Aug Sep Okt Nov Dez".split(" "),
STANDALONESHORTMONTHS:"Jan Feb M\u00e4r Apr Mai Jun Jul Aug Sep Okt Nov Dez".split(" "),WEEKDAYS:"Sunntig M\u00e4\u00e4ntig Ziischtig Mittwuch Dunschtig Friitig Samschtig".split(" "),STANDALONEWEEKDAYS:"Sunntig M\u00e4\u00e4ntig Ziischtig Mittwuch Dunschtig Friitig Samschtig".split(" "),SHORTWEEKDAYS:"Su. M\u00e4. Zi. Mi. Du. Fr. Sa.".split(" "),STANDALONESHORTWEEKDAYS:"Su. M\u00e4. Zi. Mi. Du. Fr. Sa.".split(" "),NARROWWEEKDAYS:"SMDMDFS".split(""),STANDALONENARROWWEEKDAYS:"SMDMDFS".split(""),SHORTQUARTERS:["Q1",
"Q2","Q3","Q4"],QUARTERS:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"],AMPMS:["vorm.","nam."],DATEFORMATS:["EEEE, d. MMMM y","d. MMMM y","dd.MM.y","dd.MM.yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_gu={ERAS:["\u0a88\u0ab8\u0ac1\u0aa8\u0abe \u0a9c\u0aa8\u0acd\u0aae \u0aaa\u0ab9\u0ac7\u0ab2\u0abe","\u0a87\u0ab8\u0ab5\u0ac0\u0ab8\u0aa8"],ERANAMES:["\u0a88\u0ab8\u0ab5\u0ac0\u0ab8\u0aa8 \u0aaa\u0ac2\u0ab0\u0acd\u0ab5\u0ac7","\u0a87\u0ab8\u0ab5\u0ac0\u0ab8\u0aa8"],NARROWMONTHS:"\u0a9c\u0abe \u0aab\u0ac7 \u0aae\u0abe \u0a8f \u0aae\u0ac7 \u0a9c\u0ac2 \u0a9c\u0ac1 \u0a91 \u0ab8 \u0a91 \u0aa8 \u0aa1\u0abf".split(" "),STANDALONENARROWMONTHS:"\u0a9c\u0abe \u0aab\u0ac7 \u0aae\u0abe \u0a8f \u0aae\u0ac7 \u0a9c\u0ac2 \u0a9c\u0ac1 \u0a91 \u0ab8 \u0a91 \u0aa8 \u0aa1\u0abf".split(" "),
MONTHS:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0 \u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0 \u0aae\u0abe\u0ab0\u0acd\u0a9a \u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2 \u0aae\u0ac7 \u0a9c\u0ac2\u0aa8 \u0a9c\u0ac1\u0ab2\u0abe\u0a88 \u0a91\u0a97\u0ab8\u0acd\u0a9f \u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0 \u0a91\u0a95\u0acd\u0a9f\u0acb\u0aac\u0ab0 \u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0 \u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split(" "),STANDALONEMONTHS:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0 \u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0 \u0aae\u0abe\u0ab0\u0acd\u0a9a \u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2 \u0aae\u0ac7 \u0a9c\u0ac2\u0aa8 \u0a9c\u0ac1\u0ab2\u0abe\u0a88 \u0a91\u0a97\u0ab8\u0acd\u0a9f \u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0 \u0a91\u0a95\u0acd\u0a9f\u0acb\u0aac\u0ab0 \u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0 \u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split(" "),
SHORTMONTHS:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1 \u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1 \u0aae\u0abe\u0ab0\u0acd\u0a9a \u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2 \u0aae\u0ac7 \u0a9c\u0ac2\u0aa8 \u0a9c\u0ac1\u0ab2\u0abe\u0a88 \u0a91\u0a97\u0ab8\u0acd\u0a9f \u0ab8\u0aaa\u0acd\u0a9f\u0ac7 \u0a91\u0a95\u0acd\u0a9f\u0acb \u0aa8\u0ab5\u0ac7 \u0aa1\u0abf\u0ab8\u0ac7".split(" "),STANDALONESHORTMONTHS:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1 \u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1 \u0aae\u0abe\u0ab0\u0acd\u0a9a \u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2 \u0aae\u0ac7 \u0a9c\u0ac2\u0aa8 \u0a9c\u0ac1\u0ab2\u0abe\u0a88 \u0a91\u0a97 \u0ab8\u0aaa\u0acd\u0a9f\u0ac7 \u0a91\u0a95\u0acd\u0a9f\u0acb \u0aa8\u0ab5\u0ac7 \u0aa1\u0abf\u0ab8\u0ac7".split(" "),
WEEKDAYS:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0 \u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0 \u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0 \u0aac\u0ac1\u0aa7\u0ab5\u0abe\u0ab0 \u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0 \u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0 \u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split(" "),STANDALONEWEEKDAYS:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0 \u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0 \u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0 \u0aac\u0ac1\u0aa7\u0ab5\u0abe\u0ab0 \u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0 \u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0 \u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split(" "),
SHORTWEEKDAYS:"\u0ab0\u0ab5\u0abf \u0ab8\u0acb\u0aae \u0aae\u0a82\u0a97\u0ab3 \u0aac\u0ac1\u0aa7 \u0a97\u0ac1\u0ab0\u0ac1 \u0ab6\u0ac1\u0a95\u0acd\u0ab0 \u0ab6\u0aa8\u0abf".split(" "),STANDALONESHORTWEEKDAYS:"\u0ab0\u0ab5\u0abf \u0ab8\u0acb\u0aae \u0aae\u0a82\u0a97\u0ab3 \u0aac\u0ac1\u0aa7 \u0a97\u0ac1\u0ab0\u0ac1 \u0ab6\u0ac1\u0a95\u0acd\u0ab0 \u0ab6\u0aa8\u0abf".split(" "),NARROWWEEKDAYS:"\u0ab0 \u0ab8\u0acb \u0aae\u0a82 \u0aac\u0ac1 \u0a97\u0ac1 \u0ab6\u0ac1 \u0ab6".split(" "),STANDALONENARROWWEEKDAYS:"\u0ab0 \u0ab8\u0acb \u0aae\u0a82 \u0aac\u0ac1 \u0a97\u0ac1 \u0ab6\u0ac1 \u0ab6".split(" "),
SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["\u0aaa\u0ab9\u0ac7\u0ab2\u0acb \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8","\u0aac\u0ac0\u0a9c\u0acb \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8","\u0aa4\u0acd\u0ab0\u0ac0\u0a9c\u0acb \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8","\u0a9a\u0acb\u0aa5\u0acb \u0aa4\u0acd\u0ab0\u0abf\u0aae\u0abe\u0ab8"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d MMMM, y","d MMMM, y","d MMM, y","d-MM-yy"],TIMEFORMATS:["hh:mm:ss a zzzz","hh:mm:ss a z","hh:mm:ss a","hh:mm a"],DATETIMEFORMATS:["{1} {0}",
"{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_haw={ERAS:["BCE","CE"],ERANAMES:["BCE","CE"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"Ianuali Pepeluali Malaki \u02bbApelila Mei Iune Iulai \u02bbAukake Kepakemapa \u02bbOkakopa Nowemapa Kekemapa".split(" "),STANDALONEMONTHS:"Ianuali Pepeluali Malaki \u02bbApelila Mei Iune Iulai \u02bbAukake Kepakemapa \u02bbOkakopa Nowemapa Kekemapa".split(" "),SHORTMONTHS:"Ian. Pep. Mal. \u02bbAp. Mei Iun. Iul. \u02bbAu. Kep. \u02bbOk. Now. Kek.".split(" "),
STANDALONESHORTMONTHS:"Ian. Pep. Mal. \u02bbAp. Mei Iun. Iul. \u02bbAu. Kep. \u02bbOk. Now. Kek.".split(" "),WEEKDAYS:"L\u0101pule Po\u02bbakahi Po\u02bbalua Po\u02bbakolu Po\u02bbah\u0101 Po\u02bbalima Po\u02bbaono".split(" "),STANDALONEWEEKDAYS:"L\u0101pule Po\u02bbakahi Po\u02bbalua Po\u02bbakolu Po\u02bbah\u0101 Po\u02bbalima Po\u02bbaono".split(" "),SHORTWEEKDAYS:"LP P1 P2 P3 P4 P5 P6".split(" "),STANDALONESHORTWEEKDAYS:"LP P1 P2 P3 P4 P5 P6".split(" "),NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),
SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["Q1","Q2","Q3","Q4"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","d MMM y","d/M/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_he={ERAS:["\u05dc\u05e4\u05e0\u05d4\u05f4\u05e1","\u05dc\u05e1\u05d4\u05f4\u05e0"],ERANAMES:["\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e1\u05e4\u05d9\u05e8\u05d4","\u05dc\u05e1\u05e4\u05d9\u05e8\u05d4"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"\u05d9\u05e0\u05d5\u05d0\u05e8 \u05e4\u05d1\u05e8\u05d5\u05d0\u05e8 \u05de\u05e8\u05e5 \u05d0\u05e4\u05e8\u05d9\u05dc \u05de\u05d0\u05d9 \u05d9\u05d5\u05e0\u05d9 \u05d9\u05d5\u05dc\u05d9 \u05d0\u05d5\u05d2\u05d5\u05e1\u05d8 \u05e1\u05e4\u05d8\u05de\u05d1\u05e8 \u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8 \u05e0\u05d5\u05d1\u05de\u05d1\u05e8 \u05d3\u05e6\u05de\u05d1\u05e8".split(" "),
STANDALONEMONTHS:"\u05d9\u05e0\u05d5\u05d0\u05e8 \u05e4\u05d1\u05e8\u05d5\u05d0\u05e8 \u05de\u05e8\u05e5 \u05d0\u05e4\u05e8\u05d9\u05dc \u05de\u05d0\u05d9 \u05d9\u05d5\u05e0\u05d9 \u05d9\u05d5\u05dc\u05d9 \u05d0\u05d5\u05d2\u05d5\u05e1\u05d8 \u05e1\u05e4\u05d8\u05de\u05d1\u05e8 \u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8 \u05e0\u05d5\u05d1\u05de\u05d1\u05e8 \u05d3\u05e6\u05de\u05d1\u05e8".split(" "),SHORTMONTHS:"\u05d9\u05e0\u05d5 \u05e4\u05d1\u05e8 \u05de\u05e8\u05e5 \u05d0\u05e4\u05e8 \u05de\u05d0\u05d9 \u05d9\u05d5\u05e0 \u05d9\u05d5\u05dc \u05d0\u05d5\u05d2 \u05e1\u05e4\u05d8 \u05d0\u05d5\u05e7 \u05e0\u05d5\u05d1 \u05d3\u05e6\u05de".split(" "),
STANDALONESHORTMONTHS:"\u05d9\u05e0\u05d5\u05f3 \u05e4\u05d1\u05e8\u05f3 \u05de\u05e8\u05e5 \u05d0\u05e4\u05e8\u05f3 \u05de\u05d0\u05d9 \u05d9\u05d5\u05e0\u05f3 \u05d9\u05d5\u05dc\u05f3 \u05d0\u05d5\u05d2\u05f3 \u05e1\u05e4\u05d8\u05f3 \u05d0\u05d5\u05e7\u05f3 \u05e0\u05d5\u05d1\u05f3 \u05d3\u05e6\u05de\u05f3".split(" "),WEEKDAYS:"\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df;\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9;\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9;\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea".split(";"),
STANDALONEWEEKDAYS:"\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df;\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9;\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9;\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea".split(";"),SHORTWEEKDAYS:"\u05d9\u05d5\u05dd \u05d0\u05f3;\u05d9\u05d5\u05dd \u05d1\u05f3;\u05d9\u05d5\u05dd \u05d2\u05f3;\u05d9\u05d5\u05dd \u05d3\u05f3;\u05d9\u05d5\u05dd \u05d4\u05f3;\u05d9\u05d5\u05dd \u05d5\u05f3;\u05e9\u05d1\u05ea".split(";"),
STANDALONESHORTWEEKDAYS:"\u05d9\u05d5\u05dd \u05d0\u05f3;\u05d9\u05d5\u05dd \u05d1\u05f3;\u05d9\u05d5\u05dd \u05d2\u05f3;\u05d9\u05d5\u05dd \u05d3\u05f3;\u05d9\u05d5\u05dd \u05d4\u05f3;\u05d9\u05d5\u05dd \u05d5\u05f3;\u05e9\u05d1\u05ea".split(";"),NARROWWEEKDAYS:"\u05d0\u05f3 \u05d1\u05f3 \u05d2\u05f3 \u05d3\u05f3 \u05d4\u05f3 \u05d5\u05f3 \u05e9\u05f3".split(" "),STANDALONENARROWWEEKDAYS:"\u05d0\u05f3 \u05d1\u05f3 \u05d2\u05f3 \u05d3\u05f3 \u05d4\u05f3 \u05d5\u05f3 \u05e9\u05f3".split(" "),SHORTQUARTERS:["\u05e8\u05d1\u05e2\u05d5\u05df 1",
"\u05e8\u05d1\u05e2\u05d5\u05df 2","\u05e8\u05d1\u05e2\u05d5\u05df 3","\u05e8\u05d1\u05e2\u05d5\u05df 4"],QUARTERS:["\u05e8\u05d1\u05e2\u05d5\u05df 1","\u05e8\u05d1\u05e2\u05d5\u05df 2","\u05e8\u05d1\u05e2\u05d5\u05df 3","\u05e8\u05d1\u05e2\u05d5\u05df 4"],AMPMS:["\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6","\u05d0\u05d7\u05d4\u05f4\u05e6"],DATEFORMATS:["EEEE, d \u05d1MMMM y","d \u05d1MMMM y","d \u05d1MMM y","dd/MM/yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} \u05d1\u05e9\u05e2\u05d4 {0}",
"{1} \u05d1\u05e9\u05e2\u05d4 {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[4,5],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_hi={ERAS:["\u0908\u0938\u093e-\u092a\u0942\u0930\u094d\u0935","\u0908\u0938\u094d\u0935\u0940"],ERANAMES:["\u0908\u0938\u093e-\u092a\u0942\u0930\u094d\u0935","\u0908\u0938\u094d\u0935\u0940"],NARROWMONTHS:"\u091c \u092b\u093c \u092e\u093e \u0905 \u092e \u091c\u0942 \u091c\u0941 \u0905 \u0938\u093f \u0905 \u0928 \u0926\u093f".split(" "),STANDALONENARROWMONTHS:"\u091c \u092b\u093c \u092e\u093e \u0905 \u092e \u091c\u0942 \u091c\u0941 \u0905 \u0938\u093f \u0905 \u0928 \u0926\u093f".split(" "),MONTHS:"\u091c\u0928\u0935\u0930\u0940 \u092b\u093c\u0930\u0935\u0930\u0940 \u092e\u093e\u0930\u094d\u091a \u0905\u092a\u094d\u0930\u0948\u0932 \u092e\u0908 \u091c\u0942\u0928 \u091c\u0941\u0932\u093e\u0908 \u0905\u0917\u0938\u094d\u0924 \u0938\u093f\u0924\u0902\u092c\u0930 \u0905\u0915\u094d\u091f\u0942\u092c\u0930 \u0928\u0935\u0902\u092c\u0930 \u0926\u093f\u0938\u0902\u092c\u0930".split(" "),
STANDALONEMONTHS:"\u091c\u0928\u0935\u0930\u0940 \u092b\u093c\u0930\u0935\u0930\u0940 \u092e\u093e\u0930\u094d\u091a \u0905\u092a\u094d\u0930\u0948\u0932 \u092e\u0908 \u091c\u0942\u0928 \u091c\u0941\u0932\u093e\u0908 \u0905\u0917\u0938\u094d\u0924 \u0938\u093f\u0924\u0902\u092c\u0930 \u0905\u0915\u094d\u091f\u0942\u092c\u0930 \u0928\u0935\u0902\u092c\u0930 \u0926\u093f\u0938\u0902\u092c\u0930".split(" "),SHORTMONTHS:"\u091c\u0928 \u092b\u093c\u0930 \u092e\u093e\u0930\u094d\u091a \u0905\u092a\u094d\u0930\u0948 \u092e\u0908 \u091c\u0942\u0928 \u091c\u0941\u0932\u093e \u0905\u0917 \u0938\u093f\u0924\u0902 \u0905\u0915\u094d\u091f\u0942 \u0928\u0935\u0902 \u0926\u093f\u0938\u0902".split(" "),
STANDALONESHORTMONTHS:"\u091c\u0928 \u092b\u093c\u0930 \u092e\u093e\u0930\u094d\u091a \u0905\u092a\u094d\u0930\u0948 \u092e\u0908 \u091c\u0942\u0928 \u091c\u0941\u0932\u093e \u0905\u0917 \u0938\u093f\u0924\u0902 \u0905\u0915\u094d\u091f\u0942 \u0928\u0935\u0902 \u0926\u093f\u0938\u0902".split(" "),WEEKDAYS:"\u0930\u0935\u093f\u0935\u093e\u0930 \u0938\u094b\u092e\u0935\u093e\u0930 \u092e\u0902\u0917\u0932\u0935\u093e\u0930 \u092c\u0941\u0927\u0935\u093e\u0930 \u0917\u0941\u0930\u0941\u0935\u093e\u0930 \u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930 \u0936\u0928\u093f\u0935\u093e\u0930".split(" "),
STANDALONEWEEKDAYS:"\u0930\u0935\u093f\u0935\u093e\u0930 \u0938\u094b\u092e\u0935\u093e\u0930 \u092e\u0902\u0917\u0932\u0935\u093e\u0930 \u092c\u0941\u0927\u0935\u093e\u0930 \u0917\u0941\u0930\u0941\u0935\u093e\u0930 \u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930 \u0936\u0928\u093f\u0935\u093e\u0930".split(" "),SHORTWEEKDAYS:"\u0930\u0935\u093f \u0938\u094b\u092e \u092e\u0902\u0917\u0932 \u092c\u0941\u0927 \u0917\u0941\u0930\u0941 \u0936\u0941\u0915\u094d\u0930 \u0936\u0928\u093f".split(" "),STANDALONESHORTWEEKDAYS:"\u0930\u0935\u093f \u0938\u094b\u092e \u092e\u0902\u0917\u0932 \u092c\u0941\u0927 \u0917\u0941\u0930\u0941 \u0936\u0941\u0915\u094d\u0930 \u0936\u0928\u093f".split(" "),
NARROWWEEKDAYS:"\u0930 \u0938\u094b \u092e\u0902 \u092c\u0941 \u0917\u0941 \u0936\u0941 \u0936".split(" "),STANDALONENARROWWEEKDAYS:"\u0930 \u0938\u094b \u092e\u0902 \u092c\u0941 \u0917\u0941 \u0936\u0941 \u0936".split(" "),SHORTQUARTERS:["\u0924\u093f1","\u0924\u093f2","\u0924\u093f3","\u0924\u093f4"],QUARTERS:["\u092a\u0939\u0932\u0940 \u0924\u093f\u092e\u093e\u0939\u0940","\u0926\u0942\u0938\u0930\u0940 \u0924\u093f\u092e\u093e\u0939\u0940","\u0924\u0940\u0938\u0930\u0940 \u0924\u093f\u092e\u093e\u0939\u0940",
"\u091a\u094c\u0925\u0940 \u0924\u093f\u092e\u093e\u0939\u0940"],AMPMS:["am","pm"],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","dd-MM-y","d-M-yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} \u0915\u094b {0}","{1} \u0915\u094b {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_hr={ERAS:["pr. Kr.","p. Kr."],ERANAMES:["Prije Krista","Poslije Krista"],NARROWMONTHS:"1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.".split(" "),STANDALONENARROWMONTHS:"1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.".split(" "),MONTHS:"sije\u010dnja velja\u010de o\u017eujka travnja svibnja lipnja srpnja kolovoza rujna listopada studenoga prosinca".split(" "),STANDALONEMONTHS:"sije\u010danj velja\u010da o\u017eujak travanj svibanj lipanj srpanj kolovoz rujan listopad studeni prosinac".split(" "),
SHORTMONTHS:"sij velj o\u017eu tra svi lip srp kol ruj lis stu pro".split(" "),STANDALONESHORTMONTHS:"sij velj o\u017eu tra svi lip srp kol ruj lis stu pro".split(" "),WEEKDAYS:"nedjelja ponedjeljak utorak srijeda \u010detvrtak petak subota".split(" "),STANDALONEWEEKDAYS:"nedjelja ponedjeljak utorak srijeda \u010detvrtak petak subota".split(" "),SHORTWEEKDAYS:"ned pon uto sri \u010det pet sub".split(" "),STANDALONESHORTWEEKDAYS:"ned pon uto sri \u010det pet sub".split(" "),NARROWWEEKDAYS:"NPUS\u010cPS".split(""),
STANDALONENARROWWEEKDAYS:"npus\u010dps".split(""),SHORTQUARTERS:["1kv","2kv","3kv","4kv"],QUARTERS:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d. MMMM y.","d. MMMM y.","d. MMM y.","d.M.yy."],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} 'u' {0}","{1} 'u' {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_hu={ERAS:["i. e.","i. sz."],ERANAMES:["id\u0151sz\u00e1m\u00edt\u00e1sunk el\u0151tt","id\u0151sz\u00e1m\u00edt\u00e1sunk szerint"],NARROWMONTHS:"J F M \u00c1 M J J A Sz O N D".split(" "),STANDALONENARROWMONTHS:"J F M \u00c1 M J J A Sz O N D".split(" "),MONTHS:"janu\u00e1r febru\u00e1r m\u00e1rcius \u00e1prilis m\u00e1jus j\u00fanius j\u00falius augusztus szeptember okt\u00f3ber november december".split(" "),STANDALONEMONTHS:"janu\u00e1r febru\u00e1r m\u00e1rcius \u00e1prilis m\u00e1jus j\u00fanius j\u00falius augusztus szeptember okt\u00f3ber november december".split(" "),
SHORTMONTHS:"jan. febr. m\u00e1rc. \u00e1pr. m\u00e1j. j\u00fan. j\u00fal. aug. szept. okt. nov. dec.".split(" "),STANDALONESHORTMONTHS:"jan. febr. m\u00e1rc. \u00e1pr. m\u00e1j. j\u00fan. j\u00fal. aug. szept. okt. nov. dec.".split(" "),WEEKDAYS:"vas\u00e1rnap h\u00e9tf\u0151 kedd szerda cs\u00fct\u00f6rt\u00f6k p\u00e9ntek szombat".split(" "),STANDALONEWEEKDAYS:"vas\u00e1rnap h\u00e9tf\u0151 kedd szerda cs\u00fct\u00f6rt\u00f6k p\u00e9ntek szombat".split(" "),SHORTWEEKDAYS:"V H K Sze Cs P Szo".split(" "),
STANDALONESHORTWEEKDAYS:"V H K Sze Cs P Szo".split(" "),NARROWWEEKDAYS:"V H K Sz Cs P Sz".split(" "),STANDALONENARROWWEEKDAYS:"V H K Sz Cs P Sz".split(" "),SHORTQUARTERS:["N1","N2","N3","N4"],QUARTERS:["I. negyed\u00e9v","II. negyed\u00e9v","III. negyed\u00e9v","IV. negyed\u00e9v"],AMPMS:["de.","du."],DATEFORMATS:["y. MMMM d., EEEE","y. MMMM d.","y MMM d","y. MM. dd."],TIMEFORMATS:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,
WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_id={ERAS:["SM","M"],ERANAMES:["SM","M"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"Januari Februari Maret April Mei Juni Juli Agustus September Oktober November Desember".split(" "),STANDALONEMONTHS:"Januari Februari Maret April Mei Juni Juli Agustus September Oktober November Desember".split(" "),SHORTMONTHS:"Jan Feb Mar Apr Mei Jun Jul Agt Sep Okt Nov Des".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr Mei Jun Jul Agt Sep Okt Nov Des".split(" "),WEEKDAYS:"Minggu Senin Selasa Rabu Kamis Jumat Sabtu".split(" "),
STANDALONEWEEKDAYS:"Minggu Senin Selasa Rabu Kamis Jumat Sabtu".split(" "),SHORTWEEKDAYS:"Min Sen Sel Rab Kam Jum Sab".split(" "),STANDALONESHORTWEEKDAYS:"Min Sen Sel Rab Kam Jum Sab".split(" "),NARROWWEEKDAYS:"MSSRKJS".split(""),STANDALONENARROWWEEKDAYS:"MSSRKJS".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, dd MMMM y","d MMMM y","d MMM y","dd/MM/yy"],TIMEFORMATS:["HH.mm.ss zzzz","HH.mm.ss z",
"HH.mm.ss","HH.mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_in={ERAS:["SM","M"],ERANAMES:["SM","M"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"Januari Februari Maret April Mei Juni Juli Agustus September Oktober November Desember".split(" "),STANDALONEMONTHS:"Januari Februari Maret April Mei Juni Juli Agustus September Oktober November Desember".split(" "),SHORTMONTHS:"Jan Feb Mar Apr Mei Jun Jul Agt Sep Okt Nov Des".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr Mei Jun Jul Agt Sep Okt Nov Des".split(" "),
WEEKDAYS:"Minggu Senin Selasa Rabu Kamis Jumat Sabtu".split(" "),STANDALONEWEEKDAYS:"Minggu Senin Selasa Rabu Kamis Jumat Sabtu".split(" "),SHORTWEEKDAYS:"Min Sen Sel Rab Kam Jum Sab".split(" "),STANDALONESHORTWEEKDAYS:"Min Sen Sel Rab Kam Jum Sab".split(" "),NARROWWEEKDAYS:"MSSRKJS".split(""),STANDALONENARROWWEEKDAYS:"MSSRKJS".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, dd MMMM y","d MMMM y",
"d MMM y","dd/MM/yy"],TIMEFORMATS:["HH.mm.ss zzzz","HH.mm.ss z","HH.mm.ss","HH.mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_is={ERAS:["f.Kr.","e.Kr."],ERANAMES:["fyrir Krist","eftir Krist"],NARROWMONTHS:"JFMAMJJ\u00c1SOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJ\u00c1SOND".split(""),MONTHS:"jan\u00faar febr\u00faar mars apr\u00edl ma\u00ed j\u00fan\u00ed j\u00fal\u00ed \u00e1g\u00fast september okt\u00f3ber n\u00f3vember desember".split(" "),STANDALONEMONTHS:"jan\u00faar febr\u00faar mars apr\u00edl ma\u00ed j\u00fan\u00ed j\u00fal\u00ed \u00e1g\u00fast september okt\u00f3ber n\u00f3vember desember".split(" "),
SHORTMONTHS:"jan. feb. mar. apr. ma\u00ed j\u00fan. j\u00fal. \u00e1g\u00fa. sep. okt. n\u00f3v. des.".split(" "),STANDALONESHORTMONTHS:"jan. feb. mar. apr. ma\u00ed j\u00fan. j\u00fal. \u00e1g\u00fa. sep. okt. n\u00f3v. des.".split(" "),WEEKDAYS:"sunnudagur m\u00e1nudagur \u00feri\u00f0judagur mi\u00f0vikudagur fimmtudagur f\u00f6studagur laugardagur".split(" "),STANDALONEWEEKDAYS:"sunnudagur m\u00e1nudagur \u00feri\u00f0judagur mi\u00f0vikudagur fimmtudagur f\u00f6studagur laugardagur".split(" "),
SHORTWEEKDAYS:"sun. m\u00e1n. \u00feri. mi\u00f0. fim. f\u00f6s. lau.".split(" "),STANDALONESHORTWEEKDAYS:"sun. m\u00e1n. \u00feri. mi\u00f0. fim. f\u00f6s. lau.".split(" "),NARROWWEEKDAYS:"SM\u00deMFFL".split(""),STANDALONENARROWWEEKDAYS:"SM\u00deMFFL".split(""),SHORTQUARTERS:["F1","F2","F3","F4"],QUARTERS:["1. fj\u00f3r\u00f0ungur","2. fj\u00f3r\u00f0ungur","3. fj\u00f3r\u00f0ungur","4. fj\u00f3r\u00f0ungur"],AMPMS:["f.h.","e.h."],DATEFORMATS:["EEEE, d. MMMM y","d. MMMM y","d. MMM y","d.M.y"],TIMEFORMATS:["HH:mm:ss zzzz",
"HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} 'kl.' {0}","{1} 'kl.' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_it={ERAS:["aC","dC"],ERANAMES:["a.C.","d.C."],NARROWMONTHS:"GFMAMGLASOND".split(""),STANDALONENARROWMONTHS:"GFMAMGLASOND".split(""),MONTHS:"gennaio febbraio marzo aprile maggio giugno luglio agosto settembre ottobre novembre dicembre".split(" "),STANDALONEMONTHS:"Gennaio Febbraio Marzo Aprile Maggio Giugno Luglio Agosto Settembre Ottobre Novembre Dicembre".split(" "),SHORTMONTHS:"gen feb mar apr mag giu lug ago set ott nov dic".split(" "),STANDALONESHORTMONTHS:"gen feb mar apr mag giu lug ago set ott nov dic".split(" "),
WEEKDAYS:"domenica luned\u00ec marted\u00ec mercoled\u00ec gioved\u00ec venerd\u00ec sabato".split(" "),STANDALONEWEEKDAYS:"Domenica Luned\u00ec Marted\u00ec Mercoled\u00ec Gioved\u00ec Venerd\u00ec Sabato".split(" "),SHORTWEEKDAYS:"dom lun mar mer gio ven sab".split(" "),STANDALONESHORTWEEKDAYS:"dom lun mar mer gio ven sab".split(" "),NARROWWEEKDAYS:"DLMMGVS".split(""),STANDALONENARROWWEEKDAYS:"DLMMGVS".split(""),SHORTQUARTERS:["T1","T2","T3","T4"],QUARTERS:["1\u00ba trimestre","2\u00ba trimestre",
"3\u00ba trimestre","4\u00ba trimestre"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE d MMMM y","dd MMMM y","dd/MMM/y","dd/MM/yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_iw={ERAS:["\u05dc\u05e4\u05e0\u05d4\u05f4\u05e1","\u05dc\u05e1\u05d4\u05f4\u05e0"],ERANAMES:["\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e1\u05e4\u05d9\u05e8\u05d4","\u05dc\u05e1\u05e4\u05d9\u05e8\u05d4"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"\u05d9\u05e0\u05d5\u05d0\u05e8 \u05e4\u05d1\u05e8\u05d5\u05d0\u05e8 \u05de\u05e8\u05e5 \u05d0\u05e4\u05e8\u05d9\u05dc \u05de\u05d0\u05d9 \u05d9\u05d5\u05e0\u05d9 \u05d9\u05d5\u05dc\u05d9 \u05d0\u05d5\u05d2\u05d5\u05e1\u05d8 \u05e1\u05e4\u05d8\u05de\u05d1\u05e8 \u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8 \u05e0\u05d5\u05d1\u05de\u05d1\u05e8 \u05d3\u05e6\u05de\u05d1\u05e8".split(" "),
STANDALONEMONTHS:"\u05d9\u05e0\u05d5\u05d0\u05e8 \u05e4\u05d1\u05e8\u05d5\u05d0\u05e8 \u05de\u05e8\u05e5 \u05d0\u05e4\u05e8\u05d9\u05dc \u05de\u05d0\u05d9 \u05d9\u05d5\u05e0\u05d9 \u05d9\u05d5\u05dc\u05d9 \u05d0\u05d5\u05d2\u05d5\u05e1\u05d8 \u05e1\u05e4\u05d8\u05de\u05d1\u05e8 \u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8 \u05e0\u05d5\u05d1\u05de\u05d1\u05e8 \u05d3\u05e6\u05de\u05d1\u05e8".split(" "),SHORTMONTHS:"\u05d9\u05e0\u05d5 \u05e4\u05d1\u05e8 \u05de\u05e8\u05e5 \u05d0\u05e4\u05e8 \u05de\u05d0\u05d9 \u05d9\u05d5\u05e0 \u05d9\u05d5\u05dc \u05d0\u05d5\u05d2 \u05e1\u05e4\u05d8 \u05d0\u05d5\u05e7 \u05e0\u05d5\u05d1 \u05d3\u05e6\u05de".split(" "),
STANDALONESHORTMONTHS:"\u05d9\u05e0\u05d5\u05f3 \u05e4\u05d1\u05e8\u05f3 \u05de\u05e8\u05e5 \u05d0\u05e4\u05e8\u05f3 \u05de\u05d0\u05d9 \u05d9\u05d5\u05e0\u05f3 \u05d9\u05d5\u05dc\u05f3 \u05d0\u05d5\u05d2\u05f3 \u05e1\u05e4\u05d8\u05f3 \u05d0\u05d5\u05e7\u05f3 \u05e0\u05d5\u05d1\u05f3 \u05d3\u05e6\u05de\u05f3".split(" "),WEEKDAYS:"\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df;\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9;\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9;\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea".split(";"),
STANDALONEWEEKDAYS:"\u05d9\u05d5\u05dd \u05e8\u05d0\u05e9\u05d5\u05df;\u05d9\u05d5\u05dd \u05e9\u05e0\u05d9;\u05d9\u05d5\u05dd \u05e9\u05dc\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e8\u05d1\u05d9\u05e2\u05d9;\u05d9\u05d5\u05dd \u05d7\u05de\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e9\u05d9\u05e9\u05d9;\u05d9\u05d5\u05dd \u05e9\u05d1\u05ea".split(";"),SHORTWEEKDAYS:"\u05d9\u05d5\u05dd \u05d0\u05f3;\u05d9\u05d5\u05dd \u05d1\u05f3;\u05d9\u05d5\u05dd \u05d2\u05f3;\u05d9\u05d5\u05dd \u05d3\u05f3;\u05d9\u05d5\u05dd \u05d4\u05f3;\u05d9\u05d5\u05dd \u05d5\u05f3;\u05e9\u05d1\u05ea".split(";"),
STANDALONESHORTWEEKDAYS:"\u05d9\u05d5\u05dd \u05d0\u05f3;\u05d9\u05d5\u05dd \u05d1\u05f3;\u05d9\u05d5\u05dd \u05d2\u05f3;\u05d9\u05d5\u05dd \u05d3\u05f3;\u05d9\u05d5\u05dd \u05d4\u05f3;\u05d9\u05d5\u05dd \u05d5\u05f3;\u05e9\u05d1\u05ea".split(";"),NARROWWEEKDAYS:"\u05d0\u05f3 \u05d1\u05f3 \u05d2\u05f3 \u05d3\u05f3 \u05d4\u05f3 \u05d5\u05f3 \u05e9\u05f3".split(" "),STANDALONENARROWWEEKDAYS:"\u05d0\u05f3 \u05d1\u05f3 \u05d2\u05f3 \u05d3\u05f3 \u05d4\u05f3 \u05d5\u05f3 \u05e9\u05f3".split(" "),SHORTQUARTERS:["\u05e8\u05d1\u05e2\u05d5\u05df 1",
"\u05e8\u05d1\u05e2\u05d5\u05df 2","\u05e8\u05d1\u05e2\u05d5\u05df 3","\u05e8\u05d1\u05e2\u05d5\u05df 4"],QUARTERS:["\u05e8\u05d1\u05e2\u05d5\u05df 1","\u05e8\u05d1\u05e2\u05d5\u05df 2","\u05e8\u05d1\u05e2\u05d5\u05df 3","\u05e8\u05d1\u05e2\u05d5\u05df 4"],AMPMS:["\u05dc\u05e4\u05e0\u05d4\u05f4\u05e6","\u05d0\u05d7\u05d4\u05f4\u05e6"],DATEFORMATS:["EEEE, d \u05d1MMMM y","d \u05d1MMMM y","d \u05d1MMM y","dd/MM/yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} \u05d1\u05e9\u05e2\u05d4 {0}",
"{1} \u05d1\u05e9\u05e2\u05d4 {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[4,5],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_ja={ERAS:["\u7d00\u5143\u524d","\u897f\u66a6"],ERANAMES:["\u7d00\u5143\u524d","\u897f\u66a6"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),STANDALONEMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),SHORTMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),
STANDALONESHORTMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),WEEKDAYS:"\u65e5\u66dc\u65e5 \u6708\u66dc\u65e5 \u706b\u66dc\u65e5 \u6c34\u66dc\u65e5 \u6728\u66dc\u65e5 \u91d1\u66dc\u65e5 \u571f\u66dc\u65e5".split(" "),STANDALONEWEEKDAYS:"\u65e5\u66dc\u65e5 \u6708\u66dc\u65e5 \u706b\u66dc\u65e5 \u6c34\u66dc\u65e5 \u6728\u66dc\u65e5 \u91d1\u66dc\u65e5 \u571f\u66dc\u65e5".split(" "),SHORTWEEKDAYS:"\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),
STANDALONESHORTWEEKDAYS:"\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),NARROWWEEKDAYS:"\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),STANDALONENARROWWEEKDAYS:"\u65e5\u6708\u706b\u6c34\u6728\u91d1\u571f".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["\u7b2c1\u56db\u534a\u671f","\u7b2c2\u56db\u534a\u671f","\u7b2c3\u56db\u534a\u671f","\u7b2c4\u56db\u534a\u671f"],AMPMS:["\u5348\u524d","\u5348\u5f8c"],DATEFORMATS:["y\u5e74M\u6708d\u65e5EEEE","y\u5e74M\u6708d\u65e5","y/MM/dd",
"y/MM/dd"],TIMEFORMATS:["H\u6642mm\u5206ss\u79d2 zzzz","H:mm:ss z","H:mm:ss","H:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_kn={ERAS:["\u0c95\u0ccd\u0cb0\u0cbf.\u0caa\u0cc2","\u0c9c\u0cbe\u0cb9\u0cc0"],ERANAMES:["\u0c88\u0cb8\u0caa\u0cc2\u0cb5\u0cef.","\u0c95\u0ccd\u0cb0\u0cbf\u0cb8\u0ccd\u0ca4 \u0cb6\u0c95"],NARROWMONTHS:"\u0c9c \u0cab\u0cc6 \u0cae\u0cbe \u0c8f \u0cae\u0cc7 \u0c9c\u0cc2 \u0c9c\u0cc1 \u0c86 \u0cb8\u0cc6 \u0c85 \u0ca8 \u0ca1\u0cbf".split(" "),STANDALONENARROWMONTHS:"\u0c9c \u0cab\u0cc6 \u0cae\u0cbe \u0c8f \u0cae\u0cc7 \u0c9c\u0cc2 \u0c9c\u0cc1 \u0c86 \u0cb8\u0cc6 \u0c85 \u0ca8 \u0ca1\u0cbf".split(" "),
MONTHS:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf \u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf \u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd \u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd \u0cae\u0cc7 \u0c9c\u0cc2\u0ca8\u0ccd \u0c9c\u0cc1\u0cb2\u0cc8 \u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd \u0cb8\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd \u0c85\u0c95\u0ccd\u0c9f\u0ccb\u0cac\u0cb0\u0ccd \u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd \u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split(" "),STANDALONEMONTHS:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf \u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf \u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd \u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd \u0cae\u0cc7 \u0c9c\u0cc2\u0ca8\u0ccd \u0c9c\u0cc1\u0cb2\u0cc8 \u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd \u0cb8\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd \u0c85\u0c95\u0ccd\u0c9f\u0ccb\u0cac\u0cb0\u0ccd \u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd \u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split(" "),
SHORTMONTHS:"\u0c9c\u0ca8. \u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cc1. \u0cae\u0cbe \u0c8f\u0caa\u0ccd\u0cb0\u0cbf. \u0cae\u0cc7 \u0c9c\u0cc2 \u0c9c\u0cc1. \u0c86\u0c97. \u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82. \u0c85\u0c95\u0ccd\u0c9f\u0ccb. \u0ca8\u0cb5\u0cc6\u0c82. \u0ca1\u0cbf\u0cb8\u0cc6\u0c82.".split(" "),STANDALONESHORTMONTHS:"\u0c9c\u0ca8. \u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cc1. \u0cae\u0cbe \u0c8f\u0caa\u0ccd\u0cb0\u0cbf. \u0cae\u0cc7 \u0c9c\u0cc2 \u0c9c\u0cc1. \u0c86\u0c97. \u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82. \u0c85\u0c95\u0ccd\u0c9f\u0ccb. \u0ca8\u0cb5\u0cc6\u0c82. \u0ca1\u0cbf\u0cb8\u0cc6\u0c82.".split(" "),
WEEKDAYS:"\u0cb0\u0cb5\u0cbf\u0cb5\u0cbe\u0cb0 \u0cb8\u0ccb\u0cae\u0cb5\u0cbe\u0cb0 \u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0 \u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0 \u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0 \u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0 \u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split(" "),STANDALONEWEEKDAYS:"\u0cb0\u0cb5\u0cbf\u0cb5\u0cbe\u0cb0 \u0cb8\u0ccb\u0cae\u0cb5\u0cbe\u0cb0 \u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0 \u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0 \u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0 \u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0 \u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split(" "),
SHORTWEEKDAYS:"\u0cb0. \u0cb8\u0ccb. \u0cae\u0c82. \u0cac\u0cc1. \u0c97\u0cc1. \u0cb6\u0cc1. \u0cb6\u0ca8\u0cbf.".split(" "),STANDALONESHORTWEEKDAYS:"\u0cb0\u0cb5\u0cbf \u0cb8\u0ccb\u0cae \u0cae\u0c82\u0c97\u0cb3 \u0cac\u0cc1\u0ca7 \u0c97\u0cc1\u0cb0\u0cc1 \u0cb6\u0cc1\u0c95\u0ccd\u0cb0 \u0cb6\u0ca8\u0cbf".split(" "),NARROWWEEKDAYS:"\u0cb0 \u0cb8\u0ccb \u0cae\u0c82 \u0cac\u0cc1 \u0c97\u0cc1 \u0cb6\u0cc1 \u0cb6".split(" "),STANDALONENARROWWEEKDAYS:"\u0cb0 \u0cb8\u0ccb \u0cae\u0c82 \u0cac\u0cc1 \u0c97\u0cc1 \u0cb6\u0cc1 \u0cb6".split(" "),
SHORTQUARTERS:["\u0ca4\u0ccd\u0cb0\u0cc8 1","\u0ca4\u0ccd\u0cb0\u0cc8 2","\u0ca4\u0ccd\u0cb0\u0cc8 3","\u0ca4\u0ccd\u0cb0\u0cc8 4"],QUARTERS:["1 \u0ca8\u0cc7 \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95","2\u0ca8\u0cc7 \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95","3 \u0ca8\u0cc7 \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95","4 \u0ca8\u0cc7 \u0ca4\u0ccd\u0cb0\u0cc8\u0cae\u0cbe\u0cb8\u0cbf\u0c95"],AMPMS:["AM","PM"],DATEFORMATS:["d MMMM y, EEEE","d MMMM y","d MMM y","d-M-yy"],
TIMEFORMATS:["hh:mm:ss a zzzz","hh:mm:ss a z","hh:mm:ss a","hh:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_ko={ERAS:["\uae30\uc6d0\uc804","\uc11c\uae30"],ERANAMES:["\uc11c\ub825\uae30\uc6d0\uc804","\uc11c\ub825\uae30\uc6d0"],NARROWMONTHS:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),STANDALONENARROWMONTHS:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),MONTHS:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),
STANDALONEMONTHS:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),SHORTMONTHS:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),STANDALONESHORTMONTHS:"1\uc6d4 2\uc6d4 3\uc6d4 4\uc6d4 5\uc6d4 6\uc6d4 7\uc6d4 8\uc6d4 9\uc6d4 10\uc6d4 11\uc6d4 12\uc6d4".split(" "),WEEKDAYS:"\uc77c\uc694\uc77c \uc6d4\uc694\uc77c \ud654\uc694\uc77c \uc218\uc694\uc77c \ubaa9\uc694\uc77c \uae08\uc694\uc77c \ud1a0\uc694\uc77c".split(" "),
STANDALONEWEEKDAYS:"\uc77c\uc694\uc77c \uc6d4\uc694\uc77c \ud654\uc694\uc77c \uc218\uc694\uc77c \ubaa9\uc694\uc77c \uae08\uc694\uc77c \ud1a0\uc694\uc77c".split(" "),SHORTWEEKDAYS:"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),STANDALONESHORTWEEKDAYS:"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),NARROWWEEKDAYS:"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),STANDALONENARROWWEEKDAYS:"\uc77c\uc6d4\ud654\uc218\ubaa9\uae08\ud1a0".split(""),SHORTQUARTERS:["1\ubd84\uae30","2\ubd84\uae30",
"3\ubd84\uae30","4\ubd84\uae30"],QUARTERS:["\uc81c 1/4\ubd84\uae30","\uc81c 2/4\ubd84\uae30","\uc81c 3/4\ubd84\uae30","\uc81c 4/4\ubd84\uae30"],AMPMS:["\uc624\uc804","\uc624\ud6c4"],DATEFORMATS:["y\ub144 M\uc6d4 d\uc77c EEEE","y\ub144 M\uc6d4 d\uc77c","y. M. d.","yy. M. d."],TIMEFORMATS:["a h\uc2dc m\ubd84 s\ucd08 zzzz","a h\uc2dc m\ubd84 s\ucd08 z","a h:mm:ss","a h:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_ln={ERAS:["lib\u00f3so ya","nsima ya Y"],ERANAMES:["Yambo ya Y\u00e9zu Kr\u00eds","Nsima ya Y\u00e9zu Kr\u00eds"],NARROWMONTHS:"yfmamyyas\u0254nd".split(""),STANDALONENARROWMONTHS:"yfmamyyas\u0254nd".split(""),MONTHS:"s\u00e1nz\u00e1 ya yambo;s\u00e1nz\u00e1 ya m\u00edbal\u00e9;s\u00e1nz\u00e1 ya m\u00eds\u00e1to;s\u00e1nz\u00e1 ya m\u00ednei;s\u00e1nz\u00e1 ya m\u00edt\u00e1no;s\u00e1nz\u00e1 ya mot\u00f3b\u00e1;s\u00e1nz\u00e1 ya nsambo;s\u00e1nz\u00e1 ya mwambe;s\u00e1nz\u00e1 ya libwa;s\u00e1nz\u00e1 ya z\u00f3mi;s\u00e1nz\u00e1 ya z\u00f3mi na m\u0254\u030ck\u0254\u0301;s\u00e1nz\u00e1 ya z\u00f3mi na m\u00edbal\u00e9".split(";"),
STANDALONEMONTHS:"s\u00e1nz\u00e1 ya yambo;s\u00e1nz\u00e1 ya m\u00edbal\u00e9;s\u00e1nz\u00e1 ya m\u00eds\u00e1to;s\u00e1nz\u00e1 ya m\u00ednei;s\u00e1nz\u00e1 ya m\u00edt\u00e1no;s\u00e1nz\u00e1 ya mot\u00f3b\u00e1;s\u00e1nz\u00e1 ya nsambo;s\u00e1nz\u00e1 ya mwambe;s\u00e1nz\u00e1 ya libwa;s\u00e1nz\u00e1 ya z\u00f3mi;s\u00e1nz\u00e1 ya z\u00f3mi na m\u0254\u030ck\u0254\u0301;s\u00e1nz\u00e1 ya z\u00f3mi na m\u00edbal\u00e9".split(";"),SHORTMONTHS:"yan fbl msi apl mai yun yul agt stb \u0254tb nvb dsb".split(" "),
STANDALONESHORTMONTHS:"yan fbl msi apl mai yun yul agt stb \u0254tb nvb dsb".split(" "),WEEKDAYS:"eyenga;mok\u0254l\u0254 mwa yambo;mok\u0254l\u0254 mwa m\u00edbal\u00e9;mok\u0254l\u0254 mwa m\u00eds\u00e1to;mok\u0254l\u0254 ya m\u00edn\u00e9i;mok\u0254l\u0254 ya m\u00edt\u00e1no;mp\u0254\u0301s\u0254".split(";"),STANDALONEWEEKDAYS:"eyenga;mok\u0254l\u0254 mwa yambo;mok\u0254l\u0254 mwa m\u00edbal\u00e9;mok\u0254l\u0254 mwa m\u00eds\u00e1to;mok\u0254l\u0254 ya m\u00edn\u00e9i;mok\u0254l\u0254 ya m\u00edt\u00e1no;mp\u0254\u0301s\u0254".split(";"),
SHORTWEEKDAYS:"eye ybo mbl mst min mtn mps".split(" "),STANDALONESHORTWEEKDAYS:"eye ybo mbl mst min mtn mps".split(" "),NARROWWEEKDAYS:"eymmmmp".split(""),STANDALONENARROWWEEKDAYS:"eymmmmp".split(""),SHORTQUARTERS:["SM1","SM2","SM3","SM4"],QUARTERS:["s\u00e1nz\u00e1 m\u00eds\u00e1to ya yambo","s\u00e1nz\u00e1 m\u00eds\u00e1to ya m\u00edbal\u00e9","s\u00e1nz\u00e1 m\u00eds\u00e1to ya m\u00eds\u00e1to","s\u00e1nz\u00e1 m\u00eds\u00e1to ya m\u00ednei"],AMPMS:["nt\u0254\u0301ng\u0254\u0301","mp\u00f3kwa"],
DATEFORMATS:["EEEE d MMMM y","d MMMM y","d MMM y","d/M/y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_lt={ERAS:["pr. Kr.","po Kr."],ERANAMES:["prie\u0161 Krist\u0173","po Kristaus"],NARROWMONTHS:"SVKBGBLRRSLG".split(""),STANDALONENARROWMONTHS:"SVKBGBLRRSLG".split(""),MONTHS:"sausis vasaris kovas balandis gegu\u017e\u0117 bir\u017eelis liepa rugpj\u016btis rugs\u0117jis spalis lapkritis gruodis".split(" "),STANDALONEMONTHS:"sausis vasaris kovas balandis gegu\u017e\u0117 bir\u017eelis liepa rugpj\u016btis rugs\u0117jis spalis lapkritis gruodis".split(" "),SHORTMONTHS:"saus. vas. kov. bal. geg. bir\u017e. liep. rugp. rugs. spal. lapkr. gruod.".split(" "),
STANDALONESHORTMONTHS:"saus. vas. kov. bal. geg. bir\u017e. liep. rugp. rugs. spal. lapkr. gruod.".split(" "),WEEKDAYS:"sekmadienis pirmadienis antradienis tre\u010diadienis ketvirtadienis penktadienis \u0161e\u0161tadienis".split(" "),STANDALONEWEEKDAYS:"sekmadienis pirmadienis antradienis tre\u010diadienis ketvirtadienis penktadienis \u0161e\u0161tadienis".split(" "),SHORTWEEKDAYS:"sk pr an tr kt pn \u0161t".split(" "),STANDALONESHORTWEEKDAYS:"sk pr an tr kt pn \u0161t".split(" "),NARROWWEEKDAYS:"SPATKP\u0160".split(""),
STANDALONENARROWWEEKDAYS:"SPATKP\u0160".split(""),SHORTQUARTERS:["I k.","II k.","III k.","IV k."],QUARTERS:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"],AMPMS:["prie\u0161piet","popiet"],DATEFORMATS:["y 'm'. MMMM d 'd'., EEEE","y 'm'. MMMM d 'd'.","y MMM d","y-MM-dd"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_lv={ERAS:["p.m.\u0113.","m.\u0113."],ERANAMES:["pirms m\u016bsu \u0113ras","m\u016bsu \u0113r\u0101"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"janv\u0101ris febru\u0101ris marts apr\u012blis maijs j\u016bnijs j\u016blijs augusts septembris oktobris novembris decembris".split(" "),STANDALONEMONTHS:"Janv\u0101ris Febru\u0101ris Marts Apr\u012blis Maijs J\u016bnijs J\u016blijs Augusts Septembris Oktobris Novembris Decembris".split(" "),
SHORTMONTHS:"janv. febr. marts apr. maijs j\u016bn. j\u016bl. aug. sept. okt. nov. dec.".split(" "),STANDALONESHORTMONTHS:"Janv. Febr. Marts Apr. Maijs J\u016bn. J\u016bl. Aug. Sept. Okt. Nov. Dec.".split(" "),WEEKDAYS:"sv\u0113tdiena pirmdiena otrdiena tre\u0161diena ceturtdiena piektdiena sestdiena".split(" "),STANDALONEWEEKDAYS:"Sv\u0113tdiena Pirmdiena Otrdiena Tre\u0161diena Ceturtdiena Piektdiena Sestdiena".split(" "),SHORTWEEKDAYS:"Sv Pr Ot Tr Ce Pk Se".split(" "),STANDALONESHORTWEEKDAYS:"Sv Pr Ot Tr Ce Pk Se".split(" "),
NARROWWEEKDAYS:"SPOTCPS".split(""),STANDALONENARROWWEEKDAYS:"SPOTCPS".split(""),SHORTQUARTERS:["C1","C2","C3","C4"],QUARTERS:["1. ceturksnis","2. ceturksnis","3. ceturksnis","4. ceturksnis"],AMPMS:["priek\u0161pusdien\u0101","p\u0113cpusdien\u0101"],DATEFORMATS:["EEEE, y. 'gada' d. MMMM","y. 'gada' d. MMMM","y. 'gada' d. MMM","dd.MM.yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_ml={ERAS:["\u0d15\u0d4d\u0d30\u0d3f.\u0d2e\u0d42","\u0d0e\u0d21\u0d3f"],ERANAMES:["\u0d15\u0d4d\u0d30\u0d3f\u0d38\u0d4d\u0d24\u0d41\u0d35\u0d3f\u0d28\u0d41\u0d4d \u0d2e\u0d41\u0d2e\u0d4d\u0d2a\u0d4d\u200c","\u0d15\u0d4d\u0d30\u0d3f\u0d38\u0d4d\u0d24\u0d41\u0d35\u0d3f\u0d28\u0d4d \u0d2a\u0d3f\u0d7b\u0d2a\u0d4d"],NARROWMONTHS:"\u0d1c \u0d2b\u0d46 \u0d2e\u0d3e \u0d0f \u0d2e\u0d47 \u0d1c\u0d42 \u0d1c\u0d42 \u0d13 \u0d38\u0d46 \u0d12 \u0d28 \u0d21\u0d3f".split(" "),STANDALONENARROWMONTHS:"\u0d1c \u0d2b\u0d46 \u0d2e\u0d3e \u0d0f \u0d2e\u0d47 \u0d1c\u0d42 \u0d1c\u0d42 \u0d13 \u0d38\u0d46 \u0d12 \u0d28 \u0d21\u0d3f".split(" "),
MONTHS:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f \u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f \u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d \u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d \u0d2e\u0d47\u0d2f\u0d4d \u0d1c\u0d42\u0d7a \u0d1c\u0d42\u0d32\u0d48 \u0d06\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d \u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c \u0d12\u0d15\u0d4d\u200c\u0d1f\u0d4b\u0d2c\u0d7c \u0d28\u0d35\u0d02\u0d2c\u0d7c \u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split(" "),STANDALONEMONTHS:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f \u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f \u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d \u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d \u0d2e\u0d47\u0d2f\u0d4d \u0d1c\u0d42\u0d7a \u0d1c\u0d42\u0d32\u0d48 \u0d06\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d \u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c \u0d12\u0d15\u0d4d\u200c\u0d1f\u0d4b\u0d2c\u0d7c \u0d28\u0d35\u0d02\u0d2c\u0d7c \u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split(" "),
SHORTMONTHS:"\u0d1c\u0d28\u0d41 \u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41 \u0d2e\u0d3e\u0d7c \u0d0f\u0d2a\u0d4d\u0d30\u0d3f \u0d2e\u0d47\u0d2f\u0d4d \u0d1c\u0d42\u0d7a \u0d1c\u0d42\u0d32\u0d48 \u0d13\u0d17 \u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02 \u0d12\u0d15\u0d4d\u0d1f\u0d4b \u0d28\u0d35\u0d02 \u0d21\u0d3f\u0d38\u0d02".split(" "),STANDALONESHORTMONTHS:"\u0d1c\u0d28\u0d41 \u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41 \u0d2e\u0d3e\u0d7c \u0d0f\u0d2a\u0d4d\u0d30\u0d3f \u0d2e\u0d47\u0d2f\u0d4d \u0d1c\u0d42\u0d7a \u0d1c\u0d42\u0d32\u0d48 \u0d13\u0d17 \u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02 \u0d12\u0d15\u0d4d\u0d1f\u0d4b \u0d28\u0d35\u0d02 \u0d21\u0d3f\u0d38\u0d02".split(" "),
WEEKDAYS:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a \u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u200c\u0d1a".split(" "),STANDALONEWEEKDAYS:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u200c\u0d1a \u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u200c\u0d1a".split(" "),
SHORTWEEKDAYS:"\u0d1e\u0d3e\u0d2f\u0d7c \u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e \u0d1a\u0d4a\u0d35\u0d4d\u0d35 \u0d2c\u0d41\u0d27\u0d7b \u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02 \u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f \u0d36\u0d28\u0d3f".split(" "),STANDALONESHORTWEEKDAYS:"\u0d1e\u0d3e\u0d2f\u0d7c \u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e \u0d1a\u0d4a\u0d35\u0d4d\u0d35 \u0d2c\u0d41\u0d27\u0d7b \u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02 \u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f \u0d36\u0d28\u0d3f".split(" "),NARROWWEEKDAYS:"\u0d1e\u0d3e \u0d24\u0d3f \u0d1a\u0d4a \u0d2c\u0d41 \u0d35\u0d4d\u0d2f\u0d3e \u0d35\u0d46 \u0d36".split(" "),
STANDALONENARROWWEEKDAYS:"\u0d1e\u0d3e \u0d24\u0d3f \u0d1a\u0d4a \u0d2c\u0d41 \u0d35\u0d4d\u0d2f\u0d3e \u0d35\u0d46 \u0d36".split(" "),SHORTQUARTERS:["\u0d12\u0d28\u0d4d\u0d28\u0d3e\u0d02 \u0d2a\u0d3e\u0d26\u0d02","\u0d30\u0d23\u0d4d\u0d1f\u0d3e\u0d02 \u0d2a\u0d3e\u0d26\u0d02","\u0d2e\u0d42\u0d28\u0d4d\u0d28\u0d3e\u0d02 \u0d2a\u0d3e\u0d26\u0d02","\u0d28\u0d3e\u0d32\u0d3e\u0d02 \u0d2a\u0d3e\u0d26\u0d02"],QUARTERS:["\u0d12\u0d28\u0d4d\u0d28\u0d3e\u0d02 \u0d2a\u0d3e\u0d26\u0d02","\u0d30\u0d23\u0d4d\u0d1f\u0d3e\u0d02 \u0d2a\u0d3e\u0d26\u0d02",
"\u0d2e\u0d42\u0d28\u0d4d\u0d28\u0d3e\u0d02 \u0d2a\u0d3e\u0d26\u0d02","\u0d28\u0d3e\u0d32\u0d3e\u0d02 \u0d2a\u0d3e\u0d26\u0d02"],AMPMS:["AM","PM"],DATEFORMATS:["y, MMMM d, EEEE","y, MMMM d","y, MMM d","dd/MM/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_mr={ZERODIGIT:2406,ERAS:["\u0908\u0938\u093e\u092a\u0942\u0930\u094d\u0935","\u0938\u0928"],ERANAMES:["\u0908\u0938\u0935\u0940\u0938\u0928\u092a\u0942\u0930\u094d\u0935","\u0908\u0938\u0935\u0940\u0938\u0928"],NARROWMONTHS:"\u091c\u093e \u092b\u0947 \u092e\u093e \u090f \u092e\u0947 \u091c\u0942 \u091c\u0941 \u0911 \u0938 \u0911 \u0928\u094b \u0921\u093f".split(" "),STANDALONENARROWMONTHS:"\u091c\u093e \u092b\u0947 \u092e\u093e \u090f \u092e\u0947 \u091c\u0942 \u091c\u0941 \u0911 \u0938 \u0911 \u0928\u094b \u0921\u093f".split(" "),
MONTHS:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940 \u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940 \u092e\u093e\u0930\u094d\u091a \u090f\u092a\u094d\u0930\u093f\u0932 \u092e\u0947 \u091c\u0942\u0928 \u091c\u0941\u0932\u0948 \u0911\u0917\u0938\u094d\u091f \u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930 \u0911\u0915\u094d\u091f\u094b\u092c\u0930 \u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930 \u0921\u093f\u0938\u0947\u0902\u092c\u0930".split(" "),STANDALONEMONTHS:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940 \u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940 \u092e\u093e\u0930\u094d\u091a \u090f\u092a\u094d\u0930\u093f\u0932 \u092e\u0947 \u091c\u0942\u0928 \u091c\u0941\u0932\u0948 \u0911\u0917\u0938\u094d\u091f \u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930 \u0911\u0915\u094d\u091f\u094b\u092c\u0930 \u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930 \u0921\u093f\u0938\u0947\u0902\u092c\u0930".split(" "),
SHORTMONTHS:"\u091c\u093e\u0928\u0947 \u092b\u0947\u092c\u094d\u0930\u0941 \u092e\u093e\u0930\u094d\u091a \u090f\u092a\u094d\u0930\u093f \u092e\u0947 \u091c\u0942\u0928 \u091c\u0941\u0932\u0948 \u0911\u0917 \u0938\u092a\u094d\u091f\u0947\u0902 \u0911\u0915\u094d\u091f\u094b \u0928\u094b\u0935\u094d\u0939\u0947\u0902 \u0921\u093f\u0938\u0947\u0902".split(" "),STANDALONESHORTMONTHS:"\u091c\u093e\u0928\u0947 \u092b\u0947\u092c\u094d\u0930\u0941 \u092e\u093e\u0930\u094d\u091a \u090f\u092a\u094d\u0930\u093f \u092e\u0947 \u091c\u0942\u0928 \u091c\u0941\u0932\u0948 \u0911\u0917 \u0938\u092a\u094d\u091f\u0947\u0902 \u0911\u0915\u094d\u091f\u094b \u0928\u094b\u0935\u094d\u0939\u0947\u0902 \u0921\u093f\u0938\u0947\u0902".split(" "),
WEEKDAYS:"\u0930\u0935\u093f\u0935\u093e\u0930 \u0938\u094b\u092e\u0935\u093e\u0930 \u092e\u0902\u0917\u0933\u0935\u093e\u0930 \u092c\u0941\u0927\u0935\u093e\u0930 \u0917\u0941\u0930\u0941\u0935\u093e\u0930 \u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930 \u0936\u0928\u093f\u0935\u093e\u0930".split(" "),STANDALONEWEEKDAYS:"\u0930\u0935\u093f\u0935\u093e\u0930 \u0938\u094b\u092e\u0935\u093e\u0930 \u092e\u0902\u0917\u0933\u0935\u093e\u0930 \u092c\u0941\u0927\u0935\u093e\u0930 \u0917\u0941\u0930\u0941\u0935\u093e\u0930 \u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930 \u0936\u0928\u093f\u0935\u093e\u0930".split(" "),
SHORTWEEKDAYS:"\u0930\u0935\u093f \u0938\u094b\u092e \u092e\u0902\u0917\u0933 \u092c\u0941\u0927 \u0917\u0941\u0930\u0941 \u0936\u0941\u0915\u094d\u0930 \u0936\u0928\u093f".split(" "),STANDALONESHORTWEEKDAYS:"\u0930\u0935\u093f \u0938\u094b\u092e \u092e\u0902\u0917\u0933 \u092c\u0941\u0927 \u0917\u0941\u0930\u0941 \u0936\u0941\u0915\u094d\u0930 \u0936\u0928\u093f".split(" "),NARROWWEEKDAYS:"\u0930 \u0938\u094b \u092e\u0902 \u092c\u0941 \u0917\u0941 \u0936\u0941 \u0936".split(" "),STANDALONENARROWWEEKDAYS:"\u0930 \u0938\u094b \u092e\u0902 \u092c\u0941 \u0917\u0941 \u0936\u0941 \u0936".split(" "),
SHORTQUARTERS:["\u0924\u093f1","\u0924\u093f2","\u0924\u093f3","\u0924\u093f4"],QUARTERS:["\u092a\u094d\u0930\u0925\u092e \u0924\u093f\u092e\u093e\u0939\u0940","\u0926\u094d\u0935\u093f\u0924\u0940\u092f \u0924\u093f\u092e\u093e\u0939\u0940","\u0924\u0943\u0924\u0940\u092f \u0924\u093f\u092e\u093e\u0939\u0940","\u091a\u0924\u0941\u0930\u094d\u0925 \u0924\u093f\u092e\u093e\u0939\u0940"],AMPMS:["[AM]","[PM]"],DATEFORMATS:["EEEE, d MMMM, y","d MMMM, y","d MMM, y","d/M/yy"],TIMEFORMATS:["h:mm:ss a zzzz",
"h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} '\u0930\u094b\u091c\u0940' {0}","{1} '\u0930\u094b\u091c\u0940' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_ms={ERAS:["S.M.","TM"],ERANAMES:["S.M.","TM"],NARROWMONTHS:"JFMAMJJOSOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJOSOND".split(""),MONTHS:"Januari Februari Mac April Mei Jun Julai Ogos September Oktober November Disember".split(" "),STANDALONEMONTHS:"Januari Februari Mac April Mei Jun Julai Ogos September Oktober November Disember".split(" "),SHORTMONTHS:"Jan Feb Mac Apr Mei Jun Jul Ogo Sep Okt Nov Dis".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mac Apr Mei Jun Jul Ogo Sep Okt Nov Dis".split(" "),
WEEKDAYS:"Ahad Isnin Selasa Rabu Khamis Jumaat Sabtu".split(" "),STANDALONEWEEKDAYS:"Ahad Isnin Selasa Rabu Khamis Jumaat Sabtu".split(" "),SHORTWEEKDAYS:"Ahd Isn Sel Rab Kha Jum Sab".split(" "),STANDALONESHORTWEEKDAYS:"Ahd Isn Sel Rab Kha Jum Sab".split(" "),NARROWWEEKDAYS:"AISRKJS".split(""),STANDALONENARROWWEEKDAYS:"AISRKJS".split(""),SHORTQUARTERS:["S1","S2","S3","S4"],QUARTERS:["Suku pertama","Suku Ke-2","Suku Ke-3","Suku Ke-4"],AMPMS:["PG","PTG"],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","d MMM y",
"d/MM/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_mt={ERAS:["QK","WK"],ERANAMES:["Qabel Kristu","Wara Kristu"],NARROWMONTHS:"JFMAM\u0120LASOND".split(""),STANDALONENARROWMONTHS:"JFMAM\u0120LASOND".split(""),MONTHS:"Jannar Frar Marzu April Mejju \u0120unju Lulju Awwissu Settembru Ottubru Novembru Di\u010bembru".split(" "),STANDALONEMONTHS:"Jannar Frar Marzu April Mejju \u0120unju Lulju Awwissu Settembru Ottubru Novembru Di\u010bembru".split(" "),SHORTMONTHS:"Jan Fra Mar Apr Mej \u0120un Lul Aww Set Ott Nov Di\u010b".split(" "),
STANDALONESHORTMONTHS:"Jan Fra Mar Apr Mej \u0120un Lul Aww Set Ott Nov Di\u010b".split(" "),WEEKDAYS:"Il-\u0126add It-Tnejn It-Tlieta L-Erbg\u0127a Il-\u0126amis Il-\u0120img\u0127a Is-Sibt".split(" "),STANDALONEWEEKDAYS:"Il-\u0126add It-Tnejn It-Tlieta L-Erbg\u0127a Il-\u0126amis Il-\u0120img\u0127a Is-Sibt".split(" "),SHORTWEEKDAYS:"\u0126ad Tne Tli Erb \u0126am \u0120im Sib".split(" "),STANDALONESHORTWEEKDAYS:"\u0126ad Tne Tli Erb \u0126am \u0120im Sib".split(" "),NARROWWEEKDAYS:"\u0126TTE\u0126\u0120S".split(""),
STANDALONENARROWWEEKDAYS:"\u0126TTE\u0126\u0120S".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["K1","K2","K3","K4"],AMPMS:["QN","WN"],DATEFORMATS:["EEEE, d 'ta'\u2019 MMMM y","d 'ta'\u2019 MMMM y","dd MMM y","dd/MM/y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_nb={ERAS:["f.Kr.","e.Kr."],ERANAMES:["f.Kr.","e.Kr."],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"januar februar mars april mai juni juli august september oktober november desember".split(" "),STANDALONEMONTHS:"januar februar mars april mai juni juli august september oktober november desember".split(" "),SHORTMONTHS:"jan. feb. mar. apr. mai jun. jul. aug. sep. okt. nov. des.".split(" "),STANDALONESHORTMONTHS:"jan feb mar apr mai jun jul aug sep okt nov des".split(" "),
WEEKDAYS:"s\u00f8ndag mandag tirsdag onsdag torsdag fredag l\u00f8rdag".split(" "),STANDALONEWEEKDAYS:"s\u00f8ndag mandag tirsdag onsdag torsdag fredag l\u00f8rdag".split(" "),SHORTWEEKDAYS:"s\u00f8n. man. tir. ons. tor. fre. l\u00f8r.".split(" "),STANDALONESHORTWEEKDAYS:"s\u00f8. ma. ti. on. to. fr. l\u00f8.".split(" "),NARROWWEEKDAYS:"SMTOTFL".split(""),STANDALONENARROWWEEKDAYS:"SMTOTFL".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],
AMPMS:["a.m.","p.m."],DATEFORMATS:["EEEE d. MMMM y","d. MMMM y","d. MMM y","dd.MM.yy"],TIMEFORMATS:["HH.mm.ss zzzz","HH.mm.ss z","HH.mm.ss","HH.mm"],DATETIMEFORMATS:["{1} {0}","{1} 'kl.' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_nl={ERAS:["v.Chr.","n.Chr."],ERANAMES:["Voor Christus","na Christus"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"januari februari maart april mei juni juli augustus september oktober november december".split(" "),STANDALONEMONTHS:"januari februari maart april mei juni juli augustus september oktober november december".split(" "),SHORTMONTHS:"jan. feb. mrt. apr. mei jun. jul. aug. sep. okt. nov. dec.".split(" "),STANDALONESHORTMONTHS:"jan feb mrt apr mei jun jul aug sep okt nov dec".split(" "),
WEEKDAYS:"zondag maandag dinsdag woensdag donderdag vrijdag zaterdag".split(" "),STANDALONEWEEKDAYS:"zondag maandag dinsdag woensdag donderdag vrijdag zaterdag".split(" "),SHORTWEEKDAYS:"zo ma di wo do vr za".split(" "),STANDALONESHORTWEEKDAYS:"zo ma di wo do vr za".split(" "),NARROWWEEKDAYS:"ZMDWDVZ".split(""),STANDALONENARROWWEEKDAYS:"ZMDWDVZ".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE d MMMM y",
"d MMMM y","d MMM y","dd-MM-yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_no={ERAS:["f.Kr.","e.Kr."],ERANAMES:["f.Kr.","e.Kr."],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"januar februar mars april mai juni juli august september oktober november desember".split(" "),STANDALONEMONTHS:"januar februar mars april mai juni juli august september oktober november desember".split(" "),SHORTMONTHS:"jan. feb. mar. apr. mai jun. jul. aug. sep. okt. nov. des.".split(" "),STANDALONESHORTMONTHS:"jan feb mar apr mai jun jul aug sep okt nov des".split(" "),
WEEKDAYS:"s\u00f8ndag mandag tirsdag onsdag torsdag fredag l\u00f8rdag".split(" "),STANDALONEWEEKDAYS:"s\u00f8ndag mandag tirsdag onsdag torsdag fredag l\u00f8rdag".split(" "),SHORTWEEKDAYS:"s\u00f8n. man. tir. ons. tor. fre. l\u00f8r.".split(" "),STANDALONESHORTWEEKDAYS:"s\u00f8. ma. ti. on. to. fr. l\u00f8.".split(" "),NARROWWEEKDAYS:"SMTOTFL".split(""),STANDALONENARROWWEEKDAYS:"SMTOTFL".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"],
AMPMS:["a.m.","p.m."],DATEFORMATS:["EEEE d. MMMM y","d. MMMM y","d. MMM y","dd.MM.yy"],TIMEFORMATS:["HH.mm.ss zzzz","HH.mm.ss z","HH.mm.ss","HH.mm"],DATETIMEFORMATS:["{1} {0}","{1} 'kl.' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_or={ERAS:["BCE","CE"],ERANAMES:["BCE","CE"],NARROWMONTHS:"\u0b1c\u0b3e \u0b2b\u0b47 \u0b2e\u0b3e \u0b05 \u0b2e\u0b47 \u0b1c\u0b41 \u0b1c\u0b41 \u0b05 \u0b38\u0b47 \u0b05 \u0b28 \u0b21\u0b3f".split(" "),STANDALONENARROWMONTHS:"\u0b1c\u0b3e \u0b2b\u0b47 \u0b2e\u0b3e \u0b05 \u0b2e\u0b47 \u0b1c\u0b41 \u0b1c\u0b41 \u0b05 \u0b38\u0b47 \u0b05 \u0b28 \u0b21\u0b3f".split(" "),MONTHS:"\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40 \u0b2b\u0b47\u0b2c\u0b4d\u0b30\u0b41\u0b5f\u0b3e\u0b30\u0b40 \u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a \u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32 \u0b2e\u0b47 \u0b1c\u0b41\u0b28 \u0b1c\u0b41\u0b32\u0b3e\u0b07 \u0b05\u0b17\u0b37\u0b4d\u0b1f \u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30 \u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30 \u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30 \u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30".split(" "),
STANDALONEMONTHS:"\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40 \u0b2b\u0b47\u0b2c\u0b4d\u0b30\u0b41\u0b5f\u0b3e\u0b30\u0b40 \u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a \u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32 \u0b2e\u0b47 \u0b1c\u0b41\u0b28 \u0b1c\u0b41\u0b32\u0b3e\u0b07 \u0b05\u0b17\u0b37\u0b4d\u0b1f \u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30 \u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30 \u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30 \u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30".split(" "),
SHORTMONTHS:"\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40 \u0b2b\u0b47\u0b2c\u0b4d\u0b30\u0b41\u0b5f\u0b3e\u0b30\u0b40 \u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a \u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32 \u0b2e\u0b47 \u0b1c\u0b41\u0b28 \u0b1c\u0b41\u0b32\u0b3e\u0b07 \u0b05\u0b17\u0b37\u0b4d\u0b1f \u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30 \u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30 \u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30 \u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30".split(" "),STANDALONESHORTMONTHS:"\u0b1c\u0b3e\u0b28\u0b41\u0b06\u0b30\u0b40 \u0b2b\u0b47\u0b2c\u0b4d\u0b30\u0b41\u0b5f\u0b3e\u0b30\u0b40 \u0b2e\u0b3e\u0b30\u0b4d\u0b1a\u0b4d\u0b1a \u0b05\u0b2a\u0b4d\u0b30\u0b47\u0b32 \u0b2e\u0b47 \u0b1c\u0b41\u0b28 \u0b1c\u0b41\u0b32\u0b3e\u0b07 \u0b05\u0b17\u0b37\u0b4d\u0b1f \u0b38\u0b47\u0b2a\u0b4d\u0b1f\u0b47\u0b2e\u0b4d\u0b2c\u0b30 \u0b05\u0b15\u0b4d\u0b1f\u0b4b\u0b2c\u0b30 \u0b28\u0b2d\u0b47\u0b2e\u0b4d\u0b2c\u0b30 \u0b21\u0b3f\u0b38\u0b47\u0b2e\u0b4d\u0b2c\u0b30".split(" "),
WEEKDAYS:"\u0b30\u0b2c\u0b3f\u0b2c\u0b3e\u0b30 \u0b38\u0b4b\u0b2e\u0b2c\u0b3e\u0b30 \u0b2e\u0b19\u0b4d\u0b17\u0b33\u0b2c\u0b3e\u0b30 \u0b2c\u0b41\u0b27\u0b2c\u0b3e\u0b30 \u0b17\u0b41\u0b30\u0b41\u0b2c\u0b3e\u0b30 \u0b36\u0b41\u0b15\u0b4d\u0b30\u0b2c\u0b3e\u0b30 \u0b36\u0b28\u0b3f\u0b2c\u0b3e\u0b30".split(" "),STANDALONEWEEKDAYS:"\u0b30\u0b2c\u0b3f\u0b2c\u0b3e\u0b30 \u0b38\u0b4b\u0b2e\u0b2c\u0b3e\u0b30 \u0b2e\u0b19\u0b4d\u0b17\u0b33\u0b2c\u0b3e\u0b30 \u0b2c\u0b41\u0b27\u0b2c\u0b3e\u0b30 \u0b17\u0b41\u0b30\u0b41\u0b2c\u0b3e\u0b30 \u0b36\u0b41\u0b15\u0b4d\u0b30\u0b2c\u0b3e\u0b30 \u0b36\u0b28\u0b3f\u0b2c\u0b3e\u0b30".split(" "),
SHORTWEEKDAYS:"\u0b30\u0b2c\u0b3f \u0b38\u0b4b\u0b2e \u0b2e\u0b19\u0b4d\u0b17\u0b33 \u0b2c\u0b41\u0b27 \u0b17\u0b41\u0b30\u0b41 \u0b36\u0b41\u0b15\u0b4d\u0b30 \u0b36\u0b28\u0b3f".split(" "),STANDALONESHORTWEEKDAYS:"\u0b30\u0b2c\u0b3f \u0b38\u0b4b\u0b2e \u0b2e\u0b19\u0b4d\u0b17\u0b33 \u0b2c\u0b41\u0b27 \u0b17\u0b41\u0b30\u0b41 \u0b36\u0b41\u0b15\u0b4d\u0b30 \u0b36\u0b28\u0b3f".split(" "),NARROWWEEKDAYS:"\u0b30 \u0b38\u0b4b \u0b2e \u0b2c\u0b41 \u0b17\u0b41 \u0b36\u0b41 \u0b36".split(" "),STANDALONENARROWWEEKDAYS:"\u0b30 \u0b38\u0b4b \u0b2e \u0b2c\u0b41 \u0b17\u0b41 \u0b36\u0b41 \u0b36".split(" "),
SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["Q1","Q2","Q3","Q4"],AMPMS:["am","pm"],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","d MMM y","d-M-yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_pl={ERAS:["p.n.e.","n.e."],ERANAMES:["p.n.e.","n.e."],NARROWMONTHS:"slmkmclswplg".split(""),STANDALONENARROWMONTHS:"slmkmclswplg".split(""),MONTHS:"stycznia lutego marca kwietnia maja czerwca lipca sierpnia wrze\u015bnia pa\u017adziernika listopada grudnia".split(" "),STANDALONEMONTHS:"stycze\u0144 luty marzec kwiecie\u0144 maj czerwiec lipiec sierpie\u0144 wrzesie\u0144 pa\u017adziernik listopad grudzie\u0144".split(" "),SHORTMONTHS:"sty lut mar kwi maj cze lip sie wrz pa\u017a lis gru".split(" "),
STANDALONESHORTMONTHS:"sty lut mar kwi maj cze lip sie wrz pa\u017a lis gru".split(" "),WEEKDAYS:"niedziela poniedzia\u0142ek wtorek \u015broda czwartek pi\u0105tek sobota".split(" "),STANDALONEWEEKDAYS:"niedziela poniedzia\u0142ek wtorek \u015broda czwartek pi\u0105tek sobota".split(" "),SHORTWEEKDAYS:"niedz. pon. wt. \u015br. czw. pt. sob.".split(" "),STANDALONESHORTWEEKDAYS:"niedz. pon. wt. \u015br. czw. pt. sob.".split(" "),NARROWWEEKDAYS:"NPW\u015aCPS".split(""),STANDALONENARROWWEEKDAYS:"NPW\u015aCPS".split(""),
SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["I kwarta\u0142","II kwarta\u0142","III kwarta\u0142","IV kwarta\u0142"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","d MMM y","dd.MM.y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_pt={ERAS:["a.C.","d.C."],ERANAMES:["Antes de Cristo","Ano do Senhor"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"janeiro fevereiro mar\u00e7o abril maio junho julho agosto setembro outubro novembro dezembro".split(" "),STANDALONEMONTHS:"janeiro fevereiro mar\u00e7o abril maio junho julho agosto setembro outubro novembro dezembro".split(" "),SHORTMONTHS:"jan fev mar abr mai jun jul ago set out nov dez".split(" "),STANDALONESHORTMONTHS:"jan fev mar abr mai jun jul ago set out nov dez".split(" "),
WEEKDAYS:"domingo segunda-feira ter\u00e7a-feira quarta-feira quinta-feira sexta-feira s\u00e1bado".split(" "),STANDALONEWEEKDAYS:"domingo segunda-feira ter\u00e7a-feira quarta-feira quinta-feira sexta-feira s\u00e1bado".split(" "),SHORTWEEKDAYS:"dom seg ter qua qui sex s\u00e1b".split(" "),STANDALONESHORTWEEKDAYS:"dom seg ter qua qui sex s\u00e1b".split(" "),NARROWWEEKDAYS:"DSTQQSS".split(""),STANDALONENARROWWEEKDAYS:"DSTQQSS".split(""),SHORTQUARTERS:["T1","T2","T3","T4"],QUARTERS:["1\u00ba trimestre",
"2\u00ba trimestre","3\u00ba trimestre","4\u00ba trimestre"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d 'de' MMMM 'de' y","d 'de' MMMM 'de' y","dd/MM/y","dd/MM/yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};goog.i18n.DateTimeSymbols_pt_BR=goog.i18n.DateTimeSymbols_pt;
goog.i18n.DateTimeSymbols_pt_PT={ERAS:["a.C.","d.C."],ERANAMES:["Antes de Cristo","Ano do Senhor"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"Janeiro Fevereiro Mar\u00e7o Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro".split(" "),STANDALONEMONTHS:"Janeiro Fevereiro Mar\u00e7o Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro".split(" "),SHORTMONTHS:"Jan Fev Mar Abr Mai Jun Jul Ago Set Out Nov Dez".split(" "),STANDALONESHORTMONTHS:"Jan Fev Mar Abr Mai Jun Jul Ago Set Out Nov Dez".split(" "),
WEEKDAYS:"domingo segunda-feira ter\u00e7a-feira quarta-feira quinta-feira sexta-feira s\u00e1bado".split(" "),STANDALONEWEEKDAYS:"domingo segunda-feira ter\u00e7a-feira quarta-feira quinta-feira sexta-feira s\u00e1bado".split(" "),SHORTWEEKDAYS:"dom seg ter qua qui sex s\u00e1b".split(" "),STANDALONESHORTWEEKDAYS:"dom seg ter qua qui sex s\u00e1b".split(" "),NARROWWEEKDAYS:"DSTQQSS".split(""),STANDALONENARROWWEEKDAYS:"DSTQQSS".split(""),SHORTQUARTERS:["T1","T2","T3","T4"],QUARTERS:["1.\u00ba trimestre",
"2.\u00ba trimestre","3.\u00ba trimestre","4.\u00ba trimestre"],AMPMS:["da manh\u00e3","da tarde"],DATEFORMATS:["EEEE, d 'de' MMMM 'de' y","d 'de' MMMM 'de' y","dd/MM/y","dd/MM/yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} '\u00e0s' {0}","{1} '\u00e0s' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_ro={ERAS:["\u00ee.Hr.","d.Hr."],ERANAMES:["\u00eenainte de Hristos","dup\u0103 Hristos"],NARROWMONTHS:"IFMAMIIASOND".split(""),STANDALONENARROWMONTHS:"IFMAMIIASOND".split(""),MONTHS:"ianuarie februarie martie aprilie mai iunie iulie august septembrie octombrie noiembrie decembrie".split(" "),STANDALONEMONTHS:"ianuarie februarie martie aprilie mai iunie iulie august septembrie octombrie noiembrie decembrie".split(" "),SHORTMONTHS:"ian. feb. mar. apr. mai iun. iul. aug. sept. oct. nov. dec.".split(" "),
STANDALONESHORTMONTHS:"ian. feb. mar. apr. mai iun. iul. aug. sept. oct. nov. dec.".split(" "),WEEKDAYS:"duminic\u0103 luni mar\u021bi miercuri joi vineri s\u00e2mb\u0103t\u0103".split(" "),STANDALONEWEEKDAYS:"duminic\u0103 luni mar\u021bi miercuri joi vineri s\u00e2mb\u0103t\u0103".split(" "),SHORTWEEKDAYS:"Dum Lun Mar Mie Joi Vin S\u00e2m".split(" "),STANDALONESHORTWEEKDAYS:"Dum Lun Mar Mie Joi Vin S\u00e2m".split(" "),NARROWWEEKDAYS:"DLMMJVS".split(""),STANDALONENARROWWEEKDAYS:"DLMMJVS".split(""),
SHORTQUARTERS:["trim. I","trim. II","trim. III","trim. IV"],QUARTERS:["trimestrul I","trimestrul al II-lea","trimestrul al III-lea","trimestrul al IV-lea"],AMPMS:["a.m.","p.m."],DATEFORMATS:["EEEE, d MMMM y","d MMMM y","d MMM y","dd.MM.y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_ru={ERAS:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],ERANAMES:["\u0434\u043e \u043d.\u044d.","\u043d.\u044d."],NARROWMONTHS:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),STANDALONENARROWMONTHS:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),MONTHS:"\u044f\u043d\u0432\u0430\u0440\u044f \u0444\u0435\u0432\u0440\u0430\u043b\u044f \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440\u0435\u043b\u044f \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f \u043e\u043a\u0442\u044f\u0431\u0440\u044f \u043d\u043e\u044f\u0431\u0440\u044f \u0434\u0435\u043a\u0430\u0431\u0440\u044f".split(" "),
STANDALONEMONTHS:"\u042f\u043d\u0432\u0430\u0440\u044c \u0424\u0435\u0432\u0440\u0430\u043b\u044c \u041c\u0430\u0440\u0442 \u0410\u043f\u0440\u0435\u043b\u044c \u041c\u0430\u0439 \u0418\u044e\u043d\u044c \u0418\u044e\u043b\u044c \u0410\u0432\u0433\u0443\u0441\u0442 \u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c \u041e\u043a\u0442\u044f\u0431\u0440\u044c \u041d\u043e\u044f\u0431\u0440\u044c \u0414\u0435\u043a\u0430\u0431\u0440\u044c".split(" "),SHORTMONTHS:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440. \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),
STANDALONESHORTMONTHS:"\u042f\u043d\u0432. \u0424\u0435\u0432\u0440. \u041c\u0430\u0440\u0442 \u0410\u043f\u0440. \u041c\u0430\u0439 \u0418\u044e\u043d\u044c \u0418\u044e\u043b\u044c \u0410\u0432\u0433. \u0421\u0435\u043d\u0442. \u041e\u043a\u0442. \u041d\u043e\u044f\u0431. \u0414\u0435\u043a.".split(" "),WEEKDAYS:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0432\u0442\u043e\u0440\u043d\u0438\u043a \u0441\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u043f\u044f\u0442\u043d\u0438\u0446\u0430 \u0441\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),
STANDALONEWEEKDAYS:"\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0412\u0442\u043e\u0440\u043d\u0438\u043a \u0421\u0440\u0435\u0434\u0430 \u0427\u0435\u0442\u0432\u0435\u0440\u0433 \u041f\u044f\u0442\u043d\u0438\u0446\u0430 \u0421\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),SHORTWEEKDAYS:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),STANDALONESHORTWEEKDAYS:"\u0412\u0441 \u041f\u043d \u0412\u0442 \u0421\u0440 \u0427\u0442 \u041f\u0442 \u0421\u0431".split(" "),
NARROWWEEKDAYS:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),STANDALONENARROWWEEKDAYS:"\u0412\u041f\u0412\u0421\u0427\u041f\u0421".split(""),SHORTQUARTERS:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],QUARTERS:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"],
AMPMS:["\u0434\u043e \u043f\u043e\u043b\u0443\u0434\u043d\u044f","\u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0434\u043d\u044f"],DATEFORMATS:["EEEE, d MMMM y '\u0433'.","d MMMM y '\u0433'.","dd MMM y '\u0433'.","dd.MM.yy"],TIMEFORMATS:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],DATETIMEFORMATS:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_sk={ERAS:["pred n.l.","n.l."],ERANAMES:["pred n.l.","n.l."],NARROWMONTHS:"jfmamjjasond".split(""),STANDALONENARROWMONTHS:"jfmamjjasond".split(""),MONTHS:"janu\u00e1ra febru\u00e1ra marca apr\u00edla m\u00e1ja j\u00fana j\u00fala augusta septembra okt\u00f3bra novembra decembra".split(" "),STANDALONEMONTHS:"janu\u00e1r febru\u00e1r marec apr\u00edl m\u00e1j j\u00fan j\u00fal august september okt\u00f3ber november december".split(" "),SHORTMONTHS:"jan feb mar apr m\u00e1j j\u00fan j\u00fal aug sep okt nov dec".split(" "),
STANDALONESHORTMONTHS:"jan feb mar apr m\u00e1j j\u00fan j\u00fal aug sep okt nov dec".split(" "),WEEKDAYS:"nede\u013ea pondelok utorok streda \u0161tvrtok piatok sobota".split(" "),STANDALONEWEEKDAYS:"nede\u013ea pondelok utorok streda \u0161tvrtok piatok sobota".split(" "),SHORTWEEKDAYS:"ne po ut st \u0161t pi so".split(" "),STANDALONESHORTWEEKDAYS:"ne po ut st \u0161t pi so".split(" "),NARROWWEEKDAYS:"NPUS\u0160PS".split(""),STANDALONENARROWWEEKDAYS:"NPUS\u0160PS".split(""),SHORTQUARTERS:["Q1",
"Q2","Q3","Q4"],QUARTERS:["1. \u0161tvr\u0165rok","2. \u0161tvr\u0165rok","3. \u0161tvr\u0165rok","4. \u0161tvr\u0165rok"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d. MMMM y","d. MMMM y","d.M.y","d.M.y"],TIMEFORMATS:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_sl={ERAS:["pr. n. \u0161t.","po Kr."],ERANAMES:["pred na\u0161im \u0161tetjem","na\u0161e \u0161tetje"],NARROWMONTHS:"jfmamjjasond".split(""),STANDALONENARROWMONTHS:"jfmamjjasond".split(""),MONTHS:"januar februar marec april maj junij julij avgust september oktober november december".split(" "),STANDALONEMONTHS:"januar februar marec april maj junij julij avgust september oktober november december".split(" "),SHORTMONTHS:"jan. feb. mar. apr. maj jun. jul. avg. sep. okt. nov. dec.".split(" "),
STANDALONESHORTMONTHS:"jan feb mar apr maj jun jul avg sep okt nov dec".split(" "),WEEKDAYS:"nedelja ponedeljek torek sreda \u010detrtek petek sobota".split(" "),STANDALONEWEEKDAYS:"nedelja ponedeljek torek sreda \u010detrtek petek sobota".split(" "),SHORTWEEKDAYS:"ned. pon. tor. sre. \u010det. pet. sob.".split(" "),STANDALONESHORTWEEKDAYS:"ned pon tor sre \u010det pet sob".split(" "),NARROWWEEKDAYS:"npts\u010dps".split(""),STANDALONENARROWWEEKDAYS:"npts\u010dps".split(""),SHORTQUARTERS:["Q1","Q2",
"Q3","Q4"],QUARTERS:["1. \u010detrtletje","2. \u010detrtletje","3. \u010detrtletje","4. \u010detrtletje"],AMPMS:["dop.","pop."],DATEFORMATS:["EEEE, dd. MMMM y","dd. MMMM y","d. MMM y","d. MM. yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_sq={ERAS:["p.e.r.","e.r."],ERANAMES:["para er\u00ebs s\u00eb re","er\u00ebs s\u00eb re"],NARROWMONTHS:"JSMPMQKGSTND".split(""),STANDALONENARROWMONTHS:"JSMPMQKGSTND".split(""),MONTHS:"janar shkurt mars prill maj qershor korrik gusht shtator tetor n\u00ebntor dhjetor".split(" "),STANDALONEMONTHS:"janar shkurt mars prill maj qershor korrik gusht shtator tetor n\u00ebntor dhjetor".split(" "),SHORTMONTHS:"Jan Shk Mar Pri Maj Qer Kor Gsh Sht Tet N\u00ebn Dhj".split(" "),STANDALONESHORTMONTHS:"Jan Shk Mar Pri Maj Qer Kor Gsh Sht Tet N\u00ebn Dhj".split(" "),
WEEKDAYS:"e diel;e h\u00ebn\u00eb;e mart\u00eb;e m\u00ebrkur\u00eb;e enjte;e premte;e shtun\u00eb".split(";"),STANDALONEWEEKDAYS:"e diel;e h\u00ebn\u00eb;e mart\u00eb;e m\u00ebrkur\u00eb;e enjte;e premte;e shtun\u00eb".split(";"),SHORTWEEKDAYS:"Die H\u00ebn Mar M\u00ebr Enj Pre Sht".split(" "),STANDALONESHORTWEEKDAYS:"Die H\u00ebn Mar M\u00ebr Enj Pre Sht".split(" "),NARROWWEEKDAYS:"DHMMEPS".split(""),STANDALONENARROWWEEKDAYS:"DHMMEPS".split(""),SHORTQUARTERS:["T1","T2","T3","T4"],QUARTERS:["tremujori i par\u00eb",
"tremujori i dyt\u00eb","tremujori i tret\u00eb","tremujori i kat\u00ebrt"],AMPMS:["paradite","pasdite"],DATEFORMATS:["EEEE, dd MMMM y","dd MMMM y","dd/MM/y","dd/MM/yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} 'n\u00eb' {0}","{1} 'n\u00eb' {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_sr={ERAS:["\u043f. \u043d. \u0435.","\u043d. \u0435."],ERANAMES:["\u041f\u0440\u0435 \u043d\u043e\u0432\u0435 \u0435\u0440\u0435","\u041d\u043e\u0432\u0435 \u0435\u0440\u0435"],NARROWMONTHS:"\u0458\u0444\u043c\u0430\u043c\u0458\u0458\u0430\u0441\u043e\u043d\u0434".split(""),STANDALONENARROWMONTHS:"\u0458\u0444\u043c\u0430\u043c\u0458\u0458\u0430\u0441\u043e\u043d\u0434".split(""),MONTHS:"\u0458\u0430\u043d\u0443\u0430\u0440 \u0444\u0435\u0431\u0440\u0443\u0430\u0440 \u043c\u0430\u0440\u0442 \u0430\u043f\u0440\u0438\u043b \u043c\u0430\u0458 \u0458\u0443\u043d \u0458\u0443\u043b \u0430\u0432\u0433\u0443\u0441\u0442 \u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440 \u043e\u043a\u0442\u043e\u0431\u0430\u0440 \u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440 \u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split(" "),
STANDALONEMONTHS:"\u0458\u0430\u043d\u0443\u0430\u0440 \u0444\u0435\u0431\u0440\u0443\u0430\u0440 \u043c\u0430\u0440\u0442 \u0430\u043f\u0440\u0438\u043b \u043c\u0430\u0458 \u0458\u0443\u043d \u0458\u0443\u043b \u0430\u0432\u0433\u0443\u0441\u0442 \u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440 \u043e\u043a\u0442\u043e\u0431\u0430\u0440 \u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440 \u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split(" "),SHORTMONTHS:"\u0458\u0430\u043d \u0444\u0435\u0431 \u043c\u0430\u0440 \u0430\u043f\u0440 \u043c\u0430\u0458 \u0458\u0443\u043d \u0458\u0443\u043b \u0430\u0432\u0433 \u0441\u0435\u043f \u043e\u043a\u0442 \u043d\u043e\u0432 \u0434\u0435\u0446".split(" "),
STANDALONESHORTMONTHS:"\u0458\u0430\u043d \u0444\u0435\u0431 \u043c\u0430\u0440 \u0430\u043f\u0440 \u043c\u0430\u0458 \u0458\u0443\u043d \u0458\u0443\u043b \u0430\u0432\u0433 \u0441\u0435\u043f \u043e\u043a\u0442 \u043d\u043e\u0432 \u0434\u0435\u0446".split(" "),WEEKDAYS:"\u043d\u0435\u0434\u0435\u0459\u0430 \u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a \u0443\u0442\u043e\u0440\u0430\u043a \u0441\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a \u043f\u0435\u0442\u0430\u043a \u0441\u0443\u0431\u043e\u0442\u0430".split(" "),
STANDALONEWEEKDAYS:"\u043d\u0435\u0434\u0435\u0459\u0430 \u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a \u0443\u0442\u043e\u0440\u0430\u043a \u0441\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a \u043f\u0435\u0442\u0430\u043a \u0441\u0443\u0431\u043e\u0442\u0430".split(" "),SHORTWEEKDAYS:"\u043d\u0435\u0434 \u043f\u043e\u043d \u0443\u0442\u043e \u0441\u0440\u0435 \u0447\u0435\u0442 \u043f\u0435\u0442 \u0441\u0443\u0431".split(" "),STANDALONESHORTWEEKDAYS:"\u043d\u0435\u0434 \u043f\u043e\u043d \u0443\u0442\u043e \u0441\u0440\u0435 \u0447\u0435\u0442 \u043f\u0435\u0442 \u0441\u0443\u0431".split(" "),
NARROWWEEKDAYS:"\u043d\u043f\u0443\u0441\u0447\u043f\u0441".split(""),STANDALONENARROWWEEKDAYS:"\u043d\u043f\u0443\u0441\u0447\u043f\u0441".split(""),SHORTQUARTERS:["\u041a1","\u041a2","\u041a3","\u041a4"],QUARTERS:["\u041f\u0440\u0432\u043e \u0442\u0440\u043e\u043c\u0435\u0441\u0435\u0447\u0458\u0435","\u0414\u0440\u0443\u0433\u043e \u0442\u0440\u043e\u043c\u0435\u0441\u0435\u0447\u0458\u0435","\u0422\u0440\u0435\u045b\u0435 \u0442\u0440\u043e\u043c\u0435\u0441\u0435\u0447\u0458\u0435","\u0427\u0435\u0442\u0432\u0440\u0442\u043e \u0442\u0440\u043e\u043c\u0435\u0441\u0435\u0447\u0458\u0435"],
AMPMS:["\u043f\u0440\u0435 \u043f\u043e\u0434\u043d\u0435","\u043f\u043e\u043f\u043e\u0434\u043d\u0435"],DATEFORMATS:["EEEE, dd. MMMM y.","dd. MMMM y.","dd.MM.y.","d.M.yy."],TIMEFORMATS:["HH.mm.ss zzzz","HH.mm.ss z","HH.mm.ss","HH.mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_sv={ERAS:["f.Kr.","e.Kr."],ERANAMES:["f\u00f6re Kristus","efter Kristus"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"januari februari mars april maj juni juli augusti september oktober november december".split(" "),STANDALONEMONTHS:"Januari Februari Mars April Maj Juni Juli Augusti September Oktober November December".split(" "),SHORTMONTHS:"jan feb mar apr maj jun jul aug sep okt nov dec".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mar Apr Maj Jun Jul Aug Sep Okt Nov Dec".split(" "),
WEEKDAYS:"s\u00f6ndag m\u00e5ndag tisdag onsdag torsdag fredag l\u00f6rdag".split(" "),STANDALONEWEEKDAYS:"S\u00f6ndag M\u00e5ndag Tisdag Onsdag Torsdag Fredag L\u00f6rdag".split(" "),SHORTWEEKDAYS:"s\u00f6n m\u00e5n tis ons tors fre l\u00f6r".split(" "),STANDALONESHORTWEEKDAYS:"S\u00f6n M\u00e5n Tis Ons Tor Fre L\u00f6r".split(" "),NARROWWEEKDAYS:"SMTOTFL".split(""),STANDALONENARROWWEEKDAYS:"SMTOTFL".split(""),SHORTQUARTERS:["K1","K2","K3","K4"],QUARTERS:["1:a kvartalet","2:a kvartalet","3:e kvartalet",
"4:e kvartalet"],AMPMS:["fm","em"],DATEFORMATS:["EEEE'en' 'den' d:'e' MMMM y","d MMMM y","d MMM y","y-MM-dd"],TIMEFORMATS:["'kl'. HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:3};
goog.i18n.DateTimeSymbols_sw={ERAS:["KK","BK"],ERANAMES:["Kabla ya Kristo","Baada ya Kristo"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"Januari Februari Machi Aprili Mei Juni Julai Agosti Septemba Oktoba Novemba Desemba".split(" "),STANDALONEMONTHS:"Januari Februari Machi Aprili Mei Juni Julai Agosti Septemba Oktoba Novemba Desemba".split(" "),SHORTMONTHS:"Jan Feb Mac Apr Mei Jun Jul Ago Sep Okt Nov Des".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mac Apr Mei Jun Jul Ago Sep Okt Nov Des".split(" "),
WEEKDAYS:"Jumapili Jumatatu Jumanne Jumatano Alhamisi Ijumaa Jumamosi".split(" "),STANDALONEWEEKDAYS:"Jumapili Jumatatu Jumanne Jumatano Alhamisi Ijumaa Jumamosi".split(" "),SHORTWEEKDAYS:"J2 J3 J4 J5 Alh Ij J1".split(" "),STANDALONESHORTWEEKDAYS:"J2 J3 J4 J5 Alh Ij J1".split(" "),NARROWWEEKDAYS:"2345AI1".split(""),STANDALONENARROWWEEKDAYS:"2345AI1".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["Robo 1","Robo 2","Robo 3","Robo 4"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, d MMMM y","d MMMM y",
"d MMM y","dd/MM/y"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_ta={ERAS:["\u0b95\u0bbf.\u0bae\u0bc1.","\u0b95\u0bbf.\u0baa\u0bbf."],ERANAMES:["\u0b95\u0bbf\u0bb1\u0bbf\u0bb8\u0bcd\u0ba4\u0bc1\u0bb5\u0bc1\u0b95\u0bcd\u0b95\u0bc1 \u0bae\u0bc1\u0ba9\u0bcd","\u0b85\u0ba9\u0bcb \u0b9f\u0bcb\u0bae\u0bbf\u0ba9\u0bbf"],NARROWMONTHS:"\u0b9c \u0baa\u0bbf \u0bae\u0bbe \u0b8f \u0bae\u0bc7 \u0b9c\u0bc2 \u0b9c\u0bc2 \u0b86 \u0b9a\u0bc6 \u0b85 \u0ba8 \u0b9f\u0bbf".split(" "),STANDALONENARROWMONTHS:"\u0b9c \u0baa\u0bbf \u0bae\u0bbe \u0b8f \u0bae\u0bc7 \u0b9c\u0bc2 \u0b9c\u0bc2 \u0b86 \u0b9a\u0bc6 \u0b85 \u0ba8 \u0b9f\u0bbf".split(" "),
MONTHS:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf \u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf \u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd \u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd \u0bae\u0bc7 \u0b9c\u0bc2\u0ba9\u0bcd \u0b9c\u0bc2\u0bb2\u0bc8 \u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd \u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bae\u0bcd\u0baa\u0bb0\u0bcd \u0b85\u0b95\u0bcd\u0b9f\u0bcb\u0baa\u0bb0\u0bcd \u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd \u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split(" "),STANDALONEMONTHS:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf \u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf \u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd \u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd \u0bae\u0bc7 \u0b9c\u0bc2\u0ba9\u0bcd \u0b9c\u0bc2\u0bb2\u0bc8 \u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bc1 \u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bae\u0bcd\u0baa\u0bb0\u0bcd \u0b85\u0b95\u0bcd\u0b9f\u0bcb\u0baa\u0bb0\u0bcd \u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd \u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split(" "),
SHORTMONTHS:"\u0b9c\u0ba9. \u0baa\u0bbf\u0baa\u0bcd. \u0bae\u0bbe\u0bb0\u0bcd. \u0b8f\u0baa\u0bcd. \u0bae\u0bc7 \u0b9c\u0bc2\u0ba9\u0bcd \u0b9c\u0bc2\u0bb2\u0bc8 \u0b86\u0b95. \u0b9a\u0bc6\u0baa\u0bcd. \u0b85\u0b95\u0bcd. \u0ba8\u0bb5. \u0b9f\u0bbf\u0b9a.".split(" "),STANDALONESHORTMONTHS:"\u0b9c\u0ba9. \u0baa\u0bbf\u0baa\u0bcd. \u0bae\u0bbe\u0bb0\u0bcd. \u0b8f\u0baa\u0bcd. \u0bae\u0bc7 \u0b9c\u0bc2\u0ba9\u0bcd \u0b9c\u0bc2\u0bb2\u0bc8 \u0b86\u0b95. \u0b9a\u0bc6\u0baa\u0bcd. \u0b85\u0b95\u0bcd. \u0ba8\u0bb5. \u0b9f\u0bbf\u0b9a.".split(" "),
WEEKDAYS:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1 \u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd \u0baa\u0bc1\u0ba4\u0ba9\u0bcd \u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd \u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf \u0b9a\u0ba9\u0bbf".split(" "),STANDALONEWEEKDAYS:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1 \u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd \u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd \u0baa\u0bc1\u0ba4\u0ba9\u0bcd \u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd \u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf \u0b9a\u0ba9\u0bbf".split(" "),
SHORTWEEKDAYS:"\u0b9e\u0bbe \u0ba4\u0bbf \u0b9a\u0bc6 \u0baa\u0bc1 \u0bb5\u0bbf \u0bb5\u0bc6 \u0b9a".split(" "),STANDALONESHORTWEEKDAYS:"\u0b9e\u0bbe \u0ba4\u0bbf \u0b9a\u0bc6 \u0baa\u0bc1 \u0bb5\u0bbf \u0bb5\u0bc6 \u0b9a".split(" "),NARROWWEEKDAYS:"\u0b9e\u0bbe \u0ba4\u0bbf \u0b9a\u0bc6 \u0baa\u0bc1 \u0bb5\u0bbf \u0bb5\u0bc6 \u0b9a".split(" "),STANDALONENARROWWEEKDAYS:"\u0b9e\u0bbe \u0ba4\u0bbf \u0b9a\u0bc6 \u0baa\u0bc1 \u0bb5\u0bbf \u0bb5\u0bc6 \u0b9a".split(" "),SHORTQUARTERS:["\u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc11",
"\u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc12","\u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc13","\u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc14"],QUARTERS:["\u0bae\u0bc1\u0ba4\u0bb2\u0bcd \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1","\u0b87\u0bb0\u0ba3\u0bcd\u0b9f\u0bbe\u0bae\u0bcd \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1","\u0bae\u0bc2\u0ba9\u0bcd\u0bb1\u0bbe\u0bae\u0bcd \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1","\u0ba8\u0bbe\u0ba9\u0bcd\u0b95\u0bbe\u0bae\u0bcd \u0b95\u0bbe\u0bb2\u0bbe\u0ba3\u0bcd\u0b9f\u0bc1"],
AMPMS:["\u0bae\u0bc1\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd","\u0baa\u0bbf\u0bb1\u0bcd\u0baa\u0b95\u0bb2\u0bcd"],DATEFORMATS:["EEEE, d MMMM, y","d MMMM, y","d MMM, y","d-M-yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_te={ERAS:["\u0c15\u0c4d\u0c30\u0c40\u0c2a\u0c42","\u0c15\u0c4d\u0c30\u0c40\u0c36"],ERANAMES:["\u0c08\u0c38\u0c3e\u0c2a\u0c42\u0c30\u0c4d\u0c35.","\u0c38\u0c28\u0c4d."],NARROWMONTHS:"\u0c1c \u0c2b\u0c3f \u0c2e\u0c3e \u0c0f \u0c2e\u0c47 \u0c1c\u0c42 \u0c1c\u0c41 \u0c06 \u0c38\u0c46 \u0c05 \u0c28 \u0c21\u0c3f".split(" "),STANDALONENARROWMONTHS:"\u0c1c \u0c2b\u0c3f \u0c2e\u0c3e \u0c0f \u0c2e\u0c47 \u0c1c\u0c42 \u0c1c\u0c41 \u0c06 \u0c38\u0c46 \u0c05 \u0c28 \u0c21\u0c3f".split(" "),
MONTHS:"\u0c1c\u0c28\u0c35\u0c30\u0c3f \u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f \u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f \u0c0e\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d \u0c2e\u0c47 \u0c1c\u0c42\u0c28\u0c4d \u0c1c\u0c41\u0c32\u0c48 \u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41 \u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d \u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d \u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d \u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split(" "),STANDALONEMONTHS:"\u0c1c\u0c28\u0c35\u0c30\u0c3f \u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f \u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f \u0c0e\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d \u0c2e\u0c47 \u0c1c\u0c42\u0c28\u0c4d \u0c1c\u0c42\u0c32\u0c48 \u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41 \u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d \u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d \u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d \u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split(" "),
SHORTMONTHS:"\u0c1c\u0c28 \u0c2b\u0c3f\u0c2c\u0c4d\u0c30 \u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f \u0c0f\u0c2a\u0c4d\u0c30\u0c3f \u0c2e\u0c47 \u0c1c\u0c42\u0c28\u0c4d \u0c1c\u0c41\u0c32\u0c48 \u0c06\u0c17 \u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02 \u0c05\u0c15\u0c4d\u0c1f\u0c4b \u0c28\u0c35\u0c02 \u0c21\u0c3f\u0c38\u0c46\u0c02".split(" "),STANDALONESHORTMONTHS:"\u0c1c\u0c28 \u0c2b\u0c3f\u0c2c\u0c4d\u0c30 \u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f \u0c0f\u0c2a\u0c4d\u0c30\u0c3f \u0c2e\u0c47 \u0c1c\u0c42\u0c28\u0c4d \u0c1c\u0c41\u0c32\u0c48 \u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41 \u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02 \u0c05\u0c15\u0c4d\u0c1f\u0c4b \u0c28\u0c35\u0c02 \u0c21\u0c3f\u0c38\u0c46\u0c02".split(" "),
WEEKDAYS:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02 \u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02 \u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02 \u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02 \u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02 \u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02 \u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split(" "),STANDALONEWEEKDAYS:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02 \u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02 \u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02 \u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02 \u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02 \u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02 \u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split(" "),
SHORTWEEKDAYS:"\u0c06\u0c26\u0c3f \u0c38\u0c4b\u0c2e \u0c2e\u0c02\u0c17\u0c33 \u0c2c\u0c41\u0c27 \u0c17\u0c41\u0c30\u0c41 \u0c36\u0c41\u0c15\u0c4d\u0c30 \u0c36\u0c28\u0c3f".split(" "),STANDALONESHORTWEEKDAYS:"\u0c06\u0c26\u0c3f \u0c38\u0c4b\u0c2e \u0c2e\u0c02\u0c17\u0c33 \u0c2c\u0c41\u0c27 \u0c17\u0c41\u0c30\u0c41 \u0c36\u0c41\u0c15\u0c4d\u0c30 \u0c36\u0c28\u0c3f".split(" "),NARROWWEEKDAYS:"\u0c06 \u0c38\u0c4b \u0c2e \u0c2c\u0c41 \u0c17\u0c41 \u0c36\u0c41 \u0c36".split(" "),STANDALONENARROWWEEKDAYS:"\u0c06 \u0c38\u0c4b \u0c2e \u0c2c\u0c41 \u0c17\u0c41 \u0c36\u0c41 \u0c36".split(" "),
SHORTQUARTERS:["\u0c24\u0c4d\u0c30\u0c481","\u0c24\u0c4d\u0c30\u0c482","\u0c24\u0c4d\u0c30\u0c483","\u0c24\u0c4d\u0c30\u0c484"],QUARTERS:["1\u0c35 \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c02","2\u0c35 \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c02","3\u0c35 \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c02","4\u0c35 \u0c24\u0c4d\u0c30\u0c48\u0c2e\u0c3e\u0c38\u0c02"],AMPMS:["AM","PM"],DATEFORMATS:["d MMMM y EEEE","d MMMM y","d MMM y","dd-MM-yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a",
"h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[6,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_th={ERAS:["\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19 \u0e04.\u0e28.","\u0e04.\u0e28."],ERANAMES:["\u0e1b\u0e35\u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a","\u0e04\u0e23\u0e34\u0e2a\u0e15\u0e4c\u0e28\u0e31\u0e01\u0e23\u0e32\u0e0a"],NARROWMONTHS:"\u0e21.\u0e04. \u0e01.\u0e1e. \u0e21\u0e35.\u0e04. \u0e40\u0e21.\u0e22. \u0e1e.\u0e04. \u0e21\u0e34.\u0e22. \u0e01.\u0e04. \u0e2a.\u0e04. \u0e01.\u0e22. \u0e15.\u0e04. \u0e1e.\u0e22. \u0e18.\u0e04.".split(" "),STANDALONENARROWMONTHS:"\u0e21.\u0e04. \u0e01.\u0e1e. \u0e21\u0e35.\u0e04. \u0e40\u0e21.\u0e22. \u0e1e.\u0e04. \u0e21\u0e34.\u0e22. \u0e01.\u0e04. \u0e2a.\u0e04. \u0e01.\u0e22. \u0e15.\u0e04. \u0e1e.\u0e22. \u0e18.\u0e04.".split(" "),
MONTHS:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21 \u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c \u0e21\u0e35\u0e19\u0e32\u0e04\u0e21 \u0e40\u0e21\u0e29\u0e32\u0e22\u0e19 \u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21 \u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19 \u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21 \u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21 \u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19 \u0e15\u0e38\u0e25\u0e32\u0e04\u0e21 \u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19 \u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split(" "),
STANDALONEMONTHS:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21 \u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c \u0e21\u0e35\u0e19\u0e32\u0e04\u0e21 \u0e40\u0e21\u0e29\u0e32\u0e22\u0e19 \u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21 \u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19 \u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21 \u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21 \u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19 \u0e15\u0e38\u0e25\u0e32\u0e04\u0e21 \u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19 \u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split(" "),
SHORTMONTHS:"\u0e21.\u0e04. \u0e01.\u0e1e. \u0e21\u0e35.\u0e04. \u0e40\u0e21.\u0e22. \u0e1e.\u0e04. \u0e21\u0e34.\u0e22. \u0e01.\u0e04. \u0e2a.\u0e04. \u0e01.\u0e22. \u0e15.\u0e04. \u0e1e.\u0e22. \u0e18.\u0e04.".split(" "),STANDALONESHORTMONTHS:"\u0e21.\u0e04. \u0e01.\u0e1e. \u0e21\u0e35.\u0e04. \u0e40\u0e21.\u0e22. \u0e1e.\u0e04. \u0e21\u0e34.\u0e22. \u0e01.\u0e04. \u0e2a.\u0e04. \u0e01.\u0e22. \u0e15.\u0e04. \u0e1e.\u0e22. \u0e18.\u0e04.".split(" "),WEEKDAYS:"\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c \u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c \u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23 \u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18 \u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35 \u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c \u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c".split(" "),
STANDALONEWEEKDAYS:"\u0e27\u0e31\u0e19\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c \u0e27\u0e31\u0e19\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c \u0e27\u0e31\u0e19\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23 \u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18 \u0e27\u0e31\u0e19\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35 \u0e27\u0e31\u0e19\u0e28\u0e38\u0e01\u0e23\u0e4c \u0e27\u0e31\u0e19\u0e40\u0e2a\u0e32\u0e23\u0e4c".split(" "),SHORTWEEKDAYS:"\u0e2d\u0e32. \u0e08. \u0e2d. \u0e1e. \u0e1e\u0e24. \u0e28. \u0e2a.".split(" "),STANDALONESHORTWEEKDAYS:"\u0e2d\u0e32. \u0e08. \u0e2d. \u0e1e. \u0e1e\u0e24. \u0e28. \u0e2a.".split(" "),
NARROWWEEKDAYS:"\u0e2d\u0e32 \u0e08 \u0e2d \u0e1e \u0e1e\u0e24 \u0e28 \u0e2a".split(" "),STANDALONENARROWWEEKDAYS:"\u0e2d\u0e32 \u0e08 \u0e2d \u0e1e \u0e1e\u0e24 \u0e28 \u0e2a".split(" "),SHORTQUARTERS:["\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a 1","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a 2","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a 3","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a 4"],QUARTERS:["\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a 1","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a 2","\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a 3",
"\u0e44\u0e15\u0e23\u0e21\u0e32\u0e2a 4"],AMPMS:["\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07","\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"],DATEFORMATS:["EEEE\u0e17\u0e35\u0e48 d MMMM G y","d MMMM y","d MMM y","d/M/yy"],TIMEFORMATS:["H \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 mm \u0e19\u0e32\u0e17\u0e35 ss \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35 zzzz","H \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 mm \u0e19\u0e32\u0e17\u0e35 ss \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35 z","HH:mm:ss",
"HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_tl={ERAS:["BC","AD"],ERANAMES:["BC","AD"],NARROWMONTHS:"EPMAMHHASOND".split(""),STANDALONENARROWMONTHS:"EPMAMHHASOND".split(""),MONTHS:"Enero Pebrero Marso Abril Mayo Hunyo Hulyo Agosto Setyembre Oktubre Nobyembre Disyembre".split(" "),STANDALONEMONTHS:"Enero Pebrero Marso Abril Mayo Hunyo Hulyo Agosto Setyembre Oktubre Nobyembre Disyembre".split(" "),SHORTMONTHS:"Ene Peb Mar Abr May Hun Hul Ago Set Okt Nob Dis".split(" "),STANDALONESHORTMONTHS:"Ene Peb Mar Abr May Hun Hul Ago Set Okt Nob Dis".split(" "),
WEEKDAYS:"Linggo Lunes Martes Miyerkules Huwebes Biyernes Sabado".split(" "),STANDALONEWEEKDAYS:"Linggo Lunes Martes Miyerkules Huwebes Biyernes Sabado".split(" "),SHORTWEEKDAYS:"Lin Lun Mar Miy Huw Biy Sab".split(" "),STANDALONESHORTWEEKDAYS:"Lin Lun Mar Miy Huw Biy Sab".split(" "),NARROWWEEKDAYS:"LLMMHBS".split(""),STANDALONENARROWWEEKDAYS:"LLMMHBS".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["ika-1 quarter","ika-2 quarter","ika-3 quarter","ika-4 na quarter"],AMPMS:["AM","PM"],DATEFORMATS:["EEEE, MMMM d, y",
"MMMM d, y","MMM d, y","M/d/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} 'ng' {0}","{1} 'ng' {0}","{1}, {0}","{1}, {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_tr={ERAS:["M\u00d6","MS"],ERANAMES:["Milattan \u00d6nce","Milattan Sonra"],NARROWMONTHS:"O\u015eMNMHTAEEKA".split(""),STANDALONENARROWMONTHS:"O\u015eMNMHTAEEKA".split(""),MONTHS:"Ocak \u015eubat Mart Nisan May\u0131s Haziran Temmuz A\u011fustos Eyl\u00fcl Ekim Kas\u0131m Aral\u0131k".split(" "),STANDALONEMONTHS:"Ocak \u015eubat Mart Nisan May\u0131s Haziran Temmuz A\u011fustos Eyl\u00fcl Ekim Kas\u0131m Aral\u0131k".split(" "),SHORTMONTHS:"Oca \u015eub Mar Nis May Haz Tem A\u011fu Eyl Eki Kas Ara".split(" "),
STANDALONESHORTMONTHS:"Oca \u015eub Mar Nis May Haz Tem A\u011fu Eyl Eki Kas Ara".split(" "),WEEKDAYS:"Pazar Pazartesi Sal\u0131 \u00c7ar\u015famba Per\u015fembe Cuma Cumartesi".split(" "),STANDALONEWEEKDAYS:"Pazar Pazartesi Sal\u0131 \u00c7ar\u015famba Per\u015fembe Cuma Cumartesi".split(" "),SHORTWEEKDAYS:"Paz Pzt Sal \u00c7ar Per Cum Cmt".split(" "),STANDALONESHORTWEEKDAYS:"Paz Pzt Sal \u00c7ar Per Cum Cmt".split(" "),NARROWWEEKDAYS:"PPS\u00c7PCC".split(""),STANDALONENARROWWEEKDAYS:"PPS\u00c7PCC".split(""),
SHORTQUARTERS:["\u00c71","\u00c72","\u00c73","\u00c74"],QUARTERS:["1. \u00e7eyrek","2. \u00e7eyrek","3. \u00e7eyrek","4. \u00e7eyrek"],AMPMS:["\u00d6\u00d6","\u00d6S"],DATEFORMATS:["d MMMM y EEEE","d MMMM y","d MMM y","d MM y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_uk={ERAS:["\u0434\u043e \u043d.\u0435.","\u043d.\u0435."],ERANAMES:["\u0434\u043e \u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438","\u043d\u0430\u0448\u043e\u0457 \u0435\u0440\u0438"],NARROWMONTHS:"\u0421\u041b\u0411\u041a\u0422\u0427\u041b\u0421\u0412\u0416\u041b\u0413".split(""),STANDALONENARROWMONTHS:"\u0421\u041b\u0411\u041a\u0422\u0427\u041b\u0421\u0412\u0416\u041b\u0413".split(""),MONTHS:"\u0441\u0456\u0447\u043d\u044f \u043b\u044e\u0442\u043e\u0433\u043e \u0431\u0435\u0440\u0435\u0437\u043d\u044f \u043a\u0432\u0456\u0442\u043d\u044f \u0442\u0440\u0430\u0432\u043d\u044f \u0447\u0435\u0440\u0432\u043d\u044f \u043b\u0438\u043f\u043d\u044f \u0441\u0435\u0440\u043f\u043d\u044f \u0432\u0435\u0440\u0435\u0441\u043d\u044f \u0436\u043e\u0432\u0442\u043d\u044f \u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430 \u0433\u0440\u0443\u0434\u043d\u044f".split(" "),
STANDALONEMONTHS:"\u0421\u0456\u0447\u0435\u043d\u044c \u041b\u044e\u0442\u0438\u0439 \u0411\u0435\u0440\u0435\u0437\u0435\u043d\u044c \u041a\u0432\u0456\u0442\u0435\u043d\u044c \u0422\u0440\u0430\u0432\u0435\u043d\u044c \u0427\u0435\u0440\u0432\u0435\u043d\u044c \u041b\u0438\u043f\u0435\u043d\u044c \u0421\u0435\u0440\u043f\u0435\u043d\u044c \u0412\u0435\u0440\u0435\u0441\u0435\u043d\u044c \u0416\u043e\u0432\u0442\u0435\u043d\u044c \u041b\u0438\u0441\u0442\u043e\u043f\u0430\u0434 \u0413\u0440\u0443\u0434\u0435\u043d\u044c".split(" "),
SHORTMONTHS:"\u0441\u0456\u0447. \u043b\u044e\u0442. \u0431\u0435\u0440. \u043a\u0432\u0456\u0442. \u0442\u0440\u0430\u0432. \u0447\u0435\u0440\u0432. \u043b\u0438\u043f. \u0441\u0435\u0440\u043f. \u0432\u0435\u0440. \u0436\u043e\u0432\u0442. \u043b\u0438\u0441\u0442. \u0433\u0440\u0443\u0434.".split(" "),STANDALONESHORTMONTHS:"\u0421\u0456\u0447 \u041b\u044e\u0442 \u0411\u0435\u0440 \u041a\u0432\u0456 \u0422\u0440\u0430 \u0427\u0435\u0440 \u041b\u0438\u043f \u0421\u0435\u0440 \u0412\u0435\u0440 \u0416\u043e\u0432 \u041b\u0438\u0441 \u0413\u0440\u0443".split(" "),
WEEKDAYS:"\u043d\u0435\u0434\u0456\u043b\u044f \u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a \u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a \u0441\u0435\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0435\u0440 \u043f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f \u0441\u0443\u0431\u043e\u0442\u0430".split(" "),STANDALONEWEEKDAYS:"\u041d\u0435\u0434\u0456\u043b\u044f \u041f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a \u0412\u0456\u0432\u0442\u043e\u0440\u043e\u043a \u0421\u0435\u0440\u0435\u0434\u0430 \u0427\u0435\u0442\u0432\u0435\u0440 \u041f\u02bc\u044f\u0442\u043d\u0438\u0446\u044f \u0421\u0443\u0431\u043e\u0442\u0430".split(" "),
SHORTWEEKDAYS:"\u041d\u0434 \u041f\u043d \u0412\u0442 \u0421\u0440 \u0427\u0442 \u041f\u0442 \u0421\u0431".split(" "),STANDALONESHORTWEEKDAYS:"\u041d\u0434 \u041f\u043d \u0412\u0442 \u0421\u0440 \u0427\u0442 \u041f\u0442 \u0421\u0431".split(" "),NARROWWEEKDAYS:"\u041d\u041f\u0412\u0421\u0427\u041f\u0421".split(""),STANDALONENARROWWEEKDAYS:"\u041d\u041f\u0412\u0421\u0427\u041f\u0421".split(""),SHORTQUARTERS:["I \u043a\u0432.","II \u043a\u0432.","III \u043a\u0432.","IV \u043a\u0432."],QUARTERS:["I \u043a\u0432\u0430\u0440\u0442\u0430\u043b",
"II \u043a\u0432\u0430\u0440\u0442\u0430\u043b","III \u043a\u0432\u0430\u0440\u0442\u0430\u043b","IV \u043a\u0432\u0430\u0440\u0442\u0430\u043b"],AMPMS:["\u0434\u043f","\u043f\u043f"],DATEFORMATS:["EEEE, d MMMM y '\u0440'.","d MMMM y '\u0440'.","d MMM y","dd.MM.yy"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_ur={ERAS:["\u0642 \u0645","\u0639\u06cc\u0633\u0648\u06cc \u0633\u0646"],ERANAMES:["\u0642\u0628\u0644 \u0645\u0633\u06cc\u062d","\u0639\u06cc\u0633\u0648\u06cc \u0633\u0646"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"\u062c\u0646\u0648\u0631\u06cc \u0641\u0631\u0648\u0631\u06cc \u0645\u0627\u0631\u0686 \u0627\u067e\u0631\u06cc\u0644 \u0645\u0626\u06cc \u062c\u0648\u0646 \u062c\u0648\u0644\u0627\u0626\u06cc \u0627\u06af\u0633\u062a \u0633\u062a\u0645\u0628\u0631 \u0627\u06a9\u062a\u0648\u0628\u0631 \u0646\u0648\u0645\u0628\u0631 \u062f\u0633\u0645\u0628\u0631".split(" "),
STANDALONEMONTHS:"\u062c\u0646\u0648\u0631\u06cc \u0641\u0631\u0648\u0631\u06cc \u0645\u0627\u0631\u0686 \u0627\u067e\u0631\u06cc\u0644 \u0645\u0626\u06cc \u062c\u0648\u0646 \u062c\u0648\u0644\u0627\u0626\u06cc \u0627\u06af\u0633\u062a \u0633\u062a\u0645\u0628\u0631 \u0627\u06a9\u062a\u0648\u0628\u0631 \u0646\u0648\u0645\u0628\u0631 \u062f\u0633\u0645\u0628\u0631".split(" "),SHORTMONTHS:"\u062c\u0646\u0648\u0631\u06cc \u0641\u0631\u0648\u0631\u06cc \u0645\u0627\u0631\u0686 \u0627\u067e\u0631\u06cc\u0644 \u0645\u0626\u06cc \u062c\u0648\u0646 \u062c\u0648\u0644\u0627\u0626\u06cc \u0627\u06af\u0633\u062a \u0633\u062a\u0645\u0628\u0631 \u0627\u06a9\u062a\u0648\u0628\u0631 \u0646\u0648\u0645\u0628\u0631 \u062f\u0633\u0645\u0628\u0631".split(" "),
STANDALONESHORTMONTHS:"\u062c\u0646\u0648\u0631\u06cc \u0641\u0631\u0648\u0631\u06cc \u0645\u0627\u0631\u0686 \u0627\u067e\u0631\u06cc\u0644 \u0645\u0626\u06cc \u062c\u0648\u0646 \u062c\u0648\u0644\u0627\u0626\u06cc \u0627\u06af\u0633\u062a \u0633\u062a\u0645\u0628\u0631 \u0627\u06a9\u062a\u0648\u0628\u0631 \u0646\u0648\u0645\u0628\u0631 \u062f\u0633\u0645\u0628\u0631".split(" "),WEEKDAYS:"\u0627\u062a\u0648\u0627\u0631 \u0633\u0648\u0645\u0648\u0627\u0631 \u0645\u0646\u06af\u0644 \u0628\u062f\u06be \u062c\u0645\u0639\u0631\u0627\u062a \u062c\u0645\u0639\u06c1 \u06c1\u0641\u062a\u06c1".split(" "),
STANDALONEWEEKDAYS:"\u0627\u062a\u0648\u0627\u0631 \u0633\u0648\u0645\u0648\u0627\u0631 \u0645\u0646\u06af\u0644 \u0628\u062f\u06be \u062c\u0645\u0639\u0631\u0627\u062a \u062c\u0645\u0639\u06c1 \u06c1\u0641\u062a\u06c1".split(" "),SHORTWEEKDAYS:"\u0627\u062a\u0648\u0627\u0631 \u0633\u0648\u0645\u0648\u0627\u0631 \u0645\u0646\u06af\u0644 \u0628\u062f\u06be \u062c\u0645\u0639\u0631\u0627\u062a \u062c\u0645\u0639\u06c1 \u06c1\u0641\u062a\u06c1".split(" "),STANDALONESHORTWEEKDAYS:"\u0627\u062a\u0648\u0627\u0631 \u0633\u0648\u0645\u0648\u0627\u0631 \u0645\u0646\u06af\u0644 \u0628\u062f\u06be \u062c\u0645\u0639\u0631\u0627\u062a \u062c\u0645\u0639\u06c1 \u06c1\u0641\u062a\u06c1".split(" "),
NARROWWEEKDAYS:"SMTWTFS".split(""),STANDALONENARROWWEEKDAYS:"SMTWTFS".split(""),SHORTQUARTERS:["\u067e\u06c1\u0644\u06cc \u0633\u06c1 \u0645\u0627\u06c1\u06cc","\u062f\u0648\u0633\u0631\u06cc \u0633\u06c1 \u0645\u0627\u06c1\u06cc","\u062a\u06cc\u0633\u0631\u06cc \u0633\u06c1 \u0645\u0627\u06c1\u06cc","\u0686\u0648\u062a\u0647\u06cc \u0633\u06c1 \u0645\u0627\u06c1\u06cc"],QUARTERS:["\u067e\u06c1\u0644\u06cc \u0633\u06c1 \u0645\u0627\u06c1\u06cc","\u062f\u0648\u0633\u0631\u06cc \u0633\u06c1 \u0645\u0627\u06c1\u06cc",
"\u062a\u06cc\u0633\u0631\u06cc \u0633\u06c1 \u0645\u0627\u06c1\u06cc","\u0686\u0648\u062a\u0647\u06cc \u0633\u06c1 \u0645\u0627\u06c1\u06cc"],AMPMS:["\u0642\u0628\u0644 \u062f\u0648\u067e\u06c1\u0631","\u0628\u0639\u062f \u062f\u0648\u067e\u06c1\u0631"],DATEFORMATS:["EEEE\u060c d MMMM\u060c y","d MMMM\u060c y","d MMM\u060c y","d/M/yy"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_vi={ERAS:["tr. CN","sau CN"],ERANAMES:["tr. CN","sau CN"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"th\u00e1ng 1;th\u00e1ng 2;th\u00e1ng 3;th\u00e1ng 4;th\u00e1ng 5;th\u00e1ng 6;th\u00e1ng 7;th\u00e1ng 8;th\u00e1ng 9;th\u00e1ng 10;th\u00e1ng 11;th\u00e1ng 12".split(";"),STANDALONEMONTHS:"Th\u00e1ng 1;Th\u00e1ng 2;Th\u00e1ng 3;Th\u00e1ng 4;Th\u00e1ng 5;Th\u00e1ng 6;Th\u00e1ng 7;Th\u00e1ng 8;Th\u00e1ng 9;Th\u00e1ng 10;Th\u00e1ng 11;Th\u00e1ng 12".split(";"),
SHORTMONTHS:"thg 1;thg 2;thg 3;thg 4;thg 5;thg 6;thg 7;thg 8;thg 9;thg 10;thg 11;thg 12".split(";"),STANDALONESHORTMONTHS:"Thg 1;Thg 2;Thg 3;Thg 4;Thg 5;Thg 6;Thg 7;Thg 8;Thg 9;Thg 10;Thg 11;Thg 12".split(";"),WEEKDAYS:"Ch\u1ee7 Nh\u1eadt;Th\u1ee9 Hai;Th\u1ee9 Ba;Th\u1ee9 T\u01b0;Th\u1ee9 N\u0103m;Th\u1ee9 S\u00e1u;Th\u1ee9 B\u1ea3y".split(";"),STANDALONEWEEKDAYS:"Ch\u1ee7 Nh\u1eadt;Th\u1ee9 Hai;Th\u1ee9 Ba;Th\u1ee9 T\u01b0;Th\u1ee9 N\u0103m;Th\u1ee9 S\u00e1u;Th\u1ee9 B\u1ea3y".split(";"),SHORTWEEKDAYS:"CN;Th 2;Th 3;Th 4;Th 5;Th 6;Th 7".split(";"),
STANDALONESHORTWEEKDAYS:"CN;Th 2;Th 3;Th 4;Th 5;Th 6;Th 7".split(";"),NARROWWEEKDAYS:"CN T2 T3 T4 T5 T6 T7".split(" "),STANDALONENARROWWEEKDAYS:"CN T2 T3 T4 T5 T6 T7".split(" "),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["Qu\u00fd 1","Qu\u00fd 2","Qu\u00fd 3","Qu\u00fd 4"],AMPMS:["SA","CH"],DATEFORMATS:["EEEE, 'ng\u00e0y' dd MMMM 'n\u0103m' y","'Ng\u00e0y' dd 'th\u00e1ng' MM 'n\u0103m' y","dd-MM-y","dd/MM/y"],TIMEFORMATS:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],DATETIMEFORMATS:["{0} {1}",
"{0} {1}","{0} {1}","{0} {1}"],FIRSTDAYOFWEEK:0,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:6};
goog.i18n.DateTimeSymbols_zh={ERAS:["\u516c\u5143\u524d","\u516c\u5143"],ERANAMES:["\u516c\u5143\u524d","\u516c\u5143"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"\u4e00\u6708 \u4e8c\u6708 \u4e09\u6708 \u56db\u6708 \u4e94\u6708 \u516d\u6708 \u4e03\u6708 \u516b\u6708 \u4e5d\u6708 \u5341\u6708 \u5341\u4e00\u6708 \u5341\u4e8c\u6708".split(" "),STANDALONEMONTHS:"\u4e00\u6708 \u4e8c\u6708 \u4e09\u6708 \u56db\u6708 \u4e94\u6708 \u516d\u6708 \u4e03\u6708 \u516b\u6708 \u4e5d\u6708 \u5341\u6708 \u5341\u4e00\u6708 \u5341\u4e8c\u6708".split(" "),
SHORTMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),STANDALONESHORTMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),WEEKDAYS:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),STANDALONEWEEKDAYS:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),
SHORTWEEKDAYS:"\u5468\u65e5 \u5468\u4e00 \u5468\u4e8c \u5468\u4e09 \u5468\u56db \u5468\u4e94 \u5468\u516d".split(" "),STANDALONESHORTWEEKDAYS:"\u5468\u65e5 \u5468\u4e00 \u5468\u4e8c \u5468\u4e09 \u5468\u56db \u5468\u4e94 \u5468\u516d".split(" "),NARROWWEEKDAYS:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),STANDALONENARROWWEEKDAYS:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),SHORTQUARTERS:["1\u5b63\u5ea6","2\u5b63\u5ea6","3\u5b63\u5ea6","4\u5b63\u5ea6"],QUARTERS:["\u7b2c\u4e00\u5b63\u5ea6",
"\u7b2c\u4e8c\u5b63\u5ea6","\u7b2c\u4e09\u5b63\u5ea6","\u7b2c\u56db\u5b63\u5ea6"],AMPMS:["\u4e0a\u5348","\u4e0b\u5348"],DATEFORMATS:["y\u5e74M\u6708d\u65e5EEEE","y\u5e74M\u6708d\u65e5","y\u5e74M\u6708d\u65e5","yy/M/d"],TIMEFORMATS:["zzzzah:mm:ss","zah:mm:ss","ah:mm:ss","ah:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};goog.i18n.DateTimeSymbols_zh_CN=goog.i18n.DateTimeSymbols_zh;
goog.i18n.DateTimeSymbols_zh_HK={ERAS:["\u897f\u5143\u524d","\u897f\u5143"],ERANAMES:["\u897f\u5143\u524d","\u897f\u5143"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),STANDALONEMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),SHORTMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),
STANDALONESHORTMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),WEEKDAYS:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),STANDALONEWEEKDAYS:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),SHORTWEEKDAYS:"\u9031\u65e5 \u9031\u4e00 \u9031\u4e8c \u9031\u4e09 \u9031\u56db \u9031\u4e94 \u9031\u516d".split(" "),
STANDALONESHORTWEEKDAYS:"\u9031\u65e5 \u9031\u4e00 \u9031\u4e8c \u9031\u4e09 \u9031\u56db \u9031\u4e94 \u9031\u516d".split(" "),NARROWWEEKDAYS:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),STANDALONENARROWWEEKDAYS:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),SHORTQUARTERS:["1\u5b63","2\u5b63","3\u5b63","4\u5b63"],QUARTERS:["\u7b2c1\u5b63","\u7b2c2\u5b63","\u7b2c3\u5b63","\u7b2c4\u5b63"],AMPMS:["\u4e0a\u5348","\u4e0b\u5348"],DATEFORMATS:["y\u5e74M\u6708d\u65e5EEEE","y\u5e74M\u6708d\u65e5",
"y\u5e74M\u6708d\u65e5","d/M/yy"],TIMEFORMATS:["ah:mm:ss [zzzz]","ah:mm:ss [z]","ah:mm:ss","ah:mm"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1}{0}","{1}{0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_zh_TW={ERAS:["\u897f\u5143\u524d","\u897f\u5143"],ERANAMES:["\u897f\u5143\u524d","\u897f\u5143"],NARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),STANDALONENARROWMONTHS:"1 2 3 4 5 6 7 8 9 10 11 12".split(" "),MONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),STANDALONEMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),SHORTMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),
STANDALONESHORTMONTHS:"1\u6708 2\u6708 3\u6708 4\u6708 5\u6708 6\u6708 7\u6708 8\u6708 9\u6708 10\u6708 11\u6708 12\u6708".split(" "),WEEKDAYS:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),STANDALONEWEEKDAYS:"\u661f\u671f\u65e5 \u661f\u671f\u4e00 \u661f\u671f\u4e8c \u661f\u671f\u4e09 \u661f\u671f\u56db \u661f\u671f\u4e94 \u661f\u671f\u516d".split(" "),SHORTWEEKDAYS:"\u9031\u65e5 \u9031\u4e00 \u9031\u4e8c \u9031\u4e09 \u9031\u56db \u9031\u4e94 \u9031\u516d".split(" "),
STANDALONESHORTWEEKDAYS:"\u9031\u65e5 \u9031\u4e00 \u9031\u4e8c \u9031\u4e09 \u9031\u56db \u9031\u4e94 \u9031\u516d".split(" "),NARROWWEEKDAYS:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),STANDALONENARROWWEEKDAYS:"\u65e5\u4e00\u4e8c\u4e09\u56db\u4e94\u516d".split(""),SHORTQUARTERS:["1\u5b63","2\u5b63","3\u5b63","4\u5b63"],QUARTERS:["\u7b2c1\u5b63","\u7b2c2\u5b63","\u7b2c3\u5b63","\u7b2c4\u5b63"],AMPMS:["\u4e0a\u5348","\u4e0b\u5348"],DATEFORMATS:["y\u5e74M\u6708d\u65e5EEEE","y\u5e74M\u6708d\u65e5",
"y\u5e74M\u6708d\u65e5","y/M/d"],TIMEFORMATS:["zzzzah\u6642mm\u5206ss\u79d2","zah\u6642mm\u5206ss\u79d2","ah:mm:ss","ah:mm"],DATETIMEFORMATS:["{1}{0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols_zu={ERAS:["BC","AD"],ERANAMES:["BC","AD"],NARROWMONTHS:"JFMAMJJASOND".split(""),STANDALONENARROWMONTHS:"JFMAMJJASOND".split(""),MONTHS:"Januwari Februwari Mashi Apreli Meyi Juni Julayi Agasti Septhemba Okthoba Novemba Disemba".split(" "),STANDALONEMONTHS:"uJanuwari uFebruwari uMashi u-Apreli uMeyi uJuni uJulayi uAgasti uSepthemba u-Okthoba uNovemba uDisemba".split(" "),SHORTMONTHS:"Jan Feb Mas Apr Mey Jun Jul Aga Sep Okt Nov Dis".split(" "),STANDALONESHORTMONTHS:"Jan Feb Mas Apr Mey Jun Jul Aga Sep Okt Nov Dis".split(" "),
WEEKDAYS:"Sonto Msombuluko Lwesibili Lwesithathu Lwesine Lwesihlanu Mgqibelo".split(" "),STANDALONEWEEKDAYS:"Sonto Msombuluko Lwesibili Lwesithathu Lwesine Lwesihlanu Mgqibelo".split(" "),SHORTWEEKDAYS:"Son Mso Bil Tha Sin Hla Mgq".split(" "),STANDALONESHORTWEEKDAYS:"Son Mso Bil Tha Sin Hla Mgq".split(" "),NARROWWEEKDAYS:"SMTTSHM".split(""),STANDALONENARROWWEEKDAYS:"SMBTSHM".split(""),SHORTQUARTERS:["Q1","Q2","Q3","Q4"],QUARTERS:["ikota engu-1","ikota engu-2","ikota engu-3","ikota engu-4"],AMPMS:["Ekuseni",
"Ntambama"],DATEFORMATS:["EEEE dd MMMM y","d MMMM y","d MMM y","y-MM-dd"],TIMEFORMATS:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],DATETIMEFORMATS:["{1} {0}","{1} {0}","{1} {0}","{1} {0}"],FIRSTDAYOFWEEK:6,WEEKENDRANGE:[5,6],FIRSTWEEKCUTOFFDAY:5};
goog.i18n.DateTimeSymbols="af"==goog.LOCALE?goog.i18n.DateTimeSymbols_af:"am"==goog.LOCALE?goog.i18n.DateTimeSymbols_am:"ar"==goog.LOCALE?goog.i18n.DateTimeSymbols_ar:"bg"==goog.LOCALE?goog.i18n.DateTimeSymbols_bg:"bn"==goog.LOCALE?goog.i18n.DateTimeSymbols_bn:"br"==goog.LOCALE?goog.i18n.DateTimeSymbols_br:"ca"==goog.LOCALE?goog.i18n.DateTimeSymbols_ca:"chr"==goog.LOCALE?goog.i18n.DateTimeSymbols_chr:"cs"==goog.LOCALE?goog.i18n.DateTimeSymbols_cs:"cy"==goog.LOCALE?goog.i18n.DateTimeSymbols_cy:"da"==
goog.LOCALE?goog.i18n.DateTimeSymbols_da:"de"==goog.LOCALE?goog.i18n.DateTimeSymbols_de:"de_AT"==goog.LOCALE||"de-AT"==goog.LOCALE?goog.i18n.DateTimeSymbols_de_AT:"de_CH"==goog.LOCALE||"de-CH"==goog.LOCALE?goog.i18n.DateTimeSymbols_de:"el"==goog.LOCALE?goog.i18n.DateTimeSymbols_el:"en"==goog.LOCALE?goog.i18n.DateTimeSymbols_en:"en_AU"==goog.LOCALE||"en-AU"==goog.LOCALE?goog.i18n.DateTimeSymbols_en_AU:"en_GB"==goog.LOCALE||"en-GB"==goog.LOCALE?goog.i18n.DateTimeSymbols_en_GB:"en_IE"==goog.LOCALE||
"en-IE"==goog.LOCALE?goog.i18n.DateTimeSymbols_en_IE:"en_IN"==goog.LOCALE||"en-IN"==goog.LOCALE?goog.i18n.DateTimeSymbols_en_IN:"en_SG"==goog.LOCALE||"en-SG"==goog.LOCALE?goog.i18n.DateTimeSymbols_en_SG:"en_US"==goog.LOCALE||"en-US"==goog.LOCALE?goog.i18n.DateTimeSymbols_en:"en_ZA"==goog.LOCALE||"en-ZA"==goog.LOCALE?goog.i18n.DateTimeSymbols_en_ZA:"es"==goog.LOCALE?goog.i18n.DateTimeSymbols_es:"es_419"==goog.LOCALE||"es-419"==goog.LOCALE?goog.i18n.DateTimeSymbols_es:"es_ES"==goog.LOCALE||"es-ES"==
goog.LOCALE?goog.i18n.DateTimeSymbols_es:"et"==goog.LOCALE?goog.i18n.DateTimeSymbols_et:"eu"==goog.LOCALE?goog.i18n.DateTimeSymbols_eu:"fa"==goog.LOCALE?goog.i18n.DateTimeSymbols_fa:"fi"==goog.LOCALE?goog.i18n.DateTimeSymbols_fi:"fil"==goog.LOCALE?goog.i18n.DateTimeSymbols_fil:"fr"==goog.LOCALE?goog.i18n.DateTimeSymbols_fr:"fr_CA"==goog.LOCALE||"fr-CA"==goog.LOCALE?goog.i18n.DateTimeSymbols_fr_CA:"gl"==goog.LOCALE?goog.i18n.DateTimeSymbols_gl:"gsw"==goog.LOCALE?goog.i18n.DateTimeSymbols_gsw:"gu"==
goog.LOCALE?goog.i18n.DateTimeSymbols_gu:"haw"==goog.LOCALE?goog.i18n.DateTimeSymbols_haw:"he"==goog.LOCALE?goog.i18n.DateTimeSymbols_he:"hi"==goog.LOCALE?goog.i18n.DateTimeSymbols_hi:"hr"==goog.LOCALE?goog.i18n.DateTimeSymbols_hr:"hu"==goog.LOCALE?goog.i18n.DateTimeSymbols_hu:"id"==goog.LOCALE?goog.i18n.DateTimeSymbols_id:"in"==goog.LOCALE?goog.i18n.DateTimeSymbols_in:"is"==goog.LOCALE?goog.i18n.DateTimeSymbols_is:"it"==goog.LOCALE?goog.i18n.DateTimeSymbols_it:"iw"==goog.LOCALE?goog.i18n.DateTimeSymbols_iw:
"ja"==goog.LOCALE?goog.i18n.DateTimeSymbols_ja:"kn"==goog.LOCALE?goog.i18n.DateTimeSymbols_kn:"ko"==goog.LOCALE?goog.i18n.DateTimeSymbols_ko:"ln"==goog.LOCALE?goog.i18n.DateTimeSymbols_ln:"lt"==goog.LOCALE?goog.i18n.DateTimeSymbols_lt:"lv"==goog.LOCALE?goog.i18n.DateTimeSymbols_lv:"ml"==goog.LOCALE?goog.i18n.DateTimeSymbols_ml:"mr"==goog.LOCALE?goog.i18n.DateTimeSymbols_mr:"ms"==goog.LOCALE?goog.i18n.DateTimeSymbols_ms:"mt"==goog.LOCALE?goog.i18n.DateTimeSymbols_mt:"nb"==goog.LOCALE?goog.i18n.DateTimeSymbols_nb:
"nl"==goog.LOCALE?goog.i18n.DateTimeSymbols_nl:"no"==goog.LOCALE?goog.i18n.DateTimeSymbols_no:"or"==goog.LOCALE?goog.i18n.DateTimeSymbols_or:"pl"==goog.LOCALE?goog.i18n.DateTimeSymbols_pl:"pt"==goog.LOCALE?goog.i18n.DateTimeSymbols_pt:"pt_BR"==goog.LOCALE||"pt-BR"==goog.LOCALE?goog.i18n.DateTimeSymbols_pt:"pt_PT"==goog.LOCALE||"pt-PT"==goog.LOCALE?goog.i18n.DateTimeSymbols_pt_PT:"ro"==goog.LOCALE?goog.i18n.DateTimeSymbols_ro:"ru"==goog.LOCALE?goog.i18n.DateTimeSymbols_ru:"sk"==goog.LOCALE?goog.i18n.DateTimeSymbols_sk:
"sl"==goog.LOCALE?goog.i18n.DateTimeSymbols_sl:"sq"==goog.LOCALE?goog.i18n.DateTimeSymbols_sq:"sr"==goog.LOCALE?goog.i18n.DateTimeSymbols_sr:"sv"==goog.LOCALE?goog.i18n.DateTimeSymbols_sv:"sw"==goog.LOCALE?goog.i18n.DateTimeSymbols_sw:"ta"==goog.LOCALE?goog.i18n.DateTimeSymbols_ta:"te"==goog.LOCALE?goog.i18n.DateTimeSymbols_te:"th"==goog.LOCALE?goog.i18n.DateTimeSymbols_th:"tl"==goog.LOCALE?goog.i18n.DateTimeSymbols_tl:"tr"==goog.LOCALE?goog.i18n.DateTimeSymbols_tr:"uk"==goog.LOCALE?goog.i18n.DateTimeSymbols_uk:
"ur"==goog.LOCALE?goog.i18n.DateTimeSymbols_ur:"vi"==goog.LOCALE?goog.i18n.DateTimeSymbols_vi:"zh"==goog.LOCALE?goog.i18n.DateTimeSymbols_zh:"zh_CN"==goog.LOCALE||"zh-CN"==goog.LOCALE?goog.i18n.DateTimeSymbols_zh:"zh_HK"==goog.LOCALE||"zh-HK"==goog.LOCALE?goog.i18n.DateTimeSymbols_zh_HK:"zh_TW"==goog.LOCALE||"zh-TW"==goog.LOCALE?goog.i18n.DateTimeSymbols_zh_TW:"zu"==goog.LOCALE?goog.i18n.DateTimeSymbols_zu:goog.i18n.DateTimeSymbols_en;goog.date={};goog.date.weekDay={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6};goog.date.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11};goog.date.formatMonthAndYear=function(a,b){return goog.getMsg("{$monthName} {$yearNum}",{monthName:a,yearNum:b})};goog.date.splitDateStringRegex_=/^(\d{4})(?:(?:-?(\d{2})(?:-?(\d{2}))?)|(?:-?(\d{3}))|(?:-?W(\d{2})(?:-?([1-7]))?))?$/;goog.date.splitTimeStringRegex_=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/;
goog.date.splitTimezoneStringRegex_=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/;goog.date.splitDurationRegex_=/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/;goog.date.isLeapYear=function(a){return 0==a%4&&(0!=a%100||0==a%400)};goog.date.isLongIsoYear=function(a){var b=5*a+12-4*(Math.floor(a/100)-Math.floor(a/400)),b=b+(Math.floor((a-100)/400)-Math.floor((a-102)/400)),b=b+(Math.floor((a-200)/400)-Math.floor((a-199)/400));return 5>b%28};
goog.date.getNumberOfDaysInMonth=function(a,b){switch(b){case goog.date.month.FEB:return goog.date.isLeapYear(a)?29:28;case goog.date.month.JUN:case goog.date.month.SEP:case goog.date.month.NOV:case goog.date.month.APR:return 30}return 31};goog.date.isSameDay=function(a,b){var c=b||new Date(goog.now());return a.getDate()==c.getDate()&&goog.date.isSameMonth(a,c)};goog.date.isSameMonth=function(a,b){var c=b||new Date(goog.now());return a.getMonth()==c.getMonth()&&goog.date.isSameYear(a,c)};
goog.date.isSameYear=function(a,b){var c=b||new Date(goog.now());return a.getFullYear()==c.getFullYear()};goog.date.getWeekNumber=function(a,b,c,d,e){a=new Date(a,b,c);d=d||goog.date.weekDay.THU;e=e||goog.date.weekDay.MON;b=((a.getDay()+6)%7-e+7)%7;e=a.valueOf()+864E5*((d-e+7)%7-b);d=(new Date((new Date(e)).getFullYear(),0,1)).valueOf();return Math.floor(Math.round((e-d)/864E5)/7)+1};goog.date.min=function(a,b){return a<b?a:b};goog.date.max=function(a,b){return a>b?a:b};
goog.date.fromIsoString=function(a){var b=new goog.date.DateTime(2E3);return goog.date.setIso8601DateTime(b,a)?b:null};goog.date.setIso8601DateTime=function(a,b){b=goog.string.trim(b);var c=-1==b.indexOf("T")?" ":"T",c=b.split(c);return goog.date.setIso8601DateOnly_(a,c[0])&&(2>c.length||goog.date.setIso8601TimeOnly_(a,c[1]))};
goog.date.setIso8601DateOnly_=function(a,b){var c=b.match(goog.date.splitDateStringRegex_);if(!c)return!1;var d=Number(c[2]),e=Number(c[3]),f=Number(c[4]),g=Number(c[5]),h=Number(c[6])||1;a.setFullYear(Number(c[1]));f?(a.setDate(1),a.setMonth(0),a.add(new goog.date.Interval(goog.date.Interval.DAYS,f-1))):g?goog.date.setDateFromIso8601Week_(a,g,h):(d&&(a.setDate(1),a.setMonth(d-1)),e&&a.setDate(e));return!0};
goog.date.setDateFromIso8601Week_=function(a,b,c){a.setMonth(0);a.setDate(1);var d=a.getDay()||7;b=new goog.date.Interval(goog.date.Interval.DAYS,(4>=d?1-d:8-d)+(Number(c)+7*(Number(b)-1))-1);a.add(b)};
goog.date.setIso8601TimeOnly_=function(a,b){var c=b.match(goog.date.splitTimezoneStringRegex_),d=0;c&&("Z"!=c[0]&&(d=60*c[2]+Number(c[3]),d*="-"==c[1]?1:-1),d-=a.getTimezoneOffset(),b=b.substr(0,b.length-c[0].length));c=b.match(goog.date.splitTimeStringRegex_);if(!c)return!1;a.setHours(Number(c[1]));a.setMinutes(Number(c[2])||0);a.setSeconds(Number(c[3])||0);a.setMilliseconds(c[4]?1E3*c[4]:0);0!=d&&a.setTime(a.getTime()+6E4*d);return!0};
goog.date.Interval=function(a,b,c,d,e,f){goog.isString(a)?(this.years=a==goog.date.Interval.YEARS?b:0,this.months=a==goog.date.Interval.MONTHS?b:0,this.days=a==goog.date.Interval.DAYS?b:0,this.hours=a==goog.date.Interval.HOURS?b:0,this.minutes=a==goog.date.Interval.MINUTES?b:0,this.seconds=a==goog.date.Interval.SECONDS?b:0):(this.years=a||0,this.months=b||0,this.days=c||0,this.hours=d||0,this.minutes=e||0,this.seconds=f||0)};
goog.date.Interval.fromIsoString=function(a){a=a.match(goog.date.splitDurationRegex_);if(!a)return null;var b=!(a[6]||a[7]||a[8]);if(b&&!a[2]&&!a[3]&&!a[4]||b&&a[5])return null;var b=a[1],c=parseInt(a[2],10)||0,d=parseInt(a[3],10)||0,e=parseInt(a[4],10)||0,f=parseInt(a[6],10)||0,g=parseInt(a[7],10)||0;a=parseFloat(a[8])||0;return b?new goog.date.Interval(-c,-d,-e,-f,-g,-a):new goog.date.Interval(c,d,e,f,g,a)};
goog.date.Interval.prototype.toIsoString=function(a){var b=Math.min(this.years,this.months,this.days,this.hours,this.minutes,this.seconds),c=Math.max(this.years,this.months,this.days,this.hours,this.minutes,this.seconds);if(0>b&&0<c)return null;if(!a&&0==b&&0==c)return"PT0S";c=[];0>b&&c.push("-");c.push("P");(this.years||a)&&c.push(Math.abs(this.years)+"Y");(this.months||a)&&c.push(Math.abs(this.months)+"M");(this.days||a)&&c.push(Math.abs(this.days)+"D");if(this.hours||this.minutes||this.seconds||
a)c.push("T"),(this.hours||a)&&c.push(Math.abs(this.hours)+"H"),(this.minutes||a)&&c.push(Math.abs(this.minutes)+"M"),(this.seconds||a)&&c.push(Math.abs(this.seconds)+"S");return c.join("")};goog.date.Interval.prototype.equals=function(a){return a.years==this.years&&a.months==this.months&&a.days==this.days&&a.hours==this.hours&&a.minutes==this.minutes&&a.seconds==this.seconds};
goog.date.Interval.prototype.clone=function(){return new goog.date.Interval(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};goog.date.Interval.YEARS="y";goog.date.Interval.MONTHS="m";goog.date.Interval.DAYS="d";goog.date.Interval.HOURS="h";goog.date.Interval.MINUTES="n";goog.date.Interval.SECONDS="s";goog.date.Interval.prototype.isZero=function(){return 0==this.years&&0==this.months&&0==this.days&&0==this.hours&&0==this.minutes&&0==this.seconds};
goog.date.Interval.prototype.getInverse=function(){return this.times(-1)};goog.date.Interval.prototype.times=function(a){return new goog.date.Interval(this.years*a,this.months*a,this.days*a,this.hours*a,this.minutes*a,this.seconds*a)};goog.date.Interval.prototype.getTotalSeconds=function(){goog.asserts.assert(0==this.years&&0==this.months);return 60*(60*(24*this.days+this.hours)+this.minutes)+this.seconds};
goog.date.Interval.prototype.add=function(a){this.years+=a.years;this.months+=a.months;this.days+=a.days;this.hours+=a.hours;this.minutes+=a.minutes;this.seconds+=a.seconds};
goog.date.Date=function(a,b,c){goog.isNumber(a)?(this.date=this.buildDate_(a,b||0,c||1),this.maybeFixDst_(c||1)):goog.isObject(a)?(this.date=this.buildDate_(a.getFullYear(),a.getMonth(),a.getDate()),this.maybeFixDst_(a.getDate())):(this.date=new Date(goog.now()),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0))};goog.date.Date.prototype.buildDate_=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
goog.date.Date.prototype.firstDayOfWeek_=goog.i18n.DateTimeSymbols.FIRSTDAYOFWEEK;goog.date.Date.prototype.firstWeekCutOffDay_=goog.i18n.DateTimeSymbols.FIRSTWEEKCUTOFFDAY;goog.date.Date.prototype.clone=function(){var a=new goog.date.Date(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};goog.date.Date.prototype.getFullYear=function(){return this.date.getFullYear()};goog.date.Date.prototype.getYear=function(){return this.getFullYear()};
goog.date.Date.prototype.getMonth=function(){return this.date.getMonth()};goog.date.Date.prototype.getDate=function(){return this.date.getDate()};goog.date.Date.prototype.getTime=function(){return this.date.getTime()};goog.date.Date.prototype.getDay=function(){return this.date.getDay()};goog.date.Date.prototype.getIsoWeekday=function(){return(this.getDay()+6)%7};goog.date.Date.prototype.getWeekday=function(){return(this.getIsoWeekday()-this.firstDayOfWeek_+7)%7};
goog.date.Date.prototype.getUTCFullYear=function(){return this.date.getUTCFullYear()};goog.date.Date.prototype.getUTCMonth=function(){return this.date.getUTCMonth()};goog.date.Date.prototype.getUTCDate=function(){return this.date.getUTCDate()};goog.date.Date.prototype.getUTCDay=function(){return this.date.getDay()};goog.date.Date.prototype.getUTCHours=function(){return this.date.getUTCHours()};goog.date.Date.prototype.getUTCMinutes=function(){return this.date.getUTCMinutes()};
goog.date.Date.prototype.getUTCIsoWeekday=function(){return(this.date.getUTCDay()+6)%7};goog.date.Date.prototype.getUTCWeekday=function(){return(this.getUTCIsoWeekday()-this.firstDayOfWeek_+7)%7};goog.date.Date.prototype.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};goog.date.Date.prototype.getFirstWeekCutOffDay=function(){return this.firstWeekCutOffDay_};goog.date.Date.prototype.getNumberOfDaysInMonth=function(){return goog.date.getNumberOfDaysInMonth(this.getFullYear(),this.getMonth())};
goog.date.Date.prototype.getWeekNumber=function(){return goog.date.getWeekNumber(this.getFullYear(),this.getMonth(),this.getDate(),this.firstWeekCutOffDay_,this.firstDayOfWeek_)};goog.date.Date.prototype.getDayOfYear=function(){for(var a=this.getDate(),b=this.getFullYear(),c=this.getMonth()-1;0<=c;c--)a+=goog.date.getNumberOfDaysInMonth(b,c);return a};goog.date.Date.prototype.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
goog.date.Date.prototype.getTimezoneOffsetString=function(){var a;a=this.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b),b=60*(b-c);a=(0<a?"-":"+")+goog.string.padNumber(c,2)+":"+goog.string.padNumber(b,2)}return a};goog.date.Date.prototype.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};goog.date.Date.prototype.setFullYear=function(a){this.date.setFullYear(a)};goog.date.Date.prototype.setYear=function(a){this.setFullYear(a)};
goog.date.Date.prototype.setMonth=function(a){this.date.setMonth(a)};goog.date.Date.prototype.setDate=function(a){this.date.setDate(a)};goog.date.Date.prototype.setTime=function(a){this.date.setTime(a)};goog.date.Date.prototype.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};goog.date.Date.prototype.setUTCMonth=function(a){this.date.setUTCMonth(a)};goog.date.Date.prototype.setUTCDate=function(a){this.date.setUTCDate(a)};
goog.date.Date.prototype.setFirstDayOfWeek=function(a){this.firstDayOfWeek_=a};goog.date.Date.prototype.setFirstWeekCutOffDay=function(a){this.firstWeekCutOffDay_=a};
goog.date.Date.prototype.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+12*a.years,c=this.getYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d=goog.date.getNumberOfDaysInMonth(c,b),d=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(b=new Date(this.getYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.days),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),this.setDate(a.getDate()),
this.maybeFixDst_(a.getDate()))};goog.date.Date.prototype.toIsoString=function(a,b){return[this.getFullYear(),goog.string.padNumber(this.getMonth()+1,2),goog.string.padNumber(this.getDate(),2)].join(a?"-":"")+(b?this.getTimezoneOffsetString():"")};goog.date.Date.prototype.toUTCIsoString=function(a,b){return[this.getUTCFullYear(),goog.string.padNumber(this.getUTCMonth()+1,2),goog.string.padNumber(this.getUTCDate(),2)].join(a?"-":"")+(b?"Z":"")};
goog.date.Date.prototype.equals=function(a){return!(!a||!(this.getYear()==a.getYear()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()))};goog.date.Date.prototype.toString=function(){return this.toIsoString()};goog.date.Date.prototype.maybeFixDst_=function(a){this.getDate()!=a&&(a=this.getDate()<a?1:-1,this.date.setUTCHours(this.date.getUTCHours()+a))};goog.date.Date.prototype.valueOf=function(){return this.date.valueOf()};goog.date.Date.compare=function(a,b){return a.getTime()-b.getTime()};
goog.date.DateTime=function(a,b,c,d,e,f,g){goog.isNumber(a)?this.date=new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):this.date=new Date(a?a.getTime():goog.now())};goog.inherits(goog.date.DateTime,goog.date.Date);goog.date.DateTime.fromRfc822String=function(a){a=new Date(a);return!isNaN(a.getTime())?new goog.date.DateTime(a):null};goog.date.DateTime.prototype.getHours=function(){return this.date.getHours()};goog.date.DateTime.prototype.getMinutes=function(){return this.date.getMinutes()};
goog.date.DateTime.prototype.getSeconds=function(){return this.date.getSeconds()};goog.date.DateTime.prototype.getMilliseconds=function(){return this.date.getMilliseconds()};goog.date.DateTime.prototype.getUTCDay=function(){return this.date.getUTCDay()};goog.date.DateTime.prototype.getUTCHours=function(){return this.date.getUTCHours()};goog.date.DateTime.prototype.getUTCMinutes=function(){return this.date.getUTCMinutes()};goog.date.DateTime.prototype.getUTCSeconds=function(){return this.date.getUTCSeconds()};
goog.date.DateTime.prototype.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};goog.date.DateTime.prototype.setHours=function(a){this.date.setHours(a)};goog.date.DateTime.prototype.setMinutes=function(a){this.date.setMinutes(a)};goog.date.DateTime.prototype.setSeconds=function(a){this.date.setSeconds(a)};goog.date.DateTime.prototype.setMilliseconds=function(a){this.date.setMilliseconds(a)};goog.date.DateTime.prototype.setUTCHours=function(a){this.date.setUTCHours(a)};
goog.date.DateTime.prototype.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};goog.date.DateTime.prototype.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};goog.date.DateTime.prototype.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};goog.date.DateTime.prototype.isMidnight=function(){return 0==this.getHours()&&0==this.getMinutes()&&0==this.getSeconds()&&0==this.getMilliseconds()};
goog.date.DateTime.prototype.add=function(a){goog.date.Date.prototype.add.call(this,a);a.hours&&this.setHours(this.date.getHours()+a.hours);a.minutes&&this.setMinutes(this.date.getMinutes()+a.minutes);a.seconds&&this.setSeconds(this.date.getSeconds()+a.seconds)};
goog.date.DateTime.prototype.toIsoString=function(a,b){var c=goog.date.Date.prototype.toIsoString.call(this,a);return a?c+" "+goog.string.padNumber(this.getHours(),2)+":"+goog.string.padNumber(this.getMinutes(),2)+":"+goog.string.padNumber(this.getSeconds(),2)+(b?this.getTimezoneOffsetString():""):c+"T"+goog.string.padNumber(this.getHours(),2)+goog.string.padNumber(this.getMinutes(),2)+goog.string.padNumber(this.getSeconds(),2)+(b?this.getTimezoneOffsetString():"")};
goog.date.DateTime.prototype.toXmlDateTime=function(a){return goog.date.Date.prototype.toIsoString.call(this,!0)+"T"+goog.string.padNumber(this.getHours(),2)+":"+goog.string.padNumber(this.getMinutes(),2)+":"+goog.string.padNumber(this.getSeconds(),2)+(a?this.getTimezoneOffsetString():"")};
goog.date.DateTime.prototype.toUTCIsoString=function(a,b){var c=goog.date.Date.prototype.toUTCIsoString.call(this,a);return a?c+" "+goog.string.padNumber(this.getUTCHours(),2)+":"+goog.string.padNumber(this.getUTCMinutes(),2)+":"+goog.string.padNumber(this.getUTCSeconds(),2)+(b?"Z":""):c+"T"+goog.string.padNumber(this.getUTCHours(),2)+goog.string.padNumber(this.getUTCMinutes(),2)+goog.string.padNumber(this.getUTCSeconds(),2)+(b?"Z":"")};
goog.date.DateTime.prototype.equals=function(a){return this.getTime()==a.getTime()};goog.date.DateTime.prototype.toString=function(){return this.toIsoString()};goog.date.DateTime.prototype.toUsTimeString=function(a,b,c){var d=this.getHours();goog.isDef(b)||(b=!0);var e=12==d;12<d&&(d-=12,e=!0);0==d&&b&&(d=12);a=a?goog.string.padNumber(d,2):String(d);d=this.getMinutes();if(!c||0<d)a+=":"+goog.string.padNumber(d,2);b&&(b=goog.getMsg("am"),c=goog.getMsg("pm"),a+=e?c:b);return a};
goog.date.DateTime.prototype.toIsoTimeString=function(a){var b=this.getHours(),b=goog.string.padNumber(b,2)+":"+goog.string.padNumber(this.getMinutes(),2);if(!goog.isDef(a)||a)b+=":"+goog.string.padNumber(this.getSeconds(),2);return b};goog.date.DateTime.prototype.clone=function(){var a=new goog.date.DateTime(this.date);a.setFirstDayOfWeek(this.getFirstDayOfWeek());a.setFirstWeekCutOffDay(this.getFirstWeekCutOffDay());return a};goog.i18n.TimeZone=function(){};goog.i18n.TimeZone.MILLISECONDS_PER_HOUR_=36E5;goog.i18n.TimeZone.NameType={STD_SHORT_NAME:0,STD_LONG_NAME:1,DLT_SHORT_NAME:2,DLT_LONG_NAME:3};goog.i18n.TimeZone.createTimeZone=function(a){if("number"==typeof a)return goog.i18n.TimeZone.createSimpleTimeZone_(a);var b=new goog.i18n.TimeZone;b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.transitions_=a.transitions;return b};
goog.i18n.TimeZone.createSimpleTimeZone_=function(a){var b=new goog.i18n.TimeZone;b.standardOffset_=a;b.timeZoneId_=goog.i18n.TimeZone.composePosixTimeZoneID_(a);a=goog.i18n.TimeZone.composeUTCString_(a);b.tzNames_=[a,a];b.transitions_=[];return b};goog.i18n.TimeZone.composeGMTString_=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(goog.string.padNumber(Math.floor(a/60)%100,2),":",goog.string.padNumber(a%60,2));return b.join("")};
goog.i18n.TimeZone.composePosixTimeZoneID_=function(a){if(0==a)return"Etc/GMT";var b=["Etc/GMT",0>a?"-":"+"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a%=60;0!=a&&b.push(":",goog.string.padNumber(a,2));return b.join("")};goog.i18n.TimeZone.composeUTCString_=function(a){if(0==a)return"UTC";var b=["UTC",0>a?"+":"-"];a=Math.abs(a);b.push(Math.floor(a/60)%100);a%=60;0!=a&&b.push(":",a);return b.join("")};
goog.i18n.TimeZone.prototype.getTimeZoneData=function(){return{id:this.timeZoneId_,std_offset:-this.standardOffset_,names:goog.array.clone(this.tzNames_),transitions:goog.array.clone(this.transitions_)}};
goog.i18n.TimeZone.prototype.getDaylightAdjustment=function(a){a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes())/goog.i18n.TimeZone.MILLISECONDS_PER_HOUR_;for(var b=0;b<this.transitions_.length&&a>=this.transitions_[b];)b+=2;return 0==b?0:this.transitions_[b-1]};goog.i18n.TimeZone.prototype.getGMTString=function(a){return goog.i18n.TimeZone.composeGMTString_(this.getOffset(a))};
goog.i18n.TimeZone.prototype.getLongName=function(a){return this.tzNames_[this.isDaylightTime(a)?goog.i18n.TimeZone.NameType.DLT_LONG_NAME:goog.i18n.TimeZone.NameType.STD_LONG_NAME]};goog.i18n.TimeZone.prototype.getOffset=function(a){return this.standardOffset_-this.getDaylightAdjustment(a)};goog.i18n.TimeZone.prototype.getRFCTimeZoneString=function(a){a=-this.getOffset(a);var b=[0>a?"-":"+"];a=Math.abs(a);b.push(goog.string.padNumber(Math.floor(a/60)%100,2),goog.string.padNumber(a%60,2));return b.join("")};
goog.i18n.TimeZone.prototype.getShortName=function(a){return this.tzNames_[this.isDaylightTime(a)?goog.i18n.TimeZone.NameType.DLT_SHORT_NAME:goog.i18n.TimeZone.NameType.STD_SHORT_NAME]};goog.i18n.TimeZone.prototype.getTimeZoneId=function(){return this.timeZoneId_};goog.i18n.TimeZone.prototype.isDaylightTime=function(a){return 0<this.getDaylightAdjustment(a)};goog.i18n.DateTimeFormat=function(a,b){goog.asserts.assert(goog.isDef(a),"Pattern must be defined");goog.asserts.assert(goog.isDef(b)||goog.isDef(goog.i18n.DateTimeSymbols),"goog.i18n.DateTimeSymbols or explicit symbols must be defined");this.patternParts_=[];this.dateTimeSymbols_=b||goog.i18n.DateTimeSymbols;"number"==typeof a?this.applyStandardPattern_(a):this.applyPattern_(a)};
goog.i18n.DateTimeFormat.Format={FULL_DATE:0,LONG_DATE:1,MEDIUM_DATE:2,SHORT_DATE:3,FULL_TIME:4,LONG_TIME:5,MEDIUM_TIME:6,SHORT_TIME:7,FULL_DATETIME:8,LONG_DATETIME:9,MEDIUM_DATETIME:10,SHORT_DATETIME:11};goog.i18n.DateTimeFormat.TOKENS_=[/^\'(?:[^\']|\'\')*\'/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvwzZ]+/];goog.i18n.DateTimeFormat.PartTypes_={QUOTED_STRING:0,FIELD:1,LITERAL:2};
goog.i18n.DateTimeFormat.prototype.applyPattern_=function(a){for(;a;)for(var b=0;b<goog.i18n.DateTimeFormat.TOKENS_.length;++b){var c=a.match(goog.i18n.DateTimeFormat.TOKENS_[b]);if(c){c=c[0];a=a.substring(c.length);b==goog.i18n.DateTimeFormat.PartTypes_.QUOTED_STRING&&("''"==c?c="'":(c=c.substring(1,c.length-1),c=c.replace(/\'\'/,"'")));this.patternParts_.push({text:c,type:b});break}}};
goog.i18n.DateTimeFormat.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-b.getOffset(a)):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],f=0;f<this.patternParts_.length;++f){var g=this.patternParts_[f].text;goog.i18n.DateTimeFormat.PartTypes_.FIELD==this.patternParts_[f].type?c.push(this.formatField_(g,a,d,e,b)):c.push(g)}return c.join("")};
goog.i18n.DateTimeFormat.prototype.applyStandardPattern_=function(a){var b;if(4>a)b=this.dateTimeSymbols_.DATEFORMATS[a];else if(8>a)b=this.dateTimeSymbols_.TIMEFORMATS[a-4];else if(12>a)b=this.dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.dateTimeSymbols_.TIMEFORMATS[a-8]);else{this.applyStandardPattern_(goog.i18n.DateTimeFormat.Format.MEDIUM_DATETIME);return}this.applyPattern_(b)};
goog.i18n.DateTimeFormat.prototype.localizeNumbers=function(a){if(void 0===this.dateTimeSymbols_||void 0===this.dateTimeSymbols_.ZERODIGIT)return a;for(var b=[],c=0;c<a.length;c++){var d=a.charCodeAt(c);b.push(48<=d&&57>=d?String.fromCharCode(this.dateTimeSymbols_.ZERODIGIT+d-48):a.charAt(c))}return b.join("")};goog.i18n.DateTimeFormat.prototype.formatEra_=function(a,b){var c=0<b.getFullYear()?1:0;return 4<=a?this.dateTimeSymbols_.ERANAMES[c]:this.dateTimeSymbols_.ERAS[c]};
goog.i18n.DateTimeFormat.prototype.formatYear_=function(a,b){var c=b.getFullYear();0>c&&(c=-c);2==a&&(c%=100);return this.localizeNumbers(goog.string.padNumber(c,a))};goog.i18n.DateTimeFormat.prototype.formatMonth_=function(a,b){var c=b.getMonth();switch(a){case 5:return this.dateTimeSymbols_.NARROWMONTHS[c];case 4:return this.dateTimeSymbols_.MONTHS[c];case 3:return this.dateTimeSymbols_.SHORTMONTHS[c];default:return this.localizeNumbers(goog.string.padNumber(c+1,a))}};
goog.i18n.DateTimeFormat.validateDateHasTime_=function(a){if(!a.getHours||!a.getSeconds||!a.getMinutes)throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");};goog.i18n.DateTimeFormat.prototype.format24Hours_=function(a,b){goog.i18n.DateTimeFormat.validateDateHasTime_(b);return this.localizeNumbers(goog.string.padNumber(b.getHours()||24,a))};
goog.i18n.DateTimeFormat.prototype.formatFractionalSeconds_=function(a,b){var c=b.getTime()%1E3/1E3;return this.localizeNumbers(c.toFixed(Math.min(3,a)).substr(2)+(3<a?goog.string.padNumber(0,a-3):""))};goog.i18n.DateTimeFormat.prototype.formatDayOfWeek_=function(a,b){var c=b.getDay();return 4<=a?this.dateTimeSymbols_.WEEKDAYS[c]:this.dateTimeSymbols_.SHORTWEEKDAYS[c]};
goog.i18n.DateTimeFormat.prototype.formatAmPm_=function(a,b){goog.i18n.DateTimeFormat.validateDateHasTime_(b);var c=b.getHours();return this.dateTimeSymbols_.AMPMS[12<=c&&24>c?1:0]};goog.i18n.DateTimeFormat.prototype.format1To12Hours_=function(a,b){goog.i18n.DateTimeFormat.validateDateHasTime_(b);return this.localizeNumbers(goog.string.padNumber(b.getHours()%12||12,a))};
goog.i18n.DateTimeFormat.prototype.format0To11Hours_=function(a,b){goog.i18n.DateTimeFormat.validateDateHasTime_(b);return this.localizeNumbers(goog.string.padNumber(b.getHours()%12,a))};goog.i18n.DateTimeFormat.prototype.format0To23Hours_=function(a,b){goog.i18n.DateTimeFormat.validateDateHasTime_(b);return this.localizeNumbers(goog.string.padNumber(b.getHours(),a))};
goog.i18n.DateTimeFormat.prototype.formatStandaloneDay_=function(a,b){var c=b.getDay();switch(a){case 5:return this.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];case 4:return this.dateTimeSymbols_.STANDALONEWEEKDAYS[c];case 3:return this.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];default:return this.localizeNumbers(goog.string.padNumber(c,1))}};
goog.i18n.DateTimeFormat.prototype.formatStandaloneMonth_=function(a,b){var c=b.getMonth();switch(a){case 5:return this.dateTimeSymbols_.STANDALONENARROWMONTHS[c];case 4:return this.dateTimeSymbols_.STANDALONEMONTHS[c];case 3:return this.dateTimeSymbols_.STANDALONESHORTMONTHS[c];default:return this.localizeNumbers(goog.string.padNumber(c+1,a))}};goog.i18n.DateTimeFormat.prototype.formatQuarter_=function(a,b){var c=Math.floor(b.getMonth()/3);return 4>a?this.dateTimeSymbols_.SHORTQUARTERS[c]:this.dateTimeSymbols_.QUARTERS[c]};
goog.i18n.DateTimeFormat.prototype.formatDate_=function(a,b){return this.localizeNumbers(goog.string.padNumber(b.getDate(),a))};goog.i18n.DateTimeFormat.prototype.formatMinutes_=function(a,b){goog.i18n.DateTimeFormat.validateDateHasTime_(b);return this.localizeNumbers(goog.string.padNumber(b.getMinutes(),a))};goog.i18n.DateTimeFormat.prototype.formatSeconds_=function(a,b){goog.i18n.DateTimeFormat.validateDateHasTime_(b);return this.localizeNumbers(goog.string.padNumber(b.getSeconds(),a))};
goog.i18n.DateTimeFormat.prototype.formatWeekOfYear_=function(a,b){var c=goog.date.getWeekNumber(b.getFullYear(),b.getMonth(),b.getDate(),this.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,this.dateTimeSymbols_.FIRSTDAYOFWEEK);return this.localizeNumbers(goog.string.padNumber(c,a))};goog.i18n.DateTimeFormat.prototype.formatTimeZoneRFC_=function(a,b,c){c=c||goog.i18n.TimeZone.createTimeZone(b.getTimezoneOffset());return 4>a?c.getRFCTimeZoneString(b):this.localizeNumbers(c.getGMTString(b))};
goog.i18n.DateTimeFormat.prototype.formatTimeZone_=function(a,b,c){c=c||goog.i18n.TimeZone.createTimeZone(b.getTimezoneOffset());return 4>a?c.getShortName(b):c.getLongName(b)};goog.i18n.DateTimeFormat.prototype.formatTimeZoneId_=function(a,b){b=b||goog.i18n.TimeZone.createTimeZone(a.getTimezoneOffset());return b.getTimeZoneId()};
goog.i18n.DateTimeFormat.prototype.formatField_=function(a,b,c,d,e){var f=a.length;switch(a.charAt(0)){case "G":return this.formatEra_(f,c);case "y":return this.formatYear_(f,c);case "M":return this.formatMonth_(f,c);case "k":return this.format24Hours_(f,d);case "S":return this.formatFractionalSeconds_(f,d);case "E":return this.formatDayOfWeek_(f,c);case "a":return this.formatAmPm_(f,d);case "h":return this.format1To12Hours_(f,d);case "K":return this.format0To11Hours_(f,d);case "H":return this.format0To23Hours_(f,
d);case "c":return this.formatStandaloneDay_(f,c);case "L":return this.formatStandaloneMonth_(f,c);case "Q":return this.formatQuarter_(f,c);case "d":return this.formatDate_(f,c);case "m":return this.formatMinutes_(f,d);case "s":return this.formatSeconds_(f,d);case "v":return this.formatTimeZoneId_(b,e);case "w":return this.formatWeekOfYear_(f,d);case "z":return this.formatTimeZone_(f,b,e);case "Z":return this.formatTimeZoneRFC_(f,b,e);default:return""}};neutron.dashboard.utils.FormatUtils=function(){};neutron.dashboard.utils.FormatUtils.getMonthLocalizedName=function(a){if(0==a)return _LCLZ("Jan");if(1==a)return _LCLZ("Feb");if(2==a)return _LCLZ("Mar");if(3==a)return _LCLZ("Apr");if(4==a)return _LCLZ("May");if(5==a)return _LCLZ("Jun");if(6==a)return _LCLZ("Jul");if(7==a)return _LCLZ("Aug");if(8==a)return _LCLZ("Sep");if(9==a)return _LCLZ("Oct");if(10==a)return _LCLZ("Nov");if(11==a)return _LCLZ("Dec")};
neutron.dashboard.utils.FormatUtils.formatDateAndTime=function(a,b){var c=!0===goog.isString(a)?parseInt(a):a,d=Math.max(0,Date.now()-c),e=parseInt(d/1E3),f=parseInt(d/1E3/60),d=parseInt(d/1E3/60/60),g=(new goog.i18n.DateTimeFormat(goog.i18n.DateTimeFormat.Format.MEDIUM_TIME)).format(new Date(c)),h=(new goog.i18n.DateTimeFormat(goog.i18n.DateTimeFormat.Format.SHORT_DATE)).format(new Date(c)),k="";0===e?k=_LCLZ("now"):1<=e&&59>=e?k=1===e?goog.string.format(_LCLZ("%s second ago"),e):goog.string.format(_LCLZ("%s seconds ago"),
e):1<=f&&59>=f?k=1===f?goog.string.format(_LCLZ("%s minute ago"),f):goog.string.format(_LCLZ("%s minutes ago"),f):1<=d&&23>=d?(k=!0===goog.date.isSameDay(new Date(c))?goog.string.format(_LCLZ("%s today"),g):goog.string.format(_LCLZ("%s yesterday"),g),k=!0===b?k:goog.string.format(_LCLZ("at %s"),k)):(k=h+", "+g,k=!0===b?k:goog.string.format(_LCLZ("on %s"),k));return k};
neutron.dashboard.utils.FormatUtils.getDateTimeForExpand=function(a,b){var c=parseInt(a);if(!0==isNaN(c)||c!=Number(a))return console.log('%c getDateTimeForExpand - param is NaN: "'+a+'"',"background-color:red"),"";c=new Date(c);if((new Date).toDateString()==c.toDateString())return d=new goog.i18n.DateTimeFormat(goog.i18n.DateTimeFormat.Format.MEDIUM_TIME),c=b?goog.string.format(_LCLZ("at %s"),d.format(c)):d.format(c);var d=new goog.i18n.DateTimeFormat(goog.i18n.DateTimeFormat.Format.SHORT_DATE),
c=b?goog.string.format(_LCLZ("on %s"),d.format(c)):d.format(c);return goog.isDefAndNotNull(c.indexOf)&&0<=c.indexOf("NaN/NaN/NaN")?(console.log('%c getDateTimeForExpand - result is NaN, original param "'+a+'"',"background-color:red"),""):c};neutron.dashboard.utils.FormatUtils.formatMimeDisplayName=function(a){var b="";if(!0===goog.isDefAndNotNull(a)){a=a.split(" ");for(var c=a.length,d=0;d<c;d++){var e=a[d];!0==goog.isDefAndNotNull(e)&&(b+=e.substr(0,1).toUpperCase()+e.substr(1)+" ")}}return b.trim()};
neutron.dashboard.utils.FormatUtils.respondQueryFormatter=function(a){var b={};b.payload=a;b.retCode=0;return JSON.stringify(b)};
neutron.dashboard.utils.FormatUtils.getDataBasedOnMimeType=function(a){a=a.toLowerCase();return"application/vnd.autodesk.fusion360"==a||"application/vnd.autodesk.f3d"==a?{cssname:"fusion360",displayName:_LCLZ("Fusion Design")}:"application/vnd.autodesk.cam360"==a?{cssname:"cam360",displayName:_LCLZ("Fusion Design")}:"application/vnd.autodesk.fusiondoc"==a?{cssname:"fusiondoc",displayName:_LCLZ("Drawing")}:"application/vnd.autodesk.fusiondrawingtemplate"==a?{cssname:"fusiondrawingtemplate",displayName:_LCLZ("Drawing Template")}:
{cssname:"",displayName:""}};neutron.dashboard.utils.FormatUtils.parseDesignFilename=function(a){var b={name:"",ext:""},c=/.*(\.neu.*|\.prt.*|\.asm.*)/i.exec(a);c?(b.ext=c[1],b.name=a.substr(0,a.length-b.ext.length)):(c=a.lastIndexOf("."),-1==c?b.name=a:(b.ext=a.substr(c,a.length),b.name=a.substr(0,c)));return b};
neutron.dashboard.utils.FormatUtils.useStaging=function(a){var b=!1;if(-1!=a.toLowerCase().indexOf("staging")||-1!=a.toLowerCase().indexOf(".dev"))b=!0;if(-1!=a.toLowerCase().indexOf("wwwtry.staging.autodesk360beta.com")||-1!=a.toLowerCase().indexOf("trymyhub.staging.autodesk360beta.com"))b=!1;return b};neutron.dashboard.utils.FormatUtils.htmlLink=function(a,b){return'<a href="'+a+'">'+b+"</a>"};neutron.dashboard.utils.FormatUtils.sanitizeText=function(a){return a.replace("<","&lt;")};
neutron.dashboard.utils.FormatUtils.formatString=function(a,b){if(!1===goog.isString(a)||3>a.length)return a;for(var c="",d=0,e=("_"+a+"_").split("%"),f=0;f<e.length;++f)1===e[f].length&&goog.string.isNumeric(e[f])&&0!==(d=goog.string.toNumber(e[f]))?--d<b.length&&(c+=b[d]):(0===e[f].length&&(c+="%"),c+=e[f]);return c.substr(1,c.length-2)};goog.date.UtcDateTime=function(a,b,c,d,e,f,g){a=goog.isNumber(a)?Date.UTC(a,b||0,c||1,d||0,e||0,f||0,g||0):a?a.getTime():goog.now();this.date=new Date(a)};goog.inherits(goog.date.UtcDateTime,goog.date.DateTime);goog.date.UtcDateTime.fromIsoString=function(a){var b=new goog.date.UtcDateTime(2E3);return goog.date.setIso8601DateTime(b,a)?b:null};
goog.date.UtcDateTime.prototype.clone=function(){var a=new goog.date.UtcDateTime(this.date);a.setFirstDayOfWeek(this.getFirstDayOfWeek());a.setFirstWeekCutOffDay(this.getFirstWeekCutOffDay());return a};goog.date.UtcDateTime.prototype.add=function(a){if(a.years||a.months){var b=new goog.date.Interval(a.years,a.months);goog.date.Date.prototype.add.call(this,b)}a=1E3*(a.seconds+60*(a.minutes+60*(a.hours+24*a.days)));this.date=new Date(this.date.getTime()+a)};
goog.date.UtcDateTime.prototype.getTimezoneOffset=function(){return 0};goog.date.UtcDateTime.prototype.getFullYear=goog.date.DateTime.prototype.getUTCFullYear;goog.date.UtcDateTime.prototype.getMonth=goog.date.DateTime.prototype.getUTCMonth;goog.date.UtcDateTime.prototype.getDate=goog.date.DateTime.prototype.getUTCDate;goog.date.UtcDateTime.prototype.getHours=goog.date.DateTime.prototype.getUTCHours;goog.date.UtcDateTime.prototype.getMinutes=goog.date.DateTime.prototype.getUTCMinutes;
goog.date.UtcDateTime.prototype.getSeconds=goog.date.DateTime.prototype.getUTCSeconds;goog.date.UtcDateTime.prototype.getMilliseconds=goog.date.DateTime.prototype.getUTCMilliseconds;goog.date.UtcDateTime.prototype.getDay=goog.date.DateTime.prototype.getUTCDay;goog.date.UtcDateTime.prototype.setFullYear=goog.date.DateTime.prototype.setUTCFullYear;goog.date.UtcDateTime.prototype.setMonth=goog.date.DateTime.prototype.setUTCMonth;goog.date.UtcDateTime.prototype.setDate=goog.date.DateTime.prototype.setUTCDate;
goog.date.UtcDateTime.prototype.setHours=goog.date.DateTime.prototype.setUTCHours;goog.date.UtcDateTime.prototype.setMinutes=goog.date.DateTime.prototype.setUTCMinutes;goog.date.UtcDateTime.prototype.setSeconds=goog.date.DateTime.prototype.setUTCSeconds;goog.date.UtcDateTime.prototype.setMilliseconds=goog.date.DateTime.prototype.setUTCMilliseconds;neutron.dashboard.panes={};
neutron.dashboard.panes.Activities_v2=function(a){neutron.dashboard.RenderableObject.call(this);this._isClientComments2Compliant=a;this._bHideExtraRepliesAtInit=!0;this._hideCommentClassName="hideComment";this._strHideComments=_LCLZ("Hide comments");this._strShowAll=_LCLZ("Show all");this._strComments=_LCLZ("comments");this._strSeeMore=_LCLZ("See More");this._strSeeLess=_LCLZ("See Less");this._LONG_COMMENT_VIEW_TOGGLE="LongCommentViewToggle";this._strMe=_LCLZ("Me");this._strPosting=_LCLZ("Posting...");
this._strPostFailedStatus="Failed";this._promptActionTextOpen=_LCLZ("Open");this._promptActionTextView=_LCLZ("View");this._promptLastestVersion=_LCLZ("This comment is from the latest version. Click to open in a new tab");this._promptNewerVersion=_LCLZ("This comment is from a newer version. Click to open in read-only tab");this._promptOlderVersion=_LCLZ("This comment is from an older version. Click to open in read-only tab");this._workspaceHeader=_LCLZ("This comment is from the ");this._workspaceTail=
_LCLZ(" workspace. Click to switch workspaces and view");this._strClickToView=_LCLZ("Click to view");this._closeStatusStr=_LCLZ("Close");this._reopenStatusStr=_LCLZ("Reopen");this._COMMENT_GRP_CLICKED="COMMENT_GROUP_CLICKED_";this._COMMENT_PROMPT_CLICKED="COMMENT_PROMPT_CLICKED_";this._COMMENT_THUMBNAIL_CLICKED="COMMENT_THUMBNAIL_CLICKED";this._COMMENT_DELETE_CLICKED="COMMENT_DELETE_CLICKED";this._COMMENT_STATUS_CLICKED="COMMENT_STATUS_CLICKED";this._currentDocumentInfo={documentUri:"",lineageUri:"",
docTypeName:""};this._isObjectPointLinkSupported=!0;this._defaultToolTipDelayMs=500;this._selectedCommentId="";this._selectedCommentStatus="eUnknown";this._thumbnailLength=106;this._user=null;this._requestProcessor={};this._init()};goog.inherits(neutron.dashboard.panes.Activities_v2,neutron.dashboard.RenderableObject);neutron.dashboard.panes.Activities_v2.prototype._init=function(){this._user=neutron.dashboard.Application.instance.getUser()};
neutron.dashboard.panes.Activities_v2.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"activitiesPane noSelection"});a.appendChild(this._htmlNode)};neutron.dashboard.panes.Activities_v2.prototype._remove=function(){};neutron.dashboard.panes.Activities_v2.prototype._update=function(){var a=this.area();!1!=goog.isDefAndNotNull(a)&&(this.htmlNode().style.height=a.height+"px")};
neutron.dashboard.panes.Activities_v2.prototype.onNeutronEvent=function(a){if("preDocumentSwitch"==a.cmdId)a=goog.json.parse(a.cmdArgs),this._onPreDocumentSwitch(a.lineage,a.documentUri);else if("DocumentSwitched"==a.cmdId){a=goog.json.parse(a.cmdArgs);var b=a.documentInfo,c=this._currentDocumentInfo;if(goog.isDefAndNotNull(b)){if(b.documentUri!=this._currentDocumentInfo.documentUri)return;this._currentDocumentInfo=b}a.whileSaving?this._saveInProgressStatus():this._onDocumentSwitched(c,this._currentDocumentInfo)}else if("ActivityFeedRefresh"==
a.cmdId)a=goog.json.parse(a.cmdArgs),b=a.documentInfo,goog.isDefAndNotNull(b)&&(this._currentDocumentInfo=b);else if("setComments"==a.cmdId){this._clear();a=a.cmdArgs;a=JSON.parse(a);Array.isArray(a)||(a=[]);b=a.length;c=null;a=this._sortComments(a,this._commentVersionDateComparator);for(b-=1;0<=b;--b)this._createCommentFromData(a[b],c);this._setInProgressStatus(!1)}else if("updateComment"==a.cmdId)a=a.cmdArgs,a=JSON.parse(a),this._updateCommentFromData(a);else if("deleteComment"==a.cmdId)a=a.cmdArgs,
a=JSON.parse(a),this._deleteComment(a.id);else if("notifyNewComment"==a.cmdId)if(a=a.cmdArgs,a=JSON.parse(a),b=a.parent.type,this._fixRequestTokenOnRetry(a),"comment"==b)for(var d=a.parent.id,e=goog.dom.getElementsByClass("group",this._htmlNode),f=e.length,b=0;b<f;++b){if(c=e[b],c.getAttribute("commentId")==d){b=goog.dom.getElementByClass("groupContent",c);!0==goog.isDefAndNotNull(b)&&(d=goog.dom.getElementByClass("groupHeader",c),this._createReplyMessageNode(b,a,null),this._createOrUpdateHeaderFooter(c,
d),this._setRepliesVisiblity(c,this._bHideExtraRepliesAtInit));break}}else c=this._findPrevNodeForInsertComment(a,this._commentVersionDateComparator),this._createCommentFromData(a,c);else"ossImageDownloaded"==a.cmdId?(a=a.cmdArgs,a=goog.json.parse(a),this._onOssImageDownloaded(a)):"postingStatus"==a.cmdId?(a=a.cmdArgs,a=goog.json.parse(a),this._onPostUpdateStatus(a)):"enterViewComment"==a.cmdId?this._onEnterViewComment():"exitViewComment"==a.cmdId&&this._onExitViewComment()};
neutron.dashboard.panes.Activities_v2.prototype._onPostUpdateStatus=function(a){var b=a.requestToken,c=a.statusMessage;a=a.statusType;for(var d=!1,e=goog.dom.getElementsByClass("group",this._htmlNode),f=0,g=e.length;f<g;++f){var h=e[f],k=h.getAttribute("isPostingProxy");if(goog.isDefAndNotNull(k)&&k&&(k=h.getAttribute("commentId"),k===b)){f=goog.dom.getElementByClass("timeCapsule",h);goog.isDefAndNotNull(f)&&(f.innerHTML=c,f.setAttribute("postStatusType",a));d=!0;break}}if(!d){d=goog.dom.getElementsByClass("messageRow",
this._htmlNode);f=0;for(e=d.length;f<e;++f)if(g=d[f],k=g.getAttribute("isPostingProxy"),goog.isDefAndNotNull(k)&&k&&(k=g.getAttribute("commentId"),k===b)){f=goog.dom.getElementByClass("timeCapsule",g);goog.isDefAndNotNull(f)&&(f.innerHTML=c,f.setAttribute("postStatusType",a));break}}};neutron.dashboard.panes.Activities_v2.prototype._sendGetComments=function(){this._setInProgressStatus(!0);window.neutronJavaScriptObject.executeQuery("Comments.getComments",JSON.stringify({}));neutron.dashboard.utils.Report({Action:"_sendGetComments"})};
neutron.dashboard.panes.Activities_v2.prototype._clear=function(){for(var a=goog.dom.getElementsByClass("group",self._htmlNode),b=0,c=a.length;b<c;++b){var d=a[b].getAttribute("commentId");this._disconnectEventById(d)}goog.isDefAndNotNull(this._htmlNode)&&(this._htmlNode.innerHTML="",goog.dom.removeChildren(this._htmlNode))};
neutron.dashboard.panes.Activities_v2.prototype._connectEvent=function(a,b){var c=this,d=0;this._addEventHandlerKeyToGroup(this._COMMENT_GRP_CLICKED+a,d.toString(),goog.events.listen(b,goog.events.EventType.CLICK,function(d){c._onGroupClicked(a,b);d.stopPropagation()}));++d};neutron.dashboard.panes.Activities_v2.prototype._disconnectEventById=function(a){this._disconnectEventsGroup(this._COMMENT_GRP_CLICKED+a)};
neutron.dashboard.panes.Activities_v2.prototype._onGroupClicked=function(a,b){this._selectGroup(a,b)};
neutron.dashboard.panes.Activities_v2.prototype._onPromptClicked=function(a,b,c){var d=this;c==d._promptActionTextOpen?neutron.dashboard.invoker.getFileVersions(d._currentDocumentInfo.lineageUri,function(c,f){if(f===neutron.dashboard.constants.Status.DONE){var g=c.filter(function(a){return void 0===a.versionNumber?!1:b==a.versionNumber.toString()})[0];g&&g.urn&&(g=g.urn,window.neutronJavaScriptObject.executeQuery("Comments.ViewCommentAfterOpenVersion",JSON.stringify({id:a,action:"OPEN_VERSION"})),
d.openDocumentInFusion(d._currentDocumentInfo.lineageUri,g))}}):c==d._promptActionTextView&&window.neutronJavaScriptObject.executeCommand("ViewCommentCmd",JSON.stringify({id:a,action:"SWITCH_TO_VIEWABLE"}))};neutron.dashboard.panes.Activities_v2.prototype._onThumbnailClicked=function(a,b,c,d,e,f){window.neutronJavaScriptObject.executeQuery("Comments.ViewScreenshot",JSON.stringify({id:a,originalUrn:b,thumbnailUrn:c,author:d,versionStr:e,creationTime:f}))};
neutron.dashboard.panes.Activities_v2.prototype.onPanelclicked=function(){this._onExitViewComment();window.neutronJavaScriptObject.executeQuery("Comments.cancelActiveViewCommentCmd",JSON.stringify({}))};neutron.dashboard.panes.Activities_v2.prototype._orientView=function(a){window.neutronJavaScriptObject.executeCommand("ViewCommentCmd",JSON.stringify({id:a,action:"ORIENT_THE_VIEW"}))};
neutron.dashboard.panes.Activities_v2.prototype._selectGroup=function(a,b){var c=this;if(goog.isDefAndNotNull(a)){var d="FusionDrawingDocType"===this._currentDocumentInfo.docTypeName,e=window.neutronJavaScriptObject.executeQuery("Comments.getWorkspaceAndVersion",JSON.stringify({id:a}));if(goog.isDefAndNotNull(e)&&0!==e.length&&(e=JSON.parse(e),goog.isDefAndNotNull(e)&&0!==e.length)){var f=e.workspace,g=e.versionComparison,h=e.commentFileVersion;if(goog.isDefAndNotNull(f)&&goog.isDefAndNotNull(g)){e=
Array.prototype.slice.apply(goog.dom.getElementsByClass("group",c._htmlNode));e.map(function(a){Array.prototype.slice.apply(goog.dom.getElementsByClass("promptAction",a)).map(function(a){goog.dom.removeNode(a)});c._disconnectEventsGroup(this._COMMENT_PROMPT_CLICKED)});e.filter(function(a){return a!=b}).map(function(a){goog.dom.classes.remove(a,"active")});var k=e="";c._selectedCommentId=a;c._selectedCommentStatus="eOrientView";0!=g?(e=1<g?c._promptLastestVersion:1===g?c._promptNewerVersion:c._promptOlderVersion,
k=c._promptActionTextOpen,c._selectedCommentStatus="eOpen"):0<f.length&&(e=c._workspaceHeader+f+c._workspaceTail,k=c._promptActionTextView,c._selectedCommentStatus="eView");if(f=0<e.length){var g=goog.dom.createDom("div",{"class":"promptAction"}),l=goog.dom.createDom("div",{"class":"promptAction prompt"});l.innerHTML=e;e=goog.dom.createDom("div",{"class":"promptAction action"});e.innerHTML=k;g.appendChild(e);g.appendChild(l);b.appendChild(g);c._addEventHandlerKeyToGroup(this._COMMENT_PROMPT_CLICKED,
a,goog.events.listen(e,goog.events.EventType.CLICK,function(b){c._onPromptClicked(a,h,k);b.preventDefault();b.stopPropagation()}))}goog.isDefAndNotNull(b)&&(goog.dom.classes.add(b,"active"),!f&&!d&&c._orientView(a))}}}};
neutron.dashboard.panes.Activities_v2.prototype._onEnterViewComment=function(){var a=this;a._selectedCommentStatus="eOrientView";Array.prototype.slice.apply(goog.dom.getElementsByClass("group",a._htmlNode)).map(function(b){Array.prototype.slice.apply(goog.dom.getElementsByClass("promptAction",b)).map(function(a){goog.dom.removeNode(a)});b.getAttribute("commentId")===a._selectedCommentId&&goog.dom.classes.add(b,"active")})};
neutron.dashboard.panes.Activities_v2.prototype._onExitViewComment=function(){this._selectedCommentStatus="eUnknown";Array.prototype.slice.apply(goog.dom.getElementsByClass("group",this._htmlNode)).map(function(a){Array.prototype.slice.apply(goog.dom.getElementsByClass("promptAction",a)).map(function(a){goog.dom.removeNode(a)});goog.dom.classes.remove(a,"active")});this._disconnectEventsGroup(this._COMMENT_PROMPT_CLICKED)};neutron.dashboard.panes.Activities_v2.prototype.refreshCurrent=function(a){};
neutron.dashboard.panes.Activities_v2.prototype._createCommentFromData=function(a,b){var c=this,d=a.id,e=a.body,f=a.actor.id,g=a.actor.name,h="",k="";goog.isDefAndNotNull(a.requestToken)&&(k=a.requestToken);a.parent&&a.parent.version&&(h="V"+a.parent.version.toString());var l=c._convertCommentDate(a.published).toString(),m=neutron.dashboard.utils.FormatUtils.formatDateAndTime(l,!0),n=null;if(0<k.length)for(var l=goog.dom.getElementsByClass("group",c._htmlNode),q=0,p=l.length;q<p;++q){var r=l[q],s=
r.getAttribute("isPostingProxy");if(goog.isDefAndNotNull(s)&&s&&r.getAttribute("commentId")===k){n=r;break}}r=!0;n?goog.dom.removeChildren(n):(n=goog.dom.createDom("div",{"class":"group"}),r=!1);n.setAttribute("commentId",d);n.setAttribute("published",a.published);a.parent&&a.parent.version&&n.setAttribute("version",a.parent.version.toString());var t=goog.dom.createDom("div",{"class":"deletingCommentMask"});n.appendChild(t);var k=goog.dom.createDom("div",{"class":"groupHeader"}),p=goog.dom.createDom("div",
{"class":"groupContent"}),s=goog.dom.createDom("div",{"class":"headLine"}),z=goog.dom.createDom("div",{"class":"version"},h),u=goog.dom.createDom("div",{"class":"author"},g),A=goog.dom.createDom("div",{"class":"timeCapsule"},m),l=goog.dom.createDom("div",{"class":"messageText"}),q=goog.dom.createDom("div",{"class":"headerMessageWrapper"}),e=e.replace(/(<br\s*\/?>){3,}/gi,"<br>");!0==goog.isDefAndNotNull(e)&&0<e.length&&(l.innerHTML=e);goog.isDefAndNotNull(this._user)&&f===this._user.userId&&(e=goog.dom.createDom("div",
{"class":"deleteComment"}),this._addEventHandlerKeyToGroup(this._COMMENT_DELETE_CLICKED,d,goog.events.listen(e,goog.events.EventType.CLICK,function(a){c._onDeleteCommentClicked(d,n,t);a.preventDefault();a.stopPropagation()})),q.appendChild(e));s.appendChild(z);s.appendChild(u);s.appendChild(A);k.appendChild(s);k.appendChild(q);n.appendChild(k);n.appendChild(p);this._createReplyControlNode(p,d);r||(!0==goog.isDefAndNotNull(b)?goog.dom.insertSiblingAfter(n,b):goog.dom.insertChildAt(this._htmlNode,n,
0));if(!0==goog.isDefAndNotNull(a.comment)){e=null;f=a.comment.length;0<f&&goog.dom.classes.add(l,"groupContentPresent");for(r=0;r<f;++r)e=this._createReplyMessageNode(p,a.comment[r],e)}var y=!1;goog.isDefAndNotNull(a.objectSet)&&Array.isArray(a.objectSet)&&a.objectSet.forEach(function(a){goog.isDefAndNotNull(a.id)&&goog.isDefAndNotNull(a.idType)&&0<a.id.length&&"external"===a.idType&&(y=!0)});if((e=a.attachment)&&0<e.length)if(e=e[0],e.url){f=goog.dom.createDom("div",{"class":"activitiesPane thumbnailWrapper"});
q.appendChild(f);p=goog.dom.createDom("img",{"class":"activitiesPane thumbnail"});p.style.visibility="hidden";f.appendChild(p);r=goog.dom.createDom("div",{"class":"viewThumbnail mask"});f.appendChild(r);r=goog.dom.createDom("div",{"class":"viewThumbnail icon"});f.appendChild(r);r=goog.dom.createDom("div",{"class":"viewThumbnail text"});r.innerHTML=c._strClickToView;f.appendChild(r);var w=e.url,x="";e.image&&(x=e.image);this._addEventHandlerKeyToGroup(this._COMMENT_THUMBNAIL_CLICKED,w,goog.events.listen(p,
goog.events.EventType.CLICK,function(a){c._onThumbnailClicked(d,w,x,g,h,m);a.preventDefault();a.stopPropagation()}));if((e=window.neutronJavaScriptObject.executeQuery("Comments.downloadOssImage",JSON.stringify({id:d,originalUrn:w,thumbnailUrn:x})))&&0<e.length)try{var v=goog.json.parse(e);c._onOssImageDownloaded(v)}catch(B){}}v=goog.dom.createDom("div",{"class":"messageTextWrapperNode"});v.appendChild(l);y&&this._isObjectPointLinkSupported&&(e=goog.dom.createDom("div",{"class":"activitiesPane linkButton"}),
q.appendChild(e));q.appendChild(v);this._createOrUpdateHeaderFooter(n,k);this._setRepliesVisiblity(n,this._bHideExtraRepliesAtInit);this._connectEvent(d,n);72<l.scrollHeight&&(k=goog.dom.createDom("div",{"class":"seeMore"},this._strSeeMore),k.style.color="#0696D7",this._addEventHandlerKeyToGroup(this._LONG_COMMENT_VIEW_TOGGLE,d,goog.events.listen(k,goog.events.EventType.CLICK,function(a){c._onLongCommentViewToggle(a,!1)})),v.appendChild(k));return n};
neutron.dashboard.panes.Activities_v2.prototype.createCommentProxyFromData=function(a){var b=null,c=this,d=a.requestToken,e=a.body,f=c._strMe;c._user&&c._user.userFullName&&(f=c._user.userFullName);var g=c._strPosting,h=goog.dom.createDom("div",{"class":"group"});h.setAttribute("commentId",d);h.setAttribute("isPostingProxy",!0);if(c._currentDocumentInfo){var k=(new Date).toISOString();h.setAttribute("published",k);var k={published:k},l=c._getCurrentDocumentVersion();l&&(h.setAttribute("version",l.version),
h.setAttribute("lineage",l.lineage),k.parent={version:l.version},b=c._findPrevNodeForInsertComment(k))}k=goog.dom.createDom("div",{"class":"groupHeader"});l=goog.dom.createDom("div",{"class":"headLine"});f=goog.dom.createDom("div",{"class":"author"},f);c._user&&c._user.userId&&f.setAttribute("userId",c._user.userId);var m=goog.dom.createDom("div",{"class":"timeCapsule"},g),n=goog.dom.createDom("div",{"class":"messageText"}),e=e.replace(/(<br\s*\/?>){3,}/gi,"<br>"),q=goog.dom.createDom("div",{"class":"headerMessageWrapper"}),
g=goog.dom.createDom("div",{"class":"messageTextWrapperNode"});a=a.imageDataSrc;if(goog.isDefAndNotNull(a)){var p=goog.dom.createDom("img",{"class":"activitiesPane thumbnail"});p.onload=function(){c._onThumbnailLoaded(p)};p.src=a;q.appendChild(p)}!0==goog.isDefAndNotNull(e)&&0<e.length&&(n.innerHTML=e);g.appendChild(n);l.appendChild(f);l.appendChild(m);k.appendChild(l);q.appendChild(g);k.appendChild(q);h.appendChild(k);!0==goog.isDefAndNotNull(b)?goog.dom.insertSiblingAfter(h,b):goog.dom.insertChildAt(this._htmlNode,
h,0);72<n.scrollHeight&&(b=goog.dom.createDom("div",{"class":"seeMore"},this._strSeeMore),b.style.color="#0696D7",this._addEventHandlerKeyToGroup(this._LONG_COMMENT_VIEW_TOGGLE,d,goog.events.listen(b,goog.events.EventType.CLICK,function(a){c._onLongCommentViewToggle(a,!1)})),g.appendChild(b));return h};
neutron.dashboard.panes.Activities_v2.prototype._updateCommentFromData=function(a){for(var b=a.id,c=a.body,d=goog.dom.getElementsByClass("group",self._htmlNode),e=0,f=d.length;e<f;++e){var g=d[e];if(g.getAttribute("commentId")==b){if(b=goog.dom.getElementByClass("headerMessage",g))b.innerHTML=c;c=goog.dom.getElementByClass("status",g);this._updateStatusText(c,a.status);break}}this._onRequestResponded(a.requestToken);return!0};
neutron.dashboard.panes.Activities_v2.prototype._deleteComment=function(a){for(var b=goog.dom.getElementsByClass("group",self._htmlNode),c=0,d=b.length;c<d;++c){var e=b[c];if(e.getAttribute("commentId")==a)return this._disconnectEventById(a),goog.dom.removeNode(e),!0;for(var f=goog.dom.getElementsByClass("messageRow",e),g=0,h=f.length;g<h;++g){var k=f[g];if(k.getAttribute("commentId")==a)return goog.dom.removeNode(k),a=goog.dom.getElementByClass("groupHeader",e),this._createOrUpdateHeaderFooter(e,
a),a=!goog.dom.classes.has(e,"showHidden"),this._setRepliesVisiblity(e,a),!0}}return!1};
neutron.dashboard.panes.Activities_v2.prototype._createOrUpdateHeaderFooter=function(a,b){var c=this,d=goog.dom.getElementByClass("headerFooter",b),e=null,f=this._bHideExtraRepliesAtInit;if(goog.isDefAndNotNull(d))e=goog.dom.getElementByClass("footerText",d),f=!goog.dom.classes.has(a,"showHidden");else{var d=goog.dom.createDom("div",{"class":"headerFooter"}),g=goog.dom.createDom("div",{"class":"footerTriangle"}),e=goog.dom.createDom("div",{"class":"footerText"}),h=a.getAttribute("commentId");d.appendChild(g);
d.appendChild(e);b.appendChild(d);this._addEventHandlerKeyToGroup("CommentVisibilityToggleGroup",h,goog.events.listen(d,goog.events.EventType.CLICK,function(a){c._onCommentsVisibilityChanged(a)}))}e.innerText=this._getFootText(a,f);3>goog.dom.getElementsByClass("messageRow",a).length?d.classList.add(c._hideCommentClassName):d.classList.remove(c._hideCommentClassName)};
neutron.dashboard.panes.Activities_v2.prototype._createReplyMessageNode=function(a,b,c){var d=this,e=b.id,f=b.body,g=b.actor.id,h=b.actor.name,k=this._convertCommentDate(b.published).toString(),k=neutron.dashboard.utils.FormatUtils.formatDateAndTime(k,!0),l=null,m="";if(goog.isDefAndNotNull(b.requestToken))for(var m=b.requestToken,n=goog.dom.getElementsByClass("messageRow",d._htmlNode),q=0,p=n.length;q<p;++q){var r=n[q],s=r.getAttribute("isPostingProxy");if(goog.isDefAndNotNull(s)&&s&&r.getAttribute("commentId")===
m){l=r;goog.dom.removeChildren(l);break}}m=!0;l||(m=!1,l=goog.dom.createDom("div",{"class":"messageRow"}));l.setAttribute("commentId",e);l.setAttribute("published",b.published);var t=goog.dom.createDom("div",{"class":"deletingReplyMask"});l.appendChild(t);n=goog.dom.createDom("div",{"class":"messageTitleBar"});l.appendChild(n);b=goog.dom.createDom("div",{"class":"messageTextWrapper"});k=goog.dom.createDom("div",{"class":"timeCapsule"},k);q=goog.dom.createDom("div",{"class":"author"},h);h=goog.dom.createDom("div",
{"class":"messageText"});f=f.replace(/(<br\s*\/?>){3,}/gi,"<br>");!0==goog.isDefAndNotNull(f)&&0<f.length&&(h.innerHTML=f);f=goog.dom.createDom("div",{"class":"messageTextWrapperDiv"});f.appendChild(h);b.appendChild(f);n.appendChild(q);n.appendChild(k);l.appendChild(b);goog.isDefAndNotNull(this._user)&&g===this._user.userId&&(g=goog.dom.createDom("div",{"class":"deleteComment"}),this._addEventHandlerKeyToGroup(this._COMMENT_DELETE_CLICKED,e,goog.events.listen(g,goog.events.EventType.CLICK,function(a){d._onDeleteReplyClicked(e,
l,t);a.preventDefault();a.stopPropagation()})),b.appendChild(g));m||(!0==goog.isDefAndNotNull(c)?goog.dom.insertSiblingAfter(l,c):(c=goog.dom.getElementsByClass("messageRow",a).length,goog.dom.insertChildAt(a,l,c)));42<h.scrollHeight&&(a=goog.dom.createDom("div",{"class":"seeMore"},this._strSeeMore),a.style.color="#0696D7",h.style.maxHeight="24px",this._addEventHandlerKeyToGroup(this._LONG_COMMENT_VIEW_TOGGLE,e,goog.events.listen(a,goog.events.EventType.CLICK,function(a){d._onLongCommentViewToggle(a,
!0)})),f.appendChild(a));return l};
neutron.dashboard.panes.Activities_v2.prototype._createReplyProxyMessageNode=function(a,b,c){var d=this,e=b,f=d._strMe;d._user&&d._user.userFullName&&(f=d._user.userFullName);var g=d._strPosting;b=goog.dom.createDom("div",{"class":"messageRow"});b.setAttribute("commentId",c);b.setAttribute("isPostingProxy",!0);var g=goog.dom.createDom("div",{"class":"timeCapsule"},g),h=goog.dom.createDom("div",{"class":"messageTitle"},f);d._user&&d._user.userId&&h.setAttribute("userId",d._user.userId);var f=goog.dom.createDom("div",
{"class":"messageText"}),k=goog.dom.createDom("div"),e=e.replace(/(<br\s*\/?>){3,}/gi,"<br>");!0==goog.isDefAndNotNull(e)&&0<e.length&&(f.innerHTML=e);e=goog.dom.createDom("div",{"class":"messageTextWrapperDiv"});e.appendChild(f);k.appendChild(e);b.appendChild(h);b.appendChild(k);b.appendChild(g);g=goog.dom.getElementsByClass("messageRow",a).length;goog.dom.insertChildAt(a,b,g);42<f.scrollHeight&&(a=goog.dom.createDom("div",{"class":"seeMore"},this._strSeeMore),a.style.color="#0696D7",f.style.maxHeight=
"24px",this._addEventHandlerKeyToGroup(this._LONG_COMMENT_VIEW_TOGGLE,c,goog.events.listen(a,goog.events.EventType.CLICK,function(a){d._onLongCommentViewToggle(a,!0)})),e.appendChild(a));return b};neutron.dashboard.panes.Activities_v2.prototype._createReplyControlNode=function(a,b){var c=goog.dom.createDom("div",{"class":"replyContainer"}),d=new neutron.dashboard.controls.Reply_v2(b);d.dispatchEvent(new neutron.dashboard.events.Update(c,0,0,-1,-1));this._connectReplyEvents(d,b);a.appendChild(c)};
neutron.dashboard.panes.Activities_v2.prototype._connectReplyEvents=function(a,b){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(b))){var c=this,d=goog.events.listen(a,neutron.dashboard.events.EventType.COMMENT_POSTED,function(a){c._onPostReplyRequested(b,a)});this._addEventHandlerKeyToGroup(this._REPLY_EVENT_KEY_GROUP,b,d)}};
neutron.dashboard.panes.Activities_v2.prototype._onPostReplyRequested=function(a,b){for(var c=b.commentText,d=b.requestToken,e=goog.dom.getElementsByClass("group",this._htmlNode),f=e.length,g=0;g<f;++g){var h=e[g];if(h.getAttribute("commentId")==a){e=goog.dom.getElementByClass("groupContent",h);!0==goog.isDefAndNotNull(e)&&(f=goog.dom.getElementByClass("groupHeader",h),this._createReplyProxyMessageNode(e,c,d),this._createOrUpdateHeaderFooter(h,f),this._setRepliesVisiblity(h,this._bHideExtraRepliesAtInit));
break}}};neutron.dashboard.panes.Activities_v2.prototype._setRepliesVisiblity=function(a,b){var c=this,d=goog.dom.getElementsByClass("messageRow",a),e=d.length;goog.array.forEach(d,function(a,d){d<e-2?b?goog.dom.classes.add(a,c._hideCommentClassName):goog.dom.classes.remove(a,c._hideCommentClassName):goog.dom.classes.remove(a,c._hideCommentClassName)})};
neutron.dashboard.panes.Activities_v2.prototype._getFootText=function(a,b){if(!b)return this._strHideComments;if(!1===goog.isDefAndNotNull(a))return"";var c=goog.dom.getElementsByClass("messageRow",a).length;return this._strShowAll+" "+c+" "+this._strComments};
neutron.dashboard.panes.Activities_v2.prototype._onCommentsVisibilityChanged=function(a){var b=a.currentTarget.parentNode.parentNode;a=goog.dom.getElementByClass("footerText",a.currentTarget);goog.dom.classes.toggle(b,"showHidden");var c=!goog.dom.classes.has(b,"showHidden");this._setRepliesVisiblity(b,c);a.innerText=this._getFootText(b,c)};
neutron.dashboard.panes.Activities_v2.prototype._onLongCommentViewToggle=function(a,b){var c=goog.dom.getParentElement(a.currentTarget),d=goog.dom.getElementByClass("messageText",c),c=goog.dom.getElementByClass("seeMore",c);d.scrollHeight===d.offsetHeight&&d.scrollHeight>(b?42:72)?(d.style.maxHeight=b?"24px":"54px",c.innerText=this._strSeeMore,c.style.paddingTop="6px"):(d.style.maxHeight="none",c.innerText=this._strSeeLess,c.style.paddingTop="0px")};
neutron.dashboard.panes.Activities_v2.prototype._convertCommentDate=function(a){a=goog.date.UtcDateTime.fromIsoString(a);return!a?null:a.getTime()};neutron.dashboard.panes.Activities_v2.prototype._setInProgressStatus=function(a){!1!=goog.isDefAndNotNull(this._htmlNode)&&(!0==a?goog.dom.classes.add(this._htmlNode,"savingInProgress"):goog.dom.classes.remove(this._htmlNode,"savingInProgress"))};
neutron.dashboard.panes.Activities_v2.prototype.openDocumentInFusion=function(a,b,c){window.neutronJavaScriptObject.executeQuery("waitCursor",JSON.stringify({show:!0}));var d={};d.extUrn=a;d.fileUri=a;goog.isDefAndNotNull(b)&&(d.fileUri=b,d.openVersion="true",d.readOnly="true");window.neutronJavaScriptObject.executeCommand("PLM360OpenAttachmentCommand",JSON.stringify(d));!0==goog.isDefAndNotNull(c)&&c.call(this,!0)};
neutron.dashboard.panes.Activities_v2.prototype._onOssImageDownloaded=function(a){var b=this;if(!0==goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(a.imageData)&&!0==goog.isDefAndNotNull(a.id)&&!0==goog.isDefAndNotNull(a.imageUrn)){var c=a.id,d=a.imageData;a=a.imageUrn;for(var e=goog.dom.getElementsByClass("group",b._htmlNode),f=e.length,g=0;g<f;++g){var h=e[g];if(h.getAttribute("commentId")==c){c=goog.dom.getElementByClass("groupHeader",h);if(!0==goog.isDefAndNotNull(c)){var k=goog.dom.getElementByClass("thumbnail",
c);k.onload=function(){b._onThumbnailLoaded(k)};k.src=d;k.imageUrn=a}break}}}};neutron.dashboard.panes.Activities_v2.prototype._onThumbnailLoaded=function(a){var b=a.width,c=a.height,d=this._thumbnailLength;b>=c?(b=Math.round(d*b/c),a.style.width=b+"px",a.style.height=d+"px",a.style.left=Math.round(d-b)/2+"px"):(b=Math.round(d*c/b),a.style.width=d+"px",a.style.height=b+"px",a.style.top=Math.round(d-b)/2+"px");a.style.visibility="visible"};
neutron.dashboard.panes.Activities_v2.prototype._onPreDocumentSwitch=function(a,b){this._currentDocumentInfo={documentUri:b,lineageUri:a,docTypeName:""};this._clear()};neutron.dashboard.panes.Activities_v2.prototype._onDocumentSwitched=function(a,b){if(!goog.isDefAndNotNull(a)||!goog.isDefAndNotNull(a.documentUri))this._clear(),this._sendGetComments()};
neutron.dashboard.panes.Activities_v2.prototype._onDeleteCommentClicked=function(a,b,c){var d=this;goog.dom.classes.add(b,"deleting");goog.dom.classes.add(c,"deleting");setTimeout(function(){window.neutronJavaScriptObject.executeQuery("Comments.deleteComment",JSON.stringify({id:a,lineageUri:d._currentDocumentInfo.lineageUri}))},100)};
neutron.dashboard.panes.Activities_v2.prototype._onDeleteReplyClicked=function(a,b,c){var d=this;goog.dom.classes.add(b,"deleting");goog.dom.classes.add(c,"deleting");setTimeout(function(){window.neutronJavaScriptObject.executeQuery("Comments.deleteReply",JSON.stringify({id:a,lineageUri:d._currentDocumentInfo.lineageUri}))},100)};neutron.dashboard.panes.Activities_v2.prototype._saveInProgressStatus=function(){};
neutron.dashboard.panes.Activities_v2.prototype._commentVersionDateComparator=function(a,b){var c=0;if(a.parent&&b.parent)try{c=parseFloat(b.parent.version)-parseFloat(a.parent.version)}catch(d){console.log(d),c=0}if(0!=c)return c;try{var e=Date.parse(a.published);return Date.parse(b.published)-e}catch(f){return console.log(f),0}};neutron.dashboard.panes.Activities_v2.prototype._sortComments=function(a,b){b=b||this._commentVersionDateComparator;return a.sort(b)};
neutron.dashboard.panes.Activities_v2.prototype._findPrevNodeForInsertComment=function(a,b){b=b||this._commentVersionDateComparator;for(var c=null,d=goog.dom.getElementsByClass("group",this._htmlNode),e=d.length,f=0;f<e;++f){var g=d[f],h={published:g.getAttribute("published")};h.parent={version:g.getAttribute("version")};if(0>=b(a,h))break;c=g}return c};
neutron.dashboard.panes.Activities_v2.prototype._getCurrentDocumentVersion=function(){if(this._currentDocumentInfo&&this._currentDocumentInfo.documentUri){var a=this._currentDocumentInfo.documentUri,b=a.lastIndexOf("?version="),a=a.substr(b+9);return 1>a.length?void 0:{lineage:this._currentDocumentInfo.lineageUri,version:a}}};
neutron.dashboard.panes.Activities_v2.prototype._addStatusControl=function(a,b){var c=this,d=b.status;if("string"==typeof d){var e=b.id,f=goog.dom.createDom("div",{"class":"status"});c._updateStatusText(f,d);a.appendChild(f);c._addEventHandlerKeyToGroup(c._COMMENT_DELETE_CLICKED,e,goog.events.listen(f,goog.events.EventType.CLICK,function(a){c._requestUpdateStatus(f,e,f.innerText==c._reopenStatusStr?"open":"closed");a.preventDefault();a.stopPropagation()}))}};
neutron.dashboard.panes.Activities_v2.prototype._updateStatusText=function(a,b){a&&b&&(a.innerText="open"==b?this._closeStatusStr:this._reopenStatusStr)};neutron.dashboard.panes.Activities_v2.prototype._requestUpdateStatus=function(a,b,c){b=window.neutronJavaScriptObject.executeQuery("Comments.updateStatus",JSON.stringify({id:b,status:c}));if(b=JSON.parse(b).requestToken)goog.dom.classes.add(a,"inactivated"),this._requestProcessor[b]=function(){goog.dom.classes.remove(a,"inactivated")}};
neutron.dashboard.panes.Activities_v2.prototype._onRequestResponded=function(a){if(a){var b=this._requestProcessor[a];b&&(b.call(),delete this._requestProcessor[a])}};neutron.dashboard.panes.Activities_v2.prototype._updateCommentStatusOnReply=function(a,b){this._isCommentOpen(a)||this._requestUpdateStatus(a,b,"open")};
neutron.dashboard.panes.Activities_v2.prototype._isCommentOpen=function(a){a=goog.dom.getElementByClass("status",a);var b=a.innerText;return goog.dom.classes.has(a,"inactivated")?b!=this._closeStatusStr:b==this._closeStatusStr};
neutron.dashboard.panes.Activities_v2.prototype._fixRequestTokenOnRetry=function(a){if(!a.requestToken&&a.parent){var b=a.body;if("comment"!=a.parent.type)for(var c=a.parent.version,d=a.parent.id,e=goog.dom.getElementsByClass("group",this._htmlNode),f=0,g=e.length;f<g;++f){var h=e[f];if(h.getAttribute("isPostingProxy")){var k=goog.dom.getElementByClass("timeCapsule",h),k=!!k&&k.getAttribute("postStatusType"),l=goog.dom.getElementByClass("author",h);l&&l.getAttribute("userId");var l=goog.dom.getElementByClass("messageText",
h),l=!!l&&l.innerHTML,m=h.getAttribute("version"),n=h.getAttribute("lineage");if(!(k!=this._strPostFailedStatus||l!=b||c!=m||n!=d))return a.requestToken=h.getAttribute("commentId"),!0}}return!1}};goog.dom.selection={};goog.dom.selection.setStart=function(a,b){if(goog.dom.selection.useSelectionProperties_(a))a.selectionStart=b;else if(goog.userAgent.IE){var c=goog.dom.selection.getRangeIe_(a),d=c[0];d.inRange(c[1])&&(b=goog.dom.selection.canonicalizePositionIe_(a,b),d.collapse(!0),d.move("character",b),d.select())}};goog.dom.selection.getStart=function(a){return goog.dom.selection.getEndPoints_(a,!0)[0]};
goog.dom.selection.getEndPointsTextareaIe_=function(a,b,c){b=b.duplicate();for(var d=a.text,e=d,f=b.text,g=f,h=!1;!h;)0==a.compareEndPoints("StartToEnd",a)?h=!0:(a.moveEnd("character",-1),a.text==d?e+="\r\n":h=!0);if(c)return[e.length,-1];for(a=!1;!a;)0==b.compareEndPoints("StartToEnd",b)?a=!0:(b.moveEnd("character",-1),b.text==f?g+="\r\n":a=!0);return[e.length,e.length+g.length]};goog.dom.selection.getEndPoints=function(a){return goog.dom.selection.getEndPoints_(a,!1)};
goog.dom.selection.getEndPoints_=function(a,b){var c=0,d=0;if(goog.dom.selection.useSelectionProperties_(a))c=a.selectionStart,d=b?-1:a.selectionEnd;else if(goog.userAgent.IE){var e=goog.dom.selection.getRangeIe_(a),f=e[0],e=e[1];if(f.inRange(e)){f.setEndPoint("EndToStart",e);if("textarea"==a.type)return goog.dom.selection.getEndPointsTextareaIe_(f,e,b);c=f.text.length;d=b?-1:f.text.length+e.text.length}}return[c,d]};
goog.dom.selection.setEnd=function(a,b){if(goog.dom.selection.useSelectionProperties_(a))a.selectionEnd=b;else if(goog.userAgent.IE){var c=goog.dom.selection.getRangeIe_(a),d=c[1];c[0].inRange(d)&&(b=goog.dom.selection.canonicalizePositionIe_(a,b),c=goog.dom.selection.canonicalizePositionIe_(a,goog.dom.selection.getStart(a)),d.collapse(!0),d.moveEnd("character",b-c),d.select())}};goog.dom.selection.getEnd=function(a){return goog.dom.selection.getEndPoints_(a,!1)[1]};
goog.dom.selection.setCursorPosition=function(a,b){if(goog.dom.selection.useSelectionProperties_(a))a.selectionStart=b,a.selectionEnd=b;else if(goog.userAgent.IE){b=goog.dom.selection.canonicalizePositionIe_(a,b);var c=a.createTextRange();c.collapse(!0);c.move("character",b);c.select()}};
goog.dom.selection.setText=function(a,b){if(goog.dom.selection.useSelectionProperties_(a)){var c=a.value,d=a.selectionStart,e=c.substr(0,d),c=c.substr(a.selectionEnd);a.value=e+b+c;a.selectionStart=d;a.selectionEnd=d+b.length}else if(goog.userAgent.IE)e=goog.dom.selection.getRangeIe_(a),d=e[1],e[0].inRange(d)&&(e=d.duplicate(),d.text=b,d.setEndPoint("StartToStart",e),d.select());else throw Error("Cannot set the selection end");};
goog.dom.selection.getText=function(a){if(goog.dom.selection.useSelectionProperties_(a))return a.value.substring(a.selectionStart,a.selectionEnd);if(goog.userAgent.IE){var b=goog.dom.selection.getRangeIe_(a),c=b[1];if(b[0].inRange(c)){if("textarea"==a.type)return goog.dom.selection.getSelectionRangeText_(c)}else return"";return c.text}throw Error("Cannot get the selection text");};
goog.dom.selection.getSelectionRangeText_=function(a){a=a.duplicate();for(var b=a.text,c=b,d=!1;!d;)0==a.compareEndPoints("StartToEnd",a)?d=!0:(a.moveEnd("character",-1),a.text==b?c+="\r\n":d=!0);return c};goog.dom.selection.getRangeIe_=function(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();"textarea"==a.type?(b=b.body.createTextRange(),b.moveToElementText(a)):b=a.createTextRange();return[b,c]};
goog.dom.selection.canonicalizePositionIe_=function(a,b){if("textarea"==a.type){var c=a.value.substring(0,b);b=goog.string.canonicalizeNewlines(c).length}return b};goog.dom.selection.useSelectionProperties_=function(a){try{return"number"==typeof a.selectionStart}catch(b){return!1}};goog.userAgent.product={};goog.userAgent.product.ASSUME_FIREFOX=!1;goog.userAgent.product.ASSUME_CAMINO=!1;goog.userAgent.product.ASSUME_IPHONE=!1;goog.userAgent.product.ASSUME_IPAD=!1;goog.userAgent.product.ASSUME_ANDROID=!1;goog.userAgent.product.ASSUME_CHROME=!1;goog.userAgent.product.ASSUME_SAFARI=!1;
goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_CAMINO||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI;
goog.userAgent.product.init_=function(){goog.userAgent.product.detectedFirefox_=!1;goog.userAgent.product.detectedCamino_=!1;goog.userAgent.product.detectedIphone_=!1;goog.userAgent.product.detectedIpad_=!1;goog.userAgent.product.detectedAndroid_=!1;goog.userAgent.product.detectedChrome_=!1;goog.userAgent.product.detectedSafari_=!1;var a=goog.userAgent.getUserAgentString();a&&(-1!=a.indexOf("Firefox")?goog.userAgent.product.detectedFirefox_=!0:-1!=a.indexOf("Camino")?goog.userAgent.product.detectedCamino_=
!0:-1!=a.indexOf("iPhone")||-1!=a.indexOf("iPod")?goog.userAgent.product.detectedIphone_=!0:-1!=a.indexOf("iPad")?goog.userAgent.product.detectedIpad_=!0:-1!=a.indexOf("Chrome")?goog.userAgent.product.detectedChrome_=!0:-1!=a.indexOf("Android")?goog.userAgent.product.detectedAndroid_=!0:-1!=a.indexOf("Safari")&&(goog.userAgent.product.detectedSafari_=!0))};goog.userAgent.product.PRODUCT_KNOWN_||goog.userAgent.product.init_();goog.userAgent.product.OPERA=goog.userAgent.OPERA;
goog.userAgent.product.IE=goog.userAgent.IE;goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:goog.userAgent.product.detectedFirefox_;goog.userAgent.product.CAMINO=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CAMINO:goog.userAgent.product.detectedCamino_;goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.detectedIphone_;
goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:goog.userAgent.product.detectedIpad_;goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:goog.userAgent.product.detectedAndroid_;goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:goog.userAgent.product.detectedChrome_;
goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.detectedSafari_;goog.ui.ac.InputHandler=function(a,b,c,d){goog.Disposable.call(this);d=d||150;this.multi_=null!=c?c:!0;this.setSeparators(a||goog.ui.ac.InputHandler.STANDARD_LIST_SEPARATORS);this.literals_=b||"";this.preventDefaultOnTab_=this.multi_;this.timer_=0<d?new goog.Timer(d):null;this.eh_=new goog.events.EventHandler(this);this.activateHandler_=new goog.events.EventHandler(this);this.keyHandler_=new goog.events.KeyHandler;this.lastKeyCode_=-1};goog.inherits(goog.ui.ac.InputHandler,goog.Disposable);
goog.ui.ac.InputHandler.REQUIRES_ASYNC_BLUR_=(goog.userAgent.product.IPHONE||goog.userAgent.product.IPAD)&&!goog.userAgent.isVersionOrHigher("533.17.9");goog.ui.ac.InputHandler.STANDARD_LIST_SEPARATORS=",;";goog.ui.ac.InputHandler.QUOTE_LITERALS='"';goog.ui.ac.InputHandler.prototype.whitespaceWrapEntries_=!0;goog.ui.ac.InputHandler.prototype.generateNewTokenOnLiteral_=!0;goog.ui.ac.InputHandler.prototype.upsideDown_=!1;goog.ui.ac.InputHandler.prototype.separatorUpdates_=!0;
goog.ui.ac.InputHandler.prototype.separatorSelects_=!0;goog.ui.ac.InputHandler.prototype.activeTimeoutId_=null;goog.ui.ac.InputHandler.prototype.activeElement_=null;goog.ui.ac.InputHandler.prototype.lastValue_="";goog.ui.ac.InputHandler.prototype.waitingForIme_=!1;goog.ui.ac.InputHandler.prototype.rowJustSelected_=!1;goog.ui.ac.InputHandler.prototype.updateDuringTyping_=!0;goog.ui.ac.InputHandler.prototype.attachAutoComplete=function(a){this.ac_=a};
goog.ui.ac.InputHandler.prototype.getAutoComplete=function(){return this.ac_};goog.ui.ac.InputHandler.prototype.getActiveElement=function(){return this.activeElement_};goog.ui.ac.InputHandler.prototype.getValue=function(){return this.activeElement_.value};goog.ui.ac.InputHandler.prototype.setValue=function(a){this.activeElement_.value=a};goog.ui.ac.InputHandler.prototype.getCursorPosition=function(){return goog.dom.selection.getStart(this.activeElement_)};
goog.ui.ac.InputHandler.prototype.setCursorPosition=function(a){goog.dom.selection.setStart(this.activeElement_,a);goog.dom.selection.setEnd(this.activeElement_,a)};
goog.ui.ac.InputHandler.prototype.attachInput=function(a){goog.dom.isElement(a)&&goog.a11y.aria.setState(a,"haspopup",!0);this.eh_.listen(a,goog.events.EventType.FOCUS,this.handleFocus);this.eh_.listen(a,goog.events.EventType.BLUR,this.handleBlur);if(!this.activeElement_&&(this.activateHandler_.listen(a,goog.events.EventType.KEYDOWN,this.onKeyDownOnInactiveElement_),goog.dom.isElement(a))){var b=goog.dom.getOwnerDocument(a);goog.dom.getActiveElement(b)==a&&this.processFocus(a)}};
goog.ui.ac.InputHandler.prototype.detachInput=function(a){a==this.activeElement_&&this.handleBlur();this.eh_.unlisten(a,goog.events.EventType.FOCUS,this.handleFocus);this.eh_.unlisten(a,goog.events.EventType.BLUR,this.handleBlur);this.activeElement_||this.activateHandler_.unlisten(a,goog.events.EventType.KEYDOWN,this.onKeyDownOnInactiveElement_)};goog.ui.ac.InputHandler.prototype.attachInputs=function(a){for(var b=0;b<arguments.length;b++)this.attachInput(arguments[b])};
goog.ui.ac.InputHandler.prototype.detachInputs=function(a){for(var b=0;b<arguments.length;b++)this.detachInput(arguments[b])};goog.ui.ac.InputHandler.prototype.selectRow=function(a,b){this.activeElement_&&this.setTokenText(a.toString(),b);return!1};
goog.ui.ac.InputHandler.prototype.setTokenText=function(a,b){if(goog.isDef(b)?b:this.multi_){var c=this.getTokenIndex_(this.getValue(),this.getCursorPosition()),d=this.splitInput_(this.getValue()),e=a;this.separatorCheck_.test(e)||(e=goog.string.trimRight(e)+this.defaultSeparator_);this.whitespaceWrapEntries_&&(0!=c&&!goog.string.isEmpty(d[c-1])&&(e=" "+e),c==d.length-1&&(e+=" "));if(e!=d[c]){d[c]=e;e=this.activeElement_;(goog.userAgent.GECKO||goog.userAgent.IE&&goog.userAgent.isVersionOrHigher("9"))&&
e.blur();e.value=d.join("");for(var f=0,g=0;g<=c;g++)f+=d[g].length;e.focus();this.setCursorPosition(f)}}else this.setValue(a);this.rowJustSelected_=!0};goog.ui.ac.InputHandler.prototype.disposeInternal=function(){goog.ui.ac.InputHandler.superClass_.disposeInternal.call(this);null!=this.activeTimeoutId_&&window.clearTimeout(this.activeTimeoutId_);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();goog.dispose(this.timer_)};
goog.ui.ac.InputHandler.prototype.setSeparators=function(a,b){this.separators_=a;this.defaultSeparator_=goog.isDefAndNotNull(b)?b:this.separators_.substring(0,1);var c=this.multi_?"[\\s"+this.separators_+"]+":"[\\s]+";this.trimmer_=RegExp("^"+c+"|"+c+"$","g");this.separatorCheck_=RegExp("\\s*["+this.separators_+"]$")};goog.ui.ac.InputHandler.prototype.setUpsideDown=function(a){this.upsideDown_=a};goog.ui.ac.InputHandler.prototype.setWhitespaceWrapEntries=function(a){this.whitespaceWrapEntries_=a};
goog.ui.ac.InputHandler.prototype.setGenerateNewTokenOnLiteral=function(a){this.generateNewTokenOnLiteral_=a};goog.ui.ac.InputHandler.prototype.setTrimmingRegExp=function(a){this.trimmer_=a};goog.ui.ac.InputHandler.prototype.setPreventDefaultOnTab=function(a){this.preventDefaultOnTab_=a};goog.ui.ac.InputHandler.prototype.setSeparatorCompletes=function(a){this.separatorSelects_=this.separatorUpdates_=a};goog.ui.ac.InputHandler.prototype.setSeparatorSelects=function(a){this.separatorSelects_=a};
goog.ui.ac.InputHandler.prototype.getThrottleTime=function(){return this.timer_?this.timer_.getInterval():-1};goog.ui.ac.InputHandler.prototype.setRowJustSelected=function(a){this.rowJustSelected_=a};goog.ui.ac.InputHandler.prototype.setThrottleTime=function(a){0>a?(this.timer_.dispose(),this.timer_=null):this.timer_?this.timer_.setInterval(a):this.timer_=new goog.Timer(a)};goog.ui.ac.InputHandler.prototype.getUpdateDuringTyping=function(){return this.updateDuringTyping_};
goog.ui.ac.InputHandler.prototype.setUpdateDuringTyping=function(a){this.updateDuringTyping_=a};
goog.ui.ac.InputHandler.prototype.handleKeyEvent=function(a){switch(a.keyCode){case goog.events.KeyCodes.DOWN:if(this.ac_.isOpen())return this.moveDown_(),a.preventDefault(),!0;if(!this.multi_)return this.update(!0),a.preventDefault(),!0;break;case goog.events.KeyCodes.UP:if(this.ac_.isOpen())return this.moveUp_(),a.preventDefault(),!0;break;case goog.events.KeyCodes.TAB:if(this.ac_.isOpen()&&!a.shiftKey){if(this.update(),this.ac_.selectHilited()&&this.preventDefaultOnTab_)return a.preventDefault(),
!0}else this.ac_.dismiss();break;case goog.events.KeyCodes.ENTER:if(this.ac_.isOpen()){if(this.update(),this.ac_.selectHilited())return a.preventDefault(),a.stopPropagation(),!0}else this.ac_.dismiss();break;case goog.events.KeyCodes.ESC:if(this.ac_.isOpen())return this.ac_.dismiss(),a.preventDefault(),a.stopPropagation(),!0;break;case goog.events.KeyCodes.WIN_IME:if(!this.waitingForIme_)return this.startWaitingForIme_(),!0;break;default:this.timer_&&!this.updateDuringTyping_&&(this.timer_.stop(),
this.timer_.start())}return this.handleSeparator_(a)};goog.ui.ac.InputHandler.prototype.handleSeparator_=function(a){var b=this.multi_&&a.charCode&&-1!=this.separators_.indexOf(String.fromCharCode(a.charCode));this.separatorUpdates_&&b&&this.update();return this.separatorSelects_&&b&&this.ac_.selectHilited()?(a.preventDefault(),!0):!1};goog.ui.ac.InputHandler.prototype.needKeyUpListener=function(){return!1};goog.ui.ac.InputHandler.prototype.handleKeyUp=function(a){return!1};
goog.ui.ac.InputHandler.prototype.addEventHandlers_=function(){this.keyHandler_.attach(this.activeElement_);this.eh_.listen(this.keyHandler_,goog.events.KeyHandler.EventType.KEY,this.onKey_);this.needKeyUpListener()&&this.eh_.listen(this.activeElement_,goog.events.EventType.KEYUP,this.handleKeyUp);this.eh_.listen(this.activeElement_,goog.events.EventType.MOUSEDOWN,this.onMouseDown_);goog.userAgent.IE&&this.eh_.listen(this.activeElement_,goog.events.EventType.KEYPRESS,this.onIeKeyPress_)};
goog.ui.ac.InputHandler.prototype.removeEventHandlers_=function(){this.eh_.unlisten(this.keyHandler_,goog.events.KeyHandler.EventType.KEY,this.onKey_);this.keyHandler_.detach();this.eh_.unlisten(this.activeElement_,goog.events.EventType.KEYUP,this.handleKeyUp);this.eh_.unlisten(this.activeElement_,goog.events.EventType.MOUSEDOWN,this.onMouseDown_);goog.userAgent.IE&&this.eh_.unlisten(this.activeElement_,goog.events.EventType.KEYPRESS,this.onIeKeyPress_);this.waitingForIme_&&this.stopWaitingForIme_()};
goog.ui.ac.InputHandler.prototype.handleFocus=function(a){this.processFocus(a.target||null)};goog.ui.ac.InputHandler.prototype.processFocus=function(a){this.activateHandler_.removeAll();this.ac_&&this.ac_.cancelDelayedDismiss();a!=this.activeElement_&&(this.activeElement_=a,this.timer_&&(this.timer_.start(),this.eh_.listen(this.timer_,goog.Timer.TICK,this.onTick_)),this.lastValue_=this.getValue(),this.addEventHandlers_())};
goog.ui.ac.InputHandler.prototype.handleBlur=function(a){goog.ui.ac.InputHandler.REQUIRES_ASYNC_BLUR_?this.activeTimeoutId_=window.setTimeout(goog.bind(this.processBlur_,this),0):this.processBlur_()};goog.ui.ac.InputHandler.prototype.processBlur_=function(){this.activeElement_&&(this.removeEventHandlers_(),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,goog.Timer.TICK,this.onTick_)),this.ac_&&this.ac_.dismissOnDelay())};
goog.ui.ac.InputHandler.prototype.onTick_=function(a){this.update()};goog.ui.ac.InputHandler.prototype.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};goog.ui.ac.InputHandler.prototype.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&this.handleKeyEvent(a)};goog.ui.ac.InputHandler.prototype.onKeyPress_=function(a){this.waitingForIme_&&this.lastKeyCode_!=goog.events.KeyCodes.WIN_IME&&this.stopWaitingForIme_()};
goog.ui.ac.InputHandler.prototype.onKeyUp_=function(a){this.waitingForIme_&&(a.keyCode==goog.events.KeyCodes.ENTER||a.keyCode==goog.events.KeyCodes.M&&a.ctrlKey)&&this.stopWaitingForIme_()};goog.ui.ac.InputHandler.prototype.onMouseDown_=function(a){this.ac_&&this.handleMouseDown(a)};goog.ui.ac.InputHandler.prototype.handleMouseDown=function(a){};
goog.ui.ac.InputHandler.prototype.startWaitingForIme_=function(){this.waitingForIme_||(this.eh_.listen(this.activeElement_,goog.events.EventType.KEYUP,this.onKeyUp_),this.eh_.listen(this.activeElement_,goog.events.EventType.KEYPRESS,this.onKeyPress_),this.waitingForIme_=!0)};
goog.ui.ac.InputHandler.prototype.stopWaitingForIme_=function(){this.waitingForIme_&&(this.waitingForIme_=!1,this.eh_.unlisten(this.activeElement_,goog.events.EventType.KEYPRESS,this.onKeyPress_),this.eh_.unlisten(this.activeElement_,goog.events.EventType.KEYUP,this.onKeyUp_))};goog.ui.ac.InputHandler.prototype.onIeKeyPress_=function(a){this.handleSeparator_(a)};
goog.ui.ac.InputHandler.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_)a=this.parseToken(),this.ac_&&(this.ac_.setTarget(this.activeElement_),this.ac_.setToken(a,this.getValue()));this.lastValue_=this.getValue()}this.rowJustSelected_=!1};goog.ui.ac.InputHandler.prototype.parseToken=function(){return this.parseToken_()};goog.ui.ac.InputHandler.prototype.moveUp_=function(){return this.upsideDown_?this.ac_.hiliteNext():this.ac_.hilitePrev()};
goog.ui.ac.InputHandler.prototype.moveDown_=function(){return this.upsideDown_?this.ac_.hilitePrev():this.ac_.hiliteNext()};goog.ui.ac.InputHandler.prototype.parseToken_=function(){var a=this.getCursorPosition(),b=this.getValue();return this.trim_(this.splitInput_(b)[this.getTokenIndex_(b,a)])};goog.ui.ac.InputHandler.prototype.trim_=function(a){return this.trimmer_?String(a).replace(this.trimmer_,""):a};
goog.ui.ac.InputHandler.prototype.getTokenIndex_=function(a,b){var c=this.splitInput_(a);if(b==a.length)return c.length-1;for(var d=0,e=0,f=0;e<c.length&&f<=b;e++)f+=c[e].length,d=e;return d};
goog.ui.ac.InputHandler.prototype.splitInput_=function(a){if(!this.multi_)return[a];a=String(a).split("");for(var b=[],c=[],d=0,e=!1;d<a.length;d++)this.literals_&&-1!=this.literals_.indexOf(a[d])?(this.generateNewTokenOnLiteral_&&!e&&(b.push(c.join("")),c.length=0),c.push(a[d]),e=!e):!e&&-1!=this.separators_.indexOf(a[d])?(c.push(a[d]),b.push(c.join("")),c.length=0):c.push(a[d]);b.push(c.join(""));return b};neutron.dashboard.controls.AcInputHandler=function(a,b,c,d){goog.ui.ac.InputHandler.call(this,a,b,c,d)};goog.inherits(neutron.dashboard.controls.AcInputHandler,goog.ui.ac.InputHandler);
neutron.dashboard.controls.AcInputHandler.prototype.setTokenText=function(a,b){var c=this.getValue(),d=this.getCursorPosition(),e=c.substr(0,d),f=e.lastIndexOf("@");0<=f&&(e=e.substr(0,f+1)+a,c=e+c.substr(d),d=this.activeElement_,(goog.userAgent.GECKO||goog.userAgent.IE&&goog.userAgent.isVersionOrHigher("9"))&&d.blur(),d.value=c,d.focus(),this.setCursorPosition(e.length));this.rowJustSelected_=!0};neutron.dashboard.controls.AcInputHandler.prototype.updateTargetValue=function(a,b){a.value=b.join("")};
goog.ui.ac.InputHandler.prototype.parseToken_=function(){var a=this.getCursorPosition(),a=this.getValue().substr(0,a),b=a.lastIndexOf("@");if(0<=b)return a.substring(b+1)};neutron.dashboard.controls.AcInputHandler.prototype.selectRow=function(a,b){this.activeElement_&&this.setTokenText(a.displayName,b);return!1};goog.ui.ac.ArrayMatcher=function(a,b){this.rows_=a||[];this.useSimilar_=!b};goog.ui.ac.ArrayMatcher.prototype.setRows=function(a){this.rows_=a||[]};goog.ui.ac.ArrayMatcher.prototype.requestMatchingRows=function(a,b,c,d){b=this.useSimilar_?goog.ui.ac.ArrayMatcher.getMatchesForRows(a,b,this.rows_):this.getPrefixMatches(a,b);c(a,b)};
goog.ui.ac.ArrayMatcher.getMatchesForRows=function(a,b,c){var d=goog.ui.ac.ArrayMatcher.getPrefixMatchesForRows(a,b,c);0==d.length&&(d=goog.ui.ac.ArrayMatcher.getSimilarMatchesForRows(a,b,c));return d};goog.ui.ac.ArrayMatcher.prototype.getPrefixMatches=function(a,b){return goog.ui.ac.ArrayMatcher.getPrefixMatchesForRows(a,b,this.rows_)};
goog.ui.ac.ArrayMatcher.getPrefixMatchesForRows=function(a,b,c){var d=[];if(""!=a){a=goog.string.regExpEscape(a);a=RegExp("(^|\\W+)"+a,"i");for(var e=0;e<c.length&&d.length<b;e++){var f=c[e];String(f).match(a)&&d.push(f)}}return d};goog.ui.ac.ArrayMatcher.prototype.getSimilarRows=function(a,b){return goog.ui.ac.ArrayMatcher.getSimilarMatchesForRows(a,b,this.rows_)};
goog.ui.ac.ArrayMatcher.getSimilarMatchesForRows=function(a,b,c){for(var d=[],e=0;e<c.length;e++){var f=c[e],g=a.toLowerCase(),h=String(f).toLowerCase(),k=0;if(-1!=h.indexOf(g))k=parseInt((h.indexOf(g)/4).toString(),10);else for(var l=g.split(""),m=-1,n=10,q=0,p;p=l[q];q++)p=h.indexOf(p),p>m?(m=p-m-1,m>n-5&&(m=n-5),k+=m,m=p):(k+=n,n+=5);k<6*g.length&&d.push({str:f,score:k,index:e})}d.sort(function(a,b){var c=a.score-b.score;return 0!=c?c:a.index-b.index});a=[];for(q=0;q<b&&q<d.length;q++)a.push(d[q].str);
return a};neutron.dashboard.controls.AcArrayMatcher=function(a,b){goog.ui.ac.ArrayMatcher.call(this,a,b)};goog.inherits(neutron.dashboard.controls.AcArrayMatcher,goog.ui.ac.ArrayMatcher);neutron.dashboard.controls.AcArrayMatcher.prototype.getPrefixMatches=function(a,b){return this.getPrefixMatchesForRows(a,b,this.rows_)};
neutron.dashboard.controls.AcArrayMatcher.prototype.getPrefixMatchesForRows=function(a,b,c){var d=[];if(""!=a){a=goog.string.regExpEscape(a);a=RegExp("(^|\\W+)"+a,"i");for(var e=0;e<c.length&&d.length<b;e++){var f=c[e],g=this._getItemForMatch(f);String(g).match(a)&&d.push(f)}}else d=c.slice(0,b);return d};neutron.dashboard.controls.AcArrayMatcher.prototype._getItemForMatch=function(a){return a.displayName};goog.string.newlines={};goog.string.newlines.splitLines=function(a,b){var c=goog.string.newlines.getLines(a);return goog.array.map(c,function(a){return b?a.getFullLine():a.getContent()})};goog.string.newlines.Line=function(a,b,c,d){this.string=a;this.startLineIndex=b;this.endContentIndex=c;this.endLineIndex=d};goog.string.newlines.Line.prototype.getContent=function(){return this.string.substring(this.startLineIndex,this.endContentIndex)};
goog.string.newlines.Line.prototype.getFullLine=function(){return this.string.substring(this.startLineIndex,this.endLineIndex)};goog.string.newlines.Line.prototype.getNewline=function(){return this.string.substring(this.endContentIndex,this.endLineIndex)};
goog.string.newlines.getLines=function(a){for(var b=RegExp("\r\n|\r|\n","g"),c=0,d,e=[];d=b.exec(a);)c=new goog.string.newlines.Line(a,c,d.index,d.index+d[0].length),e.push(c),c=b.lastIndex;c<a.length&&(c=new goog.string.newlines.Line(a,c,a.length,a.length),e.push(c));return e};goog.color={};
goog.color.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",
darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",
ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",
lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",
moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",
seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};goog.color.parse=function(a){var b={};a=String(a);var c=goog.color.prependHashIfNecessaryHelper(a);if(goog.color.isValidHexColor_(c))return b.hex=goog.color.normalizeHex(c),b.type="hex",b;c=goog.color.isValidRgbColor_(a);if(c.length)return b.hex=goog.color.rgbArrayToHex(c),b.type="rgb",b;if(goog.color.names&&(c=goog.color.names[a.toLowerCase()]))return b.hex=c,b.type="named",b;throw Error(a+" is not a valid color string");};
goog.color.isValidColor=function(a){var b=goog.color.prependHashIfNecessaryHelper(a);return!(!goog.color.isValidHexColor_(b)&&!(goog.color.isValidRgbColor_(a).length||goog.color.names&&goog.color.names[a.toLowerCase()]))};goog.color.parseRgb=function(a){var b=goog.color.isValidRgbColor_(a);if(!b.length)throw Error(a+" is not a valid RGB color");return b};goog.color.hexToRgbStyle=function(a){return goog.color.rgbStyle_(goog.color.hexToRgb(a))};goog.color.hexTripletRe_=/#(.)(.)(.)/;
goog.color.normalizeHex=function(a){if(!goog.color.isValidHexColor_(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(goog.color.hexTripletRe_,"#$1$1$2$2$3$3"));return a.toLowerCase()};goog.color.hexToRgb=function(a){a=goog.color.normalizeHex(a);var b=parseInt(a.substr(1,2),16),c=parseInt(a.substr(3,2),16);a=parseInt(a.substr(5,2),16);return[b,c,a]};
goog.color.rgbToHex=function(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(isNaN(a)||0>a||255<a||isNaN(b)||0>b||255<b||isNaN(c)||0>c||255<c)throw Error('"('+a+","+b+","+c+'") is not a valid RGB color');a=goog.color.prependZeroIfNecessaryHelper(a.toString(16));b=goog.color.prependZeroIfNecessaryHelper(b.toString(16));c=goog.color.prependZeroIfNecessaryHelper(c.toString(16));return"#"+a+b+c};goog.color.rgbArrayToHex=function(a){return goog.color.rgbToHex(a[0],a[1],a[2])};
goog.color.rgbToHsl=function(a,b,c){a/=255;b/=255;c/=255;var d=Math.max(a,b,c),e=Math.min(a,b,c),f=0,g=0,h=0.5*(d+e);d!=e&&(d==a?f=60*(b-c)/(d-e):d==b?f=60*(c-a)/(d-e)+120:d==c&&(f=60*(a-b)/(d-e)+240),g=0<h&&0.5>=h?(d-e)/(2*h):(d-e)/(2-2*h));return[Math.round(f+360)%360,g,h]};goog.color.rgbArrayToHsl=function(a){return goog.color.rgbToHsl(a[0],a[1],a[2])};goog.color.hueToRgb_=function(a,b,c){0>c?c+=1:1<c&&(c-=1);return 1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a};
goog.color.hslToRgb=function(a,b,c){var d=0,e=0,f=0;a/=360;if(0==b)d=e=f=255*c;else var g=f=0,g=0.5>c?c*(1+b):c+b-b*c,f=2*c-g,d=255*goog.color.hueToRgb_(f,g,a+1/3),e=255*goog.color.hueToRgb_(f,g,a),f=255*goog.color.hueToRgb_(f,g,a-1/3);return[Math.round(d),Math.round(e),Math.round(f)]};goog.color.hslArrayToRgb=function(a){return goog.color.hslToRgb(a[0],a[1],a[2])};goog.color.validHexColorRe_=/^#(?:[0-9a-f]{3}){1,2}$/i;goog.color.isValidHexColor_=function(a){return goog.color.validHexColorRe_.test(a)};
goog.color.normalizedHexColorRe_=/^#[0-9a-f]{6}$/;goog.color.isNormalizedHexColor_=function(a){return goog.color.normalizedHexColorRe_.test(a)};goog.color.rgbColorRe_=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;goog.color.isValidRgbColor_=function(a){var b=a.match(goog.color.rgbColorRe_);if(b){a=Number(b[1]);var c=Number(b[2]),b=Number(b[3]);if(0<=a&&255>=a&&0<=c&&255>=c&&0<=b&&255>=b)return[a,c,b]}return[]};
goog.color.prependZeroIfNecessaryHelper=function(a){return 1==a.length?"0"+a:a};goog.color.prependHashIfNecessaryHelper=function(a){return"#"==a.charAt(0)?a:"#"+a};goog.color.rgbStyle_=function(a){return"rgb("+a.join(",")+")"};
goog.color.hsvToRgb=function(a,b,c){var d=0,e=0,f=0;if(0==b)f=e=d=c;else{var g=Math.floor(a/60),h=a/60-g;a=c*(1-b);var k=c*(1-b*h);b=c*(1-b*(1-h));switch(g){case 1:d=k;e=c;f=a;break;case 2:d=a;e=c;f=b;break;case 3:d=a;e=k;f=c;break;case 4:d=b;e=a;f=c;break;case 5:d=c;e=a;f=k;break;case 6:case 0:d=c,e=b,f=a}}return[Math.floor(d),Math.floor(e),Math.floor(f)]};
goog.color.rgbToHsv=function(a,b,c){var d=Math.max(Math.max(a,b),c),e=Math.min(Math.min(a,b),c);if(e==d)e=a=0;else{var f=d-e,e=f/d;a=60*(a==d?(b-c)/f:b==d?2+(c-a)/f:4+(a-b)/f);0>a&&(a+=360);360<a&&(a-=360)}return[a,e,d]};goog.color.rgbArrayToHsv=function(a){return goog.color.rgbToHsv(a[0],a[1],a[2])};goog.color.hsvArrayToRgb=function(a){return goog.color.hsvToRgb(a[0],a[1],a[2])};goog.color.hexToHsl=function(a){a=goog.color.hexToRgb(a);return goog.color.rgbToHsl(a[0],a[1],a[2])};
goog.color.hslToHex=function(a,b,c){return goog.color.rgbArrayToHex(goog.color.hslToRgb(a,b,c))};goog.color.hslArrayToHex=function(a){return goog.color.rgbArrayToHex(goog.color.hslToRgb(a[0],a[1],a[2]))};goog.color.hexToHsv=function(a){return goog.color.rgbArrayToHsv(goog.color.hexToRgb(a))};goog.color.hsvToHex=function(a,b,c){return goog.color.rgbArrayToHex(goog.color.hsvToRgb(a,b,c))};goog.color.hsvArrayToHex=function(a){return goog.color.hsvToHex(a[0],a[1],a[2])};
goog.color.hslDistance=function(a,b){var c,d;c=0.5>=a[2]?a[1]*a[2]:a[1]*(1-a[2]);d=0.5>=b[2]?b[1]*b[2]:b[1]*(1-b[2]);return(a[2]-b[2])*(a[2]-b[2])+c*c+d*d-2*c*d*Math.cos(2*(a[0]/360-b[0]/360)*Math.PI)};goog.color.blend=function(a,b,c){c=goog.math.clamp(c,0,1);return[Math.round(c*a[0]+(1-c)*b[0]),Math.round(c*a[1]+(1-c)*b[1]),Math.round(c*a[2]+(1-c)*b[2])]};goog.color.darken=function(a,b){return goog.color.blend([0,0,0],a,b)};
goog.color.lighten=function(a,b){return goog.color.blend([255,255,255],a,b)};goog.color.highContrast=function(a,b){for(var c=[],d=0;d<b.length;d++)c.push({color:b[d],diff:goog.color.yiqBrightnessDiff_(b[d],a)+goog.color.colorDiff_(b[d],a)});c.sort(function(a,b){return b.diff-a.diff});return c[0].color};goog.color.yiqBrightness_=function(a){return Math.round((299*a[0]+587*a[1]+114*a[2])/1E3)};goog.color.yiqBrightnessDiff_=function(a,b){return Math.abs(goog.color.yiqBrightness_(a)-goog.color.yiqBrightness_(b))};
goog.color.colorDiff_=function(a,b){return Math.abs(a[0]-b[0])+Math.abs(a[1]-b[1])+Math.abs(a[2]-b[2])};goog.fx.dom={};goog.fx.dom.PredefinedEffect=function(a,b,c,d,e){goog.fx.Animation.call(this,b,c,d,e);this.element=a};goog.inherits(goog.fx.dom.PredefinedEffect,goog.fx.Animation);goog.fx.dom.PredefinedEffect.prototype.updateStyle=goog.nullFunction;goog.fx.dom.PredefinedEffect.prototype.isRightToLeft=function(){goog.isDef(this.rightToLeft_)||(this.rightToLeft_=goog.style.isRightToLeft(this.element));return this.rightToLeft_};
goog.fx.dom.PredefinedEffect.prototype.onAnimate=function(){this.updateStyle();goog.fx.dom.PredefinedEffect.superClass_.onAnimate.call(this)};goog.fx.dom.PredefinedEffect.prototype.onEnd=function(){this.updateStyle();goog.fx.dom.PredefinedEffect.superClass_.onEnd.call(this)};goog.fx.dom.PredefinedEffect.prototype.onBegin=function(){this.updateStyle();goog.fx.dom.PredefinedEffect.superClass_.onBegin.call(this)};
goog.fx.dom.Slide=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");goog.fx.dom.PredefinedEffect.apply(this,arguments)};goog.inherits(goog.fx.dom.Slide,goog.fx.dom.PredefinedEffect);goog.fx.dom.Slide.prototype.updateStyle=function(){var a=this.isRightPositioningForRtlEnabled()&&this.isRightToLeft()?"right":"left";this.element.style[a]=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};
goog.fx.dom.SlideFrom=function(a,b,c,d){var e=[this.isRightPositioningForRtlEnabled()?goog.style.bidi.getOffsetStart(a):a.offsetLeft,a.offsetTop];goog.fx.dom.Slide.call(this,a,e,b,c,d)};goog.inherits(goog.fx.dom.SlideFrom,goog.fx.dom.Slide);goog.fx.dom.SlideFrom.prototype.onBegin=function(){this.startPoint=[this.isRightPositioningForRtlEnabled()?goog.style.bidi.getOffsetStart(this.element):this.element.offsetLeft,this.element.offsetTop];goog.fx.dom.SlideFrom.superClass_.onBegin.call(this)};
goog.fx.dom.Swipe=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");goog.fx.dom.PredefinedEffect.apply(this,arguments);this.maxWidth_=Math.max(this.endPoint[0],this.startPoint[0]);this.maxHeight_=Math.max(this.endPoint[1],this.startPoint[1])};goog.inherits(goog.fx.dom.Swipe,goog.fx.dom.PredefinedEffect);
goog.fx.dom.Swipe.prototype.updateStyle=function(){var a=this.coords[0],b=this.coords[1];this.clip_(Math.round(a),Math.round(b),this.maxWidth_,this.maxHeight_);this.element.style.width=Math.round(a)+"px";var c=this.isRightPositioningForRtlEnabled()&&this.isRightToLeft()?"marginRight":"marginLeft";this.element.style[c]=Math.round(a)-this.maxWidth_+"px";this.element.style.marginTop=Math.round(b)-this.maxHeight_+"px"};
goog.fx.dom.Swipe.prototype.clip_=function(a,b,c,d){this.element.style.clip="rect("+(d-b)+"px "+c+"px "+d+"px "+(c-a)+"px)"};goog.fx.dom.Scroll=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");goog.fx.dom.PredefinedEffect.apply(this,arguments)};goog.inherits(goog.fx.dom.Scroll,goog.fx.dom.PredefinedEffect);
goog.fx.dom.Scroll.prototype.updateStyle=function(){this.isRightPositioningForRtlEnabled()?goog.style.bidi.setScrollOffset(this.element,Math.round(this.coords[0])):this.element.scrollLeft=Math.round(this.coords[0]);this.element.scrollTop=Math.round(this.coords[1])};goog.fx.dom.Resize=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");goog.fx.dom.PredefinedEffect.apply(this,arguments)};goog.inherits(goog.fx.dom.Resize,goog.fx.dom.PredefinedEffect);
goog.fx.dom.Resize.prototype.updateStyle=function(){this.element.style.width=Math.round(this.coords[0])+"px";this.element.style.height=Math.round(this.coords[1])+"px"};goog.fx.dom.ResizeWidth=function(a,b,c,d,e){goog.fx.dom.PredefinedEffect.call(this,a,[b],[c],d,e)};goog.inherits(goog.fx.dom.ResizeWidth,goog.fx.dom.PredefinedEffect);goog.fx.dom.ResizeWidth.prototype.updateStyle=function(){this.element.style.width=Math.round(this.coords[0])+"px"};
goog.fx.dom.ResizeHeight=function(a,b,c,d,e){goog.fx.dom.PredefinedEffect.call(this,a,[b],[c],d,e)};goog.inherits(goog.fx.dom.ResizeHeight,goog.fx.dom.PredefinedEffect);goog.fx.dom.ResizeHeight.prototype.updateStyle=function(){this.element.style.height=Math.round(this.coords[0])+"px"};goog.fx.dom.Fade=function(a,b,c,d,e){goog.isNumber(b)&&(b=[b]);goog.isNumber(c)&&(c=[c]);goog.fx.dom.PredefinedEffect.call(this,a,b,c,d,e);if(1!=b.length||1!=c.length)throw Error("Start and end points must be 1D");};
goog.inherits(goog.fx.dom.Fade,goog.fx.dom.PredefinedEffect);goog.fx.dom.Fade.prototype.updateStyle=function(){goog.style.setOpacity(this.element,this.coords[0])};goog.fx.dom.Fade.prototype.show=function(){this.element.style.display=""};goog.fx.dom.Fade.prototype.hide=function(){this.element.style.display="none"};goog.fx.dom.FadeOut=function(a,b,c){goog.fx.dom.Fade.call(this,a,1,0,b,c)};goog.inherits(goog.fx.dom.FadeOut,goog.fx.dom.Fade);
goog.fx.dom.FadeIn=function(a,b,c){goog.fx.dom.Fade.call(this,a,0,1,b,c)};goog.inherits(goog.fx.dom.FadeIn,goog.fx.dom.Fade);goog.fx.dom.FadeOutAndHide=function(a,b,c){goog.fx.dom.Fade.call(this,a,1,0,b,c)};goog.inherits(goog.fx.dom.FadeOutAndHide,goog.fx.dom.Fade);goog.fx.dom.FadeOutAndHide.prototype.onBegin=function(){this.show();goog.fx.dom.FadeOutAndHide.superClass_.onBegin.call(this)};goog.fx.dom.FadeOutAndHide.prototype.onEnd=function(){this.hide();goog.fx.dom.FadeOutAndHide.superClass_.onEnd.call(this)};
goog.fx.dom.FadeInAndShow=function(a,b,c){goog.fx.dom.Fade.call(this,a,0,1,b,c)};goog.inherits(goog.fx.dom.FadeInAndShow,goog.fx.dom.Fade);goog.fx.dom.FadeInAndShow.prototype.onBegin=function(){this.show();goog.fx.dom.FadeInAndShow.superClass_.onBegin.call(this)};goog.fx.dom.BgColorTransform=function(a,b,c,d,e){if(3!=b.length||3!=c.length)throw Error("Start and end points must be 3D");goog.fx.dom.PredefinedEffect.apply(this,arguments)};goog.inherits(goog.fx.dom.BgColorTransform,goog.fx.dom.PredefinedEffect);
goog.fx.dom.BgColorTransform.prototype.setColor=function(){for(var a=[],b=0;b<this.coords.length;b++)a[b]=Math.round(this.coords[b]);a="rgb("+a.join(",")+")";this.element.style.backgroundColor=a};goog.fx.dom.BgColorTransform.prototype.updateStyle=function(){this.setColor()};
goog.fx.dom.bgColorFadeIn=function(a,b,c,d){function e(){a.style.backgroundColor=f}var f=a.style.backgroundColor||"",g=goog.style.getBackgroundColor(a),g=g&&"transparent"!=g&&"rgba(0, 0, 0, 0)"!=g?goog.color.hexToRgb(goog.color.parse(g).hex):[255,255,255];b=new goog.fx.dom.BgColorTransform(a,b,g,c);d?d.listen(b,goog.fx.Transition.EventType.END,e):goog.events.listen(b,goog.fx.Transition.EventType.END,e);b.play()};
goog.fx.dom.ColorTransform=function(a,b,c,d,e){if(3!=b.length||3!=c.length)throw Error("Start and end points must be 3D");goog.fx.dom.PredefinedEffect.apply(this,arguments)};goog.inherits(goog.fx.dom.ColorTransform,goog.fx.dom.PredefinedEffect);goog.fx.dom.ColorTransform.prototype.updateStyle=function(){for(var a=[],b=0;b<this.coords.length;b++)a[b]=Math.round(this.coords[b]);a="rgb("+a.join(",")+")";this.element.style.color=a};goog.ui.ac.Renderer=function(a,b,c,d){goog.ui.ac.Renderer.base(this,"constructor");this.parent_=a||goog.dom.getDocument().body;this.dom_=goog.dom.getDomHelper(this.parent_);this.reposition_=!a;this.element_=null;this.token_="";this.rows_=[];this.rowDivs_=[];this.startRenderingRows_=this.hilitedRow_=-1;this.visible_=!1;this.className="ac-renderer";this.rowClassName="ac-row";this.legacyActiveClassName_="active";this.activeClassName="ac-active";this.highlightedClassName="ac-highlighted";this.customRenderer_=
b||null;this.useStandardHighlighting_=null!=d?d:!0;this.matchWordBoundary_=!0;this.highlightAllTokens_=!1;this.rightAlign_=!!c;this.topAlign_=!1;this.menuFadeDuration_=0;this.showScrollbarsIfTooLarge_=!1};goog.inherits(goog.ui.ac.Renderer,goog.events.EventTarget);goog.ui.ac.Renderer.DELAY_BEFORE_MOUSEOVER=300;goog.ui.ac.Renderer.prototype.getElement=function(){return this.element_};goog.ui.ac.Renderer.prototype.setWidthProvider=function(a){this.widthProvider_=a};
goog.ui.ac.Renderer.prototype.setTopAlign=function(a){this.topAlign_=a};goog.ui.ac.Renderer.prototype.getTopAlign=function(){return this.topAlign_};goog.ui.ac.Renderer.prototype.setRightAlign=function(a){this.rightAlign_=a};goog.ui.ac.Renderer.prototype.getRightAlign=function(){return this.rightAlign_};goog.ui.ac.Renderer.prototype.setShowScrollbarsIfTooLarge=function(a){this.showScrollbarsIfTooLarge_=a};
goog.ui.ac.Renderer.prototype.setUseStandardHighlighting=function(a){this.useStandardHighlighting_=a};goog.ui.ac.Renderer.prototype.setMatchWordBoundary=function(a){this.matchWordBoundary_=a};goog.ui.ac.Renderer.prototype.setHighlightAllTokens=function(a){this.highlightAllTokens_=a};goog.ui.ac.Renderer.prototype.setMenuFadeDuration=function(a){this.menuFadeDuration_=a};goog.ui.ac.Renderer.prototype.setAnchorElement=function(a){this.anchorElement_=a};
goog.ui.ac.Renderer.prototype.getAnchorElement=function(){return this.anchorElement_};goog.ui.ac.Renderer.prototype.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=goog.now();this.target_=c;this.rowDivs_=[];this.redraw()};
goog.ui.ac.Renderer.prototype.dismiss=function(){this.target_&&goog.a11y.aria.setActiveDescendant(this.target_,null);this.visible_&&(this.visible_=!1,this.target_&&goog.a11y.aria.setState(this.target_,goog.a11y.aria.State.HASPOPUP,!1),0<this.menuFadeDuration_?(goog.dispose(this.animation_),this.animation_=new goog.fx.dom.FadeOutAndHide(this.element_,this.menuFadeDuration_),this.animation_.play()):goog.style.setElementShown(this.element_,!1))};
goog.ui.ac.Renderer.prototype.show=function(){this.visible_||(this.visible_=!0,this.target_&&(goog.a11y.aria.setRole(this.target_,goog.a11y.aria.Role.COMBOBOX),goog.a11y.aria.setState(this.target_,goog.a11y.aria.State.AUTOCOMPLETE,"list"),goog.a11y.aria.setState(this.target_,goog.a11y.aria.State.HASPOPUP,!0)),0<this.menuFadeDuration_?(goog.dispose(this.animation_),this.animation_=new goog.fx.dom.FadeInAndShow(this.element_,this.menuFadeDuration_),this.animation_.play()):goog.style.setElementShown(this.element_,
!0))};goog.ui.ac.Renderer.prototype.isVisible=function(){return this.visible_};
goog.ui.ac.Renderer.prototype.hiliteRow=function(a){var b=0<=a&&a<this.rows_.length?this.rows_[a]:void 0,c=0<=a&&a<this.rowDivs_.length?this.rowDivs_[a]:void 0;if(this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.ROW_HILITE,rowNode:c,row:b?b.data:null}))this.hiliteNone(),this.hilitedRow_=a,c&&(goog.dom.classlist.addAll(c,[this.activeClassName,this.legacyActiveClassName_]),this.target_&&goog.a11y.aria.setActiveDescendant(this.target_,c),goog.style.scrollIntoContainerView(c,this.element_))};
goog.ui.ac.Renderer.prototype.hiliteNone=function(){0<=this.hilitedRow_&&goog.dom.classlist.removeAll(this.rowDivs_[this.hilitedRow_],[this.activeClassName,this.legacyActiveClassName_])};goog.ui.ac.Renderer.prototype.hiliteId=function(a){if(-1==a)this.hiliteRow(-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){this.hiliteRow(b);break}};goog.ui.ac.Renderer.prototype.setMenuClasses_=function(a){goog.dom.classlist.addAll(a,goog.string.trim(this.className).split(" "))};
goog.ui.ac.Renderer.prototype.maybeCreateElement_=function(){if(!this.element_){var a=this.dom_.createDom("div",{style:"display:none"});this.showScrollbarsIfTooLarge_&&(a.style.overflowY="auto");this.element_=a;this.setMenuClasses_(a);goog.a11y.aria.setRole(a,goog.a11y.aria.Role.LISTBOX);a.id=goog.ui.IdGenerator.getInstance().getNextUniqueId();this.dom_.appendChild(this.parent_,a);goog.events.listen(a,goog.events.EventType.CLICK,this.handleClick_,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEDOWN,
this.handleMouseDown_,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEOVER,this.handleMouseOver_,!1,this)}};
goog.ui.ac.Renderer.prototype.redraw=function(){this.maybeCreateElement_();this.topAlign_&&(this.element_.style.visibility="hidden");this.widthProvider_&&(this.element_.style.minWidth=this.widthProvider_.clientWidth+"px");this.rowDivs_.length=0;this.dom_.removeChildren(this.element_);if(this.customRenderer_&&this.customRenderer_.render)this.customRenderer_.render(this,this.element_,this.rows_,this.token_);else{var a=null;goog.array.forEach(this.rows_,function(b){b=this.renderRowHtml(b,this.token_);
this.topAlign_?this.element_.insertBefore(b,a):this.dom_.appendChild(this.element_,b);a=b},this)}0==this.rows_.length?this.dismiss():(this.show(),this.reposition(),goog.style.setUnselectable(this.element_,!0))};goog.ui.ac.Renderer.prototype.getAnchorCorner=function(){var a=this.rightAlign_?goog.positioning.Corner.BOTTOM_RIGHT:goog.positioning.Corner.BOTTOM_LEFT;this.topAlign_&&(a=goog.positioning.flipCornerVertical(a));return a};
goog.ui.ac.Renderer.prototype.reposition=function(){if(this.target_&&this.reposition_){var a=this.anchorElement_||this.target_,b=this.getAnchorCorner(),c=goog.positioning.Overflow.ADJUST_X_EXCEPT_OFFSCREEN;this.showScrollbarsIfTooLarge_&&(this.element_.style.height="",c|=goog.positioning.Overflow.RESIZE_HEIGHT);goog.positioning.positionAtAnchor(a,b,this.element_,goog.positioning.flipCornerVertical(b),null,null,c);this.topAlign_&&(this.element_.style.visibility="visible")}};
goog.ui.ac.Renderer.prototype.setAutoPosition=function(a){this.reposition_=a};goog.ui.ac.Renderer.prototype.getAutoPosition=function(){return this.reposition_};goog.ui.ac.Renderer.prototype.getTarget=function(){return this.target_};
goog.ui.ac.Renderer.prototype.disposeInternal=function(){this.element_&&(goog.events.unlisten(this.element_,goog.events.EventType.CLICK,this.handleClick_,!1,this),goog.events.unlisten(this.element_,goog.events.EventType.MOUSEDOWN,this.handleMouseDown_,!1,this),goog.events.unlisten(this.element_,goog.events.EventType.MOUSEOVER,this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);goog.dispose(this.animation_);this.parent_=null;goog.ui.ac.Renderer.base(this,
"disposeInternal")};goog.ui.ac.Renderer.prototype.renderRowContents_=function(a,b,c){goog.dom.setTextContent(c,a.data.toString())};
goog.ui.ac.Renderer.prototype.hiliteMatchingText_=function(a,b){if(a.nodeType==goog.dom.NodeType.TEXT){var c=null;goog.isArray(b)&&(1<b.length&&!this.highlightAllTokens_)&&(c=goog.array.slice(b,1));var d=this.getTokenRegExp_(b);if(0!=d.length){for(var e=a.nodeValue,f=this.matchWordBoundary_?RegExp("\\b(?:"+d+")","gi"):RegExp(d,"gi"),d=[],g=0,h=f.exec(e),k=0;h;)k++,d.push(e.substring(g,h.index)),d.push(e.substring(h.index,f.lastIndex)),g=f.lastIndex,h=f.exec(e);d.push(e.substring(g));if(1<d.length){c=
!this.highlightAllTokens_?1:k;for(e=0;e<c;e++)f=2*e,a.nodeValue=d[f],g=this.dom_.createElement("b"),g.className=this.highlightedClassName,this.dom_.appendChild(g,this.dom_.createTextNode(d[f+1])),g=a.parentNode.insertBefore(g,a.nextSibling),a.parentNode.insertBefore(this.dom_.createTextNode(""),g.nextSibling),a=g.nextSibling;d=goog.array.slice(d,2*c);a.nodeValue=d.join("")}else c&&this.hiliteMatchingText_(a,c)}}else for(d=a.firstChild;d;)c=d.nextSibling,this.hiliteMatchingText_(d,b),d=c};
goog.ui.ac.Renderer.prototype.getTokenRegExp_=function(a){var b="";if(!a)return b;goog.isArray(a)&&(a=goog.array.filter(a,function(a){return!goog.string.isEmptySafe(a)}));this.highlightAllTokens_?goog.isArray(a)?b=goog.array.map(a,goog.string.regExpEscape).join("|"):(b=goog.string.collapseWhitespace(a),b=goog.string.regExpEscape(b),b=b.replace(/ /g,"|")):goog.isArray(a)?b=0<a.length?goog.string.regExpEscape(a[0]):"":/^\W/.test(a)||(b=goog.string.regExpEscape(a));return b};
goog.ui.ac.Renderer.prototype.renderRowHtml=function(a,b){var c=this.dom_.createDom("div",{className:this.rowClassName,id:goog.ui.IdGenerator.getInstance().getNextUniqueId()});goog.a11y.aria.setRole(c,goog.a11y.aria.Role.OPTION);this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(a,b,c):this.renderRowContents_(a,b,c);b&&this.useStandardHighlighting_&&this.hiliteMatchingText_(c,b);goog.dom.classlist.add(c,this.rowClassName);this.rowDivs_.push(c);return c};
goog.ui.ac.Renderer.prototype.getRowFromEventTarget_=function(a){for(;a&&a!=this.element_&&!goog.dom.classlist.contains(a,this.rowClassName);)a=a.parentNode;return a?goog.array.indexOf(this.rowDivs_,a):-1};goog.ui.ac.Renderer.prototype.handleClick_=function(a){var b=this.getRowFromEventTarget_(a.target);0<=b&&this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.SELECT,row:this.rows_[b].id});a.stopPropagation()};goog.ui.ac.Renderer.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
goog.ui.ac.Renderer.prototype.handleMouseOver_=function(a){a=this.getRowFromEventTarget_(a.target);0<=a&&!(goog.now()-this.startRenderingRows_<goog.ui.ac.Renderer.DELAY_BEFORE_MOUSEOVER)&&this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.HILITE,row:this.rows_[a].id})};goog.ui.ac.Renderer.CustomRenderer=function(){};goog.ui.ac.Renderer.CustomRenderer.prototype.render=function(a,b,c,d){};goog.ui.ac.Renderer.CustomRenderer.prototype.renderRow=function(a,b,c){};goog.ui.ac.createSimpleAutoComplete=function(a,b,c,d){a=new goog.ui.ac.ArrayMatcher(a,!d);d=new goog.ui.ac.Renderer;c=new goog.ui.ac.InputHandler(null,null,!!c);a=new goog.ui.ac.AutoComplete(a,d,c);c.attachAutoComplete(a);c.attachInputs(b);return a};neutron.dashboard.controllers={};neutron.dashboard.controllers.activity_feed_board={};neutron.dashboard.controllers.activity_feed_board.Standard=function(a){neutron.dashboard.BaseClass.call(this);this._parentObject=a;this.COMMENT_HERE_HEIGHT=120;this.TAB_PANES_PADDING=12;this._init()};goog.inherits(neutron.dashboard.controllers.activity_feed_board.Standard,neutron.dashboard.BaseClass);neutron.dashboard.controllers.activity_feed_board.Standard.prototype._init=function(){};
neutron.dashboard.controllers.activity_feed_board.Standard.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a)){var b=this._parentObject.htmlNode(),c=a.height,d=a.width-2,e=this._parentObject._htmlNodeTabContent,f=this._parentObject._htmlNodeActivityTabContent,c=c-this.TAB_PANES_PADDING;!0==goog.isDefAndNotNull(e)&&(e.style.top="0px",e.style.left="0px",e.style.width=d+"px",e.style.height=c+"px");!0==goog.isDefAndNotNull(f)&&
(f.style.top="0px",f.style.left="0px",f.style.width=d+"px",f.style.height=c+"px");e=this._parentObject.commentHere();!0==goog.isDefAndNotNull(e)&&(e.dispatchEvent(new neutron.dashboard.events.Update(f,0,0,d+1,-1)),e=this._parentObject.activitiesPane(),!0==goog.isDefAndNotNull(e)&&e.dispatchEvent(new neutron.dashboard.events.Update(f,0,this.COMMENT_HERE_HEIGHT,d,c-this.COMMENT_HERE_HEIGHT)));b.style.top=a.top+"px";b.style.left=a.left+"px";b.style.width=a.width-2+"px";b.style.height=a.height+"px"}}};
neutron.dashboard.controllers.activity_feed_board.Standard.prototype._remove=function(){this._parentObject=null};goog.ui.ContainerRenderer=function(a){this.ariaRole_=a};goog.addSingletonGetter(goog.ui.ContainerRenderer);goog.ui.ContainerRenderer.getCustomRenderer=function(a,b){var c=new a;c.getCssClass=function(){return b};return c};goog.ui.ContainerRenderer.CSS_CLASS="goog-container";goog.ui.ContainerRenderer.prototype.getAriaRole=function(){return this.ariaRole_};goog.ui.ContainerRenderer.prototype.enableTabIndex=function(a,b){a&&(a.tabIndex=b?0:-1)};
goog.ui.ContainerRenderer.prototype.createDom=function(a){return a.getDomHelper().createDom("div",this.getClassNames(a).join(" "))};goog.ui.ContainerRenderer.prototype.getContentElement=function(a){return a};goog.ui.ContainerRenderer.prototype.canDecorate=function(a){return"DIV"==a.tagName};
goog.ui.ContainerRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);var c=this.getCssClass(),d=!1,e=goog.dom.classlist.get(b);e&&goog.array.forEach(e,function(b){b==c?d=!0:b&&this.setStateFromClassName(a,b,c)},this);d||goog.dom.classlist.add(b,c);this.decorateChildren(a,this.getContentElement(b));return b};
goog.ui.ContainerRenderer.prototype.setStateFromClassName=function(a,b,c){b==c+"-disabled"?a.setEnabled(!1):b==c+"-horizontal"?a.setOrientation(goog.ui.Container.Orientation.HORIZONTAL):b==c+"-vertical"&&a.setOrientation(goog.ui.Container.Orientation.VERTICAL)};
goog.ui.ContainerRenderer.prototype.decorateChildren=function(a,b,c){if(b){c=c||b.firstChild;for(var d;c&&c.parentNode==b;){d=c.nextSibling;if(c.nodeType==goog.dom.NodeType.ELEMENT){var e=this.getDecoratorForChild(c);e&&(e.setElementInternal(c),a.isEnabled()||e.setEnabled(!1),a.addChild(e),e.decorate(c))}else(!c.nodeValue||""==goog.string.trim(c.nodeValue))&&b.removeChild(c);c=d}}};goog.ui.ContainerRenderer.prototype.getDecoratorForChild=function(a){return goog.ui.registry.getDecorator(a)};
goog.ui.ContainerRenderer.prototype.initializeDom=function(a){a=a.getElement();goog.asserts.assert(a,"The container DOM element cannot be null.");goog.style.setUnselectable(a,!0,goog.userAgent.GECKO);goog.userAgent.IE&&(a.hideFocus=!0);var b=this.getAriaRole();b&&goog.a11y.aria.setRole(a,b)};goog.ui.ContainerRenderer.prototype.getKeyEventTarget=function(a){return a.getElement()};goog.ui.ContainerRenderer.prototype.getCssClass=function(){return goog.ui.ContainerRenderer.CSS_CLASS};
goog.ui.ContainerRenderer.prototype.getClassNames=function(a){var b=this.getCssClass(),c=a.getOrientation()==goog.ui.Container.Orientation.HORIZONTAL,c=[b,c?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};goog.ui.ContainerRenderer.prototype.getDefaultOrientation=function(){return goog.ui.Container.Orientation.VERTICAL};goog.ui.TabBarRenderer=function(){goog.ui.ContainerRenderer.call(this,goog.a11y.aria.Role.TAB_LIST)};goog.inherits(goog.ui.TabBarRenderer,goog.ui.ContainerRenderer);goog.addSingletonGetter(goog.ui.TabBarRenderer);goog.ui.TabBarRenderer.CSS_CLASS="goog-tab-bar";goog.ui.TabBarRenderer.prototype.getCssClass=function(){return goog.ui.TabBarRenderer.CSS_CLASS};
goog.ui.TabBarRenderer.prototype.setStateFromClassName=function(a,b,c){this.locationByClass_||this.createLocationByClassMap_();var d=this.locationByClass_[b];d?a.setLocation(d):goog.ui.TabBarRenderer.superClass_.setStateFromClassName.call(this,a,b,c)};goog.ui.TabBarRenderer.prototype.getClassNames=function(a){var b=goog.ui.TabBarRenderer.superClass_.getClassNames.call(this,a);this.classByLocation_||this.createClassByLocationMap_();b.push(this.classByLocation_[a.getLocation()]);return b};
goog.ui.TabBarRenderer.prototype.createClassByLocationMap_=function(){var a=this.getCssClass();this.classByLocation_=goog.object.create(goog.ui.TabBar.Location.TOP,a+"-top",goog.ui.TabBar.Location.BOTTOM,a+"-bottom",goog.ui.TabBar.Location.START,a+"-start",goog.ui.TabBar.Location.END,a+"-end")};goog.ui.TabBarRenderer.prototype.createLocationByClassMap_=function(){this.classByLocation_||this.createClassByLocationMap_();this.locationByClass_=goog.object.transpose(this.classByLocation_)};goog.ui.Container=function(a,b,c){goog.ui.Component.call(this,c);this.renderer_=b||goog.ui.ContainerRenderer.getInstance();this.orientation_=a||this.renderer_.getDefaultOrientation()};goog.inherits(goog.ui.Container,goog.ui.Component);goog.ui.Container.EventType={AFTER_SHOW:"aftershow",AFTER_HIDE:"afterhide"};goog.ui.Container.Orientation={HORIZONTAL:"horizontal",VERTICAL:"vertical"};goog.ui.Container.prototype.keyEventTarget_=null;goog.ui.Container.prototype.keyHandler_=null;
goog.ui.Container.prototype.renderer_=null;goog.ui.Container.prototype.orientation_=null;goog.ui.Container.prototype.visible_=!0;goog.ui.Container.prototype.enabled_=!0;goog.ui.Container.prototype.focusable_=!0;goog.ui.Container.prototype.highlightedIndex_=-1;goog.ui.Container.prototype.openItem_=null;goog.ui.Container.prototype.mouseButtonPressed_=!1;goog.ui.Container.prototype.allowFocusableChildren_=!1;goog.ui.Container.prototype.openFollowsHighlight_=!0;
goog.ui.Container.prototype.childElementIdMap_=null;goog.ui.Container.prototype.getKeyEventTarget=function(){return this.keyEventTarget_||this.renderer_.getKeyEventTarget(this)};
goog.ui.Container.prototype.setKeyEventTarget=function(a){if(this.focusable_){var b=this.getKeyEventTarget(),c=this.isInDocument();this.keyEventTarget_=a;var d=this.getKeyEventTarget();c&&(this.keyEventTarget_=b,this.enableFocusHandling_(!1),this.keyEventTarget_=a,this.getKeyHandler().attach(d),this.enableFocusHandling_(!0))}else throw Error("Can't set key event target for container that doesn't support keyboard focus!");};
goog.ui.Container.prototype.getKeyHandler=function(){return this.keyHandler_||(this.keyHandler_=new goog.events.KeyHandler(this.getKeyEventTarget()))};goog.ui.Container.prototype.getRenderer=function(){return this.renderer_};goog.ui.Container.prototype.setRenderer=function(a){if(this.getElement())throw Error(goog.ui.Component.Error.ALREADY_RENDERED);this.renderer_=a};goog.ui.Container.prototype.createDom=function(){this.setElementInternal(this.renderer_.createDom(this))};
goog.ui.Container.prototype.getContentElement=function(){return this.renderer_.getContentElement(this.getElement())};goog.ui.Container.prototype.canDecorate=function(a){return this.renderer_.canDecorate(a)};goog.ui.Container.prototype.decorateInternal=function(a){this.setElementInternal(this.renderer_.decorate(this,a));"none"==a.style.display&&(this.visible_=!1)};
goog.ui.Container.prototype.enterDocument=function(){goog.ui.Container.superClass_.enterDocument.call(this);this.forEachChild(function(a){a.isInDocument()&&this.registerChildId_(a)},this);var a=this.getElement();this.renderer_.initializeDom(this);this.setVisible(this.visible_,!0);this.getHandler().listen(this,goog.ui.Component.EventType.ENTER,this.handleEnterItem).listen(this,goog.ui.Component.EventType.HIGHLIGHT,this.handleHighlightItem).listen(this,goog.ui.Component.EventType.UNHIGHLIGHT,this.handleUnHighlightItem).listen(this,
goog.ui.Component.EventType.OPEN,this.handleOpenItem).listen(this,goog.ui.Component.EventType.CLOSE,this.handleCloseItem).listen(a,goog.events.EventType.MOUSEDOWN,this.handleMouseDown).listen(goog.dom.getOwnerDocument(a),goog.events.EventType.MOUSEUP,this.handleDocumentMouseUp).listen(a,[goog.events.EventType.MOUSEDOWN,goog.events.EventType.MOUSEUP,goog.events.EventType.MOUSEOVER,goog.events.EventType.MOUSEOUT,goog.events.EventType.CONTEXTMENU],this.handleChildMouseEvents);this.isFocusable()&&this.enableFocusHandling_(!0)};
goog.ui.Container.prototype.enableFocusHandling_=function(a){var b=this.getHandler(),c=this.getKeyEventTarget();a?b.listen(c,goog.events.EventType.FOCUS,this.handleFocus).listen(c,goog.events.EventType.BLUR,this.handleBlur).listen(this.getKeyHandler(),goog.events.KeyHandler.EventType.KEY,this.handleKeyEvent):b.unlisten(c,goog.events.EventType.FOCUS,this.handleFocus).unlisten(c,goog.events.EventType.BLUR,this.handleBlur).unlisten(this.getKeyHandler(),goog.events.KeyHandler.EventType.KEY,this.handleKeyEvent)};
goog.ui.Container.prototype.exitDocument=function(){this.setHighlightedIndex(-1);this.openItem_&&this.openItem_.setOpen(!1);this.mouseButtonPressed_=!1;goog.ui.Container.superClass_.exitDocument.call(this)};goog.ui.Container.prototype.disposeInternal=function(){goog.ui.Container.superClass_.disposeInternal.call(this);this.keyHandler_&&(this.keyHandler_.dispose(),this.keyHandler_=null);this.renderer_=this.openItem_=this.childElementIdMap_=this.keyEventTarget_=null};
goog.ui.Container.prototype.handleEnterItem=function(a){return!0};
goog.ui.Container.prototype.handleHighlightItem=function(a){var b=this.indexOfChild(a.target);if(-1<b&&b!=this.highlightedIndex_){var c=this.getHighlighted();c&&c.setHighlighted(!1);this.highlightedIndex_=b;c=this.getHighlighted();this.isMouseButtonPressed()&&c.setActive(!0);this.openFollowsHighlight_&&(this.openItem_&&c!=this.openItem_)&&(c.isSupportedState(goog.ui.Component.State.OPENED)?c.setOpen(!0):this.openItem_.setOpen(!1))}b=this.getElement();goog.asserts.assert(b,"The DOM element for the container cannot be null.");
null!=a.target.getElement()&&goog.a11y.aria.setState(b,goog.a11y.aria.State.ACTIVEDESCENDANT,a.target.getElement().id)};goog.ui.Container.prototype.handleUnHighlightItem=function(a){a.target==this.getHighlighted()&&(this.highlightedIndex_=-1);a=this.getElement();goog.asserts.assert(a,"The DOM element for the container cannot be null.");goog.a11y.aria.removeState(a,goog.a11y.aria.State.ACTIVEDESCENDANT)};
goog.ui.Container.prototype.handleOpenItem=function(a){if((a=a.target)&&a!=this.openItem_&&a.getParent()==this)this.openItem_&&this.openItem_.setOpen(!1),this.openItem_=a};goog.ui.Container.prototype.handleCloseItem=function(a){a.target==this.openItem_&&(this.openItem_=null)};goog.ui.Container.prototype.handleMouseDown=function(a){this.enabled_&&this.setMouseButtonPressed(!0);var b=this.getKeyEventTarget();b&&goog.dom.isFocusableTabIndex(b)?b.focus():a.preventDefault()};
goog.ui.Container.prototype.handleDocumentMouseUp=function(a){this.setMouseButtonPressed(!1)};goog.ui.Container.prototype.handleChildMouseEvents=function(a){var b=this.getOwnerControl(a.target);if(b)switch(a.type){case goog.events.EventType.MOUSEDOWN:b.handleMouseDown(a);break;case goog.events.EventType.MOUSEUP:b.handleMouseUp(a);break;case goog.events.EventType.MOUSEOVER:b.handleMouseOver(a);break;case goog.events.EventType.MOUSEOUT:b.handleMouseOut(a);break;case goog.events.EventType.CONTEXTMENU:b.handleContextMenu(a)}};
goog.ui.Container.prototype.getOwnerControl=function(a){if(this.childElementIdMap_)for(var b=this.getElement();a&&a!==b;){var c=a.id;if(c in this.childElementIdMap_)return this.childElementIdMap_[c];a=a.parentNode}return null};goog.ui.Container.prototype.handleFocus=function(a){};goog.ui.Container.prototype.handleBlur=function(a){this.setHighlightedIndex(-1);this.setMouseButtonPressed(!1);this.openItem_&&this.openItem_.setOpen(!1)};
goog.ui.Container.prototype.handleKeyEvent=function(a){return this.isEnabled()&&this.isVisible()&&(0!=this.getChildCount()||this.keyEventTarget_)&&this.handleKeyEventInternal(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};
goog.ui.Container.prototype.handleKeyEventInternal=function(a){var b=this.getHighlighted();if(b&&"function"==typeof b.handleKeyEvent&&b.handleKeyEvent(a)||this.openItem_&&this.openItem_!=b&&"function"==typeof this.openItem_.handleKeyEvent&&this.openItem_.handleKeyEvent(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case goog.events.KeyCodes.ESC:if(this.isFocusable())this.getKeyEventTarget().blur();else return!1;break;case goog.events.KeyCodes.HOME:this.highlightFirst();
break;case goog.events.KeyCodes.END:this.highlightLast();break;case goog.events.KeyCodes.UP:if(this.orientation_==goog.ui.Container.Orientation.VERTICAL)this.highlightPrevious();else return!1;break;case goog.events.KeyCodes.LEFT:if(this.orientation_==goog.ui.Container.Orientation.HORIZONTAL)this.isRightToLeft()?this.highlightNext():this.highlightPrevious();else return!1;break;case goog.events.KeyCodes.DOWN:if(this.orientation_==goog.ui.Container.Orientation.VERTICAL)this.highlightNext();else return!1;
break;case goog.events.KeyCodes.RIGHT:if(this.orientation_==goog.ui.Container.Orientation.HORIZONTAL)this.isRightToLeft()?this.highlightPrevious():this.highlightNext();else return!1;break;default:return!1}return!0};goog.ui.Container.prototype.registerChildId_=function(a){var b=a.getElement(),b=b.id||(b.id=a.getId());this.childElementIdMap_||(this.childElementIdMap_={});this.childElementIdMap_[b]=a};
goog.ui.Container.prototype.addChild=function(a,b){goog.asserts.assertInstanceof(a,goog.ui.Control,"The child of a container must be a control");goog.ui.Container.superClass_.addChild.call(this,a,b)};
goog.ui.Container.prototype.addChildAt=function(a,b,c){a.setDispatchTransitionEvents(goog.ui.Component.State.HOVER,!0);a.setDispatchTransitionEvents(goog.ui.Component.State.OPENED,!0);(this.isFocusable()||!this.isFocusableChildrenAllowed())&&a.setSupportedState(goog.ui.Component.State.FOCUSED,!1);a.setHandleMouseEvents(!1);goog.ui.Container.superClass_.addChildAt.call(this,a,b,c);a.isInDocument()&&this.isInDocument()&&this.registerChildId_(a);b<=this.highlightedIndex_&&this.highlightedIndex_++};
goog.ui.Container.prototype.removeChild=function(a,b){if(a=goog.isString(a)?this.getChild(a):a){var c=this.indexOfChild(a);-1!=c&&(c==this.highlightedIndex_?(a.setHighlighted(!1),this.highlightedIndex_=-1):c<this.highlightedIndex_&&this.highlightedIndex_--);(c=a.getElement())&&(c.id&&this.childElementIdMap_)&&goog.object.remove(this.childElementIdMap_,c.id)}a=goog.ui.Container.superClass_.removeChild.call(this,a,b);a.setHandleMouseEvents(!0);return a};goog.ui.Container.prototype.getOrientation=function(){return this.orientation_};
goog.ui.Container.prototype.setOrientation=function(a){if(this.getElement())throw Error(goog.ui.Component.Error.ALREADY_RENDERED);this.orientation_=a};goog.ui.Container.prototype.isVisible=function(){return this.visible_};
goog.ui.Container.prototype.setVisible=function(a,b){if(b||this.visible_!=a&&this.dispatchEvent(a?goog.ui.Component.EventType.SHOW:goog.ui.Component.EventType.HIDE)){this.visible_=a;var c=this.getElement();c&&(goog.style.setElementShown(c,a),this.isFocusable()&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),this.enabled_&&this.visible_),b||this.dispatchEvent(this.visible_?goog.ui.Container.EventType.AFTER_SHOW:goog.ui.Container.EventType.AFTER_HIDE));return!0}return!1};
goog.ui.Container.prototype.isEnabled=function(){return this.enabled_};
goog.ui.Container.prototype.setEnabled=function(a){if(this.enabled_!=a&&this.dispatchEvent(a?goog.ui.Component.EventType.ENABLE:goog.ui.Component.EventType.DISABLE))a?(this.enabled_=!0,this.forEachChild(function(a){a.wasDisabled?delete a.wasDisabled:a.setEnabled(!0)})):(this.forEachChild(function(a){a.isEnabled()?a.setEnabled(!1):a.wasDisabled=!0}),this.enabled_=!1,this.setMouseButtonPressed(!1)),this.isFocusable()&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),a&&this.visible_)};
goog.ui.Container.prototype.isFocusable=function(){return this.focusable_};goog.ui.Container.prototype.setFocusable=function(a){a!=this.focusable_&&this.isInDocument()&&this.enableFocusHandling_(a);this.focusable_=a;this.enabled_&&this.visible_&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),a)};goog.ui.Container.prototype.isFocusableChildrenAllowed=function(){return this.allowFocusableChildren_};
goog.ui.Container.prototype.setFocusableChildrenAllowed=function(a){this.allowFocusableChildren_=a};goog.ui.Container.prototype.isOpenFollowsHighlight=function(){return this.openFollowsHighlight_};goog.ui.Container.prototype.setOpenFollowsHighlight=function(a){this.openFollowsHighlight_=a};goog.ui.Container.prototype.getHighlightedIndex=function(){return this.highlightedIndex_};
goog.ui.Container.prototype.setHighlightedIndex=function(a){(a=this.getChildAt(a))?a.setHighlighted(!0):-1<this.highlightedIndex_&&this.getHighlighted().setHighlighted(!1)};goog.ui.Container.prototype.setHighlighted=function(a){this.setHighlightedIndex(this.indexOfChild(a))};goog.ui.Container.prototype.getHighlighted=function(){return this.getChildAt(this.highlightedIndex_)};
goog.ui.Container.prototype.highlightFirst=function(){this.highlightHelper(function(a,b){return(a+1)%b},this.getChildCount()-1)};goog.ui.Container.prototype.highlightLast=function(){this.highlightHelper(function(a,b){a--;return 0>a?b-1:a},0)};goog.ui.Container.prototype.highlightNext=function(){this.highlightHelper(function(a,b){return(a+1)%b},this.highlightedIndex_)};goog.ui.Container.prototype.highlightPrevious=function(){this.highlightHelper(function(a,b){a--;return 0>a?b-1:a},this.highlightedIndex_)};
goog.ui.Container.prototype.highlightHelper=function(a,b){for(var c=0>b?this.indexOfChild(this.openItem_):b,d=this.getChildCount(),c=a.call(this,c,d),e=0;e<=d;){var f=this.getChildAt(c);if(f&&this.canHighlightItem(f))return this.setHighlightedIndexFromKeyEvent(c),!0;e++;c=a.call(this,c,d)}return!1};goog.ui.Container.prototype.canHighlightItem=function(a){return a.isVisible()&&a.isEnabled()&&a.isSupportedState(goog.ui.Component.State.HOVER)};
goog.ui.Container.prototype.setHighlightedIndexFromKeyEvent=function(a){this.setHighlightedIndex(a)};goog.ui.Container.prototype.getOpenItem=function(){return this.openItem_};goog.ui.Container.prototype.isMouseButtonPressed=function(){return this.mouseButtonPressed_};goog.ui.Container.prototype.setMouseButtonPressed=function(a){this.mouseButtonPressed_=a};goog.ui.TabBar=function(a,b,c){this.setLocation(a||goog.ui.TabBar.Location.TOP);goog.ui.Container.call(this,this.getOrientation(),b||goog.ui.TabBarRenderer.getInstance(),c);this.listenToTabEvents_()};goog.inherits(goog.ui.TabBar,goog.ui.Container);goog.ui.TabBar.Location={TOP:"top",BOTTOM:"bottom",START:"start",END:"end"};goog.ui.TabBar.prototype.autoSelectTabs_=!0;goog.ui.TabBar.prototype.selectedTab_=null;
goog.ui.TabBar.prototype.enterDocument=function(){goog.ui.TabBar.superClass_.enterDocument.call(this);this.listenToTabEvents_()};goog.ui.TabBar.prototype.disposeInternal=function(){goog.ui.TabBar.superClass_.disposeInternal.call(this);this.selectedTab_=null};goog.ui.TabBar.prototype.removeChild=function(a,b){this.deselectIfSelected(a);return goog.ui.TabBar.superClass_.removeChild.call(this,a,b)};goog.ui.TabBar.prototype.getLocation=function(){return this.location_};
goog.ui.TabBar.prototype.setLocation=function(a){this.setOrientation(goog.ui.TabBar.getOrientationFromLocation(a));this.location_=a};goog.ui.TabBar.prototype.isAutoSelectTabs=function(){return this.autoSelectTabs_};goog.ui.TabBar.prototype.setAutoSelectTabs=function(a){this.autoSelectTabs_=a};goog.ui.TabBar.prototype.setHighlightedIndexFromKeyEvent=function(a){goog.ui.TabBar.superClass_.setHighlightedIndexFromKeyEvent.call(this,a);this.autoSelectTabs_&&this.setSelectedTabIndex(a)};
goog.ui.TabBar.prototype.getSelectedTab=function(){return this.selectedTab_};goog.ui.TabBar.prototype.setSelectedTab=function(a){a?a.setSelected(!0):this.getSelectedTab()&&this.getSelectedTab().setSelected(!1)};goog.ui.TabBar.prototype.getSelectedTabIndex=function(){return this.indexOfChild(this.getSelectedTab())};goog.ui.TabBar.prototype.setSelectedTabIndex=function(a){this.setSelectedTab(this.getChildAt(a))};
goog.ui.TabBar.prototype.deselectIfSelected=function(a){if(a&&a==this.getSelectedTab()){for(var b=this.indexOfChild(a),c=b-1;a=this.getChildAt(c);c--)if(this.isSelectableTab(a)){this.setSelectedTab(a);return}for(b+=1;a=this.getChildAt(b);b++)if(this.isSelectableTab(a)){this.setSelectedTab(a);return}this.setSelectedTab(null)}};goog.ui.TabBar.prototype.isSelectableTab=function(a){return a.isVisible()&&a.isEnabled()};
goog.ui.TabBar.prototype.handleTabSelect=function(a){this.selectedTab_&&this.selectedTab_!=a.target&&this.selectedTab_.setSelected(!1);this.selectedTab_=a.target};goog.ui.TabBar.prototype.handleTabUnselect=function(a){a.target==this.selectedTab_&&(this.selectedTab_=null)};goog.ui.TabBar.prototype.handleTabDisable=function(a){this.deselectIfSelected(a.target)};goog.ui.TabBar.prototype.handleTabHide=function(a){this.deselectIfSelected(a.target)};
goog.ui.TabBar.prototype.handleFocus=function(a){this.getHighlighted()||this.setHighlighted(this.getSelectedTab()||this.getChildAt(0))};goog.ui.TabBar.prototype.listenToTabEvents_=function(){this.getHandler().listen(this,goog.ui.Component.EventType.SELECT,this.handleTabSelect).listen(this,goog.ui.Component.EventType.UNSELECT,this.handleTabUnselect).listen(this,goog.ui.Component.EventType.DISABLE,this.handleTabDisable).listen(this,goog.ui.Component.EventType.HIDE,this.handleTabHide)};
goog.ui.TabBar.getOrientationFromLocation=function(a){return a==goog.ui.TabBar.Location.START||a==goog.ui.TabBar.Location.END?goog.ui.Container.Orientation.VERTICAL:goog.ui.Container.Orientation.HORIZONTAL};goog.ui.registry.setDecoratorByClassName(goog.ui.TabBarRenderer.CSS_CLASS,function(){return new goog.ui.TabBar});neutron.dashboard.controls.AcRenderer=function(a,b,c,d,e){this._preShowCbFunc=a;goog.ui.ac.Renderer.call(this,b,c,d,e);this.customRenderer_=c||this._customRenderImpl()};goog.inherits(neutron.dashboard.controls.AcRenderer,goog.ui.ac.Renderer);neutron.dashboard.controls.AcRenderer.prototype.renderRows=function(a,b,c){goog.ui.ac.Renderer.prototype.renderRows.call(this,a,b,c)};neutron.dashboard.controls.AcRenderer.prototype.show=function(){this._preShowCbFunc&&this._preShowCbFunc();goog.ui.ac.Renderer.prototype.show.call(this)};
neutron.dashboard.controls.AcRenderer.prototype._customRenderImpl=function(){return{renderRow:function(a,b,c){b=a.data;a=goog.dom.createDom("a",{},b.displayName);b=goog.dom.createDom("span",{"class":"email"}," ("+b.userName+")");c.appendChild(a);c.appendChild(b)}}};neutron.dashboard.boards={};neutron.dashboard.boards.ActivityFeed_v2=function(a){neutron.dashboard.RenderableObject.call(this);this._isClientComments2Compliant=a;this._atMentionInfo=this._activitiesPane=this._controller=this._tabBar=this._comment_here=null;this._atMentionKey="@";this._atMentionKeyCode=50;this._atMentionMaxItems=6;this._ACTIVITY_FEED_COMMENTADDED_KEY="ACTIVITY_FEED_COMMENTADDED";this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY="NEUTRON_TO_JAVASCRIPT";this._CONTEXT_MENU="CONTEXT_MENU";this._init()};
goog.inherits(neutron.dashboard.boards.ActivityFeed_v2,neutron.dashboard.RenderableObject);neutron.dashboard.boards.ActivityFeed_v2.prototype._init=function(){this._controller=new neutron.dashboard.controllers.activity_feed_board.Standard(this);this._activitiesPane=new neutron.dashboard.panes.Activities_v2(this._isClientComments2Compliant);this._comment_here=new neutron.dashboard.controls.CommentHere_v2(this._isClientComments2Compliant,this)};
neutron.dashboard.boards.ActivityFeed_v2.prototype.activitiesPane=function(){return this._activitiesPane};neutron.dashboard.boards.ActivityFeed_v2.prototype.commentHere=function(){return this._comment_here};
neutron.dashboard.boards.ActivityFeed_v2.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{id:"activityFeedBoard"});this._htmlNodeTabContent=goog.dom.createDom("div",{id:"activityFeedBoardTabContent","class":"tabPanes"});this._htmlNode.appendChild(this._htmlNodeTabContent);this._htmlNodeActivityTabContent=goog.dom.createDom("div",{id:"activityTabContent","class":"tabPane"});this._htmlNodeTabContent.appendChild(this._htmlNodeActivityTabContent);this._htmlNodeActivityTabContent.style.display=
"block";a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.boards.ActivityFeed_v2.prototype._connectEvents=function(){var a=this;goog.events.listen(window,goog.events.EventType.FOCUS,function(b){if(!0==goog.isDefAndNotNull(a._comment_here)){var c=document.activeElement;if(!c||"textarea"!=c.tagName.toLowerCase())b.preventDefault(),a._comment_here.setFocus()}});goog.events.listen(window,goog.events.EventType.CLICK,function(b){if(!0==goog.isDefAndNotNull(a._activitiesPane))a._activitiesPane.onPanelclicked()});this._addEventHandlerKey(this._ACTIVITY_FEED_COMMENTADDED_KEY,
goog.events.listen(this._comment_here,neutron.dashboard.events.EventType.COMMENT_ADDED,function(b){a._activitiesPane.refreshCurrent(b.itemId)}));this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));this._addEventHandlerKey(this._CONTEXT_MENU,goog.events.listen(document.body,goog.events.EventType.CONTEXTMENU,function(b){a._onContextMenu(b)}));window.onpopstate=
function(){window.history.pushState(null,null,document.URL)}};neutron.dashboard.boards.ActivityFeed_v2.prototype._onContextMenu=function(a){var b=window.neutronJavaScriptObject.executeQuery("showDevTools","");!(!0==goog.isDefAndNotNull(b)&&"yes"===b)&&(COMPILED&&!0!=goog.dom.classes.has(a.target,"commentHereEditBox"))&&(a.preventDefault(),a.stopPropagation())};neutron.dashboard.boards.ActivityFeed_v2.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE)};
neutron.dashboard.boards.ActivityFeed_v2.prototype._remove=function(){!0==goog.isDefAndNotNull(this._controller)&&(this._controller.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._controller=null)};neutron.dashboard.boards.ActivityFeed_v2.prototype._onNeutronEvent=function(a){this._comment_here.onNeutronEvent(a);this._activitiesPane.onNeutronEvent(a)};neutron.dashboard.boards.ActivityFeed_v2.prototype.onPostRequested=function(a){this._activitiesPane.createCommentProxyFromData(a)};
neutron.dashboard.boards.ActivityFeed_v2.prototype.onAugumentableTextAreaFocused=function(a,b){var c=this._atMentionInfo;if(goog.isDefAndNotNull(c)){var d=c.acWrapper;c.autoComplete.getRenderer().dismiss();b.nextSibling!==d&&(d.remove(),b.parentNode.insertBefore(d,b.nextSibling),this._detachInputs(),this._attachInputs(a));0<=a.value.indexOf(this._atMentionKey)&&this._onRefresh()}};
neutron.dashboard.boards.ActivityFeed_v2.prototype.onAugumentableTextAreaKeypress=function(a,b,c){var d=this;a.keyCode===d._atMentionKeyCode&&(goog.isDefAndNotNull(d._atMentionInfo)?d._onRefresh():d._queryProjectPeople(function(a){var f=goog.dom.createDom("div"),g=d._createAutoComplete(a,b,f);d._atMentionInfo={acData:a,peopleList:a,autoComplete:g,acWrapper:f,target:b,inputAttached:!0};d.onAugumentableTextAreaFocused(b,c);g.selectionHandler_.update(!0)}))};
neutron.dashboard.boards.ActivityFeed_v2.prototype.augumentCommentText=function(a){var b=this;a=neutron.dashboard.utils.FormatUtils.sanitizeText(a);a=goog.string.newlines.splitLines(a);return goog.array.map(a,function(a){a=goog.string.linkify.linkifyPlainText(a);b._atMentionInfo&&(a=b._atMentionify(a,b._atMentionInfo.acData));return goog.string.unescapeEntities(a)}).join("<br/>")};
neutron.dashboard.boards.ActivityFeed_v2.prototype._detachInputs=function(){var a=this._atMentionInfo;a&&(a.inputAttached&&a.target)&&(a.autoComplete.selectionHandler_.detachInputs(a.target),a.inputAttached=!1)};neutron.dashboard.boards.ActivityFeed_v2.prototype._attachInputs=function(a){var b=this._atMentionInfo;if(b&&a&&(!b.inputAttached||b.target!=a))b.autoComplete.selectionHandler_.attachInputs(a),b.target=a,b.inputAttached=!0};
neutron.dashboard.boards.ActivityFeed_v2.prototype._onRefresh=function(){var a=this;a._queryProjectPeople(function(b){var c=a._atMentionInfo;c&&(c.acData=b,c.peopleList=b,c.autoComplete.matcher_.setRows(b),a._attachInputs(c.target),c.autoComplete.selectionHandler_.update(!0))})};
neutron.dashboard.boards.ActivityFeed_v2.prototype._queryProjectPeople=function(a){var b=neutron.dashboard.invoker,c=this._getCurrentDoclineage();!c||0==c.length?a([]):b.getContentData({ids:[c]},function(c,e){if("progress"!==e)if(!c||1!=c.length)a([]);else{var f=b.getProjectById(c[0].projectId);f?neutron.dashboard.invoker.getUserList(f,function(b,c){if("progress"!==c){var d=Array.prototype.slice.call(b).filter(function(a){return"false"==a.isUserLogged}),d=d.sort(function(a,b){return a.displayName.localeCompare(b.displayName)});
a(d)}}):a([])}})};
neutron.dashboard.boards.ActivityFeed_v2.prototype._createAutoComplete=function(a,b,c){var d=this,e=d._atMentionKey,f=new neutron.dashboard.controls.AcArrayMatcher(a,!0);a=new neutron.dashboard.controls.AcInputHandler(e,null,!0);a.setSeparators(e,"");a.whitespaceWrapEntries_=!1;a.trimmer_=null;c=new neutron.dashboard.controls.AcRenderer(function(){},c);c=new goog.ui.ac.AutoComplete(f,c,a);c.setMaxMatches(d._atMentionMaxItems);a.attachAutoComplete(c);a.attachInputs(b);goog.events.listen(c,goog.ui.ac.AutoComplete.EventType.DISMISS,
function(){d._detachInputs()});return c};
neutron.dashboard.boards.ActivityFeed_v2.prototype._atMentionify=function(a,b){var c=this;if(!goog.isDefAndNotNull(b))return a;var d=a.split(this._atMentionKey);if(1>=d.length)return a;var e=d.shift(),d=d.map(function(a){for(var d=null,e=0;e<b.length;++e){var k=b[e],l=k.userGuid;if(l&&0<l.length){if(l=k.displayName,0==a.indexOf(l)&&(!d||d.displayName.length<l.length))d=k}else console.log("Error: guid does not exist")}return d?"@[guid_user:"+d.userGuid+"]"+a.substring(d.displayName.length):c._atMentionKey+
a});return e+d.join("")};neutron.dashboard.boards.ActivityFeed_v2.prototype._getCurrentDoclineage=function(){var a=this._activitiesPane._currentDocumentInfo;return!a?"":a.lineageUri};neutron.dashboard.utils.Options=function(a){this._values={};this._groupName=a;goog.isDefAndNotNull(this._groupName)||(this._groupName="default")};
neutron.dashboard.utils.Options.prototype.getAll=function(){if(!1==goog.isDefAndNotNull(window.neutronJavaScriptObject)||!1==goog.isDefAndNotNull(window.neutronJavaScriptObject.executeQuery))return console.error("Neutron executeQuery should only be used in embedded mode"),this._values;var a=window.neutronJavaScriptObject.executeQuery("getMainDashboardOptions",this._groupName),b=null;try{b=JSON.parse(a)}catch(c){}goog.isDefAndNotNull(b)&&"object"==goog.typeOf(b)&&goog.object.extend(this._values,b);
return this._values};neutron.dashboard.utils.Options.prototype.get=function(a,b){if(!1==goog.isDefAndNotNull(window.neutronJavaScriptObject)||!1==goog.isDefAndNotNull(window.neutronJavaScriptObject.executeQuery))return console.error("Neutron executeQuery should only be used in embedded mode"),b;this.getAll();return goog.isDefAndNotNull(this._values[a])?this._values[a]:b};
neutron.dashboard.utils.Options.prototype.set=function(a,b){if(!1==goog.isDefAndNotNull(window.neutronJavaScriptObject)||!1==goog.isDefAndNotNull(window.neutronJavaScriptObject.executeQuery))console.error("Neutron executeQuery should only be used in embedded mode");else{this.getAll();this._values[a]=b;var c={name:this._groupName,value:JSON.stringify(this._values)};window.neutronJavaScriptObject.executeQuery("setMainDashboardOptions",JSON.stringify(c))}};neutron.dashboard.events.NeutronEvent=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.NEUTRON_EVENT;this.cmdId=a;this.cmdArgs=b};goog.inherits(neutron.dashboard.events.NeutronEvent,goog.events.Event);goog.dom.ViewportSizeMonitor=function(a){goog.events.EventTarget.call(this);this.window_=a||window;this.listenerKey_=goog.events.listen(this.window_,goog.events.EventType.RESIZE,this.handleResize_,!1,this);this.size_=goog.dom.getViewportSize(this.window_)};goog.inherits(goog.dom.ViewportSizeMonitor,goog.events.EventTarget);
goog.dom.ViewportSizeMonitor.getInstanceForWindow=function(a){a=a||window;var b=goog.getUid(a);return goog.dom.ViewportSizeMonitor.windowInstanceMap_[b]=goog.dom.ViewportSizeMonitor.windowInstanceMap_[b]||new goog.dom.ViewportSizeMonitor(a)};goog.dom.ViewportSizeMonitor.removeInstanceForWindow=function(a){a=goog.getUid(a||window);goog.dispose(goog.dom.ViewportSizeMonitor.windowInstanceMap_[a]);delete goog.dom.ViewportSizeMonitor.windowInstanceMap_[a]};
goog.dom.ViewportSizeMonitor.windowInstanceMap_={};goog.dom.ViewportSizeMonitor.prototype.listenerKey_=null;goog.dom.ViewportSizeMonitor.prototype.window_=null;goog.dom.ViewportSizeMonitor.prototype.size_=null;goog.dom.ViewportSizeMonitor.prototype.getSize=function(){return this.size_?this.size_.clone():null};
goog.dom.ViewportSizeMonitor.prototype.disposeInternal=function(){goog.dom.ViewportSizeMonitor.superClass_.disposeInternal.call(this);this.listenerKey_&&(goog.events.unlistenByKey(this.listenerKey_),this.listenerKey_=null);this.size_=this.window_=null};goog.dom.ViewportSizeMonitor.prototype.handleResize_=function(a){a=goog.dom.getViewportSize(this.window_);goog.math.Size.equals(a,this.size_)||(this.size_=a,this.dispatchEvent(goog.events.EventType.RESIZE))};neutron.dashboard.utils.NaturalSort={};neutron.dashboard.utils.NaturalSort.SPLIT_PATERN=/([0-9]+)/;neutron.dashboard.utils.NaturalSort.USER_LANG=navigator.language||navigator.userLanguage;neutron.dashboard.utils.NaturalSort.LANG_OVERRIDE="";
neutron.dashboard.utils.NaturalSort._stringCompare=function(a,b){var c=neutron.dashboard.utils.NaturalSort.LANG_OVERRIDE;if(0===c.length){c=neutron.dashboard.utils.NaturalSort.USER_LANG.replace("_","-");try{return a.localeCompare(b,c,{sensitivity:"accent"})}catch(d){console.warn("NaturalSort._stringCompare - cannot compare - unexpected language - "+c),c="en",neutron.dashboard.utils.NaturalSort.LANG_OVERRIDE=c}}return a.localeCompare(b,c,{sensitivity:"accent"})};
neutron.dashboard.utils.NaturalSort._partCompare=function(a,b){var c=parseInt(a);if(!0==isNaN(c))return neutron.dashboard.utils.NaturalSort._stringCompare(a,b);var d=parseInt(b);return!0==isNaN(d)?neutron.dashboard.utils.NaturalSort._stringCompare(a,b):c<d?-1:c==d?0:1};
neutron.dashboard.utils.NaturalSort.compare=function(a,b){for(var c=a.split(neutron.dashboard.utils.NaturalSort.SPLIT_PATERN).filter(Boolean),d=b.split(neutron.dashboard.utils.NaturalSort.SPLIT_PATERN).filter(Boolean),e=0;e<c.length&&e<d.length;e++)if(0!=goog.string.caseInsensitiveCompare(c[e],d[e]))return neutron.dashboard.utils.NaturalSort._partCompare(c[e],d[e]);return neutron.dashboard.utils.NaturalSort._stringCompare(a,b)};
neutron.dashboard.utils.NaturalSort.naturalCompare=function(a,b){return neutron.dashboard.utils.NaturalSort.compare(a,b)};neutron.dashboard.utils.NaturalSort.natauralSort=function(a){goog.array.sort(a,neutron.dashboard.utils.NaturalSort._compare)};goog.async.nextTick=function(a,b){var c=a;b&&(c=goog.bind(a,b));c=goog.async.nextTick.wrapCallback_(c);goog.isFunction(goog.global.setImmediate)?goog.global.setImmediate(c):(goog.async.nextTick.setImmediate_||(goog.async.nextTick.setImmediate_=goog.async.nextTick.getSetImmediateEmulator_()),goog.async.nextTick.setImmediate_(c))};
goog.async.nextTick.getSetImmediateEmulator_=function(){var a=goog.global.MessageChannel;"undefined"===typeof a&&("undefined"!==typeof window&&window.postMessage&&window.addEventListener)&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d=b.location.protocol+"//"+b.location.host,a=goog.bind(function(a){if(!(a.origin!=d&&
a.data!=c))this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a){var b=new a,c={},d=c;b.port1.onmessage=function(){c=c.next;var a=c.cb;c.cb=null;a()};return function(a){d.next={cb:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=
null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){goog.global.setTimeout(a,0)}};goog.async.nextTick.wrapCallback_=goog.functions.identity;goog.debug.entryPointRegistry.register(function(a){goog.async.nextTick.wrapCallback_=a});neutron.dashboard.OfflineInvoker=function(){this._aggregator=new neutron.dashboard.utils.Aggregator;this._supportBranching=null};neutron.dashboard.OfflineInvoker.prototype.init=function(a){this._aggregator.init(a)};neutron.dashboard.OfflineInvoker.prototype.destroy=function(){this._aggregator.destroy()};
neutron.dashboard.OfflineInvoker.prototype.getProjectsList=function(a,b,c){a={useCache:!0};!0===goog.isDefAndNotNull(b)&&(a.removeRecent=b);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_PROJECTS_LIST,a,c)};neutron.dashboard.OfflineInvoker.prototype.createProject=function(a,b){};neutron.dashboard.OfflineInvoker.prototype.pinProject=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.deactivateProject=function(a,b){};
neutron.dashboard.OfflineInvoker.prototype.leaveProject=function(a,b){};neutron.dashboard.OfflineInvoker.prototype.updateProjectName=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.getProjectsPunchoutURL=function(a){};neutron.dashboard.OfflineInvoker.prototype.createFolder=function(a,b,c,d){};
neutron.dashboard.OfflineInvoker.prototype.getUserList=function(a,b){if(!1!=goog.isDefAndNotNull(a)){var c={useCache:!0};c.projectId=a.id;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_USER_LIST,c,b)}};neutron.dashboard.OfflineInvoker.prototype.invitePeople=function(a,b,c){};
neutron.dashboard.OfflineInvoker.prototype.getDashboardOptions=function(a,b){var c=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.DASHBOARD_OPTIONS,{group:a,key:b,op:"load"},function(a){try{c=goog.json.parse(a.retValue)}catch(b){c=null}});return c};
neutron.dashboard.OfflineInvoker.prototype.setDashboardOptions=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.DASHBOARD_OPTIONS,{group:a,key:b,value:goog.json.serialize(c),op:"store"},function(a){})};neutron.dashboard.OfflineInvoker.prototype.getLastUsedProject=function(){var a=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.LAST_USED_PROJECT,{},function(b){a=b});return a};
neutron.dashboard.OfflineInvoker.prototype.getProjectById=function(a){var b={useCache:!0};b.projectId=a;var c=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.PROJECT_BY_ID,b,function(a){c=a});return c};neutron.dashboard.OfflineInvoker.prototype.setLastUsedProject=function(a){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.LAST_USED_PROJECT,{lastUsedProject:a,op:"store"},function(a){})};
neutron.dashboard.OfflineInvoker.prototype.getMilestoneContentEx=function(a,b,c,d,e,f,g){};
neutron.dashboard.OfflineInvoker.prototype.getFolderContentEx=function(a,b,c,d,e,f,g){var h={};if(goog.isDefAndNotNull(b))h.projectId=b;else if(goog.isDefAndNotNull(a))h.folderId=a;else{console.error("Exactly one of the following parameters must not be null: projectId, folderId");return}!0==goog.isDefAndNotNull(c)&&(h.sort="recent"==c?"recent":"name");!0==goog.isDefAndNotNull(g)&&(h.groupBy=g);h.useCache=d;a=!1;!0==goog.isDefAndNotNull(f)&&!0===f&&(a=!0);h.idsOnly=a;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDER_CONTENT,
h,e)};neutron.dashboard.OfflineInvoker.prototype.getFolderContent=function(a,b,c,d,e,f){d=d==neutron.dashboard.constants.SortType.NAME_SORT?"name":"recent";this.getFolderContentEx(a,b,d,!0,null,f,e)};neutron.dashboard.OfflineInvoker.prototype.getFolderInfo=function(a,b){};neutron.dashboard.OfflineInvoker.prototype.refreshItem=function(a,b){};
neutron.dashboard.OfflineInvoker.prototype.allowedActions=function(a){var b=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.ALLOWED_ACTIONS,a,function(a){b=a});return b};
neutron.dashboard.OfflineInvoker.prototype.getBranchList=function(a,b){var c={};!0==goog.isDefAndNotNull(a)&&(c.projectId=a);c.useCache=!0;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_BRANCH_LIST,c,function(a,c){var f=goog.json.parse(goog.json.serialize(a));goog.isArray(f)&&goog.array.sort(f,function(a,b){if(goog.isDefAndNotNull(a.title)&&goog.isDefAndNotNull(b.title))return neutron.dashboard.utils.NaturalSort.compare(a.title,b.title)});b(f,c)})};
neutron.dashboard.OfflineInvoker.prototype.getBranchListWithRootFolders=function(a,b){};neutron.dashboard.OfflineInvoker.prototype.setBranchForProject=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.ACTIVE_BRANCH_FOR_PROJECT,{projectId:a,branchId:b,action:"set"},c)};
neutron.dashboard.OfflineInvoker.prototype.getActiveBranchIdForProject=function(a){var b={};b.projectId=a;b.action="get";b.useCache=!0;var c=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.ACTIVE_BRANCH_FOR_PROJECT,b,function(a){goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(a.branchId)&&(c=a.branchId)});return c};neutron.dashboard.OfflineInvoker.prototype.recoverBranchesToFolder=function(a){};neutron.dashboard.OfflineInvoker.prototype.search=function(a,b,c,d,e){};
neutron.dashboard.OfflineInvoker.prototype.getRecentItems=function(a,b){var c=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.GROUPBY,!1);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_RECENT_ITEMS,{pages:a,progress:!0,useCache:!0,groupBy:c},b)};neutron.dashboard.OfflineInvoker.prototype.clearSearchResults=function(a){};neutron.dashboard.OfflineInvoker.prototype.deleteItems=function(a){};
neutron.dashboard.OfflineInvoker.prototype.cacheItems=function(a){};neutron.dashboard.OfflineInvoker.prototype.getCacheContents=function(){var a=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_CACHE_CONTENTS,{},function(b){a=b});return a};neutron.dashboard.OfflineInvoker.prototype.moveItems=function(a,b,c,d){};neutron.dashboard.OfflineInvoker.prototype.copyItems=function(a){};neutron.dashboard.OfflineInvoker.prototype.renameItem=function(a,b){};
neutron.dashboard.OfflineInvoker.prototype.promoteVersion=function(a,b){};neutron.dashboard.OfflineInvoker.prototype.getDiffOnBranches=function(a,b,c,d,e){};neutron.dashboard.OfflineInvoker.prototype.mergeBranches=function(a,b,c,d,e,f){};neutron.dashboard.OfflineInvoker.prototype.getDiffOnTimeLabels=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.createNewBranchForProject=function(a,b,c){};
neutron.dashboard.OfflineInvoker.prototype.getThumbnails=function(a,b){goog.isDefAndNotNull(a)&&(goog.isDefAndNotNull(a.ids)&&0<a.ids.length)&&(a.useCache=!0,this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_THUMBNAILS,a,b))};
neutron.dashboard.OfflineInvoker.prototype.getContentData=function(a,b){goog.isDefAndNotNull(a)&&(goog.isDefAndNotNull(a.ids)&&0<a.ids.length)&&(a.useCache=!0,console.log("invoking getContentData for "+a.ids.length+" item(s) - "+JSON.stringify(a.ids)),this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_CONTENTDATA,a,b))};neutron.dashboard.OfflineInvoker.prototype.getItemDetails=function(a,b){};neutron.dashboard.OfflineInvoker.prototype.getItemBasics=function(a,b){};
neutron.dashboard.OfflineInvoker.prototype.getDataForPreview=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.removeBranchDiffs=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.getMyProfileData=function(a){};neutron.dashboard.OfflineInvoker.prototype.getFileVersions=function(a,b){};neutron.dashboard.OfflineInvoker.prototype.getFileVersionsEx=function(a,b){};
neutron.dashboard.OfflineInvoker.prototype.getOfflineFiles=function(a){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_OFFLINE_FILES,{},a)};neutron.dashboard.OfflineInvoker.prototype.getManageInitialData=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.getProjectHistoryByPages=function(a,b,c,d){};neutron.dashboard.OfflineInvoker.prototype.getProjectHistory=function(a,b){};neutron.dashboard.OfflineInvoker.prototype.getMilestoneChanges=function(a,b){};
neutron.dashboard.OfflineInvoker.prototype.removeUserFromProject=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.createMilestone=function(a,b,c,d,e){};neutron.dashboard.OfflineInvoker.prototype.getFolderThumbnail=function(a,b){goog.isDefAndNotNull(a)&&this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDER_THUMBNAIL,a,b)};
neutron.dashboard.OfflineInvoker.prototype.getOSSThumbnail=function(a,b){goog.isDefAndNotNull(a)&&this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_OSS_THUMBNAIL,a,b)};neutron.dashboard.OfflineInvoker.prototype.getQontextThumbnail=function(a,b){goog.isDefAndNotNull(a)&&this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_QONTEXT_THUMBNAIL,a,b)};neutron.dashboard.OfflineInvoker.prototype.createBranch=function(a,b,c,d){};
neutron.dashboard.OfflineInvoker.prototype.renameBranch=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.getMergeableBranches=function(a,b,c){};neutron.dashboard.OfflineInvoker.prototype.showHelpPage=function(a){};
neutron.dashboard.OfflineInvoker.prototype.supportsBranching=function(a){if(!0==goog.isDefAndNotNull(a)&&!0===a)this._supportBranching=null;else if(!0==goog.isDefAndNotNull(this._supportBranching))return this._supportBranching;var b=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.SUPPORTS_BRANCHING,null,function(a){try{b=goog.json.parse(a.SupportsBranching)}catch(d){b=null}});return this._supportBranching=b};
neutron.dashboard.OfflineInvoker.prototype.getFolders=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDERS,{parentFolderID:a,useCache:!0},b)};neutron.dashboard.OfflineInvoker.prototype.online=function(){return!1};neutron.dashboard.OfflineInvoker.prototype.getRecoveryStatus=function(a,b){goog.async.nextTick(function(){b(neutron.dashboard.constants.RecoveryStatus.NOT_STARTED)})};
neutron.dashboard.OfflineInvoker.prototype.showInaccessibleFilesPunchout=function(a,b,c){};neutron.dashboard.Invoker=function(){this._aggregator=new neutron.dashboard.utils.Aggregator;this._supportBranching=null};neutron.dashboard.Invoker.prototype.init=function(a){this._aggregator.init(a)};neutron.dashboard.Invoker.prototype.destroy=function(){this._aggregator.destroy()};
neutron.dashboard.Invoker.prototype.getProjectsList=function(a,b,c){var d={};d.useCache=a;!0===goog.isDefAndNotNull(b)&&(d.removeRecent=b);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_PROJECTS_LIST,d,c)};neutron.dashboard.Invoker.prototype.createProject=function(a,b){var c={};c.name=a;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.CREATE_PROJECT,c,b)};
neutron.dashboard.Invoker.prototype.pinProject=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.PIN_PROJECT,{projectID:a,pin:!0===b?"true":"false"},c)};neutron.dashboard.Invoker.prototype.deactivateProject=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.DEACTIVATE_PROJECT,{projectID:a},b)};
neutron.dashboard.Invoker.prototype.leaveProject=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.LEAVE_PROJECT,{projectID:a},b)};neutron.dashboard.Invoker.prototype.updateProjectName=function(a,b,c){var d={};goog.object.add(d,"name",b);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.UPDATE_PROJECT,{projectID:a,settings:d},c)};
neutron.dashboard.Invoker.prototype.getProjectsPunchoutURL=function(a){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_PROJECTS_URL,{},a)};neutron.dashboard.Invoker.prototype.createFolder=function(a,b,c,d){var e={};e.name=a;e.projectID=b;e.parentFolderID=c;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.CREATE_FOLDER,e,d)};
neutron.dashboard.Invoker.prototype.getUserList=function(a,b){if(!1!=goog.isDefAndNotNull(a)){var c={};c.projectId=a.id;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_USER_LIST,c,b)}};neutron.dashboard.Invoker.prototype.invitePeople=function(a,b,c){var d={};d.inviteList=a;d.projectID=b;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.INVITE_PEOPLE,d,c)};
neutron.dashboard.Invoker.prototype.getDashboardOptions=function(a,b){var c=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.DASHBOARD_OPTIONS,{group:a,key:b,op:"load"},function(a){try{c=goog.json.parse(a.retValue)}catch(b){c=null}});return c};
neutron.dashboard.Invoker.prototype.setDashboardOptions=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.DASHBOARD_OPTIONS,{group:a,key:b,value:goog.json.serialize(c),op:"store"},function(a){})};neutron.dashboard.Invoker.prototype.getLastUsedProject=function(){var a=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.LAST_USED_PROJECT,{},function(b){a=b});return a};
neutron.dashboard.Invoker.prototype.getProjectById=function(a){var b={};b.projectId=a;var c=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.PROJECT_BY_ID,b,function(a){c=a});return c};neutron.dashboard.Invoker.prototype.setLastUsedProject=function(a){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.LAST_USED_PROJECT,{lastUsedProject:a,op:"store"},function(a){})};
neutron.dashboard.Invoker.prototype.getMilestoneContentEx=function(a,b,c,d,e,f,g){var h={};goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(b)?(-1<a.indexOf("branch")&&(h.branchId=a),-1<a.indexOf("folder")&&(h.folderId=a),h.milestoneId=b,!0==goog.isDefAndNotNull(c)&&(h.sort="recent"==c?"recent":"name"),h.userDetails=!0,h.useCache=d,a=!1,!0==goog.isDefAndNotNull(g)&&!0===g&&(a=!0),h.idsOnlyMilestone=a,this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDER_CONTENT,h,e,
f)):console.error("Missing branchId or milestoneId")};
neutron.dashboard.Invoker.prototype.getFolderContentEx=function(a,b,c,d,e,f,g){g={};if(goog.isDefAndNotNull(b))g.projectId=b;else if(goog.isDefAndNotNull(a))g.folderId=a;else{console.error("Exactly one of the following parameters must not be null: projectId, folderId");return}!0==goog.isDefAndNotNull(c)&&(g.sort="recent"==c?"recent":"name");g.groupBy="false";g.useCache=d;a=!1;!0==goog.isDefAndNotNull(f)&&!0===f&&(a=!0);g.idsOnly=a;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDER_CONTENT,g,
e)};neutron.dashboard.Invoker.prototype.getFolderContent=function(a,b,c,d,e,f){d=d==neutron.dashboard.constants.SortType.NAME_SORT?"name":"recent";this.getFolderContentEx(a,b,d,c,null,f,e)};neutron.dashboard.Invoker.prototype.getFolderInfo=function(a,b){if(!1!==goog.isDefAndNotNull(a)){var c={};c.folderId=a;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDER_INFO,c,b)}};
neutron.dashboard.Invoker.prototype.refreshItem=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.REFRESH_ITEM,a,b)};neutron.dashboard.Invoker.prototype.allowedActions=function(a){var b=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.ALLOWED_ACTIONS,a,function(a){b=a});return b};
neutron.dashboard.Invoker.prototype.getBranchList=function(a,b,c){var d={};!0==goog.isDefAndNotNull(a)&&(d.projectId=a);!0==goog.isDefAndNotNull(c)&&(d.useCache=c);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_BRANCH_LIST,d,function(a,c){var d=goog.json.parse(goog.json.serialize(a));goog.isArray(d)&&goog.array.sort(d,function(a,b){if(goog.isDefAndNotNull(a.title)&&goog.isDefAndNotNull(b.title))return neutron.dashboard.utils.NaturalSort.compare(a.title,b.title)});
goog.isDefAndNotNull(b)&&b(d,c)})};neutron.dashboard.Invoker.prototype.getBranchListWithRootFolders=function(a,b){var c={};!0==goog.isDefAndNotNull(a)&&(c.projectId=a);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_BRANCH_LIST_WITH_ROOT_FOLDERS,c,function(a,c){var f=goog.json.parse(goog.json.serialize(a));b(f,c)})};
neutron.dashboard.Invoker.prototype.setBranchForProject=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.ACTIVE_BRANCH_FOR_PROJECT,{projectId:a,branchId:b,action:"set"},c)};
neutron.dashboard.Invoker.prototype.getActiveBranchIdForProject=function(a){var b={};b.projectId=a;b.action="get";var c=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.ACTIVE_BRANCH_FOR_PROJECT,b,function(a){goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(a.branchId)&&(c=a.branchId)});return c};
neutron.dashboard.Invoker.prototype.recoverBranchesToFolder=function(a){var b={};b.projectId=a;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.RECOVER_BRANCHES_TO_FOLDER,b)};neutron.dashboard.Invoker.prototype.search=function(a,b,c,d,e){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.SEARCH,{groupId:a,query:b,from:c,count:d},e)};
neutron.dashboard.Invoker.prototype.getRecentItems=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_RECENT_ITEMS,{pages:a,progress:!0},b)};neutron.dashboard.Invoker.prototype.clearSearchResults=function(a){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.CLEAR_SEARCH_RESULTS,a)};
neutron.dashboard.Invoker.prototype.deleteItems=function(a){a={items:a};goog.isDefAndNotNull(window.automationIsRunning)&&!0===window.automationIsRunning&&goog.object.add(a,"automationIsRunning",!0);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.DELETE_ITEMS,a)};
neutron.dashboard.Invoker.prototype.cacheItems=function(a){a={items:a};goog.isDefAndNotNull(window.automationIsRunning)&&!0===window.automationIsRunning&&goog.object.add(a,"automationIsRunning",!0);var b=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.CACHE_ITEMS,a,function(a){b=a});return b};
neutron.dashboard.Invoker.prototype.getCacheContents=function(){var a=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_CACHE_CONTENTS,{},function(b){a=b});return a};
neutron.dashboard.Invoker.prototype.moveItems=function(a,b,c,d){var e=!1;goog.isDefAndNotNull(c)&&(e=c);a={sourceData:a,target:{rootFolder:{fd:b},masterToMasterMove:e}};goog.isDefAndNotNull(window.automationIsRunning)&&!0===window.automationIsRunning&&goog.object.add(a,"automationIsRunning",!0);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.MOVE_ITEMS,a,d)};
neutron.dashboard.Invoker.prototype.copyItems=function(a){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.COPY_ITEMS,a)};neutron.dashboard.Invoker.prototype.renameItem=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.RENAME_ITEM,a,b)};neutron.dashboard.Invoker.prototype.promoteVersion=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.PROMOTE_VERSION,a,b)};
neutron.dashboard.Invoker.prototype.getDiffOnBranches=function(a,b,c,d,e){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_DIFF_ON_BRANCHES,{projectId:String(a),srcBranchID:String(b),destBranchID:String(c),prevDiffID:Number(e||-1)},d)};
neutron.dashboard.Invoker.prototype.mergeBranches=function(a,b,c,d,e,f){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.MERGE_BRANCHES,{projectId:String(a),id:Number(b),differences:c,summary:d,description:e},f)};neutron.dashboard.Invoker.prototype.getDiffOnTimeLabels=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_DIFF_ON_TIME_LABELS,{srcLabelID:String(a),destLabelID:String(b)},c)};
neutron.dashboard.Invoker.prototype.createNewBranchForProject=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.CREATE_NEW_BRANCH_IN_PROJECT,{projectID:a,branchName:b},c)};neutron.dashboard.Invoker.prototype.getThumbnails=function(a,b){goog.isDefAndNotNull(a)&&(goog.isDefAndNotNull(a.ids)&&0<a.ids.length)&&this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_THUMBNAILS,a,b)};
neutron.dashboard.Invoker.prototype.getContentData=function(a,b){goog.isDefAndNotNull(a)&&(goog.isDefAndNotNull(a.ids)&&0<a.ids.length)&&(console.log("invoking getContentData for "+a.ids.length+" item(s) - "+JSON.stringify(a.ids)),this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_CONTENTDATA,a,b))};neutron.dashboard.Invoker.prototype.getItemDetails=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_ITEM_DETAILS,a,b)};
neutron.dashboard.Invoker.prototype.getItemBasics=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_ITEM_BASICS,a,b)};
neutron.dashboard.Invoker.prototype.getDataForPreview=function(a,b,c){var d={};goog.isDefAndNotNull(b)?d.versionId=b:goog.isDefAndNotNull(a)?d.id=a:console.warn("At least one of the following parameters must not be undefined/null: fileId, versionId");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_DATA_FOR_PREVIEW,d,c)};
neutron.dashboard.Invoker.prototype.showInaccessibleFilesPunchout=function(a,b){if(goog.isDefAndNotNull(a)){var c={};c.id=a;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.SHOW_INACCESSIBLE_FILES_PUNCHOUT,c,b)}else console.error("accessInaccessibleFile: fileId missing!")};
neutron.dashboard.Invoker.prototype.removeBranchDiffs=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.REMOVE_BRANCH_DIFFS,{projectId:String(a),diffIds:b},c)};neutron.dashboard.Invoker.prototype.getMyProfileData=function(a){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_USER_PROFILE,{},a)};
neutron.dashboard.Invoker.prototype.getFileVersions=function(a,b){!1==goog.isDefAndNotNull(a)&&console.warn("get file versions: fileId is not defined!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FILE_VERSIONS,a,b)};
neutron.dashboard.Invoker.prototype.getFileVersionsEx=function(a,b){!1==goog.isDefAndNotNull(a)&&console.warn("get file versions: fileId is not defined!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FILE_VERSIONS,{id:a},b)};neutron.dashboard.Invoker.prototype.getOfflineFiles=function(a){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_OFFLINE_FILES,{},a)};
neutron.dashboard.Invoker.prototype.getManageInitialData=function(a,b,c){!1===goog.isDefAndNotNull(a)&&console.warn("get manage initial data: projectId is not defined!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_MANAGE_DLG_INITIAL_DATA,{projectId:a,milestonesLimit:b},c)};
neutron.dashboard.Invoker.prototype.getProjectHistoryByPages=function(a,b,c,d){!1===goog.isDefAndNotNull(a)&&console.warn("get project history: projectId is not defined!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_PROJECT_HISTORY,{projectId:a,offset:b,limit:c},d)};
neutron.dashboard.Invoker.prototype.getProjectHistory=function(a,b){!1===goog.isDefAndNotNull(a)&&console.warn("get project history: projectId is not defined!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_PROJECT_HISTORY,{projectId:a},b)};
neutron.dashboard.Invoker.prototype.getMilestoneChanges=function(a,b){!1===goog.isDefAndNotNull(a)&&console.warn("getMilestoneChanges: invalid parameters!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_MILESTONE_CHANGES,{milestoneUrn:a},b)};
neutron.dashboard.Invoker.prototype.removeUserFromProject=function(a,b,c){!1===goog.isDefAndNotNull(a)&&console.warn("removeUserFromProject history: projectId is not defined!!");!1===goog.isDefAndNotNull(b)&&console.warn("removeUserFromProject history: accountId is not defined!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.REMOVE_USER_FROM_PROJECT,{projectId:a,accountId:b},c)};
neutron.dashboard.Invoker.prototype.rejectUserFromProject=function(a,b,c){!1===goog.isDefAndNotNull(a)&&console.warn("removeUserFromProject history: projectId is not defined!!");!1===goog.isDefAndNotNull(b)&&console.warn("removeUserFromProject history: accountId is not defined!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.REJECT_USER_FROM_PROJECT,{projectId:a,accountId:b},c)};
neutron.dashboard.Invoker.prototype.approveUserToProject=function(a,b,c){!1===goog.isDefAndNotNull(a)&&console.warn("removeUserFromProject history: projectId is not defined!!");!1===goog.isDefAndNotNull(b)&&console.warn("removeUserFromProject history: accountId is not defined!!");this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.APPROVE_USER_TO_PROJECT,{projectId:a,accountId:b},c)};
neutron.dashboard.Invoker.prototype.createMilestone=function(a,b,c,d,e){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.CREATE_MILESTONE,{projectID:a,branchID:b,milestoneName:c,milestoneDescription:d},e)};neutron.dashboard.Invoker.prototype.createTeamHub=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.CREATE_TEAMHUB,{teamHubName:a},b)};
neutron.dashboard.Invoker.prototype.getFolderThumbnail=function(a,b){goog.isDefAndNotNull(a)&&this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDER_THUMBNAIL,a,b)};neutron.dashboard.Invoker.prototype.getOSSThumbnail=function(a,b){goog.isDefAndNotNull(a)&&this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_OSS_THUMBNAIL,a,b)};
neutron.dashboard.Invoker.prototype.getQontextThumbnail=function(a,b){goog.isDefAndNotNull(a)&&this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_QONTEXT_THUMBNAIL,a,b)};
neutron.dashboard.Invoker.prototype.createBranch=function(a,b,c,d){if(goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(b))console.error("createBranch: one of the following parameters must be null: branchId,milestoneId!!!");else if(!goog.isDefAndNotNull(a)&&!goog.isDefAndNotNull(b))console.error("createBranch: only one of the following parameters must be null: branchId,milestoneId!!!");else{var e={};goog.isDefAndNotNull(a)&&(e.branchID=String(a));goog.isDefAndNotNull(b)&&(e.milestoneID=String(b));goog.isDefAndNotNull(c)&&
(e.branchName=String(c));this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.CREATE_NEW_BRANCH_IN_PROJECT,e,d)}};neutron.dashboard.Invoker.prototype.renameBranch=function(a,b,c){if(goog.isDefAndNotNull(a))if(!goog.isDefAndNotNull(b)||0===b.length)console.error("renameBranch: invalid new name!");else{var d={};d.branchID=String(a);d.newName=String(b);this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.RENAME_BRANCH,d,c)}else console.error("renameBranch: branchId missing!")};
neutron.dashboard.Invoker.prototype.getMergeableBranches=function(a,b,c){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_MERGEABLE_BRANCHES,{projectID:a,branchID:b},c)};neutron.dashboard.Invoker.prototype.showHelpPage=function(a){goog.isDefAndNotNull(a)&&goog.isString(a)?window.neutronJavaScriptObject.executeQuery("showHelpPage",JSON.stringify({GUID:a})):window.console.warning("Invoker.showHelpPage - helpGuid must be defined!")};
neutron.dashboard.Invoker.prototype.supportsBranching=function(a){if(!0==goog.isDefAndNotNull(a)&&!0===a)this._supportBranching=null;else if(!0==goog.isDefAndNotNull(this._supportBranching))return this._supportBranching;var b=null;this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.SUPPORTS_BRANCHING,null,function(a){try{b=goog.json.parse(a.SupportsBranching)}catch(d){b=null}});return this._supportBranching=b};
neutron.dashboard.Invoker.prototype.getFolders=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDERS,{parentFolderID:a},b)};neutron.dashboard.Invoker.prototype.online=function(){return!0};neutron.dashboard.Invoker.prototype.getRecoveryStatus=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.GET_RECOVERY_STATUS,{projectID:a},function(a,d){goog.isDefAndNotNull(a)?b(d,a.status,a.succeeded,a.failed):b(d)})};
neutron.dashboard.Invoker.prototype.releaseVersion=function(a,b){this._aggregator.executeQuery(neutron.dashboard.constants.BrowserAPIConstants.RELEASE_VERSION,a,function(a){goog.isDefAndNotNull(b)&&b(a)})};neutron.dashboard.BaseApplication=function(){goog.events.EventTarget.call(this)};goog.inherits(neutron.dashboard.BaseApplication,goog.events.EventTarget);neutron.dashboard.BaseApplication.prototype.init=function(){!0==goog.isDefAndNotNull(neutron.dashboard.invoker)&&neutron.dashboard.invoker.init(this);new neutron.dashboard.utils.Localization};neutron.dashboard.BaseApplication.prototype.isInOfflineMode=function(){return!1};
neutron.dashboard.BaseApplication.prototype.closeDatapanel=function(){this.executeNeutronCmd("DashboardModeSwitchCommand","{}")};neutron.dashboard.globalStorage=function(){var a=window.neutron.dashboard.globalStorageInstance;if(!1==goog.isDefAndNotNull(a))window.location.reload();else return a};neutron.dashboard.__defineGetter__("Application",function(){var a=window.neutron.dashboard.ApplicationNamespace;if(!1==goog.isDefAndNotNull(a))window.location.reload();else return a});
neutron.dashboard.invoker=null;neutron.dashboard.notifier=null;
function BaseApplicationStart(){window.neutron.dashboard.ApplicationNamespace={};window.neutron.dashboard.globalStorageInstance=new neutron.dashboard.storage;neutron.dashboard.notifier=new neutron.dashboard.Notifier;var a=window.neutronJavaScriptObject.executeQuery("getIsOnline","");goog.isDefAndNotNull(neutron.dashboard.invoker)&&neutron.dashboard.invoker.destroy();goog.isDefAndNotNull(a)&&"true"==a?neutron.dashboard.invoker=new neutron.dashboard.Invoker:neutron.dashboard.invoker=new neutron.dashboard.OfflineInvoker;
goog.isDefAndNotNull(document)&&goog.isDefAndNotNull(document.body)&&(goog.events.listen(document.body,goog.events.EventType.DRAGOVER,function(a){handleDisabledDragDrop(a)}),goog.events.listen(document.body,goog.events.EventType.DRAGENTER,function(a){handleDisabledDragDrop(a)}),goog.events.listen(document.body,goog.events.EventType.DROP,function(a){handleDisabledDragDrop(a)}))}function handleDisabledDragDrop(a){a.stopPropagation();a.preventDefault();a.event_.dataTransfer.dropEffect="none"}
goog.exportSymbol("BaseApplicationStart",BaseApplicationStart);neutron.dashboard.ActivityFeedApplication=function(){neutron.dashboard.BaseApplication.call(this);this._options=this._vsm=this._activityFeedBoard=null;this._isObjectPointLinkSupported=!1;this._user=null};goog.inherits(neutron.dashboard.ActivityFeedApplication,neutron.dashboard.BaseApplication);
neutron.dashboard.ActivityFeedApplication.prototype.init=function(){neutron.dashboard.ActivityFeedApplication.superClass_.init.call(this);this._options=new neutron.dashboard.utils.Options("DataView");this._vsm=new goog.dom.ViewportSizeMonitor;var a=window.neutronJavaScriptObject.executeQuery("Comments.isObjectPointLinkSupported","{}");try{var b=JSON.parse(a);b.isObjectPointLinkSupported&&(this._isObjectPointLinkSupported=!0)}catch(c){}a=window.neutronJavaScriptObject.executeQuery("Comments.getVersion",
"{}");try{a=window.neutronJavaScriptObject.executeQuery("Comments.getUser","{}"),b=JSON.parse(a),goog.isDefAndNotNull(b)&&goog.isDefAndNotNull(b.ret)&&b.ret&&(this._user={userId:b.userId,userFullName:b.userFullName})}catch(d){console.log(d.toString())}this._activityFeedBoard=new neutron.dashboard.boards.ActivityFeed_v2(!0);this._connectEvents();this._onViewportResize();var e=this;window.neutronJavaScriptHandler={handle:function(a,b){if(!0==goog.string.startsWith(a,neutron.dashboard.utils.Aggregator.Prefix))neutron.dashboard.Application.instance.dispatchEvent(new neutron.dashboard.events.AggregatorEvent(a,
b));else{if("waitCursor"==a){var c=goog.json.parse(b);!0==goog.isDefAndNotNull(c.show)&&e.showWaitCursor(c.show);return c=neutron.dashboard.utils.FormatUtils.respondQueryFormatter("")}if("areWeLoaded"==a)return c=neutron.dashboard.utils.FormatUtils.respondQueryFormatter("true");if("CompatibilityCheck"==a){var c=goog.json.parse(b),d=!1;goog.isDefAndNotNull(c.ServerVersion)&&(d=2015.0803>=parseFloat(c.ServerVersion));return c=neutron.dashboard.utils.FormatUtils.respondQueryFormatter(d)}neutron.dashboard.Application.instance.dispatchEvent(new neutron.dashboard.events.NeutronEvent(a,
b))}}};!0==goog.isDefAndNotNull(window.registerCallback)&&window.registerCallback("neutronhandler",function(a){setTimeout(function(){var b=JSON.parse(a);neutron.dashboard.Application.instance.dispatchEvent(new neutron.dashboard.events.NeutronEvent(b.commandId,b.jsonArgs))},50)})};neutron.dashboard.ActivityFeedApplication.prototype.isObjectPointLinkSupported=function(){return this._isObjectPointLinkSupported};neutron.dashboard.ActivityFeedApplication.prototype.getUser=function(){return this._user};
neutron.dashboard.ActivityFeedApplication.prototype.getBoard=function(){return this._activityFeedBoard};neutron.dashboard.ActivityFeedApplication.prototype.options=function(){return this._options};neutron.dashboard.ActivityFeedApplication.prototype.getHeight=function(){return this._vsm.getSize().height};neutron.dashboard.ActivityFeedApplication.prototype.getWidth=function(){return this._vsm.getSize().width};
neutron.dashboard.ActivityFeedApplication.prototype._connectEvents=function(){var a=this;goog.events.listen(this._vsm,goog.events.EventType.RESIZE,function(){a._onViewportResize()});goog.events.listen(document.body,goog.events.EventType.DROP,function(a){a.preventDefault();return!1});goog.events.listen(document.body,goog.events.EventType.DRAGSTART,function(a){a.preventDefault();return!1})};
neutron.dashboard.ActivityFeedApplication.prototype._onViewportResize=function(){var a=this._vsm.getSize();!1!=goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(this._activityFeedBoard)&&this._activityFeedBoard.dispatchEvent(new neutron.dashboard.events.Update(document.body,0,0,a.width,a.height-26))};
neutron.dashboard.ActivityFeedApplication.prototype.executeNeutronCmd=function(a,b){!1==goog.isDefAndNotNull(window.neutronJavaScriptObject)||!1==goog.isDefAndNotNull(window.neutronJavaScriptObject.executeCommand)?alert("Neutron ExecuteCommand should only be used in embedded mode"):window.neutronJavaScriptObject.executeCommand(a,b)};
neutron.dashboard.ActivityFeedApplication.prototype.showWaitCursor=function(a){!0==a?goog.dom.classes.add(document.body,"waitCursor"):goog.dom.classes.remove(document.body,"waitCursor")};
function ActivityFeedApplicationStart(){console.__time=(new Date).getTime();console.__lp=function(a){console.log(" ");var b=(new Date).getTime()-console.__time,c=Math.floor(b/1E3);console.log("%c### PERF: "+a+" : "+c+"s "+(b-1E3*c)+"ms","color: blue; font-size: large");console.log(" ")};console.__lp("Start");console.log("ActivityFeedApplicationStart()");console.log("START - BaseApplicationStart()");BaseApplicationStart();console.log("END - BaseApplicationStart()");console.log("START - window.neutron.dashboard.Application().instance = new neutron.dashboard.ActivityFeedApplication()");
window.neutron.dashboard.Application.instance=new neutron.dashboard.ActivityFeedApplication;console.log("END - window.neutron.dashboard.Application().instance = new neutron.dashboard.ActivityFeedApplication()");console.log("START - window.neutron.dashboard.Application().instance.init()");window.neutron.dashboard.Application.instance.init();console.log("END - window.neutron.dashboard.Application().instance.init()")}goog.exportSymbol("ActivityFeedApplicationStart",ActivityFeedApplicationStart);neutron.dashboard.events.FolderRefresh=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.FOLDER_REFRESHED;this.folderInfo=a};goog.inherits(neutron.dashboard.events.FolderRefresh,goog.events.Event);neutron.dashboard.utils.EntitlementHelper={};neutron.dashboard.utils.EntitlementHelper._mimetypeMap={"application/vnd.autodesk.fusion360":"Fusion360","application/vnd.autodesk.f3d":"Fusion360","application/vnd.autodesk.sim360":"Simulation","application/vnd.autodesk.cam360":"CAM360","application/vnd.autodesk.fusiondoc":"FusionDrawing","application/vnd.autodesk.fusiondrawingtemplate":"FusionDrawing","application/vnd.autodesk.fusionpub":"publisher360"};
neutron.dashboard.utils.EntitlementHelper.isEntitled=function(a){a=neutron.dashboard.utils.EntitlementHelper._mimetypeMap[a];if(null==a)return!0;a=JSON.parse(window.neutronJavaScriptObject.executeQuery("EntitlementDetails",JSON.stringify({appId:a})));return null==a?!0:a.entitled};goog.ui.MenuItemRenderer=function(){goog.ui.ControlRenderer.call(this);this.classNameCache_=[]};goog.inherits(goog.ui.MenuItemRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.MenuItemRenderer);goog.ui.MenuItemRenderer.CSS_CLASS="goog-menuitem";goog.ui.MenuItemRenderer.CompositeCssClassIndex_={HOVER:0,CHECKBOX:1,CONTENT:2};
goog.ui.MenuItemRenderer.prototype.getCompositeCssClass_=function(a){var b=this.classNameCache_[a];if(!b){switch(a){case goog.ui.MenuItemRenderer.CompositeCssClassIndex_.HOVER:b=this.getStructuralCssClass()+"-highlight";break;case goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CHECKBOX:b=this.getStructuralCssClass()+"-checkbox";break;case goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CONTENT:b=this.getStructuralCssClass()+"-content"}this.classNameCache_[a]=b}return b};
goog.ui.MenuItemRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.MENU_ITEM};goog.ui.MenuItemRenderer.prototype.createDom=function(a){var b=a.getDomHelper().createDom("div",this.getClassNames(a).join(" "),this.createContent(a.getContent(),a.getDomHelper()));this.setEnableCheckBoxStructure(a,b,a.isSupportedState(goog.ui.Component.State.SELECTED)||a.isSupportedState(goog.ui.Component.State.CHECKED));this.setAriaStates(a,b);this.correctAriaRole(a,b);return b};
goog.ui.MenuItemRenderer.prototype.getContentElement=function(a){return a&&a.firstChild};goog.ui.MenuItemRenderer.prototype.decorate=function(a,b){this.hasContentStructure(b)||b.appendChild(this.createContent(b.childNodes,a.getDomHelper()));goog.dom.classlist.contains(b,"goog-option")&&(a.setCheckable(!0),this.setCheckable(a,b,!0));return goog.ui.MenuItemRenderer.superClass_.decorate.call(this,a,b)};
goog.ui.MenuItemRenderer.prototype.setContent=function(a,b){var c=this.getContentElement(a),d=this.hasCheckBoxStructure(a)?c.firstChild:null;goog.ui.MenuItemRenderer.superClass_.setContent.call(this,a,b);d&&!this.hasCheckBoxStructure(a)&&c.insertBefore(d,c.firstChild||null)};
goog.ui.MenuItemRenderer.prototype.hasContentStructure=function(a){a=goog.dom.getFirstElementChild(a);var b=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CONTENT);return!!a&&goog.dom.classlist.contains(a,b)};goog.ui.MenuItemRenderer.prototype.createContent=function(a,b){var c=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CONTENT);return b.createDom("div",c,a)};
goog.ui.MenuItemRenderer.prototype.setSelectable=function(a,b,c){b&&(goog.a11y.aria.setRole(b,c?goog.a11y.aria.Role.MENU_ITEM_RADIO:this.getAriaRole()),this.setEnableCheckBoxStructure(a,b,c))};goog.ui.MenuItemRenderer.prototype.setCheckable=function(a,b,c){b&&(goog.a11y.aria.setRole(b,c?goog.a11y.aria.Role.MENU_ITEM_CHECKBOX:this.getAriaRole()),this.setEnableCheckBoxStructure(a,b,c))};
goog.ui.MenuItemRenderer.prototype.hasCheckBoxStructure=function(a){if(a=this.getContentElement(a)){a=a.firstChild;var b=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CHECKBOX);return!!a&&goog.dom.isElement(a)&&goog.dom.classlist.contains(a,b)}return!1};
goog.ui.MenuItemRenderer.prototype.setEnableCheckBoxStructure=function(a,b,c){c!=this.hasCheckBoxStructure(b)&&(goog.dom.classlist.enable(b,"goog-option",c),b=this.getContentElement(b),c?(c=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CHECKBOX),b.insertBefore(a.getDomHelper().createDom("div",c),b.firstChild||null)):b.removeChild(b.firstChild))};
goog.ui.MenuItemRenderer.prototype.getClassForState=function(a){switch(a){case goog.ui.Component.State.HOVER:return this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.HOVER);case goog.ui.Component.State.CHECKED:case goog.ui.Component.State.SELECTED:return"goog-option-selected";default:return goog.ui.MenuItemRenderer.superClass_.getClassForState.call(this,a)}};
goog.ui.MenuItemRenderer.prototype.getStateFromClass=function(a){var b=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.HOVER);switch(a){case "goog-option-selected":return goog.ui.Component.State.CHECKED;case b:return goog.ui.Component.State.HOVER;default:return goog.ui.MenuItemRenderer.superClass_.getStateFromClass.call(this,a)}};goog.ui.MenuItemRenderer.prototype.getCssClass=function(){return goog.ui.MenuItemRenderer.CSS_CLASS};
goog.ui.MenuItemRenderer.prototype.correctAriaRole=function(a,b){if(a.isSupportedState(goog.ui.Component.State.SELECTED)||a.isSupportedState(goog.ui.Component.State.CHECKED))this.setAriaRole(b,a.isSupportedState(goog.ui.Component.State.CHECKED)?goog.a11y.aria.Role.MENU_ITEM_CHECKBOX:goog.a11y.aria.Role.MENU_ITEM_RADIO)};goog.ui.MenuItem=function(a,b,c,d){goog.ui.Control.call(this,a,d||goog.ui.MenuItemRenderer.getInstance(),c);this.setValue(b)};goog.inherits(goog.ui.MenuItem,goog.ui.Control);goog.ui.MenuItem.MNEMONIC_WRAPPER_CLASS_="goog-menuitem-mnemonic-separator";goog.ui.MenuItem.ACCELERATOR_CLASS_="goog-menuitem-accel";goog.ui.MenuItem.prototype.getValue=function(){var a=this.getModel();return null!=a?a:this.getCaption()};goog.ui.MenuItem.prototype.setValue=function(a){this.setModel(a)};
goog.ui.MenuItem.prototype.setSelectable=function(a){this.setSupportedState(goog.ui.Component.State.SELECTED,a);this.isChecked()&&!a&&this.setChecked(!1);var b=this.getElement();b&&this.getRenderer().setSelectable(this,b,a)};goog.ui.MenuItem.prototype.setCheckable=function(a){this.setSupportedState(goog.ui.Component.State.CHECKED,a);var b=this.getElement();b&&this.getRenderer().setCheckable(this,b,a)};
goog.ui.MenuItem.prototype.getCaption=function(){var a=this.getContent();if(goog.isArray(a)){var b=goog.ui.MenuItem.ACCELERATOR_CLASS_,c=goog.ui.MenuItem.MNEMONIC_WRAPPER_CLASS_,a=goog.array.map(a,function(a){return goog.dom.isElement(a)&&(goog.dom.classlist.contains(a,b)||goog.dom.classlist.contains(a,c))?"":goog.dom.getRawTextContent(a)}).join("");return goog.string.collapseBreakingSpaces(a)}return goog.ui.MenuItem.superClass_.getCaption.call(this)};
goog.ui.MenuItem.prototype.handleMouseUp=function(a){var b=this.getParent();if(b){var c=b.openingCoords;b.openingCoords=null;if(c&&goog.isNumber(a.clientX)&&(b=new goog.math.Coordinate(a.clientX,a.clientY),goog.math.Coordinate.equals(c,b)))return}goog.ui.MenuItem.base(this,"handleMouseUp",a)};goog.ui.MenuItem.prototype.handleKeyEventInternal=function(a){return a.keyCode==this.getMnemonic()&&this.performActionInternal(a)?!0:goog.ui.MenuItem.base(this,"handleKeyEventInternal",a)};
goog.ui.MenuItem.prototype.setMnemonic=function(a){this.mnemonicKey_=a};goog.ui.MenuItem.prototype.getMnemonic=function(){return this.mnemonicKey_};goog.ui.registry.setDecoratorByClassName(goog.ui.MenuItemRenderer.CSS_CLASS,function(){return new goog.ui.MenuItem(null)});goog.ui.MenuItem.prototype.createDom=function(){goog.ui.MenuItem.base(this,"createDom");this.getRenderer().correctAriaRole(this,this.getElement())};neutron.dashboard.controls.InplaceEdit=function(a,b,c,d){neutron.dashboard.RenderableObject.call(this);this._currentText=a;this._callback=c;this._cancelCallback=d;this._timer=this._notifyIfLeave=this._extension=null;this._GROUP_KEY="InplaceEdit";!0==goog.isDefAndNotNull(b)&&(!0==goog.isDefAndNotNull(b.hiddenExtension)&&(this._extension="."+b.hiddenExtension.toLowerCase()),!0==goog.isDefAndNotNull(b.notifyIfLeave)&&(this._notifyIfLeave=b.notifyIfLeave));this._init()};
goog.inherits(neutron.dashboard.controls.InplaceEdit,neutron.dashboard.RenderableObject);neutron.dashboard.controls.InplaceEdit.prototype._init=function(){};
neutron.dashboard.controls.InplaceEdit.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("input",{"class":"inplaceedit",type:"text",maxlength:"60"});a.appendChild(this._htmlNode);goog.isDefAndNotNull(this._extension)&&0<this._extension.length&&(this._currentText.substr(-this._extension.length).toLowerCase()==this._extension?this._currentText=this._currentText.substr(0,this._currentText.length-this._extension.length):delete this._extension);this._htmlNode.value=this._currentText;this._htmlNode.focus();
this._htmlNode.select();this._connectEvents()};neutron.dashboard.controls.InplaceEdit.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode)||(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px")};neutron.dashboard.controls.InplaceEdit.prototype._remove=function(){};
neutron.dashboard.controls.InplaceEdit.prototype._connectEvents=function(){var a=this;this._addEventHandlerKeyToGroup(this._GROUP_KEY,"BLUR",goog.events.listen(this._htmlNode,goog.events.EventType.BLUR,function(b){a._timer&&clearTimeout(a._timer);a._timer=setTimeout(function(){!0==goog.isDefAndNotNull(a._notifyIfLeave)&&!0==a._notifyIfLeave&&a._onPost(a._htmlNode.value);a._destroySelf()},100)}));this._addEventHandlerKeyToGroup(this._GROUP_KEY,"FOCUS",goog.events.listen(this._htmlNode,goog.events.EventType.FOCUS,
function(b){a._timer&&(clearTimeout(a._timer),a._timer=null)}));this._addEventHandlerKeyToGroup(this._GROUP_KEY,"KEYUP",goog.events.listen(this._htmlNode,goog.events.EventType.KEYUP,function(b){a._onEditBoxKeypress(b)}));this._addEventHandlerKeyToGroup(this._GROUP_KEY,"MOUSEMOVE",goog.events.listen(this._htmlNode,goog.events.EventType.MOUSEMOVE,function(b){a._stopPropagation(b)}));this._addEventHandlerKeyToGroup(this._GROUP_KEY,"MOUSEDOWN",goog.events.listen(this._htmlNode,goog.events.EventType.MOUSEDOWN,
function(b){a._stopPropagation(b)}));this._addEventHandlerKeyToGroup(this._GROUP_KEY,"CLICK",goog.events.listen(this._htmlNode,goog.events.EventType.CLICK,function(b){a._stopPropagation(b)}));this._addEventHandlerKeyToGroup(this._GROUP_KEY,"DBLCLICK",goog.events.listen(this._htmlNode,goog.events.EventType.DBLCLICK,function(b){a._stopPropagation(b)}))};neutron.dashboard.controls.InplaceEdit.prototype._stopPropagation=function(a){a.stopPropagation()};
neutron.dashboard.controls.InplaceEdit.prototype._onPost=function(a){!0===goog.string.isEmptySafe(a)&&(a=this._currentText);a=neutron.dashboard.utils.FormatUtils.sanitizeText(a.trim());a=a.replace(/(\r\n|\n|\r)/gm,"");!1===goog.string.isEmpty(a)&&this._callback(a);this._destroySelf()};
neutron.dashboard.controls.InplaceEdit.prototype._onEditBoxKeypress=function(a){var b=this._htmlNode.value.trim();13===a.keyCode?(goog.isDefAndNotNull(this._extension)&&(b+=this._extension),this._onPost(b)):27==a.keyCode&&(this._destroySelf(),!0==goog.isDefAndNotNull(this._cancelCallback)&&this._cancelCallback())};neutron.dashboard.controls.InplaceEdit.prototype._destroySelf=function(){this.dispatchEvent(neutron.dashboard.events.EventType.REMOVE)};goog.ui.MenuSeparatorRenderer=function(){goog.ui.ControlRenderer.call(this)};goog.inherits(goog.ui.MenuSeparatorRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.MenuSeparatorRenderer);goog.ui.MenuSeparatorRenderer.CSS_CLASS="goog-menuseparator";goog.ui.MenuSeparatorRenderer.prototype.createDom=function(a){return a.getDomHelper().createDom("div",this.getCssClass())};
goog.ui.MenuSeparatorRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);if("HR"==b.tagName){var c=b;b=this.createDom(a);goog.dom.insertSiblingBefore(b,c);goog.dom.removeNode(c)}else goog.dom.classlist.add(b,this.getCssClass());return b};goog.ui.MenuSeparatorRenderer.prototype.setContent=function(a,b){};goog.ui.MenuSeparatorRenderer.prototype.getCssClass=function(){return goog.ui.MenuSeparatorRenderer.CSS_CLASS};goog.ui.Separator=function(a,b){goog.ui.Control.call(this,null,a||goog.ui.MenuSeparatorRenderer.getInstance(),b);this.setSupportedState(goog.ui.Component.State.DISABLED,!1);this.setSupportedState(goog.ui.Component.State.HOVER,!1);this.setSupportedState(goog.ui.Component.State.ACTIVE,!1);this.setSupportedState(goog.ui.Component.State.FOCUSED,!1);this.setStateInternal(goog.ui.Component.State.DISABLED)};goog.inherits(goog.ui.Separator,goog.ui.Control);
goog.ui.Separator.prototype.enterDocument=function(){goog.ui.Separator.superClass_.enterDocument.call(this);var a=this.getElement();goog.asserts.assert(a,"The DOM element for the separator cannot be null.");goog.a11y.aria.setRole(a,"separator")};goog.ui.registry.setDecoratorByClassName(goog.ui.MenuSeparatorRenderer.CSS_CLASS,function(){return new goog.ui.Separator});goog.ui.MenuRenderer=function(a){goog.ui.ContainerRenderer.call(this,a||goog.a11y.aria.Role.MENU)};goog.inherits(goog.ui.MenuRenderer,goog.ui.ContainerRenderer);goog.addSingletonGetter(goog.ui.MenuRenderer);goog.ui.MenuRenderer.CSS_CLASS="goog-menu";goog.ui.MenuRenderer.prototype.canDecorate=function(a){return"UL"==a.tagName||goog.ui.MenuRenderer.superClass_.canDecorate.call(this,a)};
goog.ui.MenuRenderer.prototype.getDecoratorForChild=function(a){return"HR"==a.tagName?new goog.ui.Separator:goog.ui.MenuRenderer.superClass_.getDecoratorForChild.call(this,a)};goog.ui.MenuRenderer.prototype.containsElement=function(a,b){return goog.dom.contains(a.getElement(),b)};goog.ui.MenuRenderer.prototype.getCssClass=function(){return goog.ui.MenuRenderer.CSS_CLASS};
goog.ui.MenuRenderer.prototype.initializeDom=function(a){goog.ui.MenuRenderer.superClass_.initializeDom.call(this,a);a=a.getElement();goog.asserts.assert(a,"The menu DOM element cannot be null.");goog.a11y.aria.setState(a,goog.a11y.aria.State.HASPOPUP,"true")};goog.ui.MenuSeparator=function(a){goog.ui.Separator.call(this,goog.ui.MenuSeparatorRenderer.getInstance(),a)};goog.inherits(goog.ui.MenuSeparator,goog.ui.Separator);goog.ui.registry.setDecoratorByClassName(goog.ui.MenuSeparatorRenderer.CSS_CLASS,function(){return new goog.ui.Separator});goog.ui.MenuHeaderRenderer=function(){goog.ui.ControlRenderer.call(this)};goog.inherits(goog.ui.MenuHeaderRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.MenuHeaderRenderer);goog.ui.MenuHeaderRenderer.CSS_CLASS="goog-menuheader";goog.ui.MenuHeaderRenderer.prototype.getCssClass=function(){return goog.ui.MenuHeaderRenderer.CSS_CLASS};goog.ui.MenuHeader=function(a,b,c){goog.ui.Control.call(this,a,c||goog.ui.MenuHeaderRenderer.getInstance(),b);this.setSupportedState(goog.ui.Component.State.DISABLED,!1);this.setSupportedState(goog.ui.Component.State.HOVER,!1);this.setSupportedState(goog.ui.Component.State.ACTIVE,!1);this.setSupportedState(goog.ui.Component.State.FOCUSED,!1);this.setStateInternal(goog.ui.Component.State.DISABLED)};goog.inherits(goog.ui.MenuHeader,goog.ui.Control);
goog.ui.registry.setDecoratorByClassName(goog.ui.MenuHeaderRenderer.CSS_CLASS,function(){return new goog.ui.MenuHeader(null)});goog.ui.Menu=function(a,b){goog.ui.Container.call(this,goog.ui.Container.Orientation.VERTICAL,b||goog.ui.MenuRenderer.getInstance(),a);this.setFocusable(!1)};goog.inherits(goog.ui.Menu,goog.ui.Container);goog.ui.Menu.EventType={BEFORE_SHOW:goog.ui.Component.EventType.BEFORE_SHOW,SHOW:goog.ui.Component.EventType.SHOW,BEFORE_HIDE:goog.ui.Component.EventType.HIDE,HIDE:goog.ui.Component.EventType.HIDE};goog.ui.Menu.CSS_CLASS=goog.ui.MenuRenderer.CSS_CLASS;goog.ui.Menu.prototype.allowAutoFocus_=!0;
goog.ui.Menu.prototype.allowHighlightDisabled_=!1;goog.ui.Menu.prototype.getCssClass=function(){return this.getRenderer().getCssClass()};goog.ui.Menu.prototype.containsElement=function(a){if(this.getRenderer().containsElement(this,a))return!0;for(var b=0,c=this.getChildCount();b<c;b++){var d=this.getChildAt(b);if("function"==typeof d.containsElement&&d.containsElement(a))return!0}return!1};goog.ui.Menu.prototype.addItem=function(a){this.addChild(a,!0)};
goog.ui.Menu.prototype.addItemAt=function(a,b){this.addChildAt(a,b,!0)};goog.ui.Menu.prototype.removeItem=function(a){(a=this.removeChild(a,!0))&&a.dispose()};goog.ui.Menu.prototype.removeItemAt=function(a){(a=this.removeChildAt(a,!0))&&a.dispose()};goog.ui.Menu.prototype.getItemAt=function(a){return this.getChildAt(a)};goog.ui.Menu.prototype.getItemCount=function(){return this.getChildCount()};goog.ui.Menu.prototype.getItems=function(){var a=[];this.forEachChild(function(b){a.push(b)});return a};
goog.ui.Menu.prototype.setPosition=function(a,b){var c=this.isVisible();c||goog.style.setElementShown(this.getElement(),!0);goog.style.setPageOffset(this.getElement(),a,b);c||goog.style.setElementShown(this.getElement(),!1)};goog.ui.Menu.prototype.getPosition=function(){return this.isVisible()?goog.style.getPageOffset(this.getElement()):null};goog.ui.Menu.prototype.setAllowAutoFocus=function(a){(this.allowAutoFocus_=a)&&this.setFocusable(!0)};goog.ui.Menu.prototype.getAllowAutoFocus=function(){return this.allowAutoFocus_};
goog.ui.Menu.prototype.setAllowHighlightDisabled=function(a){this.allowHighlightDisabled_=a};goog.ui.Menu.prototype.getAllowHighlightDisabled=function(){return this.allowHighlightDisabled_};goog.ui.Menu.prototype.setVisible=function(a,b,c){(b=goog.ui.Menu.superClass_.setVisible.call(this,a,b))&&(a&&this.isInDocument()&&this.allowAutoFocus_)&&this.getKeyEventTarget().focus();a&&c&&goog.isNumber(c.clientX)?this.openingCoords=new goog.math.Coordinate(c.clientX,c.clientY):this.openingCoords=null;return b};
goog.ui.Menu.prototype.handleEnterItem=function(a){this.allowAutoFocus_&&this.getKeyEventTarget().focus();return goog.ui.Menu.superClass_.handleEnterItem.call(this,a)};goog.ui.Menu.prototype.highlightNextPrefix=function(a){var b=RegExp("^"+goog.string.regExpEscape(a),"i");return this.highlightHelper(function(a,d){var e=0>a?0:a,f=!1;do{++a;a==d&&(a=0,f=!0);var g=this.getChildAt(a).getCaption();if(g&&g.match(b))return a}while(!f||a!=e);return this.getHighlightedIndex()},this.getHighlightedIndex())};
goog.ui.Menu.prototype.canHighlightItem=function(a){return(this.allowHighlightDisabled_||a.isEnabled())&&a.isVisible()&&a.isSupportedState(goog.ui.Component.State.HOVER)};goog.ui.Menu.prototype.decorateInternal=function(a){this.decorateContent(a);goog.ui.Menu.superClass_.decorateInternal.call(this,a)};
goog.ui.Menu.prototype.handleKeyEventInternal=function(a){var b=goog.ui.Menu.base(this,"handleKeyEventInternal",a);b||this.forEachChild(function(c){!b&&(c.getMnemonic&&c.getMnemonic()==a.keyCode)&&(this.isEnabled()&&this.setHighlighted(c),b=c.handleKeyEvent(a))},this);return b};goog.ui.Menu.prototype.setHighlightedIndex=function(a){goog.ui.Menu.base(this,"setHighlightedIndex",a);(a=this.getChildAt(a))&&goog.style.scrollIntoContainerView(a.getElement(),this.getElement())};
goog.ui.Menu.prototype.decorateContent=function(a){var b=this.getRenderer();a=this.getDomHelper().getElementsByTagNameAndClass("div",b.getCssClass()+"-content",a);for(var c=a.length,d=0;d<c;d++)b.decorateChildren(this,a[d])};goog.positioning.MenuAnchoredPosition=function(a,b,c,d){goog.positioning.AnchoredViewportPosition.call(this,a,b,c||d);if(c||d)this.setLastResortOverflow(goog.positioning.Overflow.ADJUST_X_EXCEPT_OFFSCREEN|(d?goog.positioning.Overflow.RESIZE_HEIGHT:goog.positioning.Overflow.ADJUST_Y_EXCEPT_OFFSCREEN))};goog.inherits(goog.positioning.MenuAnchoredPosition,goog.positioning.AnchoredViewportPosition);goog.ui.ButtonSide={NONE:0,START:1,END:2,BOTH:3};goog.ui.ButtonRenderer=function(){goog.ui.ControlRenderer.call(this)};goog.inherits(goog.ui.ButtonRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.ButtonRenderer);goog.ui.ButtonRenderer.CSS_CLASS="goog-button";goog.ui.ButtonRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.BUTTON};
goog.ui.ButtonRenderer.prototype.updateAriaState=function(a,b,c){switch(b){case goog.ui.Component.State.SELECTED:case goog.ui.Component.State.CHECKED:goog.asserts.assert(a,"The button DOM element cannot be null.");goog.a11y.aria.setState(a,goog.a11y.aria.State.PRESSED,c);break;default:case goog.ui.Component.State.OPENED:case goog.ui.Component.State.DISABLED:goog.ui.ButtonRenderer.base(this,"updateAriaState",a,b,c)}};
goog.ui.ButtonRenderer.prototype.createDom=function(a){var b=goog.ui.ButtonRenderer.base(this,"createDom",a);this.setTooltip(b,a.getTooltip());var c=a.getValue();c&&this.setValue(b,c);a.isSupportedState(goog.ui.Component.State.CHECKED)&&this.updateAriaState(b,goog.ui.Component.State.CHECKED,a.isChecked());return b};
goog.ui.ButtonRenderer.prototype.decorate=function(a,b){b=goog.ui.ButtonRenderer.superClass_.decorate.call(this,a,b);a.setValueInternal(this.getValue(b));a.setTooltipInternal(this.getTooltip(b));a.isSupportedState(goog.ui.Component.State.CHECKED)&&this.updateAriaState(b,goog.ui.Component.State.CHECKED,a.isChecked());return b};goog.ui.ButtonRenderer.prototype.getValue=goog.nullFunction;goog.ui.ButtonRenderer.prototype.setValue=goog.nullFunction;goog.ui.ButtonRenderer.prototype.getTooltip=function(a){return a.title};
goog.ui.ButtonRenderer.prototype.setTooltip=function(a,b){a&&b&&(a.title=b)};goog.ui.ButtonRenderer.prototype.setCollapsed=function(a,b){var c=a.isRightToLeft(),d=this.getStructuralCssClass()+"-collapse-left",e=this.getStructuralCssClass()+"-collapse-right";a.enableClassName(c?e:d,!!(b&goog.ui.ButtonSide.START));a.enableClassName(c?d:e,!!(b&goog.ui.ButtonSide.END))};goog.ui.ButtonRenderer.prototype.getCssClass=function(){return goog.ui.ButtonRenderer.CSS_CLASS};goog.ui.NativeButtonRenderer=function(){goog.ui.ButtonRenderer.call(this)};goog.inherits(goog.ui.NativeButtonRenderer,goog.ui.ButtonRenderer);goog.addSingletonGetter(goog.ui.NativeButtonRenderer);goog.ui.NativeButtonRenderer.prototype.getAriaRole=function(){};
goog.ui.NativeButtonRenderer.prototype.createDom=function(a){this.setUpNativeButton_(a);return a.getDomHelper().createDom("button",{"class":this.getClassNames(a).join(" "),disabled:!a.isEnabled(),title:a.getTooltip()||"",value:a.getValue()||""},a.getCaption()||"")};goog.ui.NativeButtonRenderer.prototype.canDecorate=function(a){return"BUTTON"==a.tagName||"INPUT"==a.tagName&&("button"==a.type||"submit"==a.type||"reset"==a.type)};
goog.ui.NativeButtonRenderer.prototype.decorate=function(a,b){this.setUpNativeButton_(a);if(b.disabled){var c=goog.asserts.assertString(this.getClassForState(goog.ui.Component.State.DISABLED));goog.dom.classlist.add(b,c)}return goog.ui.NativeButtonRenderer.superClass_.decorate.call(this,a,b)};goog.ui.NativeButtonRenderer.prototype.initializeDom=function(a){a.getHandler().listen(a.getElement(),goog.events.EventType.CLICK,a.performActionInternal)};
goog.ui.NativeButtonRenderer.prototype.setAllowTextSelection=goog.nullFunction;goog.ui.NativeButtonRenderer.prototype.setRightToLeft=goog.nullFunction;goog.ui.NativeButtonRenderer.prototype.isFocusable=function(a){return a.isEnabled()};goog.ui.NativeButtonRenderer.prototype.setFocusable=goog.nullFunction;
goog.ui.NativeButtonRenderer.prototype.setState=function(a,b,c){goog.ui.NativeButtonRenderer.superClass_.setState.call(this,a,b,c);if((a=a.getElement())&&b==goog.ui.Component.State.DISABLED)a.disabled=c};goog.ui.NativeButtonRenderer.prototype.getValue=function(a){return a.value};goog.ui.NativeButtonRenderer.prototype.setValue=function(a,b){a&&(a.value=b)};goog.ui.NativeButtonRenderer.prototype.updateAriaState=goog.nullFunction;
goog.ui.NativeButtonRenderer.prototype.setUpNativeButton_=function(a){a.setHandleMouseEvents(!1);a.setAutoStates(goog.ui.Component.State.ALL,!1);a.setSupportedState(goog.ui.Component.State.FOCUSED,!1)};goog.ui.Button=function(a,b,c){goog.ui.Control.call(this,a,b||goog.ui.NativeButtonRenderer.getInstance(),c)};goog.inherits(goog.ui.Button,goog.ui.Control);goog.ui.Button.Side=goog.ui.ButtonSide;goog.ui.Button.prototype.getValue=function(){return this.value_};goog.ui.Button.prototype.setValue=function(a){this.value_=a;this.getRenderer().setValue(this.getElement(),a)};goog.ui.Button.prototype.setValueInternal=function(a){this.value_=a};goog.ui.Button.prototype.getTooltip=function(){return this.tooltip_};
goog.ui.Button.prototype.setTooltip=function(a){this.tooltip_=a;this.getRenderer().setTooltip(this.getElement(),a)};goog.ui.Button.prototype.setTooltipInternal=function(a){this.tooltip_=a};goog.ui.Button.prototype.setCollapsed=function(a){this.getRenderer().setCollapsed(this,a)};goog.ui.Button.prototype.disposeInternal=function(){goog.ui.Button.superClass_.disposeInternal.call(this);delete this.value_;delete this.tooltip_};
goog.ui.Button.prototype.enterDocument=function(){goog.ui.Button.superClass_.enterDocument.call(this);if(this.isSupportedState(goog.ui.Component.State.FOCUSED)){var a=this.getKeyEventTarget();a&&this.getHandler().listen(a,goog.events.EventType.KEYUP,this.handleKeyEventInternal)}};
goog.ui.Button.prototype.handleKeyEventInternal=function(a){return a.keyCode==goog.events.KeyCodes.ENTER&&a.type==goog.events.KeyHandler.EventType.KEY||a.keyCode==goog.events.KeyCodes.SPACE&&a.type==goog.events.EventType.KEYUP?this.performActionInternal(a):a.keyCode==goog.events.KeyCodes.SPACE};goog.ui.registry.setDecoratorByClassName(goog.ui.ButtonRenderer.CSS_CLASS,function(){return new goog.ui.Button(null)});goog.ui.INLINE_BLOCK_CLASSNAME="goog-inline-block";goog.ui.CustomButtonRenderer=function(){goog.ui.ButtonRenderer.call(this)};goog.inherits(goog.ui.CustomButtonRenderer,goog.ui.ButtonRenderer);goog.addSingletonGetter(goog.ui.CustomButtonRenderer);goog.ui.CustomButtonRenderer.CSS_CLASS="goog-custom-button";
goog.ui.CustomButtonRenderer.prototype.createDom=function(a){var b=this.getClassNames(a),b={"class":goog.ui.INLINE_BLOCK_CLASSNAME+" "+b.join(" ")},b=a.getDomHelper().createDom("div",b,this.createButton(a.getContent(),a.getDomHelper()));this.setTooltip(b,a.getTooltip());this.setAriaStates(a,b);return b};goog.ui.CustomButtonRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.BUTTON};goog.ui.CustomButtonRenderer.prototype.getContentElement=function(a){return a&&a.firstChild.firstChild};
goog.ui.CustomButtonRenderer.prototype.createButton=function(a,b){return b.createDom("div",goog.ui.INLINE_BLOCK_CLASSNAME+" "+(this.getCssClass()+"-outer-box"),b.createDom("div",goog.ui.INLINE_BLOCK_CLASSNAME+" "+(this.getCssClass()+"-inner-box"),a))};goog.ui.CustomButtonRenderer.prototype.canDecorate=function(a){return"DIV"==a.tagName};
goog.ui.CustomButtonRenderer.prototype.hasBoxStructure=function(a,b){var c=a.getDomHelper().getFirstElementChild(b),d=this.getCssClass()+"-outer-box";return c&&goog.dom.classlist.contains(c,d)&&(c=a.getDomHelper().getFirstElementChild(c),d=this.getCssClass()+"-inner-box",c&&goog.dom.classlist.contains(c,d))?!0:!1};
goog.ui.CustomButtonRenderer.prototype.decorate=function(a,b){goog.ui.CustomButtonRenderer.trimTextNodes_(b,!0);goog.ui.CustomButtonRenderer.trimTextNodes_(b,!1);this.hasBoxStructure(a,b)||b.appendChild(this.createButton(b.childNodes,a.getDomHelper()));goog.dom.classlist.addAll(b,[goog.ui.INLINE_BLOCK_CLASSNAME,this.getCssClass()]);return goog.ui.CustomButtonRenderer.superClass_.decorate.call(this,a,b)};goog.ui.CustomButtonRenderer.prototype.getCssClass=function(){return goog.ui.CustomButtonRenderer.CSS_CLASS};
goog.ui.CustomButtonRenderer.trimTextNodes_=function(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==goog.dom.NodeType.TEXT){var e=c.nodeValue;if(""==goog.string.trim(e))a.removeChild(c);else{c.nodeValue=b?goog.string.trimLeft(e):goog.string.trimRight(e);break}}else break;c=d}};goog.ui.MenuButtonRenderer=function(){goog.ui.CustomButtonRenderer.call(this)};goog.inherits(goog.ui.MenuButtonRenderer,goog.ui.CustomButtonRenderer);goog.addSingletonGetter(goog.ui.MenuButtonRenderer);goog.ui.MenuButtonRenderer.CSS_CLASS="goog-menu-button";goog.ui.MenuButtonRenderer.prototype.getContentElement=function(a){return goog.ui.MenuButtonRenderer.superClass_.getContentElement.call(this,a&&a.firstChild)};
goog.ui.MenuButtonRenderer.prototype.decorate=function(a,b){var c=goog.dom.getElementsByTagNameAndClass("*",goog.ui.MenuRenderer.CSS_CLASS,b)[0];if(c){goog.style.setElementShown(c,!1);goog.dom.appendChild(goog.dom.getOwnerDocument(c).body,c);var d=new goog.ui.Menu;d.decorate(c);a.setMenu(d)}return goog.ui.MenuButtonRenderer.superClass_.decorate.call(this,a,b)};
goog.ui.MenuButtonRenderer.prototype.createButton=function(a,b){return goog.ui.MenuButtonRenderer.superClass_.createButton.call(this,[this.createCaption(a,b),this.createDropdown(b)],b)};goog.ui.MenuButtonRenderer.prototype.createCaption=function(a,b){return goog.ui.MenuButtonRenderer.wrapCaption(a,this.getCssClass(),b)};goog.ui.MenuButtonRenderer.wrapCaption=function(a,b,c){return c.createDom("div",goog.ui.INLINE_BLOCK_CLASSNAME+" "+(b+"-caption"),a)};
goog.ui.MenuButtonRenderer.prototype.createDropdown=function(a){return a.createDom("div",goog.ui.INLINE_BLOCK_CLASSNAME+" "+(this.getCssClass()+"-dropdown"),"\u00a0")};goog.ui.MenuButtonRenderer.prototype.getCssClass=function(){return goog.ui.MenuButtonRenderer.CSS_CLASS};goog.ui.MenuButton=function(a,b,c,d,e){goog.ui.Button.call(this,a,c||goog.ui.MenuButtonRenderer.getInstance(),d);this.setSupportedState(goog.ui.Component.State.OPENED,!0);this.menuPosition_=new goog.positioning.MenuAnchoredPosition(null,goog.positioning.Corner.BOTTOM_START);b&&this.setMenu(b);this.menuMargin_=null;this.timer_=new goog.Timer(500);(goog.userAgent.product.IPHONE||goog.userAgent.product.IPAD)&&!goog.userAgent.isVersionOrHigher("533.17.9")&&this.setFocusablePopupMenu(!0);this.menuRenderer_=
e||goog.ui.MenuRenderer.getInstance()};goog.inherits(goog.ui.MenuButton,goog.ui.Button);goog.ui.MenuButton.prototype.isFocusablePopupMenu_=!1;goog.ui.MenuButton.prototype.renderMenuAsSibling_=!1;goog.ui.MenuButton.prototype.enterDocument=function(){goog.ui.MenuButton.superClass_.enterDocument.call(this);this.attachKeyDownEventListener_(!0);this.menu_&&this.attachMenuEventListeners_(this.menu_,!0);goog.a11y.aria.setState(this.getElementStrict(),goog.a11y.aria.State.HASPOPUP,!!this.menu_)};
goog.ui.MenuButton.prototype.exitDocument=function(){goog.ui.MenuButton.superClass_.exitDocument.call(this);this.attachKeyDownEventListener_(!1);if(this.menu_){this.setOpen(!1);this.menu_.exitDocument();this.attachMenuEventListeners_(this.menu_,!1);var a=this.menu_.getElement();a&&goog.dom.removeNode(a)}};
goog.ui.MenuButton.prototype.disposeInternal=function(){goog.ui.MenuButton.superClass_.disposeInternal.call(this);this.menu_&&(this.menu_.dispose(),delete this.menu_);delete this.positionElement_;this.timer_.dispose()};goog.ui.MenuButton.prototype.handleMouseDown=function(a){goog.ui.MenuButton.superClass_.handleMouseDown.call(this,a);this.isActive()&&(this.setOpen(!this.isOpen(),a),this.menu_&&this.menu_.setMouseButtonPressed(this.isOpen()))};
goog.ui.MenuButton.prototype.handleMouseUp=function(a){goog.ui.MenuButton.superClass_.handleMouseUp.call(this,a);this.menu_&&!this.isActive()&&this.menu_.setMouseButtonPressed(!1)};goog.ui.MenuButton.prototype.performActionInternal=function(a){this.setActive(!1);return!0};goog.ui.MenuButton.prototype.handleDocumentMouseDown=function(a){this.menu_&&(this.menu_.isVisible()&&!this.containsElement(a.target))&&this.setOpen(!1)};
goog.ui.MenuButton.prototype.containsElement=function(a){return a&&goog.dom.contains(this.getElement(),a)||this.menu_&&this.menu_.containsElement(a)||!1};
goog.ui.MenuButton.prototype.handleKeyEventInternal=function(a){if(a.keyCode==goog.events.KeyCodes.SPACE){if(a.preventDefault(),a.type!=goog.events.EventType.KEYUP)return!0}else if(a.type!=goog.events.KeyHandler.EventType.KEY)return!1;if(this.menu_&&this.menu_.isVisible()){var b=this.menu_.handleKeyEvent(a);return a.keyCode==goog.events.KeyCodes.ESC?(this.setOpen(!1),!0):b}return a.keyCode==goog.events.KeyCodes.DOWN||a.keyCode==goog.events.KeyCodes.UP||a.keyCode==goog.events.KeyCodes.SPACE||a.keyCode==
goog.events.KeyCodes.ENTER?(this.setOpen(!0,a),!0):!1};goog.ui.MenuButton.prototype.handleMenuAction=function(a){this.setOpen(!1)};goog.ui.MenuButton.prototype.handleMenuBlur=function(a){this.isActive()||this.setOpen(!1)};goog.ui.MenuButton.prototype.handleBlur=function(a){this.isFocusablePopupMenu()||this.setOpen(!1);goog.ui.MenuButton.superClass_.handleBlur.call(this,a)};
goog.ui.MenuButton.prototype.getMenu=function(){this.menu_||this.setMenu(new goog.ui.Menu(this.getDomHelper(),this.menuRenderer_));return this.menu_||null};
goog.ui.MenuButton.prototype.setMenu=function(a){var b=this.menu_;a!=b&&(b&&(this.setOpen(!1),this.isInDocument()&&this.attachMenuEventListeners_(b,!1),delete this.menu_),this.isInDocument()&&goog.a11y.aria.setState(this.getElementStrict(),goog.a11y.aria.State.HASPOPUP,!!a),a&&(this.menu_=a,a.setParent(this),a.setVisible(!1),a.setAllowAutoFocus(this.isFocusablePopupMenu()),this.isInDocument()&&this.attachMenuEventListeners_(a,!0)));return b};
goog.ui.MenuButton.prototype.setMenuPosition=function(a){a&&(this.menuPosition_=a,this.positionElement_=a.element)};goog.ui.MenuButton.prototype.setPositionElement=function(a){this.positionElement_=a;this.positionMenu()};goog.ui.MenuButton.prototype.setMenuMargin=function(a){this.menuMargin_=a};goog.ui.MenuButton.prototype.addItem=function(a){this.getMenu().addChild(a,!0)};goog.ui.MenuButton.prototype.addItemAt=function(a,b){this.getMenu().addChildAt(a,b,!0)};
goog.ui.MenuButton.prototype.removeItem=function(a){(a=this.getMenu().removeChild(a,!0))&&a.dispose()};goog.ui.MenuButton.prototype.removeItemAt=function(a){(a=this.getMenu().removeChildAt(a,!0))&&a.dispose()};goog.ui.MenuButton.prototype.getItemAt=function(a){return this.menu_?this.menu_.getChildAt(a):null};goog.ui.MenuButton.prototype.getItemCount=function(){return this.menu_?this.menu_.getChildCount():0};
goog.ui.MenuButton.prototype.setVisible=function(a,b){var c=goog.ui.MenuButton.superClass_.setVisible.call(this,a,b);c&&!this.isVisible()&&this.setOpen(!1);return c};goog.ui.MenuButton.prototype.setEnabled=function(a){goog.ui.MenuButton.superClass_.setEnabled.call(this,a);this.isEnabled()||this.setOpen(!1)};goog.ui.MenuButton.prototype.isAlignMenuToStart=function(){var a=this.menuPosition_.corner;return a==goog.positioning.Corner.BOTTOM_START||a==goog.positioning.Corner.TOP_START};
goog.ui.MenuButton.prototype.setAlignMenuToStart=function(a){this.menuPosition_.corner=a?goog.positioning.Corner.BOTTOM_START:goog.positioning.Corner.BOTTOM_END};goog.ui.MenuButton.prototype.setScrollOnOverflow=function(a){this.menuPosition_.setLastResortOverflow&&this.menuPosition_.setLastResortOverflow(goog.positioning.Overflow.ADJUST_X|(a?goog.positioning.Overflow.RESIZE_HEIGHT:goog.positioning.Overflow.ADJUST_Y))};
goog.ui.MenuButton.prototype.isScrollOnOverflow=function(){return this.menuPosition_.getLastResortOverflow&&!!(this.menuPosition_.getLastResortOverflow()&goog.positioning.Overflow.RESIZE_HEIGHT)};goog.ui.MenuButton.prototype.isFocusablePopupMenu=function(){return this.isFocusablePopupMenu_};goog.ui.MenuButton.prototype.setFocusablePopupMenu=function(a){this.isFocusablePopupMenu_=a};goog.ui.MenuButton.prototype.setRenderMenuAsSibling=function(a){this.renderMenuAsSibling_=a};
goog.ui.MenuButton.prototype.showMenu=function(){this.setOpen(!0)};goog.ui.MenuButton.prototype.hideMenu=function(){this.setOpen(!1)};
goog.ui.MenuButton.prototype.setOpen=function(a,b){goog.ui.MenuButton.superClass_.setOpen.call(this,a);if(this.menu_&&this.hasState(goog.ui.Component.State.OPENED)==a){if(a)this.menu_.isInDocument()||(this.renderMenuAsSibling_?this.menu_.render(this.getElement().parentNode):this.menu_.render()),this.viewportBox_=goog.style.getVisibleRectForElement(this.getElement()),this.buttonRect_=goog.style.getBounds(this.getElement()),this.positionMenu(),this.menu_.setHighlightedIndex(b&&(b.keyCode==goog.events.KeyCodes.DOWN||
b.keyCode==goog.events.KeyCodes.UP)?0:-1);else{this.setActive(!1);this.menu_.setMouseButtonPressed(!1);var c=this.getElement();c&&(goog.a11y.aria.setState(c,goog.a11y.aria.State.ACTIVEDESCENDANT,""),goog.a11y.aria.setState(c,goog.a11y.aria.State.OWNS,""));goog.isDefAndNotNull(this.originalSize_)&&(this.originalSize_=void 0,(c=this.menu_.getElement())&&goog.style.setSize(c,"",""))}this.menu_.setVisible(a,!1,b);this.isDisposed()||this.attachPopupListeners_(a)}};
goog.ui.MenuButton.prototype.invalidateMenuSize=function(){this.originalSize_=void 0};
goog.ui.MenuButton.prototype.positionMenu=function(){if(this.menu_.isInDocument()){var a=this.positionElement_||this.getElement(),b=this.menuPosition_;this.menuPosition_.element=a;a=this.menu_.getElement();this.menu_.isVisible()||(a.style.visibility="hidden",goog.style.setElementShown(a,!0));!this.originalSize_&&this.isScrollOnOverflow()&&(this.originalSize_=goog.style.getSize(a));var c=goog.positioning.flipCornerVertical(b.corner);b.reposition(a,c,this.menuMargin_,this.originalSize_);this.menu_.isVisible()||
(goog.style.setElementShown(a,!1),a.style.visibility="visible")}};goog.ui.MenuButton.prototype.onTick_=function(a){a=goog.style.getBounds(this.getElement());var b=goog.style.getVisibleRectForElement(this.getElement());if(!goog.math.Rect.equals(this.buttonRect_,a)||!goog.math.Box.equals(this.viewportBox_,b))this.buttonRect_=a,this.viewportBox_=b,this.positionMenu()};
goog.ui.MenuButton.prototype.attachMenuEventListeners_=function(a,b){var c=this.getHandler(),d=b?c.listen:c.unlisten;d.call(c,a,goog.ui.Component.EventType.ACTION,this.handleMenuAction);d.call(c,a,goog.ui.Component.EventType.HIGHLIGHT,this.handleHighlightItem);d.call(c,a,goog.ui.Component.EventType.UNHIGHLIGHT,this.handleUnHighlightItem)};
goog.ui.MenuButton.prototype.attachKeyDownEventListener_=function(a){var b=this.getHandler();(a?b.listen:b.unlisten).call(b,this.getElement(),goog.events.EventType.KEYDOWN,this.handleKeyDownEvent_)};
goog.ui.MenuButton.prototype.handleHighlightItem=function(a){var b=this.getElement();goog.asserts.assert(b,"The menu button DOM element cannot be null.");null!=a.target.getElement()&&(goog.a11y.aria.setState(b,goog.a11y.aria.State.ACTIVEDESCENDANT,a.target.getElement().id),goog.a11y.aria.setState(b,goog.a11y.aria.State.OWNS,a.target.getElement().id))};
goog.ui.MenuButton.prototype.handleKeyDownEvent_=function(a){this.isSupportedState(goog.ui.Component.State.FOCUSED)&&(this.getKeyEventTarget()&&this.menu_&&this.menu_.isVisible())&&a.stopPropagation()};
goog.ui.MenuButton.prototype.handleUnHighlightItem=function(a){this.menu_.getHighlighted()||(a=this.getElement(),goog.asserts.assert(a,"The menu button DOM element cannot be null."),goog.a11y.aria.setState(a,goog.a11y.aria.State.ACTIVEDESCENDANT,""),goog.a11y.aria.setState(a,goog.a11y.aria.State.OWNS,""))};
goog.ui.MenuButton.prototype.attachPopupListeners_=function(a){var b=this.getHandler(),c=a?b.listen:b.unlisten;c.call(b,this.getDomHelper().getDocument(),goog.events.EventType.MOUSEDOWN,this.handleDocumentMouseDown,!0);this.isFocusablePopupMenu()&&c.call(b,this.menu_,goog.ui.Component.EventType.BLUR,this.handleMenuBlur);c.call(b,this.timer_,goog.Timer.TICK,this.onTick_);a?this.timer_.start():this.timer_.stop()};goog.ui.registry.setDecoratorByClassName(goog.ui.MenuButtonRenderer.CSS_CLASS,function(){return new goog.ui.MenuButton(null)});neutron.dashboard.controllers.designs_pane={};neutron.dashboard.controllers.designs_pane.Base=function(a,b){neutron.dashboard.BaseClass.call(this);this._parentObject=a;this._isOffline=!1;!0==goog.isDefAndNotNull(b)&&(this._isOffline=b);this._ITEM_SPACE=12;this._EXPAND_POPUP_WIDTH=348;this._EXPAND_POPUP_TOP_MARGIN=4;this._itemsOrderArray=[]};goog.inherits(neutron.dashboard.controllers.designs_pane.Base,neutron.dashboard.BaseClass);
neutron.dashboard.controllers.designs_pane.Base.prototype._updateClassName=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.htmlNode();if(!1!=goog.isDefAndNotNull(a)){var b;b="designsPane noSelection"+(this._parentObject._viewType==neutron.dashboard.constants.ViewType.LIST_VIEW?" listView":" tileView");a.className=b}}};
neutron.dashboard.controllers.designs_pane.Base.prototype.updateHtmlElementByData=function(a,b){if(a&&b){this._parentObject.updateItemData(a,b);var c=this._parentObject.getItemData(a),d=this._parentObject.getDesignHtmlElementById(a);this._updateNode(c,d)}};
neutron.dashboard.controllers.designs_pane.Base.prototype._getMimeTypeClassName=function(a){if(!1===goog.isDefAndNotNull(a))return"";if(goog.isDefAndNotNull(a.isFolder)&&!0===a.isFolder)return"folderNode";if(!1===goog.isDefAndNotNull(a.mimeType))return"";if("application/vnd.autodesk.fusion360"==a.mimeType)return"fusionFile";if("application/vnd.autodesk.f3d"==a.mimeType||"application/vnd.autodesk.fusion360archive"==a.mimeType)return"f3dFile";if("application/vnd.autodesk.sim360"==a.mimeType)return"simFile";
if("application/vnd.autodesk.cam360"==a.mimeType)return"camFile";if("application/vnd.autodesk.fusiondoc"==a.mimeType)return"docFile";if("application/vnd.autodesk.fusiondrawingtemplate"==a.mimeType)return"f2tFile";if("application/pdf"==a.mimeType)return"pdfFile";if("application/vnd.autodesk.inventor.part"==a.mimeType)return"iptFile";if("application/spreadsheet"==a.mimeType)return"excelFile";if("application/doc"==a.mimeType)return"wordFile";if("application/ppt"==a.mimeType)return"pptFile";if("application/image"==
a.mimeType)return"imgFile";if("application/video"==a.mimeType)return"vidFile";if("application/vnd.autodesk.inventor.assembly"==a.mimeType)return"asmFile";if("application/vnd.autodesk.autocad.dwg"==a.mimeType)return"dwgFile";if("application/vnd.autodesk.dxf"==a.mimeType)return"dxfFile";if("application/txt"==a.mimeType)return"txtFile";if("application/vnd.autodesk.cad"==a.mimeType||"application/vnd.autodesk.iges"==a.mimeType||"application/vnd.autodesk.step"==a.mimeType||"application/vnd.autodesk.smt"==
a.mimeType||"application/vnd.autodesk.sat"==a.mimeType)return"cadFile";if("application/vnd.autodesk.solidworks.part"==a.mimeType)return"sldprtFile";if("application/vnd.autodesk.solidworks.assembly"==a.mimeType)return"sldasmFile";console.warn("missing icon for mimetype: "+a.mimeType+" ("+a.name+")");return""};
neutron.dashboard.controllers.designs_pane.Base.prototype._createVersionNumberButton=function(a,b){b.versionNumberNode=null;if(!0===a.allowedDetails){var c="V...";!0==goog.isDefAndNotNull(a.version)&&(c="V"+a.version);b.versionNumberNode=goog.dom.createDom("div",{"class":"versionNumber"},c);(goog.dom.getElementByClass("container",b)||b).appendChild(b.versionNumberNode)}};
neutron.dashboard.controllers.designs_pane.Base.prototype._createReleasedIndicator=function(a,b){b.releasedIndicatorNode=null;!0===a.allowedDetails&&(console.log("--------------- NODE DATA ----------------"),console.log(a.released),goog.isDefAndNotNull(a.state)&&"RELEASED"===a.state&&(b.releasedIndicatorNode=goog.dom.createDom("div",{"class":"releasedVersion"},a.state),(goog.dom.getElementByClass("container",b)||b).appendChild(b.releasedIndicatorNode)))};
neutron.dashboard.controllers.designs_pane.Base.prototype._createECMSpinner=function(a){var b=goog.dom.createDom("div",{"class":"ecmSpinner"});a.appendChild(b);a.ecmSpinnerNode=b;goog.style.showElement(a.ecmSpinnerNode,!1)};
neutron.dashboard.controllers.designs_pane.Base.prototype.showECMSpinner=function(a,b){b?this._parentObject.addECMSpinningDesign(a):this._parentObject.removeECMSpinningDesign(a);var c=this._parentObject.getDesignHtmlElementById(a);goog.isDefAndNotNull(c)&&(b?(goog.isDefAndNotNull(c.ecmSpinnerNode)&&goog.style.showElement(c.ecmSpinnerNode,!0),goog.isDefAndNotNull(c.versionNumberNode)&&goog.dom.classes.add(c.versionNumberNode,"hide")):(goog.isDefAndNotNull(c.ecmSpinnerNode)&&goog.style.showElement(c.ecmSpinnerNode,
!1),goog.isDefAndNotNull(c.versionNumberNode)&&goog.dom.classes.remove(c.versionNumberNode,"hide")))};neutron.dashboard.controllers.designs_pane.Base.prototype.hideAllECMSpinners=function(){this._parentObject.clearECMSpinningDesigns();for(var a=goog.dom.getElementsByClass("ecmSpinner"),b=0;b<a.length;b++)goog.style.showElement(a[b],!1);a=goog.dom.getElementsByClass("versionNumber");for(b=0;b<a.length;b++)goog.dom.classes.remove(a[b],"hide")};
neutron.dashboard.controllers.designs_pane.Base.prototype._createProjectDesignNode=function(a,b){if(!(!1==goog.isDefAndNotNull(this._parentObject)||!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(b))){var c=a.id;!1==goog.isDefAndNotNull(a.id)&&console.warn("_createNode has NO valid id");var d=this._parentObject.getDesignHtmlElementById(c);if(!1===goog.isDefAndNotNull(d)){var e;e="datalistNode "+this._getMimeTypeClassName(a);var d=goog.dom.createDom("div",{"class":e}),f=goog.dom.createDom("div",
{"class":"container"});d.appendChild(f);if(!1==(!0===a.isFolder)){var g=goog.dom.createDom("img",{"class":"backgroundImage defaultImgBackground"});goog.events.listenOnce(g,goog.events.EventType.LOAD,function(){g.style.opacity="1"});f.appendChild(g);d._nd_image=g}else e="folder",goog.isDefAndNotNull(a.mimeType)&&"folder_new"!=a.mimeType&&(e="folderUp"),g=goog.dom.createDom("div",{"class":e}),f.appendChild(g);e=goog.dom.createDom("div",{"class":!1==this._isOffline?"descriptionFrame":"offlineMode descriptionFrame"});
f.appendChild(e);d._nd_descframe=e;var h=goog.dom.createDom("div",{"class":"descriptionText"});e.appendChild(h);d._nd_text=h;h=goog.dom.createDom("div",{"class":"descriptionTextDetail"});e.appendChild(h);d._nd_text_detail=h;h=goog.dom.createDom("div",{"class":"fileType"});e.appendChild(h);this._createReleasedIndicator(a,d);this._createVersionNumberButton(a,d);this._createECMSpinner(d);!0===this._isOffline&&(h=goog.dom.createDom("div",{"class":"descriptionText"}),e.appendChild(h),d._nd_proj_text=h,
neutron.dashboard.invoker.supportsBranching()&&(goog.isDefAndNotNull(a.branchName)&&""!=a.branchName)&&(h=goog.dom.createDom("div",{"class":"branchColor"}),e.appendChild(h),d._nd_branch_color=h,h=goog.dom.createDom("div",{"class":"branchName"}),e.appendChild(h),d._nd_branch_text=h,goog.dom.classes.add(e,"supportBranching")));e=goog.dom.createDom("div",{"class":"errorMessage"});d._errorMessage=goog.dom.createDom("div",{"class":"content"});e.appendChild(d._errorMessage);f.appendChild(e);b.appendChild(d);
this._parentObject.addDesignHtmlElement(c,a,d);this._parentObject.getECMSpinningDesigns()[c]&&this.showECMSpinner(c,!0)}return d}};
neutron.dashboard.controllers.designs_pane.Base.prototype._createSearchNode=function(a,b){var c=a.id,d=goog.dom.createDom("div",{"class":"datalistNode"}),e=goog.dom.createDom("div",{"class":"container"});d.appendChild(e);var f=goog.dom.createDom("img",{"class":"backgroundImage defaultImgBackground"});goog.events.listenOnce(f,goog.events.EventType.LOAD,function(){f.style.opacity="1"});e.appendChild(f);d._nd_image=f;var g=goog.dom.createDom("div",{"class":"descriptionFrame"});e.appendChild(g);d._nd_descframe=
g;var h=goog.dom.createDom("div",{"class":"descriptionText"});g.appendChild(h);d._nd_text=h;var k=neutron.dashboard.invoker.supportsBranching(),l=k&&!0===goog.isDefAndNotNull(a.branchName)&&""!=a.branchName,h=goog.dom.createDom("div",{"class":"descContainer"});if(!0===goog.isDefAndNotNull(a.projectName)&&""!=a.projectName){var m=goog.dom.createDom("div",{"class":"searchItemTextDetail"});h.appendChild(m);d._nd_proj_text=m}!0===l?(m=goog.dom.createDom("div",{"class":"searchItemTextDetail rebnd"}),m.innerText=
"("):(m=goog.dom.createDom("div",{"class":"searchItemTextDetail rebnd"}),m.innerText="");h.appendChild(m);!0===k&&(!0===goog.isDefAndNotNull(a.branchColor)&&""!=a.branchColor)&&(k=goog.dom.createDom("div",{"class":"branchColorContainer"}),m=goog.dom.createDom("div",{"class":"branchColor"}),k.appendChild(m),h.appendChild(k),d._nd_branch_color=m);!0===l&&(k=goog.dom.createDom("div",{"class":"searchItemTextDetail rebnd"}),h.appendChild(k),d._nd_branch_text=k);!0===l&&(l=goog.dom.createDom("div",{"class":"searchItemTextDetail"}),
l.innerText=")",h.appendChild(l));g.appendChild(h);h=goog.dom.createDom("div",{"class":"descriptionTextDetail search"});g.appendChild(h);d._nd_text_detail=h;h=goog.dom.createDom("div",{"class":"fileType"});g.appendChild(h);this._createReleasedIndicator(a,d);this._createVersionNumberButton(a,d);this._createECMSpinner(d);g=goog.dom.createDom("div",{"class":"errorMessage"});d._errorMessage=goog.dom.createDom("div",{"class":"content"});g.appendChild(d._errorMessage);e.appendChild(g);b.appendChild(d);
this._parentObject.addDesignHtmlElement(c,a,d);return d};
neutron.dashboard.controllers.designs_pane.Base.prototype._createNode=function(a,b){if(!(!1==goog.isDefAndNotNull(this._parentObject)||!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(b))){var c=this._parentObject.isInSearchMode();!1==goog.isDefAndNotNull(a.id)&&console.warn("_createNode has NO valid id");var d=this._parentObject.getDesignHtmlElementById(a.id);if(!1==goog.isDefAndNotNull(d)){var d=c&&!1==this._isOffline?this._createSearchNode(a,b):this._createProjectDesignNode(a,b),e=this;setTimeout(function(){e._setNodeOpacity(d,
a)},50)}this._updateNode(a,d)}};
neutron.dashboard.controllers.designs_pane.Base.prototype._setNodeOpacity=function(a,b){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(b))){var c="1.0",d=goog.isDefAndNotNull(b.isFolder)&&!0===b.isFolder;neutron.dashboard.invoker.online()?d?c="1.0":neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.CACHE_VIEW)&&(c=this._parentObject.getCacheContents(!1),c=goog.isDefAndNotNull(c)&&c[b.versionUrn]?"1.0":"0.5"):goog.isDefAndNotNull(b.existsOnLocal)&&!1===
b.existsOnLocal&&(c="0.5");(goog.dom.getElementByClass("container",a)||a).style.opacity=c}};
neutron.dashboard.controllers.designs_pane.Base.prototype._updateNode=function(a,b){if(a){var c=a.id;b.dataset.mimeType=a.mimeType;this._setNodeOpacity(b,a);var d=this._getMimeTypeClassName(a);0<d.length&&!goog.dom.classes.has(b,d)&&goog.dom.classes.add(b,d);if(goog.isDefAndNotNull(b._nd_image)){d="";if(goog.isDefAndNotNull(a.thumbnail)&&a.thumbnail.length){if(d=a.thumbnail,0!=d.search("data:image/png;base64")){var e=encodeURIComponent(d);e!=d&&(d="file:///"+e+"?"+(new Date).getTime())}}else goog.isDefAndNotNull(b._nd_image.src)&&
(b._nd_image.src.length&&0==b._nd_image.src.search("data:image/png;base64"))&&(d=b._nd_image.src);!0==goog.isDefAndNotNull(d)&&""!=d&&goog.dom.classes.remove(b._nd_image,"defaultImgBackground");b._nd_image.src=d}goog.isDefAndNotNull(b._nd_text)&&(d=a.name,!0==goog.isDefAndNotNull(this._parentObject._renamingItems)&&goog.object.containsKey(this._parentObject._renamingItems,a.id)&&(e=this._parentObject._renamingItems[a.id],e!=d&&(console.log('_updateNode - "'+a.id+'" is renaming - using name "'+e+'", old name is: "'+
a.name+'"'),d=e)),!0==this._isOffline?b._nd_text.innerHTML="<b>"+d+"</b>":"fld:new"==c?!0==goog.string.isEmpty(b._nd_text.innerText)&&(b._nd_text.innerText=d):b._nd_text.innerHTML=d);goog.isDefAndNotNull(b._nd_proj_text)&&(b._nd_proj_text.innerText=a.projectName);goog.isDefAndNotNull(b._nd_branch_text)&&(b._nd_branch_text.innerText=a.branchName,goog.isDefAndNotNull(a.branchColor)&&goog.isString(a.branchColor)&&(b._nd_branch_color.style.borderColor="#"+a.branchColor));if(goog.isDefAndNotNull(b._nd_text_detail)&&
(c="",!0===goog.isDefAndNotNull(a.lastModified)&&(d=neutron.dashboard.utils.FormatUtils.getDateTimeForExpand(a.lastModified),c+=""+d),!0===goog.isDefAndNotNull(a.lastUpdateName)&&(d=a.lastUpdateName,c+=goog.string.format(_LCLZ(" by %s"),d)),0==b._nd_text_detail.innerHTML.length||0<b._nd_text_detail.innerHTML.length&&0<c.length))b._nd_text_detail.innerHTML=c;if(!1===goog.isDefAndNotNull(b.versionNumberNode)&&!0===a.allowedDetails&&(this._createVersionNumberButton(a,b),goog.isDefAndNotNull(this._parentObject))){var f=
this._parentObject;this._parentObject._addEventHandlerKey(this._DESIGN_INFO_CLICK_EVENT_KEY+a.id,goog.events.listen(b.versionNumberNode,goog.events.EventType.CLICK,function(b){f._onVersionBtnClick(b,a)}))}!0===goog.isDefAndNotNull(b.versionNumberNode)&&!0===goog.isDefAndNotNull(a.version)&&(b.versionNumberNode.innerHTML="V"+a.version);!0===a.allowedDetails&&(!0===goog.isDefAndNotNull(a.contentAvailable)&&!1===a.contentAvailable?!1===goog.isDefAndNotNull(b.contentNotAvailableNode)&&(b.contentNotAvailableNode=
goog.dom.createDom("div",{"class":"CNA tooltipParent"}),c=goog.dom.createDom("div",{"class":"tooltip CNAtooltip"},_LCLZ("File is not available at the moment")),b.contentNotAvailableNode.appendChild(c),b.appendChild(b.contentNotAvailableNode)):!0===goog.isDefAndNotNull(b.contentNotAvailableNode)&&(b.removeChild(b.contentNotAvailableNode),b.contentNotAvailableNode=null))}};
neutron.dashboard.controllers.designs_pane.Base.prototype._renderNode=function(a,b,c,d,e,f){!1==goog.isDefAndNotNull(this._parentObject)||(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(b))||(a=this._parentObject.getDesignHtmlElementById(a.id),a._index=e,goog.array.insert(this._itemsOrderArray,a),!0==goog.isDefAndNotNull(a)&&(a.style.left=c+"px",a.style.top=d+"px",!0==goog.isDefAndNotNull(f)?a.style.width=f+"px":a.style.width="",!0==goog.isDefAndNotNull(a._spinner)&&!0==goog.isDefAndNotNull(a._nd_image)&&
a._spinner.dispatchEvent(new neutron.dashboard.events.Update(a,a._nd_image.clientLeft,a._nd_image.clientTop,a._nd_image.clientWidth,a._nd_image.clientHeight))))};neutron.dashboard.controllers.designs_pane.Base.prototype.updateElementSize=function(){var a=this._parentObject.htmlNode(),b=this._parentObject.area();!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(b)||(a.style.top=b.top+"px",a.style.left=b.left+"px",a.style.width=b.width+"px",a.style.height=b.height+"px")};
neutron.dashboard.controllers.designs_pane.Base.prototype.getFirstItemInRange=function(){var a=null;!0==goog.isDefAndNotNull(this._itemsOrderArray)&&!1==goog.array.isEmpty(this._itemsOrderArray)&&goog.array.some(this._itemsOrderArray,function(b){return!1==goog.dom.classes.has(b,"folderNode")?(a=b,!0):!1});return a};neutron.dashboard.controllers.designs_pane.Base.prototype.getElementInRangeAt=function(a){return this._itemsOrderArray[a]};
neutron.dashboard.controllers.designs_pane.Base.prototype.getElementsInRange=function(a,b){if(!0==goog.array.isEmpty(this._itemsOrderArray))return[];if(a>b){var c=a;a=b;b=c}0>a&&(a=0);return goog.array.slice(this._itemsOrderArray,a,b+1)};goog.async.Throttle=function(a,b,c){goog.Disposable.call(this);this.listener_=a;this.interval_=b;this.handler_=c;this.callback_=goog.bind(this.onTimer_,this)};goog.inherits(goog.async.Throttle,goog.Disposable);goog.Throttle=goog.async.Throttle;goog.async.Throttle.prototype.shouldFire_=!1;goog.async.Throttle.prototype.pauseCount_=0;goog.async.Throttle.prototype.timer_=null;goog.async.Throttle.prototype.fire=function(){!this.timer_&&!this.pauseCount_?this.doAction_():this.shouldFire_=!0};
goog.async.Throttle.prototype.stop=function(){this.timer_&&(goog.Timer.clear(this.timer_),this.timer_=null,this.shouldFire_=!1)};goog.async.Throttle.prototype.pause=function(){this.pauseCount_++};goog.async.Throttle.prototype.resume=function(){this.pauseCount_--;!this.pauseCount_&&(this.shouldFire_&&!this.timer_)&&(this.shouldFire_=!1,this.doAction_())};goog.async.Throttle.prototype.disposeInternal=function(){goog.async.Throttle.superClass_.disposeInternal.call(this);this.stop()};
goog.async.Throttle.prototype.onTimer_=function(){this.timer_=null;this.shouldFire_&&!this.pauseCount_&&(this.shouldFire_=!1,this.doAction_())};goog.async.Throttle.prototype.doAction_=function(){this.timer_=goog.Timer.callOnce(this.callback_,this.interval_);this.listener_.call(this.handler_)};neutron.dashboard.controllers.designs_pane.Tile=function(a,b){neutron.dashboard.controllers.designs_pane.Base.call(this,a,b);var c=this;this._updateThrottle=new goog.async.Throttle(function(){goog.async.nextTick(c._doUpdate,c)},500,this);this._NODE_MAX_SIZE=168;this._MIN_NODES_ON_ROW=2;this._SCROLL_BAR_SPACE=7;this._NEXT_SEARCH_RESULTS_BUTTON_HEIGHT=27};goog.inherits(neutron.dashboard.controllers.designs_pane.Tile,neutron.dashboard.controllers.designs_pane.Base);
neutron.dashboard.controllers.designs_pane.Tile.prototype._nodeSpace=function(a){return this._ITEM_SPACE};neutron.dashboard.controllers.designs_pane.Tile.prototype._nodeSize=function(a){return this._NODE_MAX_SIZE};neutron.dashboard.controllers.designs_pane.Tile.prototype._nodesPositionOnRow=function(a){a=[];a.push(0);a.push(this._NODE_MAX_SIZE+this._ITEM_SPACE);return a};
neutron.dashboard.controllers.designs_pane.Tile.prototype._doUpdate=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a))if(!0==this._parentObject.updateOnlySize())this.updateElementSize();else{console.__lp("Tile controller - render - Start");var b=a.width,c=this,a=c._parentObject.htmlNode();c._updateClassName();var d=c._parentObject.getDesignExpandedPopup(),e=c._parentObject.getDesignExpandedPopupDataId(),f=!1,g=c._parentObject.getDesignsData(),
h=[];!0==goog.isDefAndNotNull(g)&&(h=h.concat(g));var g=c._nodesPositionOnRow(b),k=g.length,l=c._nodeSize(b),m=c._nodeSpace(l),n=0,b=0;c.updateElementSize();goog.array.clear(c._itemsOrderArray);for(var q=0;q<h.length;q++){0==n&&!0==f&&(!0==goog.isDefAndNotNull(d)&&(b=b-m+c._EXPAND_POPUP_TOP_MARGIN,d.dispatchEvent(new neutron.dashboard.events.Update(a,0,b,c._EXPAND_POPUP_WIDTH,-1))),b+=m+d.height(),f=!1);var p=h[q];if(!1!==goog.isDefAndNotNull(p))if(0===p.id.indexOf("marker:"))0!=n&&(b+=m+l),n=c._parentObject.getDesignHtmlElementById(p.id),
!1==goog.isDefAndNotNull(n)&&(n=goog.dom.createDom("div",{"class":"marker"}),a.appendChild(n),c._parentObject.addDesignHtmlElement(p.id,null,n)),n.style.top=b+"px",b+=42-c._ITEM_SPACE,n=0;else{var r=g[n];c._createNode(p,a);c._renderNode(p,a,r,b,q);e==p.id&&(f=!0,!0==goog.isDefAndNotNull(d)&&d.arrowPosition(r+135));n++;n>=k&&(n=0,b+=m+l)}}0!=n&&(b+=m+l);!0==f&&(!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(a,0,b,c._EXPAND_POPUP_WIDTH,-1)),b+=m+d.height(),f=!1);c._parentObject.downloadAttributesForVisibleItems();
d=c._parentObject.nextSearchResultsBtn();!0==goog.isDefAndNotNull(d)&&(d.dispatchEvent(neutron.dashboard.events.EventType.HIDE),!0==c._parentObject.areThereSomeOtherSearchResults()?d.dispatchEvent(new neutron.dashboard.events.Update(a,0,b,c._EXPAND_POPUP_WIDTH,c._NEXT_SEARCH_RESULTS_BUTTON_HEIGHT)):d.dispatchEvent(neutron.dashboard.events.EventType.HIDE));setTimeout(function(){c._parentObject.scrollToDetail()},250);c.dispatchEvent(neutron.dashboard.events.EventType.FINISHED)}}};
neutron.dashboard.controllers.designs_pane.Tile.prototype._update=function(){this._updateThrottle.fire()};neutron.dashboard.controllers.designs_pane.Tile.prototype._remove=function(){this._parentObject=null};neutron.dashboard.controllers.designs_pane.Tile.prototype.itemsCountPerLine=function(){return 2};neutron.dashboard.controllers.designs_pane.Tile.prototype.oneItemHeight=function(){return this._NODE_MAX_SIZE+this._ITEM_SPACE};
neutron.dashboard.controllers.designs_pane.Tile.prototype.numberItemsPerPage=function(){var a=this._parentObject.area();return!1==goog.isDefAndNotNull(a)?0:2*Math.ceil(a.height/(this._NODE_MAX_SIZE+this._ITEM_SPACE))};neutron.dashboard.events.WaitCursor=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.WAIT_CURSOR;this.show=a;this.mark=b};goog.inherits(neutron.dashboard.events.WaitCursor,goog.events.Event);neutron.dashboard.utils.Then=function(a,b,c){this._numberOfTicks=a;this._callback=b;this._callbackThis=c};neutron.dashboard.utils.Then.prototype.tick=function(){--this._numberOfTicks;0>=this._numberOfTicks&&!0==goog.isDefAndNotNull(this._callback)&&this._callback.call(this._callbackThis)};neutron.dashboard.events.UpdateAfterRename=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.UPDATE_AFTER_RENAME;this.newName=b;this.itemId=a};goog.inherits(neutron.dashboard.events.UpdateAfterRename,goog.events.Event);neutron.dashboard.controls.Versions=function(a,b){neutron.dashboard.BaseClass.call(this);this._fileId=a.id;this._fileData=a;this._parent=b;this.timeout=100;this._shortCnt=3;this._revisionsData=this._versionItems=null;this._VERSION_OPEN_EVENT_KEY_GROUP="VERSION_OPEN_EVENT_KEY_GROUP";this._VERSION_PROMOTE_EVENT_KEY_GROUP="_VERSION_PROMOTE_EVENT_KEY_GROUP";this._SHOW_ALL_VERSIONS_CLICK="_SHOW_ALL_VERSIONS_CLICK";this._NUMBER_OF_ITEMS_INITIALLY_VISIBLED=3;this._promotingIds=this._versions=null;this._init()};
goog.inherits(neutron.dashboard.controls.Versions,neutron.dashboard.BaseClass);neutron.dashboard.controls.Versions.prototype._init=function(){this._connectEvents();this._processFile()};neutron.dashboard.controls.Versions.prototype.setFileData=function(a,b){this._fileId=a.id;this._fileData=a;this._processFile()};
neutron.dashboard.controls.Versions.prototype._updateThumbnails=function(){var a=this,b={ids:[]};goog.object.forEach(a._versionItems,function(a,d){goog.array.insert(b.ids,d)});neutron.dashboard.invoker.getThumbnails(b,function(b,d){if(b&&!goog.isArray(b)&&(!0==goog.isDefAndNotNull(b.thumb_status)&&!0==goog.isDefAndNotNull(b.thumb)&&!0==goog.isDefAndNotNull(b.id))&&(console.log("_onGetThumbnails... - "+d+" - "+b.id+" - "+b.thumb_status),("ok"==b.thumb_status||"local_only"==b.thumb_status)&&0<b.thumb.length)){var e=
goog.object.get(a._versionItems,b.id),e=goog.dom.getElementByClass("itemThumbnail",e);goog.isDefAndNotNull(e)&&(e.style.backgroundImage='url("'+b.thumb+'")')}},a)};neutron.dashboard.controls.Versions.prototype._connectVersionOpen=function(a,b,c){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(c))){var d=this;a=goog.events.listen(a,goog.events.EventType.CLICK,function(a){d._onVersionOpen(b,c,a)});this._addEventHandlerKeyToGroup(this._VERSION_OPEN_EVENT_KEY_GROUP,c,a)}};
neutron.dashboard.controls.Versions.prototype._connectVersionPromote=function(a,b,c){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(c))){var d=this;a=goog.events.listen(a,goog.events.EventType.CLICK,function(a){d._onVersionPromote(b,c,a)});this._addEventHandlerKeyToGroup(this._VERSION_PROMOTE_EVENT_KEY_GROUP,c,a)}};neutron.dashboard.controls.Versions.prototype._remove=function(){this._disconnectEvents()};neutron.dashboard.controls.Versions.prototype._connectEvents=function(){};
neutron.dashboard.controls.Versions.prototype._disconnectEvents=function(){this._disconnectEventsGroup(this._VERSION_OPEN_EVENT_KEY_GROUP);this._disconnectEventsGroup(this._VERSION_PROMOTE_EVENT_KEY_GROUP);this._disconnectEventByEventName(this._SHOW_ALL_VERSIONS_CLICK)};
neutron.dashboard.controls.Versions.prototype._processFile=function(){var a=this;!1==goog.isDefAndNotNull(this._fileId)?console.log("ExpandPopup - file does not exist!"):(this._disconnectEvents(),neutron.dashboard.invoker.getFileVersionsEx(this._fileId,function(b){goog.isDefAndNotNull(b)&&(goog.isDefAndNotNull(b.id)&&b.id==a._fileId&&goog.isDefAndNotNull(b.versions))&&(console.log("Nova data: "+b.id+" - "+a._fileId),a._revisionsData=b.versions,a._updateVersionsData())}))};
neutron.dashboard.controls.Versions.prototype._onVersionOpen=function(a,b,c){console.log("Open version: "+b+" of "+a);this._parent.parent().showProgressOnFileById(a,!0);this._parent.parent().openDocumentInFusion(a,null,null,"lastVersion"!=b?b:null)};neutron.dashboard.controls.Versions.prototype._onVersionPromote=function(a,b,c){console.log("Promote version: "+b+" of "+a);this._doPromote(a,b)};
neutron.dashboard.controls.Versions.prototype._doPromote=function(a,b){var c=this;this._parent.parent().scrollToItemTop(a,!1);this._parent.parent().showProgressOnFileById(a,!0);neutron.dashboard.invoker.promoteVersion({file:a,version:b},function(b,e){if(!(!1==goog.isDefAndNotNull(b)||!1==goog.isDefAndNotNull(e)||e==neutron.dashboard.constants.Status.PROGRESS))if(!1==goog.isDefAndNotNull(b.status)||"promoted"!=b.status)console.log("Promote status is "+b.status),c._parent.parent().showProgressOnFileById(a,
!1),c._parent.parent().showErrorOnFileById(_LCLZ("Promote is unavailable"),a);else if(console.log("Promoted."),c._parent.parent().showProgressOnFileById(a,!1),c._fileId==a&&null!=b.fileData){var f=b.fileData;f.name&&c._parent.dispatchEvent(new neutron.dashboard.events.UpdateAfterRename(a,f.name));c._parent.parent().updateItemData(f.id,f);c._processFile();c._parent.refreshData();c._parent.parent().downloadThumbnailsFor(a)}})};
neutron.dashboard.controls.Versions.prototype._updateVersionsData=function(){var a=this;if(!1!=goog.isDefAndNotNull(a._revisionsData)){var b=a._revisionsData.length;a._versionItems={};var c=!1;goog.array.sort(a._revisionsData,function(a,b){return goog.array.defaultCompare(a.versionNumber,b.versionNumber)});var d=!1,e=neutron.dashboard.invoker.allowedActions([this._fileData]);!0===goog.isDefAndNotNull(e)&&goog.array.forEach(e,function(a){!0===goog.isDefAndNotNull(a)&&!0===goog.isDefAndNotNull(a.id)&&
"openItem"===a.id&&(d=!0)});for(var f=0<b?a._revisionsData[b-1].lineageUrn:"",g=0,e=0,h=goog.dom.createDom("div",{"class":"list"}),k=b-1;0<=k;k--){var l=a._revisionsData[k];if(l.lineageUrn==f){c=l.lastModifiedTime;c=Date.parse(c);isNaN(c)&&(c=l.lastModifiedTime.replace("+0000",""),c=Date.parse(c));var c=neutron.dashboard.utils.FormatUtils.formatDateAndTime(c),c=goog.string.format(_LCLZ("<span>%s</span> by <span>%s</span>"),c,l.displayName),m=!0;!0==goog.isDefAndNotNull(l.contentAvailable)&&!1===l.contentAvailable&&
(m=!1);var n=l.description,q=[];m&&0<g&&q.push({cmdId:"cmdPromote",tooltip:_LCLZ("Promote")});m&&d&&q.push({cmdId:"cmdOpen",tooltip:_LCLZ("Open")});n=a._parent._createListItem({idx:l.versionNumber,state:l.state},c,n,q,null);h.appendChild(n);goog.object.add(a._versionItems,l.urn,n);0===g&&(e=l.versionNumber);c=!0;g++;g>a._NUMBER_OF_ITEMS_INITIALLY_VISIBLED&&n.classList.add("initHidden");m=goog.dom.getElementByClass("cmdPromote",n);goog.isDefAndNotNull(m)&&a._connectVersionPromote(m,a._fileId,l.urn);
m=goog.dom.getElementByClass("cmdOpen",n);goog.isDefAndNotNull(m)&&a._connectVersionOpen(m,a._fileId,k==b-1?"lastVersion":l.urn)}}g>a._NUMBER_OF_ITEMS_INITIALLY_VISIBLED&&(h.classList.add("showSubset"),b=goog.string.format(_LCLZ("Show all %s versions"),g),b=goog.dom.createDom("div",{"class":"showAll l_column"},b),m=goog.dom.createDom("div",{"class":"showAllItem listItem l_layout l_vAlignItemsMiddle"},b),h.appendChild(m),a._addEventHandlerKey(a._SHOW_ALL_VERSIONS_CLICK,goog.events.listen(b,goog.events.EventType.CLICK,
function(b){h.classList.remove("showSubset");b.preventDefault();b.stopPropagation();a._parent._versionsPaneLoaded();return!1})));c&&(9<e?99<e?h.classList.add("threenum"):h.classList.add("twonum"):h.classList.add("onenum"),goog.dom.removeChildren(a._parent._versionsPaneNode()),a._parent._versionsPaneNode().appendChild(h),this._updateThumbnails());a._parent._versionsPaneLoaded()}};
neutron.dashboard.controls.Versions.prototype._onReleaseVersion=function(a,b,c){console.log("Release version: "+b+" of "+a);this._doReleaseVersion(a,b)};neutron.dashboard.controls.Versions.prototype._doReleaseVersion=function(a,b){};neutron.dashboard.controls.ExpandPopup=function(a,b){neutron.dashboard.RenderableObject.call(this);this._tabSelectorHtmlNode=this._tabCtrl=this._inaccessibleFileItemDetailsNode=this._storedHtmlNode=this._lastByHtmlNode=this._lastUpdateHtmlNode=this._inUseHtmlNode=this._a360HtmlNode=this._fileTypeHtmlNode=this._fileNameHtmlNode=this._topInfoHtmlNode=this._contentContainerHtmlNode=this._topInfoHtmlNode=null;this._tabsContent=[];this._tabsPane=[];this._tabHeaderItems=[];this._drawingsTabIndex=-1;this._firstUpdate=
!0;this._parent=b;this._ITEM_DETAILS_EVENT_KEY="ITEM_DETAILS_"+goog.events.EventType.CLICK;this._VERSIONS_EVENT_KEY="VERSIONS_"+goog.events.EventType.CLICK;this._ITEM_NAME_UPDATE_KEY="UPDATE_ITEM_NAME";this._INACCESSIBLE_FILE_ITEM_DETAILS_EVENT_KEY="_INACCESSIBLE_FILE_ITEM_DETAILS"+goog.events.EventType.CLICK;this._versions=null;this._online=!1;this._init();this._savedFile=a};goog.inherits(neutron.dashboard.controls.ExpandPopup,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.ExpandPopup.prototype._init=function(){this._online=neutron.dashboard.invoker.online()};neutron.dashboard.controls.ExpandPopup.prototype.parent=function(){return this._parent};neutron.dashboard.controls.ExpandPopup.prototype.setData=function(a,b){this._processFile(a);this._clear()};
neutron.dashboard.controls.ExpandPopup.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"expandPopup"});this._contentContainerHtmlNode=goog.dom.createDom("div",{"class":"contentContainer"});this._htmlNode.appendChild(this._contentContainerHtmlNode);this._topInfoHtmlNode=goog.dom.createDom("div",{"class":"topInfo l_layout l_verticalLayout"});this._contentContainerHtmlNode.appendChild(this._topInfoHtmlNode);this._fileNameHtmlNode=goog.dom.createDom("div",{"class":"fileName l_column ft_threeDots"});
this._topInfoHtmlNode.appendChild(this._fileNameHtmlNode);var b=goog.dom.createDom("div",{"class":"l_column l_layout"});this._fileTypeHtmlNode=goog.dom.createDom("div",{"class":"docType l_column l_flexible"});b.appendChild(this._fileTypeHtmlNode);this._a360HtmlNode=goog.dom.createDom("div",{"class":"linkA360 l_column"},_LCLZ("Open Details on Web"));b.appendChild(this._a360HtmlNode);this._topInfoHtmlNode.appendChild(b);this._inUseHtmlNode=goog.dom.createDom("div",{"class":"inUse l_column ft_threeDots"});
this._topInfoHtmlNode.appendChild(this._inUseHtmlNode);this._lastUpdateHtmlNode=goog.dom.createDom("div",{"class":"lastUpdate l_column ft_threeDots"});this._topInfoHtmlNode.appendChild(this._lastUpdateHtmlNode);this._lastByHtmlNode=goog.dom.createDom("div",{"class":"by l_column ft_threeDots"});this._topInfoHtmlNode.appendChild(this._lastByHtmlNode);this._storedHtmlNode=goog.dom.createDom("div",{"class":"stored l_layout l_flex_wrap"});this._topInfoHtmlNode.appendChild(this._storedHtmlNode);this._tabHeaderItems=
[];this._tabCtrl=goog.dom.createDom("div",{"class":"tabCtrl l_column l_layout l_verticalLayout"});this._contentContainerHtmlNode.appendChild(this._tabCtrl);this._tabHeader=b=goog.dom.createDom("div",{"class":"header l_column"});var c=goog.dom.createDom("div",{"class":"selectable","data-title":_LCLZ("Versions")});b.appendChild(c);this._tabHeaderItems.push(c);c=goog.dom.createDom("div",{"class":"selectable","data-title":_LCLZ("Uses")});b.appendChild(c);this._tabHeaderItems.push(c);c=goog.dom.createDom("div",
{"class":"selectable","data-title":_LCLZ("Used In")});b.appendChild(c);this._tabHeaderItems.push(c);c=goog.dom.createDom("div",{"class":"selectable","data-title":_LCLZ("Drawings")});b.appendChild(c);this._drawingsHeaderTabIndex=this._tabHeaderItems.push(c)-1;this._tabSelectorHtmlNode=goog.dom.createDom("div",{"class":"selector tabHeaderAnim"});b.appendChild(this._tabSelectorHtmlNode);this._tabCtrl.appendChild(b);b=function(a,b){var c=goog.dom.createDom("div",{"class":"tab load "+b}),d=goog.dom.createDom("div",
{"class":"centercenter"}),e=goog.dom.createDom("div",{"class":"loader"});e.appendChild(goog.dom.createDom("div",{"class":"spin"}));d.appendChild(e);d.appendChild(goog.dom.createDom("div",{"class":"msg"},a));e=goog.dom.createDom("div",{"class":"splash"});e.appendChild(d);c.appendChild(e);return c};this._tabsContent=[];this._tabsPane=[];var c=goog.dom.createDom("div",{"class":"etabs l_column"}),d=b(" ","tabVersions"),e=goog.dom.createDom("div",{"class":"content"});d.appendChild(e);this._tabsPane.push(e);
this._tabsContent.push(d);c.appendChild(d);d=b(_LCLZ("This item does not reference any other designs."),"tabUses");e=goog.dom.createDom("div",{"class":"content"});d.appendChild(e);this._tabsPane.push(e);this._tabsContent.push(d);c.appendChild(d);d=b(_LCLZ("This item is not referenced by any other designs."),"tabUsedIn");e=goog.dom.createDom("div",{"class":"content"});d.appendChild(e);this._tabsPane.push(e);this._tabsContent.push(d);c.appendChild(d);d=b(_LCLZ("No drawings for this design."),"tabDrawings");
e=goog.dom.createDom("div",{"class":"content"});d.appendChild(e);this._tabsPane.push(e);this._tabsContent.push(d);c.appendChild(d);this._tabCtrl.appendChild(c);a.appendChild(this._htmlNode);this._clear();this._connectEvents();goog.isDefAndNotNull(this._savedFile)&&(a=this._savedFile,this._savedFile=null,this._processFile(a))};neutron.dashboard.controls.ExpandPopup.prototype._versionsPaneNode=function(){return this._tabsPane[0]};
neutron.dashboard.controls.ExpandPopup.prototype._drawingsHeaderNode=function(){return this._tabHeaderItems[this._drawingsHeaderTabIndex]};neutron.dashboard.controls.ExpandPopup.prototype._versionsPaneLoaded=function(){this._updatePaneState(0);this.parent()._update()};neutron.dashboard.controls.ExpandPopup.prototype._updatePaneState=function(a){this._tabsContent[a].classList.remove("load");this._tabsPane[a].hasChildNodes()?this._tabsContent[a].classList.remove("empty"):this._tabsContent[a].classList.add("empty")};
neutron.dashboard.controls.ExpandPopup.prototype._clear=function(){this._disconnectEventsGroup("Related");this._online?this._htmlNode.classList.remove("offline"):this._htmlNode.classList.add("offline");this._fileNameHtmlNode.innerHTML="&nbsp;";this._fileTypeHtmlNode.innerHTML="&nbsp;";this._inUseHtmlNode.innerHTML=_LCLZ("In use by <span></span>");this._inUseHtmlNode.style.visibility="hidden";this._lastByHtmlNode.innerHTML=_LCLZ("By <span></span>");this._lastUpdateHtmlNode.innerHTML=_LCLZ("Last updated <span></span>");
goog.array.forEach(this._tabsContent,function(a){a.classList.remove("empty");a.classList.add("load")},this);goog.array.forEach(this._tabsPane,function(a){goog.dom.removeChildren(a)},this);this._selectPage(0)};
neutron.dashboard.controls.ExpandPopup.prototype._selectPage=function(a){var b=null;goog.array.forEach(this._tabHeaderItems,function(c,d){d==a?(c.classList.add("selected"),b=c):c.classList.remove("selected")},this);var c=this._tabHeader.getBoundingClientRect(),d=b.getBoundingClientRect();this._tabSelectorHtmlNode.style.width=d.width+"px";this._tabSelectorHtmlNode.style.left=d.left-c.left+"px";this._tabSelectorHtmlNode.style.top=c.height-2+"px";goog.array.forEach(this._tabsContent,function(b,c){b.style.display=
c==a?"block":"none"},this);this.parent()._update()};neutron.dashboard.controls.ExpandPopup.prototype._fillIn=function(a,b){var c=a.getElementsByTagName("SPAN");c&&0<c.length&&(c[0].innerText=b)};
neutron.dashboard.controls.ExpandPopup.prototype._updateLastSavedNode=function(a){if(goog.isDefAndNotNull(this._fileTypeHtmlNode)){var b=neutron.dashboard.utils.FormatUtils.formatMimeDisplayName(this._itemData.mimeTypeDisplayName);this._fileTypeHtmlNode.innerHTML=b}goog.isDefAndNotNull(this._lastUpdateDisplayName)&&goog.isDefAndNotNull(this._lastByHtmlNode)&&this._fillIn(this._lastByHtmlNode,this._lastUpdateDisplayName);goog.isDefAndNotNull(this._itemData.lastModified)&&goog.isDefAndNotNull(this._lastUpdateHtmlNode)&&
(b=neutron.dashboard.utils.FormatUtils.formatDateAndTime(this._itemData.lastModified),this._fillIn(this._lastUpdateHtmlNode,b));(!1==goog.isDefAndNotNull(a)||!0==a)&&this._parent._update()};
neutron.dashboard.controls.ExpandPopup.prototype._update=function(){if(!(!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._itemData))&&!1!=goog.isDefAndNotNull(this._htmlNode)){this._fileNameHtmlNode.innerHTML=this._itemData.name;this._online=neutron.dashboard.invoker.online();this._updateLastSavedNode(!1);this._updateStoredInSection();this._updatePunchOutNode();if(!0==this._firstUpdate){var a=this;setTimeout(function(){a._htmlNode.classList.add("usePositionAnim")},250);this._firstUpdate=
!1}var b=this.area();this._htmlNode.style.top=b.top+"px";this._htmlNode.style.left=b.left+"px";this._htmlNode.style.width=b.width+"px"}};
neutron.dashboard.controls.ExpandPopup.prototype._remove=function(){!0==goog.isDefAndNotNull(this._versions)&&(this._versions.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._versions=null);neutron.dashboard.notifier.unregister(neutron.dashboard.constants.BrowserAPIConstants.GET_ITEM_DETAILS,this);neutron.dashboard.notifier.unregister(neutron.dashboard.constants.BrowserAPIConstants.SHOW_INACCESSIBLE_FILES_PUNCHOUT,this)};
neutron.dashboard.controls.ExpandPopup.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.GET_ITEM_DETAILS,this,this._onGetItemDetails);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.SHOW_INACCESSIBLE_FILES_PUNCHOUT,
this,this._onShowDetailsPunchout);!0==goog.isDefAndNotNull(this._a360HtmlNode)&&this._addEventHandlerKey(this._ITEM_DETAILS_EVENT_KEY,goog.events.listen(this._a360HtmlNode,goog.events.EventType.CLICK,function(b){a._onItemDetailsCLick(b)}));this._addEventHandlerKey(this._ITEM_NAME_UPDATE_KEY,goog.events.listen(this,neutron.dashboard.events.EventType.UPDATE_AFTER_RENAME,function(b){a._onItemRename(b)}));!0==goog.isDefAndNotNull(this._inaccessibleFileItemDetailsNode)&&this._addEventHandlerKey(this._INACCESSIBLE_FILE_ITEM_DETAILS_EVENT_KEY,
goog.events.listen(this._inaccessibleFileItemDetailsNode,goog.events.EventType.CLICK,function(b){a._onInaccessibleFileItemDetailsClick(b)}));var b=function(b){a._addEventHandlerKey("TabHeaderClick"+b,goog.events.listen(a._tabHeaderItems[b],goog.events.EventType.CLICK,function(d){a._selectPage(b);d.preventDefault();d.stopPropagation();return!1}))};b(0);b(1);b(2);b(3)};
neutron.dashboard.controls.ExpandPopup.prototype._onNeutronEvent=function(a){var b=this;if("documentOpened"==a.cmdId||"documentClosed"==a.cmdId){var c="documentClosed"==a.cmdId?3E3:300;a=goog.json.parse(a.cmdArgs);!0==goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(a.lineage)&&a.lineage===b._itemData.id&&setTimeout(function(){b.refreshData()},c)}};
neutron.dashboard.controls.ExpandPopup.prototype.hide=function(){this._firstUpdate=!0;!1!=goog.isDefAndNotNull(this._htmlNode)&&(this._htmlNode.style.height="0px")};neutron.dashboard.controls.ExpandPopup.prototype.arrowPosition=function(a){this._arrowLeft=a;goog.isDefAndNotNull(this._contentContainerHtmlNode)&&(200>a?(this._contentContainerHtmlNode.classList.remove("rightCol"),this._contentContainerHtmlNode.classList.add("leftCol")):(this._contentContainerHtmlNode.classList.remove("leftCol"),this._contentContainerHtmlNode.classList.add("rightCol")))};
neutron.dashboard.controls.ExpandPopup.prototype.height=function(){if(!1==goog.isDefAndNotNull(this._htmlNode))return 0;var a=this._htmlNode.getBoundingClientRect();console.log("ExpandPopup returned height: "+a.height);return a.height};
neutron.dashboard.controls.ExpandPopup.prototype._onItemRename=function(a){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.newName)||!1==goog.isDefAndNotNull(a.itemId))){var b=a.itemId;if(this._itemData.id==b)this._itemData.name=a.newName,!0==goog.isDefAndNotNull(this._fileNameHtmlNode)&&!0==goog.isDefAndNotNull(this._fileNameHtmlNode.innerHTML)&&(this._fileNameHtmlNode.innerHTML=a.newName);else{var c=goog.dom.getElementsByTagNameAndClass(null,"listItem",this._tabCtrl);goog.array.forEach(c,
function(c){!1!=goog.isDefAndNotNull(c)&&(c.hasAttribute("data-lineageurn")&&c.attributes["data-lineageurn"].nodeValue==b)&&(c=goog.dom.getElementByClass("itemTitle",c),goog.isDefAndNotNull(c)&&(c.innerHTML=a.newName))})}}};neutron.dashboard.controls.ExpandPopup.prototype._onItemDetailsCLick=function(a){!1==goog.isDefAndNotNull(this._itemData)||!1==goog.isDefAndNotNull(this._itemData.punchOutUrl)||(a=this._itemData.punchOutUrl,goog.isString(a)&&1<a.length&&neutron.dashboard.Application.instance.punchOut(a))};
neutron.dashboard.controls.ExpandPopup.prototype._onInaccessibleFileItemDetailsClick=function(a){!1==goog.isDefAndNotNull(this._itemData)||!1==goog.isDefAndNotNull(this._itemData.punchOutUrl)||neutron.dashboard.invoker.showInaccessibleFilesPunchout(this._itemData.id)};
neutron.dashboard.controls.ExpandPopup.prototype._updateInUseByField=function(a){var b=!1;if(goog.isDefAndNotNull(a)){for(var c=[],d=0;d<a.length;d++)c.push(a[d].name);0<c.length&&goog.isDefAndNotNull(this._inUseHtmlNode)&&(a=c.join(", "),this._fillIn(this._inUseHtmlNode,a),b=!0);goog.isDefAndNotNull(this._parent)&&(goog.isDefAndNotNull(this._parent._update)&&goog.isFunction(this._parent._update))&&this._parent._update()}this._inUseHtmlNode.style.visibility=b?"inherit":"hidden"};
neutron.dashboard.controls.ExpandPopup.prototype._proccessRelatedSection=function(a,b){var c=this,d=this._itemData.id;if(!(!1==goog.isDefAndNotNull(d)||!1==goog.isDefAndNotNull(b))&&d===b){var e={},d=function(a,b,d){a=c._createInaccessibleFileItem(a.length);d.appendChild(a);goog.object.set(e,"",a);c._tabsPane[b].appendChild(d)},f=function(a,b,d){var f=!1;goog.array.sortObjectsByKey(a,"fileName");for(var g=0;g<a.length;g++){var q=a[g];if(!goog.string.isEmpty(q.fileName)&&!goog.string.isEmpty(q.lineageurn)){var p=
neutron.dashboard.utils.FormatUtils.getDataBasedOnMimeType(q.mimeType),f=q.urn,r=q.outOfDate;goog.isString(r)&&(r="true"==r);var s=f.lastIndexOf("="),r={outOfDate:r,ver:f.substr(s+1)};r.outOfDate&&(r.tooltip=goog.string.format(_LCLZ("%s has out of date reference to %s"),c._itemData.name,q.fileName));s=[];s.push({cmdId:"cmdOpen",tooltip:_LCLZ("Open")});p=c._createListItem(null,q.fileName,p.displayName,s,r);d.appendChild(p);p.setAttribute("data-lineageurn",q.lineageurn);goog.object.set(e,f,p);p=goog.dom.getElementByClass("cmdOpen",
p);goog.isDefAndNotNull(p)&&c._connectClickEventOnRelatedItem(p,f,q.lineageurn,q.mimeType,q.fileType,q.punchOutUrl);f=!0}}f&&c._tabsPane[b].appendChild(d)};goog.dom.removeChildren(c._tabsPane[1]);goog.dom.removeChildren(c._tabsPane[2]);goog.dom.removeChildren(c._tabsPane[3]);if(goog.isDefAndNotNull(a)){var g=goog.dom.createDom("div",{"class":"list"});goog.isDefAndNotNull(a.uses)&&(goog.isDefAndNotNull(a.uses.inaccessible)&&d(a.uses.inaccessible,1,g),goog.isDefAndNotNull(a.uses.accessible)&&f(a.uses.accessible,
1,g));g=goog.dom.createDom("div",{"class":"list"});goog.isDefAndNotNull(a.usedIn)&&(goog.isDefAndNotNull(a.usedIn.inaccessible)&&d(a.usedIn.inaccessible,2,g),goog.isDefAndNotNull(a.usedIn.accessible)&&f(a.usedIn.accessible,2,g));g=goog.dom.createDom("div",{"class":"list"});goog.isDefAndNotNull(a.drawings)&&(goog.isDefAndNotNull(a.drawings.inaccessible)&&d(a.drawings.inaccessible,3,g),goog.isDefAndNotNull(a.drawings.accessible)&&f(a.drawings.accessible,3,g))}c._updatePaneState(1);c._updatePaneState(2);
c._updatePaneState(3);c._updateThumbnails(e);goog.isDefAndNotNull(this._parent)&&(goog.isDefAndNotNull(this._parent._update)&&goog.isFunction(this._parent._update))&&this._parent._update()}};
neutron.dashboard.controls.ExpandPopup.prototype._updateThumbnails=function(a){var b={ids:[]};goog.object.forEach(a,function(a,d){goog.array.insert(b.ids,d)});neutron.dashboard.invoker.getThumbnails(b,function(b,d){if(b&&!goog.isArray(b)&&(!0==goog.isDefAndNotNull(b.thumb_status)&&!0==goog.isDefAndNotNull(b.thumb)&&!0==goog.isDefAndNotNull(b.id))&&(console.log("_onGetThumbnails... - "+d+" - "+b.id+" - "+b.thumb_status),("ok"==b.thumb_status||"local_only"==b.thumb_status)&&0<b.thumb.length)){var e=
goog.object.get(a,b.id),e=goog.dom.getElementByClass("itemThumbnail",e);goog.isDefAndNotNull(e)&&(e.style.backgroundImage='url("'+b.thumb+'")')}},this)};neutron.dashboard.controls.ExpandPopup.prototype._connectClickEventOnRelatedItem=function(a,b,c,d,e,f){var g=this;this._addEventHandlerKeyToGroup("Related",b,goog.events.listen(a,goog.events.EventType.CLICK,function(a){!0==goog.isDefAndNotNull(b)&&!0==goog.isDefAndNotNull(c)&&g._parent.tryToOpen(c,d,e,f)}))};
neutron.dashboard.controls.ExpandPopup.prototype._updateRelatedSection=function(a,b){var c=a.derived;c&&(a.derived=c.filter(function(a){return a&&goog.isDefAndNotNull(a.mimeType)&&"application/vnd.autodesk.cam360"==a.mimeType?!1:!0}));this._proccessRelatedSection(a,b)};
neutron.dashboard.controls.ExpandPopup.prototype._updateStoredInSection=function(){if(!1!=goog.isDefAndNotNull(this._storedHtmlNode)){var a=this;this._storedHtmlNode.innerHTML="";if(goog.isDefAndNotNull(this._itemData.projectName)&&(!goog.isDefAndNotNull(this._folderPath)||0==this._folderPath.length))this._folderPath=[this._itemData.projectName];if(!(!1===goog.isDefAndNotNull(this._parent)||goog.isDefAndNotNull(this._parent._currFolderId))){var b=goog.dom.createDom("div",{"class":"intro"});b.innerText=
_LCLZ("Stored in ");a._storedHtmlNode.appendChild(b);var c=this._itemData.branchName;goog.array.forEach(this._folderPath,function(b,e){if(0<e){var f=goog.dom.createDom("div",{"class":"sep"});a._storedHtmlNode.appendChild(f)}f=goog.dom.createDom("div",{"class":"name"});f.innerText=b;a._storedHtmlNode.appendChild(f);neutron.dashboard.invoker.supportsBranching()&&(0===e&&goog.isDefAndNotNull(c)&&0<c.length)&&(f=goog.dom.createDom("div",{"class":"sep"}),a._storedHtmlNode.appendChild(f),goog.isDefAndNotNull(a._itemData.branchColor)&&
(f=goog.dom.createDom("div",{"class":"branchicon"}),f.style.borderColor="#"+a._itemData.branchColor,a._storedHtmlNode.appendChild(f)),f=goog.dom.createDom("div",{"class":"name"}),f.innerText=c,a._storedHtmlNode.appendChild(f))})}}};neutron.dashboard.controls.ExpandPopup.prototype._updateFolderPath=function(a){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.type))&&"folderPath"==a.type&&goog.isDefAndNotNull(a.parents))this._folderPath=a.parents};
neutron.dashboard.controls.ExpandPopup.prototype._getFileExtension=function(a){var b="";if(goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(a.rootFileName)&&(a=a.rootFileName,goog.isDefAndNotNull(a))){var c=-1;if(-1!=(c=a.indexOf(".")))b=a.substring(c+1)}return b};
neutron.dashboard.controls.ExpandPopup.prototype._processFile=function(a){console.log("ExpandPopup itemData: "+JSON.stringify(a));this._online=neutron.dashboard.invoker.online();var b=this._getFileExtension(a),c=this._drawingsHeaderNode();"f2d"==b.toLowerCase()||"f2t"==b.toLowerCase()?goog.dom.classes.remove(c,"selectable"):goog.dom.classes.add(c,"selectable");!1==goog.isDefAndNotNull(a)?console.log("ExpandPopup - file does not exist!"):(this._online&&(!1==goog.isDefAndNotNull(this._versions)?this._versions=
new neutron.dashboard.controls.Versions(a,this):this._versions.setFileData(a,!0)),this._itemData=a,this._lastUpdateDisplayName=null,this._folderPath=[],this._updateLastSavedNode(!1),this._updateStoredInSection(),this._updatePunchOutNode(),neutron.dashboard.invoker.getItemDetails(a.id))};neutron.dashboard.controls.ExpandPopup.prototype.refreshData=function(){neutron.dashboard.invoker.getItemDetails(this._itemData.id)};
neutron.dashboard.controls.ExpandPopup.prototype._onGetItemDetails=function(a){if(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.status)||!1==goog.isDefAndNotNull(a.data)||!1==goog.isDefAndNotNull(a.status))console.warn("ExpandPopup._onGetItemDetails - unexpected response:"),console.log(a);else if("done"!=a.status&&"progress"==a.status){console.log("ExpandPopup._onGetItemDetails - response data:");console.log(a.data);if(goog.isDefAndNotNull(a.data.type)&&"relationships"===a.data.type){var b=
a.data.relationships,c=a.data.id;goog.isDefAndNotNull(b)||(b={});this._updateRelatedSection(b,c)}this._updatePunchOutNode();"folderPath"==a.data.type&&goog.isDefAndNotNull(a.data.parents)?this._updateFolderPath(a.data):"basicInfo"==a.data.type?(this._itemData.version=a.data.versionNumber,this._itemData.lastModified=a.data.lastModifiedTime,this._parent.downloadThumbnailsFor(this._itemData.id),this._updateLastSavedNode()):"inUseBy"==a.data.type?(b=[],goog.isDefAndNotNull(a.data.inUseBy)&&(b=a.data.inUseBy),
this._updateInUseByField(b)):"lasModifiedUserInfo"==a.data.type&&goog.isDefAndNotNull(a.data.lasModifiedUserInfo)?(this._lastUpdateDisplayName=a.data.lasModifiedUserInfo.userName,this._updateLastSavedNode()):"storedInInfo"==a.data.type&&goog.isDefAndNotNull(a.data.storedInInfo)&&(goog.isDefAndNotNull(a.data.storedInInfo.branchName)&&(this._itemData.branchName=a.data.storedInInfo.branchName),goog.isDefAndNotNull(a.data.storedInInfo.branchColor)&&(this._itemData.branchColor=a.data.storedInInfo.branchColor),
goog.isDefAndNotNull(a.data.storedInInfo.projectId)&&(this._itemData.projectId=a.data.storedInInfo.projectId),this._updateStoredInSection())}};neutron.dashboard.controls.ExpandPopup.prototype._updatePunchOutNode=function(){if(goog.isDefAndNotNull(this._a360HtmlNode)){var a=this._itemData.punchOutUrl;goog.isDefAndNotNull(a)&&goog.isString(a)&&1<a.length&&this._online?this._a360HtmlNode.style.display="block":this._a360HtmlNode.style.display="none"}};
neutron.dashboard.controls.ExpandPopup.prototype._createListItem=function(a,b,c,d,e){var f=goog.dom.createDom("div",{"class":"listItem selectable l_layout l_vAlignItemsMiddle"});if(goog.isDefAndNotNull(a)){var g=goog.dom.createDom("div",{"class":"itemIndex l_column l_fixed"});g.innerText=a.idx;"RELEASED"===a.state&&(g.innerText+="(R)");f.appendChild(g)}f.appendChild(goog.dom.createDom("div",{"class":"itemThumbnail l_column l_fixed"}));a=goog.dom.createDom("div",{"class":"itemRest l_column l_flexible"});
f.appendChild(a);g=goog.dom.createDom("div",{"class":"itemTitle ft_threeDots"});g.innerHTML=b;a.appendChild(g);goog.isDefAndNotNull(e)?(b=goog.dom.createDom("div",{"class":"itemDescription l_layout l_vAlignItemsMiddle"}),g=goog.dom.createDom("div",{"class":"l_column l_flexible ft_threeDots"}),g.innerText=c,c=goog.dom.createDom("div",{"class":"vernum l_column l_fixed"}),c.innerText="V"+e.ver,b.appendChild(g),e.outOfDate&&(g=goog.dom.createDom("div",{"class":"exclamation l_column l_fixed tooltipParent"}),
goog.isString(e.tooltip)&&0<e.tooltip.length&&(e=goog.dom.createDom("div",{"class":"tooltip right30 bottom down",style:"white-space: pre-wrap; min-width: 200px"},e.tooltip),g.appendChild(e)),b.appendChild(g)),b.appendChild(c)):(b=goog.dom.createDom("div",{"class":"itemDescription ft_threeDots"}),b.innerText=c);a.appendChild(b);if(d&&0<d.length){var h=goog.dom.createDom("div",{"class":"itemTools"});f.appendChild(h);goog.array.forEach(d,function(a){var b=a.cmdId,c=!1;!0==goog.isDefAndNotNull(a.tooltip)&&
(b+=" tooltipParent",c=!0);b=goog.dom.createDom("div",{"class":b});c&&(a=goog.dom.createDom("div",{"class":"tooltip right bottom"},a.tooltip),b.appendChild(a));h.appendChild(b)})}return f};
neutron.dashboard.controls.ExpandPopup.prototype._createInaccessibleFileItem=function(a){var b=goog.dom.createDom("div",{"class":"inaccessibleFileItem selectable l_layout l_vAlignItemsMiddle"}),c;c=1==a?goog.dom.createDom("div",{"class":"itemThumbnail1 l_column l_fixed"}):2==a?goog.dom.createDom("div",{"class":"itemThumbnail2 l_column l_fixed"}):goog.dom.createDom("div",{"class":"itemThumbnail3 l_column l_fixed"});b.appendChild(c);c=goog.dom.createDom("div",{"class":"itemRest l_layout l_column l_flexible"});
b.appendChild(c);var d=goog.dom.createDom("div",{"class":"l_layout l_vAlignItemsTop l_column l_flexible"}),e=goog.dom.createDom("div",{"class":"itemTitle l_column l_fixed ft_threeDots"});e.innerHTML=parseInt(a);d.appendChild(e);e=goog.dom.createDom("div",{"class":"itemDescription l_column l_flexible ft_threeDots"});e.innerText=1==a?_LCLZ("inaccessible file"):_LCLZ("inaccessible files");d.appendChild(e);c.appendChild(d);a=goog.dom.createDom("div",{"class":"l_layout l_vAlignItemsMiddle l_column l_fixed"});
this._inaccessibleFileItemDetailsNode=goog.dom.createDom("div",{"class":"cmdDetails l_column l_fixed"});this._inaccessibleFileItemDetailsNode.innerText=_LCLZ("Details");a.appendChild(this._inaccessibleFileItemDetailsNode);c.appendChild(a);this._connectEvents();return b};neutron.dashboard.controls.ExpandPopup.prototype._onShowDetailsPunchout=function(a){};neutron.dashboard.controls.Dummy=function(a,b,c){this._className=a;this._innerText=b;this._tooltipJSON=c;this._visibility=!0;this._disableTooltip=this._disable=!1;this._tooltipHeader=this._spanNameHtmlNode=this._tooltipHtmlNode=null;neutron.dashboard.RenderableObject.call(this)};goog.inherits(neutron.dashboard.controls.Dummy,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.Dummy.prototype._construct=function(a){var b=this._className;!0==goog.isDefAndNotNull(this._tooltipJSON)&&(b+=" tooltipParent");this._htmlNode=goog.dom.createDom("div",{"class":b});this._constructTextElement();this._htmlNode.appendChild(goog.dom.createDom("div",{"class":"_hover_"}));!0==goog.isDefAndNotNull(this._tooltipJSON)&&(this._tooltipHtmlNode=goog.dom.createDom("div",{"class":"tooltip "+this._tooltipJSON.align},this._tooltipJSON.label),this._htmlNode.appendChild(this._tooltipHtmlNode));
a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.controls.Dummy.prototype._constructTextElement=function(){!1!=goog.isDefAndNotNull(this._innerText)&&!1==goog.isDefAndNotNull(this._spanNameHtmlNode)&&(this._spanNameHtmlNode=goog.dom.createDom("span",{"class":"textData"}),this._htmlNode.appendChild(this._spanNameHtmlNode))};
neutron.dashboard.controls.Dummy.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode)||(!0==goog.isDefAndNotNull(this._innerText)&&!0==goog.isDefAndNotNull(this._spanNameHtmlNode)&&(this._spanNameHtmlNode.innerText=this._innerText),this._htmlNode.style.display=!0==this._visibility?"block":"none",!1==this._disable?goog.dom.classes.remove(this._htmlNode,"_disabled_"):goog.dom.classes.add(this._htmlNode,"_disabled_"),!1==this._disableTooltip?goog.dom.classes.remove(this._htmlNode,
"_ttdisabled_"):goog.dom.classes.add(this._htmlNode,"_ttdisabled_"),this._htmlNode.style.top=this._area.top+"px",0>this._area.left&&goog.isDefAndNotNull(this._innerText)?this._htmlNode.style.right=-this._area.left+"px":this._htmlNode.style.left=this._area.left+"px",-1!=this._area.width&&(this._htmlNode.style.width=this._area.width+"px"),-1!=this._area.height&&(this._htmlNode.style.height=this._area.height+"px"))};
neutron.dashboard.controls.Dummy.prototype._remove=function(){this._spanNameHtmlNode=this._tooltipHtmlNode=null};neutron.dashboard.controls.Dummy.prototype._hide=function(){this._spanNameHtmlNode=this._tooltipHtmlNode=null};neutron.dashboard.controls.Dummy.prototype.innerText=function(a){this._innerText=a;this._constructTextElement();this._update()};
neutron.dashboard.controls.Dummy.prototype.changeTextData=function(a,b){!1===goog.isDefAndNotNull(this._htmlNode)?(this._innerText=a,goog.isDefAndNotNull(this._tooltipJSON)&&goog.isDefAndNotNull(b)&&(this._tooltipJSON.label=b)):(!0==goog.isDefAndNotNull(this._tooltipHtmlNode)&&!0==goog.isDefAndNotNull(b)&&(this._tooltipHtmlNode.innerHTML=b),this.innerText(a))};neutron.dashboard.controls.Dummy.prototype.isVisible=function(){return this._visibility};
neutron.dashboard.controls.Dummy.prototype.show=function(){this._visibility=!0;this._update()};neutron.dashboard.controls.Dummy.prototype.hide=function(){this._visibility=!1;this._update()};neutron.dashboard.controls.Dummy.prototype.disable=function(a){this._disable=!0;this._disableTooltip=!0===a;this._update()};neutron.dashboard.controls.Dummy.prototype.enable=function(){this._disableTooltip=this._disable=!1;this._update()};
neutron.dashboard.controls.Dummy.prototype._connectEvents=function(){var a=this;goog.events.listen(this._htmlNode,goog.events.EventType.CLICK,function(b){!1==a._disable&&a.dispatchEvent(b)})};neutron.dashboard.events.ItemSelected=function(a,b,c){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.ITEM_SELECTED;this.itemId=a;this.itemData=b;this.firedOnHtmlItem=c};goog.inherits(neutron.dashboard.events.ItemSelected,goog.events.Event);neutron.dashboard.utils.ContextMenuHelper={};neutron.dashboard.utils.ContextMenuHelper._DOCUMENT_KEY_PRESS="@CMHelper_KEYUP";neutron.dashboard.utils.ContextMenuHelper._EDIT_LOST_FOCUS="@CMHelper_Edit_BLUR";neutron.dashboard.utils.ContextMenuHelper._DOCUMENT_CLICK="@CMHelper_CLICK";neutron.dashboard.utils.ContextMenuHelper._WINDOW_LOST_FOCUS="@CMHelper_Window_BLUR";neutron.dashboard.utils.ContextMenuHelper._EDIT_NODE_KEY="@CMHelper_Edit_Node";
neutron.dashboard.utils.ContextMenuHelper._TIMEOUT_KEY="@CMHelper_Timeout";neutron.dashboard.utils.ContextMenuHelper._HELPER_FUNCTION="@CMHelper_Function";
neutron.dashboard.utils.ContextMenuHelper.connectGlobalEvents=function(a,b,c){neutron.dashboard.utils.ContextMenuHelper.disconnectGlobalEvents(a);neutron.dashboard.notifier.fireContexMenuWillAppear();var d=goog.dom.createDom("input",{"class":b,type:"text"});document.body.appendChild(d);a[neutron.dashboard.utils.ContextMenuHelper._EDIT_NODE_KEY]=d;setTimeout(function(){d.focus();a._addEventHandlerKey(neutron.dashboard.utils.ContextMenuHelper._DOCUMENT_KEY_PRESS,goog.events.listen(d,goog.events.EventType.KEYUP,
function(a){if(27==a.keyCode)return c(),a.preventDefault(),a.stopPropagation(),!1}));a._addEventHandlerKey(neutron.dashboard.utils.ContextMenuHelper._EDIT_LOST_FOCUS,goog.events.listen(d,goog.events.EventType.BLUR,function(b){neutron.dashboard.utils.ContextMenuHelper.cancelBlurEvent(a);a[neutron.dashboard.utils.ContextMenuHelper._TIMEOUT_KEY]=setTimeout(function(){delete a[neutron.dashboard.utils.ContextMenuHelper._TIMEOUT_KEY];c()},300);return!1}));a._addEventHandlerKey(neutron.dashboard.utils.ContextMenuHelper._DOCUMENT_CLICK,
goog.events.listen(document.body,goog.events.EventType.CLICK,function(b){neutron.dashboard.utils.ContextMenuHelper.cancelBlurEvent(a);c();b.preventDefault();b.stopPropagation();return!1}))},50);!1==goog.userAgent.MAC&&a._addEventHandlerKey(neutron.dashboard.utils.ContextMenuHelper._WINDOW_LOST_FOCUS,goog.events.listen(window,goog.events.EventType.BLUR,function(a){c()}));a[neutron.dashboard.utils.ContextMenuHelper._HELPER_FUNCTION]=function(){c()};neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.CONTEXT_MENU_WILL_APPEAR,
a,a[neutron.dashboard.utils.ContextMenuHelper._HELPER_FUNCTION])};
neutron.dashboard.utils.ContextMenuHelper.disconnectGlobalEvents=function(a){neutron.dashboard.notifier.unregister(neutron.dashboard.events.EventType.CONTEXT_MENU_WILL_APPEAR,a);neutron.dashboard.utils.ContextMenuHelper.cancelBlurEvent(a);a._disconnectEventByEventName(neutron.dashboard.utils.ContextMenuHelper._DOCUMENT_KEY_PRESS);a._disconnectEventByEventName(neutron.dashboard.utils.ContextMenuHelper._EDIT_LOST_FOCUS);a._disconnectEventByEventName(neutron.dashboard.utils.ContextMenuHelper._DOCUMENT_CLICK);a._disconnectEventByEventName(neutron.dashboard.utils.ContextMenuHelper._WINDOW_LOST_FOCUS);
var b=a[neutron.dashboard.utils.ContextMenuHelper._EDIT_NODE_KEY];goog.isDefAndNotNull(b)&&(delete a[neutron.dashboard.utils.ContextMenuHelper._EDIT_NODE_KEY],goog.dom.removeNode(b))};neutron.dashboard.utils.ContextMenuHelper.cancelBlurEvent=function(a){var b=a[neutron.dashboard.utils.ContextMenuHelper._TIMEOUT_KEY];goog.isDefAndNotNull(b)&&(clearTimeout(b),delete a[neutron.dashboard.utils.ContextMenuHelper._TIMEOUT_KEY])};
neutron.dashboard.utils.ContextMenuHelper.resetBlurEvent=function(a){a=a[neutron.dashboard.utils.ContextMenuHelper._EDIT_NODE_KEY];goog.isDefAndNotNull(a)&&a.focus()};neutron.dashboard.controls.ContextMenu=function(a,b,c,d){neutron.dashboard.RenderableObject.call(this);this._leftAligned=!1;this._onHtmlItem=b;this._itemsDataArr=a;this._customClass=d||null;this._cmdIdsArr=[];this._dataCmdArr=[];this._separatorsCount=this._currCmdIndex=0;!0==goog.isDefAndNotNull(c)&&(this._hasCheckableItems=c);this._ITEM_CLICK="ItemClick_";this._ON_MENU_RCLICK="ON_MENU_RCLICK";this._init()};goog.inherits(neutron.dashboard.controls.ContextMenu,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.ContextMenu.prototype._init=function(){};neutron.dashboard.controls.ContextMenu.prototype.construct=function(a){this._construct(a)};
neutron.dashboard.controls.ContextMenu.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"contextMenu"+(this._hasCheckableItems?" checkable":"")+" noSelection"});!0===goog.isDefAndNotNull(this._customClass)&&goog.dom.classes.add(this._htmlNode,this._customClass);this._cmdIdsArr=[];this._dataCmdArr=[];this._currCmdIndex=0;this._constructItems(this._itemsDataArr,this._htmlNode);a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.ContextMenu.prototype._update=function(){if(!(!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode))){var a=this._area.left,b=this._area.top,c=this.width(),d=this._calculatedHeight();this._leftAligned?this._htmlNode.style.right=a+"px":(a+c>parseInt(window.innerWidth)&&(a=parseInt(window.innerWidth)-c),this._htmlNode.style.left=a+"px");b+d>parseInt(window.innerHeight)&&(b=parseInt(window.innerHeight)-d);this._htmlNode.style.top=b+"px"}};
neutron.dashboard.controls.ContextMenu.prototype._remove=function(){neutron.dashboard.utils.ContextMenuHelper.disconnectGlobalEvents(this)};neutron.dashboard.controls.ContextMenu.prototype._connectEvents=function(){this._addEventHandlerKey(this._ON_MENU_RCLICK,goog.events.listen(this._htmlNode,goog.events.EventType.CONTEXTMENU,function(a){a.preventDefault();a.stopPropagation()}))};
neutron.dashboard.controls.ContextMenu.prototype._connectGlobalEvents=function(){var a=this;neutron.dashboard.utils.ContextMenuHelper.connectGlobalEvents(a,"hiddenContextMenuInput",function(){a.hideAndRemove()})};neutron.dashboard.controls.ContextMenu.prototype._disconnectGlobalEvents=function(){neutron.dashboard.utils.ContextMenuHelper.disconnectGlobalEvents(this)};
neutron.dashboard.controls.ContextMenu.prototype._constructItems=function(a,b){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(b))){this._separatorsCount=0;var c=this;goog.array.forEach(a,function(a){if("separator"==a.id){++this._separatorsCount;var e=goog.dom.createDom("div",{"class":"separator"});b.appendChild(e)}else{var f="popup_menu"==a.id,e=null!=a.checked,g=!0==e&&!0==a.checked,h=null!=a.selected,k=!0==h&&!0==a.selected,l="item notSelectable"+(a.noImage?" noImage":"")+(f?" popupItem":
"")+(null!=a.disable&&!0==a.disable?" disabled":"");e?l+=g?" checked":"":h&&(l+=k?" sel":" unsel");e=goog.dom.createDom("div",{"class":l},a.title);b.appendChild(e);c._connectItemEvents(e,c._currCmdIndex);c._cmdIdsArr.push(a.id);c._dataCmdArr.push(a.data);c._currCmdIndex++;f&&(f=goog.dom.createDom("div",{"class":"contextMenu popupMenu"}),e.appendChild(f),c._constructItems(a.data,f))}},this)}};
neutron.dashboard.controls.ContextMenu.prototype._connectItemEvents=function(a,b){var c=this;this._addEventHandlerKey(this._ITEM_CLICK+b,goog.events.listen(a,goog.events.EventType.CLICK,function(a){c._onItemClick(b,a)}))};neutron.dashboard.controls.ContextMenu.prototype._calculatedHeight=function(){return goog.style.getSize(this._htmlNode).height};neutron.dashboard.controls.ContextMenu.prototype.show=function(){this._htmlNode.style.opacity="1";this._connectGlobalEvents()};
neutron.dashboard.controls.ContextMenu.prototype.hide=function(){!1!=goog.isDefAndNotNull(this._htmlNode)&&(this._disconnectGlobalEvents(),this._htmlNode.style.opacity="0")};neutron.dashboard.controls.ContextMenu.prototype.hideAndRemove=function(a,b,c,d){this.hide();var e=this;setTimeout(function(){e.dispatchEvent(neutron.dashboard.events.EventType.REMOVE);goog.isDefAndNotNull(b)&&b.call(a,c,d)},150)};
neutron.dashboard.controls.ContextMenu.prototype._onItemClick=function(a,b){if(!0==goog.isDefAndNotNull(this._cmdIdsArr[a])&&"popup_menu"==this._cmdIdsArr[a]||!0===goog.dom.classes.has(b.currentTarget,"disabled"))return b.preventDefault(),b.stopPropagation(),!1;this.dispatchEvent(new neutron.dashboard.events.ItemSelected(this._cmdIdsArr[a],this._dataCmdArr[a],this._onHtmlItem))};neutron.dashboard.controls.ContextMenu.prototype.setLeftAligned=function(a){this._leftAligned=a};neutron.dashboard.events.StartAction=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.START_ACTION;this.actionId=a};goog.inherits(neutron.dashboard.events.StartAction,goog.events.Event);neutron.dashboard.controllers.designs_pane.List=function(a){neutron.dashboard.controllers.designs_pane.Base.call(this,a);var b=this;this._updateThrottle=new goog.async.Throttle(function(){goog.async.nextTick(b._doUpdate,b)},500,this);this._NODE_HEIGHT=68;this._NEXT_SEARCH_RESULTS_BUTTON_HEIGHT=27};goog.inherits(neutron.dashboard.controllers.designs_pane.List,neutron.dashboard.controllers.designs_pane.Base);
neutron.dashboard.controllers.designs_pane.List.prototype._nodeSpace=function(a){return parseInt(0.16*a)};
neutron.dashboard.controllers.designs_pane.List.prototype._doUpdate=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a))if(!0==this._parentObject.updateOnlySize())this.updateElementSize();else{console.__lp("List controller - render - Start");var b=this,a=b._parentObject.getDesignExpandedPopup(),c=b._parentObject.getDesignExpandedPopupDataId(),d=b._parentObject.getDesignsData(),e=[];!0==goog.isDefAndNotNull(d)&&(e=e.concat(d));
d=b._parentObject.htmlNode();b._updateClassName();var f=0,g=null;b.updateElementSize();goog.array.clear(b._itemsOrderArray);for(var h=0;h<e.length;h++){var k=e[h];if(!1!==goog.isDefAndNotNull(k))if(0===k.id.indexOf("marker:")){var l=b._parentObject.getDesignHtmlElementById(k.id);!1==goog.isDefAndNotNull(l)&&(l=goog.dom.createDom("div",{"class":"marker"}),d.appendChild(l),b._parentObject.addDesignHtmlElement(k.id,null,l));l.style.top=f+"px";f+=42-b._ITEM_SPACE}else if(b._createNode(k,d),l=b._parentObject.getDesignHtmlElementById(k.id),
!1!=goog.isDefAndNotNull(l)){if(null==g||10>g)g=goog.style.getSize(l).height;b._renderNode(k,d,0,f,h);f+=g-2;f+=b._ITEM_SPACE;c==k.id&&(!0==goog.isDefAndNotNull(a)&&(f=f-b._ITEM_SPACE+b._EXPAND_POPUP_TOP_MARGIN,a.dispatchEvent(new neutron.dashboard.events.Update(d,0,f,b._EXPAND_POPUP_WIDTH,-1)),a.arrowPosition(315),f+=b._ITEM_SPACE),f+=a.height())}}a=b._parentObject.nextSearchResultsBtn();!0==goog.isDefAndNotNull(a)&&(!0==b._parentObject.areThereSomeOtherSearchResults()?a.dispatchEvent(new neutron.dashboard.events.Update(d,
0,f,b._EXPAND_POPUP_WIDTH,b._NEXT_SEARCH_RESULTS_BUTTON_HEIGHT)):a.dispatchEvent(neutron.dashboard.events.EventType.HIDE));setTimeout(function(){b._parentObject.scrollToDetail()},100);b.dispatchEvent(neutron.dashboard.events.EventType.FINISHED)}}};neutron.dashboard.controllers.designs_pane.List.prototype._update=function(){this._updateThrottle.fire()};neutron.dashboard.controllers.designs_pane.List.prototype._remove=function(){this._parentObject=null};
neutron.dashboard.controllers.designs_pane.List.prototype.oneItemHeight=function(){return this._NODE_HEIGHT+this._ITEM_SPACE};neutron.dashboard.controllers.designs_pane.List.prototype.itemsCountPerLine=function(){return 1};neutron.dashboard.controllers.designs_pane.List.prototype.numberItemsPerPage=function(){var a=this._parentObject.area();return!1==goog.isDefAndNotNull(a)?0:Math.ceil(a.height/(this._NODE_HEIGHT+this._ITEM_SPACE))};neutron.dashboard.panes.Designs=function(a){neutron.dashboard.RenderableObject.call(this);this._userInputActive=!1;this._parent=a;this._newFolderAdded=this._newFolderMode=!1;this._controller=null;this._designsHtmlElements={};this._contextMenu=this._designExpandPopupDataId=this._designExpandPopup=null;this._viewType=neutron.dashboard.constants.ViewType.TILE_VIEW;this._sortType=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.SORTTYPE,neutron.dashboard.constants.SortType.NAME_SORT);
this._groupBy=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.GROUPBY,!1);this._currDataView=neutron.dashboard.constants.ViewType.FOLDERS_VIEW;this._searchMode=!1;this._currFolderId=null;this._openingDocumentInProgress=this._moreSearchResultsPossible=!1;this._openQueue=[];this._numberOfSearchResultsNeeded=this._lastReturnedData=this._lastProcessedInQueue=null;this._CLICK_EVENT_KEY="MASTER_NODE_"+goog.events.EventType.CLICK;this._DESIGN_CONTEXT_MENU="DESIGN_"+
goog.events.EventType.CONTEXTMENU+"_";this._DESIGN_CLICK_EVENT_KEY="DESIGN_"+goog.events.EventType.CLICK+"_";this._DESIGN_DBLCLICK_EVENT_KEY="DESIGN_"+goog.events.EventType.DBLCLICK+"_";this._DESIGN_MOUSEDOWN_EVENT_KEY="DESIGN_"+goog.events.EventType.MOUSEDOWN+"_";this._DESIGN_MOUSEUP_EVENT_KEY="DESIGN_"+goog.events.EventType.MOUSEUP+"_";this._DESIGN_DRAG_START_EVENT_KEY="DESIGN_"+goog.events.EventType.DRAGSTART+"_";this._DESIGN_INFO_CLICK_EVENT_KEY="DESIGN_INFO_"+goog.events.EventType.CLICK+"_";
this._DESIGN_INFO_ECM_CLICK_EVENT_KEY="DESIGN_INFO_ECM_"+goog.events.EventType.CLICK+"_";this._CONTEXTMENU_ITEM_SELECTED_EVENT_KEY="CONTEXT_MENU_ITEM_SELECTED";this._CONTEXTMENU_REMOVE_EVENT_KEY="CONTEXT_MENU_REMOVE";this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY="NEUTRON_TO_JAVASCRIPT";this._DOCUMENT_CLICK="desigPaneDocumentClick";this._mouseDownYPos=this._mouseDownXPos=this._mouseMoveHandlerKey=null;this._NUMBER_OF_SEARCH_RESULTS_STEP=15;this._updateOnlySize=!1;this._liveReviewSessionList=[];this._folderPath=
[];this._designsSelected=[];this.controllerFinishedEventKey=this._stopScrollingChecker=this._lastSelectedItem=null;this._renamingItems={};this._ecmSpinningDesigns={};var b=this;this.__onGetThumbnail=function(a,d){b._onGetThumbnails(a,d)};this.__onGetContentData=function(a,d){b._onGetContentData(a,d)};this.__onGetFolderInfo=function(a,d){b._onGetFolderInfo(a,d)};this._init()};goog.inherits(neutron.dashboard.panes.Designs,neutron.dashboard.RenderableObject);
neutron.dashboard.panes.Designs.prototype._init=function(){};neutron.dashboard.panes.Designs.prototype.setUpdateOnlySize=function(a){this._updateOnlySize=a};neutron.dashboard.panes.Designs.prototype.updateOnlySize=function(){return this._updateOnlySize};neutron.dashboard.panes.Designs.prototype.nextSearchResultsBtn=function(){return this._nextSearchResultsButton};neutron.dashboard.panes.Designs.prototype.isInSearchMode=function(){return this._searchMode};
neutron.dashboard.panes.Designs.prototype.areThereSomeOtherSearchResults=function(){return this._moreSearchResultsPossible};neutron.dashboard.panes.Designs.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"designsPane noSelection"});a.appendChild(this._htmlNode);this._connectEvents();this.dispatchEvent(new neutron.dashboard.events.PathChange(this._folderPath))};
neutron.dashboard.panes.Designs.prototype._update=function(){!0===this._userInputActive?console.log("Designs update userInputActive"):!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._controller)||(!0==goog.isDefAndNotNull(this._contextMenu)&&this._contextMenu.hideAndRemove(),this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE))};
neutron.dashboard.panes.Designs.prototype._remove=function(){!0==goog.isDefAndNotNull(this._contextMenu)&&(this._contextMenu.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._contextMenu=null);!0==goog.isDefAndNotNull(this._designExpandPopup)&&(this._designExpandPopup.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._designExpandPopup=null);!0==goog.isDefAndNotNull(this._controller)&&(this._controller.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._controller=
null);this._designExpandPopupDataId=null};neutron.dashboard.panes.Designs.prototype._openingDocument=function(){return!0==this._openingDocumentInProgress};
neutron.dashboard.panes.Designs.prototype._connectEvents=function(){var a=this;neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.PROJECT_CHANGE,this,this.handleOnProjectChange);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.COPY_ITEMS,this,a._onCopyItems);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.MOVE_ITEMS,this,a._onMoveItems);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.DELETE_ITEMS,
this,a._onDeleteItems);this._addEventHandlerKey(neutron.dashboard.events.EventType.FINISHED,goog.events.listen(this._controller,neutron.dashboard.events.EventType.FINISHED,function(b){a._onControllerFinished(b)}));this._addEventHandlerKey(this._CLICK_EVENT_KEY,goog.events.listen(this._htmlNode,goog.events.EventType.CLICK,function(b){b.target==a._htmlNode&&(!0==goog.isDefAndNotNull(a._designExpandPopupDataId)&&!1==a._openingDocument())&&a._showDetail(a._designExpandPopupDataId);b.target==a._htmlNode&&
(goog.isDefAndNotNull(a._designsSelected)&&!goog.array.isEmpty(a._designsSelected))&&a._selectItems(null)}));this._addEventHandlerKey(this._DOCUMENT_CLICK,goog.events.listen(document.body,goog.events.EventType.CLICK,function(b){b.target==a.htmlNode().parentNode&&a._selectItems(null)}));this._addEventHandlerKey("UPDATE_FINISHED",goog.events.listen(a._controller,neutron.dashboard.events.EventType.FINISHED,function(b){a.dispatchEvent(neutron.dashboard.events.EventType.FINISHED)}));this._addEventHandlerKey("PANE_SCROLL",
goog.events.listen(this._htmlNode,goog.events.EventType.SCROLL,function(b){a._handlePaneScroll(b)}))};neutron.dashboard.panes.Designs.prototype._handlePaneScroll=function(){var a=this;!0==goog.isDefAndNotNull(a._stopScrollingChecker)?(clearTimeout(a._stopScrollingChecker),a._stopScrollingChecker=null):a._startScrollTop=this._htmlNode.scrollTop;a._stopScrollingChecker=setTimeout(function(){a.downloadDetailsForVisibleItems()},100)};
neutron.dashboard.panes.Designs.prototype.downloadDetailsForVisibleItems=function(){var a=this,b=0,c=this.getDesignExpandedPopup();!0==goog.isDefAndNotNull(c)&&(b=c.height());var b=parseInt((this._htmlNode.scrollTop-b)/this._controller.oneItemHeight())*this._controller.itemsCountPerLine(),c=b+this._controller.numberItemsPerPage(),b=this._controller.getElementsInRange(b,c),d=[],e=[];goog.array.forEach(b,function(b){if(!1==goog.dom.classes.has(b,"folderNode")){b=b.id;var c=a.getItemData(b);if(!1!=goog.isDefAndNotNull(c)){var h=
!0==goog.isDefAndNotNull(c.thumbnail)&&0<c.thumbnail.length,k=!0==goog.isDefAndNotNull(c.thumbnail_downloading)&&!0===c.thumbnail_downloading;!1===h&&!1===k&&(c.thumbnail="",c.thumbnail_downloading=!0,goog.array.insert(d,b));h=!0==goog.isDefAndNotNull(c.hasFullContentData)&&!0==c.hasFullContentData;k=!0==goog.isDefAndNotNull(c.hasFullContentData_downloading)&&!0===c.hasFullContentData_downloading;!1===h&&!1===k&&(c.hasFullContentData=!1,c.hasFullContentData_downloading=!0,goog.array.insert(e,b))}}});
neutron.dashboard.invoker.getContentData({ids:e},this.__onGetContentData);goog.array.forEach(d,function(b){a.downloadThumbnailsFor(b)});this._stopScrollingChecker=null};neutron.dashboard.panes.Designs.prototype.downloadThumbnailsFor=function(a){var b=[];goog.array.insert(b,a);neutron.dashboard.invoker.getThumbnails({ids:b},this.__onGetThumbnail)};neutron.dashboard.panes.Designs.prototype._onControllerFinished=function(a){var b=this;setTimeout(function(){b.downloadDetailsForVisibleItems()},1)};
neutron.dashboard.panes.Designs.prototype.downloadAttributesForVisibleItems=function(){var a=this,b=neutron.dashboard.invoker.getLastUsedProject();if(!1!=goog.isDefAndNotNull(b)&&this._viewType==neutron.dashboard.constants.ViewType.LIST_VIEW){console.log("downloadAttributesForVisibleItems");var b=0,c=this.getDesignExpandedPopup();!0==goog.isDefAndNotNull(c)&&(b=c.height());var b=parseInt((this._htmlNode.scrollTop-b)/this._controller.oneItemHeight()),c=b+this._controller.numberItemsPerPage(),b=this._controller.getElementsInRange(b,
c),d=[];goog.array.forEach(b,function(a){!1==goog.dom.classes.has(a,"folderNode")&&goog.array.insert(d,a.itemData.id)});neutron.dashboard.invoker.getFileVersions(d,function(b,c){if(c==neutron.dashboard.constants.Status.PROGRESS&&!1!=goog.isDefAndNotNull(b)){var d=b.id,h=b.version;goog.isDefAndNotNull(d)&&(goog.isDefAndNotNull(d)&&1<=h)&&(d=a._designsHtmlElements[d],goog.isDefAndNotNull(d)&&(d.versionNumberNode.innerHTML="V"+h))}});this._stopScrollingChecker=null}};
neutron.dashboard.panes.Designs.prototype._onNeutronEvent=function(a){var b=this;if("documentFullyOpened"==a.cmdId){var c=goog.json.parse(a.cmdArgs);if(goog.isDefAndNotNull(c)&&goog.isDefAndNotNull(c.lineageUrl)&&0<c.lineageUrl.length){var d=c.lineageUrl;a=!1;for(c=0;c<b._liveReviewSessionList.length;c++)if(b._liveReviewSessionList[c]==d){a=!0;break}a&&setTimeout(function(){window.neutronJavaScriptObject.executeQuery("startLiveReviewSession",JSON.stringify({url:d}))},2E3);b._liveReviewSessionList=
[]}}else if("deleteDesign"==a.cmdId){a=goog.json.parse(a.cmdArgs);if(!0==goog.isDefAndNotNull(a)&&!0==a.answerYes){var e=this._deleteItemFolderId,f=this._deleteItemFiles,g=this._deleteItemHtmlNodes;if(!1==goog.isDefAndNotNull(e)||g.length!=f.length)return;for(c=0;c<g.length;c++)b.showProgressOnFile(g[c],!0);var h=this._designsSelected.length,k=0,l=!1,m=function(){var a=g[k],c=f[k++];!0==goog.isDefAndNotNull(c)&&c.deleteFile(e,function(c){!1==goog.isDefAndNotNull(c)?(b.showErrorOnFile(_LCLZ("Delete is unavailable"),
a,null),b.showProgressOnFile(a,!1),k<h?m():l&&b._update()):(l=!0,k<h?m():b._update())})};m()}this._deleteItemFolderId=null;this._deleteItemFiles=[];this._deleteItemHtmlNodes=[]}else"waitCursor"==a.cmdId?(c=goog.json.parse(a.cmdArgs),a=c.show,c=c.mark,!0==a?goog.isDefAndNotNull(this._openQueue)&&!1==goog.array.isEmpty(this._openQueue)&&(b._openingDocumentInProgress=!0):!0==goog.isDefAndNotNull(c)&&"OpenCmdEnd"==c&&(goog.isDefAndNotNull(b._lastProcessedInQueue)&&!1==goog.array.isEmpty(this._openQueue)&&
(b._update(),b._openNextItemInQueue()),b._openingDocumentInProgress=!1)):"showSpinner"==a.cmdId&&(c=goog.json.parse(a.cmdArgs),a=c.show,b.showProgressOnFileById(c.id,a))};neutron.dashboard.panes.Designs.prototype.refreshLocalCache=function(){neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.CACHE_VIEW)&&(this.getCacheContents(!0),this._update())};
neutron.dashboard.panes.Designs.prototype.registerForViewChange=function(a){var b=this;this._addEventHandlerKey("viewChange",goog.events.listen(a,neutron.dashboard.events.EventType.VIEW_CHANGE,function(a){b._disconnectEventByEventName(neutron.dashboard.events.EventType.FINISHED);a.viewType==neutron.dashboard.constants.ViewType.TILE_VIEW||a.viewType==neutron.dashboard.constants.ViewType.LIST_VIEW?b._changeViewType(a.viewType):a.viewType==neutron.dashboard.constants.ViewType.FLAT_VIEW?b._currDataView=
a.viewType:a.viewType==neutron.dashboard.constants.ViewType.FOLDERS_VIEW&&(b._currDataView=a.viewType);b._addEventHandlerKey(neutron.dashboard.events.EventType.FINISHED,goog.events.listen(b._controller,neutron.dashboard.events.EventType.FINISHED,function(a){b._onControllerFinished(a)}));b._update()}))};
neutron.dashboard.panes.Designs.prototype._changeViewType=function(a){this._viewType=a;this._viewType==neutron.dashboard.constants.ViewType.TILE_VIEW?this._controller=new neutron.dashboard.controllers.designs_pane.Tile(this):this._viewType==neutron.dashboard.constants.ViewType.LIST_VIEW&&(this._controller=new neutron.dashboard.controllers.designs_pane.List(this))};
neutron.dashboard.panes.Designs.prototype.registerForSortChange=function(a){var b=this;this._addEventHandlerKey("sortChange",goog.events.listen(a,neutron.dashboard.events.EventType.SORT_CHANGE,function(a){b._sortType!=a.sortType&&(b._sortType=a.sortType,b._invokeGetData(!0))}))};
neutron.dashboard.panes.Designs.prototype.registerForGroupByChange=function(a){var b=this;this._addEventHandlerKey("groupByChange",goog.events.listen(a,neutron.dashboard.events.EventType.GROUPBY_CHANGE,function(a){b._groupBy!=a.groupBy&&(b._groupBy=a.groupBy,a=b.getCurrFolder(),"RECENT"===a?b._invokeGetRecentData(Math.round(this._numberOfSearchResultsNeeded/this._NUMBER_OF_SEARCH_RESULTS_STEP)+1):b._invokeGetData(!0,a))}))};
neutron.dashboard.panes.Designs.prototype.registerForPathChange=function(a){var b=this;this._addEventHandlerKey("pathChange",goog.events.listen(a,neutron.dashboard.events.EventType.PATH_CHANGE,function(a){if(!0==goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(a.path)){b._folderPath=a.path;a=goog.array.peek(b._folderPath);var d=null,d=!0==goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(a.rootFolder)&&!0==goog.isDefAndNotNull(a.rootFolder.fd)?a.rootFolder:a.id;b._currFolderId=d;b.refreshCurrentFolder()}}))};
neutron.dashboard.panes.Designs.prototype.updateFileItem=function(a){var b=this;!0==goog.isDefAndNotNull(b.controllerFinishedEventKey)&&(goog.events.unlistenByKey(b.controllerFinishedEventKey),b.controllerFinishedEventKey=null);!1!=goog.isDefAndNotNull(b._designsHtmlElements)&&goog.object.forEach(this._designsHtmlElements,function(a){var d=b.getItemData(a.id);!0==goog.isDefAndNotNull(d)&&!0==goog.isDefAndNotNull(d.fileStatus)&&b.showProgressOnFile(a,"complete"==d.fileStatus?!1:!0)})};
neutron.dashboard.panes.Designs.prototype._handleCopyMoveStatus=function(a,b){var c="";"COPY"==a?c="CopyItems... ":"MOVE"==a&&(c="MoveItems... ");if(goog.isDefAndNotNull(b.status))if("progress"==b.status&&goog.isDefAndNotNull(b.data)&&goog.isDefAndNotNull(b.data.status)){var d="";if(goog.isDefAndNotNull(b.data.id)&&goog.isDefAndNotNull(b.data.statusMsg))d=b.data.statusMsg,this.showErrorOnFileById(d,b.data.id);else if(goog.isDefAndNotNull(b.data.statusMsg)&&"COPY"==a&&"failed"==b.data.status){-1==
b.data.statusMsg.indexOf("errorType")?(c=_LCLZ("Copy failed"),window.neutronJavaScriptObject.executeQuery("displayNotification",JSON.stringify({title:c,description:b.data.statusMsg}))):(c=JSON.parse(b.data.statusMsg),window.neutronJavaScriptObject.executeQuery("displayNotification",JSON.stringify({title:c.title,description:c.description})));return}"MOVE"==a&&(d=this.getDesignHtmlElementById(b.data.id),!0==goog.isDefAndNotNull(d)&&this.showProgressOnFile(d,!1));c.length&&console.log(c+b.data.status+
" ("+b.data.id+") ")}else"done"==b.status&&(c.length&&console.log(c+" DONE"),c=!1,goog.isDefAndNotNull(b.data)&&(goog.isDefAndNotNull(b.data.canceled)&&"true"==b.data.canceled)&&(c=!0),!1===c&&!1===this._searchMode&&this.refreshCurrentFolder(null,!0),goog.isDefAndNotNull(b.data)&&(goog.isDefAndNotNull(b.data.errors)&&!1==b.data.errors)&&(c="","COPY"==a?c=_LCLZ("Item(s) copied successfully"):"MOVE"==a&&(c=_LCLZ("Item(s) moved successfully")),c.length&&neutron.dashboard.notifier.fireErrorMessage(c,
!1)))};neutron.dashboard.panes.Designs.prototype._onCopyItems=function(a){this._handleCopyMoveStatus("COPY",a)};neutron.dashboard.panes.Designs.prototype._onMoveItems=function(a){this._handleCopyMoveStatus("MOVE",a)};
neutron.dashboard.panes.Designs.prototype._onDeleteItems=function(a){console.log("DeleteItems...");var b=this;if(!1==goog.isDefAndNotNull(a.status)||a.status===neutron.dashboard.constants.Status.ERROR)console.warn("DeleteItems event has ERROR status");else if(!1==goog.isDefAndNotNull(a.data))console.warn("DeleteItems event does not contain data");else if(!1==goog.isDefAndNotNull(this._deleteItemHtmlNodes)||0==this._deleteItemHtmlNodes.length)console.warn("_deleteItemHtmlNodes is not defined or empty");
else{var c=!0==goog.isDefAndNotNull(window.currentTest)?"true":"false";console.log(a.data);if(!0==goog.isDefAndNotNull(a.data.status)){if("failed"==a.data.status||"ok"==a.data.status){for(var d=null,e=0;e<this._deleteItemHtmlNodes.length;e++)if(d=this._deleteItemHtmlNodes[e],!(!1==goog.isDefAndNotNull(d)||d.id!=a.data.id)){b.showProgressOnFile(d,!1);break}if("ok"==a.data.status){var f=function(a,b){if(!(!1==goog.isDefAndNotNull(a)||0==a.length))for(var c=0;c<a.length;c++)if(a[c].id==b){goog.array.removeAt(a,
c);break}},g=function(a){f(b._lastReturnedData.files,a);f(b._lastReturnedData.folders,a);f(b._lastReturnedData.all,a)};!1==goog.isDefAndNotNull(a.data.ids)?g(a.data.id):goog.array.forEach(a.data.ids,function(a){g(a)});b._notifyFoldersChanged();b._removeUnnecessaryHtmlItems(b._lastReturnedData.all)}else b.showErrorOnFile(_LCLZ("Delete is unavailable"),d,null)}else if("done"==a.data.status)b._deleteItemHtmlNodes=[];else if("discard"==a.data.status){d=null;for(e=0;e<b._deleteItemHtmlNodes.length;e++)d=
b._deleteItemHtmlNodes[e],!1!=goog.isDefAndNotNull(d)&&b.showProgressOnFile(d,!1)}else if("blocked_xref"==a.data.status){d=null;for(e=0;e<b._deleteItemHtmlNodes.length;e++)d=b._deleteItemHtmlNodes[e],!1!=goog.isDefAndNotNull(d)&&b.showProgressOnFile(d,!1);var d="true"==a.data.hasFolders,h="true"==a.data.onlyFolders,e="true"==a.data.multiple,k=d?_LCLZ("Delete folder"):_LCLZ("Delete document");e&&(k=!1==d?_LCLZ("Delete documents"):h?_LCLZ("Delete folders"):_LCLZ("Delete documents and folders"));h="";
h="true"==a.data.hasRelation?e||d?_LCLZ("A version of some design has been referenced by drawings or other designs and cannot be deleted."):_LCLZ("A version of this design has been referenced by drawings or other designs and cannot be deleted."):e?_LCLZ("Some design is in use and cannot be deleted."):_LCLZ("This design is in use and cannot be deleted.");window.neutronJavaScriptObject.executeQuery("showWarning",JSON.stringify({title:k,text:h,unittest:c}));b._rcmItemFolderId=null;b._rcmItemFiles=[];
b._rcmItemHtmlNodes=[]}else console.warn("_onDeleteItems - unknown status");b._update()}}};
neutron.dashboard.panes.Designs.prototype._onFolderCreated=function(a){if(!0!=!goog.isDefAndNotNull(a)&&"done"==a.status&&goog.isDefAndNotNull(a.data)&&goog.isDefAndNotNull(a.data.folderId)&&goog.isDefAndNotNull(a.data.parentFolderId)){this._update();var b=a.data.folderId;a=a.data.parentFolderId;var c=this.getCurrFolder();goog.isDefAndNotNull(c)&&a===c&&(!1===this._newFolderMode?(c=this.getItemData(b),!1==goog.isDefAndNotNull(c)?(console.log("_onFolderCreated - fldr: "+b+" REFRESHING"),this.refreshCurrentFolder(a,
!0)):console.log("_onFolderCreated - fldr: "+b+" item exists, SKIP refresh")):console.log("_onFolderCreated - fldr: "+b+" item is creating, SKIP refresh"))}};
neutron.dashboard.panes.Designs.prototype._onFileUpdate=function(a){var b=this,c;if(!0!=!goog.isDefAndNotNull(a)&&"done"==a.status&&goog.isDefAndNotNull(a.data.status))switch(a.data.status){case "kReplace":c=a.data.parentFd;var d=this.getCurrFolder(),e=a.data.id,f=a.data.oldId;goog.isDefAndNotNull(d)&&c===d&&(d=b.getDesignHtmlElementById(f),!1==goog.isDefAndNotNull(d)&&(d=b.getDesignHtmlElementById(e),f=e),!0==goog.isDefAndNotNull(d)&&e!=f?(d.id=e,b.updateItemData(f,a.data),c=b.getItemData(e),b._designsHtmlElements[e]=
d,b._disconnectDesignHtmlElementEventsById(f),b._connectDesignHtmlElementEvents(e,c,d),goog.object.remove(b._designsHtmlElements,f)):console.warn("missing element for: "+f));break;case "kComplete":c=a.data.parentFd;var d=this.getCurrFolder(),g="RECENT"===d,h=!0===b._searchMode,e=a.data.id,f=a.data.fileId;if(goog.isDefAndNotNull(d)||h){if(c===d||!0===g||h)d=b.getDesignHtmlElementById(e),!1==goog.isDefAndNotNull(d)?d=b.getDesignHtmlElementById(f):f=e,!0==goog.isDefAndNotNull(d)?(b.updateItemData(f,
a.data),b.showProgressOnFile(d,!1),c=b.getItemData(e),null!=c&&null!=e&&this._controller.updateHtmlElementByData(e,c),goog.isDefAndNotNull(f)&&(goog.isDefAndNotNull(e)&&f!=e)&&(d.id=e,b._designsHtmlElements[e]=d,goog.object.remove(b._designsHtmlElements,f)),!0==goog.isDefAndNotNull(b._designExpandPopup)&&b._designExpandPopupDataId==e&&b._designExpandPopup.setData(c,!1),b.refreshCurrentFolder(null,!0)):console.warn("missing element for: "+e)}else console.warn("no current folder");break;case "kFailed":b.refreshCurrentFolder(null,
!0);break;case "kRecentDataUpdateFinished":d=this.getCurrFolder();if("RECENT"!=d||!1===goog.isDefAndNotNull(b._lastReturnedData))break;if(!1===goog.isDefAndNotNull(b._lastReturnedData.files)){console.warn("_onFileUpdate::kRecentDataUpdateFinished : _lastReturnedData has no files");break}e={data:{}};e.data.moreData=b._lastReturnedData.moreData;e.data.files=b._lastReturnedData.files;e.status=neutron.dashboard.constants.Status.DONE;f=goog.array.findIndex(e.data.files,function(a,b){return this.fileId===
a.fileId},a.data);-1!=f&&goog.array.removeAt(f);!1===neutron.dashboard.invoker.supportsBranching()?goog.isDefAndNotNull(a.data.branchName)&&"master"===a.data.branchName.toLowerCase()&&goog.array.insertAt(e.data.files,a.data):goog.array.insertAt(e.data.files,a.data);b._onGetRecentContent(e);break;case "kCreated":b._update();c=a.data.parentFd;d=this.getCurrFolder();goog.isDefAndNotNull(d)&&c===d&&(this.refreshCurrentFolder(c,!0),this._parent.showEmptyProjectMessages(!1,!0),!1==goog.isDefAndNotNull(b.controllerFinishedEventKey)&&
(b.controllerFinishedEventKey=goog.events.listen(b._controller,neutron.dashboard.events.EventType.FINISHED,function(a){b.updateFileItem();b.refreshCurrentFolder(null,!0)})));break;case "kSave":case "kDeleting":var k=function(c){var d=c.folderId;!1==goog.isDefAndNotNull(d)&&(d=c.parentFd);var e=b.getCurrFolder(),f=c.fileId;!1==goog.isDefAndNotNull(f)&&(f=c.id);!0==goog.isDefAndNotNull(f)&&!0==goog.isDefAndNotNull(e)&&d===e&&(d=b.getDesignHtmlElementById(f),!0==goog.isDefAndNotNull(d)&&(b.updateItemData(f,
c),b.showProgressOnFile(d,!0),b._controller.updateHtmlElementByData(f,a.data),b.downloadThumbnailsFor(f)),"kDeleting"==a.data.status&&b.refreshCurrentFolder(null,!0))};goog.isDefAndNotNull(a.data.files)&&a.data.files instanceof Array?goog.array.forEach(a.data.files,function(a){k(a)}):k(a.data);break;case "kCopying":case "kActionCancel":k=function(a){var c=b.getCurrFolder(),d=a.folderId,e=a.fileId;if(!0===b._searchMode||"RECENT"==c)d=c="";goog.isDefAndNotNull(c)&&d===c&&(c=b.getDesignHtmlElementById(e),
!0==goog.isDefAndNotNull(c)&&(b.updateItemData(e,a),b.showProgressOnFile(c,!1)))};goog.isDefAndNotNull(a.data.files)&&a.data.files instanceof Array?goog.array.forEach(a.data.files,function(a){k(a)}):k(a.data);break;case "kMoving":case "kTranslated":c=a.data.folderId,d=this.getCurrFolder(),goog.isDefAndNotNull(d)&&c===d&&b.refreshCurrentFolder(null,!0)}};
neutron.dashboard.panes.Designs.prototype.refreshCurrentFolder=function(a,b){this.dispatchEvent(new neutron.dashboard.events.PathChange(this._folderPath));console.log("refreshCurrentFolder");var c=goog.isDefAndNotNull(b)?b:!1,d=goog.isDefAndNotNull(a)?a:this.getCurrFolder();"RECENT"===d?(this._lastReturnedData=null,this._invokeGetRecentData(Math.round(this._numberOfSearchResultsNeeded/this._NUMBER_OF_SEARCH_RESULTS_STEP)+1)):this._invokeGetData(c,d);this._update()};
neutron.dashboard.panes.Designs.prototype.refreshBranchNames=function(){if(goog.isDefAndNotNull(this._lastReturnedData)&&0!==this._lastReturnedData.length){var a=this,b=neutron.dashboard.invoker.getLastUsedProject();!1===goog.isDefAndNotNull(b)||!1==goog.isDefAndNotNull(b.id)||neutron.dashboard.invoker.getBranchList(b.id,function(b){goog.array.forEach(a._lastReturnedData.all,function(a){if(goog.isDefAndNotNull(a.branchName)){var e=goog.array.find(b,function(b){return b.id===a.branchId});goog.isDefAndNotNull(e)&&
(a.branchName=e.title)}})},!0)}};neutron.dashboard.panes.Designs.prototype.addTempFolderToDesignsData=function(a){var b=Date.now(),b={id:"fld:new",isFolder:!0,name:_LCLZ("New Folder"),lastModified:b,mimeType:"folder_new"};this._newFolderAdded=!0;goog.array.insertAt(a,b,0)};neutron.dashboard.panes.Designs.prototype.removeTempFolderFromDesignsData=function(a){goog.array.removeIf(a,function(a,c,d){return goog.isDefAndNotNull(a.id)&&"fld:new"===a.id});this.removeDesignHtmlElementById("fld:new")};
neutron.dashboard.panes.Designs.prototype.getDesignsData=function(){if(goog.isDefAndNotNull(this._lastReturnedData)&&goog.isDefAndNotNull(this._lastReturnedData.all)){if(!0===this._newFolderMode&&!1===this._newFolderAdded)this.addTempFolderToDesignsData(this._lastReturnedData.all);else{var a=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.GROUPBY,!1);if(!neutron.dashboard.invoker.online()&&!0==a){var b=[],c=[],a={id:"marker:unavailable"};goog.array.forEach(this._lastReturnedData.all,
function(a){goog.isDefAndNotNull(a.existsOnLocal)&&!0!=a.existsOnLocal?goog.array.insert(c,a):goog.array.insert(b,a)},this);return 0!=c.length&&0!=b.length?goog.array.concat(b,[a],c):goog.array.concat(b,c)}}return this._lastReturnedData.all}return null};
neutron.dashboard.panes.Designs.prototype.getItemData=function(a){return!1==goog.isDefAndNotNull(this._lastReturnedData)||!1==goog.isDefAndNotNull(this._lastReturnedData.all)?null:goog.array.find(this._lastReturnedData.all,function(b,c,d){return!0===goog.isDefAndNotNull(b)&&b.id==a?!0:!1})};neutron.dashboard.panes.Designs.prototype.updateItemData=function(a,b){var c=this.getItemData(a);!1!=goog.isDefAndNotNull(c)&&goog.object.extend(c,b)};
neutron.dashboard.panes.Designs.prototype.getCurrFolder=function(){if(!0==goog.isDefAndNotNull(this._currFolderId))return this._currFolderId;var a=neutron.dashboard.invoker.getLastUsedProject();return goog.isDefAndNotNull(a)?goog.isObject(a)&&null!=a.rootFolder?a.rootFolder.fd:null!=a.rootFolderId?a.rootFolderId:a:null};neutron.dashboard.panes.Designs.prototype.currentFolderPath=function(){return this._folderPath};
neutron.dashboard.panes.Designs.prototype._removeUnnecessaryHtmlItems=function(a){for(var b=Object.keys(this._designsHtmlElements),c=0;goog.isDefAndNotNull(a)&&c<a.length;++c)!1==goog.isDefAndNotNull(a[c])||!1==goog.isDefAndNotNull(a[c].id)||goog.array.remove(b,a[c].id);!1==goog.array.isEmpty(b)&&(this._lastSelectedItem=null);goog.array.forEach(b,function(a){"fld:new"!=a&&this.removeDesignHtmlElementById(a)},this)};neutron.dashboard.panes.Designs.prototype.getDesignExpandedPopup=function(){return this._designExpandPopup};
neutron.dashboard.panes.Designs.prototype.getDesignExpandedPopupDataId=function(){return this._designExpandPopupDataId};neutron.dashboard.panes.Designs.prototype.addDesignHtmlElement=function(a,b,c){this._designsHtmlElements[a]=c;!1!=goog.isDefAndNotNull(b)&&(c.id=a,!0===b.isFolder?"fld:new"!==a&&this._connectFolderHtmlElementEvents(a,b,c):this._connectDesignHtmlElementEvents(a,b,c))};
neutron.dashboard.panes.Designs.prototype.removeDesignHtmlElementById=function(a){!0==goog.isDefAndNotNull(this._designsHtmlElements[a])&&(goog.dom.removeNode(this._designsHtmlElements[a]),delete this._designsHtmlElements[a],!0==goog.isDefAndNotNull(this._designExpandPopupDataId)&&this._designExpandPopupDataId==a&&this._hideDetail());this._disconnectDesignHtmlElementEventsById(a)};
neutron.dashboard.panes.Designs.prototype._connectDesignHtmlElementEvents=function(a,b,c){var d=this;this._addEventHandlerKey(this._DESIGN_CLICK_EVENT_KEY+a,goog.events.listen(c,goog.events.EventType.CLICK,function(b){var c=d.getItemData(a);d._onDesignClick(b,c)}));this._addEventHandlerKey(this._DESIGN_MOUSEDOWN_EVENT_KEY+a,goog.events.listen(c,goog.events.EventType.MOUSEDOWN,function(b){var c=d.getItemData(a);d._onDesignMouseDown(b,c)}));this._addEventHandlerKey(this._DESIGN_CONTEXT_MENU+a,goog.events.listen(c,
goog.events.EventType.CONTEXTMENU,function(b){var c=d.getItemData(a);d._onDesignContextMenu(b,c)}));this._addEventHandlerKey(this._DESIGN_MOUSEUP_EVENT_KEY+a,goog.events.listen(c,goog.events.EventType.MOUSEUP,function(b){var c=d.getItemData(a);d._onDesignMouseUp(b,c)}));this._addEventHandlerKey(this._DESIGN_DRAG_START_EVENT_KEY+a,goog.events.listen(c,goog.events.EventType.DRAGSTART,function(b){var c=d.getItemData(a);d._onDesignDragStart(b,c)}));goog.isDefAndNotNull(c.versionNumberNode)&&this._addEventHandlerKey(this._DESIGN_INFO_CLICK_EVENT_KEY+
a,goog.events.listen(c.versionNumberNode,goog.events.EventType.CLICK,function(b){var c=d.getItemData(a);d._onVersionBtnClick(b,c)}));goog.isDefAndNotNull(c.ecmSpinnerNode)&&this._addEventHandlerKey(this._DESIGN_INFO_ECM_CLICK_EVENT_KEY+a,goog.events.listen(c.ecmSpinnerNode,goog.events.EventType.CLICK,function(b){var c=d.getItemData(a);d._onVersionBtnClick(b,c)}))};
neutron.dashboard.panes.Designs.prototype._connectFolderHtmlElementEvents=function(a,b,c){var d=this;this._addEventHandlerKey(this._DESIGN_DBLCLICK_EVENT_KEY+a,goog.events.listen(c,goog.events.EventType.DBLCLICK,function(a){d._onDesignDblClick(a,b)}));this._addEventHandlerKey(this._DESIGN_CLICK_EVENT_KEY+a,goog.events.listen(c,goog.events.EventType.CLICK,function(a){d._onDesignClick(a,b)}));this._addEventHandlerKey(this._DESIGN_CONTEXT_MENU+a,goog.events.listen(c,goog.events.EventType.CONTEXTMENU,
function(a){d._onDesignContextMenu(a,b)}))};
neutron.dashboard.panes.Designs.prototype._disconnectDesignHtmlElementEventsById=function(a){this._disconnectEventByEventName(this._DESIGN_CLICK_EVENT_KEY+a);this._disconnectEventByEventName(this._DESIGN_DBLCLICK_EVENT_KEY+a);this._disconnectEventByEventName(this._DESIGN_MOUSEDOWN_EVENT_KEY+a);this._disconnectEventByEventName(this._DESIGN_MOUSEUP_EVENT_KEY+a);this._disconnectEventByEventName(this._DESIGN_DRAG_START_EVENT_KEY+a);this._disconnectEventByEventName(this._DESIGN_INFO_CLICK_EVENT_KEY+a);
this._disconnectEventByEventName(this._DESIGN_INFO_ECM_CLICK_EVENT_KEY+a);this._disconnectEventByEventName(this._DESIGN_CONTEXT_MENU+a)};neutron.dashboard.panes.Designs.prototype.getDesignHtmlElementById=function(a){return this._designsHtmlElements[a]};
neutron.dashboard.panes.Designs.prototype._isUserActionEnabledOnHtmlNode=function(a){var b=!0;!0==goog.dom.classes.has(a,"inAction")&&(b=!1);goog.isDefAndNotNull(a.fileStatus)&&"deleting"===a.fileStatus&&(b=!1);!0==goog.dom.classes.has(a.parentNode,"inAction")&&(b=!1);var c=this.getItemData(a.id);goog.isDefAndNotNull(c)&&"temp"==c.fileStatus&&(b=!1);var d=!1;goog.isDefAndNotNull(c)&&(!0==goog.isDefAndNotNull(c.isFolder)&&!0===c.isFolder)&&(d=!0);if(!d&&goog.isDefAndNotNull(c)&&(!goog.isDefAndNotNull(c.contentAvailable)||
!1===c.contentAvailable)&&!0==goog.dom.classes.has(a._nd_image,"defaultImgBackground")&&(!0==this._controller._isOffline||!1==neutron.dashboard.invoker.online()))b=!1;return b};
neutron.dashboard.panes.Designs.prototype._showDetail=function(a){console.log("_showDetail for entityId: "+a);var b=this,c=function(){b._update();!0==goog.isDefAndNotNull(b._designExpandPopupDataId)&&setTimeout(function(){b.scrollToDetail()},100)},d=function(a){b._designExpandPopup=new neutron.dashboard.controls.ExpandPopup(a,b);b._designExpandPopupDataId=a.id},e=function(a,b){!0==goog.isDefAndNotNull(a.versionNumberNode)&&(!0==b?goog.dom.classes.add(a.versionNumberNode,"selected"):goog.dom.classes.remove(a.versionNumberNode,
"selected"))},f=b.getItemData(a),g=b.getDesignHtmlElementById(a);!1==goog.isDefAndNotNull(f)||!1==goog.isDefAndNotNull(g)||(!0==goog.isDefAndNotNull(this._designExpandPopup)?this._designExpandPopupDataId==a?!0===this._userInputActive?console.log("Hide detail ignored : userInputActive"):(this._hideDetail(),e(g,!1),c()):(b._designExpandPopup.setData(f),d=b.getDesignHtmlElementById(b._designExpandPopupDataId),!0==goog.isDefAndNotNull(d)&&e(d,!1),e(g,!0),b._designExpandPopupDataId=a,c()):(e(g,!0),d(f),
c(),neutron.dashboard.utils.Report({Action:"ShowItemDetails"})))};neutron.dashboard.panes.Designs.prototype._hideDetail=function(){if(!0==goog.isDefAndNotNull(this._designExpandPopup)){this._designExpandPopup.hide();var a=this;setTimeout(function(){a._designExpandPopup.dispatchEvent(neutron.dashboard.events.EventType.REMOVE);a._designExpandPopup=null},250)}this._designExpandPopupDataId=null};
neutron.dashboard.panes.Designs.prototype.showErrorOnFileById=function(a,b){var c=this.getDesignHtmlElementById(b);goog.isDefAndNotNull(c)&&this.showErrorOnFile(a,c,null)};
neutron.dashboard.panes.Designs.prototype.showErrorOnFile=function(a,b,c){if(!1===goog.isDefAndNotNull(b))goog.isDefAndNotNull(c)&&c(!1);else{a=goog.isDefAndNotNull(a)?a:"";0==a.length&&(a=_LCLZ("Operation failed"));var d=b._errorMessage;!1==goog.isDefAndNotNull(d)?(console.warn("Unable to report error message - Design html node missing error message div."),goog.isDefAndNotNull(c)&&c(!1)):(d.innerText=a,goog.dom.classes.add(d.parentNode,"showByScale"),setTimeout(function(){goog.dom.classes.remove(d.parentNode,
"showByScale");goog.isDefAndNotNull(c)&&c()},5E3))}};neutron.dashboard.panes.Designs.prototype.scrollToItemTop=function(a,b){var c=this.getDesignHtmlElementById(a);if(!1!=goog.isDefAndNotNull(c)){var c=c.offsetTop,d=parseInt(this._htmlNode.scrollTop);c!=d&&(!0===b?new neutron.dashboard.utils.ScrollAnimator(this._htmlNode,c):this._htmlNode.scrollTop=c)}};
neutron.dashboard.panes.Designs.prototype.scrollToDetail=function(){if(!1!==goog.isDefAndNotNull(this.getDesignExpandedPopup())){var a=this.getDesignExpandedPopup().htmlNode();if(!1!==goog.isDefAndNotNull(a)){var b=this.getDesignHtmlElementById(this.getDesignExpandedPopupDataId());if(!1!==goog.isDefAndNotNull(b)){var b=parseInt(b.style.top),c=parseInt(a.style.top),a=parseInt(a.style.height),d=parseInt(this._htmlNode.style.height),e=parseInt(this._htmlNode.scrollTop);e+d<b||e>c+a||c+a-e>d&&new neutron.dashboard.utils.ScrollAnimator(this._htmlNode,
Math.abs(d-(c+a)))}}}};neutron.dashboard.panes.Designs.prototype._openDocumentInA360=function(a){a=a.punchOutUrl;goog.isString(a)&&1<a.length&&neutron.dashboard.Application.instance.punchOut(a)};
neutron.dashboard.panes.Designs.prototype._openFolder=function(a){a=a.id;var b=this.getItemData(a);if(goog.isDefAndNotNull(b)){var c=this.getDesignHtmlElementById(a);if(!(!0===goog.isDefAndNotNull(c)&&!0===goog.isDefAndNotNull(c._spinner))){b=b.name;c=this._folderPath.length;if(0<c&&(c=this._folderPath[c-1],!0==goog.isDefAndNotNull(c)&&!0==goog.isDefAndNotNull(c.id)&&c.id==a))return;goog.array.insert(this._folderPath,{id:a,name:b});this._currFolderId=a;this.dispatchEvent(new neutron.dashboard.events.PathChange(this._folderPath));
this._invokeGetData(!1,a)}}else console.warn("invalid itemData for _openFolder")};neutron.dashboard.panes.Designs.prototype.tryToOpen=function(a,b,c,d){!goog.string.isEmptySafe(a)&&!goog.string.isEmptySafe(b)&&(this._canBeOpenedInFusion(b,c)?this.openDocumentInFusion(a,b,c):goog.string.isEmpty(d)||neutron.dashboard.Application.instance.punchOut(d))};
neutron.dashboard.panes.Designs.prototype.openDocumentInFusion=function(a,b,c,d,e){window.neutronJavaScriptObject.executeQuery("waitCursor",JSON.stringify({show:!0}));var f={};f.extUrn=a;f.fileUri=a;var g=neutron.dashboard.invoker.online();goog.isDefAndNotNull(d)&&(f.fileUri=d,!0===g&&(f.openVersion="true",f.readOnly="true"));a=this.getItemData(a);if(!0==goog.isDefAndNotNull(a)&&(!1==goog.isDefAndNotNull(a.allowedDetails)||!1===a.allowedDetails)||!1===g)!0==this._controller._isOffline||!1===g?f.loadOffline=
1:(f.readOnly="true",f.openVersion="false",f.hideVersionInfo="true");goog.isDefAndNotNull(a)&&(b=a.mimeType,c=a.fileType);g=!1;goog.isDefAndNotNull(b)&&(g=this._isAnyCADSupportedFile(b,c));window.neutronJavaScriptObject.executeCommand(g?"OpenNonFusionCADFileCommand":"PLM360OpenAttachmentCommand",JSON.stringify(f));!0==goog.isDefAndNotNull(e)&&e.call(this,!0)};
neutron.dashboard.panes.Designs.prototype._openNextItemInQueue=function(){var a=this;if(!1==goog.array.isEmpty(this._openQueue)){this._lastProcessedInQueue=this._openQueue[0];var b=this._lastProcessedInQueue.id,c=this._lastProcessedInQueue;!0==goog.isDefAndNotNull(b)&&(a._openingDocumentInProgress=!0,setTimeout(function(){var d=null,e=null,f=null;!1==neutron.dashboard.invoker.online()&&(d=c.versionUrn,e=c.mimeType,f=c.fileType);a.openDocumentInFusion(c.id,e,f,d,function(c){!1==c&&(c=a.getDesignHtmlElementById(b),
!0==goog.isDefAndNotNull(c)&&!0==goog.isDefAndNotNull(c._spinner)&&(c._spinner.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),c._spinner=null,a.showErrorOnFile(_LCLZ("Open is unavailable"),c,null),goog.dom.classes.remove(c,"inAction"),a._openingDocumentInProgress=!1,a._update(),setTimeout(function(){a._openNextItemInQueue()},100)))})},250));goog.array.removeAt(this._openQueue,0)}};
neutron.dashboard.panes.Designs.prototype.showProgressOnFileById=function(a,b){var c=this.getDesignHtmlElementById(a);this.showProgressOnFile(c,b)};
neutron.dashboard.panes.Designs.prototype.showProgressOnFile=function(a,b){if(goog.isDefAndNotNull(a))if(!1===b)!0==goog.isDefAndNotNull(a._spinner)&&(a._spinner.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),a._spinner=null,a.style.opacity=1),goog.dom.classes.remove(a,"inAction");else if(!0===b){goog.dom.classes.add(a,"inAction");var c=this.getItemData(a.id);goog.isDefAndNotNull(c.fileStatus)&&"deleting"===c.fileStatus&&(a.style.opacity=0.5);!1==goog.isDefAndNotNull(a._spinner)&&(c=new neutron.dashboard.controls.Spinner(a),
a._spinner=c)}};
neutron.dashboard.panes.Designs.prototype._openDocument=function(a){var b=this;b._openingDocumentInProgress=!0;b._openQueue=a;neutron.dashboard.Application.instance.appSizeState()==neutron.dashboard.constants.ApplicationSize.FULLY_EXPANDED&&neutron.dashboard.Application.instance.executeNeutronCmd("DashboardModeSwitchCommand","{}");a={};var c=[];goog.array.forEach(b._openQueue,function(a){goog.array.insert(c,a.id)});a.datasets=c;window.neutronJavaScriptObject.executeCommand("MarkDocumentsForOpenCommand",JSON.stringify(a));
goog.array.forEach(b._openQueue,function(a){b.showProgressOnFile(b._designsHtmlElements[a.id],!0)});b._update();b._openNextItemInQueue()};
neutron.dashboard.panes.Designs.prototype._createMenu=function(a,b,c){var d=(new Date).getTime(),e=neutron.dashboard.invoker.allowedActions(b);console.log("_createMenu, allowedActions: "+((new Date).getTime()-d)+"ms");!0==goog.isDefAndNotNull(e)&&goog.array.forEach(e,function(c){c.data=b;goog.array.insert(a,c)});!0==goog.isDefAndNotNull(b)&&goog.array.forEach(b,function(a){goog.array.insert(c,a.id)})};
neutron.dashboard.panes.Designs.prototype._createSimpleData=function(a){if(!1===goog.isDefAndNotNull(a))console.error("_createSimpleData - null itemData");else return!1===goog.isDefAndNotNull(a.id)||!1===goog.isDefAndNotNull(a.name)||!1===goog.isDefAndNotNull(a.mimeType)||!1===goog.isDefAndNotNull(a.versionUrn)||!1===goog.isDefAndNotNull(a.projectId)||!1===goog.isDefAndNotNull(a.branchId)?(console.error("_createSimpleData - MISSING some data in itemData !"),a):{id:a.id,isFolder:a.isFolder,name:a.name,
mimeType:a.mimeType,versionUrn:a.versionUrn,projectId:a.projectId,branchId:a.branchId}};
neutron.dashboard.panes.Designs.prototype._createItemContextMenu=function(a,b){var c=this,d=[],e=[],f=[];this.dispatchEvent(neutron.dashboard.events.EventType.CREATE_CONTEXT_MENU);if(0!=c._designsSelected.length){if(1==c._designsSelected.length)f=[c._createSimpleData(b)];else for(var g=0;g<this._designsSelected.length;g++)if(b=this.getItemData(this._designsSelected[g].id),!0==goog.isDefAndNotNull(b)){var h=c._createSimpleData(b);goog.array.insert(f,h)}else console.error("Invalid item in multiple selection - "+
this._designsSelected[g].id);c._createMenu(d,f,e);0<d.length&&(c._contextMenu=new neutron.dashboard.controls.ContextMenu(d,a.currentTarget),c._contextMenu._design=c,c._contextMenu.dispatchEvent(new neutron.dashboard.events.Update(document.body,a.clientX,a.clientY,-1,-1)),setTimeout(function(){c._htmlNode.style.overflowY="hidden";c._contextMenu.show()},50),this._userInputActive=!0,c._addEventHandlerKey(c._CONTEXTMENU_ITEM_SELECTED_EVENT_KEY,goog.events.listen(c._contextMenu,neutron.dashboard.events.EventType.ITEM_SELECTED,
function(a){c._contextMenu.hideAndRemove();c._userInputActive=!1;neutron.dashboard.utils.Report({Action:"DashboardContextMenu",Label:a.itemId});switch(a.itemId){case "openItem":c._openItem(a.itemData);break;case "create_drawing":c._createDrawing(a.itemData);break;case "upload_new_version":case "import_new_version":c._uploadNewVersion(a.itemData[0]);break;case "update_related_items":c._updateRelatedItems(a.itemData);break;case "insert_as_comp":c._insertAsComponent(a.itemData[0]);break;case "deleteItem":setTimeout(function(){c._deleteItem(a.itemData,
a.firedOnHtmlItem,e)},200);break;case "moveItem":c._moveItem(a.itemData,a.firedOnHtmlItem,e);break;case "copyItem":c._copyItem(a.itemData,a.firedOnHtmlItem,e);break;case "renameItem":c._renameItem(a.itemData[0],a.firedOnHtmlItem,e[0]);break;case "create_fusion_design":c._createFusionDesign(a.itemData);break;case "live_review":c._liveReviewSession(a.itemData);break;case "share_public_link":c._publicShare(a.itemData[0]);break;case "cacheItems":c._cacheItems(a.itemData,a.firedOnHtmlItem,e);break;case "releaseVersion":c._releaseVersion(a.itemData[0],
a.firedOnHtmlItem,e[0])}})),c._addEventHandlerKey(c._CONTEXTMENU_REMOVE_EVENT_KEY,goog.events.listen(c._contextMenu,neutron.dashboard.events.EventType.REMOVE,function(a){c._userInputActive=!1;c._disconnectEventByEventName(c._CONTEXTMENU_ITEM_SELECTED_EVENT_KEY);c._disconnectEventByEventName(c._CONTEXTMENU_REMOVE_EVENT_KEY);c._contextMenu=null;c._htmlNode.style.overflowY="auto"})))}};
neutron.dashboard.panes.Designs.prototype._publicShare=function(a){var b=this.getItemData(a.id);if(!1!==goog.isDefAndNotNull(b)){a=b.mimeType;var c=b.versionUrn,d=this._isCADFile(a),e=null;if(!1==goog.isDefAndNotNull(e)){var f=neutron.dashboard.invoker.getLastUsedProject();!0===this.isInSearchMode()||"RECENT"==f.id?!0==goog.isDefAndNotNull(b)&&(!0==goog.isDefAndNotNull(b.qontextServer)&&(e=b.qontextServer),!1==goog.isDefAndNotNull(e)&&(b=b.punchOutUrl,!0==goog.isDefAndNotNull(b)&&(f=b.indexOf("/data/permalink/"),
0<f&&(e=b.substr(0,f))))):!0==goog.isDefAndNotNull(f)&&(e=f.qontextServer)}neutron.dashboard.Application.instance.executeNeutronCmd("SimpleSharingPublicLinkCommand",JSON.stringify({isCADFile:d.toString(),mimeType:a,isOpenedDoc:"false",qontextServer:e,versionUrn:c}))}};neutron.dashboard.panes.Designs.prototype._isCADFile=function(a){return goog.isDefAndNotNull(a)&&(a=window.neutronJavaScriptObject.executeQuery("isFusionDesign",JSON.stringify({mimeType:a})),!0===JSON.parse(a))?!0:!1};
neutron.dashboard.panes.Designs.prototype._is3rdPartyCAD=function(a,b){if(goog.isDefAndNotNull(a)){var c=window.neutronJavaScriptObject.executeQuery("is3rdPartyCAD",JSON.stringify({mimeType:a,fileType:b}));if(!0===JSON.parse(c))return!0}return!1};neutron.dashboard.panes.Designs.prototype._is3rdPartyCADWithoutUse=function(a){return goog.isDefAndNotNull(a)&&(a=window.neutronJavaScriptObject.executeQuery("is3rdPartyCADWithoutUse",JSON.stringify({mimeType:a})),!0===JSON.parse(a))?!0:!1};
neutron.dashboard.panes.Designs.prototype._displayRenamingInProgress=function(a,b){if(!0===b){var c=new neutron.dashboard.controls.Spinner(a,!0);a._spinner=c;var d=a.clientHeight,c=a._spinner.htmlNode();c.style.width=d+"px";c.style.height=d+"px";a.style.color="lightgray";var e=this._viewType==neutron.dashboard.constants.ViewType.TILE_VIEW,f=!0==e?goog.style.getPaddingBox(a):goog.style.getMarginBox(a),g=f.right,d=a.clientWidth-(f.left+g+d);c.style.top=(!0==e?f.top/2:f.top)+"px";a.style.maxWidth=d+
"px";c.style.right=g+"px"}else a.style.color="",a.style.maxWidth="",!0==goog.isDefAndNotNull(a._spinner)&&a._spinner.dispatchEvent(neutron.dashboard.events.EventType.REMOVE)};
neutron.dashboard.panes.Designs.prototype._renameItem=function(a,b,c){var d=this,e=a.id,f=d.getItemData(e);if(goog.isDefAndNotNull(f)){neutron.dashboard.utils.Report({Action:"DashboardRename",Label:"start"});var g=f.name;console.log("_renameItem "+g);c=f.mimeType;this._userInputActive=!0;c=new neutron.dashboard.controls.InplaceEdit(g,{hiddenExtension:c},function(c){d._userInputActive=!1;b._nd_text.innerText=c;d._displayRenamingInProgress(b._nd_text,!0);var h={oldName:g,newName:c,item:f};goog.isDefAndNotNull(f)&&
(f.name=c);d._renamingItems[e]=c;neutron.dashboard.invoker.renameItem(h,function(e,h){!1==goog.isDefAndNotNull(e)||(!1==goog.isDefAndNotNull(h)||h==neutron.dashboard.constants.Status.PROGRESS)||(d._displayRenamingInProgress(b._nd_text,!1),!1==goog.isDefAndNotNull(e.status)||"renamed"!=e.status?(!0==goog.isDefAndNotNull(e.status)&&"conflict"==e.status?d.showErrorOnFile(neutron.dashboard.utils.FormatUtils.formatString(_LCLZ("Folder %1% already exists."),[f.name]),b,function(){b._nd_text.innerText=g}):
d.showErrorOnFile(_LCLZ("Rename is unavailable"),b,function(){b._nd_text.innerText=g}),goog.isDefAndNotNull(f)&&(f.name=g),neutron.dashboard.utils.Report({Action:"DashboardRename",Label:"error"})):(!0==goog.isDefAndNotNull(d._designExpandPopup)&&d._designExpandPopup.dispatchEvent(new neutron.dashboard.events.UpdateAfterRename(a.id,c)),goog.isDefAndNotNull(f)&&(f.name=c),neutron.dashboard.utils.Report({Action:"DashboardRename",Label:"done"})),goog.object.remove(d._renamingItems,a.id))})},function(){neutron.dashboard.utils.Report({Action:"DashboardRename",
Label:"cancel"})});var h=b._nd_text.offsetTop;0==h&&(h=b._nd_descframe.offsetTop);var k=b._nd_text.offsetLeft;0==k&&(k=b._nd_descframe.offsetLeft);c.dispatchEvent(new neutron.dashboard.events.Update(b,k,h,b._nd_text.offsetWidth-1,b._nd_text.offsetHeight))}else console.warn("invalid itemData for rename")};neutron.dashboard.panes.Designs.prototype.showECMSpinner=function(a,b){this._controller.showECMSpinner(a,b)};neutron.dashboard.panes.Designs.prototype.hideAllECMSpinners=function(){this._controller.hideAllECMSpinners()};
neutron.dashboard.panes.Designs.prototype._cacheItems=function(a,b,c){console.log("_cacheItems "+JSON.stringify(a));b=neutron.dashboard.invoker.cacheItems(a);if(goog.isDefAndNotNull(b)&&"true"==b)for(b=0;b<a.length;b++)a[b].isFolder||this.showECMSpinner(a[b].id,!0)};neutron.dashboard.panes.Designs.prototype.getECMSpinningDesigns=function(){return this._ecmSpinningDesigns};
neutron.dashboard.panes.Designs.prototype.addECMSpinningDesign=function(a){goog.isDefAndNotNull(a)&&""!==a&&(this._ecmSpinningDesigns[a]=!0)};neutron.dashboard.panes.Designs.prototype.removeECMSpinningDesign=function(a){goog.isDefAndNotNull(this._ecmSpinningDesigns[a])&&delete this._ecmSpinningDesigns[a]};neutron.dashboard.panes.Designs.prototype.clearECMSpinningDesigns=function(){this._ecmSpinningDesigns={}};
neutron.dashboard.panes.Designs.prototype.getCacheContents=function(a){a&&(a=neutron.dashboard.invoker.getCacheContents(),goog.isDefAndNotNull(a)?this.cacheContents=a:console.log("Failed to retrieve local cache contents!"));return this.cacheContents};neutron.dashboard.panes.Designs.prototype._deleteItem=function(a,b,c){this._deleteItemHtmlNodes=this._designsSelected;for(b=0;b<this._deleteItemHtmlNodes.length;b++)this.showProgressOnFile(this._deleteItemHtmlNodes[b],!0);neutron.dashboard.invoker.deleteItems(a)};
neutron.dashboard.panes.Designs.prototype._moveItem=function(a,b,c){this._deleteItemHtmlNodes=this._designsSelected;for(b=0;b<this._deleteItemHtmlNodes.length;b++)this.showProgressOnFile(this._deleteItemHtmlNodes[b],!0);b={};b.datasets=a;window.neutronJavaScriptObject.executeCommand("MoveDocumentsCommand",JSON.stringify(b))};
neutron.dashboard.panes.Designs.prototype._copyItem=function(a,b,c){this._deleteItemHtmlNodes=this._designsSelected;for(b=0;b<this._deleteItemHtmlNodes.length;b++)this.showProgressOnFile(this._deleteItemHtmlNodes[b],!0);b={};b.datasets=a;window.neutronJavaScriptObject.executeCommand("CopyDocumentsCommand",JSON.stringify(b))};
neutron.dashboard.panes.Designs.prototype._liveReviewSession=function(a){console.log("_liveReviewSession "+a);this._liveReviewSessionList=[];var b=[];goog.array.forEach(a,function(a){b.push(a.id)});this._openItem(a);this._liveReviewSessionList=b};neutron.dashboard.panes.Designs.prototype._openItem=function(a){console.log("_openItem "+a);this._openDocument(a)};
neutron.dashboard.panes.Designs.prototype._insertAsComponent=function(a){var b=a.id;a=a.projectId;var c={};goog.isDefAndNotNull(b)&&(c.DashboardImportFile=b);goog.isDefAndNotNull(a)&&(c.projectId=a);goog.isDefAndNotNull(null)&&(c.Path=null);neutron.dashboard.Application.instance.executeNeutronCmd("FusionImportCommand",JSON.stringify(c))};
neutron.dashboard.panes.Designs.prototype._uploadNewVersion=function(a){var b=a.id,c=function(a){var c=a.parentFd,f=neutron.dashboard.invoker.getProjectById(a.projectId),g={};g.dmsId=b;g.project=f;g.reImport=!0;g.mimeType=a.mimeType;g.existingName=a.name;g.rootFileName=a.rootFileName;g.parentFd=c;a=neutron.dashboard.utils.FormatUtils.getDataBasedOnMimeType(a.mimeType);null!=a&&null!=a.cssname&&null!=a.displayName&&0<a.cssname.length&&0<a.displayName.length||(g.mimeType="*");neutron.dashboard.Application.instance.executeNeutronCmd("UploadCommand",
JSON.stringify(g))};!0===a.isComplete?c(a):this.refreshItemFromServer(b,function(a){!0===goog.isDefAndNotNull(a)&&c(a)})};neutron.dashboard.panes.Designs.prototype._updateRelatedItems=function(a){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a[0])||!1==goog.isDefAndNotNull(a[0].id))){var b={};b.datasets=a;neutron.dashboard.Application.instance.executeNeutronCmd("UpdateRelatedItemsCommand",JSON.stringify(b))}};
neutron.dashboard.panes.Designs.prototype.refreshItemFromServer=function(a,b){var c=this;neutron.dashboard.invoker.refreshItem(a,function(a,e){!1==goog.isDefAndNotNull(a)||(!1==goog.isDefAndNotNull(e)||e==neutron.dashboard.constants.Status.PROGRESS)||(goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(a.id)?(c.updateItemData(a.id,a),b(a)):b({}))})};
neutron.dashboard.panes.Designs.prototype._createDrawing=function(a){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a[0])||!1==goog.isDefAndNotNull(a[0].id))){a=a[0].id;var b={extUrn:a,fileUri:a};if(!0==this._controller._isOffline||!1==neutron.dashboard.invoker.online())b.downloadPath=a;neutron.dashboard.Application.instance.executeNeutronCmd("DashboardCreateFusionDrawingCommand",JSON.stringify(b))}};
neutron.dashboard.panes.Designs.prototype._createFusionDesign=function(a){a=a[0];if(!(!1===goog.isDefAndNotNull(a.id)||0==a.id.length)){a=a.id;var b=this.getItemData(a);if(!1!==goog.isDefAndNotNull(b)){var c=function(a){var b={};b.lineageURN=a.id;b.parentFolderURN=a.parentFd;b.projectId=a.projectId;b.versionUrn=a.versionUrn;var c=a.name.lastIndexOf(".");b.fileName=0<c?a.name.substr(0,c):a.name;window.neutronJavaScriptObject.executeQuery("convertToFusion",JSON.stringify(b))};!1===b.isComplete?this.refreshItemFromServer(a,
function(a){!0===goog.isDefAndNotNull(a)&&c(a)}):c(b)}}};
neutron.dashboard.panes.Designs.prototype._findUniqueFolderName=function(a){var b=a,c=[],d=[];!0==goog.isDefAndNotNull(this._lastReturnedData.all)&&goog.array.forEach(this._lastReturnedData.all,function(b){!0===b.isFolder&&"folder_new"!==b.mimeType&&(goog.string.contains(b.name,a)&&b.name!==a&&c.push(b.name),b.name===a&&d.push(b.name))});var e=[];0<c.length&&goog.array.forEach(c,function(a){a=/ \( [0-9]{1,4} \)$/g.exec(a);goog.isDefAndNotNull(a)&&1==a.length&&(a=/[0-9]{1,4}/.exec(a[0]),a=parseInt(a),
goog.isNumber(a)&&e.push(a))});var f=null;if(0<e.length){var g=-1;goog.array.forEach(e,function(a){a>g&&(g=a)});f=g}0<d.length&&0===e.length?b+=" ( 1 )":0<d.length&&(0<c.length&&null!=f)&&(b=b+" ( "+ ++f+" )");return b};
neutron.dashboard.panes.Designs.prototype._createNewFolder=function(){neutron.dashboard.utils.Report({Action:"DashboardNewFolder",Label:"start"});if(!0!=this._newFolderMode){this._newFolderMode=!0;this._newFolderAdded=!1;var a=this,b=function(){this._newFolderAdded=a._newFolderMode=!1;a._userInputActive=!1;a.removeTempFolderFromDesignsData(a._lastReturnedData.all);a._update();neutron.dashboard.utils.Report({Action:"DashboardNewFolder",Label:"cancel"})},c=function(b){var c=null;!0===goog.isDefAndNotNull(b)&&
!0===goog.isDefAndNotNull(b.id)&&(c=b.id);a._newFolderMode=!1;a._newFolderAdded=!1;var d=a._designsHtmlElements["fld:new"];if(!0===goog.isDefAndNotNull(d)&&!0===goog.isDefAndNotNull(c)){neutron.dashboard.utils.Report({Action:"DashboardNewFolder",Label:"done"});d.id=c;b.mimeType=null;a.updateItemData("fld:new",b);var e=a.getItemData(c);goog.array.insert(a._lastReturnedData.folders,e);a._designsHtmlElements[c]=d;goog.object.remove(a._designsHtmlElements,"fld:new");d._nd_text.innerText=b.name;a._connectFolderHtmlElementEvents(c,
e,d);a._notifyFoldersChanged();a.refreshCurrentFolder(null,!0);a._displayRenamingInProgress(d._nd_text,!1);var f=goog.events.listen(a._controller,neutron.dashboard.events.EventType.FINISHED,function(b){!0==goog.isDefAndNotNull(f)&&(goog.events.unlistenByKey(f),f=null);b=parseInt(d.style.top);a._sortType==neutron.dashboard.constants.SortType.RECENT_SORT&&(b=0);var c=goog.style.getSize(d).height,e=parseInt(a._htmlNode.style.height),g=parseInt(a._htmlNode.scrollTop);b+c-g>e&&new neutron.dashboard.utils.ScrollAnimator(a._htmlNode,
b)})}else neutron.dashboard.utils.Report({Action:"DashboardNewFolder",Label:"error"}),a.removeTempFolderFromDesignsData(a._lastReturnedData.all),a._update()},d=function(b){var d=neutron.dashboard.invoker.getLastUsedProject();if(!1==goog.isDefAndNotNull(d))c(null);else{var e=a.getCurrFolder();!1==goog.isDefAndNotNull(e)?c(null):(b=a._findUniqueFolderName(b),neutron.dashboard.invoker.createFolder(b,d.id,e,function(b,d){d!=neutron.dashboard.constants.Status.PROGRESS&&(a._bUserCreatingNewProject=!1,goog.isDefAndNotNull(d)&&
d!=neutron.dashboard.constants.Status.DONE?c(null):c(b))}))}},e=function(){!0==goog.isDefAndNotNull(f)&&(goog.events.unlistenByKey(f),f=null);var c=null;if(!(!1==goog.isDefAndNotNull(a._designsHtmlElements)||!1==goog.isDefAndNotNull(a._designsHtmlElements["fld:new"]))){var c=a._designsHtmlElements["fld:new"],e=a._findUniqueFolderName(_LCLZ("New Folder"));a._userInputActive=!0;var e=new neutron.dashboard.controls.InplaceEdit(e,{notifyIfLeave:!0},function(b){a._userInputActive=!1;c._nd_text.innerText=
b;a._displayRenamingInProgress(c._nd_text,!0);d(b)},function(){b()}),k=c._nd_text.offsetTop;0==k&&(k=c._nd_descframe.offsetTop);var l=c._nd_text.offsetLeft;0==l&&(l=c._nd_descframe.offsetLeft);e.dispatchEvent(new neutron.dashboard.events.Update(c,l,k,c._nd_text.offsetWidth-2,c._nd_text.offsetHeight))}},f=goog.events.listen(this._controller,neutron.dashboard.events.EventType.FINISHED,function(a){e()});this._hideDetail();this._update()}};
neutron.dashboard.panes.Designs.prototype._onDesignClick=function(a,b){if(!(goog.isDefAndNotNull(b.fileStatus)&&"deleting"==b.fileStatus))if(0==a.button&&!0==a.ctrlKey||!0==a.metaKey)this._lastSelectedItem=a.currentTarget,this._processCtrlClick(a.currentTarget);else{var c=null;!0==a.shiftKey?(!1==goog.isDefAndNotNull(this._lastSelectedItem)&&(this._lastSelectedItem=this._controller.getFirstItemInRange()),c=this._controller.getElementsInRange(a.currentTarget._index,this._lastSelectedItem._index)):
c=a.currentTarget;this._selectItems(c);var d=function(){!0==goog.isDefAndNotNull(a.currentTarget._clickTimeout)&&(clearTimeout(a.currentTarget._clickTimeout),a.currentTarget._clickTimeout=null)};!1==goog.isDefAndNotNull(a.currentTarget._clickTimeout)?a.currentTarget._clickTimeout=setTimeout(function(){!1==goog.isDefAndNotNull(a)||(!1==goog.isDefAndNotNull(a.currentTarget)||!1==goog.isDefAndNotNull(a.currentTarget.dataset))||d()},300):(d(),c=!1,!0==goog.isDefAndNotNull(b.isFolder)&&!0===b.isFolder&&
(c=!0),!1===c&&this._onDesignDblClick(a,b))}};neutron.dashboard.panes.Designs.prototype._canAddToSelection=function(a){if(neutron.dashboard.invoker.online())return!0;a=this.getItemData(a.id);return goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(a.fileStatus)&&"deleting"===a.fileStatus||goog.isDefAndNotNull(a.existsOnLocal)&&!1===a.existsOnLocal?!1:!0};
neutron.dashboard.panes.Designs.prototype._onDesignDblClick=function(a,b){var c=this;if("temp"!=b.fileStatus&&!(goog.isDefAndNotNull(b.fileStatus)&&"deleting"===b.fileStatus)&&(neutron.dashboard.invoker.online()||!(goog.isDefAndNotNull(b.existsOnLocal)&&!1===b.existsOnLocal)))if(!0!=this._openingDocument()&&!((!1==goog.isDefAndNotNull(b.isFolder)||!1===b.isFolder)&&!1==this._isUserActionEnabledOnHtmlNode(a.currentTarget))){var d=!1;!0==goog.isDefAndNotNull(b.isFolder)&&!0===b.isFolder&&(d=!0);var e=
b.id,f=b.mimeType,g=b.fileType,h=!1;"folder_new"!==f&&(d||(h=this._canBeOpenedInFusion(f,g)),d&&"fld:new"===e||(!0==goog.isDefAndNotNull(a.currentTarget._clickTimeout)&&(clearTimeout(a.currentTarget._clickTimeout),a.currentTarget._clickTimeout=null),!0==d?this._openFolder(b):!0==h?(neutron.dashboard.invoker.getItemBasics(e,function(){c.downloadThumbnailsFor(e)}),this._openDocument([b])):!1==neutron.dashboard.Application.instance.isInOfflineMode()&&this._openDocumentInA360(b)))}};
neutron.dashboard.panes.Designs.prototype._canBeOpenedInFusion=function(a,b){var c=!1;if("application/vnd.autodesk.fusion360"==a||this._isAnyCADSupportedFile(a,b))c=!0;else if(this._is3rdPartyCAD(a,b))c=!1;else if(goog.string.startsWith(a,"application/vnd.autodesk")&&!this._is3rdPartyCADWithoutUse(a))if("application/vnd.autodesk.fusiondoc"==a){var d=window.neutronJavaScriptObject.executeQuery("cmdDefProp",'{ "name": "DashboardCreateFusionDrawingCommand" }');try{d=JSON.parse(d)}catch(e){d=null}!0===
goog.isDefAndNotNull(d)&&!0===d.Visible&&(c=!0)}else c="application/vnd.autodesk.fusion360archive"==a||"application/vnd.autodesk.f2d"==a?!1:!0;else c=!1;return c};
neutron.dashboard.panes.Designs.prototype._onVersionBtnClick=function(a,b){if(!0!=this._openingDocument()&&(a.preventDefault(),a.stopPropagation(),!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.currentTarget)))){var c=goog.dom.getAncestorByClass(a.currentTarget,"datalistNode");!1!=goog.isDefAndNotNull(c.id)&&(this._selectItems(c),c=c.id,!1!=goog.isDefAndNotNull(c)&&this._showDetail(c))}};
neutron.dashboard.panes.Designs.prototype._onDesignContextMenu=function(a,b){!0!=this._openingDocument()&&(!0==goog.isDefAndNotNull(this._mouseMoveHandlerKey)&&(goog.events.unlistenByKey(this._mouseMoveHandlerKey),this._mouseMoveHandlerKey=null),!1==this._isContainedInSelection(a.currentTarget)&&this._selectItems(a.currentTarget),goog.isDefAndNotNull(this._contextMenu)?(this._contextMenu.hideAndRemove(this,this.createContextMenu,a,b),this._userInputActive=!1):this.createContextMenu(a,b),a.preventDefault(),
a.stopPropagation())};neutron.dashboard.panes.Designs.prototype.createContextMenu=function(a,b){!1!=this._isUserActionEnabledOnHtmlNode(a.currentTarget)&&this._createItemContextMenu(a,b)};
neutron.dashboard.panes.Designs.prototype._onDesignMouseDown=function(a,b){var c=this;if(!(goog.isDefAndNotNull(b.fileStatus)&&"deleting"===b.fileStatus)&&!0!=c._openingDocument()&&!(0==a.button&&!0==a.ctrlKey||2==a.button))this._mouseDownXPos=a.clientX,this._mouseDownYPos=a.clientY,!0==goog.isDefAndNotNull(this._mouseMoveHandlerKey)&&(goog.events.unlistenByKey(this._mouseMoveHandlerKey),this._mouseMoveHandlerKey=null),this._mouseMoveHandlerKey=goog.events.listen(a.currentTarget,goog.events.EventType.MOUSEMOVE,
function(a){c._onDesignMouseMove(a,b)})};neutron.dashboard.panes.Designs.prototype._onDesignMouseUp=function(a,b){!0==goog.isDefAndNotNull(this._mouseMoveHandlerKey)&&(goog.events.unlistenByKey(this._mouseMoveHandlerKey),this._mouseMoveHandlerKey=null)};
neutron.dashboard.panes.Designs.prototype._onDesignDragStart=function(a,b){var c=JSON.parse(window.neutronJavaScriptObject.executeQuery("cmdDefProp",'{ "name": "FusionImportCommand" }'));this._selectItems(a.currentTarget);neutron.dashboard.utils.EntitlementHelper.isEntitled(a.currentTarget.dataset.mimeType)&&!1!=c.Enabled&&a.preventDefault()};
neutron.dashboard.panes.Designs.prototype._onDesignMouseMove=function(a,b){if(goog.isDefAndNotNull(a.which)&&0==a.which)!0==goog.isDefAndNotNull(this._mouseMoveHandlerKey)&&(goog.events.unlistenByKey(this._mouseMoveHandlerKey),this._mouseMoveHandlerKey=null);else if((2<Math.abs(this._mouseDownXPos-a.clientX)||2<Math.abs(this._mouseDownYPos-a.clientY))&&!0==goog.isDefAndNotNull(this._mouseMoveHandlerKey)){goog.events.unlistenByKey(this._mouseMoveHandlerKey);this._mouseMoveHandlerKey=null;var c=JSON.parse(window.neutronJavaScriptObject.executeQuery("cmdDefProp",
'{ "name": "FusionImportCommand" }')),d=a.currentTarget.dataset,e=!1;goog.isDefAndNotNull(d)&&(e=neutron.dashboard.utils.EntitlementHelper.isEntitled(d.mimeType));if(e&&!1!=c.Enabled){if(!1===neutron.dashboard.invoker.online()&&(c=!1,goog.isDefAndNotNull(b)&&goog.isDefAndNotNull(b.existsOnLocal)&&(c=b.existsOnLocal),!1==c))return;if(!goog.isDefAndNotNull(b)||!(goog.isDefAndNotNull(b.fileStatus)&&"deleting"===b.fileStatus))this._userInputActive=!0,this._startDrag(a.currentTarget),this._userInputActive=
!1}}};
neutron.dashboard.panes.Designs.prototype._startDrag=function(a){if(!0!=goog.userAgent.MAC){var b=a.id,c=this.getItemData(b);if(!1!=goog.isDefAndNotNull(c)&&!(goog.isDefAndNotNull(c.fileStatus)&&"deleting"===c.fileStatus)&&(!("application/vnd.autodesk.fusion360"!=a.dataset.mimeType&&"application/vnd.autodesk.f3d"!=a.dataset.mimeType)||this._isAnyCADSupportedFile(a.dataset.mimeType,a.dataset.fileType))){a={};a.fileId=b;if(!1===neutron.dashboard.invoker.online()){if(!goog.isDefAndNotNull(c.existsOnLocal)||!1===
c.existsOnLocal){console.log('_startDrag for: "'+c.name+'" is not allowed. Does not exist on local.');return}a.DragDropThumbnail=c.thumbnail}neutron.dashboard.utils.Report({Action:"DashboardInsertDragStart"});neutron.dashboard.Application.instance.executeNeutronCmd("ContinueDragFromDashboardCommand",JSON.stringify(a))}}};
neutron.dashboard.panes.Designs.prototype._processCtrlClick=function(a){!0==goog.dom.classes.has(a,"selected")?(goog.dom.classes.remove(a,"selected"),goog.array.remove(this._designsSelected,a)):this._canAddToSelection(a)&&(goog.dom.classes.add(a,"selected"),goog.array.insert(this._designsSelected,a))};neutron.dashboard.panes.Designs.prototype._isContainedInSelection=function(a){return goog.array.contains(this._designsSelected,a)};
neutron.dashboard.panes.Designs.prototype._selectItems=function(a){var b=this;if(!0==goog.isDefAndNotNull(a)&&!1==goog.isArray(a)){var c=a;a=[];goog.array.insert(a,c);this._lastSelectedItem=c}if(!0==goog.isDefAndNotNull(a)&&!1==goog.array.isEmpty(a)){var d=[];goog.array.forEach(this._designsSelected,function(b){!1==goog.array.contains(a,b)&&goog.array.insert(d,b)});goog.array.forEach(d,function(a){goog.dom.classes.remove(a,"selected");goog.array.remove(b._designsSelected,a)});goog.array.forEach(a,
function(a){!1==goog.array.contains(b._designsSelected,a)&&b._canAddToSelection(a)&&(goog.dom.classes.add(a,"selected"),goog.array.insert(b._designsSelected,a))})}else!0==goog.isDefAndNotNull(this._designsSelected)&&goog.array.forEach(this._designsSelected,function(a){!0==goog.isDefAndNotNull(a)&&goog.dom.classes.remove(a,"selected")}),goog.array.clear(this._designsSelected),this._designsSelected=[],this._lastSelectedItem=this._controller.getFirstItemInRange()};
neutron.dashboard.panes.Designs.prototype.getSelectedDesigns=function(){return this._designsSelected};neutron.dashboard.panes.Designs.prototype._onCreateNewFolder=function(){if(!1!=goog.isDefAndNotNull(this._htmlNode)){var a=this;new neutron.dashboard.utils.ScrollAnimator(this._htmlNode,0,function(){a._createNewFolder()})}};
neutron.dashboard.panes.Designs.prototype._onGetRecentContent=function(a){if(!1!==goog.isDefAndNotNull(a)&&(this._notifyFolderRefreshed(a.data.info),console.log("panes.Designs._onGetRecentContent - "+a.status),a.status!==neutron.dashboard.constants.Status.ERROR)){if(a.status===neutron.dashboard.constants.Status.PROGRESS||a.status===neutron.dashboard.constants.Status.DONE){var b=a.data;console.log("panes.Designs._onGetRecentContent - progress:");console.log(b);if(!1===goog.isDefAndNotNull(b))return;
!1===goog.isDefAndNotNull(this._lastReturnedData)&&(this._lastReturnedData={files:[],all:[]});this._lastReturnedData.moreData=!1;this._lastReturnedData.files=b.files;this._lastReturnedData.all=this._lastReturnedData.files;this._removeUnnecessaryHtmlItems(this._lastReturnedData.all);this.showEmptyProjectMessages(a,!1,!0);console.log("panes.Designs._onGetRecentContent - progress files:");console.log(this._lastReturnedData.files)}a.status===neutron.dashboard.constants.Status.DONE&&(this._moreSearchResultsPossible=
!1,console.log("panes.Designs._onGetRecentContent - done:"),console.log(a.data),"done"==a.status&&goog.object.containsKey(this._parent,"refreshButton")&&(a=this._parent.refreshButton(),goog.dom.classes.add(a._htmlNode,"refresh"),goog.dom.classes.remove(a._htmlNode,"refreshAnim")),this._update(),!0==goog.isDefAndNotNull(this._designExpandPopup)&&!0==goog.isDefAndNotNull(this._designExpandPopupDataId)&&(a=this.getItemData(this._designExpandPopupDataId),!0==goog.isDefAndNotNull(this._designExpandPopupDataId)&&
this._designExpandPopup.setData(a,!1)))}};neutron.dashboard.panes.Designs.prototype.isProjectEmpty=function(){return(!0===goog.isDefAndNotNull(this._lastReturnedData.files)&&0===this._lastReturnedData.files.length||!1===goog.isDefAndNotNull(this._lastReturnedData.files))&&(!0===goog.isDefAndNotNull(this._lastReturnedData.folders)&&0===this._lastReturnedData.folders.length||!1===goog.isDefAndNotNull(this._lastReturnedData.folders))?!0:!1};
neutron.dashboard.panes.Designs.prototype.showEmptyProjectMessages=function(a,b,c){this.isProjectEmpty()&&!1===this._newFolderMode?!1==goog.isDefAndNotNull(a.data.info)?this._parent.showOnlyEmptyProjectSaveMessage(!0):(b=goog.isDefAndNotNull(c)?c:!1,!0==goog.isDefAndNotNull(a.data.info)&&a.data.info.projectName===a.data.info.name&&!b?this._parent.showEmptyProjectMessages(!0):this._parent.showOnlyEmptyProjectSaveMessage(!0)):this._parent.showEmptyProjectMessages(!1,b)};
neutron.dashboard.panes.Designs.prototype._hideEmptyProjectMessages=function(){this._parent.showEmptyProjectMessages(!1,!1)};
neutron.dashboard.panes.Designs.prototype._onGetFolderContent=function(a){var b=this;if(!1!==goog.isDefAndNotNull(a)&&(console.log("panes.Designs._onGetFolderContent - "+a.status),!1!==goog.isDefAndNotNull(a.data)))if(a.status===neutron.dashboard.constants.Status.ERROR){if(goog.isDefAndNotNull(a.data.error_reason)&&(goog.string.contains(a.data.error_reason,"Read access denied")&&neutron.dashboard.Application.instance.dispatchEvent(neutron.dashboard.events.EventType.FOLDER_ACCESS_DENIED),goog.string.contains(a.data.error_reason,
"Node does not exist")||goog.string.contains(a.data.error_reason,"Folder not found")))this._folderPath=this._folderPath.slice(0,1),this._currFolderId=this._folderPath[0].id,this.refreshCurrentFolder()}else if(goog.isDefAndNotNull(a.data)&&!(goog.isDefAndNotNull(this._lastAskedFolderId)&&goog.isDefAndNotNull(a.data.info)&&this._lastAskedFolderId!==a.data.info.id)){!1==goog.isDefAndNotNull(b.controllerFinishedEventKey)&&(b.controllerFinishedEventKey=goog.events.listen(b._controller,neutron.dashboard.events.EventType.FINISHED,
function(a){b.updateFileItem()}));var c=goog.json.serialize(a.data);this._lastReturnedData=goog.json.parse(c);var d={};!0===goog.isDefAndNotNull(this._lastReturnedData.info)&&(goog.isDefAndNotNull(this._lastReturnedData.info.projectName)&&(d.projectName=this._lastReturnedData.info.projectName),goog.isDefAndNotNull(this._lastReturnedData.info.projectId)&&(d.projectId=this._lastReturnedData.info.projectId),goog.isDefAndNotNull(this._lastReturnedData.info.id)&&(d.parentFd=this._lastReturnedData.info.id));
this._lastReturnedData.all=[];goog.isArray(this._lastReturnedData.files)&&(goog.array.forEach(this._lastReturnedData.files,function(a){!0===goog.isDefAndNotNull(a)&&goog.object.extend(a,d)}),this._lastReturnedData.all=this._lastReturnedData.files);goog.isArray(this._lastReturnedData.folders)&&(goog.array.forEach(this._lastReturnedData.folders,function(a){!0===goog.isDefAndNotNull(a)&&goog.object.extend(a,d)}),this._lastReturnedData.all=goog.array.concat(this._lastReturnedData.folders,this._lastReturnedData.all));
this._onGetFolderInfo(a.data.info,a.status);this._notifyFoldersChanged();this._notifyFolderRefreshed(a.data.info);this._removeUnnecessaryHtmlItems(this._lastReturnedData.all);this._hideEmptyProjectMessages();this._newFolderAdded=!1;this._update();"done"==a.status&&(b.showEmptyProjectMessages(a,!1),goog.object.containsKey(this._parent,"refreshButton")&&(a=this._parent.refreshButton(),goog.dom.classes.add(a._htmlNode,"refresh"),goog.dom.classes.remove(a._htmlNode,"refreshAnim")),!0==goog.isDefAndNotNull(this._designExpandPopup)&&
!0==goog.isDefAndNotNull(this._designExpandPopupDataId)&&(a=this.getItemData(this._designExpandPopupDataId),!0==goog.isDefAndNotNull(this._designExpandPopupDataId)&&this._designExpandPopup.setData(a,!1)))}};
neutron.dashboard.panes.Designs.prototype._invokeGetData=function(a,b,c){b=b||this._currFolderId;if(goog.isDefAndNotNull(b)){if(goog.object.containsKey(this._parent,"refreshButton")){var d=this._parent.refreshButton();goog.dom.classes.remove(d._htmlNode,"refresh");goog.dom.classes.add(d._htmlNode,"refreshAnim")}console.log("Invoking Get Folder Content");d=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.SORTTYPE,neutron.dashboard.constants.SortType.NAME_SORT);
this._lastAskedFolderId=b;var e=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.GROUPBY,!1);neutron.dashboard.invoker.getFolderInfo(b,this.__onGetFolderInfo);neutron.dashboard.invoker.getFolderContent(b,c,a,d,e,!0)}};
neutron.dashboard.panes.Designs.prototype._invokeGetRecentData=function(a){console.log("Invoking Get Recent Items");if(goog.object.containsKey(this._parent,"refreshButton")){var b=this._parent.refreshButton();goog.dom.classes.remove(b._htmlNode,"refresh");goog.dom.classes.add(b._htmlNode,"refreshAnim")}this._moreSearchResultsPossible=!1;this._lastReturnedData=null;this._lastAskedFolderId="Recents";neutron.dashboard.invoker.getRecentItems(a)};
neutron.dashboard.panes.Designs.prototype._onGetThumbnails=function(a,b){var c=this,d=!0===this._searchMode?"(SEARCH) ":"",e=function(a){};if(a&&!goog.isArray(a))if(d="_onGetThumbnails:"+d,!0==goog.isDefAndNotNull(a.thumb_status)&&!0==goog.isDefAndNotNull(a.thumb)&&!0==goog.isDefAndNotNull(a.id)){var f=this.getItemData(a.id),g="";!0==goog.isDefAndNotNull(f)&&(g=f.name);d=d+a.stat_code+" ('"+g+"', "+a.id+") "+b+" - thumb_status="+a.thumb_status;!0==goog.isDefAndNotNull(f)&&!0==goog.isDefAndNotNull(a.thumb_status)&&
(f.thumbnail_downloading=!1);"ok"==a.thumb_status||"local_only"==a.thumb_status?0<a.thumb.length&&this._controller.updateHtmlElementByData(a.id,{thumbnail:a.thumb,thumbnailVersion:a.version}):goog.isDefAndNotNull(f)&&"progress"===b&&"failed"==a.thumb_status?(e(d+" - FAILED, "+JSON.stringify(a)),202==a.stat_code&&(!1===goog.isDefAndNotNull(f.getThumnailIteration)&&(f.getThumnailIteration=1,f.getThumbnailInterval=5,f.tryToGetThumnail=!0),!0===f.tryToGetThumnail&&(setTimeout(function(){var a=[];goog.array.insert(a,
f.id);f.thumbnail="";f.thumbnail_downloading=!0;neutron.dashboard.invoker.getThumbnails({ids:a},c.__onGetThumbnail);f.getThumnailIteration+=1},1E3*f.getThumbnailInterval,f),144E3<f.getThumbnailInterval*f.getThumnailIteration?f.tryToGetThumnail=!1:4===f.getThumnailIteration&&(f.getThumnailIteration=1,f.getThumbnailInterval+=10)))):console.warn(d+", "+JSON.stringify(a))}else e(d+", "+JSON.stringify(a))};
neutron.dashboard.panes.Designs.prototype._onGetContentData=function(a,b){if(a&&goog.isArray(a)&&"done"==b){var c=this;goog.array.forEach(a,function(a){a.hasFullContentData=!0;a.hasFullContentData_downloading=!1;c.updateItemData(a.id,a)});c._update();c.updateFileItem()}};
neutron.dashboard.panes.Designs.prototype._onGetFolderInfo=function(a,b){goog.isDefAndNotNull(a)&&"done"==b&&goog.isArray(a.sequence)&&(goog.isArray(this._folderPath)&&0<this._folderPath.length&&0<a.sequence.length&&this._folderPath[0].id!==a.sequence[a.sequence.length-1].id&&!("RECENT"===this._folderPath[0].id||goog.string.startsWith(this._folderPath[0].id,"urn:"))?(neutron.dashboard.notifier.fireErrorMessage(_LCLZ("The folder has been moved out of the project.")),this._folderPath=this._folderPath.slice(0,
1),this._currFolderId=this._folderPath[0].id,this.refreshCurrentFolder()):(this._folderPath=a.sequence.reverse(),this.dispatchEvent(new neutron.dashboard.events.PathChange(this._folderPath))))};neutron.dashboard.panes.Designs.prototype.handleOnProjectChange=function(a){};
neutron.dashboard.panes.Designs.prototype.checkRefresh=function(a){var b=this,c=!1,d=!1,e=b.currentFolderPath(),f=goog.json.parse(a);if(!0==goog.isDefAndNotNull(f.eventType)&&"WipBranchProgress"===f.eventType&&!0==goog.isDefAndNotNull(f.operationName)&&"CreateBranch"===f.operationName&&!0==goog.isDefAndNotNull(f.progress)&&100==f.progress)this._parent.onBranchCreatedPushNotification({data:f});else if(!0==goog.isDefAndNotNull(e)&&(!0==goog.isDefAndNotNull(f.eventType)&&"WipBranchProgress"==f.eventType&&
(d=!0,!0==goog.isDefAndNotNull(f.progress)&&100==f.progress&&!0==goog.isDefAndNotNull(f.projectFolderUrn)&&e[0].id==f.projectFolderUrn&&(c=!0)),e=goog.array.peek(e),!0==goog.isDefAndNotNull(e)&&(e=e.id,!0==goog.isDefAndNotNull(f.parentFolderUrn)&&f.parentFolderUrn==e?c=!0:!0==goog.isDefAndNotNull(f.parentFolderUrn2)&&f.parentFolderUrn2==e&&(c=!0))),!1==c)!0===d?console.log("checkRefresh - skipping CHANGES from different BRANCH - "+a):console.log("checkRefresh - skipping CHANGES in different folder - "+
a);else if(!0==goog.isDefAndNotNull(f.eventType)&&"thumbnail"==f.eventType&&!0==goog.isDefAndNotNull(f.lineageUrn)&&!0==goog.isDefAndNotNull(f.versionUrn)){if(a=f.lineageUrn,c=b.getItemData(a),!0==goog.isDefAndNotNull(c))if(d=f.versionUrn,f=d.indexOf("version="),e=null,0<f&&(e=d.substr(f+8)),f=!1==goog.isDefAndNotNull(c.thumbnail)||!0==goog.isDefAndNotNull(c.thumbnail)&&""==c.thumbnail,d=e==c.version&&c.thumbnailVersion<d,!0===f||!0===d){e=[];goog.array.insert(e,a);var g="";!0===f?g="noThumbnail":
!0===d&&(g="oldThumbnail");console.log('Thumbnail event ("'+c.name+'", '+a+") - "+g+" -> DOWNLOADING");c.thumbnail_downloading=!0;neutron.dashboard.invoker.getThumbnails({ids:e},this.__onGetThumbnail)}else console.log('Thumbnail event ("'+c.name+'", '+a+") - no refresh needed.")}else!0===goog.isDefAndNotNull(f.sameClientMessage)&&!0===f.sameClientMessage||(a=!1===d?_LCLZ("Data in this folder has been updated."):_LCLZ("Data in this branch has been updated."),this._parent.showNotificationMessage(a,
_LCLZ("Refresh"),function(){b.refreshCurrentFolder()}))};neutron.dashboard.panes.Designs.prototype._notifyFoldersChanged=function(){var a=0;goog.isArray(this._lastReturnedData.folders)&&(a=this._lastReturnedData.folders.length);this.dispatchEvent(new neutron.dashboard.events.Change({currentFldId:this._lastAskedFolderId,subfoldersCount:a},null))};neutron.dashboard.panes.Designs.prototype._notifyFolderRefreshed=function(a){neutron.dashboard.notifier.dispatchEvent(new neutron.dashboard.events.FolderRefresh(a))};
neutron.dashboard.panes.Designs.prototype._releaseVersion=function(a,b,c){neutron.dashboard.utils.Report({Action:"DashboardReleaseVersion",Label:"start"});var d={fileUrn:a.id,versionUrn:a.versionUrn,projectId:a.projectId};neutron.dashboard.invoker.releaseVersion(d,function(a,b){!1==goog.isDefAndNotNull(a)||(!1==goog.isDefAndNotNull(b)||b==neutron.dashboard.constants.Status.PROGRESS)||(console.log(d),neutron.dashboard.utils.Report({Action:"DashboardReleaseVersion",Label:"done"}))},function(){neutron.dashboard.utils.Report({Action:"DashboardReleaseVersion",
Label:"error"})})};neutron.dashboard.panes.Designs.prototype._isAnyCADSupportedFile=function(a,b){var c=null,c=window.neutronJavaScriptObject.executeQuery("isAnyCADEnabled","");if(!1===JSON.parse(c))return!1;c=window.neutronJavaScriptObject.executeQuery("isAnyCADSupportedFile",JSON.stringify({mimeType:a,fileType:b}));return!0===JSON.parse(c)};neutron.dashboard.panes.DesignsOffline=function(a){neutron.dashboard.panes.Designs.call(this,a)};goog.inherits(neutron.dashboard.panes.DesignsOffline,neutron.dashboard.panes.Designs);
neutron.dashboard.panes.DesignsOffline.prototype._init=function(){var a=this;this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.GET_OFFLINE_FILES,this,this._onGetOfflineContent);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.FILE_UPDATE,
this,this._onFileUpdate);this._controller=new neutron.dashboard.controllers.designs_pane.Tile(this,!0);this._nextSearchResultsButton=null;this.refreshCurrentFolder()};neutron.dashboard.panes.DesignsOffline.prototype.getCurrFolder=function(){return"OFFLINE"};
neutron.dashboard.panes.DesignsOffline.prototype._onGetOfflineContent=function(a){!1!==goog.isDefAndNotNull(a)&&(console.log("panes.DesignsOffline._onGetFolderContent - "+a.status),!1===goog.isDefAndNotNull(a.data)||a.status===neutron.dashboard.constants.Status.ERROR||(a=goog.json.serialize(a.data),this._lastReturnedData=goog.json.parse(a),this._lastReturnedData.all=this._lastReturnedData.files,this._update()))};
neutron.dashboard.panes.DesignsOffline.prototype._invokeGetData=function(){console.log("Invoking Get Offline Folder Content");neutron.dashboard.invoker.getOfflineFiles()};neutron.dashboard.panes.DesignsOffline.prototype.refreshCurrentFolder=function(){this.dispatchEvent(new neutron.dashboard.events.PathChange(this._folderPath));this._invokeGetData();this._update()};neutron.dashboard.panes.DesignsOffline.prototype._openDocumentInA360=function(a){};
neutron.dashboard.panes.DesignsOffline.prototype._createContextMenuForFusionDesign=function(a,b,c,d){d=[];goog.array.insert(d,b.dataset);goog.array.insert(a,{id:"_openItem",title:_LCLZ("Open"),data:d,disable:c});b=window.neutronJavaScriptObject.executeQuery("cmdDefProp",'{ "name": "DashboardCreateFusionDrawingCommand" }');try{b=JSON.parse(b)}catch(e){b=null}!0===goog.isDefAndNotNull(b)&&!0===b.Visible&&goog.array.insert(a,{id:"create_drawing",title:_LCLZ("Create Drawing"),data:d,disable:c})};
neutron.dashboard.panes.DesignsOffline.prototype._createContextMenuFor3rdPartyCAD=function(a,b,c,d){};neutron.dashboard.panes.DesignsOffline.prototype._createContextMenuForDerivativeData=function(a,b,c,d){d=[];goog.array.insert(d,b.dataset);b=window.neutronJavaScriptObject.executeQuery("cmdDefProp",'{ "name": "DashboardCreateFusionDrawingCommand" }');try{b=JSON.parse(b)}catch(e){b=null}!0===goog.isDefAndNotNull(b)&&!0===b.Visible&&goog.array.insert(a,{id:"_openItem",title:_LCLZ("Open"),data:d,disable:c})};
neutron.dashboard.panes.DesignsOffline.prototype._createContextMenuForNonCADData=function(a,b,c,d){};
neutron.dashboard.panes.DesignsOffline.prototype._startDrag=function(a){if(!0!=goog.userAgent.MAC&&!1!=this._isUserActionEnabledOnHtmlNode(a)){var b=this.getItemData(a.id);if(!1!=goog.isDefAndNotNull(b)&&!("application/vnd.autodesk.fusion360"!=b.mimeType&&"application/vnd.autodesk.f3d"!=b.mimeType)){var c={};a=a.id;c.DragDropThumbnail=b.thumbnail;c.fileId=a;c.DragDropFileData=JSON.stringify({downloadPath:a?a:""});neutron.dashboard.Application.instance.executeNeutronCmd("ContinueDragFromDashboardCommand",
JSON.stringify(c))}}};neutron.dashboard.panes.DesignsOffline.prototype._addContextMenuItemsForCurrentMode=function(a,b){};neutron.dashboard.panes.DesignsOffline.prototype.handleOnBranchChange=function(){};neutron.dashboard.events.ErrorMessageBarChange=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.ERROR_MESSAGE_BAR_CHANGE;this.error=a};goog.inherits(neutron.dashboard.events.ErrorMessageBarChange,goog.events.Event);neutron.dashboard.controls.ErrorMessageBar=function(){neutron.dashboard.RenderableObject.call(this);this._automaticHideTimeout=null;this._permanent=this._shown=!1;this._closeBtn=this._messageContainer=null;this._CLOSE_BUTTON_RIGHT=7;this._CLOSE_BUTTON_SIZE=16};goog.inherits(neutron.dashboard.controls.ErrorMessageBar,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.ErrorMessageBar.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"errorMessageBar"});this._closeBtn=new neutron.dashboard.controls.Dummy("closeBtn",null,{label:_LCLZ("Close the message"),align:"right bottom"});this._messageContainer=goog.dom.createDom("div",{"class":"messageContainer"});this._htmlNode.appendChild(this._messageContainer);a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.ErrorMessageBar.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(!0===goog.isDefAndNotNull(this._closeBtn)&&this._closeBtn.dispatchEvent(new neutron.dashboard.events.Update(this._htmlNode,this._area.width-this._CLOSE_BUTTON_RIGHT-this._CLOSE_BUTTON_SIZE,3,this._CLOSE_BUTTON_SIZE,this._CLOSE_BUTTON_SIZE)),this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=
-1===this._area.height?"auto":this._area.height+"px",!0==this._shown?goog.dom.classes.add(this._htmlNode,"shown"):goog.dom.classes.remove(this._htmlNode,"shown"),!0===this._permanent?(goog.dom.classes.add(this._htmlNode,"permanent"),!0===goog.isDefAndNotNull(this._closeBtn)&&this._closeBtn.show()):(goog.dom.classes.remove(this._htmlNode,"permanent"),!0===goog.isDefAndNotNull(this._closeBtn)&&this._closeBtn.hide()))};
neutron.dashboard.controls.ErrorMessageBar.prototype._remove=function(){this._clearAutoHideTimeout();neutron.dashboard.notifier.unregisterAll(this);this._messageContainer=null;!0==goog.isDefAndNotNull(this._closeBtn)&&(this._closeBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._closeBtn=null)};neutron.dashboard.controls.ErrorMessageBar.prototype.isVisible=function(){return goog.dom.classes.has(this._htmlNode,"shown")};
neutron.dashboard.controls.ErrorMessageBar.prototype._connectEvents=function(){var a=this;neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.ERROR_MESSAGE,this,this._onErrorMessage);!0==goog.isDefAndNotNull(this._closeBtn)&&this._addEventHandlerKey("CLOSE_BTN_CLICK",goog.events.listen(this._closeBtn,goog.events.EventType.CLICK,function(){a._onCloseButton()}))};
neutron.dashboard.controls.ErrorMessageBar.prototype._clearAutoHideTimeout=function(){!0==goog.isDefAndNotNull(this._automaticHideTimeout)&&(clearTimeout(this._automaticHideTimeout),this._automaticHideTimeout=null)};neutron.dashboard.controls.ErrorMessageBar.prototype.show=function(){this._shown=!0;this._update();this._clearAutoHideTimeout();if(!1==this._permanent){var a=this;this._automaticHideTimeout=setTimeout(function(){a.hide()},5E3)}this.dispatchEvent(neutron.dashboard.events.EventType.ERROR_MESSAGE_CHANGE)};
neutron.dashboard.controls.ErrorMessageBar.prototype.hide=function(){this._clearAutoHideTimeout();this._shown=!1;this._update();this.dispatchEvent(neutron.dashboard.events.EventType.ERROR_MESSAGE_CHANGE)};neutron.dashboard.controls.ErrorMessageBar.prototype._onCloseButton=function(){this.hide();this._closeBtn.hide()};
neutron.dashboard.controls.ErrorMessageBar.prototype._onErrorMessage=function(a){!1===goog.isDefAndNotNull(a.message)?(this.hide(),this._permanent=!1):!1===goog.isDefAndNotNull(this._htmlNode)?console.error("Error message html node is not defined"):(this._permanent=!0===a.showPermanently,this._messageContainer.innerHTML=a.message,this.show())};neutron.dashboard.controllers.data_view_board={};
neutron.dashboard.controllers.data_view_board.StandardOffline=function(a){neutron.dashboard.BaseClass.call(this);this._parentObject=a;this._isInOfflineMode=!0;this._PROJECT_SELECTOR_HEIGHT=23;this._CONTENT_PADDING_TOP=6;this._CLOSE_BTN_ICON_SIZE=10;this._CLOSE_BTN_RIGHT_PADDING=12;this._CONTROLS_SIZE=22;this._CONTENT_PADDING_LEFT=16;this._CONTENT_PADDING_RIGHT=38;this._DESIGNPANE_SPACE=this._CONTROLS_SPACING=12;this._DESIGNSPANE_RIGHT_PADDING=30;this._ERROR_MESSAGE_BAR_HEIGHT=20};
goog.inherits(neutron.dashboard.controllers.data_view_board.StandardOffline,neutron.dashboard.BaseClass);
neutron.dashboard.controllers.data_view_board.StandardOffline.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a)){var b=this._controlsParentHtmlNode();if(!1!=goog.isDefAndNotNull(b)){var c=a.width-(this._CLOSE_BTN_ICON_SIZE/2+this._CLOSE_BTN_RIGHT_PADDING+this._CONTROLS_SIZE/2),d=this._parentObject.closeButton();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(b,c,this._CONTENT_PADDING_TOP,
this._CONTROLS_SIZE,this._CONTROLS_SIZE));var e=this._parentObject.synchronisingProgress(),d=0;!0==goog.isDefAndNotNull(e)&&this._parentObject.isInSynchronisingSate()&&(d=this._CONTROLS_SIZE,e.dispatchEvent(new neutron.dashboard.events.Update(b,this._CONTENT_PADDING_LEFT,this._CONTENT_PADDING_TOP,this._CONTROLS_SIZE,this._CONTROLS_SIZE)));if(!0==this._isInOfflineMode&&(e=this._parentObject.projectSelector(),!0==goog.isDefAndNotNull(e))){var f=0;0!=d&&(f=d+this._CONTROLS_SPACING);e.dispatchEvent(new neutron.dashboard.events.Update(b,
this._CONTENT_PADDING_LEFT+f,this._CONTENT_PADDING_TOP,c-this._CONTROLS_SPACING-this._CONTENT_PADDING_LEFT-f,this._PROJECT_SELECTOR_HEIGHT))}d=this._parentObject.topDelimiter();c=this._CONTENT_PADDING_TOP+this._PROJECT_SELECTOR_HEIGHT+this._CONTENT_PADDING_TOP-1;!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(b,this._CONTENT_PADDING_LEFT,c,a.width-this._CONTENT_PADDING_LEFT-this._CONTENT_PADDING_RIGHT,1));d=this._parentObject.errorMessageBar();!0==goog.isDefAndNotNull(d)&&
d.dispatchEvent(new neutron.dashboard.events.Update(b,0,c,a.width,this._ERROR_MESSAGE_BAR_HEIGHT));!0==this._isInOfflineMode&&(d=this._parentObject.designsPane(),!0==goog.isDefAndNotNull(d)&&(c+=this._DESIGNPANE_SPACE,d.dispatchEvent(new neutron.dashboard.events.Update(b,16,c,a.width-this._DESIGNSPANE_RIGHT_PADDING,a.height-c-this._CONTENT_PADDING_TOP))));b=this._parentObject.htmlNode();b.style.top=a.top+"px";b.style.left=a.left+"px";b.style.width=a.width+"px";b.style.height=a.height+"px"}}}};
neutron.dashboard.controllers.data_view_board.StandardOffline.prototype._remove=function(){this._parentObject=null};neutron.dashboard.controllers.data_view_board.StandardOffline.prototype._controlsParentHtmlNode=function(){return!1==goog.isDefAndNotNull(this._parentObject)?null:this._parentObject.htmlNode()};neutron.dashboard.boards.DataViewOffline=function(){neutron.dashboard.RenderableObject.call(this);this._synchronsingProgress=this._errorMessageBar=this._designsPane=this._projectSelector=this._topDelimiter=this._closeBtn=this._controller=null;this.StateType={OFFLINE:"OFFLINE",SYNCHRONISING:"SYNCHRONISING"};var a=this._getURLParameter("state");this._stateType=this.StateType.SYNCHRONISING==a?this.StateType.SYNCHRONISING:this.StateType.OFFLINE;this._offlineSateHeaderText=_LCLZ("Offline Mode");this._synchronisingSateHeaderText=
_LCLZ("Synchronising data");this._CLOSE_CLICK_EVENT_KEY="CLOSE_BTN_CLICK";this._CONTEXT_MENU="CONTEXT_MENU"};goog.inherits(neutron.dashboard.boards.DataViewOffline,neutron.dashboard.RenderableObject);
neutron.dashboard.boards.DataViewOffline.prototype.init=function(){this._createController();this._createDesignsPane();this._createProjectSelector();this._synchronsingProgress=new neutron.dashboard.controls.Dummy("notSelectable ctl_smallProgressSpinner showSpinner posAbsolute");this._closeBtn=new neutron.dashboard.controls.Dummy("topButton close",null,{label:_LCLZ("Close Data Panel 1"),align:"right bottom"});this._topDelimiter=new neutron.dashboard.controls.Dummy("delimiterLine");this._errorMessageBar=
new neutron.dashboard.controls.ErrorMessageBar};neutron.dashboard.boards.DataViewOffline.prototype.closeButton=function(){return this._closeBtn};neutron.dashboard.boards.DataViewOffline.prototype.topDelimiter=function(){return this._topDelimiter};neutron.dashboard.boards.DataViewOffline.prototype.projectSelector=function(){return this._projectSelector};neutron.dashboard.boards.DataViewOffline.prototype.designsPane=function(){return this._designsPane};
neutron.dashboard.boards.DataViewOffline.prototype.errorMessageBar=function(){return this._errorMessageBar};neutron.dashboard.boards.DataViewOffline.prototype.synchronisingProgress=function(){return this._synchronsingProgress};neutron.dashboard.boards.DataViewOffline.prototype.isInSynchronisingSate=function(){return this._stateType==this.StateType.SYNCHRONISING};
neutron.dashboard.boards.DataViewOffline.prototype._getURLParameter=function(a){return decodeURIComponent((RegExp("[?|&]"+a+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[null,""])[1].replace(/\+/g,"%20"))||null};neutron.dashboard.boards.DataViewOffline.prototype._createController=function(){this._controller=new neutron.dashboard.controllers.data_view_board.StandardOffline(this)};neutron.dashboard.boards.DataViewOffline.prototype._createDesignsPane=function(){this._designsPane=new neutron.dashboard.panes.DesignsOffline(this)};
neutron.dashboard.boards.DataViewOffline.prototype._createProjectSelector=function(){var a=this.isInSynchronisingSate()?this._synchronisingSateHeaderText:this._offlineSateHeaderText;this._projectSelector=new neutron.dashboard.controls.Dummy("projectsTitle noSelection",a,null)};neutron.dashboard.boards.DataViewOffline.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{id:"dataViewBoard"});a.appendChild(this._htmlNode);goog.dom.classes.add(a,"rightBorder");this._connectEvents()};
neutron.dashboard.boards.DataViewOffline.prototype._update=function(){!0==goog.isDefAndNotNull(this._controller)&&this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE)};
neutron.dashboard.boards.DataViewOffline.prototype._connectEvents=function(){var a=this;!0==goog.isDefAndNotNull(this._closeBtn)&&this._addEventHandlerKey(this._CLOSE_CLICK_EVENT_KEY,goog.events.listen(this._closeBtn,goog.events.EventType.CLICK,function(){neutron.dashboard.Application.instance.executeNeutronCmd("DashboardModeSwitchCommand","{}")}));this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,
function(b){a._onNeutronEvent(b)}));window.onpopstate=function(){window.history.pushState(null,null,document.URL)};this._addEventHandlerKey(this._CONTEXT_MENU,goog.events.listen(document.body,goog.events.EventType.CONTEXTMENU,function(b){a._onContextMenu(b)}))};
neutron.dashboard.boards.DataViewOffline.prototype._onContextMenu=function(a){var b=window.neutronJavaScriptObject.executeQuery("showDevTools","");!(!0==goog.isDefAndNotNull(b)&&"yes"===b)&&(COMPILED&&"INPUT"!=a.target.nodeName)&&(a.preventDefault(),a.stopPropagation())};
neutron.dashboard.boards.DataViewOffline.prototype._remove=function(){!0==goog.isDefAndNotNull(this._closeBtn)&&(this._closeBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._closeBtn=null);!0==goog.isDefAndNotNull(this._topDelimiter)&&(this._topDelimiter.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._topDelimiter=null);!0==goog.isDefAndNotNull(this._projectSelector)&&(this._projectSelector.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._projectSelector=
null);!0==goog.isDefAndNotNull(this._synchronsingProgress)&&(this._synchronsingProgress.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._synchronsingProgress=null);!0==goog.isDefAndNotNull(this._designsPane)&&(this._designsPane.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._designsPane=null);!0==goog.isDefAndNotNull(this._errorMessageBar)&&(this._errorMessageBar.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._errorMessageBar=null)};
neutron.dashboard.boards.DataViewOffline.prototype._changeViewHeader=function(a){a==this.StateType.OFFLINE?(this._stateType=this.StateType.OFFLINE,goog.isDefAndNotNull(this._projectSelector)&&goog.isDefAndNotNull(this._synchronsingProgress)&&(this._projectSelector.changeTextData(this._offlineSateHeaderText),this._synchronsingProgress.hide())):a==this.StateType.SYNCHRONISING&&(this._stateType=this.StateType.SYNCHRONISING,goog.isDefAndNotNull(this._projectSelector)&&goog.isDefAndNotNull(this._synchronsingProgress)&&
(this._projectSelector.changeTextData(this._synchronisingSateHeaderText),this._synchronsingProgress.show()));this._update()};neutron.dashboard.boards.DataViewOffline.prototype._onNeutronEvent=function(a){"ReloadDesigns"==a.cmdId?this._designsPane.refreshCurrentFolder():"ChangeOfflineViewHeader"==a.cmdId&&(a=goog.json.parse(a.cmdArgs),!0==goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(a.type)&&this._changeViewHeader(a.type))};neutron.dashboard.boards.DataViewOffline.prototype.showProjectsLoading=function(a){};neutron.dashboard.controls.FullPageSpinner=function(a,b){neutron.dashboard.RenderableObject.call(this);this._infoNode=this._spinner=null;!0==goog.isDefAndNotNull(a)&&this._construct(a,b)};goog.inherits(neutron.dashboard.controls.FullPageSpinner,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.FullPageSpinner.prototype._construct=function(a,b){this._htmlNode=goog.dom.createDom("div",{"class":"fullpagespinner"});this._spinner=new neutron.dashboard.controls.Spinner(this._htmlNode);a.appendChild(this._htmlNode);!0===goog.isDefAndNotNull(b)&&this.showMessage(b)};
neutron.dashboard.controls.FullPageSpinner.prototype.showMessage=function(a){var b=this._infoNode;!1===goog.isDefAndNotNull(b)&&(b=goog.dom.createDom("div",{"class":"info"}),this.showNode(b));b.innerHTML=a};neutron.dashboard.controls.FullPageSpinner.prototype.showNode=function(a){!0===goog.isDefAndNotNull(this._infoNode)?goog.dom.replaceNode(a,this._infoNode):this._htmlNode.appendChild(a);this._infoNode=a};
neutron.dashboard.controls.FullPageSpinner.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode)||(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px")};
neutron.dashboard.controls.FullPageSpinner.prototype.removeItself=function(){if(goog.isDefAndNotNull(this._htmlNode)){var a=this,b=this._htmlNode;goog.dom.classes.add(b,"hiding");setTimeout(function(){b.style.opacity=0;setTimeout(function(){a.dispatchEvent(neutron.dashboard.events.EventType.REMOVE)},350)},1)}};neutron.dashboard.controls.FullPageSpinner.prototype._remove=function(){this._infoNode=this._spinner=null};neutron.dashboard.controls.Swipe=function(a){neutron.dashboard.RenderableObject.call(this);this._data=[];this._visibleIdx=0;this._panelHtmlNode=null;goog.array.forEach(a,function(a){goog.array.insert(this._data,{panelContentObject:a,panelHtmlNode:null})},this)};goog.inherits(neutron.dashboard.controls.Swipe,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.Swipe.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"swipeControl"});this._panelHtmlNode=goog.dom.createDom("div",{"class":"swipePanel"});this._htmlNode.appendChild(this._panelHtmlNode);goog.array.forEach(this._data,function(a,c){a.panelHtmlNode=goog.dom.createDom("div",{"class":"swipePane"});this._panelHtmlNode.appendChild(a.panelHtmlNode)},this);a.appendChild(this._htmlNode);this.enableAnimation()};
neutron.dashboard.controls.Swipe.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(goog.array.forEach(this._data,function(a,b){!1!=goog.isDefAndNotNull(a.panelHtmlNode)&&(a.panelHtmlNode.style.left=100*b+"%",a.panelHtmlNode.style.width=this._area.width+"px",!0==goog.isDefAndNotNull(a.panelContentObject)&&a.panelContentObject.dispatchEvent(new neutron.dashboard.events.Update(a.panelHtmlNode,0,0,this._area.width,this._area.height)))},this),this._htmlNode.style.top=this._area.top+"px",
this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px")};neutron.dashboard.controls.Swipe.prototype._remove=function(){this._panelHtmlNode=null;this._data=[]};
neutron.dashboard.controls.Swipe.prototype.swipeTo=function(a){if(a!=this._visibleIdx&&!1!=goog.isDefAndNotNull(this._panelHtmlNode)){var b=this;this._update();var c="translateX(-"+100*a+"%)";this._panelHtmlNode.style.transform=c;this._panelHtmlNode.style.webkitTransform=c;this._visibleIdx=a;setTimeout(function(){b._shrinkUnvisible()},250)}};
neutron.dashboard.controls.Swipe.prototype._shrinkUnvisible=function(){!1!=goog.isDefAndNotNull(this._area)&&goog.array.forEach(this._data,function(a,b){!1!=goog.isDefAndNotNull(a.panelHtmlNode)&&b!=this._visibleIdx&&(a.panelHtmlNode.style.width="0",!0==goog.isDefAndNotNull(a.panelContentObject)&&a.panelContentObject.dispatchEvent(new neutron.dashboard.events.Update(a.panelHtmlNode,0,0,0,this._area.height)))},this)};
neutron.dashboard.controls.Swipe.prototype.enableAnimation=function(a){!1===a?goog.dom.classes.remove(this._panelHtmlNode,"enableSwipeAnimation"):goog.dom.classes.add(this._panelHtmlNode,"enableSwipeAnimation")};neutron.dashboard.controls.Swipe.prototype.visibleIdx=function(){return this._visibleIdx};neutron.dashboard.controllers.project_detail={};
neutron.dashboard.controllers.project_detail.Standard=function(a){neutron.dashboard.BaseClass.call(this,a);this._parentObject=a;this._CLOSE_BUTTON_RIGHT=8;this._CLOSE_BUTTON_TOP=3;this._CLOSE_BUTTON_SIZE=16;this._SEARCH_BUTTON_RIGHT=37;this._BUTTON_PADDING_TOP=this._BUTTON_SIZE=16;this._CONTENT_PADDING_TOP=6;this._BUTTON_SPACE=15;this._TABS_PADDING_TOP=57;this._PROJECT_SELECTOR_HEIGHT=23;this._CONTROLS_SIZE=22;this._CONTENT_PADDING_LEFT=16;this._CONTENT_PADDING_RIGHT=38;this._PROJECT_AVATAR_TOP=8;
this._PROJECT_AVATAR_SIZE=32};goog.inherits(neutron.dashboard.controllers.project_detail.Standard,neutron.dashboard.BaseClass);
neutron.dashboard.controllers.project_detail.Standard.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a)){var b=this._parentObject.htmlNode(),c=a.width-this._CLOSE_BUTTON_RIGHT-this._CLOSE_BUTTON_SIZE,d=this._parentObject.closeButton();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(b,c,this._CLOSE_BUTTON_TOP,this._CLOSE_BUTTON_SIZE,this._CLOSE_BUTTON_SIZE));c=a.width-this._SEARCH_BUTTON_RIGHT-
this._BUTTON_SIZE;d=this._parentObject.searchButton();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(b,c,this._BUTTON_PADDING_TOP,this._BUTTON_SIZE,this._BUTTON_SIZE));c-=this._BUTTON_SIZE+this._BUTTON_SPACE;d=this._parentObject.refreshButton();if(!0==goog.isDefAndNotNull(d)){var e=goog.isDefAndNotNull(d._htmlNode);d.dispatchEvent(new neutron.dashboard.events.Update(b,c,this._BUTTON_PADDING_TOP,18,18));!e&&goog.isDefAndNotNull(d._htmlNode)&&(e=goog.dom.createDom("div",
{"class":"refreshImage"}),d._htmlNode.appendChild(e))}d=this._parentObject.leaveButton();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(b,13,16,16,16));d=this._parentObject.projectAvatarHtmlNode();!0==goog.isDefAndNotNull(d)&&(d.style.left="39px",d.style.top=this._PROJECT_AVATAR_TOP+"px",d.style.width=this._PROJECT_AVATAR_SIZE+"px",d.style.height=this._PROJECT_AVATAR_SIZE+"px");d=this._parentObject.projectNameHtmlNode();!0==goog.isDefAndNotNull(d)&&(e=39+this._PROJECT_AVATAR_SIZE+
8,d.dispatchEvent(new neutron.dashboard.events.Update(b,e,this._PROJECT_AVATAR_TOP,c-15-e-8,this._PROJECT_AVATAR_SIZE)),d.htmlNode().style.lineHeight=this._PROJECT_AVATAR_SIZE+"px");c=this._parentObject.projectDetailTab();!0==goog.isDefAndNotNull(c)&&c.dispatchEvent(new neutron.dashboard.events.Update(b,this._CONTENT_PADDING_LEFT,this._TABS_PADDING_TOP,a.width-this._CONTENT_PADDING_LEFT-this._CONTENT_PADDING_RIGHT,a.height-this._TABS_PADDING_TOP));b.style.top=a.top+"px";b.style.left=a.left+"px";b.style.width=
a.width+"px";b.style.height=a.height+"px"}}};neutron.dashboard.controllers.project_detail.Standard.prototype._remove=function(){this._parentObject=null};neutron.dashboard.controllers.project_detail_pane={};neutron.dashboard.controllers.project_detail_pane.ProjectDetailPeople=function(a){neutron.dashboard.BaseClass.call(this);this._parentObject=a;this._CONTENT_PADDING_BOTTOM=12;this._LIST_RIGHT_SCROLL_WIDTH=24;this._INVITE_CONTROL_HEIGHT=28;this._TEAM_HUB_H=this._TEAM_HUB_W=120};goog.inherits(neutron.dashboard.controllers.project_detail_pane.ProjectDetailPeople,neutron.dashboard.BaseClass);
neutron.dashboard.controllers.project_detail_pane.ProjectDetailPeople.prototype._init=function(){};
neutron.dashboard.controllers.project_detail_pane.ProjectDetailPeople.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a)){var b=this._parentObject.htmlNode();b.style.top=a.top+"px";b.style.left=a.left+"px";b.style.width=a.width+"px";b.style.height=a.height+"px";var c=this._INVITE_CONTROL_HEIGHT,d=this._parentObject.inviteControl();if(!0==goog.isDefAndNotNull(d)){var e=parseInt(d.getAutoSize());0!=e&&(c=e);d.dispatchEvent(new neutron.dashboard.events.Update(b,
0,0,a.width,c))}var f=this._parentObject.peoplePane();!0==goog.isDefAndNotNull(f)&&(d=this._TEAM_HUB_H,f.dispatchEvent(new neutron.dashboard.events.Update(b,0,this._CONTENT_PADDING_BOTTOM+c,a.width+this._LIST_RIGHT_SCROLL_WIDTH,a.height-c-2*this._CONTENT_PADDING_BOTTOM-d-(0<d?this._CONTENT_PADDING_BOTTOM:0))),e=this._parentObject.teamHubButton(),!0==goog.isDefAndNotNull(e)&&(goog.isDefAndNotNull(e._htmlNode),a=(a.width-this._TEAM_HUB_W)/2,c=f.peopleList().getListHeight()+2*this._CONTENT_PADDING_BOTTOM+
c,e.dispatchEvent(new neutron.dashboard.events.Update(b,a,c,this._TEAM_HUB_W,d))))}}};neutron.dashboard.controllers.project_detail_pane.ProjectDetailPeople.prototype._remove=function(){this._parentObject=null};neutron.dashboard.utils.Utils={};neutron.dashboard.utils.Utils.findItemWithValue=function(a,b,c){var d=!1;goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(b)&&goog.array.forEach(a,function(a){goog.isDefAndNotNull(a)&&(a=a[b],goog.isDefAndNotNull(a)&&a===c&&(d=!0))});return d};
neutron.dashboard.utils.Utils.deepExtend=function(a,b){for(var c in b)if(b[c]&&b[c].constructor&&b[c].constructor===Object)a[c]=a[c]||{},arguments.callee(a[c],b[c]);else{if(a[c]&&a[c].constructor&&a[c].constructor===Object)arguments.callee(a[c],b[c]);else if(goog.isDefAndNotNull(a[c]))continue;a[c]=b[c]}return a};
neutron.dashboard.utils.Utils.formatStr=function(a,b){if(!goog.isDefAndNotNull(a)||!goog.isDefAndNotNull(b))return a;goog.object.forEach(b,function(b,d){var e="%"+d.toLocaleUpperCase()+"%";a=a.replace(RegExp(e,"g"),String(b))});return a};goog.testing.watchers={};goog.testing.watchers.resetWatchers_=[];goog.testing.watchers.signalClockReset=function(){for(var a=goog.testing.watchers.resetWatchers_,b=0;b<a.length;b++)goog.testing.watchers.resetWatchers_[b]()};goog.testing.watchers.watchClockReset=function(a){goog.testing.watchers.resetWatchers_.push(a)};goog.async.throwException=function(a){goog.async.nextTick(function(){throw a;})};goog.async.run=function(a,b){goog.async.run.workQueueScheduled_||(goog.async.nextTick(goog.async.run.processWorkQueue),goog.async.run.workQueueScheduled_=!0);goog.async.run.workQueue_.push(new goog.async.run.WorkItem_(a,b))};goog.async.run.workQueueScheduled_=!1;goog.async.run.workQueue_=[];goog.DEBUG&&(goog.async.run.resetQueue_=function(){goog.async.run.workQueueScheduled_=!1;goog.async.run.workQueue_=[]},goog.testing.watchers.watchClockReset(goog.async.run.resetQueue_));
goog.async.run.processWorkQueue=function(){for(;goog.async.run.workQueue_.length;){var a=goog.async.run.workQueue_;goog.async.run.workQueue_=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.fn.call(c.scope)}catch(d){goog.async.throwException(d)}}}goog.async.run.workQueueScheduled_=!1};goog.async.run.WorkItem_=function(a,b){this.fn=a;this.scope=b};neutron.dashboard.controls.InviteEmail=function(a){neutron.dashboard.BaseClass.call(this);this._emailAddress=a};goog.inherits(neutron.dashboard.controls.InviteEmail,neutron.dashboard.BaseClass);neutron.dashboard.controls.InviteEmail.EventType={CLOSE:"neutron.dashboard.controls.InviteEmail.EventType.CLOSE"};neutron.dashboard.controls.InviteEmail.prototype.emailAddress=function(){return this._emailAddress};
neutron.dashboard.controls.InviteEmail.prototype.addNodeBefore=function(a){var b=this;if(!1==goog.isDefAndNotNull(b._htmlNode)){b._htmlNode=goog.dom.createDom("div",{"class":"token"});var c=goog.dom.createDom("div",{"class":"close",title:_LCLZ("Remove")});goog.events.listen(c,goog.events.EventType.CLICK,function(){b._onRemoveButton()});b._htmlNode.appendChild(goog.dom.createTextNode(b._emailAddress));b._htmlNode.appendChild(c)}goog.dom.insertSiblingBefore(b._htmlNode,a)};
neutron.dashboard.controls.InviteEmail.prototype.removeNode=function(){if(!1!=goog.isDefAndNotNull(this._htmlNode)){var a=goog.dom.getElementByClass("close",this._htmlNode);!1!=goog.isDefAndNotNull(this._htmlNode)&&goog.events.removeAll(a);this.removeAllListeners();goog.dom.removeNode(this._htmlNode)}};neutron.dashboard.controls.InviteEmail.prototype._onRemoveButton=function(){this.dispatchEvent(neutron.dashboard.controls.InviteEmail.EventType.CLOSE)};neutron.dashboard.controls.Invite=function(){neutron.dashboard.RenderableObject.call(this);this._htmlEmailInput=this._htmlEmailsContainer=null;this._emails=[];this._htmlInputResp=this._inviteBtn=null;this._autoHeight=0;this._INVITE_CLICK_EVENT_KEY="INVITE_CLICK_EVENT_KEY";this.init()};goog.inherits(neutron.dashboard.controls.Invite,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.Invite.prototype.init=function(){this._inviteBtn=new neutron.dashboard.controls.Dummy("invitebtn",_LCLZ("Invite"),{label:_LCLZ("Invite"),align:"top right"})};
neutron.dashboard.controls.Invite.prototype._construct=function(a){var b=this;b._htmlNode=goog.dom.createDom("div",{"class":"invite noSelection"});var c=goog.dom.createDom("div",{"class":"invitecontent"});b._htmlNode.appendChild(c);b._htmlEmailsContainer=goog.dom.createDom("div",{"class":"inviteinputcontent"});c.appendChild(b._htmlEmailsContainer);b._htmlEmailInput=goog.dom.createDom("input",{placeholder:_LCLZ("Enter email addresses"),type:"search"});b._htmlEmailsContainer.appendChild(b._htmlEmailInput);
b._htmlInputResp=goog.dom.createDom("div",{"class":"inputResp",style:"display: none"});c.appendChild(b._htmlInputResp);a.appendChild(this._htmlNode);goog.events.listen(b._htmlEmailInput,goog.events.EventType.INPUT,function(a){a.preventDefault();b._onAddressChange()});goog.events.listen(b._htmlEmailInput,goog.events.EventType.KEYDOWN,function(a){b._onAddressKeydown(a)});this._addEventHandlerKey(this._INVITE_CLICK_EVENT_KEY,goog.events.listen(this._inviteBtn,goog.events.EventType.CLICK,function(a){a.preventDefault();
b._onInvite(a)}));neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.PROJECT_CHANGE,this,this._updateInputElemsVisible)};neutron.dashboard.controls.Invite.prototype._onAddressKeydown=function(a){switch(a.keyCode){case 8:0==this._htmlEmailInput.value.length&&0<this._emails.length&&(this._emails.pop().removeNode(),this._recomputeInputWidth(),this._autoSize());break;case 13:this._onInvite(a);break;case 9:a.preventDefault()}};
neutron.dashboard.controls.Invite.prototype.isAcceptableEmail=function(a){return goog.isString(a)?(!1==goog.isDefAndNotNull(this._einp)&&(this._einp=goog.dom.htmlToDocumentFragment('<input type="email" required />')),this._einp.value=a,this._einp.checkValidity()):!1};
neutron.dashboard.controls.Invite.prototype._onAddressChange=function(){var a=this,b=a._htmlEmailInput.value.split(/,|;| /),c=!1;goog.array.forEach(b,function(b,e,f){if(e<f.length-1){b=b.trim();if(a.isAcceptableEmail(b)&&!a._isInviteeDuplicate(b)){var g=new neutron.dashboard.controls.InviteEmail(b);goog.events.listen(g,neutron.dashboard.controls.InviteEmail.EventType.CLOSE,function(b){a._onRemoveEmail(g)});a._emails.push(g);g.addNodeBefore(a._htmlEmailInput)}c=!0}});c&&(a._htmlEmailInput.value=b[b.length-
1],a._recomputeInputWidth(),a._autoSize())};neutron.dashboard.controls.Invite.prototype._recomputeInputWidth=function(){goog.style.setWidth(this._htmlEmailInput,0);goog.style.setWidth(this._htmlEmailInput,this._htmlEmailsContainer.offsetWidth-this._htmlEmailInput.offsetLeft)};neutron.dashboard.controls.Invite.prototype._onRemoveEmail=function(a){goog.array.remove(this._emails,a);a.removeNode();this._recomputeInputWidth();this._autoSize()};
neutron.dashboard.controls.Invite.prototype._onInvite=function(a){var b=this,c=function(a){!0==a&&(goog.array.forEach(b._emails,function(a){a.removeNode()}),b._emails=[],b._htmlEmailInput.value="",goog.style.setWidth(b._htmlEmailInput,"100%"));goog.style.setElementShown(b._htmlEmailsContainer,!0);goog.style.setElementShown(b._inviteBtn.htmlNode(),!0);goog.style.setElementShown(b._htmlInputResp,!1);!1==a&&b._autoSize()},d=function(a,c){b.isAcceptableEmail(a)&&goog.array.insert(c,a)};b._isInviteeDuplicate(b._htmlEmailInput.value)&&
(b._htmlEmailInput.value="");var e=[];goog.array.forEach(b._emails,function(a){d(a.emailAddress(),e)});d(b._htmlEmailInput.value,e);1>e.length||(a=neutron.dashboard.invoker.getLastUsedProject(),b._htmlInputResp.innerText=_LCLZ("Sending invitation(s)"),goog.style.setElementShown(b._htmlEmailsContainer,!1),goog.style.setElementShown(b._inviteBtn.htmlNode(),!1),goog.style.setElementShown(b._htmlInputResp,!0),b._autoSize(),neutron.dashboard.invoker.invitePeople(e,a.id,function(a,d){goog.isDefAndNotNull(d)&&
d==neutron.dashboard.constants.Status.DONE?(neutron.dashboard.utils.Report({Action:"InviteMembers - Success",Count:e.length}),c(!0),b.dispatchEvent(neutron.dashboard.events.EventType.INVITATION_DONE)):goog.isDefAndNotNull(d)&&d==neutron.dashboard.constants.Status.ERROR&&(neutron.dashboard.utils.Report({Action:"InviteMembers - Fail",Count:e.length}),b.dispatchEvent(neutron.dashboard.events.EventType.INVITATION_DONE),c(!1))}))};
neutron.dashboard.controls.Invite.prototype._getPeopleListItems=function(){var a=[];if(!1==goog.isDefAndNotNull(this._htmlNode)||!1==goog.isDefAndNotNull(this._htmlNode.parentElement))return a;for(var b=goog.dom.getElementsByClass("primaryEmail",this._htmlNode.parentElement),c=0;c<b.length;++c)a[c]=b[c].innerText;return a};
neutron.dashboard.controls.Invite.prototype._isInviteeDuplicate=function(a){if(!1==goog.isString(a)||""===a.trim())return!1;for(var b=this._getPeopleListItems(),c=0;c<b.length;c++){var d=b[c];if(!0==goog.isDefAndNotNull(d)&&0==goog.string.caseInsensitiveCompare(d,a))return b=_LCLZ("%s is already a member."),b=b.replace("%s",a),window.neutronJavaScriptObject.executeQuery("showWarning",JSON.stringify({title:_LCLZ("People"),text:b})),!0}var e=!1;goog.array.some(this._emails,function(b){return 0==goog.string.caseInsensitiveCompare(b.emailAddress(),
a)?(b=_LCLZ("%s was already specified."),b=b.replace("%s",a),window.neutronJavaScriptObject.executeQuery("showWarning",JSON.stringify({title:_LCLZ("People"),text:b})),e=!0):!1});return e};neutron.dashboard.controls.Invite.prototype._update=function(){var a=this._area.height;-1!=a&&(this._autoHeight=a);this._inviteBtn.dispatchEvent(new neutron.dashboard.events.Update(this._htmlNode,286,0,62,28))};
neutron.dashboard.controls.Invite.prototype._remove=function(){this._htmlInputResp=this._htmlEmailInput=this._htmlEmailsContainer=null;!0==goog.isDefAndNotNull(this._inviteBtn)&&(this._inviteBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._inviteBtn=null)};
neutron.dashboard.controls.Invite.prototype._updateInputElemsVisible=function(){if(goog.isDefAndNotNull(this._htmlEmailInput)&&goog.isDefAndNotNull(this._inviteBtn)){var a=!0;if(!1==neutron.dashboard.invoker.online())a=!1;else{var b=neutron.dashboard.invoker.getLastUsedProject();null==b?a=!1:!0==goog.isDefAndNotNull(b)&&(a=b.canInviteUsers)}!0==a?(this._htmlEmailInput.disabled=!1,this._inviteBtn.enable()):(this._htmlEmailInput.disabled=!0,this._inviteBtn.disable())}};
neutron.dashboard.controls.Invite.prototype._autoSize=function(){var a=this._htmlNode.cloneNode(!0);goog.style.setStyle(a,"transition","none");goog.style.setStyle(a,"-webkit-transition","none");a.style.left="-1000px";a.style.height="auto";a.style.display="none";goog.dom.insertSiblingAfter(a,this._htmlNode);this._autoHeight=goog.style.getSize(a).height;goog.dom.removeNode(a);a=this._autoHeight+"px";this._htmlNode.style.height!=a&&(this._htmlNode.style.height=a,this.dispatchEvent(neutron.dashboard.events.EventType.INPUT_CHANGE))};
neutron.dashboard.controls.Invite.prototype.getAutoSize=function(){return this._autoHeight};neutron.dashboard.controls.Glyph=function(a,b,c,d){neutron.dashboard.RenderableObject.call(this);this._text=a;this._context=b;this._callback=d;this._dataSet=c;this._imgdiv=this._glyphTextHtml=null;this._callbackArgs=[this._dataSet]};goog.inherits(neutron.dashboard.controls.Glyph,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.Glyph.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"itemGlyph"});this._glyphTextHtml=goog.dom.createDom("span",{"class":"glyphText"});this._glyphTextHtml.innerText=this._text;this._htmlNode.appendChild(this._glyphTextHtml);this._imgdiv=goog.dom.createDom("div",{"class":"glyphimg memberimg"});this._htmlNode.appendChild(this._imgdiv);a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.Glyph.prototype._connectEvents=function(){var a=this;goog.events.listen(this._htmlNode,goog.events.EventType.CLICK,function(b){a._callback.apply(a._context,a._callbackArgs)})};neutron.dashboard.controls.CheckmarkGlyph=function(a,b,c,d){neutron.dashboard.controls.Glyph.call(this,a,b,c,d)};goog.inherits(neutron.dashboard.controls.CheckmarkGlyph,neutron.dashboard.controls.Glyph);
neutron.dashboard.controls.CheckmarkGlyph.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"itemGlyph"});this._glyphTextHtml=goog.dom.createDom("span",{"class":"glyphText"});this._glyphTextHtml.innerText=this._text;this._htmlNode.appendChild(this._glyphTextHtml);this._imgdiv=goog.dom.createDom("div",{"class":"glyphimg checkmarkimg"});this._htmlNode.appendChild(this._imgdiv);a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.controls.CrossGlyph=function(a,b,c,d){neutron.dashboard.controls.Glyph.call(this,a,b,c,d)};goog.inherits(neutron.dashboard.controls.CrossGlyph,neutron.dashboard.controls.Glyph);
neutron.dashboard.controls.CrossGlyph.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"itemGlyph lower"});this._glyphTextHtml=goog.dom.createDom("span",{"class":"glyphText"});this._glyphTextHtml.innerText=this._text;this._htmlNode.appendChild(this._glyphTextHtml);this._imgdiv=goog.dom.createDom("div",{"class":"glyphimg crossimg"});this._htmlNode.appendChild(this._imgdiv);a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.events.LeaveProject=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.LEAVE_PROJECT;this.args=a};goog.inherits(neutron.dashboard.events.LeaveProject,goog.events.Event);neutron.dashboard.controllers.people_pane={};neutron.dashboard.controllers.people_pane.List=function(a){neutron.dashboard.BaseClass.call(this);this._parentObject=a};goog.inherits(neutron.dashboard.controllers.people_pane.List,neutron.dashboard.BaseClass);
neutron.dashboard.controllers.people_pane.List.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a)){var b=this._parentObject.htmlNode();if(!1!=goog.isDefAndNotNull(b)){var c=this._parentObject.peopleList();!0==goog.isDefAndNotNull(c)&&c.dispatchEvent(new neutron.dashboard.events.Update(b,0,0,a.width,a.height));b.style.top=a.top+"px";b.style.left=a.left+"px";b.style.width=a.width+"px";b.style.height=a.height+"px"}}}};
neutron.dashboard.controllers.people_pane.List.prototype._remove=function(){this._parentObject=null};neutron.dashboard.events.ContextMenuItemSelected=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.CONTEXT_MENU_ITEM_SELECTED;this.menuId=a;this.itemsData=b};goog.inherits(neutron.dashboard.events.ContextMenuItemSelected,goog.events.Event);neutron.dashboard.events.GroupActionSelected=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.GROUP_ACTION_SELECTED;this.groupId=a;this.actionId=b};goog.inherits(neutron.dashboard.events.GroupActionSelected,goog.events.Event);neutron.dashboard.controls.SelectableList=function(){neutron.dashboard.RenderableObject.call(this);this._htmlElements={};this._listItems=[];this._groupItems=[];this._groupActions={};this._selectedItemId="";this._clickTimeout=this._contextMenu=this._fakeGroupHtmlNode=this._listScrollContainerHtmlNode=this._listContainerHtmlNode=null;this._SCROLL_EVENT_KEY="SCROLL";this._ITEMS_CLICK_EVENT_KEY="ITEMS_CLICK_";this._ITEMS_MOUSE_DOWN_EVENT_KEY="ITEMS_MOUSE_DOWN_";this._ITEMS_DOUBLE_CLICK_EVENT_KEY="ITEMS_DOUBLE_CLICK_";
this._ITEMS_CONTEXT_MENU="ITEMS_CONTEXT_MENU_";this._CONTEXTMENU_ITEM_SELECTED_EVENT_KEY="CONTEXT_MENU_ITEM_SELECTED";this._CONTEXTMENU_REMOVE_EVENT_KEY="CONTEXT_MENU_REMOVE";this._GROUP_ACTION_BTN_CLICK_EVENT_KEY="GROUP_ACTION_BTN_CLICK_";this._GROUP_ACTION_BTN_MOUSE_DOWN_EVENT_KEY="GROUP_ACTION_BTN_MOUSE_DOWN_";this._FAKE_GROUP_ACTION_BTN_CLICK_EVENT_KEY="FAKE_GROUP_ACTION_BTN_CLICK";this._LIST_CONTAINER_RIGHT_MARGIN=26;this._ITEMS_SPACE=12;this._ITEMS_BORDER=1;this._GROUP_MARGIN=3;this._FAKE_GROUP_HEIGHT=
40};goog.inherits(neutron.dashboard.controls.SelectableList,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.SelectableList.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"selectableList noSelection"});this._listScrollContainerHtmlNode=goog.dom.createDom("div",{"class":"listScrollContainer"});this._htmlNode.appendChild(this._listScrollContainerHtmlNode);this._listContainerHtmlNode=goog.dom.createDom("div",{"class":"listContainer"});this._listScrollContainerHtmlNode.appendChild(this._listContainerHtmlNode);this._fakeGroupHtmlNode=goog.dom.createDom("div",
{"class":"listGroup fakeListGroup"});this._htmlNode.appendChild(this._fakeGroupHtmlNode);a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.controls.SelectableList.prototype.getListHeight=function(){var a=this._listContainerHtmlNode.clientHeight,b=this._listScrollContainerHtmlNode.clientHeight;return a<b?a:b};
neutron.dashboard.controls.SelectableList.prototype._update=function(a){if(!1!=goog.isDefAndNotNull(this._area)){var b=this,c=0,d=!0;goog.array.forEach(this._listItems,function(e){if(!1!=goog.isDefAndNotNull(this._htmlElements[e])){var g=this._isItGroup(e);!0==g&&(!1==d?c+=this._GROUP_MARGIN:d=!1);this._htmlElements[e].style.top=c+"px";c+=goog.style.getSize(this._htmlElements[e]).height;!1==goog.dom.classes.has(this._htmlElements[e],"useAnimation")&&!1==g&&setTimeout(function(){!0==goog.isDefAndNotNull(b._htmlElements[e])&&
(goog.dom.classes.add(b._htmlElements[e],"useAnimation"),b._htmlElements[e].style.opacity="1",goog.isDefAndNotNull(a)&&a())},250);!1==g&&(c+=this._ITEMS_SPACE)}},this);this._updateGroupsVisibility();var e=this._area.width-this._LIST_CONTAINER_RIGHT_MARGIN;!0==goog.isDefAndNotNull(this._listContainerHtmlNode)&&(this._listContainerHtmlNode.style.width=e+"px",this._listContainerHtmlNode.style.height=c+"px");!0==goog.isDefAndNotNull(this._fakeGroupHtmlNode)&&(this._fakeGroupHtmlNode.style.width=e+2*this._ITEMS_BORDER+
"px");!0==goog.isDefAndNotNull(this._listScrollContainerHtmlNode)&&(this._listScrollContainerHtmlNode.style.width=this._area.width+"px",this._listScrollContainerHtmlNode.style.height=this._area.height+"px");this._htmlNode.style.top=this._area.top+"px";this._htmlNode.style.left=this._area.left+"px";this._htmlNode.style.width=this._area.width+"px";this._htmlNode.style.height=this._area.height+"px"}};
neutron.dashboard.controls.SelectableList.prototype._remove=function(){this._htmlElements={};this._listItems=[];this._groupItems=[];this._groupActions={};this._fakeGroupHtmlNode=this._listScrollContainerHtmlNode=this._listContainerHtmlNode=null;!0==goog.isDefAndNotNull(this._contextMenu)&&(this._contextMenu.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._contextMenu=null)};
neutron.dashboard.controls.SelectableList.prototype._connectEvents=function(){var a=this;!0==goog.isDefAndNotNull(this._htmlNode)&&this._addEventHandlerKey(this._SCROLL_EVENT_KEY,goog.events.listen(this._listScrollContainerHtmlNode,goog.events.EventType.SCROLL,function(){a._updateGroupsVisibility()}))};
neutron.dashboard.controls.SelectableList.prototype._constructList=function(a){if(!1!=goog.isDefAndNotNull(this._listContainerHtmlNode)){var b={},c=[],d=[];goog.array.forEach(a,function(a){var e=a.id,h=null,h=!0==this._isItGroup(e)?this._constructListGroup(a):this._constructListItem(a);goog.array.insert(c,e);!0==this._isItGroup(e)&&goog.array.insert(d,e);goog.object.containsKey(b,e)?console.warn('Item with id "'+e+'" already exists in selectable list.'):goog.object.add(b,e,h)},this);var e=[];goog.object.forEach(this._htmlElements,
function(a,c){!1==goog.isDefAndNotNull(b[c])&&(goog.array.insert(e,a),!0==this._isItGroup(c)?!0==goog.isDefAndNotNull(this._groupActions)&&!0==goog.isDefAndNotNull(this._groupActions[c])&&this._disconnectGroupActionButtonEvents(c,this._groupActions[c]):this._disconnectItemEvents(c))},this);goog.array.forEach(e,function(a){!1!=goog.isDefAndNotNull(a)&&goog.dom.removeNode(a)},this);this._htmlElements=b;this._listItems=c;this._groupItems=d}};
neutron.dashboard.controls.SelectableList.prototype._constructListGroup=function(a){var b=a.id,c=this._htmlElements[b];if(!1==goog.isDefAndNotNull(c)){var c=goog.dom.createDom("div",{"class":"listGroup"}),d=goog.dom.createDom("div",{"class":"titleContainer"});goog.string.contains(b,"h_delimiter")&&goog.dom.classes.add(c,"h_delimiter");c.appendChild(d);this._listContainerHtmlNode.appendChild(c)}d=goog.dom.getElementsByClass("titleContainer",c);!0==goog.isDefAndNotNull(d)&&1==d.length&&(d[0].innerHTML=
a.title);if(!0==goog.isDefAndNotNull(a.action)&&!0==goog.isDefAndNotNull(a.action.label)){var d=goog.dom.getElementsByClass("label",c),e=null;!0==goog.isDefAndNotNull(d)&&1==d.length&&(e=d[0]);if(!1==goog.isDefAndNotNull(e)){if(!0==goog.isDefAndNotNull(a.action.id)){d=goog.dom.createDom("div",{"class":"actionButton tooltipParent"});c.appendChild(d);var f=goog.dom.createDom("div",{"class":"label"});d.appendChild(f);!0==goog.isDefAndNotNull(a.action.tooltip)&&(e=goog.dom.createDom("div",{"class":"tooltip right bottom"}),
d.appendChild(e));this._connectGroupActionButtonEvents(d,b,a.action.id)}e=f}!0==goog.isDefAndNotNull(e)&&(e.innerHTML=a.action.label,!0==goog.isDefAndNotNull(a.action.enabled)&&(!1===a.action.enabled?goog.dom.classes.add(e,"_disabled_"):goog.dom.classes.remove(e,"_disabled_")),!0==goog.isDefAndNotNull(a.action.tooltip)&&(b=goog.dom.getElementsByClass("tooltip",c),!0==goog.isDefAndNotNull(b)&&1==b.length&&(b[0].innerHTML=a.action.tooltip)));b=goog.dom.getElementsByClass("actionButton",c);goog.isDefAndNotNull(b)&&
(1==b.length&&!0==goog.isDefAndNotNull(a.action.enabled))&&(b=b[0],a.action.enabled?goog.dom.classes.remove(b,"_disabled_"):goog.dom.classes.add(b,"_disabled_"))}else e=goog.dom.getElementsByClass("actionButton",c),!0==goog.isDefAndNotNull(e)&&1==e.length&&c.removeChild(e[0]);return c};
neutron.dashboard.controls.SelectableList.prototype.showProgress=function(a,b){var c=null,c=goog.isDefAndNotNull(a)?this._htmlElements[a]:this._htmlElements[this._selectedItemId];goog.isDefAndNotNull(c)&&(!0===b?c._spinner=new neutron.dashboard.controls.Spinner(c):goog.isDefAndNotNull(c._spinner)&&(c._spinner.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),c._spinner=null))};
neutron.dashboard.controls.SelectableList.prototype.showError=function(a,b,c){var d=null;if(goog.isDefAndNotNull(b)){if(d=this._htmlElements[b],goog.isDefAndNotNull(d)){a=goog.isDefAndNotNull(a)?a:"";0==a.length&&(a=_LCLZ("Operation failed"));var e=d._errorMessage;e.innerText=a;goog.dom.classes.add(e.parentNode,"showByScale");setTimeout(function(){goog.dom.classes.remove(e.parentNode,"showByScale");goog.isDefAndNotNull(c)&&c()},5E3)}}else goog.isDefAndNotNull(c)&&c()};
neutron.dashboard.controls.SelectableList.prototype._constructListItem=function(a){var b=a.id,c=this._htmlElements[b];!1==goog.isDefAndNotNull(c)?(c=goog.dom.createDom("div",{"class":"listItem"}),this._listContainerHtmlNode.appendChild(c)):this._disconnectItemEvents(b);this._connectItemEvents(c,b,a.customData);c.innerHTML="";c.appendChild(a.htmlNode);b=goog.dom.createDom("div",{"class":"errorMessage"});c._errorMessage=goog.dom.createDom("div",{"class":"content"});b.appendChild(c._errorMessage);c.appendChild(b);
this._selectedItemId==a.id&&goog.dom.classes.add(c,"selected");return c};neutron.dashboard.controls.SelectableList.prototype.reconnectListItem=function(a,b){if(!0===goog.isDefAndNotNull(a)){var c=this._htmlElements[a];!0===goog.isDefAndNotNull(c)&&(this._disconnectItemEvents(a),this._connectItemEvents(c,a,b))}};
neutron.dashboard.controls.SelectableList.prototype.updateList=function(a,b){for(var c=!1,d,e=0;e<a.length;e++){var f=a[e];f.id==this._selectedItemId&&(c=!0);!0==f.selected&&(d=f.id)}!1==c&&(this._selectedItemId=d);this._constructList(a);this._update(b)};neutron.dashboard.controls.SelectableList.prototype._isItGroup=function(a){return goog.string.startsWith(a,"group")};
neutron.dashboard.controls.SelectableList.prototype.scrollTo=function(a,b){if(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(this._listScrollContainerHtmlNode))return!0==goog.isDefAndNotNull(b)&&b(),!1;var c=0,d=!1;!0==goog.isDefAndNotNull(this._htmlElements)&&!0==goog.isDefAndNotNull(this._htmlElements[a])&&(d=!0,c=parseInt(this._htmlElements[a].style.top),!1==this._isItGroup(a)&&c>this._FAKE_GROUP_HEIGHT&&(c-=this._FAKE_GROUP_HEIGHT));new neutron.dashboard.utils.ScrollAnimator(this._listScrollContainerHtmlNode,
c,b);return d};neutron.dashboard.controls.SelectableList.prototype.makeItemResponsive=function(a,b){if(!0==b){var c=this._htmlElements[a];goog.isDefAndNotNull(c)&&this._connectItemEvents(c,a)}else this._disconnectItemEvents(a)};
neutron.dashboard.controls.SelectableList.prototype.removeItem=function(a,b,c){var d=this,e=this._htmlElements[a];goog.isDefAndNotNull(e)&&(this._selectedItemId===a&&(this._selectedItemId="",goog.dom.classes.remove(e,"selected")),goog.dom.classes.add(e,"hide"),goog.array.remove(d._listItems,a),setTimeout(function(){goog.object.remove(d._htmlElements,a);!0===goog.isDefAndNotNull(b)&&!0===b&&goog.dom.removeNode(e);d._update();!0===goog.isDefAndNotNull(c)&&c()},400))};
neutron.dashboard.controls.SelectableList.prototype.updateElementId=function(a,b){var c=this._htmlElements[a];!1!=goog.isDefAndNotNull(c)&&(this._disconnectItemEvents(a),this._connectItemEvents(c,b),goog.object.add(this._htmlElements,b,c),goog.object.remove(this._htmlElements,a),this._selectedItemId==a&&(this._selectedItemId=b))};neutron.dashboard.controls.SelectableList.prototype.getSelectedItem=function(){return!1==goog.isDefAndNotNull(this._selectedItemId)?null:this._htmlElements[this._selectedItemId]};
neutron.dashboard.controls.SelectableList.prototype.getSelectedItemId=function(){return!1==goog.isDefAndNotNull(this._selectedItemId)?null:this._selectedItemId};neutron.dashboard.controls.SelectableList.prototype.clearSelection=function(){goog.object.forEach(this._htmlElements,function(a){goog.dom.classes.remove(a,"selected")});this._selectedItemId=null};
neutron.dashboard.controls.SelectableList.prototype.applyToAll=function(a){var b=this;!1==goog.isDefAndNotNull(this._htmlElements)||!1==goog.isDefAndNotNull(a)||goog.object.forEach(this._htmlElements,function(c){a.call(b,c)})};
neutron.dashboard.controls.SelectableList.prototype.selectItem=function(a){!1==goog.isDefAndNotNull(this._htmlElements)||!1==goog.isDefAndNotNull(this._htmlElements[a])||(goog.object.forEach(this._htmlElements,function(a){goog.dom.classes.remove(a,"selected")}),this._selectedItemId=a,!0==goog.isDefAndNotNull(this._htmlElements[this._selectedItemId])&&goog.dom.classes.add(this._htmlElements[this._selectedItemId],"selected"))};
neutron.dashboard.controls.SelectableList.prototype._connectItemEvents=function(a,b,c){if(!1!=goog.isDefAndNotNull(a)){this._disconnectItemEvents(b);var d=this;this._addEventHandlerKey(this._ITEMS_CLICK_EVENT_KEY+b,goog.events.listen(a,goog.events.EventType.CLICK,function(){d._onItemClick(b)}));this._addEventHandlerKey(this._ITEMS_DOUBLE_CLICK_EVENT_KEY+b,goog.events.listen(a,goog.events.EventType.DBLCLICK,function(){d._onItemDoubleClick(b,c)}));this._addEventHandlerKey(this._ITEMS_CONTEXT_MENU+b,
goog.events.listen(a,goog.events.EventType.CONTEXTMENU,function(a){d._onItemContextMenu(a,b)}));!0==goog.userAgent.MAC&&this._addEventHandlerKey(this._ITEMS_MOUSE_DOWN_EVENT_KEY+b,goog.events.listen(a,goog.events.EventType.MOUSEDOWN,function(a){a.preventDefault();a.stopPropagation();return!1}))}};
neutron.dashboard.controls.SelectableList.prototype._disconnectItemEvents=function(a){this._disconnectEventByEventName(this._ITEMS_CLICK_EVENT_KEY+a);this._disconnectEventByEventName(this._ITEMS_DOUBLE_CLICK_EVENT_KEY+a);this._disconnectEventByEventName(this._ITEMS_CONTEXT_MENU+a);this._disconnectEventByEventName(this._ITEMS_MOUSE_DOWN_EVENT_KEY+a)};
neutron.dashboard.controls.SelectableList.prototype._connectGroupActionButtonEvents=function(a,b,c){if(!1!=goog.isDefAndNotNull(a)){this._groupActions[b]=c;var d=this;this._addEventHandlerKey(this._GROUP_ACTION_BTN_CLICK_EVENT_KEY+b+c,goog.events.listen(a,goog.events.EventType.CLICK,function(){d._onGroupActionButtonClick(b,c)}));!0==goog.userAgent.MAC&&this._addEventHandlerKey(this._GROUP_ACTION_BTN_MOUSE_DOWN_EVENT_KEY+b+c,goog.events.listen(a,goog.events.EventType.MOUSEDOWN,function(a){a.preventDefault();
a.stopPropagation();return!1}))}};neutron.dashboard.controls.SelectableList.prototype._disconnectGroupActionButtonEvents=function(a,b){this._disconnectEventByEventName(this._GROUP_ACTION_BTN_CLICK_EVENT_KEY+a+b);this._disconnectEventByEventName(this._GROUP_ACTION_BTN_MOUSE_DOWN_EVENT_KEY+a+b);goog.object.remove(this._groupActions,a)};
neutron.dashboard.controls.SelectableList.prototype._connectFakeGroupActionButtonEvents=function(){if(!1!=goog.isDefAndNotNull(this._fakeGroupHtmlNode)){var a=goog.dom.getElementsByClass("actionButton",this._fakeGroupHtmlNode);if(!0==goog.isDefAndNotNull(a)&&1==a.length){var b=this;this._addEventHandlerKey(this._FAKE_GROUP_ACTION_BTN_CLICK_EVENT_KEY,goog.events.listen(a[0],goog.events.EventType.CLICK,function(a){var d=function(){!0==goog.isDefAndNotNull(b._clickTimeout)&&(clearTimeout(b._clickTimeout),
b._clickTimeout=null)};!1==goog.isDefAndNotNull(b._clickTimeout)?b._clickTimeout=setTimeout(function(){d();b._onFakeGroupActionButtonClick(a)},300):d()}))}}};neutron.dashboard.controls.SelectableList.prototype._disconnectFakeGroupActionButtonEvents=function(){this._disconnectEventByEventName(this._FAKE_GROUP_ACTION_BTN_CLICK_EVENT_KEY)};
neutron.dashboard.controls.SelectableList.prototype._updateGroupsVisibility=function(){if(!1!=goog.isDefAndNotNull(this._listScrollContainerHtmlNode)){var a=this._listScrollContainerHtmlNode.scrollTop,b=null,c=-1E7;goog.array.forEach(this._groupItems,function(d){d=this._htmlElements[d];if(!1!=goog.isDefAndNotNull(d)){var e=parseInt(d.style.top)-a;e>this._FAKE_GROUP_HEIGHT||(0<e&&e<=this._FAKE_GROUP_HEIGHT&&!0==goog.isDefAndNotNull(this._fakeGroupHtmlNode)?(d=this._FAKE_GROUP_HEIGHT-e,this._fakeGroupHtmlNode.style.transform=
"translateY(-"+d+"px)",this._fakeGroupHtmlNode.style.webkitTransform="translateY(-"+d+"px)"):(this._fakeGroupHtmlNode.style.transform="translateY(0px)",this._fakeGroupHtmlNode.style.webkitTransform="translateY(0px)",e>c&&(c=e,b=d.innerHTML)))}},this);!0==goog.isDefAndNotNull(this._fakeGroupHtmlNode)&&(!0==goog.isDefAndNotNull(b)?this._fakeGroupHtmlNode.innerHTML!=b&&(this._disconnectFakeGroupActionButtonEvents(),this._fakeGroupHtmlNode.innerHTML=b,this._fakeGroupHtmlNode.style.display="block",this._connectFakeGroupActionButtonEvents()):
this._fakeGroupHtmlNode.style.display="none")}};neutron.dashboard.controls.SelectableList.prototype._onItemClick=function(a){this.selectItem(a)};neutron.dashboard.controls.SelectableList.prototype._onItemDoubleClick=function(a,b){this.selectItem(a);this.dispatchEvent(new neutron.dashboard.events.ItemSelected(a,b))};
neutron.dashboard.controls.SelectableList.prototype._onItemContextMenu=function(a,b){this.selectItem(b);goog.isDefAndNotNull(this._contextMenu)?this._contextMenu.hideAndRemove(this,this.createContextMenu,a):this.createContextMenu(a);a.preventDefault();a.stopPropagation()};neutron.dashboard.controls.SelectableList.prototype.createContextMenu=function(a){this._eventContextMenu=a;this.dispatchEvent(neutron.dashboard.events.EventType.CREATE_CONTEXT_MENU)};
neutron.dashboard.controls.SelectableList.prototype._onGroupActionButtonClick=function(a,b){this.dispatchEvent(new neutron.dashboard.events.GroupActionSelected(a,b))};
neutron.dashboard.controls.SelectableList.prototype._onFakeGroupActionButtonClick=function(){!1!=goog.isDefAndNotNull(this._fakeGroupHtmlNode)&&goog.array.forEach(this._groupItems,function(a){a=this._htmlElements[a];!1!=goog.isDefAndNotNull(a)&&this._fakeGroupHtmlNode.innerHTML==a.innerHTML&&(a=goog.dom.getElementsByClass("actionButton",a),!0==goog.isDefAndNotNull(a)&&1==a.length&&a[0].click())},this)};
neutron.dashboard.controls.SelectableList.prototype.processContextMenuItems=function(a){var b=this;0<a.length&&(b._contextMenu=new neutron.dashboard.controls.ContextMenu(a,b._eventContextMenu.currentTarget),b._contextMenu._design=b,b._contextMenu.dispatchEvent(new neutron.dashboard.events.Update(document.body,b._eventContextMenu.clientX,b._eventContextMenu.clientY,-1,-1)),setTimeout(function(){b._htmlNode.style.overflowY="hidden";b._contextMenu.show()},50),b._addEventHandlerKey(b._CONTEXTMENU_ITEM_SELECTED_EVENT_KEY,
goog.events.listen(b._contextMenu,neutron.dashboard.events.EventType.ITEM_SELECTED,function(a){b._contextMenu.hideAndRemove();b.dispatchEvent(new neutron.dashboard.events.ContextMenuItemSelected(a.itemId,b._selectedItemId))})),b._addEventHandlerKey(b._CONTEXTMENU_REMOVE_EVENT_KEY,goog.events.listen(b._contextMenu,neutron.dashboard.events.EventType.REMOVE,function(){b._disconnectEventByEventName(b._CONTEXTMENU_ITEM_SELECTED_EVENT_KEY);b._disconnectEventByEventName(b._CONTEXTMENU_REMOVE_EVENT_KEY);
b._contextMenu=null;b._htmlNode.style.overflowY="auto"})))};neutron.dashboard.panes.People=function(){neutron.dashboard.RenderableObject.call(this);this._peopleList=null;this._currentProjectTeamHUBPromo=!1;this._ITEM_SELECTED_EVENT_KEY="ITEM_SELECTED";this._CONTEXT_MENU_ITEM_SELECTED_EVENT_KEY="CONTEXT_MENU_ITEM_SELECTED";this._PEOPLE_LIST_CREATE_CONTEXT_MENU="PEOPLE_LIST_CREATE_CONTEXT_MENU";this._init()};goog.inherits(neutron.dashboard.panes.People,neutron.dashboard.RenderableObject);
neutron.dashboard.panes.People.prototype._init=function(){this._controller=new neutron.dashboard.controllers.people_pane.List(this);this._peopleList=new neutron.dashboard.controls.SelectableList};neutron.dashboard.panes.People.prototype.peopleList=function(){return this._peopleList};neutron.dashboard.panes.People.prototype.shouldDisplayTeamHubBtn=function(){return this._currentProjectTeamHUBPromo&&1<this._peopleList._listItems.length};
neutron.dashboard.panes.People.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"peoplePane"});a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.panes.People.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._controller)||(this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE),!1===neutron.dashboard.invoker.online()?this._peopleList.applyToAll(this._disableGlyphItem):this._peopleList.applyToAll(this._showGlyphItem))};
neutron.dashboard.panes.People.prototype._showGlyphItem=function(a){if(goog.isDefAndNotNull(a)){a=a.getElementsByClassName("itemGlyph");var b=null;0<a.length&&(b=a[0]);goog.isDefAndNotNull(b)&&goog.dom.classes.remove(b,"_disabled_")}};neutron.dashboard.panes.People.prototype._disableGlyphItem=function(a){if(goog.isDefAndNotNull(a)){a=a.getElementsByClassName("itemGlyph");var b=null;0<a.length&&(b=a[0]);goog.isDefAndNotNull(b)&&goog.dom.classes.add(b,"_disabled_")}};
neutron.dashboard.panes.People.prototype._removeMember=function(a){var b=this,c=a.accountId;this._peopleList.selectItem(c);a=a.projectId;this._peopleList.showProgress(c,!0);this._peopleList.makeItemResponsive(c,!1);var d=function(){var a={};a.count=b._peopleList._listItems.length;a.add=!1;b.dispatchEvent(new neutron.dashboard.events.Change(a,null))};neutron.dashboard.invoker.removeUserFromProject(a,c,function(a,f){f!=neutron.dashboard.constants.Status.PROGRESS&&(b._peopleList.showProgress(c,!1),goog.isDefAndNotNull(f)&&
f==neutron.dashboard.constants.Status.DONE?b._peopleList.removeItem(c,!0,d):(b._peopleList.makeItemResponsive(c,!0),b._peopleList.showError("",c)))})};neutron.dashboard.panes.People.prototype._leaveMember=function(a){this.dispatchEvent(new neutron.dashboard.events.LeaveProject(a))};
neutron.dashboard.panes.People.prototype._approveMember=function(a){var b=this,c=a.accountId;this._peopleList.selectItem(c);a=a.projectId;this._peopleList.showProgress(c,!0);this._peopleList.makeItemResponsive(c,!1);neutron.dashboard.invoker.approveUserToProject(a,c,function(a,e){e!=neutron.dashboard.constants.Status.PROGRESS&&(b._peopleList.showProgress(c,!1),goog.isDefAndNotNull(e)&&e==neutron.dashboard.constants.Status.DONE?b.updatePeopleList():(b._peopleList.makeItemResponsive(c,!0),b._peopleList.showError("",
c)))})};
neutron.dashboard.panes.People.prototype._rejectMember=function(a){var b=this,c=a.accountId;this._peopleList.selectItem(c);a=a.projectId;this._peopleList.showProgress(c,!0);this._peopleList.makeItemResponsive(c,!1);var d=function(){var a={};a.count=b._peopleList._listItems.length;a.add=!1;b.dispatchEvent(new neutron.dashboard.events.Change(a,null))};neutron.dashboard.invoker.rejectUserFromProject(a,c,function(a,f){f!=neutron.dashboard.constants.Status.PROGRESS&&(b._peopleList.showProgress(c,!1),goog.isDefAndNotNull(f)&&
f==neutron.dashboard.constants.Status.DONE?b._peopleList.removeItem(c,!0,d):(b._peopleList.makeItemResponsive(c,!0),b._peopleList.showError("",c)))})};neutron.dashboard.panes.People.prototype.updatePeopleList=function(a){var b=this;if(!1!=goog.isDefAndNotNull(this._peopleList)){var c=neutron.dashboard.invoker.getLastUsedProject();neutron.dashboard.invoker.getUserList(c,function(c){b._updatePeopleListCallback(c,a)})}};
neutron.dashboard.panes.People.prototype._updatePeopleListCallback=function(a,b){if(!1!=goog.isDefAndNotNull(a)){var c=[],d=[],e=this,f=neutron.dashboard.invoker.getLastUsedProject(),g="type:Qontext Experience"===f.typeToken;this._currentProjectTeamHUBPromo=f.teamHubPromo;goog.array.forEach(a,function(a){var b=goog.dom.createDom("div"),h=goog.dom.createDom("div",{"class":"peopleListItem"}),n="NOT_A_MEMBER"===a.membership,q=goog.dom.createDom("div",{"class":"peopleAvatar"});!1===a.hasDefaultAvatar&&
!0==goog.isDefAndNotNull(a.avatarURL)&&a.avatarURL.length?neutron.dashboard.Application.instance.pictureCache().getData(a.avatarURL,function(a){q.style.backgroundImage='url("'+a+'")'}):(q.style.backgroundColor=a.avatarBgColor,q.innerHTML=a.initials);h.appendChild(q);if(!0!=g&&!0!==f.isLibrary){var p=null,r=null,s={projectId:f.id,accountId:a.accountId};"MEMBER"===f.membershipType?"true"===a.isUserLogged&&(goog.object.add(s,"leave",!0),p=_LCLZ("Leave"),r=e._leaveMember):"MEMBER"===a.membership?(p=_LCLZ("Remove"),
r=e._removeMember):n&&"MODERATOR"===f.membershipType&&((new neutron.dashboard.controls.CheckmarkGlyph(_LCLZ("Approve"),e,s,e._approveMember)).dispatchEvent(new neutron.dashboard.events.Update(h,-1,-1,-1,-1)),(new neutron.dashboard.controls.CrossGlyph(_LCLZ("Reject"),e,s,e._rejectMember)).dispatchEvent(new neutron.dashboard.events.Update(h,-1,-1,-1,-1)));goog.isDefAndNotNull(p)&&goog.isDefAndNotNull(r)&&(new neutron.dashboard.controls.Glyph(p,e,s,r)).dispatchEvent(new neutron.dashboard.events.Update(h,
-1,-1,-1,-1))}!0==goog.isDefAndNotNull(a.fullName)&&(p=goog.dom.createDom("div",{"class":"fullName"},a.fullName),h.appendChild(p));!0==goog.isDefAndNotNull(a.membership)&&"MODERATOR"==a.membership&&(p=goog.dom.createDom("div",{"class":"peopleModerator"},_LCLZ("Moderator")),h.appendChild(p));goog.isDefAndNotNull(a.personalTitle)&&!1===goog.string.isEmpty(a.personalTitle)&&(p=goog.dom.createDom("div",{"class":"value"}),p.innerText=a.personalTitle,h.appendChild(p));goog.isDefAndNotNull(a.company)&&!1===
goog.string.isEmpty(a.company)&&(p=goog.dom.createDom("div",{"class":"value"}),p.innerText=a.company,h.appendChild(p));!0==goog.isDefAndNotNull(a.primaryEmail)?(p=goog.dom.createDom("div",{"class":"primaryEmail"},a.primaryEmail),h.appendChild(p),e._registerEmailAction(p,a.primaryEmail,f)):!0==goog.isDefAndNotNull(a.userId)&&(p=goog.dom.createDom("div",{},a.userId),h.appendChild(p));goog.isDefAndNotNull(a.city)&&!1===goog.string.isEmpty(a.city)&&(p=goog.dom.createDom("div",{"class":"value"}),p.innerText=
a.city,h.appendChild(p));b.appendChild(h);n?(p=goog.dom.createDom("div",{"class":"bottomMessage"}),p.innerText=_LCLZ("Pending Approval"),b.appendChild(p),goog.array.insert(d,{id:a.accountId,htmlNode:b,selected:!1})):goog.array.insert(c,{id:a.accountId,htmlNode:b,selected:!1})},this);var h=[];0<d.length&&(h=goog.array.concat(d,[{id:"group_h_delimiter",title:""}]));h=goog.array.concat(h,c);this._peopleList.updateList(h,b)}};
neutron.dashboard.panes.People.prototype._registerEmailAction=function(a,b,c){if(!0===goog.isDefAndNotNull(b)&&!0===goog.isString(b)&&!1===goog.string.isEmpty(b)){var d={To:b,Subject:c.name};goog.events.listen(a,goog.events.EventType.CLICK,function(){window.neutronJavaScriptObject.executeQuery("sendEmail",JSON.stringify(d))});return!0}return!1};
neutron.dashboard.panes.People.prototype._remove=function(){!0==goog.isDefAndNotNull(this._peopleList)&&(this._peopleList.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._peopleList=null);!0==goog.isDefAndNotNull(this._controller)&&(this._controller.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._controller=null)};
neutron.dashboard.panes.People.prototype._onProjectChanged=function(a){goog.isDefAndNotNull(a.newProjectId)&&(a=neutron.dashboard.invoker.getProjectById(a.newProjectId),!1!=goog.isDefAndNotNull(a)&&(goog.isDefAndNotNull(a.showPeople)&&!1==a.showPeople||this.updatePeopleList()))};
neutron.dashboard.panes.People.prototype._connectEvents=function(){var a=this;neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.PROJECT_CHANGE,this,this._onProjectChanged);!0==goog.isDefAndNotNull(this._peopleList)&&this._addEventHandlerKey(this._ITEM_SELECTED_EVENT_KEY,goog.events.listen(this._peopleList,neutron.dashboard.events.EventType.ITEM_SELECTED,function(b){a._onPeopleSelected(b.itemId)}));!0==goog.isDefAndNotNull(this._peopleList)&&this._addEventHandlerKey(this._PEOPLE_LIST_CREATE_CONTEXT_MENU,
goog.events.listen(this._peopleList,neutron.dashboard.events.EventType.CREATE_CONTEXT_MENU,function(b){a._createPeopleListContextMenu(b)}));!0==goog.isDefAndNotNull(this._peopleList)&&this._addEventHandlerKey(this._CONTEXT_MENU_ITEM_SELECTED_EVENT_KEY,goog.events.listen(this._peopleList,neutron.dashboard.events.EventType.CONTEXT_MENU_ITEM_SELECTED,function(b){a._peopleContextMenuItemSelected(b)}))};neutron.dashboard.panes.People.prototype._onPeopleSelected=function(a){};
neutron.dashboard.panes.People.prototype._createPeopleListContextMenu=function(a){};neutron.dashboard.panes.People.prototype._peopleContextMenuItemSelected=function(a){};neutron.dashboard.controls.THOButton=function(a,b){neutron.dashboard.RenderableObject.call(this);this._infoText=b;this._clsName=a;this._infoHtmlNode=this._THOHtmlNode=null;this._visibility=!0;this._disable=!1;this._parentHtmlNode=null;this._firstRun=!0;this._toolTipTimeout=null;this._mouseY=this._mouseX=-1;this._SHOW_INFO_DELAY=4300;this._TOOLTIP_DELAY=450};goog.inherits(neutron.dashboard.controls.THOButton,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.THOButton.prototype._construct=function(a){this._parentHtmlNode=a;var b="teamHubContainer";!0==goog.isDefAndNotNull(this._ttJSON)&&(b+=" tooltipParent");this._htmlNode=goog.dom.createDom("div",{"class":b});this._THOHtmlNode=goog.dom.createDom("img",{"class":this._clsName});this._htmlNode.appendChild(this._THOHtmlNode);!1!=goog.isDefAndNotNull(this._infoText)&&(this._infoHtmlNode=goog.dom.createDom("div",{"class":"teamHubInfo"}),this._infoHtmlNode.innerText=this._infoText,
this._htmlNode.appendChild(this._infoHtmlNode),this._infoHtmlNode.style.display="none");a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.THOButton.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode)||(this._htmlNode.style.display=!0==this._visibility?"block":"none",!1==this._visibility&&(this._infoHtmlNode.style.display="none"),!1==this._disable?goog.dom.classes.remove(this._htmlNode,"_disabled_"):goog.dom.classes.add(this._htmlNode,"_disabled_"),this._htmlNode.style.top=this._area.top+"px",0>this._area.left&&goog.isDefAndNotNull(this._innerText)?this._htmlNode.style.right=
-this._area.left+"px":this._htmlNode.style.left=this._area.left+"px",-1!=this._area.width&&(this._htmlNode.style.width=this._area.width+"px"),-1!=this._area.height&&(this._htmlNode.style.height=this._area.height+"px"))};neutron.dashboard.controls.THOButton.prototype._remove=function(){this._tooltipHtmlNode=null};neutron.dashboard.controls.THOButton.prototype._hide=function(){this._tooltipHtmlNode=null};neutron.dashboard.controls.THOButton.prototype.isVisible=function(){return this._visibility};
neutron.dashboard.controls.THOButton.prototype.show=function(a){var b=this;b._visibility=!0;b._update();!0!=b._firstRun&&(goog.dom.classes.add(b._THOHtmlNode,"shaked"),setTimeout(function(){goog.dom.classes.remove(b._THOHtmlNode,"shaked")},2200));setTimeout(function(){b._infoHtmlNode.style.display="block";a()},b._firstRun?b._SHOW_INFO_DELAY:10);b._firstRun=!1};neutron.dashboard.controls.THOButton.prototype.hide=function(){this._visibility=!1;this._update()};
neutron.dashboard.controls.THOButton.prototype.disable=function(){this._disable=!0;this._update()};neutron.dashboard.controls.THOButton.prototype.enable=function(){this._disable=!1;this._update()};neutron.dashboard.controls.THOButton.prototype.canDisplayToolTip=function(a){a=this._THOHtmlNode.getBoundingClientRect();return this._mouseX>=a.left&&this._mouseY>=a.top&&a.right>=this._mouseX&&a.bottom>=this._mouseY};
neutron.dashboard.controls.THOButton.prototype.mouseMove=function(a){this._mouseX=a.clientX;this._mouseY=a.clientY};neutron.dashboard.controls.THOButton.prototype.mouseEnter=function(){this.displayCustomToolTip()};neutron.dashboard.controls.THOButton.prototype.mouseLeave=function(){this.hideCustomToolTip()};neutron.dashboard.controls.THOButton.prototype.hideCustomToolTip=function(){!0==this._visibility&&window.neutronJavaScriptObject.executeQuery("hideCustomToolTip","")};
neutron.dashboard.controls.THOButton.prototype.displayCustomToolTip=function(){var a=this;!0==this._visibility&&(a._toolTipTimeout=setTimeout(function(){if(a.canDisplayToolTip()){var b=a._THOHtmlNode.getBoundingClientRect(),c=Math.round(b.top)-5,b='{"target_data":{ "x": '+(Math.round(b.left)+Math.round(b.width/2))+', "y": '+c+"}}";window.neutronJavaScriptObject.executeQuery("displayCustomToolTip",b)}},a._TOOLTIP_DELAY))};
neutron.dashboard.controls.THOButton.prototype._connectEvents=function(){var a=this;goog.events.listen(a._THOHtmlNode,goog.events.EventType.CLICK,function(b){clearTimeout(a._toolTipTimeout);a.hideCustomToolTip();!1==a._disable&&a.dispatchEvent(b)});goog.events.listen(a._THOHtmlNode,goog.events.EventType.MOUSEENTER,function(b){a.mouseEnter()});goog.events.listen(a._THOHtmlNode,goog.events.EventType.MOUSELEAVE,function(b){a.mouseLeave()});goog.events.listen(this._parentHtmlNode,goog.events.EventType.MOUSEMOVE,
function(b){a.mouseMove(b)});goog.events.listen(this._parentHtmlNode,goog.events.EventType.MOUSEENTER,function(b){a.mouseLeave()})};goog.debug.LOGGING_ENABLED=goog.DEBUG;goog.debug.catchErrors=function(a,b,c){c=c||goog.global;var d=c.onerror,e=!!b;goog.userAgent.WEBKIT&&!goog.userAgent.isVersionOrHigher("535.3")&&(e=!e);c.onerror=function(b,c,h,k,l){d&&d(b,c,h,k,l);a({message:b,fileName:c,line:h,col:k,error:l});return e}};goog.debug.expose=function(a,b){if("undefined"==typeof a)return"undefined";if(null==a)return"NULL";var c=[],d;for(d in a)if(b||!goog.isFunction(a[d])){var e=d+" = ";try{e+=a[d]}catch(f){e+="*** "+f+" ***"}c.push(e)}return c.join("\n")};
goog.debug.deepExpose=function(a,b){var c=[],d=function(a,f,g){var h=f+"  ";g=new goog.structs.Set(g);try{if(goog.isDef(a))if(goog.isNull(a))c.push("NULL");else if(goog.isString(a))c.push('"'+a.replace(/\n/g,"\n"+f)+'"');else if(goog.isFunction(a))c.push(String(a).replace(/\n/g,"\n"+f));else if(goog.isObject(a))if(g.contains(a))c.push("*** reference loop detected ***");else{g.add(a);c.push("{");for(var k in a)if(b||!goog.isFunction(a[k]))c.push("\n"),c.push(h),c.push(k+" = "),d(a[k],h,g);c.push("\n"+
f+"}")}else c.push(a);else c.push("undefined")}catch(l){c.push("*** "+l+" ***")}};d(a,"",new goog.structs.Set);return c.join("")};goog.debug.exposeArray=function(a){for(var b=[],c=0;c<a.length;c++)goog.isArray(a[c])?b.push(goog.debug.exposeArray(a[c])):b.push(a[c]);return"[ "+b.join(", ")+" ]"};
goog.debug.exposeException=function(a,b){try{var c=goog.debug.normalizeErrorObject(a);return"Message: "+goog.string.htmlEscape(c.message)+'\nUrl: <a href="view-source:'+c.fileName+'" target="_new">'+c.fileName+"</a>\nLine: "+c.lineNumber+"\n\nBrowser stack:\n"+goog.string.htmlEscape(c.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+goog.string.htmlEscape(goog.debug.getStacktrace(b)+"-> ")}catch(d){return"Exception trying to expose exception! You win, we lose. "+d}};
goog.debug.normalizeErrorObject=function(a){var b=goog.getObjectByName("window.location.href");if(goog.isString(a))return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c,d,e=!1;try{c=a.lineNumber||a.line||"Not available"}catch(f){c="Not available",e=!0}try{d=a.fileName||a.filename||a.sourceURL||goog.global.$googDebugFname||b}catch(g){d="Not available",e=!0}return e||!a.lineNumber||!a.fileName||!a.stack||!a.message||!a.name?{message:a.message||"Not available",
name:a.name||"UnknownError",lineNumber:c,fileName:d,stack:a.stack||"Not available"}:a};goog.debug.enhanceError=function(a,b){var c="string"==typeof a?Error(a):a;c.stack||(c.stack=goog.debug.getStacktrace(arguments.callee.caller));if(b){for(var d=0;c["message"+d];)++d;c["message"+d]=String(b)}return c};
goog.debug.getStacktraceSimple=function(a){for(var b=[],c=arguments.callee.caller,d=0;c&&(!a||d<a);){b.push(goog.debug.getFunctionName(c));b.push("()\n");try{c=c.caller}catch(e){b.push("[exception trying to get caller]\n");break}d++;if(d>=goog.debug.MAX_STACK_DEPTH){b.push("[...long stack...]");break}}a&&d>=a?b.push("[...reached max depth limit...]"):b.push("[end]");return b.join("")};goog.debug.MAX_STACK_DEPTH=50;
goog.debug.getStacktrace=function(a){return goog.debug.getStacktraceHelper_(a||arguments.callee.caller,[])};
goog.debug.getStacktraceHelper_=function(a,b){var c=[];if(goog.array.contains(b,a))c.push("[...circular reference...]");else if(a&&b.length<goog.debug.MAX_STACK_DEPTH){c.push(goog.debug.getFunctionName(a)+"(");for(var d=a.arguments,e=0;d&&e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=goog.debug.getFunctionName(f))?f:"[fn]";break;
default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(goog.debug.getStacktraceHelper_(a.caller,b))}catch(g){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")};goog.debug.setFunctionResolver=function(a){goog.debug.fnNameResolver_=a};
goog.debug.getFunctionName=function(a){if(goog.debug.fnNameCache_[a])return goog.debug.fnNameCache_[a];if(goog.debug.fnNameResolver_){var b=goog.debug.fnNameResolver_(a);if(b)return goog.debug.fnNameCache_[a]=b}a=String(a);goog.debug.fnNameCache_[a]||(b=/function ([^\(]+)/.exec(a),goog.debug.fnNameCache_[a]=b?b[1]:"[Anonymous]");return goog.debug.fnNameCache_[a]};
goog.debug.makeWhitespaceVisible=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")};goog.debug.fnNameCache_={};goog.debug.LogRecord=function(a,b,c,d,e){this.reset(a,b,c,d,e)};goog.debug.LogRecord.prototype.sequenceNumber_=0;goog.debug.LogRecord.prototype.exception_=null;goog.debug.LogRecord.prototype.exceptionText_=null;goog.debug.LogRecord.ENABLE_SEQUENCE_NUMBERS=!0;goog.debug.LogRecord.nextSequenceNumber_=0;
goog.debug.LogRecord.prototype.reset=function(a,b,c,d,e){goog.debug.LogRecord.ENABLE_SEQUENCE_NUMBERS&&(this.sequenceNumber_="number"==typeof e?e:goog.debug.LogRecord.nextSequenceNumber_++);this.time_=d||goog.now();this.level_=a;this.msg_=b;this.loggerName_=c;delete this.exception_;delete this.exceptionText_};goog.debug.LogRecord.prototype.getLoggerName=function(){return this.loggerName_};goog.debug.LogRecord.prototype.getException=function(){return this.exception_};
goog.debug.LogRecord.prototype.setException=function(a){this.exception_=a};goog.debug.LogRecord.prototype.getExceptionText=function(){return this.exceptionText_};goog.debug.LogRecord.prototype.setExceptionText=function(a){this.exceptionText_=a};goog.debug.LogRecord.prototype.setLoggerName=function(a){this.loggerName_=a};goog.debug.LogRecord.prototype.getLevel=function(){return this.level_};goog.debug.LogRecord.prototype.setLevel=function(a){this.level_=a};
goog.debug.LogRecord.prototype.getMessage=function(){return this.msg_};goog.debug.LogRecord.prototype.setMessage=function(a){this.msg_=a};goog.debug.LogRecord.prototype.getMillis=function(){return this.time_};goog.debug.LogRecord.prototype.setMillis=function(a){this.time_=a};goog.debug.LogRecord.prototype.getSequenceNumber=function(){return this.sequenceNumber_};goog.debug.LogBuffer=function(){goog.asserts.assert(goog.debug.LogBuffer.isBufferingEnabled(),"Cannot use goog.debug.LogBuffer without defining goog.debug.LogBuffer.CAPACITY.");this.clear()};goog.debug.LogBuffer.getInstance=function(){goog.debug.LogBuffer.instance_||(goog.debug.LogBuffer.instance_=new goog.debug.LogBuffer);return goog.debug.LogBuffer.instance_};goog.debug.LogBuffer.CAPACITY=0;
goog.debug.LogBuffer.prototype.addRecord=function(a,b,c){var d=(this.curIndex_+1)%goog.debug.LogBuffer.CAPACITY;this.curIndex_=d;if(this.isFull_)return d=this.buffer_[d],d.reset(a,b,c),d;this.isFull_=d==goog.debug.LogBuffer.CAPACITY-1;return this.buffer_[d]=new goog.debug.LogRecord(a,b,c)};goog.debug.LogBuffer.isBufferingEnabled=function(){return 0<goog.debug.LogBuffer.CAPACITY};
goog.debug.LogBuffer.prototype.clear=function(){this.buffer_=Array(goog.debug.LogBuffer.CAPACITY);this.curIndex_=-1;this.isFull_=!1};goog.debug.LogBuffer.prototype.forEachRecord=function(a){var b=this.buffer_;if(b[0]){var c=this.curIndex_,d=this.isFull_?c:-1;do d=(d+1)%goog.debug.LogBuffer.CAPACITY,a(b[d]);while(d!=c)}};goog.debug.Logger=function(a){this.name_=a;this.handlers_=this.children_=this.level_=this.parent_=null};goog.debug.Logger.ENABLE_HIERARCHY=!0;goog.debug.Logger.ENABLE_HIERARCHY||(goog.debug.Logger.rootHandlers_=[]);goog.debug.Logger.Level=function(a,b){this.name=a;this.value=b};goog.debug.Logger.Level.prototype.toString=function(){return this.name};goog.debug.Logger.Level.OFF=new goog.debug.Logger.Level("OFF",Infinity);goog.debug.Logger.Level.SHOUT=new goog.debug.Logger.Level("SHOUT",1200);
goog.debug.Logger.Level.SEVERE=new goog.debug.Logger.Level("SEVERE",1E3);goog.debug.Logger.Level.WARNING=new goog.debug.Logger.Level("WARNING",900);goog.debug.Logger.Level.INFO=new goog.debug.Logger.Level("INFO",800);goog.debug.Logger.Level.CONFIG=new goog.debug.Logger.Level("CONFIG",700);goog.debug.Logger.Level.FINE=new goog.debug.Logger.Level("FINE",500);goog.debug.Logger.Level.FINER=new goog.debug.Logger.Level("FINER",400);goog.debug.Logger.Level.FINEST=new goog.debug.Logger.Level("FINEST",300);
goog.debug.Logger.Level.ALL=new goog.debug.Logger.Level("ALL",0);goog.debug.Logger.Level.PREDEFINED_LEVELS=[goog.debug.Logger.Level.OFF,goog.debug.Logger.Level.SHOUT,goog.debug.Logger.Level.SEVERE,goog.debug.Logger.Level.WARNING,goog.debug.Logger.Level.INFO,goog.debug.Logger.Level.CONFIG,goog.debug.Logger.Level.FINE,goog.debug.Logger.Level.FINER,goog.debug.Logger.Level.FINEST,goog.debug.Logger.Level.ALL];goog.debug.Logger.Level.predefinedLevelsCache_=null;
goog.debug.Logger.Level.createPredefinedLevelsCache_=function(){goog.debug.Logger.Level.predefinedLevelsCache_={};for(var a=0,b;b=goog.debug.Logger.Level.PREDEFINED_LEVELS[a];a++)goog.debug.Logger.Level.predefinedLevelsCache_[b.value]=b,goog.debug.Logger.Level.predefinedLevelsCache_[b.name]=b};
goog.debug.Logger.Level.getPredefinedLevel=function(a){goog.debug.Logger.Level.predefinedLevelsCache_||goog.debug.Logger.Level.createPredefinedLevelsCache_();return goog.debug.Logger.Level.predefinedLevelsCache_[a]||null};
goog.debug.Logger.Level.getPredefinedLevelByValue=function(a){goog.debug.Logger.Level.predefinedLevelsCache_||goog.debug.Logger.Level.createPredefinedLevelsCache_();if(a in goog.debug.Logger.Level.predefinedLevelsCache_)return goog.debug.Logger.Level.predefinedLevelsCache_[a];for(var b=0;b<goog.debug.Logger.Level.PREDEFINED_LEVELS.length;++b){var c=goog.debug.Logger.Level.PREDEFINED_LEVELS[b];if(c.value<=a)return c}return null};goog.debug.Logger.getLogger=function(a){return goog.debug.LogManager.getLogger(a)};
goog.debug.Logger.logToProfilers=function(a){goog.global.console&&(goog.global.console.timeStamp?goog.global.console.timeStamp(a):goog.global.console.markTimeline&&goog.global.console.markTimeline(a));goog.global.msWriteProfilerMark&&goog.global.msWriteProfilerMark(a)};goog.debug.Logger.prototype.getName=function(){return this.name_};
goog.debug.Logger.prototype.addHandler=function(a){goog.debug.LOGGING_ENABLED&&(goog.debug.Logger.ENABLE_HIERARCHY?(this.handlers_||(this.handlers_=[]),this.handlers_.push(a)):(goog.asserts.assert(!this.name_,"Cannot call addHandler on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),goog.debug.Logger.rootHandlers_.push(a)))};
goog.debug.Logger.prototype.removeHandler=function(a){if(goog.debug.LOGGING_ENABLED){var b=goog.debug.Logger.ENABLE_HIERARCHY?this.handlers_:goog.debug.Logger.rootHandlers_;return!!b&&goog.array.remove(b,a)}return!1};goog.debug.Logger.prototype.getParent=function(){return this.parent_};goog.debug.Logger.prototype.getChildren=function(){this.children_||(this.children_={});return this.children_};
goog.debug.Logger.prototype.setLevel=function(a){goog.debug.LOGGING_ENABLED&&(goog.debug.Logger.ENABLE_HIERARCHY?this.level_=a:(goog.asserts.assert(!this.name_,"Cannot call setLevel() on a non-root logger when goog.debug.Logger.ENABLE_HIERARCHY is false."),goog.debug.Logger.rootLevel_=a))};goog.debug.Logger.prototype.getLevel=function(){return goog.debug.LOGGING_ENABLED?this.level_:goog.debug.Logger.Level.OFF};
goog.debug.Logger.prototype.getEffectiveLevel=function(){if(!goog.debug.LOGGING_ENABLED)return goog.debug.Logger.Level.OFF;if(!goog.debug.Logger.ENABLE_HIERARCHY)return goog.debug.Logger.rootLevel_;if(this.level_)return this.level_;if(this.parent_)return this.parent_.getEffectiveLevel();goog.asserts.fail("Root logger has no level set.");return null};goog.debug.Logger.prototype.isLoggable=function(a){return goog.debug.LOGGING_ENABLED&&a.value>=this.getEffectiveLevel().value};
goog.debug.Logger.prototype.log=function(a,b,c){goog.debug.LOGGING_ENABLED&&this.isLoggable(a)&&(goog.isFunction(b)&&(b=b()),this.doLogRecord_(this.getLogRecord(a,b,c)))};goog.debug.Logger.prototype.getLogRecord=function(a,b,c){var d=goog.debug.LogBuffer.isBufferingEnabled()?goog.debug.LogBuffer.getInstance().addRecord(a,b,this.name_):new goog.debug.LogRecord(a,String(b),this.name_);c&&(d.setException(c),d.setExceptionText(goog.debug.exposeException(c,arguments.callee.caller)));return d};
goog.debug.Logger.prototype.shout=function(a,b){goog.debug.LOGGING_ENABLED&&this.log(goog.debug.Logger.Level.SHOUT,a,b)};goog.debug.Logger.prototype.severe=function(a,b){goog.debug.LOGGING_ENABLED&&this.log(goog.debug.Logger.Level.SEVERE,a,b)};goog.debug.Logger.prototype.warning=function(a,b){goog.debug.LOGGING_ENABLED&&this.log(goog.debug.Logger.Level.WARNING,a,b)};goog.debug.Logger.prototype.info=function(a,b){goog.debug.LOGGING_ENABLED&&this.log(goog.debug.Logger.Level.INFO,a,b)};
goog.debug.Logger.prototype.config=function(a,b){goog.debug.LOGGING_ENABLED&&this.log(goog.debug.Logger.Level.CONFIG,a,b)};goog.debug.Logger.prototype.fine=function(a,b){goog.debug.LOGGING_ENABLED&&this.log(goog.debug.Logger.Level.FINE,a,b)};goog.debug.Logger.prototype.finer=function(a,b){goog.debug.LOGGING_ENABLED&&this.log(goog.debug.Logger.Level.FINER,a,b)};goog.debug.Logger.prototype.finest=function(a,b){goog.debug.LOGGING_ENABLED&&this.log(goog.debug.Logger.Level.FINEST,a,b)};
goog.debug.Logger.prototype.logRecord=function(a){goog.debug.LOGGING_ENABLED&&this.isLoggable(a.getLevel())&&this.doLogRecord_(a)};goog.debug.Logger.prototype.doLogRecord_=function(a){goog.debug.Logger.logToProfilers("log:"+a.getMessage());if(goog.debug.Logger.ENABLE_HIERARCHY)for(var b=this;b;)b.callPublish_(a),b=b.getParent();else for(var b=0,c;c=goog.debug.Logger.rootHandlers_[b++];)c(a)};goog.debug.Logger.prototype.callPublish_=function(a){if(this.handlers_)for(var b=0,c;c=this.handlers_[b];b++)c(a)};
goog.debug.Logger.prototype.setParent_=function(a){this.parent_=a};goog.debug.Logger.prototype.addChild_=function(a,b){this.getChildren()[a]=b};goog.debug.LogManager={};goog.debug.LogManager.loggers_={};goog.debug.LogManager.rootLogger_=null;goog.debug.LogManager.initialize=function(){goog.debug.LogManager.rootLogger_||(goog.debug.LogManager.rootLogger_=new goog.debug.Logger(""),goog.debug.LogManager.loggers_[""]=goog.debug.LogManager.rootLogger_,goog.debug.LogManager.rootLogger_.setLevel(goog.debug.Logger.Level.CONFIG))};
goog.debug.LogManager.getLoggers=function(){return goog.debug.LogManager.loggers_};goog.debug.LogManager.getRoot=function(){goog.debug.LogManager.initialize();return goog.debug.LogManager.rootLogger_};goog.debug.LogManager.getLogger=function(a){goog.debug.LogManager.initialize();return goog.debug.LogManager.loggers_[a]||goog.debug.LogManager.createLogger_(a)};
goog.debug.LogManager.createFunctionForCatchErrors=function(a){return function(b){(a||goog.debug.LogManager.getRoot()).severe("Error: "+b.message+" ("+b.fileName+" @ Line: "+b.line+")")}};goog.debug.LogManager.createLogger_=function(a){var b=new goog.debug.Logger(a);if(goog.debug.Logger.ENABLE_HIERARCHY){var c=a.lastIndexOf("."),d=a.substr(0,c),c=a.substr(c+1),d=goog.debug.LogManager.getLogger(d);d.addChild_(c,b);b.setParent_(d)}return goog.debug.LogManager.loggers_[a]=b};goog.log={};goog.log.ENABLED=goog.debug.LOGGING_ENABLED;goog.log.Logger=goog.debug.Logger;goog.log.Level=goog.debug.Logger.Level;goog.log.LogRecord=goog.debug.LogRecord;goog.log.getLogger=function(a,b){if(goog.log.ENABLED){var c=goog.debug.LogManager.getLogger(a);b&&c&&c.setLevel(b);return c}return null};goog.log.addHandler=function(a,b){goog.log.ENABLED&&a&&a.addHandler(b)};goog.log.removeHandler=function(a,b){return goog.log.ENABLED&&a?a.removeHandler(b):!1};
goog.log.log=function(a,b,c,d){goog.log.ENABLED&&a&&a.log(b,c,d)};goog.log.error=function(a,b,c){goog.log.ENABLED&&a&&a.severe(b,c)};goog.log.warning=function(a,b,c){goog.log.ENABLED&&a&&a.warning(b,c)};goog.log.info=function(a,b,c){goog.log.ENABLED&&a&&a.info(b,c)};goog.log.fine=function(a,b,c){goog.log.ENABLED&&a&&a.fine(b,c)};goog.events.FileDropHandler=function(a,b){goog.events.EventTarget.call(this);this.eventHandler_=new goog.events.EventHandler(this);var c=a;b&&(c=goog.dom.getOwnerDocument(a));this.eventHandler_.listen(c,goog.events.EventType.DRAGENTER,this.onDocDragEnter_);c!=a&&this.eventHandler_.listen(c,goog.events.EventType.DRAGOVER,this.onDocDragOver_);this.eventHandler_.listen(a,goog.events.EventType.DRAGOVER,this.onElemDragOver_);this.eventHandler_.listen(a,goog.events.EventType.DROP,this.onElemDrop_)};
goog.inherits(goog.events.FileDropHandler,goog.events.EventTarget);goog.events.FileDropHandler.prototype.dndContainsFiles_=!1;goog.events.FileDropHandler.prototype.logger_=goog.log.getLogger("goog.events.FileDropHandler");goog.events.FileDropHandler.EventType={DROP:goog.events.EventType.DROP};goog.events.FileDropHandler.prototype.disposeInternal=function(){goog.events.FileDropHandler.superClass_.disposeInternal.call(this);this.eventHandler_.dispose()};
goog.events.FileDropHandler.prototype.dispatch_=function(a){goog.log.fine(this.logger_,"Firing DROP event...");a=new goog.events.BrowserEvent(a.getBrowserEvent());a.type=goog.events.FileDropHandler.EventType.DROP;this.dispatchEvent(a)};
goog.events.FileDropHandler.prototype.onDocDragEnter_=function(a){goog.log.log(this.logger_,goog.log.Level.FINER,'"'+a.target.id+'" ('+a.target+") dispatched: "+a.type);var b=a.getBrowserEvent().dataTransfer;(this.dndContainsFiles_=!(!b||!(b.types&&(goog.array.contains(b.types,"Files")||goog.array.contains(b.types,"public.file-url"))||b.files&&0<b.files.length)))&&a.preventDefault();goog.log.log(this.logger_,goog.log.Level.FINER,"dndContainsFiles_: "+this.dndContainsFiles_)};
goog.events.FileDropHandler.prototype.onDocDragOver_=function(a){goog.log.log(this.logger_,goog.log.Level.FINEST,'"'+a.target.id+'" ('+a.target+") dispatched: "+a.type);this.dndContainsFiles_&&(a.preventDefault(),a.getBrowserEvent().dataTransfer.dropEffect="none")};
goog.events.FileDropHandler.prototype.onElemDragOver_=function(a){goog.log.log(this.logger_,goog.log.Level.FINEST,'"'+a.target.id+'" ('+a.target+") dispatched: "+a.type);this.dndContainsFiles_&&(a.preventDefault(),a.stopPropagation(),a=a.getBrowserEvent().dataTransfer,a.effectAllowed="all",a.dropEffect="copy")};
goog.events.FileDropHandler.prototype.onElemDrop_=function(a){goog.log.log(this.logger_,goog.log.Level.FINER,'"'+a.target.id+'" ('+a.target+") dispatched: "+a.type);this.dndContainsFiles_&&(a.preventDefault(),a.stopPropagation(),this.dispatch_(a))};neutron.dashboard.panes.ProjectDetailPeople=function(a){neutron.dashboard.RenderableObject.call(this);this._parent=a;this._ON_INVITE_INPUT="ON_INVITE_INPUT";this._ON_PANE_ACTIVATED="ON_PANE_ACTIVATED";this._ON_PROJECT_LEAVE="ON_PROJECT_LEAVE";this._ON_INVITATION_DONE="ON_INVITATION_DONE";this._ON_TEAM_HUB_CLICK="ON_TEAM_HUB_CLICK";this._PEOPLE_CHANGED="PEOPLE_CHANGED";this._peoplePane=this._inviteControl=this._controller=null;this.init()};
goog.inherits(neutron.dashboard.panes.ProjectDetailPeople,neutron.dashboard.RenderableObject);neutron.dashboard.panes.ProjectDetailPeople.prototype.init=function(){this._controller=new neutron.dashboard.controllers.project_detail_pane.ProjectDetailPeople(this);this._inviteControl=new neutron.dashboard.controls.Invite;this._peoplePane=new neutron.dashboard.panes.People(this);this._teamHubBtn=new neutron.dashboard.controls.THOButton("teamHubImage",_LCLZ("Work in Team"))};
neutron.dashboard.panes.ProjectDetailPeople.prototype.inviteControl=function(){return this._inviteControl};neutron.dashboard.panes.ProjectDetailPeople.prototype.peoplePane=function(){return this._peoplePane};neutron.dashboard.panes.ProjectDetailPeople.prototype.teamHubButton=function(){return this._teamHubBtn};neutron.dashboard.panes.ProjectDetailPeople.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{id:"projectDetailPeople"});a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.panes.ProjectDetailPeople.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._controller)||(this._inviteControl._updateInputElemsVisible(),this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE))};
neutron.dashboard.panes.ProjectDetailPeople.prototype._displayCoachMark=function(){var a=this;setTimeout(function(){if(!0==a._teamHubBtn.isVisible()){var b=a._teamHubBtn._htmlNode.getBoundingClientRect(),c=Math.round(b.top),d=Math.round(b.left),e=Math.round(b.height),b=Math.round(b.width);window.neutronJavaScriptObject.executeQuery("displayTeamHubPromoCoachMark",'{"target_rectangle": {"l": '+d+', "t": '+c+', "w": '+b+', "h": '+e+'},"position": {"x": '+d+', "y": '+c+'},"size": {"w": 380, "h": 180},"arrow": {"x": 0, "y": 165}}')}},
800)};
neutron.dashboard.panes.ProjectDetailPeople.prototype._connectEvents=function(){var a=this;window.onpopstate=function(){window.history.pushState(null,null,document.URL)};this._addEventHandlerKey(this._ON_INVITE_INPUT,goog.events.listen(this._inviteControl,neutron.dashboard.events.EventType.INPUT_CHANGE,function(){a._update()}));this._addEventHandlerKey(this._ON_INVITATION_DONE,goog.events.listen(this._inviteControl,neutron.dashboard.events.EventType.INVITATION_DONE,function(){a._peoplePane.updatePeopleList(function(){a._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE);a._checkTHOButtonDisplay()})}));
this._addEventHandlerKey(this._PEOPLE_CHANGED,goog.events.listen(this._peoplePane,neutron.dashboard.events.EventType.CHANGE,function(b){a._update();a._checkTHOButtonDisplay()}));this._addEventHandlerKey(this._ON_PANE_ACTIVATED,goog.events.listen(this,neutron.dashboard.events.EventType.TAB_PANE_ACTIVATED,function(){a._update();a._checkTHOButtonDisplay()}));this._addEventHandlerKey(this._ON_PROJECT_LEAVE,goog.events.listen(this._peoplePane,neutron.dashboard.events.EventType.LEAVE_PROJECT,function(b){a._parent.dispatchEvent(new neutron.dashboard.events.GoToPane(neutron.dashboard.constants.PaneName.PROJECTS));
neutron.dashboard.Application.instance.dispatchEvent(new neutron.dashboard.events.LeaveProject(b.args))}));!0==goog.isDefAndNotNull(this._teamHubBtn)&&this._addEventHandlerKey(this._ON_TEAM_HUB_CLICK,goog.events.listen(this._teamHubBtn,goog.events.EventType.CLICK,function(b){a._teamHubBtn.disable();window.neutronJavaScriptObject.executeQuery("displayTeamHubPromo",JSON.stringify("{}"));setTimeout(function(){a._teamHubBtn.enable()},1E3)}))};
neutron.dashboard.panes.ProjectDetailPeople.prototype._checkTHOButtonDisplay=function(){var a=this;a._peoplePane.shouldDisplayTeamHubBtn()?(a._teamHubBtn.enable(),a._teamHubBtn.show(function(){a._displayCoachMark();neutron.dashboard.utils.Report({Action:"THO button display"})})):(a._teamHubBtn.disable(!0),a._teamHubBtn.hide())};neutron.dashboard.panes.ProjectDetailPeople.prototype._onActivated=function(){};
neutron.dashboard.panes.ProjectDetailPeople.prototype._remove=function(){!0==goog.isDefAndNotNull(this._peoplePane)&&(this._peoplePane.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._peoplePane=null);!0==goog.isDefAndNotNull(this._teamHubBtn)&&(this._teamHubBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._teamHubBtn=null)};neutron.dashboard.controls.Tabs=function(a,b){neutron.dashboard.RenderableObject.call(this);this._parentObject=a;this._tabsData=b;this._selectedTabIdx=-1;this._TABS_WIDTH=348;this._TABS_HEIGHT=26;this._VERTICAL_SPACE=11;this._TAB_CLICK="TabClick_";this._tabsNode=null};goog.inherits(neutron.dashboard.controls.Tabs,neutron.dashboard.RenderableObject);neutron.dashboard.controls.Tabs.prototype.init=function(){neutron.dashboard.controls.Tabs.superClass_.init.call(this)};
neutron.dashboard.controls.Tabs.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{id:"tabsCtrl"});a.appendChild(this._htmlNode);this._tabsNode=goog.dom.createDom("div",{"class":"tabs"});this._htmlNode.appendChild(this._tabsNode);a=this._tabsData.length;for(var b=0;b<a;b++)this._tabsData[b].tabNode=new neutron.dashboard.controls.Dummy("tabButton noSelection",this._tabsData[b].name),!1==goog.isDefAndNotNull(this._tabsData[b].paneNode)&&(this._tabsData[b].paneNode=new neutron.dashboard.controls.Dummy("defaultTabPane"));
this._connectEvents()};
neutron.dashboard.controls.Tabs.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._area)){this._htmlNode.style.top=this._area.top+"px";this._htmlNode.style.left=this._area.left+"px";this._htmlNode.style.width=this._area.width+"px";this._htmlNode.style.height=this._area.height+"px";for(var a=0,b=this._isTabsElemVisible()?this._TABS_HEIGHT+this._VERTICAL_SPACE:0,c=this._tabsData.length,d=this._TABS_WIDTH/c-2,e=this._area.height-b,f=0;f<c;f++)this._tabsData[f].tabNode.dispatchEvent(new neutron.dashboard.events.Update(this._tabsNode,a,
0,d,this._TABS_HEIGHT)),a+=d+1,f==c-2&&(d=this._TABS_WIDTH-a-2),this._tabsData[f].paneNode.dispatchEvent(new neutron.dashboard.events.Update(this._htmlNode,0,b,this._area.width,e));-1==this._selectedTabIdx&&this.activateTab(0)}};neutron.dashboard.controls.Tabs.prototype._connectEvents=function(){for(var a=this._tabsData.length,b=0;b<a;b++)this._connectClickItemEvent(this._tabsData[b].tabNode,b)};
neutron.dashboard.controls.Tabs.prototype._connectClickItemEvent=function(a,b){var c=this;this._addEventHandlerKey(c._TAB_CLICK+b,goog.events.listen(a,goog.events.EventType.CLICK,function(a){c._onTabClick(b)}))};
neutron.dashboard.controls.Tabs.prototype._onTabClick=function(a){if(this._selectedTabIdx!=a){if(-1!=this._selectedTabIdx){goog.dom.classes.remove(this._tabsData[this._selectedTabIdx].tabNode.htmlNode(),"selected");var b=this._tabsData[this._selectedTabIdx].paneNode.htmlNode();b.style.visibility="hidden"}goog.dom.classes.add(this._tabsData[a].tabNode.htmlNode(),"selected");b=this._tabsData[a].paneNode.htmlNode();b.style.visibility="visible";this._selectedTabIdx=a;this._tabsData[a].paneNode.dispatchEvent(neutron.dashboard.events.EventType.TAB_PANE_ACTIVATED)}};
neutron.dashboard.controls.Tabs.prototype._hideAllDetailsPanes=function(){for(var a=this._tabsData.length,b=0;b<a;b++)this._tabsData[b].paneNode.htmlNode().style.visibility="hidden"};neutron.dashboard.controls.Tabs.prototype._remove=function(){};neutron.dashboard.controls.Tabs.prototype.activateTab=function(a){this._selectedTabIdx!=a&&(this._hideAllDetailsPanes(),this._onTabClick(a))};
neutron.dashboard.controls.Tabs.prototype.showTabs=function(a){a!=this._isTabsElemVisible()&&(this._tabsNode.style.display=a?"block":"none",this._update())};neutron.dashboard.controls.Tabs.prototype._isTabsElemVisible=function(){return"none"==this._tabsNode.style.display?!1:!0};neutron.dashboard.controls.UploadProgressBar=function(){neutron.dashboard.RenderableObject.call(this);this._rows=[{key:"upload",value:1},{key:"sim",value:1}];this._ROW_HEIGHT=40;this._PROGRESS_HEIGHT=12;this._CONTENT_PADDING=10;this._BUTTON_SIZE=17;this._EXPAND_BUTTON_CLICK_EVENT_KEY="ExpandButton_"+goog.events.EventType.CLICK};goog.inherits(neutron.dashboard.controls.UploadProgressBar,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.UploadProgressBar.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"uploadProgressBarContainer"});goog.array.forEach(this._rows,function(a){a._barHtmlNode=goog.dom.createDom("div",{"class":"uploadProgressBar"});a._statusTextHtmlNode=goog.dom.createDom("div",{"class":"statusText"});a._barHtmlNode.appendChild(a._statusTextHtmlNode);a._errorIndicator=goog.dom.createDom("div",{"class":"errorIndicator"});a._barHtmlNode.appendChild(a._errorIndicator);
a._errorIndicatorPopup=goog.dom.createDom("div",{"class":"errorIndicatorPopup"});var c=goog.dom.createDom("div",{"class":"popupTitleContainer"});a._errorIndicatorPopup.appendChild(c);a._errorIndicatorPopupTitle=goog.dom.createDom("div",{"class":"popupTitle"},"Uploading files");c.appendChild(a._errorIndicatorPopupTitle);a._errorIndicatorPopupMessage=goog.dom.createDom("div",{"class":"popupMessage"},"Kamil");a._errorIndicatorPopup.appendChild(a._errorIndicatorPopupMessage);a._errorIndicator.appendChild(a._errorIndicatorPopup);
a._errorShortMessage=goog.dom.createDom("div",{"class":"errorShortMessage"},"upload waiting");a._barHtmlNode.appendChild(a._errorShortMessage);a._progressContainerHtmlNode=goog.dom.createDom("div",{"class":"progressContainer"});a._barHtmlNode.appendChild(a._progressContainerHtmlNode);a._progressBarHtmlNode=goog.dom.createDom("div",{"class":"progressIndicator"});a._progressContainerHtmlNode.appendChild(a._progressBarHtmlNode);a._expandButtonHtmlNode=goog.dom.createDom("div",{"class":"expandButton"});
this._addEventHandlerKey(this._EXPAND_BUTTON_CLICK_EVENT_KEY,goog.events.listen(a._expandButtonHtmlNode,goog.events.EventType.CLICK,function(c){window.neutronJavaScriptObject.executeQuery("expandProgress",JSON.stringify({key:a.key}))}));a._barHtmlNode.appendChild(a._expandButtonHtmlNode);this._htmlNode.appendChild(a._barHtmlNode)},this);a.appendChild(this._htmlNode)};
neutron.dashboard.controls.UploadProgressBar.prototype._update=function(){if(!(!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode))){this._htmlNode.style.top=this._area.top+"px";this._htmlNode.style.left=this._area.left+"px";this._htmlNode.style.width=this._area.width+"px";this._htmlNode.style.height=this._area.height+"px";var a=this._ROW_HEIGHT+"px",b=0,c=this._CONTENT_PADDING+"px",d=Math.max(this._area.height,this._ROW_HEIGHT)+"px",e=!1;goog.array.forEach(this._rows,function(f){goog.isDefAndNotNull(f._barHtmlNode)&&
(f._barHtmlNode.style.height=a,f._barHtmlNode.style.top=1!=f.value?b+"px":d,e?goog.dom.classes.add(f._barHtmlNode,"spacer"):goog.dom.classes.remove(f._barHtmlNode,"spacer"));1!=f.value&&(b+=this._ROW_HEIGHT,e=!0);!0==goog.isDefAndNotNull(f._statusTextHtmlNode)&&(f._statusTextHtmlNode.style.left=c,f._statusTextHtmlNode.style.lineHeight=a,f._statusTextHtmlNode.style.height=a);!0==goog.isDefAndNotNull(f._progressContainerHtmlNode)&&(f._progressContainerHtmlNode.style.top=parseInt((this._ROW_HEIGHT-this._PROGRESS_HEIGHT)/
2)+"px",f._progressContainerHtmlNode.style.height=this._PROGRESS_HEIGHT+"px");this._updateProgressBar(f);!0==goog.isDefAndNotNull(f._expandButtonHtmlNode)&&(f=f._expandButtonHtmlNode.style,f.top=parseInt((this._ROW_HEIGHT-this._BUTTON_SIZE)/2)-1+"px",f.height=this._BUTTON_SIZE+"px",f.width=f.height,f.right=c)},this)}};neutron.dashboard.controls.UploadProgressBar.prototype.isVisible=function(){var a=!1;goog.array.forEach(this._rows,function(b){a|=1!=b.value});return a};
neutron.dashboard.controls.UploadProgressBar.prototype.height=function(){var a=0,b=this._ROW_HEIGHT;goog.array.forEach(this._rows,function(c){1!=c.value&&(a+=b)});return a};neutron.dashboard.controls.UploadProgressBar.prototype._updateProgressBar=function(a){goog.isDefAndNotNull(a._progressBarHtmlNode)&&(a._progressBarHtmlNode.style.width=100*a.value+"%")};
neutron.dashboard.controls.UploadProgressBar.prototype._updateStatusText=function(a){if(goog.isDefAndNotNull(a._statusTextHtmlNode))switch(a.key){case "upload":a._statusTextHtmlNode.innerHTML=1!=a.value?_LCLZ("Upload progress"):_LCLZ("Upload finished");break;case "sim":a._statusTextHtmlNode.innerHTML=_LCLZ("Simulation progress")}};
neutron.dashboard.controls.UploadProgressBar.prototype.setProgress=function(a,b,c,d){for(var e=0,f=this._rows.length;e<f;e++){var g=this._rows[e];if(g.key==a){g.value=b;!0==goog.isDefAndNotNull(c)&&!1==goog.string.isEmpty(c)?(goog.dom.classes.add(g._barHtmlNode,"error"),goog.isDefAndNotNull(g._errorIndicatorPopupMessage)&&(g._errorIndicatorPopupMessage.innerHTML=c)):goog.dom.classes.remove(g._barHtmlNode,"error");this._updateProgressBar(g);this._updateStatusText(g);if(1==g.value){var h=this;setTimeout(function(){1==
g.value&&(h._update(),!0==goog.isDefAndNotNull(d)&&d())},1500)}else this._update(),!0==goog.isDefAndNotNull(d)&&d();break}}};neutron.dashboard.panes.DesignsFolder=function(a){neutron.dashboard.panes.Designs.call(this,a)};goog.inherits(neutron.dashboard.panes.DesignsFolder,neutron.dashboard.panes.Designs);
neutron.dashboard.panes.DesignsFolder.prototype._init=function(){var a=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.VIEWTYPE,neutron.dashboard.constants.ViewType.TILE_VIEW);this._changeViewType(a);this._nextSearchResultsButton=new neutron.dashboard.controls.Dummy("nextSetBtn",_LCLZ("Load more"))};
neutron.dashboard.panes.DesignsFolder.prototype._connectEvents=function(){neutron.dashboard.panes.DesignsFolder.superClass_._connectEvents.call(this);var a=this;this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));!0==goog.isDefAndNotNull(this._nextSearchResultsButton)&&this._addEventHandlerKey(this._NEXT_SEARCH_RESULTS_CLICK_EVENT_KEY,goog.events.listen(this._nextSearchResultsButton,
goog.events.EventType.CLICK,function(b){a._numberOfSearchResultsNeeded+=a._NUMBER_OF_SEARCH_RESULTS_STEP;a._invokeGetRecentData(Math.round(a._numberOfSearchResultsNeeded/a._NUMBER_OF_SEARCH_RESULTS_STEP)+1)}));neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.GET_FOLDER_CONTENT,this,this._onGetFolderContent);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.GET_RECENT_ITEMS,this,this._onGetRecentContent);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.FILE_UPDATE,
this,a._onFileUpdate);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.FOLDER_CREATED,this,a._onFolderCreated);this._addEventHandlerKey("CREATE_NEW_FOLDER",goog.events.listen(this,neutron.dashboard.events.EventType.START_ACTION,function(b){a._userInputActive=!1;"createNewFolder"===b.actionId&&a._onCreateNewFolder()}));this._lastPath=[];this._addEventHandlerKey("pathChange",goog.events.listen(this,neutron.dashboard.events.EventType.PATH_CHANGE,function(b){!0==goog.isDefAndNotNull(b)&&
!0==goog.isDefAndNotNull(b.path)&&!1==goog.array.equals(b.path,a._lastPath,function(a,b){return a.id==b.id})&&(console.log("designs_folder - pathChange - hide notification"),a._parent.hideNotificationMessage(),a._lastPath=b.path)}))};
neutron.dashboard.panes.DesignsFolder.prototype.handleOnProjectChange=function(a){if(!1==goog.isDefAndNotNull(a.newProjectId))console.log("DesignsFolder.prototype.handleOnProjectChange called without newProjectId");else{var b=null,c=null,d=a.newProjectId;a=a.newProjectObj;var e=0==d.search("urn:");!1!=goog.isDefAndNotNull(a)&&(goog.isDefAndNotNull(a.rootFolder)&&(b=a.rootFolder.id,c=a.rootFolder.name),goog.array.clear(this._folderPath),goog.array.insert(this._folderPath,{id:b,name:c}),this._currFolderId=
b,this._moreSearchResultsPossible=!1,this._folderPath=[],"RECENT"===d?(this._currFolder="RECENT",this._numberOfSearchResultsNeeded=0,this._invokeGetRecentData(Math.round(this._numberOfSearchResultsNeeded/this._NUMBER_OF_SEARCH_RESULTS_STEP)+1)):(!0===e&&(d=null),goog.array.insert(this._folderPath,{id:b,name:c}),this._lastAskedFolderId=this._currFolderId=b,this._lastReturnedData=null,this._invokeGetData(!1,this._currFolderId,d)),this.dispatchEvent(new neutron.dashboard.events.PathChange(this._folderPath)),
this._update())}};
neutron.dashboard.panes.DesignsFolder.prototype.handleOnBranchChange=function(){var a=neutron.dashboard.invoker.getLastUsedProject();if(!1===goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.id)||!1==goog.isDefAndNotNull(a.rootFolder)||!1==goog.isDefAndNotNull(a.rootFolder.id)||!1==goog.isDefAndNotNull(a.rootFolder.name))console.error("Can not get project root folder");else{var b=a.rootFolder.id,a=a.rootFolder.name;goog.array.clear(this._folderPath);goog.array.insert(this._folderPath,{id:b,name:a});
this._currFolderId=b}};goog.style.transition={};
goog.style.transition.set=function(a,b){goog.isArray(b)||(b=[b]);goog.asserts.assert(0<b.length,"At least one Css3Property should be specified.");var c=goog.array.map(b,function(a){if(goog.isString(a))return a;goog.asserts.assertObject(a,"Expected css3 property to be an object.");var b=a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s";goog.asserts.assert(a.property&&goog.isNumber(a.duration)&&a.timing&&goog.isNumber(a.delay),"Unexpected css3 property value: %s",b);return b});goog.style.transition.setPropertyValue_(a,
c.join(","))};goog.style.transition.removeAll=function(a){goog.style.transition.setPropertyValue_(a,"")};
goog.style.transition.isSupported=goog.functions.cacheReturnValue(function(){if(goog.userAgent.IE)return goog.userAgent.isVersionOrHigher("10.0");var a=document.createElement("div"),b=goog.dom.vendor.getVendorPrefix();a.innerHTML='<div style="'+(b?b+"-transition:opacity 1s linear;":"")+'transition:opacity 1s linear;">';a=a.firstChild;goog.asserts.assert(a.nodeType==Node.ELEMENT_NODE);return""!=goog.style.getStyle(a,"transition")});
goog.style.transition.setPropertyValue_=function(a,b){goog.style.setStyle(a,"transition",b)};neutron.dashboard.controls.BreadcrumbsBar=function(a){neutron.dashboard.RenderableObject.call(this);this._parentPane=a;this._branchesCache={};this._currentBranch=this._currentProjectId=null;this._foldersData=[];this._htmlPopupNode=this._htmlContentNode=null;this._enableLastArrow=!1;this._ITEMS_GROUP_KEY="Item";this._POPUP_KEY="Popup";this._POPUP_ITEM_KEY="PopupItem";this._POPUP_IS_SHOWN_CLASS="popupshown";this._SHOWING_POPUP_CLASS="activated";this._CLICK_KEY="Click"};
goog.inherits(neutron.dashboard.controls.BreadcrumbsBar,neutron.dashboard.RenderableObject);neutron.dashboard.controls.BreadcrumbsBar.prototype.getCurrentBranch=function(){return this._currentBranch};neutron.dashboard.controls.BreadcrumbsBar.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"breadcrumbsBar noSelection"},goog.dom.createDom("div",{"class":"endFade"}));goog.dom.append(a,this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.BreadcrumbsBar.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.height=this._area.height+"px",this._htmlNode.style.width=this._area.width+"px")};neutron.dashboard.controls.BreadcrumbsBar.prototype._remove=function(){null!=this._toolTipNode&&window.document.body.removeChild(this._toolTipNode);this._toolTipNode=null};
neutron.dashboard.controls.BreadcrumbsBar.prototype._connectEvents=function(){};
neutron.dashboard.controls.BreadcrumbsBar.prototype.registerForPathChange=function(a){var b=this;this._addEventHandlerKey("pathChange",goog.events.listen(a,neutron.dashboard.events.EventType.PATH_CHANGE,function(a){if(!0==goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(a.path)){var d=neutron.dashboard.invoker.getLastUsedProject();if(!1==goog.isDefAndNotNull(d))b._htmlNode.style.opacity=0,b._htmlNode.style.display="none";else{if("RECENT"!==d.id){if(0==a.path.length){var e=null;goog.isObject(d)&&
null!=d.rootFolder&&(null!=d.rootFolder.id&&null!=d.rootFolder.name)&&(e={id:d.rootFolder.id,name:d.rootFolder.name});null==e&&(e=d);a.path.push(e)}e=neutron.dashboard.invoker.supportsBranching()&&d.supportsBranching&&"RECENT"!==d.id&&!goog.string.startsWith(d.id,"urn:");!e&&2>a.path.length?(b._htmlNode.style.opacity=0,b._htmlNode.style.display="none"):(b._htmlNode.style.opacity=1,b._htmlNode.style.display="block");b._handlePathArray(a.path,d)&&b._renderBar(e)}else b._htmlNode.style.opacity=0,b._htmlNode.style.display=
"none";b.dispatchEvent(neutron.dashboard.events.EventType.BREADCRUMBBAR_CHANGE)}}}));this._addEventHandlerKey("datapanelPopulated",goog.events.listen(a,neutron.dashboard.events.EventType.CHANGE,function(a){goog.isDefAndNotNull(b._htmlContentNode)&&(goog.isDefAndNotNull(window.allowLastArrow)&&(b._enableLastArrow=window.allowLastArrow),b._enableLastArrow&&goog.isDefAndNotNull(a.newValue.subfoldersCount)&&0<a.newValue.subfoldersCount?goog.dom.classes.add(b._htmlContentNode,"lastArrowVisible"):goog.dom.classes.remove(b._htmlContentNode,
"lastArrowVisible"))}))};
neutron.dashboard.controls.BreadcrumbsBar.prototype._handlePathArray=function(a,b){var c=this;if(!1!=goog.isDefAndNotNull(b)){if(this._currentProjectId===b.id&&a.length===this._foldersData.length&&goog.array.every(this._foldersData,function(b,d){var g=c._getFolderId(a[d]);return b.id===g}))return!1;this._currentProjectId=b.id;goog.array.clear(this._foldersData);var d=[];goog.array.forEach(a,function(a,b){d.push(a);if(!0==goog.isDefAndNotNull(a)){var g=c._getFolderId(a),h={folderId:g,path:d.slice(),
label:a.name};c._foldersData.push(h);0<b&&(c._foldersData[b-1].selectedSubFolderId=g)}},this);return!0}};
neutron.dashboard.controls.BreadcrumbsBar.prototype._renderBar=function(a){var b=this;if(!(!1===goog.isDefAndNotNull(this._htmlNode)||!1===goog.isDefAndNotNull(this._currentProjectId))){var c=function(){goog.isDefAndNotNull(b._htmlContentNode)&&goog.dom.removeNode(b._htmlContentNode);b._disconnectEventsGroup(b._ITEMS_GROUP_KEY);var c=null,d="",g=b._foldersData.length;b._htmlContentNode=goog.dom.createDom("div",{"class":"content"});goog.dom.append(b._htmlNode,b._htmlContentNode);var h=goog.dom.createDom("div",
{"class":"item project"},goog.dom.createDom("div",{"class":"icon"}),goog.dom.createDom("div",{"class":"arrow"}));goog.dom.append(b._htmlContentNode,h);a?(b._registerEvent(h,goog.events.EventType.CLICK,b._CLICK_KEY+"Project",b._onProjectClick,h),c=goog.dom.createDom("div",{"class":1<g?"item branch":"item branch last"},goog.dom.createDom("div",{"class":"icon",style:"border-color: "+b._getColorAsString(b._currentBranch)}),goog.dom.createDom("div",{"class":"label"},b._currentBranch.title)),goog.dom.append(b._htmlContentNode,
c),b._addEventHandlerKeyToGroup(b._ITEMS_GROUP_KEY,b._CLICK_KEY+"Branch",goog.events.listen(c,goog.events.EventType.CLICK,function(){b._onBranchClick()}))):b._registerEvent(h,goog.events.EventType.CLICK,b._CLICK_KEY+"FolderIdx0",b._onFolderClick,0);for(var d=h=null,k=1;k<g;++k){var l=b._foldersData[k],d=1<k&&k<g-1?" tohide":"",m=goog.dom.createDom("div",{"class":"item sep"+d});goog.dom.append(b._htmlContentNode,m);b._registerEvent(m,goog.events.EventType.CLICK,b._CLICK_KEY+"ArrowIdx"+(k-1),b._onArrowClick,
k-1);1===k&&(d=goog.dom.createDom("div",{"class":"item folder ellipsis"+d},"..."),goog.dom.append(b._htmlContentNode,d),h=goog.dom.createDom("div",{"class":"popup folderlist"}),m=goog.dom.createDom("div",{"class":"popupcover"},h),goog.dom.append(d,m));k<g-1?(d=" tohide",b._addItemToHiddenList(h,l,k)):d=" last";d=goog.dom.createDom("div",{"class":"item folder"+d},l.label);goog.dom.append(b._htmlContentNode,d);b._registerEvent(d,goog.events.EventType.CLICK,b._CLICK_KEY+"FolderIdx"+k,b._onFolderClick,
k)}this._enableLastArrow&&0<g&&(m=goog.dom.createDom("div",{"class":"item sep last"}),goog.dom.append(b._htmlContentNode,m),b._registerEvent(m,goog.events.EventType.CLICK,b._CLICK_KEY+"ArrowIdx"+(g-1),b._onArrowClick,g-1));1<g&&(h=b._htmlNode.getBoundingClientRect(),d=d.getBoundingClientRect(),h.right<d.right&&(2===g?goog.dom.classes.add(b._htmlContentNode,"short","nodots"):goog.dom.classes.add(b._htmlContentNode,"short"),goog.isDefAndNotNull(c)&&goog.async.nextTick(function(){goog.style.transition.set(c,
"max-width 0.5s")})))};if(a){goog.dom.classes.add(b._htmlNode,"branching");var d=neutron.dashboard.invoker.getActiveBranchIdForProject(this._currentProjectId);this._currentBranch=b._branchesCache[d];goog.isDefAndNotNull(this._currentBranch)&&d===this._currentBranch.id?c.call(this):(this._currentBranch=null,neutron.dashboard.invoker.getBranchList(this._currentProjectId,function(a){null===b._currentBranch&&(goog.isDefAndNotNull(a)&&goog.isArray(a))&&(a=goog.array.find(a,function(a){var c=goog.object.clone(a);
b._branchesCache[c.id]=c;return goog.isDefAndNotNull(a)&&a.id===d}),goog.isDefAndNotNull(a)&&(b._currentBranch=a,c.call(b)))}))}else goog.dom.classes.remove(b._htmlNode,"branching"),this._currentBranch=null,c.call(this)}};
neutron.dashboard.controls.BreadcrumbsBar.prototype._addItemToHiddenList=function(a,b,c){b=goog.dom.createDom("div",{"class":"item"},b.label);var d=27+8*(c-1);b.style.paddingLeft=d+"px";b.style.backgroundPositionX=d-9-6+"px";this._registerEvent(b,goog.events.EventType.CLICK,this._CLICK_KEY+"PopupFolderIdx"+c,this._onFolderClick,c);goog.dom.append(a,b)};
neutron.dashboard.controls.BreadcrumbsBar.prototype._registerEvent=function(a,b,c,d,e){var f=this;this._addEventHandlerKeyToGroup(c,goog.events.listen(a,b,function(){d.call(f,e,a)}))};neutron.dashboard.controls.BreadcrumbsBar.prototype._onProjectClick=function(a){goog.dom.classes.has(a,this._SHOWING_POPUP_CLASS)?this._hidePopup():this._showBranchList(a)};neutron.dashboard.controls.BreadcrumbsBar.prototype._onBranchClick=function(){this._onFolderClick(0)};
neutron.dashboard.controls.BreadcrumbsBar.prototype._onArrowClick=function(a,b){1>this._foldersData.length||(0>a||a>=this._foldersData.length)||(goog.dom.classes.has(b,this._SHOWING_POPUP_CLASS)?this._hidePopup():this._showSubfoldersList(this._foldersData[a],b))};neutron.dashboard.controls.BreadcrumbsBar.prototype._onFolderClick=function(a){1>this._foldersData.length||(0>a||a>=this._foldersData.length)||(a=this._foldersData[a].path.slice(),!0==goog.isDefAndNotNull(a)&&this.dispatchEvent(new neutron.dashboard.events.PathChange(a)))};
neutron.dashboard.controls.BreadcrumbsBar.prototype._showBranchList=function(a){goog.isDefAndNotNull(this._htmlPopupNode)&&this._hidePopup();var b=goog.dom.createDom("div",{"class":"branchlist popup"});goog.dom.append(this._htmlNode,b);var c=this;c._showActivity(!0);var d=null;neutron.dashboard.invoker.getBranchList(this._currentProjectId,function(a,f){(!1==goog.isDefAndNotNull(f)||f===neutron.dashboard.constants.Status.ERROR||f===neutron.dashboard.constants.Status.DONE)&&c._showActivity(!1);if(!c._isSameData(d,
a,function(a){return a.id})){c._disconnectEventsGroup(c._POPUP_ITEM_KEY);goog.dom.removeChildren(b);if(goog.isDefAndNotNull(a)&&goog.isArray(a)){var g=goog.dom.createDom("div",{"class":"coverarrow"});goog.dom.append(b,g);goog.array.forEach(a,function(a){var d=goog.object.clone(a);c._branchesCache[d.id]=d;a=c._createPopupBranchItem(a);goog.dom.append(b,a)})}d=a}});this._showPopup(b,a)};
neutron.dashboard.controls.BreadcrumbsBar.prototype._showSubfoldersList=function(a,b){goog.isDefAndNotNull(this._htmlPopupNode)&&this._hidePopup();var c=goog.dom.createDom("div",{"class":"popup subfolderlist"});goog.dom.append(this._htmlNode,c);var d=this._htmlNode.getBoundingClientRect(),e=b.getBoundingClientRect().right-d.left+3;c.style.left=e+"px";d=d.width-e+30;c.style.maxWidth=d+"px";c.style.minWidth=100<d?"100px":d+"px";var f=this,g=null;f._showActivity(!0);neutron.dashboard.invoker.getFolders(a.folderId,
function(b,d){(!goog.isDefAndNotNull(d)||d===neutron.dashboard.constants.Status.ERROR||d===neutron.dashboard.constants.Status.DONE)&&f._showActivity(!1);if(!f._isSameData(g,b,function(a){return f._getFolderId(a)})){f._disconnectEventsGroup(f._POPUP_ITEM_KEY);goog.dom.removeChildren(c);var e=!1;goog.isDefAndNotNull(b)&&goog.isArray(b)&&goog.array.forEach(b,function(b){b=f._createPopupSubfolderItem(a,b);goog.dom.append(c,b);e=!0});if(!e){var m=f._createPopupItem(null,_LCLZ("(empty)"),!1,!0,null);goog.dom.append(c,
m)}g=b}});this._showPopup(c,b)};neutron.dashboard.controls.BreadcrumbsBar.prototype._isSameData=function(a,b,c){if(null===a||null===b)return!1;if(a.length===b.length){var d={};goog.array.forEach(a,function(a){d[c(a)]=!0});return goog.array.every(b,function(a){a=c(a);return d[a]})}return!1};
neutron.dashboard.controls.BreadcrumbsBar.prototype._createPopupSubfolderItem=function(a,b){var c=this._getFolderId(b),d=goog.array.concat(a.path,[{id:c,name:b.name}]);return this._createPopupItem(c,b.name,a.selectedSubFolderId===c,!1,d)};
neutron.dashboard.controls.BreadcrumbsBar.prototype._createPopupItem=function(a,b,c,d,e){var f=this;b=goog.dom.createDom("div",{"class":"item folder"},b);c&&goog.dom.classes.add(b,"selected");d?goog.dom.classes.add(b,"disabled"):this._addEventHandlerKeyToGroup(this._POPUP_ITEM_KEY,"ItemClick"+a,goog.events.listen(b,goog.events.EventType.CLICK,function(a){!0!==goog.dom.classes.has(a.target,"disabled")&&f.dispatchEvent(new neutron.dashboard.events.PathChange(e))}));return b};
neutron.dashboard.controls.BreadcrumbsBar.prototype._showActivity=function(a){if(goog.isDefAndNotNull(this._parentPane)){var b=this._parentPane.refreshButton();a?goog.dom.classes.addRemove(b._htmlNode,"refresh","refreshAnim"):goog.dom.classes.addRemove(b._htmlNode,"refreshAnim","refresh")}};
neutron.dashboard.controls.BreadcrumbsBar.prototype._createPopupBranchItem=function(a){var b=this,c=goog.dom.createDom("div",{"class":"item branch"}),d=goog.dom.createDom("div",{"class":"circle",style:"border-color: "+this._getColorAsString(a)});goog.dom.append(c,d,goog.dom.createTextNode(a.title));!0===a.selected&&goog.dom.classes.add(c,"selected");!0===a.disabled&&goog.dom.classes.add(c,"disabled");this._addEventHandlerKeyToGroup(this._POPUP_ITEM_KEY,"ItemClick"+a.id,goog.events.listen(c,goog.events.EventType.CLICK,
function(c){!0===goog.dom.classes.has(c.target,"disabled")?(c.preventDefault(),c.stopPropagation()):goog.isDefAndNotNull(b._currentBranch)&&b._currentBranch.id==a.id||b.dispatchEvent(new neutron.dashboard.events.Change(a.id))}));return c};
neutron.dashboard.controls.BreadcrumbsBar.prototype._showPopup=function(a,b){var c=this;this._htmlPopupNode=a;neutron.dashboard.utils.ContextMenuHelper.connectGlobalEvents(c,"hiddenContextMenuInput",function(){c._hidePopup()});goog.async.nextTick(function(){a.style.opacity=1});goog.dom.classes.add(this._htmlNode,this._POPUP_IS_SHOWN_CLASS);goog.dom.classes.add(b,this._SHOWING_POPUP_CLASS)};
neutron.dashboard.controls.BreadcrumbsBar.prototype._hidePopup=function(){neutron.dashboard.utils.ContextMenuHelper.disconnectGlobalEvents(this);if(goog.isDefAndNotNull(this._htmlPopupNode)){this._htmlPopupNode.style.opacity=0;goog.dom.classes.remove(this._htmlNode,this._POPUP_IS_SHOWN_CLASS);var a=goog.dom.getElementsByClass(this._SHOWING_POPUP_CLASS,this._htmlContentNode);goog.isDefAndNotNull(a)&&goog.isArrayLike(a)&&goog.array.forEach(a,function(a){goog.dom.classes.remove(a,this._SHOWING_POPUP_CLASS)},
this);this._disconnectEventsGroup(this._POPUP_KEY);this._disconnectEventsGroup(this._POPUP_ITEM_KEY);var b=this._htmlPopupNode;this._htmlPopupNode=null;setTimeout(function(){goog.isDefAndNotNull(b)&&goog.dom.removeNode(b)},220)}};neutron.dashboard.controls.BreadcrumbsBar.prototype._getColorAsString=function(a){return goog.isDefAndNotNull(a.color)&&goog.isString(a.color)?"#"+a.color:"#76C185"};
neutron.dashboard.controls.BreadcrumbsBar.prototype._getFolderId=function(a){var b=null;goog.isDefAndNotNull(a.id)?b=a.id:goog.isDefAndNotNull(a.fd)&&(b=a.fd);return b};neutron.dashboard.controls.BreadcrumbsBar.prototype.refreshBar=function(){this._branchesCache={};this._renderBar(!0)};neutron.dashboard.controllers.project_detail_pane.ProjectDetailData=function(a){neutron.dashboard.BaseClass.call(this);this._parentObject=a;this._CONTENT_PADDING_TOP=6;this._BUTTON_CONTROLS_SIZE=18;this._BUTTON_SPACING=6;this._BUTTON_SPACING2=10;this._BUTTON_SPACING_LEFT=8;this._DESIGNPANE_SPACE=17;this._UPLOAD_BTN_HEIGHT=28;this._BREADCRUMBS_BAR_TOP_MARGIN=15;this._BREADCRUMBS_BAR_HEIGHT=18;this._BREADCRUMBS_RIGHT_PADDING=0;this._TOOLBAR_HEIGHT=32;this._ARROW_TOP_SPACE=2;this._ARROW_HEIGHT=10;this._LASTREFRESHTIME_TOP_MARGIN=
9;this._LASTREFRESHTIME_HEIGHT=24};goog.inherits(neutron.dashboard.controllers.project_detail_pane.ProjectDetailData,neutron.dashboard.BaseClass);neutron.dashboard.controllers.project_detail_pane.ProjectDetailData.prototype._init=function(){};
neutron.dashboard.controllers.project_detail_pane.ProjectDetailData.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a)){var b=this._parentObject.htmlNode();b.style.top=a.top+"px";b.style.left=a.left+"px";b.style.width=a.width+"px";b.style.height=a.height+"px";var c=(this._UPLOAD_BTN_HEIGHT-this._BUTTON_CONTROLS_SIZE)/2,d=0,e=this._parentObject.branchComboButton();goog.isDefAndNotNull(e)&&e.dispatchEvent(new neutron.dashboard.events.Update(b,
d,0,-1,-1));e=this._parentObject.branchRecoverButton();goog.isDefAndNotNull(e)&&e.dispatchEvent(new neutron.dashboard.events.Update(b,d,0,-1,-1));d=a.width-this._BUTTON_CONTROLS_SIZE;e=this._parentObject.settingsButton();!0==goog.isDefAndNotNull(e)&&(e.dispatchEvent(new neutron.dashboard.events.Update(b,d,c+1,this._BUTTON_CONTROLS_SIZE-2,this._BUTTON_CONTROLS_SIZE-2)),d=e.width()+this._BUTTON_SPACING2);e=this._parentObject.newFolderButton();!0==goog.isDefAndNotNull(e)&&!0===e.isVisible()&&(e.dispatchEvent(new neutron.dashboard.events.Update(b,
-d,0,-1,-1)),d+=e.width()+this._BUTTON_SPACING);var e=d,f=this._parentObject.uploadButton();!0==goog.isDefAndNotNull(f)&&!0===f.isVisible()&&(f.dispatchEvent(new neutron.dashboard.events.Update(b,-d,0,-1,-1)),e+=f.width()/2);f=this._parentObject.notificationToolbar();if(!0==goog.isDefAndNotNull(f)&&(!1==goog.isDefAndNotNull(f.html())||goog.style.isElementShown(f.html())))c+=this._ARROW_TOP_SPACE,d=this._ARROW_HEIGHT+this._TOOLBAR_HEIGHT,f.dispatchEvent(new neutron.dashboard.events.Update(b,0,40,a.width,
d)),c=0!=f.height()?c+d:c-this._ARROW_TOP_SPACE;f=this._parentObject.zeroDocToolbar();if(!0==goog.isDefAndNotNull(f)&&(!1==goog.isDefAndNotNull(f.html())||goog.style.isElementShown(f.html())))c+=this._ARROW_TOP_SPACE,d=this._ARROW_HEIGHT+this._TOOLBAR_HEIGHT,f.dispatchEvent(new neutron.dashboard.events.Update(b,0,c,a.width,d)),f.setArrowNodePos(e);c=this._parentObject.uploadProgressBar();d=0;!0==goog.isDefAndNotNull(c)&&(d=c.height(),c.dispatchEvent(new neutron.dashboard.events.Update(b,-16,a.height-
d,401,d)));c=this._UPLOAD_BTN_HEIGHT;e=this._parentObject.breadcrumbsBar();!0==goog.isDefAndNotNull(e)&&(c+=this._BREADCRUMBS_BAR_TOP_MARGIN,e.dispatchEvent(new neutron.dashboard.events.Update(b,0,c,a.width-this._BREADCRUMBS_RIGHT_PADDING,this._BREADCRUMBS_BAR_HEIGHT)),c="block"==e.htmlNode().style.display?c+this._BREADCRUMBS_BAR_HEIGHT:c-this._BREADCRUMBS_BAR_TOP_MARGIN);e=this._parentObject.lastRefreshTime();!0==goog.isDefAndNotNull(e)&&(e.dispatchEvent(new neutron.dashboard.events.Update(b,0,c,
a.width,this._LASTREFRESHTIME_HEIGHT)),c="block"==e.htmlNode().style.display?c+this._LASTREFRESHTIME_HEIGHT:c-this._LASTREFRESHTIME_TOP_MARGIN);e=this._parentObject.designsPane();f=this._parentObject.updateOnlyPaneSize();!0==goog.isDefAndNotNull(e)&&(c+=this._DESIGNPANE_SPACE,e.setUpdateOnlySize(f),e.dispatchEvent(new neutron.dashboard.events.Update(b,0,c,a.width+24,a.height-c-this._CONTENT_PADDING_TOP-d)),e.setUpdateOnlySize(!1))}}};
neutron.dashboard.controllers.project_detail_pane.ProjectDetailData.prototype._remove=function(){this._parentObject=null};neutron.dashboard.controllers.project_detail_pane.ProjectDetailData.prototype.refreshButton=function(){if(goog.object.containsKey(this._parentObject,"refreshButton"))return this._parentObject.refreshButton()};neutron.dashboard.events.CommandSelected=function(a,b){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.COMMAND_SELECTED;this.commandId=a;this.commandData=b};goog.inherits(neutron.dashboard.events.CommandSelected,goog.events.Event);neutron.dashboard.controls.ComboButton=function(a,b){neutron.dashboard.RenderableObject.call(this);this._data=goog.json.parse(goog.json.serialize(a));this._imgClsToRemove=[];goog.array.forEach(this._data,function(a){this._imgClsToRemove.push(a.imgClass)},this);this._popupHtmlNode=this._downHtmlNode=this._actionTooltipHtmlNode=this._actionHtmlNode=null;this._customClass=b;this._actionCommandIdx=0;this._POPUP_GROUP="ComboButton:POPUP";this._popupIsVisible=!1;neutron.dashboard.RenderableObject.call(this)};
goog.inherits(neutron.dashboard.controls.ComboButton,neutron.dashboard.RenderableObject);neutron.dashboard.controls.ComboButton.prototype.disableCommandId=function(a,b){var c=goog.isDefAndNotNull(b)&&goog.isBoolean(b)?b:!0;goog.array.forEach(this._data,function(b){b.id==a&&(b.disabled=c)});this._updateActionButton()};
neutron.dashboard.controls.ComboButton.prototype.disableComboButton=function(a){!1!=goog.isDefAndNotNull(this._htmlNode)&&(!a&&!0==goog.dom.classes.has(this._htmlNode,"disabled")&&goog.dom.classes.remove(this._htmlNode,"disabled"),a&&!1==goog.dom.classes.has(this._htmlNode,"disabled")&&goog.dom.classes.add(this._htmlNode,"disabled"))};neutron.dashboard.controls.ComboButton.prototype.hide=function(){!1!=goog.isDefAndNotNull(this._htmlNode)&&(this._htmlNode.style.display="none")};
neutron.dashboard.controls.ComboButton.prototype.show=function(){!1!=goog.isDefAndNotNull(this._htmlNode)&&(this._htmlNode.style.display="block")};
neutron.dashboard.controls.ComboButton.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"comboButton"});this._customClass&&goog.dom.classes.add(this._htmlNode,this._customClass);this._actionHtmlNode=goog.dom.createDom("div",{"class":"action tooltipParent"});this._actionTooltipHtmlNode=goog.dom.createDom("div",{"class":"tooltip left bottom"},"Akce");goog.dom.append(this._actionHtmlNode,this._actionTooltipHtmlNode);this._downHtmlNode=goog.dom.createDom("div",{"class":"down tooltipParent"});
goog.dom.append(this._downHtmlNode,goog.dom.createDom("div",{"class":"tooltip left bottom"},_LCLZ("Branch / Merge Options")));this._popupHtmlNode=goog.dom.createDom("div",{"class":"list",style:"opacity:0"});goog.dom.append(this._htmlNode,this._actionHtmlNode,this._downHtmlNode,this._popupHtmlNode);goog.dom.append(a,this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.ComboButton.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode)||(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._updateActionButton())};
neutron.dashboard.controls.ComboButton.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey("ACTION_CLICK",goog.events.listen(this._actionHtmlNode,goog.events.EventType.CLICK,function(){return a._onActionClick()}));this._addEventHandlerKey("DOWN_CLICK",goog.events.listen(this._downHtmlNode,goog.events.EventType.CLICK,function(){return a._onDropDownClick()}))};neutron.dashboard.controls.ComboButton.prototype._getValidActionCmdIdx=function(){return this._actionCommandIdx};
neutron.dashboard.controls.ComboButton.prototype._isCommandEnabled=function(a){return goog.isDefAndNotNull(a.disabled)?!0!==a.disabled:!0};
neutron.dashboard.controls.ComboButton.prototype._updateActionButton=function(){if(!1!==goog.isDefAndNotNull(this._htmlNode)){this._actionCommandIdx=this._getValidActionCmdIdx();var a=this._data[this._actionCommandIdx];goog.dom.classes.addRemove(this._actionHtmlNode,this._imgClsToRemove,a.imgClass);goog.dom.classes.remove(this._actionHtmlNode,"disabled");!1===this._isCommandEnabled(a)&&goog.dom.classes.add(this._actionHtmlNode,"disabled");this._actionTooltipHtmlNode.innerText=a.title}};
neutron.dashboard.controls.ComboButton.prototype._onActionClick=function(){this._fireActionCommand();return!1};neutron.dashboard.controls.ComboButton.prototype._onDropDownClick=function(){!0===goog.isDefAndNotNull(this._htmlNode)&&!0==goog.dom.classes.has(this._htmlNode,"disabled")||(neutron.dashboard.utils.ContextMenuHelper.cancelBlurEvent(this),this._popupIsVisible?this._hidePopup():this._showPopup())};
neutron.dashboard.controls.ComboButton.prototype._registerEvent=function(a,b,c,d,e){var f=this;this._addEventHandlerKeyToGroup(this._POPUP_GROUP,c,goog.events.listen(a,b,function(a){d.call(f,e,a)}))};
neutron.dashboard.controls.ComboButton.prototype._hidePopup=function(){this._disconnectEventsGroup(this._POPUP_GROUP);neutron.dashboard.utils.ContextMenuHelper.disconnectGlobalEvents(this);goog.dom.classes.remove(this._downHtmlNode,"clicked");goog.dom.removeChildren(this._popupHtmlNode);this._popupIsVisible=!1;this._popupHtmlNode.style.opacity=0};
neutron.dashboard.controls.ComboButton.prototype._showPopup=function(){goog.dom.classes.add(this._downHtmlNode,"clicked");this._popupIsVisible=!0;goog.dom.removeChildren(this._popupHtmlNode);for(var a=0;a<this._data.length;a++){var b=this._data[a],c=goog.dom.createDom("div",{"class":"item"},b.title);goog.dom.classes.add(c,b.imgClass);if(goog.isDefAndNotNull(b.tooltip)){goog.dom.classes.add(c,"tooltipParent");var d=goog.dom.createDom("div",{"class":"tooltip"},b.tooltip);goog.dom.append(c,d)}a==this._actionCommandIdx&&
goog.dom.classes.add(c,"current");if(this._isCommandEnabled(b))this._registerEvent(c,goog.events.EventType.CLICK,"Item"+a,this._onDownItemClick,a);else{var e=this;this._addEventHandlerKeyToGroup(this._POPUP_GROUP,"Item"+a,goog.events.listen(c,goog.events.EventType.CLICK,function(a){neutron.dashboard.utils.ContextMenuHelper.cancelBlurEvent(e);neutron.dashboard.utils.ContextMenuHelper.resetBlurEvent(e);a.preventDefault();a.stopPropagation();return!1}));goog.dom.classes.add(c,"disabled")}goog.dom.append(this._popupHtmlNode,
c)}this._connectGlobalEvents();var f=this._popupHtmlNode;goog.async.nextTick(function(){f.style.opacity=1})};neutron.dashboard.controls.ComboButton.prototype._onDownItemClick=function(a){this._isCommandEnabled(this._data[a])&&(this._actionCommandIdx=a,this._updateActionButton(),this._fireActionCommand())};neutron.dashboard.controls.ComboButton.prototype._fireActionCommand=function(){var a=this._data[this._actionCommandIdx];this._isCommandEnabled(a)&&this.dispatchEvent(new neutron.dashboard.events.CommandSelected(a.id))};
neutron.dashboard.controls.ComboButton.prototype._connectGlobalEvents=function(){var a=this;neutron.dashboard.utils.ContextMenuHelper.connectGlobalEvents(a,"hiddenContextMenuInput",function(){a._hidePopup()})};neutron.dashboard.controls.ComboButton.prototype.initActionButton=function(a){for(var b=0;b<this._data.length;b++){var c=this._data[b];if(c.id==a&&this._isCommandEnabled(c)){this._actionCommandIdx=b;break}}};neutron.dashboard.toolbars={};neutron.dashboard.toolbars.zeroDocMessage=function(){neutron.dashboard.RenderableObject.call(this);this._savedDesignsNode=this._savedDesignsHtmlNode=this._arrowNode=this._closeNode=this._uploadMsgNode=this._toolbarHtmlNode=this._htmlNode=null;this._isZeroDocFlyoutMsgVisible=!1;this._arrowRightPosition=0;this._init()};goog.inherits(neutron.dashboard.toolbars.zeroDocMessage,neutron.dashboard.RenderableObject);neutron.dashboard.toolbars.zeroDocMessage.prototype.html=function(){return this._htmlNode};
neutron.dashboard.toolbars.zeroDocMessage.prototype._init=function(){this._isZeroDocFlyoutMsgVisible=this._isZeroDocFlyoutMsgVisibleInServer();neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.NEW_PROJECT,this,this._newProject)};neutron.dashboard.toolbars.zeroDocMessage.prototype._newProject=function(){this.changeVisibilityUploadButtonFlyoutMsg(!1,!0)};
neutron.dashboard.toolbars.zeroDocMessage.prototype._construct=function(a){this._toolbarHtmlNode=goog.dom.createDom("div",{"class":"zeroDocMessageToolbar"});this._uploadMsgNode=goog.dom.createDom("div",{"class":"msgToolbarButton"},_LCLZ("Upload files from your desktop"));this._toolbarHtmlNode.appendChild(this._uploadMsgNode);this._closeNode=goog.dom.createDom("div",{"class":"toolbarButton zeroDocCloseBtn select tooltipParent"});this._closeNode.appendChild(goog.dom.createDom("div",{"class":"_hover_"}));
var b=goog.dom.createDom("div",{"class":"tooltip center bottom"},_LCLZ("Close"));this._closeNode.appendChild(b);this._toolbarHtmlNode.appendChild(this._closeNode);var c=this;this._addEventHandlerKey("TOOLBAR_CLOSE_CLICK",goog.events.listen(this._closeNode,goog.events.EventType.CLICK,function(a){c._onCloseButtonHandler()}));this._arrowNode=goog.dom.createDom("div",{"class":"arrowUp"});this._toolbarHtmlNode.appendChild(this._arrowNode);this._htmlNode=goog.dom.createDom("div",{"class":"zeroDocMessageEllipsisMsgPopup noSelection"},
this._toolbarHtmlNode);this._savedDesignsHtmlNode=goog.dom.createDom("div",{"class":"zeroDocMessageRefreshToolbar"});this._savedDesignsNode=goog.dom.createDom("div",{"class":"refreshToolbarButton name select"},_LCLZ("Saved and Uploaded files will appear here"));this._savedDesignsHtmlNode.appendChild(this._savedDesignsNode);a.appendChild(this._savedDesignsHtmlNode);a.appendChild(this._htmlNode);this.changeVisibilityUploadButtonFlyoutMsg(!1,!1);this.changeVisibilitySavedDesigns(!1)};
neutron.dashboard.toolbars.zeroDocMessage.prototype._isZeroDocFlyoutMsgVisibleInServer=function(){var a=!0,b=window.neutronJavaScriptObject.executeQuery("getUIBaseOptions","");try{b=JSON.parse(b)}catch(c){b=null,console.log("zeroDocMessage._isZeroDocFlyoutMsgVisibleInServer : exception raised: ")}!0===goog.isDefAndNotNull(b)?a="true"===b.wantToShowZeroDocFlyoutMsg?!0:!1:console.log("zeroDocMessage: uiOptions are invalid.");return a};
neutron.dashboard.toolbars.zeroDocMessage.prototype._shouldZeroDocFlyoutMsgBeVisible=function(){return this._isZeroDocFlyoutMsgVisible};neutron.dashboard.toolbars.zeroDocMessage.prototype._showZeroDocFlyoutMsg=function(a){this._isZeroDocFlyoutMsgVisible!=a&&(window.neutronJavaScriptObject.executeQuery("setUIBaseOptions",a?'{ "wantToShowZeroDocFlyoutMsg": "true" }':'{ "wantToShowZeroDocFlyoutMsg": "false" }'),this._isZeroDocFlyoutMsgVisible=a)};
neutron.dashboard.toolbars.zeroDocMessage.prototype._onCloseButtonHandler=function(){this.changeVisibilityUploadButtonFlyoutMsg(!1,!0)};neutron.dashboard.toolbars.zeroDocMessage.prototype._remove=function(){};
neutron.dashboard.toolbars.zeroDocMessage.prototype.changeVisibilityUploadButtonFlyoutMsg=function(a,b){!1!=goog.isDefAndNotNull(this._htmlNode)&&(goog.isDefAndNotNull(b)&&b&&!a&&(console.log("zeroDocMessage - PERMANENTLY HIDING FOR CURRENT USER"),this._showZeroDocFlyoutMsg(!1)),!0==a&&this._shouldZeroDocFlyoutMsgBeVisible()?(console.log("zeroDocMessageToolbar - SHOW"),this._htmlNode.style.overflow="visible",this._arrowNode.style.right=this._arrowRightPosition+"px"):(console.log("zeroDocMessageToolbar - HIDE"),
this._htmlNode.style.overflow="hidden"))};neutron.dashboard.toolbars.zeroDocMessage.prototype.changeVisibilitySavedDesigns=function(a){!1!=goog.isDefAndNotNull(this._htmlNode)&&(!0==a?(console.log("_savedDesignsHtmlNode - SHOW"),this._savedDesignsHtmlNode.style.overflow="visible"):(console.log("_savedDesignsHtmlNode - HIDE"),this._savedDesignsHtmlNode.style.overflow="hidden"))};neutron.dashboard.toolbars.zeroDocMessage.prototype.height=function(){return!1==goog.isDefAndNotNull(this._htmlNode)?0:parseInt(this._htmlNode.style.height)};
neutron.dashboard.toolbars.zeroDocMessage.prototype.setArrowNodePos=function(a){this._arrowRightPosition=a-64};neutron.dashboard.controls.ArrowStrip=function(a,b){neutron.dashboard.RenderableObject.call(this);this._contentHtmlNode=a;this._crossBtnHtmlNode=this._contentContainerHtmlNode=this._arrowHtmlNode=null;this._bCross=b;this._HINT_CROSS_CLICK_EVENT_KEY="HINT_CROSS_CLICK_EVENT_KEY";this._init()};goog.inherits(neutron.dashboard.controls.ArrowStrip,neutron.dashboard.RenderableObject);neutron.dashboard.controls.ArrowStrip.prototype._init=function(){};
neutron.dashboard.controls.ArrowStrip.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"arrowStrip"});this._arrowHtmlNode=goog.dom.createDom("div",{"class":"arrowUp"});this._htmlNode.appendChild(this._arrowHtmlNode);this._contentContainerHtmlNode=goog.dom.createDom("div",{"class":"contentContainer"});this._contentContainerHtmlNode.appendChild(this._contentHtmlNode);this._htmlNode.appendChild(this._contentContainerHtmlNode);!0==this._bCross&&(this._crossBtnHtmlNode=
goog.dom.createDom("div",{"class":"cross"}),this._contentHtmlNode.appendChild(this._crossBtnHtmlNode));a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.controls.ArrowStrip.prototype._update=function(){!1==goog.isDefAndNotNull(this._area)||!1==goog.isDefAndNotNull(this._htmlNode)||(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px")};
neutron.dashboard.controls.ArrowStrip.prototype._remove=function(){};neutron.dashboard.controls.ArrowStrip.prototype._connectEvents=function(){var a=this;!0==goog.isDefAndNotNull(this._crossBtnHtmlNode)&&this._addEventHandlerKey(this._HINT_CROSS_CLICK_EVENT_KEY,goog.events.listen(this._crossBtnHtmlNode,goog.events.EventType.CLICK,function(b){a.dispatchEvent(neutron.dashboard.events.EventType.HIDE)}))};
neutron.dashboard.controls.ArrowStrip.prototype.arrowPosition=function(a){!1!=goog.isDefAndNotNull(this._arrowHtmlNode)&&(this._arrowHtmlNode.style.left=a+"px")};neutron.dashboard.events.BranchChange=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.BRANCH_CHANGE;this.branchObj=a};goog.inherits(neutron.dashboard.events.BranchChange,goog.events.Event);neutron.dashboard.events.Refresh=function(){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.REFRESH};goog.inherits(neutron.dashboard.events.Refresh,goog.events.Event);neutron.dashboard.events.ViewChange=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.VIEW_CHANGE;this.viewType=a};goog.inherits(neutron.dashboard.events.ViewChange,goog.events.Event);neutron.dashboard.events.SortChange=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.SORT_CHANGE;this.sortType=a};goog.inherits(neutron.dashboard.events.SortChange,goog.events.Event);neutron.dashboard.toolbars.NotificationMessage=function(){neutron.dashboard.RenderableObject.call(this);this._shadowBoxHtmlNode=this._htmlNode=this._controller=null;this._messageStack=[];this._lastMessageId=0;this._init()};goog.inherits(neutron.dashboard.toolbars.NotificationMessage,neutron.dashboard.RenderableObject);neutron.dashboard.toolbars.NotificationMessage.prototype.html=function(){return this._htmlNode};neutron.dashboard.toolbars.NotificationMessage.prototype.messageStack=function(){return this._messageStack};
neutron.dashboard.toolbars.NotificationMessage.prototype._init=function(){};neutron.dashboard.toolbars.NotificationMessage.prototype.registerForPathChange=function(a){var b=this;this._addEventHandlerKey("pathChange",goog.events.listen(a,neutron.dashboard.events.EventType.PATH_CHANGE,function(a){!0==goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(a.path)&&b.clear()}))};
neutron.dashboard.toolbars.NotificationMessage.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"toolbarEllipsisMsgPopup noSelection"});this._shadowBoxHtmlNode=goog.dom.createDom("div",{"class":"boxShadow l_layout l_verticalLayout"});this._htmlNode.appendChild(this._shadowBoxHtmlNode);a.appendChild(this._htmlNode)};neutron.dashboard.toolbars.NotificationMessage.prototype._onCloseButtonHandler=function(a){this.popMessage(a)};
neutron.dashboard.toolbars.NotificationMessage.prototype._onActionButtonHandler=function(a){var b=goog.array.findIndex(this._messageStack,function(b){return b.id===a});-1!==b&&(goog.isDefAndNotNull(this._messageStack[b].action)&&this._messageStack[b].action(),this.popMessage(a))};neutron.dashboard.toolbars.NotificationMessage.prototype._getUnderCursorElement=function(){for(var a=document.querySelector(":hover"),b=null;a;)b=a,a=b.querySelector(":hover");return b};
neutron.dashboard.toolbars.NotificationMessage.prototype._onCheckTriggerClick=function(a,b){var c=b.target;goog.isDefAndNotNull(c)&&(c=this._getUnderCursorElement());var d=null;goog.isDefAndNotNull(c)&&"span"===c.tagName.toLowerCase()&&(d=c.getAttribute("actionId"));c=goog.array.findIndex(this._messageStack,function(b){return b.id===a});if(-1!==c){if(goog.isDefAndNotNull(this._messageStack[c].idToActionMap)&&goog.isDefAndNotNull(this._messageStack[c].idToActionMap[d]))this._messageStack[c].idToActionMap[d]();
this.popMessage(a)}};neutron.dashboard.toolbars.NotificationMessage.prototype._update=function(){!1==goog.isDefAndNotNull(this._htmlNode)||!1==goog.isDefAndNotNull(this._area)||(this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.width="348px",0!=parseInt(this._htmlNode.style.height)&&(this._htmlNode.style.height=this._area.height+"px"))};neutron.dashboard.toolbars.NotificationMessage.prototype._remove=function(){this._clear()};
neutron.dashboard.toolbars.NotificationMessage.prototype._popMessageAfterMouseLeave=function(a){var b=goog.array.findIndex(this._messageStack,function(b){return b.id===a});-1!==b&&!1!=goog.isDefAndNotNull(this._messageStack[b].firstTimeOutDone)&&this.popMessage(a)};
neutron.dashboard.toolbars.NotificationMessage.prototype._popMessageAfterDefaultTime=function(a){var b=goog.array.findIndex(this._messageStack,function(b){return b.id===a});-1!==b&&(this._messageStack[b].firstTimeOutDone=!0,!0!==this._messageStack[b].mouseOver&&this.popMessage(a))};
neutron.dashboard.toolbars.NotificationMessage.prototype.popMessage=function(a){var b=this,c=goog.array.findIndex(this._messageStack,function(b){return b.id===a});if(-1!==c){var d=b._messageStack[c].node;d.style.height=d.offsetHeight+"px";goog.dom.classes.add(d,"overflow_hidden");setTimeout(function(){goog.dom.classes.add(d,"hidden");d.style.height="0";b._update()},5);goog.array.removeAt(b._messageStack,c);setTimeout(function(){b._shadowBoxHtmlNode.removeChild(d);0===b._messageStack.length&&goog.dom.classes.remove(b._htmlNode,
"show");b._update()},305)}};
neutron.dashboard.toolbars.NotificationMessage.prototype.showMultipleActionMessage=function(a,b,c){if(!1!=goog.isDefAndNotNull(this._htmlNode)){var d=this,e=goog.array.findIndex(d._messageStack,function(b){return b.msg===a});if(-1<e&&1==d._messageStack.length)console.log("Skipping new notification message as same one should already be up.");else{var f=goog.dom.createDom("div",{"class":"notificationMessageToolbar noSelection hidden l_layout l_alignContentSpaceBetween"}),g=goog.dom.createDom("div",
{"class":"msgToolbarButton select"});g.innerHTML=a;f.appendChild(g);g=goog.dom.createDom("div",{"class":"toolbarButton closeBtn select tooltipParent l_layout l_column l_fixed l_vAlignItemsMiddle right7"});g.appendChild(goog.dom.createDom("div",{"class":"_hover_"}));var h=goog.dom.createDom("div",{"class":"tooltip center bottom"},_LCLZ("Close"));g.appendChild(h);f.appendChild(g);var k=this._lastMessageId++;this._addEventHandlerKey("TOOLBAR_CLOSE_CLICK",goog.events.listen(g,goog.events.EventType.CLICK,
function(){d._onCloseButtonHandler(k)}));this._addEventHandlerKey("TOOLBAR_MESSAGE_CLICK",goog.events.listen(f,goog.events.EventType.CLICK,function(a){d._onCheckTriggerClick(k,a)}));this._shadowBoxHtmlNode.appendChild(f);-1<e&&d.popMessage(d._messageStack[e].id);goog.array.insert(this._messageStack,{id:k,msg:a,action_text:"",idToActionMap:b,node:f,mouseOver:!1,autoHide:c});this._update();goog.dom.classes.add(this._htmlNode,"show");setTimeout(function(){goog.dom.classes.remove(f,"hidden")},1);!0==
c&&(this._addEventHandlerKey("NotificationMessage.MouseEnter"+k,goog.events.listen(f,goog.events.EventType.MOUSEENTER,function(){d._onMouseEnter(k)})),this._addEventHandlerKey("NotificationMessage.MouseLeave"+k,goog.events.listen(f,goog.events.EventType.MOUSELEAVE,function(){d._onMouseLeave(k)})),setTimeout(function(){d._popMessageAfterDefaultTime(k)},5E3))}}};
neutron.dashboard.toolbars.NotificationMessage.prototype.show=function(a,b,c,d){if(!1!=goog.isDefAndNotNull(this._htmlNode)){var e=this,f=goog.isDefAndNotNull(d)&&!0===d;d=goog.array.findIndex(e._messageStack,function(c){var d="Refresh"===b&&c.action_text===b;return c.msg===a&&(d||!f)});if(-1<d&&1==e._messageStack.length)console.log("Skipping new notification message as same one should already be up.");else{var g=goog.dom.createDom("div",{"class":"notificationMessageToolbar noSelection hidden l_layout"}),
h=goog.dom.createDom("div",{"class":"msgToolbarButton recent select l_layout l_column l_flexible l_vAlignItemsMiddle"});h.innerHTML=a;g.appendChild(h);var h=null,k="";goog.isObject(b)&&goog.isDefAndNotNull(b.msg)&&(h=b.msg,goog.isString(b.cls)&&(k=b.cls));goog.isDefAndNotNull(h)||(h=b);h=goog.dom.createDom("div",{"class":"refreshToolbarButton name select l_layout l_column l_fixed l_vAlignItemsMiddle"+k},h);g.appendChild(h);k=goog.dom.createDom("div",{"class":"toolbarButton closeBtn select tooltipParent l_layout l_column l_fixed l_vAlignItemsMiddle"});
k.appendChild(goog.dom.createDom("div",{"class":"_hover_"}));var l=goog.dom.createDom("div",{"class":"tooltip center bottom"},_LCLZ("Close"));k.appendChild(l);g.appendChild(k);var m=this._lastMessageId++;this._addEventHandlerKey("TOOLBAR_CLOSE_CLICK",goog.events.listen(k,goog.events.EventType.CLICK,function(){e._onCloseButtonHandler(m)}));this._addEventHandlerKey("TOOLBAR_REFRESH_CLICK",goog.events.listen(h,goog.events.EventType.CLICK,function(){e._onActionButtonHandler(m)}));this._shadowBoxHtmlNode.appendChild(g);
-1<d&&e.popMessage(e._messageStack[d].id);goog.array.insert(this._messageStack,{id:m,msg:a,action_text:b,action:c,node:g,mouseOver:!1,autoHide:f});this._update();goog.dom.classes.add(this._htmlNode,"show");setTimeout(function(){goog.dom.classes.remove(g,"hidden")},1);!0==f&&(this._addEventHandlerKey("NotificationMessage.MouseEnter"+m,goog.events.listen(g,goog.events.EventType.MOUSEENTER,function(){e._onMouseEnter(m)})),this._addEventHandlerKey("NotificationMessage.MouseLeave"+m,goog.events.listen(g,
goog.events.EventType.MOUSELEAVE,function(){e._onMouseLeave(m)})),setTimeout(function(){e._popMessageAfterDefaultTime(m)},5E3))}}};neutron.dashboard.toolbars.NotificationMessage.prototype._onMouseEnter=function(a){var b=goog.array.findIndex(this._messageStack,function(b){return b.id===a});-1!==b&&(this._messageStack[b].mouseOver=!0)};
neutron.dashboard.toolbars.NotificationMessage.prototype._onMouseLeave=function(a){var b=this,c=goog.array.findIndex(b._messageStack,function(b){return b.id===a});-1!==c&&(b._messageStack[c].mouseOver=!1,!0==b._messageStack[c].autoHide&&setTimeout(function(){b._popMessageAfterMouseLeave(a)},1))};
neutron.dashboard.toolbars.NotificationMessage.prototype.clear=function(){var a=this;goog.dom.classes.remove(this._htmlNode,"show");goog.array.forEach(this._messageStack,function(b){a._shadowBoxHtmlNode.removeChild(b.node)});this._messageStack=[]};neutron.dashboard.toolbars.NotificationMessage.prototype.height=function(){return!1==goog.isDefAndNotNull(this._htmlNode)?0:parseInt(this._shadowBoxHtmlNode.style.height)};neutron.dashboard.controls.LastRefreshTime=function(a){neutron.dashboard.RenderableObject.call(this);this._parentPane=a};goog.inherits(neutron.dashboard.controls.LastRefreshTime,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.LastRefreshTime.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"lastRefreshTime noSelection"});var b=goog.dom.createDom("div",{"class":"label"});this._label=b;goog.dom.append(this._htmlNode,b);goog.dom.append(a,this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.LastRefreshTime.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.height=this._area.height+"px",this._htmlNode.style.width=this._area.width+"px")};neutron.dashboard.controls.LastRefreshTime.prototype._remove=function(){null!=this._toolTipNode&&window.document.body.removeChild(this._toolTipNode);this._toolTipNode=null};
neutron.dashboard.controls.LastRefreshTime.prototype._connectEvents=function(){neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.FOLDER_REFRESHED,this,this.handleOnFolderRefresh)};
neutron.dashboard.controls.LastRefreshTime.prototype.handleOnFolderRefresh=function(a){var b=0,c="none";!0==goog.isDefAndNotNull(a)&&(!0==goog.isDefAndNotNull(a.folderInfo)&&!0==goog.isDefAndNotNull(a.folderInfo.contentRefreshTime))&&!1===neutron.dashboard.invoker.online()&&(a=a.folderInfo.contentRefreshTime,b=parseInt(a),c=_LCLZ("Never"),0<b&&(c=neutron.dashboard.utils.FormatUtils.formatDateAndTime(a)),console.log('LastRefreshTime - folderRefreshed ("'+c+'")'),this._label.innerHTML=_LCLZ("Content last refreshed: ")+
c,b=1,c="block");this._htmlNode.style.opacity=b;this._htmlNode.style.display=c;this._parentPane._update()};neutron.dashboard.events.GroupByChange=function(a){goog.events.Event.call(this);this.type=neutron.dashboard.events.EventType.GROUPBY_CHANGE;this.groupBy=a};goog.inherits(neutron.dashboard.events.GroupByChange,goog.events.Event);neutron.dashboard.panes.ProjectDetailData=function(a){neutron.dashboard.RenderableObject.call(this);this._parent=a;this._UPLOAD_MOUSE_ENTER_EVENT_KEY="UPLOAD_MOUSE_ENTER";this._UPLOAD_MOUSE_LEAVE_EVENT_KEY="UPLOAD_MOUSE_LEAVE";this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY="NEUTRON_TO_JAVASCRIPT";this._TOOLBAR_VIEW_CHANGE="TOOLBAR_VIEW_CHANGE";this._NOTIFICATION_VIEW_CHANGE="NOTIFICATION_VIEW_CHANGE";this._REFRESH="REFRESH";this._BREADCRUMBBAR_CHANGE="_BREADCRUMBBAR_CHANGE";this._UPLOAD_CLICK_EVENT_KEY="UPLOAD_BTN_CLICK";
this._NEWFOLDER_CLICK_EVENT_KEY="NEWFOLDER_BTN_CLICK";this._SETTINGS_CLICK_EVENT_KEY="SETTINGS_BTN_CLICK";this._PROJECT_CHANGED_EVENT_KEY="PROJECT_CHANGED_KEY";this._BRANCH_CHANGED_EVENT_KEY="BRANCH_CHANGED_KEY";this._BRANCH_RECOVER_CLICK_EVENT_KEY="BRANCH_RECOVER_BTN_CLICK";this._SETTINGS_CONTEXTMENU_ITEM_SELECTED_EVENT_KEY="SETIINGS_CONTEXT_MENU_ITEM_SELECTED";this._SETTINGS_CONTEXTMENU_REMOVE_EVENT_KEY="SETTINGS_CONTEXT_MENU_REMOVE";this._RECOVERY_INTERVAL=6E4;this._controller=null;this._recheckCounter=
10;this._updateOnlyPaneSize=!1;this._lastProjectObj=this._uploadProgressBar=this._designsPane=this._lastRefreshTime=this._breadcrumbsBar=this._zeroDocToolbar=this._notificationToolbar=this._settingsCtxMenu=this._settingsBtn=this._newFolderBtn=this._uploadBtn=this._branchRecoverBtn=this._branchComboButton=null;this._mergeWasEnabled=!1;this._recoveryTimeoutId=null;this.init()};goog.inherits(neutron.dashboard.panes.ProjectDetailData,neutron.dashboard.RenderableObject);
neutron.dashboard.panes.ProjectDetailData.prototype.init=function(){this._controller=new neutron.dashboard.controllers.project_detail_pane.ProjectDetailData(this);this._breadcrumbsBar=new neutron.dashboard.controls.BreadcrumbsBar(this);this._lastRefreshTime=new neutron.dashboard.controls.LastRefreshTime(this);this._branchComboButton=new neutron.dashboard.controls.ComboButton([{title:_LCLZ("Create Branch"),id:neutron.dashboard.constants.BranchManageCommands.CREATE_NEW_BRANCH,imgClass:"imgNewBranch",
tooltip:_LCLZ("Create Branch TT")},{title:_LCLZ("Create Milestone"),id:neutron.dashboard.constants.BranchManageCommands.CREATE_MILESTONE,imgClass:"imgMilestone",tooltip:_LCLZ("Create Milestone TT")},{title:_LCLZ("Merge_pull"),id:neutron.dashboard.constants.BranchManageCommands.MERGE_PULL,imgClass:"imgMergePull"},{title:_LCLZ("Merge_push"),id:neutron.dashboard.constants.BranchManageCommands.MERGE_PUSH,imgClass:"imgMergePush"},{title:_LCLZ("View Project History"),id:neutron.dashboard.constants.BranchManageCommands.MANAGE,
imgClass:"imgPrjManage"}]);this._branchRecoverBtn=new neutron.dashboard.controls.Dummy("actionButton recover",null,{label:_LCLZ("Recover branches to folders"),align:"left10 bottom"});this._branchRecoverBtn.hide();neutron.dashboard.invoker.supportsBranching()?this._showBranchesButtons(!1):this._hideBranchesButtons();this._uploadBtn=new neutron.dashboard.controls.Dummy("actionButton upload ",_LCLZ("Upload"));this._uploadBtn.disable();this.recheckUploadAvailability();this._newFolderBtn=new neutron.dashboard.controls.Dummy("actionButton newFolder ",
_LCLZ("New Folder"));this._settingsBtn=new neutron.dashboard.controls.Dummy("actionButton settings",null,{label:_LCLZ("Settings"),align:"center bottom"});this._uploadProgressBar=new neutron.dashboard.controls.UploadProgressBar;this._notificationToolbar=new neutron.dashboard.toolbars.NotificationMessage;this._zeroDocToolbar=new neutron.dashboard.toolbars.zeroDocMessage;this._designsPane=new neutron.dashboard.panes.DesignsFolder(this);this._designsPane.registerForViewChange(this);this._designsPane.registerForSortChange(this);
this._designsPane.registerForGroupByChange(this);this._designsPane.registerForPathChange(this._breadcrumbsBar);this._breadcrumbsBar.registerForPathChange(this._designsPane);neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.CACHE_VIEW)&&this._designsPane.getCacheContents(!0)};neutron.dashboard.panes.ProjectDetailData.prototype.updateOnlyPaneSize=function(){return this._updateOnlyPaneSize};
neutron.dashboard.panes.ProjectDetailData.prototype.branchComboButton=function(){return this._branchComboButton};neutron.dashboard.panes.ProjectDetailData.prototype.branchRecoverButton=function(){return this._branchRecoverBtn};neutron.dashboard.panes.ProjectDetailData.prototype.uploadButton=function(){return this._uploadBtn};neutron.dashboard.panes.ProjectDetailData.prototype.newFolderButton=function(){return this._newFolderBtn};neutron.dashboard.panes.ProjectDetailData.prototype.settingsButton=function(){return this._settingsBtn};
neutron.dashboard.panes.ProjectDetailData.prototype.notificationToolbar=function(){return this._notificationToolbar};neutron.dashboard.panes.ProjectDetailData.prototype.zeroDocToolbar=function(){return this._zeroDocToolbar};neutron.dashboard.panes.ProjectDetailData.prototype.breadcrumbsBar=function(){return this._breadcrumbsBar};neutron.dashboard.panes.ProjectDetailData.prototype.lastRefreshTime=function(){return this._lastRefreshTime};
neutron.dashboard.panes.ProjectDetailData.prototype.designsPane=function(){return this._designsPane};neutron.dashboard.panes.ProjectDetailData.prototype.uploadProgressBar=function(){return this._uploadProgressBar};
neutron.dashboard.panes.ProjectDetailData.prototype.recheckUploadAvailability=function(){if(!1==neutron.dashboard.utils.EntitlementHelper.isEntitled("application/vnd.autodesk.fusion360")){if(0<this._recheckCounter--){var a=this;setTimeout(function(){a.recheckUploadAvailability()},1E3)}}else goog.isDefAndNotNull(this._uploadBtn)&&this._uploadBtn.enable()};
neutron.dashboard.panes.ProjectDetailData.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{id:"projectDetailData"});a.appendChild(this._htmlNode);this._connectEvents();var b=this;goog.events.listen(this._htmlNode,goog.events.EventType.DRAGOVER,function(a){b._handleDisabledDragDrop(a)});goog.events.listen(this._htmlNode,goog.events.EventType.DRAGENTER,function(a){b._handleDisabledDragDrop(a)})};
neutron.dashboard.panes.ProjectDetailData.prototype._handleDisabledDragDrop=function(a){a.stopPropagation();a.preventDefault();a.event_.dataTransfer.dropEffect="none"};
neutron.dashboard.panes.ProjectDetailData.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._area)){var a=this.settingsButton().htmlNode();this._updateButtonsVisibility();!0==goog.isDefAndNotNull(this._controller)&&this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE);if(null==a&&null!=this.settingsButton().htmlNode()){var b=this;this._addEventHandlerKey(this._UPLOAD_MOUSE_ENTER_EVENT_KEY,goog.events.listen(this._uploadBtn.htmlNode(),goog.events.EventType.MOUSEENTER,
function(){b._onUploadMouseEnter()}));this._addEventHandlerKey(this._UPLOAD_MOUSE_LEAVE_EVENT_KEY,goog.events.listen(this._uploadBtn.htmlNode(),goog.events.EventType.MOUSELEAVE,function(){b._onUploadMouseLeave()}))}}};neutron.dashboard.panes.ProjectDetailData.prototype._showBranchesButtons=function(a){!1!==neutron.dashboard.invoker.supportsBranching()&&this._updateButtonsVisibility(a)};
neutron.dashboard.panes.ProjectDetailData.prototype._updateButtonsVisibility=function(a){var b=!0,c=null;goog.isDefAndNotNull(this._lastProjectObj)&&goog.isDefAndNotNull(this._lastProjectObj.id)&&(c=this._lastProjectObj.id);!1===goog.isDefAndNotNull(a)?(a=this._mergeWasEnabled,goog.isDefAndNotNull(c)&&goog.isDefAndNotNull(this._lastProjectObj)&&(b=!0===this._lastProjectObj.supportsBranching&&"RECENT"!==c&&!goog.string.startsWith(c,"urn:"))):this._mergeWasEnabled=a;c=neutron.dashboard.invoker.online();
!0===b?((b=neutron.dashboard.utils.EntitlementHelper.isEntitled("application/vnd.autodesk.fusion360"))&&(b=c),this._branchComboButton.disableCommandId(neutron.dashboard.constants.BranchManageCommands.MANAGE,!c),this._branchComboButton.disableCommandId(neutron.dashboard.constants.BranchManageCommands.MERGE_PUSH,!(b&&a)),this._branchComboButton.disableCommandId(neutron.dashboard.constants.BranchManageCommands.MERGE_PULL,!(b&&a)),this._branchComboButton.disableCommandId(neutron.dashboard.constants.BranchManageCommands.CREATE_MILESTONE,
!0),this._branchComboButton.disableCommandId(neutron.dashboard.constants.BranchManageCommands.CREATE_NEW_BRANCH,!0),this._branchComboButton.disableComboButton(!c),this._branchComboButton.show()):this._hideBranchesButtons();this.recheckUploadAvailability();goog.isDefAndNotNull(this._newFolderBtn)&&(!0===c?this._newFolderBtn.enable():this._newFolderBtn.disable())};neutron.dashboard.panes.ProjectDetailData.prototype._hideBranchesButtons=function(){this._branchComboButton.hide()};
neutron.dashboard.panes.ProjectDetailData.prototype._onUploadMouseEnter=function(){neutron.dashboard.utils.EntitlementHelper.isEntitled("application/vnd.autodesk.fusion360")&&goog.dom.classes.add(this._uploadBtn.htmlNode(),"blue")};neutron.dashboard.panes.ProjectDetailData.prototype._onUploadMouseLeave=function(){goog.dom.classes.remove(this._uploadBtn.htmlNode(),"blue")};
neutron.dashboard.panes.ProjectDetailData.prototype._connectEvents=function(){var a=this;neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.NEW_BRANCH_CREATED,this,this._onNewBranchCreated);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.BRANCH_MERGED_SUCCESSFULLY,this,this._onBranchMerged);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.BRANCHING_DIALOG_FINISHED,this,a._refreshUIAfterBranchManaging);
neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.NEW_MILESTONE_CREATED,this,this._onNewMilestoneCreated);neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.PROJECT_CHANGE,this,this.onProjectChangeHandler);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.RECOVER_BRANCHES_TO_FOLDER,this,this._onBranchRecoverProcessStarted);!0===goog.isDefAndNotNull(this._branchComboButton)&&this._addEventHandlerKey("BRANCH_COMBO_BUTTON_CLICK",
goog.events.listen(this._branchComboButton,neutron.dashboard.events.EventType.COMMAND_SELECTED,function(b){switch(b.commandId){case neutron.dashboard.constants.BranchManageCommands.CREATE_NEW_BRANCH:a._createNewBranch();break;case neutron.dashboard.constants.BranchManageCommands.CREATE_MILESTONE:a._createMilestone();break;case neutron.dashboard.constants.BranchManageCommands.MERGE_PULL:a._mergeBranch(!0);break;case neutron.dashboard.constants.BranchManageCommands.MERGE_PUSH:a._mergeBranch(!1);break;
case neutron.dashboard.constants.BranchManageCommands.MANAGE:a._manageBranch()}return!1}));!0==goog.isDefAndNotNull(this._uploadBtn)&&this._addEventHandlerKey(this._UPLOAD_CLICK_EVENT_KEY,goog.events.listen(this._uploadBtn,goog.events.EventType.CLICK,function(b){a._designsPane.isProjectEmpty()&&a.showOnlyEmptyProjectSaveMessage(!0);goog.dom.classes.remove(a._uploadBtn.htmlNode(),"blue");var c={reImport:!1};b=neutron.dashboard.invoker.getLastUsedProject();if("RECENT"==b||goog.isObject(b)&&goog.isDefAndNotNull(b.id)&&
"RECENT"===b.id)b=neutron.dashboard.Application.instance.getProjectForRecentUpload();goog.isObject(b)&&(c.project=b,c.parentFd=b.rootFolder.id);setTimeout(function(){neutron.dashboard.utils.Report({Action:"DashboardUploadCmd"});neutron.dashboard.Application.instance.executeNeutronCmd("UploadCommand",JSON.stringify(c))},100)}));!0==goog.isDefAndNotNull(this._branchRecoverBtn)&&this._addEventHandlerKey(this._BRANCH_RECOVER_CLICK_EVENT_KEY,goog.events.listen(this._branchRecoverBtn,goog.events.EventType.CLICK,
function(b){a._onBranchRecoverBtn()}));!0==goog.isDefAndNotNull(this._newFolderBtn)&&this._addEventHandlerKey(this._NEWFOLDER_CLICK_EVENT_KEY,goog.events.listen(this._newFolderBtn,goog.events.EventType.CLICK,function(b){a.showEmptyProjectMessages(!1);a._createNewFolder()}));!0==goog.isDefAndNotNull(this._settingsBtn)&&this._addEventHandlerKey(this._SETTINGS_CLICK_EVENT_KEY,goog.events.listen(this._settingsBtn,goog.events.EventType.CLICK,function(b){a._onSettingsBtn(b)}));!0==goog.isDefAndNotNull(this._notificationToolbar)&&
this._addEventHandlerKey(this._REFRESH,goog.events.listen(this._notificationToolbar,neutron.dashboard.events.EventType.REFRESH,function(b){window.neutronJavaScriptObject.executeQuery("executeTextCmd","Dashboard.UpdateUserHubs");a._designsPane.refreshCurrentFolder();neutron.dashboard.utils.Report({Action:"DashboardRefresh"})}));!0==goog.isDefAndNotNull(this._breadcrumbsBar)&&(this._addEventHandlerKey(this._BREADCRUMBBAR_CHANGE,goog.events.listen(this._breadcrumbsBar,neutron.dashboard.events.EventType.BREADCRUMBBAR_CHANGE,
function(b){a._updateElemsPositions()})),this._addEventHandlerKey(this._BRANCH_CHANGED_EVENT_KEY,goog.events.listen(this._breadcrumbsBar,neutron.dashboard.events.EventType.CHANGE,function(b){a._onBranchChanged(b.newValue)})));goog.events.listen(document,goog.events.EventType.DRAGSTART,function(a){if(goog.isDefAndNotNull(a)){var c=a.target;goog.isDefAndNotNull(c)&&!1==goog.isDefAndNotNull(c.draggable)&&(c=c.parentElement);goog.isDefAndNotNull(c)&&!1===c.draggable&&(a.stopPropagation(),a.preventDefault())}});
this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));!0==goog.isDefAndNotNull(this._designsPane)&&this._addEventHandlerKey("DESIGN_CREATE_CONTEXT_MENU",goog.events.listen(this._designsPane,neutron.dashboard.events.EventType.CREATE_CONTEXT_MENU,function(){a._hideAndRemoveMenu()}));this._addEventHandlerKey("DOCUMENT_BODY_CTX",goog.events.listen(document.body,
goog.events.EventType.CONTEXTMENU,function(){a._hideAndRemoveMenu()}))};neutron.dashboard.panes.ProjectDetailData.prototype.hideNotificationMessage=function(){this._notificationToolbar.clear()};neutron.dashboard.panes.ProjectDetailData.prototype.showNotificationMessage=function(a,b,c,d){!0==goog.isDefAndNotNull(this._zeroDocToolbar)&&this._zeroDocToolbar.changeVisibilityUploadButtonFlyoutMsg(!1);this._notificationToolbar.show(a,b,c,d)};
neutron.dashboard.panes.ProjectDetailData.prototype.showNotificationMessageWithActions=function(a,b,c){!0==goog.isDefAndNotNull(this._zeroDocToolbar)&&this._zeroDocToolbar.changeVisibilityUploadButtonFlyoutMsg(!1);this._notificationToolbar.showMultipleActionMessage(a,b,c)};
neutron.dashboard.panes.ProjectDetailData.prototype.showEmptyProjectMessages=function(a,b){console.log("ProjectDetailData.prototype.showEmptyProjectMessages: "+a);this._zeroDocToolbar.changeVisibilityUploadButtonFlyoutMsg(a,b);this._zeroDocToolbar.changeVisibilitySavedDesigns(a)};
neutron.dashboard.panes.ProjectDetailData.prototype.showOnlyEmptyProjectSaveMessage=function(a){this._zeroDocToolbar.changeVisibilityUploadButtonFlyoutMsg(!1);console.log("ProjectDetailData.prototype.showOnlyEmptyProjectSaveMessage: "+a);this._zeroDocToolbar.changeVisibilitySavedDesigns(a)};
neutron.dashboard.panes.ProjectDetailData.prototype._remove=function(){!0==goog.isDefAndNotNull(this._branchComboButton)&&(this._branchComboButton.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._branchComboButton=null);!0==goog.isDefAndNotNull(this._branchRecoverBtn)&&(this._branchRecoverBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._branchRecoverBtn=null);!0==goog.isDefAndNotNull(this._uploadBtn)&&(this._uploadBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),
this._uploadBtn=null);!0==goog.isDefAndNotNull(this._newFolderBtn)&&(this._newFolderBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._newFolderBtn=null);!0==goog.isDefAndNotNull(this._settingsBtn)&&(this._settingsBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._settingsBtn=null);!0==goog.isDefAndNotNull(this._notificationToolbar)&&(this._notificationToolbar.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._notificationToolbar=null);!0==goog.isDefAndNotNull(this._zeroDocToolbar)&&
(this._zeroDocToolbar.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._zeroDocToolbar=null);!0==goog.isDefAndNotNull(this._breadcrumbsBar)&&(this._breadcrumbsBar.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._breadcrumbsBar=null);!0==goog.isDefAndNotNull(this._lastRefreshTime)&&(this._lastRefreshTime.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._lastRefreshTime=null);!0==goog.isDefAndNotNull(this._designsPane)&&(this._designsPane.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),
this._designsPane=null);!0==goog.isDefAndNotNull(this._uploadProgressBar)&&(this._uploadProgressBar.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._uploadProgressBar=null)};
neutron.dashboard.panes.ProjectDetailData.prototype._onNeutronEvent=function(a){var b=this;"updateProgress"==a.cmdId?(a=goog.json.parse(a.cmdArgs),!0===goog.isDefAndNotNull(a)&&b._uploadProgressBar.setProgress(a.key,a.progress,a.errorMessage,function(){b._update()})):"entitlementChanged"==a.cmdId&&(this._recheckCounter=10,this.recheckUploadAvailability())};
neutron.dashboard.panes.ProjectDetailData.prototype._onBranchChanged=function(a){var b=neutron.dashboard.invoker.getLastUsedProject();if(!(!1===goog.isDefAndNotNull(b)||!1==goog.isDefAndNotNull(b.id))){var c=this;neutron.dashboard.invoker.setBranchForProject(b.id,a,function(a,b){c._designsPane.handleOnBranchChange();c._designsPane.refreshCurrentFolder()})}};
neutron.dashboard.panes.ProjectDetailData.prototype.onProjectChangeHandler=function(a){this._lastProjectObj=a.newProjectObj;this._mergeWasEnabled=!1;!1===a.newProjectObj.supportsBranching||"RECENT"==a.newProjectId||goog.string.startsWith(a.newProjectId,"urn:")?this._hideBranchesButtons():this._updateBranchList(a.newProjectId,null,!0);var b=neutron.dashboard.invoker.online();this._updateBranchRecoverBtnVisibility(a.newProjectId,a.newProjectObj.supportsBranching,b);!0===goog.isDefAndNotNull(this._newFolderBtn)&&
(!0===a.newProjectObj.readOnly||!0===a.newProjectObj.isLibrary?this._newFolderBtn.hide():this._newFolderBtn.show(),b?this._newFolderBtn.enable():this._newFolderBtn.disable());!0===goog.isDefAndNotNull(this._uploadBtn)&&(!0===a.newProjectObj.readOnly?this._uploadBtn.hide():this._uploadBtn.show())};
neutron.dashboard.panes.ProjectDetailData.prototype._onBranchRecoverProcessStarted=function(a){!1==goog.isDefAndNotNull(a.status)||a.status===neutron.dashboard.constants.Status.ERROR?console.warn("BranchRecoverProcess event has ERROR status"):goog.isDefAndNotNull(a.data)&&"op_started"===a.data.status&&(this._updateBranchRecoverBtn(!0),this._checkRecoveryStatus(a.data.groupId,!1))};
neutron.dashboard.panes.ProjectDetailData.prototype._branchesRecoverContactUs=function(a){a={To:"support.fusion360@autodesk.com",Subject:_LCLZ("Convert branches to folders")};window.neutronJavaScriptObject.executeQuery("sendEmail",JSON.stringify(a))};
neutron.dashboard.panes.ProjectDetailData.prototype._updateBranchList=function(a,b,c){var d=this;neutron.dashboard.invoker.getBranchList(a,function(e,f){a===d._lastProjectObj.id&&(d._updateBranchesButtons(e,f),goog.isDefAndNotNull(c)&&d._initializeActionButtonCommand(e),goog.isDefAndNotNull(b)&&b())})};
neutron.dashboard.panes.ProjectDetailData.prototype._updateFromSavedState=function(){var a=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.VIEWTYPE,neutron.dashboard.constants.ViewType.TILE_VIEW);a==neutron.dashboard.constants.ViewType.TILE_VIEW?this._changeView(neutron.dashboard.constants.ViewType.TILE_VIEW):this._changeView(neutron.dashboard.constants.ViewType.LIST_VIEW);a=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.SORTTYPE,
neutron.dashboard.constants.SortType.NAME_SORT);a==neutron.dashboard.constants.SortType.NAME_SORT?this._changeSort(neutron.dashboard.constants.SortType.NAME_SORT):this._changeSort(neutron.dashboard.constants.SortType.RECENT_SORT)};neutron.dashboard.panes.ProjectDetailData.prototype.currentFolderId=function(){var a=this.designsPane(),a=goog.isDefAndNotNull(a)?a.getCurrFolder():null;if(goog.isObject(a)){if(goog.isDefAndNotNull(a.folderId))return a.folderId;if(goog.isDefAndNotNull(a.fd))return a.fd}return a};
neutron.dashboard.panes.ProjectDetailData.prototype._updateElemsPositions=function(){this._updateOnlyPaneSize=!0;this._update();this._updateOnlyPaneSize=!1};
neutron.dashboard.panes.ProjectDetailData.prototype._onSettingsBtn=function(a){var b=this;if(!0!=goog.isDefAndNotNull(b._settingsCtxMenu)){a=[];var c="RECENT"===neutron.dashboard.invoker.getLastUsedProject().id,d=neutron.dashboard.invoker.online(),e;c||(e=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.SORTTYPE,neutron.dashboard.constants.SortType.NAME_SORT),e=e==neutron.dashboard.constants.SortType.NAME_SORT?!0:!1,goog.array.insert(a,{id:"sort_recent",
title:_LCLZ("Sort by Last Updated"),selected:!e}),goog.array.insert(a,{id:"sort_name",title:_LCLZ("Sort by Name"),selected:e}),goog.array.insert(a,{id:"separator"}));e=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.VIEWTYPE,neutron.dashboard.constants.ViewType.TILE_VIEW);e=e==neutron.dashboard.constants.ViewType.TILE_VIEW?!0:!1;goog.array.insert(a,{id:"view_tile",title:_LCLZ("View as Grid"),selected:e});goog.array.insert(a,{id:"view_list",title:_LCLZ("View as List"),
selected:!e});d||(e=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.GROUPBY,!1),goog.array.insert(a,{id:"separator"}),goog.array.insert(a,{id:"group_by_avail",title:_LCLZ("Group by Availability"),checked:e}));e=neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.CACHE_VIEW,!1);goog.array.insert(a,{id:"separator"});goog.array.insert(a,{id:"cache_view",title:_LCLZ("View Offline Cache"),checked:e||!d,disable:!d});c=!d||
c;goog.array.insert(a,{id:"cache_project",title:_LCLZ("Cache This Project"),disable:c,noImage:!0});c=b._settingsBtn.htmlNode();b._settingsCtxMenu=new neutron.dashboard.controls.ContextMenu(a,c,!0);b._settingsCtxMenu.setLeftAligned(!0);b._settingsCtxMenu.dispatchEvent(new neutron.dashboard.events.Update(b._htmlNode,b._htmlNode.offsetWidth-(c.offsetLeft+c.offsetWidth),b._controller._UPLOAD_BTN_HEIGHT,-1,-1));setTimeout(function(){b._settingsCtxMenu.show()},50);b._addEventHandlerKey(b._SETTINGS_CONTEXTMENU_ITEM_SELECTED_EVENT_KEY,
goog.events.listen(b._settingsCtxMenu,neutron.dashboard.events.EventType.ITEM_SELECTED,function(a){b._hideAndRemoveMenu();switch(a.itemId){case "view_tile":b._changeView(neutron.dashboard.constants.ViewType.TILE_VIEW);break;case "view_list":b._changeView(neutron.dashboard.constants.ViewType.LIST_VIEW);break;case "sort_name":b._changeSort(neutron.dashboard.constants.SortType.NAME_SORT);break;case "sort_recent":b._changeSort(neutron.dashboard.constants.SortType.RECENT_SORT);break;case "group_by_avail":b._changeGroupBy();
break;case "cache_view":b._changeCacheView();break;case "cache_project":b._cacheProject()}}));b._addEventHandlerKey(b._SETTINGS_CONTEXTMENU_REMOVE_EVENT_KEY,goog.events.listen(b._settingsCtxMenu,neutron.dashboard.events.EventType.REMOVE,function(a){b._disconnectEventByEventName(b._SETTINGS_CONTEXTMENU_ITEM_SELECTED_EVENT_KEY);b._disconnectEventByEventName(b._SETTINGS_CONTEXTMENU_REMOVE_EVENT_KEY);b._settingsCtxMenu=null}))}};
neutron.dashboard.panes.ProjectDetailData.prototype._onBranchRecoverBtn=function(){var a=neutron.dashboard.invoker.getLastUsedProject();!1===goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.id)||neutron.dashboard.invoker.recoverBranchesToFolder(a.id)};
neutron.dashboard.panes.ProjectDetailData.prototype._updateBranchRecoverBtn=function(a){!0===a?(this._branchRecoverBtn.disable(),this._branchRecoverBtn.changeTextData("",_LCLZ("Branches are being converted to folders")),goog.dom.classes.add(this._branchRecoverBtn.htmlNode(),"progress")):(this._branchRecoverBtn.enable(),this._branchRecoverBtn.changeTextData("",_LCLZ("Convert branches to folders")),goog.dom.classes.remove(this._branchRecoverBtn.htmlNode(),"progress"))};
neutron.dashboard.panes.ProjectDetailData.prototype._clearRecoveryTimeout=function(){null!=this._recoveryTimeoutId&&(window.clearTimeout(this._recoveryTimeoutId),this._recoveryTimeoutId=null)};
neutron.dashboard.panes.ProjectDetailData.prototype._updateBranchRecoverBtnVisibility=function(a,b,c){console.log("**** _updateBranchRecoverBtnVisibility ***");if(!(b||!1==goog.isDefAndNotNull(a)))if(this._clearRecoveryTimeout(),this._branchRecoverBtn.hide(),c&&!("RECENT"==a||goog.string.startsWith(a,"urn:"))){var d=this;neutron.dashboard.invoker.getBranchList(a,function(b,c){a!==d._lastProjectObj.id||c!=neutron.dashboard.constants.Status.DONE||goog.isDefAndNotNull(b)&&1<b.length&&d._checkRecoveryStatus(a,
!0)})}};neutron.dashboard.panes.ProjectDetailData.prototype.refreshBranchRecoverBtnVisibility=function(){var a=neutron.dashboard.invoker.online();goog.isDefAndNotNull(this._lastProjectObj)&&this._updateBranchRecoverBtnVisibility(this._lastProjectObj.id,this._lastProjectObj.supportsBranching,a)};
neutron.dashboard.panes.ProjectDetailData.prototype._checkRecoveryStatus=function(a,b){console.log("_checkRecoveryStatus START ******************************************************************************");var c=this,d=!b,e=function(){console.log("*** _checkRecoveryStatus in timeout ***  "+a);neutron.dashboard.invoker.getRecoveryStatus(a,function(b,g,h,k){var l=neutron.dashboard.invoker.getLastUsedProject();!(!1!==goog.isDefAndNotNull(l)&&l.id!==a)&&b==neutron.dashboard.constants.Status.DONE&&(console.log("*** _checkRecoveryStatus response ***  "+
g),g==neutron.dashboard.constants.RecoveryStatus.NOT_STARTED?(c._updateBranchRecoverBtn(!1),c._branchRecoverBtn.show()):g==neutron.dashboard.constants.RecoveryStatus.IN_PROGRESS?(d=!0,c._updateBranchRecoverBtn(!0),c._branchRecoverBtn.show(),c._clearRecoveryTimeout(),c._recoveryTimeoutId=window.setTimeout(e,c._RECOVERY_INTERVAL)):g==neutron.dashboard.constants.RecoveryStatus.FINISHED&&(c._designsPane.refreshCurrentFolder(),neutron.dashboard.invoker.getBranchList(a),0<h.length&&0==k.length?(c._branchRecoverBtn.hide(),
d&&c.showNotificationMessage(_LCLZ("All_branches_convert_success"),"",null,!1)):(c._updateBranchRecoverBtn(!1),c._branchRecoverBtn.show(),d&&(b="",0==h.length?b=_LCLZ("All_branches_convert_failed"):0<k.length&&(1==h.length?b=_LCLZ("One_branch_convert_success"):1<h.length&&(b=goog.string.format(_LCLZ("More_branches_convert_success"),h.length)),1==k.length?b+=_LCLZ("One_branch_convert_failed"):1<k.length&&(b+=goog.string.format(_LCLZ("More_branches_convert_failed"),k.length))),goog.string.isEmpty(b)||
(b+=_LCLZ("Please_try_again_or_contact"),c.showNotificationMessageWithActions(b,{ACTION_TRY_AGAIN:function(){c._onBranchRecoverBtn()},ACTION_CONTACT_US:function(){c._branchesRecoverContactUs()}},!1))))))})};console.log("*** _checkRecoveryStatus *** "+a);!0===b?e():(c._clearRecoveryTimeout(),c._recoveryTimeoutId=window.setTimeout(e,c._RECOVERY_INTERVAL))};neutron.dashboard.panes.ProjectDetailData.prototype._createNewFolder=function(){!0==goog.isDefAndNotNull(this._designsPane)&&this._designsPane.dispatchEvent(new neutron.dashboard.events.StartAction("createNewFolder"))};
neutron.dashboard.panes.ProjectDetailData.prototype._createNewBranch=function(){var a=neutron.dashboard.invoker.getLastUsedProject();!1===goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.id)||neutron.dashboard.Application.instance.executeNeutronCmd("BranchingDialog",JSON.stringify({dlgType:"createBranch",data:{projectID:a.id}}))};
neutron.dashboard.panes.ProjectDetailData.prototype._createMilestone=function(){var a=neutron.dashboard.invoker.getLastUsedProject();if(!(!1===goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.id))&&!1!=goog.isDefAndNotNull(this._breadcrumbsBar)){var b=this._breadcrumbsBar.getCurrentBranch();!1!=goog.isDefAndNotNull(b)&&neutron.dashboard.Application.instance.executeNeutronCmd("BranchingDialog",JSON.stringify({dlgType:"createMilestone",data:{projectID:a.id,branchID:b.id}}))}};
neutron.dashboard.panes.ProjectDetailData.prototype._mergeBranch=function(a){var b=neutron.dashboard.invoker.getLastUsedProject();!1===goog.isDefAndNotNull(b)||!1==goog.isDefAndNotNull(b.id)||neutron.dashboard.Application.instance.executeNeutronCmd("BranchingDialog",JSON.stringify({dlgType:"mergeDialogUrl",data:{projectID:b.id,pullMode:a}}))};
neutron.dashboard.panes.ProjectDetailData.prototype._manageBranch=function(a){var b=neutron.dashboard.invoker.getLastUsedProject();if(!(!1===goog.isDefAndNotNull(b)||!1==goog.isDefAndNotNull(b.id))){var c={id:null,idSource:null,type:null};goog.isDefAndNotNull(a)&&(c=a);neutron.dashboard.Application.instance.executeNeutronCmd("BranchingDialog",JSON.stringify({dlgType:"manageDialogUrl",data:{projectID:b.id,folderID:b.rootFolder.id,selectObjectTO:c.id,selectObjectFROM:c.idSource,selectObjectType:c.type}}))}};
neutron.dashboard.panes.ProjectDetailData.prototype._changeView=function(a){var b=this;setTimeout(function(){neutron.dashboard.Application.instance.options().set(neutron.dashboard.constants.OptionType.VIEWTYPE,a);b.dispatchEvent(new neutron.dashboard.events.ViewChange(a));neutron.dashboard.utils.Report({Action:"DashboardViewChange",Label:a})},50)};
neutron.dashboard.panes.ProjectDetailData.prototype._changeSort=function(a){var b=this;setTimeout(function(){neutron.dashboard.Application.instance.options().set(neutron.dashboard.constants.OptionType.SORTTYPE,a);b.dispatchEvent(new neutron.dashboard.events.SortChange(a));neutron.dashboard.utils.Report({Action:"DashboardSort",Label:a})},50)};
neutron.dashboard.panes.ProjectDetailData.prototype._changeGroupBy=function(){var a=this;setTimeout(function(){var b=!neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.GROUPBY);neutron.dashboard.Application.instance.options().set(neutron.dashboard.constants.OptionType.GROUPBY,b);a.dispatchEvent(new neutron.dashboard.events.GroupByChange(b));neutron.dashboard.utils.Report({Action:"DashboardGroupBy",Label:b})},50)};
neutron.dashboard.panes.ProjectDetailData.prototype._changeCacheView=function(){var a=this;setTimeout(function(){var b=!neutron.dashboard.Application.instance.options().get(neutron.dashboard.constants.OptionType.CACHE_VIEW);b&&a._designsPane.getCacheContents(!0);neutron.dashboard.Application.instance.options().set(neutron.dashboard.constants.OptionType.CACHE_VIEW,b);a._update()},50)};
neutron.dashboard.panes.ProjectDetailData.prototype._cacheProject=function(){setTimeout(function(){var a=neutron.dashboard.invoker.getLastUsedProject().rootFolder;a?neutron.dashboard.invoker.cacheItems([{id:a.id,type:"project"}]):console.log("Failed to cache project! Invalid project URN")},50)};neutron.dashboard.panes.ProjectDetailData.prototype._hideAndRemoveMenu=function(){!0==goog.isDefAndNotNull(this._settingsCtxMenu)&&this._settingsCtxMenu.hideAndRemove()};
neutron.dashboard.panes.ProjectDetailData.prototype._updateBranchesButtons=function(a,b){!1==goog.isDefAndNotNull(b)||b===neutron.dashboard.constants.Status.ERROR?console.warn("GetBranchList event has ERROR status"):!1==goog.isDefAndNotNull(a)||0==a.length?console.warn("GetBranchList event does not contain data"):this._showBranchesButtons(1<a.length)};
neutron.dashboard.panes.ProjectDetailData.prototype._refreshUIAfterBranchManaging=function(a){if(goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(a.data)&&(goog.isDefAndNotNull(this._designsPane)&&(a.data.dataPanelRefreshNeeded?this._designsPane.refreshCurrentFolder():this._designsPane.refreshBranchNames()),!0==goog.isDefAndNotNull(this._breadcrumbsBar)&&!0===a.data.dataPanelRefreshAfterBranchRename&&this._breadcrumbsBar.refreshBar(!0),goog.isDefAndNotNull(a.data.targetBranchId))){var b=this,c=neutron.dashboard.invoker.getLastUsedProject();
if(!1===goog.isDefAndNotNull(c)||!1==goog.isDefAndNotNull(c.id))return;this._updateBranchList(c.id,function(){b._onBranchChanged(a.data.targetBranchId)})}this._onNewBranchCreated({status:"done",showPopUp:!1},!1)};
neutron.dashboard.panes.ProjectDetailData.prototype._onBranchMerged=function(a){var b=this;if(!1==goog.isDefAndNotNull(a.status)||a.status===neutron.dashboard.constants.Status.ERROR)console.warn("NewBranchList event has ERROR status");else if(this._designsPane.refreshCurrentFolder(),!0===a.data.merged){var c=goog.string.format(_LCLZ("Merged from %s to %s."),a.data.sourceBranchTitle,a.data.targetBranchTitle);this.showNotificationMessage(c,"("+_LCLZ("View Result")+")",function(){b._manageBranch({id:a.data.targetBranchId,
idSource:a.data.sourceBranchId,type:"MERGE"})},!0)}};
neutron.dashboard.panes.ProjectDetailData.prototype.onBranchCreatedPushNotification=function(a){var b=this;if(!(!1===goog.isDefAndNotNull(a.data)||!1===goog.isDefAndNotNull(a.data.projectDmid)||!1===goog.isDefAndNotNull(a.data.branchName)||!1===goog.isDefAndNotNull(a.data.targetBranchUrn))){this._showBranchesButtons(!0);var c=goog.string.format(_LCLZ("New branch %s created."),a.data.branchName);this.showNotificationMessage(c,"("+_LCLZ("View Result")+")",function(){b._manageBranch({id:a.data.targetBranchUrn,
idSource:null,type:"BRANCH"})},!1)}};
neutron.dashboard.panes.ProjectDetailData.prototype._onNewBranchCreated=function(a){if(!1==goog.isDefAndNotNull(a.status)||a.status===neutron.dashboard.constants.Status.ERROR)console.warn("NewBranchList event has ERROR status");else{var b=neutron.dashboard.invoker.getLastUsedProject();if(!1===goog.isDefAndNotNull(b)||!1==goog.isDefAndNotNull(b.id))console.warn("Can not get last used project object");else{var c=goog.isDefAndNotNull(a.showPopUp)?a.showPopUp:!0;"done"===a.status&&!0===c&&goog.isDefAndNotNull(a.data.newBranchID)||
(c=!1);var d=this,e=null;goog.isDefAndNotNull(a.data)&&goog.isDefAndNotNull(a.data.newBranchID)&&(e=a.data.newBranchID);setTimeout(function(){d._updateBranchList(b.id,function(){goog.isDefAndNotNull(e)&&c&&(c=!1,neutron.dashboard.utils.Utils.formatStr(_LCLZ("Branch <b>%CREATEDBRANCH%</b> created from <b>%FROMBRANCH%</b>."),{createdBranch:a.data.newBranchName,fromBranch:a.data.fromBranchName}),d._onBranchChanged(e))})},1)}}};
neutron.dashboard.panes.ProjectDetailData.prototype._onNewMilestoneCreated=function(a){var b=this;if(!1==goog.isDefAndNotNull(a.status)||a.status===neutron.dashboard.constants.Status.ERROR)console.warn("NewMilestone event has ERROR status");else if("done"===a.status){var c=goog.string.format(_LCLZ("Milestone created in %s."),a.data.inBranchName);this.showNotificationMessage(c,"("+_LCLZ("View Milestone")+")",function(){b._manageBranch({id:a.data.newMilestoneID,type:"MILESTONE"})},!0)}};
neutron.dashboard.panes.ProjectDetailData.prototype.refreshButton=function(){if(goog.object.containsKey(this._parent,"refreshButton"))return this._parent.refreshButton()};neutron.dashboard.panes.ProjectDetailData.prototype._initializeActionButtonCommand=function(a){!1!=goog.isDefAndNotNull(this._branchComboButton)&&(!1==goog.isDefAndNotNull(a)||0==a.length||this._branchComboButton.initActionButton(1<a.length?neutron.dashboard.constants.BranchManageCommands.MERGE_PULL:neutron.dashboard.constants.BranchManageCommands.MANAGE))};neutron.dashboard.panes.ProjectDetail=function(){neutron.dashboard.RenderableObject.call(this);this._projectDetailPeople=this._projectDetailData=this._lastBranchData=this._projectObj=this._projectNameHtmlNode=this._projectAvatarHtmlNode=this._refreshBtn=this._projectDetailTab=this._leaveButton=this._searchBtn=this._closeBtn=null;this._SEARCH_CLICK_EVENT_KEY="SEARCH_BTN_CLICK";this._LEAVE_CLICK_EVENT_KEY="LEAVE_BTN_CLICK";this._PROJECT_CLICK_EVENT_KEY="PROJECT_CLICK_EVENT_KEY";this._PROJECT_CHANGED_EVENT_KEY=
"PROJECT_CHANGED_EVENT_KEY";this._REFRESH_CLICK_EVENT_KEY="REFRESH_BTN_CLICK";this._PROJECT_NAME_CLICK_EVENT_KEY="PROJECT_NAME_CLICK";this._BRANCH_CHANGED_KEY="_BRANCH_CHANGED_KEY";this._init()};goog.inherits(neutron.dashboard.panes.ProjectDetail,neutron.dashboard.RenderableObject);neutron.dashboard.panes.ProjectDetail.prototype.closeButton=function(){return this._closeBtn};neutron.dashboard.panes.ProjectDetail.prototype.searchButton=function(){return this._searchBtn};
neutron.dashboard.panes.ProjectDetail.prototype.leaveButton=function(){return this._leaveButton};neutron.dashboard.panes.ProjectDetail.prototype.projectDetailData=function(){return this._projectDetailData};neutron.dashboard.panes.ProjectDetail.prototype.projectDetailPeople=function(){return this._projectDetailPeople};neutron.dashboard.panes.ProjectDetail.prototype.projectDetailTab=function(){return this._projectDetailTab};neutron.dashboard.panes.ProjectDetail.prototype.refreshButton=function(){return this._refreshBtn};
neutron.dashboard.panes.ProjectDetail.prototype._init=function(){this._controller=new neutron.dashboard.controllers.project_detail.Standard(this);this._leaveButton=new neutron.dashboard.controls.Dummy("topButton leave",null,{label:_LCLZ("Leave Data Details"),align:"left bottom"});this._searchBtn=new neutron.dashboard.controls.Dummy("topButton search",null,{label:_LCLZ("Search"),align:"center bottom"});this._closeBtn=new neutron.dashboard.controls.Dummy("topButton close",null,{label:_LCLZ("Close Data Panel 1"),
align:"right bottom"});this._refreshBtn=new neutron.dashboard.controls.Dummy("actionButton refresh",null,{label:_LCLZ("Refresh"),align:"right bottom"});this._projectNameHtmlNode=new neutron.dashboard.controls.Dummy("projectName",null,{label:_LCLZ("Project Details Punchout"),align:"left bottom"});var a=[];this._projectDetailData=new neutron.dashboard.panes.ProjectDetailData(this);this._projectDetailPeople=new neutron.dashboard.panes.ProjectDetailPeople(this);a.push({name:_LCLZ("Data"),paneNode:this._projectDetailData});
a.push({name:_LCLZ("People"),paneNode:this._projectDetailPeople});this._projectDetailTab=new neutron.dashboard.controls.Tabs(this,a)};neutron.dashboard.panes.ProjectDetail.prototype.projectAvatarHtmlNode=function(){return this._projectAvatarHtmlNode};neutron.dashboard.panes.ProjectDetail.prototype.projectNameHtmlNode=function(){return this._projectNameHtmlNode};neutron.dashboard.panes.ProjectDetail.prototype.currentProjectId=function(){return this._projectObj?this._projectObj.id:null};
neutron.dashboard.panes.ProjectDetail.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"projectDetailPane noSelection"});a.appendChild(this._htmlNode);this._projectAvatarHtmlNode=goog.dom.createDom("div",{"class":"projectAvatar noSelection"});this._htmlNode.appendChild(this._projectAvatarHtmlNode);this._connectEvents()};
neutron.dashboard.panes.ProjectDetail.prototype._update=function(){!0==goog.isDefAndNotNull(this._controller)&&this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE);this._updateButtonsVisibility()};
neutron.dashboard.panes.ProjectDetail.prototype._updateButtonsVisibility=function(){neutron.dashboard.invoker.online()?(this._searchBtn.enable(),this._refreshBtn.enable()):(this._searchBtn.disable(),this._refreshBtn.disable());if(!1!=goog.isDefAndNotNull(this._projectObj)){var a=this._projectObj.id,b="",c="",d=null,e=!0,f=neutron.dashboard.Application.instance.pictureCache();if(!0==f.isWIPBasedId(a))b=this._projectObj.name,d=a,c=b=b||"Samples / Libraries",e=!1;else if(b=this._projectObj.name,d=this._projectObj.thumbnail,
"RECENT"==a||!1===neutron.dashboard.invoker.online()?(e=!1,c=b):(e=!0,c=goog.string.format(_LCLZ("Open %s on Web"),b)),!1==goog.isDefAndNotNull(this._projectObj))return;!0==goog.isDefAndNotNull(this._projectNameHtmlNode)&&(this._projectNameHtmlNode.changeTextData(b,c),!0===e?(this._projectNameHtmlNode.enable(),this._branchChanged(this._lastBranchData)):this._projectNameHtmlNode.disable());if(!0==goog.isDefAndNotNull(this._projectAvatarHtmlNode))if(!0==goog.isDefAndNotNull(d))if(this._projectAvatarHtmlNode.style.display=
"block","@recent"==d)this._projectAvatarHtmlNode.style.backgroundImage="",goog.dom.classes.add(this._projectAvatarHtmlNode,"recent");else{goog.dom.classes.remove(this._projectAvatarHtmlNode,"recent");var g=this._projectAvatarHtmlNode;g.style.backgroundImage="none";-1!=d.search("data:image/")?g.style.backgroundImage='url("'+d+'")':"@"==d.substr(0,1)?goog.dom.classes.add(g,d.substr(1)):f.getData(d,function(a){g.style.backgroundImage='url("'+a+'")'})}else this._projectAvatarHtmlNode.style.display="none"}};
neutron.dashboard.panes.ProjectDetail.prototype._remove=function(){!0==goog.isDefAndNotNull(this._closeBtn)&&(this._closeBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._closeBtn=null);!0==goog.isDefAndNotNull(this._searchBtn)&&(this._searchBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchBtn=null);!0==goog.isDefAndNotNull(this._leaveButton)&&(this._leaveButton.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._leaveButton=null);!0==goog.isDefAndNotNull(this._projectDetailData)&&
(this._projectDetailData.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._projectDetailData=null);!0==goog.isDefAndNotNull(this._projectDetailPeople)&&(this._projectDetailPeople.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._projectDetailPeople=null);!0==goog.isDefAndNotNull(this._projectDetailTab)&&(this._projectDetailTab.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._projectDetailTab=null);!0==goog.isDefAndNotNull(this._refreshBtn)&&(this._refreshBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),
this._refreshBtn=null);!0==goog.isDefAndNotNull(this._projectNameHtmlNode)&&(this._projectNameHtmlNode.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._projectNameHtmlNode=null);this._projectNameHtmlNode=this._projectAvatarHtmlNode=null};
neutron.dashboard.panes.ProjectDetail.prototype._connectEvents=function(){var a=this;neutron.dashboard.notifier.register(neutron.dashboard.events.EventType.PROJECT_CHANGE,this,this._onProjectChanged);!0==goog.isDefAndNotNull(this._closeBtn)&&this._addEventHandlerKey(this._CLOSE_CLICK_EVENT_KEY,goog.events.listen(this._closeBtn,goog.events.EventType.CLICK,function(){neutron.dashboard.Application.instance.closeDatapanel()}));!0==goog.isDefAndNotNull(this._searchBtn)&&this._addEventHandlerKey(this._SEARCH_CLICK_EVENT_KEY,
goog.events.listen(this._searchBtn,goog.events.EventType.CLICK,function(){a.dispatchEvent(new neutron.dashboard.events.GoToPane(neutron.dashboard.constants.PaneName.SEARCH))}));!0==goog.isDefAndNotNull(this._leaveButton)&&this._addEventHandlerKey(this._LEAVE_CLICK_EVENT_KEY,goog.events.listen(this._leaveButton,goog.events.EventType.CLICK,function(){a.dispatchEvent(new neutron.dashboard.events.GoToPane(neutron.dashboard.constants.PaneName.PROJECTS))}));!0==goog.isDefAndNotNull(this._projectNameHtmlNode)&&
this._addEventHandlerKey(this._PROJECT_NAME_CLICK_EVENT_KEY,goog.events.listen(this._projectNameHtmlNode,goog.events.EventType.CLICK,function(){var a="https://myhub.autodesk360.com",c=neutron.dashboard.invoker.getLastUsedProject();!0==goog.isDefAndNotNull(c)&&(a=c.qontextServer+"/portal/groups/"+c.id+"/folders",a+="%3Fpunchout%3dtrue");console.log("punchOut: "+a);neutron.dashboard.Application.instance.punchOut(a)}));!0==goog.isDefAndNotNull(this._refreshBtn)&&this._addEventHandlerKey(this._REFRESH_CLICK_EVENT_KEY,
goog.events.listen(this._refreshBtn,goog.events.EventType.CLICK,function(b){a.refreshDesignsPaneCurrentFolder();a.refreshPeoplePane()}));this._addEventHandlerKey("FOLDER_ACCESS_DENIED",goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.FOLDER_ACCESS_DENIED,function(b){a.dispatchEvent(new neutron.dashboard.events.GoToPane(neutron.dashboard.constants.PaneName.PROJECTS))}));goog.isDefAndNotNull(this._projectDetailData)&&this._addEventHandlerKey(this._BRANCH_CHANGED_KEY,
goog.events.listen(this._projectDetailData,neutron.dashboard.events.EventType.BRANCH_CHANGE,function(b){a._branchChanged(b.branchObj)}))};neutron.dashboard.panes.ProjectDetail.prototype._branchChanged=function(a){goog.isDefAndNotNull(a)&&goog.isDefAndNotNull(this._projectNameHtmlNode)&&(this._lastBranchData=a)};
neutron.dashboard.panes.ProjectDetail.prototype.refreshDesignsPaneCurrentFolder=function(){if(!0==goog.isDefAndNotNull(this._projectDetailData)){var a=this._projectDetailData.designsPane();!0==goog.isDefAndNotNull(a)&&a.refreshCurrentFolder()}};neutron.dashboard.panes.ProjectDetail.prototype.refreshBranchRecoverBtnVisibility=function(){!0==goog.isDefAndNotNull(this._projectDetailData)&&this._projectDetailData.refreshBranchRecoverBtnVisibility()};
neutron.dashboard.panes.ProjectDetail.prototype.refreshPeoplePane=function(){if(!0==goog.isDefAndNotNull(this._projectDetailPeople)){var a=this._projectDetailPeople.peoplePane();!0==goog.isDefAndNotNull(a)&&a.updatePeopleList()}};neutron.dashboard.panes.ProjectDetail.prototype.currentFolderPath=function(){var a=[];if(!0==goog.isDefAndNotNull(this._projectDetailData)){var b=this._projectDetailData.designsPane();!0==goog.isDefAndNotNull(b)&&(a=b.currentFolderPath())}return a};
neutron.dashboard.panes.ProjectDetail.prototype._onProjectChanged=function(a){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.newProjectId))){var b=a.newProjectId,c=a.newProjectObj;!1!=goog.isDefAndNotNull(c)&&(this._projectObj=c,this._projectDetailTab.activateTab(0),c=goog.isDefAndNotNull(c.showPeople)&&!1==c.showPeople?!1:!0,this._projectDetailTab.showTabs(c?!0:!1),c=neutron.dashboard.Application.instance.pictureCache(),this._projectDetailTab.activateTab(0),a="RECENT"==b||!0==c.isWIPBasedId(a.newValue),
this._updateButtonsVisibility(),this._projectDetailTab.showTabs(!a))}};neutron.dashboard.controls.Search=function(){neutron.dashboard.RenderableObject.call(this);this._PLACEHOLDER="Search"};goog.inherits(neutron.dashboard.controls.Search,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.Search.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"searchbox"});this._htmlInput=goog.dom.createDom("input",{placeholder:this._PLACEHOLDER,type:"search",tabIndex:-1});this._searchButton=goog.dom.createDom("div",{"class":"searchbtn tooltipParent"});var b=goog.dom.createDom("div",{"class":"tooltip center bottom"},_LCLZ("Search"));this._searchButton.appendChild(b);this._htmlNode.appendChild(this._htmlInput);this._htmlNode.appendChild(this._searchButton);
a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.controls.Search.prototype.setFocus=function(){this._htmlInput.focus()};neutron.dashboard.controls.Search.prototype.setSelect=function(){this._htmlInput.select()};neutron.dashboard.controls.Search.prototype.getValue=function(){return this._htmlInput.value};neutron.dashboard.controls.Search.prototype.updatePlaceholder=function(a){this._htmlInput.placeholder=goog.string.format(_LCLZ("Search %s"),a)};
neutron.dashboard.controls.Search.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px",this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px")};neutron.dashboard.controls.Search.prototype._remove=function(){};
neutron.dashboard.controls.Search.prototype._fireSearch=function(){var a=this._htmlInput.value;2<=a.length?(this.dispatchEvent(new neutron.dashboard.events.Change(a,null)),this._htmlInput.select(),neutron.dashboard.utils.Report({Action:"DashboardSearch"})):this.dispatchEvent(neutron.dashboard.events.EventType.INPUT_ERROR)};
neutron.dashboard.controls.Search.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey("searchLabelClick",goog.events.listen(this._searchButton,goog.events.EventType.CLICK,function(b){a._fireSearch()}));this._addEventHandlerKey("inputEnterPressed",goog.events.listen(this._htmlInput,goog.events.EventType.KEYDOWN,function(b){13==b.keyCode&&a._fireSearch()}))};neutron.dashboard.panes.DesignsSearch=function(a){neutron.dashboard.panes.Designs.call(this,a);this._searchProject=null;this._searchString="";this._searchResultTitle=null;this._numberOfSearchResultsNeeded=0;this._NEXT_SEARCH_RESULTS_CLICK_EVENT_KEY="NEXT_SEARCH_RESULTS_"+goog.events.EventType.CLICK};goog.inherits(neutron.dashboard.panes.DesignsSearch,neutron.dashboard.panes.Designs);
neutron.dashboard.panes.DesignsSearch.prototype._init=function(){this._viewType=neutron.dashboard.constants.ViewType.LIST_VIEW;this._searchMode=!0;this._controller=new neutron.dashboard.controllers.designs_pane.List(this);this._nextSearchResultsButton=new neutron.dashboard.controls.Dummy("nextSetBtn",_LCLZ("Show next results"))};
neutron.dashboard.panes.DesignsSearch.prototype._connectEvents=function(){neutron.dashboard.panes.DesignsSearch.superClass_._connectEvents.call(this);var a=this;!0===goog.isDefAndNotNull(this._nextSearchResultsButton)&&this._addEventHandlerKey(this._NEXT_SEARCH_RESULTS_CLICK_EVENT_KEY,goog.events.listen(this._nextSearchResultsButton,goog.events.EventType.CLICK,function(b){a._numberOfSearchResultsNeeded+=a._NUMBER_OF_SEARCH_RESULTS_STEP;a._handleSearch();a._update()}));this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,
goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.SEARCH,this,this._onSearch);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.FILE_UPDATE,this,a._onFileUpdate);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.BRANCHING_DIALOG_FINISHED,this,a.refreshBranchNames)};
neutron.dashboard.panes.DesignsSearch.prototype.handleOnProjectChange=function(a){};neutron.dashboard.panes.DesignsSearch.prototype.handleOnBranchChange=function(){};
neutron.dashboard.panes.DesignsSearch.prototype.registerForSearchStringChange=function(a){var b=this;this._addEventHandlerKey("searchStringChanged",goog.events.listen(a,neutron.dashboard.events.EventType.CHANGE,function(a){b._searchString=a.newValue;b._numberOfSearchResultsNeeded=0;b._lastReturnedData={files:[],all:[]};b._handleSearch();b._update()}))};neutron.dashboard.panes.DesignsSearch.prototype._invokeGetData=function(a,b,c){return null};
neutron.dashboard.panes.DesignsSearch.prototype._handleSearch=function(){!0==goog.isDefAndNotNull(this._searchResultTitle)&&(this._searchResultTitle.innerText(""),this._searchResultTitle.hide());this._moreSearchResultsPossible=!1;var a=this._howManySearchResultsIsNeeded(),b="",b=goog.isObject(this._searchProject)?this._searchProject.id:this._searchProject;this._removeUnnecessaryHtmlItems(this._lastReturnedData.all);goog.dom.classes.add(document.body,"waitCursor");neutron.dashboard.invoker.search(b,
this._searchString,a,this._NUMBER_OF_SEARCH_RESULTS_STEP)};
neutron.dashboard.panes.DesignsSearch.prototype._onSearch=function(a){!1===goog.isDefAndNotNull(a)?goog.dom.classes.remove(document.body,"waitCursor"):a.status===neutron.dashboard.constants.Status.ERROR?(console.log("panes.Designs._onGetSearchContent - ERROR"),goog.dom.classes.remove(document.body,"waitCursor")):a.status===neutron.dashboard.constants.Status.PROGRESS?console.log("panes.Designs._onGetSearchContent - PROGRESS"):(a.status===neutron.dashboard.constants.Status.DONE?(this._moreSearchResultsPossible=
a.data.moreData,console.log("panes.Designs._onGetSearchContent - DONE"),console.log(a.data),!1===goog.isDefAndNotNull(a.data)?a.data={files:[]}:!1===goog.isDefAndNotNull(a.data.files)&&(a.data=goog.object.add("files",[])),goog.array.forEach(a.data.files,function(a){var c=a.id;-1===goog.array.findIndex(this._lastReturnedData.files,function(a){return a.id===c},this)&&this._lastReturnedData.files.push(a)},this),this._lastReturnedData.all=this._lastReturnedData.files,this._moreSearchResultsPossible=a.data.files.length===
this._NUMBER_OF_SEARCH_RESULTS_STEP,this._updateSearchResultTitle(),!0===goog.isDefAndNotNull(this._designExpandPopup)&&!0===goog.isDefAndNotNull(this._designExpandPopupDataId)&&(a=this.getItemData(this._designExpandPopupDataId),!0===goog.isDefAndNotNull(this._designExpandPopupDataId)&&this._designExpandPopup.setData(a,!1)),this._searchResultTitle.show(),this._update()):console.log("panes.Designs._onGetSearchContent - unhandled status - "+a.status),goog.dom.classes.remove(document.body,"waitCursor"))};
neutron.dashboard.panes.DesignsSearch.prototype.setSearchProjectAndSearchString=function(a,b){!1===goog.isObject(a)&&"ALL"!=a&&(a=neutron.dashboard.invoker.getProjectById(a));this._searchProject=a;this._searchString=b;this.dispatchEvent(new neutron.dashboard.events.Change(a,null));this._numberOfSearchResultsNeeded=0;this._lastReturnedData={files:[],all:[]};this._update();!0===goog.isDefAndNotNull(b)&&""!==b&&(this._handleSearch(),this._update())};
neutron.dashboard.panes.DesignsSearch.prototype.setSearchProject=function(a){if(!1==goog.isDefAndNotNull(this._searchProject)||!0==goog.string.isEmpty(this._searchString))a="RECENT"===a?"ALL":a,!1===goog.isObject(a)&&"ALL"!=a&&(a=neutron.dashboard.invoker.getProjectById(a)),this._searchProject=a,this.dispatchEvent(new neutron.dashboard.events.Change(this._searchProject,null))};
neutron.dashboard.panes.DesignsSearch.prototype._howManySearchResultsIsNeeded=function(){!1==goog.isDefAndNotNull(this._numberOfSearchResultsNeeded)&&!0==goog.isDefAndNotNull(this._controller)&&(this._numberOfSearchResultsNeeded=this._controller.numberItemsPerPage());return this._numberOfSearchResultsNeeded};neutron.dashboard.panes.DesignsSearch.prototype.setSearchResultTitle=function(a){this._searchResultTitle=a};
neutron.dashboard.panes.DesignsSearch.prototype._updateSearchResultTitle=function(){if(!0===goog.isDefAndNotNull(this._searchResultTitle)&&!0===goog.isDefAndNotNull(this._searchProject)){var a="",a="ALL"==this._searchProject?_LCLZ("All Data"):this._searchProject.name,b=_LCLZ(" results found in ");!0==this._moreSearchResultsPossible&&(b=_LCLZ("+ results found in "));this._searchResultTitle.innerText(this._lastReturnedData.files.length+b+a)}else this._searchResultTitle.innerText("")};neutron.dashboard.controllers.search={};
neutron.dashboard.controllers.search.Search=function(a){neutron.dashboard.BaseClass.call(this);this._parentObject=a;this._PROJECT_SELECTOR_HEIGHT=23;this._CONTENT_PADDING_TOP=6;this._CLOSE_BTN_ICON_SIZE=10;this._CLOSE_BTN_RIGHT_PADDING=12;this._CONTROLS_SIZE=22;this._CONTENT_PADDING_LEFT=16;this._CONTENT_PADDING_RIGHT=38;this._DESIGNPANE_SPACE=this._CONTROLS_SPACING=12;this._DESIGNSPANE_RIGHT_PADDING=13;this._ERROR_MESSAGE_BAR_HEIGHT=20;this._CONTENT_PADDING_BOTTOM=6;this._TOOLBAR_HEIGHT=32;this._CONTROLS_HALF_SPACING=
6;this._CONTROLS_VERTICAL_DELIMITER_WIDTH=1;this._MIDDLE_CONTROLS_SIZE=18;this._ELEMENTS_SPACE=20;this._ARROW_TOP_SPACE=2;this._ARROW_HEIGHT=10;this._BREADCRUMBS_BAR_TOP_MARGIN=31;this._BREADCRUMBS_BAR_HEIGHT=18;this._BREADCRUMBS_RIGHT_PADDING=113;this._DESIGNSPANE_RIGHT_PADDING=13;this._ERROR_MESSAGE_BAR_HEIGHT=-1;this._SEARCH_TOP_PADDING=5;this._SEARCH_LEFT_PADDING=54;this._SEARCH_RIGHT_PADDING=12;this._SEARCH_HEIGHT=22};goog.inherits(neutron.dashboard.controllers.search.Search,neutron.dashboard.BaseClass);
neutron.dashboard.controllers.search.Search.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a)){var b=0,c=this._parentObject.htmlNode(),d=this._parentObject.searchBackButton();!0==goog.isDefAndNotNull(d)&&(b=this._CONTENT_PADDING_LEFT,d.dispatchEvent(new neutron.dashboard.events.Update(c,b,this._CONTENT_PADDING_TOP,this._CONTROLS_SIZE,this._CONTROLS_SIZE)));d=this._parentObject.searchContextSelect();!0==goog.isDefAndNotNull(d)&&
(b+=this._CONTROLS_HALF_SPACING+this._CONTROLS_SIZE,d.dispatchEvent(new neutron.dashboard.events.Update(c,b,this._CONTENT_PADDING_TOP,17,this._CONTROLS_SIZE)),b+=17);d=this._parentObject.searchCtrl();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(c,b,this._CONTENT_PADDING_TOP,a.width-b-this._CONTENT_PADDING_RIGHT,this._SEARCH_HEIGHT));b=this._parentObject.closeButton();!0==goog.isDefAndNotNull(b)&&b.dispatchEvent(new neutron.dashboard.events.Update(c,a.width-(this._CLOSE_BTN_ICON_SIZE/
2+this._CLOSE_BTN_RIGHT_PADDING+this._CONTROLS_SIZE/2),this._CONTENT_PADDING_TOP,this._CONTROLS_SIZE,this._CONTROLS_SIZE));b=0;d=this._parentObject.searchHint();!0==goog.isDefAndNotNull(d)&&(d.dispatchEvent(new neutron.dashboard.events.Update(c,this._CONTENT_PADDING_LEFT,this._CONTENT_PADDING_TOP+this._CONTROLS_SIZE,a.width-this._CONTENT_PADDING_LEFT-this._CONTENT_PADDING_RIGHT,-1)),d.arrowPosition(this._CONTROLS_SIZE+4),b=d.height());d=this._parentObject.searchErrorHint();!0==goog.isDefAndNotNull(d)&&
(d.dispatchEvent(new neutron.dashboard.events.Update(c,this._CONTENT_PADDING_LEFT,this._CONTENT_PADDING_TOP+this._CONTROLS_SIZE,a.width-this._CONTENT_PADDING_LEFT-this._CONTENT_PADDING_RIGHT,-1)),d.arrowPosition(this._CONTROLS_SIZE+4),b=Math.max(b,d.height()));d=this._parentObject.topSearchDelimiter();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(c,this._CONTENT_PADDING_LEFT,34+b,a.width-this._CONTENT_PADDING_LEFT-this._CONTENT_PADDING_RIGHT,1));d=this._parentObject.searchResultTitle();
!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(c,this._CONTENT_PADDING_LEFT,49+b,a.width-this._CONTENT_PADDING_LEFT-this._CONTENT_PADDING_RIGHT,19));d=this._parentObject.searchDesignsPane();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(c,this._CONTENT_PADDING_LEFT,90+b,a.width-this._CONTENT_PADDING_LEFT-this._DESIGNSPANE_RIGHT_PADDING,a.height-90-this._CONTENT_PADDING_TOP))}}};neutron.dashboard.controls.SearchContextSelect=function(){neutron.dashboard.RenderableObject.call(this);this._menuNode=this._coverBG=this._contextBtn=null;this._WINDOW_LOST_FOCUS="WINDOW_LOST_FOCUS_SEARCH";this._MENU_BTN_CLICK="MENU_BTN_CLICK_SEARCH"};goog.inherits(neutron.dashboard.controls.SearchContextSelect,neutron.dashboard.RenderableObject);
neutron.dashboard.controls.SearchContextSelect.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"dashboardSelect noSelection tooltipParent"});var b=goog.dom.createDom("div",{"class":"tooltip center bottom"},_LCLZ("Projects"));this._htmlNode.appendChild(b);this._contextBtn=goog.dom.createDom("div",{"class":"contextBtn"});this._htmlNode.appendChild(this._contextBtn);a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.SearchContextSelect.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(!0==goog.isDefAndNotNull(this._contextBtn)&&(this._contextBtn.style.width=this._area.width+"px",this._contextBtn.style.height=this._area.height+"px"),this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px",this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px")};
neutron.dashboard.controls.SearchContextSelect.prototype._remove=function(){};neutron.dashboard.controls.SearchContextSelect.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey(this._MENU_BTN_CLICK,goog.events.listen(this._contextBtn,goog.events.EventType.CLICK,function(b){a._onClick(b)}));this._addEventHandlerKey(this._WINDOW_LOST_FOCUS,goog.events.listen(window,goog.events.EventType.BLUR,function(b){a._removeMenu()}))};
neutron.dashboard.controls.SearchContextSelect.prototype._onClick=function(a){var b=this;b._coverBG=new neutron.dashboard.controls.CoverLayer;b._menuNode=goog.dom.createDom("div",{id:"dashboardSelectMenu"});b._menuNode.style.top=(this._htmlNode.offsetTop+this._htmlNode.clientHeight).toString()+"px";neutron.dashboard.invoker.getProjectsList(!0,!0,function(a){var d={};goog.isDefAndNotNull(a.projects)&&goog.isDefAndNotNull(a.projects.items)&&(d=a.projects.items);b._addOption({name:_LCLZ("All Data"),
id:"ALL"});b._addOption({name:null,id:null});goog.object.forEach(d,function(a){b._addOption(a)},b);document.body.appendChild(b._menuNode);setTimeout(function(){!0==goog.isDefAndNotNull(b._menuNode)&&(20<d.length?(b._menuNode.style.height="500px",b._menuNode.style.overflow="auto"):b._menuNode.style.height="auto")},1);goog.events.listen(b._coverBG,goog.events.EventType.CLICK,function(a){b._removeMenu()})})};
neutron.dashboard.controls.SearchContextSelect.prototype._addOption=function(a){var b=this;if(null==a.name){var c=goog.dom.createDom("div",{"class":"optionSeparator"});goog.dom.appendChild(this._menuNode,c)}else{var c=goog.dom.createDom("div",{"class":"option"}),d=goog.dom.createDom("div");d.innerHTML=a.name;goog.dom.appendChild(c,d);goog.isDefAndNotNull(a.rootFolder)&&goog.isDefAndNotNull(a.rootFolder.thumbnail)&&neutron.dashboard.Application.instance.pictureCache().getData(a.rootFolder.thumbnail,
function(a){c.style.backgroundImage='url("'+a+'")'});goog.dom.appendChild(this._menuNode,c);goog.events.listen(c,goog.events.EventType.CLICK,function(c){b.dispatchEvent(new neutron.dashboard.events.Change(a.id,null));b._removeMenu()})}};
neutron.dashboard.controls.SearchContextSelect.prototype._removeMenu=function(){!0==goog.isDefAndNotNull(this._coverBG)&&(this._coverBG.remove(),this._coverBG=null);if(!0==goog.isDefAndNotNull(this._menuNode)){this._menuNode.style.height="-1px";var a=this._menuNode;this._menuNode=null;setTimeout(function(){goog.dom.removeNode(a)},200)}};neutron.dashboard.panes.Search=function(){neutron.dashboard.RenderableObject.call(this);this._topSearchDelimiter=this._searchErrorHint=this._searchHint=this._searchCtrl=this._searchDesignsPane=this._searchResultTitle=this._searchContextSelect=this._closeBtn=this._searchBackBtn=null;this._lastVisiblePaneName="";this._BACK_BUTTON_CLICK_EVENT_KEY="BACK_BUTTON_CLICK";this._SEARCH_ERROR_HINT_HIDE_EVENT_KEY="SEARCH_ERROR_HINT_HIDE_EVENT_KEY";this._SEARCH_HINT_HIDE_EVENT_KEY="SEARCH_HINT_HIDE_EVENT_KEY";
this._init()};goog.inherits(neutron.dashboard.panes.Search,neutron.dashboard.RenderableObject);neutron.dashboard.panes.Search.prototype.searchBackButton=function(){return this._searchBackBtn};neutron.dashboard.panes.Search.prototype.closeButton=function(){return this._closeBtn};neutron.dashboard.panes.Search.prototype.searchContextSelect=function(){return this._searchContextSelect};neutron.dashboard.panes.Search.prototype.searchResultTitle=function(){return this._searchResultTitle};
neutron.dashboard.panes.Search.prototype.searchDesignsPane=function(){return this._searchDesignsPane};neutron.dashboard.panes.Search.prototype.searchCtrl=function(){return this._searchCtrl};neutron.dashboard.panes.Search.prototype.searchHint=function(){return this._searchHint};neutron.dashboard.panes.Search.prototype.searchErrorHint=function(){return this._searchErrorHint};neutron.dashboard.panes.Search.prototype.topSearchDelimiter=function(){return this._topSearchDelimiter};
neutron.dashboard.panes.Search.prototype._init=function(){this._controller=new neutron.dashboard.controllers.search.Search(this);this._searchBackBtn=new neutron.dashboard.controls.Dummy("topButton searchBack",null,{label:_LCLZ("Back"),align:"center bottom"});this._closeBtn=new neutron.dashboard.controls.Dummy("topButton close",null,{label:_LCLZ("Close Data Panel 2"),align:"right bottom"});this._topSearchDelimiter=new neutron.dashboard.controls.Dummy("delimiterLine");this._searchContextSelect=new neutron.dashboard.controls.SearchContextSelect;
this._searchResultTitle=new neutron.dashboard.controls.Dummy("searchContextTitle");this._searchResultTitle.hide();this._searchDesignsPane=new neutron.dashboard.panes.DesignsSearch(this);this._searchDesignsPane.setSearchResultTitle(this._searchResultTitle);this._searchCtrl=new neutron.dashboard.controls.Search;this._topSearchDelimiter=new neutron.dashboard.controls.Dummy("delimiterLine");this._searchDesignsPane.registerForSearchStringChange(this._searchCtrl)};
neutron.dashboard.panes.Search.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"searchPane"});a.appendChild(this._htmlNode);this._connectEvents()};neutron.dashboard.panes.Search.prototype._update=function(){!0==goog.isDefAndNotNull(this._controller)&&this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE)};
neutron.dashboard.panes.Search.prototype._remove=function(){!0==goog.isDefAndNotNull(this._closeBtn)&&(this._closeBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._closeBtn=null);!0==goog.isDefAndNotNull(this._searchBackBtn)&&(this._searchBackBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchBackBtn=null);!0==goog.isDefAndNotNull(this._searchContextSelect)&&(this._searchContextSelect.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchContextSelect=
null);!0==goog.isDefAndNotNull(this._searchResultTitle)&&(this._searchResultTitle.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchResultTitle=null);!0==goog.isDefAndNotNull(this._searchDesignsPane)&&(this._searchDesignsPane.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchDesignsPane=null);!0==goog.isDefAndNotNull(this._searchCtrl)&&(this._searchCtrl.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchCtrl=null);!0==goog.isDefAndNotNull(this._searchHint)&&
(this._searchHint.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchHint=null);!0==goog.isDefAndNotNull(this._searchErrorHint)&&(this._searchErrorHint.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchErrorHint=null);!0==goog.isDefAndNotNull(this._topSearchDelimiter)&&(this._topSearchDelimiter.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._topSearchDelimiter=null)};
neutron.dashboard.panes.Search.prototype._connectEvents=function(){var a=this;!0==goog.isDefAndNotNull(this._closeBtn)&&this._addEventHandlerKey(this._CLOSE_CLICK_EVENT_KEY,goog.events.listen(this._closeBtn,goog.events.EventType.CLICK,function(){neutron.dashboard.Application.instance.closeDatapanel()}));!0==goog.isDefAndNotNull(this._searchBackBtn)&&this._addEventHandlerKey(this._BACK_BUTTON_CLICK_EVENT_KEY,goog.events.listen(this._searchBackBtn,goog.events.EventType.CLICK,function(){a.dispatchEvent(new neutron.dashboard.events.GoToPane(a._lastVisiblePaneName))}));
!0==goog.isDefAndNotNull(this._searchDesignsPane)&&this._addEventHandlerKey("SEARCH_PROJECT_CHANGED",goog.events.listen(this._searchDesignsPane,neutron.dashboard.events.EventType.CHANGE,function(b){if("ALL"==b.newValue)a._searchCtrl.updatePlaceholder(_LCLZ("All Data"));else{var c="";goog.isObject(b.newValue)?goog.isDefAndNotNull(b.newValue.name)&&(c=b.newValue.name):(b=neutron.dashboard.invoker.getProjectById(b.newValue),goog.isDefAndNotNull(b)&&(c=b.name));a._searchCtrl.updatePlaceholder(c)}}));
!0==goog.isDefAndNotNull(this._searchContextSelect)&&this._addEventHandlerKey("SEARCH_CONTEXT_CHANGED_EVENT_KEY",goog.events.listen(this._searchContextSelect,neutron.dashboard.events.EventType.CHANGE,function(b){a._onSearchContextChanged(b)}));!0==goog.isDefAndNotNull(this._searchCtrl)&&(this._addEventHandlerKey("searchCtrl_Change",goog.events.listen(this._searchCtrl,neutron.dashboard.events.EventType.CHANGE,function(b){a._createSearchHint();a._destroySearchErrorHint();a._update()})),this._addEventHandlerKey("searchCtrl_InputError",
goog.events.listen(this._searchCtrl,neutron.dashboard.events.EventType.INPUT_ERROR,function(b){a._createSearchErrorHint();a._update()})))};neutron.dashboard.panes.Search.prototype._onSearchContextChanged=function(a){this._searchCtrl.setSelect();this._searchDesignsPane.setSearchProjectAndSearchString(a.newValue,this._searchCtrl.getValue());neutron.dashboard.utils.Report({Action:"DashboardSearchContextChange"})};neutron.dashboard.panes.Search.prototype._createSearchHint=function(){};
neutron.dashboard.panes.Search.prototype._destroySearchHint=function(){!1!=goog.isDefAndNotNull(this._searchHint)&&(this._disconnectEventByEventName(this._SEARCH_HINT_HIDE_EVENT_KEY),this._searchHint.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchHint=null)};
neutron.dashboard.panes.Search.prototype._createSearchErrorHint=function(){var a=this;this._searchErrorHint=new neutron.dashboard.controls.ArrowStrip(goog.dom.createDom("div",{},_LCLZ("Please enter at least 2 characters.")),!0);this._addEventHandlerKey(this._SEARCH_ERROR_HINT_HIDE_EVENT_KEY,goog.events.listen(this._searchErrorHint,neutron.dashboard.events.EventType.HIDE,function(b){a._destroySearchErrorHint();a._update()}))};
neutron.dashboard.panes.Search.prototype._destroySearchErrorHint=function(){!1!=goog.isDefAndNotNull(this._searchErrorHint)&&(this._disconnectEventByEventName(this._SEARCH_ERROR_HINT_HIDE_EVENT_KEY),this._searchErrorHint.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchErrorHint=null)};
neutron.dashboard.panes.Search.prototype.initPaneBeforeDisplaying=function(a){this._lastVisiblePaneName=a;a==neutron.dashboard.constants.PaneName.PROJECT_DETAIL?(a=neutron.dashboard.invoker.getLastUsedProject(),this._searchDesignsPane.setSearchProject(a)):this._searchDesignsPane.setSearchProject("RECENT");this._searchCtrl.setFocus();this._searchCtrl.setSelect()};neutron.dashboard.utils.FilterHelper=function(a){this._filters=[];a=goog.string.trim(a);a=a.split(" ");goog.array.forEach(a,function(a){a&&0<a.length&&this._filters.push(a.toLocaleLowerCase())},this);this._FILTER_START='<span class="f">';this._FILTER_END="</span>"};neutron.dashboard.utils.FilterHelper.prototype.isValid=function(){return 0<this._filters.length};
neutron.dashboard.utils.FilterHelper.prototype.filterItem=function(a,b){if(0===this._filters.length)return!0;if(!goog.isDefAndNotNull(a)||!goog.isArray(b))return!1;for(var c=0;c<b.length;++c)if(this._filterItemProp(a[b[c]]))return!0;return!1};neutron.dashboard.utils.FilterHelper.prototype._filterItemProp=function(a){a=a.toLocaleLowerCase();for(var b=0;b<this._filters.length;++b)if(0<=a.indexOf(this._filters[b]))return!0;return!1};
neutron.dashboard.utils.FilterHelper.prototype.highlightFilter=function(a){if(!goog.isDefAndNotNull(a)||0===this._filters.length)return a;var b=[];goog.array.forEach(this._filters,function(c){this._getHighlights(a,c,b)},this);if(0<b.length)for(var c=function(a,b,c){var d=a.substr(0,b);a=a.substr(b);return d+c+a},d=b.length-1;0<=d;--d){var e=b[d],f=e.start;a=c(a,f+e.len,this._FILTER_END);a=c(a,f,this._FILTER_START)}return a};
neutron.dashboard.utils.FilterHelper.prototype._getHighlights=function(a,b,c){var d=function(a,b,c){for(var d=b.start+b.len;!(c>=a.length);){var e=a[c];if(d<e.start)break;e=e.start+e.len;d<=e&&(b.len=e-b.start);goog.array.removeAt(a,c)}},e=function(a,b){if(0!==a.length)for(var c=a.length,e=0;e<c;++e){var f=a[e];if(b.start<f.start){b.start+b.len<f.start?goog.array.insertAt(a,b,e):(c=f.start+f.len,f.start=b.start,c<b.start+b.len?(f.len=b.len,d(a,f,e+1)):f.len=c-f.start);return}if(b.start<f.start+f.len){c=
b.start+b.len;c>f.start+f.len&&(f.len=c-f.start,d(a,f,e+1));return}}a.push(b)},f=b.length;a=a.toLocaleLowerCase();for(var g=0;0<=(g=a.indexOf(b,g));)e(c,{start:g,len:f}),g+=f};neutron.dashboard.controls.PinGlyph=function(a,b,c){this._is_pinned=!1;goog.isDefAndNotNull(b)&&goog.isDefAndNotNull(b.pinned)&&(this._is_pinned=!0===b.pinned);var d=this._is_pinned?_LCLZ("Unpin"):_LCLZ("Pin");neutron.dashboard.controls.Glyph.call(this,d,a,b,c);this._callbackArgs=[this._dataSet,!this._is_pinned,this]};goog.inherits(neutron.dashboard.controls.PinGlyph,neutron.dashboard.controls.Glyph);
neutron.dashboard.controls.PinGlyph.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",this._is_pinned?{"class":"itemGlyph"}:{"class":"itemGlyph pin"});this._glyphTextHtml=goog.dom.createDom("span",{"class":"glyphText"});this._glyphTextHtml.innerText=this._text;this._htmlNode.appendChild(this._glyphTextHtml);this._imgdiv=goog.dom.createDom("div",this._is_pinned?{"class":"glyphimg unpinimg"}:{"class":"glyphimg pinimg"});this._htmlNode.appendChild(this._imgdiv);a.appendChild(this._htmlNode);
this._connectEvents()};
neutron.dashboard.controls.PinGlyph.prototype.refreshGlyph=function(a){goog.isDefAndNotNull(a)&&!0===a&&(this._is_pinned=!this._is_pinned,this._glyphTextHtml.innerText=this._is_pinned?_LCLZ("Unpin"):_LCLZ("Pin"),this._callbackArgs=[this._dataSet,!this._is_pinned,this],goog.dom.classes.remove(this._imgdiv,!this._is_pinned?"unpinimg":"pinimg"),a=this._is_pinned?"unpinimg":"pinimg",goog.dom.classes.add(this._imgdiv,a),"pinimg"===a?goog.dom.classes.add(this._htmlNode,"pin"):goog.dom.classes.remove(this._htmlNode,"pin"))};neutron.dashboard.controllers.projects_pane={};neutron.dashboard.controllers.projects_pane.List=function(a){neutron.dashboard.BaseClass.call(this);this._parentObject=a;this._CLOSE_BUTTON_RIGHT=8;this._CLOSE_BUTTON_SIZE=16;this._SEARCH_BUTTON_RIGHT=37;this._SEARCH_BUTTON_SIZE=16;this._TITLE_TOP=8;this._TITLE_LEFT=16;this._TITLE_LINE_HEIGHT=32;this._PROJECTS_LIST_LEFT=16;this._PROJECTS_LIST_RIGHT=14;this._FILTER_AREA_HEIGHT=35};goog.inherits(neutron.dashboard.controllers.projects_pane.List,neutron.dashboard.BaseClass);
neutron.dashboard.controllers.projects_pane.List.prototype._update=function(){if(!1!=goog.isDefAndNotNull(this._parentObject)){var a=this._parentObject.area();if(!1!=goog.isDefAndNotNull(a)){var b=this._parentObject.htmlNode();if(!1!=goog.isDefAndNotNull(b)){var c=a.width-this._CLOSE_BUTTON_RIGHT-this._CLOSE_BUTTON_SIZE,d=this._parentObject.closeButton();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(b,c,3,this._CLOSE_BUTTON_SIZE,this._CLOSE_BUTTON_SIZE));c=a.width-
this._SEARCH_BUTTON_RIGHT-this._SEARCH_BUTTON_SIZE;d=this._parentObject.searchButton();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(b,c,16,this._SEARCH_BUTTON_SIZE,this._SEARCH_BUTTON_SIZE));c-=2*this._SEARCH_BUTTON_SIZE;d=this._parentObject.refreshButton();if(!0==goog.isDefAndNotNull(d)){var e=goog.isDefAndNotNull(d._htmlNode);d.dispatchEvent(new neutron.dashboard.events.Update(b,c,16,this._SEARCH_BUTTON_SIZE,this._SEARCH_BUTTON_SIZE));!e&&goog.isDefAndNotNull(d._htmlNode)&&
(e=goog.dom.createDom("div",{"class":"refreshImage"}),d._htmlNode.appendChild(e))}d=this._parentObject.titleButton();!0==goog.isDefAndNotNull(d)&&d.dispatchEvent(new neutron.dashboard.events.Update(b,this._TITLE_LEFT,this._TITLE_TOP,c-this._TITLE_LEFT-8,this._TITLE_LINE_HEIGHT));c=this._parentObject.projectsList();!0==goog.isDefAndNotNull(c)&&(d=this._TITLE_TOP+this._TITLE_LINE_HEIGHT+18,c.dispatchEvent(new neutron.dashboard.events.Update(b,this._PROJECTS_LIST_LEFT,d,a.width-this._PROJECTS_LIST_LEFT-
this._PROJECTS_LIST_RIGHT,a.height-d-this._FILTER_AREA_HEIGHT)));c=this._parentObject.filterBox();!0===goog.isDefAndNotNull(c)&&c.dispatchEvent(new neutron.dashboard.events.Update(b,this._PROJECTS_LIST_LEFT,a.height-this._FILTER_AREA_HEIGHT,a.width-this._PROJECTS_LIST_LEFT-this._PROJECTS_LIST_RIGHT,this._FILTER_AREA_HEIGHT));c=this._parentObject.backButton();!0===goog.isDefAndNotNull(c)&&c.dispatchEvent(new neutron.dashboard.events.Update(b,-(this._SEARCH_BUTTON_RIGHT+1),16+this._SEARCH_BUTTON_SIZE+
4,-1,-1));b.style.top=a.top+"px";b.style.left=a.left+"px";b.style.width=a.width+"px";b.style.height=a.height+"px"}}}};neutron.dashboard.controllers.projects_pane.List.prototype._remove=function(){this._parentObject=null};neutron.dashboard.controls.FilterBox=function(){neutron.dashboard.RenderableObject.call(this);this._filterText="";this._timer=null;this._PLACEHOLDER=_LCLZ("Filter")};goog.inherits(neutron.dashboard.controls.FilterBox,neutron.dashboard.RenderableObject);neutron.dashboard.controls.FilterBox.prototype.filterText=function(){return this._filterText};
neutron.dashboard.controls.FilterBox.prototype.clear=function(){goog.isDefAndNotNull(this._htmlInput)&&(this._filterText="",this._htmlInput.value="",goog.dom.classes.addRemove(this._htmlInput,"hasFocus","noFocus"))};neutron.dashboard.controls.FilterBox.prototype.selectAll=function(){goog.isDefAndNotNull(this._htmlInput)&&this._htmlInput.select()};neutron.dashboard.controls.FilterBox.prototype.setFocus=function(){goog.isDefAndNotNull(this._htmlInput)&&(this._htmlInput.focus(),this._htmlInput.select())};
neutron.dashboard.controls.FilterBox.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"filterbox tooltipParent"});var b=goog.dom.createDom("div",{"class":"tooltip center top"},_LCLZ("Start typing to filter the projects"));this._htmlNode.appendChild(b);this._htmlInput=goog.dom.createDom("input",{placeholder:this._PLACEHOLDER,type:"search","class":"noFocus",tabIndex:-1});this._htmlNode.appendChild(this._htmlInput);a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.controls.FilterBox.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px",this._htmlNode.style.top=this._area.top+"px",this._htmlNode.style.left=this._area.left+"px")};
neutron.dashboard.controls.FilterBox.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey("inputFocus",goog.events.listen(this._htmlInput,goog.events.EventType.FOCUS,function(b){return a._onInputFocus(b)}));this._addEventHandlerKey("inputBlur",goog.events.listen(this._htmlInput,goog.events.EventType.BLUR,function(b){return a._onInputBlur(b)}));this._addEventHandlerKey("inputInput",goog.events.listen(this._htmlInput,goog.events.EventType.INPUT,function(b){return a._onInputInput(b)}));
this._addEventHandlerKey("inputEnterPressed",goog.events.listen(this._htmlInput,goog.events.EventType.KEYDOWN,function(b){13==b.keyCode&&a.selectAll()}));this._addEventHandlerKey("inputClick",goog.events.listen(this._htmlInput,goog.events.EventType.CLICK,function(b){a.selectAll()}))};neutron.dashboard.controls.FilterBox.prototype._onInputFocus=function(a){goog.dom.classes.addRemove(this._htmlInput,"noFocus","hasFocus")};
neutron.dashboard.controls.FilterBox.prototype._onInputBlur=function(a){0===this._htmlInput.value.length&&goog.dom.classes.addRemove(this._htmlInput,"hasFocus","noFocus")};neutron.dashboard.controls.FilterBox.prototype._onInputInput=function(a){this._setFilterText(this._htmlInput.value)};
neutron.dashboard.controls.FilterBox.prototype._setFilterText=function(a){a=goog.string.trim(a);if(a!==this._filterText){this._filterText=a;this._timer&&clearTimeout(this._timer);var b=this;this._timer=setTimeout(function(){b.dispatchEvent(new neutron.dashboard.events.Change(a,null));clearTimeout(b._timer);b._timer=null},150)}};neutron.dashboard.data={};neutron.dashboard.data.PictureCache=function(){this.init()};goog.inherits(neutron.dashboard.data.PictureCache,goog.events.EventTarget);neutron.dashboard.data.PictureCache.prototype.isWIPBasedId=function(a){return goog.isDefAndNotNull(a)&&goog.isString(a)?"urn:"==a.substr(0,4).toLowerCase():!1};neutron.dashboard.data.PictureCache.prototype.init=function(){this._pictureCache=[];this._onLoadCallbacks={};this._OSS_STORAGE_KEY="urn:adsk.objects:os.object:"};
neutron.dashboard.data.PictureCache.prototype.reset=function(){this.init()};neutron.dashboard.data.PictureCache.prototype.downloadThumbnailData=function(a,b){neutron.dashboard.invoker.getQontextThumbnail(a,function(a,d){null!=a&&(null!=a.status&&"progress"==a.status&&null!=a.thumbnail&&0<a.thumbnail.length)&&b(a.thumbnail)})};
neutron.dashboard.data.PictureCache.prototype.getData=function(a,b){var c=this;if(!1==goog.isDefAndNotNull(this._pictureCache[a])){this._pictureCache[a]="";goog.object.add(this._onLoadCallbacks,a,[b]);var d=function(b){c._pictureCache[a]=b;var d=c._onLoadCallbacks[a];!0==goog.isDefAndNotNull(d)&&goog.array.forEach(d,function(a){a(b)});goog.object.remove(c._onLoadCallbacks,a)};this.isWIPBasedId(a)?neutron.dashboard.invoker.getFolderThumbnail(a,function(a,b){null!=a&&(null!=a.status&&"progress"==a.status&&
null!=a.thumbnail&&0<a.thumbnail.length)&&d(a.thumbnail)}):this.downloadThumbnailData(a,function(a){d(a)})}else 0>=this._pictureCache[a].length?goog.array.insert(this._onLoadCallbacks[a],b):b(this._pictureCache[a])};neutron.dashboard.data.PictureCache.prototype.setData=function(a,b){this._pictureCache[a]=b};neutron.dashboard.panes.Projects=function(){neutron.dashboard.RenderableObject.call(this);this._titleBtn=this._filterBox=this._backToLastPrjBtn=this._refreshBtn=this._projectsList=this._searchBtn=this._closeBtn=null;this._bUserCreatingNewProject=!1;this._scrollToId=this._projectsData=null;this._shouldOpenProject=!0;this._backButtonLastProjectObj=this._backButtonLastProjectId=null;this._PROJECT_CONTEXT_MENU_ITEM_SELECTED_EVENT_KEY="PROJECT_CONTEXT_MENU_ITEM_SELECTED_EVENT_KEY";this._PROJECT_LIST_CREATE_CONTEXT_MENU=
"PROJECT_LIST_CREATE_CONTEXT_MENU";this._REFRESH_BTN_CLICK_EVENT_KEY="REFRESH_BTN_CLICK_EVENT_KEY";this._BACK_TO_LAST_BTN_CLICK_EVENT_KEY="BACK_TO_BTN_CLICK";var a=this;this.__onGetFolderThumbnail=function(b,c){a._onGetFolderThumbnail(b,c)};this._thumbnailsInProgress={};this._init()};goog.inherits(neutron.dashboard.panes.Projects,neutron.dashboard.RenderableObject);
neutron.dashboard.panes.Projects.prototype._init=function(){this._controller=new neutron.dashboard.controllers.projects_pane.List(this);this._closeBtn=new neutron.dashboard.controls.Dummy("closeButton",null,{label:_LCLZ("Close Data Panel"),align:"right bottom"});this._searchBtn=new neutron.dashboard.controls.Dummy("searchButton",null,{label:_LCLZ("Search"),align:"center bottom"});this._refreshBtn=new neutron.dashboard.controls.Dummy("refresh",null,{label:_LCLZ("Refresh"),align:"center bottom"});this._titleBtn=
new neutron.dashboard.controls.Dummy("title","hubName",{label:"hubName",align:"left"});this._backToLastPrjBtn=new neutron.dashboard.controls.Dummy("backToLast",_LCLZ("Back")+" >",{label:_LCLZ("Back to Last Used Project"),align:"right bottom"});this._projectsList=new neutron.dashboard.controls.SelectableList;this._filterBox=new neutron.dashboard.controls.FilterBox;this._bUserCreatingNewProject=!1};neutron.dashboard.panes.Projects.prototype.closeButton=function(){return this._closeBtn};
neutron.dashboard.panes.Projects.prototype.searchButton=function(){return this._searchBtn};neutron.dashboard.panes.Projects.prototype.titleButton=function(){return this._titleBtn};neutron.dashboard.panes.Projects.prototype.backButton=function(){return this._backToLastPrjBtn};neutron.dashboard.panes.Projects.prototype.hubAvatarHtmlNode=function(){return this._hubAvatarHtmlNode};neutron.dashboard.panes.Projects.prototype.hubNameButton=function(){return this._hubNameBtn};
neutron.dashboard.panes.Projects.prototype.refreshButton=function(){return this._refreshBtn};neutron.dashboard.panes.Projects.prototype.projectsList=function(){return this._projectsList};neutron.dashboard.panes.Projects.prototype.filterBox=function(){return this._filterBox};neutron.dashboard.panes.Projects.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{"class":"projectsPane"});a.appendChild(this._htmlNode);this._connectEvents();this._backToLastPrjBtn.hide()};
neutron.dashboard.panes.Projects.prototype._update=function(){!0==goog.isDefAndNotNull(this._controller)&&this._controller.dispatchEvent(neutron.dashboard.events.EventType.UPDATE);neutron.dashboard.invoker.online()?(this._searchBtn.enable(),this._refreshBtn.enable()):(this._searchBtn.disable(),this._refreshBtn.disable());this._updateTitle()};
neutron.dashboard.panes.Projects.prototype._remove=function(){!0==goog.isDefAndNotNull(this._titleBtn)&&(this._titleBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._titleBtn=null);!0==goog.isDefAndNotNull(this._refreshBtn)&&(this._refreshBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._refreshBtn=null);!0==goog.isDefAndNotNull(this._closeBtn)&&(this._closeBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._closeBtn=null);!0==goog.isDefAndNotNull(this._searchBtn)&&
(this._searchBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchBtn=null);!0===goog.isDefAndNotNull(this._backToLastPrjBtn)&&(this._backToLastPrjBtn.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._backToLastPrjBtn=null);!0==goog.isDefAndNotNull(this._projectsList)&&(this._projectsList.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._projectsList=null);!0==goog.isDefAndNotNull(this._filterBox)&&(this._filterBox.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),
this._filterBox=null);!0==goog.isDefAndNotNull(this._controller)&&(this._controller.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._controller=null)};
neutron.dashboard.panes.Projects.prototype._connectEvents=function(){var a=this;neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.GET_PROJECTS_LIST,this,this._onGetProjectList);neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.PROJECT_CREATED,this,this._onNewProjectCreated);!0==goog.isDefAndNotNull(this._closeBtn)&&this._addEventHandlerKey("CLOSE_BTN_CLICK",goog.events.listen(this._closeBtn,goog.events.EventType.CLICK,function(){neutron.dashboard.Application.instance.closeDatapanel()}));
!0==goog.isDefAndNotNull(this._searchBtn)&&this._addEventHandlerKey("SEARCH_BTN_CLICK",goog.events.listen(this._searchBtn,goog.events.EventType.CLICK,function(){a.dispatchEvent(new neutron.dashboard.events.GoToPane(neutron.dashboard.constants.PaneName.SEARCH))}));!0==goog.isDefAndNotNull(this._titleBtn)&&this._addEventHandlerKey(this._PROJECT_CLICK_EVENT_KEY,goog.events.listen(this._titleBtn,goog.events.EventType.CLICK,function(){neutron.dashboard.invoker.getProjectsPunchoutURL(function(a,c){if(goog.isDefAndNotNull(c)&&
c==neutron.dashboard.constants.Status.DONE){var d=a.url;console.log("punchOut: "+d);neutron.dashboard.Application.instance.punchOut(d)}})}));!0==goog.isDefAndNotNull(this._refreshBtn)&&this._addEventHandlerKey(this._REFRESH_BTN_CLICK_EVENT_KEY,goog.events.listen(this._refreshBtn,goog.events.EventType.CLICK,function(){a.showProjectsLoading(!0);neutron.dashboard.invoker.getProjectsList(!1)}));!0==goog.isDefAndNotNull(this._backToLastPrjBtn)&&this._addEventHandlerKey(this._BACK_TO_LAST_BTN_CLICK_EVENT_KEY,
goog.events.listen(this._backToLastPrjBtn,goog.events.EventType.CLICK,function(){a.dispatchEvent(new neutron.dashboard.events.GoToPane(neutron.dashboard.constants.PaneName.PROJECT_DETAIL))}));!0==goog.isDefAndNotNull(this._projectsList)&&(this._addEventHandlerKey("ITEM_SELECTED",goog.events.listen(this._projectsList,neutron.dashboard.events.EventType.ITEM_SELECTED,function(b){a._onProjectSelected(b.itemId,b.itemData)})),this._addEventHandlerKey("GROUP_ACTION_SELECTED",goog.events.listen(this._projectsList,
neutron.dashboard.events.EventType.GROUP_ACTION_SELECTED,function(b){a._onProjectGroupActionSelected(b.groupId,b.actionId)})),this._addEventHandlerKey(this._PROJECT_LIST_CREATE_CONTEXT_MENU,goog.events.listen(this._projectsList,neutron.dashboard.events.EventType.CREATE_CONTEXT_MENU,function(b){neutron.dashboard.invoker.online()&&a._createProjectListContextMenu(b)})),this._addEventHandlerKey(this._PROJECT_CONTEXT_MENU_ITEM_SELECTED_EVENT_KEY,goog.events.listen(this._projectsList,neutron.dashboard.events.EventType.CONTEXT_MENU_ITEM_SELECTED,
function(b){a._projectContextMenuItemSelected(b)})));this._addEventHandlerKey("PPON_PROJECT_LEAVE",goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.LEAVE_PROJECT,function(b){b=b.args.projectId;a._projectsList.selectItem(b);a._onLeaveProject(b)}));this._addEventHandlerKey("FOLDER_ACCESS_DENIED",goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.FOLDER_ACCESS_DENIED,function(b){a._backButtonLastProjectId=null;a._backToLastPrjBtn.hide()}));
this._addEventHandlerKey(this._NEUTRON_EVENT,goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));this._addEventHandlerKey("filterChanged",goog.events.listen(this._filterBox,neutron.dashboard.events.EventType.CHANGE,function(b){a._onFilterChangeEvent(b)}))};
neutron.dashboard.panes.Projects.prototype._onNeutronEvent=function(a){"confirmationAnswer"==a.cmdId?(a=goog.json.parse(a.cmdArgs),!0==goog.isDefAndNotNull(a)&&!0==a.accepted?this._handleProjectLeaveDeactivate(a):console.log("Confirmation answer: "+a.accepted)):"ActivateProjectFilter"==a.cmdId&&this._filterBox.setFocus()};
neutron.dashboard.panes.Projects.prototype._handleProjectLeaveDeactivate=function(a){var b=this,c=a.leave?neutron.dashboard.invoker.leaveProject:neutron.dashboard.invoker.deactivateProject,d=a.projectId,e=this._projectsList.getSelectedItemId();this._projectsList.showProgress(e,!0);b._projectsList.makeItemResponsive(d,!1);c.call(neutron.dashboard.invoker,d,function(a,c){c!=neutron.dashboard.constants.Status.PROGRESS&&(b._projectsList.showProgress(e,!1),goog.isDefAndNotNull(c)&&c==neutron.dashboard.constants.Status.DONE?
(b._projectsList.makeItemResponsive(e,!0),b._projectsList.removeItem(d,!0),b._removeItem(d)):(b._projectsList.makeItemResponsive(d,!0),b._projectsList.showError("",e)))})};
neutron.dashboard.panes.Projects.prototype._displayRenameIsProcceed=function(a,b){if(!0===b){var c=new neutron.dashboard.controls.Spinner(a,!0);a._spinner=c;var c=goog.style.getPaddingBox(a),c=a.clientHeight-c.bottom,d=a._spinner.htmlNode();d.style.width=c+"px";d.style.height=c+"px";a.style.color="lightgray"}else a.style.color="",!0==goog.isDefAndNotNull(a._spinner)&&a._spinner.dispatchEvent(neutron.dashboard.events.EventType.REMOVE)};
neutron.dashboard.panes.Projects.prototype._handleNewProjectNameSet=function(a,b,c,d){var e=this;a.innerText=b;b!==c&&(e._displayRenameIsProcceed(a,!0),neutron.dashboard.invoker.updateProjectName(d,b,function(f,g){if(!(goog.isDefAndNotNull(g)&&g==neutron.dashboard.constants.Status.PROGRESS)){e._projectsList.reconnectListItem(d);e._displayRenameIsProcceed(a,!1);if(goog.isDefAndNotNull(e._projectsData.projects)&&goog.isDefAndNotNull(e._projectsData.projects.items)){var h=goog.array.find(e._projectsData.projects.items,
function(a){return a.id===d});!0===goog.isDefAndNotNull(h)&&(h.name=b)}goog.isDefAndNotNull(g)&&g!=neutron.dashboard.constants.Status.DONE&&(a.innerText=c,e._projectsList.showError("",d))}}))};
neutron.dashboard.panes.Projects.prototype._renameProject=function(a){var b=this,c=this._projectsList.getSelectedItem();if(goog.isDefAndNotNull(c)&&(c=goog.dom.getFirstElementChild(c),!0==goog.isDefAndNotNull(c))){var d=c._name_node,e=d.innerText;!1!=goog.isDefAndNotNull(d)&&(new neutron.dashboard.controls.InplaceEdit(d.innerText,{notifyIfLeave:!0},function(c){b._handleNewProjectNameSet(d,c,e,a)})).dispatchEvent(new neutron.dashboard.events.Update(c,d.offsetLeft,d.offsetTop,d.offsetWidth,d.offsetHeight-
7))}};
neutron.dashboard.panes.Projects.prototype._createProjectListContextMenu=function(a){a=[];var b=this._projectsList.getSelectedItemId();if(!1!=goog.isDefAndNotNull(b))if("NEW_PROJECT"==b)console.log("          SKIP _createProjectListContextMenu - NEW_PROJECT");else if(b=neutron.dashboard.invoker.getProjectById(b),!1!=goog.isDefAndNotNull(b)&&!(goog.isDefAndNotNull(b.typeToken)&&"type:Qontext Experience"===b.typeToken)&&!1!=goog.isDefAndNotNull(b.membershipType)){if("MODERATOR"===b.membershipType)!0!==b.isLibrary&&
(goog.array.insert(a,{id:"_rename",title:_LCLZ("Rename")}),goog.array.insert(a,{id:"_archive",title:_LCLZ("Archive")}));else if("MEMBER"===b.membershipType)!0!==b.isLibrary&&goog.array.insert(a,{id:"_leave",title:_LCLZ("Leave")});else return;!0!==b.isLibrary&&goog.array.insert(a,{id:"_cache",title:_LCLZ("Cache This Project")});!0==b.canBeTransfered&&goog.array.insert(a,{id:"_transfer",title:_LCLZ("Transfer")});this._projectsList.processContextMenuItems(a)}};
neutron.dashboard.panes.Projects.prototype._projectContextMenuItemSelected=function(a){switch(a.menuId){case "_leave":this._onLeaveProject(a.itemsData);break;case "_archive":this._archiveProject(a.itemsData);break;case "_rename":this._renameProject(a.itemsData);break;case "_cache":this._cacheProject(a.itemsData);break;case "_transfer":this._transferProject(a.itemsData)}};
neutron.dashboard.panes.Projects.prototype._updateTitle=function(a){if(!1!=goog.isDefAndNotNull(this._titleBtn)){if(!1==goog.isDefAndNotNull(a)||0==a.length)a=this._titleBtn._innerText;if(neutron.dashboard.invoker.online()){var b=goog.string.format(_LCLZ("Open %s on Web"),a);this._titleBtn.changeTextData(a,b);this._titleBtn.enable()}else this._titleBtn.changeTextData(a,""),this._titleBtn.disable(!0)}};
neutron.dashboard.panes.Projects.prototype._onGetProjectList=function(a){if(!0!==this._bUserCreatingNewProject)if(!1==goog.isDefAndNotNull(a.status)||a.status===neutron.dashboard.constants.Status.ERROR)console.warn("GetProjectList event has ERROR status"),this.showProjectsLoading(!1);else if(!1==goog.isDefAndNotNull(a.data))console.warn("GetProjectList event does not contain data"),this.showProjectsLoading(!1);else if(!1==goog.isDefAndNotNull(a.data.title))console.warn("GetProjectList data does not contain title"),
this.showProjectsLoading(!1);else{this._updateTitle(a.data.title);this._projectsData=a.data;this._constructAllProjects(a.data);if(!0===this._shouldOpenProject&&goog.isDefAndNotNull(a.data.projects)&&goog.isDefAndNotNull(a.data.projects.items)&&goog.isString(a.data.lastUsedId)){var b=a.data.lastUsedId;if(goog.isDefAndNotNull(b)&&0!=b.length&&this._projectsList.scrollTo(b)){var c=this;setTimeout(function(){c._onProjectSelected(b)},500)}}!0==goog.isDefAndNotNull(this._scrollToId)&&(this._projectsList.scrollTo(this._scrollToId),
this._projectsList.selectItem(this._scrollToId),this._scrollToId=null);a.status===neutron.dashboard.constants.Status.DONE&&(this._shouldOpenProject=!1,this.showProjectsLoading(!1))}};
neutron.dashboard.panes.Projects.prototype._onNewProjectCreated=function(a){!1==goog.isDefAndNotNull(a.status)||a.status===neutron.dashboard.constants.Status.ERROR?(console.warn("NewProjectCreated event has ERROR status"),this._handleCancelNewProject()):!1==goog.isDefAndNotNull(a.data)?(console.warn("NewProjectCreated event does not contain data"),this._handleCancelNewProject()):(neutron.dashboard.notifier.fireNewProject(),!0==this._bUserCreatingNewProject&&(a=a.data.groupId,this._projectsList.updateElementId("NEW_PROJECT",
a),this._projectsList.clearSelection(),this._scrollToId=a,this._bUserCreatingNewProject=!1),this.showProjectsLoading(!0),neutron.dashboard.invoker.getProjectsList(!0))};
neutron.dashboard.panes.Projects.prototype._constructAllProjects=function(a){this._thumbnailsInProgress=[];var b=[];!1==goog.isDefAndNotNull(a.projects)||!1==goog.isObject(a.projects)?console.warn("GetProjectList data does not contain projects"):(b=goog.array.concat(b,this._constructProjectList(a.projects,String(a.lastUsedId))),!0==goog.isDefAndNotNull(a.samples)&&!0==goog.isObject(a.samples)&&(b=goog.array.concat(b,this._constructSampleLibraryList(a.samples,"group_samples",_LCLZ("Samples")))),!0==
goog.isDefAndNotNull(a.libraries)&&!0==goog.isObject(a.libraries)&&(b=goog.array.concat(b,this._constructSampleLibraryList(a.libraries,"group_libraries",_LCLZ("Libraries")))),this._projectsList.updateList(b))};
neutron.dashboard.panes.Projects.prototype._constructProjectList=function(a,b){var c={id:"group_projects",title:_LCLZ("Projects")};!0==goog.isDefAndNotNull(a.createNewAllowed)&&!0===a.createNewAllowed&&(c.action={id:"new_project_btn",label:_LCLZ("New Project"),tooltip:_LCLZ("Create New Project"),enabled:neutron.dashboard.invoker.online()});var d=[c];console.log("_constructProjectList");var e=null;!0==this._bUserCreatingNewProject?(c={name:_LCLZ("New Project"),id:"NEW_PROJECT",description:"&nbsp;",
thumbnail:"@newproj"},c=this._createProjectHtmlNode(c),goog.array.insert(d,{id:"NEW_PROJECT",htmlNode:c,selected:!0}),b=null):(e=new neutron.dashboard.utils.FilterHelper(this._filterBox.filterText()),e.isValid()||(e=null));var f=[];!0==goog.isDefAndNotNull(a.items)&&!0==goog.isArray(a.items)&&goog.array.forEach(a.items,function(a){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.id))){var c=this._createProjectHtmlNode(a,e);null!==c&&(!0===a.isLibrary?f.push({projectJSON:a,projectHtmlNode:c}):
goog.array.insert(d,{id:a.id,htmlNode:c,selected:b===a.id,customData:a}))}},this);goog.array.isEmpty(f)||(d.push({id:"group_libraries_0",title:_LCLZ("Libraries")}),goog.array.forEach(f,function(a){goog.array.insert(d,{id:a.projectJSON.id,htmlNode:a.projectHtmlNode,selected:b===a.projectJSON.id,customData:a.projectJSON})},this));return d};
neutron.dashboard.panes.Projects.prototype._constructSampleLibraryList=function(a,b,c){if(!1==goog.isDefAndNotNull(a.items)||!1==goog.isArray(a.items)||!0==goog.array.isEmpty(a.items))return[];b={id:b,title:c};var d=[],e=new neutron.dashboard.utils.FilterHelper(this._filterBox.filterText());e.isValid()||(e=null);goog.array.forEach(a.items,function(a){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.id))){var b=this._createProjectHtmlNode(a,e);null!==b&&goog.array.insert(d,{id:a.id,htmlNode:b,
selected:!1,customData:a})}},this);0<d.length&&d.unshift(b);return d};
neutron.dashboard.panes.Projects.prototype._createProjectHtmlNode=function(a,b){if(!1==goog.isDefAndNotNull(a)||goog.isDefAndNotNull(b)&&!b.filterItem(a,["name","description"]))return null;var c=goog.dom.createDom("div",{"class":"projectListItem"});c._errorMessage=null;var d=a.thumbnail;if(!0==goog.isDefAndNotNull(d)&&!0==goog.isString(d)){var e=goog.dom.createDom("div",{"class":"projectThumbnail"});if(0==d.search("available")){var d=a.id,f=this._projectsList._htmlElements[d];if(goog.isDefAndNotNull(f)&&
(f=goog.dom.getElementByClass("projectThumbnail",f),goog.isDefAndNotNull(f)&&(f=f.style.backgroundImage)&&f.length))e.style.backgroundImage=f;!1==goog.isDefAndNotNull(this._thumbnailsInProgress[d])&&(this._thumbnailsInProgress[d]=e,neutron.dashboard.invoker.getFolderThumbnail(d,this.__onGetFolderThumbnail))}else"@"==d.substr(0,1)?goog.dom.classes.add(e,d.substr(1)):""!=d&&(goog.dom.classes.remove(e,"recent","newproj"),neutron.dashboard.Application.instance.pictureCache().getData(d,function(a){!0==
goog.isDefAndNotNull(a)&&a.length&&(e.style.backgroundImage='url("'+a+'")')}));c.appendChild(e)}d=goog.dom.createDom("div",{"class":"errorMessage"});c._errorMessage=goog.dom.createDom("div",{"class":"content"});d.appendChild(c._errorMessage);c.appendChild(d);d=a.name;!0===goog.isDefAndNotNull(d)&&!0===goog.isString(d)&&(goog.isDefAndNotNull(b)&&(d=b.highlightFilter(d)),f=goog.dom.createDom("div",{"class":"projectName"}),f.innerHTML=d,c.appendChild(f),"NEW_PROJECT"==a.id&&(c._id="NEW_PROJECT"),c._name_node=
f);if("static"!==a.type&&!0==goog.isDefAndNotNull(a.description)&&!0==goog.isString(a.description)){var g=a.description,h=null,k=g.indexOf("http://");-1==k&&(k=g.indexOf("https://"));-1!=k?(d="",f=g.substr(0,k),g=g.substr(k),k=g.indexOf(" "),-1!=k?(d=g.substr(k),h=g.substr(0,k)):h=g,g=h,goog.isDefAndNotNull(b)&&(f=b.highlightFilter(f),g=b.highlightFilter(g),d=b.highlightFilter(d)),f=f+'<span class="thelink">'+g+"</span>"+d):f=goog.isDefAndNotNull(b)?b.highlightFilter(g):g;d=goog.dom.createDom("div",
{"class":"projectDescription"});d.innerHTML=f;f=goog.dom.getElementByClass("thelink",d);goog.isDefAndNotNull(f)&&null!=h&&this._addEventHandlerKey(h,goog.events.listen(f,goog.events.EventType.CLICK,function(a){window.neutronJavaScriptObject.executeQuery("openWebBrowser",JSON.stringify({url:h}));a.stopPropagation();a.preventDefault()}));c.appendChild(d)}d=null;"MEMBER"===a.membershipType&&("type:Qontext Experience"!==a.typeToken&&!0!==a.isLibrary&&!0===neutron.dashboard.invoker.online())&&(d=new neutron.dashboard.controls.Glyph(_LCLZ("Leave"),
this,a.id,this._onLeaveProject),d.dispatchEvent(new neutron.dashboard.events.Update(c,-1,-1,-1,-1)));if(("MEMBER"===a.membershipType||"MODERATOR"===a.membershipType)&&!0!==a.isLibrary&&!0===neutron.dashboard.invoker.online())f=new neutron.dashboard.controls.PinGlyph(this,a,this._onProjectPin),f.dispatchEvent(new neutron.dashboard.events.Update(c,-1,-1,-1,-1)),!0==goog.isDefAndNotNull(d)&&goog.dom.classes.add(f.htmlNode(),"lower");!0==goog.isDefAndNotNull(a.corrupted)&&!0===a.corrupted&&goog.dom.classes.add(c,
"corrupted");return c};
neutron.dashboard.panes.Projects.prototype._onProjectPin=function(a,b,c){var d=this,e=a.id;this._projectsList.selectItem(e);this._projectsList.showProgress(e,!0);this._projectsList.makeItemResponsive(e,!1);neutron.dashboard.invoker.pinProject(e,b,function(a,b){d._projectsList.showProgress(e,!1);b!=neutron.dashboard.constants.Status.PROGRESS&&(goog.isDefAndNotNull(b)&&b==neutron.dashboard.constants.Status.DONE?(c.refreshGlyph(!0),d.showProjectsLoading(!0),neutron.dashboard.invoker.getProjectsList(!0)):d._projectsList.showError("",
e));d._projectsList.makeItemResponsive(e,!0)})};neutron.dashboard.panes.Projects.prototype.showProjectsLoading=function(a){a?(goog.dom.classes.add(this._htmlNode,"projectsLoading"),goog.dom.classes.addRemove(this._refreshBtn._htmlNode,"refresh","refreshAnim")):(goog.dom.classes.remove(this._htmlNode,"projectsLoading"),goog.dom.classes.addRemove(this._refreshBtn._htmlNode,"refreshAnim","refresh"))};
neutron.dashboard.panes.Projects.prototype._onLeaveProject=function(a){var b=neutron.dashboard.invoker.getProjectById(a);if(!1==goog.isDefAndNotNull(b))return null;a={leave:"true",projectName:b.name,business:"true"===b.business?!0:!1,projectId:a};goog.isDefAndNotNull(window.automationIsRunning)&&!0===window.automationIsRunning&&goog.object.add(a,"automationIsRunning",!0);window.neutronJavaScriptObject.executeQuery("showProjectConfirmationDialog",JSON.stringify(a))};
neutron.dashboard.panes.Projects.prototype._archiveProject=function(a){var b=neutron.dashboard.invoker.getProjectById(a);if(!1==goog.isDefAndNotNull(b))return null;a={leave:"false",projectName:b.name,business:"true"===b.business?!0:!1,projectId:a};goog.isDefAndNotNull(window.automationIsRunning)&&!0===window.automationIsRunning&&goog.object.add(a,"automationIsRunning",!0);window.neutronJavaScriptObject.executeQuery("showProjectConfirmationDialog",JSON.stringify(a))};
neutron.dashboard.panes.Projects.prototype._cacheProject=function(a,b){!1==goog.isDefAndNotNull(b)&&(b=neutron.dashboard.invoker.getProjectById(a));var c=b.rootFolder;c&&neutron.dashboard.invoker.cacheItems([{id:c.id,type:"project"}])};neutron.dashboard.panes.Projects.prototype._transferProject=function(a,b){neutron.dashboard.Application.instance.executeNeutronCmd("TransferToTeamHubCommand",JSON.stringify({projectId:a,accessPoint:"SidePanel"}))};
neutron.dashboard.panes.Projects.prototype._onProjectSelected=function(a,b){if(!1==goog.isDefAndNotNull(a)||!1==goog.isString(a))console.warn("ProjectId is not string");else{var c=this._projectsList.getSelectedItem();if(!0==goog.isDefAndNotNull(c)&&(c=goog.dom.getFirstElementChild(c),!0==goog.isDefAndNotNull(c)&&!0==goog.isDefAndNotNull(c._spinner))){console.log("          SKIP entering into project - has spinner.");return}this._shouldOpenProject=!1;neutron.dashboard.invoker.setLastUsedProject(a);
!1==goog.isDefAndNotNull(b)&&(b=neutron.dashboard.invoker.getProjectById(a));neutron.dashboard.notifier.fireProjectChange(a,b);this.dispatchEvent(new neutron.dashboard.events.GoToPane(neutron.dashboard.constants.PaneName.PROJECT_DETAIL));this._backButtonLastProjectId=a;this._backButtonLastProjectObj=b;this._backToLastPrjBtn.show()}};
neutron.dashboard.panes.Projects.prototype._handleCancelNewProject=function(){this._bUserCreatingNewProject=!1;goog.isDefAndNotNull(this._scrollToId)&&(this._projectsList.selectItem(this._scrollToId),this._scrollToId=null);this._constructAllProjects(this._projectsData)};
neutron.dashboard.panes.Projects.prototype._handleStartToCreateNewProject=function(a,b){var c=this,d=this._projectsList.getSelectedItem();if(!0==goog.isDefAndNotNull(d)){var e=goog.dom.getFirstElementChild(d);!0==goog.isDefAndNotNull(e)&&"NEW_PROJECT"==e._id&&(e._name_node.innerText=a)}e._spinner=new neutron.dashboard.controls.Spinner(e);neutron.dashboard.invoker.createProject(a,function(a,b){b!=neutron.dashboard.constants.Status.PROGRESS&&(c._bUserCreatingNewProject=!1,goog.isDefAndNotNull(b)&&b!=
neutron.dashboard.constants.Status.DONE&&(e._spinner.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),e._spinner=null,e._errorMessage.innerText=_LCLZ("Operation failed"),goog.dom.classes.add(e._errorMessage.parentNode,"showByScale"),setTimeout(function(){goog.dom.classes.remove(e._errorMessage.parentNode,"showByScale");c._handleCancelNewProject()},5E3)))})};
neutron.dashboard.panes.Projects.prototype._handleSelectedItem=function(){var a=this,b=this._projectsList.getSelectedItem();if(goog.isDefAndNotNull(b)){var c=goog.dom.getFirstElementChild(b);if(!0==goog.isDefAndNotNull(c)&&"NEW_PROJECT"==c._id){var d=c._name_node;(new neutron.dashboard.controls.InplaceEdit(_LCLZ("New Project"),{notifyIfLeave:!0},function(c){a._handleStartToCreateNewProject(c,b)},function(){a._handleCancelNewProject()})).dispatchEvent(new neutron.dashboard.events.Update(c,d.offsetLeft,
d.offsetTop,d.offsetWidth,d.offsetHeight-7))}}};
neutron.dashboard.panes.Projects.prototype._onProjectGroupActionSelected=function(a,b){var c=this;!1!=goog.isDefAndNotNull(this._projectsList)&&(!1===neutron.dashboard.invoker.online()?console.log("NEW_PROJECT is allowed only in ONLINE mode, skipping."):this._projectsList.scrollTo(a,function(){"group_projects"==a&&"new_project_btn"==b&&!0!=c._bUserCreatingNewProject&&(c._filterBox.clear(),c._bUserCreatingNewProject=!0,c._scrollToId=c._projectsList.getSelectedItemId(),c._projectsList.clearSelection(),
c._constructAllProjects(c._projectsData),c._handleSelectedItem())}))};neutron.dashboard.panes.Projects.prototype._onFilterChangeEvent=function(a){this._constructAllProjects(this._projectsData)};
neutron.dashboard.panes.Projects.prototype._onGetFolderThumbnail=function(a,b){if(!(!1==goog.isDefAndNotNull(a)||!1==goog.isDefAndNotNull(a.status)||"progress"!=a.status)){var c=a.id;if(!1!=goog.isDefAndNotNull(c)&&!1!=goog.isDefAndNotNull(this._thumbnailsInProgress[c])){var d=this._thumbnailsInProgress[c],e=a.thumbnail,f=d.style.backgroundImage;if(!0==goog.isDefAndNotNull(e)&&e.length){var g="url("+e+")";g!=f&&(d.style.backgroundImage=g,neutron.dashboard.Application.instance.pictureCache().setData(c,
e))}goog.object.remove(this._thumbnailsInProgress,c)}}};neutron.dashboard.panes.Projects.prototype._removeItem=function(a){goog.isDefAndNotNull(this._projectsData.projects)&&goog.isDefAndNotNull(this._projectsData.projects.items)&&goog.array.removeIf(this._projectsData.projects.items,function(b,c,d){return b.id===a})};neutron.dashboard.boards.DataView=function(){neutron.dashboard.RenderableObject.call(this);this._initTimeout=this._fullPageSpinner=this._errorMessageBar=this._searchPane=this._projectDetailPane=this._projectsPane=this._swipeControl=null;this._lastUsedSelected=!1;this._pubnubMessages=[];this._errorLoadingProjectsNode=this._pubnubMsgTimer=null;this._projectsFailedCounter=0;this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY="NEUTRON_TO_JAVASCRIPT_EVENT_KEY";this._ERROR_MESSAGE_UPDATE="ERROR_MESSAGE_UPDATE";this._PROJECTS_GOTO_PANE_EVENT_KEY=
"PROJECTS_GO_TO_PANE";this._PROJECT_DETAIL_GOTO_PANE_EVENT_KEY="PROJECT_DETAIL_GO_TO_PANE";this._SEARCH_GOTO_PANE_EVENT_KEY="SEARCH_GO_TO_PANE";this._CONTEXT_MENU="CONTEXT_MENU";this._CREATE_UPLOAD_ITEM_GROUP="CREATE_UPLOAD_ITEM_GROUP";this._DESTROY_UPLOAD_ITEM_GROUP="DESTROY_UPLOAD_ITEM_GROUP";this._REFRESH="REFRESH";this._PROJECT_CHANGED="PROJECT_CHANGED";this._PROJECTS_FAILED="_PROJECTS_FAILED";this._GO_OFFLINE_CLICK="_GO_OFFLINE_CLICK"};goog.inherits(neutron.dashboard.boards.DataView,neutron.dashboard.RenderableObject);
neutron.dashboard.boards.DataView.prototype.init=function(){this._projectsPane=new neutron.dashboard.panes.Projects;this._projectDetailPane=new neutron.dashboard.panes.ProjectDetail;this._searchPane=new neutron.dashboard.panes.Search;this._swipeControl=new neutron.dashboard.controls.Swipe([this._projectsPane,this._projectDetailPane,this._searchPane]);this._errorMessageBar=new neutron.dashboard.controls.ErrorMessageBar;this._pubnubMessages=[]};
neutron.dashboard.boards.DataView.prototype.projectsPane=function(){return this._projectsPane};neutron.dashboard.boards.DataView.prototype.projectDetailPane=function(){return this._projectDetailPane};neutron.dashboard.boards.DataView.prototype.searchPane=function(){return this._searchPane};
neutron.dashboard.boards.DataView.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{id:"dataViewBoard"});a.appendChild(this._htmlNode);goog.dom.classes.add(a,"rightBorder");this.showFullPageSpinner(!0);this._connectEvents()};
neutron.dashboard.boards.DataView.prototype._update=function(){var a=this.area();if(!1!=goog.isDefAndNotNull(a)){var b=0;if(!0==goog.isDefAndNotNull(this._errorMessageBar)){this._errorMessageBar.dispatchEvent(new neutron.dashboard.events.Update(this._htmlNode,0,0,a.width-1,-1));var c=this._swipeControl.htmlNode();!0===this._errorMessageBar.isVisible()?(!0===goog.isDefAndNotNull(c)&&goog.dom.classes.add(c,"moveImmediatelyDown"),b=this._errorMessageBar.height()):!0===goog.isDefAndNotNull(c)&&goog.dom.classes.remove(c,
"moveImmediatelyDown")}!0==goog.isDefAndNotNull(this._swipeControl)&&this._swipeControl.dispatchEvent(new neutron.dashboard.events.Update(this._htmlNode,0,b,a.width,a.height-b));!0==goog.isDefAndNotNull(this._fullPageSpinner)&&this._fullPageSpinner.dispatchEvent(new neutron.dashboard.events.Update(this._htmlNode,0,0,a.width-1,a.height));this._htmlNode.style.top=this._area.top+"px";this._htmlNode.style.left=this._area.left+"px";this._htmlNode.style.width=this._area.width+"px";this._htmlNode.style.height=
this._area.height+"px"}};
neutron.dashboard.boards.DataView.prototype._remove=function(){!0==goog.isDefAndNotNull(this._projectsPane)&&(this._projectsPane.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._projectsPane=null);!0==goog.isDefAndNotNull(this._projectDetailPane)&&(this._projectDetailPane.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._projectDetailPane=null);!0==goog.isDefAndNotNull(this._searchPane)&&(this._searchPane.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._searchPane=
null);!0==goog.isDefAndNotNull(this._swipeControl)&&(this._swipeControl.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._swipeControl=null);!0==goog.isDefAndNotNull(this._fullPageSpinner)&&(this._fullPageSpinner.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._fullPageSpinner=null);!0==goog.isDefAndNotNull(this._errorMessageBar)&&(this._errorMessageBar.dispatchEvent(neutron.dashboard.events.EventType.REMOVE),this._errorMessageBar=null)};
neutron.dashboard.boards.DataView.prototype._onGetProjectList=function(a){console.log("boards.DataView.prototype._onGetProjectList");if(!1==goog.isDefAndNotNull(a.status))this._onProjectsFailed(null);else{var b=0,c=0,d=0;!0==goog.isDefAndNotNull(a.data)&&(!0==goog.isDefAndNotNull(a.data.libraries)&&!0==goog.isDefAndNotNull(a.data.libraries.items)&&(b=a.data.libraries.items.length),!0==goog.isDefAndNotNull(a.data.projects)&&!0==goog.isDefAndNotNull(a.data.projects.items)&&(c=a.data.projects.items.length),
!0==goog.isDefAndNotNull(a.data.samples)&&!0==goog.isDefAndNotNull(a.data.samples.items)&&(d=a.data.samples.items.length));a.status===neutron.dashboard.constants.Status.ERROR||!1==goog.isDefAndNotNull(a.data)||!1==goog.isDefAndNotNull(a.data.title)||0==b+c+d?this._onProjectsFailed(null):(this._projectsFailedCounter=0,this.showFullPageSpinner(!1),setTimeout(function(){console.log("TODO: Discover selected project...")},1))}};
neutron.dashboard.boards.DataView.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey(this._REFRESH,goog.events.listen(this._projectDetailPane.projectDetailData().designsPane(),neutron.dashboard.events.EventType.REFRESH,function(b){a._pubnubMessages=[]}));neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.GET_PROJECTS_LIST,this,this._onGetProjectList,!1);this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,goog.events.listen(neutron.dashboard.Application.instance,
neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));this._addEventHandlerKey(this._ERROR_MESSAGE_UPDATE,goog.events.listen(this._errorMessageBar,neutron.dashboard.events.EventType.ERROR_MESSAGE_CHANGE,function(){a._update()}));!0==goog.isDefAndNotNull(this._projectsPane)&&this._addEventHandlerKey(this._PROJECTS_GOTO_PANE_EVENT_KEY,goog.events.listen(this._projectsPane,neutron.dashboard.events.EventType.GO_TO_PANE,function(b){a._goToPane(b.paneName,neutron.dashboard.constants.PaneName.PROJECTS)}));
!0==goog.isDefAndNotNull(this._projectDetailPane)&&this._addEventHandlerKey(this._PROJECT_DETAIL_GOTO_PANE_EVENT_KEY,goog.events.listen(this._projectDetailPane,neutron.dashboard.events.EventType.GO_TO_PANE,function(b){a._goToPane(b.paneName,neutron.dashboard.constants.PaneName.PROJECT_DETAIL)}));!0==goog.isDefAndNotNull(this._searchPane)&&this._addEventHandlerKey(this._SEARCH_GOTO_PANE_EVENT_KEY,goog.events.listen(this._searchPane,neutron.dashboard.events.EventType.GO_TO_PANE,function(b){a._goToPane(b.paneName,
neutron.dashboard.constants.PaneName.SEARCH)}));this._addEventHandlerKey("documentKeyDown",goog.events.listen(document.body,goog.events.EventType.KEYDOWN,function(b){if(a._swipeControl&&0==a._swipeControl.visibleIdx()&&70===b.keyCode&&!1===b.shiftKey&&(!0===b.ctrlKey||!0===b.metaKey)&&!1===b.altKey)return b.preventDefault(),b.stopPropagation(),a.projectsPane().filterBox().setFocus(),!1}));window.onpopstate=function(){window.history.pushState(null,null,document.URL)};this._addEventHandlerKey(this._CONTEXT_MENU,
goog.events.listen(document.body,goog.events.EventType.CONTEXTMENU,function(b){a._onContextMenu(b)}));neutron.dashboard.notifier.register(neutron.dashboard.constants.BrowserAPIConstants.SHOW_STATUS,this,function(a){goog.isDefAndNotNull(a.data.error_reason)&&neutron.dashboard.notifier.fireErrorMessage(a.data.error_reason)})};
neutron.dashboard.boards.DataView.prototype.notificationMessage=function(){this._pubnubMsgTimer=null;var a="";if(1==this._pubnubMessages.length){var b=goog.json.parse(this._pubnubMessages[0].cmdArgs);if(!0==goog.isDefAndNotNull(b)&&(b=b.message,!0==goog.isDefAndNotNull(b[0]))){var b=b[0],b=b.message,c=b.fileName;20<c.length&&(c=c.toString().match(/[\u3400-\u9FBF]/)?c.slice(0,10):c.slice(0,19),c+="...");"FileSave"==b.operation?a=c+" "+_LCLZ("has been saved."):"FileDelete"==b.operation?a=c+" "+_LCLZ("has been deleted."):
"FileUpload"==b.operation?a=c+" "+_LCLZ("has been uploaded."):"FileImport"==b.operation?a=c+" "+_LCLZ("has been updated."):"FileRename"==b.operation&&(a=c+" "+_LCLZ("has been renamed."))}}else{for(var b="",c=!0,d=0;d<this._pubnubMessages.length;d++){var e=goog.json.parse(this._pubnubMessages[d].cmdArgs);if(!0==goog.isDefAndNotNull(e)&&(e=e.message,!0==goog.isDefAndNotNull(e[0])&&(e=e[0],e=e.message,e=e.operation,0==d&&(b=e),b!=e))){c=!1;break}}!1==c?a=_LCLZ("There are pending changes in the project data."):
"FileSave"==b?a=_LCLZ("Documents in this project have been saved."):"FileDelete"==b?a=_LCLZ("Documents in this project have been deleted."):"FileUpload"==b?a=_LCLZ("There are new documents uploaded to this project."):"FileImport"==b?a=_LCLZ("Documents in this project have been updated."):"FileRename"==b&&(a=_LCLZ("Documents in this project have been renamed."))}""!=a&&this._projectDetailPane.projectDetailData().showNotificationMessage(a,_LCLZ("Refresh"),function(){this.dispatchEvent(new neutron.dashboard.events.Refresh)})};
neutron.dashboard.boards.DataView.prototype.processPubNubMessages=function(a){var b=this,c=goog.json.parse(a.cmdArgs);if(!0==goog.isDefAndNotNull(c)&&(c=c.message,!0==goog.isDefAndNotNull(c)&&!0==goog.isDefAndNotNull(c[0]))){var c=c[0],c=c.message,d=!1,e=this._projectDetailPane.currentFolderPath();!0==goog.isDefAndNotNull(e)&&(e=goog.array.peek(e),!0==goog.isDefAndNotNull(e)&&c.folderId==e.id&&(d=!0));if(!1!=d){d=!0;for(e=0;e<this._pubnubMessages.length;e++){var f=goog.json.parse(this._pubnubMessages[e].cmdArgs),
f=f.message,f=f[0],f=f.message;f.lineageUri==c.lineageUri&&f.operation==c.operation&&("FileRename"!=f.operation&&(this._pubnubMessages[e]=a),d=!1)}d&&this._pubnubMessages.push(a);null==this._pubnubMsgTimer&&1<=this._pubnubMessages.length&&(this._pubnubMsgTimer=setTimeout(function(){b.notificationMessage()},4E3))}}};
neutron.dashboard.boards.DataView.prototype._onContextMenu=function(a){var b=window.neutronJavaScriptObject.executeQuery("showDevTools","");!(!0==goog.isDefAndNotNull(b)&&"yes"===b)&&(COMPILED&&"INPUT"!=a.target.nodeName)&&(a.preventDefault(),a.stopPropagation())};neutron.dashboard.boards.DataView.prototype._onGoOfflineClick=function(a){a.preventDefault();window.neutronJavaScriptObject.executeCommand("WorkOfflineCommand","")};
neutron.dashboard.boards.DataView.prototype._onProjectsFailed=function(a){console.log("boards.DataView.prototype._onProjectsFailed");var b=this;this._projectsFailedCounter++;goog.isDefAndNotNull(this._fullPageSpinner)&&1<this._projectsFailedCounter&&(!1==goog.isDefAndNotNull(this._errorLoadingProjectsNode)&&(a=goog.dom.createDom("a",{href:"#"},_LCLZ(" continue working offline")),this._addEventHandlerKey(this._GO_OFFLINE_CLICK,goog.events.listen(a,goog.events.EventType.CLICK,function(a){b._onGoOfflineClick(a)})),
this._errorLoadingProjectsNode=goog.dom.createDom("div",{"class":"info"},goog.dom.createDom("p",{},_LCLZ("Having difficulty establishing a connection. We'll keep trying.")),goog.dom.createDom("p",{},_LCLZ("(or"),a,")"))),this._fullPageSpinner.showNode(this._errorLoadingProjectsNode))};
neutron.dashboard.boards.DataView.prototype._goToPane=function(a,b){!1!=goog.isDefAndNotNull(this._swipeControl)&&(a==neutron.dashboard.constants.PaneName.PROJECTS?(this._projectDetailPane.projectDetailData().hideNotificationMessage(),this._swipeControl.swipeTo(0),this._projectsPane.showProjectsLoading(!0),setTimeout(function(){neutron.dashboard.invoker.getProjectsList(!1)},250)):a==neutron.dashboard.constants.PaneName.PROJECT_DETAIL?this._swipeControl.swipeTo(1):a==neutron.dashboard.constants.PaneName.SEARCH&&
(this._searchPane.initPaneBeforeDisplaying(b),this._swipeControl.swipeTo(2)))};neutron.dashboard.boards.DataView.prototype._onNeutronEvent=function(a){console.log("Neutron event: "+a.cmdId);"showNotificationUI"==a.cmdId?this.processPubNubMessages(a):"ReloadDesigns"==a.cmdId?this._projectDetailPane.refreshDesignsPaneCurrentFolder():"transferedProjects"==a.cmdId&&(console.log(" event args: "+a.cmdArgs),this._refreshAfterTransfer(goog.json.parse(a.cmdArgs)))};
neutron.dashboard.boards.DataView.prototype._refreshAfterTransfer=function(a){if(goog.isDefAndNotNull(a)&&goog.isArray(a)){var b=this._swipeControl.visibleIdx();if(0==b)this._projectsPane.showProjectsLoading(!0),this._projectsPane.backButton().hide(),neutron.dashboard.invoker.getProjectsList(!0);else{var c=!0;1==b&&(goog.array.contains(a,this._projectDetailPane.currentProjectId())||(c=!1));c&&(this._projectsPane.backButton().hide(),this._goToPane(neutron.dashboard.constants.PaneName.PROJECTS))}}};
neutron.dashboard.boards.DataView.prototype.showFullPageSpinner=function(a){!0===a&&!1===goog.isDefAndNotNull(this._fullPageSpinner)?(this._fullPageSpinner=new neutron.dashboard.controls.FullPageSpinner(this.htmlNode()),this._area&&this._fullPageSpinner.dispatchEvent(new neutron.dashboard.events.Update(this.htmlNode(),0,0,this._area.width-1,this._area.height))):!1===a&&!0===goog.isDefAndNotNull(this._fullPageSpinner)&&(this._fullPageSpinner.removeItself(),this._fullPageSpinner=null)};
neutron.dashboard.boards.DataView.prototype.showProjectsLoading=function(){this._projectsPane.showProjectsLoading(!0)};neutron.dashboard.tests.actions.dataView.ItemDetails={};neutron.dashboard.tests.actions.dataView.ItemDetails.findIIcon=function(a){return document.evaluate("//div[contains(@class, 'versionNumber') and parent::div//div[text()='"+a+"']]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.dataView.ItemDetails.findExpandPopUp=function(){return document.evaluate("//div[contains(@class, 'expandPopup')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.dataView.ItemDetails.getVersionsExpandButton=function(){return document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'versions')]//div[contains(@class, 'clickHere')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.dataView.ItemDetails.getVersionItems=function(){return document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'tabVersions')]//div[contains(@class, 'selectable')]",document.documentElement,null,XPathResult.ANY_TYPE,null)};
neutron.dashboard.tests.actions.dataView.ItemDetails.findLoadingTab=function(a){return document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, '"+a+"') and  contains(@class, 'load')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.actions.dataView.ItemDetails.getVersionItemsCnt=function(){var a=neutron.dashboard.tests.actions.dataView.ItemDetails.getVersionItems();if(!1===goog.isDefAndNotNull(a))return 0;var b=0;if(!1===a.invalidIteratorState)for(;a.iterateNext();)++b;return b};neutron.dashboard.tests.dataView={};neutron.dashboard.tests.dataView.SmokeTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="SmokeTestCase";this._projectName="SmokeProject"+Date.now();this._projectPromise=null};goog.inherits(neutron.dashboard.tests.dataView.SmokeTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.SmokeTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,this._projectName);neutron.dashboard.tests.actions.dataView.projects.openProject(a,this._projectName);a.complete()};
neutron.dashboard.tests.dataView.SmokeTestCase.prototype.tearDown=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjectsNoWait(a);goog.isDefAndNotNull(this._projectPromise)&&neutron.dashboard.tests.actions.workflows.deactivateProject(a,this._projectPromise);a.complete()};
neutron.dashboard.tests.dataView.SmokeTestCase.prototype.testBranchWithAsm=function(a){var b=new neutron.dashboard.tests.Flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"master");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(b,"Part");neutron.dashboard.tests.actions.generals.closeCurrentDocument(b);this._projectPromise=neutron.dashboard.tests.actions.workflows.getLastUsedProject(b);a=neutron.dashboard.tests.actions.Branches.getMasterBranch(b,this._projectPromise);
neutron.dashboard.tests.actions.workflows.createBranchIfNotExists(b,"AsmBranch1",this._projectPromise,a);neutron.dashboard.tests.actions.Branches.getList(b,this._projectPromise);neutron.dashboard.tests.actions.dataView.projectDetails.updateBranchList(b,this._projectPromise);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"AsmBranch1");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(b,"Assembly");neutron.dashboard.tests.actions.dataView.projectDetails.insertIntoCurrentDesign(b,
"Part","Assembly","creating assembly");neutron.dashboard.tests.actions.generals.closeCurrentDocument(b);var c=neutron.dashboard.tests.actions.Branches.getBranchWithName(b,this._projectPromise,"AsmBranch1");a=neutron.dashboard.tests.actions.workflows.getDiffOfBranches(b,this._projectPromise,c,a,"#1");neutron.dashboard.tests.actions.workflows.mergeBranches(b,this._projectPromise,a,"my summary","Merging Assembly to Master",!0);a=neutron.dashboard.tests.actions.Milestones.getList(b,this._projectPromise).getMilestoneWithDescription("Merging Assembly to Master");
neutron.dashboard.tests.actions.workflows.createBranch(b,"AsmBranch2",null,a);neutron.dashboard.tests.actions.dataView.projectDetails.updateBranchList(b,this._projectPromise);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"AsmBranch2");b.justDo(function(){var a=neutron.dashboard.tests.actions.dataView.ItemDetails.findIIcon("Assembly");!1===goog.isDefAndNotNull(a)&&b.fail("We can not find div to open for item details");goog.testing.events.fireClickEvent(a)}).then().waitForElementAppear("Wait for item details view",
3E3,function(){return neutron.dashboard.tests.actions.dataView.ItemDetails.findExpandPopUp()}).then().waitForElementDisappear('Wait for fully loaded tab "Uses"',1E4,function(){return neutron.dashboard.tests.actions.dataView.ItemDetails.findLoadingTab("tabUses")}).then().waitForBoolBecomeTrue("Wait for Children content",1E4,function(){var a=document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'tabUses')]//div[contains(@class, 'selectable')]//div[contains(@class, 'itemTitle')]",
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!1==goog.isDefAndNotNull(a))return!1;"Part"!=a.innerText&&b.fail('Assembly has other than expected child: "'+a.innerText+'".');return!0}).then();b.justDo(function(){var a=neutron.dashboard.tests.actions.dataView.ItemDetails.findIIcon("Part");!1===goog.isDefAndNotNull(a)&&b.fail("We can not find div to open for item details");goog.testing.events.fireClickEvent(a)}).then().waitForElementAppear("Wait for item details view",
3E3,function(){return neutron.dashboard.tests.actions.dataView.ItemDetails.findExpandPopUp()}).then().waitForElementDisappear('Wait for fully loaded tab "Used In"',1E4,function(){return neutron.dashboard.tests.actions.dataView.ItemDetails.findLoadingTab("tabUsedIn")}).then().waitForBoolBecomeTrue("Wait for Assembly content",1E4,function(){var a=document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'tabUsedIn')]//div[contains(@class, 'selectable')]//div[contains(@class, 'itemTitle')]",
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;if(!1==goog.isDefAndNotNull(a))return!1;"Assembly"!=a.innerText&&b.fail('Part has other than expected parent: "'+a.innerText+'".');return!0}).then();b.complete()};
neutron.dashboard.tests.dataView.SmokeTestCase.prototype.testSourceChanged=function(a){var b=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"master");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(b,"ChangeMe");neutron.dashboard.tests.actions.generals.closeCurrentDocument(b);a=neutron.dashboard.tests.actions.workflows.getLastUsedProject(b);var c=neutron.dashboard.tests.actions.Branches.getMasterBranch(b,a);neutron.dashboard.tests.actions.workflows.createBranchIfNotExists(b,
"SourceChangedBranch",a,c);neutron.dashboard.tests.actions.dataView.projectDetails.updateBranchList(b,a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"SourceChangedBranch");neutron.dashboard.tests.actions.dataView.projectDetails.updateDesign(b,"ChangeMe","We want change to make diff and merge");neutron.dashboard.tests.actions.generals.closeCurrentDocument(b);var d=neutron.dashboard.tests.actions.Branches.getList(b,a).getBranchWithName("SourceChangedBranch"),e=neutron.dashboard.tests.actions.workflows.getDiffOfBranches(b,
a,d,c,"diff");b.justDo(function(){var a=e.fulfil(),a=new neutron.dashboard.tests.actions.DiffChecker(a,"diff",b);a.checkExpectedCount(1);a=a.diffAt(0);a.checkExpectedSourceFileName("ChangeMe");a.checkExpectedNumberOfPiles(1);a.pileAt(0).checkExpectedType(neutron.dashboard.tests.actions.PileType.NEW_VERSION)}).then();neutron.dashboard.tests.actions.workflows.mergeBranches(b,a,e,"my summary","my description",!1);b.complete()};
neutron.dashboard.tests.dataView.SmokeTestCase.prototype.testSourceAdded=function(a){var b=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"master");a=neutron.dashboard.tests.actions.workflows.getLastUsedProject(b);var c=neutron.dashboard.tests.actions.Branches.getMasterBranch(b,a);neutron.dashboard.tests.actions.workflows.createBranchIfNotExists(b,"SourceAddedBranch",a,c);neutron.dashboard.tests.actions.dataView.projectDetails.updateBranchList(b,a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,
"SourceAddedBranch");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(b,"AddMe");neutron.dashboard.tests.actions.generals.closeCurrentDocument(b);var d=neutron.dashboard.tests.actions.Branches.getList(b,a).getBranchWithName("SourceAddedBranch"),e=neutron.dashboard.tests.actions.workflows.getDiffOfBranches(b,a,d,c,"diff");b.justDo(function(){var a=e.fulfil(),a=new neutron.dashboard.tests.actions.DiffChecker(a,"diff",b);a.checkExpectedCount(1);a=a.diffAt(0);a.checkExpectedSourceFileName("AddMe");
a.checkExpectedNumberOfPiles(1);a.pileAt(0).checkExpectedType(neutron.dashboard.tests.actions.PileType.NEW)}).then();neutron.dashboard.tests.actions.workflows.mergeBranches(b,a,e,"my summary","my description",!1);b.complete()};
neutron.dashboard.tests.dataView.SmokeTestCase.prototype.testSimpleDeleteRestore=function(a){var b=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"master");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(b,"restoreMe");neutron.dashboard.tests.actions.generals.closeCurrentDocument(b);a=neutron.dashboard.tests.actions.workflows.getLastUsedProject(b);var c=neutron.dashboard.tests.actions.Branches.getMasterBranch(b,a);neutron.dashboard.tests.actions.workflows.createBranchIfNotExists(b,
"restoreBranch",a,c);var d=neutron.dashboard.tests.actions.Branches.getList(b,a);neutron.dashboard.tests.actions.dataView.projectDetails.updateBranchList(b,a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"master");neutron.dashboard.tests.actions.dataView.projectDetails.deleteItem(b,"restoreMe");neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"restoreBranch");neutron.dashboard.tests.actions.dataView.projectDetails.updateDesign(b,"restoreMe","we want change to make diff and merge");
neutron.dashboard.tests.actions.generals.closeCurrentDocument(b);neutron.dashboard.tests.actions.dataView.projectDetails.switchToBranch(b,"master");var d=d.getBranchWithName("restoreBranch"),e=neutron.dashboard.tests.actions.workflows.getDiffOfBranches(b,a,d,c,"diff#1");b.justDo(function(){var a=e.fulfil(),a=new neutron.dashboard.tests.actions.DiffChecker(a,"diff#1",b);a.checkExpectedCount(1);a=a.diffAt(0);goog.isDefAndNotNull(a)&&(a.checkExpectedSourceFileName("restoreMe"),a.checkExpectedNumberOfPiles(1),
a=a.pileAt(0),goog.isDefAndNotNull(a)&&a.checkExpectedType(neutron.dashboard.tests.actions.PileType.CONFLICT))}).then();neutron.dashboard.tests.actions.workflows.mergeBranches(b,a,e,"my summary","my description",!1);b.complete()};
neutron.dashboard.tests.dataView.SmokeTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testBranchWithAsm,"testBranchWithAsm"),this._createTestCaseTest(this.testSourceChanged,"testSourceChanged"),this._createTestCaseTest(this.testSourceChanged,"testSourceAdded"),this._createTestCaseTest(this.testSimpleDeleteRestore,"testSimpleDeleteRestore")]};neutron.dashboard.tests.SmokeTestSuite=function(){neutron.dashboard.tests.TestSuite.call(this);this._name="SmokeTestSuite";this.addTestCase(new neutron.dashboard.tests.dataView.SmokeTestCase)};goog.inherits(neutron.dashboard.tests.SmokeTestSuite,neutron.dashboard.tests.TestSuite);neutron.dashboard.tests.smokeEntryPoint=new neutron.dashboard.tests.TestSuiteEntryPoint(new neutron.dashboard.tests.SmokeTestSuite);neutron.dashboard.tests.dataView.ItemDetailsTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="ItemDetailsTestCase";this._projectName="ITEM_DETAIL_TEST_PROJECT";this._promoteFileName="promote_t";this._inUseByFileName="inUseBy_t";this._recentProjectName="My Recent Data";this._recentFolderName="DetailInRecentFolder";this._recentDesignName="DetainInRecentDesign"};goog.inherits(neutron.dashboard.tests.dataView.ItemDetailsTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.ItemDetailsTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,this._projectName);neutron.dashboard.tests.actions.dataView.projects.openProject(a,this._projectName);a.complete()};neutron.dashboard.tests.dataView.ItemDetailsTestCase.prototype.tearDown=function(a){a.markComplete()};
neutron.dashboard.tests.dataView.ItemDetailsTestCase.prototype.testInUseBy=function(a){var b=this,c=new neutron.dashboard.tests.Flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(c);neutron.dashboard.tests.actions.generals.createDesignIfNotExists(c,"inUseBy_t");c.waitForElementAppear("Wait for design is shown",1E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b._inUseByFileName)}).then(function(a){goog.testing.events.fireDoubleClickSequence(a)}).waitForElementAppear("Wait for spinner created by opening of the design",
1E4,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(b._inUseByFileName)}).then().waitForElementDisappear("Wait for spinner disappear - (end of open)",75E3,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(b._inUseByFileName)}).then().waitForTimeout("Waiting for the server to realize item is in use",5E3).then(function(){var c=neutron.dashboard.tests.actions.dataView.ItemDetails.findIIcon(b._inUseByFileName);!1===goog.isDefAndNotNull(c)&&a.fail("We can not find div for open item details");
goog.testing.events.fireClickEvent(c)}).waitForElementAppear("Wait for item details view",3E3,function(){return neutron.dashboard.tests.actions.dataView.ItemDetails.findExpandPopUp()}).then().waitForBoolBecomeTrue("Wait for inUseBy content",3E4,function(){return 0<document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'inUse')]/span",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue.innerText.length}).then();neutron.dashboard.tests.actions.generals.closeCurrentDocument(c);
c.complete()};
neutron.dashboard.tests.dataView.ItemDetailsTestCase.prototype.testPromoteVersion=function(a){var b=this,c=new neutron.dashboard.tests.Flow(a);neutron.dashboard.tests.actions.generals.createFileWithVersionsIfNotExists(c,this._promoteFileName,4);neutron.dashboard.tests.actions.generals.closeCurrentDocument(c);var d=-1,e=function(){var a=document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'tabVersions')]//div[contains(@class, 'selectable')]",document.documentElement,null,
XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,b=-1;goog.isDefAndNotNull(a)&&(a=goog.dom.getElementByClass("itemIndex",a).innerText,goog.isDefAndNotNull(a)&&0<a.length&&(b=parseInt(a)));return b};c.waitForElementAppear("Wait for design is shown",1E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b._promoteFileName)}).then(function(){c.info("Getting info button of design:"+b._promoteFileName);var d=neutron.dashboard.tests.actions.dataView.ItemDetails.findIIcon(b._promoteFileName);
!1===goog.isDefAndNotNull(d)&&a.fail("We can not find div for open item details");c.info("Clicking on info button of design: "+b._promoteFileName);goog.testing.events.fireClickEvent(d)}).waitForElementAppear("Wait for item details view",5E3,function(){return neutron.dashboard.tests.actions.dataView.ItemDetails.findExpandPopUp()}).then().waitForElementDisappear('Wait for fully loaded tab "Versions"',1E4,function(){return neutron.dashboard.tests.actions.dataView.ItemDetails.findLoadingTab("tabVersions")}).then().waitForBoolBecomeTrue("Wait for Versions element cnt",
4E3,function(){return 0<neutron.dashboard.tests.actions.dataView.ItemDetails.getVersionItemsCnt()},2).then(function(){d=e();c.info("Version before promote is: "+d)}).waitForBoolBecomeTrue("Wait if version before promote is > 0",1E3,function(){return 0<d}).then().waitForElementAppear("Wait for promote button appeared",5E3,function(){return document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'tabVersions')]//div[contains(@class, 'selectable')]//div[contains(@class, 'itemTools')]/div[contains(@class, 'cmdPromote')]",
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then(function(a){c.info("Clicking on promote version button");goog.testing.events.fireClickEvent(a)}).waitForBoolBecomeTrue("Wait if current version is higher than version before promote",28E3,function(){return e()==d+1}).then().complete()};
neutron.dashboard.tests.dataView.ItemDetailsTestCase.prototype.testDetailInRecents=function(a){var b=this,c=new neutron.dashboard.tests.Flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(c);neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(c,b._recentFolderName);neutron.dashboard.tests.actions.dataView.projectDetails.openFolder(c,b._recentFolderName);neutron.dashboard.tests.actions.generals.createDesignIfNotExists(c,b._recentDesignName);
neutron.dashboard.tests.actions.generals.closeCurrentDocument(c);c.waitForElementAppear("Wait for design is shown",1E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b._recentDesignName)}).then(function(a){goog.testing.events.fireDoubleClickSequence(a)}).waitForElementAppear("Wait for spinner created by opening of the design",1E4,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(b._recentDesignName)}).then().waitForElementDisappear("Wait for spinner disappear - (end of open)",
75E3,function(){return neutron.dashboard.tests.actions.generals.findSpinningBox(b._recentDesignName)}).then().waitForTimeout("Just let everything to settle...",1E3);neutron.dashboard.tests.actions.generals.closeCurrentDocument(c);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(c);neutron.dashboard.tests.actions.dataView.projects.openProject(c,b._recentProjectName);c.waitForElementAppear("Wait for design is shown",1E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(b._recentDesignName)}).then(function(){var c=
neutron.dashboard.tests.actions.dataView.ItemDetails.findIIcon(b._recentDesignName);!1===goog.isDefAndNotNull(c)&&a.fail("We can not find div for open item details");goog.testing.events.fireClickEvent(c)}).waitForElementAppear("Wait for item details view",3E3,function(){return neutron.dashboard.tests.actions.dataView.ItemDetails.findExpandPopUp()}).then().waitForElementAppear("Wait for storedIn content",3E4,function(){return document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'stored')]//div[contains(@class, 'name') and text()='"+
b._recentFolderName+"']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then().justDo(function(){var c=document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'stored')]//div[contains(@class, 'name') and text()='"+b._projectName+"']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,e=document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'stored')]//div[contains(@class, 'name') and text()='master']",
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,f=document.evaluate("//div[contains(@class, 'expandPopup')]//div[contains(@class, 'stored')]//div[contains(@class, 'name') and text()='"+b._recentFolderName+"']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;!1==goog.isDefAndNotNull(c)&&a.fail("StoredIn section does not contain correct project");!1==goog.isDefAndNotNull(f)&&a.fail("StoredIn section does not contain correct project");
neutron.dashboard.invoker.supportsBranching()?!1==goog.isDefAndNotNull(e)&&a.fail("StoredIn section does not contain branch although branching is enabled"):!0==goog.isDefAndNotNull(e)&&a.fail("StoredIn section does contain branch although branching is disabled")}).then();c.complete()};
neutron.dashboard.tests.dataView.ItemDetailsTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testInUseBy,"testInUseBy"),this._createTestCaseTest(this.testPromoteVersion,"testPromoteVersion"),this._createTestCaseTest(this.testDetailInRecents,"testDetailInRecents")]};neutron.dashboard.tests.dataView.SampleFlowTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="SampleFlowTestCase"};goog.inherits(neutron.dashboard.tests.dataView.SampleFlowTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.SampleFlowTestCase.prototype.testSampleFlowTestCase=function(a){var b=function(){setTimeout(function(){var a=document.createElement("div");a.id="SampleFlowTestCaseTestSampleFlowTestCase";document.body.appendChild(a)},100)},c=function(){setTimeout(function(){var a=document.getElementById("SampleFlowTestCaseTestSampleFlowTestCase");document.body.removeChild(a)},100)},d=function(){return document.getElementById("SampleFlowTestCaseTestSampleFlowTestCase")};b();this.flow(a).waitForElementAppear("Testing sample element must appear",
5E3,function(){return d()}).then(function(){c();return!0}).waitForElementDisappear("Testing sample element must disappear",5E3,function(){return d()}).then(function(){b();return!0}).waitForBoolBecomeTrue("Testing sample element must appear (bool test)",5E3,function(){return null!=d()}).then(function(){c();return!0}).waitForBoolBecomeFalse("Testing sample element must disappear (bool test)",5E3,function(){return null==d()}).then().complete()};
neutron.dashboard.tests.dataView.SampleFlowTestCase.prototype.testEmpty=function(a){a.markComplete()};
neutron.dashboard.tests.dataView.SampleFlowTestCase.prototype.testRepeatFlowStep=function(a){var b=this.flow(a),c=0;b.waitForElementAppear("Waiting for body just to be sure there is some body",1E3,function(){return document.body}).then(function(a){!1==goog.isDefAndNotNull(a)&&b.fail("Element body was expected");c++}).waitForBoolBecomeTrue("This should fail at first to repeat then again",1E3,function(){return 2==c},1).then().complete()};
neutron.dashboard.tests.dataView.SampleFlowTestCase.prototype.testWaitForCallback=function(a){var b=function(a){window.setTimeout(function(){a()},1E3)};this.flow(a).waitForCallback("Waiting for callback will be called",function(a){b(a)},3E3).then().complete()};
neutron.dashboard.tests.dataView.SampleFlowTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testSampleFlowTestCase,"testSampleFlowTestCase"),this._createTestCaseTest(this.testEmpty,"testEmpty"),this._createTestCaseTest(this.testRepeatFlowStep,"testRepeatFlowStep"),this._createTestCaseTest(this.testWaitForCallback,"testWaitForCallback")]};neutron.dashboard.tests.actions.dataView.search={};neutron.dashboard.tests.actions.dataView.search.withBackButton=function(a,b){var c=document.querySelector("div.searchBack");!1===goog.isDefAndNotNull(c)?a.fail("withBackButton-Search back button not found",!0):b(c)};neutron.dashboard.tests.actions.dataView.board={};neutron.dashboard.tests.actions.dataView.board._withSwipePanelStyleAttributeValue=function(a,b){var c=document.querySelector("div.swipePanel");!1===goog.isDefAndNotNull(c)?a.fail("Swipe panel not found.",!0):(c=c.getAttribute("style"),b(c))};
neutron.dashboard.tests.actions.dataView.board.isVisibleListOfProjects=function(a){var b=!1;this._withSwipePanelStyleAttributeValue(a,function(a){if(null==a||goog.string.caseInsensitiveContains(a,"translateX(0%)"))b=!0});return b};neutron.dashboard.tests.actions.dataView.board.isVisibleDetailOfProject=function(a){var b=!1;this._withSwipePanelStyleAttributeValue(a,function(a){a&&goog.string.caseInsensitiveContains(a,"translateX(-100%)")&&(b=!0)});return b};
neutron.dashboard.tests.actions.dataView.board.isVisibleSearch=function(a){var b=!1;this._withSwipePanelStyleAttributeValue(a,function(a){a&&goog.string.caseInsensitiveContains(a,"translateX(-200%)")&&(b=!0)});return b};neutron.dashboard.tests.actions.dataView.anywhere={};
neutron.dashboard.tests.actions.dataView.anywhere.showProjects=function(a){neutron.dashboard.tests.actions.dataView.anywhere.showProjectsNoWait(a);var b=function(){return document.querySelector("div.projectsPane.projectsLoading")};a.waitForElementAppear("Waiting for projectsLoading indicator appear. It is OK when it don't appear",1E3,function(){return b()},!0).then().waitForElementDisappear("Waiting for projectsLoading indicator disappear.",12E4,function(){return b()},!0).then().alternatives(function(){if(null!=
b()){a.info("projectsLoading indicator did not disappeared, attempting to click refresh projects.");var c=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.dataView.anywhere.refreshProjects(c);return c}return null}).then()};
neutron.dashboard.tests.actions.dataView.anywhere.showProjectsNoWait=function(a){var b=neutron.dashboard.tests.actions.dataView;a.alternatives(function(){if(!0===b.board.isVisibleSearch(a.testHandler())){var c=new neutron.dashboard.tests.Flow;c.justDo(function(){b.search.withBackButton(a.testHandler(),function(a){a.click()})}).then().waitForBoolBecomeFalse("showProjects-Waiting for search pane disappear",1E4,function(){return b.board.isVisibleSearch(a.testHandler())}).then();return c}return null}).then().alternatives(function(){if(!0==
b.board.isVisibleDetailOfProject(a.testHandler())){var c=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.dataView.projectDetails.leaveProjectDetails(c);return c}return null}).then()};
neutron.dashboard.tests.actions.dataView.anywhere.refreshProjects=function(a){var b=function(){return document.querySelector("div.projectsPane.projectsLoading")};neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);a.waitForElementAppear("Wait for 'Refresh' button of Project list",1E3,function(){return document.querySelector("div .tooltipParent.refresh")}).then(function(a){neutron.dashboard.tests.actions.generals.clickWith(a)}).waitForElementAppear("Refresh project list: Waiting for projectsLoading indicator appear. It is OK when it don't appear",1E3,
function(){return b()},!0).then().waitForElementDisappear("Refresh project list: Waiting for projectsLoading indicator disappear.",12E4,function(){return b()}).then()};
neutron.dashboard.tests.actions.dataView.anywhere.navigateToProjectAndFolder=function(a,b,c){c|=0;var d=neutron.dashboard.tests.actions.dataView;d.anywhere.showProjects(a);d.projects.openProject(a,b);d.projectDetails.switchToProjectDataTab(a);d.projectDetails.goToRootFolderIfNotIn(a);for(b=0;b<c.length;b++)neutron.dashboard.tests.actions.dataView.openFolder(a,c[b])};neutron.dashboard.tests.dataView.ProjectsPinUnpinTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="ProjectsPinUnpinTestCase";this._projectNamesNotToPin=["1_NOT_PIN"];this._projectNamesToPin=["A_PIN","B_PIN"];this._projectNames=this._projectNamesNotToPin.concat(this._projectNamesToPin)};goog.inherits(neutron.dashboard.tests.dataView.ProjectsPinUnpinTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.ProjectsPinUnpinTestCase.prototype.setUp=function(a){var b=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(b);for(a=0;a<this._projectNames.length;a++){var c=this._projectNames[a];neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(b,c);(function(a){b.alternatives(function(){if(neutron.dashboard.tests.actions.dataView.projects.isProjectWithNamePinned(a)){var b=new neutron.dashboard.tests.Flow;neutron.dashboard.tests.actions.dataView.projects.unPinProjectWithName(b,
a);return b}return null}).then()})(c)}b.complete()};
neutron.dashboard.tests.dataView.ProjectsPinUnpinTestCase.prototype.testPinUnpinSimultaneouslyProjects=function(a){var b=this;a=this.flow(a);for(var c=0;c<this._projectNamesToPin.length;c++)neutron.dashboard.tests.actions.dataView.projects.pinProjectWithNameDoNotWaitToEnd(a,this._projectNamesToPin[c]);a.waitForBoolBecomeTrue("Waiting for project A_PIN and B_PIN to be on top in right order",1E4,function(){var a=neutron.dashboard.tests.actions.dataView.projects.getAllProjectsSortedByPosition(),c=neutron.dashboard.tests.actions.dataView.projects.getNameOfProjectFromProjectRow(a[1]),
a=neutron.dashboard.tests.actions.dataView.projects.getNameOfProjectFromProjectRow(a[2]);return c===b._projectNamesToPin[0]&&a===b._projectNamesToPin[1]}).then();for(c=0;c<b._projectNamesToPin.length;c++)neutron.dashboard.tests.actions.dataView.projects.unPinProjectWithNameDoNotWaitToEnd(a,this._projectNamesToPin[c]);a.waitForBoolBecomeTrue("Waiting for project A_PIN and B_PIN not to be on top",15E3,function(){var a=neutron.dashboard.tests.actions.dataView.projects.getAllProjectsSortedByPosition(),
c=neutron.dashboard.tests.actions.dataView.projects.getNameOfProjectFromProjectRow(a[1]),a=neutron.dashboard.tests.actions.dataView.projects.getNameOfProjectFromProjectRow(a[2]);return c!==b._projectNamesToPin[0]&&a!==b._projectNamesToPin[1]}).then();a.complete()};
neutron.dashboard.tests.dataView.ProjectsPinUnpinTestCase.prototype.testPinUnpinProjects=function(a){var b=this;a=this.flow(a);for(var c=0;c<this._projectNamesToPin.length;c++)neutron.dashboard.tests.actions.dataView.projects.pinProjectWithName(a,this._projectNamesToPin[c]);a.waitForBoolBecomeTrue("Waiting for project A_PIN and B_PIN to be on top in right order",1500,function(){var a=neutron.dashboard.tests.actions.dataView.projects.getAllProjectsSortedByPosition(),c=neutron.dashboard.tests.actions.dataView.projects.getNameOfProjectFromProjectRow(a[1]),
a=neutron.dashboard.tests.actions.dataView.projects.getNameOfProjectFromProjectRow(a[2]);return c===b._projectNamesToPin[0]&&a===b._projectNamesToPin[1]}).then();for(c=0;c<b._projectNamesToPin.length;c++)neutron.dashboard.tests.actions.dataView.projects.unPinProjectWithName(a,this._projectNamesToPin[c]);a.complete()};
neutron.dashboard.tests.dataView.ProjectsPinUnpinTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testPinUnpinSimultaneouslyProjects,"testPinUnpinSimultaneouslyProjects"),this._createTestCaseTest(this.testPinUnpinProjects,"testPinUnpinProjects")]};neutron.dashboard.tests.dataView.MultiSelectTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="MultiSelectTestCase"};goog.inherits(neutron.dashboard.tests.dataView.MultiSelectTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.MultiSelectTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,"multiselection_test");neutron.dashboard.tests.actions.dataView.projects.openProject(a,"multiselection_test");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"A");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"B");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,
"C");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"D");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"E");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"F");a.waitForTimeout("Wait for Save finishes",5E4);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);
neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);a.complete()};neutron.dashboard.tests.dataView.MultiSelectTestCase.prototype.getSelectedItems=function(){for(var a=[],b=document.evaluate("//*[contains(@class, 'datalistNode') and contains(@class, 'selected')]",document.documentElement,null,XPathResult.ANY_TYPE,null),c=b.iterateNext();c;)a.push(c),c=b.iterateNext();return a};
neutron.dashboard.tests.dataView.MultiSelectTestCase.prototype.getAllItems=function(a){goog.array.clear(a);for(var b=document.evaluate("//div[contains(@class, 'projectDetailPane')]//*[contains(@class, 'datalistNode')]",document.documentElement,null,XPathResult.ANY_TYPE,null),c=b.iterateNext();c;)a.push(c),c=b.iterateNext()};
neutron.dashboard.tests.dataView.MultiSelectTestCase.prototype.getDesignsPane=function(){return document.evaluate("//div[contains(@class, 'designsPane')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};
neutron.dashboard.tests.dataView.MultiSelectTestCase.prototype.testMultiselection=function(a){var b=this,c=[],d=new neutron.dashboard.tests.Flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(d);d.waitForBoolBecomeTrue("Waiting for data all six items in the project is available",5E3,function(){b.getAllItems(c);a.info("Number of items: "+c.length);return 6==c.length}).then(function(){var e=b.getDesignsPane();!1===goog.isDefAndNotNull(e)&&d.fail("testMultiselection - no designsPane to click with.");
neutron.dashboard.tests.actions.generals.clickWith(e,!1,!1);b.getAllItems(c);0>=c.length&&a.fail("No items were selected.");goog.array.forEach(c,function(a){neutron.dashboard.tests.actions.generals.clickWith(a,!0,!1,350)})}).waitForBoolBecomeTrue("Waiting for all designs are selected",1E4,function(){return b.getSelectedItems().length===c.length}).then(function(){neutron.dashboard.tests.actions.generals.clickWith(c[0],!1,!1,350)}).waitForBoolBecomeTrue("Waiting for first designs should be selected",
5E3,function(){return 1===b.getSelectedItems().length}).then(function(){neutron.dashboard.tests.actions.generals.clickWith(c[c.length-1],!1,!0,350)}).waitForBoolBecomeTrue("Waiting for all designs are selected",5E3,function(){return b.getSelectedItems().length===c.length}).then(function(){neutron.dashboard.tests.actions.generals.clickWith(c[2],!0,!1,350);neutron.dashboard.tests.actions.generals.clickWith(c[3],!0,!1,350)}).waitForBoolBecomeTrue("Waiting for four designs are selected",1E4,function(){return 4===
b.getSelectedItems().length}).then().complete()};
neutron.dashboard.tests.dataView.MultiSelectTestCase.prototype.testMultiselectionOpen=function(a){var b=this,c=function(){for(var a=[],b=document.evaluate("//div[contains(@class, 'datalistNode') and contains(@class, 'selected')]//div[contains(@class, 'spinner')]",document.documentElement,null,XPathResult.ANY_TYPE,null),c=b.iterateNext();c;)a.push(c),c=b.iterateNext();return a},d=[],e=new neutron.dashboard.tests.Flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(e);e.waitForBoolBecomeTrue("Waiting for data all six items in the project is available",
5E3,function(){b.getAllItems(d);return 6===d.length}).then(function(){var a=b.getDesignsPane();!1===goog.isDefAndNotNull(a)&&e.fail("testMultiselectionOpen - no designsPane to click with.");neutron.dashboard.tests.actions.generals.clickWith(a,!1,!1)}).waitForBoolBecomeTrue("Waiting for all items are deselected",5E3,function(){return 0===b.getSelectedItems().length}).then(function(){neutron.dashboard.tests.actions.generals.clickWith(d[0],!1,!1,350)}).waitForBoolBecomeTrue("Waiting for first design is selected",
5E3,function(){return 1===b.getSelectedItems().length}).then(function(){neutron.dashboard.tests.actions.generals.clickWith(d[3],!1,!0,350)}).waitForBoolBecomeTrue("Waiting for all 4 designs are selected",5E3,function(){return 4===b.getSelectedItems().length}).then(function(){var c=b.getSelectedItems();0>=c.length?a.fail("Items got de-selected."):goog.testing.events.fireContextMenuEvent(c[0])}).waitForElementAppear("Waiting for menu with open item appears",5E3,function(){return document.evaluate("//div[contains(@class, 'contextMenu')]//div[contains(@class, 'item') and (text()='Open')]",
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then(function(a){goog.testing.events.fireClickEvent(a)}).waitForBoolBecomeTrue("Waiting for spinners(4) appears",5E3,function(){return 4===c().length}).then().waitForBoolBecomeTrue("Waiting for all spinners dissapears",16E4,function(){return 0===c().length}).then(function(){var b=JSON.parse(window.neutronJavaScriptObject.executeQuery("getTabTexts",""));if(!0==goog.isDefAndNotNull(b)&&!0==goog.isDefAndNotNull(b.tabs)){var c;
(c=(c=(c=(c=goog.object.containsValue(b.tabs,"A v1"))&&goog.object.containsValue(b.tabs,"B v1"))&&goog.object.containsValue(b.tabs,"C v1"))&&goog.object.containsValue(b.tabs,"D v1"))||a.fail("Not all document we wish to open are opened.")}});neutron.dashboard.tests.actions.generals.closeCurrentDocument(e);neutron.dashboard.tests.actions.generals.closeCurrentDocument(e);neutron.dashboard.tests.actions.generals.closeCurrentDocument(e);neutron.dashboard.tests.actions.generals.closeCurrentDocument(e);
e.complete()};neutron.dashboard.tests.dataView.MultiSelectTestCase.prototype.goAwayFromThisProject=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,"AFProj");neutron.dashboard.tests.actions.dataView.projects.openProject(a,"AFProj");a.complete()};
neutron.dashboard.tests.dataView.MultiSelectTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testMultiselection,"testMultiselection"),this._createTestCaseTest(this.testMultiselectionOpen,"testMultiselectionOpen"),this._createTestCaseTest(this.goAwayFromThisProject,"goAwayFromThisProject")]};neutron.dashboard.tests.dataView.CloudBrowserDataPrepareTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="CloudBrowserDataPrepareTestCase";this._projectName="CloudBrowserTestsProject"};goog.inherits(neutron.dashboard.tests.dataView.CloudBrowserDataPrepareTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.CloudBrowserDataPrepareTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,this._projectName);neutron.dashboard.tests.actions.dataView.projects.openProject(a,this._projectName);a.complete()};
neutron.dashboard.tests.dataView.CloudBrowserDataPrepareTestCase.prototype.testCreateDataForCloudBrowserClearAllFilesInFolder=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(a,"ClearAllFilesInFolder");neutron.dashboard.tests.actions.dataView.projectDetails.openFolder(a,"ClearAllFilesInFolder");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"A");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"B");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,
"C");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"D");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"E");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"F");neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);
neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);a.complete()};neutron.dashboard.tests.dataView.CloudBrowserDataPrepareTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testCreateDataForCloudBrowserClearAllFilesInFolder,"testCreateDataForCloudBrowserClearAllFilesInFolder")]};neutron.dashboard.tests.actions.PromiseFactory={};neutron.dashboard.tests.actions.PromiseFactory.createPromiseWithHandler=function(a){return{fulfil:a}};neutron.dashboard.tests.actions.PromiseFactory.createExtendableObjectPromise=function(){var a={},b=!1;return{fulfil:function(){!1===b&&console.error("Promise cannot be fulfiled. Data are not yet downloaded. Did you ask for fulfil on right place?");return a},appendData:function(b){b&&goog.object.extend(a,b)},markDone:function(){b=!0}}};
neutron.dashboard.tests.actions.PromiseFactory.createPrimitivePromise=function(){var a=null,b=!1;return{fulfil:function(){!1===b&&console.error("Promise cannot be fulfiled. Data are not yet downloaded. Did you ask for fulfil on right place?");return a},setValue:function(c){b=!0;a=c}}};neutron.dashboard.tests.actions.workflows={};neutron.dashboard.tests.actions.PileType={NEW:0,NEW_VERSION:1,DELETE:2,RENAME:3,CONFLICT:4,MOVE:5,IN_USE:6,DELETE_ON_TARGET:7,MOVE_IN:8,MOVE_OUT:9};
neutron.dashboard.tests.actions.workflows.getLastUsedProject=function(a){var b=neutron.dashboard.tests.actions.PromiseFactory.createPromiseWithHandler(function(){return!1===b.hasOwnProperty("project")?(a.fail("Project promise is not fulifiled. Are you using promise on right place?"),null):b.project});a.justDo(function(){b.project=neutron.dashboard.invoker.getLastUsedProject()}).then();return b};
neutron.dashboard.tests.actions.workflows.getMilestoneContent=function(a,b,c,d){var e=neutron.dashboard.tests.actions.PromiseFactory.createExtendableObjectPromise(),f=c||null;a.waitForCallback("Calling GetFolderContent for milestone",function(c){var h=b.fulfil();!1===goog.isDefAndNotNull(h.id)&&a.fail("Container do not contains id attribute to use");var k="";f&&(k=f.fulfil().id);neutron.dashboard.invoker.getMilestoneContentEx(h.id,k,d,!1,function(b,d){!1===goog.isDefAndNotNull(d)||d===neutron.dashboard.constants.Status.ERROR?
a.fail("Get content for milestone has ERROR status"):(a.info("workflows.getMilestoneContent status: "+d),e.appendData(b),"done"===d&&(!1===goog.isDefAndNotNull(b)||0===b.length?a.fail("Get content for master branch tip point does not contain data"):(e.markDone(),c())))})},1E8).then();return e};
neutron.dashboard.tests.actions.workflows.getMilestoneChanges=function(a,b,c){var d=neutron.dashboard.tests.actions.PromiseFactory.createExtendableObjectPromise();a.waitForCallback("Getting milestone changes: "+c,function(e){var f=b.fulfil();neutron.dashboard.invoker.getMilestoneChanges(f.id,function(b,f){!1===goog.isDefAndNotNull(f)||f===neutron.dashboard.constants.Status.ERROR?a.fail("Get changes for "+c+" has ERROR status"):(d.appendData(b),"done"===f&&(d.markDone(),e()))})},2E4).then();return d};
neutron.dashboard.tests.actions.workflows.createProject=function(a,b){var c=neutron.dashboard.tests.actions.PromiseFactory.createExtendableObjectPromise();a.waitForCallback("Creating of project "+b,function(a){neutron.dashboard.invoker.createProject(b,function(b,f){f===neutron.dashboard.constants.Status.DONE&&(c.appendData(b),c.markDone(),a())})},2E4).then().waitForTimeout("Give the project some time to become live",15E3).then();return c};
neutron.dashboard.tests.actions.workflows.deactivateProject=function(a,b){a.waitForCallback("Deactivating of project",function(a){var d=b.fulfil();d?neutron.dashboard.invoker.deactivateProject(d.id,function(b,d){d===neutron.dashboard.constants.Status.DONE&&a()}):a()},2E4).then()};
neutron.dashboard.tests.actions.workflows.deactivateProjectByID=function(a,b){a.waitForCallback("Deactivating of project",function(a){neutron.dashboard.invoker.deactivateProject(b,function(b,e){e===neutron.dashboard.constants.Status.DONE&&a()})},2E4).then()};
neutron.dashboard.tests.actions.workflows.masterToMasterFileMove=function(a,b,c){var d=neutron.dashboard.tests.actions.PromiseFactory.createExtendableObjectPromise();a.waitForCallback("moveFile",function(e){var f=c.fulfil().rootFolder.id,g=b.fulfil(),h=g.name;neutron.dashboard.invoker.moveItems([g],f,!0,function(b,c){!1===goog.isDefAndNotNull(c)||c===neutron.dashboard.constants.Status.ERROR?a.testHandler().fail("masterToMasterFileMove : moveItems "+h+" has ERROR status"):c!==neutron.dashboard.constants.Status.PROGRESS&&
c===neutron.dashboard.constants.Status.DONE&&(d.appendData({fileMoved:!0}),d.markDone(),e())})},2E4).then();return d};neutron.dashboard.tests.actions.Projects=function(a){this._flow=a;this._projects=null};neutron.dashboard.tests.actions.Projects.prototype._setProjects=function(a){this._projects=a};
neutron.dashboard.tests.actions.Projects.prototype.getProjectWithName=function(a){var b=this;return neutron.dashboard.tests.actions.PromiseFactory.createPromiseWithHandler(function(){return null==b._projects?(b._flow.fail("Projects are not yet downloaded. Are you using projects list in proper place?"),null):goog.array.find(b._projects.projects.items,function(b){return b.name===a})})};
neutron.dashboard.tests.actions.Projects.getList=function(a){var b=new neutron.dashboard.tests.actions.Projects(a);a.waitForCallback("Calling projects list",function(c){var d=0,e=function(){++d;neutron.dashboard.invoker.getProjectsList(!1,!1,function(f,g){a.info("Calling projects list callback status: "+g);!1===goog.isDefAndNotNull(g)||g===neutron.dashboard.constants.Status.ERROR?2>d?(a.info("Calling projects list has ERROR status, calling again."),window.setTimeout(function(){e()},1E3)):a.fail("Calling projects list still has ERROR status. Failing."):
g===neutron.dashboard.constants.Status.DONE&&(b._setProjects(f),c())})};e()},13E4).then();return b};neutron.dashboard.tests.dataView.ProjectsListTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="ProjectsListTestCase";this._createProjectTestName="testCreateProject";this._createProjectPromise=null;this._createProjectWithFolderTestName="testCreateProjectWithFolder";this._createProjectWithFolderPromise=null};goog.inherits(neutron.dashboard.tests.dataView.ProjectsListTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.tearDown=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjectsNoWait(a);goog.isDefAndNotNull(this._createProjectPromise)&&neutron.dashboard.tests.actions.workflows.deactivateProject(a,this._createProjectPromise);goog.isDefAndNotNull(this._createProjectWithFolderPromise)&&neutron.dashboard.tests.actions.workflows.deactivateProject(a,this._createProjectWithFolderPromise);a.complete()};
neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.testShowProjects=function(a){var b=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(b);b.waitForBoolBecomeTrue("Wating for project selector will appear",1E3,function(){return neutron.dashboard.tests.actions.dataView.board.isVisibleListOfProjects(a)});b.complete()};
neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.testRenameProject=function(a){var b=function(a){a=goog.dom.getElementByClass("projectName",a);return!0===goog.isDefAndNotNull(a)?a.innerText:""},c=function(){return document.evaluate("//div[contains(@class, 'contextMenu')]//div[contains(@class, 'item') and text()='Rename']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue},d=function(){return document.evaluate("//div[contains(@class, 'projectListItem')]//input[contains(@class, 'inplaceedit') ]",
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue},e=function(){return document.evaluate("//div[contains(@class, 'projectListItem')]//div[contains(@class, 'projectName')]//div[contains(@class, 'spinnerSmall')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue},f=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(f);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(f,"RENAME_PROJECT_TEST");
neutron.dashboard.tests.actions.Projects.getList(f).getProjectWithName("RENAME_PROJECT_TEST");neutron.dashboard.tests.actions.dataView.projects.openProject(f,"RENAME_PROJECT_TEST");neutron.dashboard.tests.actions.dataView.anywhere.showProjects(f);f.waitForElementAppear("Get project testing document (1)",15E3,function(){return neutron.dashboard.tests.actions.dataView.projects.getProjectRow("RENAME_PROJECT_TEST")}).then(function(a){goog.testing.events.fireContextMenuSequence(a)}).waitForElementAppear("Get Context Menu",
1E3,function(){return c()}).then(function(a){goog.testing.events.fireClickEvent(a)}).waitForElementAppear("Get Inplace Edit",1E3,function(){return d()}).then(function(a){a.value="RENAME_PROJECT_TEST_TESTSUFFIX";goog.testing.events.fireKeySequence(a,13)}).waitForElementAppear("Get Progress Spinner",1E3,function(){return e()}).then().waitForElementDisappear("Wait for Progress Spinner disappear",2E4,function(){return e()}).then(function(){var c=neutron.dashboard.tests.actions.dataView.projects.getProjectRow("RENAME_PROJECT_TEST_TESTSUFFIX");
!1===goog.isDefAndNotNull(c)&&a.fail("Rename failed");"RENAME_PROJECT_TEST_TESTSUFFIX"!=b(c)&&a.fail("Rename failed")});f.waitForTimeout("Rename project back to original name",3500).then().waitForElementAppear("Get project testing document (2)",15E3,function(){return neutron.dashboard.tests.actions.dataView.projects.getProjectRow("RENAME_PROJECT_TEST_TESTSUFFIX")}).then(function(a){goog.testing.events.fireContextMenuSequence(a)}).waitForElementAppear("Get Context Menu",1E3,function(){return c()}).then(function(a){goog.testing.events.fireClickEvent(a)}).waitForElementAppear("Get Inplace Edit",
1E3,function(){return d()}).then(function(a){a.value="RENAME_PROJECT_TEST";goog.testing.events.fireKeySequence(a,13)}).waitForElementAppear("Get Progress Spinner",1E3,function(){return e()}).then().waitForElementDisappear("Wait for Progress Spinner disappear",2E4,function(){return e()}).then(function(){var c=neutron.dashboard.tests.actions.dataView.projects.getProjectRow("RENAME_PROJECT_TEST");!1===goog.isDefAndNotNull(c)&&a.fail("Rename failed");"RENAME_PROJECT_TEST"!=b(c)&&a.fail("Rename failed")}).complete()};
neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.testDeactivateProject=function(a){var b=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(b);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(b,"TEST_DEACTIVATE");b.waitForElementAppear("Get project testing document",15E3,function(){return neutron.dashboard.tests.actions.dataView.projects.getProjectRow("TEST_DEACTIVATE")}).then(function(a){goog.testing.events.fireContextMenuSequence(a)}).waitForElementAppear("Get Context Menu",
2E3,function(){return document.evaluate("//div[contains(@class, 'contextMenu')]//div[contains(@class, 'item') and text()='Archive']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}).then(function(a){goog.testing.events.fireClickEvent(a)}).waitForElementAppear("Get Progress Spinner",3E3,function(){return document.querySelector(".listItem .spinner")}).then().waitForElementDisappear("Wait for Progress Spinner disappear",12E3,function(){return document.querySelector(".listItem .spinner")}).then().waitForTimeout("Timeout for UI refresh",
2E3).then(function(){var b=neutron.dashboard.tests.actions.dataView.projects.getProjectRow("TEST_DEACTIVATE");!0===goog.isDefAndNotNull(b)&&a.fail("Deactivate failed")}).complete()};
neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.testLeaveProject=function(a){var b=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(b);b.waitForElementAppear("Get project testing document",15E3,function(){return neutron.dashboard.tests.actions.dataView.projects.getProjectRow("TEST_LEAVE_PROJECT")}).then(function(){var b;b=document.evaluate('//div[contains(@class, "projectName") and text()="TEST_LEAVE_PROJECT"]//ancestor::div[contains(@class, "projectListItem")]//span[text() = "Leave"]//ancestor::div[@class = "itemGlyph"]',
document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;!1==goog.isDefAndNotNull(b)?a.fail("No glyphs found."):neutron.dashboard.tests.actions.generals.clickWith(b,!1,!1,350)}).waitForElementAppear("Get Progress Spinner",3E3,function(){return document.querySelector(".listItem .spinner")}).then().waitForElementDisappear("Wait for Progress Spinner disappear",6E3,function(){return document.querySelector(".listItem .spinner")}).then().waitForTimeout("Timeout for UI refresh",
2E3).then(function(){var b=neutron.dashboard.tests.actions.dataView.projects.getProjectRow("TEST_LEAVE_PROJECT");!0===goog.isDefAndNotNull(b)&&a.fail("Leave failed")}).complete()};neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.testOpenMyRecentData=function(a){a.info("Recent Data are disabled.");a.markComplete()};
neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.testCreateProject=function(a){var b=this._createProjectTestName;a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProject(a,b,!1);neutron.dashboard.tests.actions.dataView.projects.openProject(a,b);this._createProjectPromise=neutron.dashboard.tests.actions.workflows.getLastUsedProject(a);a.complete()};
neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.testCreateProjectWithFolder=function(a){var b=this._createProjectWithFolderTestName;a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProject(a,b,!1);neutron.dashboard.tests.actions.dataView.projects.openProject(a,b);this._createProjectWithFolderPromise=neutron.dashboard.tests.actions.workflows.getLastUsedProject(a);neutron.dashboard.tests.actions.dataView.projectDetails.createFolder(a,
"F");a.complete()};neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype.testCreateProjectIfNotExistsWithExistingProject=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,"testProject1417700967821");neutron.dashboard.tests.actions.dataView.projects.openProject(a,"testProject1417700967821");a.complete()};
neutron.dashboard.tests.dataView.ProjectsListTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testShowProjects,"testShowProjects"),this._createTestCaseTest(this.testOpenMyRecentData,"testOpenMyRecentData"),this._createTestCaseTest(this.testCreateProject,"testCreateProject"),this._createTestCaseTest(this.testRenameProject,"testRenameProject"),this._createTestCaseTest(this.testDeactivateProject,"testDeactivateProject"),this._createTestCaseTest(this.testLeaveProject,
"testLeaveProject"),this._createTestCaseTest(this.testCreateProjectIfNotExistsWithExistingProject,"testCreateProjectIfNotExistsWithExistingProject")]};neutron.dashboard.tests.dataView.TestingProjectTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="TestingProjectTestCase"};goog.inherits(neutron.dashboard.tests.dataView.TestingProjectTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.TestingProjectTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,"commonProject_test");neutron.dashboard.tests.actions.dataView.projects.openProject(a,"commonProject_test");a.complete()};
neutron.dashboard.tests.dataView.TestingProjectTestCase.prototype.testSaveDesign=function(a){var b="NDesign"+Date.now();a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(a);neutron.dashboard.tests.actions.generals.createDesign(a,b);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);a.complete()};
neutron.dashboard.tests.dataView.TestingProjectTestCase.prototype.testCreateDesignIfNotExistsForNotExists=function(a){var b="NDesign"+Date.now();a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(a);neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,b);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);a.complete()};
neutron.dashboard.tests.dataView.TestingProjectTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testSaveDesign,"testSaveDesign")]};neutron.dashboard.tests.dataView.BreadCrumbBarTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="BreadCrumbBarTestCase"};goog.inherits(neutron.dashboard.tests.dataView.BreadCrumbBarTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.BreadCrumbBarTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,this._name);neutron.dashboard.tests.actions.dataView.projects.openProject(a,this._name);neutron.dashboard.tests.actions.dataView.projectDetails.goToRootFolderIfNotIn(a);neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(a,"Level 1");
neutron.dashboard.tests.actions.dataView.projectDetails.openFolder(a,"Level 1");neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(a,"Level 2");neutron.dashboard.tests.actions.dataView.projectDetails.openFolder(a,"Level 2");neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(a,"Level 3");neutron.dashboard.tests.actions.dataView.projectDetails.openFolder(a,"Level 3");neutron.dashboard.tests.actions.dataView.projectDetails.goToRootFolderIfNotIn(a);
a.complete()};
neutron.dashboard.tests.dataView.BreadCrumbBarTestCase.prototype.testBreadCrumbBar=function(a){var b=function(a){return neutron.dashboard.tests.actions.dataView.projectDetails.getFolder(a)},c=function(a){return document.evaluate("//div[contains(@class, 'breadcrumbsBar')]//div[contains(@class, 'content')]//div[contains(@class, 'folder') and text()='"+a+"']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};this.flow(a).waitForElementAppear("Waiting for 'Level 1' folder",1E4,
function(){return b("Level 1")}).then(function(a){neutron.dashboard.tests.actions.generals.doubleClick(a);return!0}).waitForElementDisappear("Waiting for disappearing 'Level 1' folder",1E4,function(){return b("Level 1")}).then().waitForElementAppear("Waiting for 'Level 2' folder",1E4,function(){return b("Level 2")}).then().waitForElementAppear("Checking 'Level 1' in breadcrumbsBar",1E3,function(){return c("Level 1")}).then(function(){var c=b("Level 2");if(null==c)return a.fail("No 'Level 2' folder to click on."),
!1;neutron.dashboard.tests.actions.generals.doubleClick(c);return!0}).waitForElementDisappear("Waiting for disappearing 'Level 2' folder",1E4,function(){return b("Level 2")}).then().waitForElementAppear("Waiting for 'Level 3' folder",1E4,function(){return b("Level 3")}).then().waitForElementAppear("Checking 'Level 2' in breadcrumbsBar",1E3,function(){return c("Level 2")}).then(function(){var b=c("Level 1");if(null==b)return a.fail("Breadcrumbbar 'Level 1' was not found"),!1;b.click();return!0}).waitForElementAppear("Waiting for 'Level 2' folder",
1E4,function(){return b("Level 2")}).then().waitForElementDisappear("Checking 'Level 2' disappears in breadcrumbsBar",1E3,function(){return c("Level 2")}).then().justDo(function(){var b=document.evaluate("//div[contains(@class, 'breadcrumbsBar')]//div[contains(@class, 'branch')]//div[contains(@class, 'label') and text()='master']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;neutron.dashboard.invoker.supportsBranching()?!1==goog.isDefAndNotNull(b)&&a.fail("Breadcrumbbar does not contain branch although branching is enabled"):
!0==goog.isDefAndNotNull(b)&&a.fail("Breadcrumbbar does contain branch although branching is disabled")}).then().complete()};neutron.dashboard.tests.dataView.BreadCrumbBarTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testBreadCrumbBar,"testBreadCrumbBar")]};neutron.dashboard.tests.dataView.ProjectDetailsTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="ProjectDetailsTestCase"};goog.inherits(neutron.dashboard.tests.dataView.ProjectDetailsTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,"ProjectDetailsTest");neutron.dashboard.tests.actions.dataView.projects.openProject(a,"ProjectDetailsTest");a.complete()};
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testRecoveryButton=function(a){this.flow(a).justDo(function(){var b=document.evaluate("//div[contains(@id, 'projectDetailData')]//div[contains(@class, 'recover')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;goog.isDefAndNotNull(b)&&"none"!=b.style.display&&a.fail("Recovery Button visible in project with only one branch.")}).then().complete()};
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testInvitePeopleIntoProject=function(a){(new neutron.dashboard.tests.WaitForElement(function(){return document.evaluate('//span[text()="People"]',document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue})).appeared(function(b){b.click();(new neutron.dashboard.tests.WaitForElement(function(){return document.evaluate("//input[@placeholder='Enter email addresses']",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,
null).singleNodeValue})).appeared(function(b){var d="testing.a360+"+Date.now()+"@gmail.com";b.value=d;b=document.evaluate("//div[contains(@class, 'invitebtn')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;!1==goog.isDefAndNotNull(b)&&a.fail("Input button is missing",!0);b.click();var e=new neutron.dashboard.tests.WaitForElement(function(){return-1!=document.body.innerText.indexOf(d)?!0:null});e.appeared(function(){var b=document.evaluate('//div[contains(@class, "primaryEmail") and text()="'+
d+'"]//ancestor::div[contains(@class, "peopleListItem")]//span[contains(@class, "glyphText") and text()="Remove"]',document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;!1==goog.isDefAndNotNull(b)?a.fail("No new invitation appeared",!0):(b.parentNode.click(),e.disappeared(function(){a.markComplete()},function(){a.fail("Remove user failed",!0)},1E4))},function(){a.fail("No new invitation appeared",!0)},3E4)},function(){a.fail("Input e-mail address filed is missing",
!0)},1E3)},function(){a.fail("Project items did not appear",!0)},1E3)};neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testSwitchBetweenDataAndPeople=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectPeopleTab(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(a);a.complete()};
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testCreateFolder=function(a){var b="Folder"+Date.now();a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(a);neutron.dashboard.tests.actions.dataView.projectDetails.createFolder(a,b);a.complete()};
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testEmptyDocMessages=function(a){var b=new neutron.dashboard.tests.Flow(a),c="testProject"+Date.now(),d="testFile"+Date.now();neutron.dashboard.tests.actions.dataView.anywhere.showProjects(b);neutron.dashboard.tests.actions.dataView.projects.createProject(b,c);neutron.dashboard.tests.actions.dataView.projects.openProject(b,c);b.justDo(function(){var b=neutron.dashboard.tests.actions.dataView.projectDetails.isEmptyDocSavedMessageVisible();
if(!1==b)return a.fail("Saved designs message should have been visible now"),!1;var c=document.evaluate("//div[contains(@class, 'zeroDocCloseBtn')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;!1==goog.isDefAndNotNull(c)&&a.fail("Close button is missing",!0);c.click();b=neutron.dashboard.tests.actions.dataView.projectDetails.isEmptyDocImportMessageVisible();if(!0==b)return a.fail("Import message should have not been visible now"),!1;b=neutron.dashboard.tests.actions.dataView.projectDetails.isEmptyDocSavedMessageVisible();
if(!1==b)return a.fail("Saved designs message should have been visible now"),!1;neutron.dashboard.tests.actions.generals.createNewEmptyFileTextScript();neutron.dashboard.tests.actions.generals.saveDesignTextScript(d);setTimeout(function(){b=neutron.dashboard.tests.actions.dataView.projectDetails.isEmptyDocImportMessageVisible();if(!0==b)return a.fail("Import message should have not been visible now"),!1;b=neutron.dashboard.tests.actions.dataView.projectDetails.isEmptyDocSavedMessageVisible();if(!0==
b)return a.fail("Saved designs message should have not been visible now"),!1},500)}).then().waitForElementAppear("Waiting for spinner which is sign of save in progress",6E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.findFusionFileSpinner(d)}).then().waitForElementDisappear("Waiting for spinner disappear which is sign of save is done",18E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.findFusionFileSpinner(d)}).then(function(){if(null==neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(d))return a.fail("We can not find newly saved file"),
!1}).complete()};
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testSaveNonDirty=function(a){var b=new neutron.dashboard.tests.Flow(a),c="TabHolder4Jenkins_"+Date.now();neutron.dashboard.tests.actions.dataView.projectDetails.goToRootFolderIfNotIn(b);neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(b,"NonDirtyDocs");neutron.dashboard.tests.actions.dataView.projectDetails.openFolder(b,"NonDirtyDocs");b.justDo(function(){neutron.dashboard.tests.actions.generals.createNewEmptyFile();neutron.dashboard.tests.actions.generals.saveDesign(c)}).then().waitForElementAppear("Waiting for spinner which is sign of save in progress",
6E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.findFusionFileSpinner(c)}).then().waitForElementDisappear("Waiting for spinner disappear which is sign of save is done",18E4,function(){return neutron.dashboard.tests.actions.dataView.projectDetails.findFusionFileSpinner(c)}).then(function(){if(null==neutron.dashboard.tests.actions.dataView.projectDetails.getDesign(c))return a.fail("We can not find box for newly saved file"),!1}).complete()};
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testCreateFoldersWithSameName=function(a){var b="A_TEST;A_TEST ( 1 );A_TEST ( 2 );A_TEST ( 3 );A_TEST ( 4 );A_TEST ( 1 ) ( 1 )".split(";");a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.goToRootFolderIfNotIn(a);neutron.dashboard.tests.actions.dataView.projectDetails.deleteItemIfExists(a,"createFoldersWithSameName");neutron.dashboard.tests.actions.dataView.projectDetails.createFolder(a,"createFoldersWithSameName");
neutron.dashboard.tests.actions.dataView.projectDetails.openFolder(a,"createFoldersWithSameName");for(var c=0;5>c;c++)neutron.dashboard.tests.actions.dataView.projectDetails.createFolder(a,"A_TEST");neutron.dashboard.tests.actions.dataView.projectDetails.createFolder(a,"A_TEST ( 1 )");for(c=0;c<b.length;c++)neutron.dashboard.tests.actions.dataView.projectDetails.deleteItem(a,b[c]);neutron.dashboard.tests.actions.dataView.projectDetails.goToRootFolderIfNotIn(a);neutron.dashboard.tests.actions.dataView.projectDetails.deleteItem(a,
"createFoldersWithSameName");a.complete()};neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testCreateFolderIfNotExists=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.goToRootFolderIfNotIn(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(a);neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(a,"CreateFolderIfNotExists");a.complete()};
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype.testNotificationBar=function(a){var b=function(){return document.evaluate("//div[contains(@class, 'notificationMessageToolbar')]//div[contains(@class, 'msgToolbarButton') and (text()='testtext')]",document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue};a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.switchToProjectDataTab(a);a.justDo(function(){var a=neutron.dashboard.Application.instance._dataViewBoard._projectDetailPane._projectDetailData;
goog.isDefAndNotNull(a)&&a.showNotificationMessage("testtext","",null,!0)}).then().waitForElementAppear("Waiting for notification bar",1E4,function(){return b()}).then().waitForElementDisappear("Waiting for notification bar auto hide",1E4,function(){return b()}).then().complete()};
neutron.dashboard.tests.dataView.ProjectDetailsTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testRecoveryButton,"testRecoveryButton"),this._createTestCaseTest(this.testInvitePeopleIntoProject,"testInvitePeopleIntoProject"),this._createTestCaseTest(this.testSwitchBetweenDataAndPeople,"testSwitchBetweenDataAndPeople"),this._createTestCaseTest(this.testCreateFolder,"testCreateFolder"),this._createTestCaseTest(this.testSaveNonDirty,"testSaveNonDirty"),this._createTestCaseTest(this.testCreateFoldersWithSameName,
"testCreateFoldersWithSameName"),this._createTestCaseTest(this.testNotificationBar,"testNotificationBar")]};neutron.dashboard.tests.dataView.DataManipulationTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="DataManipulationTestCase";this._flName="d2Ren";this._fldrName="f2Ren";this._projectName="DATA_MANIPULATION";this._renameSuffix="_SUFF";this._containerFolderName="renamingTests"};goog.inherits(neutron.dashboard.tests.dataView.DataManipulationTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.DataManipulationTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,this._projectName);neutron.dashboard.tests.actions.dataView.projects.openProject(a,this._projectName);neutron.dashboard.tests.actions.dataView.projectDetails.deleteItemIfExists(a,this._containerFolderName);neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(a,
this._containerFolderName);neutron.dashboard.tests.actions.dataView.projectDetails.openFolder(a,this._containerFolderName);a.complete()};neutron.dashboard.tests.dataView.DataManipulationTestCase.prototype.tearDown=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.goToRootFolderIfNotIn(a);neutron.dashboard.tests.actions.dataView.projectDetails.deleteItem(a,this._containerFolderName);a.complete()};
neutron.dashboard.tests.dataView.DataManipulationTestCase.prototype.testRenameDesign=function(a){var b=this._flName+"_"+Date.now();a=this.flow(a);neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,this._flName);neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);a.waitForTimeout("Waiting for some time because when we close documents server needs some time to make it unused.",3E3).then();neutron.dashboard.tests.actions.dataView.projectDetails.renameItem(a,this._flName,
b);neutron.dashboard.tests.actions.dataView.projectDetails.deleteItem(a,b);a.complete()};
neutron.dashboard.tests.dataView.DataManipulationTestCase.prototype.testRenameFolder=function(a){var b=this._fldrName+"_"+this._renameSuffix;a=this.flow(a);neutron.dashboard.tests.actions.dataView.projectDetails.createFolderIfNotExists(a,this._fldrName);neutron.dashboard.tests.actions.dataView.projectDetails.renameItem(a,this._fldrName,b);neutron.dashboard.tests.actions.dataView.projectDetails.deleteItem(a,b);a.complete()};
neutron.dashboard.tests.dataView.DataManipulationTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testRenameDesign,"testRenameDesign"),this._createTestCaseTest(this.testRenameFolder,"testRenameFolder")]};neutron.dashboard.tests.dataView.SearchTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="SearchTestCase"};goog.inherits(neutron.dashboard.tests.dataView.SearchTestCase,neutron.dashboard.tests.FlowTestCase);
neutron.dashboard.tests.dataView.SearchTestCase.prototype.setUp=function(a){a=this.flow(a);neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);neutron.dashboard.tests.actions.dataView.projects.createProjectIfNotExists(a,"searchProject_test");neutron.dashboard.tests.actions.dataView.projects.openProject(a,"searchProject_test");neutron.dashboard.tests.actions.generals.createDesignIfNotExists(a,"existingDesignForSearchTest");neutron.dashboard.tests.actions.generals.closeCurrentDocument(a);
neutron.dashboard.tests.actions.dataView.anywhere.showProjects(a);a.complete()};
neutron.dashboard.tests.dataView.SearchTestCase.prototype.testSearchExistingItem=function(a){var b=this,c=this.flow(a);neutron.dashboard.tests.actions.dataView.projects.openSearch(c);c.waitForElementAppear("Waiting for the project selector button",1E3,function(){return b.generals.xpathSingleNode("//div[contains(@class, 'searchPane')]//div[contains(@class, 'contextBtn')]")}).then(function(a){a.click()}).waitForElementAppear("Waiting for project selector menu with project name",1E3,function(){return b.generals.xpathSingleNode("//div[contains(@id, 'dashboardSelectMenu')]//div[text()='searchProject_test']")}).then(function(a){a.click()}).waitForElementAppear("Waiting for search editbox",
1E3,function(){return b.generals.xpathSingleNode("//div[contains(@class, 'searchbox')]/input[@type='search']")}).then(function(b){b.value="existing";b=document.querySelector("div.searchbtn");null==b?a.fail("Button for submiting of search not found"):b.click()}).waitForElementAppear("Waiting for the search result count",2E3,function(){var c=b.generals.xpathSingleNode("//div[contains(@class, 'searchPane')]//div[contains(@class, 'searchContextTitle')]");if(null==c||""==c.textContent)return null;a.info("Search count reports:"+
c.textContent);return"1"!=c.textContent[0]?null:c}).then().waitForElementAppear("Waiting for the search result elements",2E3,function(){return b.generals.xpathSingleNode("//div[contains(@class, 'searchPane')]//div[contains(@class, 'descriptionText') and text()='existingDesignForSearchTest']")}).then(function(b){null!=b?a.markComplete():a.fail("Search results not found")}).complete()};neutron.dashboard.tests.dataView.SearchTestCase.prototype.testSearchNonExistingItem=function(a){};
neutron.dashboard.tests.dataView.SearchTestCase.prototype._getAllTestFunctions=function(){return[]};neutron.dashboard.tests.dataView.SetupTeardownRepeatTestCase=function(){neutron.dashboard.tests.FlowTestCase.call(this);this._name="SetupTeardownRepeatTestCase";this.repeatSetupAndTeardownForEveryTest();this._teardownCount=this._setupCount=0};goog.inherits(neutron.dashboard.tests.dataView.SetupTeardownRepeatTestCase,neutron.dashboard.tests.FlowTestCase);neutron.dashboard.tests.dataView.SetupTeardownRepeatTestCase.prototype.setUp=function(a){this._setupCount++;a.markComplete()};
neutron.dashboard.tests.dataView.SetupTeardownRepeatTestCase.prototype.tearDown=function(a){a.markComplete();this._teardownCount++};neutron.dashboard.tests.dataView.SetupTeardownRepeatTestCase.prototype.testSetupTeardwonIsCalledFirstTime=function(a){1!==this._setupCount&&a.fail("Setup count should be 1 which means setup was runned once, got:"+this._setupCount);a.markComplete()};
neutron.dashboard.tests.dataView.SetupTeardownRepeatTestCase.prototype.testSetupTeardwonIsCalledSecondTime=function(a){2!==this._setupCount&&a.fail("Setup count should be 2 which means setup was runned twice, got:"+this._setupCount);a.markComplete()};
neutron.dashboard.tests.dataView.SetupTeardownRepeatTestCase.prototype._getAllTestFunctions=function(){return[this._createTestCaseTest(this.testSetupTeardwonIsCalledFirstTime,"testSetupTeardwonIsCalledFirstTime"),this._createTestCaseTest(this.testSetupTeardwonIsCalledSecondTime,"testSetupTeardwonIsCalledSecondTime")]};neutron.dashboard.tests.DataViewTestSuite=function(){neutron.dashboard.tests.TestSuite.call(this);this._name="DataViewTestSuite";this.addTestCase(new neutron.dashboard.tests.dataView.ProjectsListTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.ProjectDetailsTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.DataManipulationTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.TestingProjectTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.SearchTestCase);
this.addTestCase(new neutron.dashboard.tests.dataView.ItemDetailsTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.BreadCrumbBarTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.MultiSelectTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.SampleFlowTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.ProjectsPinUnpinTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.CloudBrowserDataPrepareTestCase);this.addTestCase(new neutron.dashboard.tests.dataView.SetupTeardownRepeatTestCase)};
goog.inherits(neutron.dashboard.tests.DataViewTestSuite,neutron.dashboard.tests.TestSuite);neutron.dashboard.utils.MimeTypeCache=function(){this._map={}};neutron.dashboard.utils.MimeTypeCache._get=function(){if(goog.isDefAndNotNull(neutron.dashboard.utils.MimeTypeCache._singleton))return neutron.dashboard.utils.MimeTypeCache._singleton;neutron.dashboard.utils.MimeTypeCache._singleton=new neutron.dashboard.utils.MimeTypeCache;return neutron.dashboard.utils.MimeTypeCache._singleton};
neutron.dashboard.utils.MimeTypeCache.prototype._displayNameFor=function(a){if(goog.isDefAndNotNull(this._map[a]))return this._map[a];a=a.toLowerCase();if("application/vnd.autodesk.fusion360"==a||"application/vnd.autodesk.cam360"==a)return"Fusion Design";if("application/vnd.autodesk.fusiondoc"==a)return"Drawings";if("application/vnd.autodesk.fusiondrawingtemplate"==a)return"Drawing Template";if("application/doc"==a)return"Document";if("application/pdf"==a)return"PDF";if("application/image"==a)return"Image";
var b=a.indexOf("application/");return-1!=b?(a=a.substring(b+12,a.length),a.charAt(0).toUpperCase()+a.slice(1)):"File"};neutron.dashboard.utils.MimeTypeCache.displayNameFor=function(a){return this._get()._displayNameFor(a)};neutron.dashboard.utils.MimeTypeCache.prototype._registerDisplayNameForMimeType=function(a,b){goog.isDefAndNotNull(this._map[a])||console.log("Registruji "+a+"="+b);this._map[a]=b};
neutron.dashboard.utils.MimeTypeCache.registerDisplayNameForMimeType=function(a,b){this._get()._registerDisplayNameForMimeType(a,b)};neutron.dashboard.DataViewApplication=function(){neutron.dashboard.BaseApplication.call(this);this._VIEWPORT_RESIZE_DELAY=10;var a=this;this._pictureCache=this._vsm=this._dataViewBoard=null;this._appSizeState=neutron.dashboard.constants.ApplicationSize.expanded;this._resizeThrottle=new goog.async.Throttle(function(){goog.async.nextTick(a._onViewportResize,a)},a._VIEWPORT_RESIZE_DELAY,this);this._disableResizeEvent=!1;this._options=null};goog.inherits(neutron.dashboard.DataViewApplication,neutron.dashboard.BaseApplication);
neutron.dashboard.DataViewApplication.prototype.init=function(){neutron.dashboard.DataViewApplication.superClass_.init.call(this);this._options=new neutron.dashboard.utils.Options("DataView");this._vsm=new goog.dom.ViewportSizeMonitor;this._pictureCache=new neutron.dashboard.data.PictureCache;this._createBoard();!0==goog.isDefAndNotNull(this._dataViewBoard)&&this._dataViewBoard.init();this._connectEvents();this._onViewportResize();var a=this;window.neutronJavaScriptHandler={handle:function(b,c){var d=
function(){var b=null;if(!0==goog.isDefAndNotNull(a._dataViewBoard)){var c=a._dataViewBoard.projectDetailPane();goog.isDefAndNotNull(c)&&goog.isDefAndNotNull(c.projectDetailData())&&(b=c.projectDetailData().designsPane())}return b};if(!0==goog.string.startsWith(b,neutron.dashboard.utils.Aggregator.Prefix))neutron.dashboard.Application.instance.dispatchEvent(new neutron.dashboard.events.AggregatorEvent(b,c));else{if("QueryLink"==b)return d=a._userLinks();if("disableResizeEvent"==b)a._disableResizeEvent=
!0,d=JSON.parse(c),goog.isDefAndNotNull(d)&&"maximize"==d.state&&setTimeout(function(){a._resizeThrottle.fire()},a._VIEWPORT_RESIZE_DELAY);else if("enableResizeEvent"==b)a._disableResizeEvent=!1,d=JSON.parse(c),goog.isDefAndNotNull(d)&&"maximize"==d.state&&a._resizeThrottle.fire();else{if("QueryGetCurrentFolderPath"==b)return d=a._respondQueryCurrentFolderPath();if("OpenRelatedItem"==b){d=JSON.parse(c);if(!0==goog.isDefAndNotNull(d.lineageUrn)){var e=d.lineageUrn;neutron.dashboard.panes.Designs.prototype.openDocumentInFusion(e,
d.mimeType)}return d=neutron.dashboard.utils.FormatUtils.respondQueryFormatter("1")}if("refreshDashboard"==b){var f=d();goog.isDefAndNotNull(f)&&f.checkRefresh(c);return d=neutron.dashboard.utils.FormatUtils.respondQueryFormatter("")}if("waitCursor"==b)d=goog.json.parse(c),!0==goog.isDefAndNotNull(d.show)&&(!0==d.show?goog.dom.classes.add(document.body,"waitCursor"):goog.dom.classes.remove(document.body,"waitCursor"));else{if("updateLayout"==b)return a._resizeThrottle.fire(),"{}";if("areWeLoaded"==
b)return d=neutron.dashboard.utils.FormatUtils.respondQueryFormatter("true");if("connectivityChanged"==b){var d=goog.json.parse(c),f=!1,g=neutron.dashboard.invoker.online();goog.isDefAndNotNull(d.status)&&"disconnected"==d.status?!0===g&&(f=!0,goog.isDefAndNotNull(neutron.dashboard.invoker)&&neutron.dashboard.invoker.destroy(),neutron.dashboard.invoker=new neutron.dashboard.OfflineInvoker):goog.isDefAndNotNull(d.status)&&"connected"==d.status&&!1===g&&(f=!0,goog.isDefAndNotNull(neutron.dashboard.invoker)&&
neutron.dashboard.invoker.destroy(),neutron.dashboard.invoker=new neutron.dashboard.Invoker);f&&(neutron.dashboard.invoker.init(a),neutron.dashboard.Application.instance.pictureCache().reset(),0==a._dataViewBoard._swipeControl.visibleIdx()?(a._dataViewBoard.projectsPane().showProjectsLoading(!0),setTimeout(function(){neutron.dashboard.invoker.getProjectsList(!1)},250)):a._dataViewBoard.projectDetailPane()&&(a._dataViewBoard.projectDetailPane().refreshDesignsPaneCurrentFolder(),a._dataViewBoard.projectDetailPane().refreshBranchRecoverBtnVisibility()),
a._dataViewBoard._update());return d=neutron.dashboard.utils.FormatUtils.respondQueryFormatter("true")}if("refreshProjectsAfterTranfer"==b)if(0==a._dataViewBoard._swipeControl.visibleIdx())a._dataViewBoard.projectsPane().showProjectsLoading(!0),setTimeout(function(){neutron.dashboard.invoker.getProjectsList(!1)},250);else{var f=!1,g=goog.json.parse(c),h=null,d=neutron.dashboard.invoker.getLastUsedProject();goog.isDefAndNotNull(d)?h=d.id:f=!0;for(d=0;!f&&d<g.length;d++)if(g[d]===h){f=!0;break}!0===
f&&(neutron.dashboard.invoker.setLastUsedProject(null),a._dataViewBoard._swipeControl.swipeTo(0),a._dataViewBoard.projectsPane().showProjectsLoading(!0),setTimeout(function(){neutron.dashboard.invoker.getProjectsList(!1)},250))}else if("localCacheScanned"==b||"localCacheFileRemoved"==b||"localCacheFileAdded"==b)f=d(),goog.isDefAndNotNull(f)&&(f.refreshLocalCache(),"localCacheFileAdded"==b&&f.showECMSpinner(c,!1));else if("downloadEvent"==b){if(f=d(),goog.isDefAndNotNull(f)&&""!==c&&(d=goog.json.parse(c),
goog.isDefAndNotNull(d)))if("downloadResumed"==d.state&&goog.isDefAndNotNull(d.downloadQueue)){g=d.downloadQueue;for(d=0;d<g.length;d++)f.showECMSpinner(g[d],!0)}else"ePaused"==d.state||"eLowDisk"==d.state||"eCanceled"==d.state?f.hideAllECMSpinners():"eFailed"==d.state&&goog.isDefAndNotNull(d.lineageUrn)&&f.showECMSpinner(d.lineageUrn,!1)}else if("downloadPreprocessorComplete"==b&&(f=d(),goog.isDefAndNotNull(f)&&""!==c&&(d=goog.json.parse(c),goog.isDefAndNotNull(d)))){var g=d.urn,h=!1,k=d.independentList,
l=d.orderedList;if(goog.isDefAndNotNull(k))for(d=0;d<k.length;d++)e=k[d],e=e.lineageUrn,goog.isDefAndNotNull(e)&&(e==g&&(h=!0),f.showECMSpinner(e,!0));if(goog.isDefAndNotNull(l))for(d=0;d<l.length;d++)e=l[d],e=e.lineageUrn,goog.isDefAndNotNull(e)&&(e==g&&(h=!0),f.showECMSpinner(e,!0));h||f.showECMSpinner(g,!1)}}}neutron.dashboard.Application.instance.dispatchEvent(new neutron.dashboard.events.NeutronEvent(b,c))}}};window.neutronJavaScriptObject.executeQuery("DashboardReady","");window.neutronJavaScriptObject.executeQuery("dataViewIsready",
"{}");console.__lp("dataViewIsready - Now");this._dataViewBoard.showProjectsLoading();neutron.dashboard.invoker.getProjectsList(!1)};neutron.dashboard.DataViewApplication.prototype._createBoard=function(){this._dataViewBoard=new neutron.dashboard.boards.DataView};
neutron.dashboard.DataViewApplication.prototype._respondQueryCurrentFolderPath=function(){var a=this,b=[],c=this._dataViewBoard.projectDetailPane();!1===goog.isDefAndNotNull(c)&&JSON.stringify(b);c=c.currentFolderPath();goog.isDefAndNotNull(c)&&goog.array.forEach(c,function(c){"RECENT"===c?(c=a.getProjectForRecentUpload(),goog.isDefAndNotNull(c)&&goog.isDefAndNotNull(c.rootFolder)&&goog.array.insert(b,c.rootFolder.id)):goog.array.insert(b,c.id)});return JSON.stringify(b)};
neutron.dashboard.DataViewApplication.prototype.getProjectForRecentUpload=function(){var a="";neutron.dashboard.invoker.getProjectsList(!0,!1,function(b){goog.isDefAndNotNull(b.projects)&&goog.isDefAndNotNull(b.projects.items)&&1<b.projects.items.length&&(a=b.projects.items[1])});return a};neutron.dashboard.DataViewApplication.prototype.pictureCache=function(){return this._pictureCache};neutron.dashboard.DataViewApplication.prototype.options=function(){return this._options};
neutron.dashboard.DataViewApplication.prototype.appSizeState=function(){return this._appSizeState};neutron.dashboard.DataViewApplication.prototype.setAppSizeState=function(a){this._appSizeState=a};
neutron.dashboard.DataViewApplication.prototype.executeNeutronCmd=function(a,b){!1==goog.isDefAndNotNull(window.neutronJavaScriptObject)||!1==goog.isDefAndNotNull(window.neutronJavaScriptObject.executeCommand)?alert("Neutron ExecuteCommand should only be used in embedded mode"):window.neutronJavaScriptObject.executeCommand(a,b)};
neutron.dashboard.DataViewApplication.prototype._userLinks=function(){var a=neutron.dashboard.invoker.getLastUsedProject(),b="https://myhub.autodesk360.com";!0==goog.isDefAndNotNull(a)&&(b=a.qontextServer+"/portal/profile");return b};
neutron.dashboard.DataViewApplication.prototype.punchOut=function(a){var b="https://accounts.autodesk.com";neutron.dashboard.utils.FormatUtils.useStaging(a)&&(b="https://accounts-staging.autodesk.com");a=b+"/oAuth/OAuthRedirect?oauth_redirect_url="+a;var b=window.neutronJavaScriptObject.executeQuery("getOauthSignature",JSON.stringify({url:a,requestType:"GET",encoded:!1})),c=a.indexOf("?");a={url:a.substr(0,c+1)+b};window.neutronJavaScriptObject.executeQuery("openWebBrowser",JSON.stringify(a));neutron.dashboard.utils.Report({Action:"InvokePunchOut"})};
neutron.dashboard.DataViewApplication.prototype.getHeight=function(){return this._vsm.getSize().height};neutron.dashboard.DataViewApplication.prototype.getWidth=function(){return this._vsm.getSize().width};neutron.dashboard.DataViewApplication.prototype._connectEvents=function(){var a=this;goog.events.listen(this._vsm,goog.events.EventType.RESIZE,function(){a._onViewportResize()})};
neutron.dashboard.DataViewApplication.prototype._onViewportResize=function(){if(!0!=this._disableResizeEvent){var a=this._vsm.getSize();!1!=goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(this._dataViewBoard)&&this._dataViewBoard.dispatchEvent(new neutron.dashboard.events.Update(document.body,0,0,a.width,a.height))}};neutron.dashboard.DataViewApplication.prototype.showAlert=function(a,b){!0==goog.isDefAndNotNull(this._dataViewBoard)&&this._dataViewBoard.showAlert(a,b)};
neutron.dashboard.DataViewApplication.prototype.showQuestion=function(a,b,c){!0==goog.isDefAndNotNull(this._dataViewBoard)&&this._dataViewBoard.showQuestion(a,b,c)};
function DataViewApplicationStart(){console.__time=(new Date).getTime();console.__lp=function(a){(new Date).getTime()};console.__lp("Start");console.log("DataViewApplicationStart()");console.log("START - BaseApplicationStart();");BaseApplicationStart();console.log("END - BaseApplicationStart();");console.log("START - window.neutron.dashboard.Application().instance = new neutron.dashboard.DataViewApplication()");window.neutron.dashboard.Application.instance=new neutron.dashboard.DataViewApplication;
console.log("END - window.neutron.dashboard.Application().instance = new neutron.dashboard.DataViewApplication()");console.log("START - window.neutron.dashboard.Application().instance.init()");window.neutron.dashboard.Application.instance.init();console.log("END - window.neutron.dashboard.Application().instance.init()");neutron.dashboard.tests.dataViewOnline=new neutron.dashboard.tests.TestSuiteEntryPoint(new neutron.dashboard.tests.DataViewTestSuite);neutron.dashboard.tests.dataViewSmoke=new neutron.dashboard.tests.TestSuiteEntryPoint(new neutron.dashboard.tests.SmokeTestSuite)}
goog.exportSymbol("DataViewApplicationStart",DataViewApplicationStart);neutron.dashboard.DataViewOfflineApplication=function(){neutron.dashboard.DataViewApplication.call(this)};goog.inherits(neutron.dashboard.DataViewOfflineApplication,neutron.dashboard.DataViewApplication);neutron.dashboard.DataViewOfflineApplication.prototype.init=function(){neutron.dashboard.DataViewOfflineApplication.superClass_.init.call(this)};neutron.dashboard.DataViewOfflineApplication.prototype.isInOfflineMode=function(){return!0};
neutron.dashboard.DataViewOfflineApplication.prototype._createBoard=function(){this._dataViewBoard=new neutron.dashboard.boards.DataViewOffline};
function DataViewOfflineApplicationStart(){console.__time=(new Date).getTime();console.__lp=function(a){console.log(" ");var b=(new Date).getTime()-console.__time,c=Math.floor(b/1E3);console.log("%c### PERF: "+a+" : "+c+"s "+(b-1E3*c)+"ms","color: blue; font-size: large");console.log(" ")};console.__lp("Start");BaseApplicationStart();neutron.dashboard.Application.instance=new neutron.dashboard.DataViewOfflineApplication;neutron.dashboard.Application.instance.init();window.console.log("DashboardReady");
!0==goog.isDefAndNotNull(window.neutronJavaScriptObject)&&window.neutronJavaScriptObject.executeQuery("DashboardReady","")}goog.exportSymbol("DataViewOfflineApplicationStart",DataViewOfflineApplicationStart);neutron.client={};
neutron.client.BlockApplication=function(){var a=$("body");a.addClass("client_block");a.append($('<div id="client_block_message"><h1>Looks like you need to update!</h1><p>Many updates have happened while you were away. You are running a version of Fusion 360 that is out-of-date, and need to take a significant update to catch up to the latest version. Update now or do it later.</p><p id="client_button_paragraph" align="right"><button id="client_install_button" class="client_draconian_install"  href="http://www.appstreaming.autodesk.com/install/app/73e72ada57b7480280f7a6f4a289729f/">Update Now</button><a id="client_close_button" href="dashblock://close">Quit Fusion 360</a></p></div><a id="client_close_control" alt="Exit Application" href="dashblock://close">&nbsp;</a>'));$("#client_install_button").click(function(a){window.open(a.target.attributes.href.value)});
$("#client_close_button").click(function(a){window.location.href=a.target.attributes.href.value})};neutron.client.BlockApplication.prototype={};neutron.client.BlockOS=function(){var a=$("body");a.addClass("os_block");a.append($('<div id="os_block_message"><h1>Looks like you need to update!</h1><p>Many updates have happened while you were away. Fusion 360 no longer supports the operating system you are running. We recommend that you update your OS first and come back to get Fusion 360 up and running.</p><p>See our <a href="http://autode.sk/whatsnew">What\'s New</a> for how to update.</p><p id="os_button_paragraph" align="right"><a id="os_close_button" href="dashblock://close">Quit Fusion 360</a></p></div><a id="os_close_control" alt="Exit Application" href="dashblock://close">&nbsp;</a>'));
$("#os_close_button").click(function(a){window.location.href=a.target.attributes.href.value})};neutron.client.BlockOS.prototype={};neutron.simplesharing={};neutron.simplesharing.constants={};neutron.simplesharing.SimpleSharingInvoker=function(){this._aggregator=new neutron.dashboard.utils.Aggregator};neutron.simplesharing.constants.WorkflowsConstants={GET_PUBLICLINK_STATUS:"getPublicLinkStatus",CREATE_PUBLICLINK:"createPublicLink",EXPIRE_PUBLICLINK:"expirePublicLink",UPDATE_PUBLICLINK:"updatePublicLink"};neutron.simplesharing.SimpleSharingInvoker.prototype.init=function(a){this._aggregator.init(a)};
neutron.simplesharing.SimpleSharingInvoker.prototype.destroy=function(){this._aggregator.destroy()};neutron.simplesharing.SimpleSharingInvoker.prototype.getPublicLinkStatus=function(a,b){this._aggregator.executeQuery(neutron.simplesharing.constants.WorkflowsConstants.GET_PUBLICLINK_STATUS,{url:a},b)};
neutron.simplesharing.SimpleSharingInvoker.prototype.createPublicLink=function(a,b,c){this._aggregator.executeQuery(neutron.simplesharing.constants.WorkflowsConstants.CREATE_PUBLICLINK,{url:a,payload:c},b)};neutron.simplesharing.SimpleSharingInvoker.prototype.updatePublicLink=function(a,b,c){this._aggregator.executeQuery(neutron.simplesharing.constants.WorkflowsConstants.UPDATE_PUBLICLINK,{url:a,payload:c},b)};
neutron.simplesharing.SimpleSharingInvoker.prototype.expirePublicLink=function(a,b){this._aggregator.executeQuery(neutron.simplesharing.constants.WorkflowsConstants.EXPIRE_PUBLICLINK,{url:a},b)};neutron.dashboard.notifier=null;neutron.simplesharing.SharePublicLinkApplication=function(){goog.events.EventTarget.call(this);neutron.simplesharing.invoker=new neutron.simplesharing.SimpleSharingInvoker;neutron.dashboard.notifier=new neutron.dashboard.Notifier;this._shareUrn=this._shareEncodedUrn=this._shareAPIPath=this._inputTimer=this._shareObject=null;this._hasDerivedChildren="false";new neutron.dashboard.utils.Localization};goog.inherits(neutron.simplesharing.SharePublicLinkApplication,goog.events.EventTarget);
neutron.simplesharing.SharePublicLinkApplication.prototype.init=function(){var a=this;a._initString();!0==goog.isDefAndNotNull(neutron.simplesharing.invoker)&&neutron.simplesharing.invoker.init(this);if(null==window.neutronJavaScriptObject||null==window.neutronJavaScriptObject.executeQuery)return null;window.neutronJavaScriptHandler={handle:function(b,d){!0==goog.string.startsWith(b,neutron.dashboard.utils.Aggregator.Prefix)&&a.dispatchEvent(new neutron.dashboard.events.AggregatorEvent(b,d))}};var b=
$.parseJSON(window.neutronJavaScriptObject.executeQuery("getInformation",""));a._shareAPIPath=b.shareAPIURL;a._shareEncodedUrn=b.shareEncodedUrn;a._shareUrn=b.shareUrn;a._hasDerivedChildren=b.hasDerivedChildren;"true"===a._hasDerivedChildren?(b=$(".derivedWarning"),1==b.length&&(b[0].style.display="block",b.removeClass("derivedWarningOn").addClass("derivedWarningOn"))):(b=$(".derivedWarning"),1==b.length&&(b[0].style.display="none",b.removeClass("derivedWarningOn")));a.getPublicLinkStatus()};
neutron.simplesharing.SharePublicLinkApplication.prototype._initString=function(a){a=$(".popupHeaderLabel");1==a.length&&a.text(_LCLZ("Share Public Link"));a=$(".publicSharingLabel");1==a.length&&a.text(_LCLZ("Share the latest version with anyone using this public link:"));a=$(".analyticsButtonLabel");1==a.length&&a.text(_LCLZ("Copy"));a=$(".settingsHeading");1==a.length&&a.text(_LCLZ("Privacy Settings"));a=$(".publicSharingDownloadLabel");1==a.length&&a.text(_LCLZ("Allow item to be downloaded"));
a=$(".publicSharingPwdLabel");1==a.length&&a.text(_LCLZ("Require a password to access the public link"));a=$(".labelDerivedWarning");1==a.length&&a.text(_LCLZ("This design has references to one or more other designs. Sharing this design will also share the referenced designs. To avoid sharing referenced designs, perform a 'Break Link' on those references before sharing."))};neutron.simplesharing.SharePublicLinkApplication.prototype._requestFinishCallback=function(a){console.log("neutron.simplesharing.SharePublicLinkApplication.prototype._requestFinishCallback")};
neutron.simplesharing.SharePublicLinkApplication.prototype.close=function(){null!=this._inputTimer&&(clearTimeout(this._inputTimer),this._inputTimer=null);this._shareObject&&"true"==this._shareObject.passwordProtected?this.setPassword(this,function(a){window.neutronJavaScriptObject.executeQuery("closeSelf","{}")}):window.neutronJavaScriptObject.executeQuery("closeSelf","{}")};
neutron.simplesharing.SharePublicLinkApplication.prototype.getPublicLinkStatus=function(){var a=this,b=a._shareAPIPath,b=b+"?versionUrn="+a._shareEncodedUrn;neutron.simplesharing.invoker.getPublicLinkStatus(b,function(b,d){console.log(d+" - "+b);d!=neutron.dashboard.constants.Status.PROGRESS&&!(goog.isDefAndNotNull(d)&&d!=neutron.dashboard.constants.Status.DONE)&&(a._shareObject=null==b||null==b.success||null==b.success.body?null:b.success.body,a._initDialog(b))})};
neutron.simplesharing.SharePublicLinkApplication.prototype.createPublicLink=function(){var a=this;a._startPublicLinkBtnAnimation(!0);neutron.simplesharing.invoker.createPublicLink(a._shareAPIPath,function(b,c){if(c!=neutron.dashboard.constants.Status.PROGRESS&&!(goog.isDefAndNotNull(c)&&c!=neutron.dashboard.constants.Status.DONE)&&!(null==b||null==b.success||null==b.success.body))a._shareObject=b.success.body,a._initDialog(b)},{versionUrn:a._shareUrn})};
neutron.simplesharing.SharePublicLinkApplication.prototype.expirePublicLink=function(){var a=this;a._startPublicLinkBtnAnimation(!1);var b=a._shareAPIPath,b=b+"/"+a._shareObject.sharePermalinkId;neutron.simplesharing.invoker.expirePublicLink(b,function(b,d){if(d!=neutron.dashboard.constants.Status.PROGRESS&&!(goog.isDefAndNotNull(d)&&d!=neutron.dashboard.constants.Status.DONE)&&!(null==b||null==b.success||null==b.success.body))a._shareObject=null,a._initDialog(null)})};
neutron.simplesharing.SharePublicLinkApplication.prototype.enableDownload=function(a){null!=this._shareObject&&(this._shareObject.downloadEnabled=a?"true":"false",this._startDownloadBtnAnimation(a),this.updatePublicLink(null))};
neutron.simplesharing.SharePublicLinkApplication.prototype.enablePassword=function(a){null!=this._shareObject&&(this._shareObject.password="",a?(this._shareObject.passwordProtected="true",this._initDialog({success:{body:this._shareObject}})):(null!=this._inputTimer&&(clearTimeout(this._inputTimer),this._inputTimer=null),this._shareObject.passwordProtected="false",this.updatePublicLink(null)),this._startPwdProtectBtnAnimation(a))};
neutron.simplesharing.SharePublicLinkApplication.prototype.setPassword=function(a,b){var c=$("#ss_Password");1==c.length&&(a._shareObject.password=c[0].value);a.updatePublicLink(b)};
neutron.simplesharing.SharePublicLinkApplication.prototype.updatePublicLink=function(a){var b=this,c=b._shareAPIPath,c=c+"/"+b._shareObject.sharePermalinkId;neutron.simplesharing.invoker.updatePublicLink(c,function(c,e){e!=neutron.dashboard.constants.Status.PROGRESS&&(goog.isDefAndNotNull(e)&&e!=neutron.dashboard.constants.Status.DONE?a&&a(!1):null==c||null==c.success||null==c.success.body?a&&a(!1):(b._shareObject=c.success.body,b._initDialog(c),a&&a(!0)))},b._shareObject)};
neutron.simplesharing.SharePublicLinkApplication.prototype._startPublicLinkBtnAnimation=function(a){var b=$(".ss_PublicShare");1==b.length&&(a?b.removeClass("toggleSwitchOff").addClass("toggleSwitchOn"):b.removeClass("toggleSwitchOn").addClass("toggleSwitchOff"))};neutron.simplesharing.SharePublicLinkApplication.prototype._startDownloadBtnAnimation=function(a){var b=$(".ss_DownloadEnable");1==b.length&&(a?b.removeClass("toggleSwitchOff").addClass("toggleSwitchOn"):b.removeClass("toggleSwitchOn").addClass("toggleSwitchOff"))};
neutron.simplesharing.SharePublicLinkApplication.prototype._startPwdProtectBtnAnimation=function(a){var b=$(".ss_PasswordProtection");1==b.length&&(a?b.removeClass("toggleSwitchOff").addClass("toggleSwitchOn"):b.removeClass("toggleSwitchOn").addClass("toggleSwitchOff"))};
neutron.simplesharing.SharePublicLinkApplication.prototype._initDialog=function(a){var b=this;if(null==a||null==a.success||null==a.success.body){var c=$(".ss_PublicShare");1==c.length&&c.removeClass("toggleSwitchOn").addClass("toggleSwitchOff");c=$(".publicShareLink");1==c.length&&(c[0].style.display="none");c=$("#ss_PublicShareLink");1==c.length&&(c[0].value="");c=$(".ss_DownloadEnable");1==c.length&&c.removeClass("toggleSwitchOn").addClass("toggleSwitchOff");var d=$(".ss_PasswordProtection"),e=
$("#ss_PasswordDiv"),f=$("#ss_Password");1==d.length&&d.removeClass("toggleSwitchOn").addClass("toggleSwitchOff");1==e.length&&(e[0].style.display="none");1==f.length&&(f[0].value="");var g=240;a=236;c=$(".derivedWarning");1==c.length&&c.hasClass("derivedWarningOn")&&(g+=49,a+=49);var h=$(".popupBorder");1==h.length&&h.css("height",a.toString()+"px")}else g=297,h=$(".popupBorder"),c=$(".ss_PublicShare"),1==c.length&&c.removeClass("toggleSwitchOff").addClass("toggleSwitchOn"),c=$(".publicShareLink"),
1==c.length&&(c[0].style.display="block"),c=$("#ss_PublicShareLink"),1==c.length&&(c[0].value=a.success.body.accessUrl),c=$(".ss_DownloadEnable"),"true"==a.success.body.downloadEnabled?1==c.length&&c.removeClass("toggleSwitchOff").addClass("toggleSwitchOn"):1==c.length&&c.removeClass("toggleSwitchOn").addClass("toggleSwitchOff"),d=$(".ss_PasswordProtection"),e=$("#ss_PasswordDiv"),f=$("#ss_Password"),c=$(".derivedWarning"),"true"==a.success.body.passwordProtected?(1==d.length&&d.removeClass("toggleSwitchOff").addClass("toggleSwitchOn"),
1==e.length&&(e[0].style.display="block"),1==f.length&&(f[0].value=a.success.body.password),$("#ss_Password").bind("input",function(){null!=b._inputTimer&&clearTimeout(b._inputTimer);b._inputTimer=setTimeout(function(){b.setPassword(b,null)},5E3)}),a=324,1==c.length&&c.hasClass("derivedWarningOn")&&(a+=49),1==h.length&&(a=a.toString()+"px",h.css("height",a)),g+=31):(1==d.length&&d.removeClass("toggleSwitchOn").addClass("toggleSwitchOff"),1==e.length&&(e[0].style.display="none"),1==f.length&&(f[0].value=
""),a=293,1==c.length&&c.hasClass("derivedWarningOn")&&(a+=49),1==h.length&&(a=a.toString()+"px",h.css("height",a))),h=$("#ss_PublicShareOptions"),1==h.length&&(h[0].style.display="block"),1==c.length&&c.hasClass("derivedWarningOn")&&(g+=49);window.neutronJavaScriptObject&&window.neutronJavaScriptObject.executeQuery&&window.neutronJavaScriptObject.executeQuery("changeSize",JSON.stringify({width:550,height:g}))};
neutron.simplesharing.SharePublicLinkApplication.prototype.copyLink=function(){if(window.neutronJavaScriptObject&&window.neutronJavaScriptObject.executeQuery){var a=$("#ss_PublicShareLink");1==a.length&&(a.select(),window.neutronJavaScriptObject.executeQuery("copy",JSON.stringify({text:a[0].value})))}};
function SimpleSharingApplicationStart(){console.log("SimpleSharingApplicationStart()");window.neutron.simplesharing.Application=neutron.simplesharing.Application||{};console.log("window.neutron.simplesharing.Application = neutron.simplesharing.Application || {}");console.log("START - window.neutron.simplesharing.Application.instance = new neutron.simplesharing.SharePublicLinkApplication()");window.neutron.simplesharing.Application.instance=new neutron.simplesharing.SharePublicLinkApplication;console.log("END - window.neutron.simplesharing.Application.instance = new neutron.simplesharing.SharePublicLinkApplication()");
console.log("START - window.neutron.simplesharing.Application.instance.init()");window.neutron.simplesharing.Application.instance.init();console.log("END - window.neutron.simplesharing.Application.instance.init()")}goog.exportSymbol("SimpleSharingApplicationStart",SimpleSharingApplicationStart);goog.promise={};goog.promise.Resolver=function(){};goog.Thenable=function(){};goog.Thenable.prototype.then=function(a,b,c){};goog.Thenable.IMPLEMENTED_BY_PROP="$goog_Thenable";goog.Thenable.addImplementation=function(a){goog.exportProperty(a.prototype,"then",a.prototype.then);COMPILED?a.prototype[goog.Thenable.IMPLEMENTED_BY_PROP]=!0:a.prototype.$goog_Thenable=!0};goog.Thenable.isImplementedBy=function(a){if(!a)return!1;try{return COMPILED?!!a[goog.Thenable.IMPLEMENTED_BY_PROP]:!!a.$goog_Thenable}catch(b){return!1}};goog.Promise=function(a,b){this.state_=goog.Promise.State_.PENDING;this.result_=void 0;this.callbackEntries_=this.parent_=null;this.executing_=!1;0<goog.Promise.UNHANDLED_REJECTION_DELAY?this.unhandledRejectionId_=0:0==goog.Promise.UNHANDLED_REJECTION_DELAY&&(this.hadUnhandledRejection_=!1);goog.Promise.LONG_STACK_TRACES&&(this.stack_=[],this.addStackTrace_(Error("created")),this.currentStep_=0);try{var c=this;a.call(b,function(a){c.resolve_(goog.Promise.State_.FULFILLED,a)},function(a){c.resolve_(goog.Promise.State_.REJECTED,
a)})}catch(d){this.resolve_(goog.Promise.State_.REJECTED,d)}};goog.Promise.LONG_STACK_TRACES=goog.DEBUG;goog.Promise.UNHANDLED_REJECTION_DELAY=0;goog.Promise.State_={PENDING:0,BLOCKED:1,FULFILLED:2,REJECTED:3};goog.Promise.resolve=function(a){return new goog.Promise(function(b,c){b(a)})};goog.Promise.reject=function(a){return new goog.Promise(function(b,c){c(a)})};goog.Promise.race=function(a){return new goog.Promise(function(b,c){a.length||b(void 0);for(var d=0,e;e=a[d];d++)e.then(b,c)})};
goog.Promise.all=function(a){return new goog.Promise(function(b,c){var d=a.length,e=[];if(d)for(var f=function(a,c){d--;e[a]=c;0==d&&b(e)},g=function(a){c(a)},h=0,k;k=a[h];h++)k.then(goog.partial(f,h),g);else b(e)})};goog.Promise.firstFulfilled=function(a){return new goog.Promise(function(b,c){var d=a.length,e=[];if(d)for(var f=function(a){b(a)},g=function(a,b){d--;e[a]=b;0==d&&c(e)},h=0,k;k=a[h];h++)k.then(f,goog.partial(g,h));else b(void 0)})};
goog.Promise.withResolver=function(){var a,b,c=new goog.Promise(function(c,e){a=c;b=e});return new goog.Promise.Resolver_(c,a,b)};goog.Promise.prototype.then=function(a,b,c){goog.Promise.LONG_STACK_TRACES&&this.addStackTrace_(Error("then"));return this.addChildPromise_(goog.isFunction(a)?a:null,goog.isFunction(b)?b:null,c)};goog.Thenable.addImplementation(goog.Promise);
goog.Promise.prototype.thenAlways=function(a,b){goog.Promise.LONG_STACK_TRACES&&this.addStackTrace_(Error("thenAlways"));var c=function(){try{a.call(b)}catch(c){goog.Promise.handleRejection_.call(null,c)}};this.addCallbackEntry_({child:null,onRejected:c,onFulfilled:c});return this};goog.Promise.prototype.thenCatch=function(a,b){goog.Promise.LONG_STACK_TRACES&&this.addStackTrace_(Error("thenCatch"));return this.addChildPromise_(null,a,b)};
goog.Promise.prototype.cancel=function(a){this.state_==goog.Promise.State_.PENDING&&goog.async.run(function(){var b=new goog.Promise.CancellationError(a);this.cancelInternal_(b)},this)};goog.Promise.prototype.cancelInternal_=function(a){this.state_==goog.Promise.State_.PENDING&&(this.parent_?this.parent_.cancelChild_(this,a):this.resolve_(goog.Promise.State_.REJECTED,a))};
goog.Promise.prototype.cancelChild_=function(a,b){if(this.callbackEntries_){for(var c=0,d=-1,e=0,f;f=this.callbackEntries_[e];e++)if(f=f.child)if(c++,f==a&&(d=e),0<=d&&1<c)break;0<=d&&(this.state_==goog.Promise.State_.PENDING&&1==c?this.cancelInternal_(b):(c=this.callbackEntries_.splice(d,1)[0],this.executeCallback_(c,goog.Promise.State_.REJECTED,b)))}};
goog.Promise.prototype.addCallbackEntry_=function(a){(!this.callbackEntries_||!this.callbackEntries_.length)&&(this.state_==goog.Promise.State_.FULFILLED||this.state_==goog.Promise.State_.REJECTED)&&this.scheduleCallbacks_();this.callbackEntries_||(this.callbackEntries_=[]);this.callbackEntries_.push(a)};
goog.Promise.prototype.addChildPromise_=function(a,b,c){var d={child:null,onFulfilled:null,onRejected:null};d.child=new goog.Promise(function(e,f){d.onFulfilled=a?function(b){try{var d=a.call(c,b);e(d)}catch(k){f(k)}}:e;d.onRejected=b?function(a){try{var d=b.call(c,a);!goog.isDef(d)&&a instanceof goog.Promise.CancellationError?f(a):e(d)}catch(k){f(k)}}:f});d.child.parent_=this;this.addCallbackEntry_(d);return d.child};
goog.Promise.prototype.unblockAndFulfill_=function(a){goog.asserts.assert(this.state_==goog.Promise.State_.BLOCKED);this.state_=goog.Promise.State_.PENDING;this.resolve_(goog.Promise.State_.FULFILLED,a)};goog.Promise.prototype.unblockAndReject_=function(a){goog.asserts.assert(this.state_==goog.Promise.State_.BLOCKED);this.state_=goog.Promise.State_.PENDING;this.resolve_(goog.Promise.State_.REJECTED,a)};
goog.Promise.prototype.resolve_=function(a,b){if(this.state_==goog.Promise.State_.PENDING){if(this==b)a=goog.Promise.State_.REJECTED,b=new TypeError("Promise cannot resolve to itself");else{if(goog.Thenable.isImplementedBy(b)){this.state_=goog.Promise.State_.BLOCKED;b.then(this.unblockAndFulfill_,this.unblockAndReject_,this);return}if(goog.isObject(b))try{var c=b.then;if(goog.isFunction(c)){this.tryThen_(b,c);return}}catch(d){a=goog.Promise.State_.REJECTED,b=d}}this.result_=b;this.state_=a;this.scheduleCallbacks_();
a==goog.Promise.State_.REJECTED&&!(b instanceof goog.Promise.CancellationError)&&goog.Promise.addUnhandledRejection_(this,b)}};goog.Promise.prototype.tryThen_=function(a,b){this.state_=goog.Promise.State_.BLOCKED;var c=this,d=!1,e=function(a){d||(d=!0,c.unblockAndFulfill_(a))},f=function(a){d||(d=!0,c.unblockAndReject_(a))};try{b.call(a,e,f)}catch(g){f(g)}};goog.Promise.prototype.scheduleCallbacks_=function(){this.executing_||(this.executing_=!0,goog.async.run(this.executeCallbacks_,this))};
goog.Promise.prototype.executeCallbacks_=function(){for(;this.callbackEntries_&&this.callbackEntries_.length;){var a=this.callbackEntries_;this.callbackEntries_=[];for(var b=0;b<a.length;b++)goog.Promise.LONG_STACK_TRACES&&this.currentStep_++,this.executeCallback_(a[b],this.state_,this.result_)}this.executing_=!1};goog.Promise.prototype.executeCallback_=function(a,b,c){if(b==goog.Promise.State_.FULFILLED)a.onFulfilled(c);else this.removeUnhandledRejection_(),a.onRejected(c)};
goog.Promise.prototype.addStackTrace_=function(a){if(goog.Promise.LONG_STACK_TRACES&&goog.isString(a.stack)){var b=a.stack.split("\n",4)[3];a=a.message;a+=Array(11-a.length).join(" ");this.stack_.push(a+b)}};
goog.Promise.prototype.appendLongStack_=function(a){if(goog.Promise.LONG_STACK_TRACES&&a&&goog.isString(a.stack)&&this.stack_.length){for(var b=["Promise trace:"],c=this;c;c=c.parent_){for(var d=this.currentStep_;0<=d;d--)b.push(c.stack_[d]);b.push("Value: ["+(c.state_==goog.Promise.State_.REJECTED?"REJECTED":"FULFILLED")+"] <"+String(c.result_)+">")}a.stack+="\n\n"+b.join("\n")}};
goog.Promise.prototype.removeUnhandledRejection_=function(){if(0<goog.Promise.UNHANDLED_REJECTION_DELAY)for(var a=this;a&&a.unhandledRejectionId_;a=a.parent_)goog.global.clearTimeout(a.unhandledRejectionId_),a.unhandledRejectionId_=0;else if(0==goog.Promise.UNHANDLED_REJECTION_DELAY)for(a=this;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1};
goog.Promise.addUnhandledRejection_=function(a,b){0<goog.Promise.UNHANDLED_REJECTION_DELAY?a.unhandledRejectionId_=goog.global.setTimeout(function(){a.appendLongStack_(b);goog.Promise.handleRejection_.call(null,b)},goog.Promise.UNHANDLED_REJECTION_DELAY):0==goog.Promise.UNHANDLED_REJECTION_DELAY&&(a.hadUnhandledRejection_=!0,goog.async.run(function(){a.hadUnhandledRejection_&&(a.appendLongStack_(b),goog.Promise.handleRejection_.call(null,b))}))};goog.Promise.handleRejection_=goog.async.throwException;
goog.Promise.setUnhandledRejectionHandler=function(a){goog.Promise.handleRejection_=a};goog.Promise.CancellationError=function(a){goog.Promise.CancellationError.base(this,"constructor",a)};goog.inherits(goog.Promise.CancellationError,goog.debug.Error);goog.Promise.CancellationError.prototype.name="cancel";goog.Promise.Resolver_=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};neutron.dashboard.utils.ImageZoomer=function(){function a(a){a._parentHalfWidth=0;a._parentHalfHeight=0;a._imgZoomWidth=null;a._imgZoomHeight=null;a._imgStartLeft=null;a._imgStartTop=null;a._imgCurrentLeft=null;a._imgCurrentTop=null;a._zoomLevel=0;a._imageSizeZoomLevel=0;a._divSizeZoomLevel=0;a._zoomLevels=[];a._zoomLevelCount=[];a._clickLast=0;a._origin=null;a.refreshParentElemSize();c(a,a._divSizeZoomLevel)}function b(a){a._imageElem.onmousedown=function(b){h(a,b)};a._imageElem.ontouchstart=function(b){h(a,
b)};a._imageParentElem.addEventListener?(a._imageParentElem.addEventListener("DOMMouseScroll",function(b){d(a,b)},!1),a._imageParentElem.addEventListener("mousewheel",function(b){d(a,b)},!1)):a._imageParentElem.attachEvent&&a._imageParentElem.attachEvent("onmousewheel",function(b){d(a,b)});document.onkeyup=function(b){b=b?b.which:window.event.keyCode;37===b||39===b?(a._imgCurrentLeft+=39===b?50:-50,f(a)):38===b||40===b?(a._imgCurrentTop+=40===b?50:-50,f(a)):107===b||187===b||61===b?a.zoomIn():(109===
b||189===b)&&a.zoomOut()}}function c(a,b){var c,d,e;c=a._zoomLevel+b;c>=a._zoomLevelCount&&c>a._zoomLevelCount?a._onZoomExtreme?a._onZoomExtreme(1):(a._imageParentElem.style.opacity=0.5,setTimeout(function(){a._imageParentElem.style.opacity=1},150)):0>=c&&0>c?a._onZoomExtreme?a._onZoomExtreme(-1):(a._imageParentElem.style.opacity=0.5,setTimeout(function(){a._imageParentElem.style.opacity=1},150)):(a._onZoomExtreme&&a._onZoomExtreme(0),a._zoomLevel=c,d=a._zoomLevels[c],c=a._zoomLevels[c]*(a._imageOriginalHeight/
a._imageOriginalWidth),a._imageElem.width=d,a._imageElem.height=c,null===a._imgCurrentLeft?(a._imgCurrentLeft=a._parentHalfWidth-d/2,a._imgCurrentTop=a._parentHalfHeight-c/2):(e=d/a._imgZoomWidth,a._imgCurrentLeft=a._parentHalfWidth-(a._parentHalfWidth-a._imgCurrentLeft)*e,a._imgCurrentTop=a._parentHalfHeight-(a._parentHalfHeight-a._imgCurrentTop)*e),a._imgZoomWidth=d,a._imgZoomHeight=c,a._imageElem.style.left=a._imgCurrentLeft+"px",a._imageElem.style.top=a._imgCurrentTop+"px")}function d(a,b){b=
b||window.event;c(a,0<(b.detail?-1*b.detail:b.wheelDelta/40)?1:-1);b.preventDefault?b.preventDefault():b.returnValue=!1;return!1}function e(a,b){var c=[];b.touches&&b.touches.length?(c[0]=b.touches[0].clientX,c[1]=b.touches[0].clientY):(c[0]=b.clientX,c[1]=b.clientY);return c}function f(a){a._imageElem.style.left=a._imgCurrentLeft+"px";a._imageElem.style.top=a._imgCurrentTop+"px"}function g(a,b){b=b||window.event;var c=e(a,b);a._imgCurrentLeft=a._imgStartLeft+(c[0]-a._origin[0]);a._imgCurrentTop=
a._imgStartTop+(c[1]-a._origin[1]);f(a);b.preventDefault?b.preventDefault():b.returnValue=!1;b.stopPropagation();return!1}function h(a,b){b=b||window.event;b.preventDefault?b.preventDefault():b.returnValue=!1;b.stopPropagation();var c=(new Date).getTime();a._clickLast>c-200?a.zoomIn():a._clickLast=c;"touchstart"===b.type?(a._imageElem.onmousedown=null,a._imageElem.ontouchmove=function(b){g(a,b)},a._imageElem.ontouchend=function(){a._imageElem.ontouchmove=null;a._imageElem.ontouchend=null}):(a._imageElem.onmousemove=
function(b){g(a,b)},a._imageElem.onmouseup=function(b){a._imageElem.onmousemove=null;a._imageElem.onmouseup=null;b.stopPropagation();b.preventDefault()});a._imgStartLeft=a._imgCurrentLeft;a._imgStartTop=a._imgCurrentTop;a._origin=e(a,b)}var k=function(c,d,e,f){this._imageParentElem=c;this._imageElem=d;!goog.isDefAndNotNull(this._imageParentElem)||!goog.isDefAndNotNull(this._imageElem)?console.log("Error: neutron.dashboard.utils.ImageZoomer init with null"):(this._imageOriginalWidth=this._imageElem.width,
this._imageOriginalHeight=this._imageElem.height,this._onZoomExtreme=e,a(this),b(this))};k.prototype=Object.create(Object.prototype);k.prototype.constructor=k;k.prototype.zoomIn=function(){c(this,1)};k.prototype.zoomOut=function(){c(this,-1)};k.prototype.fitAll=function(){a(this)};k.prototype.zoomToOriginalSize=function(){a(this);this._zoomLevel=0;c(this,this._imageSizeZoomLevel)};k.prototype.refreshParentElemSize=function(){var a,b;try{a=window.getComputedStyle(this._imageParentElem,""),a.getPropertyValue("border-top-width"),
this._parentHalfWidth=a.getPropertyValue("width"),this._parentHalfHeight=a.getPropertyValue("height")}catch(c){this._parentHalfWidth=this._imageParentElem.currentStyle.width,this._parentHalfHeight=this._imageParentElem.currentStyle.height}this._parentHalfWidth=Math.round(parseInt(this._parentHalfWidth,10)/2);this._parentHalfHeight=Math.round(parseInt(this._parentHalfHeight,10)/2);b=2*this._parentHalfWidth;var d=this._imageOriginalWidth,e=5*(d>b?d:b),f=[];for(a=0.2*(d<b?d:b);a<=e;)f[f.length]=Math.round(a),
a*=1.2;var g=Number.MAX_VALUE,h=Number.MAX_VALUE,k=-1,u=-1;f.forEach(function(a,c){var e=Math.abs(a-d);e<g&&(g=e,k=c);e=Math.abs(a-b);e<h&&(h=e,u=c)});f[k]=d;this._imageSizeZoomLevel=k;this._divSizeZoomLevel=0<u?u-1:0;this._zoomLevels=f;this._zoomLevelCount=this._zoomLevels.length-1};return k}();neutron.dashboard.boards.SnapshotViewerBoard=function(){neutron.dashboard.RenderableObject.call(this);this._downloadNode=this._trueSizeNode=this._fitAllNode=this._topToolbarNode=this._imageContainerNode=this._imageNode=null;this._strBy=_LCLZ("By");this._strPostOn=_LCLZ("posted on ");this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY="NEUTRON_TO_JAVASCRIPT";this._fitAllTipText=_LCLZ("Fit Screen");this._trueSizeTipText=_LCLZ("True Size");this._fitAllTooltip=new goog.ui.Tooltip(null,this._fitAllTipText);this._trueSizeTooltip=
new goog.ui.Tooltip(null,this._trueSizeTipText);this._trueSizeTooltip.setShowDelayMs(500);this._init();this._imageInfo=this._imageZoomer=null;this._neutronCallbacks={}};goog.inherits(neutron.dashboard.boards.SnapshotViewerBoard,neutron.dashboard.RenderableObject);neutron.dashboard.boards.SnapshotViewerBoard.prototype._init=function(){};neutron.dashboard.boards.SnapshotViewerBoard.prototype._logWarning=function(a){console.log("Warning: "+a)};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._logError=function(a){console.log("Error: "+a)};neutron.dashboard.boards.SnapshotViewerBoard.prototype._construct=function(a){this._htmlNode=goog.dom.createDom("div",{id:"snapshotBoard"});this._addContents();a.appendChild(this._htmlNode);this._connectEvents()};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._querySnapshotInfo=function(){return new goog.Promise(function(a,b){var c=window.neutronJavaScriptObject.executeQuery("Comments.Snapshot.queryActiveInfo",JSON.stringify({}));try{var d=JSON.parse(c);d?a(d):b(c)}catch(e){b(e.toString()+". data ="+c)}})};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._requestImageData=function(a){var b=this;this._imageInfo=a;return new goog.Promise(function(c,d){var e={commentId:a.commentId,imageUrn:a.originalUrn};b._registerNeutronCb("Comments.Snapshot.downloadImage.asyncReturn",c,d,!0);e=window.neutronJavaScriptObject.executeQuery("Comments.Snapshot.downloadImage",JSON.stringify(e));try{var f=JSON.parse(e);f||d(f)}catch(g){d(f)}})};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._registerNeutronCb=function(a,b,c,d){this._neutronCallbacks[a]={resolve:b,reject:c,nonce:d}};neutron.dashboard.boards.SnapshotViewerBoard.prototype._unregisterNeutronCb=function(a){delete this._neutronCallbacks[a]};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._onImageData=function(a){goog.isDefAndNotNull(this._imageNode)?(self=this,goog.dom.classes.remove(this._imageNode,"preload"),this._imageNode.onload=function(){self._imageZoomer=new neutron.dashboard.utils.ImageZoomer(self._imageContainerNode,self._imageNode,function(a){self._onZoomExtreme(self,a)})},this._onZoomExtreme(this,0),this._imageNode.src=a.imageData,this._imageNode.imageUrn=a.imageUrn):this._logError("Image node does not exist")};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._onImageDataFailed=function(a){this._imageInfo=null;goog.dom.classes.remove(this._imageNode,"preload");this._logError("Image download failed")};neutron.dashboard.boards.SnapshotViewerBoard.prototype._onZoomExtreme=function(a,b){};neutron.dashboard.boards.SnapshotViewerBoard.prototype._onMinimumZoom=function(){};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._addContents=function(){var a=this,b=this._htmlNode,c=goog.dom.createDom("div",{"class":"topToolbar"});b.appendChild(c);a._imageContainerNode=goog.dom.createDom("div",{"class":"imageContainer"});b.appendChild(a._imageContainerNode);this._fitAllNode=goog.dom.createDom("div",{"class":"button fitAll"});c.appendChild(this._fitAllNode);this._fitAllTooltip.attach(this._fitAllNode);this._trueSizeNode=goog.dom.createDom("div",{"class":"button zoomTrueSize"});
c.appendChild(this._trueSizeNode);this._trueSizeTooltip.attach(this._trueSizeNode);this._topToolbarNode=c;var d=function(b){a._onImageData(b)},e=function(b){a._onImageDataFailed(b)};a._imageNode=goog.dom.createDom("img",{"class":"snapshot preload"});a._imageNode.src="data:image/png;base64,R0lGODlhFAAUAIAAAP///wAAACH5BAEAAAAALAAAAAAUABQAAAIRhI+py+0Po5y02ouz3rz7rxUAOw==";a._imageContainerNode.appendChild(a._imageNode);a._querySnapshotInfo().then(function(b){b=b.data;var c=goog.dom.createDom("a",{"class":"info thick version"},
b.versionStr);a._topToolbarNode.appendChild(c);c=goog.dom.createDom("a",{"class":"info"},a._strBy);a._topToolbarNode.appendChild(c);c=goog.dom.createDom("a",{"class":"info thick"},b.author);a._topToolbarNode.appendChild(c);c=goog.dom.createDom("a",{"class":"info"},a._strPostOn+b.creationTime);a._topToolbarNode.appendChild(c);a._requestImageData(b).then(d,e)},function(b){a._logError("Snapshot information error = "+b)})};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._connectEvents=function(){var a=this;this._addEventHandlerKey(this._NEUTRON_TO_JAVASCRIPT_EVENT_KEY,goog.events.listen(neutron.dashboard.Application.instance,neutron.dashboard.events.EventType.NEUTRON_EVENT,function(b){a._onNeutronEvent(b)}));goog.events.listen(a._fitAllNode,goog.events.EventType.CLICK,function(b){a._onFitAllClicked();b.preventDefault();b.stopPropagation()});goog.events.listen(a._trueSizeNode,goog.events.EventType.CLICK,function(b){a._onZoomToOriginalSizeClicked();
b.preventDefault();b.stopPropagation()})};neutron.dashboard.boards.SnapshotViewerBoard.prototype._onFitAllClicked=function(){goog.isDefAndNotNull(this._imageZoomer)&&this._imageZoomer.fitAll()};neutron.dashboard.boards.SnapshotViewerBoard.prototype._onZoomToOriginalSizeClicked=function(){goog.isDefAndNotNull(this._imageZoomer)&&this._imageZoomer.zoomToOriginalSize()};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._update=function(){!1!=goog.isDefAndNotNull(this._area)&&(this._htmlNode.style.width=this._area.width+"px",this._htmlNode.style.height=this._area.height+"px",this._imageZoomer&&this._imageZoomer.refreshParentElemSize())};neutron.dashboard.boards.SnapshotViewerBoard.prototype._remove=function(){};
neutron.dashboard.boards.SnapshotViewerBoard.prototype._onNeutronEvent=function(a){var b=JSON.parse(a.cmdArgs),c=this._neutronCallbacks[a.cmdId];goog.isDefAndNotNull(c)&&(goog.isDefAndNotNull(b.ret)&&goog.isDefAndNotNull(b.data))&&(b.ret?c.resolve(b.data):c.reject(b.data),goog.isDefAndNotNull(c.nonce)&&c.nonce&&this._unregisterNeutronCb(a.cmdId))};neutron.dashboard.SnapshotViewerApplication=function(){neutron.dashboard.BaseApplication.call(this);this._vsm=null};goog.inherits(neutron.dashboard.SnapshotViewerApplication,neutron.dashboard.BaseApplication);
neutron.dashboard.SnapshotViewerApplication.prototype.init=function(){neutron.dashboard.SnapshotViewerApplication.superClass_.init.call(this);this._vsm=new goog.dom.ViewportSizeMonitor;this._board=new neutron.dashboard.boards.SnapshotViewerBoard;this._connectEvents();this._onViewportResize();window.neutronJavaScriptHandler={handle:function(a,b){neutron.dashboard.Application.instance.dispatchEvent(new neutron.dashboard.events.NeutronEvent(a,b))}}};
neutron.dashboard.SnapshotViewerApplication.prototype._connectEvents=function(){var a=this;goog.events.listen(this._vsm,goog.events.EventType.RESIZE,function(){a._onViewportResize()});goog.events.listen(document.body,goog.events.EventType.DROP,function(a){a.preventDefault();return!1});goog.events.listen(document.body,goog.events.EventType.DRAGSTART,function(a){a.preventDefault();return!1})};
neutron.dashboard.SnapshotViewerApplication.prototype._onViewportResize=function(){var a=this._vsm.getSize();!1!=goog.isDefAndNotNull(a)&&!0==goog.isDefAndNotNull(this._board)&&this._board.dispatchEvent(new neutron.dashboard.events.Update(document.body,0,0,a.width,a.height))};
neutron.dashboard.SnapshotViewerApplication.prototype.executeNeutronCmd=function(a,b){!1==goog.isDefAndNotNull(window.neutronJavaScriptObject)||!1==goog.isDefAndNotNull(window.neutronJavaScriptObject.executeCommand)?alert("Neutron ExecuteCommand should only be used in embedded mode"):window.neutronJavaScriptObject.executeCommand(a,b)};
neutron.dashboard.SnapshotViewerApplication.prototype.showWaitCursor=function(a){!0==a?goog.dom.classes.add(document.body,"waitCursor"):goog.dom.classes.remove(document.body,"waitCursor")};function SnapshotViewerApplicationStart(){console.__time=(new Date).getTime();BaseApplicationStart();window.neutron.dashboard.Application.instance=new neutron.dashboard.SnapshotViewerApplication;window.neutron.dashboard.Application.instance.init()}goog.exportSymbol("SnapshotViewerApplicationStart",SnapshotViewerApplicationStart);
