@haiilo/catalyst 10.12.0 → 10.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/catalyst/catalyst.css +1 -1
  2. package/dist/catalyst/catalyst.esm.js +1 -1
  3. package/dist/catalyst/catalyst.esm.js.map +1 -1
  4. package/dist/catalyst/index.esm.js +1 -1
  5. package/dist/catalyst/index.esm.js.map +1 -1
  6. package/dist/catalyst/p-751d92ed.js +3 -0
  7. package/dist/catalyst/p-751d92ed.js.map +1 -0
  8. package/dist/catalyst/p-8f350146.entry.js +10 -0
  9. package/dist/catalyst/p-8f350146.entry.js.map +1 -0
  10. package/dist/catalyst/p-e1255160.js.map +1 -1
  11. package/dist/catalyst/p-f4873629.js +2 -0
  12. package/dist/catalyst/{p-2c8ac8cf.js.map → p-f4873629.js.map} +1 -1
  13. package/dist/catalyst/scss/core/_dialog.scss +1 -1
  14. package/dist/cjs/cat-alert_29.cjs.entry.js +582 -121
  15. package/dist/cjs/cat-alert_29.cjs.entry.js.map +1 -1
  16. package/dist/cjs/catalyst.cjs.js +9 -9
  17. package/dist/cjs/catalyst.cjs.js.map +1 -1
  18. package/dist/cjs/index-a45dd7c9.js +1383 -0
  19. package/dist/cjs/index-a45dd7c9.js.map +1 -0
  20. package/dist/cjs/index.cjs.js +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/cjs/{of-f2844da8.js → of-5cd84f84.js} +22 -22
  23. package/dist/cjs/{of-f2844da8.js.map → of-5cd84f84.js.map} +1 -1
  24. package/dist/collection/collection-manifest.json +2 -2
  25. package/dist/collection/components/cat-alert/cat-alert.js +1 -1
  26. package/dist/collection/components/cat-alert/cat-alert.js.map +1 -1
  27. package/dist/collection/components/cat-avatar/cat-avatar.js +0 -4
  28. package/dist/collection/components/cat-avatar/cat-avatar.js.map +1 -1
  29. package/dist/collection/components/cat-badge/cat-badge.js +1 -1
  30. package/dist/collection/components/cat-button/cat-button.js +0 -4
  31. package/dist/collection/components/cat-button/cat-button.js.map +1 -1
  32. package/dist/collection/components/cat-button-group/cat-button-group.js +1 -1
  33. package/dist/collection/components/cat-card/cat-card.js +1 -1
  34. package/dist/collection/components/cat-checkbox/cat-checkbox.js +1 -9
  35. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  36. package/dist/collection/components/cat-date/cat-date.js +3 -3
  37. package/dist/collection/components/cat-date-inline/cat-date-inline.js +4 -12
  38. package/dist/collection/components/cat-date-inline/cat-date-inline.js.map +1 -1
  39. package/dist/collection/components/cat-datepicker/cat-datepicker.js +4 -4
  40. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  41. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +2 -2
  42. package/dist/collection/components/cat-dropdown/cat-dropdown.js +2 -2
  43. package/dist/collection/components/cat-form-group/cat-form-group.js +1 -1
  44. package/dist/collection/components/cat-icon/cat-icon.js +1 -1
  45. package/dist/collection/components/cat-input/cat-input.js +4 -10
  46. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  47. package/dist/collection/components/cat-pagination/cat-pagination.js +2 -2
  48. package/dist/collection/components/cat-radio/cat-radio.js +1 -9
  49. package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
  50. package/dist/collection/components/cat-radio-group/cat-radio-group.js +1 -1
  51. package/dist/collection/components/cat-scrollable/cat-scrollable.js +3 -3
  52. package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
  53. package/dist/collection/components/cat-select/cat-select.js +6 -12
  54. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  55. package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
  56. package/dist/collection/components/cat-skeleton/cat-skeleton.js +1 -1
  57. package/dist/collection/components/cat-spinner/cat-spinner.js +2 -2
  58. package/dist/collection/components/cat-tab/cat-tab.js +1 -1
  59. package/dist/collection/components/cat-tabs/cat-tabs.js +1 -1
  60. package/dist/collection/components/cat-textarea/cat-textarea.js +3 -9
  61. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  62. package/dist/collection/components/cat-time/cat-time.js +3 -3
  63. package/dist/collection/components/cat-time/cat-time.js.map +1 -1
  64. package/dist/collection/components/cat-toggle/cat-toggle.js +1 -9
  65. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  66. package/dist/collection/components/cat-tooltip/cat-tooltip.js +3 -3
  67. package/dist/collection/scss/core/_dialog.scss +1 -1
  68. package/dist/components/cat-alert.js +1 -1
  69. package/dist/components/cat-alert.js.map +1 -1
  70. package/dist/components/cat-avatar2.js +0 -4
  71. package/dist/components/cat-avatar2.js.map +1 -1
  72. package/dist/components/cat-badge.js +1 -1
  73. package/dist/components/cat-button-group.js +1 -1
  74. package/dist/components/cat-button2.js +0 -4
  75. package/dist/components/cat-button2.js.map +1 -1
  76. package/dist/components/cat-card.js +1 -1
  77. package/dist/components/cat-checkbox2.js +1 -9
  78. package/dist/components/cat-checkbox2.js.map +1 -1
  79. package/dist/components/cat-date-inline2.js +4 -12
  80. package/dist/components/cat-date-inline2.js.map +1 -1
  81. package/dist/components/cat-date.js +2 -2
  82. package/dist/components/cat-datepicker-inline.js +2 -2
  83. package/dist/components/cat-datepicker.js +3 -3
  84. package/dist/components/cat-datepicker.js.map +1 -1
  85. package/dist/components/cat-dropdown2.js +1 -1
  86. package/dist/components/cat-form-group.js +1 -1
  87. package/dist/components/cat-icon-registry.js +21 -21
  88. package/dist/components/cat-icon2.js +1 -1
  89. package/dist/components/cat-input2.js +4 -10
  90. package/dist/components/cat-input2.js.map +1 -1
  91. package/dist/components/cat-pagination.js +2 -2
  92. package/dist/components/cat-radio-group.js +1 -1
  93. package/dist/components/cat-radio.js +1 -9
  94. package/dist/components/cat-radio.js.map +1 -1
  95. package/dist/components/cat-scrollable2.js +3 -3
  96. package/dist/components/cat-scrollable2.js.map +1 -1
  97. package/dist/components/cat-select-demo.js +1 -1
  98. package/dist/components/cat-select2.js +5 -11
  99. package/dist/components/cat-select2.js.map +1 -1
  100. package/dist/components/cat-skeleton2.js +1 -1
  101. package/dist/components/cat-spinner2.js +2 -2
  102. package/dist/components/cat-tab.js +1 -1
  103. package/dist/components/cat-tabs.js +1 -1
  104. package/dist/components/cat-textarea.js +3 -9
  105. package/dist/components/cat-textarea.js.map +1 -1
  106. package/dist/components/cat-time.js +2 -2
  107. package/dist/components/cat-time.js.map +1 -1
  108. package/dist/components/cat-toggle.js +1 -9
  109. package/dist/components/cat-toggle.js.map +1 -1
  110. package/dist/components/cat-tooltip.js +2 -2
  111. package/dist/components/floating-ui.dom.esm.js +531 -13
  112. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  113. package/dist/esm/cat-alert_29.entry.js +582 -121
  114. package/dist/esm/cat-alert_29.entry.js.map +1 -1
  115. package/dist/esm/catalyst.js +10 -10
  116. package/dist/esm/catalyst.js.map +1 -1
  117. package/dist/esm/index-3059296e.js +1354 -0
  118. package/dist/esm/index-3059296e.js.map +1 -0
  119. package/dist/esm/index.js +2 -2
  120. package/dist/esm/loader.js +2 -2
  121. package/dist/esm/{of-53334b95.js → of-625babef.js} +22 -22
  122. package/dist/esm/{of-53334b95.js.map → of-625babef.js.map} +1 -1
  123. package/dist/types/components/cat-avatar/cat-avatar.d.ts +0 -1
  124. package/dist/types/components/cat-button/cat-button.d.ts +0 -1
  125. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +0 -1
  126. package/dist/types/components/cat-date-inline/cat-date-inline.d.ts +0 -1
  127. package/dist/types/components/cat-radio/cat-radio.d.ts +0 -1
  128. package/dist/types/components/cat-toggle/cat-toggle.d.ts +0 -1
  129. package/dist/types/stencil-public-runtime.d.ts +3 -8
  130. package/loader/cdn.js +1 -3
  131. package/loader/index.cjs.js +1 -3
  132. package/loader/index.es2017.js +1 -3
  133. package/loader/index.js +1 -3
  134. package/package.json +16 -16
  135. package/dist/catalyst/p-22f0435a.js +0 -3
  136. package/dist/catalyst/p-22f0435a.js.map +0 -1
  137. package/dist/catalyst/p-2c8ac8cf.js +0 -2
  138. package/dist/catalyst/p-3e87007e.entry.js +0 -10
  139. package/dist/catalyst/p-3e87007e.entry.js.map +0 -1
  140. package/dist/cjs/index-66a60071.js +0 -2081
  141. package/dist/cjs/index-66a60071.js.map +0 -1
  142. package/dist/collection/utils/assert.js +0 -9
  143. package/dist/collection/utils/assert.js.map +0 -1
  144. package/dist/components/assert.js +0 -13
  145. package/dist/components/assert.js.map +0 -1
  146. package/dist/esm/index-b7832dfc.js +0 -2052
  147. package/dist/esm/index-b7832dfc.js.map +0 -1
  148. package/dist/esm/polyfills/core-js.js +0 -11
  149. package/dist/esm/polyfills/dom.js +0 -79
  150. package/dist/esm/polyfills/es5-html-element.js +0 -1
  151. package/dist/esm/polyfills/index.js +0 -34
  152. package/dist/esm/polyfills/system.js +0 -6
  153. package/dist/types/utils/assert.d.ts +0 -1
@@ -37,7 +37,6 @@ export declare class CatAvatar {
37
37
  urlTarget?: '_blank' | '_self';
38
38
  onSrcChanged(value?: string): void;
39
39
  componentWillLoad(): void;
40
- componentWillRender(): void;
41
40
  render(): any;
42
41
  private get content();
43
42
  private get cssStyle();
@@ -132,7 +132,6 @@ export declare class CatButton {
132
132
  */
133
133
  catBlur: EventEmitter<FocusEvent>;
134
134
  componentWillLoad(): void;
135
- componentWillRender(): void;
136
135
  haltDisabledEvents(event: Event): void;
137
136
  /**
138
137
  * Programmatically move focus to the button. Use this method instead of
@@ -86,7 +86,6 @@ export declare class CatCheckbox {
86
86
  */
87
87
  catBlur: EventEmitter<FocusEvent>;
88
88
  componentWillLoad(): void;
89
- componentWillRender(): void;
90
89
  /**
91
90
  * Programmatically move focus to the checkbox. Use this method instead of
92
91
  * `input.focus()`.
@@ -75,7 +75,6 @@ export declare class CatDateInline {
75
75
  catChange: EventEmitter<string>;
76
76
  private get focusedDate();
77
77
  componentWillLoad(): void;
78
- componentWillRender(): void;
79
78
  componentDidRender(): void;
80
79
  onKeyDown(e: KeyboardEvent): void;
81
80
  /**
@@ -73,7 +73,6 @@ export declare class CatRadio {
73
73
  * Emitted when the radio loses focus.
74
74
  */
75
75
  catBlur: EventEmitter<FocusEvent>;
76
- componentWillRender(): void;
77
76
  /**
78
77
  * Programmatically move focus to the radio button. Use this method instead of
79
78
  * `input.focus()`.
@@ -82,7 +82,6 @@ export declare class CatToggle {
82
82
  */
83
83
  catBlur: EventEmitter<FocusEvent>;
84
84
  componentWillLoad(): void;
85
- componentWillRender(): void;
86
85
  /**
87
86
  * Programmatically move focus to the toggle. Use this method instead of
88
87
  * `input.focus()`.
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
768
768
  hrefLang?: string;
769
769
  hreflang?: string;
770
770
  media?: string;
771
+ ping?: string;
771
772
  rel?: string;
772
773
  target?: string;
773
774
  referrerPolicy?: ReferrerPolicy;
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
794
795
  cite?: string;
795
796
  }
796
797
  interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
797
- autoFocus?: boolean;
798
798
  disabled?: boolean;
799
799
  form?: string;
800
800
  formAction?: string;
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
921
921
  autocapitalize?: string;
922
922
  autoComplete?: string;
923
923
  autocomplete?: string;
924
- autoFocus?: boolean;
925
- autofocus?: boolean | string;
926
924
  capture?: string;
927
925
  checked?: boolean;
928
926
  crossOrigin?: string;
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
979
977
  popoverTarget?: string;
980
978
  }
981
979
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
982
- autoFocus?: boolean;
983
- autofocus?: boolean | string;
984
980
  challenge?: string;
985
981
  disabled?: boolean;
986
982
  form?: string;
@@ -1129,7 +1125,6 @@ export declare namespace JSXBase {
1129
1125
  type?: string;
1130
1126
  }
1131
1127
  interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1132
- autoFocus?: boolean;
1133
1128
  disabled?: boolean;
1134
1129
  form?: string;
1135
1130
  multiple?: boolean;
@@ -1164,8 +1159,6 @@ export declare namespace JSXBase {
1164
1159
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1165
1160
  autoComplete?: string;
1166
1161
  autocomplete?: string;
1167
- autoFocus?: boolean;
1168
- autofocus?: boolean | string;
1169
1162
  cols?: number;
1170
1163
  disabled?: boolean;
1171
1164
  form?: string;
@@ -1218,6 +1211,8 @@ export declare namespace JSXBase {
1218
1211
  interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1219
1212
  innerHTML?: string;
1220
1213
  accessKey?: string;
1214
+ autoFocus?: boolean;
1215
+ autofocus?: boolean | string;
1221
1216
  class?: string | {
1222
1217
  [className: string]: boolean;
1223
1218
  };
package/loader/cdn.js CHANGED
@@ -1,3 +1 @@
1
-
2
- module.exports = require('../dist/cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
1
+ module.exports = require('../dist/cjs/loader.cjs.js');
@@ -1,3 +1 @@
1
-
2
- module.exports = require('../dist/cjs/loader.cjs.js');
3
- module.exports.applyPolyfills = function() { return Promise.resolve() };
1
+ module.exports = require('../dist/cjs/loader.cjs.js');
@@ -1,3 +1 @@
1
-
2
- export * from '../dist/esm/polyfills/index.js';
3
- export * from '../dist/esm/loader.js';
1
+ export * from '../dist/esm/loader.js';
package/loader/index.js CHANGED
@@ -1,4 +1,2 @@
1
-
2
1
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
3
- export * from '../dist/esm/polyfills/index.js';
4
- export * from '../dist/esm/loader.js';
2
+ export * from '../dist/esm/loader.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "10.12.0",
3
+ "version": "10.13.0",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -28,8 +28,8 @@
28
28
  "rxjs": "^7.5.5"
29
29
  },
30
30
  "dependencies": {
31
- "@floating-ui/dom": "1.6.3",
32
- "@stencil/core": "4.12.6",
31
+ "@floating-ui/dom": "1.6.5",
32
+ "@stencil/core": "4.18.3",
33
33
  "@types/cleave.js": "^1.4.12",
34
34
  "autosize": "6.0.1",
35
35
  "autosize-input": "1.0.2",
@@ -40,35 +40,35 @@
40
40
  "sanitize.css": "13.0.0",
41
41
  "tabbable": "6.2.0",
42
42
  "toastify-js": "1.12.0",
43
- "@haiilo/catalyst-tokens": "10.12.0"
43
+ "@haiilo/catalyst-tokens": "10.13.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@babel/core": "^7.23.3",
47
- "@haiilo/catalyst-icons": "^2.2.5",
46
+ "@babel/core": "^7.24.7",
47
+ "@haiilo/catalyst-icons": "^2.6.1",
48
48
  "@stencil/angular-output-target": "^0.8.4",
49
49
  "@stencil/react-output-target": "^0.5.3",
50
- "@stencil/sass": "^3.0.10",
50
+ "@stencil/sass": "^3.0.12",
51
51
  "@stencil/vue-output-target": "^0.8.7",
52
52
  "@types/autosize": "^4.0.3",
53
53
  "@types/jest": "^29.5.10",
54
- "@types/node": "^20.11.30",
54
+ "@types/node": "^20.14.2",
55
55
  "@types/toastify-js": "^1.12.3",
56
- "@typescript-eslint/eslint-plugin": "^7.2.0",
57
- "@typescript-eslint/parser": "^7.2.0",
56
+ "@typescript-eslint/eslint-plugin": "^7.13.0",
57
+ "@typescript-eslint/parser": "^7.13.0",
58
58
  "babel-loader": "^9.1.3",
59
- "eslint": "^8.57.0",
59
+ "eslint": "^8.56.0",
60
60
  "eslint-config-prettier": "^9.1.0",
61
61
  "jest": "^29.7.0",
62
62
  "jest-cli": "^29.7.0",
63
- "prettier": "^3.2.5",
64
- "puppeteer": "^22.2.0",
65
- "replace-in-file": "^7.1.0",
63
+ "prettier": "^3.3.2",
64
+ "puppeteer": "^22.11.0",
65
+ "replace-in-file": "^7.2.0",
66
66
  "rxjs": "^7.5.5",
67
67
  "stencil-inline-svg": "^1.1.0",
68
- "stylelint": "^16.2.1",
68
+ "stylelint": "^16.6.1",
69
69
  "stylelint-config-prettier-scss": "^1.0.0",
70
70
  "stylelint-config-standard-scss": "^13.0.0",
71
- "typescript": "~5.3.2"
71
+ "typescript": "~5.4.5"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "stencil build --docs",
@@ -1,3 +0,0 @@
1
- const t="catalyst";let e;let n;let s=false;let l=false;let o=false;const c=(t,e="")=>{{return()=>{}}};const i=(t,e)=>{{return()=>{}}};const f="{visibility:hidden}.hydrated{visibility:inherit}";const r="slot-fb{display:contents}slot-fb[hidden]{display:none}";const u="http://www.w3.org/1999/xlink";const a={};const d="http://www.w3.org/2000/svg";const v="http://www.w3.org/1999/xhtml";const p=t=>t!=null;const y=t=>{t=typeof t;return t==="object"||t==="function"};function h(t){var e,n,s;return(s=(n=(e=t.head)===null||e===void 0?void 0:e.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&s!==void 0?s:undefined}const m=(t,e,...n)=>{let s=null;let l=null;let o=false;let c=false;const i=[];const f=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){f(s)}else if(s!=null&&typeof s!=="boolean"){if(o=typeof t!=="function"&&!y(s)){s=String(s)}if(o&&c){i[i.length-1].t+=s}else{i.push(o?b(null,s):s)}c=o}}};f(n);if(e){if(e.key){l=e.key}{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,i,g)}const r=b(t,null);r.l=e;if(i.length>0){r.o=i}{r.i=l}return r};const b=(t,e)=>{const n={u:0,v:t,t:e,p:null,o:null};{n.l=null}{n.i=null}return n};const w={};const $=t=>t&&t.v===w;const g={forEach:(t,e)=>t.map(S).forEach(e),map:(t,e)=>t.map(S).map(e).map(j)};const S=t=>({vattrs:t.l,vchildren:t.o,vkey:t.i,vname:t.h,vtag:t.v,vtext:t.t});const j=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return m(t.vtag,e,...t.vchildren||[])}const e=b(t.vtag,t.vtext);e.l=t.vattrs;e.o=t.vchildren;e.i=t.vkey;e.h=t.vname;return e};const k=(t,e)=>{if(t!=null&&!y(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const O=t=>wt(t).$hostElement$;const C=(t,e,n)=>{const s=O(t);return{emit:t=>x(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const x=(t,e,n)=>{const s=Et.ce(e,n);t.dispatchEvent(s);return s};const M=new WeakMap;const E=(t,e,n)=>{let s=Ct.get(t);if(Lt&&n){s=s||new CSSStyleSheet;if(typeof s==="string"){s=e}else{s.replaceSync(e)}}else{s=e}Ct.set(t,s)};const P=(t,e,n)=>{var s;const l=L(e);const o=Ct.get(l);t=t.nodeType===11?t:Mt;if(o){if(typeof o==="string"){t=t.head||t;let n=M.get(t);let c;if(!n){M.set(t,n=new Set)}if(!n.has(l)){{c=Mt.createElement("style");c.innerHTML=o;const e=(s=Et.m)!==null&&s!==void 0?s:h(Mt);if(e!=null){c.setAttribute("nonce",e)}t.insertBefore(c,t.querySelector("link"))}if(e.u&4){c.innerHTML+=r}if(n){n.add(l)}}}else if(!t.adoptedStyleSheets.includes(o)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]}}return l};const R=t=>{const e=t.$;const n=t.$hostElement$;const s=e.u;const l=c("attachStyles",e.S);const o=P(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(s&10){n["s-sc"]=o;n.classList.add(o+"-h")}l()};const L=(t,e)=>"sc-"+t.S;const U=(t,e,n,s,l,o)=>{if(n!==s){let c=St(t,e);let i=e.toLowerCase();if(e==="class"){const e=t.classList;const l=A(n);const o=A(s);e.remove(...l.filter((t=>t&&!o.includes(t))));e.add(...o.filter((t=>t&&!l.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="key");else if(e==="ref"){if(s){s(t)}}else if(!c&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(St(xt,i)){e=i.slice(2)}else{e=i[2]+e.slice(3)}if(n||s){const l=e.endsWith(N);e=e.replace(T,"");if(n){Et.rel(t,e,n,l)}if(s){Et.ael(t,e,s,l)}}}else{const f=y(s);if((c||f&&s!==null)&&!l){try{if(!t.tagName.includes("-")){const l=s==null?"":s;if(e==="list"){c=false}else if(n==null||t[e]!=l){t[e]=l}}else{t[e]=s}}catch(t){}}let r=false;{if(i!==(i=i.replace(/^xlink\:?/,""))){e=i;r=true}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){if(r){t.removeAttributeNS(u,e)}else{t.removeAttribute(e)}}}else if((!c||o&4||l)&&!f){s=s===true?"":s;if(r){t.setAttributeNS(u,e,s)}else{t.setAttribute(e,s)}}}}};const W=/\s/;const A=t=>!t?[]:t.split(W);const N="Capture";const T=new RegExp(N+"$");const D=(t,e,n,s)=>{const l=e.p.nodeType===11&&e.p.host?e.p.host:e.p;const o=t&&t.l||a;const c=e.l||a;{for(s in o){if(!(s in c)){U(l,s,o[s],undefined,n,e.u)}}}for(s in c){U(l,s,o[s],c[s],n,e.u)}};const F=(t,s,o,c)=>{const i=s.o[o];let f=0;let r;let u;if(i.t!==null){r=i.p=Mt.createTextNode(i.t)}else{if(!l){l=i.v==="svg"}r=i.p=Mt.createElementNS(l?d:v,i.v);if(l&&i.v==="foreignObject"){l=false}{D(null,i,l)}if(p(e)&&r["s-si"]!==e){r.classList.add(r["s-si"]=e)}if(i.o){for(f=0;f<i.o.length;++f){u=F(t,i,f);if(u){r.appendChild(u)}}}{if(i.v==="svg"){l=false}else if(r.tagName==="foreignObject"){l=true}}}r["s-hn"]=n;return r};const H=(t,e,s,l,o,c)=>{let i=t;let f;if(i.shadowRoot&&i.tagName===n){i=i.shadowRoot}for(;o<=c;++o){if(l[o]){f=F(null,s,o);if(f){l[o].p=f;i.insertBefore(f,e)}}}};const q=(t,e,n)=>{for(let s=e;s<=n;++s){const e=t[s];if(e){const t=e.p;z(e);if(t){t.remove()}}}};const I=(t,e,n,s,l=false)=>{let o=0;let c=0;let i=0;let f=0;let r=e.length-1;let u=e[0];let a=e[r];let d=s.length-1;let v=s[0];let p=s[d];let y;let h;while(o<=r&&c<=d){if(u==null){u=e[++o]}else if(a==null){a=e[--r]}else if(v==null){v=s[++c]}else if(p==null){p=s[--d]}else if(V(u,v,l)){_(u,v,l);u=e[++o];v=s[++c]}else if(V(a,p,l)){_(a,p,l);a=e[--r];p=s[--d]}else if(V(u,p,l)){_(u,p,l);t.insertBefore(u.p,a.p.nextSibling);u=e[++o];p=s[--d]}else if(V(a,v,l)){_(a,v,l);t.insertBefore(a.p,u.p);a=e[--r];v=s[++c]}else{i=-1;{for(f=o;f<=r;++f){if(e[f]&&e[f].i!==null&&e[f].i===v.i){i=f;break}}}if(i>=0){h=e[i];if(h.v!==v.v){y=F(e&&e[c],n,i)}else{_(h,v,l);e[i]=undefined;y=h.p}v=s[++c]}else{y=F(e&&e[c],n,c);v=s[++c]}if(y){{u.p.parentNode.insertBefore(y,u.p)}}}}if(o>r){H(t,s[d+1]==null?null:s[d+1].p,n,s,c,d)}else if(c>d){q(e,o,r)}};const V=(t,e,n=false)=>{if(t.v===e.v){if(!n){return t.i===e.i}return true}return false};const _=(t,e,n=false)=>{const o=e.p=t.p;const c=t.o;const i=e.o;const f=e.v;const r=e.t;if(r===null){{l=f==="svg"?true:f==="foreignObject"?false:l}{if(f==="slot"&&!s);else{D(t,e,l)}}if(c!==null&&i!==null){I(o,c,e,i,n)}else if(i!==null){if(t.t!==null){o.textContent=""}H(o,null,e,i,0,i.length-1)}else if(c!==null){q(c,0,c.length-1)}if(l&&f==="svg"){l=false}}else if(t.t!==r){o.data=r}};const z=t=>{{t.l&&t.l.ref&&t.l.ref(null);t.o&&t.o.map(z)}};const B=(t,l,o=false)=>{const c=t.$hostElement$;const i=t.$;const f=t.j||b(null,null);const r=$(l)?l:m(null,null,l);n=c.tagName;if(i.k){r.l=r.l||{};i.k.map((([t,e])=>r.l[e]=c[t]))}if(o&&r.l){for(const t of Object.keys(r.l)){if(c.hasAttribute(t)&&!["key","ref","style","class"].includes(t)){r.l[t]=c[t]}}}r.v=null;r.u|=4;t.j=r;r.p=f.p=c.shadowRoot||c;{e=c["s-sc"]}s=(i.u&1)!==0;_(f,r,o)};const G=(t,e)=>{if(e&&!t.O&&e["s-p"]){e["s-p"].push(new Promise((e=>t.O=e)))}};const J=(t,e)=>{{t.u|=16}if(t.u&4){t.u|=512;return}G(t,t.C);const n=()=>K(t,e);return Ft(n)};const K=(t,e)=>{const n=c("scheduleUpdate",t.$.S);const s=t.M;let l;if(e){{t.u|=256;if(t.P){t.P.map((([t,e])=>nt(s,t,e)));t.P=undefined}}{l=nt(s,"componentWillLoad")}}{l=Q(l,(()=>nt(s,"componentWillRender")))}n();return Q(l,(()=>Y(t,s,e)))};const Q=(t,e)=>X(t)?t.then(e):e();const X=t=>t instanceof Promise||t&&t.then&&typeof t.then==="function";const Y=async(t,e,n)=>{var s;const l=t.$hostElement$;const o=c("update",t.$.S);const i=l["s-rc"];if(n){R(t)}const f=c("render",t.$.S);{Z(t,e,l,n)}if(i){i.map((t=>t()));l["s-rc"]=undefined}f();o();{const e=(s=l["s-p"])!==null&&s!==void 0?s:[];const n=()=>tt(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.u|=4;e.length=0}}};const Z=(t,e,n,s)=>{try{e=e.render();{t.u&=~16}{t.u|=2}{{{B(t,e,s)}}}}catch(e){jt(e,t.$hostElement$)}return null};const tt=t=>{const e=t.$.S;const n=t.$hostElement$;const s=c("postUpdate",e);const l=t.M;const o=t.C;{nt(l,"componentDidRender")}if(!(t.u&64)){t.u|=64;{st(n)}{nt(l,"componentDidLoad")}s();{t.R(n);if(!o){et()}}}else{s()}{t.L(n)}{if(t.O){t.O();t.O=undefined}if(t.u&512){Dt((()=>J(t,false)))}t.u&=~(4|512)}};const et=e=>{{st(Mt.documentElement)}Dt((()=>x(xt,"appload",{detail:{namespace:t}})))};const nt=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){jt(t)}}return undefined};const st=t=>t.classList.add("hydrated");const lt=(t,e)=>wt(t).U.get(e);const ot=(t,e,n,s)=>{const l=wt(t);const o=l.$hostElement$;const c=l.U.get(e);const i=l.u;const f=l.M;n=k(n,s.W[e][0]);const r=Number.isNaN(c)&&Number.isNaN(n);const u=n!==c&&!r;if((!(i&8)||c===undefined)&&u){l.U.set(e,n);if(f){if(s.A&&i&128){const t=s.A[e];if(t){t.map((t=>{try{f[t](n,c,e)}catch(t){jt(t,o)}}))}}if((i&(2|16))===2){J(l,false)}}}};const ct=(t,e,n)=>{var s;const l=t.prototype;if(e.W){if(t.watchers){e.A=t.watchers}const o=Object.entries(e.W);o.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(l,t,{get(){return lt(this,t)},set(n){ot(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(l,t,{value(...e){var n;const s=wt(this);return(n=s===null||s===void 0?void 0:s.N)===null||n===void 0?void 0:n.then((()=>{var n;return(n=s.M)===null||n===void 0?void 0:n[t](...e)}))}})}}));if(n&1){const n=new Map;l.attributeChangedCallback=function(t,s,o){Et.jmp((()=>{var c;const i=n.get(t);if(this.hasOwnProperty(i)){o=this[i];delete this[i]}else if(l.hasOwnProperty(i)&&typeof this[i]==="number"&&this[i]==o){return}else if(i==null){const n=wt(this);const l=n===null||n===void 0?void 0:n.u;if(l&&!(l&8)&&l&128&&o!==s){const l=n.M;const i=(c=e.A)===null||c===void 0?void 0:c[t];i===null||i===void 0?void 0:i.forEach((e=>{if(l[e]!=null){l[e].call(l,o,s,t)}}))}return}this[i]=o===null&&typeof this[i]==="boolean"?false:o}))};t.observedAttributes=Array.from(new Set([...Object.keys((s=e.A)!==null&&s!==void 0?s:{}),...o.filter((([t,e])=>e[0]&15)).map((([t,s])=>{var l;const o=s[1]||t;n.set(o,t);if(s[0]&512){(l=e.k)===null||l===void 0?void 0:l.push([t,o])}return o}))]))}}return t};const it=async(t,e,n,s)=>{let l;if((e.u&32)===0){e.u|=32;const s=n.T;if(s){l=Ot(n);if(l.then){const t=i();l=await l;t()}if(!l.isProxied){{n.A=l.watchers}ct(l,n,2);l.isProxied=true}const t=c("createInstance",n.S);{e.u|=8}try{new l(e)}catch(t){jt(t)}{e.u&=~8}{e.u|=128}t();ft(e.M)}else{l=t.constructor;customElements.whenDefined(n.S).then((()=>e.u|=128))}if(l.style){let t=l.style;const e=L(n);if(!Ct.has(e)){const s=c("registerStyles",n.S);E(e,t,!!(n.u&1));s()}}}const o=e.C;const f=()=>J(e,true);if(o&&o["s-rc"]){o["s-rc"].push(f)}else{f()}};const ft=t=>{{nt(t,"connectedCallback")}};const rt=t=>{if((Et.u&1)===0){const e=wt(t);const n=e.$;const s=c("connectedCallback",n.S);if(!(e.u&1)){e.u|=1;{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){G(e,e.C=n);break}}}if(n.W){Object.entries(n.W).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{it(t,e,n)}}else{vt(t,e,n.D);if(e===null||e===void 0?void 0:e.M){ft(e.M)}else if(e===null||e===void 0?void 0:e.F){e.F.then((()=>ft(e.M)))}}s()}};const ut=t=>{{nt(t,"disconnectedCallback")}};const at=async t=>{if((Et.u&1)===0){const e=wt(t);{if(e.H){e.H.map((t=>t()));e.H=undefined}}if(e===null||e===void 0?void 0:e.M){ut(e.M)}else if(e===null||e===void 0?void 0:e.F){e.F.then((()=>ut(e.M)))}}};const dt=(t,e={})=>{var n;const s=c();const l=[];const o=e.exclude||[];const i=xt.customElements;const u=Mt.head;const a=u.querySelector("meta[charset]");const d=Mt.createElement("style");const v=[];let p;let y=true;Object.assign(Et,e);Et.q=new URL(e.resourcesUrl||"./",Mt.baseURI).href;let m=false;t.map((t=>{t[1].map((e=>{var n;const s={u:e[0],S:e[1],W:e[2],D:e[3]};if(s.u&4){m=true}{s.W=e[2]}{s.D=e[3]}{s.k=[]}{s.A=(n=e[4])!==null&&n!==void 0?n:{}}const c=s.S;const f=class extends HTMLElement{constructor(t){super(t);t=this;gt(t,s);if(s.u&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(p){clearTimeout(p);p=null}if(y){v.push(this)}else{Et.jmp((()=>rt(this)))}}disconnectedCallback(){Et.jmp((()=>at(this)))}componentOnReady(){return wt(this).F}};s.T=t[0];if(!o.includes(c)&&!i.get(c)){l.push(c);i.define(c,ct(f,s,1))}}))}));if(l.length>0){if(m){d.textContent+=r}{d.textContent+=l+f}if(d.innerHTML.length){d.setAttribute("data-styles","");const t=(n=Et.m)!==null&&n!==void 0?n:h(Mt);if(t!=null){d.setAttribute("nonce",t)}u.insertBefore(d,a?a.nextSibling:u.firstChild)}}y=false;if(v.length){v.map((t=>t.connectedCallback()))}else{{Et.jmp((()=>p=setTimeout(et,30)))}}s()};const vt=(t,e,n,s)=>{if(n){n.map((([n,s,l])=>{const o=yt(t,n);const c=pt(e,l);const i=ht(n);Et.ael(o,s,c,i);(e.H=e.H||[]).push((()=>Et.rel(o,s,c,i)))}))}};const pt=(t,e)=>n=>{try{{if(t.u&256){t.M[e](n)}else{(t.P=t.P||[]).push([e,n])}}}catch(t){jt(t)}};const yt=(t,e)=>{if(e&8)return xt;return t};const ht=t=>Pt?{passive:(t&1)!==0,capture:(t&2)!==0}:(t&2)!==0;const mt=t=>Et.m=t;const bt=new WeakMap;const wt=t=>bt.get(t);const $t=(t,e)=>bt.set(e.M=t,e);const gt=(t,e)=>{const n={u:0,$hostElement$:t,$:e,U:new Map};{n.N=new Promise((t=>n.L=t))}{n.F=new Promise((t=>n.R=t));t["s-p"]=[];t["s-rc"]=[]}vt(t,n,e.D);return bt.set(t,n)};const St=(t,e)=>e in t;const jt=(t,e)=>(0,console.error)(t,e);const kt=new Map;const Ot=(t,e,n)=>{const s=t.S.replace(/-/g,"_");const l=t.T;const o=kt.get(l);if(o){return o[s]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((t=>{{kt.set(l,t)}return t[s]}),jt)};const Ct=new Map;const xt=typeof window!=="undefined"?window:{};const Mt=xt.document||{head:{}};const Et={u:0,q:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const Pt=(()=>{let t=false;try{Mt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=true}}))}catch(t){}return t})();const Rt=t=>Promise.resolve(t);const Lt=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const Ut=[];const Wt=[];const At=(t,e)=>n=>{t.push(n);if(!o){o=true;if(e&&Et.u&4){Dt(Tt)}else{Et.raf(Tt)}}};const Nt=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){jt(t)}}t.length=0};const Tt=()=>{Nt(Ut);{Nt(Wt);if(o=Ut.length>0){Et.raf(Tt)}}};const Dt=t=>Rt().then(t);const Ft=At(Wt,true);export{w as H,dt as b,C as c,O as g,m as h,Rt as p,$t as r,mt as s};
3
- //# sourceMappingURL=p-22f0435a.js.map