@vireo-ai/trellis-ui 0.1.39 → 0.1.41
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/package.json +1 -1
- package/packages/client/src/components/data-grid/styles.css +73 -0
- package/packages/client/src/components/select/styles.css +14 -0
- package/packages/client/src/styles/components.css +1 -0
- package/packages/client/src/styles/generated-sources.css +1 -1
- package/packages/client/types/assets/full-runtime.generated.d.ts +1 -1
- package/packages/client/types/components/badge/contract.d.ts +1 -1
- package/packages/client/types/components/button/contract.d.ts +1 -1
- package/packages/client/types/components/card/contract.d.ts +2 -2
- package/packages/client/types/components/checkbox/contract.d.ts +6 -6
- package/packages/client/types/components/common.d.ts +3 -1
- package/packages/client/types/components/data-grid/contract.d.ts +107 -0
- package/packages/client/types/components/data-grid/entry.generated.d.ts +5 -0
- package/packages/client/types/components/data-grid/index.d.ts +34 -0
- package/packages/client/types/components/data-grid/model.d.ts +43 -0
- package/packages/client/types/components/data-grid/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/date-picker/contract.d.ts +1 -1
- package/packages/client/types/components/date-picker/machine.d.ts +2 -2
- package/packages/client/types/components/entry.generated.d.ts +1 -0
- package/packages/client/types/components/menu/contract.d.ts +1 -1
- package/packages/client/types/components/radio/contract.d.ts +4 -4
- package/packages/client/types/components/runtime.d.ts +3 -0
- package/packages/client/types/components/select/contract.d.ts +10 -1
- package/packages/client/types/components/select/machine.d.ts +20 -2
- package/packages/client/types/components/sidebar/contract.d.ts +1 -1
- package/packages/client/types/components/table/contract.d.ts +3 -3
- package/packages/client/types/components/toast/contract.d.ts +1 -1
- package/packages/client/types/components/toast/machine.d.ts +1 -1
- package/packages/client/types/directives/sortable.d.ts +6 -0
- package/packages/client/types/runtime/drag-and-drop/sortable/contract.d.ts +6 -1
- package/packages/client/types/runtime/drag-and-drop/sortable/ghost.d.ts +5 -2
- package/packages/client/types/runtime/index.d.ts +1 -0
- package/packages/client/types/runtime/virtualizer-fragment.d.ts +14 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +82 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/build-metadata.json +287 -243
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/motion.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/resizable.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/sortable.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{capability-motion-VFYcNVM5.js → capability-motion-C_8mc71v.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{capability-motion-VFYcNVM5.js.map → capability-motion-C_8mc71v.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-resizable-Bga8TngJ.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{capability-resizable-C6LKIbpv.js.map → capability-resizable-Bga8TngJ.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-Ds2wQEQq.js +3 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-Ds2wQEQq.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/common-BOd_thC-.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-Bmzg6DLB.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-Bmzg6DLB.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{drag-and-drop-BV6kB47L.js → drag-and-drop-DHq3udf7.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{drag-and-drop-BV6kB47L.js.map → drag-and-drop-DHq3udf7.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-LUzMUcng.js → entry.generated-51hjJ_lu.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-LUzMUcng.js.map → entry.generated-51hjJ_lu.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-B2rTvkxi.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-B2rTvkxi.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BLloDlP5.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BLloDlP5.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-UHQD4FyC.js → entry.generated-BO0EDjBb.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-UHQD4FyC.js.map → entry.generated-BO0EDjBb.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-2VgVfygk.js → entry.generated-BPZeXRC3.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-2VgVfygk.js.map → entry.generated-BPZeXRC3.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-D91HRlIV.js → entry.generated-BoOsILKj.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-D91HRlIV.js.map → entry.generated-BoOsILKj.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DI48yD0K.js → entry.generated-C1JdfrdC.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DI48yD0K.js.map → entry.generated-C1JdfrdC.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-BVBXXN6t.js → entry.generated-C8pt5QeK.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-BVBXXN6t.js.map → entry.generated-C8pt5QeK.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-bERshNT6.js → entry.generated-DJMDdEtO.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-bERshNT6.js.map → entry.generated-DJMDdEtO.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DvAia1Wz.js → entry.generated-DjMJNzy1.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DvAia1Wz.js.map → entry.generated-DjMJNzy1.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry2.generated-BhPEF6oz.js → entry.generated-QspMEPHx.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-QspMEPHx.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry2.generated-B7ROYMLZ.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry2.generated-B7ROYMLZ.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{motion-D44EkjK3.js → motion-BhADgUVd.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{motion-D44EkjK3.js.map → motion-BhADgUVd.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{ui-BWVDkV-D.js → ui-egQWc4ws.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{ui-BWVDkV-D.js.map → ui-egQWc4ws.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/virtual-window-BHdOw3Pi.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/virtual-window-BHdOw3Pi.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/accordion.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/data-grid.js +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/date-picker.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/dropdown.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/modal.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/panels.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/select.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/sidebar.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/table.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/tabs.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/toast.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/virtualizer.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/core.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/logical-entry-manifest.json +119 -91
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +9 -9
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +9 -9
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-resizable-C6LKIbpv.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-l7SPMutG.js +0 -3
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-l7SPMutG.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-LsAXy99P.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-LsAXy99P.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bsennsyl.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bsennsyl.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DuNS3MYH.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DuNS3MYH.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry2.generated-BhPEF6oz.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry2.generated-B7ROYMLZ.js","names":[],"sources":["../../../../../../../../client/src/components/data-grid/contract.ts","../../../../../../../../client/src/components/data-grid/model.ts","../../../../../../../../client/src/components/data-grid/index.ts","../../../../../../../../client/src/components/data-grid/entry.generated.ts"],"sourcesContent":["import {bool, json, number, oneOf, string, type SchemaToProps} from '../../runtime';\nimport {INTERACTION_TREATMENTS, SELECTION_COLORS} from '../common';\n\nconst DATA_GRID_SELECTIONS = ['none', 'single', 'multiple'] as const;\nconst DATA_GRID_DENSITIES = ['compact', 'default', 'comfortable'] as const;\nconst DATA_GRID_BORDERS = ['none', 'row', 'grid'] as const;\nconst DATA_GRID_RESIZE_MODES = ['onChange', 'onEnd'] as const;\nconst DATA_GRID_PINS = ['', 'left', 'right'] as const;\nconst DATA_GRID_SORTS = ['none', 'ascending', 'descending', 'other'] as const;\nconst DATA_GRID_ALIGNS = ['start', 'center', 'end'] as const;\n\ntype DataGridSelectionValue =\n | {mode: 'ids'; ids: string[]}\n | {mode: 'query'; token: string; total: number; except: string[]};\n\nconst dataGridSchema = {\n fetchUrl: string,\n totalRows: number.min(0).default(0),\n rowHeight: number.min(Number.EPSILON).default(36),\n bufferSize: number.min(1).default(50),\n overscan: number.min(0).default(0),\n initialIndex: number.min(0).default(0),\n startParam: string.default('start'),\n countParam: string.default('count'),\n totalParam: string.default('total'),\n totalHeader: string.default('X-Trellis-Total-Items'),\n assetsHeader: string.default('X-Trellis-Assets'),\n metaSelector: string.default('template[data-ui-virtualizer-meta]'),\n selection: oneOf(DATA_GRID_SELECTIONS, 'none'),\n selectionValue: json<DataGridSelectionValue>({mode: 'ids', ids: []}),\n selectOnRowClick: bool,\n rowKey: string.default('id'),\n stickyHeader: bool.default(true),\n resizableColumns: bool.default(true),\n reorderableColumns: bool.default(true),\n sortableColumns: bool.default(true),\n minColumnWidth: number.min(0).default(60),\n defaultColumnWidth: number.min(Number.EPSILON).default(180),\n maxColumnWidth: json<number | null>(null),\n resizeMode: oneOf(DATA_GRID_RESIZE_MODES, 'onChange'),\n color: oneOf(SELECTION_COLORS, 'neutral'),\n interaction: oneOf(INTERACTION_TREATMENTS, 'edge'),\n dragPreviewPosition: string.trim.default('preserve'),\n density: oneOf(DATA_GRID_DENSITIES, 'default'),\n border: oneOf(DATA_GRID_BORDERS, 'row'),\n empty: string.default('No rows found.'),\n class: string,\n controlsClass: string,\n viewportClass: string,\n headerClass: string,\n rowClass: string,\n cellClass: string,\n footerClass: string,\n emptyClass: string,\n};\n\nconst dataGridColumnSchema = {\n key: string,\n label: string,\n width: number.min(Number.EPSILON).default(180),\n minWidth: number.min(0).default(60),\n maxWidth: json<number | null>(null),\n hidden: bool,\n pinned: oneOf(DATA_GRID_PINS, ''),\n sortable: bool,\n sort: oneOf(DATA_GRID_SORTS, 'none'),\n resizable: bool.default(true),\n reorderable: bool.default(true),\n align: oneOf(DATA_GRID_ALIGNS, 'start'),\n class: string,\n headerClass: string,\n labelClass: string,\n resizeHandleClass: string,\n};\n\nconst dataGridRowsSchema = {\n rows: json<unknown[]>([]),\n columns: json<Array<Record<string, unknown>>>([]),\n startIndex: number.min(0).default(0),\n rowKey: string.default('id'),\n rowComponent: string.default('ui.data-grid.row'),\n cellComponent: string.default('ui.data-grid.cell'),\n class: string,\n};\nconst dataGridRowSchema = {key: string, index: number.min(0).default(0), class: string};\nconst dataGridCellSchema = {column: string, index: number.min(1).default(1), align: oneOf(DATA_GRID_ALIGNS, 'start'), class: string};\nconst dataGridEmptySchema = {class: string};\n\ntype DataGridProps = SchemaToProps<typeof dataGridSchema>;\ntype DataGridColumnProps = SchemaToProps<typeof dataGridColumnSchema>;\ntype DataGridRowsProps = SchemaToProps<typeof dataGridRowsSchema>;\ntype DataGridSelection = typeof DATA_GRID_SELECTIONS[number];\ntype DataGridPin = Exclude<typeof DATA_GRID_PINS[number], ''> | null;\ntype DataGridSort = typeof DATA_GRID_SORTS[number];\ntype DataGridAlign = typeof DATA_GRID_ALIGNS[number];\n\nexport {\n DATA_GRID_ALIGNS,\n DATA_GRID_BORDERS,\n DATA_GRID_DENSITIES,\n DATA_GRID_PINS,\n DATA_GRID_RESIZE_MODES,\n DATA_GRID_SELECTIONS,\n DATA_GRID_SORTS,\n dataGridCellSchema,\n dataGridColumnSchema,\n dataGridEmptySchema,\n dataGridRowSchema,\n dataGridRowsSchema,\n dataGridSchema,\n};\nexport type {\n DataGridAlign,\n DataGridColumnProps,\n DataGridPin,\n DataGridProps,\n DataGridRowsProps,\n DataGridSelection,\n DataGridSelectionValue,\n DataGridSort,\n};\n","import type {DataGridAlign, DataGridPin, DataGridSelection, DataGridSelectionValue, DataGridSort} from './contract';\n\ntype DataGridColumn = {\n key: string;\n label: string;\n width: number;\n minWidth: number;\n maxWidth: number | null;\n hidden: boolean;\n pinned: DataGridPin;\n sortable: boolean;\n sort: DataGridSort;\n resizable: boolean;\n reorderable: boolean;\n align: DataGridAlign;\n cellClass: string;\n element: HTMLElement;\n};\n\ntype DataGridColumnDefaults = {\n width: number;\n minWidth: number;\n maxWidth: number | null;\n resizable: boolean;\n reorderable: boolean;\n};\n\ntype DataGridPinnedOffsets = {left: Map<string, number>; right: Map<string, number>};\ntype SelectionChange = {selection: DataGridSelectionValue; added: string[]; removed: string[]};\n\nconst numberAttribute = (element: HTMLElement, name: string, fallback: number): number => {\n const raw = element.getAttribute(name);\n if (raw === null || raw.trim() === '') return fallback;\n const value = Number(raw);\n return Number.isFinite(value) ? value : fallback;\n};\n\nconst optionalNumberAttribute = (element: HTMLElement, name: string, fallback: number | null): number | null => {\n const raw = element.getAttribute(name);\n if (raw === null || raw.trim() === '') return fallback;\n const value = Number(raw);\n return Number.isFinite(value) && value > 0 ? value : null;\n};\n\nconst boolAttribute = (element: HTMLElement, name: string, fallback: boolean): boolean => {\n if (!element.hasAttribute(name)) return fallback;\n const raw = element.getAttribute(name) ?? '';\n return raw === '' || ['true', '1', 'yes', 'on'].includes(raw.toLowerCase());\n};\n\nconst normalizeDataGridColumns = (\n elements: readonly HTMLElement[],\n defaults: DataGridColumnDefaults,\n): DataGridColumn[] => {\n const seen = new Set<string>();\n return elements.flatMap((element) => {\n const key = (element.dataset.column ?? '').trim();\n if (!key) throw new Error('Data Grid columns require a non-empty key.');\n if (element.hasAttribute('data-hidden')) return [];\n if (seen.has(key)) throw new Error(`Data Grid column key \"${key}\" is duplicated.`);\n seen.add(key);\n const minWidth = Math.max(0, numberAttribute(element, 'data-min-width', defaults.minWidth));\n const maxWidth = optionalNumberAttribute(element, 'data-max-width', defaults.maxWidth);\n const unclamped = numberAttribute(element, 'data-width', defaults.width);\n const width = Math.min(maxWidth ?? Number.POSITIVE_INFINITY, Math.max(minWidth, unclamped));\n const pinned = element.dataset.pinned === 'left' || element.dataset.pinned === 'right'\n ? element.dataset.pinned\n : null;\n const sort = ['ascending', 'descending', 'other'].includes(element.dataset.sort ?? '')\n ? element.dataset.sort as DataGridSort\n : 'none';\n const align = ['center', 'end'].includes(element.dataset.align ?? '')\n ? element.dataset.align as DataGridAlign\n : 'start';\n return [{\n key,\n label: element.dataset.label ?? element.textContent?.trim() ?? key,\n width,\n minWidth,\n maxWidth,\n hidden: false,\n pinned,\n sortable: boolAttribute(element, 'data-sortable', false),\n sort,\n resizable: boolAttribute(element, 'data-resizable', defaults.resizable),\n reorderable: boolAttribute(element, 'data-reorderable', defaults.reorderable),\n align,\n cellClass: element.dataset.cellClass ?? '',\n element,\n }];\n });\n};\n\nconst columnTemplate = (columns: readonly DataGridColumn[]): string => (\n columns.map(({width}) => `${width}px`).join(' ')\n);\n\nconst pinnedOffsets = (columns: readonly DataGridColumn[]): DataGridPinnedOffsets => {\n const left = new Map<string, number>();\n const right = new Map<string, number>();\n let offset = 0;\n columns.forEach((column) => {\n if (column.pinned !== 'left') return;\n left.set(column.key, offset);\n offset += column.width;\n });\n offset = 0;\n [...columns].reverse().forEach((column) => {\n if (column.pinned !== 'right') return;\n right.set(column.key, offset);\n offset += column.width;\n });\n return {left, right};\n};\n\nconst cssEscape = (value: string): string => (\n globalThis.CSS?.escape ? globalThis.CSS.escape(value) : value.replace(/[^a-zA-Z0-9_-]/g, (character) => `\\\\${character}`)\n);\n\nconst dataGridLayoutCss = (scope: string, columns: readonly DataGridColumn[]): string => {\n const offsets = pinnedOffsets(columns);\n return columns.map((column, index) => {\n const owner = `[data-ui-data-grid-scope=\"${cssEscape(scope)}\"]`;\n const columnSelector = `[data-column=\"${cssEscape(column.key)}\"]`;\n const selector = `${owner} [data-ui-data-grid-column-header]${columnSelector},${owner} [data-ui-data-grid-cell]${columnSelector}`;\n const pin = column.pinned === 'left'\n ? `position:sticky;left:${offsets.left.get(column.key) ?? 0}px;z-index:2;`\n : column.pinned === 'right'\n ? `position:sticky;right:${offsets.right.get(column.key) ?? 0}px;z-index:2;`\n : '';\n return `${selector}{grid-column:${index + 1};${pin}}`;\n }).join('');\n};\n\nconst normalizeSelection = (value: unknown, mode: DataGridSelection): DataGridSelectionValue => {\n if (mode === 'multiple' && typeof value === 'object' && value !== null && (value as {mode?: unknown}).mode === 'query') {\n const query = value as Partial<Extract<DataGridSelectionValue, {mode: 'query'}>>;\n if (typeof query.token === 'string' && Number.isFinite(query.total)) return {\n mode: 'query',\n token: query.token,\n total: Math.max(0, Math.floor(query.total ?? 0)),\n except: [...new Set(Array.isArray(query.except) ? query.except.filter((key): key is string => typeof key === 'string') : [])],\n };\n }\n const ids = typeof value === 'object' && value !== null && (value as {mode?: unknown}).mode === 'ids'\n && Array.isArray((value as {ids?: unknown}).ids)\n ? (value as {ids: unknown[]}).ids.filter((key): key is string => typeof key === 'string')\n : [];\n const unique = [...new Set(ids)];\n return {mode: 'ids', ids: mode === 'single' ? unique.slice(0, 1) : mode === 'none' ? [] : unique};\n};\n\nconst isRowSelected = (selection: DataGridSelectionValue, key: string): boolean => (\n selection.mode === 'query' ? !selection.except.includes(key) : selection.ids.includes(key)\n);\n\nconst toggleSelection = (\n current: DataGridSelectionValue,\n key: string,\n mode: DataGridSelection,\n selected?: boolean,\n): SelectionChange => {\n const normalized = normalizeSelection(current, mode);\n if (mode === 'none') return {selection: normalized, added: [], removed: []};\n const wasSelected = isRowSelected(normalized, key);\n const nextSelected = selected ?? !wasSelected;\n if (wasSelected === nextSelected) return {selection: normalized, added: [], removed: []};\n if (normalized.mode === 'query') {\n const except = nextSelected\n ? normalized.except.filter((value) => value !== key)\n : [...normalized.except, key];\n return {selection: {...normalized, except}, added: nextSelected ? [key] : [], removed: nextSelected ? [] : [key]};\n }\n const ids = mode === 'single' && nextSelected\n ? [key]\n : nextSelected\n ? [...normalized.ids, key]\n : normalized.ids.filter((value) => value !== key);\n return {selection: {mode: 'ids', ids}, added: nextSelected ? [key] : [], removed: nextSelected ? [] : [key]};\n};\n\nconst reorderColumns = (columns: readonly DataGridColumn[], key: string, toIndex: number): DataGridColumn[] | null => {\n const from = columns.findIndex((column) => column.key === key);\n if (from < 0 || !columns[from]?.reorderable) return null;\n const region = columns[from]?.pinned ?? null;\n const regionIndexes = columns.flatMap((column, index) => column.pinned === region ? [index] : []);\n if (!regionIndexes.includes(toIndex)) return null;\n const next = [...columns];\n const [column] = next.splice(from, 1);\n if (!column) return null;\n next.splice(toIndex, 0, column);\n return next;\n};\n\nexport {\n columnTemplate,\n dataGridLayoutCss,\n isRowSelected,\n normalizeDataGridColumns,\n normalizeSelection,\n pinnedOffsets,\n reorderColumns,\n toggleSelection,\n};\nexport type {DataGridColumn, DataGridColumnDefaults, DataGridPinnedOffsets, SelectionChange};\n","import type Alpine from 'alpinejs';\n\nimport {\n createResizable,\n createVirtualWindowController,\n defineAlpineData,\n defineProps,\n fixedAxisWindowAdapter,\n parseVirtualizerFragmentResponse,\n reflectSchemaProp,\n replaceFragmentChildren,\n type FixedAxisWindow,\n type PropState,\n type ResizeEvent,\n type TrellisAlpineComponent,\n type VirtualScrollAlign,\n type VirtualWindowRequest,\n} from '@client/runtime';\nimport {dataGridSchema, type DataGridSelectionValue} from './contract';\nimport {\n columnTemplate,\n dataGridLayoutCss,\n isRowSelected,\n normalizeDataGridColumns,\n normalizeSelection,\n reorderColumns,\n toggleSelection,\n type DataGridColumn,\n} from './model';\n\ntype DataGridResetOptions = {scrollTop?: number};\ntype DataGridSetUrlOptions = {reset?: boolean};\n\n/** Public Alpine API for `ui.data-grid`. @public */\ninterface UiDataGridApi {\n reload(options?: DataGridResetOptions): void;\n reset(options?: DataGridResetOptions): void;\n scrollToIndex(index: number, align?: VirtualScrollAlign): void;\n setUrl(url: string, options?: DataGridSetUrlOptions): void;\n setTotalRows(count: number): void;\n resizeColumn(key: string, width: number): void;\n reorderColumn(key: string, toIndex: number): void;\n selectRow(key: string): void;\n deselectRow(key: string): void;\n toggleRow(key: string): void;\n setSelection(value: DataGridSelectionValue): void;\n selectQuery(token: string, total: number, except?: string[]): void;\n clearSelection(): void;\n}\n\ntype DataGridData = UiDataGridApi & {\n props: PropState<typeof dataGridSchema>;\n init(): void;\n destroy(): void;\n};\n\ntype BlockRecord = {key: string; element: HTMLElement};\n\nconst integer = (value: number, minimum = 0): number => (\n Math.max(minimum, Math.floor(Number.isFinite(value) ? value : minimum))\n);\n\nconst interactiveSelector = 'a,button,input,select,textarea,[contenteditable],[role=\"button\"],[role=\"link\"]';\n\nconst UiDataGrid = (AlpineInstance: Alpine.Alpine): TrellisAlpineComponent<DataGridData> => {\n let root: HTMLElement | null = null;\n let viewport: HTMLElement | null = null;\n let table: HTMLElement | null = null;\n let spacer: HTMLElement | null = null;\n let styleElement: HTMLStyleElement | null = null;\n let columns: DataGridColumn[] = [];\n let blocks: BlockRecord[] = [];\n let totalRows = 0;\n let selection: DataGridSelectionValue = {mode: 'ids', ids: []};\n let currentWindowKey = '';\n let latestScrollTop: number | null = null;\n let scrollFrame = 0;\n let loading = 0;\n let destroyed = false;\n let listenerAborter: AbortController | null = null;\n let suppressPropChange = false;\n const requestAborters = new Map<string, AbortController>();\n const resizeCleanups: Array<() => void> = [];\n const controller = createVirtualWindowController(fixedAxisWindowAdapter);\n\n const dispatch = (name: string, detail: Record<string, unknown>): void => {\n root?.dispatchEvent(new CustomEvent(name, {bubbles: true, composed: true, detail}));\n };\n const addClasses = (element: HTMLElement, value: string): void => {\n const names = value.split(/\\s+/).filter(Boolean);\n if (names.length) element.classList.add(...names);\n };\n const rows = (): HTMLElement[] => Array.from(root?.querySelectorAll<HTMLElement>('[data-ui-data-grid-row]') ?? []);\n const reflectMountedSelection = (): void => {\n rows().forEach((row) => {\n const key = row.dataset.rowKey ?? '';\n const selected = component.props.selection !== 'none' && key !== '' && isRowSelected(selection, key);\n row.toggleAttribute('data-selected', selected);\n if (component.props.selection === 'none') row.removeAttribute('aria-selected');\n else row.setAttribute('aria-selected', String(selected));\n });\n };\n const syncColumnLayout = (): void => {\n if (!root || !styleElement) return;\n root.style.setProperty('--ui-data-grid-template', columnTemplate(columns));\n const scope = root.dataset.uiDataGridScope ?? '';\n styleElement.textContent = dataGridLayoutCss(scope, columns);\n table?.setAttribute('aria-colcount', String(columns.length));\n const headerRow = root.querySelector<HTMLElement>('[data-ui-data-grid-header-row]');\n columns.forEach((column) => headerRow?.append(column.element));\n const indicator = headerRow?.querySelector<HTMLElement>('[data-ui-data-grid-column-indicator]');\n if (indicator) headerRow?.append(indicator);\n rows().forEach((row) => {\n const cells = new Map(Array.from(row.children).flatMap((element) => (\n element instanceof HTMLElement && element.hasAttribute('data-ui-data-grid-cell')\n ? [[element.dataset.column ?? '', element] as const]\n : []\n )));\n columns.forEach(({key}) => {\n const cell = cells.get(key);\n if (cell) row.append(cell);\n });\n });\n columns.forEach((column, index) => {\n column.element.setAttribute('aria-colindex', String(index + 1));\n column.element.dataset.pinned = column.pinned ?? '';\n column.element.toggleAttribute('data-pinned', column.pinned !== null);\n });\n rows().forEach((row) => addClasses(row, component.props.rowClass));\n root.querySelectorAll<HTMLElement>('[data-ui-data-grid-cell]').forEach((cell) => {\n const index = columns.findIndex(({key}) => key === cell.dataset.column);\n if (index >= 0) {\n const column = columns[index]!;\n cell.setAttribute('aria-colindex', String(index + 1));\n addClasses(cell, component.props.cellClass);\n addClasses(cell, column.cellClass);\n if (column.pinned) cell.dataset.pinned = column.pinned;\n else cell.removeAttribute('data-pinned');\n }\n });\n };\n const syncState = (): void => {\n if (!root || !spacer) return;\n root.toggleAttribute('data-loading', loading > 0);\n root.toggleAttribute('data-empty', totalRows === 0);\n root.dataset.selection = component.props.selection;\n table?.setAttribute('aria-rowcount', String(totalRows + 1));\n root.style.setProperty('--ui-data-grid-row-height', `${component.props.rowHeight}px`);\n root.style.setProperty('--ui-data-grid-total-height', `${Math.max(totalRows * component.props.rowHeight, component.props.rowHeight)}px`);\n spacer.style.height = `var(--ui-data-grid-total-height)`;\n reflectMountedSelection();\n };\n const updateTotal = (next: number): void => {\n const normalized = integer(next);\n if (normalized === totalRows) return;\n totalRows = normalized;\n syncState();\n dispatch('ui:data-grid-total-change', {totalRows});\n };\n const blockWindow = (start: number): FixedAxisWindow => fixedAxisWindowAdapter.compute({axes: {y: {\n total: totalRows,\n itemSize: component.props.rowHeight,\n viewportSize: component.props.bufferSize * component.props.rowHeight,\n scrollOffset: start * component.props.rowHeight,\n buffer: 0,\n }}});\n const desiredWindows = (scrollTop: number): FixedAxisWindow[] => {\n if (totalRows === 0) return [];\n const size = integer(component.props.bufferSize, 1);\n const index = Math.min(totalRows - 1, Math.floor(Math.max(0, scrollTop) / component.props.rowHeight));\n const center = Math.floor(index / size) * size;\n const last = Math.floor((totalRows - 1) / size) * size;\n const starts = [center - size, center, center + size].map((start) => Math.min(last, Math.max(0, start)));\n if (center === 0 && last > size) starts.splice(0, 3, 0, size, Math.min(last, size * 2));\n else if (center === last && last > size) starts.splice(0, 3, Math.max(0, last - (size * 2)), last - size, last);\n return [...new Set(starts)].map(blockWindow);\n };\n const requestUrl = (window: FixedAxisWindow): string => {\n const axis = window.axes.y;\n if (!axis) throw new Error('Data Grid requires a vertical virtual window.');\n const url = new URL(component.props.fetchUrl, document.baseURI);\n url.searchParams.set(component.props.startParam, String(axis.start));\n url.searchParams.set(component.props.countParam, String(axis.count));\n url.searchParams.set(component.props.totalParam, String(axis.total));\n return /^[a-z][a-z\\d+.-]*:/i.test(component.props.fetchUrl) || component.props.fetchUrl.startsWith('//')\n ? url.href\n : `${url.pathname}${url.search}${url.hash}`;\n };\n const settle = (): void => {\n loading = Math.max(0, loading - 1);\n syncState();\n if (loading > 0 || latestScrollTop === null || destroyed) return;\n const scrollTop = latestScrollTop;\n latestScrollTop = null;\n reconcile(scrollTop);\n };\n const load = async (\n block: BlockRecord,\n window: FixedAxisWindow,\n request: VirtualWindowRequest<FixedAxisWindow>,\n ): Promise<void> => {\n const axis = window.axes.y;\n if (!axis) return;\n const aborter = new AbortController();\n requestAborters.set(block.key, aborter);\n loading += 1;\n syncState();\n root?.removeAttribute('data-error');\n dispatch('ui:data-grid-load-start', {window});\n try {\n const requestId = globalThis.crypto?.randomUUID?.() ?? `${Date.now()}-${request.requestGeneration}`;\n const response = await fetch(requestUrl(window), {method: 'GET', headers: {\n Accept: 'text/html',\n 'X-Trellis-Virtualizer': 'true',\n 'X-Trellis-Request-ID': requestId,\n }, signal: aborter.signal});\n if (!response.ok && response.status !== 204) {\n controller.fail(request);\n root?.setAttribute('data-error', '');\n dispatch('ui:data-grid-error', {window, status: response.status});\n return;\n }\n const payload = await parseVirtualizerFragmentResponse(response, component.props);\n if (controller.pending(block.key) !== request || destroyed) return;\n const replaced = await replaceFragmentChildren(AlpineInstance, block.element, payload.html, {\n assets: payload.assets,\n shouldReplace: () => controller.pending(block.key) === request && !destroyed,\n });\n if (!replaced) return;\n if (payload.totalItems !== null) updateTotal(payload.totalItems);\n if (!controller.commit(request, window)) return;\n block.element.style.height = `${axis.count * component.props.rowHeight}px`;\n block.element.style.transform = `translateY(${axis.translateOffset}px)`;\n syncColumnLayout();\n reflectMountedSelection();\n dispatch('ui:data-grid-load', {window, start: axis.start, count: axis.count, end: axis.start + axis.count});\n } catch (error) {\n if (aborter.signal.aborted) return;\n controller.fail(request);\n root?.setAttribute('data-error', '');\n dispatch('ui:data-grid-error', {window, status: 0, error});\n } finally {\n if (requestAborters.get(block.key) === aborter) requestAborters.delete(block.key);\n settle();\n }\n };\n const reconcile = (scrollTop: number): void => {\n if (loading > 0) {\n latestScrollTop = scrollTop;\n return;\n }\n const desired = desiredWindows(scrollTop);\n const logicalIndex = Math.min(Math.max(0, totalRows - 1), Math.floor(Math.max(0, scrollTop) / component.props.rowHeight));\n const center = desired.find((window) => {\n const axis = window.axes.y;\n return axis && logicalIndex >= axis.start && logicalIndex < axis.start + axis.count;\n }) ?? desired[0];\n if (center && currentWindowKey !== center.key) {\n currentWindowKey = center.key;\n const axis = center.axes.y!;\n dispatch('ui:data-grid-range', {start: axis.start, count: axis.count, end: axis.start + axis.count, window: center});\n }\n if (desired.length === 0) {\n blocks.forEach((block) => void replaceFragmentChildren(AlpineInstance, block.element, ''));\n return;\n }\n const preserved = new Set<BlockRecord>();\n desired.forEach((window) => {\n const existing = blocks.find((block) => controller.mounted(block.key)?.key === window.key);\n if (existing) preserved.add(existing);\n });\n const available = blocks.filter((block) => !preserved.has(block));\n desired.forEach((window) => {\n if (blocks.some((block) => controller.mounted(block.key)?.key === window.key)) return;\n const block = available.shift();\n if (!block) return;\n const request = controller.begin(block.key, window);\n if (request) void load(block, window, request);\n });\n };\n const invalidate = (): void => {\n requestAborters.forEach((aborter) => aborter.abort());\n requestAborters.clear();\n loading = 0;\n latestScrollTop = null;\n currentWindowKey = '';\n controller.invalidate();\n blocks.forEach((block) => {\n block.element.style.height = '';\n block.element.style.transform = '';\n void replaceFragmentChildren(AlpineInstance, block.element, '');\n });\n syncState();\n };\n const setSelection = (value: DataGridSelectionValue, detail?: {added: string[]; removed: string[]}): void => {\n selection = normalizeSelection(value, component.props.selection);\n suppressPropChange = true;\n component.props.selectionValue = selection;\n if (root) reflectSchemaProp({el: root, schema: dataGridSchema, key: 'selectionValue', value: selection});\n suppressPropChange = false;\n reflectMountedSelection();\n dispatch('ui:data-grid-selection-change', {selection, added: detail?.added ?? [], removed: detail?.removed ?? []});\n };\n const changeRow = (key: string, selected?: boolean): void => {\n const change = toggleSelection(selection, String(key), component.props.selection, selected);\n if (change.added.length === 0 && change.removed.length === 0) return;\n setSelection(change.selection, change);\n };\n const updateColumnWidth = (column: DataGridColumn, width: number, phase: 'start' | 'resize' | 'end'): void => {\n column.width = Math.min(column.maxWidth ?? Number.POSITIVE_INFINITY, Math.max(column.minWidth, width));\n syncColumnLayout();\n dispatch('ui:data-grid-column-resize', {column: column.key, width: column.width, phase});\n };\n const registerResizeHandles = (): void => {\n resizeCleanups.splice(0).forEach((cleanup) => cleanup());\n columns.forEach((column) => {\n const handle = column.element.querySelector<HTMLElement>('[data-ui-data-grid-resize-handle]');\n if (!handle) return;\n const enabled = column.resizable && component.props.resizableColumns;\n if (enabled) handle.removeAttribute('aria-disabled');\n else handle.setAttribute('aria-disabled', 'true');\n handle.tabIndex = enabled ? 0 : -1;\n if (!enabled) return;\n const onResize = (event: ResizeEvent): void => updateColumnWidth(column, event.previewWidth, event.phase);\n resizeCleanups.push(createResizable({\n element: column.element,\n handle,\n axis: 'x',\n min: column.minWidth,\n max: column.maxWidth,\n mode: component.props.resizeMode,\n disabled: () => !component.props.resizableColumns || !column.resizable,\n onStart: onResize,\n onResize,\n onEnd: onResize,\n }));\n });\n };\n\n const component: TrellisAlpineComponent<DataGridData> = {\n props: null as unknown as PropState<typeof dataGridSchema>,\n init(): void {\n root = this.$el;\n destroyed = false;\n const scope = globalThis.crypto?.randomUUID?.() ?? `grid-${Date.now()}-${Math.random().toString(36).slice(2)}`;\n root.dataset.uiDataGridScope = scope;\n root.querySelector<HTMLElement>('[data-ui-data-grid-header-row]')?.setAttribute('data-sortable-scope', scope);\n this.props = defineProps({el: root, schema: dataGridSchema, onChange: (_state, changes) => {\n if (suppressPropChange) return;\n const keys = changes.map(({key}) => key);\n if (keys.includes('selectionValue') || keys.includes('selection')) {\n selection = normalizeSelection(this.props.selectionValue, this.props.selection);\n reflectMountedSelection();\n }\n if (keys.includes('resizableColumns')) registerResizeHandles();\n if (keys.includes('totalRows')) {\n updateTotal(this.props.totalRows);\n this.reload();\n } else if (keys.some((key) => ['fetchUrl', 'rowHeight', 'bufferSize'].includes(key))) this.reload();\n }});\n totalRows = integer(this.props.totalRows);\n selection = normalizeSelection(this.props.selectionValue, this.props.selection);\n viewport = root.querySelector<HTMLElement>('[data-ui-data-grid-viewport]')\n ?? root.querySelector<HTMLElement>('[data-ui-scroll-area-viewport]');\n table = root.querySelector<HTMLElement>('[data-ui-data-grid-inner]');\n spacer = root.querySelector<HTMLElement>('[data-ui-data-grid-spacer]');\n styleElement = root.querySelector<HTMLStyleElement>('style[data-ui-data-grid-layout]');\n blocks = Array.from(root.querySelectorAll<HTMLElement>('[data-ui-data-grid-block]')).slice(0, 3)\n .map((element, index) => ({element, key: `block-${index + 1}`}));\n if (!viewport || !table || !spacer || !styleElement || blocks.length !== 3) {\n throw new Error('Data Grid requires one viewport, table owner, spacer, layout style, and three row blocks.');\n }\n viewport.setAttribute('data-ui-data-grid-viewport', '');\n columns = normalizeDataGridColumns(\n Array.from(root.querySelectorAll<HTMLElement>('[data-ui-data-grid-column-header]')),\n {width: this.props.defaultColumnWidth, minWidth: this.props.minColumnWidth,\n maxWidth: this.props.maxColumnWidth, resizable: this.props.resizableColumns,\n reorderable: this.props.reorderableColumns},\n );\n syncColumnLayout();\n registerResizeHandles();\n listenerAborter = new AbortController();\n viewport.addEventListener('scroll', () => {\n if (scrollFrame) return;\n scrollFrame = requestAnimationFrame(() => {\n scrollFrame = 0;\n if (viewport) reconcile(viewport.scrollTop);\n });\n }, {passive: true, signal: listenerAborter.signal});\n root.addEventListener('click', (event) => {\n const target = event.target as HTMLElement;\n const sortButton = target.closest<HTMLElement>('[data-ui-data-grid-sort-button]');\n if (sortButton && this.props.sortableColumns) {\n const header = sortButton.closest<HTMLElement>('[data-ui-data-grid-column-header]');\n const column = columns.find(({key}) => key === header?.dataset.column);\n if (column?.sortable) {\n const direction = column.sort === 'ascending' ? 'descending' : 'ascending';\n dispatch('ui:data-grid-sort', {column: column.key, direction, additive: event.shiftKey});\n }\n return;\n }\n const row = target.closest<HTMLElement>('[data-ui-data-grid-row]');\n if (!row || !root?.contains(row)) return;\n const key = row.dataset.rowKey ?? '';\n if (this.props.selectOnRowClick && !target.closest(interactiveSelector)) changeRow(key);\n dispatch('ui:data-grid-row-activate', {rowKey: key, row});\n }, {signal: listenerAborter.signal});\n root.addEventListener('dblclick', (event) => {\n const cell = (event.target as HTMLElement).closest<HTMLElement>('[data-ui-data-grid-cell]');\n const row = cell?.closest<HTMLElement>('[data-ui-data-grid-row]');\n if (cell && row) dispatch('ui:data-grid-cell-activate', {\n rowKey: row.dataset.rowKey ?? '', column: cell.dataset.column ?? '', cell,\n });\n }, {signal: listenerAborter.signal});\n root.addEventListener('ui:sortable-drop', ((event: CustomEvent) => {\n const source = event.detail?.source;\n if (source?.type !== 'data-grid-column') return;\n const to = Number(event.detail?.index ?? event.detail?.anchor?.index);\n if (Number.isInteger(to)) this.reorderColumn(String(source.id), to);\n }) as EventListener, {signal: listenerAborter.signal});\n viewport.style.overscrollBehavior = 'contain';\n viewport.style.overflowAnchor = 'none';\n viewport.scrollTop = fixedAxisWindowAdapter.scrollTo({\n total: totalRows, itemSize: this.props.rowHeight, viewportSize: viewport.clientHeight,\n scrollOffset: 0, buffer: this.props.bufferSize,\n }, {axis: 'y', index: this.props.initialIndex});\n syncState();\n reconcile(viewport.scrollTop);\n },\n destroy(): void {\n destroyed = true;\n if (scrollFrame) cancelAnimationFrame(scrollFrame);\n listenerAborter?.abort();\n listenerAborter = null;\n resizeCleanups.splice(0).forEach((cleanup) => cleanup());\n invalidate();\n this.props.disconnect();\n root = null;\n viewport = null;\n table = null;\n spacer = null;\n styleElement = null;\n columns = [];\n blocks = [];\n },\n scrollToIndex(index, align = 'start'): void {\n if (!viewport) return;\n viewport.scrollTop = fixedAxisWindowAdapter.scrollTo({\n total: totalRows, itemSize: this.props.rowHeight, viewportSize: viewport.clientHeight,\n scrollOffset: viewport.scrollTop, buffer: this.props.bufferSize,\n }, {axis: 'y', index, align});\n reconcile(viewport.scrollTop);\n },\n setTotalRows(count): void {\n updateTotal(count);\n this.reload({scrollTop: viewport?.scrollTop ?? 0});\n },\n setUrl(url, options = {}): void {\n suppressPropChange = true;\n this.props.fetchUrl = String(url);\n if (root) reflectSchemaProp({el: root, schema: dataGridSchema, key: 'fetchUrl', value: String(url)});\n suppressPropChange = false;\n if (options.reset ?? true) this.reset();\n else this.reload();\n },\n reset(options = {}): void { this.reload({scrollTop: options.scrollTop ?? 0}); },\n reload(options = {}): void {\n const scrollTop = options.scrollTop ?? viewport?.scrollTop ?? 0;\n invalidate();\n if (viewport) viewport.scrollTop = Math.max(0, scrollTop);\n reconcile(scrollTop);\n },\n resizeColumn(key, width): void {\n const column = columns.find((candidate) => candidate.key === key);\n if (column) updateColumnWidth(column, Number(width), 'end');\n },\n reorderColumn(key, toIndex): void {\n const from = columns.findIndex((column) => column.key === key);\n const next = reorderColumns(columns, key, integer(toIndex));\n if (!next) return;\n columns = next;\n syncColumnLayout();\n dispatch('ui:data-grid-column-reorder', {column: key, from, to: integer(toIndex), columns: columns.map(({key: columnKey}) => columnKey)});\n },\n selectRow(key): void { changeRow(String(key), true); },\n deselectRow(key): void { changeRow(String(key), false); },\n toggleRow(key): void { changeRow(String(key)); },\n setSelection(value): void { setSelection(value); },\n selectQuery(token, total, except = []): void {\n setSelection({mode: 'query', token: String(token), total: integer(total), except: except.map(String)});\n },\n clearSelection(): void { setSelection({mode: 'ids', ids: []}); },\n };\n return component;\n};\n\nconst registerDataGrid = (AlpineInstance: Alpine.Alpine): void => {\n defineAlpineData('UiDataGrid', () => UiDataGrid(AlpineInstance))(AlpineInstance);\n};\n\nexport {registerDataGrid, UiDataGrid};\nexport type {DataGridData, DataGridResetOptions, DataGridSetUrlOptions, UiDataGridApi};\n","// Generated by scripts/generate_component_entries.mjs from packages/client/component-entries.json.\n// Do not edit by hand.\nimport type {Alpine as AlpineType} from 'alpinejs';\nimport {registerResizableCapability} from '../../capabilities/resizable';\nimport {registerMotionCapability} from '../../capabilities/motion';\nimport {registerSortableCapability} from '../../capabilities/sortable';\nimport {registerDataGrid as registerComponent} from './index';\n\nconst registered = new WeakSet<AlpineType>();\n\nconst registerDataGrid = (AlpineInstance: AlpineType): void => {\n if (registered.has(AlpineInstance)) return;\n registered.add(AlpineInstance);\n registerResizableCapability(AlpineInstance);\n registerMotionCapability(AlpineInstance);\n registerSortableCapability(AlpineInstance);\n registerComponent(AlpineInstance);\n};\n\nexport {registerDataGrid};\nexport default registerDataGrid;\nexport * from './index';\n"],"mappings":"4eAGA,IAAM,EAAuB,CAAC,OAAQ,SAAU,UAAU,EACpD,EAAsB,CAAC,UAAW,UAAW,aAAa,EAC1D,EAAoB,CAAC,OAAQ,MAAO,MAAM,EAC1C,EAAyB,CAAC,WAAY,OAAO,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OAAO,CAAK,EAAG,MAAO,EAAQ,CAAK,EAAG,OAAQ,EAAO,IAAI,MAAM,CAAC,CAAC,CACzG,EACA,gBAAuB,CAAE,EAAa,CAAC,KAAM,MAAO,IAAK,CAAC,CAAC,CAAC,CAAG,CACnE,EACA,OAAO,CACX,EAEM,EAAoB,GAAwC,CAC9D,EAAiB,iBAAoB,EAAW,CAAc,CAAC,EAAE,CAAc,CACnF,EC1eM,EAAa,IAAI,QAEjB,EAAoB,GAAqC,CACvD,EAAW,IAAI,CAAc,IACjC,EAAW,IAAI,CAAc,EAC7B,EAA4B,CAAc,EAC1C,EAAyB,CAAc,EACvC,EAA2B,CAAc,EACzC,EAAkB,CAAc,EACpC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{h as e,m as t}from"./ui-BWVDkV-D.js";function n(e,t){e.indexOf(t)===-1&&e.push(t)}function r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var i=(e,t,n)=>n>t?t:n<e?e:n;function a(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var o={},s=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),c=e=>typeof e==`object`&&!!e,l=e=>/^0[^.\s]+$/u.test(e);function u(e){let t;return()=>(t===void 0&&(t=e()),t)}var d=e=>e,f=(...e)=>e.reduce((e,t)=>n=>t(e(n))),p=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},m=class{constructor(){this.subscriptions=[]}add(e){return n(this.subscriptions,e),()=>r(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},h=e=>e*1e3,g=e=>e/1e3,_=(e,t)=>t?1e3/t*e:0,v=new Set;function y(e,t,n){e||v.has(t)||(console.warn(a(t,n)),v.add(t))}var b=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},x=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S=1e-7,C=12;function w(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=x(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>S&&++s<C);return o}function T(e,t,n,r){if(e===t&&n===r)return d;let i=t=>w(t,0,1,e,n);return e=>e===0||e===1?e:x(i(e),t,r)}var E=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,D=e=>t=>1-e(1-t),ee=T(.33,1.53,.69,.99),te=D(ee),ne=E(te),re=e=>e>=1?1:(e*=2)<1?.5*te(e):.5*(2-2**(-10*(e-1))),O=e=>1-Math.sin(Math.acos(e)),ie=D(O),ae=E(O),oe=T(.42,0,1,1),se=T(0,0,.58,1),ce=T(.42,0,.58,1),le=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ue(e,t){return le(e)?e[b(0,e.length,t)]:e}var de=e=>Array.isArray(e)&&typeof e[0]==`number`,fe={linear:d,easeIn:oe,easeInOut:ce,easeOut:se,circIn:O,circInOut:ae,circOut:ie,backIn:te,backInOut:ne,backOut:ee,anticipate:re},pe=e=>typeof e==`string`,me=e=>{if(de(e)){e.length;let[t,n,r,i]=e;return T(t,n,r,i)}else if(pe(e))return fe[e],`${e}`,fe[e];return e},he=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ge(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var _e=40;function ve(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=he.reduce((e,t)=>(e[t]=ge(a),e),{}),{setup:c,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let a=o.useManualTiming,s=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,_e),1)),i.timestamp=s,i.isProcessing=!0,c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:he.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<he.length;t++)s[he[t]].cancel(e)},state:i,steps:s}}var{schedule:k,cancel:ye,state:be,steps:xe}=ve(typeof requestAnimationFrame<`u`?requestAnimationFrame:d,!0),Se;function Ce(){Se=void 0}var A={now:()=>(Se===void 0&&A.set(be.isProcessing||o.useManualTiming?be.timestamp:performance.now()),Se),set:e=>{Se=e,queueMicrotask(Ce)}},we=e=>t=>typeof t==`string`&&t.startsWith(e),Te=we(`--`),Ee=we(`var(--`),De=e=>Ee(e)?Oe.test(e.split(`/*`)[0].trim()):!1,Oe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ke(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ae={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},je={...Ae,transform:e=>i(0,1,e)},Me={...Ae,default:1},Ne=e=>Math.round(e*1e5)/1e5,Pe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fe(e){return e==null}var Ie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Le=(e,t)=>n=>!!(typeof n==`string`&&Ie.test(n)&&n.startsWith(e)||t&&!Fe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Re=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Pe);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ze=e=>i(0,255,e),Be={...Ae,transform:e=>Math.round(ze(e))},j={test:Le(`rgb`,`red`),parse:Re(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Be.transform(e)+`, `+Be.transform(t)+`, `+Be.transform(n)+`, `+Ne(je.transform(r))+`)`};function Ve(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var He={test:Le(`#`),parse:Ve,transform:j.transform},Ue=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),M=Ue(`deg`),N=Ue(`%`),P=Ue(`px`),We=Ue(`vh`),Ge=Ue(`vw`),Ke={...N,parse:e=>N.parse(e)/100,transform:e=>N.transform(e*100)},F={test:Le(`hsl`,`hue`),parse:Re(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+N.transform(Ne(t))+`, `+N.transform(Ne(n))+`, `+Ne(je.transform(r))+`)`},I={test:e=>j.test(e)||He.test(e)||F.test(e),parse:e=>j.test(e)?j.parse(e):F.test(e)?F.parse(e):He.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?j.transform(e):F.transform(e),getAnimatableNone:e=>{let t=I.parse(e);return t.alpha=0,I.transform(t)}},qe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Je(e){return isNaN(e)&&typeof e==`string`&&(e.match(Pe)?.length||0)+(e.match(qe)?.length||0)>0}var Ye=`number`,Xe=`color`,Ze=`var`,Qe=`var(`,$e="${}",et=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function L(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(et,e=>(I.test(e)?(r.color.push(a),i.push(Xe),n.push(I.parse(e))):e.startsWith(Qe)?(r.var.push(a),i.push(Ze),n.push(e)):(r.number.push(a),i.push(Ye),n.push(parseFloat(e))),++a,$e)).split($e),indexes:r,types:i}}function tt(e){return L(e).values}function nt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Ye?i+=Ne(r[a]):e===Xe?i+=I.transform(r[a]):i+=r[a]}return i}}function rt(e){return nt(L(e))}var it=e=>typeof e==`number`?0:I.test(e)?I.getAnimatableNone(e):e,at=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:it(e);function ot(e){let t=L(e);return nt(t)(t.values.map((e,n)=>at(e,t.split[n])))}var R={test:Je,parse:tt,createTransformer:rt,getAnimatableNone:ot};function st(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ct({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=st(s,r,e+1/3),a=st(s,r,e),o=st(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function lt(e,t){return n=>n>0?t:e}var ut=(e,t,n)=>e+(t-e)*n,dt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ft=[He,j,F],pt=e=>ft.find(t=>t.test(e));function mt(e){let t=pt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===F&&(n=ct(n)),n}var ht=(e,t)=>{let n=mt(e),r=mt(t);if(!n||!r)return lt(e,t);let i={...n};return e=>(i.red=dt(n.red,r.red,e),i.green=dt(n.green,r.green,e),i.blue=dt(n.blue,r.blue,e),i.alpha=ut(n.alpha,r.alpha,e),j.transform(i))},gt=new Set([`none`,`hidden`]);function _t(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vt(e,t){return n=>ut(e,t,n)}function yt(e){return typeof e==`number`?vt:typeof e==`string`?De(e)?lt:I.test(e)?ht:Ct:Array.isArray(e)?bt:typeof e==`object`?I.test(e)?ht:xt:lt}function bt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>yt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function xt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function St(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Ct=(e,t)=>{let n=R.createTransformer(t),r=L(e),i=L(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gt.has(e)&&!i.values.length||gt.has(t)&&!r.values.length?_t(e,t):f(bt(St(r,i),i.values),n):(`${e}${t}`,lt(e,t))};function wt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?ut(e,t,n):yt(e)(e,t)}var Tt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>k.update(t,e),stop:()=>ye(t),now:()=>be.isProcessing?be.timestamp:A.now()}},Et=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Dt=2e4;function Ot(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function kt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ot(r),Dt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:g(i)}}var z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function At(e,t){return e*Math.sqrt(1-t*t)}var jt=12;function Mt(e,t,n){let r=n;for(let n=1;n<jt;n++)r-=e(r)/t(r);return r}var Nt=.001;function Pt({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:r=z.mass}){let a,o;z.maxDuration;let s=1-t;s=i(z.minDamping,z.maxDamping,s),e=i(z.minDuration,z.maxDuration,g(e)),s<1?(a=t=>{let r=t*s,i=r*e,a=r-n,o=At(t,s),c=Math.exp(-i);return Nt-a/o*c},o=t=>{let r=t*s*e,i=r*n+n,o=s**2*t**2*e,c=Math.exp(-r),l=At(t**2,s);return(-a(t)+Nt>0?-1:1)*((i-o)*c)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>Math.exp(-t*e)*((n-t)*(e*e)));let c=5/e,l=Mt(a,o,c);if(e=h(e),isNaN(l))return{stiffness:z.stiffness,damping:z.damping,duration:e};{let t=l**2*r;return{stiffness:t,damping:s*2*Math.sqrt(r*t),duration:e}}}var Ft=[`duration`,`bounce`],It=[`stiffness`,`damping`,`mass`];function Lt(e,t){return t.some(t=>e[t]!==void 0)}function Rt(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!Lt(e,It)&&Lt(e,Ft))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*i(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:z.mass,stiffness:a,damping:o}}else{let n=Pt({...e,velocity:0});t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}return t}function B(e=z.visualDuration,t=z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Rt({...n,velocity:-g(n.velocity||0)}),m=f||0,_=l/(2*Math.sqrt(c*u)),v=o-a,y=g(Math.sqrt(c/u)),b=Math.abs(v)<5;r||=b?z.restSpeed.granular:z.restSpeed.default,i||=b?z.restDelta.granular:z.restDelta.default;let x,S,C,w,T,E;if(_<1)C=At(y,_),w=(m+_*y*v)/C,x=e=>o-Math.exp(-_*y*e)*(w*Math.sin(C*e)+v*Math.cos(C*e)),T=_*y*w+v*C,E=_*y*v-w*C,S=e=>Math.exp(-_*y*e)*(T*Math.sin(C*e)+E*Math.cos(C*e));else if(_===1){x=e=>o-Math.exp(-y*e)*(v+(m+y*v)*e);let e=m+y*v;S=t=>Math.exp(-y*t)*(y*e*t-m)}else{let e=y*Math.sqrt(_*_-1);x=t=>{let n=Math.exp(-_*y*t),r=Math.min(e*t,300);return o-n*((m+_*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e};let t=(m+_*y*v)/e,n=_*y*t-v*e,r=_*y*v-t*e;S=t=>{let i=Math.exp(-_*y*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let D={calculatedDuration:p&&d||null,velocity:e=>h(S(e)),next:e=>{if(!p&&_<1){let t=Math.exp(-_*y*e),n=Math.sin(C*e),a=Math.cos(C*e),c=o-t*(w*n+v*a),l=h(t*(T*n+E*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=x(e);if(p)s.done=e>=d;else{let n=h(S(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Ot(D),Dt),t=Et(t=>D.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return D}B.applyToOptions=e=>{let t=kt(e,100,B);return e.ease=t.ease,e.duration=h(t.duration),e.type=`keyframes`,e};var zt=5;function Bt(e,t,n){let r=Math.max(t-zt,0);return _(n-e(r),t-r)}function Vt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=B({keyframes:[f.value,m(f.value)],velocity:Bt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Ht(e,t,n){let r=[],i=n||o.mix||wt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=f(Array.isArray(t)?t[n]||d:t,a)),r.push(a)}return r}function Ut(e,t,{clamp:n=!0,ease:r,mixer:a}={}){let o=e.length;if(t.length,o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=Ht(t,r,a),l=c.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=p(e[r],e[r+1],n);return c[r](i)};return n?t=>u(i(e[0],e[o-1],t)):u}function Wt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=p(0,t,r);e.push(ut(n,1,i))}}function Gt(e){let t=[0];return Wt(t,e.length-1),t}function Kt(e,t){return e.map(e=>e*t)}function qt(e,t){return e.map(()=>t||ce).splice(0,e.length-1)}function Jt({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=le(r)?r.map(me):me(r),a={done:!1,value:t[0]},o=Ut(Kt(n&&n.length===t.length?n:Gt(t),e),t,{ease:Array.isArray(i)?i:qt(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Yt=e=>e!==null;function Xt(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Yt),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Zt={decay:Vt,inertia:Vt,tween:Jt,keyframes:Jt,spring:B};function Qt(e){typeof e.type==`string`&&(e.type=Zt[e.type])}var $t=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},en=e=>e/100,tn=class extends $t{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==A.now()&&this.tick(A.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Qt(e);let{type:t=Jt,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Jt;s!==Jt&&typeof o[0]!=`number`&&(this.mixKeyframes=f(en,wt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ot(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);let{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let _=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,d+1),t%2&&(f===`reverse`?(n=1-n,p&&(n-=p/s)):f===`mirror`&&(b=o)),y=i(0,1,n)*s}let x;v?(this.delayState.value=u[0],x=this.delayState):x=b.next(y),a&&!v&&(x.value=a(x.value));let{done:S}=x;!v&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&m!==Vt&&(x.value=Xt(u,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return g(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(this.currentTime)}set time(e){e=h(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Bt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(A.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=g(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(A.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function nn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var V=e=>e*180/Math.PI,rn=e=>on(V(Math.atan2(e[1],e[0]))),an={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rn,rotateZ:rn,skewX:e=>V(Math.atan(e[1])),skewY:e=>V(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},on=e=>(e%=360,e<0&&(e+=360),e),sn=rn,cn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ln=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),un={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cn,scaleY:ln,scale:e=>(cn(e)+ln(e))/2,rotateX:e=>on(V(Math.atan2(e[6],e[5]))),rotateY:e=>on(V(Math.atan2(-e[2],e[0]))),rotateZ:sn,rotate:sn,skewX:e=>V(Math.atan(e[4])),skewY:e=>V(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function dn(e){return+!!e.includes(`scale`)}function fn(e,t){if(!e||e===`none`)return dn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=un,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=an,i=t}if(!i)return dn(t);let a=r[t],o=i[1].split(`,`).map(mn);return typeof a==`function`?a(o):o[a]}var pn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return fn(n,t)};function mn(e){return parseFloat(e.trim())}var hn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],gn=new Set([...hn,`pathRotation`]),_n=e=>e===Ae||e===P,vn=new Set([`x`,`y`,`z`]),yn=hn.filter(e=>!vn.has(e));function bn(e){let t=[];return yn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>fn(t,`x`),y:(e,{transform:t})=>fn(t,`y`)};H.translateX=H.x,H.translateY=H.y;var U=new Set,xn=!1,Sn=!1,Cn=!1;function wn(){if(Sn){let e=Array.from(U).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=bn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Sn=!1,xn=!1,U.forEach(e=>e.complete(Cn)),U.clear()}function Tn(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sn=!0)})}function En(){Cn=!0,Tn(),wn(),Cn=!1}var Dn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(U.add(this),xn||(xn=!0,k.read(Tn),k.resolveKeyframes(wn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}nn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),U.delete(this)}cancel(){this.state===`scheduled`&&(U.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},On=e=>e.startsWith(`--`);function kn(e,t,n){On(t)?e.style.setProperty(t,n):e.style[t]=n}var An={};function jn(e,t){let n=u(e);return()=>An[t]??n()}var Mn=jn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Nn=jn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function In(e,t){if(e)return typeof e==`function`?Nn()?Et(e,t):`ease-out`:de(e)?Pn(e):Array.isArray(e)?e.map(e=>In(e,t)||Fn.easeOut):Fn[e]}function Ln(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=In(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Rn(e){return typeof e==`function`&&`applyToOptions`in e}function zn({type:e,...t}){return Rn(e)&&Nn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Bn=class extends $t{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=zn(e);this.animation=Ln(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Xt(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),kn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return g(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=h(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Mn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),d):r(this)}},Vn={anticipate:re,backInOut:ne,circInOut:ae};function Hn(e){return e in Vn}function Un(e){typeof e.ease==`string`&&Hn(e.ease)&&(e.ease=Vn[e.ease])}var Wn=10,Gn=class extends Bn{constructor(e){Un(e),Qt(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:a,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let s=new tn({...o,autoplay:!1}),c=Math.max(Wn,A.now()-this.startTime),l=i(0,Wn,c-Wn),u=s.sample(c).value,{name:d}=this.options;a&&d&&kn(a,d,u),t.setWithVelocity(s.sample(Math.max(0,c-l)).value,u,l),s.stop()}},Kn=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(R.test(e)||e===`0`)&&!e.startsWith(`url(`));function qn(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Jn(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Kn(i,t),s=Kn(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:qn(e)||(n===`spring`||Rn(n))&&r}function Yn(e){e.duration=0,e.type=`keyframes`}var Xn=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Zn=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Qn(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Zn.test(e[t]))return!0;return!1}var $n=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),er=u(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function tr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return er()&&n&&(Xn.has(n)||$n.has(n)&&Qn(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var nr=40,rr=class extends $t{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=A.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Dn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:s,delay:c,isHandoff:l,onUpdate:u}=n;this.resolvedAt=A.now();let f=!0;Jn(e,i,a,s)||(f=!1,(o.instantAnimations||!c)&&u?.(Xt(e,n,t)),e[0]=e[e.length-1],Yn(n),n.repeat=0);let p={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>nr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},m=f&&!l&&tr(p),h=p.motionValue?.owner?.current,g;if(m)try{g=new Gn({...p,element:h})}catch{g=new tn(p)}else g=new tn(p);g.finished.then(()=>{this.notifyFinished()}).catch(d),this.pendingTimeline&&=(this.stopTimeline=g.attachTimeline(this.pendingTimeline),void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),En()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},ir=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return ar(this.animations,`duration`)}get iterationDuration(){return ar(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function ar(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var or=class extends ir{then(e,t){return this.finished.finally(e).then(()=>{})}},sr=class extends Bn{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}},cr=new WeakMap,lr=(e,t=``)=>`${e}:${t}`;function ur(e){let t=cr.get(e);return t||(t=new Map,cr.set(e,t)),t}var dr=30,fr=e=>!isNaN(parseFloat(e)),pr={current:void 0},mr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=A.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=A.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new m);let n=this.events[e].add(t);return e===`change`?()=>{n(),k.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return pr.current&&pr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=A.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,dr);return _(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function W(e,t){return new mr(e,t)}function hr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function G(e,t){let n=e?.[t]??e?.default??e;return n===e?n:hr(n,e)}var gr={type:`spring`,stiffness:500,damping:25,restSpeed:10},_r=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vr={type:`keyframes`,duration:.8},yr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},br=(e,{keyframes:t})=>t.length>2?vr:gn.has(e)?e.startsWith(`scale`)?_r(t[1]):gr:yr,xr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Sr(e){for(let t in e)if(!xr.has(t))return!0;return!1}var Cr=(e,t,n,r={},i,a)=>s=>{let c=G(r,e)||{},l=c.delay||r.delay||0,{elapsed:u=0}=r;u-=h(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...c,delay:-u,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{s(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};Sr(c)||Object.assign(d,br(e,d)),d.duration&&=h(d.duration),d.repeatDelay&&=h(d.repeatDelay),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Yn(d),d.delay===0&&(f=!0)),(o.instantAnimations||o.skipAnimations||i?.shouldSkipAnimations||c.skipAnimations)&&(f=!0,Yn(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!a&&t.get()!==void 0){let e=Xt(d.keyframes,c);if(e!==void 0){k.update(()=>{d.onUpdate(e),d.onComplete()});return}}return c.isSync?new tn(d):new rr(d)},wr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Tr(e){let t=wr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Er(e,t,n=1){`${e}`;let[r,i]=Tr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return s(e)?parseFloat(e):e}return De(i)?Er(i,t,n+1):i}function Dr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Or(e,t,n,r){if(typeof t==`function`){let[i,a]=Dr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Dr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function kr(e,t,n){let r=e.getProps();return Or(r,t,n===void 0?r.custom:n,e)}var Ar=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...hn]),jr=e=>Array.isArray(e);function Mr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,W(n))}function Nr(e){return jr(e)?e[e.length-1]||0:e}function Pr(e,t){let{transitionEnd:n={},transition:r={},...i}=kr(e,t)||{};i={...i,...n};for(let t in i)Mr(e,t,Nr(i[t]))}var K=e=>!!(e&&e.getVelocity);function Fr(e){return!!(K(e)&&e.add)}function Ir(e,t){let n=e.getValue(`willChange`);if(Fr(n))return n.add(t);if(!n&&o.WillChange){let n=new o.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Lr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Rr=`data-`+Lr(`framerAppearId`);function zr(e){return e.props[Rr]}function Br({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?hr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Br(f,t))continue;let o={delay:n,...G(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){k.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=zr(e);if(n){let e=window.MotionHandoffAnimation(n,t,k);e!==null&&(o.startTime=e,p=!0)}}Ir(e,t);let m=l??e.shouldReduceMotion;r.start(Cr(t,r,i,m&&Ar.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>k.update(()=>{o&&Pr(e,o)});d.length?Promise.all(d).then(t):t()}return d}var Hr={test:e=>e===`auto`,parse:e=>e},Ur=e=>t=>t.test(e),Wr=[Ae,P,N,M,Ge,We,Hr],Gr=e=>Wr.find(Ur(e));function Kr(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||l(e)}var qr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Jr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Pe)||[];if(!r)return e;let i=n.replace(r,``),a=+!!qr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Yr=/\b([a-z-]*)\(.*?\)/gu,Xr={...R,getAnimatableNone:e=>{let t=e.match(Yr);return t?t.map(Jr).join(` `):e}},Zr={...R,getAnimatableNone:e=>{let t=R.parse(e);return R.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Qr={...Ae,transform:Math.round},$r={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:M,pathRotation:M,rotateX:M,rotateY:M,rotateZ:M,scale:Me,scaleX:Me,scaleY:Me,scaleZ:Me,skew:M,skewX:M,skewY:M,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:je,originX:Ke,originY:Ke,originZ:P,zIndex:Qr,fillOpacity:je,strokeOpacity:je,numOctaves:Qr},ei={...$r,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:Xr,WebkitFilter:Xr,mask:Zr,WebkitMask:Zr},ti=e=>ei[e],ni=new Set([Xr,Zr]);function ri(e,t){let n=ti(e);return ni.has(n)||(n=R),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ii=new Set([`auto`,`none`,`0`]);function ai(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ii.has(t)&&L(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ri(n,i)}var oi=class extends Dn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),De(r))){let i=Er(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ar.has(n)||e.length!==2)return;let[r,i]=e,a=Gr(r),o=Gr(i);if(ke(r)!==ke(i)&&H[n]){this.needsMeasurement=!0;return}if(a!==o)if(_n(a)&&_n(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else H[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Kr(e[t]))&&n.push(t);n.length&&ai(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=H[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=H[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},si=new Set(`borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function ci(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&si.has(t)&&(e[n]=e[n]+`px`)}function li(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var ui=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:di,cancel:fi}=ve(queueMicrotask,!1);function pi(e,t){let n=window.getComputedStyle(e);return On(t)?n.getPropertyValue(t):n[t]}function mi(e){return c(e)&&`ownerSVGElement`in e}function hi(e){return mi(e)&&e.tagName===`svg`}var gi=[...Wr,I,R],_i=e=>gi.find(Ur(e)),vi=0,yi=()=>`motion-view-${vi++}`,bi=e=>e.startsWith(`motion-view-`);function xi(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function Si(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function Ci(e,t,n,r,i,a=[],o,s=[],c){let l=li(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??yi();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),xi(e,i,a),Si(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!bi(d)?f=d:(f=yi(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),xi(e,i,a),Si(e,f,o,s,c),f})}function wi(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function Ti(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var Ei={},q=null,J={set:(e,t)=>{Ei[e]=t},commit:()=>{q||(q=document.createElement(`style`),q.id=`motion-view`);let e=``;for(let t in Ei){let n=Ei[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
1
|
+
import{h as e,m as t}from"./ui-egQWc4ws.js";function n(e,t){e.indexOf(t)===-1&&e.push(t)}function r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var i=(e,t,n)=>n>t?t:n<e?e:n;function a(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var o={},s=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),c=e=>typeof e==`object`&&!!e,l=e=>/^0[^.\s]+$/u.test(e);function u(e){let t;return()=>(t===void 0&&(t=e()),t)}var d=e=>e,f=(...e)=>e.reduce((e,t)=>n=>t(e(n))),p=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},m=class{constructor(){this.subscriptions=[]}add(e){return n(this.subscriptions,e),()=>r(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},h=e=>e*1e3,g=e=>e/1e3,_=(e,t)=>t?1e3/t*e:0,v=new Set;function y(e,t,n){e||v.has(t)||(console.warn(a(t,n)),v.add(t))}var b=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},x=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S=1e-7,C=12;function w(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=x(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>S&&++s<C);return o}function T(e,t,n,r){if(e===t&&n===r)return d;let i=t=>w(t,0,1,e,n);return e=>e===0||e===1?e:x(i(e),t,r)}var E=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,D=e=>t=>1-e(1-t),ee=T(.33,1.53,.69,.99),te=D(ee),ne=E(te),re=e=>e>=1?1:(e*=2)<1?.5*te(e):.5*(2-2**(-10*(e-1))),O=e=>1-Math.sin(Math.acos(e)),ie=D(O),ae=E(O),oe=T(.42,0,1,1),se=T(0,0,.58,1),ce=T(.42,0,.58,1),le=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ue(e,t){return le(e)?e[b(0,e.length,t)]:e}var de=e=>Array.isArray(e)&&typeof e[0]==`number`,fe={linear:d,easeIn:oe,easeInOut:ce,easeOut:se,circIn:O,circInOut:ae,circOut:ie,backIn:te,backInOut:ne,backOut:ee,anticipate:re},pe=e=>typeof e==`string`,me=e=>{if(de(e)){e.length;let[t,n,r,i]=e;return T(t,n,r,i)}else if(pe(e))return fe[e],`${e}`,fe[e];return e},he=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ge(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var _e=40;function ve(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=he.reduce((e,t)=>(e[t]=ge(a),e),{}),{setup:c,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let a=o.useManualTiming,s=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,_e),1)),i.timestamp=s,i.isProcessing=!0,c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:he.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<he.length;t++)s[he[t]].cancel(e)},state:i,steps:s}}var{schedule:k,cancel:ye,state:be,steps:xe}=ve(typeof requestAnimationFrame<`u`?requestAnimationFrame:d,!0),Se;function Ce(){Se=void 0}var A={now:()=>(Se===void 0&&A.set(be.isProcessing||o.useManualTiming?be.timestamp:performance.now()),Se),set:e=>{Se=e,queueMicrotask(Ce)}},we=e=>t=>typeof t==`string`&&t.startsWith(e),Te=we(`--`),Ee=we(`var(--`),De=e=>Ee(e)?Oe.test(e.split(`/*`)[0].trim()):!1,Oe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ke(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ae={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},je={...Ae,transform:e=>i(0,1,e)},Me={...Ae,default:1},Ne=e=>Math.round(e*1e5)/1e5,Pe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fe(e){return e==null}var Ie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Le=(e,t)=>n=>!!(typeof n==`string`&&Ie.test(n)&&n.startsWith(e)||t&&!Fe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Re=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Pe);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ze=e=>i(0,255,e),Be={...Ae,transform:e=>Math.round(ze(e))},j={test:Le(`rgb`,`red`),parse:Re(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Be.transform(e)+`, `+Be.transform(t)+`, `+Be.transform(n)+`, `+Ne(je.transform(r))+`)`};function Ve(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var He={test:Le(`#`),parse:Ve,transform:j.transform},Ue=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),M=Ue(`deg`),N=Ue(`%`),P=Ue(`px`),We=Ue(`vh`),Ge=Ue(`vw`),Ke={...N,parse:e=>N.parse(e)/100,transform:e=>N.transform(e*100)},F={test:Le(`hsl`,`hue`),parse:Re(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+N.transform(Ne(t))+`, `+N.transform(Ne(n))+`, `+Ne(je.transform(r))+`)`},I={test:e=>j.test(e)||He.test(e)||F.test(e),parse:e=>j.test(e)?j.parse(e):F.test(e)?F.parse(e):He.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?j.transform(e):F.transform(e),getAnimatableNone:e=>{let t=I.parse(e);return t.alpha=0,I.transform(t)}},qe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Je(e){return isNaN(e)&&typeof e==`string`&&(e.match(Pe)?.length||0)+(e.match(qe)?.length||0)>0}var Ye=`number`,Xe=`color`,Ze=`var`,Qe=`var(`,$e="${}",et=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function L(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(et,e=>(I.test(e)?(r.color.push(a),i.push(Xe),n.push(I.parse(e))):e.startsWith(Qe)?(r.var.push(a),i.push(Ze),n.push(e)):(r.number.push(a),i.push(Ye),n.push(parseFloat(e))),++a,$e)).split($e),indexes:r,types:i}}function tt(e){return L(e).values}function nt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Ye?i+=Ne(r[a]):e===Xe?i+=I.transform(r[a]):i+=r[a]}return i}}function rt(e){return nt(L(e))}var it=e=>typeof e==`number`?0:I.test(e)?I.getAnimatableNone(e):e,at=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:it(e);function ot(e){let t=L(e);return nt(t)(t.values.map((e,n)=>at(e,t.split[n])))}var R={test:Je,parse:tt,createTransformer:rt,getAnimatableNone:ot};function st(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ct({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=st(s,r,e+1/3),a=st(s,r,e),o=st(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function lt(e,t){return n=>n>0?t:e}var ut=(e,t,n)=>e+(t-e)*n,dt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ft=[He,j,F],pt=e=>ft.find(t=>t.test(e));function mt(e){let t=pt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===F&&(n=ct(n)),n}var ht=(e,t)=>{let n=mt(e),r=mt(t);if(!n||!r)return lt(e,t);let i={...n};return e=>(i.red=dt(n.red,r.red,e),i.green=dt(n.green,r.green,e),i.blue=dt(n.blue,r.blue,e),i.alpha=ut(n.alpha,r.alpha,e),j.transform(i))},gt=new Set([`none`,`hidden`]);function _t(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vt(e,t){return n=>ut(e,t,n)}function yt(e){return typeof e==`number`?vt:typeof e==`string`?De(e)?lt:I.test(e)?ht:Ct:Array.isArray(e)?bt:typeof e==`object`?I.test(e)?ht:xt:lt}function bt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>yt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function xt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function St(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var Ct=(e,t)=>{let n=R.createTransformer(t),r=L(e),i=L(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?gt.has(e)&&!i.values.length||gt.has(t)&&!r.values.length?_t(e,t):f(bt(St(r,i),i.values),n):(`${e}${t}`,lt(e,t))};function wt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?ut(e,t,n):yt(e)(e,t)}var Tt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>k.update(t,e),stop:()=>ye(t),now:()=>be.isProcessing?be.timestamp:A.now()}},Et=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Dt=2e4;function Ot(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function kt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ot(r),Dt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:g(i)}}var z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function At(e,t){return e*Math.sqrt(1-t*t)}var jt=12;function Mt(e,t,n){let r=n;for(let n=1;n<jt;n++)r-=e(r)/t(r);return r}var Nt=.001;function Pt({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:r=z.mass}){let a,o;z.maxDuration;let s=1-t;s=i(z.minDamping,z.maxDamping,s),e=i(z.minDuration,z.maxDuration,g(e)),s<1?(a=t=>{let r=t*s,i=r*e,a=r-n,o=At(t,s),c=Math.exp(-i);return Nt-a/o*c},o=t=>{let r=t*s*e,i=r*n+n,o=s**2*t**2*e,c=Math.exp(-r),l=At(t**2,s);return(-a(t)+Nt>0?-1:1)*((i-o)*c)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>Math.exp(-t*e)*((n-t)*(e*e)));let c=5/e,l=Mt(a,o,c);if(e=h(e),isNaN(l))return{stiffness:z.stiffness,damping:z.damping,duration:e};{let t=l**2*r;return{stiffness:t,damping:s*2*Math.sqrt(r*t),duration:e}}}var Ft=[`duration`,`bounce`],It=[`stiffness`,`damping`,`mass`];function Lt(e,t){return t.some(t=>e[t]!==void 0)}function Rt(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!Lt(e,It)&&Lt(e,Ft))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*i(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:z.mass,stiffness:a,damping:o}}else{let n=Pt({...e,velocity:0});t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}return t}function B(e=z.visualDuration,t=z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Rt({...n,velocity:-g(n.velocity||0)}),m=f||0,_=l/(2*Math.sqrt(c*u)),v=o-a,y=g(Math.sqrt(c/u)),b=Math.abs(v)<5;r||=b?z.restSpeed.granular:z.restSpeed.default,i||=b?z.restDelta.granular:z.restDelta.default;let x,S,C,w,T,E;if(_<1)C=At(y,_),w=(m+_*y*v)/C,x=e=>o-Math.exp(-_*y*e)*(w*Math.sin(C*e)+v*Math.cos(C*e)),T=_*y*w+v*C,E=_*y*v-w*C,S=e=>Math.exp(-_*y*e)*(T*Math.sin(C*e)+E*Math.cos(C*e));else if(_===1){x=e=>o-Math.exp(-y*e)*(v+(m+y*v)*e);let e=m+y*v;S=t=>Math.exp(-y*t)*(y*e*t-m)}else{let e=y*Math.sqrt(_*_-1);x=t=>{let n=Math.exp(-_*y*t),r=Math.min(e*t,300);return o-n*((m+_*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e};let t=(m+_*y*v)/e,n=_*y*t-v*e,r=_*y*v-t*e;S=t=>{let i=Math.exp(-_*y*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let D={calculatedDuration:p&&d||null,velocity:e=>h(S(e)),next:e=>{if(!p&&_<1){let t=Math.exp(-_*y*e),n=Math.sin(C*e),a=Math.cos(C*e),c=o-t*(w*n+v*a),l=h(t*(T*n+E*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=x(e);if(p)s.done=e>=d;else{let n=h(S(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Ot(D),Dt),t=Et(t=>D.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return D}B.applyToOptions=e=>{let t=kt(e,100,B);return e.ease=t.ease,e.duration=h(t.duration),e.type=`keyframes`,e};var zt=5;function Bt(e,t,n){let r=Math.max(t-zt,0);return _(n-e(r),t-r)}function Vt({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=B({keyframes:[f.value,m(f.value)],velocity:Bt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Ht(e,t,n){let r=[],i=n||o.mix||wt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=f(Array.isArray(t)?t[n]||d:t,a)),r.push(a)}return r}function Ut(e,t,{clamp:n=!0,ease:r,mixer:a}={}){let o=e.length;if(t.length,o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=Ht(t,r,a),l=c.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=p(e[r],e[r+1],n);return c[r](i)};return n?t=>u(i(e[0],e[o-1],t)):u}function Wt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=p(0,t,r);e.push(ut(n,1,i))}}function Gt(e){let t=[0];return Wt(t,e.length-1),t}function Kt(e,t){return e.map(e=>e*t)}function qt(e,t){return e.map(()=>t||ce).splice(0,e.length-1)}function Jt({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=le(r)?r.map(me):me(r),a={done:!1,value:t[0]},o=Ut(Kt(n&&n.length===t.length?n:Gt(t),e),t,{ease:Array.isArray(i)?i:qt(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Yt=e=>e!==null;function Xt(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Yt),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Zt={decay:Vt,inertia:Vt,tween:Jt,keyframes:Jt,spring:B};function Qt(e){typeof e.type==`string`&&(e.type=Zt[e.type])}var $t=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},en=e=>e/100,tn=class extends $t{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==A.now()&&this.tick(A.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Qt(e);let{type:t=Jt,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Jt;s!==Jt&&typeof o[0]!=`number`&&(this.mixKeyframes=f(en,wt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ot(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);let{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let _=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,d+1),t%2&&(f===`reverse`?(n=1-n,p&&(n-=p/s)):f===`mirror`&&(b=o)),y=i(0,1,n)*s}let x;v?(this.delayState.value=u[0],x=this.delayState):x=b.next(y),a&&!v&&(x.value=a(x.value));let{done:S}=x;!v&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&m!==Vt&&(x.value=Xt(u,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return g(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(this.currentTime)}set time(e){e=h(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Bt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(A.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=g(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(A.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function nn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var V=e=>e*180/Math.PI,rn=e=>on(V(Math.atan2(e[1],e[0]))),an={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rn,rotateZ:rn,skewX:e=>V(Math.atan(e[1])),skewY:e=>V(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},on=e=>(e%=360,e<0&&(e+=360),e),sn=rn,cn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ln=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),un={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cn,scaleY:ln,scale:e=>(cn(e)+ln(e))/2,rotateX:e=>on(V(Math.atan2(e[6],e[5]))),rotateY:e=>on(V(Math.atan2(-e[2],e[0]))),rotateZ:sn,rotate:sn,skewX:e=>V(Math.atan(e[4])),skewY:e=>V(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function dn(e){return+!!e.includes(`scale`)}function fn(e,t){if(!e||e===`none`)return dn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=un,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=an,i=t}if(!i)return dn(t);let a=r[t],o=i[1].split(`,`).map(mn);return typeof a==`function`?a(o):o[a]}var pn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return fn(n,t)};function mn(e){return parseFloat(e.trim())}var hn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],gn=new Set([...hn,`pathRotation`]),_n=e=>e===Ae||e===P,vn=new Set([`x`,`y`,`z`]),yn=hn.filter(e=>!vn.has(e));function bn(e){let t=[];return yn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>fn(t,`x`),y:(e,{transform:t})=>fn(t,`y`)};H.translateX=H.x,H.translateY=H.y;var U=new Set,xn=!1,Sn=!1,Cn=!1;function wn(){if(Sn){let e=Array.from(U).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=bn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Sn=!1,xn=!1,U.forEach(e=>e.complete(Cn)),U.clear()}function Tn(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sn=!0)})}function En(){Cn=!0,Tn(),wn(),Cn=!1}var Dn=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(U.add(this),xn||(xn=!0,k.read(Tn),k.resolveKeyframes(wn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}nn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),U.delete(this)}cancel(){this.state===`scheduled`&&(U.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},On=e=>e.startsWith(`--`);function kn(e,t,n){On(t)?e.style.setProperty(t,n):e.style[t]=n}var An={};function jn(e,t){let n=u(e);return()=>An[t]??n()}var Mn=jn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Nn=jn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function In(e,t){if(e)return typeof e==`function`?Nn()?Et(e,t):`ease-out`:de(e)?Pn(e):Array.isArray(e)?e.map(e=>In(e,t)||Fn.easeOut):Fn[e]}function Ln(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=In(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function Rn(e){return typeof e==`function`&&`applyToOptions`in e}function zn({type:e,...t}){return Rn(e)&&Nn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Bn=class extends $t{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=zn(e);this.animation=Ln(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Xt(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),kn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return g(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=h(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Mn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),d):r(this)}},Vn={anticipate:re,backInOut:ne,circInOut:ae};function Hn(e){return e in Vn}function Un(e){typeof e.ease==`string`&&Hn(e.ease)&&(e.ease=Vn[e.ease])}var Wn=10,Gn=class extends Bn{constructor(e){Un(e),Qt(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:a,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let s=new tn({...o,autoplay:!1}),c=Math.max(Wn,A.now()-this.startTime),l=i(0,Wn,c-Wn),u=s.sample(c).value,{name:d}=this.options;a&&d&&kn(a,d,u),t.setWithVelocity(s.sample(Math.max(0,c-l)).value,u,l),s.stop()}},Kn=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(R.test(e)||e===`0`)&&!e.startsWith(`url(`));function qn(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Jn(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Kn(i,t),s=Kn(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:qn(e)||(n===`spring`||Rn(n))&&r}function Yn(e){e.duration=0,e.type=`keyframes`}var Xn=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Zn=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Qn(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Zn.test(e[t]))return!0;return!1}var $n=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),er=u(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function tr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return er()&&n&&(Xn.has(n)||$n.has(n)&&Qn(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var nr=40,rr=class extends $t{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=A.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Dn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:s,delay:c,isHandoff:l,onUpdate:u}=n;this.resolvedAt=A.now();let f=!0;Jn(e,i,a,s)||(f=!1,(o.instantAnimations||!c)&&u?.(Xt(e,n,t)),e[0]=e[e.length-1],Yn(n),n.repeat=0);let p={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>nr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},m=f&&!l&&tr(p),h=p.motionValue?.owner?.current,g;if(m)try{g=new Gn({...p,element:h})}catch{g=new tn(p)}else g=new tn(p);g.finished.then(()=>{this.notifyFinished()}).catch(d),this.pendingTimeline&&=(this.stopTimeline=g.attachTimeline(this.pendingTimeline),void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),En()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},ir=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return ar(this.animations,`duration`)}get iterationDuration(){return ar(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function ar(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var or=class extends ir{then(e,t){return this.finished.finally(e).then(()=>{})}},sr=class extends Bn{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}},cr=new WeakMap,lr=(e,t=``)=>`${e}:${t}`;function ur(e){let t=cr.get(e);return t||(t=new Map,cr.set(e,t)),t}var dr=30,fr=e=>!isNaN(parseFloat(e)),pr={current:void 0},mr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=A.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=A.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new m);let n=this.events[e].add(t);return e===`change`?()=>{n(),k.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return pr.current&&pr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=A.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,dr);return _(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function W(e,t){return new mr(e,t)}function hr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function G(e,t){let n=e?.[t]??e?.default??e;return n===e?n:hr(n,e)}var gr={type:`spring`,stiffness:500,damping:25,restSpeed:10},_r=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vr={type:`keyframes`,duration:.8},yr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},br=(e,{keyframes:t})=>t.length>2?vr:gn.has(e)?e.startsWith(`scale`)?_r(t[1]):gr:yr,xr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Sr(e){for(let t in e)if(!xr.has(t))return!0;return!1}var Cr=(e,t,n,r={},i,a)=>s=>{let c=G(r,e)||{},l=c.delay||r.delay||0,{elapsed:u=0}=r;u-=h(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...c,delay:-u,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{s(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};Sr(c)||Object.assign(d,br(e,d)),d.duration&&=h(d.duration),d.repeatDelay&&=h(d.repeatDelay),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Yn(d),d.delay===0&&(f=!0)),(o.instantAnimations||o.skipAnimations||i?.shouldSkipAnimations||c.skipAnimations)&&(f=!0,Yn(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!a&&t.get()!==void 0){let e=Xt(d.keyframes,c);if(e!==void 0){k.update(()=>{d.onUpdate(e),d.onComplete()});return}}return c.isSync?new tn(d):new rr(d)},wr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Tr(e){let t=wr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Er(e,t,n=1){`${e}`;let[r,i]=Tr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return s(e)?parseFloat(e):e}return De(i)?Er(i,t,n+1):i}function Dr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Or(e,t,n,r){if(typeof t==`function`){let[i,a]=Dr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Dr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function kr(e,t,n){let r=e.getProps();return Or(r,t,n===void 0?r.custom:n,e)}var Ar=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...hn]),jr=e=>Array.isArray(e);function Mr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,W(n))}function Nr(e){return jr(e)?e[e.length-1]||0:e}function Pr(e,t){let{transitionEnd:n={},transition:r={},...i}=kr(e,t)||{};i={...i,...n};for(let t in i)Mr(e,t,Nr(i[t]))}var K=e=>!!(e&&e.getVelocity);function Fr(e){return!!(K(e)&&e.add)}function Ir(e,t){let n=e.getValue(`willChange`);if(Fr(n))return n.add(t);if(!n&&o.WillChange){let n=new o.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Lr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Rr=`data-`+Lr(`framerAppearId`);function zr(e){return e.props[Rr]}function Br({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?hr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&Br(f,t))continue;let o={delay:n,...G(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){k.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=zr(e);if(n){let e=window.MotionHandoffAnimation(n,t,k);e!==null&&(o.startTime=e,p=!0)}}Ir(e,t);let m=l??e.shouldReduceMotion;r.start(Cr(t,r,i,m&&Ar.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>k.update(()=>{o&&Pr(e,o)});d.length?Promise.all(d).then(t):t()}return d}var Hr={test:e=>e===`auto`,parse:e=>e},Ur=e=>t=>t.test(e),Wr=[Ae,P,N,M,Ge,We,Hr],Gr=e=>Wr.find(Ur(e));function Kr(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||l(e)}var qr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Jr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Pe)||[];if(!r)return e;let i=n.replace(r,``),a=+!!qr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Yr=/\b([a-z-]*)\(.*?\)/gu,Xr={...R,getAnimatableNone:e=>{let t=e.match(Yr);return t?t.map(Jr).join(` `):e}},Zr={...R,getAnimatableNone:e=>{let t=R.parse(e);return R.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Qr={...Ae,transform:Math.round},$r={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:M,pathRotation:M,rotateX:M,rotateY:M,rotateZ:M,scale:Me,scaleX:Me,scaleY:Me,scaleZ:Me,skew:M,skewX:M,skewY:M,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:je,originX:Ke,originY:Ke,originZ:P,zIndex:Qr,fillOpacity:je,strokeOpacity:je,numOctaves:Qr},ei={...$r,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:Xr,WebkitFilter:Xr,mask:Zr,WebkitMask:Zr},ti=e=>ei[e],ni=new Set([Xr,Zr]);function ri(e,t){let n=ti(e);return ni.has(n)||(n=R),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ii=new Set([`auto`,`none`,`0`]);function ai(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ii.has(t)&&L(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ri(n,i)}var oi=class extends Dn{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),De(r))){let i=Er(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ar.has(n)||e.length!==2)return;let[r,i]=e,a=Gr(r),o=Gr(i);if(ke(r)!==ke(i)&&H[n]){this.needsMeasurement=!0;return}if(a!==o)if(_n(a)&&_n(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else H[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Kr(e[t]))&&n.push(t);n.length&&ai(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=H[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=H[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},si=new Set(`borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function ci(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&si.has(t)&&(e[n]=e[n]+`px`)}function li(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var ui=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:di,cancel:fi}=ve(queueMicrotask,!1);function pi(e,t){let n=window.getComputedStyle(e);return On(t)?n.getPropertyValue(t):n[t]}function mi(e){return c(e)&&`ownerSVGElement`in e}function hi(e){return mi(e)&&e.tagName===`svg`}var gi=[...Wr,I,R],_i=e=>gi.find(Ur(e)),vi=0,yi=()=>`motion-view-${vi++}`,bi=e=>e.startsWith(`motion-view-`);function xi(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function Si(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function Ci(e,t,n,r,i,a=[],o,s=[],c){let l=li(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??yi();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),xi(e,i,a),Si(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!bi(d)?f=d:(f=yi(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),xi(e,i,a),Si(e,f,o,s,c),f})}function wi(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function Ti(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var Ei={},q=null,J={set:(e,t)=>{Ei[e]=t},commit:()=>{q||(q=document.createElement(`style`),q.id=`motion-view`);let e=``;for(let t in Ei){let n=Ei[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
|
|
2
2
|
`}q.textContent=e,document.head.appendChild(q),Ei={}},remove:()=>{q&&q.parentElement&&q.parentElement.removeChild(q)}};function Di(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function Oi(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function ki(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var Ai=[`layout`,`enter`,`exit`,`new`,`old`],ji={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},Mi={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},Ni=.2;function Pi(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new ir([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,g=new Set,_=new Map,v=new Map,b=new Map,x=new Map,S=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,g;if(n===`root`||!r.has(n))g=[n];else if(a.has(n))if(e===`old`)x.set(n,li(n)),g=Ci(n,l,u,void 0,c,d,h,f,p),b.set(n,g);else{for(let e of x.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);g=Ci(a.get(n),l,u,b.get(n),c,d,h,f,p)}else g=Ci(n,l,u,void 0,c,d,h,f,p);let y=i.get(n);g.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),y!==void 0&&_.set(n,y);let a=v.get(n)??{};a[e]=[r,g.length],v.set(n,a)})})},C=(e,t)=>{let n=v.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},w=(e,t,n,r,i)=>{let a=Ii(G(c,n),G(Fi(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},T=new Map,E=e=>l.forEach((t,n)=>{let r=n.getBoundingClientRect?.();if(r&&r.height){let n=T.get(t)??{};n[e]={width:r.width,height:r.height},T.set(t,n)}}),D=()=>{g.clear();for(let e of v.keys())e!==`root`&&(_.get(e)??ee(e))&&g.add(e)},ee=e=>{let t=T.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>Ni},te=()=>{ki(`root`,n)||J.set(`:root`,{"view-transition-name":`none`}),J.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),g.forEach(e=>{J.set(`::view-transition-group(${e})`,{overflow:`clip`}),J.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{J.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),J.commit()},ne=()=>{wi(u,d,f),J.remove()},re=async()=>{await t(),S(`new`),E(`new`),D(),te()},O;try{S(`old`),E(`old`),te(),O=document.startViewTransition(re)}catch(e){return ne(),Promise.reject(e)}return O.finished.finally(ne),new Promise((e,t)=>{O.ready.then(()=>{let t=Oi(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=v.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of Ai){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=Ti(a),[u,d]=C(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,g]of Object.entries(f)){if(g==null)continue;if(m===`x`||m===`y`){y(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=Ii(G(c,m),G(p,m));if(!Array.isArray(g)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?Mi[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(g=[n,g])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=h(f.duration),f.delay&&=h(f.delay),n.push(new Bn({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:g})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=Di(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new sr(e)):e.cancel();continue}let c=v.get(o.layer),l=(o.type===`old`||o.type===`new`)&&!!c?.old&&!!c?.new,u=o.type.startsWith(`group`)||l?`group`:o.type,[d,f]=C(o.layer,u),p=w(s,u,u===`group`?`layout`:``,d===-1?0:d,f),g=p.visualDuration;p.duration&&=h(p.duration),p=zn(p);let _=l&&g!==void 0?h(g):p.duration,y=l?`linear`:In(p.ease,p.duration);t.updateTiming({delay:h(p.delay??0),duration:_,easing:y}),n.push(new sr(e))}e(new ir(n))}).catch(()=>O.updateCallbackDone.then(()=>e(new ir([])),t))})}function Fi(e,t){for(let n of ji[t]??[]){let t=e?.[n]?.options;if(t)return t}}function Ii(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var Y=[],Li=null;function Ri(){Li=null;let[e]=Y;e&&zi(e)}function zi(e){r(Y,e),Li=e,Pi(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Ri)}function Bi(){for(let e=Y.length-1;e>=0;e--){let t=Y[e],{interrupt:n}=t.options;if(n===`immediate`){let n=Y.slice(0,e+1).map(e=>e.update),r=Y.slice(e+1);t.update=()=>{n.forEach(e=>e())},Y=[t,...r];break}}(!Li||Y[0]?.options.interrupt===`immediate`)&&Ri()}function Vi(e){Y.push(e),di.render(Bi)}var Hi=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=d,this.notifyReject=d,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(d),Vi(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function Ui(e,t={}){return new Hi(e,t)}var Wi=()=>({min:0,max:0}),Gi=()=>({x:Wi(),y:Wi()}),Ki=new WeakMap;function qi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ji(e){return typeof e==`string`||Array.isArray(e)}var Yi=[`initial`,`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`];function Xi(e){return qi(e.animate)||Yi.some(t=>Ji(e[t]))}function Zi(e){return!!(Xi(e)||e.variants)}function Qi(e,t,n){for(let r in t){let i=t[r],a=n[r];if(K(i))e.addValue(r,i);else if(K(a))e.addValue(r,W(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,W(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var $i={current:null},ea={current:!1},ta=typeof window<`u`;function na(){if(ea.current=!0,ta)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>$i.current=e.matches;e.addEventListener(`change`,t),t()}else $i.current=!1}var ra=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ia={},aa=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Dn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=A.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,k.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Xi(t),this.isVariantNode=Zi(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&K(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Ki.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ea.current||na(),this.shouldReduceMotion=$i.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ye(this.notifyUpdate),ye(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Xn.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Bn({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:h(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=gn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&k.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ia){let t=ia[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gi()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ra.length;t++){let n=ra[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Qi(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=W(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(s(n)||l(n))?n=parseFloat(n):!_i(n)&&R.test(t)&&(n=ri(e,t)),this.setBaseTarget(e,K(n)?n.get():n)),K(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Or(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!K(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new m),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){di.render(this.render)}},oa=class extends aa{constructor(){super(...arguments),this.KeyframeResolver=oi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;K(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function sa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ca(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function la(e,t){return sa(ca(e.getBoundingClientRect(),t))}var ua={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},da=hn.length;function fa(e,t,n){let r=``,i=!0;for(let a=0;a<da;a++){let o=hn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=ui(s,$r[o]);if(!c){i=!1;let t=ua[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${ui(a,$r.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function pa(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(gn.has(e)){o=!0;continue}else if(Te(e)){i[e]=n;continue}else{let t=ui(n,$r[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=fa(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ma(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function ha(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ga={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(P.test(e))e=parseFloat(e);else return e;return`${ha(e,t.target.x)}% ${ha(e,t.target.y)}%`}},_a={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=R.parse(e);if(i.length>5)return r;let a=R.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=ut(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},va={borderRadius:{...ga,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ga,borderTopRightRadius:ga,borderBottomLeftRadius:ga,borderBottomRightRadius:ga,boxShadow:_a};function ya(e,{layout:t,layoutId:n}){return gn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!va[e]||e===`opacity`)}function ba(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(K(r[t])||i&&K(i[t])||ya(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function xa(e){return window.getComputedStyle(e)}var Sa=class extends oa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ma}readValueFromInstance(e,t){if(gn.has(t))return this.projection?.isProjecting?dn(t):pn(e,t);{let n=xa(e),r=(Te(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return la(e,t)}build(e,t,n){pa(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ba(e,t,n)}};function Ca(e,t){return e in t}var wa=class extends aa{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Ca(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Gi()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Ta={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ea={offset:`strokeDashoffset`,array:`strokeDasharray`};function Da(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ta:Ea;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Oa=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ka(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(pa(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Oa)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Da(d,i,a,o,!1)}var Aa=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),ja=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ma(e,t,n,r){ma(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Aa.has(n)?n:Lr(n),t.attrs[n])}function Na(e,t,n){let r=ba(e,t,n);for(let n in e)if(K(e[n])||K(t[n])){let t=hn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Pa=class extends oa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Gi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(gn.has(t)){let e=ti(t);return e&&e.default||0}return t=Aa.has(t)?t:Lr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Na(e,t,n)}build(e,t,n){ka(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ma(e,t,n,r)}mount(e){this.isSVGTag=ja(e.tagName),super.mount(e)}};function Fa(e,t,n){let r=K(e)?e:W(e);return r.start(Cr(``,r,t,n)),r.animation}function Ia(e){return typeof e==`object`&&!Array.isArray(e)}function La(e,t,n,r){return e==null?[]:typeof e==`string`&&Ia(t)?li(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Ra(e,t,n){return e*(t+1)+n*t}function za(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Ba(e,t,n){for(let i=0;i<e.length;i++){let a=e[i];a.at>t&&a.at<n&&(r(e,a),i--)}}function Va(e,t,n,r,i,a){Ba(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ut(i,a,r[o]),easing:ue(n,o)})}function Ha(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Ua(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Wa=`easeInOut`,Ga=20;function Ka(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,za(d,o.at,u,l));continue}let[p,m,g={}]=o;g.at!==void 0&&(d=za(d,g.at,u,l));let _=0,v=(e,n,r,o=0,s=0)=>{let c=Ya(e),{delay:l=0,times:u=Gt(c),type:p=t.type||`keyframes`,repeat:m,repeatType:g,repeatDelay:v=0,...y}=n,{ease:b=t.ease||`easeOut`,duration:x}=n,S=typeof l==`function`?l(o,s):l,C=c.length,w=Rn(p)?p:i?.[p||`keyframes`];if(C<=2&&w){let e=100;if(C===2&&Qa(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...y};x!==void 0&&(n.duration=h(x));let r=kt(n,e,w);b=r.ease,x=r.duration}x??=a;let T=d+S;u.length===1&&u[0]===0&&(u[1]=1);let E=u.length-c.length;if(E>0&&Wt(u,E),c.length===1&&c.unshift(null),m&&`${m}${Ga}`,m&&m<Ga){let e=x>0?v/x:0;x=Ra(x,m,v);let t=[...c],n=[...u];b=Array.isArray(b)?[...b]:[b];let r=[...b],i=g===`reverse`||g===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),g===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?D(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),b.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),b.push(e===0?`linear`:ue(f,e-1))}Ha(u,m,e)}let ee=T+x;Va(r,c,b,u,T,ee),_=Math.max(S+x,_),f=Math.max(ee,f)};if(K(p)){let e=qa(p,s);v(m,g,Ja(`default`,e))}else{let e=La(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,g=g;let r=e[n],i=qa(r,s);for(let e in m)v(m[e],Xa(g,e),Ja(e,i),n,t)}}u=d,d+=_}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Ua);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(p(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Wa)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...m}=t;u.transition[i]={...m,duration:f,ease:l,times:c,...n}}}),o}function qa(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Ja(e,t){return t[e]||(t[e]=[]),t[e]}function Ya(e){return Array.isArray(e)?e:[e]}function Xa(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Za=e=>typeof e==`number`,Qa=e=>e.every(Za);function $a(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=mi(e)&&!hi(e)?new Pa(t):new Sa(t);n.mount(e),Ki.set(e,n)}function eo(e){let t=new wa({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),Ki.set(e,t)}function to(e,t){return K(e)||typeof e==`number`||typeof e==`string`&&!Ia(t)}function no(e,t,n,r){let i=[];if(to(e,t))i.push(Fa(e,Ia(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=La(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?$a:eo;Ki.has(r)||s(r);let c=Ki.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...Vr(c,{...t,transition:l},{}))}}return i}function ro(e,t,n){let r=[];return Ka(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=W(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:B}).forEach(({keyframes:e,transition:t},n)=>{r.push(...no(n,e,t))}),r}function io(e){return Array.isArray(e)&&e.some(Array.isArray)}function ao(e={}){let{scope:t,reduceMotion:n,skipAnimations:i}=e;function a(e,a,o){let s=[],c,l={};if(n!==void 0&&(l.reduceMotion=n),i!==void 0&&(l.skipAnimations=i),io(e)){let{onComplete:n,...r}=a||{};typeof n==`function`&&(c=n),s=ro(e,{...l,...r},t)}else{let{onComplete:n,...r}=o||{};typeof n==`function`&&(c=n),s=no(e,a,{...l,...r},t)}let u=new or(s);return c&&u.finished.then(c),t&&(t.animations.push(u),u.finished.then(()=>{r(t.animations,u)})),u}return a}var oo=ao();function so(e,t,n,r){if(e==null)return[];let i=li(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...G(s,e)};i.duration&&=h(i.duration),i.delay&&=h(i.delay);let a=ur(r),c=lr(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=pi(r,i)),nn(t),ci(t,i),!a&&t.length<2&&t.unshift(pi(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new Bn(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var co=(e=>{function t(t,n,r){return new or(so(t,n,r,e))}return t})(),X=(e,t)=>({finished:e,then:e.then.bind(e),...t}),Z=e=>X((async()=>{await e?.()})(),{cancel(){},stop(){},complete(){}}),lo=(e,t)=>{let n=!1,r=()=>{n||(n=!0,t?.())};return X(e.finished.then(()=>{},()=>{}).finally(r),{cancel(){e.cancel(),r()},stop(){e.stop(),r()},complete(){e.complete(),r()}})},uo=(...e)=>X(Promise.allSettled(e.map(e=>e.finished)).then(()=>{}),{cancel(){e.forEach(e=>e.cancel())},stop(){e.forEach(e=>e.stop())},complete(){e.forEach(e=>e.complete())}}),fo=(...e)=>{let t=!1,n=!1,r=null;return X((async()=>{for(let i of e){if(t)break;r=i(),n&&r.complete(),await r.finished.catch(()=>{})}})(),{cancel(){t=!0,r?.cancel()},stop(){t=!0,r?.stop()},complete(){n=!0,r?.complete()}})},po=`(prefers-reduced-motion: reduce)`,mo=()=>typeof window>`u`||typeof window.matchMedia!=`function`?!1:window.matchMedia(po).matches,ho=(e=`user`)=>e===`always`?!0:e===`never`?!1:mo(),go=(e,t={},n=`user`)=>ho(n)?{...e,duration:0,...t}:e,_o=e=>typeof e==`object`&&!!e&&`initial`in e,vo=e=>{let t={},n=new Map,r=new Map,i;Object.keys(e.values).forEach(r=>{let i=e.values[r];t[r]=W(_o(i)?i.initial:i),_o(i)&&i.transition&&n.set(r,i.transition)});let a=()=>Object.fromEntries(Object.keys(t).map(e=>[e,t[e].get()])),o=e=>{r.get(e)?.stop(),r.delete(e)},s=e=>{Object.keys(e).forEach(n=>{let r=e[n];r===void 0||!t[n]||(o(n),t[n].set(r))})};return{mount:n=>{i?.();let r=new Map,o=()=>{Object.entries(e.style(a())).forEach(([e,t])=>{r.has(e)||r.set(e,e.startsWith(`--`)?n.style.getPropertyValue(e):String(n.style[e]??``)),e.startsWith(`--`)?n.style.setProperty(e,String(t)):n.style[e]=String(t)})},s=Object.values(t).map(e=>e.on(`change`,o));o();let c=!0,l=()=>{c&&(c=!1,s.forEach(e=>e()),r.forEach((e,t)=>{t.startsWith(`--`)?n.style.setProperty(t,e):n.style[t]=e}),i===l&&(i=void 0))};return i=l,l},set:s,animate:(i,a)=>{if(ho(e.reducedMotion))return s(i),Z();let c=Object.keys(i).flatMap(e=>{let s=i[e];if(s===void 0||!t[e])return[];o(e);let c=lo(oo(t[e],s,{...n.get(e),...a}));return r.set(e,c),c.finished.finally(()=>{r.get(e)===c&&r.delete(e)}),[c]});return c.length?uo(...c):Z()},current:a,destroy:()=>{i?.(),r.forEach(e=>e.cancel()),r.clear()}}},yo=new WeakMap,bo=e=>yo.get(e),xo=e=>{let t=yo.get(e);return t?.handle.stop(),t},So=(e,t)=>{yo.set(e,t)},Co=(e,t)=>{yo.get(e)?.handle===t&&yo.delete(e)},wo=(e,t,n,r,i)=>{let a=lo(t(xo(e))),o=()=>a.stop();r?.addEventListener(`abort`,o,{once:!0});let s,c=()=>{r?.removeEventListener(`abort`,o),bo(e)?.handle===s&&i?.(),Co(e,s)};return s=X(a.finished.finally(c),{cancel(){a.cancel(),c()},stop(){a.stop(),c()},complete(){a.complete()}}),So(e,{handle:s,properties:n}),s},Q=Object.freeze({fast:Object.freeze({duration:.08,bounce:0}),moderate:Object.freeze({duration:.16,bounce:0}),slow:Object.freeze({duration:.24,bounce:0})}),$={out:[.23,1,.32,1],inOut:[.77,0,.175,1]},To=Object.freeze({opacity:Object.freeze({in:Object.freeze({opacity:Object.freeze([0,1])}),out:Object.freeze({opacity:Object.freeze([1,0])})}),popover:Object.freeze({in:Object.freeze({opacity:Object.freeze([0,1]),scale:Object.freeze([.97,1])}),out:Object.freeze({opacity:Object.freeze([1,0]),scale:Object.freeze([1,.97])})}),modal:Object.freeze({in:Object.freeze({opacity:Object.freeze([0,1]),y:Object.freeze([8,0]),scale:Object.freeze([.98,1])}),out:Object.freeze({opacity:Object.freeze([1,0]),y:Object.freeze([0,8]),scale:Object.freeze([1,.98])})}),toast:Object.freeze({in:Object.freeze({opacity:Object.freeze([0,1]),transform:Object.freeze([`translateY(calc(var(--ui-toast-stack-offset, 0px) + var(--ui-toast-outside, -100%))) scale(var(--ui-toast-stack-scale, 1))`,`translateY(var(--ui-toast-stack-offset, 0px)) scale(var(--ui-toast-stack-scale, 1))`])}),out:Object.freeze({opacity:0,transform:`translateY(calc(var(--ui-toast-stack-offset, 0px) + var(--ui-toast-outside, -100%))) scale(var(--ui-toast-stack-scale, 1))`})})}),Eo=(e=`moderate`)=>typeof e==`string`?Q[e]:e,Do=e=>Array.isArray(e)?e[e.length-1]:e,Oo=e=>Array.isArray(e)?[...e]:e,ko=e=>!(e instanceof Element)&&typeof e==`object`&&!!e&&`signal`in e,Ao=e=>{let t=e instanceof Element?e:e.el;if(!(t instanceof Element))throw TypeError(`Motion subject requires an Element target.`);return t},jo=(e,t)=>{let n=Ao(e);if(!t)return n;if(t instanceof Element)return t;let r=ko(e)?e.root:n;if(!(r instanceof Element))throw TypeError(`Motion transition subject requires an Element root.`);let i=r.matches(t)?r:r.querySelector(t);if(!i)throw Error(`Motion target not found: ${t}`);return i},Mo=e=>ko(e)?e.signal:null,No=new WeakMap,Po=(e,t)=>{let n=jo(e,t.target);if(!(n instanceof HTMLElement))throw TypeError(`Motion resize requires an HTMLElement target.`);let r=jo(e,t.measure??n);if(r===n)throw Error(`Motion resize requires a separate measurement element.`);if(!(r instanceof HTMLElement))throw TypeError(`Motion resize measurement requires an HTMLElement.`);let i=Mo(e);if(i?.aborted)return Z();let a=xo(n);No.has(n)||No.set(n,{height:n.style.height,opacity:n.style.opacity,overflow:n.style.overflow,willChange:n.style.willChange});let o=Math.max(r.scrollHeight,r.getBoundingClientRect().height),s=a?.properties.has(`block-size`)?n.getBoundingClientRect().height:t.from===`content`?o:0,c=t.to===`content`?o:0,l=ho(),u=Eo(l?`fast`:t.speed),d={},f=new Set;n.style.overflow=`hidden`,n.style.willChange=l?`opacity`:`height, opacity`,l?n.style.height=`${c}px`:(d.height=[s,c],f.add(`block-size`)),t.opacity!==void 0&&(d.opacity=a?.properties.has(`opacity`)?Do(t.opacity):Oo(t.opacity),f.add(`opacity`));let p=lo(co(n,d,l?{duration:`duration`in u?u.duration:Q.fast.duration,ease:$.out}:{type:B,...u})),m=()=>p.stop();i?.addEventListener(`abort`,m,{once:!0});let h,g=()=>{if(i?.removeEventListener(`abort`,m),bo(n)?.handle!==h)return;let e=No.get(n);e&&Object.assign(n.style,e),No.delete(n),Co(n,h)};return h=X(p.finished.finally(g),{cancel(){p.cancel(),g()},stop(){p.stop()},complete(){p.complete()}}),So(n,{handle:h,properties:f}),h},Fo=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Array.isArray(t)?[...t]:t])),Io=(e,t=new Set)=>Object.fromEntries(Object.entries(Fo(e)).map(([e,n])=>[e,t.has(e)&&Array.isArray(n)?Do(n):n])),Lo=new Set([`bottom`,`filter`,`height`,`inset`,`insetBlock`,`insetInline`,`left`,`right`,`top`,`transform`,`width`,`translate`,`x`,`y`,`z`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`skew`,`skewX`,`skewY`]),Ro=e=>Object.fromEntries(Object.entries(Fo(e)).flatMap(([e,t])=>Lo.has(e)?[]:[[e,t]])),zo=e=>Object.fromEntries(Object.entries(Fo(e)).flatMap(([e,t])=>Lo.has(e)?[[e,Array.isArray(t)?Do(t):t]]:[])),Bo=(e,t,n)=>{let r=Eo(n?`fast`:e);return{...`stiffness`in r?{type:B,...r}:{duration:r.duration,ease:$.out},...t}},Vo=(e,t,n)=>{let r=jo(e,t.target),i=Mo(e);if(i?.aborted)return Z();let a=ho();if(a){let e=zo(t.keyframes);Object.keys(e).length>0&&oo(r,e,{duration:0}).complete()}let o=a?Ro(t.keyframes):Fo(t.keyframes);return Object.keys(o).length===0?(oo(r,Object.fromEntries(Object.entries(Fo(t.keyframes)).map(([e,t])=>[e,Array.isArray(t)?Do(t):t])),{duration:0}).complete(),Z()):wo(r,e=>oo(r,Io(o,e?.properties),Bo(t.speed??n.speed,{...n.transition,...t.transition},a)),new Set(Object.keys(o)),i)},Ho=(e,t,n)=>{if(t.kind===`animate`)return Vo(e,t,n);let r=t.speed??n.speed??t.options.speed;return Po(e,r===void 0?t.options:{...t.options,speed:r})},Uo=(e,t)=>t===void 0?{keyframes:e}:{target:e,keyframes:t},Wo=class e{#e;#t;#n;constructor(e,t=[],n={}){this.#e=e,this.#t=t,this.#n=n}#r(t,n){if(!n||this.#t.length===0)return new e(this.#e,[...this.#t,[t]],this.#n);let r=this.#t.slice(0,-1),i=this.#t.at(-1)??[];return new e(this.#e,[...r,[...i,t]],this.#n)}#i(t){let n=this.#t.at(-1);if(!n?.length)throw Error(`Declare a motion segment before configuring it.`);let r=this.#t.slice(0,-1);return new e(this.#e,[...r,[...n.slice(0,-1),t(n.at(-1))]],this.#n)}animate(e,t){return this.#r({kind:`animate`,...Uo(e,t)},!1)}with(e,t){return this.#r({kind:`animate`,...Uo(e,t)},!0)}then(e,t){return this.animate(e,t)}resize(e){return this.#r({kind:`resize`,options:e},!1)}speed(e){return this.#i(t=>({...t,speed:e}))}transition(e){return this.#i(t=>t.kind===`animate`?{...t,transition:{...t.transition,...e}}:t)}defaults(t){let n=t.speed??this.#n.speed,r={...this.#n.transition,...t.transition};return new e(this.#e,this.#t,{...n===void 0?{}:{speed:n},...Object.keys(r).length===0?{}:{transition:r}})}play(){return this.#t.length===0?Z():fo(...this.#t.map(e=>()=>uo(...e.map(e=>Ho(this.#e,e,this.#n)))))}},Go=e=>new Wo(e),Ko=e=>{let t=globalThis.CSS;return typeof t?.escape==`function`?t.escape(e):e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)},qo=e=>`[${t}="${Ko(e)}"]`,Jo=e=>`[data-ui-${Ko(e)}]`,Yo=e=>e instanceof Element?null:typeof e==`string`?e:`selector`in e?e.selector:`part`in e?Jo(e.part):`key`in e?qo(e.key):null,Xo=e=>{if(e instanceof Element)return[e];let t=Yo(e);return t?[t]:[]},Zo=(e=document,t)=>t?(Array.isArray(t)?t:[t]).flatMap(e=>{if(e instanceof Element)return[{subject:e}];if(typeof e==`object`&&`from`in e){let t=Xo(e.from),n=Xo(e.to);return t.flatMap((e,t)=>{let r=n[t]??n[0];return r?[{subject:e,newSubject:r}]:[]})}let t=Yo(e);return t?[{subject:t}]:[]}):[],Qo=async()=>{},$o=e=>{Qo=async()=>{await e()}},es={duration:Q.moderate.duration,ease:$.inOut},ts={transform:[`none`,`none`]},ns=`[${t}], [${e}]`,rs=(e,t,n={})=>{if(typeof document.startViewTransition!=`function`||ho(n.reducedMotion))return Z(e);let r=t??(n.layout||n.preset===`layout`?ns:null),i=Zo(n.scope??document,r),a=Ui(e,{duration:Q.moderate.duration,ease:$.inOut,interrupt:`immediate`,...n.transition});return i.forEach(({subject:e,newSubject:t})=>{a.add(e,t),n.className&&a.class(n.className),typeof n.crop==`boolean`&&a.crop(n.crop),typeof n.group==`boolean`&&a.group(n.group),n.layout!==!1&&n.preset!==`none`&&a.layout(typeof n.layout==`object`?n.layout:es);let r=n.newView??(n.preset===`stream`?ts:void 0),i=n.oldView??(n.preset===`stream`?ts:void 0),o=n.enter,s=n.exit;r&&a.new(r,{duration:Q.fast.duration,ease:$.out}),i&&a.old(i,{duration:Q.fast.duration,ease:$.out}),o&&a.enter(o,{duration:Q.fast.duration,ease:$.out}),s&&a.exit(s,{duration:Q.fast.duration,ease:$.out})}),X(Promise.resolve(a.then(()=>{},()=>{})),{cancel(){Oi().forEach(e=>e.cancel())},stop(){Oi().forEach(e=>e.pause())},complete(){Oi().forEach(e=>{try{e.finish()}catch{e.cancel()}})}})},is=Object.assign(Go,{presets:To,speeds:Q,easings:$,createController:vo,withReducedMotion:go,view:(e,t={})=>{let{targets:n,...r}=t;return rs(async()=>{await e(),await Qo()},n,{preset:`layout`,...r})}});export{B as _,qo as a,Q as c,ho as d,Z as f,W as g,li as h,Ko as i,wo as l,oo as m,rs as n,Go as o,co as p,$o as r,$ as s,is as t,xo as u};
|
|
3
|
-
//# sourceMappingURL=motion-
|
|
3
|
+
//# sourceMappingURL=motion-BhADgUVd.js.map
|