Socket
Socket
Sign inDemoInstall

twind

Package Overview
Dependencies
Maintainers
2
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twind - npm Package Compare versions

Comparing version 1.0.0-next.38 to 1.0.0-next.39

20

CHANGELOG.md
# twind
## 1.0.0-next.39
### Patch Changes
- configurable Dark Mode ClassName ([`774e2bb4`](https://github.com/tw-in-js/twind/commit/774e2bb4c7a019d76e55296e9af75fedc77bd054))
* Arbitrary variants ([`a3b1bcba`](https://github.com/tw-in-js/twind/commit/a3b1bcba6269bc4a51b63041689baf58f6222b7f))
- prevent orphaned style tag when calling setup multiple times (closes #321) ([`0e2aa5c4`](https://github.com/tw-in-js/twind/commit/0e2aa5c4f07e5bca3bea37f864773f665935a263))
* `injectGlobal` support for `@media print (#333, #334) 🙏 @javascriptjedi! ([`9b5e3297`](https://github.com/tw-in-js/twind/commit/9b5e3297470f9d2bdbd4f540d819ee0f42e63595))
- Add `<alpha-value>` placeholder support for custom colors (closes #349) ([`0a63948e`](https://github.com/tw-in-js/twind/commit/0a63948e9f6c5f1bb8088ae6e21dc4bf215ee9e8))
* feat: support rgb and hsl colors opacity conversion ([#336](https://github.com/tw-in-js/twind/pull/336)) 🙏🏽 [@javascriptjedi](https://github.com/javascriptjedi)!
- support alpha values for `theme()` function ([`bdc0a7a1`](https://github.com/tw-in-js/twind/commit/bdc0a7a1c353990d0ef009af181f79c1134bfcec))
* fix missing spaces around arithmetic operators ([`f74163ba`](https://github.com/tw-in-js/twind/commit/f74163ba7310ece8d2de4a80586d19df419bfa86))
## 1.0.0-next.38

@@ -4,0 +24,0 @@

21

package.json
{
"name": "twind",
"version": "1.0.0-next.38",
"version": "1.0.0-next.39",
"description": "The core engine without any presets.",

@@ -38,6 +38,6 @@ "type": "module",

"engines": {
"node": ">=12.4"
"node": ">=14.15.0"
},
"dependencies": {
"@swc/helpers": "^0.3.3",
"@swc/helpers": "^0.4.11",
"csstype": "^3.0.10"

@@ -47,4 +47,3 @@ },

"tag": "next",
"access": "public",
"directory": "dist"
"access": "public"
},

@@ -54,6 +53,6 @@ "main": "./twind.cjs",

".": {
"types": "./twind.d.ts",
"esnext": "./twind.esnext.js",
"module": "./twind.js",
"script": "./twind.global.js",
"types": "./twind.d.ts",
"node": {

@@ -63,3 +62,6 @@ "import": "./twind.mjs",

},
"default": "./twind.js"
"default": {
"import": "./twind.mjs",
"require": "./twind.cjs"
}
},

@@ -70,3 +72,3 @@ "./package.json": "./package.json"

"peerDependencies": {
"typescript": "^4.4.0"
"typescript": "^4.8.4"
},

@@ -82,4 +84,3 @@ "peerDependenciesMeta": {

"jsdelivr": "./twind.global.js",
"types": "./twind.d.ts",
"readme": "# twind [![MIT License](https://flat.badgen.net/github/license/tw-in-js/twind)](https://github.com/tw-in-js/twind/blob/next/LICENSE) [![Latest Release](https://flat.badgen.net/npm/v/twind/next?icon=npm&label&cache=10800&color=blue)](https://www.npmjs.com/package/twind/v/next) [![Github](https://flat.badgen.net/badge/icon/tw-in-js%2Ftwind%23twind?icon=github&label)](https://github.com/tw-in-js/twind/tree/next/packages/twind)\n\n---\n\n## READ THIS FIRST!\n\n**Twind v1 is still in beta. Expect bugs!**\n\n---\n\nUtility-first CSS without any build step right in the browser or any other environment like Node.js, deno, workers, ...\n\nTwind does **not** include any core utilities — use one or more of the existing presets:\n\n- [@twind/preset-autoprefix](https://github.com/tw-in-js/twind/tree/next/packages/preset-autoprefix)\n- [@twind/preset-ext](https://github.com/tw-in-js/twind/tree/next/packages/preset-ext)\n- [@twind/preset-tailwind](https://github.com/tw-in-js/twind/tree/next/packages/preset-tailwind)\n- [@twind/preset-tailwind-forms](https://github.com/tw-in-js/twind/tree/next/packages/preset-tailwind-forms) to get Tailwind v3 and Tailwind Forms.\n\nHere are some examples of how to write your own rules or variants:\n\n- preset-tailwind: [rules](https://github.com/tw-in-js/twind/blob/next/packages/preset-tailwind/src/rules.ts) and [variants](https://github.com/tw-in-js/twind/blob/next/packages/preset-tailwind/src/variants.ts)\n- preset-ext: [rules](https://github.com/tw-in-js/twind/blob/next/packages/preset-ext/src/rules.ts) and [variants](https://github.com/tw-in-js/twind/blob/next/packages/preset-ext/src/variants.ts)\n\nAdditionally we provides several integrations:\n\n- [Gatsby](https://github.com/gatsbyjs/gatsby) — [gatsby-plugin-twind](https://github.com/tw-in-js/twind/tree/next/packages/gatsby-plugin-twind)\n- [Next.js](https://kit.svelte.dev) — [@twind/with-next](https://github.com/tw-in-js/twind/tree/next/packages/with-next)\n- [Remix](https://remix.run) — [@twind/with-remix](https://github.com/tw-in-js/twind/tree/next/packages/with-remix)\n- [SvelteKit](https://kit.svelte.dev) — [@twind/with-sveltekit](https://github.com/tw-in-js/twind/tree/next/packages/with-sveltekit)\n\nTo get you started, take a look at the [examples](https://github.com/tw-in-js/twind/tree/next/examples).\n\n## Usage\n\n```sh\nnpm install twind@next\n```\n\n```js\nimport { setup } from 'twind'\n\n// You must call setup at least once, but can call it multiple times\nsetup({\n /* options */\n})\n```\n\nIncase you are not using SSR to inject the pre-computed styles apply the following pattern to prevent [FOUC](https://en.wikipedia.org/wiki/Flash_of_unstyled_content):\n\n```html\n<body class=\"!block\" style=\"display: none\">\n <!-- ... -->\n</body>\n```\n\nIf any element has the `autofocus` attribute, Twind will focus it after all styles are injected.\n\n<details><summary>Usage with a script tag</summary>\n\nAdd this line to your `index.html`:\n\n```html\n<head>\n <script src=\"https://cdn.jsdelivr.net/npm/twind@next\" crossorigin></script>\n <script>\n twind.setup({\n /* options */\n })\n </script>\n</head>\n```\n\nTo add presets add their ids to the script `src` attribute:\n\n```html\n<head>\n <!-- ... -->\n <script\n src=\"https://cdn.jsdelivr.net/npm/twind@next,npm/@twind/preset-tailwind@next\"\n crossorigin\n ></script>\n <script>\n twind.setup({\n presets: [twind.presetTailwind()],\n // ...\n })\n </script>\n <!-- ... -->\n</head>\n```\n\n</details>\n\n## API\n\n> If you are using the `script` tag these methods are available via the `twind` global object (eg `twind.setup`).\n\n### `setup(config [, sheet [, target]])`\n\nInitializes Twind and can be called as many times as you want.\n\n```js\nimport { setup } from 'twind'\n\n// can be called as many times as you want.\nconst tw = setup({\n /* config */\n})\n// -> tw === import { tw } from 'twind'\n```\n\n### `tw(...tokens)` — the current Twind instance\n\n```js\nimport { tw } from 'twind'\n\ntw`underline`\ntw({ underline: true })\n\ntw.theme('colors.blue.500', 'blue')\n```\n\n### `cx`\n\n```js\nimport { cx } from 'twind'\n\n// Set a className\nelement.className = cx`\n underline\n /* multi\n line\n comment\n */\n hover:focus:!{\n sm:{italic why}\n lg:-{px}\n -mx-1\n }\n // Position\n !top-1 !-bottom-2\n text-{xl black}\n`\n```\n\n### `shortcut`\n\nTDB\n\n### `css`\n\nTDB\n\n### `style`\n\nTDB\n\n### `extract(html, tw)`\n\nUsed for static HTML processing (usually to provide SSR support for your javascript-powered web apps) — powered by [consume(html, tw)](#consumehtml-tw)\n\n**Note**: Consider using [inject](#injecthtml-tw) instead.\n\n**Note**: This clears the Twind instance before processing the HTML.\n\n```js\nimport { setup, extract, tw } from 'twind'\n\n// can be in a different file — but should be called at least once\nsetup({\n /* config */\n})\n\nfunction render() {\n const { html, css } = extract(renderApp(), tw)\n\n // inject as last element into the head\n return html.replace('</head>', `<style data-twind>${css}</style></head>`)\n}\n```\n\n## Low-Level API\n\n### `twind`\n\nTDB\n\n### `consume(html, tw)`\n\nUsed for static HTML processing (usually to provide SSR support for your javascript-powered web apps)\n\n1. parse the markup and process element classes with the provided Twind instance\n2. update the class attributes _if_ necessary\n3. return the HTML string with the final element classes\n\n```js\nimport { setup, tw, consume, stringify } from 'twind'\n\n// can be in a different file — but should be called at least once\nsetup({\n /* config */\n})\n\nfunction render() {\n const html = renderApp()\n\n // clear all styles\n tw.clear()\n\n // generated markup\n const markup = comsume(html, tw)\n\n // create CSS\n const css = stringify(tw.target)\n\n // inject as last element into the head\n return markup.replace('</head>', `<style data-twind>${css}</style></head>`)\n}\n```\n"
"types": "./twind.d.ts"
}

@@ -163,3 +163,3 @@ # twind [![MIT License](https://flat.badgen.net/github/license/tw-in-js/twind)](https://github.com/tw-in-js/twind/blob/next/LICENSE) [![Latest Release](https://flat.badgen.net/npm/v/twind/next?icon=npm&label&cache=10800&color=blue)](https://www.npmjs.com/package/twind/v/next) [![Github](https://flat.badgen.net/badge/icon/tw-in-js%2Ftwind%23twind?icon=github&label)](https://github.com/tw-in-js/twind/tree/next/packages/twind)

**Note**: Consider using [inject](#injecthtml-tw) instead.
**Note**: Consider using [inline](#inlinehtml-tw) instead.

@@ -199,3 +199,3 @@ **Note**: This clears the Twind instance before processing the HTML.

```js
import { setup, tw, consume, stringify } from 'twind'
import { setup, consume, stringify, tw } from 'twind'

@@ -210,7 +210,7 @@ // can be in a different file — but should be called at least once

// clear all styles
tw.clear()
// remember global classes
const restore = tw.snapshot()
// generated markup
const markup = comsume(html, tw)
const markup = consume(html)

@@ -220,2 +220,5 @@ // create CSS

// restore global classes
restore()
// inject as last element into the head

@@ -222,0 +225,0 @@ return markup.replace('</head>', `<style data-twind>${css}</style></head>`)

@@ -71,3 +71,3 @@ import * as CSS$1 from 'csstype';

*/
v: (value: string) => string;
v: (value: string) => MaybeArray<string>;
/**

@@ -109,3 +109,3 @@ * resolves a rule

];
declare type VariantResult = string | Falsey;
declare type VariantResult = MaybeArray<string> | Falsey;
declare type VariantResolver<Theme extends BaseTheme = BaseTheme> = (match: MatchResult, context: Context<Theme>) => VariantResult;

@@ -141,3 +141,3 @@ declare type Variant<Theme extends BaseTheme = BaseTheme> = [

declare type HashFunction = (value: string, defaultHash: (value: string) => string) => string;
declare type DarkModeConfig = 'media' | 'class' | string | boolean | undefined;
declare type DarkModeConfig = 'media' | 'class' | string | boolean | undefined | [mode: 'class', selector: string];
/**

@@ -394,2 +394,3 @@ * Allows to return a dark color for the given light color.

declare function arbitrary<Theme extends BaseTheme = BaseTheme>(value: string, section: string, context: Context<Theme>): string | undefined;
declare function normalize(value: string): string;

@@ -401,2 +402,3 @@ declare function auto(setup: () => void): () => void;

declare const tw: Twind<any, any>;
declare type SheetFactory<SheetTarget = unknown> = () => Sheet<SheetTarget>;
/**

@@ -410,4 +412,4 @@ * Manages a single Twind instance — works in browser, Node.js, Deno, workers...

*/
declare function setup<Theme extends BaseTheme = BaseTheme, SheetTarget = unknown>(config?: TwindConfig<Theme>, sheet?: Sheet<SheetTarget>, target?: HTMLElement): Twind<Theme, SheetTarget>;
declare function setup<Theme = BaseTheme, Presets extends Preset<any>[] = Preset[], SheetTarget = unknown>(config?: TwindUserConfig<Theme, Presets>, sheet?: Sheet<SheetTarget>, target?: HTMLElement): Twind<BaseTheme & ExtractThemes<Theme, Presets>, SheetTarget>;
declare function setup<Theme extends BaseTheme = BaseTheme, SheetTarget = unknown>(config?: TwindConfig<Theme>, sheet?: Sheet<SheetTarget> | SheetFactory<SheetTarget>, target?: HTMLElement): Twind<Theme, SheetTarget>;
declare function setup<Theme = BaseTheme, Presets extends Preset<any>[] = Preset[], SheetTarget = unknown>(config?: TwindUserConfig<Theme, Presets>, sheet?: Sheet<SheetTarget> | SheetFactory<SheetTarget>, target?: HTMLElement): Twind<BaseTheme & ExtractThemes<Theme, Presets>, SheetTarget>;

@@ -725,3 +727,3 @@ declare type StrictMorphVariant<T> = T extends number ? `${T}` | T : T extends 'true' ? true | T : T extends 'false' ? false | T : T;

* ```js
* import { consume, stringify, snapshot, tw } from 'twind'
* import { consume, stringify, tw } from 'twind'
*

@@ -732,3 +734,3 @@ * function render() {

* // remember global classes
* const restore = snapshot(tw.target)
* const restore = tw.snapshot()
*

@@ -738,8 +740,8 @@ * // generated markup

*
* // create CSS
* const css = stringify(tw.target)
*
* // restore global classes
* restore()
*
* // create CSS
* const css = stringify(tw.target)
*
* // inject as last element into the head

@@ -789,3 +791,3 @@ * return markup.replace('</head>', `<style data-twind>${css}</style></head>`)

export { Animation, AnimationFunction, BaseProperties, BaseTheme, CSSBase, CSSFontFace, CSSNested, CSSObject, CSSProperties, CSSValue, Class, ClassObject, ColorFromThemeOptions, ColorFromThemeValue, ColorFunction, ColorFunctionOptions, ColorRecord, ColorValue, Context, CustomProperties, DarkColor, DarkModeConfig, DefaultVariants, ExtractResult, ExtractThemes, Falsey, FilterByThemeValue, HashFunction, InjectGlobalFunction, InlineMinify, InlineOptions, KebabCase, Keyframes, KeyframesFunction, MatchConverter, MatchResult, MaybeArray, MaybeColorValue, MaybeThunk, MorphVariant, Nested, NestedFunction, PartialTheme, Preflight, PreflightThunk, Preset, PresetThunk, PropsOf, RestoreSnapshot, Rule, RuleResolver, RuleResult, ScreenValue, Sheet, SheetRule, StrictMorphVariant, StringLike, StringifyDeclaration, Style, StyleConfig, StyleFunction, StyleProps, StyleToken, StyleTokenValue, ThemeConfig, ThemeFunction, ThemeMatchConverter, ThemeMatchResult, ThemeRuleResolver, ThemeSection, ThemeSectionResolver, ThemeSectionResolverContext, ThemeValue, Twind, TwindConfig, TwindPresetConfig, TwindRule, TwindUserConfig, TxFunction, TypedAtRules, Variant, VariantResolver, VariantResult, VariantsProps, When, animation, apply, arbitrary, asArray, auto, autoDarkColor, colorFromTheme, consume, css, cssom, cx, defineConfig, dom, escape, extract, fromTheme, getSheet, hash, identity, injectGlobal, inline, install, keyframes, mql, noop, observe, setup, shortcut, stringify, style, toCSS, toColorValue, tw, twind, tx, virtual };
export { Animation, AnimationFunction, BaseProperties, BaseTheme, CSSBase, CSSFontFace, CSSNested, CSSObject, CSSProperties, CSSValue, Class, ClassObject, ColorFromThemeOptions, ColorFromThemeValue, ColorFunction, ColorFunctionOptions, ColorRecord, ColorValue, Context, CustomProperties, DarkColor, DarkModeConfig, DefaultVariants, ExtractResult, ExtractThemes, Falsey, FilterByThemeValue, HashFunction, InjectGlobalFunction, InlineMinify, InlineOptions, KebabCase, Keyframes, KeyframesFunction, MatchConverter, MatchResult, MaybeArray, MaybeColorValue, MaybeThunk, MorphVariant, Nested, NestedFunction, PartialTheme, Preflight, PreflightThunk, Preset, PresetThunk, PropsOf, RestoreSnapshot, Rule, RuleResolver, RuleResult, ScreenValue, Sheet, SheetFactory, SheetRule, StrictMorphVariant, StringLike, StringifyDeclaration, Style, StyleConfig, StyleFunction, StyleProps, StyleToken, StyleTokenValue, ThemeConfig, ThemeFunction, ThemeMatchConverter, ThemeMatchResult, ThemeRuleResolver, ThemeSection, ThemeSectionResolver, ThemeSectionResolverContext, ThemeValue, Twind, TwindConfig, TwindPresetConfig, TwindRule, TwindUserConfig, TxFunction, TypedAtRules, Variant, VariantResolver, VariantResult, VariantsProps, When, animation, apply, arbitrary, asArray, auto, autoDarkColor, colorFromTheme, consume, css, cssom, cx, defineConfig, dom, escape, extract, fromTheme, getSheet, hash, identity, injectGlobal, inline, install, keyframes, mql, noop, normalize, observe, setup, shortcut, stringify, style, toCSS, toColorValue, tw, twind, tx, virtual };
//# sourceMappingURL=twind.d.ts.map

@@ -1,1 +0,1 @@

const twind=function(a){"use strict";function b(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function c(a){for(var c=1;c<arguments.length;c++){var d=null!=arguments[c]?arguments[c]:{},e=Object.keys(d);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(d).filter(function(a){return Object.getOwnPropertyDescriptor(d,a).enumerable}))),e.forEach(function(c){b(a,c,d[c])})}return a}function d(a,b){if(null==a)return{};var c,d,e=function(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],b.indexOf(c)>=0||(e[c]=a[c]);return e}(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],!(b.indexOf(c)>=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}const e=new Map();function f(a,b){return e.set(a,b),a}const g="undefined"!=typeof CSS&&CSS.escape||(a=>a.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function h(a){for(var b=9,c=a.length;c--;)b=Math.imul(b^a.charCodeAt(c),1597334677);return"#"+((b^b>>>9)>>>0).toString(36)}function i(a,b="@media "){return b+j(a).map(a=>("string"==typeof a&&(a={min:a}),a.raw||Object.keys(a).map(b=>`(${b}-width:${a[b]})`).join(" and "))).join(",")}function j(a=[]){return Array.isArray(a)?a:null==a?[]:[a]}function k(a){return a}function l(){}function m(a){return[...a.v,(a.i?"!":"")+a.n].join(":")}const n={d:0,b:134217728,c:268435456,s:671088640,u:805306368,o:939524096};function o(a,b){return a& ~n.o|b}function p(a){var b;return(null===(b=a.match(/[-=:;]/g))|| void 0===b?void 0:b.length)||0}function q(a){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(a)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(p(a),15)<<18}const r=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire",];function s(a){return 1<< ~(/:([a-z-]+)/.test(a)&& ~r.indexOf(RegExp.$1.slice(2,7))|| -18)}function t(a){return"-"==a[0]?0:p(a)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test(a)?+!!RegExp.$1||-!!RegExp.$2:0)+1}function u({n:a,i:b,v:c=[]},d,e,f){for(const g of(a&&(a=m({n:a,i:b,v:c})),f=[...j(f)],c)){const h=d.theme("screens",g),k=h&&i(h)||d.v(g);f.push(k),e|=h?67108864|q(k):"dark"==g?1073741824:"@"==k[0]?q(k):s(k)}return{n:a,p:e,r:f,i:b}}function v(a){if(a.d){const b=[],c=w(a.r.reduce((a,c)=>"@"==c[0]?(b.push(c),a):c?y(a,c):a,"&"),b=>x(b,a.n?"."+g(a.n):""));return c&&b.push(c.replace(/:merge\((.+?)\)/g,"$1")),b.reduceRight((a,b)=>b+"{"+a+"}",a.d)}}function w(a,b){return a.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(a,c,d)=>b(c)+d)}function x(a,b){return a.replace(/&/g,b)}function y(a,b){return w(a,a=>w(b,b=>{const c=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(b);if(c){const d=a.indexOf(c[1]);return~d?a.slice(0,d)+c[0]+a.slice(d+c[1].length):x(a,b)}return x(b,a)}))}function z(a,b,c,d){return f(a,(a,e)=>{const{n:f,p:g,r:h,i:i}=u(a,e,b);return c&&M(f,b,c,e,g,h,i,d)})}function A(a,b=","){return a.map(m).join(b)}function B(a,b){if("("!=a[a.length-1]){const c=[];let d=!1,e=!1,f="";for(let g of a)if(!("("==g||/[~@]$/.test(g))){if("!"==g[0]&&(g=g.slice(1),d=!d),g.endsWith(":")){c["dark:"==g?"unshift":"push"](g.slice(0,-1));continue}"-"==g[0]&&(g=g.slice(1),e=!e),g.endsWith("-")&&(g=g.slice(0,-1)),g&&"&"!=g&&(f+=(f&&"-")+g)}f&&(e&&(f="-"+f),b[0].push({n:f,v:c.filter(C),i:d}))}}function C(a,b,c){return c.indexOf(a)==b}function D(a){return a.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ")}const E=new Map();function F(a){let b=E.get(a);if(!b){a=D(a);const c=[],d=[[]];let e=0,f=0,g=0;const i=(b,f=0)=>{e!=g&&(c.push(a.slice(e,g+f)),b&&B(c,d)),e=g+1};for(;g<a.length;g++){const j=a[g];if(f)"\\"!=a[g-1]&&(f+=+("["==j)||-("]"==j));else if("["==j)f+=1;else if("("==j)i(),c.push(j);else if(":"==j)":"!=a[g+1]&&i(!1,1);else if(/[\s,)]/.test(j)){i(!0);let k=c.lastIndexOf("(");if(")"==j){const l=c[k-1];if(/[~@]$/.test(l)){const m=d.shift();c.length=k,B([...c,"#"],d);const{v:o}=d[0].pop();for(const p of m)p.v.splice(+("dark"==p.v[0])- +("dark"==o[0]),o.length);B([...c,z(l.length>1?l.slice(0,-1)+h(JSON.stringify([l,m])):l+"("+A(m)+")",n.s,m,/@$/.test(l)),],d)}k=c.lastIndexOf("(",k-1)}c.length=k+1}else/[~@]/.test(j)&&"("==a[g+1]&&d.unshift([])}i(!0),E.set(a,b=d[0])}return b}const G=new Intl.Collator("en",{numeric:!0});function H(a,b){for(var c=0,d=a.length;c<d;){const e=d+c>>1;0>=I(a[e],b)?c=e+1:d=e}return d}function I(a,b){const c=a.p&n.o;return c==(b.p&n.o)&&(c==n.b||c==n.o)?0:a.p-b.p||a.o-b.o||G.compare(a.n,b.n)}function J(a,b){const d=[];let e;for(const f of a)f.d&&f.n?(null==e?void 0:e.p)==f.p&&""+e.r==""+f.r?(e.c=[e.c,f.c].filter(Boolean).join(" "),e.d=e.d+";"+f.d):d.push(e=c({},f,{n:f.n&&b})):d.push(c({},f,{n:f.n&&b}));return d}function K(a,b,c=n.u,d,e){const f=[];for(const g of a)for(const h of L(g,b,c,d,e))f.splice(H(f,h),0,h);return f}function L(a,b,d,f,g){var h;a=c({},a,{i:a.i||g});const i=function(a,b){const c=e.get(a.n);return c?c(a,b):b.r(a.n,"dark"==a.v[0])}(a,b);return i?"string"==typeof i?({r:f,p:d}=u(a,b,d,f),J(K(F(i),b,d,f,a.i),a.n)):Array.isArray(i)?i.map(a=>c({o:0},a,{r:[...j(f),...j(a.r)],p:o(d,null!==(h=a.p)&& void 0!==h?h:d)})):P(i,a,b,d,f):[{c:m(a),p:0,o:0,r:[]}]}function M(a,b,d,e,f,g,h,i){return J((i?d.flatMap(a=>K([a],e,f,g,h)):K(d,e,f,g,h)).map(a=>a.p&n.o&&(a.n||b==n.b)?c({},a,{p:o(a.p,b),o:0}):a),a)}function N(a,b){return Math.round(parseInt(a,16)*b)}function O(a,b={}){if("function"==typeof a)return a(b);const{opacityValue:c="1",opacityVariable:d}=b,e=d?`var(${d})`:c;if("#"==a[0]&&(4==a.length||7==a.length)){const f=(a.length-1)/3,g=[17,1,.062272][f-1];return`rgba(${[N(a.substr(1,f),g),N(a.substr(1+f,f),g),N(a.substr(1+2*f,f),g),e,]})`}return"1"==e?a:"0"==e?"#0000":a}function P(a,b,c,d,e=[]){return Q(a,u(b,c,d,e),c)}function Q(a,{n:b,p:c,r:d=[],i:e},f){const g=[];let k="",l=0,m=0;for(let p in a||{}){const r=a[p];if("@"==p[0]){if(!r)continue;if("a"==p[1]){g.push(...M(b,c,F(""+r),f,c,d,e,!0));continue}if("l"==p[1]){for(const s of j(r))g.push(...Q(s,{n:b,p:o(c,n[p[7]]),r:d,i:e},f));continue}if("i"==p[1]){g.push(...j(r).map(a=>({p:-1,o:0,r:[],d:p+" "+a})));continue}if("k"==p[1]){g.push({p:n.d,o:0,r:[p],d:Q(r,{p:n.d},f).map(v).join("")});continue}if("f"==p[1]){g.push(...j(r).map(a=>({p:n.d,o:0,r:[p],d:Q(a,{p:n.d},f).map(v).join("")})));continue}}if("object"!=typeof r||Array.isArray(r))"label"==p&&r?b=r+h(JSON.stringify([c,e,a])):(r||0===r)&&(m+=1,l=Math.max(l,t(p=p.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()))),k+=(k?";":"")+j(r).map(a=>f.s(p,R(""+a,f)+(e?" !important":""))).join(";"));else if("@"==p[0]||p.includes("&")){let u=c;"@"==p[0]&&(u|=q(p=p.replace(/\bscreen\(([^)]+)\)/g,(a,b)=>{const c=f.theme("screens",b);return c?(u|=67108864,i(c,"")):a}))),g.push(...Q(r,{n:b,p:u,r:[...d,p],i:e},f))}else g.push(...Q(r,{p:c,r:[p]},f))}return g.unshift({n:b,p:c,o:Math.max(0,15-m)+1.5*Math.min(l||15,15),r:d,d:k}),g.sort(I)}function R(a,b){return a.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(a,c,d,e,f)=>{const g=b.theme(d,f);return"function"==typeof g&&/color|fill|stroke/i.test(d)?O(g):""+g})}function S(a,b,c){return b.reduce((b,d,e)=>b+c(d)+a[e+1],a[0])}function T(a,b){return Array.isArray(a)?V(S(a,b,a=>null!=a&&"boolean"!=typeof a?a:"")):"string"==typeof a?V(a):[a]}const U=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function V(a){a=D(a);const b=[{}],c=[b[0]],d=[];let e;for(;e=U.exec(a);)e[4]&&(b.shift(),d.shift()),e[3]?(d.unshift(e[3]),b.unshift({}),c.push(d.reduce((a,b)=>({[b]:a}),b[0]))):e[4]||(b[0][e[1]]&&(b.unshift({}),c.push(d.reduce((a,b)=>({[b]:a}),b[0]))),b[0][e[1]]=e[2]);return c}function W(a,...b){var c;const d=T(a,b),e=((null===(c=d.find(a=>a.label))|| void 0===c?void 0:c.label)||"css")+h(JSON.stringify(d));return f(e,(a,b)=>J(d.flatMap(c=>P(c,a,b,n.o)),e))}const X=new Proxy(function a(a,b){return Y("animation",a,b)},{get(a,b){return b in a?a[b]:function(a,c){return Y(b,a,c)}}});function Y(a,b,d){return{toString(){return W({label:a,"@layer components":c({},"object"==typeof b?b:{animation:b},{animationName:""+d})})}}}function Z(a,b){return Array.isArray(a)&&Array.isArray(a.raw)?S(a,b,a=>$(a).trim()):b.filter(Boolean).reduce((a,b)=>a+$(b),a?$(a):"")}function $(a){let b="",c;if(a&&"object"==typeof a)if(Array.isArray(a))(c=Z(a[0],a.slice(1)))&&(b+=" "+c);else for(const d in a)a[d]&&(b+=" "+d);else null!=a&&"boolean"!=typeof a&&(b+=" "+a);return b}function _(a){var{presets:b=[]}=a,e=d(a,["presets"]);let f={preflight:!1!==e.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:j(e.variants),rules:j(e.rules),ignorelist:j(e.ignorelist),hash:e.hash,stringify:e.stringify||aa};for(const g of j([...b,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:!1!==e.preflight&&j(e.preflight),theme:e.theme},])){const{preflight:h,darkMode:i=f.darkMode,darkColor:k=f.darkColor,theme:l,variants:m,rules:n,hash:o=f.hash,ignorelist:p,stringify:q=f.stringify}="function"==typeof g?g(f):g;f={preflight:!1!==f.preflight&& !1!==h&&[...f.preflight,...j(h)],darkMode:i,darkColor:k,theme:c({},f.theme,l,{extend:c({},f.theme.extend,null==l?void 0:l.extend)}),variants:[...f.variants,...j(m)],rules:[...f.rules,...j(n)],ignorelist:[...f.ignorelist,...j(p)],hash:o,stringify:q}}return f}function aa(a,b){return a+":"+b}function ba(a,b=[]){const c={};for(const d in a){const e=a[d];let f=[...b,d];c[f.join("-")]=e,"DEFAULT"==d&&(f=b,c[b.join("-")]=e),"object"==typeof e&&Object.assign(c,ba(e,f))}return c}function ca(a,b,c,d,e,f){for(const g of b){let h=c.get(g);h||c.set(g,h=d(g));const i=h(a,e,f);if(i)return i}}function da(a){return fa(a[0],a[1])}function ea(a){return Array.isArray(a)?ga(a[0],a[1],a[2]):ga(a)}function fa(a,b){return ia(a,"function"==typeof b?b:()=>b)}function ga(a,b,c){return ia(a,b?"function"==typeof b?b:"string"==typeof b&&/^[\w-]+$/.test(b)?(a,d)=>({[b]:c?c(a,d):ha(a.input,a.slice(1).find(Boolean)||a.$$||a.input)}):()=>b:a=>({[a[1]]:ha(a.input,a.slice(2).find(Boolean)||a.$$||a.input)}))}function ha(a,b){return"-"==a[0]?`calc(${b} * -1)`:b}function ia(a,b){return ja(a,(a,c,d,e)=>{const f=c.exec(a);if(f)return f.$$=a.slice(f[0].length),f.dark=e,b(f,d)})}function ja(a,b){const c=j(a).map(ka);return(a,d,e)=>{for(const f of c){const g=b(a,f,d,e);if(g)return g}}}function ka(a){return"string"==typeof a?new RegExp("^"+a+(a.includes("$")||"-"==a.slice(-1)?"":"$")):a}function la(a,b){return a.replace(/--(tw-[\w-]+)\b/g,(a,c)=>"--"+b(c).replace("#",""))}function ma(a,b){const e=_(a),f=function({theme:a,darkMode:b,darkColor:c,variants:e,rules:f,hash:i,stringify:j,ignorelist:l}){const m=new Map(),n=new Map(),o=new Map(),p=new Map(),q=ja(l,(a,b)=>b.test(a));e.push(["dark","class"==b?".dark &":"string"==typeof b&&"media"!=b?b:"@media (prefers-color-scheme:dark)",]);const r="function"==typeof i?a=>i(a,h):i?h:k;return{theme:(function(a){var{extend:b={}}=a,c=d(a,["extend"]);const e={},f={colors:g("colors"),theme:g,negative(){return{}},breakpoints(a){const b={};for(const c in a)"string"==typeof a[c]&&(b["screen-"+c]=a[c]);return b}};function g(a,d,f){if(a){var i;if(/[.[]/.test(a)){const j=[];a.replace(/\[([^\]]+)\]|([^.[]+)/g,(a,b,c=b)=>j.push(c)),a=j.shift(),f=d,d=j.join("-")}const k=e[a]||Object.assign(Object.assign(e[a]={},h(c,a)),h(b,a));return null==d?k:null!==(i=k[d||"DEFAULT"])&& void 0!==i?i:f}const l={};for(const m of[...Object.keys(c),...Object.keys(b)])l[m]=g(m);return l}function h(a,b){let c=a[b];return("function"==typeof c&&(c=c(f)),c&&/color|fill|stroke/i.test(b))?ba(c):c}return g})(a),e:g,h:r,s(a,b){return j(la(a,r),la(b,r),this)},d(a,b,d){return null==c?void 0:c(a,b,this,d)},v(a){return m.has(a)||m.set(a,ca(a,e,n,da,this)||"&:"+a),m.get(a)},r(a,b){const c=JSON.stringify([a,b]);return o.has(c)||o.set(c,!q(a,this)&&ca(a,f,p,ea,this,b)),o.get(c)}}}(e);let i=new Map(),l=[],m=new Set();function o(a){const d=a.n&&f.h(a.n),e=v(d?c({},a,{n:d}):a);if(e&&!m.has(e)){m.add(e);const g=H(l,a);b.insert(e,g,a),l.splice(g,0,a)}return d}return b.resume(a=>i.set(a,a),(a,c)=>{b.insert(a,l.length,c),l.push(c),m.add(a)}),Object.defineProperties(function(a){if(!i.size)for(let b of j(e.preflight))"function"==typeof b&&(b=b(f)),b&&("string"==typeof b?M("",n.b,F(b),f,n.b,[],!1,!0):P(b,{},f,n.b)).forEach(o);a=""+a;let c=i.get(a);if(!c){const d=new Set();for(const g of K(F(a),f))d.add(g.c).add(o(g));c=[...d].filter(Boolean).join(" "),i.set(a,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return b.target},theme:f.theme,config:e,snapshot(){const a=b.snapshot(),c=[...m],d=[...i],e=[...l];return()=>{a(),m=new Set(c),i=new Map(d),l=e}},clear(){b.clear(),m=new Set(),i=new Map(),l=[]},destroy(){this.clear(),b.destroy()}}))}function na(a,b){return a!=b&&""+a.split(" ").sort()!=""+b.split(" ").sort()}function oa(a=va,b=document.documentElement){if(!b)return a;const c=new MutationObserver(e);c.observe(b,{attributeFilter:["class"],subtree:!0,childList:!0}),f(b),e([{target:b,type:""}]);const{destroy:d}=a;function e(a){for(const{type:b,target:d}of a)if("a"==b[0])f(d);else for(const e of d.querySelectorAll("[class]"))f(e);c.takeRecords()}function f(b){const c=b.getAttribute("class");let d;c&&na(c,d=a(c))&&b.setAttribute("class",d)}return a.destroy=()=>{c.disconnect(),d.call(a)},a}function pa(a){let b=a||document.querySelector("style[data-twind]");return b&&"STYLE"==b.tagName||((b=document.createElement("style")).dataset.twind="",document.head.prepend(b)),b}function qa(a){var b;const c=(null===(b=a)|| void 0===b?void 0:b.cssRules)?a:pa(a).sheet;return{target:c,snapshot(){const a=Array.from(c.cssRules,a=>a.cssText);return()=>{this.clear(),a.forEach(this.insert)}},clear(){for(let a=c.cssRules.length;a--;)c.deleteRule(a)},destroy(){var a;null===(a=c.ownerNode)|| void 0===a||a.remove()},insert(a,b){try{c.insertRule(a,b)}catch(d){c.insertRule(":root{}",b),/:-[mwo]/.test(a)||console.warn(d,a)}},resume:l}}function ra(a){const b=pa(a);return{target:b,snapshot(){const a=Array.from(b.childNodes,a=>a.textContent);return()=>{this.clear(),a.forEach(this.insert)}},clear(){b.textContent=""},destroy(){b.remove()},insert(a,c){b.insertBefore(document.createTextNode(a),b.childNodes[c]||null)},resume:l}}function sa(a,b){const c=a?ra():qa();return b||(c.resume=ua),c}function ta(a){return(a.ownerNode||a).textContent||(a.cssRules?Array.from(a.cssRules,a=>a.cssText):j(a)).join("")}function ua(a,b){const c=ta(this.target),d=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(d.test(c)){for(const e of(d.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))a(e.getAttribute("class"));let f;for(var g;g=d.exec(c),f&&b(c.slice(f.index+f[0].length,null==g?void 0:g.index),{p:parseInt(f[1],36),o:parseInt(f[2],36)/2,n:f[3]}),f=g;);}}const va=new Proxy(l,{apply(a,b,c){return wa(c[0])},get(a,b){const c=(wa||a)[b];return"function"==typeof c?c.bind(wa):c}});let wa;function xa(a={},b=sa(),c){return null==wa||wa.destroy(),wa=oa(ma(a,b),c)}const ya=za();function za(a){return new Proxy(function(b,...c){return Aa(a,"",b,c)},{get(b,c){return"bind"===c?za:c in b?b[c]:function(b,...d){return Aa(a,c,b,d)}}})}function Aa(a,b,c,d){return{toString(){const e=T(c,d),f=g(b+h(JSON.stringify([b,e])));return("function"==typeof a?a:va)(W({[`@keyframes ${f}`]:T(c,d)})),f}}}const Ba=Da("@"),Ca=Da("~");function Da(a){function b(b,c,d){return A(F(b+a+"("+Z(c,d)+")"))}return new Proxy(function(a,...c){return b("",a,c)},{get(a,c){return c in a?a[c]:function(a,...d){return b(c,a,d)}}})}function Ea(a,b){const c={};return"string"==typeof b?c[a]=b:(b.opacityVariable&&b.value.includes(b.opacityVariable)&&(c[b.opacityVariable]=b.opacityValue||"1"),c[a]=b.value),c}function Fa(a,b,c){if("["==a[0]&&"]"==a.slice(-1)){if(a=Ha(R(a.slice(1,-1),c)),/color|fill|stroke/i.test(b)){if(/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(a))return a}else if(!/image/i.test(b))return a;else if(/^[a-z-]+\(/.test(a))return a}}function Ga(a){return a.replace(/-./g,a=>a[1].toUpperCase())}function Ha(a){return a.includes("url(")?a.replace(/(.*?)(url\(.*?\))(.*?)/g,(a,b="",c,d="")=>Ha(b)+c+Ha(d)):((a=a.replace(/(^|[^\\])_+/g,(a,b)=>b+" ".repeat(a.length-b.length)).replace(/\\_/g,"_")).includes("calc(")&&(a=a.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ")),a)}function Ia(a={},b){const{label:d="style",base:e,props:f={},defaults:i,when:j=[]}=a,k=c({},null==b?void 0:b.defaults,i),l=h(JSON.stringify([d,null==b?void 0:b.className,e,f,k,j])),m=o("",e||"",n.c);function o(a,c,e){return z(((b?b.className.replace(/#.+$/,"~"):"")+d+a+l).replace(/[: ,()[\]]/,""),e,c&&F(c))}return Object.defineProperties(function(a){let d;Array.isArray(a)&&(d=!0,a=Object.fromEntries(new URLSearchParams(a[1]).entries()));const e=c({},k,a);let g=d?"":(b?b(e)+" ":"")+m,h;for(const i in f){const l=f[i],n=e[i];if(n===Object(n)){let p="";for(const q in h="",n){const r=l[n[q]];r&&(p+="@"+q+"-"+n[q],h+=(h&&" ")+("_"==q?r:q+":("+r+")"))}h&&(g+=" "+o("--"+i+"-"+p,h,402653184))}else(h=l[n])&&(g+=" "+o("--"+i+"-"+n,h,402653184))}return j.forEach((a,b)=>{let c="";for(const d in a[0]){const f=e[d];if(f!==Object(f)&&""+f==""+a[0][d])c+=(c&&"_")+d+"-"+f;else{c="";break}}c&&(h=a[1])&&(g+=" "+o("-"+b+"--"+c,h,536870912))}),g},Object.getOwnPropertyDescriptors({className:m,defaults:k,selector:"."+g(m)}))}function Ja(a,b=va){const c=b.snapshot(),d={html:Ka(a,b),css:ta(b.target)};return c(),d}function Ka(a,b=va){let c="",d=0;return La(a,(e,f,g)=>{const h=a.slice(e,f),i=("\""==g?h.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==g?h.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,"$1\"$2"):h).replace(/&amp;/g,"&"),j=b(i);na(h,j)&&(g=g?"":"\"",c+=a.slice(d,e)+g+j+g,d=f)}),c+a.slice(d,a.length)}function La(a,b){let c=1,d=0,e="",f="";const g=a=>{5==c&&"class"==f&&b(d,a,e)};for(let h=0;h<a.length;h++){const i=a[h];1==c?"<"==i&&(c="!--"==a.substr(h+1,3)?4:3):4==c?">"==i&&"--"==a.slice(h-2,h)&&(c=1):e?i==e&&"\\"!=a[h-1]&&(g(h),c=2,e=""):"\""==i||"'"==i?(e=i,d+=1):">"==i?(g(h),c=1):c&&("="==i?(f=a.slice(d,h),c=5,d=h+1):"/"==i&&(c<5||">"==a[h+1])?(g(h),c=0):/\s/.test(i)&&(g(h),c=2,d=h+1))}}return a.animation=X,a.apply=Ba,a.arbitrary=Fa,a.asArray=j,a.auto=function(a){if(document.currentScript){const b=()=>c.disconnect(),c=new MutationObserver(c=>{for(const{target:d}of c)if(d===document.body)return a(),b()});return c.observe(document.documentElement,{childList:!0,subtree:!0}),b}return l},a.autoDarkColor=function(a,b,{theme:c}){return c(a,b=b.replace(/\d+$/,a=>100*(9- ~~(parseInt(a,10)/100)||.5)))},a.colorFromTheme=function(a={},b){return(c,d)=>{const{section:e=Ga(c[0]).replace("-","")+"Color"}=a;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(c.$$))return;const{$1:f,$2:g}=RegExp,h=d.theme(e,f)||Fa(f,e,d);if(!h)return;const{opacityVariable:i=`--tw-${c[0].replace(/-$/,"")}-opacity`,opacitySection:j=e.replace("Color","Opacity"),property:k=e,selector:l}=a,m=d.theme(j,g||"DEFAULT")||g&&Fa(g,j,d),n=b||(({_:a})=>{const b=Ea(k,a);return l?{[l]:b}:b});c._={value:O(h,{opacityVariable:i||void 0,opacityValue:m||void 0}),color:a=>O(h,a),opacityVariable:i||void 0,opacityValue:m||void 0};let o=n(c,d);if(!c.dark){const p=d.d(e,f,h);p&&p!==h&&(c._={value:O(p,{opacityVariable:i||void 0,opacityValue:m||"1"}),color:a=>O(p,a),opacityVariable:i||void 0,opacityValue:m||void 0},o={"&":o,[d.v("dark")]:n(c,d)})}return o}},a.consume=Ka,a.css=W,a.cssom=qa,a.cx=function(a,...b){return A(F(Z(a,b))," ")},a.defineConfig=_,a.dom=ra,a.escape=g,a.extract=Ja,a.fromTheme=function(a,b,c){const d=b?"string"==typeof b?(a,d)=>({[b]:c?c(a,d):a._}):b:({1:a,_:b},c,d)=>({[a||d]:b});return(b,c)=>{var e;const f=Ga(a||b[1]),g=null!==(e=c.theme(f,b.$$))&& void 0!==e?e:Fa(b.$$,f,c);if(null!=g)return b._="-"==b.input[0]?`calc(${g} * -1)`:g,d(b,c,f)}},a.getSheet=sa,a.hash=h,a.identity=k,a.injectGlobal=function(a,...b){("function"==typeof this?this:va)(W({"@layer base":T(a,b)}))},a.inline=function(a,b={}){const{tw:c=va,minify:d=k}="function"==typeof b?{tw:b}:b,{html:e,css:f}=Ja(a,c);return e.replace("</head>",`<style data-twind>${d(f,e)}</style></head>`)},a.install=function(a,b){var d;const e=_(a);return xa(c({},e,{hash:null!==(d=e.hash)&& void 0!==d?d:b}),sa(!b))},a.keyframes=ya,a.mql=i,a.noop=l,a.observe=oa,a.setup=xa,a.shortcut=Ca,a.stringify=ta,a.style=(a,b)=>"function"==typeof a?Ia(b,a):Ia(a),a.toCSS=Ea,a.toColorValue=O,a.tw=va,a.twind=ma,a.tx=function(a,...b){return("function"==typeof this?this:va)(Z(a,b))},a.virtual=function(a){const b=[];return{target:b,snapshot(){const a=[...b];return()=>{b.splice(0,b.length,...a)}},clear(){b.length=0},destroy(){this.clear()},insert(c,d,e){b.splice(d,0,a?`/*!${e.p.toString(36)},${(2*e.o).toString(36)}${e.n?","+e.n:""}*/${c}`:c)},resume:l}},a}({})//# sourceMappingURL=twind.global.js.map
var e=function(e){"use strict";let t;function n(){return(n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function r(){return n.apply(this,arguments)}let i=new Map;function l(e,t){return i.set(e,t),e}let o="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function u(e){for(var t=9,n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function s(e,t="@media "){return t+c(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function c(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function a(e){return e}function f(){}function p(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}let d={d:0,b:134217728,c:268435456,s:671088640,u:805306368,o:939524096};function h(e,t){return e&~d.o|t}function g(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function y(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(g(e),15)<<18}let m=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function b(e){return 1<<~(/:([a-z-]+)/.test(e)&&~m.indexOf(RegExp.$1.slice(2,7))||-18)}function v(e){return"-"==e[0]?0:g(e)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test(e)?+!!RegExp.$1||-!!RegExp.$2:0)+1}function $({n:e,i:t,v:n=[]},r,i,l){for(let o of(e&&(e=p({n:e,i:t,v:n})),l=[...c(l)],n)){let u=r.theme("screens",o);for(let a of c(u&&s(u)||r.v(o)))l.push(a),i|=u?67108864|y(a):"dark"==o?1073741824:"@"==a[0]?y(a):b(a)}return{n:e,p:i,r:l,i:t}}function w(e){if(e.d){let t=[],n=x(e.r.reduce((e,n)=>{var r,i;return"@"==n[0]?(t.push(n),e):n?(r=e,i=n,x(r,e=>x(i,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let r=e.indexOf(n[1]);return~r?e.slice(0,r)+n[0]+e.slice(r+n[1].length):k(e,t)}return k(t,e)}))):e},"&"),t=>k(t,e.n?"."+o(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function x(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function k(e,t){return e.replace(/&/g,t)}function j(e,t,n,r){return l(e,(e,i)=>{let{n:l,p:o,r:u,i:s}=$(e,i,t);return n&&T(l,t,n,i,o,u,s,r)})}function A(e,t=","){return e.map(p).join(t)}function O(e,t){if("("!=e[e.length-1]){let n=[],r=!1,i=!1,l="";for(let o of e)if(!("("==o||/[~@]$/.test(o))){if("!"==o[0]&&(o=o.slice(1),r=!r),o.endsWith(":")){n["dark:"==o?"unshift":"push"](o.slice(0,-1));continue}"-"==o[0]&&(o=o.slice(1),i=!i),o.endsWith("-")&&(o=o.slice(0,-1)),o&&"&"!=o&&(l+=(l&&"-")+o)}l&&(i&&(l="-"+l),t[0].push({n:l,v:n.filter(S),i:r}))}}function S(e,t,n){return n.indexOf(e)==t}function M(e){return e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ")}let C=new Map;function E(e){let t=C.get(e);if(!t){e=M(e);let n=[],r=[[]],i=0,l=0,o=0,s=(t,l=0)=>{i!=o&&(n.push(e.slice(i,o+l)),t&&O(n,r)),i=o+1};for(;o<e.length;o++){let c=e[o];if(l)"\\"!=e[o-1]&&(l+=+("["==c)||-("]"==c));else if("["==c)l+=1;else if("("==c)s(),n.push(c);else if(":"==c)":"!=e[o+1]&&s(!1,1);else if(/[\s,)]/.test(c)){s(!0);let a=n.lastIndexOf("(");if(")"==c){let f=n[a-1];if(/[~@]$/.test(f)){let p=r.shift();n.length=a,O([...n,"#"],r);let{v:h}=r[0].pop();for(let g of p)g.v.splice(+("dark"==g.v[0])-+("dark"==h[0]),h.length);O([...n,j(f.length>1?f.slice(0,-1)+u(JSON.stringify([f,p])):f+"("+A(p)+")",d.s,p,/@$/.test(f))],r)}a=n.lastIndexOf("(",a-1)}n.length=a+1}else/[~@]/.test(c)&&"("==e[o+1]&&r.unshift([])}s(!0),C.set(e,t=r[0])}return t}let R=new Intl.Collator("en",{numeric:!0});function N(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=V(e[i],t)?n=i+1:r=i}return r}function V(e,t){let n=e.p&d.o;return n==(t.p&d.o)&&(n==d.b||n==d.o)?0:e.p-t.p||e.o-t.o||R.compare(e.n,t.n)}function P(e,t){let n;let i=[];for(let l of e)l.d&&l.n?(null==n?void 0:n.p)==l.p&&""+n.r==""+l.r?(n.c=[n.c,l.c].filter(Boolean).join(" "),n.d=n.d+";"+l.d):i.push(n=r({},l,{n:l.n&&t})):i.push(r({},l,{n:l.n&&t}));return i}function z(e,t,n=d.u,r,i){let l=[];for(let o of e)for(let u of F(o,t,n,r,i))l.splice(N(l,u),0,u);return l}function F(e,t,n,l,o){var u;e=r({},e,{i:e.i||o});let s=function(e,t){let n=i.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:l,p:n}=$(e,t,n,l),P(z(E(s),t,n,l,e.i),e.n)):Array.isArray(s)?s.map(e=>r({o:0},e,{r:[...c(l),...c(e.r)],p:h(n,null!=(u=e.p)?u:n)})):L(s,e,t,n,l):[{c:p(e),p:0,o:0,r:[]}]}function T(e,t,n,i,l,o,u,s){return P((s?n.flatMap(e=>z([e],i,l,o,u)):z(n,i,l,o,u)).map(e=>e.p&d.o&&(e.n||t==d.b)?r({},e,{p:h(e.p,t),o:0}):e),e)}function _(e,t){return Math.round(parseInt(e,16)*t)}function I(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:r}=t,i=r?`var(${r})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let l=(e.length-1)/3,o=[17,1,.062272][l-1];return`rgba(${[_(e.substr(1,l),o),_(e.substr(1+l,l),o),_(e.substr(1+2*l,l),o),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function L(e,t,n,r,i=[]){return function e(t,{n:n,p:r,r:i=[],i:l},o){let a=[],f="",p=0,g=0;for(let m in t||{}){let b=t[m];if("@"==m[0]){if(!b)continue;if("a"==m[1]){a.push(...T(n,r,E(""+b),o,r,i,l,!0));continue}if("l"==m[1]){for(let $ of c(b))a.push(...e($,{n:n,p:h(r,d[m[7]]),r:i,i:l},o));continue}if("i"==m[1]){a.push(...c(b).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){a.push({p:d.d,o:0,r:[m],d:e(b,{p:d.d},o).map(w).join("")});continue}if("f"==m[1]){a.push(...c(b).map(t=>({p:d.d,o:0,r:[m],d:e(t,{p:d.d},o).map(w).join("")})));continue}}if("object"!=typeof b||Array.isArray(b))"label"==m&&b?n=b+u(JSON.stringify([r,l,t])):(b||0===b)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),g+=1,p=Math.max(p,v(m)),f+=(f?";":"")+c(b).map(e=>o.s(m,q(""+e,o.theme)+(l?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let x=r;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=o.theme("screens",t);return n?(x|=67108864,s(n,"")):e}),x|=y(m)),a.push(...e(b,{n:n,p:x,r:[...i,m],i:l},o))}else a.push(...e(b,{p:r,r:[...i,m]},o))}return a.unshift({n:n,p:r,o:Math.max(0,15-g)+1.5*Math.min(p||15,15),r:i,d:f}),a.sort(V)}(e,$(t,n,r,i),n)}function q(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,l)=>{let o=t(r,l);return"function"==typeof o&&/color|fill|stroke/i.test(r)?I(o):""+o})}function D(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function B(e,t){return Array.isArray(e)?U(D(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?U(e):[e]}let J=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function U(e){let t;e=M(e);let n=[{}],r=[n[0]],i=[];for(;t=J.exec(e);)t[4]&&(n.shift(),i.shift()),t[3]?(i.unshift(t[3]),n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))):t[4]||(n[0][t[1]]&&(n.unshift({}),r.push(i.reduce((e,t)=>({[t]:e}),n[0]))),n[0][t[1]]=t[2]);return r}function W(e,...t){var n;let r=B(e,t),i=((null==(n=r.find(e=>e.label))?void 0:n.label)||"css")+u(JSON.stringify(r));return l(i,(e,t)=>P(r.flatMap(n=>L(n,e,t,d.o)),i))}let G=new Proxy(function(e,t){return Y("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return Y(t,e,n)}});function Y(e,t,n){return{toString:()=>W({label:e,"@layer components":r({},"object"==typeof t?t:{animation:t},{animationName:""+n})})}}function Z(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?D(e,t,e=>H(e).trim()):t.filter(Boolean).reduce((e,t)=>e+H(t),e?H(e):"")}function H(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=Z(e[0],e.slice(1)))&&(n+=" "+t);else for(let r in e)e[r]&&(n+=" "+r)}else null!=e&&"boolean"!=typeof e&&(n+=" "+e);return n}function K(e,t){if(null==e)return{};var n,r,i={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Q(e){var{presets:t=[]}=e,n=K(e,["presets"]);let i={preflight:!1!==n.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:c(n.variants),rules:c(n.rules),ignorelist:c(n.ignorelist),hash:n.hash,stringify:n.stringify||X};for(let l of c([...t,{darkMode:n.darkMode,darkColor:n.darkColor,preflight:!1!==n.preflight&&c(n.preflight),theme:n.theme}])){let{preflight:o,darkMode:u=i.darkMode,darkColor:s=i.darkColor,theme:a,variants:f,rules:p,hash:d=i.hash,ignorelist:h,stringify:g=i.stringify}="function"==typeof l?l(i):l;i={preflight:!1!==i.preflight&&!1!==o&&[...i.preflight,...c(o)],darkMode:u,darkColor:s,theme:r({},i.theme,a,{extend:r({},i.theme.extend,null==a?void 0:a.extend)}),variants:[...i.variants,...c(f)],rules:[...i.rules,...c(p)],ignorelist:[...i.ignorelist,...c(h)],hash:d,stringify:g}}return i}function X(e,t){return e+":"+t}function ee(e,t,n,r,i,l){for(let o of t){let u=n.get(o);u||n.set(o,u=r(o));let s=u(e,i,l);if(s)return s}}function et(e){var t,n;return t=e[0],el(t,"function"==typeof(n=e[1])?n:()=>n)}function en(e){return Array.isArray(e)?er(e[0],e[1],e[2]):er(e)}function er(e,t,n){return el(e,t?"function"==typeof t?t:"string"==typeof t&&/^[\w-]+$/.test(t)?(e,r)=>({[t]:n?n(e,r):ei(e.input,e.slice(1).find(Boolean)||e.$$||e.input)}):()=>t:e=>({[e[1]]:ei(e.input,e.slice(2).find(Boolean)||e.$$||e.input)}))}function ei(e,t){return"-"==e[0]?`calc(${t} * -1)`:t}function el(e,t){return eo(e,(e,n,r,i)=>{let l=n.exec(e);if(l)return l.$$=e.slice(l[0].length),l.dark=i,t(l,r)})}function eo(e,t){let n=c(e).map(eu);return(e,r,i)=>{for(let l of n){let o=t(e,l,r,i);if(o)return o}}}function eu(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function es(e,t){return e.replace(/--(tw-[\w-]+)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function ec(e,t){let n=Q(e),i=function({theme:e,darkMode:t,darkColor:n,variants:r,rules:i,hash:l,stringify:s,ignorelist:f}){let p=new Map,d=new Map,h=new Map,g=new Map,y=eo(f,(e,t)=>t.test(e));r.push(["dark",Array.isArray(t)||"class"==t?`${c(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let m="function"==typeof l?e=>l(e,u):l?u:a;return{theme:function(e){var{extend:t={}}=e,n=K(e,["extend"]);let r={},i={get colors(){return l("colors")},theme:l,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return l;function l(e,i,u,s){if(e){var c;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let a=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),e=a.shift(),u=i,i=a.join("-")}let f=r[e]||Object.assign(Object.assign(r[e]={},o(n,e)),o(t,e));if(null==i)return f;let p=null!=(c=f[i||"DEFAULT"])?c:u;return s?I(p,{opacityValue:q(s,l)}):p}let d={};for(let h of[...Object.keys(n),...Object.keys(t)])d[h]=l(h);return d}function o(e,t){let n=e[t];return("function"==typeof n&&(n=n(i)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let l=t[i],o=[...n,i];r[o.join("-")]=l,"DEFAULT"==i&&(o=n,r[n.join("-")]=l),"object"==typeof l&&Object.assign(r,e(l,o))}return r}(n):n}}(e),e:o,h:m,s(e,t){return s(es(e,m),es(t,m),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,ee(e,r,d,et,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);return h.has(n)||h.set(n,!y(e,this)&&ee(e,i,g,en,this,t)),h.get(n)}}}(n),l=new Map,s=[],f=new Set;function p(e){let n=e.n&&i.h(e.n),l=w(n?r({},e,{n:n}):e);if(l&&!f.has(l)){f.add(l);let o=N(s,e);t.insert(l,o,e),s.splice(o,0,e)}return n}return t.resume(e=>l.set(e,e),(e,n)=>{t.insert(e,s.length,n),s.push(n),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of c(n.preflight))"function"==typeof t&&(t=t(i)),t&&("string"==typeof t?T("",d.b,E(t),i,d.b,[],!1,!0):L(t,{},i,d.b)).forEach(p);e=""+e;let r=l.get(e);if(!r){let o=new Set;for(let u of z(E(e),i))o.add(u.c).add(p(u));r=[...o].filter(Boolean).join(" "),l.set(e,r).set(r,r)}return r},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:i.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(l),i=[...s];return()=>{e(),f=n,l=r,s=i}},clear(){t.clear(),f=new Set,l=new Map,s=[]},destroy(){this.clear(),t.destroy()}}))}function ea(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function ef(e=eb,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),l(t),i([{target:t,type:""}]);let{destroy:r}=e;return e.destroy=()=>{n.disconnect(),r.call(e)},e;function i(e){for(let{type:t,target:r}of e)if("a"==t[0])l(r);else for(let i of r.querySelectorAll("[class]"))l(i);n.takeRecords()}function l(t){let n;let r=t.getAttribute("class");r&&ea(r,n=e(r))&&t.setAttribute("class",n)}}function ep(e){let t=e||document.querySelector("style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ed(e){let t=(null==e?void 0:e.cssRules)?e:ep(e).sheet;return{target:t,snapshot(){let e=Array.from(t.cssRules,e=>e.cssText);return()=>{this.clear(),e.forEach(this.insert)}},clear(){for(let e=t.cssRules.length;e--;)t.deleteRule(e)},destroy(){var e;null==(e=t.ownerNode)||e.remove()},insert(e,n){try{t.insertRule(e,n)}catch(r){t.insertRule(":root{}",n),/:-[mwo]/.test(e)||console.warn(r,e)}},resume:f}}function eh(e){let t=ep(e);return{target:t,snapshot(){let e=Array.from(t.childNodes,e=>e.textContent);return()=>{this.clear(),e.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(e,n){t.insertBefore(document.createTextNode(e),t.childNodes[n]||null)},resume:f}}function eg(e,t){let n=e?eh():ed();return t||(n.resume=em),n}function ey(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):c(e)).join("")}function em(e,t){let n=ey(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let l;for(let o of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(o.getAttribute("class"));for(;i=r.exec(n),l&&t(n.slice(l.index+l[0].length,null==i?void 0:i.index),{p:parseInt(l[1],36),o:parseInt(l[2],36)/2,n:l[3]}),l=i;);}}let eb=new Proxy(f,{apply:(e,n,r)=>t(r[0]),get(e,n){let r=(t||e)[n];return"function"==typeof r?r.bind(t):r}});function ev(e={},n=eg,r){return null==t||t.destroy(),t=ef(ec(e,"function"==typeof n?n():n),r)}let e$=function(e,...t){("function"==typeof this?this:eb)(W({"@layer base":B(e,t)}))},ew=function e(t){return new Proxy(function(e,...n){return ex(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return ex(t,r,e,n)}})}();function ex(e,t,n,r){return{toString(){let i=B(n,r),l=o(t+u(JSON.stringify([t,i])));return("function"==typeof e?e:eb)(W({[`@keyframes ${l}`]:B(n,r)})),l}}}let ek=eA("@"),ej=eA("~");function eA(e){return new Proxy(function(e,...n){return t("",e,n)},{get:(e,n)=>n in e?e[n]:function(e,...r){return t(n,e,r)}});function t(t,n,r){return A(E(t+e+"("+Z(n,r)+")"))}}function eO(e,t){let n={};return"string"==typeof t?n[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(n[t.opacityVariable]=t.opacityValue||"1"),n[e]=t.value),n}function eS(e,t,n){if("["==e[0]&&"]"==e.slice(-1)){if(e=eC(q(e.slice(1,-1),n.theme)),/color|fill|stroke/i.test(t)){if(/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))return e}else if(!/image/i.test(t))return e;else if(/^[a-z-]+\(/.test(e))return e}}function eM(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function eC(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>eC(t)+n+eC(r)):e.replace(/(^|[^\\])_+/g,(e,t)=>t+" ".repeat(e.length-t.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}let eE=(e,t)=>"function"==typeof e?eR(t,e):eR(e);function eR(e={},t){let{label:n="style",base:i,props:l={},defaults:s,when:c=[]}=e,a=r({},null==t?void 0:t.defaults,s),f=u(JSON.stringify([n,null==t?void 0:t.className,i,l,a,c])),p=h("",i||"",d.c);function h(e,r,i){return j(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&E(r))}return Object.defineProperties(function(e){let n,i;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let o=r({},a,e),u=n?"":(t?t(o)+" ":"")+p;for(let s in l){let f=l[s],d=o[s];if(d===Object(d)){let g="";for(let y in i="",d){let m=f[d[y]];m&&(g+="@"+y+"-"+d[y],i+=(i&&" ")+("_"==y?m:y+":("+m+")"))}i&&(u+=" "+h("--"+s+"-"+g,i,402653184))}else(i=f[d])&&(u+=" "+h("--"+s+"-"+d,i,402653184))}return c.forEach((e,t)=>{let n="";for(let r in e[0]){let l=o[r];if(l!==Object(l)&&""+l==""+e[0][r])n+=(n&&"_")+r+"-"+l;else{n="";break}}n&&(i=e[1])&&(u+=" "+h("-"+t+"--"+n,i,536870912))}),u},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+o(p)}))}let eN=function(e,...t){return("function"==typeof this?this:eb)(Z(e,t))};function eV(e,t=eb){let n=t.snapshot(),r={html:eP(e,t),css:ey(t.target)};return n(),r}function eP(e,t=eb){let n="",r=0;return function(e,t){let n=1,r=0,i="",l="",o=e=>{5==n&&"class"==l&&t(r,e,i)};for(let u=0;u<e.length;u++){let s=e[u];1==n?"<"==s&&(n="!--"==e.substr(u+1,3)?4:3):4==n?">"==s&&"--"==e.slice(u-2,u)&&(n=1):i?s==i&&"\\"!=e[u-1]&&(o(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(o(u),n=1):n&&("="==s?(l=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(o(u),n=0):/\s/.test(s)&&(o(u),n=2,r=u+1))}}(e,(i,l,o)=>{let u=e.slice(i,l),s=('"'==o?u.replace(/(=|\[)(?:&#39;|&apos;|&#x27;)|(?:&#39;|&apos;|&#x27;)(])/g,"$1'$2"):"'"==o?u.replace(/(=|\[)(?:&#34;|&quot;|&#x22;)|(?:&#34;|&quot;|&#x22;)(])/g,'$1"$2'):u).replace(/&amp;/g,"&"),c=t(s);ea(u,c)&&(o=o?"":'"',n+=e.slice(r,i)+o+c+o,r=l)}),n+e.slice(r,e.length)}return e.animation=G,e.apply=ek,e.arbitrary=eS,e.asArray=c,e.auto=function(e){if(document.currentScript){let t=()=>n.disconnect(),n=new MutationObserver(n=>{for(let{target:r}of n)if(r===document.body)return e(),t()});return n.observe(document.documentElement,{childList:!0,subtree:!0}),t}return f},e.autoDarkColor=function(e,t,{theme:n}){return t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)),n(e,t)},e.colorFromTheme=function(e={},t){return(n,r)=>{let{section:i=eM(n[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(n.$$))return;let{$1:l,$2:o}=RegExp,u=r.theme(i,l)||eS(l,i,r);if(!u)return;let{opacityVariable:s=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=r.theme(c,o||"DEFAULT")||o&&eS(o,c,r),d=t||(({_:e})=>{let t=eO(a,e);return f?{[f]:t}:t});n._={value:I(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>I(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let h=d(n,r);if(!n.dark){let g=r.d(i,l,u);g&&g!==u&&(n._={value:I(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>I(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},h={"&":h,[r.v("dark")]:d(n,r)})}return h}},e.consume=eP,e.css=W,e.cssom=ed,e.cx=function(e,...t){return A(E(Z(e,t))," ")},e.defineConfig=Q,e.dom=eh,e.escape=o,e.extract=eV,e.fromTheme=function(e,t,n){let r=t?"string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t:({1:e,_:t},n,r)=>({[e||r]:t});return(t,n)=>{var i;let l=eM(e||t[1]),o=null!=(i=n.theme(l,t.$$))?i:eS(t.$$,l,n);if(null!=o)return t._="-"==t.input[0]?`calc(${o} * -1)`:o,r(t,n,l)}},e.getSheet=eg,e.hash=u,e.identity=a,e.injectGlobal=e$,e.inline=function(e,t={}){let{tw:n=eb,minify:r=a}="function"==typeof t?{tw:t}:t,{html:i,css:l}=eV(e,n);return i.replace("</head>",`<style data-twind>${r(l,i)}</style></head>`)},e.install=function(e,t){var n;let i=Q(e);return ev(r({},i,{hash:null!=(n=i.hash)?n:t}),()=>eg(!t))},e.keyframes=ew,e.mql=s,e.noop=f,e.normalize=eC,e.observe=ef,e.setup=ev,e.shortcut=ej,e.stringify=ey,e.style=eE,e.toCSS=eO,e.toColorValue=I,e.tw=eb,e.twind=ec,e.tx=eN,e.virtual=function(e){let t=[];return{target:t,snapshot(){let e=[...t];return()=>{t.splice(0,t.length,...e)}},clear(){t.length=0},destroy(){this.clear()},insert(n,r,i){t.splice(r,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${n}`:n)},resume:f}},e}({});//# sourceMappingURL=twind.global.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc