'}),st=r({},$.DefaultType,{content:"(string|element|function)"}),at={HIDE:"hide"+A,HIDDEN:"hidden"+A,SHOW:"show"+A,SHOWN:"shown"+A,INSERTED:"inserted"+A,CLICK:"click"+A,FOCUSIN:"focusin"+A,FOCUSOUT:"focusout"+A,MOUSEENTER:"mouseenter"+A,MOUSELEAVE:"mouseleave"+A},ot=function(e){var t;function n(){return e.apply(this,arguments)||this}t=e,(i=n).prototype=Object.create(t.prototype),H(i.prototype.constructor=i,t);var i=n.prototype;return i.isWithContent=function(){return this.getTitle()||this._getContent()},i.addAttachmentClass=function(e){c.default(this.getTipElement()).addClass(tt+"-"+e)},i.getTipElement=function(){return this.tip=this.tip||c.default(this.config.template)[0],this.tip},i.setContent=function(){var e=c.default(this.getTipElement()),t=(this.setElementContent(e.find(".popover-header"),this.getTitle()),this._getContent());"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},i._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},i._cleanTipClass=function(){var e=c.default(this.getTipElement()),t=e.attr("class").match(it);null!==t&&0=this._offsets[n]&&(void 0===this._offsets[n+1]||e li > .active",wt=function(){function n(e){this._element=e}var e=n.prototype;return e.show=function(){var e,t,i,n,s,a,o=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&c.default(this._element).hasClass(bt)||c.default(this._element).hasClass("disabled")||this._element.hasAttribute("disabled")||(t=c.default(this._element).closest(".nav, .list-group")[0],i=u.getSelectorFromElement(this._element),t&&(s="UL"===t.nodeName||"OL"===t.nodeName?yt:".active",n=(n=c.default.makeArray(c.default(t).find(s)))[n.length-1]),s=c.default.Event("hide.bs.tab",{relatedTarget:this._element}),a=c.default.Event("show.bs.tab",{relatedTarget:n}),n&&c.default(n).trigger(s),c.default(this._element).trigger(a),a.isDefaultPrevented())||s.isDefaultPrevented()||(i&&(e=document.querySelector(i)),this._activate(this._element,t),a=function(){var e=c.default.Event("hidden.bs.tab",{relatedTarget:o._element}),t=c.default.Event("shown.bs.tab",{relatedTarget:n});c.default(n).trigger(e),c.default(o._element).trigger(t)},e?this._activate(e,e.parentNode,a):a())},e.dispose=function(){c.default.removeData(this._element,gt),this._element=null},e._activate=function(e,t,i){function n(){return s._transitionComplete(e,a,i)}var s=this,a=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?c.default(t).children(".active"):c.default(t).find(yt))[0],t=i&&a&&c.default(a).hasClass("fade");a&&t?(t=u.getTransitionDurationFromElement(a),c.default(a).removeClass("show").one(u.TRANSITION_END,n).emulateTransitionEnd(t)):n()},e._transitionComplete=function(e,t,i){t&&(c.default(t).removeClass(bt),(n=c.default(t.parentNode).find("> .dropdown-menu .active")[0])&&c.default(n).removeClass(bt),"tab"===t.getAttribute("role"))&&t.setAttribute("aria-selected",!1),c.default(e).addClass(bt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u.reflow(e),e.classList.contains("fade")&&e.classList.add("show");var n=e.parentNode;(n=n&&"LI"===n.nodeName?n.parentNode:n)&&c.default(n).hasClass("dropdown-menu")&&((t=c.default(e).closest(".dropdown")[0])&&(n=[].slice.call(t.querySelectorAll(".dropdown-toggle")),c.default(n).addClass(bt)),e.setAttribute("aria-expanded",!0)),i&&i()},n._jQueryInterface=function(i){return this.each(function(){var e=c.default(this),t=e.data(gt);if(t||(t=new n(this),e.data(gt,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},o(n,null,[{key:"VERSION",get:function(){return"4.6.2"}}]),n}(),O=(c.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),wt._jQueryInterface.call(c.default(this),"show")}),c.default.fn.tab=wt._jQueryInterface,c.default.fn.tab.Constructor=wt,c.default.fn.tab.noConflict=function(){return c.default.fn.tab=vt,wt._jQueryInterface},"toast"),xt="bs.toast",t="."+xt,Tt=c.default.fn[O],Et="show",Ct="click.dismiss"+t,St={animation:!0,autohide:!0,delay:500},_t={animation:"boolean",autohide:"boolean",delay:"number"},kt=function(){function n(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=n.prototype;return e.show=function(){var e,t=this,i=c.default.Event("show.bs.toast");c.default(this._element).trigger(i),i.isDefaultPrevented()||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),i=function(){t._element.classList.remove("showing"),t._element.classList.add(Et),c.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout(function(){t.hide()},t._config.delay))},this._element.classList.remove("hide"),u.reflow(this._element),this._element.classList.add("showing"),this._config.animation?(e=u.getTransitionDurationFromElement(this._element),c.default(this._element).one(u.TRANSITION_END,i).emulateTransitionEnd(e)):i())},e.hide=function(){var e;this._element.classList.contains(Et)&&(e=c.default.Event("hide.bs.toast"),c.default(this._element).trigger(e),e.isDefaultPrevented()||this._close())},e.dispose=function(){this._clearTimeout(),this._element.classList.contains(Et)&&this._element.classList.remove(Et),c.default(this._element).off(Ct),c.default.removeData(this._element,xt),this._element=null,this._config=null},e._getConfig=function(e){return e=r({},St,c.default(this._element).data(),"object"==typeof e&&e?e:{}),u.typeCheckConfig(O,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;c.default(this._element).on(Ct,'[data-dismiss="toast"]',function(){return e.hide()})},e._close=function(){function e(){i._element.classList.add("hide"),c.default(i._element).trigger("hidden.bs.toast")}var t,i=this;this._element.classList.remove(Et),this._config.animation?(t=u.getTransitionDurationFromElement(this._element),c.default(this._element).one(u.TRANSITION_END,e).emulateTransitionEnd(t)):e()},e._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},n._jQueryInterface=function(i){return this.each(function(){var e=c.default(this),t=e.data(xt);if(t||(t=new n(this,"object"==typeof i&&i),e.data(xt,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i](this)}})},o(n,null,[{key:"VERSION",get:function(){return"4.6.2"}},{key:"DefaultType",get:function(){return _t}},{key:"Default",get:function(){return St}}]),n}();c.default.fn[O]=kt._jQueryInterface,c.default.fn[O].Constructor=kt,c.default.fn[O].noConflict=function(){return c.default.fn[O]=Tt,kt._jQueryInterface},e.Alert=s,e.Button=d,e.Carousel=m,e.Collapse=w,e.Dropdown=C,e.Modal=Oe,e.Popover=ot,e.Scrollspy=mt,e.Tab=wt,e.Toast=kt,e.Tooltip=$,e.Util=u,Object.defineProperty(e,"__esModule",{value:!0})}); (function(t,e){"function"==typeof define&&define.amd?define([],function(){return e(t)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(t):t.Notiflix=e(t)})("undefined"==typeof global?"undefined"==typeof window?this:window:global,function(t){'use strict';if("undefined"==typeof t&&"undefined"==typeof t.document)return!1;var e,a,n,i,o,s="\n\nVisit documentation page to learn more: https://notiflix.github.io/documentation",r="-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif",l={Success:"Success",Failure:"Failure",Warning:"Warning",Info:"Info"},c={wrapID:"NotiflixNotifyWrap",overlayID:"NotiflixNotifyOverlay",width:"280px",position:"right-top",distance:"10px",opacity:1,borderRadius:"5px",rtl:!1,timeout:3e3,messageMaxLength:110,backOverlay:!1,backOverlayColor:"rgba(0,0,0,0.5)",plainText:!0,showOnlyTheLastOne:!1,clickToClose:!1,pauseOnHover:!0,ID:"NotiflixNotify",className:"notiflix-notify",zindex:4001,fontFamily:"Quicksand",fontSize:"13px",cssAnimation:!0,cssAnimationDuration:400,cssAnimationStyle:"fade",closeButton:!1,useIcon:!0,useFontAwesome:!1,fontAwesomeIconStyle:"basic",fontAwesomeIconSize:"34px",success:{background:"#32c682",textColor:"#fff",childClassName:"notiflix-notify-success",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-check-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(50,198,130,0.2)"},failure:{background:"#ff5549",textColor:"#fff",childClassName:"notiflix-notify-failure",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-times-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(255,85,73,0.2)"},warning:{background:"#eebf31",textColor:"#fff",childClassName:"notiflix-notify-warning",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-exclamation-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(238,191,49,0.2)"},info:{background:"#26c0d3",textColor:"#fff",childClassName:"notiflix-notify-info",notiflixIconColor:"rgba(0,0,0,0.2)",fontAwesomeClassName:"fas fa-info-circle",fontAwesomeIconColor:"rgba(0,0,0,0.2)",backOverlayColor:"rgba(38,192,211,0.2)"}},m={Success:"Success",Failure:"Failure",Warning:"Warning",Info:"Info"},p={ID:"NotiflixReportWrap",className:"notiflix-report",width:"320px",backgroundColor:"#f8f8f8",borderRadius:"25px",rtl:!1,zindex:4002,backOverlay:!0,backOverlayColor:"rgba(0,0,0,0.5)",backOverlayClickToClose:!1,fontFamily:"Quicksand",svgSize:"110px",plainText:!0,titleFontSize:"16px",titleMaxLength:34,messageFontSize:"13px",messageMaxLength:400,buttonFontSize:"14px",buttonMaxLength:34,cssAnimation:!0,cssAnimationDuration:360,cssAnimationStyle:"fade",success:{svgColor:"#32c682",titleColor:"#1e1e1e",messageColor:"#242424",buttonBackground:"#32c682",buttonColor:"#fff",backOverlayColor:"rgba(50,198,130,0.2)"},failure:{svgColor:"#ff5549",titleColor:"#1e1e1e",messageColor:"#242424",buttonBackground:"#ff5549",buttonColor:"#fff",backOverlayColor:"rgba(255,85,73,0.2)"},warning:{svgColor:"#eebf31",titleColor:"#1e1e1e",messageColor:"#242424",buttonBackground:"#eebf31",buttonColor:"#fff",backOverlayColor:"rgba(238,191,49,0.2)"},info:{svgColor:"#26c0d3",titleColor:"#1e1e1e",messageColor:"#242424",buttonBackground:"#26c0d3",buttonColor:"#fff",backOverlayColor:"rgba(38,192,211,0.2)"}},d={Show:"Show",Ask:"Ask",Prompt:"Prompt"},f={ID:"NotiflixConfirmWrap",className:"notiflix-confirm",width:"300px",zindex:4003,position:"center",distance:"10px",backgroundColor:"#f8f8f8",borderRadius:"25px",backOverlay:!0,backOverlayColor:"rgba(0,0,0,0.5)",rtl:!1,fontFamily:"Quicksand",cssAnimation:!0,cssAnimationDuration:300,cssAnimationStyle:"fade",plainText:!0,titleColor:"#32c682",titleFontSize:"16px",titleMaxLength:34,messageColor:"#1e1e1e",messageFontSize:"14px",messageMaxLength:110,buttonsFontSize:"15px",buttonsMaxLength:34,okButtonColor:"#f8f8f8",okButtonBackground:"#32c682",cancelButtonColor:"#f8f8f8",cancelButtonBackground:"#a9a9a9"},x={Standard:"Standard",Hourglass:"Hourglass",Circle:"Circle",Arrows:"Arrows",Dots:"Dots",Pulse:"Pulse",Custom:"Custom",Notiflix:"Notiflix"},g={ID:"NotiflixLoadingWrap",className:"notiflix-loading",zindex:4e3,backgroundColor:"rgba(0,0,0,0.8)",rtl:!1,fontFamily:"Quicksand",cssAnimation:!0,cssAnimationDuration:400,clickToClose:!1,customSvgUrl:null,customSvgCode:null,svgSize:"80px",svgColor:"#32c682",messageID:"NotiflixLoadingMessage",messageFontSize:"15px",messageMaxLength:34,messageColor:"#dcdcdc"},u={Standard:"Standard",Hourglass:"Hourglass",Circle:"Circle",Arrows:"Arrows",Dots:"Dots",Pulse:"Pulse"},b={ID:"NotiflixBlockWrap",querySelectorLimit:200,className:"notiflix-block",position:"absolute",zindex:1e3,backgroundColor:"rgba(255,255,255,0.9)",rtl:!1,fontFamily:"Quicksand",cssAnimation:!0,cssAnimationDuration:300,svgSize:"45px",svgColor:"#383838",messageFontSize:"14px",messageMaxLength:34,messageColor:"#383838"},y=function(t){return console.error("%c Notiflix Error ","padding:2px;border-radius:20px;color:#fff;background:#ff5549","\n"+t+s)},h=function(t){return console.log("%c Notiflix Info ","padding:2px;border-radius:20px;color:#fff;background:#26c0d3","\n"+t+s)},k=function(e){return e||(e="head"),null!==t.document[e]||(y("\nNotiflix needs to be appended to the \"<"+e+">\" element, but you called it before the \"<"+e+">\" element has been created."),!1)},w=function(e,a){if(!k("head"))return!1;if(null!==e()&&!t.document.getElementById(a)){var n=t.document.createElement("style");n.id=a,n.innerHTML=e(),t.document.head.appendChild(n)}},v=function(){var t={},e=!1,a=0;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],a++);for(var n=function(a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=e&&"[object Object]"===Object.prototype.toString.call(a[n])?v(t[n],a[n]):a[n])};a";return a},z=function(t,e){t||(t="110px"),e||(e="#ff5549");var a="";return a},S=function(t,e){t||(t="110px"),e||(e="#eebf31");var a="";return a},L=function(t,e){t||(t="110px"),e||(e="#26c0d3");var a="";return a},I=function(t,e){t||(t="60px"),e||(e="#32c682");var a="";return a},A=function(t,e){t||(t="60px"),e||(e="#32c682");var a="";return a},M=function(t,e){t||(t="60px"),e||(e="#32c682");var a="";return a},X=function(t,e){t||(t="60px"),e||(e="#32c682");var a="";return a},R=function(t,e){t||(t="60px"),e||(e="#32c682");var a="";return a},B=function(t,e){t||(t="60px"),e||(e="#32c682");var a="";return a},D=function(t,e,a){t||(t="60px"),e||(e="#f8f8f8"),a||(a="#32c682");var n="";return n},T=function(){return null},F=0,E=function(a,n,o,s){if(!k("body"))return!1;e||G.Notify.init({});var m=v(!0,e,{});if("object"==typeof o&&!Array.isArray(o)||"object"==typeof s&&!Array.isArray(s)){var p={};"object"==typeof o?p=o:"object"==typeof s&&(p=s),e=v(!0,e,p)}var d=e[a.toLocaleLowerCase("en")];F++,"string"!=typeof n&&(n="Notiflix "+a),e.plainText&&(n=N(n)),!e.plainText&&n.length>e.messageMaxLength&&(e=v(!0,e,{closeButton:!0,messageMaxLength:150}),n="Possible HTML Tags Error: The \"plainText\" option is \"false\" and the notification content length is more than the \"messageMaxLength\" option."),n.length>e.messageMaxLength&&(n=n.substring(0,e.messageMaxLength)+"..."),"shadow"===e.fontAwesomeIconStyle&&(d.fontAwesomeIconColor=d.background),e.cssAnimation||(e.cssAnimationDuration=0);var f=t.document.getElementById(c.wrapID)||t.document.createElement("div");if(f.id=c.wrapID,f.style.width=e.width,f.style.zIndex=e.zindex,f.style.opacity=e.opacity,"center-center"===e.position?(f.style.left=e.distance,f.style.top=e.distance,f.style.right=e.distance,f.style.bottom=e.distance,f.style.margin="auto",f.classList.add("nx-flex-center-center"),f.style.maxHeight="calc((100vh - "+e.distance+") - "+e.distance+")",f.style.display="flex",f.style.flexWrap="wrap",f.style.flexDirection="column",f.style.justifyContent="center",f.style.alignItems="center",f.style.pointerEvents="none"):"center-top"===e.position?(f.style.left=e.distance,f.style.right=e.distance,f.style.top=e.distance,f.style.bottom="auto",f.style.margin="auto"):"center-bottom"===e.position?(f.style.left=e.distance,f.style.right=e.distance,f.style.bottom=e.distance,f.style.top="auto",f.style.margin="auto"):"right-bottom"===e.position?(f.style.right=e.distance,f.style.bottom=e.distance,f.style.top="auto",f.style.left="auto"):"left-top"===e.position?(f.style.left=e.distance,f.style.top=e.distance,f.style.right="auto",f.style.bottom="auto"):"left-bottom"===e.position?(f.style.left=e.distance,f.style.bottom=e.distance,f.style.top="auto",f.style.right="auto"):(f.style.right=e.distance,f.style.top=e.distance,f.style.left="auto",f.style.bottom="auto"),e.backOverlay){var x=t.document.getElementById(c.overlayID)||t.document.createElement("div");x.id=c.overlayID,x.style.width="100%",x.style.height="100%",x.style.position="fixed",x.style.zIndex=e.zindex-1,x.style.left=0,x.style.top=0,x.style.right=0,x.style.bottom=0,x.style.background=d.backOverlayColor||e.backOverlayColor,x.className=e.cssAnimation?"nx-with-animation":"",x.style.animationDuration=e.cssAnimation?e.cssAnimationDuration+"ms":"",t.document.getElementById(c.overlayID)||t.document.body.appendChild(x)}t.document.getElementById(c.wrapID)||t.document.body.appendChild(f);var g=t.document.createElement("div");g.id=e.ID+"-"+F,g.className=e.className+" "+d.childClassName+" "+(e.cssAnimation?"nx-with-animation":"")+" "+(e.useIcon?"nx-with-icon":"")+" nx-"+e.cssAnimationStyle+" "+(e.closeButton&&"function"!=typeof o?"nx-with-close-button":"")+" "+("function"==typeof o?"nx-with-callback":"")+" "+(e.clickToClose?"nx-notify-click-to-close":""),g.style.fontSize=e.fontSize,g.style.color=d.textColor,g.style.background=d.background,g.style.borderRadius=e.borderRadius,g.style.pointerEvents="all",e.rtl&&(g.setAttribute("dir","rtl"),g.classList.add("nx-rtl-on")),g.style.fontFamily="\""+e.fontFamily+"\", "+r,e.cssAnimation&&(g.style.animationDuration=e.cssAnimationDuration+"ms");var u="";if(e.closeButton&&"function"!=typeof o&&(u=""),!e.useIcon)g.innerHTML=""+n+""+(e.closeButton?u:"");else if(e.useFontAwesome)g.innerHTML=""+n+""+(e.closeButton?u:"");else{var b="";a===l.Success?b="":a===l.Failure?b="":a===l.Warning?b="":a===l.Info&&(b=""),g.innerHTML=b+""+n+""+(e.closeButton?u:"")}if("left-bottom"===e.position||"right-bottom"===e.position){var y=t.document.getElementById(c.wrapID);y.insertBefore(g,y.firstChild)}else t.document.getElementById(c.wrapID).appendChild(g);var h=t.document.getElementById(g.id);if(h){var w,C,z=function(){h.classList.add("nx-remove");var e=t.document.getElementById(c.overlayID);e&&0>=f.childElementCount&&e.classList.add("nx-remove"),clearTimeout(w)},S=function(){if(h&&null!==h.parentNode&&h.parentNode.removeChild(h),0>=f.childElementCount&&null!==f.parentNode){f.parentNode.removeChild(f);var e=t.document.getElementById(c.overlayID);e&&null!==e.parentNode&&e.parentNode.removeChild(e)}clearTimeout(C)};if(e.closeButton&&"function"!=typeof o){var L=t.document.getElementById(g.id).querySelector("span.nx-close-button");L.addEventListener("click",function(){z();var t=setTimeout(function(){S(),clearTimeout(t)},e.cssAnimationDuration)})}if(("function"==typeof o||e.clickToClose)&&h.addEventListener("click",function(){"function"==typeof o&&o(),z();var t=setTimeout(function(){S(),clearTimeout(t)},e.cssAnimationDuration)}),!e.closeButton&&"function"!=typeof o){var I=function(){w=setTimeout(function(){z()},e.timeout),C=setTimeout(function(){S()},e.timeout+e.cssAnimationDuration)};I(),e.pauseOnHover&&(h.addEventListener("mouseenter",function(){h.classList.add("nx-paused"),clearTimeout(w),clearTimeout(C)}),h.addEventListener("mouseleave",function(){h.classList.remove("nx-paused"),I()}))}}if(e.showOnlyTheLastOne&&0 - Albert Einstein":e===m.Failure?i="\"Failure is simply the opportunity to begin again, this time more intelligently.\"
- Henry Ford":e===m.Warning?i="\"The peoples who want to live comfortably without producing and fatigue; they are doomed to lose their dignity, then liberty, and then independence and destiny.\"
- Mustafa Kemal Ataturk":e===m.Info&&(i="\"Knowledge rests not upon truth alone, but upon error also.\"
- Carl Gustav Jung")),"string"!=typeof o&&(o="Okay"),a.plainText&&(n=N(n),i=N(i),o=N(o)),a.plainText||(n.length>a.titleMaxLength&&(n="Possible HTML Tags Error",i="The \"plainText\" option is \"false\" and the title content length is more than the \"titleMaxLength\" option.",o="Okay"),i.length>a.messageMaxLength&&(n="Possible HTML Tags Error",i="The \"plainText\" option is \"false\" and the message content length is more than the \"messageMaxLength\" option.",o="Okay"),o.length>a.buttonMaxLength&&(n="Possible HTML Tags Error",i="The \"plainText\" option is \"false\" and the button content length is more than the \"buttonMaxLength\" option.",o="Okay")),n.length>a.titleMaxLength&&(n=n.substring(0,a.titleMaxLength)+"..."),i.length>a.messageMaxLength&&(i=i.substring(0,a.messageMaxLength)+"..."),o.length>a.buttonMaxLength&&(o=o.substring(0,a.buttonMaxLength)+"..."),a.cssAnimation||(a.cssAnimationDuration=0);var x=t.document.createElement("div");x.id=p.ID,x.className=a.className,x.style.zIndex=a.zindex,x.style.borderRadius=a.borderRadius,x.style.fontFamily="\""+a.fontFamily+"\", "+r,a.rtl&&(x.setAttribute("dir","rtl"),x.classList.add("nx-rtl-on")),x.style.display="flex",x.style.flexWrap="wrap",x.style.flexDirection="column",x.style.alignItems="center",x.style.justifyContent="center";var g="",u=!0===a.backOverlayClickToClose;a.backOverlay&&(g="");var b="";if(e===m.Success?b=C(a.svgSize,f.svgColor):e===m.Failure?b=z(a.svgSize,f.svgColor):e===m.Warning?b=S(a.svgSize,f.svgColor):e===m.Info&&(b=L(a.svgSize,f.svgColor)),x.innerHTML=g+"
",!t.document.getElementById(x.id)){t.document.body.appendChild(x);var y=function(){var e=t.document.getElementById(x.id);e.classList.add("nx-remove");var n=setTimeout(function(){null!==e.parentNode&&e.parentNode.removeChild(e),clearTimeout(n)},a.cssAnimationDuration)},h=t.document.getElementById("NXReportButton");if(h.addEventListener("click",function(){"function"==typeof s&&s(),y()}),g&&u){var w=t.document.querySelector(".nx-report-click-to-close");w.addEventListener("click",function(){y()})}}a=v(!0,a,c)},W=function(){return null},j=function(e,a,i,o,s,l,c,m,p){if(!k("body"))return!1;n||G.Confirm.init({});var x=v(!0,n,{});"object"!=typeof p||Array.isArray(p)||(n=v(!0,n,p)),"string"!=typeof a&&(a="Notiflix Confirm"),"string"!=typeof i&&(i="Do you agree with me?"),"string"!=typeof s&&(s="Yes"),"string"!=typeof l&&(l="No"),"function"!=typeof c&&(c=void 0),"function"!=typeof m&&(m=void 0),n.plainText&&(a=N(a),i=N(i),s=N(s),l=N(l)),n.plainText||(a.length>n.titleMaxLength&&(a="Possible HTML Tags Error",i="The \"plainText\" option is \"false\" and the title content length is more than \"titleMaxLength\" option.",s="Okay",l="..."),i.length>n.messageMaxLength&&(a="Possible HTML Tags Error",i="The \"plainText\" option is \"false\" and the message content length is more than \"messageMaxLength\" option.",s="Okay",l="..."),(s.length||l.length)>n.buttonsMaxLength&&(a="Possible HTML Tags Error",i="The \"plainText\" option is \"false\" and the buttons content length is more than \"buttonsMaxLength\" option.",s="Okay",l="...")),a.length>n.titleMaxLength&&(a=a.substring(0,n.titleMaxLength)+"..."),i.length>n.messageMaxLength&&(i=i.substring(0,n.messageMaxLength)+"..."),s.length>n.buttonsMaxLength&&(s=s.substring(0,n.buttonsMaxLength)+"..."),l.length>n.buttonsMaxLength&&(l=l.substring(0,n.buttonsMaxLength)+"..."),n.cssAnimation||(n.cssAnimationDuration=0);var g=t.document.createElement("div");g.id=f.ID,g.className=n.className+(n.cssAnimation?" nx-with-animation nx-"+n.cssAnimationStyle:""),g.style.zIndex=n.zindex,g.style.padding=n.distance,n.rtl&&(g.setAttribute("dir","rtl"),g.classList.add("nx-rtl-on"));var u="string"==typeof n.position?n.position.trim():"center";g.classList.add("nx-position-"+u),g.style.fontFamily="\""+n.fontFamily+"\", "+r;var b="";n.backOverlay&&(b="");var y="";"function"==typeof c&&(y=""+l+"");var h="",w=null,C=void 0;if(e===d.Ask||e===d.Prompt){w=o||"";var z=e===d.Ask?Math.ceil(1.5*w.length):200"}if(g.innerHTML=b+"
"),i.cssAnimation||(i.cssAnimationDuration=0);var d="";if(e===x.Standard)d=I(i.svgSize,i.svgColor);else if(e===x.Hourglass)d=A(i.svgSize,i.svgColor);else if(e===x.Circle)d=M(i.svgSize,i.svgColor);else if(e===x.Arrows)d=X(i.svgSize,i.svgColor);else if(e===x.Dots)d=R(i.svgSize,i.svgColor);else if(e===x.Pulse)d=B(i.svgSize,i.svgColor);else if(e===x.Custom&&null!==i.customSvgCode&&null===i.customSvgUrl)d=i.customSvgCode||"";else if(e===x.Custom&&null!==i.customSvgUrl&&null===i.customSvgCode)d="";else{if(e===x.Custom&&(null===i.customSvgUrl||null===i.customSvgCode))return y("You have to set a static SVG url to \"customSvgUrl\" option to use Loading Custom."),!1;d=D(i.svgSize,"#f8f8f8","#32c682")}var f=parseInt((i.svgSize||"").replace(/[^0-9]/g,"")),u=t.innerWidth,b=f>=u?u-40+"px":f+"px",h="
"+d+"
",w=t.document.createElement("div");if(w.id=g.ID,w.className=i.className+(i.cssAnimation?" nx-with-animation":"")+(i.clickToClose?" nx-loading-click-to-close":""),w.style.zIndex=i.zindex,w.style.background=i.backgroundColor,w.style.animationDuration=i.cssAnimationDuration+"ms",w.style.fontFamily="\""+i.fontFamily+"\", "+r,w.style.display="flex",w.style.flexWrap="wrap",w.style.flexDirection="column",w.style.alignItems="center",w.style.justifyContent="center",i.rtl&&(w.setAttribute("dir","rtl"),w.classList.add("nx-rtl-on")),w.innerHTML=h+p,!t.document.getElementById(w.id)&&(t.document.body.appendChild(w),i.clickToClose)){var C=t.document.getElementById(w.id);C.addEventListener("click",function(){w.classList.add("nx-remove");var t=setTimeout(function(){null!==w.parentNode&&(w.parentNode.removeChild(w),clearTimeout(t))},i.cssAnimationDuration)})}}else if(t.document.getElementById(g.ID))var z=t.document.getElementById(g.ID),S=setTimeout(function(){z.classList.add("nx-remove");var t=setTimeout(function(){null!==z.parentNode&&(z.parentNode.removeChild(z),clearTimeout(t))},i.cssAnimationDuration);clearTimeout(S)},s);i=v(!0,i,l)},q=function(e){"string"!=typeof e&&(e="");var a=t.document.getElementById(g.ID);if(a)if(0i.messageMaxLength?N(e).substring(0,i.messageMaxLength)+"...":N(e);var n=a.getElementsByTagName("p")[0];if(n)n.innerHTML=e;else{var o=t.document.createElement("p");o.id=i.messageID,o.className="nx-loading-message nx-loading-message-new",o.style.color=i.messageColor,o.style.fontSize=i.messageFontSize,o.innerHTML=e,a.appendChild(o)}}else y("Where is the new message?")},Y=function(){return null},U=0,Q=function(e,a,n,i,s,l){var c;if(Array.isArray(n)){if(1>n.length)return y("Array of HTMLElements should contains at least one HTMLElement."),!1;c=n}else if(Object.prototype.isPrototypeOf.call(NodeList.prototype,n)){if(1>n.length)return y("NodeListOf should contains at least one HTMLElement."),!1;c=Array.prototype.slice.call(n)}else{var m="string"!=typeof n||1>(n||"").length||1===(n||"").length&&("#"===(n||"")[0]||"."===(n||"")[0]);if(m)return y("The selector parameter must be a string and matches a specified CSS selector(s)."),!1;var p=t.document.querySelectorAll(n);if(1>p.length)return y("You called the \"Notiflix.Block...\" function with \""+n+"\" selector, but there is no such element(s) in the document."),!1;c=p}o||G.Block.init({});var d=v(!0,o,{});if("object"==typeof i&&!Array.isArray(i)||"object"==typeof s&&!Array.isArray(s)){var f={};"object"==typeof i?f=i:"object"==typeof s&&(f=s),o=v(!0,o,f)}var x="";"string"==typeof i&&0=w?w:c.length,z="nx-block-temporary-position";if(e){for(var S,L=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","html","head","title","script","style","iframe"],D=0;DT.length){var F="";a&&(a===u.Hourglass?F=A(o.svgSize,o.svgColor):a===u.Circle?F=M(o.svgSize,o.svgColor):a===u.Arrows?F=X(o.svgSize,o.svgColor):a===u.Dots?F=R(o.svgSize,o.svgColor):a===u.Pulse?F=B(o.svgSize,o.svgColor):F=I(o.svgSize,o.svgColor));var E=""+F+"",O="";0o.messageMaxLength?N(x).substring(0,o.messageMaxLength)+"...":N(x),O=""+x+""),U++;var H=t.document.createElement("div");H.id=b.ID+"-"+U,H.className=g+(o.cssAnimation?" nx-with-animation":""),H.style.position=o.position,H.style.zIndex=o.zindex,H.style.background=o.backgroundColor,H.style.animationDuration=o.cssAnimationDuration+"ms",H.style.fontFamily="\""+o.fontFamily+"\", "+r,H.style.display="flex",H.style.flexWrap="wrap",H.style.flexDirection="column",H.style.alignItems="center",H.style.justifyContent="center",o.rtl&&(H.setAttribute("dir","rtl"),H.classList.add("nx-rtl-on")),H.innerHTML=E+O;var W=t.getComputedStyle(S).getPropertyValue("position"),j="string"==typeof W?W.toLocaleLowerCase("en"):"relative",P=Math.round(1.25*parseInt(o.svgSize))+40,V=S.offsetHeight||0,q="";P>V&&(q="min-height:"+P+"px;");var Y="";Y=S.getAttribute("id")?"#"+S.getAttribute("id"):S.classList[0]?"."+S.classList[0]:(S.tagName||"").toLocaleLowerCase("en");var Q="",K=-1>=["absolute","relative","fixed","sticky"].indexOf(j);if(K||0"+Y+"."+z+"{"+Q+q+"}",Z=t.document.createRange();Z.selectNode(t.document.head);var $=Z.createContextualFragment(J);t.document.head.appendChild($),S.classList.add(z)}S.appendChild(H)}}}else var _=function(e){var a=setTimeout(function(){null!==e.parentNode&&e.parentNode.removeChild(e);var n=e.getAttribute("id"),i=t.document.getElementById("Style-"+n);i&&null!==i.parentNode&&i.parentNode.removeChild(i),clearTimeout(a)},o.cssAnimationDuration)},tt=function(t){if(t&&0\" or \"NodeListOf\" does not have a \"Block\" element to remove.")},et=function(t){var e=setTimeout(function(){t.classList.remove(z),clearTimeout(e)},o.cssAnimationDuration+300)},at=setTimeout(function(){for(var t,e=0;e")})}$(document).on("click",".blog-end-menu button",function(){event.preventDefault();var e=$(this).attr("data-id");$("html, body").animate({scrollTop:$(e).offset().top-$(".main-header").outerHeight(!0)-20},500)}),$(".blog-end-share-btn").click(function(){$(".share-modal").toggleClass("active")}),$(document).on("click",".open-common-modal",function(){$("common-modal").removeClass("active");var e=$(this).attr("data-id");$('.common-modal[id="'+e+'"]').addClass("active")}),$(document).on("click",".common-modal-bg, .common-modal-close",function(){$(".common-modal").removeClass("active")}),$(".faq-head").click(function(){$(this).parent().hasClass("active")?$(".faq-item").removeClass("active").find(".faq-content").stop().slideUp():($(".faq-item").removeClass("active").find(".faq-content").stop().slideUp(),$(this).parent().addClass("active").find(".faq-content").stop().slideDown())}),$(".testimonials-choose-doctor").click(function(){$(".choose-doctor-modal").toggleClass("active")}),$(".choose-doctor-btn").click(function(){$(this).parent().find(".choose-doctor-list").toggleClass("active")}),$(".choose-doctor-list label").click(function(){$(".testimonials-choose-doctor").html($(this).html()),$(".choose-doctor-modal").removeClass("active")}),$(document).on("click",".discount-btn",function(){$(".discount-btn-wrapper").addClass("active")}),$(document).on("click",".open-discount-call",function(){$(".discount-modal .call-us-list").addClass("active")})}),$(function(){var t=$("body"),i=$(".main-header-top").outerHeight(!0)+$(".main-header-middle").outerHeight(!0);$(window).on("scroll load",function(){var e=$(window).scrollTop();i{ window.location.reload();});function saveForm(e) { let form_id = $(e).data('form-id'); $('#' + form_id).submit(function (event) { event.preventDefault(); }); let form = $('#' + form_id); let serializedForm = new FormData(form[0]); if (!$(form)) { return; } $.ajax({ method: "POST", url: $(form).attr('action'), beforeSend: function () { Notiflix.Loading.standard(100); }, data: serializedForm, enctype: 'multipart/form-data', processData: false, contentType: false, cache: false, success: function (response) { Notiflix.Loading.remove(); form.find('label.error').remove(); let timeout = 5000; $('div,body').removeClass('loading'); if (response.status == true) { $('.error-input').removeClass('error-input'); if(response.message) { Notiflix.Notify.success(response.message, { position: 'center-top', timeout: response.timeout } ); } if(response.render) { $('body').append(response.render); if(response.login_render && response.login_render == 1) { $('.login').fadeOut(); $('.step-2').fadeIn(); } } setTimeout(function () { if (response.redirect != null) { window.location.href = response.redirect; } }, 1500); if(response.change_environment && response.change_environment == 1) { $('.login').fadeOut(); $('.next-steps').fadeIn(); } /*form.find('input[type=text],input[type=email], input[type=password], input[type=date], textarea').val('');*/ $('#agree').prop('checked', false); $('.common-modal').removeClass('active'); if(form.parents('.common-modal').attr('style') == 'display: block;') { form.parents('.common-modal').attr('style','display: none;') } } else { setTimeout(function () { if (response.redirect != null) window.location.href = response.redirect; },response.timeout); if (response.messages != null) { $.each(response.messages, function (ObjNames, ObjValues) { if(response.in_modal == 1) { Notiflix.Notify.failure(ObjValues[0], { position: 'center-top', timeout: response.timeout }) }else { if (ObjNames == 'agree') form.find("[name='" + ObjNames + "']").parent().find('.aggreement-checkbox').addClass('error-input'); else { form.find("[name='" + transformNameFormat(ObjNames) + "']").addClass('error-input'); let addErrorTemplate = ''; let formFinder = form.find("[name='" + transformNameFormat(ObjNames) + "']"); if(ObjNames == 'terms_and_conditions') { formFinder.before(addErrorTemplate); }else { formFinder.after(addErrorTemplate); } } } }); setTimeout(function () { $(".error-input").removeClass('error-input'); form.find('label.error').remove(); }, response.timeout); } else { Notiflix.Notify.failure(response.message, { position: 'center-top', timeout: response.timeout } ); } } },error:function (response) { Notiflix.Loading.remove(); } })}function scrollToElem(elem,form){ $('html, body').animate({ scrollTop: form.find(elem).parent().offset().top - $('.main-header').height() - 100 }, 1000);}function changeName(name){ let check_string = name.indexOf('.'); if(check_string === -1) return name; return name.replace('.','[') + "]"}function changeTypeOrder(data){ $('.basket-row-open,.basket-item-content,.basket-item-content .form-item').removeClass('d-none'); $('.basket-aside-payment').removeClass('d-none'); /*$('.basket-item-content.group-analyzes').fadeOut();*/ if($(data).val() == 'callcenter') { $('.basket-aside-payment').addClass('d-none'); $('.basket-aside-payment #cash').prop('checked',true); $('.basket-row-open,.basket-item-content').addClass('d-none'); $('.basket-item-content.group-analyzes .form-item').addClass('d-none'); $('.basket-item-content.group-analyzes').removeClass('d-none').fadeIn(); }}function newOrder(e,parentThat) { e.preventDefault(); let lang = $('html').attr('lang'); let form_id = $(parentThat).data('form-id'); $('#' + form_id).submit(function (event) { event.preventDefault(); }); let form = $('#' + form_id); let order_form = new FormData(form[0]); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') } }); $.ajax({ method: "POST", url: $(form).attr('action'), beforeSend: function () { Notiflix.Loading.standard(100); }, data: order_form, enctype: 'multipart/form-data', processData: false, contentType: false, cache: false, success: function (response) { form.find('label.error').remove(); form.find('label.error-basket').remove(); if (response.status == true) { window.location.href = response.redirect; } else { Notiflix.Loading.remove(); if (response.messages != null) { let keysMessages = Object.keys(response.messages); let neededNameInput = changeName(keysMessages[0]); $('.basket-row-open').addClass('active'); $('.basket-item-content').show(); scrollToElem("[name='" + neededNameInput + "']",form); $.each(response.messages, function (ObjNames, ObjValues) { if (ObjNames == 'agree') { form.find("[name='" + ObjNames + "']").parent().find('.aggreement-checkbox').addClass('error-input'); } else { let newObjname = changeName(ObjNames); form.find("[name='" + newObjname + "']").addClass('error-input'); form.find("[name='" + newObjname + "']").after(''); } }); setTimeout(function () { $(".error-input").removeClass('error-input'); form.find('label.error').remove(); form.find('label.error-basket').remove(); }, 12000); } else { Notiflix.Notify.failure(response.message, { timeout: 4000 } ); } } }, error: function () { Notiflix.Loading.remove(); } });}function documentSort(data){ let form = $(data).parents('form'); let serializedForm = new FormData(form[0]); if (!$(form)) return; setLoader('body'); $.ajax({ method: "POST", url: $(form).attr('action'), data: serializedForm, enctype: 'multipart/form-data', processData: false, contentType: false, cache: false, success: function (response) { $('body').removeClass('loading'); if (response.status == true) { $('.documents-wrapper').html(response.view) } } });}(function($) { $.fn.getAttributes = function () { var elem = this, attr = {}; if(elem && elem.length) $.each(elem.get(0).attributes, function(v,n) { n = n.nodeName||n.name; v = elem.attr(n); if(v != undefined && v !== false && n.includes('data')) attr[n] = v }); return attr; }})(jQuery);function refreshData(data,type='order'){ let attributes = $(data).getAttributes(); let data_id = $(data).data('id'); let token = $('input[name=_token]').val(); let lang = $('html').attr('lang'); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': token } }); $.ajax({ method: "POST", url: '/'+lang+'/refresh-'+type, beforeSend: function () { setLoader('body'); }, data:{ params:attributes, }, success: function (response) { removeLoader('body'); if (response.status == true) { /* window.location.reload();*/ $('.open-cart-modal span').text(response.cart_count); Notiflix.Notify.success(response.message, { timeout: 4000 } ); }else if(response.status == false) { Notiflix.Notify.failure(response.message, { timeout: 4000 } ); } }, });}function clearDataSelect(data,wrapper){ let dataSelect = $(wrapper + ' .form-item[data-select] select'); let indexOfElement = dataSelect.index(data); for(let i = indexOfElement+1;i 0) { let formatted = [ (Math.floor(seconds / 60)).toString().padStart(2, '0'), (seconds % 60).toString().padStart(2, '0') ].join(' : '); $(timeWrapperClass).text('(' + formatted + ')'); timer = setTimeout(tick, 1000); }else { $(timeWrapperClass).parents('button').removeAttr('disabled'); $(timeWrapperClass).remove(); } }, 1000);};$( document ).ready(function() { $(window).on('load',function(){ setTimeout(()=>{ let action = '/get-meta-scripts'; simpleAjaxTemplate(function(response){ $('head').prepend(response.after_head); $('body').prepend(response.after_body_start); $('body').append(response.before_body_end); },action); },1000); });});