jQuery.template("Tmpl-ranking-template",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="ranking-div" style="'),typeof cssStyles!="undefined"&&cssStyles!=null&&__.push($.encode(typeof cssStyles=="function"?cssStyles.call($item):cssStyles)),__.push('">   <div class="ranking-members">    '),typeof uniqueMembers!="undefined"&&uniqueMembers!=null&&$.each(typeof uniqueMembers=="function"?uniqueMembers.call($item):uniqueMembers,function(i,member){with(this)__.push('    <div     data-key="'),typeof member.memberKey!="undefined"&&member.memberKey!=null&&__.push($.encode(typeof member.memberKey=="function"?member.memberKey.call($item):member.memberKey)),__.push('"     class="member-holder'),typeof member.isBaseMember!="undefined"&&member.isBaseMember!=null&&(typeof member.isBaseMember=="function"?member.isBaseMember.call($item):member.isBaseMember)&&__.push(" base-member"),__.push('"     data-visible-member="'),typeof(member.memberRank<0)!="undefined"&&member.memberRank<0!=null&&(typeof(member.memberRank<0)=="function"?(member.memberRank<0).call($item):member.memberRank<0)?__.push("hidden-member"):!0&&__.push("visible-member"),__.push('"     style="top: -'),typeof memberHeight!="undefined"&&memberHeight!=null&&__.push($.encode(typeof memberHeight=="function"?memberHeight.call($item):memberHeight)),__.push("px; height: "),typeof memberHolderHeight!="undefined"&&memberHolderHeight!=null&&__.push($.encode(typeof memberHolderHeight=="function"?memberHolderHeight.call($item):memberHolderHeight)),__.push('px;"     data-member-name="'),typeof member.memberName!="undefined"&&member.memberName!=null&&__.push($.encode(typeof member.memberName=="function"?member.memberName.call($item):member.memberName)),__.push('">       <div class="member-rank" style="display: inline; height: '),typeof(memberHolderHeight-2)!="undefined"&&memberHolderHeight-2!=null&&__.push($.encode(typeof(memberHolderHeight-2)=="function"?(memberHolderHeight-2).call($item):memberHolderHeight-2)),__.push("px;background-color: "),typeof member.isBaseMember!="undefined"&&member.isBaseMember!=null&&(typeof member.isBaseMember=="function"?member.isBaseMember.call($item):member.isBaseMember)?(__.push("#"),typeof viewState.baseRegionColor!="undefined"&&viewState.baseRegionColor!=null&&__.push($.encode(typeof viewState.baseRegionColor=="function"?viewState.baseRegionColor.call($item):viewState.baseRegionColor)),__.push("")):!0&&(__.push("#"),typeof viewState.rankColor!="undefined"&&viewState.rankColor!=null&&__.push($.encode(typeof viewState.rankColor=="function"?viewState.rankColor.call($item):viewState.rankColor)),__.push("")),__.push(';">      '),typeof(member.memberRank<0)!="undefined"&&member.memberRank<0!=null&&(typeof(member.memberRank<0)=="function"?(member.memberRank<0).call($item):member.memberRank<0)?(__.push(""),typeof i!="undefined"&&i!=null&&__.push($.encode(typeof i=="function"?i.call($item):i)),__.push("")):!0&&(__.push(""),typeof member.memberRank!="undefined"&&member.memberRank!=null&&__.push($.encode(typeof member.memberRank=="function"?member.memberRank.call($item):member.memberRank)),__.push("")),__.push("     <\/div>       "),typeof viewState.displayFlags!="undefined"&&viewState.displayFlags!=null&&(typeof viewState.displayFlags=="function"?viewState.displayFlags.call($item):viewState.displayFlags)&&(__.push('     <div class="member-flag" data-region-id="'),typeof member.RegionId!="undefined"&&member.RegionId!=null&&__.push($.encode(typeof member.RegionId=="function"?member.RegionId.call($item):member.RegionId)),__.push('" style="height: '),typeof memberHolderHeight!="undefined"&&memberHolderHeight!=null&&__.push($.encode(typeof memberHolderHeight=="function"?memberHolderHeight.call($item):memberHolderHeight)),__.push('px;">      '),typeof(member.RegionId.length==2)!="undefined"&&member.RegionId.length==2!=null&&(typeof(member.RegionId.length==2)=="function"?(member.RegionId.length==2).call($item):member.RegionId.length==2)?(__.push('      <span class="'),typeof member.RegionId!="undefined"&&member.RegionId!=null&&__.push($.encode(typeof member.RegionId=="function"?member.RegionId.call($item):member.RegionId)),__.push('"><\/span>      ')):!0&&__.push('      <span class="empty"><\/span>      '),__.push("     <\/div>     ")),__.push('       <div class="member-name" data-key="'),typeof member.memberKey!="undefined"&&member.memberKey!=null&&__.push($.encode(typeof member.memberKey=="function"?member.memberKey.call($item):member.memberKey)),__.push('" style="display: inline;height: '),typeof memberHolderHeight!="undefined"&&memberHolderHeight!=null&&__.push($.encode(typeof memberHolderHeight=="function"?memberHolderHeight.call($item):memberHolderHeight)),__.push('px;">'),typeof member.memberName!="undefined"&&member.memberName!=null&&__.push($.encode(typeof member.memberName=="function"?member.memberName.call($item):member.memberName)),__.push('<\/div>     <div class="member-value" style="display: inline;height: '),typeof memberHolderHeight!="undefined"&&memberHolderHeight!=null&&__.push($.encode(typeof memberHolderHeight=="function"?memberHolderHeight.call($item):memberHolderHeight)),__.push('px;">'),typeof member.memberValue!="undefined"&&member.memberValue!=null&&__.push($.encode(typeof member.memberValue=="function"?member.memberValue.call($item):member.memberValue)),__.push('<\/div>     <div class="member-bar-holder" style="height: '),typeof memberHolderHeight!="undefined"&&memberHolderHeight!=null&&__.push($.encode(typeof memberHolderHeight=="function"?memberHolderHeight.call($item):memberHolderHeight)),__.push('px;">      <div class="bar-boundary" style="height: '),typeof memberHolderHeight!="undefined"&&memberHolderHeight!=null&&__.push($.encode(typeof memberHolderHeight=="function"?memberHolderHeight.call($item):memberHolderHeight)),__.push('px;">       <div class="bar"        data-index="'),typeof member.index!="undefined"&&member.index!=null&&__.push($.encode(typeof member.index=="function"?member.index.call($item):member.index)),__.push('"        style="margin-top: 1px; background-color: '),typeof member.isBaseMember!="undefined"&&member.isBaseMember!=null&&(typeof member.isBaseMember=="function"?member.isBaseMember.call($item):member.isBaseMember)?(__.push("#"),typeof viewState.baseRegionColor!="undefined"&&viewState.baseRegionColor!=null&&__.push($.encode(typeof viewState.baseRegionColor=="function"?viewState.baseRegionColor.call($item):viewState.baseRegionColor)),__.push("")):!0&&(__.push("#"),typeof viewState.barColor!="undefined"&&viewState.barColor!=null&&__.push($.encode(typeof viewState.barColor=="function"?viewState.barColor.call($item):viewState.barColor)),__.push("")),__.push(";height: "),typeof(memberHolderHeight-2)!="undefined"&&memberHolderHeight-2!=null&&__.push($.encode(typeof(memberHolderHeight-2)=="function"?(memberHolderHeight-2).call($item):memberHolderHeight-2)),__.push('px;"        >        &nbsp;       <\/div>      <\/div>     <\/div>    <\/div>    ')}),__.push("   <\/div>  <\/div>  "),typeof multipleTimeMembers!="undefined"&&multipleTimeMembers!=null&&(typeof multipleTimeMembers=="function"?multipleTimeMembers.call($item):multipleTimeMembers)&&__.push('  <div class="map-timebar">   div.map-timebar  <\/div>  '),__.push("");return __});jQuery.template("Tmpl-tranking-template",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="ranking-div" style="'),typeof cssStyles!="undefined"&&cssStyles!=null&&__.push($.encode(typeof cssStyles=="function"?cssStyles.call($item):cssStyles)),__.push('">  <table width="100%" data-tranking-table>   <thead>    <tr>     '),typeof headerColumns!="undefined"&&headerColumns!=null&&$.each(typeof headerColumns=="function"?headerColumns.call($item):headerColumns,function(i,member){with(this)__.push('      <th       class="'),typeof member.className!="undefined"&&member.className!=null&&__.push($.encode(typeof member.className=="function"?member.className.call($item):member.className)),__.push(" "),typeof(i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")!="undefined"&&(i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")!=null&&__.push($.encode(typeof(i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")=="function"?(i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"").call($item):i===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")),__.push('"       '),typeof(member.dataTimePoint!=null)!="undefined"&&member.dataTimePoint!=null!=null&&(typeof(member.dataTimePoint!=null)=="function"?(member.dataTimePoint!=null).call($item):member.dataTimePoint!=null)&&(__.push('        data-time-point="'),typeof member.dataTimePoint!="undefined"&&member.dataTimePoint!=null&&__.push($.encode(typeof member.dataTimePoint=="function"?member.dataTimePoint.call($item):member.dataTimePoint)),__.push('"       ')),__.push("      >       "),typeof member.text!="undefined"&&member.text!=null&&__.push($.encode(typeof member.text=="function"?member.text.call($item):member.text)),__.push("      <\/th>     ")}),__.push("    <\/tr>   <\/thead>   <tbody>    "),typeof rows!="undefined"&&rows!=null&&$.each(typeof rows=="function"?rows.call($item):rows,function(n,cells){with(this)__.push("     <tr>      "),typeof cells!="undefined"&&cells!=null&&$.each(typeof cells=="function"?cells.call($item):cells,function(j,cell){with(this)__.push('       <td        class="'),typeof(j===1?" stub-column":"")!="undefined"&&(j===1?" stub-column":"")!=null&&__.push($.encode(typeof(j===1?" stub-column":"")=="function"?(j===1?" stub-column":"").call($item):j===1?" stub-column":"")),__.push(" "),typeof(cell?"":" no-data")!="undefined"&&(cell?"":" no-data")!=null&&__.push($.encode(typeof(cell?"":" no-data")=="function"?(cell?"":" no-data").call($item):cell?"":" no-data")),__.push(" "),typeof(j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")!="undefined"&&(j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")!=null&&__.push($.encode(typeof(j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")=="function"?(j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"").call($item):j===activeColumnIndex+1&&headerColumns.length>2?"active-column":"")),__.push(" "),typeof(cell&&typeof cell.Value=="number"?" data-cell":"")!="undefined"&&(cell&&typeof cell.Value=="number"?" data-cell":"")!=null&&__.push($.encode(typeof(cell&&typeof cell.Value=="number"?" data-cell":"")=="function"?(cell&&typeof cell.Value=="number"?" data-cell":"").call($item):cell&&typeof cell.Value=="number"?" data-cell":"")),__.push(" "),typeof(cell&&cell.isBaseMember)!="undefined"&&(cell&&cell.isBaseMember)!=null&&(typeof(cell&&cell.isBaseMember)=="function"?(cell&&cell.isBaseMember).call($item):cell&&cell.isBaseMember)&&__.push("base-member"),__.push('">        '),typeof cell!="undefined"&&cell!=null&&(typeof cell=="function"?cell.call($item):cell)?(__.push("         "),typeof(j===0)!="undefined"&&j===0!=null&&(typeof(j===0)=="function"?(j===0).call($item):j===0)?(__.push("          "),typeof displayRanking!="undefined"&&displayRanking!=null&&(typeof displayRanking=="function"?displayRanking.call($item):displayRanking)&&(__.push('           <div class="rank" style="min-width:'),typeof rankWidth!="undefined"&&rankWidth!=null&&__.push($.encode(typeof rankWidth=="function"?rankWidth.call($item):rankWidth)),__.push("px;max-width:"),typeof rankWidth!="undefined"&&rankWidth!=null&&__.push($.encode(typeof rankWidth=="function"?rankWidth.call($item):rankWidth)),__.push('px;">            '),typeof cell.tuple!="undefined"&&cell.tuple!=null&&(typeof cell.tuple=="function"?cell.tuple.call($item):cell.tuple)&&(__.push(""),typeof cell.tuple.rank!="undefined"&&cell.tuple.rank!=null&&__.push($.encode(typeof cell.tuple.rank=="function"?cell.tuple.rank.call($item):cell.tuple.rank)),__.push("")),__.push("           <\/div>          ")),__.push("          "),typeof displayFlags!="undefined"&&displayFlags!=null&&(typeof displayFlags=="function"?displayFlags.call($item):displayFlags)&&(__.push('           <div class="member-flag" data-region-id="'),typeof cell.RegionId!="undefined"&&cell.RegionId!=null&&__.push($.encode(typeof cell.RegionId=="function"?cell.RegionId.call($item):cell.RegionId)),__.push('" style="min-width:'),typeof flagWidth!="undefined"&&flagWidth!=null&&__.push($.encode(typeof flagWidth=="function"?flagWidth.call($item):flagWidth)),__.push("px;max-width:"),typeof flagWidth!="undefined"&&flagWidth!=null&&__.push($.encode(typeof flagWidth=="function"?flagWidth.call($item):flagWidth)),__.push('px;">            '),typeof(cell.tuple&&cell.tuple.RegionId)!="undefined"&&(cell.tuple&&cell.tuple.RegionId)!=null&&(typeof(cell.tuple&&cell.tuple.RegionId)=="function"?(cell.tuple&&cell.tuple.RegionId).call($item):cell.tuple&&cell.tuple.RegionId)?(__.push('             <span class="'),typeof cell.tuple.RegionId.toLowerCase!="undefined"&&cell.tuple.RegionId.toLowerCase!=null&&__.push($.encode(cell.tuple.RegionId.toLowerCase())),__.push('"><\/span>            ')):!0&&__.push('             <span class="empty"><\/span>            '),__.push("           <\/div>          ")),__.push('          <div class="stub-name" style="min-width:'),typeof stubNameWidth!="undefined"&&stubNameWidth!=null&&__.push($.encode(typeof stubNameWidth=="function"?stubNameWidth.call($item):stubNameWidth)),__.push("px;max-width:"),typeof stubNameWidth!="undefined"&&stubNameWidth!=null&&__.push($.encode(typeof stubNameWidth=="function"?stubNameWidth.call($item):stubNameWidth)),__.push("px;"),typeof stubNameColor!="undefined"&&stubNameColor!=null&&(typeof stubNameColor=="function"?stubNameColor.call($item):stubNameColor)&&(__.push("color:"),typeof stubNameColor!="undefined"&&stubNameColor!=null&&__.push($.encode(typeof stubNameColor=="function"?stubNameColor.call($item):stubNameColor)),__.push(";")),__.push('">           <a href="javascript:void(0)"              dataset="'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('"              dimension="'),typeof stubDimensionId!="undefined"&&stubDimensionId!=null&&__.push($.encode(typeof stubDimensionId=="function"?stubDimensionId.call($item):stubDimensionId)),__.push('"              dimensionmemberkey="'),typeof(cell.tuple?cell.tuple.$Stub:null)!="undefined"&&(cell.tuple?cell.tuple.$Stub:null)!=null&&__.push($.encode(typeof(cell.tuple?cell.tuple.$Stub:null)=="function"?(cell.tuple?cell.tuple.$Stub:null).call($item):cell.tuple?cell.tuple.$Stub:null)),__.push('"              class="ranking-param-link"              title="'),typeof cell.Value!="undefined"&&cell.Value!=null&&__.push($.encode(typeof cell.Value=="function"?cell.Value.call($item):cell.Value)),__.push('">            '),typeof cell.Value!="undefined"&&cell.Value!=null&&__.push($.encode(typeof cell.Value=="function"?cell.Value.call($item):cell.Value)),__.push('           <\/a>          <\/div>          <div class="bar-holder" style="min-width:'),typeof barHolderWidth!="undefined"&&barHolderWidth!=null&&__.push($.encode(typeof barHolderWidth=="function"?barHolderWidth.call($item):barHolderWidth)),__.push("px;max-width:"),typeof barHolderWidth!="undefined"&&barHolderWidth!=null&&__.push($.encode(typeof barHolderWidth=="function"?barHolderWidth.call($item):barHolderWidth)),__.push('px;">           '),typeof(cell.tuple&&cell.percentage)!="undefined"&&(cell.tuple&&cell.percentage)!=null&&(typeof(cell.tuple&&cell.percentage)=="function"?(cell.tuple&&cell.percentage).call($item):cell.tuple&&cell.percentage)&&(__.push('            <div class="bar"              data-different-signs="'),typeof responseHasDifferentSigns!="undefined"&&responseHasDifferentSigns!=null&&__.push($.encode(typeof responseHasDifferentSigns=="function"?responseHasDifferentSigns.call($item):responseHasDifferentSigns)),__.push('"              data-index="'),typeof(cell.tuple.rank-1)!="undefined"&&cell.tuple.rank-1!=null&&__.push($.encode(typeof(cell.tuple.rank-1)=="function"?(cell.tuple.rank-1).call($item):cell.tuple.rank-1)),__.push('"              data-tooltip-data="'),typeof JSON.stringify!="undefined"&&JSON.stringify!=null&&__.push($.encode(JSON.stringify(cell.tuple))),__.push('"              '),typeof Knoema.Utils.isRtl!="undefined"&&Knoema.Utils.isRtl!=null&&Knoema.Utils.isRtl()?(__.push('              style="'),typeof(responseHasDifferentSigns&&cell.tuple.Value<0)!="undefined"&&(responseHasDifferentSigns&&cell.tuple.Value<0)!=null&&(typeof(responseHasDifferentSigns&&cell.tuple.Value<0)=="function"?(responseHasDifferentSigns&&cell.tuple.Value<0).call($item):responseHasDifferentSigns&&cell.tuple.Value<0)?(__.push("right:"),typeof(50-cell.percentage/2)!="undefined"&&50-cell.percentage/2!=null&&__.push($.encode(typeof(50-cell.percentage/2)=="function"?(50-cell.percentage/2).call($item):50-cell.percentage/2)),__.push("%;")):!0&&__.push("right:50%;"),__.push(""),typeof responseHasDifferentSigns!="undefined"&&responseHasDifferentSigns!=null&&(typeof responseHasDifferentSigns=="function"?responseHasDifferentSigns.call($item):responseHasDifferentSigns)&&__.push("position:relative;"),__.push(";width:"),typeof responseHasDifferentSigns!="undefined"&&responseHasDifferentSigns!=null&&(typeof responseHasDifferentSigns=="function"?responseHasDifferentSigns.call($item):responseHasDifferentSigns)?(__.push(""),typeof(cell.percentage==1?cell.percentage:cell.percentage/2)!="undefined"&&(cell.percentage==1?cell.percentage:cell.percentage/2)!=null&&__.push($.encode(typeof(cell.percentage==1?cell.percentage:cell.percentage/2)=="function"?(cell.percentage==1?cell.percentage:cell.percentage/2).call($item):cell.percentage==1?cell.percentage:cell.percentage/2)),__.push("")):!0&&(__.push(""),typeof cell.percentage!="undefined"&&cell.percentage!=null&&__.push($.encode(typeof cell.percentage=="function"?cell.percentage.call($item):cell.percentage)),__.push("")),__.push("%;background-color:"),typeof cell.isBaseMember!="undefined"&&cell.isBaseMember!=null&&(typeof cell.isBaseMember=="function"?cell.isBaseMember.call($item):cell.isBaseMember)?(__.push(""),typeof baseRegionColor!="undefined"&&baseRegionColor!=null&&__.push($.encode(typeof baseRegionColor=="function"?baseRegionColor.call($item):baseRegionColor)),__.push(";")):!0&&(__.push(""),typeof barColor!="undefined"&&barColor!=null&&__.push($.encode(typeof barColor=="function"?barColor.call($item):barColor)),__.push("")),__.push('"              ')):!0&&(__.push('              style="'),typeof(responseHasDifferentSigns&&cell.tuple.Value<0)!="undefined"&&(responseHasDifferentSigns&&cell.tuple.Value<0)!=null&&(typeof(responseHasDifferentSigns&&cell.tuple.Value<0)=="function"?(responseHasDifferentSigns&&cell.tuple.Value<0).call($item):responseHasDifferentSigns&&cell.tuple.Value<0)?(__.push("left:"),typeof(50-cell.percentage/2)!="undefined"&&50-cell.percentage/2!=null&&__.push($.encode(typeof(50-cell.percentage/2)=="function"?(50-cell.percentage/2).call($item):50-cell.percentage/2)),__.push("%;")):!0&&__.push("left:50%;"),__.push(""),typeof responseHasDifferentSigns!="undefined"&&responseHasDifferentSigns!=null&&(typeof responseHasDifferentSigns=="function"?responseHasDifferentSigns.call($item):responseHasDifferentSigns)&&__.push("position:relative;"),__.push(";width:"),typeof responseHasDifferentSigns!="undefined"&&responseHasDifferentSigns!=null&&(typeof responseHasDifferentSigns=="function"?responseHasDifferentSigns.call($item):responseHasDifferentSigns)?(__.push(""),typeof(cell.percentage==1?cell.percentage:cell.percentage/2)!="undefined"&&(cell.percentage==1?cell.percentage:cell.percentage/2)!=null&&__.push($.encode(typeof(cell.percentage==1?cell.percentage:cell.percentage/2)=="function"?(cell.percentage==1?cell.percentage:cell.percentage/2).call($item):cell.percentage==1?cell.percentage:cell.percentage/2)),__.push("")):!0&&(__.push(""),typeof cell.percentage!="undefined"&&cell.percentage!=null&&__.push($.encode(typeof cell.percentage=="function"?cell.percentage.call($item):cell.percentage)),__.push("")),__.push("%;background-color:"),typeof cell.isBaseMember!="undefined"&&cell.isBaseMember!=null&&(typeof cell.isBaseMember=="function"?cell.isBaseMember.call($item):cell.isBaseMember)?(__.push(""),typeof baseRegionColor!="undefined"&&baseRegionColor!=null&&__.push($.encode(typeof baseRegionColor=="function"?baseRegionColor.call($item):baseRegionColor)),__.push(";")):!0&&(__.push(""),typeof barColor!="undefined"&&barColor!=null&&__.push($.encode(typeof barColor=="function"?barColor.call($item):barColor)),__.push("")),__.push('"              ')),__.push("                           >             &nbsp;            <\/div>           ")),__.push("          <\/div>         ")):!0&&(__.push("          "),typeof(typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value)!="undefined"&&(typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value)!=null&&__.push($.encode(typeof(typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value)=="function"?(typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value).call($item):typeof cell.Value=="number"?Knoema.Utils.formatNumber(cell.Value,precision):cell.Value)),__.push("         ")),__.push("        ")):!0&&__.push("         &ndash;        "),__.push("       <\/td>      ")}),__.push("     <\/tr>    ")}),__.push("   <\/tbody>  <\/table> <\/div>");return __});jQuery.template("Tmpl-ranking-tooltip-v2",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<strong>"),typeof tooltipData.stubName!="undefined"&&tooltipData.stubName!=null&&__.push($.encode(typeof tooltipData.stubName=="function"?tooltipData.stubName.call($item):tooltipData.stubName)),__.push("<\/strong>  <br />    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/ranking-tooltip-v2.htm","Value"))),__.push(":&nbsp; "),typeof tooltipData.roundedValue!="undefined"&&tooltipData.roundedValue!=null&&__.push($.encode(typeof tooltipData.roundedValue=="function"?tooltipData.roundedValue.call($item):tooltipData.roundedValue)),__.push("&nbsp;"),typeof tooltipData.Unit!="undefined"&&tooltipData.Unit!=null&&__.push($.encode(typeof tooltipData.Unit=="function"?tooltipData.Unit.call($item):tooltipData.Unit)),__.push("<br />  "),typeof tooltipData.headerName!="undefined"&&tooltipData.headerName!=null&&__.push($.encode(typeof tooltipData.headerName=="function"?tooltipData.headerName.call($item):tooltipData.headerName)),__.push(":&nbsp;"),typeof tooltipData.headerMember!="undefined"&&tooltipData.headerMember!=null&&__.push($.encode(typeof tooltipData.headerMember=="function"?tooltipData.headerMember.call($item):tooltipData.headerMember)),__.push("<br />    "),typeof tooltipData.ifFoldMessage!="undefined"&&tooltipData.ifFoldMessage!=null&&(typeof tooltipData.ifFoldMessage=="function"?tooltipData.ifFoldMessage.call($item):tooltipData.ifFoldMessage)&&(__.push("   "),typeof tooltipData.ifFoldMessage!="undefined"&&tooltipData.ifFoldMessage!=null&&__.push($.encode(typeof tooltipData.ifFoldMessage=="function"?tooltipData.ifFoldMessage.call($item):tooltipData.ifFoldMessage)),__.push("<br />  ")),__.push("    "),typeof(tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="")!="undefined"&&(tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="")!=null&&(typeof(tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="")=="function"?(tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="").call($item):tooltipData.useBaseMember&&!tooltipData.isBaseMember&&tooltipData.baseRegionRatio!=null&&tooltipData.baseRegionRatio!="")&&(__.push('  <div style="border-top: 1px solid #555; margin-top: 5px; padding-top: 2px;">   <strong>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/ranking-tooltip-v2.htm","Base member ratio:"))),__.push("<\/strong>&nbsp;"),typeof tooltipData.baseRegionRatio!="undefined"&&tooltipData.baseRegionRatio!=null&&__.push($.encode(typeof tooltipData.baseRegionRatio=="function"?tooltipData.baseRegionRatio.call($item):tooltipData.baseRegionRatio)),__.push("  <\/div>  ")),__.push("");return __})