jQuery.template("Tmpl-knoema-components-font-name-select",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="font-name-select">   <label for="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" class="'),typeof labelClassName!="undefined"&&labelClassName!=null&&__.push($.encode(typeof labelClassName=="function"?labelClassName.call($item):labelClassName)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/components/font-name-select.htm","Font"))),__.push('<\/label>   <select id="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" class="'),typeof className!="undefined"&&className!=null&&__.push($.encode(typeof className=="function"?className.call($item):className)),__.push('">    '),typeof Knoema.DefaultFontFamilies!="undefined"&&Knoema.DefaultFontFamilies!=null&&$.each(typeof Knoema.DefaultFontFamilies=="function"?Knoema.DefaultFontFamilies.call($item):Knoema.DefaultFontFamilies,function(n,family){with(this)__.push('     <option style="font-family: '),typeof family!="undefined"&&family!=null&&__.push($.encode(typeof family=="function"?family.call($item):family)),__.push(';" value="'),typeof family!="undefined"&&family!=null&&__.push($.encode(typeof family=="function"?family.call($item):family)),__.push('">'),typeof family.split(",")[0]!="undefined"&&family.split(",")[0]!=null&&__.push($.encode(typeof family.split(",")[0]=="function"?family.split(",")[0].call($item):family.split(",")[0])),__.push("<\/option>    ")}),__.push("   <\/select>  <\/div>");return __});jQuery.template("Tmpl-knoema-components-font-size-select",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<select id="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" class="'),typeof className!="undefined"&&className!=null&&__.push($.encode(typeof className=="function"?className.call($item):className)),__.push('">   <option value="8">8<\/option>   <option value="9">9<\/option>   <option value="10">10<\/option>   <option value="11" selected="selected">11<\/option>   <option value="12">12<\/option>   <option value="14">14<\/option>   <option value="16">16<\/option>   <option value="18">18<\/option>   <option value="20">20<\/option>   <option value="22">22<\/option>   <option value="24">24<\/option>   <option value="26">26<\/option>   <option value="28">28<\/option>   <option value="36">36<\/option>   <option value="48">48<\/option>   <option value="72">72<\/option>  <\/select>');return __});jQuery.template("Tmpl-knoema-overlay-content",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="dlg-gadget-customization-tabs">  <div class="dlg-gadget-customization-tabs-nav">   <p>    <a id="dlg-gadget-customization-tabs-nav-prev"><span class="dlg-gadget-customization-tabs-nav-prev" />     <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/content.htm","Back"))),__.push('<\/span> <\/a><a id="dlg-gadget-customization-tabs-nav-next"><span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/content.htm","Next"))),__.push('<\/span>      <span class="dlg-gadget-customization-tabs-nav-next" /><\/a>   <\/p>  <\/div>  <ul>   <li class="active" data-panel-class="tab-dataset-selection">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/content.htm","Dataset Selection"))),__.push('<\/li>   <li data-panel-class="tab-dimension-filter">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/content.htm","Dimension Filter"))),__.push('<\/li>   <li data-panel-class="tab-appearance">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/content.htm","Appearance"))),__.push('<\/li>  <\/ul> <\/div> <div class="customization" style="width: 100%">  <div class="overlay-tab-panel tab-dataset-selection">  <\/div>  <div class="overlay-tab-panel tab-dimension-filter">  <\/div>  <div class="overlay-tab-panel tab-appearance hidden">   <div class="appearance-form">    <\/div>   <div class="visualization gadget-container">   <\/div>   <div class="footer">   <\/div>  <\/div> <\/div>');return __});jQuery.template("Tmpl-knoema-overlay-dataset",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="ds-loader" style="width: 100%; height: 100%; position: absolute; z-index: 1000; background-color: white; background-image: url(/img/v4/loader.gif); background-position: center; background-repeat: no-repeat"><\/div>  <div class="dlg-gadget-customization-tabs">   <div class="dlg-gadget-customization-tabs-nav">    <p>     <a id="dlg-gadget-customization-tabs-nav-prev"><span class="dlg-gadget-customization-tabs-nav-prev" />      <span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/dataset.htm","Back"))),__.push('<\/span><\/a> <a id="dlg-gadget-customization-tabs-nav-next"><span>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/dataset.htm","Next"))),__.push('<\/span><span       class="dlg-gadget-customization-tabs-nav-next" /><\/a>    <\/p>   <\/div>   <ul>    <li class="active" data-panel-class="tab-dataset-selection">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/dataset.htm","Dataset Selection"))),__.push('<\/li><!--   --><li data-panel-class="tab-tags-filter">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/dataset.htm","Select by Tags"))),__.push('<\/li><!--   -->   <\/ul>  <\/div>  <div class="customization" style="width: 100%">   <div class="overlay-tab-panel tab-dataset-selection">    <div id="gadget-datasetlist-dsbrowser" style="overflow-y: hidden;" class="ui-layout-center">    <\/div>    <div class="gadget-datasetlist-displaylist ui-layout-east">     <ul>     <\/ul>    <\/div>   <\/div>   <div class="overlay-tab-panel tab-tags-filter">    <div id="gadget-datasetlist-dsfinder" class="ui-layout-center">     <input type="text" value="" class="gadget-tags-hidden" style="display: none"/>     <ul class="gadget-tags-list">     <\/ul>     <input type="button" id="find-tags" name="find-tags" class="ui-button" value="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/dataset.htm","Find"))),__.push('" />    <\/div>    <div class="gadget-datasetlist-displaylist" style="position: absolute; right: 0;left: 0;bottom: 15px;top: 60px;">     <ul>     <\/ul>    <\/div>   <\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-overlay-feed-edit",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="feed-edit">  <div class="settings">   <div>    <label for="url">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Feed url"))),__.push('    <\/label>    <input type="text" id="url" />   <\/div>   <div>    <label for="count">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Count"))),__.push('    <\/label>    <input id="count" type="text" value="10" />   <\/div>   <div>    <label for="items-per-page">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Items per page"))),__.push('    <\/label>    <input id="items-per-page" type="text" />   <\/div>   <div>    <label for="length">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Text length"))),__.push('    <\/label>    <input id="length" type="text" value="100" />   <\/div>   <div>    <label for="date">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Show date"))),__.push('    <\/label>    <input id="date" type="checkbox" />   <\/div>   <div>     <label for="target">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Open links in"))),__.push('     <\/label>     <select id="target">      <option value="_self">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Same window"))),__.push('<\/option>      <option value="_blank">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","New window"))),__.push('<\/option>     <\/select>    <\/div>   <div>    <label for="layout">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Layout"))),__.push('    <\/label>    <select id="layout">     <option selected value="vertical">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Vertical"))),__.push('<\/option>     <option value="horizontal">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Horizontal"))),__.push('<\/option>     <option value="columns">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Columns"))),__.push('<\/option>    <\/select>   <\/div>   <div>    <label for="title-color">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Title color"))),__.push('    <\/label>    <select id="title-color"><\/select>   <\/div>   <div>    <label for="background-style">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Background style"))),__.push('    <\/label>    <select id="background-style"><\/select>   <\/div>   <div>    <label for="background-opacity">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/feed-edit.htm","Opacity"))),__.push('    <\/label>    <div id="background-opacity"><\/div>   <\/div>  <\/div>  <div class="content">    <\/div> <\/div>');return __});jQuery.template("Tmpl-knoema-overlay-parent",function(n,t){var r=n,__=[],i=t.data;with(i)__.push('<div class="dlg-gadget-customization">   <div class="custom-titlebar">       <\/div>  <\/div>');return __});jQuery.template("Tmpl-knoema-overlay-ranges-editor",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="ranges-editor">   <div class="toolbar">    <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges-editor.htm","Ranges"))),__.push('<\/label>    <select class="ranges-count">     '),typeof[2,3,4,5,6]!="undefined"&&[2,3,4,5,6]!=null&&$.each(typeof[2,3,4,5,6]=="function"?[2,3,4,5,6].call($item):[2,3,4,5,6],function(n,rangesCount){with(this)__.push('     <option value="'),typeof rangesCount!="undefined"&&rangesCount!=null&&__.push($.encode(typeof rangesCount=="function"?rangesCount.call($item):rangesCount)),__.push('">'),typeof rangesCount!="undefined"&&rangesCount!=null&&__.push($.encode(typeof rangesCount=="function"?rangesCount.call($item):rangesCount)),__.push("<\/option>     ")}),__.push('    <\/select>    <div class="on-off-switch">     <input type="checkbox" id="'),typeof modeCheckboxId!="undefined"&&modeCheckboxId!=null&&__.push($.encode(typeof modeCheckboxId=="function"?modeCheckboxId.call($item):modeCheckboxId)),__.push('" class="is-custom-mode" />     <label for="'),typeof modeCheckboxId!="undefined"&&modeCheckboxId!=null&&__.push($.encode(typeof modeCheckboxId=="function"?modeCheckboxId.call($item):modeCheckboxId)),__.push('">      <div class="inner"><\/div>      <div class="switch"><\/div>     <\/label>    <\/div>    '),typeof invertColorsButton!="undefined"&&invertColorsButton!=null&&(typeof invertColorsButton=="function"?invertColorsButton.call($item):invertColorsButton)&&(__.push('    <span class="invert-colors" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges-editor.htm","Invert colors"))),__.push('"><\/span>    ')),__.push("   <\/div>  <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-ranges",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="ranges">   '),typeof ranges!="undefined"&&ranges!=null&&$.each(typeof ranges=="function"?ranges.call($item):ranges,function(i,range){with(this)__.push('   <div class="range-holder" data-index="'),typeof i!="undefined"&&i!=null&&__.push($.encode(typeof i=="function"?i.call($item):i)),__.push('" data-color="'),typeof range.color!="undefined"&&range.color!=null&&__.push($.encode(typeof range.color=="function"?range.color.call($item):range.color)),__.push('">    <select data-index="'),typeof i!="undefined"&&i!=null&&__.push($.encode(typeof i=="function"?i.call($item):i)),__.push('" class="range-colorpicker">    <\/select>      '),typeof(i==0&&(range.low=="-Infinity"||range.low==null))!="undefined"&&(i==0&&(range.low=="-Infinity"||range.low==null))!=null&&(typeof(i==0&&(range.low=="-Infinity"||range.low==null))=="function"?(i==0&&(range.low=="-Infinity"||range.low==null)).call($item):i==0&&(range.low=="-Infinity"||range.low==null))?(__.push('     <span contenteditable="true" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","Click to edit"))),__.push('" class="range low" data-value="'),typeof range.low!="undefined"&&range.low!=null&&__.push($.encode(typeof range.low=="function"?range.low.call($item):range.low)),__.push('">-&#8734;<\/span>     <span class="range dash">&lt;<\/span>     <span contenteditable="true" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","Click to edit"))),__.push('" class="range high" data-value="'),typeof range.high!="undefined"&&range.high!=null&&__.push($.encode(typeof range.high=="function"?range.high.call($item):range.high)),__.push('">'),typeof range.high!="undefined"&&range.high!=null&&__.push($.encode(typeof range.high=="function"?range.high.call($item):range.high)),__.push("<\/span>    ")):typeof(i==ranges.length-1&&(range.high=="Infinity"||range.high==null))!="undefined"&&(i==ranges.length-1&&(range.high=="Infinity"||range.high==null))!=null&&(typeof(i==ranges.length-1&&(range.high=="Infinity"||range.high==null))=="function"?(i==ranges.length-1&&(range.high=="Infinity"||range.high==null)).call($item):i==ranges.length-1&&(range.high=="Infinity"||range.high==null))?(__.push('      <span contenteditable="true" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","Click to edit"))),__.push('" class="range low" data-value="'),typeof range.low!="undefined"&&range.low!=null&&__.push($.encode(typeof range.low=="function"?range.low.call($item):range.low)),__.push('">'),typeof range.low!="undefined"&&range.low!=null&&__.push($.encode(typeof range.low=="function"?range.low.call($item):range.low)),__.push('<\/span>     <span class="range dash">&gt;<\/span>     <span contenteditable="true" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","Click to edit"))),__.push('" class="range high" data-value="'),typeof range.high!="undefined"&&range.high!=null&&__.push($.encode(typeof range.high=="function"?range.high.call($item):range.high)),__.push('">&#8734;<\/span>    ')):!0&&(__.push('     <span contenteditable="true" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","Click to edit"))),__.push('" class="range low" data-value="'),typeof range.low!="undefined"&&range.low!=null&&__.push($.encode(typeof range.low=="function"?range.low.call($item):range.low)),__.push('">'),typeof range.low!="undefined"&&range.low!=null&&__.push($.encode(typeof range.low=="function"?range.low.call($item):range.low)),__.push('<\/span>     <span class="range dash">&ndash;<\/span>     <span contenteditable="true" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","Click to edit"))),__.push('" class="range high" data-value="'),typeof range.high!="undefined"&&range.high!=null&&__.push($.encode(typeof range.high=="function"?range.high.call($item):range.high)),__.push('">'),typeof range.high!="undefined"&&range.high!=null&&__.push($.encode(typeof range.high=="function"?range.high.call($item):range.high)),__.push("<\/span>    ")),__.push("     <\/div>   ")}),__.push("   "),typeof showNoDataOption!="undefined"&&showNoDataOption!=null&&(typeof showNoDataOption=="function"?showNoDataOption.call($item):showNoDataOption)&&(__.push('    <div class="range-holder no-data">     <div class="'),typeof(noDataOptionEnabled?"enabled":"disabled")!="undefined"&&(noDataOptionEnabled?"enabled":"disabled")!=null&&__.push($.encode(typeof(noDataOptionEnabled?"enabled":"disabled")=="function"?(noDataOptionEnabled?"enabled":"disabled").call($item):noDataOptionEnabled?"enabled":"disabled")),__.push('">      <select class="no-data-colorpicker"><\/select>      <span class="range">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","No data"))),__.push("<\/span>     <\/div>       "),typeof noDataOptionEnabled!="undefined"&&noDataOptionEnabled!=null&&(typeof noDataOptionEnabled=="function"?noDataOptionEnabled.call($item):noDataOptionEnabled)?(__.push('     <span class="toggle hide">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","Hide"))),__.push("<\/span>     ")):!0&&(__.push('     <span class="toggle show">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranges.htm","Show"))),__.push("<\/span>     ")),__.push("    <\/div>   ")),__.push("  <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-ranking-base-member-select",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="field-header">   '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranking-base-member-select.htm","Base member"))),__.push('  <\/div> <select id="base-region">  <option value="0">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/ranking-base-member-select.htm","Do not use base member"))),__.push("<\/option>  "),typeof regions!="undefined"&&regions!=null&&$.each(typeof regions=="function"?regions.call($item):regions,function(n,region){with(this)__.push("   "),typeof(region.key==baseRegionKey)!="undefined"&&region.key==baseRegionKey!=null&&(typeof(region.key==baseRegionKey)=="function"?(region.key==baseRegionKey).call($item):region.key==baseRegionKey)?(__.push('   <option value="'),typeof region.key!="undefined"&&region.key!=null&&__.push($.encode(typeof region.key=="function"?region.key.call($item):region.key)),__.push('" selected>'),typeof region.name!="undefined"&&region.name!=null&&__.push($.encode(typeof region.name=="function"?region.name.call($item):region.name)),__.push("<\/option>   ")):!0&&(__.push('   <option value="'),typeof region.key!="undefined"&&region.key!=null&&__.push($.encode(typeof region.key=="function"?region.key.call($item):region.key)),__.push('">'),typeof region.name!="undefined"&&region.name!=null&&__.push($.encode(typeof region.name=="function"?region.name.call($item):region.name)),__.push("<\/option>   ")),__.push("  ")}),__.push(" <\/select>");return __});jQuery.template("Tmpl-knoema-overlay-text",function(n,t){var r=n,__=[],i=t.data;with(i)__.push('<div class="visualization">  <\/div>');return __});jQuery.template("Tmpl-knoema-overlay-appearance-chart",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="notification-tooltip-holder">  <\/div>  <div id="appearance-accordion" class="format-options">     <h3 class="global-chart-format-options">    <a href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","General"))),__.push('<\/a>   <\/h3>   <div class="options-form global-chart-format-options" id="global-chart-format-options">    <div class="content">     <div class="form-section">      <label class="field-header one-line">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Theme"))),__.push('      <\/label>      <div id="theme"><\/div>      <span id="invert-ranges" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Invert colors"))),__.push('"><\/span>     <\/div>       <div class="form-section">      <div class="field-header">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Chart type"))),__.push('      <\/div>      <div id="chart-type-with-stacking" class="chart-type-with-stacking form-column">       <a href="#" data-chart-type="line"    title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Line chart"))),__.push('"                      class="line"><\/a>       <a href="#" data-chart-type="spline"  title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Spline chart"))),__.push('"                    class="spline"><\/a>       <a href="#" data-chart-type="radar"   title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Radar chart"))),__.push('"                     class="radar" ><\/a>       <a href="#" data-chart-type="area"    title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Area chart"))),__.push('"                      class="area"><\/a>       <a href="#" data-chart-type="area"    title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Area value stacked chart"))),__.push('"        class="area normal"><\/a>       <a href="#" data-chart-type="area"    title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Area percentage stacked chart"))),__.push('"   class="area percent"><\/a>       <a href="#" data-chart-type="column"  title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Column chart"))),__.push('"                    class="column"><\/a>       <a href="#" data-chart-type="column"  title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Column value stacked chart"))),__.push('"      class="column normal"><\/a>       <a href="#" data-chart-type="column"  title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Column percentage stacked chart"))),__.push('" class="column percent"><\/a>       <a href="#" data-chart-type="bar"     title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Bar chart"))),__.push('"                       class="bar"><\/a>       <a href="#" data-chart-type="bar"     title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Bar value stacked chart"))),__.push('"         class="bar normal"><\/a>       <a href="#" data-chart-type="bar"     title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Bar percentage stacked chart"))),__.push('"    class="bar percent"><\/a>       <a href="#" data-chart-type="pie"     title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Pie chart"))),__.push('"                       class="pie"><\/a>       <a href="#" data-chart-type="donut"   title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Donut chart"))),__.push('"                     class="donut"><\/a>       <a href="#" data-chart-type="pyramid" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Pyramid"))),__.push('"                         class="pyramid"><\/a>       <a href="#" data-chart-type="mixed"   title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Mixed"))),__.push('"                           class="mixed"><\/a>      <\/div>     <\/div>       <div class="form-section">      <table>       <tr>        <td class="display-labels-holder form-column">         <div class="field-header one-line">          '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Labels"))),__.push('         <\/div>         <div id="labels" class="together">          <a href="#" class="kn-checkbox ui-element">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Display"))),__.push('<\/a>         <\/div>        <\/td>        <td class="pie-display-format-holder form-column">         <select id="pie-display-format" class="combo" >          <option value="names">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Names"))),__.push('<\/option>          <option value="namesWithShare">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Names with share(%)"))),__.push('<\/option>          <option value="namesWithValue">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Names with value"))),__.push('<\/option>         <\/select>        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="form-section pie-display-format donut-thickness-holder">      <div class="field-header">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Thickness"))),__.push('      <\/div>      <div id="donut-thickness">       <a class="kn-radio ui-element" data-inner-size="60%" href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Thin"))),__.push('<\/a>       <a class="kn-radio ui-element" data-inner-size="50%" href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Medium"))),__.push('<\/a>       <a class="kn-radio ui-element" data-inner-size="25%" href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Thick"))),__.push('<\/a>      <\/div>     <\/div>       <div class="form-section">      <table>       <tr>        <td class="precision-holder form-column">         <div class="field-header">          '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Precision"))),__.push('         <\/div>         <div id="precision" class="number-select">          <a data-precision="0" href="#">0<\/a>          <a data-precision="1" href="#">1<\/a>          <a data-precision="2" href="#">2<\/a>          <a data-precision="3" href="#">3<\/a>          <a data-precision="4" href="#">4<\/a>         <\/div>        <\/td>        <td class="marker-type-holder form-column">         <div class="marker-type">          <div class="field-header">           '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Marker"))),__.push('          <\/div>          <div class="together marker-icons">           <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","None"))),__.push('"     data-marker-type="none"     class="none"><\/a>           <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Circle"))),__.push('"   data-marker-type="circle"   class="circle"><\/a>           <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Diamond"))),__.push('"  data-marker-type="diamond"  class="diamond"><\/a>           <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Square"))),__.push('"   data-marker-type="square"   class="square"><\/a>           <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Triangle"))),__.push('" data-marker-type="triangle" class="triangle"><\/a>           <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Triangle down"))),__.push('" data-marker-type="triangle-down" class="triangle-down"><\/a>          <\/div>         <\/div>        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="form-section">      <label for="shared-tooltip" class="field-header one-line">       <input id="shared-tooltip" type="checkbox" />       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Shared tooltip"))),__.push('      <\/label>     <\/div>       <div class="form-section">      <label>        <input id="gradient-fill" type="checkbox" /> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Gradient fill"))),__.push('      <\/label>     <\/div>       <div class="form-section" id="plot-band-options">      <div class="form-column">       <div class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Highlight"))),__.push('       <\/div>       <span class="together">        <select id="chart-band-template" class="combo ui-element">         <option value="none">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","None"))),__.push('<\/option>         <option value="customRanges">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Custom range"))),__.push("<\/option>         "),typeof dateOnX!="undefined"&&dateOnX!=null&&(typeof dateOnX=="function"?dateOnX.call($item):dateOnX)&&(__.push('          <option value="worldRecession">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","US Recession Data"))),__.push('<\/option>          <option value="forecast">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Forecasted Data - Band"))),__.push('<\/option>          <option value="forecastLine">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Forecasted Data - Line"))),__.push("<\/option>         ")),__.push('        <\/select>        <select id="chart-band-color" class="combo">        <\/select>       <\/span>      <\/div>        <div class="form-column custom-ranges-holder">       <input type="text" class="custom-ranges ui-element" title="'),typeof customRangesSample!="undefined"&&customRangesSample!=null&&__.push($.encode(typeof customRangesSample=="function"?customRangesSample.call($item):customRangesSample)),__.push('" placeholder="'),typeof customRangesSample!="undefined"&&customRangesSample!=null&&__.push($.encode(typeof customRangesSample=="function"?customRangesSample.call($item):customRangesSample)),__.push('" />       <div class="icon_info" data-toggle="tooltip" data-placement="'),typeof dataPlacement!="undefined"&&dataPlacement!=null&&__.push($.encode(typeof dataPlacement=="function"?dataPlacement.call($item):dataPlacement)),__.push('" title="'),typeof notificationMessage!="undefined"&&notificationMessage!=null&&__.push($.encode(typeof notificationMessage=="function"?notificationMessage.call($item):notificationMessage)),__.push('"><\/div>       <div class="custom-ranges-validation-message">        '),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/knoema/overlay/appearance/chart.htm","Please specify a range in the supported format. Use {icon} for more information.",{icon:'<div class="icon_info_for_text"><\/div>'})),__.push('       <\/div>      <\/div>       <\/div>       <div class="form-section">      <div class="form-column">       <a href="#" class="kn-checkbox swap-axis swap-axis-pie ui-element">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Swap axes"))),__.push('<\/a>      <\/div>     <\/div>       <div class="form-section">      <div class="form-column">       <button type="button" class="sort-options ui-button">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Sort Options"))),__.push('       <\/button>       <button type="button" class="footnote ui-button">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Footnote"))),__.push('       <\/button>      <\/div>     <\/div>    <\/div>   <\/div>   <!--/#global-chart-format-options-->     <h3 class="plot-area-options">    <a href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Plot area"))),__.push('<\/a>   <\/h3>   <div class="options-form plot-area-options" id="plot-area-options">    <div class="content">     <div class="form-section">      <table>       <tr>        <td class="background-type-holder form-column">         <div class="field-header">          '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Background type"))),__.push('         <\/div>         <div id="bg-type">          <a href="#" data-background-type="solidFill"   class="solid-fill"  title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Solid fill"))),__.push(' "><\/a>          <a href="#" data-background-type="gradient"    class="gradient"    title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Gradient"))),__.push(' "><\/a>          <a href="#" data-background-type="transparent" class="transparent" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Transparent"))),__.push('"><\/a>         <\/div>        <\/td>        <td class="bg-color-holder form-column">         <div class="bg-color-container">          <div class="field-header">           '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Background color"))),__.push('          <\/div>          <select id="bg-color" class="combo">          <\/select>         <\/div>        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="form-section">      <table>       <tr>        <td class="legend-holder form-column">         <div class="field-header">          '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Legend"))),__.push('         <\/div>         <div id="legend">          <a href="#" data-legend="none" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Do not display legend"))),__.push('" class="legend-none"><\/a>          <a href="#" data-legend="top" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Legend on top"))),__.push('" class="legend-top"><\/a>          <a href="#" data-legend="right" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Legend at right"))),__.push('" class="legend-right"><\/a>          <a href="#" data-legend="bottom" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Legend at bottom"))),__.push('" class="legend-bottom"><\/a>          <a href="#" data-legend="float" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Floating legend"))),__.push('" class="legend-float"><\/a>         <\/div>        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="form-section legend-settings">      <table>       <tr>        <td class="legend-bg-color form-column">         <div class="field-header">          '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Background color"))),__.push('         <\/div>         <select id="legend-bg-color" class="combo"><\/select>        <\/td>        <td class="legend-opecity form-column">         <div class="field-header">          '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Opacity"))),__.push('         <\/div>         <div class="legend-opacity-slider"><\/div>        <\/td>        <td class="form-column legend-opacity-column">        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="form-section">      <table>       <tr>        <td class="gridlines-holder form-column">         <div class="gridlines">          <div class="field-header">           '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Gridlines"))),__.push('          <\/div>          <div id="gridlines">           <a href="#" data-gridlines="horizontal" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Horizontal gridlines"))),__.push('" class="horizontal"><\/a>           <a href="#" data-gridlines="vertical" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Vertical gridlines"))),__.push('" class="vertical"><\/a>          <\/div>         <\/div>        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="form-section">      <div class="plot-area-border form-column">       <div class="field-header one-line">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Border"))),__.push('       <\/div>       <div id="plot-area-border" class="together">        <a href="#" class="kn-checkbox ui-element checked">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Display"))),__.push('<\/a>       <\/div>      <\/div>     <\/div>       <div class="form-section">      <div class="plot-area-text-block form-column">       <div class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Text note"))),__.push('       <\/div>       <div>        <button type="button" id="add-text-note" class="ui-button">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Add text block"))),__.push('<\/button>       <\/div>       <div class="text-block-list"><\/div>      <\/div>     <\/div>    <\/div>   <\/div>   <!--/#plot-area-options-->     <h3 class="series-level-format-options">    <a href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Series"))),__.push('<\/a>   <\/h3>     <div class="options-form series-level-format-options" id="series-level-format-options" data-series-id="no-id">        <div class="content">       <div class="form-section">      <div class="form-column">       <select id="series-select" class="ui-element"><\/select>      <\/div>     <\/div>       <div class="form-section series-name-holder">      <label for="series-name" class="field-header">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Name"))),__.push('<\/label>      <div class="ui-group">       <input id="series-name" class="ui-element" type="text" value="" placeholder="" />       <button type="button" class="ui-button set-series-name-button" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Set"))),__.push('">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Set"))),__.push('       <\/button>      <\/div>     <\/div>       <div class="form-section">      <table>       <tr>        <td class="series-color-holder form-column">         <div class="series-color-container">          <div class="field-header">           '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Color"))),__.push('          <\/div>          <select id="series-color" class="combo">          <\/select>         <\/div>        <\/td>        <td class="series-chart-type-holder form-column">         <div class="series-chart-type">          <div class="field-header">           '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Series chart type"))),__.push('          <\/div>          <div id="series-chart-type" class="chart-type">           <a href="#" data-chart-type="line" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Line chart"))),__.push('" class="line"><\/a>           <a href="#" data-chart-type="spline" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Spline chart"))),__.push('" class="spline"><\/a>           <a href="#" data-chart-type="column" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Column chart"))),__.push('" class="column"><\/a>           <a href="#" data-chart-type="bar" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Bar chart"))),__.push('" class="bar"><\/a>           <a href="#" data-chart-type="area" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Area chart"))),__.push('" class="area"><\/a>          <\/div>         <\/div>        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="series-level-line-settings-stuff form-section">      <div class="dash-style form-section-item">       <div class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Line type"))),__.push('       <\/div>       <div id="series-dash-style" class="series-dash-style">        <a href="#" class="Solid" data-dash-style="Solid" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Solid"))),__.push('"><\/a>        <a href="#" class="Dot" data-dash-style="Dot" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Dot"))),__.push('"><\/a>        <a href="#" class="ShortDash" data-dash-style="ShortDash" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","ShortDash"))),__.push('"><\/a>        <a href="#" class="ShortDashDot" data-dash-style="ShortDashDot" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","ShortDashDot"))),__.push('"><\/a>        <a href="#" class="LongDash" data-dash-style="LongDash" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","LongDash"))),__.push('"><\/a>        <a href="#" class="LongDashDot" data-dash-style="LongDashDot" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","LongDashDot"))),__.push('"><\/a>        <a href="#" class="LongDashDotDot" data-dash-style="LongDashDotDot" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","LongDashDotDot"))),__.push('"><\/a>        <a href="#" class="ShortDot" data-dash-style="ShortDot" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","ShortDot"))),__.push('"><\/a>        <a href="#" class="ShortDashDotDot" data-dash-style="ShortDashDotDot" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","ShortDashDotDot"))),__.push('"><\/a>        <a href="#" class="Dash" data-dash-style="Dash" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Dash"))),__.push('"><\/a>        <a href="#" class="DashDot" data-dash-style="DashDot" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","DashDot"))),__.push('"><\/a>        <a href="#" class="None" data-dash-style="None" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","None"))),__.push('"><\/a>       <\/div>      <\/div>        <div class="line-width form-section-item">       <div class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Line width"))),__.push('       <\/div>       <div id="series-line-width" class="number-select">        <a data-line-width="1" href="#">1<\/a>        <a data-line-width="2" href="#">2<\/a>        <a data-line-width="3" href="#">3<\/a>        <a data-line-width="4" href="#">4<\/a>        <a data-line-width="5" href="#">5<\/a>        <a data-line-width="6" href="#">6<\/a>        <a data-line-width="7" href="#">7<\/a>        <a data-line-width="8" href="#">8<\/a>        <a data-line-width="9" href="#">9<\/a>        <a data-line-width="10" href="#">10<\/a>       <\/div>      <\/div>        <div class="marker-type form-section-item">       <div class="field-header one-line">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Marker"))),__.push('       <\/div>       <div class="together marker-icons">        <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","None"))),__.push('" data-marker-type="none" class="none"><\/a>        <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Circle"))),__.push('" data-marker-type="circle" class="circle"><\/a>        <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Diamond"))),__.push('" data-marker-type="diamond" class="diamond"><\/a>        <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Square"))),__.push('" data-marker-type="square" class="square"><\/a>        <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Triangle"))),__.push('" data-marker-type="triangle" class="triangle"><\/a>        <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Triangle down"))),__.push('" data-marker-type="triangle-down" class="triangle-down"><\/a>       <\/div>      <\/div>     <\/div>       <div class="series-level-pattern-fill-settings form-section">      <div class="pattern-style form-section-item">       <div class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Pattern fill"))),__.push('       <\/div>       <div id="series-pattern-style" class="series-pattern-style">        '),typeof patternFillSettings!="undefined"&&patternFillSettings!=null&&__.push(typeof patternFillSettings=="function"?patternFillSettings.call($item):patternFillSettings),__.push('       <\/div>      <\/div>     <\/div>       <div class="form-section">      <div class="series-data-labels form-column">       <div class="field-header one-line">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Labels"))),__.push('       <\/div>       <div id="series-data-labels" class="together">        <a href="#" class="kn-checkbox ui-element">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Display"))),__.push('<\/a>       <\/div>      <\/div>     <\/div>       <div class="form-section">      <div class="primary-secondary-axes form-column">       <div class="field-header one-line">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Axis"))),__.push('       <\/div>       <div id="series-axis" class="together">        <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Primary"))),__.push('" data-series-axis="0" class="ui-element kn-radio primary checked">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Primary"))),__.push('<\/a>        <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Secondary"))),__.push('" data-series-axis="1" class="ui-element kn-radio secondary">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Secondary"))),__.push('<\/a>       <\/div>      <\/div>     <\/div>      <\/div>   <\/div>   <!--/#series-level-format-options-->     <h3 class="range-chart-format-options">    <a href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Ranges"))),__.push('<\/a>   <\/h3>   <div class="options-form range-chart-format-options" id="range-chart-format-options">    <div class="content">     <div class="form-section">      <div class="form-column">       <select id="selected-range" class="ui-element">        <option value="new" selected>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","New"))),__.push('<\/option>       <\/select>      <\/div>     <\/div>                      <div class="form-section">      <div class="form-column">       <div class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Series 1"))),__.push('       <\/div>       <select id="range-series-1" class="ui-element"><\/select>      <\/div>     <\/div>       <div class="form-section">      <div class="form-column">       <div class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Series 2"))),__.push('       <\/div>       <select id="range-series-2" class="ui-element"><\/select>      <\/div>     <\/div>       <div class="form-section">      <div class="form-column">       <div class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Color"))),__.push('       <\/div>       <select id="range-color"><\/select>      <\/div>     <\/div>       <div class="form-section">      <div class="buttons">       <button type="button" id="delete-range" class="ui-element">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Delete"))),__.push('       <\/button>       <button type="button" id="set-range" class="ui-button">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Set Range"))),__.push('       <\/button>      <\/div>     <\/div>    <\/div>   <\/div>   <!--/#range-chart-format-options-->     <h3 class="axis-customization">    <a href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Axes"))),__.push('<\/a>   <\/h3>   <div class="options-form axis-customization" id="axis-customization">    <div class="content">     <div class="form-section">      <div class="chart-axes form-column">       <div class="field-header one-line">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Axes"))),__.push('       <\/div>       <div id="chart-axes" class="together">        <a href="#" class="kn-checkbox ui-element checked">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Display"))),__.push('<\/a>       <\/div>      <\/div>     <\/div>       <div class="form-section">      <div id="axis" class="together form-column">       <a href="#" class="ui-element kn-checkbox ignore-unit">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Ignore units"))),__.push('<\/a>       <a href="#" class="ui-element kn-checkbox swap-axis swap-axis-non-pie">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Swap axes"))),__.push('<\/a>      <\/div>     <\/div>       <div class="form-section">      <label class="field-header one-line">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Log scale"))),__.push('<\/label>      <span class="together log-primary-axis-container">       <input type="checkbox" id="log-primary-axis" name="logXAxis" />       <label for="log-xaxis" class="checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Primary"))),__.push('<\/label>      <\/span>      <span class="together log-secondary-axis-container">       <input type="checkbox" id="log-secondary-axis" name="logYAxis" />       <label for="log-yaxis" class="checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Secondary"))),__.push("<\/label>      <\/span>      "),typeof showLogWarning!="undefined"&&showLogWarning!=null&&(typeof showLogWarning=="function"?showLogWarning.call($item):showLogWarning)&&(__.push('      <span class="dialog-warning-message">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Zero and negative numbers are undefined on a log scale."))),__.push("<\/span>      ")),__.push('     <\/div>       <div class="form-section first-last-label-container disabled">      <span class="together">       <input type="checkbox" id="first-last-label" name="firstLastLabel" disabled="disabled" />       <label for="first-last-label" class="checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Display the first and the last date"))),__.push('<\/label>      <\/span>     <\/div>       <h2 class="section-header axis-titles-header">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Titles"))),__.push('     <\/h2>     <div class="axis-titles-section">      <div class="form-section axis-title-holder">       <label class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Primary"))),__.push('       <\/label>       <div>        <input id="primary-axis-title" class="ui-element axis-title" type="text" value="" />        <a href="#" type="button" class="ui-element kn-checkbox axis-title-mode-switcher">         '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","AUTO"))),__.push('        <\/a>       <\/div>      <\/div>      <div class="form-section axis-title-holder">       <label class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Secondary"))),__.push('       <\/label>       <div>        <input id="secondary-axis-title" class="ui-element axis-title" type="text" value="" />        <a href="#" type="button" class="ui-element kn-checkbox axis-title-mode-switcher">         '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","AUTO"))),__.push('        <\/a>       <\/div>      <\/div>     <\/div>       <h2 class="section-header">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Precision"))),__.push('     <\/h2>     <div class="axis-precision-section">      <div class="form-section axis-precision-holder">       <label class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Primary"))),__.push('       <\/label>       <div>        <select id="axis-precision-primary" class="combo precision">         <option value="-1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","AUTO"))),__.push('<\/option>         <option value="0">0<\/option>         <option value="1">1<\/option>         <option value="2">2<\/option>         <option value="3">3<\/option>         <option value="4">4<\/option>        <\/select>       <\/div>      <\/div>      <div class="form-section axis-precision-holder second-axis">       <label class="field-header">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Secondary"))),__.push('       <\/label>       <div>        <select id="axis-precision-secondary" class="combo precision">         <option value="-1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","AUTO"))),__.push('<\/option>         <option value="0">0<\/option>         <option value="1">1<\/option>         <option value="2">2<\/option>         <option value="3">3<\/option>         <option value="4">4<\/option>        <\/select>       <\/div>      <\/div>     <\/div>       <h2 class="section-header axis-limits-header">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Limits"))),__.push('     <\/h2>     <div class="form-section limits-stuff primary-axis-customization">      <div class="field-header">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Primary"))),__.push('      <\/div>      <table>       <tr>        <td class="fifty form-column">         <label for="min-y-primary" class="field-header">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Min value"))),__.push('<\/label>         <input id="min-y-primary" class="axis-limits ui-element" type="text" value="" />        <\/td>        <td class="fifty form-column">         <label for="max-y-primary" class="field-header">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Max value"))),__.push('<\/label>         <input id="max-y-primary" class="axis-limits ui-element" type="text" value="" />        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="form-section  limits-stuff secondary-axis-customization">      <div class="field-header">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Secondary"))),__.push('      <\/div>      <table>       <tr>        <td class="fifty form-column">         <label for="min-y-secondary" class="field-header">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Min value"))),__.push('<\/label>         <input id="min-y-secondary" class="ui-element axis-limits" type="text" value="" />        <\/td>        <td class="fifty form-column">         <label for="max-y-secondary" class="field-header">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Max value"))),__.push('<\/label>         <input id="max-y-secondary" class="ui-element axis-limits" type="text" value="" />        <\/td>       <\/tr>      <\/table>     <\/div>       <div class="form-section limits-stuff">      <div class="buttons form-column">       <button type="button" id="clear-limits" class="ui-button">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Clear"))),__.push('       <\/button>       <button type="button" id="set-limits" class="ui-button">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/chart.htm","Set limits"))),__.push("       <\/button>      <\/div>     <\/div>    <\/div>   <\/div>   <!--/#axis-customization-->    <\/div><!--/#appearance-accordion-->");return __});jQuery.template("Tmpl-knoema-overlay-appearance-pictogram",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="pictogram-options">   <div class="format-options">    <div class="form-section">    <label class="field-header one-line">     '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Theme","~/Tmpl/knoema/overlay/appearance/chart.htm"))),__.push('    <\/label>    <div id="theme"><\/div>   <\/div>    <div class="form-section">    <div class="field-header">     '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Legend","~/Tmpl/knoema/overlay/appearance/chart.htm"))),__.push('    <\/div>    <div id="legend">     <a href="#" data-legend="top" title="'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Legend on top","~/Tmpl/knoema/overlay/appearance/chart.htm"))),__.push('" class="legend-top"><\/a>     <a href="#" data-legend="bottom" title="'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Legend at bottom","~/Tmpl/knoema/overlay/appearance/chart.htm"))),__.push('" class="legend-bottom"><\/a>    <\/div>   <\/div>    <div class="form-section">    <label for="precision" class="black-label">     '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Precision","~/Tmpl/knoema/overlay/appearance/infocard.htm"))),__.push('    <\/label>    <select id="precision" class="ui-element">     <option value="auto" selected="selected">'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Auto","~/Tmpl/knoema/overlay/appearance/infocard.htm"))),__.push('<\/option>     <option value="0">0<\/option>     <option value="1">1<\/option>     <option value="2">2<\/option>     <option value="3">3<\/option>     <option value="4">4<\/option>    <\/select>   <\/div>    <div class="form-section">    <div class="field-header">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","Stacking"))),__.push('    <\/div>    <div id="stacking">     <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","No stacking"))),__.push('" data-stacking="none"   class="stacking-none"  ><\/a>     <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","By columns"))),__.push('"  data-stacking="column" class="stacking-column"><\/a>     <a href="#" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","By rows"))),__.push('"     data-stacking="row"    class="stacking-row"   ><\/a>    <\/div>   <\/div>    <div class="form-section">    <div class="field-header">     '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Series","~/Js/knoema/Knoema.Chart.js"))),__.push('    <\/div>    <div class="form-column">     <select id="series-select" class="ui-element"><\/select>    <\/div>   <\/div>    <div class="form-section">    <div class="field-header one-line">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","Series icon"))),__.push('    <\/div>     <input id="icon-select" type="text" />   <\/div>    <div class="form-section">    <div class="field-header">     '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Color","~/Tmpl/knoema/overlay/appearance/chart.htm"))),__.push('    <\/div>    <select id="series-color" class="combo"><\/select>   <\/div>    <div class="form-section">    <div class="field-header">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","One icon represents"))),__.push('<\/div>    <input id="one-icon-represents" type="text" class="ui-element" />     <div class="auto-custom together" data-value="auto" title="Enable editing">     <i class="fa fa-toggle-on"><\/i>     <span>'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("AUTO","~/Js/knoema/Knoema.Pictogram.js"))),__.push('<\/span>    <\/div>   <\/div>    <div class="form-section">    <div class="field-header">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","Units"))),__.push('<\/div>    <input id="unit" class="ui-element" type="text" value="" placeholder="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","Enter custom units"))),__.push('">    <div class="auto-custom together" data-value="auto" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","Enter custom units"))),__.push('">     <i class="fa fa-toggle-on"><\/i>     <span>'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("AUTO","~/Js/knoema/Knoema.Pictogram.js"))),__.push('<\/span>    <\/div>   <\/div>    <div class="form-section">    <input id="display-sum" type="checkbox" />    <label for="display-sum" class="black-label checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","Display sum"))),__.push('<\/label>   <\/div>    <div class="form-section">    <button type="button" class="footnote ui-button">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/pictogram.htm","Footnote"))),__.push("    <\/button>   <\/div>   <\/div>  <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-gadget-appearance",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="form-holder" style="width:'),typeof width!="undefined"&&width!=null&&__.push($.encode(typeof width=="function"?width.call($item):width)),__.push('px;">     <div class="gadget-appearance-tab">    <ul>     <li><a href="#tab-gadget-appearance">'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Appearance","~/Js/knoema/Knoema.Page.js"))),__.push("<\/a><\/li>     "),typeof!hideDataTab!="undefined"&&!hideDataTab!=null&&(typeof!hideDataTab=="function"?(!hideDataTab).call($item):!hideDataTab)&&(__.push('      <li><a href="#tab-gadget-data">'),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Data","~/Js/search.js"))),__.push("<\/a><\/li>     ")),__.push('    <\/ul>    <div id="tab-gadget-appearance" class="tab-content">     <div id="'),typeof gadgetAppearanceId!="undefined"&&gadgetAppearanceId!=null&&__.push($.encode(typeof gadgetAppearanceId=="function"?gadgetAppearanceId.call($item):gadgetAppearanceId)),__.push('" class="tab-appearance" data-gadget-id="'),typeof gadgetId!="undefined"&&gadgetId!=null&&__.push($.encode(typeof gadgetId=="function"?gadgetId.call($item):gadgetId)),__.push('"><\/div>    <\/div>        '),typeof!hideDataTab!="undefined"&&!hideDataTab!=null&&(typeof!hideDataTab=="function"?(!hideDataTab).call($item):!hideDataTab)&&__.push('     <div id="tab-gadget-data" class="tab-content">      <div id="transformation-container"><\/div>      <!--need .tab-appearance here for proper vertical positioning (depends on .tab-appearance\'s position absolute & top)-->      <div class="tab-appearance simple-dimension-filter">      <\/div>     <\/div>    '),__.push('   <\/div>     <div class="gadget-appearance-action-buttons">    <div class="pull-right">     <button type="button" class="cancel ui-button" role="button" aria-disabled="false">      '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Cancel","~/Js/Nav/tag.js"))),__.push('     <\/button>     <button type="button" class="apply ui-button" role="button" aria-disabled="false">      '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Apply","~/Js/Nav/tag.js"))),__.push("     <\/button>    <\/div>   <\/div>    <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-grid",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="appearance-accordion" class="format-options">   <h3 class="global-format-options">    <a href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","General"))),__.push('<\/a>   <\/h3>   <div class="options-form global-format-options">    <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Theme"))),__.push('<\/label>    <div id="theme"><\/div>    <div class="gray-separator">    <\/div>    <span class="empty-cell-option">     <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Replace empty text with"))),__.push('<\/label>     <select id="empty-cell-text-combo" class="ui-element">      <option value="">&nbsp;<\/option>      <option value="...">...<\/option>      <option value="-">-<\/option>      <option value="N/A">N/A<\/option>     <\/select>    <\/span>    <div class="gray-separator">    <\/div>      <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Precision"))),__.push('    <\/label>    <select id="table-precision" class="ui-element">     <option value="0">0<\/option>     <option value="1">1<\/option>     <option value="2" selected="selected">2<\/option>     <option value="3">3<\/option>     <option value="4">4<\/option>     <option value="-1">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Auto"))),__.push('<\/option>    <\/select>    <div class="gray-separator">    <\/div>    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Element"))),__.push('    <\/label>    <span class="together">     <select id="active-table-element" class="ui-element">      <option value="table" selected="selected">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Whole grid"))),__.push('<\/option>      <option value="columnHeader">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Column Header"))),__.push('<\/option>      <option value="rowStripes">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Row Stripes"))),__.push('<\/option>     <\/select>     <button type="button" id="reset-format-options" class="ui-button">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Reset"))),__.push('     <\/button>    <\/span>    <div class="gray-separator">    <\/div>    <div id="table-format-options">     <div id="whole-table-specific-options">      '),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-name-select",{id:"table-font-name",className:"ui-element font-name",labelClassName:"field-header"}))),__.push("      "),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-size-select",{id:"table-font-size",className:"ui-element font-size"}))),__.push('      <div class="gray-separator">      <\/div>     <\/div>     <input type="checkbox" class="fontstyle" id="table-font-style-bold" name="boldStyle"         value="boldStyle" />     <label for="table-font-style-bold" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Bold"))),__.push('     <\/label>     <input type="checkbox" class="fontstyle" id="table-font-style-italic" name="italicStyle"         value="italicStyle" />     <label for="table-font-style-italic" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Italic"))),__.push('     <\/label>     <div class="gray-separator">     <\/div>     <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Text align"))),__.push('     <\/label>     <ul id="table-text-align">      <li class="selected" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Left"))),__.push('" data-align="left"><i class="fa fa-align-left" aria-hidden="true"><\/i><\/li>      <li title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Center"))),__.push('" data-align="center"><i class="fa fa-align-center" aria-hidden="true"><\/i><\/li>      <li title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Right"))),__.push('" data-align="right"><i class="fa fa-align-right" aria-hidden="true"><\/i><\/li>     <\/ul>     <div class="gray-separator">     <\/div>     <div id="non-stripe-options">      <label class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Font Color"))),__.push('      <\/label>      <select class="combo" id="table-font-color"><\/select>      <div class="gray-separator">      <\/div>     <\/div>     <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Background Color"))),__.push('     <\/label>     <select class="combo" id="table-background-color"><\/select>     <div class="gray-separator">     <\/div>    <\/div>      <button type="button" class="footnote ui-button">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Footnote"))),__.push('    <\/button>   <\/div>     <h3 class="columns-format-options">    <a href="#">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Columns"))),__.push('<\/a>   <\/h3>   <div class="options-form columns-format-options" id="columns-format-options">    <div class="content">     <div class="form-section">      <div class="form-column">       <select id="columns-select" class="ui-element"><\/select>      <\/div>     <\/div>     <div class="form-section">      <span class="together">       <input type="checkbox" id="column-visible" />       <label for="column-visible" class="checkbox-plain-label black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/grid.htm","Visible"))),__.push("<\/label>      <\/span>     <\/div>    <\/div>   <\/div>  <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-infocard",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="infocard-options">     <div class="format-options">      <label for="theme" class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Theme"))),__.push('<\/label>    <div id="theme"><\/div>    <div class="gray-separator">    <\/div>      <div>     <label for="gadgetBg" class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Gadget background"))),__.push('     <\/label>     <select id="gadgetBg" class="combo colorpicker"><\/select>    <\/div>    <div class="gray-separator">    <\/div>      <div class="section-header">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Header"))),__.push('    <\/div>      <div class="row">     <div class="col column-8">      '),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-name-select",{id:"headingFontName",className:"ui-element font-name",labelClassName:"field-header display-block"}))),__.push('     <\/div>     <div class="col column-4 heading-color">      <label for="headingColor" class="black-label">       '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Color","~/Tmpl/knoema/overlay/appearance/chart.htm"))),__.push('      <\/label>      <div>       <select id="headingColor" class="combo colorpicker"><\/select>      <\/div>     <\/div>    <\/div>      <div class="row">       <div class="col column-5">      <label for="headingBg" class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Background"))),__.push('      <\/label>      <select id="headingBg" class="combo colorpicker"><\/select>     <\/div>       <div class="col column-7">      <div class="opacity-holder">       <label class="black-label">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Opacity"))),__.push('       <\/label>       <div class="slider-holder">        <div class="slider" data-property="headingBgOpacity"><\/div>       <\/div>      <\/div>     <\/div>      <\/div>      <div class="row">     <div class="col column-12">      <label for="topBorderColor" class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Chevron color"))),__.push('      <\/label>      <div>       <select id="topBorderColor" class="combo colorpicker"><\/select>      <\/div>     <\/div>    <\/div>      <div class="row">     <div class="col column-12">      <input id="headingFormatting" type="checkbox" />      <label for="headingFormatting" class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Use second line for parenthetical text"))),__.push('      <\/label>     <\/div>    <\/div>      <div class="gray-separator">    <\/div>      <div class="section-header">     '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Value","~/Js/knoema/Knoema.Chart.js"))),__.push('    <\/div>      <div class="row">     <div class="col column-8">      '),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-name-select",{id:"valueFontName",className:"ui-element font-name",labelClassName:"field-header display-block"}))),__.push('     <\/div>     <div class="col column-4 value-color">      <label for="valueColor" class="black-label">       '),typeof $.localize!="undefined"&&$.localize!=null&&__.push($.encode($.localize("Color","~/Tmpl/knoema/overlay/appearance/chart.htm"))),__.push('      <\/label>      <select id="valueColor" class="combo colorpicker"><\/select>     <\/div>    <\/div>      <div class="row">       <div class="col column-5">      <label for="valueBg" class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Background"))),__.push('      <\/label>      <select id="valueBg" class="combo colorpicker"><\/select>     <\/div>       <div class="col column-7">      <div class="opacity-holder">       <label class="black-label">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Opacity"))),__.push('       <\/label>       <div class="slider-holder">        <div class="slider" data-property="valueBgOpacity"><\/div>       <\/div>      <\/div>     <\/div>      <\/div>      <div class="row">     <div class="col column-6">      <div class="show-arrows">       <input id="showArrows" type="checkbox" />       <label for="showArrows" class="black-label">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Show arrows"))),__.push('       <\/label>      <\/div>     <\/div>     <div class="col column-6">      <label for="precision" class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Precision"))),__.push('      <\/label>      <select id="precision" class="ui-element">       <option value="auto" selected="selected">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Auto"))),__.push('<\/option>       <option value="0">0<\/option>       <option value="1">1<\/option>       <option value="2">2<\/option>       <option value="3">3<\/option>       <option value="4">4<\/option>      <\/select>     <\/div>    <\/div>      <div class="row">     <div class="col column-12">      <input id="showUnits" type="checkbox" />      <label for="showUnits" class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Display units"))),__.push('      <\/label>     <\/div>    <\/div>      <div class="gray-separator">    <\/div>      <button type="button" class="footnote ui-button">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/infocard.htm","Footnote"))),__.push("    <\/button>     <\/div>  <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-leaflet-map",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div class="format-options">     <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Color theme"))),__.push('     <\/label>     <select id="color-theme" class="theme combo">      <option value="juicy" selected>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Juicy"))),__.push('<\/option>      <option value="fruity">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Fruity"))),__.push('<\/option>      <option value="bluegreen">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Bluegreen"))),__.push('<\/option>      <option value="white">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","White"))),__.push('<\/option>      <option value="green">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Green"))),__.push('<\/option>      <option value="blue">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Blue"))),__.push('<\/option>      <option value="orange">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Orange"))),__.push('<\/option>      <option value="gray">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Gray"))),__.push('<\/option>      <option value="violet">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Violet"))),__.push('<\/option>      <option value="pink">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Pink"))),__.push('<\/option>      <option value="red">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Red"))),__.push('<\/option>      <option value="maroon">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Maroon"))),__.push('<\/option>     <\/select>     <div class="gray-separator">     <\/div>       <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Stroke color"))),__.push('     <\/label>     <select id="stroke-marker-color" class="map-color-selection combo">     <\/select>      <div class="gray-separator">     <\/div>     <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Fill color"))),__.push('     <\/label>     <select id="fill-marker-color" class="map-color-selection combo">     <\/select>        <div id="marker-text" style="display:none">      <div class="gray-separator">      <\/div>      <label class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/leaflet-map.htm","Marker text"))),__.push('      <\/label>      <input type="text"/>      <\/div>      <\/div>');return __});jQuery.template("Tmpl-knoema-overlay-appearance-map",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="map-options format-options">   <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Theme"))),__.push('<\/label>   <div id="theme"><\/div>   <span id="invert-ranges" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Invert colors"))),__.push('"><\/span>     '),typeof(isSVGMap&&datasetGeoDimensions.length>1)!="undefined"&&(isSVGMap&&datasetGeoDimensions.length>1)!=null&&(typeof(isSVGMap&&datasetGeoDimensions.length>1)=="function"?(isSVGMap&&datasetGeoDimensions.length>1).call($item):isSVGMap&&datasetGeoDimensions.length>1)&&(__.push('   <div class="geo-dimension-select-holder">    <div class="gray-separator"><\/div>    <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Region dimension"))),__.push('<\/label>    <select id="geo-dimension-select" class="combo">     '),typeof datasetGeoDimensions!="undefined"&&datasetGeoDimensions!=null&&$.each(typeof datasetGeoDimensions=="function"?datasetGeoDimensions.call($item):datasetGeoDimensions,function(n,dimension){with(this)__.push('     <option value="'),typeof dimension.id!="undefined"&&dimension.id!=null&&__.push($.encode(typeof dimension.id=="function"?dimension.id.call($item):dimension.id)),__.push('" '),typeof(dimension.id===regionDimensionId)!="undefined"&&dimension.id===regionDimensionId!=null&&(typeof(dimension.id===regionDimensionId)=="function"?(dimension.id===regionDimensionId).call($item):dimension.id===regionDimensionId)&&__.push(" selected"),__.push(">"),typeof dimension.name!="undefined"&&dimension.name!=null&&__.push($.encode(typeof dimension.name=="function"?dimension.name.call($item):dimension.name)),__.push("<\/option>     ")}),__.push("    <\/select>   <\/div>   ")),__.push('     <div class="gray-separator"><\/div>     <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Scale"))),__.push('<\/label>   <select id="legend-scale-option" class="ui-element">    <option value="equalRegion" selected="selected">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Equal Region"))),__.push('<\/option>    <option value="equalQuantiles">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Equal Quantiles"))),__.push('<\/option>   <\/select>     <div class="gray-separator"><\/div>     <input id="simple-color-scale" type="checkbox" />   <label for="simple-color-scale" class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Simple color scale"))),__.push('<\/label>   <div class="gray-separator">   <\/div>     <div id="bubbles-size">    <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Bubble size"))),__.push(' <\/label>    <div class="slider-container">     <select id="bubble-size" class="combo hidden"><\/select>    <\/div>    <div class="gray-separator"><\/div>   <\/div>     <div id="bubbles-min-max">    <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Bubble size"))),__.push('<\/label>    <div class="slider-container">     <select id="bubble-min-size" class="combo hidden"><\/select>     <select id="bubble-max-size" class="combo hidden"><\/select>    <\/div>    <div class="gray-separator"><\/div>   <\/div>     <div class="map-ranges-editor">   <\/div>     <div id="background-color-container">    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Background-color"))),__.push('    <\/label>    <select id="background-color"><\/select>      <div class="gray-separator"><\/div>   <\/div>     <div id="tooltip-type-container">    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Tooltip type"))),__.push('    <\/label>    <select id="tooltip" class="ui-element">     <option value="floating">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Floating"))),__.push('<\/option>     <option value="sticky">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Sticky"))),__.push('<\/option>    <\/select>    <div class="gray-separator">    <\/div>   <\/div>     <div id="map-visible-region-wrap">    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Maps"))),__.push('    <\/label>    <select id="map-visible-region" class="ui-element">     '),typeof maps!="undefined"&&maps!=null&&$.each(typeof maps=="function"?maps.call($item):maps,function(n,map){with(this)__.push('     <option value="'),typeof map.mapId!="undefined"&&map.mapId!=null&&__.push($.encode(typeof map.mapId=="function"?map.mapId.call($item):map.mapId)),__.push('">'),typeof map.localizedName!="undefined"&&map.localizedName!=null&&__.push($.encode(typeof map.localizedName=="function"?map.localizedName.call($item):map.localizedName)),__.push("<\/option>     ")}),__.push('    <\/select>    <div class="gray-separator">    <\/div>   <\/div>     <button type="button" class="footnote ui-button">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/map.htm","Footnote"))),__.push("   <\/button>  <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-ranking",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="format-options" id="ranking-settings">     <div class="base-region-select-holder">     <div id="ranking-ratio-options">     <\/div>    <\/div>     <div class="scrollable-options">      <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Theme"))),__.push('<\/label>      <div id="theme"><\/div>      <div class="gray-separator"><\/div>      <div class="advanced-select">      <div class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Top"))),__.push('<\/div>       <select id="top-n">        <option value="1000000">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","All"))),__.push('<\/option>        <option value="3">3<\/option>        <option value="5">5<\/option>        <option value="10">10<\/option>        <option value="20">20<\/option>        <option value="50">50<\/option>       <\/select>     <\/div>      <div class="precision">      <div class="black-label">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Precision"))),__.push('       <\/div>       <select id="ranking-precision" class="ui-element">        <option value="0">0<\/option>        <option value="1">1<\/option>        <option value="2">2<\/option>        <option value="3">3<\/option>        <option value="4">4<\/option>       <\/select>     <\/div>      <div class="order-select-holder">       <div class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Choose order"))),__.push('<\/div>       <select id="ranking-sort" class="ui-element">        <option value="desc">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Desc"))),__.push('<\/option>        <option value="asc">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Asc"))),__.push('<\/option>       <\/select>      <\/div>      <div class="gray-separator"><\/div>      <div id="ranking-font-options" >       '),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-name-select",{id:"ranking-font-name",className:"ui-element font-name",labelClassName:"field-header"}))),__.push("       "),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-size-select",{id:"ranking-font-size",className:"ui-element font-size"}))),__.push('       <div class="gray-separator">      <\/div>      <input id="ranking-font-style-bold" name="boldStyle" type="checkbox" class="ranking-checkbox" value="boldStyle" />      <label for="ranking-font-style-bold" class="black-label checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Bold"))),__.push('<\/label>       <input id="ranking-font-style-italic" name="italicStyle" type="checkbox" class="ranking-checkbox second-field" value="italicStyle" />      <label for="ranking-font-style-italic" class="black-label checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Italic"))),__.push('<\/label>     <\/div>     <div class="gray-separator">     <\/div>      <input id="display-ranking" name="display-ranking" type="checkbox" class="ranking-checkbox"/>     <label for="display-ranking" class="black-label checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Ranking"))),__.push('<\/label>      <div class="animate-gadget-holder">      <input id="animate-gadget" name="animate-gadget" type="checkbox" class="ranking-checkbox second-field"/>      <label for="animate-gadget" class="black-label checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Animation"))),__.push('<\/label>     <\/div>      <div class="gray-separator">     <\/div>      <div class="display-flags-holder">      <input id="display-flags" type="checkbox" />      <label for="display-flags" class="black-label checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Display flags"))),__.push('<\/label>      <div class="gray-separator">      <\/div>     <\/div>      <div>       <input id="display-as-table" type="checkbox" />       <label for="display-as-table" class="black-label checkbox-plain-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Display as table"))),__.push('<\/label>       <div class="gray-separator">       <\/div>      <\/div>      <div id="ranking-color-options" >      <label class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Bars color"))),__.push('      <\/label>      <select id="ranking-bar-color" class="combo">      <\/select>      <div class="gray-separator">      <\/div>       <label class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Font color"))),__.push('      <\/label>      <select id="ranking-font-color" class="combo">      <\/select>      <div class="gray-separator">      <\/div>       <div>       <label class="black-label">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Background color"))),__.push('       <\/label>       <select id="ranking-background-color" class="combo">       <\/select>       <div class="gray-separator">       <\/div>      <\/div>            <div>       <label class="black-label">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Base member color"))),__.push('       <\/label>       <select id="base-region-color" class="combo">       <\/select>       <div class="gray-separator">       <\/div>      <\/div>       <div>       <label class="black-label">        '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Ranks box color"))),__.push('       <\/label>       <select id="rank-box-color" class="combo">       <\/select>      <\/div>     <\/div>     <div class="gray-separator">     <\/div>      <button type="button" class="footnote ui-button">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/ranking.htm","Footnote"))),__.push("      <\/button>        <\/div>  <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-table",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="format-options">     <div class="main-options">      <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Theme"))),__.push('    <\/label>    <div id="theme"><\/div>    <div class="gray-separator">    <\/div>    <span id="table-freeze-header-wrap" class="together">     <input type="checkbox" id="table-freeze-header" name="tableFreezeHeader" value="freezeHeader" />     <label for="table-freeze-header" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Freeze headers"))),__.push('     <\/label>    <\/span>    <span class="empty-cell-option empty-cell-option-control together">     <input type="checkbox" id="table-hide-empty-cells" name="tableHideEmptyCells" value="hideEmptyCells" />     <label for="table-hide-empty-cells" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Hide empty cells"))),__.push('     <\/label>    <\/span>    <div class="gray-separator">    <\/div>      <div class="custom-row empty-cell-option">     <div class="column">      <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Replace empty text with"))),__.push('<\/label>     <\/div>     <div class="column">      <select id="empty-cell-text-combo" class="ui-element">       <option value="">&nbsp;<\/option>       <option value="...">...<\/option>       <option value="-">-<\/option>       <option value="N/A">N/A<\/option>      <\/select>     <\/div>    <\/div>      <span class="together">     <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Precision"))),__.push('     <\/label>     <select id="table-precision" class="ui-element">      <option value="0">0<\/option>      <option value="1">1<\/option>      <option value="2">2<\/option>      <option value="3">3<\/option>      <option value="4">4<\/option>      <option value="-1" selected="selected">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Auto"))),__.push('<\/option>     <\/select>    <\/span>    <span class="together">     <input type="checkbox" id="table-display-units" name="tableDisplayUnits" value="displayUnits" />     <label for="table-display-units" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Display units"))),__.push('     <\/label>    <\/span>    <div class="gray-separator">    <\/div>      <span class="together">     <input id="use-scale" type="checkbox" />     <label for="use-scale" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Use scale"))),__.push('     <\/label>    <\/span>    <div class="gray-separator">    <\/div>      <span class="together header-text-wrap">     <input id="header-text" type="checkbox" />     <label for="header-text" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Header text"))),__.push('     <\/label>     <a id="edit-header-text" href="#"><\/a>    <\/span>    <div class="gray-separator header-text-wrap">    <\/div>      <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Element"))),__.push('    <\/label>    <span class="together">     <select id="active-table-element" class="ui-element">      <option value="table" selected="selected">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Whole Table"))),__.push('<\/option>      <option value="columnHeader">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Column Header"))),__.push('<\/option>      <option value="rowHeader">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Row Header"))),__.push('<\/option>      <option value="rowStripes">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Row Stripes"))),__.push('<\/option>     <\/select>     <button type="button" id="reset-format-options" class="ui-button">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Reset"))),__.push('     <\/button>    <\/span>    <div class="gray-separator">    <\/div>    <div id="table-format-options">     <div id="whole-table-specific-options">      '),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-name-select",{id:"table-font-name",className:"ui-element font-name",labelClassName:"field-header"}))),__.push("      "),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-size-select",{id:"table-font-size",className:"ui-element font-size"}))),__.push('      <div class="gray-separator">      <\/div>     <\/div>     <input type="checkbox" class="fontstyle" id="table-font-style-bold" name="boldStyle"      value="boldStyle" />     <label for="table-font-style-bold" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Bold"))),__.push('<\/label>     <input type="checkbox" class="fontstyle" id="table-font-style-italic" name="italicStyle"      value="italicStyle" />     <label for="table-font-style-italic" class="black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Italic"))),__.push('<\/label>     <div class="gray-separator">     <\/div>     <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Text align"))),__.push('     <\/label>     <ul id="table-text-align">      <li class="selected" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Left"))),__.push('" data-align="left"><i class="fa fa-align-left" aria-hidden="true"><\/i><\/li>      <li title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Center"))),__.push('" data-align="center"><i class="fa fa-align-center" aria-hidden="true"><\/i><\/li>      <li title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Right"))),__.push('" data-align="right"><i class="fa fa-align-right" aria-hidden="true"><\/i><\/li>     <\/ul>     <div class="gray-separator">     <\/div>     <div id="non-stripe-options">      <label class="black-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Font Color"))),__.push('<\/label>      <select class="combo" id="table-font-color">      <\/select>      <div class="gray-separator">      <\/div>     <\/div>       <label class="black-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Background Color"))),__.push('<\/label>     <select class="combo" id="table-background-color">     <\/select>     <div class="gray-separator">     <\/div>    <\/div>    <div class="hierarchical-members">     <input type="checkbox" id="table-auto-headers" name="boldStyle"      value="boldStyle" />     <label for="table-auto-headers" class=" black-label checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Display hierarchy"))),__.push('<\/label>     <div class="gray-separator">     <\/div>    <\/div>      <a href="#" class="conditional-formatting-form-link">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Conditional formatting"))),__.push('<\/a>     <div class="gray-separator">    <\/div>      <button type="button" class="sort-options ui-button">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Sort Options"))),__.push('    <\/button>      <button type="button" class="footnote ui-button">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Footnote"))),__.push('    <\/button>     <\/div>   <!-- /div.main-options -->     <div class="conditional-formatting-options" style="display: none;">      <h4>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Conditional formatting"))),__.push('<\/h4>      <select id="conditional-formatting-type" class="ui-element">     <option value="none" selected>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","None"))),__.push('<\/option>     <option value="heatmap">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Heatmap"))),__.push('<\/option>    <\/select>    <div class="gray-separator">    <\/div>      <div id="heatmap-ranges-editor"><\/div>      <div id="table-highlight-data-option">     <span class="together">      <select id="highlight-template" class="combo">       <option value="worldRecession">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","US Recession Data"))),__.push('<\/option>       <option value="forecast">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Forecasted Data"))),__.push('<\/option>      <\/select>      <select class="combo" id="highlight-cell-color">      <\/select>     <\/span>    <\/div>      <a class="back-to-global-options">     <div class="back-icon-text">      <div class="arrow-symbol">&larr;&nbsp;<\/div>'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/table.htm","Back to global options"))),__.push("     <\/div>    <\/a>     <\/div>    <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-treemap",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="format-options">     <label class="field-header one-line">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Theme"))),__.push('<\/label>   <div id="theme"><\/div>   <div class="gray-separator"><\/div>     <label class="field-header one-line" for="chart-type">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Visualization type"))),__.push('   <\/label>   <select id="chart-type" class="ui-element">    <option value="treemap" selected="selected">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Treemap"))),__.push('<\/option>    <option value="sunburst">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Sunburst"))),__.push('<\/option>    <option value="bubbletree">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Bubbletree"))),__.push('<\/option>   <\/select>   <div class="gray-separator">   <\/div>     <div class="treemap-options">    <label class="field-header one-line" for="zoom-mode">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Zoom"))),__.push('   <\/label>    <select id="zoom-mode" class="ui-element">     <option value="ZOOM_STEP_BY_STEP" selected="selected">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Step by step"))),__.push('<\/option>     <option value="ZOOM_TO_GROUP">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","To nearest group"))),__.push('<\/option>     <option value="ZOOM_OFF">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Off"))),__.push('<\/option>    <\/select>    <div class="gray-separator">    <\/div>      '),!0&&(__=__.concat($item.nest("Tmpl-knoema-components-font-name-select",{id:"font-name",className:"ui-element font-name",labelClassName:"field-header one-line"}))),__.push('      <div class="gray-separator">    <\/div>      <input type="checkbox" id="absolute-values" />    <label class="field-header one-line" " for=" absolute-values">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Absolute values"))),__.push('    <\/label>      <div class="gray-separator">    <\/div>   <\/div>     <div class="display-sum">    <input type="checkbox" id="display-sum" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Display sum of child elements if parent element has no data"))),__.push('" />    <label class="field-header one-line" for="display-sum" title="'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Display sum of child elements if parent element has no data"))),__.push('">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Display sum of child elements"))),__.push('    <\/label>    <div class="gray-separator">    <\/div>   <\/div>     <button type="button" class="footnote ui-button">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/treemap.htm","Footnote"))),__.push("   <\/button>    <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-bubble-group-by",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<select id="group-by" class="ui-element">   <option value="bubble-dim-series-id">'),typeof doNotGroupMessage!="undefined"&&doNotGroupMessage!=null&&__.push($.encode(typeof doNotGroupMessage=="function"?doNotGroupMessage.call($item):doNotGroupMessage)),__.push("<\/option>   "),typeof hasHierarchy!="undefined"&&hasHierarchy!=null&&(typeof hasHierarchy=="function"?hasHierarchy.call($item):hasHierarchy)&&(__.push('   <option value="bubble-dim-level" '),typeof(selectedItem=="bubble-dim-level")!="undefined"&&selectedItem=="bubble-dim-level"!=null&&(typeof(selectedItem=="bubble-dim-level")=="function"?(selectedItem=="bubble-dim-level").call($item):selectedItem=="bubble-dim-level")&&__.push(" selected "),__.push(">"),typeof levelMessage!="undefined"&&levelMessage!=null&&__.push($.encode(typeof levelMessage=="function"?levelMessage.call($item):levelMessage)),__.push("<\/option>   ")),__.push("   "),typeof fields!="undefined"&&fields!=null&&$.each(typeof fields=="function"?fields.call($item):fields,function(n,field){with(this)__.push("   "),typeof!Knoema.Utils.strEquals("RegionId",field.name)!="undefined"&&!Knoema.Utils.strEquals("RegionId",field.name)!=null&&(typeof!Knoema.Utils.strEquals("RegionId",field.name)=="function"?(!Knoema.Utils.strEquals("RegionId",field.name)).call($item):!Knoema.Utils.strEquals("RegionId",field.name))&&(__.push('   <option value="'),typeof field.name!="undefined"&&field.name!=null&&__.push($.encode(typeof field.name=="function"?field.name.call($item):field.name)),__.push('" '),typeof(selectedItem==field.name)!="undefined"&&selectedItem==field.name!=null&&(typeof(selectedItem==field.name)=="function"?(selectedItem==field.name).call($item):selectedItem==field.name)&&__.push(" selected "),__.push(">"),typeof field.name!="undefined"&&field.name!=null&&__.push($.encode(typeof field.name=="function"?field.name.call($item):field.name)),__.push("<\/option>   ")),__.push("   ")}),__.push("  <\/select>");return __});jQuery.template("Tmpl-knoema-overlay-appearance-bubble-levels",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof levels!="undefined"&&levels!=null&&$.each(typeof levels=="function"?levels.call($item):levels,function(n,level){with(this)__.push('  <option value="'),typeof level!="undefined"&&level!=null&&__.push($.encode(typeof level=="function"?level.call($item):level)),__.push('" '),typeof(level==selectedLevel)!="undefined"&&level==selectedLevel!=null&&(typeof(level==selectedLevel)=="function"?(level==selectedLevel).call($item):level==selectedLevel)&&__.push(" selected"),__.push(">"),typeof level!="undefined"&&level!=null&&__.push($.encode(typeof level=="function"?level.call($item):level)),__.push("<\/option> ")}),__.push("");return __});jQuery.template("Tmpl-knoema-overlay-appearance-bubble-options-form",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="bubblechart-options">     <div class="format-options" id="global-chart-format-options">    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Theme"))),__.push('    <\/label>    <div id="theme"><\/div>    <div class="gray-separator">    <\/div>    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Precision"))),__.push('    <\/label>    <select class="ui-element" id="chart-precision">     <option value="0">0<\/option>     <option value="1">1<\/option>     <option value="2" selected="selected">2<\/option>     <option value="3">3<\/option>     <option value="4">4<\/option>    <\/select>    <div class="gray-separator">    <\/div>    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Legend"))),__.push('    <\/label>    <select id="chart-legend" class="ui-element">     <option value="none">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","None"))),__.push('<\/option>     <option value="top">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Top"))),__.push('<\/option>     <option value="right">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Right"))),__.push('<\/option>     <option value="bottom">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Bottom"))),__.push('<\/option>    <\/select>    <div class="gray-separator">    <\/div>      <div id="gridlines">     <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Gridlines"))),__.push('     <\/label>     <span class="together">      <input type="checkbox" id="chart-horizontal-gridlines" checked="checked" />      <label for="chart-horizontal-gridlines" class="checkbox-plain-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Horizontal"))),__.push('      <\/label>     <\/span>     <span class="together">      <input type="checkbox" id="chart-vertical-gridlines" />      <label for="chart-vertical-gridlines" class="checkbox-plain-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Vertical"))),__.push('      <\/label>     <\/span>     <div class="gray-separator">     <\/div>    <\/div>      <div class="label-option-wrap '),typeof(showLabelOption?"":"hide")!="undefined"&&(showLabelOption?"":"hide")!=null&&__.push($.encode(typeof(showLabelOption?"":"hide")=="function"?(showLabelOption?"":"hide").call($item):showLabelOption?"":"hide")),__.push('">     <label class="black-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Labels"))),__.push('     <\/label>     <span class="together">      <input type="checkbox" id="show-data-labels" name="show-data-labels" />      <label for="show-data-labels" class="checkbox-plain-label">       '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Display"))),__.push('      <\/label>     <\/span>     <div class="gray-separator">     <\/div>    <\/div>      <label class="field-header one-line">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Log scale"))),__.push('    <\/label>    <span class="together">     <input type="checkbox" id="log-xaxis" name="logXAxis" />     <label for="log-xaxis" class="checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","X axis"))),__.push('     <\/label>    <\/span>    <span class="together">     <input type="checkbox" id="log-yaxis" name="logYAxis" />     <label for="log-yaxis" class="checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Y axis"))),__.push("     <\/label>    <\/span>    "),typeof showLogWarning!="undefined"&&showLogWarning!=null&&(typeof showLogWarning=="function"?showLogWarning.call($item):showLogWarning)&&(__.push('    <span class="dialog-warning-message">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Zero and negative numbers are undefined on a log scale."))),__.push("<\/span>    ")),__.push('    <div class="gray-separator">    <\/div>      <div class="group-by">     <label class="field-header one-line">      '),typeof messages.groupBy!="undefined"&&messages.groupBy!=null&&__.push($.encode(typeof messages.groupBy=="function"?messages.groupBy.call($item):messages.groupBy)),__.push('     <\/label>     <div class="group-by-dropdown-holder">     <\/div>       <div class="group-by-level">      <label class="field-header one-line">       '),typeof messages.level!="undefined"&&messages.level!=null&&__.push($.encode(typeof messages.level=="function"?messages.level.call($item):messages.level)),__.push('      <\/label>      <select id="group-by-level" class="ui-element">       <option value="0">0<\/option>       <option value="1">1<\/option>       <option value="2">2<\/option>       <option value="3">3<\/option>       <option value="4">4<\/option>      <\/select>     <\/div>       <div class="gray-separator">     <\/div>    <\/div>      <div class="trend-line-holder">       <label for="display-trend-line" class="field-header one-line">      '),typeof messages.displayTrendLine!="undefined"&&messages.displayTrendLine!=null&&__.push($.encode(typeof messages.displayTrendLine=="function"?messages.displayTrendLine.call($item):messages.displayTrendLine)),__.push('     <\/label>     <input type="checkbox" id="display-trend-line" name="display-trend-line" />       <div class="trend-line-color-holder">      <label class="black-label" for="trend-line-color">       '),typeof messages.trendLineColor!="undefined"&&messages.trendLineColor!=null&&__.push($.encode(typeof messages.trendLineColor=="function"?messages.trendLineColor.call($item):messages.trendLineColor)),__.push('      <\/label>      <select id="trend-line-color" class="combo"><\/select>     <\/div>     <div class="gray-separator">     <\/div>    <\/div>      <label for="quadrant" class="field-header one-line">'),typeof messages.quadrant!="undefined"&&messages.quadrant!=null&&__.push($.encode(typeof messages.quadrant=="function"?messages.quadrant.call($item):messages.quadrant)),__.push('<\/label>    <input id="quadrant" type="checkbox" />    <div class="gray-separator">    <\/div>      <div class="quadrant-titles">       <label for="quater-title-1" class="field-header">'),typeof messages.firstQuaterTitle!="undefined"&&messages.firstQuaterTitle!=null&&__.push($.encode(typeof messages.firstQuaterTitle=="function"?messages.firstQuaterTitle.call($item):messages.firstQuaterTitle)),__.push('<\/label>     <input type="text" id="quater-title-1" value="" class="ui-element" />     <div class="gray-separator">     <\/div>       <label for="quater-title-2" class="field-header">'),typeof messages.secondQuaterTitle!="undefined"&&messages.secondQuaterTitle!=null&&__.push($.encode(typeof messages.secondQuaterTitle=="function"?messages.secondQuaterTitle.call($item):messages.secondQuaterTitle)),__.push('<\/label>     <input type="text" id="quater-title-2" value="" class="ui-element" />     <div class="gray-separator">     <\/div>       <label for="quater-title-3" class="field-header">'),typeof messages.thirdQuaterTitle!="undefined"&&messages.thirdQuaterTitle!=null&&__.push($.encode(typeof messages.thirdQuaterTitle=="function"?messages.thirdQuaterTitle.call($item):messages.thirdQuaterTitle)),__.push('<\/label>     <input type="text" id="quater-title-3" value="" class="ui-element" />     <div class="gray-separator">     <\/div>       <label for="quater-title-4" class="field-header">'),typeof messages.fourthQuaterTitle!="undefined"&&messages.fourthQuaterTitle!=null&&__.push($.encode(typeof messages.fourthQuaterTitle=="function"?messages.fourthQuaterTitle.call($item):messages.fourthQuaterTitle)),__.push('<\/label>     <input type="text" id="quater-title-4" value="" class="ui-element" />     <div class="gray-separator">     <\/div>      <\/div>    <!--/Quadrant-->      <button type="button" class="footnote ui-button">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Footnote"))),__.push('    <\/button>     <\/div>     <div class="format-options" id="series-level-format-options" series-id="no-id">    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Name"))),__.push('    <\/label>    <span class="together">     <input type="text" id="series-name" class="black-label" />     <button type="button" id="series-name-set">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Set"))),__.push('     <\/button>    <\/span>    <div class="gray-separator">    <\/div>    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Color"))),__.push('    <\/label>    <select id="series-color" class="combo"><\/select>    <div class="gray-separator">    <\/div>      <div class="display-series-labels" style="display: none;">     <label class="field-header one-line">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Labels"))),__.push('     <\/label>     <input type="checkbox" id="series-data-labels" name="series-data-labels" />     <label for="series-data-labels" class="checkbox-plain-label">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Display"))),__.push('     <\/label>     <div class="gray-separator">     <\/div>    <\/div>      <button type="button" class="back-to-global-options">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Global Options"))),__.push('    <\/button>   <\/div>     <div class="format-options" id="group-format-options">    <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Name"))),__.push('    <\/label>    <span class="together">     <input type="text" id="group-name" class="black-label" />     <button type="button" id="set-group-name">      '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Set"))),__.push('     <\/button>    <\/span>    <div class="gray-separator">    <\/div>      <div class="marker-select-holder">     <label class="black-label">      '),typeof messages.marker!="undefined"&&messages.marker!=null&&__.push($.encode(typeof messages.marker=="function"?messages.marker.call($item):messages.marker)),__.push('     <\/label>     <select id="series-marker">      <option value="circle">'),typeof messages.circle!="undefined"&&messages.circle!=null&&__.push($.encode(typeof messages.circle=="function"?messages.circle.call($item):messages.circle)),__.push('<\/option>      <option value="square">'),typeof messages.square!="undefined"&&messages.square!=null&&__.push($.encode(typeof messages.square=="function"?messages.square.call($item):messages.square)),__.push('<\/option>      <option value="triangle">'),typeof messages.triangle!="undefined"&&messages.triangle!=null&&__.push($.encode(typeof messages.triangle=="function"?messages.triangle.call($item):messages.triangle)),__.push('<\/option>      <option value="diamond">'),typeof messages.diamond!="undefined"&&messages.diamond!=null&&__.push($.encode(typeof messages.diamond=="function"?messages.diamond.call($item):messages.diamond)),__.push('<\/option>     <\/select>     <div class="gray-separator">     <\/div>    <\/div>      <label class="black-label">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Color"))),__.push('    <\/label>    <select id="group-color" class="combo"><\/select>    <div class="gray-separator">    <\/div>      <button type="button" class="back-to-global-options">     '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/appearance/bubble/options-form.htm","Global Options"))),__.push("    <\/button>   <\/div>    <\/div>");return __});jQuery.template("Tmpl-knoema-overlay-advanced-select",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dropdown">   <button class="ui-element dropdown-toggle" type="button" data-toggle="dropdown">    <span class="selected-value">'),typeof selected!="undefined"&&selected!=null&&__.push($.encode(typeof selected=="function"?selected.call($item):selected)),__.push('<\/span><span class="caret"><\/span>   <\/button>   <ul class="dropdown-menu">    <li class="custom-value-input-holder">     <input type="text" class="custom-value" placeholder="'),typeof placeholder!="undefined"&&placeholder!=null&&__.push($.encode(typeof placeholder=="function"?placeholder.call($item):placeholder)),__.push('">    <\/li>   <\/ul>  <\/div>');return __});jQuery.template("Tmpl-knoema-overlay-icon-select",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dropdown icon-select-dropdown">  <button class="ui-element dropdown-toggle" type="button" data-toggle="dropdown">   <span class="selected-value">'),typeof selected!="undefined"&&selected!=null&&__.push($.encode(typeof selected=="function"?selected.call($item):selected)),__.push('<\/span><span class="caret"><\/span>  <\/button>  <ul class="dropdown-menu">   <li class="custom-value-input-holder">    <input type="text" class="custom-value" placeholder="'),typeof placeholder!="undefined"&&placeholder!=null&&__.push($.encode(typeof placeholder=="function"?placeholder.call($item):placeholder)),__.push('" />    <i class="fa fa-search"><\/i>   <\/li>   <li class="icons-holder">    '),typeof icons!="undefined"&&icons!=null&&$.each(typeof icons=="function"?icons.call($item):icons,function(n,iconName){with(this)__.push('     <div class="icon" data-icon="'),typeof iconName!="undefined"&&iconName!=null&&__.push($.encode(typeof iconName=="function"?iconName.call($item):iconName)),__.push('">      <i class="fa fa-fw fa-'),typeof iconName!="undefined"&&iconName!=null&&__.push($.encode(typeof iconName=="function"?iconName.call($item):iconName)),__.push('"><\/i> '),typeof iconName!="undefined"&&iconName!=null&&__.push($.encode(typeof iconName=="function"?iconName.call($item):iconName)),__.push("     <\/div>    ")}),__.push("   <\/li>  <\/ul> <\/div>");return __});jQuery.template("Tmpl-knoema-gadget-title",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('﻿<div class="main-title">   <div class="title-text">'),typeof title.text!="undefined"&&title.text!=null&&__.push($.encode(typeof title.text=="function"?title.text.call($item):title.text)),__.push('<\/div>   <div class="title-action">    <a class="edit"><\/a>    '),typeof showAuto!="undefined"&&showAuto!=null&&(typeof showAuto=="function"?showAuto.call($item):showAuto)&&(__.push('    <a class="auto-mode     '),typeof title.isAuto!="undefined"&&title.isAuto!=null&&(typeof title.isAuto=="function"?title.isAuto.call($item):title.isAuto)&&__.push("      active     "),__.push('     ">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/title.htm","AUTO"))),__.push("<\/a>    ")),__.push("    "),typeof showSubtitle!="undefined"&&showSubtitle!=null&&(typeof showSubtitle=="function"?showSubtitle.call($item):showSubtitle)&&(__.push('    <a class="toggle-sub-title     '),typeof title.subtitle!="undefined"&&title.subtitle!=null&&(typeof title.subtitle=="function"?title.subtitle.call($item):title.subtitle)&&__.push("      active     "),__.push('      ">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/title.htm","SUBTITLE"))),__.push("<\/a>    ")),__.push("   <\/div>  <\/div>  "),typeof allowEdit!="undefined"&&allowEdit!=null&&(typeof allowEdit=="function"?allowEdit.call($item):allowEdit)&&__.push('  <div class="editable-title">   <input type="text" />   <div class="save-options">    <a class="save"><\/a>    <a class="cancel"><\/a>    <a data-align="left" class="align-title align-title-left"><\/a>    <a data-align="center" class="align-title align-title-center"><\/a>    <a data-align="right" class="align-title align-title-right"><\/a>   <\/div>  <\/div>  '),__.push("  "),typeof showSubtitle!="undefined"&&showSubtitle!=null&&(typeof showSubtitle=="function"?showSubtitle.call($item):showSubtitle)&&(__.push('  <div class="sub-title">   <div class="title-text">    '),typeof title.subtitle!="undefined"&&title.subtitle!=null&&(typeof title.subtitle=="function"?title.subtitle.call($item):title.subtitle)?(__.push("    "),typeof title.subtitle.text!="undefined"&&title.subtitle.text!=null&&__.push($.encode(typeof title.subtitle.text=="function"?title.subtitle.text.call($item):title.subtitle.text)),__.push("    ")):!0&&(__.push("    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/title.htm","New gadget subtitle"))),__.push("    ")),__.push("   <\/div>   "),typeof allowEdit!="undefined"&&allowEdit!=null&&(typeof allowEdit=="function"?allowEdit.call($item):allowEdit)&&(__.push('   <div class="title-action">    <a class="edit"><\/a>    <a class="auto-mode     '),typeof(title.subtitle&&title.subtitle.isAuto)!="undefined"&&(title.subtitle&&title.subtitle.isAuto)!=null&&(typeof(title.subtitle&&title.subtitle.isAuto)=="function"?(title.subtitle&&title.subtitle.isAuto).call($item):title.subtitle&&title.subtitle.isAuto)&&__.push("      active     "),__.push('     ">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/title.htm","AUTO"))),__.push("<\/a>   <\/div>   ")),__.push("  <\/div>  ")),__.push("  "),typeof showClose!="undefined"&&showClose!=null&&(typeof showClose=="function"?showClose.call($item):showClose)&&(__.push('  <a class="ui-dialog-titlebar-close ui-corner-all" role="button"><span class="ui-icon ui-icon-closethick">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/title.htm","close"))),__.push("<\/span><\/a>  ")),__.push("");return __});jQuery.template("Tmpl-knoema-overlay-component-editor",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="customization" style="width: 100%">  <h3 class="component-title">'),typeof title!="undefined"&&title!=null&&__.push($.encode(typeof title=="function"?title.call($item):title)),__.push('<\/h3>  <div class="customization-components">   <div class="customization-components-options">    <div class="options-wrapper"><\/div>   <\/div>   <div class="customization-components-preview">    <div class="customization-components-preview-container"><\/div>   <\/div>  <\/div> <\/div>');return __});jQuery.template("Tmpl-knoema-overlay-component-property-editor",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push(""),typeof(properties&&properties.length>0)!="undefined"&&(properties&&properties.length>0)!=null&&(typeof(properties&&properties.length>0)=="function"?(properties&&properties.length>0).call($item):properties&&properties.length>0)&&(__.push("  "),typeof properties!="undefined"&&properties!=null&&$.each(typeof properties=="function"?properties.call($item):properties,function(n,item){with(this)__.push('  <div class="option-block">   <div class="prop-name">'),typeof item.name!="undefined"&&item.name!=null&&__.push($.encode(typeof item.name=="function"?item.name.call($item):item.name)),__.push("<\/div>   "),typeof(item.type==="boolean")!="undefined"&&item.type==="boolean"!=null&&(typeof(item.type==="boolean")=="function"?(item.type==="boolean").call($item):item.type==="boolean")?(__.push('   <div class="prop-value">    <select class="property-editor" data-property-name="'),typeof item.property!="undefined"&&item.property!=null&&__.push($.encode(typeof item.property=="function"?item.property.call($item):item.property)),__.push('">     <option value="true">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/component-property-editor.htm","True"))),__.push('<\/option>     <option value="false">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/overlay/component-property-editor.htm","False"))),__.push("<\/option>    <\/select>   <\/div>    ")):typeof(item.type==="list")!="undefined"&&item.type==="list"!=null&&(typeof(item.type==="list")=="function"?(item.type==="list").call($item):item.type==="list")?(__.push('   <div class="prop-value">    <select class="property-editor" data-property-name="'),typeof item.property!="undefined"&&item.property!=null&&__.push($.encode(typeof item.property=="function"?item.property.call($item):item.property)),__.push('">     '),typeof item.listOptions!="undefined"&&item.listOptions!=null&&$.each(typeof item.listOptions=="function"?item.listOptions.call($item):item.listOptions,function(n,option){with(this)__.push('     <option value="'),typeof option.value!="undefined"&&option.value!=null&&__.push($.encode(typeof option.value=="function"?option.value.call($item):option.value)),__.push('">'),typeof option.name!="undefined"&&option.name!=null&&__.push($.encode(typeof option.name=="function"?option.name.call($item):option.name)),__.push("<\/option>     ")}),__.push("    <\/select>   <\/div>    ")):typeof(item.type==="number")!="undefined"&&item.type==="number"!=null&&(typeof(item.type==="number")=="function"?(item.type==="number").call($item):item.type==="number")?(__.push('   <div class="prop-value">    <input class="property-editor" value="" type="number" data-property-name="'),typeof item.property!="undefined"&&item.property!=null&&__.push($.encode(typeof item.property=="function"?item.property.call($item):item.property)),__.push('" />   <\/div>    ')):typeof(item.type==="string")!="undefined"&&item.type==="string"!=null&&(typeof(item.type==="string")=="function"?(item.type==="string").call($item):item.type==="string")&&(__.push('   <div class="prop-value">    <input class="property-editor" value="" data-property-name="'),typeof item.property!="undefined"&&item.property!=null&&__.push($.encode(typeof item.property=="function"?item.property.call($item):item.property)),__.push('" />   <\/div>    ')),__.push("  <\/div>  ")}),__.push(" ")),__.push("");return __});jQuery.template("Tmpl-search-empty",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="search-empty-msg">   '),typeof noRelevantResults!="undefined"&&noRelevantResults!=null&&(typeof noRelevantResults=="function"?noRelevantResults.call($item):noRelevantResults)?(__.push("   <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","No relevant results were found for"))),__.push(" <b>"),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push("<\/b>&#046;&nbsp;"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","To see what we were able to find click"))),__.push('&nbsp;<span id="search-show-no-relevant-results">here<\/span>&#046;<\/p>   ')):!0&&(__.push("   <p>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","No results found for"))),__.push(" <b>"),typeof query!="undefined"&&query!=null&&__.push($.encode(typeof query=="function"?query.call($item):query)),__.push("<\/b>.<\/p>   ")),__.push("     <p>    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Search tips:"))),__.push("<ul>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Ensure words are spelled correctly."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Try rephrasing keywords or using synonyms."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Try less specific keywords."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Make your queries as concise as possible."))),__.push("<\/li>    <\/ul>   <\/p>     <p>    "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Other resources that may help you:"))),__.push("    <ul>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","Get additional search tips by visiting Web Search Help."))),__.push("<\/li>     <li>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/search-empty.htm","If you cannot find a page that you know exists, send the address to us"))),__.push("<\/li>    <\/ul>   <\/p>  <\/div>");return __});jQuery.template("Tmpl-dim-filter-select-dataset",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="dim-filter-select-dataset">   <label class="gray-label"> '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dim-filter-select-dataset.htm","Dataset"))),__.push(':   <\/label>   <div style="display:inline-block;position: absolute;right: 10px;left: 60px;margin-left: 8px;">    <select class="dataset">     '),typeof datasets!="undefined"&&datasets!=null&&$.each(typeof datasets=="function"?datasets.call($item):datasets,function(n,$value){with(this)__.push('      <option value="'),typeof $value.id!="undefined"&&$value.id!=null&&__.push($.encode(typeof $value.id=="function"?$value.id.call($item):$value.id)),__.push('" datasetType="'),typeof $value.type!="undefined"&&$value.type!=null&&__.push($.encode(typeof $value.type=="function"?$value.type.call($item):$value.type)),__.push('"       '),typeof($value.id==selectedDatasetId)!="undefined"&&$value.id==selectedDatasetId!=null&&(typeof($value.id==selectedDatasetId)=="function"?($value.id==selectedDatasetId).call($item):$value.id==selectedDatasetId)&&__.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>  <\/div>");return __});jQuery.template("Tmpl-file-upload-local",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div id="'),typeof uploadContainerId!="undefined"&&uploadContainerId!=null&&__.push($.encode(typeof uploadContainerId=="function"?uploadContainerId.call($item):uploadContainerId)),__.push('" class="upload-container">   <form action="/page/uploadfile" enctype="multipart/form-data" method="post">    <a class="'),typeof css!="undefined"&&css!=null&&__.push($.encode(typeof css=="function"?css.call($item):css)),__.push(' kn-button common accent">     '),typeof buttonText!="undefined"&&buttonText!=null&&__.push($.encode(typeof buttonText=="function"?buttonText.call($item):buttonText)),__.push('    <\/a>    <input type="hidden" name="filter" value="'),typeof filter!="undefined"&&filter!=null&&__.push($.encode(typeof filter=="function"?filter.call($item):filter)),__.push('" />    <input type="file" name="file" id="file" class="invisible" />    <img id="progress" src="/img/v2/shared/progress-anim.gif" alt="" />   <\/form>  <\/div>');return __});jQuery.template("Tmpl-file-upload-web",function(n,t){var $=n,__=[],i=t.data;with(i)__.push('<div id="upload-container">     <div>         <span class="image-url-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/file-upload-web.htm","Image url"))),__.push('<\/span>     <\/div>     <div>         <input type="text" id="web-url" />     <\/div> <\/div>');return __});jQuery.template("Tmpl-knoema-gadget-series-table",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="series-table-options">   <button type="button" class="ui-button ui-button-text-only set-base-series" role="button" aria-disabled="false">    <span class="ui-button-text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/series-table.htm","Set base series"))),__.push('<\/span>   <\/button>   <button type="button" class="ui-button ui-button-text-only delete-selected-series" role="button" aria-disabled="false">    <span class="ui-button-text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/series-table.htm","Delete series"))),__.push('<\/span>   <\/button>  <\/div>  <div class="series-table-container">   <table class="pivot-table play-series">    <thead>     <tr>      <th><\/th>      <th><\/th>     '),typeof time!="undefined"&&time!=null&&$.each(typeof time=="function"?time.call($item):time,function(n,$value){with(this)__.push("      <th>"),typeof $value!="undefined"&&$value!=null&&__.push($.encode(typeof $value=="function"?$value.call($item):$value)),__.push("<\/th>     ")}),__.push("     <\/tr>    <\/thead>    <tbody>     "),typeof series!="undefined"&&series!=null&&$.each(typeof series=="function"?series.call($item):series,function(n,$value){with(this)__.push('     <tr class="'),typeof $value.isBase!="undefined"&&$value.isBase!=null&&(typeof $value.isBase=="function"?$value.isBase.call($item):$value.isBase)&&__.push(" base-series "),__.push('">      <th data-name="'),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push('" data-request="'),typeof $value.request!="undefined"&&$value.request!=null&&__.push($.encode(typeof $value.request=="function"?$value.request.call($item):$value.request)),__.push('">       <input class="series-selector" type="checkbox" />       <span class="legend '),typeof $value.legendColor!="undefined"&&$value.legendColor!=null&&__.push($.encode(typeof $value.legendColor=="function"?$value.legendColor.call($item):$value.legendColor)),__.push('"><\/span>       '),typeof $value.name!="undefined"&&$value.name!=null&&__.push($.encode(typeof $value.name=="function"?$value.name.call($item):$value.name)),__.push("       "),typeof $value.isBase!="undefined"&&$value.isBase!=null&&(typeof $value.isBase=="function"?$value.isBase.call($item):$value.isBase)&&(__.push('       <div class="base-series-text">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/knoema/gadget/series-table.htm","(base series)"))),__.push("<\/div>       ")),__.push('      <\/th>      <th class="embed-chart"><\/th>      '),typeof $value.data!="undefined"&&$value.data!=null&&$.each(typeof $value.data=="function"?$value.data.call($item):$value.data,function(n,$value){with(this)__.push('      <td data-value="'),typeof $value!="undefined"&&$value!=null&&__.push($.encode(typeof $value=="function"?$value.call($item):$value)),__.push('">'),typeof Knoema.Utils.formatNumber!="undefined"&&Knoema.Utils.formatNumber!=null&&__.push($.encode(Knoema.Utils.formatNumber($value,2))),__.push("<\/td>      ")}),__.push("     <\/tr>     ")}),__.push("    <\/tbody>  <\/table>  <\/div>");return __});jQuery.template("Tmpl-gadget-footnote",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="footnote-dialog">      <div>          <label class="mtl-radio-btn">              <input class="mtl-radio-btn-input" type="radio" value="no" checked="checked" id="no-footnote" name="footnote" />              <span class="mtl-radio-btn-bg"><\/span>          <\/label>          <label for="no-footnote">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Not displayed"))),__.push('<\/label>      <\/div>   <div id="auto-option">    <label class="mtl-radio-btn">     <input class="mtl-radio-btn-input" type="radio" value="auto" id="auto-footnote" name="footnote" />     <span class="mtl-radio-btn-bg"><\/span>    <\/label>    <label for="auto-footnote">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Auto"))),__.push("<\/label>      "),typeof subOptions!="undefined"&&subOptions!=null&&(typeof subOptions=="function"?subOptions.call($item):subOptions)&&(__.push('    <div class="sub-option '),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&__.push("common"),__.push('">     <label id="footnote-label">'),typeof subOptions!="undefined"&&subOptions!=null&&(typeof subOptions=="function"?subOptions.call($item):subOptions)?(__.push(""),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Footnote may display a hyperlinked description of the data source and/or dataset name, based on the following options:"))),__.push("")):!0&&(__.push(" "),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Gadget footnote will display link to the Geo Playground"))),__.push("")),__.push("<\/label>    <\/div>      "),typeof(sourceId&&sourceName)!="undefined"&&(sourceId&&sourceName)!=null&&(typeof(sourceId&&sourceName)=="function"?(sourceId&&sourceName).call($item):sourceId&&sourceName)&&(__.push('    <div class="sub-option '),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&__.push("common"),__.push('">     <label class="mtl-radio-btn">      <input class="mtl-radio-btn-input" type="radio" value="sourceid-datasetid" id="autofootnote-sourceid-datasetid" name="autofootnote-option" />      <span class="mtl-radio-btn-bg"><\/span>     <\/label>     '),typeof multipleDatasets!="undefined"&&multipleDatasets!=null&&(typeof multipleDatasets=="function"?multipleDatasets.call($item):multipleDatasets)?(__.push('     <label for="autofootnote-sourceid-datasetid">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Sources"))),__.push(': <\/label><label for="autofootnote-sourceid-datasetid" class="pseudolink">{'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Source"))),__.push("}, {"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Dataset"))),__.push('}<\/label>; <label for="autofootnote-sourceid-datasetid" class="pseudolink">…<\/label>     ')):!0&&(__.push('     <label for="autofootnote-sourceid-datasetid">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Source"))),__.push(': <a href="'),typeof Knoema.Utils.isCommunity!="undefined"&&Knoema.Utils.isCommunity!=null&&Knoema.Utils.isCommunity()?__.push("/data?source="):!0&&__.push("/atlas/sources/"),__.push(""),typeof sourceId!="undefined"&&sourceId!=null&&__.push($.encode(typeof sourceId=="function"?sourceId.call($item):sourceId)),__.push('">'),typeof sourceName!="undefined"&&sourceName!=null&&__.push($.encode(typeof sourceName=="function"?sourceName.call($item):sourceName)),__.push('<\/a>, <a href="/'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('">'),typeof datasetName!="undefined"&&datasetName!=null&&__.push($.encode(typeof datasetName=="function"?datasetName.call($item):datasetName)),__.push("<\/a><\/label>     ")),__.push('    <\/div>      <div class="sub-option '),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&__.push("common"),__.push('">     <label class="mtl-radio-btn">      <input class="mtl-radio-btn-input" type="radio" value="sourceid" id="autofootnote-sourceid" name="autofootnote-option" />      <span class="mtl-radio-btn-bg"><\/span>     <\/label>     '),typeof multipleDatasets!="undefined"&&multipleDatasets!=null&&(typeof multipleDatasets=="function"?multipleDatasets.call($item):multipleDatasets)?(__.push('     <label for="autofootnote-sourceid">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Sources"))),__.push(': <\/label><label for="autofootnote-sourceid" class="pseudolink">{'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Source"))),__.push('}<\/label>; <label for="autofootnote-sourceid" class="pseudolink">…<\/label>     ')):!0&&(__.push('     <label for="autofootnote-sourceid">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Source"))),__.push(': <a href="'),typeof Knoema.Utils.isCommunity!="undefined"&&Knoema.Utils.isCommunity!=null&&Knoema.Utils.isCommunity()?__.push("/data?source="):!0&&__.push("/atlas/sources/"),__.push(""),typeof sourceId!="undefined"&&sourceId!=null&&__.push($.encode(typeof sourceId=="function"?sourceId.call($item):sourceId)),__.push('">'),typeof sourceName!="undefined"&&sourceName!=null&&__.push($.encode(typeof sourceName=="function"?sourceName.call($item):sourceName)),__.push("<\/a><\/label>     ")),__.push("    <\/div>    ")),__.push('      <div class="sub-option '),typeof!isCommunity!="undefined"&&!isCommunity!=null&&(typeof!isCommunity=="function"?(!isCommunity).call($item):!isCommunity)&&__.push("common"),__.push('">     <label class="mtl-radio-btn">      <input class="mtl-radio-btn-input" type="radio" value="datasetid" checked="checked" id="autofootnote-datasetid" name="autofootnote-option" />      <span class="mtl-radio-btn-bg"><\/span>     <\/label>     '),typeof multipleDatasets!="undefined"&&multipleDatasets!=null&&(typeof multipleDatasets=="function"?multipleDatasets.call($item):multipleDatasets)?(__.push('     <label for="autofootnote-datasetid">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Sources"))),__.push(': <\/label><label for="autofootnote-datasetid" class="pseudolink">{'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Dataset"))),__.push('}<\/label>; <label for="autofootnote-datasetid" class="pseudolink">…<\/label>     ')):!0&&(__.push('     <label for="autofootnote-datasetid">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Source"))),__.push(': <a href="/'),typeof datasetId!="undefined"&&datasetId!=null&&__.push($.encode(typeof datasetId=="function"?datasetId.call($item):datasetId)),__.push('">'),typeof datasetName!="undefined"&&datasetName!=null&&__.push($.encode(typeof datasetName=="function"?datasetName.call($item):datasetName)),__.push("<\/a><\/label>     ")),__.push("    <\/div>    ")),__.push('   <\/div>      <div>          <label class="mtl-radio-btn">              <input class="mtl-radio-btn-input" type="radio" value="custom" id="custom-footnote" name="footnote" />              <span class="mtl-radio-btn-bg"><\/span>          <\/label>          <label for="custom-footnote">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Custom"))),__.push('<\/label>      <\/div>   <textarea id="custom-footnote-text" rows="4" disabled="disabled"><\/textarea>   <div class="align-group">    <label class="alignment-label">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Alignment"))),__.push('<\/label>    <select class="align-footnote">     <option value="left">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Left"))),__.push('<\/option>     <option value="center">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Center"))),__.push('<\/option>     <option value="right">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/gadget-footnote.htm","Right"))),__.push("<\/option>    <\/select>   <\/div>  <\/div>");return __});jQuery.template("Tmpl-dataset-browser-browse-datasets-button",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<a class="browse-dataset" style="margin-top: '),typeof browseButtonMarginTop!="undefined"&&browseButtonMarginTop!=null&&__.push($.encode(typeof browseButtonMarginTop=="function"?browseButtonMarginTop.call($item):browseButtonMarginTop)),__.push('">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-browse-datasets-button.htm","Browse Datasets"))),__.push("<\/a>");return __});jQuery.template("Tmpl-dataset-browser-selected-datasets",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="selected-dataset">   <input id="Id" type="hidden" value="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('" />   <h3>    '),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("<\/h3>      "),typeof publicationDate!="undefined"&&publicationDate!=null&&(typeof publicationDate=="function"?publicationDate.call($item):publicationDate)&&(__.push('   <div class="publication-date">    '),typeof publicationDate!="undefined"&&publicationDate!=null&&__.push($.encode(typeof publicationDate=="function"?publicationDate.call($item):publicationDate)),__.push("<\/div>      ")),__.push('   <div class="source">    <span style="color: #6d6d6d;">'),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-selected-datasets.htm","Source :"))),__.push('<\/span> <span style="color: #1a3c58;">    <\/span>'),typeof(source==null)!="undefined"&&source==null!=null&&(typeof(source==null)=="function"?(source==null).call($item):source==null)?(__.push(" <i>"),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-selected-datasets.htm","unavailable"))),__.push("<\/i> ")):!0&&(__.push(" "),typeof source.localizedName!="undefined"&&source.localizedName!=null&&__.push($.encode(typeof source.localizedName=="function"?source.localizedName.call($item):source.localizedName)),__.push(" ")),__.push('   <\/div>   <div class="description">    '),typeof description!="undefined"&&description!=null&&__.push(typeof description=="function"?description.call($item):description),__.push("<\/div>   "),typeof(replacementDataset!=null&&count==1)!="undefined"&&(replacementDataset!=null&&count==1)!=null&&(typeof(replacementDataset!=null&&count==1)=="function"?(replacementDataset!=null&&count==1).call($item):replacementDataset!=null&&count==1)&&(__.push('   <div class="replace-dataset">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-selected-datasets.htm","There is a newer version of this dataset is available:"))),__.push(" "),typeof replacementDataset.name!="undefined"&&replacementDataset.name!=null&&__.push($.encode(typeof replacementDataset.name=="function"?replacementDataset.name.call($item):replacementDataset.name)),__.push(".    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/dataset-browser-selected-datasets.htm","[Upgrade|class=upgrade-dataset|href=#] in-place")),__.push("     "),typeof showAddLink!="undefined"&&showAddLink!=null&&(typeof showAddLink=="function"?showAddLink.call($item):showAddLink)&&(__.push("    "),typeof $.R2!="undefined"&&$.R2!=null&&__.push($.R2("~/Tmpl/dataset-browser-selected-datasets.htm","or [add|data-datasetid={DatasetId}|class=add-dataset|href=#] it to dataset list.",{DatasetId:replacementDataset.id})),__.push("     ")),__.push("   <\/div>   ")),__.push(" "),typeof(count>1)!="undefined"&&count>1!=null&&(typeof(count>1)=="function"?(count>1).call($item):count>1)&&(__.push('   <button class="ui-button delete-dataset">    '),typeof $.R!="undefined"&&$.R!=null&&__.push($.encode($.R("~/Tmpl/dataset-browser-selected-datasets.htm","Delete"))),__.push("   <\/button>   ")),__.push(" "),typeof(count>1&&index<count)!="undefined"&&(count>1&&index<count)!=null&&(typeof(count>1&&index<count)=="function"?(count>1&&index<count).call($item):count>1&&index<count)&&__.push('   <div class="dataset-border">   <\/div>   '),__.push("  <\/div>");return __})