@webalternatif/js-core 1.6.6 → 1.6.8

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,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.webf=e():t.webf=e()}(this,()=>(()=>{"use strict";var t={153(t,e,n){n.d(e,{default:()=>ln});var r={};n.r(r),n.d(r,{debounce:()=>g,equals:()=>p,flatten:()=>h,getScrollbarWidth:()=>b,noop:()=>d,sizeOf:()=>v,strParseFloat:()=>y,throttle:()=>m});var i={};n.r(i),n.d(i,{clone:()=>T,each:()=>j,extend:()=>P,foreach:()=>O,map:()=>C,merge:()=>L,reduce:()=>x});var o={};n.r(o),n.d(o,{dec2hex:()=>N,floorTo:()=>k,hex2dec:()=>R,max:()=>D,min:()=>_,plancher:()=>I,round:()=>M});var a={};n.r(a),n.d(a,{arrayDiff:()=>Y,arrayUnique:()=>W,array_diff:()=>z,array_unique:()=>X,inArray:()=>B,indexOf:()=>F,lastIndexOf:()=>q,range:()=>$});var u={};n.r(u),n.d(u,{isArray:()=>rt,isArrayLike:()=>nt,isBool:()=>tt,isBoolean:()=>Q,isDate:()=>it,isDocument:()=>dt,isDomElement:()=>vt,isEvent:()=>ot,isEventSupported:()=>ft,isFloat:()=>lt,isFunction:()=>J,isInt:()=>ut,isInteger:()=>at,isObject:()=>Z,isPlainObject:()=>K,isScalar:()=>ct,isString:()=>G,isTouchDevice:()=>st,isUndefined:()=>et,isWindow:()=>pt});var l={};n.r(l),n.d(l,{addUrlParam:()=>Bt,br2nl:()=>Et,camelCase:()=>Ht,compareMixAlphaDigits:()=>Qt,decodeHtml:()=>Ft,escapeRegex:()=>$t,f:()=>Gt,format:()=>Vt,formatSize:()=>Kt,hex2rgb:()=>Ut,hextorgb:()=>Nt,hilite:()=>Jt,htmlquotes:()=>qt,htmlsimplequotes:()=>Wt,insert:()=>Pt,insertTag:()=>Ct,lcfirst:()=>Ot,ltrim:()=>gt,nl2br:()=>At,noAccent:()=>St,numberFormat:()=>Mt,pad:()=>It,parse_url:()=>Rt,repeat:()=>Xt,reverse:()=>Tt,rgb2hex:()=>_t,rgbtohex:()=>Dt,rtrim:()=>bt,stripMultipleSpaces:()=>wt,stripTags:()=>Yt,substringIndex:()=>xt,thousandSeparator:()=>Lt,toCssClassName:()=>Zt,toPrice:()=>kt,toUrl:()=>zt,trim:()=>mt,ucfirst:()=>jt});var c={};function f(t){return f="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},f(t)}n.r(c),n.d(c,{rand:()=>ae,randAlpha:()=>ee,randAlphaCs:()=>ne,randAlphaNum:()=>re,randAlphaNumCs:()=>ie,randNum:()=>oe,uniqid:()=>ue});var s,p=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(f(t)!==f(e)||null===t||null===e)return!1;if(rt(t)||Z(t)){if(n.has(t))return n.get(t)===e;n.set(t,e)}if(rt(t)||rt(e))return!(!rt(t)||!rt(e))&&t.length===e.length&&t.every(function(t,i){return r(t,e[i],n)});if(Z(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 i=Object.keys(t),o=Object.keys(e);return i.length===o.length&&i.every(function(i){return r(t[i],e[i],n)})}return!1},i=e[0];return e.slice(1).every(function(t){return r(i,t)})},d=function(){},v=function(t){return C(t,d).length},h=function(t){return Z(t)||rt(t)?[].concat.apply([],C(t,function(t,e){return h(e)})):t},y=function(t){if(!t)return 0;var e=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(e)?0:e},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],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=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(i||this,c)):!o&&r&&(o=setTimeout(function(){o=null,a=n?Date.now():0,t.apply(i||u,c)},p))}},g=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,i=null,o=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&&(o||(o=f,t.apply(r||this,l))),clearTimeout(i),i=null,i=setTimeout(function(){o=f,clearTimeout(i),i=null,t.apply(r||a,l)},e)}},b=(s=null,function(){if(null===s){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(),s=e-r}return s});function w(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,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||E(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 S(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=E(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function E(t,e){if(t){if("string"==typeof t)return A(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)?A(t,e):void 0}}function A(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 j=function(t,e,n){if(K(t)){var r=-1;for(var i in t)if(t.hasOwnProperty(i)&&!1===e.call(null!=n?n:t[i],i,t[i],t,++r))return}else{if(G(t)){for(var o=t.split(""),a=0;a<o.length;a++)if(!1===e.call(null!=n?n:o[a],a,o[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=S(t.entries());try{for(c.s();!(u=c.n()).done;){var f=w(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=S(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(nt(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},O=function(t,e,n){return j(t,function(t,r,i,o){return e.apply(n||r,[r,t,i,o])},n)},C=function(t,e,n){var r=[];return j(t,function(t,i,o,a){var u=e.call(n,t,i,o,a);null!==u&&r.push(u)}),r},x=function(t,e,n){var r=!et(n);if(!v(t)&&!r)throw new Error("Nothing to reduce and no initial value");var i=r?n:C(t,function(t,e,n,r){return 0===r?e:null})[0];return j(t,function(t,n,o,a){(0!==a||r)&&(i=e(i,n,t,a,o))}),i},P=function(){for(var t=!1,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(Q(n[0])&&(t=n.shift()),n.length<2||et(n[0])||null===n[0])return n[0];var i=n[0];return Z(i)||(n[0]=i={}),O(n.slice(1),function(e){if(Z(e))for(var n in e)t&&K(e[n])?i[n]=P(!0,{},i[n],e[n]):i[n]=e[n]}),i},T=function(t){if(!Z(t)&&!rt(t)||pt(t))return t;var e=Z(t)?{}:[];return j(t,function(t,n){Z(n)?e[t]=T(n):e[t]=n}),e},L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=C(t,function(t,e){return e});j(e,function(t,e){n.push(e)});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return i.length?L.apply(void 0,[n].concat(i)):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)},k=function(t,e){if(e<=0)throw new Error("Precision must be greater than 0");return M(Math.floor(t/e)*e,6)},I=k,_=function(t,e){return U(t,e=J(e)?e:function(t,e){return t<e?-1:1})},D=function(t,e){return U(t,e=J(e)?e:function(t,e){return t>e?-1:1})};function U(t,e){var n;return j(t,function(t,r,i,o){n=0===o||e.call(null,n,r)>0?r:n}),n}var N=function(t){return t.toString(16)},R=function(t){t=Tt(t+"").toUpperCase();var e=0;return j(t,function(t,n){var r="0123456789ABCDEF".indexOf(n);if(-1===r)return e=0,!1;e+=r*Math.pow(2,4*t)}),e},B=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],i=!1;return j(e,function(e,o){if(e>=n)if(r){if(o===t)return i=!0,!1}else{if(Z(t)&&Z(o))return i=p(o,t),!1;if(rt(t)&&Z(o))return i=p(o,t),!1;if(o==t)return i=!0,!1}}),i},F=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=G(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},q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=G(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},W=function(t){return t.filter(function(t,e,n){return e===F(n,t)})},X=W,Y=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!B(t,e,0,n)})},z=Y,$=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(et(e)||t<1||0===n||t<Math.abs(n))return r;var i=t*n;if(G(e)){e=e.charCodeAt(0);for(var o=0;n>0?o<i:o>i;o+=n)r.push(String.fromCharCode(e+o))}else if(at(e))for(var a=0;n>0?a<i:a>i;a+=n)r.push(e+a);return r};function H(t){return H="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},H(t)}var V,G=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},Z=function(t){return!!t&&!rt(t)&&"object"===H(t)},J=function(t){return!!t&&"function"==typeof t},K=function(t){return!1!==Z(t)&&(void 0===t.constructor||!1!==Z(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},Q=function(t){return!0===t||!1===t},tt=Q,et=function(t){return void 0===t},nt=function(t){return!!t&&!G(t)&&!J(t)&&ut(t.length)&&Number.isFinite(t.length)},rt=function(t){return Array.isArray(t)},it=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},ot=function(t){return Z(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},at=function(t){return/^[-+]?\d+$/.test(t+"")},ut=at,lt=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},ct=function(t){var e=H(t);return null===t||B(e,["string","number","bigint","symbol","boolean"])},ft=(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}),st=function(){return ft("touchstart")},pt=function(t){return!!t&&t===t.window},dt=function(t){return!!t&&9===t.nodeType},vt=function(t){return Z(t)&&1===t.nodeType&&!K(t)};function ht(t){return function(t){if(Array.isArray(t))return yt(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 yt(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)?yt(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 yt(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 mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return gt(bt(t,e),e)},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){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(e,"+$"),"g"),"")},wt=function(t){return t.trim().replace(/ +/g," ")},St=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")},Et=function(t){return t.split(/<br\s*\/*>/).join("\n")},At=function(t){return t.split("\n").join("<br>")},jt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ot=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,i="<".concat(e,">"),o="</".concat(e,">");return["br","hr","img","link","input"].includes(e)&&(i="<".concat(e,"/>"),o=""),t.slice(0,n)+i+t.slice(n,n+r)+o+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)},Pt=function(t,e,n){return n>=t.length?t:ht(t).reduce(function(t,r,i){return i>0&&i%n===0?t+e+r:t+r},"")},Tt=function(t){for(var e=[],n=0;n<t.length;n++)e.unshift(t[n]);return e.join("")},Lt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(et(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",i=Tt(Pt(Tt(r),Tt(e),3));return t.indexOf(".")>0?i+n+xt(t,".",-1):i}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]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=M(parseFloat(t.replace(",",".")),e)+"",0===e)return Lt(t,r,i);var o=t.lastIndexOf(".");if(-1===o)return!0===n&&(t+=i+Xt("0",e)),Lt(t,r,i);var a=t.slice(o+1).length;return Lt(e>a?t+"0".repeat(e-a):t.slice(0,o+1+e),r,i)},kt=Mt,It=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 et(e)||t.length>=e||!B(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)},_t=function(t,e,n){return rt(t)?_t.apply(void 0,ht(t)):at(t)&&at(e)&&at(n)?[It(N(parseInt(t)),2,"0").toUpperCase(),It(N(parseInt(e)),2,"0").toUpperCase(),It(N(parseInt(n)),2,"0").toUpperCase()].join(""):""},Dt=_t,Ut=function(t){if(!G(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(Pt(t,",",2).split(","),function(t,e){return R(e)})},Nt=Ut,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={},i=14;i--;)n[i]&&(r[e[i]]=n[i]);return delete r.source,r},Bt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(K(e))return j(e,function(e,n){t=Bt(t,e,n)}),t;var r,i=Rt(t),o="";(r=t.indexOf("#"))>-1&&(o=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(e),u=null===n?"":encodeURIComponent(n);if(!i.query)return t+"?"+a+"="+u+o;for(var l=i.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),i.scheme&&i.host?i.scheme+"://"+i.host+(i.path||"")+"?"+l.join("&")+o:(i.host||"")+i.path+"?"+l.join("&")+o},Ft=function(t){return G(t)?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'"):""},qt=function(t){return G(t)?t.replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},Wt=function(t){return G(t)?t.replace(/'/g,"&#039;"):""},Xt=function(t,e){return G(t)&&lt(e)?new Array(Math.floor(e)+1).join(t):""},Yt=function(t,e){if(G(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,"")},zt=function(t){return mt(St(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},$t=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},Ht=function(t){if(!t)return"";var e="",n=!1,r=!1,i=!1;t=mt(t),t=mt(t,"_"),t=mt(t,"-");var o=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),i=o(e),e=u,a(u)?null:(r?(u=u.toUpperCase(),n=!0):o(u)?((0===t||i&&!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&&j(n,function(e,n){if(G(n)){var r={};r[e]=n,n=r}j(n,function(e,n){t=t.replace(new RegExp("\\{"+e+"\\}","gm"),function(t){return et(n)?t:n})})}),t},Gt=Vt,Zt=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)})},Jt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Ft(t);var r,i,o=St(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(rt(e)||(e=[e]),j(e,function(t,e){e.length&&(e=Ft(e),r=St(e).toLowerCase().replace(/[[\]]+/g,""),i=new RegExp($t(r),"g"),a=o.replace(i,"[".concat(r,"]")),o=a)}),!a.length)return t;var u=0,l="",c="end";return j(a,function(e,r){var i=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(n,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(n,">"),c="end"):(u+=1,l+=i)}),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>")},Kt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=-1,r=0;do{t/=1024,n++}while(t>999);at(t)||(r=1);var i=C(["k","M","G","T","P","E"],function(t,e){return e+"B"});return Mt(Math.max(t,0),r,!0,"",e)+" "+i[n]},Qt=function(t,e){if(t===e)return 0;if(at(t)&&at(e))return Math.sign(t-e);for(var n="",r=0;r<Math.min(t.length,e.length)&&t.charAt(r)===e.charAt(r)&&!at(t);r++)n+=t.charAt(r);t=t.slice(n.length),e=e.slice(n.length);var i="",o=null;j(t,function(t,e){if(i)return e>="0"&&e<="9"&&(i+=e,!0);o=t,e>="0"&&e<="9"&&(i+=e)});var a="",u=null;return j(e,function(t,e){if(a)return e>="0"&&e<="9"&&(a+=e,!0);u=t,e>="0"&&e<="9"&&(a+=e)}),i.length&&a.length&&o===u&&t.substring(0,o)===e.substring(0,u)?Math.sign(i-a):t>e?1:-1};O(Object.keys(l),function(t){var e=l[t],n=String.prototype,r=n[t];n[t]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r&&n.length===r.length?r.apply(this,n):e.apply(void 0,[this].concat(n))}});var te,ee=function(t){return ae("abcdefghijklmnopqrstuvwxyz".split(""),t)},ne=function(t){return ae("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},re=function(t){return ae("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},ie=function(t){return ae("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},oe=function(t){return ae("0123456789".split(""),t)},ae=function(t,e){for(var n="",r=0;r<e;r++)n+=t[Math.floor(1e3*Math.random())%t.length];return n},ue=(te=0,function(){return te++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(te.toString(36),"_").concat(re(5))});function le(t){return le="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},le(t)}function ce(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,fe(r.key),r)}}function fe(t){var e=function(t){if("object"!=le(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=le(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==le(e)?e:e+""}function se(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 pe=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=se(t,this,de).call(this,e);var r={left:0,top:0};if(n instanceof Element){var i=n.getBoundingClientRect();r={left:window.scrollX+i.left,top:window.scrollY+i.top}}return{x:e.pageX-r.left,y:e.pageY-r.top}}},{key:"getViewportPosition",value:function(e){return{x:(e=se(t,this,de).call(this,e)).clientX,y:e.clientY}}},{key:"getElement",value:function(e){return e=se(t,this,de).call(this,e),window.document.elementFromPoint(e.clientX,e.clientY)}}],null&&ce(e.prototype,null),n&&ce(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function de(t){var e,n,r,i,o,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!==(i=null!==(o=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==o?o:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==i?i: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 ve=pe;function he(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ge(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function ye(t){return function(t){if(Array.isArray(t))return be(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ge(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 me(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,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||ge(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 ge(t,e){if(t){if("string"==typeof t)return be(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)?be(t,e):void 0}}function be(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=pe);var we=new Map,Se=["longtap","dbltap"],Ee=new Set;function Ae(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 i=t[n];return J(i)?i.bind(t):i}})}function je(t){return function(t){if(Array.isArray(t))return Oe(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 Oe(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)?Oe(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 Oe(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]),nt(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,je(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,je(n))}),t},toggleClass:function(t,e,n){return O(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 O(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){if(!B(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),i=1;i<n;i++)r[i-1]=arguments[i];return O(r,function(n){G(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),i=1;i<n;i++)r[i-1]=arguments[i];return O([].concat(r).reverse(),function(n){G(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||rt(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 i=t.nextElementSibling;i&&!(n?i===e:i.matches(e));)r.push(i),i=i.nextElementSibling;return r},prevUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var i=t.previousElementSibling;i&&!(n?i===e:i.matches(e));)r.push(i),i=i.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=J(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(K(e))return j(e,function(e,n){return r.data(t,e,n)}),t;var i=/^data-/.test(e+""),o=Ht(i?(e+"").replace(/^data-/,""):e+"");return void 0===n?t.dataset[o]:null===n?(delete t.dataset[o],t):(t.dataset[o]=n,t)},removeData:function(t,e){return this.data(t,e,null)},css:function(t,e,n){var r=this;if(G(e)){var i=e.startsWith("--")?e:Ht(e);if(void 0===n){if(window.getComputedStyle){var o=window.getComputedStyle(t,null);return o.getPropertyValue(e)||o[Ht(e)]||""}return t.style[Ht(e)]||""}i.startsWith("--")?t.style.setProperty(i,String(n)):("number"!=typeof n||B(i,Ce)||(n+="px"),t.style[i]=n)}else j(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(!G(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?(G(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t.nextElementSibling)):null},before:function(t,e){return t.parentElement?(G(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=G(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,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return O(i,function(t){G(t)&&(t=e.create(t)),n.push(t)}),t.replaceChildren.apply(t,n),t},offset:function(t){if(pt(t))return{top:t.scrollY,left:t.scrollX};if(dt(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&&(B(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,i){return J(n)&&(i=r,r=n,n=null),O(e.split(" "),function(e){var o=me(e.split("."),2),a=o[0],u=o[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),i=ye(we.get(t)),o=he(r);try{for(o.s();!(n=o.n()).done;){var a,u=n.value,l=!1,c=he(i);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=Ae(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){o.e(t)}finally{o.f()}}},c=we.get(t);c||(c=[],we.set(t,c)),B(a,Se)&&function(t){var e,n,r,i,o,a,u;null!=Ee&&Ee.has(t)||("longtap"===t&&(r=null,i=0,o=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var e=ve.getViewportPosition(t);i=e.x,o=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=ve.getViewportPosition(t);Math.hypot(e.x-i,e.y-o)>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=ve.getViewportPosition(t);else{var i=ve.getViewportPosition(t);Math.hypot(i.x-n.x,i.y-n.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),e=Date.now(),n=i}},{passive:!1})),Ee.add(t))}(a);var f=C(c,function(t,e){return e.event});B(a,f)||t.addEventListener(a,l,i),c.push({event:a,handler:r,selector:n,listener:l,namespace:u,options:i})}),t},off:function(t,e,n,r,i){J(n)&&(i=r,r=n,n=null);var o=we.get(t);if(!o)return t;var a=e?e.split(" "):[void 0];return O(a,function(e){var a=me(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;O(ye(o).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===i||e.options===i)){var a=o.indexOf(e);-1!==a&&o.splice(a,1),C(o,function(t,e){return e.event===u?e:null})[0]||t.removeEventListener(e.event,e.listener,e.options)}})}),t}};function Pe(t){return Pe="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},Pe(t)}function Te(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,Le(r.key),r)}}function Le(t){var e=function(t){if("object"!=Pe(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Pe(e)?e:e+""}function Me(t,e){return t.get(ke(t,e))}function ke(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 Ie=new WeakMap,_e=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,Ie,{})},e=[{key:"addListener",value:function(t,e,n){var r=this;if(!J(e))throw new Error("Callback must be a function.");if(!G(t))throw new Error("Events name must be a string separated by comma.");for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var u={callback:e,context:n,args:o};return j(t.split(","),function(t,e){if(!e)return!0;e=e.trim(),r.hasListener(e)?Me(Ie,r)[e].push(u):Me(Ie,r)[e]=[u]}),this}},{key:"addListenerOnce",value:function(t,e,n){for(var r=this,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return j(t.split(","),function(t,i){if(!(i=i.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,[i].concat(o).concat(u.slice(1))),r.removeListener(i,a)};r.addListener(i,a,n)}),this}},{key:"dispatch",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(!G(t))throw new Error("Events name must be a string seperated by comma.");return j(t.split(","),function(t,n){return!(n=n.trim())||(e.hasListener(n)?void j(Me(Ie,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 et(e)?!et(Me(Ie,this)[t]):!!C(Me(Ie,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)&&(et(e)?Me(Ie,this)[t].splice(0):j(Me(Ie,this)[t],function(e){return Me(Ie,r)[t].splice(e,1),delete Me(Ie,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?Me(Ie,this)[t]||[]:Me(Ie,this)}},{key:"reset",value:function(){var t,e;e={},(t=Ie).set(ke(t,this),e)}}],e&&Te(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),De=new _e;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 Ne(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,Re(r.key),r)}}function Re(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 Be(t,e,n){Fe(t,e),e.set(t,n)}function Fe(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qe(t,e){return t.get(Xe(t,e))}function We(t,e,n){return t.set(Xe(t,e),n),n}function Xe(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=De);var Ye=new WeakMap,ze=new WeakMap,$e=new WeakSet,He=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),Fe(this,r=$e),r.add(this),Be(this,Ye,void 0),Be(this,ze,void 0),Xe($e,this,Ve).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!==qe(ze,this)[n]&&void 0!==qe(ze,this)[n][e]&&void 0!==qe(ze,this)[n][e][t]){var r=qe(ze,this)[n][e][t];return Xe($e,this,Ze).call(this,r)}return"en"!==e?this.translate(t,"en",n):t}},{key:"translateFrom",value:function(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var o=null===(r=qe(ze,this))||void 0===r?void 0:r[i];if(!o)return t;var a=null==o?void 0:o[e],u=null==o?void 0:o[n];if(!a||!u)return t;var l=Xe($e,this,Ge).call(this,a,t);if(!l)return t;var c=u[l],f=Xe($e,this,Ze).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return qe(Ye,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)),We(Ye,this,(t||"en").trim().toLowerCase().slice(0,2))}}],e&&Ne(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Ve(t){var e={},n={};j(t,function(t,r){j(r,function(r,i){K(i)?(void 0===e[t]&&(e[t]={}),e[t][r]=i):(void 0===n[t]&&(n[t]={}),n[t][r]=i)})}),We(ze,this,P(!0,e,{core:P({},e.core||{},n)}))}function Ge(t,e){for(var n in t)if(Xe($e,this,Ze).call(this,t[n])===e)return n;return null}function Ze(t){return J(t)?t():t}function Je(t){return Je="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},Je(t)}function Ke(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 Qe(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ke(Object(n),!0).forEach(function(e){tn(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function tn(t,e,n){return(e=function(t){var e=function(t){if("object"!=Je(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Je(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function en(t){return en="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},en(t)}function nn(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,rn(r.key),r)}}function rn(t){var e=function(t){if("object"!=en(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==en(e)?e:e+""}function on(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=He),Qe(Qe(Qe(Qe(Qe(Qe(Qe({},l),a),i),u),c),o),r);var an=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=on(t,this,un).call(this,e);var r={left:0,top:0};if(n instanceof Element){var i=n.getBoundingClientRect();r={left:window.scrollX+i.left,top:window.scrollY+i.top}}return{x:e.pageX-r.left,y:e.pageY-r.top}}},{key:"getViewportPosition",value:function(e){return{x:(e=on(t,this,un).call(this,e)).clientX,y:e.clientY}}},{key:"getElement",value:function(e){return e=on(t,this,un).call(this,e),window.document.elementFromPoint(e.clientX,e.clientY)}}],null&&nn(e.prototype,null),n&&nn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n}();function un(t){var e,n,r,i,o,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!==(i=null!==(o=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==o?o:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==i?i: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 ln=an;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=an)},37(t,e,n){n.d(e,{default:()=>w});var r=n(531),i=n(385);function o(t){return o="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},o(t)}function a(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,u(r.key),r)}}function u(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function l(t,e,n){c(t,e),e.set(t,n)}function c(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(t,e){return t.get(p(t,e))}function s(t,e,n){return t.set(p(t,e),n),n}function p(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 d=new WeakMap,v=new WeakMap,h=new WeakSet,y=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),c(this,r=h),r.add(this),l(this,d,void 0),l(this,v,void 0),p(h,this,m).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!==f(v,this)[n]&&void 0!==f(v,this)[n][e]&&void 0!==f(v,this)[n][e][t]){var r=f(v,this)[n][e][t];return p(h,this,b).call(this,r)}return"en"!==e?this.translate(t,"en",n):t}},{key:"translateFrom",value:function(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var o=null===(r=f(v,this))||void 0===r?void 0:r[i];if(!o)return t;var a=null==o?void 0:o[e],u=null==o?void 0:o[n];if(!a||!u)return t;var l=p(h,this,g).call(this,a,t);if(!l)return t;var c=u[l],s=p(h,this,b).call(this,c);return null!=s?s:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return f(d,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)),s(d,this,(t||"en").trim().toLowerCase().slice(0,2))}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function m(t){var e={},n={};(0,i.each)(t,function(t,o){(0,i.each)(o,function(i,o){(0,r.isPlainObject)(o)?(void 0===e[t]&&(e[t]={}),e[t][i]=o):(void 0===n[t]&&(n[t]={}),n[t][i]=o)})}),s(v,this,(0,i.extend)(!0,e,{core:(0,i.extend)({},e.core||{},n)}))}function g(t,e){for(var n in t)if(p(h,this,b).call(this,t[n])===e)return n;return null}function b(t){return(0,r.isFunction)(t)?t():t}const w=y;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=y)},626(t,e,n){n.r(e),n.d(e,{arrayDiff:()=>p,arrayUnique:()=>f,array_diff:()=>d,array_unique:()=>s,inArray:()=>u,indexOf:()=>l,lastIndexOf:()=>c,range:()=>v});var r=n(385),i=n(531),o=n(245),a=n(82),u=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=!1;return(0,r.each)(e,function(e,r){if(e>=n)if(o){if(r===t)return u=!0,!1}else{if((0,i.isObject)(t)&&(0,i.isObject)(r))return u=(0,a.equals)(r,t),!1;if((0,i.isArray)(t)&&(0,i.isObject)(r))return u=(0,a.equals)(r,t),!1;if(r==t)return u=!0,!1}}),u},l=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=(0,i.isString)(t)?(0,r.map)(t,function(t,e){return e}):t;for(n=n<0?Math.ceil(n)+o.length:Math.floor(n);n<o.length;n++)if(n in o&&o[n]===e)return n;return-1},c=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=(0,i.isString)(t)?(0,r.map)(t,function(t,e){return e}):t;for(n=n<0?o.length+Math.ceil(n):Math.floor(n);n>=0;n--)if(n in o&&o[n]===e)return n;return-1},f=function(t){return t.filter(function(t,e,n){return e===l(n,t)})},s=f,p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!u(t,e,0,n)})},d=p,v=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=(0,o.round)(t),n=(0,o.round)(n);var r=[];if((0,i.isUndefined)(e)||t<1||0===n||t<Math.abs(n))return r;var a=t*n;if((0,i.isString)(e)){e=e.charCodeAt(0);for(var u=0;n>0?u<a:u>a;u+=n)r.push(String.fromCharCode(e+u))}else if((0,i.isInteger)(e))for(var l=0;n>0?l<a:l>a;l+=n)r.push(e+l);return r}},765(t,e,n){n.d(e,{default:()=>S});var r=n(531),i=n(54),o=n(385),a=n(626),u=n(153);function l(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,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function c(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(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 f(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,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}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 s(t,e){if(t){if("string"==typeof t)return p(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)?p(t,e):void 0}}function p(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 d=new Map,v=["longtap","dbltap"],h=new Set;function y(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,i){if(n in e)return Reflect.get(e,n,i);var o=t[n];return(0,r.isFunction)(o)?o.bind(t):o}})}function m(t){return function(t){if(Array.isArray(t))return g(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 g(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)?g(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 g(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 b=["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"],w={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]),(0,r.isArrayLike)(e))return(0,o.map)(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,m(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,m(n))}),t},toggleClass:function(t,e,n){return(0,o.foreach)(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(0,o.foreach)(e.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(e){if(!(0,a.inArray)(e,Array.from(t.classList)))return n=!1,!1}),n},append:function(t){for(var e=this,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(0,o.foreach)(i,function(n){(0,r.isString)(n)&&(n=e.create(n)),n&&t.append(n)}),t},prepend:function(t){for(var e=this,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return(0,o.foreach)([].concat(i).reverse(),function(n){(0,r.isString)(n)&&(n=e.create(n)),n&&t.prepend(n)}),t},remove:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];n.forEach(function(e){e instanceof Element?e.remove():e instanceof NodeList||(0,r.isArray)(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 i=t.nextElementSibling;i&&!(n?i===e:i.matches(e));)r.push(i),i=i.nextElementSibling;return r},prevUntil:function(t,e){var n=!1,r=[];e instanceof Element&&(n=!0);for(var i=t.previousElementSibling;i&&!(n?i===e:i.matches(e));)r.push(i),i=i.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=(0,r.isFunction)(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 a=this;if(void 0===e&&void 0===n)return t.dataset;if((0,r.isPlainObject)(e))return(0,o.each)(e,function(e,n){return a.data(t,e,n)}),t;var u=/^data-/.test(e+""),l=(0,i.camelCase)(u?(e+"").replace(/^data-/,""):e+"");return void 0===n?t.dataset[l]:null===n?(delete t.dataset[l],t):(t.dataset[l]=n,t)},removeData:function(t,e){return this.data(t,e,null)},css:function(t,e,n){var u=this;if((0,r.isString)(e)){var l=e.startsWith("--")?e:(0,i.camelCase)(e);if(void 0===n){if(window.getComputedStyle){var c=window.getComputedStyle(t,null);return c.getPropertyValue(e)||c[(0,i.camelCase)(e)]||""}return t.style[(0,i.camelCase)(e)]||""}l.startsWith("--")?t.style.setProperty(l,String(n)):("number"!=typeof n||(0,a.inArray)(l,b)||(n+="px"),t.style[l]=n)}else(0,o.each)(e,function(e,n){u.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(!(0,r.isString)(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?((0,r.isString)(e)&&(e=this.create(e)),t.parentElement.insertBefore(e,t.nextElementSibling)):null},before:function(t,e){return t.parentElement?((0,r.isString)(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),i=(0,r.isString)(e);return n.filter(function(t){return i?!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=[],i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];return(0,o.foreach)(a,function(t){(0,r.isString)(t)&&(t=e.create(t)),n.push(t)}),t.replaceChildren.apply(t,n),t},offset:function(t){if((0,r.isWindow)(t))return{top:t.scrollY,left:t.scrollX};if((0,r.isDocument)(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&&((0,a.inArray)(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,i,s){return(0,r.isFunction)(n)&&(s=i,i=n,n=null),(0,o.foreach)(e.split(" "),function(e){var r=f(e.split("."),2),p=r[0],m=r[1],g=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),i=c(d.get(t)),o=l(r);try{for(o.s();!(n=o.n()).done;){var a,u=n.value,f=!1,s=l(i);try{for(s.s();!(a=s.n()).done;){var p=a.value;if(p.event===e.type){if(p.selector){if(!u.matches(p.selector))continue}else if(u!==t)continue;var v=y(e,u);if(p.handler.call(u,v),v._immediateStopped)return;v._propagationStopped&&(f=!0)}}}catch(t){s.e(t)}finally{s.f()}if(f)return}}catch(t){o.e(t)}finally{o.f()}}},b=d.get(t);b||(b=[],d.set(t,b)),(0,a.inArray)(p,v)&&function(t){var e,n,r,i,o,a,l;null!=h&&h.has(t)||("longtap"===t&&(r=null,i=0,o=0,a=null,l=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var e=u.default.getViewportPosition(t);i=e.x,o=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=u.default.getViewportPosition(t);Math.hypot(e.x-i,e.y-o)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",l),document.addEventListener("touchcancel",l)),"dbltap"===t&&(e=0,n=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-e>300)e=Date.now(),n=u.default.getViewportPosition(t);else{var i=u.default.getViewportPosition(t);Math.hypot(i.x-n.x,i.y-n.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),e=Date.now(),n=i}},{passive:!1})),h.add(t))}(p);var w=(0,o.map)(b,function(t,e){return e.event});(0,a.inArray)(p,w)||t.addEventListener(p,g,s),b.push({event:p,handler:i,selector:n,listener:g,namespace:m,options:s})}),t},off:function(t,e,n,i,a){(0,r.isFunction)(n)&&(a=i,i=n,n=null);var u=d.get(t);if(!u)return t;var l=e?e.split(" "):[void 0];return(0,o.foreach)(l,function(e){var r=f(void 0===e?[void 0,void 0]:e.split("."),2),l=r[0],s=r[1],p=void 0!==(l=l||void 0),d=void 0!==s;(0,o.foreach)(c(u).reverse(),function(e){if((!p&&!d||p&&!d&&e.event===l||!p&&d&&e.namespace===s||p&&d&&e.event===l&&e.namespace===s)&&(void 0===l||e.event===l)&&(void 0===i||e.handler===i)&&(void 0===n||e.selector===n)&&(void 0===s||e.namespace===s)&&(void 0===a||e.options===a)){var r=u.indexOf(e);-1!==r&&u.splice(r,1),(0,o.map)(u,function(t,e){return e.event===l?e:null})[0]||t.removeEventListener(e.event,e.listener,e.options)}})}),t}};const S=w;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=w)},74(t,e,n){n.d(e,{default:()=>d});var r=n(531),i=n(385);function o(t){return o="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},o(t)}function a(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,u(r.key),r)}}function u(t){var e=function(t){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(e)?e:e+""}function l(t,e){return t.get(c(t,e))}function c(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 f=new WeakMap,s=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,f,{})},e=[{key:"addListener",value:function(t,e,n){var o=this;if(!(0,r.isFunction)(e))throw new Error("Callback must be a function.");if(!(0,r.isString)(t))throw new Error("Events name must be a string separated by comma.");for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];var s={callback:e,context:n,args:u};return(0,i.each)(t.split(","),function(t,e){if(!e)return!0;e=e.trim(),o.hasListener(e)?l(f,o)[e].push(s):l(f,o)[e]=[s]}),this}},{key:"addListenerOnce",value:function(t,e,n){for(var r=this,o=arguments.length,a=new Array(o>3?o-3:0),u=3;u<o;u++)a[u-3]=arguments[u];return(0,i.each)(t.split(","),function(t,i){if(!(i=i.trim()))return!0;var o=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];e.apply(n,[i].concat(a).concat(u.slice(1))),r.removeListener(i,o)};r.addListener(i,o,n)}),this}},{key:"dispatch",value:function(t){for(var e=this,n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];if(!(0,r.isString)(t))throw new Error("Events name must be a string seperated by comma.");return(0,i.each)(t.split(","),function(t,n){return!(n=n.trim())||(e.hasListener(n)?void(0,i.each)(l(f,e)[n],function(t,e){e.callback.apply(e.context,[n].concat(e.args).concat(o))}):(console.warn("No listeners found for event: ".concat(n)),!0))}),this}},{key:"hasListener",value:function(t,e,n){return(0,r.isUndefined)(e)?!(0,r.isUndefined)(l(f,this)[t]):!!(0,i.map)(l(f,this)[t],function(t,r){return r.callback===e&&r.context===n||null}).length}},{key:"removeListener",value:function(t,e,n){var o=this;return this.hasListener(t,e,n)&&((0,r.isUndefined)(e)?l(f,this)[t].splice(0):(0,i.each)(l(f,this)[t],function(e){return l(f,o)[t].splice(e,1),delete l(f,o)[t],!1})),this}},{key:"getListeners",value:function(t){return t?l(f,this)[t]||[]:l(f,this)}},{key:"reset",value:function(){var t,e;e={},(t=f).set(c(t,this),e)}}],e&&a(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),p=new s;const d=p;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=p)},531(t,e,n){n.r(e),n.d(e,{isArray:()=>v,isArrayLike:()=>d,isBool:()=>s,isBoolean:()=>f,isDate:()=>h,isDocument:()=>j,isDomElement:()=>O,isEvent:()=>y,isEventSupported:()=>S,isFloat:()=>b,isFunction:()=>l,isInt:()=>g,isInteger:()=>m,isObject:()=>u,isPlainObject:()=>c,isScalar:()=>w,isString:()=>a,isTouchDevice:()=>E,isUndefined:()=>p,isWindow:()=>A});var r=n(626);function i(t){return i="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},i(t)}var o,a=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},u=function(t){return!!t&&!v(t)&&"object"===i(t)},l=function(t){return!!t&&"function"==typeof t},c=function(t){return!1!==u(t)&&(void 0===t.constructor||!1!==u(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},f=function(t){return!0===t||!1===t},s=f,p=function(t){return void 0===t},d=function(t){return!!t&&!a(t)&&!l(t)&&g(t.length)&&Number.isFinite(t.length)},v=function(t){return Array.isArray(t)},h=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},y=function(t){return u(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},m=function(t){return/^[-+]?\d+$/.test(t+"")},g=m,b=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},w=function(t){var e=i(t);return null===t||(0,r.inArray)(e,["string","number","bigint","symbol","boolean"])},S=(o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var e=document.createElement(o[t]||"div"),n=(t="on"+t)in e;return e=null,n}),E=function(){return S("touchstart")},A=function(t){return!!t&&t===t.window},j=function(t){return!!t&&9===t.nodeType},O=function(t){return u(t)&&1===t.nodeType&&!c(t)}},245(t,e,n){n.r(e),n.d(e,{dec2hex:()=>p,floorTo:()=>u,hex2dec:()=>d,max:()=>f,min:()=>c,plancher:()=>l,round:()=>a});var r=n(385),i=n(531),o=n(54),a=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)},u=function(t,e){if(e<=0)throw new Error("Precision must be greater than 0");return a(Math.floor(t/e)*e,6)},l=u,c=function(t,e){return s(t,e=(0,i.isFunction)(e)?e:function(t,e){return t<e?-1:1})},f=function(t,e){return s(t,e=(0,i.isFunction)(e)?e:function(t,e){return t>e?-1:1})};function s(t,e){var n;return(0,r.each)(t,function(t,r,i,o){n=0===o||e.call(null,n,r)>0?r:n}),n}var p=function(t){return t.toString(16)},d=function(t){t=(0,o.reverse)(t+"").toUpperCase();var e=0;return(0,r.each)(t,function(t,n){var r="0123456789ABCDEF".indexOf(n);if(-1===r)return e=0,!1;e+=r*Math.pow(2,4*t)}),e}},54(t,e,n){n.r(e),n.d(e,{addUrlParam:()=>M,br2nl:()=>v,camelCase:()=>B,compareMixAlphaDigits:()=>z,decodeHtml:()=>k,escapeRegex:()=>R,f:()=>q,format:()=>F,formatSize:()=>Y,hex2rgb:()=>P,hextorgb:()=>T,hilite:()=>X,htmlquotes:()=>I,htmlsimplequotes:()=>_,insert:()=>w,insertTag:()=>g,lcfirst:()=>m,ltrim:()=>f,nl2br:()=>h,noAccent:()=>d,numberFormat:()=>A,pad:()=>O,parse_url:()=>L,repeat:()=>D,reverse:()=>S,rgb2hex:()=>C,rgbtohex:()=>x,rtrim:()=>s,stripMultipleSpaces:()=>p,stripTags:()=>U,substringIndex:()=>b,thousandSeparator:()=>E,toCssClassName:()=>W,toPrice:()=>j,toUrl:()=>N,trim:()=>c,ucfirst:()=>y});var r=n(531),i=n(245),o=n(626),a=n(385);function u(t){return function(t){if(Array.isArray(t))return l(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 l(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)?l(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 l(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 c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return f(s(t,e),e)},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(e,"+"),"g"),"")},s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(e,"+$"),"g"),"")},p=function(t){return t.trim().replace(/ +/g," ")},d=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")},v=function(t){return t.split(/<br\s*\/*>/).join("\n")},h=function(t){return t.split("\n").join("<br>")},y=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},m=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},g=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,i="<".concat(e,">"),o="</".concat(e,">");return["br","hr","img","link","input"].includes(e)&&(i="<".concat(e,"/>"),o=""),t.slice(0,n)+i+t.slice(n,n+r)+o+t.slice(n+r)},b=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)},w=function(t,e,n){return n>=t.length?t:u(t).reduce(function(t,r,i){return i>0&&i%n===0?t+e+r:t+r},"")},S=function(t){for(var e=[],n=0;n<t.length;n++)e.unshift(t[n]);return e.join("")},E=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if((0,r.isUndefined)(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var i=Math[t>=1e3?"floor":"ceil"](t)+"",o=S(w(S(i),S(e),3));return t.indexOf(".")>0?o+n+b(t,".",-1):o}return(t+"").replace(".",n)},A=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=(0,i.round)(parseFloat(t.replace(",",".")),e)+"",0===e)return E(t,r,o);var a=t.lastIndexOf(".");if(-1===a)return!0===n&&(t+=o+D("0",e)),E(t,r,o);var u=t.slice(a+1).length;return E(e>u?t+"0".repeat(e-u):t.slice(0,a+1+e),r,o)},j=A,O=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return(0,r.isUndefined)(e)||t.length>=e||!(0,o.inArray)(i,["left","right"])?t:"left"===i?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)},C=function(t,e,n){return(0,r.isArray)(t)?C.apply(void 0,u(t)):(0,r.isInteger)(t)&&(0,r.isInteger)(e)&&(0,r.isInteger)(n)?[O((0,i.dec2hex)(parseInt(t)),2,"0").toUpperCase(),O((0,i.dec2hex)(parseInt(e)),2,"0").toUpperCase(),O((0,i.dec2hex)(parseInt(n)),2,"0").toUpperCase()].join(""):""},x=C,P=function(t){if(!(0,r.isString)(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=(0,a.map)(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(0,a.map)(w(t,",",2).split(","),function(t,e){return(0,i.hex2dec)(e)})},T=P,L=function(t){for(var e=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],n=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},i=14;i--;)n[i]&&(r[e[i]]=n[i]);return delete r.source,r},M=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if((0,r.isPlainObject)(e))return(0,a.each)(e,function(e,n){t=M(t,e,n)}),t;var i,o=L(t),u="";(i=t.indexOf("#"))>-1&&(u=t.slice(i),t=t.slice(0,i));var l=encodeURIComponent(e),c=null===n?"":encodeURIComponent(n);if(!o.query)return t+"?"+l+"="+c+u;for(var f=o.query.split("&"),s=!1,p=0;p<f.length;p++)if(f[p].startsWith(l+"=")){f[p]=l+"="+c,s=!0;break}return s||f.push(l+"="+c),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+f.join("&")+u:(o.host||"")+o.path+"?"+f.join("&")+u},k=function(t){return(0,r.isString)(t)?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'"):""},I=function(t){return(0,r.isString)(t)?t.replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},_=function(t){return(0,r.isString)(t)?t.replace(/'/g,"&#039;"):""},D=function(t,e){return(0,r.isString)(t)&&(0,r.isFloat)(e)?new Array(Math.floor(e)+1).join(t):""},U=function(t,e){if((0,r.isString)(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,"")},N=function(t){return c(d(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},R=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},B=function(t){if(!t)return"";var e="",n=!1,r=!1,i=!1;t=c(t),t=c(t,"_"),t=c(t,"-");var o=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},u=function(t){return"-"===t||"_"===t||" "===t};return(0,a.map)(t,function(t,a){return r=u(e),i=o(e),e=a,u(a)?null:(r?(a=a.toUpperCase(),n=!0):o(a)?((0===t||i&&!n)&&(a=a.toLowerCase()),n=!1):n=!1,a)}).join("")},F=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.length&&(0,a.each)(n,function(e,n){if((0,r.isString)(n)){var i={};i[e]=n,n=i}(0,a.each)(n,function(e,n){t=t.replace(new RegExp("\\{"+e+"\\}","gm"),function(t){return(0,r.isUndefined)(n)?t:n})})}),t},q=F,W=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)})},X=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=k(t);var i,o,u=d(t).toLowerCase().replace(/[[\]]+/g,""),l="";if((0,r.isArray)(e)||(e=[e]),(0,a.each)(e,function(t,e){e.length&&(e=k(e),i=d(e).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(R(i),"g"),l=u.replace(o,"[".concat(i,"]")),u=l)}),!l.length)return t;var c=0,f="",s="end";return(0,a.each)(l,function(e,r){var i=t.charAt(c);"["===r&&"end"===s?(f+="<".concat(n,">"),s="start"):"]"===r&&"start"===s?(f+="</".concat(n,">"),s="end"):(c+=1,f+=i)}),f.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>")},Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=-1,i=0;do{t/=1024,n++}while(t>999);(0,r.isInteger)(t)||(i=1);var o=(0,a.map)(["k","M","G","T","P","E"],function(t,e){return e+"B"});return A(Math.max(t,0),i,!0,"",e)+" "+o[n]},z=function(t,e){if(t===e)return 0;if((0,r.isInteger)(t)&&(0,r.isInteger)(e))return Math.sign(t-e);for(var n="",i=0;i<Math.min(t.length,e.length)&&t.charAt(i)===e.charAt(i)&&!(0,r.isInteger)(t);i++)n+=t.charAt(i);t=t.slice(n.length),e=e.slice(n.length);var o="",u=null;(0,a.each)(t,function(t,e){if(o)return e>="0"&&e<="9"&&(o+=e,!0);u=t,e>="0"&&e<="9"&&(o+=e)});var l="",c=null;return(0,a.each)(e,function(t,e){if(l)return e>="0"&&e<="9"&&(l+=e,!0);c=t,e>="0"&&e<="9"&&(l+=e)}),o.length&&l.length&&u===c&&t.substring(0,u)===e.substring(0,c)?Math.sign(o-l):t>e?1:-1}},385(t,e,n){n.r(e),n.d(e,{clone:()=>v,each:()=>c,extend:()=>d,foreach:()=>f,map:()=>s,merge:()=>h,reduce:()=>p});var r=n(531),i=n(82);function o(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,i,o,a,u=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||u(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 a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function u(t,e){if(t){if("string"==typeof t)return l(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)?l(t,e):void 0}}function l(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 c=function(t,e,n){if((0,r.isPlainObject)(t)){var i=-1;for(var u in t)if(t.hasOwnProperty(u)&&!1===e.call(null!=n?n:t[u],u,t[u],t,++i))return}else{if((0,r.isString)(t)){for(var l=t.split(""),c=0;c<l.length;c++)if(!1===e.call(null!=n?n:l[c],c,l[c],t,c))return t;return t}if(t instanceof Map){var f,s=0,p=a(t.entries());try{for(p.s();!(f=p.n()).done;){var d=o(f.value,2),v=d[0],h=d[1];if(!1===e.call(null!=n?n:h,v,h,t,s++))return t}}catch(t){p.e(t)}finally{p.f()}}else if(t instanceof Set){var y,m=0,g=a(t.values());try{for(g.s();!(y=g.n()).done;){var b=y.value;if(!1===e.call(null!=n?n:b,m,b,t,m))return t;m++}}catch(t){g.e(t)}finally{g.f()}}else if((0,r.isArrayLike)(t))for(var w=Array.from(t),S=0;S<w.length;S++)if(!1===e.call(n||w[S],S,w[S],w,S))return t}return t},f=function(t,e,n){return c(t,function(t,r,i,o){return e.apply(n||r,[r,t,i,o])},n)},s=function(t,e,n){var r=[];return c(t,function(t,i,o,a){var u=e.call(n,t,i,o,a);null!==u&&r.push(u)}),r},p=function(t,e,n){var o=!(0,r.isUndefined)(n);if(!(0,i.sizeOf)(t)&&!o)throw new Error("Nothing to reduce and no initial value");var a=o?n:s(t,function(t,e,n,r){return 0===r?e:null})[0];return c(t,function(t,n,r,i){(0!==i||o)&&(a=e(a,n,t,i,r))}),a},d=function(){for(var t=!1,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if((0,r.isBoolean)(n[0])&&(t=n.shift()),n.length<2||(0,r.isUndefined)(n[0])||null===n[0])return n[0];var o=n[0];return(0,r.isObject)(o)||(n[0]=o={}),f(n.slice(1),function(e){if((0,r.isObject)(e))for(var n in e)t&&(0,r.isPlainObject)(e[n])?o[n]=d(!0,{},o[n],e[n]):o[n]=e[n]}),o},v=function(t){if(!(0,r.isObject)(t)&&!(0,r.isArray)(t)||(0,r.isWindow)(t))return t;var e=(0,r.isObject)(t)?{}:[];return c(t,function(t,n){(0,r.isObject)(n)?e[t]=v(n):e[t]=n}),e},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=s(t,function(t,e){return e});c(e,function(t,e){n.push(e)});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return i.length?h.apply(void 0,[n].concat(i)):n}},82(t,e,n){n.r(e),n.d(e,{debounce:()=>d,equals:()=>u,flatten:()=>f,getScrollbarWidth:()=>v,noop:()=>l,sizeOf:()=>c,strParseFloat:()=>s,throttle:()=>p});var r=n(385),i=n(531);function o(t){return o="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},o(t)}n(626);var a,u=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(o(t)!==o(e)||null===t||null===e)return!1;if((0,i.isArray)(t)||(0,i.isObject)(t)){if(n.has(t))return n.get(t)===e;n.set(t,e)}if((0,i.isArray)(t)||(0,i.isArray)(e))return!(!(0,i.isArray)(t)||!(0,i.isArray)(e))&&t.length===e.length&&t.every(function(t,i){return r(t,e[i],n)});if((0,i.isObject)(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 a=Object.keys(t),u=Object.keys(e);return a.length===u.length&&a.every(function(i){return r(t[i],e[i],n)})}return!1},a=e[0];return e.slice(1).every(function(t){return r(a,t)})},l=function(){},c=function(t){return(0,r.map)(t,l).length},f=function(t){return(0,i.isObject)(t)||(0,i.isArray)(t)?[].concat.apply([],(0,r.map)(t,function(t,e){return f(e)})):t},s=function(t){if(!t)return 0;var e=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(e)?0:e},p=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=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(i||this,c)):!o&&r&&(o=setTimeout(function(){o=null,a=n?Date.now():0,t.apply(i||u,c)},p))}},d=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,i=null,o=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&&(o||(o=f,t.apply(r||this,l))),clearTimeout(i),i=null,i=setTimeout(function(){o=f,clearTimeout(i),i=null,t.apply(r||a,l)},e)}},v=(a=null,function(){if(null===a){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(),a=e-r}return a})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{Mouse:()=>S.default,Translator:()=>E.default,arrayFunctions:()=>l,default:()=>x,dom:()=>m.default,eventDispatcher:()=>w.default,is:()=>c,math:()=>g,random:()=>i,stringFunctions:()=>o,traversal:()=>a,utils:()=>b});var i={};n.r(i),n.d(i,{rand:()=>h,randAlpha:()=>f,randAlphaCs:()=>s,randAlphaNum:()=>p,randAlphaNumCs:()=>d,randNum:()=>v,uniqid:()=>y});var o=n(54),a=n(385);(0,a.foreach)(Object.keys(o),function(t){var e=o[t],n=String.prototype,r=n[t];n[t]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return r&&n.length===r.length?r.apply(this,n):e.apply(void 0,[this].concat(n))}});var u,l=n(626),c=n(531),f=function(t){return h("abcdefghijklmnopqrstuvwxyz".split(""),t)},s=function(t){return h("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},p=function(t){return h("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},d=function(t){return h("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},v=function(t){return h("0123456789".split(""),t)},h=function(t,e){for(var n="",r=0;r<e;r++)n+=t[Math.floor(1e3*Math.random())%t.length];return n},y=(u=0,function(){return u++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(u.toString(36),"_").concat(p(5))}),m=n(765),g=n(245),b=n(82),w=n(74),S=n(153),E=n(37);function A(t){return A="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},A(t)}function j(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 O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach(function(e){C(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function C(t,e,n){return(e=function(t){var e=function(t){if("object"!=A(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=A(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==A(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const x=O(O(O(O(O(O(O({},o),l),a),c),i),g),b);return r})());
1
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.webf=n():t.webf=n()}(this,()=>(()=>{"use strict";var t={153(t,n,e){e.d(n,{default:()=>ce});var r={};e.r(r),e.d(r,{debounce:()=>g,equals:()=>p,flatten:()=>h,getScrollbarWidth:()=>b,noop:()=>d,sizeOf:()=>v,strParseFloat:()=>y,throttle:()=>m});var i={};e.r(i),e.d(i,{clone:()=>T,each:()=>j,extend:()=>P,foreach:()=>O,map:()=>C,merge:()=>L,reduce:()=>x});var o={};e.r(o),e.d(o,{dec2hex:()=>N,floorTo:()=>k,hex2dec:()=>R,max:()=>D,min:()=>_,plancher:()=>I,round:()=>M});var a={};e.r(a),e.d(a,{arrayDiff:()=>Y,arrayUnique:()=>W,array_diff:()=>z,array_unique:()=>X,inArray:()=>B,indexOf:()=>F,lastIndexOf:()=>q,range:()=>$});var u={};e.r(u),e.d(u,{isArray:()=>rt,isArrayLike:()=>et,isBool:()=>tt,isBoolean:()=>Q,isDate:()=>it,isDocument:()=>dt,isDomElement:()=>vt,isEvent:()=>ot,isEventSupported:()=>ft,isFloat:()=>lt,isFunction:()=>J,isInt:()=>ut,isInteger:()=>at,isObject:()=>Z,isPlainObject:()=>K,isScalar:()=>ct,isString:()=>G,isTouchDevice:()=>st,isUndefined:()=>nt,isWindow:()=>pt});var l={};e.r(l),e.d(l,{addUrlParam:()=>Bt,br2nl:()=>Et,camelCase:()=>Ht,compareMixAlphaDigits:()=>Qt,decodeHtml:()=>Ft,escapeRegex:()=>$t,f:()=>Gt,format:()=>Vt,formatSize:()=>Kt,hex2rgb:()=>Ut,hextorgb:()=>Nt,hilite:()=>Jt,htmlquotes:()=>qt,htmlsimplequotes:()=>Wt,insert:()=>Pt,insertTag:()=>Ct,lcfirst:()=>Ot,ltrim:()=>gt,nl2br:()=>At,noAccent:()=>St,numberFormat:()=>Mt,pad:()=>It,parse_url:()=>Rt,repeat:()=>Xt,reverse:()=>Tt,rgb2hex:()=>_t,rgbtohex:()=>Dt,rtrim:()=>bt,stripMultipleSpaces:()=>wt,stripTags:()=>Yt,substringIndex:()=>xt,thousandSeparator:()=>Lt,toCssClassName:()=>Zt,toPrice:()=>kt,toUrl:()=>zt,trim:()=>mt,ucfirst:()=>jt});var c={};function f(t){return f="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},f(t)}e.r(c),e.d(c,{rand:()=>un,randAlpha:()=>nn,randAlphaCs:()=>en,randAlphaNum:()=>rn,randAlphaNumCs:()=>on,randNum:()=>an,uniqid:()=>ln});var s,p=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(f(t)!==f(n)||null===t||null===n)return!1;if(rt(t)||Z(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if(rt(t)||rt(n))return!(!rt(t)||!rt(n))&&t.length===n.length&&t.every(function(t,i){return r(t,n[i],e)});if(Z(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 i=Object.keys(t),o=Object.keys(n);return i.length===o.length&&i.every(function(i){return r(t[i],n[i],e)})}return!1},i=n[0];return n.slice(1).every(function(t){return r(i,t)})},d=function(){},v=function(t){return C(t,d).length},h=function(t){return Z(t)||rt(t)?[].concat.apply([],C(t,function(t,n){return h(n)})):t},y=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},m=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=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(i||this,c)):!o&&r&&(o=setTimeout(function(){o=null,a=e?Date.now():0,t.apply(i||u,c)},p))}},g=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,i=null,o=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&&(o||(o=f,t.apply(r||this,l))),clearTimeout(i),i=null,i=setTimeout(function(){o=f,clearTimeout(i),i=null,t.apply(r||a,l)},n)}},b=(s=null,function(){if(null===s){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var n=t.offsetWidth;t.style.overflow="scroll";var e=document.createElement("div");e.style.width="100%",t.appendChild(e);var r=e.offsetWidth;t.remove(),s=n-r}return s});function w(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,i,o,a,u=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,n)||E(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 S(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=E(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw o}}}}function E(t,n){if(t){if("string"==typeof t)return A(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)?A(t,n):void 0}}function A(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 j=function(t,n,e){if(K(t)){var r=-1;for(var i in t)if(t.hasOwnProperty(i)&&!1===n.call(null!=e?e:t[i],i,t[i],t,++r))return}else{if(G(t)){for(var o=t.split(""),a=0;a<o.length;a++)if(!1===n.call(null!=e?e:o[a],a,o[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=S(t.entries());try{for(c.s();!(u=c.n()).done;){var f=w(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 d,v=0,h=S(t.values());try{for(h.s();!(d=h.n()).done;){var y=d.value;if(!1===n.call(null!=e?e: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===n.call(e||m[g],g,m[g],m,g))return t}return t},O=function(t,n,e){return j(t,function(t,r,i,o){return n.apply(e||r,[r,t,i,o])},e)},C=function(t,n,e){var r=[];return j(t,function(t,i,o,a){var u=n.call(e,t,i,o,a);null!==u&&r.push(u)}),r},x=function(t,n,e){var r=!nt(e);if(!v(t)&&!r)throw new Error("Nothing to reduce and no initial value");var i=r?e:C(t,function(t,n,e,r){return 0===r?n:null})[0];return j(t,function(t,e,o,a){(0!==a||r)&&(i=n(i,e,t,a,o))}),i},P=function(){for(var t=!1,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];if(Q(e[0])&&(t=e.shift()),e.length<2||nt(e[0])||null===e[0])return e[0];var i=e[0];return Z(i)||(e[0]=i={}),O(e.slice(1),function(n){if(Z(n))for(var e in n)t&&K(n[e])?i[e]=P(!0,{},i[e],n[e]):i[e]=n[e]}),i},T=function(t){if(!Z(t)&&!rt(t)||pt(t))return t;var n=Z(t)?{}:[];return j(t,function(t,e){Z(e)?n[t]=T(e):n[t]=e}),n},L=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=C(t,function(t,n){return n});j(n,function(t,n){e.push(n)});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return i.length?L.apply(void 0,[e].concat(i)):e},M=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)},k=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return M(Math.floor(t/n)*n,6)},I=k,_=function(t,n){return U(t,n=J(n)?n:function(t,n){return t<n?-1:1})},D=function(t,n){return U(t,n=J(n)?n:function(t,n){return t>n?-1:1})};function U(t,n){var e;return j(t,function(t,r,i,o){e=0===o||n.call(null,e,r)>0?r:e}),e}var N=function(t){return t.toString(16)},R=function(t){t=Tt(t+"").toUpperCase();var n=0;return j(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n},B=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],i=!1;return j(n,function(n,o){if(n>=e)if(r){if(o===t)return i=!0,!1}else{if(Z(t)&&Z(o))return i=p(o,t),!1;if(rt(t)&&Z(o))return i=p(o,t),!1;if(o==t)return i=!0,!1}}),i},F=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=G(t)?C(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},q=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=G(t)?C(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},W=function(t){return t.filter(function(t,n,e){return n===F(e,t)})},X=W,Y=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!B(t,n,0,e)})},z=Y,$=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=M(t),e=M(e);var r=[];if(nt(n)||t<1||0===e||t<Math.abs(e))return r;var i=t*e;if(G(n)){n=n.charCodeAt(0);for(var o=0;e>0?o<i:o>i;o+=e)r.push(String.fromCharCode(n+o))}else if(at(n))for(var a=0;e>0?a<i:a>i;a+=e)r.push(n+a);return r};function H(t){return H="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},H(t)}var V,G=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},Z=function(t){return!!t&&!rt(t)&&"object"===H(t)},J=function(t){return!!t&&"function"==typeof t},K=function(t){return!1!==Z(t)&&(void 0===t.constructor||!1!==Z(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},Q=function(t){return!0===t||!1===t},tt=Q,nt=function(t){return void 0===t},et=function(t){return!!t&&!G(t)&&!J(t)&&ut(t.length)&&Number.isFinite(t.length)},rt=function(t){return Array.isArray(t)},it=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},ot=function(t){return Z(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},at=function(t){return/^[-+]?\d+$/.test(t+"")},ut=at,lt=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},ct=function(t){var n=H(t);return null===t||B(n,["string","number","bigint","symbol","boolean"])},ft=(V={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement(V[t]||"div"),e=(t="on"+t)in n;return n=null,e}),st=function(){return ft("touchstart")},pt=function(t){return!!t&&t===t.window},dt=function(t){return!!t&&9===t.nodeType},vt=function(t){return Z(t)&&1===t.nodeType&&!K(t)};function ht(t){return function(t){if(Array.isArray(t))return yt(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 yt(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)?yt(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 yt(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 mt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return gt(bt(t,n),n)},gt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},bt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},wt=function(t){return t.trim().replace(/ +/g," ")},St=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")},Et=function(t){return t.split(/<br\s*\/*>/).join("\n")},At=function(t){return t.split("\n").join("<br>")},jt=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},Ot=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Ct=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,i="<".concat(n,">"),o="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(i="<".concat(n,"/>"),o=""),t.slice(0,e)+i+t.slice(e,e+r)+o+t.slice(e+r)},xt=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)},Pt=function(t,n,e){return e>=t.length?t:ht(t).reduce(function(t,r,i){return i>0&&i%e===0?t+n+r:t+r},"")},Tt=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},Lt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(nt(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",i=Tt(Pt(Tt(r),Tt(n),3));return t.indexOf(".")>0?i+e+xt(t,".",-1):i}return(t+"").replace(".",e)},Mt=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]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=M(parseFloat(t.replace(",",".")),n)+"",0===n)return Lt(t,r,i);var o=t.lastIndexOf(".");if(-1===o)return!0===e&&(t+=i+Xt("0",n)),Lt(t,r,i);var a=t.slice(o+1).length;return Lt(n>a?t+"0".repeat(n-a):t.slice(0,o+1+n),r,i)},kt=Mt,It=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 nt(n)||t.length>=n||!B(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)},_t=function(t,n,e){return rt(t)?_t.apply(void 0,ht(t)):at(t)&&at(n)&&at(e)?[It(N(parseInt(t)),2,"0").toUpperCase(),It(N(parseInt(n)),2,"0").toUpperCase(),It(N(parseInt(e)),2,"0").toUpperCase()].join(""):""},Dt=_t,Ut=function(t){if(!G(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=C(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 C(Pt(t,",",2).split(","),function(t,n){return R(n)})},Nt=Ut,Rt=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},i=14;i--;)e[i]&&(r[n[i]]=e[i]);return delete r.source,r},Bt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(K(n))return j(n,function(n,e){t=Bt(t,n,e)}),t;var r,i=Rt(t),o="";(r=t.indexOf("#"))>-1&&(o=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(n),u=null===e?"":encodeURIComponent(e);if(!i.query)return t+"?"+a+"="+u+o;for(var l=i.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),i.scheme&&i.host?i.scheme+"://"+i.host+(i.path||"")+"?"+l.join("&")+o:(i.host||"")+i.path+"?"+l.join("&")+o},Ft=function(t){return G(t)?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'"):""},qt=function(t){return G(t)?t.replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},Wt=function(t){return G(t)?t.replace(/'/g,"&#039;"):""},Xt=function(t,n){return G(t)&&lt(n)?new Array(Math.floor(n)+1).join(t):""},Yt=function(t,n){if(G(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,"")},zt=function(t){return mt(St(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},$t=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},Ht=function(t){if(!t)return"";var n="",e=!1,r=!1,i=!1;t=mt(t),t=mt(t,"_"),t=mt(t,"-");var o=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(n),i=o(n),n=u,a(u)?null:(r?(u=u.toUpperCase(),e=!0):o(u)?((0===t||i&&!e)&&(u=u.toLowerCase()),e=!1):e=!1,u)}).join("")},Vt=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&&j(e,function(n,e){if(G(e)){var r={};r[n]=e,e=r}j(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return nt(e)?t:e})})}),t},Gt=Vt,Zt=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)})},Jt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Ft(t);var r,i,o=St(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(rt(n)||(n=[n]),j(n,function(t,n){n.length&&(n=Ft(n),r=St(n).toLowerCase().replace(/[[\]]+/g,""),i=new RegExp($t(r),"g"),a=o.replace(i,"[".concat(r,"]")),o=a)}),!a.length)return t;var u=0,l="",c="end";return j(a,function(n,r){var i=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(e,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(e,">"),c="end"):(u+=1,l+=i)}),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>")},Kt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,r=0;do{t/=1024,e++}while(t>999);at(t)||(r=1);var i=C(["k","M","G","T","P","E"],function(t,n){return n+"B"});return Mt(Math.max(t,0),r,!0,"",n)+" "+i[e]},Qt=function(t,n){if(t===n)return 0;if(at(t)&&at(n))return Math.sign(t-n);for(var e="",r=0;r<Math.min(t.length,n.length)&&t.charAt(r)===n.charAt(r)&&!at(t);r++)e+=t.charAt(r);t=t.slice(e.length),n=n.slice(e.length);var i="",o=null;j(t,function(t,n){if(i)return n>="0"&&n<="9"&&(i+=n,!0);o=t,n>="0"&&n<="9"&&(i+=n)});var a="",u=null;return j(n,function(t,n){if(a)return n>="0"&&n<="9"&&(a+=n,!0);u=t,n>="0"&&n<="9"&&(a+=n)}),i.length&&a.length&&o===u&&t.substring(0,o)===n.substring(0,u)?Math.sign(i-a):t>n?1:-1};O(Object.keys(l),function(t){var n=l[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var tn,nn=function(t){return un("abcdefghijklmnopqrstuvwxyz".split(""),t)},en=function(t){return un("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},rn=function(t){return un("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},on=function(t){return un("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},an=function(t){return un("0123456789".split(""),t)},un=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},ln=(tn=0,function(){return tn++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(tn.toString(36),"_").concat(rn(5))});function cn(t){return cn="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},cn(t)}function fn(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,sn(r.key),r)}}function sn(t){var n=function(t){if("object"!=cn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=cn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==cn(n)?n:n+""}function pn(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 dn=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){var r;n=pn(t,this,vn).call(this,n);var i={left:0,top:0};if(!(e instanceof Element)&&(null===(r=e)||void 0===r?void 0:r[0])instanceof Element&&(e=e[0]),e instanceof Element){var o=e.getBoundingClientRect();i={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-i.left,y:n.pageY-i.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=pn(t,this,vn).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=pn(t,this,vn).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&fn(n.prototype,null),e&&fn(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function vn(t){var n,e,r,i,o,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!==(i=null!==(o=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==o?o:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==i?i: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 hn=dn;function yn(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=bn(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw o}}}}function mn(t){return function(t){if(Array.isArray(t))return wn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||bn(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 gn(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,i,o,a,u=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,n)||bn(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 bn(t,n){if(t){if("string"==typeof t)return wn(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)?wn(t,n):void 0}}function wn(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=dn);var Sn=new Map,En=["longtap","dbltap"],An=new Set;function jn(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 i=t[e];return J(i)?i.bind(t):i}})}function On(t){return function(t){if(Array.isArray(t))return Cn(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 Cn(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)?Cn(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 Cn(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 xn=["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"],Pn={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]),et(n))return C(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,On(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,On(e))}),t},toggleClass:function(t,n,e){return O(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 O(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!B(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),i=1;i<e;i++)r[i-1]=arguments[i];return O(r,function(e){G(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),i=1;i<e;i++)r[i-1]=arguments[i];return O([].concat(r).reverse(),function(e){G(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||rt(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 i=t.nextElementSibling;i&&!(e?i===n:i.matches(n));)r.push(i),i=i.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var i=t.previousElementSibling;i&&!(e?i===n:i.matches(n));)r.push(i),i=i.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=J(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(K(n))return j(n,function(n,e){return r.data(t,n,e)}),t;var i=/^data-/.test(n+""),o=Ht(i?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[o]:null===e?(delete t.dataset[o],t):(t.dataset[o]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if(G(n)){var i=n.startsWith("--")?n:Ht(n);if(void 0===e){if(window.getComputedStyle){var o=window.getComputedStyle(t,null);return o.getPropertyValue(n)||o[Ht(n)]||""}return t.style[Ht(n)]||""}i.startsWith("--")?t.style.setProperty(i,String(e)):("number"!=typeof e||B(i,xn)||(e+="px"),t.style[i]=e)}else j(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(!G(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?(G(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?(G(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=G(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,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return O(i,function(t){G(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if(pt(t))return{top:t.scrollY,left:t.scrollX};if(dt(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&&(B(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,i,o){return G(n)?(O(Tn.find(n),function(n){t(n,e,r,i,o)}),n):(J(r)&&(o=i,i=r,r=null),O(e.split(" "),function(t){var e=gn(t.split("."),2),a=e[0],u=e[1],l=function(t){if(!t.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}(t.target,n),i=mn(Sn.get(n)),o=yn(r);try{for(o.s();!(e=o.n()).done;){var a,u=e.value,l=!1,c=yn(i);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===t.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==n)continue;var s=jn(t,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){o.e(t)}finally{o.f()}}},c=Sn.get(n);c||(c=[],Sn.set(n,c)),B(a,En)&&function(t){var n,e,r,i,o,a,u;null!=An&&An.has(t)||("longtap"===t&&(r=null,i=0,o=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=hn.getViewportPosition(t);i=n.x,o=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=hn.getViewportPosition(t);Math.hypot(n.x-i,n.y-o)>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=hn.getViewportPosition(t);else{var i=hn.getViewportPosition(t);Math.hypot(i.x-e.x,i.y-e.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),n=Date.now(),e=i}},{passive:!1})),An.add(t))}(a);var f=C(c,function(t,n){return n.event});B(a,f)||n.addEventListener(a,l,o),c.push({event:a,handler:i,selector:r,listener:l,namespace:u,options:o})}),n)},off:function t(n,e,r,i,o){if(G(n))return O(Tn.find(n),function(n){t(n,e,r,i,o)}),n;J(r)&&(o=i,i=r,r=null);var a=Sn.get(n);if(!a)return n;var u=e?e.split(" "):[void 0];return O(u,function(t){var e=gn(void 0===t?[void 0,void 0]:t.split("."),2),u=e[0],l=e[1],c=void 0!==(u=u||void 0),f=void 0!==l;O(mn(a).reverse(),function(t){if((!c&&!f||c&&!f&&t.event===u||!c&&f&&t.namespace===l||c&&f&&t.event===u&&t.namespace===l)&&(void 0===u||t.event===u)&&(void 0===i||t.handler===i)&&(void 0===r||t.selector===r)&&(void 0===l||t.namespace===l)&&(void 0===o||t.options===o)){var e=a.indexOf(t);-1!==e&&a.splice(e,1),C(a,function(t,n){return n.event===u?n:null})[0]||n.removeEventListener(t.event,t.listener,t.options)}})}),n}};const Tn=Pn;function Ln(t){return Ln="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},Ln(t)}function Mn(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,kn(r.key),r)}}function kn(t){var n=function(t){if("object"!=Ln(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Ln(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ln(n)?n:n+""}function In(t,n){return t.get(_n(t,n))}function _n(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=Pn);var Dn=new WeakMap,Un=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,Dn,{})},n=[{key:"addListener",value:function(t,n,e){var r=this;if(!J(n))throw new Error("Callback must be a function.");if(!G(t))throw new Error("Events name must be a string separated by comma.");for(var i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];var u={callback:n,context:e,args:o};return j(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),r.hasListener(n)?In(Dn,r)[n].push(u):In(Dn,r)[n]=[u]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,i=arguments.length,o=new Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];return j(t.split(","),function(t,i){if(!(i=i.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,[i].concat(o).concat(u.slice(1))),r.removeListener(i,a)};r.addListener(i,a,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(!G(t))throw new Error("Events name must be a string seperated by comma.");return j(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void j(In(Dn,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 nt(n)?!nt(In(Dn,this)[t]):!!C(In(Dn,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)&&(nt(n)?In(Dn,this)[t].splice(0):j(In(Dn,this)[t],function(n){return In(Dn,r)[t].splice(n,1),delete In(Dn,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?In(Dn,this)[t]||[]:In(Dn,this)}},{key:"reset",value:function(){var t,n;n={},(t=Dn).set(_n(t,this),n)}}],n&&Mn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),Nn=new Un;function Rn(t){return Rn="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},Rn(t)}function Bn(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,Fn(r.key),r)}}function Fn(t){var n=function(t){if("object"!=Rn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Rn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rn(n)?n:n+""}function qn(t,n,e){Wn(t,n),n.set(t,e)}function Wn(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(zn(t,n))}function Yn(t,n,e){return t.set(zn(t,n),e),e}function zn(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=Nn);var $n=new WeakMap,Hn=new WeakMap,Vn=new WeakSet,Gn=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),Wn(this,r=Vn),r.add(this),qn(this,$n,void 0),qn(this,Hn,void 0),zn(Vn,this,Zn).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(Hn,this)[e]&&void 0!==Xn(Hn,this)[e][n]&&void 0!==Xn(Hn,this)[e][n][t]){var r=Xn(Hn,this)[e][n][t];return zn(Vn,this,Kn).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var o=null===(r=Xn(Hn,this))||void 0===r?void 0:r[i];if(!o)return t;var a=null==o?void 0:o[n],u=null==o?void 0:o[e];if(!a||!u)return t;var l=zn(Vn,this,Jn).call(this,a,t);if(!l)return t;var c=u[l],f=zn(Vn,this,Kn).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Xn($n,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($n,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&Bn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function Zn(t){var n={},e={};j(t,function(t,r){j(r,function(r,i){K(i)?(void 0===n[t]&&(n[t]={}),n[t][r]=i):(void 0===e[t]&&(e[t]={}),e[t][r]=i)})}),Yn(Hn,this,P(!0,n,{core:P({},n.core||{},e)}))}function Jn(t,n){for(var e in t)if(zn(Vn,this,Kn).call(this,t[e])===n)return e;return null}function Kn(t){return J(t)?t():t}function Qn(t){return Qn="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},Qn(t)}function te(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 ne(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?te(Object(e),!0).forEach(function(n){ee(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):te(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function ee(t,n,e){return(n=function(t){var n=function(t){if("object"!=Qn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Qn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Qn(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function re(t){return re="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},re(t)}function ie(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,oe(r.key),r)}}function oe(t){var n=function(t){if("object"!=re(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=re(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==re(n)?n:n+""}function ae(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=Gn),ne(ne(ne(ne(ne(ne(ne({},l),a),i),u),c),o),r);var ue=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){var r;n=ae(t,this,le).call(this,n);var i={left:0,top:0};if(!(e instanceof Element)&&(null===(r=e)||void 0===r?void 0:r[0])instanceof Element&&(e=e[0]),e instanceof Element){var o=e.getBoundingClientRect();i={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-i.left,y:n.pageY-i.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=ae(t,this,le).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=ae(t,this,le).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&ie(n.prototype,null),e&&ie(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function le(t){var n,e,r,i,o,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!==(i=null!==(o=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==o?o:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==i?i: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 ce=ue;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=ue)},37(t,n,e){e.d(n,{default:()=>w});var r=e(531),i=e(385);function o(t){return o="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},o(t)}function a(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,u(r.key),r)}}function u(t){var n=function(t){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(n)?n:n+""}function l(t,n,e){c(t,n),n.set(t,e)}function c(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(t,n){return t.get(p(t,n))}function s(t,n,e){return t.set(p(t,n),e),e}function p(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 d=new WeakMap,v=new WeakMap,h=new WeakSet,y=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),c(this,r=h),r.add(this),l(this,d,void 0),l(this,v,void 0),p(h,this,m).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!==f(v,this)[e]&&void 0!==f(v,this)[e][n]&&void 0!==f(v,this)[e][n][t]){var r=f(v,this)[e][n][t];return p(h,this,b).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var o=null===(r=f(v,this))||void 0===r?void 0:r[i];if(!o)return t;var a=null==o?void 0:o[n],u=null==o?void 0:o[e];if(!a||!u)return t;var l=p(h,this,g).call(this,a,t);if(!l)return t;var c=u[l],s=p(h,this,b).call(this,c);return null!=s?s:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return f(d,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)),s(d,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function m(t){var n={},e={};(0,i.each)(t,function(t,o){(0,i.each)(o,function(i,o){(0,r.isPlainObject)(o)?(void 0===n[t]&&(n[t]={}),n[t][i]=o):(void 0===e[t]&&(e[t]={}),e[t][i]=o)})}),s(v,this,(0,i.extend)(!0,n,{core:(0,i.extend)({},n.core||{},e)}))}function g(t,n){for(var e in t)if(p(h,this,b).call(this,t[e])===n)return e;return null}function b(t){return(0,r.isFunction)(t)?t():t}const w=y;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=y)},626(t,n,e){e.r(n),e.d(n,{arrayDiff:()=>p,arrayUnique:()=>f,array_diff:()=>d,array_unique:()=>s,inArray:()=>u,indexOf:()=>l,lastIndexOf:()=>c,range:()=>v});var r=e(385),i=e(531),o=e(245),a=e(82),u=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=!1;return(0,r.each)(n,function(n,r){if(n>=e)if(o){if(r===t)return u=!0,!1}else{if((0,i.isObject)(t)&&(0,i.isObject)(r))return u=(0,a.equals)(r,t),!1;if((0,i.isArray)(t)&&(0,i.isObject)(r))return u=(0,a.equals)(r,t),!1;if(r==t)return u=!0,!1}}),u},l=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=(0,i.isString)(t)?(0,r.map)(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+o.length:Math.floor(e);e<o.length;e++)if(e in o&&o[e]===n)return e;return-1},c=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=(0,i.isString)(t)?(0,r.map)(t,function(t,n){return n}):t;for(e=e<0?o.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in o&&o[e]===n)return e;return-1},f=function(t){return t.filter(function(t,n,e){return n===l(e,t)})},s=f,p=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!u(t,n,0,e)})},d=p,v=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=(0,o.round)(t),e=(0,o.round)(e);var r=[];if((0,i.isUndefined)(n)||t<1||0===e||t<Math.abs(e))return r;var a=t*e;if((0,i.isString)(n)){n=n.charCodeAt(0);for(var u=0;e>0?u<a:u>a;u+=e)r.push(String.fromCharCode(n+u))}else if((0,i.isInteger)(n))for(var l=0;e>0?l<a:l>a;l+=e)r.push(n+l);return r}},765(t,n,e){e.d(n,{default:()=>S});var r=e(531),i=e(54),o=e(385),a=e(626),u=e(153);function l(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=s(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,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,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw o}}}}function c(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(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 f(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,i,o,a,u=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,n)||s(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 s(t,n){if(t){if("string"==typeof t)return p(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)?p(t,n):void 0}}function p(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 d=new Map,v=["longtap","dbltap"],h=new Set;function y(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,i){if(e in n)return Reflect.get(n,e,i);var o=t[e];return(0,r.isFunction)(o)?o.bind(t):o}})}function m(t){return function(t){if(Array.isArray(t))return g(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 g(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)?g(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 g(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 b=["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"],w={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]),(0,r.isArrayLike)(n))return(0,o.map)(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,m(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,m(e))}),t},toggleClass:function(t,n,e){return(0,o.foreach)(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(0,o.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!(0,a.inArray)(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return(0,o.foreach)(i,function(e){(0,r.isString)(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,i=new Array(e>1?e-1:0),a=1;a<e;a++)i[a-1]=arguments[a];return(0,o.foreach)([].concat(i).reverse(),function(e){(0,r.isString)(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||(0,r.isArray)(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 i=t.nextElementSibling;i&&!(e?i===n:i.matches(n));)r.push(i),i=i.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var i=t.previousElementSibling;i&&!(e?i===n:i.matches(n));)r.push(i),i=i.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=(0,r.isFunction)(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 a=this;if(void 0===n&&void 0===e)return t.dataset;if((0,r.isPlainObject)(n))return(0,o.each)(n,function(n,e){return a.data(t,n,e)}),t;var u=/^data-/.test(n+""),l=(0,i.camelCase)(u?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[l]:null===e?(delete t.dataset[l],t):(t.dataset[l]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var u=this;if((0,r.isString)(n)){var l=n.startsWith("--")?n:(0,i.camelCase)(n);if(void 0===e){if(window.getComputedStyle){var c=window.getComputedStyle(t,null);return c.getPropertyValue(n)||c[(0,i.camelCase)(n)]||""}return t.style[(0,i.camelCase)(n)]||""}l.startsWith("--")?t.style.setProperty(l,String(e)):("number"!=typeof e||(0,a.inArray)(l,b)||(e+="px"),t.style[l]=e)}else(0,o.each)(n,function(n,e){u.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(!(0,r.isString)(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?((0,r.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?((0,r.isString)(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),i=(0,r.isString)(n);return e.filter(function(t){return i?!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=[],i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];return(0,o.foreach)(a,function(t){(0,r.isString)(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if((0,r.isWindow)(t))return{top:t.scrollY,left:t.scrollX};if((0,r.isDocument)(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&&((0,a.inArray)(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,i,s,p){return(0,r.isString)(n)?((0,o.foreach)(S.find(n),function(n){t(n,e,i,s,p)}),n):((0,r.isFunction)(i)&&(p=s,s=i,i=null),(0,o.foreach)(e.split(" "),function(t){var e=f(t.split("."),2),r=e[0],m=e[1],g=function(t){if(!t.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}(t.target,n),i=c(d.get(n)),o=l(r);try{for(o.s();!(e=o.n()).done;){var a,u=e.value,f=!1,s=l(i);try{for(s.s();!(a=s.n()).done;){var p=a.value;if(p.event===t.type){if(p.selector){if(!u.matches(p.selector))continue}else if(u!==n)continue;var v=y(t,u);if(p.handler.call(u,v),v._immediateStopped)return;v._propagationStopped&&(f=!0)}}}catch(t){s.e(t)}finally{s.f()}if(f)return}}catch(t){o.e(t)}finally{o.f()}}},b=d.get(n);b||(b=[],d.set(n,b)),(0,a.inArray)(r,v)&&function(t){var n,e,r,i,o,a,l;null!=h&&h.has(t)||("longtap"===t&&(r=null,i=0,o=0,a=null,l=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=u.default.getViewportPosition(t);i=n.x,o=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=u.default.getViewportPosition(t);Math.hypot(n.x-i,n.y-o)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",l),document.addEventListener("touchcancel",l)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=u.default.getViewportPosition(t);else{var i=u.default.getViewportPosition(t);Math.hypot(i.x-e.x,i.y-e.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),n=Date.now(),e=i}},{passive:!1})),h.add(t))}(r);var w=(0,o.map)(b,function(t,n){return n.event});(0,a.inArray)(r,w)||n.addEventListener(r,g,p),b.push({event:r,handler:s,selector:i,listener:g,namespace:m,options:p})}),n)},off:function t(n,e,i,a,u){if((0,r.isString)(n))return(0,o.foreach)(S.find(n),function(n){t(n,e,i,a,u)}),n;(0,r.isFunction)(i)&&(u=a,a=i,i=null);var l=d.get(n);if(!l)return n;var s=e?e.split(" "):[void 0];return(0,o.foreach)(s,function(t){var e=f(void 0===t?[void 0,void 0]:t.split("."),2),r=e[0],s=e[1],p=void 0!==(r=r||void 0),d=void 0!==s;(0,o.foreach)(c(l).reverse(),function(t){if((!p&&!d||p&&!d&&t.event===r||!p&&d&&t.namespace===s||p&&d&&t.event===r&&t.namespace===s)&&(void 0===r||t.event===r)&&(void 0===a||t.handler===a)&&(void 0===i||t.selector===i)&&(void 0===s||t.namespace===s)&&(void 0===u||t.options===u)){var e=l.indexOf(t);-1!==e&&l.splice(e,1),(0,o.map)(l,function(t,n){return n.event===r?n:null})[0]||n.removeEventListener(t.event,t.listener,t.options)}})}),n}};const S=w;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=w)},74(t,n,e){e.d(n,{default:()=>d});var r=e(531),i=e(385);function o(t){return o="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},o(t)}function a(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,u(r.key),r)}}function u(t){var n=function(t){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=o(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==o(n)?n:n+""}function l(t,n){return t.get(c(t,n))}function c(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 f=new WeakMap,s=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,f,{})},n=[{key:"addListener",value:function(t,n,e){var o=this;if(!(0,r.isFunction)(n))throw new Error("Callback must be a function.");if(!(0,r.isString)(t))throw new Error("Events name must be a string separated by comma.");for(var a=arguments.length,u=new Array(a>3?a-3:0),c=3;c<a;c++)u[c-3]=arguments[c];var s={callback:n,context:e,args:u};return(0,i.each)(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),o.hasListener(n)?l(f,o)[n].push(s):l(f,o)[n]=[s]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,o=arguments.length,a=new Array(o>3?o-3:0),u=3;u<o;u++)a[u-3]=arguments[u];return(0,i.each)(t.split(","),function(t,i){if(!(i=i.trim()))return!0;var o=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[i].concat(a).concat(u.slice(1))),r.removeListener(i,o)};r.addListener(i,o,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,o=new Array(e>1?e-1:0),a=1;a<e;a++)o[a-1]=arguments[a];if(!(0,r.isString)(t))throw new Error("Events name must be a string seperated by comma.");return(0,i.each)(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void(0,i.each)(l(f,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(o))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return(0,r.isUndefined)(n)?!(0,r.isUndefined)(l(f,this)[t]):!!(0,i.map)(l(f,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var o=this;return this.hasListener(t,n,e)&&((0,r.isUndefined)(n)?l(f,this)[t].splice(0):(0,i.each)(l(f,this)[t],function(n){return l(f,o)[t].splice(n,1),delete l(f,o)[t],!1})),this}},{key:"getListeners",value:function(t){return t?l(f,this)[t]||[]:l(f,this)}},{key:"reset",value:function(){var t,n;n={},(t=f).set(c(t,this),n)}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),p=new s;const d=p;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=p)},531(t,n,e){e.r(n),e.d(n,{isArray:()=>v,isArrayLike:()=>d,isBool:()=>s,isBoolean:()=>f,isDate:()=>h,isDocument:()=>j,isDomElement:()=>O,isEvent:()=>y,isEventSupported:()=>S,isFloat:()=>b,isFunction:()=>l,isInt:()=>g,isInteger:()=>m,isObject:()=>u,isPlainObject:()=>c,isScalar:()=>w,isString:()=>a,isTouchDevice:()=>E,isUndefined:()=>p,isWindow:()=>A});var r=e(626);function i(t){return i="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},i(t)}var o,a=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},u=function(t){return!!t&&!v(t)&&"object"===i(t)},l=function(t){return!!t&&"function"==typeof t},c=function(t){return!1!==u(t)&&(void 0===t.constructor||!1!==u(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},f=function(t){return!0===t||!1===t},s=f,p=function(t){return void 0===t},d=function(t){return!!t&&!a(t)&&!l(t)&&g(t.length)&&Number.isFinite(t.length)},v=function(t){return Array.isArray(t)},h=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},y=function(t){return u(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},m=function(t){return/^[-+]?\d+$/.test(t+"")},g=m,b=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},w=function(t){var n=i(t);return null===t||(0,r.inArray)(n,["string","number","bigint","symbol","boolean"])},S=(o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement(o[t]||"div"),e=(t="on"+t)in n;return n=null,e}),E=function(){return S("touchstart")},A=function(t){return!!t&&t===t.window},j=function(t){return!!t&&9===t.nodeType},O=function(t){return u(t)&&1===t.nodeType&&!c(t)}},245(t,n,e){e.r(n),e.d(n,{dec2hex:()=>p,floorTo:()=>u,hex2dec:()=>d,max:()=>f,min:()=>c,plancher:()=>l,round:()=>a});var r=e(385),i=e(531),o=e(54),a=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)},u=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return a(Math.floor(t/n)*n,6)},l=u,c=function(t,n){return s(t,n=(0,i.isFunction)(n)?n:function(t,n){return t<n?-1:1})},f=function(t,n){return s(t,n=(0,i.isFunction)(n)?n:function(t,n){return t>n?-1:1})};function s(t,n){var e;return(0,r.each)(t,function(t,r,i,o){e=0===o||n.call(null,e,r)>0?r:e}),e}var p=function(t){return t.toString(16)},d=function(t){t=(0,o.reverse)(t+"").toUpperCase();var n=0;return(0,r.each)(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n}},54(t,n,e){e.r(n),e.d(n,{addUrlParam:()=>M,br2nl:()=>v,camelCase:()=>B,compareMixAlphaDigits:()=>z,decodeHtml:()=>k,escapeRegex:()=>R,f:()=>q,format:()=>F,formatSize:()=>Y,hex2rgb:()=>P,hextorgb:()=>T,hilite:()=>X,htmlquotes:()=>I,htmlsimplequotes:()=>_,insert:()=>w,insertTag:()=>g,lcfirst:()=>m,ltrim:()=>f,nl2br:()=>h,noAccent:()=>d,numberFormat:()=>A,pad:()=>O,parse_url:()=>L,repeat:()=>D,reverse:()=>S,rgb2hex:()=>C,rgbtohex:()=>x,rtrim:()=>s,stripMultipleSpaces:()=>p,stripTags:()=>U,substringIndex:()=>b,thousandSeparator:()=>E,toCssClassName:()=>W,toPrice:()=>j,toUrl:()=>N,trim:()=>c,ucfirst:()=>y});var r=e(531),i=e(245),o=e(626),a=e(385);function u(t){return function(t){if(Array.isArray(t))return l(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 l(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)?l(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 l(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 c=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return f(s(t,n),n)},f=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},s=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},p=function(t){return t.trim().replace(/ +/g," ")},d=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")},v=function(t){return t.split(/<br\s*\/*>/).join("\n")},h=function(t){return t.split("\n").join("<br>")},y=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},m=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},g=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,i="<".concat(n,">"),o="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(i="<".concat(n,"/>"),o=""),t.slice(0,e)+i+t.slice(e,e+r)+o+t.slice(e+r)},b=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)},w=function(t,n,e){return e>=t.length?t:u(t).reduce(function(t,r,i){return i>0&&i%e===0?t+n+r:t+r},"")},S=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},E=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if((0,r.isUndefined)(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var i=Math[t>=1e3?"floor":"ceil"](t)+"",o=S(w(S(i),S(n),3));return t.indexOf(".")>0?o+e+b(t,".",-1):o}return(t+"").replace(".",e)},A=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=(0,i.round)(parseFloat(t.replace(",",".")),n)+"",0===n)return E(t,r,o);var a=t.lastIndexOf(".");if(-1===a)return!0===e&&(t+=o+D("0",n)),E(t,r,o);var u=t.slice(a+1).length;return E(n>u?t+"0".repeat(n-u):t.slice(0,a+1+n),r,o)},j=A,O=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return(0,r.isUndefined)(n)||t.length>=n||!(0,o.inArray)(i,["left","right"])?t:"left"===i?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)},C=function(t,n,e){return(0,r.isArray)(t)?C.apply(void 0,u(t)):(0,r.isInteger)(t)&&(0,r.isInteger)(n)&&(0,r.isInteger)(e)?[O((0,i.dec2hex)(parseInt(t)),2,"0").toUpperCase(),O((0,i.dec2hex)(parseInt(n)),2,"0").toUpperCase(),O((0,i.dec2hex)(parseInt(e)),2,"0").toUpperCase()].join(""):""},x=C,P=function(t){if(!(0,r.isString)(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=(0,a.map)(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(0,a.map)(w(t,",",2).split(","),function(t,n){return(0,i.hex2dec)(n)})},T=P,L=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},i=14;i--;)e[i]&&(r[n[i]]=e[i]);return delete r.source,r},M=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if((0,r.isPlainObject)(n))return(0,a.each)(n,function(n,e){t=M(t,n,e)}),t;var i,o=L(t),u="";(i=t.indexOf("#"))>-1&&(u=t.slice(i),t=t.slice(0,i));var l=encodeURIComponent(n),c=null===e?"":encodeURIComponent(e);if(!o.query)return t+"?"+l+"="+c+u;for(var f=o.query.split("&"),s=!1,p=0;p<f.length;p++)if(f[p].startsWith(l+"=")){f[p]=l+"="+c,s=!0;break}return s||f.push(l+"="+c),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+f.join("&")+u:(o.host||"")+o.path+"?"+f.join("&")+u},k=function(t){return(0,r.isString)(t)?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'"):""},I=function(t){return(0,r.isString)(t)?t.replace(/"/g,"&quot;").replace(/'/g,"&#039;"):""},_=function(t){return(0,r.isString)(t)?t.replace(/'/g,"&#039;"):""},D=function(t,n){return(0,r.isString)(t)&&(0,r.isFloat)(n)?new Array(Math.floor(n)+1).join(t):""},U=function(t,n){if((0,r.isString)(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,"")},N=function(t){return c(d(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},R=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},B=function(t){if(!t)return"";var n="",e=!1,r=!1,i=!1;t=c(t),t=c(t,"_"),t=c(t,"-");var o=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},u=function(t){return"-"===t||"_"===t||" "===t};return(0,a.map)(t,function(t,a){return r=u(n),i=o(n),n=a,u(a)?null:(r?(a=a.toUpperCase(),e=!0):o(a)?((0===t||i&&!e)&&(a=a.toLowerCase()),e=!1):e=!1,a)}).join("")},F=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];return e.length&&(0,a.each)(e,function(n,e){if((0,r.isString)(e)){var i={};i[n]=e,e=i}(0,a.each)(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return(0,r.isUndefined)(e)?t:e})})}),t},q=F,W=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)})},X=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=k(t);var i,o,u=d(t).toLowerCase().replace(/[[\]]+/g,""),l="";if((0,r.isArray)(n)||(n=[n]),(0,a.each)(n,function(t,n){n.length&&(n=k(n),i=d(n).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(R(i),"g"),l=u.replace(o,"[".concat(i,"]")),u=l)}),!l.length)return t;var c=0,f="",s="end";return(0,a.each)(l,function(n,r){var i=t.charAt(c);"["===r&&"end"===s?(f+="<".concat(e,">"),s="start"):"]"===r&&"start"===s?(f+="</".concat(e,">"),s="end"):(c+=1,f+=i)}),f.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>")},Y=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,i=0;do{t/=1024,e++}while(t>999);(0,r.isInteger)(t)||(i=1);var o=(0,a.map)(["k","M","G","T","P","E"],function(t,n){return n+"B"});return A(Math.max(t,0),i,!0,"",n)+" "+o[e]},z=function(t,n){if(t===n)return 0;if((0,r.isInteger)(t)&&(0,r.isInteger)(n))return Math.sign(t-n);for(var e="",i=0;i<Math.min(t.length,n.length)&&t.charAt(i)===n.charAt(i)&&!(0,r.isInteger)(t);i++)e+=t.charAt(i);t=t.slice(e.length),n=n.slice(e.length);var o="",u=null;(0,a.each)(t,function(t,n){if(o)return n>="0"&&n<="9"&&(o+=n,!0);u=t,n>="0"&&n<="9"&&(o+=n)});var l="",c=null;return(0,a.each)(n,function(t,n){if(l)return n>="0"&&n<="9"&&(l+=n,!0);c=t,n>="0"&&n<="9"&&(l+=n)}),o.length&&l.length&&u===c&&t.substring(0,u)===n.substring(0,c)?Math.sign(o-l):t>n?1:-1}},385(t,n,e){e.r(n),e.d(n,{clone:()=>v,each:()=>c,extend:()=>d,foreach:()=>f,map:()=>s,merge:()=>h,reduce:()=>p});var r=e(531),i=e(82);function o(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,i,o,a,u=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,n)||u(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 a(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=u(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,l=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){l=!0,o=t},f:function(){try{a||null==e.return||e.return()}finally{if(l)throw o}}}}function u(t,n){if(t){if("string"==typeof t)return l(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)?l(t,n):void 0}}function l(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 c=function(t,n,e){if((0,r.isPlainObject)(t)){var i=-1;for(var u in t)if(t.hasOwnProperty(u)&&!1===n.call(null!=e?e:t[u],u,t[u],t,++i))return}else{if((0,r.isString)(t)){for(var l=t.split(""),c=0;c<l.length;c++)if(!1===n.call(null!=e?e:l[c],c,l[c],t,c))return t;return t}if(t instanceof Map){var f,s=0,p=a(t.entries());try{for(p.s();!(f=p.n()).done;){var d=o(f.value,2),v=d[0],h=d[1];if(!1===n.call(null!=e?e:h,v,h,t,s++))return t}}catch(t){p.e(t)}finally{p.f()}}else if(t instanceof Set){var y,m=0,g=a(t.values());try{for(g.s();!(y=g.n()).done;){var b=y.value;if(!1===n.call(null!=e?e:b,m,b,t,m))return t;m++}}catch(t){g.e(t)}finally{g.f()}}else if((0,r.isArrayLike)(t))for(var w=Array.from(t),S=0;S<w.length;S++)if(!1===n.call(e||w[S],S,w[S],w,S))return t}return t},f=function(t,n,e){return c(t,function(t,r,i,o){return n.apply(e||r,[r,t,i,o])},e)},s=function(t,n,e){var r=[];return c(t,function(t,i,o,a){var u=n.call(e,t,i,o,a);null!==u&&r.push(u)}),r},p=function(t,n,e){var o=!(0,r.isUndefined)(e);if(!(0,i.sizeOf)(t)&&!o)throw new Error("Nothing to reduce and no initial value");var a=o?e:s(t,function(t,n,e,r){return 0===r?n:null})[0];return c(t,function(t,e,r,i){(0!==i||o)&&(a=n(a,e,t,i,r))}),a},d=function(){for(var t=!1,n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];if((0,r.isBoolean)(e[0])&&(t=e.shift()),e.length<2||(0,r.isUndefined)(e[0])||null===e[0])return e[0];var o=e[0];return(0,r.isObject)(o)||(e[0]=o={}),f(e.slice(1),function(n){if((0,r.isObject)(n))for(var e in n)t&&(0,r.isPlainObject)(n[e])?o[e]=d(!0,{},o[e],n[e]):o[e]=n[e]}),o},v=function(t){if(!(0,r.isObject)(t)&&!(0,r.isArray)(t)||(0,r.isWindow)(t))return t;var n=(0,r.isObject)(t)?{}:[];return c(t,function(t,e){(0,r.isObject)(e)?n[t]=v(e):n[t]=e}),n},h=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=s(t,function(t,n){return n});c(n,function(t,n){e.push(n)});for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return i.length?h.apply(void 0,[e].concat(i)):e}},82(t,n,e){e.r(n),e.d(n,{debounce:()=>d,equals:()=>u,flatten:()=>f,getScrollbarWidth:()=>v,noop:()=>l,sizeOf:()=>c,strParseFloat:()=>s,throttle:()=>p});var r=e(385),i=e(531);function o(t){return o="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},o(t)}e(626);var a,u=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(o(t)!==o(n)||null===t||null===n)return!1;if((0,i.isArray)(t)||(0,i.isObject)(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if((0,i.isArray)(t)||(0,i.isArray)(n))return!(!(0,i.isArray)(t)||!(0,i.isArray)(n))&&t.length===n.length&&t.every(function(t,i){return r(t,n[i],e)});if((0,i.isObject)(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 a=Object.keys(t),u=Object.keys(n);return a.length===u.length&&a.every(function(i){return r(t[i],n[i],e)})}return!1},a=n[0];return n.slice(1).every(function(t){return r(a,t)})},l=function(){},c=function(t){return(0,r.map)(t,l).length},f=function(t){return(0,i.isObject)(t)||(0,i.isArray)(t)?[].concat.apply([],(0,r.map)(t,function(t,n){return f(n)})):t},s=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},p=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=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(i||this,c)):!o&&r&&(o=setTimeout(function(){o=null,a=e?Date.now():0,t.apply(i||u,c)},p))}},d=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,i=null,o=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&&(o||(o=f,t.apply(r||this,l))),clearTimeout(i),i=null,i=setTimeout(function(){o=f,clearTimeout(i),i=null,t.apply(r||a,l)},n)}},v=(a=null,function(){if(null===a){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var n=t.offsetWidth;t.style.overflow="scroll";var e=document.createElement("div");e.style.width="100%",t.appendChild(e);var r=e.offsetWidth;t.remove(),a=n-r}return a})}},n={};function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={exports:{}};return t[r](o,o.exports,e),o.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};e.r(r),e.d(r,{Mouse:()=>S.default,Translator:()=>E.default,arrayFunctions:()=>l,default:()=>x,dom:()=>m.default,eventDispatcher:()=>w.default,is:()=>c,math:()=>g,random:()=>i,stringFunctions:()=>o,traversal:()=>a,utils:()=>b});var i={};e.r(i),e.d(i,{rand:()=>h,randAlpha:()=>f,randAlphaCs:()=>s,randAlphaNum:()=>p,randAlphaNumCs:()=>d,randNum:()=>v,uniqid:()=>y});var o=e(54),a=e(385);(0,a.foreach)(Object.keys(o),function(t){var n=o[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var u,l=e(626),c=e(531),f=function(t){return h("abcdefghijklmnopqrstuvwxyz".split(""),t)},s=function(t){return h("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},p=function(t){return h("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},d=function(t){return h("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},v=function(t){return h("0123456789".split(""),t)},h=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},y=(u=0,function(){return u++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(u.toString(36),"_").concat(p(5))}),m=e(765),g=e(245),b=e(82),w=e(74),S=e(153),E=e(37);function A(t){return A="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},A(t)}function j(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 O(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?j(Object(e),!0).forEach(function(n){C(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):j(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function C(t,n,e){return(n=function(t){var n=function(t){if("object"!=A(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=A(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==A(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}const x=O(O(O(O(O(O(O({},o),l),a),c),i),g),b);return r})());
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "name": "Ludovic Tarit",
13
13
  "email": "ludovic.tarit@webalternatif.com"
14
14
  },
15
- "version": "1.6.6",
15
+ "version": "1.6.8",
16
16
  "type": "module",
17
17
  "types": "types/index.d.ts",
18
18
  "main": "dist/cjs/index.js",
package/src/Mouse.js CHANGED
@@ -10,6 +10,10 @@ class Mouse {
10
10
  ev = this.#getEvent(ev)
11
11
  let rect = { left: 0, top: 0 }
12
12
 
13
+ if (!(element instanceof Element) && element?.[0] instanceof Element) {
14
+ element = element[0]
15
+ }
16
+
13
17
  if (element instanceof Element) {
14
18
  const r = element.getBoundingClientRect()
15
19
 
package/src/onOff.js CHANGED
@@ -1,7 +1,8 @@
1
- import { isFunction, isTouchDevice } from './is.js'
1
+ import { isFunction, isString, isTouchDevice } from './is.js'
2
2
  import { foreach, map } from './traversal.js'
3
3
  import { inArray } from './array.js'
4
4
  import Mouse from './Mouse.js'
5
+ import dom from './dom.js'
5
6
 
6
7
  const LISTENERS = new Map()
7
8
  const CUSTOM_EVENTS = ['longtap', 'dbltap']
@@ -178,14 +179,22 @@ function createWrappedEvent(ev, currentTarget) {
178
179
  }
179
180
 
180
181
  /**
181
- * @param {Element|Document|Window} el
182
+ * @param {Element|Document|Window|string} el
182
183
  * @param {string} events
183
184
  * @param {string|Element|function} selector
184
185
  * @param {function|AddEventListenerOptions|boolean} [handler]
185
186
  * @param {AddEventListenerOptions|boolean} [options]
186
- * @returns {Element}
187
+ * @returns {Element|Document|Window|string}
187
188
  */
188
189
  export function on(el, events, selector, handler, options) {
190
+ if (isString(el)) {
191
+ foreach(dom.find(el), (node) => {
192
+ on(node, events, selector, handler, options)
193
+ })
194
+
195
+ return el
196
+ }
197
+
189
198
  if (isFunction(selector)) {
190
199
  options = handler
191
200
  handler = selector
@@ -251,14 +260,22 @@ export function on(el, events, selector, handler, options) {
251
260
  }
252
261
 
253
262
  /**
254
- * @param {Element|Document|Window} el
263
+ * @param {Element|Document|Window|string} el
255
264
  * @param {string} [events]
256
265
  * @param {string|Element|function} [selector]
257
266
  * @param {function|AddEventListenerOptions|boolean} [handler]
258
267
  * @param {AddEventListenerOptions|boolean} [options]
259
- * @returns {Element}
268
+ * @returns {Element|Document|Window|string}
260
269
  */
261
270
  export function off(el, events, selector, handler, options) {
271
+ if (isString(el)) {
272
+ foreach(dom.find(el), (node) => {
273
+ off(node, events, selector, handler, options)
274
+ })
275
+
276
+ return el
277
+ }
278
+
262
279
  if (isFunction(selector)) {
263
280
  options = handler
264
281
  handler = selector
package/src/utils.js CHANGED
@@ -244,6 +244,12 @@ export const debounce = function (func, wait, immediate = false, context = null)
244
244
  export const getScrollbarWidth = (() => {
245
245
  let scrollbarWidth = null
246
246
 
247
+ /**
248
+ * Returns the browser scrollbar width in pixels.
249
+ * The value is computed once and then cached.
250
+ *
251
+ * @returns {number} - The scrollbar width in pixels.
252
+ */
247
253
  return function () {
248
254
  if (scrollbarWidth === null) {
249
255
  const outer = document.createElement('div')
package/types/index.d.ts CHANGED
@@ -19,7 +19,7 @@ declare const webf: {
19
19
  strParseFloat: (val: any) => number;
20
20
  throttle: (func: Function, wait: number, leading?: boolean, trailing?: boolean, context?: any) => Function;
21
21
  debounce: (func: Function, wait: number, immediate?: boolean, context?: any) => Function;
22
- getScrollbarWidth: () => any;
22
+ getScrollbarWidth: () => number;
23
23
  round: (val: number, precision?: number) => number;
24
24
  floorTo: (val: number, precision: number) => number;
25
25
  plancher: (val: number, precision: number) => number;