{"version":3,"file":"Input.1d9375ef.js","sources":["../../../node_modules/@griffel/core/constants.esm.js","../../../node_modules/@emotion/hash/dist/emotion-hash.esm.js","../../../node_modules/@griffel/core/runtime/utils/hashSequence.esm.js","../../../node_modules/@griffel/core/runtime/reduceToClassNameForSlots.esm.js","../../../node_modules/@griffel/core/mergeClasses.esm.js","../../../node_modules/@griffel/core/runtime/utils/normalizeCSSBucketEntry.esm.js","../../../node_modules/@griffel/core/renderer/createIsomorphicStyleSheet.esm.js","../../../node_modules/@griffel/core/renderer/getStyleSheetForBucket.esm.js","../../../node_modules/@griffel/core/renderer/safeInsertRule.esm.js","../../../node_modules/@griffel/core/renderer/createDOMRenderer.esm.js","../../../node_modules/@griffel/core/insertionFactory.esm.js","../../../node_modules/@griffel/core/__styles.esm.js","../../../node_modules/@griffel/core/__resetStyles.esm.js","../../../node_modules/@griffel/react/utils/canUseDOM.esm.js","../../../node_modules/@griffel/react/useInsertionEffect.esm.js","../../../node_modules/@griffel/react/insertionFactory.esm.js","../../../node_modules/@griffel/react/RendererContext.esm.js","../../../node_modules/@griffel/react/TextDirectionContext.esm.js","../../../node_modules/@griffel/react/__styles.esm.js","../../../node_modules/@griffel/react/__resetStyles.esm.js","../../../node_modules/@fluentui/react-utilities/lib/compose/constants.js","../../../node_modules/@fluentui/react-utilities/lib/compose/slot.js","../../../node_modules/@fluentui/react-utilities/lib/compose/isSlot.js","../../../node_modules/@fluentui/react-utilities/lib/utils/properties.js","../../../node_modules/@fluentui/react-utilities/lib/utils/getNativeElementProps.js","../../../node_modules/@fluentui/react-utilities/lib/compose/getIntrinsicElementProps.js","../../../node_modules/@fluentui/react-utilities/lib/hooks/useBrowserTimer.js","../../../node_modules/@fluentui/react-shared-contexts/lib/ProviderContext/ProviderContext.js","../../../node_modules/@fluentui/react-shared-contexts/lib/OverridesContext/OverridesContext.js","../../../node_modules/@fluentui/react-shared-contexts/lib/CustomStyleHooksContext/CustomStyleHooksContext.js","../../../node_modules/@fluentui/react-utilities/lib/hooks/useControllableState.js","../../../node_modules/@fluentui/react-utilities/lib/ssr/canUseDOM.js","../../../node_modules/@fluentui/react-utilities/lib/ssr/SSRContext.js","../../../node_modules/@fluentui/react-utilities/lib/hooks/useIsomorphicLayoutEffect.js","../../../node_modules/@fluentui/react-utilities/lib/hooks/useEventCallback.js","../../../node_modules/@fluentui/react-utilities/lib/hooks/useId.js","../../../node_modules/@fluentui/react-utilities/lib/hooks/useMergedRefs.js","../../../node_modules/@fluentui/react-utilities/lib/hooks/useTimeout.js","../../../node_modules/@fluentui/react-utilities/lib/utils/mergeCallbacks.js","../../../node_modules/@fluentui/react-utilities/lib/virtualParent/isVirtualElement.js","../../../node_modules/@fluentui/react-utilities/lib/virtualParent/getParent.js","../../../node_modules/@fluentui/react-jsx-runtime/lib/utils/createCompatSlotComponent.js","../../../node_modules/@fluentui/react-jsx-runtime/lib/jsx/createJSX.js","../../../node_modules/@fluentui/react-jsx-runtime/lib/utils/getMetadataFromSlotComponent.js","../../../node_modules/@fluentui/react-jsx-runtime/lib/utils/Runtime.js","../../../node_modules/@fluentui/react-jsx-runtime/lib/jsx/jsxSlot.js","../../../node_modules/@fluentui/react-jsx-runtime/lib/jsx/jsxsSlot.js","../../../node_modules/@fluentui/react-jsx-runtime/lib/jsx-runtime.js","../../../node_modules/@fluentui/react-icons/lib/contexts/IconDirectionContext.js","../../../node_modules/keyborg/dist/esm/index.js","../../../node_modules/tabster/dist/tabster.esm.js","../../../node_modules/@fluentui/react-tabster/lib/hooks/useTabster.js","../../../node_modules/@fluentui/react-tabster/lib/hooks/useTabsterAttributes.js","../../../node_modules/@fluentui/react-tabster/lib/hooks/useFocusFinders.js","../../../node_modules/@fluentui/react-tabster/lib/focus/constants.js","../../../node_modules/@fluentui/react-tabster/lib/focus/focusWithinPolyfill.js","../../../node_modules/@fluentui/react-tabster/lib/hooks/useFocusWithin.js","../../../node_modules/@fluentui/tokens/lib/global/colors.js","../../../node_modules/@fluentui/tokens/lib/global/colorPalette.js","../../../node_modules/@fluentui/tokens/lib/sharedColorNames.js","../../../node_modules/@fluentui/tokens/lib/statusColorMapping.js","../../../node_modules/@fluentui/tokens/lib/alias/lightColorPalette.js","../../../node_modules/@fluentui/tokens/lib/alias/lightColor.js","../../../node_modules/@fluentui/tokens/lib/global/borderRadius.js","../../../node_modules/@fluentui/tokens/lib/global/curves.js","../../../node_modules/@fluentui/tokens/lib/global/durations.js","../../../node_modules/@fluentui/tokens/lib/global/fonts.js","../../../node_modules/@fluentui/tokens/lib/global/spacings.js","../../../node_modules/@fluentui/tokens/lib/global/strokeWidths.js","../../../node_modules/@fluentui/tokens/lib/tokens.js","../../../node_modules/@fluentui/tokens/lib/global/typographyStyles.js","../../../node_modules/@fluentui/tokens/lib/utils/shadows.js","../../../node_modules/@fluentui/tokens/lib/utils/createLightTheme.js","../../../node_modules/@fluentui/tokens/lib/global/brandColors.js","../../../node_modules/@fluentui/tokens/lib/themes/web/lightTheme.js","../../../node_modules/@fluentui/keyboard-keys/lib/keys.js","../../../node_modules/@fluentui/react-aria/lib/button/useARIAButtonProps.js","../../../node_modules/@fluentui/react-icons/lib/utils/useIconState.js","../../../node_modules/@fluentui/react-icons/lib/utils/createFluentIcon.js","../../../node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-3.js","../../../node_modules/@fluentui/react-button/lib/components/Button/renderButton.js","../../../node_modules/@fluentui/react-button/lib/contexts/ButtonContext.js","../../../node_modules/@fluentui/react-button/lib/components/Button/useButton.js","../../../node_modules/@fluentui/react-button/lib/components/Button/useButtonStyles.styles.js","../../../node_modules/@fluentui/react-button/lib/components/Button/Button.js","../../../node_modules/@fluentui/react-field/lib/contexts/FieldContext.js","../../../node_modules/@fluentui/react-field/lib/contexts/useFieldControlProps.js","../../../node_modules/@fluentui/react-label/lib/components/Label/useLabel.js","../../../node_modules/@fluentui/react-label/lib/components/Label/renderLabel.js","../../../node_modules/@fluentui/react-label/lib/components/Label/useLabelStyles.styles.js","../../../node_modules/@fluentui/react-label/lib/components/Label/Label.js","../../../node_modules/@fluentui/react-input/lib/components/Input/useInput.js","../../../node_modules/@fluentui/react-input/lib/components/Input/renderInput.js","../../../node_modules/@fluentui/react-input/lib/components/Input/useInputStyles.styles.js","../../../node_modules/@fluentui/react-input/lib/components/Input/Input.js"],"sourcesContent":["// ----\n// Heads up!\n// These constants are global and will be shared between Griffel instances.\n// Any change in them should happen only in a MAJOR version. If it happens,\n// please change \"__NAMESPACE_PREFIX__\" to include a version.\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst __GLOBAL__ = typeof window === 'undefined' ? global : window;\nconst __NAMESPACE_PREFIX__ = '@griffel/';\nfunction getGlobalVar(name, defaultValue) {\n if (!__GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__ + name)]) {\n __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__ + name)] = defaultValue;\n }\n return __GLOBAL__[Symbol.for(__NAMESPACE_PREFIX__ + name)];\n}\n/** @internal */\nconst DEBUG_RESET_CLASSES = /*#__PURE__*/getGlobalVar('DEBUG_RESET_CLASSES', {});\n/** @internal */\nconst DEFINITION_LOOKUP_TABLE = /*#__PURE__*/getGlobalVar('DEFINITION_LOOKUP_TABLE', {});\n// ----\n/** @internal */\nconst DATA_BUCKET_ATTR = 'data-make-styles-bucket';\n/** @internal */\nconst DATA_PRIORITY_ATTR = 'data-priority';\n/** @internal */\nconst HASH_PREFIX = 'f';\n/** @internal */\nconst RESET_HASH_PREFIX = 'r';\n/** @internal */\nconst SEQUENCE_HASH_LENGTH = 7;\n/** @internal */\nconst SEQUENCE_PREFIX = '___';\n/** @internal */\nconst DEBUG_SEQUENCE_SEPARATOR = '_';\n/** @internal */\nconst SEQUENCE_SIZE = process.env.NODE_ENV === 'production' ? SEQUENCE_PREFIX.length + SEQUENCE_HASH_LENGTH : SEQUENCE_PREFIX.length + SEQUENCE_HASH_LENGTH + DEBUG_SEQUENCE_SEPARATOR.length + SEQUENCE_HASH_LENGTH;\n// indexes for values in LookupItem tuple\n/** @internal */\nconst LOOKUP_DEFINITIONS_INDEX = 0;\n/** @internal */\nconst LOOKUP_DIR_INDEX = 1;\n// This collection is a map simply for faster access when checking if a CSS property is unsupported\n/** @internal */\nconst UNSUPPORTED_CSS_PROPERTIES = {\n all: 1,\n borderColor: 1,\n borderStyle: 1,\n borderWidth: 1,\n borderBlock: 1,\n borderBlockEnd: 1,\n borderBlockStart: 1,\n borderInline: 1,\n borderInlineEnd: 1,\n borderInlineStart: 1\n};\n/**\n * Removes a CSS property from the style object.\n *\n * @link https://griffel.js.org/react/api/make-styles\n *\n * Do not use the value directly, use `RESET` constant instead.\n */\nconst RESET = 'DO_NOT_USE_DIRECTLY: @griffel/reset-value';\n\nexport { DATA_BUCKET_ATTR, DATA_PRIORITY_ATTR, DEBUG_RESET_CLASSES, DEBUG_SEQUENCE_SEPARATOR, DEFINITION_LOOKUP_TABLE, HASH_PREFIX, LOOKUP_DEFINITIONS_INDEX, LOOKUP_DIR_INDEX, RESET, RESET_HASH_PREFIX, SEQUENCE_HASH_LENGTH, SEQUENCE_PREFIX, SEQUENCE_SIZE, UNSUPPORTED_CSS_PROPERTIES };\n//# sourceMappingURL=constants.esm.js.map\n","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","import hashString from '@emotion/hash';\nimport { SEQUENCE_PREFIX, DEBUG_SEQUENCE_SEPARATOR, SEQUENCE_HASH_LENGTH } from '../../constants.esm.js';\n\nfunction padEndHash(value) {\n const hashLength = value.length;\n if (hashLength === SEQUENCE_HASH_LENGTH) {\n return value;\n }\n for (let i = hashLength; i < SEQUENCE_HASH_LENGTH; i++) {\n value += '0';\n }\n return value;\n}\nfunction hashSequence(classes, dir, sequenceIds = []) {\n if (process.env.NODE_ENV === 'production') {\n return SEQUENCE_PREFIX + padEndHash(hashString(classes + dir));\n }\n return SEQUENCE_PREFIX + padEndHash(hashString(classes + dir)) + DEBUG_SEQUENCE_SEPARATOR + padEndHash(hashString(sequenceIds.join('')));\n}\n\nexport { hashSequence };\n//# sourceMappingURL=hashSequence.esm.js.map\n","import { DEFINITION_LOOKUP_TABLE } from '../constants.esm.js';\nimport { hashSequence } from './utils/hashSequence.esm.js';\n\n/**\n * Reduces a classname map for slot to a classname string. Uses classnames according to text directions.\n *\n * @private\n */\nfunction reduceToClassName(classMap, dir) {\n // - `classString` is a string of classnames separated by a space, used to output classes\n // - `hashString` is a string of classnames separated by a space, used to generate a hash\n //\n // `hashString` is needed to handle `null` values in a class map as they don't produce any classes.\n let classString = '';\n let hashString = '';\n // eslint-disable-next-line guard-for-in\n for (const propertyHash in classMap) {\n const classNameMapping = classMap[propertyHash];\n if (classNameMapping === 0) {\n hashString += propertyHash + ' ';\n continue;\n }\n const hasRTLClassName = Array.isArray(classNameMapping);\n const className = dir === 'rtl' ? (hasRTLClassName ? classNameMapping[1] : classNameMapping) + ' ' : (hasRTLClassName ? classNameMapping[0] : classNameMapping) + ' ';\n classString += className;\n hashString += className;\n }\n return [classString.slice(0, -1), hashString.slice(0, -1)];\n}\n/**\n * Reduces classname maps for slots to classname strings. Registers them in a definition cache to be used by\n * `mergeClasses()`.\n *\n * @internal\n */\nfunction reduceToClassNameForSlots(classesMapBySlot, dir) {\n const classNamesForSlots = {};\n // eslint-disable-next-line guard-for-in\n for (const slotName in classesMapBySlot) {\n const [slotClasses, slotClassesHash] = reduceToClassName(classesMapBySlot[slotName], dir);\n // Handles a case when there are no classes in a set i.e. \"makeStyles({ root: {} })\"\n if (slotClassesHash === '') {\n classNamesForSlots[slotName] = '';\n continue;\n }\n const sequenceHash = hashSequence(slotClassesHash, dir);\n const resultSlotClasses = sequenceHash + (slotClasses === '' ? '' : ' ' + slotClasses);\n DEFINITION_LOOKUP_TABLE[sequenceHash] = [classesMapBySlot[slotName], dir];\n classNamesForSlots[slotName] = resultSlotClasses;\n }\n return classNamesForSlots;\n}\n\nexport { reduceToClassName, reduceToClassNameForSlots };\n//# sourceMappingURL=reduceToClassNameForSlots.esm.js.map\n","import { SEQUENCE_PREFIX, RESET_HASH_PREFIX, DEBUG_RESET_CLASSES, SEQUENCE_SIZE, DEFINITION_LOOKUP_TABLE, LOOKUP_DEFINITIONS_INDEX, LOOKUP_DIR_INDEX } from './constants.esm.js';\nimport { hashSequence } from './runtime/utils/hashSequence.esm.js';\nimport { reduceToClassName } from './runtime/reduceToClassNameForSlots.esm.js';\n\n// Contains a mapping of previously resolved sequences of atomic classnames\nconst mergeClassesCachedResults = {};\nfunction mergeClasses() {\n // arguments are parsed manually to avoid double loops as TS & Babel transforms rest via an additional loop\n // @see https://babeljs.io/docs/en/babel-plugin-transform-parameters\n /* eslint-disable prefer-rest-params */\n let dir = null;\n let resultClassName = '';\n // Is used as a cache key to avoid object merging\n let sequenceMatch = '';\n const sequencesIds = new Array(arguments.length);\n let containsResetClassName = '';\n for (let i = 0; i < arguments.length; i++) {\n const className = arguments[i];\n if (typeof className === 'string' && className !== '') {\n // All classes generated by `makeStyles()` are prefixed by a sequence hash, this allows to identify class sets\n // without parsing each className in a string\n const sequenceIndex = className.indexOf(SEQUENCE_PREFIX);\n if (sequenceIndex === -1) {\n if (process.env.NODE_ENV !== 'production') {\n className.split(' ').forEach(entry => {\n if (entry.startsWith(RESET_HASH_PREFIX) && DEBUG_RESET_CLASSES[entry]) {\n if (containsResetClassName) {\n // eslint-disable-next-line no-console\n console.error('mergeClasses(): a passed string contains multiple classes produced by makeResetStyles (' + `${className} & ${resultClassName}, this will lead to non-deterministic behavior. Learn more:` + 'https://griffel.js.org/react/api/make-reset-styles#limitations' + '\\n' + `Source string: ${className}`);\n } else {\n containsResetClassName = entry;\n }\n }\n });\n }\n resultClassName += className + ' ';\n } else {\n const sequenceId = className.substr(sequenceIndex, SEQUENCE_SIZE);\n // Handles a case with mixed classnames, i.e. \"ui-button ATOMIC_CLASSES\"\n if (sequenceIndex > 0) {\n resultClassName += className.slice(0, sequenceIndex);\n }\n sequenceMatch += sequenceId;\n sequencesIds[i] = sequenceId;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (className.indexOf(SEQUENCE_PREFIX, sequenceIndex + 1) !== -1) {\n // eslint-disable-next-line no-console\n console.error('mergeClasses(): a passed string contains multiple identifiers of atomic classes (classes that start ' + `with \"${SEQUENCE_PREFIX}\"), it's possible that passed classes were concatenated in a wrong way. ` + `Source string: ${className}`);\n }\n }\n }\n }\n // .slice() there allows to avoid trailing space for non-atomic classes\n // \"ui-button ui-flex \" => \"ui-button ui-flex\"\n if (sequenceMatch === '') {\n return resultClassName.slice(0, -1);\n }\n // It's safe to reuse results to avoid continuous merging as results are stable\n // \"__seq1 ... __seq2 ...\" => \"__seq12 ...\"\n const mergeClassesResult = mergeClassesCachedResults[sequenceMatch];\n if (mergeClassesResult !== undefined) {\n return resultClassName + mergeClassesResult;\n }\n const sequenceMappings = [];\n for (let i = 0; i < arguments.length; i++) {\n const sequenceId = sequencesIds[i];\n if (sequenceId) {\n const sequenceMapping = DEFINITION_LOOKUP_TABLE[sequenceId];\n if (sequenceMapping) {\n sequenceMappings.push(sequenceMapping[LOOKUP_DEFINITIONS_INDEX]);\n if (process.env.NODE_ENV !== 'production') {\n if (dir !== null && dir !== sequenceMapping[LOOKUP_DIR_INDEX]) {\n // eslint-disable-next-line no-console\n console.error(`mergeClasses(): a passed string contains an identifier (${sequenceId}) that has different direction ` + `(dir=\"${sequenceMapping[1] ? 'rtl' : 'ltr'}\") setting than other classes. This is not supported. ` + `Source string: ${arguments[i]}`);\n }\n }\n dir = sequenceMapping[LOOKUP_DIR_INDEX];\n } else {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line no-console\n console.error(`mergeClasses(): a passed string contains an identifier (${sequenceId}) that does not match any entry ` + `in cache. Source string: ${arguments[i]}`);\n }\n }\n }\n }\n // eslint-disable-next-line prefer-spread\n const resultClassesMap = Object.assign.apply(Object,\n // .assign() mutates the first object, we can't mutate mappings as it will produce invalid results later\n [{}].concat(sequenceMappings));\n const [atomicClasses, classesMapHash] = reduceToClassName(resultClassesMap, dir);\n // Each merge of classes generates a new sequence of atomic classes that needs to be registered\n const newSequenceHash = hashSequence(classesMapHash, dir, sequencesIds);\n const newClassName = newSequenceHash + ' ' + atomicClasses;\n mergeClassesCachedResults[sequenceMatch] = newClassName;\n DEFINITION_LOOKUP_TABLE[newSequenceHash] = [resultClassesMap, dir];\n return resultClassName + newClassName;\n}\n\nexport { mergeClasses, mergeClassesCachedResults };\n//# sourceMappingURL=mergeClasses.esm.js.map\n","/**\n * @internal\n *\n * @param entry - CSS bucket entry that can be either a string or an array\n * @returns An array where the first element is the CSS rule\n */\nfunction normalizeCSSBucketEntry(entry) {\n if (!Array.isArray(entry)) {\n return [entry];\n }\n if (process.env.NODE_ENV !== 'production' && entry.length > 2) {\n throw new Error('CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues');\n }\n return entry;\n}\n\nexport { normalizeCSSBucketEntry };\n//# sourceMappingURL=normalizeCSSBucketEntry.esm.js.map\n","import { DATA_PRIORITY_ATTR, DATA_BUCKET_ATTR } from '../constants.esm.js';\n\nfunction createIsomorphicStyleSheet(styleElement, bucketName, priority, elementAttributes) {\n // no CSSStyleSheet in SSR, just append rules here for server render\n const __cssRulesForSSR = [];\n elementAttributes[DATA_BUCKET_ATTR] = bucketName;\n elementAttributes[DATA_PRIORITY_ATTR] = String(priority);\n if (styleElement) {\n for (const attrName in elementAttributes) {\n styleElement.setAttribute(attrName, elementAttributes[attrName]);\n }\n }\n function insertRule(rule) {\n if (styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet) {\n return styleElement.sheet.insertRule(rule, styleElement.sheet.cssRules.length);\n }\n return __cssRulesForSSR.push(rule);\n }\n return {\n elementAttributes,\n insertRule,\n element: styleElement,\n bucketName,\n cssRules() {\n if (styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet) {\n return Array.from(styleElement.sheet.cssRules).map(cssRule => cssRule.cssText);\n }\n return __cssRulesForSSR;\n }\n };\n}\nfunction createIsomorphicStyleSheetFromElement(element) {\n const elementAttributes = Array.from(element.attributes).reduce((acc, attr) => {\n acc[attr.name] = attr.value;\n return acc;\n }, {});\n const stylesheet = createIsomorphicStyleSheet(element, elementAttributes[DATA_BUCKET_ATTR], Number(elementAttributes[DATA_PRIORITY_ATTR]), elementAttributes);\n return stylesheet;\n}\n\nexport { createIsomorphicStyleSheet, createIsomorphicStyleSheetFromElement };\n//# sourceMappingURL=createIsomorphicStyleSheet.esm.js.map\n","import { DATA_BUCKET_ATTR, DATA_PRIORITY_ATTR } from '../constants.esm.js';\nimport { createIsomorphicStyleSheet } from './createIsomorphicStyleSheet.esm.js';\n\n/**\n * Ordered style buckets using their short pseudo name.\n *\n * @internal\n */\nconst styleBucketOrdering = [\n// reset styles\n'r',\n// catch-all\n'd',\n// link\n'l',\n// visited\n'v',\n// focus-within\n'w',\n// focus\n'f',\n// focus-visible\n'i',\n// hover\n'h',\n// active\n'a',\n// at rules for reset styles\n's',\n// keyframes\n'k',\n// at-rules\n't',\n// @media rules\n'm',\n// @container rules\n'c'];\n// avoid repeatedly calling `indexOf` to determine order during new insertions\nconst styleBucketOrderingMap = /*#__PURE__*/styleBucketOrdering.reduce((acc, cur, j) => {\n acc[cur] = j;\n return acc;\n}, {});\nfunction getStyleSheetKey(bucketName, media, priority) {\n return (bucketName === 'm' ? bucketName + media : bucketName) + priority;\n}\nfunction getStyleSheetKeyFromElement(styleEl) {\n var _a;\n const bucketName = styleEl.getAttribute(DATA_BUCKET_ATTR);\n const priority = (_a = styleEl.getAttribute(DATA_PRIORITY_ATTR)) !== null && _a !== void 0 ? _a : '0';\n return getStyleSheetKey(bucketName, styleEl.media, priority);\n}\n/**\n * Lazily adds a `