diff --git a/assets/index-09b05cde.js b/assets/index-200204ef.js similarity index 50% rename from assets/index-09b05cde.js rename to assets/index-200204ef.js index d7caf4e..228763d 100644 --- a/assets/index-09b05cde.js +++ b/assets/index-200204ef.js @@ -1,11 +1,11 @@ -(function(){const T=document.createElement("link").relList;if(T&&T.supports&&T.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function b(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(o){if(o.ep)return;o.ep=!0;const n=b(o);fetch(o.href,n)}})();var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ue={exports:{}};(function(h,T){(function(s,o){h.exports=o()})(we,function(){return function(b){var s={};function o(n){if(s[n])return s[n].exports;var i=s[n]={i:n,l:!1,exports:{}};return b[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=b,o.c=s,o.d=function(n,i,v){o.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:v})},o.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,i){if(i&1&&(n=o(n)),i&8||i&4&&typeof n=="object"&&n&&n.__esModule)return n;var v=Object.create(null);if(o.r(v),Object.defineProperty(v,"default",{enumerable:!0,value:n}),i&2&&typeof n!="string")for(var d in n)o.d(v,d,(function(u){return n[u]}).bind(null,d));return v},o.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(i,"a",i),i},o.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},o.p="",o(o.s=0)}([function(b,s,o){o.r(s);var n=function(e){return Array.isArray(e)?e:[e]},i=function(e){return e instanceof Node},v=function(e){return e instanceof NodeList},d=function(e,l){if(e&&l){e=v(e)?e:[e];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:document;if(r&&B(a.querySelectorAll(l)).indexOf(e)!==-1)return e;for(;(e=e.parentElement)&&B(a.querySelectorAll(l)).indexOf(e)===-1;);return e},j=function(e,l){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document,a=B(r.querySelectorAll(l)).indexOf(e)!==-1;return a},k=function(e){if(e){var l=getComputedStyle(e),r=l.overflow==="hidden";return r}},Y=function(e){if(e){if(k(e))return!0;var l=e.scrollTop;return l<=0}},C=function(e){if(e){if(k(e))return!0;var l=e.scrollTop,r=e.scrollHeight,a=l+e.offsetHeight;return a>=r}},R=function(e){if(e){if(k(e))return!0;var l=e.scrollLeft;return l<=0}},H=function(e){if(e){if(k(e))return!0;var l=e.scrollLeft,r=e.scrollWidth,a=l+e.offsetWidth;return a>=r}},fe=function(e){var l='textarea, [contenteditable="true"]';return j(e,l)},de=function(e){var l='input[type="range"]';return j(e,l)};o.d(s,"disablePageScroll",function(){return A}),o.d(s,"enablePageScroll",function(){return O}),o.d(s,"getScrollState",function(){return m}),o.d(s,"clearQueueScrollLocks",function(){return x}),o.d(s,"getTargetScrollBarWidth",function(){return y}),o.d(s,"getCurrentTargetScrollBarWidth",function(){return E}),o.d(s,"getPageScrollBarWidth",function(){return D}),o.d(s,"getCurrentPageScrollBarWidth",function(){return I}),o.d(s,"addScrollableTarget",function(){return F}),o.d(s,"removeScrollableTarget",function(){return K}),o.d(s,"addScrollableSelector",function(){return X}),o.d(s,"removeScrollableSelector",function(){return Z}),o.d(s,"addLockableTarget",function(){return q}),o.d(s,"addLockableSelector",function(){return $}),o.d(s,"setFillGapMethod",function(){return _}),o.d(s,"addFillGapTarget",function(){return Q}),o.d(s,"removeFillGapTarget",function(){return ee}),o.d(s,"addFillGapSelector",function(){return w}),o.d(s,"removeFillGapSelector",function(){return le}),o.d(s,"refillGaps",function(){return P});function ve(t){for(var e=1;e0&&c.queue--,c.queue<=0&&(c.scroll=!0,he(),ye()),K(e)},m=function(){return c.scroll},x=function(){c.queue=0},y=function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i(e)){var r=e.style.overflowY;l?m()||(e.style.overflowY=e.getAttribute("data-scroll-lock-saved-overflow-y-property")):e.style.overflowY="scroll";var a=E(e);return e.style.overflowY=r,a}else return 0},E=function(e){if(i(e))if(e===document.body){var l=document.documentElement.clientWidth,r=window.innerWidth,a=r-l;return a}else{var g=e.style.borderLeftWidth,p=e.style.borderRightWidth;e.style.borderLeftWidth="0px",e.style.borderRightWidth="0px";var S=e.offsetWidth-e.clientWidth;return e.style.borderLeftWidth=g,e.style.borderRightWidth=p,S}else return 0},D=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return y(document.body,e)},I=function(){return E(document.body)},F=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?a.setAttribute("data-scroll-lock-scrollable",""):u('"'.concat(a,'" is not a Element.'))})})}},K=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?a.removeAttribute("data-scroll-lock-scrollable"):u('"'.concat(a,'" is not a Element.'))})})}},X=function(e){if(e){var l=n(e);l.map(function(r){c.scrollableSelectors.push(r)})}},Z=function(e){if(e){var l=n(e);l.map(function(r){c.scrollableSelectors=c.scrollableSelectors.filter(function(a){return a!==r})})}},q=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?a.setAttribute("data-scroll-lock-lockable",""):u('"'.concat(a,'" is not a Element.'))})}),m()||z()}},$=function(e){if(e){var l=n(e);l.map(function(r){c.lockableSelectors.push(r)}),m()||z(),w(e)}},_=function(e){if(e)if(U.indexOf(e)!==-1)c.fillGapMethod=e,P();else{var l=U.join(", ");u('"'.concat(e,`" method is not available! -Available fill gap methods: `).concat(l,"."))}},Q=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?(a.setAttribute("data-scroll-lock-fill-gap",""),c.scroll||oe(a)):u('"'.concat(a,'" is not a Element.'))})})}},ee=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?(a.removeAttribute("data-scroll-lock-fill-gap"),c.scroll||V(a)):u('"'.concat(a,'" is not a Element.'))})})}},w=function(e){if(e){var l=n(e);l.map(function(r){c.fillGapSelectors.indexOf(r)===-1&&(c.fillGapSelectors.push(r),c.scroll||re(r))})}},le=function(e){if(e){var l=n(e);l.map(function(r){c.fillGapSelectors=c.fillGapSelectors.filter(function(a){return a!==r}),c.scroll||ne(r)})}},P=function(){c.scroll||te()},z=function(){var e=L(c.lockableSelectors);Se(e)},he=function(){var e=L(c.lockableSelectors);me(e)},Se=function(e){var l=document.querySelectorAll(e);d(l,function(r){pe(r)})},me=function(e){var l=document.querySelectorAll(e);d(l,function(r){be(r)})},pe=function(e){if(i(e)&&e.getAttribute("data-scroll-lock-locked")!=="true"){var l=window.getComputedStyle(e);e.setAttribute("data-scroll-lock-saved-overflow-y-property",l.overflowY),e.setAttribute("data-scroll-lock-saved-inline-overflow-property",e.style.overflow),e.setAttribute("data-scroll-lock-saved-inline-overflow-y-property",e.style.overflowY),e.style.overflow="hidden",e.setAttribute("data-scroll-lock-locked","true")}},be=function(e){i(e)&&e.getAttribute("data-scroll-lock-locked")==="true"&&(e.style.overflow=e.getAttribute("data-scroll-lock-saved-inline-overflow-property"),e.style.overflowY=e.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"),e.removeAttribute("data-scroll-lock-saved-overflow-property"),e.removeAttribute("data-scroll-lock-saved-inline-overflow-property"),e.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"),e.removeAttribute("data-scroll-lock-locked"))},te=function(){c.fillGapSelectors.map(function(e){re(e)})},ye=function(){c.fillGapSelectors.map(function(e){ne(e)})},re=function(e){var l=document.querySelectorAll(e),r=c.lockableSelectors.indexOf(e)!==-1;d(l,function(a){oe(a,r)})},oe=function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i(e)){var r;if(e.getAttribute("data-scroll-lock-lockable")===""||l)r=y(e,!0);else{var a=N(e,L(c.lockableSelectors));r=y(a,!0)}e.getAttribute("data-scroll-lock-filled-gap")==="true"&&V(e);var g=window.getComputedStyle(e);if(e.setAttribute("data-scroll-lock-filled-gap","true"),e.setAttribute("data-scroll-lock-current-fill-gap-method",c.fillGapMethod),c.fillGapMethod==="margin"){var p=parseFloat(g.marginRight);e.style.marginRight="".concat(p+r,"px")}else if(c.fillGapMethod==="width")e.style.width="calc(100% - ".concat(r,"px)");else if(c.fillGapMethod==="max-width")e.style.maxWidth="calc(100% - ".concat(r,"px)");else if(c.fillGapMethod==="padding"){var S=parseFloat(g.paddingRight);e.style.paddingRight="".concat(S+r,"px")}}},ne=function(e){var l=document.querySelectorAll(e);d(l,function(r){V(r)})},V=function(e){if(i(e)&&e.getAttribute("data-scroll-lock-filled-gap")==="true"){var l=e.getAttribute("data-scroll-lock-current-fill-gap-method");e.removeAttribute("data-scroll-lock-filled-gap"),e.removeAttribute("data-scroll-lock-current-fill-gap-method"),l==="margin"?e.style.marginRight="":l==="width"?e.style.width="":l==="max-width"?e.style.maxWidth="":l==="padding"&&(e.style.paddingRight="")}},Te=function(e){P()},Le=function(e){c.scroll||(c.startTouchY=e.touches[0].clientY,c.startTouchX=e.touches[0].clientX)},ke=function(e){if(!c.scroll){var l=c.startTouchY,r=c.startTouchX,a=e.touches[0].clientY,g=e.touches[0].clientX;if(e.touches.length<2){var p=L(c.scrollableSelectors),S={up:la,left:rg},W={up:l+Ga,left:r+Gg},Ee=function ae(f){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(f){var J=N(f,p,!1);if(de(f))return!1;if(Fe||fe(f)&&N(f,p)||j(f,p)){var M=!1;R(f)&&H(f)?(S.up&&Y(f)||S.down&&C(f))&&(M=!0):Y(f)&&C(f)?(S.left&&R(f)||S.right&&H(f))&&(M=!0):(W.up&&Y(f)||W.down&&C(f)||W.left&&R(f)||W.right&&H(f))&&(M=!0),M&&(J?ae(J,!0):e.cancelable&&e.preventDefault())}else ae(J)}else e.cancelable&&e.preventDefault()};Ee(e.target)}}},Ge=function(e){c.scroll||(c.startTouchY=0,c.startTouchX=0)};typeof window<"u"&&window.addEventListener("resize",Te),typeof document<"u"&&(document.addEventListener("touchstart",Le),document.addEventListener("touchmove",ke,{passive:!1}),document.addEventListener("touchend",Ge));var Ae={hide:function(e){u(`"hide" is deprecated! Use "disablePageScroll" instead. +(function(){const T=document.createElement("link").relList;if(T&&T.supports&&T.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function b(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function s(o){if(o.ep)return;o.ep=!0;const n=b(o);fetch(o.href,n)}})();var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fe={exports:{}};(function(h,T){(function(s,o){h.exports=o()})(Pe,function(){return function(b){var s={};function o(n){if(s[n])return s[n].exports;var i=s[n]={i:n,l:!1,exports:{}};return b[n].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=b,o.c=s,o.d=function(n,i,v){o.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:v})},o.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,i){if(i&1&&(n=o(n)),i&8||i&4&&typeof n=="object"&&n&&n.__esModule)return n;var v=Object.create(null);if(o.r(v),Object.defineProperty(v,"default",{enumerable:!0,value:n}),i&2&&typeof n!="string")for(var d in n)o.d(v,d,(function(u){return n[u]}).bind(null,d));return v},o.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(i,"a",i),i},o.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},o.p="",o(o.s=0)}([function(b,s,o){o.r(s);var n=function(e){return Array.isArray(e)?e:[e]},i=function(e){return e instanceof Node},v=function(e){return e instanceof NodeList},d=function(e,l){if(e&&l){e=v(e)?e:[e];for(var r=0;r2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:document;if(r&&B(a.querySelectorAll(l)).indexOf(e)!==-1)return e;for(;(e=e.parentElement)&&B(a.querySelectorAll(l)).indexOf(e)===-1;);return e},j=function(e,l){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document,a=B(r.querySelectorAll(l)).indexOf(e)!==-1;return a},L=function(e){if(e){var l=getComputedStyle(e),r=l.overflow==="hidden";return r}},Y=function(e){if(e){if(L(e))return!0;var l=e.scrollTop;return l<=0}},C=function(e){if(e){if(L(e))return!0;var l=e.scrollTop,r=e.scrollHeight,a=l+e.offsetHeight;return a>=r}},R=function(e){if(e){if(L(e))return!0;var l=e.scrollLeft;return l<=0}},H=function(e){if(e){if(L(e))return!0;var l=e.scrollLeft,r=e.scrollWidth,a=l+e.offsetWidth;return a>=r}},de=function(e){var l='textarea, [contenteditable="true"]';return j(e,l)},ve=function(e){var l='input[type="range"]';return j(e,l)};o.d(s,"disablePageScroll",function(){return A}),o.d(s,"enablePageScroll",function(){return O}),o.d(s,"getScrollState",function(){return p}),o.d(s,"clearQueueScrollLocks",function(){return x}),o.d(s,"getTargetScrollBarWidth",function(){return y}),o.d(s,"getCurrentTargetScrollBarWidth",function(){return E}),o.d(s,"getPageScrollBarWidth",function(){return D}),o.d(s,"getCurrentPageScrollBarWidth",function(){return I}),o.d(s,"addScrollableTarget",function(){return F}),o.d(s,"removeScrollableTarget",function(){return K}),o.d(s,"addScrollableSelector",function(){return X}),o.d(s,"removeScrollableSelector",function(){return Z}),o.d(s,"addLockableTarget",function(){return $}),o.d(s,"addLockableSelector",function(){return _}),o.d(s,"setFillGapMethod",function(){return ee}),o.d(s,"addFillGapTarget",function(){return Q}),o.d(s,"removeFillGapTarget",function(){return le}),o.d(s,"addFillGapSelector",function(){return w}),o.d(s,"removeFillGapSelector",function(){return te}),o.d(s,"refillGaps",function(){return P});function ge(t){for(var e=1;e0&&c.queue--,c.queue<=0&&(c.scroll=!0,Se(),Te()),K(e)},p=function(){return c.scroll},x=function(){c.queue=0},y=function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i(e)){var r=e.style.overflowY;l?p()||(e.style.overflowY=e.getAttribute("data-scroll-lock-saved-overflow-y-property")):e.style.overflowY="scroll";var a=E(e);return e.style.overflowY=r,a}else return 0},E=function(e){if(i(e))if(e===document.body){var l=document.documentElement.clientWidth,r=window.innerWidth,a=r-l;return a}else{var g=e.style.borderLeftWidth,m=e.style.borderRightWidth;e.style.borderLeftWidth="0px",e.style.borderRightWidth="0px";var S=e.offsetWidth-e.clientWidth;return e.style.borderLeftWidth=g,e.style.borderRightWidth=m,S}else return 0},D=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return y(document.body,e)},I=function(){return E(document.body)},F=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?a.setAttribute("data-scroll-lock-scrollable",""):u('"'.concat(a,'" is not a Element.'))})})}},K=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?a.removeAttribute("data-scroll-lock-scrollable"):u('"'.concat(a,'" is not a Element.'))})})}},X=function(e){if(e){var l=n(e);l.map(function(r){c.scrollableSelectors.push(r)})}},Z=function(e){if(e){var l=n(e);l.map(function(r){c.scrollableSelectors=c.scrollableSelectors.filter(function(a){return a!==r})})}},$=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?a.setAttribute("data-scroll-lock-lockable",""):u('"'.concat(a,'" is not a Element.'))})}),p()||z()}},_=function(e){if(e){var l=n(e);l.map(function(r){c.lockableSelectors.push(r)}),p()||z(),w(e)}},ee=function(e){if(e)if(U.indexOf(e)!==-1)c.fillGapMethod=e,P();else{var l=U.join(", ");u('"'.concat(e,`" method is not available! +Available fill gap methods: `).concat(l,"."))}},Q=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?(a.setAttribute("data-scroll-lock-fill-gap",""),c.scroll||ne(a)):u('"'.concat(a,'" is not a Element.'))})})}},le=function(e){if(e){var l=n(e);l.map(function(r){d(r,function(a){i(a)?(a.removeAttribute("data-scroll-lock-fill-gap"),c.scroll||V(a)):u('"'.concat(a,'" is not a Element.'))})})}},w=function(e){if(e){var l=n(e);l.map(function(r){c.fillGapSelectors.indexOf(r)===-1&&(c.fillGapSelectors.push(r),c.scroll||oe(r))})}},te=function(e){if(e){var l=n(e);l.map(function(r){c.fillGapSelectors=c.fillGapSelectors.filter(function(a){return a!==r}),c.scroll||ae(r)})}},P=function(){c.scroll||re()},z=function(){var e=k(c.lockableSelectors);pe(e)},Se=function(){var e=k(c.lockableSelectors);me(e)},pe=function(e){var l=document.querySelectorAll(e);d(l,function(r){be(r)})},me=function(e){var l=document.querySelectorAll(e);d(l,function(r){ye(r)})},be=function(e){if(i(e)&&e.getAttribute("data-scroll-lock-locked")!=="true"){var l=window.getComputedStyle(e);e.setAttribute("data-scroll-lock-saved-overflow-y-property",l.overflowY),e.setAttribute("data-scroll-lock-saved-inline-overflow-property",e.style.overflow),e.setAttribute("data-scroll-lock-saved-inline-overflow-y-property",e.style.overflowY),e.style.overflow="hidden",e.setAttribute("data-scroll-lock-locked","true")}},ye=function(e){i(e)&&e.getAttribute("data-scroll-lock-locked")==="true"&&(e.style.overflow=e.getAttribute("data-scroll-lock-saved-inline-overflow-property"),e.style.overflowY=e.getAttribute("data-scroll-lock-saved-inline-overflow-y-property"),e.removeAttribute("data-scroll-lock-saved-overflow-property"),e.removeAttribute("data-scroll-lock-saved-inline-overflow-property"),e.removeAttribute("data-scroll-lock-saved-inline-overflow-y-property"),e.removeAttribute("data-scroll-lock-locked"))},re=function(){c.fillGapSelectors.map(function(e){oe(e)})},Te=function(){c.fillGapSelectors.map(function(e){ae(e)})},oe=function(e){var l=document.querySelectorAll(e),r=c.lockableSelectors.indexOf(e)!==-1;d(l,function(a){ne(a,r)})},ne=function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i(e)){var r;if(e.getAttribute("data-scroll-lock-lockable")===""||l)r=y(e,!0);else{var a=N(e,k(c.lockableSelectors));r=y(a,!0)}e.getAttribute("data-scroll-lock-filled-gap")==="true"&&V(e);var g=window.getComputedStyle(e);if(e.setAttribute("data-scroll-lock-filled-gap","true"),e.setAttribute("data-scroll-lock-current-fill-gap-method",c.fillGapMethod),c.fillGapMethod==="margin"){var m=parseFloat(g.marginRight);e.style.marginRight="".concat(m+r,"px")}else if(c.fillGapMethod==="width")e.style.width="calc(100% - ".concat(r,"px)");else if(c.fillGapMethod==="max-width")e.style.maxWidth="calc(100% - ".concat(r,"px)");else if(c.fillGapMethod==="padding"){var S=parseFloat(g.paddingRight);e.style.paddingRight="".concat(S+r,"px")}}},ae=function(e){var l=document.querySelectorAll(e);d(l,function(r){V(r)})},V=function(e){if(i(e)&&e.getAttribute("data-scroll-lock-filled-gap")==="true"){var l=e.getAttribute("data-scroll-lock-current-fill-gap-method");e.removeAttribute("data-scroll-lock-filled-gap"),e.removeAttribute("data-scroll-lock-current-fill-gap-method"),l==="margin"?e.style.marginRight="":l==="width"?e.style.width="":l==="max-width"?e.style.maxWidth="":l==="padding"&&(e.style.paddingRight="")}},ke=function(e){P()},Le=function(e){c.scroll||(c.startTouchY=e.touches[0].clientY,c.startTouchX=e.touches[0].clientX)},Ge=function(e){if(!c.scroll){var l=c.startTouchY,r=c.startTouchX,a=e.touches[0].clientY,g=e.touches[0].clientX;if(e.touches.length<2){var m=k(c.scrollableSelectors),S={up:la,left:rg},W={up:l+Ga,left:r+Gg},Fe=function ce(f){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(f){var q=N(f,m,!1);if(ve(f))return!1;if(we||de(f)&&N(f,m)||j(f,m)){var M=!1;R(f)&&H(f)?(S.up&&Y(f)||S.down&&C(f))&&(M=!0):Y(f)&&C(f)?(S.left&&R(f)||S.right&&H(f))&&(M=!0):(W.up&&Y(f)||W.down&&C(f)||W.left&&R(f)||W.right&&H(f))&&(M=!0),M&&(q?ce(q,!0):e.cancelable&&e.preventDefault())}else ce(q)}else e.cancelable&&e.preventDefault()};Fe(e.target)}}},Ae=function(e){c.scroll||(c.startTouchY=0,c.startTouchX=0)};typeof window<"u"&&window.addEventListener("resize",ke),typeof document<"u"&&(document.addEventListener("touchstart",Le),document.addEventListener("touchmove",Ge,{passive:!1}),document.addEventListener("touchend",Ae));var Oe={hide:function(e){u(`"hide" is deprecated! Use "disablePageScroll" instead. https://github.com/FL3NKEY/scroll-lock#disablepagescrollscrollabletarget`),A(e)},show:function(e){u(`"show" is deprecated! Use "enablePageScroll" instead. - https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget`),O(e)},toggle:function(e){u('"toggle" is deprecated! Do not use it.'),m()?A():O(e)},getState:function(){return u(`"getState" is deprecated! Use "getScrollState" instead. - https://github.com/FL3NKEY/scroll-lock#getscrollstate`),m()},getWidth:function(){return u(`"getWidth" is deprecated! Use "getPageScrollBarWidth" instead. + https://github.com/FL3NKEY/scroll-lock#enablepagescrollscrollabletarget`),O(e)},toggle:function(e){u('"toggle" is deprecated! Do not use it.'),p()?A():O(e)},getState:function(){return u(`"getState" is deprecated! Use "getScrollState" instead. + https://github.com/FL3NKEY/scroll-lock#getscrollstate`),p()},getWidth:function(){return u(`"getWidth" is deprecated! Use "getPageScrollBarWidth" instead. https://github.com/FL3NKEY/scroll-lock#getpagescrollbarwidth`),D()},getCurrentWidth:function(){return u(`"getCurrentWidth" is deprecated! Use "getCurrentPageScrollBarWidth" instead. https://github.com/FL3NKEY/scroll-lock#getcurrentpagescrollbarwidth`),I()},setScrollableTargets:function(e){u(`"setScrollableTargets" is deprecated! Use "addScrollableTarget" instead. https://github.com/FL3NKEY/scroll-lock#addscrollabletargetscrollabletarget`),F(e)},setFillGapSelectors:function(e){u(`"setFillGapSelectors" is deprecated! Use "addFillGapSelector" instead. https://github.com/FL3NKEY/scroll-lock#addfillgapselectorfillgapselector`),w(e)},setFillGapTargets:function(e){u(`"setFillGapTargets" is deprecated! Use "addFillGapTarget" instead. https://github.com/FL3NKEY/scroll-lock#addfillgaptargetfillgaptarget`),Q(e)},clearQueue:function(){u(`"clearQueue" is deprecated! Use "clearQueueScrollLocks" instead. - https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks`),x()}},Oe=ve({disablePageScroll:A,enablePageScroll:O,getScrollState:m,clearQueueScrollLocks:x,getTargetScrollBarWidth:y,getCurrentTargetScrollBarWidth:E,getPageScrollBarWidth:D,getCurrentPageScrollBarWidth:I,addScrollableSelector:X,removeScrollableSelector:Z,addScrollableTarget:F,removeScrollableTarget:K,addLockableSelector:$,addLockableTarget:q,addFillGapSelector:w,removeFillGapSelector:le,addFillGapTarget:Q,removeFillGapTarget:ee,setFillGapMethod:_,refillGaps:P,_state:c},Ae);s.default=Oe}]).default})})(ue);var ce=ue.exports;const ie=document.querySelector(".js-header-burger-icon"),se=document.querySelector("#js-header-modal");document.addEventListener("click",Pe);function Pe(h){if(h.target.classList.contains("js-header-burger-icon")||h.target.tagName==="use"||h.target.classList.contains(".header-burger-btn"))se.showModal(),ce.disablePageScroll(),ie.firstElementChild.outerHTML='';else{if(h.target.classList.contains("header-modal-container")||h.target.classList.contains("header-modal-nav-list"))return;se.close(),ce.enablePageScroll(),ie.firstElementChild.outerHTML=''}} + https://github.com/FL3NKEY/scroll-lock#clearqueuescrolllocks`),x()}},Ee=ge({disablePageScroll:A,enablePageScroll:O,getScrollState:p,clearQueueScrollLocks:x,getTargetScrollBarWidth:y,getCurrentTargetScrollBarWidth:E,getPageScrollBarWidth:D,getCurrentPageScrollBarWidth:I,addScrollableSelector:X,removeScrollableSelector:Z,addScrollableTarget:F,removeScrollableTarget:K,addLockableSelector:_,addLockableTarget:$,addFillGapSelector:w,removeFillGapSelector:te,addFillGapTarget:Q,removeFillGapTarget:le,setFillGapMethod:ee,refillGaps:P,_state:c},Oe);s.default=Ee}]).default})})(fe);var ie=fe.exports;const se=document.querySelector(".js-header-burger-icon"),ue=document.querySelector("#js-header-modal"),J=document.querySelector(".js-header-icon-close");document.addEventListener("click",We);J.style.display="none";function We(h){if(h.target.classList.contains("js-header-burger-icon")||h.target.tagName==="use"||h.target.classList.contains(".header-burger-btn"))ue.showModal(),ie.disablePageScroll(),se.style.display="none",J.style.display="block";else{if(h.target.classList.contains("header-modal-container")||h.target.classList.contains("header-modal-nav-list"))return;ue.close(),ie.enablePageScroll(),se.style.display="block",J.style.display="none"}} diff --git a/icon-close.svg b/icon-close.svg deleted file mode 100644 index 3facc61..0000000 --- a/icon-close.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/index.html b/index.html index 4c71022..5087282 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ VeggieBoost - + @@ -76,6 +76,29 @@ + + + +