function GetChartSVG(){var t=null,n;return $.snl.ir.vars.isIE8?$("#lineItemChart").highcharts().getSVG():($("#lineItemChart svg")[0]!=null&&(svgElement=$("#lineItemChart svg")[0],n=$("
",{"class":"SVGDiv"}),n.append($(svgElement).clone()).html(),t=n.html(),$("SVGDiv").remove()),t)}function SourcePopupModel(){$("#SourcePopupModel .irwLoading").hide(),$("#SourcePopupModel").modal(),$("#SourcePopupModel").find(".irwScrollbar").mCustomScrollbar("update")}function malign(n){var t=0;for(i=0;if*2){for(m=""+r+"<\/font>
",mrowH"+i+"<\/font>
";n.innerHTML="
"+t+"<\/font>
"+e+m+e+""+u+"<\/font><\/td><\/tr><\/table>"}}function msubsup(n,t,i,r,u){u.style.setExpression("top",n+" .offsetTop -"+u.offsetHeight/2),r.style.setExpression("top",n+".offsetTop + "+(t.offsetHeight-r.offsetHeight*.5)),i.style.setExpression("marginLeft",Math.max(u.offsetWidth,r.offsetWidth)),document.recalc(!0)}function msup(n,t,i){i.style.setExpression("top",n+" .offsetTop -"+i.offsetHeight/2),t.style.setExpression("marginLeft",n+"p.offsetWidth"),t.style.setExpression("height",n+".offsetHeight + "+i.offsetHeight),document.recalc(!0)}function msub(n,t,i){i.style.setExpression("top",n+" .offsetTop +"+i.offsetHeight/2),t.style.setExpression("marginLeft",n+"p.offsetWidth"),t.style.setExpression("height",n+".offsetHeight + "+i.offsetHeight),document.recalc(!0)}function toggle(n){for(i=0;i500&&(t=500),i.setViewScroll("FitH",t),i.setCurrentHighlight(f,e,o,s)}else r=url+"#SNL_"+spanID,popup.document.location!=r&&(popup.document.location=r),popup.document.styleSheets.length>0&&popup.document.styleSheets[0]!=null&&popup.document.styleSheets[0]!="undefined"&&(popup.document.styleSheets[0].rules?(popup.document.styleSheets[0].addRule(".SNL_"+spanID,"background: yellow"),(popup.document.layers||popup.document.all)&&popup.scrollBy(0,-100)):popup.document.styleSheets[0].cssRules&&(popup.document.styleSheets[0].insertRule(".SNL_"+spanID+" { background: yellow }",0),popup.scrollBy(0,-100)))}var _urlFinancialHighlightsBase=$.snl.ir.models.api.urlTemplate.replace("{Controller}","FinancialHighlights")+"?keyReport={0}",_urlFinancialHighlightsChartData=_urlFinancialHighlightsBase.replace("{Action}","ChartData"),_urlFinancialHighlightsData=_urlFinancialHighlightsBase.replace("{Action}","FinancialHighlightsData"),Controller,getPopupData,populatePopupData,PopulateDefinitionData,GetDefinitionData,PopulateGroupDescriptionData,GetGroupDescriptions,PopulateGetTypeDescriptionsData,GetTypeDescriptions,PopulateFndgsInformationData,GetFndgsInformation;$.snl.ir.models.api.financialHighlights={},$.snl.ir.models.financialHighlights={},$.snl.ir.models.api.financialHighlights.getChartData=function(n,t,i,r){$.post(_urlFinancialHighlightsChartData.replace("{0}",t),n).done(function(n){$.snl.ir.models.financialHighlights.chartData=$.parseJSON(n.Content).Chart,i(r)}).fail(function(){}).always(function(){})},$.snl.ir.models.api.financialHighlights.getFinancialHighlightsData=function(n,t,i,r){$.post(_urlFinancialHighlightsData.replace("{0}",t),n).done(function(n){$.snl.ir.models.financialHighlights.financialHighlightsData=n,i(r)}).fail(function(){}).always(function(){})},$.snl.ir.controls.chart=function(n){function rt(n){var h=n.loadStockScript?n.loadStockScript:!1,r=$.snl.ir.GetConfiguration("Chart.xml",n.configUrlQueryArgs).Chart;$.preferCulture(g),chartDiv=n.chartDiv,t=n.chartConfig,l=n.chartType,i=n.data,e=n.xAxisType?n.xAxisType:e,w=n.height,b=n.width,o=n.xAxisTypeFormat,k=n.pointStart,d=n.pointInterval,u=n.events,nt=n.frequency,s=n.stacking==0?null:s,c=n.marginRight==0?null:c,$.each(i.Series,function(n,t){data=[],$.each(t.Values,function(n,r){var u={};if(t.IsDrillDown)data[n]=[r.Key,r.Value];else{if(n==0&&r.Value==0?u.y=null:(u.key=r.Key,u.y=r.Value,u.name=r.Name),i.EnableDrillDown&&(u.drilldown=r.Drilldown,u.name=r.Name),r.TransparentColumn){var f=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t.Color.trim()),e=f?parseInt(f[1],16):0,o=f?parseInt(f[2],16):0,s=f?parseInt(f[3],16):0;u.color="rgba("+e+","+o+","+s+",0.30)"}data.push(u)}}),p=Math.max(p,data.length),it.push(t.Name);var r={name:t.Name,id:t.Id,data:data,color:t.Color,showInLegend:t.ShowInLegend,type:t.Type,yAxis:t.YAxisIndex,marker:{enabled:!0,lineColor:null}};t.IsDrillDown?v.push(r):a.push(r)}),$.each(i.YAxis,function(t,i){y.push({title:{text:i.Title,style:{fontWeight:"normal",backgroundColor:"#fff"}},labels:{format:n.pointValueFormat?n.pointValueFormat:"{value:,.2f}",formatter:function(){return $.format(this.value,"n2")}},opposite:i.IsOpposite,showEmpty:!1})}),h?$.when($.getScript($.snl.ir.vars.siteURL+"Scripts/Highstock/js/highstock.js").fail(f)).done(function(){$.when($.getScript($.snl.ir.vars.siteURL+"Scripts/Highstock/js/modules/drilldown.js").fail(f),$.getScript($.snl.ir.vars.siteURL+"Scripts/Highstock/js/modules/exporting.js").fail(f)).then(function(){tt(r)},f)}):tt(r)}function f(n,t,i){$.snl.ir.Log(i)}function tt(n){var f=Highcharts.setOptions({});$(chartDiv).highcharts({lang:{drillUpText:"◁"},credits:{text:"S&P Global Market Intelligence",href:"http://www.spglobal.com/marketintelligence",enabled:n.DisableCredits&&n.DisableCredits.toLowerCase()=="true"?!1:!0},drilldown:{drillUpButton:{relativeTo:"spacingBox",position:{y:2,x:3}}},chart:{type:l,height:w,width:b,marginRight:c,backgroundColor:n.BackgroundColor?n.BackgroundColor:i.BackgroundColor,borderColor:n.BorderColor?n.BorderColor:null,borderRadius:n.BorderRadius?n.BorderRadius:null,events:{load:function(){this.credits.element.onclick=function(){window.open("http://www.spglobal.com/marketintelligence","_blank")},r.chart=this,u&&u.loadCallBack&&u.loadCallBack()},drilldown:function(){r.chart.xAxis[0].options.tickInterval=i.XAxis.DrilldownTickInterval,h=!0},drillup:function(){r.chart.xAxis[0].options.tickInterval=i.XAxis.TickInterval,h=!1}}},subtitle:{text:n.SubTitle?n.SubTitle:null},title:{text:n.Title?n.Title:i.Title},tooltip:{enabled:n.DisableTooltip&&n.DisableTooltip.toLowerCase()=="true"?!1:!0,borderColor:n.TooltipBorderColor?n.TooltipBorderColor:t&&t.toolTip&&t.toolTip.borderColor?t.toolTip.borderColor:null,backgroundColor:n.TooltipBackgroundColor?n.TooltipBackgroundColor:null,borderRadius:n.TooltipBorderRadius?n.TooltipBorderRadius:null,useHTML:n.UseHTML?n.UseHTML:t&&t.toolTip&&t.toolTip.useHTML?t.toolTip.useHTML:!1,style:n.TooltipStyle?n.TooltipStyle:t&&t.toolTip&&t.toolTip.style?t.toolTip.style:f.tooltip.style,formatter:function(){var r,e,u,f;return e=i.XAxis.Categories?this.point.key:this.point.name,f=t&&t.toolTip&&t.toolTip.pointValueDecimalPlaces?t.toolTip.pointValueDecimalPlaces():this.point.y.toString().indexOf(".")>0?2:0,u=$.format(this.point.y,"n"+f),u=u.indexOf("-")==0?''+(g.toLowerCase()=="en-us"?"("+u.replace("-","")+")":u)+"<\/span>":u,r=n.TooltipHeader,r+=n.TooltipBody,r=r.replace("{pointValueFormatted}",u),r=r.replace("{pointName}",e),r=r.replace("{this.series.name}",this.series.name),r=r.replace("{this.point.name}",this.point.name),r=r.replace("{this.point.y}",this.point.y)}},xAxis:{type:e,title:{text:i.XAxis.Title,style:{fontWeight:"normal"}},tickInterval:i.XAxis.TickInterval>0?i.XAxis.TickInterval:nt=="yearly"?31536e6:null,labels:{format:o?"{value:"+o+"}":""},categories:i.XAxis.Categories?i.XAxis.Categories:null},yAxis:y,plotOptions:{area:{turboThreshold:0},column:{stacking:s},series:{dataLabels:{enabled:!1,color:"#FFFFFF"},pointStart:k,pointInterval:d,shadow:!1}},legend:{align:n.LegendAlign?n.LegendAlign:null,layout:n.LegendLayout?n.LegendLayout:null,verticalAlign:"bottom",borderColor:"#CCC",shadow:!1,enabled:n.DisableLegend&&n.DisableLegend.toLowerCase()=="true"?!1:!0,title:{text:n.LegendTitle?n.LegendTitle:null,style:{color:n.LegendTextColor?n.LegendTextColor:null}}},series:a,drilldown:{series:v},navigation:{buttonOptions:{enabled:!1}}})}var r=this,ut,ft,l,i,t,u,a=[],v=[],it=[],y=[],p=0,et,e="category",w,b,o,k,d,s="normal",h=!1,c=35,g=window.snl.ir.globalVars.currentPageViewModel.BaseViewModel.CurrentCulture,nt="daily";r.exportChart=function(n,t){var i=r.chart;r.chart.exportChart(n,t),r.chart=i},r.getSVG=function(){var n=r.chart,t=r.chart.getSVG();return r.chart=n,t},r.getIsDrillDown=function(){return h},rt(n)};var previousSelectedRow=null,chartWrapper=null,isMobileViewLastBreakPointEvent,lineItemChartObj,financialHighlightsFormData="",columnOrderChanged=!1,irwResponsiveTblColumnList=null;$(".irwResponsiveTable").bind("footable_breakpoint",function(){var t=$(".breakpoint").length>=1;t&&t!=isMobileViewLastBreakPointEvent?$("tr.irwChart").hide():t||t==isMobileViewLastBreakPointEvent||$(".irwResponsiveTable").trigger("footable_collapse_all"),isMobileViewLastBreakPointEvent=t});var sortList=function(n){$("#"+n).html($("#"+n+" option").sort(function(n,t){return n.text==t.text?0:n.text=1,r=$(this).closest("tr.hover"),t=getChartRow(r,i),previousSelectedRow!=null&&(previousSelectedRow!=r.attr("rel")&&i?$(".irwResponsiveTable").data("footable").collapseRow($("tr.hover[rel="+previousSelectedRow+"]")):previousSelectedRow!=r.attr("rel")&&$("tr.hover[rel="+previousSelectedRow+"]").nextAll("tr.irwChart").first().hide()),n.target.tagName.toLowerCase()=="td"&&window.snl.ir.globalVars.currentPageViewModel.DisplayQuickChartLink==!0&&(i?i&&t.find(".irwPopUpChartToolkit").slideDown():(t.find(".text-primary.irwChartLoder").addClass("irwloadchart").addClass("open").fadeIn(),t.fadeToggle(),t.find(".irwChart").slideToggle(),t.find(".irwPopUpChartToolkit").slideToggle()),$("input[name='keyItemHidden']").val($(this).attr("rel")),displayChart(r),previousSelectedRow=$(this).attr("rel"))},setupFootable=function(){$(".irwResponsiveTable").footable({tFormat:"AsReports"}).bind("footable_row_expanded",function(){$(".irwChartMob").parent("div").prev().css("display","none"),setupPopupClickEvents()}),$(".irwResponsiveTable").footable({tFormat:"AsReports"}).bind("footable_resized",function(){$(".irwChartMob").parent("div").prev().css("display","none"),setupPopupClickEvents()})},getChartRow=function(n,t){var i;return i=t?n.nextAll("tr.footable-row-detail").first():n.nextAll("tr.irwChart").first()},displayChart=function(n){var t,i=$("input[name='keyReportHidden']").val();t=financialHighlightsFormData==""?"periodOptionLinkHidden="+$("input[name='periodOptionLinkHidden']").val():financialHighlightsFormData,t+="&keyItemHidden="+$("input[name='keyItemHidden']").val(),$.snl.ir.models.api.financialHighlights.getChartData(t,i,populateChartData,{selectedRow:n})},populateChartData=function(n){var i,u=$.snl.ir.models.financialHighlights.chartData,f,t,r;i=$(".breakpoint").length>=1,t=getChartRow(n.selectedRow,i),r=i?t.find(".irwChartMob"):t.find(".irwChart"),$("#lineItemChart").length==0&&$("#financialHighlightsForm").after(lineItemChartObj),r.css("display","block"),$("#lineItemChart").appendTo(r),$("#lineItemChart").css("display","block"),t.find(".irwPopUpChartToolkit").show(),bindChart(),setChartWidth(),lineItemChartObj=$("#lineItemChart")},bindChart=function(n,t){var i=$.snl.ir.models.financialHighlights.chartData,u,f=[],r;columnOrderChanged&&(i.Series[0].Values.reverse(),i.XAxis.Categories.reverse()),chartWrapper==null?(u=i.Series[0].Color,i.Series[0].Color=i.Series[0].Color,r={chartDiv:$("#lineItemChart"),configUrlQueryArgs:"&keyReport="+$("input[name='keyReportHidden']").val(),loadStockScript:!0,chartType:t?t:"column",data:i,chartConfig:{toolTip:{borderColor:u}},events:{loadCallBack:n}},i.Series[0].Values.length>0&&(r.pointValueFormat=i.Series[0].Values[0].Value.toString().indexOf(".")>0?"{value:,.2f}":"{value:,.0f}"),chartWrapper=new $.snl.ir.controls.chart(r)):($.each(i.Series[0].Values,function(n,t){f.push({key:t.Key,y:t.Value,name:t.Name})}),chartWrapper.chart.setTitle({text:i.Title},{text:null},!1),chartWrapper.chart.xAxis[0].setCategories(i.XAxis.Categories,!1),chartWrapper.chart.yAxis[0].update({title:{text:i.YAxis[0].Title}},!1),chartWrapper.chart.series[0].name=i.Series[0].Name,chartWrapper.chart.series[0].setData(f,!1),chartWrapper.chart.redraw()),window.snl.ir.globalVars.currentPageViewModel.Chart=i,$("span.text-primary.irwChartLoder.irwloadchart.open").removeClass("irwloadchart").fadeOut()},setChartWidth=function(){$("#lineItemChart").width($("#irwFinlHighlightsContent").width()-85)},toggleChartTypePanel=function(n){var t=$(n).find("div.charttype");t.is(":visible")?$(n).find("div.charttype").hide():$(n).find("div.charttype").show()},toggleChartType=function(n){var t=$(n).attr("value");chartWrapper.chart.series[0].update({type:t}),$(".graph_radio").removeClass("graph_but_active"),$(".graph_radio[value='"+t+"']").addClass("graph_but_active")},exportChartPDF=function(){var t;t="FinancialHighlights_Chart",t+="_"+$("tr.irwChart:visible").prev().find("td:first a").text().replace(/\s/g,"_"),t=t.replace(",","_"),t=t.replace("-","_"),t=t.replace("'",""),window.snl.ir.globalVars.useHighStockServer.toLowerCase()=="true"?chartWrapper.exportChart({type:"application/pdf",filename:t},null):exportView("pdf",!0,"ChartData",encodeURIComponent(t))};window.snl.ir.globalVars.exportCallback=function(n){n.Chart!=null&&(n.Chart.SVG=GetChartSVG())};var loadPrintView=function(n){var t;t="&chartType="+$(n).closest(".PopUpChartToolkit").find(".graph_but_active").attr("value"),t+="&keyItemHidden="+$(n).closest("tr").prev().attr("rel"),t+="&columnOrderChanged="+columnOrderChanged.toString(),t+="&"+(financialHighlightsFormData!=""?financialHighlightsFormData:"periodOptionLinkHidden="+$("input[name='periodOptionLinkHidden']").val()),window.open($.snl.ir.vars.controllerURL+"/Chart"+$.snl.ir.vars.urlSuffix+t,"_blank")},printChart=function(){chartWrapper.chart.container.style.display="block",setTimeout(function(){chartWrapper.chart.print()},1e3)},setChartPrintWidth=function(){$("#lineItemChart").width($(".irwChart").width()-65)},loadChartPrintView=function(){var n=document.body.childNodes;$("body").css("background","none"),$.each(n,function(n,t){t.nodeType===1&&(t.style.display="none")}),$.snl.ir.models.financialHighlights.chartData=$.parseJSON($("#chartModelHidden").val()),$(".irwChart").appendTo($("body")),setChartPrintWidth(),bindChart(printChart,$("#chartTypeHidden").val())},submitForm=function(){var n,t="",i="";$(".irwLoadingBox .irwLoadingBg, .irwLoadingBox .irwLoading").show(),n="irwSelectedPeriod="+$("#irwSelectedPeriod option:selected").val(),n+="&periodOptionLinkHidden="+$("input[name='periodOptionLinkHidden']").val(),$("#irwSelectedCustomPeriods option").each(function(){t+=encodeURIComponent($(this).val())+",",i+=encodeURIComponent($(this).text())+","}),t.length>0&&(n+="&irwSelectedCustomPeriods="+t.substring(0,t.length-1),n+="&irwSelectedDisplayFiscalPeriod="+i.substring(0,i.length-1)),financialHighlightsFormData=n,columnOrderChanged=!1,getFinancialHighlightsData(n)},getFinancialHighlightsData=function(n){var t=$("input[name='keyReportHidden']").val();$.snl.ir.models.api.financialHighlights.getFinancialHighlightsData(n,t,populateFinancialHighlightsData)},populateFinancialHighlightsData=function(){var n=$.snl.ir.models.financialHighlights.financialHighlightsData;$(".irwResponsiveTable").remove(),$("#irwFinlHighlightsContent").html(n),$(".irwResponsiveTable").footable({tFormat:"AsReports"}),$(".irwResponsiveTable").data("footable").columns!=null&&(irwResponsiveTblColumnList=$(".irwResponsiveTable").data("footable").columns),setupFootable(),setupPopupClickEvents(),setupRowClickEvents(),toggleColumnOrderPanel(),$(".irwLoadingBox .irwLoadingBg, .irwLoadingBox .irwLoading").hide()},toggleColumnOrderPanel=function(){$("#columnOrderButtonsOuterPanel").addClass("hidden"),$("#firstColumnMostRecentDate").val()!=""&&($("#columnOrderButtonsInnerPanel button").removeClass("btn-primary active"),$("#firstColumnMostRecentDate").val()=="true"?$("#btnMostRecentDateFirst").addClass("btn-primary active"):$("#btnMostRecentDateLast").addClass("btn-primary active"),$("#columnOrderButtonsOuterPanel").removeClass("hidden"))},showValueInfo=function(n,t,i,r,u,f,e,o){var s="";s=$("input[name='sourcePopupUrlHidden']").val()+"?KeyItem="+t+"&keyTable="+i+"&sOID="+r+"¤cy="+u+"&sMainValue="+f+"&keyObject="+e+"&FiscalQuarter="+o+"&KeyReport="+$("input[name='keyReportHidden']").val(),$("#SourcePopupModel .irwLoading").show(),$.get(s).done(function(n){$("#SourcePopupDive").html(JSON.parse(n.Content).UpperLabel),$("#SourcePopupDiveContent").html(JSON.parse(n.Content).aspXML),$("#SourcePopupDiveFooter").html(JSON.parse(n.Content).LowerLabel)}).fail(function(n){$.snl.ir.Log(n.responseText),$("#SourcePopupDive").text("Could not load Data")}).always(function(){SourcePopupModel()})};$(document).ready(function(){if($("#irwFinancialHighlightsChart").length==1){$(window).resize(function(){setChartPrintWidth()}),columnOrderChanged=$("input[name='columnOrderChangedHidden']").val()=="true",loadChartPrintView();return}irwResponsiveTblColumnList=$(".irwResponsiveTable").data("footable").columns,setupFootable();$(document).on("click",".irwFinlBoxTrigger",function(n){n.preventDefault();var i=$(this).find(".fa").attr("class"),t=$(this).next(".irwBoxBody");i=="fa fa-times"?($(this).find(".fa").attr("class","fa fa-edit"),t.removeClass("show").addClass("hidden")):($(this).find(".fa").attr("class","fa fa-times"),t.removeClass("hidden").addClass("show"))});$(window).resize(function(){setChartWidth()}),$("#irwSelectedCustomPeriods option").each(function(){$(".irwPeriodLists option[value="+this.value+"]").remove()}),$("#irwSelectedCustomPeriods option").length==5&&$(".move").hide(),$(".remove").click(function(){$("#irwSelectedCustomPeriods option:selected").each(function(){var n=$(this).attr("type");n==undefined&&$(this).remove(),$(this).appendTo("#irw"+n)}),$(".irwPeriodLists option:selected").removeAttr("selected"),sortList("irwQ"),sortList("irwY"),sortList("irwHY"),sortList("irwLTM"),sortList("irwYTD"),$("#irwSelectedCustomPeriods option").length<5&&$(".move").show()}),$(".move").click(function(){var n;n=$(".irwPeriodLists:visible option:selected").length+$("#irwSelectedCustomPeriods option").length,n>5?$(".irwPeriodLists:visible option:selected:lt("+(5-n)+")").appendTo("#irwSelectedCustomPeriods"):$(".irwPeriodLists:visible option:selected").appendTo("#irwSelectedCustomPeriods"),$(".irwPeriodLists option:selected").removeAttr("selected"),$("#irwSelectedCustomPeriods option:selected").removeAttr("selected"),sortList("irwSelectedCustomPeriods"),$("#irwSelectedCustomPeriods option").length==5&&$(this).hide()});$("#irwSelectedPeriod").on("change",function(){$(".irwPeriodLists").addClass("hidden"),$("#irw"+this.value).removeClass("hidden")});$("#firstColumnHeaderLink").click(function(){$(".PopupModel .irwLoading").show(),GetDefinitionData($(this).attr("ItemName"),0,$(this).attr("Title"))}),$("#updateFinlHighlights").click(function(){$("input[name='periodOptionLinkHidden']").val(""),submitForm()}),$(".irwFinlPrePeriods a").click(function(){$("input[name='periodOptionLinkHidden']").val($(this).attr("rel")),$("#irwSelectedCustomPeriods option").each(function(n,t){$(t).remove()}),submitForm()}),$("#columnOrderButtonsInnerPanel button").click(function(){var u=$(".breakpoint").length>=1,n,i=[],t,r;if(!$(this).hasClass("active")){$("#columnOrderButtonsInnerPanel button").removeClass("btn-primary active"),$(".irwResponsiveTable").trigger("footable_collapse_all"),$("tr.hover[rel="+previousSelectedRow+"]").nextAll("tr.irwChart").first().hide(),$(".footable-row-detail").remove(),$("tr.hover").each(function(n,t){$(t).data("detail_created",!1)}),n=$("th[rel='dataItem']").length-1,$("tr.hover").each(function(t,i){for(var r=0;r<=n;r++)t==0&&($("th[rel='dataItem']").eq(n).attr("data-hide","phone"+(r<=2?",tablet":"")),$("th.irwFinlHighlightsyear").eq(r).after($("th[rel='dataItem']").eq(n))),$(i).find("td").eq(r).after($(i).find("td[rel='dataItem']").eq(n))});for(r in irwResponsiveTblColumnList)t=irwResponsiveTblColumnList[r],t.index>0&&t.name!=""&&(i.push(t),delete $(".irwResponsiveTable").data("footable").columns[r]);i.reverse(),$(".irwResponsiveTable").data("footable").columns=irwResponsiveTblColumnList,$.each(i,function(n,t){t.index=n+1,t.matches[0]=t.index,t.hide.tablet=n<=2?!0:!1,$(".irwResponsiveTable").data("footable").columns[t.index]=t}),$(".irwResponsiveTable").data("footable").redraw(),window.snl.ir.globalVars.currentPageViewModel.Report.HeaderRow.reverse(),window.snl.ir.globalVars.currentPageViewModel.Report.HeaderRow.unshift(window.snl.ir.globalVars.currentPageViewModel.Report.HeaderRow.pop()),$.each(window.snl.ir.globalVars.currentPageViewModel.Report.DataRows,function(n,t){t.DataPoints.reverse()}),previousSelectedRow=null,columnOrderChanged=!columnOrderChanged,irwResponsiveTblColumnList=$(".irwResponsiveTable").data("footable").columns,$(this).addClass("btn-primary active")}}),setupPopupClickEvents(),setupRowClickEvents(),toggleColumnOrderPanel(),isMobileViewLastBreakPointEvent=$(".breakpoint").length>=1}),$(document).ready(function(){window.snl.ir.globalVars.currentPageViewModel.DisplayExcelDownloadLink==!1&&($("#excel_toolkit").css("display","none"),$("#exceldesc_toolkit").css("display","none")),$("a[rel^='showDataSourceLink']").attr("data-toggle","modal").attr("data-target","#SourcePopupModel").addClass("SourcePopupModel");$("#SourcePopupModel").on("hidden.bs.modal",function(){$("#SourcePopupDive, #SourcePopupDiveContent, #SourcePopupDiveFooter").empty()})}),Controller="CorporateProfile",$.snl.ir.models.api.FieldDescription={},$.snl.ir.models.FieldDescription={},$.snl.ir.models.api.FieldDescription.getPopupData=function(n,t,i){var u=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),f=u.replace("{Action}","GetPopupData")+"?KeyDoc={KeyDoc}&Type={Type}",r=f.replace("{KeyDoc}",n);r=r.replace("{Type}",t),$.post(r).done(function(n){$.snl.ir.models.api.FieldDescription.PopupData=n,i()}).fail(function(){alert("error")}).always(function(){})},getPopupData=function(n,t){$("#PopupDive").html(""),$("#ModelTitle").html(t),$.snl.ir.models.api.FieldDescription.getPopupData(n,t,populatePopupData)},populatePopupData=function(){var n=$.snl.ir.models.api.FieldDescription.PopupData;$(".PopupModel .irwLoading").hide(),$("#PopupDive").html(n),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},$(document).delegate(".IrwFilingType","click",function(){$(".irwGroupBack").hide(),$(".PopupModel .irwLoading").show();var t=$(this).attr("FileType");getPopupData(0,t)}),$.snl.ir.models.api.FieldDescription.GetDefinitionData=function(n,t,i){var u=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),f=u.replace("{Action}","GetDefinition")+"?itemName={itemName}&keyItem={keyItem}",r=f.replace("{itemName}",n);r=r.replace("{keyItem}",t),$.post(r).done(function(n){$.snl.ir.models.api.FieldDescription.DefinitionData=n,i()}).fail(function(){alert("error")}).always(function(){})},PopulateDefinitionData=function(){var n=$.snl.ir.models.api.FieldDescription.DefinitionData;$("#PopupDive").html(n),$("#ModelTitle").html($(".irwHiddenCaption").attr("value")),$(".PopupModel .irwLoading").hide(),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},GetDefinitionData=function(n,t){$("#PopupDive").html(""),$("#ModelTitle").html(" "),$.snl.ir.models.api.FieldDescription.GetDefinitionData(n,t,PopulateDefinitionData)},$(document).delegate(".FinancialData","click",function(){$(".PopupModel .irwLoading").show();var t=$(this).attr("ItemName"),i=$(this).attr("Title");GetDefinitionData(t,0,i)}),$.snl.ir.models.api.FieldDescription.GetGroupDescriptions=function(n){var i=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),t=i.replace("{Action}","GetGroupDescriptions");console.log(t),$.post(t).done(function(t){$.snl.ir.models.api.FieldDescription.GroupDescriptionData=t,n()}).fail(function(){alert("error")}).always(function(){})},PopulateGroupDescriptionData=function(){var n=$.snl.ir.models.api.FieldDescription.GroupDescriptionData;$("#PopupDive").html(n),$(".PopupModel .irwLoading").hide(),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},GetGroupDescriptions=function(){$("#PopupDive").html(""),$("#ModelTitle").html("Group Descriptions"),$.snl.ir.models.api.FieldDescription.GetGroupDescriptions(PopulateGroupDescriptionData)},$(document).delegate(".Descriptions","click",function(){$(".irwGroupBack").hide(),$(".PopupModel .irwLoading").show(),GetGroupDescriptions()}),$.snl.ir.models.api.FieldDescription.GetTypeDescriptions=function(n,t){var i=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),r=i.replace("{Action}","GetTypeDescriptions")+"?alias={alias}",u=r.replace("{alias}",n);$.post(u).done(function(n){$.snl.ir.models.api.FieldDescription.TypeDescriptionData=n,t()}).fail(function(){alert("error")}).always(function(){})},PopulateGetTypeDescriptionsData=function(){var n=$.snl.ir.models.api.FieldDescription.TypeDescriptionData;$("#PopupDive").html(n),$(".PopupModel .irwLoading").hide(),$(".irwGroupBack").show(),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},GetTypeDescriptions=function(n){$("#PopupDive").html(""),$("#ModelTitle").html(n),$.snl.ir.models.api.FieldDescription.GetTypeDescriptions(n,PopulateGetTypeDescriptionsData)},$(document).delegate(".TypeDescriptions","click",function(){$(".PopupModel .irwLoading").show();var t=$(this).attr("Alias");GetTypeDescriptions(t)}),$.snl.ir.models.api.FieldDescription.GetFndgsInformation=function(n){var t=$.snl.ir.models.api.urlTemplate.replace("{Controller}",Controller),i=t.replace("{Action}","GetFndgsInformation");$.post(i).done(function(t){$.snl.ir.models.api.FieldDescription.FndgsInformationData=t,n()}).fail(function(){alert("error")}).always(function(){})},PopulateFndgsInformationData=function(){var n=$.snl.ir.models.api.FieldDescription.FndgsInformationData;$("#PopupDive").html(n),$(".PopupModel .irwLoading").hide(),$(".irwScrollbar").mCustomScrollbar({theme:"bootstrap-thin",advanced:{updateOnContentResize:!0}})},GetFndgsInformation=function(){$("#PopupDive").html(""),$("#ModelTitle").html("Funding Description"),$.snl.ir.models.api.FieldDescription.GetFndgsInformation(PopulateFndgsInformationData)},$(document).delegate(".FundingDescription","click",function(){$(".PopupModel .irwLoading").show(),GetFndgsInformation()});var popup,url,spanID,tries=1,nsloaded=!1,popupNotReady=!1,pdfDocument=!1