/** * Minified by jsDelivr using Terser v5.3.0. * Original file: /npm/vue-scrollto@2.19.1/vue-scrollto.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ /*! * vue-scrollto v2.19.1 * (c) 2019 Randjelovic Igor * @license MIT */ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self)["vue-scrollto"]=n()}(this,(function(){"use strict";function e(n){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(n)}function n(){return(n=Object.assign||function(e){for(var n=1;n=.001?function(e,n,t,o){for(var r=0;r<4;++r){var i=f(n,t,o);if(0===i)return n;n-=(a(n,t,o)-e)/i}return n}(n,l,e,r):0===c?l:function(e,n,t,o,r){var i,u,f=0;do{(i=a(u=n+(t-n)/2,o,r)-e)>0?t=u:n=u}while(Math.abs(i)>1e-7&&++f<10);return u}(n,o,o+t,e,r)}return function(e){return 0===e?0:1===e?1:a(s(e),n,i)}},s={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},d=!1;try{var p=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("test",null,p)}catch(e){}var v=function(e){return"string"!=typeof e?e:document.querySelector(e)},y=function(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!1};n instanceof Array||(n=[n]);for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if("object"===e(D)?V=D:"number"==typeof D&&(V.duration=D),!(n=v(m)))return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+m);t=v(V.container||g.container),o=V.hasOwnProperty("duration")?V.duration:g.duration,r=V.easing||g.easing,i=V.hasOwnProperty("offset")?V.offset:g.offset,u=V.hasOwnProperty("force")?!1!==V.force:g.force,a=V.hasOwnProperty("cancelable")?!1!==V.cancelable:g.cancelable,f=V.onStart||g.onStart,l=V.onDone||g.onDone,d=V.onCancel||g.onCancel,p=void 0===V.x?g.x:V.x,h=void 0===V.y?g.y:V.y;var j=b(t),k=b(n);if("function"==typeof i&&(i=i(n,t)),L=F(t),E=k.top-j.top+i,T=H(t),S=k.left-j.left+i,x=!1,P=E-L,O=S-T,!u){var q="body"===t.tagName.toLowerCase()?document.documentElement.clientHeight||window.innerHeight:t.offsetHeight,z=L,$=z+q,B=E-i,G=B+n.offsetHeight;if(B>=z&&G<=$)return void(l&&l(n))}if(f&&f(n),P||O)return"string"==typeof r&&(r=s[r]||s.ease),C=c.apply(c,r),y(t,w,M,{passive:!0}),window.requestAnimationFrame(N),function(){A=null,x=!0};l&&l(n)}},S=T(),L=[];function E(e){var n=function(e){for(var n=0;n