@everymatrix/general-animation-loading 1.55.0 → 1.56.2

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,35 +1,36 @@
1
1
  function a() {
2
2
  }
3
- function N(t) {
3
+ function M(t) {
4
4
  return t();
5
5
  }
6
- function A() {
6
+ function O() {
7
7
  return /* @__PURE__ */ Object.create(null);
8
8
  }
9
9
  function y(t) {
10
- t.forEach(N);
10
+ t.forEach(M);
11
11
  }
12
- function P(t) {
12
+ function N(t) {
13
13
  return typeof t == "function";
14
14
  }
15
- function B(t, e) {
15
+ function R(t, e) {
16
16
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
17
17
  }
18
- function R(t) {
18
+ function T(t) {
19
19
  return Object.keys(t).length === 0;
20
20
  }
21
21
  function H(t, e) {
22
22
  t.appendChild(e);
23
23
  }
24
- function I(t, e, n) {
25
- const s = U(t);
24
+ function U(t, e, n) {
25
+ const s = I(t);
26
26
  if (!s.getElementById(e)) {
27
27
  const i = v("style");
28
- i.id = e, i.textContent = n, D(s, i);
28
+ i.id = e, i.textContent = n, z(s, i);
29
29
  }
30
30
  }
31
- function U(t) {
32
- if (!t) return document;
31
+ function I(t) {
32
+ if (!t)
33
+ return document;
33
34
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
34
35
  return e && /** @type {ShadowRoot} */
35
36
  e.host ? (
@@ -37,14 +38,14 @@ function U(t) {
37
38
  e
38
39
  ) : t.ownerDocument;
39
40
  }
40
- function D(t, e) {
41
+ function z(t, e) {
41
42
  return H(
42
43
  /** @type {Document} */
43
44
  t.head || t,
44
45
  e
45
46
  ), e.sheet;
46
47
  }
47
- function M(t, e, n) {
48
+ function B(t, e, n) {
48
49
  t.insertBefore(e, n || null);
49
50
  }
50
51
  function E(t) {
@@ -53,13 +54,13 @@ function E(t) {
53
54
  function v(t) {
54
55
  return document.createElement(t);
55
56
  }
56
- function G(t, e, n) {
57
+ function D(t, e, n) {
57
58
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
58
59
  }
59
- function J(t) {
60
+ function F(t) {
60
61
  return Array.from(t.childNodes);
61
62
  }
62
- function V(t) {
63
+ function G(t) {
63
64
  const e = {};
64
65
  return t.childNodes.forEach(
65
66
  /** @param {Element} node */
@@ -68,116 +69,125 @@ function V(t) {
68
69
  }
69
70
  ), e;
70
71
  }
71
- let C;
72
- function p(t) {
73
- C = t;
72
+ let p;
73
+ function _(t) {
74
+ p = t;
75
+ }
76
+ function J() {
77
+ if (!p)
78
+ throw new Error("Function called outside component initialization");
79
+ return p;
80
+ }
81
+ function V(t) {
82
+ J().$$.on_mount.push(t);
74
83
  }
75
- const f = [], x = [];
84
+ const $ = [], w = [];
76
85
  let h = [];
77
- const S = [], z = /* @__PURE__ */ Promise.resolve();
78
- let w = !1;
79
- function F() {
80
- w || (w = !0, z.then(m));
86
+ const A = [], q = /* @__PURE__ */ Promise.resolve();
87
+ let x = !1;
88
+ function K() {
89
+ x || (x = !0, q.then(m));
81
90
  }
82
91
  function k(t) {
83
92
  h.push(t);
84
93
  }
85
94
  const b = /* @__PURE__ */ new Set();
86
- let $ = 0;
95
+ let f = 0;
87
96
  function m() {
88
- if ($ !== 0)
97
+ if (f !== 0)
89
98
  return;
90
- const t = C;
99
+ const t = p;
91
100
  do {
92
101
  try {
93
- for (; $ < f.length; ) {
94
- const e = f[$];
95
- $++, p(e), q(e.$$);
102
+ for (; f < $.length; ) {
103
+ const e = $[f];
104
+ f++, _(e), Q(e.$$);
96
105
  }
97
106
  } catch (e) {
98
- throw f.length = 0, $ = 0, e;
107
+ throw $.length = 0, f = 0, e;
99
108
  }
100
- for (p(null), f.length = 0, $ = 0; x.length; ) x.pop()();
109
+ for (_(null), $.length = 0, f = 0; w.length; )
110
+ w.pop()();
101
111
  for (let e = 0; e < h.length; e += 1) {
102
112
  const n = h[e];
103
113
  b.has(n) || (b.add(n), n());
104
114
  }
105
115
  h.length = 0;
106
- } while (f.length);
107
- for (; S.length; )
108
- S.pop()();
109
- w = !1, b.clear(), p(t);
116
+ } while ($.length);
117
+ for (; A.length; )
118
+ A.pop()();
119
+ x = !1, b.clear(), _(t);
110
120
  }
111
- function q(t) {
121
+ function Q(t) {
112
122
  if (t.fragment !== null) {
113
123
  t.update(), y(t.before_update);
114
124
  const e = t.dirty;
115
125
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(k);
116
126
  }
117
127
  }
118
- function K(t) {
128
+ function W(t) {
119
129
  const e = [], n = [];
120
130
  h.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), h = e;
121
131
  }
122
- const Q = /* @__PURE__ */ new Set();
123
- function W(t, e) {
124
- t && t.i && (Q.delete(t), t.i(e));
132
+ const X = /* @__PURE__ */ new Set();
133
+ function Y(t, e) {
134
+ t && t.i && (X.delete(t), t.i(e));
125
135
  }
126
- function X(t, e, n) {
136
+ function Z(t, e, n) {
127
137
  const { fragment: s, after_update: i } = t.$$;
128
138
  s && s.m(e, n), k(() => {
129
- const l = t.$$.on_mount.map(N).filter(P);
130
- t.$$.on_destroy ? t.$$.on_destroy.push(...l) : y(l), t.$$.on_mount = [];
139
+ const r = t.$$.on_mount.map(M).filter(N);
140
+ t.$$.on_destroy ? t.$$.on_destroy.push(...r) : y(r), t.$$.on_mount = [];
131
141
  }), i.forEach(k);
132
142
  }
133
- function Y(t, e) {
143
+ function tt(t, e) {
134
144
  const n = t.$$;
135
- n.fragment !== null && (K(n.after_update), y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
145
+ n.fragment !== null && (W(n.after_update), y(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
136
146
  }
137
- function Z(t, e) {
138
- t.$$.dirty[0] === -1 && (f.push(t), F(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
147
+ function et(t, e) {
148
+ t.$$.dirty[0] === -1 && ($.push(t), K(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
139
149
  }
140
- function tt(t, e, n, s, i, l, u = null, c = [-1]) {
141
- const o = C;
142
- p(t);
143
- const r = t.$$ = {
150
+ function nt(t, e, n, s, i, r, o = null, l = [-1]) {
151
+ const c = p;
152
+ _(t);
153
+ const u = t.$$ = {
144
154
  fragment: null,
145
155
  ctx: [],
146
156
  // state
147
- props: l,
157
+ props: r,
148
158
  update: a,
149
159
  not_equal: i,
150
- bound: A(),
160
+ bound: O(),
151
161
  // lifecycle
152
162
  on_mount: [],
153
163
  on_destroy: [],
154
164
  on_disconnect: [],
155
165
  before_update: [],
156
166
  after_update: [],
157
- context: new Map(e.context || (o ? o.$$.context : [])),
167
+ context: new Map(e.context || (c ? c.$$.context : [])),
158
168
  // everything else
159
- callbacks: A(),
160
- dirty: c,
169
+ callbacks: O(),
170
+ dirty: l,
161
171
  skip_bound: !1,
162
- root: e.target || o.$$.root
172
+ root: e.target || c.$$.root
163
173
  };
164
- u && u(r.root);
165
- let _ = !1;
166
- if (r.ctx = n ? n(t, e.props || {}, (d, L, ...j) => {
167
- const O = j.length ? j[0] : L;
168
- return r.ctx && i(r.ctx[d], r.ctx[d] = O) && (!r.skip_bound && r.bound[d] && r.bound[d](O), _ && Z(t, d)), L;
169
- }) : [], r.update(), _ = !0, y(r.before_update), r.fragment = s ? s(r.ctx) : !1, e.target) {
174
+ o && o(u.root);
175
+ let L = !1;
176
+ if (u.ctx = n ? n(t, e.props || {}, (d, C, ...S) => {
177
+ const j = S.length ? S[0] : C;
178
+ return u.ctx && i(u.ctx[d], u.ctx[d] = j) && (!u.skip_bound && u.bound[d] && u.bound[d](j), L && et(t, d)), C;
179
+ }) : [], u.update(), L = !0, y(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
170
180
  if (e.hydrate) {
171
- const d = J(e.target);
172
- r.fragment && r.fragment.l(d), d.forEach(E);
181
+ const d = F(e.target);
182
+ u.fragment && u.fragment.l(d), d.forEach(E);
173
183
  } else
174
- r.fragment && r.fragment.c();
175
- e.intro && W(t.$$.fragment), X(t, e.target, e.anchor), m();
184
+ u.fragment && u.fragment.c();
185
+ e.intro && Y(t.$$.fragment), Z(t, e.target, e.anchor), m();
176
186
  }
177
- p(o);
187
+ _(c);
178
188
  }
179
- let T;
180
- typeof HTMLElement == "function" && (T = class extends HTMLElement {
189
+ let P;
190
+ typeof HTMLElement == "function" && (P = class extends HTMLElement {
181
191
  /** The Svelte component constructor */
182
192
  $$ctor;
183
193
  /** Slots */
@@ -216,32 +226,32 @@ typeof HTMLElement == "function" && (T = class extends HTMLElement {
216
226
  if (this.$$cn = !0, !this.$$c) {
217
227
  let t = function(i) {
218
228
  return () => {
219
- let l;
229
+ let r;
220
230
  return {
221
231
  c: function() {
222
- l = v("slot"), i !== "default" && G(l, "name", i);
232
+ r = v("slot"), i !== "default" && D(r, "name", i);
223
233
  },
224
234
  /**
225
235
  * @param {HTMLElement} target
226
236
  * @param {HTMLElement} [anchor]
227
237
  */
228
- m: function(o, r) {
229
- M(o, l, r);
238
+ m: function(c, u) {
239
+ B(c, r, u);
230
240
  },
231
- d: function(o) {
232
- o && E(l);
241
+ d: function(c) {
242
+ c && E(r);
233
243
  }
234
244
  };
235
245
  };
236
246
  };
237
247
  if (await Promise.resolve(), !this.$$cn || this.$$c)
238
248
  return;
239
- const e = {}, n = V(this);
249
+ const e = {}, n = G(this);
240
250
  for (const i of this.$$s)
241
251
  i in n && (e[i] = [t(i)]);
242
252
  for (const i of this.attributes) {
243
- const l = this.$$g_p(i.name);
244
- l in this.$$d || (this.$$d[l] = g(l, i.value, this.$$p_d, "toProp"));
253
+ const r = this.$$g_p(i.name);
254
+ r in this.$$d || (this.$$d[r] = g(r, i.value, this.$$p_d, "toProp"));
245
255
  }
246
256
  for (const i in this.$$p_d)
247
257
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -259,21 +269,21 @@ typeof HTMLElement == "function" && (T = class extends HTMLElement {
259
269
  this.$$r = !0;
260
270
  for (const i in this.$$p_d)
261
271
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
262
- const l = g(
272
+ const r = g(
263
273
  i,
264
274
  this.$$d[i],
265
275
  this.$$p_d,
266
276
  "toAttribute"
267
277
  );
268
- l == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, l);
278
+ r == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, r);
269
279
  }
270
280
  this.$$r = !1;
271
281
  };
272
282
  this.$$c.$$.after_update.push(s), s();
273
283
  for (const i in this.$$l)
274
- for (const l of this.$$l[i]) {
275
- const u = this.$$c.$on(i, l);
276
- this.$$l_u.set(l, u);
284
+ for (const r of this.$$l[i]) {
285
+ const o = this.$$c.$on(i, r);
286
+ this.$$l_u.set(r, o);
277
287
  }
278
288
  this.$$l = {};
279
289
  }
@@ -323,36 +333,36 @@ function g(t, e, n, s) {
323
333
  return e;
324
334
  }
325
335
  }
326
- function et(t, e, n, s, i, l) {
327
- let u = class extends T {
336
+ function it(t, e, n, s, i, r) {
337
+ let o = class extends P {
328
338
  constructor() {
329
339
  super(t, n, i), this.$$p_d = e;
330
340
  }
331
341
  static get observedAttributes() {
332
342
  return Object.keys(e).map(
333
- (c) => (e[c].attribute || c).toLowerCase()
343
+ (l) => (e[l].attribute || l).toLowerCase()
334
344
  );
335
345
  }
336
346
  };
337
- return Object.keys(e).forEach((c) => {
338
- Object.defineProperty(u.prototype, c, {
347
+ return Object.keys(e).forEach((l) => {
348
+ Object.defineProperty(o.prototype, l, {
339
349
  get() {
340
- return this.$$c && c in this.$$c ? this.$$c[c] : this.$$d[c];
350
+ return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
341
351
  },
342
- set(o) {
343
- o = g(c, o, e), this.$$d[c] = o, this.$$c?.$set({ [c]: o });
352
+ set(c) {
353
+ c = g(l, c, e), this.$$d[l] = c, this.$$c?.$set({ [l]: c });
344
354
  }
345
355
  });
346
- }), s.forEach((c) => {
347
- Object.defineProperty(u.prototype, c, {
356
+ }), s.forEach((l) => {
357
+ Object.defineProperty(o.prototype, l, {
348
358
  get() {
349
- return this.$$c?.[c];
359
+ return this.$$c?.[l];
350
360
  }
351
361
  });
352
362
  }), t.element = /** @type {any} */
353
- u, u;
363
+ o, o;
354
364
  }
355
- class nt {
365
+ class st {
356
366
  /**
357
367
  * ### PRIVATE API
358
368
  *
@@ -371,7 +381,7 @@ class nt {
371
381
  $$set = void 0;
372
382
  /** @returns {void} */
373
383
  $destroy() {
374
- Y(this, 1), this.$destroy = a;
384
+ tt(this, 1), this.$destroy = a;
375
385
  }
376
386
  /**
377
387
  * @template {Extract<keyof Events, string>} K
@@ -380,7 +390,7 @@ class nt {
380
390
  * @returns {() => void}
381
391
  */
382
392
  $on(e, n) {
383
- if (!P(n))
393
+ if (!N(n))
384
394
  return a;
385
395
  const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
386
396
  return s.push(n), () => {
@@ -393,67 +403,93 @@ class nt {
393
403
  * @returns {void}
394
404
  */
395
405
  $set(e) {
396
- this.$$set && !R(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
406
+ this.$$set && !T(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
407
+ }
408
+ }
409
+ const rt = "4";
410
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rt);
411
+ function ct(t, e) {
412
+ if (t) {
413
+ const n = document.createElement("style");
414
+ n.innerHTML = e, t.appendChild(n);
397
415
  }
398
416
  }
399
- const it = "4";
400
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(it);
401
- function st(t) {
402
- I(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
417
+ function ot(t, e) {
418
+ const n = new URL(e);
419
+ fetch(n.href).then((s) => s.text()).then((s) => {
420
+ const i = document.createElement("style");
421
+ i.innerHTML = s, t && t.appendChild(i);
422
+ }).catch((s) => {
423
+ console.error("There was an error while trying to load client styling from URL", s);
424
+ });
403
425
  }
404
- function rt(t) {
426
+ function lt(t, e, n) {
427
+ if (window.emMessageBus) {
428
+ const s = document.createElement("style");
429
+ window.emMessageBus.subscribe(e, (i) => {
430
+ s.innerHTML = i, t && t.appendChild(s);
431
+ });
432
+ }
433
+ }
434
+ function ut(t) {
435
+ U(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
436
+ }
437
+ function dt(t) {
405
438
  let e;
406
439
  return {
407
440
  c() {
408
- e = v("div"), e.innerHTML = '<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
441
+ e = v("div"), e.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
409
442
  },
410
443
  m(n, s) {
411
- M(n, e, s), t[3](e);
444
+ B(n, e, s), t[4](e);
412
445
  },
413
446
  p: a,
414
447
  i: a,
415
448
  o: a,
416
449
  d(n) {
417
- n && E(e), t[3](null);
450
+ n && E(e), t[4](null);
418
451
  }
419
452
  };
420
453
  }
421
- function lt(t, e, n) {
422
- let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, l;
423
- const u = () => {
424
- let r = document.createElement("style");
425
- r.innerHTML = s, l.appendChild(r);
426
- }, c = () => {
427
- let r = new URL(i), _ = document.createElement("style");
428
- fetch(r.href).then((d) => d.text()).then((d) => {
429
- _.innerHTML = d, setTimeout(
430
- () => {
431
- l.appendChild(_);
432
- },
433
- 1
434
- ), setTimeout(
435
- () => {
436
- },
437
- 500
438
- );
439
- });
440
- };
441
- function o(r) {
442
- x[r ? "unshift" : "push"](() => {
443
- l = r, n(0, l);
454
+ function ft(t, e, n) {
455
+ let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, { mbsource: r } = e, o;
456
+ V(() => () => {
457
+ });
458
+ function l(c) {
459
+ w[c ? "unshift" : "push"](() => {
460
+ o = c, n(0, o);
444
461
  });
445
462
  }
446
- return t.$$set = (r) => {
447
- "clientstyling" in r && n(1, s = r.clientstyling), "clientstylingurl" in r && n(2, i = r.clientstylingurl);
463
+ return t.$$set = (c) => {
464
+ "clientstyling" in c && n(1, s = c.clientstyling), "clientstylingurl" in c && n(2, i = c.clientstylingurl), "mbsource" in c && n(3, r = c.mbsource);
448
465
  }, t.$$.update = () => {
449
466
  t.$$.dirty & /*clientstyling, customStylingContainer*/
450
- 3 && s && l && u(), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
451
- 5 && i && l && c();
452
- }, [l, s, i, o];
453
- }
454
- class ct extends nt {
467
+ 3 && s && o && ct(o, s), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
468
+ 5 && i && o && ot(o, i), t.$$.dirty & /*mbsource, customStylingContainer*/
469
+ 9 && r && o && lt(o, `${r}.Style`);
470
+ }, [
471
+ o,
472
+ s,
473
+ i,
474
+ r,
475
+ l
476
+ ];
477
+ }
478
+ class $t extends st {
455
479
  constructor(e) {
456
- super(), tt(this, e, lt, rt, B, { clientstyling: 1, clientstylingurl: 2 }, st);
480
+ super(), nt(
481
+ this,
482
+ e,
483
+ ft,
484
+ dt,
485
+ R,
486
+ {
487
+ clientstyling: 1,
488
+ clientstylingurl: 2,
489
+ mbsource: 3
490
+ },
491
+ ut
492
+ );
457
493
  }
458
494
  get clientstyling() {
459
495
  return this.$$.ctx[1];
@@ -467,8 +503,14 @@ class ct extends nt {
467
503
  set clientstylingurl(e) {
468
504
  this.$$set({ clientstylingurl: e }), m();
469
505
  }
506
+ get mbsource() {
507
+ return this.$$.ctx[3];
508
+ }
509
+ set mbsource(e) {
510
+ this.$$set({ mbsource: e }), m();
511
+ }
470
512
  }
471
- et(ct, { clientstyling: {}, clientstylingurl: {} }, [], [], !0);
513
+ it($t, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
472
514
  export {
473
- ct as G
515
+ $t as G
474
516
  };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralAnimationLoading-CczQRHih.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...i){try{return t.apply(this,i)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralAnimationLoading-CYLqpfzI.cjs")).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/GeneralAnimationLoading-Dr8e6mQV.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralAnimationLoading-Dqt0LPDS.js").then(({ default: t }) => {
14
14
  !customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { G as a } from "../components/GeneralAnimationLoading-CrZMEs7k.js";
1
+ import { G as a } from "../components/GeneralAnimationLoading-sbibF0Vm.js";
2
2
  function i(n) {
3
3
  return function(...t) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-animation-loading",
3
- "version": "1.55.0",
3
+ "version": "1.56.2",
4
4
  "type": "module",
5
5
  "main": "esnext/general-animation-loading.js",
6
6
  "module": "esnext/general-animation-loading.js",
@@ -1 +0,0 @@
1
- "use strict";var V=Object.defineProperty,z=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var N=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable;var x=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t)=>{for(var n in t||(t={}))G.call(t,n)&&x(e,n,t[n]);if(N)for(var n of N(t))q.call(t,n)&&x(e,n,t[n]);return e},M=(e,t)=>z(e,F(t));var $=(e,t,n)=>x(e,typeof t!="symbol"?t+"":t,n);var T=(e,t,n)=>new Promise((s,l)=>{var i=o=>{try{u(n.next(o))}catch(r){l(r)}},c=o=>{try{u(n.throw(o))}catch(r){l(r)}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,c);u((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function _(){}function H(e){return e()}function B(){return Object.create(null)}function b(e){e.forEach(H)}function I(e){return typeof e=="function"}function K(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Q(e){return Object.keys(e).length===0}function W(e,t){e.appendChild(t)}function X(e,t,n){const s=Y(e);if(!s.getElementById(t)){const l=L("style");l.id=t,l.textContent=n,Z(s,l)}}function Y(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Z(e,t){return W(e.head||e,t),t.sheet}function U(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function L(e){return document.createElement(e)}function tt(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function et(e){return Array.from(e.childNodes)}function nt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let j;function g(e){j=e}const h=[],k=[];let p=[];const R=[],it=Promise.resolve();let v=!1;function st(){v||(v=!0,it.then(y))}function E(e){p.push(e)}const w=new Set;let a=0;function y(){if(a!==0)return;const e=j;do{try{for(;a<h.length;){const t=h[a];a++,g(t),rt(t.$$)}}catch(t){throw h.length=0,a=0,t}for(g(null),h.length=0,a=0;k.length;)k.pop()();for(let t=0;t<p.length;t+=1){const n=p[t];w.has(n)||(w.add(n),n())}p.length=0}while(h.length);for(;R.length;)R.pop()();v=!1,w.clear(),g(e)}function rt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(E)}}function lt(e){const t=[],n=[];p.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),p=t}const ct=new Set;function ot(e,t){e&&e.i&&(ct.delete(e),e.i(t))}function ut(e,t,n){const{fragment:s,after_update:l}=e.$$;s&&s.m(t,n),E(()=>{const i=e.$$.on_mount.map(H).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[]}),l.forEach(E)}function dt(e,t){const n=e.$$;n.fragment!==null&&(lt(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function $t(e,t){e.$$.dirty[0]===-1&&(h.push(e),st(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ft(e,t,n,s,l,i,c=null,u=[-1]){const o=j;g(e);const r=e.$$={fragment:null,ctx:[],props:i,update:_,not_equal:l,bound:B(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:B(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};c&&c(r.root);let f=!1;if(r.ctx=n?n(e,t.props||{},(d,O,...S)=>{const A=S.length?S[0]:O;return r.ctx&&l(r.ctx[d],r.ctx[d]=A)&&(!r.skip_bound&&r.bound[d]&&r.bound[d](A),f&&$t(e,d)),O}):[],r.update(),f=!0,b(r.before_update),r.fragment=s?s(r.ctx):!1,t.target){if(t.hydrate){const d=et(t.target);r.fragment&&r.fragment.l(d),d.forEach(C)}else r.fragment&&r.fragment.c();t.intro&&ot(e.$$.fragment),ut(e,t.target,t.anchor),y()}g(o)}let D;typeof HTMLElement=="function"&&(D=class extends HTMLElement{constructor(t,n,s){super();$(this,"$$ctor");$(this,"$$s");$(this,"$$c");$(this,"$$cn",!1);$(this,"$$d",{});$(this,"$$r",!1);$(this,"$$p_d",{});$(this,"$$l",{});$(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"})}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const l=this.$$c.$on(t,n);this.$$l_u.set(n,l)}super.addEventListener(t,n,s)}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const l=this.$$l_u.get(n);l&&(l(),this.$$l_u.delete(n))}}connectedCallback(){return T(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let c;return{c:function(){c=L("slot"),i!=="default"&&tt(c,"name",i)},m:function(r,f){U(r,c,f)},d:function(r){r&&C(c)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=nt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const c=this.$$g_p(i.name);c in this.$$d||(this.$$d[c]=m(c,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:M(P({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const l=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const c=m(i,this.$$d[i],this.$$p_d,"toAttribute");c==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,c)}this.$$r=!1};this.$$c.$$.after_update.push(l),l();for(const i in this.$$l)for(const c of this.$$l[i]){const u=this.$$c.$on(i,c);this.$$l_u.set(c,u)}this.$$l={}}})}attributeChangedCallback(t,n,s){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=m(t,s,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function m(e,t,n,s){var i;const l=(i=n[e])==null?void 0:i.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function at(e,t,n,s,l,i){let c=class extends D{constructor(){super(e,n,l),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(c.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var r;o=m(u,o,t),this.$$d[u]=o,(r=this.$$c)==null||r.$set({[u]:o})}})}),s.forEach(u=>{Object.defineProperty(c.prototype,u,{get(){var o;return(o=this.$$c)==null?void 0:o[u]}})}),e.element=c,c}class ht{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){dt(this,1),this.$destroy=_}$on(t,n){if(!I(n))return _;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const l=s.indexOf(n);l!==-1&&s.splice(l,1)}}$set(t){this.$$set&&!Q(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const _t="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);function pt(e){X(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function gt(e){let t;return{c(){t=L("div"),t.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(n,s){U(n,t,s),e[3](t)},p:_,i:_,o:_,d(n){n&&C(t),e[3](null)}}}function mt(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:l=""}=t,i;const c=()=>{let r=document.createElement("style");r.innerHTML=s,i.appendChild(r)},u=()=>{let r=new URL(l),f=document.createElement("style");fetch(r.href).then(d=>d.text()).then(d=>{f.innerHTML=d,setTimeout(()=>{i.appendChild(f)},1),setTimeout(()=>{},500)})};function o(r){k[r?"unshift":"push"](()=>{i=r,n(0,i)})}return e.$$set=r=>{"clientstyling"in r&&n(1,s=r.clientstyling),"clientstylingurl"in r&&n(2,l=r.clientstylingurl)},e.$$.update=()=>{e.$$.dirty&3&&s&&i&&c(),e.$$.dirty&5&&l&&i&&u()},[i,s,l,o]}class J extends ht{constructor(t){super(),ft(this,t,mt,gt,K,{clientstyling:1,clientstylingurl:2},pt)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),y()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),y()}}at(J,{clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=J;