@lukso/web-components 1.5.2 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,381 +1,4 @@
1
- const mt = {};
2
- var ht = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, H = {}, rt = {}, dt = {
3
- get exports() {
4
- return rt;
5
- },
6
- set exports(t) {
7
- rt = t;
8
- }
9
- };
10
- /*! https://mths.be/punycode v1.3.2 by @mathias */
11
- (function(t, n) {
12
- (function(e) {
13
- var c = n && !n.nodeType && n, i = t && !t.nodeType && t, l = typeof ht == "object" && ht;
14
- (l.global === l || l.window === l || l.self === l) && (e = l);
15
- var u, s = 2147483647, p = 36, m = 1, v = 26, M = 38, g = 700, f = 72, C = 128, B = "-", A = /^xn--/, Z = /[^\x20-\x7E]/, h = /[\x2E\u3002\uFF0E\uFF61]/g, x = {
16
- overflow: "Overflow: input needs wider integers to process",
17
- "not-basic": "Illegal input >= 0x80 (not a basic code point)",
18
- "invalid-input": "Invalid input"
19
- }, U = p - m, y = Math.floor, O = String.fromCharCode, K;
20
- function I(r) {
21
- throw RangeError(x[r]);
22
- }
23
- function q(r, o) {
24
- for (var a = r.length, d = []; a--; )
25
- d[a] = o(r[a]);
26
- return d;
27
- }
28
- function $(r, o) {
29
- var a = r.split("@"), d = "";
30
- a.length > 1 && (d = a[0] + "@", r = a[1]), r = r.replace(h, ".");
31
- var b = r.split("."), F = q(b, o).join(".");
32
- return d + F;
33
- }
34
- function W(r) {
35
- for (var o = [], a = 0, d = r.length, b, F; a < d; )
36
- b = r.charCodeAt(a++), b >= 55296 && b <= 56319 && a < d ? (F = r.charCodeAt(a++), (F & 64512) == 56320 ? o.push(((b & 1023) << 10) + (F & 1023) + 65536) : (o.push(b), a--)) : o.push(b);
37
- return o;
38
- }
39
- function et(r) {
40
- return q(r, function(o) {
41
- var a = "";
42
- return o > 65535 && (o -= 65536, a += O(o >>> 10 & 1023 | 55296), o = 56320 | o & 1023), a += O(o), a;
43
- }).join("");
44
- }
45
- function _(r) {
46
- return r - 48 < 10 ? r - 22 : r - 65 < 26 ? r - 65 : r - 97 < 26 ? r - 97 : p;
47
- }
48
- function X(r, o) {
49
- return r + 22 + 75 * (r < 26) - ((o != 0) << 5);
50
- }
51
- function Y(r, o, a) {
52
- var d = 0;
53
- for (r = a ? y(r / g) : r >> 1, r += y(r / o); r > U * v >> 1; d += p)
54
- r = y(r / U);
55
- return y(d + (U + 1) * r / (r + M));
56
- }
57
- function V(r) {
58
- var o = [], a = r.length, d, b = 0, F = C, w = f, R, N, D, z, j, P, L, G, J;
59
- for (R = r.lastIndexOf(B), R < 0 && (R = 0), N = 0; N < R; ++N)
60
- r.charCodeAt(N) >= 128 && I("not-basic"), o.push(r.charCodeAt(N));
61
- for (D = R > 0 ? R + 1 : 0; D < a; ) {
62
- for (z = b, j = 1, P = p; D >= a && I("invalid-input"), L = _(r.charCodeAt(D++)), (L >= p || L > y((s - b) / j)) && I("overflow"), b += L * j, G = P <= w ? m : P >= w + v ? v : P - w, !(L < G); P += p)
63
- J = p - G, j > y(s / J) && I("overflow"), j *= J;
64
- d = o.length + 1, w = Y(b - z, d, z == 0), y(b / d) > s - F && I("overflow"), F += y(b / d), b %= d, o.splice(b++, 0, F);
65
- }
66
- return et(o);
67
- }
68
- function st(r) {
69
- var o, a, d, b, F, w, R, N, D, z, j, P = [], L, G, J, nt;
70
- for (r = W(r), L = r.length, o = C, a = 0, F = f, w = 0; w < L; ++w)
71
- j = r[w], j < 128 && P.push(O(j));
72
- for (d = b = P.length, b && P.push(B); d < L; ) {
73
- for (R = s, w = 0; w < L; ++w)
74
- j = r[w], j >= o && j < R && (R = j);
75
- for (G = d + 1, R - o > y((s - a) / G) && I("overflow"), a += (R - o) * G, o = R, w = 0; w < L; ++w)
76
- if (j = r[w], j < o && ++a > s && I("overflow"), j == o) {
77
- for (N = a, D = p; z = D <= F ? m : D >= F + v ? v : D - F, !(N < z); D += p)
78
- nt = N - z, J = p - z, P.push(
79
- O(X(z + nt % J, 0))
80
- ), N = y(nt / J);
81
- P.push(O(X(N, 0))), F = Y(a, G, d == b), a = 0, ++d;
82
- }
83
- ++a, ++o;
84
- }
85
- return P.join("");
86
- }
87
- function lt(r) {
88
- return $(r, function(o) {
89
- return A.test(o) ? V(o.slice(4).toLowerCase()) : o;
90
- });
91
- }
92
- function pt(r) {
93
- return $(r, function(o) {
94
- return Z.test(o) ? "xn--" + st(o) : o;
95
- });
96
- }
97
- if (u = {
98
- /**
99
- * A string representing the current Punycode.js version number.
100
- * @memberOf punycode
101
- * @type String
102
- */
103
- version: "1.3.2",
104
- /**
105
- * An object of methods to convert from JavaScript's internal character
106
- * representation (UCS-2) to Unicode code points, and back.
107
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
108
- * @memberOf punycode
109
- * @type Object
110
- */
111
- ucs2: {
112
- decode: W,
113
- encode: et
114
- },
115
- decode: V,
116
- encode: st,
117
- toASCII: pt,
118
- toUnicode: lt
119
- }, c && i)
120
- if (t.exports == c)
121
- i.exports = u;
122
- else
123
- for (K in u)
124
- u.hasOwnProperty(K) && (c[K] = u[K]);
125
- else
126
- e.punycode = u;
127
- })(ht);
128
- })(dt, rt);
129
- var yt = {
130
- isString: function(t) {
131
- return typeof t == "string";
132
- },
133
- isObject: function(t) {
134
- return typeof t == "object" && t !== null;
135
- },
136
- isNull: function(t) {
137
- return t === null;
138
- },
139
- isNullOrUndefined: function(t) {
140
- return t == null;
141
- }
142
- }, k = {};
143
- function gt(t, n) {
144
- return Object.prototype.hasOwnProperty.call(t, n);
145
- }
146
- var xt = function(t, n, e, c) {
147
- n = n || "&", e = e || "=";
148
- var i = {};
149
- if (typeof t != "string" || t.length === 0)
150
- return i;
151
- var l = /\+/g;
152
- t = t.split(n);
153
- var u = 1e3;
154
- c && typeof c.maxKeys == "number" && (u = c.maxKeys);
155
- var s = t.length;
156
- u > 0 && s > u && (s = u);
157
- for (var p = 0; p < s; ++p) {
158
- var m = t[p].replace(l, "%20"), v = m.indexOf(e), M, g, f, C;
159
- v >= 0 ? (M = m.substr(0, v), g = m.substr(v + 1)) : (M = m, g = ""), f = decodeURIComponent(M), C = decodeURIComponent(g), gt(i, f) ? Array.isArray(i[f]) ? i[f].push(C) : i[f] = [i[f], C] : i[f] = C;
160
- }
161
- return i;
162
- }, Q = function(t) {
163
- switch (typeof t) {
164
- case "string":
165
- return t;
166
- case "boolean":
167
- return t ? "true" : "false";
168
- case "number":
169
- return isFinite(t) ? t : "";
170
- default:
171
- return "";
172
- }
173
- }, bt = function(t, n, e, c) {
174
- return n = n || "&", e = e || "=", t === null && (t = void 0), typeof t == "object" ? Object.keys(t).map(function(i) {
175
- var l = encodeURIComponent(Q(i)) + e;
176
- return Array.isArray(t[i]) ? t[i].map(function(u) {
177
- return l + encodeURIComponent(Q(u));
178
- }).join(n) : l + encodeURIComponent(Q(t[i]));
179
- }).join(n) : c ? encodeURIComponent(Q(c)) + e + encodeURIComponent(Q(t)) : "";
180
- };
181
- k.decode = k.parse = xt;
182
- k.encode = k.stringify = bt;
183
- var vt = rt, S = yt;
184
- H.parse = tt;
185
- H.resolve = Rt;
186
- H.resolveObject = Pt;
187
- H.format = qt;
188
- H.Url = T;
189
- function T() {
190
- this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
191
- }
192
- var Ct = /^([a-z0-9.+-]+:)/i, Ot = /:[0-9]*$/, wt = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, At = ["<", ">", '"', "`", " ", "\r", `
193
- `, " "], It = ["{", "}", "|", "\\", "^", "`"].concat(At), ot = ["'"].concat(It), ft = ["%", "/", "?", ";", "#"].concat(ot), ut = ["/", "?", "#"], jt = 255, ct = /^[+a-z0-9A-Z_-]{0,63}$/, Ft = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Ut = {
194
- javascript: !0,
195
- "javascript:": !0
196
- }, it = {
197
- javascript: !0,
198
- "javascript:": !0
199
- }, E = {
200
- http: !0,
201
- https: !0,
202
- ftp: !0,
203
- gopher: !0,
204
- file: !0,
205
- "http:": !0,
206
- "https:": !0,
207
- "ftp:": !0,
208
- "gopher:": !0,
209
- "file:": !0
210
- }, at = k;
211
- function tt(t, n, e) {
212
- if (t && S.isObject(t) && t instanceof T)
213
- return t;
214
- var c = new T();
215
- return c.parse(t, n, e), c;
216
- }
217
- T.prototype.parse = function(t, n, e) {
218
- if (!S.isString(t))
219
- throw new TypeError("Parameter 'url' must be a string, not " + typeof t);
220
- var c = t.indexOf("?"), i = c !== -1 && c < t.indexOf("#") ? "?" : "#", l = t.split(i), u = /\\/g;
221
- l[0] = l[0].replace(u, "/"), t = l.join(i);
222
- var s = t;
223
- if (s = s.trim(), !e && t.split("#").length === 1) {
224
- var p = wt.exec(s);
225
- if (p)
226
- return this.path = s, this.href = s, this.pathname = p[1], p[2] ? (this.search = p[2], n ? this.query = at.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : n && (this.search = "", this.query = {}), this;
227
- }
228
- var m = Ct.exec(s);
229
- if (m) {
230
- m = m[0];
231
- var v = m.toLowerCase();
232
- this.protocol = v, s = s.substr(m.length);
233
- }
234
- if (e || m || s.match(/^\/\/[^@\/]+@[^@\/]+/)) {
235
- var M = s.substr(0, 2) === "//";
236
- M && !(m && it[m]) && (s = s.substr(2), this.slashes = !0);
237
- }
238
- if (!it[m] && (M || m && !E[m])) {
239
- for (var g = -1, f = 0; f < ut.length; f++) {
240
- var C = s.indexOf(ut[f]);
241
- C !== -1 && (g === -1 || C < g) && (g = C);
242
- }
243
- var B, A;
244
- g === -1 ? A = s.lastIndexOf("@") : A = s.lastIndexOf("@", g), A !== -1 && (B = s.slice(0, A), s = s.slice(A + 1), this.auth = decodeURIComponent(B)), g = -1;
245
- for (var f = 0; f < ft.length; f++) {
246
- var C = s.indexOf(ft[f]);
247
- C !== -1 && (g === -1 || C < g) && (g = C);
248
- }
249
- g === -1 && (g = s.length), this.host = s.slice(0, g), s = s.slice(g), this.parseHost(), this.hostname = this.hostname || "";
250
- var Z = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
251
- if (!Z)
252
- for (var h = this.hostname.split(/\./), f = 0, x = h.length; f < x; f++) {
253
- var U = h[f];
254
- if (U && !U.match(ct)) {
255
- for (var y = "", O = 0, K = U.length; O < K; O++)
256
- U.charCodeAt(O) > 127 ? y += "x" : y += U[O];
257
- if (!y.match(ct)) {
258
- var I = h.slice(0, f), q = h.slice(f + 1), $ = U.match(Ft);
259
- $ && (I.push($[1]), q.unshift($[2])), q.length && (s = "/" + q.join(".") + s), this.hostname = I.join(".");
260
- break;
261
- }
262
- }
263
- }
264
- this.hostname.length > jt ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), Z || (this.hostname = vt.toASCII(this.hostname));
265
- var W = this.port ? ":" + this.port : "", et = this.hostname || "";
266
- this.host = et + W, this.href += this.host, Z && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
267
- }
268
- if (!Ut[v])
269
- for (var f = 0, x = ot.length; f < x; f++) {
270
- var _ = ot[f];
271
- if (s.indexOf(_) !== -1) {
272
- var X = encodeURIComponent(_);
273
- X === _ && (X = escape(_)), s = s.split(_).join(X);
274
- }
275
- }
276
- var Y = s.indexOf("#");
277
- Y !== -1 && (this.hash = s.substr(Y), s = s.slice(0, Y));
278
- var V = s.indexOf("?");
279
- if (V !== -1 ? (this.search = s.substr(V), this.query = s.substr(V + 1), n && (this.query = at.parse(this.query)), s = s.slice(0, V)) : n && (this.search = "", this.query = {}), s && (this.pathname = s), E[v] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
280
- var W = this.pathname || "", st = this.search || "";
281
- this.path = W + st;
282
- }
283
- return this.href = this.format(), this;
284
- };
285
- function qt(t) {
286
- return S.isString(t) && (t = tt(t)), t instanceof T ? t.format() : T.prototype.format.call(t);
287
- }
288
- T.prototype.format = function() {
289
- var t = this.auth || "";
290
- t && (t = encodeURIComponent(t), t = t.replace(/%3A/i, ":"), t += "@");
291
- var n = this.protocol || "", e = this.pathname || "", c = this.hash || "", i = !1, l = "";
292
- this.host ? i = t + this.host : this.hostname && (i = t + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (i += ":" + this.port)), this.query && S.isObject(this.query) && Object.keys(this.query).length && (l = at.stringify(this.query));
293
- var u = this.search || l && "?" + l || "";
294
- return n && n.substr(-1) !== ":" && (n += ":"), this.slashes || (!n || E[n]) && i !== !1 ? (i = "//" + (i || ""), e && e.charAt(0) !== "/" && (e = "/" + e)) : i || (i = ""), c && c.charAt(0) !== "#" && (c = "#" + c), u && u.charAt(0) !== "?" && (u = "?" + u), e = e.replace(/[?#]/g, function(s) {
295
- return encodeURIComponent(s);
296
- }), u = u.replace("#", "%23"), n + i + e + u + c;
297
- };
298
- function Rt(t, n) {
299
- return tt(t, !1, !0).resolve(n);
300
- }
301
- T.prototype.resolve = function(t) {
302
- return this.resolveObject(tt(t, !1, !0)).format();
303
- };
304
- function Pt(t, n) {
305
- return t ? tt(t, !1, !0).resolveObject(n) : n;
306
- }
307
- T.prototype.resolveObject = function(t) {
308
- if (S.isString(t)) {
309
- var n = new T();
310
- n.parse(t, !1, !0), t = n;
311
- }
312
- for (var e = new T(), c = Object.keys(this), i = 0; i < c.length; i++) {
313
- var l = c[i];
314
- e[l] = this[l];
315
- }
316
- if (e.hash = t.hash, t.href === "")
317
- return e.href = e.format(), e;
318
- if (t.slashes && !t.protocol) {
319
- for (var u = Object.keys(t), s = 0; s < u.length; s++) {
320
- var p = u[s];
321
- p !== "protocol" && (e[p] = t[p]);
322
- }
323
- return E[e.protocol] && e.hostname && !e.pathname && (e.path = e.pathname = "/"), e.href = e.format(), e;
324
- }
325
- if (t.protocol && t.protocol !== e.protocol) {
326
- if (!E[t.protocol]) {
327
- for (var m = Object.keys(t), v = 0; v < m.length; v++) {
328
- var M = m[v];
329
- e[M] = t[M];
330
- }
331
- return e.href = e.format(), e;
332
- }
333
- if (e.protocol = t.protocol, !t.host && !it[t.protocol]) {
334
- for (var x = (t.pathname || "").split("/"); x.length && !(t.host = x.shift()); )
335
- ;
336
- t.host || (t.host = ""), t.hostname || (t.hostname = ""), x[0] !== "" && x.unshift(""), x.length < 2 && x.unshift(""), e.pathname = x.join("/");
337
- } else
338
- e.pathname = t.pathname;
339
- if (e.search = t.search, e.query = t.query, e.host = t.host || "", e.auth = t.auth, e.hostname = t.hostname || t.host, e.port = t.port, e.pathname || e.search) {
340
- var g = e.pathname || "", f = e.search || "";
341
- e.path = g + f;
342
- }
343
- return e.slashes = e.slashes || t.slashes, e.href = e.format(), e;
344
- }
345
- var C = e.pathname && e.pathname.charAt(0) === "/", B = t.host || t.pathname && t.pathname.charAt(0) === "/", A = B || C || e.host && t.pathname, Z = A, h = e.pathname && e.pathname.split("/") || [], x = t.pathname && t.pathname.split("/") || [], U = e.protocol && !E[e.protocol];
346
- if (U && (e.hostname = "", e.port = null, e.host && (h[0] === "" ? h[0] = e.host : h.unshift(e.host)), e.host = "", t.protocol && (t.hostname = null, t.port = null, t.host && (x[0] === "" ? x[0] = t.host : x.unshift(t.host)), t.host = null), A = A && (x[0] === "" || h[0] === "")), B)
347
- e.host = t.host || t.host === "" ? t.host : e.host, e.hostname = t.hostname || t.hostname === "" ? t.hostname : e.hostname, e.search = t.search, e.query = t.query, h = x;
348
- else if (x.length)
349
- h || (h = []), h.pop(), h = h.concat(x), e.search = t.search, e.query = t.query;
350
- else if (!S.isNullOrUndefined(t.search)) {
351
- if (U) {
352
- e.hostname = e.host = h.shift();
353
- var y = e.host && e.host.indexOf("@") > 0 ? e.host.split("@") : !1;
354
- y && (e.auth = y.shift(), e.host = e.hostname = y.shift());
355
- }
356
- return e.search = t.search, e.query = t.query, (!S.isNull(e.pathname) || !S.isNull(e.search)) && (e.path = (e.pathname ? e.pathname : "") + (e.search ? e.search : "")), e.href = e.format(), e;
357
- }
358
- if (!h.length)
359
- return e.pathname = null, e.search ? e.path = "/" + e.search : e.path = null, e.href = e.format(), e;
360
- for (var O = h.slice(-1)[0], K = (e.host || t.host || h.length > 1) && (O === "." || O === "..") || O === "", I = 0, q = h.length; q >= 0; q--)
361
- O = h[q], O === "." ? h.splice(q, 1) : O === ".." ? (h.splice(q, 1), I++) : I && (h.splice(q, 1), I--);
362
- if (!A && !Z)
363
- for (; I--; I)
364
- h.unshift("..");
365
- A && h[0] !== "" && (!h[0] || h[0].charAt(0) !== "/") && h.unshift(""), K && h.join("/").substr(-1) !== "/" && h.push("");
366
- var $ = h[0] === "" || h[0] && h[0].charAt(0) === "/";
367
- if (U) {
368
- e.hostname = e.host = $ ? "" : h.length ? h.shift() : "";
369
- var y = e.host && e.host.indexOf("@") > 0 ? e.host.split("@") : !1;
370
- y && (e.auth = y.shift(), e.host = e.hostname = y.shift());
371
- }
372
- return A = A || e.host && h.length, A && !$ && h.unshift(""), h.length ? e.pathname = h.join("/") : (e.pathname = null, e.path = null), (!S.isNull(e.pathname) || !S.isNull(e.search)) && (e.path = (e.pathname ? e.pathname : "") + (e.search ? e.search : "")), e.auth = t.auth || e.auth, e.slashes = e.slashes || t.slashes, e.href = e.format(), e;
373
- };
374
- T.prototype.parseHost = function() {
375
- var t = this.host, n = Ot.exec(t);
376
- n && (n = n[0], n !== ":" && (this.port = n.substr(1)), t = t.substr(0, t.length - n.length)), t && (this.hostname = t);
377
- };
378
- const Tt = mt.dirname(H.fileURLToPath(import.meta.url));
1
+ const e = import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "");
379
2
  export {
380
- Tt as default
3
+ e as default
381
4
  };
@@ -1,3 +1 @@
1
- import path from 'path'
2
- import url from 'url'
3
- export default path.dirname(url.fileURLToPath(import.meta.url))
1
+ export default import.meta.url.replace(/^file:\/\/|\/\w+\.?[jt]s$/g, '')
@@ -1,2 +1 @@
1
- (function(k,G){typeof exports=="object"&&typeof module<"u"?module.exports=G():typeof define=="function"&&define.amd?define(G):(k=typeof globalThis<"u"?globalThis:k||self,k.web_components_images=G())})(this,function(){"use strict";const k={};var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},X={},nt={},pt={get exports(){return nt},set exports(t){nt=t}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(t,r){(function(e){var c=r&&!r.nodeType&&r,i=t&&!t.nodeType&&t,l=typeof G=="object"&&G;(l.global===l||l.window===l||l.self===l)&&(e=l);var u,s=2147483647,p=36,m=1,v=26,L=38,g=700,f=72,C=128,z="-",A=/^xn--/,Z=/[^\x20-\x7E]/,o=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},U=p-m,y=Math.floor,O=String.fromCharCode,B;function I(n){throw RangeError(x[n])}function R(n,h){for(var a=n.length,d=[];a--;)d[a]=h(n[a]);return d}function $(n,h){var a=n.split("@"),d="";a.length>1&&(d=a[0]+"@",n=a[1]),n=n.replace(o,".");var b=n.split("."),F=R(b,h).join(".");return d+F}function E(n){for(var h=[],a=0,d=n.length,b,F;a<d;)b=n.charCodeAt(a++),b>=55296&&b<=56319&&a<d?(F=n.charCodeAt(a++),(F&64512)==56320?h.push(((b&1023)<<10)+(F&1023)+65536):(h.push(b),a--)):h.push(b);return h}function rt(n){return R(n,function(h){var a="";return h>65535&&(h-=65536,a+=O(h>>>10&1023|55296),h=56320|h&1023),a+=O(h),a}).join("")}function V(n){return n-48<10?n-22:n-65<26?n-65:n-97<26?n-97:p}function H(n,h){return n+22+75*(n<26)-((h!=0)<<5)}function Q(n,h,a){var d=0;for(n=a?y(n/g):n>>1,n+=y(n/h);n>U*v>>1;d+=p)n=y(n/U);return y(d+(U+1)*n/(n+L))}function J(n){var h=[],a=n.length,d,b=0,F=C,w=f,q,M,D,_,j,P,N,K,W;for(q=n.lastIndexOf(z),q<0&&(q=0),M=0;M<q;++M)n.charCodeAt(M)>=128&&I("not-basic"),h.push(n.charCodeAt(M));for(D=q>0?q+1:0;D<a;){for(_=b,j=1,P=p;D>=a&&I("invalid-input"),N=V(n.charCodeAt(D++)),(N>=p||N>y((s-b)/j))&&I("overflow"),b+=N*j,K=P<=w?m:P>=w+v?v:P-w,!(N<K);P+=p)W=p-K,j>y(s/W)&&I("overflow"),j*=W;d=h.length+1,w=Q(b-_,d,_==0),y(b/d)>s-F&&I("overflow"),F+=y(b/d),b%=d,h.splice(b++,0,F)}return rt(h)}function ot(n){var h,a,d,b,F,w,q,M,D,_,j,P=[],N,K,W,ft;for(n=E(n),N=n.length,h=C,a=0,F=f,w=0;w<N;++w)j=n[w],j<128&&P.push(O(j));for(d=b=P.length,b&&P.push(z);d<N;){for(q=s,w=0;w<N;++w)j=n[w],j>=h&&j<q&&(q=j);for(K=d+1,q-h>y((s-a)/K)&&I("overflow"),a+=(q-h)*K,h=q,w=0;w<N;++w)if(j=n[w],j<h&&++a>s&&I("overflow"),j==h){for(M=a,D=p;_=D<=F?m:D>=F+v?v:D-F,!(M<_);D+=p)ft=M-_,W=p-_,P.push(O(H(_+ft%W,0))),M=y(ft/W);P.push(O(H(M,0))),F=Q(a,K,d==b),a=0,++d}++a,++h}return P.join("")}function qt(n){return $(n,function(h){return A.test(h)?J(h.slice(4).toLowerCase()):h})}function Tt(n){return $(n,function(h){return Z.test(h)?"xn--"+ot(h):h})}if(u={version:"1.3.2",ucs2:{decode:E,encode:rt},decode:J,encode:ot,toASCII:Tt,toUnicode:qt},c&&i)if(t.exports==c)i.exports=u;else for(B in u)u.hasOwnProperty(B)&&(c[B]=u[B]);else e.punycode=u})(G)})(pt,nt);var mt={isString:function(t){return typeof t=="string"},isObject:function(t){return typeof t=="object"&&t!==null},isNull:function(t){return t===null},isNullOrUndefined:function(t){return t==null}},tt={};function dt(t,r){return Object.prototype.hasOwnProperty.call(t,r)}var yt=function(t,r,e,c){r=r||"&",e=e||"=";var i={};if(typeof t!="string"||t.length===0)return i;var l=/\+/g;t=t.split(r);var u=1e3;c&&typeof c.maxKeys=="number"&&(u=c.maxKeys);var s=t.length;u>0&&s>u&&(s=u);for(var p=0;p<s;++p){var m=t[p].replace(l,"%20"),v=m.indexOf(e),L,g,f,C;v>=0?(L=m.substr(0,v),g=m.substr(v+1)):(L=m,g=""),f=decodeURIComponent(L),C=decodeURIComponent(g),dt(i,f)?Array.isArray(i[f])?i[f].push(C):i[f]=[i[f],C]:i[f]=C}return i},et=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}},gt=function(t,r,e,c){return r=r||"&",e=e||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(i){var l=encodeURIComponent(et(i))+e;return Array.isArray(t[i])?t[i].map(function(u){return l+encodeURIComponent(et(u))}).join(r):l+encodeURIComponent(et(t[i]))}).join(r):c?encodeURIComponent(et(c))+e+encodeURIComponent(et(t)):""};tt.decode=tt.parse=yt,tt.encode=tt.stringify=gt;var xt=nt,S=mt;X.parse=st,X.resolve=Ut,X.resolveObject=Rt,X.format=Ft,X.Url=T;function T(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var bt=/^([a-z0-9.+-]+:)/i,vt=/:[0-9]*$/,Ct=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ot=["<",">",'"',"`"," ","\r",`
2
- `," "],wt=["{","}","|","\\","^","`"].concat(Ot),ht=["'"].concat(wt),ut=["%","/","?",";","#"].concat(ht),ct=["/","?","#"],At=255,lt=/^[+a-z0-9A-Z_-]{0,63}$/,It=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,jt={javascript:!0,"javascript:":!0},it={javascript:!0,"javascript:":!0},Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},at=tt;function st(t,r,e){if(t&&S.isObject(t)&&t instanceof T)return t;var c=new T;return c.parse(t,r,e),c}T.prototype.parse=function(t,r,e){if(!S.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var c=t.indexOf("?"),i=c!==-1&&c<t.indexOf("#")?"?":"#",l=t.split(i),u=/\\/g;l[0]=l[0].replace(u,"/"),t=l.join(i);var s=t;if(s=s.trim(),!e&&t.split("#").length===1){var p=Ct.exec(s);if(p)return this.path=s,this.href=s,this.pathname=p[1],p[2]?(this.search=p[2],r?this.query=at.parse(this.search.substr(1)):this.query=this.search.substr(1)):r&&(this.search="",this.query={}),this}var m=bt.exec(s);if(m){m=m[0];var v=m.toLowerCase();this.protocol=v,s=s.substr(m.length)}if(e||m||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var L=s.substr(0,2)==="//";L&&!(m&&it[m])&&(s=s.substr(2),this.slashes=!0)}if(!it[m]&&(L||m&&!Y[m])){for(var g=-1,f=0;f<ct.length;f++){var C=s.indexOf(ct[f]);C!==-1&&(g===-1||C<g)&&(g=C)}var z,A;g===-1?A=s.lastIndexOf("@"):A=s.lastIndexOf("@",g),A!==-1&&(z=s.slice(0,A),s=s.slice(A+1),this.auth=decodeURIComponent(z)),g=-1;for(var f=0;f<ut.length;f++){var C=s.indexOf(ut[f]);C!==-1&&(g===-1||C<g)&&(g=C)}g===-1&&(g=s.length),this.host=s.slice(0,g),s=s.slice(g),this.parseHost(),this.hostname=this.hostname||"";var Z=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Z)for(var o=this.hostname.split(/\./),f=0,x=o.length;f<x;f++){var U=o[f];if(U&&!U.match(lt)){for(var y="",O=0,B=U.length;O<B;O++)U.charCodeAt(O)>127?y+="x":y+=U[O];if(!y.match(lt)){var I=o.slice(0,f),R=o.slice(f+1),$=U.match(It);$&&(I.push($[1]),R.unshift($[2])),R.length&&(s="/"+R.join(".")+s),this.hostname=I.join(".");break}}}this.hostname.length>At?this.hostname="":this.hostname=this.hostname.toLowerCase(),Z||(this.hostname=xt.toASCII(this.hostname));var E=this.port?":"+this.port:"",rt=this.hostname||"";this.host=rt+E,this.href+=this.host,Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!jt[v])for(var f=0,x=ht.length;f<x;f++){var V=ht[f];if(s.indexOf(V)!==-1){var H=encodeURIComponent(V);H===V&&(H=escape(V)),s=s.split(V).join(H)}}var Q=s.indexOf("#");Q!==-1&&(this.hash=s.substr(Q),s=s.slice(0,Q));var J=s.indexOf("?");if(J!==-1?(this.search=s.substr(J),this.query=s.substr(J+1),r&&(this.query=at.parse(this.query)),s=s.slice(0,J)):r&&(this.search="",this.query={}),s&&(this.pathname=s),Y[v]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var E=this.pathname||"",ot=this.search||"";this.path=E+ot}return this.href=this.format(),this};function Ft(t){return S.isString(t)&&(t=st(t)),t instanceof T?t.format():T.prototype.format.call(t)}T.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var r=this.protocol||"",e=this.pathname||"",c=this.hash||"",i=!1,l="";this.host?i=t+this.host:this.hostname&&(i=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&S.isObject(this.query)&&Object.keys(this.query).length&&(l=at.stringify(this.query));var u=this.search||l&&"?"+l||"";return r&&r.substr(-1)!==":"&&(r+=":"),this.slashes||(!r||Y[r])&&i!==!1?(i="//"+(i||""),e&&e.charAt(0)!=="/"&&(e="/"+e)):i||(i=""),c&&c.charAt(0)!=="#"&&(c="#"+c),u&&u.charAt(0)!=="?"&&(u="?"+u),e=e.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),u=u.replace("#","%23"),r+i+e+u+c};function Ut(t,r){return st(t,!1,!0).resolve(r)}T.prototype.resolve=function(t){return this.resolveObject(st(t,!1,!0)).format()};function Rt(t,r){return t?st(t,!1,!0).resolveObject(r):r}return T.prototype.resolveObject=function(t){if(S.isString(t)){var r=new T;r.parse(t,!1,!0),t=r}for(var e=new T,c=Object.keys(this),i=0;i<c.length;i++){var l=c[i];e[l]=this[l]}if(e.hash=t.hash,t.href==="")return e.href=e.format(),e;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),s=0;s<u.length;s++){var p=u[s];p!=="protocol"&&(e[p]=t[p])}return Y[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=e.format(),e}if(t.protocol&&t.protocol!==e.protocol){if(!Y[t.protocol]){for(var m=Object.keys(t),v=0;v<m.length;v++){var L=m[v];e[L]=t[L]}return e.href=e.format(),e}if(e.protocol=t.protocol,!t.host&&!it[t.protocol]){for(var x=(t.pathname||"").split("/");x.length&&!(t.host=x.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),x[0]!==""&&x.unshift(""),x.length<2&&x.unshift(""),e.pathname=x.join("/")}else e.pathname=t.pathname;if(e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,e.pathname||e.search){var g=e.pathname||"",f=e.search||"";e.path=g+f}return e.slashes=e.slashes||t.slashes,e.href=e.format(),e}var C=e.pathname&&e.pathname.charAt(0)==="/",z=t.host||t.pathname&&t.pathname.charAt(0)==="/",A=z||C||e.host&&t.pathname,Z=A,o=e.pathname&&e.pathname.split("/")||[],x=t.pathname&&t.pathname.split("/")||[],U=e.protocol&&!Y[e.protocol];if(U&&(e.hostname="",e.port=null,e.host&&(o[0]===""?o[0]=e.host:o.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(x[0]===""?x[0]=t.host:x.unshift(t.host)),t.host=null),A=A&&(x[0]===""||o[0]==="")),z)e.host=t.host||t.host===""?t.host:e.host,e.hostname=t.hostname||t.hostname===""?t.hostname:e.hostname,e.search=t.search,e.query=t.query,o=x;else if(x.length)o||(o=[]),o.pop(),o=o.concat(x),e.search=t.search,e.query=t.query;else if(!S.isNullOrUndefined(t.search)){if(U){e.hostname=e.host=o.shift();var y=e.host&&e.host.indexOf("@")>0?e.host.split("@"):!1;y&&(e.auth=y.shift(),e.host=e.hostname=y.shift())}return e.search=t.search,e.query=t.query,(!S.isNull(e.pathname)||!S.isNull(e.search))&&(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.href=e.format(),e}if(!o.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var O=o.slice(-1)[0],B=(e.host||t.host||o.length>1)&&(O==="."||O==="..")||O==="",I=0,R=o.length;R>=0;R--)O=o[R],O==="."?o.splice(R,1):O===".."?(o.splice(R,1),I++):I&&(o.splice(R,1),I--);if(!A&&!Z)for(;I--;I)o.unshift("..");A&&o[0]!==""&&(!o[0]||o[0].charAt(0)!=="/")&&o.unshift(""),B&&o.join("/").substr(-1)!=="/"&&o.push("");var $=o[0]===""||o[0]&&o[0].charAt(0)==="/";if(U){e.hostname=e.host=$?"":o.length?o.shift():"";var y=e.host&&e.host.indexOf("@")>0?e.host.split("@"):!1;y&&(e.auth=y.shift(),e.host=e.hostname=y.shift())}return A=A||e.host&&o.length,A&&!$&&o.unshift(""),o.length?e.pathname=o.join("/"):(e.pathname=null,e.path=null),(!S.isNull(e.pathname)||!S.isNull(e.search))&&(e.path=(e.pathname?e.pathname:"")+(e.search?e.search:"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},T.prototype.parseHost=function(){var t=this.host,r=vt.exec(t);r&&(r=r[0],r!==":"&&(this.port=r.substr(1)),t=t.substr(0,t.length-r.length)),t&&(this.hostname=t)},k.dirname(X.fileURLToPath(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__filename).href:typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||new URL("assets/images/index.umd.cjs",document.baseURI).href))});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.web_components_images=n())})(this,function(){"use strict";return(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__filename).href:typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||new URL("assets/images/index.umd.cjs",document.baseURI).href).replace(/^file:\/\/|\/\w+\.?[jt]s$/g,"")});