dynamic-html-helpers 1.3.2 → 1.4.0
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/Bundle/htmlhelpers.min.js +13 -13
- package/Bundle/htmlhelpers.script.js +509 -623
- package/Bundle/htmlhelpers.script.min.js +12 -12
- package/Resource/Externals/REHelper.js +93 -0
- package/Resource/Externals/jqx.min.js +16 -0
- package/Resource/Externals/splat.min.js +1 -0
- package/Resource/Externals/ticktock.min.js +1 -0
- package/index.js +5 -4
- package/package.json +1 -7
|
@@ -25,29 +25,29 @@ var HTMLHelpers = (() => {
|
|
|
25
25
|
$: () => mn,
|
|
26
26
|
$D: () => m,
|
|
27
27
|
logFactory: () => logFactory,
|
|
28
|
-
regexhelper: () =>
|
|
28
|
+
regexhelper: () => REHelper_default,
|
|
29
29
|
splatModule: () => splatModule
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
// ../
|
|
33
|
-
var { IS: u, maybe: A, $Wrap:
|
|
34
|
-
function
|
|
35
|
-
let { useSymbolicExtensions: e } = t, { shouldbeIsSingleObject: r, ISOneOf: n, isExcept: i, verifyNothingness: a, xProxy: f2, determineType: S, addSymbolicExtensions: y2, maybe: x2, $Wrap: d } =
|
|
36
|
-
return e && y2(), { IS:
|
|
37
|
-
function
|
|
32
|
+
// ../Resource/Externals/jqx.min.js
|
|
33
|
+
var { IS: u, maybe: A, $Wrap: yr, isNothing: st, xProxy: He, addSymbolicExtensions: br } = at({ useSymbolicExtensions: false });
|
|
34
|
+
function at(t = {}) {
|
|
35
|
+
let { useSymbolicExtensions: e } = t, { shouldbeIsSingleObject: r, ISOneOf: n, isExcept: i, verifyNothingness: a, xProxy: f2, determineType: S, addSymbolicExtensions: y2, maybe: x2, $Wrap: d } = lt(b3, e);
|
|
36
|
+
return e && y2(), { IS: b3, maybe: x2, $Wrap: d, isNothing: a, xProxy: f2, addSymbolicExtensions: y2 };
|
|
37
|
+
function b3(m2, ...h2) {
|
|
38
38
|
let g2 = typeof m2 == "symbol" ? Symbol.isSymbol : m2;
|
|
39
39
|
switch (true) {
|
|
40
|
-
case !!x2({ trial: (c) => "isTypes" in (
|
|
41
|
-
return r(m2,
|
|
40
|
+
case !!x2({ trial: (c) => "isTypes" in (h2?.[0] ?? {}) }):
|
|
41
|
+
return r(m2, h2[0]);
|
|
42
42
|
default:
|
|
43
|
-
return
|
|
43
|
+
return h2.length > 1 ? n(g2, ...h2) : S(m2, ...h2);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
let { SymbolAndCustomProxyFactory: r, maybeFactory: n, WrapAnyFactory: i, verifyNothingness: a, determineType: f2 } =
|
|
49
|
-
return Object.freeze({ shouldbeIsSingleObject: m2, ISOneOf:
|
|
50
|
-
function
|
|
47
|
+
function lt(t, e) {
|
|
48
|
+
let { SymbolAndCustomProxyFactory: r, maybeFactory: n, WrapAnyFactory: i, verifyNothingness: a, determineType: f2 } = ut(t, b3), { xProxy: S, addSymbolicExtensions: y2 } = r(t, b3, e), [x2, d] = [n(), i(t, b3)];
|
|
49
|
+
return Object.freeze({ shouldbeIsSingleObject: m2, ISOneOf: h2, isExcept: c, verifyNothingness: a, xProxy: S, determineType: f2, addSymbolicExtensions: y2, maybe: x2, $Wrap: d });
|
|
50
|
+
function b3(o) {
|
|
51
51
|
return o?.[Symbol.proxy] ?? t(o);
|
|
52
52
|
}
|
|
53
53
|
function m2(o, s) {
|
|
@@ -60,7 +60,7 @@ var HTMLHelpers = (() => {
|
|
|
60
60
|
return t(o, ...[s.isTypes].flat());
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function h2(o, ...s) {
|
|
64
64
|
return s.some((l) => t(o, l));
|
|
65
65
|
}
|
|
66
66
|
function g2(o, { defaultValue: s, isTypes: l = [void 0], notTypes: p } = {}) {
|
|
@@ -70,9 +70,9 @@ var HTMLHelpers = (() => {
|
|
|
70
70
|
return s = s?.constructor !== Array ? [s] : s, l = l?.constructor !== Array ? [l] : l, t(o, ...s) && !t(o, ...l);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ut() {
|
|
74
74
|
let t = { IS: "toa.is", TYPE: "toa.type", IS_SYMBOL: "toa.isASymbol", PROXY: "toa.proxy" }, e = { NAN: "NaN", INFINITY: "Infinity", BOOLEAN: "Boolean", OBJECT: "Object", PROXY_PREFIX: "Proxy (" };
|
|
75
|
-
return Object.freeze({ SymbolAndCustomProxyFactory: n, maybeFactory: g2, WrapAnyFactory:
|
|
75
|
+
return Object.freeze({ SymbolAndCustomProxyFactory: n, maybeFactory: g2, WrapAnyFactory: h2, verifyNothingness: c, determineType: y2 });
|
|
76
76
|
function r(o, s) {
|
|
77
77
|
Symbol.is || (Symbol.is = Symbol.for(t.IS), Symbol.type = Symbol.for(t.TYPE), Object.defineProperties(Object.prototype, { [Symbol.type]: { get() {
|
|
78
78
|
return s(this);
|
|
@@ -88,7 +88,7 @@ var HTMLHelpers = (() => {
|
|
|
88
88
|
return Symbol.isSymbol || (Symbol.isSymbol = Symbol.for(t.IS_SYMBOL)), { xProxy: f2(), addSymbolicExtensions: () => r(o, s) };
|
|
89
89
|
}
|
|
90
90
|
function i(o) {
|
|
91
|
-
return (
|
|
91
|
+
return (st(o, true) ? { name: "unknown" } : Object.getPrototypeOf(o)?.constructor).name;
|
|
92
92
|
}
|
|
93
93
|
function a(o, s) {
|
|
94
94
|
return Proxy = new o(o, { construct(l, p) {
|
|
@@ -110,22 +110,22 @@ var HTMLHelpers = (() => {
|
|
|
110
110
|
return { noInput: p, noShouldbe: l, compareTo: !l && s[0], inputCTOR: !p && (o?.constructor || Object.getPrototypeOf(o)?.constructor), isNaN: Number.isNaN(o) || A({ trial: (v2) => String(o) === e.NAN }), isInfinity: A({ trial: (v2) => String(o) }) === e.INFINITY, shouldBeFirstElementIsNothing: !l && c(s[0]) };
|
|
111
111
|
}
|
|
112
112
|
function y2(o, ...s) {
|
|
113
|
-
let { noInput: l, noShouldbe: p, compareTo: v2, inputCTOR:
|
|
113
|
+
let { noInput: l, noShouldbe: p, compareTo: v2, inputCTOR: N2, isNaN: de2, isInfinity: me2, shouldBeFirstElementIsNothing: ge2 } = S(o, ...s);
|
|
114
114
|
switch (s = s.length && s[0], true) {
|
|
115
|
-
case
|
|
115
|
+
case ge2:
|
|
116
116
|
return String(o) === String(v2);
|
|
117
117
|
case (o?.[Symbol.proxy] && p):
|
|
118
118
|
return o[Symbol.proxy];
|
|
119
|
-
case
|
|
119
|
+
case de2:
|
|
120
120
|
return p ? e.NAN : String(v2) === String(o);
|
|
121
|
-
case
|
|
121
|
+
case me2:
|
|
122
122
|
return p ? e.INFINITY : String(v2) === String(o);
|
|
123
123
|
case l:
|
|
124
124
|
return p ? String(o) : String(v2) === String(o);
|
|
125
|
-
case
|
|
126
|
-
return p ? e.BOOLEAN :
|
|
125
|
+
case N2 === Boolean:
|
|
126
|
+
return p ? e.BOOLEAN : N2 === s;
|
|
127
127
|
default:
|
|
128
|
-
return d(o, s, p, x2(o,
|
|
128
|
+
return d(o, s, p, x2(o, N2));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function x2(o, s) {
|
|
@@ -149,16 +149,16 @@ var HTMLHelpers = (() => {
|
|
|
149
149
|
case (o?.[Symbol.toStringTag] && typeof s == "string"):
|
|
150
150
|
return String(s) === o[Symbol.toStringTag];
|
|
151
151
|
default:
|
|
152
|
-
return s ? m2(o, s, p) :
|
|
152
|
+
return s ? m2(o, s, p) : b3(o, p);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function b3(o, s) {
|
|
156
156
|
return (o?.[Symbol.toStringTag] ?? o?.prototype?.[Symbol.toStringTag]) || s?.name || String(s);
|
|
157
157
|
}
|
|
158
158
|
function m2(o, s, l) {
|
|
159
159
|
return A({ trial: (p) => o instanceof s }) || s === l || s === Object.getPrototypeOf(l) || `${s?.name}` === l?.name;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function h2(o, s) {
|
|
162
162
|
return function(l) {
|
|
163
163
|
let p = { get value() {
|
|
164
164
|
return l;
|
|
@@ -190,114 +190,114 @@ var HTMLHelpers = (() => {
|
|
|
190
190
|
return l = s ? l || u(o, 1 / 0) || u(o, NaN) : l, l;
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var
|
|
194
|
-
var R =
|
|
195
|
-
var J =
|
|
196
|
-
function
|
|
193
|
+
var Me = dt();
|
|
194
|
+
var R = ct();
|
|
195
|
+
var J = ft();
|
|
196
|
+
function ct() {
|
|
197
197
|
return { html: Object.freeze("accept,action,align,alt,autocapitalize,autocomplete,autopictureinpicture,autoplay,background,bgcolor,border,capture,cellpadding,cellspacing,checked,cite,class,clear,contenteditable,color,cols,colspan,controls,controlslist,coords,crossorigin,datetime,decoding,default,dir,disabled,disablepictureinpicture,disableremoteplayback,download,draggable,enctype,enterkeyhint,face,for,headers,height,hidden,high,href,hreflang,id,inputmode,integrity,is,ismap,kind,label,lang,list,loading,loop,low,max,maxlength,media,method,min,minlength,multiple,muted,name,nonce,noshade,novalidate,nowrap,open,optimum,pattern,placeholder,playsinline,poster,preload,pubdate,radiogroup,readonly,rel,required,rev,reversed,role,rows,rowspan,spellcheck,scope,selected,shape,size,sizes,span,srclang,start,src,srcset,step,style,summary,tabindex,target,title,translate,type,usemap,valign,value,width,xmlns,slot".split(",")), svg: Object.freeze("accent-height,accumulate,additive,alignment-baseline,ascent,attributename,attributetype,azimuth,basefrequency,baseline-shift,begin,bias,by,class,clip,clippathunits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,cx,cy,d,dx,dy,diffuseconstant,direction,display,divisor,dur,edgemode,elevation,end,fill,fill-opacity,fill-rule,filter,filterunits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,fx,fy,g1,g2,glyph-name,glyphref,gradientunits,gradienttransform,height,href,id,image-rendering,in,in2,k,k1,k2,k3,k4,kerning,keypoints,keysplines,keytimes,lang,lengthadjust,letter-spacing,kernelmatrix,kernelunitlength,lighting-color,local,marker-end,marker-mid,marker-start,markerheight,markerunits,markerwidth,maskcontentunits,maskunits,max,mask,media,method,mode,min,name,numoctaves,offset,operator,opacity,order,orient,orientation,origin,overflow,paint-order,path,pathlength,patterncontentunits,patterntransform,patternunits,points,preservealpha,preserveaspectratio,primitiveunits,r,rx,ry,radius,refx,refy,repeatcount,repeatdur,restart,result,rotate,scale,seed,shape-rendering,specularconstant,specularexponent,spreadmethod,startoffset,stddeviation,stitchtiles,stop-color,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke,stroke-width,style,surfacescale,systemlanguage,tabindex,targetx,targety,transform,text-anchor,text-decoration,text-rendering,textlength,type,u1,u2,unicode,values,viewbox,visibility,version,vert-adv-y,vert-origin-x,vert-origin-y,width,word-spacing,wrap,writing-mode,xchannelselector,ychannelselector,x,x1,x2,xmlns,y,y1,y2,z,zoomandpan".split(",")) };
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ft() {
|
|
200
200
|
return { a: true, area: true, audio: false, br: true, base: true, body: true, button: true, canvas: true, comment: true, dl: true, data: true, datalist: true, div: true, em: true, embed: false, fieldset: true, font: true, footer: true, form: false, hr: true, head: true, header: true, output: true, iframe: false, frameset: false, img: true, input: true, li: true, label: true, legend: true, link: true, map: true, mark: true, menu: true, media: true, meta: true, nav: true, meter: true, ol: true, object: false, optgroup: true, option: true, p: true, param: true, picture: true, pre: true, progress: false, quote: true, script: false, select: true, source: true, span: true, style: true, caption: true, td: true, col: true, table: true, tr: true, template: false, textarea: true, time: true, title: true, track: true, details: true, ul: true, video: true, del: true, ins: true, slot: true, blockquote: true, svg: true, dialog: true, summary: true, main: true, address: true, colgroup: true, tbody: true, tfoot: true, thead: true, th: true, dd: true, dt: true, figcaption: true, figure: true, i: true, b: true, code: true, h1: true, h2: true, h3: true, h4: true, abbr: true, bdo: true, dfn: true, kbd: true, q: true, rb: true, rp: true, rt: true, ruby: true, s: true, strike: true, samp: true, small: true, strong: true, sup: true, sub: true, u: true, var: true, wbr: true, nobr: true, tt: true, noscript: true };
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function dt() {
|
|
203
203
|
return ["::backdrop{background-color:grey;opacity:0.2;}", `#jqxPopup{overflow:hidden;background-color:transparent;outline:none;border:none;inset:0;animation:fade-out 0.5s ease-out;&[open]{display:flex;align-items:center;justify-content:center;animation:fade-in 0.5s ease;}#jqxPopupContent{background-color:white;border:solid 1px #eee;box-shadow:1px 2px 8px #999;border-radius:4px;padding:12px;vertical-align:middle;max-height:40vh;max-width:50vw;overflow:auto;margin:0 auto;div:not(#closeHandleIcon){clear:both;}@media (width <= 640px){max-width:80vw;max-height:60vh;}#closeHandleIcon{cursor:pointer;width:24px;height:24px;display:inline;position:absolute;top:4px;right:4px;justify-content:right;background-image:url("data:image/svg+xml;utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20version%3D%221.1%22%20id%3D%22Layer_1%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%20128%20128%22%20style%3D%22enable-background%3Anew%200%200%20128%20128%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Crect%20x%3D%22-368%22%20y%3D%226%22%20style%3D%22display%3Anone%3Bfill%3A%23E0E0E0%3B%22%20width%3D%22866%22%20height%3D%221018%22%2F%3E%3Ccircle%20style%3D%22fill%3A%23FFFFFF%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Ccircle%20style%3D%22fill%3A%238CCFB9%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2239%22%2F%3E%3Ccircle%20style%3D%22fill%3Anone%3Bstroke%3A%23444B54%3Bstroke-width%3A6%3Bstroke-miterlimit%3A10%3B%22%20cx%3D%2264%22%20cy%3D%2264%22%20r%3D%2248%22%2F%3E%3Cpolyline%20style%3D%22fill%3Anone%3Bstroke%3A%23FFFFFF%3Bstroke-width%3A6%3Bstroke-linecap%3Around%3Bstroke-miterlimit%3A10%3B%22%20points%3D%2242%2C69%2055.55%2C81%20%20%2086%2C46%20%22%2F%3E%3C%2Fsvg%3E");@media (width <= 640px){background-image:none;position:relative;margin:-15px -15px 4px 0;float:right;vertical-align:middle;border:1px solid #AAA;padding:2px;border-radius:50%;width:12px;height:12px;font-size:12px;line-height:12px;font-weight:bold;text-align:center;&:after{content:'\\2714';color:green;}}}.warn{display:none;text-align:center;color:red;border-top:1px solid #999;margin-top:1em;padding-top:3px;animation:warn-fade-out 0.2s ease-out;}.warn.active{opacity:1;display:block;animation:warn-fade-in 0.2s ease-in;}}}`, "@keyframes fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1, 1);display:flex;}}", "@keyframes fade-out{0%{opacity:1;transform:scale(1, 1);display:flex;}100%{opacity:0;transform:scale(0, 0);display:none;}}", "@keyframes warn-fade-in{0%{opacity:0;transform:scale(0, 0);display:none;}100%{opacity:1;transform:scale(1,1 );display:block;}}", "@keyframes warn-fade-out{0%{opacity:1;transform:scale(1, 1);display:block;}100%{opacity:0;transform:scale(0, 0);display:none;}}"];
|
|
204
204
|
}
|
|
205
|
-
var
|
|
206
|
-
var U =
|
|
207
|
-
function
|
|
205
|
+
var Ie = { html: "innerHTML", text: "textContent", class: "className" };
|
|
206
|
+
var U = mt();
|
|
207
|
+
function mt() {
|
|
208
208
|
let t = { get(e, r) {
|
|
209
209
|
let n = String(r)?.toLowerCase();
|
|
210
210
|
switch (true) {
|
|
211
211
|
case n in e:
|
|
212
212
|
return e[n];
|
|
213
|
-
case
|
|
214
|
-
return
|
|
213
|
+
case Et(n):
|
|
214
|
+
return De(e, n, r);
|
|
215
215
|
default:
|
|
216
|
-
return
|
|
216
|
+
return De(e, n, r, true);
|
|
217
217
|
}
|
|
218
218
|
}, enumerable: false, configurable: false };
|
|
219
219
|
return new Proxy({}, t);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function De(t, e, r, n = false) {
|
|
222
222
|
return Object.defineProperty(t, e, { get() {
|
|
223
|
-
return n ? (i) =>
|
|
223
|
+
return n ? (i) => xt(r) : wt(e);
|
|
224
224
|
} }), t[e];
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
return e = e?.isJQx && e.first() || e, A({ trial: (n) =>
|
|
226
|
+
function gt(t, e, r) {
|
|
227
|
+
return e = e?.isJQx && e.first() || e, A({ trial: (n) => vt(e) ? t.append(e) : je(e) ? t.insertAdjacentHTML("beforeend", e) : t.append(e), whenError: (n) => console.info(`${r} (for root ${t}) not created, reason
|
|
228
228
|
`, n) });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
let n =
|
|
232
|
-
return r?.forEach((i) =>
|
|
230
|
+
function pt(t, e, ...r) {
|
|
231
|
+
let n = yt(e, t);
|
|
232
|
+
return r?.forEach((i) => gt(n, i, t)), n;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
switch (t =
|
|
234
|
+
function yt(t, e) {
|
|
235
|
+
switch (t = pe(e) ? St(t) : t?.isJQx ? t.first() : t, true) {
|
|
236
236
|
case u(t, String):
|
|
237
|
-
return k(e,
|
|
237
|
+
return k(e, je(t, e) ? { html: t } : { text: t });
|
|
238
238
|
case u(t, Node):
|
|
239
|
-
return
|
|
239
|
+
return ht(e, t);
|
|
240
240
|
default:
|
|
241
241
|
return k(e, t);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function bt(t) {
|
|
245
245
|
return delete t.data, Object.keys(t).length < 1 || Object.keys(t).forEach((e) => {
|
|
246
246
|
let r = e.toLowerCase();
|
|
247
|
-
r in
|
|
247
|
+
r in Ie && (t[Ie[r]] = t[e], delete t[e]);
|
|
248
248
|
}), t;
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function ht(t, e) {
|
|
251
251
|
let r = k(t);
|
|
252
252
|
return r.append(e), r;
|
|
253
253
|
}
|
|
254
254
|
function k(t, e = {}) {
|
|
255
|
-
e =
|
|
256
|
-
let r = Object.entries(e.data ?? {}), n = Object.assign(
|
|
255
|
+
e = Re(e, {});
|
|
256
|
+
let r = Object.entries(e.data ?? {}), n = Object.assign(pe(t) ? new Comment(e?.text) : document.createElement(t), bt(e));
|
|
257
257
|
return r.length && r.forEach(([i, a]) => n.dataset[i] = String(a)), n;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Re(t, e) {
|
|
260
260
|
return e ? u(t, { isTypes: Object, notTypes: [Array, null, NaN, Proxy], defaultValue: e }) : u(t, { isTypes: Object, notTypes: [Array, null, NaN, Proxy] });
|
|
261
261
|
}
|
|
262
|
-
function ht(t) {
|
|
263
|
-
return De(t) ? t?.text ?? t?.textContent ?? "" : String(t);
|
|
264
|
-
}
|
|
265
262
|
function St(t) {
|
|
263
|
+
return Re(t) ? t?.text ?? t?.textContent ?? "" : String(t);
|
|
264
|
+
}
|
|
265
|
+
function xt(t) {
|
|
266
266
|
return k("b", { style: "color:red", text: `'${t}' is not a valid HTML-tag` });
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
return !
|
|
268
|
+
function je(t, e) {
|
|
269
|
+
return !pe(e) && u(t, String) && /<.*>|&[#|0-9a-z]+[^;];/i.test(t);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function vt(t) {
|
|
272
272
|
return t?.constructor === Comment || t?.constructor === CharacterData;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function pe(t) {
|
|
275
275
|
return t?.constructor === Comment || /comment/i.test(t);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function Et(t) {
|
|
278
278
|
return !u(k(t), HTMLUnknownElement);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return (e, ...r) =>
|
|
280
|
+
function wt(t) {
|
|
281
|
+
return (e, ...r) => pt(t, e, ...r);
|
|
282
282
|
}
|
|
283
|
-
var { IS: j, maybe:
|
|
284
|
-
function
|
|
285
|
-
let { useSymbolicExtensions: e } = t, { shouldbeIsSingleObject: r, ISOneOf: n, isExcept: i, verifyNothingness: a, xProxy: f2, determineType: S, addSymbolicExtensions: y2, maybe: x2, $Wrap: d } =
|
|
286
|
-
return e && y2(), { IS:
|
|
287
|
-
function
|
|
283
|
+
var { IS: j, maybe: ye, $Wrap: Er, isNothing: Tt, xProxy: wr, addSymbolicExtensions: Tr } = Lt({ useSymbolicExtensions: false });
|
|
284
|
+
function Lt(t = {}) {
|
|
285
|
+
let { useSymbolicExtensions: e } = t, { shouldbeIsSingleObject: r, ISOneOf: n, isExcept: i, verifyNothingness: a, xProxy: f2, determineType: S, addSymbolicExtensions: y2, maybe: x2, $Wrap: d } = Ft(b3, e);
|
|
286
|
+
return e && y2(), { IS: b3, maybe: x2, $Wrap: d, isNothing: a, xProxy: f2, addSymbolicExtensions: y2 };
|
|
287
|
+
function b3(m2, ...h2) {
|
|
288
288
|
let g2 = typeof m2 == "symbol" ? Symbol.isSymbol : m2;
|
|
289
289
|
switch (true) {
|
|
290
|
-
case !!x2({ trial: (c) => "isTypes" in (
|
|
291
|
-
return r(m2,
|
|
290
|
+
case !!x2({ trial: (c) => "isTypes" in (h2?.[0] ?? {}) }):
|
|
291
|
+
return r(m2, h2[0]);
|
|
292
292
|
default:
|
|
293
|
-
return
|
|
293
|
+
return h2.length > 1 ? n(g2, ...h2) : S(m2, ...h2);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
let { SymbolAndCustomProxyFactory: r, maybeFactory: n, WrapAnyFactory: i, verifyNothingness: a, determineType: f2 } = Ct(t,
|
|
299
|
-
return Object.freeze({ shouldbeIsSingleObject: m2, ISOneOf:
|
|
300
|
-
function
|
|
297
|
+
function Ft(t, e) {
|
|
298
|
+
let { SymbolAndCustomProxyFactory: r, maybeFactory: n, WrapAnyFactory: i, verifyNothingness: a, determineType: f2 } = Ct(t, b3), { xProxy: S, addSymbolicExtensions: y2 } = r(t, b3, e), [x2, d] = [n(), i(t, b3)];
|
|
299
|
+
return Object.freeze({ shouldbeIsSingleObject: m2, ISOneOf: h2, isExcept: c, verifyNothingness: a, xProxy: S, determineType: f2, addSymbolicExtensions: y2, maybe: x2, $Wrap: d });
|
|
300
|
+
function b3(o) {
|
|
301
301
|
return o?.[Symbol.proxy] ?? t(o);
|
|
302
302
|
}
|
|
303
303
|
function m2(o, s) {
|
|
@@ -310,7 +310,7 @@ var HTMLHelpers = (() => {
|
|
|
310
310
|
return t(o, ...[s.isTypes].flat());
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function h2(o, ...s) {
|
|
314
314
|
return s.some((l) => t(o, l));
|
|
315
315
|
}
|
|
316
316
|
function g2(o, { defaultValue: s, isTypes: l = [void 0], notTypes: p } = {}) {
|
|
@@ -322,7 +322,7 @@ var HTMLHelpers = (() => {
|
|
|
322
322
|
}
|
|
323
323
|
function Ct() {
|
|
324
324
|
let t = { IS: "toa.is", TYPE: "toa.type", IS_SYMBOL: "toa.isASymbol", PROXY: "toa.proxy" }, e = { NAN: "NaN", INFINITY: "Infinity", BOOLEAN: "Boolean", OBJECT: "Object", PROXY_PREFIX: "Proxy (" };
|
|
325
|
-
return Object.freeze({ SymbolAndCustomProxyFactory: n, maybeFactory: g2, WrapAnyFactory:
|
|
325
|
+
return Object.freeze({ SymbolAndCustomProxyFactory: n, maybeFactory: g2, WrapAnyFactory: h2, verifyNothingness: c, determineType: y2 });
|
|
326
326
|
function r(o, s) {
|
|
327
327
|
Symbol.is || (Symbol.is = Symbol.for(t.IS), Symbol.type = Symbol.for(t.TYPE), Object.defineProperties(Object.prototype, { [Symbol.type]: { get() {
|
|
328
328
|
return s(this);
|
|
@@ -338,7 +338,7 @@ var HTMLHelpers = (() => {
|
|
|
338
338
|
return Symbol.isSymbol || (Symbol.isSymbol = Symbol.for(t.IS_SYMBOL)), { xProxy: f2(), addSymbolicExtensions: () => r(o, s) };
|
|
339
339
|
}
|
|
340
340
|
function i(o) {
|
|
341
|
-
return (
|
|
341
|
+
return (Tt(o, true) ? { name: "unknown" } : Object.getPrototypeOf(o)?.constructor).name;
|
|
342
342
|
}
|
|
343
343
|
function a(o, s) {
|
|
344
344
|
return Proxy = new o(o, { construct(l, p) {
|
|
@@ -357,25 +357,25 @@ var HTMLHelpers = (() => {
|
|
|
357
357
|
}
|
|
358
358
|
function S(o, ...s) {
|
|
359
359
|
let l = s.length < 1, p = o == null;
|
|
360
|
-
return { noInput: p, noShouldbe: l, compareTo: !l && s[0], inputCTOR: !p && (o?.constructor || Object.getPrototypeOf(o)?.constructor), isNaN: Number.isNaN(o) ||
|
|
360
|
+
return { noInput: p, noShouldbe: l, compareTo: !l && s[0], inputCTOR: !p && (o?.constructor || Object.getPrototypeOf(o)?.constructor), isNaN: Number.isNaN(o) || ye({ trial: (v2) => String(o) === e.NAN }), isInfinity: ye({ trial: (v2) => String(o) }) === e.INFINITY, shouldBeFirstElementIsNothing: !l && c(s[0]) };
|
|
361
361
|
}
|
|
362
362
|
function y2(o, ...s) {
|
|
363
|
-
let { noInput: l, noShouldbe: p, compareTo: v2, inputCTOR:
|
|
363
|
+
let { noInput: l, noShouldbe: p, compareTo: v2, inputCTOR: N2, isNaN: de2, isInfinity: me2, shouldBeFirstElementIsNothing: ge2 } = S(o, ...s);
|
|
364
364
|
switch (s = s.length && s[0], true) {
|
|
365
|
-
case
|
|
365
|
+
case ge2:
|
|
366
366
|
return String(o) === String(v2);
|
|
367
367
|
case (o?.[Symbol.proxy] && p):
|
|
368
368
|
return o[Symbol.proxy];
|
|
369
|
-
case
|
|
369
|
+
case de2:
|
|
370
370
|
return p ? e.NAN : String(v2) === String(o);
|
|
371
|
-
case
|
|
371
|
+
case me2:
|
|
372
372
|
return p ? e.INFINITY : String(v2) === String(o);
|
|
373
373
|
case l:
|
|
374
374
|
return p ? String(o) : String(v2) === String(o);
|
|
375
|
-
case
|
|
376
|
-
return p ? e.BOOLEAN :
|
|
375
|
+
case N2 === Boolean:
|
|
376
|
+
return p ? e.BOOLEAN : N2 === s;
|
|
377
377
|
default:
|
|
378
|
-
return d(o, s, p, x2(o,
|
|
378
|
+
return d(o, s, p, x2(o, N2));
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
function x2(o, s) {
|
|
@@ -399,16 +399,16 @@ var HTMLHelpers = (() => {
|
|
|
399
399
|
case (o?.[Symbol.toStringTag] && typeof s == "string"):
|
|
400
400
|
return String(s) === o[Symbol.toStringTag];
|
|
401
401
|
default:
|
|
402
|
-
return s ? m2(o, s, p) :
|
|
402
|
+
return s ? m2(o, s, p) : b3(o, p);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function b3(o, s) {
|
|
406
406
|
return (o?.[Symbol.toStringTag] ?? o?.prototype?.[Symbol.toStringTag]) || s?.name || String(s);
|
|
407
407
|
}
|
|
408
408
|
function m2(o, s, l) {
|
|
409
|
-
return
|
|
409
|
+
return ye({ trial: (p) => o instanceof s }) || s === l || s === Object.getPrototypeOf(l) || `${s?.name}` === l?.name;
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function h2(o, s) {
|
|
412
412
|
return function(l) {
|
|
413
413
|
let p = { get value() {
|
|
414
414
|
return l;
|
|
@@ -442,17 +442,17 @@ var HTMLHelpers = (() => {
|
|
|
442
442
|
}
|
|
443
443
|
var Q = Nt;
|
|
444
444
|
function Nt({ styleSheet: t, createWithId: e } = {}) {
|
|
445
|
-
let { tryParseAtOrNestedRules: r, ruleExists: n, checkParams: i, sheet: a, removeRules: f2, consider: S, currentSheetID: y2 } =
|
|
445
|
+
let { tryParseAtOrNestedRules: r, ruleExists: n, checkParams: i, sheet: a, removeRules: f2, consider: S, currentSheetID: y2 } = At({ styleSheet: t, createWithId: e });
|
|
446
446
|
function x2(g2, c) {
|
|
447
447
|
if (g2 && c.removeProperties) {
|
|
448
|
-
Object.keys(c.removeProperties).forEach((o) => g2.style.removeProperty(
|
|
448
|
+
Object.keys(c.removeProperties).forEach((o) => g2.style.removeProperty(Je(o)));
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
451
|
Object.entries(c).forEach(([o, s]) => {
|
|
452
|
-
o =
|
|
452
|
+
o = Je(o.trim()), s = s.trim();
|
|
453
453
|
let l;
|
|
454
454
|
if (/!important/.test(s) && (s = s.slice(0, s.indexOf("!important")).trim(), l = "important"), !CSS.supports(o, s)) return console.error(`StylingFactory ${y2} error: '${o}' with value '${s}' not supported (yet)`);
|
|
455
|
-
|
|
455
|
+
ke(() => g2.style.setProperty(o, s, l), `StylingFactory ${y2} (setRule4Selector) failed`);
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
function d(g2, c, o = a) {
|
|
@@ -461,29 +461,29 @@ var HTMLHelpers = (() => {
|
|
|
461
461
|
let s = n(g2, true), l = s || o.cssRules[o.insertRule(`${g2} {}`, o.cssRules.length || 0)];
|
|
462
462
|
return S(() => x2(l, c), g2, s);
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function b3(g2) {
|
|
465
465
|
let c = g2.trim().split(/{/, 2), o = c.shift().trim();
|
|
466
|
-
if (!j(o, String) || !o?.trim()?.length) return console.error(`StylingFactory ${y2} (doParse): no (valid) selector could be extracted from rule ${
|
|
467
|
-
let s =
|
|
468
|
-
return
|
|
466
|
+
if (!j(o, String) || !o?.trim()?.length) return console.error(`StylingFactory ${y2} (doParse): no (valid) selector could be extracted from rule ${be(g2)}`);
|
|
467
|
+
let s = Dt(c.shift());
|
|
468
|
+
return ke(() => d(o, s), `StylingFactory ${y2} (setRules) failed`);
|
|
469
469
|
}
|
|
470
470
|
function m2(g2) {
|
|
471
471
|
let c = r(g2);
|
|
472
|
-
return c.done ? c.existing :
|
|
472
|
+
return c.done ? c.existing : b3(g2);
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
return g2.trim().startsWith("@media") ? m2(
|
|
474
|
+
function h2(g2, c) {
|
|
475
|
+
return g2.trim().startsWith("@media") ? m2($t(g2, c)) : d(g2, c);
|
|
476
476
|
}
|
|
477
477
|
return function(g2, c = {}) {
|
|
478
|
-
return i(g2, c) && (Object.keys(c).length ?
|
|
478
|
+
return i(g2, c) && (Object.keys(c).length ? h2(g2, c) : m2(g2));
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function At({ styleSheet: t, createWithId: e }) {
|
|
482
482
|
let r = "Note: The rule or some of its properties may not be supported by your browser (yet)", n = `for style#${e}`;
|
|
483
483
|
t = e ? i(e) : t;
|
|
484
484
|
function i(m2) {
|
|
485
|
-
let
|
|
486
|
-
if (
|
|
485
|
+
let h2 = document.querySelector(`#${m2}`)?.sheet;
|
|
486
|
+
if (h2) return h2;
|
|
487
487
|
let g2 = Object.assign(document.createElement("style"), { id: m2 });
|
|
488
488
|
return document.head.insertAdjacentElement("beforeend", g2), g2.sheet;
|
|
489
489
|
}
|
|
@@ -491,105 +491,105 @@ var HTMLHelpers = (() => {
|
|
|
491
491
|
return console.error(`StylingFactory ${n} [rule: ${m2}]
|
|
492
492
|
=> @charset, @namespace and @import are not supported here`), { done: true };
|
|
493
493
|
}
|
|
494
|
-
function f2(m2,
|
|
495
|
-
return [...t.rules].find((g2) =>
|
|
494
|
+
function f2(m2, h2) {
|
|
495
|
+
return [...t.rules].find((g2) => h2 ? Qe(g2.selectorText || "", m2) : Ht`${Ot(m2)}${[..."gim"]}`.test(g2.cssText));
|
|
496
496
|
}
|
|
497
497
|
function S(m2) {
|
|
498
498
|
return /^@charset|@import|namespace/i.test(m2.trim()) ? a(m2) : m2.match(/}/g)?.length > 1 ? { existing: d(m2, 1), done: true } : { done: false };
|
|
499
499
|
}
|
|
500
500
|
function y2(m2) {
|
|
501
|
-
let
|
|
502
|
-
return
|
|
501
|
+
let h2 = [...t.cssRules].reduce((c, o, s) => Qe(o.selectorText || "", m2) && c.concat(s) || c, []), g2 = h2.length;
|
|
502
|
+
return h2.forEach((c) => t.deleteRule(c)), g2 > 0 ? console.info(`\u2714 Removed ${g2} instance${g2 > 1 ? "s" : ""} of selector ${m2} from ${n.slice(4)}`) : console.info(`\u2714 Remove rule: selector ${m2} does not exist in ${n.slice(4)}`);
|
|
503
503
|
}
|
|
504
|
-
function x2(m2,
|
|
505
|
-
return m2 && j(m2, String) && m2.trim().length > 0 && j(
|
|
504
|
+
function x2(m2, h2) {
|
|
505
|
+
return m2 && j(m2, String) && m2.trim().length > 0 && j(h2, Object) || (console.error(`StylingFactory ${n} called with invalid parameters`), false);
|
|
506
506
|
}
|
|
507
507
|
function d(m2) {
|
|
508
508
|
m2 = m2.trim();
|
|
509
|
-
let
|
|
509
|
+
let h2 = m2.slice(0, m2.indexOf("{")).trim(), g2 = !!f2(h2);
|
|
510
510
|
try {
|
|
511
511
|
return t.insertRule(`${m2}`, t.cssRules.length), g2;
|
|
512
512
|
} catch (c) {
|
|
513
513
|
return console.error(`StylingFactory ${n} (tryParse) ${c.name} Error:
|
|
514
514
|
${c.message}
|
|
515
|
-
Rule: ${
|
|
515
|
+
Rule: ${be(m2)}
|
|
516
516
|
${r}`), g2;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function b3(m2, h2, g2) {
|
|
520
520
|
try {
|
|
521
521
|
return m2(), g2;
|
|
522
522
|
} catch (c) {
|
|
523
523
|
return console.error(`StylingFactory ${n} (tryAddOrModify) ${c.name} Error:
|
|
524
524
|
${c.message}
|
|
525
|
-
Rule: ${
|
|
525
|
+
Rule: ${be(h2)}
|
|
526
526
|
${r}`), g2;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
return { sheet: t, removeRules: y2, tryParseAtOrNestedRules: S, ruleExists: f2, checkParams: x2, tryParse: d, consider:
|
|
529
|
+
return { sheet: t, removeRules: y2, tryParseAtOrNestedRules: S, ruleExists: f2, checkParams: x2, tryParse: d, consider: b3, currentSheetID: n };
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
return `${t.trim()} ${Object.entries(e).map(([r, n]) => `${r}: { ${
|
|
531
|
+
function $t(t, e) {
|
|
532
|
+
return `${t.trim()} ${Object.entries(e).map(([r, n]) => `${r}: { ${Pt(n)}`)}`;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function be(t) {
|
|
535
535
|
let e = (t || "NO RULE").trim().slice(0, 50).replace(/\n/g, "\\n").replace(/\s{2,}/g, " ");
|
|
536
536
|
return t.length > e.length ? `${e.trim()}...truncated` : e;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Pt(t) {
|
|
539
539
|
return Object.entries(t).map(([e, r]) => `${e}: ${r.trim()}`).join(`;
|
|
540
540
|
`);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Ot(t) {
|
|
543
543
|
return t.replace(/([*\[\]()-+{}.$?\\])/g, (e) => `\\${e}`);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Ht(t, ...e) {
|
|
546
546
|
let r = e.length && Array.isArray(e.slice(-1)) ? e.pop().join("") : "";
|
|
547
547
|
return new RegExp((e.length && t.raw.reduce((n, i, a) => n.concat(e[a - 1] || "").concat(i), "") || t.raw.join("")).split(`
|
|
548
548
|
`).map((n) => n.replace(/\s|\/\/.*$/g, "").trim().replace(/(@s!)/g, " ")).join(""), r);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function Je(t) {
|
|
551
551
|
return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/[^--]^-|-$/, "");
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ke(t, e) {
|
|
554
554
|
try {
|
|
555
555
|
return t();
|
|
556
556
|
} catch (r) {
|
|
557
557
|
console.error(`${e || "an error occured"}: ${r.message}`);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Mt(t) {
|
|
561
561
|
return t.replace(/\/\*.+?\*\//gm, "").replace(/[}{\r\n]/g, "").replace(/(data:.+?);/g, (e, r) => `${r}\\3b`).split(";").map((e) => e.trim()).join(`;
|
|
562
562
|
`).replaceAll("\\3b", ";").split(`
|
|
563
563
|
`);
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function It(t) {
|
|
566
566
|
return t.reduce((e, r) => {
|
|
567
567
|
let [n, i] = [r.slice(0, r.indexOf(":")).trim(), r.slice(r.indexOf(":") + 1).trim().replace(/;$|;.+(?=\/*).+\/$/, "")];
|
|
568
568
|
return n && i ? { ...e, [n]: i } : e;
|
|
569
569
|
}, {});
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return Mt(
|
|
571
|
+
function Dt(t) {
|
|
572
|
+
return It(Mt(t));
|
|
573
573
|
}
|
|
574
|
-
function
|
|
574
|
+
function Qe(t, e) {
|
|
575
575
|
return t?.replace("::", ":") === e?.replace("::", ":");
|
|
576
576
|
}
|
|
577
|
-
var
|
|
578
|
-
var
|
|
579
|
-
var P = { tagsRaw: J, allowUnknownHtmlTags:
|
|
580
|
-
if (
|
|
577
|
+
var he = false;
|
|
578
|
+
var Rt = { on: () => he = true, off: () => he = false };
|
|
579
|
+
var P = { tagsRaw: J, allowUnknownHtmlTags: Rt, isAllowed(t) {
|
|
580
|
+
if (he) return true;
|
|
581
581
|
let e = u(t, String) ? t.toLowerCase() : t?.nodeName.toLowerCase() || "none";
|
|
582
582
|
return e === "#text" || !!J[e];
|
|
583
583
|
}, allowTag: (t) => J[t.toLowerCase()] = true, prohibitTag: (t) => J[t.toLowerCase()] = false };
|
|
584
|
-
var
|
|
584
|
+
var jt = true;
|
|
585
585
|
var X = { data: /data-[\-\w.\p{L}]/ui, validURL: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, whiteSpace: /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g, notAllowedValues: /^javascript|injected|noreferrer|alert|DataURL/gi };
|
|
586
|
-
function
|
|
587
|
-
if (
|
|
586
|
+
function Jt(t) {
|
|
587
|
+
if (jt && Object.keys(t.removed).length) {
|
|
588
588
|
let e = Object.entries(t.removed).reduce((r, [n, i]) => [...r, `${H(n)} => ${i}`], []).join("\\000A");
|
|
589
589
|
w.error(`JQx: HTML creation error(s): ${e}`);
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function kt(t) {
|
|
593
593
|
let e = t.nodeName.toLowerCase(), r = ["annotation-xml", "color-profile", "font-face", "font-face-src", "font-face-uri", "font-face-format", "font-face-name", "missing-glyph"];
|
|
594
594
|
return /-/.test(e) && !r.find((n) => n === e) || P.isAllowed(e);
|
|
595
595
|
}
|
|
@@ -606,17 +606,17 @@ ${r}`), g2;
|
|
|
606
606
|
}
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
|
-
if (!(
|
|
609
|
+
if (!(kt(r) || r.constructor === CharacterData || r.constructor === Comment)) {
|
|
610
610
|
let i = (r?.outerHTML || r?.textContent).trim(), a = G(i, 60) ?? "EMPTY";
|
|
611
611
|
a += a.length === 60 ? "..." : "", e.removed[`<${r.nodeName?.toLowerCase()}>`] = `not allowed, not rendered. Value: ${a}`, r.remove();
|
|
612
612
|
}
|
|
613
|
-
}),
|
|
613
|
+
}), Jt(e), t;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Qt(t) {
|
|
616
616
|
let e = document.createElement("div");
|
|
617
617
|
return e.insertAdjacentHTML(L.end, t), e.childNodes.length ? I(e) : void 0;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function Bt(t, e, r) {
|
|
620
620
|
switch (true) {
|
|
621
621
|
case u(t, Comment):
|
|
622
622
|
return e.insertAdjacentHTML(r, `<!--${t.data}-->`);
|
|
@@ -628,26 +628,26 @@ ${r}`), g2;
|
|
|
628
628
|
}
|
|
629
629
|
function D(t = [], e = document.body, r = L.BeforeEnd) {
|
|
630
630
|
return r = r || L.BeforeEnd, e = e?.isJQx ? e.node : e || document.body, t.reduce((n, i) => {
|
|
631
|
-
let a = O(i) &&
|
|
631
|
+
let a = O(i) && Wt(i, e, r);
|
|
632
632
|
return a ? [...n, a] : n;
|
|
633
633
|
}, []);
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
return r = r || L.BeforeEnd, e = e?.isJQx ? e?.[0] : e, u(t, Comment, Text) ?
|
|
635
|
+
function Wt(t, e = document.body, r = L.BeforeEnd) {
|
|
636
|
+
return r = r || L.BeforeEnd, e = e?.isJQx ? e?.[0] : e, u(t, Comment, Text) ? Bt(t, e, r) : u(t, HTMLElement) ? e.insertAdjacentElement(r, t) : void 0;
|
|
637
637
|
}
|
|
638
|
-
function
|
|
638
|
+
function F(t) {
|
|
639
639
|
if (u(t, Text, Comment)) return t;
|
|
640
640
|
let e = t?.trim(), r = e?.split(/<text>|<\/text>/i) ?? [];
|
|
641
641
|
if (r?.length && (r = r.length > 1 ? r.filter((i) => i.length).shift() : void 0), e.startsWith("<!--") && e.endsWith("-->")) return document.createComment(t.replace(/<!--|-->$/g, ""));
|
|
642
642
|
if (r || u(e, String) && !/^<(.+)[^>]+>/m.test(e)) return document.createTextNode(r ?? e);
|
|
643
|
-
let n =
|
|
644
|
-
return n.childNodes.length < 1 ?
|
|
643
|
+
let n = Qt(t);
|
|
644
|
+
return n.childNodes.length < 1 ? F(`<span data-jqxcreationerror="1">${Z(t, 60)}</span>`) : n.children[0];
|
|
645
645
|
}
|
|
646
646
|
function K(t) {
|
|
647
647
|
if (t.node("#jqxPopup")) return;
|
|
648
|
-
t.logger.log("JQx: [JQx].Popup first call. Dialog element created."), t.dialog({ id: "jqxPopup" }, t.div({ id: "jqxPopupContent" })).render, t.editCssRules(...
|
|
648
|
+
t.logger.log("JQx: [JQx].Popup first call. Dialog element created."), t.dialog({ id: "jqxPopup" }, t.div({ id: "jqxPopupContent" })).render, t.editCssRules(...Me);
|
|
649
649
|
let e = [], [r, n] = [t("#jqxPopupContent"), t.node("#jqxPopup")], i = {};
|
|
650
|
-
return t.handle({ type: "click, cancel", handlers: m2, name: "genericPopupCloseHandler", capture: true, about: "A generic handler for JQx popups" }), Object.freeze({ show: a, remove: f2, removeModal:
|
|
650
|
+
return t.handle({ type: "click, cancel", handlers: m2, name: "genericPopupCloseHandler", capture: true, about: "A generic handler for JQx popups" }), Object.freeze({ show: a, remove: f2, removeModal: b3 });
|
|
651
651
|
function a(c) {
|
|
652
652
|
if (n.open) switch (true) {
|
|
653
653
|
case S(c):
|
|
@@ -671,7 +671,7 @@ ${r}`), g2;
|
|
|
671
671
|
let { content: c, modal: o, closeAfter: s } = i;
|
|
672
672
|
o = t.IS(o, Boolean) ? o : false;
|
|
673
673
|
let l = o ? "" : t.div({ id: "closeHandleIcon" });
|
|
674
|
-
r.append(l, t.IS(c, String) ? t.div(c) : c), n.showModal(), !o && t.IS(s, Number) &&
|
|
674
|
+
r.append(l, t.IS(c, String) ? t.div(c) : c), n.showModal(), !o && t.IS(s, Number) && h2(f2, s);
|
|
675
675
|
}
|
|
676
676
|
function x2() {
|
|
677
677
|
if (n.close(i.returnValue), d(), t.IS(i.callback, Function)) return e.push(setTimeout(() => i.callback(i.returnValue), 200));
|
|
@@ -680,13 +680,13 @@ ${r}`), g2;
|
|
|
680
680
|
function d() {
|
|
681
681
|
e.forEach((c) => clearTimeout(c)), e = [];
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function b3({ callback: c, value: o } = {}) {
|
|
684
684
|
i.returnValue = o, i.modal = false, i.callback = c || i.callback, f2();
|
|
685
685
|
}
|
|
686
686
|
function m2({ evt: c }) {
|
|
687
687
|
if (!(Object.keys(i).length < 1 || !n.open) && (c.type === "cancel" && i.modal && c.preventDefault(), c.target.closest("#closeHandleIcon") || !c.target.closest("#jqxPopupContent"))) return i.activeTimer && clearTimeout(i.activeTimer), f2();
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function h2(c, o) {
|
|
690
690
|
t.IS(c, Function) && t.IS(o, Number) && o > 0 && (d(), e.push(setTimeout(c, o * 1e3)));
|
|
691
691
|
}
|
|
692
692
|
function g2(c) {
|
|
@@ -696,7 +696,7 @@ ${r}`), g2;
|
|
|
696
696
|
case o.is.empty:
|
|
697
697
|
o = t.div({ class: "warn" }, c);
|
|
698
698
|
default:
|
|
699
|
-
r.append(o.addClass("active")),
|
|
699
|
+
r.append(o.addClass("active")), h2(() => r.find$(".warn").removeClass("active"), 2);
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
}
|
|
@@ -704,23 +704,23 @@ ${r}`), g2;
|
|
|
704
704
|
let e = {}, r = "anonymous_";
|
|
705
705
|
function n(d) {
|
|
706
706
|
if (d) {
|
|
707
|
-
let { handler:
|
|
708
|
-
document.addEventListener(
|
|
707
|
+
let { handler: b3, capture: m2, type: h2 } = d;
|
|
708
|
+
document.addEventListener(h2, b3, { capture: m2 });
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
711
|
function i(d) {
|
|
712
712
|
if (d) {
|
|
713
|
-
let { type:
|
|
714
|
-
document.removeEventListener(
|
|
713
|
+
let { type: b3, handler: m2, capture: h2 } = d;
|
|
714
|
+
document.removeEventListener(b3, m2, { capture: h2 });
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
|
-
function a(d,
|
|
717
|
+
function a(d, b3, m2, h2) {
|
|
718
718
|
return function(g2) {
|
|
719
|
-
if (!T(
|
|
720
|
-
let c = g2.target.closest(
|
|
719
|
+
if (!T(b3)) return d({ evt: g2 });
|
|
720
|
+
let c = g2.target.closest(b3);
|
|
721
721
|
if (c) {
|
|
722
722
|
let o = t(c);
|
|
723
|
-
d({ self: o, me: o, evt: g2 }), m2 && y2(g2.type,
|
|
723
|
+
d({ self: o, me: o, evt: g2 }), m2 && y2(g2.type, h2);
|
|
724
724
|
}
|
|
725
725
|
return true;
|
|
726
726
|
};
|
|
@@ -728,62 +728,63 @@ ${r}`), g2;
|
|
|
728
728
|
function f2(d) {
|
|
729
729
|
return e[d] = e[d] || {}, e[d];
|
|
730
730
|
}
|
|
731
|
-
function S(d,
|
|
732
|
-
return Object.entries(f2(d)).find(([m2]) => m2 ===
|
|
731
|
+
function S(d, b3) {
|
|
732
|
+
return Object.entries(f2(d)).find(([m2]) => m2 === b3);
|
|
733
733
|
}
|
|
734
|
-
function y2(d,
|
|
735
|
-
let m2 = S(d,
|
|
736
|
-
m2 && (i(m2[1]), delete e[d][
|
|
734
|
+
function y2(d, b3) {
|
|
735
|
+
let m2 = S(d, b3);
|
|
736
|
+
m2 && (i(m2[1]), delete e[d][b3], delete ee[b3], w.warn(`Removed listener [${b3}] for event type [${d}].`));
|
|
737
737
|
}
|
|
738
738
|
function x2(d) {
|
|
739
|
-
let { type:
|
|
740
|
-
e[
|
|
741
|
-
let p =
|
|
739
|
+
let { type: b3, handler: m2, name: h2, capture: g2, once: c, selector: o, node: s, about: l } = d;
|
|
740
|
+
e[b3] = e[b3] || {};
|
|
741
|
+
let p = Se(h2 || m2.name), v2 = m2;
|
|
742
742
|
if (s instanceof HTMLElement) {
|
|
743
|
-
let
|
|
744
|
-
s.dataset.hid =
|
|
743
|
+
let N2 = s.dataset.hid || p;
|
|
744
|
+
s.dataset.hid = N2, o = `[data-hid=${N2}]`;
|
|
745
745
|
}
|
|
746
746
|
switch (true) {
|
|
747
|
-
case !e[
|
|
748
|
-
return w.log(`JQx: created listener for event type ${
|
|
749
|
-
y2(
|
|
750
|
-
} }, e[
|
|
747
|
+
case !e[b3][p]:
|
|
748
|
+
return w.log(`JQx: created listener for event type ${b3}, with handler name ${p}`), e[b3][p] = { name: p, handler: a(m2, o, c, p), capture: Be(b3, g2), once: !!c, type: b3, initialHandler: v2, selector: !!o && o || false, about: !!l && l || false, unListen() {
|
|
749
|
+
y2(b3, p);
|
|
750
|
+
} }, e[b3][p];
|
|
751
751
|
default:
|
|
752
|
-
return console.warn(`The listener [${p}] for [${
|
|
752
|
+
return console.warn(`The listener [${p}] for [${b3}] exists, it is not re-assigned.`);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
return { remove(...d) {
|
|
756
756
|
return y2(...d);
|
|
757
757
|
}, listen: function(d) {
|
|
758
|
-
let { type:
|
|
759
|
-
if (!T(
|
|
760
|
-
let
|
|
761
|
-
if (
|
|
762
|
-
y2(
|
|
758
|
+
let { type: b3, handler: m2 } = d;
|
|
759
|
+
if (!T(b3) || !u(m2, Function)) return;
|
|
760
|
+
let h2 = x2(d);
|
|
761
|
+
if (h2) return n(h2), { type: b3, name: h2.name, unListen() {
|
|
762
|
+
y2(b3, h2.name);
|
|
763
763
|
} };
|
|
764
764
|
}, get ListenerStore() {
|
|
765
765
|
return Object.freeze({ ...e });
|
|
766
766
|
} };
|
|
767
767
|
}
|
|
768
|
-
|
|
769
|
-
var
|
|
768
|
+
He.custom();
|
|
769
|
+
var w = _t();
|
|
770
|
+
var zt = ["load", "unload", "scroll", "focus", "blur", "DOMNodeRemovedFromDocument", "DOMNodeInsertedIntoDocument", "loadstart", "progress", "error", "abort", "load", "loadend", "pointerenter", "pointerleave", "readystatechange"];
|
|
770
771
|
var L = Object.freeze(new Proxy({ start: "afterbegin", afterbegin: "afterbegin", end: "beforeend", beforeend: "beforeend", before: "beforebegin", beforebegin: "beforebegin", after: "afterend", afterend: "afterend" }, { get(t, e) {
|
|
771
772
|
return t[String(e).toLowerCase()] ?? t[e];
|
|
772
773
|
} }));
|
|
773
|
-
var
|
|
774
|
-
var
|
|
774
|
+
var Yt = [...Array(26)].map((t, e) => String.fromCharCode(e + 65)).concat([...Array(26)].map((t, e) => String.fromCharCode(e + 97))).concat([...Array(10)].map((t, e) => `${e}`));
|
|
775
|
+
var ve = Object.freeze({ get(t, e) {
|
|
775
776
|
return t[z(e)] || t[e];
|
|
776
777
|
}, enumerable: false, configurable: false });
|
|
777
778
|
var ee = {};
|
|
778
|
-
function
|
|
779
|
+
function Ee() {
|
|
779
780
|
let t = setTimeout(() => {
|
|
780
781
|
});
|
|
781
782
|
for (; t >= 0; ) clearTimeout(t--);
|
|
782
783
|
}
|
|
783
|
-
function
|
|
784
|
-
return T(t) && !/^handler|handlers$/gi.test(t.trim()) ? t.trim() :
|
|
784
|
+
function Se(t) {
|
|
785
|
+
return T(t) && !/^handler|handlers$/gi.test(t.trim()) ? t.trim() : We();
|
|
785
786
|
}
|
|
786
|
-
function
|
|
787
|
+
function we(t) {
|
|
787
788
|
let e = !!t.node && !u(t, Text, Comment);
|
|
788
789
|
switch (true) {
|
|
789
790
|
case e:
|
|
@@ -793,12 +794,12 @@ ${r}`), g2;
|
|
|
793
794
|
return "";
|
|
794
795
|
}
|
|
795
796
|
}
|
|
796
|
-
function
|
|
797
|
+
function We(t) {
|
|
797
798
|
let e = `anonymous_${Math.random().toString(36).slice(2)}`;
|
|
798
|
-
return ee[e] ?
|
|
799
|
+
return ee[e] ? We() : (ee[e] = e, e);
|
|
799
800
|
}
|
|
800
|
-
function
|
|
801
|
-
return !!
|
|
801
|
+
function Be(t, e) {
|
|
802
|
+
return !!zt.find((r) => r === t) || !!e;
|
|
802
803
|
}
|
|
803
804
|
function ne(t) {
|
|
804
805
|
return t.startsWith("data") || R.html.find((e) => t.toLowerCase() === e);
|
|
@@ -827,10 +828,10 @@ ${r}`), g2;
|
|
|
827
828
|
return t;
|
|
828
829
|
}
|
|
829
830
|
}
|
|
830
|
-
function
|
|
831
|
+
function xe(t) {
|
|
831
832
|
return u(t, String) && Object.assign(document.createElement("textarea"), { innerHTML: t }).textContent || t;
|
|
832
833
|
}
|
|
833
|
-
function
|
|
834
|
+
function _t() {
|
|
834
835
|
let [t, e] = [false, true], r = [], n = { get on() {
|
|
835
836
|
return t = true, n;
|
|
836
837
|
}, get off() {
|
|
@@ -849,15 +850,15 @@ ${r}`), g2;
|
|
|
849
850
|
e = false;
|
|
850
851
|
}
|
|
851
852
|
function f2(...x2) {
|
|
852
|
-
return r.unshift(...x2.map((d) => `${re()} \u2A3B ${
|
|
853
|
+
return r.unshift(...x2.map((d) => `${re()} \u2A3B ${xe(d)}`)), console.error(r.slice(0, x2.length).join(`
|
|
853
854
|
`)), n;
|
|
854
855
|
}
|
|
855
856
|
function S(...x2) {
|
|
856
|
-
return r.unshift(...x2.map((d) => `${re()} \u26A0 ${
|
|
857
|
+
return r.unshift(...x2.map((d) => `${re()} \u26A0 ${xe(d)}`)), console.warn(r.slice(0, x2.length).join(`
|
|
857
858
|
`)), n;
|
|
858
859
|
}
|
|
859
860
|
function y2(...x2) {
|
|
860
|
-
let d = x2.map((
|
|
861
|
+
let d = x2.map((b3) => `${re()} \u2714 ${xe(b3)}`);
|
|
861
862
|
switch (!e && r.unshift(...d), t) {
|
|
862
863
|
case true:
|
|
863
864
|
console.log(d.join(`
|
|
@@ -871,14 +872,14 @@ ${r}`), g2;
|
|
|
871
872
|
function re() {
|
|
872
873
|
return ((t) => `[${te(t.getHours())}:${te(t.getMinutes())}:${te(t.getSeconds())}.${te(t.getMilliseconds(), 3)}]`)(/* @__PURE__ */ new Date());
|
|
873
874
|
}
|
|
874
|
-
function
|
|
875
|
+
function Te(t, e) {
|
|
875
876
|
if (t) for (let [r, n] of Object.entries(e)) {
|
|
876
|
-
if (r =
|
|
877
|
+
if (r = C(r), r.startsWith("data")) return ie(t, n);
|
|
877
878
|
u(n, String) && ne(r) && t.setAttribute(r, n.split(/[, ]/)?.join(" "));
|
|
878
879
|
}
|
|
879
880
|
}
|
|
880
881
|
function ie(t, e) {
|
|
881
|
-
if (t && u(e, Object)) for (let [r, n] of Object.entries(e)) t.setAttribute(`data-${
|
|
882
|
+
if (t && u(e, Object)) for (let [r, n] of Object.entries(e)) t.setAttribute(`data-${C(r)}`, n);
|
|
882
883
|
}
|
|
883
884
|
function se(t) {
|
|
884
885
|
return t ? u(t, Proxy) ? [t.EL] : u(t, NodeList) ? [...t] : O(t) ? [t] : _(t) ? t : t.isJQx ? t.collection : void 0 : [];
|
|
@@ -886,8 +887,8 @@ ${r}`), g2;
|
|
|
886
887
|
function ae(t, e) {
|
|
887
888
|
return t.andThen(e);
|
|
888
889
|
}
|
|
889
|
-
function
|
|
890
|
-
return t.andThen(e, true);
|
|
890
|
+
function Le(t, e) {
|
|
891
|
+
return console.log("WTF", t, e), t.andThen(e, true);
|
|
891
892
|
}
|
|
892
893
|
function O(t) {
|
|
893
894
|
return u(t, Text, HTMLElement, Comment);
|
|
@@ -895,40 +896,40 @@ ${r}`), g2;
|
|
|
895
896
|
function W(t, e) {
|
|
896
897
|
if (u(e, Object)) for (let [r, n] of Object.entries(e)) {
|
|
897
898
|
let i;
|
|
898
|
-
/!important/i.test(n) && (n = n.slice(0, n.indexOf("!")).trim(), i = "important"), t.style.setProperty(
|
|
899
|
+
/!important/i.test(n) && (n = n.slice(0, n.indexOf("!")).trim(), i = "important"), t.style.setProperty(C(r), n, i);
|
|
899
900
|
}
|
|
900
901
|
}
|
|
901
902
|
function M(t) {
|
|
902
903
|
let e = t.cloneNode(true);
|
|
903
904
|
return e.removeAttribute && e.removeAttribute("id"), t.isConnected ? t.remove() : t = null, e;
|
|
904
905
|
}
|
|
905
|
-
function
|
|
906
|
+
function ze(t) {
|
|
906
907
|
if (!u(t, HTMLElement)) return;
|
|
907
908
|
let e = t.style, r = getComputedStyle(t), n = !![e.visibility, r.visibility].includes("hidden"), i = !![e.display, r.display].includes("none"), a = !!t.hidden, f2 = parseInt(r.height) < 1 || parseInt(r.width) < 1, S = t.offsetTop < 0 || t.offsetLeft + t.offsetWidth < 0 || t.offsetLeft > document.body.offsetWidth, y2 = +r.opacity == 0 || +(e.opacity || 1) == 0;
|
|
908
909
|
return !(a || S || y2 || i || n || f2);
|
|
909
910
|
}
|
|
910
|
-
function
|
|
911
|
+
function Ye(t) {
|
|
911
912
|
return t?.isConnected ? !![...document.querySelectorAll(":is(:read-write)")].find((e) => e === t) : false;
|
|
912
913
|
}
|
|
913
|
-
function
|
|
914
|
-
return t?.filter((e) => e).reduce((e, r) => e.concat(
|
|
914
|
+
function _e(t) {
|
|
915
|
+
return t?.filter((e) => e).reduce((e, r) => e.concat(Ne(r) ? `<!--${r.data}-->` : ue(r) ? r.textContent : r.outerHTML), "");
|
|
915
916
|
}
|
|
916
917
|
function te(t, e = 2) {
|
|
917
918
|
return `${t}`.padStart(e, "0");
|
|
918
919
|
}
|
|
919
|
-
function
|
|
920
|
+
function Ve(t, e = 0) {
|
|
920
921
|
return [t, e] = [Math.floor(t), Math.ceil(e)], Math.floor([...crypto.getRandomValues(new Uint32Array(1))].shift() / 2 ** 32 * (t - e + 1) + e);
|
|
921
922
|
}
|
|
922
|
-
function
|
|
923
|
-
return `_${
|
|
923
|
+
function le() {
|
|
924
|
+
return `_${Vt(Yt).slice(0, 8).join("")}`;
|
|
924
925
|
}
|
|
925
|
-
function
|
|
926
|
+
function Fe(t) {
|
|
926
927
|
return t = u(t, String) && /,/.test(t) ? t.split(",").map((e) => e.trim().toLowerCase()).filter((e) => e.length > 0) : t, u(t, Array) ? t : u(t, String) && t?.trim().toLowerCase() || "";
|
|
927
928
|
}
|
|
928
|
-
function
|
|
929
|
+
function Ue(t) {
|
|
929
930
|
return t?.isConnected ? !![...document.querySelectorAll(":is(:modal)")].find((e) => e === t) : false;
|
|
930
931
|
}
|
|
931
|
-
function
|
|
932
|
+
function Ce(t, e) {
|
|
932
933
|
switch (t = String(t).trim(), true) {
|
|
933
934
|
case /^(0|false|f)$/i.test(t):
|
|
934
935
|
return false;
|
|
@@ -938,30 +939,30 @@ ${r}`), g2;
|
|
|
938
939
|
return e;
|
|
939
940
|
}
|
|
940
941
|
}
|
|
941
|
-
function
|
|
942
|
+
function Vt(t) {
|
|
942
943
|
let e = t.length;
|
|
943
944
|
for (; e--; ) {
|
|
944
|
-
let r =
|
|
945
|
+
let r = Ve(e);
|
|
945
946
|
[t[e], t[r]] = [t[r], t[e]];
|
|
946
947
|
}
|
|
947
948
|
return t;
|
|
948
949
|
}
|
|
949
950
|
function z(t) {
|
|
950
|
-
return u(t, String) ? t.toLowerCase().split("-").map((e, r) => r && `${
|
|
951
|
+
return u(t, String) ? t.toLowerCase().split("-").map((e, r) => r && `${Ut(e)}` || e).join("") : t;
|
|
951
952
|
}
|
|
952
|
-
function
|
|
953
|
+
function C(t) {
|
|
953
954
|
return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`).replace(/^-|-$/, "");
|
|
954
955
|
}
|
|
955
|
-
function
|
|
956
|
+
function Ut([t, ...e]) {
|
|
956
957
|
return `${t.toUpperCase()}${e.join("")}`;
|
|
957
958
|
}
|
|
958
|
-
function
|
|
959
|
+
function ue(t) {
|
|
959
960
|
return u(t, Comment, Text);
|
|
960
961
|
}
|
|
961
|
-
function
|
|
962
|
+
function Ne(t) {
|
|
962
963
|
u(t, Comment);
|
|
963
964
|
}
|
|
964
|
-
function
|
|
965
|
+
function Xe(t) {
|
|
965
966
|
return u(t, Text);
|
|
966
967
|
}
|
|
967
968
|
function Y(t) {
|
|
@@ -970,15 +971,15 @@ ${r}`), g2;
|
|
|
970
971
|
function _(t) {
|
|
971
972
|
return u(t, Array) && !t?.find((e) => !O(e));
|
|
972
973
|
}
|
|
973
|
-
function
|
|
974
|
+
function ce(t) {
|
|
974
975
|
return u(t, Array) && !t?.find((e) => !Y(e));
|
|
975
976
|
}
|
|
976
977
|
function E(t, e) {
|
|
977
|
-
let r = t.collection.filter((n) => !
|
|
978
|
+
let r = t.collection.filter((n) => !ue(n));
|
|
978
979
|
for (let n = 0; n < r.length; n += 1) e(r[n], n);
|
|
979
980
|
return t;
|
|
980
981
|
}
|
|
981
|
-
function
|
|
982
|
+
function Ge(t) {
|
|
982
983
|
return t.node ? u(t.node, Comment) ? `<!--${t.node.textContent}-->` : t.HTML.get(1).split(">")[0] + ">..." : "";
|
|
983
984
|
}
|
|
984
985
|
function Ae(t, e, r) {
|
|
@@ -989,23 +990,23 @@ ${r}`), g2;
|
|
|
989
990
|
w.warn(`JQx: Invalid CSS querySelector. [${u(t, String) ? t : "Not a string!"}]`);
|
|
990
991
|
}
|
|
991
992
|
}
|
|
992
|
-
function Ge() {
|
|
993
|
-
return { isCommentOrTextNode: ce, isNode: O, isComment: Fe, isText: Ue, isHtmlString: Y, isArrayOfHtmlElements: _, isArrayOfHtmlStrings: fe, ElemArray2HtmlString: Ye, input2Collection: se, setCollectionFromCssSelector: Ae, cssRuleEdit: Q({ createWithId: "JQxStylesheet" }) };
|
|
994
|
-
}
|
|
995
993
|
function Ze() {
|
|
994
|
+
return { isCommentOrTextNode: ue, isNode: O, isComment: Ne, isText: Xe, isHtmlString: Y, isArrayOfHtmlElements: _, isArrayOfHtmlStrings: ce, ElemArray2HtmlString: _e, input2Collection: se, setCollectionFromCssSelector: Ae, cssRuleEdit: Q({ createWithId: "JQxStylesheet" }) };
|
|
995
|
+
}
|
|
996
|
+
function Ke() {
|
|
996
997
|
let e = Object.freeze({ notInDOM: "n/a", writable: "n/a", modal: "n/a", empty: true, open: "n/a", visible: "n/a" });
|
|
997
998
|
return (r) => {
|
|
998
999
|
let n = r.node;
|
|
999
1000
|
return u(n, Node) ? Object.freeze({ get writable() {
|
|
1000
|
-
return
|
|
1001
|
+
return Ye(n);
|
|
1001
1002
|
}, get modal() {
|
|
1002
|
-
return
|
|
1003
|
+
return Ue(n);
|
|
1003
1004
|
}, get inDOM() {
|
|
1004
1005
|
return n.isConnected;
|
|
1005
1006
|
}, get open() {
|
|
1006
1007
|
return n.open ?? false;
|
|
1007
1008
|
}, get visible() {
|
|
1008
|
-
return
|
|
1009
|
+
return ze(n);
|
|
1009
1010
|
}, get disabled() {
|
|
1010
1011
|
return n.hasAttribute("readonly") || n.hasAttribute("disabled");
|
|
1011
1012
|
}, get empty() {
|
|
@@ -1015,19 +1016,19 @@ ${r}`), g2;
|
|
|
1015
1016
|
} }) : e;
|
|
1016
1017
|
};
|
|
1017
1018
|
}
|
|
1018
|
-
function
|
|
1019
|
+
function qe(t, e, r, n) {
|
|
1019
1020
|
r && u(e, String) && (e = { [e]: r === "-" ? "" : r });
|
|
1020
1021
|
let i;
|
|
1021
|
-
e.className && (i = e.className, delete e.className), i = [...t.classList].find((f2) => f2.startsWith("JQxClass-") || i && f2 === i) || i || `JQxClass-${
|
|
1022
|
+
e.className && (i = e.className, delete e.className), i = [...t.classList].find((f2) => f2.startsWith("JQxClass-") || i && f2 === i) || i || `JQxClass-${le().slice(1)}`, n.editCssRule(`.${i}`, e), t.classList.add(i);
|
|
1022
1023
|
}
|
|
1023
|
-
var
|
|
1024
|
-
function
|
|
1025
|
-
return { factoryExtensions:
|
|
1024
|
+
var Xt = Ke();
|
|
1025
|
+
function et(t) {
|
|
1026
|
+
return { factoryExtensions: Gt(t), instanceExtensions: Zt(t) };
|
|
1026
1027
|
}
|
|
1027
|
-
function
|
|
1028
|
+
function Gt(t) {
|
|
1028
1029
|
return { data(e) {
|
|
1029
1030
|
return { get all() {
|
|
1030
|
-
return new Proxy(e[0]?.dataset ?? {},
|
|
1031
|
+
return new Proxy(e[0]?.dataset ?? {}, ve);
|
|
1031
1032
|
}, set(r = {}) {
|
|
1032
1033
|
if (!e.is.empty && u(r, Object)) for (let [n, i] of Object.entries(r)) e.setData({ [n]: i });
|
|
1033
1034
|
return e;
|
|
@@ -1037,7 +1038,7 @@ ${r}`), g2;
|
|
|
1037
1038
|
if (!e.is.empty && u(r, Object)) for (let [n, i] of Object.entries(r)) e.setData({ [n]: i });
|
|
1038
1039
|
return e;
|
|
1039
1040
|
}, remove(r) {
|
|
1040
|
-
return e[0]?.removeAttribute(`data-${
|
|
1041
|
+
return e[0]?.removeAttribute(`data-${C(r)}`), e;
|
|
1041
1042
|
} };
|
|
1042
1043
|
}, dimensions(e) {
|
|
1043
1044
|
if (e.is.empty) return w.error("[JQx instance].dimensions called on empty instance"), { error: "[JQx instance].dimensions: NO ELEMENTS" };
|
|
@@ -1062,7 +1063,7 @@ ${r}`), g2;
|
|
|
1062
1063
|
return r = u(r, HTMLElement) ? t(r).HTML.get(1) : r.isJQx ? r.HTML.get(1) : r, e.HTML.set(r + e.HTML.get(), false, n);
|
|
1063
1064
|
} };
|
|
1064
1065
|
}, is(e) {
|
|
1065
|
-
return
|
|
1066
|
+
return Xt(e);
|
|
1066
1067
|
}, length(e) {
|
|
1067
1068
|
return e.collection.length;
|
|
1068
1069
|
}, outerHtml(e) {
|
|
@@ -1085,7 +1086,7 @@ ${r}`), g2;
|
|
|
1085
1086
|
}, inSheet(r) {
|
|
1086
1087
|
return e.css(r);
|
|
1087
1088
|
}, valueOf(r) {
|
|
1088
|
-
return e.is.empty ? void 0 : getComputedStyle(e[0])[
|
|
1089
|
+
return e.is.empty ? void 0 : getComputedStyle(e[0])[C(r)];
|
|
1089
1090
|
}, nwRule(r) {
|
|
1090
1091
|
return e.Style.byRule({ rules: r });
|
|
1091
1092
|
}, byRule({ classes2Apply: r = [], rules: n = [] } = {}) {
|
|
@@ -1095,12 +1096,16 @@ ${r}`), g2;
|
|
|
1095
1096
|
} };
|
|
1096
1097
|
} };
|
|
1097
1098
|
}
|
|
1098
|
-
function
|
|
1099
|
+
function Zt(t) {
|
|
1099
1100
|
return { addClass(e, ...r) {
|
|
1100
1101
|
return E(e, (n) => n && r.forEach((i) => n.classList.add(i)));
|
|
1101
|
-
}, after
|
|
1102
|
+
}, after(e, r) {
|
|
1103
|
+
return ae(e, r);
|
|
1104
|
+
}, afterMe(e, r) {
|
|
1105
|
+
return ae(e, r);
|
|
1106
|
+
}, andThen(e, r, n = false) {
|
|
1102
1107
|
if (!r || !u(r, String, Node, Proxy)) return w.log("[JQx instance].[before(Me) | after(Me) | andThen]: invalid/-sufficient input."), e;
|
|
1103
|
-
r = r?.isJQx ? r : u(r, Node) ? t.virtual(r) : t.virtual(
|
|
1108
|
+
r = r?.isJQx ? r : u(r, Node) ? t.virtual(r) : t.virtual(F(r));
|
|
1104
1109
|
let [i, a, f2] = n ? [0, "before", r.collection.concat(e.collection)] : [e.collection.length - 1, "after", e.collection.concat(r.collection)];
|
|
1105
1110
|
return e[i][a](...r.collection), e.collection = f2, e;
|
|
1106
1111
|
}, append(e, ...r) {
|
|
@@ -1108,7 +1113,7 @@ ${r}`), g2;
|
|
|
1108
1113
|
let n = e.length === 1;
|
|
1109
1114
|
for (let i of r) {
|
|
1110
1115
|
if (!i.isJQx && T(i)) {
|
|
1111
|
-
let a = i.trim(), S = !/^<(.+)[^>]+>$/m.test(a) ? t.text(i) :
|
|
1116
|
+
let a = i.trim(), S = !/^<(.+)[^>]+>$/m.test(a) ? t.text(i) : F(i);
|
|
1112
1117
|
E(e, (y2) => y2.append(n ? S : M(S)));
|
|
1113
1118
|
}
|
|
1114
1119
|
O(i) && E(e, (a) => a.append(n ? i : M(i))), i.isJQx && !i.is.empty && E(e, (a) => i.collection.forEach((f2) => a.append(n ? f2 : M(f2))));
|
|
@@ -1123,16 +1128,20 @@ ${r}`), g2;
|
|
|
1123
1128
|
}
|
|
1124
1129
|
}, attr(e, r, n) {
|
|
1125
1130
|
if (!e.node || u(e.node, Text, Comment)) return e;
|
|
1126
|
-
if (!n && T(r)) return r =
|
|
1127
|
-
if (T(r) && n) switch (r =
|
|
1131
|
+
if (!n && T(r)) return r = C(r), r === "class" ? [...e.node.classList].join(" ") : e.node.getAttribute(r);
|
|
1132
|
+
if (T(r) && n) switch (r = C(r), true) {
|
|
1128
1133
|
case r.startsWith("data-"):
|
|
1129
1134
|
r = { data: { [r.replace("data-", "")]: n } };
|
|
1130
1135
|
break;
|
|
1131
1136
|
default:
|
|
1132
1137
|
r = { [r]: n };
|
|
1133
1138
|
}
|
|
1134
|
-
return u(r, Object) && !e.is.empty &&
|
|
1135
|
-
}, before
|
|
1139
|
+
return u(r, Object) && !e.is.empty && Te(e.node, r), e;
|
|
1140
|
+
}, before(e, r) {
|
|
1141
|
+
return console.log("WTF", e, r), e.andThen(r, true);
|
|
1142
|
+
}, beforeMe(e, r) {
|
|
1143
|
+
return Le(e, r);
|
|
1144
|
+
}, clear(e) {
|
|
1136
1145
|
return E(e, oe);
|
|
1137
1146
|
}, closest(e, r) {
|
|
1138
1147
|
let n = T(r) ? e.node?.closest(r) : void 0;
|
|
@@ -1141,7 +1150,7 @@ ${r}`), g2;
|
|
|
1141
1150
|
let { node: n } = e;
|
|
1142
1151
|
return n && getComputedStyle(n)[r];
|
|
1143
1152
|
}, css(e, r, n) {
|
|
1144
|
-
return E(e, (i) =>
|
|
1153
|
+
return E(e, (i) => qe(i, r, n, t));
|
|
1145
1154
|
}, duplicate(e, r = false, n = document.body) {
|
|
1146
1155
|
switch (true) {
|
|
1147
1156
|
case e.is.empty:
|
|
@@ -1177,14 +1186,14 @@ ${r}`), g2;
|
|
|
1177
1186
|
case !T(r):
|
|
1178
1187
|
return e.node?.getHTML() ?? "";
|
|
1179
1188
|
default:
|
|
1180
|
-
let i =
|
|
1189
|
+
let i = F(`<div>${r.isJQx ? r.HTML.get(true) : r}</div>`);
|
|
1181
1190
|
return E(e, (f2) => (f2.textContent = n ? f2.textContent : "", f2.insertAdjacentHTML(t.at.end, i.getHTML())));
|
|
1182
1191
|
}
|
|
1183
1192
|
}, htmlFor(e, r, n = "", i = false) {
|
|
1184
1193
|
if (e.is.empty || !T(r) || !T(n)) return e;
|
|
1185
1194
|
let a = e.find$(r);
|
|
1186
1195
|
if (a.length < 1) return e;
|
|
1187
|
-
let f2 =
|
|
1196
|
+
let f2 = F(`<span>${n}</span>`);
|
|
1188
1197
|
return a.each((S) => {
|
|
1189
1198
|
i || (S.textContent = ""), S.insertAdjacentHTML(t.at.end, f2?.getHTML());
|
|
1190
1199
|
}), e;
|
|
@@ -1212,7 +1221,7 @@ ${r}`), g2;
|
|
|
1212
1221
|
for (let i of r) {
|
|
1213
1222
|
if (T(i)) {
|
|
1214
1223
|
i = i.trim();
|
|
1215
|
-
let f2 = !/^<(.+)[^>]+>$/m.test(i) ? t.text(i) :
|
|
1224
|
+
let f2 = !/^<(.+)[^>]+>$/m.test(i) ? t.text(i) : F(i);
|
|
1216
1225
|
f2 = n ? f2 : M(f2), E(e, (S) => S.prepend(f2.cloneNode(true)));
|
|
1217
1226
|
}
|
|
1218
1227
|
O(i) && E(e, (a) => a.prepend(n ? i : M(i))), i.isJQx && !i.is.empty && (i.collection.length > 1 && i.collection.reverse(), E(e, (a) => E(i, (f2) => a.prepend(n ? f2 : M(f2)))), i.collection.reverse());
|
|
@@ -1311,15 +1320,15 @@ ${r}`), g2;
|
|
|
1311
1320
|
} };
|
|
1312
1321
|
}
|
|
1313
1322
|
var $e;
|
|
1314
|
-
var
|
|
1315
|
-
var { isComment: tn, isText: rn, isHtmlString: nn, isArrayOfHtmlElements: on, isArrayOfHtmlStrings: sn, ElemArray2HtmlString: an, cssRuleEdit: Pe, addFn:
|
|
1316
|
-
function
|
|
1317
|
-
return { ...
|
|
1323
|
+
var fe;
|
|
1324
|
+
var { isComment: tn, isText: rn, isHtmlString: nn, isArrayOfHtmlElements: on, isArrayOfHtmlStrings: sn, ElemArray2HtmlString: an, cssRuleEdit: Pe, addFn: Kt } = qt();
|
|
1325
|
+
function qt() {
|
|
1326
|
+
return { ...Ze(), addFn: er };
|
|
1318
1327
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return t = t?.trim(), !T(t) || !u(e, Function) ? w.error("JQx.fn: method invalid parameter(s)") :
|
|
1328
|
+
function er(t, e) {
|
|
1329
|
+
return t = t?.trim(), !T(t) || !u(e, Function) ? w.error("JQx.fn: method invalid parameter(s)") : fe[t] = (r, ...n) => e(r, ...n);
|
|
1321
1330
|
}
|
|
1322
|
-
function
|
|
1331
|
+
function tr(t) {
|
|
1323
1332
|
return function(e, r, n) {
|
|
1324
1333
|
if (e = e?.trim(), !T(e) || !u(r, Function)) return t.error("JQx.staticFn: invalid parameter(s)");
|
|
1325
1334
|
let i = n ? { get() {
|
|
@@ -1336,31 +1345,31 @@ ${r}`), g2;
|
|
|
1336
1345
|
};
|
|
1337
1346
|
}
|
|
1338
1347
|
function V(t) {
|
|
1339
|
-
return new Proxy(t, Object.freeze({ get: (e, r) =>
|
|
1348
|
+
return new Proxy(t, Object.freeze({ get: (e, r) => rr(e, r, t) }));
|
|
1340
1349
|
}
|
|
1341
|
-
function
|
|
1350
|
+
function tt(t, e) {
|
|
1342
1351
|
return (...r) => u(t, Function) && t(V(e), ...r);
|
|
1343
1352
|
}
|
|
1344
|
-
function
|
|
1353
|
+
function rr(t, e, r) {
|
|
1345
1354
|
switch (true) {
|
|
1346
1355
|
case u(e, Symbol):
|
|
1347
1356
|
return A({ trial: () => t[e], whenError: () => t });
|
|
1348
1357
|
case u(+e, Number):
|
|
1349
1358
|
return t.collection?.[e] || void 0;
|
|
1350
1359
|
case e in $e:
|
|
1351
|
-
return
|
|
1352
|
-
case e in
|
|
1353
|
-
return
|
|
1360
|
+
return tt($e[e], r)();
|
|
1361
|
+
case e in fe:
|
|
1362
|
+
return tt(fe[e], r);
|
|
1354
1363
|
default:
|
|
1355
1364
|
return t[e];
|
|
1356
1365
|
}
|
|
1357
1366
|
}
|
|
1358
|
-
function
|
|
1359
|
-
let e =
|
|
1367
|
+
function ot(t) {
|
|
1368
|
+
let e = ar(t);
|
|
1360
1369
|
for (let [r, n] of Object.entries(Object.getOwnPropertyDescriptors(e))) Object.defineProperty(t, r, n);
|
|
1361
1370
|
return t;
|
|
1362
1371
|
}
|
|
1363
|
-
function
|
|
1372
|
+
function nr(t) {
|
|
1364
1373
|
return { allow(e) {
|
|
1365
1374
|
let r = /-/.test(e), n = r && e;
|
|
1366
1375
|
e = r ? z(e) : e.toLowerCase(), P.allowTag(e), Object.defineProperties(t, Oe(e, true, t, n));
|
|
@@ -1368,14 +1377,14 @@ ${r}`), g2;
|
|
|
1368
1377
|
e = e.toLowerCase(), P.prohibitTag(e), Object.defineProperties(t, Oe(e, false, t));
|
|
1369
1378
|
} };
|
|
1370
1379
|
}
|
|
1371
|
-
function
|
|
1380
|
+
function rt(...t) {
|
|
1372
1381
|
if (t.length === 1) {
|
|
1373
1382
|
let e = String(t.shift().trim());
|
|
1374
1383
|
t = e.startsWith("!") ? [e.slice(1, -1)] : e.split(",").map((r) => r.trim());
|
|
1375
1384
|
}
|
|
1376
1385
|
for (let e of t.map((r) => r.startsWith("!") ? r.slice(1, -1) : r)) Pe(e, { removeRule: 1 });
|
|
1377
1386
|
}
|
|
1378
|
-
function
|
|
1387
|
+
function or(t) {
|
|
1379
1388
|
return function(e, r, n) {
|
|
1380
1389
|
r = r?.isJQx ? r?.[0] : r, n = n && Object.values(L).find((a) => n === a);
|
|
1381
1390
|
let i = t(e, document.createElement("br"));
|
|
@@ -1383,7 +1392,7 @@ ${r}`), g2;
|
|
|
1383
1392
|
return i;
|
|
1384
1393
|
};
|
|
1385
1394
|
}
|
|
1386
|
-
function
|
|
1395
|
+
function ir(...t) {
|
|
1387
1396
|
let e = {};
|
|
1388
1397
|
for (let r of t) {
|
|
1389
1398
|
let n = Object.getOwnPropertyDescriptors(r);
|
|
@@ -1391,97 +1400,97 @@ ${r}`), g2;
|
|
|
1391
1400
|
}
|
|
1392
1401
|
return e;
|
|
1393
1402
|
}
|
|
1394
|
-
function
|
|
1395
|
-
return t =
|
|
1403
|
+
function sr(t, e, r, n) {
|
|
1404
|
+
return t = C(n || t.toLowerCase()), { get() {
|
|
1396
1405
|
return (...i) => {
|
|
1397
|
-
let a = e && r.virtual(I(U[t](...i))) || void 0, S = !u(a?.node, Comment, Text, void 0) ?
|
|
1406
|
+
let a = e && r.virtual(I(U[t](...i))) || void 0, S = !u(a?.node, Comment, Text, void 0) ? we(a) : "";
|
|
1398
1407
|
return w.log(e ? `JQx: created (virtual) instance from [JQx].${t} ${S}` : `JQx: ${t.toUpperCase()} is prohibited. Use [JQx].allowTag if necessary.`), a;
|
|
1399
1408
|
};
|
|
1400
1409
|
}, enumerable: false, configurable: true };
|
|
1401
1410
|
}
|
|
1402
1411
|
function Oe(t, e, r, n) {
|
|
1403
1412
|
t = t.toLowerCase();
|
|
1404
|
-
let i =
|
|
1413
|
+
let i = sr(t, e, r, n);
|
|
1405
1414
|
return n ? { [n]: i, [z(n)]: i } : { [t]: i, [t.toUpperCase()]: i };
|
|
1406
1415
|
}
|
|
1407
|
-
function sr(t) {
|
|
1408
|
-
return or(Object.entries(P.tagsRaw).reduce(ar(t), {}), mr(t));
|
|
1409
|
-
}
|
|
1410
1416
|
function ar(t) {
|
|
1417
|
+
return ir(Object.entries(P.tagsRaw).reduce(lr(t), {}), gr(t));
|
|
1418
|
+
}
|
|
1419
|
+
function lr(t) {
|
|
1411
1420
|
return function(e, [r, n]) {
|
|
1412
1421
|
return Object.defineProperties(e, Oe(r, n, t)), e;
|
|
1413
1422
|
};
|
|
1414
1423
|
}
|
|
1415
|
-
function
|
|
1424
|
+
function ur(t) {
|
|
1416
1425
|
return function(e, r, ...n) {
|
|
1417
1426
|
u(r, Function) && (n.push(r), r = void 0), t({ type: e, selector: r, handlers: n });
|
|
1418
1427
|
};
|
|
1419
1428
|
}
|
|
1420
|
-
function
|
|
1429
|
+
function cr(t) {
|
|
1421
1430
|
return function(e) {
|
|
1422
|
-
let { type: r, types: n, origin: i, selector: a, handler: f2, handlers: S, node: y2, name: x2, capture: d, once:
|
|
1431
|
+
let { type: r, types: n, origin: i, selector: a, handler: f2, handlers: S, node: y2, name: x2, capture: d, once: b3, about: m2 } = e;
|
|
1423
1432
|
f2 = S || f2, r = n || r, a = i || a;
|
|
1424
|
-
let
|
|
1433
|
+
let h2 = Fe(r), g2 = x2;
|
|
1425
1434
|
f2 = u(f2, Function) ? [f2] : f2;
|
|
1426
|
-
let c = { type:
|
|
1435
|
+
let c = { type: h2, selector: a || i, capture: d, name: g2, once: b3, node: y2, about: m2 };
|
|
1427
1436
|
switch (true) {
|
|
1428
|
-
case (u(
|
|
1429
|
-
for (let o of
|
|
1437
|
+
case (u(h2, Array) && h2.length > 0):
|
|
1438
|
+
for (let o of h2) c.type = o, nt(f2, c, t);
|
|
1430
1439
|
break;
|
|
1431
1440
|
default:
|
|
1432
|
-
return
|
|
1441
|
+
return nt(f2, c, t);
|
|
1433
1442
|
}
|
|
1434
1443
|
};
|
|
1435
1444
|
}
|
|
1436
|
-
function
|
|
1445
|
+
function nt(t, e, r) {
|
|
1437
1446
|
for (let n of t) r.listen({ ...e, handler: n });
|
|
1438
1447
|
}
|
|
1439
|
-
function
|
|
1448
|
+
function fr(t) {
|
|
1440
1449
|
return function(e, r) {
|
|
1441
1450
|
return r = T(r) && r, e = T(e) && e, r && e && t.listenerStore[e][r];
|
|
1442
1451
|
};
|
|
1443
1452
|
}
|
|
1444
|
-
function
|
|
1453
|
+
function dr(t) {
|
|
1445
1454
|
return t.activePopup || Object.defineProperty(t, "activePopup", { value: K(t), enumerable: false }), t.activePopup;
|
|
1446
1455
|
}
|
|
1447
|
-
function
|
|
1448
|
-
let e = (d,
|
|
1449
|
-
return Q({ createWithId: d || `jqx${
|
|
1456
|
+
function mr(t) {
|
|
1457
|
+
let e = (d, b3) => Pe(d, b3), r = function(d) {
|
|
1458
|
+
return Q({ createWithId: d || `jqx${le()}` });
|
|
1450
1459
|
}, n = function(...d) {
|
|
1451
|
-
for (let
|
|
1452
|
-
}, i =
|
|
1460
|
+
for (let b3 of d) Pe(b3);
|
|
1461
|
+
}, i = nr(t), a = q(t), f2 = cr(a);
|
|
1453
1462
|
return { editCssRule: e, createStyle: r, editCssRules: n, allowProhibit: i, handle: f2, capturedHandling: f2, log: (...d) => w.on.log(...d).off, warn: (...d) => w.on.warn(...d).off, error: (...d) => w.on.error(...d).off, handlerWrapper: a };
|
|
1454
1463
|
}
|
|
1455
|
-
function
|
|
1456
|
-
let { factoryExtensions: e, instanceExtensions: r } =
|
|
1457
|
-
$e = e,
|
|
1458
|
-
let { editCssRule: n, createStyle: i, editCssRules: a, allowProhibit: f2, handle: S, capturedHandling: y2, log: x2, warn: d, error:
|
|
1459
|
-
return { log: x2, warn: d, error:
|
|
1464
|
+
function gr(t) {
|
|
1465
|
+
let { factoryExtensions: e, instanceExtensions: r } = et(t);
|
|
1466
|
+
$e = e, fe = r;
|
|
1467
|
+
let { editCssRule: n, createStyle: i, editCssRules: a, allowProhibit: f2, handle: S, capturedHandling: y2, log: x2, warn: d, error: b3, handlerWrapper: m2 } = mr(t), h2 = fr(t), g2 = tr(t);
|
|
1468
|
+
return { log: x2, warn: d, error: b3, editCssRules: a, createStyle: i, editStylesheet: i, editCssRule: n, escHtml: H, logger: w, text(c, o = false) {
|
|
1460
1469
|
return o ? t.comment(c) : document.createTextNode(c);
|
|
1461
1470
|
}, node(c, o = document) {
|
|
1462
1471
|
return o.querySelector(c, o);
|
|
1463
1472
|
}, nodes(c, o = document) {
|
|
1464
1473
|
return [...o.querySelectorAll(c, o)];
|
|
1465
|
-
}, clearAllTimers:
|
|
1474
|
+
}, clearAllTimers: Ee, get staticFn() {
|
|
1466
1475
|
return function(c, o, s) {
|
|
1467
1476
|
return g2(c, o, s);
|
|
1468
1477
|
};
|
|
1469
1478
|
}, get toBool() {
|
|
1470
|
-
return
|
|
1479
|
+
return Ce;
|
|
1471
1480
|
}, get getNamedListener() {
|
|
1472
|
-
return
|
|
1481
|
+
return h2;
|
|
1473
1482
|
}, get virtual() {
|
|
1474
|
-
return
|
|
1483
|
+
return or(t);
|
|
1475
1484
|
}, get allowTag() {
|
|
1476
1485
|
return f2.allow;
|
|
1477
1486
|
}, get prohibitTag() {
|
|
1478
1487
|
return f2.prohibit;
|
|
1479
1488
|
}, get removeCssRule() {
|
|
1480
|
-
return
|
|
1489
|
+
return rt;
|
|
1481
1490
|
}, get removeCssRules() {
|
|
1482
|
-
return
|
|
1491
|
+
return rt;
|
|
1483
1492
|
}, get delegate() {
|
|
1484
|
-
return
|
|
1493
|
+
return ur(y2);
|
|
1485
1494
|
}, get delegateCaptured() {
|
|
1486
1495
|
return y2;
|
|
1487
1496
|
}, get handle() {
|
|
@@ -1493,44 +1502,44 @@ ${r}`), g2;
|
|
|
1493
1502
|
}, get setStyle() {
|
|
1494
1503
|
return n;
|
|
1495
1504
|
}, get fn() {
|
|
1496
|
-
return
|
|
1505
|
+
return Kt;
|
|
1497
1506
|
}, get lenient() {
|
|
1498
1507
|
return P.allowUnknownHtmlTags;
|
|
1499
1508
|
}, get IS() {
|
|
1500
1509
|
return u;
|
|
1501
1510
|
}, get Popup() {
|
|
1502
|
-
return
|
|
1511
|
+
return dr(t);
|
|
1503
1512
|
}, get listenerStore() {
|
|
1504
1513
|
return m2.ListenerStore;
|
|
1505
1514
|
} };
|
|
1506
1515
|
}
|
|
1507
|
-
var
|
|
1508
|
-
function
|
|
1516
|
+
var it = ot(pr());
|
|
1517
|
+
function pr() {
|
|
1509
1518
|
return function(e, r, n = L.BeforeEnd) {
|
|
1510
1519
|
if (e?.isJQx) return e;
|
|
1511
1520
|
let i = u(r, HTMLBRElement);
|
|
1512
1521
|
r = (!i && r && r.isJQx ? r[0] : r) || document.body, n = n && Object.values(L).find((d) => n === d) ? n : void 0;
|
|
1513
|
-
let a = Y(e), S = !a &&
|
|
1522
|
+
let a = Y(e), S = !a && ce(e) || a, y2 = { collection: se(e) ?? [], isVirtual: i, isJQx: true }, x2 = _(y2.collection);
|
|
1514
1523
|
if (y2.collection.length && x2) return i || y2.collection.forEach((d) => {
|
|
1515
1524
|
r.contains(d) || D([d], r, n);
|
|
1516
1525
|
}), V(y2);
|
|
1517
1526
|
if (S) {
|
|
1518
|
-
if ([e].flat().forEach((d) => y2.collection.push(
|
|
1527
|
+
if ([e].flat().forEach((d) => y2.collection.push(F(d))), y2.collection.length > 0) {
|
|
1519
1528
|
let d = y2.collection.filter((g2) => g2?.dataset?.jqxcreationerror);
|
|
1520
1529
|
y2.collection = y2.collection.filter((g2) => !g2?.dataset?.jqxcreationerror);
|
|
1521
1530
|
let m2 = y2.collection.map((g2) => `${String(g2.constructor).split(/function|\(/)[1].trim()}`).length > 1;
|
|
1522
1531
|
y2 = V(y2);
|
|
1523
|
-
let
|
|
1524
|
-
w.log(`JQx: created ${y2.isVirtual ? "(virtual)" : ""} instance from ${m2 ? "array of " : ""}HTML string${m2 ? "s" : ""} ${
|
|
1532
|
+
let h2 = y2.collection.length > 0 ? Ge(y2) : "sanitized: no elements remaining";
|
|
1533
|
+
w.log(`JQx: created ${y2.isVirtual ? "(virtual)" : ""} instance from ${m2 ? "array of " : ""}HTML string${m2 ? "s" : ""} ${h2}`), y2.isVirtual || D(y2.collection, r, n);
|
|
1525
1534
|
}
|
|
1526
1535
|
return y2;
|
|
1527
1536
|
}
|
|
1528
1537
|
return Ae(e, r, y2), V(y2);
|
|
1529
1538
|
};
|
|
1530
1539
|
}
|
|
1531
|
-
var mn =
|
|
1540
|
+
var mn = it;
|
|
1532
1541
|
|
|
1533
|
-
// ../
|
|
1542
|
+
// ../Resource/Externals/ticktock.min.js
|
|
1534
1543
|
var [Z2, w2, q2, H2] = ["2-digit", "numeric", "long", "short"];
|
|
1535
1544
|
var C2 = { fixed: { MM: { month: q2 }, M: { month: H2 }, m: { month: w2 }, mm: { month: Z2 }, yyyy: { year: w2 }, yy: { year: Z2 }, WD: { weekday: q2 }, wd: { weekday: H2 }, d: { day: w2 }, dd: { day: Z2 }, h: { hour: w2 }, hh: { hour: Z2 }, mi: { minute: w2 }, mmi: { minute: Z2 }, s: { second: w2 }, ss: { second: Z2 }, ms: { fractionalSecondDigits: 3 }, tz: { timeZoneName: "shortOffset" }, dl: { locale: "default" }, h12: { hour12: false }, yn: { yearName: "" }, ry: { relatedYear: true }, msp: { fractionalSecond: true } }, dynamic: { tzn: (e) => ({ timeZoneName: e.slice(4) }), hrc: (e) => ({ hourCycle: `h${e.slice(4)}` }), ds: (e) => ({ dateStyle: e.slice(3) }), ts: (e) => ({ timeStyle: e.slice(3) }), tz: (e) => ({ timeZone: e.slice(3) }), e: (e) => ({ era: e.slice(2) }), l: (e) => ({ locale: e.slice(2) }) } };
|
|
1536
1545
|
var b = { ...C2, retrieveDynamic(e) {
|
|
@@ -1559,20 +1568,20 @@ ${r}`), g2;
|
|
|
1559
1568
|
return e?.reduce((r, n) => ({ ...r, ...b.retrieveDynamic(n) || b.fixed[n] }), b.fixed.dl);
|
|
1560
1569
|
}
|
|
1561
1570
|
function Pe2(e, r, n) {
|
|
1562
|
-
let t = fe2(...
|
|
1571
|
+
let t = fe2(...de(n).split(",")), a = Intl.DateTimeFormat(t.locale, t).format(e);
|
|
1563
1572
|
return r.finalize(a);
|
|
1564
1573
|
}
|
|
1565
1574
|
function Ye2(e, r) {
|
|
1566
1575
|
return e === "numeric" && r.startsWith("0") ? r.slice(1) : r;
|
|
1567
1576
|
}
|
|
1568
1577
|
function Ee2(e, r, n) {
|
|
1569
|
-
let t = fe2(...r.units.concat(
|
|
1578
|
+
let t = fe2(...r.units.concat(de(n).split(",")).flat()), a = { ...b.fixed }, o = Intl.DateTimeFormat(t.locale, t).formatToParts(e).reduce((s, u2) => u2.type === "literal" && /[ ,/-]/.test(u2.value) ? s : { ...s, [u2.type]: Ye2(t[u2.type], u2.value) }, {});
|
|
1570
1579
|
return a.ms = t.fractionalSecondDigits ? a.msp : a.ms, a.yyyy = o.relatedYear ? a.ry : a.yyyy, r.formatStr = r.formatStr.replace(b.re, (s) => /^(M|MM)$/.test(s) ? Ve2(e, t.locale, t.timeZone, /^M$/.test(s)) : o[Object.keys(a[s]).shift()] || s), r.finalize(void 0, o.dayPeriod, o.era, o.yearName);
|
|
1571
1580
|
}
|
|
1572
1581
|
function Ve2(e, r, n, t) {
|
|
1573
1582
|
return e.toLocaleString(r, { timeZone: n, month: t ? H2 : q2 });
|
|
1574
1583
|
}
|
|
1575
|
-
function
|
|
1584
|
+
function de(e) {
|
|
1576
1585
|
return e.replace(/\s+/g, "");
|
|
1577
1586
|
}
|
|
1578
1587
|
var ge = qe2;
|
|
@@ -1596,14 +1605,14 @@ ${r}`), g2;
|
|
|
1596
1605
|
return function({ start: t, end: a, diffs: o = {} } = {}) {
|
|
1597
1606
|
let s = e(t, a), u2 = a > t ? "+" : "-";
|
|
1598
1607
|
if (s.error) return s;
|
|
1599
|
-
let l = Math.abs(t - a), i = new Date(l), c = i.getUTCFullYear() - 1970, d = i.getUTCMonth(),
|
|
1600
|
-
o = { ...o, fromUTC: t, toUTC: a, sign: "", years: c, months: d, days:
|
|
1601
|
-
let ce2 = p + $
|
|
1602
|
-
return o.clean !== "Dates are equal" && (o.sign = u2, o.jsPeriod = `${u2}P${c > 0 ? `${c}Y` : ""}${d > 0 ? `${d}M` : ""}${le2 > 0 ? `${le2}W` : ""}${
|
|
1608
|
+
let l = Math.abs(t - a), i = new Date(l), c = i.getUTCFullYear() - 1970, d = i.getUTCMonth(), h2 = i.getUTCDate() - 1, F2 = h2 % 7, le2 = Math.floor(h2 / 7), p = i.getUTCHours(), $3 = i.getUTCMinutes(), S = i.getUTCSeconds(), Le2 = i.getUTCMilliseconds(), je2 = Math.floor(l / 864e5);
|
|
1609
|
+
o = { ...o, fromUTC: t, toUTC: a, sign: "", years: c, months: d, days: h2, hours: p, minutes: $3, seconds: S, milliseconds: Le2, diffInDays: je2 }, o.full = r({ values: o, full: true }), o.clean = r({ values: o }), o.equalDates = o.clean === "Dates are equal";
|
|
1610
|
+
let ce2 = p + $3 + S > 0 ? "T" : "";
|
|
1611
|
+
return o.clean !== "Dates are equal" && (o.sign = u2, o.jsPeriod = `${u2}P${c > 0 ? `${c}Y` : ""}${d > 0 ? `${d}M` : ""}${le2 > 0 ? `${le2}W` : ""}${F2 > 0 ? `${F2}D` : ""}${ce2}${p > 0 ? `${p}H` : ""}${$3 > 0 ? `${$3}M` : ""}${S > 0 ? `${S}S` : ""}`, o.ISOPeriod = `P${c > 0 ? `${c}Y` : ""}${d > 0 ? `${d}M` : ""}${h2 > 0 ? `${h2}D` : ""}${ce2}${p > 0 ? `${p}H` : ""}${$3 > 0 ? `${$3}M` : ""}${S > 0 ? `${S}S` : ""}`), o;
|
|
1603
1612
|
};
|
|
1604
1613
|
function n() {
|
|
1605
|
-
let t = (...i) => (c) => i.reduce((d,
|
|
1606
|
-
return t(({ values: i, full: c }) => [Object.entries(i).filter(([d]) => /^(years|month|days|hours|minutes|seconds)/i.test(d)), c], ([i, c]) => c ? i : i.filter(([, d]) => c ? +d : d > 0), (i) => i.reduce((c, [d,
|
|
1614
|
+
let t = (...i) => (c) => i.reduce((d, h2) => h2(d), c), a = (i, c) => i === 1 ? c.slice(0, -1) : c;
|
|
1615
|
+
return t(({ values: i, full: c }) => [Object.entries(i).filter(([d]) => /^(years|month|days|hours|minutes|seconds)/i.test(d)), c], ([i, c]) => c ? i : i.filter(([, d]) => c ? +d : d > 0), (i) => i.reduce((c, [d, h2]) => [...c, `${h2} ${a(h2, d)}`], []), (i) => i.length < 1 ? "Dates are equal" : `${i.slice(0, -1).join(", ")}${i.length > 1 ? " and " : ""}${i.slice(-1).shift()}`);
|
|
1607
1616
|
}
|
|
1608
1617
|
}
|
|
1609
1618
|
var ye2 = He2;
|
|
@@ -1766,7 +1775,7 @@ ${r}`), g2;
|
|
|
1766
1775
|
let n = { timeZone: r, hourCycle: "h23" };
|
|
1767
1776
|
return new Date(new Date(e).toLocaleString("en", n));
|
|
1768
1777
|
}
|
|
1769
|
-
function
|
|
1778
|
+
function N(e, { year: r, month: n, date: t } = {}) {
|
|
1770
1779
|
return y(r) && e.setFullYear(parseInt(r)), y(t) && e.setDate(parseInt(t)), y(n) && e.setMonth(parseInt(n)), e;
|
|
1771
1780
|
}
|
|
1772
1781
|
function T2(e, { hours: r, minutes: n, seconds: t, milliseconds: a } = {}) {
|
|
@@ -1792,12 +1801,12 @@ ${r}`), g2;
|
|
|
1792
1801
|
function ze2(e) {
|
|
1793
1802
|
return e.time = { hours: 0, minutes: 0, seconds: 0, milliseconds: 0 }, e;
|
|
1794
1803
|
}
|
|
1795
|
-
function
|
|
1804
|
+
function pe2(e, r) {
|
|
1796
1805
|
return Intl.DateTimeFormat("en-CA", { timeZone: r, timeZoneName: "long" }).format(e).split(/,/)[1].trim();
|
|
1797
1806
|
}
|
|
1798
1807
|
function x(e, r) {
|
|
1799
1808
|
r = r || e?.timeZone || f.timeZone, e = e?.value ? e : e?.constructor === Date ? m(e, { timeZone: r }) : m({ timeZone: r });
|
|
1800
|
-
let n = e.year || e.getFullYear(), t =
|
|
1809
|
+
let n = e.year || e.getFullYear(), t = pe2(new Date(n, 0, 1), r), a = pe2(new Date(n, 5, 1), r);
|
|
1801
1810
|
return t !== a;
|
|
1802
1811
|
}
|
|
1803
1812
|
function P2(e, r) {
|
|
@@ -1871,7 +1880,7 @@ ${r}`), g2;
|
|
|
1871
1880
|
}, revalue(o) {
|
|
1872
1881
|
return t = Me2(t, o), t;
|
|
1873
1882
|
}, setDateValues({ year: o, month: s, date: u2 } = {}) {
|
|
1874
|
-
return
|
|
1883
|
+
return N(t, { year: o, month: s, date: u2 });
|
|
1875
1884
|
}, setTimeValues({ hours: o, minutes: s, seconds: u2, milliseconds: l } = {}) {
|
|
1876
1885
|
return T2(t, { hours: o, minutes: s, seconds: u2, milliseconds: l });
|
|
1877
1886
|
}, subtract(...o) {
|
|
@@ -1885,9 +1894,9 @@ ${r}`), g2;
|
|
|
1885
1894
|
}, zoneFormat(o, s) {
|
|
1886
1895
|
return _2(t, { zoneTime: true, formatStr: o, moreOptions: s });
|
|
1887
1896
|
}, set date({ year: o, month: s, date: u2 }) {
|
|
1888
|
-
|
|
1897
|
+
N(t, { year: o, month: s, date: u2 });
|
|
1889
1898
|
}, set dateNr(o) {
|
|
1890
|
-
|
|
1899
|
+
N(t, { date: o });
|
|
1891
1900
|
}, set hours(o) {
|
|
1892
1901
|
T2(t, { hours: o });
|
|
1893
1902
|
}, set localeInfo({ locale: o, timeZone: s, l: u2, tz: l }) {
|
|
@@ -1897,13 +1906,13 @@ ${r}`), g2;
|
|
|
1897
1906
|
}, set minutes(o) {
|
|
1898
1907
|
T2(t, { minutes: o });
|
|
1899
1908
|
}, set month(o) {
|
|
1900
|
-
|
|
1909
|
+
N(t, { month: o });
|
|
1901
1910
|
}, set seconds(o) {
|
|
1902
1911
|
T2(t, { seconds: o });
|
|
1903
1912
|
}, set time({ hours: o, minutes: s, seconds: u2, milliseconds: l }) {
|
|
1904
1913
|
T2(t, { hours: o, minutes: s, seconds: u2, milliseconds: l });
|
|
1905
1914
|
}, set year(o) {
|
|
1906
|
-
|
|
1915
|
+
N(t, { year: o });
|
|
1907
1916
|
}, get age() {
|
|
1908
1917
|
return t.differenceTo(/* @__PURE__ */ new Date()).years;
|
|
1909
1918
|
}, get ageFull() {
|
|
@@ -2104,8 +2113,8 @@ ${r}`), g2;
|
|
|
2104
2113
|
}
|
|
2105
2114
|
}
|
|
2106
2115
|
function ot2({ timeZoneDate: e, timeZoneID: r, userTimeZoneID: n } = {}) {
|
|
2107
|
-
let t = { timeZone: g({ timeZone: r }).timeZone }, a = { timeZone: g({ timeZone: n || "" }).timeZone }, o = m(e, t), s = m(e, a), u2 = s.differenceTo(o), l = o.offsetFrom(s).offset, [i, c] = A2(l, true), d = s.clone.add(`${i} hours, ${c} minutes`),
|
|
2108
|
-
return { remoteTimezone: t.timeZone, userTimezone: a.timeZone, timeDifference:
|
|
2116
|
+
let t = { timeZone: g({ timeZone: r }).timeZone }, a = { timeZone: g({ timeZone: n || "" }).timeZone }, o = m(e, t), s = m(e, a), u2 = s.differenceTo(o), l = o.offsetFrom(s).offset, [i, c] = A2(l, true), d = s.clone.add(`${i} hours, ${c} minutes`), F2 = u2.equalDates ? "No difference" : `Time offset ${l}: ${a.timeZone} is ${u2.clean} ${i < 0 ? "behind" : "ahead of"} ${t.timeZone}`;
|
|
2117
|
+
return { remoteTimezone: t.timeZone, userTimezone: a.timeZone, timeDifference: F2, result: { [t.timeZone.replace(/\//, "_")]: m(e).toString({ template: "yyyy/mm/dd hh:mmi:ss", formatOptions: "hrc:23" }), [a.timeZone.replace(/\//, "_")]: d.toString({ template: "yyyy/mm/dd hh:mmi:ss", formatOptions: "hrc:23" }) } };
|
|
2109
2118
|
}
|
|
2110
2119
|
function y(e) {
|
|
2111
2120
|
return !Number.isNaN(parseInt(e));
|
|
@@ -2202,8 +2211,8 @@ ${r}`), g2;
|
|
|
2202
2211
|
return E2({ localeInfo: g(n ? e : r), dateValue: new Date(n ? Date.now() : Ae2(e)), customMethods: Ue2 });
|
|
2203
2212
|
}
|
|
2204
2213
|
|
|
2205
|
-
// ../
|
|
2206
|
-
var
|
|
2214
|
+
// ../Resource/Externals/REHelper.js
|
|
2215
|
+
var REHelper_default = Object.defineProperties(instanceCreator, { escape: { value: escape4RE, enumerable: true } });
|
|
2207
2216
|
function instanceCreator(regExStr, ...args) {
|
|
2208
2217
|
const { flags, cleanedArgs } = maybeFlags(...args);
|
|
2209
2218
|
return createInstance(
|
|
@@ -2296,345 +2305,222 @@ ${r}`), g2;
|
|
|
2296
2305
|
}
|
|
2297
2306
|
}
|
|
2298
2307
|
function cleanup(str) {
|
|
2299
|
-
return str.replace(/\/\*(?:[^*]|\*+[^*\/])*\*+\/|(?<!:|\\\|')\/\/.*/gm, ``).replace(/\s/g, ``).trim().replace(/<!([^>]\d+)>/g, (a,
|
|
2308
|
+
return str.replace(/\/\*(?:[^*]|\*+[^*\/])*\*+\/|(?<!:|\\\|')\/\/.*/gm, ``).replace(/\s/g, ``).trim().replace(/<!([^>]\d+)>/g, (a, b3) => String.fromCharCode(+b3) ?? a);
|
|
2300
2309
|
}
|
|
2301
2310
|
|
|
2302
|
-
// ../
|
|
2303
|
-
var { IS, maybe, $Wrap, isNothing, xProxy, addSymbolicExtensions } =
|
|
2304
|
-
function
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
isExcept,
|
|
2310
|
-
verifyNothingness,
|
|
2311
|
-
xProxy: xProxy2,
|
|
2312
|
-
determineType,
|
|
2313
|
-
addSymbolicExtensions: addSymbolicExtensions2,
|
|
2314
|
-
maybe: maybe2,
|
|
2315
|
-
$Wrap: $Wrap2
|
|
2316
|
-
} = TOAHelpers(IS2, useSymbolicExtensions);
|
|
2317
|
-
if (!!useSymbolicExtensions) {
|
|
2318
|
-
addSymbolicExtensions2();
|
|
2319
|
-
}
|
|
2320
|
-
return { IS: IS2, maybe: maybe2, $Wrap: $Wrap2, isNothing: verifyNothingness, xProxy: xProxy2, addSymbolicExtensions: addSymbolicExtensions2 };
|
|
2321
|
-
function IS2(anything, ...shouldBe) {
|
|
2322
|
-
const input = typeof anything === `symbol` ? Symbol.isSymbol : anything;
|
|
2311
|
+
// ../Resource/Externals/splat.min.js
|
|
2312
|
+
var { IS: b2, maybe: E3, $Wrap: X3, isNothing: j3, xProxy: h, addSymbolicExtensions: T3 } = Y3({ useSymbolicExtensions: false });
|
|
2313
|
+
function Y3(i = {}) {
|
|
2314
|
+
let { useSymbolicExtensions: a } = i, { shouldbeIsSingleObject: m2, ISOneOf: g2, isExcept: P3, verifyNothingness: d, xProxy: x2, determineType: N2, addSymbolicExtensions: y2, maybe: S, $Wrap: O3 } = _3(e, a);
|
|
2315
|
+
return a && y2(), { IS: e, maybe: S, $Wrap: O3, isNothing: d, xProxy: x2, addSymbolicExtensions: y2 };
|
|
2316
|
+
function e(c, ...u2) {
|
|
2317
|
+
let l = typeof c == "symbol" ? Symbol.isSymbol : c;
|
|
2323
2318
|
switch (true) {
|
|
2324
|
-
case !!
|
|
2325
|
-
return
|
|
2319
|
+
case !!S({ trial: (f2) => "isTypes" in (u2?.[0] ?? {}) }):
|
|
2320
|
+
return m2(c, u2[0]);
|
|
2326
2321
|
default:
|
|
2327
|
-
return
|
|
2322
|
+
return u2.length > 1 ? g2(l, ...u2) : N2(c, ...u2);
|
|
2328
2323
|
}
|
|
2329
2324
|
}
|
|
2330
2325
|
}
|
|
2331
|
-
function
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
verifyNothingness,
|
|
2337
|
-
determineType
|
|
2338
|
-
} = AUXHelperFactory(IS2, typeOf);
|
|
2339
|
-
const { xProxy: xProxy2, addSymbolicExtensions: addSymbolicExtensions2 } = SymbolAndCustomProxyFactory(IS2, typeOf, useSymbolicExtensions);
|
|
2340
|
-
const [maybe2, $Wrap2] = [maybeFactory(), WrapAnyFactory(IS2, typeOf)];
|
|
2341
|
-
return Object.freeze({
|
|
2342
|
-
shouldbeIsSingleObject,
|
|
2343
|
-
ISOneOf,
|
|
2344
|
-
isExcept,
|
|
2345
|
-
verifyNothingness,
|
|
2346
|
-
xProxy: xProxy2,
|
|
2347
|
-
determineType,
|
|
2348
|
-
addSymbolicExtensions: addSymbolicExtensions2,
|
|
2349
|
-
maybe: maybe2,
|
|
2350
|
-
$Wrap: $Wrap2
|
|
2351
|
-
});
|
|
2352
|
-
function typeOf(anything) {
|
|
2353
|
-
return anything?.[Symbol.proxy] ?? IS2(anything);
|
|
2326
|
+
function _3(i, a) {
|
|
2327
|
+
let { SymbolAndCustomProxyFactory: m2, maybeFactory: g2, WrapAnyFactory: P3, verifyNothingness: d, determineType: x2 } = w3(i, e), { xProxy: N2, addSymbolicExtensions: y2 } = m2(i, e, a), [S, O3] = [g2(), P3(i, e)];
|
|
2328
|
+
return Object.freeze({ shouldbeIsSingleObject: c, ISOneOf: u2, isExcept: f2, verifyNothingness: d, xProxy: N2, determineType: x2, addSymbolicExtensions: y2, maybe: S, $Wrap: O3 });
|
|
2329
|
+
function e(r) {
|
|
2330
|
+
return r?.[Symbol.proxy] ?? i(r);
|
|
2354
2331
|
}
|
|
2355
|
-
function
|
|
2332
|
+
function c(r, t) {
|
|
2356
2333
|
switch (true) {
|
|
2357
|
-
case
|
|
2358
|
-
return
|
|
2359
|
-
case
|
|
2360
|
-
return
|
|
2334
|
+
case "defaultValue" in t:
|
|
2335
|
+
return l(r, t);
|
|
2336
|
+
case "notTypes" in t:
|
|
2337
|
+
return f2(r, t);
|
|
2361
2338
|
default:
|
|
2362
|
-
return
|
|
2339
|
+
return i(r, ...[t.isTypes].flat());
|
|
2363
2340
|
}
|
|
2364
2341
|
}
|
|
2365
|
-
function
|
|
2366
|
-
return
|
|
2342
|
+
function u2(r, ...t) {
|
|
2343
|
+
return t.some((n) => i(r, n));
|
|
2367
2344
|
}
|
|
2368
|
-
function
|
|
2369
|
-
|
|
2370
|
-
notTypes = notTypes && notTypes?.constructor !== Array ? [notTypes] : [];
|
|
2371
|
-
return notTypes.length < 1 ? IS2(input, ...isTypes) ? input : defaultValue : isExcept(input, { isTypes, notTypes }) ? input : defaultValue;
|
|
2345
|
+
function l(r, { defaultValue: t, isTypes: n = [void 0], notTypes: o } = {}) {
|
|
2346
|
+
return n = n?.constructor !== Array ? [n] : n, o = o && o?.constructor !== Array ? [o] : [], o.length < 1 ? i(r, ...n) ? r : t : f2(r, { isTypes: n, notTypes: o }) ? r : t;
|
|
2372
2347
|
}
|
|
2373
|
-
function
|
|
2374
|
-
|
|
2375
|
-
notTypes = notTypes?.constructor !== Array ? [notTypes] : notTypes;
|
|
2376
|
-
return IS2(input, ...isTypes) && !IS2(input, ...notTypes);
|
|
2348
|
+
function f2(r, { isTypes: t = [void 0], notTypes: n = [void 0] } = {}) {
|
|
2349
|
+
return t = t?.constructor !== Array ? [t] : t, n = n?.constructor !== Array ? [n] : n, i(r, ...t) && !i(r, ...n);
|
|
2377
2350
|
}
|
|
2378
2351
|
}
|
|
2379
|
-
function
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
};
|
|
2393
|
-
return Object.freeze(
|
|
2394
|
-
{
|
|
2395
|
-
SymbolAndCustomProxyFactory,
|
|
2396
|
-
maybeFactory,
|
|
2397
|
-
WrapAnyFactory,
|
|
2398
|
-
verifyNothingness,
|
|
2399
|
-
determineType
|
|
2400
|
-
}
|
|
2401
|
-
);
|
|
2402
|
-
function addSymbols2Anything(IS2, typeOf) {
|
|
2403
|
-
if (!Symbol.is) {
|
|
2404
|
-
Symbol.is = Symbol.for(SYMBOL_KEYS.IS);
|
|
2405
|
-
Symbol.type = Symbol.for(SYMBOL_KEYS.TYPE);
|
|
2406
|
-
Object.defineProperties(Object.prototype, {
|
|
2407
|
-
[Symbol.type]: { get() {
|
|
2408
|
-
return typeOf(this);
|
|
2409
|
-
}, enumerable: false, configurable: false },
|
|
2410
|
-
[Symbol.is]: { value: function(...args) {
|
|
2411
|
-
return IS2(this, ...args);
|
|
2412
|
-
}, enumerable: false, configurable: false }
|
|
2413
|
-
});
|
|
2414
|
-
Object.defineProperties(Object, {
|
|
2415
|
-
[Symbol.type]: { value(obj) {
|
|
2416
|
-
return typeOf(obj);
|
|
2417
|
-
}, enumerable: false, configurable: false },
|
|
2418
|
-
[Symbol.is]: { value: function(obj, ...args) {
|
|
2419
|
-
return IS2(obj, ...args);
|
|
2420
|
-
}, enumerable: false, configurable: false }
|
|
2421
|
-
});
|
|
2422
|
-
}
|
|
2352
|
+
function w3() {
|
|
2353
|
+
let i = { IS: "toa.is", TYPE: "toa.type", IS_SYMBOL: "toa.isASymbol", PROXY: "toa.proxy" }, a = { NAN: "NaN", INFINITY: "Infinity", BOOLEAN: "Boolean", OBJECT: "Object", PROXY_PREFIX: "Proxy (" };
|
|
2354
|
+
return Object.freeze({ SymbolAndCustomProxyFactory: g2, maybeFactory: l, WrapAnyFactory: u2, verifyNothingness: f2, determineType: y2 });
|
|
2355
|
+
function m2(r, t) {
|
|
2356
|
+
Symbol.is || (Symbol.is = Symbol.for(i.IS), Symbol.type = Symbol.for(i.TYPE), Object.defineProperties(Object.prototype, { [Symbol.type]: { get() {
|
|
2357
|
+
return t(this);
|
|
2358
|
+
}, enumerable: false, configurable: false }, [Symbol.is]: { value: function(...n) {
|
|
2359
|
+
return r(this, ...n);
|
|
2360
|
+
}, enumerable: false, configurable: false } }), Object.defineProperties(Object, { [Symbol.type]: { value(n) {
|
|
2361
|
+
return t(n);
|
|
2362
|
+
}, enumerable: false, configurable: false }, [Symbol.is]: { value: function(n, ...o) {
|
|
2363
|
+
return r(n, ...o);
|
|
2364
|
+
}, enumerable: false, configurable: false } }));
|
|
2423
2365
|
}
|
|
2424
|
-
function
|
|
2425
|
-
|
|
2426
|
-
Symbol.isSymbol = Symbol.for(SYMBOL_KEYS.IS_SYMBOL);
|
|
2427
|
-
}
|
|
2428
|
-
return { xProxy: setCustomOrDefaultProxyFactory(), addSymbolicExtensions: () => addSymbols2Anything(IS2, typeOf) };
|
|
2429
|
-
}
|
|
2430
|
-
function constructor2String(obj) {
|
|
2431
|
-
const ctor = !isNothing(obj, true) ? Object.getPrototypeOf(obj)?.constructor : { name: `unknown` };
|
|
2432
|
-
return ctor.name;
|
|
2433
|
-
}
|
|
2434
|
-
function createCustomProxy(nativeProxy, proxySymbol) {
|
|
2435
|
-
Proxy = new nativeProxy(nativeProxy, {
|
|
2436
|
-
construct(target, args) {
|
|
2437
|
-
const wrappedProxy = new target(...args);
|
|
2438
|
-
Object.defineProperty(wrappedProxy, proxySymbol, {
|
|
2439
|
-
value: `${TYPE_STRINGS.PROXY_PREFIX}${constructor2String(args[0])})`
|
|
2440
|
-
});
|
|
2441
|
-
return wrappedProxy;
|
|
2442
|
-
}
|
|
2443
|
-
});
|
|
2444
|
-
return Proxy;
|
|
2366
|
+
function g2(r, t, n) {
|
|
2367
|
+
return Symbol.isSymbol || (Symbol.isSymbol = Symbol.for(i.IS_SYMBOL)), { xProxy: x2(), addSymbolicExtensions: () => m2(r, t) };
|
|
2445
2368
|
}
|
|
2446
|
-
function
|
|
2447
|
-
|
|
2448
|
-
Symbol.proxy = Symbol.for(SYMBOL_KEYS.PROXY);
|
|
2449
|
-
}
|
|
2450
|
-
const nativeProxy = Proxy;
|
|
2451
|
-
return {
|
|
2452
|
-
native() {
|
|
2453
|
-
Proxy = nativeProxy;
|
|
2454
|
-
},
|
|
2455
|
-
custom() {
|
|
2456
|
-
Proxy = createCustomProxy(nativeProxy, Symbol.proxy);
|
|
2457
|
-
}
|
|
2458
|
-
};
|
|
2369
|
+
function P3(r) {
|
|
2370
|
+
return (j3(r, true) ? { name: "unknown" } : Object.getPrototypeOf(r)?.constructor).name;
|
|
2459
2371
|
}
|
|
2460
|
-
function
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
noShouldbe,
|
|
2466
|
-
compareTo: !noShouldbe && shouldBe[0],
|
|
2467
|
-
inputCTOR: !noInput && (input?.constructor || Object.getPrototypeOf(input)?.constructor),
|
|
2468
|
-
isNaN: Number.isNaN(input) || maybe({ trial: (_3) => String(input) === TYPE_STRINGS.NAN }),
|
|
2469
|
-
isInfinity: maybe({ trial: (_3) => String(input) }) === TYPE_STRINGS.INFINITY,
|
|
2470
|
-
shouldBeFirstElementIsNothing: !noShouldbe && verifyNothingness(shouldBe[0])
|
|
2471
|
-
};
|
|
2372
|
+
function d(r, t) {
|
|
2373
|
+
return Proxy = new r(r, { construct(n, o) {
|
|
2374
|
+
let s = new n(...o);
|
|
2375
|
+
return Object.defineProperty(s, t, { value: `${a.PROXY_PREFIX}${P3(o[0])})` }), s;
|
|
2376
|
+
} }), Proxy;
|
|
2472
2377
|
}
|
|
2473
|
-
function
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2378
|
+
function x2() {
|
|
2379
|
+
Symbol.proxy || (Symbol.proxy = Symbol.for(i.PROXY));
|
|
2380
|
+
let r = Proxy;
|
|
2381
|
+
return { native() {
|
|
2382
|
+
Proxy = r;
|
|
2383
|
+
}, custom() {
|
|
2384
|
+
Proxy = d(r, Symbol.proxy);
|
|
2385
|
+
} };
|
|
2386
|
+
}
|
|
2387
|
+
function N2(r, ...t) {
|
|
2388
|
+
let n = t.length < 1, o = r == null;
|
|
2389
|
+
return { noInput: o, noShouldbe: n, compareTo: !n && t[0], inputCTOR: !o && (r?.constructor || Object.getPrototypeOf(r)?.constructor), isNaN: Number.isNaN(r) || E3({ trial: (s) => String(r) === a.NAN }), isInfinity: E3({ trial: (s) => String(r) }) === a.INFINITY, shouldBeFirstElementIsNothing: !n && f2(t[0]) };
|
|
2390
|
+
}
|
|
2391
|
+
function y2(r, ...t) {
|
|
2392
|
+
let { noInput: n, noShouldbe: o, compareTo: s, inputCTOR: A3, isNaN: F2, isInfinity: v2, shouldBeFirstElementIsNothing: p } = N2(r, ...t);
|
|
2393
|
+
switch (t = t.length && t[0], true) {
|
|
2394
|
+
case p:
|
|
2395
|
+
return String(r) === String(s);
|
|
2396
|
+
case (r?.[Symbol.proxy] && o):
|
|
2397
|
+
return r[Symbol.proxy];
|
|
2398
|
+
case F2:
|
|
2399
|
+
return o ? a.NAN : String(s) === String(r);
|
|
2400
|
+
case v2:
|
|
2401
|
+
return o ? a.INFINITY : String(s) === String(r);
|
|
2402
|
+
case n:
|
|
2403
|
+
return o ? String(r) : String(s) === String(r);
|
|
2404
|
+
case A3 === Boolean:
|
|
2405
|
+
return o ? a.BOOLEAN : A3 === t;
|
|
2489
2406
|
default:
|
|
2490
|
-
return
|
|
2407
|
+
return O3(r, t, o, S(r, A3));
|
|
2491
2408
|
}
|
|
2492
2409
|
}
|
|
2493
|
-
function
|
|
2410
|
+
function S(r, t) {
|
|
2494
2411
|
switch (true) {
|
|
2495
|
-
case
|
|
2412
|
+
case r === 0:
|
|
2496
2413
|
return Number;
|
|
2497
|
-
case
|
|
2414
|
+
case r === "":
|
|
2498
2415
|
return String;
|
|
2499
|
-
case !
|
|
2500
|
-
return { name: String(
|
|
2416
|
+
case !r:
|
|
2417
|
+
return { name: String(r) };
|
|
2501
2418
|
default:
|
|
2502
|
-
return
|
|
2419
|
+
return t;
|
|
2503
2420
|
}
|
|
2504
2421
|
}
|
|
2505
|
-
function
|
|
2422
|
+
function O3(r, t, n, o) {
|
|
2506
2423
|
switch (true) {
|
|
2507
|
-
case (!
|
|
2424
|
+
case (!n && t === r || r?.[Symbol.proxy] && t === Proxy):
|
|
2508
2425
|
return true;
|
|
2509
|
-
case String(
|
|
2510
|
-
return String(
|
|
2511
|
-
case (
|
|
2512
|
-
return String(
|
|
2426
|
+
case String(t) === a.NAN:
|
|
2427
|
+
return String(r) === a.NAN;
|
|
2428
|
+
case (r?.[Symbol.toStringTag] && typeof t == "string"):
|
|
2429
|
+
return String(t) === r[Symbol.toStringTag];
|
|
2513
2430
|
default:
|
|
2514
|
-
return
|
|
2431
|
+
return t ? c(r, t, o) : e(r, o);
|
|
2515
2432
|
}
|
|
2516
2433
|
}
|
|
2517
|
-
function
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
};
|
|
2537
|
-
if (Object[Symbol.type]) {
|
|
2538
|
-
Object.defineProperties(wrapper, {
|
|
2539
|
-
[Symbol.type]: { get() {
|
|
2540
|
-
return typeOf(someObj);
|
|
2541
|
-
} },
|
|
2542
|
-
[Symbol.is]: { value(...args) {
|
|
2543
|
-
return IS2(someObj, ...args);
|
|
2544
|
-
} }
|
|
2545
|
-
});
|
|
2546
|
-
}
|
|
2547
|
-
return Object.freeze(wrapper);
|
|
2434
|
+
function e(r, t) {
|
|
2435
|
+
return (r?.[Symbol.toStringTag] ?? r?.prototype?.[Symbol.toStringTag]) || t?.name || String(t);
|
|
2436
|
+
}
|
|
2437
|
+
function c(r, t, n) {
|
|
2438
|
+
return E3({ trial: (o) => r instanceof t }) || t === n || t === Object.getPrototypeOf(n) || `${t?.name}` === n?.name;
|
|
2439
|
+
}
|
|
2440
|
+
function u2(r, t) {
|
|
2441
|
+
return function(n) {
|
|
2442
|
+
let o = { get value() {
|
|
2443
|
+
return n;
|
|
2444
|
+
}, is(...s) {
|
|
2445
|
+
return r(n, ...s);
|
|
2446
|
+
}, get type() {
|
|
2447
|
+
return t(n);
|
|
2448
|
+
} };
|
|
2449
|
+
return Object[Symbol.type] && Object.defineProperties(o, { [Symbol.type]: { get() {
|
|
2450
|
+
return t(n);
|
|
2451
|
+
} }, [Symbol.is]: { value(...s) {
|
|
2452
|
+
return r(n, ...s);
|
|
2453
|
+
} } }), Object.freeze(o);
|
|
2548
2454
|
};
|
|
2549
2455
|
}
|
|
2550
|
-
function
|
|
2551
|
-
|
|
2552
|
-
|
|
2456
|
+
function l() {
|
|
2457
|
+
let r = (t) => {
|
|
2458
|
+
};
|
|
2459
|
+
return function({ trial: t, whenError: n = r } = {}) {
|
|
2553
2460
|
try {
|
|
2554
|
-
return
|
|
2555
|
-
} catch (
|
|
2556
|
-
return
|
|
2461
|
+
return t();
|
|
2462
|
+
} catch (o) {
|
|
2463
|
+
return n(o);
|
|
2557
2464
|
}
|
|
2558
2465
|
};
|
|
2559
2466
|
}
|
|
2560
|
-
function
|
|
2561
|
-
let
|
|
2562
|
-
|
|
2563
|
-
return nada;
|
|
2467
|
+
function f2(r, t = false) {
|
|
2468
|
+
let n = r == null;
|
|
2469
|
+
return n = t ? n || b2(r, 1 / 0) || b2(r, NaN) : n, n;
|
|
2564
2470
|
}
|
|
2565
2471
|
}
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
defaultReplacer = IS(defaultReplacer, String, Number) ? String(defaultReplacer) : void 0;
|
|
2573
|
-
if (!!useSymbolicExtensions) {
|
|
2574
|
-
addSymbolicStringExtensions();
|
|
2575
|
-
}
|
|
2576
|
-
return function(str, ...tokens) {
|
|
2577
|
-
return interpolate(str, processTokens(tokens));
|
|
2472
|
+
var C3 = I3();
|
|
2473
|
+
var $2 = I3("");
|
|
2474
|
+
function I3(i, a = {}) {
|
|
2475
|
+
let { useSymbolicExtensions: m2 } = a;
|
|
2476
|
+
return i = b2(i, String, Number) ? String(i) : void 0, m2 && L3(), function(e, ...c) {
|
|
2477
|
+
return O3(e, S(c));
|
|
2578
2478
|
};
|
|
2579
|
-
function
|
|
2580
|
-
|
|
2581
|
-
return String(defaultReplacer);
|
|
2582
|
-
}
|
|
2583
|
-
return `{${key}}`;
|
|
2479
|
+
function g2(e, c) {
|
|
2480
|
+
return c && b2(i, String, Number) ? String(i) : `{${e}}`;
|
|
2584
2481
|
}
|
|
2585
|
-
function
|
|
2586
|
-
|
|
2587
|
-
return
|
|
2482
|
+
function P3(e, c) {
|
|
2483
|
+
let u2 = e in c;
|
|
2484
|
+
return u2 && b2(c[e], String, Number) ? String(c[e]) : g2(e, u2);
|
|
2588
2485
|
}
|
|
2589
|
-
function
|
|
2590
|
-
return (...
|
|
2591
|
-
|
|
2592
|
-
return
|
|
2486
|
+
function d(e) {
|
|
2487
|
+
return (...c) => {
|
|
2488
|
+
let u2 = c.find((l) => l.key);
|
|
2489
|
+
return P3(u2 ? u2.key : "_", e);
|
|
2593
2490
|
};
|
|
2594
2491
|
}
|
|
2595
|
-
function
|
|
2596
|
-
return
|
|
2492
|
+
function x2(e, c) {
|
|
2493
|
+
return e.replace(/\{(?<key>[a-z_\d]+)}/gim, d(c));
|
|
2597
2494
|
}
|
|
2598
|
-
function
|
|
2599
|
-
|
|
2600
|
-
Object.entries(
|
|
2601
|
-
|
|
2602
|
-
});
|
|
2603
|
-
return converted;
|
|
2495
|
+
function N2(e) {
|
|
2496
|
+
let c = [];
|
|
2497
|
+
return Object.entries(e).forEach(([u2, l]) => {
|
|
2498
|
+
l.forEach((f2, r) => (c[r] ??= {}, c[r][u2] = f2));
|
|
2499
|
+
}), c;
|
|
2604
2500
|
}
|
|
2605
|
-
function
|
|
2606
|
-
return
|
|
2501
|
+
function y2(e) {
|
|
2502
|
+
return e.length === 1 && Object.values(e[0]).every(Array.isArray);
|
|
2607
2503
|
}
|
|
2608
|
-
function
|
|
2609
|
-
return
|
|
2504
|
+
function S(e) {
|
|
2505
|
+
return y2(e) ? N2(e[0]) : e;
|
|
2610
2506
|
}
|
|
2611
|
-
function
|
|
2612
|
-
|
|
2613
|
-
return
|
|
2507
|
+
function O3(e, c) {
|
|
2508
|
+
let u2 = c?.length ? c.filter((l) => b2(l, Object)).map((l, f2) => x2(e, { ...l, index: f2 + 1 })).join("") : e;
|
|
2509
|
+
return b2(i, void 0) ? u2 : u2.replace(/\{[a-z_\d].+\}/gim, String(i));
|
|
2614
2510
|
}
|
|
2615
2511
|
}
|
|
2616
|
-
function
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
}
|
|
2623
|
-
},
|
|
2624
|
-
[Symbol.for(`interpolate$`)]: {
|
|
2625
|
-
value(...args) {
|
|
2626
|
-
return interpolateClear(this, ...args);
|
|
2627
|
-
}
|
|
2628
|
-
}
|
|
2629
|
-
});
|
|
2630
|
-
}
|
|
2631
|
-
return [Symbol.for("interpolate"), Symbol.for(`interpolate$`)];
|
|
2512
|
+
function L3() {
|
|
2513
|
+
return String.prototype[Symbol.for("interpolate")] || Object.defineProperties(String.prototype, { [Symbol.for("interpolate")]: { value(...i) {
|
|
2514
|
+
return C3(this, ...i);
|
|
2515
|
+
} }, [Symbol.for("interpolate$")]: { value(...i) {
|
|
2516
|
+
return $2(this, ...i);
|
|
2517
|
+
} } }), [Symbol.for("interpolate"), Symbol.for("interpolate$")];
|
|
2632
2518
|
}
|
|
2633
2519
|
|
|
2634
2520
|
// ../index.js
|
|
2635
2521
|
setDefaultStyling();
|
|
2636
2522
|
fixSBLinks2TopProblem();
|
|
2637
|
-
var splatModule = { interpolate:
|
|
2523
|
+
var splatModule = { interpolate: C3, interpolateClear: $2, addSymbolicStringExtensions: L3 };
|
|
2638
2524
|
function fixSBLinks2TopProblem() {
|
|
2639
2525
|
/stackblitz/i.test(location.href) && console.info(`\u2714 Stackblitz rewrites links to _top. The 'stackblitzhelpers' module fixed it.`);
|
|
2640
2526
|
document.addEventListener(`click`, (evt) => {
|