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