@haiilo/catalyst 0.5.10 → 0.5.13

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 (79) hide show
  1. package/dist/catalyst/catalyst.css +7 -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/{p-e82b63e9.js → p-12486027.js} +2 -2
  6. package/dist/catalyst/{p-e82b63e9.js.map → p-12486027.js.map} +0 -0
  7. package/dist/catalyst/p-2ec5c87a.js +2 -0
  8. package/dist/catalyst/p-2ec5c87a.js.map +1 -0
  9. package/dist/catalyst/p-7c06183a.js +2 -0
  10. package/dist/catalyst/p-7c06183a.js.map +1 -0
  11. package/dist/catalyst/p-a8629c54.entry.js +2 -0
  12. package/dist/catalyst/p-a8629c54.entry.js.map +1 -0
  13. package/dist/catalyst/p-c7f3b231.js +10 -0
  14. package/dist/catalyst/p-c7f3b231.js.map +1 -0
  15. package/dist/catalyst/p-e6491f33.entry.js +10 -0
  16. package/dist/catalyst/p-e6491f33.entry.js.map +1 -0
  17. package/dist/cjs/{app-globals-2a30d681.js → app-globals-aa29ad72.js} +2 -2
  18. package/dist/cjs/{app-globals-2a30d681.js.map → app-globals-aa29ad72.js.map} +1 -1
  19. package/dist/cjs/cat-alert_15.cjs.entry.js +52 -88
  20. package/dist/cjs/cat-alert_15.cjs.entry.js.map +1 -1
  21. package/dist/cjs/cat-icon-registry-49b11b51.js +131 -0
  22. package/dist/cjs/cat-icon-registry-49b11b51.js.map +1 -0
  23. package/dist/cjs/cat-notification-156f4cf5.js +552 -0
  24. package/dist/cjs/cat-notification-156f4cf5.js.map +1 -0
  25. package/dist/cjs/cat-textarea.cjs.entry.js +91 -0
  26. package/dist/cjs/cat-textarea.cjs.entry.js.map +1 -0
  27. package/dist/cjs/catalyst.cjs.js +4 -3
  28. package/dist/cjs/catalyst.cjs.js.map +1 -1
  29. package/dist/cjs/index.cjs.js +4 -1
  30. package/dist/cjs/index.cjs.js.map +1 -1
  31. package/dist/cjs/loader.cjs.js +4 -3
  32. package/dist/cjs/loader.cjs.js.map +1 -1
  33. package/dist/cjs/{cat-icon-registry-b3a95a6b.js → loglevel-c9b2d01f.js} +3 -126
  34. package/dist/cjs/loglevel-c9b2d01f.js.map +1 -0
  35. package/dist/collection/collection-manifest.json +1 -0
  36. package/dist/collection/components/cat-notification/cat-notification.js +106 -0
  37. package/dist/collection/components/cat-notification/cat-notification.js.map +1 -0
  38. package/dist/collection/components/cat-toast-demo/cat-toast-demo.css +3 -0
  39. package/dist/collection/components/cat-toast-demo/cat-toast-demo.js +51 -0
  40. package/dist/collection/components/cat-toast-demo/cat-toast-demo.js.map +1 -0
  41. package/dist/collection/index.js +1 -0
  42. package/dist/collection/index.js.map +1 -1
  43. package/dist/components/cat-notification.js +550 -0
  44. package/dist/components/cat-notification.js.map +1 -0
  45. package/dist/components/cat-toast-demo.d.ts +11 -0
  46. package/dist/components/cat-toast-demo.js +84 -0
  47. package/dist/components/cat-toast-demo.js.map +1 -0
  48. package/dist/components/index.js +1 -0
  49. package/dist/components/index.js.map +1 -1
  50. package/dist/components/loglevel.js +1 -1
  51. package/dist/esm/{app-globals-77cd8c8e.js → app-globals-cf55f7f5.js} +2 -2
  52. package/dist/esm/{app-globals-77cd8c8e.js.map → app-globals-cf55f7f5.js.map} +1 -1
  53. package/dist/esm/cat-alert_15.entry.js +46 -82
  54. package/dist/esm/cat-alert_15.entry.js.map +1 -1
  55. package/dist/esm/cat-icon-registry-3ea75755.js +128 -0
  56. package/dist/esm/cat-icon-registry-3ea75755.js.map +1 -0
  57. package/dist/esm/cat-notification-cd98c266.js +550 -0
  58. package/dist/esm/cat-notification-cd98c266.js.map +1 -0
  59. package/dist/esm/cat-textarea.entry.js +87 -0
  60. package/dist/esm/cat-textarea.entry.js.map +1 -0
  61. package/dist/esm/catalyst.js +4 -3
  62. package/dist/esm/catalyst.js.map +1 -1
  63. package/dist/esm/index.js +3 -1
  64. package/dist/esm/index.js.map +1 -1
  65. package/dist/esm/loader.js +4 -3
  66. package/dist/esm/loader.js.map +1 -1
  67. package/dist/esm/{cat-icon-registry-a7acd6f7.js → loglevel-39a9e3f9.js} +2 -125
  68. package/dist/esm/loglevel-39a9e3f9.js.map +1 -0
  69. package/dist/types/components/cat-notification/cat-notification.d.ts +51 -0
  70. package/dist/types/components/cat-toast-demo/cat-toast-demo.d.ts +9 -0
  71. package/dist/types/components.d.ts +13 -0
  72. package/dist/types/index.d.ts +1 -0
  73. package/package.json +5 -3
  74. package/dist/catalyst/p-9a3c2375.js +0 -2
  75. package/dist/catalyst/p-9a3c2375.js.map +0 -1
  76. package/dist/catalyst/p-a6b8ebe9.entry.js +0 -10
  77. package/dist/catalyst/p-a6b8ebe9.entry.js.map +0 -1
  78. package/dist/cjs/cat-icon-registry-b3a95a6b.js.map +0 -1
  79. package/dist/esm/cat-icon-registry-a7acd6f7.js.map +0 -1
@@ -419,6 +419,8 @@ export namespace Components {
419
419
  */
420
420
  "value"?: string | number;
421
421
  }
422
+ interface CatToastDemo {
423
+ }
422
424
  interface CatToggle {
423
425
  /**
424
426
  * Checked state of the toggle.
@@ -560,6 +562,12 @@ declare global {
560
562
  prototype: HTMLCatTextareaElement;
561
563
  new (): HTMLCatTextareaElement;
562
564
  };
565
+ interface HTMLCatToastDemoElement extends Components.CatToastDemo, HTMLStencilElement {
566
+ }
567
+ var HTMLCatToastDemoElement: {
568
+ prototype: HTMLCatToastDemoElement;
569
+ new (): HTMLCatToastDemoElement;
570
+ };
563
571
  interface HTMLCatToggleElement extends Components.CatToggle, HTMLStencilElement {
564
572
  }
565
573
  var HTMLCatToggleElement: {
@@ -586,6 +594,7 @@ declare global {
586
594
  "cat-skeleton": HTMLCatSkeletonElement;
587
595
  "cat-spinner": HTMLCatSpinnerElement;
588
596
  "cat-textarea": HTMLCatTextareaElement;
597
+ "cat-toast-demo": HTMLCatToastDemoElement;
589
598
  "cat-toggle": HTMLCatToggleElement;
590
599
  "cat-tooltip": HTMLCatTooltipElement;
591
600
  }
@@ -1057,6 +1066,8 @@ declare namespace LocalJSX {
1057
1066
  */
1058
1067
  "value"?: string | number;
1059
1068
  }
1069
+ interface CatToastDemo {
1070
+ }
1060
1071
  interface CatToggle {
1061
1072
  /**
1062
1073
  * Checked state of the toggle.
@@ -1139,6 +1150,7 @@ declare namespace LocalJSX {
1139
1150
  "cat-skeleton": CatSkeleton;
1140
1151
  "cat-spinner": CatSpinner;
1141
1152
  "cat-textarea": CatTextarea;
1153
+ "cat-toast-demo": CatToastDemo;
1142
1154
  "cat-toggle": CatToggle;
1143
1155
  "cat-tooltip": CatTooltip;
1144
1156
  }
@@ -1160,6 +1172,7 @@ declare module "@stencil/core" {
1160
1172
  "cat-skeleton": LocalJSX.CatSkeleton & JSXBase.HTMLAttributes<HTMLCatSkeletonElement>;
1161
1173
  "cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
1162
1174
  "cat-textarea": LocalJSX.CatTextarea & JSXBase.HTMLAttributes<HTMLCatTextareaElement>;
1175
+ "cat-toast-demo": LocalJSX.CatToastDemo & JSXBase.HTMLAttributes<HTMLCatToastDemoElement>;
1163
1176
  "cat-toggle": LocalJSX.CatToggle & JSXBase.HTMLAttributes<HTMLCatToggleElement>;
1164
1177
  "cat-tooltip": LocalJSX.CatTooltip & JSXBase.HTMLAttributes<HTMLCatTooltipElement>;
1165
1178
  }
@@ -1,3 +1,4 @@
1
1
  export { Components, JSX } from './components';
2
2
  export { CatI18nRegistry } from './components/cat-i18n/cat-i18n-registry';
3
3
  export { CatIconRegistry } from './components/cat-icon/cat-icon-registry';
4
+ export { NotificationsService } from './components/cat-notification/cat-notification';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "0.5.10",
3
+ "version": "0.5.13",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,13 +43,14 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@floating-ui/dom": "0.4.1",
46
- "@haiilo/catalyst-tokens": "^0.5.10",
46
+ "@haiilo/catalyst-tokens": "^0.5.13",
47
47
  "@stencil/core": "2.15.0",
48
48
  "autosize": "^5.0.1",
49
49
  "focus-trap": "6.8.1",
50
50
  "loglevel": "1.8.0",
51
51
  "sanitize.css": "13.0.0",
52
- "tabbable": "5.3.1"
52
+ "tabbable": "5.3.1",
53
+ "toastify-js": "^1.11.2"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@babel/core": "^7.16.5",
@@ -60,6 +61,7 @@
60
61
  "@stencil/vue-output-target": "^0.6.0",
61
62
  "@types/autosize": "^4.0.1",
62
63
  "@types/jest": "^27.4.0",
64
+ "@types/toastify-js": "^1.11.0",
63
65
  "@typescript-eslint/eslint-plugin": "^5.11.0",
64
66
  "@typescript-eslint/parser": "^5.11.0",
65
67
  "babel-loader": "^8.2.3",
@@ -1,2 +0,0 @@
1
- var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function n(e,n,o){return o={path:n,exports:{},require:function(e,n){return t()}},e(o,o.exports),o.exports}function t(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var o=n((function(n){(function(e,t){if(n.exports){n.exports=t()}else{e.log=t()}})(e,(function(){var e=function(){};var n="undefined";var t=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent);var o=["trace","debug","info","warn","error"];function i(e,n){var t=e[n];if(typeof t.bind==="function"){return t.bind(e)}else{try{return Function.prototype.bind.call(t,e)}catch(n){return function(){return Function.prototype.apply.apply(t,[e,arguments])}}}}function r(){if(console.log){if(console.log.apply){console.log.apply(console,arguments)}else{Function.prototype.apply.apply(console.log,[console,arguments])}}if(console.trace)console.trace()}function s(o){if(o==="debug"){o="log"}if(typeof console===n){return false}else if(o==="trace"&&t){return r}else if(console[o]!==undefined){return i(console,o)}else if(console.log!==undefined){return i(console,"log")}else{return e}}function a(n,t){for(var i=0;i<o.length;i++){var r=o[i];this[r]=i<n?e:this.methodFactory(r,n,t)}this.log=this.debug}function c(e,t,o){return function(){if(typeof console!==n){a.call(this,t,o);this[e].apply(this,arguments)}}}function u(e,n,t){return s(e)||c.apply(this,arguments)}function f(e,t,i){var r=this;var s;t=t==null?"WARN":t;var c="loglevel";if(typeof e==="string"){c+=":"+e}else if(typeof e==="symbol"){c=undefined}function f(e){var t=(o[e]||"silent").toUpperCase();if(typeof window===n||!c)return;try{window.localStorage[c]=t;return}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+t+";"}catch(e){}}function d(){var e;if(typeof window===n||!c)return;try{e=window.localStorage[c]}catch(e){}if(typeof e===n){try{var t=window.document.cookie;var o=t.indexOf(encodeURIComponent(c)+"=");if(o!==-1){e=/^([^;]+)/.exec(t.slice(o))[1]}}catch(e){}}if(r.levels[e]===undefined){e=undefined}return e}function l(){if(typeof window===n||!c)return;try{window.localStorage.removeItem(c);return}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}r.name=e;r.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5};r.methodFactory=i||u;r.getLevel=function(){return s};r.setLevel=function(t,o){if(typeof t==="string"&&r.levels[t.toUpperCase()]!==undefined){t=r.levels[t.toUpperCase()]}if(typeof t==="number"&&t>=0&&t<=r.levels.SILENT){s=t;if(o!==false){f(t)}a.call(r,t,e);if(typeof console===n&&t<r.levels.SILENT){return"No console available for logging"}}else{throw"log.setLevel() called with invalid level: "+t}};r.setDefaultLevel=function(e){t=e;if(!d()){r.setLevel(e,false)}};r.resetLevel=function(){r.setLevel(t,false);l()};r.enableAll=function(e){r.setLevel(r.levels.TRACE,e)};r.disableAll=function(e){r.setLevel(r.levels.SILENT,e)};var w=d();if(w==null){w=t}r.setLevel(w,false)}var d=new f;var l={};d.getLogger=function e(n){if(typeof n!=="symbol"&&typeof n!=="string"||n===""){throw new TypeError("You must supply a name when creating a logger.")}var t=l[n];if(!t){t=l[n]=new f(n,d.getLevel(),d.methodFactory)}return t};var w=typeof window!==n?window.log:undefined;d.noConflict=function(){if(typeof window!==n&&window.log===d){window.log=w}return d};d.getLoggers=function e(){return l};d["default"]=d;return d}))}));class i{constructor(){this.lang="en";this.messages=new Map}static getInstance(){if(!i.instance){i.instance=new i}return i.instance}getLanguage(){return this.lang}setLanguage(e){this.lang=e}getMessage(e){var n;const t=(n=this.messages.get(this.lang))===null||n===void 0?void 0:n.get(e);if(!t){o.error(`[CatI18nRegistry] Unknown message for lang ${this.lang}: ${e}`)}return t}addMessage(e,n,t){this.getDict(e).set(n,t);o.info(`[CatI18nRegistry] Added message for lang ${e}: ${n}`);window.dispatchEvent(this.buildEvent("cat-i18n-added",{lang:e,key:n}));return this}addMessages(e,n){const t=this.getDict(e);Object.entries(n).forEach((([e,n])=>t.set(e,n)));o.info(`[CatI18nRegistry] Added message for lang ${e}: ${Object.keys(n).concat(", ")}`);window.dispatchEvent(this.buildEvent("cat-i18n-added",{lang:e,keys:Object.keys(n)}));return this}removeMessage(e,n){this.getDict(e).delete(n);o.info(`[CatI18nRegistry] Removed message for lang ${e}: ${n}`);window.dispatchEvent(this.buildEvent("cat-i18n-removed",{lang:e,key:n}));return this}removeMessages(e,n){const t=this.getDict(e);n.forEach((e=>t.delete(e)));o.info(`[CatI18nRegistry] Removed messages for lang ${e}: ${n.concat(", ")}`);window.dispatchEvent(this.buildEvent("cat-i18n-added",{lang:e,keys:n}));return this}buildEvent(e,n){return new CustomEvent(e,{bubbles:true,composed:true,detail:n})}getDict(e){let n=this.messages.get(e);if(!n){n=new Map;this.messages.set(e,n)}return n}}class r{constructor(){this.icons=new Map}static getInstance(){if(!r.instance){r.instance=new r}return r.instance}getIcon(e,n){const t=this.icons.get(this.buildName(e,n));if(!t){o.error(`[CatIconRegistry] Unknown icon${n?` in set ${n}`:""}: ${e}`)}return t}addIcon(e,n,t){this.icons.set(this.buildName(e,t),n);o.info(`[CatIconRegistry] Added icon${t?` to set ${t}`:""}: ${e}`);window.dispatchEvent(this.buildEvent("cat-icon-added",{name:e,setName:t}));return this}addIcons(e,n){Object.entries(e).forEach((([e,t])=>this.icons.set(this.buildName(e,n),t)));o.info(`[CatIconRegistry] Added icons${n?` to set ${n}`:""}: ${Object.keys(e).concat(", ")}`);window.dispatchEvent(this.buildEvent("cat-icons-added",{names:Object.keys(e),setName:n}));return this}removeIcon(e,n){this.icons.delete(this.buildName(e,n));o.info(`[CatIconRegistry] Removed icon${n?` from set ${n}`:""}: ${e}`);window.dispatchEvent(this.buildEvent("cat-icon-removed",{name:e,setName:n}));return this}removeIcons(e,n){e.forEach((e=>this.icons.delete(this.buildName(e,n))));o.info(`[CatIconRegistry] Removed icons${n?` from set ${n}`:""}: ${e.concat(", ")}`);window.dispatchEvent(this.buildEvent("cat-icons-removed",{names:e,setName:n}));return this}buildName(e,n){return n?`${n}:name`:e}buildEvent(e,n){return new CustomEvent(e,{bubbles:true,composed:true,detail:n})}}export{r as C,i as a,o as l};
2
- //# sourceMappingURL=p-9a3c2375.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../node_modules/loglevel/lib/loglevel.js","src/components/cat-i18n/cat-i18n-registry.ts","src/components/cat-icon/cat-icon-registry.ts"],"names":["root","definition","module","exports","log","this","noop","undefinedType","isIE","window","navigator","test","userAgent","logMethods","bindMethod","obj","methodName","method","bind","Function","prototype","call","e","apply","arguments","traceForIE","console","trace","realMethod","undefined","replaceLoggingMethods","level","loggerName","i","length","methodFactory","debug","enableLoggingWhenConsoleArrives","defaultMethodFactory","Logger","name","defaultLevel","factory","self","currentLevel","storageKey","persistLevelIfPossible","levelNum","levelName","toUpperCase","localStorage","ignore","document","cookie","encodeURIComponent","getPersistedLevel","storedLevel","location","indexOf","exec","slice","levels","clearPersistedLevel","removeItem","TRACE","DEBUG","INFO","WARN","ERROR","SILENT","getLevel","setLevel","persist","setDefaultLevel","resetLevel","enableAll","disableAll","initialLevel","defaultLogger","_loggersByName","getLogger","TypeError","logger","_log","noConflict","getLoggers","CatI18nRegistry","[object Object]","lang","messages","Map","instance","key","message","_a","get","error","getDict","set","info","dispatchEvent","buildEvent","i18n","dict","Object","entries","forEach","keys","concat","delete","detail","CustomEvent","bubbles","composed","CatIconRegistry","icons","setName","icon","buildName","data","names"],"mappings":"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","sourcesContent":["/*\n* loglevel - https://github.com/pimterry/loglevel\n*\n* Copyright (c) 2013 Tim Perry\n* Licensed under the MIT license.\n*/\n(function (root, definition) {\n \"use strict\";\n if (typeof define === 'function' && define.amd) {\n define(definition);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = definition();\n } else {\n root.log = definition();\n }\n}(this, function () {\n \"use strict\";\n\n // Slightly dubious tricks to cut down minimized file size\n var noop = function() {};\n var undefinedType = \"undefined\";\n var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (\n /Trident\\/|MSIE /.test(window.navigator.userAgent)\n );\n\n var logMethods = [\n \"trace\",\n \"debug\",\n \"info\",\n \"warn\",\n \"error\"\n ];\n\n // Cross-browser bind equivalent that works at least back to IE6\n function bindMethod(obj, methodName) {\n var method = obj[methodName];\n if (typeof method.bind === 'function') {\n return method.bind(obj);\n } else {\n try {\n return Function.prototype.bind.call(method, obj);\n } catch (e) {\n // Missing bind shim or IE8 + Modernizr, fallback to wrapping\n return function() {\n return Function.prototype.apply.apply(method, [obj, arguments]);\n };\n }\n }\n }\n\n // Trace() doesn't print the message in IE, so for that case we need to wrap it\n function traceForIE() {\n if (console.log) {\n if (console.log.apply) {\n console.log.apply(console, arguments);\n } else {\n // In old IE, native console methods themselves don't have apply().\n Function.prototype.apply.apply(console.log, [console, arguments]);\n }\n }\n if (console.trace) console.trace();\n }\n\n // Build the best logging method possible for this env\n // Wherever possible we want to bind, not wrap, to preserve stack traces\n function realMethod(methodName) {\n if (methodName === 'debug') {\n methodName = 'log';\n }\n\n if (typeof console === undefinedType) {\n return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives\n } else if (methodName === 'trace' && isIE) {\n return traceForIE;\n } else if (console[methodName] !== undefined) {\n return bindMethod(console, methodName);\n } else if (console.log !== undefined) {\n return bindMethod(console, 'log');\n } else {\n return noop;\n }\n }\n\n // These private functions always need `this` to be set properly\n\n function replaceLoggingMethods(level, loggerName) {\n /*jshint validthis:true */\n for (var i = 0; i < logMethods.length; i++) {\n var methodName = logMethods[i];\n this[methodName] = (i < level) ?\n noop :\n this.methodFactory(methodName, level, loggerName);\n }\n\n // Define log.log as an alias for log.debug\n this.log = this.debug;\n }\n\n // In old IE versions, the console isn't present until you first open it.\n // We build realMethod() replacements here that regenerate logging methods\n function enableLoggingWhenConsoleArrives(methodName, level, loggerName) {\n return function () {\n if (typeof console !== undefinedType) {\n replaceLoggingMethods.call(this, level, loggerName);\n this[methodName].apply(this, arguments);\n }\n };\n }\n\n // By default, we use closely bound real methods wherever possible, and\n // otherwise we wait for a console to appear, and then try again.\n function defaultMethodFactory(methodName, level, loggerName) {\n /*jshint validthis:true */\n return realMethod(methodName) ||\n enableLoggingWhenConsoleArrives.apply(this, arguments);\n }\n\n function Logger(name, defaultLevel, factory) {\n var self = this;\n var currentLevel;\n defaultLevel = defaultLevel == null ? \"WARN\" : defaultLevel;\n\n var storageKey = \"loglevel\";\n if (typeof name === \"string\") {\n storageKey += \":\" + name;\n } else if (typeof name === \"symbol\") {\n storageKey = undefined;\n }\n\n function persistLevelIfPossible(levelNum) {\n var levelName = (logMethods[levelNum] || 'silent').toUpperCase();\n\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage[storageKey] = levelName;\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=\" + levelName + \";\";\n } catch (ignore) {}\n }\n\n function getPersistedLevel() {\n var storedLevel;\n\n if (typeof window === undefinedType || !storageKey) return;\n\n try {\n storedLevel = window.localStorage[storageKey];\n } catch (ignore) {}\n\n // Fallback to cookies if local storage gives us nothing\n if (typeof storedLevel === undefinedType) {\n try {\n var cookie = window.document.cookie;\n var location = cookie.indexOf(\n encodeURIComponent(storageKey) + \"=\");\n if (location !== -1) {\n storedLevel = /^([^;]+)/.exec(cookie.slice(location))[1];\n }\n } catch (ignore) {}\n }\n\n // If the stored level is not valid, treat it as if nothing was stored.\n if (self.levels[storedLevel] === undefined) {\n storedLevel = undefined;\n }\n\n return storedLevel;\n }\n\n function clearPersistedLevel() {\n if (typeof window === undefinedType || !storageKey) return;\n\n // Use localStorage if available\n try {\n window.localStorage.removeItem(storageKey);\n return;\n } catch (ignore) {}\n\n // Use session cookie as fallback\n try {\n window.document.cookie =\n encodeURIComponent(storageKey) + \"=; expires=Thu, 01 Jan 1970 00:00:00 UTC\";\n } catch (ignore) {}\n }\n\n /*\n *\n * Public logger API - see https://github.com/pimterry/loglevel for details\n *\n */\n\n self.name = name;\n\n self.levels = { \"TRACE\": 0, \"DEBUG\": 1, \"INFO\": 2, \"WARN\": 3,\n \"ERROR\": 4, \"SILENT\": 5};\n\n self.methodFactory = factory || defaultMethodFactory;\n\n self.getLevel = function () {\n return currentLevel;\n };\n\n self.setLevel = function (level, persist) {\n if (typeof level === \"string\" && self.levels[level.toUpperCase()] !== undefined) {\n level = self.levels[level.toUpperCase()];\n }\n if (typeof level === \"number\" && level >= 0 && level <= self.levels.SILENT) {\n currentLevel = level;\n if (persist !== false) { // defaults to true\n persistLevelIfPossible(level);\n }\n replaceLoggingMethods.call(self, level, name);\n if (typeof console === undefinedType && level < self.levels.SILENT) {\n return \"No console available for logging\";\n }\n } else {\n throw \"log.setLevel() called with invalid level: \" + level;\n }\n };\n\n self.setDefaultLevel = function (level) {\n defaultLevel = level;\n if (!getPersistedLevel()) {\n self.setLevel(level, false);\n }\n };\n\n self.resetLevel = function () {\n self.setLevel(defaultLevel, false);\n clearPersistedLevel();\n };\n\n self.enableAll = function(persist) {\n self.setLevel(self.levels.TRACE, persist);\n };\n\n self.disableAll = function(persist) {\n self.setLevel(self.levels.SILENT, persist);\n };\n\n // Initialize with the right level\n var initialLevel = getPersistedLevel();\n if (initialLevel == null) {\n initialLevel = defaultLevel;\n }\n self.setLevel(initialLevel, false);\n }\n\n /*\n *\n * Top-level API\n *\n */\n\n var defaultLogger = new Logger();\n\n var _loggersByName = {};\n defaultLogger.getLogger = function getLogger(name) {\n if ((typeof name !== \"symbol\" && typeof name !== \"string\") || name === \"\") {\n throw new TypeError(\"You must supply a name when creating a logger.\");\n }\n\n var logger = _loggersByName[name];\n if (!logger) {\n logger = _loggersByName[name] = new Logger(\n name, defaultLogger.getLevel(), defaultLogger.methodFactory);\n }\n return logger;\n };\n\n // Grab the current global log variable in case of overwrite\n var _log = (typeof window !== undefinedType) ? window.log : undefined;\n defaultLogger.noConflict = function() {\n if (typeof window !== undefinedType &&\n window.log === defaultLogger) {\n window.log = _log;\n }\n\n return defaultLogger;\n };\n\n defaultLogger.getLoggers = function getLoggers() {\n return _loggersByName;\n };\n\n // ES6 default export, for compatibility\n defaultLogger['default'] = defaultLogger;\n\n return defaultLogger;\n}));\n","import log from 'loglevel';\n\nexport class CatI18nRegistry {\n private static instance: CatI18nRegistry;\n\n private lang = 'en';\n private readonly messages: Map<string, Map<string, string>> = new Map();\n\n private constructor() {\n // hide constructor\n }\n\n static getInstance(): CatI18nRegistry {\n if (!CatI18nRegistry.instance) {\n CatI18nRegistry.instance = new CatI18nRegistry();\n }\n return CatI18nRegistry.instance;\n }\n\n getLanguage(): string {\n return this.lang;\n }\n\n setLanguage(lang: string): void {\n this.lang = lang;\n }\n\n getMessage(key: string): string | undefined {\n const message = this.messages.get(this.lang)?.get(key);\n if (!message) {\n log.error(`[CatI18nRegistry] Unknown message for lang ${this.lang}: ${key}`);\n }\n return message;\n }\n\n addMessage(lang: string, key: string, message: string): CatI18nRegistry {\n this.getDict(lang).set(key, message);\n log.info(`[CatI18nRegistry] Added message for lang ${lang}: ${key}`);\n window.dispatchEvent(this.buildEvent('cat-i18n-added', { lang, key }));\n return this;\n }\n\n addMessages(lang: string, i18n: { [key: string]: string }): CatI18nRegistry {\n const dict = this.getDict(lang);\n Object.entries(i18n).forEach(([key, message]) => dict.set(key, message));\n log.info(`[CatI18nRegistry] Added message for lang ${lang}: ${Object.keys(i18n).concat(', ')}`);\n window.dispatchEvent(this.buildEvent('cat-i18n-added', { lang, keys: Object.keys(i18n) }));\n return this;\n }\n\n removeMessage(lang: string, key: string): CatI18nRegistry {\n this.getDict(lang).delete(key);\n log.info(`[CatI18nRegistry] Removed message for lang ${lang}: ${key}`);\n window.dispatchEvent(this.buildEvent('cat-i18n-removed', { lang, key }));\n return this;\n }\n\n removeMessages(lang: string, keys: string[]): CatI18nRegistry {\n const dict = this.getDict(lang);\n keys.forEach(key => dict.delete(key));\n log.info(`[CatI18nRegistry] Removed messages for lang ${lang}: ${keys.concat(', ')}`);\n window.dispatchEvent(this.buildEvent('cat-i18n-added', { lang, keys }));\n return this;\n }\n\n private buildEvent<T>(name: string, detail?: T) {\n return new CustomEvent(name, {\n bubbles: true,\n composed: true,\n detail\n });\n }\n\n private getDict(lang: string) {\n let messages = this.messages.get(lang);\n if (!messages) {\n messages = new Map();\n this.messages.set(lang, messages);\n }\n return messages;\n }\n}\n","import log from 'loglevel';\n\nexport class CatIconRegistry {\n private static instance: CatIconRegistry;\n\n private readonly icons: Map<string, string> = new Map();\n\n private constructor() {\n // hide constructor\n }\n\n static getInstance(): CatIconRegistry {\n if (!CatIconRegistry.instance) {\n CatIconRegistry.instance = new CatIconRegistry();\n }\n return CatIconRegistry.instance;\n }\n\n getIcon(name: string, setName?: string): string | undefined {\n const icon = this.icons.get(this.buildName(name, setName));\n if (!icon) {\n log.error(`[CatIconRegistry] Unknown icon${setName ? ` in set ${setName}` : ''}: ${name}`);\n }\n return icon;\n }\n\n addIcon(name: string, data: string, setName?: string): CatIconRegistry {\n this.icons.set(this.buildName(name, setName), data);\n log.info(`[CatIconRegistry] Added icon${setName ? ` to set ${setName}` : ''}: ${name}`);\n window.dispatchEvent(this.buildEvent('cat-icon-added', { name, setName }));\n return this;\n }\n\n addIcons(icons: { [name: string]: string }, setName?: string): CatIconRegistry {\n Object.entries(icons).forEach(([name, data]) => this.icons.set(this.buildName(name, setName), data));\n log.info(`[CatIconRegistry] Added icons${setName ? ` to set ${setName}` : ''}: ${Object.keys(icons).concat(', ')}`);\n window.dispatchEvent(this.buildEvent('cat-icons-added', { names: Object.keys(icons), setName }));\n return this;\n }\n\n removeIcon(name: string, setName?: string): CatIconRegistry {\n this.icons.delete(this.buildName(name, setName));\n log.info(`[CatIconRegistry] Removed icon${setName ? ` from set ${setName}` : ''}: ${name}`);\n window.dispatchEvent(this.buildEvent('cat-icon-removed', { name, setName }));\n return this;\n }\n\n removeIcons(names: string[], setName?: string): CatIconRegistry {\n names.forEach(name => this.icons.delete(this.buildName(name, setName)));\n log.info(`[CatIconRegistry] Removed icons${setName ? ` from set ${setName}` : ''}: ${names.concat(', ')}`);\n window.dispatchEvent(this.buildEvent('cat-icons-removed', { names, setName }));\n return this;\n }\n\n private buildName(name: string, setName?: string) {\n return setName ? `${setName}:name` : name;\n }\n\n private buildEvent<T>(name: string, detail?: T) {\n return new CustomEvent(name, {\n bubbles: true,\n composed: true,\n detail\n });\n }\n}\n"]}
@@ -1,10 +0,0 @@
1
- import{r as t,h as e,H as i,c as n}from"./p-bfc656ca.js";import{l as r,C as o,a as s}from"./p-9a3c2375.js";const a=":host{display:block;margin-bottom:1rem}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}:host([hidden]){display:none}.alert{font:inherit;color:rgb(var(--text));background-color:rgba(var(--bg), 0.1);box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);border-radius:0.25rem;padding:0.75rem 1rem}::slotted(:last-child){margin-bottom:0 !important}.alert-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.alert-secondary{--bg:105, 118, 135;--text:0, 0, 0;--border:105, 118, 135}.alert-success{--bg:0, 132, 88;--text:0, 132, 88;--border:0, 132, 88}.alert-warning{--bg:255, 206, 128;--text:159, 97, 0;--border:159, 97, 0}.alert-danger{--bg:217, 52, 13;--text:217, 52, 13;--border:217, 52, 13}";const l=class{constructor(e){t(this,e);this.color="primary"}render(){return e(i,{tabindex:"0",role:this.role},e("div",{part:"alert",class:{alert:true,[`alert-${this.color}`]:Boolean(this.color)}},e("slot",null)))}get role(){switch(this.color){case"danger":case"warning":return"alert";default:return"status"}}};l.style=a;const c=":host{display:inline-flex;max-width:100%;vertical-align:baseline}:host([hidden]){display:none}.badge{font:inherit;flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;border-radius:0.125rem;text-decoration:none;width:100%;box-sizing:border-box;line-height:1;white-space:nowrap}.badge slot{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.badge-round{border-radius:10rem}.badge-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.badge-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--border), 0.2);color:rgb(var(--text))}.badge-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--border:var(--cat-primary-text, 32, 127, 138)}.badge-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--border:105, 118, 135}.badge-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--border:0, 132, 88}.badge-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--border:159, 97, 0}.badge-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--border:217, 52, 13}.badge-xs{height:0.75rem;min-width:0.75rem;font-size:0.75rem;padding:0 0.1875rem}.badge-s{height:1rem;min-width:1rem;font-size:0.75rem;padding:0 0.25rem}.badge-m{height:1.25rem;min-width:1.25rem;font-size:0.75rem;padding:0 0.3125rem}.badge-l{height:1.5rem;min-width:1.5rem;font-size:0.875rem;padding:0 0.375rem}.badge-xl{height:1.75rem;min-width:1.75rem;font-size:0.9375rem;padding:0 0.4375rem}.badge-pulse.badge-filled{animation:1.5s ease 0s infinite normal none running pulse}.badge-pulse.badge-outlined{animation:1.5s ease 0s infinite normal none running pulse-outlined}@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(var(--bg))}70%{box-shadow:transparent 0 0 0 0.5rem}100%{box-shadow:transparent 0 0 0 0}}@keyframes pulse-outlined{0%{box-shadow:0 0 0 0 rgb(var(--bg)), inset 0 0 0 1px rgba(var(--border), 0.2)}70%{box-shadow:transparent 0 0 0 0.5rem, inset 0 0 0 1px rgba(var(--border), 0.2)}100%{box-shadow:transparent 0 0 0 0, inset 0 0 0 1px rgba(var(--border), 0.2)}}";const u=class{constructor(e){t(this,e);this.variant="filled";this.color="primary";this.size="m";this.round=false;this.pulse=false}render(){return e("span",{part:"badge",class:{badge:true,"badge-round":this.round,"badge-pulse":this.pulse,[`badge-${this.variant}`]:Boolean(this.variant),[`badge-${this.color}`]:Boolean(this.color),[`badge-${this.size}`]:Boolean(this.size)}},e("slot",null))}};u.style=c;const h=["xs","s","m","l","xl"];const d={xs:"(max-width: 539.98px)",s:"(max-width: 767.98px)",m:"(max-width: 991.98px)",l:"(max-width: 1199.98px)",xl:"(max-width: 1399.98px)"};function f(t){return typeof t==="string"&&h.includes(t)}let p;try{p=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(t){p=false}class b{constructor(){this.EDGE=/(edge)/i.test(navigator.userAgent);this.TRIDENT=/(msie|trident)/i.test(navigator.userAgent);this.BLINK=!!(window.chrome||p)&&typeof CSS!=="undefined"&&!this.EDGE&&!this.TRIDENT;this.WEBKIT=/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;this.IOS=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);this.FIREFOX=/(firefox|minefield)/i.test(navigator.userAgent);this.ANDROID=/android/i.test(navigator.userAgent)&&!this.TRIDENT;this.SAFARI=/safari/i.test(navigator.userAgent)&&this.WEBKIT}}const m=new Set;let v;class g{constructor(){this._platform=new b;this._matchMedia=window.matchMedia.bind(window)}matchMedia(t){if(this._platform.WEBKIT||this._platform.BLINK){w(t)}return this._matchMedia(t)}}function w(t){if(m.has(t)){return}try{if(!v){v=document.createElement("style");v.setAttribute("type","text/css");document.head.appendChild(v)}if(v.sheet){v.sheet.insertRule(`@media ${t} {body{ }}`,0);m.add(t)}}catch(t){r.error(t)}}const x=':host{display:inline-block;max-width:100%;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}.cat-button{position:relative;font:inherit;display:flex;align-items:center;justify-content:center;border:none;border-radius:0.25rem;text-decoration:none;width:100%;box-sizing:border-box;cursor:pointer;transition:color 0.13s linear, border-color 0.13s linear, background-color 0.13s linear, box-shadow 0.13s linear}.cat-button:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.cat-button-ellipsed .cat-button-content{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.cat-button-disabled{cursor:not-allowed;opacity:0.65;filter:grayscale(100%)}.cat-button-round{border-radius:10rem}.cat-button-loading{cursor:default}.cat-button-loading cat-spinner{position:absolute}.cat-button-loading>*:not(cat-spinner){visibility:hidden}.cat-button-filled{background-color:rgb(var(--bg));color:rgb(var(--fill));font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:greyscale}.cat-button-outlined{background-color:white;box-shadow:inset 0 0 0 1px rgba(var(--base), 0.2);color:rgb(var(--text))}.cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.05)}.cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading){background-color:rgba(var(--base), 0.1)}.cat-button-text{background-color:transparent;color:rgb(var(--text));text-decoration:none}.cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading){text-decoration:underline}.cat-button-primary{--bg:var(--cat-primary-bg, 32, 127, 138);--fill:var(--cat-primary-fill, 255, 255, 255);--text:var(--cat-primary-text, 32, 127, 138);--base:var(--cat-primary-text, 32, 127, 138)}.cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-hover, 28, 112, 122);--fill:var(--cat-primary-fill-hover, 255, 255, 255);--text:var(--cat-primary-text-hover, 28, 112, 122)}.cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:var(--cat-primary-bg-active, 25, 101, 110);--fill:var(--cat-primary-fill-active, 255, 255, 255);--text:var(--cat-primary-text-active, 25, 101, 110)}.cat-button-secondary{--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0;--base:105, 118, 135}.cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:105, 118, 135;--fill:255, 255, 255;--text:0, 0, 0}.cat-button-success{--bg:0, 132, 88;--fill:255, 255, 255;--text:0, 132, 88;--base:0, 132, 88}.cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 117, 78;--fill:255, 255, 255;--text:0, 117, 78}.cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:0, 105, 70;--fill:255, 255, 255;--text:0, 105, 70}.cat-button-warning{--bg:255, 206, 128;--fill:0, 0, 0;--text:159, 97, 0;--base:159, 97, 0}.cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 214, 148;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:255, 222, 168;--fill:0, 0, 0;--text:159, 97, 0}.cat-button-danger{--bg:217, 52, 13;--fill:255, 255, 255;--text:217, 52, 13;--base:217, 52, 13}.cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading){--bg:194, 46, 11;--fill:255, 255, 255;--text:194, 46, 11}.cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading){--bg:174, 42, 10;--fill:255, 255, 255;--text:174, 42, 10}.cat-button-xs{min-width:1.5rem;padding:0.25rem 0.25rem;font-size:0.875rem;line-height:1rem}.cat-button-xs .cat-button-prefix{margin-right:0.25rem}.cat-button-xs .cat-button-suffix{margin-left:0.25rem}.cat-button-xs.cat-button-icon{width:1.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xs{padding-left:1rem;padding-right:1rem}.cat-button-s{min-width:2rem;padding:0.375rem 0.5rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-s .cat-button-prefix{margin-right:0.25rem}.cat-button-s .cat-button-suffix{margin-left:0.25rem}.cat-button-s cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-s.cat-button-icon{width:2rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-s{padding-left:1rem;padding-right:1rem}.cat-button-m{min-width:2.5rem;padding:0.625rem 0.75rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-m .cat-button-prefix{margin-right:0.25rem}.cat-button-m .cat-button-suffix{margin-left:0.25rem}.cat-button-m cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-m.cat-button-icon{width:2.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-m{padding-left:1rem;padding-right:1rem}.cat-button-l{min-width:3rem;padding:0.875rem 1rem;font-size:0.9375rem;line-height:1.25rem}.cat-button-l .cat-button-prefix{margin-right:0.25rem}.cat-button-l .cat-button-suffix{margin-left:0.25rem}.cat-button-l cat-icon{margin-top:-0.125rem;margin-bottom:-0.125rem}.cat-button-l.cat-button-icon{width:3rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-l{padding-left:1rem;padding-right:1rem}.cat-button-xl{min-width:3.5rem;padding:1rem 1.25rem;font-size:1.125rem;line-height:1.5rem}.cat-button-xl .cat-button-prefix{margin-right:0.25rem}.cat-button-xl .cat-button-suffix{margin-left:0.25rem}.cat-button-xl.cat-button-icon{width:3.5rem;padding-left:0;padding-right:0}:host-context(nav) .cat-button-xl{padding-left:1rem;padding-right:1rem}.cat-button-active::before{content:"";display:block;position:absolute;top:0;left:0;width:0.25rem;height:100%;background:rgb(var(--base))}:host-context(nav){width:100%}:host-context(nav) .cat-button{box-shadow:none;border-radius:0;justify-content:left}:host-context(nav) .cat-button:focus-visible{outline-offset:-2px}:host(.cat-text-left) .cat-button{justify-content:left}:host(.cat-text-right) .cat-button{justify-content:right}';const y=class{constructor(e){t(this,e);this.catClick=n(this,"catClick",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this._iconOnly=true;this.variant="outlined";this.color="secondary";this.active=false;this.size="m";this.disabled=false;this.loading=false;this.submit=false;this.ellipsed=true;this.round=false;this.iconOnly=false;this.iconRight=false}onIconOnlyChanged(t){var e,i;(e=this.mediaQueryList)===null||e===void 0?void 0:e.removeEventListener("change",this.mediaQueryListener);this.mediaQueryList=undefined;this.mediaQueryListener=undefined;if(f(t)){(i=this.mediaMatcher)!==null&&i!==void 0?i:this.mediaMatcher=new g;this.mediaQueryList=this.mediaMatcher.matchMedia(d[t]);this.mediaQueryListener=t=>this._iconOnly=t.matches;this.mediaQueryList.addEventListener("change",this.mediaQueryListener);this._iconOnly=this.mediaQueryList.matches}else{this._iconOnly=t}}componentWillLoad(){this.onIconOnlyChanged(this.iconOnly)}componentWillRender(){if(this.isIconButton&&!this.a11yLabel){r.warn("[A11y] Missing ARIA label on icon button",this)}}haltDisabledEvents(t){if(this.disabled||this.loading){t.preventDefault();t.stopImmediatePropagation()}}async setFocus(t){this.button.focus(t)}render(){var t;if(this.url){return e("a",{ref:t=>this.button=t,href:this.disabled?undefined:this.url,target:this.urlTarget,"aria-disabled":this.disabled?"true":null,"aria-label":this.a11yLabel,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-icon":this.isIconButton,"cat-button-round":this.round,"cat-button-loading":this.loading,"cat-button-disabled":this.disabled,"cat-button-ellipsed":this.ellipsed&&!this.isIconButton,[`cat-button-${this.variant}`]:Boolean(this.variant),[`cat-button-${this.color}`]:Boolean(this.color),[`cat-button-${this.size}`]:Boolean(this.size)},onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)},this.content)}else{return e("button",{ref:t=>this.button=t,type:this.submit?"submit":"button",name:this.name,value:this.value,disabled:this.disabled,"aria-disabled":this.disabled?"true":null,"aria-label":this.a11yLabel,id:this.buttonId,part:"button",class:{"cat-button":true,"cat-button-active":this.active,"cat-button-icon":this.isIconButton,"cat-button-round":(t=this.round)!==null&&t!==void 0?t:this.isIconButton,"cat-button-loading":this.loading,"cat-button-disabled":this.disabled,"cat-button-ellipsed":this.ellipsed&&!this.isIconButton,[`cat-button-${this.variant}`]:Boolean(this.variant),[`cat-button-${this.color}`]:Boolean(this.color),[`cat-button-${this.size}`]:Boolean(this.size)},onClick:this.onClick.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)},this.content)}}get iconSize(){switch(this.size){case"xs":return"s";default:return"l"}}get spinnerSize(){switch(this.size){case"xs":return"xs";default:return"m"}}get isIconButton(){return Boolean(this.icon)&&this._iconOnly}get hasPrefixIcon(){return Boolean(this.icon)&&!this._iconOnly&&!this.iconRight}get hasSuffixIcon(){return Boolean(this.icon)&&!this._iconOnly&&this.iconRight}get content(){return[this.hasPrefixIcon?e("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-prefix",part:"prefix"}):null,this.isIconButton?e("cat-icon",{icon:this.icon,size:this.iconSize}):e("span",{class:"cat-button-content",part:"content"},e("slot",null)),this.hasSuffixIcon?e("cat-icon",{icon:this.icon,size:this.iconSize,class:"cat-button-suffix",part:"suffix"}):null,this.loading?e("cat-spinner",{size:this.spinnerSize}):null]}onClick(t){this.catClick.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}static get watchers(){return{iconOnly:["onIconOnlyChanged"]}}};y.style=x;const k=":host{display:block;margin-bottom:1rem;border-radius:0.5rem;background-color:white;padding:1.5rem}:host([hidden]){display:none}::slotted(nav){margin:-1rem -1.5rem !important}::slotted(:last-child){margin-bottom:0}";const z=class{constructor(e){t(this,e)}render(){return e(i,null,e("slot",null))}};z.style=k;const A=":host{display:flex;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}input{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid #d7dbe0;border-radius:0.125rem;transition:background-color 0.13s ease, border-color 0.13s ease}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 0.13s ease;width:70%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-color:rgb(var(--cat-primary-bg, 32, 127, 138));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-color:rgb(var(--cat-primary-bg, 32, 127, 138));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}";let S=0;const E=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-checkbox-${S++}`;this.checked=false;this.disabled=false;this.indeterminate=false;this.label="";this.labelHidden=false;this.required=false}componentDidLoad(){if(this.input&&this.indeterminate){this.input.indeterminate=true}}componentWillRender(){if(!this.label){r.error("[A11y] Missing ARIA label on checkbox",this)}}async setFocus(t){this.input.focus(t)}render(){return e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled}},e("input",{ref:t=>this.input=t,id:this.id,type:"checkbox",name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),e("span",{class:"box","aria-hidden":"true",part:"checkbox"},e("svg",{class:"check",viewBox:"0 0 12 10"},e("polyline",{points:"1.5 6 4.5 9 10.5 1"})),e("svg",{class:"dash",viewBox:"0 0 12 10"},e("polyline",{points:"1.5 5 10.5 5"}))),e("span",{class:"label",part:"label"},this.label))}onInput(t){this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}};E.style=A;const F=":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host([hidden]){display:none}span{display:inline-flex}svg{fill:currentColor;stroke:none;transform-origin:center center;width:1em;height:1em}.icon-xs svg{font-size:0.75rem}.icon-s svg{font-size:1rem}.icon-m svg{font-size:1.25rem}.icon-l svg{font-size:1.5rem}.icon-xl svg{font-size:1.75rem}";const B=class{constructor(e){t(this,e);this.iconRegistry=o.getInstance();this.icon="";this.size="m"}render(){return e("span",{innerHTML:this.iconRegistry.getIcon(this.icon),"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",part:"icon",class:{icon:true,[`icon-${this.size}`]:this.size!=="inline"}})}};B.style=F;const T=":host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;margin-bottom:1rem}:host([hidden]){display:none}.input-wrapper{display:flex;align-items:stretch;gap:0.75rem;padding:0 0.75rem;height:2.5rem;overflow:hidden;background:white;border-radius:0.25rem;box-shadow:0 0 0 1px #d7dbe0;transition:box-shadow 0.13s linear}.input-wrapper.input-round{border-radius:10rem}.input-wrapper.input-disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.input-wrapper:not(.input-disabled):hover{box-shadow:0 0 0 2px #d7dbe0}.input-wrapper:not(.input-disabled):focus-within{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.text-prefix,.text-suffix{display:inline-flex;align-items:center;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.text-prefix{border-right:1px solid #d7dbe0;padding-right:0.75rem}.text-suffix{border-left:1px solid #d7dbe0;padding-left:0.75rem}.icon-prefix,.icon-suffix{align-self:center}.input-inner-wrapper{display:flex;position:relative;flex:1 1 auto}input{font:inherit;margin:0;padding:0;width:100%;min-width:0;border:none;outline:none;background:none}.input-disabled input{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}input.has-clearable{padding-right:1.5rem}input::placeholder{color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.clearable{position:absolute;top:calc(50% - 1rem);right:-0.5rem}.input-hint{font-size:0.875rem;line-height:1rem;margin:0}";let C=0;const I=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.i18n=s.getInstance();this.id=`cat-input-${C++}`;this.inputValue="";this.clearable=false;this.disabled=false;this.iconRight=false;this.label="";this.labelHidden=false;this.name="";this.readonly=false;this.required=false;this.round=false;this.type="text"}onValueChange(t){this.inputValue=""+(t!==null&&t!==void 0?t:"")}componentWillLoad(){this.onValueChange(this.value)}componentWillRender(){if(!this.label){r.error("[A11y] Missing ARIA label on input",this)}}async setFocus(t){this.input.focus(t)}async clear(){this.inputValue=""}render(){return e(i,null,this.label&&e("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},e("span",{part:"label"},this.label,!this.required&&e("span",{class:"input-optional","aria-hidden":"true"},"(",this.i18n.getMessage("input.optional"),")"))),e("div",{class:{"input-wrapper":true,"input-round":this.round,"input-disabled":this.disabled},onClick:()=>this.input.focus()},this.textPrefix&&e("span",{class:"text-prefix",part:"prefix"},this.textPrefix),this.icon&&!this.iconRight&&e("cat-icon",{icon:this.icon,class:"icon-prefix",size:"l"}),e("div",{class:"input-inner-wrapper"},e("input",{ref:t=>this.input=t,id:this.id,class:{"has-clearable":this.clearable&&!this.disabled},autocomplete:this.autoComplete,disabled:this.disabled,max:this.max,maxlength:this.maxLength,min:this.max,minlength:this.minLength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,type:this.type,value:this.inputValue,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),this.clearable&&!this.disabled&&this.inputValue&&e("cat-button",{class:"clearable",icon:"cross-circle-outlined","icon-only":"true",size:"s",variant:"text","a11y-label":this.i18n.getMessage("input.clear"),onClick:this.clear.bind(this)})),this.icon&&this.iconRight&&e("cat-icon",{icon:this.icon,class:"icon-suffix",size:"l"}),this.textSuffix&&e("span",{class:"text-suffix",part:"suffix"},this.textSuffix)),this.hint&&e("p",{class:"input-hint"},this.hint))}onInput(t){this.inputValue=this.input.value;this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}static get watchers(){return{value:["onValueChange"]}}};I.style=T;function O(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function $(t){return["top","bottom"].includes(O(t))?"x":"y"}function _(t){return t==="y"?"height":"width"}function j(t,e,i){let{reference:n,floating:r}=t;const o=n.x+n.width/2-r.width/2;const s=n.y+n.height/2-r.height/2;const a=$(e);const l=_(a);const c=n[l]/2-r[l]/2;const u=O(e);const h=a==="x";let d;switch(u){case"top":d={x:o,y:n.y-r.height};break;case"bottom":d={x:o,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:s};break;case"left":d={x:n.x-r.width,y:s};break;default:d={x:n.x,y:n.y}}switch(R(e)){case"start":d[a]-=c*(i&&h?-1:1);break;case"end":d[a]+=c*(i&&h?-1:1);break}return d}const D=async(t,e,i)=>{const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:s}=i;const a=await(s.isRTL==null?void 0:s.isRTL(e));let l=await s.getElementRects({reference:t,floating:e,strategy:r});let{x:c,y:u}=j(l,n,a);let h=n;let d={};for(let i=0;i<o.length;i++){const{name:f,fn:p}=o[i];const{x:b,y:m,data:v,reset:g}=await p({x:c,y:u,initialPlacement:n,placement:h,strategy:r,middlewareData:d,rects:l,platform:s,elements:{reference:t,floating:e}});c=b!=null?b:c;u=m!=null?m:u;d={...d,[f]:{...d[f],...v}};if(g){if(typeof g==="object"){if(g.placement){h=g.placement}if(g.rects){l=g.rects===true?await s.getElementRects({reference:t,floating:e,strategy:r}):g.rects}({x:c,y:u}=j(l,h,a))}i=-1;continue}}return{x:c,y:u,placement:h,strategy:r,middlewareData:d}};function P(t){return{top:0,right:0,bottom:0,left:0,...t}}function L(t){return typeof t!=="number"?P(t):{top:t,right:t,bottom:t,left:t}}function M(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function N(t,e){var i;if(e===void 0){e={}}const{x:n,y:r,platform:o,rects:s,elements:a,strategy:l}=t;const{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=false,padding:f=0}=e;const p=L(f);const b=h==="floating"?"reference":"floating";const m=a[d?b:h];const v=M(await o.getClippingRect({element:((i=await(o.isElement==null?void 0:o.isElement(m)))!=null?i:true)?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l}));const g=M(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:h==="floating"?{...s.floating,x:n,y:r}:s.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),strategy:l}):s[h]);return{top:v.top-g.top+p.top,bottom:g.bottom-v.bottom+p.bottom,left:v.left-g.left+p.left,right:g.right-v.right+p.right}}const q={left:"right",right:"left",bottom:"top",top:"bottom"};function U(t){return t.replace(/left|right|bottom|top/g,(t=>q[t]))}function W(t,e,i){if(i===void 0){i=false}const n=R(t);const r=$(t);const o=_(r);let s=r==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";if(e.reference[o]>e.floating[o]){s=U(s)}return{main:s,cross:U(s)}}const Y={start:"end",end:"start"};function X(t){return t.replace(/start|end/g,(t=>Y[t]))}function H(t){const e=U(t);return[X(t),e,X(e)]}const V=function(t){if(t===void 0){t={}}return{name:"flip",options:t,async fn(e){var i;const{placement:n,middlewareData:r,rects:o,initialPlacement:s,platform:a,elements:l}=e;const{mainAxis:c=true,crossAxis:u=true,fallbackPlacements:h,fallbackStrategy:d="bestFit",flipAlignment:f=true,...p}=t;const b=O(n);const m=b===s;const v=h||(m||!f?[U(s)]:H(s));const g=[s,...v];const w=await N(e,p);const x=[];let y=((i=r.flip)==null?void 0:i.overflows)||[];if(c){x.push(w[b])}if(u){const{main:t,cross:e}=W(n,o,await(a.isRTL==null?void 0:a.isRTL(l.floating)));x.push(w[t],w[e])}y=[...y,{placement:n,overflows:x}];if(!x.every((t=>t<=0))){var k,z;const t=((k=(z=r.flip)==null?void 0:z.index)!=null?k:0)+1;const e=g[t];if(e){return{data:{index:t,overflows:y},reset:{placement:e}}}let i="bottom";switch(d){case"bestFit":{var A;const t=(A=y.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])==null?void 0:A[0].placement;if(t){i=t}break}case"initialPlacement":i=s;break}if(n!==i){return{reset:{placement:i}}}}return{}}}};function G(t,e,i,n){if(n===void 0){n=false}const r=O(t);const o=R(t);const s=$(t)==="x";const a=["left","top"].includes(r)?-1:1;const l=n&&s?-1:1;const c=typeof i==="function"?i({...e,placement:t}):i;let{mainAxis:u,crossAxis:h,alignmentAxis:d}=typeof c==="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};if(o&&typeof d==="number"){h=o==="end"?d*-1:d}return s?{x:h*l,y:u*a}:{x:u*a,y:h*l}}const K=function(t){if(t===void 0){t=0}return{name:"offset",options:t,async fn(e){const{x:i,y:n,placement:r,rects:o,platform:s,elements:a}=e;const l=G(r,o,t,await(s.isRTL==null?void 0:s.isRTL(a.floating)));return{x:i+l.x,y:n+l.y,data:l}}}};function J(t){return(t==null?void 0:t.toString())==="[object Window]"}function Q(t){if(t==null){return window}if(!J(t)){const e=t.ownerDocument;return e?e.defaultView||window:window}return t}function Z(t){return Q(t).getComputedStyle(t)}function tt(t){return J(t)?"":t?(t.nodeName||"").toLowerCase():""}function et(t){return t instanceof Q(t).HTMLElement}function it(t){return t instanceof Q(t).Element}function nt(t){return t instanceof Q(t).Node}function rt(t){const e=Q(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ot(t){const{overflow:e,overflowX:i,overflowY:n}=Z(t);return/auto|scroll|overlay|hidden/.test(e+n+i)}function st(t){return["table","td","th"].includes(tt(t))}function at(t){const e=navigator.userAgent.toLowerCase().includes("firefox");const i=Z(t);return i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].includes(i.willChange)||e&&i.willChange==="filter"||e&&(i.filter?i.filter!=="none":false)}function lt(){return!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}const ct=Math.min;const ut=Math.max;const ht=Math.round;function dt(t,e,i){if(e===void 0){e=false}if(i===void 0){i=false}const n=t.getBoundingClientRect();let r=1;let o=1;if(e&&et(t)){r=t.offsetWidth>0?ht(n.width)/t.offsetWidth||1:1;o=t.offsetHeight>0?ht(n.height)/t.offsetHeight||1:1}const s=it(t)?Q(t):window;const a=!lt()&&i;const l=(n.left+(a?s.visualViewport.offsetLeft:0))/r;const c=(n.top+(a?s.visualViewport.offsetTop:0))/o;const u=n.width/r;const h=n.height/o;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function ft(t){return((nt(t)?t.ownerDocument:t.document)||window.document).documentElement}function pt(t){if(J(t)){return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function bt(t){return dt(ft(t)).left+pt(t).scrollLeft}function mt(t){const e=dt(t);return ht(e.width)!==t.offsetWidth||ht(e.height)!==t.offsetHeight}function vt(t,e,i){const n=et(e);const r=ft(e);const o=dt(t,n&&mt(e),i==="fixed");let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&i!=="fixed"){if(tt(e)!=="body"||ot(r)){s=pt(e)}if(et(e)){const t=dt(e,true);a.x=t.x+e.clientLeft;a.y=t.y+e.clientTop}else if(r){a.x=bt(r)}}return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function gt(t){if(tt(t)==="html"){return t}return t.assignedSlot||t.parentNode||(rt(t)?t.host:null)||ft(t)}function wt(t){if(!et(t)||getComputedStyle(t).position==="fixed"){return null}return t.offsetParent}function xt(t){let e=gt(t);if(rt(e)){e=e.host}while(et(e)&&!["html","body"].includes(tt(e))){if(at(e)){return e}else{e=e.parentNode}}return null}function yt(t){const e=Q(t);let i=wt(t);while(i&&st(i)&&getComputedStyle(i).position==="static"){i=wt(i)}if(i&&(tt(i)==="html"||tt(i)==="body"&&getComputedStyle(i).position==="static"&&!at(i))){return e}return i||xt(t)||e}function kt(t){if(et(t)){return{width:t.offsetWidth,height:t.offsetHeight}}const e=dt(t);return{width:e.width,height:e.height}}function zt(t){let{rect:e,offsetParent:i,strategy:n}=t;const r=et(i);const o=ft(i);if(i===o){return e}let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed"){if(tt(i)!=="body"||ot(o)){s=pt(i)}if(et(i)){const t=dt(i,true);a.x=t.x+i.clientLeft;a.y=t.y+i.clientTop}}return{...e,x:e.x-s.scrollLeft+a.x,y:e.y-s.scrollTop+a.y}}function At(t,e){const i=Q(t);const n=ft(t);const r=i.visualViewport;let o=n.clientWidth;let s=n.clientHeight;let a=0;let l=0;if(r){o=r.width;s=r.height;const t=lt();if(t||!t&&e==="fixed"){a=r.offsetLeft;l=r.offsetTop}}return{width:o,height:s,x:a,y:l}}function St(t){var e;const i=ft(t);const n=pt(t);const r=(e=t.ownerDocument)==null?void 0:e.body;const o=ut(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0);const s=ut(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+bt(t);const l=-n.scrollTop;if(Z(r||i).direction==="rtl"){a+=ut(i.clientWidth,r?r.clientWidth:0)-o}return{width:o,height:s,x:a,y:l}}function Et(t){const e=gt(t);if(["html","body","#document"].includes(tt(e))){return t.ownerDocument.body}if(et(e)&&ot(e)){return e}return Et(e)}function Ft(t,e){var i;if(e===void 0){e=[]}const n=Et(t);const r=n===((i=t.ownerDocument)==null?void 0:i.body);const o=Q(n);const s=r?[o].concat(o.visualViewport||[],ot(n)?n:[]):n;const a=e.concat(s);return r?a:a.concat(Ft(gt(s)))}function Bt(t,e){const i=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e)){return true}else if(i&&rt(i)){let i=e;do{if(i&&t===i){return true}i=i.parentNode||i.host}while(i)}return false}function Tt(t,e){const i=dt(t,false,e==="fixed");const n=i.top+t.clientTop;const r=i.left+t.clientLeft;return{top:n,left:r,x:r,y:n,right:r+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function Ct(t,e,i){if(e==="viewport"){return M(At(t,i))}if(it(e)){return Tt(e,i)}return M(St(ft(t)))}function It(t){const e=Ft(t);const i=["absolute","fixed"].includes(Z(t).position);const n=i&&et(t)?yt(t):t;if(!it(n)){return[]}return e.filter((t=>it(t)&&Bt(t,n)&&tt(t)!=="body"))}function Ot(t){let{element:e,boundary:i,rootBoundary:n,strategy:r}=t;const o=i==="clippingAncestors"?It(e):[].concat(i);const s=[...o,n];const a=s[0];const l=s.reduce(((t,i)=>{const n=Ct(e,i,r);t.top=ut(n.top,t.top);t.right=ct(n.right,t.right);t.bottom=ct(n.bottom,t.bottom);t.left=ut(n.left,t.left);return t}),Ct(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}const Rt={getClippingRect:Ot,convertOffsetParentRelativeRectToViewportRelativeRect:zt,isElement:it,getDimensions:kt,getOffsetParent:yt,getDocumentElement:ft,getElementRects:t=>{let{reference:e,floating:i,strategy:n}=t;return{reference:vt(e,yt(i),n),floating:{...kt(i),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Z(t).direction==="rtl"};function $t(t,e,i,n){if(n===void 0){n={}}const{ancestorScroll:r=true,ancestorResize:o=true,elementResize:s=true,animationFrame:a=false}=n;let l=false;const c=r&&!a;const u=o&&!a;const h=s&&!a;const d=c||u?[...it(t)?Ft(t):[],...Ft(e)]:[];d.forEach((t=>{c&&t.addEventListener("scroll",i,{passive:true});u&&t.addEventListener("resize",i)}));let f=null;if(h){f=new ResizeObserver(i);it(t)&&f.observe(t);f.observe(e)}let p;let b=a?dt(t):null;if(a){m()}function m(){if(l){return}const e=dt(t);if(b&&(e.x!==b.x||e.y!==b.y||e.width!==b.width||e.height!==b.height)){i()}b=e;p=requestAnimationFrame(m)}return()=>{var t;l=true;d.forEach((t=>{c&&t.removeEventListener("scroll",i);u&&t.removeEventListener("resize",i)}));(t=f)==null?void 0:t.disconnect();f=null;if(a){cancelAnimationFrame(p)}}}const _t=(t,e,i)=>D(t,e,{platform:Rt,...i})
2
- /*!
3
- * tabbable 5.3.1
4
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5
- */;var jt=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"];var Dt=jt.join(",");var Pt=typeof Element==="undefined";var Lt=Pt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var Mt=!Pt&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument};var Nt=function t(e,i,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Dt));if(i&&Lt.call(e,Dt)){r.unshift(e)}r=r.filter(n);return r};var qt=function t(e,i,n){var r=[];var o=Array.from(e);while(o.length){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements();var l=a.length?a:s.children;var c=t(l,true,n);if(n.flatten){r.push.apply(r,c)}else{r.push({scope:s,candidates:c})}}else{var u=Lt.call(s,Dt);if(u&&n.filter(s)&&(i||!e.includes(s))){r.push(s)}var h=s.shadowRoot||typeof n.getShadowRoot==="function"&&n.getShadowRoot(s);if(h){var d=t(h===true?s.children:h.children,true,n);if(n.flatten){r.push.apply(r,d)}else{r.push({scope:s,candidates:d})}}else{o.unshift.apply(o,s.children)}}}return r};var Ut=function t(e,i){if(e.tabIndex<0){if((i||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))){return 0}}return e.tabIndex};var Wt=function t(e,i){return e.tabIndex===i.tabIndex?e.documentOrder-i.documentOrder:e.tabIndex-i.tabIndex};var Yt=function t(e){return e.tagName==="INPUT"};var Xt=function t(e){return Yt(e)&&e.type==="hidden"};var Ht=function t(e){var i=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some((function(t){return t.tagName==="SUMMARY"}));return i};var Vt=function t(e,i){for(var n=0;n<e.length;n++){if(e[n].checked&&e[n].form===i){return e[n]}}};var Gt=function t(e){if(!e.name){return true}var i=e.form||Mt(e);var n=function t(e){return i.querySelectorAll('input[type="radio"][name="'+e+'"]')};var r;if(typeof window!=="undefined"&&typeof window.CSS!=="undefined"&&typeof window.CSS.escape==="function"){r=n(window.CSS.escape(e.name))}else{try{r=n(e.name)}catch(t){console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message);return false}}var o=Vt(r,e.form);return!o||o===e};var Kt=function t(e){return Yt(e)&&e.type==="radio"};var Jt=function t(e){return Kt(e)&&!Gt(e)};var Qt=function t(e){var i=e.getBoundingClientRect(),n=i.width,r=i.height;return n===0&&r===0};var Zt=function t(e,i){var n=i.displayCheck,r=i.getShadowRoot;if(getComputedStyle(e).visibility==="hidden"){return true}var o=Lt.call(e,"details>summary:first-of-type");var s=o?e.parentElement:e;if(Lt.call(s,"details:not([open]) *")){return true}if(!n||n==="full"){if(typeof r==="function"){var a=e;while(e){var l=e.parentElement;var c=Mt(e);if(l&&!l.shadowRoot&&r(l)===true){return Qt(e)}else if(e.assignedSlot){e=e.assignedSlot}else if(!l&&c!==e.ownerDocument){e=c.host}else{e=l}}e=a}return!e.getClientRects().length}else if(n==="non-zero-area"){return Qt(e)}return false};var te=function t(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)){var i=e.parentElement;while(i){if(i.tagName==="FIELDSET"&&i.disabled){for(var n=0;n<i.children.length;n++){var r=i.children.item(n);if(r.tagName==="LEGEND"){return Lt.call(i,"fieldset[disabled] *")?true:!r.contains(e)}}return true}i=i.parentElement}}return false};var ee=function t(e,i){if(i.disabled||Xt(i)||Zt(i,e)||Ht(i)||te(i)){return false}return true};var ie=function t(e,i){if(Jt(i)||Ut(i)<0||!ee(e,i)){return false}return true};var ne=function t(e){var i=[];var n=[];e.forEach((function(e,r){var o=!!e.scope;var s=o?e.scope:e;var a=Ut(s,o);var l=o?t(e.candidates):s;if(a===0){o?i.push.apply(i,l):i.push(s)}else{n.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:l})}}));return n.sort(Wt).reduce((function(t,e){e.isScope?t.push.apply(t,e.content):t.push(e.content);return t}),[]).concat(i)};var re=function t(e,i){i=i||{};var n;if(i.getShadowRoot){n=qt([e],i.includeContainer,{filter:ie.bind(null,i),flatten:false,getShadowRoot:i.getShadowRoot})}else{n=Nt(e,i.includeContainer,ie.bind(null,i))}return ne(n)};var oe=function t(e,i){i=i||{};var n;if(i.getShadowRoot){n=qt([e],i.includeContainer,{filter:ee.bind(null,i),flatten:true,getShadowRoot:i.getShadowRoot})}else{n=Nt(e,i.includeContainer,ee.bind(null,i))}return n};var se=function t(e,i){i=i||{};if(!e){throw new Error("No node provided")}if(Lt.call(e,Dt)===false){return false}return ie(i,e)};var ae=jt.concat("iframe").join(",");var le=function t(e,i){i=i||{};if(!e){throw new Error("No node provided")}if(Lt.call(e,ae)===false){return false}return ee(i,e)};
6
- /*!
7
- * focus-trap 6.8.1
8
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
9
- */function ce(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function ue(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ce(Object(i),!0).forEach((function(e){he(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ce(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function he(t,e,i){if(e in t){Object.defineProperty(t,e,{value:i,enumerable:true,configurable:true,writable:true})}else{t[e]=i}return t}var de=function(){var t=[];return{activateTrap:function e(i){if(t.length>0){var n=t[t.length-1];if(n!==i){n.pause()}}var r=t.indexOf(i);if(r===-1){t.push(i)}else{t.splice(r,1);t.push(i)}},deactivateTrap:function e(i){var n=t.indexOf(i);if(n!==-1){t.splice(n,1)}if(t.length>0){t[t.length-1].unpause()}}}}();var fe=function t(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select==="function"};var pe=function t(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27};var be=function t(e){return e.key==="Tab"||e.keyCode===9};var me=function t(e){return setTimeout(e,0)};var ve=function t(e,i){var n=-1;e.every((function(t,e){if(i(t)){n=e;return false}return true}));return n};var ge=function t(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++){n[r-1]=arguments[r]}return typeof e==="function"?e.apply(void 0,n):e};var we=function t(e){return e.target.shadowRoot&&typeof e.composedPath==="function"?e.composedPath()[0]:e.target};var xe=function t(e,i){var n=(i===null||i===void 0?void 0:i.document)||document;var r=ue({returnFocusOnDeactivate:true,escapeDeactivates:true,delayInitialFocus:true},i);var o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:false,paused:false,delayInitialFocusTimer:undefined};var s;var a=function t(e,i,n){return e&&e[i]!==undefined?e[i]:r[n||i]};var l=function t(e){return o.containerGroups.findIndex((function(t){var i=t.container,n=t.tabbableNodes;return i.contains(e)||n.find((function(t){return t===e}))}))};var c=function t(e){var i=r[e];if(typeof i==="function"){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++){s[a-1]=arguments[a]}i=i.apply(void 0,s)}if(!i){if(i===undefined||i===false){return i}throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=i;if(typeof i==="string"){l=n.querySelector(i);if(!l){throw new Error("`".concat(e,"` as selector refers to no known node"))}}return l};var u=function t(){var e=c("initialFocus");if(e===false){return false}if(e===undefined){if(l(n.activeElement)>=0){e=n.activeElement}else{var i=o.tabbableGroups[0];var r=i&&i.firstTabbableNode;e=r||c("fallbackFocus")}}if(!e){throw new Error("Your focus-trap needs to have at least one focusable element")}return e};var h=function t(){o.containerGroups=o.containers.map((function(t){var e=re(t,r.tabbableOptions);var i=oe(t,r.tabbableOptions);return{container:t,tabbableNodes:e,focusableNodes:i,firstTabbableNode:e.length>0?e[0]:null,lastTabbableNode:e.length>0?e[e.length-1]:null,nextTabbableNode:function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;var o=i.findIndex((function(t){return t===e}));if(o<0){return undefined}if(n){return i.slice(o+1).find((function(t){return se(t,r.tabbableOptions)}))}return i.slice(0,o).reverse().find((function(t){return se(t,r.tabbableOptions)}))}}}));o.tabbableGroups=o.containerGroups.filter((function(t){return t.tabbableNodes.length>0}));if(o.tabbableGroups.length<=0&&!c("fallbackFocus")){throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")}};var d=function t(e){if(e===false){return}if(e===n.activeElement){return}if(!e||!e.focus){t(u());return}e.focus({preventScroll:!!r.preventScroll});o.mostRecentlyFocusedNode=e;if(fe(e)){e.select()}};var f=function t(e){var i=c("setReturnFocus",e);return i?i:i===false?false:e};var p=function t(e){var i=we(e);if(l(i)>=0){return}if(ge(r.clickOutsideDeactivates,e)){s.deactivate({returnFocus:r.returnFocusOnDeactivate&&!le(i,r.tabbableOptions)});return}if(ge(r.allowOutsideClick,e)){return}e.preventDefault()};var b=function t(e){var i=we(e);var n=l(i)>=0;if(n||i instanceof Document){if(n){o.mostRecentlyFocusedNode=i}}else{e.stopImmediatePropagation();d(o.mostRecentlyFocusedNode||u())}};var m=function t(e){var i=we(e);h();var n=null;if(o.tabbableGroups.length>0){var s=l(i);var a=s>=0?o.containerGroups[s]:undefined;if(s<0){if(e.shiftKey){n=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode}else{n=o.tabbableGroups[0].firstTabbableNode}}else if(e.shiftKey){var u=ve(o.tabbableGroups,(function(t){var e=t.firstTabbableNode;return i===e}));if(u<0&&(a.container===i||le(i,r.tabbableOptions)&&!se(i,r.tabbableOptions)&&!a.nextTabbableNode(i,false))){u=s}if(u>=0){var f=u===0?o.tabbableGroups.length-1:u-1;var p=o.tabbableGroups[f];n=p.lastTabbableNode}}else{var b=ve(o.tabbableGroups,(function(t){var e=t.lastTabbableNode;return i===e}));if(b<0&&(a.container===i||le(i,r.tabbableOptions)&&!se(i,r.tabbableOptions)&&!a.nextTabbableNode(i))){b=s}if(b>=0){var m=b===o.tabbableGroups.length-1?0:b+1;var v=o.tabbableGroups[m];n=v.firstTabbableNode}}}else{n=c("fallbackFocus")}if(n){e.preventDefault();d(n)}};var v=function t(e){if(pe(e)&&ge(r.escapeDeactivates,e)!==false){e.preventDefault();s.deactivate();return}if(be(e)){m(e);return}};var g=function t(e){if(ge(r.clickOutsideDeactivates,e)){return}var i=we(e);if(l(i)>=0){return}if(ge(r.allowOutsideClick,e)){return}e.preventDefault();e.stopImmediatePropagation()};var w=function t(){if(!o.active){return}de.activateTrap(s);o.delayInitialFocusTimer=r.delayInitialFocus?me((function(){d(u())})):d(u());n.addEventListener("focusin",b,true);n.addEventListener("mousedown",p,{capture:true,passive:false});n.addEventListener("touchstart",p,{capture:true,passive:false});n.addEventListener("click",g,{capture:true,passive:false});n.addEventListener("keydown",v,{capture:true,passive:false});return s};var x=function t(){if(!o.active){return}n.removeEventListener("focusin",b,true);n.removeEventListener("mousedown",p,true);n.removeEventListener("touchstart",p,true);n.removeEventListener("click",g,true);n.removeEventListener("keydown",v,true);return s};s={activate:function t(e){if(o.active){return this}var i=a(e,"onActivate");var r=a(e,"onPostActivate");var s=a(e,"checkCanFocusTrap");if(!s){h()}o.active=true;o.paused=false;o.nodeFocusedBeforeActivation=n.activeElement;if(i){i()}var l=function t(){if(s){h()}w();if(r){r()}};if(s){s(o.containers.concat()).then(l,l);return this}l();return this},deactivate:function t(e){if(!o.active){return this}clearTimeout(o.delayInitialFocusTimer);o.delayInitialFocusTimer=undefined;x();o.active=false;o.paused=false;de.deactivateTrap(s);var i=a(e,"onDeactivate");var n=a(e,"onPostDeactivate");var r=a(e,"checkCanReturnFocus");if(i){i()}var l=a(e,"returnFocus","returnFocusOnDeactivate");var c=function t(){me((function(){if(l){d(f(o.nodeFocusedBeforeActivation))}if(n){n()}}))};if(l&&r){r(f(o.nodeFocusedBeforeActivation)).then(c,c);return this}c();return this},pause:function t(){if(o.paused||!o.active){return this}o.paused=true;x();return this},unpause:function t(){if(!o.paused||!o.active){return this}o.paused=false;h();w();return this},updateContainerElements:function t(e){var i=[].concat(e).filter(Boolean);o.containers=i.map((function(t){return typeof t==="string"?n.querySelector(t):t}));if(o.active){h()}return this}};s.updateContainerElements(e);return s};const ye=t=>(t?re(t,{includeContainer:true,getShadowRoot:true}):[]).shift();const ke=":host{display:contents}:host([hidden]){display:none}.content{padding-top:0.5rem;padding-bottom:0.5rem;position:absolute;background:white;display:none;overflow:auto;-webkit-overflow-scrolling:touch;min-width:8rem;max-width:16rem;min-height:2rem;max-height:calc(100vh - 48px);box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2);border-radius:0.25rem;z-index:100}";let ze=0;const Ae=class{constructor(e){t(this,e);this.catOpen=n(this,"catOpen",7);this.catClose=n(this,"catClose",7);this.id=ze++;this.placement="bottom-start"}clickHandler(t){var e;if(this.content&&t.composedPath().includes(this.content)){(e=this.trap)===null||e===void 0?void 0:e.deactivate();this.hide()}}componentDidLoad(){var t,e,i,n,r;this.trigger=ye(this.triggerSlot);(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-haspopup","true");(e=this.trigger)===null||e===void 0?void 0:e.setAttribute("aria-expanded","false");(i=this.trigger)===null||i===void 0?void 0:i.setAttribute("aria-controls",this.contentId);(n=this.content)===null||n===void 0?void 0:n.setAttribute("id",this.contentId);if(this.trigger&&this.content){(r=this.trigger)===null||r===void 0?void 0:r.addEventListener("click",(()=>this.show()));$t(this.trigger,this.content,(()=>this.update()))}this.keyListener=t=>{if(this.content&&["ArrowDown","ArrowUp"].includes(t.key)){const e=re(this.content,{includeContainer:false,getShadowRoot:true});const i=ye(document.activeElement);const n=i?e.indexOf(i):-1;const r=t.key==="ArrowDown"?1:-1;const o=n<0?0:(n+r+e.length)%e.length;e[o].focus();t.preventDefault()}};document.addEventListener("keydown",this.keyListener)}disconnectedCallback(){if(this.keyListener){document.removeEventListener("keydown",this.keyListener)}}render(){return e(i,null,e("slot",{name:"trigger",ref:t=>this.triggerSlot=t}),e("div",{class:"content",ref:t=>this.content=t},e("slot",{name:"content"})))}get contentId(){return`cat-menu-${this.id}`}show(){var t;if(this.content){this.content.style.display="block";(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded","true");this.catOpen.emit();this.trap=this.trap?this.trap.updateContainerElements(this.content):xe(this.content,{tabbableOptions:{getShadowRoot:true},allowOutsideClick:true,clickOutsideDeactivates:t=>!this.content||!t.composedPath().includes(this.content),onPostDeactivate:()=>this.hide()});this.trap.activate()}}hide(){var t;if(this.content){this.content.style.display="";(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("aria-expanded","false");this.catClose.emit()}}update(){if(this.trigger&&this.content){_t(this.trigger,this.content,{placement:this.placement,middleware:[K(Ae.OFFSET),V()]}).then((({x:t,y:e})=>{if(this.content){Object.assign(this.content.style,{left:`${t}px`,top:`${e}px`})}}))}}};Ae.OFFSET=4;Ae.style=ke;const Se=":host{display:flex;margin-bottom:1rem}:host([hidden]){display:none}label{display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;cursor:pointer}.radio{display:flex;position:relative}.circle{position:absolute;width:0.75rem;height:0.75rem;background-color:rgb(var(--cat-primary-bg, 32, 127, 138));border-radius:10rem;top:calc(50% - 0.375rem);left:calc(50% - 0.375rem);visibility:hidden}input{margin:0;width:1.25rem;height:1.25rem;appearance:none;background-color:white;border:1px solid #d7dbe0;border-radius:10rem;cursor:inherit}input:checked{border-color:rgb(var(--cat-primary-bg, 32, 127, 138))}input:checked+.circle{visibility:visible}input:focus-visible{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.is-disabled input{background-color:#f8f8fb}.is-disabled input:checked{border-color:#d7dbe0}.is-disabled .circle{background-color:#d7dbe0}";let Ee=0;const Fe=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-radio-${++Ee}`;this.checked=false;this.disabled=false;this.label="";this.labelHidden=false;this.required=false}componentWillRender(){if(!this.label){r.error("[A11y] Missing ARIA label on radio",this)}}async setFocus(t){this.input.focus(t)}render(){return e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled}},e("span",{class:"radio"},e("input",{ref:t=>this.input=t,id:this.id,type:"radio",name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled,onInput:this.onChange.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),e("span",{class:"circle"})),e("span",{class:"label",part:"label"},this.label))}onChange(t){this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}};Fe.style=Se;function Be(t){return typeof t==="function"}function Te(t){const e=t=>{Error.call(t);t.stack=(new Error).stack};const i=t(e);i.prototype=Object.create(Error.prototype);i.prototype.constructor=i;return i}const Ce=Te((t=>function e(i){t(this);this.message=i?`${i.length} errors occurred during unsubscription:\n${i.map(((t,e)=>`${e+1}) ${t.toString()}`)).join("\n ")}`:"";this.name="UnsubscriptionError";this.errors=i}));function Ie(t,e){if(t){const i=t.indexOf(e);0<=i&&t.splice(i,1)}}class Oe{constructor(t){this.initialTeardown=t;this.closed=false;this._parentage=null;this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=true;const{_parentage:e}=this;if(e){this._parentage=null;if(Array.isArray(e)){for(const t of e){t.remove(this)}}else{e.remove(this)}}const{initialTeardown:i}=this;if(Be(i)){try{i()}catch(e){t=e instanceof Ce?e.errors:[e]}}const{_finalizers:n}=this;if(n){this._finalizers=null;for(const e of n){try{_e(e)}catch(e){t=t!==null&&t!==void 0?t:[];if(e instanceof Ce){t=[...t,...e.errors]}else{t.push(e)}}}}if(t){throw new Ce(t)}}}add(t){var e;if(t&&t!==this){if(this.closed){_e(t)}else{if(t instanceof Oe){if(t.closed||t._hasParent(this)){return}t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;if(e===t){this._parentage=null}else if(Array.isArray(e)){Ie(e,t)}}remove(t){const{_finalizers:e}=this;e&&Ie(e,t);if(t instanceof Oe){t._removeParent(this)}}}Oe.EMPTY=(()=>{const t=new Oe;t.closed=true;return t})();const Re=Oe.EMPTY;function $e(t){return t instanceof Oe||t&&"closed"in t&&Be(t.remove)&&Be(t.add)&&Be(t.unsubscribe)}function _e(t){if(Be(t)){t()}else{t.unsubscribe()}}const je={onUnhandledError:null,onStoppedNotification:null,Promise:undefined,useDeprecatedSynchronousErrorHandling:false,useDeprecatedNextContext:false};const De={setTimeout(t,e,...i){const{delegate:n}=De;if(n===null||n===void 0?void 0:n.setTimeout){return n.setTimeout(t,e,...i)}return setTimeout(t,e,...i)},clearTimeout(t){const{delegate:e}=De;return((e===null||e===void 0?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:undefined};function Pe(t){De.setTimeout((()=>{const{onUnhandledError:e}=je;if(e){e(t)}else{throw t}}))}function Le(){}const Me=(()=>Ue("C",undefined,undefined))();function Ne(t){return Ue("E",undefined,t)}function qe(t){return Ue("N",t,undefined)}function Ue(t,e,i){return{kind:t,value:e,error:i}}function We(t){{t()}}class Ye extends Oe{constructor(t){super();this.isStopped=false;if(t){this.destination=t;if($e(t)){t.add(this)}}else{this.destination=Ze}}static create(t,e,i){return new Ge(t,e,i)}next(t){if(this.isStopped){Qe(qe(t),this)}else{this._next(t)}}error(t){if(this.isStopped){Qe(Ne(t),this)}else{this.isStopped=true;this._error(t)}}complete(){if(this.isStopped){Qe(Me,this)}else{this.isStopped=true;this._complete()}}unsubscribe(){if(!this.closed){this.isStopped=true;super.unsubscribe();this.destination=null}}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Xe=Function.prototype.bind;function He(t,e){return Xe.call(t,e)}class Ve{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next){try{e.next(t)}catch(t){Ke(t)}}}error(t){const{partialObserver:e}=this;if(e.error){try{e.error(t)}catch(t){Ke(t)}}else{Ke(t)}}complete(){const{partialObserver:t}=this;if(t.complete){try{t.complete()}catch(t){Ke(t)}}}}class Ge extends Ye{constructor(t,e,i){super();let n;if(Be(t)||!t){n={next:t!==null&&t!==void 0?t:undefined,error:e!==null&&e!==void 0?e:undefined,complete:i!==null&&i!==void 0?i:undefined}}else{let e;if(this&&je.useDeprecatedNextContext){e=Object.create(t);e.unsubscribe=()=>this.unsubscribe();n={next:t.next&&He(t.next,e),error:t.error&&He(t.error,e),complete:t.complete&&He(t.complete,e)}}else{n=t}}this.destination=new Ve(n)}}function Ke(t){{Pe(t)}}function Je(t){throw t}function Qe(t,e){const{onStoppedNotification:i}=je;i&&De.setTimeout((()=>i(t,e)))}const Ze={closed:true,next:Le,error:Je,complete:Le};const ti=(()=>typeof Symbol==="function"&&Symbol.observable||"@@observable")();function ei(t){return t}function ii(t){if(t.length===0){return ei}if(t.length===1){return t[0]}return function e(i){return t.reduce(((t,e)=>e(t)),i)}}class ni{constructor(t){if(t){this._subscribe=t}}lift(t){const e=new ni;e.source=this;e.operator=t;return e}subscribe(t,e,i){const n=si(t)?t:new Ge(t,e,i);We((()=>{const{operator:t,source:e}=this;n.add(t?t.call(n,e):e?this._subscribe(n):this._trySubscribe(n))}));return n}_trySubscribe(t){try{return this._subscribe(t)}catch(e){t.error(e)}}forEach(t,e){e=ri(e);return new e(((e,i)=>{const n=new Ge({next:e=>{try{t(e)}catch(t){i(t);n.unsubscribe()}},error:i,complete:e});this.subscribe(n)}))}_subscribe(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)}[ti](){return this}pipe(...t){return ii(t)(this)}toPromise(t){t=ri(t);return new t(((t,e)=>{let i;this.subscribe((t=>i=t),(t=>e(t)),(()=>t(i)))}))}}ni.create=t=>new ni(t);function ri(t){var e;return(e=t!==null&&t!==void 0?t:je.Promise)!==null&&e!==void 0?e:Promise}function oi(t){return t&&Be(t.next)&&Be(t.error)&&Be(t.complete)}function si(t){return t&&t instanceof Ye||oi(t)&&$e(t)}function ai(t){return Be(t===null||t===void 0?void 0:t.lift)}function li(t){return e=>{if(ai(e)){return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}))}throw new TypeError("Unable to lift unknown Observable type")}}function ci(t,e,i,n,r){return new ui(t,e,i,n,r)}class ui extends Ye{constructor(t,e,i,n,r,o){super(t);this.onFinalize=r;this.shouldUnsubscribe=o;this._next=e?function(i){try{e(i)}catch(e){t.error(e)}}:super._next;this._error=n?function(e){try{n(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._error;this._complete=i?function(){try{i()}catch(e){t.error(e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe();!e&&((t=this.onFinalize)===null||t===void 0?void 0:t.call(this))}}}const hi=Te((t=>function e(){t(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}));class di extends ni{constructor(){super();this.closed=false;this.currentObservers=null;this.observers=[];this.isStopped=false;this.hasError=false;this.thrownError=null}lift(t){const e=new fi(this,this);e.operator=t;return e}_throwIfClosed(){if(this.closed){throw new hi}}next(t){We((()=>{this._throwIfClosed();if(!this.isStopped){if(!this.currentObservers){this.currentObservers=Array.from(this.observers)}for(const e of this.currentObservers){e.next(t)}}}))}error(t){We((()=>{this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=true;this.thrownError=t;const{observers:e}=this;while(e.length){e.shift().error(t)}}}))}complete(){We((()=>{this._throwIfClosed();if(!this.isStopped){this.isStopped=true;const{observers:t}=this;while(t.length){t.shift().complete()}}}))}unsubscribe(){this.isStopped=this.closed=true;this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){this._throwIfClosed();return super._trySubscribe(t)}_subscribe(t){this._throwIfClosed();this._checkFinalizedStatuses(t);return this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:e,isStopped:i,observers:n}=this;if(e||i){return Re}this.currentObservers=null;n.push(t);return new Oe((()=>{this.currentObservers=null;Ie(n,t)}))}_checkFinalizedStatuses(t){const{hasError:e,thrownError:i,isStopped:n}=this;if(e){t.error(i)}else if(n){t.complete()}}asObservable(){const t=new ni;t.source=this;return t}}di.create=(t,e)=>new fi(t,e);class fi extends di{constructor(t,e){super();this.destination=t;this.source=e}next(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0?void 0:i.call(e,t)}error(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0?void 0:i.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0?void 0:e.call(t)}_subscribe(t){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&i!==void 0?i:Re}}const pi=new ni((t=>t.complete()));function bi(t){return t&&Be(t.schedule)}function mi(t){return t[t.length-1]}function vi(t){return bi(mi(t))?t.pop():undefined}function gi(t,e){return typeof mi(t)==="number"?t.pop():e}function wi(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n["throw"](t))}catch(t){o(t)}}function l(t){t.done?i(t.value):r(t.value).then(s,a)}l((n=n.apply(t,e||[])).next())}))}function xi(t){var e=typeof Symbol==="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function yi(t){return this instanceof yi?(this.v=t,this):new yi(t)}function ki(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){if(n[t])r[t]=function(e){return new Promise((function(i,n){o.push([t,e,i,n])>1||a(t,e)}))}}function a(t,e){try{l(n[t](e))}catch(t){h(o[0][3],t)}}function l(t){t.value instanceof yi?Promise.resolve(t.value.v).then(c,u):h(o[0][2],t)}function c(t){a("next",t)}function u(t){a("throw",t)}function h(t,e){if(t(e),o.shift(),o.length)a(o[0][0],o[0][1])}}function zi(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof xi==="function"?xi(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(e){i[e]=t[e]&&function(i){return new Promise((function(n,o){i=t[e](i),r(n,o,i.done,i.value)}))}}function r(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)}}const Ai=t=>t&&typeof t.length==="number"&&typeof t!=="function";function Si(t){return Be(t===null||t===void 0?void 0:t.then)}function Ei(t){return Be(t[ti])}function Fi(t){return Symbol.asyncIterator&&Be(t===null||t===void 0?void 0:t[Symbol.asyncIterator])}function Bi(t){return new TypeError(`You provided ${t!==null&&typeof t==="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ti(){if(typeof Symbol!=="function"||!Symbol.iterator){return"@@iterator"}return Symbol.iterator}const Ci=Ti();function Ii(t){return Be(t===null||t===void 0?void 0:t[Ci])}function Oi(t){return ki(this,arguments,(function*e(){const i=t.getReader();try{while(true){const{value:t,done:e}=yield yi(i.read());if(e){return yield yi(void 0)}yield yield yi(t)}}finally{i.releaseLock()}}))}function Ri(t){return Be(t===null||t===void 0?void 0:t.getReader)}function $i(t){if(t instanceof ni){return t}if(t!=null){if(Ei(t)){return _i(t)}if(Ai(t)){return ji(t)}if(Si(t)){return Di(t)}if(Fi(t)){return Li(t)}if(Ii(t)){return Pi(t)}if(Ri(t)){return Mi(t)}}throw Bi(t)}function _i(t){return new ni((e=>{const i=t[ti]();if(Be(i.subscribe)){return i.subscribe(e)}throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function ji(t){return new ni((e=>{for(let i=0;i<t.length&&!e.closed;i++){e.next(t[i])}e.complete()}))}function Di(t){return new ni((e=>{t.then((t=>{if(!e.closed){e.next(t);e.complete()}}),(t=>e.error(t))).then(null,Pe)}))}function Pi(t){return new ni((e=>{for(const i of t){e.next(i);if(e.closed){return}}e.complete()}))}function Li(t){return new ni((e=>{Ni(t,e).catch((t=>e.error(t)))}))}function Mi(t){return Li(Oi(t))}function Ni(t,e){var i,n;var r,o;return wi(this,void 0,void 0,(function*(){try{for(i=zi(t);n=yield i.next(),!n.done;){const t=n.value;e.next(t);if(e.closed){return}}}catch(t){r={error:t}}finally{try{if(n&&!n.done&&(o=i.return))yield o.call(i)}finally{if(r)throw r.error}}e.complete()}))}function qi(t,e,i,n=0,r=false){const o=e.schedule((function(){i();if(r){t.add(this.schedule(null,n))}else{this.unsubscribe()}}),n);t.add(o);if(!r){return o}}function Ui(t,e=0){return li(((i,n)=>{i.subscribe(ci(n,(i=>qi(n,t,(()=>n.next(i)),e)),(()=>qi(n,t,(()=>n.complete()),e)),(i=>qi(n,t,(()=>n.error(i)),e))))}))}function Wi(t,e=0){return li(((i,n)=>{n.add(t.schedule((()=>i.subscribe(n)),e))}))}function Yi(t,e){return $i(t).pipe(Wi(e),Ui(e))}function Xi(t,e){return $i(t).pipe(Wi(e),Ui(e))}function Hi(t,e){return new ni((i=>{let n=0;return e.schedule((function(){if(n===t.length){i.complete()}else{i.next(t[n++]);if(!i.closed){this.schedule()}}}))}))}function Vi(t,e){return new ni((i=>{let n;qi(i,e,(()=>{n=t[Ci]();qi(i,e,(()=>{let t;let e;try{({value:t,done:e}=n.next())}catch(t){i.error(t);return}if(e){i.complete()}else{i.next(t)}}),0,true)}));return()=>Be(n===null||n===void 0?void 0:n.return)&&n.return()}))}function Gi(t,e){if(!t){throw new Error("Iterable cannot be null")}return new ni((i=>{qi(i,e,(()=>{const n=t[Symbol.asyncIterator]();qi(i,e,(()=>{n.next().then((t=>{if(t.done){i.complete()}else{i.next(t.value)}}))}),0,true)}))}))}function Ki(t,e){return Gi(Oi(t),e)}function Ji(t,e){if(t!=null){if(Ei(t)){return Yi(t,e)}if(Ai(t)){return Hi(t,e)}if(Si(t)){return Xi(t,e)}if(Fi(t)){return Gi(t,e)}if(Ii(t)){return Vi(t,e)}if(Ri(t)){return Ki(t,e)}}throw Bi(t)}function Qi(t,e){return e?Ji(t,e):$i(t)}function Zi(t,e){return li(((i,n)=>{let r=0;i.subscribe(ci(n,(i=>{n.next(t.call(e,i,r++))})))}))}const{isArray:tn}=Array;function en(t,e){return tn(e)?t(...e):t(e)}function nn(t){return Zi((e=>en(t,e)))}function rn(t,e,i,n,r,o,s,a){const l=[];let c=0;let u=0;let h=false;const d=()=>{if(h&&!l.length&&!c){e.complete()}};const f=t=>c<n?p(t):l.push(t);const p=t=>{o&&e.next(t);c++;let a=false;$i(i(t,u++)).subscribe(ci(e,(t=>{r===null||r===void 0?void 0:r(t);if(o){f(t)}else{e.next(t)}}),(()=>{a=true}),undefined,(()=>{if(a){try{c--;while(l.length&&c<n){const t=l.shift();if(s){qi(e,s,(()=>p(t)))}else{p(t)}}d()}catch(t){e.error(t)}}})))};t.subscribe(ci(e,f,(()=>{h=true;d()})));return()=>{a===null||a===void 0?void 0:a()}}function on(t,e,i=Infinity){if(Be(e)){return on(((i,n)=>Zi(((t,r)=>e(i,t,n,r)))($i(t(i,n)))),i)}else if(typeof e==="number"){i=e}return li(((e,n)=>rn(e,n,t,i)))}function sn(t=Infinity){return on(ei,t)}const an=["addListener","removeListener"];const ln=["addEventListener","removeEventListener"];const cn=["on","off"];function un(t,e,i,n){if(Be(i)){n=i;i=undefined}if(n){return un(t,e,i).pipe(nn(n))}const[r,o]=pn(t)?ln.map((n=>r=>t[n](e,r,i))):dn(t)?an.map(hn(t,e)):fn(t)?cn.map(hn(t,e)):[];if(!r){if(Ai(t)){return on((t=>un(t,e,i)))($i(t))}}if(!r){throw new TypeError("Invalid event target")}return new ni((t=>{const e=(...e)=>t.next(1<e.length?e:e[0]);r(e);return()=>o(e)}))}function hn(t,e){return i=>n=>t[i](e,n)}function dn(t){return Be(t.addListener)&&Be(t.removeListener)}function fn(t){return Be(t.on)&&Be(t.off)}function pn(t){return Be(t.addEventListener)&&Be(t.removeEventListener)}function bn(...t){const e=vi(t);const i=gi(t,Infinity);const n=t;return!n.length?pi:n.length===1?$i(n[0]):sn(i)(Qi(n,e))}function mn(t,e){return li(((i,n)=>{let r=0;i.subscribe(ci(n,(i=>t.call(e,i,r++)&&n.next(i))))}))}function vn(t,e=ei){t=t!==null&&t!==void 0?t:gn;return li(((i,n)=>{let r;let o=true;i.subscribe(ci(n,(i=>{const s=e(i);if(o||!t(r,s)){o=false;r=s;n.next(i)}})))}))}function gn(t,e){return t===e}function wn(t){return li(((e,i)=>{$i(t).subscribe(ci(i,(()=>i.complete()),Le));!i.closed&&e.subscribe(i)}))}const xn=":host{overflow:hidden;position:relative;display:flex}:host([hidden]){display:none}.shadow-bottom,.shadow-right,.shadow-left,.shadow-top{position:absolute;transition:box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}.shadow-top{z-index:2;width:100%;top:0}.shadow-left{z-index:4;height:100%;left:0}.shadow-right{z-index:4;height:100%;right:0}.shadow-bottom{z-index:2;width:100%;bottom:0}.scrollable-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{overflow:hidden;white-space:nowrap}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";const yn=class{constructor(e){t(this,e);this.scrolledTop=n(this,"scrolledTop",7);this.scrolledLeft=n(this,"scrolledLeft",7);this.scrolledRight=n(this,"scrolledRight",7);this.scrolledBottom=n(this,"scrolledBottom",7);this.init=new di;this.destroyed=new di;this.shadowX=true;this.shadowY=true;this.overflowX=true;this.overflowY=true;this.overscroll=true;this.scrolledInit=true;this.scrolledBuffer=0}componentDidRender(){if(this.scrollElement){this.scrolled=un(this.scrollElement,"scroll").pipe(wn(this.destroyed))}this.attachEmitter("left",this.scrolledLeft,this.scrolledBuffer);this.attachEmitter("right",this.scrolledRight,this.scrolledBuffer);this.attachEmitter("bottom",this.scrolledBottom,this.scrolledBuffer);this.attachEmitter("top",this.scrolledTop,this.scrolledBuffer);bn(this.init,this.scrolled).pipe(Zi((()=>({top:this.getScrollOffset("top")>0,left:this.getScrollOffset("left")>0,right:this.getScrollOffset("right")>0,bottom:this.getScrollOffset("bottom")>0}))),vn(),wn(this.destroyed)).subscribe((({top:t,left:e,right:i,bottom:n})=>{this.toggleClass("cat-scrollable-top",t);this.toggleClass("cat-scrollable-left",e);this.toggleClass("cat-scrollable-right",i);this.toggleClass("cat-scrollable-bottom",n)}))}componentDidLoad(){if(this.scrolledInit){this.init.next()}}disconnectedCallback(){this.init.complete();this.destroyed.next();this.destroyed.complete()}render(){return[e("div",{class:"scrollable-wrapper",ref:t=>this.scrollWrapperElement=t},this.shadowY&&e("div",{class:"shadow-top"}),this.shadowX&&e("div",{class:"shadow-left"}),this.shadowX&&e("div",{class:"shadow-right"}),this.shadowY&&e("div",{class:"shadow-bottom"})),e("div",{ref:t=>this.scrollElement=t,class:{"scrollable-content":true,"scroll-x":this.overflowX,"scroll-y":this.overflowY,"no-overscroll":!this.overscroll}},e("slot",null))]}attachEmitter(t,e,i){bn(this.init,this.scrolled).pipe(Zi((()=>this.getScrollOffset(t)))).pipe(Zi((t=>t<=i))).pipe(vn()).pipe(mn((t=>t))).pipe(wn(this.destroyed)).subscribe((()=>e.emit()))}getScrollOffset(t){if(this.scrollElement){switch(t){case"top":return this.scrollElement.scrollTop;case"left":return this.scrollElement.scrollLeft;case"right":return this.scrollElement.scrollWidth-this.scrollElement.clientWidth-this.scrollElement.scrollLeft;case"bottom":return this.scrollElement.scrollHeight-this.scrollElement.clientHeight-this.scrollElement.scrollTop;default:return 0}}return 0}toggleClass(t,e){var i,n;if(e){(i=this.scrollWrapperElement)===null||i===void 0?void 0:i.classList.add(t)}else{(n=this.scrollWrapperElement)===null||n===void 0?void 0:n.classList.remove(t)}}};yn.style=xn;const kn=':host{display:flex;flex-direction:column;position:relative;--background:#ebecf0;--highlight:#d7dbe0;--speed:2s}:host([variant=square]),:host([variant=circle]){display:inline-flex}:host([hidden]){display:none}:host([variant=head]){margin-bottom:0.5rem}:host([variant=body]){margin-bottom:1rem}.skeleton{display:block;border-radius:0.25rem;background:var(--background)}.skeleton-circle{border-radius:10rem}.skeleton-xs.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-square,.skeleton-xs.skeleton-circle{width:var(--width, 1.5rem);height:var(--height, 1.5rem)}.skeleton-xs.skeleton-head,.skeleton-xs.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xs.skeleton-head{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-xs.skeleton-body{height:calc(0.75rem - 4px);margin:calc((1rem - 0.75rem + 4px) * 0.5) 0}.skeleton-s.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2rem)}.skeleton-s.skeleton-square,.skeleton-s.skeleton-circle{width:var(--width, 2rem);height:var(--height, 2rem)}.skeleton-s.skeleton-head,.skeleton-s.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-s.skeleton-head{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-s.skeleton-body{height:calc(0.875rem - 4px);margin:calc((1rem - 0.875rem + 4px) * 0.5) 0}.skeleton-m.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 2.5rem)}.skeleton-m.skeleton-square,.skeleton-m.skeleton-circle{width:var(--width, 2.5rem);height:var(--height, 2.5rem)}.skeleton-m.skeleton-head,.skeleton-m.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-m.skeleton-head{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-m.skeleton-body{height:calc(0.9375rem - 4px);margin:calc((1.25rem - 0.9375rem + 4px) * 0.5) 0}.skeleton-l.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3rem)}.skeleton-l.skeleton-square,.skeleton-l.skeleton-circle{width:var(--width, 3rem);height:var(--height, 3rem)}.skeleton-l.skeleton-head,.skeleton-l.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-l.skeleton-head{height:calc(1.5rem - 4px);margin:calc((1.75rem - 1.5rem + 4px) * 0.5) 0}.skeleton-l.skeleton-body{height:calc(1.125rem - 4px);margin:calc((1.5rem - 1.125rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-rectangle{width:var(--width, 100%);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-square,.skeleton-xl.skeleton-circle{width:var(--width, 3.5rem);height:var(--height, 3.5rem)}.skeleton-xl.skeleton-head,.skeleton-xl.skeleton-body{width:var(--width, var(--line-width, 100%))}.skeleton-xl.skeleton-head{height:calc(1.75rem - 4px);margin:calc((2rem - 1.75rem + 4px) * 0.5) 0}.skeleton-xl.skeleton-body{height:calc(1.25rem - 4px);margin:calc((1.5rem - 1.25rem + 4px) * 0.5) 0}.skeleton-sheen{background:linear-gradient(90deg, var(--background) 33%, var(--highlight) 50%, var(--background) 66%) var(--background);background-size:300% 100%;animation:sheen var(--speed) ease-in-out infinite}.skeleton-pulse{position:relative;overflow:hidden}.skeleton-pulse::before{content:"";display:block;position:absolute;width:100%;height:100%;background-color:var(--highlight);animation:var(--speed) ease-in-out 0.5s infinite normal none running pulse;opacity:0}@keyframes sheen{0%{background-position:right}}@keyframes pulse{50%{opacity:1}}';const zn=class{constructor(e){t(this,e);this.effect="sheen";this.variant="rectangle";this.size="m"}render(){return e(i,null,Array.from(Array(this.count)).map((()=>e("div",{style:this.style,class:{skeleton:true,[`skeleton-${this.effect}`]:Boolean(this.effect),[`skeleton-${this.variant}`]:Boolean(this.variant),[`skeleton-${this.size}`]:Boolean(this.size)}}))))}get count(){switch(this.variant){case"head":return Math.max(1,this.lines||1);case"body":return Math.max(1,this.lines||3);default:return 1}}get style(){return this.variant==="head"||this.variant==="body"?{"--line-width":`${this.random(50,100)}%`}:undefined}random(t,e){return Math.floor(Math.random()*(e-t+1)+t)}};zn.style=kn;const An=":host{display:inline-flex;vertical-align:middle;-webkit-user-select:none;-ms-user-select:none;user-select:none;}:host[hidden]{display:none}span{display:inline-flex}svg{fill:none;stroke:currentColor;stroke-dasharray:135px;stroke-dashoffset:95px;stroke-linecap:round;stroke-width:5px;transform-origin:center center;animation:spin 0.75s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite;width:1em;height:1em}.spinner-xs svg{font-size:0.75rem}.spinner-s svg{font-size:1rem}.spinner-m svg{font-size:1.25rem}.spinner-l svg{font-size:1.5rem}.spinner-xl svg{font-size:1.75rem}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";const Sn=class{constructor(e){t(this,e);this.size="m"}render(){return e("span",{"aria-label":this.a11yLabel,"aria-hidden":this.a11yLabel?null:"true",class:{[`spinner-${this.size}`]:this.size!=="inline"}},e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e("circle",{cx:"24",cy:"24",r:"21.5"})))}};Sn.style=An;var En,Fn,Bn="function"==typeof Map?new Map:(En=[],Fn=[],{has:function(t){return En.indexOf(t)>-1},get:function(t){return Fn[En.indexOf(t)]},set:function(t,e){-1===En.indexOf(t)&&(En.push(t),Fn.push(e))},delete:function(t){var e=En.indexOf(t);e>-1&&(En.splice(e,1),Fn.splice(e,1))}}),Tn=function(t){return new Event(t,{bubbles:!0})};try{new Event("test")}catch(En){Tn=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!1),e}}function Cn(t){var e=Bn.get(t);e&&e.destroy()}function In(t){var e=Bn.get(t);e&&e.update()}var On=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((On=function(t){return t}).destroy=function(t){return t},On.update=function(t){return t}):((On=function(t,e){return t&&Array.prototype.forEach.call(t.length?t:[t],(function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!Bn.has(t)){var e,i=null,n=null,r=null,o=function(){t.clientWidth!==n&&c()},s=function(e){window.removeEventListener("resize",o,!1),t.removeEventListener("input",c,!1),t.removeEventListener("keyup",c,!1),t.removeEventListener("autosize:destroy",s,!1),t.removeEventListener("autosize:update",c,!1),Object.keys(e).forEach((function(i){t.style[i]=e[i]})),Bn.delete(t)}.bind(t,{height:t.style.height,resize:t.style.resize,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",s,!1),"onpropertychange"in t&&"oninput"in t&&t.addEventListener("keyup",c,!1),window.addEventListener("resize",o,!1),t.addEventListener("input",c,!1),t.addEventListener("autosize:update",c,!1),t.style.overflowX="hidden",t.style.wordWrap="break-word",Bn.set(t,{destroy:s,update:c}),"vertical"===(e=window.getComputedStyle(t,null)).resize?t.style.resize="none":"both"===e.resize&&(t.style.resize="horizontal"),i="content-box"===e.boxSizing?-(parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)):parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth),isNaN(i)&&(i=0),c()}function a(e){var i=t.style.width;t.style.width="0px",t.style.width=i,t.style.overflowY=e}function l(){if(0!==t.scrollHeight){var e=function(t){for(var e=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&e.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;return e}(t),r=document.documentElement&&document.documentElement.scrollTop;t.style.height="",t.style.height=t.scrollHeight+i+"px",n=t.clientWidth,e.forEach((function(t){t.node.scrollTop=t.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function c(){l();var e=Math.round(parseFloat(t.style.height)),i=window.getComputedStyle(t,null),n="content-box"===i.boxSizing?Math.round(parseFloat(i.height)):t.offsetHeight;if(n<e?"hidden"===i.overflowY&&(a("scroll"),l(),n="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight):"hidden"!==i.overflowY&&(a("hidden"),l(),n="content-box"===i.boxSizing?Math.round(parseFloat(window.getComputedStyle(t,null).height)):t.offsetHeight),r!==n){r=n;var o=Tn("autosize:resized");try{t.dispatchEvent(o)}catch(t){}}}}(t)})),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],Cn),t},On.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],In),t});var Rn=On;const $n=":host{display:flex;flex-direction:column;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;margin-bottom:1rem}:host([hidden]){display:none}label{align-self:flex-start}label.hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.input-optional{margin-left:0.25rem;font-size:0.75rem;line-height:1rem;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}textarea{margin:0;padding:0.625rem 0.75rem;min-height:2.5rem;font:inherit;background:white;border-radius:0.25rem;border:none;box-shadow:0 0 0 1px #d7dbe0;transition:box-shadow 0.13s linear}textarea:disabled{background:#f8f8fb;cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135));resize:none}textarea:hover:not(:disabled){box-shadow:0 0 0 2px #d7dbe0}textarea:focus{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255))}textarea::placeholder{color:rgb(var(--cat-font-color-muted, 105, 118, 135))}.input-hint{font-size:0.875rem;line-height:1rem;margin:0}";let _n=0;const jn=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-textarea-${_n++}`;this.disabled=false;this.label="";this.labelHidden=false;this.name="";this.readonly=false;this.required=false;this.rows=3}componentWillRender(){if(!this.label){r.error("[A11y] Missing ARIA label on textarea",this)}}componentDidLoad(){Rn(this.textarea)}async setFocus(t){this.textarea.focus(t)}render(){return e(i,null,this.label&&e("label",{htmlFor:this.id,class:{hidden:this.labelHidden}},e("span",{part:"label"},this.label,!this.required&&e("span",{class:"input-optional","aria-hidden":"true"},"(Optional)"))),e("textarea",{ref:t=>this.textarea=t,id:this.id,disabled:this.disabled,maxlength:this.maxLength,minlength:this.minLength,name:this.name,placeholder:this.placeholder,readonly:this.readonly,required:this.required,rows:this.rows,value:this.value,onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),this.hint&&e("p",{class:"input-hint"},this.hint))}onInput(t){this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}};jn.style=$n;const Dn=':host{display:flex;margin-bottom:1rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}input{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.toggle{flex:0 0 auto;display:flex;align-items:center;justify-content:center;position:relative;width:2rem;height:1.25rem;border-radius:10rem;background-color:#d7dbe0;transition:background-color 0.13s ease}:checked+.toggle{background-color:rgb(var(--cat-primary-bg, 32, 127, 138))}:focus-visible+.toggle{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.toggle::after{content:"";position:absolute;width:1rem;height:1rem;background:#fff;border-radius:10rem;transform:translateX(calc(2px - 0.5rem));transition:transform 0.13s linear;box-shadow:0 1px 4px 0 rgba(16, 29, 48, 0.2)}:checked+.toggle::after{transform:translateX(calc(-2px + 0.5rem))}.label{flex:1 1 auto}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 105, 118, 135))}';let Pn=0;const Ln=class{constructor(e){t(this,e);this.catChange=n(this,"catChange",7);this.catFocus=n(this,"catFocus",7);this.catBlur=n(this,"catBlur",7);this.id=`cat-toggle-${Pn++}`;this.checked=false;this.disabled=false;this.label="";this.labelHidden=false;this.required=false}componentWillRender(){if(!this.label){r.error("[A11y] Missing ARIA label on toggle",this)}}async setFocus(t){this.input.focus(t)}render(){return e("label",{htmlFor:this.id,class:{"is-hidden":this.labelHidden,"is-disabled":this.disabled}},e("input",{ref:t=>this.input=t,id:this.id,type:"checkbox",name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled,class:"form-check-input",role:"switch",onInput:this.onInput.bind(this),onFocus:this.onFocus.bind(this),onBlur:this.onBlur.bind(this)}),e("span",{class:"toggle",part:"toggle"}),e("span",{class:"label",part:"label"},this.label))}onInput(t){this.catChange.emit(t)}onFocus(t){this.catFocus.emit(t)}onBlur(t){this.catBlur.emit(t)}};Ln.style=Dn;const Mn="ontouchstart"in window||navigator.maxTouchPoints>0;const Nn=":host{display:contents}:host([hidden]){display:none}.tooltip{position:absolute;font-size:0.875rem;line-height:1rem;font-weight:500;padding:0.75rem;background-color:white;border-radius:0.25rem;color:black;transition:opacity 0.25s linear, visibility 0.25s linear;visibility:hidden;opacity:0;box-shadow:rgba(0, 0, 0, 0.08) 0 1px 8px 0;border:1px solid #ebecf0;z-index:200;max-width:16rem}.tooltip-show{opacity:1;visibility:visible}.tooltip-trigger{display:inline-block}.tooltip-trigger:focus{outline:none}";let qn=0;const Un=class{constructor(e){t(this,e);this.id=`cat-tooltip-${qn++}`;this.content="";this.disabled=false;this.placement="top";this.showDelay=500;this.hideDelay=0;this.longTouchDuration=1e3}handleKeyDown({key:t}){t==="Escape"&&this.hideListener()}componentDidLoad(){var t,e,i,n,r,o,s;this.trigger=ye(this.triggerElement)||this.triggerElement;if(!this.isTabbable){(t=this.trigger)===null||t===void 0?void 0:t.setAttribute("tabindex","0")}if(this.trigger&&this.tooltip){$t(this.trigger,this.tooltip,(()=>this.update()))}if(Mn){(e=this.trigger)===null||e===void 0?void 0:e.addEventListener("touchstart",this.touchStartListener.bind(this));(i=this.trigger)===null||i===void 0?void 0:i.addEventListener("touchend",this.touchEndListener.bind(this))}else{(n=this.trigger)===null||n===void 0?void 0:n.addEventListener("focusin",this.showListener.bind(this));(r=this.trigger)===null||r===void 0?void 0:r.addEventListener("focusout",this.hideListener.bind(this));(o=this.trigger)===null||o===void 0?void 0:o.addEventListener("mouseenter",this.showListener.bind(this));(s=this.trigger)===null||s===void 0?void 0:s.addEventListener("mouseleave",this.hideListener.bind(this))}}disconnectedCallback(){var t,e,i,n,r,o;if(Mn){(t=this.trigger)===null||t===void 0?void 0:t.removeEventListener("touchstart",this.touchStartListener.bind(this));(e=this.trigger)===null||e===void 0?void 0:e.removeEventListener("touchend",this.touchEndListener.bind(this))}else{(i=this.trigger)===null||i===void 0?void 0:i.removeEventListener("mouseenter",this.showListener.bind(this));(n=this.trigger)===null||n===void 0?void 0:n.removeEventListener("mouseleave",this.hideListener.bind(this));(r=this.trigger)===null||r===void 0?void 0:r.removeEventListener("focusin",this.showListener.bind(this));(o=this.trigger)===null||o===void 0?void 0:o.removeEventListener("focusout",this.hideListener.bind(this))}}render(){return e(i,null,e("div",{ref:t=>this.triggerElement=t,"aria-describedby":this.id,class:"tooltip-trigger"},e("slot",null)),this.content&&!this.disabled&&e("div",{ref:t=>this.tooltip=t,id:this.id,class:"tooltip"},this.content))}get isTabbable(){return ye(this.trigger)}update(){if(this.trigger&&this.tooltip){_t(this.trigger,this.tooltip,{placement:this.placement,middleware:[K(Un.OFFSET),V()]}).then((({x:t,y:e})=>{if(this.tooltip){Object.assign(this.tooltip.style,{left:`${Math.max(0,t)}px`,top:`${e}px`})}}))}}showListener(){window.clearTimeout(this.hideTimeout);this.showTimeout=window.setTimeout((()=>{var t,e;(t=this.trigger)===null||t===void 0?void 0:t.focus();(e=this.tooltip)===null||e===void 0?void 0:e.classList.add("tooltip-show")}),this.showDelay)}hideListener(){window.clearTimeout(this.showTimeout);this.hideTimeout=window.setTimeout((()=>{var t,e;(t=this.trigger)===null||t===void 0?void 0:t.blur();(e=this.tooltip)===null||e===void 0?void 0:e.classList.remove("tooltip-show")}),this.hideDelay)}touchStartListener(){this.touchTimeout=window.setTimeout((()=>{var t;(t=this.tooltip)===null||t===void 0?void 0:t.classList.add("tooltip-show")}),this.longTouchDuration)}touchEndListener(){var t;window.clearTimeout(this.touchTimeout);(t=this.tooltip)===null||t===void 0?void 0:t.classList.remove("tooltip-show")}};Un.OFFSET=4;Un.style=Nn;export{l as cat_alert,u as cat_badge,y as cat_button,z as cat_card,E as cat_checkbox,B as cat_icon,I as cat_input,Ae as cat_menu,Fe as cat_radio,yn as cat_scrollable,zn as cat_skeleton,Sn as cat_spinner,jn as cat_textarea,Ln as cat_toggle,Un as cat_tooltip};
10
- //# sourceMappingURL=p-a6b8ebe9.entry.js.map