jQuery.template("Tmpl-knoema-time-series-attribute-text",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="timeseries-attribute text">  <label for="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('<\/label>  <div>   <input type="text" value="'),typeof value!="undefined"&&value!=null&&__.push($.encode(typeof value=="function"?value.call($item):value)),__.push('" />  <\/div> <\/div>');return __});jQuery.template("Tmpl-knoema-time-series-attribute-select",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="timeseries-attribute select">  <label for="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push("<\/label>  <div>   <select>    <option><\/option>    "),typeof values!="undefined"&&values!=null&&$.each(typeof values=="function"?values.call($item):values,function(n,val){with(this)__.push("     <option "),typeof(value==val?"selected":"")!="undefined"&&(value==val?"selected":"")!=null&&__.push($.encode(typeof(value==val?"selected":"")=="function"?(value==val?"selected":"").call($item):value==val?"selected":"")),__.push(">"),typeof val!="undefined"&&val!=null&&__.push($.encode(typeof val=="function"?val.call($item):val)),__.push("<\/option>    ")}),__.push("   <\/select>  <\/div> <\/div>");return __});jQuery.template("Tmpl-knoema-time-series-attribute-number",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="timeseries-attribute number">  <label for="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('<\/label>  <div>   <input type="number" class="start" value="'),typeof(start==null?"":start)!="undefined"&&(start==null?"":start)!=null&&__.push($.encode(typeof(start==null?"":start)=="function"?(start==null?"":start).call($item):start==null?"":start)),__.push('" />   <input type="number" class="end"  value="'),typeof(end==null?"":end)!="undefined"&&(end==null?"":end)!=null&&__.push($.encode(typeof(end==null?"":end)=="function"?(end==null?"":end).call($item):end==null?"":end)),__.push('"/>  <\/div> <\/div>');return __});jQuery.template("Tmpl-knoema-time-series-attribute-multiselect",function(n,$item){var $=n,__=[],t=$item.data;with(t)__.push('<div class="timeseries-attribute multiselect">  <label for="'),typeof id!="undefined"&&id!=null&&__.push($.encode(typeof id=="function"?id.call($item):id)),__.push('">'),typeof name!="undefined"&&name!=null&&__.push($.encode(typeof name=="function"?name.call($item):name)),__.push('<\/label>  <div>   <select multiple data-placeholder="&nbsp;">    '),typeof values!="undefined"&&values!=null&&$.each(typeof values=="function"?values.call($item):values,function(n,val){with(this)__.push("     <option "),typeof(value!=null&&value.indexOf(val)>-1?"selected":"")!="undefined"&&(value!=null&&value.indexOf(val)>-1?"selected":"")!=null&&__.push($.encode(typeof(value!=null&&value.indexOf(val)>-1?"selected":"")=="function"?(value!=null&&value.indexOf(val)>-1?"selected":"").call($item):value!=null&&value.indexOf(val)>-1?"selected":"")),__.push(">"),typeof val!="undefined"&&val!=null&&__.push($.encode(typeof val=="function"?val.call($item):val)),__.push("<\/option>    ")}),__.push("   <\/select>  <\/div> <\/div>");return __})