snice 7.6.0 → 7.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/react/SniceProvider.js +1 -1
- package/adapters/react/SniceRouter.js +1 -1
- package/adapters/react/calendar.d.ts +1 -0
- package/adapters/react/calendar.d.ts.map +1 -1
- package/adapters/react/calendar.js +1 -1
- package/adapters/react/calendar.js.map +1 -1
- package/adapters/react/calendar.tsx +2 -1
- package/adapters/react/matchRoute.js +1 -1
- package/adapters/react/useRequestHandler.js +1 -1
- package/bin/analyzer-contracts.js +8 -2
- package/custom-elements.json +15 -1
- package/dist/cdn/accordion/snice-accordion.js +1 -1
- package/dist/cdn/action-bar/snice-action-bar.js +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.js +1 -1
- package/dist/cdn/alert/snice-alert.js +1 -1
- package/dist/cdn/app-tiles/snice-app-tiles.js +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.js +1 -1
- package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
- package/dist/cdn/availability/snice-availability.js +1 -1
- package/dist/cdn/avatar/snice-avatar.js +1 -1
- package/dist/cdn/avatar-group/snice-avatar-group.js +1 -1
- package/dist/cdn/badge/snice-badge.js +1 -1
- package/dist/cdn/banner/snice-banner.js +1 -1
- package/dist/cdn/binpack/snice-binpack.js +1 -1
- package/dist/cdn/book/snice-book.js +1 -1
- package/dist/cdn/booking/snice-booking.js +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
- package/dist/cdn/button/snice-button.js +2 -2
- package/dist/cdn/button/snice-button.js.map +1 -1
- package/dist/cdn/button/snice-button.min.js +1 -1
- package/dist/cdn/button/snice-button.min.js.map +1 -1
- package/dist/cdn/calendar/README.md +2 -2
- package/dist/cdn/calendar/snice-calendar.js +26 -2
- package/dist/cdn/calendar/snice-calendar.js.map +1 -1
- package/dist/cdn/calendar/snice-calendar.min.js +2 -2
- package/dist/cdn/calendar/snice-calendar.min.js.map +1 -1
- package/dist/cdn/camera/snice-camera.js +1 -1
- package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
- package/dist/cdn/candlestick/snice-candlestick.js +1 -1
- package/dist/cdn/card/snice-card.js +1 -1
- package/dist/cdn/carousel/snice-carousel.js +1 -1
- package/dist/cdn/cart/snice-cart.js +1 -1
- package/dist/cdn/chart/snice-chart.js +1 -1
- package/dist/cdn/chat/snice-chat.js +1 -1
- package/dist/cdn/checkbox/snice-checkbox.js +1 -1
- package/dist/cdn/chip/snice-chip.js +1 -1
- package/dist/cdn/code-block/snice-code-block.js +1 -1
- package/dist/cdn/color-display/snice-color-display.js +1 -1
- package/dist/cdn/color-picker/snice-color-picker.js +1 -1
- package/dist/cdn/command-palette/snice-command-palette.js +1 -1
- package/dist/cdn/comments/snice-comments.js +1 -1
- package/dist/cdn/countdown/snice-countdown.js +1 -1
- package/dist/cdn/cropper/snice-cropper.js +1 -1
- package/dist/cdn/data-card/snice-data-card.js +1 -1
- package/dist/cdn/date-picker/snice-date-picker.js +1 -1
- package/dist/cdn/date-range-picker/snice-date-range-picker.js +1 -1
- package/dist/cdn/date-time-picker/snice-date-time-picker.js +1 -1
- package/dist/cdn/diff/snice-diff.js +1 -1
- package/dist/cdn/divider/snice-divider.js +1 -1
- package/dist/cdn/doc/snice-doc.js +1 -1
- package/dist/cdn/draw/snice-draw.js +1 -1
- package/dist/cdn/drawer/snice-drawer.js +1 -1
- package/dist/cdn/empty-state/snice-empty-state.js +1 -1
- package/dist/cdn/estimate/snice-estimate.js +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
- package/dist/cdn/file-upload/snice-file-upload.js +1 -1
- package/dist/cdn/flip-card/snice-flip-card.js +1 -1
- package/dist/cdn/flow/snice-flow.js +1 -1
- package/dist/cdn/form-layout/snice-form-layout.js +1 -1
- package/dist/cdn/funnel/snice-funnel.js +1 -1
- package/dist/cdn/gantt/snice-gantt.js +1 -1
- package/dist/cdn/gauge/snice-gauge.js +1 -1
- package/dist/cdn/grid/snice-grid.js +1 -1
- package/dist/cdn/heatmap/snice-heatmap.js +1 -1
- package/dist/cdn/image/snice-image.js +1 -1
- package/dist/cdn/input/snice-input.js +1 -1
- package/dist/cdn/invoice/snice-invoice.js +1 -1
- package/dist/cdn/kanban/snice-kanban.js +1 -1
- package/dist/cdn/key-value/snice-key-value.js +1 -1
- package/dist/cdn/kpi/snice-kpi.js +1 -1
- package/dist/cdn/layout/snice-layout.js +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.js +1 -1
- package/dist/cdn/link/snice-link.js +1 -1
- package/dist/cdn/link-preview/snice-link-preview.js +1 -1
- package/dist/cdn/list/snice-list.js +1 -1
- package/dist/cdn/location/snice-location.js +1 -1
- package/dist/cdn/login/README.md +1 -1
- package/dist/cdn/login/snice-login.js +2 -2
- package/dist/cdn/login/snice-login.js.map +1 -1
- package/dist/cdn/login/snice-login.min.js +1 -1
- package/dist/cdn/login/snice-login.min.js.map +1 -1
- package/dist/cdn/map/snice-map.js +1 -1
- package/dist/cdn/markdown/snice-markdown.js +1 -1
- package/dist/cdn/masonry/snice-masonry.js +1 -1
- package/dist/cdn/menu/snice-menu.js +1 -1
- package/dist/cdn/message-strip/snice-message-strip.js +1 -1
- package/dist/cdn/modal/snice-modal.js +1 -1
- package/dist/cdn/music-player/snice-music-player.js +1 -1
- package/dist/cdn/nav/snice-nav.js +1 -1
- package/dist/cdn/network-graph/snice-network-graph.js +1 -1
- package/dist/cdn/notification-center/snice-notification-center.js +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.js +1 -1
- package/dist/cdn/org-chart/snice-org-chart.js +1 -1
- package/dist/cdn/pagination/snice-pagination.js +1 -1
- package/dist/cdn/paint/snice-paint.js +1 -1
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.js +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.js +1 -1
- package/dist/cdn/popover/snice-popover.js +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.js +1 -1
- package/dist/cdn/product-card/snice-product-card.js +1 -1
- package/dist/cdn/progress/snice-progress.js +1 -1
- package/dist/cdn/progress-ring/snice-progress-ring.js +1 -1
- package/dist/cdn/qr-code/snice-qr-code.js +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
- package/dist/cdn/radio/snice-radio.js +1 -1
- package/dist/cdn/range-slider/snice-range-slider.js +1 -1
- package/dist/cdn/rating/snice-rating.js +1 -1
- package/dist/cdn/receipt/snice-receipt.js +1 -1
- package/dist/cdn/recipe/snice-recipe.js +1 -1
- package/dist/cdn/runtime/README.md +2 -2
- package/dist/cdn/runtime/snice-runtime.esm.js +130 -31
- package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.js +130 -31
- package/dist/cdn/runtime/snice-runtime.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
- package/dist/cdn/sankey/snice-sankey.js +1 -1
- package/dist/cdn/segmented-control/snice-segmented-control.js +1 -1
- package/dist/cdn/select/snice-select.js +1 -1
- package/dist/cdn/skeleton/snice-skeleton.js +1 -1
- package/dist/cdn/slider/snice-slider.js +1 -1
- package/dist/cdn/sortable/snice-sortable.js +1 -1
- package/dist/cdn/sparkline/snice-sparkline.js +1 -1
- package/dist/cdn/spinner/snice-spinner.js +1 -1
- package/dist/cdn/split-button/snice-split-button.js +1 -1
- package/dist/cdn/split-pane/snice-split-pane.js +1 -1
- package/dist/cdn/spotlight/snice-spotlight.js +1 -1
- package/dist/cdn/stat-group/snice-stat-group.js +1 -1
- package/dist/cdn/step-input/snice-step-input.js +1 -1
- package/dist/cdn/stepper/snice-stepper.js +1 -1
- package/dist/cdn/switch/snice-switch.js +1 -1
- package/dist/cdn/table/README.md +2 -2
- package/dist/cdn/table/snice-table.esm.js +227 -36
- package/dist/cdn/table/snice-table.esm.js.map +1 -1
- package/dist/cdn/table/snice-table.esm.min.js +69 -48
- package/dist/cdn/table/snice-table.esm.min.js.map +1 -1
- package/dist/cdn/table/snice-table.js +226 -35
- package/dist/cdn/table/snice-table.js.map +1 -1
- package/dist/cdn/table/snice-table.min.js +47 -26
- package/dist/cdn/table/snice-table.min.js.map +1 -1
- package/dist/cdn/tabs/snice-tabs.js +1 -1
- package/dist/cdn/tag/snice-tag.js +1 -1
- package/dist/cdn/tag-input/README.md +2 -2
- package/dist/cdn/tag-input/snice-tag-input.js +10 -16
- package/dist/cdn/tag-input/snice-tag-input.js.map +1 -1
- package/dist/cdn/tag-input/snice-tag-input.min.js +2 -2
- package/dist/cdn/tag-input/snice-tag-input.min.js.map +1 -1
- package/dist/cdn/terminal/snice-terminal.js +1 -1
- package/dist/cdn/testimonial/snice-testimonial.js +1 -1
- package/dist/cdn/textarea/snice-textarea.js +1 -1
- package/dist/cdn/time-picker/snice-time-picker.js +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
- package/dist/cdn/timeline/snice-timeline.js +1 -1
- package/dist/cdn/timer/snice-timer.js +1 -1
- package/dist/cdn/toast/snice-toast.js +1 -1
- package/dist/cdn/tooltip/snice-tooltip.js +1 -1
- package/dist/cdn/tree/snice-tree.js +1 -1
- package/dist/cdn/treemap/snice-treemap.js +1 -1
- package/dist/cdn/user-card/snice-user-card.js +1 -1
- package/dist/cdn/video-player/snice-video-player.js +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
- package/dist/cdn/waterfall/snice-waterfall.js +1 -1
- package/dist/cdn/weather/snice-weather.js +1 -1
- package/dist/cdn/work-order/snice-work-order.js +1 -1
- package/dist/components/button/snice-button.js +1 -1
- package/dist/components/button/snice-button.js.map +1 -1
- package/dist/components/calendar/snice-calendar.d.ts +2 -0
- package/dist/components/calendar/snice-calendar.js +25 -1
- package/dist/components/calendar/snice-calendar.js.map +1 -1
- package/dist/components/table/snice-row.d.ts +6 -0
- package/dist/components/table/snice-row.js +11 -3
- package/dist/components/table/snice-row.js.map +1 -1
- package/dist/components/table/snice-table.d.ts +40 -3
- package/dist/components/table/snice-table.js +157 -17
- package/dist/components/table/snice-table.js.map +1 -1
- package/dist/components/table/table-cell-presentation.d.ts +11 -0
- package/dist/components/table/table-cell-presentation.js +25 -8
- package/dist/components/table/table-cell-presentation.js.map +1 -1
- package/dist/components/table/table-export.d.ts +6 -0
- package/dist/components/table/table-export.js +11 -2
- package/dist/components/table/table-export.js.map +1 -1
- package/dist/components/table/table-keyboard.js +1 -1
- package/dist/components/table/table-keyboard.js.map +1 -1
- package/dist/components/table/table-master-detail.d.ts +11 -2
- package/dist/components/table/table-master-detail.js +20 -3
- package/dist/components/table/table-master-detail.js.map +1 -1
- package/dist/components/tag-input/snice-tag-input.d.ts +2 -2
- package/dist/components/tag-input/snice-tag-input.js +9 -15
- package/dist/components/tag-input/snice-tag-input.js.map +1 -1
- package/dist/index.cjs +127 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +127 -28
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +127 -28
- package/dist/index.iife.js.map +1 -1
- package/dist/react/SniceProvider.js +1 -1
- package/dist/react/SniceRouter.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/matchRoute.js +1 -1
- package/dist/react/useRequestHandler.js +1 -1
- package/dist/request-response.d.ts +24 -1
- package/dist/symbols.cjs +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/testing-dom.cjs +1 -1
- package/dist/testing-dom.esm.js +1 -1
- package/dist/transitions.cjs +1 -1
- package/dist/transitions.esm.js +1 -1
- package/docs/ai/DEVELOPMENT.md +1 -1
- package/docs/ai/components/calendar.md +8 -0
- package/docs/ai/components/tag-input.md +4 -0
- package/docs/ai/controllers.md +22 -6
- package/docs/components/calendar.md +24 -0
- package/docs/components/tag-input.md +6 -1
- package/docs/controllers.md +57 -6
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snice-login.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/icons/index.js","../../components/utils.js","../../components/alert/snice-alert.js","../../components/button/snice-button.js","../../components/form-control-validity.js","../../components/login/snice-login.js"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","/**\n * Built-in snice icon set — a small curated subset of Heroicons, used by\n * components as their default glyph when no consumer slot or `icon` prop is\n * provided. Consumers can always override by slotting their own icon library\n * (Font Awesome, Material Symbols, Lucide, custom SVG, etc.).\n *\n * Copied from Heroicons v2 — MIT License, © Tailwind Labs.\n * https://github.com/tailwindlabs/heroicons\n *\n * Why embed instead of depending on a package:\n * - Snice ships zero runtime dependencies beyond the framework itself.\n * - We only need ~15 glyphs; the full Heroicons package is 600+ icons.\n * - Embedding sidesteps shadow DOM / module-resolution concerns and keeps\n * default icons available even in sandboxed environments.\n *\n * All SVGs:\n * - viewBox=\"0 0 24 24\"\n * - solid variants use `fill=\"currentColor\"`\n * - outline variants use `stroke=\"currentColor\"` + no fill\n *\n * Components pass `currentColor` through by setting `color:` on the wrapper.\n */\n// ─── SOLID (filled) — used for status / selected / active contexts ────────\nconst INFO_CIRCLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\" clip-rule=\"evenodd\"/></svg>`;\nconst CHECK_CIRCLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\" clip-rule=\"evenodd\"/></svg>`;\nconst EXCLAMATION_TRIANGLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\" clip-rule=\"evenodd\"/></svg>`;\nconst X_CIRCLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z\" clip-rule=\"evenodd\"/></svg>`;\nconst PAPER_AIRPLANE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z\"/></svg>`;\n// ─── OUTLINE — used for neutral UI chrome ──────────────────────────────────\nconst X_MARK = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6 18 18 6M6 6l12 12\"/></svg>`;\nconst CHEVRON_DOWN = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/></svg>`;\nconst CHEVRON_UP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4.5 15.75 7.5-7.5 7.5 7.5\"/></svg>`;\nconst CHEVRON_RIGHT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m8.25 4.5 7.5 7.5-7.5 7.5\"/></svg>`;\nconst CHEVRON_LEFT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.75 19.5 8.25 12l7.5-7.5\"/></svg>`;\nconst CHECK = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4.5 12.75 6 6 9-13.5\"/></svg>`;\nconst MAGNIFYING_GLASS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z\"/></svg>`;\nconst BARS_3 = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5\"/></svg>`;\nconst PHOTO = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z\"/></svg>`;\nconst ELLIPSIS_HORIZONTAL = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"/></svg>`;\nconst TRASH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0\"/></svg>`;\nconst PLUS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 4.5v15m7.5-7.5h-15\"/></svg>`;\nconst CAMERA = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.822 1.316Z\"/><path d=\"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z\"/></svg>`;\nconst PENCIL = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125\"/></svg>`;\nconst ARROW_UP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 19.5v-15m0 0-6.75 6.75M12 4.5l6.75 6.75\"/></svg>`;\nconst ARROW_DOWN = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 4.5v15m0 0 6.75-6.75M12 19.5l-6.75-6.75\"/></svg>`;\nconst ARROW_RIGHT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4.5 12h15m0 0-6.75-6.75M19.5 12l-6.75 6.75\"/></svg>`;\nconst ARROW_TRENDING_UP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 18 9 11.25l4.306 4.306a11.95 11.95 0 0 1 5.814-5.518l2.74-1.22m0 0-5.94-2.281m5.94 2.28-2.28 5.941\"/></svg>`;\nconst ARROW_TRENDING_DOWN = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 6 9 12.75l4.286-4.286a11.948 11.948 0 0 1 4.306 6.43l.776 2.898m0 0 3.182-5.511m-3.182 5.511-5.511-3.181\"/></svg>`;\nconst STAR_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006Z\" clip-rule=\"evenodd\"/></svg>`;\nconst STAR_OUTLINE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z\"/></svg>`;\nconst CIRCLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8\"/></svg>`;\nconst FUNNEL = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z\"/></svg>`;\nconst ARROW_DOWN_TRAY = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3\"/></svg>`;\nconst ARROW_UP_TRAY = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5\"/></svg>`;\nconst CHAT_BUBBLE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 0 1 1.037-.443 48.282 48.282 0 0 0 5.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z\"/></svg>`;\nconst ROCKET_LAUNCH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.59 14.37a6 6 0 0 1-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 0 0 6.16-12.12A14.98 14.98 0 0 0 9.631 8.41m5.96 5.96a14.926 14.926 0 0 1-5.841 2.58m-.119-8.54a6 6 0 0 0-7.381 5.84h4.8m2.581-5.84a14.927 14.927 0 0 0-2.58 5.84m2.699 2.7c-.103.021-.207.041-.311.06a15.09 15.09 0 0 1-2.448-2.448 14.9 14.9 0 0 1 .06-.312m-2.24 2.39a4.493 4.493 0 0 0-1.757 4.306 4.493 4.493 0 0 0 4.306-1.758M16.5 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z\"/></svg>`;\nconst KEY = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z\"/></svg>`;\nconst FIRE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.362 5.214A8.252 8.252 0 0 1 12 21 8.25 8.25 0 0 1 6.038 7.047 8.287 8.287 0 0 0 9 9.601a8.983 8.983 0 0 1 3.361-6.867 8.21 8.21 0 0 0 3 2.48Z\"/><path d=\"M12 18a3.75 3.75 0 0 0 .495-7.468 5.99 5.99 0 0 0-1.925 3.547 5.975 5.975 0 0 1-2.133-1.001A3.75 3.75 0 0 0 12 18Z\"/></svg>`;\nconst COG_6_TOOTH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z\"/><path d=\"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"/></svg>`;\nconst ENVELOPE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75\"/></svg>`;\nconst LIGHT_BULB = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18\"/></svg>`;\nconst USERS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z\"/></svg>`;\nconst HEART = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z\"/></svg>`;\nconst HOME = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25\"/></svg>`;\nconst CHART_BAR = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z\"/></svg>`;\nconst SCISSORS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.848 8.25l1.536.887M7.848 8.25a3 3 0 1 1-5.196-3 3 3 0 0 1 5.196 3Zm1.536.887a2.165 2.165 0 0 1 1.083 1.839c.005.351.054.695.14 1.024M9.384 9.137l2.077 1.199M7.848 15.75l1.536-.887m-1.536.887a3 3 0 1 1-5.196 3 3 3 0 0 1 5.196-3Zm1.536-.887a2.165 2.165 0 0 0 1.083-1.838c.005-.352.054-.695.14-1.025m-1.223 2.863 2.077-1.199m0-3.328a4.323 4.323 0 0 1 2.068-1.379l5.325-1.628a4.5 4.5 0 0 1 2.48-.044l.803.215-7.794 4.5m-2.882-.375a4.33 4.33 0 0 0 .655 3.736m2.227-3.361 7.794 4.5-.802.215a4.5 4.5 0 0 1-2.48-.043l-5.326-1.629a4.324 4.324 0 0 1-2.068-1.379m0 0-2.077 1.199\"/></svg>`;\nconst USER = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z\"/></svg>`;\nconst CLIPBOARD = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184\"/></svg>`;\nconst BUG_ANT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082\"/></svg>`;\nconst CALENDAR_DAYS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5\"/></svg>`;\nconst SPARKLES = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z\"/></svg>`;\nconst BELL_ALERT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5\"/></svg>`;\nconst CUBE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9\"/></svg>`;\nconst BANKNOTES = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"/></svg>`;\nconst CAKE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 8.25v-1.5m0 1.5c-1.355 0-2.697.056-4.024.166C6.845 8.51 6 9.473 6 10.608v2.513m6-4.871c1.355 0 2.697.056 4.024.166C17.155 8.51 18 9.473 18 10.608v2.513M15 8.25v-1.5m-6 1.5v-1.5m12 9.75-1.5.75a3.354 3.354 0 0 1-3 0 3.354 3.354 0 0 0-3 0 3.354 3.354 0 0 1-3 0 3.354 3.354 0 0 0-3 0 3.354 3.354 0 0 1-3 0L3 16.5m15-3.379a48.474 48.474 0 0 0-6-.371c-2.032 0-4.034.126-6 .371m12 0c.39.049.777.102 1.163.16 1.07.16 1.837 1.094 1.837 2.175v5.169c0 .621-.504 1.125-1.125 1.125H4.125A1.125 1.125 0 0 1 3 20.625v-5.17c0-1.08.768-2.014 1.837-2.174A47.78 47.78 0 0 1 6 13.12\"/></svg>`;\nconst PAINT_BRUSH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42\"/></svg>`;\nconst GIFT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H4.5a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z\"/></svg>`;\nconst FOLDER = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z\"/></svg>`;\nconst DOCUMENT_TEXT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z\"/></svg>`;\nconst BELL = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0\"/></svg>`;\nconst LINK = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244\"/></svg>`;\nconst PHONE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z\"/></svg>`;\nconst COMPUTER_DESKTOP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25\"/></svg>`;\nconst MUSICAL_NOTE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 9 10.5-3m0 6.553v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 1 1-.99-3.467l2.31-.66a2.25 2.25 0 0 0 1.632-2.163Zm0 0V2.25L9 5.25v10.303m0 0v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 0 1-.99-3.467l2.31-.66A2.25 2.25 0 0 0 9 15.553Z\"/></svg>`;\nconst TABLE_CELLS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m8.625 1.125c0 .621-.504 1.125-1.125 1.125h-7.5\"/></svg>`;\nconst MINUS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M5 12h14\"/></svg>`;\nconst LOCK_CLOSED = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z\"/></svg>`;\nconst ARROWS_POINTING_OUT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15\"/></svg>`;\nconst EYE_SLASH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88\"/></svg>`;\nconst MAP_PIN = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"/><path d=\"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z\"/></svg>`;\nconst ARROWS_RIGHT_LEFT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5\"/></svg>`;\nconst PAPER_CLIP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13\"/></svg>`;\n/** Small lookup for named access from template-string paths. */\nconst ICONS = {\n 'info-circle': INFO_CIRCLE_SOLID,\n 'check-circle': CHECK_CIRCLE_SOLID,\n 'exclamation-triangle': EXCLAMATION_TRIANGLE_SOLID,\n 'x-circle': X_CIRCLE_SOLID,\n 'x-mark': X_MARK,\n 'chevron-down': CHEVRON_DOWN,\n 'chevron-up': CHEVRON_UP,\n 'chevron-right': CHEVRON_RIGHT,\n 'chevron-left': CHEVRON_LEFT,\n 'check': CHECK,\n 'magnifying-glass': MAGNIFYING_GLASS,\n 'search': MAGNIFYING_GLASS, // common alias (table toolbar, inputs)\n 'bars-3': BARS_3,\n 'photo': PHOTO,\n 'ellipsis-horizontal': ELLIPSIS_HORIZONTAL,\n 'trash': TRASH,\n 'plus': PLUS,\n 'camera': CAMERA,\n 'pencil': PENCIL,\n 'arrow-up': ARROW_UP,\n 'arrow-down': ARROW_DOWN,\n 'arrow-right': ARROW_RIGHT,\n 'arrow-trending-up': ARROW_TRENDING_UP,\n 'arrow-trending-down': ARROW_TRENDING_DOWN,\n 'star': STAR_SOLID,\n 'star-outline': STAR_OUTLINE,\n 'circle': CIRCLE_SOLID,\n 'paper-clip': PAPER_CLIP,\n 'paper-airplane': PAPER_AIRPLANE_SOLID,\n 'arrow-down-tray': ARROW_DOWN_TRAY,\n 'arrow-up-tray': ARROW_UP_TRAY,\n 'chat-bubble': CHAT_BUBBLE,\n 'rocket-launch': ROCKET_LAUNCH,\n 'key': KEY,\n 'arrows-right-left': ARROWS_RIGHT_LEFT,\n 'arrows-pointing-out': ARROWS_POINTING_OUT,\n 'eye-slash': EYE_SLASH,\n 'map-pin': MAP_PIN,\n 'fire': FIRE,\n 'cog-6-tooth': COG_6_TOOTH,\n 'settings': COG_6_TOOTH, // common alias\n 'envelope': ENVELOPE,\n 'light-bulb': LIGHT_BULB,\n 'users': USERS,\n 'heart': HEART,\n 'home': HOME,\n 'chart-bar': CHART_BAR,\n 'scissors': SCISSORS,\n 'user': USER,\n 'clipboard': CLIPBOARD,\n 'bug-ant': BUG_ANT,\n 'calendar-days': CALENDAR_DAYS,\n 'sparkles': SPARKLES,\n 'bell-alert': BELL_ALERT,\n 'cube': CUBE,\n 'banknotes': BANKNOTES,\n 'cake': CAKE,\n 'paint-brush': PAINT_BRUSH,\n 'gift': GIFT,\n 'folder': FOLDER,\n 'document-text': DOCUMENT_TEXT,\n 'bell': BELL,\n 'link': LINK,\n 'phone': PHONE,\n 'computer-desktop': COMPUTER_DESKTOP,\n 'musical-note': MUSICAL_NOTE,\n 'lock-closed': LOCK_CLOSED,\n 'table-cells': TABLE_CELLS,\n 'minus': MINUS,\n};\n\nexport { ARROWS_POINTING_OUT, ARROWS_RIGHT_LEFT, ARROW_DOWN, ARROW_DOWN_TRAY, ARROW_RIGHT, ARROW_TRENDING_DOWN, ARROW_TRENDING_UP, ARROW_UP, ARROW_UP_TRAY, BANKNOTES, BARS_3, BELL, BELL_ALERT, BUG_ANT, CAKE, CALENDAR_DAYS, CAMERA, CHART_BAR, CHAT_BUBBLE, CHECK, CHECK_CIRCLE_SOLID, CHEVRON_DOWN, CHEVRON_LEFT, CHEVRON_RIGHT, CHEVRON_UP, CIRCLE_SOLID, CLIPBOARD, COG_6_TOOTH, COMPUTER_DESKTOP, CUBE, DOCUMENT_TEXT, ELLIPSIS_HORIZONTAL, ENVELOPE, EXCLAMATION_TRIANGLE_SOLID, EYE_SLASH, FIRE, FOLDER, FUNNEL, GIFT, HEART, HOME, ICONS, INFO_CIRCLE_SOLID, KEY, LIGHT_BULB, LINK, LOCK_CLOSED, MAGNIFYING_GLASS, MAP_PIN, MINUS, MUSICAL_NOTE, PAINT_BRUSH, PAPER_AIRPLANE_SOLID, PAPER_CLIP, PENCIL, PHONE, PHOTO, PLUS, ROCKET_LAUNCH, SCISSORS, SPARKLES, STAR_OUTLINE, STAR_SOLID, TABLE_CELLS, TRASH, USER, USERS, X_CIRCLE_SOLID, X_MARK };\n//# sourceMappingURL=index.js.map\n","import { html, unsafeHTML } from 'snice';\nimport { ICONS } from './icons/index.js';\n\n/**\n * Reflect only actual string values across a string attribute boundary.\n * Public component properties remain typed JavaScript inputs, so hostile or\n * accidental object values must not be coerced by calling user code.\n */\nconst strictStringAttributeConverter = {\n toAttribute(value) {\n return typeof value === 'string' ? value : null;\n }\n};\n/**\n * Classify a consumer-supplied icon value.\n *\n * This is the single source of truth for icon resolution. `renderIcon` uses it\n * for declarative rendering; components that build DOM imperatively (nav) use\n * it directly, so both paths agree on what counts as an image, a registry\n * name, or plain text.\n */\nfunction classifyIcon(icon) {\n if (icon.startsWith('img://'))\n return { kind: 'img', value: icon.slice(6) };\n if (icon.startsWith('text://'))\n return { kind: 'text', value: icon.slice(7) };\n // URL-shaped, or a filename with an image extension (an optional query\n // string is allowed so cache-busted paths still resolve as images).\n const isUrl = /^(https?:\\/\\/|\\/|\\.\\/|\\.\\.\\/|data:)/.test(icon);\n const isImageFile = /^[^:]*\\w\\.(svg|png|jpe?g|jfif|pjp|gif|webp|avif|jxl|ico|cur|bmp|tiff?|heic|heif|apng)(\\?.*)?$/i.test(icon);\n if (isUrl || isImageFile)\n return { kind: 'img', value: icon };\n if (ICONS[icon])\n return { kind: 'registry', value: icon };\n return { kind: 'text', value: icon };\n}\n/**\n * Detects icon type and returns appropriate template\n *\n * Scheme overrides:\n * - img://path -> forces <img> element\n * - text://content -> forces text content\n *\n * Auto-detection (when no scheme):\n * - URLs (http://, https://, /, ./, ../, data:) -> <img>\n * - Image extensions (svg, png, jpg, jpeg, jfif, pjp, gif, webp, avif, jxl,\n * ico, cur, bmp, tif, tiff, heic, heif, apng) -> <img>\n * - Everything else -> span with text content (emoji, plain text)\n *\n * ⚠️ \"home\" or \"settings\" renders as PLAIN TEXT, not a Material icon.\n * For Material Symbols, use the icon slot instead:\n * <span slot=\"icon\" class=\"material-symbols-outlined\">home</span>\n *\n * Examples:\n * - \"/path/icon.svg\" -> <img>\n * - \"icon.png\" -> <img>\n * - \"img://filename\" -> <img> (forced)\n * - \"🏠\" -> <span> text (emoji)\n * - \"home\" -> <span> text (plain text, NOT a Material icon)\n * - \"text:///not/a/path\" -> <span> text (forced)\n */\nfunction renderIcon(icon, className = 'icon') {\n if (!icon)\n return html ``;\n const { kind, value } = classifyIcon(icon);\n if (kind === 'img') {\n return html `<img class=\"${className}\" src=\"${value}\" alt=\"\" part=\"icon\" />`;\n }\n // Built-in SVG registry (components/icons) — named icons resolve here\n // BEFORE the font-ligature fallback. Without this, names like 'search'\n // render as literal text unless an external icon font is loaded.\n if (kind === 'registry') {\n return html `<span class=\"${className}\" part=\"icon\">${unsafeHTML(ICONS[value])}</span>`;\n }\n // Default: text content (emoji, font icon ligature names)\n // All content is escaped - no HTML injection possible\n // Detect ligature icon names (lowercase words with underscores, e.g. \"search\", \"check_circle\")\n // vs emoji/other text — apply --snice-icon-font (defaults to Material Symbols Outlined)\n if (/^[a-z][a-z0-9_]*$/.test(value)) {\n return html `<span class=\"${className} snice-icon-ligature\" style=\"font-family:var(--snice-icon-font,'Material Symbols Outlined'),sans-serif\" part=\"icon\">${value}</span>`;\n }\n return html `<span class=\"${className}\" part=\"icon\">${value}</span>`;\n}\n/**\n * Fallback accent hues (muted/business tones). Used when CSS vars haven't\n * been applied (test and non-browser environments) or when the 8 accent tokens have\n * been stripped. Keep in lockstep with `theme.css` --snice-color-accent-1..8.\n */\nconst FALLBACK_ACCENTS = [\n 'hsl(214 55% 48%)', 'hsl(27 62% 50%)', 'hsl(160 40% 40%)', 'hsl(275 32% 52%)',\n 'hsl(42 62% 48%)', 'hsl(340 42% 55%)', 'hsl(110 32% 42%)', 'hsl(195 45% 46%)',\n];\n/**\n * Returns the 8-slot accent palette resolved against the current document's\n * CSS variables, with in-process fallback for non-browser contexts. Data-vis\n * components call this instead of hard-coding color arrays so themes flow\n * through automatically.\n *\n * The returned strings are safe for `canvas.fillStyle`, `svg fill`, or\n * inline `style` — they're either a `hsl(...)` literal or whatever the\n * consumer set as `--snice-color-accent-N`.\n */\nfunction getAccentPalette(root) {\n if (typeof getComputedStyle !== 'function')\n return FALLBACK_ACCENTS;\n const target = root ?? document.documentElement;\n const cs = getComputedStyle(target);\n return FALLBACK_ACCENTS.map((fallback, i) => {\n const v = cs.getPropertyValue(`--snice-color-accent-${i + 1}`).trim();\n return v || fallback;\n });\n}\n/**\n * Parses a CSS color string into sRGB components in [0,1]. Handles `rgb()`,\n * `rgba()`, `hsl()`, `hsla()`, and `#hex`. Returns null if unparseable.\n */\nfunction parseCssColor(value) {\n if (!value)\n return null;\n const s = value.trim();\n // Hex: #RGB #RRGGBB #RGBA #RRGGBBAA\n if (s[0] === '#') {\n const hex = s.slice(1);\n const norm = hex.length === 3 || hex.length === 4\n ? hex.slice(0, 3).split('').map(c => c + c).join('')\n : hex.slice(0, 6);\n if (norm.length !== 6)\n return null;\n const n = parseInt(norm, 16);\n return [((n >> 16) & 255) / 255, ((n >> 8) & 255) / 255, (n & 255) / 255];\n }\n // rgb() / rgba()\n const rgbMatch = s.match(/^rgba?\\(\\s*([\\d.]+)[,\\s]+([\\d.]+)[,\\s]+([\\d.]+)/i);\n if (rgbMatch) {\n return [+rgbMatch[1] / 255, +rgbMatch[2] / 255, +rgbMatch[3] / 255];\n }\n // hsl() / hsla() — quick conversion via an offscreen element for accuracy\n // (skip manual HSL→RGB to keep this helper small; browsers will resolve\n // any hsl() via getComputedStyle on the element anyway).\n if (/^hsla?\\(/i.test(s) && typeof document !== 'undefined') {\n const probe = document.createElement('span');\n probe.style.color = s;\n document.body.appendChild(probe);\n const resolved = getComputedStyle(probe).color;\n probe.remove();\n return parseCssColor(resolved);\n }\n return null;\n}\n/**\n * Relative luminance per WCAG 2.x, input in sRGB [0,1].\n */\nfunction luminance(rgb) {\n const lin = rgb.map(c => c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4));\n return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];\n}\n/**\n * Picks a readable text color for the given `bg`, choosing between the\n * theme's existing text tokens. Light bg → `--snice-color-text` (dark text);\n * dark bg → `--snice-color-text-inverse` (light text). Falls back to inverse\n * for unparseable bg (safe default for colored fills).\n *\n * Used by badge/chip (and anything else pairing a colored fill with a label)\n * so the text stays legible regardless of theme — without hardcoding #fff.\n */\nfunction pickContrastColor(bg) {\n const rgb = parseCssColor(bg);\n if (!rgb)\n return 'var(--snice-color-text-inverse)';\n // Threshold 0.55 keeps saturated blues/greens (luminance ~0.2) using the\n // inverse (light) text, and pastels/lightened fills (> 0.55) using the\n // main text token (dark).\n return luminance(rgb) > 0.55\n ? 'var(--snice-color-text)'\n : 'var(--snice-color-text-inverse)';\n}\nconst themeListeners = new Set();\nlet themeObserver = null;\nfunction onThemeChange(fn) {\n if (typeof document === 'undefined')\n return () => { };\n themeListeners.add(fn);\n if (!themeObserver) {\n themeObserver = new MutationObserver(() => {\n for (const listener of themeListeners) {\n try {\n listener();\n }\n catch { }\n }\n });\n themeObserver.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['data-theme', 'class', 'data-theme-variant'],\n });\n }\n return () => {\n themeListeners.delete(fn);\n if (themeListeners.size === 0 && themeObserver) {\n themeObserver.disconnect();\n themeObserver = null;\n }\n };\n}\n\nexport { FALLBACK_ACCENTS, classifyIcon, getAccentPalette, onThemeChange, pickContrastColor, renderIcon, strictStringAttributeConverter };\n//# sourceMappingURL=utils.js.map\n","import { __runInitializers, __esDecorate } from 'tslib';\nimport { element, property, query, render, styles, ready, dispose, watch, on, dispatch, html, css, unsafeHTML } from 'snice';\nimport { renderIcon } from '../utils.js';\nimport { INFO_CIRCLE_SOLID, X_CIRCLE_SOLID, EXCLAMATION_TRIANGLE_SOLID, CHECK_CIRCLE_SOLID } from '../icons/index.js';\n\nvar cssContent = \":host([hidden]){display:none}:host{display:block;--alert-padding:var(--snice-spacing-sm, 0.75rem) var(--snice-spacing-md, 1rem);--alert-border-radius:var(--snice-border-radius-lg, 0.5rem);--alert-font-size:var(--snice-font-size-sm, 0.875rem);--alert-icon-size:1.25rem;--alert-border-width:1px;--alert-bg:var(--snice-color-surface, rgb(255 255 255));--alert-border-color:var(--snice-color-border, rgb(226 226 226));--alert-text-color:var(--snice-color-text, rgb(23 23 23));font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)}.alert{display:flex;align-items:flex-start;gap:var(--snice-spacing-sm,.75rem);padding:var(--alert-padding);border-radius:var(--alert-border-radius);font-size:var(--alert-font-size);line-height:var(--snice-line-height-normal, 1.5);border:var(--alert-border-width) solid var(--alert-border-color);background:var(--alert-bg);color:var(--alert-text-color);position:relative;animation:slideIn var(--snice-transition-medium,250ms) ease}.alert-region{display:contents}.alert--hidden{display:none}@keyframes slideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}.alert--hiding{animation:slideOut var(--snice-transition-medium,250ms) ease forwards}:host([variant=info]){--alert-bg:var(--snice-color-primary-subtle, hsl(214 100% 97%));--alert-border-color:var(--snice-color-primary-subtle-hover, hsl(214 95% 93%));--alert-text-color:var(--snice-color-text, rgb(23 23 23))}:host([variant=info]) .alert-icon{color:var(--snice-color-primary,rgb(37 99 235))}:host([variant=success]){--alert-bg:var(--snice-color-success-subtle, hsl(138 76% 97%));--alert-border-color:var(--snice-color-success-subtle-hover, hsl(141 84% 93%));--alert-text-color:var(--snice-color-text, rgb(23 23 23))}:host([variant=success]) .alert-icon{color:var(--snice-color-success,rgb(22 163 74))}:host([variant=warning]){--alert-bg:var(--snice-color-warning-subtle, hsl(55 92% 95%));--alert-border-color:var(--snice-color-warning-subtle-hover, hsl(55 97% 88%));--alert-text-color:var(--snice-color-text, rgb(23 23 23))}:host([variant=warning]) .alert-icon{color:var(--snice-color-warning,rgb(202 138 4))}:host([variant=error]){--alert-bg:var(--snice-color-danger-subtle, hsl(0 86% 97%));--alert-border-color:var(--snice-color-danger-subtle-hover, hsl(0 93% 94%));--alert-text-color:var(--snice-color-text, rgb(23 23 23))}:host([variant=error]) .alert-icon{color:var(--snice-color-danger,rgb(220 38 38))}:host([appearance=accent]) .alert{background:var(--snice-color-surface-container-high,transparent);border:1px solid var(--snice-color-border-subtle,var(--snice-color-border,rgb(226 226 226)));border-left:4px solid var(--alert-border-color);color:var(--snice-color-text,rgb(23 23 23))}:host([appearance=accent][variant=info]) .alert{border-left-color:var(--snice-color-primary,rgb(37 99 235))}:host([appearance=accent][variant=success]) .alert{border-left-color:var(--snice-color-success,rgb(22 163 74))}:host([appearance=accent][variant=warning]) .alert{border-left-color:var(--snice-color-warning,rgb(202 138 4))}:host([appearance=accent][variant=error]) .alert{border-left-color:var(--snice-color-danger,rgb(220 38 38))}:host([appearance=accent][variant=info]) .alert-icon{color:var(--snice-color-primary,rgb(37 99 235))}:host([appearance=accent][variant=success]) .alert-icon{color:var(--snice-color-success,rgb(22 163 74))}:host([appearance=accent][variant=warning]) .alert-icon{color:var(--snice-color-warning,rgb(202 138 4))}:host([appearance=accent][variant=error]) .alert-icon{color:var(--snice-color-danger,rgb(220 38 38))}.alert-icon{flex-shrink:0;width:var(--alert-icon-size);height:var(--alert-icon-size);display:flex;align-items:center;justify-content:center;margin-top:.125rem}.alert-icon svg{width:100%;height:100%}.alert-icon ::slotted(*){display:flex;align-items:center;justify-content:center;width:var(--alert-icon-size);height:var(--alert-icon-size);font-size:var(--alert-icon-size);line-height:1}.alert-icon ::slotted(svg){width:var(--alert-icon-size);height:var(--alert-icon-size)}.alert-icon ::slotted(img){width:var(--alert-icon-size);height:var(--alert-icon-size);object-fit:contain}.alert-icon-content{width:var(--alert-icon-size);height:var(--alert-icon-size);display:block;color:inherit}.alert-content{flex:1;min-width:0}.alert-title{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-weight:var(--snice-font-weight-semibold,600);margin-bottom:var(--snice-spacing-2xs,.25rem)}.alert-title:empty{display:none}.alert-description{color:inherit;opacity:.9}.alert-dismiss{flex-shrink:0;align-self:center;margin-right:-.375rem;width:2rem;height:2rem;padding:0;background:0 0;border:none;cursor:pointer;opacity:.6;transition:opacity var(--snice-transition-fast, 150ms) ease,background-color var(--snice-transition-fast, 150ms) ease;border-radius:var(--snice-border-radius-md,.25rem);display:flex;align-items:center;justify-content:center;color:inherit}.alert-dismiss:hover{opacity:1;background-color:var(--snice-color-overlay-hover,hsl(0 0% 0% / .04))}.alert-dismiss:focus-visible{outline:currentColor solid 2px;outline-offset:1px;opacity:1}.alert-dismiss svg{width:1rem;height:1rem}:host([size=small]){--alert-padding:var(--snice-spacing-xs, 0.5rem) var(--snice-spacing-sm, 0.75rem);--alert-font-size:var(--snice-font-size-xs, 0.75rem);--alert-icon-size:1rem;--alert-border-radius:var(--snice-border-radius-md, 0.25rem)}:host([size=large]){--alert-padding:var(--snice-spacing-md, 1rem) 1.25rem;--alert-font-size:var(--snice-font-size-md, 1rem);--alert-icon-size:1.5rem;--alert-border-radius:var(--snice-border-radius-lg, 0.5rem)}@media (prefers-reduced-motion:reduce){.alert,.alert--hiding{animation-duration:0s}.alert-dismiss{transition-duration:0s}}\";\n\nlet SniceAlert = (() => {\n let _classDecorators = [element('snice-alert')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _appearance_decorators;\n let _appearance_initializers = [];\n let _appearance_extraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _dismissible_decorators;\n let _dismissible_initializers = [];\n let _dismissible_extraInitializers = [];\n let _icon_decorators;\n let _icon_initializers = [];\n let _icon_extraInitializers = [];\n let _duration_decorators;\n let _duration_initializers = [];\n let _duration_extraInitializers = [];\n let _alertElement_decorators;\n let _alertElement_initializers = [];\n let _alertElement_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n let _init_decorators;\n let _cleanup_decorators;\n let _handleTitleChange_decorators;\n let _handleDurationChange_decorators;\n let _pauseCountdown_decorators;\n let _resumeCountdown_decorators;\n let _handleDismiss_decorators;\n let _dispatchAlertHidden_decorators;\n let _dispatchAlertShown_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n constructor() {\n super(...arguments);\n this.variant = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _variant_initializers, 'info'));\n this.size = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.appearance = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _appearance_initializers, 'filled'));\n // No reflection: a `title` attribute on the host would double as a native\n // browser tooltip over the whole alert.\n this.title = (__runInitializers(this, _appearance_extraInitializers), __runInitializers(this, _title_initializers, ''));\n this.dismissible = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _dismissible_initializers, false));\n this.icon = (__runInitializers(this, _dismissible_extraInitializers), __runInitializers(this, _icon_initializers, ''));\n // Auto-dismiss after this many milliseconds; 0 disables. The countdown\n // pauses while the pointer is over the alert.\n this.duration = (__runInitializers(this, _icon_extraInitializers), __runInitializers(this, _duration_initializers, 0));\n this.alertElement = (__runInitializers(this, _duration_extraInitializers), __runInitializers(this, _alertElement_initializers, void 0));\n this.isHidden = (__runInitializers(this, _alertElement_extraInitializers), false);\n this.dismissTimer = null;\n this.countdownStartedAt = 0;\n this.countdownRemaining = 0;\n }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _variant_decorators = [property({})];\n _size_decorators = [property({})];\n _appearance_decorators = [property({})];\n _title_decorators = [property({ reflect: false })];\n _dismissible_decorators = [property({ type: Boolean, })];\n _icon_decorators = [property({})];\n _duration_decorators = [property({ type: Number })];\n _alertElement_decorators = [query('.alert')];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n _init_decorators = [ready()];\n _cleanup_decorators = [dispose()];\n _handleTitleChange_decorators = [watch('title')];\n _handleDurationChange_decorators = [watch('duration', { immediate: false })];\n _pauseCountdown_decorators = [on('mouseenter')];\n _resumeCountdown_decorators = [on('mouseleave')];\n _handleDismiss_decorators = [dispatch('alert-dismiss')];\n _dispatchAlertHidden_decorators = [dispatch('alert-hidden')];\n _dispatchAlertShown_decorators = [dispatch('alert-shown')];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _init_decorators, { kind: \"method\", name: \"init\", static: false, private: false, access: { has: obj => \"init\" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _cleanup_decorators, { kind: \"method\", name: \"cleanup\", static: false, private: false, access: { has: obj => \"cleanup\" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleTitleChange_decorators, { kind: \"method\", name: \"handleTitleChange\", static: false, private: false, access: { has: obj => \"handleTitleChange\" in obj, get: obj => obj.handleTitleChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleDurationChange_decorators, { kind: \"method\", name: \"handleDurationChange\", static: false, private: false, access: { has: obj => \"handleDurationChange\" in obj, get: obj => obj.handleDurationChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _pauseCountdown_decorators, { kind: \"method\", name: \"pauseCountdown\", static: false, private: false, access: { has: obj => \"pauseCountdown\" in obj, get: obj => obj.pauseCountdown }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _resumeCountdown_decorators, { kind: \"method\", name: \"resumeCountdown\", static: false, private: false, access: { has: obj => \"resumeCountdown\" in obj, get: obj => obj.resumeCountdown }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleDismiss_decorators, { kind: \"method\", name: \"handleDismiss\", static: false, private: false, access: { has: obj => \"handleDismiss\" in obj, get: obj => obj.handleDismiss }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchAlertHidden_decorators, { kind: \"method\", name: \"dispatchAlertHidden\", static: false, private: false, access: { has: obj => \"dispatchAlertHidden\" in obj, get: obj => obj.dispatchAlertHidden }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchAlertShown_decorators, { kind: \"method\", name: \"dispatchAlertShown\", static: false, private: false, access: { has: obj => \"dispatchAlertShown\" in obj, get: obj => obj.dispatchAlertShown }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _variant_decorators, { kind: \"field\", name: \"variant\", static: false, private: false, access: { has: obj => \"variant\" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _appearance_decorators, { kind: \"field\", name: \"appearance\", static: false, private: false, access: { has: obj => \"appearance\" in obj, get: obj => obj.appearance, set: (obj, value) => { obj.appearance = value; } }, metadata: _metadata }, _appearance_initializers, _appearance_extraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _dismissible_decorators, { kind: \"field\", name: \"dismissible\", static: false, private: false, access: { has: obj => \"dismissible\" in obj, get: obj => obj.dismissible, set: (obj, value) => { obj.dismissible = value; } }, metadata: _metadata }, _dismissible_initializers, _dismissible_extraInitializers);\n __esDecorate(null, null, _icon_decorators, { kind: \"field\", name: \"icon\", static: false, private: false, access: { has: obj => \"icon\" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);\n __esDecorate(null, null, _duration_decorators, { kind: \"field\", name: \"duration\", static: false, private: false, access: { has: obj => \"duration\" in obj, get: obj => obj.duration, set: (obj, value) => { obj.duration = value; } }, metadata: _metadata }, _duration_initializers, _duration_extraInitializers);\n __esDecorate(null, null, _alertElement_decorators, { kind: \"field\", name: \"alertElement\", static: false, private: false, access: { has: obj => \"alertElement\" in obj, get: obj => obj.alertElement, set: (obj, value) => { obj.alertElement = value; } }, metadata: _metadata }, _alertElement_initializers, _alertElement_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n render() {\n const hasIcon = this.icon ? this.icon !== 'none' : this.shouldShowDefaultIcon();\n const classes = [\n 'alert',\n `alert--${this.variant}`,\n `alert--${this.size}`,\n this.isHidden ? 'alert--hidden' : ''\n ].filter(Boolean).join(' ');\n const showDefaultIcon = !this.icon || this.icon === 'none';\n const iconClasses = showDefaultIcon ? 'alert-icon alert-icon--default' : 'alert-icon';\n return html /*html*/ `\n <div class=\"${classes}\" part=\"base\" @animationend=${this.handleAnimationEnd}>\n <div class=\"alert-region\" role=\"alert\" aria-live=\"polite\">\n <if value=\"${hasIcon}\">\n <div class=\"${iconClasses}\" part=\"icon\">\n <slot name=\"icon\">\n ${this.icon ? renderIcon(this.icon, 'alert-icon-content') : this.defaultIconSvg()}\n </slot>\n </div>\n </if>\n <div class=\"alert-content\">\n <if value=\"${this.title}\">\n <div class=\"alert-title\">${this.title}</div>\n </if>\n <div class=\"alert-description\">\n <slot></slot>\n </div>\n </div>\n </div>\n <if value=\"${this.dismissible}\">\n <button class=\"alert-dismiss\" type=\"button\" aria-label=\"Dismiss alert\" @click=${this.handleDismiss}>\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/>\n </svg>\n </button>\n </if>\n </div>\n `;\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n shouldShowDefaultIcon() {\n // Show default icons for variants unless explicitly disabled\n return this.icon !== 'none';\n }\n init() {\n this.stripNativeTooltip();\n this.startCountdown();\n }\n cleanup() {\n this.clearCountdown();\n }\n // A `title` attribute on the host paints a native tooltip over the whole\n // alert. Accept it as input, then remove it — the property keeps the value.\n handleTitleChange() {\n this.stripNativeTooltip();\n }\n stripNativeTooltip() {\n if (!this.hasAttribute('title'))\n return;\n const value = this.title || this.getAttribute('title') || '';\n this.removeAttribute('title');\n if (this.title !== value) {\n this.title = value;\n }\n }\n handleDurationChange() {\n this.startCountdown();\n }\n pauseCountdown() {\n if (this.dismissTimer === null)\n return;\n clearTimeout(this.dismissTimer);\n this.dismissTimer = null;\n this.countdownRemaining = Math.max(0, this.countdownRemaining - (Date.now() - this.countdownStartedAt));\n }\n resumeCountdown() {\n if (this.duration > 0 && !this.isHidden && this.countdownRemaining > 0) {\n this.armCountdown(this.countdownRemaining);\n }\n }\n startCountdown() {\n this.clearCountdown();\n if (this.duration > 0 && !this.isHidden) {\n this.armCountdown(this.duration);\n }\n }\n armCountdown(ms) {\n this.countdownStartedAt = Date.now();\n this.countdownRemaining = ms;\n this.dismissTimer = setTimeout(() => {\n this.dismissTimer = null;\n this.hide();\n }, ms);\n }\n clearCountdown() {\n if (this.dismissTimer !== null) {\n clearTimeout(this.dismissTimer);\n this.dismissTimer = null;\n }\n this.countdownRemaining = 0;\n }\n /**\n * Default icons sourced from the central Heroicons module. Consumers can\n * override via `<slot name=\"icon\">...</slot>` or the `icon` prop; this\n * fallback is only rendered when neither is supplied.\n */\n defaultIconSvg() {\n const svg = {\n success: CHECK_CIRCLE_SOLID,\n warning: EXCLAMATION_TRIANGLE_SOLID,\n error: X_CIRCLE_SOLID,\n info: INFO_CIRCLE_SOLID,\n }[this.variant] ?? INFO_CIRCLE_SOLID;\n return html /*html*/ `<span class=\"alert-icon-content\" aria-hidden=\"true\">${unsafeHTML(svg)}</span>`;\n }\n handleDismiss() {\n this.hide();\n return {\n variant: this.variant,\n title: this.title\n };\n }\n handleAnimationEnd(event) {\n if (event.animationName === 'slideOut') {\n this.isHidden = true;\n if (this.alertElement) {\n this.alertElement.classList.add('alert--hidden');\n this.alertElement.classList.remove('alert--hiding');\n }\n this.dispatchAlertHidden();\n }\n }\n dispatchAlertHidden() {\n return {\n variant: this.variant,\n title: this.title\n };\n }\n dispatchAlertShown() {\n return {\n variant: this.variant,\n title: this.title\n };\n }\n show() {\n this.isHidden = false;\n if (this.alertElement) {\n this.alertElement.classList.remove('alert--hidden', 'alert--hiding');\n }\n this.startCountdown();\n this.dispatchAlertShown();\n }\n hide() {\n this.clearCountdown();\n if (this.alertElement && !this.isHidden) {\n this.alertElement.classList.add('alert--hiding');\n }\n }\n });\n return _classThis;\n})();\n\nexport { SniceAlert };\n//# sourceMappingURL=snice-alert.js.map\n","import { __esDecorate, __runInitializers } from 'tslib';\nimport { element, state, property, query, render, styles, html, isSafeUrl, css } from 'snice';\nimport { strictStringAttributeConverter, renderIcon } from '../utils.js';\nimport { findFormOwner } from '../form-control-validity.js';\nimport '../icons/index.js';\n\nvar cssContent = \":host([hidden]){display:none}:host{display:inline-block;position:relative;width:auto;cursor:pointer}:host([disabled]){cursor:not-allowed}:host([justify-text=start]) .button{justify-content:flex-start}:host([justify-text=end]) .button{justify-content:flex-end}:host([justify-text=center]) .button{justify-content:center}.button{display:inline-flex;align-items:center;justify-content:center;width:100%;border:1px solid;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-weight:var(--snice-font-weight-medium,500);text-decoration:none;user-select:none;white-space:nowrap;vertical-align:middle;padding:0;box-shadow:var(--snice-shadow-xs,0 1px 2px 0 rgb(0 0 0 / .03));transition:color var(--snice-transition-fast, 150ms) var(--snice-ease-out, cubic-bezier(.22,1,.36,1)),background-color var(--snice-transition-fast, 150ms) var(--snice-ease-out, cubic-bezier(.22,1,.36,1)),border-color var(--snice-transition-fast, 150ms) var(--snice-ease-out, cubic-bezier(.22,1,.36,1)),box-shadow var(--snice-transition-fast, 150ms) var(--snice-ease-out, cubic-bezier(.22,1,.36,1)),transform 180ms var(--snice-ease-spring, cubic-bezier(.34,1.56,.64,1));cursor:inherit;position:relative}.button::before{content:'';position:absolute;inset:0;border-radius:inherit;background:var(--snice-gradient-convex,none);pointer-events:none}.button:active:not(.button--disabled){transition:color 50ms var(--snice-ease-out, ease),background-color 50ms var(--snice-ease-out, ease),border-color 50ms var(--snice-ease-out, ease),box-shadow 50ms var(--snice-ease-out, ease),transform 80ms var(--snice-ease-out, ease);transform:translateY(0) scale(.97)}.button:focus-visible{outline:0;box-shadow:0 0 0 var(--snice-focus-ring-width,2px) var(--snice-focus-ring-color,rgb(59 130 246 / .5))}.button--disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.button--small{font-size:var(--snice-font-size-sm, .875rem);height:2rem;padding:0 var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem)}.button--medium{font-size:var(--snice-font-size-md, 1rem);height:2.5rem;padding:0 var(--snice-spacing-md,1rem);border-radius:var(--snice-border-radius-md,.25rem)}.button--large{font-size:var(--snice-font-size-lg, 1.125rem);height:3rem;padding:0 var(--snice-spacing-lg,1.5rem);border-radius:var(--snice-border-radius-md,.25rem)}.button--default{background-color:var(--snice-color-surface,rgb(255 255 255));color:var(--snice-color-text,rgb(23 23 23));border-color:var(--snice-color-border,rgb(226 226 226))}.button--default:hover:not(.button--disabled){background-color:var(--snice-color-surface-container-low,rgb(250 250 250));border-color:var(--snice-color-border-hover,rgb(204 204 204));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--default:active:not(.button--disabled){background-color:var(--snice-color-surface-container,rgb(248 248 248));border-color:var(--snice-color-border-hover,rgb(204 204 204));box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--primary{background-color:var(--snice-color-primary,rgb(37 99 235));color:var(--snice-color-text-inverse,rgb(250 250 250));border-color:var(--snice-color-primary,rgb(37 99 235))}.button--primary:hover:not(.button--disabled){background-color:var(--snice-color-primary-hover,rgb(29 78 216));border-color:var(--snice-color-primary-hover,rgb(29 78 216));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--primary:active:not(.button--disabled){background-color:color-mix(in srgb,var(--snice-color-primary,rgb(37 99 235)) 85%,#fff);border-color:color-mix(in srgb,var(--snice-color-primary,rgb(37 99 235)) 85%,#fff);box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--success{background-color:var(--snice-color-success,rgb(22 163 74));color:var(--snice-color-text-inverse,rgb(250 250 250));border-color:var(--snice-color-success,rgb(22 163 74))}.button--success:hover:not(.button--disabled){background-color:var(--snice-color-success-hover,rgb(21 128 61));border-color:var(--snice-color-success-hover,rgb(21 128 61));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--success:active:not(.button--disabled){background-color:color-mix(in srgb,var(--snice-color-success,rgb(22 163 74)) 85%,#fff);border-color:color-mix(in srgb,var(--snice-color-success,rgb(22 163 74)) 85%,#fff);box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--warning{background-color:var(--snice-color-warning,rgb(202 138 4));color:var(--button-warning-text,rgb(69 26 3));border-color:var(--snice-color-warning,rgb(202 138 4))}.button--warning:hover:not(.button--disabled){background-color:var(--snice-color-warning-hover,rgb(161 98 7));border-color:var(--snice-color-warning-hover,rgb(161 98 7));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--warning:active:not(.button--disabled){background-color:color-mix(in srgb,var(--snice-color-warning,rgb(202 138 4)) 85%,#fff);border-color:color-mix(in srgb,var(--snice-color-warning,rgb(202 138 4)) 85%,#fff);box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--danger{background-color:var(--snice-color-danger,rgb(220 38 38));color:var(--snice-color-text-inverse,rgb(250 250 250));border-color:var(--snice-color-danger,rgb(220 38 38))}.button--danger:hover:not(.button--disabled){background-color:var(--snice-color-danger-hover,rgb(185 28 28));border-color:var(--snice-color-danger-hover,rgb(185 28 28));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--danger:active:not(.button--disabled){background-color:color-mix(in srgb,var(--snice-color-danger,rgb(220 38 38)) 85%,#fff);border-color:color-mix(in srgb,var(--snice-color-danger,rgb(220 38 38)) 85%,#fff);box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--text{background-color:transparent;color:var(--snice-color-primary,rgb(37 99 235));border-color:transparent;box-shadow:none}.button--text::before{display:none}.button--text:hover:not(.button--disabled){background-color:var(--snice-color-primary-alpha,rgb(37 99 235 / .1));color:var(--snice-color-primary-hover,rgb(29 78 216));box-shadow:none;transform:none}.button--text:active:not(.button--disabled){background-color:var(--snice-color-primary-alpha-strong,rgb(37 99 235 / .15));box-shadow:none;transform:none}.button--outline{box-shadow:none}.button--outline::before{display:none}.button--outline.button--default{background-color:transparent;color:var(--snice-color-text,rgb(23 23 23))}.button--outline.button--primary{background-color:transparent;color:var(--snice-color-primary,rgb(37 99 235))}.button--outline.button--success{background-color:transparent;color:var(--snice-color-success,rgb(22 163 74))}.button--outline.button--warning{background-color:transparent;color:var(--snice-color-warning,rgb(202 138 4))}.button--outline.button--danger{background-color:transparent;color:var(--snice-color-danger,rgb(220 38 38))}.button--outline.button--default:hover:not(.button--disabled){background-color:var(--snice-color-surface-hover,rgb(245 245 245));box-shadow:none;transform:none}.button--outline.button--primary:hover:not(.button--disabled){background-color:var(--snice-color-primary-subtle,rgb(239 246 255));color:var(--snice-color-primary-hover,rgb(29 78 216));box-shadow:none;transform:none}.button--outline.button--success:hover:not(.button--disabled){background-color:var(--snice-color-success-subtle,rgb(220 252 231));color:var(--snice-color-success-hover,rgb(21 128 61));box-shadow:none;transform:none}.button--outline.button--warning:hover:not(.button--disabled){background-color:var(--snice-color-warning-subtle,rgb(254 249 195));color:var(--snice-color-warning-hover,rgb(161 98 7));box-shadow:none;transform:none}.button--outline.button--danger:hover:not(.button--disabled){background-color:var(--snice-color-danger-subtle,rgb(254 226 226));color:var(--snice-color-danger-hover,rgb(185 28 28));box-shadow:none;transform:none}.button--outline:active:not(.button--disabled){background-color:var(--snice-color-primary-subtle-hover,var(--snice-color-surface-active,rgb(235 235 235)));box-shadow:none;transform:none}.button--pill{border-radius:var(--snice-border-radius-pill,9999px)}.button--circle{border-radius:var(--snice-border-radius-circle,50%);width:var(--size);padding:0}.button--small.button--circle{--size:2rem}.button--medium.button--circle{--size:2.5rem}.button--large.button--circle{--size:3rem}.button--loading{position:relative;cursor:wait}.button--loading .label{visibility:hidden}.spinner{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:1em;height:1em}.button--loading .spinner{display:block}.spinner::after{content:'';display:block;width:100%;height:100%;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:.6s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.icon-slot{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25em;height:1.25em;line-height:1}.icon-slot:empty{display:none}.icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25em;height:1.25em;line-height:1}.icon img{width:100%;height:100%;object-fit:contain}.icon svg{width:100%;height:100%}.icon-slot ::slotted(*){display:flex;align-items:center;justify-content:center;font-size:1.25em;line-height:1}.icon-slot ::slotted(svg){width:1.25em;height:1.25em}.icon-slot ::slotted(img){width:1.25em;height:1.25em;object-fit:contain}.button--icon-start .icon,.button--icon-start .icon-slot{margin-right:.5em}.button--icon-end .icon,.button--icon-end .icon-slot{margin-left:.5em}.button--circle .icon,.button--circle .icon-slot{margin:0;transform:none;width:auto;height:auto}.button--circle .icon-slot ::slotted(*){font-size:1.25em;line-height:1;display:flex;align-items:center;justify-content:center}.button--circle .icon-slot ::slotted(svg){width:1.25em;height:1.25em}@media (prefers-reduced-motion:reduce){.icon-slot,.spinner,button,button:active{transition-duration:0s!important;animation-duration:0s!important}button:active{transform:none}}\";\n\nlet SniceButton = (() => {\n let _classDecorators = [element('snice-button', { formAssociated: true, delegatesFocus: true })];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _formDisabled_decorators;\n let _formDisabled_initializers = [];\n let _formDisabled_extraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _type_decorators;\n let _type_initializers = [];\n let _type_extraInitializers = [];\n let _disabled_decorators;\n let _disabled_initializers = [];\n let _disabled_extraInitializers = [];\n let _loading_decorators;\n let _loading_initializers = [];\n let _loading_extraInitializers = [];\n let _outline_decorators;\n let _outline_initializers = [];\n let _outline_extraInitializers = [];\n let _pill_decorators;\n let _pill_initializers = [];\n let _pill_extraInitializers = [];\n let _circle_decorators;\n let _circle_initializers = [];\n let _circle_extraInitializers = [];\n let _href_decorators;\n let _href_initializers = [];\n let _href_extraInitializers = [];\n let _target_decorators;\n let _target_initializers = [];\n let _target_extraInitializers = [];\n let _download_decorators;\n let _download_initializers = [];\n let _download_extraInitializers = [];\n let _icon_decorators;\n let _icon_initializers = [];\n let _icon_extraInitializers = [];\n let _iconPlacement_decorators;\n let _iconPlacement_initializers = [];\n let _iconPlacement_extraInitializers = [];\n let _justifyText_decorators;\n let _justifyText_initializers = [];\n let _justifyText_extraInitializers = [];\n let _iconSlotChild_decorators;\n let _iconSlotChild_initializers = [];\n let _iconSlotChild_extraInitializers = [];\n let _button_decorators;\n let _button_initializers = [];\n let _button_extraInitializers = [];\n let _spinner_decorators;\n let _spinner_initializers = [];\n let _spinner_extraInitializers = [];\n let _label_decorators;\n let _label_initializers = [];\n let _label_extraInitializers = [];\n let _iconElement_decorators;\n let _iconElement_initializers = [];\n let _iconElement_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _formDisabled_decorators = [state()];\n _variant_decorators = [property({})];\n _size_decorators = [property({})];\n _type_decorators = [property({})];\n _disabled_decorators = [property({ type: Boolean, })];\n _loading_decorators = [property({ type: Boolean, })];\n _outline_decorators = [property({ type: Boolean, })];\n _pill_decorators = [property({ type: Boolean, })];\n _circle_decorators = [property({ type: Boolean, })];\n _href_decorators = [property({ type: String, converter: strictStringAttributeConverter })];\n _target_decorators = [property({ type: String, })];\n _download_decorators = [property({ type: String, })];\n _icon_decorators = [property({ type: String, })];\n _iconPlacement_decorators = [property({ attribute: 'icon-placement', })];\n _justifyText_decorators = [property({ attribute: 'justify-text' })];\n _iconSlotChild_decorators = [query('[slot=\"icon\"]', { light: true })];\n _button_decorators = [query('.button')];\n _spinner_decorators = [query('.spinner')];\n _label_decorators = [query('.label')];\n _iconElement_decorators = [query('.icon')];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _formDisabled_decorators, { kind: \"field\", name: \"formDisabled\", static: false, private: false, access: { has: obj => \"formDisabled\" in obj, get: obj => obj.formDisabled, set: (obj, value) => { obj.formDisabled = value; } }, metadata: _metadata }, _formDisabled_initializers, _formDisabled_extraInitializers);\n __esDecorate(null, null, _variant_decorators, { kind: \"field\", name: \"variant\", static: false, private: false, access: { has: obj => \"variant\" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _type_decorators, { kind: \"field\", name: \"type\", static: false, private: false, access: { has: obj => \"type\" in obj, get: obj => obj.type, set: (obj, value) => { obj.type = value; } }, metadata: _metadata }, _type_initializers, _type_extraInitializers);\n __esDecorate(null, null, _disabled_decorators, { kind: \"field\", name: \"disabled\", static: false, private: false, access: { has: obj => \"disabled\" in obj, get: obj => obj.disabled, set: (obj, value) => { obj.disabled = value; } }, metadata: _metadata }, _disabled_initializers, _disabled_extraInitializers);\n __esDecorate(null, null, _loading_decorators, { kind: \"field\", name: \"loading\", static: false, private: false, access: { has: obj => \"loading\" in obj, get: obj => obj.loading, set: (obj, value) => { obj.loading = value; } }, metadata: _metadata }, _loading_initializers, _loading_extraInitializers);\n __esDecorate(null, null, _outline_decorators, { kind: \"field\", name: \"outline\", static: false, private: false, access: { has: obj => \"outline\" in obj, get: obj => obj.outline, set: (obj, value) => { obj.outline = value; } }, metadata: _metadata }, _outline_initializers, _outline_extraInitializers);\n __esDecorate(null, null, _pill_decorators, { kind: \"field\", name: \"pill\", static: false, private: false, access: { has: obj => \"pill\" in obj, get: obj => obj.pill, set: (obj, value) => { obj.pill = value; } }, metadata: _metadata }, _pill_initializers, _pill_extraInitializers);\n __esDecorate(null, null, _circle_decorators, { kind: \"field\", name: \"circle\", static: false, private: false, access: { has: obj => \"circle\" in obj, get: obj => obj.circle, set: (obj, value) => { obj.circle = value; } }, metadata: _metadata }, _circle_initializers, _circle_extraInitializers);\n __esDecorate(null, null, _href_decorators, { kind: \"field\", name: \"href\", static: false, private: false, access: { has: obj => \"href\" in obj, get: obj => obj.href, set: (obj, value) => { obj.href = value; } }, metadata: _metadata }, _href_initializers, _href_extraInitializers);\n __esDecorate(null, null, _target_decorators, { kind: \"field\", name: \"target\", static: false, private: false, access: { has: obj => \"target\" in obj, get: obj => obj.target, set: (obj, value) => { obj.target = value; } }, metadata: _metadata }, _target_initializers, _target_extraInitializers);\n __esDecorate(null, null, _download_decorators, { kind: \"field\", name: \"download\", static: false, private: false, access: { has: obj => \"download\" in obj, get: obj => obj.download, set: (obj, value) => { obj.download = value; } }, metadata: _metadata }, _download_initializers, _download_extraInitializers);\n __esDecorate(null, null, _icon_decorators, { kind: \"field\", name: \"icon\", static: false, private: false, access: { has: obj => \"icon\" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);\n __esDecorate(null, null, _iconPlacement_decorators, { kind: \"field\", name: \"iconPlacement\", static: false, private: false, access: { has: obj => \"iconPlacement\" in obj, get: obj => obj.iconPlacement, set: (obj, value) => { obj.iconPlacement = value; } }, metadata: _metadata }, _iconPlacement_initializers, _iconPlacement_extraInitializers);\n __esDecorate(null, null, _justifyText_decorators, { kind: \"field\", name: \"justifyText\", static: false, private: false, access: { has: obj => \"justifyText\" in obj, get: obj => obj.justifyText, set: (obj, value) => { obj.justifyText = value; } }, metadata: _metadata }, _justifyText_initializers, _justifyText_extraInitializers);\n __esDecorate(null, null, _iconSlotChild_decorators, { kind: \"field\", name: \"iconSlotChild\", static: false, private: false, access: { has: obj => \"iconSlotChild\" in obj, get: obj => obj.iconSlotChild, set: (obj, value) => { obj.iconSlotChild = value; } }, metadata: _metadata }, _iconSlotChild_initializers, _iconSlotChild_extraInitializers);\n __esDecorate(null, null, _button_decorators, { kind: \"field\", name: \"button\", static: false, private: false, access: { has: obj => \"button\" in obj, get: obj => obj.button, set: (obj, value) => { obj.button = value; } }, metadata: _metadata }, _button_initializers, _button_extraInitializers);\n __esDecorate(null, null, _spinner_decorators, { kind: \"field\", name: \"spinner\", static: false, private: false, access: { has: obj => \"spinner\" in obj, get: obj => obj.spinner, set: (obj, value) => { obj.spinner = value; } }, metadata: _metadata }, _spinner_initializers, _spinner_extraInitializers);\n __esDecorate(null, null, _label_decorators, { kind: \"field\", name: \"label\", static: false, private: false, access: { has: obj => \"label\" in obj, get: obj => obj.label, set: (obj, value) => { obj.label = value; } }, metadata: _metadata }, _label_initializers, _label_extraInitializers);\n __esDecorate(null, null, _iconElement_decorators, { kind: \"field\", name: \"iconElement\", static: false, private: false, access: { has: obj => \"iconElement\" in obj, get: obj => obj.iconElement, set: (obj, value) => { obj.iconElement = value; } }, metadata: _metadata }, _iconElement_initializers, _iconElement_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n constructor() {\n super();\n this.internals = __runInitializers(this, _instanceExtraInitializers);\n this.formDisabled = __runInitializers(this, _formDisabled_initializers, false);\n this.variant = (__runInitializers(this, _formDisabled_extraInitializers), __runInitializers(this, _variant_initializers, 'default'));\n this.size = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.type = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _type_initializers, 'button'));\n this.disabled = (__runInitializers(this, _type_extraInitializers), __runInitializers(this, _disabled_initializers, false));\n this.loading = (__runInitializers(this, _disabled_extraInitializers), __runInitializers(this, _loading_initializers, false));\n this.outline = (__runInitializers(this, _loading_extraInitializers), __runInitializers(this, _outline_initializers, false));\n this.pill = (__runInitializers(this, _outline_extraInitializers), __runInitializers(this, _pill_initializers, false));\n this.circle = (__runInitializers(this, _pill_extraInitializers), __runInitializers(this, _circle_initializers, false));\n this.href = (__runInitializers(this, _circle_extraInitializers), __runInitializers(this, _href_initializers, ''));\n this.target = (__runInitializers(this, _href_extraInitializers), __runInitializers(this, _target_initializers, ''));\n this.download = (__runInitializers(this, _target_extraInitializers), __runInitializers(this, _download_initializers, ''));\n this.icon = (__runInitializers(this, _download_extraInitializers), __runInitializers(this, _icon_initializers, ''));\n this.iconPlacement = (__runInitializers(this, _icon_extraInitializers), __runInitializers(this, _iconPlacement_initializers, 'start'));\n this.justifyText = (__runInitializers(this, _iconPlacement_extraInitializers), __runInitializers(this, _justifyText_initializers, 'center'));\n this.iconSlotChild = (__runInitializers(this, _justifyText_extraInitializers), __runInitializers(this, _iconSlotChild_initializers, void 0));\n this.button = (__runInitializers(this, _iconSlotChild_extraInitializers), __runInitializers(this, _button_initializers, void 0));\n this.spinner = (__runInitializers(this, _button_extraInitializers), __runInitializers(this, _spinner_initializers, void 0));\n this.label = (__runInitializers(this, _spinner_extraInitializers), __runInitializers(this, _label_initializers, void 0));\n this.iconElement = (__runInitializers(this, _label_extraInitializers), __runInitializers(this, _iconElement_initializers, void 0));\n __runInitializers(this, _iconElement_extraInitializers);\n if (typeof this.attachInternals === 'function') {\n this.internals = this.attachInternals();\n }\n }\n get hasIconSlot() {\n return !!this.iconSlotChild;\n }\n get effectiveDisabled() {\n return this.disabled || this.formDisabled;\n }\n get interactionDisabled() {\n return this.effectiveDisabled || this.loading;\n }\n render() {\n const effectiveDisabled = this.effectiveDisabled;\n const hasIcon = this.icon || this.hasIconSlot;\n const showIconStart = hasIcon && this.iconPlacement === 'start';\n const showIconEnd = hasIcon && this.iconPlacement === 'end';\n const classes = [\n 'button',\n `button--${this.variant || 'default'}`,\n `button--${this.size || 'medium'}`,\n this.outline ? 'button--outline' : '',\n this.pill ? 'button--pill' : '',\n this.circle ? 'button--circle' : '',\n this.loading ? 'button--loading' : '',\n effectiveDisabled ? 'button--disabled' : '',\n hasIcon ? `button--has-icon` : '',\n hasIcon ? `button--icon-${this.iconPlacement}` : ''\n ].filter(Boolean).join(' ');\n return html /*html*/ `\n <button class=\"${classes}\" type=\"${this.type}\" ?disabled=\"${effectiveDisabled}\" aria-busy=\"${this.loading}\" part=\"base\" @click=\"${(e) => this.handleInternalClick(e)}\">\n <span class=\"spinner\" part=\"spinner\"></span>\n <if ${showIconStart}>\n <span class=\"icon-slot\" part=\"icon\">\n <slot name=\"icon\">\n <if ${this.icon}>\n ${renderIcon(this.icon, 'icon')}\n </if>\n </slot>\n </span>\n </if>\n <span class=\"label\" part=\"label\">\n <slot></slot>\n </span>\n <if ${showIconEnd}>\n <span class=\"icon-slot\" part=\"icon\">\n <slot name=\"icon\">\n <if ${this.icon}>\n ${renderIcon(this.icon, 'icon')}\n </if>\n </slot>\n </span>\n </if>\n </button>\n `;\n }\n handleInternalClick(event) {\n if (this.interactionDisabled) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n // A non-empty href turns this activation into navigation. Treat an\n // invalid URL as a blocked activation: it must not fall through to form\n // behavior or emit the success-oriented button-click event.\n if (this.href !== '') {\n const href = typeof this.href === 'string' ? this.href.trim() : '';\n if (!href || !isSafeUrl(href)) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n if (this.download) {\n const a = document.createElement('a');\n a.href = href;\n a.download = this.download;\n a.click();\n }\n else if (this.target) {\n window.open(href, this.target, 'noopener');\n }\n else {\n window.location.href = href;\n }\n }\n else {\n // Form behavior is a separate activation mode. A safe, non-empty href\n // takes precedence over type=\"submit\" or type=\"reset\".\n const form = this.internals?.form || this.closest('form');\n if (form) {\n switch (this.type) {\n case 'submit':\n form.requestSubmit();\n break;\n case 'reset':\n form.reset();\n break;\n }\n }\n }\n // Dispatch the custom event\n this.dispatchEvent(new CustomEvent('button-click', {\n bubbles: true,\n composed: true,\n detail: { originalEvent: event }\n }));\n }\n formDisabledCallback(disabled) {\n // The browser reports effective disabledness here, including disabled\n // ancestor fieldsets and their first-legend exception. Keep that state\n // separate so the authored `disabled` property/attribute is untouched.\n this.formDisabled = disabled;\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n // Keep these methods for backwards compatibility if needed\n setLoading(loading) {\n this.loading = loading;\n }\n setDisabled(disabled) {\n this.disabled = disabled;\n }\n setVariant(variant) {\n this.variant = variant;\n }\n focus(options) {\n if (this.effectiveDisabled)\n return;\n this.button?.focus(options);\n }\n blur() {\n this.button?.blur();\n }\n click() {\n if (this.effectiveDisabled)\n return;\n this.button?.click();\n }\n /** Owning form, including association through a `form` attribute. @public */\n get form() {\n return findFormOwner(this, this.internals);\n }\n /** Labels associated with the form-associated host. @public */\n get labels() {\n return this.internals?.labels ?? null;\n }\n });\n return _classThis;\n})();\n\nexport { SniceButton };\n//# sourceMappingURL=snice-button.js.map\n","const validityKeys = [\n 'badInput',\n 'customError',\n 'patternMismatch',\n 'rangeOverflow',\n 'rangeUnderflow',\n 'stepMismatch',\n 'tooLong',\n 'tooShort',\n 'typeMismatch',\n 'valueMissing'\n];\n/** Copy the actionable flags from a native ValidityState. */\nfunction validityFlagsFrom(validity, overrides = {}) {\n const flags = {};\n for (const key of validityKeys)\n flags[key] = validity[key];\n return Object.assign(flags, overrides);\n}\nfunction hasValidityError(flags) {\n return validityKeys.some(key => Boolean(flags[key]));\n}\n/** Keep ElementInternals form-value updates safe in partial DOM implementations. */\nfunction applyElementInternalsFormValue(internals, value, state) {\n // jsdom and other DOM test implementations can expose the ARIA portion of\n // ElementInternals without the form-associated custom-element methods.\n if (!internals || typeof internals.setFormValue !== 'function')\n return;\n if (state === undefined)\n internals.setFormValue(value);\n else\n internals.setFormValue(value, state);\n}\n/** Keep ElementInternals validity updates identical across form controls. */\nfunction applyElementInternalsValidity(internals, flags, message, anchor) {\n // Some DOM test implementations expose a partial ElementInternals object.\n // Keep the component's native-input/proxy fallback usable in that case.\n if (!internals || typeof internals.setValidity !== 'function')\n return;\n if (!hasValidityError(flags)) {\n internals.setValidity({});\n }\n else if (anchor) {\n internals.setValidity(flags, message, anchor);\n }\n else {\n internals.setValidity(flags, message);\n }\n}\n/**\n * ElementInternals.form is authoritative. The fallback keeps DOM test\n * implementations and older partial implementations useful without changing\n * browser ownership semantics.\n */\nfunction findFormOwner(host, internals) {\n if (internals?.form)\n return internals.form;\n const explicitOwner = host.getAttribute('form');\n if (explicitOwner !== null) {\n const root = host.getRootNode();\n if (!('querySelectorAll' in root))\n return null;\n return Array.from(root.querySelectorAll('form[id]'))\n .find((candidate) => candidate instanceof HTMLFormElement && candidate.id === explicitOwner) ?? null;\n }\n return host.closest('form');\n}\n/**\n * Normalize a finite numeric value to the same min-based step lattice used by\n * native range controls. The nearest in-range step wins; midpoint ties move in\n * the positive direction. Invalid/reversed ranges collapse to their minimum.\n */\nfunction normalizeSteppedValue(value, min, max, step) {\n const lower = Number.isFinite(min) ? min : -Infinity;\n const configuredUpper = Number.isFinite(max) ? max : Infinity;\n const upper = configuredUpper < lower ? lower : configuredUpper;\n const effectiveStep = Number.isFinite(step) && step > 0 ? step : 1;\n const base = Number.isFinite(lower) ? lower : 0;\n const clamped = Math.max(lower, Math.min(upper, value));\n let normalized = base + Math.round((clamped - base) / effectiveStep) * effectiveStep;\n if (normalized > upper) {\n normalized = base + Math.floor((upper - base) / effectiveStep) * effectiveStep;\n }\n if (normalized < lower) {\n normalized = base + Math.ceil((lower - base) / effectiveStep) * effectiveStep;\n }\n normalized = Math.max(lower, Math.min(upper, normalized));\n // Extremely large finite inputs can overflow intermediate step arithmetic.\n // Preserve the finite clamped value instead of exposing Infinity/NaN.\n if (!Number.isFinite(normalized))\n return clamped;\n return Number(normalized.toPrecision(15));\n}\n\nexport { applyElementInternalsFormValue, applyElementInternalsValidity, findFormOwner, hasValidityError, normalizeSteppedValue, validityFlagsFrom };\n//# sourceMappingURL=form-control-validity.js.map\n","import { __esDecorate, __runInitializers } from 'tslib';\nimport { element, property, query, queryAll, render, styles, watch, request, dispatch, html, css } from 'snice';\nimport '../alert/snice-alert.js';\nimport '../button/snice-button.js';\nimport '../utils.js';\nimport '../icons/index.js';\nimport '../form-control-validity.js';\n\nvar cssContent = \":host([hidden]){display:none}:host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)}.login{max-width:24rem;margin:0 auto}.login--card{background:var(--snice-color-surface-container-high,rgb(252 251 249));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-lg,.5rem);padding:var(--snice-spacing-xl,2rem);box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1))}.login--minimal{background:0 0;border:none;padding:0;box-shadow:none}.login--small{max-width:20rem}.login--large{max-width:28rem}.login__header{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);text-align:center;margin-bottom:var(--snice-spacing-xl,2rem)}.login__title{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);margin:0 0 var(--snice-spacing-xs,.5rem) 0;font-size:var(--snice-heading-xl, 1.5rem);font-weight:var(--snice-font-weight-bold,700);color:var(--snice-color-text,rgb(23 23 23))}.login__subtitle{margin:0;font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.login__form{display:flex;flex-direction:column;gap:var(--snice-spacing-md,1rem)}.login__field{display:flex;flex-direction:column;gap:var(--snice-spacing-2xs,.25rem)}.login__label{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-medium,500);color:var(--snice-color-text,rgb(23 23 23))}.login__input{padding:var(--snice-spacing-sm,.75rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--snice-font-size-md, 1rem);font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);transition:border-color var(--snice-transition-fast, 150ms) ease;background:var(--snice-color-surface-container-lowest,hsl(0 0% 100%));color:var(--snice-color-text,rgb(23 23 23))}.login__input:focus-visible{outline:0;border-color:var(--snice-color-border-focus,rgb(59 130 246));box-shadow:0 0 0 var(--snice-focus-ring-width,2px) var(--snice-focus-ring-color,rgb(59 130 246 / .5))}.login__input:disabled{background:var(--snice-color-surface-container-low,rgb(250 250 250));color:var(--snice-color-text-tertiary,rgb(115 115 115));cursor:not-allowed}.login__input--error{border-color:var(--snice-color-danger,rgb(220 38 38))}.login__input--error:focus-visible{border-color:var(--snice-color-danger,rgb(220 38 38));box-shadow:0 0 0 var(--snice-focus-ring-width,2px) var(--snice-color-danger-alpha,rgb(239 68 68 / .2))}.login__options{display:flex;justify-content:space-between;align-items:center;margin:var(--snice-spacing-xs,.5rem) 0}.login__remember{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.login__checkbox{margin:0}.login__forgot{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-primary,rgb(37 99 235));text-decoration:none;transition:color var(--snice-transition-fast, 150ms) ease}.login__forgot:hover{color:var(--snice-color-primary-hover,rgb(29 78 216));text-decoration:underline}.login__footer{text-align:center;margin-top:var(--snice-spacing-lg,1.5rem)}.login__footer ::slotted(*){font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.login__footer ::slotted(a){color:var(--snice-color-primary,rgb(37 99 235));text-decoration:none}.login__footer ::slotted(a:hover){text-decoration:underline}.login--small .login__title{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-size:1.25rem}.login--small .login__button,.login--small .login__input{padding:.625rem;font-size:.875rem}.login--small .login__button{min-height:2.5rem}.login--large .login__title{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-size:1.875rem}.login--large .login__button,.login--large .login__input{padding:1rem;font-size:1.125rem}.login--large .login__button{min-height:3.5rem}[hidden]{display:none}snice-alert{margin-top:var(--snice-spacing-md,1rem)}@media (max-width:640px){.login{max-width:none;margin:0}.login--card{border-radius:0;border-left:none;border-right:none}}@media (prefers-reduced-motion:reduce){*{transition-duration:0s!important;animation-duration:0s!important}}\";\n\nlet SniceLogin = (() => {\n let _classDecorators = [element('snice-login')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _disabled_decorators;\n let _disabled_initializers = [];\n let _disabled_extraInitializers = [];\n let _loading_decorators;\n let _loading_initializers = [];\n let _loading_extraInitializers = [];\n let _showRememberMe_decorators;\n let _showRememberMe_initializers = [];\n let _showRememberMe_extraInitializers = [];\n let _showForgotPassword_decorators;\n let _showForgotPassword_initializers = [];\n let _showForgotPassword_extraInitializers = [];\n let _actionText_decorators;\n let _actionText_initializers = [];\n let _actionText_extraInitializers = [];\n let _loginContainer_decorators;\n let _loginContainer_initializers = [];\n let _loginContainer_extraInitializers = [];\n let _form_decorators;\n let _form_initializers = [];\n let _form_extraInitializers = [];\n let _usernameInput_decorators;\n let _usernameInput_initializers = [];\n let _usernameInput_extraInitializers = [];\n let _passwordInput_decorators;\n let _passwordInput_initializers = [];\n let _passwordInput_extraInitializers = [];\n let _rememberInput_decorators;\n let _rememberInput_initializers = [];\n let _rememberInput_extraInitializers = [];\n let _alertElement_decorators;\n let _alertElement_initializers = [];\n let _alertElement_extraInitializers = [];\n let _buttonElement_decorators;\n let _buttonElement_initializers = [];\n let _buttonElement_extraInitializers = [];\n let _inputElements_decorators;\n let _inputElements_initializers = [];\n let _inputElements_extraInitializers = [];\n let _alertMessage_decorators;\n let _alertMessage_initializers = [];\n let _alertMessage_extraInitializers = [];\n let _alertVariant_decorators;\n let _alertVariant_initializers = [];\n let _alertVariant_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n let _updateLoginClasses_decorators;\n let _login_decorators;\n let _handleSubmit_decorators;\n let _handleForgotPassword_decorators;\n let _dispatchLoginSuccess_decorators;\n let _dispatchLoginError_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _variant_decorators = [property({})];\n _size_decorators = [property({})];\n _title_decorators = [property({})];\n _disabled_decorators = [property({ type: Boolean, })];\n _loading_decorators = [property({ type: Boolean, })];\n _showRememberMe_decorators = [property({ type: Boolean, attribute: 'show-remember-me' })];\n _showForgotPassword_decorators = [property({ type: Boolean, attribute: 'show-forgot-password' })];\n _actionText_decorators = [property({ attribute: 'action-text' })];\n _loginContainer_decorators = [query('.login')];\n _form_decorators = [query('.login__form')];\n _usernameInput_decorators = [query('input[name=\"username\"]')];\n _passwordInput_decorators = [query('input[name=\"password\"]')];\n _rememberInput_decorators = [query('input[name=\"remember\"]')];\n _alertElement_decorators = [query('snice-alert')];\n _buttonElement_decorators = [query('snice-button')];\n _inputElements_decorators = [queryAll('input')];\n _alertMessage_decorators = [property({ attribute: false })];\n _alertVariant_decorators = [property({ attribute: false })];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n _updateLoginClasses_decorators = [watch('variant', 'size')];\n _login_decorators = [request('login-user')];\n _handleSubmit_decorators = [dispatch('login-attempt', { bubbles: true, composed: true })];\n _handleForgotPassword_decorators = [dispatch('login-forgot-password', { bubbles: true, composed: true })];\n _dispatchLoginSuccess_decorators = [dispatch('login-success', { bubbles: true, composed: true })];\n _dispatchLoginError_decorators = [dispatch('login-error', { bubbles: true, composed: true })];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _updateLoginClasses_decorators, { kind: \"method\", name: \"updateLoginClasses\", static: false, private: false, access: { has: obj => \"updateLoginClasses\" in obj, get: obj => obj.updateLoginClasses }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _login_decorators, { kind: \"method\", name: \"login\", static: false, private: false, access: { has: obj => \"login\" in obj, get: obj => obj.login }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleSubmit_decorators, { kind: \"method\", name: \"handleSubmit\", static: false, private: false, access: { has: obj => \"handleSubmit\" in obj, get: obj => obj.handleSubmit }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleForgotPassword_decorators, { kind: \"method\", name: \"handleForgotPassword\", static: false, private: false, access: { has: obj => \"handleForgotPassword\" in obj, get: obj => obj.handleForgotPassword }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchLoginSuccess_decorators, { kind: \"method\", name: \"dispatchLoginSuccess\", static: false, private: false, access: { has: obj => \"dispatchLoginSuccess\" in obj, get: obj => obj.dispatchLoginSuccess }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchLoginError_decorators, { kind: \"method\", name: \"dispatchLoginError\", static: false, private: false, access: { has: obj => \"dispatchLoginError\" in obj, get: obj => obj.dispatchLoginError }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _variant_decorators, { kind: \"field\", name: \"variant\", static: false, private: false, access: { has: obj => \"variant\" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _disabled_decorators, { kind: \"field\", name: \"disabled\", static: false, private: false, access: { has: obj => \"disabled\" in obj, get: obj => obj.disabled, set: (obj, value) => { obj.disabled = value; } }, metadata: _metadata }, _disabled_initializers, _disabled_extraInitializers);\n __esDecorate(null, null, _loading_decorators, { kind: \"field\", name: \"loading\", static: false, private: false, access: { has: obj => \"loading\" in obj, get: obj => obj.loading, set: (obj, value) => { obj.loading = value; } }, metadata: _metadata }, _loading_initializers, _loading_extraInitializers);\n __esDecorate(null, null, _showRememberMe_decorators, { kind: \"field\", name: \"showRememberMe\", static: false, private: false, access: { has: obj => \"showRememberMe\" in obj, get: obj => obj.showRememberMe, set: (obj, value) => { obj.showRememberMe = value; } }, metadata: _metadata }, _showRememberMe_initializers, _showRememberMe_extraInitializers);\n __esDecorate(null, null, _showForgotPassword_decorators, { kind: \"field\", name: \"showForgotPassword\", static: false, private: false, access: { has: obj => \"showForgotPassword\" in obj, get: obj => obj.showForgotPassword, set: (obj, value) => { obj.showForgotPassword = value; } }, metadata: _metadata }, _showForgotPassword_initializers, _showForgotPassword_extraInitializers);\n __esDecorate(null, null, _actionText_decorators, { kind: \"field\", name: \"actionText\", static: false, private: false, access: { has: obj => \"actionText\" in obj, get: obj => obj.actionText, set: (obj, value) => { obj.actionText = value; } }, metadata: _metadata }, _actionText_initializers, _actionText_extraInitializers);\n __esDecorate(null, null, _loginContainer_decorators, { kind: \"field\", name: \"loginContainer\", static: false, private: false, access: { has: obj => \"loginContainer\" in obj, get: obj => obj.loginContainer, set: (obj, value) => { obj.loginContainer = value; } }, metadata: _metadata }, _loginContainer_initializers, _loginContainer_extraInitializers);\n __esDecorate(null, null, _form_decorators, { kind: \"field\", name: \"form\", static: false, private: false, access: { has: obj => \"form\" in obj, get: obj => obj.form, set: (obj, value) => { obj.form = value; } }, metadata: _metadata }, _form_initializers, _form_extraInitializers);\n __esDecorate(null, null, _usernameInput_decorators, { kind: \"field\", name: \"usernameInput\", static: false, private: false, access: { has: obj => \"usernameInput\" in obj, get: obj => obj.usernameInput, set: (obj, value) => { obj.usernameInput = value; } }, metadata: _metadata }, _usernameInput_initializers, _usernameInput_extraInitializers);\n __esDecorate(null, null, _passwordInput_decorators, { kind: \"field\", name: \"passwordInput\", static: false, private: false, access: { has: obj => \"passwordInput\" in obj, get: obj => obj.passwordInput, set: (obj, value) => { obj.passwordInput = value; } }, metadata: _metadata }, _passwordInput_initializers, _passwordInput_extraInitializers);\n __esDecorate(null, null, _rememberInput_decorators, { kind: \"field\", name: \"rememberInput\", static: false, private: false, access: { has: obj => \"rememberInput\" in obj, get: obj => obj.rememberInput, set: (obj, value) => { obj.rememberInput = value; } }, metadata: _metadata }, _rememberInput_initializers, _rememberInput_extraInitializers);\n __esDecorate(null, null, _alertElement_decorators, { kind: \"field\", name: \"alertElement\", static: false, private: false, access: { has: obj => \"alertElement\" in obj, get: obj => obj.alertElement, set: (obj, value) => { obj.alertElement = value; } }, metadata: _metadata }, _alertElement_initializers, _alertElement_extraInitializers);\n __esDecorate(null, null, _buttonElement_decorators, { kind: \"field\", name: \"buttonElement\", static: false, private: false, access: { has: obj => \"buttonElement\" in obj, get: obj => obj.buttonElement, set: (obj, value) => { obj.buttonElement = value; } }, metadata: _metadata }, _buttonElement_initializers, _buttonElement_extraInitializers);\n __esDecorate(null, null, _inputElements_decorators, { kind: \"field\", name: \"inputElements\", static: false, private: false, access: { has: obj => \"inputElements\" in obj, get: obj => obj.inputElements, set: (obj, value) => { obj.inputElements = value; } }, metadata: _metadata }, _inputElements_initializers, _inputElements_extraInitializers);\n __esDecorate(null, null, _alertMessage_decorators, { kind: \"field\", name: \"alertMessage\", static: false, private: false, access: { has: obj => \"alertMessage\" in obj, get: obj => obj.alertMessage, set: (obj, value) => { obj.alertMessage = value; } }, metadata: _metadata }, _alertMessage_initializers, _alertMessage_extraInitializers);\n __esDecorate(null, null, _alertVariant_decorators, { kind: \"field\", name: \"alertVariant\", static: false, private: false, access: { has: obj => \"alertVariant\" in obj, get: obj => obj.alertVariant, set: (obj, value) => { obj.alertVariant = value; } }, metadata: _metadata }, _alertVariant_initializers, _alertVariant_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n render() {\n const loginClasses = ['login', `login--${this.variant}`, `login--${this.size}`].join(' ');\n return html /*html*/ `\n <div part=\"base\" class=\"${loginClasses}\">\n <slot name=\"before-header\"></slot>\n\n <div part=\"header\" class=\"login__header\">\n <h1 part=\"title\" class=\"login__title\">${this.title}</h1>\n <slot name=\"subtitle\">\n <p class=\"login__subtitle\">Enter your credentials to continue</p>\n </slot>\n </div>\n\n <slot name=\"after-header\"></slot>\n <slot name=\"before-form\"></slot>\n\n <form part=\"form\" class=\"login__form\" @submit=${(e) => this.handleSubmit(e)}>\n <slot name=\"form-top\"></slot>\n\n <div class=\"login__field\">\n <label class=\"login__label\" for=\"username\">Username</label>\n <input\n class=\"login__input\"\n type=\"text\"\n name=\"username\"\n id=\"username\"\n required\n autocomplete=\"username\"\n placeholder=\"Enter your username\"\n ?disabled=${this.disabled || this.loading}\n />\n </div>\n\n <slot name=\"between-fields\"></slot>\n\n <div class=\"login__field\">\n <label class=\"login__label\" for=\"password\">Password</label>\n <input\n class=\"login__input\"\n type=\"password\"\n name=\"password\"\n id=\"password\"\n required\n autocomplete=\"current-password\"\n placeholder=\"Enter your password\"\n ?disabled=${this.disabled || this.loading}\n @keydown=${(e) => this.handleEnterKey(e)}\n />\n </div>\n\n <if ${this.showRememberMe || this.showForgotPassword}>\n <div class=\"login__options\">\n <if ${this.showRememberMe}>\n <label class=\"login__remember\">\n <input class=\"login__checkbox\" type=\"checkbox\" name=\"remember\" ?disabled=\"${this.disabled || this.loading}\" />\n Remember me\n </label>\n </if>\n\n <if ${this.showForgotPassword}>\n <a href=\"#\" class=\"login__forgot\" @click=${(e) => this.handleForgotPassword(e)}>Forgot password?</a>\n </if>\n </div>\n </if>\n\n <slot name=\"before-submit\"></slot>\n\n <snice-button\n type=\"submit\"\n variant=\"primary\"\n ?disabled=${this.disabled}\n ?loading=${this.loading}\n @click=${(e) => this.handleButtonClick(e)}>\n ${this.actionText}\n </snice-button>\n\n <slot name=\"after-submit\"></slot>\n </form>\n\n <slot name=\"after-form\"></slot>\n\n <if ${this.alertMessage}>\n <snice-alert variant=\"${this.alertVariant}\">${this.alertMessage}</snice-alert>\n </if>\n\n <div part=\"footer\" class=\"login__footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n `;\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n updateLoginClasses() {\n if (this.loginContainer) {\n this.loginContainer.className = `login login--${this.variant} login--${this.size}`;\n }\n }\n async *login(credentials) {\n if (!credentials) {\n credentials = this.getFormData();\n }\n if (!credentials.username || !credentials.password) {\n return {\n success: false,\n error: 'Username and password are required'\n };\n }\n try {\n const result = await (yield credentials);\n return result;\n }\n catch (error) {\n return {\n success: false,\n error: error instanceof Error ? error.message : 'Login failed'\n };\n }\n }\n async handleButtonClick(event) {\n event.preventDefault();\n // Trigger form submit\n if (this.form) {\n this.form.requestSubmit();\n }\n }\n async handleSubmit(event) {\n event.preventDefault();\n if (this.loading || this.disabled) {\n return;\n }\n this.clearAlert();\n this.loading = true;\n this.updateLoadingState();\n // Wait a tick to ensure the form is properly rendered\n await new Promise(resolve => setTimeout(resolve, 0));\n try {\n const credentials = this.getFormData();\n if (!credentials.username || !credentials.password) {\n this.showAlert('Username and password are required', 'error');\n this.loading = false;\n this.updateLoadingState();\n return;\n }\n const result = await this.login(credentials);\n if (result.success) {\n this.showAlert('Login successful!', 'success');\n this.dispatchLoginSuccess(result);\n }\n else {\n this.showAlert(result.error || 'Login failed', 'error');\n this.dispatchLoginError(result.error || 'Login failed');\n }\n }\n catch (error) {\n const errorMessage = error instanceof Error ? error.message : 'Login failed';\n this.showAlert(errorMessage, 'error');\n this.dispatchLoginError(errorMessage);\n }\n finally {\n this.loading = false;\n this.updateLoadingState();\n }\n const credentials = this.getFormData();\n return {\n username: credentials.username,\n timestamp: new Date().toISOString()\n };\n }\n handleEnterKey(event) {\n if (event.key === 'Enter' && !this.loading && !this.disabled && this.form) {\n this.form.requestSubmit();\n }\n }\n handleForgotPassword(event) {\n event.preventDefault();\n return {\n timestamp: new Date().toISOString()\n };\n }\n dispatchLoginSuccess(result) {\n return { timestamp: new Date().toISOString() };\n }\n dispatchLoginError(error) {\n return {\n error,\n timestamp: new Date().toISOString()\n };\n }\n getFormData() {\n const usernameInput = this.shadowRoot?.querySelector('#username');\n const passwordInput = this.shadowRoot?.querySelector('#password');\n const rememberInput = this.shadowRoot?.querySelector('input[name=\"remember\"]');\n return {\n username: usernameInput?.value || '',\n password: passwordInput?.value || '',\n remember: rememberInput?.checked || false\n };\n }\n showAlert(message, variant) {\n this.alertMessage = message;\n this.alertVariant = variant;\n this.updateAlert();\n }\n clearAlert() {\n this.alertMessage = '';\n this.alertVariant = '';\n this.updateAlert();\n }\n updateAlert() {\n if (this.alertElement) {\n this.alertElement.setAttribute('variant', this.alertVariant);\n this.alertElement.textContent = this.alertMessage;\n if (this.alertMessage) {\n this.alertElement.removeAttribute('hidden');\n }\n else {\n this.alertElement.setAttribute('hidden', '');\n }\n }\n }\n updateLoadingState() {\n if (this.buttonElement) {\n if (this.loading) {\n this.buttonElement.setAttribute('loading', '');\n }\n else {\n this.buttonElement.removeAttribute('loading');\n }\n if (this.disabled) {\n this.buttonElement.setAttribute('disabled', '');\n }\n else {\n this.buttonElement.removeAttribute('disabled');\n }\n }\n this.inputElements?.forEach(input => {\n if (this.disabled || this.loading) {\n input.setAttribute('disabled', '');\n }\n else {\n input.removeAttribute('disabled');\n }\n });\n }\n setError(message) {\n this.showAlert(message, 'error');\n }\n clearError() {\n this.clearAlert();\n }\n setCredentials(credentials) {\n if (credentials.username !== undefined && this.usernameInput) {\n this.usernameInput.value = credentials.username;\n }\n if (credentials.password !== undefined && this.passwordInput) {\n this.passwordInput.value = credentials.password;\n }\n if (credentials.remember !== undefined && this.rememberInput) {\n this.rememberInput.checked = credentials.remember;\n }\n }\n reset() {\n if (this.form) {\n this.form.reset();\n }\n this.clearAlert();\n this.loading = false;\n }\n constructor() {\n super(...arguments);\n this.variant = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _variant_initializers, 'default'));\n this.size = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.title = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _title_initializers, 'Sign In'));\n this.disabled = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _disabled_initializers, false));\n this.loading = (__runInitializers(this, _disabled_extraInitializers), __runInitializers(this, _loading_initializers, false));\n this.showRememberMe = (__runInitializers(this, _loading_extraInitializers), __runInitializers(this, _showRememberMe_initializers, true));\n this.showForgotPassword = (__runInitializers(this, _showRememberMe_extraInitializers), __runInitializers(this, _showForgotPassword_initializers, true));\n this.actionText = (__runInitializers(this, _showForgotPassword_extraInitializers), __runInitializers(this, _actionText_initializers, 'Sign In'));\n this.loginContainer = (__runInitializers(this, _actionText_extraInitializers), __runInitializers(this, _loginContainer_initializers, void 0));\n this.form = (__runInitializers(this, _loginContainer_extraInitializers), __runInitializers(this, _form_initializers, void 0));\n this.usernameInput = (__runInitializers(this, _form_extraInitializers), __runInitializers(this, _usernameInput_initializers, void 0));\n this.passwordInput = (__runInitializers(this, _usernameInput_extraInitializers), __runInitializers(this, _passwordInput_initializers, void 0));\n this.rememberInput = (__runInitializers(this, _passwordInput_extraInitializers), __runInitializers(this, _rememberInput_initializers, void 0));\n this.alertElement = (__runInitializers(this, _rememberInput_extraInitializers), __runInitializers(this, _alertElement_initializers, void 0));\n this.buttonElement = (__runInitializers(this, _alertElement_extraInitializers), __runInitializers(this, _buttonElement_initializers, void 0));\n this.inputElements = (__runInitializers(this, _buttonElement_extraInitializers), __runInitializers(this, _inputElements_initializers, void 0));\n // Public: consumers (e.g. the React template) drive the inline alert\n // banner via these props instead of calling showAlert().\n this.alertMessage = (__runInitializers(this, _inputElements_extraInitializers), __runInitializers(this, _alertMessage_initializers, ''));\n this.alertVariant = (__runInitializers(this, _alertMessage_extraInitializers), __runInitializers(this, _alertVariant_initializers, ''));\n __runInitializers(this, _alertVariant_extraInitializers);\n }\n });\n return _classThis;\n})();\n\nexport { SniceLogin };\n//# sourceMappingURL=snice-login.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","INFO_CIRCLE_SOLID","CHECK_CIRCLE_SOLID","EXCLAMATION_TRIANGLE_SOLID","X_CIRCLE_SOLID","MAGNIFYING_GLASS","COG_6_TOOTH","ICONS","check","search","photo","trash","plus","camera","pencil","star","circle","fire","settings","envelope","users","heart","home","scissors","user","clipboard","sparkles","cube","banknotes","cake","gift","folder","bell","link","phone","minus","strictStringAttributeConverter","toAttribute","renderIcon","icon","className","html","startsWith","slice","isUrl","test","isImageFile","classifyIcon","unsafeHTML","_classDescriptor","_classThis","_variant_decorators","_size_decorators","_appearance_decorators","_title_decorators","_dismissible_decorators","_icon_decorators","_duration_decorators","_alertElement_decorators","_render_decorators","_styles_decorators","_init_decorators","_cleanup_decorators","_handleTitleChange_decorators","_handleDurationChange_decorators","_pauseCountdown_decorators","_resumeCountdown_decorators","_handleDismiss_decorators","_dispatchAlertHidden_decorators","_dispatchAlertShown_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_variant_initializers","_variant_extraInitializers","_size_initializers","_size_extraInitializers","_appearance_initializers","_appearance_extraInitializers","_title_initializers","_title_extraInitializers","_dismissible_initializers","_dismissible_extraInitializers","_icon_initializers","_icon_extraInitializers","_duration_initializers","_duration_extraInitializers","_alertElement_initializers","_alertElement_extraInitializers","this","constructor","super","variant","size","appearance","title","dismissible","duration","alertElement","isHidden","dismissTimer","countdownStartedAt","countdownRemaining","_metadata","Symbol","metadata","create","property","reflect","type","Boolean","Number","query","render","styles","ready","dispose","watch","immediate","on","dispatch","static","private","has","obj","cleanup","handleTitleChange","handleDurationChange","pauseCountdown","resumeCountdown","handleDismiss","dispatchAlertHidden","dispatchAlertShown","enumerable","configurable","writable","hasIcon","shouldShowDefaultIcon","classes","filter","join","handleAnimationEnd","defaultIconSvg","css","stripNativeTooltip","startCountdown","clearCountdown","hasAttribute","getAttribute","removeAttribute","clearTimeout","Math","max","Date","now","armCountdown","ms","setTimeout","hide","success","warning","error","info","event","animationName","classList","add","remove","show","_formDisabled_decorators","_type_decorators","_disabled_decorators","_loading_decorators","_outline_decorators","_pill_decorators","_circle_decorators","_href_decorators","_target_decorators","_download_decorators","_iconPlacement_decorators","_justifyText_decorators","_iconSlotChild_decorators","_button_decorators","_spinner_decorators","_label_decorators","_iconElement_decorators","formAssociated","delegatesFocus","_formDisabled_initializers","_formDisabled_extraInitializers","_type_initializers","_type_extraInitializers","_disabled_initializers","_disabled_extraInitializers","_loading_initializers","_loading_extraInitializers","_outline_initializers","_outline_extraInitializers","_pill_initializers","_pill_extraInitializers","_circle_initializers","_circle_extraInitializers","_href_initializers","_href_extraInitializers","_target_initializers","_target_extraInitializers","_download_initializers","_download_extraInitializers","_iconPlacement_initializers","_iconPlacement_extraInitializers","_justifyText_initializers","_justifyText_extraInitializers","_iconSlotChild_initializers","_iconSlotChild_extraInitializers","_button_initializers","_button_extraInitializers","_spinner_initializers","_spinner_extraInitializers","_label_initializers","_label_extraInitializers","_iconElement_initializers","_iconElement_extraInitializers","state","String","converter","attribute","light","formDisabled","disabled","loading","outline","pill","href","download","iconPlacement","justifyText","iconSlotChild","button","spinner","label","iconElement","internals","attachInternals","hasIconSlot","effectiveDisabled","interactionDisabled","showIconStart","showIconEnd","e","handleInternalClick","preventDefault","stopPropagation","trim","isSafeUrl","a","document","createElement","click","window","open","location","form","closest","requestSubmit","reset","dispatchEvent","CustomEvent","bubbles","composed","detail","originalEvent","formDisabledCallback","setLoading","setDisabled","setVariant","focus","options","blur","host","explicitOwner","root","getRootNode","Array","from","querySelectorAll","find","candidate","HTMLFormElement","id","findFormOwner","labels","SniceLogin","_showRememberMe_decorators","_showForgotPassword_decorators","_actionText_decorators","_loginContainer_decorators","_form_decorators","_usernameInput_decorators","_passwordInput_decorators","_rememberInput_decorators","_buttonElement_decorators","_inputElements_decorators","_alertMessage_decorators","_alertVariant_decorators","_updateLoginClasses_decorators","_login_decorators","_handleSubmit_decorators","_handleForgotPassword_decorators","_dispatchLoginSuccess_decorators","_dispatchLoginError_decorators","_showRememberMe_initializers","_showRememberMe_extraInitializers","_showForgotPassword_initializers","_showForgotPassword_extraInitializers","_actionText_initializers","_actionText_extraInitializers","_loginContainer_initializers","_loginContainer_extraInitializers","_form_initializers","_form_extraInitializers","_usernameInput_initializers","_usernameInput_extraInitializers","_passwordInput_initializers","_passwordInput_extraInitializers","_rememberInput_initializers","_rememberInput_extraInitializers","_buttonElement_initializers","_buttonElement_extraInitializers","_inputElements_initializers","_inputElements_extraInitializers","_alertMessage_initializers","_alertMessage_extraInitializers","_alertVariant_initializers","_alertVariant_extraInitializers","queryAll","request","updateLoginClasses","login","handleSubmit","handleForgotPassword","dispatchLoginSuccess","dispatchLoginError","showRememberMe","showForgotPassword","actionText","loginContainer","usernameInput","passwordInput","rememberInput","buttonElement","inputElements","alertMessage","alertVariant","loginClasses","handleEnterKey","handleButtonClick","credentials","getFormData","username","password","Error","message","clearAlert","updateLoadingState","Promise","resolve","showAlert","errorMessage","timestamp","toISOString","shadowRoot","querySelector","remember","checked","updateAlert","setAttribute","textContent","forEach","input","setError","clearError","setCredentials","undefined"],"mappings":"2JAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,0DAA2DH,EAAkBoB,KAAKnB,EAAOC,GAAK,MAAQ,EAC5K,IAAImB,GAAS,EAAIxB,EAAWiB,IAAa,aAATT,EAAsB,CAAEiB,IAAKb,EAAWa,IAAKC,IAAKd,EAAWc,KAAQd,EAAWH,GAAMU,GACtH,GAAa,aAATX,EAAqB,CACrB,QAAe,IAAXgB,EAAmB,SACvB,GAAe,OAAXA,GAAqC,iBAAXA,EAAqB,MAAM,IAAIlB,UAAU,oBACnEC,EAAIH,EAAOoB,E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,KAAMoP,GAC5B,GAEG9R,CACV,EA1agB","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"snice-login.min.js","sources":["../../../node_modules/tslib/tslib.es6.mjs","../../components/icons/index.js","../../components/utils.js","../../components/alert/snice-alert.js","../../components/button/snice-button.js","../../components/form-control-validity.js","../../components/login/snice-login.js"],"sourcesContent":["/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","/**\n * Built-in snice icon set — a small curated subset of Heroicons, used by\n * components as their default glyph when no consumer slot or `icon` prop is\n * provided. Consumers can always override by slotting their own icon library\n * (Font Awesome, Material Symbols, Lucide, custom SVG, etc.).\n *\n * Copied from Heroicons v2 — MIT License, © Tailwind Labs.\n * https://github.com/tailwindlabs/heroicons\n *\n * Why embed instead of depending on a package:\n * - Snice ships zero runtime dependencies beyond the framework itself.\n * - We only need ~15 glyphs; the full Heroicons package is 600+ icons.\n * - Embedding sidesteps shadow DOM / module-resolution concerns and keeps\n * default icons available even in sandboxed environments.\n *\n * All SVGs:\n * - viewBox=\"0 0 24 24\"\n * - solid variants use `fill=\"currentColor\"`\n * - outline variants use `stroke=\"currentColor\"` + no fill\n *\n * Components pass `currentColor` through by setting `color:` on the wrapper.\n */\n// ─── SOLID (filled) — used for status / selected / active contexts ────────\nconst INFO_CIRCLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm8.706-1.442c1.146-.573 2.437.463 2.126 1.706l-.709 2.836.042-.02a.75.75 0 0 1 .67 1.34l-.04.022c-1.147.573-2.438-.463-2.127-1.706l.71-2.836-.042.02a.75.75 0 1 1-.671-1.34l.041-.022ZM12 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\" clip-rule=\"evenodd\"/></svg>`;\nconst CHECK_CIRCLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z\" clip-rule=\"evenodd\"/></svg>`;\nconst EXCLAMATION_TRIANGLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z\" clip-rule=\"evenodd\"/></svg>`;\nconst X_CIRCLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25Zm-1.72 6.97a.75.75 0 1 0-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 1 0 1.06 1.06L12 13.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L13.06 12l1.72-1.72a.75.75 0 1 0-1.06-1.06L12 10.94l-1.72-1.72Z\" clip-rule=\"evenodd\"/></svg>`;\nconst PAPER_AIRPLANE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M3.478 2.404a.75.75 0 0 0-.926.941l2.432 7.905H13.5a.75.75 0 0 1 0 1.5H4.984l-2.432 7.905a.75.75 0 0 0 .926.94 60.519 60.519 0 0 0 18.445-8.986.75.75 0 0 0 0-1.218A60.517 60.517 0 0 0 3.478 2.404Z\"/></svg>`;\n// ─── OUTLINE — used for neutral UI chrome ──────────────────────────────────\nconst X_MARK = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6 18 18 6M6 6l12 12\"/></svg>`;\nconst CHEVRON_DOWN = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m19.5 8.25-7.5 7.5-7.5-7.5\"/></svg>`;\nconst CHEVRON_UP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4.5 15.75 7.5-7.5 7.5 7.5\"/></svg>`;\nconst CHEVRON_RIGHT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m8.25 4.5 7.5 7.5-7.5 7.5\"/></svg>`;\nconst CHEVRON_LEFT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.75 19.5 8.25 12l7.5-7.5\"/></svg>`;\nconst CHECK = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m4.5 12.75 6 6 9-13.5\"/></svg>`;\nconst MAGNIFYING_GLASS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z\"/></svg>`;\nconst BARS_3 = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5\"/></svg>`;\nconst PHOTO = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z\"/></svg>`;\nconst ELLIPSIS_HORIZONTAL = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z\"/></svg>`;\nconst TRASH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0\"/></svg>`;\nconst PLUS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 4.5v15m7.5-7.5h-15\"/></svg>`;\nconst CAMERA = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.822 1.316Z\"/><path d=\"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z\"/></svg>`;\nconst PENCIL = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L6.832 19.82a4.5 4.5 0 0 1-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 0 1 1.13-1.897L16.863 4.487Zm0 0L19.5 7.125\"/></svg>`;\nconst ARROW_UP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 19.5v-15m0 0-6.75 6.75M12 4.5l6.75 6.75\"/></svg>`;\nconst ARROW_DOWN = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 4.5v15m0 0 6.75-6.75M12 19.5l-6.75-6.75\"/></svg>`;\nconst ARROW_RIGHT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4.5 12h15m0 0-6.75-6.75M19.5 12l-6.75 6.75\"/></svg>`;\nconst ARROW_TRENDING_UP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 18 9 11.25l4.306 4.306a11.95 11.95 0 0 1 5.814-5.518l2.74-1.22m0 0-5.94-2.281m5.94 2.28-2.28 5.941\"/></svg>`;\nconst ARROW_TRENDING_DOWN = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 6 9 12.75l4.286-4.286a11.948 11.948 0 0 1 4.306 6.43l.776 2.898m0 0 3.182-5.511m-3.182 5.511-5.511-3.181\"/></svg>`;\nconst STAR_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006Z\" clip-rule=\"evenodd\"/></svg>`;\nconst STAR_OUTLINE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z\"/></svg>`;\nconst CIRCLE_SOLID = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8\"/></svg>`;\nconst FUNNEL = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z\"/></svg>`;\nconst ARROW_DOWN_TRAY = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3\"/></svg>`;\nconst ARROW_UP_TRAY = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5\"/></svg>`;\nconst CHAT_BUBBLE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 0 1 1.037-.443 48.282 48.282 0 0 0 5.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z\"/></svg>`;\nconst ROCKET_LAUNCH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.59 14.37a6 6 0 0 1-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 0 0 6.16-12.12A14.98 14.98 0 0 0 9.631 8.41m5.96 5.96a14.926 14.926 0 0 1-5.841 2.58m-.119-8.54a6 6 0 0 0-7.381 5.84h4.8m2.581-5.84a14.927 14.927 0 0 0-2.58 5.84m2.699 2.7c-.103.021-.207.041-.311.06a15.09 15.09 0 0 1-2.448-2.448 14.9 14.9 0 0 1 .06-.312m-2.24 2.39a4.493 4.493 0 0 0-1.757 4.306 4.493 4.493 0 0 0 4.306-1.758M16.5 9a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z\"/></svg>`;\nconst KEY = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z\"/></svg>`;\nconst FIRE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.362 5.214A8.252 8.252 0 0 1 12 21 8.25 8.25 0 0 1 6.038 7.047 8.287 8.287 0 0 0 9 9.601a8.983 8.983 0 0 1 3.361-6.867 8.21 8.21 0 0 0 3 2.48Z\"/><path d=\"M12 18a3.75 3.75 0 0 0 .495-7.468 5.99 5.99 0 0 0-1.925 3.547 5.975 5.975 0 0 1-2.133-1.001A3.75 3.75 0 0 0 12 18Z\"/></svg>`;\nconst COG_6_TOOTH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z\"/><path d=\"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"/></svg>`;\nconst ENVELOPE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75\"/></svg>`;\nconst LIGHT_BULB = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18\"/></svg>`;\nconst USERS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z\"/></svg>`;\nconst HEART = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z\"/></svg>`;\nconst HOME = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25\"/></svg>`;\nconst CHART_BAR = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z\"/></svg>`;\nconst SCISSORS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.848 8.25l1.536.887M7.848 8.25a3 3 0 1 1-5.196-3 3 3 0 0 1 5.196 3Zm1.536.887a2.165 2.165 0 0 1 1.083 1.839c.005.351.054.695.14 1.024M9.384 9.137l2.077 1.199M7.848 15.75l1.536-.887m-1.536.887a3 3 0 1 1-5.196 3 3 3 0 0 1 5.196-3Zm1.536-.887a2.165 2.165 0 0 0 1.083-1.838c.005-.352.054-.695.14-1.025m-1.223 2.863 2.077-1.199m0-3.328a4.323 4.323 0 0 1 2.068-1.379l5.325-1.628a4.5 4.5 0 0 1 2.48-.044l.803.215-7.794 4.5m-2.882-.375a4.33 4.33 0 0 0 .655 3.736m2.227-3.361 7.794 4.5-.802.215a4.5 4.5 0 0 1-2.48-.043l-5.326-1.629a4.324 4.324 0 0 1-2.068-1.379m0 0-2.077 1.199\"/></svg>`;\nconst USER = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z\"/></svg>`;\nconst CLIPBOARD = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15.666 3.888A2.25 2.25 0 0 0 13.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 0 1-.75.75H9a.75.75 0 0 1-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 0 1-2.25 2.25H6.75A2.25 2.25 0 0 1 4.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 0 1 1.927-.184\"/></svg>`;\nconst BUG_ANT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082\"/></svg>`;\nconst CALENDAR_DAYS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5\"/></svg>`;\nconst SPARKLES = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z\"/></svg>`;\nconst BELL_ALERT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0M3.124 7.5A8.969 8.969 0 0 1 5.292 3m13.416 0a8.969 8.969 0 0 1 2.168 4.5\"/></svg>`;\nconst CUBE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9\"/></svg>`;\nconst BANKNOTES = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"/></svg>`;\nconst CAKE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 8.25v-1.5m0 1.5c-1.355 0-2.697.056-4.024.166C6.845 8.51 6 9.473 6 10.608v2.513m6-4.871c1.355 0 2.697.056 4.024.166C17.155 8.51 18 9.473 18 10.608v2.513M15 8.25v-1.5m-6 1.5v-1.5m12 9.75-1.5.75a3.354 3.354 0 0 1-3 0 3.354 3.354 0 0 0-3 0 3.354 3.354 0 0 1-3 0 3.354 3.354 0 0 0-3 0 3.354 3.354 0 0 1-3 0L3 16.5m15-3.379a48.474 48.474 0 0 0-6-.371c-2.032 0-4.034.126-6 .371m12 0c.39.049.777.102 1.163.16 1.07.16 1.837 1.094 1.837 2.175v5.169c0 .621-.504 1.125-1.125 1.125H4.125A1.125 1.125 0 0 1 3 20.625v-5.17c0-1.08.768-2.014 1.837-2.174A47.78 47.78 0 0 1 6 13.12\"/></svg>`;\nconst PAINT_BRUSH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42\"/></svg>`;\nconst GIFT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H4.5a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z\"/></svg>`;\nconst FOLDER = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z\"/></svg>`;\nconst DOCUMENT_TEXT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z\"/></svg>`;\nconst BELL = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0\"/></svg>`;\nconst LINK = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244\"/></svg>`;\nconst PHONE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z\"/></svg>`;\nconst COMPUTER_DESKTOP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25\"/></svg>`;\nconst MUSICAL_NOTE = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 9 10.5-3m0 6.553v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 1 1-.99-3.467l2.31-.66a2.25 2.25 0 0 0 1.632-2.163Zm0 0V2.25L9 5.25v10.303m0 0v3.75a2.25 2.25 0 0 1-1.632 2.163l-1.32.377a1.803 1.803 0 0 1-.99-3.467l2.31-.66A2.25 2.25 0 0 0 9 15.553Z\"/></svg>`;\nconst TABLE_CELLS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m8.625 1.125c0 .621-.504 1.125-1.125 1.125h-7.5\"/></svg>`;\nconst MINUS = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M5 12h14\"/></svg>`;\nconst LOCK_CLOSED = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z\"/></svg>`;\nconst ARROWS_POINTING_OUT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15\"/></svg>`;\nconst EYE_SLASH = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88\"/></svg>`;\nconst MAP_PIN = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z\"/><path d=\"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z\"/></svg>`;\nconst ARROWS_RIGHT_LEFT = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5\"/></svg>`;\nconst PAPER_CLIP = /*html*/ `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13\"/></svg>`;\n/** Small lookup for named access from template-string paths. */\nconst ICONS = {\n 'info-circle': INFO_CIRCLE_SOLID,\n 'check-circle': CHECK_CIRCLE_SOLID,\n 'exclamation-triangle': EXCLAMATION_TRIANGLE_SOLID,\n 'x-circle': X_CIRCLE_SOLID,\n 'x-mark': X_MARK,\n 'chevron-down': CHEVRON_DOWN,\n 'chevron-up': CHEVRON_UP,\n 'chevron-right': CHEVRON_RIGHT,\n 'chevron-left': CHEVRON_LEFT,\n 'check': CHECK,\n 'magnifying-glass': MAGNIFYING_GLASS,\n 'search': MAGNIFYING_GLASS, // common alias (table toolbar, inputs)\n 'bars-3': BARS_3,\n 'photo': PHOTO,\n 'ellipsis-horizontal': ELLIPSIS_HORIZONTAL,\n 'trash': TRASH,\n 'plus': PLUS,\n 'camera': CAMERA,\n 'pencil': PENCIL,\n 'arrow-up': ARROW_UP,\n 'arrow-down': ARROW_DOWN,\n 'arrow-right': ARROW_RIGHT,\n 'arrow-trending-up': ARROW_TRENDING_UP,\n 'arrow-trending-down': ARROW_TRENDING_DOWN,\n 'star': STAR_SOLID,\n 'star-outline': STAR_OUTLINE,\n 'circle': CIRCLE_SOLID,\n 'paper-clip': PAPER_CLIP,\n 'paper-airplane': PAPER_AIRPLANE_SOLID,\n 'arrow-down-tray': ARROW_DOWN_TRAY,\n 'arrow-up-tray': ARROW_UP_TRAY,\n 'chat-bubble': CHAT_BUBBLE,\n 'rocket-launch': ROCKET_LAUNCH,\n 'key': KEY,\n 'arrows-right-left': ARROWS_RIGHT_LEFT,\n 'arrows-pointing-out': ARROWS_POINTING_OUT,\n 'eye-slash': EYE_SLASH,\n 'map-pin': MAP_PIN,\n 'fire': FIRE,\n 'cog-6-tooth': COG_6_TOOTH,\n 'settings': COG_6_TOOTH, // common alias\n 'envelope': ENVELOPE,\n 'light-bulb': LIGHT_BULB,\n 'users': USERS,\n 'heart': HEART,\n 'home': HOME,\n 'chart-bar': CHART_BAR,\n 'scissors': SCISSORS,\n 'user': USER,\n 'clipboard': CLIPBOARD,\n 'bug-ant': BUG_ANT,\n 'calendar-days': CALENDAR_DAYS,\n 'sparkles': SPARKLES,\n 'bell-alert': BELL_ALERT,\n 'cube': CUBE,\n 'banknotes': BANKNOTES,\n 'cake': CAKE,\n 'paint-brush': PAINT_BRUSH,\n 'gift': GIFT,\n 'folder': FOLDER,\n 'document-text': DOCUMENT_TEXT,\n 'bell': BELL,\n 'link': LINK,\n 'phone': PHONE,\n 'computer-desktop': COMPUTER_DESKTOP,\n 'musical-note': MUSICAL_NOTE,\n 'lock-closed': LOCK_CLOSED,\n 'table-cells': TABLE_CELLS,\n 'minus': MINUS,\n};\n\nexport { ARROWS_POINTING_OUT, ARROWS_RIGHT_LEFT, ARROW_DOWN, ARROW_DOWN_TRAY, ARROW_RIGHT, ARROW_TRENDING_DOWN, ARROW_TRENDING_UP, ARROW_UP, ARROW_UP_TRAY, BANKNOTES, BARS_3, BELL, BELL_ALERT, BUG_ANT, CAKE, CALENDAR_DAYS, CAMERA, CHART_BAR, CHAT_BUBBLE, CHECK, CHECK_CIRCLE_SOLID, CHEVRON_DOWN, CHEVRON_LEFT, CHEVRON_RIGHT, CHEVRON_UP, CIRCLE_SOLID, CLIPBOARD, COG_6_TOOTH, COMPUTER_DESKTOP, CUBE, DOCUMENT_TEXT, ELLIPSIS_HORIZONTAL, ENVELOPE, EXCLAMATION_TRIANGLE_SOLID, EYE_SLASH, FIRE, FOLDER, FUNNEL, GIFT, HEART, HOME, ICONS, INFO_CIRCLE_SOLID, KEY, LIGHT_BULB, LINK, LOCK_CLOSED, MAGNIFYING_GLASS, MAP_PIN, MINUS, MUSICAL_NOTE, PAINT_BRUSH, PAPER_AIRPLANE_SOLID, PAPER_CLIP, PENCIL, PHONE, PHOTO, PLUS, ROCKET_LAUNCH, SCISSORS, SPARKLES, STAR_OUTLINE, STAR_SOLID, TABLE_CELLS, TRASH, USER, USERS, X_CIRCLE_SOLID, X_MARK };\n//# sourceMappingURL=index.js.map\n","import { html, unsafeHTML } from 'snice';\nimport { ICONS } from './icons/index.js';\n\n/**\n * Reflect only actual string values across a string attribute boundary.\n * Public component properties remain typed JavaScript inputs, so hostile or\n * accidental object values must not be coerced by calling user code.\n */\nconst strictStringAttributeConverter = {\n toAttribute(value) {\n return typeof value === 'string' ? value : null;\n }\n};\n/**\n * Classify a consumer-supplied icon value.\n *\n * This is the single source of truth for icon resolution. `renderIcon` uses it\n * for declarative rendering; components that build DOM imperatively (nav) use\n * it directly, so both paths agree on what counts as an image, a registry\n * name, or plain text.\n */\nfunction classifyIcon(icon) {\n if (icon.startsWith('img://'))\n return { kind: 'img', value: icon.slice(6) };\n if (icon.startsWith('text://'))\n return { kind: 'text', value: icon.slice(7) };\n // URL-shaped, or a filename with an image extension (an optional query\n // string is allowed so cache-busted paths still resolve as images).\n const isUrl = /^(https?:\\/\\/|\\/|\\.\\/|\\.\\.\\/|data:)/.test(icon);\n const isImageFile = /^[^:]*\\w\\.(svg|png|jpe?g|jfif|pjp|gif|webp|avif|jxl|ico|cur|bmp|tiff?|heic|heif|apng)(\\?.*)?$/i.test(icon);\n if (isUrl || isImageFile)\n return { kind: 'img', value: icon };\n if (ICONS[icon])\n return { kind: 'registry', value: icon };\n return { kind: 'text', value: icon };\n}\n/**\n * Detects icon type and returns appropriate template\n *\n * Scheme overrides:\n * - img://path -> forces <img> element\n * - text://content -> forces text content\n *\n * Auto-detection (when no scheme):\n * - URLs (http://, https://, /, ./, ../, data:) -> <img>\n * - Image extensions (svg, png, jpg, jpeg, jfif, pjp, gif, webp, avif, jxl,\n * ico, cur, bmp, tif, tiff, heic, heif, apng) -> <img>\n * - Everything else -> span with text content (emoji, plain text)\n *\n * ⚠️ \"home\" or \"settings\" renders as PLAIN TEXT, not a Material icon.\n * For Material Symbols, use the icon slot instead:\n * <span slot=\"icon\" class=\"material-symbols-outlined\">home</span>\n *\n * Examples:\n * - \"/path/icon.svg\" -> <img>\n * - \"icon.png\" -> <img>\n * - \"img://filename\" -> <img> (forced)\n * - \"🏠\" -> <span> text (emoji)\n * - \"home\" -> <span> text (plain text, NOT a Material icon)\n * - \"text:///not/a/path\" -> <span> text (forced)\n */\nfunction renderIcon(icon, className = 'icon') {\n if (!icon)\n return html ``;\n const { kind, value } = classifyIcon(icon);\n if (kind === 'img') {\n return html `<img class=\"${className}\" src=\"${value}\" alt=\"\" part=\"icon\" />`;\n }\n // Built-in SVG registry (components/icons) — named icons resolve here\n // BEFORE the font-ligature fallback. Without this, names like 'search'\n // render as literal text unless an external icon font is loaded.\n if (kind === 'registry') {\n return html `<span class=\"${className}\" part=\"icon\">${unsafeHTML(ICONS[value])}</span>`;\n }\n // Default: text content (emoji, font icon ligature names)\n // All content is escaped - no HTML injection possible\n // Detect ligature icon names (lowercase words with underscores, e.g. \"search\", \"check_circle\")\n // vs emoji/other text — apply --snice-icon-font (defaults to Material Symbols Outlined)\n if (/^[a-z][a-z0-9_]*$/.test(value)) {\n return html `<span class=\"${className} snice-icon-ligature\" style=\"font-family:var(--snice-icon-font,'Material Symbols Outlined'),sans-serif\" part=\"icon\">${value}</span>`;\n }\n return html `<span class=\"${className}\" part=\"icon\">${value}</span>`;\n}\n/**\n * Fallback accent hues (muted/business tones). Used when CSS vars haven't\n * been applied (test and non-browser environments) or when the 8 accent tokens have\n * been stripped. Keep in lockstep with `theme.css` --snice-color-accent-1..8.\n */\nconst FALLBACK_ACCENTS = [\n 'hsl(214 55% 48%)', 'hsl(27 62% 50%)', 'hsl(160 40% 40%)', 'hsl(275 32% 52%)',\n 'hsl(42 62% 48%)', 'hsl(340 42% 55%)', 'hsl(110 32% 42%)', 'hsl(195 45% 46%)',\n];\n/**\n * Returns the 8-slot accent palette resolved against the current document's\n * CSS variables, with in-process fallback for non-browser contexts. Data-vis\n * components call this instead of hard-coding color arrays so themes flow\n * through automatically.\n *\n * The returned strings are safe for `canvas.fillStyle`, `svg fill`, or\n * inline `style` — they're either a `hsl(...)` literal or whatever the\n * consumer set as `--snice-color-accent-N`.\n */\nfunction getAccentPalette(root) {\n if (typeof getComputedStyle !== 'function')\n return FALLBACK_ACCENTS;\n const target = root ?? document.documentElement;\n const cs = getComputedStyle(target);\n return FALLBACK_ACCENTS.map((fallback, i) => {\n const v = cs.getPropertyValue(`--snice-color-accent-${i + 1}`).trim();\n return v || fallback;\n });\n}\n/**\n * Parses a CSS color string into sRGB components in [0,1]. Handles `rgb()`,\n * `rgba()`, `hsl()`, `hsla()`, and `#hex`. Returns null if unparseable.\n */\nfunction parseCssColor(value) {\n if (!value)\n return null;\n const s = value.trim();\n // Hex: #RGB #RRGGBB #RGBA #RRGGBBAA\n if (s[0] === '#') {\n const hex = s.slice(1);\n const norm = hex.length === 3 || hex.length === 4\n ? hex.slice(0, 3).split('').map(c => c + c).join('')\n : hex.slice(0, 6);\n if (norm.length !== 6)\n return null;\n const n = parseInt(norm, 16);\n return [((n >> 16) & 255) / 255, ((n >> 8) & 255) / 255, (n & 255) / 255];\n }\n // rgb() / rgba()\n const rgbMatch = s.match(/^rgba?\\(\\s*([\\d.]+)[,\\s]+([\\d.]+)[,\\s]+([\\d.]+)/i);\n if (rgbMatch) {\n return [+rgbMatch[1] / 255, +rgbMatch[2] / 255, +rgbMatch[3] / 255];\n }\n // hsl() / hsla() — quick conversion via an offscreen element for accuracy\n // (skip manual HSL→RGB to keep this helper small; browsers will resolve\n // any hsl() via getComputedStyle on the element anyway).\n if (/^hsla?\\(/i.test(s) && typeof document !== 'undefined') {\n const probe = document.createElement('span');\n probe.style.color = s;\n document.body.appendChild(probe);\n const resolved = getComputedStyle(probe).color;\n probe.remove();\n return parseCssColor(resolved);\n }\n return null;\n}\n/**\n * Relative luminance per WCAG 2.x, input in sRGB [0,1].\n */\nfunction luminance(rgb) {\n const lin = rgb.map(c => c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4));\n return 0.2126 * lin[0] + 0.7152 * lin[1] + 0.0722 * lin[2];\n}\n/**\n * Picks a readable text color for the given `bg`, choosing between the\n * theme's existing text tokens. Light bg → `--snice-color-text` (dark text);\n * dark bg → `--snice-color-text-inverse` (light text). Falls back to inverse\n * for unparseable bg (safe default for colored fills).\n *\n * Used by badge/chip (and anything else pairing a colored fill with a label)\n * so the text stays legible regardless of theme — without hardcoding #fff.\n */\nfunction pickContrastColor(bg) {\n const rgb = parseCssColor(bg);\n if (!rgb)\n return 'var(--snice-color-text-inverse)';\n // Threshold 0.55 keeps saturated blues/greens (luminance ~0.2) using the\n // inverse (light) text, and pastels/lightened fills (> 0.55) using the\n // main text token (dark).\n return luminance(rgb) > 0.55\n ? 'var(--snice-color-text)'\n : 'var(--snice-color-text-inverse)';\n}\nconst themeListeners = new Set();\nlet themeObserver = null;\nfunction onThemeChange(fn) {\n if (typeof document === 'undefined')\n return () => { };\n themeListeners.add(fn);\n if (!themeObserver) {\n themeObserver = new MutationObserver(() => {\n for (const listener of themeListeners) {\n try {\n listener();\n }\n catch { }\n }\n });\n themeObserver.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['data-theme', 'class', 'data-theme-variant'],\n });\n }\n return () => {\n themeListeners.delete(fn);\n if (themeListeners.size === 0 && themeObserver) {\n themeObserver.disconnect();\n themeObserver = null;\n }\n };\n}\n\nexport { FALLBACK_ACCENTS, classifyIcon, getAccentPalette, onThemeChange, pickContrastColor, renderIcon, strictStringAttributeConverter };\n//# sourceMappingURL=utils.js.map\n","import { __runInitializers, __esDecorate } from 'tslib';\nimport { element, property, query, render, styles, ready, dispose, watch, on, dispatch, html, css, unsafeHTML } from 'snice';\nimport { renderIcon } from '../utils.js';\nimport { INFO_CIRCLE_SOLID, X_CIRCLE_SOLID, EXCLAMATION_TRIANGLE_SOLID, CHECK_CIRCLE_SOLID } from '../icons/index.js';\n\nvar cssContent = \":host([hidden]){display:none}:host{display:block;--alert-padding:var(--snice-spacing-sm, 0.75rem) var(--snice-spacing-md, 1rem);--alert-border-radius:var(--snice-border-radius-lg, 0.5rem);--alert-font-size:var(--snice-font-size-sm, 0.875rem);--alert-icon-size:1.25rem;--alert-border-width:1px;--alert-bg:var(--snice-color-surface, rgb(255 255 255));--alert-border-color:var(--snice-color-border, rgb(226 226 226));--alert-text-color:var(--snice-color-text, rgb(23 23 23));font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)}.alert{display:flex;align-items:flex-start;gap:var(--snice-spacing-sm,.75rem);padding:var(--alert-padding);border-radius:var(--alert-border-radius);font-size:var(--alert-font-size);line-height:var(--snice-line-height-normal, 1.5);border:var(--alert-border-width) solid var(--alert-border-color);background:var(--alert-bg);color:var(--alert-text-color);position:relative;animation:slideIn var(--snice-transition-medium,250ms) ease}.alert-region{display:contents}.alert--hidden{display:none}@keyframes slideIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideOut{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-10px)}}.alert--hiding{animation:slideOut var(--snice-transition-medium,250ms) ease forwards}:host([variant=info]){--alert-bg:var(--snice-color-primary-subtle, hsl(214 100% 97%));--alert-border-color:var(--snice-color-primary-subtle-hover, hsl(214 95% 93%));--alert-text-color:var(--snice-color-text, rgb(23 23 23))}:host([variant=info]) .alert-icon{color:var(--snice-color-primary,rgb(37 99 235))}:host([variant=success]){--alert-bg:var(--snice-color-success-subtle, hsl(138 76% 97%));--alert-border-color:var(--snice-color-success-subtle-hover, hsl(141 84% 93%));--alert-text-color:var(--snice-color-text, rgb(23 23 23))}:host([variant=success]) .alert-icon{color:var(--snice-color-success,rgb(22 163 74))}:host([variant=warning]){--alert-bg:var(--snice-color-warning-subtle, hsl(55 92% 95%));--alert-border-color:var(--snice-color-warning-subtle-hover, hsl(55 97% 88%));--alert-text-color:var(--snice-color-text, rgb(23 23 23))}:host([variant=warning]) .alert-icon{color:var(--snice-color-warning,rgb(202 138 4))}:host([variant=error]){--alert-bg:var(--snice-color-danger-subtle, hsl(0 86% 97%));--alert-border-color:var(--snice-color-danger-subtle-hover, hsl(0 93% 94%));--alert-text-color:var(--snice-color-text, rgb(23 23 23))}:host([variant=error]) .alert-icon{color:var(--snice-color-danger,rgb(220 38 38))}:host([appearance=accent]) .alert{background:var(--snice-color-surface-container-high,transparent);border:1px solid var(--snice-color-border-subtle,var(--snice-color-border,rgb(226 226 226)));border-left:4px solid var(--alert-border-color);color:var(--snice-color-text,rgb(23 23 23))}:host([appearance=accent][variant=info]) .alert{border-left-color:var(--snice-color-primary,rgb(37 99 235))}:host([appearance=accent][variant=success]) .alert{border-left-color:var(--snice-color-success,rgb(22 163 74))}:host([appearance=accent][variant=warning]) .alert{border-left-color:var(--snice-color-warning,rgb(202 138 4))}:host([appearance=accent][variant=error]) .alert{border-left-color:var(--snice-color-danger,rgb(220 38 38))}:host([appearance=accent][variant=info]) .alert-icon{color:var(--snice-color-primary,rgb(37 99 235))}:host([appearance=accent][variant=success]) .alert-icon{color:var(--snice-color-success,rgb(22 163 74))}:host([appearance=accent][variant=warning]) .alert-icon{color:var(--snice-color-warning,rgb(202 138 4))}:host([appearance=accent][variant=error]) .alert-icon{color:var(--snice-color-danger,rgb(220 38 38))}.alert-icon{flex-shrink:0;width:var(--alert-icon-size);height:var(--alert-icon-size);display:flex;align-items:center;justify-content:center;margin-top:.125rem}.alert-icon svg{width:100%;height:100%}.alert-icon ::slotted(*){display:flex;align-items:center;justify-content:center;width:var(--alert-icon-size);height:var(--alert-icon-size);font-size:var(--alert-icon-size);line-height:1}.alert-icon ::slotted(svg){width:var(--alert-icon-size);height:var(--alert-icon-size)}.alert-icon ::slotted(img){width:var(--alert-icon-size);height:var(--alert-icon-size);object-fit:contain}.alert-icon-content{width:var(--alert-icon-size);height:var(--alert-icon-size);display:block;color:inherit}.alert-content{flex:1;min-width:0}.alert-title{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-weight:var(--snice-font-weight-semibold,600);margin-bottom:var(--snice-spacing-2xs,.25rem)}.alert-title:empty{display:none}.alert-description{color:inherit;opacity:.9}.alert-dismiss{flex-shrink:0;align-self:center;margin-right:-.375rem;width:2rem;height:2rem;padding:0;background:0 0;border:none;cursor:pointer;opacity:.6;transition:opacity var(--snice-transition-fast, 150ms) ease,background-color var(--snice-transition-fast, 150ms) ease;border-radius:var(--snice-border-radius-md,.25rem);display:flex;align-items:center;justify-content:center;color:inherit}.alert-dismiss:hover{opacity:1;background-color:var(--snice-color-overlay-hover,hsl(0 0% 0% / .04))}.alert-dismiss:focus-visible{outline:currentColor solid 2px;outline-offset:1px;opacity:1}.alert-dismiss svg{width:1rem;height:1rem}:host([size=small]){--alert-padding:var(--snice-spacing-xs, 0.5rem) var(--snice-spacing-sm, 0.75rem);--alert-font-size:var(--snice-font-size-xs, 0.75rem);--alert-icon-size:1rem;--alert-border-radius:var(--snice-border-radius-md, 0.25rem)}:host([size=large]){--alert-padding:var(--snice-spacing-md, 1rem) 1.25rem;--alert-font-size:var(--snice-font-size-md, 1rem);--alert-icon-size:1.5rem;--alert-border-radius:var(--snice-border-radius-lg, 0.5rem)}@media (prefers-reduced-motion:reduce){.alert,.alert--hiding{animation-duration:0s}.alert-dismiss{transition-duration:0s}}\";\n\nlet SniceAlert = (() => {\n let _classDecorators = [element('snice-alert')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _appearance_decorators;\n let _appearance_initializers = [];\n let _appearance_extraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _dismissible_decorators;\n let _dismissible_initializers = [];\n let _dismissible_extraInitializers = [];\n let _icon_decorators;\n let _icon_initializers = [];\n let _icon_extraInitializers = [];\n let _duration_decorators;\n let _duration_initializers = [];\n let _duration_extraInitializers = [];\n let _alertElement_decorators;\n let _alertElement_initializers = [];\n let _alertElement_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n let _init_decorators;\n let _cleanup_decorators;\n let _handleTitleChange_decorators;\n let _handleDurationChange_decorators;\n let _pauseCountdown_decorators;\n let _resumeCountdown_decorators;\n let _handleDismiss_decorators;\n let _dispatchAlertHidden_decorators;\n let _dispatchAlertShown_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n constructor() {\n super(...arguments);\n this.variant = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _variant_initializers, 'info'));\n this.size = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.appearance = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _appearance_initializers, 'filled'));\n // No reflection: a `title` attribute on the host would double as a native\n // browser tooltip over the whole alert.\n this.title = (__runInitializers(this, _appearance_extraInitializers), __runInitializers(this, _title_initializers, ''));\n this.dismissible = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _dismissible_initializers, false));\n this.icon = (__runInitializers(this, _dismissible_extraInitializers), __runInitializers(this, _icon_initializers, ''));\n // Auto-dismiss after this many milliseconds; 0 disables. The countdown\n // pauses while the pointer is over the alert.\n this.duration = (__runInitializers(this, _icon_extraInitializers), __runInitializers(this, _duration_initializers, 0));\n this.alertElement = (__runInitializers(this, _duration_extraInitializers), __runInitializers(this, _alertElement_initializers, void 0));\n this.isHidden = (__runInitializers(this, _alertElement_extraInitializers), false);\n this.dismissTimer = null;\n this.countdownStartedAt = 0;\n this.countdownRemaining = 0;\n }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _variant_decorators = [property({})];\n _size_decorators = [property({})];\n _appearance_decorators = [property({})];\n _title_decorators = [property({ reflect: false })];\n _dismissible_decorators = [property({ type: Boolean, })];\n _icon_decorators = [property({})];\n _duration_decorators = [property({ type: Number })];\n _alertElement_decorators = [query('.alert')];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n _init_decorators = [ready()];\n _cleanup_decorators = [dispose()];\n _handleTitleChange_decorators = [watch('title')];\n _handleDurationChange_decorators = [watch('duration', { immediate: false })];\n _pauseCountdown_decorators = [on('mouseenter')];\n _resumeCountdown_decorators = [on('mouseleave')];\n _handleDismiss_decorators = [dispatch('alert-dismiss')];\n _dispatchAlertHidden_decorators = [dispatch('alert-hidden')];\n _dispatchAlertShown_decorators = [dispatch('alert-shown')];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _init_decorators, { kind: \"method\", name: \"init\", static: false, private: false, access: { has: obj => \"init\" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _cleanup_decorators, { kind: \"method\", name: \"cleanup\", static: false, private: false, access: { has: obj => \"cleanup\" in obj, get: obj => obj.cleanup }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleTitleChange_decorators, { kind: \"method\", name: \"handleTitleChange\", static: false, private: false, access: { has: obj => \"handleTitleChange\" in obj, get: obj => obj.handleTitleChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleDurationChange_decorators, { kind: \"method\", name: \"handleDurationChange\", static: false, private: false, access: { has: obj => \"handleDurationChange\" in obj, get: obj => obj.handleDurationChange }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _pauseCountdown_decorators, { kind: \"method\", name: \"pauseCountdown\", static: false, private: false, access: { has: obj => \"pauseCountdown\" in obj, get: obj => obj.pauseCountdown }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _resumeCountdown_decorators, { kind: \"method\", name: \"resumeCountdown\", static: false, private: false, access: { has: obj => \"resumeCountdown\" in obj, get: obj => obj.resumeCountdown }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleDismiss_decorators, { kind: \"method\", name: \"handleDismiss\", static: false, private: false, access: { has: obj => \"handleDismiss\" in obj, get: obj => obj.handleDismiss }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchAlertHidden_decorators, { kind: \"method\", name: \"dispatchAlertHidden\", static: false, private: false, access: { has: obj => \"dispatchAlertHidden\" in obj, get: obj => obj.dispatchAlertHidden }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchAlertShown_decorators, { kind: \"method\", name: \"dispatchAlertShown\", static: false, private: false, access: { has: obj => \"dispatchAlertShown\" in obj, get: obj => obj.dispatchAlertShown }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _variant_decorators, { kind: \"field\", name: \"variant\", static: false, private: false, access: { has: obj => \"variant\" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _appearance_decorators, { kind: \"field\", name: \"appearance\", static: false, private: false, access: { has: obj => \"appearance\" in obj, get: obj => obj.appearance, set: (obj, value) => { obj.appearance = value; } }, metadata: _metadata }, _appearance_initializers, _appearance_extraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _dismissible_decorators, { kind: \"field\", name: \"dismissible\", static: false, private: false, access: { has: obj => \"dismissible\" in obj, get: obj => obj.dismissible, set: (obj, value) => { obj.dismissible = value; } }, metadata: _metadata }, _dismissible_initializers, _dismissible_extraInitializers);\n __esDecorate(null, null, _icon_decorators, { kind: \"field\", name: \"icon\", static: false, private: false, access: { has: obj => \"icon\" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);\n __esDecorate(null, null, _duration_decorators, { kind: \"field\", name: \"duration\", static: false, private: false, access: { has: obj => \"duration\" in obj, get: obj => obj.duration, set: (obj, value) => { obj.duration = value; } }, metadata: _metadata }, _duration_initializers, _duration_extraInitializers);\n __esDecorate(null, null, _alertElement_decorators, { kind: \"field\", name: \"alertElement\", static: false, private: false, access: { has: obj => \"alertElement\" in obj, get: obj => obj.alertElement, set: (obj, value) => { obj.alertElement = value; } }, metadata: _metadata }, _alertElement_initializers, _alertElement_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n render() {\n const hasIcon = this.icon ? this.icon !== 'none' : this.shouldShowDefaultIcon();\n const classes = [\n 'alert',\n `alert--${this.variant}`,\n `alert--${this.size}`,\n this.isHidden ? 'alert--hidden' : ''\n ].filter(Boolean).join(' ');\n const showDefaultIcon = !this.icon || this.icon === 'none';\n const iconClasses = showDefaultIcon ? 'alert-icon alert-icon--default' : 'alert-icon';\n return html /*html*/ `\n <div class=\"${classes}\" part=\"base\" @animationend=${this.handleAnimationEnd}>\n <div class=\"alert-region\" role=\"alert\" aria-live=\"polite\">\n <if value=\"${hasIcon}\">\n <div class=\"${iconClasses}\" part=\"icon\">\n <slot name=\"icon\">\n ${this.icon ? renderIcon(this.icon, 'alert-icon-content') : this.defaultIconSvg()}\n </slot>\n </div>\n </if>\n <div class=\"alert-content\">\n <if value=\"${this.title}\">\n <div class=\"alert-title\">${this.title}</div>\n </if>\n <div class=\"alert-description\">\n <slot></slot>\n </div>\n </div>\n </div>\n <if value=\"${this.dismissible}\">\n <button class=\"alert-dismiss\" type=\"button\" aria-label=\"Dismiss alert\" @click=${this.handleDismiss}>\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\">\n <path d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/>\n </svg>\n </button>\n </if>\n </div>\n `;\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n shouldShowDefaultIcon() {\n // Show default icons for variants unless explicitly disabled\n return this.icon !== 'none';\n }\n init() {\n this.stripNativeTooltip();\n this.startCountdown();\n }\n cleanup() {\n this.clearCountdown();\n }\n // A `title` attribute on the host paints a native tooltip over the whole\n // alert. Accept it as input, then remove it — the property keeps the value.\n handleTitleChange() {\n this.stripNativeTooltip();\n }\n stripNativeTooltip() {\n if (!this.hasAttribute('title'))\n return;\n const value = this.title || this.getAttribute('title') || '';\n this.removeAttribute('title');\n if (this.title !== value) {\n this.title = value;\n }\n }\n handleDurationChange() {\n this.startCountdown();\n }\n pauseCountdown() {\n if (this.dismissTimer === null)\n return;\n clearTimeout(this.dismissTimer);\n this.dismissTimer = null;\n this.countdownRemaining = Math.max(0, this.countdownRemaining - (Date.now() - this.countdownStartedAt));\n }\n resumeCountdown() {\n if (this.duration > 0 && !this.isHidden && this.countdownRemaining > 0) {\n this.armCountdown(this.countdownRemaining);\n }\n }\n startCountdown() {\n this.clearCountdown();\n if (this.duration > 0 && !this.isHidden) {\n this.armCountdown(this.duration);\n }\n }\n armCountdown(ms) {\n this.countdownStartedAt = Date.now();\n this.countdownRemaining = ms;\n this.dismissTimer = setTimeout(() => {\n this.dismissTimer = null;\n this.hide();\n }, ms);\n }\n clearCountdown() {\n if (this.dismissTimer !== null) {\n clearTimeout(this.dismissTimer);\n this.dismissTimer = null;\n }\n this.countdownRemaining = 0;\n }\n /**\n * Default icons sourced from the central Heroicons module. Consumers can\n * override via `<slot name=\"icon\">...</slot>` or the `icon` prop; this\n * fallback is only rendered when neither is supplied.\n */\n defaultIconSvg() {\n const svg = {\n success: CHECK_CIRCLE_SOLID,\n warning: EXCLAMATION_TRIANGLE_SOLID,\n error: X_CIRCLE_SOLID,\n info: INFO_CIRCLE_SOLID,\n }[this.variant] ?? INFO_CIRCLE_SOLID;\n return html /*html*/ `<span class=\"alert-icon-content\" aria-hidden=\"true\">${unsafeHTML(svg)}</span>`;\n }\n handleDismiss() {\n this.hide();\n return {\n variant: this.variant,\n title: this.title\n };\n }\n handleAnimationEnd(event) {\n if (event.animationName === 'slideOut') {\n this.isHidden = true;\n if (this.alertElement) {\n this.alertElement.classList.add('alert--hidden');\n this.alertElement.classList.remove('alert--hiding');\n }\n this.dispatchAlertHidden();\n }\n }\n dispatchAlertHidden() {\n return {\n variant: this.variant,\n title: this.title\n };\n }\n dispatchAlertShown() {\n return {\n variant: this.variant,\n title: this.title\n };\n }\n show() {\n this.isHidden = false;\n if (this.alertElement) {\n this.alertElement.classList.remove('alert--hidden', 'alert--hiding');\n }\n this.startCountdown();\n this.dispatchAlertShown();\n }\n hide() {\n this.clearCountdown();\n if (this.alertElement && !this.isHidden) {\n this.alertElement.classList.add('alert--hiding');\n }\n }\n });\n return _classThis;\n})();\n\nexport { SniceAlert };\n//# sourceMappingURL=snice-alert.js.map\n","import { __esDecorate, __runInitializers } from 'tslib';\nimport { element, state, property, query, render, styles, html, isSafeUrl, css } from 'snice';\nimport { strictStringAttributeConverter, renderIcon } from '../utils.js';\nimport { findFormOwner } from '../form-control-validity.js';\nimport '../icons/index.js';\n\nvar cssContent = \":host([hidden]){display:none}:host{display:inline-block;position:relative;width:auto;cursor:pointer}:host([disabled]){cursor:not-allowed}:host([justify-text=start]) .button{justify-content:flex-start}:host([justify-text=end]) .button{justify-content:flex-end}:host([justify-text=center]) .button{justify-content:center}.button{display:inline-flex;align-items:center;justify-content:center;width:100%;border:1px solid;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-weight:var(--snice-font-weight-medium,500);text-decoration:none;user-select:none;white-space:nowrap;vertical-align:middle;padding:0;box-shadow:var(--snice-shadow-xs,0 1px 2px 0 rgb(0 0 0 / .03));transition:color var(--snice-transition-fast, 150ms) var(--snice-ease-out, cubic-bezier(.22,1,.36,1)),background-color var(--snice-transition-fast, 150ms) var(--snice-ease-out, cubic-bezier(.22,1,.36,1)),border-color var(--snice-transition-fast, 150ms) var(--snice-ease-out, cubic-bezier(.22,1,.36,1)),box-shadow var(--snice-transition-fast, 150ms) var(--snice-ease-out, cubic-bezier(.22,1,.36,1)),transform 180ms var(--snice-ease-spring, cubic-bezier(.34,1.56,.64,1));cursor:inherit;position:relative}.button::before{content:'';position:absolute;inset:0;border-radius:inherit;background:var(--snice-gradient-convex,none);pointer-events:none}.button:active:not(.button--disabled){transition:color 50ms var(--snice-ease-out, ease),background-color 50ms var(--snice-ease-out, ease),border-color 50ms var(--snice-ease-out, ease),box-shadow 50ms var(--snice-ease-out, ease),transform 80ms var(--snice-ease-out, ease);transform:translateY(0) scale(.97)}.button:focus-visible{outline:0;box-shadow:0 0 0 var(--snice-focus-ring-width,2px) var(--snice-focus-ring-color,rgb(59 130 246 / .5))}.button--disabled{opacity:.5;cursor:not-allowed;box-shadow:none}.button--small{font-size:var(--snice-font-size-sm, .875rem);height:2rem;padding:0 var(--snice-spacing-sm,.75rem);border-radius:var(--snice-border-radius-md,.25rem)}.button--medium{font-size:var(--snice-font-size-md, 1rem);height:2.5rem;padding:0 var(--snice-spacing-md,1rem);border-radius:var(--snice-border-radius-md,.25rem)}.button--large{font-size:var(--snice-font-size-lg, 1.125rem);height:3rem;padding:0 var(--snice-spacing-lg,1.5rem);border-radius:var(--snice-border-radius-md,.25rem)}.button--default{background-color:var(--snice-color-surface,rgb(255 255 255));color:var(--snice-color-text,rgb(23 23 23));border-color:var(--snice-color-border,rgb(226 226 226))}.button--default:hover:not(.button--disabled){background-color:var(--snice-color-surface-container-low,rgb(250 250 250));border-color:var(--snice-color-border-hover,rgb(204 204 204));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--default:active:not(.button--disabled){background-color:var(--snice-color-surface-container,rgb(248 248 248));border-color:var(--snice-color-border-hover,rgb(204 204 204));box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--primary{background-color:var(--snice-color-primary,rgb(37 99 235));color:var(--snice-color-text-inverse,rgb(250 250 250));border-color:var(--snice-color-primary,rgb(37 99 235))}.button--primary:hover:not(.button--disabled){background-color:var(--snice-color-primary-hover,rgb(29 78 216));border-color:var(--snice-color-primary-hover,rgb(29 78 216));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--primary:active:not(.button--disabled){background-color:color-mix(in srgb,var(--snice-color-primary,rgb(37 99 235)) 85%,#fff);border-color:color-mix(in srgb,var(--snice-color-primary,rgb(37 99 235)) 85%,#fff);box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--success{background-color:var(--snice-color-success,rgb(22 163 74));color:var(--snice-color-text-inverse,rgb(250 250 250));border-color:var(--snice-color-success,rgb(22 163 74))}.button--success:hover:not(.button--disabled){background-color:var(--snice-color-success-hover,rgb(21 128 61));border-color:var(--snice-color-success-hover,rgb(21 128 61));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--success:active:not(.button--disabled){background-color:color-mix(in srgb,var(--snice-color-success,rgb(22 163 74)) 85%,#fff);border-color:color-mix(in srgb,var(--snice-color-success,rgb(22 163 74)) 85%,#fff);box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--warning{background-color:var(--snice-color-warning,rgb(202 138 4));color:var(--button-warning-text,rgb(69 26 3));border-color:var(--snice-color-warning,rgb(202 138 4))}.button--warning:hover:not(.button--disabled){background-color:var(--snice-color-warning-hover,rgb(161 98 7));border-color:var(--snice-color-warning-hover,rgb(161 98 7));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--warning:active:not(.button--disabled){background-color:color-mix(in srgb,var(--snice-color-warning,rgb(202 138 4)) 85%,#fff);border-color:color-mix(in srgb,var(--snice-color-warning,rgb(202 138 4)) 85%,#fff);box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--danger{background-color:var(--snice-color-danger,rgb(220 38 38));color:var(--snice-color-text-inverse,rgb(250 250 250));border-color:var(--snice-color-danger,rgb(220 38 38))}.button--danger:hover:not(.button--disabled){background-color:var(--snice-color-danger-hover,rgb(185 28 28));border-color:var(--snice-color-danger-hover,rgb(185 28 28));box-shadow:var(--snice-shadow-sm,0 1px 2px 0 rgb(0 0 0 / .05));transform:translateY(-1px)}.button--danger:active:not(.button--disabled){background-color:color-mix(in srgb,var(--snice-color-danger,rgb(220 38 38)) 85%,#fff);border-color:color-mix(in srgb,var(--snice-color-danger,rgb(220 38 38)) 85%,#fff);box-shadow:var(--snice-shadow-inset-sm,inset 0 1px 2px rgb(0 0 0 / .05));transform:translateY(0) scale(.97)}.button--text{background-color:transparent;color:var(--snice-color-primary,rgb(37 99 235));border-color:transparent;box-shadow:none}.button--text::before{display:none}.button--text:hover:not(.button--disabled){background-color:var(--snice-color-primary-alpha,rgb(37 99 235 / .1));color:var(--snice-color-primary-hover,rgb(29 78 216));box-shadow:none;transform:none}.button--text:active:not(.button--disabled){background-color:var(--snice-color-primary-alpha-strong,rgb(37 99 235 / .15));box-shadow:none;transform:none}.button--outline{box-shadow:none}.button--outline::before{display:none}.button--outline.button--default{background-color:transparent;color:var(--snice-color-text,rgb(23 23 23))}.button--outline.button--primary{background-color:transparent;color:var(--snice-color-primary,rgb(37 99 235))}.button--outline.button--success{background-color:transparent;color:var(--snice-color-success,rgb(22 163 74))}.button--outline.button--warning{background-color:transparent;color:var(--snice-color-warning,rgb(202 138 4))}.button--outline.button--danger{background-color:transparent;color:var(--snice-color-danger,rgb(220 38 38))}.button--outline.button--default:hover:not(.button--disabled){background-color:var(--snice-color-surface-hover,rgb(245 245 245));box-shadow:none;transform:none}.button--outline.button--primary:hover:not(.button--disabled){background-color:var(--snice-color-primary-subtle,rgb(239 246 255));color:var(--snice-color-primary-hover,rgb(29 78 216));box-shadow:none;transform:none}.button--outline.button--success:hover:not(.button--disabled){background-color:var(--snice-color-success-subtle,rgb(220 252 231));color:var(--snice-color-success-hover,rgb(21 128 61));box-shadow:none;transform:none}.button--outline.button--warning:hover:not(.button--disabled){background-color:var(--snice-color-warning-subtle,rgb(254 249 195));color:var(--snice-color-warning-hover,rgb(161 98 7));box-shadow:none;transform:none}.button--outline.button--danger:hover:not(.button--disabled){background-color:var(--snice-color-danger-subtle,rgb(254 226 226));color:var(--snice-color-danger-hover,rgb(185 28 28));box-shadow:none;transform:none}.button--outline:active:not(.button--disabled){background-color:var(--snice-color-primary-subtle-hover,var(--snice-color-surface-active,rgb(235 235 235)));box-shadow:none;transform:none}.button--pill{border-radius:var(--snice-border-radius-pill,9999px)}.button--circle{border-radius:var(--snice-border-radius-circle,50%);width:var(--size);padding:0}.button--small.button--circle{--size:2rem}.button--medium.button--circle{--size:2.5rem}.button--large.button--circle{--size:3rem}.button--loading{position:relative;cursor:wait}.button--loading .label{visibility:hidden}.spinner{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:1em;height:1em}.button--loading .spinner{display:block}.spinner::after{content:'';display:block;width:100%;height:100%;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:.6s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.icon-slot{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25em;height:1.25em;line-height:1}.icon-slot:empty{display:none}.icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.25em;height:1.25em;line-height:1}.icon img{width:100%;height:100%;object-fit:contain}.icon svg{width:100%;height:100%}.icon-slot ::slotted(*){display:flex;align-items:center;justify-content:center;font-size:1.25em;line-height:1}.icon-slot ::slotted(svg){width:1.25em;height:1.25em}.icon-slot ::slotted(img){width:1.25em;height:1.25em;object-fit:contain}.button--icon-start .icon,.button--icon-start .icon-slot{margin-right:.5em}.button--icon-end .icon,.button--icon-end .icon-slot{margin-left:.5em}.button--circle .icon,.button--circle .icon-slot{margin:0;transform:none;width:auto;height:auto}.button--circle .icon svg{width:1.25em;height:1.25em}.button--circle .icon-slot ::slotted(*){font-size:1.25em;line-height:1;display:flex;align-items:center;justify-content:center}.button--circle .icon-slot ::slotted(svg){width:1.25em;height:1.25em}@media (prefers-reduced-motion:reduce){.icon-slot,.spinner,button,button:active{transition-duration:0s!important;animation-duration:0s!important}button:active{transform:none}}\";\n\nlet SniceButton = (() => {\n let _classDecorators = [element('snice-button', { formAssociated: true, delegatesFocus: true })];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _formDisabled_decorators;\n let _formDisabled_initializers = [];\n let _formDisabled_extraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _type_decorators;\n let _type_initializers = [];\n let _type_extraInitializers = [];\n let _disabled_decorators;\n let _disabled_initializers = [];\n let _disabled_extraInitializers = [];\n let _loading_decorators;\n let _loading_initializers = [];\n let _loading_extraInitializers = [];\n let _outline_decorators;\n let _outline_initializers = [];\n let _outline_extraInitializers = [];\n let _pill_decorators;\n let _pill_initializers = [];\n let _pill_extraInitializers = [];\n let _circle_decorators;\n let _circle_initializers = [];\n let _circle_extraInitializers = [];\n let _href_decorators;\n let _href_initializers = [];\n let _href_extraInitializers = [];\n let _target_decorators;\n let _target_initializers = [];\n let _target_extraInitializers = [];\n let _download_decorators;\n let _download_initializers = [];\n let _download_extraInitializers = [];\n let _icon_decorators;\n let _icon_initializers = [];\n let _icon_extraInitializers = [];\n let _iconPlacement_decorators;\n let _iconPlacement_initializers = [];\n let _iconPlacement_extraInitializers = [];\n let _justifyText_decorators;\n let _justifyText_initializers = [];\n let _justifyText_extraInitializers = [];\n let _iconSlotChild_decorators;\n let _iconSlotChild_initializers = [];\n let _iconSlotChild_extraInitializers = [];\n let _button_decorators;\n let _button_initializers = [];\n let _button_extraInitializers = [];\n let _spinner_decorators;\n let _spinner_initializers = [];\n let _spinner_extraInitializers = [];\n let _label_decorators;\n let _label_initializers = [];\n let _label_extraInitializers = [];\n let _iconElement_decorators;\n let _iconElement_initializers = [];\n let _iconElement_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _formDisabled_decorators = [state()];\n _variant_decorators = [property({})];\n _size_decorators = [property({})];\n _type_decorators = [property({})];\n _disabled_decorators = [property({ type: Boolean, })];\n _loading_decorators = [property({ type: Boolean, })];\n _outline_decorators = [property({ type: Boolean, })];\n _pill_decorators = [property({ type: Boolean, })];\n _circle_decorators = [property({ type: Boolean, })];\n _href_decorators = [property({ type: String, converter: strictStringAttributeConverter })];\n _target_decorators = [property({ type: String, })];\n _download_decorators = [property({ type: String, })];\n _icon_decorators = [property({ type: String, })];\n _iconPlacement_decorators = [property({ attribute: 'icon-placement', })];\n _justifyText_decorators = [property({ attribute: 'justify-text' })];\n _iconSlotChild_decorators = [query('[slot=\"icon\"]', { light: true })];\n _button_decorators = [query('.button')];\n _spinner_decorators = [query('.spinner')];\n _label_decorators = [query('.label')];\n _iconElement_decorators = [query('.icon')];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _formDisabled_decorators, { kind: \"field\", name: \"formDisabled\", static: false, private: false, access: { has: obj => \"formDisabled\" in obj, get: obj => obj.formDisabled, set: (obj, value) => { obj.formDisabled = value; } }, metadata: _metadata }, _formDisabled_initializers, _formDisabled_extraInitializers);\n __esDecorate(null, null, _variant_decorators, { kind: \"field\", name: \"variant\", static: false, private: false, access: { has: obj => \"variant\" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _type_decorators, { kind: \"field\", name: \"type\", static: false, private: false, access: { has: obj => \"type\" in obj, get: obj => obj.type, set: (obj, value) => { obj.type = value; } }, metadata: _metadata }, _type_initializers, _type_extraInitializers);\n __esDecorate(null, null, _disabled_decorators, { kind: \"field\", name: \"disabled\", static: false, private: false, access: { has: obj => \"disabled\" in obj, get: obj => obj.disabled, set: (obj, value) => { obj.disabled = value; } }, metadata: _metadata }, _disabled_initializers, _disabled_extraInitializers);\n __esDecorate(null, null, _loading_decorators, { kind: \"field\", name: \"loading\", static: false, private: false, access: { has: obj => \"loading\" in obj, get: obj => obj.loading, set: (obj, value) => { obj.loading = value; } }, metadata: _metadata }, _loading_initializers, _loading_extraInitializers);\n __esDecorate(null, null, _outline_decorators, { kind: \"field\", name: \"outline\", static: false, private: false, access: { has: obj => \"outline\" in obj, get: obj => obj.outline, set: (obj, value) => { obj.outline = value; } }, metadata: _metadata }, _outline_initializers, _outline_extraInitializers);\n __esDecorate(null, null, _pill_decorators, { kind: \"field\", name: \"pill\", static: false, private: false, access: { has: obj => \"pill\" in obj, get: obj => obj.pill, set: (obj, value) => { obj.pill = value; } }, metadata: _metadata }, _pill_initializers, _pill_extraInitializers);\n __esDecorate(null, null, _circle_decorators, { kind: \"field\", name: \"circle\", static: false, private: false, access: { has: obj => \"circle\" in obj, get: obj => obj.circle, set: (obj, value) => { obj.circle = value; } }, metadata: _metadata }, _circle_initializers, _circle_extraInitializers);\n __esDecorate(null, null, _href_decorators, { kind: \"field\", name: \"href\", static: false, private: false, access: { has: obj => \"href\" in obj, get: obj => obj.href, set: (obj, value) => { obj.href = value; } }, metadata: _metadata }, _href_initializers, _href_extraInitializers);\n __esDecorate(null, null, _target_decorators, { kind: \"field\", name: \"target\", static: false, private: false, access: { has: obj => \"target\" in obj, get: obj => obj.target, set: (obj, value) => { obj.target = value; } }, metadata: _metadata }, _target_initializers, _target_extraInitializers);\n __esDecorate(null, null, _download_decorators, { kind: \"field\", name: \"download\", static: false, private: false, access: { has: obj => \"download\" in obj, get: obj => obj.download, set: (obj, value) => { obj.download = value; } }, metadata: _metadata }, _download_initializers, _download_extraInitializers);\n __esDecorate(null, null, _icon_decorators, { kind: \"field\", name: \"icon\", static: false, private: false, access: { has: obj => \"icon\" in obj, get: obj => obj.icon, set: (obj, value) => { obj.icon = value; } }, metadata: _metadata }, _icon_initializers, _icon_extraInitializers);\n __esDecorate(null, null, _iconPlacement_decorators, { kind: \"field\", name: \"iconPlacement\", static: false, private: false, access: { has: obj => \"iconPlacement\" in obj, get: obj => obj.iconPlacement, set: (obj, value) => { obj.iconPlacement = value; } }, metadata: _metadata }, _iconPlacement_initializers, _iconPlacement_extraInitializers);\n __esDecorate(null, null, _justifyText_decorators, { kind: \"field\", name: \"justifyText\", static: false, private: false, access: { has: obj => \"justifyText\" in obj, get: obj => obj.justifyText, set: (obj, value) => { obj.justifyText = value; } }, metadata: _metadata }, _justifyText_initializers, _justifyText_extraInitializers);\n __esDecorate(null, null, _iconSlotChild_decorators, { kind: \"field\", name: \"iconSlotChild\", static: false, private: false, access: { has: obj => \"iconSlotChild\" in obj, get: obj => obj.iconSlotChild, set: (obj, value) => { obj.iconSlotChild = value; } }, metadata: _metadata }, _iconSlotChild_initializers, _iconSlotChild_extraInitializers);\n __esDecorate(null, null, _button_decorators, { kind: \"field\", name: \"button\", static: false, private: false, access: { has: obj => \"button\" in obj, get: obj => obj.button, set: (obj, value) => { obj.button = value; } }, metadata: _metadata }, _button_initializers, _button_extraInitializers);\n __esDecorate(null, null, _spinner_decorators, { kind: \"field\", name: \"spinner\", static: false, private: false, access: { has: obj => \"spinner\" in obj, get: obj => obj.spinner, set: (obj, value) => { obj.spinner = value; } }, metadata: _metadata }, _spinner_initializers, _spinner_extraInitializers);\n __esDecorate(null, null, _label_decorators, { kind: \"field\", name: \"label\", static: false, private: false, access: { has: obj => \"label\" in obj, get: obj => obj.label, set: (obj, value) => { obj.label = value; } }, metadata: _metadata }, _label_initializers, _label_extraInitializers);\n __esDecorate(null, null, _iconElement_decorators, { kind: \"field\", name: \"iconElement\", static: false, private: false, access: { has: obj => \"iconElement\" in obj, get: obj => obj.iconElement, set: (obj, value) => { obj.iconElement = value; } }, metadata: _metadata }, _iconElement_initializers, _iconElement_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n constructor() {\n super();\n this.internals = __runInitializers(this, _instanceExtraInitializers);\n this.formDisabled = __runInitializers(this, _formDisabled_initializers, false);\n this.variant = (__runInitializers(this, _formDisabled_extraInitializers), __runInitializers(this, _variant_initializers, 'default'));\n this.size = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.type = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _type_initializers, 'button'));\n this.disabled = (__runInitializers(this, _type_extraInitializers), __runInitializers(this, _disabled_initializers, false));\n this.loading = (__runInitializers(this, _disabled_extraInitializers), __runInitializers(this, _loading_initializers, false));\n this.outline = (__runInitializers(this, _loading_extraInitializers), __runInitializers(this, _outline_initializers, false));\n this.pill = (__runInitializers(this, _outline_extraInitializers), __runInitializers(this, _pill_initializers, false));\n this.circle = (__runInitializers(this, _pill_extraInitializers), __runInitializers(this, _circle_initializers, false));\n this.href = (__runInitializers(this, _circle_extraInitializers), __runInitializers(this, _href_initializers, ''));\n this.target = (__runInitializers(this, _href_extraInitializers), __runInitializers(this, _target_initializers, ''));\n this.download = (__runInitializers(this, _target_extraInitializers), __runInitializers(this, _download_initializers, ''));\n this.icon = (__runInitializers(this, _download_extraInitializers), __runInitializers(this, _icon_initializers, ''));\n this.iconPlacement = (__runInitializers(this, _icon_extraInitializers), __runInitializers(this, _iconPlacement_initializers, 'start'));\n this.justifyText = (__runInitializers(this, _iconPlacement_extraInitializers), __runInitializers(this, _justifyText_initializers, 'center'));\n this.iconSlotChild = (__runInitializers(this, _justifyText_extraInitializers), __runInitializers(this, _iconSlotChild_initializers, void 0));\n this.button = (__runInitializers(this, _iconSlotChild_extraInitializers), __runInitializers(this, _button_initializers, void 0));\n this.spinner = (__runInitializers(this, _button_extraInitializers), __runInitializers(this, _spinner_initializers, void 0));\n this.label = (__runInitializers(this, _spinner_extraInitializers), __runInitializers(this, _label_initializers, void 0));\n this.iconElement = (__runInitializers(this, _label_extraInitializers), __runInitializers(this, _iconElement_initializers, void 0));\n __runInitializers(this, _iconElement_extraInitializers);\n if (typeof this.attachInternals === 'function') {\n this.internals = this.attachInternals();\n }\n }\n get hasIconSlot() {\n return !!this.iconSlotChild;\n }\n get effectiveDisabled() {\n return this.disabled || this.formDisabled;\n }\n get interactionDisabled() {\n return this.effectiveDisabled || this.loading;\n }\n render() {\n const effectiveDisabled = this.effectiveDisabled;\n const hasIcon = this.icon || this.hasIconSlot;\n const showIconStart = hasIcon && this.iconPlacement === 'start';\n const showIconEnd = hasIcon && this.iconPlacement === 'end';\n const classes = [\n 'button',\n `button--${this.variant || 'default'}`,\n `button--${this.size || 'medium'}`,\n this.outline ? 'button--outline' : '',\n this.pill ? 'button--pill' : '',\n this.circle ? 'button--circle' : '',\n this.loading ? 'button--loading' : '',\n effectiveDisabled ? 'button--disabled' : '',\n hasIcon ? `button--has-icon` : '',\n hasIcon ? `button--icon-${this.iconPlacement}` : ''\n ].filter(Boolean).join(' ');\n return html /*html*/ `\n <button class=\"${classes}\" type=\"${this.type}\" ?disabled=\"${effectiveDisabled}\" aria-busy=\"${this.loading}\" part=\"base\" @click=\"${(e) => this.handleInternalClick(e)}\">\n <span class=\"spinner\" part=\"spinner\"></span>\n <if ${showIconStart}>\n <span class=\"icon-slot\" part=\"icon\">\n <slot name=\"icon\">\n <if ${this.icon}>\n ${renderIcon(this.icon, 'icon')}\n </if>\n </slot>\n </span>\n </if>\n <span class=\"label\" part=\"label\">\n <slot></slot>\n </span>\n <if ${showIconEnd}>\n <span class=\"icon-slot\" part=\"icon\">\n <slot name=\"icon\">\n <if ${this.icon}>\n ${renderIcon(this.icon, 'icon')}\n </if>\n </slot>\n </span>\n </if>\n </button>\n `;\n }\n handleInternalClick(event) {\n if (this.interactionDisabled) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n // A non-empty href turns this activation into navigation. Treat an\n // invalid URL as a blocked activation: it must not fall through to form\n // behavior or emit the success-oriented button-click event.\n if (this.href !== '') {\n const href = typeof this.href === 'string' ? this.href.trim() : '';\n if (!href || !isSafeUrl(href)) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n if (this.download) {\n const a = document.createElement('a');\n a.href = href;\n a.download = this.download;\n a.click();\n }\n else if (this.target) {\n window.open(href, this.target, 'noopener');\n }\n else {\n window.location.href = href;\n }\n }\n else {\n // Form behavior is a separate activation mode. A safe, non-empty href\n // takes precedence over type=\"submit\" or type=\"reset\".\n const form = this.internals?.form || this.closest('form');\n if (form) {\n switch (this.type) {\n case 'submit':\n form.requestSubmit();\n break;\n case 'reset':\n form.reset();\n break;\n }\n }\n }\n // Dispatch the custom event\n this.dispatchEvent(new CustomEvent('button-click', {\n bubbles: true,\n composed: true,\n detail: { originalEvent: event }\n }));\n }\n formDisabledCallback(disabled) {\n // The browser reports effective disabledness here, including disabled\n // ancestor fieldsets and their first-legend exception. Keep that state\n // separate so the authored `disabled` property/attribute is untouched.\n this.formDisabled = disabled;\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n // Keep these methods for backwards compatibility if needed\n setLoading(loading) {\n this.loading = loading;\n }\n setDisabled(disabled) {\n this.disabled = disabled;\n }\n setVariant(variant) {\n this.variant = variant;\n }\n focus(options) {\n if (this.effectiveDisabled)\n return;\n this.button?.focus(options);\n }\n blur() {\n this.button?.blur();\n }\n click() {\n if (this.effectiveDisabled)\n return;\n this.button?.click();\n }\n /** Owning form, including association through a `form` attribute. @public */\n get form() {\n return findFormOwner(this, this.internals);\n }\n /** Labels associated with the form-associated host. @public */\n get labels() {\n return this.internals?.labels ?? null;\n }\n });\n return _classThis;\n})();\n\nexport { SniceButton };\n//# sourceMappingURL=snice-button.js.map\n","const validityKeys = [\n 'badInput',\n 'customError',\n 'patternMismatch',\n 'rangeOverflow',\n 'rangeUnderflow',\n 'stepMismatch',\n 'tooLong',\n 'tooShort',\n 'typeMismatch',\n 'valueMissing'\n];\n/** Copy the actionable flags from a native ValidityState. */\nfunction validityFlagsFrom(validity, overrides = {}) {\n const flags = {};\n for (const key of validityKeys)\n flags[key] = validity[key];\n return Object.assign(flags, overrides);\n}\nfunction hasValidityError(flags) {\n return validityKeys.some(key => Boolean(flags[key]));\n}\n/** Keep ElementInternals form-value updates safe in partial DOM implementations. */\nfunction applyElementInternalsFormValue(internals, value, state) {\n // jsdom and other DOM test implementations can expose the ARIA portion of\n // ElementInternals without the form-associated custom-element methods.\n if (!internals || typeof internals.setFormValue !== 'function')\n return;\n if (state === undefined)\n internals.setFormValue(value);\n else\n internals.setFormValue(value, state);\n}\n/** Keep ElementInternals validity updates identical across form controls. */\nfunction applyElementInternalsValidity(internals, flags, message, anchor) {\n // Some DOM test implementations expose a partial ElementInternals object.\n // Keep the component's native-input/proxy fallback usable in that case.\n if (!internals || typeof internals.setValidity !== 'function')\n return;\n if (!hasValidityError(flags)) {\n internals.setValidity({});\n }\n else if (anchor) {\n internals.setValidity(flags, message, anchor);\n }\n else {\n internals.setValidity(flags, message);\n }\n}\n/**\n * ElementInternals.form is authoritative. The fallback keeps DOM test\n * implementations and older partial implementations useful without changing\n * browser ownership semantics.\n */\nfunction findFormOwner(host, internals) {\n if (internals?.form)\n return internals.form;\n const explicitOwner = host.getAttribute('form');\n if (explicitOwner !== null) {\n const root = host.getRootNode();\n if (!('querySelectorAll' in root))\n return null;\n return Array.from(root.querySelectorAll('form[id]'))\n .find((candidate) => candidate instanceof HTMLFormElement && candidate.id === explicitOwner) ?? null;\n }\n return host.closest('form');\n}\n/**\n * Normalize a finite numeric value to the same min-based step lattice used by\n * native range controls. The nearest in-range step wins; midpoint ties move in\n * the positive direction. Invalid/reversed ranges collapse to their minimum.\n */\nfunction normalizeSteppedValue(value, min, max, step) {\n const lower = Number.isFinite(min) ? min : -Infinity;\n const configuredUpper = Number.isFinite(max) ? max : Infinity;\n const upper = configuredUpper < lower ? lower : configuredUpper;\n const effectiveStep = Number.isFinite(step) && step > 0 ? step : 1;\n const base = Number.isFinite(lower) ? lower : 0;\n const clamped = Math.max(lower, Math.min(upper, value));\n let normalized = base + Math.round((clamped - base) / effectiveStep) * effectiveStep;\n if (normalized > upper) {\n normalized = base + Math.floor((upper - base) / effectiveStep) * effectiveStep;\n }\n if (normalized < lower) {\n normalized = base + Math.ceil((lower - base) / effectiveStep) * effectiveStep;\n }\n normalized = Math.max(lower, Math.min(upper, normalized));\n // Extremely large finite inputs can overflow intermediate step arithmetic.\n // Preserve the finite clamped value instead of exposing Infinity/NaN.\n if (!Number.isFinite(normalized))\n return clamped;\n return Number(normalized.toPrecision(15));\n}\n\nexport { applyElementInternalsFormValue, applyElementInternalsValidity, findFormOwner, hasValidityError, normalizeSteppedValue, validityFlagsFrom };\n//# sourceMappingURL=form-control-validity.js.map\n","import { __esDecorate, __runInitializers } from 'tslib';\nimport { element, property, query, queryAll, render, styles, watch, request, dispatch, html, css } from 'snice';\nimport '../alert/snice-alert.js';\nimport '../button/snice-button.js';\nimport '../utils.js';\nimport '../icons/index.js';\nimport '../form-control-validity.js';\n\nvar cssContent = \":host([hidden]){display:none}:host{display:block;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)}.login{max-width:24rem;margin:0 auto}.login--card{background:var(--snice-color-surface-container-high,rgb(252 251 249));border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-lg,.5rem);padding:var(--snice-spacing-xl,2rem);box-shadow:var(--snice-shadow-md,0 4px 6px -1px rgb(0 0 0 / .1),0 2px 4px -2px rgb(0 0 0 / .1))}.login--minimal{background:0 0;border:none;padding:0;box-shadow:none}.login--small{max-width:20rem}.login--large{max-width:28rem}.login__header{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);text-align:center;margin-bottom:var(--snice-spacing-xl,2rem)}.login__title{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);margin:0 0 var(--snice-spacing-xs,.5rem) 0;font-size:var(--snice-heading-xl, 1.5rem);font-weight:var(--snice-font-weight-bold,700);color:var(--snice-color-text,rgb(23 23 23))}.login__subtitle{margin:0;font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.login__form{display:flex;flex-direction:column;gap:var(--snice-spacing-md,1rem)}.login__field{display:flex;flex-direction:column;gap:var(--snice-spacing-2xs,.25rem)}.login__label{font-size:var(--snice-font-size-sm, .875rem);font-weight:var(--snice-font-weight-medium,500);color:var(--snice-color-text,rgb(23 23 23))}.login__input{padding:var(--snice-spacing-sm,.75rem);border:1px solid var(--snice-color-border,rgb(226 226 226));border-radius:var(--snice-border-radius-md,.25rem);font-size:var(--snice-font-size-md, 1rem);font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);transition:border-color var(--snice-transition-fast, 150ms) ease;background:var(--snice-color-surface-container-lowest,hsl(0 0% 100%));color:var(--snice-color-text,rgb(23 23 23))}.login__input:focus-visible{outline:0;border-color:var(--snice-color-border-focus,rgb(59 130 246));box-shadow:0 0 0 var(--snice-focus-ring-width,2px) var(--snice-focus-ring-color,rgb(59 130 246 / .5))}.login__input:disabled{background:var(--snice-color-surface-container-low,rgb(250 250 250));color:var(--snice-color-text-tertiary,rgb(115 115 115));cursor:not-allowed}.login__input--error{border-color:var(--snice-color-danger,rgb(220 38 38))}.login__input--error:focus-visible{border-color:var(--snice-color-danger,rgb(220 38 38));box-shadow:0 0 0 var(--snice-focus-ring-width,2px) var(--snice-color-danger-alpha,rgb(239 68 68 / .2))}.login__options{display:flex;justify-content:space-between;align-items:center;margin:var(--snice-spacing-xs,.5rem) 0}.login__remember{display:flex;align-items:center;gap:var(--snice-spacing-xs,.5rem);font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.login__checkbox{margin:0}.login__forgot{font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-primary,rgb(37 99 235));text-decoration:none;transition:color var(--snice-transition-fast, 150ms) ease}.login__forgot:hover{color:var(--snice-color-primary-hover,rgb(29 78 216));text-decoration:underline}.login__footer{text-align:center;margin-top:var(--snice-spacing-lg,1.5rem)}.login__footer ::slotted(*){font-size:var(--snice-font-size-sm, .875rem);color:var(--snice-color-text-secondary,rgb(82 82 82))}.login__footer ::slotted(a){color:var(--snice-color-primary,rgb(37 99 235));text-decoration:none}.login__footer ::slotted(a:hover){text-decoration:underline}.login--small .login__title{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-size:1.25rem}.login--small .login__button,.login--small .login__input{padding:.625rem;font-size:.875rem}.login--small .login__button{min-height:2.5rem}.login--large .login__title{font-family:var(--snice-font-family-display, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);font-size:1.875rem}.login--large .login__button,.login--large .login__input{padding:1rem;font-size:1.125rem}.login--large .login__button{min-height:3.5rem}[hidden]{display:none}snice-alert{margin-top:var(--snice-spacing-md,1rem)}@media (max-width:640px){.login{max-width:none;margin:0}.login--card{border-radius:0;border-left:none;border-right:none}}@media (prefers-reduced-motion:reduce){*{transition-duration:0s!important;animation-duration:0s!important}}\";\n\nlet SniceLogin = (() => {\n let _classDecorators = [element('snice-login')];\n let _classDescriptor;\n let _classExtraInitializers = [];\n let _classThis;\n let _classSuper = HTMLElement;\n let _instanceExtraInitializers = [];\n let _variant_decorators;\n let _variant_initializers = [];\n let _variant_extraInitializers = [];\n let _size_decorators;\n let _size_initializers = [];\n let _size_extraInitializers = [];\n let _title_decorators;\n let _title_initializers = [];\n let _title_extraInitializers = [];\n let _disabled_decorators;\n let _disabled_initializers = [];\n let _disabled_extraInitializers = [];\n let _loading_decorators;\n let _loading_initializers = [];\n let _loading_extraInitializers = [];\n let _showRememberMe_decorators;\n let _showRememberMe_initializers = [];\n let _showRememberMe_extraInitializers = [];\n let _showForgotPassword_decorators;\n let _showForgotPassword_initializers = [];\n let _showForgotPassword_extraInitializers = [];\n let _actionText_decorators;\n let _actionText_initializers = [];\n let _actionText_extraInitializers = [];\n let _loginContainer_decorators;\n let _loginContainer_initializers = [];\n let _loginContainer_extraInitializers = [];\n let _form_decorators;\n let _form_initializers = [];\n let _form_extraInitializers = [];\n let _usernameInput_decorators;\n let _usernameInput_initializers = [];\n let _usernameInput_extraInitializers = [];\n let _passwordInput_decorators;\n let _passwordInput_initializers = [];\n let _passwordInput_extraInitializers = [];\n let _rememberInput_decorators;\n let _rememberInput_initializers = [];\n let _rememberInput_extraInitializers = [];\n let _alertElement_decorators;\n let _alertElement_initializers = [];\n let _alertElement_extraInitializers = [];\n let _buttonElement_decorators;\n let _buttonElement_initializers = [];\n let _buttonElement_extraInitializers = [];\n let _inputElements_decorators;\n let _inputElements_initializers = [];\n let _inputElements_extraInitializers = [];\n let _alertMessage_decorators;\n let _alertMessage_initializers = [];\n let _alertMessage_extraInitializers = [];\n let _alertVariant_decorators;\n let _alertVariant_initializers = [];\n let _alertVariant_extraInitializers = [];\n let _render_decorators;\n let _styles_decorators;\n let _updateLoginClasses_decorators;\n let _login_decorators;\n let _handleSubmit_decorators;\n let _handleForgotPassword_decorators;\n let _dispatchLoginSuccess_decorators;\n let _dispatchLoginError_decorators;\n (class extends _classSuper {\n static { _classThis = this; }\n static {\n const _metadata = typeof Symbol === \"function\" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;\n _variant_decorators = [property({})];\n _size_decorators = [property({})];\n _title_decorators = [property({})];\n _disabled_decorators = [property({ type: Boolean, })];\n _loading_decorators = [property({ type: Boolean, })];\n _showRememberMe_decorators = [property({ type: Boolean, attribute: 'show-remember-me' })];\n _showForgotPassword_decorators = [property({ type: Boolean, attribute: 'show-forgot-password' })];\n _actionText_decorators = [property({ attribute: 'action-text' })];\n _loginContainer_decorators = [query('.login')];\n _form_decorators = [query('.login__form')];\n _usernameInput_decorators = [query('input[name=\"username\"]')];\n _passwordInput_decorators = [query('input[name=\"password\"]')];\n _rememberInput_decorators = [query('input[name=\"remember\"]')];\n _alertElement_decorators = [query('snice-alert')];\n _buttonElement_decorators = [query('snice-button')];\n _inputElements_decorators = [queryAll('input')];\n _alertMessage_decorators = [property({ attribute: false })];\n _alertVariant_decorators = [property({ attribute: false })];\n _render_decorators = [render()];\n _styles_decorators = [styles()];\n _updateLoginClasses_decorators = [watch('variant', 'size')];\n _login_decorators = [request('login-user')];\n _handleSubmit_decorators = [dispatch('login-attempt', { bubbles: true, composed: true })];\n _handleForgotPassword_decorators = [dispatch('login-forgot-password', { bubbles: true, composed: true })];\n _dispatchLoginSuccess_decorators = [dispatch('login-success', { bubbles: true, composed: true })];\n _dispatchLoginError_decorators = [dispatch('login-error', { bubbles: true, composed: true })];\n __esDecorate(this, null, _render_decorators, { kind: \"method\", name: \"render\", static: false, private: false, access: { has: obj => \"render\" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _styles_decorators, { kind: \"method\", name: \"styles\", static: false, private: false, access: { has: obj => \"styles\" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _updateLoginClasses_decorators, { kind: \"method\", name: \"updateLoginClasses\", static: false, private: false, access: { has: obj => \"updateLoginClasses\" in obj, get: obj => obj.updateLoginClasses }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _login_decorators, { kind: \"method\", name: \"login\", static: false, private: false, access: { has: obj => \"login\" in obj, get: obj => obj.login }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleSubmit_decorators, { kind: \"method\", name: \"handleSubmit\", static: false, private: false, access: { has: obj => \"handleSubmit\" in obj, get: obj => obj.handleSubmit }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _handleForgotPassword_decorators, { kind: \"method\", name: \"handleForgotPassword\", static: false, private: false, access: { has: obj => \"handleForgotPassword\" in obj, get: obj => obj.handleForgotPassword }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchLoginSuccess_decorators, { kind: \"method\", name: \"dispatchLoginSuccess\", static: false, private: false, access: { has: obj => \"dispatchLoginSuccess\" in obj, get: obj => obj.dispatchLoginSuccess }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(this, null, _dispatchLoginError_decorators, { kind: \"method\", name: \"dispatchLoginError\", static: false, private: false, access: { has: obj => \"dispatchLoginError\" in obj, get: obj => obj.dispatchLoginError }, metadata: _metadata }, null, _instanceExtraInitializers);\n __esDecorate(null, null, _variant_decorators, { kind: \"field\", name: \"variant\", static: false, private: false, access: { has: obj => \"variant\" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);\n __esDecorate(null, null, _size_decorators, { kind: \"field\", name: \"size\", static: false, private: false, access: { has: obj => \"size\" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);\n __esDecorate(null, null, _title_decorators, { kind: \"field\", name: \"title\", static: false, private: false, access: { has: obj => \"title\" in obj, get: obj => obj.title, set: (obj, value) => { obj.title = value; } }, metadata: _metadata }, _title_initializers, _title_extraInitializers);\n __esDecorate(null, null, _disabled_decorators, { kind: \"field\", name: \"disabled\", static: false, private: false, access: { has: obj => \"disabled\" in obj, get: obj => obj.disabled, set: (obj, value) => { obj.disabled = value; } }, metadata: _metadata }, _disabled_initializers, _disabled_extraInitializers);\n __esDecorate(null, null, _loading_decorators, { kind: \"field\", name: \"loading\", static: false, private: false, access: { has: obj => \"loading\" in obj, get: obj => obj.loading, set: (obj, value) => { obj.loading = value; } }, metadata: _metadata }, _loading_initializers, _loading_extraInitializers);\n __esDecorate(null, null, _showRememberMe_decorators, { kind: \"field\", name: \"showRememberMe\", static: false, private: false, access: { has: obj => \"showRememberMe\" in obj, get: obj => obj.showRememberMe, set: (obj, value) => { obj.showRememberMe = value; } }, metadata: _metadata }, _showRememberMe_initializers, _showRememberMe_extraInitializers);\n __esDecorate(null, null, _showForgotPassword_decorators, { kind: \"field\", name: \"showForgotPassword\", static: false, private: false, access: { has: obj => \"showForgotPassword\" in obj, get: obj => obj.showForgotPassword, set: (obj, value) => { obj.showForgotPassword = value; } }, metadata: _metadata }, _showForgotPassword_initializers, _showForgotPassword_extraInitializers);\n __esDecorate(null, null, _actionText_decorators, { kind: \"field\", name: \"actionText\", static: false, private: false, access: { has: obj => \"actionText\" in obj, get: obj => obj.actionText, set: (obj, value) => { obj.actionText = value; } }, metadata: _metadata }, _actionText_initializers, _actionText_extraInitializers);\n __esDecorate(null, null, _loginContainer_decorators, { kind: \"field\", name: \"loginContainer\", static: false, private: false, access: { has: obj => \"loginContainer\" in obj, get: obj => obj.loginContainer, set: (obj, value) => { obj.loginContainer = value; } }, metadata: _metadata }, _loginContainer_initializers, _loginContainer_extraInitializers);\n __esDecorate(null, null, _form_decorators, { kind: \"field\", name: \"form\", static: false, private: false, access: { has: obj => \"form\" in obj, get: obj => obj.form, set: (obj, value) => { obj.form = value; } }, metadata: _metadata }, _form_initializers, _form_extraInitializers);\n __esDecorate(null, null, _usernameInput_decorators, { kind: \"field\", name: \"usernameInput\", static: false, private: false, access: { has: obj => \"usernameInput\" in obj, get: obj => obj.usernameInput, set: (obj, value) => { obj.usernameInput = value; } }, metadata: _metadata }, _usernameInput_initializers, _usernameInput_extraInitializers);\n __esDecorate(null, null, _passwordInput_decorators, { kind: \"field\", name: \"passwordInput\", static: false, private: false, access: { has: obj => \"passwordInput\" in obj, get: obj => obj.passwordInput, set: (obj, value) => { obj.passwordInput = value; } }, metadata: _metadata }, _passwordInput_initializers, _passwordInput_extraInitializers);\n __esDecorate(null, null, _rememberInput_decorators, { kind: \"field\", name: \"rememberInput\", static: false, private: false, access: { has: obj => \"rememberInput\" in obj, get: obj => obj.rememberInput, set: (obj, value) => { obj.rememberInput = value; } }, metadata: _metadata }, _rememberInput_initializers, _rememberInput_extraInitializers);\n __esDecorate(null, null, _alertElement_decorators, { kind: \"field\", name: \"alertElement\", static: false, private: false, access: { has: obj => \"alertElement\" in obj, get: obj => obj.alertElement, set: (obj, value) => { obj.alertElement = value; } }, metadata: _metadata }, _alertElement_initializers, _alertElement_extraInitializers);\n __esDecorate(null, null, _buttonElement_decorators, { kind: \"field\", name: \"buttonElement\", static: false, private: false, access: { has: obj => \"buttonElement\" in obj, get: obj => obj.buttonElement, set: (obj, value) => { obj.buttonElement = value; } }, metadata: _metadata }, _buttonElement_initializers, _buttonElement_extraInitializers);\n __esDecorate(null, null, _inputElements_decorators, { kind: \"field\", name: \"inputElements\", static: false, private: false, access: { has: obj => \"inputElements\" in obj, get: obj => obj.inputElements, set: (obj, value) => { obj.inputElements = value; } }, metadata: _metadata }, _inputElements_initializers, _inputElements_extraInitializers);\n __esDecorate(null, null, _alertMessage_decorators, { kind: \"field\", name: \"alertMessage\", static: false, private: false, access: { has: obj => \"alertMessage\" in obj, get: obj => obj.alertMessage, set: (obj, value) => { obj.alertMessage = value; } }, metadata: _metadata }, _alertMessage_initializers, _alertMessage_extraInitializers);\n __esDecorate(null, null, _alertVariant_decorators, { kind: \"field\", name: \"alertVariant\", static: false, private: false, access: { has: obj => \"alertVariant\" in obj, get: obj => obj.alertVariant, set: (obj, value) => { obj.alertVariant = value; } }, metadata: _metadata }, _alertVariant_initializers, _alertVariant_extraInitializers);\n __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: \"class\", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);\n _classThis = _classDescriptor.value;\n if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });\n __runInitializers(_classThis, _classExtraInitializers);\n }\n render() {\n const loginClasses = ['login', `login--${this.variant}`, `login--${this.size}`].join(' ');\n return html /*html*/ `\n <div part=\"base\" class=\"${loginClasses}\">\n <slot name=\"before-header\"></slot>\n\n <div part=\"header\" class=\"login__header\">\n <h1 part=\"title\" class=\"login__title\">${this.title}</h1>\n <slot name=\"subtitle\">\n <p class=\"login__subtitle\">Enter your credentials to continue</p>\n </slot>\n </div>\n\n <slot name=\"after-header\"></slot>\n <slot name=\"before-form\"></slot>\n\n <form part=\"form\" class=\"login__form\" @submit=${(e) => this.handleSubmit(e)}>\n <slot name=\"form-top\"></slot>\n\n <div class=\"login__field\">\n <label class=\"login__label\" for=\"username\">Username</label>\n <input\n class=\"login__input\"\n type=\"text\"\n name=\"username\"\n id=\"username\"\n required\n autocomplete=\"username\"\n placeholder=\"Enter your username\"\n ?disabled=${this.disabled || this.loading}\n />\n </div>\n\n <slot name=\"between-fields\"></slot>\n\n <div class=\"login__field\">\n <label class=\"login__label\" for=\"password\">Password</label>\n <input\n class=\"login__input\"\n type=\"password\"\n name=\"password\"\n id=\"password\"\n required\n autocomplete=\"current-password\"\n placeholder=\"Enter your password\"\n ?disabled=${this.disabled || this.loading}\n @keydown=${(e) => this.handleEnterKey(e)}\n />\n </div>\n\n <if ${this.showRememberMe || this.showForgotPassword}>\n <div class=\"login__options\">\n <if ${this.showRememberMe}>\n <label class=\"login__remember\">\n <input class=\"login__checkbox\" type=\"checkbox\" name=\"remember\" ?disabled=\"${this.disabled || this.loading}\" />\n Remember me\n </label>\n </if>\n\n <if ${this.showForgotPassword}>\n <a href=\"#\" class=\"login__forgot\" @click=${(e) => this.handleForgotPassword(e)}>Forgot password?</a>\n </if>\n </div>\n </if>\n\n <slot name=\"before-submit\"></slot>\n\n <snice-button\n type=\"submit\"\n variant=\"primary\"\n ?disabled=${this.disabled}\n ?loading=${this.loading}\n @click=${(e) => this.handleButtonClick(e)}>\n ${this.actionText}\n </snice-button>\n\n <slot name=\"after-submit\"></slot>\n </form>\n\n <slot name=\"after-form\"></slot>\n\n <if ${this.alertMessage}>\n <snice-alert variant=\"${this.alertVariant}\">${this.alertMessage}</snice-alert>\n </if>\n\n <div part=\"footer\" class=\"login__footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n `;\n }\n styles() {\n return css /*css*/ `${cssContent}`;\n }\n updateLoginClasses() {\n if (this.loginContainer) {\n this.loginContainer.className = `login login--${this.variant} login--${this.size}`;\n }\n }\n async *login(credentials) {\n if (!credentials) {\n credentials = this.getFormData();\n }\n if (!credentials.username || !credentials.password) {\n return {\n success: false,\n error: 'Username and password are required'\n };\n }\n try {\n const result = await (yield credentials);\n return result;\n }\n catch (error) {\n return {\n success: false,\n error: error instanceof Error ? error.message : 'Login failed'\n };\n }\n }\n async handleButtonClick(event) {\n event.preventDefault();\n // Trigger form submit\n if (this.form) {\n this.form.requestSubmit();\n }\n }\n async handleSubmit(event) {\n event.preventDefault();\n if (this.loading || this.disabled) {\n return;\n }\n this.clearAlert();\n this.loading = true;\n this.updateLoadingState();\n // Wait a tick to ensure the form is properly rendered\n await new Promise(resolve => setTimeout(resolve, 0));\n try {\n const credentials = this.getFormData();\n if (!credentials.username || !credentials.password) {\n this.showAlert('Username and password are required', 'error');\n this.loading = false;\n this.updateLoadingState();\n return;\n }\n const result = await this.login(credentials);\n if (result.success) {\n this.showAlert('Login successful!', 'success');\n this.dispatchLoginSuccess(result);\n }\n else {\n this.showAlert(result.error || 'Login failed', 'error');\n this.dispatchLoginError(result.error || 'Login failed');\n }\n }\n catch (error) {\n const errorMessage = error instanceof Error ? error.message : 'Login failed';\n this.showAlert(errorMessage, 'error');\n this.dispatchLoginError(errorMessage);\n }\n finally {\n this.loading = false;\n this.updateLoadingState();\n }\n const credentials = this.getFormData();\n return {\n username: credentials.username,\n timestamp: new Date().toISOString()\n };\n }\n handleEnterKey(event) {\n if (event.key === 'Enter' && !this.loading && !this.disabled && this.form) {\n this.form.requestSubmit();\n }\n }\n handleForgotPassword(event) {\n event.preventDefault();\n return {\n timestamp: new Date().toISOString()\n };\n }\n dispatchLoginSuccess(result) {\n return { timestamp: new Date().toISOString() };\n }\n dispatchLoginError(error) {\n return {\n error,\n timestamp: new Date().toISOString()\n };\n }\n getFormData() {\n const usernameInput = this.shadowRoot?.querySelector('#username');\n const passwordInput = this.shadowRoot?.querySelector('#password');\n const rememberInput = this.shadowRoot?.querySelector('input[name=\"remember\"]');\n return {\n username: usernameInput?.value || '',\n password: passwordInput?.value || '',\n remember: rememberInput?.checked || false\n };\n }\n showAlert(message, variant) {\n this.alertMessage = message;\n this.alertVariant = variant;\n this.updateAlert();\n }\n clearAlert() {\n this.alertMessage = '';\n this.alertVariant = '';\n this.updateAlert();\n }\n updateAlert() {\n if (this.alertElement) {\n this.alertElement.setAttribute('variant', this.alertVariant);\n this.alertElement.textContent = this.alertMessage;\n if (this.alertMessage) {\n this.alertElement.removeAttribute('hidden');\n }\n else {\n this.alertElement.setAttribute('hidden', '');\n }\n }\n }\n updateLoadingState() {\n if (this.buttonElement) {\n if (this.loading) {\n this.buttonElement.setAttribute('loading', '');\n }\n else {\n this.buttonElement.removeAttribute('loading');\n }\n if (this.disabled) {\n this.buttonElement.setAttribute('disabled', '');\n }\n else {\n this.buttonElement.removeAttribute('disabled');\n }\n }\n this.inputElements?.forEach(input => {\n if (this.disabled || this.loading) {\n input.setAttribute('disabled', '');\n }\n else {\n input.removeAttribute('disabled');\n }\n });\n }\n setError(message) {\n this.showAlert(message, 'error');\n }\n clearError() {\n this.clearAlert();\n }\n setCredentials(credentials) {\n if (credentials.username !== undefined && this.usernameInput) {\n this.usernameInput.value = credentials.username;\n }\n if (credentials.password !== undefined && this.passwordInput) {\n this.passwordInput.value = credentials.password;\n }\n if (credentials.remember !== undefined && this.rememberInput) {\n this.rememberInput.checked = credentials.remember;\n }\n }\n reset() {\n if (this.form) {\n this.form.reset();\n }\n this.clearAlert();\n this.loading = false;\n }\n constructor() {\n super(...arguments);\n this.variant = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _variant_initializers, 'default'));\n this.size = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));\n this.title = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _title_initializers, 'Sign In'));\n this.disabled = (__runInitializers(this, _title_extraInitializers), __runInitializers(this, _disabled_initializers, false));\n this.loading = (__runInitializers(this, _disabled_extraInitializers), __runInitializers(this, _loading_initializers, false));\n this.showRememberMe = (__runInitializers(this, _loading_extraInitializers), __runInitializers(this, _showRememberMe_initializers, true));\n this.showForgotPassword = (__runInitializers(this, _showRememberMe_extraInitializers), __runInitializers(this, _showForgotPassword_initializers, true));\n this.actionText = (__runInitializers(this, _showForgotPassword_extraInitializers), __runInitializers(this, _actionText_initializers, 'Sign In'));\n this.loginContainer = (__runInitializers(this, _actionText_extraInitializers), __runInitializers(this, _loginContainer_initializers, void 0));\n this.form = (__runInitializers(this, _loginContainer_extraInitializers), __runInitializers(this, _form_initializers, void 0));\n this.usernameInput = (__runInitializers(this, _form_extraInitializers), __runInitializers(this, _usernameInput_initializers, void 0));\n this.passwordInput = (__runInitializers(this, _usernameInput_extraInitializers), __runInitializers(this, _passwordInput_initializers, void 0));\n this.rememberInput = (__runInitializers(this, _passwordInput_extraInitializers), __runInitializers(this, _rememberInput_initializers, void 0));\n this.alertElement = (__runInitializers(this, _rememberInput_extraInitializers), __runInitializers(this, _alertElement_initializers, void 0));\n this.buttonElement = (__runInitializers(this, _alertElement_extraInitializers), __runInitializers(this, _buttonElement_initializers, void 0));\n this.inputElements = (__runInitializers(this, _buttonElement_extraInitializers), __runInitializers(this, _inputElements_initializers, void 0));\n // Public: consumers (e.g. the React template) drive the inline alert\n // banner via these props instead of calling showAlert().\n this.alertMessage = (__runInitializers(this, _inputElements_extraInitializers), __runInitializers(this, _alertMessage_initializers, ''));\n this.alertVariant = (__runInitializers(this, _alertMessage_extraInitializers), __runInitializers(this, _alertVariant_initializers, ''));\n __runInitializers(this, _alertVariant_extraInitializers);\n }\n });\n return _classThis;\n})();\n\nexport { SniceLogin };\n//# sourceMappingURL=snice-login.js.map\n"],"names":["__esDecorate","ctor","descriptorIn","decorators","contextIn","initializers","extraInitializers","accept","f","TypeError","_","kind","key","target","prototype","descriptor","Object","getOwnPropertyDescriptor","name","done","i","length","context","p","access","addInitializer","push","result","get","set","init","unshift","defineProperty","__runInitializers","thisArg","value","useValue","arguments","call","SuppressedError","INFO_CIRCLE_SOLID","CHECK_CIRCLE_SOLID","EXCLAMATION_TRIANGLE_SOLID","X_CIRCLE_SOLID","MAGNIFYING_GLASS","COG_6_TOOTH","ICONS","check","search","photo","trash","plus","camera","pencil","star","circle","fire","settings","envelope","users","heart","home","scissors","user","clipboard","sparkles","cube","banknotes","cake","gift","folder","bell","link","phone","minus","strictStringAttributeConverter","toAttribute","renderIcon","icon","className","html","startsWith","slice","isUrl","test","isImageFile","classifyIcon","unsafeHTML","_classDescriptor","_classThis","_variant_decorators","_size_decorators","_appearance_decorators","_title_decorators","_dismissible_decorators","_icon_decorators","_duration_decorators","_alertElement_decorators","_render_decorators","_styles_decorators","_init_decorators","_cleanup_decorators","_handleTitleChange_decorators","_handleDurationChange_decorators","_pauseCountdown_decorators","_resumeCountdown_decorators","_handleDismiss_decorators","_dispatchAlertHidden_decorators","_dispatchAlertShown_decorators","_classDecorators","element","_classExtraInitializers","_classSuper","HTMLElement","_instanceExtraInitializers","_variant_initializers","_variant_extraInitializers","_size_initializers","_size_extraInitializers","_appearance_initializers","_appearance_extraInitializers","_title_initializers","_title_extraInitializers","_dismissible_initializers","_dismissible_extraInitializers","_icon_initializers","_icon_extraInitializers","_duration_initializers","_duration_extraInitializers","_alertElement_initializers","_alertElement_extraInitializers","this","constructor","super","variant","size","appearance","title","dismissible","duration","alertElement","isHidden","dismissTimer","countdownStartedAt","countdownRemaining","_metadata","Symbol","metadata","create","property","reflect","type","Boolean","Number","query","render","styles","ready","dispose","watch","immediate","on","dispatch","static","private","has","obj","cleanup","handleTitleChange","handleDurationChange","pauseCountdown","resumeCountdown","handleDismiss","dispatchAlertHidden","dispatchAlertShown","enumerable","configurable","writable","hasIcon","shouldShowDefaultIcon","classes","filter","join","handleAnimationEnd","defaultIconSvg","css","stripNativeTooltip","startCountdown","clearCountdown","hasAttribute","getAttribute","removeAttribute","clearTimeout","Math","max","Date","now","armCountdown","ms","setTimeout","hide","success","warning","error","info","event","animationName","classList","add","remove","show","_formDisabled_decorators","_type_decorators","_disabled_decorators","_loading_decorators","_outline_decorators","_pill_decorators","_circle_decorators","_href_decorators","_target_decorators","_download_decorators","_iconPlacement_decorators","_justifyText_decorators","_iconSlotChild_decorators","_button_decorators","_spinner_decorators","_label_decorators","_iconElement_decorators","formAssociated","delegatesFocus","_formDisabled_initializers","_formDisabled_extraInitializers","_type_initializers","_type_extraInitializers","_disabled_initializers","_disabled_extraInitializers","_loading_initializers","_loading_extraInitializers","_outline_initializers","_outline_extraInitializers","_pill_initializers","_pill_extraInitializers","_circle_initializers","_circle_extraInitializers","_href_initializers","_href_extraInitializers","_target_initializers","_target_extraInitializers","_download_initializers","_download_extraInitializers","_iconPlacement_initializers","_iconPlacement_extraInitializers","_justifyText_initializers","_justifyText_extraInitializers","_iconSlotChild_initializers","_iconSlotChild_extraInitializers","_button_initializers","_button_extraInitializers","_spinner_initializers","_spinner_extraInitializers","_label_initializers","_label_extraInitializers","_iconElement_initializers","_iconElement_extraInitializers","state","String","converter","attribute","light","formDisabled","disabled","loading","outline","pill","href","download","iconPlacement","justifyText","iconSlotChild","button","spinner","label","iconElement","internals","attachInternals","hasIconSlot","effectiveDisabled","interactionDisabled","showIconStart","showIconEnd","e","handleInternalClick","preventDefault","stopPropagation","trim","isSafeUrl","a","document","createElement","click","window","open","location","form","closest","requestSubmit","reset","dispatchEvent","CustomEvent","bubbles","composed","detail","originalEvent","formDisabledCallback","setLoading","setDisabled","setVariant","focus","options","blur","host","explicitOwner","root","getRootNode","Array","from","querySelectorAll","find","candidate","HTMLFormElement","id","findFormOwner","labels","SniceLogin","_showRememberMe_decorators","_showForgotPassword_decorators","_actionText_decorators","_loginContainer_decorators","_form_decorators","_usernameInput_decorators","_passwordInput_decorators","_rememberInput_decorators","_buttonElement_decorators","_inputElements_decorators","_alertMessage_decorators","_alertVariant_decorators","_updateLoginClasses_decorators","_login_decorators","_handleSubmit_decorators","_handleForgotPassword_decorators","_dispatchLoginSuccess_decorators","_dispatchLoginError_decorators","_showRememberMe_initializers","_showRememberMe_extraInitializers","_showForgotPassword_initializers","_showForgotPassword_extraInitializers","_actionText_initializers","_actionText_extraInitializers","_loginContainer_initializers","_loginContainer_extraInitializers","_form_initializers","_form_extraInitializers","_usernameInput_initializers","_usernameInput_extraInitializers","_passwordInput_initializers","_passwordInput_extraInitializers","_rememberInput_initializers","_rememberInput_extraInitializers","_buttonElement_initializers","_buttonElement_extraInitializers","_inputElements_initializers","_inputElements_extraInitializers","_alertMessage_initializers","_alertMessage_extraInitializers","_alertVariant_initializers","_alertVariant_extraInitializers","queryAll","request","updateLoginClasses","login","handleSubmit","handleForgotPassword","dispatchLoginSuccess","dispatchLoginError","showRememberMe","showForgotPassword","actionText","loginContainer","usernameInput","passwordInput","rememberInput","buttonElement","inputElements","alertMessage","alertVariant","loginClasses","handleEnterKey","handleButtonClick","credentials","getFormData","username","password","Error","message","clearAlert","updateLoadingState","Promise","resolve","showAlert","errorMessage","timestamp","toISOString","shadowRoot","querySelector","remember","checked","updateAlert","setAttribute","textContent","forEach","input","setError","clearError","setCredentials","undefined"],"mappings":"2JAiEO,SAASA,EAAaC,EAAMC,EAAcC,EAAYC,EAAWC,EAAcC,GACpF,SAASC,EAAOC,GAAK,QAAU,IAANA,GAA6B,mBAANA,EAAkB,MAAM,IAAIC,UAAU,qBAAsB,OAAOD,CAAG,CAKtH,IAJA,IAGIE,EAHAC,EAAOP,EAAUO,KAAMC,EAAe,WAATD,EAAoB,MAAiB,WAATA,EAAoB,MAAQ,QACrFE,GAAUX,GAAgBD,EAAOG,EAAkB,OAAIH,EAAOA,EAAKa,UAAY,KAC/EC,EAAab,IAAiBW,EAASG,OAAOC,yBAAyBJ,EAAQT,EAAUc,MAAQ,IAC9FC,GAAO,EACLC,EAAIjB,EAAWkB,OAAS,EAAGD,GAAK,EAAGA,IAAK,CAC7C,IAAIE,EAAU,CAAA,EACd,IAAK,IAAIC,KAAKnB,EAAWkB,EAAQC,GAAW,WAANA,EAAiB,CAAA,EAAKnB,EAAUmB,GACtE,IAAK,IAAIA,KAAKnB,EAAUoB,OAAQF,EAAQE,OAAOD,GAAKnB,EAAUoB,OAAOD,GACrED,EAAQG,eAAiB,SAAUjB,GAAK,GAAIW,EAAM,MAAM,IAAIV,UAAU,0DAA2DH,EAAkBoB,KAAKnB,EAAOC,GAAK,MAAQ,EAC5K,IAAImB,GAAS,EAAIxB,EAAWiB,IAAa,aAATT,EAAsB,CAAEiB,IAAKb,EAAWa,IAAKC,IAAKd,EAAWc,KAAQd,EAAWH,GAAMU,GACtH,GAAa,aAATX,EAAqB,CACrB,QAAe,IAAXgB,EAAmB,SACvB,GAAe,OAAXA,GAAqC,iBAAXA,EAAqB,MAAM,IAAIlB,UAAU,oBACnEC,EAAIH,EAAO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