(function(){function fdca(a){var e=0;return function(){return e<a.length?{done:!1,value:a[e++]}:{done:!0}}}function fdcb(a){var e="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return e?e.call(a):{next:fdca(a)}}
function fdcc(){function a(){return window.scrollY||c.scrollTop}function e(b,g,x){function w(m,n,r){k(Math.max(0,b.i(m)-x),n,r)}function k(m,n,r){t();if(0===n||n&&0>n||d(b.body))b.D(m),r&&r();else{var p=b.v(),z=Math.max(0,m)-p,B=(new Date).getTime();n=n||Math.min(Math.abs(z),g);(function C(){v=setTimeout(function(){var A=Math.min(1,((new Date).getTime()-B)/n),G=Math.max(0,Math.floor(p+z*(.5>A?2*A*A:A*(4-2*A)-1)));b.D(G);1>A&&b.G()+G<b.body.scrollHeight?C():(setTimeout(t,99),r&&r())},9)})()}}function t(){clearTimeout(v);v=0}g=g||999;x||0===x||(x=9);var v;return{setup:function(m,n){if(0===m||m)g=m;if(0===n||n)x=n;return{Ha:g,U:x}},to:w,toY:k,intoView:function(m,n,r){var p=m.getBoundingClientRect().height,z=b.i(m)+p,B=b.G(),F=b.v(),C=F+B;Math.max(0,b.i(m)-x)<F||p+x>B?w(m,n,r):z+x>C?k(z-B+x,n,r):r&&r()},center:function(m,n,r,p){k(Math.max(0,b.i(m)-b.G()/2+(r||m.getBoundingClientRect().height/2)),n,p)},stop:t,moving:function(){return!!v},getY:b.v,getTopOf:b.i}}function d(b){return b&&"getComputedStyle"in window&&"smooth"===window.getComputedStyle(b)["scroll-behavior"]}if("undefined"===typeof window||!("document"in window))return{};var c=document.documentElement,f=e({body:document.scrollingElement||document.body,D:function(b){window.scrollTo(0,b)},v:a,G:function(){return window.innerHeight||c.clientHeight},i:function(b){return b.getBoundingClientRect().top+a()-c.offsetTop}});f.Ga=function(b,g,x){return e({body:b,D:function(w){b.scrollTop=w},v:function(){return b.scrollTop},G:function(){return Math.min(b.clientHeight,window.innerHeight||c.clientHeight)},i:function(w){return w.offsetTop}},g,x)};if("addEventListener"in window&&!window.Da&&!d(document.body)){var y="history"in window&&"pushState"in history,l=y&&"scrollRestoration"in history;l&&(history.scrollRestoration="auto");window.addEventListener("load",function(){l&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(b){b.state&&"zenscrollY"in b.state&&f.D(b.state.Ba)},!1));window.location.hash&&setTimeout(function(){var b=f.xa().U;if(b){var g=document.getElementById(window.location.href.split("#")[1]);g&&(b=Math.max(0,f.i(g)-b),g=f.v()-b,0<=g&&9>g&&window.scrollTo(0,b))}},9)},!1);var q=/(^|\s)noZensmooth(\s|$)/;window.addEventListener("click",function(b){for(var g=b.target;g&&"A"!==g.tagName;)g=g.parentNode;if(!(!g||1!==b.which||b.shiftKey||b.metaKey||b.ctrlKey||b.altKey)){if(l){var x=history.state&&"object"===typeof history.state?history.state:{};x.Ba=f.v();try{history.replaceState(x,"")}catch(k){}}var w=g.getAttribute("href")||"";if(0===w.indexOf("#")&&!q.test(g.className)){g=0;x=document.getElementById(w.substring(1));if("#"!==w){if(!x)return;g=f.i(x)}b.preventDefault();b=function(){window.location=w};if(x=f.xa().U)g=Math.max(0,g-x),y&&(b=function(){history.pushState({},"",w)});f.D(g,null,b)}}},!1)}return f}(function(){function a(q){this.c=y({},{X:null,Ja:null,Ea:null,R:null,ba:!1,na:!1,ja:[],ha:"Close",m:["overlay","button","escape"]},q);this.pa()}function e(){this.b&&(this.b.style.width=this.h.clientWidth+"px",this.b.style.left=this.h.offsetLeft+"px")}function d(){this.a=document.createElement("div");this.a.classList.add("tingle-modal");0!==this.c.m.length&&-1!==this.c.m.indexOf("overlay")||this.a.classList.add("tingle-modal--noOverlayClose");this.a.style.display="none";this.c.ja.forEach(function(q){"string"===typeof q&&this.a.classList.add(q)},this);-1!==this.c.m.indexOf("button")&&(this.w=document.createElement("button"),this.w.type="button",this.w.classList.add("tingle-modal__close"),this.N=document.createElement("span"),this.N.classList.add("tingle-modal__closeIcon"),this.N.innerHTML='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.3 9.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3L5 6.4l3.3 3.3c.2.2.5.3.7.3.2 0 .5-.1.7-.3.4-.4.4-1 0-1.4L6.4 5l3.3-3.3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L5 3.6 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4L3.6 5 .3 8.3c-.4.4-.4 1 0 1.4z" fill="#000" fill-rule="nonzero"/></svg>',this.O=document.createElement("span"),this.O.classList.add("tingle-modal__closeLabel"),this.O.innerHTML=this.c.ha,this.w.appendChild(this.N),this.w.appendChild(this.O));this.h=document.createElement("div");this.h.classList.add("tingle-modal-box");this.W=document.createElement("div");this.W.classList.add("tingle-modal-box__title");this.h.appendChild(this.W);this.J=document.createElement("div");this.J.classList.add("tingle-modal-box__content");this.h.appendChild(this.J);-1!==this.c.m.indexOf("button")&&this.a.appendChild(this.w);this.a.appendChild(this.h)}function c(q){-1!==this.c.m.indexOf("escape")&&27===q.which&&this.ta()&&this.close()}function f(q){var b;if(b=-1!==this.c.m.indexOf("overlay")){for(b=q.target;(b=b.parentElement)&&!b.classList.contains("tingle-modal"););b=!b}b&&q.clientX<this.a.clientWidth&&this.close()}function y(){for(var q=1;q<arguments.length;q++)for(var b in arguments[q])arguments[q].hasOwnProperty(b)&&(arguments[0][b]=arguments[q][b]);return arguments[0]}var l=!1;a.prototype.pa=function(){this.a||(d.call(this),this.F={fa:this.close.bind(this),ga:f.bind(this),resize:this.ea.bind(this),ua:c.bind(this)},-1!==this.c.m.indexOf("button")&&this.w.addEventListener("click",this.F.fa),this.a.addEventListener("mousedown",this.F.ga),window.addEventListener("resize",this.F.resize),document.addEventListener("keydown",this.F.ua),document.body.insertBefore(this.a,document.body.firstChild),this.c.na&&this.da())};a.prototype.P=function(q){l=q};a.prototype.ca=function(){return l};a.prototype.ta=function(){return!!this.a.classList.contains("tingle-modal--visible")};a.prototype.close=function(){if(!this.ca()){this.P(!0);if("function"!==typeof this.c.R||this.c.R.call(this))document.body.classList.remove("tingle-enabled"),window.scrollTo({top:this.Ca,behavior:"instant"}),document.body.style.top=null,this.a.classList.remove("tingle-modal--visible"),this.a.style.display="none","function"===typeof this.c.X&&this.c.X.call(this);this.P(!1)}};a.prototype.da=function(){this.b=document.createElement("div");this.b.classList.add("tingle-modal-box__footer");this.h.appendChild(this.b)};a.prototype.Y=function(q){this.I()||(q=!1);q?this.h.contains(this.b)&&(this.h.removeChild(this.b),this.a.appendChild(this.b),this.b.classList.add("tingle-modal-box__footer--sticky"),e.call(this),this.J.style["padding-bottom"]=this.b.clientHeight+20+"px"):this.b&&!this.h.contains(this.b)&&(this.a.removeChild(this.b),this.h.appendChild(this.b),this.b.style.width="auto",this.b.style.left="",this.J.style["padding-bottom"]="",this.b.classList.remove("tingle-modal-box__footer--sticky"))};a.prototype.resize=function(){console.warn("Resize is deprecated and will be removed in version 1.0")};a.prototype.I=function(){return this.h.clientHeight>=window.innerHeight};a.prototype.ea=function(){this.a.classList.contains("tingle-modal--visible")&&(this.I()?this.a.classList.add("tingle-modal--overflow"):this.a.classList.remove("tingle-modal--overflow"),!this.I()&&this.c.ba?this.Y(!1):this.I()&&this.c.ba&&(e.call(this),this.Y(!0)))};return{a:a}})();String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};function fdcd(a){function e(h){h.preventDefault();if(!l.disabled){var D=h;h.touches&&(D=h.touches[0]);b=this===m?m.offsetLeft:n.offsetLeft;q=D.pageX-b;u=this;document.addEventListener("mousemove",d);document.addEventListener("mouseup",c);document.addEventListener("touchmove",d);document.addEventListener("touchend",c)}}function d(h){if(!l.disabled){var D=h;h.touches&&(D=h.touches[0]);b=D.pageX-q;h=n?n.offsetLeft:p.offsetWidth;u===m?(b>h?b=h:0>b&&(b=0),u.style.left=b+"px"):u===n&&(b<m.offsetLeft+m.offsetWidth-10?b=m.offsetLeft+m.offsetWidth-10:b>G&&(b=G),u.style.left=b+"px");r.style.marginLeft=m.offsetLeft-m.offsetWidth/2+"px";r.style.width=h-m.offsetLeft+"px";y();if(a.onchange&&x)a.onchange(g.getAttribute("se-min-value"),g.getAttribute("se-max-value"),g.dataset.id)}}function c(){document.removeEventListener("mousemove",d);document.removeEventListener("mouseup",c);document.removeEventListener("touchmove",d);document.removeEventListener("touchend",c);l.disabled||(u=null,y(),l.ma&&x&&l.ma(g.getAttribute("se-min-value"),g.getAttribute("se-max-value")))}function f(){t.style.opacity="1";setTimeout(function(){t.style.opacity="0"},3E3)}function y(){var h=m.offsetLeft/E*(B-z)+z;var D=0*(B-z)+z;if(0!==A){var H=Math.floor(h/A);h=A*H;H=Math.floor(D/A);D=A*H}h>=B&&(k||f(),k=!0);h<=z&&(w||f(),w=!0);l.Z(h);g.setAttribute("se-min-value",h);g.setAttribute("se-max-value",D)}var l=this,q=0,b=0,g=a.L,x=!1,w=!1,k=!1,t=document.createElement("div");t.classList.add("slider-input-tooltip");t.innerHTML="ניתן להזין את הערך ידנית";setTimeout(function(){v.parentNode.appendChild(t);t.style.left=v.parentNode.offsetWidth/2-t.offsetWidth/2+"px"},1);if(a.g)var v=a.g;else a.f&&(v=a.f);v.appendChild(t);var m=g.querySelector(".zb-slider-touch-left"),n=g.querySelector(".zb-slider-touch-right"),r=g.querySelector(".zb-non-active-slider-bar"),p=g.querySelector(".zb-slider-bar"),z=parseFloat(g.getAttribute("se-min")),B=parseFloat(g.getAttribute("se-max"));l.Na=function(h){z=h};l.Ka=function(h){B=h};l.enable=function(h){l.disabled=!h;h?(a.L.classList.remove("disabled"),v&&(v.classList.remove("disabled"),a.g?a.g.setAttribute("contenteditable",!0):a.f&&a.f.setAttribute("readonly",!1))):(a.L.classList.add("disabled"),v&&(v.classList.add("disabled"),a.g?a.g.setAttribute("contenteditable","false"):a.f&&a.f.setAttribute("readonly",!0)))};var F=z;g.hasAttribute("se-min-value")&&(F=parseFloat(g.getAttribute("se-min-value")));var C=B;g.hasAttribute("se-max-value")&&(C=parseFloat(g.getAttribute("se-max-value")));F<z&&(F=z);C>B&&(C=B);F>C&&(F=C);var A=0;g.getAttribute("se-step")&&(A=Math.abs(parseFloat(g.getAttribute("se-step"))));l.L=g;l.reset=function(){m.style.left="0px";n&&(n.style.left=p.offsetWidth-m.offsetWidth+"px");r.style.marginLeft="0px";r.style.width=p.offsetWidth-m.offsetWidth+"px";b=q=0;d({pageX:0})};l.K=function(h,D){(void 0===D||D)&&l.Z(h);h>B&&(h=B);h<z&&(h=z);m.style.left=Math.ceil((h-z)/(B-z)*(p.offsetWidth-(m.offsetWidth+0)))+"px";r.style.marginLeft=m.offsetLeft+"px";r.style.width=n?n.offsetLeft-m.offsetLeft+"px":p.offsetWidth-m.offsetLeft+"px";g.setAttribute("se-min-value",h)};l.La=function(h){n&&(n.style.left=Math.ceil((h-z)/(B-z)*(p.offsetWidth-(m.offsetWidth+0)))+"px",r.style.marginLeft=m.offsetLeft+"px",r.style.width=n.offsetLeft-m.offsetLeft+"px",g.setAttribute("se-max-value",h))};l.Z=function(h){.01>Math.abs(Math.floor(100*h)-100*h)&&(h=Math.floor(1E3*h)/1E3);a.f?a.f.value=h:a.g.innerHTML=h};l.reset();var G=p.offsetWidth-(n?n.offsetWidth:0),u=null,E=p.offsetWidth;l.K(F);m.addEventListener("mousedown",e);m.addEventListener("touchstart",e);n&&(n.addEventListener("mousedown",e),n.addEventListener("touchstart",e));a.g?a.g.addEventListener("keyup",function(h){l.K(parseInt(h.target.innerHTML,10),!1);a.onchange(g.getAttribute("se-min-value"),g.getAttribute("se-max-value"),g.dataset.id)}):a.f&&a.f.addEventListener("change",function(h){l.K(parseInt(h.target.value,10),!1);a.onchange(g.getAttribute("se-min-value"),g.getAttribute("se-max-value"),g.dataset.id)});m.style.left=m.offsetLeft-10+"px";setTimeout(function(){E=p.offsetWidth;l.K(g.getAttribute("se-min-value"))},100);x=!0}
function fdce(a){function e(k){function t(){for(var v=k.offsetLeft,m=k.offsetTop+k.offsetHeight,n=k;n.offsetParent;)n=n.offsetParent,v+=n.offsetLeft,m+=n.offsetTop;n=w;var r="undefined"!==n.value+""?c(n.value):c(n.innerHTML);if(!document.getElementById("datepicker")){var p=document.createElement("div");p.id="datepicker";p.className="date-picker-container-div";document.body.appendChild(p);p=document.getElementById("overlay_div");p||(p=document.createElement("div"),p.id="overlay_div",p.className="overlay_div",document.body.appendChild(p))}p=document.getElementById("overlay_div");p.style.height=document.body.scrollHeight+"px";p.style.display="block";p=document.getElementById("datepicker");p.style.left=v+"px";p.style.display="block";d(n,r.getFullYear(),r.getMonth(),r.getDate());mobileBrowser&&500<p.offsetHeight&&(m=document.documentElement.scrollTop+20);p.style.top=m+"px"}k||(k=w);a.j||!mobileBrowser?w.onfocus=t:w.nextElementSibling.onclick=t}function d(k,t,v,m){function n(){F.innerHTML="";y.aa(new Date(z,B-1,p));document.getElementById("overlay_div").style.display="";x()}function r(H,I){Array.prototype.map.call(H.childNodes,function(J){J.classList.remove(I)})}k=new Date;0<=v&&0<t?k=new Date(t,v,1):(m=k.getDate(),k.setDate(1));var p=m,z=t,B=v+1,F=document.createElement("div");F.className="calendar-widget";k=document.createElement("div");k.className="calendar-list-container";F.appendChild(k);var C=document.createElement("div");C.className="date-picker-list date-picker-day-list";k.appendChild(C);var A=document.createElement("month");A.className="date-picker-list date-picker-month-list";F.appendChild(A);var G=document.createElement("year");G.className="date-picker-list date-picker-year-list";for(var u={u:0};u.u<q.length;u={u:u.u},u.u++){var E=document.createElement("div");E.className="month-item";E.innerHTML=q[u.u];E.onclick=function(H){return function(){var I=H.u;B=I+1;r(A,"selected-date");A.childNodes[I].classList.add("selected-date");l&&n()}}(u);A.appendChild(E)}var h=0;if(!mobileBrowser&&10<g-b)for(h=0;h<b%10;h++)u=document.createElement("div"),u.className="year-item",u.innerHTML="",G.appendChild(u);u={};for(u.o=b;u.o<=g;u={o:u.o},u.o++)E=document.createElement("div"),E.className="year-item",E.innerHTML=u.o,E.onclick=function(H){return function(){var I=h+H.o-b;z=b+I-h;D=I;r(G,"selected-date");G.childNodes[I].classList.add("selected-date");l&&n()}}(u),G.appendChild(E);for(u={s:0};31>u.s;u={s:u.s},u.s++)E=document.createElement("div"),E.className="day-item",E.innerHTML=u.s+1,E.onclick=function(H){return function(){var I=H.s;p=I+1;r(C,"selected-date");C.childNodes[I].classList.add("selected-date");l&&n()}}(u),C.appendChild(E);k.appendChild(C);k.appendChild(A);k.appendChild(G);a.A&&(C.style.display="none");a.B&&(A.style.display="none");a.H&&(G.style.display="none");document.getElementById("datepicker").innerHTML="";document.getElementById("datepicker").appendChild(F);var D=h+t-b;D=Math.max(D,0);try{A.childNodes[v].classList.add("selected-date"),C.childNodes[m-1].classList.add("selected-date"),G.childNodes[D].classList.add("selected-date")}catch(H){}t=document.createElement("div");t.className="calendar-button_container";l||(v=fdcf({caption:"אישור",onclick:n}),t.appendChild(v));F.appendChild(t)}function c(k){if(a.j)return new Date(k);var t;if(""===k)return a.T;try{var v;0<=k.indexOf("/")?v=k.split("/"):0<=k.indexOf(".")?v=k.split("."):0<=k.indexOf("-")?v=k.split("-"):0<=k.indexOf("\\")?v=k.split("\\"):v=!1;if(t=v){var m=parseInt(t[0],10);var n=parseInt(t[1],10)-1;var r=parseInt(t[2],10);r=r<=(new Date).getFullYear()-2E3?r+2E3:r+1900;var p=new Date(r,n,m)}else p=k?new Date(k):new Date}catch(z){p=new Date}return p}function f(k){if(a.A&&a.B)return k.getFullYear();var t=k.getYear()%100;return k.getDate()+"/"+(k.getMonth()+1)+"/"+(10>t?"0"+t:t)}var y=this,l=!a.H&&a.B&&a.A||a.H&&!a.B&&a.A||a.H&&a.B&&!a.A,q="ינואר פברואר מרץ אפריל מאי יוני יולי אוגוסט ספטמבר אוקטובר נובמבר דצמבר".split(" "),b=a.wa,g=a.va,x=a.onclick||function(){};y.Oa=function(k){b=k};y.Ma=function(k){g=k};var w=a.f;a.j||e(a.f);y.oa=function(){return c(w.value)};y.aa=function(k){a.j?(w.value=k.toISOString().split("T")[0],w.nextElementSibling.innerHTML=f(k)):(mobileBrowser&&(w.nextElementSibling.innerHTML=f(k)),w.value=f(k))};y.aa(a.T);a.j&&w.addEventListener("change",function(){w.nextElementSibling.innerHTML=f(new Date(w.value))})}var fdc=void 0;function fdcg(a){var e=document.createElement("div");e.style.width=a.width;e.className="slider-container";var d=document.createElement("div");e.appendChild(d);d.className="zb-slider";a.step&&d.setAttribute("se-step",a.step);d.setAttribute("se-min",a.min);d.setAttribute("se-max",a.max);a.M&&d.setAttribute("se-min-value",a.M);a.la&&d.setAttribute("se-min-max",a.la);var c=document.createElement("div");c.className="zb-slider-touch-left";d.appendChild(c);c.appendChild(document.createElement("span"));c=document.createElement("div");c.className="zb-slider-bar";d.appendChild(c);var f=document.createElement("span");f.className="zb-non-active-slider-bar";c.appendChild(f);a.parent&&(a.parent.appendChild(e),new fdcd({L:d,f:a.f,g:a.g,onchange:a.onchange}));return{Fa:e,ya:d}}function fdcf(a){var e=document.createElement("div");e.className="animated-calculator-button";e.innerHTML=a.caption||"";a.onclick&&(e.onclick=a.onclick);return e}var fdch=0;function fdci(a){var e=document.createElement("div");e.className="text-slider-container";a.S&&(e.id=a.S);a.parent.appendChild(e);var d=document.createElement("div");e.appendChild(d);d.className="slider-and-label-container";var c=document.createElement("label");c.className=a.Pa||"slider-label";c.innerHTML=a.Aa||"";d.appendChild(c);void 0===a.C&&(a.C="___running_text_id_"+fdch++);a.type?(c=document.createElement("input"),c.className="slider-text-field",c.type=a.type||"text",a.Ia&&(c.pattern="\\d*")):(c=document.createElement("div"),c.setAttribute("contenteditable",!0),c.setAttribute("inputmode","decimal"),c.onfocus=function(l){window.getSelection().selectAllChildren(l.target)},c.className="slider-text-div");a.ra&&(c.onchange=a.ra);a.sa&&(c.onkeyup=a.sa);c.id=a.C;c.name=a.name;var f=a.za;if(a.type){f.f=c;var y="slider-text-field-container"}else f.g=c,y="slider-text-div-container";f.parent=d;fdcg(f).ya.dataset.id=a.C;d=document.createElement("div");d.className=y;e.appendChild(d);d.appendChild(c);a.V&&(e=document.createElement("label"),e.className="slider-text-field-label",e.innerHTML=a.V||"",e.setAttribute("for",a.C),d.appendChild(e))}
function fdcj(a){var e=a.caption,d=document.createElement("div");d.id=a.S||"";d.className="animated-calendar-container";var c=document.createElement("label");c.className="animated-calendar-container-label";c.innerHTML=e||"";d.appendChild(c);a.l.j=mobileBrowser&&!a.l.A&&!a.l.B&&!a.l.H;e=fdck(a.l);d.appendChild(e.g);a.l.f=e.input;return{ka:new fdce(a.l),ia:d}}
function fdck(a){var e=document.createElement("div");e.className="calendar-div-input";var d=document.createElement("input");d.setAttribute("autocomplete","off");d.type=a.j?"date":"text";d.className="calendar-text-input";d.id=a.qa;d.value=a.M||"";e.appendChild(d);if(a.j||mobileBrowser){var c=document.createElement("label");c.className="calendar-label-input";d.onchange=a.onclick||function(){};a.j&&c.setAttribute("for",d.id);e.appendChild(c)}return{g:e,input:d}}
function fdcl(){var a=a||["animated-calendar-container","animated-popup-button-set-container","text-slider-container","animated-select-container","quick-nav-container"];a=fdcb(a);for(var e=a.next();!e.done;e=a.next())Array.prototype.map.call(document.getElementsByClassName(e.value),function(d){d.classList.add("popup_with_separator")})}
function fdcm(){for(var a=document.cookie.split(";"),e,d,c="",f=0;f<a.length;f++)if(e=a[f].split("="),d=e[0].replace(/^\s+|\s+$/g,""),"last_period_date"==d)return 1<e.length&&(c=unescape(e[1].replace(/^\s+|\s+$/g,""))),c;return null}(function(){function a(){if(mobileBrowser){var c=document.getElementById("calculator_center_ad");fdc||(fdc=fdcc());fdc.to(c)}(c=document.getElementById("period_length"))||(c=document.getElementsByName("period_length")[0]);var f=c.value;void 0===f&&(f=c.innerHTML);var y=parseInt(f,10);c=e.oa();f="";var l=new Date;l.setTime(l.getTime());f&&(f*=864E5);l=new Date(l.getTime()+f);document.cookie="last_period_date="+escape(c)+(f?";expires="+l.toGMTString():"")+";path=/";f=am4core.create("chart-month-0",am4plugins_sunburst.Sunburst);f.colors.step=2;am4core.useTheme(am4themes_animated);f.rtl=!0;f.dataFields.value="value";f.dataFields.name="name";f.dataFields.children="children";f.dataFields.color="color";f.fontSize=20;f.fontWeight="bold";f.showBalloon=!1;f.innerRadius=am4core.percent(5);l=[];for(var q=0;2>q;q++){var b=f.seriesTemplates.create(""+q);b.labels.template.fontSize=mobileBrowser?15:20;b.labels.template.text="{category}";b.labels.template.wrap=!0;b.slices.template.tooltipText="";b.slices.template.configField="config";b.labels.template.showTooltipOn="hit";b.slices.template.propertyFields.isActive="pulled";l.push(b)}l[1].hiddenInLegend=!0;l[0].labels.template.maxWidth=140;l=y-14;y=[{name:"וסת",value:4,color:d.period,children:[]},{name:"השלב\nהפוליקולרי",value:l-4,color:d.policular,children:[]},{name:"ביוץ",value:3,color:d.ovulation,children:[]},{name:"השלב\nהלוטאלי",value:y-(l+3),color:d.lutal,children:[]},{name:"",value:.3,color:"#ffffff"}];for(l=0;l<y.length;l++)if(q=y[l],1<=q.value)for(b=0;b<q.value;b++)q.children.push({name:c.getDate()+"."+(c.getMonth()+1)+" - "+"אבגדהוש".split("")[c.getDay()],value:1,fill:am4core.color(q.color)}),c.setDate(c.getDate()+1);f.data=y;document.getElementById("result-text").innerHTML="בתרשים הבא מופיעים ימי המחזור החודשי בחלוקה לפי הצבעים הבאים:<br/><div><div id='legend-sqaure-0' class='legend-square'></div><div class='legend-text'>וסת</div></div><div><div id='legend-sqaure-1' class='legend-square'></div><div class='legend-text'>בין הוסת לביוץ - השלב הפוליקולרי</div></div><div><div id='legend-sqaure-2' class='legend-square'></div><div class='legend-text'>ביוץ</div></div><div><div id='legend-sqaure-3' class='legend-square'></div><div class='legend-text'>בין הביוץ להריון או הוסת הבאה (השלב הלוטאלי)</div></div>";document.getElementById("legend-sqaure-0").style.backgroundColor=d.period;document.getElementById("legend-sqaure-1").style.backgroundColor=d.policular;document.getElementById("legend-sqaure-2").style.backgroundColor=d.ovulation;document.getElementById("legend-sqaure-3").style.backgroundColor=d.lutal}var e,d={period:"#F06359",policular:"#5995F0",ovulation:"#DF91F5",lutal:"#FF9933"};(function(){var c=document.getElementById("selection_panel");if(fdcm())var f=new Date(fdcm());else f=new Date,f.setDate(f.getDate()-10);f=fdcj({caption:"תאריך המחזור האחרון:",l:{qa:"last_period_date",wa:(new Date).getFullYear()-1,va:(new Date).getFullYear(),T:f}});var y=f.ia;e=f.ka;c.appendChild(y);fdci({za:{step:1,min:21,max:35,M:28,width:"100%"},V:"ימים",Aa:"משך המחזור החודשי",name:"period_length",C:"period_length",parent:c});c=fdcf({caption:"מתי הימים הפוריים?"});c.onclick=a;document.getElementById("calculator_buttons").appendChild(c);c=fdcf({caption:"חישוב נוסף"});c.onclick=function(){var l=document.getElementsByClassName("calculator_wrapper")[0];fdc||(fdc=fdcc());fdc.to(l)};document.getElementById("result_buttons").appendChild(c);fdcl()})();return this})()})();(function(){function menu_(b){var d=0;return function(){return d<b.length?{done:!1,value:b[d++]}:{done:!0}}}(function(){function b(a){this.c=g({},{w:null,R:null,P:null,u:null,B:!1,K:!1,J:[],I:"Close",g:["overlay","button","escape"]},a);this.L()}function d(){this.b&&(this.b.style.width=this.f.clientWidth+"px",this.b.style.left=this.f.offsetLeft+"px")}function e(){this.a=document.createElement("div");this.a.classList.add("tingle-modal");0!==this.c.g.length&&-1!==this.c.g.indexOf("overlay")||this.a.classList.add("tingle-modal--noOverlayClose");this.a.style.display="none";this.c.J.forEach(function(a){"string"===typeof a&&this.a.classList.add(a)},this);-1!==this.c.g.indexOf("button")&&(this.h=document.createElement("button"),this.h.type="button",this.h.classList.add("tingle-modal__close"),this.m=document.createElement("span"),this.m.classList.add("tingle-modal__closeIcon"),this.m.innerHTML='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.3 9.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3L5 6.4l3.3 3.3c.2.2.5.3.7.3.2 0 .5-.1.7-.3.4-.4.4-1 0-1.4L6.4 5l3.3-3.3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L5 3.6 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4L3.6 5 .3 8.3c-.4.4-.4 1 0 1.4z" fill="#000" fill-rule="nonzero"/></svg>',this.o=document.createElement("span"),this.o.classList.add("tingle-modal__closeLabel"),this.o.innerHTML=this.c.I,this.h.appendChild(this.m),this.h.appendChild(this.o));this.f=document.createElement("div");this.f.classList.add("tingle-modal-box");this.v=document.createElement("div");this.v.classList.add("tingle-modal-box__title");this.f.appendChild(this.v);this.l=document.createElement("div");this.l.classList.add("tingle-modal-box__content");this.f.appendChild(this.l);-1!==this.c.g.indexOf("button")&&this.a.appendChild(this.h);this.a.appendChild(this.f)}function f(a){-1!==this.c.g.indexOf("escape")&&27===a.which&&this.M()&&this.close()}function m(a){var c;if(c=-1!==this.c.g.indexOf("overlay")){for(c=a.target;(c=c.parentElement)&&!c.classList.contains("tingle-modal"););c=!c}c&&a.clientX<this.a.clientWidth&&this.close()}function g(){for(var a=1;a<arguments.length;a++)for(var c in arguments[a])arguments[a].hasOwnProperty(c)&&(arguments[0][c]=arguments[a][c]);return arguments[0]}var h=!1;b.prototype.L=function(){this.a||(e.call(this),this.i={G:this.close.bind(this),H:m.bind(this),resize:this.F.bind(this),N:f.bind(this)},-1!==this.c.g.indexOf("button")&&this.h.addEventListener("click",this.i.G),this.a.addEventListener("mousedown",this.i.H),window.addEventListener("resize",this.i.resize),document.addEventListener("keydown",this.i.N),document.body.insertBefore(this.a,document.body.firstChild),this.c.K&&this.D())};b.prototype.s=function(a){h=a};b.prototype.C=function(){return h};b.prototype.M=function(){return!!this.a.classList.contains("tingle-modal--visible")};b.prototype.close=function(){if(!this.C()){this.s(!0);if("function"!==typeof this.c.u||this.c.u.call(this))document.body.classList.remove("tingle-enabled"),window.scrollTo({top:this.O,behavior:"instant"}),document.body.style.top=null,this.a.classList.remove("tingle-modal--visible"),this.a.style.display="none","function"===typeof this.c.w&&this.c.w.call(this);this.s(!1)}};b.prototype.D=function(){this.b=document.createElement("div");this.b.classList.add("tingle-modal-box__footer");this.f.appendChild(this.b)};b.prototype.A=function(a){this.j()||(a=!1);a?this.f.contains(this.b)&&(this.f.removeChild(this.b),this.a.appendChild(this.b),this.b.classList.add("tingle-modal-box__footer--sticky"),d.call(this),this.l.style["padding-bottom"]=this.b.clientHeight+20+"px"):this.b&&!this.f.contains(this.b)&&(this.a.removeChild(this.b),this.f.appendChild(this.b),this.b.style.width="auto",this.b.style.left="",this.l.style["padding-bottom"]="",this.b.classList.remove("tingle-modal-box__footer--sticky"))};b.prototype.resize=function(){console.warn("Resize is deprecated and will be removed in version 1.0")};b.prototype.j=function(){return this.f.clientHeight>=window.innerHeight};b.prototype.F=function(){this.a.classList.contains("tingle-modal--visible")&&(this.j()?this.a.classList.add("tingle-modal--overflow"):this.a.classList.remove("tingle-modal--overflow"),!this.j()&&this.c.B?this.A(!1):this.j()&&this.c.B&&(d.call(this),this.A(!0)))};return{a:b}})();String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};function menu_a(b){var d=new XMLHttpRequest;d.addEventListener("load",function(f){4===f.target.readyState&&b(f.target.responseText,0,f.target.responseXML)});var e=menu_b();""!==e&&(e="?"+e);d.open("GET","panel_content/print_menu_contents.php"+e);d.send("")}function menu_b(){var b={},d=[],e;for(e in b)d.push(e+"="+b[e]);return d.join("&")}
function menu_c(){"images/square_articles/food-bag_200_200-125.png images/square_articles/lettuce_with_measure_200_200-125.jpg images/square_articles/pregnant_apple_200_200-125.jpg images/square_articles/drinks_200_200-125.jpg images/calculators/house_dollar_swing_125_125.jpg images/calculators/tax_receipt_125_125.jpg images/calculators/coins3_125_125.jpg images/square_articles/calculator_10_200_200-125.jpg images/square_articles/dog_200_200-125.jpg images/square_articles/woman_weight_200_200-125.jpg images/square_articles/fruit_basket_2_200_200-125.jpg images/square_articles/housing_200_200-125.jpg images/square_articles/woman_belly_measure_200_200-125.jpg images/square_articles/pregnant_mirror_200_200-125.jpg images/square_articles/man_suit_watch_200_200-125.jpg images/square_articles/strawberris_200_200-125.jpg images/square_articles/wallet_200_200-125.jpg images/square_articles/dollar_house_200_200-125.jpg images/square_articles/kojak_200_200-125.jpg images/square_articles/graph_up_200_200-125.jpg images/square_articles/freud_200_200-125.jpg images/square_articles/pregnant_cyan_1_200_200-125.jpg images/square_articles/yellow_pepper_200_200-125.jpg images/square_articles/yin_yang_200_200-125.jpg images/square_articles/yellow_car_200_200-125.jpg images/square_articles/hitech_gym_200_200-125.jpg images/square_articles/fruit_basket_200_200-125.jpg images/square_articles/books_200_200-125.jpg images/categories/affiliates_200_200-125.jpg images/categories/gear_200_200-125.jpg images/authors/ami_and_reut2.jpg".split(" ").map(function(b,d){document.querySelector(".lazy_loaded_image_"+d).src=b})}(function(){function b(f){function m(){h();a=setTimeout(function(){k.classList.remove("visible");c=setTimeout(function(){k.classList.remove("top-visible");c=-1},200);a=-1},1E3)}function g(){n||(menu_c(),n=!0);Array.prototype.map.call(document.querySelectorAll("div.mbmenu.boxMenu"),function(l){l!==k&&(l.classList.remove("top-visible"),l.classList.remove("visible"))});h();k.classList.add("top-visible");k.classList.add("visible")}function h(){var l=[a,c];var p="undefined"!=typeof Symbol&&Symbol.iterator&&l[Symbol.iterator];l=p?p.call(l):{next:menu_(l)};for(p=l.next();!p.done;p=l.next())clearTimeout(p.value)}var a=-1,c=-1,k=document.getElementById(f.id.substr(0,f.id.indexOf("-header"))),n=!1;f.onmouseenter=g;f.onmouseleave=m;k.onmouseenter=g;k.onmouseleave=m}var d=document.getElementsByClassName("desktop-menu-item"),e;menu_a(function(f){f=(new DOMParser).parseFromString(f,"text/xml");var m=[];Array.prototype.map.call(f.childNodes[0].childNodes,function(g){return m.push(g)});m.map(function(g){var h=document.createElement("div"),a=g.getAttribute("id");h.className=g.getAttribute("class");h.id=a;if(g.innerHTML)h.innerHTML=g.innerHTML;else{e||(e=new XMLSerializer);var c=e;for(var k="",n=0;n<g.childNodes.length;n++)k+=c.serializeToString(g.childNodes[n]);h.innerHTML=k}document.getElementById(a+"-header").appendChild(h)});Array.prototype.map.call(d,b)})})({})})()