@supersoniks/concorde 1.1.43 → 1.1.44

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.
Files changed (97) hide show
  1. package/concorde-core.bundle.js +18 -18
  2. package/concorde-core.es.js +805 -739
  3. package/core/_types/types.d.ts +13 -8
  4. package/core/_types/types.js +1 -0
  5. package/core/components/functional/date/date.d.ts +2 -2
  6. package/core/components/functional/date/date.js +10 -10
  7. package/core/components/functional/example/example.d.ts +1 -1
  8. package/core/components/functional/fetch/fetch.d.ts +8 -6
  9. package/core/components/functional/list/list.d.ts +16 -8
  10. package/core/components/functional/list/list.js +25 -13
  11. package/core/components/functional/mix/mix.d.ts +5 -5
  12. package/core/components/functional/mix/mix.js +11 -8
  13. package/core/components/functional/queue/queue.d.ts +12 -3
  14. package/core/components/functional/queue/queue.js +28 -22
  15. package/core/components/functional/router/redirect.d.ts +2 -2
  16. package/core/components/functional/router/redirect.js +2 -6
  17. package/core/components/functional/router/router.d.ts +1 -1
  18. package/core/components/functional/router/router.js +10 -10
  19. package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +0 -1
  20. package/core/components/functional/sdui/SDUIDescriptorTransformer.js +35 -36
  21. package/core/components/functional/sdui/sdui-utils.js +11 -11
  22. package/core/components/functional/sdui/sdui.d.ts +10 -9
  23. package/core/components/functional/sdui/sdui.js +32 -33
  24. package/core/components/functional/sdui/types.d.ts +8 -8
  25. package/core/components/functional/states/states.d.ts +3 -3
  26. package/core/components/functional/states/states.js +8 -8
  27. package/core/components/functional/submit/submit.d.ts +1 -1
  28. package/core/components/functional/submit/submit.js +16 -16
  29. package/core/components/functional/subscriber/subscriber.d.ts +1 -1
  30. package/core/components/functional/value/value.d.ts +1 -1
  31. package/core/components/ui/_css/size.d.ts +1 -1
  32. package/core/components/ui/button/button.d.ts +6 -4
  33. package/core/components/ui/button/button.js +2 -2
  34. package/core/components/ui/captcha/captcha.d.ts +2 -2
  35. package/core/components/ui/captcha/captcha.js +2 -2
  36. package/core/components/ui/card/card-header.js +5 -1
  37. package/core/components/ui/card/card.js +7 -5
  38. package/core/components/ui/form/checkbox/checkbox.d.ts +36 -12
  39. package/core/components/ui/form/fieldset/fieldset.d.ts +1 -1
  40. package/core/components/ui/form/form-layout/form-layout.d.ts +1 -1
  41. package/core/components/ui/form/input/input.d.ts +14 -9
  42. package/core/components/ui/form/input/input.js +2 -2
  43. package/core/components/ui/form/input/password-helper.d.ts +1 -1
  44. package/core/components/ui/form/input/password-helper.js +1 -1
  45. package/core/components/ui/form/input/same-value-helper.d.ts +1 -1
  46. package/core/components/ui/form/input/same-value-helper.js +2 -2
  47. package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +1 -1
  48. package/core/components/ui/form/select/select.d.ts +5 -4
  49. package/core/components/ui/form/select/select.js +8 -8
  50. package/core/components/ui/form/textarea/textarea.d.ts +11 -9
  51. package/core/components/ui/form/textarea/textarea.js +1 -1
  52. package/core/components/ui/group/group.js +1 -1
  53. package/core/components/ui/icon/icons.js +15 -13
  54. package/core/components/ui/loader/loader.d.ts +1 -1
  55. package/core/components/ui/loader/loader.js +1 -1
  56. package/core/components/ui/menu/menu.js +15 -16
  57. package/core/components/ui/modal/modal.d.ts +1 -1
  58. package/core/components/ui/modal/modal.js +1 -1
  59. package/core/components/ui/pop/pop.d.ts +1 -1
  60. package/core/components/ui/pop/pop.js +13 -13
  61. package/core/components/ui/table/table-tbody.js +1 -1
  62. package/core/components/ui/theme/theme.js +15 -13
  63. package/core/components/ui/toast/message-subscriber.d.ts +12 -9
  64. package/core/components/ui/toast/message-subscriber.js +10 -8
  65. package/core/components/ui/toast/toast.d.ts +1 -1
  66. package/core/components/ui/toast/toast.js +7 -8
  67. package/core/components/ui/toast/types.d.ts +3 -2
  68. package/core/components/ui/tooltip/tooltip.js +1 -1
  69. package/core/components/ui/ui.d.ts +1 -1
  70. package/core/components/ui/ui.js +1 -1
  71. package/core/mixins/Fetcher.d.ts +15 -17
  72. package/core/mixins/Fetcher.js +19 -10
  73. package/core/mixins/FormCheckable.d.ts +8 -5
  74. package/core/mixins/FormCheckable.js +21 -19
  75. package/core/mixins/FormElement.d.ts +10 -7
  76. package/core/mixins/FormElement.js +24 -23
  77. package/core/mixins/FormInput.d.ts +16 -10
  78. package/core/mixins/FormInput.js +1 -1
  79. package/core/mixins/Subscriber.d.ts +8 -6
  80. package/core/mixins/Subscriber.js +19 -18
  81. package/core/mixins/TemplatesContainer.d.ts +2 -1
  82. package/core/mixins/TemplatesContainer.js +2 -2
  83. package/core/utils/Arrays.js +12 -9
  84. package/core/utils/DataBindObserver.d.ts +4 -4
  85. package/core/utils/DataBindObserver.js +26 -28
  86. package/core/utils/HTML.d.ts +1 -1
  87. package/core/utils/HTML.js +2 -2
  88. package/core/utils/LocationHandler.js +10 -10
  89. package/core/utils/Objects.js +10 -4
  90. package/core/utils/PublisherProxy.d.ts +21 -15
  91. package/core/utils/PublisherProxy.js +67 -63
  92. package/core/utils/api.d.ts +16 -31
  93. package/core/utils/api.js +26 -22
  94. package/mixins.d.ts +25 -19
  95. package/package.json +9 -5
  96. package/core/components/ui/taxonomy/taxonomy.d.ts +0 -44
  97. package/core/components/ui/taxonomy/taxonomy.js +0 -115
@@ -1,22 +1,3 @@
1
- var __defProp2 = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a2, b2) => {
9
- for (var prop in b2 || (b2 = {}))
10
- if (__hasOwnProp.call(b2, prop))
11
- __defNormalProp(a2, prop, b2[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b2)) {
14
- if (__propIsEnum.call(b2, prop))
15
- __defNormalProp(a2, prop, b2[prop]);
16
- }
17
- return a2;
18
- };
19
- var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2));
20
1
  var _a;
21
2
  class HTML$1 {
22
3
  static getLanguage() {
@@ -57,7 +38,7 @@ class HTML$1 {
57
38
  }
58
39
  static async loadJS(src) {
59
40
  const p2 = new Promise(async (resolve) => {
60
- let script = document.createElement("script");
41
+ const script = document.createElement("script");
61
42
  script.src = src;
62
43
  script.onload = () => resolve(true);
63
44
  script.onerror = () => resolve(true);
@@ -67,7 +48,7 @@ class HTML$1 {
67
48
  }
68
49
  static async loadCSS(src) {
69
50
  const p2 = new Promise(async (resolve) => {
70
- var cssnode = document.createElement("link");
51
+ const cssnode = document.createElement("link");
71
52
  cssnode.type = "text/css";
72
53
  cssnode.rel = "stylesheet";
73
54
  cssnode.href = src;
@@ -85,7 +66,7 @@ class Objects$1 {
85
66
  if (keys1.length !== keys2.length && useStrictComparaison) {
86
67
  return false;
87
68
  }
88
- for (let key of keys1) {
69
+ for (const key of keys1) {
89
70
  const val1 = object1[key];
90
71
  const val2 = object2[key];
91
72
  const areEqual = useStrictComparaison ? val1 !== val2 : val1 != val2;
@@ -119,8 +100,8 @@ class Objects$1 {
119
100
  return object === null || object === void 0;
120
101
  }
121
102
  static traverse(obj, pathArray, extendValues = false) {
122
- for (let key of pathArray) {
123
- let newObj = obj[key];
103
+ for (const key of pathArray) {
104
+ const newObj = obj[key];
124
105
  if (newObj === void 0) {
125
106
  return void 0;
126
107
  }
@@ -135,7 +116,7 @@ class Objects$1 {
135
116
  static getURLSearchArray(sourceObject, prefix = "") {
136
117
  let arr = [];
137
118
  for (let key in sourceObject) {
138
- let value = sourceObject[key];
119
+ const value = sourceObject[key];
139
120
  if (prefix)
140
121
  key = prefix + "[" + key + "]";
141
122
  if (Objects$1.isObject(value)) {
@@ -166,14 +147,14 @@ const _API = class {
166
147
  async handleResult(fetchResult) {
167
148
  var _a2;
168
149
  this.lastResult = fetchResult;
169
- const contentType = (_a2 = fetchResult.headers.get("content-type")) == null ? void 0 : _a2.toLowerCase();
150
+ const contentType = (_a2 = fetchResult == null ? void 0 : fetchResult.headers.get("content-type")) == null ? void 0 : _a2.toLowerCase();
170
151
  let result = {};
171
152
  if (contentType && contentType.indexOf("text/") == 0) {
172
- let str = await fetchResult.text();
153
+ const str = await (fetchResult == null ? void 0 : fetchResult.text());
173
154
  result = { text: str };
174
155
  } else {
175
156
  try {
176
- result = await fetchResult.json();
157
+ result = await (fetchResult == null ? void 0 : fetchResult.json());
177
158
  } catch (e2) {
178
159
  result = {};
179
160
  }
@@ -192,38 +173,39 @@ const _API = class {
192
173
  }
193
174
  if (!this.userName || !this.password || !this.tokenProvider)
194
175
  return;
195
- let headers = {
176
+ const headers = {
196
177
  Authorization: "Basic " + window.btoa(unescape(encodeURIComponent(this.userName + ":" + this.password)))
197
178
  };
198
- let result = await fetch(this.computeURL(this.tokenProvider), {
179
+ const result = await fetch(this.computeURL(this.tokenProvider), {
199
180
  headers,
200
181
  credentials: this.credentials
201
182
  });
202
183
  try {
203
- let json = await result.json();
184
+ const json = await result.json();
204
185
  this.token = json.token;
205
186
  _API.tokens.set(this.serviceURL, this.token);
206
187
  } catch (e2) {
188
+ console.log("Probl\xE8me au moment du parsing du json au retour de l'authentification");
207
189
  }
208
190
  }
209
191
  async get(path, additionalHeaders) {
210
- let headers = await this.createHeaders(additionalHeaders);
192
+ const headers = await this.createHeaders(additionalHeaders);
211
193
  const url = this.computeURL(path);
212
194
  if (!_API.loadingGetPromises.has(url)) {
213
- let promise = new Promise(async (resolve) => {
214
- let result2 = await fetch(url, { headers, credentials: this.credentials });
215
- let handledResult = await this.handleResult(result2);
195
+ const promise = new Promise(async (resolve) => {
196
+ const result2 = await fetch(url, { headers, credentials: this.credentials });
197
+ const handledResult = await this.handleResult(result2);
216
198
  resolve(handledResult);
217
199
  });
218
200
  _API.loadingGetPromises.set(url, promise);
219
201
  }
220
- let result = await _API.loadingGetPromises.get(url);
202
+ const result = await _API.loadingGetPromises.get(url);
221
203
  _API.loadingGetPromises.delete(url);
222
204
  return result;
223
205
  }
224
206
  async createHeaders(additionalHeaders) {
225
207
  await this.auth();
226
- let headers = {};
208
+ const headers = {};
227
209
  if (this.token)
228
210
  headers.Authorization = "Bearer " + this.token;
229
211
  headers["Accept-Language"] = HTML$1.getLanguage();
@@ -233,13 +215,13 @@ const _API = class {
233
215
  return headers;
234
216
  }
235
217
  computeURL(path) {
236
- return (this.serviceURL + "/" + path).replace(/([^(https?\:)])\/{2,}/g, "$1/");
218
+ return (this.serviceURL + "/" + path).replace(/([^(https?:)])\/{2,}/g, "$1/");
237
219
  }
238
220
  async send(path, data, method = "POST", additionalHeaders) {
239
- let headers = await this.createHeaders(additionalHeaders);
221
+ const headers = await this.createHeaders(additionalHeaders);
240
222
  headers["Accept"] = "application/json";
241
223
  headers["Content-Type"] = "application/json";
242
- let result = await fetch(this.computeURL(path), {
224
+ const result = await fetch(this.computeURL(path), {
243
225
  headers,
244
226
  credentials: this.credentials,
245
227
  method,
@@ -248,13 +230,13 @@ const _API = class {
248
230
  return await this.handleResult(result);
249
231
  }
250
232
  async submitFormData(path, data, method = "POST", additionalHeaders) {
251
- let headers = await this.createHeaders(additionalHeaders);
233
+ const headers = await this.createHeaders(additionalHeaders);
252
234
  headers["Accept"] = "application/json";
253
- let formData = new FormData();
235
+ const formData = new FormData();
254
236
  const dynamicData = data;
255
- for (let z2 in dynamicData)
237
+ for (const z2 in dynamicData)
256
238
  formData.set(z2, dynamicData[z2]);
257
- let result = await fetch(this.computeURL(path), {
239
+ const result = await fetch(this.computeURL(path), {
258
240
  headers,
259
241
  credentials: this.credentials,
260
242
  method,
@@ -302,15 +284,15 @@ class PublisherProxy$1 {
302
284
  this._fillListeners_ = /* @__PURE__ */ new Set();
303
285
  this._templateFillListeners_ = /* @__PURE__ */ new Set();
304
286
  this._lockInternalMutationPublishing_ = false;
305
- this.root = this;
306
287
  this._value_ = target;
307
288
  this.parent = parentProxPub || null;
289
+ this.root = this;
308
290
  while (this.root.parent) {
309
291
  this.root = this.root.parent;
310
292
  }
311
293
  }
312
294
  delete() {
313
- for (let proxy of this._proxies_.values()) {
295
+ for (const proxy of this._proxies_.values()) {
314
296
  proxy.delete();
315
297
  }
316
298
  this._invalidateListeners_.clear();
@@ -347,7 +329,7 @@ class PublisherProxy$1 {
347
329
  }
348
330
  _publishTemplateFilling_(key, value) {
349
331
  this._templateFillListeners_.forEach((handler) => {
350
- let desc = Object.getOwnPropertyDescriptor(handler, key);
332
+ const desc = Object.getOwnPropertyDescriptor(handler, key);
351
333
  if (desc && !desc.set && !desc.writable)
352
334
  return;
353
335
  if (handler.propertyMap && handler.propertyMap[key]) {
@@ -393,13 +375,16 @@ class PublisherProxy$1 {
393
375
  }
394
376
  startTemplateFilling(handler) {
395
377
  this._templateFillListeners_.add(handler);
396
- for (var z2 in this._value_) {
378
+ if (typeof this._value_ != "object")
379
+ return;
380
+ for (const z2 in this._value_) {
381
+ let valueKey = z2;
397
382
  const value = this._value_[z2];
398
383
  if (handler.propertyMap && handler.propertyMap[z2]) {
399
- z2 = handler.propertyMap[z2];
384
+ valueKey = handler.propertyMap[z2];
400
385
  }
401
386
  if (typeof handler[z2] != "undefined" && handler[z2] !== value) {
402
- handler[z2] = value;
387
+ handler[valueKey] = value;
403
388
  }
404
389
  }
405
390
  }
@@ -408,7 +393,7 @@ class PublisherProxy$1 {
408
393
  }
409
394
  startDynamicFilling(handler) {
410
395
  this._fillListeners_.add(handler);
411
- for (var z2 in this._value_) {
396
+ for (const z2 in this._value_) {
412
397
  const value = this._value_[z2];
413
398
  if (handler[z2] !== value)
414
399
  handler[z2] = value;
@@ -421,17 +406,17 @@ class PublisherProxy$1 {
421
406
  var _a2;
422
407
  if (this._value_ === newValue)
423
408
  return true;
424
- if ("hasOwnProperty" in this._value_ && this._value_.hasOwnProperty("__value") && newValue.hasOwnProperty("__value") && this._value_.__value === newValue.__value) {
409
+ if (this._value_ && Object.prototype.hasOwnProperty.call(this._value_, "__value") && Object.prototype.hasOwnProperty.call(newValue, "__value") && this._value_.__value === newValue.__value) {
425
410
  return true;
426
411
  }
427
412
  const prevValue = this._value_;
428
413
  this._value_ = isComplex(newValue) ? newValue : { __value: newValue };
429
- const isPrimitiveValue = this._value_.hasOwnProperty("__value");
414
+ const isPrimitiveValue = Object.prototype.hasOwnProperty.call(this._value_, "__value");
430
415
  if (isPrimitiveValue) {
431
416
  this._publishAssignement_(lockInternalMutationsTransmission);
432
417
  return true;
433
418
  }
434
- for (let key in this._value_) {
419
+ for (const key in this._value_) {
435
420
  if (typeof this._value_[key] === "undefined")
436
421
  delete this._value_[key];
437
422
  }
@@ -450,12 +435,12 @@ class PublisherProxy$1 {
450
435
  });
451
436
  this._publishAssignement_();
452
437
  if (isComplex(this._value_)) {
453
- for (let key in this._value_) {
454
- let v2 = newValue[key];
455
- let isVComplex = isComplex(v2);
456
- let valueV = isVComplex ? v2 : { __value: v2 };
438
+ for (const key in this._value_) {
439
+ const v2 = newValue[key];
440
+ const isVComplex = isComplex(v2);
441
+ const valueV = isVComplex ? v2 : { __value: v2 };
457
442
  if (!this._proxies_.has(key)) {
458
- let newPublisher = new Publisher({}, this);
443
+ const newPublisher = new Publisher({}, this);
459
444
  this._proxies_.set(key, newPublisher);
460
445
  newPublisher._proxies_.set("_parent_", this);
461
446
  }
@@ -466,8 +451,8 @@ class PublisherProxy$1 {
466
451
  return true;
467
452
  }
468
453
  get() {
469
- if (this._value_.hasOwnProperty("__value")) {
470
- let v2 = this._value_.__value;
454
+ if (Object.prototype.hasOwnProperty.call(this._value_, "__value")) {
455
+ const v2 = this._value_.__value;
471
456
  return v2 != void 0 ? v2 : null;
472
457
  }
473
458
  return this._value_;
@@ -511,9 +496,8 @@ PublisherManager$1.instance = null;
511
496
  class Publisher extends PublisherProxy$1 {
512
497
  constructor(target, parentProxPub = null) {
513
498
  super(target, parentProxPub);
514
- let that = this;
515
- let thisProxy = new Proxy(this, {
516
- get: function(oTarget, sKey) {
499
+ const thisProxy = new Proxy(this, {
500
+ get: function(publisherInstance, sKey) {
517
501
  if ([
518
502
  "invalidate",
519
503
  "onInvalidate",
@@ -545,58 +529,58 @@ class Publisher extends PublisherProxy$1 {
545
529
  "_value_",
546
530
  "_lockInternalMutationPublishing_"
547
531
  ].includes(sKey))
548
- return that[sKey];
549
- if (!that._proxies_.has(sKey)) {
550
- let vValue = that._value_[sKey];
551
- let newPublisher = new Publisher(isComplex(vValue) ? vValue : { __value: vValue }, that);
532
+ return publisherInstance[sKey];
533
+ if (!publisherInstance._proxies_.has(sKey)) {
534
+ const vValue = publisherInstance._value_[sKey];
535
+ const newPublisher = new Publisher(isComplex(vValue) ? vValue : { __value: vValue }, publisherInstance);
552
536
  newPublisher._proxies_.set("_parent_", thisProxy);
553
- that._proxies_.set(sKey, newPublisher);
537
+ publisherInstance._proxies_.set(sKey, newPublisher);
554
538
  }
555
- return that._proxies_.get(sKey);
539
+ return publisherInstance._proxies_.get(sKey);
556
540
  },
557
- set: function(oTarget, sKey, vValue) {
541
+ set: function(publisherInstance, sKey, vValue) {
558
542
  var _a2;
559
543
  if (sKey == "_value_") {
560
- oTarget._value_ = vValue;
561
- return oTarget._value_;
544
+ publisherInstance._value_ = vValue;
545
+ return true;
562
546
  }
563
- if (!that._proxies_.has(sKey)) {
564
- let newPublisher = new Publisher({}, that);
547
+ if (!publisherInstance._proxies_.has(sKey)) {
548
+ const newPublisher = new Publisher({}, publisherInstance);
565
549
  newPublisher._proxies_.set("_parent_", thisProxy);
566
- that._proxies_.set(sKey, newPublisher);
550
+ publisherInstance._proxies_.set(sKey, newPublisher);
567
551
  }
568
- const prevValue = that._value_[sKey];
552
+ const prevValue = publisherInstance._value_[sKey];
569
553
  if (prevValue !== vValue) {
570
- that._value_[sKey] = vValue;
571
- that._publishDynamicFilling_(sKey, vValue);
572
- (_a2 = that._proxies_.get(sKey)) == null ? void 0 : _a2.set(isComplex(vValue) ? vValue : { __value: vValue });
554
+ publisherInstance._value_[sKey] = vValue;
555
+ publisherInstance._publishDynamicFilling_(sKey, vValue);
556
+ (_a2 = publisherInstance._proxies_.get(sKey)) == null ? void 0 : _a2.set(isComplex(vValue) ? vValue : { __value: vValue });
573
557
  }
574
- return that._proxies_.get(sKey);
558
+ return true;
575
559
  },
576
- deleteProperty: function(oTarget, sKey) {
577
- that._publishDynamicFilling_(sKey, null);
578
- that._proxies_.delete(sKey);
579
- return delete that._value_[sKey];
560
+ deleteProperty: function(publisherInstance, sKey) {
561
+ publisherInstance._publishDynamicFilling_(sKey, null);
562
+ publisherInstance._proxies_.delete(sKey);
563
+ return delete publisherInstance._value_[sKey];
580
564
  },
581
- has: function(oTarget, sKey) {
582
- return sKey in that._value_ && sKey != "_lockInternalMutationPublishing_";
565
+ has: function(publisherInstance, sKey) {
566
+ return sKey in publisherInstance._value_ && sKey != "_lockInternalMutationPublishing_";
583
567
  },
584
- defineProperty: function(oTarget, sKey, oDesc) {
568
+ defineProperty: function(publisherInstance, sKey, oDesc) {
585
569
  if (oDesc && "value" in oDesc) {
586
- that._value_[sKey] = oDesc.value;
570
+ publisherInstance._value_[sKey] = oDesc.value;
587
571
  }
588
- return that._value_;
572
+ return true;
589
573
  },
590
- getOwnPropertyDescriptor: function(oTarget, sKey) {
574
+ getOwnPropertyDescriptor: function(publisherInstance, sKey) {
591
575
  return {
592
576
  enumerable: true,
593
577
  configurable: true
594
578
  };
595
579
  },
596
- ownKeys: function(target2) {
597
- if (that._value_.__value)
598
- return Object.keys(that._value_.__value);
599
- return Object.keys(that._value_);
580
+ ownKeys: function(publisherInstance) {
581
+ if (publisherInstance._value_.__value)
582
+ return Object.keys(publisherInstance._value_.__value);
583
+ return Object.keys(publisherInstance._value_);
600
584
  }
601
585
  });
602
586
  return thisProxy;
@@ -612,7 +596,9 @@ const _DataBindObserver = class {
612
596
  if (!this.enabled)
613
597
  return;
614
598
  this.enabled = false;
615
- Array.from(_DataBindObserver.observedElements.keys()).forEach((k2) => _DataBindObserver.unObserve(k2));
599
+ Array.from(_DataBindObserver.observedElements.keys()).forEach(
600
+ (k2) => _DataBindObserver.unObserve(k2)
601
+ );
616
602
  }
617
603
  static observe(element) {
618
604
  if (!element)
@@ -621,8 +607,8 @@ const _DataBindObserver = class {
621
607
  return;
622
608
  if (_DataBindObserver.observedElements.has(element))
623
609
  return;
624
- let obs = new MutationObserver(_DataBindObserver.onMutation);
625
- let opt = {};
610
+ const obs = new MutationObserver(_DataBindObserver.onMutation);
611
+ const opt = {};
626
612
  opt.childList = true;
627
613
  opt.subtree = true;
628
614
  opt.attributes = true;
@@ -634,7 +620,7 @@ const _DataBindObserver = class {
634
620
  static unObserve(element) {
635
621
  if (!element)
636
622
  return;
637
- let observer = this.observedElements.get(element);
623
+ const observer = this.observedElements.get(element);
638
624
  if (!observer)
639
625
  return;
640
626
  observer.disconnect();
@@ -657,18 +643,16 @@ const _DataBindObserver = class {
657
643
  elt.childNodes.forEach((elt2) => _DataBindObserver.onRemoved(elt2));
658
644
  }
659
645
  static onMutation(list) {
660
- for (let l2 of list) {
646
+ for (const l2 of list) {
661
647
  switch (l2.type) {
662
648
  case "attributes":
663
649
  _DataBindObserver.addPublisherListeners(l2.target);
664
650
  break;
665
651
  case "childList":
666
- var added = l2.addedNodes;
667
- var removed = l2.removedNodes;
668
- added.forEach((elt) => {
652
+ l2.addedNodes.forEach((elt) => {
669
653
  _DataBindObserver.onAdded(elt);
670
654
  });
671
- removed.forEach((elt) => {
655
+ l2.removedNodes.forEach((elt) => {
672
656
  _DataBindObserver.onRemoved(elt);
673
657
  });
674
658
  break;
@@ -676,7 +660,7 @@ const _DataBindObserver = class {
676
660
  }
677
661
  }
678
662
  static removePublisherListeners(target) {
679
- let conf = _DataBindObserver.publisherListeners.get(target);
663
+ const conf = _DataBindObserver.publisherListeners.get(target);
680
664
  if (!conf)
681
665
  return;
682
666
  _DataBindObserver.publisherListeners.delete(target);
@@ -701,9 +685,9 @@ const _DataBindObserver = class {
701
685
  if (!("attributes" in element))
702
686
  return [];
703
687
  return Array.from(element.attributes).filter((attribute) => attribute.name.indexOf("::") == 0).map((e2) => {
704
- let name = e2.name.substring(2);
688
+ const name = e2.name.substring(2);
705
689
  return {
706
- propertyToUpdate: name.replace(/\-((html)|\w)/g, (match) => match.substring(1).toUpperCase()),
690
+ propertyToUpdate: name.replace(/-((html)|\w)/g, (match) => match.substring(1).toUpperCase()),
707
691
  bindedVariablesDescriptor: _DataBindObserver.getVariablesDescriptor(e2.value)
708
692
  };
709
693
  });
@@ -711,7 +695,7 @@ const _DataBindObserver = class {
711
695
  static getSubPublisher(pub, pathArray) {
712
696
  if (!pathArray)
713
697
  return pub;
714
- for (let key of pathArray) {
698
+ for (const key of pathArray) {
715
699
  if (key == "_self_")
716
700
  continue;
717
701
  if (!pub)
@@ -722,24 +706,27 @@ const _DataBindObserver = class {
722
706
  }
723
707
  static addPublisherListeners(target) {
724
708
  _DataBindObserver.removePublisherListeners(target);
725
- let dataProviderId = HTML$1.getAncestorAttributeValue(target.parentNode || target.host || target, "dataProvider");
709
+ const dataProviderId = HTML$1.getAncestorAttributeValue(
710
+ target.parentNode || target.host || target,
711
+ "dataProvider"
712
+ );
726
713
  if (!dataProviderId)
727
714
  return;
728
- let publisher = PublisherManager$1.getInstance().get(dataProviderId);
729
- let dataBindItems = _DataBindObserver.getDataBindItems(target);
730
- let conf = [];
715
+ const publisher = PublisherManager$1.getInstance().get(dataProviderId);
716
+ const dataBindItems = _DataBindObserver.getDataBindItems(target);
717
+ const conf = [];
731
718
  dataBindItems.forEach((dataBindItem) => {
732
- let bindedVariablesDescriptor = dataBindItem.bindedVariablesDescriptor;
733
- let propertyToUpdate = dataBindItem.propertyToUpdate;
734
- for (let value of bindedVariablesDescriptor.variables) {
735
- let publisherPathArray = value;
719
+ const bindedVariablesDescriptor = dataBindItem.bindedVariablesDescriptor;
720
+ const propertyToUpdate = dataBindItem.propertyToUpdate;
721
+ for (const value of bindedVariablesDescriptor.variables) {
722
+ const publisherPathArray = value;
736
723
  let pub = publisher;
737
724
  pub = _DataBindObserver.getSubPublisher(publisher, publisherPathArray);
738
- let rec = target;
739
- let currentConf = {
725
+ const rec = target;
726
+ const currentConf = {
740
727
  publisher: pub,
741
728
  onAssign: () => {
742
- let values = bindedVariablesDescriptor.variables.map((dataPath) => {
729
+ const values = bindedVariablesDescriptor.variables.map((dataPath) => {
743
730
  var _a2;
744
731
  return (_a2 = _DataBindObserver.getSubPublisher(publisher, dataPath)) == null ? void 0 : _a2.get();
745
732
  });
@@ -755,7 +742,7 @@ const _DataBindObserver = class {
755
742
  }
756
743
  for (let i2 = 0; i2 < values.length; i2++) {
757
744
  let value2 = values[i2];
758
- let variable = bindedVariablesDescriptor.variables[i2];
745
+ const variable = bindedVariablesDescriptor.variables[i2];
759
746
  if (value2 === null) {
760
747
  hasUndeterminatedValue = true;
761
748
  value2 = void 0;
@@ -763,13 +750,13 @@ const _DataBindObserver = class {
763
750
  expression = expression.replace("$" + variable.join("."), value2);
764
751
  }
765
752
  if (expression.indexOf("|") != -1) {
766
- let funcDelimiterIdx = expression.indexOf("|");
753
+ const funcDelimiterIdx = expression.indexOf("|");
767
754
  if (funcDelimiterIdx == 0) {
768
755
  expression = Format$1.js(expression.substring(1));
769
756
  } else {
770
- let funcName = expression.substring(0, funcDelimiterIdx);
771
- let funcArgs = expression.substring(funcDelimiterIdx + 1);
772
- let fmtFunc = Format$1[funcName];
757
+ const funcName = expression.substring(0, funcDelimiterIdx);
758
+ const funcArgs = expression.substring(funcDelimiterIdx + 1);
759
+ const fmtFunc = Format$1[funcName];
773
760
  expression = hasUndeterminatedValue ? "" : fmtFunc ? fmtFunc(funcArgs) : expression;
774
761
  }
775
762
  } else {
@@ -797,7 +784,7 @@ if (!window.SonicDataBindObserver)
797
784
  * Copyright 2017 Google LLC
798
785
  * SPDX-License-Identifier: BSD-3-Clause
799
786
  */
800
- const e$8 = (e2) => (n2) => typeof n2 == "function" ? ((e3, n3) => (customElements.define(e3, n3), n3))(e2, n2) : ((e3, n3) => {
787
+ const e$8 = (e2) => (n2) => "function" == typeof n2 ? ((e3, n3) => (customElements.define(e3, n3), n3))(e2, n2) : ((e3, n3) => {
801
788
  const { kind: t2, elements: s2 } = n3;
802
789
  return { kind: t2, elements: s2, finisher(n4) {
803
790
  customElements.define(e3, n4);
@@ -808,15 +795,15 @@ const e$8 = (e2) => (n2) => typeof n2 == "function" ? ((e3, n3) => (customElemen
808
795
  * Copyright 2017 Google LLC
809
796
  * SPDX-License-Identifier: BSD-3-Clause
810
797
  */
811
- const i$6 = (i2, e2) => e2.kind === "method" && e2.descriptor && !("value" in e2.descriptor) ? __spreadProps(__spreadValues({}, e2), { finisher(n2) {
798
+ const i$6 = (i2, e2) => "method" === e2.kind && e2.descriptor && !("value" in e2.descriptor) ? { ...e2, finisher(n2) {
812
799
  n2.createProperty(e2.key, i2);
813
- } }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e2.key, initializer() {
814
- typeof e2.initializer == "function" && (this[e2.key] = e2.initializer.call(this));
800
+ } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e2.key, initializer() {
801
+ "function" == typeof e2.initializer && (this[e2.key] = e2.initializer.call(this));
815
802
  }, finisher(n2) {
816
803
  n2.createProperty(e2.key, i2);
817
804
  } };
818
805
  function e$7(e2) {
819
- return (n2, t2) => t2 !== void 0 ? ((i2, e3, n3) => {
806
+ return (n2, t2) => void 0 !== t2 ? ((i2, e3, n3) => {
820
807
  e3.constructor.createProperty(n3, i2);
821
808
  })(e2, n2, t2) : i$6(e2, n2);
822
809
  }
@@ -826,7 +813,7 @@ function e$7(e2) {
826
813
  * SPDX-License-Identifier: BSD-3-Clause
827
814
  */
828
815
  function t$3(t2) {
829
- return e$7(__spreadProps(__spreadValues({}, t2), { state: true }));
816
+ return e$7({ ...t2, state: true });
830
817
  }
831
818
  /**
832
819
  * @license
@@ -835,15 +822,15 @@ function t$3(t2) {
835
822
  */
836
823
  const o$9 = ({ finisher: e2, descriptor: t2 }) => (o2, n2) => {
837
824
  var r2;
838
- if (n2 === void 0) {
839
- const n3 = (r2 = o2.originalKey) !== null && r2 !== void 0 ? r2 : o2.key, i2 = t2 != null ? { kind: "method", placement: "prototype", key: n3, descriptor: t2(o2.key) } : __spreadProps(__spreadValues({}, o2), { key: n3 });
840
- return e2 != null && (i2.finisher = function(t3) {
825
+ if (void 0 === n2) {
826
+ const n3 = null !== (r2 = o2.originalKey) && void 0 !== r2 ? r2 : o2.key, i2 = null != t2 ? { kind: "method", placement: "prototype", key: n3, descriptor: t2(o2.key) } : { ...o2, key: n3 };
827
+ return null != e2 && (i2.finisher = function(t3) {
841
828
  e2(t3, n3);
842
829
  }), i2;
843
830
  }
844
831
  {
845
832
  const r3 = o2.constructor;
846
- t2 !== void 0 && Object.defineProperty(o2, n2, t2(n2)), e2 == null || e2(r3, n2);
833
+ void 0 !== t2 && Object.defineProperty(o2, n2, t2(n2)), null == e2 || e2(r3, n2);
847
834
  }
848
835
  };
849
836
  /**
@@ -855,13 +842,13 @@ function i$5(i2, n2) {
855
842
  return o$9({ descriptor: (o2) => {
856
843
  const t2 = { get() {
857
844
  var o3, n3;
858
- return (n3 = (o3 = this.renderRoot) === null || o3 === void 0 ? void 0 : o3.querySelector(i2)) !== null && n3 !== void 0 ? n3 : null;
845
+ return null !== (n3 = null === (o3 = this.renderRoot) || void 0 === o3 ? void 0 : o3.querySelector(i2)) && void 0 !== n3 ? n3 : null;
859
846
  }, enumerable: true, configurable: true };
860
847
  if (n2) {
861
- const n3 = typeof o2 == "symbol" ? Symbol() : "__" + o2;
848
+ const n3 = "symbol" == typeof o2 ? Symbol() : "__" + o2;
862
849
  t2.get = function() {
863
850
  var o3, t3;
864
- return this[n3] === void 0 && (this[n3] = (t3 = (o3 = this.renderRoot) === null || o3 === void 0 ? void 0 : o3.querySelector(i2)) !== null && t3 !== void 0 ? t3 : null), this[n3];
851
+ return void 0 === this[n3] && (this[n3] = null !== (t3 = null === (o3 = this.renderRoot) || void 0 === o3 ? void 0 : o3.querySelector(i2)) && void 0 !== t3 ? t3 : null), this[n3];
865
852
  };
866
853
  }
867
854
  return t2;
@@ -873,12 +860,12 @@ function i$5(i2, n2) {
873
860
  * SPDX-License-Identifier: BSD-3-Clause
874
861
  */
875
862
  var n$6;
876
- const e$6 = ((n$6 = window.HTMLSlotElement) === null || n$6 === void 0 ? void 0 : n$6.prototype.assignedElements) != null ? (o2, n2) => o2.assignedElements(n2) : (o2, n2) => o2.assignedNodes(n2).filter((o3) => o3.nodeType === Node.ELEMENT_NODE);
863
+ const e$6 = null != (null === (n$6 = window.HTMLSlotElement) || void 0 === n$6 ? void 0 : n$6.prototype.assignedElements) ? (o2, n2) => o2.assignedElements(n2) : (o2, n2) => o2.assignedNodes(n2).filter((o3) => o3.nodeType === Node.ELEMENT_NODE);
877
864
  function l$6(n2) {
878
- const { slot: l2, selector: t2 } = n2 != null ? n2 : {};
865
+ const { slot: l2, selector: t2 } = null != n2 ? n2 : {};
879
866
  return o$9({ descriptor: (o2) => ({ get() {
880
867
  var o3;
881
- const r2 = "slot" + (l2 ? `[name=${l2}]` : ":not([name])"), i2 = (o3 = this.renderRoot) === null || o3 === void 0 ? void 0 : o3.querySelector(r2), s2 = i2 != null ? e$6(i2, n2) : [];
868
+ const r2 = "slot" + (l2 ? `[name=${l2}]` : ":not([name])"), i2 = null === (o3 = this.renderRoot) || void 0 === o3 ? void 0 : o3.querySelector(r2), s2 = null != i2 ? e$6(i2, n2) : [];
882
869
  return t2 ? s2.filter((o4) => o4.matches(t2)) : s2;
883
870
  }, enumerable: true, configurable: true }) });
884
871
  }
@@ -889,10 +876,10 @@ function l$6(n2) {
889
876
  */
890
877
  function o$8(o2, n2, r2) {
891
878
  let l2, s2 = o2;
892
- return typeof o2 == "object" ? (s2 = o2.slot, l2 = o2) : l2 = { flatten: n2 }, r2 ? l$6({ slot: s2, flatten: n2, selector: r2 }) : o$9({ descriptor: (e2) => ({ get() {
879
+ return "object" == typeof o2 ? (s2 = o2.slot, l2 = o2) : l2 = { flatten: n2 }, r2 ? l$6({ slot: s2, flatten: n2, selector: r2 }) : o$9({ descriptor: (e2) => ({ get() {
893
880
  var e3, t2;
894
- const o3 = "slot" + (s2 ? `[name=${s2}]` : ":not([name])"), n3 = (e3 = this.renderRoot) === null || e3 === void 0 ? void 0 : e3.querySelector(o3);
895
- return (t2 = n3 == null ? void 0 : n3.assignedNodes(l2)) !== null && t2 !== void 0 ? t2 : [];
881
+ const o3 = "slot" + (s2 ? `[name=${s2}]` : ":not([name])"), n3 = null === (e3 = this.renderRoot) || void 0 === e3 ? void 0 : e3.querySelector(o3);
882
+ return null !== (t2 = null == n3 ? void 0 : n3.assignedNodes(l2)) && void 0 !== t2 ? t2 : [];
896
883
  }, enumerable: true, configurable: true }) });
897
884
  }
898
885
  var __defProp$18 = Object.defineProperty;
@@ -954,7 +941,8 @@ const Subscriber$1 = (superClass, type) => {
954
941
  updated(_changedProperties) {
955
942
  super.updated(_changedProperties);
956
943
  let ref = this.shadowRoot || this;
957
- let display = this.displayContents ? "contents" : ref.children.length == 0 ? "none" : null;
944
+ const children = [...ref.children].filter((child) => child.tagName != "STYLE");
945
+ let display = this.displayContents ? "contents" : children.length == 0 ? "none" : null;
958
946
  if (display)
959
947
  this.style.display = display;
960
948
  else
@@ -962,12 +950,12 @@ const Subscriber$1 = (superClass, type) => {
962
950
  }
963
951
  connectedCallback() {
964
952
  if (this.hasAttribute("lazyRendering")) {
965
- let options = {
953
+ const options = {
966
954
  root: null,
967
955
  rootMargin: Math.max(window.innerWidth * 0.1, window.innerHeight * 0.1) + "px"
968
956
  };
969
957
  let firstView = true;
970
- let iObserver = new IntersectionObserver((entries) => {
958
+ const iObserver = new IntersectionObserver((entries) => {
971
959
  for (const e2 of entries) {
972
960
  if (firstView && e2.isIntersecting) {
973
961
  firstView = false;
@@ -1003,7 +991,7 @@ const Subscriber$1 = (superClass, type) => {
1003
991
  if (this.hasAttribute("debug") && !this.defferedDebug) {
1004
992
  if (!this.debug) {
1005
993
  this.debug = document.createElement("div");
1006
- let style = this.debug.style;
994
+ const style = this.debug.style;
1007
995
  style.position = "fixed";
1008
996
  style.top = "0";
1009
997
  style.right = "0";
@@ -1045,7 +1033,11 @@ const Subscriber$1 = (superClass, type) => {
1045
1033
  });
1046
1034
  (_a2 = this.publisher) == null ? void 0 : _a2.onInternalMutation(() => {
1047
1035
  var _a3;
1048
- this.debug.innerHTML = `\u{1F916} DataProvider : "<b style="font-weight:700;color:#fff">${this.dataProvider}</b>"<br><div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px">Variable disponible dans la console<br>ctrl + Clique : \xE9pingler / d\xE9s\xE9pingler</div><pre style="margin-top:10px;background:0 0;padding:0;font-size:inherit;color:inherit">${JSON.stringify((_a3 = this.publisher) == null ? void 0 : _a3.get(), null, " ")}</pre>`;
1036
+ this.debug.innerHTML = `\u{1F916} DataProvider : "<b style="font-weight:700;color:#fff">${this.dataProvider}</b>"<br><div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px">Variable disponible dans la console<br>ctrl + Clique : \xE9pingler / d\xE9s\xE9pingler</div><pre style="margin-top:10px;background:0 0;padding:0;font-size:inherit;color:inherit">${JSON.stringify(
1037
+ (_a3 = this.publisher) == null ? void 0 : _a3.get(),
1038
+ null,
1039
+ " "
1040
+ )}</pre>`;
1049
1041
  });
1050
1042
  }
1051
1043
  }
@@ -1058,8 +1050,8 @@ const Subscriber$1 = (superClass, type) => {
1058
1050
  }
1059
1051
  getApiConfiguration() {
1060
1052
  const token = this.getAncestorAttributeValue("token");
1061
- let addHTTPResponse = this.getAncestorAttributeValue("addHTTPResponse") != null;
1062
- let serviceURL = this.getAncestorAttributeValue("serviceURL");
1053
+ const addHTTPResponse = this.getAncestorAttributeValue("addHTTPResponse") != null;
1054
+ const serviceURL = this.getAncestorAttributeValue("serviceURL");
1063
1055
  let userName = null;
1064
1056
  let password2 = null;
1065
1057
  let tokenProvider = null;
@@ -1068,13 +1060,13 @@ const Subscriber$1 = (superClass, type) => {
1068
1060
  password2 = this.getAncestorAttributeValue("password");
1069
1061
  tokenProvider = this.getAncestorAttributeValue("tokenProvider");
1070
1062
  }
1071
- let credentials = this.getAncestorAttributeValue("credentials") || void 0;
1063
+ const credentials = this.getAncestorAttributeValue("credentials") || void 0;
1072
1064
  return { serviceURL, token, userName, password: password2, tokenProvider, addHTTPResponse, credentials };
1073
1065
  }
1074
1066
  async initWording() {
1075
1067
  let hasWording = false;
1076
1068
  const propNames = Object.getOwnPropertyNames(this.constructor.prototype);
1077
- for (let p2 of propNames) {
1069
+ for (const p2 of propNames) {
1078
1070
  if (p2.indexOf("wording_") == 0) {
1079
1071
  hasWording = true;
1080
1072
  break;
@@ -1082,14 +1074,14 @@ const Subscriber$1 = (superClass, type) => {
1082
1074
  }
1083
1075
  if (!hasWording)
1084
1076
  return;
1085
- let publisher = PublisherManager$1.getInstance().get("sonic-wording");
1086
- let wordingProvider = this.getAncestorAttributeValue("wordingProvider");
1077
+ const publisher = PublisherManager$1.getInstance().get("sonic-wording");
1078
+ const wordingProvider = this.getAncestorAttributeValue("wordingProvider");
1087
1079
  const api2 = new API(this.getApiConfiguration());
1088
1080
  if (wordingProvider) {
1089
- let wordings = [];
1090
- for (let p2 of propNames) {
1081
+ const wordings = [];
1082
+ for (const p2 of propNames) {
1091
1083
  if (p2.indexOf("wording_") == 0) {
1092
- let p8 = p2.substring(8);
1084
+ const p8 = p2.substring(8);
1093
1085
  if (!publisher.get()[p2]) {
1094
1086
  publisher[p2] = "...";
1095
1087
  wordings.push(p8);
@@ -1097,8 +1089,8 @@ const Subscriber$1 = (superClass, type) => {
1097
1089
  }
1098
1090
  }
1099
1091
  if (wordings.length > 0) {
1100
- let result = await api2.post(wordingProvider, { labels: wordings });
1101
- for (let elt in result) {
1092
+ const result = await api2.post(wordingProvider, { labels: wordings });
1093
+ for (const elt in result) {
1102
1094
  publisher["wording_" + elt] = result[elt];
1103
1095
  }
1104
1096
  }
@@ -1110,7 +1102,7 @@ const Subscriber$1 = (superClass, type) => {
1110
1102
  if (this.noShadowDom === "" || this.getAttribute("noShadowDom") === "") {
1111
1103
  return this;
1112
1104
  }
1113
- let shadowRoot = super.createRenderRoot();
1105
+ const shadowRoot = super.createRenderRoot();
1114
1106
  DataBindObserver$1.observe(shadowRoot);
1115
1107
  return shadowRoot;
1116
1108
  }
@@ -1137,7 +1129,7 @@ const Subscriber$1 = (superClass, type) => {
1137
1129
  let pub = mng.get(publisherId);
1138
1130
  this.dataProvider = publisherId;
1139
1131
  if (this.hasAttribute("subDataProvider")) {
1140
- let dataPath = this.getAttribute("subDataProvider");
1132
+ const dataPath = this.getAttribute("subDataProvider");
1141
1133
  this.dataProvider = publisherId + "/" + dataPath;
1142
1134
  pub = Objects$1.traverse(pub, dataPath.split("."));
1143
1135
  mng.set(this.dataProvider, pub);
@@ -1209,8 +1201,8 @@ const TemplatesContainer$1 = (superClass) => {
1209
1201
  this.templatePartsList = [];
1210
1202
  }
1211
1203
  connectedCallback() {
1212
- let templates = this.templates || [...this.querySelectorAll("template")];
1213
- for (let t2 of templates) {
1204
+ const templates = this.templates || [...this.querySelectorAll("template")];
1205
+ for (const t2 of templates) {
1214
1206
  if (t2.hasAttribute(this.templateValueAttribute)) {
1215
1207
  this.templateParts[t2.getAttribute(this.templateValueAttribute)] = t2;
1216
1208
  this.templatePartsList.push(t2);
@@ -1232,7 +1224,7 @@ const TemplatesContainer$1 = (superClass) => {
1232
1224
  * Copyright 2019 Google LLC
1233
1225
  * SPDX-License-Identifier: BSD-3-Clause
1234
1226
  */
1235
- const t$2 = window, e$5 = t$2.ShadowRoot && (t$2.ShadyCSS === void 0 || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$6 = Symbol(), n$5 = /* @__PURE__ */ new WeakMap();
1227
+ const t$2 = window, e$5 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$6 = Symbol(), n$5 = /* @__PURE__ */ new WeakMap();
1236
1228
  class o$7 {
1237
1229
  constructor(t2, e2, n2) {
1238
1230
  if (this._$cssResult$ = true, n2 !== s$6)
@@ -1242,9 +1234,9 @@ class o$7 {
1242
1234
  get styleSheet() {
1243
1235
  let t2 = this.o;
1244
1236
  const s2 = this.t;
1245
- if (e$5 && t2 === void 0) {
1246
- const e2 = s2 !== void 0 && s2.length === 1;
1247
- e2 && (t2 = n$5.get(s2)), t2 === void 0 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && n$5.set(s2, t2));
1237
+ if (e$5 && void 0 === t2) {
1238
+ const e2 = void 0 !== s2 && 1 === s2.length;
1239
+ e2 && (t2 = n$5.get(s2)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && n$5.set(s2, t2));
1248
1240
  }
1249
1241
  return t2;
1250
1242
  }
@@ -1252,11 +1244,11 @@ class o$7 {
1252
1244
  return this.cssText;
1253
1245
  }
1254
1246
  }
1255
- const r$5 = (t2) => new o$7(typeof t2 == "string" ? t2 : t2 + "", void 0, s$6), i$4 = (t2, ...e2) => {
1256
- const n2 = t2.length === 1 ? t2[0] : e2.reduce((e3, s2, n3) => e3 + ((t3) => {
1257
- if (t3._$cssResult$ === true)
1247
+ const r$5 = (t2) => new o$7("string" == typeof t2 ? t2 : t2 + "", void 0, s$6), i$4 = (t2, ...e2) => {
1248
+ const n2 = 1 === t2.length ? t2[0] : e2.reduce((e3, s2, n3) => e3 + ((t3) => {
1249
+ if (true === t3._$cssResult$)
1258
1250
  return t3.cssText;
1259
- if (typeof t3 == "number")
1251
+ if ("number" == typeof t3)
1260
1252
  return t3;
1261
1253
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
1262
1254
  })(s2) + t2[n3 + 1], t2[0]);
@@ -1264,7 +1256,7 @@ const r$5 = (t2) => new o$7(typeof t2 == "string" ? t2 : t2 + "", void 0, s$6),
1264
1256
  }, S$2 = (s2, n2) => {
1265
1257
  e$5 ? s2.adoptedStyleSheets = n2.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet) : n2.forEach((e2) => {
1266
1258
  const n3 = document.createElement("style"), o2 = t$2.litNonce;
1267
- o2 !== void 0 && n3.setAttribute("nonce", o2), n3.textContent = e2.cssText, s2.appendChild(n3);
1259
+ void 0 !== o2 && n3.setAttribute("nonce", o2), n3.textContent = e2.cssText, s2.appendChild(n3);
1268
1260
  });
1269
1261
  }, c$4 = e$5 ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => {
1270
1262
  let e2 = "";
@@ -1285,17 +1277,17 @@ const e$4 = window, r$4 = e$4.trustedTypes, h$3 = r$4 ? r$4.emptyScript : "", o$
1285
1277
  break;
1286
1278
  case Object:
1287
1279
  case Array:
1288
- t2 = t2 == null ? t2 : JSON.stringify(t2);
1280
+ t2 = null == t2 ? t2 : JSON.stringify(t2);
1289
1281
  }
1290
1282
  return t2;
1291
1283
  }, fromAttribute(t2, i2) {
1292
1284
  let s2 = t2;
1293
1285
  switch (i2) {
1294
1286
  case Boolean:
1295
- s2 = t2 !== null;
1287
+ s2 = null !== t2;
1296
1288
  break;
1297
1289
  case Number:
1298
- s2 = t2 === null ? null : Number(t2);
1290
+ s2 = null === t2 ? null : Number(t2);
1299
1291
  break;
1300
1292
  case Object:
1301
1293
  case Array:
@@ -1313,20 +1305,20 @@ class d$1 extends HTMLElement {
1313
1305
  }
1314
1306
  static addInitializer(t2) {
1315
1307
  var i2;
1316
- this.finalize(), ((i2 = this.h) !== null && i2 !== void 0 ? i2 : this.h = []).push(t2);
1308
+ this.finalize(), (null !== (i2 = this.h) && void 0 !== i2 ? i2 : this.h = []).push(t2);
1317
1309
  }
1318
1310
  static get observedAttributes() {
1319
1311
  this.finalize();
1320
1312
  const t2 = [];
1321
1313
  return this.elementProperties.forEach((i2, s2) => {
1322
1314
  const e2 = this._$Ep(s2, i2);
1323
- e2 !== void 0 && (this._$Ev.set(e2, s2), t2.push(e2));
1315
+ void 0 !== e2 && (this._$Ev.set(e2, s2), t2.push(e2));
1324
1316
  }), t2;
1325
1317
  }
1326
1318
  static createProperty(t2, i2 = l$5) {
1327
1319
  if (i2.state && (i2.attribute = false), this.finalize(), this.elementProperties.set(t2, i2), !i2.noAccessor && !this.prototype.hasOwnProperty(t2)) {
1328
- const s2 = typeof t2 == "symbol" ? Symbol() : "__" + t2, e2 = this.getPropertyDescriptor(t2, s2, i2);
1329
- e2 !== void 0 && Object.defineProperty(this.prototype, t2, e2);
1320
+ const s2 = "symbol" == typeof t2 ? Symbol() : "__" + t2, e2 = this.getPropertyDescriptor(t2, s2, i2);
1321
+ void 0 !== e2 && Object.defineProperty(this.prototype, t2, e2);
1330
1322
  }
1331
1323
  }
1332
1324
  static getPropertyDescriptor(t2, i2, s2) {
@@ -1345,7 +1337,7 @@ class d$1 extends HTMLElement {
1345
1337
  return false;
1346
1338
  this.finalized = true;
1347
1339
  const t2 = Object.getPrototypeOf(this);
1348
- if (t2.finalize(), t2.h !== void 0 && (this.h = [...t2.h]), this.elementProperties = new Map(t2.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
1340
+ if (t2.finalize(), void 0 !== t2.h && (this.h = [...t2.h]), this.elementProperties = new Map(t2.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
1349
1341
  const t3 = this.properties, i2 = [...Object.getOwnPropertyNames(t3), ...Object.getOwnPropertySymbols(t3)];
1350
1342
  for (const s2 of i2)
1351
1343
  this.createProperty(s2, t3[s2]);
@@ -1359,24 +1351,24 @@ class d$1 extends HTMLElement {
1359
1351
  for (const i3 of e2)
1360
1352
  s2.unshift(c$4(i3));
1361
1353
  } else
1362
- i2 !== void 0 && s2.push(c$4(i2));
1354
+ void 0 !== i2 && s2.push(c$4(i2));
1363
1355
  return s2;
1364
1356
  }
1365
1357
  static _$Ep(t2, i2) {
1366
1358
  const s2 = i2.attribute;
1367
- return s2 === false ? void 0 : typeof s2 == "string" ? s2 : typeof t2 == "string" ? t2.toLowerCase() : void 0;
1359
+ return false === s2 ? void 0 : "string" == typeof s2 ? s2 : "string" == typeof t2 ? t2.toLowerCase() : void 0;
1368
1360
  }
1369
1361
  u() {
1370
1362
  var t2;
1371
- this._$E_ = new Promise((t3) => this.enableUpdating = t3), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t2 = this.constructor.h) === null || t2 === void 0 || t2.forEach((t3) => t3(this));
1363
+ this._$E_ = new Promise((t3) => this.enableUpdating = t3), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), null === (t2 = this.constructor.h) || void 0 === t2 || t2.forEach((t3) => t3(this));
1372
1364
  }
1373
1365
  addController(t2) {
1374
1366
  var i2, s2;
1375
- ((i2 = this._$ES) !== null && i2 !== void 0 ? i2 : this._$ES = []).push(t2), this.renderRoot !== void 0 && this.isConnected && ((s2 = t2.hostConnected) === null || s2 === void 0 || s2.call(t2));
1367
+ (null !== (i2 = this._$ES) && void 0 !== i2 ? i2 : this._$ES = []).push(t2), void 0 !== this.renderRoot && this.isConnected && (null === (s2 = t2.hostConnected) || void 0 === s2 || s2.call(t2));
1376
1368
  }
1377
1369
  removeController(t2) {
1378
1370
  var i2;
1379
- (i2 = this._$ES) === null || i2 === void 0 || i2.splice(this._$ES.indexOf(t2) >>> 0, 1);
1371
+ null === (i2 = this._$ES) || void 0 === i2 || i2.splice(this._$ES.indexOf(t2) >>> 0, 1);
1380
1372
  }
1381
1373
  _$Eg() {
1382
1374
  this.constructor.elementProperties.forEach((t2, i2) => {
@@ -1385,23 +1377,23 @@ class d$1 extends HTMLElement {
1385
1377
  }
1386
1378
  createRenderRoot() {
1387
1379
  var t2;
1388
- const s2 = (t2 = this.shadowRoot) !== null && t2 !== void 0 ? t2 : this.attachShadow(this.constructor.shadowRootOptions);
1380
+ const s2 = null !== (t2 = this.shadowRoot) && void 0 !== t2 ? t2 : this.attachShadow(this.constructor.shadowRootOptions);
1389
1381
  return S$2(s2, this.constructor.elementStyles), s2;
1390
1382
  }
1391
1383
  connectedCallback() {
1392
1384
  var t2;
1393
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), (t2 = this._$ES) === null || t2 === void 0 || t2.forEach((t3) => {
1385
+ void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t2 = this._$ES) || void 0 === t2 || t2.forEach((t3) => {
1394
1386
  var i2;
1395
- return (i2 = t3.hostConnected) === null || i2 === void 0 ? void 0 : i2.call(t3);
1387
+ return null === (i2 = t3.hostConnected) || void 0 === i2 ? void 0 : i2.call(t3);
1396
1388
  });
1397
1389
  }
1398
1390
  enableUpdating(t2) {
1399
1391
  }
1400
1392
  disconnectedCallback() {
1401
1393
  var t2;
1402
- (t2 = this._$ES) === null || t2 === void 0 || t2.forEach((t3) => {
1394
+ null === (t2 = this._$ES) || void 0 === t2 || t2.forEach((t3) => {
1403
1395
  var i2;
1404
- return (i2 = t3.hostDisconnected) === null || i2 === void 0 ? void 0 : i2.call(t3);
1396
+ return null === (i2 = t3.hostDisconnected) || void 0 === i2 ? void 0 : i2.call(t3);
1405
1397
  });
1406
1398
  }
1407
1399
  attributeChangedCallback(t2, i2, s2) {
@@ -1410,22 +1402,22 @@ class d$1 extends HTMLElement {
1410
1402
  _$EO(t2, i2, s2 = l$5) {
1411
1403
  var e2;
1412
1404
  const r2 = this.constructor._$Ep(t2, s2);
1413
- if (r2 !== void 0 && s2.reflect === true) {
1414
- const h2 = (((e2 = s2.converter) === null || e2 === void 0 ? void 0 : e2.toAttribute) !== void 0 ? s2.converter : n$4).toAttribute(i2, s2.type);
1415
- this._$El = t2, h2 == null ? this.removeAttribute(r2) : this.setAttribute(r2, h2), this._$El = null;
1405
+ if (void 0 !== r2 && true === s2.reflect) {
1406
+ const h2 = (void 0 !== (null === (e2 = s2.converter) || void 0 === e2 ? void 0 : e2.toAttribute) ? s2.converter : n$4).toAttribute(i2, s2.type);
1407
+ this._$El = t2, null == h2 ? this.removeAttribute(r2) : this.setAttribute(r2, h2), this._$El = null;
1416
1408
  }
1417
1409
  }
1418
1410
  _$AK(t2, i2) {
1419
1411
  var s2;
1420
1412
  const e2 = this.constructor, r2 = e2._$Ev.get(t2);
1421
- if (r2 !== void 0 && this._$El !== r2) {
1422
- const t3 = e2.getPropertyOptions(r2), h2 = typeof t3.converter == "function" ? { fromAttribute: t3.converter } : ((s2 = t3.converter) === null || s2 === void 0 ? void 0 : s2.fromAttribute) !== void 0 ? t3.converter : n$4;
1413
+ if (void 0 !== r2 && this._$El !== r2) {
1414
+ const t3 = e2.getPropertyOptions(r2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== (null === (s2 = t3.converter) || void 0 === s2 ? void 0 : s2.fromAttribute) ? t3.converter : n$4;
1423
1415
  this._$El = r2, this[r2] = h2.fromAttribute(i2, t3.type), this._$El = null;
1424
1416
  }
1425
1417
  }
1426
1418
  requestUpdate(t2, i2, s2) {
1427
1419
  let e2 = true;
1428
- t2 !== void 0 && (((s2 = s2 || this.constructor.getPropertyOptions(t2)).hasChanged || a$2)(this[t2], i2) ? (this._$AL.has(t2) || this._$AL.set(t2, i2), s2.reflect === true && this._$El !== t2 && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t2, s2))) : e2 = false), !this.isUpdatePending && e2 && (this._$E_ = this._$Ej());
1420
+ void 0 !== t2 && (((s2 = s2 || this.constructor.getPropertyOptions(t2)).hasChanged || a$2)(this[t2], i2) ? (this._$AL.has(t2) || this._$AL.set(t2, i2), true === s2.reflect && this._$El !== t2 && (void 0 === this._$EC && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t2, s2))) : e2 = false), !this.isUpdatePending && e2 && (this._$E_ = this._$Ej());
1429
1421
  }
1430
1422
  async _$Ej() {
1431
1423
  this.isUpdatePending = true;
@@ -1435,7 +1427,7 @@ class d$1 extends HTMLElement {
1435
1427
  Promise.reject(t3);
1436
1428
  }
1437
1429
  const t2 = this.scheduleUpdate();
1438
- return t2 != null && await t2, !this.isUpdatePending;
1430
+ return null != t2 && await t2, !this.isUpdatePending;
1439
1431
  }
1440
1432
  scheduleUpdate() {
1441
1433
  return this.performUpdate();
@@ -1448,9 +1440,9 @@ class d$1 extends HTMLElement {
1448
1440
  let i2 = false;
1449
1441
  const s2 = this._$AL;
1450
1442
  try {
1451
- i2 = this.shouldUpdate(s2), i2 ? (this.willUpdate(s2), (t2 = this._$ES) === null || t2 === void 0 || t2.forEach((t3) => {
1443
+ i2 = this.shouldUpdate(s2), i2 ? (this.willUpdate(s2), null === (t2 = this._$ES) || void 0 === t2 || t2.forEach((t3) => {
1452
1444
  var i3;
1453
- return (i3 = t3.hostUpdate) === null || i3 === void 0 ? void 0 : i3.call(t3);
1445
+ return null === (i3 = t3.hostUpdate) || void 0 === i3 ? void 0 : i3.call(t3);
1454
1446
  }), this.update(s2)) : this._$Ek();
1455
1447
  } catch (t3) {
1456
1448
  throw i2 = false, this._$Ek(), t3;
@@ -1461,9 +1453,9 @@ class d$1 extends HTMLElement {
1461
1453
  }
1462
1454
  _$AE(t2) {
1463
1455
  var i2;
1464
- (i2 = this._$ES) === null || i2 === void 0 || i2.forEach((t3) => {
1456
+ null === (i2 = this._$ES) || void 0 === i2 || i2.forEach((t3) => {
1465
1457
  var i3;
1466
- return (i3 = t3.hostUpdated) === null || i3 === void 0 ? void 0 : i3.call(t3);
1458
+ return null === (i3 = t3.hostUpdated) || void 0 === i3 ? void 0 : i3.call(t3);
1467
1459
  }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
1468
1460
  }
1469
1461
  _$Ek() {
@@ -1479,39 +1471,39 @@ class d$1 extends HTMLElement {
1479
1471
  return true;
1480
1472
  }
1481
1473
  update(t2) {
1482
- this._$EC !== void 0 && (this._$EC.forEach((t3, i2) => this._$EO(i2, this[i2], t3)), this._$EC = void 0), this._$Ek();
1474
+ void 0 !== this._$EC && (this._$EC.forEach((t3, i2) => this._$EO(i2, this[i2], t3)), this._$EC = void 0), this._$Ek();
1483
1475
  }
1484
1476
  updated(t2) {
1485
1477
  }
1486
1478
  firstUpdated(t2) {
1487
1479
  }
1488
1480
  }
1489
- d$1.finalized = true, d$1.elementProperties = /* @__PURE__ */ new Map(), d$1.elementStyles = [], d$1.shadowRootOptions = { mode: "open" }, o$6 == null || o$6({ ReactiveElement: d$1 }), ((s$5 = e$4.reactiveElementVersions) !== null && s$5 !== void 0 ? s$5 : e$4.reactiveElementVersions = []).push("1.4.2");
1481
+ d$1.finalized = true, d$1.elementProperties = /* @__PURE__ */ new Map(), d$1.elementStyles = [], d$1.shadowRootOptions = { mode: "open" }, null == o$6 || o$6({ ReactiveElement: d$1 }), (null !== (s$5 = e$4.reactiveElementVersions) && void 0 !== s$5 ? s$5 : e$4.reactiveElementVersions = []).push("1.6.1");
1490
1482
  /**
1491
1483
  * @license
1492
1484
  * Copyright 2017 Google LLC
1493
1485
  * SPDX-License-Identifier: BSD-3-Clause
1494
1486
  */
1495
1487
  var t$1;
1496
- const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$5 = `lit$${(Math.random() + "").slice(9)}$`, n$3 = "?" + o$5, l$4 = `<${n$3}>`, h$2 = document, r$3 = (t2 = "") => h$2.createComment(t2), d = (t2) => t2 === null || typeof t2 != "object" && typeof t2 != "function", u$2 = Array.isArray, c$3 = (t2) => u$2(t2) || typeof (t2 == null ? void 0 : t2[Symbol.iterator]) == "function", v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, a$1 = /-->/g, f$2 = />/g, _ = RegExp(`>|[
1488
+ const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$5 = `lit$${(Math.random() + "").slice(9)}$`, n$3 = "?" + o$5, l$4 = `<${n$3}>`, h$2 = document, r$3 = (t2 = "") => h$2.createComment(t2), d = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, u$2 = Array.isArray, c$3 = (t2) => u$2(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, a$1 = /-->/g, f$2 = />/g, _ = RegExp(`>|[
1497
1489
  \f\r](?:([^\\s"'>=/]+)([
1498
1490
  \f\r]*=[
1499
1491
  \f\r]*(?:[^
1500
1492
  \f\r"'\`<>=]|("|')|))|$)`, "g"), m$1 = /'/g, p$2 = /"/g, $$1 = /^(?:script|style|textarea|title)$/i, g$1 = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), y = g$1(1), x$1 = Symbol.for("lit-noChange"), b$1 = Symbol.for("lit-nothing"), T = /* @__PURE__ */ new WeakMap(), A$1 = h$2.createTreeWalker(h$2, 129, null, false), E = (t2, i2) => {
1501
1493
  const s2 = t2.length - 1, n2 = [];
1502
- let h2, r2 = i2 === 2 ? "<svg>" : "", d2 = v;
1494
+ let h2, r2 = 2 === i2 ? "<svg>" : "", d2 = v;
1503
1495
  for (let i3 = 0; i3 < s2; i3++) {
1504
1496
  const s3 = t2[i3];
1505
1497
  let e2, u3, c2 = -1, g2 = 0;
1506
- for (; g2 < s3.length && (d2.lastIndex = g2, u3 = d2.exec(s3), u3 !== null); )
1507
- g2 = d2.lastIndex, d2 === v ? u3[1] === "!--" ? d2 = a$1 : u3[1] !== void 0 ? d2 = f$2 : u3[2] !== void 0 ? ($$1.test(u3[2]) && (h2 = RegExp("</" + u3[2], "g")), d2 = _) : u3[3] !== void 0 && (d2 = _) : d2 === _ ? u3[0] === ">" ? (d2 = h2 != null ? h2 : v, c2 = -1) : u3[1] === void 0 ? c2 = -2 : (c2 = d2.lastIndex - u3[2].length, e2 = u3[1], d2 = u3[3] === void 0 ? _ : u3[3] === '"' ? p$2 : m$1) : d2 === p$2 || d2 === m$1 ? d2 = _ : d2 === a$1 || d2 === f$2 ? d2 = v : (d2 = _, h2 = void 0);
1498
+ for (; g2 < s3.length && (d2.lastIndex = g2, u3 = d2.exec(s3), null !== u3); )
1499
+ g2 = d2.lastIndex, d2 === v ? "!--" === u3[1] ? d2 = a$1 : void 0 !== u3[1] ? d2 = f$2 : void 0 !== u3[2] ? ($$1.test(u3[2]) && (h2 = RegExp("</" + u3[2], "g")), d2 = _) : void 0 !== u3[3] && (d2 = _) : d2 === _ ? ">" === u3[0] ? (d2 = null != h2 ? h2 : v, c2 = -1) : void 0 === u3[1] ? c2 = -2 : (c2 = d2.lastIndex - u3[2].length, e2 = u3[1], d2 = void 0 === u3[3] ? _ : '"' === u3[3] ? p$2 : m$1) : d2 === p$2 || d2 === m$1 ? d2 = _ : d2 === a$1 || d2 === f$2 ? d2 = v : (d2 = _, h2 = void 0);
1508
1500
  const y2 = d2 === _ && t2[i3 + 1].startsWith("/>") ? " " : "";
1509
- r2 += d2 === v ? s3 + l$4 : c2 >= 0 ? (n2.push(e2), s3.slice(0, c2) + "$lit$" + s3.slice(c2) + o$5 + y2) : s3 + o$5 + (c2 === -2 ? (n2.push(void 0), i3) : y2);
1501
+ r2 += d2 === v ? s3 + l$4 : c2 >= 0 ? (n2.push(e2), s3.slice(0, c2) + "$lit$" + s3.slice(c2) + o$5 + y2) : s3 + o$5 + (-2 === c2 ? (n2.push(void 0), i3) : y2);
1510
1502
  }
1511
- const u2 = r2 + (t2[s2] || "<?>") + (i2 === 2 ? "</svg>" : "");
1503
+ const u2 = r2 + (t2[s2] || "<?>") + (2 === i2 ? "</svg>" : "");
1512
1504
  if (!Array.isArray(t2) || !t2.hasOwnProperty("raw"))
1513
1505
  throw Error("invalid template strings array");
1514
- return [e$3 !== void 0 ? e$3.createHTML(u2) : u2, n2];
1506
+ return [void 0 !== e$3 ? e$3.createHTML(u2) : u2, n2];
1515
1507
  };
1516
1508
  class C {
1517
1509
  constructor({ strings: t2, _$litType$: i2 }, e2) {
@@ -1519,20 +1511,20 @@ class C {
1519
1511
  this.parts = [];
1520
1512
  let h2 = 0, d2 = 0;
1521
1513
  const u2 = t2.length - 1, c2 = this.parts, [v2, a2] = E(t2, i2);
1522
- if (this.el = C.createElement(v2, e2), A$1.currentNode = this.el.content, i2 === 2) {
1514
+ if (this.el = C.createElement(v2, e2), A$1.currentNode = this.el.content, 2 === i2) {
1523
1515
  const t3 = this.el.content, i3 = t3.firstChild;
1524
1516
  i3.remove(), t3.append(...i3.childNodes);
1525
1517
  }
1526
- for (; (l2 = A$1.nextNode()) !== null && c2.length < u2; ) {
1527
- if (l2.nodeType === 1) {
1518
+ for (; null !== (l2 = A$1.nextNode()) && c2.length < u2; ) {
1519
+ if (1 === l2.nodeType) {
1528
1520
  if (l2.hasAttributes()) {
1529
1521
  const t3 = [];
1530
1522
  for (const i3 of l2.getAttributeNames())
1531
1523
  if (i3.endsWith("$lit$") || i3.startsWith(o$5)) {
1532
1524
  const s2 = a2[d2++];
1533
- if (t3.push(i3), s2 !== void 0) {
1525
+ if (t3.push(i3), void 0 !== s2) {
1534
1526
  const t4 = l2.getAttribute(s2.toLowerCase() + "$lit$").split(o$5), i4 = /([.?@])?(.*)/.exec(s2);
1535
- c2.push({ type: 1, index: h2, name: i4[2], strings: t4, ctor: i4[1] === "." ? M : i4[1] === "?" ? k : i4[1] === "@" ? H : S$1 });
1527
+ c2.push({ type: 1, index: h2, name: i4[2], strings: t4, ctor: "." === i4[1] ? M : "?" === i4[1] ? k : "@" === i4[1] ? H : S$1 });
1536
1528
  } else
1537
1529
  c2.push({ type: 6, index: h2 });
1538
1530
  }
@@ -1548,12 +1540,12 @@ class C {
1548
1540
  l2.append(t3[i3], r$3());
1549
1541
  }
1550
1542
  }
1551
- } else if (l2.nodeType === 8)
1543
+ } else if (8 === l2.nodeType)
1552
1544
  if (l2.data === n$3)
1553
1545
  c2.push({ type: 2, index: h2 });
1554
1546
  else {
1555
1547
  let t3 = -1;
1556
- for (; (t3 = l2.data.indexOf(o$5, t3 + 1)) !== -1; )
1548
+ for (; -1 !== (t3 = l2.data.indexOf(o$5, t3 + 1)); )
1557
1549
  c2.push({ type: 7, index: h2 }), t3 += o$5.length - 1;
1558
1550
  }
1559
1551
  h2++;
@@ -1568,9 +1560,9 @@ function P(t2, i2, s2 = t2, e2) {
1568
1560
  var o2, n2, l2, h2;
1569
1561
  if (i2 === x$1)
1570
1562
  return i2;
1571
- let r2 = e2 !== void 0 ? (o2 = s2._$Co) === null || o2 === void 0 ? void 0 : o2[e2] : s2._$Cl;
1563
+ let r2 = void 0 !== e2 ? null === (o2 = s2._$Co) || void 0 === o2 ? void 0 : o2[e2] : s2._$Cl;
1572
1564
  const u2 = d(i2) ? void 0 : i2._$litDirective$;
1573
- return (r2 == null ? void 0 : r2.constructor) !== u2 && ((n2 = r2 == null ? void 0 : r2._$AO) === null || n2 === void 0 || n2.call(r2, false), u2 === void 0 ? r2 = void 0 : (r2 = new u2(t2), r2._$AT(t2, s2, e2)), e2 !== void 0 ? ((l2 = (h2 = s2)._$Co) !== null && l2 !== void 0 ? l2 : h2._$Co = [])[e2] = r2 : s2._$Cl = r2), r2 !== void 0 && (i2 = P(t2, r2._$AS(t2, i2.values), r2, e2)), i2;
1565
+ return (null == r2 ? void 0 : r2.constructor) !== u2 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === u2 ? r2 = void 0 : (r2 = new u2(t2), r2._$AT(t2, s2, e2)), void 0 !== e2 ? (null !== (l2 = (h2 = s2)._$Co) && void 0 !== l2 ? l2 : h2._$Co = [])[e2] = r2 : s2._$Cl = r2), void 0 !== r2 && (i2 = P(t2, r2._$AS(t2, i2.values), r2, e2)), i2;
1574
1566
  }
1575
1567
  class V {
1576
1568
  constructor(t2, i2) {
@@ -1584,37 +1576,37 @@ class V {
1584
1576
  }
1585
1577
  v(t2) {
1586
1578
  var i2;
1587
- const { el: { content: s2 }, parts: e2 } = this._$AD, o2 = ((i2 = t2 == null ? void 0 : t2.creationScope) !== null && i2 !== void 0 ? i2 : h$2).importNode(s2, true);
1579
+ const { el: { content: s2 }, parts: e2 } = this._$AD, o2 = (null !== (i2 = null == t2 ? void 0 : t2.creationScope) && void 0 !== i2 ? i2 : h$2).importNode(s2, true);
1588
1580
  A$1.currentNode = o2;
1589
1581
  let n2 = A$1.nextNode(), l2 = 0, r2 = 0, d2 = e2[0];
1590
- for (; d2 !== void 0; ) {
1582
+ for (; void 0 !== d2; ) {
1591
1583
  if (l2 === d2.index) {
1592
1584
  let i3;
1593
- d2.type === 2 ? i3 = new N(n2, n2.nextSibling, this, t2) : d2.type === 1 ? i3 = new d2.ctor(n2, d2.name, d2.strings, this, t2) : d2.type === 6 && (i3 = new I(n2, this, t2)), this.u.push(i3), d2 = e2[++r2];
1585
+ 2 === d2.type ? i3 = new N(n2, n2.nextSibling, this, t2) : 1 === d2.type ? i3 = new d2.ctor(n2, d2.name, d2.strings, this, t2) : 6 === d2.type && (i3 = new I(n2, this, t2)), this.u.push(i3), d2 = e2[++r2];
1594
1586
  }
1595
- l2 !== (d2 == null ? void 0 : d2.index) && (n2 = A$1.nextNode(), l2++);
1587
+ l2 !== (null == d2 ? void 0 : d2.index) && (n2 = A$1.nextNode(), l2++);
1596
1588
  }
1597
1589
  return o2;
1598
1590
  }
1599
1591
  p(t2) {
1600
1592
  let i2 = 0;
1601
1593
  for (const s2 of this.u)
1602
- s2 !== void 0 && (s2.strings !== void 0 ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
1594
+ void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
1603
1595
  }
1604
1596
  }
1605
1597
  class N {
1606
1598
  constructor(t2, i2, s2, e2) {
1607
1599
  var o2;
1608
- this.type = 2, this._$AH = b$1, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cm = (o2 = e2 == null ? void 0 : e2.isConnected) === null || o2 === void 0 || o2;
1600
+ this.type = 2, this._$AH = b$1, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cm = null === (o2 = null == e2 ? void 0 : e2.isConnected) || void 0 === o2 || o2;
1609
1601
  }
1610
1602
  get _$AU() {
1611
1603
  var t2, i2;
1612
- return (i2 = (t2 = this._$AM) === null || t2 === void 0 ? void 0 : t2._$AU) !== null && i2 !== void 0 ? i2 : this._$Cm;
1604
+ return null !== (i2 = null === (t2 = this._$AM) || void 0 === t2 ? void 0 : t2._$AU) && void 0 !== i2 ? i2 : this._$Cm;
1613
1605
  }
1614
1606
  get parentNode() {
1615
1607
  let t2 = this._$AA.parentNode;
1616
1608
  const i2 = this._$AM;
1617
- return i2 !== void 0 && t2.nodeType === 11 && (t2 = i2.parentNode), t2;
1609
+ return void 0 !== i2 && 11 === t2.nodeType && (t2 = i2.parentNode), t2;
1618
1610
  }
1619
1611
  get startNode() {
1620
1612
  return this._$AA;
@@ -1623,7 +1615,7 @@ class N {
1623
1615
  return this._$AB;
1624
1616
  }
1625
1617
  _$AI(t2, i2 = this) {
1626
- t2 = P(this, t2, i2), d(t2) ? t2 === b$1 || t2 == null || t2 === "" ? (this._$AH !== b$1 && this._$AR(), this._$AH = b$1) : t2 !== this._$AH && t2 !== x$1 && this.g(t2) : t2._$litType$ !== void 0 ? this.$(t2) : t2.nodeType !== void 0 ? this.T(t2) : c$3(t2) ? this.k(t2) : this.g(t2);
1618
+ t2 = P(this, t2, i2), d(t2) ? t2 === b$1 || null == t2 || "" === t2 ? (this._$AH !== b$1 && this._$AR(), this._$AH = b$1) : t2 !== this._$AH && t2 !== x$1 && this.g(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : c$3(t2) ? this.k(t2) : this.g(t2);
1627
1619
  }
1628
1620
  O(t2, i2 = this._$AB) {
1629
1621
  return this._$AA.parentNode.insertBefore(t2, i2);
@@ -1636,8 +1628,8 @@ class N {
1636
1628
  }
1637
1629
  $(t2) {
1638
1630
  var i2;
1639
- const { values: s2, _$litType$: e2 } = t2, o2 = typeof e2 == "number" ? this._$AC(t2) : (e2.el === void 0 && (e2.el = C.createElement(e2.h, this.options)), e2);
1640
- if (((i2 = this._$AH) === null || i2 === void 0 ? void 0 : i2._$AD) === o2)
1631
+ const { values: s2, _$litType$: e2 } = t2, o2 = "number" == typeof e2 ? this._$AC(t2) : (void 0 === e2.el && (e2.el = C.createElement(e2.h, this.options)), e2);
1632
+ if ((null === (i2 = this._$AH) || void 0 === i2 ? void 0 : i2._$AD) === o2)
1641
1633
  this._$AH.p(s2);
1642
1634
  else {
1643
1635
  const t3 = new V(o2, this), i3 = t3.v(this.options);
@@ -1646,7 +1638,7 @@ class N {
1646
1638
  }
1647
1639
  _$AC(t2) {
1648
1640
  let i2 = T.get(t2.strings);
1649
- return i2 === void 0 && T.set(t2.strings, i2 = new C(t2)), i2;
1641
+ return void 0 === i2 && T.set(t2.strings, i2 = new C(t2)), i2;
1650
1642
  }
1651
1643
  k(t2) {
1652
1644
  u$2(this._$AH) || (this._$AH = [], this._$AR());
@@ -1658,19 +1650,19 @@ class N {
1658
1650
  }
1659
1651
  _$AR(t2 = this._$AA.nextSibling, i2) {
1660
1652
  var s2;
1661
- for ((s2 = this._$AP) === null || s2 === void 0 || s2.call(this, false, true, i2); t2 && t2 !== this._$AB; ) {
1653
+ for (null === (s2 = this._$AP) || void 0 === s2 || s2.call(this, false, true, i2); t2 && t2 !== this._$AB; ) {
1662
1654
  const i3 = t2.nextSibling;
1663
1655
  t2.remove(), t2 = i3;
1664
1656
  }
1665
1657
  }
1666
1658
  setConnected(t2) {
1667
1659
  var i2;
1668
- this._$AM === void 0 && (this._$Cm = t2, (i2 = this._$AP) === null || i2 === void 0 || i2.call(this, t2));
1660
+ void 0 === this._$AM && (this._$Cm = t2, null === (i2 = this._$AP) || void 0 === i2 || i2.call(this, t2));
1669
1661
  }
1670
1662
  }
1671
1663
  class S$1 {
1672
1664
  constructor(t2, i2, s2, e2, o2) {
1673
- this.type = 1, this._$AH = b$1, this._$AN = void 0, this.element = t2, this.name = i2, this._$AM = e2, this.options = o2, s2.length > 2 || s2[0] !== "" || s2[1] !== "" ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = b$1;
1665
+ this.type = 1, this._$AH = b$1, this._$AN = void 0, this.element = t2, this.name = i2, this._$AM = e2, this.options = o2, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = b$1;
1674
1666
  }
1675
1667
  get tagName() {
1676
1668
  return this.element.tagName;
@@ -1681,18 +1673,18 @@ class S$1 {
1681
1673
  _$AI(t2, i2 = this, s2, e2) {
1682
1674
  const o2 = this.strings;
1683
1675
  let n2 = false;
1684
- if (o2 === void 0)
1676
+ if (void 0 === o2)
1685
1677
  t2 = P(this, t2, i2, 0), n2 = !d(t2) || t2 !== this._$AH && t2 !== x$1, n2 && (this._$AH = t2);
1686
1678
  else {
1687
1679
  const e3 = t2;
1688
1680
  let l2, h2;
1689
1681
  for (t2 = o2[0], l2 = 0; l2 < o2.length - 1; l2++)
1690
- h2 = P(this, e3[s2 + l2], i2, l2), h2 === x$1 && (h2 = this._$AH[l2]), n2 || (n2 = !d(h2) || h2 !== this._$AH[l2]), h2 === b$1 ? t2 = b$1 : t2 !== b$1 && (t2 += (h2 != null ? h2 : "") + o2[l2 + 1]), this._$AH[l2] = h2;
1682
+ h2 = P(this, e3[s2 + l2], i2, l2), h2 === x$1 && (h2 = this._$AH[l2]), n2 || (n2 = !d(h2) || h2 !== this._$AH[l2]), h2 === b$1 ? t2 = b$1 : t2 !== b$1 && (t2 += (null != h2 ? h2 : "") + o2[l2 + 1]), this._$AH[l2] = h2;
1691
1683
  }
1692
1684
  n2 && !e2 && this.j(t2);
1693
1685
  }
1694
1686
  j(t2) {
1695
- t2 === b$1 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 != null ? t2 : "");
1687
+ t2 === b$1 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
1696
1688
  }
1697
1689
  }
1698
1690
  class M extends S$1 {
@@ -1718,14 +1710,14 @@ class H extends S$1 {
1718
1710
  }
1719
1711
  _$AI(t2, i2 = this) {
1720
1712
  var s2;
1721
- if ((t2 = (s2 = P(this, t2, i2, 0)) !== null && s2 !== void 0 ? s2 : b$1) === x$1)
1713
+ if ((t2 = null !== (s2 = P(this, t2, i2, 0)) && void 0 !== s2 ? s2 : b$1) === x$1)
1722
1714
  return;
1723
1715
  const e2 = this._$AH, o2 = t2 === b$1 && e2 !== b$1 || t2.capture !== e2.capture || t2.once !== e2.once || t2.passive !== e2.passive, n2 = t2 !== b$1 && (e2 === b$1 || o2);
1724
1716
  o2 && this.element.removeEventListener(this.name, this, e2), n2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
1725
1717
  }
1726
1718
  handleEvent(t2) {
1727
1719
  var i2, s2;
1728
- typeof this._$AH == "function" ? this._$AH.call((s2 = (i2 = this.options) === null || i2 === void 0 ? void 0 : i2.host) !== null && s2 !== void 0 ? s2 : this.element, t2) : this._$AH.handleEvent(t2);
1720
+ "function" == typeof this._$AH ? this._$AH.call(null !== (s2 = null === (i2 = this.options) || void 0 === i2 ? void 0 : i2.host) && void 0 !== s2 ? s2 : this.element, t2) : this._$AH.handleEvent(t2);
1729
1721
  }
1730
1722
  }
1731
1723
  class I {
@@ -1740,14 +1732,14 @@ class I {
1740
1732
  }
1741
1733
  }
1742
1734
  const L = { P: "$lit$", A: o$5, M: n$3, C: 1, L: E, R: V, D: c$3, V: P, I: N, H: S$1, N: k, U: H, B: M, F: I }, z = i$3.litHtmlPolyfillSupport;
1743
- z == null || z(C, N), ((t$1 = i$3.litHtmlVersions) !== null && t$1 !== void 0 ? t$1 : i$3.litHtmlVersions = []).push("2.4.0");
1735
+ null == z || z(C, N), (null !== (t$1 = i$3.litHtmlVersions) && void 0 !== t$1 ? t$1 : i$3.litHtmlVersions = []).push("2.6.1");
1744
1736
  const Z = (t2, i2, s2) => {
1745
1737
  var e2, o2;
1746
- const n2 = (e2 = s2 == null ? void 0 : s2.renderBefore) !== null && e2 !== void 0 ? e2 : i2;
1738
+ const n2 = null !== (e2 = null == s2 ? void 0 : s2.renderBefore) && void 0 !== e2 ? e2 : i2;
1747
1739
  let l2 = n2._$litPart$;
1748
- if (l2 === void 0) {
1749
- const t3 = (o2 = s2 == null ? void 0 : s2.renderBefore) !== null && o2 !== void 0 ? o2 : null;
1750
- n2._$litPart$ = l2 = new N(i2.insertBefore(r$3(), t3), t3, void 0, s2 != null ? s2 : {});
1740
+ if (void 0 === l2) {
1741
+ const t3 = null !== (o2 = null == s2 ? void 0 : s2.renderBefore) && void 0 !== o2 ? o2 : null;
1742
+ n2._$litPart$ = l2 = new N(i2.insertBefore(r$3(), t3), t3, void 0, null != s2 ? s2 : {});
1751
1743
  }
1752
1744
  return l2._$AI(t2), l2;
1753
1745
  };
@@ -1764,7 +1756,7 @@ class s$3 extends d$1 {
1764
1756
  createRenderRoot() {
1765
1757
  var t2, e2;
1766
1758
  const i2 = super.createRenderRoot();
1767
- return (t2 = (e2 = this.renderOptions).renderBefore) !== null && t2 !== void 0 || (e2.renderBefore = i2.firstChild), i2;
1759
+ return null !== (t2 = (e2 = this.renderOptions).renderBefore) && void 0 !== t2 || (e2.renderBefore = i2.firstChild), i2;
1768
1760
  }
1769
1761
  update(t2) {
1770
1762
  const i2 = this.render();
@@ -1772,20 +1764,20 @@ class s$3 extends d$1 {
1772
1764
  }
1773
1765
  connectedCallback() {
1774
1766
  var t2;
1775
- super.connectedCallback(), (t2 = this._$Do) === null || t2 === void 0 || t2.setConnected(true);
1767
+ super.connectedCallback(), null === (t2 = this._$Do) || void 0 === t2 || t2.setConnected(true);
1776
1768
  }
1777
1769
  disconnectedCallback() {
1778
1770
  var t2;
1779
- super.disconnectedCallback(), (t2 = this._$Do) === null || t2 === void 0 || t2.setConnected(false);
1771
+ super.disconnectedCallback(), null === (t2 = this._$Do) || void 0 === t2 || t2.setConnected(false);
1780
1772
  }
1781
1773
  render() {
1782
1774
  return x$1;
1783
1775
  }
1784
1776
  }
1785
- s$3.finalized = true, s$3._$litElement$ = true, (l$3 = globalThis.litElementHydrateSupport) === null || l$3 === void 0 || l$3.call(globalThis, { LitElement: s$3 });
1777
+ s$3.finalized = true, s$3._$litElement$ = true, null === (l$3 = globalThis.litElementHydrateSupport) || void 0 === l$3 || l$3.call(globalThis, { LitElement: s$3 });
1786
1778
  const n$2 = globalThis.litElementPolyfillSupport;
1787
- n$2 == null || n$2({ LitElement: s$3 });
1788
- ((o$4 = globalThis.litElementVersions) !== null && o$4 !== void 0 ? o$4 : globalThis.litElementVersions = []).push("3.2.2");
1779
+ null == n$2 || n$2({ LitElement: s$3 });
1780
+ (null !== (o$4 = globalThis.litElementVersions) && void 0 !== o$4 ? o$4 : globalThis.litElementVersions = []).push("3.2.2");
1789
1781
  var __defProp$16 = Object.defineProperty;
1790
1782
  var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
1791
1783
  var __decorateClass$16 = (decorators, target, key, kind) => {
@@ -1841,24 +1833,29 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
1841
1833
  super.connectedCallback();
1842
1834
  }
1843
1835
  getDatesParts(start_date, end_date, options) {
1844
- let start = this.startDateObject;
1836
+ const start = this.startDateObject;
1845
1837
  start.setTime(start_date * 1e3);
1846
1838
  let parts = [];
1847
1839
  if (end_date > 0) {
1848
- let end = this.endDateObject;
1840
+ const end = this.endDateObject;
1849
1841
  end.setTime(end_date * 1e3);
1850
1842
  const isSameDay = start.toDateString() == end.toDateString();
1851
1843
  if (!isSameDay) {
1852
1844
  delete options.hour;
1853
1845
  delete options.minute;
1854
1846
  }
1855
- let format = new Intl.DateTimeFormat(this.language || this.pageLanguage, options);
1847
+ const format = new Intl.DateTimeFormat(
1848
+ this.language || this.pageLanguage,
1849
+ options
1850
+ );
1856
1851
  parts = format.formatRangeToParts(start, end);
1857
1852
  if (this.designMode) {
1858
1853
  parts.forEach((part) => part.hidden = part.value.trim() == ",");
1859
1854
  }
1860
1855
  if (!isSameDay) {
1861
- let to = parts.find((part) => part.type == "literal" && part.source == "shared" && part.value.trim().length > 0);
1856
+ const to = parts.find(
1857
+ (part) => part.type == "literal" && part.source == "shared" && part.value.trim().length > 0
1858
+ );
1862
1859
  if (to) {
1863
1860
  to.value = " " + this.duAu[1] + " ";
1864
1861
  to.type = "to";
@@ -1867,7 +1864,7 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
1867
1864
  parts.unshift({ type: "from", value: this.duAu[0] + " ", source: "shared" });
1868
1865
  }
1869
1866
  } else {
1870
- let format = new Intl.DateTimeFormat(this.language || this.pageLanguage, options);
1867
+ const format = new Intl.DateTimeFormat(this.language || this.pageLanguage, options);
1871
1868
  parts = format.formatToParts(start);
1872
1869
  }
1873
1870
  parts[0].value = Format$1.ucFirst(parts[0].value);
@@ -1896,7 +1893,7 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
1896
1893
  this.start_date = this.end_date;
1897
1894
  this.end_date = copy;
1898
1895
  }
1899
- let options = {
1896
+ const options = {
1900
1897
  year: this.year,
1901
1898
  month: this.month,
1902
1899
  day: this.day
@@ -1911,12 +1908,12 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
1911
1908
  options.era = this.era;
1912
1909
  if (this.time_zone)
1913
1910
  options.timeZone = this.time_zone;
1914
- let parts = this.getDatesParts(this.start_date, this.end_date, options);
1911
+ const parts = this.getDatesParts(this.start_date, this.end_date, options);
1915
1912
  return y`${parts.map((part) => {
1916
- let template = this.templateParts[part.type];
1913
+ const template = this.templateParts[part.type];
1917
1914
  if (template) {
1918
- var clone = document.importNode(template.content, true);
1919
- let child = clone.children[0];
1915
+ const clone = document.importNode(template.content, true);
1916
+ const child = clone.children[0];
1920
1917
  if (child.innerText.trim() == "")
1921
1918
  child.innerText = part.value;
1922
1919
  return clone;
@@ -1991,7 +1988,7 @@ const _LocationHandler = class {
1991
1988
  if (!_LocationHandler.listening) {
1992
1989
  return;
1993
1990
  }
1994
- let newURL = (_a2 = document.location) == null ? void 0 : _a2.href.replace(document.location.origin, "");
1991
+ const newURL = (_a2 = document.location) == null ? void 0 : _a2.href.replace(document.location.origin, "");
1995
1992
  if (_LocationHandler.prevURL && _LocationHandler.prevURL != newURL) {
1996
1993
  _LocationHandler.prevURL = newURL;
1997
1994
  _LocationHandler.listeners.forEach((listener) => {
@@ -2001,7 +1998,7 @@ const _LocationHandler = class {
2001
1998
  window.requestAnimationFrame(_LocationHandler.listen);
2002
1999
  }
2003
2000
  static offChange(listener) {
2004
- let idx = _LocationHandler.listeners.indexOf(listener);
2001
+ const idx = _LocationHandler.listeners.indexOf(listener);
2005
2002
  if (idx == -1)
2006
2003
  return;
2007
2004
  _LocationHandler.listeners.splice(idx, 1);
@@ -2021,7 +2018,7 @@ const _LocationHandler = class {
2021
2018
  const referrer = document.referrer;
2022
2019
  if (goBack !== null && goBack !== void 0) {
2023
2020
  const origin = document.location.origin;
2024
- let urlDest = goBack || origin;
2021
+ const urlDest = goBack || origin;
2025
2022
  const isHTTP = referrer.indexOf("http") == 0;
2026
2023
  const isNotSameOrigin = isHTTP ? new URL(referrer).origin != origin : false;
2027
2024
  const isReferrerEmpty = referrer == "";
@@ -2030,7 +2027,7 @@ const _LocationHandler = class {
2030
2027
  const isNotSameURL = urlDest != document.location.href;
2031
2028
  const goToURLDest = isNotSameOrigin && isNotSameURL || isFallbackNoReferer;
2032
2029
  if (goToURLDest) {
2033
- let state = history.state || {};
2030
+ const state = history.state || {};
2034
2031
  state.concorde = state.concorde || {};
2035
2032
  state.concorde.hasDoneHistoryBack = true;
2036
2033
  history.pushState(state, document.title);
@@ -2050,11 +2047,11 @@ const _LocationHandler = class {
2050
2047
  document.location.hash = to.substring(1);
2051
2048
  return;
2052
2049
  }
2053
- let url = new URL(to, document.location.href);
2054
- let split = url.pathname.split("/");
2055
- let newPathName = [];
2050
+ const url = new URL(to, document.location.href);
2051
+ const split = url.pathname.split("/");
2052
+ const newPathName = [];
2056
2053
  let prevSp = "";
2057
- for (let sp of split) {
2054
+ for (const sp of split) {
2058
2055
  if (sp != prevSp)
2059
2056
  newPathName.push(sp);
2060
2057
  prevSp = sp;
@@ -2071,8 +2068,8 @@ const _LocationHandler = class {
2071
2068
  if (component.autoActive == "disabled")
2072
2069
  return;
2073
2070
  if (component.href && component.href.indexOf("http") != 0) {
2074
- let url1 = new URL(component.href, document.location.href);
2075
- let url2 = new URL(component.location || "", document.location.origin);
2071
+ const url1 = new URL(component.href, document.location.href);
2072
+ const url2 = new URL(component.location || "", document.location.origin);
2076
2073
  let isActive = false;
2077
2074
  if (component.autoActive == "strict") {
2078
2075
  isActive = url1.pathname == url2.pathname && url1.hash == url2.hash && url1.search == url2.search;
@@ -2119,29 +2116,29 @@ class i$2 {
2119
2116
  const i$1 = e$2(class extends i$2 {
2120
2117
  constructor(t$12) {
2121
2118
  var e2;
2122
- if (super(t$12), t$12.type !== t.ATTRIBUTE || t$12.name !== "style" || ((e2 = t$12.strings) === null || e2 === void 0 ? void 0 : e2.length) > 2)
2119
+ if (super(t$12), t$12.type !== t.ATTRIBUTE || "style" !== t$12.name || (null === (e2 = t$12.strings) || void 0 === e2 ? void 0 : e2.length) > 2)
2123
2120
  throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
2124
2121
  }
2125
2122
  render(t2) {
2126
2123
  return Object.keys(t2).reduce((e2, r2) => {
2127
2124
  const s2 = t2[r2];
2128
- return s2 == null ? e2 : e2 + `${r2 = r2.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s2};`;
2125
+ return null == s2 ? e2 : e2 + `${r2 = r2.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s2};`;
2129
2126
  }, "");
2130
2127
  }
2131
2128
  update(e2, [r2]) {
2132
2129
  const { style: s2 } = e2.element;
2133
- if (this.vt === void 0) {
2130
+ if (void 0 === this.vt) {
2134
2131
  this.vt = /* @__PURE__ */ new Set();
2135
2132
  for (const t2 in r2)
2136
2133
  this.vt.add(t2);
2137
2134
  return this.render(r2);
2138
2135
  }
2139
2136
  this.vt.forEach((t2) => {
2140
- r2[t2] == null && (this.vt.delete(t2), t2.includes("-") ? s2.removeProperty(t2) : s2[t2] = "");
2137
+ null == r2[t2] && (this.vt.delete(t2), t2.includes("-") ? s2.removeProperty(t2) : s2[t2] = "");
2141
2138
  });
2142
2139
  for (const t2 in r2) {
2143
2140
  const e3 = r2[t2];
2144
- e3 != null && (this.vt.add(t2), t2.includes("-") ? s2.setProperty(t2, e3) : s2[t2] = e3);
2141
+ null != e3 && (this.vt.add(t2), t2.includes("-") ? s2.setProperty(t2, e3) : s2[t2] = e3);
2145
2142
  }
2146
2143
  return x$1;
2147
2144
  }
@@ -2178,7 +2175,7 @@ const Form$2 = (superClass) => {
2178
2175
  this.setFormValueFromPublisher(value);
2179
2176
  };
2180
2177
  this.onFormDataInValidate = () => {
2181
- let formPublisher = this.getFormPublisher();
2178
+ const formPublisher = this.getFormPublisher();
2182
2179
  if (!(formPublisher && formPublisher.isFormValid.get())) {
2183
2180
  return;
2184
2181
  }
@@ -2197,9 +2194,9 @@ const Form$2 = (superClass) => {
2197
2194
  validateFormElement() {
2198
2195
  }
2199
2196
  updateDataValue() {
2200
- let name = this.getAttribute("name");
2197
+ const name = this.getAttribute("name");
2201
2198
  if (name) {
2202
- let formPublisher = this.getFormPublisher();
2199
+ const formPublisher = this.getFormPublisher();
2203
2200
  if (formPublisher) {
2204
2201
  formPublisher[name] = this.getValueForFormPublisher();
2205
2202
  this.setFormValueFromPublisher(formPublisher[name].get());
@@ -2227,12 +2224,9 @@ const Form$2 = (superClass) => {
2227
2224
  return this._value;
2228
2225
  }
2229
2226
  set value(value) {
2230
- if (this.name == "nom" && value && Objects$1.deepEqual(value, {})) {
2231
- console.trace(this);
2232
- }
2233
2227
  if (value == null)
2234
2228
  value = "";
2235
- if (Objects$1.isObject(value) && value.hasOwnProperty("__value") && value.value == void 0)
2229
+ if (Objects$1.isObject(value) && Object.prototype.hasOwnProperty.call(value, "__value") && value._value == void 0)
2236
2230
  value = "";
2237
2231
  if (this._value == value)
2238
2232
  return;
@@ -2242,7 +2236,7 @@ const Form$2 = (superClass) => {
2242
2236
  }
2243
2237
  initPublisher() {
2244
2238
  let formPublisher = this.getFormPublisher();
2245
- let value = this.hasAncestorAttribute("initFromPublisher") && this._name && formPublisher[this._name].get() ? formPublisher[this._name].get() : this.getAttribute("value");
2239
+ const value = this.hasAncestorAttribute("initFromPublisher") && this._name && formPublisher[this._name].get() ? formPublisher[this._name].get() : this.getAttribute("value");
2246
2240
  if (this._name && this.publisher)
2247
2241
  this.publisher[this._name].offAssign(this.onValueAssign);
2248
2242
  if (this._name && formPublisher)
@@ -2273,54 +2267,54 @@ const Form$2 = (superClass) => {
2273
2267
  this.dispatchEvent(event);
2274
2268
  }
2275
2269
  addKeyboardNavigation() {
2276
- let keyboardLoopIds = this.getAncestorAttributeValue("data-keyboard-nav");
2270
+ const keyboardLoopIds = this.getAncestorAttributeValue("data-keyboard-nav");
2277
2271
  if (!keyboardLoopIds)
2278
2272
  return;
2279
- let split = keyboardLoopIds.split(" ");
2280
- let keyboardLoopId = split[0];
2273
+ const split = keyboardLoopIds.split(" ");
2274
+ const keyboardLoopId = split[0];
2281
2275
  if (!keyboardLoopId)
2282
2276
  return;
2283
- for (let keyboardLoopId2 of split) {
2277
+ for (const keyboardLoopId2 of split) {
2284
2278
  if (!keyboardLoops.has(keyboardLoopId2)) {
2285
2279
  keyboardLoops.set(keyboardLoopId2, []);
2286
2280
  }
2287
- let keyboardLoop2 = keyboardLoops.get(keyboardLoopId2);
2281
+ const keyboardLoop2 = keyboardLoops.get(keyboardLoopId2);
2288
2282
  if ((keyboardLoop2 == null ? void 0 : keyboardLoop2.indexOf(this)) == -1) {
2289
2283
  keyboardLoop2.push(this);
2290
2284
  }
2291
2285
  }
2292
- let keyboardLoop = keyboardLoops.get(keyboardLoopId);
2286
+ const keyboardLoop = keyboardLoops.get(keyboardLoopId);
2293
2287
  this.addEventListener("keydown", (e2) => {
2294
2288
  var _a2;
2295
2289
  const keyboardEvent = e2;
2296
2290
  if (!["ArrowDown", "ArrowUp"].includes(keyboardEvent.key))
2297
2291
  return;
2298
- let selector = "input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])";
2299
- let loop = keyboardLoop == null ? void 0 : keyboardLoop.filter((el) => {
2292
+ const selector = "input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])";
2293
+ const loop = keyboardLoop == null ? void 0 : keyboardLoop.filter((el) => {
2300
2294
  var _a3;
2301
- let child = (_a3 = el.shadowRoot) == null ? void 0 : _a3.querySelector(selector);
2295
+ const child = (_a3 = el.shadowRoot) == null ? void 0 : _a3.querySelector(selector);
2302
2296
  if (!child)
2303
2297
  return false;
2304
- let cpStyle = window.getComputedStyle(child);
2298
+ const cpStyle = window.getComputedStyle(child);
2305
2299
  return cpStyle.display !== "none" && cpStyle.display !== "" && cpStyle.pointerEvents != "none" && cpStyle.visibility !== "hidden" && child.getBoundingClientRect().width > 0;
2306
2300
  });
2307
2301
  let next = null;
2308
2302
  if (keyboardEvent.key == "ArrowDown" && loop) {
2309
- let index = loop.indexOf(this);
2303
+ const index = loop.indexOf(this);
2310
2304
  if (index == loop.length - 1) {
2311
2305
  next = loop[0];
2312
2306
  } else {
2313
2307
  next = loop[index + 1];
2314
2308
  }
2315
2309
  } else if (keyboardEvent.key == "ArrowUp" && loop) {
2316
- let index = loop.indexOf(this);
2310
+ const index = loop.indexOf(this);
2317
2311
  if (index == 0) {
2318
2312
  next = loop[loop.length - 1];
2319
2313
  } else {
2320
2314
  next = loop[index - 1];
2321
2315
  }
2322
2316
  }
2323
- let elt = (_a2 = next == null ? void 0 : next.shadowRoot) == null ? void 0 : _a2.querySelector(selector);
2317
+ const elt = (_a2 = next == null ? void 0 : next.shadowRoot) == null ? void 0 : _a2.querySelector(selector);
2324
2318
  if (elt && elt.focus) {
2325
2319
  elt.focus();
2326
2320
  e2.preventDefault();
@@ -2336,7 +2330,7 @@ const Form$2 = (superClass) => {
2336
2330
  super.disconnectedCallback();
2337
2331
  if (this._name && this.publisher)
2338
2332
  this.publisher[this._name].offAssign(this.onValueAssign);
2339
- let formPublisher = this.getFormPublisher();
2333
+ const formPublisher = this.getFormPublisher();
2340
2334
  if (this._name && formPublisher) {
2341
2335
  formPublisher[this._name].offAssign(this.onFormValueAssign);
2342
2336
  formPublisher.offInvalidate(this.onFormDataInValidate);
@@ -2417,7 +2411,7 @@ class Arrays$1 {
2417
2411
  forKey: (key) => {
2418
2412
  if (source.length < 1)
2419
2413
  return true;
2420
- let first = (source[0] || {})[key];
2414
+ const first = (source[0] || {})[key];
2421
2415
  return source.every((item) => (item || {})[key] == first);
2422
2416
  }
2423
2417
  };
@@ -2439,7 +2433,7 @@ class Arrays$1 {
2439
2433
  return {
2440
2434
  toKey: (toKey) => {
2441
2435
  source.forEach((item) => {
2442
- item[toKey] = Array.isArray(item[atKey]) ? [...item[atKey]] : typeof item[atKey] === "object" && item[atKey] != null ? __spreadValues({}, item[atKey]) : item[atKey];
2436
+ item[toKey] = Array.isArray(item[atKey]) ? [...item[atKey]] : typeof item[atKey] === "object" && item[atKey] != null ? { ...item[atKey] } : item[atKey];
2443
2437
  });
2444
2438
  }
2445
2439
  };
@@ -2456,14 +2450,14 @@ class Arrays$1 {
2456
2450
  group: () => {
2457
2451
  return {
2458
2452
  byKey: (key) => {
2459
- let result = [];
2460
- let keys = /* @__PURE__ */ new Map();
2461
- for (let item of source) {
2462
- let value = item[key];
2453
+ const result = [];
2454
+ const keys = /* @__PURE__ */ new Map();
2455
+ for (const item of source) {
2456
+ const value = item[key];
2463
2457
  if (!keys.has(value)) {
2464
- let idx = result.length;
2458
+ const idx = result.length;
2465
2459
  keys.set(value, idx);
2466
- let pushable = { items: [] };
2460
+ const pushable = { items: [] };
2467
2461
  pushable[key] = value;
2468
2462
  result.push(pushable);
2469
2463
  }
@@ -2478,8 +2472,10 @@ class Arrays$1 {
2478
2472
  duplicates: () => {
2479
2473
  return {
2480
2474
  forKey: (key) => {
2481
- let set = [...new Set(source.map((item) => item[key]))];
2482
- return Arrays$1.from(set.map((value) => source.find((item) => item[key] == value)));
2475
+ const set = [...new Set(source.map((item) => item[key]))];
2476
+ return Arrays$1.from(
2477
+ set.map((value) => source.find((item) => item[key] == value))
2478
+ );
2483
2479
  }
2484
2480
  };
2485
2481
  },
@@ -2488,8 +2484,10 @@ class Arrays$1 {
2488
2484
  havingSameValue: () => {
2489
2485
  return {
2490
2486
  forKey: (key) => {
2491
- let areValuesDifferentForKey = (compared1, key2) => (compared2) => compared1[key2] != compared2[key2];
2492
- return Arrays$1.from(source.filter((elt) => toRemoveFromSource.every(areValuesDifferentForKey(elt, key))));
2487
+ const areValuesDifferentForKey = (compared1, key2) => (compared2) => compared1[key2] != compared2[key2];
2488
+ return Arrays$1.from(
2489
+ source.filter((elt) => toRemoveFromSource.every(areValuesDifferentForKey(elt, key)))
2490
+ );
2493
2491
  }
2494
2492
  };
2495
2493
  }
@@ -2545,9 +2543,9 @@ const Form$1 = (superClass) => {
2545
2543
  this.unCheckOnDisconnect = false;
2546
2544
  this._checked = null;
2547
2545
  this.updateAllChecked = () => {
2548
- let name = this.getAttribute("name");
2549
- let checkAllPublisher = this.getCheckAllPublisher();
2550
- let formPublisher = this.getFormPublisher();
2546
+ const name = this.getAttribute("name");
2547
+ const checkAllPublisher = this.getCheckAllPublisher();
2548
+ const formPublisher = this.getFormPublisher();
2551
2549
  if (!(checkAllPublisher == null ? void 0 : checkAllPublisher.hasCheckAll.get())) {
2552
2550
  return;
2553
2551
  }
@@ -2560,11 +2558,11 @@ const Form$1 = (superClass) => {
2560
2558
  } else if (checkAllPublisher.checkMode.get() == "noneChecked" || checkAllPublisher.checkMode.get() == null) {
2561
2559
  checkAllPublisher.checkMode = "someUnchecked";
2562
2560
  }
2563
- let currentValues = formPublisher[name].get();
2564
- let allValues = checkAllPublisher.values.get();
2561
+ const currentValues = formPublisher[name].get();
2562
+ const allValues = checkAllPublisher.values.get();
2565
2563
  if (allValues && allValues.length) {
2566
2564
  let checkedCount = allValues.length;
2567
- for (let p2 of allValues) {
2565
+ for (const p2 of allValues) {
2568
2566
  if (currentValues.indexOf(p2) == -1) {
2569
2567
  checkedCount -= 1;
2570
2568
  }
@@ -2613,7 +2611,7 @@ const Form$1 = (superClass) => {
2613
2611
  this._value = newValue;
2614
2612
  if (!this.value)
2615
2613
  return;
2616
- let formPublisher = this.getFormPublisher();
2614
+ const formPublisher = this.getFormPublisher();
2617
2615
  if (formPublisher && this.name) {
2618
2616
  let currentValue = formPublisher[this.name].get();
2619
2617
  if (this.radio || this.unique) {
@@ -2635,13 +2633,13 @@ const Form$1 = (superClass) => {
2635
2633
  set checked(checked) {
2636
2634
  this.setCheckedValue(checked);
2637
2635
  if (this.checksAll()) {
2638
- let checkAllPublisher = this.getCheckAllPublisher();
2636
+ const checkAllPublisher = this.getCheckAllPublisher();
2639
2637
  if (checkAllPublisher) {
2640
2638
  if (this.checked === true)
2641
2639
  checkAllPublisher.checkMode = "allChecked";
2642
2640
  else if (this.checked === null) {
2643
2641
  checkAllPublisher.checkMode = "noneChecked";
2644
- let formPublisher = this.getFormPublisher();
2642
+ const formPublisher = this.getFormPublisher();
2645
2643
  if (formPublisher) {
2646
2644
  formPublisher[this.name] = [];
2647
2645
  }
@@ -2655,9 +2653,9 @@ const Form$1 = (superClass) => {
2655
2653
  const input = (_a2 = this.shadowRoot) == null ? void 0 : _a2.querySelector("input");
2656
2654
  if (!input || input.checkValidity())
2657
2655
  return;
2658
- let formPublisher = this.getFormPublisher();
2656
+ const formPublisher = this.getFormPublisher();
2659
2657
  if (formPublisher) {
2660
- let value = formPublisher[this.name].get();
2658
+ const value = formPublisher[this.name].get();
2661
2659
  if ((this.unique || this.radio) && value !== null && value.toString().length > 0)
2662
2660
  return;
2663
2661
  formPublisher.isFormValid = false;
@@ -2682,7 +2680,7 @@ const Form$1 = (superClass) => {
2682
2680
  this.dispatchEvent(event);
2683
2681
  }
2684
2682
  getValueForFormPublisher() {
2685
- let formPublisher = this.getFormPublisher();
2683
+ const formPublisher = this.getFormPublisher();
2686
2684
  if (!formPublisher)
2687
2685
  return null;
2688
2686
  let currentValue = formPublisher[this.name].get();
@@ -2696,7 +2694,7 @@ const Form$1 = (superClass) => {
2696
2694
  currentValue = [];
2697
2695
  }
2698
2696
  currentValue = currentValue.slice(0);
2699
- let idx = currentValue.indexOf(this.value);
2697
+ const idx = currentValue.indexOf(this.value);
2700
2698
  if (this.checked === true && idx === -1 && !this.checksAll())
2701
2699
  currentValue.push(this.value);
2702
2700
  if (this.checked === null && idx !== -1) {
@@ -2720,7 +2718,7 @@ const Form$1 = (superClass) => {
2720
2718
  if (!this.formDataProvider)
2721
2719
  this.formDataProvider = this.getAncestorAttributeValue("formDataProvider");
2722
2720
  const formDataProvider = this.formDataProvider;
2723
- let name = this.getAttribute("name");
2721
+ const name = this.getAttribute("name");
2724
2722
  if (!formDataProvider || !name) {
2725
2723
  return null;
2726
2724
  }
@@ -2728,11 +2726,11 @@ const Form$1 = (superClass) => {
2728
2726
  }
2729
2727
  disconnectedCallback() {
2730
2728
  super.disconnectedCallback();
2731
- let checkAllPublisher = this.getCheckAllPublisher();
2729
+ const checkAllPublisher = this.getCheckAllPublisher();
2732
2730
  if (checkAllPublisher) {
2733
2731
  checkAllPublisher.checkMode.offAssign(this.onChecksAllRequest);
2734
2732
  if (!this.checksAll()) {
2735
- let values = checkAllPublisher.values.get().slice(0);
2733
+ const values = checkAllPublisher.values.get().slice(0);
2736
2734
  const idx = values.indexOf(this.value);
2737
2735
  if (idx != -1) {
2738
2736
  values.splice(idx, 1);
@@ -2746,12 +2744,12 @@ const Form$1 = (superClass) => {
2746
2744
  super.connectedCallback();
2747
2745
  const formPublisher = this.getFormPublisher();
2748
2746
  if (formPublisher && this.name) {
2749
- let publisherValueForName = formPublisher[this.name].get();
2750
- if (publisherValueForName && publisherValueForName.indexOf(this.value) !== -1) {
2747
+ const publisherValueForName = formPublisher[this.name].get();
2748
+ if (publisherValueForName && Array.isArray(publisherValueForName) && publisherValueForName.indexOf(this.value) !== -1) {
2751
2749
  this.checked = true;
2752
2750
  }
2753
2751
  }
2754
- let checkAllPublisher = this.getCheckAllPublisher();
2752
+ const checkAllPublisher = this.getCheckAllPublisher();
2755
2753
  if (checkAllPublisher) {
2756
2754
  checkAllPublisher.checkMode.onAssign(this.onChecksAllRequest);
2757
2755
  if (this.checksAll()) {
@@ -2797,7 +2795,7 @@ const Form$1 = (superClass) => {
2797
2795
  * Copyright 2018 Google LLC
2798
2796
  * SPDX-License-Identifier: BSD-3-Clause
2799
2797
  */
2800
- const l$2 = (l2) => l2 != null ? l2 : b$1;
2798
+ const l$2 = (l2) => null != l2 ? l2 : b$1;
2801
2799
  const fontSize = i$4`:host{--sc-fs:1rem;--sc-lh:1.2;font-size:var(--sc-fs);line-height:var(--sc-lh)}:host([size="2xs"]){--sc-fs:0.625rem}:host([size=xs]){--sc-fs:0.75rem}:host([size=sm]){--sc-fs:0.875rem}:host([size=lg]){--sc-fs:1.125rem}:host([size=xl]){--sc-fs:1.25rem}:host([size="2xl"]){--sc-fs:1.5rem}`;
2802
2800
  var __defProp$13 = Object.defineProperty;
2803
2801
  var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
@@ -2849,7 +2847,7 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
2849
2847
  LocationHandler$1.changeFromComponent(this);
2850
2848
  }
2851
2849
  handleChange(e2) {
2852
- super.handleChange(e2);
2850
+ super.handleChange();
2853
2851
  if (this.pushState || this.goBack !== null) {
2854
2852
  e2 == null ? void 0 : e2.preventDefault();
2855
2853
  e2 == null ? void 0 : e2.stopPropagation();
@@ -2857,7 +2855,7 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
2857
2855
  }
2858
2856
  if (this.hasAttribute("reset")) {
2859
2857
  const resetDataProvider = this.getAttribute("reset");
2860
- let formPublisher = resetDataProvider ? PublisherManager.get(resetDataProvider) : this.getFormPublisher();
2858
+ const formPublisher = resetDataProvider ? PublisherManager.get(resetDataProvider) : this.getFormPublisher();
2861
2859
  if (formPublisher)
2862
2860
  formPublisher.set({});
2863
2861
  }
@@ -2996,7 +2994,7 @@ let Loader = class extends s$3 {
2996
2994
  static show(conf) {
2997
2995
  if (!Loader.loader)
2998
2996
  Loader.loader = document.createElement("sonic-loader");
2999
- let loader = Loader.loader;
2997
+ const loader = Loader.loader;
3000
2998
  if (!conf)
3001
2999
  conf = {};
3002
3000
  if (conf.mode)
@@ -3036,17 +3034,17 @@ Loader = __decorateClass$12([
3036
3034
  * Copyright 2020 Google LLC
3037
3035
  * SPDX-License-Identifier: BSD-3-Clause
3038
3036
  */
3039
- const { I: l$1 } = L, e$1 = (o2) => o2.strings === void 0, c$2 = () => document.createComment(""), r$2 = (o2, t2, i2) => {
3037
+ const { I: l$1 } = L, e$1 = (o2) => void 0 === o2.strings, c$2 = () => document.createComment(""), r$2 = (o2, t2, i2) => {
3040
3038
  var n2;
3041
- const d2 = o2._$AA.parentNode, v2 = t2 === void 0 ? o2._$AB : t2._$AA;
3042
- if (i2 === void 0) {
3039
+ const d2 = o2._$AA.parentNode, v2 = void 0 === t2 ? o2._$AB : t2._$AA;
3040
+ if (void 0 === i2) {
3043
3041
  const t3 = d2.insertBefore(c$2(), v2), n3 = d2.insertBefore(c$2(), v2);
3044
3042
  i2 = new l$1(t3, n3, o2, o2.options);
3045
3043
  } else {
3046
3044
  const l2 = i2._$AB.nextSibling, t3 = i2._$AM, e2 = t3 !== o2;
3047
3045
  if (e2) {
3048
3046
  let l3;
3049
- (n2 = i2._$AQ) === null || n2 === void 0 || n2.call(i2, o2), i2._$AM = o2, i2._$AP !== void 0 && (l3 = o2._$AU) !== t3._$AU && i2._$AP(l3);
3047
+ null === (n2 = i2._$AQ) || void 0 === n2 || n2.call(i2, o2), i2._$AM = o2, void 0 !== i2._$AP && (l3 = o2._$AU) !== t3._$AU && i2._$AP(l3);
3050
3048
  }
3051
3049
  if (l2 !== v2 || e2) {
3052
3050
  let o3 = i2._$AA;
@@ -3059,7 +3057,7 @@ const { I: l$1 } = L, e$1 = (o2) => o2.strings === void 0, c$2 = () => document.
3059
3057
  return i2;
3060
3058
  }, u$1 = (o2, l2, t2 = o2) => (o2._$AI(l2, t2), o2), f$1 = {}, s$2 = (o2, l2 = f$1) => o2._$AH = l2, m = (o2) => o2._$AH, p$1 = (o2) => {
3061
3059
  var l2;
3062
- (l2 = o2._$AP) === null || l2 === void 0 || l2.call(o2, false, true);
3060
+ null === (l2 = o2._$AP) || void 0 === l2 || l2.call(o2, false, true);
3063
3061
  let t2 = o2._$AA;
3064
3062
  const i2 = o2._$AB.nextSibling;
3065
3063
  for (; t2 !== i2; ) {
@@ -3084,7 +3082,7 @@ const u = (e2, s2, t2) => {
3084
3082
  }
3085
3083
  ht(e2, s2, t2) {
3086
3084
  let r2;
3087
- t2 === void 0 ? t2 = s2 : s2 !== void 0 && (r2 = s2);
3085
+ void 0 === t2 ? t2 = s2 : void 0 !== s2 && (r2 = s2);
3088
3086
  const l2 = [], o2 = [];
3089
3087
  let i2 = 0;
3090
3088
  for (const s3 of e2)
@@ -3099,12 +3097,12 @@ const u = (e2, s2, t2) => {
3099
3097
  const a2 = m(s2), { values: p2, keys: v2 } = this.ht(t2, r2, c2);
3100
3098
  if (!Array.isArray(a2))
3101
3099
  return this.ut = v2, p2;
3102
- const h2 = (d2 = this.ut) !== null && d2 !== void 0 ? d2 : this.ut = [], m$12 = [];
3100
+ const h2 = null !== (d2 = this.ut) && void 0 !== d2 ? d2 : this.ut = [], m$12 = [];
3103
3101
  let y2, x2, j2 = 0, k2 = a2.length - 1, w2 = 0, A2 = p2.length - 1;
3104
3102
  for (; j2 <= k2 && w2 <= A2; )
3105
- if (a2[j2] === null)
3103
+ if (null === a2[j2])
3106
3104
  j2++;
3107
- else if (a2[k2] === null)
3105
+ else if (null === a2[k2])
3108
3106
  k2--;
3109
3107
  else if (h2[j2] === v2[w2])
3110
3108
  m$12[w2] = u$1(a2[j2], p2[w2]), j2++, w2++;
@@ -3114,10 +3112,10 @@ const u = (e2, s2, t2) => {
3114
3112
  m$12[A2] = u$1(a2[j2], p2[A2]), r$2(s2, m$12[A2 + 1], a2[j2]), j2++, A2--;
3115
3113
  else if (h2[k2] === v2[w2])
3116
3114
  m$12[w2] = u$1(a2[k2], p2[w2]), r$2(s2, a2[j2], a2[k2]), k2--, w2++;
3117
- else if (y2 === void 0 && (y2 = u(v2, w2, A2), x2 = u(h2, j2, k2)), y2.has(h2[j2]))
3115
+ else if (void 0 === y2 && (y2 = u(v2, w2, A2), x2 = u(h2, j2, k2)), y2.has(h2[j2]))
3118
3116
  if (y2.has(h2[k2])) {
3119
- const e2 = x2.get(v2[w2]), t3 = e2 !== void 0 ? a2[e2] : null;
3120
- if (t3 === null) {
3117
+ const e2 = x2.get(v2[w2]), t3 = void 0 !== e2 ? a2[e2] : null;
3118
+ if (null === t3) {
3121
3119
  const e3 = r$2(s2, a2[j2]);
3122
3120
  u$1(e3, p2[w2]), m$12[w2] = e3;
3123
3121
  } else
@@ -3133,7 +3131,7 @@ const u = (e2, s2, t2) => {
3133
3131
  }
3134
3132
  for (; j2 <= k2; ) {
3135
3133
  const e2 = a2[j2++];
3136
- e2 !== null && p$1(e2);
3134
+ null !== e2 && p$1(e2);
3137
3135
  }
3138
3136
  return this.ut = v2, s$2(s2, m$12), x$1;
3139
3137
  }
@@ -3146,22 +3144,22 @@ const u = (e2, s2, t2) => {
3146
3144
  const s$1 = (i2, t2) => {
3147
3145
  var e2, o2;
3148
3146
  const r2 = i2._$AN;
3149
- if (r2 === void 0)
3147
+ if (void 0 === r2)
3150
3148
  return false;
3151
3149
  for (const i3 of r2)
3152
- (o2 = (e2 = i3)._$AO) === null || o2 === void 0 || o2.call(e2, t2, false), s$1(i3, t2);
3150
+ null === (o2 = (e2 = i3)._$AO) || void 0 === o2 || o2.call(e2, t2, false), s$1(i3, t2);
3153
3151
  return true;
3154
3152
  }, o$3 = (i2) => {
3155
3153
  let t2, e2;
3156
3154
  do {
3157
- if ((t2 = i2._$AM) === void 0)
3155
+ if (void 0 === (t2 = i2._$AM))
3158
3156
  break;
3159
3157
  e2 = t2._$AN, e2.delete(i2), i2 = t2;
3160
- } while ((e2 == null ? void 0 : e2.size) === 0);
3158
+ } while (0 === (null == e2 ? void 0 : e2.size));
3161
3159
  }, r$1 = (i2) => {
3162
3160
  for (let t2; t2 = i2._$AM; i2 = t2) {
3163
3161
  let e2 = t2._$AN;
3164
- if (e2 === void 0)
3162
+ if (void 0 === e2)
3165
3163
  t2._$AN = e2 = /* @__PURE__ */ new Set();
3166
3164
  else if (e2.has(i2))
3167
3165
  break;
@@ -3169,23 +3167,23 @@ const s$1 = (i2, t2) => {
3169
3167
  }
3170
3168
  };
3171
3169
  function n$1(i2) {
3172
- this._$AN !== void 0 ? (o$3(this), this._$AM = i2, r$1(this)) : this._$AM = i2;
3170
+ void 0 !== this._$AN ? (o$3(this), this._$AM = i2, r$1(this)) : this._$AM = i2;
3173
3171
  }
3174
3172
  function h$1(i2, t2 = false, e2 = 0) {
3175
3173
  const r2 = this._$AH, n2 = this._$AN;
3176
- if (n2 !== void 0 && n2.size !== 0)
3174
+ if (void 0 !== n2 && 0 !== n2.size)
3177
3175
  if (t2)
3178
3176
  if (Array.isArray(r2))
3179
3177
  for (let i3 = e2; i3 < r2.length; i3++)
3180
3178
  s$1(r2[i3], false), o$3(r2[i3]);
3181
3179
  else
3182
- r2 != null && (s$1(r2, false), o$3(r2));
3180
+ null != r2 && (s$1(r2, false), o$3(r2));
3183
3181
  else
3184
3182
  s$1(this, i2);
3185
3183
  }
3186
3184
  const l = (i2) => {
3187
3185
  var t$12, s2, o2, r2;
3188
- i2.type == t.CHILD && ((t$12 = (o2 = i2)._$AP) !== null && t$12 !== void 0 || (o2._$AP = h$1), (s2 = (r2 = i2)._$AQ) !== null && s2 !== void 0 || (r2._$AQ = n$1));
3186
+ i2.type == t.CHILD && (null !== (t$12 = (o2 = i2)._$AP) && void 0 !== t$12 || (o2._$AP = h$1), null !== (s2 = (r2 = i2)._$AQ) && void 0 !== s2 || (r2._$AQ = n$1));
3189
3187
  };
3190
3188
  class c extends i$2 {
3191
3189
  constructor() {
@@ -3196,7 +3194,7 @@ class c extends i$2 {
3196
3194
  }
3197
3195
  _$AO(i2, t2 = true) {
3198
3196
  var e2, r2;
3199
- i2 !== this.isConnected && (this.isConnected = i2, i2 ? (e2 = this.reconnected) === null || e2 === void 0 || e2.call(this) : (r2 = this.disconnected) === null || r2 === void 0 || r2.call(this)), t2 && (s$1(this, i2), o$3(this));
3197
+ i2 !== this.isConnected && (this.isConnected = i2, i2 ? null === (e2 = this.reconnected) || void 0 === e2 || e2.call(this) : null === (r2 = this.disconnected) || void 0 === r2 || r2.call(this)), t2 && (s$1(this, i2), o$3(this));
3200
3198
  }
3201
3199
  setValue(t2) {
3202
3200
  if (e$1(this._$Ct))
@@ -3215,10 +3213,10 @@ const i = /* @__PURE__ */ new WeakMap();
3215
3213
  let h = 0;
3216
3214
  const r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new WeakSet(), a = () => new Promise((t2) => requestAnimationFrame(t2)), f = [{ opacity: 0 }], p = [{ opacity: 0 }, { opacity: 1 }], g = (t2, i2) => {
3217
3215
  const s2 = t2 - i2;
3218
- return s2 === 0 ? void 0 : s2;
3216
+ return 0 === s2 ? void 0 : s2;
3219
3217
  }, w = (t2, i2) => {
3220
3218
  const s2 = t2 / i2;
3221
- return s2 === 1 ? void 0 : s2;
3219
+ return 1 === s2 ? void 0 : s2;
3222
3220
  }, A = { left: (t2, i2) => {
3223
3221
  const s2 = g(t2, i2);
3224
3222
  return { value: s2, transform: s2 && `translateX(${s2}px)` };
@@ -3240,13 +3238,13 @@ class S extends c {
3240
3238
  }
3241
3239
  createFinished() {
3242
3240
  var t2;
3243
- (t2 = this.resolveFinished) === null || t2 === void 0 || t2.call(this), this.finished = new Promise((t3) => {
3241
+ null === (t2 = this.resolveFinished) || void 0 === t2 || t2.call(this), this.finished = new Promise((t3) => {
3244
3242
  this.h = t3;
3245
3243
  });
3246
3244
  }
3247
3245
  async resolveFinished() {
3248
3246
  var t2;
3249
- (t2 = this.h) === null || t2 === void 0 || t2.call(this), this.h = void 0;
3247
+ null === (t2 = this.h) || void 0 === t2 || t2.call(this), this.h = void 0;
3250
3248
  }
3251
3249
  render(i2) {
3252
3250
  return b$1;
@@ -3256,24 +3254,24 @@ class S extends c {
3256
3254
  }
3257
3255
  isDisabled() {
3258
3256
  var t2;
3259
- return this.options.disabled || ((t2 = this.getController()) === null || t2 === void 0 ? void 0 : t2.disabled);
3257
+ return this.options.disabled || (null === (t2 = this.getController()) || void 0 === t2 ? void 0 : t2.disabled);
3260
3258
  }
3261
3259
  update(t2, [i2]) {
3262
3260
  var s2;
3263
- const e2 = this.l === void 0;
3264
- return e2 && (this.l = (s2 = t2.options) === null || s2 === void 0 ? void 0 : s2.host, this.l.addController(this), this.element = t2.element, x.set(this.element, this)), this.optionsOrCallback = i2, (e2 || typeof i2 != "function") && this.u(i2), this.render(i2);
3261
+ const e2 = void 0 === this.l;
3262
+ return e2 && (this.l = null === (s2 = t2.options) || void 0 === s2 ? void 0 : s2.host, this.l.addController(this), this.element = t2.element, x.set(this.element, this)), this.optionsOrCallback = i2, (e2 || "function" != typeof i2) && this.u(i2), this.render(i2);
3265
3263
  }
3266
3264
  u(t2) {
3267
3265
  var i2, s2;
3268
- t2 = t2 != null ? t2 : {};
3266
+ t2 = null != t2 ? t2 : {};
3269
3267
  const e2 = this.getController();
3270
- e2 !== void 0 && ((t2 = __spreadValues(__spreadValues({}, e2.defaultOptions), t2)).keyframeOptions = __spreadValues(__spreadValues({}, e2.defaultOptions.keyframeOptions), t2.keyframeOptions)), (i2 = (s2 = t2).properties) !== null && i2 !== void 0 || (s2.properties = j), this.options = t2;
3268
+ void 0 !== e2 && ((t2 = { ...e2.defaultOptions, ...t2 }).keyframeOptions = { ...e2.defaultOptions.keyframeOptions, ...t2.keyframeOptions }), null !== (i2 = (s2 = t2).properties) && void 0 !== i2 || (s2.properties = j), this.options = t2;
3271
3269
  }
3272
3270
  v() {
3273
3271
  const t2 = {}, i2 = this.element.getBoundingClientRect(), s2 = getComputedStyle(this.element);
3274
3272
  return this.options.properties.forEach((e2) => {
3275
3273
  var o2;
3276
- const h2 = (o2 = i2[e2]) !== null && o2 !== void 0 ? o2 : A[e2] ? void 0 : s2[e2], r2 = Number(h2);
3274
+ const h2 = null !== (o2 = i2[e2]) && void 0 !== o2 ? o2 : A[e2] ? void 0 : s2[e2], r2 = Number(h2);
3277
3275
  t2[e2] = isNaN(r2) ? h2 + "" : r2;
3278
3276
  }), t2;
3279
3277
  }
@@ -3290,7 +3288,7 @@ class S extends c {
3290
3288
  }
3291
3289
  hostUpdate() {
3292
3290
  var t2;
3293
- typeof this.optionsOrCallback == "function" && this.u(this.optionsOrCallback()), this.p() && (this.g = this.v(), this.t = (t2 = this.t) !== null && t2 !== void 0 ? t2 : this.element.parentNode, this.i = this.element.nextSibling);
3291
+ "function" == typeof this.optionsOrCallback && this.u(this.optionsOrCallback()), this.p() && (this.g = this.v(), this.t = null !== (t2 = this.t) && void 0 !== t2 ? t2 : this.element.parentNode, this.i = this.element.nextSibling);
3294
3292
  }
3295
3293
  async hostUpdated() {
3296
3294
  if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
@@ -3298,7 +3296,7 @@ class S extends c {
3298
3296
  let t2;
3299
3297
  this.prepare(), await a;
3300
3298
  const i2 = this._(), s2 = this.A(this.options.keyframeOptions, i2), e2 = this.v();
3301
- if (this.g !== void 0) {
3299
+ if (void 0 !== this.g) {
3302
3300
  const { from: s3, to: o2 } = this.O(this.g, e2, i2);
3303
3301
  this.log("measured", [this.g, e2, s3, o2]), t2 = this.calculateKeyframes(s3, o2);
3304
3302
  } else {
@@ -3306,7 +3304,7 @@ class S extends c {
3306
3304
  if (s3) {
3307
3305
  r.delete(this.options.inId);
3308
3306
  const { from: o2, to: n2 } = this.O(s3, e2, i2);
3309
- t2 = this.calculateKeyframes(o2, n2), t2 = this.options.in ? [__spreadValues(__spreadValues({}, this.options.in[0]), t2[0]), ...this.options.in.slice(1), t2[1]] : t2, h++, t2.forEach((t3) => t3.zIndex = h);
3307
+ t2 = this.calculateKeyframes(o2, n2), t2 = this.options.in ? [{ ...this.options.in[0], ...t2[0] }, ...this.options.in.slice(1), t2[1]] : t2, h++, t2.forEach((t3) => t3.zIndex = h);
3310
3308
  } else
3311
3309
  this.options.in && (t2 = [...this.options.in, {}]);
3312
3310
  }
@@ -3314,11 +3312,11 @@ class S extends c {
3314
3312
  }
3315
3313
  resetStyles() {
3316
3314
  var t2;
3317
- this.P !== void 0 && (this.element.setAttribute("style", (t2 = this.P) !== null && t2 !== void 0 ? t2 : ""), this.P = void 0);
3315
+ void 0 !== this.P && (this.element.setAttribute("style", null !== (t2 = this.P) && void 0 !== t2 ? t2 : ""), this.P = void 0);
3318
3316
  }
3319
3317
  commitStyles() {
3320
3318
  var t2, i2;
3321
- this.P = this.element.getAttribute("style"), (t2 = this.webAnimation) === null || t2 === void 0 || t2.commitStyles(), (i2 = this.webAnimation) === null || i2 === void 0 || i2.cancel();
3319
+ this.P = this.element.getAttribute("style"), null === (t2 = this.webAnimation) || void 0 === t2 || t2.commitStyles(), null === (i2 = this.webAnimation) || void 0 === i2 || i2.cancel();
3322
3320
  }
3323
3321
  reconnected() {
3324
3322
  }
@@ -3326,15 +3324,15 @@ class S extends c {
3326
3324
  var t2;
3327
3325
  if (!this.o)
3328
3326
  return;
3329
- if (this.options.id !== void 0 && r.set(this.options.id, this.g), this.options.out === void 0)
3327
+ if (void 0 !== this.options.id && r.set(this.options.id, this.g), void 0 === this.options.out)
3330
3328
  return;
3331
- if (this.prepare(), await a(), (t2 = this.t) === null || t2 === void 0 ? void 0 : t2.isConnected) {
3329
+ if (this.prepare(), await a(), null === (t2 = this.t) || void 0 === t2 ? void 0 : t2.isConnected) {
3332
3330
  const t3 = this.i && this.i.parentNode === this.t ? this.i : null;
3333
3331
  if (this.t.insertBefore(this.element, t3), this.options.stabilizeOut) {
3334
3332
  const t4 = this.v();
3335
3333
  this.log("stabilizing out");
3336
3334
  const i3 = this.g.left - t4.left, s2 = this.g.top - t4.top;
3337
- !(getComputedStyle(this.element).position === "static") || i3 === 0 && s2 === 0 || (this.element.style.position = "relative"), i3 !== 0 && (this.element.style.left = i3 + "px"), s2 !== 0 && (this.element.style.top = s2 + "px");
3335
+ !("static" === getComputedStyle(this.element).position) || 0 === i3 && 0 === s2 || (this.element.style.position = "relative"), 0 !== i3 && (this.element.style.left = i3 + "px"), 0 !== s2 && (this.element.style.top = s2 + "px");
3338
3336
  }
3339
3337
  }
3340
3338
  const i2 = this.A(this.options.keyframeOptions);
@@ -3345,15 +3343,15 @@ class S extends c {
3345
3343
  }
3346
3344
  start() {
3347
3345
  var t2, i2;
3348
- (i2 = (t2 = this.options).onStart) === null || i2 === void 0 || i2.call(t2, this);
3346
+ null === (i2 = (t2 = this.options).onStart) || void 0 === i2 || i2.call(t2, this);
3349
3347
  }
3350
3348
  didFinish(t2) {
3351
3349
  var i2, s2;
3352
- t2 && ((s2 = (i2 = this.options).onComplete) === null || s2 === void 0 || s2.call(i2, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
3350
+ t2 && (null === (s2 = (i2 = this.options).onComplete) || void 0 === s2 || s2.call(i2, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
3353
3351
  }
3354
3352
  _() {
3355
3353
  const t2 = [];
3356
- for (let i2 = this.element.parentNode; i2; i2 = i2 == null ? void 0 : i2.parentNode) {
3354
+ for (let i2 = this.element.parentNode; i2; i2 = null == i2 ? void 0 : i2.parentNode) {
3357
3355
  const s2 = x.get(i2);
3358
3356
  s2 && !s2.isDisabled() && s2 && t2.push(s2);
3359
3357
  }
@@ -3366,16 +3364,16 @@ class S extends c {
3366
3364
  }), t2;
3367
3365
  }
3368
3366
  A(t2, i2 = this._()) {
3369
- const s2 = __spreadValues({}, b);
3367
+ const s2 = { ...b };
3370
3368
  return i2.forEach((t3) => Object.assign(s2, t3.options.keyframeOptions)), Object.assign(s2, t2), s2;
3371
3369
  }
3372
3370
  O(t2, i2, s2) {
3373
- t2 = __spreadValues({}, t2), i2 = __spreadValues({}, i2);
3374
- const e2 = s2.map((t3) => t3.animatingProperties).filter((t3) => t3 !== void 0);
3371
+ t2 = { ...t2 }, i2 = { ...i2 };
3372
+ const e2 = s2.map((t3) => t3.animatingProperties).filter((t3) => void 0 !== t3);
3375
3373
  let o2 = 1, h2 = 1;
3376
- return e2 !== void 0 && (e2.forEach((t3) => {
3374
+ return void 0 !== e2 && (e2.forEach((t3) => {
3377
3375
  t3.width && (o2 /= t3.width), t3.height && (h2 /= t3.height);
3378
- }), t2.left !== void 0 && i2.left !== void 0 && (t2.left = o2 * t2.left, i2.left = o2 * i2.left), t2.top !== void 0 && i2.top !== void 0 && (t2.top = h2 * t2.top, i2.top = h2 * i2.top)), { from: t2, to: i2 };
3376
+ }), void 0 !== t2.left && void 0 !== i2.left && (t2.left = o2 * t2.left, i2.left = o2 * i2.left), void 0 !== t2.top && void 0 !== i2.top && (t2.top = h2 * t2.top, i2.top = h2 * i2.top)), { from: t2, to: i2 };
3379
3377
  }
3380
3378
  calculateKeyframes(t2, i2, s2 = false) {
3381
3379
  var e2;
@@ -3386,33 +3384,33 @@ class S extends c {
3386
3384
  const a2 = t2[s3], l2 = i2[s3];
3387
3385
  if (s3 in A) {
3388
3386
  const t3 = A[s3];
3389
- if (a2 === void 0 || l2 === void 0)
3387
+ if (void 0 === a2 || void 0 === l2)
3390
3388
  continue;
3391
3389
  const i3 = t3(a2, l2);
3392
- i3.transform !== void 0 && (n2[s3] = i3.value, r2 = true, o2.transform = `${(e2 = o2.transform) !== null && e2 !== void 0 ? e2 : ""} ${i3.transform}`);
3390
+ void 0 !== i3.transform && (n2[s3] = i3.value, r2 = true, o2.transform = `${null !== (e2 = o2.transform) && void 0 !== e2 ? e2 : ""} ${i3.transform}`);
3393
3391
  } else
3394
- a2 !== l2 && a2 !== void 0 && l2 !== void 0 && (r2 = true, o2[s3] = a2, h2[s3] = l2);
3392
+ a2 !== l2 && void 0 !== a2 && void 0 !== l2 && (r2 = true, o2[s3] = a2, h2[s3] = l2);
3395
3393
  }
3396
3394
  return o2.transformOrigin = h2.transformOrigin = s2 ? "center center" : "top left", this.animatingProperties = n2, r2 ? [o2, h2] : void 0;
3397
3395
  }
3398
3396
  async animate(t2, i2 = this.options.keyframeOptions) {
3399
3397
  this.start(), this.frames = t2;
3400
3398
  let s2 = false;
3401
- if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t2 = this.options.onFrames(this), this.log("modified frames", t2)), t2 !== void 0)) {
3399
+ if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t2 = this.options.onFrames(this), this.log("modified frames", t2)), void 0 !== t2)) {
3402
3400
  this.log("animate", [t2, i2]), s2 = true, this.webAnimation = this.element.animate(t2, i2);
3403
3401
  const e2 = this.getController();
3404
- e2 == null || e2.add(this);
3402
+ null == e2 || e2.add(this);
3405
3403
  try {
3406
3404
  await this.webAnimation.finished;
3407
3405
  } catch (t3) {
3408
3406
  }
3409
- e2 == null || e2.remove(this);
3407
+ null == e2 || e2.remove(this);
3410
3408
  }
3411
3409
  return this.didFinish(s2), s2;
3412
3410
  }
3413
3411
  isAnimating() {
3414
3412
  var t2, i2;
3415
- return ((t2 = this.webAnimation) === null || t2 === void 0 ? void 0 : t2.playState) === "running" || ((i2 = this.webAnimation) === null || i2 === void 0 ? void 0 : i2.pending);
3413
+ return "running" === (null === (t2 = this.webAnimation) || void 0 === t2 ? void 0 : t2.playState) || (null === (i2 = this.webAnimation) || void 0 === i2 ? void 0 : i2.pending);
3416
3414
  }
3417
3415
  log(t2, i2) {
3418
3416
  this.shouldLog && !this.isDisabled() && console.log(t2, this.options.id, i2);
@@ -3446,11 +3444,11 @@ class e extends i$2 {
3446
3444
  throw Error(this.constructor.directiveName + "() can only be used in child bindings");
3447
3445
  }
3448
3446
  render(r2) {
3449
- if (r2 === b$1 || r2 == null)
3447
+ if (r2 === b$1 || null == r2)
3450
3448
  return this._t = void 0, this.it = r2;
3451
3449
  if (r2 === x$1)
3452
3450
  return r2;
3453
- if (typeof r2 != "string")
3451
+ if ("string" != typeof r2)
3454
3452
  throw Error(this.constructor.directiveName + "() called with a non-string value");
3455
3453
  if (r2 === this.it)
3456
3454
  return this._t;
@@ -3498,10 +3496,10 @@ function enableCustomLibrary() {
3498
3496
  const _Icons = class {
3499
3497
  static registerIcons(newIcons) {
3500
3498
  const record = icons;
3501
- for (let prefix in newIcons) {
3499
+ for (const prefix in newIcons) {
3502
3500
  const newObj = newIcons[prefix];
3503
3501
  const currentRecord = record[prefix] || {};
3504
- for (let name in newObj) {
3502
+ for (const name in newObj) {
3505
3503
  currentRecord[name] = newObj[name];
3506
3504
  }
3507
3505
  record[prefix] = currentRecord;
@@ -3511,30 +3509,30 @@ const _Icons = class {
3511
3509
  let Icons = _Icons;
3512
3510
  Icons.fontAwesomeNext = {
3513
3511
  get: async (params) => {
3514
- let library = params.library;
3515
- let name = params.name || "";
3512
+ const library = params.library;
3513
+ const name = params.name || "";
3516
3514
  const iconsAsRecord = icons;
3517
3515
  if (library == "custom") {
3518
3516
  enableCustomLibrary();
3519
3517
  }
3520
3518
  if (library && libraries[library]) {
3521
- let libraryItem = libraries[library];
3522
- let prefix = params.prefix || libraryItem.defaultPrefix || "";
3523
- let libIcons = iconsAsRecord[library] || {};
3519
+ const libraryItem = libraries[library];
3520
+ const prefix = params.prefix || libraryItem.defaultPrefix || "";
3521
+ const libIcons = iconsAsRecord[library] || {};
3524
3522
  iconsAsRecord[library] = libIcons;
3525
- let libIconsKey = prefix + "-" + name;
3523
+ const libIconsKey = prefix + "-" + name;
3526
3524
  if (libIcons[libIconsKey])
3527
3525
  return o$2(libIcons[libIconsKey]);
3528
- let url = libraryItem.url.replace("$prefix", prefix).replace("$name", name);
3526
+ const url = libraryItem.url.replace("$prefix", prefix).replace("$name", name);
3529
3527
  if (!loadingGetPromises.has(url)) {
3530
- let promise = new Promise(async (resolve) => {
3531
- let result2 = await fetch(url);
3528
+ const promise = new Promise(async (resolve) => {
3529
+ const result2 = await fetch(url);
3532
3530
  if (!result2.ok) {
3533
3531
  resolve(`<b title="Erreur ${result2.status}">\u{1F636}</b>`);
3534
3532
  return;
3535
3533
  }
3536
3534
  try {
3537
- let text = await result2.text();
3535
+ const text = await result2.text();
3538
3536
  resolve(text);
3539
3537
  } catch (e2) {
3540
3538
  resolve(null);
@@ -3542,7 +3540,7 @@ Icons.fontAwesomeNext = {
3542
3540
  });
3543
3541
  loadingGetPromises.set(url, promise);
3544
3542
  }
3545
- let result = await loadingGetPromises.get(url);
3543
+ const result = await loadingGetPromises.get(url);
3546
3544
  loadingGetPromises.delete(url);
3547
3545
  libIcons[libIconsKey] = result || "";
3548
3546
  return o$2(result);
@@ -3757,7 +3755,8 @@ let SonicToast$1 = class extends s$3 {
3757
3755
  margin: "1rem"
3758
3756
  };
3759
3757
  if (!isIframe) {
3760
- styles = __spreadProps(__spreadValues({}, styles), {
3758
+ styles = {
3759
+ ...styles,
3761
3760
  margin: "0",
3762
3761
  width: "calc(100% - 2.5rem)",
3763
3762
  position: "fixed",
@@ -3766,29 +3765,33 @@ let SonicToast$1 = class extends s$3 {
3766
3765
  zIndex: "10000",
3767
3766
  maxWidth: "64ch",
3768
3767
  flexDirection: "column-reverse"
3769
- });
3768
+ };
3770
3769
  }
3771
3770
  if (!this.toasts)
3772
3771
  return b$1;
3773
- return y`<div aria-live="polite" style="${i$1(styles)}">${c$1(this.toasts, (item) => item.id, (item) => y`<sonic-toast-item maxHeight="${isIframe ? "none" : "10rem"}" status="${l$2(item.status)}" title="${l$2(item.title)}" ?ghost="${item.ghost}" ?dismissForever="${item.dismissForever}" ?preserve="${item.preserve}" id="${l$2(item.id)}" @hide="${() => this.removeItem(item)}" ${$({
3774
- keyframeOptions: {
3775
- duration: 250,
3776
- easing: `cubic-bezier(0.250, 0.250, 0.420, 1.225)`
3777
- },
3778
- in: [{ transform: "translateY(0) scale(1.25)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }],
3779
- out: [
3780
- {
3781
- transform: "scale(.90) ",
3782
- opacity: 0,
3783
- duration: 3e3,
3784
- easing: `ease-in-out`
3785
- }
3786
- ],
3787
- stabilizeOut: true
3788
- })}>${item.text ? o$2(item.text) : ""}</sonic-toast-item>`)}</div>`;
3772
+ return y`<div aria-live="polite" style="${i$1(styles)}">${c$1(
3773
+ this.toasts,
3774
+ (item) => item.id,
3775
+ (item) => y`<sonic-toast-item maxHeight="${isIframe ? "none" : "10rem"}" status="${l$2(item.status)}" title="${l$2(item.title)}" ?ghost="${item.ghost}" ?dismissForever="${item.dismissForever}" ?preserve="${item.preserve}" id="${l$2(item.id)}" @hide="${() => this.removeItem(item)}" ${$({
3776
+ keyframeOptions: {
3777
+ duration: 250,
3778
+ easing: `cubic-bezier(0.250, 0.250, 0.420, 1.225)`
3779
+ },
3780
+ in: [{ transform: "translateY(0) scale(1.25)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }],
3781
+ out: [
3782
+ {
3783
+ transform: "scale(.90) ",
3784
+ opacity: 0,
3785
+ duration: 3e3,
3786
+ easing: `ease-in-out`
3787
+ }
3788
+ ],
3789
+ stabilizeOut: true
3790
+ })}>${item.text ? o$2(item.text) : ""}</sonic-toast-item>`
3791
+ )}</div>`;
3789
3792
  }
3790
3793
  static removeAll() {
3791
- let toastComponent = document.querySelector("sonic-toast");
3794
+ const toastComponent = document.querySelector("sonic-toast");
3792
3795
  if (!toastComponent)
3793
3796
  return;
3794
3797
  toastComponent.toasts = toastComponent.toasts.filter((item) => item.ghost);
@@ -3796,11 +3799,11 @@ let SonicToast$1 = class extends s$3 {
3796
3799
  static add(conf) {
3797
3800
  var _a2;
3798
3801
  if (!document.querySelector("sonic-toast")) {
3799
- let toastComponent2 = document.createElement("sonic-toast");
3800
- let container = document.querySelector("sonic-theme") || document.body;
3802
+ const toastComponent2 = document.createElement("sonic-toast");
3803
+ const container = document.querySelector("sonic-theme") || document.body;
3801
3804
  container.prepend(toastComponent2);
3802
3805
  }
3803
- let toastComponent = document.querySelector("sonic-toast");
3806
+ const toastComponent = document.querySelector("sonic-toast");
3804
3807
  const nextId = (_a2 = conf.id) != null ? _a2 : new Date().valueOf();
3805
3808
  const interactiveRegExp = new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>");
3806
3809
  const hasInteractive = interactiveRegExp.test(conf.text);
@@ -3821,9 +3824,9 @@ let SonicToast$1 = class extends s$3 {
3821
3824
  }
3822
3825
  }
3823
3826
  if (toastComponent.toasts.length > 0) {
3824
- let toastA = __spreadValues({}, currentToast);
3827
+ const toastA = { ...currentToast };
3825
3828
  for (const toast of toastComponent.toasts) {
3826
- let toastB = __spreadValues({}, toast);
3829
+ const toastB = { ...toast };
3827
3830
  toastA.id = toastB.id = 0;
3828
3831
  if (Objects$1.shallowEqual(toastA, toastB)) {
3829
3832
  return null;
@@ -3834,17 +3837,16 @@ let SonicToast$1 = class extends s$3 {
3834
3837
  return currentToast;
3835
3838
  }
3836
3839
  static removeItem(toastToRemove) {
3837
- let toastComponent = document.querySelector("sonic-toast");
3840
+ const toastComponent = document.querySelector("sonic-toast");
3838
3841
  if (!toastComponent)
3839
3842
  return;
3840
- console.log(toastToRemove);
3841
3843
  toastComponent.removeItem(toastToRemove);
3842
3844
  }
3843
3845
  removeItem(toastToRemove) {
3844
3846
  if (!toastToRemove)
3845
3847
  return;
3846
3848
  this.toasts = this.toasts.filter((toast) => {
3847
- toast = __spreadValues({}, toast);
3849
+ toast = { ...toast };
3848
3850
  delete toast.id;
3849
3851
  return !Objects$1.shallowEqual(toast, toastToRemove, false);
3850
3852
  });
@@ -3886,6 +3888,12 @@ const Fetcher$1 = (superClass, propsType) => {
3886
3888
  this.refetchEveryMs = 0;
3887
3889
  this.dataProvider = "";
3888
3890
  }
3891
+ get props() {
3892
+ return super.props;
3893
+ }
3894
+ set props(value) {
3895
+ super.props = value;
3896
+ }
3889
3897
  set endPoint(value) {
3890
3898
  this._endPoint = value;
3891
3899
  if (this.isConnected)
@@ -3903,12 +3911,11 @@ const Fetcher$1 = (superClass, propsType) => {
3903
3911
  this.dispatchEvent(new CustomEvent("loading", { detail: this }));
3904
3912
  this.isLoading = true;
3905
3913
  this.requestUpdate();
3906
- let data;
3907
- let hasLoader = this.isDefaultLoaderEnabled && !this.hasAttribute("noLoader");
3914
+ const hasLoader = this.isDefaultLoaderEnabled && !this.hasAttribute("noLoader");
3908
3915
  if (hasLoader)
3909
3916
  Loader.show();
3910
- let headerData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
3911
- data = await this.api.get(this.endPoint || this.dataProvider || "", headerData);
3917
+ const headerData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
3918
+ let data = await this.api.get(this.endPoint || this.dataProvider || "", headerData);
3912
3919
  if (!data) {
3913
3920
  SonicToast$1.add({ text: "Network Error", status: "error" });
3914
3921
  this.isLoading = false;
@@ -3921,7 +3928,7 @@ const Fetcher$1 = (superClass, propsType) => {
3921
3928
  if (hasLoader)
3922
3929
  Loader.hide();
3923
3930
  if (this.key) {
3924
- let response = data._sonic_http_response_;
3931
+ const response = data._sonic_http_response_;
3925
3932
  data = Objects$1.traverse(data, this.key.split("."), this.hasAttribute("preserveOtherKeys"));
3926
3933
  if (data && Objects$1.isObject(data) && response)
3927
3934
  data._sonic_http_response_ = response;
@@ -3964,18 +3971,17 @@ const Fetcher$1 = (superClass, propsType) => {
3964
3971
  if (lazyLoad === null) {
3965
3972
  return;
3966
3973
  }
3967
- let options = {
3974
+ const options = {
3968
3975
  root: null,
3969
3976
  rootMargin: Math.max(window.innerWidth, window.innerHeight) + "px"
3970
3977
  };
3971
3978
  this.iObserver = new IntersectionObserver((entries) => this.onIntersection(entries), options);
3972
- let that = this;
3973
- let elt = this.shadowRoot ? this.shadowRoot.children[0] : that.children[0];
3979
+ let elt = this.shadowRoot ? this.shadowRoot.children[0] : this.children[0];
3974
3980
  if (elt && elt.nodeName.toLocaleLowerCase() == "slot")
3975
3981
  elt = elt.children[0];
3976
3982
  if (!elt || elt.nodeName.toLocaleLowerCase() == "template") {
3977
3983
  elt = document.createElement("span");
3978
- that.appendChild(elt);
3984
+ this.appendChild(elt);
3979
3985
  }
3980
3986
  if (elt) {
3981
3987
  this.iObserver.observe(elt);
@@ -3991,6 +3997,9 @@ const Fetcher$1 = (superClass, propsType) => {
3991
3997
  }
3992
3998
  }
3993
3999
  }
4000
+ __decorateClass$_([
4001
+ e$7()
4002
+ ], FetcherElement.prototype, "props", 1);
3994
4003
  __decorateClass$_([
3995
4004
  e$7({ type: String })
3996
4005
  ], FetcherElement.prototype, "endPoint", 1);
@@ -4139,8 +4148,11 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
4139
4148
  }
4140
4149
  formatProps() {
4141
4150
  let props = this.props;
4142
- let response = props._sonic_http_response_;
4143
- let extractValues = this.hasAttribute("extractValues");
4151
+ if (props == null) {
4152
+ return null;
4153
+ }
4154
+ const response = props._sonic_http_response_;
4155
+ const extractValues = this.hasAttribute("extractValues");
4144
4156
  if (!Array.isArray(props)) {
4145
4157
  if (extractValues) {
4146
4158
  props = Object.entries(props).map(([k2, v2]) => ({ key: k2, value: v2 }));
@@ -4167,30 +4179,39 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
4167
4179
  const propsIsBaddlyFormatted = !Objects$1.isObject(this.props);
4168
4180
  if (propsIsBaddlyFormatted)
4169
4181
  return y`<div></div>`;
4170
- let props = this.formatProps();
4171
- if (props.length == 0 && this.templateParts["no-item"]) {
4182
+ const props = this.formatProps();
4183
+ if (((props == null ? void 0 : props.length) || 0) == 0 && this.templateParts["no-item"]) {
4172
4184
  return o$1(this.templateParts["no-item"]);
4173
4185
  }
4174
4186
  const templateCount = this.templateList.length;
4175
4187
  let counter = -1;
4176
4188
  const extractValues = this.hasAttribute("extractValues");
4177
4189
  const separator = this.templateParts["separator"];
4178
- const length = props.length;
4179
- return y`${props.map((item, index) => {
4180
- let templatePartName = item[this.templateKey];
4181
- let hasCustomTemplate = templatePartName && this.templateParts[templatePartName];
4182
- let key = extractValues ? item == null ? void 0 : item[this.idKey] : index;
4190
+ const length = (props == null ? void 0 : props.length) || 0;
4191
+ return y`${props == null ? void 0 : props.map((item, index) => {
4192
+ if (item == null)
4193
+ return b$1;
4194
+ if (typeof item != "object" || Array.isArray(item))
4195
+ return b$1;
4196
+ const templatePartName = item[this.templateKey];
4197
+ let templatePart = null;
4198
+ if (templatePartName && typeof templatePartName == "string") {
4199
+ templatePart = this.templateParts[templatePartName];
4200
+ }
4201
+ const key = extractValues ? item == null ? void 0 : item[this.idKey] : index;
4183
4202
  if (key == "_sonic_http_response_")
4184
4203
  return b$1;
4185
- let pub = this.publisher[key];
4204
+ if (typeof key != "string" && typeof key != "number")
4205
+ return b$1;
4206
+ const pub = this.publisher[key];
4186
4207
  pub._key_ = key + "";
4187
4208
  counter++;
4188
4209
  const isNotLast = index < length - 1;
4189
- if (hasCustomTemplate)
4210
+ if (templatePart)
4190
4211
  counter = -1;
4191
4212
  return item && y`<sonic-subscriber ?debug="${this.defferedDebug === true}" .bindPublisher="${function() {
4192
4213
  return pub;
4193
- }}" .propertyMap?="${this.itemPropertyMap}" dataProvider="${this.dataProvider}/list-item/${key}">${hasCustomTemplate ? o$1(this.templateParts[templatePartName]) : o$1(this.templateList[counter % templateCount])}</sonic-subscriber>${separator && isNotLast ? o$1(separator) : b$1}`;
4214
+ }}" .propertyMap?="${this.itemPropertyMap}" dataProvider="${this.dataProvider}/list-item/${key}">${templatePart ? o$1(templatePart) : o$1(this.templateList[counter % templateCount])}</sonic-subscriber>${separator && isNotLast ? o$1(separator) : b$1}`;
4194
4215
  })}`;
4195
4216
  }
4196
4217
  };
@@ -4240,7 +4261,7 @@ let Queue = class extends Subscriber$1(s$3) {
4240
4261
  this.nextHadEvent = false;
4241
4262
  }
4242
4263
  disconnectedCallback() {
4243
- for (let dataProvider of this.listDataProviders) {
4264
+ for (const dataProvider of this.listDataProviders) {
4244
4265
  PublisherManager$1.delete(dataProvider);
4245
4266
  }
4246
4267
  super.disconnectedCallback();
@@ -4260,11 +4281,12 @@ let Queue = class extends Subscriber$1(s$3) {
4260
4281
  if (!this.templates)
4261
4282
  this.templates = Array.from(this.querySelectorAll("template"));
4262
4283
  this.lastRequestTime = new Date().getTime();
4263
- this.next();
4284
+ let func = window.requestAnimationFrame;
4285
+ func(() => this.next());
4264
4286
  }
4265
4287
  configFilter() {
4266
4288
  var _a2;
4267
- let dataFilterProvider = this.getAncestorAttributeValue("dataFilterProvider");
4289
+ const dataFilterProvider = this.getAncestorAttributeValue("dataFilterProvider");
4268
4290
  if (!dataFilterProvider)
4269
4291
  return;
4270
4292
  this.filterPublisher = PublisherManager$1.getInstance().get(dataFilterProvider);
@@ -4277,28 +4299,31 @@ let Queue = class extends Subscriber$1(s$3) {
4277
4299
  }
4278
4300
  updateFilteredContent() {
4279
4301
  var _a2;
4280
- let dataProvider = this.dataProviderExpression;
4281
- let split = dataProvider.split("?");
4302
+ const dataProvider = this.dataProviderExpression;
4303
+ const split = dataProvider.split("?");
4282
4304
  split.shift();
4283
4305
  let searchParams = new URLSearchParams(split.join("?"));
4284
4306
  let filterData = (_a2 = this.filterPublisher) == null ? void 0 : _a2.get();
4285
4307
  let filteredFieldsArray = this.filteredFields.split(" ");
4286
4308
  for (let f2 in filterData) {
4287
- if (this.filteredFields && !filteredFieldsArray.includes(f2) || filterData[f2] == null)
4309
+ let value = filterData[f2];
4310
+ if (Array.isArray(value))
4311
+ value = value.filter((v2) => v2 !== null);
4312
+ if (this.filteredFields && !filteredFieldsArray.includes(f2) || value == null || value.toString() === "")
4288
4313
  continue;
4289
- searchParams.set(f2, filterData[f2]);
4314
+ searchParams.set(f2, filterData[f2].toString());
4290
4315
  }
4291
- let searchHash = searchParams.toString();
4316
+ const searchHash = searchParams.toString();
4292
4317
  if (searchHash == this.searchHash)
4293
4318
  return;
4294
4319
  this.searchHash = searchHash;
4295
- for (let dataProvider2 of this.listDataProviders) {
4320
+ for (const dataProvider2 of this.listDataProviders) {
4296
4321
  PublisherManager$1.delete(dataProvider2);
4297
4322
  }
4298
4323
  this.listDataProviders = [];
4299
4324
  clearTimeout(this.filterTimeoutId);
4300
4325
  this.filterTimeoutId = setTimeout(() => {
4301
- let count = this.resultCount;
4326
+ const count = this.resultCount;
4302
4327
  this.props = null;
4303
4328
  this.resultCount = count;
4304
4329
  this.requestId++;
@@ -4327,7 +4352,7 @@ let Queue = class extends Subscriber$1(s$3) {
4327
4352
  }
4328
4353
  }
4329
4354
  if (!Array.isArray(this.props)) {
4330
- let newProps2 = [];
4355
+ const newProps2 = [];
4331
4356
  newProps2.resultCount = this.resultCount;
4332
4357
  this.props = newProps2;
4333
4358
  } else {
@@ -4342,20 +4367,22 @@ let Queue = class extends Subscriber$1(s$3) {
4342
4367
  if (this.limit > 15)
4343
4368
  this.limit = 15;
4344
4369
  let dataProvider = this.dataProviderExpression.replace("$offset", offset + "").replace("$limit", this.limit + "");
4345
- let split = dataProvider.split("?");
4346
- let endpoint = split.shift();
4347
- let searchParams = new URLSearchParams(split.join("?"));
4348
- let filterData = (_a2 = this.filterPublisher) == null ? void 0 : _a2.get();
4349
- let filteredFieldsArray = this.filteredFields.split(" ");
4350
- for (let f2 in filterData) {
4370
+ const split = dataProvider.split("?");
4371
+ const endpoint = split.shift();
4372
+ const searchParams = new URLSearchParams(split.join("?"));
4373
+ const filterData = (_a2 = this.filterPublisher) == null ? void 0 : _a2.get();
4374
+ const filteredFieldsArray = this.filteredFields.split(" ");
4375
+ for (const f2 in filterData) {
4351
4376
  if (this.filteredFields && !filteredFieldsArray.includes(f2) || filterData[f2] == null)
4352
4377
  continue;
4353
4378
  searchParams.set(f2, filterData[f2]);
4354
4379
  }
4380
+ if (!this.searchHash)
4381
+ this.searchHash = searchParams.toString();
4355
4382
  dataProvider = endpoint + "?" + searchParams.toString();
4356
4383
  this.listDataProviders.push(dataProvider);
4357
4384
  this.currentScrollPosition = (_b = document.scrollingElement) == null ? void 0 : _b.scrollTop;
4358
- let newProps = [
4385
+ const newProps = [
4359
4386
  ...this.props,
4360
4387
  {
4361
4388
  id: searchParams.toString() + "/" + this.props.length,
@@ -4371,18 +4398,22 @@ let Queue = class extends Subscriber$1(s$3) {
4371
4398
  render() {
4372
4399
  if (this.currentScrollPosition) {
4373
4400
  window.requestAnimationFrame(() => {
4374
- if (document.scrollingElement)
4401
+ if (document.scrollingElement && this.currentScrollPosition != void 0)
4375
4402
  document.scrollingElement.scrollTop = this.currentScrollPosition;
4376
4403
  this.currentScrollPosition = void 0;
4377
4404
  });
4378
4405
  }
4379
4406
  if (!Array.isArray(this.props))
4380
4407
  return b$1;
4381
- return y`${c$1(this.props, (item) => item.id, (item, index) => {
4382
- var _a2;
4383
- let templates = index == 0 ? this.templates : (_a2 = this.templates) == null ? void 0 : _a2.filter((elt) => elt.getAttribute("data-value") != "no-item");
4384
- return y`<sonic-list fetch displayContents lazyload requestId="${this.requestId}" ?itemPropertyMap="${this.itemPropertyMap}" ?debug="${this.defferedDebug === true}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${item.dataProvider}" idKey="${this.idKey}" .templates="${templates}"></sonic-list>`;
4385
- })}`;
4408
+ return y`${c$1(
4409
+ this.props,
4410
+ (item) => item.id,
4411
+ (item, index) => {
4412
+ var _a2;
4413
+ const templates = index == 0 ? this.templates : (_a2 = this.templates) == null ? void 0 : _a2.filter((elt) => elt.getAttribute("data-value") != "no-item");
4414
+ return y`<sonic-list fetch displayContents lazyload requestId="${this.requestId}" .itemPropertyMap="${this.itemPropertyMap}" ?debug="${this.defferedDebug === true}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${item.dataProvider}" idKey="${this.idKey}" .templates="${templates}"></sonic-list>`;
4415
+ }
4416
+ )}`;
4386
4417
  }
4387
4418
  };
4388
4419
  Queue.instanceCounter = 0;
@@ -4456,11 +4487,13 @@ let Submit = class extends Subscriber$1(s$3) {
4456
4487
  if (!form2)
4457
4488
  return;
4458
4489
  const formDataProvider = this.getAncestorAttributeValue("formDataProvider");
4459
- let formData = PublisherManager$1.get(formDataProvider).get();
4490
+ const formData = PublisherManager$1.get(formDataProvider).get();
4460
4491
  for (const name in formData) {
4461
4492
  if (name == "isFormValid")
4462
4493
  continue;
4463
- let control = form2.querySelector('input[name="' + name + '"], select[name="' + name + '"], textarea[name="' + name + '"]');
4494
+ let control = form2.querySelector(
4495
+ 'input[name="' + name + '"], select[name="' + name + '"], textarea[name="' + name + '"]'
4496
+ );
4464
4497
  if (!control) {
4465
4498
  control = document.createElement("input");
4466
4499
  control.type = "hidden";
@@ -4477,7 +4510,7 @@ let Submit = class extends Subscriber$1(s$3) {
4477
4510
  control.value = value;
4478
4511
  }
4479
4512
  }
4480
- let submitButton = document.createElement("input");
4513
+ const submitButton = document.createElement("input");
4481
4514
  submitButton.name = this.name;
4482
4515
  submitButton.style.display = "none";
4483
4516
  submitButton.value = this.value;
@@ -4496,14 +4529,14 @@ let Submit = class extends Subscriber$1(s$3) {
4496
4529
  if (this.publisher)
4497
4530
  this.publisher.disabled = true;
4498
4531
  formPublisher.isFormValid;
4499
- let native = this.hasAttribute("native");
4532
+ const native = this.hasAttribute("native");
4500
4533
  if (native) {
4501
4534
  this.submitNativeForm();
4502
4535
  return;
4503
4536
  }
4504
- let method = ((_a2 = this.getAttribute("method")) == null ? void 0 : _a2.toLocaleLowerCase()) || "post";
4505
- let sendAsFormData = this.hasAttribute("sendAsFormData");
4506
- let formData = formPublisher.get();
4537
+ const method = ((_a2 = this.getAttribute("method")) == null ? void 0 : _a2.toLocaleLowerCase()) || "post";
4538
+ const sendAsFormData = this.hasAttribute("sendAsFormData");
4539
+ const formData = formPublisher.get();
4507
4540
  delete formData.isFormValid;
4508
4541
  const headesDataProvider = this.getAncestorAttributeValue("headersDataProvider");
4509
4542
  const headerPublisher = headesDataProvider ? PublisherManager$1.getInstance().get(headesDataProvider) : null;
@@ -4511,10 +4544,10 @@ let Submit = class extends Subscriber$1(s$3) {
4511
4544
  if (headerPublisher)
4512
4545
  headerData = headerPublisher.get();
4513
4546
  let result = null;
4514
- let dataProvider = this.getAncestorAttributeValue("dataProvider");
4515
- let endPoint = this.endPoint || dataProvider;
4547
+ const dataProvider = this.getAncestorAttributeValue("dataProvider");
4548
+ const endPoint = this.endPoint || dataProvider;
4516
4549
  Loader.show();
4517
- let sendData = async () => {
4550
+ const sendData = async () => {
4518
4551
  var _a3, _b2, _c2, _d, _e, _f, _g;
4519
4552
  if (sendAsFormData) {
4520
4553
  result = await ((_a3 = this.api) == null ? void 0 : _a3.submitFormData(endPoint, formData, method, headerData));
@@ -4539,30 +4572,30 @@ let Submit = class extends Subscriber$1(s$3) {
4539
4572
  result = { messages: [{ content: "Network Error", status: "error" }] };
4540
4573
  else if (result._sonic_http_response_ && !result._sonic_http_response_.ok && Object.keys(result).length === 1)
4541
4574
  result.messages = [{ content: "Network Error", status: "error" }];
4542
- let clearedDataProvider = this.getAncestorAttributeValue("clearedDataOnSuccess");
4575
+ const clearedDataProvider = this.getAncestorAttributeValue("clearedDataOnSuccess");
4543
4576
  if (clearedDataProvider) {
4544
4577
  clearedDataProvider.split(" ").forEach((dataProvider2) => PublisherManager$1.get(dataProvider2).set({}));
4545
4578
  }
4546
- let username_key = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username";
4547
- let password_key = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
4579
+ const username_key = this.hasAttribute("usernameKey") ? this.getAttribute("usernameKey") : "username";
4580
+ const password_key = this.hasAttribute("passwordKey") ? this.getAttribute("passwordKey") : "password";
4548
4581
  if (((_g = (_f = this.api) == null ? void 0 : _f.lastResult) == null ? void 0 : _g.ok) && formData[username_key] && formData[password_key]) {
4549
4582
  this.saveCredentials(formData[username_key], formData[password_key]);
4550
4583
  }
4551
4584
  if (this.submitResultKey) {
4552
4585
  result = Objects$1.traverse(result, this.submitResultKey.split("."), true);
4553
4586
  }
4554
- let submitResultDataProvider = this.getAncestorAttributeValue("submitResultDataProvider");
4587
+ const submitResultDataProvider = this.getAncestorAttributeValue("submitResultDataProvider");
4555
4588
  if (submitResultDataProvider)
4556
4589
  PublisherManager$1.get(submitResultDataProvider).set(result);
4557
4590
  if (this.publisher)
4558
4591
  this.publisher.disabled = null;
4559
4592
  };
4560
- let captchaPublisher = (headerPublisher == null ? void 0 : headerPublisher.needsCaptchaValidation.get()) ? headerPublisher : formPublisher.needsCaptchaValidation.get() ? formPublisher : null;
4593
+ const captchaPublisher = (headerPublisher == null ? void 0 : headerPublisher.needsCaptchaValidation.get()) ? headerPublisher : formPublisher.needsCaptchaValidation.get() ? formPublisher : null;
4561
4594
  if (captchaPublisher) {
4562
4595
  captchaPublisher.captchaMethod = method;
4563
4596
  captchaPublisher.captchaAction = (_c = (_b = dataProvider == null ? void 0 : dataProvider.split("?")[0]) != null ? _b : this.getAncestorAttributeValue("formDataProvider")) != null ? _c : "submit";
4564
4597
  captchaPublisher.captchaToken = "request_token";
4565
- let captchaAssign = (token) => {
4598
+ const captchaAssign = (token) => {
4566
4599
  if (token != "request_token") {
4567
4600
  sendData();
4568
4601
  captchaPublisher.captchaToken.offAssign(captchaAssign);
@@ -4575,7 +4608,7 @@ let Submit = class extends Subscriber$1(s$3) {
4575
4608
  }
4576
4609
  async saveCredentials(username, password2) {
4577
4610
  if ("PasswordCredential" in window) {
4578
- let credential = new window.PasswordCredential({
4611
+ const credential = new window.PasswordCredential({
4579
4612
  id: username,
4580
4613
  password: password2
4581
4614
  });
@@ -4955,7 +4988,7 @@ var urlPattern = { exports: {} };
4955
4988
  return;
4956
4989
  }
4957
4990
  this.isRegex = arg1 instanceof RegExp;
4958
- if (!(typeof arg1 === "string" || this.isRegex)) {
4991
+ if (!("string" === typeof arg1 || this.isRegex)) {
4959
4992
  throw new TypeError("argument must be a regex or a string");
4960
4993
  }
4961
4994
  if (this.isRegex) {
@@ -5077,11 +5110,11 @@ let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5077
5110
  return this._location;
5078
5111
  }
5079
5112
  render() {
5080
- let templates = [];
5081
- for (let t2 of this.templatePartsList) {
5082
- let path = t2.getAttribute(this.templateValueAttribute);
5083
- let regexp = new RegExp(path);
5084
- let urlPattern2 = new UrlPattern(path);
5113
+ const templates = [];
5114
+ for (const t2 of this.templatePartsList) {
5115
+ const path = t2.getAttribute(this.templateValueAttribute) || "";
5116
+ const regexp = new RegExp(path);
5117
+ const urlPattern2 = new UrlPattern(path);
5085
5118
  if (regexp.test(this.location)) {
5086
5119
  templates.push(t2);
5087
5120
  } else if (urlPattern2.match(this.location)) {
@@ -5089,30 +5122,34 @@ let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5089
5122
  templates.push(t2);
5090
5123
  }
5091
5124
  }
5092
- return y`${c$1(templates, (template, index) => {
5093
- return index + new Date().getTime();
5094
- }, (template) => {
5095
- var _a2;
5096
- if (template.title)
5097
- document.title = template.title;
5098
- if (template.hasAttribute("dataProviderExpression")) {
5099
- let dataProvider = "";
5100
- let dataProviderExpression = template.getAttribute("dataProviderExpression");
5101
- if (template.getAttribute("mode") == "patternMatching") {
5102
- const matcher = new UrlPattern(template.getAttribute(this.templateValueAttribute));
5103
- const filler = new UrlPattern(dataProviderExpression);
5104
- dataProvider = filler.stringify(matcher.match(this.location));
5105
- } else {
5106
- const regexp = new RegExp(template.getAttribute(this.templateValueAttribute));
5107
- let match = (this.location + "").match(regexp);
5108
- if (match) {
5109
- dataProvider = (_a2 = match.shift()) == null ? void 0 : _a2.replace(regexp, dataProviderExpression);
5125
+ return y`${c$1(
5126
+ templates,
5127
+ (template, index) => {
5128
+ return index + new Date().getTime();
5129
+ },
5130
+ (template) => {
5131
+ var _a2;
5132
+ if (template.title)
5133
+ document.title = template.title;
5134
+ if (template.hasAttribute("dataProviderExpression")) {
5135
+ let dataProvider = "";
5136
+ const dataProviderExpression = template.getAttribute("dataProviderExpression") || "";
5137
+ if (template.getAttribute("mode") == "patternMatching") {
5138
+ const matcher = new UrlPattern(template.getAttribute(this.templateValueAttribute) || "");
5139
+ const filler = new UrlPattern(dataProviderExpression);
5140
+ dataProvider = filler.stringify(matcher.match(this.location));
5141
+ } else {
5142
+ const regexp = new RegExp(template.getAttribute(this.templateValueAttribute) || "");
5143
+ const match = (this.location + "").match(regexp);
5144
+ if (match) {
5145
+ dataProvider = ((_a2 = match.shift()) == null ? void 0 : _a2.replace(regexp, dataProviderExpression)) || "";
5146
+ }
5110
5147
  }
5148
+ return y`<div style="display:contents" dataProvider="${dataProvider}">${o$1(template)}</div>`;
5111
5149
  }
5112
- return y`<div style="display:contents" dataProvider="${dataProvider}">${o$1(template)}</div>`;
5150
+ return o$1(template);
5113
5151
  }
5114
- return o$1(template);
5115
- })}`;
5152
+ )}`;
5116
5153
  }
5117
5154
  };
5118
5155
  __decorateClass$T([
@@ -5134,11 +5171,6 @@ var __decorateClass$S = (decorators, target, key, kind) => {
5134
5171
  };
5135
5172
  const tagName$O = "sonic-redirect";
5136
5173
  let SonicRedirect = class extends Subscriber$1(s$3) {
5137
- constructor() {
5138
- super(...arguments);
5139
- this.udpateCallBack = () => {
5140
- };
5141
- }
5142
5174
  connectedCallback() {
5143
5175
  this.noShadowDom = "";
5144
5176
  this.style.display = "none";
@@ -5159,8 +5191,8 @@ let SonicRedirect = class extends Subscriber$1(s$3) {
5159
5191
  }
5160
5192
  if (!this.props)
5161
5193
  return;
5162
- let onDataPath = this.getAttribute("onData").split(".");
5163
- let searchedData = Objects$1.traverse(this.props, onDataPath);
5194
+ const onDataPath = this.getAttribute("onData").split(".");
5195
+ const searchedData = Objects$1.traverse(this.props, onDataPath);
5164
5196
  if (searchedData && !(Objects$1.isObject(searchedData) && searchedData)) {
5165
5197
  LocationHandler$1.changeFromComponent(this);
5166
5198
  }
@@ -5199,8 +5231,8 @@ let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5199
5231
  }
5200
5232
  if (this.statePath) {
5201
5233
  this.statePublisher = this.publisher;
5202
- let split = this.statePath.split(".");
5203
- for (let s2 of split) {
5234
+ const split = this.statePath.split(".");
5235
+ for (const s2 of split) {
5204
5236
  this.statePublisher = this.statePublisher[s2];
5205
5237
  }
5206
5238
  this.statePublisher.onAssign(this.onAssign);
@@ -5213,12 +5245,12 @@ let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5213
5245
  super.disconnectedCallback();
5214
5246
  }
5215
5247
  render() {
5216
- let templates = [];
5248
+ const templates = [];
5217
5249
  let state = this.state;
5218
5250
  if (!Array.isArray(state) && Objects$1.isObject(state) || state === void 0) {
5219
5251
  state = "";
5220
5252
  }
5221
- for (let t2 of this.templatePartsList) {
5253
+ for (const t2 of this.templatePartsList) {
5222
5254
  let path = t2.getAttribute(this.templateValueAttribute);
5223
5255
  let stateToMatch = state;
5224
5256
  if (this.inverted) {
@@ -5227,50 +5259,54 @@ let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5227
5259
  }
5228
5260
  if (path == "")
5229
5261
  path = this.inverted ? ".*?" : "^$";
5230
- let regexp = new RegExp(path);
5262
+ const regexp = new RegExp(path);
5231
5263
  if (regexp.test(stateToMatch)) {
5232
5264
  templates.push(t2);
5233
5265
  t2.removeAttribute("mode");
5234
5266
  } else {
5235
- let urlPattern2 = new UrlPattern(path);
5267
+ const urlPattern2 = new UrlPattern(path);
5236
5268
  if (urlPattern2.names.length > 0 && urlPattern2.match(stateToMatch)) {
5237
5269
  t2.setAttribute("mode", "patternMatching");
5238
5270
  templates.push(t2);
5239
5271
  }
5240
5272
  }
5241
5273
  }
5242
- return y`${c$1(templates, (template, index) => {
5243
- return index + new Date().getTime();
5244
- }, (template) => {
5245
- var _a2;
5246
- if (template.title)
5247
- document.title = template.title;
5248
- if (template.hasAttribute("dataProviderExpression")) {
5249
- let dataProviderExpression = template.getAttribute("dataProviderExpression");
5250
- let dataProvider = "";
5251
- let stateToMatch = state;
5252
- let path = template.getAttribute(this.templateValueAttribute);
5253
- if (this.inverted) {
5254
- stateToMatch = path;
5255
- path = state;
5256
- }
5257
- if (path == "")
5258
- path = this.inverted ? "*" : "^$";
5259
- if (template.getAttribute("mode") == "patternMatching") {
5260
- const matcher = new UrlPattern(path);
5261
- const filler = new UrlPattern(dataProviderExpression);
5262
- dataProvider = filler.stringify(matcher.match(stateToMatch));
5263
- } else {
5264
- const regexp = new RegExp(path);
5265
- let match = (stateToMatch + "").match(regexp);
5266
- if (match) {
5267
- dataProvider = (_a2 = match.shift()) == null ? void 0 : _a2.replace(regexp, dataProviderExpression);
5274
+ return y`${c$1(
5275
+ templates,
5276
+ (template, index) => {
5277
+ return index + new Date().getTime();
5278
+ },
5279
+ (template) => {
5280
+ var _a2;
5281
+ if (template.title)
5282
+ document.title = template.title;
5283
+ if (template.hasAttribute("dataProviderExpression")) {
5284
+ const dataProviderExpression = template.getAttribute("dataProviderExpression");
5285
+ let dataProvider = "";
5286
+ let stateToMatch = state;
5287
+ let path = template.getAttribute(this.templateValueAttribute);
5288
+ if (this.inverted) {
5289
+ stateToMatch = path;
5290
+ path = state;
5268
5291
  }
5292
+ if (path == "")
5293
+ path = this.inverted ? "*" : "^$";
5294
+ if (template.getAttribute("mode") == "patternMatching") {
5295
+ const matcher = new UrlPattern(path);
5296
+ const filler = new UrlPattern(dataProviderExpression);
5297
+ dataProvider = filler.stringify(matcher.match(stateToMatch));
5298
+ } else {
5299
+ const regexp = new RegExp(path);
5300
+ const match = (stateToMatch + "").match(regexp);
5301
+ if (match) {
5302
+ dataProvider = (_a2 = match.shift()) == null ? void 0 : _a2.replace(regexp, dataProviderExpression);
5303
+ }
5304
+ }
5305
+ return y`<div style="display:contents" dataProvider="${dataProvider}">${o$1(template)}</div>`;
5269
5306
  }
5270
- return y`<div style="display:contents" dataProvider="${dataProvider}">${o$1(template)}</div>`;
5307
+ return o$1(template);
5271
5308
  }
5272
- return o$1(template);
5273
- })}`;
5309
+ )}`;
5274
5310
  }
5275
5311
  };
5276
5312
  __decorateClass$R([
@@ -5467,35 +5503,36 @@ var default_library = {
5467
5503
  divider
5468
5504
  };
5469
5505
  class SDUIDescriptorTransformer {
5470
- constructor() {
5471
- }
5472
5506
  async transform(sduiDescriptor, transformDescriptor) {
5473
5507
  this.sduiDescriptor = sduiDescriptor;
5474
5508
  if (this.sduiDescriptor.library) {
5475
- for (let key in transformDescriptor.library) {
5509
+ for (const key in transformDescriptor.library) {
5476
5510
  this.sduiDescriptor.library[key] = transformDescriptor.library[key];
5477
5511
  }
5478
5512
  }
5479
- for (let item of transformDescriptor.transforms) {
5513
+ for (const item of transformDescriptor.transforms) {
5480
5514
  this.transformAction(item);
5481
5515
  }
5482
5516
  }
5483
5517
  transformAction(transformAction) {
5484
- let uis = this.getNodesMatchingPatterns(transformAction.patterns, this.sduiDescriptor);
5485
- this[transformAction.action](transformAction, uis);
5518
+ const uis = this.getNodesMatchingPatterns(transformAction.patterns, this.sduiDescriptor);
5519
+ this[transformAction.action](
5520
+ transformAction,
5521
+ uis
5522
+ );
5486
5523
  }
5487
5524
  getNodesMatchingPatterns(patterns, node) {
5488
5525
  if (!patterns)
5489
5526
  return [];
5490
5527
  if (!node)
5491
5528
  return [];
5492
- let nodes = node.nodes;
5529
+ const nodes = node.nodes;
5493
5530
  if (!nodes)
5494
5531
  return [];
5495
5532
  let result = [];
5496
5533
  let index = 0;
5497
- for (let pattern of patterns) {
5498
- for (let child of nodes) {
5534
+ for (const pattern of patterns) {
5535
+ for (const child of nodes) {
5499
5536
  if (this.nodeMatchesPattern(pattern, child)) {
5500
5537
  result.push({ parent: node, child, index });
5501
5538
  }
@@ -5509,20 +5546,20 @@ class SDUIDescriptorTransformer {
5509
5546
  return !regExpString || stringToTest && stringToTest.match(regExpString);
5510
5547
  }
5511
5548
  nodeMatchesPattern(pattern, node) {
5512
- let patternDynamic = pattern;
5513
- let nodeDynamic = node;
5514
- let keys = ["libraryKey", "innerHTML", "prefix", "suffix", "markup"];
5515
- for (let key of keys) {
5549
+ const patternDynamic = pattern;
5550
+ const nodeDynamic = node;
5551
+ const keys = ["libraryKey", "innerHTML", "prefix", "suffix", "markup"];
5552
+ for (const key of keys) {
5516
5553
  if (!this.stringMatchesExpression(nodeDynamic[key], patternDynamic[key])) {
5517
5554
  return false;
5518
5555
  }
5519
5556
  }
5520
- let patternAttributes = pattern.attributes;
5521
- let nodeAttributes = node.attributes;
5557
+ const patternAttributes = pattern.attributes;
5558
+ const nodeAttributes = node.attributes;
5522
5559
  if (patternAttributes && !nodeAttributes)
5523
5560
  return false;
5524
5561
  if (patternAttributes) {
5525
- for (let name in patternAttributes) {
5562
+ for (const name in patternAttributes) {
5526
5563
  if (!nodeAttributes || !this.stringMatchesExpression(nodeAttributes[name], patternAttributes[name])) {
5527
5564
  return false;
5528
5565
  }
@@ -5532,7 +5569,7 @@ class SDUIDescriptorTransformer {
5532
5569
  }
5533
5570
  unwrap(transformAction, list) {
5534
5571
  var _a2, _b;
5535
- for (let item of list) {
5572
+ for (const item of list) {
5536
5573
  (_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
5537
5574
  if (item.child.nodes) {
5538
5575
  (_b = item.parent.nodes) == null ? void 0 : _b.splice(item.parent.nodes.indexOf(item.child), 0, ...item.child.nodes);
@@ -5541,18 +5578,18 @@ class SDUIDescriptorTransformer {
5541
5578
  }
5542
5579
  wrap(transformAction, list) {
5543
5580
  var _a2, _b, _c, _d, _e, _f;
5544
- let wrapper = __spreadValues({}, transformAction.ui);
5581
+ const wrapper = { ...transformAction.ui };
5545
5582
  if (!wrapper.nodes)
5546
5583
  wrapper.nodes = [];
5547
5584
  let i2 = 0;
5548
- for (let item of list) {
5585
+ for (const item of list) {
5549
5586
  (_a2 = wrapper.nodes) == null ? void 0 : _a2.push(item.child);
5550
5587
  if (i2 > 0) {
5551
5588
  (_b = item.parent.nodes) == null ? void 0 : _b.splice(item.parent.nodes.indexOf(item.child), 1);
5552
5589
  }
5553
5590
  i2++;
5554
5591
  }
5555
- let idx = (_d = (_c = list[0]) == null ? void 0 : _c.parent.nodes) == null ? void 0 : _d.indexOf(list[0].child);
5592
+ const idx = (_d = (_c = list[0]) == null ? void 0 : _c.parent.nodes) == null ? void 0 : _d.indexOf(list[0].child);
5556
5593
  if (idx) {
5557
5594
  (_e = list[0].parent.nodes) == null ? void 0 : _e.splice(idx, 1);
5558
5595
  (_f = list[0].parent.nodes) == null ? void 0 : _f.splice(idx, 0, wrapper);
@@ -5560,50 +5597,54 @@ class SDUIDescriptorTransformer {
5560
5597
  }
5561
5598
  move(transformAction, list) {
5562
5599
  var _a2, _b;
5563
- for (let item of list) {
5600
+ for (const item of list) {
5564
5601
  (_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
5565
5602
  let list2 = [];
5566
5603
  if (transformAction.after)
5567
5604
  list2 = this.getNodesMatchingPatterns([transformAction.after], this.sduiDescriptor);
5568
5605
  if (transformAction.before)
5569
5606
  list2 = this.getNodesMatchingPatterns([transformAction.before], this.sduiDescriptor);
5570
- let element = list2[0];
5607
+ const element = list2[0];
5571
5608
  if (element) {
5572
- (_b = element.parent.nodes) == null ? void 0 : _b.splice(element.parent.nodes.indexOf(element.child) + (transformAction.after ? 1 : 0), 0, item.child);
5609
+ (_b = element.parent.nodes) == null ? void 0 : _b.splice(
5610
+ element.parent.nodes.indexOf(element.child) + (transformAction.after ? 1 : 0),
5611
+ 0,
5612
+ item.child
5613
+ );
5573
5614
  }
5574
5615
  }
5575
5616
  }
5576
5617
  remap(transformAction, list) {
5577
5618
  var _a2, _b, _c;
5578
- for (let item of list) {
5579
- let newUI = __spreadValues({}, transformAction.ui);
5619
+ for (const item of list) {
5620
+ const newUI = { ...transformAction.ui };
5580
5621
  if (!newUI.attributes) {
5581
5622
  newUI.attributes = {};
5582
5623
  }
5583
- let childAttributes = item.child.attributes;
5624
+ const childAttributes = item.child.attributes;
5584
5625
  if (childAttributes) {
5585
- for (let key in childAttributes) {
5586
- if (!newUI.attributes.hasOwnProperty("key"))
5626
+ for (const key in childAttributes) {
5627
+ if (!Object.prototype.hasOwnProperty.call(newUI.attributes, "key"))
5587
5628
  newUI.attributes[key] = childAttributes[key];
5588
5629
  }
5589
5630
  }
5590
- let keys = ["libraryKey", "innerHTML", "prefix", "suffix", "markup"];
5591
- let childDynamic = item.child;
5592
- let newUIDynamic = newUI;
5593
- for (let key of keys) {
5594
- if (!newUI.hasOwnProperty(key) && childDynamic[key])
5631
+ const keys = ["libraryKey", "innerHTML", "prefix", "suffix", "markup"];
5632
+ const childDynamic = item.child;
5633
+ const newUIDynamic = newUI;
5634
+ for (const key of keys) {
5635
+ if (!Object.prototype.hasOwnProperty.call(newUI, key) && childDynamic[key])
5595
5636
  newUIDynamic[key] = childDynamic[key];
5596
5637
  }
5597
5638
  if (!newUI.nodes) {
5598
5639
  newUI.nodes = [];
5599
5640
  }
5600
- let childNodes = item.child.nodes;
5641
+ const childNodes = item.child.nodes;
5601
5642
  if (childNodes) {
5602
- for (let node of childNodes) {
5643
+ for (const node of childNodes) {
5603
5644
  newUI.nodes.push(node);
5604
5645
  }
5605
5646
  }
5606
- let idx = ((_a2 = item.parent.nodes) == null ? void 0 : _a2.indexOf(item.child)) || -1;
5647
+ const idx = ((_a2 = item.parent.nodes) == null ? void 0 : _a2.indexOf(item.child)) || -1;
5607
5648
  if (idx != -1) {
5608
5649
  (_b = item.parent.nodes) == null ? void 0 : _b.splice(idx, 1);
5609
5650
  (_c = item.parent.nodes) == null ? void 0 : _c.splice(idx, 0, newUI);
@@ -5612,13 +5653,13 @@ class SDUIDescriptorTransformer {
5612
5653
  }
5613
5654
  delete(transformAction, list) {
5614
5655
  var _a2;
5615
- for (let item of list) {
5656
+ for (const item of list) {
5616
5657
  (_a2 = item.parent.nodes) == null ? void 0 : _a2.splice(item.parent.nodes.indexOf(item.child), 1);
5617
5658
  }
5618
5659
  }
5619
5660
  insert(transformAction, list) {
5620
5661
  var _a2;
5621
- let positionType = transformAction.after ? "after" : transformAction.before ? "before" : "in";
5662
+ const positionType = transformAction.after ? "after" : transformAction.before ? "before" : "in";
5622
5663
  list = [];
5623
5664
  if (transformAction.after) {
5624
5665
  list = this.getNodesMatchingPatterns([transformAction.after], this.sduiDescriptor);
@@ -5627,14 +5668,16 @@ class SDUIDescriptorTransformer {
5627
5668
  } else if (transformAction.in) {
5628
5669
  list = this.getNodesMatchingPatterns([transformAction.in], this.sduiDescriptor);
5629
5670
  }
5630
- let node = list[0];
5671
+ const node = list[0];
5631
5672
  if (node) {
5632
5673
  if (positionType == "in") {
5633
5674
  if (!node.child.nodes)
5634
5675
  node.child.nodes = [];
5635
- node.child.nodes.push(__spreadValues({}, transformAction.ui));
5676
+ node.child.nodes.push({ ...transformAction.ui });
5636
5677
  } else {
5637
- (_a2 = node.parent.nodes) == null ? void 0 : _a2.splice(node.parent.nodes.indexOf(node.child) + (positionType == "after" ? 1 : 0), 0, __spreadValues({}, transformAction.ui));
5678
+ (_a2 = node.parent.nodes) == null ? void 0 : _a2.splice(node.parent.nodes.indexOf(node.child) + (positionType == "after" ? 1 : 0), 0, {
5679
+ ...transformAction.ui
5680
+ });
5638
5681
  }
5639
5682
  }
5640
5683
  }
@@ -5662,7 +5705,7 @@ const Form = (superClass) => {
5662
5705
  const input = (_a2 = this.shadowRoot) == null ? void 0 : _a2.querySelector("input");
5663
5706
  if (!input || input.checkValidity())
5664
5707
  return;
5665
- let formPublisher = this.getFormPublisher();
5708
+ const formPublisher = this.getFormPublisher();
5666
5709
  if (formPublisher)
5667
5710
  formPublisher.isFormValid = false;
5668
5711
  input.reportValidity();
@@ -5753,23 +5796,23 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5753
5796
  this.isFetchEnabled = this.hasAttribute("fetch");
5754
5797
  super.connectedCallback();
5755
5798
  }
5756
- get props() {
5757
- return super.props;
5758
- }
5759
- set props(value) {
5760
- if (value === this.props)
5761
- return;
5762
- super.props = value;
5763
- let newSduiDescriptor = this.sduiKey ? value[this.sduiKey] : value;
5764
- if (this.sduiDescriptor == newSduiDescriptor)
5765
- return;
5766
- this.sduiDescriptor = newSduiDescriptor;
5767
- this.updateContents();
5799
+ willUpdate(changedProperties) {
5800
+ if (this.props == null) {
5801
+ this.sduiDescriptor = {};
5802
+ }
5803
+ {
5804
+ const newSduiDescriptor = this.sduiKey ? this.props[this.sduiKey] : this.props;
5805
+ if (this.sduiDescriptor == newSduiDescriptor)
5806
+ return;
5807
+ this.sduiDescriptor = newSduiDescriptor;
5808
+ this.updateContents();
5809
+ }
5810
+ super.willUpdate(changedProperties);
5768
5811
  }
5769
5812
  async updateContents() {
5770
5813
  if (!this.sduiDescriptor)
5771
5814
  return;
5772
- let library = {};
5815
+ const library = {};
5773
5816
  Object.assign(library, default_library, this.sduiDescriptor.library);
5774
5817
  this.sduiDescriptor.library = library;
5775
5818
  this.loadAssets();
@@ -5797,16 +5840,16 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5797
5840
  async transformSDUIDescriptor() {
5798
5841
  if (!this.hasAttribute("transformation"))
5799
5842
  return;
5800
- let result = await fetch(this.getAttribute("transformation"));
5801
- let json = await result.json();
5802
- let transformer = new SDUIDescriptorTransformer();
5843
+ const result = await fetch(this.getAttribute("transformation"));
5844
+ const json = await result.json();
5845
+ const transformer = new SDUIDescriptorTransformer();
5803
5846
  await transformer.transform(this.sduiDescriptor, json);
5804
5847
  }
5805
5848
  async loadLibrary() {
5806
5849
  if (!this.hasAttribute("library"))
5807
5850
  return;
5808
- let result = await fetch(this.getAttribute("library"));
5809
- let json = await result.json();
5851
+ const result = await fetch(this.getAttribute("library"));
5852
+ const json = await result.json();
5810
5853
  this.sduiDescriptor.library = json;
5811
5854
  }
5812
5855
  parseRootNodes() {
@@ -5816,7 +5859,7 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5816
5859
  let nodes = this.sduiDescriptor.nodes;
5817
5860
  if (!nodes)
5818
5861
  nodes = [];
5819
- let messageProvider = { tagName: "sonic-toast-message-subscriber", attributes: {} };
5862
+ const messageProvider = { tagName: "sonic-toast-message-subscriber", attributes: {} };
5820
5863
  if (this.messagesKey) {
5821
5864
  messageProvider.attributes = { subDataProvider: this.messagesKey };
5822
5865
  }
@@ -5824,7 +5867,7 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5824
5867
  nodes.forEach((node) => this.appendChild(this.parseChild(node)));
5825
5868
  }
5826
5869
  parseChild(node) {
5827
- let tagName2 = node.tagName || "div";
5870
+ const tagName2 = node.tagName || "div";
5828
5871
  let { element, contentElement } = this.handleLibrary(node, tagName2);
5829
5872
  this.handleAttributes(node, element);
5830
5873
  element = this.handleMarkup(node, element);
@@ -5846,9 +5889,9 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5846
5889
  }
5847
5890
  handleChildNodes(node, contentElement, element) {
5848
5891
  if (node.nodes) {
5849
- let children = node.nodes;
5850
- for (let child of children) {
5851
- let childElement = this.parseChild(child);
5892
+ const children = node.nodes;
5893
+ for (const child of children) {
5894
+ const childElement = this.parseChild(child);
5852
5895
  let nodeToAppendOn = contentElement;
5853
5896
  if (child.parentElementSelector) {
5854
5897
  nodeToAppendOn = element.querySelector(child.parentElementSelector) || contentElement;
@@ -5856,7 +5899,7 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5856
5899
  if (nodeToAppendOn.shadowRoot)
5857
5900
  nodeToAppendOn.shadowRoot.appendChild(childElement);
5858
5901
  else if (nodeToAppendOn.tagName.toLocaleLowerCase() == "template") {
5859
- let template = nodeToAppendOn;
5902
+ const template = nodeToAppendOn;
5860
5903
  template.content.appendChild(childElement);
5861
5904
  } else
5862
5905
  nodeToAppendOn.appendChild(childElement);
@@ -5868,7 +5911,7 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5868
5911
  let contentElement;
5869
5912
  if (node.libraryKey && this.sduiDescriptor.library) {
5870
5913
  element = this.parseChild(this.sduiDescriptor.library[node.libraryKey] || { tagName: "div" });
5871
- let selector = (this.sduiDescriptor.library[node.libraryKey] || {}).contentElementSelector;
5914
+ const selector = (this.sduiDescriptor.library[node.libraryKey] || {}).contentElementSelector;
5872
5915
  if (selector)
5873
5916
  contentElement = element.querySelector(selector);
5874
5917
  } else
@@ -5876,10 +5919,10 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5876
5919
  return { element, contentElement };
5877
5920
  }
5878
5921
  handleAttributes(node, element) {
5879
- let attributes = node.attributes;
5880
- for (let k2 in attributes) {
5881
- let attrData = attributes[k2];
5882
- let attr = Objects.isObject(attrData) ? JSON.stringify(attrData) : attrData;
5922
+ const attributes = node.attributes;
5923
+ for (const k2 in attributes) {
5924
+ const attrData = attributes[k2];
5925
+ const attr = Objects.isObject(attrData) ? JSON.stringify(attrData) : attrData;
5883
5926
  element.setAttribute(k2, attr);
5884
5927
  }
5885
5928
  }
@@ -5896,7 +5939,7 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5896
5939
  if (!node.innerHTML)
5897
5940
  return;
5898
5941
  if (node.innerHTML.indexOf("wording_") != -1) {
5899
- let wordingProvider = this.getAncestorAttributeValue("wordingProvider");
5942
+ const wordingProvider = this.getAncestorAttributeValue("wordingProvider");
5900
5943
  (_a2 = this.api) == null ? void 0 : _a2.post(wordingProvider, { labels: [node.innerHTML.substring(8)] }).then((value) => {
5901
5944
  if (contentElement)
5902
5945
  contentElement.innerHTML += value;
@@ -5912,9 +5955,6 @@ __decorateClass$N([
5912
5955
  __decorateClass$N([
5913
5956
  e$7()
5914
5957
  ], SonicSDUI.prototype, "messagesKey", 2);
5915
- __decorateClass$N([
5916
- e$7()
5917
- ], SonicSDUI.prototype, "props", 1);
5918
5958
  SonicSDUI = __decorateClass$N([
5919
5959
  e$8(tagName$K)
5920
5960
  ], SonicSDUI);
@@ -5958,7 +5998,7 @@ let SonicMix = class extends Subscriber(s$3) {
5958
5998
  this.parseComposition(this.composition, this.publisher);
5959
5999
  }
5960
6000
  removePublisherListeners() {
5961
- let listeners = this.listeners;
6001
+ const listeners = this.listeners;
5962
6002
  this.listeners = [];
5963
6003
  listeners.forEach((listener) => {
5964
6004
  this.publisher.offAssign(listener.subscriber);
@@ -5967,13 +6007,16 @@ let SonicMix = class extends Subscriber(s$3) {
5967
6007
  parseComposition(composition, publisher) {
5968
6008
  if (!composition)
5969
6009
  return;
5970
- for (let z2 in composition) {
5971
- let value = composition[z2];
6010
+ for (const z2 in composition) {
6011
+ const value = composition[z2];
5972
6012
  if (typeof value === "string") {
5973
- let split = value.split(".");
5974
- let publisherSource = PublisherManager.get(split.shift());
6013
+ const split = value.split(".");
6014
+ const first = split.shift();
6015
+ if (!first)
6016
+ continue;
6017
+ let publisherSource = PublisherManager.get(first);
5975
6018
  publisherSource = Objects.traverse(publisherSource, split);
5976
- let publisherSubscriber = {
6019
+ const publisherSubscriber = {
5977
6020
  publisher: publisherSource,
5978
6021
  subscriber: (v2) => {
5979
6022
  publisher[z2] = v2;
@@ -5984,9 +6027,9 @@ let SonicMix = class extends Subscriber(s$3) {
5984
6027
  publisher._proxies_.set(z2, publisherSource);
5985
6028
  } else {
5986
6029
  this.publisher[z2] = {};
5987
- let newPublisher = new PublisherProxy$1({}, publisher);
6030
+ const newPublisher = new PublisherProxy$1({}, publisher);
5988
6031
  publisher._proxies_.set(z2, newPublisher);
5989
- let publisherSubscriber = {
6032
+ const publisherSubscriber = {
5990
6033
  publisher: newPublisher,
5991
6034
  subscriber: (v2) => {
5992
6035
  publisher[z2] = v2;
@@ -6071,50 +6114,56 @@ let Theme = class extends s$3 {
6071
6114
  postCSSVars() {
6072
6115
  const stylesheets = document.styleSheets;
6073
6116
  const ssLength = stylesheets.length;
6074
- let fontUrls = [];
6117
+ const fontUrls = [];
6075
6118
  for (let i2 = 0; i2 < ssLength; i2++) {
6076
- let ss = stylesheets[i2];
6119
+ const ss = stylesheets[i2];
6077
6120
  if (ss.href && (ss.href.includes("googleapis") || ss.href.includes("typekit.net")))
6078
6121
  fontUrls.push(ss.href);
6079
6122
  }
6080
- document.querySelectorAll("iframe").forEach((elt) => {
6081
- var _a2;
6082
- return (_a2 = elt.contentWindow) == null ? void 0 : _a2.postMessage({
6083
- type: "SonicTheme",
6084
- variables: this.getCssVariables(),
6085
- fonts: fontUrls
6086
- }, "*");
6087
- });
6123
+ document.querySelectorAll("iframe").forEach(
6124
+ (elt) => {
6125
+ var _a2;
6126
+ return (_a2 = elt.contentWindow) == null ? void 0 : _a2.postMessage(
6127
+ {
6128
+ type: "SonicTheme",
6129
+ variables: this.getCssVariables(),
6130
+ fonts: fontUrls
6131
+ },
6132
+ "*"
6133
+ );
6134
+ }
6135
+ );
6088
6136
  }
6089
6137
  receiveMessage(event) {
6090
- let data = event.data;
6138
+ const data = event.data;
6091
6139
  if (!data.type || data.type != "GetSonicTheme")
6092
6140
  return;
6093
6141
  this.postCSSVars();
6094
6142
  }
6095
6143
  getCssVariables() {
6096
- let names = [];
6097
- let stylesheets = [...Theme.styles.map((s2) => s2.styleSheet), ...Array.from(document.styleSheets)];
6098
- for (let stylesheet of stylesheets) {
6144
+ const names = [];
6145
+ const stylesheets = [...Theme.styles.map((s2) => s2.styleSheet), ...Array.from(document.styleSheets)];
6146
+ for (const stylesheet of stylesheets) {
6099
6147
  try {
6100
6148
  if (!stylesheet)
6101
6149
  continue;
6102
- let rules = stylesheet.cssRules;
6103
- for (let rule of rules) {
6150
+ const rules = stylesheet.cssRules;
6151
+ for (const rule of rules) {
6104
6152
  if (!("style" in rule))
6105
6153
  continue;
6106
- let style2 = rule.style;
6107
- for (let name of style2) {
6154
+ const style2 = rule.style;
6155
+ for (const name of style2) {
6108
6156
  if (names.includes(name) || name.indexOf("--sc") !== 0)
6109
6157
  continue;
6110
6158
  names.push(name);
6111
6159
  }
6112
6160
  }
6113
6161
  } catch (e2) {
6162
+ console.log("Erreur lors de la r\xE9cup\xE9ration des variables CSS");
6114
6163
  }
6115
6164
  }
6116
- let style = window.getComputedStyle(this);
6117
- let result = {};
6165
+ const style = window.getComputedStyle(this);
6166
+ const result = {};
6118
6167
  names.forEach((name) => result[name] = style.getPropertyValue(name));
6119
6168
  return result;
6120
6169
  }
@@ -6328,7 +6377,7 @@ const formControl = i$4`*{box-sizing:border-box}:host{--sc-input-height:var(--sc
6328
6377
  const o = e$2(class extends i$2 {
6329
6378
  constructor(t$12) {
6330
6379
  var i2;
6331
- if (super(t$12), t$12.type !== t.ATTRIBUTE || t$12.name !== "class" || ((i2 = t$12.strings) === null || i2 === void 0 ? void 0 : i2.length) > 2)
6380
+ if (super(t$12), t$12.type !== t.ATTRIBUTE || "class" !== t$12.name || (null === (i2 = t$12.strings) || void 0 === i2 ? void 0 : i2.length) > 2)
6332
6381
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
6333
6382
  }
6334
6383
  render(t2) {
@@ -6336,10 +6385,10 @@ const o = e$2(class extends i$2 {
6336
6385
  }
6337
6386
  update(i2, [s2]) {
6338
6387
  var r2, o2;
6339
- if (this.nt === void 0) {
6340
- this.nt = /* @__PURE__ */ new Set(), i2.strings !== void 0 && (this.st = new Set(i2.strings.join(" ").split(/\s/).filter((t2) => t2 !== "")));
6388
+ if (void 0 === this.nt) {
6389
+ this.nt = /* @__PURE__ */ new Set(), void 0 !== i2.strings && (this.st = new Set(i2.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
6341
6390
  for (const t2 in s2)
6342
- s2[t2] && !((r2 = this.st) === null || r2 === void 0 ? void 0 : r2.has(t2)) && this.nt.add(t2);
6391
+ s2[t2] && !(null === (r2 = this.st) || void 0 === r2 ? void 0 : r2.has(t2)) && this.nt.add(t2);
6343
6392
  return this.render(s2);
6344
6393
  }
6345
6394
  const e2 = i2.element.classList;
@@ -6348,7 +6397,7 @@ const o = e$2(class extends i$2 {
6348
6397
  });
6349
6398
  for (const t2 in s2) {
6350
6399
  const i3 = !!s2[t2];
6351
- i3 === this.nt.has(t2) || ((o2 = this.st) === null || o2 === void 0 ? void 0 : o2.has(t2)) || (i3 ? (e2.add(t2), this.nt.add(t2)) : (e2.remove(t2), this.nt.delete(t2)));
6400
+ i3 === this.nt.has(t2) || (null === (o2 = this.st) || void 0 === o2 ? void 0 : o2.has(t2)) || (i3 ? (e2.add(t2), this.nt.add(t2)) : (e2.remove(t2), this.nt.delete(t2)));
6352
6401
  }
6353
6402
  return x$1;
6354
6403
  }
@@ -6382,7 +6431,7 @@ let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
6382
6431
  if (this.hasAttribute("sameValueAs")) {
6383
6432
  this.sameValueAsName = this.getAttribute("sameValueAs");
6384
6433
  this.sameValueAsHandle = (v2) => this.pattern = v2;
6385
- let formPublisher = this.getFormPublisher();
6434
+ const formPublisher = this.getFormPublisher();
6386
6435
  if (!formPublisher)
6387
6436
  return;
6388
6437
  formPublisher[this.sameValueAsName].onAssign(this.sameValueAsHandle);
@@ -6391,7 +6440,7 @@ let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
6391
6440
  disconnectedCallback() {
6392
6441
  super.disconnectedCallback();
6393
6442
  if (this.hasAttribute("sameValueAs") && this.sameValueAsName) {
6394
- let formPublisher = this.getFormPublisher();
6443
+ const formPublisher = this.getFormPublisher();
6395
6444
  if (!formPublisher)
6396
6445
  return;
6397
6446
  formPublisher[this.sameValueAsName].offAssign(this.sameValueAsHandle);
@@ -6564,8 +6613,8 @@ let Pop = class extends s$3 {
6564
6613
  this.positioningRuns = false;
6565
6614
  }
6566
6615
  _handleClosePop(e2) {
6567
- let path = e2.composedPath();
6568
- let target = path[0];
6616
+ const path = e2.composedPath();
6617
+ const target = path[0];
6569
6618
  Pop.pops.forEach((pop) => {
6570
6619
  const popContainsTarget = path.includes(pop);
6571
6620
  const popContentContainsTarget = path.includes(pop.querySelector('[slot="content"]'));
@@ -6601,14 +6650,14 @@ let Pop = class extends s$3 {
6601
6650
  const thisRect = this.getBoundingClientRect();
6602
6651
  if (!this.offsetParent)
6603
6652
  return;
6604
- let bodyRect = this.offsetParent.getBoundingClientRect();
6605
- let x0 = thisRect.left - bodyRect.left;
6606
- let y0 = thisRect.top - bodyRect.top;
6653
+ const bodyRect = this.offsetParent.getBoundingClientRect();
6654
+ const x0 = thisRect.left - bodyRect.left;
6655
+ const y0 = thisRect.top - bodyRect.top;
6607
6656
  let x2 = x0, y2 = y0;
6608
- let yTop = y0 - contentRect.height - padding;
6609
- let xLeft = x0 - contentRect.width - 2 * padding;
6610
- let xRight = x0 + thisRect.width + 2 * padding;
6611
- let yBottom = y0 + thisRect.height + padding;
6657
+ const yTop = y0 - contentRect.height - padding;
6658
+ const xLeft = x0 - contentRect.width - 2 * padding;
6659
+ const xRight = x0 + thisRect.width + 2 * padding;
6660
+ const yBottom = y0 + thisRect.height + padding;
6612
6661
  switch (placement) {
6613
6662
  case "bottom":
6614
6663
  y2 = yBottom;
@@ -6623,20 +6672,20 @@ let Pop = class extends s$3 {
6623
6672
  x2 = xRight;
6624
6673
  break;
6625
6674
  }
6626
- let dxRight = window.innerWidth - xRight - bodyRect.left - contentRect.width - shiftPadding;
6675
+ const dxRight = window.innerWidth - xRight - bodyRect.left - contentRect.width - shiftPadding;
6627
6676
  if (dxRight < 0 && placement === "right")
6628
6677
  x2 = xLeft;
6629
6678
  if (dxRight < 0 && ["top", "bottom"].includes(placement))
6630
6679
  x2 = Math.max(x2 + dxRight, xLeft + thisRect.width);
6631
- let dxLeft = -bodyRect.left - xLeft;
6680
+ const dxLeft = -bodyRect.left - xLeft;
6632
6681
  if (dxLeft > shiftPadding && placement === "left")
6633
6682
  x2 = xRight;
6634
- let dyBottom = window.innerHeight - yBottom - bodyRect.top - contentRect.height - shiftPadding;
6683
+ const dyBottom = window.innerHeight - yBottom - bodyRect.top - contentRect.height - shiftPadding;
6635
6684
  if (dyBottom < 0 && placement === "bottom")
6636
6685
  y2 = yTop;
6637
6686
  if (dyBottom < 0 && ["left", "right"].includes(placement))
6638
6687
  y2 = Math.max(y2 + dyBottom, yTop + thisRect.height);
6639
- let dyTop = -bodyRect.top - yTop;
6688
+ const dyTop = -bodyRect.top - yTop;
6640
6689
  if (dyTop > -shiftPadding && placement === "top")
6641
6690
  y2 = yBottom;
6642
6691
  this.lastContentX = x2;
@@ -6854,7 +6903,7 @@ let SonicComponent$1 = class extends Subscriber(s$3) {
6854
6903
  this.hasMinuscule = /[a-z]/.test(v2);
6855
6904
  this.hasMajuscule = /[A-Z]/.test(v2);
6856
6905
  this.hasNumber = /[0-9]/.test(v2);
6857
- this.hasSpecialChar = /[!"#$%&'()*+,\-\.\/:;<=>?@[\]^_`{|}~]/.test(v2);
6906
+ this.hasSpecialChar = /[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(v2);
6858
6907
  };
6859
6908
  PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue);
6860
6909
  }
@@ -6941,7 +6990,7 @@ let SonicComponent = class extends Subscriber(s$3) {
6941
6990
  }
6942
6991
  connectedCallback() {
6943
6992
  super.connectedCallback();
6944
- let formDataProvider = PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"));
6993
+ const formDataProvider = PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"));
6945
6994
  if (this.name && this.sameValueAs) {
6946
6995
  this.checkValue = (v2) => {
6947
6996
  if (v2)
@@ -6958,7 +7007,7 @@ let SonicComponent = class extends Subscriber(s$3) {
6958
7007
  }
6959
7008
  disconnectedCallback() {
6960
7009
  if (this.checkValue && this.name && this.sameValueAs) {
6961
- let formDataProvider = PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"));
7010
+ const formDataProvider = PublisherManager.get(this.getAncestorAttributeValue("formDataProvider"));
6962
7011
  formDataProvider[this.name].offAssign(this.checkValue);
6963
7012
  formDataProvider[this.sameValueAs].offAssign(this.checkValue);
6964
7013
  }
@@ -7121,7 +7170,7 @@ let Select = class extends Form$2(Subscriber$1(s$3)) {
7121
7170
  this.value = option.value || "";
7122
7171
  }
7123
7172
  }
7124
- let value = this.value || this.getAttribute("value");
7173
+ const value = this.value || this.getAttribute("value");
7125
7174
  if (!value && this._options.length > 0) {
7126
7175
  this.value = this._options[0][this.valueKey];
7127
7176
  }
@@ -7130,7 +7179,7 @@ let Select = class extends Form$2(Subscriber$1(s$3)) {
7130
7179
  get options() {
7131
7180
  return this._options;
7132
7181
  }
7133
- firstUpdated(_changedProperties) {
7182
+ firstUpdated() {
7134
7183
  this.hasDoneFirstUpdate = true;
7135
7184
  }
7136
7185
  set value(value) {
@@ -7148,7 +7197,7 @@ let Select = class extends Form$2(Subscriber$1(s$3)) {
7148
7197
  return this._value;
7149
7198
  }
7150
7199
  updateFormPublisherValue() {
7151
- let formPublisher = this.getFormPublisher();
7200
+ const formPublisher = this.getFormPublisher();
7152
7201
  if (formPublisher) {
7153
7202
  formPublisher[this.name] = this.value;
7154
7203
  }
@@ -7156,7 +7205,7 @@ let Select = class extends Form$2(Subscriber$1(s$3)) {
7156
7205
  connectedCallback() {
7157
7206
  super.connectedCallback();
7158
7207
  this.hasSlotOrProps();
7159
- let options = this.querySelectorAll("option");
7208
+ const options = this.querySelectorAll("option");
7160
7209
  if (options.length > 0) {
7161
7210
  this.options = Array.from(options).map((option) => {
7162
7211
  return {
@@ -7201,7 +7250,7 @@ let Select = class extends Form$2(Subscriber$1(s$3)) {
7201
7250
  const select2 = (_a2 = this.shadowRoot) == null ? void 0 : _a2.querySelector("select");
7202
7251
  if (!select2 || select2.checkValidity())
7203
7252
  return;
7204
- let formPublisher = this.getFormPublisher();
7253
+ const formPublisher = this.getFormPublisher();
7205
7254
  if (formPublisher) {
7206
7255
  formPublisher.isFormValid = false;
7207
7256
  }
@@ -7212,10 +7261,14 @@ let Select = class extends Form$2(Subscriber$1(s$3)) {
7212
7261
  "has-prefix": this.hasPrefix,
7213
7262
  "has-suffix": this.hasSuffix
7214
7263
  };
7215
- return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div class="form-control ${o(slotClasses)}"><slot name="prefix" @slotchange="${this.hasSlotOrProps}"></slot><div class="form-select-wrapper"><select id="form-element" @change="${this.handleChange}" @blur="${this.handleBlur}" ?disabled="${l$2(this.disabled)}" ?required="${this.required}" ?multiple="${this.multiple}" size="${l$2(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}">${c$1(this.options, (option) => option[this.valueKey], (option) => {
7216
- const isSelected = this.value == option[this.valueKey] ? "selected" : null;
7217
- return y`<option selected="${l$2(isSelected)}" value="${option[this.valueKey]}">${option[this.wordingKey]}</option>`;
7218
- })}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" .size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.hasSlotOrProps}"></slot></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$2(this.description)}` : ""}</slot>`;
7264
+ return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div class="form-control ${o(slotClasses)}"><slot name="prefix" @slotchange="${this.hasSlotOrProps}"></slot><div class="form-select-wrapper"><select id="form-element" @change="${this.handleChange}" @blur="${this.handleBlur}" ?disabled="${this.disabled}" ?required="${this.required}" ?multiple="${this.multiple}" size="${l$2(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}">${c$1(
7265
+ this.options,
7266
+ (option) => option[this.valueKey],
7267
+ (option) => {
7268
+ const isSelected = this.value == option[this.valueKey] ? true : false;
7269
+ return y`<option ?selected="${isSelected}" value="${option[this.valueKey]}">${option[this.wordingKey]}</option>`;
7270
+ }
7271
+ )}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" .size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.hasSlotOrProps}"></slot></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$2(this.description)}` : ""}</slot>`;
7219
7272
  }
7220
7273
  };
7221
7274
  Select.styles = [
@@ -7320,7 +7373,7 @@ let Textarea = class extends Form(Form$2(Subscriber$1(s$3))) {
7320
7373
  const textarea2 = (_a2 = this.shadowRoot) == null ? void 0 : _a2.querySelector("textarea");
7321
7374
  if (!textarea2 || textarea2.checkValidity())
7322
7375
  return;
7323
- let formPublisher = this.getFormPublisher();
7376
+ const formPublisher = this.getFormPublisher();
7324
7377
  if (formPublisher) {
7325
7378
  formPublisher.isFormValid = false;
7326
7379
  }
@@ -7517,13 +7570,13 @@ Fieldset = __decorateClass$u([
7517
7570
  ], Fieldset);
7518
7571
  class s {
7519
7572
  constructor(s2, { target: t2, config: i2, callback: h2, skipInitial: e2 }) {
7520
- this.t = /* @__PURE__ */ new Set(), this.o = false, this.i = false, this.h = s2, t2 !== null && this.t.add(t2 != null ? t2 : s2), this.l = i2, this.o = e2 != null ? e2 : this.o, this.callback = h2, window.ResizeObserver ? (this.u = new ResizeObserver((s3) => {
7573
+ this.t = /* @__PURE__ */ new Set(), this.o = false, this.i = false, this.h = s2, null !== t2 && this.t.add(null != t2 ? t2 : s2), this.l = i2, this.o = null != e2 ? e2 : this.o, this.callback = h2, window.ResizeObserver ? (this.u = new ResizeObserver((s3) => {
7521
7574
  this.handleChanges(s3), this.h.requestUpdate();
7522
7575
  }), s2.addController(this)) : console.warn("ResizeController error: browser does not support ResizeObserver.");
7523
7576
  }
7524
7577
  handleChanges(s2) {
7525
7578
  var t2;
7526
- this.value = (t2 = this.callback) === null || t2 === void 0 ? void 0 : t2.call(this, s2, this.u);
7579
+ this.value = null === (t2 = this.callback) || void 0 === t2 ? void 0 : t2.call(this, s2, this.u);
7527
7580
  }
7528
7581
  hostConnected() {
7529
7582
  for (const s2 of this.t)
@@ -7681,7 +7734,7 @@ let Group = class extends s$3 {
7681
7734
  this.hasDescription = this.description || ((_b = this.slotDescriptionNodes) == null ? void 0 : _b.length) ? true : false;
7682
7735
  }
7683
7736
  render() {
7684
- var slotStyle = {
7737
+ const slotStyle = {
7685
7738
  alignItems: this.alignItems
7686
7739
  };
7687
7740
  return y`<span class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></span><slot class="main-slot" style="${i$1(slotStyle)}"></slot><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$2(this.description)}` : ""}</slot>`;
@@ -7791,7 +7844,7 @@ var __decorateClass$p = (decorators, target, key, kind) => {
7791
7844
  __defProp$p(target, key, result);
7792
7845
  return result;
7793
7846
  };
7794
- const tagName$p = "sonic-taxonomy";
7847
+ const tagName$p = "sonic-event-taxonomy";
7795
7848
  let Taxonomy = class extends s$3 {
7796
7849
  constructor() {
7797
7850
  super(...arguments);
@@ -7806,16 +7859,22 @@ let Taxonomy = class extends s$3 {
7806
7859
  render() {
7807
7860
  if (!Array.isArray(this.taxonomy))
7808
7861
  return b$1;
7809
- let key = this.key + "_display";
7810
- let taxo = this.taxonomy.filter((elt) => elt != null && (elt[key] === true || elt[key] == "1" || !elt.hasOwnProperty(key)));
7862
+ const key = this.key + "_display";
7863
+ const taxo = this.taxonomy.filter(
7864
+ (elt) => elt != null && (elt[key] === true || elt[key] == "1" || !Object.hasOwnProperty.call(elt, key))
7865
+ );
7811
7866
  if (taxo.length === 0) {
7812
7867
  this.style.display = "none";
7813
7868
  return b$1;
7814
7869
  }
7815
7870
  this.style.removeProperty("display");
7816
- return y`<sonic-badge type="${this.type}" variant="${this.variant}" size="${this.size}"><sonic-icon slot="prefix" library="${l$2(this.icon.library)}" prefix="${l$2(this.icon.prefix)}" name="${l$2(this.icon.name)}"></sonic-icon><span class="taxonomy-list">${c$1(taxo, (item) => item[this.key + "_id"], (item) => {
7817
- return y`<span>${item[this.key + "_name"] || item["name"]}</span><span class="sonic-taxonomy-separator">${o$2(this.separator)}</span>`;
7818
- })}</span></sonic-badge>`;
7871
+ return y`<sonic-badge type="${this.type}" variant="${this.variant}" size="${this.size}"><sonic-icon slot="prefix" library="${l$2(this.icon.library)}" prefix="${l$2(this.icon.prefix)}" name="${l$2(this.icon.name)}"></sonic-icon><span class="taxonomy-list">${c$1(
7872
+ taxo,
7873
+ (item) => item[this.key + "_id"],
7874
+ (item) => {
7875
+ return y`<span>${item[this.key + "_name"] || item["name"]}</span><span class="sonic-taxonomy-separator">${o$2(this.separator)}</span>`;
7876
+ }
7877
+ )}</span></sonic-badge>`;
7819
7878
  }
7820
7879
  };
7821
7880
  Taxonomy.styles = i$4`:host .sonic-taxonomy-separator:last-child{display:none}.taxonomy-list{display:flex;flex-wrap:wrap}`;
@@ -7907,37 +7966,36 @@ let MenuItems = class extends s$3 {
7907
7966
  super.disconnectedCallback();
7908
7967
  }
7909
7968
  initScrollable() {
7910
- const tabsMenu = this;
7911
7969
  let isDown = false;
7912
7970
  let startX;
7913
7971
  let scrollLeft;
7914
7972
  if (this.scrollable) {
7915
- tabsMenu.addEventListener("mousedown", (e2) => {
7973
+ this.addEventListener("mousedown", (e2) => {
7916
7974
  isDown = true;
7917
- tabsMenu.classList.add("active");
7918
- startX = e2.pageX - tabsMenu.offsetLeft;
7919
- scrollLeft = tabsMenu.scrollLeft;
7975
+ this.classList.add("active");
7976
+ startX = e2.pageX - this.offsetLeft;
7977
+ scrollLeft = this.scrollLeft;
7920
7978
  });
7921
- tabsMenu.addEventListener("mouseleave", () => {
7979
+ this.addEventListener("mouseleave", () => {
7922
7980
  isDown = false;
7923
- tabsMenu.classList.remove("active");
7981
+ this.classList.remove("active");
7924
7982
  });
7925
- tabsMenu.addEventListener("mouseup", () => {
7983
+ this.addEventListener("mouseup", () => {
7926
7984
  isDown = false;
7927
- tabsMenu.classList.remove("active");
7985
+ this.classList.remove("active");
7928
7986
  });
7929
- tabsMenu.addEventListener("mousemove", (e2) => {
7987
+ this.addEventListener("mousemove", (e2) => {
7930
7988
  if (!isDown)
7931
7989
  return;
7932
7990
  e2.preventDefault();
7933
- const x2 = e2.pageX - tabsMenu.offsetLeft;
7991
+ const x2 = e2.pageX - this.offsetLeft;
7934
7992
  const walk = (x2 - startX) * 1.5;
7935
- tabsMenu.scrollLeft = scrollLeft - walk;
7936
- this.setScrollShadow(tabsMenu, this.direction);
7993
+ this.scrollLeft = scrollLeft - walk;
7994
+ this.setScrollShadow(this, this.direction);
7937
7995
  });
7938
- tabsMenu.addEventListener("scroll", (e2) => {
7996
+ this.addEventListener("scroll", (e2) => {
7939
7997
  e2.preventDefault();
7940
- this.setScrollShadow(tabsMenu, this.direction);
7998
+ this.setScrollShadow(this, this.direction);
7941
7999
  });
7942
8000
  }
7943
8001
  }
@@ -8206,7 +8264,7 @@ let Modal = class extends Subscriber$1(s$3) {
8206
8264
  static create(options) {
8207
8265
  const modal = document.createElement(tagName$i);
8208
8266
  modal.innerHTML = `<sonic-modal-close></sonic-modal-close><sonic-modal-content>${options.content}</sonic-modal-content>` || "";
8209
- let container = document.querySelector("sonic-theme") || document.body;
8267
+ const container = document.querySelector("sonic-theme") || document.body;
8210
8268
  container.appendChild(modal);
8211
8269
  modal.show();
8212
8270
  return modal;
@@ -8219,9 +8277,13 @@ let Modal = class extends Subscriber$1(s$3) {
8219
8277
  const currentModal = this;
8220
8278
  document.addEventListener("keydown", this.handleEscape);
8221
8279
  currentModal.closeBtn.forEach((closeBtn) => {
8222
- closeBtn.addEventListener("click", function() {
8223
- currentModal.hide();
8224
- }, { once: true });
8280
+ closeBtn.addEventListener(
8281
+ "click",
8282
+ function() {
8283
+ currentModal.hide();
8284
+ },
8285
+ { once: true }
8286
+ );
8225
8287
  });
8226
8288
  }
8227
8289
  willUpdate(_changedProperties) {
@@ -8433,19 +8495,20 @@ let MessageSubscriber = class extends Subscriber$1(s$3) {
8433
8495
  return;
8434
8496
  value.forEach((message) => {
8435
8497
  if (message.type == "public")
8436
- SonicToast$1.add({ text: message.content, status: message.status });
8498
+ SonicToast$1.add({ text: message.content || "", status: message.status });
8437
8499
  });
8438
8500
  }
8439
8501
  get message() {
8440
8502
  return this._message;
8441
8503
  }
8442
8504
  set message(value) {
8505
+ var _a2, _b;
8443
8506
  this._message = value;
8444
8507
  if (!this.message)
8445
8508
  return;
8446
- if (this.props.success !== false)
8509
+ if (((_a2 = this.props) == null ? void 0 : _a2.success) !== false)
8447
8510
  return;
8448
- if (this.props.public_message)
8511
+ if ((_b = this.props) == null ? void 0 : _b.public_message)
8449
8512
  return;
8450
8513
  SonicToast$1.add({ text: this.message, status: "error" });
8451
8514
  }
@@ -8453,15 +8516,16 @@ let MessageSubscriber = class extends Subscriber$1(s$3) {
8453
8516
  return this._data;
8454
8517
  }
8455
8518
  set data(value) {
8519
+ var _a2, _b, _c, _d;
8456
8520
  this._data = value;
8457
8521
  const toastOptions = { text: "Votre produit a bien \xE9t\xE9 ajout\xE9", status: "success" };
8458
- if (Array.isArray(this.data) && this.props.success === true)
8522
+ if (Array.isArray(this.data) && ((_a2 = this.props) == null ? void 0 : _a2.success) === true)
8459
8523
  SonicToast$1.add(toastOptions);
8460
- if (this.data == "" && this.props.status === true)
8524
+ if (this.data == "" && ((_b = this.props) == null ? void 0 : _b.status) === true)
8461
8525
  SonicToast$1.add(toastOptions);
8462
- if (this.props.success !== false)
8526
+ if (((_c = this.props) == null ? void 0 : _c.success) !== false)
8463
8527
  return;
8464
- if (this.props.public_message)
8528
+ if ((_d = this.props) == null ? void 0 : _d.public_message)
8465
8529
  return;
8466
8530
  SonicToast$1.add({ text: this.data, status: "error" });
8467
8531
  }
@@ -8506,7 +8570,7 @@ let Tooltip = class extends s$3 {
8506
8570
  this.disabled = false;
8507
8571
  }
8508
8572
  render() {
8509
- let disabledClass = this.disabled || this.label == "" ? "disabled" : "";
8573
+ const disabledClass = this.disabled || this.label == "" ? "disabled" : "";
8510
8574
  return y`<div data-tooltip-text="${this.label.trim().replace("&nbsp;", " ")}" class="tooltip ${disabledClass}"><slot></slot></div>`;
8511
8575
  }
8512
8576
  };
@@ -8623,7 +8687,7 @@ let CardHeader = class extends s$3 {
8623
8687
  }
8624
8688
  };
8625
8689
  CardHeader.styles = [
8626
- i$4`:host{--sc-card-header-mb:1.35rem;--sc-card-header-font-size:1.875rem;--sc-card-header-font-weight:var(--sc-headings-font-weight);--sc-card-header-font-style:var(--sc-headings-font-style);--sc-card-header-family:var(--sc-headings-font-family);--sc-card-header-line-height:var(--sc-headings-line-height)}.header{display:flex;align-items:flex-start;gap:.5em 1em;margin-bottom:var(--sc-card-header-mb);line-height:var(--sc-card-header-line-height);font-family:var(--sc-card-header-font-family);font-size:var(--sc-card-header-font-size);font-style:var(--sc-card-header-font-style);font-weight:var(--sc-card-header-font-weight)}.header-content{flex-grow:1}slot[name=suffix]{flex-shrink:0}`
8690
+ i$4`:host{--sc-card-header-mb:1.35rem;--sc-card-header-font-size:1.875rem;--sc-card-header-font-weight:var(--sc-headings-font-weight);--sc-card-header-font-style:var(--sc-headings-font-style);--sc-card-header-family:var(--sc-headings-font-family);--sc-card-header-line-height:var(--sc-headings-line-height)}@media print{:host{--sc-card-header-font-size:1.45rem}}.header{display:flex;align-items:flex-start;gap:.5em 1em;margin-bottom:var(--sc-card-header-mb);line-height:var(--sc-card-header-line-height);font-family:var(--sc-card-header-font-family);font-size:var(--sc-card-header-font-size);font-style:var(--sc-card-header-font-style);font-weight:var(--sc-card-header-font-weight)}.header-content{flex-grow:1}slot[name=suffix]{flex-shrink:0}`
8627
8691
  ];
8628
8692
  __decorateClass$c([
8629
8693
  e$7()
@@ -8696,7 +8760,7 @@ let Card = class extends s$3 {
8696
8760
  }
8697
8761
  };
8698
8762
  Card.styles = [
8699
- i$4`:host{--sc-card-padding:1.5rem;--sc-card-color:var(--sc-base-content);--sc-card-bg:var(--sc-base);--sc-card-rounded:var(--sc-rounded-lg);--sc-card-shadow:var(--sc-shadow-lg);-webkit-print-color-adjust:exact}@media print{:host{break-inside:avoid}}*{box-sizing:border-box}.card{padding:var(--sc-card-padding);background-color:var(--sc-card-bg);border-radius:var(--sc-card-rounded);box-shadow:var(--sc-card-shadow);color:var(--sc-card-color)}:host([type=primary]){--sc-card-bg:var(--sc-primary);--sc-card-color:var(--sc-primary-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=warning]){--sc-card-bg:var(--sc-warning);--sc-card-color:var(--sc-warning-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=danger]){--sc-card-bg:var(--sc-danger);--sc-card-color:var(--sc-danger-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=info]){--sc-card-bg:var(--sc-info);--sc-card-color:var(--sc-info-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=success]){--sc-card-bg:var(--sc-success);--sc-card-color:var(--sc-success-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=light]){--sc-card-bg:var(--sc-base-100);--sc-card-color:var(--sc-base-content)}:host([type=neutral]){--sc-card-bg:var(--sc-base-content);--sc-card-color:var(--sc-base)}:host([type=invert]){--sc-card-color:var(--sc-base);--sc-card-bg:var(--sc-base-900)}`
8763
+ i$4`*{box-sizing:border-box}:host{--sc-card-padding:1.5rem;--sc-card-color:var(--sc-base-content);--sc-card-bg:var(--sc-base);--sc-card-rounded:var(--sc-rounded-lg);--sc-card-shadow:var(--sc-shadow-lg);-webkit-print-color-adjust:exact}@media print{.card{page-break-inside:avoid;break-inside:avoid;box-shadow:none!important;border:1px solid var(--sc-base-200)}}.card{padding:var(--sc-card-padding);background-color:var(--sc-card-bg);border-radius:var(--sc-card-rounded);box-shadow:var(--sc-card-shadow);color:var(--sc-card-color)}:host([type=primary]){--sc-card-bg:var(--sc-primary);--sc-card-color:var(--sc-primary-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=warning]){--sc-card-bg:var(--sc-warning);--sc-card-color:var(--sc-warning-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=danger]){--sc-card-bg:var(--sc-danger);--sc-card-color:var(--sc-danger-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=info]){--sc-card-bg:var(--sc-info);--sc-card-color:var(--sc-info-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=success]){--sc-card-bg:var(--sc-success);--sc-card-color:var(--sc-success-content);--sc-border-color:var(--sc-primary-content);--sc-divider-opacity:0.2}:host([type=light]){--sc-card-bg:var(--sc-base-100);--sc-card-color:var(--sc-base-content)}:host([type=neutral]){--sc-card-bg:var(--sc-base-content);--sc-card-color:var(--sc-base)}:host([type=invert]){--sc-card-color:var(--sc-base);--sc-card-bg:var(--sc-base-900)}`
8700
8764
  ];
8701
8765
  __decorateClass$9([
8702
8766
  e$7({ type: String, reflect: true })
@@ -8867,7 +8931,7 @@ var __decorateClass$4 = (decorators, target, key, kind) => {
8867
8931
  const tagName$4 = "sonic-tbody";
8868
8932
  let TableTbody = class extends s$3 {
8869
8933
  render() {
8870
- return y`<tbody><slot></slot></tbody>`;
8934
+ return y`<tbody part="tbody"><slot></slot></tbody>`;
8871
8935
  }
8872
8936
  };
8873
8937
  TableTbody.styles = [
@@ -8987,7 +9051,9 @@ let Captcha = class extends Subscriber(s$3) {
8987
9051
  script.src = "https://www.google.com/recaptcha/api.js?render=" + this.key;
8988
9052
  document.head.appendChild(script);
8989
9053
  super.connectedCallback();
8990
- this.formPublisher = PublisherManager.get((_a2 = this.getAncestorAttributeValue("headersDataProvider")) != null ? _a2 : this.getAncestorAttributeValue("formDataProvider"));
9054
+ this.formPublisher = PublisherManager.get(
9055
+ (_a2 = this.getAncestorAttributeValue("headersDataProvider")) != null ? _a2 : this.getAncestorAttributeValue("formDataProvider")
9056
+ );
8991
9057
  if (this.formPublisher) {
8992
9058
  this.formPublisher.needsCaptchaValidation = true;
8993
9059
  this.formPublisher.captchaToken.onAssign((v2) => {
@@ -9001,8 +9067,8 @@ let Captcha = class extends Subscriber(s$3) {
9001
9067
  var _a2, _b, _c, _d, _e;
9002
9068
  if (!this.formPublisher)
9003
9069
  return;
9004
- let action = ((_c = (_b = this.action) != null ? _b : (_a2 = this.formPublisher.captchaAction) == null ? void 0 : _a2.get()) != null ? _c : "submit").replace(/[^\w_\/]/g, "_");
9005
- let method = ((_e = (_d = this.formPublisher.captchaMethod) == null ? void 0 : _d.get()) != null ? _e : "POST").toUpperCase();
9070
+ const action = ((_c = (_b = this.action) != null ? _b : (_a2 = this.formPublisher.captchaAction) == null ? void 0 : _a2.get()) != null ? _c : "submit").replace(/[^\w_/]/g, "_");
9071
+ const method = ((_e = (_d = this.formPublisher.captchaMethod) == null ? void 0 : _d.get()) != null ? _e : "POST").toUpperCase();
9006
9072
  delete this.formPublisher.captchaAction;
9007
9073
  delete this.formPublisher.captchaMethod;
9008
9074
  window.grecaptcha.ready(() => {