@webalternatif/js-core 1.6.5 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.mouse=n():t.mouse=n()}(this,()=>(()=>{"use strict";var t={d:(n,e)=>{for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:()=>oe});var e={};t.r(e),t.d(e,{debounce:()=>y,equals:()=>f,flatten:()=>v,noop:()=>s,sizeOf:()=>p,strParseFloat:()=>d,throttle:()=>h});var r={};t.r(r),t.d(r,{clone:()=>x,each:()=>S,extend:()=>C,foreach:()=>E,map:()=>A,merge:()=>O,reduce:()=>j});var o={};t.r(o),t.d(o,{dec2hex:()=>_,floorTo:()=>T,hex2dec:()=>D,max:()=>k,min:()=>L,plancher:()=>M,round:()=>P});var i={};t.r(i),t.d(i,{arrayDiff:()=>B,arrayUnique:()=>Y,array_diff:()=>q,array_unique:()=>U,inArray:()=>N,indexOf:()=>R,lastIndexOf:()=>X,range:()=>F});var a={};t.r(a),t.d(a,{isArray:()=>tt,isArrayLike:()=>Q,isBool:()=>J,isBoolean:()=>Z,isDate:()=>nt,isDocument:()=>ft,isDomElement:()=>st,isEvent:()=>et,isEventSupported:()=>ut,isFloat:()=>it,isFunction:()=>H,isInt:()=>ot,isInteger:()=>rt,isObject:()=>V,isPlainObject:()=>G,isScalar:()=>at,isString:()=>$,isTouchDevice:()=>lt,isUndefined:()=>K,isWindow:()=>ct});var u={};t.r(u),t.d(u,{addUrlParam:()=>Nt,br2nl:()=>bt,camelCase:()=>zt,compareMixAlphaDigits:()=>Zt,decodeHtml:()=>Rt,escapeRegex:()=>Ft,f:()=>$t,format:()=>Wt,formatSize:()=>Gt,hex2rgb:()=>It,hextorgb:()=>_t,hilite:()=>Ht,htmlquotes:()=>Xt,htmlsimplequotes:()=>Yt,insert:()=>Ct,insertTag:()=>At,lcfirst:()=>Et,ltrim:()=>ht,nl2br:()=>wt,noAccent:()=>gt,numberFormat:()=>Pt,pad:()=>Mt,parse_url:()=>Dt,repeat:()=>Ut,reverse:()=>xt,rgb2hex:()=>Lt,rgbtohex:()=>kt,rtrim:()=>yt,stripMultipleSpaces:()=>mt,stripTags:()=>Bt,substringIndex:()=>jt,thousandSeparator:()=>Ot,toCssClassName:()=>Vt,toPrice:()=>Tt,toUrl:()=>qt,trim:()=>dt,ucfirst:()=>St});var l={};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}t.r(l),t.d(l,{rand:()=>rn,randAlpha:()=>Kt,randAlphaCs:()=>Qt,randAlphaNum:()=>tn,randAlphaNumCs:()=>nn,randNum:()=>en,uniqid:()=>on});var f=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var r=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(c(t)!==c(n)||null===t||null===n)return!1;if(tt(t)||V(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if(tt(t)||tt(n))return!(!tt(t)||!tt(n))&&t.length===n.length&&t.every(function(t,o){return r(t,n[o],e)});if(V(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var o=Object.keys(t),i=Object.keys(n);return o.length===i.length&&o.every(function(o){return r(t[o],n[o],e)})}return!1},o=n[0];return n.slice(1).every(function(t){return r(o,t)})},s=function(){},p=function(t){return A(t,s).length},v=function(t){return V(t)||tt(t)?[].concat.apply([],A(t,function(t,n){return v(n)})):t},d=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},h=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||e||(a=s);var p=n-(s-a);p<=0||p>n?(a=s,t.apply(o||this,c)):!i&&r&&(i=setTimeout(function(){i=null,a=e?Date.now():0,t.apply(o||u,c)},p))}},y=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null,i=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();e&&(i||(i=f,t.apply(r||this,l))),clearTimeout(o),o=null,o=setTimeout(function(){i=f,clearTimeout(o),o=null,t.apply(r||a,l)},n)}};function m(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||b(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=b(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function b(t,n){if(t){if("string"==typeof t)return w(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?w(t,n):void 0}}function w(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var S=function(t,n,e){if(G(t)){var r=-1;for(var o in t)if(t.hasOwnProperty(o)&&!1===n.call(null!=e?e:t[o],o,t[o],t,++r))return}else{if($(t)){for(var i=t.split(""),a=0;a<i.length;a++)if(!1===n.call(null!=e?e:i[a],a,i[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=g(t.entries());try{for(c.s();!(u=c.n()).done;){var f=m(u.value,2),s=f[0],p=f[1];if(!1===n.call(null!=e?e:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var v,d=0,h=g(t.values());try{for(h.s();!(v=h.n()).done;){var y=v.value;if(!1===n.call(null!=e?e:y,d,y,t,d))return t;d++}}catch(t){h.e(t)}finally{h.f()}}else if(Q(t))for(var b=Array.from(t),w=0;w<b.length;w++)if(!1===n.call(e||b[w],w,b[w],b,w))return t}return t},E=function(t,n,e){return S(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},A=function(t,n,e){var r=[];return S(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r},j=function(t,n,e){var r=!K(e);if(!p(t)&&!r)throw new Error("Nothing to reduce and no initial value");var o=r?e:A(t,function(t,n,e,r){return 0===r?n:null})[0];return S(t,function(t,e,i,a){(0!==a||r)&&(o=n(o,e,t,a,i))}),o},C=function(){for(var t=!1,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];if(Z(e[0])&&(t=e.shift()),e.length<2||K(e[0])||null===e[0])return e[0];var o=e[0];return V(o)||(e[0]=o={}),E(e.slice(1),function(n){if(V(n))for(var e in n)t&&G(n[e])?o[e]=C(!0,{},o[e],n[e]):o[e]=n[e]}),o},x=function(t){if(!V(t)&&!tt(t)||ct(t))return t;var n=V(t)?{}:[];return S(t,function(t,e){V(e)?n[t]=x(e):n[t]=e}),n},O=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=A(t,function(t,n){return n});S(n,function(t,n){e.push(n)});for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return o.length?O.apply(void 0,[e].concat(o)):e},P=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,n))/Math.pow(10,n)},T=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return P(Math.floor(t/n)*n,6)},M=T,L=function(t,n){return I(t,n=H(n)?n:function(t,n){return t<n?-1:1})},k=function(t,n){return I(t,n=H(n)?n:function(t,n){return t>n?-1:1})};function I(t,n){var e;return S(t,function(t,r,o,i){e=0===i||n.call(null,e,r)>0?r:e}),e}var _=function(t){return t.toString(16)},D=function(t){t=xt(t+"").toUpperCase();var n=0;return S(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n},N=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;return S(n,function(n,i){if(n>=e)if(r){if(i===t)return o=!0,!1}else{if(V(t)&&V(i))return o=f(i,t),!1;if(tt(t)&&V(i))return o=f(i,t),!1;if(i==t)return o=!0,!1}}),o},R=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=$(t)?A(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+r.length:Math.floor(e);e<r.length;e++)if(e in r&&r[e]===n)return e;return-1},X=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=$(t)?A(t,function(t,n){return n}):t;for(e=e<0?r.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in r&&r[e]===n)return e;return-1},Y=function(t){return t.filter(function(t,n,e){return n===R(e,t)})},U=Y,B=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!N(t,n,0,e)})},q=B,F=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=P(t),e=P(e);var r=[];if(K(n)||t<1||0===e||t<Math.abs(e))return r;var o=t*e;if($(n)){n=n.charCodeAt(0);for(var i=0;e>0?i<o:i>o;i+=e)r.push(String.fromCharCode(n+i))}else if(rt(n))for(var a=0;e>0?a<o:a>o;a+=e)r.push(n+a);return r};function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}var W,$=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},V=function(t){return!!t&&!tt(t)&&"object"===z(t)},H=function(t){return!!t&&"function"==typeof t},G=function(t){return!1!==V(t)&&(void 0===t.constructor||!1!==V(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},Z=function(t){return!0===t||!1===t},J=Z,K=function(t){return void 0===t},Q=function(t){return!!t&&!$(t)&&!H(t)&&ot(t.length)&&Number.isFinite(t.length)},tt=function(t){return Array.isArray(t)},nt=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},et=function(t){return V(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},rt=function(t){return/^[-+]?\d+$/.test(t+"")},ot=rt,it=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},at=function(t){var n=z(t);return null===t||N(n,["string","number","bigint","symbol","boolean"])},ut=(W={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement(W[t]||"div"),e=(t="on"+t)in n;return n=null,e}),lt=function(){return ut("touchstart")},ct=function(t){return!!t&&t===t.window},ft=function(t){return!!t&&9===t.nodeType},st=function(t){return V(t)&&1===t.nodeType&&!G(t)};function pt(t){return function(t){if(Array.isArray(t))return vt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return vt(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?vt(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var dt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return ht(yt(t,n),n)},ht=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},yt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},mt=function(t){return t.trim().replace(/ +/g," ")},gt=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},bt=function(t){return t.split(/<br\s*\/*>/).join("\n")},wt=function(t){return t.split("\n").join("<br>")},St=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Et=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},At=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o="<".concat(n,">"),i="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(o="<".concat(n,"/>"),i=""),t.slice(0,e)+o+t.slice(e,e+r)+i+t.slice(e+r)},jt=function(t,n,e){var r=(t+"").split(n);return e>0?r.splice(e,r.length-e):e<0&&r.splice(0,r.length+e),r.join(n)},Ct=function(t,n,e){return e>=t.length?t:pt(t).reduce(function(t,r,o){return o>0&&o%e===0?t+n+r:t+r},"")},xt=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},Ot=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(K(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",o=xt(Ct(xt(r),xt(n),3));return t.indexOf(".")>0?o+e+jt(t,".",-1):o}return(t+"").replace(".",e)},Pt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=P(parseFloat(t.replace(",",".")),n)+"",0===n)return Ot(t,r,o);var i=t.lastIndexOf(".");if(-1===i)return!0===e&&(t+=o+Ut("0",n)),Ot(t,r,o);var a=t.slice(i+1).length;return Ot(n>a?t+"0".repeat(n-a):t.slice(0,i+1+n),r,o)},Tt=Pt,Mt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return K(n)||t.length>=n||!N(r,["left","right"])?t:"left"===r?e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)+t:t+e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)},Lt=function(t,n,e){return tt(t)?Lt.apply(void 0,pt(t)):rt(t)&&rt(n)&&rt(e)?[Mt(_(parseInt(t)),2,"0").toUpperCase(),Mt(_(parseInt(n)),2,"0").toUpperCase(),Mt(_(parseInt(e)),2,"0").toUpperCase()].join(""):""},kt=Lt,It=function(t){if(!$(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=A(t.slice(-3),function(t,n){return n+""+n}).join(""));for(var n=0;n<t.length;n++)if(-1==="0123456789ABCDEF".indexOf(t[n]))return[];return A(Ct(t,",",2).split(","),function(t,n){return D(n)})},_t=It,Dt=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},o=14;o--;)e[o]&&(r[n[o]]=e[o]);return delete r.source,r},Nt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(G(n))return S(n,function(n,e){t=Nt(t,n,e)}),t;var r,o=Dt(t),i="";(r=t.indexOf("#"))>-1&&(i=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(n),u=null===e?"":encodeURIComponent(e);if(!o.query)return t+"?"+a+"="+u+i;for(var l=o.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+l.join("&")+i:(o.host||"")+o.path+"?"+l.join("&")+i},Rt=function(t){return $(t)?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'"):""},Xt=function(t){return $(t)?t.replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},Yt=function(t){return $(t)?t.replace(/'/g,"&#039;"):""},Ut=function(t,n){return $(t)&&it(n)?new Array(Math.floor(n)+1).join(t):""},Bt=function(t,n){if($(n)){for(var e=new RegExp("<".concat(n,"[^>]*>(.*?)</").concat(n,">|<").concat(n,"[^>]*/>"),"ig");e.test(t);)t=t.replace(e,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},qt=function(t){return dt(gt(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},Ft=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},zt=function(t){if(!t)return"";var n="",e=!1,r=!1,o=!1;t=dt(t),t=dt(t,"_"),t=dt(t,"-");var i=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return A(t,function(t,u){return r=a(n),o=i(n),n=u,a(u)?null:(r?(u=u.toUpperCase(),e=!0):i(u)?((0===t||o&&!e)&&(u=u.toLowerCase()),e=!1):e=!1,u)}).join("")},Wt=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.length&&S(e,function(n,e){if($(e)){var r={};r[n]=e,e=r}S(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return K(e)?t:e})})}),t},$t=Wt,Vt=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var n=t.charCodeAt(0);return 32===n?"-":"__"+("000"+n.toString(16)).slice(-4)})},Ht=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Rt(t);var r,o,i=gt(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(tt(n)||(n=[n]),S(n,function(t,n){n.length&&(n=Rt(n),r=gt(n).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(Ft(r),"g"),a=i.replace(o,"[".concat(r,"]")),i=a)}),!a.length)return t;var u=0,l="",c="end";return S(a,function(n,r){var o=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(e,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(e,">"),c="end"):(u+=1,l+=o)}),l.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(new RegExp("&lt;".concat(e,"&gt;"),"g"),"<".concat(e,">")).replace(new RegExp("&lt;/".concat(e,"&gt;"),"g"),"</".concat(e,">")).replace(new RegExp("&lt;br&gt;","g"),"<br>")},Gt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,r=0;do{t/=1024,e++}while(t>999);rt(t)||(r=1);var o=A(["k","M","G","T","P","E"],function(t,n){return n+"B"});return Pt(Math.max(t,0),r,!0,"",n)+" "+o[e]},Zt=function(t,n){if(t===n)return 0;if(rt(t)&&rt(n))return Math.sign(t-n);for(var e="",r=0;r<Math.min(t.length,n.length)&&t.charAt(r)===n.charAt(r)&&!rt(t);r++)e+=t.charAt(r);t=t.slice(e.length),n=n.slice(e.length);var o="",i=null;S(t,function(t,n){if(o)return n>="0"&&n<="9"&&(o+=n,!0);i=t,n>="0"&&n<="9"&&(o+=n)});var a="",u=null;return S(n,function(t,n){if(a)return n>="0"&&n<="9"&&(a+=n,!0);u=t,n>="0"&&n<="9"&&(a+=n)}),o.length&&a.length&&i===u&&t.substring(0,i)===n.substring(0,u)?Math.sign(o-a):t>n?1:-1};E(Object.keys(u),function(t){var n=u[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var Jt,Kt=function(t){return rn("abcdefghijklmnopqrstuvwxyz".split(""),t)},Qt=function(t){return rn("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},tn=function(t){return rn("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},nn=function(t){return rn("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},en=function(t){return rn("0123456789".split(""),t)},rn=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},on=(Jt=0,function(){return Jt++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(Jt.toString(36),"_").concat(tn(5))});function an(t){return an="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(t)}function un(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ln(r.key),r)}}function ln(t){var n=function(t){if("object"!=an(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=an(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==an(n)?n:n+""}function cn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var fn=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=cn(t,this,sn).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=cn(t,this,sn).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=cn(t,this,sn).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&un(n.prototype,null),e&&un(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function sn(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const pn=fn;function vn(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=yn(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function dn(t){return function(t){if(Array.isArray(t))return mn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||yn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hn(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||yn(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yn(t,n){if(t){if("string"==typeof t)return mn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?mn(t,n):void 0}}function mn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=fn);var gn=new Map,bn=["longtap","dbltap"],wn=new Set;function Sn(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var o=t[e];return H(o)?o.bind(t):o}})}function En(t){return function(t){if(Array.isArray(t))return An(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return An(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?An(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function An(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var jn=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],Cn={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),Q(n))return A(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,En(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,En(e))}),t},toggleClass:function(t,n,e){return E(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return E(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!N(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return E(r,function(e){$(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return E([].concat(r).reverse(),function(e){$(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||tt(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=H(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if(G(n))return S(n,function(n,e){return r.data(t,n,e)}),t;var o=/^data-/.test(n+""),i=zt(o?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[i]:null===e?(delete t.dataset[i],t):(t.dataset[i]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if($(n)){var o=n.startsWith("--")?n:zt(n);if(void 0===e){if(window.getComputedStyle){var i=window.getComputedStyle(t,null);return i.getPropertyValue(n)||i[zt(n)]||""}return t.style[zt(n)]||""}o.startsWith("--")?t.style.setProperty(o,String(e)):("number"!=typeof e||N(o,jn)||(e+="px"),t.style[o]=e)}else S(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!$(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?($(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?($(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=$(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return E(o,function(t){$(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if(ct(t))return{top:t.scrollY,left:t.scrollX};if(ft(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(N(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,o){return H(e)&&(o=r,r=e,e=null),E(n.split(" "),function(n){var i=hn(n.split("."),2),a=i[0],u=i[1],l=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),o=dn(gn.get(t)),i=vn(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,c=vn(o);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===n.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==t)continue;var s=Sn(n,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},c=gn.get(t);c||(c=[],gn.set(t,c)),N(a,bn)&&function(t){var n,e,r,o,i,a,u;null!=wn&&wn.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=pn.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=pn.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=pn.getViewportPosition(t);else{var o=pn.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),n=Date.now(),e=o}},{passive:!0})),wn.add(t))}(a);var f=A(c,function(t,n){return n.event});N(a,f)||t.addEventListener(a,l,o),c.push({event:a,handler:r,selector:e,listener:l,namespace:u,options:o})}),t},off:function(t,n,e,r,o){H(e)&&(o=r,r=e,e=null);var i=gn.get(t);if(!i)return t;var a=n?n.split(" "):[void 0];return E(a,function(n){var a=hn(void 0===n?[void 0,void 0]:n.split("."),2),u=a[0],l=a[1],c=void 0!==(u=u||void 0),f=void 0!==l;E(dn(i).reverse(),function(n){if((!c&&!f||c&&!f&&n.event===u||!c&&f&&n.namespace===l||c&&f&&n.event===u&&n.namespace===l)&&(void 0===u||n.event===u)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===l||n.namespace===l)&&(void 0===o||n.options===o)){var a=i.indexOf(n);-1!==a&&i.splice(a,1),A(i,function(t,n){return n.event===u?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};function xn(t){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(t)}function On(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Pn(r.key),r)}}function Pn(t){var n=function(t){if("object"!=xn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=xn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==xn(n)?n:n+""}function Tn(t,n){return t.get(Mn(t,n))}function Mn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=Cn);var Ln=new WeakMap,kn=new(function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,n,e){(function(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,n),n.set(t,e)}(this,Ln,{})},n=[{key:"addListener",value:function(t,n,e){var r=this;if(!H(n))throw new Error("Callback must be a function.");if(!$(t))throw new Error("Events name must be a string separated by comma.");for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u={callback:n,context:e,args:i};return S(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),r.hasListener(n)?Tn(Ln,r)[n].push(u):Tn(Ln,r)[n]=[u]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return S(t.split(","),function(t,o){if(!(o=o.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[o].concat(i).concat(u.slice(1))),r.removeListener(o,a)};r.addListener(o,a,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(!$(t))throw new Error("Events name must be a string seperated by comma.");return S(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void S(Tn(Ln,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(r))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return K(n)?!K(Tn(Ln,this)[t]):!!A(Tn(Ln,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var r=this;return this.hasListener(t,n,e)&&(K(n)?Tn(Ln,this)[t].splice(0):S(Tn(Ln,this)[t],function(n){return Tn(Ln,r)[t].splice(n,1),delete Tn(Ln,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?Tn(Ln,this)[t]||[]:Tn(Ln,this)}},{key:"reset",value:function(){var t,n;n={},(t=Ln).set(Mn(t,this),n)}}],n&&On(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}());function In(t){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(t)}function _n(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Dn(r.key),r)}}function Dn(t){var n=function(t){if("object"!=In(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=In(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==In(n)?n:n+""}function Nn(t,n,e){Rn(t,n),n.set(t,e)}function Rn(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xn(t,n){return t.get(Un(t,n))}function Yn(t,n,e){return t.set(Un(t,n),e),e}function Un(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=kn);var Bn=new WeakMap,qn=new WeakMap,Fn=new WeakSet,zn=function(){return t=function t(n,e){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),Rn(this,r=Fn),r.add(this),Nn(this,Bn,void 0),Nn(this,qn,void 0),Un(Fn,this,Wn).call(this,n),this.setLang(e)},n=[{key:"translate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(n=void 0===n?this.getLang():n,void 0!==Xn(qn,this)[e]&&void 0!==Xn(qn,this)[e][n]&&void 0!==Xn(qn,this)[e][n][t]){var r=Xn(qn,this)[e][n][t];return Un(Fn,this,Vn).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var i=null===(r=Xn(qn,this))||void 0===r?void 0:r[o];if(!i)return t;var a=null==i?void 0:i[n],u=null==i?void 0:i[e];if(!a||!u)return t;var l=Un(Fn,this,$n).call(this,a,t);if(!l)return t;var c=u[l],f=Un(Fn,this,Vn).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Xn(Bn,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),Yn(Bn,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&_n(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function Wn(t){var n={},e={};S(t,function(t,r){S(r,function(r,o){G(o)?(void 0===n[t]&&(n[t]={}),n[t][r]=o):(void 0===e[t]&&(e[t]={}),e[t][r]=o)})}),Yn(qn,this,C(!0,n,{core:C({},n.core||{},e)}))}function $n(t,n){for(var e in t)if(Un(Fn,this,Vn).call(this,t[e])===n)return e;return null}function Vn(t){return H(t)?t():t}function Hn(t){return Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hn(t)}function Gn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function Zn(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Gn(Object(e),!0).forEach(function(n){Jn(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Gn(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Jn(t,n,e){return(n=function(t){var n=function(t){if("object"!=Hn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Hn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Hn(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function Kn(t){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(t)}function Qn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,te(r.key),r)}}function te(t){var n=function(t){if("object"!=Kn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Kn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Kn(n)?n:n+""}function ne(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=zn),Zn(Zn(Zn(Zn(Zn(Zn(Zn({},u),i),r),a),l),o),e);var ee=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=ne(t,this,re).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=ne(t,this,re).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=ne(t,this,re).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&Qn(n.prototype,null),e&&Qn(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function re(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const oe=ee;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=ee),n})());
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.mouse=e():t.mouse=e()}(this,()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>an});var n={};t.r(n),t.d(n,{debounce:()=>m,equals:()=>s,flatten:()=>v,getScrollbarWidth:()=>g,noop:()=>p,sizeOf:()=>d,strParseFloat:()=>h,throttle:()=>y});var r={};t.r(r),t.d(r,{clone:()=>P,each:()=>A,extend:()=>O,foreach:()=>j,map:()=>C,merge:()=>T,reduce:()=>x});var o={};t.r(o),t.d(o,{dec2hex:()=>N,floorTo:()=>L,hex2dec:()=>R,max:()=>_,min:()=>I,plancher:()=>k,round:()=>M});var i={};t.r(i),t.d(i,{arrayDiff:()=>F,arrayUnique:()=>B,array_diff:()=>W,array_unique:()=>q,inArray:()=>X,indexOf:()=>Y,lastIndexOf:()=>U,range:()=>z});var a={};t.r(a),t.d(a,{isArray:()=>nt,isArrayLike:()=>et,isBool:()=>Q,isBoolean:()=>K,isDate:()=>rt,isDocument:()=>pt,isDomElement:()=>dt,isEvent:()=>ot,isEventSupported:()=>ct,isFloat:()=>ut,isFunction:()=>Z,isInt:()=>at,isInteger:()=>it,isObject:()=>G,isPlainObject:()=>J,isScalar:()=>lt,isString:()=>H,isTouchDevice:()=>ft,isUndefined:()=>tt,isWindow:()=>st});var u={};t.r(u),t.d(u,{addUrlParam:()=>Xt,br2nl:()=>St,camelCase:()=>$t,compareMixAlphaDigits:()=>Kt,decodeHtml:()=>Yt,escapeRegex:()=>zt,f:()=>Ht,format:()=>Vt,formatSize:()=>Jt,hex2rgb:()=>Dt,hextorgb:()=>Nt,hilite:()=>Zt,htmlquotes:()=>Ut,htmlsimplequotes:()=>Bt,insert:()=>Ot,insertTag:()=>Ct,lcfirst:()=>jt,ltrim:()=>mt,nl2br:()=>Et,noAccent:()=>wt,numberFormat:()=>Mt,pad:()=>kt,parse_url:()=>Rt,repeat:()=>qt,reverse:()=>Pt,rgb2hex:()=>It,rgbtohex:()=>_t,rtrim:()=>gt,stripMultipleSpaces:()=>bt,stripTags:()=>Ft,substringIndex:()=>xt,thousandSeparator:()=>Tt,toCssClassName:()=>Gt,toPrice:()=>Lt,toUrl:()=>Wt,trim:()=>yt,ucfirst:()=>At});var l={};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}t.r(l),t.d(l,{rand:()=>ie,randAlpha:()=>te,randAlphaCs:()=>ee,randAlphaNum:()=>ne,randAlphaNumCs:()=>re,randNum:()=>oe,uniqid:()=>ae});var f,s=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return!1;var r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===e)return!0;if(Number.isNaN(t)&&Number.isNaN(e))return!0;if(c(t)!==c(e)||null===t||null===e)return!1;if(nt(t)||G(t)){if(n.has(t))return n.get(t)===e;n.set(t,e)}if(nt(t)||nt(e))return!(!nt(t)||!nt(e))&&t.length===e.length&&t.every(function(t,o){return r(t,e[o],n)});if(G(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(t instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp)return t.toString()===e.toString();var o=Object.keys(t),i=Object.keys(e);return o.length===i.length&&o.every(function(o){return r(t[o],e[o],n)})}return!1},o=e[0];return e.slice(1).every(function(t){return r(o,t)})},p=function(){},d=function(t){return C(t,p).length},v=function(t){return G(t)||nt(t)?[].concat.apply([],C(t,function(t,e){return v(e)})):t},h=function(t){if(!t)return 0;var e=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(e)?0:e},y=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||n||(a=s);var p=e-(s-a);p<=0||p>e?(a=s,t.apply(o||this,c)):!i&&r&&(i=setTimeout(function(){i=null,a=n?Date.now():0,t.apply(o||u,c)},p))}},m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null,i=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();n&&(i||(i=f,t.apply(r||this,l))),clearTimeout(o),o=null,o=setTimeout(function(){i=f,clearTimeout(o),o=null,t.apply(r||a,l)},e)}},g=(f=null,function(){if(null===f){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var e=t.offsetWidth;t.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",t.appendChild(n);var r=n.offsetWidth;t.remove(),f=e-r}return f});function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||S(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=S(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function S(t,e){if(t){if("string"==typeof t)return E(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var A=function(t,e,n){if(J(t)){var r=-1;for(var o in t)if(t.hasOwnProperty(o)&&!1===e.call(null!=n?n:t[o],o,t[o],t,++r))return}else{if(H(t)){for(var i=t.split(""),a=0;a<i.length;a++)if(!1===e.call(null!=n?n:i[a],a,i[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=w(t.entries());try{for(c.s();!(u=c.n()).done;){var f=b(u.value,2),s=f[0],p=f[1];if(!1===e.call(null!=n?n:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var d,v=0,h=w(t.values());try{for(h.s();!(d=h.n()).done;){var y=d.value;if(!1===e.call(null!=n?n:y,v,y,t,v))return t;v++}}catch(t){h.e(t)}finally{h.f()}}else if(et(t))for(var m=Array.from(t),g=0;g<m.length;g++)if(!1===e.call(n||m[g],g,m[g],m,g))return t}return t},j=function(t,e,n){return A(t,function(t,r,o,i){return e.apply(n||r,[r,t,o,i])},n)},C=function(t,e,n){var r=[];return A(t,function(t,o,i,a){var u=e.call(n,t,o,i,a);null!==u&&r.push(u)}),r},x=function(t,e,n){var r=!tt(n);if(!d(t)&&!r)throw new Error("Nothing to reduce and no initial value");var o=r?n:C(t,function(t,e,n,r){return 0===r?e:null})[0];return A(t,function(t,n,i,a){(0!==a||r)&&(o=e(o,n,t,a,i))}),o},O=function(){for(var t=!1,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(K(n[0])&&(t=n.shift()),n.length<2||tt(n[0])||null===n[0])return n[0];var o=n[0];return G(o)||(n[0]=o={}),j(n.slice(1),function(e){if(G(e))for(var n in e)t&&J(e[n])?o[n]=O(!0,{},o[n],e[n]):o[n]=e[n]}),o},P=function(t){if(!G(t)&&!nt(t)||st(t))return t;var e=G(t)?{}:[];return A(t,function(t,n){G(n)?e[t]=P(n):e[t]=n}),e},T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=C(t,function(t,e){return e});A(e,function(t,e){n.push(e)});for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return o.length?T.apply(void 0,[n].concat(o)):n},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,e))/Math.pow(10,e)},L=function(t,e){if(e<=0)throw new Error("Precision must be greater than 0");return M(Math.floor(t/e)*e,6)},k=L,I=function(t,e){return D(t,e=Z(e)?e:function(t,e){return t<e?-1:1})},_=function(t,e){return D(t,e=Z(e)?e:function(t,e){return t>e?-1:1})};function D(t,e){var n;return A(t,function(t,r,o,i){n=0===i||e.call(null,n,r)>0?r:n}),n}var N=function(t){return t.toString(16)},R=function(t){t=Pt(t+"").toUpperCase();var e=0;return A(t,function(t,n){var r="0123456789ABCDEF".indexOf(n);if(-1===r)return e=0,!1;e+=r*Math.pow(2,4*t)}),e},X=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;return A(e,function(e,i){if(e>=n)if(r){if(i===t)return o=!0,!1}else{if(G(t)&&G(i))return o=s(i,t),!1;if(nt(t)&&G(i))return o=s(i,t),!1;if(i==t)return o=!0,!1}}),o},Y=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=H(t)?C(t,function(t,e){return e}):t;for(n=n<0?Math.ceil(n)+r.length:Math.floor(n);n<r.length;n++)if(n in r&&r[n]===e)return n;return-1},U=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=H(t)?C(t,function(t,e){return e}):t;for(n=n<0?r.length+Math.ceil(n):Math.floor(n);n>=0;n--)if(n in r&&r[n]===e)return n;return-1},B=function(t){return t.filter(function(t,e,n){return e===Y(n,t)})},q=B,F=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!X(t,e,0,n)})},W=F,z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=M(t),n=M(n);var r=[];if(tt(e)||t<1||0===n||t<Math.abs(n))return r;var o=t*n;if(H(e)){e=e.charCodeAt(0);for(var i=0;n>0?i<o:i>o;i+=n)r.push(String.fromCharCode(e+i))}else if(it(e))for(var a=0;n>0?a<o:a>o;a+=n)r.push(e+a);return r};function $(t){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$(t)}var V,H=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},G=function(t){return!!t&&!nt(t)&&"object"===$(t)},Z=function(t){return!!t&&"function"==typeof t},J=function(t){return!1!==G(t)&&(void 0===t.constructor||!1!==G(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},K=function(t){return!0===t||!1===t},Q=K,tt=function(t){return void 0===t},et=function(t){return!!t&&!H(t)&&!Z(t)&&at(t.length)&&Number.isFinite(t.length)},nt=function(t){return Array.isArray(t)},rt=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},ot=function(t){return G(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},it=function(t){return/^[-+]?\d+$/.test(t+"")},at=it,ut=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},lt=function(t){var e=$(t);return null===t||X(e,["string","number","bigint","symbol","boolean"])},ct=(V={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var e=document.createElement(V[t]||"div"),n=(t="on"+t)in e;return e=null,n}),ft=function(){return ct("touchstart")},st=function(t){return!!t&&t===t.window},pt=function(t){return!!t&&9===t.nodeType},dt=function(t){return G(t)&&1===t.nodeType&&!J(t)};function vt(t){return function(t){if(Array.isArray(t))return ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ht(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ht(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var yt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return mt(gt(t,e),e)},mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(e,"+"),"g"),"")},gt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(e,"+$"),"g"),"")},bt=function(t){return t.trim().replace(/ +/g," ")},wt=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},St=function(t){return t.split(/<br\s*\/*>/).join("\n")},Et=function(t){return t.split("\n").join("<br>")},At=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},jt=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Ct=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o="<".concat(e,">"),i="</".concat(e,">");return["br","hr","img","link","input"].includes(e)&&(o="<".concat(e,"/>"),i=""),t.slice(0,n)+o+t.slice(n,n+r)+i+t.slice(n+r)},xt=function(t,e,n){var r=(t+"").split(e);return n>0?r.splice(n,r.length-n):n<0&&r.splice(0,r.length+n),r.join(e)},Ot=function(t,e,n){return n>=t.length?t:vt(t).reduce(function(t,r,o){return o>0&&o%n===0?t+e+r:t+r},"")},Pt=function(t){for(var e=[],n=0;n<t.length;n++)e.unshift(t[n]);return e.join("")},Tt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(tt(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",o=Pt(Ot(Pt(r),Pt(e),3));return t.indexOf(".")>0?o+n+xt(t,".",-1):o}return(t+"").replace(".",n)},Mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=M(parseFloat(t.replace(",",".")),e)+"",0===e)return Tt(t,r,o);var i=t.lastIndexOf(".");if(-1===i)return!0===n&&(t+=o+qt("0",e)),Tt(t,r,o);var a=t.slice(i+1).length;return Tt(e>a?t+"0".repeat(e-a):t.slice(0,i+1+e),r,o)},Lt=Mt,kt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return tt(e)||t.length>=e||!X(r,["left","right"])?t:"left"===r?n.repeat(Math.ceil(e/n.length)).slice(0,e-t.length)+t:t+n.repeat(Math.ceil(e/n.length)).slice(0,e-t.length)},It=function(t,e,n){return nt(t)?It.apply(void 0,vt(t)):it(t)&&it(e)&&it(n)?[kt(N(parseInt(t)),2,"0").toUpperCase(),kt(N(parseInt(e)),2,"0").toUpperCase(),kt(N(parseInt(n)),2,"0").toUpperCase()].join(""):""},_t=It,Dt=function(t){if(!H(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=C(t.slice(-3),function(t,e){return e+""+e}).join(""));for(var e=0;e<t.length;e++)if(-1==="0123456789ABCDEF".indexOf(t[e]))return[];return C(Ot(t,",",2).split(","),function(t,e){return R(e)})},Nt=Dt,Rt=function(t){for(var e=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],n=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},o=14;o--;)n[o]&&(r[e[o]]=n[o]);return delete r.source,r},Xt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(J(e))return A(e,function(e,n){t=Xt(t,e,n)}),t;var r,o=Rt(t),i="";(r=t.indexOf("#"))>-1&&(i=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(e),u=null===n?"":encodeURIComponent(n);if(!o.query)return t+"?"+a+"="+u+i;for(var l=o.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+l.join("&")+i:(o.host||"")+o.path+"?"+l.join("&")+i},Yt=function(t){return H(t)?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'"):""},Ut=function(t){return H(t)?t.replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},Bt=function(t){return H(t)?t.replace(/'/g,"&#039;"):""},qt=function(t,e){return H(t)&&ut(e)?new Array(Math.floor(e)+1).join(t):""},Ft=function(t,e){if(H(e)){for(var n=new RegExp("<".concat(e,"[^>]*>(.*?)</").concat(e,">|<").concat(e,"[^>]*/>"),"ig");n.test(t);)t=t.replace(n,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},Wt=function(t){return yt(wt(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},zt=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},$t=function(t){if(!t)return"";var e="",n=!1,r=!1,o=!1;t=yt(t),t=yt(t,"_"),t=yt(t,"-");var i=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return C(t,function(t,u){return r=a(e),o=i(e),e=u,a(u)?null:(r?(u=u.toUpperCase(),n=!0):i(u)?((0===t||o&&!n)&&(u=u.toLowerCase()),n=!1):n=!1,u)}).join("")},Vt=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.length&&A(n,function(e,n){if(H(n)){var r={};r[e]=n,n=r}A(n,function(e,n){t=t.replace(new RegExp("\\{"+e+"\\}","gm"),function(t){return tt(n)?t:n})})}),t},Ht=Vt,Gt=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var e=t.charCodeAt(0);return 32===e?"-":"__"+("000"+e.toString(16)).slice(-4)})},Zt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Yt(t);var r,o,i=wt(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(nt(e)||(e=[e]),A(e,function(t,e){e.length&&(e=Yt(e),r=wt(e).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(zt(r),"g"),a=i.replace(o,"[".concat(r,"]")),i=a)}),!a.length)return t;var u=0,l="",c="end";return A(a,function(e,r){var o=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(n,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(n,">"),c="end"):(u+=1,l+=o)}),l.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(new RegExp("&lt;".concat(n,"&gt;"),"g"),"<".concat(n,">")).replace(new RegExp("&lt;/".concat(n,"&gt;"),"g"),"</".concat(n,">")).replace(new RegExp("&lt;br&gt;","g"),"<br>")},Jt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=-1,r=0;do{t/=1024,n++}while(t>999);it(t)||(r=1);var o=C(["k","M","G","T","P","E"],function(t,e){return e+"B"});return Mt(Math.max(t,0),r,!0,"",e)+" "+o[n]},Kt=function(t,e){if(t===e)return 0;if(it(t)&&it(e))return Math.sign(t-e);for(var n="",r=0;r<Math.min(t.length,e.length)&&t.charAt(r)===e.charAt(r)&&!it(t);r++)n+=t.charAt(r);t=t.slice(n.length),e=e.slice(n.length);var o="",i=null;A(t,function(t,e){if(o)return e>="0"&&e<="9"&&(o+=e,!0);i=t,e>="0"&&e<="9"&&(o+=e)});var a="",u=null;return A(e,function(t,e){if(a)return e>="0"&&e<="9"&&(a+=e,!0);u=t,e>="0"&&e<="9"&&(a+=e)}),o.length&&a.length&&i===u&&t.substring(0,i)===e.substring(0,u)?Math.sign(o-a):t>e?1:-1};j(Object.keys(u),function(t){var e=u[t],n=String.prototype,r=n[t];n[t]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return r&&n.length===r.length?r.apply(this,n):e.apply(void 0,[this].concat(n))}});var Qt,te=function(t){return ie("abcdefghijklmnopqrstuvwxyz".split(""),t)},ee=function(t){return ie("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},ne=function(t){return ie("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},re=function(t){return ie("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},oe=function(t){return ie("0123456789".split(""),t)},ie=function(t,e){for(var n="",r=0;r<e;r++)n+=t[Math.floor(1e3*Math.random())%t.length];return n},ae=(Qt=0,function(){return Qt++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(Qt.toString(36),"_").concat(ne(5))});function ue(t){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ue(t)}function le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ce(r.key),r)}}function ce(t){var e=function(t){if("object"!=ue(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ue(e)?e:e+""}function fe(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var se=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"getPosition",value:function(e,n){e=fe(t,this,pe).call(this,e);var r={left:0,top:0};if(n instanceof Element){var o=n.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:e.pageX-r.left,y:e.pageY-r.top}}},{key:"getViewportPosition",value:function(e){return{x:(e=fe(t,this,pe).call(this,e)).clientX,y:e.clientY}}},{key:"getElement",value:function(e){return e=fe(t,this,pe).call(this,e),window.document.elementFromPoint(e.clientX,e.clientY)}}],null&&le(e.prototype,null),n&&le(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function pe(t){var e,n,r,o,i,a,u,l=null!==(e=null!==(n=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==n?n:null==t?void 0:t.originalEvent)&&void 0!==e?e:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const de=se;function ve(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=me(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function he(t){return function(t){if(Array.isArray(t))return ge(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||me(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ye(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||me(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(t,e){if(t){if("string"==typeof t)return ge(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ge(t,e):void 0}}function ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=se);var be=new Map,we=["longtap","dbltap"],Se=new Set;function Ee(t,e){var n={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:e,stopPropagation:function(){n._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){n._immediateStopped=!0,n._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(n,{get:function(e,n,r){if(n in e)return Reflect.get(e,n,r);var o=t[n];return Z(o)?o.bind(t):o}})}function Ae(t){return function(t){if(Array.isArray(t))return je(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return je(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?je(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function je(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Ce=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],xe={children:function(t,e){return e?this.find(t,":scope > ".concat(e)):Array.from(t.children)},child:function(t,e){return this.first(this.children(t,e))},find:function(t,e){if(void 0===e&&(e=t,t=document),e instanceof Element&&(e=[e]),et(e))return C(Array.from(e),function(e,n){return n instanceof Element&&(t===n||t.contains(n))?n:null});try{return Array.from(t.querySelectorAll(e))}catch(t){return[]}},findOne:function(t,e){var n;return null!==(n=this.find(t,e)[0])&&void 0!==n?n:null},findByData:function(t,e,n){if(void 0===n)return this.find(t,"[data-".concat(e,"]"));var r=CSS.escape(n+"");return this.find(t,"[data-".concat(e,'="').concat(r,'"]'))},findOneByData:function(t,e,n){var r;return null!==(r=this.findByData(t,e,n)[0])&&void 0!==r?r:null},addClass:function(t,e){if(!e)return t;var n=e.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var e;t instanceof Element&&(e=t.classList).add.apply(e,Ae(n))}),t},removeClass:function(t,e){if(!e)return t;var n=e.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var e;t instanceof Element&&(e=t.classList).remove.apply(e,Ae(n))}),t},toggleClass:function(t,e,n){return j(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){return t.classList.toggle(e,n)}),t},hasClass:function(t,e){if(!e)return!1;var n=!0;return j(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){if(!X(e,Array.from(t.classList)))return n=!1,!1}),n},append:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return j(r,function(n){H(n)&&(n=e.create(n)),n&&t.append(n)}),t},prepend:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return j([].concat(r).reverse(),function(n){H(n)&&(n=e.create(n)),n&&t.prepend(n)}),t},remove:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(e){e instanceof Element?e.remove():e instanceof NodeList||nt(e)?Array.from(e).forEach(function(t){return t.remove()}):t.find(e).forEach(function(t){return t.remove()})})},closest:function(t,e){if(e instanceof Element){if(t===e)return t;for(var n=t.parentElement;n;){if(n===e)return n;n=n.parentElement}return null}return void 0===e?t:t.closest(e)},next:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.nextElementSibling;return e?n&&n.matches(e)?n:null:n},prev:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.previousElementSibling;return e?n&&n.matches(e)?n:null:n},nextAll:function(t,e){for(var n=[],r=t.nextElementSibling;r;)(void 0===e||r.matches(e))&&n.push(r),r=r.nextElementSibling;return n},prevAll:function(t,e){for(var n=[],r=t.previousElementSibling;r;)(void 0===e||r.matches(e))&&n.push(r),r=r.previousElementSibling;return n},index:function(t,e){return this.prevAll(t,e).length},nextUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var o=t.nextElementSibling;o&&!(n?o===e:o.matches(e));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var o=t.previousElementSibling;o&&!(n?o===e:o.matches(e));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,e){return e.isConnected||t.parentNode.insertBefore(e,t),this.append(e,t),t},attr:function(t,e,n){return void 0===n?t.getAttribute(e):(null===n?t.removeAttribute(e):t.setAttribute(e,n),t)},prop:function(t,e,n){return void 0===n?t[e]:(t[e]=n,t)},html:function(t,e){return void 0===e?t.innerHTML:(t.innerHTML=e,t)},text:function(t,e){return void 0===e?t.innerText:(t.innerText=e,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var e;e=Z(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",e)}return t.style.display="none",t},show:function(t){var e=this.data(t,"__display__");return void 0===e?t.style.removeProperty("display"):(t.style.display=e,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,e,n){var r=this;if(void 0===e&&void 0===n)return t.dataset;if(J(e))return A(e,function(e,n){return r.data(t,e,n)}),t;var o=/^data-/.test(e+""),i=$t(o?(e+"").replace(/^data-/,""):e+"");return void 0===n?t.dataset[i]:null===n?(delete t.dataset[i],t):(t.dataset[i]=n,t)},removeData:function(t,e){return this.data(t,e,null)},css:function(t,e,n){var r=this;if(H(e)){var o=e.startsWith("--")?e:$t(e);if(void 0===n){if(window.getComputedStyle){var i=window.getComputedStyle(t,null);return i.getPropertyValue(e)||i[$t(e)]||""}return t.style[$t(e)]||""}o.startsWith("--")?t.style.setProperty(o,String(n)):("number"!=typeof n||X(o,Ce)||(n+="px"),t.style[o]=n)}else A(e,function(e,n){r.css(t,e,n)});return t},closestFind:function(t,e,n){var r=this.closest(t,e);return r?this.find(r,n):[]},closestFindOne:function(t,e,n){var r=this.closest(t,e);return r?this.findOne(r,n):null},first:function(t){var e;return t instanceof Element?t:null!==(e=Array.from(t)[0])&&void 0!==e?e:null},last:function(t){var e;if(t instanceof Element)return t;var n=Array.from(t);return null!==(e=n[n.length-1])&&void 0!==e?e:null},create:function(t){if(!H(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var e=document.createElement("template");e.innerHTML=t.trim();var n=e.content;return 1===n.childElementCount&&1===n.children.length?n.firstElementChild:n.cloneNode(!0)},eq:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(e)>=t.length?null:(e<0&&(e=t.length+e),t[e])},after:function(t,e){return t.parentElement?(H(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t.nextElementSibling)):null},before:function(t,e){return t.parentElement?(H(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,e){var n=t instanceof Element?[t]:Array.from(t),r=H(e);return n.filter(function(t){return r?!t.matches(e):t!==e})},collide:function(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return n.x<r.x+r.width&&n.x+n.width>r.x&&n.y<r.y+r.height&&n.y+n.height>r.y},matches:function(t,e){return!!t&&(e instanceof Element?e===t:t.matches(e))},replaceChild:function(t,e,n){return t.replaceChild(e,n)},replaceChildren:function(t){for(var e=this,n=[],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return j(o,function(t){H(t)&&(t=e.create(t)),n.push(t)}),t.replaceChildren.apply(t,n),t},offset:function(t){if(st(t))return{top:t.scrollY,left:t.scrollX};if(pt(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var e=t.getBoundingClientRect(),n=this.offset(window);return{top:e.top+n.top,left:e.left+n.left}},isEditable:function(t){var e;return 3===(null===(e=t)||void 0===e?void 0:e.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(X(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,e,n,r,o){return Z(n)&&(o=r,r=n,n=null),j(e.split(" "),function(e){var i=ye(e.split("."),2),a=i[0],u=i[1],l=function(e){if(!e.cancelBubble){var n,r=function(t,e){for(var n=[],r=3===t.nodeType?t.parentNode:t;r&&(n.push(r),r!==e);)r=r.parentNode;return n}(e.target,t),o=he(be.get(t)),i=ve(r);try{for(i.s();!(n=i.n()).done;){var a,u=n.value,l=!1,c=ve(o);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===e.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==t)continue;var s=Ee(e,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},c=be.get(t);c||(c=[],be.set(t,c)),X(a,we)&&function(t){var e,n,r,o,i,a,u;null!=Se&&Se.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var e=de.getViewportPosition(t);o=e.x,i=e.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var e=de.getViewportPosition(t);Math.hypot(e.x-o,e.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(e=0,n=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-e>300)e=Date.now(),n=de.getViewportPosition(t);else{var o=de.getViewportPosition(t);Math.hypot(o.x-n.x,o.y-n.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),e=Date.now(),n=o}},{passive:!1})),Se.add(t))}(a);var f=C(c,function(t,e){return e.event});X(a,f)||t.addEventListener(a,l,o),c.push({event:a,handler:r,selector:n,listener:l,namespace:u,options:o})}),t},off:function(t,e,n,r,o){Z(n)&&(o=r,r=n,n=null);var i=be.get(t);if(!i)return t;var a=e?e.split(" "):[void 0];return j(a,function(e){var a=ye(void 0===e?[void 0,void 0]:e.split("."),2),u=a[0],l=a[1],c=void 0!==(u=u||void 0),f=void 0!==l;j(he(i).reverse(),function(e){if((!c&&!f||c&&!f&&e.event===u||!c&&f&&e.namespace===l||c&&f&&e.event===u&&e.namespace===l)&&(void 0===u||e.event===u)&&(void 0===r||e.handler===r)&&(void 0===n||e.selector===n)&&(void 0===l||e.namespace===l)&&(void 0===o||e.options===o)){var a=i.indexOf(e);-1!==a&&i.splice(a,1),C(i,function(t,e){return e.event===u?e:null})[0]||t.removeEventListener(e.event,e.listener,e.options)}})}),t}};function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function Pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Te(r.key),r)}}function Te(t){var e=function(t){if("object"!=Oe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Oe(e)?e:e+""}function Me(t,e){return t.get(Le(t,e))}function Le(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=xe);var ke=new WeakMap,Ie=new(function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,n){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,n)}(this,ke,{})},e=[{key:"addListener",value:function(t,e,n){var r=this;if(!Z(e))throw new Error("Callback must be a function.");if(!H(t))throw new Error("Events name must be a string separated by comma.");for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u={callback:e,context:n,args:i};return A(t.split(","),function(t,e){if(!e)return!0;e=e.trim(),r.hasListener(e)?Me(ke,r)[e].push(u):Me(ke,r)[e]=[u]}),this}},{key:"addListenerOnce",value:function(t,e,n){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return A(t.split(","),function(t,o){if(!(o=o.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];e.apply(n,[o].concat(i).concat(u.slice(1))),r.removeListener(o,a)};r.addListener(o,a,n)}),this}},{key:"dispatch",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(!H(t))throw new Error("Events name must be a string seperated by comma.");return A(t.split(","),function(t,n){return!(n=n.trim())||(e.hasListener(n)?void A(Me(ke,e)[n],function(t,e){e.callback.apply(e.context,[n].concat(e.args).concat(r))}):(console.warn("No listeners found for event: ".concat(n)),!0))}),this}},{key:"hasListener",value:function(t,e,n){return tt(e)?!tt(Me(ke,this)[t]):!!C(Me(ke,this)[t],function(t,r){return r.callback===e&&r.context===n||null}).length}},{key:"removeListener",value:function(t,e,n){var r=this;return this.hasListener(t,e,n)&&(tt(e)?Me(ke,this)[t].splice(0):A(Me(ke,this)[t],function(e){return Me(ke,r)[t].splice(e,1),delete Me(ke,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?Me(ke,this)[t]||[]:Me(ke,this)}},{key:"reset",value:function(){var t,e;e={},(t=ke).set(Le(t,this),e)}}],e&&Pe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}());function _e(t){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_e(t)}function De(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ne(r.key),r)}}function Ne(t){var e=function(t){if("object"!=_e(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=_e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_e(e)?e:e+""}function Re(t,e,n){Xe(t,e),e.set(t,n)}function Xe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ye(t,e){return t.get(Be(t,e))}function Ue(t,e,n){return t.set(Be(t,e),n),n}function Be(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=Ie);var qe=new WeakMap,Fe=new WeakMap,We=new WeakSet,ze=function(){return t=function t(e,n){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Xe(this,r=We),r.add(this),Re(this,qe,void 0),Re(this,Fe,void 0),Be(We,this,$e).call(this,e),this.setLang(n)},e=[{key:"translate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(e=void 0===e?this.getLang():e,void 0!==Ye(Fe,this)[n]&&void 0!==Ye(Fe,this)[n][e]&&void 0!==Ye(Fe,this)[n][e][t]){var r=Ye(Fe,this)[n][e][t];return Be(We,this,He).call(this,r)}return"en"!==e?this.translate(t,"en",n):t}},{key:"translateFrom",value:function(t,e,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var i=null===(r=Ye(Fe,this))||void 0===r?void 0:r[o];if(!i)return t;var a=null==i?void 0:i[e],u=null==i?void 0:i[n];if(!a||!u)return t;var l=Be(We,this,Ve).call(this,a,t);if(!l)return t;var c=u[l],f=Be(We,this,He).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Ye(qe,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),Ue(qe,this,(t||"en").trim().toLowerCase().slice(0,2))}}],e&&De(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function $e(t){var e={},n={};A(t,function(t,r){A(r,function(r,o){J(o)?(void 0===e[t]&&(e[t]={}),e[t][r]=o):(void 0===n[t]&&(n[t]={}),n[t][r]=o)})}),Ue(Fe,this,O(!0,e,{core:O({},e.core||{},n)}))}function Ve(t,e){for(var n in t)if(Be(We,this,He).call(this,t[n])===e)return n;return null}function He(t){return Z(t)?t():t}function Ge(t){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ge(t)}function Ze(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function Je(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(n),!0).forEach(function(e){Ke(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ke(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ge(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ge(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qe(t){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(t)}function tn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,en(r.key),r)}}function en(t){var e=function(t){if("object"!=Qe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qe(e)?e:e+""}function nn(t,e,n){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=ze),Je(Je(Je(Je(Je(Je(Je({},u),i),r),a),l),o),n);var rn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,n=[{key:"getPosition",value:function(e,n){e=nn(t,this,on).call(this,e);var r={left:0,top:0};if(n instanceof Element){var o=n.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:e.pageX-r.left,y:e.pageY-r.top}}},{key:"getViewportPosition",value:function(e){return{x:(e=nn(t,this,on).call(this,e)).clientX,y:e.clientY}}},{key:"getElement",value:function(e){return e=nn(t,this,on).call(this,e),window.document.elementFromPoint(e.clientX,e.clientY)}}],null&&tn(e.prototype,null),n&&tn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function on(t){var e,n,r,o,i,a,u,l=null!==(e=null!==(n=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==n?n:null==t?void 0:t.originalEvent)&&void 0!==e?e:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const an=rn;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=rn),e})());