jQuery.template("Tmpl-dimension-filter-tab",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="dim-filter-left-panel ui-layout-west">  <\/div>  <div class="dim-filter-right-panel ui-layout-center">   <div class="member-selection">   <\/div>   <div class="formula-editor" style="display: none;">    <div class="message">    <\/div>    <div class="add-formula">     <label class="formula-name-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Name"))),__.push(':<\/label>     <input type="text" class="formula-name" placeholder=\''),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Type name of calculated member here"))),__.push('\' />     <a class="save dim-filter-blue-button">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Save"))),__.push('<\/a><a class="close dim-filter-blue-button">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Cancel"))),__.push('<\/a>    <\/div>    <div class="formula-members formula-editor-section">    <\/div>    <div class="formula-box formula-editor-section">    <\/div>   <\/div>   <div class="dimension-group-editor" style="display: none;">    <div class="member-selection">    <\/div>    <div class="add-group">     <div class="message">     <\/div>     <div class="add-group-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Add Group"))),__.push('<\/div>     <div class="name-wrapper">      <label class="name-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Name"))),__.push(':<\/label>      <span class="input-text-wrapper">       <input type="text" placeholder=\''),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Type name of group here"))),__.push('\'/>      <\/span>     <\/div>     <a class="close dim-filter-blue-button">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Cancel"))),__.push('<\/a><a class="save dim-filter-blue-button">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-filter-tab.htm","Save"))),__.push('<\/a>     <div class="clear">     <\/div>    <\/div>   <\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-dim-filter-batch-formula-chooser",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div title=" '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/batch-formula-chooser.htm","Select Members for batch formula creation"))),__.push('" >   <div class="batch-member-chooser"><\/div>   <div class="actions">    <a href="#" class="deselect-all">Clear<\/a>    <a href="#" class="select-all">Select all<\/a>   <\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-dim-filter-fold-message",function(n,t){var $=n,__=[],i=t.data;with(i)__.push(""),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dim-filter/fold-message.htm","You cannot have more than 1 item in the display list for a dimension. The system will take into account the first item only. Please, change your selection or [fold|href=#|class=fold-dimension] the members of this dimension.")),__.push("");return __});jQuery.template("Tmpl-knoema-dim-filter-member-list-panel",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dimension-members" data-datasetid="'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('" data-dimensionid="'),typeof dimensionId!="undefined"&&dimensionId!=null&&__.push($.encode(typeof dimensionId=="function"?dimensionId.call($item):dimensionId)),__.push('"><\/div>  <div class="dimension-groups"  data-datasetid="'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('" data-dimensionid="'),typeof dimensionId!="undefined"&&dimensionId!=null&&__.push($.encode(typeof dimensionId=="function"?dimensionId.call($item):dimensionId)),__.push('"><\/div>  <div class="actions">      <a href="#" class="add-calculation '),typeof!isFormulaEditorVisible!="undefined"&&!isFormulaEditorVisible!=null&&(typeof!isFormulaEditorVisible=="function"?(!isFormulaEditorVisible).call($item):!isFormulaEditorVisible)&&__.push("hide"),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/member-list-panel.htm","Add Calculation"))),__.push("<\/a>      "),typeof isAuthenticatedUser!="undefined"&&isAuthenticatedUser!=null&&(typeof isAuthenticatedUser=="function"?isAuthenticatedUser.call($item):isAuthenticatedUser)&&(__.push('   <a href="#" class="add-group">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/member-list-panel.htm","Add Group"))),__.push('<\/a>   <a href="#" class="select-group">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/member-list-panel.htm","Select Group"))),__.push("<\/a>      ")),__.push('   <a href="#" class="deselect-all">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/member-list-panel.htm","Clear"))),__.push('<\/a>      <a href="#" class="select-all">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/member-list-panel.htm","Select all"))),__.push("<\/a>  <\/div>");return __});jQuery.template("Tmpl-knoema-dim-filter-merged-regions-panel",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dimension-members" data-datasetid="'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('" data-dimensionid="'),typeof dimensionId!="undefined"&&dimensionId!=null&&__.push($.encode(typeof dimensionId=="function"?dimensionId.call($item):dimensionId)),__.push('"><\/div>  <div class="dimension-groups"  data-datasetid="'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('" data-dimensionid="'),typeof dimensionId!="undefined"&&dimensionId!=null&&__.push($.encode(typeof dimensionId=="function"?dimensionId.call($item):dimensionId)),__.push('"><\/div>  <div class="actions">   <a href="#" class="deselect-all">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/merged-regions-panel.htm","Clear"))),__.push('<\/a> <a href="#" class="select-all">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/merged-regions-panel.htm","Select all"))),__.push("<\/a>  <\/div>");return __});jQuery.template("Tmpl-knoema-dim-filter-time-fold-message",function(n,t){var $=n,__=[],i=t.data;with(i)__.push(""),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dim-filter/time-fold-message.htm","Selected time members will be shown in a time-bar below the map. Alternatively, you can [fold|href=#|class=fold-dimension] selected time members to show latest data on map.")),__.push("");return __});jQuery.template("Tmpl-knoema-dim-filter-timemember-list-panel",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dimension-members" data-datasetid="'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('" data-dimensionid="'),typeof dimensionId!="undefined"&&dimensionId!=null&&__.push($.encode(typeof dimensionId=="function"?dimensionId.call($item):dimensionId)),__.push('"><\/div>  <div class="actions">   <a href="#" class="add-calculation">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/timemember-list-panel.htm","Add Calculation"))),__.push('<\/a>     <a href="#" class="deselect-all">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/timemember-list-panel.htm","Clear"))),__.push('<\/a>    <a href="#" class="select-all">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/dim-filter/timemember-list-panel.htm","Select all"))),__.push("<\/a>  <\/div>");return __});jQuery.template("Tmpl-knoema-dim-filter-unfold-message",function(n,t){var $=n,__=[],i=t.data;with(i)__.push(""),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/dim-filter/unfold-message.htm","[Unfold|href=#|style=margin:0 5px; text-decoration:underline|class=unfold-dimension] the members of this dimension.")),__.push("");return __});jQuery.template("Tmpl-dimension-display-list",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<!--  // sampleLayout; 'Table','Chart',null  // sampleLayoutHide; bool  // layoutClass   // layoutLinkText  // headerSectionText  // stubSectionText  // toStubText  // toStubTooltipText  // toHeaderText  // toHeaderTooltipText  // positionButton.show  // stubDimensions  // filterDimensions  // headerDimensions  -->    <div class=\"dimension-display-list\" style=\"height:calc(100% - "),typeof reduceHeight!="undefined"&&reduceHeight!=null&&__.push($.encode(typeof reduceHeight=="function"?reduceHeight.call($item):reduceHeight)),__.push(')">   <div class="dim-filter-selectedMembers">    <div id="toggle-preview">     '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/dimension-display-list.htm","Preview [On|href=#|class=show-preview]")),__.push("    <\/div>    "),typeof sampleLayout!="undefined"&&sampleLayout!=null&&(typeof sampleLayout=="function"?sampleLayout.call($item):sampleLayout)&&(__.push('     <div id="toggle-layout">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Layout sample"))),__.push(' &#151 <a href="#" class="'),typeof layoutClass!="undefined"&&layoutClass!=null&&__.push($.encode(typeof layoutClass=="function"?layoutClass.call($item):layoutClass)),__.push('">'),typeof layoutLinkText!="undefined"&&layoutLinkText!=null&&__.push($.encode(typeof layoutLinkText=="function"?layoutLinkText.call($item):layoutLinkText)),__.push('<\/a><\/div>     <div class="clear"><\/div>     '),typeof!sampleLayoutHide!="undefined"&&!sampleLayoutHide!=null&&(typeof!sampleLayoutHide=="function"?(!sampleLayoutHide).call($item):!sampleLayoutHide)&&(__.push('      <div id="sample-layout">      '),typeof(sampleLayout=="Table")!="undefined"&&sampleLayout=="Table"!=null&&(typeof(sampleLayout=="Table")=="function"?(sampleLayout=="Table").call($item):sampleLayout=="Table")?(__.push('       <table>        <thead>         <tr>          <th style="width: 30%;">          <\/th>          <th id="header-cell" style="height: 30px; cursor: pointer;">           '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Columns"))),__.push('          <\/th>         <\/tr>        <\/thead>        <tbody>         <tr>          <th id="stub-cell" style="white-space: nowrap; cursor: pointer;">           '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Rows"))),__.push('          <\/th>          <td id="filter-cell" style="text-align: center; cursor: pointer;">           '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Filter"))),__.push("          <\/td>         <\/tr>        <\/tbody>       <\/table>      ")):!0&&(__.push('       <div id="sample-chart"><\/div>         <span id="series-text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Series"))),__.push('<\/span>       <span id="points-text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Points"))),__.push("<\/span>       ")),__.push("      <\/div>     ")),__.push("    ")),__.push("        "),typeof(sampleLayout&&!sampleLayoutHide)!="undefined"&&(sampleLayout&&!sampleLayoutHide)!=null&&(typeof(sampleLayout&&!sampleLayoutHide)=="function"?(sampleLayout&&!sampleLayoutHide).call($item):sampleLayout&&!sampleLayoutHide)?(__.push('     <div id="header" data-position="Header">      <div class="section-text">'),typeof header.caption!="undefined"&&header.caption!=null&&__.push($.encode(typeof header.caption=="function"?header.caption.call($item):header.caption)),__.push('<\/div>      <div class="accordion">       '),typeof(headerDimensions.length>0)!="undefined"&&headerDimensions.length>0!=null&&(typeof(headerDimensions.length>0)=="function"?(headerDimensions.length>0).call($item):headerDimensions.length>0)&&(__.push('        <h3 data-dimensionid="'),typeof headerDimensions[0].id!="undefined"&&headerDimensions[0].id!=null&&__.push($.encode(typeof headerDimensions[0].id=="function"?headerDimensions[0].id.call($item):headerDimensions[0].id)),__.push('">         '),typeof(headerDimensions.length==1)!="undefined"&&headerDimensions.length==1!=null&&(typeof(headerDimensions.length==1)=="function"?(headerDimensions.length==1).call($item):headerDimensions.length==1)?(__.push('          <a href="#">'),typeof headerDimensions[0].name!="undefined"&&headerDimensions[0].name!=null&&__.push($.encode(typeof headerDimensions[0].name=="function"?headerDimensions[0].name.call($item):headerDimensions[0].name)),__.push("<\/a>         ")):!0&&(__.push('          <select class="combo">          '),typeof headerDimensions!="undefined"&&headerDimensions!=null&&$.each(typeof headerDimensions=="function"?headerDimensions.call($item):headerDimensions,function(n,$value){with(this)__.push('           <option data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('">'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push("<\/option>          ")}),__.push("          <\/select>         ")),__.push('         <div class="displaylist-dimension-actions '),typeof(headerDimensions.length>1)!="undefined"&&headerDimensions.length>1!=null&&(typeof(headerDimensions.length>1)=="function"?(headerDimensions.length>1).call($item):headerDimensions.length>1)&&__.push("combined"),__.push('" style="display: none;">          '),typeof(headerDimensions[0].id==="Time")!="undefined"&&headerDimensions[0].id==="Time"!=null&&(typeof(headerDimensions[0].id==="Time")=="function"?(headerDimensions[0].id==="Time").call($item):headerDimensions[0].id==="Time")?(__.push('           <span class="reversed-time" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Reverse Order"))),__.push('"><i class="knoema-ico swap-horizontal"><\/i><\/span>          ')):!0&&(__.push('           <span class="sum-aggr hide" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Turn Aggregation On"))),__.push('"><i class="knoema-ico sum"><\/i><\/span>          ')),__.push('          <span class="dim-move-to-stub" title="'),typeof stub.tooltip!="undefined"&&stub.tooltip!=null&&__.push($.encode(typeof stub.tooltip=="function"?stub.tooltip.call($item):stub.tooltip)),__.push('">'),typeof stub.char!="undefined"&&stub.char!=null&&__.push($.encode(typeof stub.char=="function"?stub.char.call($item):stub.char)),__.push('<\/span>          <span class="dim-move-to-filter" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","To filter"))),__.push('">F<\/span>           <span class="dim-move-up" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Up"))),__.push('"><\/span>          <span class="dim-move-down" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Down"))),__.push('"><\/span>          <span class="clear" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Clear"))),__.push('"><i class="knoema-ico delete"><\/i><\/span>         <\/div>        <\/h3>        <ul data-dimensionid="'),typeof headerDimensions[0].id!="undefined"&&headerDimensions[0].id!=null&&__.push($.encode(typeof headerDimensions[0].id=="function"?headerDimensions[0].id.call($item):headerDimensions[0].id)),__.push('" class="accordion-content">        <\/ul>       ')),__.push('      <\/div>     <\/div>     <div id="stub" data-position="Stub">      <div class="section-text">'),typeof stub.caption!="undefined"&&stub.caption!=null&&__.push($.encode(typeof stub.caption=="function"?stub.caption.call($item):stub.caption)),__.push('<\/div>      <div class="accordion">       '),typeof(stubDimensions.length>0)!="undefined"&&stubDimensions.length>0!=null&&(typeof(stubDimensions.length>0)=="function"?(stubDimensions.length>0).call($item):stubDimensions.length>0)&&(__.push('        <h3 data-dimensionid="'),typeof stubDimensions[0].id!="undefined"&&stubDimensions[0].id!=null&&__.push($.encode(typeof stubDimensions[0].id=="function"?stubDimensions[0].id.call($item):stubDimensions[0].id)),__.push('">         '),typeof(stubDimensions.length==1)!="undefined"&&stubDimensions.length==1!=null&&(typeof(stubDimensions.length==1)=="function"?(stubDimensions.length==1).call($item):stubDimensions.length==1)?(__.push('          <a href="#">'),typeof stubDimensions[0].name!="undefined"&&stubDimensions[0].name!=null&&__.push($.encode(typeof stubDimensions[0].name=="function"?stubDimensions[0].name.call($item):stubDimensions[0].name)),__.push("<\/a>         ")):!0&&(__.push('          <select class="combo">          '),typeof stubDimensions!="undefined"&&stubDimensions!=null&&$.each(typeof stubDimensions=="function"?stubDimensions.call($item):stubDimensions,function(n,$value){with(this)__.push('           <option data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('">'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push("<\/option>          ")}),__.push("          <\/select>         ")),__.push('         <div class="displaylist-dimension-actions '),typeof(stubDimensions.length>1)!="undefined"&&stubDimensions.length>1!=null&&(typeof(stubDimensions.length>1)=="function"?(stubDimensions.length>1).call($item):stubDimensions.length>1)&&__.push("combined"),__.push('" style="display: none;">          '),typeof(stubDimensions[0].id==="Time")!="undefined"&&stubDimensions[0].id==="Time"!=null&&(typeof(stubDimensions[0].id==="Time")=="function"?(stubDimensions[0].id==="Time").call($item):stubDimensions[0].id==="Time")?(__.push('           <span class="reversed-time" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Reverse Order"))),__.push('"><i class="knoema-ico swap-horizontal"><\/i><\/span>          ')):!0&&(__.push('           <span class="sum-aggr hide" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Turn Aggregation On"))),__.push('"><i class="knoema-ico sum"><\/i><\/span>          ')),__.push('          <span class="dim-move-to-header" title="'),typeof header.tooltip!="undefined"&&header.tooltip!=null&&__.push($.encode(typeof header.tooltip=="function"?header.tooltip.call($item):header.tooltip)),__.push('">'),typeof header.char!="undefined"&&header.char!=null&&__.push($.encode(typeof header.char=="function"?header.char.call($item):header.char)),__.push('<\/span>          <span class="dim-move-to-filter" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","To filter"))),__.push('">F<\/span>           <span class="dim-move-up" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Up"))),__.push('"><\/span>          <span class="dim-move-down" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Down"))),__.push('"><\/span>          <span class="clear" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Clear"))),__.push('"><i class="knoema-ico delete"><\/i><\/span>         <\/div>        <\/h3>        <ul data-dimensionid="'),typeof stubDimensions[0].id!="undefined"&&stubDimensions[0].id!=null&&__.push($.encode(typeof stubDimensions[0].id=="function"?stubDimensions[0].id.call($item):stubDimensions[0].id)),__.push('" class="accordion-content">        <\/ul>       ')),__.push('      <\/div>     <\/div>     <div id="filter" data-position="Filter">      <div class="section-text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Filter"))),__.push('<\/div>      <div class="accordion">       '),typeof(filterDimensions.length>0)!="undefined"&&filterDimensions.length>0!=null&&(typeof(filterDimensions.length>0)=="function"?(filterDimensions.length>0).call($item):filterDimensions.length>0)&&(__.push('        <h3 data-dimensionid="'),typeof filterDimensions[0].id!="undefined"&&filterDimensions[0].id!=null&&__.push($.encode(typeof filterDimensions[0].id=="function"?filterDimensions[0].id.call($item):filterDimensions[0].id)),__.push('">         '),typeof(filterDimensions.length==1)!="undefined"&&filterDimensions.length==1!=null&&(typeof(filterDimensions.length==1)=="function"?(filterDimensions.length==1).call($item):filterDimensions.length==1)?(__.push('          <a href="#">'),typeof filterDimensions[0].name!="undefined"&&filterDimensions[0].name!=null&&__.push($.encode(typeof filterDimensions[0].name=="function"?filterDimensions[0].name.call($item):filterDimensions[0].name)),__.push("<\/a>         ")):!0&&(__.push('          <select class="combo">          '),typeof filterDimensions!="undefined"&&filterDimensions!=null&&$.each(typeof filterDimensions=="function"?filterDimensions.call($item):filterDimensions,function(n,$value){with(this)__.push('           <option data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('">'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push("<\/option>          ")}),__.push("          <\/select>         ")),__.push('         <div class="displaylist-dimension-actions '),typeof(filterDimensions.length>1)!="undefined"&&filterDimensions.length>1!=null&&(typeof(filterDimensions.length>1)=="function"?(filterDimensions.length>1).call($item):filterDimensions.length>1)&&__.push("combined"),__.push('" style="display: none;">          '),typeof(filterDimensions[0].id==="Time")!="undefined"&&filterDimensions[0].id==="Time"!=null&&(typeof(filterDimensions[0].id==="Time")=="function"?(filterDimensions[0].id==="Time").call($item):filterDimensions[0].id==="Time")?(__.push('           <span class="reversed-time" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Reverse Order"))),__.push('"><i class="knoema-ico swap-horizontal"><\/i><\/span>          ')):!0&&(__.push('           <span class="sum-aggr hide" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Turn Aggregation On"))),__.push('"><i class="knoema-ico sum"><\/i><\/span>          ')),__.push('          <span class="dim-move-to-header" title="'),typeof header.tooltip!="undefined"&&header.tooltip!=null&&__.push($.encode(typeof header.tooltip=="function"?header.tooltip.call($item):header.tooltip)),__.push('">'),typeof header.char!="undefined"&&header.char!=null&&__.push($.encode(typeof header.char=="function"?header.char.call($item):header.char)),__.push('<\/span>          <span class="dim-move-to-stub" title="'),typeof stub.tooltip!="undefined"&&stub.tooltip!=null&&__.push($.encode(typeof stub.tooltip=="function"?stub.tooltip.call($item):stub.tooltip)),__.push('">'),typeof stub.char!="undefined"&&stub.char!=null&&__.push($.encode(typeof stub.char=="function"?stub.char.call($item):stub.char)),__.push('<\/span>          <span class="dim-move-up" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Up"))),__.push('"><\/span>          <span class="dim-move-down" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Down"))),__.push('"><\/span>          <span class="clear" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Clear"))),__.push('"><i class="knoema-ico delete"><\/i><\/span>         <\/div>        <\/h3>        <ul data-dimensionid="'),typeof filterDimensions[0].id!="undefined"&&filterDimensions[0].id!=null&&__.push($.encode(typeof filterDimensions[0].id=="function"?filterDimensions[0].id.call($item):filterDimensions[0].id)),__.push('" class="accordion-content">        <\/ul>       ')),__.push("      <\/div>     <\/div>    ")):!0&&(__.push('     <div class="clear"><\/div>     <div class="accordion">      '),typeof(dimensions.length<=numberOfVisibleDimensions)!="undefined"&&dimensions.length<=numberOfVisibleDimensions!=null&&(typeof(dimensions.length<=numberOfVisibleDimensions)=="function"?(dimensions.length<=numberOfVisibleDimensions).call($item):dimensions.length<=numberOfVisibleDimensions)?(__.push("       "),typeof dimensions!="undefined"&&dimensions!=null&&$.each(typeof dimensions=="function"?dimensions.call($item):dimensions,function(n,$value){with(this)__.push('        <h3 data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('">         <a href="#">'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push('<\/a>         <div class="displaylist-dimension-actions">          '),typeof($value.id==="Time")!="undefined"&&$value.id==="Time"!=null&&(typeof($value.id==="Time")=="function"?($value.id==="Time").call($item):$value.id==="Time")?(__.push('           <span class="reversed-time" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Reverse Order"))),__.push('"><i class="knoema-ico swap-horizontal"><\/i><\/span>          ')):!0&&(__.push('           <span class="sum-aggr hide" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Turn Aggregation On"))),__.push('"><i class="knoema-ico sum"><\/i><\/span>          ')),__.push("          "),typeof positionButton.show!="undefined"&&positionButton.show!=null&&(typeof positionButton.show=="function"?positionButton.show.call($item):positionButton.show)&&(__.push('           <span class="dimension-position" data-position="Header" title="'),typeof header.tooltip!="undefined"&&header.tooltip!=null&&__.push($.encode(typeof header.tooltip=="function"?header.tooltip.call($item):header.tooltip)),__.push('">'),typeof header.char!="undefined"&&header.char!=null&&__.push($.encode(typeof header.char=="function"?header.char.call($item):header.char)),__.push('<\/span>           <span class="dimension-position" data-position="Stub" title="'),typeof stub.tooltip!="undefined"&&stub.tooltip!=null&&__.push($.encode(typeof stub.tooltip=="function"?stub.tooltip.call($item):stub.tooltip)),__.push('">'),typeof stub.char!="undefined"&&stub.char!=null&&__.push($.encode(typeof stub.char=="function"?stub.char.call($item):stub.char)),__.push('<\/span>           <span class="dimension-position" data-position="Filter" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","To filter"))),__.push('">F<\/span>          ')),__.push('          <span class="clear" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Clear"))),__.push('"><i class="knoema-ico delete"><\/i><\/span>         <\/div>        <\/h3>        <ul data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('" class="accordion-content"><\/ul>       ')}),__.push("      ")):!0&&(__.push("         "),typeof(numberOfVisibleDimensions>1)!="undefined"&&numberOfVisibleDimensions>1!=null&&(typeof(numberOfVisibleDimensions>1)=="function"?(numberOfVisibleDimensions>1).call($item):numberOfVisibleDimensions>1)&&(__.push("        "),typeof dimensions.slice!="undefined"&&dimensions.slice!=null&&$.each(dimensions.slice(0,numberOfVisibleDimensions-1),function(n,$value){with(this)__.push('         <h3 data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('">          <a href="#">'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push('<\/a>          <div class="displaylist-dimension-actions">           '),typeof($value.id==="Time")!="undefined"&&$value.id==="Time"!=null&&(typeof($value.id==="Time")=="function"?($value.id==="Time").call($item):$value.id==="Time")?(__.push('            <span class="reversed-time" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Reverse Order"))),__.push('"><i class="knoema-ico swap-horizontal"><\/i><\/span>           ')):!0&&(__.push('            <span class="sum-aggr hide" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Turn Aggregation On"))),__.push('"><i class="knoema-ico sum"><\/i><\/span>           ')),__.push("           "),typeof positionButton.show!="undefined"&&positionButton.show!=null&&(typeof positionButton.show=="function"?positionButton.show.call($item):positionButton.show)&&(__.push('            <span class="dimension-position" data-position="Header" title="'),typeof header.tooltip!="undefined"&&header.tooltip!=null&&__.push($.encode(typeof header.tooltip=="function"?header.tooltip.call($item):header.tooltip)),__.push('">'),typeof header.char!="undefined"&&header.char!=null&&__.push($.encode(typeof header.char=="function"?header.char.call($item):header.char)),__.push('<\/span>            <span class="dimension-position" data-position="Stub" title="'),typeof stub.tooltip!="undefined"&&stub.tooltip!=null&&__.push($.encode(typeof stub.tooltip=="function"?stub.tooltip.call($item):stub.tooltip)),__.push('">'),typeof stub.char!="undefined"&&stub.char!=null&&__.push($.encode(typeof stub.char=="function"?stub.char.call($item):stub.char)),__.push('<\/span>            <span class="dimension-position" data-position="Filter" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","To filter"))),__.push('">F<\/span>           ')),__.push('           <span class="clear" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Clear"))),__.push('"><i class="knoema-ico delete"><\/i><\/span>          <\/div>         <\/h3>         <ul data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('" class="accordion-content"><\/ul>        ')}),__.push("       ")),__.push('         <h3 data-dimensionid="'),typeof dimensions[indexOfActiveComboDim].id!="undefined"&&dimensions[indexOfActiveComboDim].id!=null&&__.push($.encode(typeof dimensions[indexOfActiveComboDim].id=="function"?dimensions[indexOfActiveComboDim].id.call($item):dimensions[indexOfActiveComboDim].id)),__.push('" class="combo-header">        <select class="combo">         '),typeof dimensions.slice!="undefined"&&dimensions.slice!=null&&$.each(dimensions.slice(numberOfVisibleDimensions-1),function(n,$value){with(this)__.push('          <option data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('"           '),typeof(dimensions[indexOfActiveComboDim].id==$value.id)!="undefined"&&dimensions[indexOfActiveComboDim].id==$value.id!=null&&(typeof(dimensions[indexOfActiveComboDim].id==$value.id)=="function"?(dimensions[indexOfActiveComboDim].id==$value.id).call($item):dimensions[indexOfActiveComboDim].id==$value.id)&&__.push("selected"),__.push(">"),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push("<\/option>         ")}),__.push('        <\/select>        <div class="displaylist-dimension-actions combined">         <span class="sum-aggr hide" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Turn Aggregation On"))),__.push('"><i class="knoema-ico sum"><\/i><\/span>         '),typeof positionButton.show!="undefined"&&positionButton.show!=null&&(typeof positionButton.show=="function"?positionButton.show.call($item):positionButton.show)&&(__.push('          <span class="dimension-position" data-position="Header" title="'),typeof header.tooltip!="undefined"&&header.tooltip!=null&&__.push($.encode(typeof header.tooltip=="function"?header.tooltip.call($item):header.tooltip)),__.push('">'),typeof header.char!="undefined"&&header.char!=null&&__.push($.encode(typeof header.char=="function"?header.char.call($item):header.char)),__.push('<\/span>          <span class="dimension-position" data-position="Stub" title="'),typeof stub.tooltip!="undefined"&&stub.tooltip!=null&&__.push($.encode(typeof stub.tooltip=="function"?stub.tooltip.call($item):stub.tooltip)),__.push('">'),typeof stub.char!="undefined"&&stub.char!=null&&__.push($.encode(typeof stub.char=="function"?stub.char.call($item):stub.char)),__.push('<\/span>          <span class="dimension-position" data-position="Filter" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","To filter"))),__.push('">F<\/span>         ')),__.push('         <span class="clear" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dimension-display-list.htm","Clear"))),__.push('"><i class="knoema-ico delete"><\/i><\/span>        <\/div>       <\/h3>         <div class="accordion-content combo-ul-container">        '),typeof dimensions.slice!="undefined"&&dimensions.slice!=null&&$.each(dimensions.slice(numberOfVisibleDimensions-1),function($index,$value){with(this)__.push('         <ul data-dimensionid="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('" class="combo-ul-box" style="display: '),typeof(indexOfActiveComboDim===numberOfVisibleDimensions+$index-1?"block":"none")!="undefined"&&(indexOfActiveComboDim===numberOfVisibleDimensions+$index-1?"block":"none")!=null&&__.push($.encode(typeof(indexOfActiveComboDim===numberOfVisibleDimensions+$index-1?"block":"none")=="function"?(indexOfActiveComboDim===numberOfVisibleDimensions+$index-1?"block":"none").call($item):indexOfActiveComboDim===numberOfVisibleDimensions+$index-1?"block":"none")),__.push('" ><\/ul>        ')}),__.push("       <\/div>      ")),__.push("       <\/div>     ")),__.push('   <\/div>  <\/div>  <div class="dim-filter-timeseries-count">  <\/div>');return __});jQuery.template("Tmpl-timememberlist-entry",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div>      <div class="select-members '),typeof(isSelected?"selected":"")!="undefined"&&(isSelected?"selected":"")!=null&&__.push($.encode(typeof(isSelected?"selected":"")=="function"?(isSelected?"selected":"").call($item):isSelected?"selected":"")),__.push('">       <a href="#" id="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" data-dimensionId="Time" class="'),typeof(isSelected?"remove-member":"add-member")!="undefined"&&(isSelected?"remove-member":"add-member")!=null&&__.push($.encode(typeof(isSelected?"remove-member":"add-member")=="function"?(isSelected?"remove-member":"add-member").call($item):isSelected?"remove-member":"add-member")),__.push('"><\/a>          <span class="member-text">'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("<\/span>      <\/div>  <\/div>");return __});jQuery.template("Tmpl-time-filter",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push("<!--  Options = {   htmlForYearSelectionCombo(className)   htmlForMonthSelectionCombo(className)   htmlForDaySelectionCombo(className)   dateColumns : [{name,key}...]   frequencies  }  -->    "),typeof(dateColumns.length>0)!="undefined"&&dateColumns.length>0!=null&&(typeof(dateColumns.length>0)=="function"?(dateColumns.length>0).call($item):dateColumns.length>0)&&(__.push('   <div class="flat-dataset-date-field">    <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Filter by"))),__.push('<\/span>    <select class="date-field-column">     <option value="0">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","All time"))),__.push("<\/option>     "),typeof dateColumns!="undefined"&&dateColumns!=null&&$.each(typeof dateColumns=="function"?dateColumns.call($item):dateColumns,function(n,$value){with(this)__.push('      <option value="'),typeof $value.key!="undefined"&&$value.key!=null&&__.push($.encode(typeof $value.key=="function"?$value.key.call($item):$value.key)),__.push('" '),typeof(selectedDateColumn==$value.key)!="undefined"&&selectedDateColumn==$value.key!=null&&(typeof(selectedDateColumn==$value.key)=="function"?(selectedDateColumn==$value.key).call($item):selectedDateColumn==$value.key)&&__.push(' selected="selected" '),__.push(" >"),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push("<\/option>     ")}),__.push("    <\/select>   <\/div>  ")),__.push("    "),typeof!showTimeRangeOnly!="undefined"&&!showTimeRangeOnly!=null&&(typeof!showTimeRangeOnly=="function"?(!showTimeRangeOnly).call($item):!showTimeRangeOnly)&&(__.push('   <div class="time-selection-mode-holder">    <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Select mode"))),__.push('&nbsp;<\/span>    <select class="time-selection-mode date-field-column">     <option value="range">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Range"))),__.push('<\/option>     <option value="individualMembers">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Individual members"))),__.push('<\/option>     <option value="last"    '),typeof(dimPosition=="Filter"||disableLastN)!="undefined"&&(dimPosition=="Filter"||disableLastN)!=null&&(typeof(dimPosition=="Filter"||disableLastN)=="function"?(dimPosition=="Filter"||disableLastN).call($item):dimPosition=="Filter"||disableLastN)&&__.push("disabled"),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Last N members"))),__.push('<\/option>     <option value="since"    '),typeof(dimPosition=="Filter")!="undefined"&&dimPosition=="Filter"!=null&&(typeof(dimPosition=="Filter")=="function"?(dimPosition=="Filter").call($item):dimPosition=="Filter")&&__.push("disabled"),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Since"))),__.push('<\/option>     <option value="allData" '),typeof(dimPosition=="Filter")!="undefined"&&dimPosition=="Filter"!=null&&(typeof(dimPosition=="Filter")=="function"?(dimPosition=="Filter").call($item):dimPosition=="Filter")&&__.push("disabled"),__.push(">"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","All data"))),__.push("<\/option>    <\/select>   <\/div>  ")),__.push('     <div class="time-frequency">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Frequency"))),__.push("<\/label><!--   -->"),typeof($.inArray("A",frequencies)>=0)!="undefined"&&$.inArray("A",frequencies)>=0!=null&&(typeof($.inArray("A",frequencies)>=0)=="function"?($.inArray("A",frequencies)>=0).call($item):$.inArray("A",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" class="unchecked" id="Annual" value="A" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Annual"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","A"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("H",frequencies)>=0)!="undefined"&&$.inArray("H",frequencies)>=0!=null&&(typeof($.inArray("H",frequencies)>=0)=="function"?($.inArray("H",frequencies)>=0).call($item):$.inArray("H",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" class="unchecked" id="SemiAnnual" value="H" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","SemiAnnual"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Sa"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("Q",frequencies)>=0)!="undefined"&&$.inArray("Q",frequencies)>=0!=null&&(typeof($.inArray("Q",frequencies)>=0)=="function"?($.inArray("Q",frequencies)>=0).call($item):$.inArray("Q",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" class="unchecked" id="Quarterly" value="Q" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Quarterly"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Q"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("FQ",frequencies)>=0)!="undefined"&&$.inArray("FQ",frequencies)>=0!=null&&(typeof($.inArray("FQ",frequencies)>=0)=="function"?($.inArray("FQ",frequencies)>=0).call($item):$.inArray("FQ",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" class="unchecked" id="FiscalQuarterly" value="FQ" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Fiscal quarterly"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","FQ"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("M",frequencies)>=0)!="undefined"&&$.inArray("M",frequencies)>=0!=null&&(typeof($.inArray("M",frequencies)>=0)=="function"?($.inArray("M",frequencies)>=0).call($item):$.inArray("M",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" class="unchecked" id="Monthly" value="M" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Monthly"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Mo"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("W",frequencies)>=0)!="undefined"&&$.inArray("W",frequencies)>=0!=null&&(typeof($.inArray("W",frequencies)>=0)=="function"?($.inArray("W",frequencies)>=0).call($item):$.inArray("W",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" class="unchecked" id="Weekly" value="W" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Weekly"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","W"))),__.push("<\/span><!--   -->")),__.push("<!--   -->"),typeof($.inArray("D",frequencies)>=0)!="undefined"&&$.inArray("D",frequencies)>=0!=null&&(typeof($.inArray("D",frequencies)>=0)=="function"?($.inArray("D",frequencies)>=0).call($item):$.inArray("D",frequencies)>=0)&&(__.push('<!--    --><span unselectable="on" class="unchecked" id="Daily" value="D" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Daily"))),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","D"))),__.push("<\/span><!--   -->")),__.push("      "),typeof(frequencies.length>1)!="undefined"&&frequencies.length>1!=null&&(typeof(frequencies.length>1)=="function"?(frequencies.length>1).call($item):frequencies.length>1)&&(__.push('     <div class="info-icon" data-toggle="tooltip" data-placement="'),typeof(isRtl?"left":"right")!="undefined"&&(isRtl?"left":"right")!=null&&__.push($.encode(typeof(isRtl?"left":"right")=="function"?(isRtl?"left":"right").call($item):isRtl?"left":"right")),__.push('" title="'),typeof tooltipContent!="undefined"&&tooltipContent!=null&&__.push($.encode(typeof tooltipContent=="function"?tooltipContent.call($item):tooltipContent)),__.push('">      <i class="knoema-ico info"><\/i>     <\/div>    ')),__.push('   <\/div>    <div class="time-last-n-selection" data-selection-mode="last" style="display: none;">     <div class="time-last-n-message">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Select count of members"))),__.push('&nbsp;<\/div>     <div class="last-n-selection-container">    <select class="count-of-last-n-members date-field-column">     <option>3<\/option>     <option>5<\/option>     <option>10<\/option>     <option>15<\/option>     <option>25<\/option>     <option>50<\/option>    <\/select>    <div class="last-n-members-input" contentEditable="true">3<\/div>   <\/div>    <\/div>    <div data-selection-mode="range" class=\'time-range-selection '),typeof(selectedDateColumn=="0"?"hide-time-selection":"")!="undefined"&&(selectedDateColumn=="0"?"hide-time-selection":"")!=null&&__.push($.encode(typeof(selectedDateColumn=="0"?"hide-time-selection":"")=="function"?(selectedDateColumn=="0"?"hide-time-selection":"").call($item):selectedDateColumn=="0"?"hide-time-selection":"")),__.push('\'>     <div class="time-range " data-frequency="A">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Start Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push('    <br />    <label class="label-end-date">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","End Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"end-year")),__.push('   <\/div>   <div class="time-range" data-frequency="H">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Start Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push('    <select class="start-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Half Year"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Half Year"))),__.push('<\/option>    <\/select>    <br />    <label class="label-end-date">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","End Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"end-year")),__.push('    <select class="end-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Half Year"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Half Year"))),__.push('<\/option>    <\/select>   <\/div>   <div class="time-range" data-frequency="Q">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Start Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push('    <select class="start-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Quarter"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Quarter"))),__.push('<\/option>     <option value="3">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","3rd Quarter"))),__.push('<\/option>     <option value="4">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","4th Quarter"))),__.push('<\/option>    <\/select>    <br />    <label class="label-end-date">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","End Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"end-year")),__.push('    <select class="end-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Quarter"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Quarter"))),__.push('<\/option>     <option value="3">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","3rd Quarter"))),__.push('<\/option>     <option value="4">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","4th Quarter"))),__.push('<\/option>    <\/select>   <\/div>   <div class="time-range" data-frequency="FQ">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Start Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push('    <select class="start-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Fiscal Quarter"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Fiscal Quarter"))),__.push('<\/option>     <option value="3">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","3rd Fiscal Quarter"))),__.push('<\/option>     <option value="4">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","4th Fiscal Quarter"))),__.push('<\/option>    <\/select>    <br />    <label class="label-end-date">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","End Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"end-year")),__.push('    <select class="end-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Fiscal Quarter"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Fiscal Quarter"))),__.push('<\/option>     <option value="3">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","3rd Fiscal Quarter"))),__.push('<\/option>     <option value="4">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","4th Fiscal Quarter"))),__.push('<\/option>    <\/select>   <\/div>   <div class="time-range" data-frequency="M">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Start Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"start-period")),__.push('    <br />    <label class="label-end-date">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","End Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"end-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"end-period")),__.push('   <\/div>     <div class="time-range" data-frequency="W">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Start Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"start-period")),__.push("    "),typeof htmlForDaySelectionCombo!="undefined"&&htmlForDaySelectionCombo!=null&&__.push(htmlForDaySelectionCombo.call($item,"start-day")),__.push('    <br />    <label class="label-end-date">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","End Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"end-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"end-period")),__.push("    "),typeof htmlForDaySelectionCombo!="undefined"&&htmlForDaySelectionCombo!=null&&__.push(htmlForDaySelectionCombo.call($item,"end-day")),__.push('   <\/div>     <div class="time-range" data-frequency="D">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Start Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"start-period")),__.push("    "),typeof htmlForDaySelectionCombo!="undefined"&&htmlForDaySelectionCombo!=null&&__.push(htmlForDaySelectionCombo.call($item,"start-day")),__.push('    <br />    <label class="label-end-date">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","End Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"end-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"end-period")),__.push("    "),typeof htmlForDaySelectionCombo!="undefined"&&htmlForDaySelectionCombo!=null&&__.push(htmlForDaySelectionCombo.call($item,"end-day")),__.push('   <\/div>     <div class="time-range-single-select" data-frequency="A">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push('   <\/div>   <div class="time-range-single-select" data-frequency="H">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push('    <select class="start-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Half Year"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Half Year"))),__.push('<\/option>    <\/select>   <\/div>   <div class="time-range-single-select" data-frequency="Q">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push('    <select class="start-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Quarter"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Quarter"))),__.push('<\/option>     <option value="3">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","3rd Quarter"))),__.push('<\/option>     <option value="4">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","4th Quarter"))),__.push('<\/option>    <\/select>   <\/div>   <div class="time-range-single-select" data-frequency="FQ">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push('    <select class="start-period">     <option value="1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","1st Fiscal Quarter"))),__.push('<\/option>     <option value="2">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","2nd Fiscal Quarter"))),__.push('<\/option>     <option value="3">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","3rd Fiscal Quarter"))),__.push('<\/option>     <option value="4">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","4th Fiscal Quarter"))),__.push('<\/option>    <\/select>   <\/div>   <div class="time-range-single-select" data-frequency="M">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"start-period")),__.push("   <\/div>   "),typeof($.inArray("W",frequencies)>=0)!="undefined"&&$.inArray("W",frequencies)>=0!=null&&(typeof($.inArray("W",frequencies)>=0)=="function"?($.inArray("W",frequencies)>=0).call($item):$.inArray("W",frequencies)>=0)&&(__.push('   <div class="time-range-single-select" data-frequency="W">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"start-period")),__.push("    "),typeof htmlForDaySelectionCombo!="undefined"&&htmlForDaySelectionCombo!=null&&__.push(htmlForDaySelectionCombo.call($item,"start-day")),__.push("   <\/div>   ")),__.push('   <div class="time-range-single-select" data-frequency="D">    <label>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/time-filter.htm","Date"))),__.push("<\/label><br />    "),typeof htmlForYearSelectionCombo!="undefined"&&htmlForYearSelectionCombo!=null&&__.push(htmlForYearSelectionCombo.call($item,"start-year")),__.push("    "),typeof htmlForMonthSelectionCombo!="undefined"&&htmlForMonthSelectionCombo!=null&&__.push(htmlForMonthSelectionCombo.call($item,"start-period")),__.push("    "),typeof htmlForDaySelectionCombo!="undefined"&&htmlForDaySelectionCombo!=null&&__.push(htmlForDaySelectionCombo.call($item,"start-day")),__.push("   <\/div>    <\/div>");return __})