diff --git a/assets/aos-23aa1fb8.css b/assets/aos-23aa1fb8.css deleted file mode 100644 index d140127..0000000 --- a/assets/aos-23aa1fb8.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,h5,h6,p{margin:0}ul{margin:0;padding:0;list-style:none}a{text-decoration:none}button{cursor:pointer}img{display:block;width:100%;height:100%}address{font-style:normal}@font-face{font-family:Inter;src:url(/project-recipes/assets/Inter-VariableFont_slnt_wght-b9a8e5e2.ttf) format("truetype")}html{scroll-behavior:smooth}body{font-family:Inter,sans-serif;color:#050505;transition-duration:.15s}body.dark-theme{background-color:#161616}.container{max-width:375px;margin:0 auto;padding:0 20px}@media screen and (min-width: 768px){.container{max-width:768px;padding:0 32px}}@media screen and (min-width: 1280px){.container{max-width:1280px;padding:0 100px}}.section{padding:40px 0}@media screen and (min-width: 768px){.section{padding:64px 0}}.d-none{display:none!important}.is-hidden{position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;white-space:nowrap;clip-path:inset(100%);clip:rect(0 0 0 0);overflow:hidden}.hidden-backdrop{opacity:0;pointer-events:none;visibility:hidden;transition-duration:.3s}.hidden-modal{transform:translate(-50%,-50%) scale(.9)!important;-webkit-transform:translate(-50%,-50%) scale(.9)!important;-moz-transform:translate(-50%,-50%) scale(.9)!important;-ms-transform:translate(-50%,-50%) scale(.9)!important;-o-transform:translate(-50%,-50%) scale(.9)!important;transition-duration:.3s}.opened-backdrop{opacity:1;pointer-events:all;visibility:visible;transition-duration:.3s}.opened-modal{transform:translate(-50%,-50%) scale(1)!important;-webkit-transform:translate(-50%,-50%) scale(1)!important;-moz-transform:translate(-50%,-50%) scale(1)!important;-ms-transform:translate(-50%,-50%) scale(1)!important;-o-transform:translate(-50%,-50%) scale(1)!important;transition-duration:.3s}@font-face{font-family:Inter;src:url(/project-recipes/assets/Inter-VariableFont_slnt_wght-b9a8e5e2.ttf) format("truetype")}body.no-scroll{overflow-y:hidden;height:100%}.list{list-style:none}.header-container{padding:24px 20px 0}.dark-theme .logo{color:#f8f8f8}.logo{font-weight:600;font-size:16px;line-height:1.125;letter-spacing:-.64px;color:#050505}.logo>span{color:#9bb537}.header-nav{display:none}.checkbox-theme{position:absolute;top:-40px}.header-container{position:relative;display:flex;align-items:center;justify-content:space-between}.header-buttons{display:flex;gap:14px;align-items:center}.header-order-btn{stroke:#050505;fill:transparent;background-color:transparent;border-color:transparent;padding:0;font-family:none}.header-order-btn svg{transition-duration:.15s}.header-order-btn:hover svg{stroke:#9bb537}.dark-theme .header-order-btn{stroke:#f8f8f8}.header-menu-btn{stroke:#050505;background-color:transparent;border-color:transparent;padding:0;line-height:.5;font-family:none}.header-menu-btn:focus,.header-menu-btn:hover{color:#9bb537;transition:color .25s cubic-bezier(.4,0,.2,1)}.dark-theme .header-menu-btn{stroke:#f8f8f8}.mob-menu.is-open{display:flex;flex-direction:column;justify-content:space-between;left:30%;opacity:1;transition:left .25s ease,opacity 0ms ease}.mob-menu{opacity:0;display:flex;flex-direction:column;justify-content:space-between;position:fixed;z-index:3;top:0;left:100%;width:70%;height:100%;background:#9bb537;padding:20px;transition:left .25s ease,opacity 2s ease}.dark-theme .mob-menu{background:#050505}.mob-close-btn{position:absolute;top:20px;right:20px;background-color:transparent;border-color:transparent;stroke:#f8f8f8;padding:0;font-family:none}.mob-header-nav{text-align:center;margin-top:200px;margin-bottom:auto}.mob-nav-list-item{font-weight:500;font-size:12px;color:#f8f8f8}.mob-nav-list-item:focus,.mob-nav-list-item:hover{color:#fff;transition:color .25s cubic-bezier(.4,0,.2,1)}.active-page{color:#fff}.dark-theme .active-page{color:#9bb537}.mob-nav-list-item:not(:last-child){margin-bottom:14px}.nav-item:after{content:"";width:100%;height:2px;display:block;margin-top:5px;background-color:#9bb537;transition-duration:.3s;transform:scaleX(0);-webkit-transform:scaleX(0);-moz-transform:scaleX(0);-ms-transform:scaleX(0);-o-transform:scaleX(0);transform-origin:left}.nav-item:hover:after{transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}@media screen and (min-width: 768px){.header-container{padding:30px 32px 0;display:flex;align-items:center;justify-content:space-between;margin:0 auto}.mob-menu{display:none}.checkbox-theme{position:relative;top:unset}.header-buttons{gap:18px}.header-nav{display:inline-block}.header-menu-btn{display:none}.logo{font-size:18px;font-style:normal;font-weight:600;line-height:1.11;letter-spacing:-.72px}.nav-list{display:flex;gap:16px}.nav-list-item{position:relative;font-size:12px;font-style:normal;font-weight:400;line-height:normal;color:#050505;padding:10px 0}.dark-theme .nav-list-item{color:#f8f8f8}.dark-theme .nav-list-item.active-page,.active-page{color:#9bb537}}@media screen and (min-width: 1280px){.header-container{max-width:1080px;padding:42px 0 0}.nav-list-item{font-weight:500}}.hero{max-width:375px;padding:90px 20px 0;overflow:hidden}@media screen and (min-width: 768px){.hero{max-width:768px;padding:90px 32px 0}}@media screen and (min-width: 1280px){.hero{max-width:1280px;padding:90px 100px 0}}.hero-container{display:flex;flex-direction:column}@media screen and (min-width: 1280px){.hero-container{flex-direction:row;gap:32px}}.hero-text-wrap{width:335px;margin-bottom:48px}@media screen and (min-width: 768px){.hero-text-wrap{width:446px;margin-bottom:64px}}@media screen and (min-width: 1280px){.hero-text-wrap{margin-top:65px}}.hero-title{font-family:Inter,sans-serif;font-size:26px;text-transform:uppercase;font-weight:600;margin-bottom:14px;line-height:120%}.hero-title .hero-item{font-style:oblique;font-weight:400;color:#9bb537}@media screen and (min-width: 768px){.hero-title{font-size:36px;margin-bottom:16px}}@media screen and (min-width: 1280px){.hero-title{width:446px}}.dark-theme .hero-title{color:#f8f8f8}.hero-text{font-size:14px;font-weight:400;margin-bottom:28px;line-height:1.3em}@media screen and (min-width: 768px){.hero-text{font-size:16px;margin-bottom:32px;width:408px}}.dark-theme .hero-text{color:#f8f8f8}.hero-btn{width:111px;height:37px;font-size:14px;border:1px solid #9bb537;background-color:#f8f8f8;color:#050505;font-weight:500;border-radius:12px;padding:10px 20px;transition:background-color,color,.25s cubic-bezier(.4,0,.2,1)}.hero-btn:focus,.hero-btn:hover{background-color:#9bb537;color:#f8f8f8}@media screen and (min-width: 768px){.hero-btn{width:127px;height:45px;font-size:15px;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}}.dark-theme .hero-btn{color:#f8f8f8;background-color:#161616;transition:background-color,color,.25s cubic-bezier(.4,0,.2,1)}.dark-theme .hero-btn:focus,.dark-theme .hero-btn:hover{background-color:#9bb537;color:#f8f8f8}.hero-img-wrap{display:flex;flex-direction:row;width:497px;height:302px}@media screen and (min-width: 768px){.hero-img-wrap{width:871px;height:468px}}.swiper-slide-wrp{display:flex;gap:16px}.cook-card-wrap{width:80px}.cook-card-wrap .cook-card{border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;object-fit:cover}@media screen and (min-width: 768px){.cook-card-wrap{width:137px;height:442px}}.dish-card-wrap{background-color:#050505;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;width:185px;height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center}.dish-card-wrap .dish-card{object-fit:contain;width:157px;height:142px;margin-bottom:10px}@media screen and (min-width: 768px){.dish-card-wrap .dish-card{width:262px;height:262px}}.dish-card-wrap .dish-name{font-size:10px;font-weight:500;line-height:1.16em;text-transform:uppercase;color:#f8f8f880;margin-bottom:8px;width:156px;text-align:center}@media screen and (min-width: 768px){.dish-card-wrap .dish-name{width:300px;font-size:14px}}.dish-card-wrap .dish-area{font-size:8px;color:#f8f8f833}@media screen and (min-width: 768px){.dish-card-wrap .dish-area{font-size:12px}}@media screen and (min-width: 768px){.dish-card-wrap{width:351px;height:442px}}.dish-big-wrap{background-color:#050505;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;width:185px;height:280px;margin-right:16px;overflow:hidden}.dish-big-wrap .dish-big{display:block;height:150%;object-fit:cover;object-position:50% 10%}@media screen and (min-width: 768px){.dish-big-wrap{height:442px;width:351px}}.swiper-pagination-horizontal{margin:-10px -60px!important}@media screen and (min-width: 768px){.swiper-pagination-horizontal{margin:-10px -110px!important}}span.swiper-pagination-bullet{opacity:1;background-color:#050505cc}.dark-theme span.swiper-pagination-bullet{opacity:1;background-color:#f8f8f8}span.swiper-pagination-bullet-active,.dark-theme span.swiper-pagination-bullet-active{background:#9bb537;opacity:1}.catalog-container{margin-top:80px}@media screen and (min-width: 768px){.catalog-container{display:flex;justify-content:center}}@media screen and (min-width: 1280px){.catalog-container{margin-top:100px}}@media screen and (min-width: 768px) and (max-width: 1280px){.left-column{margin-right:32px}}@media screen and (min-width: 768px){.left-column{margin-top:26px}}@media screen and (min-width: 1280px){.left-column{margin-top:24px}}.categories>button{padding:13px 28px;border-radius:15px;border:1px solid rgba(5,5,5,.2);background-color:inherit;color:#05050580;font-family:inherit;font-size:18px;font-style:normal;font-weight:500;line-height:normal}.categories>button:hover,.categories>button:focus,.categories>button.active-category{color:#f8f8f8;background-color:#9bb537;border-color:#9bb537}.dark-theme .categories>button{border-color:#fff3;color:#f8f8f8}.categories ul{margin-top:24px;height:198px;overflow-y:scroll}.categories ul::-webkit-scrollbar{max-width:6px}.categories ul::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.categories ul::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.categories ul::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}@media screen and (min-width: 768px){.categories ul{margin-top:30px;width:176px;height:416px}}@media screen and (min-width: 1280px){.categories ul{margin-top:42px;width:235px}}.dark-theme .categories ul::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .categories ul::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.categories li{list-style:none;margin:0;padding:0}.categories li:not(:first-child){margin-top:24px}.categories li button{margin:0;padding:0;border:0;background-color:inherit;gap:24px;color:#0505054d;font-family:inherit;font-size:16px;font-weight:500;line-height:1.25;transition-duration:.15s}.dark-theme .categories li button{color:#ffffff4d}.categories li button:hover,.categories li button:focus,.categories li button.active-category{color:#9bb537}.all-categories-btn{transition-duration:.15s}.section-popular-recipes{margin-top:40px}.popular-recipes-title{font-weight:600;font-size:18px;line-height:1.3333333333;margin-bottom:20px}.gallery-popular-recipes{flex-direction:column;gap:24px;display:flex}.popular-recipes-list{flex-flow:row;align-items:center;display:flex;column-gap:16px;cursor:pointer;border-radius:8px;transition-duration:.3s;max-width:235px}.popular-recipes-list:is(:hover,:focus){scale:1.01;-webkit-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);-moz-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);box-shadow:-12px 12px 5px #0505054d}.dark-theme .popular-recipes-list:is(:hover,:focus){scale:1.01;-webkit-box-shadow:0px 0px 35px -4px rgb(155,181,55);-moz-box-shadow:0px 0px 35px -4px rgb(155,181,55);box-shadow:0 0 35px -4px #9bb537}.popular-img{width:64px;height:64px;border-radius:8px;margin-left:16px}.popular-title{font-size:14px;font-weight:600;line-height:1.2857142857;text-transform:uppercase;margin-bottom:8px;text-overflow:ellipsis;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.popular-recipes-text{text-overflow:ellipsis;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;font-size:12px;line-height:1.6;display:-webkit-box;overflow:hidden;color:#050505cc}.dark-theme .popular-title{color:#f8f8f8}.dark-theme .popular-recipes-text{color:#ffffff80}.dark-theme .popular-recipes-title{color:#f8f8f8}@media screen and (min-width: 768px){.section-popular-recipes{margin-top:64px}.popular-recipes-title{margin-bottom:32px}.popular-recipes-text{font-size:10px;line-height:1.4}.popular-img{margin-left:8px}}@media screen and (min-width: 768px) and (max-width: 1280px){.gallery-popular-recipes{gap:16px}.popular-img{width:48px;height:48px}.popular-recipes-list{column-gap:8px}}@media screen and (min-width: 1280px){.section-popular-recipes{margin-top:40px}.gallery-popular-recipes{gap:32px}.popular-img{margin-left:0}}.wrap-recipes-list{position:relative;margin-top:20px;margin-bottom:40px;min-height:2130px}@media screen and (min-width: 768px){.wrap-recipes-list{margin-top:14px;margin-bottom:64px;min-height:1104px}}@media screen and (min-width: 1280px){.wrap-recipes-list{min-height:957px;margin-bottom:0}}.wrap-recipes-list .recipe-list{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px}@media screen and (min-width: 768px){.wrap-recipes-list .recipe-list{flex-direction:row;gap:16px;flex-wrap:wrap}}@media screen and (min-width: 1280px){.wrap-recipes-list .recipe-list{gap:20px 16px;width:782px;margin-left:auto}}.recipe-item{border-radius:8px;width:335px;height:335px;position:relative;overflow:hidden;transition-duration:.3s;margin-top:0!important}.recipe-item:is(:hover,:focus){scale:1.01;-webkit-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);-moz-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);box-shadow:-12px 12px 5px #0505054d}.dark-theme .recipe-item:is(:hover,:focus){-webkit-box-shadow:0px 0px 35px -4px rgb(155,181,55);-moz-box-shadow:0px 0px 35px -4px rgb(155,181,55);box-shadow:0 0 35px -4px #9bb537}@media screen and (min-width: 768px){.recipe-item{width:240px;height:264px}}@media screen and (min-width: 1280px){.recipe-item{width:250px;height:287px}}.recipe-item .recipe-img{object-fit:cover}.recipe-wrap{position:absolute;top:0;padding:16px;width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(1deg,rgba(5,5,5,.6) 0%,rgba(5,5,5,0) 100%),transparent -25px -10px/116.716% 114.018% no-repeat}.recipe-wrap .recipe-favorite-btn{display:block;margin-left:auto;background-color:transparent;border:0px}.recipe-wrap .recipe-name{color:#f8f8f8;font-size:14px;font-weight:600;line-height:1.28;text-transform:uppercase;margin-bottom:8px;text-overflow:ellipsis;-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.recipe-wrap .recipe-description{height:32px;width:303px;color:#f8f8f8;font-size:12px;font-weight:400;line-height:1.33;margin-bottom:16px;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}@media screen and (min-width: 768px){.recipe-wrap .recipe-description{width:208px}}@media screen and (min-width: 1280px){.recipe-wrap .recipe-description{width:218px}}.dark-theme .recipe-wrap{background:linear-gradient(1deg,#050505 0%,rgba(5,5,5,0) 100%),transparent -21.392px -15.958px/120.272% 116.336% no-repeat}.recipe-rating-wrap{display:flex;justify-content:space-between;align-items:center}.recipe-rating-wrap .recipe-rating{color:#f8f8f8;font-size:14px;font-weight:500;line-height:1.28;display:flex;justify-content:center;align-items:center}.recipe-rating-wrap .recipe-stars-icon{display:flex;justify-content:center;align-items:center;margin-left:4px}.recipe-rating-wrap .recipe-see{display:flex;padding:8px 14px;justify-content:center;align-items:center;border-radius:8px;color:#f8f8f8;background-color:#9bb537;border:0px;font-family:Inter;font-size:12px;font-weight:500;line-height:normal;transition-duration:.3s}.recipe-rating-wrap .recipe-see:is(:hover,:focus){color:#050505}.recipe-pagination{display:flex;justify-content:center;align-items:center;gap:3px}@media screen and (min-width: 768px){.recipe-pagination{gap:24px}}.recipe-pagination .wrap{display:flex;justify-content:center;align-items:center;gap:2px}@media screen and (min-width: 768px){.recipe-pagination .wrap{gap:8px}}.inner-wrap{display:flex;justify-content:center;align-items:center;gap:2px}@media screen and (min-width: 768px){.inner-wrap{gap:10px}}.pagination-btn{color:#050505;font-family:Inter;font-size:18px;font-weight:600;line-height:1.22;display:flex;justify-content:center;align-items:center;width:40px;height:40px;border-radius:50%;border:1px solid rgba(5,5,5,.3);background-color:#f8f8f8;transition-duration:.3s}.pagination-btn:is(:hover,:focus){border:1px solid #9bb537;background-color:#9bb537}@media screen and (min-width: 768px){.pagination-btn{width:44px;height:44px}}.dark-theme .pagination-btn{color:#f8f8f8;background-color:#161616;border:1px solid rgba(255,255,255,.3)}.dark-theme .pagination-btn:is(:hover,:focus){background-color:#9bb537;border:1px solid #9bb537}.right-icons{display:flex;justify-content:center;align-items:center}.right-icons .right-icon-itm{stroke-width:0;stroke:#050505;fill:#050505}.left-icons{display:flex;justify-content:center;align-items:center}.left-icons .left-icon-itm{stroke-width:0;stroke:#ffffff80;fill:#ffffff80}.left-wrap .pagination-btn{background-color:#050505;border:1px solid #050505}.left-wrap .pagination-btn:is(:hover,:focus){background-color:#050505;border:1px solid #9bb537}.right-wrap .pagination-btn{background-color:#9bb537;border:1px solid #9bb537}.right-wrap .pagination-btn:is(:hover,:focus){border:1px solid #050505}.current-pagi-page,.dark-theme .current-pagi-page{background-color:#9bb537}.resipe-list-empty{display:flex;justify-content:center;align-items:center;gap:40px}@media screen and (min-width: 768px){.resipe-list-empty{margin-top:20px;flex-direction:column;gap:80px}}.dark-theme .resipe-list-message{color:#f8f8f8}.heart-icon{fill:transparent;opacity:.5;transition-duration:.3s}.heart-icon:is(:hover,:focus){fill:#f8f8f8;opacity:1}.added-heart-icon{fill:#f8f8f8;opacity:1}.dark-theme .search-label{color:#ffffff80}.dark-theme .search-input{color:#ffffff80;border-color:#fff3}.dark-theme .search-input::placeholder,.dark-theme .search-input::-webkit-input-placeholder{color:#ffffff80}.dark-theme .search-icon{fill:#ffffff80}.dark-theme .extra-select{border-color:#fff3}.dark-theme .selected-option{color:#ffffff80}.dark-theme .arrow-down{stroke:#ffffff80}.dark-theme .reset-text{color:#ffffff80}.dark-theme .extra-options-list{background-color:#050505}.dark-theme .extra-options-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .extra-options-list::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.dark-theme .extra-options-item{color:#ffffff4d}.dark-theme .current-option{color:#f8f8f8}@media screen and (max-width: 767px){.search-filter{margin-top:40px}}@media screen and (min-width: 1280px){.search-filter{display:flex;align-items:baseline;justify-content:center}}.search-input-container{position:relative;width:100%}@media screen and (min-width: 768px){.search-input-container{width:278px}}.search-label{display:block;-webkit-user-select:none;user-select:none;font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:12px;line-height:1.1666666667}@media screen and (min-width: 768px){.search-label{font-size:14px;line-height:1.2857142857}}.search-input{width:100%;border:1px solid rgba(5,5,5,.2);padding:14px 14px 14px 48px;margin-top:8px;font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:14px;line-height:1.2857142857;outline:none;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;transition-duration:.15s;background:transparent}.search-input:focus{border-color:#9bb537}.search-input::placeholder,.search-input ::-webkit-input-placeholder{font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:14px;line-height:1.2857142857}@media screen and (min-width: 768px){.search-input::placeholder,.search-input ::-webkit-input-placeholder{font-size:16px;line-height:1.25}}@media screen and (min-width: 768px){.search-input{font-size:16px;line-height:1.25}}.extra-wrapper{z-index:100!important}@media screen and (min-width: 1280px){.extra-wrapper{margin-left:16px}}.extra-filters-list{display:flex;flex-wrap:wrap;gap:16px}@media screen and (max-width: 1280px){.extra-filters-list{margin-top:14px}}@media screen and (min-width: 768px) and (max-width: 1280px){.extra-filters-list{flex-wrap:nowrap}}@media screen and (min-width: 1280px){.extra-filters-list{flex-wrap:nowrap}}.extra-select{position:relative;width:160px;margin-top:8px;padding:14px 18px;border:1px solid rgba(5,5,5,.2);display:flex;justify-content:center;align-items:center;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;cursor:pointer;transition-duration:.15s;-webkit-user-select:none;user-select:none}.extra-default{width:100%;display:flex;justify-content:space-between}.selected-option{font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:14px;line-height:1.2857142857;white-space:nowrap}.extra-options-list{position:absolute;top:105%;left:0;overflow-y:auto;overflow-x:hidden;z-index:10;width:100%;max-height:176px;background-color:#f8f8f8;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;box-shadow:0 4px 36px #00000005;transition-duration:.15s;transform-origin:top;transform:scaleY(0);-webkit-transform:scaleY(0);-moz-transform:scaleY(0);-ms-transform:scaleY(0);-o-transform:scaleY(0)}.extra-options-list::-webkit-scrollbar{max-width:6px}.extra-options-list::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.extra-options-list::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.extra-options-list::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}.extra-options-item{padding:8px;font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:14px;line-height:1.2857142857;color:#0505054d;transition-duration:.15s;cursor:pointer}.extra-options-item:hover{color:#9bb537;transform:translate(1px);-webkit-transform:translateX(1px);-moz-transform:translateX(1px);-ms-transform:translateX(1px);-o-transform:translateX(1px)}@media screen and (min-width: 768px){.extra-options-item{font-size:16px;line-height:1.25}}.search-icon{position:absolute;left:18px;top:55%;fill:#05050580;pointer-events:none}.arrow-down{stroke:#05050580;fill:transparent;transition-duration:.3s}.reset-btn-container{margin-top:14px;margin-left:auto}.reset-btn{display:flex;align-items:center;gap:4px;padding:5px;margin-left:auto;border:none;background-color:transparent}.reset-btn:hover .reset-text{color:#9bb537}.reset-icon{stroke:#9bb537}.reset-text{font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:12px;transition-duration:.15s}.current-option{color:#050505}.opened{border-color:#9bb537!important}.opened .arrow-down{transform:rotateX(180deg);-webkit-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-o-transform:rotateX(180deg);stroke:#9bb537}.opened-list{transform:scaleY(1);-webkit-transform:scaleY(1);-moz-transform:scaleY(1);-ms-transform:scaleY(1);-o-transform:scaleY(1)}@media screen and (max-width: 375px){.favorites-page-container{padding:0}}.favorites-conteiner{max-width:375px;margin:40px auto 0}@media screen and (min-width: 768px){.favorites-conteiner{max-width:704px}}@media screen and (min-width: 1280px){.favorites-conteiner{max-width:1080px}}.favorites-heroImg{border-radius:28px;overflow:hidden;width:100%}.favorites-instead{display:flex;justify-content:center;align-items:center;height:80vh;width:100%}@media screen and (min-width: 768px){.favorites-instead{height:50vh;align-items:initial;margin-top:60px}}.hatDescroiption-div{text-align:center}@media screen and (min-width: 768px){.hatDescroiption-div{width:481px}}.favorites-divSvg{display:flex;justify-content:center;margin-bottom:24px}@media screen and (min-width: 768px){.favorites-divSvg{margin-bottom:43px}}.hatDescroiption{font-size:14px;font-weight:400;line-height:18px;letter-spacing:0em}@media screen and (min-width: 768px){.hatDescroiption{font-size:16px;line-height:24px}}.dark-theme .hatDescroiption{color:#f8f8f880}.dark-theme .favorites-categoris-item{color:#f8f8f880;border-color:#f8f8f880}.favorites-categoris-list{margin-top:40px;margin-bottom:24px}.favorites-categoris-item{cursor:pointer;display:inline-block;padding:13px 28px;border-radius:15px;border:1px solid rgba(5,5,5,.2);background-color:inherit;color:#05050580;font-family:inherit;font-size:18px;font-style:normal;font-weight:500;line-height:normal;transition-duration:.15s;min-width:fit-content}.favorites-categoris-item:not(:last-child){margin-right:12px}.favorites-categoris-choosen{border:1px solid #9bb537;background-color:#9bb537;color:#f8f8f8}.favorites-dishes-conteiner{min-height:623px}.favorites-dishes{display:flex;flex-direction:column;gap:24px;justify-content:center;align-items:center}@media screen and (min-width: 768px){.favorites-dishes{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px}}@media screen and (max-width: 375px){.recipe-item-favorites{width:300px;height:300px}}@media screen and (min-width: 768px){.recipe-item-favorites{justify-content:space-between;width:224px;height:244px}}@media screen and (min-width: 1280px){.recipe-item-favorites{justify-content:space-between;width:258px;height:287px}}.recipe-item-favorites:not(:first-child){margin-top:24px}@media screen and (min-width: 768px){.recipe-item-favorites:not(:first-child){margin-top:0}}@media screen and (min-width: 768px){#recipe-see-favorites{padding:8px 6px}}@media screen and (min-width: 1280px){#recipe-see-favorites{padding:8px 14px}}.favorites-categoris-conteiner{margin-bottom:6px;width:100%;overflow-x:scroll}.favorites-categoris-conteiner::-webkit-scrollbar{max-width:6px}.favorites-categoris-conteiner::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.favorites-categoris-conteiner::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.favorites-categoris-conteiner::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}.favorites-categoris-list{display:inline-flex;padding:0;list-style:none}.dark-theme .favorites-categoris-conteiner::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .favorites-categoris-conteiner::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.dark-theme .favorites-categoris-item{color:#f8f8f8}.favorites-categoris-item:hover{color:#f8f8f8;background-color:#9bb537}.test-menu{color:#f08080}.recipe-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100;background-color:#05050580;overflow:auto}.modal{z-index:100;position:absolute;top:75%;left:50%;transform:translate(-50%,-40%);-webkit-transform:translate(-50%,-40%);-moz-transform:translate(-50%,-40%);-ms-transform:translate(-50%,-40%);-o-transform:translate(-50%,-40%);transition-duration:.3s;overflow-y:auto}@media screen and (max-width: 375px){.modal{top:90%;max-width:100vw}}@media screen and (min-width: 768px){.modal{top:50%}}.recipe-content{width:335px;padding:40px 20px;border-radius:15px;background-color:#f8f8f8;overflow-y:auto}@media screen and (min-width: 768px){.recipe-content{width:531px;padding:32px}}.dark-theme .recipe-content{background-color:#050505}.recipe-btn-close{cursor:pointer;position:fixed;border:none;float:right;font-size:12px;font-weight:700;top:14px;right:14px;background-color:#f8f8f8}.recipe-btn-close:is(:hover,:focus) .reciepe-close-icon{stroke:#9bb537}.dark-theme .recipe-btn-close{background-color:#050505}.recipe-backdrop.visible .recipe-content{opacity:1;transition-delay:.3s}.reciepe-close-icon{stroke:#050505;transition-duration:.15s}.dark-theme .reciepe-close-icon{stroke:#f8f8f8}.modal-recipe-btn{column-gap:14px;display:flex}.favorite-btn{background-color:#9bb537;color:#f8f8f8;border:#9bb537;font-family:Inter;font-style:normal;font-weight:500;line-height:normal;border-radius:15px;padding:12px 24px;font-size:14px}.favorite-btn:focus,.favorite-btn:hover{color:#050505}.give-rating-btn{color:#050505;border:1px solid #9bb537;background-color:#0000;border-radius:15px;padding:12px 24px;font-size:14px;font-weight:500}.dark-theme .give-rating-btn{color:#f8f8f8}.video-title{display:flex;flex-direction:column}.recipe-video{border-radius:8px;width:295px;height:295px;margin-bottom:20px}@media screen and (min-width: 768px){.recipe-video{margin-bottom:16px}}@media screen and (min-width: 768px){.recipe-video{width:467px;height:250px}}.recipe-container,.video-title{display:flex;flex-direction:column}.modal-recipe-title{font-family:Inter;font-size:18px;font-style:normal;font-weight:600;line-height:1.3333333333;text-transform:uppercase;color:#050505;margin-bottom:14px}@media screen and (min-width: 768px){.modal-recipe-title{margin-bottom:16px;order:-1}}.dark-theme .modal-recipe-title{color:#f8f8f8}.modal-recipe-cooking{display:flex;gap:16px;margin-bottom:32px;align-items:center;justify-content:space-between}.modal-recipe-rating{color:#05050580;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:1.2857142857;display:flex;gap:6px}.dark-theme .modal-recipe-rating{color:#ffffff80}.modal-recipe-time{color:#05050580;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:1.2857142857}.dark-theme .modal-recipe-time{color:#ffffff80}.overflow-scroll{height:180px;overflow-y:auto;margin-bottom:40px}@media screen and (min-width: 768px){.overflow-scroll{margin-bottom:32px}}.overflow-scroll::-webkit-scrollbar{max-width:6px}.overflow-scroll::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.overflow-scroll::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.overflow-scroll::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}.dark-theme .overflow-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .overflow-scroll::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.modal-ingredients{flex-wrap:wrap;row-gap:24px;display:flex}.list-item-recipe{width:280px;flex-wrap:wrap;gap:14px;justify-content:space-between;display:flex;position:relative}@media screen and (min-width: 768px){.list-item-recipe{width:450px}}.modal-recipe-ingredients{color:#050505;font-size:14px;line-height:1.2857142857}.dark-theme .modal-recipe-ingredients{color:#ffffff80}.modal-recipe-measure{color:#05050580;font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:1.2857142857}.dark-theme .modal-recipe-measure{color:#ffffff80}.list-item-recipe:after{content:"";width:100%;border:1px solid rgba(5,5,5,.1);position:absolute;bottom:-10px;left:0}.dark-theme .list-item-recipe:after{border:1px solid rgba(255,255,255,.1)}.modal-recipe-tag{flex-wrap:wrap;gap:10px 8px;margin-bottom:24px;display:flex}@media screen and (min-width: 768px){.modal-recipe-tag{order:-1}}.recipe-tag-item{color:#050505;border-radius:35px;border:1px solid rgba(5,5,5,.2);padding:8px 16px;font-size:12px;font-style:normal;font-weight:500;line-height:1.1666666667}.dark-theme .recipe-tag-item{color:#f8f8f8;border:1px solid rgba(255,255,255,.2)}.modal-recipe-text{width:295px;color:#050505cc;font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:1.2857142857;margin-bottom:40px;max-height:100px;overflow:auto;text-overflow:ellipsis}@media screen and (min-width: 768px){.modal-recipe-text{width:467px;margin-bottom:32px}}.modal-recipe-text::-webkit-scrollbar{max-width:6px}.modal-recipe-text::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.modal-recipe-text::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.modal-recipe-text::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}.dark-theme .modal-recipe-text{color:#ffffff80}.dark-theme .modal-recipe-text::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .modal-recipe-text::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.order-now-backdrop{position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;background-color:#2e2f4266;overflow:hidden;z-index:2;background:rgba(22,22,22,.9)}.order-now-modal{display:flex;flex-direction:column;max-width:320px;opacity:1;padding:28px 20px;background-color:#f8f8f8;overflow:hidden;width:335px;height:582px;margin:auto;position:absolute;top:50%;left:50%;box-shadow:0 1px 1px #00000024,0 1px 3px #0000001f,0 2px 1px #0003;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%)}.order-now-modal-title{margin:0;font-weight:600;font-size:18px;line-height:1.2;text-transform:uppercase;color:#050505;overflow:hidden}@media screen and (min-width: 375px){.order-now-modal-title{margin-bottom:40px}.order-now-modal-form input,textarea{width:270px}.order-now-modal-form textarea{margin-bottom:40px}}@media screen and (max-width: 375px){.order-now-modal-title{margin-bottom:15px}.order-now-modal-form input,textarea{width:250px}.order-now-modal-form textarea{margin-bottom:15px}}.order-now-modal-close-btn{position:absolute;top:14px;right:14px;cursor:pointer;background:none;border:none}.order-now-modal-form{display:flex;justify-content:center;flex-direction:column;overflow:hidden}.order-now-modal-form label:not(:last-of-type){margin-bottom:16px}.order-now-modal-form span{display:block;margin-bottom:8px;font-size:14px;line-height:1.2;color:#05050580}.order-now-modal-form-input{padding:14px 18px;height:43px;transition-duration:.15s}.dark-theme .order-now-modal-form-input{color:#f8f8f8}.order-now-modal-form input,textarea{font-family:Inter,sans-serif;border:1px solid rgba(5,5,5,.2);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.order-now-modal-form textarea{padding:14px 18px;height:100px;resize:none;transition-duration:.15s}.order-now-modal-form textarea:hover,.order-now-modal-form textarea:focus{border:1px solid #9bb537}.dark-theme .order-now-modal-form textarea:is(:hover,:focus){border:1px solid #9bb537;color:#f8f8f8}input,.comment-textarea{outline:none}.order-now-modal-form button{font-family:Inter,sans-serif;width:100%;padding:15px 0;font-size:14px;border:none;border-radius:15px;background:#9bb537;color:#f8f8f8;cursor:pointer;transition-duration:.15s}.order-now-modal-form button:hover{box-shadow:inset 0 0 10px 10px #f8f8f880}.order-now-modal-close-img{stroke:#050505;transition-duration:.15s}.order-now-modal-close-img:hover{stroke:#9bb537}@media screen and (max-width: 320px){.order-now-modal,.order-now-modal-form input,textarea{width:100%}}@media screen and (min-width: 768px){.order-now-modal-form input{width:270px}}@media screen and (min-width: 768px){.order-now-modal{max-width:none;max-height:none;width:440px;height:632px;padding:40px}.order-now-modal-form input,textarea{width:360px;border-radius:15px;border:1px solid rgba(5,5,5,.2)}.order-now-modal-form-input{height:48px}.order-now-modal-close-img{width:24px;height:24px}}.order-now-modal-form-input:hover,.order-now-modal-form-input:focus{border:1px solid #9bb537}.dark-theme .order-now-modal-form-input:is(:hover,:focus){border:1px solid #9bb537}.dark-theme .order-now-modal-form input,.dark-theme .order-now-modal-form textarea{background-color:#050505;border-color:#fff3}.dark-theme .order-now-modal-form input:focus,.dark-theme .order-now-modal-form textarea:focus{border-color:#9bb537;background-color:#050505}.dark-theme .order-now-modal-form span{color:#ffffff80}.dark-theme .order-now-modal-form input::placeholder,.dark-theme .order-now-modal-form textarea::placeholder{color:#ffffff80}.dark-theme .order-now-modal,.dark-theme .popup_modal,.dark-theme .popup_scroll{background-color:#050505}.dark-theme .order-now-modal-close-img,.dark-theme .order-now-modal-title{stroke:#f8f8f8;color:#f8f8f8}.dark-theme .order-now-modal-close-img:hover{stroke:#9bb537}.rating-modal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0 auto;padding:20px;border-radius:15px;background-color:#f8f8f8}@media screen and (min-width: 375px){.rating-modal{width:335px}}@media screen and (min-width: 768px){.rating-modal{width:424px;padding:32px}}.dark-theme .rating-modal{background-color:#050505}.rating-modal-btn-close{display:flex;justify-content:center;align-items:center;width:20px;height:20px;background-color:transparent;border:transparent;position:absolute;top:14px;right:14px}@media screen and (min-width: 768px){.rating-modal-btn-close{width:24px;height:24px;top:16px;right:16px}}.rating-modal-btn-close:is(:hover,:focus) .rating-modal-btn-icon{stroke:#9bb537}.rating-modal-btn-icon{width:20px;height:20px;stroke:#050505;transition:.3s}@media screen and (min-width: 768px){.rating-modal-btn-icon{width:24px;height:24px}}.dark-theme .rating-modal-btn-icon{stroke:#f8f8f8}.rating-modal-title{color:#050505;font-size:14px;font-weight:600;margin-bottom:4px}.dark-theme .rating-modal-title{color:#050505}.rating-modal-stars-wrapper{display:flex;align-items:baseline;margin-bottom:24px}@media screen and (min-width: 768px){.rating-modal-stars-wrapper{margin-bottom:32px}}.live-rating{width:25px;height:auto;color:#050505;font-size:16px;font-weight:500;line-height:1.5}.dark-theme .live-rating{color:#f8f8f8}.rating-modal-form-input::placeholder{color:#050505;opacity:.5;font-size:14px;font-weight:500}@media screen and (min-width: 768px){.rating-modal-form-input::placeholder{font-size:16px}}.rating-modal-form-input{width:100%;padding:14px 18px;border:1px solid rgba(5,5,5,.2);border-radius:15px;outline:none;margin-bottom:14px;transition:.3s}@media screen and (min-width: 768px){.rating-modal-form-input{margin-bottom:16px}}.rating-modal-form-input:hover,.rating-modal-form-input:focus{border:1px solid #9bb537}.dark-theme .rating-modal-form-input:is(:hover,:focus){border:1px solid #9bb537}.dark-theme .rating-modal-form-input{background-color:#050505;border:1px solid rgba(255,255,255,.2);color:#050505}.dark-theme .rating-modal-form-input::placeholder{color:#ffffff80}.rating-modal-form-btn{width:100%;padding:14px;display:flex;justify-content:center;align-items:center;font-family:Inter,sans-serif;font-size:14px;color:#f8f8f8;background-color:#9bb537;border-radius:15px;border:none;transition:.3s}@media screen and (min-width: 768px){.rating-modal-form-btn{font-size:16px}}.rating-modal-form-btn:hover,.rating-modal-form-btn:focus{color:#050505}.dark-theme .rating-modal-title{color:#f8f8f8}.rate{height:24px}.rate:not(:checked)>input{position:absolute;top:-9999px}.rate:not(:checked)>label{float:right;width:1em;overflow:hidden;white-space:nowrap;cursor:pointer;font-size:30px;color:#ccc}.rate:not(:checked)>label:before{content:"★"}.rate>input:checked~label{color:#ffc700}.rate:not(:checked)>label:hover,.rate:not(:checked)>label:hover~label{color:#deb217}.rate>input:checked+label:hover,.rate>input:checked+label:hover~label,.rate>input:checked~label:hover,.rate>input:checked~label:hover~label,.rate>label:hover~input:checked~label{color:#c59b08}.footer-container{margin:0;padding:0;width:100%;height:100px;display:flex;flex-direction:row;justify-content:center;align-items:center;z-index:1000}.footer-span{font-size:16px}.modal-footer{display:none;position:fixed;top:50%;left:0;transform:translateY(-50%);width:100%;height:100%;background-color:#00000080}.modal-content-footer{background-color:#fff;width:100%;margin:15% auto;padding:30px;border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.title-footer{color:#050505;margin-bottom:20px}.dark-theme .modal-content-footer{background-color:#050505}.dark-theme .title-footer,.dark-theme .close3{color:#f8f8f8}.close3{position:absolute;top:10px;right:15px;font-size:20px;cursor:pointer}#peopleList{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:space-between}#peopleList li{font-size:18px;margin-left:auto;margin-right:auto;margin-bottom:10px;padding:5px 10px;border:1px solid #ccc;border-radius:5px;background-color:#f5f5f5;box-shadow:0 2px 4px #0000001a;transition:transform .2s ease-in-out;cursor:pointer;width:200px;text-align:center;text-decoration:none}#peopleList li:is(:hover,:focus){scale:1.01;-webkit-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);-moz-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);box-shadow:-12px 12px 5px #0505054d}.dark-theme #peopleList li:is(:hover,:focus){scale:1.01;color:#9bb537;-webkit-box-shadow:0px 0px 35px -4px rgb(155,181,55);-moz-box-shadow:0px 0px 35px -4px rgb(155,181,55);box-shadow:0 0 35px -4px #9bb537}#peopleList a{color:#050505}#peopleList a:is(:hover,:focus){color:#9bb537}.glow-on-hover{width:300px;height:50px;margin:auto;border:none;outline:none;color:gray;background:#fff;cursor:pointer;position:relative;z-index:0;border-radius:10px}.glow-on-hover:before{content:"";background:linear-gradient(45deg,#ff0000,#ff7300,#fffb00,#48ff00,#00ffd5,#002bff,#7a00ff,#ff00c8,#ff0000);position:absolute;top:-2px;left:-2px;background-size:400%;z-index:-1;filter:blur(5px);width:calc(100% + 4px);height:calc(100% + 4px);animation:glowing 20s linear infinite;opacity:0;transition:opacity .3s ease-in-out;border-radius:10px}.glow-on-hover:active{color:gray}.glow-on-hover:active:after{background:transparent}.glow-on-hover:hover:before{opacity:1}.glow-on-hover:after{z-index:-1;content:"";position:absolute;width:100%;height:100%;background:#fff;left:0;top:0;border-radius:10px}@keyframes glowing{0%{background-position:0 0}50%{background-position:400% 0}to{background-position:0 0}}#modal3{display:block;opacity:0;max-height:0;overflow:hidden;pointer-events:none;visibility:hidden;top:50%;left:50%;position:fixed;transform-origin:center center;transform:translate(-50%,-50%) scale(.9);-webkit-transform:translate(-50%,-50%) scale(.9);-moz-transform:translate(-50%,-50%) scale(.9);-ms-transform:translate(-50%,-50%) scale(.9);-o-transform:translate(-50%,-50%) scale(.9);transition-duration:.3s}#modal3.modal-open{opacity:1;max-height:1000px;padding:20px;pointer-events:all;visibility:visible;transform:translate(-50%,-50%) scale(1);-webkit-transform:translate(-50%,-50%) scale(1);-moz-transform:translate(-50%,-50%) scale(1);-ms-transform:translate(-50%,-50%) scale(1);-o-transform:translate(-50%,-50%) scale(1);transition-duration:.3s}@media screen and (min-width: 375px) and (max-width: 768px){.modal-content-footer{width:300px}}@media screen and (min-width: 768px){.modal-content-footer{width:500px}}#theme-switcher,#mob-theme-switcher{display:inline-block}#theme-switcher input,#mob-theme-switcher input{display:block;width:0;height:0;margin:0;z-index:-1;opacity:0}#theme-switcher span,#mob-theme-switcher span{display:block;width:46px;height:20px;box-shadow:7px 5px 15px #a09ea066;position:relative;cursor:pointer;background-color:#cecdcd;transition:.2s;border-radius:34px}#theme-switcher span:before,#mob-theme-switcher span:before{content:"";position:absolute;height:18px;width:18px;left:1px;bottom:1px;background-color:#f8f8f8;transition:.2s;border-radius:50%}#theme-switcher input:checked+span,#mob-theme-switcher input:checked+span{background:linear-gradient(#9bb537,#9bb537);box-shadow:none}#theme-switcher input:checked+span:before,#mob-theme-switcher input:checked+span:before{box-shadow:4px 4px 15px #f3f3f340;transform:translate(26px)}.colored-toast.swal2-icon-success{background-color:#9bb537!important}.colored-toast.swal2-icon-error{background-color:#eea10c!important}.colored-toast.swal2-icon-warning{background-color:#f8bb86!important}.colored-toast.swal2-icon-info{background-color:#d9d9d9!important}.colored-toast.swal2-icon-question{background-color:#05050580!important}.dark-theme .colored-toast.swal2-icon-question{background-color:#f8f8f880!important}.colored-toast .swal2-title,.colored-toast .swal2-close,.colored-toast .swal2-html-container{color:#fff}.scrollup-btn-wrapper{position:fixed;right:30px;bottom:30px}.scrollup-btn{width:50px;height:50px;border:1px solid transparent;display:flex;justify-content:center;align-items:center;background-color:#9bb537;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;transition-duration:.3s;animation:floating 3s ease-in-out infinite;-webkit-animation:floating 3s ease-in-out infinite}.scrollup-btn:hover,.scrollup-btn :focus{box-shadow:inset 0 0 5px 2px #f8f8f8}.dark-theme .scrollup-btn{background-color:#f8f8f8}.dark-theme .scrollup-btn:hover,.dark-theme .scrollup-btn :focus{box-shadow:inset 0 0 3px 1px #05050580}.scrollup-icon{fill:#f8f8f8;transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg)}.dark-theme .scrollup-icon{fill:#9bb537}@keyframes floating{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.loader{width:48px;height:48px;border:5px solid #9bb537;border-radius:50%;display:inline-block;box-sizing:border-box;position:absolute;top:-50px;left:50%;animation:pulse 1s linear infinite}@media screen and (max-width: 768px){.loader{top:-55px;left:40%}}.loader:after{content:"";position:absolute;width:48px;height:48px;border:5px solid #9bb537;border-radius:50%;display:inline-block;box-sizing:border-box;left:50%;top:50%;transform:translate(-50%,-50%);animation:scaleUp 1s linear infinite}@keyframes scaleUp{0%{transform:translate(-50%,-50%) scale(0)}60%,to{transform:translate(-50%,-50%) scale(1)}}@keyframes pulse{0%,60%,to{transform:scale(1)}80%{transform:scale(1.2)}}[data-aos][data-aos][data-aos-duration="50"],body[data-aos-duration="50"] [data-aos]{transition-duration:50ms}[data-aos][data-aos][data-aos-delay="50"],body[data-aos-delay="50"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="50"].aos-animate,body[data-aos-delay="50"] [data-aos].aos-animate{transition-delay:50ms}[data-aos][data-aos][data-aos-duration="100"],body[data-aos-duration="100"] [data-aos]{transition-duration:.1s}[data-aos][data-aos][data-aos-delay="100"],body[data-aos-delay="100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="100"].aos-animate,body[data-aos-delay="100"] [data-aos].aos-animate{transition-delay:.1s}[data-aos][data-aos][data-aos-duration="150"],body[data-aos-duration="150"] [data-aos]{transition-duration:.15s}[data-aos][data-aos][data-aos-delay="150"],body[data-aos-delay="150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="150"].aos-animate,body[data-aos-delay="150"] [data-aos].aos-animate{transition-delay:.15s}[data-aos][data-aos][data-aos-duration="200"],body[data-aos-duration="200"] [data-aos]{transition-duration:.2s}[data-aos][data-aos][data-aos-delay="200"],body[data-aos-delay="200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="200"].aos-animate,body[data-aos-delay="200"] [data-aos].aos-animate{transition-delay:.2s}[data-aos][data-aos][data-aos-duration="250"],body[data-aos-duration="250"] [data-aos]{transition-duration:.25s}[data-aos][data-aos][data-aos-delay="250"],body[data-aos-delay="250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="250"].aos-animate,body[data-aos-delay="250"] [data-aos].aos-animate{transition-delay:.25s}[data-aos][data-aos][data-aos-duration="300"],body[data-aos-duration="300"] [data-aos]{transition-duration:.3s}[data-aos][data-aos][data-aos-delay="300"],body[data-aos-delay="300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="300"].aos-animate,body[data-aos-delay="300"] [data-aos].aos-animate{transition-delay:.3s}[data-aos][data-aos][data-aos-duration="350"],body[data-aos-duration="350"] [data-aos]{transition-duration:.35s}[data-aos][data-aos][data-aos-delay="350"],body[data-aos-delay="350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="350"].aos-animate,body[data-aos-delay="350"] [data-aos].aos-animate{transition-delay:.35s}[data-aos][data-aos][data-aos-duration="400"],body[data-aos-duration="400"] [data-aos]{transition-duration:.4s}[data-aos][data-aos][data-aos-delay="400"],body[data-aos-delay="400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="400"].aos-animate,body[data-aos-delay="400"] [data-aos].aos-animate{transition-delay:.4s}[data-aos][data-aos][data-aos-duration="450"],body[data-aos-duration="450"] [data-aos]{transition-duration:.45s}[data-aos][data-aos][data-aos-delay="450"],body[data-aos-delay="450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="450"].aos-animate,body[data-aos-delay="450"] [data-aos].aos-animate{transition-delay:.45s}[data-aos][data-aos][data-aos-duration="500"],body[data-aos-duration="500"] [data-aos]{transition-duration:.5s}[data-aos][data-aos][data-aos-delay="500"],body[data-aos-delay="500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="500"].aos-animate,body[data-aos-delay="500"] [data-aos].aos-animate{transition-delay:.5s}[data-aos][data-aos][data-aos-duration="550"],body[data-aos-duration="550"] [data-aos]{transition-duration:.55s}[data-aos][data-aos][data-aos-delay="550"],body[data-aos-delay="550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="550"].aos-animate,body[data-aos-delay="550"] [data-aos].aos-animate{transition-delay:.55s}[data-aos][data-aos][data-aos-duration="600"],body[data-aos-duration="600"] [data-aos]{transition-duration:.6s}[data-aos][data-aos][data-aos-delay="600"],body[data-aos-delay="600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="600"].aos-animate,body[data-aos-delay="600"] [data-aos].aos-animate{transition-delay:.6s}[data-aos][data-aos][data-aos-duration="650"],body[data-aos-duration="650"] [data-aos]{transition-duration:.65s}[data-aos][data-aos][data-aos-delay="650"],body[data-aos-delay="650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="650"].aos-animate,body[data-aos-delay="650"] [data-aos].aos-animate{transition-delay:.65s}[data-aos][data-aos][data-aos-duration="700"],body[data-aos-duration="700"] [data-aos]{transition-duration:.7s}[data-aos][data-aos][data-aos-delay="700"],body[data-aos-delay="700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="700"].aos-animate,body[data-aos-delay="700"] [data-aos].aos-animate{transition-delay:.7s}[data-aos][data-aos][data-aos-duration="750"],body[data-aos-duration="750"] [data-aos]{transition-duration:.75s}[data-aos][data-aos][data-aos-delay="750"],body[data-aos-delay="750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="750"].aos-animate,body[data-aos-delay="750"] [data-aos].aos-animate{transition-delay:.75s}[data-aos][data-aos][data-aos-duration="800"],body[data-aos-duration="800"] [data-aos]{transition-duration:.8s}[data-aos][data-aos][data-aos-delay="800"],body[data-aos-delay="800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="800"].aos-animate,body[data-aos-delay="800"] [data-aos].aos-animate{transition-delay:.8s}[data-aos][data-aos][data-aos-duration="850"],body[data-aos-duration="850"] [data-aos]{transition-duration:.85s}[data-aos][data-aos][data-aos-delay="850"],body[data-aos-delay="850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="850"].aos-animate,body[data-aos-delay="850"] [data-aos].aos-animate{transition-delay:.85s}[data-aos][data-aos][data-aos-duration="900"],body[data-aos-duration="900"] [data-aos]{transition-duration:.9s}[data-aos][data-aos][data-aos-delay="900"],body[data-aos-delay="900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="900"].aos-animate,body[data-aos-delay="900"] [data-aos].aos-animate{transition-delay:.9s}[data-aos][data-aos][data-aos-duration="950"],body[data-aos-duration="950"] [data-aos]{transition-duration:.95s}[data-aos][data-aos][data-aos-delay="950"],body[data-aos-delay="950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="950"].aos-animate,body[data-aos-delay="950"] [data-aos].aos-animate{transition-delay:.95s}[data-aos][data-aos][data-aos-duration="1000"],body[data-aos-duration="1000"] [data-aos]{transition-duration:1s}[data-aos][data-aos][data-aos-delay="1000"],body[data-aos-delay="1000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1000"].aos-animate,body[data-aos-delay="1000"] [data-aos].aos-animate{transition-delay:1s}[data-aos][data-aos][data-aos-duration="1050"],body[data-aos-duration="1050"] [data-aos]{transition-duration:1.05s}[data-aos][data-aos][data-aos-delay="1050"],body[data-aos-delay="1050"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1050"].aos-animate,body[data-aos-delay="1050"] [data-aos].aos-animate{transition-delay:1.05s}[data-aos][data-aos][data-aos-duration="1100"],body[data-aos-duration="1100"] [data-aos]{transition-duration:1.1s}[data-aos][data-aos][data-aos-delay="1100"],body[data-aos-delay="1100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1100"].aos-animate,body[data-aos-delay="1100"] [data-aos].aos-animate{transition-delay:1.1s}[data-aos][data-aos][data-aos-duration="1150"],body[data-aos-duration="1150"] [data-aos]{transition-duration:1.15s}[data-aos][data-aos][data-aos-delay="1150"],body[data-aos-delay="1150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1150"].aos-animate,body[data-aos-delay="1150"] [data-aos].aos-animate{transition-delay:1.15s}[data-aos][data-aos][data-aos-duration="1200"],body[data-aos-duration="1200"] [data-aos]{transition-duration:1.2s}[data-aos][data-aos][data-aos-delay="1200"],body[data-aos-delay="1200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1200"].aos-animate,body[data-aos-delay="1200"] [data-aos].aos-animate{transition-delay:1.2s}[data-aos][data-aos][data-aos-duration="1250"],body[data-aos-duration="1250"] [data-aos]{transition-duration:1.25s}[data-aos][data-aos][data-aos-delay="1250"],body[data-aos-delay="1250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1250"].aos-animate,body[data-aos-delay="1250"] [data-aos].aos-animate{transition-delay:1.25s}[data-aos][data-aos][data-aos-duration="1300"],body[data-aos-duration="1300"] [data-aos]{transition-duration:1.3s}[data-aos][data-aos][data-aos-delay="1300"],body[data-aos-delay="1300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1300"].aos-animate,body[data-aos-delay="1300"] [data-aos].aos-animate{transition-delay:1.3s}[data-aos][data-aos][data-aos-duration="1350"],body[data-aos-duration="1350"] [data-aos]{transition-duration:1.35s}[data-aos][data-aos][data-aos-delay="1350"],body[data-aos-delay="1350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1350"].aos-animate,body[data-aos-delay="1350"] [data-aos].aos-animate{transition-delay:1.35s}[data-aos][data-aos][data-aos-duration="1400"],body[data-aos-duration="1400"] [data-aos]{transition-duration:1.4s}[data-aos][data-aos][data-aos-delay="1400"],body[data-aos-delay="1400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1400"].aos-animate,body[data-aos-delay="1400"] [data-aos].aos-animate{transition-delay:1.4s}[data-aos][data-aos][data-aos-duration="1450"],body[data-aos-duration="1450"] [data-aos]{transition-duration:1.45s}[data-aos][data-aos][data-aos-delay="1450"],body[data-aos-delay="1450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1450"].aos-animate,body[data-aos-delay="1450"] [data-aos].aos-animate{transition-delay:1.45s}[data-aos][data-aos][data-aos-duration="1500"],body[data-aos-duration="1500"] [data-aos]{transition-duration:1.5s}[data-aos][data-aos][data-aos-delay="1500"],body[data-aos-delay="1500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1500"].aos-animate,body[data-aos-delay="1500"] [data-aos].aos-animate{transition-delay:1.5s}[data-aos][data-aos][data-aos-duration="1550"],body[data-aos-duration="1550"] [data-aos]{transition-duration:1.55s}[data-aos][data-aos][data-aos-delay="1550"],body[data-aos-delay="1550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1550"].aos-animate,body[data-aos-delay="1550"] [data-aos].aos-animate{transition-delay:1.55s}[data-aos][data-aos][data-aos-duration="1600"],body[data-aos-duration="1600"] [data-aos]{transition-duration:1.6s}[data-aos][data-aos][data-aos-delay="1600"],body[data-aos-delay="1600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1600"].aos-animate,body[data-aos-delay="1600"] [data-aos].aos-animate{transition-delay:1.6s}[data-aos][data-aos][data-aos-duration="1650"],body[data-aos-duration="1650"] [data-aos]{transition-duration:1.65s}[data-aos][data-aos][data-aos-delay="1650"],body[data-aos-delay="1650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1650"].aos-animate,body[data-aos-delay="1650"] [data-aos].aos-animate{transition-delay:1.65s}[data-aos][data-aos][data-aos-duration="1700"],body[data-aos-duration="1700"] [data-aos]{transition-duration:1.7s}[data-aos][data-aos][data-aos-delay="1700"],body[data-aos-delay="1700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1700"].aos-animate,body[data-aos-delay="1700"] [data-aos].aos-animate{transition-delay:1.7s}[data-aos][data-aos][data-aos-duration="1750"],body[data-aos-duration="1750"] [data-aos]{transition-duration:1.75s}[data-aos][data-aos][data-aos-delay="1750"],body[data-aos-delay="1750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1750"].aos-animate,body[data-aos-delay="1750"] [data-aos].aos-animate{transition-delay:1.75s}[data-aos][data-aos][data-aos-duration="1800"],body[data-aos-duration="1800"] [data-aos]{transition-duration:1.8s}[data-aos][data-aos][data-aos-delay="1800"],body[data-aos-delay="1800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1800"].aos-animate,body[data-aos-delay="1800"] [data-aos].aos-animate{transition-delay:1.8s}[data-aos][data-aos][data-aos-duration="1850"],body[data-aos-duration="1850"] [data-aos]{transition-duration:1.85s}[data-aos][data-aos][data-aos-delay="1850"],body[data-aos-delay="1850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1850"].aos-animate,body[data-aos-delay="1850"] [data-aos].aos-animate{transition-delay:1.85s}[data-aos][data-aos][data-aos-duration="1900"],body[data-aos-duration="1900"] [data-aos]{transition-duration:1.9s}[data-aos][data-aos][data-aos-delay="1900"],body[data-aos-delay="1900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1900"].aos-animate,body[data-aos-delay="1900"] [data-aos].aos-animate{transition-delay:1.9s}[data-aos][data-aos][data-aos-duration="1950"],body[data-aos-duration="1950"] [data-aos]{transition-duration:1.95s}[data-aos][data-aos][data-aos-delay="1950"],body[data-aos-delay="1950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1950"].aos-animate,body[data-aos-delay="1950"] [data-aos].aos-animate{transition-delay:1.95s}[data-aos][data-aos][data-aos-duration="2000"],body[data-aos-duration="2000"] [data-aos]{transition-duration:2s}[data-aos][data-aos][data-aos-delay="2000"],body[data-aos-delay="2000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2000"].aos-animate,body[data-aos-delay="2000"] [data-aos].aos-animate{transition-delay:2s}[data-aos][data-aos][data-aos-duration="2050"],body[data-aos-duration="2050"] [data-aos]{transition-duration:2.05s}[data-aos][data-aos][data-aos-delay="2050"],body[data-aos-delay="2050"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2050"].aos-animate,body[data-aos-delay="2050"] [data-aos].aos-animate{transition-delay:2.05s}[data-aos][data-aos][data-aos-duration="2100"],body[data-aos-duration="2100"] [data-aos]{transition-duration:2.1s}[data-aos][data-aos][data-aos-delay="2100"],body[data-aos-delay="2100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2100"].aos-animate,body[data-aos-delay="2100"] [data-aos].aos-animate{transition-delay:2.1s}[data-aos][data-aos][data-aos-duration="2150"],body[data-aos-duration="2150"] [data-aos]{transition-duration:2.15s}[data-aos][data-aos][data-aos-delay="2150"],body[data-aos-delay="2150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2150"].aos-animate,body[data-aos-delay="2150"] [data-aos].aos-animate{transition-delay:2.15s}[data-aos][data-aos][data-aos-duration="2200"],body[data-aos-duration="2200"] [data-aos]{transition-duration:2.2s}[data-aos][data-aos][data-aos-delay="2200"],body[data-aos-delay="2200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2200"].aos-animate,body[data-aos-delay="2200"] [data-aos].aos-animate{transition-delay:2.2s}[data-aos][data-aos][data-aos-duration="2250"],body[data-aos-duration="2250"] [data-aos]{transition-duration:2.25s}[data-aos][data-aos][data-aos-delay="2250"],body[data-aos-delay="2250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2250"].aos-animate,body[data-aos-delay="2250"] [data-aos].aos-animate{transition-delay:2.25s}[data-aos][data-aos][data-aos-duration="2300"],body[data-aos-duration="2300"] [data-aos]{transition-duration:2.3s}[data-aos][data-aos][data-aos-delay="2300"],body[data-aos-delay="2300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2300"].aos-animate,body[data-aos-delay="2300"] [data-aos].aos-animate{transition-delay:2.3s}[data-aos][data-aos][data-aos-duration="2350"],body[data-aos-duration="2350"] [data-aos]{transition-duration:2.35s}[data-aos][data-aos][data-aos-delay="2350"],body[data-aos-delay="2350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2350"].aos-animate,body[data-aos-delay="2350"] [data-aos].aos-animate{transition-delay:2.35s}[data-aos][data-aos][data-aos-duration="2400"],body[data-aos-duration="2400"] [data-aos]{transition-duration:2.4s}[data-aos][data-aos][data-aos-delay="2400"],body[data-aos-delay="2400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2400"].aos-animate,body[data-aos-delay="2400"] [data-aos].aos-animate{transition-delay:2.4s}[data-aos][data-aos][data-aos-duration="2450"],body[data-aos-duration="2450"] [data-aos]{transition-duration:2.45s}[data-aos][data-aos][data-aos-delay="2450"],body[data-aos-delay="2450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2450"].aos-animate,body[data-aos-delay="2450"] [data-aos].aos-animate{transition-delay:2.45s}[data-aos][data-aos][data-aos-duration="2500"],body[data-aos-duration="2500"] [data-aos]{transition-duration:2.5s}[data-aos][data-aos][data-aos-delay="2500"],body[data-aos-delay="2500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2500"].aos-animate,body[data-aos-delay="2500"] [data-aos].aos-animate{transition-delay:2.5s}[data-aos][data-aos][data-aos-duration="2550"],body[data-aos-duration="2550"] [data-aos]{transition-duration:2.55s}[data-aos][data-aos][data-aos-delay="2550"],body[data-aos-delay="2550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2550"].aos-animate,body[data-aos-delay="2550"] [data-aos].aos-animate{transition-delay:2.55s}[data-aos][data-aos][data-aos-duration="2600"],body[data-aos-duration="2600"] [data-aos]{transition-duration:2.6s}[data-aos][data-aos][data-aos-delay="2600"],body[data-aos-delay="2600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2600"].aos-animate,body[data-aos-delay="2600"] [data-aos].aos-animate{transition-delay:2.6s}[data-aos][data-aos][data-aos-duration="2650"],body[data-aos-duration="2650"] [data-aos]{transition-duration:2.65s}[data-aos][data-aos][data-aos-delay="2650"],body[data-aos-delay="2650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2650"].aos-animate,body[data-aos-delay="2650"] [data-aos].aos-animate{transition-delay:2.65s}[data-aos][data-aos][data-aos-duration="2700"],body[data-aos-duration="2700"] [data-aos]{transition-duration:2.7s}[data-aos][data-aos][data-aos-delay="2700"],body[data-aos-delay="2700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2700"].aos-animate,body[data-aos-delay="2700"] [data-aos].aos-animate{transition-delay:2.7s}[data-aos][data-aos][data-aos-duration="2750"],body[data-aos-duration="2750"] [data-aos]{transition-duration:2.75s}[data-aos][data-aos][data-aos-delay="2750"],body[data-aos-delay="2750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2750"].aos-animate,body[data-aos-delay="2750"] [data-aos].aos-animate{transition-delay:2.75s}[data-aos][data-aos][data-aos-duration="2800"],body[data-aos-duration="2800"] [data-aos]{transition-duration:2.8s}[data-aos][data-aos][data-aos-delay="2800"],body[data-aos-delay="2800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2800"].aos-animate,body[data-aos-delay="2800"] [data-aos].aos-animate{transition-delay:2.8s}[data-aos][data-aos][data-aos-duration="2850"],body[data-aos-duration="2850"] [data-aos]{transition-duration:2.85s}[data-aos][data-aos][data-aos-delay="2850"],body[data-aos-delay="2850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2850"].aos-animate,body[data-aos-delay="2850"] [data-aos].aos-animate{transition-delay:2.85s}[data-aos][data-aos][data-aos-duration="2900"],body[data-aos-duration="2900"] [data-aos]{transition-duration:2.9s}[data-aos][data-aos][data-aos-delay="2900"],body[data-aos-delay="2900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2900"].aos-animate,body[data-aos-delay="2900"] [data-aos].aos-animate{transition-delay:2.9s}[data-aos][data-aos][data-aos-duration="2950"],body[data-aos-duration="2950"] [data-aos]{transition-duration:2.95s}[data-aos][data-aos][data-aos-delay="2950"],body[data-aos-delay="2950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2950"].aos-animate,body[data-aos-delay="2950"] [data-aos].aos-animate{transition-delay:2.95s}[data-aos][data-aos][data-aos-duration="3000"],body[data-aos-duration="3000"] [data-aos]{transition-duration:3s}[data-aos][data-aos][data-aos-delay="3000"],body[data-aos-delay="3000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="3000"].aos-animate,body[data-aos-delay="3000"] [data-aos].aos-animate{transition-delay:3s}[data-aos]{pointer-events:none}[data-aos].aos-animate{pointer-events:auto}[data-aos][data-aos][data-aos-easing=linear],body[data-aos-easing=linear] [data-aos]{transition-timing-function:cubic-bezier(.25,.25,.75,.75)}[data-aos][data-aos][data-aos-easing=ease],body[data-aos-easing=ease] [data-aos]{transition-timing-function:ease}[data-aos][data-aos][data-aos-easing=ease-in],body[data-aos-easing=ease-in] [data-aos]{transition-timing-function:ease-in}[data-aos][data-aos][data-aos-easing=ease-out],body[data-aos-easing=ease-out] [data-aos]{transition-timing-function:ease-out}[data-aos][data-aos][data-aos-easing=ease-in-out],body[data-aos-easing=ease-in-out] [data-aos]{transition-timing-function:ease-in-out}[data-aos][data-aos][data-aos-easing=ease-in-back],body[data-aos-easing=ease-in-back] [data-aos]{transition-timing-function:cubic-bezier(.6,-.28,.735,.045)}[data-aos][data-aos][data-aos-easing=ease-out-back],body[data-aos-easing=ease-out-back] [data-aos]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}[data-aos][data-aos][data-aos-easing=ease-in-out-back],body[data-aos-easing=ease-in-out-back] [data-aos]{transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}[data-aos][data-aos][data-aos-easing=ease-in-sine],body[data-aos-easing=ease-in-sine] [data-aos]{transition-timing-function:cubic-bezier(.47,0,.745,.715)}[data-aos][data-aos][data-aos-easing=ease-out-sine],body[data-aos-easing=ease-out-sine] [data-aos]{transition-timing-function:cubic-bezier(.39,.575,.565,1)}[data-aos][data-aos][data-aos-easing=ease-in-out-sine],body[data-aos-easing=ease-in-out-sine] [data-aos]{transition-timing-function:cubic-bezier(.445,.05,.55,.95)}[data-aos][data-aos][data-aos-easing=ease-in-quad],body[data-aos-easing=ease-in-quad] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-quad],body[data-aos-easing=ease-out-quad] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-quad],body[data-aos-easing=ease-in-out-quad] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos][data-aos][data-aos-easing=ease-in-cubic],body[data-aos-easing=ease-in-cubic] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-cubic],body[data-aos-easing=ease-out-cubic] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-cubic],body[data-aos-easing=ease-in-out-cubic] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos][data-aos][data-aos-easing=ease-in-quart],body[data-aos-easing=ease-in-quart] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-quart],body[data-aos-easing=ease-out-quart] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-quart],body[data-aos-easing=ease-in-out-quart] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}@media screen{html:not(.no-js) [data-aos^=fade][data-aos^=fade]{opacity:0;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}html:not(.no-js) [data-aos^=fade][data-aos^=fade].aos-animate{opacity:1;-webkit-transform:none;transform:none}html:not(.no-js) [data-aos=fade-up]{-webkit-transform:translate3d(0,100px,0);transform:translate3d(0,100px,0)}html:not(.no-js) [data-aos=fade-down]{-webkit-transform:translate3d(0,-100px,0);transform:translate3d(0,-100px,0)}html:not(.no-js) [data-aos=fade-right]{-webkit-transform:translate3d(-100px,0,0);transform:translate3d(-100px,0,0)}html:not(.no-js) [data-aos=fade-left]{-webkit-transform:translate3d(100px,0,0);transform:translate3d(100px,0,0)}html:not(.no-js) [data-aos=fade-up-right]{-webkit-transform:translate3d(-100px,100px,0);transform:translate3d(-100px,100px,0)}html:not(.no-js) [data-aos=fade-up-left]{-webkit-transform:translate3d(100px,100px,0);transform:translate3d(100px,100px,0)}html:not(.no-js) [data-aos=fade-down-right]{-webkit-transform:translate3d(-100px,-100px,0);transform:translate3d(-100px,-100px,0)}html:not(.no-js) [data-aos=fade-down-left]{-webkit-transform:translate3d(100px,-100px,0);transform:translate3d(100px,-100px,0)}html:not(.no-js) [data-aos^=zoom][data-aos^=zoom]{opacity:0;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}html:not(.no-js) [data-aos^=zoom][data-aos^=zoom].aos-animate{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}html:not(.no-js) [data-aos=zoom-in]{-webkit-transform:scale(.6);transform:scale(.6)}html:not(.no-js) [data-aos=zoom-in-up]{-webkit-transform:translate3d(0,100px,0) scale(.6);transform:translate3d(0,100px,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-down]{-webkit-transform:translate3d(0,-100px,0) scale(.6);transform:translate3d(0,-100px,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-right]{-webkit-transform:translate3d(-100px,0,0) scale(.6);transform:translate3d(-100px,0,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-left]{-webkit-transform:translate3d(100px,0,0) scale(.6);transform:translate3d(100px,0,0) scale(.6)}html:not(.no-js) [data-aos=zoom-out]{-webkit-transform:scale(1.2);transform:scale(1.2)}html:not(.no-js) [data-aos=zoom-out-up]{-webkit-transform:translate3d(0,100px,0) scale(1.2);transform:translate3d(0,100px,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-down]{-webkit-transform:translate3d(0,-100px,0) scale(1.2);transform:translate3d(0,-100px,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-right]{-webkit-transform:translate3d(-100px,0,0) scale(1.2);transform:translate3d(-100px,0,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-left]{-webkit-transform:translate3d(100px,0,0) scale(1.2);transform:translate3d(100px,0,0) scale(1.2)}html:not(.no-js) [data-aos^=slide][data-aos^=slide]{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;visibility:hidden}html:not(.no-js) [data-aos^=slide][data-aos^=slide].aos-animate{visibility:visible;-webkit-transform:translateZ(0);transform:translateZ(0)}html:not(.no-js) [data-aos=slide-up]{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}html:not(.no-js) [data-aos=slide-down]{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}html:not(.no-js) [data-aos=slide-right]{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}html:not(.no-js) [data-aos=slide-left]{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}html:not(.no-js) [data-aos^=flip][data-aos^=flip]{-webkit-backface-visibility:hidden;backface-visibility:hidden;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}html:not(.no-js) [data-aos=flip-left]{-webkit-transform:perspective(2500px) rotateY(-100deg);transform:perspective(2500px) rotateY(-100deg)}html:not(.no-js) [data-aos=flip-left].aos-animate{-webkit-transform:perspective(2500px) rotateY(0);transform:perspective(2500px) rotateY(0)}html:not(.no-js) [data-aos=flip-right]{-webkit-transform:perspective(2500px) rotateY(100deg);transform:perspective(2500px) rotateY(100deg)}html:not(.no-js) [data-aos=flip-right].aos-animate{-webkit-transform:perspective(2500px) rotateY(0);transform:perspective(2500px) rotateY(0)}html:not(.no-js) [data-aos=flip-up]{-webkit-transform:perspective(2500px) rotateX(-100deg);transform:perspective(2500px) rotateX(-100deg)}html:not(.no-js) [data-aos=flip-up].aos-animate{-webkit-transform:perspective(2500px) rotateX(0);transform:perspective(2500px) rotateX(0)}html:not(.no-js) [data-aos=flip-down]{-webkit-transform:perspective(2500px) rotateX(100deg);transform:perspective(2500px) rotateX(100deg)}html:not(.no-js) [data-aos=flip-down].aos-animate{-webkit-transform:perspective(2500px) rotateX(0);transform:perspective(2500px) rotateX(0)}} diff --git a/assets/aos-5fd85eb2.css b/assets/aos-5fd85eb2.css new file mode 100644 index 0000000..462a918 --- /dev/null +++ b/assets/aos-5fd85eb2.css @@ -0,0 +1 @@ +@charset "UTF-8";*,*:before,*:after{box-sizing:border-box}body,h1,h2,h3,h4,h5,h6,p{margin:0}ul{margin:0;padding:0;list-style:none}a{text-decoration:none}button{cursor:pointer}img{display:block;width:100%;height:100%}address{font-style:normal}@font-face{font-family:Inter;src:url(/project-recipes/assets/Inter-VariableFont_slnt_wght-b9a8e5e2.ttf) format("truetype")}html{scroll-behavior:smooth}body{font-family:Inter,sans-serif;color:#050505;transition-duration:.15s}body.dark-theme{background-color:#161616}.container{max-width:375px;margin:0 auto;padding:0 20px}@media screen and (min-width: 768px){.container{max-width:768px;padding:0 32px}}@media screen and (min-width: 1280px){.container{max-width:1280px;padding:0 100px}}.section{padding:40px 0}@media screen and (min-width: 768px){.section{padding:64px 0}}.d-none{display:none!important}.is-hidden{position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;white-space:nowrap;clip-path:inset(100%);clip:rect(0 0 0 0);overflow:hidden}.hidden-backdrop{opacity:0;pointer-events:none;visibility:hidden;transition-duration:.3s}.hidden-modal{transform:translate(-50%,-50%) scale(.9)!important;-webkit-transform:translate(-50%,-50%) scale(.9)!important;-moz-transform:translate(-50%,-50%) scale(.9)!important;-ms-transform:translate(-50%,-50%) scale(.9)!important;-o-transform:translate(-50%,-50%) scale(.9)!important;transition-duration:.3s}.opened-backdrop{opacity:1;pointer-events:all;visibility:visible;transition-duration:.3s}.opened-modal{transform:translate(-50%,-50%) scale(1)!important;-webkit-transform:translate(-50%,-50%) scale(1)!important;-moz-transform:translate(-50%,-50%) scale(1)!important;-ms-transform:translate(-50%,-50%) scale(1)!important;-o-transform:translate(-50%,-50%) scale(1)!important;transition-duration:.3s}@font-face{font-family:Inter;src:url(/project-recipes/assets/Inter-VariableFont_slnt_wght-b9a8e5e2.ttf) format("truetype")}body.no-scroll{overflow-y:hidden;height:100%}.list{list-style:none}.header-container{padding:24px 20px 0}.dark-theme .logo{color:#f8f8f8}.logo{font-weight:600;font-size:16px;line-height:1.125;letter-spacing:-.64px;color:#050505}.logo>span{color:#9bb537}.header-nav{display:none}.checkbox-theme{position:absolute;top:-40px}.header-container{position:relative;display:flex;align-items:center;justify-content:space-between}.header-buttons{display:flex;gap:14px;align-items:center}.header-order-btn{stroke:#050505;fill:transparent;background-color:transparent;border-color:transparent;padding:0;font-family:none}.header-order-btn svg{transition-duration:.15s}.header-order-btn:hover svg{stroke:#9bb537}.dark-theme .header-order-btn{stroke:#f8f8f8}.header-menu-btn{stroke:#050505;background-color:transparent;border-color:transparent;padding:0;line-height:.5;font-family:none}.header-menu-btn:focus,.header-menu-btn:hover{color:#9bb537;transition:color .25s cubic-bezier(.4,0,.2,1)}.dark-theme .header-menu-btn{stroke:#f8f8f8}.mob-menu.is-open{display:flex;flex-direction:column;justify-content:space-between;left:30%;opacity:1;transition:left .25s ease,opacity 0ms ease}.mob-menu{opacity:0;display:flex;flex-direction:column;justify-content:space-between;position:fixed;z-index:3;top:0;left:100%;width:70%;height:100%;background:#9bb537;padding:20px;transition:left .25s ease,opacity 2s ease}.dark-theme .mob-menu{background:#050505}.mob-close-btn{position:absolute;top:20px;right:20px;background-color:transparent;border-color:transparent;stroke:#f8f8f8;padding:0;font-family:none}.mob-header-nav{text-align:center;margin-top:200px;margin-bottom:auto}.mob-nav-list-item{font-weight:500;font-size:12px;color:#f8f8f8}.mob-nav-list-item:focus,.mob-nav-list-item:hover{color:#fff;transition:color .25s cubic-bezier(.4,0,.2,1)}.active-page{color:#fff}.dark-theme .active-page{color:#9bb537}.mob-nav-list-item:not(:last-child){margin-bottom:14px}.nav-item:after{content:"";width:100%;height:2px;display:block;margin-top:5px;background-color:#9bb537;transition-duration:.3s;transform:scaleX(0);-webkit-transform:scaleX(0);-moz-transform:scaleX(0);-ms-transform:scaleX(0);-o-transform:scaleX(0);transform-origin:left}.nav-item:hover:after{transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1);-ms-transform:scaleX(1);-o-transform:scaleX(1)}@media screen and (min-width: 768px){.header-container{padding:30px 32px 0;display:flex;align-items:center;justify-content:space-between;margin:0 auto}.mob-menu{display:none}.checkbox-theme{position:relative;top:unset}.header-buttons{gap:18px}.header-nav{display:inline-block}.header-menu-btn{display:none}.logo{font-size:18px;font-style:normal;font-weight:600;line-height:1.11;letter-spacing:-.72px}.nav-list{display:flex;gap:16px}.nav-list-item{position:relative;font-size:12px;font-style:normal;font-weight:400;line-height:normal;color:#050505;padding:10px 0}.dark-theme .nav-list-item{color:#f8f8f8}.dark-theme .nav-list-item.active-page,.active-page{color:#9bb537}}@media screen and (min-width: 1280px){.header-container{max-width:1080px;padding:42px 0 0}.nav-list-item{font-weight:500}}.hero{max-width:375px;padding:90px 20px 0;overflow:hidden}@media screen and (min-width: 768px){.hero{max-width:768px;padding:90px 32px 0}}@media screen and (min-width: 1280px){.hero{max-width:1280px;padding:90px 100px 0}}.hero-container{display:flex;flex-direction:column}@media screen and (min-width: 1280px){.hero-container{flex-direction:row;gap:32px}}.hero-text-wrap{width:335px;margin-bottom:48px}@media screen and (min-width: 768px){.hero-text-wrap{width:446px;margin-bottom:64px}}@media screen and (min-width: 1280px){.hero-text-wrap{margin-top:65px}}.hero-title{font-family:Inter,sans-serif;font-size:26px;text-transform:uppercase;font-weight:600;margin-bottom:14px;line-height:120%}.hero-title .hero-item{font-style:oblique;font-weight:400;color:#9bb537}@media screen and (min-width: 768px){.hero-title{font-size:36px;margin-bottom:16px}}@media screen and (min-width: 1280px){.hero-title{width:446px}}.dark-theme .hero-title{color:#f8f8f8}.hero-text{font-size:14px;font-weight:400;margin-bottom:28px;line-height:1.3em}@media screen and (min-width: 768px){.hero-text{font-size:16px;margin-bottom:32px;width:408px}}.dark-theme .hero-text{color:#f8f8f8}.hero-btn{width:111px;height:37px;font-size:14px;border:1px solid #9bb537;background-color:#f8f8f8;color:#050505;font-weight:500;border-radius:12px;padding:10px 20px;transition:background-color,color,.25s cubic-bezier(.4,0,.2,1)}.hero-btn:focus,.hero-btn:hover{background-color:#9bb537;color:#f8f8f8}@media screen and (min-width: 768px){.hero-btn{width:127px;height:45px;font-size:15px;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}}.dark-theme .hero-btn{color:#f8f8f8;background-color:#161616;transition:background-color,color,.25s cubic-bezier(.4,0,.2,1)}.dark-theme .hero-btn:focus,.dark-theme .hero-btn:hover{background-color:#9bb537;color:#f8f8f8}.hero-img-wrap{display:flex;flex-direction:row;width:497px;height:302px}@media screen and (min-width: 768px){.hero-img-wrap{width:871px;height:468px}}.swiper-slide-wrp{display:flex;gap:16px}.cook-card-wrap{width:80px}.cook-card-wrap .cook-card{border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;object-fit:cover}@media screen and (min-width: 768px){.cook-card-wrap{width:137px;height:442px}}.dish-card-wrap{background-color:#050505;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;width:185px;height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center}.dish-card-wrap .dish-card{object-fit:contain;width:157px;height:142px;margin-bottom:10px}@media screen and (min-width: 768px){.dish-card-wrap .dish-card{width:262px;height:262px}}.dish-card-wrap .dish-name{font-size:10px;font-weight:500;line-height:1.16em;text-transform:uppercase;color:#f8f8f880;margin-bottom:8px;width:156px;text-align:center}@media screen and (min-width: 768px){.dish-card-wrap .dish-name{width:300px;font-size:14px}}.dish-card-wrap .dish-area{font-size:8px;color:#f8f8f833}@media screen and (min-width: 768px){.dish-card-wrap .dish-area{font-size:12px}}@media screen and (min-width: 768px){.dish-card-wrap{width:351px;height:442px}}.dish-big-wrap{background-color:#050505;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;width:185px;height:280px;margin-right:16px;overflow:hidden}.dish-big-wrap .dish-big{display:block;height:150%;object-fit:cover;object-position:50% 10%}@media screen and (min-width: 768px){.dish-big-wrap{height:442px;width:351px}}.swiper-pagination-horizontal{margin:-10px -60px!important}@media screen and (min-width: 768px){.swiper-pagination-horizontal{margin:-10px -110px!important}}span.swiper-pagination-bullet{opacity:1;background-color:#050505cc}.dark-theme span.swiper-pagination-bullet{opacity:1;background-color:#f8f8f8}span.swiper-pagination-bullet-active,.dark-theme span.swiper-pagination-bullet-active{background:#9bb537;opacity:1}.catalog-container{margin-top:80px}@media screen and (min-width: 768px){.catalog-container{display:flex;justify-content:center}}@media screen and (min-width: 1280px){.catalog-container{margin-top:100px}}@media screen and (min-width: 768px) and (max-width: 1280px){.left-column{margin-right:32px}}@media screen and (min-width: 768px){.left-column{margin-top:26px}}@media screen and (min-width: 1280px){.left-column{margin-top:24px}}.categories>button{padding:13px 28px;border-radius:15px;border:1px solid rgba(5,5,5,.2);background-color:inherit;color:#05050580;font-family:inherit;font-size:18px;font-style:normal;font-weight:500;line-height:normal}.categories>button:hover,.categories>button:focus,.categories>button.active-category{color:#f8f8f8;background-color:#9bb537;border-color:#9bb537}.dark-theme .categories>button{border-color:#fff3;color:#f8f8f8}.categories ul{margin-top:24px;height:198px;overflow-y:scroll}.categories ul::-webkit-scrollbar{max-width:6px}.categories ul::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.categories ul::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.categories ul::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}@media screen and (min-width: 768px){.categories ul{margin-top:30px;width:176px;height:416px}}@media screen and (min-width: 1280px){.categories ul{margin-top:42px;width:235px}}.dark-theme .categories ul::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .categories ul::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.categories li{list-style:none;margin:0;padding:0}.categories li:not(:first-child){margin-top:24px}.categories li button{margin:0;padding:0;border:0;background-color:inherit;gap:24px;color:#0505054d;font-family:inherit;font-size:16px;font-weight:500;line-height:1.25;transition-duration:.15s}.dark-theme .categories li button{color:#ffffff4d}.categories li button:hover,.categories li button:focus,.categories li button.active-category{color:#9bb537}.all-categories-btn{transition-duration:.15s}.section-popular-recipes{margin-top:40px}.popular-recipes-title{font-weight:600;font-size:18px;line-height:1.3333333333;margin-bottom:20px}.gallery-popular-recipes{flex-direction:column;gap:24px;display:flex}.popular-recipes-list{flex-flow:row;align-items:center;display:flex;column-gap:16px;cursor:pointer;border-radius:8px;transition-duration:.3s;max-width:235px}.popular-recipes-list:is(:hover,:focus){scale:1.01;-webkit-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);-moz-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);box-shadow:-12px 12px 5px #0505054d}.dark-theme .popular-recipes-list:is(:hover,:focus){scale:1.01;-webkit-box-shadow:0px 0px 35px -4px rgb(155,181,55);-moz-box-shadow:0px 0px 35px -4px rgb(155,181,55);box-shadow:0 0 35px -4px #9bb537}.popular-img{width:64px;height:64px;border-radius:8px;margin-left:16px}.popular-title{font-size:14px;font-weight:600;line-height:1.2857142857;text-transform:uppercase;margin-bottom:8px;text-overflow:ellipsis;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.popular-recipes-text{text-overflow:ellipsis;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;font-size:12px;line-height:1.6;display:-webkit-box;overflow:hidden;color:#050505cc}.dark-theme .popular-title{color:#f8f8f8}.dark-theme .popular-recipes-text{color:#ffffff80}.dark-theme .popular-recipes-title{color:#f8f8f8}@media screen and (min-width: 768px){.section-popular-recipes{margin-top:64px}.popular-recipes-title{margin-bottom:32px}.popular-recipes-text{font-size:10px;line-height:1.4}.popular-img{margin-left:8px}}@media screen and (min-width: 768px) and (max-width: 1280px){.gallery-popular-recipes{gap:16px}.popular-img{width:48px;height:48px}.popular-recipes-list{column-gap:8px}}@media screen and (min-width: 1280px){.section-popular-recipes{margin-top:40px}.gallery-popular-recipes{gap:32px}.popular-img{margin-left:0}}.wrap-recipes-list{position:relative;margin-top:20px;margin-bottom:40px;min-height:2130px}@media screen and (min-width: 768px){.wrap-recipes-list{margin-top:14px;margin-bottom:64px;min-height:1104px}}@media screen and (min-width: 1280px){.wrap-recipes-list{min-height:957px;margin-bottom:0}}.wrap-recipes-list .recipe-list{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:24px}@media screen and (min-width: 768px){.wrap-recipes-list .recipe-list{flex-direction:row;gap:16px;flex-wrap:wrap}}@media screen and (min-width: 1280px){.wrap-recipes-list .recipe-list{gap:20px 16px;width:782px;margin-left:auto}}.recipe-item{border-radius:8px;width:335px;height:335px;position:relative;overflow:hidden;transition-duration:.3s;margin-top:0!important}.recipe-item:is(:hover,:focus){scale:1.01;-webkit-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);-moz-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);box-shadow:-12px 12px 5px #0505054d}.dark-theme .recipe-item:is(:hover,:focus){-webkit-box-shadow:0px 0px 35px -4px rgb(155,181,55);-moz-box-shadow:0px 0px 35px -4px rgb(155,181,55);box-shadow:0 0 35px -4px #9bb537}@media screen and (min-width: 768px){.recipe-item{width:240px;height:264px}}@media screen and (min-width: 1280px){.recipe-item{width:250px;height:287px}}.recipe-item .recipe-img{object-fit:cover}.recipe-wrap{position:absolute;top:0;padding:16px;width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(1deg,rgba(5,5,5,.6) 0%,rgba(5,5,5,0) 100%),transparent -25px -10px/116.716% 114.018% no-repeat}.recipe-wrap .recipe-favorite-btn{display:block;margin-left:auto;background-color:transparent;border:0px}.recipe-wrap .recipe-name{color:#f8f8f8;font-size:14px;font-weight:600;line-height:1.28;text-transform:uppercase;margin-bottom:8px;text-overflow:ellipsis;-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.recipe-wrap .recipe-description{height:32px;width:303px;color:#f8f8f8;font-size:12px;font-weight:400;line-height:1.33;margin-bottom:16px;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}@media screen and (min-width: 768px){.recipe-wrap .recipe-description{width:208px}}@media screen and (min-width: 1280px){.recipe-wrap .recipe-description{width:218px}}.dark-theme .recipe-wrap{background:linear-gradient(1deg,#050505 0%,rgba(5,5,5,0) 100%),transparent -21.392px -15.958px/120.272% 116.336% no-repeat}.recipe-rating-wrap{display:flex;justify-content:space-between;align-items:center}.recipe-rating-wrap .recipe-rating{color:#f8f8f8;font-size:14px;font-weight:500;line-height:1.28;display:flex;justify-content:center;align-items:center}.recipe-rating-wrap .recipe-stars-icon{display:flex;justify-content:center;align-items:center;margin-left:4px}.recipe-rating-wrap .recipe-see{display:flex;padding:8px 14px;justify-content:center;align-items:center;border-radius:8px;color:#f8f8f8;background-color:#9bb537;border:0px;font-family:Inter;font-size:12px;font-weight:500;line-height:normal;transition-duration:.3s}.recipe-rating-wrap .recipe-see:is(:hover,:focus){color:#050505}.recipe-pagination{display:flex;justify-content:center;align-items:center;gap:3px}@media screen and (min-width: 768px){.recipe-pagination{gap:24px}}.recipe-pagination .wrap{display:flex;justify-content:center;align-items:center;gap:2px}@media screen and (min-width: 768px){.recipe-pagination .wrap{gap:8px}}.inner-wrap{display:flex;justify-content:center;align-items:center;gap:2px}@media screen and (min-width: 768px){.inner-wrap{gap:10px}}.pagination-btn{color:#050505;font-family:Inter;font-size:18px;font-weight:600;line-height:1.22;display:flex;justify-content:center;align-items:center;width:40px;height:40px;border-radius:50%;border:1px solid rgba(5,5,5,.3);background-color:#f8f8f8;transition-duration:.3s}.pagination-btn:is(:hover,:focus){border:1px solid #9bb537;background-color:#9bb537}@media screen and (min-width: 768px){.pagination-btn{width:44px;height:44px}}.dark-theme .pagination-btn{color:#f8f8f8;background-color:#161616;border:1px solid rgba(255,255,255,.3)}.dark-theme .pagination-btn:is(:hover,:focus){background-color:#9bb537;border:1px solid #9bb537}.right-icons{display:flex;justify-content:center;align-items:center}.right-icons .right-icon-itm{stroke-width:0;stroke:#050505;fill:#050505}.left-icons{display:flex;justify-content:center;align-items:center}.left-icons .left-icon-itm{stroke-width:0;stroke:#ffffff80;fill:#ffffff80}.left-wrap .pagination-btn{background-color:#050505;border:1px solid #050505}.left-wrap .pagination-btn:is(:hover,:focus){background-color:#050505;border:1px solid #9bb537}.right-wrap .pagination-btn{background-color:#9bb537;border:1px solid #9bb537}.right-wrap .pagination-btn:is(:hover,:focus){border:1px solid #050505}.current-pagi-page,.dark-theme .current-pagi-page{background-color:#9bb537}.resipe-list-empty{display:flex;justify-content:center;align-items:center;gap:40px}@media screen and (min-width: 768px){.resipe-list-empty{margin-top:20px;flex-direction:column;gap:80px}}.dark-theme .resipe-list-message{color:#f8f8f8}.heart-icon{fill:transparent;opacity:.5;transition-duration:.3s}.heart-icon:is(:hover,:focus){fill:#f8f8f8;opacity:1}.added-heart-icon{fill:#f8f8f8;opacity:1}.dark-theme .search-label{color:#ffffff80}.dark-theme .search-input{color:#ffffff80;border-color:#fff3}.dark-theme .search-input::placeholder,.dark-theme .search-input::-webkit-input-placeholder{color:#ffffff80}.dark-theme .search-icon{fill:#ffffff80}.dark-theme .extra-select{border-color:#fff3}.dark-theme .selected-option{color:#ffffff80}.dark-theme .arrow-down{stroke:#ffffff80}.dark-theme .reset-text{color:#ffffff80}.dark-theme .extra-options-list{background-color:#050505}.dark-theme .extra-options-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .extra-options-list::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.dark-theme .extra-options-item{color:#ffffff4d}.dark-theme .current-option{color:#f8f8f8}@media screen and (max-width: 767px){.search-filter{margin-top:40px}}@media screen and (min-width: 1280px){.search-filter{display:flex;align-items:baseline;justify-content:center}}.search-input-container{position:relative;width:100%}@media screen and (min-width: 768px){.search-input-container{width:278px}}.search-label{display:block;-webkit-user-select:none;user-select:none;font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:12px;line-height:1.1666666667}@media screen and (min-width: 768px){.search-label{font-size:14px;line-height:1.2857142857}}.search-input{width:100%;border:1px solid rgba(5,5,5,.2);padding:14px 14px 14px 48px;margin-top:8px;font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:14px;line-height:1.2857142857;outline:none;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;transition-duration:.15s;background:transparent}.search-input:focus{border-color:#9bb537}.search-input::placeholder,.search-input ::-webkit-input-placeholder{font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:14px;line-height:1.2857142857}@media screen and (min-width: 768px){.search-input::placeholder,.search-input ::-webkit-input-placeholder{font-size:16px;line-height:1.25}}@media screen and (min-width: 768px){.search-input{font-size:16px;line-height:1.25}}.extra-wrapper{z-index:100!important}@media screen and (min-width: 1280px){.extra-wrapper{margin-left:16px}}.extra-filters-list{display:flex;flex-wrap:wrap;gap:16px}@media screen and (max-width: 1280px){.extra-filters-list{margin-top:14px}}@media screen and (min-width: 768px) and (max-width: 1280px){.extra-filters-list{flex-wrap:nowrap}}@media screen and (min-width: 1280px){.extra-filters-list{flex-wrap:nowrap}}.extra-select{position:relative;width:160px;margin-top:8px;padding:14px 18px;border:1px solid rgba(5,5,5,.2);display:flex;justify-content:center;align-items:center;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;cursor:pointer;transition-duration:.15s;-webkit-user-select:none;user-select:none}.extra-default{width:100%;display:flex;justify-content:space-between}.selected-option{font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:14px;line-height:1.2857142857;white-space:nowrap}.extra-options-list{position:absolute;top:105%;left:0;overflow-y:auto;overflow-x:hidden;z-index:10;width:100%;max-height:176px;background-color:#f8f8f8;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;box-shadow:0 4px 36px #00000005;transition-duration:.15s;transform-origin:top;transform:scaleY(0);-webkit-transform:scaleY(0);-moz-transform:scaleY(0);-ms-transform:scaleY(0);-o-transform:scaleY(0)}.extra-options-list::-webkit-scrollbar{max-width:6px}.extra-options-list::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.extra-options-list::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.extra-options-list::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}.extra-options-item{padding:8px;font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:14px;line-height:1.2857142857;color:#0505054d;transition-duration:.15s;cursor:pointer}.extra-options-item:hover{color:#9bb537;transform:translate(1px);-webkit-transform:translateX(1px);-moz-transform:translateX(1px);-ms-transform:translateX(1px);-o-transform:translateX(1px)}@media screen and (min-width: 768px){.extra-options-item{font-size:16px;line-height:1.25}}.search-icon{position:absolute;left:18px;top:55%;fill:#05050580;pointer-events:none}.arrow-down{stroke:#05050580;fill:transparent;transition-duration:.3s}.reset-btn-container{margin-top:14px;margin-left:auto}.reset-btn{display:flex;align-items:center;gap:4px;padding:5px;margin-left:auto;border:none;background-color:transparent}.reset-btn:hover .reset-text{color:#9bb537}.reset-icon{stroke:#9bb537}.reset-text{font-family:Inter,sans-serif;font-weight:500;font-size:16px;line-height:1.25;color:#05050580;font-size:12px;transition-duration:.15s}.current-option{color:#050505}.opened{border-color:#9bb537!important}.opened .arrow-down{transform:rotateX(180deg);-webkit-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-o-transform:rotateX(180deg);stroke:#9bb537}.opened-list{transform:scaleY(1);-webkit-transform:scaleY(1);-moz-transform:scaleY(1);-ms-transform:scaleY(1);-o-transform:scaleY(1)}@media screen and (max-width: 375px){.favorites-page-container{padding:0}}.favorites-conteiner{max-width:375px;margin:40px auto 0}@media screen and (min-width: 768px){.favorites-conteiner{max-width:704px}}@media screen and (min-width: 1280px){.favorites-conteiner{max-width:1080px}}.favorites-heroImg{border-radius:28px;overflow:hidden;width:100%}.favorites-instead{display:flex;justify-content:center;align-items:center;height:80vh;width:100%}@media screen and (min-width: 768px){.favorites-instead{height:50vh;align-items:initial;margin-top:60px}}.hatDescroiption-div{text-align:center}@media screen and (min-width: 768px){.hatDescroiption-div{width:481px}}.favorites-divSvg{display:flex;justify-content:center;margin-bottom:24px}@media screen and (min-width: 768px){.favorites-divSvg{margin-bottom:43px}}.hatDescroiption{font-size:14px;font-weight:400;line-height:18px;letter-spacing:0em}@media screen and (min-width: 768px){.hatDescroiption{font-size:16px;line-height:24px}}.dark-theme .hatDescroiption{color:#f8f8f880}.dark-theme .favorites-categoris-item{color:#f8f8f880;border-color:#f8f8f880}.favorites-categoris-list{margin-top:40px;margin-bottom:24px}.favorites-categoris-item{cursor:pointer;display:inline-block;padding:13px 28px;border-radius:15px;border:1px solid rgba(5,5,5,.2);background-color:inherit;color:#05050580;font-family:inherit;font-size:18px;font-style:normal;font-weight:500;line-height:normal;transition-duration:.15s;min-width:fit-content}.favorites-categoris-item:not(:last-child){margin-right:12px}.favorites-categoris-choosen{border:1px solid #9bb537;background-color:#9bb537;color:#f8f8f8}.favorites-dishes-conteiner{min-height:623px}.favorites-dishes{display:flex;flex-direction:column;gap:24px;justify-content:center;align-items:center}@media screen and (min-width: 768px){.favorites-dishes{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px}}@media screen and (max-width: 375px){.recipe-item-favorites{width:300px;height:300px}}@media screen and (min-width: 768px){.recipe-item-favorites{justify-content:space-between;width:224px;height:244px}}@media screen and (min-width: 1280px){.recipe-item-favorites{justify-content:space-between;width:258px;height:287px}}.recipe-item-favorites:not(:first-child){margin-top:24px}@media screen and (min-width: 768px){.recipe-item-favorites:not(:first-child){margin-top:0}}@media screen and (min-width: 768px){#recipe-see-favorites{padding:8px 6px}}@media screen and (min-width: 1280px){#recipe-see-favorites{padding:8px 14px}}.favorites-categoris-conteiner{margin-bottom:6px;width:100%;overflow-x:scroll}.favorites-categoris-conteiner::-webkit-scrollbar{max-width:6px}.favorites-categoris-conteiner::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.favorites-categoris-conteiner::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.favorites-categoris-conteiner::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}.favorites-categoris-list{display:inline-flex;padding:0;list-style:none}.dark-theme .favorites-categoris-conteiner::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .favorites-categoris-conteiner::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.dark-theme .favorites-categoris-item{color:#f8f8f8}.favorites-categoris-item:hover{color:#f8f8f8;background-color:#9bb537}.recipe-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100;background-color:#05050580;overflow:auto}.modal{z-index:100;position:absolute;top:75%;left:50%;transform:translate(-50%,-40%);-webkit-transform:translate(-50%,-40%);-moz-transform:translate(-50%,-40%);-ms-transform:translate(-50%,-40%);-o-transform:translate(-50%,-40%);transition-duration:.3s;overflow-y:auto}@media screen and (max-width: 375px){.modal{top:90%;max-width:100vw}}@media screen and (min-width: 768px){.modal{top:50%}}.recipe-content{width:335px;padding:40px 20px;border-radius:15px;background-color:#f8f8f8;overflow-y:auto}@media screen and (min-width: 768px){.recipe-content{width:531px;padding:32px}}.dark-theme .recipe-content{background-color:#050505}.recipe-btn-close{cursor:pointer;position:fixed;border:none;float:right;font-size:12px;font-weight:700;top:14px;right:14px;background-color:#f8f8f8}.recipe-btn-close:is(:hover,:focus) .reciepe-close-icon{stroke:#9bb537}.dark-theme .recipe-btn-close{background-color:#050505}.recipe-backdrop.visible .recipe-content{opacity:1;transition-delay:.3s}.reciepe-close-icon{stroke:#050505;transition-duration:.15s}.dark-theme .reciepe-close-icon{stroke:#f8f8f8}.modal-recipe-btn{column-gap:14px;display:flex}.favorite-btn{background-color:#9bb537;color:#f8f8f8;border:#9bb537;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:normal;border-radius:15px;padding:12px 24px}.favorite-btn:focus,.favorite-btn:hover{color:#050505}.give-rating-btn{color:#050505;border:1px solid #9bb537;background-color:#0000;border-radius:15px;padding:12px 24px;font-size:14px;font-weight:500}.dark-theme .give-rating-btn{color:#f8f8f8}.video-title{display:flex;flex-direction:column}.recipe-video{border-radius:8px;width:295px;height:295px;margin-bottom:20px}@media screen and (min-width: 768px){.recipe-video{margin-bottom:16px}}@media screen and (min-width: 768px){.recipe-video{width:467px;height:250px}}.recipe-container,.video-title{display:flex;flex-direction:column}.modal-recipe-title{font-family:Inter;font-size:18px;font-style:normal;font-weight:600;line-height:1.3333333333;text-transform:uppercase;color:#050505;margin-bottom:14px}@media screen and (min-width: 768px){.modal-recipe-title{margin-bottom:16px;order:-1}}.dark-theme .modal-recipe-title{color:#f8f8f8}.modal-recipe-cooking{display:flex;gap:16px;margin-bottom:32px;align-items:center;justify-content:space-between}.modal-recipe-rating{color:#05050580;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:1.2857142857;display:flex;gap:6px}.dark-theme .modal-recipe-rating{color:#ffffff80}.modal-recipe-time{color:#05050580;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:1.2857142857}.dark-theme .modal-recipe-time{color:#ffffff80}.overflow-scroll{height:180px;overflow-y:auto;margin-bottom:40px}@media screen and (min-width: 768px){.overflow-scroll{margin-bottom:32px}}.overflow-scroll::-webkit-scrollbar{max-width:6px}.overflow-scroll::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.overflow-scroll::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.overflow-scroll::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}.dark-theme .overflow-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .overflow-scroll::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.modal-ingredients{flex-wrap:wrap;row-gap:24px;display:flex}.list-item-recipe{width:280px;flex-wrap:wrap;gap:14px;justify-content:space-between;display:flex;position:relative}@media screen and (min-width: 768px){.list-item-recipe{width:450px}}.modal-recipe-ingredients{color:#050505;font-size:14px;line-height:1.2857142857}.dark-theme .modal-recipe-ingredients{color:#ffffff80}.modal-recipe-measure{color:#05050580;font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:1.2857142857}.dark-theme .modal-recipe-measure{color:#ffffff80}.list-item-recipe:after{content:"";width:100%;border:1px solid rgba(5,5,5,.1);position:absolute;bottom:-10px;left:0}.dark-theme .list-item-recipe:after{border:1px solid rgba(255,255,255,.1)}.modal-recipe-tag{flex-wrap:wrap;gap:10px 8px;margin-bottom:24px;display:flex}@media screen and (min-width: 768px){.modal-recipe-tag{order:-1}}.recipe-tag-item{color:#050505;border-radius:35px;border:1px solid rgba(5,5,5,.2);padding:8px 16px;font-size:12px;font-style:normal;font-weight:500;line-height:1.1666666667}.dark-theme .recipe-tag-item{color:#f8f8f8;border:1px solid rgba(255,255,255,.2)}.modal-recipe-text{width:295px;color:#050505cc;font-family:Inter;font-size:14px;font-style:normal;font-weight:400;line-height:1.2857142857;margin-bottom:40px;max-height:100px;overflow:auto;text-overflow:ellipsis}@media screen and (min-width: 768px){.modal-recipe-text{width:467px;margin-bottom:32px}}.modal-recipe-text::-webkit-scrollbar{max-width:6px}.modal-recipe-text::-webkit-scrollbar-track{background:transparent;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;margin:10px 0}.modal-recipe-text::-webkit-scrollbar-thumb{background:rgba(5,5,5,.1019607843);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.modal-recipe-text::-webkit-scrollbar-thumb:hover{background:rgba(5,5,5,.3019607843)}.dark-theme .modal-recipe-text{color:#ffffff80}.dark-theme .modal-recipe-text::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1019607843)}.dark-theme .modal-recipe-text::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.3019607843)}.order-now-backdrop{position:fixed;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100vw;height:100vh;background-color:#2e2f4266;overflow:hidden;z-index:2;background:rgba(22,22,22,.9)}.order-now-modal{display:flex;flex-direction:column;max-width:320px;opacity:1;padding:28px 20px;background-color:#f8f8f8;overflow:hidden;width:335px;height:582px;margin:auto;position:absolute;top:50%;left:50%;box-shadow:0 1px 1px #00000024,0 1px 3px #0000001f,0 2px 1px #0003;border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px;transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%)}.order-now-modal-title{margin:0;font-weight:600;font-size:18px;line-height:1.2;text-transform:uppercase;color:#050505;overflow:hidden}@media screen and (min-width: 375px){.order-now-modal-title{margin-bottom:40px}.order-now-modal-form input,textarea{width:270px}.order-now-modal-form textarea{margin-bottom:40px}}@media screen and (max-width: 375px){.order-now-modal-title{margin-bottom:15px}.order-now-modal-form input,textarea{width:250px}.order-now-modal-form textarea{margin-bottom:15px}}.order-now-modal-close-btn{position:absolute;top:14px;right:14px;cursor:pointer;background:none;border:none}.order-now-modal-form{display:flex;justify-content:center;flex-direction:column;overflow:hidden}.order-now-modal-form label:not(:last-of-type){margin-bottom:16px}.order-now-modal-form span{display:block;margin-bottom:8px;font-size:14px;line-height:1.2;color:#05050580}.order-now-modal-form-input{padding:14px 18px;height:43px;transition-duration:.15s}.dark-theme .order-now-modal-form-input{color:#f8f8f8}.order-now-modal-form input,textarea{font-family:Inter,sans-serif;border:1px solid rgba(5,5,5,.2);border-radius:15px;-webkit-border-radius:15px;-moz-border-radius:15px;-ms-border-radius:15px;-o-border-radius:15px}.order-now-modal-form textarea{padding:14px 18px;height:100px;resize:none;transition-duration:.15s}.order-now-modal-form textarea:hover,.order-now-modal-form textarea:focus{border:1px solid #9bb537}.dark-theme .order-now-modal-form textarea:is(:hover,:focus){border:1px solid #9bb537;color:#f8f8f8}input,.comment-textarea{outline:none}.order-now-modal-form button{font-family:Inter,sans-serif;width:100%;padding:15px 0;font-size:14px;border:none;border-radius:15px;background:#9bb537;color:#f8f8f8;cursor:pointer;transition-duration:.15s}.order-now-modal-form button:hover{box-shadow:inset 0 0 10px 10px #f8f8f880}.order-now-modal-close-img{stroke:#050505;transition-duration:.15s}.order-now-modal-close-img:hover{stroke:#9bb537}@media screen and (max-width: 320px){.order-now-modal,.order-now-modal-form input,textarea{width:100%}}@media screen and (min-width: 768px){.order-now-modal-form input{width:270px}}@media screen and (min-width: 768px){.order-now-modal{max-width:none;max-height:none;width:440px;height:632px;padding:40px}.order-now-modal-form input,textarea{width:360px;border-radius:15px;border:1px solid rgba(5,5,5,.2)}.order-now-modal-form-input{height:48px}.order-now-modal-close-img{width:24px;height:24px}}.order-now-modal-form-input:hover,.order-now-modal-form-input:focus{border:1px solid #9bb537}.dark-theme .order-now-modal-form-input:is(:hover,:focus){border:1px solid #9bb537}.dark-theme .order-now-modal-form input,.dark-theme .order-now-modal-form textarea{background-color:#050505;border-color:#fff3}.dark-theme .order-now-modal-form input:focus,.dark-theme .order-now-modal-form textarea:focus{border-color:#9bb537;background-color:#050505}.dark-theme .order-now-modal-form span{color:#ffffff80}.dark-theme .order-now-modal-form input::placeholder,.dark-theme .order-now-modal-form textarea::placeholder{color:#ffffff80}.dark-theme .order-now-modal,.dark-theme .popup_modal,.dark-theme .popup_scroll{background-color:#050505}.dark-theme .order-now-modal-close-img,.dark-theme .order-now-modal-title{stroke:#f8f8f8;color:#f8f8f8}.dark-theme .order-now-modal-close-img:hover{stroke:#9bb537}.rating-modal{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0 auto;padding:20px;border-radius:15px;background-color:#f8f8f8}@media screen and (min-width: 375px){.rating-modal{width:335px}}@media screen and (min-width: 768px){.rating-modal{width:424px;padding:32px}}.dark-theme .rating-modal{background-color:#050505}.rating-modal-btn-close{display:flex;justify-content:center;align-items:center;width:20px;height:20px;background-color:transparent;border:transparent;position:absolute;top:14px;right:14px}@media screen and (min-width: 768px){.rating-modal-btn-close{width:24px;height:24px;top:16px;right:16px}}.rating-modal-btn-close:is(:hover,:focus) .rating-modal-btn-icon{stroke:#9bb537}.rating-modal-btn-icon{width:20px;height:20px;stroke:#050505;transition:.3s}@media screen and (min-width: 768px){.rating-modal-btn-icon{width:24px;height:24px}}.dark-theme .rating-modal-btn-icon{stroke:#f8f8f8}.rating-modal-title{color:#050505;font-size:14px;font-weight:600;margin-bottom:4px}.dark-theme .rating-modal-title{color:#050505}.rating-modal-stars-wrapper{display:flex;align-items:baseline;margin-bottom:24px}@media screen and (min-width: 768px){.rating-modal-stars-wrapper{margin-bottom:32px}}.live-rating{width:25px;height:auto;color:#050505;font-size:16px;font-weight:500;line-height:1.5}.dark-theme .live-rating{color:#f8f8f8}.rating-modal-form-input::placeholder{color:#050505;opacity:.5;font-size:14px;font-weight:500}@media screen and (min-width: 768px){.rating-modal-form-input::placeholder{font-size:16px}}.rating-modal-form-input{width:100%;padding:14px 18px;border:1px solid rgba(5,5,5,.2);border-radius:15px;outline:none;margin-bottom:14px;transition:.3s}@media screen and (min-width: 768px){.rating-modal-form-input{margin-bottom:16px}}.rating-modal-form-input:hover,.rating-modal-form-input:focus{border:1px solid #9bb537}.dark-theme .rating-modal-form-input:is(:hover,:focus){border:1px solid #9bb537}.dark-theme .rating-modal-form-input{background-color:#050505;border:1px solid rgba(255,255,255,.2);color:#050505}.dark-theme .rating-modal-form-input::placeholder{color:#ffffff80}.rating-modal-form-btn{width:100%;padding:14px;display:flex;justify-content:center;align-items:center;font-family:Inter,sans-serif;font-size:14px;color:#f8f8f8;background-color:#9bb537;border-radius:15px;border:none;transition:.3s}@media screen and (min-width: 768px){.rating-modal-form-btn{font-size:16px}}.rating-modal-form-btn:hover,.rating-modal-form-btn:focus{color:#050505}.dark-theme .rating-modal-title{color:#f8f8f8}.rate{height:24px}.rate:not(:checked)>input{position:absolute;top:-9999px}.rate:not(:checked)>label{float:right;width:1em;overflow:hidden;white-space:nowrap;cursor:pointer;font-size:30px;color:#ccc}.rate:not(:checked)>label:before{content:"★"}.rate>input:checked~label{color:#ffc700}.rate:not(:checked)>label:hover,.rate:not(:checked)>label:hover~label{color:#deb217}.rate>input:checked+label:hover,.rate>input:checked+label:hover~label,.rate>input:checked~label:hover,.rate>input:checked~label:hover~label,.rate>label:hover~input:checked~label{color:#c59b08}.footer-container{margin:0;padding:0;width:100%;height:100px;display:flex;flex-direction:row;justify-content:center;align-items:center;z-index:1000}.footer-span{font-size:16px}.modal-footer{display:none;position:fixed;top:50%;left:0;transform:translateY(-50%);width:100%;height:100%;background-color:#00000080}.modal-content-footer{background-color:#fff;width:100%;margin:15% auto;padding:30px;border-radius:5px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}.title-footer{color:#050505;margin-bottom:20px}.dark-theme .modal-content-footer{background-color:#050505}.dark-theme .title-footer,.dark-theme .close3{color:#f8f8f8}.close3{position:absolute;top:10px;right:15px;font-size:20px;cursor:pointer}#peopleList{list-style:none;padding:0;display:flex;flex-wrap:wrap;justify-content:space-between}#peopleList li{font-size:18px;margin-left:auto;margin-right:auto;margin-bottom:10px;padding:5px 10px;border:1px solid #ccc;border-radius:5px;background-color:#f5f5f5;box-shadow:0 2px 4px #0000001a;transition:transform .2s ease-in-out;cursor:pointer;width:200px;text-align:center;text-decoration:none}#peopleList li:is(:hover,:focus){scale:1.01;-webkit-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);-moz-box-shadow:-12px 12px 5px 0px rgba(5,5,5,.3);box-shadow:-12px 12px 5px #0505054d}.dark-theme #peopleList li:is(:hover,:focus){scale:1.01;color:#9bb537;-webkit-box-shadow:0px 0px 35px -4px rgb(155,181,55);-moz-box-shadow:0px 0px 35px -4px rgb(155,181,55);box-shadow:0 0 35px -4px #9bb537}#peopleList a{color:#050505}#peopleList a:is(:hover,:focus){color:#9bb537}.glow-on-hover{width:300px;height:50px;margin:auto;border:none;outline:none;color:gray;background:#fff;cursor:pointer;position:relative;z-index:0;border-radius:10px}.glow-on-hover:before{content:"";background:linear-gradient(45deg,#ff0000,#ff7300,#fffb00,#48ff00,#00ffd5,#002bff,#7a00ff,#ff00c8,#ff0000);position:absolute;top:-2px;left:-2px;background-size:400%;z-index:-1;filter:blur(5px);width:calc(100% + 4px);height:calc(100% + 4px);animation:glowing 20s linear infinite;opacity:0;transition:opacity .3s ease-in-out;border-radius:10px}.glow-on-hover:active{color:gray}.glow-on-hover:active:after{background:transparent}.glow-on-hover:hover:before{opacity:1}.glow-on-hover:after{z-index:-1;content:"";position:absolute;width:100%;height:100%;background:#fff;left:0;top:0;border-radius:10px}@keyframes glowing{0%{background-position:0 0}50%{background-position:400% 0}to{background-position:0 0}}#modal3{display:block;opacity:0;max-height:0;overflow:hidden;pointer-events:none;visibility:hidden;top:50%;left:50%;position:fixed;transform-origin:center center;transform:translate(-50%,-50%) scale(.9);-webkit-transform:translate(-50%,-50%) scale(.9);-moz-transform:translate(-50%,-50%) scale(.9);-ms-transform:translate(-50%,-50%) scale(.9);-o-transform:translate(-50%,-50%) scale(.9);transition-duration:.3s}#modal3.modal-open{opacity:1;max-height:1000px;padding:20px;pointer-events:all;visibility:visible;transform:translate(-50%,-50%) scale(1);-webkit-transform:translate(-50%,-50%) scale(1);-moz-transform:translate(-50%,-50%) scale(1);-ms-transform:translate(-50%,-50%) scale(1);-o-transform:translate(-50%,-50%) scale(1);transition-duration:.3s}@media screen and (min-width: 375px) and (max-width: 768px){.modal-content-footer{width:300px}}@media screen and (min-width: 768px){.modal-content-footer{width:500px}}#theme-switcher,#mob-theme-switcher{display:inline-block}#theme-switcher input,#mob-theme-switcher input{display:block;width:0;height:0;margin:0;z-index:-1;opacity:0}#theme-switcher span,#mob-theme-switcher span{display:block;width:46px;height:20px;box-shadow:7px 5px 15px #a09ea066;position:relative;cursor:pointer;background-color:#cecdcd;transition:.2s;border-radius:34px}#theme-switcher span:before,#mob-theme-switcher span:before{content:"";position:absolute;height:18px;width:18px;left:1px;bottom:1px;background-color:#f8f8f8;transition:.2s;border-radius:50%}#theme-switcher input:checked+span,#mob-theme-switcher input:checked+span{background:linear-gradient(#9bb537,#9bb537);box-shadow:none}#theme-switcher input:checked+span:before,#mob-theme-switcher input:checked+span:before{box-shadow:4px 4px 15px #f3f3f340;transform:translate(26px)}.colored-toast.swal2-icon-success{background-color:#9bb537!important}.colored-toast.swal2-icon-error{background-color:#eea10c!important}.colored-toast.swal2-icon-warning{background-color:#f8bb86!important}.colored-toast.swal2-icon-info{background-color:#d9d9d9!important}.colored-toast.swal2-icon-question{background-color:#05050580!important}.dark-theme .colored-toast.swal2-icon-question{background-color:#f8f8f880!important}.colored-toast .swal2-title,.colored-toast .swal2-close,.colored-toast .swal2-html-container{color:#fff}.scrollup-btn-wrapper{position:fixed;right:30px;bottom:30px}.scrollup-btn{width:50px;height:50px;border:1px solid transparent;display:flex;justify-content:center;align-items:center;background-color:#9bb537;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;transition-duration:.3s;animation:floating 3s ease-in-out infinite;-webkit-animation:floating 3s ease-in-out infinite}.scrollup-btn:hover,.scrollup-btn :focus{box-shadow:inset 0 0 5px 2px #f8f8f8}.dark-theme .scrollup-btn{background-color:#f8f8f8}.dark-theme .scrollup-btn:hover,.dark-theme .scrollup-btn :focus{box-shadow:inset 0 0 3px 1px #05050580}.scrollup-icon{fill:#f8f8f8;transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg)}.dark-theme .scrollup-icon{fill:#9bb537}@keyframes floating{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.loader{width:48px;height:48px;border:5px solid #9bb537;border-radius:50%;display:inline-block;box-sizing:border-box;position:absolute;top:-50px;left:50%;animation:pulse 1s linear infinite}@media screen and (max-width: 768px){.loader{top:-55px;left:40%}}.loader:after{content:"";position:absolute;width:48px;height:48px;border:5px solid #9bb537;border-radius:50%;display:inline-block;box-sizing:border-box;left:50%;top:50%;transform:translate(-50%,-50%);animation:scaleUp 1s linear infinite}@keyframes scaleUp{0%{transform:translate(-50%,-50%) scale(0)}60%,to{transform:translate(-50%,-50%) scale(1)}}@keyframes pulse{0%,60%,to{transform:scale(1)}80%{transform:scale(1.2)}}[data-aos][data-aos][data-aos-duration="50"],body[data-aos-duration="50"] [data-aos]{transition-duration:50ms}[data-aos][data-aos][data-aos-delay="50"],body[data-aos-delay="50"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="50"].aos-animate,body[data-aos-delay="50"] [data-aos].aos-animate{transition-delay:50ms}[data-aos][data-aos][data-aos-duration="100"],body[data-aos-duration="100"] [data-aos]{transition-duration:.1s}[data-aos][data-aos][data-aos-delay="100"],body[data-aos-delay="100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="100"].aos-animate,body[data-aos-delay="100"] [data-aos].aos-animate{transition-delay:.1s}[data-aos][data-aos][data-aos-duration="150"],body[data-aos-duration="150"] [data-aos]{transition-duration:.15s}[data-aos][data-aos][data-aos-delay="150"],body[data-aos-delay="150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="150"].aos-animate,body[data-aos-delay="150"] [data-aos].aos-animate{transition-delay:.15s}[data-aos][data-aos][data-aos-duration="200"],body[data-aos-duration="200"] [data-aos]{transition-duration:.2s}[data-aos][data-aos][data-aos-delay="200"],body[data-aos-delay="200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="200"].aos-animate,body[data-aos-delay="200"] [data-aos].aos-animate{transition-delay:.2s}[data-aos][data-aos][data-aos-duration="250"],body[data-aos-duration="250"] [data-aos]{transition-duration:.25s}[data-aos][data-aos][data-aos-delay="250"],body[data-aos-delay="250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="250"].aos-animate,body[data-aos-delay="250"] [data-aos].aos-animate{transition-delay:.25s}[data-aos][data-aos][data-aos-duration="300"],body[data-aos-duration="300"] [data-aos]{transition-duration:.3s}[data-aos][data-aos][data-aos-delay="300"],body[data-aos-delay="300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="300"].aos-animate,body[data-aos-delay="300"] [data-aos].aos-animate{transition-delay:.3s}[data-aos][data-aos][data-aos-duration="350"],body[data-aos-duration="350"] [data-aos]{transition-duration:.35s}[data-aos][data-aos][data-aos-delay="350"],body[data-aos-delay="350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="350"].aos-animate,body[data-aos-delay="350"] [data-aos].aos-animate{transition-delay:.35s}[data-aos][data-aos][data-aos-duration="400"],body[data-aos-duration="400"] [data-aos]{transition-duration:.4s}[data-aos][data-aos][data-aos-delay="400"],body[data-aos-delay="400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="400"].aos-animate,body[data-aos-delay="400"] [data-aos].aos-animate{transition-delay:.4s}[data-aos][data-aos][data-aos-duration="450"],body[data-aos-duration="450"] [data-aos]{transition-duration:.45s}[data-aos][data-aos][data-aos-delay="450"],body[data-aos-delay="450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="450"].aos-animate,body[data-aos-delay="450"] [data-aos].aos-animate{transition-delay:.45s}[data-aos][data-aos][data-aos-duration="500"],body[data-aos-duration="500"] [data-aos]{transition-duration:.5s}[data-aos][data-aos][data-aos-delay="500"],body[data-aos-delay="500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="500"].aos-animate,body[data-aos-delay="500"] [data-aos].aos-animate{transition-delay:.5s}[data-aos][data-aos][data-aos-duration="550"],body[data-aos-duration="550"] [data-aos]{transition-duration:.55s}[data-aos][data-aos][data-aos-delay="550"],body[data-aos-delay="550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="550"].aos-animate,body[data-aos-delay="550"] [data-aos].aos-animate{transition-delay:.55s}[data-aos][data-aos][data-aos-duration="600"],body[data-aos-duration="600"] [data-aos]{transition-duration:.6s}[data-aos][data-aos][data-aos-delay="600"],body[data-aos-delay="600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="600"].aos-animate,body[data-aos-delay="600"] [data-aos].aos-animate{transition-delay:.6s}[data-aos][data-aos][data-aos-duration="650"],body[data-aos-duration="650"] [data-aos]{transition-duration:.65s}[data-aos][data-aos][data-aos-delay="650"],body[data-aos-delay="650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="650"].aos-animate,body[data-aos-delay="650"] [data-aos].aos-animate{transition-delay:.65s}[data-aos][data-aos][data-aos-duration="700"],body[data-aos-duration="700"] [data-aos]{transition-duration:.7s}[data-aos][data-aos][data-aos-delay="700"],body[data-aos-delay="700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="700"].aos-animate,body[data-aos-delay="700"] [data-aos].aos-animate{transition-delay:.7s}[data-aos][data-aos][data-aos-duration="750"],body[data-aos-duration="750"] [data-aos]{transition-duration:.75s}[data-aos][data-aos][data-aos-delay="750"],body[data-aos-delay="750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="750"].aos-animate,body[data-aos-delay="750"] [data-aos].aos-animate{transition-delay:.75s}[data-aos][data-aos][data-aos-duration="800"],body[data-aos-duration="800"] [data-aos]{transition-duration:.8s}[data-aos][data-aos][data-aos-delay="800"],body[data-aos-delay="800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="800"].aos-animate,body[data-aos-delay="800"] [data-aos].aos-animate{transition-delay:.8s}[data-aos][data-aos][data-aos-duration="850"],body[data-aos-duration="850"] [data-aos]{transition-duration:.85s}[data-aos][data-aos][data-aos-delay="850"],body[data-aos-delay="850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="850"].aos-animate,body[data-aos-delay="850"] [data-aos].aos-animate{transition-delay:.85s}[data-aos][data-aos][data-aos-duration="900"],body[data-aos-duration="900"] [data-aos]{transition-duration:.9s}[data-aos][data-aos][data-aos-delay="900"],body[data-aos-delay="900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="900"].aos-animate,body[data-aos-delay="900"] [data-aos].aos-animate{transition-delay:.9s}[data-aos][data-aos][data-aos-duration="950"],body[data-aos-duration="950"] [data-aos]{transition-duration:.95s}[data-aos][data-aos][data-aos-delay="950"],body[data-aos-delay="950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="950"].aos-animate,body[data-aos-delay="950"] [data-aos].aos-animate{transition-delay:.95s}[data-aos][data-aos][data-aos-duration="1000"],body[data-aos-duration="1000"] [data-aos]{transition-duration:1s}[data-aos][data-aos][data-aos-delay="1000"],body[data-aos-delay="1000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1000"].aos-animate,body[data-aos-delay="1000"] [data-aos].aos-animate{transition-delay:1s}[data-aos][data-aos][data-aos-duration="1050"],body[data-aos-duration="1050"] [data-aos]{transition-duration:1.05s}[data-aos][data-aos][data-aos-delay="1050"],body[data-aos-delay="1050"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1050"].aos-animate,body[data-aos-delay="1050"] [data-aos].aos-animate{transition-delay:1.05s}[data-aos][data-aos][data-aos-duration="1100"],body[data-aos-duration="1100"] [data-aos]{transition-duration:1.1s}[data-aos][data-aos][data-aos-delay="1100"],body[data-aos-delay="1100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1100"].aos-animate,body[data-aos-delay="1100"] [data-aos].aos-animate{transition-delay:1.1s}[data-aos][data-aos][data-aos-duration="1150"],body[data-aos-duration="1150"] [data-aos]{transition-duration:1.15s}[data-aos][data-aos][data-aos-delay="1150"],body[data-aos-delay="1150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1150"].aos-animate,body[data-aos-delay="1150"] [data-aos].aos-animate{transition-delay:1.15s}[data-aos][data-aos][data-aos-duration="1200"],body[data-aos-duration="1200"] [data-aos]{transition-duration:1.2s}[data-aos][data-aos][data-aos-delay="1200"],body[data-aos-delay="1200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1200"].aos-animate,body[data-aos-delay="1200"] [data-aos].aos-animate{transition-delay:1.2s}[data-aos][data-aos][data-aos-duration="1250"],body[data-aos-duration="1250"] [data-aos]{transition-duration:1.25s}[data-aos][data-aos][data-aos-delay="1250"],body[data-aos-delay="1250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1250"].aos-animate,body[data-aos-delay="1250"] [data-aos].aos-animate{transition-delay:1.25s}[data-aos][data-aos][data-aos-duration="1300"],body[data-aos-duration="1300"] [data-aos]{transition-duration:1.3s}[data-aos][data-aos][data-aos-delay="1300"],body[data-aos-delay="1300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1300"].aos-animate,body[data-aos-delay="1300"] [data-aos].aos-animate{transition-delay:1.3s}[data-aos][data-aos][data-aos-duration="1350"],body[data-aos-duration="1350"] [data-aos]{transition-duration:1.35s}[data-aos][data-aos][data-aos-delay="1350"],body[data-aos-delay="1350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1350"].aos-animate,body[data-aos-delay="1350"] [data-aos].aos-animate{transition-delay:1.35s}[data-aos][data-aos][data-aos-duration="1400"],body[data-aos-duration="1400"] [data-aos]{transition-duration:1.4s}[data-aos][data-aos][data-aos-delay="1400"],body[data-aos-delay="1400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1400"].aos-animate,body[data-aos-delay="1400"] [data-aos].aos-animate{transition-delay:1.4s}[data-aos][data-aos][data-aos-duration="1450"],body[data-aos-duration="1450"] [data-aos]{transition-duration:1.45s}[data-aos][data-aos][data-aos-delay="1450"],body[data-aos-delay="1450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1450"].aos-animate,body[data-aos-delay="1450"] [data-aos].aos-animate{transition-delay:1.45s}[data-aos][data-aos][data-aos-duration="1500"],body[data-aos-duration="1500"] [data-aos]{transition-duration:1.5s}[data-aos][data-aos][data-aos-delay="1500"],body[data-aos-delay="1500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1500"].aos-animate,body[data-aos-delay="1500"] [data-aos].aos-animate{transition-delay:1.5s}[data-aos][data-aos][data-aos-duration="1550"],body[data-aos-duration="1550"] [data-aos]{transition-duration:1.55s}[data-aos][data-aos][data-aos-delay="1550"],body[data-aos-delay="1550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1550"].aos-animate,body[data-aos-delay="1550"] [data-aos].aos-animate{transition-delay:1.55s}[data-aos][data-aos][data-aos-duration="1600"],body[data-aos-duration="1600"] [data-aos]{transition-duration:1.6s}[data-aos][data-aos][data-aos-delay="1600"],body[data-aos-delay="1600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1600"].aos-animate,body[data-aos-delay="1600"] [data-aos].aos-animate{transition-delay:1.6s}[data-aos][data-aos][data-aos-duration="1650"],body[data-aos-duration="1650"] [data-aos]{transition-duration:1.65s}[data-aos][data-aos][data-aos-delay="1650"],body[data-aos-delay="1650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1650"].aos-animate,body[data-aos-delay="1650"] [data-aos].aos-animate{transition-delay:1.65s}[data-aos][data-aos][data-aos-duration="1700"],body[data-aos-duration="1700"] [data-aos]{transition-duration:1.7s}[data-aos][data-aos][data-aos-delay="1700"],body[data-aos-delay="1700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1700"].aos-animate,body[data-aos-delay="1700"] [data-aos].aos-animate{transition-delay:1.7s}[data-aos][data-aos][data-aos-duration="1750"],body[data-aos-duration="1750"] [data-aos]{transition-duration:1.75s}[data-aos][data-aos][data-aos-delay="1750"],body[data-aos-delay="1750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1750"].aos-animate,body[data-aos-delay="1750"] [data-aos].aos-animate{transition-delay:1.75s}[data-aos][data-aos][data-aos-duration="1800"],body[data-aos-duration="1800"] [data-aos]{transition-duration:1.8s}[data-aos][data-aos][data-aos-delay="1800"],body[data-aos-delay="1800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1800"].aos-animate,body[data-aos-delay="1800"] [data-aos].aos-animate{transition-delay:1.8s}[data-aos][data-aos][data-aos-duration="1850"],body[data-aos-duration="1850"] [data-aos]{transition-duration:1.85s}[data-aos][data-aos][data-aos-delay="1850"],body[data-aos-delay="1850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1850"].aos-animate,body[data-aos-delay="1850"] [data-aos].aos-animate{transition-delay:1.85s}[data-aos][data-aos][data-aos-duration="1900"],body[data-aos-duration="1900"] [data-aos]{transition-duration:1.9s}[data-aos][data-aos][data-aos-delay="1900"],body[data-aos-delay="1900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1900"].aos-animate,body[data-aos-delay="1900"] [data-aos].aos-animate{transition-delay:1.9s}[data-aos][data-aos][data-aos-duration="1950"],body[data-aos-duration="1950"] [data-aos]{transition-duration:1.95s}[data-aos][data-aos][data-aos-delay="1950"],body[data-aos-delay="1950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="1950"].aos-animate,body[data-aos-delay="1950"] [data-aos].aos-animate{transition-delay:1.95s}[data-aos][data-aos][data-aos-duration="2000"],body[data-aos-duration="2000"] [data-aos]{transition-duration:2s}[data-aos][data-aos][data-aos-delay="2000"],body[data-aos-delay="2000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2000"].aos-animate,body[data-aos-delay="2000"] [data-aos].aos-animate{transition-delay:2s}[data-aos][data-aos][data-aos-duration="2050"],body[data-aos-duration="2050"] [data-aos]{transition-duration:2.05s}[data-aos][data-aos][data-aos-delay="2050"],body[data-aos-delay="2050"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2050"].aos-animate,body[data-aos-delay="2050"] [data-aos].aos-animate{transition-delay:2.05s}[data-aos][data-aos][data-aos-duration="2100"],body[data-aos-duration="2100"] [data-aos]{transition-duration:2.1s}[data-aos][data-aos][data-aos-delay="2100"],body[data-aos-delay="2100"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2100"].aos-animate,body[data-aos-delay="2100"] [data-aos].aos-animate{transition-delay:2.1s}[data-aos][data-aos][data-aos-duration="2150"],body[data-aos-duration="2150"] [data-aos]{transition-duration:2.15s}[data-aos][data-aos][data-aos-delay="2150"],body[data-aos-delay="2150"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2150"].aos-animate,body[data-aos-delay="2150"] [data-aos].aos-animate{transition-delay:2.15s}[data-aos][data-aos][data-aos-duration="2200"],body[data-aos-duration="2200"] [data-aos]{transition-duration:2.2s}[data-aos][data-aos][data-aos-delay="2200"],body[data-aos-delay="2200"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2200"].aos-animate,body[data-aos-delay="2200"] [data-aos].aos-animate{transition-delay:2.2s}[data-aos][data-aos][data-aos-duration="2250"],body[data-aos-duration="2250"] [data-aos]{transition-duration:2.25s}[data-aos][data-aos][data-aos-delay="2250"],body[data-aos-delay="2250"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2250"].aos-animate,body[data-aos-delay="2250"] [data-aos].aos-animate{transition-delay:2.25s}[data-aos][data-aos][data-aos-duration="2300"],body[data-aos-duration="2300"] [data-aos]{transition-duration:2.3s}[data-aos][data-aos][data-aos-delay="2300"],body[data-aos-delay="2300"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2300"].aos-animate,body[data-aos-delay="2300"] [data-aos].aos-animate{transition-delay:2.3s}[data-aos][data-aos][data-aos-duration="2350"],body[data-aos-duration="2350"] [data-aos]{transition-duration:2.35s}[data-aos][data-aos][data-aos-delay="2350"],body[data-aos-delay="2350"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2350"].aos-animate,body[data-aos-delay="2350"] [data-aos].aos-animate{transition-delay:2.35s}[data-aos][data-aos][data-aos-duration="2400"],body[data-aos-duration="2400"] [data-aos]{transition-duration:2.4s}[data-aos][data-aos][data-aos-delay="2400"],body[data-aos-delay="2400"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2400"].aos-animate,body[data-aos-delay="2400"] [data-aos].aos-animate{transition-delay:2.4s}[data-aos][data-aos][data-aos-duration="2450"],body[data-aos-duration="2450"] [data-aos]{transition-duration:2.45s}[data-aos][data-aos][data-aos-delay="2450"],body[data-aos-delay="2450"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2450"].aos-animate,body[data-aos-delay="2450"] [data-aos].aos-animate{transition-delay:2.45s}[data-aos][data-aos][data-aos-duration="2500"],body[data-aos-duration="2500"] [data-aos]{transition-duration:2.5s}[data-aos][data-aos][data-aos-delay="2500"],body[data-aos-delay="2500"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2500"].aos-animate,body[data-aos-delay="2500"] [data-aos].aos-animate{transition-delay:2.5s}[data-aos][data-aos][data-aos-duration="2550"],body[data-aos-duration="2550"] [data-aos]{transition-duration:2.55s}[data-aos][data-aos][data-aos-delay="2550"],body[data-aos-delay="2550"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2550"].aos-animate,body[data-aos-delay="2550"] [data-aos].aos-animate{transition-delay:2.55s}[data-aos][data-aos][data-aos-duration="2600"],body[data-aos-duration="2600"] [data-aos]{transition-duration:2.6s}[data-aos][data-aos][data-aos-delay="2600"],body[data-aos-delay="2600"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2600"].aos-animate,body[data-aos-delay="2600"] [data-aos].aos-animate{transition-delay:2.6s}[data-aos][data-aos][data-aos-duration="2650"],body[data-aos-duration="2650"] [data-aos]{transition-duration:2.65s}[data-aos][data-aos][data-aos-delay="2650"],body[data-aos-delay="2650"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2650"].aos-animate,body[data-aos-delay="2650"] [data-aos].aos-animate{transition-delay:2.65s}[data-aos][data-aos][data-aos-duration="2700"],body[data-aos-duration="2700"] [data-aos]{transition-duration:2.7s}[data-aos][data-aos][data-aos-delay="2700"],body[data-aos-delay="2700"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2700"].aos-animate,body[data-aos-delay="2700"] [data-aos].aos-animate{transition-delay:2.7s}[data-aos][data-aos][data-aos-duration="2750"],body[data-aos-duration="2750"] [data-aos]{transition-duration:2.75s}[data-aos][data-aos][data-aos-delay="2750"],body[data-aos-delay="2750"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2750"].aos-animate,body[data-aos-delay="2750"] [data-aos].aos-animate{transition-delay:2.75s}[data-aos][data-aos][data-aos-duration="2800"],body[data-aos-duration="2800"] [data-aos]{transition-duration:2.8s}[data-aos][data-aos][data-aos-delay="2800"],body[data-aos-delay="2800"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2800"].aos-animate,body[data-aos-delay="2800"] [data-aos].aos-animate{transition-delay:2.8s}[data-aos][data-aos][data-aos-duration="2850"],body[data-aos-duration="2850"] [data-aos]{transition-duration:2.85s}[data-aos][data-aos][data-aos-delay="2850"],body[data-aos-delay="2850"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2850"].aos-animate,body[data-aos-delay="2850"] [data-aos].aos-animate{transition-delay:2.85s}[data-aos][data-aos][data-aos-duration="2900"],body[data-aos-duration="2900"] [data-aos]{transition-duration:2.9s}[data-aos][data-aos][data-aos-delay="2900"],body[data-aos-delay="2900"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2900"].aos-animate,body[data-aos-delay="2900"] [data-aos].aos-animate{transition-delay:2.9s}[data-aos][data-aos][data-aos-duration="2950"],body[data-aos-duration="2950"] [data-aos]{transition-duration:2.95s}[data-aos][data-aos][data-aos-delay="2950"],body[data-aos-delay="2950"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="2950"].aos-animate,body[data-aos-delay="2950"] [data-aos].aos-animate{transition-delay:2.95s}[data-aos][data-aos][data-aos-duration="3000"],body[data-aos-duration="3000"] [data-aos]{transition-duration:3s}[data-aos][data-aos][data-aos-delay="3000"],body[data-aos-delay="3000"] [data-aos]{transition-delay:0s}[data-aos][data-aos][data-aos-delay="3000"].aos-animate,body[data-aos-delay="3000"] [data-aos].aos-animate{transition-delay:3s}[data-aos]{pointer-events:none}[data-aos].aos-animate{pointer-events:auto}[data-aos][data-aos][data-aos-easing=linear],body[data-aos-easing=linear] [data-aos]{transition-timing-function:cubic-bezier(.25,.25,.75,.75)}[data-aos][data-aos][data-aos-easing=ease],body[data-aos-easing=ease] [data-aos]{transition-timing-function:ease}[data-aos][data-aos][data-aos-easing=ease-in],body[data-aos-easing=ease-in] [data-aos]{transition-timing-function:ease-in}[data-aos][data-aos][data-aos-easing=ease-out],body[data-aos-easing=ease-out] [data-aos]{transition-timing-function:ease-out}[data-aos][data-aos][data-aos-easing=ease-in-out],body[data-aos-easing=ease-in-out] [data-aos]{transition-timing-function:ease-in-out}[data-aos][data-aos][data-aos-easing=ease-in-back],body[data-aos-easing=ease-in-back] [data-aos]{transition-timing-function:cubic-bezier(.6,-.28,.735,.045)}[data-aos][data-aos][data-aos-easing=ease-out-back],body[data-aos-easing=ease-out-back] [data-aos]{transition-timing-function:cubic-bezier(.175,.885,.32,1.275)}[data-aos][data-aos][data-aos-easing=ease-in-out-back],body[data-aos-easing=ease-in-out-back] [data-aos]{transition-timing-function:cubic-bezier(.68,-.55,.265,1.55)}[data-aos][data-aos][data-aos-easing=ease-in-sine],body[data-aos-easing=ease-in-sine] [data-aos]{transition-timing-function:cubic-bezier(.47,0,.745,.715)}[data-aos][data-aos][data-aos-easing=ease-out-sine],body[data-aos-easing=ease-out-sine] [data-aos]{transition-timing-function:cubic-bezier(.39,.575,.565,1)}[data-aos][data-aos][data-aos-easing=ease-in-out-sine],body[data-aos-easing=ease-in-out-sine] [data-aos]{transition-timing-function:cubic-bezier(.445,.05,.55,.95)}[data-aos][data-aos][data-aos-easing=ease-in-quad],body[data-aos-easing=ease-in-quad] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-quad],body[data-aos-easing=ease-out-quad] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-quad],body[data-aos-easing=ease-in-out-quad] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos][data-aos][data-aos-easing=ease-in-cubic],body[data-aos-easing=ease-in-cubic] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-cubic],body[data-aos-easing=ease-out-cubic] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-cubic],body[data-aos-easing=ease-in-out-cubic] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}[data-aos][data-aos][data-aos-easing=ease-in-quart],body[data-aos-easing=ease-in-quart] [data-aos]{transition-timing-function:cubic-bezier(.55,.085,.68,.53)}[data-aos][data-aos][data-aos-easing=ease-out-quart],body[data-aos-easing=ease-out-quart] [data-aos]{transition-timing-function:cubic-bezier(.25,.46,.45,.94)}[data-aos][data-aos][data-aos-easing=ease-in-out-quart],body[data-aos-easing=ease-in-out-quart] [data-aos]{transition-timing-function:cubic-bezier(.455,.03,.515,.955)}@media screen{html:not(.no-js) [data-aos^=fade][data-aos^=fade]{opacity:0;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}html:not(.no-js) [data-aos^=fade][data-aos^=fade].aos-animate{opacity:1;-webkit-transform:none;transform:none}html:not(.no-js) [data-aos=fade-up]{-webkit-transform:translate3d(0,100px,0);transform:translate3d(0,100px,0)}html:not(.no-js) [data-aos=fade-down]{-webkit-transform:translate3d(0,-100px,0);transform:translate3d(0,-100px,0)}html:not(.no-js) [data-aos=fade-right]{-webkit-transform:translate3d(-100px,0,0);transform:translate3d(-100px,0,0)}html:not(.no-js) [data-aos=fade-left]{-webkit-transform:translate3d(100px,0,0);transform:translate3d(100px,0,0)}html:not(.no-js) [data-aos=fade-up-right]{-webkit-transform:translate3d(-100px,100px,0);transform:translate3d(-100px,100px,0)}html:not(.no-js) [data-aos=fade-up-left]{-webkit-transform:translate3d(100px,100px,0);transform:translate3d(100px,100px,0)}html:not(.no-js) [data-aos=fade-down-right]{-webkit-transform:translate3d(-100px,-100px,0);transform:translate3d(-100px,-100px,0)}html:not(.no-js) [data-aos=fade-down-left]{-webkit-transform:translate3d(100px,-100px,0);transform:translate3d(100px,-100px,0)}html:not(.no-js) [data-aos^=zoom][data-aos^=zoom]{opacity:0;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}html:not(.no-js) [data-aos^=zoom][data-aos^=zoom].aos-animate{opacity:1;-webkit-transform:translateZ(0) scale(1);transform:translateZ(0) scale(1)}html:not(.no-js) [data-aos=zoom-in]{-webkit-transform:scale(.6);transform:scale(.6)}html:not(.no-js) [data-aos=zoom-in-up]{-webkit-transform:translate3d(0,100px,0) scale(.6);transform:translate3d(0,100px,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-down]{-webkit-transform:translate3d(0,-100px,0) scale(.6);transform:translate3d(0,-100px,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-right]{-webkit-transform:translate3d(-100px,0,0) scale(.6);transform:translate3d(-100px,0,0) scale(.6)}html:not(.no-js) [data-aos=zoom-in-left]{-webkit-transform:translate3d(100px,0,0) scale(.6);transform:translate3d(100px,0,0) scale(.6)}html:not(.no-js) [data-aos=zoom-out]{-webkit-transform:scale(1.2);transform:scale(1.2)}html:not(.no-js) [data-aos=zoom-out-up]{-webkit-transform:translate3d(0,100px,0) scale(1.2);transform:translate3d(0,100px,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-down]{-webkit-transform:translate3d(0,-100px,0) scale(1.2);transform:translate3d(0,-100px,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-right]{-webkit-transform:translate3d(-100px,0,0) scale(1.2);transform:translate3d(-100px,0,0) scale(1.2)}html:not(.no-js) [data-aos=zoom-out-left]{-webkit-transform:translate3d(100px,0,0) scale(1.2);transform:translate3d(100px,0,0) scale(1.2)}html:not(.no-js) [data-aos^=slide][data-aos^=slide]{transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform;visibility:hidden}html:not(.no-js) [data-aos^=slide][data-aos^=slide].aos-animate{visibility:visible;-webkit-transform:translateZ(0);transform:translateZ(0)}html:not(.no-js) [data-aos=slide-up]{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}html:not(.no-js) [data-aos=slide-down]{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}html:not(.no-js) [data-aos=slide-right]{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}html:not(.no-js) [data-aos=slide-left]{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}html:not(.no-js) [data-aos^=flip][data-aos^=flip]{-webkit-backface-visibility:hidden;backface-visibility:hidden;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}html:not(.no-js) [data-aos=flip-left]{-webkit-transform:perspective(2500px) rotateY(-100deg);transform:perspective(2500px) rotateY(-100deg)}html:not(.no-js) [data-aos=flip-left].aos-animate{-webkit-transform:perspective(2500px) rotateY(0);transform:perspective(2500px) rotateY(0)}html:not(.no-js) [data-aos=flip-right]{-webkit-transform:perspective(2500px) rotateY(100deg);transform:perspective(2500px) rotateY(100deg)}html:not(.no-js) [data-aos=flip-right].aos-animate{-webkit-transform:perspective(2500px) rotateY(0);transform:perspective(2500px) rotateY(0)}html:not(.no-js) [data-aos=flip-up]{-webkit-transform:perspective(2500px) rotateX(-100deg);transform:perspective(2500px) rotateX(-100deg)}html:not(.no-js) [data-aos=flip-up].aos-animate{-webkit-transform:perspective(2500px) rotateX(0);transform:perspective(2500px) rotateX(0)}html:not(.no-js) [data-aos=flip-down]{-webkit-transform:perspective(2500px) rotateX(100deg);transform:perspective(2500px) rotateX(100deg)}html:not(.no-js) [data-aos=flip-down].aos-animate{-webkit-transform:perspective(2500px) rotateX(0);transform:perspective(2500px) rotateX(0)}} diff --git a/assets/aos-26cf9ec7.js b/assets/aos-a32ca2dc.js similarity index 88% rename from assets/aos-26cf9ec7.js rename to assets/aos-a32ca2dc.js index 50bc7a9..a0d01e0 100644 --- a/assets/aos-26cf9ec7.js +++ b/assets/aos-a32ca2dc.js @@ -154,7 +154,7 @@ https://sweetalert2.github.io/#ajax-request`),Oi(e),typeof e.title=="string"&&(e `;this.domRefFrame.insertAdjacentHTML("beforeend",u),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var i,c;const o=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,s=`https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;this.domRefImg.fallback.loading=this.posterLoading,this.domRefImg.webp.srcset=o,this.domRefImg.jpeg.srcset=s,this.domRefImg.fallback.src=s,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(c=(i=this.domRefImg)==null?void 0:i.fallback)==null||c.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const o={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((i,c)=>{i.forEach(u=>{u.isIntersecting&&!this.isIframeLoaded&&(J.warmConnections(),this.addIframe(!0),c.unobserve(this))})},o).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var o,s;(s=(o=this.shadowRoot.querySelector("iframe"))==null?void 0:o.contentWindow)==null||s.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(o,s){const i=document.createElement("link");i.rel=o,i.href=s,i.crossOrigin="true",document.head.append(i)}static warmConnections(){J.isPreconnected||window.liteYouTubeIsPreconnected||(J.addPrefetch("preconnect","https://i.ytimg.com/"),J.addPrefetch("preconnect","https://s.ytimg.com"),J.addPrefetch("preconnect","https://www.youtube.com"),J.addPrefetch("preconnect","https://www.google.com"),J.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),J.addPrefetch("preconnect","https://static.doubleclick.net"),J.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}J.isPreconnected=!1;customElements.define("lite-youtube",J);const nc="/project-recipes/sprite.svg",K=document.querySelector(".recipe-backdrop");document.getElementById("modal-recipe");const se=document.querySelector(".modal"),It=document.querySelector(".recipe-btn-close"),$o=document.querySelector(".give-rating-btn");let _o;function oc(n){_o=n,se==null||se.classList.replace("hidden-modal","opened-modal"),K==null||K.classList.replace("hidden-backdrop","opened-backdrop"),lc(n)}function dt(){se==null||se.classList.replace("opened-modal","hidden-modal"),K==null||K.classList.replace("opened-backdrop","hidden-backdrop");const n=se==null?void 0:se.querySelector("lite-youtube");n==null||n.remove()}It==null||It.addEventListener("click",dt);K==null||K.addEventListener("click",rc);function rc(n){n.target===K&&(dt(),document.querySelector("#modal-recipe").classList.remove("is-hidden"),document.querySelector(".rating-modal").classList.add("is-hidden"))}document.addEventListener("keydown",sc);function sc(n){n.key==="Escape"&&(K!=null&&K.classList.contains("opened-backdrop"))&&(dt(),document.querySelector("#modal-recipe").classList.remove("is-hidden"),document.querySelector(".rating-modal").classList.add("is-hidden"))}const ic="recipes/",ac=async n=>{try{return await zt(`${ic}${n}`)}catch{return null}},cc=n=>{const o=n.ingredients.map(u=>` +>`;this.domRefFrame.insertAdjacentHTML("beforeend",u),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var i,c;const o=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,s=`https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;this.domRefImg.fallback.loading=this.posterLoading,this.domRefImg.webp.srcset=o,this.domRefImg.jpeg.srcset=s,this.domRefImg.fallback.src=s,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(c=(i=this.domRefImg)==null?void 0:i.fallback)==null||c.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const o={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((i,c)=>{i.forEach(u=>{u.isIntersecting&&!this.isIframeLoaded&&(J.warmConnections(),this.addIframe(!0),c.unobserve(this))})},o).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var o,s;(s=(o=this.shadowRoot.querySelector("iframe"))==null?void 0:o.contentWindow)==null||s.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(o,s){const i=document.createElement("link");i.rel=o,i.href=s,i.crossOrigin="true",document.head.append(i)}static warmConnections(){J.isPreconnected||window.liteYouTubeIsPreconnected||(J.addPrefetch("preconnect","https://i.ytimg.com/"),J.addPrefetch("preconnect","https://s.ytimg.com"),J.addPrefetch("preconnect","https://www.youtube.com"),J.addPrefetch("preconnect","https://www.google.com"),J.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),J.addPrefetch("preconnect","https://static.doubleclick.net"),J.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}J.isPreconnected=!1;customElements.define("lite-youtube",J);const nc="/project-recipes/sprite.svg",K=document.querySelector(".recipe-backdrop");document.getElementById("modal-recipe");const se=document.querySelector(".modal"),It=document.querySelector(".recipe-btn-close"),$o=document.querySelector(".give-rating-btn");let _o;function oc(n){_o=n,se==null||se.classList.replace("hidden-modal","opened-modal"),K==null||K.classList.replace("hidden-backdrop","opened-backdrop"),lc(n)}function dt(){se==null||se.classList.replace("opened-modal","hidden-modal"),K==null||K.classList.replace("opened-backdrop","hidden-backdrop");const n=se==null?void 0:se.querySelector("lite-youtube");n==null||n.remove()}It==null||It.addEventListener("click",dt);K==null||K.addEventListener("click",rc);function rc(n){var o,s;n.target===K&&(dt(),(o=document.querySelector("#modal-recipe"))==null||o.classList.remove("is-hidden"),(s=document.querySelector(".rating-modal"))==null||s.classList.add("is-hidden"))}document.addEventListener("keydown",sc);function sc(n){var o,s;n.key==="Escape"&&(K!=null&&K.classList.contains("opened-backdrop"))&&(dt(),(o=document.querySelector("#modal-recipe"))==null||o.classList.remove("is-hidden"),(s=document.querySelector(".rating-modal"))==null||s.classList.add("is-hidden"))}const ic="recipes/",ac=async n=>{try{return await zt(`${ic}${n}`)}catch{return null}},cc=n=>{const o=n.ingredients.map(u=>`
  • @@ -183,7 +183,7 @@ https://sweetalert2.github.io/#ajax-request`),Oi(e),typeof e.title=="string"&&(e - `};async function lc(n){const o=document.querySelector(".markUp"),s=document.querySelector(".favorite-btn");try{const i=await ac(n);if(i){const c=cc(i);o.innerHTML=c;const u=JSON.parse(localStorage.getItem("favorites"))||[];Uo(u,i._id)?s.textContent="Remove from Favorite":s.textContent="Add to Favorite",s==null||s.removeEventListener("click",ro),s==null||s.addEventListener("click",()=>{ro(u,i,s)})}else fe.fire({icon:"error",title:"Something went wrong, try reloading the page"})}catch(i){console.error(i)}}function ro(n,o,s){Uo(n,o._id)?(Vo(n,o._id),s.textContent="Add to Favorite"):($t(n,o),s.textContent="Remove from Favorite")}function Uo(n,o){return n.some(s=>s._id===o)}async function $t(n,o){n.some(i=>i._id===o._id)?fe.fire({icon:"info",title:"The recipe is already in your favorites!"}):(n.push(o),Wo(n),fe.fire({icon:"success",title:"Added to favorites!"}))}async function Vo(n,o){const s=n.findIndex(i=>i._id===o);s!==-1&&(n.splice(s,1),Wo(n),fe.fire({icon:"info",title:"Removed from favorites!"}))}function Wo(n){localStorage.setItem("favorites",JSON.stringify(n));const o=new Event("favoritesUpdated");window.dispatchEvent(o)}const tt="dark-theme",Jo=document.getElementById("theme-switcher"),dc=localStorage.getItem(tt);document.addEventListener("DOMContentLoaded",uc);Jo.addEventListener("change",Ko);function Ko(n){n.target.checked?(document.body.classList.add("dark-theme"),localStorage.setItem(tt,"true")):(document.body.classList.remove("dark-theme"),localStorage.removeItem(tt))}function uc(){dc&&(document.body.classList.add("dark-theme"),Jo.querySelector("input").checked=!0)}function fc(){const n=localStorage.getItem(tt)==="true",o=document.getElementById("mob-theme-switcher");o&&o&&(o.addEventListener("change",Ko),o.querySelector("input").checked=n)}const Yo=document.querySelector(".js-menu-container"),nt=document.querySelector(".js-open-menu"),mc=document.querySelector(".js-close-menu"),Zo=()=>{const n=nt.getAttribute("aria-expanded")==="true"||!1;nt.setAttribute("aria-expanded",!n),Yo.classList.toggle("is-open"),n?document.body.classList.remove("no-scroll"):document.body.classList.add("no-scroll"),fc()};nt.addEventListener("click",Zo);mc.addEventListener("click",Zo);window.matchMedia("(min-width: 768px)").addEventListener("change",n=>{n.matches&&(Yo.classList.remove("is-open"),nt.setAttribute("aria-expanded",!1),document.body.classList.remove("no-scroll"))});document.addEventListener("DOMContentLoaded",function(){const n=document.getElementById("mobile-home-link"),o=document.getElementById("mobile-favorites-link");if(location.pathname.match(/favorite/)){o.classList.add("active-page"),n.classList.remove("active-page");return}n.classList.add("active-page"),o.classList.remove("active-page")});document.addEventListener("DOMContentLoaded",function(){const n=document.getElementById("home-link"),o=document.getElementById("favorites-link");if(location.pathname.match(/favorite/)){o.classList.add("active-page"),n.classList.remove("active-page");return}n.classList.add("active-page"),o.classList.remove("active-page")});function Il(n){if(n.target.classList.contains("heart-icon")){n.target.classList.remove("heart-icon"),n.target.classList.add("added-heart-icon");let o=n.target.dataset.id;async function s(){try{const i=await zt(`recipes/${o}`),c=JSON.parse(localStorage.getItem("favorites"))||[];so(c,i._id)||$t(c,i)}catch(i){console.log(i)}}s()}else if(n.target.classList.contains("added-heart-icon")){n.target.classList.remove("added-heart-icon"),n.target.classList.add("heart-icon");let o=n.target.dataset.id;async function s(){try{const i=await zt(`recipes/${o}`),c=JSON.parse(localStorage.getItem("favorites"))||[];so(c,i._id)?Vo(c,i._id):$t(c,i)}catch(i){console.log(i)}}s()}else if(n.target.classList.contains("recipe-see")){let o=n.target.dataset.id;oc(o)}else return}function so(n,o){return n.some(s=>s._id===o)}const X={modalOrderNowForm:document.querySelector(".order-now-modal-form"),openButtonEl:document.querySelector(".header-order-btn"),openButtonHeroEl:document.querySelector(".hero-btn"),closeButtonEl:document.querySelector(".order-now-modal-close-btn"),backdropEl:document.querySelector(".order-now-backdrop"),modalEl:document.querySelector(".order-now-modal")};var ho;(ho=X.openButtonEl)==null||ho.addEventListener("click",Xo,{passive:!0});var wo;(wo=X.openButtonHeroEl)==null||wo.addEventListener("click",Xo);var go;(go=X.closeButtonEl)==null||go.addEventListener("click",ut,{passive:!0});var bo;(bo=X.backdropEl)==null||bo.addEventListener("click",pc,{passive:!0});var yo;(yo=X.modalOrderNowForm)==null||yo.addEventListener("submit",wc,{passive:!0});function Xo(){var n,o;window.addEventListener("keydown",Go,{passive:!0}),(n=X.backdropEl)==null||n.classList.replace("hidden-backdrop","opened-backdrop"),(o=X.modalEl)==null||o.classList.replace("hidden-modal","opened-modal")}function ut(){var n,o;window.removeEventListener("keydown",Go),(n=X.backdropEl)==null||n.classList.replace("opened-backdrop","hidden-backdrop"),(o=X.modalEl)==null||o.classList.replace("opened-modal","hidden-modal")}function pc(n){n.target===X.backdropEl&&ut()}function Go(n){n.code==="Escape"&&ut()}function hc(n){let o={};return o.name=n.querySelector('input[name="name"]').value,o.phone=n.querySelector('input[name="phone"]').value,o.email=n.querySelector('input[name="email"]').value,o.comment=n.querySelector('textarea[name="comment"]').value,n.querySelector('textarea[name="comment"]').value===""&&(o.comment="So delicious"),o}function wc(n){n.preventDefault();const o=hc(X.modalOrderNowForm),{name:s,phone:i,email:c,comment:u}=o,d={name:s,phone:i,email:c,comment:u};postOrder(d).then(()=>{localStorage.getItem("patch-rating")!=="error"&&(ut(),setTimeout(()=>{zo.fire({icon:"success",title:"Thank you for your order!",timer:1500,showConfirmButton:!1})},500),X.modalOrderNowForm.reset())}).catch(p=>console.log(p)).finally(setTimeout(()=>{Loading.remove()},500))}var gc="Expected a function",io=0/0,bc="[object Symbol]",yc=/^\s+|\s+$/g,vc=/^[-+]0x[0-9a-f]+$/i,kc=/^0b[01]+$/i,Ec=/^0o[0-7]+$/i,xc=parseInt,Cc=typeof H=="object"&&H&&H.Object===Object&&H,Sc=typeof self=="object"&&self&&self.Object===Object&&self,Ac=Cc||Sc||Function("return this")(),Pc=Object.prototype,Tc=Pc.toString,Oc=Math.max,Lc=Math.min,Rt=function(){return Ac.Date.now()};function Bc(n,o,s){var i,c,u,d,p,g,l=0,h=!1,y=!1,P=!0;if(typeof n!="function")throw new TypeError(gc);o=ao(o)||0,_t(s)&&(h=!!s.leading,y="maxWait"in s,u=y?Oc(ao(s.maxWait)||0,o):u,P="trailing"in s?!!s.trailing:P);function E(k){var C=i,F=c;return i=c=void 0,l=k,d=n.apply(F,C),d}function w(k){return l=k,p=setTimeout(O,o),h?E(k):d}function v(k){var C=k-g,F=k-l,R=o-C;return y?Lc(R,u-F):R}function M(k){var C=k-g,F=k-l;return g===void 0||C>=o||C<0||y&&F>=u}function O(){var k=Rt();if(M(k))return z(k);p=setTimeout(O,v(k))}function z(k){return p=void 0,P&&i?E(k):(i=c=void 0,d)}function _(){p!==void 0&&clearTimeout(p),l=0,i=g=c=p=void 0}function oe(){return p===void 0?d:z(Rt())}function U(){var k=Rt(),C=M(k);if(i=arguments,c=this,g=k,C){if(p===void 0)return w(g);if(y)return p=setTimeout(O,o),E(g)}return p===void 0&&(p=setTimeout(O,o)),d}return U.cancel=_,U.flush=oe,U}function _t(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function Ic(n){return!!n&&typeof n=="object"}function Rc(n){return typeof n=="symbol"||Ic(n)&&Tc.call(n)==bc}function ao(n){if(typeof n=="number")return n;if(Rc(n))return io;if(_t(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=_t(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(yc,"");var s=kc.test(n);return s||Ec.test(n)?xc(n.slice(2),s?2:8):vc.test(n)?io:+n}var jc=Bc;const Ut=Zt(jc),ie=document.querySelector(".scrollup-btn");document.addEventListener("scroll",Ut(Nc,100));ie==null||ie.addEventListener("click",Mc);function Nc(){window.scrollY>300?ie==null||ie.classList.remove("d-none"):ie==null||ie.classList.add("d-none")}function Mc(){window.scrollTo({top:0,behavior:"smooth"})}const jt=document.getElementById("openModalLink3"),Pe=document.getElementById("modal3"),Nt=document.querySelector(".close3");jt==null||jt.addEventListener("click",n=>{n.preventDefault(),Pe.classList.contains("modal-open")?Pe.classList.remove("modal-open"):Pe.classList.add("modal-open")});Nt==null||Nt.addEventListener("click",()=>{Pe.classList.remove("modal-open")});window.addEventListener("click",n=>{n.target===Pe&&Pe.classList.remove("modal-open")});const Qo=$o.closest("#modal-recipe"),Xt=document.querySelector(".rating-modal"),Fc=document.querySelector(".rate"),Dc=document.querySelector(".live-rating"),qc=document.querySelector(".rating-modal-form > input"),Hc=document.querySelector(".rating-modal-form"),zc=Xt.querySelector(".rating-modal-btn-close");$o.addEventListener("click",$c);Fc.addEventListener("click",Uc);Hc.addEventListener("submit",Vc);zc.addEventListener("click",er);function $c(){Qo.classList.add("is-hidden"),Xt.classList.remove("is-hidden")}function _c(){Qo.classList.remove("is-hidden"),Xt.classList.add("is-hidden")}function er(){dt(),_c()}function Uc(n){n.target.nodeName==="INPUT"&&(Dc.textContent=n.target.value,qc.setAttribute("rate",n.target.value))}function Vc(n){n.preventDefault();const o={email:n.target.elements.email.value,rate:Number(n.target.elements.email.attributes.rate.value)};Wc(o),n.target.reset()}async function Wc(n){try{const o=`https://tasty-treats-backend.p.goit.global/api/recipes/${_o}/rating`;await qo.patch(o,n),fe.fire({icon:"success",title:"Your rating was successfully added,please enter a new Email"}),er()}catch(o){o.response.status===409&&fe.fire({icon:"info",title:"You have already rated this recipe"}),o.response.status===400&&fe.fire({icon:"error",title:"An error occured,plase try again"})}}var tr="Expected a function",co=0/0,Jc="[object Symbol]",Kc=/^\s+|\s+$/g,Yc=/^[-+]0x[0-9a-f]+$/i,Zc=/^0b[01]+$/i,Xc=/^0o[0-7]+$/i,Gc=parseInt,Qc=typeof H=="object"&&H&&H.Object===Object&&H,el=typeof self=="object"&&self&&self.Object===Object&&self,tl=Qc||el||Function("return this")(),nl=Object.prototype,ol=nl.toString,rl=Math.max,sl=Math.min,Mt=function(){return tl.Date.now()};function il(n,o,s){var i,c,u,d,p,g,l=0,h=!1,y=!1,P=!0;if(typeof n!="function")throw new TypeError(tr);o=lo(o)||0,ot(s)&&(h=!!s.leading,y="maxWait"in s,u=y?rl(lo(s.maxWait)||0,o):u,P="trailing"in s?!!s.trailing:P);function E(k){var C=i,F=c;return i=c=void 0,l=k,d=n.apply(F,C),d}function w(k){return l=k,p=setTimeout(O,o),h?E(k):d}function v(k){var C=k-g,F=k-l,R=o-C;return y?sl(R,u-F):R}function M(k){var C=k-g,F=k-l;return g===void 0||C>=o||C<0||y&&F>=u}function O(){var k=Mt();if(M(k))return z(k);p=setTimeout(O,v(k))}function z(k){return p=void 0,P&&i?E(k):(i=c=void 0,d)}function _(){p!==void 0&&clearTimeout(p),l=0,i=g=c=p=void 0}function oe(){return p===void 0?d:z(Mt())}function U(){var k=Mt(),C=M(k);if(i=arguments,c=this,g=k,C){if(p===void 0)return w(g);if(y)return p=setTimeout(O,o),E(g)}return p===void 0&&(p=setTimeout(O,o)),d}return U.cancel=_,U.flush=oe,U}function al(n,o,s){var i=!0,c=!0;if(typeof n!="function")throw new TypeError(tr);return ot(s)&&(i="leading"in s?!!s.leading:i,c="trailing"in s?!!s.trailing:c),il(n,o,{leading:i,maxWait:o,trailing:c})}function ot(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function cl(n){return!!n&&typeof n=="object"}function ll(n){return typeof n=="symbol"||cl(n)&&ol.call(n)==Jc}function lo(n){if(typeof n=="number")return n;if(ll(n))return co;if(ot(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=ot(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(Kc,"");var s=Zc.test(n);return s||Xc.test(n)?Gc(n.slice(2),s?2:8):Yc.test(n)?co:+n}var dl=al;const ul=Zt(dl);var nr=function(){};function or(n){var o=void 0,s=void 0,i=void 0;for(o=0;o=c.out&&!i.once?d():s>=c.in?p():o.animated&&!i.once&&d()},mo=function(o){return o.forEach(function(s,i){return Sl(s,window.pageYOffset)})},sr=function(o){for(var s=0,i=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)s+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),i+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:i,left:s}},me=function(n,o,s){var i=n.getAttribute("data-aos-"+o);if(typeof i<"u"){if(i==="true")return!0;if(i==="false")return!1}return i||s},Al=function(o,s,i){var c=window.innerHeight,u=me(o,"anchor"),d=me(o,"anchor-placement"),p=Number(me(o,"offset",d?0:s)),g=d||i,l=o;u&&document.querySelectorAll(u)&&(l=document.querySelectorAll(u)[0]);var h=sr(l).top-c;switch(g){case"top-bottom":break;case"center-bottom":h+=l.offsetHeight/2;break;case"bottom-bottom":h+=l.offsetHeight;break;case"top-center":h+=c/2;break;case"center-center":h+=c/2+l.offsetHeight/2;break;case"bottom-center":h+=c/2+l.offsetHeight;break;case"top-top":h+=c;break;case"bottom-top":h+=c+l.offsetHeight;break;case"center-top":h+=c+l.offsetHeight/2;break}return h+p},Pl=function(o,s){var i=me(o,"anchor"),c=me(o,"offset",s),u=o;i&&document.querySelectorAll(i)&&(u=document.querySelectorAll(i)[0]);var d=sr(u).top;return d+u.offsetHeight-c},Tl=function(o,s){return o.forEach(function(i,c){var u=me(i.node,"mirror",s.mirror),d=me(i.node,"once",s.once),p=me(i.node,"id"),g=s.useClassNames&&i.node.getAttribute("data-aos"),l=[s.animatedClassName].concat(g?g.split(" "):[]).filter(function(h){return typeof h=="string"});s.initClassName&&i.node.classList.add(s.initClassName),i.position={in:Al(i.node,s.offset,s.anchorPlacement),out:u&&Pl(i.node,s.offset)},i.options={once:d,mirror:u,animatedClassNames:l,id:p}}),o},ir=function(){var n=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(n,function(o){return{node:o}})},ae=[],po=!1,L={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},ar=function(){return document.all&&!window.atob},Ol=function(){return ae=Tl(ae,L),mo(ae),window.addEventListener("scroll",ul(function(){mo(ae,L.once)},L.throttleDelay)),ae},ye=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;o&&(po=!0),po&&Ol()},cr=function(){if(ae=ir(),dr(L.disable)||ar())return lr();ye()},lr=function(){ae.forEach(function(o,s){o.node.removeAttribute("data-aos"),o.node.removeAttribute("data-aos-easing"),o.node.removeAttribute("data-aos-duration"),o.node.removeAttribute("data-aos-delay"),L.initClassName&&o.node.classList.remove(L.initClassName),L.animatedClassName&&o.node.classList.remove(L.animatedClassName)})},dr=function(o){return o===!0||o==="mobile"&&Qe.mobile()||o==="phone"&&Qe.phone()||o==="tablet"&&Qe.tablet()||typeof o=="function"&&o()===!0},Ll=function(o){return L=gl(L,o),ae=ir(),!L.disableMutationObserver&&!uo.isSupported()&&(console.info(` + `};async function lc(n){const o=document.querySelector(".markUp"),s=document.querySelector(".favorite-btn");try{const i=await ac(n);if(i){const c=cc(i);o.innerHTML=c;const u=JSON.parse(localStorage.getItem("favorites"))||[];Uo(u,i._id)?s.textContent="Remove from Favorite":s.textContent="Add to Favorite",s==null||s.removeEventListener("click",ro),s==null||s.addEventListener("click",()=>{ro(u,i,s)})}else fe.fire({icon:"error",title:"Something went wrong, try reloading the page"})}catch(i){console.error(i)}}function ro(n,o,s){Uo(n,o._id)?(Vo(n,o._id),s.textContent="Add to Favorite"):($t(n,o),s.textContent="Remove from Favorite")}function Uo(n,o){return n.some(s=>s._id===o)}async function $t(n,o){n.some(i=>i._id===o._id)?fe.fire({icon:"info",title:"The recipe is already in your favorites!"}):(n.push(o),Wo(n),fe.fire({icon:"success",title:"Added to favorites!"}))}async function Vo(n,o){const s=n.findIndex(i=>i._id===o);s!==-1&&(n.splice(s,1),Wo(n),fe.fire({icon:"info",title:"Removed from favorites!"}))}function Wo(n){localStorage.setItem("favorites",JSON.stringify(n));const o=new Event("favoritesUpdated");window.dispatchEvent(o)}const tt="dark-theme",Jo=document.getElementById("theme-switcher"),dc=localStorage.getItem(tt);document.addEventListener("DOMContentLoaded",uc);Jo.addEventListener("change",Ko);function Ko(n){n.target.checked?(document.body.classList.add("dark-theme"),localStorage.setItem(tt,"true")):(document.body.classList.remove("dark-theme"),localStorage.removeItem(tt))}function uc(){dc&&(document.body.classList.add("dark-theme"),Jo.querySelector("input").checked=!0)}function fc(){const n=localStorage.getItem(tt)==="true",o=document.getElementById("mob-theme-switcher");o&&o&&(o.addEventListener("change",Ko),o.querySelector("input").checked=n)}const Yo=document.querySelector(".js-menu-container"),nt=document.querySelector(".js-open-menu"),mc=document.querySelector(".js-close-menu"),Zo=()=>{const n=nt.getAttribute("aria-expanded")==="true"||!1;nt.setAttribute("aria-expanded",!n),Yo.classList.toggle("is-open"),n?document.body.classList.remove("no-scroll"):document.body.classList.add("no-scroll"),fc()};nt.addEventListener("click",Zo);mc.addEventListener("click",Zo);window.matchMedia("(min-width: 768px)").addEventListener("change",n=>{n.matches&&(Yo.classList.remove("is-open"),nt.setAttribute("aria-expanded",!1),document.body.classList.remove("no-scroll"))});document.addEventListener("DOMContentLoaded",function(){const n=document.getElementById("mobile-home-link"),o=document.getElementById("mobile-favorites-link");if(location.pathname.match(/favorite/)){o.classList.add("active-page"),n.classList.remove("active-page");return}n.classList.add("active-page"),o.classList.remove("active-page")});document.addEventListener("DOMContentLoaded",function(){const n=document.getElementById("home-link"),o=document.getElementById("favorites-link");if(location.pathname.match(/favorite/)){o.classList.add("active-page"),n.classList.remove("active-page");return}n.classList.add("active-page"),o.classList.remove("active-page")});function Il(n){if(n.target.classList.contains("heart-icon")){n.target.classList.remove("heart-icon"),n.target.classList.add("added-heart-icon");let o=n.target.dataset.id;async function s(){try{const i=await zt(`recipes/${o}`),c=JSON.parse(localStorage.getItem("favorites"))||[];so(c,i._id)||$t(c,i)}catch(i){console.log(i)}}s()}else if(n.target.classList.contains("added-heart-icon")){n.target.classList.remove("added-heart-icon"),n.target.classList.add("heart-icon");let o=n.target.dataset.id;async function s(){try{const i=await zt(`recipes/${o}`),c=JSON.parse(localStorage.getItem("favorites"))||[];so(c,i._id)?Vo(c,i._id):$t(c,i)}catch(i){console.log(i)}}s()}else if(n.target.classList.contains("recipe-see")){let o=n.target.dataset.id;oc(o)}else return}function so(n,o){return n.some(s=>s._id===o)}const X={modalOrderNowForm:document.querySelector(".order-now-modal-form"),openButtonEl:document.querySelector(".header-order-btn"),openButtonHeroEl:document.querySelector(".hero-btn"),closeButtonEl:document.querySelector(".order-now-modal-close-btn"),backdropEl:document.querySelector(".order-now-backdrop"),modalEl:document.querySelector(".order-now-modal")};var ho;(ho=X.openButtonEl)==null||ho.addEventListener("click",Xo,{passive:!0});var wo;(wo=X.openButtonHeroEl)==null||wo.addEventListener("click",Xo);var go;(go=X.closeButtonEl)==null||go.addEventListener("click",ut,{passive:!0});var bo;(bo=X.backdropEl)==null||bo.addEventListener("click",pc,{passive:!0});var yo;(yo=X.modalOrderNowForm)==null||yo.addEventListener("submit",wc,{passive:!0});function Xo(){var n,o;window.addEventListener("keydown",Go,{passive:!0}),(n=X.backdropEl)==null||n.classList.replace("hidden-backdrop","opened-backdrop"),(o=X.modalEl)==null||o.classList.replace("hidden-modal","opened-modal")}function ut(){var n,o;window.removeEventListener("keydown",Go),(n=X.backdropEl)==null||n.classList.replace("opened-backdrop","hidden-backdrop"),(o=X.modalEl)==null||o.classList.replace("opened-modal","hidden-modal")}function pc(n){n.target===X.backdropEl&&ut()}function Go(n){n.code==="Escape"&&ut()}function hc(n){let o={};return o.name=n.querySelector('input[name="name"]').value,o.phone=n.querySelector('input[name="phone"]').value,o.email=n.querySelector('input[name="email"]').value,o.comment=n.querySelector('textarea[name="comment"]').value,n.querySelector('textarea[name="comment"]').value===""&&(o.comment="So delicious"),o}function wc(n){n.preventDefault();const o=hc(X.modalOrderNowForm),{name:s,phone:i,email:c,comment:u}=o,d={name:s,phone:i,email:c,comment:u};postOrder(d).then(()=>{localStorage.getItem("patch-rating")!=="error"&&(ut(),setTimeout(()=>{zo.fire({icon:"success",title:"Thank you for your order!",timer:1500,showConfirmButton:!1})},500),X.modalOrderNowForm.reset())}).catch(p=>console.log(p))}var gc="Expected a function",io=0/0,bc="[object Symbol]",yc=/^\s+|\s+$/g,vc=/^[-+]0x[0-9a-f]+$/i,kc=/^0b[01]+$/i,Ec=/^0o[0-7]+$/i,xc=parseInt,Cc=typeof H=="object"&&H&&H.Object===Object&&H,Sc=typeof self=="object"&&self&&self.Object===Object&&self,Ac=Cc||Sc||Function("return this")(),Pc=Object.prototype,Tc=Pc.toString,Oc=Math.max,Lc=Math.min,Rt=function(){return Ac.Date.now()};function Bc(n,o,s){var i,c,u,d,p,g,l=0,h=!1,y=!1,P=!0;if(typeof n!="function")throw new TypeError(gc);o=ao(o)||0,_t(s)&&(h=!!s.leading,y="maxWait"in s,u=y?Oc(ao(s.maxWait)||0,o):u,P="trailing"in s?!!s.trailing:P);function E(k){var C=i,F=c;return i=c=void 0,l=k,d=n.apply(F,C),d}function w(k){return l=k,p=setTimeout(O,o),h?E(k):d}function v(k){var C=k-g,F=k-l,R=o-C;return y?Lc(R,u-F):R}function M(k){var C=k-g,F=k-l;return g===void 0||C>=o||C<0||y&&F>=u}function O(){var k=Rt();if(M(k))return z(k);p=setTimeout(O,v(k))}function z(k){return p=void 0,P&&i?E(k):(i=c=void 0,d)}function _(){p!==void 0&&clearTimeout(p),l=0,i=g=c=p=void 0}function oe(){return p===void 0?d:z(Rt())}function U(){var k=Rt(),C=M(k);if(i=arguments,c=this,g=k,C){if(p===void 0)return w(g);if(y)return p=setTimeout(O,o),E(g)}return p===void 0&&(p=setTimeout(O,o)),d}return U.cancel=_,U.flush=oe,U}function _t(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function Ic(n){return!!n&&typeof n=="object"}function Rc(n){return typeof n=="symbol"||Ic(n)&&Tc.call(n)==bc}function ao(n){if(typeof n=="number")return n;if(Rc(n))return io;if(_t(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=_t(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(yc,"");var s=kc.test(n);return s||Ec.test(n)?xc(n.slice(2),s?2:8):vc.test(n)?io:+n}var jc=Bc;const Ut=Zt(jc),ie=document.querySelector(".scrollup-btn");document.addEventListener("scroll",Ut(Nc,100));ie==null||ie.addEventListener("click",Mc);function Nc(){window.scrollY>300?ie==null||ie.classList.remove("d-none"):ie==null||ie.classList.add("d-none")}function Mc(){window.scrollTo({top:0,behavior:"smooth"})}const jt=document.getElementById("openModalLink3"),Pe=document.getElementById("modal3"),Nt=document.querySelector(".close3");jt==null||jt.addEventListener("click",n=>{n.preventDefault(),Pe.classList.contains("modal-open")?Pe.classList.remove("modal-open"):Pe.classList.add("modal-open")});Nt==null||Nt.addEventListener("click",()=>{Pe.classList.remove("modal-open")});window.addEventListener("click",n=>{n.target===Pe&&Pe.classList.remove("modal-open")});const Qo=$o.closest("#modal-recipe"),Xt=document.querySelector(".rating-modal"),Fc=document.querySelector(".rate"),Dc=document.querySelector(".live-rating"),qc=document.querySelector(".rating-modal-form > input"),Hc=document.querySelector(".rating-modal-form"),zc=Xt.querySelector(".rating-modal-btn-close");$o.addEventListener("click",$c);Fc.addEventListener("click",Uc);Hc.addEventListener("submit",Vc);zc.addEventListener("click",er);function $c(){Qo.classList.add("is-hidden"),Xt.classList.remove("is-hidden")}function _c(){Qo.classList.remove("is-hidden"),Xt.classList.add("is-hidden")}function er(){dt(),_c()}function Uc(n){n.target.nodeName==="INPUT"&&(Dc.textContent=n.target.value,qc.setAttribute("rate",n.target.value))}function Vc(n){n.preventDefault();const o={email:n.target.elements.email.value,rate:Number(n.target.elements.email.attributes.rate.value)};Wc(o),n.target.reset()}async function Wc(n){try{const o=`https://tasty-treats-backend.p.goit.global/api/recipes/${_o}/rating`;await qo.patch(o,n),fe.fire({icon:"success",title:"Your rating was successfully added,please enter a new Email"}),er()}catch(o){o.response.status===409&&fe.fire({icon:"info",title:"You have already rated this recipe"}),o.response.status===400&&fe.fire({icon:"error",title:"An error occured,plase try again"})}}var tr="Expected a function",co=0/0,Jc="[object Symbol]",Kc=/^\s+|\s+$/g,Yc=/^[-+]0x[0-9a-f]+$/i,Zc=/^0b[01]+$/i,Xc=/^0o[0-7]+$/i,Gc=parseInt,Qc=typeof H=="object"&&H&&H.Object===Object&&H,el=typeof self=="object"&&self&&self.Object===Object&&self,tl=Qc||el||Function("return this")(),nl=Object.prototype,ol=nl.toString,rl=Math.max,sl=Math.min,Mt=function(){return tl.Date.now()};function il(n,o,s){var i,c,u,d,p,g,l=0,h=!1,y=!1,P=!0;if(typeof n!="function")throw new TypeError(tr);o=lo(o)||0,ot(s)&&(h=!!s.leading,y="maxWait"in s,u=y?rl(lo(s.maxWait)||0,o):u,P="trailing"in s?!!s.trailing:P);function E(k){var C=i,F=c;return i=c=void 0,l=k,d=n.apply(F,C),d}function w(k){return l=k,p=setTimeout(O,o),h?E(k):d}function v(k){var C=k-g,F=k-l,R=o-C;return y?sl(R,u-F):R}function M(k){var C=k-g,F=k-l;return g===void 0||C>=o||C<0||y&&F>=u}function O(){var k=Mt();if(M(k))return z(k);p=setTimeout(O,v(k))}function z(k){return p=void 0,P&&i?E(k):(i=c=void 0,d)}function _(){p!==void 0&&clearTimeout(p),l=0,i=g=c=p=void 0}function oe(){return p===void 0?d:z(Mt())}function U(){var k=Mt(),C=M(k);if(i=arguments,c=this,g=k,C){if(p===void 0)return w(g);if(y)return p=setTimeout(O,o),E(g)}return p===void 0&&(p=setTimeout(O,o)),d}return U.cancel=_,U.flush=oe,U}function al(n,o,s){var i=!0,c=!0;if(typeof n!="function")throw new TypeError(tr);return ot(s)&&(i="leading"in s?!!s.leading:i,c="trailing"in s?!!s.trailing:c),il(n,o,{leading:i,maxWait:o,trailing:c})}function ot(n){var o=typeof n;return!!n&&(o=="object"||o=="function")}function cl(n){return!!n&&typeof n=="object"}function ll(n){return typeof n=="symbol"||cl(n)&&ol.call(n)==Jc}function lo(n){if(typeof n=="number")return n;if(ll(n))return co;if(ot(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=ot(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=n.replace(Kc,"");var s=Zc.test(n);return s||Xc.test(n)?Gc(n.slice(2),s?2:8):Yc.test(n)?co:+n}var dl=al;const ul=Zt(dl);var nr=function(){};function or(n){var o=void 0,s=void 0,i=void 0;for(o=0;o=c.out&&!i.once?d():s>=c.in?p():o.animated&&!i.once&&d()},mo=function(o){return o.forEach(function(s,i){return Sl(s,window.pageYOffset)})},sr=function(o){for(var s=0,i=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)s+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),i+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:i,left:s}},me=function(n,o,s){var i=n.getAttribute("data-aos-"+o);if(typeof i<"u"){if(i==="true")return!0;if(i==="false")return!1}return i||s},Al=function(o,s,i){var c=window.innerHeight,u=me(o,"anchor"),d=me(o,"anchor-placement"),p=Number(me(o,"offset",d?0:s)),g=d||i,l=o;u&&document.querySelectorAll(u)&&(l=document.querySelectorAll(u)[0]);var h=sr(l).top-c;switch(g){case"top-bottom":break;case"center-bottom":h+=l.offsetHeight/2;break;case"bottom-bottom":h+=l.offsetHeight;break;case"top-center":h+=c/2;break;case"center-center":h+=c/2+l.offsetHeight/2;break;case"bottom-center":h+=c/2+l.offsetHeight;break;case"top-top":h+=c;break;case"bottom-top":h+=c+l.offsetHeight;break;case"center-top":h+=c+l.offsetHeight/2;break}return h+p},Pl=function(o,s){var i=me(o,"anchor"),c=me(o,"offset",s),u=o;i&&document.querySelectorAll(i)&&(u=document.querySelectorAll(i)[0]);var d=sr(u).top;return d+u.offsetHeight-c},Tl=function(o,s){return o.forEach(function(i,c){var u=me(i.node,"mirror",s.mirror),d=me(i.node,"once",s.once),p=me(i.node,"id"),g=s.useClassNames&&i.node.getAttribute("data-aos"),l=[s.animatedClassName].concat(g?g.split(" "):[]).filter(function(h){return typeof h=="string"});s.initClassName&&i.node.classList.add(s.initClassName),i.position={in:Al(i.node,s.offset,s.anchorPlacement),out:u&&Pl(i.node,s.offset)},i.options={once:d,mirror:u,animatedClassNames:l,id:p}}),o},ir=function(){var n=document.querySelectorAll("[data-aos]");return Array.prototype.map.call(n,function(o){return{node:o}})},ae=[],po=!1,L={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,mirror:!1,anchorPlacement:"top-bottom",startEvent:"DOMContentLoaded",animatedClassName:"aos-animate",initClassName:"aos-init",useClassNames:!1,disableMutationObserver:!1,throttleDelay:99,debounceDelay:50},ar=function(){return document.all&&!window.atob},Ol=function(){return ae=Tl(ae,L),mo(ae),window.addEventListener("scroll",ul(function(){mo(ae,L.once)},L.throttleDelay)),ae},ye=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;o&&(po=!0),po&&Ol()},cr=function(){if(ae=ir(),dr(L.disable)||ar())return lr();ye()},lr=function(){ae.forEach(function(o,s){o.node.removeAttribute("data-aos"),o.node.removeAttribute("data-aos-easing"),o.node.removeAttribute("data-aos-duration"),o.node.removeAttribute("data-aos-delay"),L.initClassName&&o.node.classList.remove(L.initClassName),L.animatedClassName&&o.node.classList.remove(L.animatedClassName)})},dr=function(o){return o===!0||o==="mobile"&&Qe.mobile()||o==="phone"&&Qe.phone()||o==="tablet"&&Qe.tablet()||typeof o=="function"&&o()===!0},Ll=function(o){return L=gl(L,o),ae=ir(),!L.disableMutationObserver&&!uo.isSupported()&&(console.info(` aos: MutationObserver is not supported on this browser, code mutations observing has been disabled. You may have to call "refreshHard()" by yourself. diff --git a/assets/favorites-92c64e50.js b/assets/favorites-a59979f8.js similarity index 98% rename from assets/favorites-92c64e50.js rename to assets/favorites-a59979f8.js index 8eedef1..bb148cc 100644 --- a/assets/favorites-92c64e50.js +++ b/assets/favorites-a59979f8.js @@ -1,4 +1,4 @@ -import{s as u,a as m}from"./aos-26cf9ec7.js";function h(i){const r=document.querySelectorAll(".recipe-item"),s=document.querySelectorAll(".favorites-categoris-item");i.addEventListener("click",c);function c(a){if(a.target.tagName==="LI"){if(s.forEach(t=>{t.classList.remove("favorites-categoris-choosen")}),a.target.classList.add("favorites-categoris-choosen"),a.target.dataset.category=="All categories"){r.forEach(t=>{t.classList.remove("d-none")});return}r.forEach(t=>{t.classList.remove("d-none"),t.dataset.category!==a.target.dataset.category&&t.classList.add("d-none")})}}}const n=document.querySelector(".favorites-categoris-list");function v(){n.innerHTML="";const i=JSON.parse(localStorage.getItem("favorites")).map(r=>r.category).filter((r,s,c)=>c.indexOf(r)===s);n.insertAdjacentHTML("beforeend",i.map(r=>`
  • ${r}
  • `).join("")),n.innerHTML&&n.insertAdjacentHTML("afterbegin",'
  • All categories
  • ')}function y(i){const s=JSON.parse(localStorage.getItem("favorites")).map(({rating:a,title:t,description:d,preview:l,_id:g,category:p})=>` +import{s as u,a as m}from"./aos-a32ca2dc.js";function h(i){const r=document.querySelectorAll(".recipe-item"),s=document.querySelectorAll(".favorites-categoris-item");i.addEventListener("click",c);function c(a){if(a.target.tagName==="LI"){if(s.forEach(t=>{t.classList.remove("favorites-categoris-choosen")}),a.target.classList.add("favorites-categoris-choosen"),a.target.dataset.category=="All categories"){r.forEach(t=>{t.classList.remove("d-none")});return}r.forEach(t=>{t.classList.remove("d-none"),t.dataset.category!==a.target.dataset.category&&t.classList.add("d-none")})}}}const n=document.querySelector(".favorites-categoris-list");function v(){n.innerHTML="";const i=JSON.parse(localStorage.getItem("favorites")).map(r=>r.category).filter((r,s,c)=>c.indexOf(r)===s);n.insertAdjacentHTML("beforeend",i.map(r=>`
  • ${r}
  • `).join("")),n.innerHTML&&n.insertAdjacentHTML("afterbegin",'
  • All categories
  • ')}function y(i){const s=JSON.parse(localStorage.getItem("favorites")).map(({rating:a,title:t,description:d,preview:l,_id:g,category:p})=>`
  • + + ${r} + +
  • + +`}async function ct(){try{const e=(await J("recipes/popular")).map(i=>dt(i)).join("");Re.innerHTML=e,pt()}catch{Q.fire({icon:"error",title:"Something went wrong, try reloading the page"})}}async function pt(){Re.addEventListener("click",async t=>{const e=t.target.closest(".popular-recipes-list");if(e)try{const i=e.id;await nt(i)}catch{Q.fire({icon:"error",title:"Something went wrong, try reloading the page"})}})}ct();function Ge(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function $e(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:Ge(e[i])&&Ge(t[i])&&Object.keys(e[i]).length>0&&$e(t[i],e[i])})}const _e={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Y(){const t=typeof document<"u"?document:{};return $e(t,_e),t}const ut={document:_e,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function q(){const t=typeof window<"u"?window:{};return $e(t,ut),t}function ft(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function Ae(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function oe(){return Date.now()}function mt(t){const e=q();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function gt(t,e){e===void 0&&(e="x");const i=q();let s,r,n;const o=mt(t);return i.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(l=>l.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(r==="none"?"":r)):(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?r=n.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?r=n.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function ie(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function ht(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function V(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(n)<0);for(let n=0,o=r.length;nn?"next":"prev",g=(y,u)=>p==="next"&&y>=u||p==="prev"&&y<=u,m=()=>{l=new Date().getTime(),o===null&&(o=l);const y=Math.max(Math.min((l-o)/a,1),0),u=.5-Math.cos(y*Math.PI)/2;let x=n+u*(i-n);if(g(x,i)&&(x=i),e.wrapperEl.scrollTo({[s]:x}),g(x,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:x})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(m)};m()}function W(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function We(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:[e]),i}function vt(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function wt(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function K(t,e){return q().getComputedStyle(t,null).getPropertyValue(e)}function de(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function Ye(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function Oe(t,e,i){const s=q();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}let ue;function yt(){const t=q(),e=Y();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Xe(){return ue||(ue=yt()),ue}let fe;function St(t){let{userAgent:e}=t===void 0?{}:t;const i=Xe(),s=q(),r=s.navigator.platform,n=e||s.navigator.userAgent,o={ios:!1,android:!1},l=s.screen.width,a=s.screen.height,p=n.match(/(Android);?[\s\/]+([\d.]+)?/);let g=n.match(/(iPad).*OS\s([\d_]+)/);const m=n.match(/(iPod)(.*OS\s([\d_]+))?/),y=!g&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=r==="Win32";let x=r==="MacIntel";const f=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!g&&x&&i.touch&&f.indexOf(`${l}x${a}`)>=0&&(g=n.match(/(Version)\/([\d.]+)/),g||(g=[0,1,"13_0_0"]),x=!1),p&&!u&&(o.os="android",o.android=!0),(g||y||m)&&(o.os="ios",o.ios=!0),o}function Tt(t){return t===void 0&&(t={}),fe||(fe=St(t)),fe}let me;function xt(){const t=q();let e=!1;function i(){const s=t.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(i()){const s=String(t.navigator.userAgent);if(s.includes("Version/")){const[r,n]=s.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=r<16||r===16&&n<2}}return{isSafari:e||i(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function bt(){return me||(me=xt()),me}function Ct(t){let{swiper:e,on:i,emit:s}=t;const r=q();let n=null,o=null;const l=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(m=>{o=r.requestAnimationFrame(()=>{const{width:y,height:u}=e;let x=y,f=u;m.forEach(S=>{let{contentBoxSize:w,contentRect:d,target:c}=S;c&&c!==e.el||(x=d?d.width:(w[0]||w).inlineSize,f=d?d.height:(w[0]||w).blockSize)}),(x!==y||f!==u)&&l()})}),n.observe(e.el))},p=()=>{o&&r.cancelAnimationFrame(o),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},g=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){a();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",g)}),i("destroy",()=>{p(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",g)})}function Et(t){let{swiper:e,extendParams:i,on:s,emit:r}=t;const n=[],o=q(),l=function(g,m){m===void 0&&(m={});const y=o.MutationObserver||o.WebkitMutationObserver,u=new y(x=>{if(e.__preventObserver__)return;if(x.length===1){r("observerUpdate",x[0]);return}const f=function(){r("observerUpdate",x[0])};o.requestAnimationFrame?o.requestAnimationFrame(f):o.setTimeout(f,0)});u.observe(g,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),n.push(u)},a=()=>{if(e.params.observer){if(e.params.observeParents){const g=Ye(e.hostEl);for(let m=0;m{n.forEach(g=>{g.disconnect()}),n.splice(0,n.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",a),s("destroy",p)}var Lt={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const r=i?"unshift":"push";return t.split(" ").forEach(n=>{s.eventsListeners[n]||(s.eventsListeners[n]=[]),s.eventsListeners[n][r](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function r(){s.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,o=new Array(n),l=0;l=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((r,n)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&i.eventsListeners[s].splice(n,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var r=arguments.length,n=new Array(r),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(p=>{p.apply(s,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(p=>{p.apply(s,i)})}),t}};function Mt(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(K(s,"padding-left")||0,10)-parseInt(K(s,"padding-right")||0,10),i=i-parseInt(K(s,"padding-top")||0,10)-parseInt(K(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Pt(){const t=this;function e(b){return t.isHorizontal()?b:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[b]}function i(b,E){return parseFloat(b.getPropertyValue(e(E))||0)}const s=t.params,{wrapperEl:r,slidesEl:n,size:o,rtlTranslate:l,wrongRTL:a}=t,p=t.virtual&&s.virtual.enabled,g=p?t.virtual.slides.length:t.slides.length,m=W(n,`.${t.params.slideClass}, swiper-slide`),y=p?t.virtual.slides.length:m.length;let u=[];const x=[],f=[];let S=s.slidesOffsetBefore;typeof S=="function"&&(S=s.slidesOffsetBefore.call(t));let w=s.slidesOffsetAfter;typeof w=="function"&&(w=s.slidesOffsetAfter.call(t));const d=t.snapGrid.length,c=t.slidesGrid.length;let h=s.spaceBetween,T=-S,P=0,M=0;if(typeof o>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*o:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,m.forEach(b=>{l?b.style.marginLeft="":b.style.marginRight="",b.style.marginBottom="",b.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(se(r,"--swiper-centered-offset-before",""),se(r,"--swiper-centered-offset-after",""));const $=s.grid&&s.grid.rows>1&&t.grid;$&&t.grid.initSlides(y);let C;const N=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(b=>typeof s.breakpoints[b].slidesPerView<"u").length>0;for(let b=0;b1&&u.push(t.virtualSize-o)}if(p&&s.loop){const b=f[0]+h;if(s.slidesPerGroup>1){const E=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),L=b*s.slidesPerGroup;for(let A=0;A!s.cssMode||s.loop?!0:L!==m.length-1).forEach(E=>{E.style[b]=`${h}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let b=0;f.forEach(L=>{b+=L+(h||0)}),b-=h;const E=b-o;u=u.map(L=>L<=0?-S:L>E?E+w:L)}if(s.centerInsufficientSlides){let b=0;if(f.forEach(E=>{b+=E+(h||0)}),b-=h,b{u[A]=L-E}),x.forEach((L,A)=>{x[A]=L+E})}}if(Object.assign(t,{slides:m,snapGrid:u,slidesGrid:x,slidesSizesGrid:f}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){se(r,"--swiper-centered-offset-before",`${-u[0]}px`),se(r,"--swiper-centered-offset-after",`${t.size/2-f[f.length-1]/2}px`);const b=-t.snapGrid[0],E=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(L=>L+b),t.slidesGrid=t.slidesGrid.map(L=>L+E)}if(y!==g&&t.emit("slidesLengthChange"),u.length!==d&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),x.length!==c&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),!p&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const b=`${s.containerModifierClass}backface-hidden`,E=t.el.classList.contains(b);y<=s.maxBackfaceHiddenSlides?E||t.el.classList.add(b):E&&t.el.classList.remove(b)}}function It(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let r=0,n;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=l=>s?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{i.push(l)});else for(n=0;ne.slides.length&&!s)break;i.push(o(l))}else i.push(o(e.activeIndex));for(n=0;nr?l:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function At(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s"u"&&e.updateSlidesOffset();let o=-t;r&&(o=t),s.forEach(a=>{a.classList.remove(i.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=i.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let a=0;a=0&&u1&&x<=e.size||u<=0&&x>=e.size)&&(e.visibleSlides.push(p),e.visibleSlidesIndexes.push(a),s[a].classList.add(i.slideVisibleClass)),p.progress=r?-m:m,p.originalProgress=r?-y:y}}function zt(t){const e=this;if(typeof t>"u"){const g=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*g||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:n,isEnd:o,progressLoop:l}=e;const a=n,p=o;if(s===0)r=0,n=!0,o=!0;else{r=(t-e.minTranslate())/s;const g=Math.abs(t-e.minTranslate())<1,m=Math.abs(t-e.maxTranslate())<1;n=g||r<=0,o=m||r>=1,g&&(r=0),m&&(r=1)}if(i.loop){const g=e.getSlideIndexByData(0),m=e.getSlideIndexByData(e.slides.length-1),y=e.slidesGrid[g],u=e.slidesGrid[m],x=e.slidesGrid[e.slidesGrid.length-1],f=Math.abs(t);f>=y?l=(f-y)/x:l=(f+x-u)/x,l>1&&(l-=1)}Object.assign(e,{progress:r,progressLoop:l,isBeginning:n,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),n&&!a&&e.emit("reachBeginning toEdge"),o&&!p&&e.emit("reachEnd toEdge"),(a&&!n||p&&!o)&&e.emit("fromEdge"),e.emit("progress",r)}function $t(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:r}=t,n=t.virtual&&i.virtual.enabled,o=a=>W(s,`.${i.slideClass}${a}, swiper-slide${a}`)[0];e.forEach(a=>{a.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let l;if(n)if(i.loop){let a=r-t.virtual.slidesBefore;a<0&&(a=t.virtual.slides.length+a),a>=t.virtual.slides.length&&(a-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${a}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else l=e[r];if(l){l.classList.add(i.slideActiveClass);let a=wt(l,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!a&&(a=e[0]),a&&a.classList.add(i.slideNextClass);let p=vt(l,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!p===0&&(p=e[e.length-1]),p&&p.classList.add(i.slidePrevClass)}t.emitSlidesClasses()}const ne=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let r=s.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(r=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`)),r&&r.remove()}},ge=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},ze=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=r,l=[o-e];l.push(...Array.from({length:e}).map((a,p)=>o+s+p)),t.slides.forEach((a,p)=>{l.includes(a.column)&&ge(t,p)});return}const n=r+s-1;if(t.params.rewind||t.params.loop)for(let o=r-e;o<=n+e;o+=1){const l=(o%i+i)%i;(ln)&&ge(t,l)}else for(let o=Math.max(r-e,0);o<=Math.min(n+e,i-1);o+=1)o!==r&&(o>n||o=e[n]&&s=e[n]&&s=e[n]&&(r=n);return i.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function Dt(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:r,activeIndex:n,realIndex:o,snapIndex:l}=e;let a=t,p;const g=y=>{let u=y-e.virtual.slidesBefore;return u<0&&(u=e.virtual.slides.length+u),u>=e.virtual.slides.length&&(u-=e.virtual.slides.length),u};if(typeof a>"u"&&(a=kt(e)),s.indexOf(i)>=0)p=s.indexOf(i);else{const y=Math.min(r.slidesPerGroupSkip,a);p=y+Math.floor((a-y)/r.slidesPerGroup)}if(p>=s.length&&(p=s.length-1),a===n){p!==l&&(e.snapIndex=p,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=g(a));return}let m;e.virtual&&r.virtual.enabled&&r.loop?m=g(a):e.slides[a]?m=parseInt(e.slides[a].getAttribute("data-swiper-slide-index")||a,10):m=a,Object.assign(e,{previousSnapIndex:l,snapIndex:p,previousRealIndex:o,realIndex:m,previousIndex:n,activeIndex:a}),e.initialized&&ze(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==m&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function Gt(t){const e=this,i=e.params,s=t.closest(`.${i.slideClass}, swiper-slide`);let r=!1,n;if(s){for(let o=0;oa?g=a:s&&to?l="next":n=a.length&&(S=a.length-1);const w=-a[S];if(l.normalizeSlideIndex)for(let c=0;c=T&&h=T&&h=T&&(o=c)}if(n.initialized&&o!==m&&(!n.allowSlideNext&&(y?w>n.translate&&w>n.minTranslate():wn.translate&&w>n.maxTranslate()&&(m||0)!==o))return!1;o!==(g||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(w);let d;if(o>m?d="next":o0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{u[c?"scrollLeft":"scrollTop"]=h})):u[c?"scrollLeft":"scrollTop"]=h,T&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return je({swiper:n,targetPosition:h,side:c?"left":"top"}),!0;u.scrollTo({[c?"left":"top"]:h,behavior:"smooth"})}return!0}return n.setTransition(e),n.setTranslate(w),n.updateActiveIndex(o),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,d),e===0?n.transitionEnd(i,d):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(h){!n||n.destroyed||h.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,d))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function Qt(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this;let n=t;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?n=n+r.virtual.slidesBefore:n=r.getSlideIndexByData(n)),r.slideTo(n,e,i,s)}function Ut(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:r,params:n,animating:o}=s;if(!r)return s;let l=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(l=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndexy(w));let f=n[x.indexOf(u)-1];if(typeof f>"u"&&r.cssMode){let w;n.forEach((d,c)=>{u>=d&&(w=c)}),typeof w<"u"&&(f=n[w>0?w-1:w])}let S=0;if(typeof f<"u"&&(S=o.indexOf(f),S<0&&(S=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(S=S-s.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),r.rewind&&s.isBeginning){const w=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(w,t,e,i)}return s.slideTo(S,t,e,i)}function Jt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,t,e,i)}function Zt(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const r=this;let n=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,n),l=o+Math.floor((n-o)/r.params.slidesPerGroup),a=r.rtlTranslate?r.translate:-r.translate;if(a>=r.snapGrid[l]){const p=r.snapGrid[l],g=r.snapGrid[l+1];a-p>(g-p)*s&&(n+=r.params.slidesPerGroup)}else{const p=r.snapGrid[l-1],g=r.snapGrid[l];a-p<=(g-p)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,t,e,i)}function ei(){const t=this,{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,n;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?rt.slides.length-t.loopedSlides+s/2?(t.loopFix(),r=t.getSlideIndex(W(i,`${o}[data-swiper-slide-index="${n}"]`)[0]),Ae(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-s?(t.loopFix(),r=t.getSlideIndex(W(i,`${o}[data-swiper-slide-index="${n}"]`)[0]),Ae(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var ti={slideTo:Xt,slideToLoop:Qt,slideNext:Ut,slidePrev:Kt,slideReset:Jt,slideToClosest:Zt,slideToClickedSlide:ei};function ii(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;W(s,`.${i.slideClass}, swiper-slide`).forEach((n,o)=>{n.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function si(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:r,activeSlideIndex:n,byController:o,byMousewheel:l}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:p,allowSlidePrev:g,allowSlideNext:m,slidesEl:y,params:u}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&u.virtual.enabled){i&&(!u.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):u.centeredSlides&&a.snapIndex"u"?n=a.getSlideIndex(a.slides.filter(M=>M.classList.contains(u.slideActiveClass))[0]):d=n;const c=s==="next"||!s,h=s==="prev"||!s;let T=0,P=0;if(na.slides.length-f*2){P=Math.max(n-(a.slides.length-f*2),u.slidesPerGroup);for(let M=0;M{a.slides[M].swiperLoopMoveDOM=!0,y.prepend(a.slides[M]),a.slides[M].swiperLoopMoveDOM=!1}),c&&w.forEach(M=>{a.slides[M].swiperLoopMoveDOM=!0,y.append(a.slides[M]),a.slides[M].swiperLoopMoveDOM=!1}),a.recalcSlides(),u.slidesPerView==="auto"&&a.updateSlides(),u.watchSlidesProgress&&a.updateSlidesOffset(),i){if(S.length>0&&h)if(typeof e>"u"){const M=a.slidesGrid[d],C=a.slidesGrid[d+T]-M;l?a.setTranslate(a.translate-C):(a.slideTo(d+T,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=C,a.touchEventsData.currentTranslate=a.translate))}else r&&(a.slideToLoop(e,0,!1,!0),a.touchEventsData.currentTranslate=a.translate);else if(w.length>0&&c)if(typeof e>"u"){const M=a.slidesGrid[d],C=a.slidesGrid[d-P]-M;l?a.setTranslate(a.translate-C):(a.slideTo(d-P,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=C,a.touchEventsData.currentTranslate=a.translate))}else a.slideToLoop(e,0,!1,!0)}if(a.allowSlidePrev=g,a.allowSlideNext=m,a.controller&&a.controller.control&&!o){const M={slideRealIndex:e,direction:s,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach($=>{!$.destroyed&&$.params.loop&&$.loopFix({...M,slideTo:$.params.slidesPerView===u.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...M,slideTo:a.controller.control.params.slidesPerView===u.slidesPerView?i:!1})}a.emit("loopFix")}function ni(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[n]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{i.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ri={loopCreate:ii,loopFix:si,loopDestroy:ni};function ai(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function li(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var oi={setGrabCursor:ai,unsetGrabCursor:li};function di(t,e){e===void 0&&(e=this);function i(s){if(!s||s===Y()||s===q())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(t);return!r&&!s.getRootNode?null:r||i(s.getRootNode().host)}return i(e)}function ci(t){const e=this,i=Y(),s=q(),r=e.touchEventsData;r.evCache.push(t);const{params:n,touches:o,enabled:l}=e;if(!l||!n.simulateTouch&&t.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let a=t;a.originalEvent&&(a=a.originalEvent);let p=a.target;if(n.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(p)||"which"in a&&a.which===3||"button"in a&&a.button>0||r.isTouched&&r.isMoved)return;const g=!!n.noSwipingClass&&n.noSwipingClass!=="",m=t.composedPath?t.composedPath():t.path;g&&a.target&&a.target.shadowRoot&&m&&(p=m[0]);const y=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,u=!!(a.target&&a.target.shadowRoot);if(n.noSwiping&&(u?di(y,p):p.closest(y))){e.allowClick=!0;return}if(n.swipeHandler&&!p.closest(n.swipeHandler))return;o.currentX=a.pageX,o.currentY=a.pageY;const x=o.currentX,f=o.currentY,S=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,w=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(S&&(x<=w||x>=s.innerWidth-w))if(S==="prevent")t.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=x,o.startY=f,r.touchStartTime=oe(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let d=!0;p.matches(r.focusableElements)&&(d=!1,p.nodeName==="SELECT"&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==p&&i.activeElement.blur();const c=d&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||c)&&!p.isContentEditable&&a.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",a)}function pi(t){const e=Y(),i=this,s=i.touchEventsData,{params:r,touches:n,rtlTranslate:o,enabled:l}=i;if(!l||!r.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",a);return}const p=s.evCache.findIndex(P=>P.pointerId===a.pointerId);p>=0&&(s.evCache[p]=a);const g=s.evCache.length>1?s.evCache[0]:a,m=g.pageX,y=g.pageY;if(a.preventedByNestedSwiper){n.startX=m,n.startY=y;return}if(!i.allowTouchMove){a.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:m,startY:y,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:m,currentY:y}),s.touchStartTime=oe());return}if(r.touchReleaseOnEdges&&!r.loop){if(i.isVertical()){if(yn.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(mn.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}if(s.allowTouchCallbacks&&i.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;n.currentX=m,n.currentY=y;const u=n.currentX-n.startX,x=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(u**2+x**2)"u"){let P;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:u*u+x*x>=25&&(P=Math.atan2(Math.abs(x),Math.abs(u))*180/Math.PI,s.isScrolling=i.isHorizontal()?P>r.touchAngle:90-P>r.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation();let f=i.isHorizontal()?u:x,S=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(f=Math.abs(f)*(o?1:-1),S=Math.abs(S)*(o?1:-1)),n.diff=f,f*=r.touchRatio,o&&(f=-f,S=-S);const w=i.touchesDirection;i.swipeDirection=f>0?"prev":"next",i.touchesDirection=S>0?"prev":"next";const d=i.params.loop&&!r.cssMode;if(!s.isMoved){if(d&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(P)}s.allowMomentumBounce=!1,r.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let c;s.isMoved&&w!==i.touchesDirection&&d&&Math.abs(f)>=1&&(i.loopFix({direction:i.swipeDirection,setTranslate:!0}),c=!0),i.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=f+s.startTranslate;let h=!0,T=r.resistanceRatio;if(r.touchReleaseOnEdges&&(T=0),f>0?(d&&!c&&s.currentTranslate>(r.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(h=!1,r.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+f)**T))):f<0&&(d&&!c&&s.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(r.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(f)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function ui(t){const e=this,i=e.touchEventsData,s=i.evCache.findIndex(c=>c.pointerId===t.pointerId);if(s>=0&&i.evCache.splice(s,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(t.type)&&!(["pointercancel","contextmenu"].includes(t.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:r,touches:n,rtlTranslate:o,slidesGrid:l,enabled:a}=e;if(!a||!r.simulateTouch&&t.pointerType==="mouse")return;let p=t;if(p.originalEvent&&(p=p.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",p),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const g=oe(),m=g-i.touchStartTime;if(e.allowClick){const c=p.path||p.composedPath&&p.composedPath();e.updateClickedSlide(c&&c[0]||p.target),e.emit("tap click",p),m<300&&g-i.lastClickTime<300&&e.emit("doubleTap doubleClick",p)}if(i.lastClickTime=oe(),Ae(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||n.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let y;if(r.followFinger?y=o?e.translate:-e.translate:y=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:y});return}let u=0,x=e.slidesSizesGrid[0];for(let c=0;c=l[c]&&y=l[c]&&(u=c,x=l[l.length-1]-l[l.length-2])}let f=null,S=null;r.rewind&&(e.isBeginning?S=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(f=0));const w=(y-l[u])/x,d=ur.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(w>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?f:u+d):e.slideTo(u)),e.swipeDirection==="prev"&&(w>1-r.longSwipesRatio?e.slideTo(u+d):S!==null&&w<0&&Math.abs(w)>r.longSwipesRatio?e.slideTo(S):e.slideTo(u))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(p.target===e.navigation.nextEl||p.target===e.navigation.prevEl)?p.target===e.navigation.nextEl?e.slideTo(u+d):e.slideTo(u):(e.swipeDirection==="next"&&e.slideTo(f!==null?f:u+d),e.swipeDirection==="prev"&&e.slideTo(S!==null?S:u))}}function Be(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const l=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!l?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=s,t.params.watchOverflow&&n!==t.snapGrid&&t.checkOverflow()}function fi(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function mi(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r;const n=t.maxTranslate()-t.minTranslate();n===0?r=0:r=(t.translate-t.minTranslate())/n,r!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function gi(t){const e=this;ne(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let He=!1;function hi(){}const Ue=(t,e)=>{const i=Y(),{params:s,el:r,wrapperEl:n,device:o}=t,l=!!s.nested,a=e==="on"?"addEventListener":"removeEventListener",p=e;r[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:l}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),i[a]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[a]("click",t.onClick,!0),s.cssMode&&n[a]("scroll",t.onScroll),s.updateOnWindowResize?t[p](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Be,!0):t[p]("observerUpdate",Be,!0),r[a]("load",t.onLoad,{capture:!0})};function vi(){const t=this,e=Y(),{params:i}=t;t.onTouchStart=ci.bind(t),t.onTouchMove=pi.bind(t),t.onTouchEnd=ui.bind(t),i.cssMode&&(t.onScroll=mi.bind(t)),t.onClick=fi.bind(t),t.onLoad=gi.bind(t),He||(e.addEventListener("touchstart",hi),He=!0),Ue(t,"on")}function wi(){Ue(this,"off")}var yi={attachEvents:vi,detachEvents:wi};const Ne=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function Si(){const t=this,{realIndex:e,initialized:i,params:s,el:r}=t,n=s.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const o=t.getBreakpoint(n,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const a=(o in n?n[o]:void 0)||t.originalParams,p=Ne(t,s),g=Ne(t,a),m=s.enabled;p&&!g?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!p&&g&&(r.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(f=>{if(typeof a[f]>"u")return;const S=s[f]&&s[f].enabled,w=a[f]&&a[f].enabled;S&&!w&&t[f].disable(),!S&&w&&t[f].enable()});const y=a.direction&&a.direction!==s.direction,u=s.loop&&(a.slidesPerView!==s.slidesPerView||y);y&&i&&t.changeDirection(),V(t.params,a);const x=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!x?t.disable():!m&&x&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",a),u&&i&&(t.loopDestroy(),t.loopCreate(e),t.updateSlides()),t.emit("breakpoint",a)}function Ti(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const r=q(),n=e==="window"?r.innerHeight:i.clientHeight,o=Object.keys(t).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const a=parseFloat(l.substr(1));return{value:n*a,point:l}}return{value:l,point:l}});o.sort((l,a)=>parseInt(l.value,10)-parseInt(a.value,10));for(let l=0;l{typeof s=="object"?Object.keys(s).forEach(r=>{s[r]&&i.push(e+r)}):typeof s=="string"&&i.push(e+s)}),i}function Ci(){const t=this,{classNames:e,params:i,rtl:s,el:r,device:n}=t,o=bi(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),r.classList.add(...e),t.emitContainerClasses()}function Ei(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var Li={addClasses:Ci,removeClasses:Ei};function Mi(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const r=t.slides.length-1,n=t.slidesGrid[r]+t.slidesSizesGrid[r]+s*2;t.isLocked=t.size>n}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Pi={checkOverflow:Mi},Fe={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ii(t,e){return function(s){s===void 0&&(s={});const r=Object.keys(s)[0],n=s[r];if(typeof n!="object"||n===null){V(e,s);return}if(["navigation","pagination","scrollbar"].indexOf(r)>=0&&t[r]===!0&&(t[r]={auto:!0}),!(r in t&&"enabled"in n)){V(e,s);return}t[r]===!0&&(t[r]={enabled:!0}),typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),V(e,s)}}const he={eventsEmitter:Lt,update:Bt,translate:Rt,transition:Yt,slide:ti,loop:ri,grabCursor:oi,events:yi,breakpoints:xi,checkOverflow:Pi,classes:Li},ve={};class R{constructor(){let e,i;for(var s=arguments.length,r=new Array(s),n=0;n1){const g=[];return o.querySelectorAll(i.el).forEach(m=>{const y=V({},i,{el:m});g.push(new R(y))}),g}const l=this;l.__swiper__=!0,l.support=Xe(),l.device=Tt({userAgent:i.userAgent}),l.browser=bt(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],i.modules&&Array.isArray(i.modules)&&l.modules.push(...i.modules);const a={};l.modules.forEach(g=>{g({params:i,swiper:l,extendParams:Ii(i,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const p=V({},Fe,a);return l.params=V({},p,ve,i),l.originalParams=V({},l.params),l.passedParams=V({},i),l.params&&l.params.on&&Object.keys(l.params.on).forEach(g=>{l.on(g,l.params.on[g])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(e){const{slidesEl:i,params:s}=this,r=W(i,`.${s.slideClass}, swiper-slide`),n=de(r[0]);return de(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=W(i,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const r=s.minTranslate(),o=(s.maxTranslate()-r)*e+r;s.translateTo(o,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const r=e.getSlideClasses(s);i.push({slideEl:s,classNames:r}),e.emit("_slideClass",s,r)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:r,slides:n,slidesGrid:o,slidesSizesGrid:l,size:a,activeIndex:p}=s;let g=1;if(r.centeredSlides){let m=n[p]?n[p].swiperSlideSize:0,y;for(let u=p+1;ua&&(y=!0));for(let u=p-1;u>=0;u-=1)n[u]&&!y&&(m+=n[u].swiperSlideSize,g+=1,m>a&&(y=!0))}else if(e==="current")for(let m=p+1;m=0;m-=1)o[p]-o[m]{o.complete&&ne(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const o=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(o.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||r()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,r=s.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${r}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(n=>{e==="vertical"?n.style.width="":n.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(i.isElement=!0);const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):W(s,r())[0])();return!o&&i.params.createElements&&(o=We("div",i.params.wrapperClass),s.append(o),W(s,`.${i.params.slideClass}`).forEach(l=>{o.append(l)})),Object.assign(i,{el:s,wrapperEl:o,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:o,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||K(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||K(s,"direction")==="rtl"),wrongRTL:K(o,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const r=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(n=>{n.complete?ne(i,n):n.addEventListener("load",o=>{ne(i,o.target)})}),ze(i),i.initialized=!0,ze(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:r,el:n,wrapperEl:o,slides:l}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),r.loop&&s.loopDestroy(),i&&(s.removeClasses(),n.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(a=>{a.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(a=>{s.off(a)}),e!==!1&&(s.el.swiper=null,ft(s)),s.destroyed=!0),null}static extendDefaults(e){V(ve,e)}static get extendedDefaults(){return ve}static get defaults(){return Fe}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);const i=R.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>R.installModule(i)),R):(R.installModule(e),R)}}Object.keys(he).forEach(t=>{Object.keys(he[t]).forEach(e=>{R.prototype[e]=he[t][e]})});R.use([Ct,Et]);function Ke(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&i.auto===!0){let n=W(t.el,`.${s[r]}`)[0];n||(n=We("div",s[r]),n.className=s[r],t.el.append(n)),i[r]=n,e[r]=n}}),i}function Ai(t){let{swiper:e,extendParams:i,on:s,emit:r}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const n=f=>(Array.isArray(f)?f:[f]).filter(S=>!!S);function o(f){let S;return f&&typeof f=="string"&&e.isElement&&(S=e.el.querySelector(f),S)?S:(f&&(typeof f=="string"&&(S=[...document.querySelectorAll(f)]),e.params.uniqueNavElements&&typeof f=="string"&&S.length>1&&e.el.querySelectorAll(f).length===1&&(S=e.el.querySelector(f))),f&&!S?f:S)}function l(f,S){const w=e.params.navigation;f=n(f),f.forEach(d=>{d&&(d.classList[S?"add":"remove"](...w.disabledClass.split(" ")),d.tagName==="BUTTON"&&(d.disabled=S),e.params.watchOverflow&&e.enabled&&d.classList[e.isLocked?"add":"remove"](w.lockClass))})}function a(){const{nextEl:f,prevEl:S}=e.navigation;if(e.params.loop){l(S,!1),l(f,!1);return}l(S,e.isBeginning&&!e.params.rewind),l(f,e.isEnd&&!e.params.rewind)}function p(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function g(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function m(){const f=e.params.navigation;if(e.params.navigation=Ke(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let S=o(f.nextEl),w=o(f.prevEl);Object.assign(e.navigation,{nextEl:S,prevEl:w}),S=n(S),w=n(w);const d=(c,h)=>{c&&c.addEventListener("click",h==="next"?g:p),!e.enabled&&c&&c.classList.add(...f.lockClass.split(" "))};S.forEach(c=>d(c,"next")),w.forEach(c=>d(c,"prev"))}function y(){let{nextEl:f,prevEl:S}=e.navigation;f=n(f),S=n(S);const w=(d,c)=>{d.removeEventListener("click",c==="next"?g:p),d.classList.remove(...e.params.navigation.disabledClass.split(" "))};f.forEach(d=>w(d,"next")),S.forEach(d=>w(d,"prev"))}s("init",()=>{e.params.navigation.enabled===!1?x():(m(),a())}),s("toEdge fromEdge lock unlock",()=>{a()}),s("destroy",()=>{y()}),s("enable disable",()=>{let{nextEl:f,prevEl:S}=e.navigation;f=n(f),S=n(S),[...f,...S].filter(w=>!!w).forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),s("click",(f,S)=>{let{nextEl:w,prevEl:d}=e.navigation;w=n(w),d=n(d);const c=S.target;if(e.params.navigation.hideOnClick&&!d.includes(c)&&!w.includes(c)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===c||e.pagination.el.contains(c)))return;let h;w.length?h=w[0].classList.contains(e.params.navigation.hiddenClass):d.length&&(h=d[0].classList.contains(e.params.navigation.hiddenClass)),r(h===!0?"navigationShow":"navigationHide"),[...w,...d].filter(T=>!!T).forEach(T=>T.classList.toggle(e.params.navigation.hiddenClass))}});const u=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),m(),a()},x=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),y()};Object.assign(e.navigation,{enable:u,disable:x,update:a,init:m,destroy:y})}function te(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Oi(t){let{swiper:e,extendParams:i,on:s,emit:r}=t;const n="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:d=>d,formatFractionTotal:d=>d,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let o,l=0;const a=d=>(Array.isArray(d)?d:[d]).filter(c=>!!c);function p(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function g(d,c){const{bulletActiveClass:h}=e.params.pagination;d&&(d=d[`${c==="prev"?"previous":"next"}ElementSibling`],d&&(d.classList.add(`${h}-${c}`),d=d[`${c==="prev"?"previous":"next"}ElementSibling`],d&&d.classList.add(`${h}-${c}-${c}`)))}function m(d){const c=d.target.closest(te(e.params.pagination.bulletClass));if(!c)return;d.preventDefault();const h=de(c)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;const T=e.realIndex,P=e.getSlideIndexByData(h),M=e.getSlideIndexByData(e.realIndex);if(P>e.slides.length-e.loopedSlides){const $=e.activeIndex;e.loopFix({direction:P>M?"next":"prev",activeSlideIndex:P,slideTo:!1});const C=e.activeIndex;$===C&&e.slideToLoop(T,0,!1,!0)}e.slideToLoop(h)}else e.slideTo(h)}function y(){const d=e.rtl,c=e.params.pagination;if(p())return;let h=e.pagination.el;h=a(h);let T,P;const M=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,$=e.params.loop?Math.ceil(M/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(P=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,P=e.previousSnapIndex):(P=e.previousIndex||0,T=e.activeIndex||0),c.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const C=e.pagination.bullets;let N,b,E;if(c.dynamicBullets&&(o=Oe(C[0],e.isHorizontal()?"width":"height",!0),h.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${o*(c.dynamicMainBullets+4)}px`}),c.dynamicMainBullets>1&&P!==void 0&&(l+=T-(P||0),l>c.dynamicMainBullets-1?l=c.dynamicMainBullets-1:l<0&&(l=0)),N=Math.max(T-l,0),b=N+(Math.min(C.length,c.dynamicMainBullets)-1),E=(b+N)/2),C.forEach(L=>{const A=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(D=>`${c.bulletActiveClass}${D}`)].map(D=>typeof D=="string"&&D.includes(" ")?D.split(" "):D).flat();L.classList.remove(...A)}),h.length>1)C.forEach(L=>{const A=de(L);A===T?L.classList.add(...c.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),c.dynamicBullets&&(A>=N&&A<=b&&L.classList.add(...`${c.bulletActiveClass}-main`.split(" ")),A===N&&g(L,"prev"),A===b&&g(L,"next"))});else{const L=C[T];if(L&&L.classList.add(...c.bulletActiveClass.split(" ")),e.isElement&&C.forEach((A,D)=>{A.setAttribute("part",D===T?"bullet-active":"bullet")}),c.dynamicBullets){const A=C[N],D=C[b];for(let _=N;_<=b;_+=1)C[_]&&C[_].classList.add(...`${c.bulletActiveClass}-main`.split(" "));g(A,"prev"),g(D,"next")}}if(c.dynamicBullets){const L=Math.min(C.length,c.dynamicMainBullets+4),A=(o*L-o)/2-E*o,D=d?"right":"left";C.forEach(_=>{_.style[e.isHorizontal()?D:"top"]=`${A}px`})}}h.forEach((C,N)=>{if(c.type==="fraction"&&(C.querySelectorAll(te(c.currentClass)).forEach(b=>{b.textContent=c.formatFractionCurrent(T+1)}),C.querySelectorAll(te(c.totalClass)).forEach(b=>{b.textContent=c.formatFractionTotal($)})),c.type==="progressbar"){let b;c.progressbarOpposite?b=e.isHorizontal()?"vertical":"horizontal":b=e.isHorizontal()?"horizontal":"vertical";const E=(T+1)/$;let L=1,A=1;b==="horizontal"?L=E:A=E,C.querySelectorAll(te(c.progressbarFillClass)).forEach(D=>{D.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${A})`,D.style.transitionDuration=`${e.params.speed}ms`})}c.type==="custom"&&c.renderCustom?(C.innerHTML=c.renderCustom(e,T+1,$),N===0&&r("paginationRender",C)):(N===0&&r("paginationRender",C),r("paginationUpdate",C)),e.params.watchOverflow&&e.enabled&&C.classList[e.isLocked?"add":"remove"](c.lockClass)})}function u(){const d=e.params.pagination;if(p())return;const c=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let h=e.pagination.el;h=a(h);let T="";if(d.type==="bullets"){let P=e.params.loop?Math.ceil(c/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&P>c&&(P=c);for(let M=0;M`}d.type==="fraction"&&(d.renderFraction?T=d.renderFraction.call(e,d.currentClass,d.totalClass):T=` / `),d.type==="progressbar"&&(d.renderProgressbar?T=d.renderProgressbar.call(e,d.progressbarFillClass):T=``),e.pagination.bullets=[],h.forEach(P=>{d.type!=="custom"&&(P.innerHTML=T||""),d.type==="bullets"&&e.pagination.bullets.push(...P.querySelectorAll(te(d.bulletClass)))}),d.type!=="custom"&&r("paginationRender",h[0])}function x(){e.params.pagination=Ke(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const d=e.params.pagination;if(!d.el)return;let c;typeof d.el=="string"&&e.isElement&&(c=e.el.querySelector(d.el)),!c&&typeof d.el=="string"&&(c=[...document.querySelectorAll(d.el)]),c||(c=d.el),!(!c||c.length===0)&&(e.params.uniqueNavElements&&typeof d.el=="string"&&Array.isArray(c)&&c.length>1&&(c=[...e.el.querySelectorAll(d.el)],c.length>1&&(c=c.filter(h=>Ye(h,".swiper")[0]===e.el)[0])),Array.isArray(c)&&c.length===1&&(c=c[0]),Object.assign(e.pagination,{el:c}),c=a(c),c.forEach(h=>{d.type==="bullets"&&d.clickable&&h.classList.add(...(d.clickableClass||"").split(" ")),h.classList.add(d.modifierClass+d.type),h.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(h.classList.add(`${d.modifierClass}${d.type}-dynamic`),l=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&h.classList.add(d.progressbarOppositeClass),d.clickable&&h.addEventListener("click",m),e.enabled||h.classList.add(d.lockClass)}))}function f(){const d=e.params.pagination;if(p())return;let c=e.pagination.el;c&&(c=a(c),c.forEach(h=>{h.classList.remove(d.hiddenClass),h.classList.remove(d.modifierClass+d.type),h.classList.remove(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.clickable&&(h.classList.remove(...(d.clickableClass||"").split(" ")),h.removeEventListener("click",m))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...d.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const d=e.params.pagination;let{el:c}=e.pagination;c=a(c),c.forEach(h=>{h.classList.remove(d.horizontalClass,d.verticalClass),h.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?w():(x(),u(),y())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&y()}),s("snapIndexChange",()=>{y()}),s("snapGridLengthChange",()=>{u(),y()}),s("destroy",()=>{f()}),s("enable disable",()=>{let{el:d}=e.pagination;d&&(d=a(d),d.forEach(c=>c.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{y()}),s("click",(d,c)=>{const h=c.target,T=a(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const P=T[0].classList.contains(e.params.pagination.hiddenClass);r(P===!0?"paginationShow":"paginationHide"),T.forEach(M=>M.classList.toggle(e.params.pagination.hiddenClass))}});const S=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=a(d),d.forEach(c=>c.classList.remove(e.params.pagination.paginationDisabledClass))),x(),u(),y()},w=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=a(d),d.forEach(c=>c.classList.add(e.params.pagination.paginationDisabledClass))),f()};Object.assign(e.pagination,{enable:S,disable:w,render:u,update:y,init:x,destroy:f})}function zi(t){let{swiper:e,extendParams:i,on:s,emit:r,params:n}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,l,a=n&&n.autoplay?n.autoplay.delay:3e3,p=n&&n.autoplay?n.autoplay.delay:3e3,g,m=new Date().getTime,y,u,x,f,S,w;function d(z){!e||e.destroyed||!e.wrapperEl||z.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",d),C())}const c=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?y=!0:y&&(p=g,y=!1);const z=e.autoplay.paused?g:m+p-new Date().getTime();e.autoplay.timeLeft=z,r("autoplayTimeLeft",z,z/a),l=requestAnimationFrame(()=>{c()})},h=()=>{let z;return e.virtual&&e.params.virtual.enabled?z=e.slides.filter(F=>F.classList.contains("swiper-slide-active"))[0]:z=e.slides[e.activeIndex],z?parseInt(z.getAttribute("data-swiper-autoplay"),10):void 0},T=z=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),c();let j=typeof z>"u"?e.params.autoplay.delay:z;a=e.params.autoplay.delay,p=e.params.autoplay.delay;const F=h();!Number.isNaN(F)&&F>0&&typeof z>"u"&&(j=F,a=F,p=F),g=j;const U=e.params.speed,ee=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(U,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,U,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(U,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,U,!0,!0),r("autoplay")),e.params.cssMode&&(m=new Date().getTime(),requestAnimationFrame(()=>{T()})))};return j>0?(clearTimeout(o),o=setTimeout(()=>{ee()},j)):requestAnimationFrame(()=>{ee()}),j},P=()=>{e.autoplay.running=!0,T(),r("autoplayStart")},M=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(l),r("autoplayStop")},$=(z,j)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),z||(w=!0);const F=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",d):C()};if(e.autoplay.paused=!0,j){S&&(g=e.params.autoplay.delay),S=!1,F();return}g=(g||e.params.autoplay.delay)-(new Date().getTime()-m),!(e.isEnd&&g<0&&!e.params.loop)&&(g<0&&(g=0),F())},C=()=>{e.isEnd&&g<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(m=new Date().getTime(),w?(w=!1,T(g)):T(),e.autoplay.paused=!1,r("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;const z=Y();z.visibilityState==="hidden"&&(w=!0,$(!0)),z.visibilityState==="visible"&&C()},b=z=>{z.pointerType==="mouse"&&(w=!0,!(e.animating||e.autoplay.paused)&&$(!0))},E=z=>{z.pointerType==="mouse"&&e.autoplay.paused&&C()},L=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",b),e.el.addEventListener("pointerleave",E))},A=()=>{e.el.removeEventListener("pointerenter",b),e.el.removeEventListener("pointerleave",E)},D=()=>{Y().addEventListener("visibilitychange",N)},_=()=>{Y().removeEventListener("visibilitychange",N)};s("init",()=>{e.params.autoplay.enabled&&(L(),D(),m=new Date().getTime(),P())}),s("destroy",()=>{A(),_(),e.autoplay.running&&M()}),s("beforeTransitionStart",(z,j,F)=>{e.destroyed||!e.autoplay.running||(F||!e.params.autoplay.disableOnInteraction?$(!0,!0):M())}),s("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){M();return}u=!0,x=!1,w=!1,f=setTimeout(()=>{w=!0,x=!0,$(!0)},200)}}),s("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!u)){if(clearTimeout(f),clearTimeout(o),e.params.autoplay.disableOnInteraction){x=!1,u=!1;return}x&&e.params.cssMode&&C(),x=!1,u=!1}}),s("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:P,stop:M,pause:$,resume:C})}const we=document.querySelector(".swiper-wrapper");function $i(){new R(".swiper",{modules:[Ai,Oi,zi],allowSlideNext:!0,pagination:{el:".pagination",clickable:!0},autoplay:{delay:1500},speed:800,loop:!0})}J("events").then(t=>{ki(t),$i()}).catch(t=>{Q.fire({icon:"error",title:"Something went wrong. Reload the page and try again"})});function ki(t){const e=t.map(i=>` +
    +
    +
    + cook name +
    +
    + dish previe +

    ${i.topic.name}

    +

    ${i.topic.area}

    +
    +
    + dish +
    +
    +
    + `).join("");we==null||we.insertAdjacentHTML("beforeend",e)}const v={page:1,areaQuery:"",category:"",ingredientQuery:"",timeQuery:"",searchQuery:""};let H,re;Ni();let ae;ce();async function G(){try{const t=await J(`recipes?page=${v.page}&limit=${re}`),e=t.results;ae=e.length,H=t.totalPages;let i;i=e.map(({rating:r,title:n,description:o,preview:l,_id:a})=>{const p=JSON.parse(localStorage.getItem("favorites"))||[];return rt(p,a)?` +
  • + ${n} +
    +
    + +
    +
    +

    ${n}

    +

    ${o}

    +
    +

    ${r} + +

    + +
    +
    +
    + `:` +
  • + ${n} +
    +
    + +
    +
    +

    ${n}

    +

    ${o}

    +
    +

    ${r} + +

    + +
    +
    +
    + `}).join("");const s=document.querySelector(".recipe-list");s.addEventListener("click",at),s.insertAdjacentHTML("beforeend",i)}catch{const e=document.querySelector(".resipe-list-empty"),i=document.querySelector(".recipe-pagination");e==null||e.classList.remove("is-hidden"),i==null||i.classList.add("is-hidden"),Q.fire({icon:"error",title:"Something went wrong, we found 0 recipes. Try reloading the page!"})}}G();const ye=document.querySelector(".recipe-pagination"),B=document.querySelector(".recipe-list"),Di=document.querySelector(".first-page"),Gi=document.querySelector(".previous-page"),O=document.querySelector(".current-page-1"),I=document.querySelector(".page-2"),k=document.querySelector(".page-3"),X=document.querySelector(".page-5"),Bi=document.querySelector(".next-page"),Hi=document.querySelector(".last-page");function Ni(){return window.innerWidth<768?re=6:window.innerWidth<1280?re=8:re=9}function Fi(t){H<=1||H===2?I.classList.remove("is-hidden"):H===3?(I.classList.remove("is-hidden"),k.classList.remove("is-hidden")):(I.classList.remove("is-hidden"),k.classList.remove("is-hidden"),X.classList.remove("is-hidden"))}Fi();function ce(t){if(window.innerWidth<768&&ae<6)ye.classList.add("is-hidden");else if(window.innerWidth<1280&&ae<8)ye.classList.add("is-hidden");else if(ae<9)ye.classList.add("is-hidden");else return}ce();O.addEventListener("click",t=>{if(v.page===1)return Q.fire({icon:"info",title:"You already on this page!"});v.page===2?(I.classList.remove("current-pagi-page"),O.classList.add("current-pagi-page"),B.innerHTML="",v.page=Number(t.target.innerText),G()):v.page===H||Number(k.textContent)===H?(B.innerHTML="",v.page=Number(t.target.innerText),G(),X.classList.remove("is-hidden"),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1):(B.innerHTML="",v.page=Number(t.target.innerText),G(),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1)});I.addEventListener("click",t=>{if(v.page===1)B.innerHTML="",I.classList.add("current-pagi-page"),O.classList.remove("current-pagi-page"),v.page=Number(t.target.innerText),G();else if(page!==Number(t.target.innerText))B.innerHTML="",v.page=Number(t.target.innerText),G();else if(I.innerText===v.page-1)v.page-=1,G(),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1,k.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page");else return Q.fire({icon:"info",title:"You already on this page!"})});k.addEventListener("click",t=>{if(v.page<=2)B.innerHTML="",v.page=Number(t.target.innerText),O.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page"),G(),t.target.innerText=Number(t.target.innerText)+1,I.textContent=v.page,O.textContent=v.page-1;else{if(Number(t.target.innerText)===H)return Q.fire({icon:"info",title:"That was the last page"});B.innerHTML="",v.page=Number(t.target.innerText),G(),t.target.innerText=Number(t.target.innerText)+1,I.textContent=v.page,O.textContent=Number(t.target.innerText)-2}});X.addEventListener("click",t=>{v.page+3===H?(v.page+=2,B.innerHTML="",G(),O.textContent=v.page-2,I.textContent=v.page-1,k.textContent=v.page,X.classList.add("is-hidden"),O.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page")):v.page+2===H?(v.page+=1,B.innerHTML="",G(),O.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page"),O.textContent=page-2,I.textContent=page-1,k.textContent=page,X.classList.add("is-hidden")):(v.page+=2,B.innerHTML="",G(),O.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page"),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1)});Bi.addEventListener("click",t=>{v.page===1?(B.innerHTML="",v.page+=1,I.classList.add("current-pagi-page"),O.classList.remove("current-pagi-page"),G()):v.page+1===H?(O.textContent=v.page-2,I.textContent=v.page-1,k.textContent=v.page,X.classList.add("is-hidden")):(B.innerHTML="",v.page+=1,I.classList.add("current-pagi-page"),O.classList.remove("current-pagi-page"),G(),X.classList.remove("is-hidden"),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1)});Hi.addEventListener("click",t=>{v.page===H||v.page===H-1||v.page===H-2||(B.innerHTML="",v.page=H,G(),O.classList.remove("current-pagi-page"),k.classList.add("current-pagi-page"),X.classList.add("is-hidden"),O.textContent=v.page-2,I.textContent=v.page-1,k.textContent=v.page)});Di.addEventListener("click",t=>{v.page<=2||(v.page===H?(B.innerHTML="",v.page=1,G(),O.classList.add("current-pagi-page"),I.classList.remove("current-pagi-page"),k.classList.remove("current-pagi-page"),X.classList.remove("is-hidden"),O.textContent=v.page,I.textContent=v.page+1,k.textContent=v.page+2):(B.innerHTML="",v.page=1,O.classList.add("current-pagi-page"),I.classList.remove("current-pagi-page"),k.classList.remove("current-pagi-page"),X.classList.remove("is-hidden"),G(),O.textContent=v.page,I.textContent=v.page+1,k.textContent=v.page+2))});Gi.addEventListener("click",t=>{v.page!==1&&(v.page===2?(B.innerHTML="",v.page=1,G(),O.classList.add("current-pagi-page"),I.classList.remove("current-pagi-page"),O.textContent=v.page,I.textContent=v.page+1,k.textContent=v.page+2):Number(I.textContent)===H||Number(k.textContent)===H?(B.innerHTML="",v.page-=1,G(),O.textContent=v.page-2,I.textContent=v.page-1,k.textContent=v.page):(B.innerHTML="",v.page-=1,G(),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1))});const pe=()=>({filtersList:document.querySelector(".extra-filters-list"),areaFilter:document.querySelector("#area-filter"),ingredientsFilter:document.querySelector("#ingredients-filter"),timeFilter:document.querySelector("#time-filter"),searchInput:document.querySelector(".search-input"),recipeList:document.querySelector(".recipe-list"),resetBtn:document.querySelector(".reset-btn"),selectedTime:document.querySelector("#selected-time"),selectedArea:document.querySelector("#selected-area"),selectedIngredient:document.querySelector("#selected-ingredient"),loader:document.querySelector(".loader")}),{areaFilter:Ve,ingredientsFilter:qe,recipeList:Se,loader:rs}=pe(),Vi=t=>{if(Ve){const e=t.map(i=>`
  • ${i.name}
  • `).join("");Ve.insertAdjacentHTML("beforeend",e)}},qi=t=>{if(qe){const s=t.slice(0,100).map(r=>`
  • ${r.name}
  • `).join("");qe.insertAdjacentHTML("beforeend",s)}},Je=t=>{const e=t.map(({rating:i,title:s,description:r,preview:n,_id:o})=>(ce(),` +
  • + ${s} +
    +
    + +
    +
    +

    ${s}

    +

    ${r}

    +
    +

    ${i} + +

    + +
    +
    +
    + `)).join("");ce(),Se&&(Se.innerHTML="",Se.insertAdjacentHTML("beforeend",e))};J("areas").then(t=>{Vi(t)});J("ingredients").then(t=>{qi(t)});const{loader:Te}=pe(),Ri=()=>{const t=[];return v.category&&t.push(`category=${encodeURIComponent(v.category)}`),v.timeQuery&&t.push(`time=${encodeURIComponent(v.timeQuery)}`),v.areaQuery&&t.push(`area=${encodeURIComponent(v.areaQuery)}`),v.ingredientQuery&&t.push(`ingredient=${encodeURIComponent(v.ingredientQuery)}`),v.searchQuery&&t.push(`title=${encodeURIComponent(v.searchQuery)}`),t.join("&")},ke=async()=>{try{const t=Ri(),e=await lt.get(`https://tasty-treats-backend.p.goit.global/api/recipes?page=${v.page}&limit=9&${t}`);Je(e.data.results)}catch{await Q.fire({icon:"error",title:"Something went wrong. Reload the page and try again"})}Te==null||Te.classList.add("d-none")},_i=t=>{const e=t.target.closest(".extra-filters-item");if(!e)return;const i=e.querySelector(".extra-select"),s=e.querySelector(".extra-options-list");i.classList.toggle("opened"),s.classList.toggle("opened-list")},{searchInput:le,selectedTime:ji,selectedArea:Wi,selectedIngredient:Yi,recipeList:xe,filtersList:be,resetBtn:Ce,loader:Ee}=pe(),Xi=async()=>{le.value="",v.areaQuery="",v.timeQuery="",v.searchQuery="",v.ingredientQuery="",ji.textContent="Select",Wi.textContent="Select",Yi.textContent="Select";const t=await J(`recipes?page=${v.page}&limit=9`);Je(t.results);const e=xe==null?void 0:xe.querySelectorAll(".recipe-item");e==null||e.forEach(i=>i.classList.remove("d-none")),await Q.fire({icon:"question",title:"Filters have been reset"})},Qi=t=>{Ee==null||Ee.classList.remove("d-none"),v.searchQuery=t.target.value,ke()};be==null||be.addEventListener("click",_i);le==null||le.addEventListener("input",ot(Qi,300));Ce==null||Ce.addEventListener("click",Xi);const{selectedArea:Ui,selectedIngredient:Ki,selectedTime:Ji,areaFilter:Le,ingredientsFilter:Me,timeFilter:Pe,loader:Ie}=pe(),De=({e:t,filter:e,dataAttr:i,param:s})=>{Ie==null||Ie.classList.remove("d-none"),v[s]=t.target.dataset[i],Zi(e,t.target.textContent),ke()},Zi=(t,e)=>{t instanceof Element&&(t.textContent=e)};Le==null||Le.addEventListener("click",t=>De({e:t,filter:Ui,dataAttr:"area",param:"areaQuery"}));Me==null||Me.addEventListener("click",t=>De({e:t,filter:Ki,dataAttr:"ingredient",param:"ingredientQuery"}));Pe==null||Pe.addEventListener("click",t=>De({e:t,filter:Ji,dataAttr:"time",param:"timeQuery"}));const Ze=document.querySelector(".categories"),et=document.querySelector(".categories ul");document.addEventListener("DOMContentLoaded",tt);document.removeEventListener("load",tt);Ze.addEventListener("click",es);async function tt(){try{const t=await J("categories");ts(t)}catch{Q.fire({icon:"error",title:"Something went wrong. Reload the page and try again"})}}function es(t){const e=t.target;if(e.nodeName!=="BUTTON")return;Ze.querySelector(".active-category").classList.toggle("active-category"),e.classList.toggle("active-category");const s=e.classList.contains("all-categories-btn");v.category=s?"":e.textContent,v.page=1,ke()}function ts(t){ss();const e=t.map(is).join("");et.insertAdjacentHTML("beforeend",e)}function is({name:t}){return` +
  • + +
  • + `}function ss(){et.innerHTML=""} diff --git a/assets/main-a41b18b8.js b/assets/main-a41b18b8.js deleted file mode 100644 index 0152c01..0000000 --- a/assets/main-a41b18b8.js +++ /dev/null @@ -1,107 +0,0 @@ -import{g as J,T as Q,o as st,c as nt,s as Z,a as rt,b as at,d as lt}from"./aos-26cf9ec7.js";const qe=document.querySelector(".gallery-popular-recipes");function ot(t){const{preview:e,_id:i,description:s,title:r}=t;return` - - - -`}async function dt(){try{const e=(await J("recipes/popular")).map(i=>ot(i)).join("");qe.innerHTML=e,ct()}catch{Q.fire({icon:"error",title:"Something went wrong, try reloading the page"})}}async function ct(){qe.addEventListener("click",async t=>{const e=t.target.closest(".popular-recipes-list");if(e)try{const i=e.id;await st(i)}catch{Q.fire({icon:"error",title:"Something went wrong, try reloading the page"})}})}function De(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function ze(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(i=>{typeof t[i]>"u"?t[i]=e[i]:De(e[i])&&De(t[i])&&Object.keys(e[i]).length>0&&ze(t[i],e[i])})}const Re={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Y(){const t=typeof document<"u"?document:{};return ze(t,Re),t}const pt={document:Re,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function q(){const t=typeof window<"u"?window:{};return ze(t,pt),t}function ut(t){const e=t;Object.keys(e).forEach(i=>{try{e[i]=null}catch{}try{delete e[i]}catch{}})}function Ie(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function oe(){return Date.now()}function ft(t){const e=q();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}function mt(t,e){e===void 0&&(e="x");const i=q();let s,r,n;const o=ft(t);return i.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(l=>l.replace(",",".")).join(", ")),n=new i.WebKitCSSMatrix(r==="none"?"":r)):(n=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=n.toString().split(",")),e==="x"&&(i.WebKitCSSMatrix?r=n.m41:s.length===16?r=parseFloat(s[12]):r=parseFloat(s[4])),e==="y"&&(i.WebKitCSSMatrix?r=n.m42:s.length===16?r=parseFloat(s[13]):r=parseFloat(s[5])),r||0}function ie(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function gt(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function V(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;ie.indexOf(n)<0);for(let n=0,o=r.length;nn?"next":"prev",g=(y,u)=>p==="next"&&y>=u||p==="prev"&&y<=u,m=()=>{l=new Date().getTime(),o===null&&(o=l);const y=Math.max(Math.min((l-o)/a,1),0),u=.5-Math.cos(y*Math.PI)/2;let x=n+u*(i-n);if(g(x,i)&&(x=i),e.wrapperEl.scrollTo({[s]:x}),g(x,i)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:x})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(m)};m()}function W(t,e){return e===void 0&&(e=""),[...t.children].filter(i=>i.matches(e))}function je(t,e){e===void 0&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:[e]),i}function ht(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function vt(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}function K(t,e){return q().getComputedStyle(t,null).getPropertyValue(e)}function de(t){let e=t,i;if(e){for(i=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(i+=1);return i}}function We(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function Ae(t,e,i){const s=q();return i?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}let ue;function wt(){const t=q(),e=Y();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Ye(){return ue||(ue=wt()),ue}let fe;function yt(t){let{userAgent:e}=t===void 0?{}:t;const i=Ye(),s=q(),r=s.navigator.platform,n=e||s.navigator.userAgent,o={ios:!1,android:!1},l=s.screen.width,a=s.screen.height,p=n.match(/(Android);?[\s\/]+([\d.]+)?/);let g=n.match(/(iPad).*OS\s([\d_]+)/);const m=n.match(/(iPod)(.*OS\s([\d_]+))?/),y=!g&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=r==="Win32";let x=r==="MacIntel";const f=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!g&&x&&i.touch&&f.indexOf(`${l}x${a}`)>=0&&(g=n.match(/(Version)\/([\d.]+)/),g||(g=[0,1,"13_0_0"]),x=!1),p&&!u&&(o.os="android",o.android=!0),(g||y||m)&&(o.os="ios",o.ios=!0),o}function St(t){return t===void 0&&(t={}),fe||(fe=yt(t)),fe}let me;function Tt(){const t=q();let e=!1;function i(){const s=t.navigator.userAgent.toLowerCase();return s.indexOf("safari")>=0&&s.indexOf("chrome")<0&&s.indexOf("android")<0}if(i()){const s=String(t.navigator.userAgent);if(s.includes("Version/")){const[r,n]=s.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=r<16||r===16&&n<2}}return{isSafari:e||i(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function xt(){return me||(me=Tt()),me}function bt(t){let{swiper:e,on:i,emit:s}=t;const r=q();let n=null,o=null;const l=()=>{!e||e.destroyed||!e.initialized||(s("beforeResize"),s("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(n=new ResizeObserver(m=>{o=r.requestAnimationFrame(()=>{const{width:y,height:u}=e;let x=y,f=u;m.forEach(S=>{let{contentBoxSize:w,contentRect:d,target:c}=S;c&&c!==e.el||(x=d?d.width:(w[0]||w).inlineSize,f=d?d.height:(w[0]||w).blockSize)}),(x!==y||f!==u)&&l()})}),n.observe(e.el))},p=()=>{o&&r.cancelAnimationFrame(o),n&&n.unobserve&&e.el&&(n.unobserve(e.el),n=null)},g=()=>{!e||e.destroyed||!e.initialized||s("orientationchange")};i("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){a();return}r.addEventListener("resize",l),r.addEventListener("orientationchange",g)}),i("destroy",()=>{p(),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",g)})}function Et(t){let{swiper:e,extendParams:i,on:s,emit:r}=t;const n=[],o=q(),l=function(g,m){m===void 0&&(m={});const y=o.MutationObserver||o.WebkitMutationObserver,u=new y(x=>{if(e.__preventObserver__)return;if(x.length===1){r("observerUpdate",x[0]);return}const f=function(){r("observerUpdate",x[0])};o.requestAnimationFrame?o.requestAnimationFrame(f):o.setTimeout(f,0)});u.observe(g,{attributes:typeof m.attributes>"u"?!0:m.attributes,childList:typeof m.childList>"u"?!0:m.childList,characterData:typeof m.characterData>"u"?!0:m.characterData}),n.push(u)},a=()=>{if(e.params.observer){if(e.params.observeParents){const g=We(e.hostEl);for(let m=0;m{n.forEach(g=>{g.disconnect()}),n.splice(0,n.length)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",a),s("destroy",p)}var Ct={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const r=i?"unshift":"push";return t.split(" ").forEach(n=>{s.eventsListeners[n]||(s.eventsListeners[n]=[]),s.eventsListeners[n][r](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;function r(){s.off(t,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,o=new Array(n),l=0;l=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed||!i.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?i.eventsListeners[s]=[]:i.eventsListeners[s]&&i.eventsListeners[s].forEach((r,n)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&i.eventsListeners[s].splice(n,1)})}),i},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,i,s;for(var r=arguments.length,n=new Array(r),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(p=>{p.apply(s,[a,...i])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(p=>{p.apply(s,i)})}),t}};function Lt(){const t=this;let e,i;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?i=t.params.height:i=s.clientHeight,!(e===0&&t.isHorizontal()||i===0&&t.isVertical())&&(e=e-parseInt(K(s,"padding-left")||0,10)-parseInt(K(s,"padding-right")||0,10),i=i-parseInt(K(s,"padding-top")||0,10)-parseInt(K(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))}function Mt(){const t=this;function e(b){return t.isHorizontal()?b:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[b]}function i(b,C){return parseFloat(b.getPropertyValue(e(C))||0)}const s=t.params,{wrapperEl:r,slidesEl:n,size:o,rtlTranslate:l,wrongRTL:a}=t,p=t.virtual&&s.virtual.enabled,g=p?t.virtual.slides.length:t.slides.length,m=W(n,`.${t.params.slideClass}, swiper-slide`),y=p?t.virtual.slides.length:m.length;let u=[];const x=[],f=[];let S=s.slidesOffsetBefore;typeof S=="function"&&(S=s.slidesOffsetBefore.call(t));let w=s.slidesOffsetAfter;typeof w=="function"&&(w=s.slidesOffsetAfter.call(t));const d=t.snapGrid.length,c=t.slidesGrid.length;let h=s.spaceBetween,T=-S,P=0,M=0;if(typeof o>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*o:typeof h=="string"&&(h=parseFloat(h)),t.virtualSize=-h,m.forEach(b=>{l?b.style.marginLeft="":b.style.marginRight="",b.style.marginBottom="",b.style.marginTop=""}),s.centeredSlides&&s.cssMode&&(se(r,"--swiper-centered-offset-before",""),se(r,"--swiper-centered-offset-after",""));const $=s.grid&&s.grid.rows>1&&t.grid;$&&t.grid.initSlides(y);let E;const N=s.slidesPerView==="auto"&&s.breakpoints&&Object.keys(s.breakpoints).filter(b=>typeof s.breakpoints[b].slidesPerView<"u").length>0;for(let b=0;b1&&u.push(t.virtualSize-o)}if(p&&s.loop){const b=f[0]+h;if(s.slidesPerGroup>1){const C=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/s.slidesPerGroup),L=b*s.slidesPerGroup;for(let A=0;A!s.cssMode||s.loop?!0:L!==m.length-1).forEach(C=>{C.style[b]=`${h}px`})}if(s.centeredSlides&&s.centeredSlidesBounds){let b=0;f.forEach(L=>{b+=L+(h||0)}),b-=h;const C=b-o;u=u.map(L=>L<=0?-S:L>C?C+w:L)}if(s.centerInsufficientSlides){let b=0;if(f.forEach(C=>{b+=C+(h||0)}),b-=h,b{u[A]=L-C}),x.forEach((L,A)=>{x[A]=L+C})}}if(Object.assign(t,{slides:m,snapGrid:u,slidesGrid:x,slidesSizesGrid:f}),s.centeredSlides&&s.cssMode&&!s.centeredSlidesBounds){se(r,"--swiper-centered-offset-before",`${-u[0]}px`),se(r,"--swiper-centered-offset-after",`${t.size/2-f[f.length-1]/2}px`);const b=-t.snapGrid[0],C=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(L=>L+b),t.slidesGrid=t.slidesGrid.map(L=>L+C)}if(y!==g&&t.emit("slidesLengthChange"),u.length!==d&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),x.length!==c&&t.emit("slidesGridLengthChange"),s.watchSlidesProgress&&t.updateSlidesOffset(),!p&&!s.cssMode&&(s.effect==="slide"||s.effect==="fade")){const b=`${s.containerModifierClass}backface-hidden`,C=t.el.classList.contains(b);y<=s.maxBackfaceHiddenSlides?C||t.el.classList.add(b):C&&t.el.classList.remove(b)}}function Pt(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let r=0,n;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=l=>s?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{i.push(l)});else for(n=0;ne.slides.length&&!s)break;i.push(o(l))}else i.push(o(e.activeIndex));for(n=0;nr?l:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function It(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s"u"&&e.updateSlidesOffset();let o=-t;r&&(o=t),s.forEach(a=>{a.classList.remove(i.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=i.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let a=0;a=0&&u1&&x<=e.size||u<=0&&x>=e.size)&&(e.visibleSlides.push(p),e.visibleSlidesIndexes.push(a),s[a].classList.add(i.slideVisibleClass)),p.progress=r?-m:m,p.originalProgress=r?-y:y}}function Ot(t){const e=this;if(typeof t>"u"){const g=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*g||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:n,isEnd:o,progressLoop:l}=e;const a=n,p=o;if(s===0)r=0,n=!0,o=!0;else{r=(t-e.minTranslate())/s;const g=Math.abs(t-e.minTranslate())<1,m=Math.abs(t-e.maxTranslate())<1;n=g||r<=0,o=m||r>=1,g&&(r=0),m&&(r=1)}if(i.loop){const g=e.getSlideIndexByData(0),m=e.getSlideIndexByData(e.slides.length-1),y=e.slidesGrid[g],u=e.slidesGrid[m],x=e.slidesGrid[e.slidesGrid.length-1],f=Math.abs(t);f>=y?l=(f-y)/x:l=(f+x-u)/x,l>1&&(l-=1)}Object.assign(e,{progress:r,progressLoop:l,isBeginning:n,isEnd:o}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),n&&!a&&e.emit("reachBeginning toEdge"),o&&!p&&e.emit("reachEnd toEdge"),(a&&!n||p&&!o)&&e.emit("fromEdge"),e.emit("progress",r)}function zt(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:r}=t,n=t.virtual&&i.virtual.enabled,o=a=>W(s,`.${i.slideClass}${a}, swiper-slide${a}`)[0];e.forEach(a=>{a.classList.remove(i.slideActiveClass,i.slideNextClass,i.slidePrevClass)});let l;if(n)if(i.loop){let a=r-t.virtual.slidesBefore;a<0&&(a=t.virtual.slides.length+a),a>=t.virtual.slides.length&&(a-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${a}"]`)}else l=o(`[data-swiper-slide-index="${r}"]`);else l=e[r];if(l){l.classList.add(i.slideActiveClass);let a=vt(l,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!a&&(a=e[0]),a&&a.classList.add(i.slideNextClass);let p=ht(l,`.${i.slideClass}, swiper-slide`)[0];i.loop&&!p===0&&(p=e[e.length-1]),p&&p.classList.add(i.slidePrevClass)}t.emitSlidesClasses()}const ne=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(i());if(s){let r=s.querySelector(`.${t.params.lazyPreloaderClass}`);!r&&t.isElement&&(r=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`)),r&&r.remove()}},ge=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},Oe=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),r=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=r,l=[o-e];l.push(...Array.from({length:e}).map((a,p)=>o+s+p)),t.slides.forEach((a,p)=>{l.includes(a.column)&&ge(t,p)});return}const n=r+s-1;if(t.params.rewind||t.params.loop)for(let o=r-e;o<=n+e;o+=1){const l=(o%i+i)%i;(ln)&&ge(t,l)}else for(let o=Math.max(r-e,0);o<=Math.min(n+e,i-1);o+=1)o!==r&&(o>n||o=e[n]&&s=e[n]&&s=e[n]&&(r=n);return i.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function kt(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:r,activeIndex:n,realIndex:o,snapIndex:l}=e;let a=t,p;const g=y=>{let u=y-e.virtual.slidesBefore;return u<0&&(u=e.virtual.slides.length+u),u>=e.virtual.slides.length&&(u-=e.virtual.slides.length),u};if(typeof a>"u"&&(a=$t(e)),s.indexOf(i)>=0)p=s.indexOf(i);else{const y=Math.min(r.slidesPerGroupSkip,a);p=y+Math.floor((a-y)/r.slidesPerGroup)}if(p>=s.length&&(p=s.length-1),a===n){p!==l&&(e.snapIndex=p,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=g(a));return}let m;e.virtual&&r.virtual.enabled&&r.loop?m=g(a):e.slides[a]?m=parseInt(e.slides[a].getAttribute("data-swiper-slide-index")||a,10):m=a,Object.assign(e,{previousSnapIndex:l,snapIndex:p,previousRealIndex:o,realIndex:m,previousIndex:n,activeIndex:a}),e.initialized&&Oe(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==m&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function Dt(t){const e=this,i=e.params,s=t.closest(`.${i.slideClass}, swiper-slide`);let r=!1,n;if(s){for(let o=0;oa?g=a:s&&to?l="next":n=a.length&&(S=a.length-1);const w=-a[S];if(l.normalizeSlideIndex)for(let c=0;c=T&&h=T&&h=T&&(o=c)}if(n.initialized&&o!==m&&(!n.allowSlideNext&&(y?w>n.translate&&w>n.minTranslate():wn.translate&&w>n.maxTranslate()&&(m||0)!==o))return!1;o!==(g||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(w);let d;if(o>m?d="next":o0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{u[c?"scrollLeft":"scrollTop"]=h})):u[c?"scrollLeft":"scrollTop"]=h,T&&requestAnimationFrame(()=>{n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1})}else{if(!n.support.smoothScroll)return _e({swiper:n,targetPosition:h,side:c?"left":"top"}),!0;u.scrollTo({[c?"left":"top"]:h,behavior:"smooth"})}return!0}return n.setTransition(e),n.setTranslate(w),n.updateActiveIndex(o),n.updateSlidesClasses(),n.emit("beforeTransitionStart",e,s),n.transitionStart(i,d),e===0?n.transitionEnd(i,d):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(h){!n||n.destroyed||h.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,d))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0}function Xt(t,e,i,s){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),i===void 0&&(i=!0),typeof t=="string"&&(t=parseInt(t,10));const r=this;let n=t;return r.params.loop&&(r.virtual&&r.params.virtual.enabled?n=n+r.virtual.slidesBefore:n=r.getSlideIndexByData(n)),r.slideTo(n,e,i,s)}function Qt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this,{enabled:r,params:n,animating:o}=s;if(!r)return s;let l=n.slidesPerGroup;n.slidesPerView==="auto"&&n.slidesPerGroup===1&&n.slidesPerGroupAuto&&(l=Math.max(s.slidesPerViewDynamic("current",!0),1));const a=s.activeIndexy(w));let f=n[x.indexOf(u)-1];if(typeof f>"u"&&r.cssMode){let w;n.forEach((d,c)=>{u>=d&&(w=c)}),typeof w<"u"&&(f=n[w>0?w-1:w])}let S=0;if(typeof f<"u"&&(S=o.indexOf(f),S<0&&(S=s.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(S=S-s.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),r.rewind&&s.isBeginning){const w=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(w,t,e,i)}return s.slideTo(S,t,e,i)}function Kt(t,e,i){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const s=this;return s.slideTo(s.activeIndex,t,e,i)}function Jt(t,e,i,s){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),s===void 0&&(s=.5);const r=this;let n=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,n),l=o+Math.floor((n-o)/r.params.slidesPerGroup),a=r.rtlTranslate?r.translate:-r.translate;if(a>=r.snapGrid[l]){const p=r.snapGrid[l],g=r.snapGrid[l+1];a-p>(g-p)*s&&(n+=r.params.slidesPerGroup)}else{const p=r.snapGrid[l-1],g=r.snapGrid[l];a-p<=(g-p)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,t,e,i)}function Zt(){const t=this,{params:e,slidesEl:i}=t,s=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let r=t.clickedIndex,n;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?rt.slides.length-t.loopedSlides+s/2?(t.loopFix(),r=t.getSlideIndex(W(i,`${o}[data-swiper-slide-index="${n}"]`)[0]),Ie(()=>{t.slideTo(r)})):t.slideTo(r):r>t.slides.length-s?(t.loopFix(),r=t.getSlideIndex(W(i,`${o}[data-swiper-slide-index="${n}"]`)[0]),Ie(()=>{t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}var ei={slideTo:Yt,slideToLoop:Xt,slideNext:Qt,slidePrev:Ut,slideReset:Kt,slideToClosest:Jt,slideToClickedSlide:Zt};function ti(t){const e=this,{params:i,slidesEl:s}=e;if(!i.loop||e.virtual&&e.params.virtual.enabled)return;W(s,`.${i.slideClass}, swiper-slide`).forEach((n,o)=>{n.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:t,direction:i.centeredSlides?void 0:"next"})}function ii(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:r,activeSlideIndex:n,byController:o,byMousewheel:l}=t===void 0?{}:t;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:p,allowSlidePrev:g,allowSlideNext:m,slidesEl:y,params:u}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&u.virtual.enabled){i&&(!u.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):u.centeredSlides&&a.snapIndex"u"?n=a.getSlideIndex(a.slides.filter(M=>M.classList.contains(u.slideActiveClass))[0]):d=n;const c=s==="next"||!s,h=s==="prev"||!s;let T=0,P=0;if(na.slides.length-f*2){P=Math.max(n-(a.slides.length-f*2),u.slidesPerGroup);for(let M=0;M{a.slides[M].swiperLoopMoveDOM=!0,y.prepend(a.slides[M]),a.slides[M].swiperLoopMoveDOM=!1}),c&&w.forEach(M=>{a.slides[M].swiperLoopMoveDOM=!0,y.append(a.slides[M]),a.slides[M].swiperLoopMoveDOM=!1}),a.recalcSlides(),u.slidesPerView==="auto"&&a.updateSlides(),u.watchSlidesProgress&&a.updateSlidesOffset(),i){if(S.length>0&&h)if(typeof e>"u"){const M=a.slidesGrid[d],E=a.slidesGrid[d+T]-M;l?a.setTranslate(a.translate-E):(a.slideTo(d+T,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=E,a.touchEventsData.currentTranslate=a.translate))}else r&&(a.slideToLoop(e,0,!1,!0),a.touchEventsData.currentTranslate=a.translate);else if(w.length>0&&c)if(typeof e>"u"){const M=a.slidesGrid[d],E=a.slidesGrid[d-P]-M;l?a.setTranslate(a.translate-E):(a.slideTo(d-P,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=E,a.touchEventsData.currentTranslate=a.translate))}else a.slideToLoop(e,0,!1,!0)}if(a.allowSlidePrev=g,a.allowSlideNext=m,a.controller&&a.controller.control&&!o){const M={slideRealIndex:e,direction:s,setTranslate:r,activeSlideIndex:n,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach($=>{!$.destroyed&&$.params.loop&&$.loopFix({...M,slideTo:$.params.slidesPerView===u.slidesPerView?i:!1})}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix({...M,slideTo:a.controller.control.params.slidesPerView===u.slidesPerView?i:!1})}a.emit("loopFix")}function si(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(r=>{const n=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;s[n]=r}),t.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),s.forEach(r=>{i.append(r)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var ni={loopCreate:ti,loopFix:ii,loopDestroy:si};function ri(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function ai(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var li={setGrabCursor:ri,unsetGrabCursor:ai};function oi(t,e){e===void 0&&(e=this);function i(s){if(!s||s===Y()||s===q())return null;s.assignedSlot&&(s=s.assignedSlot);const r=s.closest(t);return!r&&!s.getRootNode?null:r||i(s.getRootNode().host)}return i(e)}function di(t){const e=this,i=Y(),s=q(),r=e.touchEventsData;r.evCache.push(t);const{params:n,touches:o,enabled:l}=e;if(!l||!n.simulateTouch&&t.pointerType==="mouse"||e.animating&&n.preventInteractionOnTransition)return;!e.animating&&n.cssMode&&n.loop&&e.loopFix();let a=t;a.originalEvent&&(a=a.originalEvent);let p=a.target;if(n.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(p)||"which"in a&&a.which===3||"button"in a&&a.button>0||r.isTouched&&r.isMoved)return;const g=!!n.noSwipingClass&&n.noSwipingClass!=="",m=t.composedPath?t.composedPath():t.path;g&&a.target&&a.target.shadowRoot&&m&&(p=m[0]);const y=n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`,u=!!(a.target&&a.target.shadowRoot);if(n.noSwiping&&(u?oi(y,p):p.closest(y))){e.allowClick=!0;return}if(n.swipeHandler&&!p.closest(n.swipeHandler))return;o.currentX=a.pageX,o.currentY=a.pageY;const x=o.currentX,f=o.currentY,S=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,w=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(S&&(x<=w||x>=s.innerWidth-w))if(S==="prevent")t.preventDefault();else return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=x,o.startY=f,r.touchStartTime=oe(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);let d=!0;p.matches(r.focusableElements)&&(d=!1,p.nodeName==="SELECT"&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==p&&i.activeElement.blur();const c=d&&e.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||c)&&!p.isContentEditable&&a.preventDefault(),n.freeMode&&n.freeMode.enabled&&e.freeMode&&e.animating&&!n.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",a)}function ci(t){const e=Y(),i=this,s=i.touchEventsData,{params:r,touches:n,rtlTranslate:o,enabled:l}=i;if(!l||!r.simulateTouch&&t.pointerType==="mouse")return;let a=t;if(a.originalEvent&&(a=a.originalEvent),!s.isTouched){s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",a);return}const p=s.evCache.findIndex(P=>P.pointerId===a.pointerId);p>=0&&(s.evCache[p]=a);const g=s.evCache.length>1?s.evCache[0]:a,m=g.pageX,y=g.pageY;if(a.preventedByNestedSwiper){n.startX=m,n.startY=y;return}if(!i.allowTouchMove){a.target.matches(s.focusableElements)||(i.allowClick=!1),s.isTouched&&(Object.assign(n,{startX:m,startY:y,prevX:i.touches.currentX,prevY:i.touches.currentY,currentX:m,currentY:y}),s.touchStartTime=oe());return}if(r.touchReleaseOnEdges&&!r.loop){if(i.isVertical()){if(yn.startY&&i.translate>=i.minTranslate()){s.isTouched=!1,s.isMoved=!1;return}}else if(mn.startX&&i.translate>=i.minTranslate())return}if(e.activeElement&&a.target===e.activeElement&&a.target.matches(s.focusableElements)){s.isMoved=!0,i.allowClick=!1;return}if(s.allowTouchCallbacks&&i.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;n.currentX=m,n.currentY=y;const u=n.currentX-n.startX,x=n.currentY-n.startY;if(i.params.threshold&&Math.sqrt(u**2+x**2)"u"){let P;i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:u*u+x*x>=25&&(P=Math.atan2(Math.abs(x),Math.abs(u))*180/Math.PI,s.isScrolling=i.isHorizontal()?P>r.touchAngle:90-P>r.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",a),typeof s.startMoving>"u"&&(n.currentX!==n.startX||n.currentY!==n.startY)&&(s.startMoving=!0),s.isScrolling||i.zoom&&i.params.zoom&&i.params.zoom.enabled&&s.evCache.length>1){s.isTouched=!1;return}if(!s.startMoving)return;i.allowClick=!1,!r.cssMode&&a.cancelable&&a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation();let f=i.isHorizontal()?u:x,S=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(f=Math.abs(f)*(o?1:-1),S=Math.abs(S)*(o?1:-1)),n.diff=f,f*=r.touchRatio,o&&(f=-f,S=-S);const w=i.touchesDirection;i.swipeDirection=f>0?"prev":"next",i.touchesDirection=S>0?"prev":"next";const d=i.params.loop&&!r.cssMode;if(!s.isMoved){if(d&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const P=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(P)}s.allowMomentumBounce=!1,r.grabCursor&&(i.allowSlideNext===!0||i.allowSlidePrev===!0)&&i.setGrabCursor(!0),i.emit("sliderFirstMove",a)}let c;s.isMoved&&w!==i.touchesDirection&&d&&Math.abs(f)>=1&&(i.loopFix({direction:i.swipeDirection,setTranslate:!0}),c=!0),i.emit("sliderMove",a),s.isMoved=!0,s.currentTranslate=f+s.startTranslate;let h=!0,T=r.resistanceRatio;if(r.touchReleaseOnEdges&&(T=0),f>0?(d&&!c&&s.currentTranslate>(r.centeredSlides?i.minTranslate()-i.size/2:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(h=!1,r.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+f)**T))):f<0&&(d&&!c&&s.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.size/2:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-(r.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),s.currentTranslates.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&!i.allowSlideNext&&(s.currentTranslate=s.startTranslate),r.threshold>0)if(Math.abs(f)>r.threshold||s.allowThresholdMove){if(!s.allowThresholdMove){s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY;return}}else{s.currentTranslate=s.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function pi(t){const e=this,i=e.touchEventsData,s=i.evCache.findIndex(c=>c.pointerId===t.pointerId);if(s>=0&&i.evCache.splice(s,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(t.type)&&!(["pointercancel","contextmenu"].includes(t.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:r,touches:n,rtlTranslate:o,slidesGrid:l,enabled:a}=e;if(!a||!r.simulateTouch&&t.pointerType==="mouse")return;let p=t;if(p.originalEvent&&(p=p.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",p),i.allowTouchCallbacks=!1,!i.isTouched){i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,i.startMoving=!1;return}r.grabCursor&&i.isMoved&&i.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const g=oe(),m=g-i.touchStartTime;if(e.allowClick){const c=p.path||p.composedPath&&p.composedPath();e.updateClickedSlide(c&&c[0]||p.target),e.emit("tap click",p),m<300&&g-i.lastClickTime<300&&e.emit("doubleTap doubleClick",p)}if(i.lastClickTime=oe(),Ie(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||n.diff===0||i.currentTranslate===i.startTranslate){i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;return}i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;let y;if(r.followFinger?y=o?e.translate:-e.translate:y=-i.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:y});return}let u=0,x=e.slidesSizesGrid[0];for(let c=0;c=l[c]&&y=l[c]&&(u=c,x=l[l.length-1]-l[l.length-2])}let f=null,S=null;r.rewind&&(e.isBeginning?S=r.virtual&&r.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(f=0));const w=(y-l[u])/x,d=ur.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(w>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?f:u+d):e.slideTo(u)),e.swipeDirection==="prev"&&(w>1-r.longSwipesRatio?e.slideTo(u+d):S!==null&&w<0&&Math.abs(w)>r.longSwipesRatio?e.slideTo(S):e.slideTo(u))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(p.target===e.navigation.nextEl||p.target===e.navigation.prevEl)?p.target===e.navigation.nextEl?e.slideTo(u+d):e.slideTo(u):(e.swipeDirection==="next"&&e.slideTo(f!==null?f:u+d),e.swipeDirection==="prev"&&e.slideTo(S!==null?S:u))}}function Ge(){const t=this,{params:e,el:i}=t;if(i&&i.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:r,snapGrid:n}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const l=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!l?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=r,t.allowSlideNext=s,t.params.watchOverflow&&n!==t.snapGrid&&t.checkOverflow()}function ui(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function fi(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let r;const n=t.maxTranslate()-t.minTranslate();n===0?r=0:r=(t.translate-t.minTranslate())/n,r!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function mi(t){const e=this;ne(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let Be=!1;function gi(){}const Qe=(t,e)=>{const i=Y(),{params:s,el:r,wrapperEl:n,device:o}=t,l=!!s.nested,a=e==="on"?"addEventListener":"removeEventListener",p=e;r[a]("pointerdown",t.onTouchStart,{passive:!1}),i[a]("pointermove",t.onTouchMove,{passive:!1,capture:l}),i[a]("pointerup",t.onTouchEnd,{passive:!0}),i[a]("pointercancel",t.onTouchEnd,{passive:!0}),i[a]("pointerout",t.onTouchEnd,{passive:!0}),i[a]("pointerleave",t.onTouchEnd,{passive:!0}),i[a]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&r[a]("click",t.onClick,!0),s.cssMode&&n[a]("scroll",t.onScroll),s.updateOnWindowResize?t[p](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ge,!0):t[p]("observerUpdate",Ge,!0),r[a]("load",t.onLoad,{capture:!0})};function hi(){const t=this,e=Y(),{params:i}=t;t.onTouchStart=di.bind(t),t.onTouchMove=ci.bind(t),t.onTouchEnd=pi.bind(t),i.cssMode&&(t.onScroll=fi.bind(t)),t.onClick=ui.bind(t),t.onLoad=mi.bind(t),Be||(e.addEventListener("touchstart",gi),Be=!0),Qe(t,"on")}function vi(){Qe(this,"off")}var wi={attachEvents:hi,detachEvents:vi};const He=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function yi(){const t=this,{realIndex:e,initialized:i,params:s,el:r}=t,n=s.breakpoints;if(!n||n&&Object.keys(n).length===0)return;const o=t.getBreakpoint(n,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const a=(o in n?n[o]:void 0)||t.originalParams,p=He(t,s),g=He(t,a),m=s.enabled;p&&!g?(r.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!p&&g&&(r.classList.add(`${s.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&s.grid.fill==="column")&&r.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(f=>{if(typeof a[f]>"u")return;const S=s[f]&&s[f].enabled,w=a[f]&&a[f].enabled;S&&!w&&t[f].disable(),!S&&w&&t[f].enable()});const y=a.direction&&a.direction!==s.direction,u=s.loop&&(a.slidesPerView!==s.slidesPerView||y);y&&i&&t.changeDirection(),V(t.params,a);const x=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),m&&!x?t.disable():!m&&x&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",a),u&&i&&(t.loopDestroy(),t.loopCreate(e),t.updateSlides()),t.emit("breakpoint",a)}function Si(t,e,i){if(e===void 0&&(e="window"),!t||e==="container"&&!i)return;let s=!1;const r=q(),n=e==="window"?r.innerHeight:i.clientHeight,o=Object.keys(t).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const a=parseFloat(l.substr(1));return{value:n*a,point:l}}return{value:l,point:l}});o.sort((l,a)=>parseInt(l.value,10)-parseInt(a.value,10));for(let l=0;l{typeof s=="object"?Object.keys(s).forEach(r=>{s[r]&&i.push(e+r)}):typeof s=="string"&&i.push(e+s)}),i}function bi(){const t=this,{classNames:e,params:i,rtl:s,el:r,device:n}=t,o=xi(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&i.grid.fill==="column"},{android:n.android},{ios:n.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),r.classList.add(...e),t.emitContainerClasses()}function Ei(){const t=this,{el:e,classNames:i}=t;e.classList.remove(...i),t.emitContainerClasses()}var Ci={addClasses:bi,removeClasses:Ei};function Li(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const r=t.slides.length-1,n=t.slidesGrid[r]+t.slidesSizesGrid[r]+s*2;t.isLocked=t.size>n}else t.isLocked=t.snapGrid.length===1;i.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),i.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var Mi={checkOverflow:Li},Ne={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Pi(t,e){return function(s){s===void 0&&(s={});const r=Object.keys(s)[0],n=s[r];if(typeof n!="object"||n===null){V(e,s);return}if(["navigation","pagination","scrollbar"].indexOf(r)>=0&&t[r]===!0&&(t[r]={auto:!0}),!(r in t&&"enabled"in n)){V(e,s);return}t[r]===!0&&(t[r]={enabled:!0}),typeof t[r]=="object"&&!("enabled"in t[r])&&(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),V(e,s)}}const he={eventsEmitter:Ct,update:Gt,translate:qt,transition:Wt,slide:ei,loop:ni,grabCursor:li,events:wi,breakpoints:Ti,checkOverflow:Mi,classes:Ci},ve={};class R{constructor(){let e,i;for(var s=arguments.length,r=new Array(s),n=0;n1){const g=[];return o.querySelectorAll(i.el).forEach(m=>{const y=V({},i,{el:m});g.push(new R(y))}),g}const l=this;l.__swiper__=!0,l.support=Ye(),l.device=St({userAgent:i.userAgent}),l.browser=xt(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],i.modules&&Array.isArray(i.modules)&&l.modules.push(...i.modules);const a={};l.modules.forEach(g=>{g({params:i,swiper:l,extendParams:Pi(i,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const p=V({},Ne,a);return l.params=V({},p,ve,i),l.originalParams=V({},l.params),l.passedParams=V({},i),l.params&&l.params.on&&Object.keys(l.params.on).forEach(g=>{l.on(g,l.params.on[g])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(e){const{slidesEl:i,params:s}=this,r=W(i,`.${s.slideClass}, swiper-slide`),n=de(r[0]);return de(e)-n}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(i=>i.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:i,params:s}=e;e.slides=W(i,`.${s.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,i){const s=this;e=Math.min(Math.max(e,0),1);const r=s.minTranslate(),o=(s.maxTranslate()-r)*e+r;s.translateTo(o,typeof i>"u"?0:i),s.updateActiveIndex(),s.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=e.el.className.split(" ").filter(s=>s.indexOf("swiper")===0||s.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",i.join(" "))}getSlideClasses(e){const i=this;return i.destroyed?"":e.className.split(" ").filter(s=>s.indexOf("swiper-slide")===0||s.indexOf(i.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const i=[];e.slides.forEach(s=>{const r=e.getSlideClasses(s);i.push({slideEl:s,classNames:r}),e.emit("_slideClass",s,r)}),e.emit("_slideClasses",i)}slidesPerViewDynamic(e,i){e===void 0&&(e="current"),i===void 0&&(i=!1);const s=this,{params:r,slides:n,slidesGrid:o,slidesSizesGrid:l,size:a,activeIndex:p}=s;let g=1;if(r.centeredSlides){let m=n[p]?n[p].swiperSlideSize:0,y;for(let u=p+1;ua&&(y=!0));for(let u=p-1;u>=0;u-=1)n[u]&&!y&&(m+=n[u].swiperSlideSize,g+=1,m>a&&(y=!0))}else if(e==="current")for(let m=p+1;m=0;m-=1)o[p]-o[m]{o.complete&&ne(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const o=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(s.freeMode&&s.freeMode.enabled&&!s.cssMode)r(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(o.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||r()}s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,i){i===void 0&&(i=!0);const s=this,r=s.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${r}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(n=>{e==="vertical"?n.style.width="":n.style.height=""}),s.emit("changeDirection"),i&&s.update()),s}changeLanguageDirection(e){const i=this;i.rtl&&e==="rtl"||!i.rtl&&e==="ltr"||(i.rtl=e==="rtl",i.rtlTranslate=i.params.direction==="horizontal"&&i.rtl,i.rtl?(i.el.classList.add(`${i.params.containerModifierClass}rtl`),i.el.dir="rtl"):(i.el.classList.remove(`${i.params.containerModifierClass}rtl`),i.el.dir="ltr"),i.update())}mount(e){const i=this;if(i.mounted)return!0;let s=e||i.params.el;if(typeof s=="string"&&(s=document.querySelector(s)),!s)return!1;s.swiper=i,s.parentNode&&s.parentNode.host&&s.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(i.isElement=!0);const r=()=>`.${(i.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>s&&s.shadowRoot&&s.shadowRoot.querySelector?s.shadowRoot.querySelector(r()):W(s,r())[0])();return!o&&i.params.createElements&&(o=je("div",i.params.wrapperClass),s.append(o),W(s,`.${i.params.slideClass}`).forEach(l=>{o.append(l)})),Object.assign(i,{el:s,wrapperEl:o,slidesEl:i.isElement&&!s.parentNode.host.slideSlots?s.parentNode.host:o,hostEl:i.isElement?s.parentNode.host:s,mounted:!0,rtl:s.dir.toLowerCase()==="rtl"||K(s,"direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(s.dir.toLowerCase()==="rtl"||K(s,"direction")==="rtl"),wrongRTL:K(o,"display")==="-webkit-box"}),!0}init(e){const i=this;if(i.initialized||i.mount(e)===!1)return i;i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(),i.params.loop&&i.virtual&&i.params.virtual.enabled?i.slideTo(i.params.initialSlide+i.virtual.slidesBefore,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.params.loop&&i.loopCreate(),i.attachEvents();const r=[...i.el.querySelectorAll('[loading="lazy"]')];return i.isElement&&r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(n=>{n.complete?ne(i,n):n.addEventListener("load",o=>{ne(i,o.target)})}),Oe(i),i.initialized=!0,Oe(i),i.emit("init"),i.emit("afterInit"),i}destroy(e,i){e===void 0&&(e=!0),i===void 0&&(i=!0);const s=this,{params:r,el:n,wrapperEl:o,slides:l}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),r.loop&&s.loopDestroy(),i&&(s.removeClasses(),n.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(a=>{a.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(a=>{s.off(a)}),e!==!1&&(s.el.swiper=null,ut(s)),s.destroyed=!0),null}static extendDefaults(e){V(ve,e)}static get extendedDefaults(){return ve}static get defaults(){return Ne}static installModule(e){R.prototype.__modules__||(R.prototype.__modules__=[]);const i=R.prototype.__modules__;typeof e=="function"&&i.indexOf(e)<0&&i.push(e)}static use(e){return Array.isArray(e)?(e.forEach(i=>R.installModule(i)),R):(R.installModule(e),R)}}Object.keys(he).forEach(t=>{Object.keys(he[t]).forEach(e=>{R.prototype[e]=he[t][e]})});R.use([bt,Et]);function Ue(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(r=>{if(!i[r]&&i.auto===!0){let n=W(t.el,`.${s[r]}`)[0];n||(n=je("div",s[r]),n.className=s[r],t.el.append(n)),i[r]=n,e[r]=n}}),i}function Ii(t){let{swiper:e,extendParams:i,on:s,emit:r}=t;i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const n=f=>(Array.isArray(f)?f:[f]).filter(S=>!!S);function o(f){let S;return f&&typeof f=="string"&&e.isElement&&(S=e.el.querySelector(f),S)?S:(f&&(typeof f=="string"&&(S=[...document.querySelectorAll(f)]),e.params.uniqueNavElements&&typeof f=="string"&&S.length>1&&e.el.querySelectorAll(f).length===1&&(S=e.el.querySelector(f))),f&&!S?f:S)}function l(f,S){const w=e.params.navigation;f=n(f),f.forEach(d=>{d&&(d.classList[S?"add":"remove"](...w.disabledClass.split(" ")),d.tagName==="BUTTON"&&(d.disabled=S),e.params.watchOverflow&&e.enabled&&d.classList[e.isLocked?"add":"remove"](w.lockClass))})}function a(){const{nextEl:f,prevEl:S}=e.navigation;if(e.params.loop){l(S,!1),l(f,!1);return}l(S,e.isBeginning&&!e.params.rewind),l(f,e.isEnd&&!e.params.rewind)}function p(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function g(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function m(){const f=e.params.navigation;if(e.params.navigation=Ue(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let S=o(f.nextEl),w=o(f.prevEl);Object.assign(e.navigation,{nextEl:S,prevEl:w}),S=n(S),w=n(w);const d=(c,h)=>{c&&c.addEventListener("click",h==="next"?g:p),!e.enabled&&c&&c.classList.add(...f.lockClass.split(" "))};S.forEach(c=>d(c,"next")),w.forEach(c=>d(c,"prev"))}function y(){let{nextEl:f,prevEl:S}=e.navigation;f=n(f),S=n(S);const w=(d,c)=>{d.removeEventListener("click",c==="next"?g:p),d.classList.remove(...e.params.navigation.disabledClass.split(" "))};f.forEach(d=>w(d,"next")),S.forEach(d=>w(d,"prev"))}s("init",()=>{e.params.navigation.enabled===!1?x():(m(),a())}),s("toEdge fromEdge lock unlock",()=>{a()}),s("destroy",()=>{y()}),s("enable disable",()=>{let{nextEl:f,prevEl:S}=e.navigation;f=n(f),S=n(S),[...f,...S].filter(w=>!!w).forEach(w=>w.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),s("click",(f,S)=>{let{nextEl:w,prevEl:d}=e.navigation;w=n(w),d=n(d);const c=S.target;if(e.params.navigation.hideOnClick&&!d.includes(c)&&!w.includes(c)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===c||e.pagination.el.contains(c)))return;let h;w.length?h=w[0].classList.contains(e.params.navigation.hiddenClass):d.length&&(h=d[0].classList.contains(e.params.navigation.hiddenClass)),r(h===!0?"navigationShow":"navigationHide"),[...w,...d].filter(T=>!!T).forEach(T=>T.classList.toggle(e.params.navigation.hiddenClass))}});const u=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),m(),a()},x=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),y()};Object.assign(e.navigation,{enable:u,disable:x,update:a,init:m,destroy:y})}function te(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Ai(t){let{swiper:e,extendParams:i,on:s,emit:r}=t;const n="swiper-pagination";i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:d=>d,formatFractionTotal:d=>d,bulletClass:`${n}-bullet`,bulletActiveClass:`${n}-bullet-active`,modifierClass:`${n}-`,currentClass:`${n}-current`,totalClass:`${n}-total`,hiddenClass:`${n}-hidden`,progressbarFillClass:`${n}-progressbar-fill`,progressbarOppositeClass:`${n}-progressbar-opposite`,clickableClass:`${n}-clickable`,lockClass:`${n}-lock`,horizontalClass:`${n}-horizontal`,verticalClass:`${n}-vertical`,paginationDisabledClass:`${n}-disabled`}}),e.pagination={el:null,bullets:[]};let o,l=0;const a=d=>(Array.isArray(d)?d:[d]).filter(c=>!!c);function p(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function g(d,c){const{bulletActiveClass:h}=e.params.pagination;d&&(d=d[`${c==="prev"?"previous":"next"}ElementSibling`],d&&(d.classList.add(`${h}-${c}`),d=d[`${c==="prev"?"previous":"next"}ElementSibling`],d&&d.classList.add(`${h}-${c}-${c}`)))}function m(d){const c=d.target.closest(te(e.params.pagination.bulletClass));if(!c)return;d.preventDefault();const h=de(c)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===h)return;const T=e.realIndex,P=e.getSlideIndexByData(h),M=e.getSlideIndexByData(e.realIndex);if(P>e.slides.length-e.loopedSlides){const $=e.activeIndex;e.loopFix({direction:P>M?"next":"prev",activeSlideIndex:P,slideTo:!1});const E=e.activeIndex;$===E&&e.slideToLoop(T,0,!1,!0)}e.slideToLoop(h)}else e.slideTo(h)}function y(){const d=e.rtl,c=e.params.pagination;if(p())return;let h=e.pagination.el;h=a(h);let T,P;const M=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,$=e.params.loop?Math.ceil(M/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(P=e.previousRealIndex||0,T=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(T=e.snapIndex,P=e.previousSnapIndex):(P=e.previousIndex||0,T=e.activeIndex||0),c.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const E=e.pagination.bullets;let N,b,C;if(c.dynamicBullets&&(o=Ae(E[0],e.isHorizontal()?"width":"height",!0),h.forEach(L=>{L.style[e.isHorizontal()?"width":"height"]=`${o*(c.dynamicMainBullets+4)}px`}),c.dynamicMainBullets>1&&P!==void 0&&(l+=T-(P||0),l>c.dynamicMainBullets-1?l=c.dynamicMainBullets-1:l<0&&(l=0)),N=Math.max(T-l,0),b=N+(Math.min(E.length,c.dynamicMainBullets)-1),C=(b+N)/2),E.forEach(L=>{const A=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(D=>`${c.bulletActiveClass}${D}`)].map(D=>typeof D=="string"&&D.includes(" ")?D.split(" "):D).flat();L.classList.remove(...A)}),h.length>1)E.forEach(L=>{const A=de(L);A===T?L.classList.add(...c.bulletActiveClass.split(" ")):e.isElement&&L.setAttribute("part","bullet"),c.dynamicBullets&&(A>=N&&A<=b&&L.classList.add(...`${c.bulletActiveClass}-main`.split(" ")),A===N&&g(L,"prev"),A===b&&g(L,"next"))});else{const L=E[T];if(L&&L.classList.add(...c.bulletActiveClass.split(" ")),e.isElement&&E.forEach((A,D)=>{A.setAttribute("part",D===T?"bullet-active":"bullet")}),c.dynamicBullets){const A=E[N],D=E[b];for(let _=N;_<=b;_+=1)E[_]&&E[_].classList.add(...`${c.bulletActiveClass}-main`.split(" "));g(A,"prev"),g(D,"next")}}if(c.dynamicBullets){const L=Math.min(E.length,c.dynamicMainBullets+4),A=(o*L-o)/2-C*o,D=d?"right":"left";E.forEach(_=>{_.style[e.isHorizontal()?D:"top"]=`${A}px`})}}h.forEach((E,N)=>{if(c.type==="fraction"&&(E.querySelectorAll(te(c.currentClass)).forEach(b=>{b.textContent=c.formatFractionCurrent(T+1)}),E.querySelectorAll(te(c.totalClass)).forEach(b=>{b.textContent=c.formatFractionTotal($)})),c.type==="progressbar"){let b;c.progressbarOpposite?b=e.isHorizontal()?"vertical":"horizontal":b=e.isHorizontal()?"horizontal":"vertical";const C=(T+1)/$;let L=1,A=1;b==="horizontal"?L=C:A=C,E.querySelectorAll(te(c.progressbarFillClass)).forEach(D=>{D.style.transform=`translate3d(0,0,0) scaleX(${L}) scaleY(${A})`,D.style.transitionDuration=`${e.params.speed}ms`})}c.type==="custom"&&c.renderCustom?(E.innerHTML=c.renderCustom(e,T+1,$),N===0&&r("paginationRender",E)):(N===0&&r("paginationRender",E),r("paginationUpdate",E)),e.params.watchOverflow&&e.enabled&&E.classList[e.isLocked?"add":"remove"](c.lockClass)})}function u(){const d=e.params.pagination;if(p())return;const c=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let h=e.pagination.el;h=a(h);let T="";if(d.type==="bullets"){let P=e.params.loop?Math.ceil(c/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&P>c&&(P=c);for(let M=0;M`}d.type==="fraction"&&(d.renderFraction?T=d.renderFraction.call(e,d.currentClass,d.totalClass):T=` / `),d.type==="progressbar"&&(d.renderProgressbar?T=d.renderProgressbar.call(e,d.progressbarFillClass):T=``),e.pagination.bullets=[],h.forEach(P=>{d.type!=="custom"&&(P.innerHTML=T||""),d.type==="bullets"&&e.pagination.bullets.push(...P.querySelectorAll(te(d.bulletClass)))}),d.type!=="custom"&&r("paginationRender",h[0])}function x(){e.params.pagination=Ue(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const d=e.params.pagination;if(!d.el)return;let c;typeof d.el=="string"&&e.isElement&&(c=e.el.querySelector(d.el)),!c&&typeof d.el=="string"&&(c=[...document.querySelectorAll(d.el)]),c||(c=d.el),!(!c||c.length===0)&&(e.params.uniqueNavElements&&typeof d.el=="string"&&Array.isArray(c)&&c.length>1&&(c=[...e.el.querySelectorAll(d.el)],c.length>1&&(c=c.filter(h=>We(h,".swiper")[0]===e.el)[0])),Array.isArray(c)&&c.length===1&&(c=c[0]),Object.assign(e.pagination,{el:c}),c=a(c),c.forEach(h=>{d.type==="bullets"&&d.clickable&&h.classList.add(...(d.clickableClass||"").split(" ")),h.classList.add(d.modifierClass+d.type),h.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.type==="bullets"&&d.dynamicBullets&&(h.classList.add(`${d.modifierClass}${d.type}-dynamic`),l=0,d.dynamicMainBullets<1&&(d.dynamicMainBullets=1)),d.type==="progressbar"&&d.progressbarOpposite&&h.classList.add(d.progressbarOppositeClass),d.clickable&&h.addEventListener("click",m),e.enabled||h.classList.add(d.lockClass)}))}function f(){const d=e.params.pagination;if(p())return;let c=e.pagination.el;c&&(c=a(c),c.forEach(h=>{h.classList.remove(d.hiddenClass),h.classList.remove(d.modifierClass+d.type),h.classList.remove(e.isHorizontal()?d.horizontalClass:d.verticalClass),d.clickable&&(h.classList.remove(...(d.clickableClass||"").split(" ")),h.removeEventListener("click",m))})),e.pagination.bullets&&e.pagination.bullets.forEach(h=>h.classList.remove(...d.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const d=e.params.pagination;let{el:c}=e.pagination;c=a(c),c.forEach(h=>{h.classList.remove(d.horizontalClass,d.verticalClass),h.classList.add(e.isHorizontal()?d.horizontalClass:d.verticalClass)})}),s("init",()=>{e.params.pagination.enabled===!1?w():(x(),u(),y())}),s("activeIndexChange",()=>{typeof e.snapIndex>"u"&&y()}),s("snapIndexChange",()=>{y()}),s("snapGridLengthChange",()=>{u(),y()}),s("destroy",()=>{f()}),s("enable disable",()=>{let{el:d}=e.pagination;d&&(d=a(d),d.forEach(c=>c.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{y()}),s("click",(d,c)=>{const h=c.target,T=a(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&T&&T.length>0&&!h.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&h===e.navigation.nextEl||e.navigation.prevEl&&h===e.navigation.prevEl))return;const P=T[0].classList.contains(e.params.pagination.hiddenClass);r(P===!0?"paginationShow":"paginationHide"),T.forEach(M=>M.classList.toggle(e.params.pagination.hiddenClass))}});const S=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=a(d),d.forEach(c=>c.classList.remove(e.params.pagination.paginationDisabledClass))),x(),u(),y()},w=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:d}=e.pagination;d&&(d=a(d),d.forEach(c=>c.classList.add(e.params.pagination.paginationDisabledClass))),f()};Object.assign(e.pagination,{enable:S,disable:w,render:u,update:y,init:x,destroy:f})}function Oi(t){let{swiper:e,extendParams:i,on:s,emit:r,params:n}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},i({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,l,a=n&&n.autoplay?n.autoplay.delay:3e3,p=n&&n.autoplay?n.autoplay.delay:3e3,g,m=new Date().getTime,y,u,x,f,S,w;function d(z){!e||e.destroyed||!e.wrapperEl||z.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",d),E())}const c=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?y=!0:y&&(p=g,y=!1);const z=e.autoplay.paused?g:m+p-new Date().getTime();e.autoplay.timeLeft=z,r("autoplayTimeLeft",z,z/a),l=requestAnimationFrame(()=>{c()})},h=()=>{let z;return e.virtual&&e.params.virtual.enabled?z=e.slides.filter(F=>F.classList.contains("swiper-slide-active"))[0]:z=e.slides[e.activeIndex],z?parseInt(z.getAttribute("data-swiper-autoplay"),10):void 0},T=z=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),c();let j=typeof z>"u"?e.params.autoplay.delay:z;a=e.params.autoplay.delay,p=e.params.autoplay.delay;const F=h();!Number.isNaN(F)&&F>0&&typeof z>"u"&&(j=F,a=F,p=F),g=j;const U=e.params.speed,ee=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(U,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,U,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(U,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,U,!0,!0),r("autoplay")),e.params.cssMode&&(m=new Date().getTime(),requestAnimationFrame(()=>{T()})))};return j>0?(clearTimeout(o),o=setTimeout(()=>{ee()},j)):requestAnimationFrame(()=>{ee()}),j},P=()=>{e.autoplay.running=!0,T(),r("autoplayStart")},M=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(l),r("autoplayStop")},$=(z,j)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),z||(w=!0);const F=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",d):E()};if(e.autoplay.paused=!0,j){S&&(g=e.params.autoplay.delay),S=!1,F();return}g=(g||e.params.autoplay.delay)-(new Date().getTime()-m),!(e.isEnd&&g<0&&!e.params.loop)&&(g<0&&(g=0),F())},E=()=>{e.isEnd&&g<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(m=new Date().getTime(),w?(w=!1,T(g)):T(),e.autoplay.paused=!1,r("autoplayResume"))},N=()=>{if(e.destroyed||!e.autoplay.running)return;const z=Y();z.visibilityState==="hidden"&&(w=!0,$(!0)),z.visibilityState==="visible"&&E()},b=z=>{z.pointerType==="mouse"&&(w=!0,!(e.animating||e.autoplay.paused)&&$(!0))},C=z=>{z.pointerType==="mouse"&&e.autoplay.paused&&E()},L=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",b),e.el.addEventListener("pointerleave",C))},A=()=>{e.el.removeEventListener("pointerenter",b),e.el.removeEventListener("pointerleave",C)},D=()=>{Y().addEventListener("visibilitychange",N)},_=()=>{Y().removeEventListener("visibilitychange",N)};s("init",()=>{e.params.autoplay.enabled&&(L(),D(),m=new Date().getTime(),P())}),s("destroy",()=>{A(),_(),e.autoplay.running&&M()}),s("beforeTransitionStart",(z,j,F)=>{e.destroyed||!e.autoplay.running||(F||!e.params.autoplay.disableOnInteraction?$(!0,!0):M())}),s("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){M();return}u=!0,x=!1,w=!1,f=setTimeout(()=>{w=!0,x=!0,$(!0)},200)}}),s("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!u)){if(clearTimeout(f),clearTimeout(o),e.params.autoplay.disableOnInteraction){x=!1,u=!1;return}x&&e.params.cssMode&&E(),x=!1,u=!1}}),s("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:P,stop:M,pause:$,resume:E})}const zi=document.querySelector(".swiper-wrapper");function $i(){new R(".swiper",{modules:[Ii,Ai,Oi],allowSlideNext:!0,pagination:{el:".pagination",clickable:!0},autoplay:{delay:1500},speed:800,loop:!0})}J("events").then(t=>{ki(t),$i()}).catch(t=>{Q.fire({icon:"error",title:"Something went wrong. Reload the page and try again"})});function ki(t){const e=t.map(i=>` -
    -
    -
    - cook name -
    -
    - dish previe -

    ${i.topic.name}

    -

    ${i.topic.area}

    -
    -
    - dish -
    -
    -
    - `).join("");zi.insertAdjacentHTML("beforeend",e)}const v={page:1,areaQuery:"",category:"",ingredientQuery:"",timeQuery:"",searchQuery:""};let H,re;Ni();let ae;ce();async function G(){try{const t=await J(`recipes?page=${v.page}&limit=${re}`),e=t.results;ae=e.length,H=t.totalPages;let i;i=e.map(({rating:r,title:n,description:o,preview:l,_id:a})=>{const p=JSON.parse(localStorage.getItem("favorites"))||[];return nt(p,a)?` -
  • - ${n} -
    -
    - -
    -
    -

    ${n}

    -

    ${o}

    -
    -

    ${r} - -

    - -
    -
    -
    - `:` -
  • - ${n} -
    -
    - -
    -
    -

    ${n}

    -

    ${o}

    -
    -

    ${r} - -

    - -
    -
    -
    - `}).join("");const s=document.querySelector(".recipe-list");s.addEventListener("click",rt),s.insertAdjacentHTML("beforeend",i)}catch{const e=document.querySelector(".resipe-list-empty"),i=document.querySelector(".recipe-pagination");e.classList.remove("is-hidden"),i.classList.add("is-hidden"),Q.fire({icon:"error",title:"Something went wrong, we found 0 recipes. Try reloading the page!"})}}G();const we=document.querySelector(".recipe-pagination"),B=document.querySelector(".recipe-list"),Di=document.querySelector(".first-page"),Gi=document.querySelector(".previous-page"),O=document.querySelector(".current-page-1"),I=document.querySelector(".page-2"),k=document.querySelector(".page-3"),X=document.querySelector(".page-5"),Bi=document.querySelector(".next-page"),Hi=document.querySelector(".last-page");function Ni(){return window.innerWidth<768?re=6:window.innerWidth<1280?re=8:re=9}function Fi(t){H<=1||H===2?I.classList.remove("is-hidden"):H===3?(I.classList.remove("is-hidden"),k.classList.remove("is-hidden")):(I.classList.remove("is-hidden"),k.classList.remove("is-hidden"),X.classList.remove("is-hidden"))}Fi();function ce(t){if(window.innerWidth<768&&ae<6)we.classList.add("is-hidden");else if(window.innerWidth<1280&&ae<8)we.classList.add("is-hidden");else if(ae<9)we.classList.add("is-hidden");else return}ce();O.addEventListener("click",t=>{if(v.page===1)return Q.fire({icon:"info",title:"You already on this page!"});v.page===2?(I.classList.remove("current-pagi-page"),O.classList.add("current-pagi-page"),B.innerHTML="",v.page=Number(t.target.innerText),G()):v.page===H||Number(k.textContent)===H?(B.innerHTML="",v.page=Number(t.target.innerText),G(),X.classList.remove("is-hidden"),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1):(B.innerHTML="",v.page=Number(t.target.innerText),G(),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1)});I.addEventListener("click",t=>{if(v.page===1)B.innerHTML="",I.classList.add("current-pagi-page"),O.classList.remove("current-pagi-page"),v.page=Number(t.target.innerText),G();else if(page!==Number(t.target.innerText))B.innerHTML="",v.page=Number(t.target.innerText),G();else if(I.innerText===v.page-1)v.page-=1,G(),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1,k.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page");else return Q.fire({icon:"info",title:"You already on this page!"})});k.addEventListener("click",t=>{if(v.page<=2)B.innerHTML="",v.page=Number(t.target.innerText),O.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page"),G(),t.target.innerText=Number(t.target.innerText)+1,I.textContent=v.page,O.textContent=v.page-1;else{if(Number(t.target.innerText)===H)return Q.fire({icon:"info",title:"That was the last page"});B.innerHTML="",v.page=Number(t.target.innerText),G(),t.target.innerText=Number(t.target.innerText)+1,I.textContent=v.page,O.textContent=Number(t.target.innerText)-2}});X.addEventListener("click",t=>{v.page+3===H?(v.page+=2,B.innerHTML="",G(),O.textContent=v.page-2,I.textContent=v.page-1,k.textContent=v.page,X.classList.add("is-hidden"),O.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page")):v.page+2===H?(v.page+=1,B.innerHTML="",G(),O.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page"),O.textContent=page-2,I.textContent=page-1,k.textContent=page,X.classList.add("is-hidden")):(v.page+=2,B.innerHTML="",G(),O.classList.remove("current-pagi-page"),I.classList.add("current-pagi-page"),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1)});Bi.addEventListener("click",t=>{v.page===1?(B.innerHTML="",v.page+=1,I.classList.add("current-pagi-page"),O.classList.remove("current-pagi-page"),G()):v.page+1===H?(O.textContent=v.page-2,I.textContent=v.page-1,k.textContent=v.page,X.classList.add("is-hidden")):(B.innerHTML="",v.page+=1,I.classList.add("current-pagi-page"),O.classList.remove("current-pagi-page"),G(),X.classList.remove("is-hidden"),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1)});Hi.addEventListener("click",t=>{v.page===H||v.page===H-1||v.page===H-2||(B.innerHTML="",v.page=H,G(),O.classList.remove("current-pagi-page"),k.classList.add("current-pagi-page"),X.classList.add("is-hidden"),O.textContent=v.page-2,I.textContent=v.page-1,k.textContent=v.page)});Di.addEventListener("click",t=>{v.page<=2||(v.page===H?(B.innerHTML="",v.page=1,G(),O.classList.add("current-pagi-page"),I.classList.remove("current-pagi-page"),k.classList.remove("current-pagi-page"),X.classList.remove("is-hidden"),O.textContent=v.page,I.textContent=v.page+1,k.textContent=v.page+2):(B.innerHTML="",v.page=1,O.classList.add("current-pagi-page"),I.classList.remove("current-pagi-page"),k.classList.remove("current-pagi-page"),X.classList.remove("is-hidden"),G(),O.textContent=v.page,I.textContent=v.page+1,k.textContent=v.page+2))});Gi.addEventListener("click",t=>{v.page!==1&&(v.page===2?(B.innerHTML="",v.page=1,G(),O.classList.add("current-pagi-page"),I.classList.remove("current-pagi-page"),O.textContent=v.page,I.textContent=v.page+1,k.textContent=v.page+2):Number(I.textContent)===H||Number(k.textContent)===H?(B.innerHTML="",v.page-=1,G(),O.textContent=v.page-2,I.textContent=v.page-1,k.textContent=v.page):(B.innerHTML="",v.page-=1,G(),O.textContent=v.page-1,I.textContent=v.page,k.textContent=v.page+1))});const pe=()=>({filtersList:document.querySelector(".extra-filters-list"),areaFilter:document.querySelector("#area-filter"),ingredientsFilter:document.querySelector("#ingredients-filter"),timeFilter:document.querySelector("#time-filter"),searchInput:document.querySelector(".search-input"),recipeList:document.querySelector(".recipe-list"),resetBtn:document.querySelector(".reset-btn"),selectedTime:document.querySelector("#selected-time"),selectedArea:document.querySelector("#selected-area"),selectedIngredient:document.querySelector("#selected-ingredient"),loader:document.querySelector(".loader")}),{areaFilter:Fe,ingredientsFilter:Ve,recipeList:ye,loader:rs}=pe(),Vi=t=>{if(Fe){const e=t.map(i=>`
  • ${i.name}
  • `).join("");Fe.insertAdjacentHTML("beforeend",e)}},qi=t=>{if(Ve){const s=t.slice(0,100).map(r=>`
  • ${r.name}
  • `).join("");Ve.insertAdjacentHTML("beforeend",s)}},Ke=t=>{const e=t.map(({rating:i,title:s,description:r,preview:n,_id:o})=>(ce(),` -
  • - ${s} -
    -
    - -
    -
    -

    ${s}

    -

    ${r}

    -
    -

    ${i} - -

    - -
    -
    -
    - `)).join("");ce(),ye&&(ye.innerHTML="",ye.insertAdjacentHTML("beforeend",e))};J("areas").then(t=>{Vi(t)});J("ingredients").then(t=>{qi(t)});const{loader:Se}=pe(),Ri=()=>{const t=[];return v.category&&t.push(`category=${encodeURIComponent(v.category)}`),v.timeQuery&&t.push(`time=${encodeURIComponent(v.timeQuery)}`),v.areaQuery&&t.push(`area=${encodeURIComponent(v.areaQuery)}`),v.ingredientQuery&&t.push(`ingredient=${encodeURIComponent(v.ingredientQuery)}`),v.searchQuery&&t.push(`title=${encodeURIComponent(v.searchQuery)}`),t.join("&")},$e=async()=>{try{const t=Ri(),e=await at.get(`https://tasty-treats-backend.p.goit.global/api/recipes?page=${v.page}&limit=9&${t}`);Ke(e.data.results)}catch{await Q.fire({icon:"error",title:"Something went wrong. Reload the page and try again"})}Se==null||Se.classList.add("d-none")},_i=t=>{const e=t.target.closest(".extra-filters-item");if(!e)return;const i=e.querySelector(".extra-select"),s=e.querySelector(".extra-options-list");i.classList.toggle("opened"),s.classList.toggle("opened-list")},{searchInput:le,selectedTime:ji,selectedArea:Wi,selectedIngredient:Yi,recipeList:Te,filtersList:xe,resetBtn:be,loader:Ee}=pe(),Xi=async()=>{le.value="",v.areaQuery="",v.timeQuery="",v.searchQuery="",v.ingredientQuery="",ji.textContent="Select",Wi.textContent="Select",Yi.textContent="Select";const t=await J(`recipes?page=${v.page}&limit=9`);Ke(t.results);const e=Te==null?void 0:Te.querySelectorAll(".recipe-item");e==null||e.forEach(i=>i.classList.remove("d-none")),await Q.fire({icon:"question",title:"Filters have been reset"})},Qi=t=>{Ee==null||Ee.classList.remove("d-none"),v.searchQuery=t.target.value,$e()};xe==null||xe.addEventListener("click",_i);le==null||le.addEventListener("input",lt(Qi,300));be==null||be.addEventListener("click",Xi);const{selectedArea:Ui,selectedIngredient:Ki,selectedTime:Ji,areaFilter:Ce,ingredientsFilter:Le,timeFilter:Me,loader:Pe}=pe(),ke=({e:t,filter:e,dataAttr:i,param:s})=>{Pe==null||Pe.classList.remove("d-none"),v[s]=t.target.dataset[i],Zi(e,t.target.textContent),$e()},Zi=(t,e)=>{t instanceof Element&&(t.textContent=e)};Ce==null||Ce.addEventListener("click",t=>ke({e:t,filter:Ui,dataAttr:"area",param:"areaQuery"}));Le==null||Le.addEventListener("click",t=>ke({e:t,filter:Ki,dataAttr:"ingredient",param:"ingredientQuery"}));Me==null||Me.addEventListener("click",t=>ke({e:t,filter:Ji,dataAttr:"time",param:"timeQuery"}));const Je=document.querySelector(".categories"),Ze=document.querySelector(".categories ul");document.addEventListener("DOMContentLoaded",et);document.removeEventListener("load",et);Je.addEventListener("click",es);async function et(){try{const t=await J("categories");ts(t)}catch{Q.fire({icon:"error",title:"Something went wrong. Reload the page and try again"})}}function es(t){const e=t.target;if(e.nodeName!=="BUTTON")return;Je.querySelector(".active-category").classList.toggle("active-category"),e.classList.toggle("active-category");const s=e.classList.contains("all-categories-btn");v.category=s?"":e.textContent,v.page=1,$e()}function ts(t){ss();const e=t.map(is).join("");Ze.insertAdjacentHTML("beforeend",e)}function is({name:t}){return` -
  • - -
  • - `}function ss(){Ze.innerHTML=""}dt(); diff --git a/favorites.html b/favorites.html index 6ec4b73..8938c84 100644 --- a/favorites.html +++ b/favorites.html @@ -12,9 +12,9 @@ Favorites - - - + + +
    @@ -66,7 +66,6 @@ -
    -
    diff --git a/index.html b/index.html index f543041..4d33d2e 100644 --- a/index.html +++ b/index.html @@ -12,9 +12,9 @@ Tasty Treats - - - + + + @@ -67,7 +67,6 @@ -
    -