var Jive=Jive||{},J$;Jive.G=Jive.G||{};J$=J$||$;Jive.CreateGlobals=function(){Jive.Flyout=null;Jive.FlyoutTimeout=null;Jive.TooltipTimeout=null;Jive.MinHeight=570;Jive.MinWidth=640;Jive.FullScreenSwitchWidth=800;Jive.CurrentScreenWidth=0;Jive.ResponsiveBreakPoint=1024;Jive.HeaderHidden=!1;Jive.JiveDiv=J$("#jive");Jive.JiveContainer=J$("#j-container");Jive.LeftPane=Jive.JiveDiv.find("div.left-pane");Jive.RightPane=Jive.JiveDiv.find("div.right-pane");Jive.PeriodPane=Jive.JiveDiv.find("div.period-pane");Jive.PresentPane=Jive.JiveDiv.find("div.present-pane");Jive.ReportPane=Jive.JiveDiv.find("div.report-pane");Jive.StartPane=Jive.JiveDiv.find("div.start-pane");Jive.WorkspacePane=Jive.JiveDiv.find("div.workspace-pane");Jive.ContainerWidth=Jive.JiveContainer.width();Jive.ContainerHeight=J$(window).height();Jive.ShowPresIsCalled=!1;Jive.ResponsiveMode=!1;Jive.ResponsiveHidden=!1;Jive.IsSized=!1;Jive.PresSized=!1};Jive.FullScreenOptions={FullScreenStart:0,RegularStart:1,Automatic:3};Jive.DetectResolution=function(){var n=document.documentElement.clientWidth;Jive.CurrentScreenWidth=n;Jive.ResponsiveMode=Jive.G.FullScreenSetting===Jive.FullScreenOptions.Automatic&&Jive.CurrentScreenWidth<=Jive.ResponsiveBreakPoint||Jive.G.FullScreenSetting===Jive.FullScreenOptions.FullScreenStart};Jive.CheckMobileResolution=function(){var n=window.screen.height,t=window.screen.width,i=t>499&&n>600;i||Jive.MoDlg.Show()};Jive.SizeLayout=function(n){var et,p,w,k,d,o;if(!Jive.IsSized){clearTimeout(Jive.SizeTimout);var u=Jive.JiveContainer[0],g,i,nt=0,tt=0,t,r,c,l=!1,st=!1,a,s,e,it,h,v,rt,ut,y,ft;u.style.height="";u.style.overflow="";n&&Jive.DetectResolution();J$("#j-sh-right").show();J$("#j-sh-bottom").show();Jive.Pres.InFullScreen?(J$(".fs-btn").show(),(J$("#j-period-play").prop("disabled")||Jive.Report.ReportVisible)&&J$("#j-fs-play").hide(),Jive.PeriodPane.hide(),Jive.LeftPane.hide(),Jive.WorkspacePane.css("display","none"),J$("#j-sh-left").hide(),J$("#j-sh-right").hide(),J$("#j-sh-bottom").hide(),J$(".bn-sizehandler").removeClass("blockimportant"),J$(".j-start-tour").hide(),Jive.JiveDiv.find("#j-viewtype").hide(),Jive.JiveDiv.find("#j-report-edit-bar").hide(),J$("#j-pres-showselpopup").hide(),J$(".jive header.topheader").addClass("noheight"),J$(".jive header.topheader").css("display","none")):(J$(".fs-btn").hide(),J$("#j-pres-showselpopup").show(),Jive.WorkspacePane.css("display","block"),Jive.Login.IsLoggedIn&&Jive.WS.Size(),Jive.StartScreenHidden||J$(".j-start-tour").show(),J$("#j-sh-bottom").show(),!Jive.Report.ReportVisible&&Jive.StartScreenHidden?(Jive.Period.Valid&&!Jive.G.BottomPaneHidden?(J$("#j-sh-bottom-btn").removeClass("blockimportant op70"),J$("#j-sh-bottom-btn i").removeClass("fa-angle-up").addClass("fa-angle-down").prop("title",Jive.Loc.HideBottomPanel),J$("#j-sh-bottom-btn span").html(Jive.Loc.HideBottomPanel),Jive.PeriodPane.show()):(Jive.Period.Valid?(J$("#j-sh-bottom-btn").addClass("blockimportant op70"),J$("#j-sh-bottom-btn i").removeClass("fa-angle-down").addClass("fa-angle-up").prop("title",Jive.Loc.ShowBottomPanel),J$("#j-sh-bottom-btn span").html(Jive.Loc.ShowBottomPanel),J$("#j-sh-bottom").show()):(J$("#j-sh-bottom-btn").removeClass("blockimportant op70"),J$("#j-sh-bottom").hide()),Jive.PeriodPane.hide()),Jive.JiveDiv.find("#j-viewtype").show(),Jive.G.RightPaneHidden?(J$("#j-sh-right-btn").addClass("blockimportant"),J$("#j-sh-right-btn i").removeClass("fa-angle-right").addClass("fa-angle-left").prop("title",Jive.Loc.ShowRightPanel),J$("#j-sh-right-btn span").html(Jive.Loc.ShowRightPanel),Jive.RightPane.hide()):(Jive.RightPane.show(),J$("#j-sh-right-btn").removeClass("blockimportant"),J$("#j-sh-right-btn i").removeClass("fa-angle-left").addClass("fa-angle-right").prop("title",Jive.Loc.HideRightPanel),J$("#j-sh-right-btn span").html(Jive.Loc.HideRightPanel))):Jive.Report.ReportVisible&&Jive.Report.ReportBarVisible&&Jive.JiveDiv.find("#j-report-edit-bar").show(),Jive.G.LeftPaneHidden?(J$("#j-sh-left-btn").addClass("blockimportant"),J$("#j-sh-left-btn i").removeClass("fa-angle-left").addClass("fa-angle-right").prop("title",Jive.Loc.ShowLeftPanel),J$("#j-sh-left-btn span").html(Jive.Loc.ShowLeftPanel),Jive.LeftPane.hide()):(J$("#j-sh-left-btn").removeClass("blockimportant"),J$("#j-sh-left-btn i").removeClass("fa-angle-right").addClass("fa-angle-left").prop("title",Jive.Loc.HideLeftPanel),J$("#j-sh-left-btn span").html(Jive.Loc.HideLeftPanel),Jive.LeftPane.show()),J$("#j-sh-left").show(),J$("#j-sh-right").show());Jive.G.LeftPaneWidth>0&&Jive.LeftPane.width(Jive.G.LeftPaneWidth);Jive.G.RightPaneWidth>0?Jive.RightPane.width(Jive.G.RightPaneWidth):Jive.G.RightPaneWidth=Math.floor(Jive.RightPane.width());ut=Jive.HH.GetExtraWidth(u);Jive.ContainerWidth=u.clientWidth-ut;g=window.innerHeight||J$(window).height();i=g-Jive.HH.GetExtraHeight(document.getElementsByTagName("body")[0]);i-=Jive.HH.GetExtraHeight(u);Jive.ContainerWidth<Jive.MinWidth&&(i-=20);i<Jive.MinHeight&&(l=!0,et=Jive.ContainerWidth<Jive.MinWidth?i+20:i,u.style.height=et+"px",u.style.overflow="auto",i=Jive.MinHeight);Jive.ContainerHeight=i;p=document.getElementsByTagName("body")[0].getElementsByTagName("footer");p.length>0&&(nt=p[0].offsetHeight);Jive.G.AllowHeaderInWorkSpaceBar&&Jive.ResponsiveMode?(J$("header.topheader").hide(),Jive.HeaderHidden=!0):(Jive.HeaderHidden=!1,Jive.Pres.InFullScreen||(J$("header.topheader").show(),J$(".jive header.topheader").removeClass("noheight")),tt=J$("header.topheader").outerHeight(!0)||0);v=Jive.WorkspacePane.is(":visible")?Jive.HH.GetDimensions(Jive.WorkspacePane):{width:0,height:0,wExtra:0,hExtra:0};Jive.LeftPane.is(":visible")?(w=parseInt(Jive.LeftPane[0].style.width.replace("px",""),10),t=Jive.HH.GetDimensions(Jive.LeftPane),isNaN(w)||(t.width=w+t.hExtra)):t={width:0,height:0,wExtra:0,hExtra:0};r=Jive.RightPane.is(":visible")&&!Jive.Legend.IsDocked?Jive.HH.GetDimensions(Jive.RightPane):{width:0,height:0,wExtra:0,hExtra:0};Jive.RightPane.width(r.width-r.wExtra);y=Jive.PeriodPane.is(":visible")?Jive.PeriodPane.outerHeight(!0):0;c=Jive.HH.GetDimensions(Jive.PresentPane);a=i-tt-nt;s=a-v.height;e=s-y;Jive.JiveDiv.height(a);Jive.JiveDiv.width(Jive.ContainerWidth);Jive.LeftPane.height(s-t.hExtra);J$("#j-sh-left").height(s-t.hExtra);Jive.PresentPane.height(e-c.hExtra);Jive.RightPane.height(e-r.hExtra);J$("#j-sh-right").height(e-r.hExtra);l&&(Jive.ContainerWidth-=20);Jive.ContainerWidth<Jive.MinWidth&&(st=!0,Jive.ContainerWidth=Jive.MinWidth,u.style.overflow="auto",Jive.JiveDiv.width(Jive.ContainerWidth));rt=Math.floor(Jive.ContainerWidth)-Math.ceil(v.wExtra);ft=Jive.HH.GetExtraWidth(Jive.PeriodPane[0]);it=Math.floor(Jive.ContainerWidth)-ft-Math.ceil(t.width);h=Jive.Pres.InFullScreen?Math.floor(Jive.ContainerWidth):Math.floor(Jive.ContainerWidth)-Math.ceil(c.wExtra);h-=t.width+Math.ceil(r.width);l&&(h-=20);Jive.PeriodPane.width(it);Jive.PresentPane.width(h);Jive.WorkspacePane.width(rt);Jive.Pres.InFullScreen&&Jive.RightPane.width(Jive.G.RightPaneWidth-10);Jive.SizeLeftPane();Jive.Legend.Size();Jive.Period.Items.Size(!0,!0);Jive.Pres.Size(!0);Jive.Report.Size();Jive.StartPage.Size();Jive.VT.Size();Jive.WS.Size();var ot=Jive.LeftPane.position(),ht=Jive.RightPane.position(),f=t.width+ot.left,b=J$(window).width()-r.width;r.width>0&&(b=ht.left+r.wExtra/2);k=ot.top+t.hExtra/2;d=Jive.ContainerHeight-y;J$("#j-sh-left").css({left:f+"px",top:k+"px"});o=Math.floor(e/2);f<0?J$("#j-sh-left-btn").css({left:f+8+"px",top:o+"px"}):J$("#j-sh-left-btn").css({left:f+"px",top:o+"px"});J$("#j-sh-right").css({left:b+"px",top:k+"px"});J$("#j-sh-right-btn").css({left:b+"px",top:o+"px"});J$(".fs-btn:not(#j-fs-play)").css({top:Math.floor(o/4)+"px"});J$("#j-sh-bottom").css({left:f+"px",top:d+"px"});J$("#j-sh-bottom-btn").css({left:f+Math.floor(Jive.PeriodPane.width()/2)+"px",top:d+"px"});J$("#j-sh-bottom").width(Jive.PeriodPane.width());Jive.ResponsiveHidden?Jive.ResponsiveMode||Jive.WS.ToggleResponsivePaneHidden(!1):Jive.ResponsiveMode&&Jive.WS.ToggleResponsivePaneHidden(!0);Jive.IsSized=!0}};Jive.SizeLeftPane=function(n){var s=0,i=0,r=0,e,u,c,l,f=J$("#j-dimensions"),t=J$("#j-geolevel"),o=J$("#j-geolevel-list"),a=J$("#j-geocompare-btn"),v=f.is(":visible"),y=t.is(":visible"),b=J$("#j-scenario").is(":visible"),k=a.is(":visible"),h=o.is(":visible"),p=Jive.HH.GetExtraHeight(document.getElementById("j-dimensions")),w=Jive.HH.GetExtraHeight(document.getElementById("j-geolevel"));r=Jive.LeftPane.height();b&&(r=r-J$("#j-scenario").outerHeight(!0));k&&(r=r-a.outerHeight(!0));v?(e=parseInt(r/4,10)-p,u=parseInt(r/4,10)-w,l=f.find("header").outerHeight()+f.find("ul.scrollable li").outerHeight()*3,e<l?(Jive.Geo.Levels.UseSelect(),h=o.is(":visible"),e=parseInt((r-t.outerHeight(!0))/3,10)-p):Jive.Geo.Levels.HideSelect()):y&&(u=parseInt(r/3,10)-w);v&&(s=f.find("header").outerHeight()+f.find("ul.scrollable").outerHeight(),s>e&&(s=e),f.height(s));y&&(h?(i=t.find("header").outerHeight()+t.find("ul.scrollable").outerHeight(),c=t.find("header").outerHeight()+t.find("ul.scrollable li").outerHeight()*3,i>u&&(i=u),u<c?(Jive.Geo.Levels.UseSelect(),i=t.height()):(Jive.Geo.Levels.HideSelect(),o.height(i))):(t.css("height","auto"),i=t.height(),u>112&&(Jive.Geo.Levels.HideSelect(),h=o.is(":visible"),h&&(i=t.find("header").outerHeight()+t.find("ul.scrollable").outerHeight(),i>u&&(i=u),o.height(i)))),t.height(i));Jive.Dim.Levels.Size(n);Jive.Geo.Levels.Size(!1);Jive.Var.Size(!0,!0)};Jive.UpdateFromAjax=function(n,t){Jive.Pres.ClearView();Jive.ShowPresIsCalled=!1;n===undefined?Jive.UpdateFromAll():(n.warning&&(alert(n.warning),Jive.UpdateFromAll()),n.vars&&t!==Jive.Modules.Variable&&Jive.Var.Init(),n.geo&&t!==Jive.Modules.Geo&&Jive.Geo.Levels.Update(),n.per&&t!==Jive.Modules.Period&&Jive.Period.Update(),n.dim&&Jive.Dim.Levels.Update(),n.scen&&Jive.Scenario.Update(),n.vt&&Jive.VT.Update(),J$.when(Jive.Pres.Update()).done(function(n){n&&!n.isvalid&&n.preserror.length>0&&alert(n.preserror);t!==Jive.Modules.Presentation&&Jive.WS.Update()}),setTimeout(Jive.Acc.CreateElementSkipList,200),setTimeout(Jive.Acc.ValidSkipLinks,200),setTimeout(Jive.Introduction.NextSection,500))};Jive.UpdateFromPeriod=function(n){Jive.UpdateFromAjax(n.update,Jive.Modules.Period)};Jive.UpdateFromLayout=function(n){Jive.UpdateFromAjax(n.update)};Jive.UpdateFromPresentation=function(){Jive.UpdateFromAjax({},Jive.Modules.Presentation)};Jive.UpdateFromReport=function(){Jive.Pres.ClearView();Jive.WS.Update();Jive.ShowReportScreen()};Jive.ShowReportGenerationProgress=function(){Jive.Pres.ClearView();Jive.ShowReportScreen(!0);Jive.Report.ShowReportGeneration()};Jive.UpdateFromView=function(n){(n===undefined||n.update===undefined)&&(n={},n.update={vt:!0});Jive.UpdateFromAjax(n.update,Jive.Modules.ViewType)};Jive.UpdateFromAll=function(){var n={};n.update={vars:!0,geo:!0,per:!0,vt:!0,dim:!0,scen:!0};Jive.UpdateFromAjax(n.update)};Jive.ShowStartScreen=function(){Jive.StartScreenHidden=!1;Jive.PresentPane.hide();Jive.PresSized=!1;J$("#j-sh-right,#j-sh-bottom").hide();J$("#j-sh-right-btn,#j-sh-bottom-btn").removeClass("blockimportant");Jive.PeriodPane.hide();Jive.RightPane.hide();Jive.StartPane.show();J$("#j-geolevel").hide();J$("#j-dimensions").hide();Jive.StartPage.Show();Jive.Var.Size(!0);Jive.AH.RemoveBlocker()};Jive.HideStartScreen=function(){Jive.StartScreenHidden||(Jive.StartScreenHidden=!0,Jive.StartPane.hide(),Jive.IsSized=!1,Jive.SizeLayout())};Jive.ShowReportScreen=function(n){Jive.StartScreenHidden=!0;Jive.Report.ReportVisible=!0;Jive.PresentPane.hide();Jive.PresSized=!1;J$("#j-sh-right, #j-sh-bottom").hide();J$("#j-sh-right-btn, #j-sh-bottom-btn").removeClass("blockimportant");Jive.PeriodPane.hide();Jive.RightPane.hide();Jive.StartPane.hide();Jive.ReportPane.show();J$("#j-geolevel").hide();J$("#j-dimensions").hide();n||Jive.Report.Show();Jive.Var.Size(!0);Jive.AH.RemoveBlocker()};Jive.HideReportScreen=function(){Jive.Report.ReportVisible=!1;Jive.PresentPane.show();Jive.Period.Valid&&!Jive.G.BottomPaneHidden?Jive.PeriodPane.show():Jive.PeriodPane.hide();Jive.G.RightPaneHidden?Jive.RightPane.hide():Jive.RightPane.show();Jive.ReportPane.hide();J$("#j-geolevel").show();Jive.Report.Hide();Jive.ReportLoadSpinner.Hide();Jive.IsSized=!1;Jive.SizeLayout()};Jive.HidePresentation=function(){Jive.StartScreenHidden=!1;Jive.PeriodPane.hide();Jive.RightPane.hide();Jive.PresentPane.hide();Jive.PresSized=!1;Jive.StartPage.Clear();Jive.StartPane.show();J$("#j-geolevel").hide();J$("#j-dimensions").hide();Jive.IsSized=!1;Jive.SizeLayout()};Jive.ShowPresentation=function(){if(Jive.ShowPresIsCalled=!0,Jive.PresSized&&Jive.IsSized){Jive.Pres.LoadPresentationsNoSize();return}Jive.PresentPane.show();Jive.G.ShowFullScreen||(Jive.Period.Valid&&!Jive.G.BottomPaneHidden?Jive.PeriodPane.show():Jive.PeriodPane.hide(),J$("#j-geolevel").show());Jive.G.RightPaneHidden?Jive.RightPane.hide():Jive.RightPane.show();Jive.StartPane.hide();Jive.StartScreenHidden=!0;Jive.IsSized=!1;Jive.SizeLayout();Jive.PresSized=!0};Jive.InitPaneSizer=function(){var n={},t;J$(".j-sizehandler-vert").off().on("mousedown",function(i){i.preventDefault();n.position=parseInt(i.pageX,10);n.xOnStart=parseInt(i.pageX,10);n.isDown=!0;n.diff=0;J$(this).addClass("j-sizehandlerdrag-vert");var r=this;J$("body").off("mousemove").on("mousemove",function(t){var i,u;n.isDown&&n.position!==0&&(i=parseInt(t.pageX,10),n.diff=i-n.position,n.position=i,u=r.offsetLeft+n.diff,r.style.left=u+"px")});J$("body").one("mouseup",function(i){var r,u,f,e;J$("body").off("mousemove");n.isDown&&(n.isDown=!1,n.xOnEnd=parseInt(i.pageX,10),n.diff=n.xOnEnd-n.xOnStart,n.position=0,r=J$(".j-sizehandler-vert.j-sizehandlerdrag-vert").attr("id"),J$(".j-sizehandler-vert").removeClass("j-sizehandlerdrag-vert"),r==="j-sh-left"?(u=Jive.LeftPane.width(),t=u+n.diff,t<80?(Jive.LeftPane.hide(),Jive.G.LeftPaneHidden=!0,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!0,id:"left"},null)):Jive.LeftPane.is(":visible")?(Jive.G.LeftPaneWidth=Math.floor(Math.max(u+n.diff,200)),Jive.AH.AD("WorkSpace/StorePaneWidth",{width:Jive.G.LeftPaneWidth,isLeft:!0},null)):(Jive.G.LeftPaneHidden=!1,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!1,id:"left"},null))):r==="j-sh-right"&&(f=Jive.RightPane.width(),t=f-n.diff,t<50?(Jive.RightPane.hide(),Jive.G.RightPaneHidden=!0,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!0,id:"right"},null)):Jive.RightPane.is(":visible")?(Jive.G.RightPaneWidth=Math.floor(Math.max(Math.min(f-n.diff,500),150)),Jive.AH.AD("WorkSpace/StorePaneWidth",{width:Jive.G.RightPaneWidth,isLeft:!1},null)):(Jive.G.RightPaneHidden=!1,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!1,id:"right"},null))),Jive.IsSized=!1,Jive.SizeLayout(),Jive.HandlePaneArrows(),Jive.Var.Size(!0,!0),Jive.Report.ReportVisible&&(typeof Event=="function"?window.dispatchEvent(new Event("resize")):(e=window.document.createEvent("UIEvents"),e.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(e))))});Jive.HandlePaneArrows()}).on("focus",function(){J$("body").on("keyup",Jive.HandlePanKeys)}).on("blur",function(){J$("body").off("keyup",Jive.HandlePanKeys)});J$(".j-sizehandler-hor").off().on("mousedown",function(t){t.preventDefault();n.position=parseInt(t.pageY,10);n.yOnStart=parseInt(t.pageY,10);n.isDown=!0;n.diff=0;J$(this).addClass("j-sizehandlerdrag-hor");var i=this;J$("body").off("mousemove").on("mousemove",function(t){var r,u;n.isDown&&n.position!==0&&(r=parseInt(t.pageY,10),n.diff=r-n.position,n.position=r,u=i.offsetTop+n.diff,i.style.top=u+"px")});J$("body").one("mouseup",function(t){var i,r,u;J$("body").off("mousemove");n.isDown&&(n.isDown=!1,n.yOnEnd=parseInt(t.pageY,10),n.diff=n.yOnEnd-n.yOnStart,n.position=0,i=J$(".j-sizehandler-hor.j-sizehandlerdrag-hor").attr("id"),J$(".j-sizehandler-hor").removeClass("j-sizehandlerdrag-hor"),i==="j-sh-bottom"&&(r=Jive.PeriodPane.height(),u=r+n.diff,u>20?(document.getElementById("j-sh-bottom").title=Jive.Loc.DragToShowPeriodPanel,Jive.PeriodPane.hide(),Jive.G.BottomPaneHidden=!0,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!0,id:"bottom"},null)):Jive.PeriodPane.is(":visible")||(document.getElementById("j-sh-bottom").title=Jive.Loc.DragToHidePeriodPanel,Jive.G.BottomPaneHidden=!1,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!1,id:"bottom"},null))),Jive.IsSized=!1,Jive.SizeLayout(),Jive.HandlePaneArrows(),Jive.Var.Size(!0,!0))})}).on("focus",function(){J$("body").on("keyup",Jive.HandlePanKeys)}).on("blur",function(){J$("body").off("keyup",Jive.HandlePanKeys)})};Jive.HandlePaneArrows=function(){!Jive.Report.ReportVisible&&Jive.StartScreenHidden&&(Jive.Period.Valid&&!Jive.G.BottomPaneHidden?(J$("#j-sh-bottom-btn").removeClass("blockimportant op70"),J$("#j-sh-bottom-btn i").removeClass("fa-angle-up").addClass("fa-angle-down").prop("title",Jive.Loc.HideBottomPanel),J$("#j-sh-bottom-btn span").html(Jive.Loc.HideBottomPanel)):((!Jive.Period.Valid||Jive.G.BottomPaneHidden)&&(J$("#j-sh-bottom-btn").addClass("blockimportant op70"),J$("#j-sh-bottom-btn i").prop("title",Jive.Loc.ShowBottomPanel),J$("#j-sh-bottom-btn span").html(Jive.Loc.ShowBottomPanel)),J$("#j-sh-bottom-btn i").removeClass("fa-angle-down").addClass("fa-angle-up")),Jive.G.RightPaneHidden?(J$("#j-sh-right-btn").addClass("blockimportant"),J$("#j-sh-right-btn i").removeClass("fa-angle-right").addClass("fa-angle-left").prop("title",Jive.Loc.ShowRightPanel),J$("#j-sh-right-btn span").html(Jive.Loc.ShowRightPanel)):(J$("#j-sh-right-btn").removeClass("blockimportant"),J$("#j-sh-right-btn i").removeClass("fa-angle-left").addClass("fa-angle-right").prop("title",Jive.Loc.HideRightPanel),J$("#j-sh-right-btn span").html(Jive.Loc.HideRightPanel)));Jive.G.LeftPaneHidden?(J$("#j-sh-left-btn").addClass("blockimportant"),J$("#j-sh-left-btn i").removeClass("fa-angle-left").addClass("fa-angle-right").prop("title",Jive.Loc.ShowLeftPanel),J$("#j-sh-left-btn span").html(Jive.Loc.ShowLeftPanel)):(J$("#j-sh-left-btn").removeClass("blockimportant"),J$("#j-sh-left-btn i").removeClass("fa-angle-right").addClass("fa-angle-left").prop("title",Jive.Loc.HideLeftPanel),J$("#j-sh-left-btn span").html(Jive.Loc.HideLeftPanel))};Jive.HandlePanKeys=function(n){var f=n.target?n.target.id:"",t=n.which,u=!1,r,i;switch(f){case"j-sh-left":r=Jive.LeftPane.width();t===Jive.KeyCodes.left&&(r-=20);t===Jive.KeyCodes.right&&(r+=20);r<200?(Jive.LeftPane.hide(),Jive.G.LeftPaneHidden=!0,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!0,id:"left"},null)):Jive.LeftPane.is(":visible")?(Jive.G.LeftPaneWidth=Math.floor(Math.max(r,199)),Jive.AH.AD("WorkSpace/StorePaneWidth",{width:Jive.G.LeftPaneWidth,isLeft:!0},null)):(Jive.G.LeftPaneHidden=!1,Jive.G.LeftPaneWidth=200,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!1,id:"left"},null));u=!0;break;case"j-sh-right":i=Jive.RightPane.width();t===Jive.KeyCodes.left&&(Jive.RightPane.is(":visible")||(i=80),i+=20);t===Jive.KeyCodes.right&&(i-=20);i<100?(Jive.RightPane.hide(),Jive.G.RightPaneHidden=!0,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!0,id:"right"},null)):Jive.RightPane.is(":visible")?(Jive.G.RightPaneWidth=Math.floor(Math.max(Math.min(i,500),99)),Jive.AH.AD("WorkSpace/StorePaneWidth",{width:Jive.G.RightPaneWidth,isLeft:!1},null)):(Jive.G.RightPaneHidden=!1,Jive.G.RightPaneWidth=100,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!1,id:"right"},null));u=!0;break;case"j-sh-bottom":t!==Jive.KeyCodes.up||Jive.PeriodPane.is(":visible")||(document.getElementById("j-sh-bottom").title=Jive.Loc.DragToHidePeriodPanel,Jive.G.BottomPaneHidden=!1,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!1,id:"bottom"},null));t===Jive.KeyCodes.down&&Jive.G.BottomPaneHidden===!1&&(document.getElementById("j-sh-bottom").title=Jive.Loc.DragToShowPeriodPanel,Jive.PeriodPane.hide(),Jive.G.BottomPaneHidden=!0,Jive.AH.AD("WorkSpace/StorePaneHidden",{isHidden:!0,id:"bottom"},null));u=!0}u&&(Jive.IsSized=!1,Jive.PresSized=!1,Jive.SizeLayout(),Jive.HandlePaneArrows(),Jive.Var.Size(!0,!0))};Jive.HandlePanKeysTable=function(n){var i=n.which,t=0,r=$(".colhandler "),u,v=J$("#j-datatable-headercol col, #j-datatable-content col"),y=J$("#j-datatable-headercol tr:last-child th.num"),p=J$("#j-datatable-headercol tr:last-child th.num a"),f,e,l,a,o,h,s,c;if(i!==Jive.KeyCodes.left&&i!==Jive.KeyCodes.right){Jive.Pres.Table.PanKeyColWidth!==0&&Jive.Pres.Table.StoreWidths(Jive.Pres.Table.PanKeyColWidth,"");return}if(!(r.length<2)&&(f=r[0],e=r[1],f.style&&f.style.left&&e.style&&e.style.left&&(l=parseInt(f.style.left.replace("px",""),10),a=parseInt(e.style.left.replace("px",""),10),t=a-l),!(t<=0))){for(o=0,i===Jive.KeyCodes.left?(t-=10,o=-10):i===Jive.KeyCodes.right&&(t+=10,o=10),u=1;u<r.length;u++)h=r[u],s=parseInt(h.style.left.replace("px",""),10),i===Jive.KeyCodes.left?s-=10*u:i===Jive.KeyCodes.right&&(s+=10*u),$(h).css("left",s+"px");c=parseInt($("#j-datatable-headercol table")[0].style.width);c+=o*(r.length-1);$("#j-datatable-headercol table, #j-datatable-content table").css("width",c+"px");v.css("width",t+5+"px");y.css("width",t+5+"px");p.css("width",t-5+"px");Jive.Pres.Table.PanKeyColWidth=t}};Jive.Logout=function(){Jive.AH.AD("Jive/Logout",{},function(){window.location.reload()})};Jive.Init=function(){if(!Jive.JH.CookieDetect()){alert(Jive.Loc.NoCookies);return}if(Jive.CheckMobileResolution(),Jive.StartScreenHidden=!0,J$("html").prop("lang",Jive.G.Language),J$("#j-container").find("link").attr("property","stylesheet"),Jive.G.SmartSearchEnabled){J$("#j-tree .search").addClass("u-hidden");J$("#j-ac-search-toggle").off().on("click",function(){const n=J$("#j-ac-search").hasClass("hidden");$(this).find("i").toggleClass("fa-search").toggleClass("fa-times");J$("#j-ac-search").toggleClass("hidden");n?(J$("#j-ac-search").find("input").focus(),J$("#j-workspace-bar-left-btns").addClass("u-hidden"),J$("#j-workspace-bar").find(".scrollcontainer").addClass("u-hidden"),J$("#j-workspace-bar-new").addClass("u-hidden"),J$("#j-ac-search-toggle").find("i").attr("title",Jive.Loc.Search+" "+Jive.Loc.Close),J$("#j-ac-search-toggle").find("span.sr-only").text(Jive.Loc.Search+" "+Jive.Loc.Close)):(J$("#j-workspace-bar-left-btns").removeClass("u-hidden"),J$("#j-workspace-bar").find(".scrollcontainer").removeClass("u-hidden"),J$("#j-workspace-bar-new").removeClass("u-hidden"),J$("#j-ac-search-toggle").find("i").attr("title",Jive.Loc.Search+" "+Jive.Loc.Open),J$("#j-ac-search-toggle").find("span.sr-only").text(Jive.Loc.Search+" "+Jive.Loc.Open))});var n=new AbfSearch.AutoComplete("ssr-ac-container",null,"nl",Jive.G.SearchVirtualAppName,"viewer");n.setSearchPlaceholder(Jive.G.SearchInputPrompt)}else J$("#j-ac-search-toggle").addClass("u-hidden");Jive.Login.IsLoggedIn===!0&&(Jive.Geo.Levels.Init(),Jive.Var.Init(),Jive.Period.Init(),Jive.VT.Init(),Jive.PO.Init(),Jive.WS.Init(),Jive.Pres.Init(),Jive.SvgPres.Init(),Jive.Context.Init(),Jive.AdvOpt.Init(),Jive.Legend.Init(),Jive.RepWz.Init(),Jive.Dim.Levels.Init(),Jive.Report.Init(),Jive.SelDlg.Init(),Jive.Introduction.Init(),Jive.GeoItemGroup.Init(),Jive.G.ScenarioVersion&&Jive.Scenario.Init(),Jive.G.IsAdmin&&Jive.ReportEditor.Init(),Jive.InfoScreen=new Jive.IsDlg,Jive.InfoScreen.Init(),Jive.MetadataScreen=new Jive.MetadataDlg,Jive.MetadataScreen.Init(),Jive.JH.InitBodyJiveContextMenu(),Jive.SizeLayout(!0),Jive.G.IsTablet||Jive.InitPaneSizer(),setTimeout(function(){var n=J$("#j-period-play").prop("disabled");Jive.G.DirectPlay&&!n?(Jive.G.DirectPlay=!1,setTimeout(function(){Jive.Period.Items.StartAnimation(!0)},100)):Jive.G.DirectPlay&&(Jive.G.DirectPlay=!1,Jive.Pres.Update())},200),Jive.G.StartIntro&&(Jive.Introduction.SetOptions("startpage"),Jive.Introduction.Start()))};J$(document).ready(function(){Jive.JH.DocumentReadyCommon();Jive.Acc.Init();Jive.Login.Init();Jive.MoDlg.Init();Jive.ForgotPassword.Init();Jive.ResetPassword.Init();Jive.Login.CheckLoggedIn();Jive.HH.GradientButtonCSS(".item");Jive.HH.GradientButtonCSS(".item.header");Jive.JH.CreateResizeObserver();setTimeout(Jive.JH.CheckWebfontLoaded,2e3)})