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