(function(){function oca(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function oc(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:oca(a)}}var ocb="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,d){a!=Array.prototype&&a!=Object.prototype&&(a[b]=d.value)},occ="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function ocd(a,b){if(b){var d=occ;a=a.split(".");for(var e=0;e<a.length-1;e++){var f=a[e];f in d||(d[f]={});d=d[f]}a=a[a.length-1];e=d[a];b=b(e);b!=e&&null!=b&&ocb(d,a,{configurable:!0,writable:!0,value:b})}}ocd("Object.is",function(a){return a?a:function(b,d){return b===d?0!==b||1/b===1/d:b!==b&&d!==d}});ocd("Array.prototype.includes",function(a){return a?a:function(b,d){var e=this;e instanceof String&&(e=String(e));var f=e.length;d=d||0;for(0>d&&(d=Math.max(d+f,0));d<f;d++){var n=e[d];if(n===b||Object.is(n,b))return!0}return!1}});ocd("Array.from",function(a){return a?a:function(b,d,e){d=null!=d?d:function(h){return h};var f=[],n="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof n){b=n.call(b);for(var w=0;!(n=b.next()).done;)f.push(d.call(e,n.value,w++))}else for(n=b.length,w=0;w<n;w++)f.push(d.call(e,b[w],w));return f}});function oce(){function a(){return window.scrollY||e.scrollTop}function b(c,k,r){function t(x,v,p){B(Math.max(0,c.J(x)-r),v,p)}function B(x,v,p){u();if(0===v||v&&0>v||d(c.body))c.S(x),p&&p();else{var y=c.N(),C=Math.max(0,x)-y,g=(new Date).getTime();v=v||Math.min(Math.abs(C),k);(function l(){A=setTimeout(function(){var m=Math.min(1,((new Date).getTime()-g)/v),z=Math.max(0,Math.floor(y+C*(.5>m?2*m*m:m*(4-2*m)-1)));c.S(z);1>m&&c.Y()+z<c.body.scrollHeight?l():(setTimeout(u,99),p&&p())},9)})()}}function u(){clearTimeout(A);A=0}k=k||999;r||0===r||(r=9);var A;return{setup:function(x,v){if(0===x||x)k=x;if(0===v||v)r=v;return{kb:k,ya:r}},to:t,toY:B,intoView:function(x,v,p){var y=x.getBoundingClientRect().height,C=c.J(x)+y,g=c.Y(),q=c.N(),l=q+g;Math.max(0,c.J(x)-r)<q||y+r>g?t(x,v,p):C+r>l?B(C-g+r,v,p):p&&p()},center:function(x,v,p,y){B(Math.max(0,c.J(x)-c.Y()/2+(p||x.getBoundingClientRect().height/2)),v,y)},stop:u,moving:function(){return!!A},getY:c.N,getTopOf:c.J}}function d(c){return c&&"getComputedStyle"in window&&"smooth"===window.getComputedStyle(c)["scroll-behavior"]}if("undefined"===typeof window||!("document"in window))return{};var e=document.documentElement,f=b({body:document.scrollingElement||document.body,S:function(c){window.scrollTo(0,c)},N:a,Y:function(){return window.innerHeight||e.clientHeight},J:function(c){return c.getBoundingClientRect().top+a()-e.offsetTop}});f.ib=function(c,k,r){return b({body:c,S:function(t){c.scrollTop=t},N:function(){return c.scrollTop},Y:function(){return Math.min(c.clientHeight,window.innerHeight||e.clientHeight)},J:function(t){return t.offsetTop}},k,r)};if("addEventListener"in window&&!window.ob&&!d(document.body)){var n="history"in window&&"pushState"in history,w=n&&"scrollRestoration"in history;w&&(history.scrollRestoration="auto");window.addEventListener("load",function(){w&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(c){c.state&&"zenscrollY"in c.state&&f.S(c.state.hb)},!1));window.location.hash&&setTimeout(function(){var c=f.fb().ya;if(c){var k=document.getElementById(window.location.href.split("#")[1]);k&&(c=Math.max(0,f.J(k)-c),k=f.N()-c,0<=k&&9>k&&window.scrollTo(0,c))}},9)},!1);var h=/(^|\s)noZensmooth(\s|$)/;window.addEventListener("click",function(c){for(var k=c.target;k&&"A"!==k.tagName;)k=k.parentNode;if(!(!k||1!==c.which||c.shiftKey||c.metaKey||c.ctrlKey||c.altKey)){if(w){var r=history.state&&"object"===typeof history.state?history.state:{};r.hb=f.N();try{history.replaceState(r,"")}catch(B){}}var t=k.getAttribute("href")||"";if(0===t.indexOf("#")&&!h.test(k.className)){k=0;r=document.getElementById(t.substring(1));if("#"!==t){if(!r)return;k=f.J(r)}c.preventDefault();c=function(){window.location=t};if(r=f.fb().ya)k=Math.max(0,k-r),n&&(c=function(){history.pushState({},"",t)});f.S(k,null,c)}}},!1)}return f}
var ocf=function(){function a(h){this.A=n({},{Ea:null,Fa:null,ua:null,ta:null,ba:!1,za:!1,Ra:[],ea:"Close",I:["overlay","button","escape"]},h);this.Ua()}function b(){this.B&&(this.B.style.width=this.F.clientWidth+"px",this.B.style.left=this.F.offsetLeft+"px")}function d(){this.w=document.createElement("div");this.w.classList.add("tingle-modal");0!==this.A.I.length&&-1!==this.A.I.indexOf("overlay")||this.w.classList.add("tingle-modal--noOverlayClose");this.w.style.display="none";this.A.Ra.forEach(function(h){"string"===typeof h&&this.w.classList.add(h)},this);-1!==this.A.I.indexOf("button")&&(this.P=document.createElement("button"),this.P.type="button",this.P.classList.add("tingle-modal__close"),this.ka=document.createElement("span"),this.ka.classList.add("tingle-modal__closeIcon"),this.ka.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.la=document.createElement("span"),this.la.classList.add("tingle-modal__closeLabel"),this.la.innerHTML=this.A.ea,this.P.appendChild(this.ka),this.P.appendChild(this.la));this.F=document.createElement("div");this.F.classList.add("tingle-modal-box");this.ja=document.createElement("div");this.ja.classList.add("tingle-modal-box__title");this.F.appendChild(this.ja);this.O=document.createElement("div");this.O.classList.add("tingle-modal-box__content");this.F.appendChild(this.O);-1!==this.A.I.indexOf("button")&&this.w.appendChild(this.P);this.w.appendChild(this.F)}function e(h){-1!==this.A.I.indexOf("escape")&&27===h.which&&this.Ba()&&this.close()}function f(h){var c;if(c=-1!==this.A.I.indexOf("overlay")){for(c=h.target;(c=c.parentElement)&&!c.classList.contains("tingle-modal"););c=!c}c&&h.clientX<this.w.clientWidth&&this.close()}function n(){for(var h=1;h<arguments.length;h++)for(var c in arguments[h])arguments[h].hasOwnProperty(c)&&(arguments[0][c]=arguments[h][c]);return arguments[0]}var w=!1;a.prototype.Ua=function(){this.w||(d.call(this),this.U={Pa:this.close.bind(this),Qa:f.bind(this),resize:this.da.bind(this),Wa:e.bind(this)},-1!==this.A.I.indexOf("button")&&this.P.addEventListener("click",this.U.Pa),this.w.addEventListener("mousedown",this.U.Qa),window.addEventListener("resize",this.U.resize),document.addEventListener("keydown",this.U.Wa),document.body.insertBefore(this.w,document.body.firstChild),this.A.za&&this.La())};a.prototype.T=function(h){w=h};a.prototype.qa=function(){return w};a.prototype.Ba=function(){return!!this.w.classList.contains("tingle-modal--visible")};a.prototype.open=function(){if(!this.qa())return this.T(!0),"function"===typeof this.A.ua&&this.A.ua(),this.w.style.removeProperty?this.w.style.removeProperty("display"):this.w.style.removeAttribute("display"),this.ra=window.pageYOffset,document.body.classList.add("tingle-enabled"),document.body.style.top=-this.ra+"px",this.na(this.A.ba),this.w.classList.add("tingle-modal--visible"),"function"===typeof this.A.Fa&&this.A.Fa.call(this),this.T(!1),this.da(),this};a.prototype.close=function(){if(!this.qa()){this.T(!0);if("function"!==typeof this.A.ta||this.A.ta.call(this))document.body.classList.remove("tingle-enabled"),window.scrollTo({top:this.ra,behavior:"instant"}),document.body.style.top=null,this.w.classList.remove("tingle-modal--visible"),this.w.style.display="none","function"===typeof this.A.Ea&&this.A.Ea.call(this);this.T(!1)}};a.prototype.Ia=function(h,c){var k=document.createElement("div");k.className="tingle-modal-box-content";"string"===typeof c?k.innerHTML=c:k.appendChild(c);h.innerHTML="";h.appendChild(k);this.Ba()&&this.da()};a.prototype.ab=function(h){this.M=h};a.prototype.$a=function(h){this.Ia(this.O,h);this.M&&(h=document.createElement("div"),h.className="tingle-modal-box-icon",this.O.prepend(h),h.innerHTML=this.M);this.M=void 0};a.prototype.bb=function(h){this.Ia(this.ja,h)};a.prototype.La=function(){this.B=document.createElement("div");this.B.classList.add("tingle-modal-box__footer");this.F.appendChild(this.B)};a.prototype.na=function(h){this.Z()||(h=!1);h?this.F.contains(this.B)&&(this.F.removeChild(this.B),this.w.appendChild(this.B),this.B.classList.add("tingle-modal-box__footer--sticky"),b.call(this),this.O.style["padding-bottom"]=this.B.clientHeight+20+"px"):this.B&&!this.F.contains(this.B)&&(this.w.removeChild(this.B),this.F.appendChild(this.B),this.B.style.width="auto",this.B.style.left="",this.O.style["padding-bottom"]="",this.B.classList.remove("tingle-modal-box__footer--sticky"))};a.prototype.Ma=function(h,c,k){var r=document.createElement("button");r.innerHTML=h;r.addEventListener("click",k);"string"===typeof c&&c.length&&c.split(" ").forEach(function(t){r.classList.add(t)});this.B.appendChild(r)};a.prototype.resize=function(){console.warn("Resize is deprecated and will be removed in version 1.0")};a.prototype.Z=function(){return this.F.clientHeight>=window.innerHeight};a.prototype.da=function(){this.w.classList.contains("tingle-modal--visible")&&(this.Z()?this.w.classList.add("tingle-modal--overflow"):this.w.classList.remove("tingle-modal--overflow"),!this.Z()&&this.A.ba?this.na(!1):this.Z()&&this.A.ba&&(b.call(this),this.na(!0)))};return{w:a}}();function ocg(a){function b(){return!!c.parentNode}function d(){y++;u=[];A="";p=void 0;var l=c.parentNode;l&&l.removeChild(c);g.classList.remove("open")}function e(){function l(){var F=h.documentElement,G=F.clientTop||h.body.clientTop||0,E=F.clientLeft||h.body.clientLeft||0,D=window.pageYOffset||F.scrollTop;F=window.pageXOffset||F.scrollLeft;z=g.getBoundingClientRect();G=z.top+g.offsetHeight+D-G;E=z.left+F-E;k.top=G+"px";k.left=E+"px";m=window.innerHeight-(z.top+g.offsetHeight);0>m&&(m=0);k.top=G+"px";k.bottom="";k.left=E+"px";k.maxHeight=m+"px"}if(b()){k.height="auto";k.width=g.offsetWidth+"px";var m=0,z;l();l();a.xa&&z&&a.xa(g,z,c,m)}}function f(){function l(E){var D=h.createElement("div");D.textContent=E;return D}function m(E){var D=h.createElement("div");D.textContent=E.label||"";return D}for(;c.firstChild;)c.removeChild(c.firstChild);g.classList.add("open");a.Ha&&(m=a.Ha);a.Za&&(l=a.Za);var z=h.createDocumentFragment(),F="#9?$";u.forEach(function(E){if(E.group&&E.group!==F){F=E.group;var D=l(E.group,A);D&&(D.className+=" group",z.appendChild(D))}if(D=m(E,A))D.addEventListener("click",function(H){a.Ga(E,g);d();H.preventDefault();H.stopPropagation()}),E===p&&(D.className+=" selected"),z.appendChild(D)});c.appendChild(z);if(1>u.length)if(a.ga){var G=h.createElement("div");G.className="empty";G.textContent=a.ga;c.appendChild(G)}else{d();return}c.parentNode||h.body.appendChild(c);e();n()}function n(){var l=c.getElementsByClassName("selected");if(0<l.length){l=l[0];var m=l.previousElementSibling;m&&-1!==m.className.indexOf("group")&&!m.previousElementSibling&&(l=m);l.offsetTop<c.scrollTop?c.scrollTop=l.offsetTop:(l=l.offsetTop+l.offsetHeight,m=c.scrollTop+c.offsetHeight,l>m&&(c.scrollTop+=l-m))}}function w(l){var m=++y,z=g.value||g.innerText;z.length>=x||1===l?(C&&window.clearTimeout(C),C=window.setTimeout(function(){a.fetch(z,function(F){y===m&&F&&(u=F,A=z,p=0<u.length?u[0]:void 0,f())},0)},0===l?t:0)):d()}var h=document,c=h.createElement("div"),k=c.style,r=navigator.userAgent,t=a.jb||0,B=a.Xa||!1;r=-1!==r.indexOf("Firefox")&&-1!==r.indexOf("Mobile")?"input":"keyup";var u=[],A="",x=2,v=a.gb,p,y=0,C;void 0!==a.Da&&(x=a.Da);if(!a.input)throw Error("input undefined");var g=a.input;c.className="autocomplete "+(a.className||"");k.position="absolute";var q=!1;mobileBrowser&&(c.onscroll=function(){q=!0;g.blur()});c.addEventListener("mousedown",function(l){l.stopPropagation();l.preventDefault()});c.addEventListener("focus",function(){return g.focus()});g.addEventListener("keydown",function(l){var m=l.which||l.keyCode||0;if(38===m||40===m||27===m){var z=b();if(27===m)d();else{if(!b||1>u.length)return;if(38===m)if(1>u.length)p=void 0;else if(p===u[0])p=u[u.length-1];else for(m=u.length-1;0<m;m--){if(p===u[m]||1===m){p=u[m-1];break}}else if(1>u.length&&(p=void 0),p&&p!==u[u.length-1])for(m=0;m<u.length-1;m++){if(p===u[m]){p=u[m+1];break}}else p=u[0];f()}l.preventDefault();z&&l.stopPropagation()}else if(13===m||9===m)p&&(a.Ga(p,g),d()),B&&l.preventDefault()});g.addEventListener(r,function(l){l=l.which||l.keyCode||0;[38,13,27,39,37,16,17,18,20,91,9,112,113,114,115,116,117,118,119,120,121,122,123].includes(l)||40===l&&b()||w(0)});g.addEventListener("blur",function(){q?q=!1:setTimeout(function(){h.activeElement!==g&&d()},200)});g.addEventListener("focus",function(){v&&w(1)});window.addEventListener("resize",function(){b()&&f()});h.addEventListener("scroll",function(l){l.target!==c?b()&&f():l.preventDefault()},!0)}String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};var och={1:"\u2757",2:"\u2714\ufe0f",3:"\u2753",4:"\u2049\ufe0f",5:"\ud83d\uddd1\ufe0f",6:"",7:"\u2699\ufe0f",8:"\u26d4"},oci={e:"ק",r:"ר",t:"א",y:"ט",u:"ו",i:"ן",o:"ם",p:"פ",a:"ש",s:"ד",d:"ג",f:"כ",g:"ע",h:"י",j:"ח",k:"ל",l:"ך",";":"ף",z:"ז",x:"ס",c:"ב",v:"ה",b:"נ",n:"מ",m:"צ",",":"ת",".":"ץ"},ocj={},ock=void 0,ocl="א ב ג ד ה ו ז ח ט י כ ל מ נ ס ע פ צ ק ר ש ת שונות".split(" ");function ocm(a){return Array.prototype.map.call(a,function(b){var d=oci[b];return d?d:b}).join("")}
function ocn(){var a=void 0===a?{}:a;a.title="בעיה בשימוש במחשבון";a.content="אנא בחרו פריט אחד בכל תיבה, ורק לאחר מכן הוסיפו לרשימה";a.M=1;a.buttons=[{text:"אישור",wa:!0,click:function(){},va:"tingle-btn--primary"}];oco(a)}function ocp(a){var b=new ocf.w({za:!0,ba:!1,I:["overlay","button","escape"],ea:a.ea||"ביטול"});a.title&&b.bb(a.title);a.M&&b.ab(och[a.M]);b.$a(a.content||"");var d={};a=oc(a.buttons);for(var e=a.next();!e.done;d={K:d.K},e=a.next())d.K=e.value,(e=d.K.va||"")&&(e+=" "),e+="tingle-btn",b.Ma(d.K.text,e,function(f){return function(){f.K.click&&f.K.click();f.K.wa&&b.close()}}(d));b.open();return b}
function oco(a){a.buttons||(a.buttons=[{wa:!0,text:"אישור",va:"tingle-btn--primary"}]);void 0===ocj.alert&&(ocj.alert=[]);ocj.alert.push(ocp(a))}function ocq(a,b,d){var e=new XMLHttpRequest;e.addEventListener("load",function(f){4===f.target.readyState&&d(f.target.responseText,0,f.target.responseXML)});b=ocr(b);e.open("POST",a);e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");e.send(b)}function ocs(a,b,d){ocq(a,b,d)}
function ocr(a){var b=[],d;for(d in a)b.push(d+"="+a[d]);return b.join("&")}function oct(a){var b=document.createElement("div");b.className="animated-calculator-button";b.innerHTML=a.caption||"";a.onclick&&(b.onclick=a.onclick);return b}
function ocu(a){var b=document.createElement("div");b.className="quick-nav-container";a.V||(a.V=Array.from({length:a.Ja-a.from+1},function(f,n){return n+a.from}));var d={};for(d.H=a.from;d.H<=a.Ja;d={H:d.H},d.H++){var e=document.createElement("div");e.className="quick-nav-square";e.innerHTML=a.V[d.H-a.from];e.onclick=function(f){return function(){ocv(b,f.H-a.from);a.onclick(a.V[f.H-a.from],f.H,f.H-a.from)}}(d);b.appendChild(e)}return b}function ocw(a){a.V=ocl;a.from=0;a.Ja=21;return ocu(a)}
function ocv(a,b){Array.prototype.map.call(a.childNodes,function(d){d.classList.remove("selected")});a.childNodes[b].classList.add("selected")}function ocx(a){a.aa.reload();void 0!==a.fa?a.aa.cb(a.fa):void 0!==a.Sa&&a.aa.eb(a.Sa)}function ocy(a){a.innerHTML="<option disabled value='' data-role='placeholder'></option>"}function ocz(){var a=document.createElement("select");ocy(a);return a}function ocA(a,b){ocy(a);for(var d in b){var e=b[d];a.options[a.options.length]=new Option(e.name,e.id)}}
function ocB(a){function b(f,n,w){var h=n.toLowerCase();h.length<f?w([]):w(a.items.filter(function(c){return-1!==c.label.toLowerCase().indexOf(h)}))}function d(f,n,w){function h(k){k=JSON.parse(k);k.map(function(r){r.label=r.n;r.cookie=r.i});w(k)}function c(k){k=a.Oa(k);w(k)}n=n.toLowerCase();n.length<f?w([]):ocs(a.sa,{term1:n,term2:ocm(n)},a.Oa?c:h)}var e=a.nb||2;ocg({input:a.input,Da:e,gb:!0,Ga:function(f,n){"DIV"===n.nodeName?n.innerHTML=f.label:n.value=f.label;n.blur();if(a.onclick)a.onclick(f.label,f.cookie)},fetch:a.sa?function(f,n){d(e,f,n)}:function(f,n){b(e,f,n)},Ha:function(f,n){var w=document.createElement("div");w.className="autocomplete-matched-item";var h=new RegExp(n,"gi");n=new RegExp(ocm(n),"gi");f=f.label.replace(h,function(c){return"<span class='autocomplete-highlight-term'>"+c+"</span>"});f=f.replace(n,function(c){return"<span class='autocomplete-highlight-term'>"+c+"</span>"});w.innerHTML="<span>"+f+"</span>";return w},ga:a.ga||"לא נמצאו פריטים המתאימים למילות החיפוש",xa:function(f,n,w,h){100>h&&(w.style.top="",w.style.bottom=window.innerHeight-n.bottom+f.offsetHeight+"px",w.style.maxHeight="140px")},Xa:!0})}function ocC(){var a=document.createElement("div");a.className="tab_selection_div";return a}function ocD(){var a=document.createElement("div");a.className="tab";return a}function ocE(a,b){a.appendChild(b)}
function ocF(a){var b=document.createElement("div");b.innerHTML=a.caption;b.className="tab_title";var d="tab_group_"+a.ca;b.classList.add(d);b.onclick=function(){a.pa.style.display="unset";Array.from(document.getElementsByClassName(d)).map(function(n){n.classList.remove("selected")});b.classList.add("selected");for(var e=oc(a.ia),f=e.next();!f.done;f=e.next())f.value.style.display="none";if(a.onclick)a.onclick(a.ca,b,a.caption)};return b}
function ocG(){var a={caption:"אנא בחרו מאכל",id:"food-name",placeholder:"הקלידו 2 אותיות מתוך שם המאכל"},b=document.createElement("div");b.className="animated-select-container";var d=document.createElement("div");d.className="animated-select-caption";d.innerHTML=a.caption;b.appendChild(d);if(-1<navigator.appVersion.toLowerCase().indexOf("edg")){d=document.createElement("div");d.className="animated-autocomplete-input animated-autocomplete-input-wrapper";var e=document.createElement("input");e.name="auto-complete-"+Math.random();e.className="auto-complete-field";e.addEventListener("focus",function(){setTimeout(function(){e.select()},1)});d.appendChild(e);b.appendChild(d)}else e=document.createElement("div"),e.className="animated-autocomplete-input",e.setAttribute("contentEditable",!0),e.addEventListener("focus",function(){setTimeout(function(){var f=e,n=document.createRange();n.selectNodeContents(f);f=window.getSelection();f.removeAllRanges();f.addRange(n)},150)}),e.addEventListener("keyup",function(){""===e.innerText.trim()&&(e.innerHTML="")}),b.appendChild(e);e.id=a.mb;e.setAttribute("placeholder",a.placeholder);return{R:b,Va:e}}
function ocH(a){var b=document.createElement("div");b.className="animated-select-container";var d=document.createElement("div");d.className="animated-select-caption";d.innerHTML=a.caption;b.appendChild(d);d=document.createElement("div");d.className="pure-css-select-wrapper";d.appendChild(a.select);var e=a.select;b.appendChild(d);a.lb=e;e.onchange=a.onchange;e.classList.add("pure_css_select");d={toggle:function(){},close:function(){},open:function(){},reload:function(){},Ta:function(){return e.options[e.selectedIndex].innerHTML},oa:function(f){0===e.options.length&&ocy(e);e.selectedIndex=0;e.options[0].innerHTML=f},cb:function(f){a.select.selectedIndex=f},eb:function(f){a.select.value=f},element:a.select};a.W&&d.oa(a.W);return{R:b,ma:d}}
function ocI(){var a=a||["animated-calendar-container","animated-popup-button-set-container","text-slider-container","animated-select-container","quick-nav-container"];a=oc(a);for(var b=a.next();!b.done;b=a.next())Array.prototype.map.call(document.getElementsByClassName(b.value),function(d){d.classList.add("popup_with_separator")})}
function ocJ(){function a(t,B,u){u=void 0===u?!0:u;for(var A=void 0,x=oc(t.X),v=x.next();!v.done;v=x.next()){v=v.value;var p=v.C,y=v.D;var C=document.createElement("div");C.classList.add(B||"");void 0===p&&(p="");void 0===y&&(y="");var g=document.createElement("div");g.classList.add("rotating-grid-table-narrow-form");"object"===typeof p?g.appendChild(p):g.innerHTML=p;p=document.createElement("div");p.classList.add("rotating-grid-table-wide-form");"object"===typeof y?p.appendChild(y):p.innerHTML=y;y=oc([g,p]);p=y.next().value;y=y.next().value;C.appendChild(p);C.appendChild(y);t.G&&C.classList.add(t.G);v.G&&C.classList.add(v.G);A||(A=C);u?h.insertBefore(C,c):h.appendChild(C)}return A}function b(){setTimeout(function(){mobileBrowser&&window.matchMedia("(orientation: portrait)").matches?h.classList.remove("wide_container"):h.classList.add("wide_container")},70)}function d(t){t.map(function(B){B.classList.add("rotating-grid-table-item-removed-item");setTimeout(function(){h.removeChild(B)},300)})}
function e(t){t=Array.from(h.getElementsByClassName(t));d(t)}var f=[{C:"",D:"שם המאכל"},{C:"",D:"GI ביחס<br/>ללחם לבן"},{C:"",D:"GI ביחס<br/>לגלוקוז"},{C:"",D:"רמת ה-GI"},{C:"",D:""},{C:"",D:""},{C:"",D:""}],n=[],w=[{C:"",D:""},{C:"",D:""},{C:"",D:""},{C:"",D:""},{C:"",D:""},{C:"",D:""},{C:"",D:""}],h=document.createElement("div");h.classList.add("rotating-grid-table-container");var c,k,r=0;(function(){a({X:f},"rotating-grid-table-title",!1);r=f.length;h.classList.add("cols-"+r);a({X:w},"rotating-grid-table-footer",!1);k=h.getElementsByClassName("rotating-grid-table-footer");c=k[0];for(var t=oc(n),B=t.next();!B.done;B=t.next())a({X:B.value},"rotating-grid-table-item"),c.previousSibling.childNodes[0].classList.add("last_item_in_narrow_group");window.addEventListener("orientationchange",b);b()})();this.Aa=h;this.Na=function(t){t=a(t,"rotating-grid-table-item");c.previousSibling.childNodes[0].classList.add("last_item_in_narrow_group");return t};this.L=function(t,B){return{C:t,D:B}};this.Ya=e;this.clear=function(){e("rotating-grid-table-item")};return this}(function(){function a(g){g=55>g?0:70>g?1:2;r[t]=g;switch(g){case 0:var q="gi_low";var l="נמוכה";break;case 1:q="gi_medium";l="בינונית";break;case 2:q="gi_high",l="גבוהה"}return{Ca:l,className:q,level:g}}function b(g){k[v]=[];g=JSON.parse(g);g.map(function(q){k[v][q.id]=q.name});k[v]=g;d()}function d(){ocA(u.element,k[v]);ocx({aa:u,fa:-1});u.oa("אנא בחר מאכל מהרשימה")}
function e(g){g=JSON.parse(g);g.map(function(){});ocA(x.element,g);ocx({aa:x,fa:-1});x.oa("אנא בחר קבוצת מאכלים")}function f(g){var q=[];q.push(A.L('<span class="food-name-narrow-container">'+y+"</span>",y));q[q.length-1].G="grid-food-name";q.push(A.L('<span class="food-white-bread-narrow-container"><span class="gi-prefix">רמת GI ביחס ללחם לבן:</span> <span class="gi-value">'+g.Ka+"</span></span>",g.Ka));q[q.length-1].G="grid-white-bread";q.push(A.L('<span class="food-glucose-narrow-container"><span class="gi-prefix">רמת GI ביחס לגלוקוז:</span> <span class="gi-value">'+g.ha+"</span></span>",g.ha));q[q.length-1].G="grid-glucose-value";g=a(g.ha);q.push(A.L('<span class="food-gi-level-narrow-container"><span class="gi-prefix">רמת GI:</span> <span class="gi-value '+g.className+'">'+g.Ca+"</span></span>",'<span class="'+g.className+'">'+g.Ca+"</span>"));q[q.length-1].G="grid-gi-value";r[t]=g.level;g=[];for(var l=t,m=0;2>m;m++){var z=document.createElement("div");z.innerHTML="הסר";z.className="remove-button";z.onclick=function(){delete r[l];A.Ya("line-number-"+l)};g.push(z)}m=document.createElement("div");m.innerHTML="הוסף מאכל נוסף";m.className="add-more-food-button";m.onclick=function(){var F=B;ock||(ock=oce());ock.to(F)};q.push(A.L(m,""));q[q.length-1].G="grid-add-one-more";q.push(A.L(g[0],g[1]));q[q.length-1].G="grid-remove";q.push(A.L("",""));q[q.length-1].G="grid-footer";q=A.Na({X:q,G:"line-number-"+t});mobileBrowser&&(ock||(ock=oce()),ock.to(q));t++}function n(){var g=u;ocy(g.element);g.reload();0===k[v].length?ocq("calculators/gi_calculator/get_food_list_for_category_json.php",{category:v},b):d()}function w(){p=parseInt(u.element.value);y=u.Ta()}function h(){void 0===p?ocn():ocs("calculators/gi_calculator/get_gi_values_for_food_id.php",{food_id:p},function(g){var q=p;g=JSON.parse(g).data;C[q]={Ka:g.white_bread_value,ha:g.glucose_value};f(C[q])})}function c(g,q){p=q;y=g}var k=[],r=[],t=0,B,u,A,x,v,p,y,C=[];(function(){try{B=document.getElementById("selection_panel");var g=ocC();B.appendChild(g);var q=ocD(),l=ocD(),m=ocD();ocE(g,ocF({ca:"mode",caption:"חיפוש",pa:q,ia:[l,m],onclick:function(){}}));ocE(g,ocF({ca:"mode",caption:"אלפבית",pa:l,ia:[q,m],onclick:function(){u=L}}));ocE(g,ocF({ca:"mode",caption:"קטגוריות",pa:m,ia:[l,q],onclick:function(){u=H}}));g.childNodes[0].click();B.appendChild(q);B.appendChild(l);B.appendChild(m);var z=ocG();q.appendChild(z.R);ocB({input:z.Va,sa:"calculators/gi_calculator/get_all_foods_for_search_term_json.php",onclick:c});var F={caption:"קבוצת מזון",W:"אנא בחר קבוצת מזון",select:ocz(),onchange:function(){v=parseInt(x.element.value);n()},name:"category_list"},G=ocH(F);m.appendChild(G.R);x=G.ma;ocs("calculators/gi_calculator/get_food_groups_json.php",{},e);var E={caption:"מאכל",W:"אנא בחר קבוצת מזון",select:ocz(),onchange:w,name:"food_list"},D=ocH(E);m.appendChild(D.R);var H=D.ma,I=document.createElement("div");I.className="animated-calendar-container-label";I.innerHTML="אנא בחר אות";l.appendChild(I);var N=ocw({onclick:function(J,M){v=[1,2,3,4,5,6,7,8,9,10,12,13,15,17,18,19,21,23,24,25,26,27][M];n()}});l.appendChild(N);var O={caption:"מאכל",W:"אנא בחר אות",select:ocz(),onchange:w,name:"food_list"},K=ocH(O);l.appendChild(K.R);var L=K.ma,P=oct({caption:"הוספה לרשימה",onclick:h});document.getElementById("calculator_buttons").appendChild(P);A=new ocJ;A.Aa.classList.add("wide_container");document.getElementById("gi_main_panel").appendChild(A.Aa);for(g=0;60>g;g++)k[g]=[];ocI()}catch(J){console.log(J.stack),console.log(J)}})();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)})})({})})()