D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
grandhou
/
www
/
js-lightbox
/
Filename :
valde.min.js
back
Copy
"use strict";!function(t,e){"function"==typeof define&&define.amd?define(e):"undefined"!=typeof exports?module.exports=e():t.v=e()}(this,function(){document;var t,e=window,n=[],r=null,i=Array.prototype,u=i.slice,o=i.filter,s=i.push,a=Object.prototype.hasOwnProperty,c=function(){},l=function(t){return"function"==typeof t&&t.call},f={isFunction:function(t){return"function"==typeof t},isString:function(t){return"string"==typeof t},isNode:function(t){return!(!t||!t.nodeType||1!=t.nodeType)},isArray:function(t){return Array.isArray(t)},inArray:function(t,e){return f.includes(t,e)},isArrayLike:function(t){return t&&t.length&&isFinite(t.length)},toArray:function(t){if(!t)return[];if(f.isArray(t))return t;if(f.isObject(t)){var e=[];return w(t,function(t){e.push(t)}),e}return t.toArray?t.toArray():f.args(t)?u.call(t):f.map(t,function(t){return t})},isNumber:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},isBool:function(t){return!0===t||!1===t},args:function(t){return!(!t||!a.call(t,"callee"))},isEmpty:function(t){var e=0;return f.isArray(t)?0===t.length:f.isObject(t)?function(){for(var n in t){e++;break}return 0===e}():""===t},isDate:function(t){return!!(t&&t.getTimezoneOffset&&t.setUTCFullYear)},isRegExp:function(t){return!(!(t&&t.test&&t.exec)||!t.ignoreCase&&!1!==t.ignoreCase)},isNaN:function(t){return t!=t},isNil:function(t){return t==r},isNull:function(t){return null===t},isUndefined:function(t){return void 0===t},isDefined:function(t){return void 0!==t},isObject:function(t){return"object"===typeof t&&null!=t&&!f.isFunction(t)&&!f.isArray(t)},toInteger:function(t){var e=toFinite(t),n=e%1;return e==e?n?e-n:e:0},toString:function(t){return Object.prototype.toString.call(t)},size:function(t){if(f.isObject(t)){if(f.isFunction(Object.keys)){var e=Object.keys(t);return f.includes(e,"length")&&0==t.length?0:Object.keys(t).length}var n=0;return w(t,function(e,r){f.has(t,r)&&n++}),n}return t.length},startsWith:function(t,e){if(f.isArray(e)){var n=!1;return w(e,function(e){if(f.startsWith(t,e))return n=!0,!1}),n}return t.startsWith?t.startsWith(e):t.substring(0,e.length)==e},endsWith:function(t,e){if(f.isArray(e)){var n=!1;return w(e,function(e){if(f.endsWith(t,e))return n=!0,!1}),n}return t.endsWith?t.endsWith(e):-1!==t.indexOf(e,t.length-e.length)},includes:function(t,e){if(f.isString(t))return t.includes?t.includes(e):-1!=t.indexOf(e);if(f.isObject(t)&&(t=f.values(t)),f.isArrayLike(t)){var n=!1;return w(t,function(t){if(t===e)return n=!0,!1}),n}},currentScroll:function(){return window.pageYOffset||document.documentElement.scrollTop},has:function(t,e){var n,r;return f.isArray(e)?(w(e,function(e){if(r||(r=t),!(n=f.has(r,e)))return n=!1,!1;r=r[e]}),n):f.isObject(t)&&hasOwnProperty.call(t,e)},get:function(t,e,n){var r,i;return f.isArray(e)?(w(e,function(e){if(i?(r=f.get(i,e),i=r):(r=f.get(t,e),i=r),null==r)return!1}),!f.isUndefined(n)&&f.isNil(r)?n:r):f.has(t,e)?t[e]:f.isUndefined(n)?void 0:n},set:function(t,e,n){if(f.isArray(e)){var r,i,u=f.size(e);return w(e,function(e,o){i||(i=t),(o+=1)===u?i[e]=n:((r=f.get(i,e))||(r={}),i=r)}),t}return f.isObject(t)&&(t[e]=n),t},keys:function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)f.has(t,n)&&e.push(n);return e},values:function(t){var e=[];return w(t,function(t){e.push(t)}),e},map:function(t,e,r){return n.map.call(t,e,r)},every:function(t,e,n){if(f.isArrayLike(t))return t.every(e,n);for(var r in t)if(!a.call(t,r)||!e.call(n,r,t[r],t))return!1;return!0},some:function(t,e,n){if(f.isArrayLike(t))return t.some(e,n);for(var r in t)if(a.call(t,r)&&e.call(n,r,t[r],t))return!0;return!1},filter:function(t,e,n){var r,i={};if(f.isArrayLike(t))return t.filter(e,n);for(r in t)a.call(t,r)&&e.call(n,r,t[r],t)&&(i[r]=t[r]);return i},sortBy:function(t,e,n){return t=x(t),f.isObject(t)&&(t=f.toArray(t)),t.sort(function(t,n){var r=f.get(t,e),i=f.get(n,e);return f.isString(r)&&f.isNumber(r)&&(r=parseFloat(r)),f.isString(i)&&f.isNumber(i)&&(i=parseFloat(i)),r===i?0:r>i?1:-1})},sortByKeys:function(t,e){t=x(t);var n=f.keys(t);if(f.size(n)>0){var r=n.sort();return e&&(r=r.reverse()),r.reduce(function(e,n){return e[n]=t[n],e},{})}return t},last:function(t){return t[t.length-1]},clone:function(t){return f.isString(t)?t:f.isArray(t)?f.map(t,function(t){return t}):f.isObject(t)?Object.assign({},t):t},cloneValue:function(t){return x(t)},hasClass:function(t,e,n){if(n=n||!1,f.isNil(t))return null;if(t.v)return t.hasClass(e,n);f.isString(e)&&f.includes(e," ")&&(e=e.trim().split(" "));var r=!1;return f.isArray(e)?(r=!0,r=!n,w(e,function(e){var i=P(t,e);if(n){if(i)return r=!0,!1}else if(!i)return r=!1,!1})):r=P(t,e),r},debounce:function(t,e,n){var r;function i(){var i=arguments,u=n||this;clearTimeout(r),r=setTimeout(function(){r=null,e.apply(u,i)},t)}return i.cancel=function(){clearTimeout(r),r=null},i},throttle:function(t,e,n,r){var i,u=r;return function(){var o=n||this,s=arguments;if(r)return e.apply(o,s),void(r=!1);i||(i=setTimeout(function(){e.apply(o,s),i=null,r=u},t))}},throttleDebounce:function(t,e,n,r){var i,u,o,s;function a(){i=arguments,u=r||this,clearTimeout(o),o=setTimeout(function(){clearTimeout(s),s=null,n.apply(u,i)},e),s||(s=setTimeout(function(){clearTimeout(o),s=null,n.apply(u,i)},t))}return a.cancel=function(){clearTimeout(o),clearTimeout(s),s=null},a},queue:function(t){return new h(f.isArrayLike(t)?t:f.toArray(arguments))},parallel:function(t,e){var n=f.toArray(arguments),i=0,u=[],o=[];if(f.isArray(t)&&0===t.length||f.isFunction(t)&&1===n.length)throw new TypeError("Empty parallel array");f.isArray(t)||(e=n.pop(),t=n),w(t,function(n,s){n(function(){var n=f.toArray(arguments),a=n.shift();if(a)return e(a);u[s]=n,t.length==++i&&(u.unshift(r),w(u,function(t){o=o.concat(t)}),e.apply(r,o))})})},waterfall:function(t,e){var n=f.toArray(arguments);if(f.isArray(t)&&0===t.length||f.isFunction(t)&&1===n.length)throw new TypeError("Empty waterfall array");f.isArray(t)||(e=n.pop(),t=n),function n(){var i=f.toArray(arguments);i.length||i.push(null),i.push(n);var u=i.shift();!u&&t.length?t.shift().apply(r,i):(i.pop(),i.unshift(u),e.apply(r,i))}(r)},series:function(t,e){f.waterfall(t.map(function(t){return function(e){t(function(t){e(t)})}}),e)}};function h(t){this.values=t,this.index=0}h.prototype.next=function(){return this.index<this.values.length&&this.values[this.index++](),this};var d=/^#[\w-]*$/,v=/^\.[\w-]*$/,p=/<.+>/,m=/^\w+$/;function y(t,e){return e=e||document,v.test(t)&&e.getElementsByClassName?e.getElementsByClassName(t.slice(1)):m.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t)}function g(e){if(!t){var n=(t=document.implementation.createHTMLDocument("")).createElement("base");n.href=document.location.href,t.head.appendChild(n)}return t.body.innerHTML=e,t.body.childNodes}function b(t){"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t)}function E(t,n){if(!t)return this;if(t.v&&t!==e)return t;var r,i=t,u=0;if(f.isString(t)&&""!==t)i=d.test(t)?document.getElementById(t.slice(1)):p.test(t)?g(t):y(t,n);else if(l(t))return b(t),this;if(!i)return this;if(i.nodeType||i===e)this[0]=i,this.length=1;else for(r=this.length=i.length;u<r;u++)this[u]=i[u];return this}function N(t,e){return new E(t,e)}var A=N.fn=N.prototype=E.prototype={v:!0,length:0,push:s,splice:i.splice,map:C,init:E};function w(t,e){if(f.isArrayLike(t)){if(0==f.size(t))return;for(var n=t.length,r=0;r<n&&!1!==e.call(t[r],t[r],r,t);r++);}else if(f.isObject(t)){if(0==f.size(t))return;for(var i in t)if(f.has(t,i)&&!1===e.call(t[i],t[i],i,t))break}}function T(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function S(t){return f.isString(t)?T:t.v?function(e){return t.is(e)}:function(t,e){return t===e}}function L(t){return N(u.call(t).filter(function(t,e,n){return n.indexOf(t)===e}))}function C(t,e,n){return f.isFunction(t)&&(e=t,t=this),f.isArrayLike(t)?f.map(t,e,n):f.isObject(t)?f.map(f.keys(t),function(n){return e.call(this,f.cloneValue(t[n]),n,t)},n):void 0}function x(t){switch(typeof t){case"object":return null==t?t:t instanceof Date?((e=new Date).setTime(t.getTime()),e):t instanceof RegExp?e=M(t):(O(t,e=JSON.parse(JSON.stringify(t))),e);var e;default:return t}}function k(t,e,n){var r=t[n];switch(typeof r){case"object":if(r instanceof Date){var i=new Date;i.setTime(r.getTime()),e[n]=i}else r instanceof RegExp?e[n]=M(r):null==r?e[n]=r:O(r,e[n]);break;case"number":isNaN(r)?e[n]=NaN:r==1/0&&(e[n]=1/0)}}function O(t,e){if(t instanceof Array)for(var n=0;n<t.length;n++)k(t,e,n);else Object.getOwnPropertyNames(t).forEach(function(n){k(t,e,n)})}function M(t){var e=String(t),n=e.lastIndexOf("/");return new RegExp(e.slice(1,n),e.slice(n+1))}Object.defineProperty(A,"constructor",{value:N}),N.parseHTML=g,N.noop=c,N.extend=A.extend=function(t){t=t||{};var e=u.call(arguments),n=e.length,r=1;for(1===e.length&&(t=this,r=0);r<n;r++)if(e[r])for(var i in e[r])e[r].hasOwnProperty(i)&&(t[i]=e[r][i]);return t},N.extend({merge:function(t,e){for(var n=+e.length,r=t.length,i=0;i<n;r++,i++)t[r]=e[i];return t.length=r,t},each:w,forEach:w,matches:T,unique:L,map:C,domap:C,cloneDeep:x,isArray:Array.isArray}),N.extend(f);var F=N.uid="_v"+Date.now();function H(t){return t[F]=t[F]||{}}function B(t,e,n){return H(t)[e]=n}function K(t,e){var n=H(t);return void 0===n[e]&&(n[e]=t.dataset?t.dataset[e]:N(t).attr("data-"+e)),n[e]}function I(t,e){if(!t.length)return!1;var n=H(t);n?delete n[e]:t.dataset?delete t.dataset[e]:N(t).removeAttr("data-"+name)}A.extend({data:function(t,e,n){if(void 0!==this[0]){if(void 0===e){var r=this[0];return r.hasAttribute("data-"+t)?r.getAttribute("data-"+t):K(r,t)}this.each(function(r){return n?B(r,t,e):r.setAttribute("data-"+t,e)})}},removeData:function(t){return this.each(function(e){return I(e,t)})}});var R=/\S+/g;function U(t){return f.isString(t)&&t.match(R)}function P(t,e){return!!f.isNode(t)&&(t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className))}function q(t,e,n){f.isNode(t)&&(t.classList?t.classList.add(e):n.indexOf(" "+e+" ")&&("[object SVGAnimatedString]"===t.className.toString()?t.className.baseVal+=(t.className.baseVal.length?" ":"")+e:t.className+=(t.className.length?" ":"")+e))}function z(t,e){f.isNode(t)&&(t.classList?t.classList.remove(e):t.className=t.className.replace(e,""))}A.extend({addClass:function(t){var e=U(t);return e?this.each(function(t){var n=" "+t.className+" ";w(e,function(e){q(t,e,n)})}):this},attr:function(t,e){if(t&&((n=this)&&!f.isNil(n)&&!f.isEmpty(n)&&0!==n.length)){var n;if(f.isString(t))return void 0===e?this[0]?this[0].getAttribute?this[0].getAttribute(t):this[0][t]:void 0:this.each(function(n){n.setAttribute?n.setAttribute(t,e):n[t]=e});for(var r in t)this.attr(r,t[r]);return this}},id:function(t){if(f.isString(t)){if(""!==t)return this.attr("id",t);if(""==t)return this.removeAttr("id")}return this.attr("id")},node:function(){return this.get(0)},nodeName:function(){return this.get(0).nodeName.toLowerCase()},toArray:function(){var t=[];return this.each(function(e){t.push(e)}),t},toNodeList:function(){var t;return this.attr("wrapnode","1"),t=document.querySelectorAll("*[wrapnode]"),this.removeAttr("wrapnode"),t},hasClass:function(t,e){e=e||!1;var n=!1;return this.each(function(r){if(n=f.hasClass(r,t,e))return!1}),n},prop:function(t,e){if(f.isString(t))return void 0===e?this[0][t]:this.each(function(n){n[t]=e});for(var n in t)this.prop(n,t[n]);return this},removeAttr:function(t){return this.each(function(e){e.removeAttribute?e.removeAttribute(t):delete e[t]})},removeClass:function(t){if(0===this.length)return this;if(!arguments.length)return this.attr("class","");var e=U(t);return e?this.each(function(t){w(e,function(e){z(t,e)})}):this},removeProp:function(t){return this.each(function(e){delete e[t]})},toggleClass:function(t,e){if(void 0!==e)return this[e?"addClass":"removeClass"](t);var n=U(t);return n?this.each(function(t){var e=" "+t.className+" ";w(n,function(n){P(t,n)?z(t,n):q(t,n,e)})}):this}}),A.extend({add:function(t,e){return L(N.merge(this,N(t,e)))},each:function(t){return w(this,t),this},forEach:function(t){return w(this,t),this},eq:function(t){return N(this.get(t))},filter:function(t){if(!t)return this;var e=l(t)?t:S(t);return N(o.call(this,function(n){return e(n,t)}))},first:function(){return this.eq(0)},get:function(t){return void 0===t?u.call(this):t<0?this[t+this.length]:this[t]},index:function(t){var e=t?N(t)[0]:this[0],n=t?this:N(e).parent().children();return u.call(n).indexOf(e)},last:function(){return this.eq(-1)}});var D,W,X,_,Y=(D=/(?:^\w|[A-Z]|\b\w)/g,W=/[\s-_]+/g,function(t){return t.replace(D,function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()}).replace(W,"")}),V=(X={},document,_=document.createElement("div").style,function(t){if(t=Y(t),X[t])return X[t];var e=t.charAt(0).toUpperCase()+t.slice(1);return w((t+" "+["webkit","moz","ms","o"].join(e+" ")+e).split(" "),function(e){if(e in _)return X[e]=t=X[t]=e,!1}),X[t]});function $(t,n){return parseInt(e.getComputedStyle(t[0],null)[n],10)||0}function G(t,e,n){e.call(this,n,this,t)}function J(t){var e=Array.prototype.slice.call(arguments,1);return function(){var n=Array.prototype.slice.call(arguments,0),r=Array.prototype.concat(e,n);return t.apply(this,r)}}function Z(t,e,n,r){var i=K(t,"_vEvents");if(!i||!i.length)return!1;var u=!1,o=n,s=!0;return f.isNil(r)||f.isBool(r)||(o=r,s=!1),w(i,function(t,n){var r=s?t.callback:t.id,i=t.eventName;r===o&&i==e&&(u={index:n,callback:t.callback,fncallback:t.fncallback,eventName:e})}),u}function Q(t,e){var n=K(t,"_vEvents");if(!n||!n.length)return f.isFunction(e)&&e(),!1;w(n,function(e){e&&t.removeEventListener(e.eventName,e.fncallback)}),B(t,"_vEvents",n=null),f.isFunction(e)&&e()}function tt(t,e,n,r){r=r||!1;var i=K(t,"_vEvents");if(i&&i.length){var u=Z(t,e,n,r);u&&(t.removeEventListener(e,u.fncallback),i.splice(u.index,1),B(t,"_vEvents",i))}}N.prefixedProp=V,N.camelCase=Y,A.extend({style:function(t,n){if(f.isString(t))return"hide"==t?this.style("display","none"):"show"==t?this.style("display",""):(t=V(t),f.isNil(n)&&!n?e.getComputedStyle(this[0])[t]:arguments.length>1?this.each(function(e){if(e)return e.style[t]=n}):e.getComputedStyle(this[0])[t]);for(var r in t)this.style(r,t[r]);return this},css:function(t,e){return this.style(t,e)},show:function(t){return t=t||"block",this.style("display",t)},hide:function(){return this.style("display","none")}}),w(["Width","Height"],function(t){var e=t.toLowerCase();A[e]=function(){return this[0]==window?window["inner"+t]||document.documentElement["client"+t]||document.body["client"+t]:this[0].getBoundingClientRect()[e]},A["inner"+t]=function(){return this[0]["client"+t]},A["outer"+t]=function(e){return this[0]["offset"+t]+(e?$(this,"margin"+("Width"===t?"Left":"Top"))+$(this,"margin"+("Width"===t?"Right":"Bottom")):0)}});var et={load:"HTMLEvents",unload:"HTMLEvents",abort:"HTMLEvents",error:"HTMLEvents",select:"HTMLEvents",change:"HTMLEvents",submit:"HTMLEvents",reset:"HTMLEvents",focus:"HTMLEvents",blur:"HTMLEvents",resize:"HTMLEvents",scroll:"HTMLEvents",input:"HTMLEvents",keyup:"KeyboardEvent",keydown:"KeyboardEvent",click:"MouseEvents",dblclick:"MouseEvents",mousedown:"MouseEvents",mouseup:"MouseEvents",mouseover:"MouseEvents",mousemove:"MouseEvents",mouseout:"MouseEvents",mouseenter:"MouseEvents",mouseleave:"MouseEvents",contextmenu:"MouseEvents"},nt={clientX:0,clientY:0,button:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,bubbles:!0,cancelable:!0,view:document.defaultView,key:"",location:0,modifiers:"",repeat:0,locale:""},rt={HTMLEvents:function(t,e,n,r){return n.initEvent(e,r.bubbles,r.cancelable)},KeyboardEvent:function(t,e,n,r){var i,u,o="key"in r?r.key:"",s="location"in r?r.location:0;return n.initKeyboardEvent?(!1 in r?(u=[],r.ctrlKey&&u.push("Ctrl"),r.altKey&&u.push("Alt"),r.ctrlKey&&r.altKey&&u.push("AltGraph"),r.shiftKey&&u.push("Shift"),r.metaKey&&u.push("Meta"),u=u.join(" ")):u=r.modifiers,n.initKeyboardEvent(e,r.bubbles,r.cancelable,r.view,o,s,u,r.repeat,r.locale)):(i="charCode"in r?r.charCode:o.charCodeAt(0)||0,n.initKeyEvent(e,r.bubbles,r.cancelable,r.view,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,i,o))},MouseEvents:function(t,e,n,r){var i,u,o="screenX"in r?r.screenX:r.clientX,s="screenY"in r?r.screenY:r.clientY;return i="detail"in r?r.detail:"dblclick"===e?2:1,"contextmenu"===e&&(u=u=r.button||2),n.initMouseEvent(e,r.bubbles,r.cancelable,r.view,i,o,s,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,u,t)},CustomEvent:function(t,e,n,r){return n.initCustomEvent(e,r.bubbles,r.cancelable,r.detail)}};function it(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function ut(t){if(!t)return null;var e=t.type;if(!e)return null;switch(e.toLowerCase()){case"select-one":return function(t){var e=t.selectedIndex;return e>=0?t.options[e].value:""}(t);case"select-multiple":return function(t){var e=[];return w(t.options,function(t){t.selected&&e.push(t.value)}),e.length?e:[]}(t);case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:""}}function ot(t){return"INPUT"===t.nodeName&&"radio"===t.type}function st(t){return"INPUT"===t.nodeName&&"checkbox"===t.type}function at(t){return"SELECT"===t.nodeName&&"select-multiple"===t.type}function ct(t){return t.checked}function lt(t){return Object.keys(t).filter(function(t){return!isNaN(parseInt(t,10))}).splice(-1)[0]}function ft(t){var e=lt(t);return void 0===e?0:parseInt(e,10)+1}function ht(t,e,n,r){var i=e[0];if(ot(t))return!1!==n?(r[i]=n,n):void 0;if(st(t))return!1!==n?(r[i]||(r[i]=[]),r[i].push(n)):void 0;if(at(t)){if(!1===n)return;r[i]=n}return r[i]=n,n}function dt(t,e,n,r){var i,u,o=e[0];return e.length>1?"[]"===o?(r[ft(r)]={},dt(t,e.splice(1,e.length),n,r[(i=r,u=lt(i),parseInt(u,10))])):r[o]&&f.size(r[o])>0?dt(t,e.splice(1,e.length),n,r[o]):(r[o]={},dt(t,e.splice(1,e.length),n,r[o])):1===e.length?"[]"===o?(r[ft(r)]=n,r):(ht(t,e,n,r),r):void 0}function vt(t){if(ot(t))return!!ct(t)&&t.value;if(st(t))return!!ct(t)&&t.value;if(function(t){return"INPUT"===t.nodeName&&"file"===t.type}(t))return!(!$form.enctype||"multipart/form-data"!==$form.enctype)&&(function(t){return window.FileList&&t.files instanceof window.FileList}(t)&&t.files.length>0?t.files:!(!t.value||""===t.value)&&t.value);if(function(t){return"TEXTAREA"===t.nodeName}(t))return!(!t.value||""===t.value)&&t.value;if(at(t)){if(t.options&&t.options.length>0){var e=[];return w(t.options,function(t){t.selected&&e.push(t.value)}),e}return!1}return function(t){return"BUTTON"===t.nodeName&&"submit"===t.type}(t)?t.value&&""!==t.value?t.value:!(!t.innerText||""===t.innerText)&&t.innerText:void 0!==t.value&&t.value}function pt(t,e,n){e=e||"end",f.isString(t)||n(null);var r,i=t.split(".").pop(),u=null,o=document.getElementsByTagName("head")[0],s=t.split("/").pop().trim();if((f.isNil(i)||f.size(i)>3)&&(i="js"),"js"==i&&(r=document.querySelectorAll('script[src="'+t+'"]'),(u=document.createElement("script")).setAttribute("type","text/javascript"),u.setAttribute("src",t),u.onload=function(){f.isFunction(n)&&n(null)},o.appendChild(u)),"css"==i){if((r=document.querySelectorAll('link[href^="'+t+'"]')).length||(r=document.querySelectorAll('link[href*="/'+s+'"]')),r.length>0)return n(null),!1;if((u=document.createElement("link")).setAttribute("rel","stylesheet"),u.setAttribute("type","text/css"),u.setAttribute("href",t),u.onload=function(){f.isFunction(n)&&n(null)},"end"==e&&o.appendChild(u),"start"==e){var a=o.querySelectorAll('link[rel="stylesheet"]');a.length?a[0].insertAdjacentElement("beforebegin",u):o.appendChild(u)}}}A.extend({addEventListener:function(t,e,n,r,i){if(!this.length)return!1;var u;if(!f.isString(t)){for(var o in t)this.on(o,e,t[o],r);return this}return l(e)?(f.isNil(i)&&(i=f.isBool(r)?r:n,i=f.isBool(r)?r:!!f.isBool(n)&&n),r=!!f.isString(n)&&n,n=e,e=null):(f.isBool(r)&&(i=f.isNil(i)?r:i,r=!1),f.isString(r)&&(r=r)),"ready"===t?(b(n),this):(e&&(u=n,n=function(t,n){for(var r=t.target;!T(r,e);){if(r===this||f.isNil(r))return r=!1;r=r.parentNode}r&&("mouseover"==t.type||"mouseout"==t.type?function(t,e,n){var r=t.fromElement||t.relatedTarget;for("mouseout"==t.type&&(r=t.toElement||t.relatedTarget);r&&r.parentNode&&r.parentNode!=window;){if(r.parentNode==e||r==e)return!1;r=r.parentNode}n()}(t,r,function(){J(u,t,r)()}):J(u,t,r)())}),t=t.split(" "),this.each(function(u){var o=n;i&&(o=function(){n.apply(this,arguments),w(t,function(t){tt(u,t,o,r)})}),w(t,function(t){e&&("mouseenter"==t&&(t="mouseover"),"mouseleave"==t&&(t="mouseout")),function(t,e,n,r){if(r&&Z(t,e,n,r))return!1;var i=K(t,"_vEvents")||B(t,"_vEvents",[]),u=J(G,e,n);r=!!f.isString(r)&&r,i.push({id:r,eventName:e,callback:n,fncallback:u}),t.addEventListener(e,u)}(u,t,o,r)})}))},addEvent:function(t,e,n,r,i){return this.addEventListener(t,e,n,r,i)},on:function(t,e,n,r,i){return this.addEventListener(t,e,n,r,i)},removeEventListener:function(t,e){var n=!!f.isString(e)&&e;return this.each(function(r){return tt(r,t,e,n)})},removeEvent:function(t,e){return this.removeEventListener(t,e)},getAllEvents:function(){var t=[];return this.each(function(e){var n=K(e,"_vEvents");n&&n.length&&t.push(n)}),t},removeAllEvents:function(t){return this.each(function(t){Q(t)}),f.isFunction(t)&&t(),this},off:function(t,e){return this.removeEventListener(t,e)},one:function(t,e,n,r){return f.isFunction(e)&&(r=n,n=e,e=null),this.on(t,e,n,r,!0)},ready:b,load:function(t){"complete"==document.readyState||"loaded"==document.readyState?t():window.addEventListener("load",function(){t()},!1)},trigger:function(t,e){var n,r,i=i||{};for(var u in null!==(e=e||null)&&(i.detail=e),nt)i.hasOwnProperty(u)||(i[u]=nt[u]);if(e&&void 0!==e.bubbles&&(i=e,t=e.type),document.createEvent)return r=et[t]||"CustomEvent",n=document.createEvent(r),this.each(function(e){return rt[r](e,t,n,i),e.dispatchEvent(n)});for(var o in n=document.createEventObject(),i)n[o]=i[o];return this.each(function(e){return e.fireEvent("on"+t,n)})},triggerEvent:function(t,e){return this.trigger(t,e)}}),A.extend({serialize:function(){var t="";return w(this[0].elements||this,function(e){if(!e.disabled&&"FIELDSET"!==e.tagName){var n=e.name;switch(e.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var r=ut(e);null!==r&&w(r,function(e){t+=it(n,e)});break;default:var i=ut(e);null!==i&&(t+=it(n,i))}}}),t.substr(1)},toObject:function(){if(f.isNil(this.get(0)))return null;var t,e=this.get(0).querySelectorAll("input, textarea, select");if(!e)return[];var n,r={},i=/[^\[\]]+|\[\]/g;return w(e,function(e){var u=!0;(!e.name||""===e.name||e.disabled||ot(e)&&!ct(e))&&(u=!1),f.includes(e.className,"ignore-onsave")&&(u=!1),u&&(t=vt(e),1===(n=e.name.match(i)).length&&ht(e,n,t||"",r),n.length>1&&dt(e,n,t||"",r))}),f.size(r)>0&&r},value:function(t){return void 0===t?ut(this[0]):this.each(function(e){return e.value=t})},val:function(t){return this.value(t)}});function mt(t,e,n){var r=f.isString(e);r||!e.length?w(t,r?function(t){return t.insertAdjacentHTML(n?"afterbegin":"beforeend",e)}:function(t,r){return function(t,e,n){if(f.isNode(t)&&f.isNode(e))if(n){var r=t.childNodes[0];t.insertBefore(e,r)}else t.appendChild(e)}(t,0===r?e:e.cloneNode(!0),n)}):w(e,function(e){return mt(t,e,n)})}N.include=function(t,e,n,r){if(f.isFunction(e)&&(r=e,n=!0,e="end"),f.isFunction(n)&&(r=n,n=!0),f.isBool(e)&&(n=e,e="end"),f.isFunction(r)||(r=function(){}),f.isNil(n)&&(n=!0),f.isArray(t)){var i=[];return w(t,function(t){i.push(function(n){pt(t,e,n)})}),!!i.length&&(n?this.series(i,r):this.parallel(i,r))}pt(t,e,r)},N.request=function(t){if(!t.url)throw new TypeError("URL parameter is mandatory and cannot be "+t.url);var e;t.type||(t.type="POST"),t.method||(t.method=!0),(e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")).onreadystatechange=function(){if(4==e.readyState&&200==e.status)f.isFunction(t.onSuccess)&&t.onSuccess(e.responseText,e.readyState);else{if(200==e.status)return!1;0!==e.status&&f.isFunction(t.onError)&&t.onError(e.responseText,e.status)}};var n,r,i=[],u=t.data;if(f.isString(u)){var o=String.prototype.split.call(u,"&");for(n=0,j=o.length;n<j;n++)r=o[n].split("="),i.push(encodeURIComponent(r[0])+"="+encodeURIComponent(r[1]))}else if(f.isObject(u))for(var s in u)if("onError"!=s&&"onSuccess"!=s&&"onProgress"!=s)if(r=u[s],"[object Array]"==Object.prototype.toString.call(r))for(n=0,j=r.length;n<j;n++)i.push(encodeURIComponent(s)+"[]="+encodeURIComponent(r[n]));else i.push(encodeURIComponent(s)+"="+encodeURIComponent(r));i=i.join("&"),"GET"==t.type&&(e.open("GET",t.url+"?"+i,t.method),e.send()),"POST"==t.type&&(e.open("POST",t.url,t.method),e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),e.send(i))},A.extend({after:function(t){return N(t).insertAfter(this),this},append:function(t){return mt(this,t),this},appendTo:function(t){return mt(N(t),this),this},before:function(t){return N(t).insertBefore(this),this},wrap:function(t){return this.each(function(e){if(e){var n=N(e),r=N(t),i=r.get(0);n.before(r),i.appendChild(e)}}),this},unwrap:function(t){return this.each(function(t){if(t){var e=t.parentNode;e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e)}}),this},wrapInner:function(t){return this.each(function(e){if(e){var n=N(e),r=N(t),i=r.get(0);for(n.append(r);e.firstChild!==i;)i.appendChild(e.firstChild)}}),this},unwrapInner:function(){return this.each(function(t){if(t){for(var e=t.parentNode;t.firstChild;)e.insertBefore(t.firstChild,t);e.removeChild(t)}}),this},clone:function(){return N(this.map(function(t){return t.cloneNode(!0)}))},empty:function(){return this.html(""),this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;var e=t.nodeType?t[0].outerHTML:t;return this.each(function(t){return t.innerHTML=e})},insertAfter:function(t){var e=this;return N(t).each(function(t,n){var r=t.parentNode,i=t.nextSibling;e.each(function(t){r.insertBefore(0===n?t:t.cloneNode(!0),i)})}),this},insertBefore:function(t){var e=this;return N(t).each(function(t,n){var r=t.parentNode;e.each(function(e){r.insertBefore(0===n?e:e.cloneNode(!0),t)})}),this},prepend:function(t){return mt(this,t,!0),this},prependTo:function(t){return mt(N(t),this,!0),this},remove:function(t){if(0!==this.length)return f.isUndefined(t)&&(t=!0),this.each(function(e){if(t)Q(e,function(){var t=e.parentNode;null!==t&&"undefined"!==t&&t.removeChild(e)});else{var n=e.parentNode;null!==n&&"undefined"!==n&&n.removeChild(e)}}),this},replaceWith:function(t){var e=N(t);return this.after(e),this.remove(),e},text:function(t){return void 0===t?this[0]?this[0].textContent:void 0:this.each(function(e){return e.textContent=t})}});document.documentElement;return A.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(t){t&&t.document.documentElement,t=t||e;var n=this[0].getBoundingClientRect();return{top:n.top+t.pageYOffset,left:n.left+t.pageXOffset}},offsetParent:function(){return N(this[0].offsetParent)}}),A.extend({children:function(t){var e=[];return this.each(function(t){s.apply(e,t.children)}),e=L(e),t?e.filter(function(e){return T(e,t)}):e},closest:function(t){return!t||this.length<1?N():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(t){if(!t)return!1;var e=!1,n=S(t);return this.each(function(r){return!(e=n(r,t))}),e},find:function(t){if(!t||t.nodeType)return N(t&&this.has(t).length?t:null);var e=[];return this.each(function(n){s.apply(e,y(t,n))}),L(e)},has:function(t){var e=f.isString(t)?function(e){return 0!==y(t,e).length}:function(e){return e.contains(t)},n=this.filter(e);return!!n.length&&n},next:function(t){if(!this.length)return N([]);var e=this[0].nextElementSibling;if(!t)return N(e);for(var n=S(t),r=null;e;){if(n(e,t)){r=e;break}e=e.nextElementSibling}return N(r)},not:function(t){if(!t)return this;var e=S(t);return this.filter(function(n){return!e(n,t)})},parent:function(){var t=[];return this.each(function(e){e&&e.parentNode&&t.push(e.parentNode)}),L(t)},parents:function(t){var e,n=[];return this.each(function(r){for(e=r;e&&e.parentNode&&e!==document.body.parentNode;)e=e.parentNode,(!t||t&&T(e,t))&&n.push(e)}),L(n)},prev:function(t){var e=this[0].previousElementSibling;if(!t)return N(e);for(var n=S(t),r=null;e;){if(n(e,t)){r=e;break}e=e.previousElementSibling}return N(r)},siblings:function(){var t=this.parent().children(),e=this[0];return t.filter(function(t){return t!==e})}}),N});!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).mctracker=t()}(this,function(){var e=!1,t={};e=!1,t={};function n(e){for(var t=e.length,n=[],o=0;o<t;o+=1)n.push(e[o]);return n}function o(e){return e instanceof Element?e:"string"==typeof e?document.querySelector(e):null}function r(e){return"mctracker__debug-offset--"+e.id}function i(e){!function(e){var t=e.id,n=e.offsetVal,o=e.stepClass,i=document.createElement("div");i.setAttribute("id",r({id:t})),i.setAttribute("class","mctracker__debug-offset"),i.style.position="fixed",i.style.left="0",i.style.width="100%",i.style.height="0px",i.style.borderTop="2px dashed black",i.style.zIndex="9999";var s=document.createElement("p");s.innerText='".'+o+'" trigger: '+n,s.style.fontSize="12px",s.style.fontFamily="monospace",s.style.color="black",s.style.margin="0",s.style.padding="6px",i.appendChild(s),document.body.appendChild(i)}({id:e.id,offsetVal:e.offsetVal,stepClass:e.stepEl[0].getAttribute("class")})}function s(e){var t=e.id,n=(e.stepOffsetHeight,e.offsetMargin);e.offsetVal;!function(e){var t=e.id,n=e.offsetMargin,o=(e.offsetVal,r({id:t}));document.querySelector("#"+o).style.top=n+"px"}({id:t,offsetMargin:n})}function c(e){var t=e.id,n=e.index,o=e.state,r=function(e){return"mctracker__debug-step--"+e.id+"-"+e.i}({id:t,i:n}),i=document.querySelector("#"+r+"_above"),s=document.querySelector("#"+r+"_below"),c="enter"===o?"block":"none";i&&(i.style.display=c),s&&(s.style.display=c)}return function(){var r=1,u={},l={},f=null,a=null,p=null,d=null,v=0,g=0,b={top:null,bottom:null,left:null,right:null},h=0,w=0,m=null,x=null,y=null,E=!1,A=!1,O=!1,I=!1,B=0,M=!1,P=!1,k=null,C=null,H=-1,S=null,F=[];function T(e){var t=0;if(e.offsetParent)do{t+=e.offsetTop,e=e.offsetParent}while(e);return t<0?0:t}function _(e){return p.indexOf(e)}function N(){window.pageYOffset>H?S="down":window.pageYOffset<H&&(S="up"),H=window.pageYOffset}function R(){var e,t,n,o,r;h=window.innerHeight,e=document.body,t=document.documentElement,w=Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight),y=a?a.getBoundingClientRect():null,n=h,o=b.bottom,r=b.top,"function"==typeof b.top&&(r=b.top()),"function"==typeof b.bottom&&(o=b.bottom()),("string"==typeof r||!isNaN(parseFloat(r))&&isFinite(r))&&(n="string"==typeof r&&-1!==r.indexOf("%")?parseInt(r)/100*h:parseFloat(r)),("string"==typeof o||!isNaN(parseFloat(o))&&isFinite(o))&&("string"==typeof o&&-1!==o.indexOf("%")?(n=1-parseInt(o)/100,n*=h):n=h-parseFloat(o)),g=n,m=p?p.map(function(e){return e.offsetHeight}):[],x=p?p.map(T):[],A&&E&&ee(),O&&s({id:d,stepOffsetHeight:m,offsetMargin:g,offsetVal:v})}function V(e){e&&!A?(E&&ee(),A=!0):e||(l.top&&l.top.disconnect(),l.bottom&&l.bottom.disconnect(),l.stepAbove&&j(l.stepAbove),l.stepBelow&&j(l.stepBelow),l.stepProgress&&j(l.stepProgress),l.viewportAbove&&j(l.viewportAbove),l.viewportBelow&&j(l.viewportBelow),A=!1)}function j(e){e.forEach(function(e){return e.disconnect()})}function q(e,t){if("above"===t)for(var n=0;n<e;n++){var o=k[n];"enter"===o.state&&Y(p[n]),"up"===o.direction&&(z(p[n],"down"),Y(p[n]))}else if("below"===t)for(var r=k.length-1;r>e;r--){var i=k[r];"enter"===i.state&&Y(p[r]),"down"===i.direction&&(z(p[r],"up"),Y(p[r]))}}function z(e,t){void 0===t&&(t=!0);var n=_(e),o={element:e,index:n,direction:S,instance:ne};k[n].direction=S,k[n].state="enter",M&&t&&"down"===S&&q(n,"above"),M&&t&&"up"===S&&q(n,"below"),u.stepEnter&&"function"==typeof u.stepEnter&&!F[n]&&(o.state=k,u.stepEnter(o),O&&c({id:d,index:n,state:"enter"}),P&&(F[n]=!0,function(e,t){var n,o;l.stepAbove&&(l.stepAbove[t].disconnect(),l.stepAbove[t]=null),l.stepBelow&&(l.stepBelow[t].disconnect(),l.stepBelow[t]=null),l.stepProgress&&(l.stepProgress[t].disconnect(),l.stepProgress[t]=null),l.viewportAbove&&(l.viewportAbove[t].disconnect(),l.viewportAbove[t]=null),l.viewportBelow&&(l.viewportBelow[t].disconnect(),l.viewportBelow[t]=null),n=l.stepAbove,o=[],n.forEach(function(e){e&&o.push(e)}),o.length&&o||te(!1)}(0,n))),I&&L(e,"down"===S?0:1)}function Y(e){if(!A)return!1;var t=_(e),n={element:e,index:t,direction:S};k[t].direction=S,k[t].state="exit",I&&L(e,"down"===S?1:0),u.stepExit&&"function"==typeof u.stepExit&&(u.stepExit(n,k),O&&c({id:d,index:t,state:"exit"}))}function L(e,t){var n={element:e,index:_(e),progress:t};u.stepProgress&&"function"==typeof u.stepProgress&&u.stepProgress(n)}function D(){var e={direction:S};C.direction=S,C.state="enter",u.containerEnter&&"function"==typeof u.containerEnter&&u.containerEnter(e)}function G(){var e={direction:S};C.direction=S,C.state="exit",u.containerExit&&"function"==typeof u.containerExit&&u.containerExit(e)}function J(e){N(),e.forEach(function(e){var t=e.isIntersecting,n=e.boundingClientRect,o=e.target,i=n.bottom,s=n.height,c=i-g,u=_(o);if(k){var l=k[u];return null==l.state&&t&&c<0?(z(o,S),!1):"up"==S&&!l.state&&t?(z(o,S),!1):void(c>=-r&&(t&&"down"===S&&"enter"!==l.state?z(o,S):t||"up"!==S||"enter"!==l.state?!t&&c>=s&&"down"===S&&"enter"===l.state&&Y(o):Y(o)))}})}function K(e){N(),e.forEach(function(e){var t=e.isIntersecting,n=e.boundingClientRect,o=e.target,i=n.bottom,s=n.height,c=i-g,u=_(o);if(k){var l=k[u];c>=-r&&c<s&&t&&"up"===S&&"enter"!==l.state?z(o,S):c<=r&&!t&&"down"===S&&"enter"===l.state&&Y(o)}})}function Q(e){N(),e.forEach(function(e){var t=e.isIntersecting,n=e.target,o=_(n);if(k){var r=k[o];t&&"down"===S&&"enter"!==r.state&&"down"!==r.direction&&(z(n,"down"),Y(n))}})}function U(e){N(),e.forEach(function(e){var t=e.isIntersecting,n=e.target,o=_(n);if(k){var r=k[o];t&&"up"===S&&"enter"!==r.state&&"up"!==r.direction&&(z(n,"up"),Y(n))}})}function W(e){N(),e.forEach(function(e){var t=e.isIntersecting,n=e.intersectionRatio,o=e.boundingClientRect,i=e.target,s=o.bottom;t&&s-g>=-r&&L(i,+n.toFixed(3))})}function X(e){N();var t=e[0],n=t.isIntersecting,o=t.boundingClientRect;o.top,o.bottom>-r&&(n?D():"enter"===C.state&&G())}function Z(e){N();var t=e[0],n=t.isIntersecting;t.boundingClientRect.top<r&&(n?D():"enter"===C.state&&G())}function $(){l.stepProgress&&l.stepProgress.forEach(function(e){return e.disconnect()}),l.stepProgress=p.map(function(e,t){var n=m[t]-g+"px 0px "+(-h+g)+"px 0px",o=function(e){for(var t=Math.ceil(e/B),n=[],o=1/t,r=0;r<t;r++)n.push(r*o);return n}(m[t]),r=new IntersectionObserver(W,{root:null,rootMargin:n,threshold:o});return r.observe(e),r})}function ee(){l.viewportAbove&&l.viewportAbove.forEach(function(e){if(e)return e.disconnect()}),l.viewportAbove=p.map(function(e,t){var n=x[t],o=-(h-g+m[t]),r=new IntersectionObserver(Q,{root:null,rootMargin:n+"px 0px "+o+"px 0px",threshold:0});return r.observe(e),r}),l.viewportBelow&&l.viewportBelow.forEach(function(e){if(e)return e.disconnect()}),l.viewportBelow=p.map(function(e,t){var n=-(g+m[t]),o=w-x[t]-m[t]-g,r=new IntersectionObserver(U,{root:null,rootMargin:n+"px 0px "+o+"px 0px",threshold:0});return r.observe(e),r}),l.stepAbove&&l.stepAbove.forEach(function(e){if(e)return e.disconnect()}),l.stepAbove=p.map(function(e,t){var n=m[t],o=new IntersectionObserver(J,{root:null,rootMargin:n+"px 0px "+(-h+g)+"px 0px",threshold:0});return o.observe(e),o}),l.stepBelow&&l.stepBelow.forEach(function(e){if(e)return e.disconnect()}),l.stepBelow=p.map(function(e,t){var n=-g,o=w-h+m[t]+g,r=new IntersectionObserver(K,{root:null,rootMargin:n+"px 0px "+o+"px 0px",threshold:0});return r.observe(e),r}),I&&$(),f&&a&&(function(){l.top&&l.top.unobserve(f);var e={root:null,rootMargin:h+"px 0px -"+h+"px 0px",threshold:0};l.top=new IntersectionObserver(X,e),l.top.observe(f)}(),function(){l.bottom&&l.bottom.unobserve(f);var e={root:null,rootMargin:"-"+y.height+"px 0px "+y.height+"px 0px",threshold:0};l.bottom=new IntersectionObserver(Z,e),l.bottom.observe(f)}())}function te(e){(e=void 0===e||e)&&V(!1),Object.keys(u).forEach(function(e){return u[e]=null}),Object.keys(l).forEach(function(e){return l[e]=null}),F=null,b=null,h=null,w=null,A=null,t[d]=null,k=null,ne=null}var ne={};return ne.setup=function(r){if(!("IntersectionObserver"in window))return console.warn("Browser does not support IntersectionObserver"),ne;var s=r.container,c=r.graphic,u=r.element,l=r.offset;void 0===l&&(l=.5);var g=r.offsetBottom;void 0===g&&(g=null);var h=r.offsetTop;void 0===h&&(h=null);var w=r.progress;void 0===w&&(w=!1);var m=r.threshold;void 0===m&&(m=4);var x=r.debug;void 0===x&&(x=!1);var y=r.order;void 0===y&&(y=!0);var A,H,S,F,T,_=r.once;return void 0===_&&(_=!1),H=(A="abcdefghijklmnopqrstuv").length,S=(new Date).getTime(),d=""+[0,0,0].map(function(e){return A[Math.floor(Math.random()*H)]}).join("")+S,F=u,void 0===T&&(T=document),p="string"==typeof F?n(T.querySelectorAll(F)):F instanceof Element?[F]:F instanceof NodeList?n(F):Array.isArray(F)?F:[],f=s?o(s):null,a=c?o(c):null,p.length?(b.bottom=g,b.top=h,O=x,I=w,M=y,P=_,B=Math.max(1,+m),E=!0,O&&i({id:d,stepEl:p,offsetVal:v}),k=p.map(function(){return{direction:null,state:null}}),C={direction:null,state:null},R(),function(){if(e)return!1;var n=!1,o=function(){Object.keys(t).forEach(function(e){var n=t[e];n&&n.resize()})};e=!0,window.addEventListener("resize",function(){clearTimeout(n),n=setTimeout(o,300)})}(),V(!0),t[d]=this,ne):(console.error("mctracker error: no step elements"),ne)},ne.resize=function(){return R(),ne},ne.enable=function(){return V(!0),ne},ne.getElements=function(){return p},ne.disable=function(){return V(!1),ne},ne.destroy=function(){return te(),ne=null,null},ne.offsetTrigger=function(e){return e&&(isNaN(e),1)?(v=Math.min(Math.max(0,e),1),ne):v},ne.onStepEnter=function(e){return"IntersectionObserver"in window?(u.stepEnter=e,ne):(this.getElements().forEach(function(t,n){e({element:t,index:n,direction:"down",instance:this,state:[]})}),ne)},ne.onStepExit=function(e){return u.stepExit=e,ne},ne.onStepProgress=function(e){return u.stepProgress=e,ne},ne.onContainerEnter=function(e){return"IntersectionObserver"in window?(u.containerEnter=e,ne):(e({element:null,index:null,direction:"down",instance:this,state:[]}),ne)},ne.onContainerExit=function(e){return u.containerExit=e,ne},ne}});