@twind/core
Advanced tools
Comparing version 1.0.1 to 1.0.2-canary-7a0c9a6
# @twind/core | ||
## 1.0.2-canary-7a0c9a6 | ||
### Patch Changes | ||
- add @twind/preset-container-queries ([#399](https://github.com/tw-in-js/twind/pull/399)) | ||
## 1.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -1,1 +0,1 @@ | ||
let e;function t(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,n=","){return e.map(t).join(n)}let r="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function i(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 o(e,t="@media "){return t+l(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function l(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function u(e){return e}function s(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function a(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function f(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(a(e),15)<<18}let p=["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 h({n:e,i:n,v:r=[]},i,u,s){for(let c of(e&&(e=t({n:e,i:n,v:r})),s=[...l(s)],r)){let a=i.theme("screens",c);for(let h of l(a&&o(a)||i.v(c))){var d;s.push(h),u|=a?67108864|f(h):"dark"==c?1073741824:"@"==h[0]?f(h):(d=h,1<<~(/:([a-z-]+)/.test(d)&&~p.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:u,r:s,i:n}}let d=new Map;function g(e){if(e.d){let t=[],n=y(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?y(e,e=>y(n,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):m(e,t)}return m(t,e)})):e,"&"),t=>m(t,e.n?"."+r(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function y(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function m(e,t){return e.replace(/&/g,t)}let v=new Intl.Collator("en",{numeric:!0});function b(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=$(e[i],t)?n=i+1:r=i}return r}function $(e,t){let n=e.p&c.o;return n==(t.p&c.o)&&(n==c.b||n==c.o)?0:e.p-t.p||e.o-t.o||v.compare(e.n,t.n)}function w(e,t){return Math.round(parseInt(e,16)*t)}function x(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 o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[w(e.substr(1,o),l),w(e.substr(1+o,o),l),w(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function A(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function k(e,t,n,r,u=[]){return function e(t,{n:n,p:r,r:u=[],i:s},p){let h=[],d="",y=0,m=0;for(let v in t||{}){var b,w;let x=t[v];if("@"==v[0]){if(!x)continue;if("a"==v[1]){h.push(...S(n,r,D(""+x),p,r,u,s,!0));continue}if("l"==v[1]){for(let A of l(x))h.push(...e(A,{n:n,p:(b=c[v[7]],r&~c.o|b),r:u,i:s},p));continue}if("i"==v[1]){h.push(...l(x).map(e=>({p:-1,o:0,r:[],d:v+" "+e})));continue}if("k"==v[1]){h.push({p:c.d,o:0,r:[v],d:e(x,{p:c.d},p).map(g).join("")});continue}if("f"==v[1]){h.push(...l(x).map(t=>({p:c.d,o:0,r:[v],d:e(t,{p:c.d},p).map(g).join("")})));continue}}if("object"!=typeof x||Array.isArray(x))"label"==v&&x?n=x+i(JSON.stringify([r,s,t])):(x||0===x)&&(v=v.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m+=1,y=Math.max(y,"-"==(w=v)[0]?0:a(w)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test(w)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+l(x).map(e=>p.s(v,j(""+e,p.theme)+(s?" !important":""))).join(";"));else if("@"==v[0]||v.includes("&")){let k=r;"@"==v[0]&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=p.theme("screens",t);return n?(k|=67108864,o(n,"")):e}),k|=f(v)),h.push(...e(x,{n:n,p:k,r:[...u,v],i:s},p))}else h.push(...e(x,{p:r,r:[...u,v]},p))}return h.unshift({n:n,p:r,o:Math.max(0,15-m)+1.5*Math.min(y||15,15),r:u,d:d}),h.sort($)}(e,h(t,n,r,u),n)}function j(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?x(l):""+l})}function O(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n={...i,n:i.n&&t}):r.push({...i,n:i.n&&t});return r}function E(e,n,r=c.u,i,o){let u=[];for(let s of e)for(let a of function(e,n,r,i,o){var u;e={...e,i:e.i||o};let s=function(e,t){let n=d.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,n);return s?"string"==typeof s?({r:i,p:r}=h(e,n,r,i),O(E(D(s),n,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return{o:0,...e,r:[...l(i),...l(e.r)],p:(t=r,n=null!=(u=e.p)?u:r,t&~c.o|n)}}):k(s,e,n,r,i):[{c:t(e),p:0,o:0,r:[]}]}(s,n,r,i,o))u.splice(b(u,a),0,a);return u}function S(e,t,n,r,i,o,l,u){return O((u?n.flatMap(e=>E([e],r,i,o,l)):E(n,r,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?{...e,p:e.p&~c.o|t,o:0}:e),e)}function M(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=h(e,i,t);return n&&S(o,t,n,i,l,u,s,r)},d.set(e,i),e}function C(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(V),i:i},{a:{value:[...e]},l:{value:n}})))}}function V(e,t,n){return n.indexOf(e)==t}let T=new Map;function D(e){let t=T.get(e);if(!t){let r=[],o=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&C(r,o,[l,a+n])),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),r.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=r.lastIndexOf("(");if(")"==p){let d=r[h-1];if(/[~@]$/.test(d)){let g=o.shift();r.length=h,C([...r,"#"],o,[l,a]);let{v:y}=o[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);C([...r,M(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],o,[l,a])}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&o.unshift([])}f(!0),T.set(e,t=o[0])}return t}function L(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function N(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?L(e,t,e=>F(e).trim()):t.filter(Boolean).reduce((e,t)=>e+F(t),e?F(e):"")}function F(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=N(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}let R=I("@"),U=I("~");function I(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,r,i){return n(D(t+e+"("+N(r,i)+")"))}}function P(e,t){return Array.isArray(e)?z(L(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?z(e):[e]}let _=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function z(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=_.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 q(e,...t){var n,r;let o=P(e,t),l=((null==(n=o.find(e=>e.label))?void 0:n.label)||"css")+i(JSON.stringify(o));return r=(e,t)=>O(o.flatMap(n=>k(n,e,t,c.o)),l),d.set(l,r),l}let J=new Proxy(function(e,t){return W("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return W(t,e,n)}});function W(e,t,n){return{toString:()=>q({label:e,"@layer components":{..."object"==typeof t?t:{animation:t},animationName:""+n}})}}function B(e,t,n){return[e,G(t,n)]}function G(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Y(n,1)}):t=>e||{[t[1]]:Y(t,2)}}function Y(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function Z(e,t,n,r){return[e,H(t,n,r)]}function H(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return ei((t,n)=>{var i;let o=et(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:ee(t.$$,o,n);if(null!=l)return t._=Y(t,0,l),r(t,n,o)},(t,n)=>{let r=et(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&x(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&x(o,{opacityValue:"1"})}]:[]})}function K(e,t={},n){return[e,Q(t,n)]}function Q(e={},t){return ei((n,r)=>{let{section:i=et(n[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(n.$$))return;let{$1:o,$2:l}=RegExp,u=r.theme(i,o)||ee(o,i,r);if(!u||"object"==typeof 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,l||"DEFAULT")||l&&ee(l,c,r),h=t||(({_:e})=>{let t=X(a,e);return f?{[f]:t}:t});n._={value:x(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>x(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:x(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>x(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=et(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:x(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:x(t,{opacityValue:n})})).concat([{modifier:"[",color:x(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:x(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:x(u,{opacityValue:t})})).concat([{modifier:"[",color:x(u,{opacityValue:"1"})}])}]:[]})}function X(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 ee(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=en(j(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function et(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function en(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>en(t)+n+en(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 er=Symbol("@twind/autocomplete");function ei(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,er,{value:t,configurable:!0});let[n,r,i]=l(e);return[n,Object.defineProperty(G(r,i),er,{value:t,configurable:!0})]}return e}function eo(e){return e[er]}function el(e,...t){return n(D(N(e,t))," ")}function eu({presets:e=[],...t}){let n={preflight:!1!==t.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:l(t.variants),rules:l(t.rules),ignorelist:l(t.ignorelist),hash:t.hash,stringify:t.stringify||es};for(let r of l([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&l(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify}])){let{preflight:i,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:s,variants:c,rules:a,ignorelist:f,hash:p=n.hash,stringify:h=n.stringify}="function"==typeof r?r(n):r;n={preflight:!1!==n.preflight&&!1!==i&&[...n.preflight,...l(i)],darkMode:o,darkColor:u,theme:{...n.theme,...s,extend:{...n.theme.extend,...null==s?void 0:s.extend}},variants:[...n.variants,...l(c)],rules:[...n.rules,...l(a)],ignorelist:[...n.ignorelist,...l(f)],hash:p,stringify:h}}return n}function es(e,t){return e+":"+t}function ec(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function ea(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ef(e){var t;return eh(e[0],"function"==typeof(t=e[1])?t:()=>t)}function ep(e){var t,n;return Array.isArray(e)?eh(e[0],G(e[1],e[2])):eh(e,G(t,n))}function eh(e,t){return ed(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function ed(e,t){let n=l(e).map(eg);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function eg(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ey(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function em(e,t){let n=eu(e),o=function({theme:e,darkMode:t,darkColor:n,variants:o,rules:s,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=ed(f,(e,t)=>t.test(e)),m=new Set;o.push(["dark",Array.isArray(t)||"class"==t?`${l(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,i):c?i:u;return{theme:function({extend:e={},...t}){let n={},r={get colors(){return i("colors")},theme:i,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return i;function i(r,l,u,s){if(r){var c;if({1:r,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(r)||[,r],/[.[]/.test(r)){let a=[];r.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),r=a.shift(),u=l,l=a.join("-")}let f=n[r]||Object.assign(Object.assign(n[r]={},o(t,r)),o(e,r));if(null==l)return f;let p=null!=(c=f[l||"DEFAULT"])?c:u;return s?x(p,{opacityValue:j(s,i)}):p}let h={};for(let d of[...Object.keys(t),...Object.keys(e)])h[d]=i(d);return h}function o(e,t){let n=e[t];return("function"==typeof n&&(n=n(r)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:r,h:v,s(e,t){return a(ey(e,v),ey(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,ea(e,o,h,ef,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&ea(e,s,g,ep,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),ec(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),s=new Map,a=[],f=new Set;function p(e){let n=e.n&&o.h(e.n),r=g(n?{...e,n:n}:e);if(r&&!f.has(r)){f.add(r);let i=b(a,e);t.insert(r,i,e),a.splice(i,0,e)}return n}return t.resume(e=>s.set(e,e),(e,n)=>{t.insert(e,a.length,n),a.push(n),f.add(e)}),Object.defineProperties(function(e){if(!s.size)for(let t of l(n.preflight))"function"==typeof t&&(t=t(o)),t&&("string"==typeof t?S("",c.b,D(t),o,c.b,[],!1,!0):k(t,{},o,c.b)).forEach(p);e=""+e;let r=s.get(e);if(!r){let i=new Set;for(let u of E(D(e),o))i.add(u.c).add(p(u));r=[...i].filter(Boolean).join(" "),s.set(e,r).set(r,r)}return r},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:o.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(s),i=[...a];return()=>{e(),f=n,s=r,a=i}},clear(){t.clear(),f=new Set,s=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function ev(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eb(e=eM,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(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])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&ev(r,n=e(r))&&t.setAttribute("class",n)}}function e$(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ew(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:e$(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)||ec(r.message,"TWIND_INVALID_CSS",e)}},resume:s}}function ex(e){let t=e&&"string"!=typeof e?e:e$(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:s}}function eA(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:s}}function ek(e,t){let n=e?ex():ew();return t||(n.resume=eO),n}function ej(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):l(e)).join("")}function eO(e,t){let n=ej(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function eE(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 s}function eS(){if(!e)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eM=new Proxy(s,{apply:(t,n,r)=>(eS(),e(r[0])),get(t,n){eS();let r=e[n];return"function"==typeof r?function(){return eS(),r.apply(e,arguments)}:r}});function eC(t={},n=ek,r){return null==e||e.destroy(),e=eb(em(t,"function"==typeof n?n():n),r)}let eV=function(e,...t){("function"==typeof this?this:eM)(q({"@layer base":P(e,t)}))};function eT(e,t=!1){var n;let r=eu(e);return eC({...r,hash:null!=(n=r.hash)?n:t},()=>ek(!t))}let eD=function e(t){return new Proxy(function(e,...n){return eL(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eL(t,r,e,n)}})}();function eL(e,t,n,o){return{toString(){let l=P(n,o),u=r(t+i(JSON.stringify([t,l])));return("function"==typeof e?e:eM)(q({[`@keyframes ${u}`]:P(n,o)})),u}}}function eN(e,t={}){let{tw:n=eM,minify:r=u}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eF(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)}function eF(e,t=eM){let n=t.snapshot(),r={html:eR(e,t),css:ej(t.target)};return n(),r}function eR(e,t=eM){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};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]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):s).replace(/(&|&|&)/g,"&"));ev(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let eU=(e,t)=>"function"==typeof e?eI(t,e):eI(e);function eI(e={},t){let{label:n="style",base:o,props:l={},defaults:u,when:s=[]}=e,a={...null==t?void 0:t.defaults,...u},f=i(JSON.stringify([n,null==t?void 0:t.className,o,l,a,s])),p=h("",o||"",c.c);function h(e,r,i){return M(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&D(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i={...a,...e},o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=c[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+r(p)}))}let eP=function(e,...t){return("function"==typeof this?this:eM)(N(e,t))};export{J as animation,R as apply,ee as arbitrary,l as asArray,eE as auto,A as autoDarkColor,Q as colorFromTheme,eR as consume,q as css,ew as cssom,el as cx,eu as defineConfig,ex as dom,r as escape,eF as extract,G as fromMatch,H as fromTheme,eo as getAutocompleteProvider,ek as getSheet,i as hash,u as identity,eV as injectGlobal,eN as inline,eT as install,eD as keyframes,B as match,K as matchColor,Z as matchTheme,o as mql,s as noop,en as normalize,eb as observe,D as parse,eC as setup,U as shortcut,ej as stringify,eU as style,X as toCSS,x as toColorValue,eM as tw,em as twind,eP as tx,eA as virtual,ei as withAutocomplete};//# sourceMappingURL=core.browser.dev.js.map | ||
let e;function t(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,n=","){return e.map(t).join(n)}let r="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function i(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 o(e,t="@media "){return t+l(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function l(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function u(e){return e}function s(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function a(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function f(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(a(e),15)<<18}let p=["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 h({n:e,i:n,v:r=[]},i,u,s){for(let c of(e&&(e=t({n:e,i:n,v:r})),s=[...l(s)],r)){let a=i.theme("screens",c);for(let h of l(a&&o(a)||i.v(c))){var d;s.push(h),u|=a?67108864|f(h):"dark"==c?1073741824:"@"==h[0]?f(h):(d=h,1<<~(/:([a-z-]+)/.test(d)&&~p.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:u,r:s,i:n}}let d=new Map;function g(e){if(e.d){let t=[],n=y(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?y(e,e=>y(n,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):m(e,t)}return m(t,e)})):e,"&"),t=>m(t,e.n?"."+r(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function y(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function m(e,t){return e.replace(/&/g,t)}let v=new Intl.Collator("en",{numeric:!0});function b(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=$(e[i],t)?n=i+1:r=i}return r}function $(e,t){let n=e.p&c.o;return n==(t.p&c.o)&&(n==c.b||n==c.o)?0:e.p-t.p||e.o-t.o||v.compare(e.n,t.n)}function w(e,t){return Math.round(parseInt(e,16)*t)}function x(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 o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[w(e.substr(1,o),l),w(e.substr(1+o,o),l),w(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function A(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function k(e,t,n,r,u=[]){return function e(t,{n:n,p:r,r:u=[],i:s},p){let h=[],d="",y=0,m=0;for(let v in t||{}){var b,w;let x=t[v];if("@"==v[0]){if(!x)continue;if("a"==v[1]){h.push(...E(n,r,D(""+x),p,r,u,s,!0));continue}if("l"==v[1]){for(let A of l(x))h.push(...e(A,{n:n,p:(b=c[v[7]],r&~c.o|b),r:u,i:s},p));continue}if("i"==v[1]){h.push(...l(x).map(e=>({p:-1,o:0,r:[],d:v+" "+e})));continue}if("k"==v[1]){h.push({p:c.d,o:0,r:[v],d:e(x,{p:c.d},p).map(g).join("")});continue}if("f"==v[1]){h.push(...l(x).map(t=>({p:c.d,o:0,r:[v],d:e(t,{p:c.d},p).map(g).join("")})));continue}}if("object"!=typeof x||Array.isArray(x))"label"==v&&x?n=x+i(JSON.stringify([r,s,t])):(x||0===x)&&(v=v.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m+=1,y=Math.max(y,"-"==(w=v)[0]?0:a(w)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test(w)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+l(x).map(e=>p.s(v,j(""+e,p.theme)+(s?" !important":""))).join(";"));else if("@"==v[0]||v.includes("&")){let k=r;"@"==v[0]&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=p.theme("screens",t);return n?(k|=67108864,o(n,"")):e}),k|=f(v)),h.push(...e(x,{n:n,p:k,r:[...u,v],i:s},p))}else h.push(...e(x,{p:r,r:[...u,v]},p))}return h.unshift({n:n,p:r,o:Math.max(0,15-m)+1.5*Math.min(y||15,15),r:u,d:d}),h.sort($)}(e,h(t,n,r,u),n)}function j(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?x(l):""+l})}function O(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n={...i,n:i.n&&t}):r.push({...i,n:i.n&&t});return r}function S(e,n,r=c.u,i,o){let u=[];for(let s of e)for(let a of function(e,n,r,i,o){var u;e={...e,i:e.i||o};let s=function(e,t){let n=d.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,n);return s?"string"==typeof s?({r:i,p:r}=h(e,n,r,i),O(S(D(s),n,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return{o:0,...e,r:[...l(i),...l(e.r)],p:(t=r,n=null!=(u=e.p)?u:r,t&~c.o|n)}}):k(s,e,n,r,i):[{c:t(e),p:0,o:0,r:[]}]}(s,n,r,i,o))u.splice(b(u,a),0,a);return u}function E(e,t,n,r,i,o,l,u){return O((u?n.flatMap(e=>S([e],r,i,o,l)):S(n,r,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?{...e,p:e.p&~c.o|t,o:0}:e),e)}function M(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=h(e,i,t);return n&&E(o,t,n,i,l,u,s,r)},d.set(e,i),e}function C(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(T),i:i},{a:{value:[...e]},l:{value:n}})))}}function T(e,t,n){return n.indexOf(e)==t}let V=new Map;function D(e){let t=V.get(e);if(!t){let r=[],o=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&C(r,o,[l,a+n])),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),r.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=r.lastIndexOf("(");if(")"==p){let d=r[h-1];if(/[~@]$/.test(d)){let g=o.shift();r.length=h,C([...r,"#"],o,[l,a]);let{v:y}=o[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);C([...r,M(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],o,[l,a])}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&o.unshift([])}f(!0),V.set(e,t=o[0])}return t}function L(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function N(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?L(e,t,e=>F(e).trim()):t.filter(Boolean).reduce((e,t)=>e+F(t),e?F(e):"")}function F(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=N(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}let R=I("@"),U=I("~");function I(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,r,i){return n(D(t+e+"("+N(r,i)+")"))}}function P(e,t){return Array.isArray(e)?z(L(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?z(e):[e]}let _=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function z(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=_.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 q(e,...t){var n,r;let o=P(e,t),l=((null==(n=o.find(e=>e.label))?void 0:n.label)||"css")+i(JSON.stringify(o));return r=(e,t)=>O(o.flatMap(n=>k(n,e,t,c.o)),l),d.set(l,r),l}let J=new Proxy(function(e,t){return W("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return W(t,e,n)}});function W(e,t,n){return{toString:()=>q({label:e,"@layer components":{..."object"==typeof t?t:{animation:t},animationName:""+n}})}}function B(e,t,n){return[e,G(t,n)]}function G(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Y(n,1)}):t=>e||{[t[1]]:Y(t,2)}}function Y(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function Z(e,t,n,r){return[e,H(t,n,r)]}function H(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return eo((t,n)=>{var i;let o=en(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:et(t.$$,o,n);if(null!=l)return t._=Y(t,0,l),r(t,n,o)},(t,n)=>{let r=en(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&x(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&x(o,{opacityValue:"1"})}]:[]})}function K(e,t={},n){return[e,Q(t,n)]}function Q(e={},t){return eo((n,r)=>{let{section:i=en(n[0]).replace("-","")+"Color"}=e,[o,l]=X(n.$$);if(!o)return;let u=r.theme(i,o)||et(o,i,r);if(!u||"object"==typeof 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,l||"DEFAULT")||l&&et(l,c,r),h=t||(({_:e})=>{let t=ee(a,e);return f?{[f]:t}:t});n._={value:x(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>x(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:x(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>x(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=en(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:x(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:x(t,{opacityValue:n})})).concat([{modifier:"[",color:x(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:x(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:x(u,{opacityValue:t})})).concat([{modifier:"[",color:x(u,{opacityValue:"1"})}])}]:[]})}function X(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function ee(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 et(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=er(j(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function en(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function er(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>er(t)+n+er(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 ei=Symbol("@twind/autocomplete");function eo(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,ei,{value:t,configurable:!0});let[n,r,i]=l(e);return[n,Object.defineProperty(G(r,i),ei,{value:t,configurable:!0})]}return e}function el(e){return e[ei]}function eu(e,...t){return n(D(N(e,t))," ")}function es({presets:e=[],...t}){let n={preflight:!1!==t.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:l(t.variants),rules:l(t.rules),ignorelist:l(t.ignorelist),hash:t.hash,stringify:t.stringify||ec};for(let r of l([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&l(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify}])){let{preflight:i,darkMode:o=n.darkMode,darkColor:u=n.darkColor,theme:s,variants:c,rules:a,ignorelist:f,hash:p=n.hash,stringify:h=n.stringify}="function"==typeof r?r(n):r;n={preflight:!1!==n.preflight&&!1!==i&&[...n.preflight,...l(i)],darkMode:o,darkColor:u,theme:{...n.theme,...s,extend:{...n.theme.extend,...null==s?void 0:s.extend}},variants:[...n.variants,...l(c)],rules:[...n.rules,...l(a)],ignorelist:[...n.ignorelist,...l(f)],hash:p,stringify:h}}return n}function ec(e,t){return e+":"+t}function ea(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function ef(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ep(e){var t;return ed(e[0],"function"==typeof(t=e[1])?t:()=>t)}function eh(e){var t,n;return Array.isArray(e)?ed(e[0],G(e[1],e[2])):ed(e,G(t,n))}function ed(e,t){return eg(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function eg(e,t){let n=l(e).map(ey);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function ey(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function em(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function ev(e,t){let n=es(e),o=function({theme:e,darkMode:t,darkColor:n,variants:o,rules:s,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=eg(f,(e,t)=>t.test(e)),m=new Set;o.push(["dark",Array.isArray(t)||"class"==t?`${l(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,i):c?i:u;return{theme:function({extend:e={},...t}){let n={},r={get colors(){return i("colors")},theme:i,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return i;function i(r,l,u,s){if(r){var c;if({1:r,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(r)||[,r],/[.[]/.test(r)){let a=[];r.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,n=t)=>a.push(n)),r=a.shift(),u=l,l=a.join("-")}let f=n[r]||Object.assign(Object.assign(n[r]={},o(t,r)),o(e,r));if(null==l)return f;let p=null!=(c=f[l||"DEFAULT"])?c:u;return s?x(p,{opacityValue:j(s,i)}):p}let h={};for(let d of[...Object.keys(t),...Object.keys(e)])h[d]=i(d);return h}function o(e,t){let n=e[t];return("function"==typeof n&&(n=n(r)),n&&/color|fill|stroke/i.test(t))?function e(t,n=[]){let r={};for(let i in t){let o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:r,h:v,s(e,t){return a(em(e,v),em(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,ef(e,o,h,ep,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&ef(e,s,g,eh,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),ea(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),s=new Map,a=[],f=new Set;function p(e){let n=e.n&&o.h(e.n),r=g(n?{...e,n:n}:e);if(r&&!f.has(r)){f.add(r);let i=b(a,e);t.insert(r,i,e),a.splice(i,0,e)}return n}return t.resume(e=>s.set(e,e),(e,n)=>{t.insert(e,a.length,n),a.push(n),f.add(e)}),Object.defineProperties(function(e){if(!s.size)for(let t of l(n.preflight))"function"==typeof t&&(t=t(o)),t&&("string"==typeof t?E("",c.b,D(t),o,c.b,[],!1,!0):k(t,{},o,c.b)).forEach(p);e=""+e;let r=s.get(e);if(!r){let i=new Set;for(let u of S(D(e),o))i.add(u.c).add(p(u));r=[...i].filter(Boolean).join(" "),s.set(e,r).set(r,r)}return r},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:o.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(s),i=[...a];return()=>{e(),f=n,s=r,a=i}},clear(){t.clear(),f=new Set,s=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function eb(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function e$(e=eC,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(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])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&eb(r,n=e(r))&&t.setAttribute("class",n)}}function ew(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ex(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ew(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)||ea(r.message,"TWIND_INVALID_CSS",e)}},resume:s}}function eA(e){let t=e&&"string"!=typeof e?e:ew(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:s}}function ek(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:s}}function ej(e,t){let n=e?eA():ex();return t||(n.resume=eS),n}function eO(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):l(e)).join("")}function eS(e,t){let n=eO(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function eE(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 s}function eM(){if(!e)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eC=new Proxy(s,{apply:(t,n,r)=>(eM(),e(r[0])),get(t,n){eM();let r=e[n];return"function"==typeof r?function(){return eM(),r.apply(e,arguments)}:r}});function eT(t={},n=ej,r){return null==e||e.destroy(),e=e$(ev(t,"function"==typeof n?n():n),r)}let eV=function(e,...t){("function"==typeof this?this:eC)(q({"@layer base":P(e,t)}))};function eD(e,t=!1){var n;let r=es(e);return eT({...r,hash:null!=(n=r.hash)?n:t},()=>ej(!t))}let eL=function e(t){return new Proxy(function(e,...n){return eN(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eN(t,r,e,n)}})}();function eN(e,t,n,o){return{toString(){let l=P(n,o),u=r(t+i(JSON.stringify([t,l])));return("function"==typeof e?e:eC)(q({[`@keyframes ${u}`]:P(n,o)})),u}}}function eF(e,t={}){let{tw:n=eC,minify:r=u}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eR(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)}function eR(e,t=eC){let n=t.snapshot(),r={html:eU(e,t),css:eO(t.target)};return n(),r}function eU(e,t=eC){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};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]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):s).replace(/(&|&|&)/g,"&"));eb(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let eI=(e,t)=>"function"==typeof e?eP(t,e):eP(e);function eP(e={},t){let{label:n="style",base:o,props:l={},defaults:u,when:s=[]}=e,a={...null==t?void 0:t.defaults,...u},f=i(JSON.stringify([n,null==t?void 0:t.className,o,l,a,s])),p=h("",o||"",c.c);function h(e,r,i){return M(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&D(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i={...a,...e},o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=c[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+r(p)}))}let e_=function(e,...t){return("function"==typeof this?this:eC)(N(e,t))};export{J as animation,R as apply,et as arbitrary,l as asArray,eE as auto,A as autoDarkColor,Q as colorFromTheme,eU as consume,q as css,ex as cssom,eu as cx,es as defineConfig,eA as dom,r as escape,eR as extract,G as fromMatch,H as fromTheme,el as getAutocompleteProvider,ej as getSheet,i as hash,u as identity,eV as injectGlobal,eF as inline,eD as install,eL as keyframes,B as match,K as matchColor,Z as matchTheme,o as mql,s as noop,er as normalize,e$ as observe,D as parse,X as parseValue,eT as setup,U as shortcut,eO as stringify,eI as style,ee as toCSS,x as toColorValue,eC as tw,ev as twind,e_ as tx,ek as virtual,eo as withAutocomplete};//# sourceMappingURL=core.browser.dev.js.map |
@@ -1,1 +0,1 @@ | ||
let e;function t(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r(e,r=","){return e.map(t).join(r)}let n="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function i(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function o(e,t="@media "){return t+l(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function l(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function u(e){return e}function s(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function a(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function f(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(a(e),15)<<18}let p=["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 h({n:e,i:r,v:n=[]},i,u,s){for(let c of(e&&(e=t({n:e,i:r,v:n})),s=[...l(s)],n)){let a=i.theme("screens",c);for(let h of l(a&&o(a)||i.v(c))){var d;s.push(h),u|=a?67108864|f(h):"dark"==c?1073741824:"@"==h[0]?f(h):(d=h,1<<~(/:([a-z-]+)/.test(d)&&~p.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:u,r:s,i:r}}let d=new Map;function g(e){if(e.d){let t=[],r=y(e.r.reduce((e,r)=>"@"==r[0]?(t.push(r),e):r?y(e,e=>y(r,t=>{let r=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(r){let n=e.indexOf(r[1]);return~n?e.slice(0,n)+r[0]+e.slice(n+r[1].length):m(e,t)}return m(t,e)})):e,"&"),t=>m(t,e.n?"."+n(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function y(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,r,n)=>t(r)+n)}function m(e,t){return e.replace(/&/g,t)}let b=new Intl.Collator("en",{numeric:!0});function v(e,t){for(var r=0,n=e.length;r<n;){let i=n+r>>1;0>=$(e[i],t)?r=i+1:n=i}return n}function $(e,t){let r=e.p&c.o;return r==(t.p&c.o)&&(r==c.b||r==c.o)?0:e.p-t.p||e.o-t.o||b.compare(e.n,t.n)}function w(e,t){return Math.round(parseInt(e,16)*t)}function x(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:r="1",opacityVariable:n}=t,i=n?`var(${n})`:r;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[w(e.substr(1,o),l),w(e.substr(1+o,o),l),w(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function A(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function k(e,t,r,n,u=[]){return function e(t,{n:r,p:n,r:u=[],i:s},p){let h=[],d="",y=0,m=0;for(let b in t||{}){var v,w;let x=t[b];if("@"==b[0]){if(!x)continue;if("a"==b[1]){h.push(...M(r,n,V(""+x),p,n,u,s,!0));continue}if("l"==b[1]){for(let A of l(x))h.push(...e(A,{n:r,p:(v=c[b[7]],n&~c.o|v),r:u,i:s},p));continue}if("i"==b[1]){h.push(...l(x).map(e=>({p:-1,o:0,r:[],d:b+" "+e})));continue}if("k"==b[1]){h.push({p:c.d,o:0,r:[b],d:e(x,{p:c.d},p).map(g).join("")});continue}if("f"==b[1]){h.push(...l(x).map(t=>({p:c.d,o:0,r:[b],d:e(t,{p:c.d},p).map(g).join("")})));continue}}if("object"!=typeof x||Array.isArray(x))"label"==b&&x?r=x+i(JSON.stringify([n,s,t])):(x||0===x)&&(b=b.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m+=1,y=Math.max(y,"-"==(w=b)[0]?0:a(w)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test(w)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+l(x).map(e=>p.s(b,j(""+e,p.theme)+(s?" !important":""))).join(";"));else if("@"==b[0]||b.includes("&")){let k=n;"@"==b[0]&&(b=b.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let r=p.theme("screens",t);return r?(k|=67108864,o(r,"")):e}),k|=f(b)),h.push(...e(x,{n:r,p:k,r:[...u,b],i:s},p))}else h.push(...e(x,{p:n,r:[...u,b]},p))}return h.unshift({n:r,p:n,o:Math.max(0,15-m)+1.5*Math.min(y||15,15),r:u,d:d}),h.sort($)}(e,h(t,r,n,u),r)}function j(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,r,n,i,o)=>{let l=t(n,o);return"function"==typeof l&&/color|fill|stroke/i.test(n)?x(l):""+l})}function S(e,t){let r;let n=[];for(let i of e)i.d&&i.n?(null==r?void 0:r.p)==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r={...i,n:i.n&&t}):n.push({...i,n:i.n&&t});return n}function O(e,r,n=c.u,i,o){let u=[];for(let s of e)for(let a of function(e,r,n,i,o){var u;e={...e,i:e.i||o};let s=function(e,t){let r=d.get(e.n);return r?r(e,t):t.r(e.n,"dark"==e.v[0])}(e,r);return s?"string"==typeof s?({r:i,p:n}=h(e,r,n,i),S(O(V(s),r,n,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,r;return{o:0,...e,r:[...l(i),...l(e.r)],p:(t=n,r=null!=(u=e.p)?u:n,t&~c.o|r)}}):k(s,e,r,n,i):[{c:t(e),p:0,o:0,r:[]}]}(s,r,n,i,o))u.splice(v(u,a),0,a);return u}function M(e,t,r,n,i,o,l,u){return S((u?r.flatMap(e=>O([e],n,i,o,l)):O(r,n,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?{...e,p:e.p&~c.o|t,o:0}:e),e)}function C(e,t,r,n){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=h(e,i,t);return r&&M(o,t,r,i,l,u,s,n)},d.set(e,i),e}function E(e,t){if("("!=e[e.length-1]){let r=[],n=!1,i=!1,o="";for(let l of e)if(!("("==l||/[~@]$/.test(l))){if("!"==l[0]&&(l=l.slice(1),n=!n),l.endsWith(":")){r["dark:"==l?"unshift":"push"](l.slice(0,-1));continue}"-"==l[0]&&(l=l.slice(1),i=!i),l.endsWith("-")&&(l=l.slice(0,-1)),l&&"&"!=l&&(o+=(o&&"-")+l)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(R),i:n}))}}function R(e,t,r){return r.indexOf(e)==t}let N=new Map;function V(e){let t=N.get(e);if(!t){let n=[],o=[[]],l=0,u=0,s=null,a=0,f=(t,r=0)=>{l!=a&&(n.push(e.slice(l,a+r)),t&&E(n,o)),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),n.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=n.lastIndexOf("(");if(")"==p){let d=n[h-1];if(/[~@]$/.test(d)){let g=o.shift();n.length=h,E([...n,"#"],o);let{v:y}=o[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);E([...n,C(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+r(g)+")",c.a,g,/@$/.test(d))],o)}h=n.lastIndexOf("(",h-1)}n.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&o.unshift([])}f(!0),N.set(e,t=o[0])}return t}function z(e,t,r){return t.reduce((t,n,i)=>t+r(n)+e[i+1],e[0])}function P(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?z(e,t,e=>T(e).trim()):t.filter(Boolean).reduce((e,t)=>e+T(t),e?T(e):"")}function T(e){let t,r="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=P(e[0],e.slice(1)))&&(r+=" "+t);else for(let n in e)e[n]&&(r+=" "+n)}else null!=e&&"boolean"!=typeof e&&(r+=" "+e);return r}let F=I("@"),_=I("~");function I(e){return new Proxy(function(e,...r){return t("",e,r)},{get:(e,r)=>r in e?e[r]:function(e,...n){return t(r,e,n)}});function t(t,n,i){return r(V(t+e+"("+P(n,i)+")"))}}function L(e,t){return Array.isArray(e)?D(z(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?D(e):[e]}let q=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function D(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],n=[r[0]],i=[];for(;t=q.exec(e);)t[4]&&(r.shift(),i.shift()),t[3]?(i.unshift(t[3]),r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))),r[0][t[1]]=t[2]);return n}function J(e,...t){var r,n;let o=L(e,t),l=((null==(r=o.find(e=>e.label))?void 0:r.label)||"css")+i(JSON.stringify(o));return n=(e,t)=>S(o.flatMap(r=>k(r,e,t,c.o)),l),d.set(l,n),l}let B=new Proxy(function(e,t){return U("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,r){return U(t,e,r)}});function U(e,t,r){return{toString:()=>J({label:e,"@layer components":{..."object"==typeof t?t:{animation:t},animationName:""+r}})}}let W=Symbol();function G(e){return e}function Y(e){return e[W]}function Z(e,...t){return r(V(P(e,t))," ")}function H({presets:e=[],...t}){let r={preflight:!1!==t.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:l(t.variants),rules:l(t.rules),ignorelist:l(t.ignorelist),hash:t.hash,stringify:t.stringify||K};for(let n of l([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&l(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify}])){let{preflight:i,darkMode:o=r.darkMode,darkColor:u=r.darkColor,theme:s,variants:c,rules:a,ignorelist:f,hash:p=r.hash,stringify:h=r.stringify}="function"==typeof n?n(r):n;r={preflight:!1!==r.preflight&&!1!==i&&[...r.preflight,...l(i)],darkMode:o,darkColor:u,theme:{...r.theme,...s,extend:{...r.theme.extend,...null==s?void 0:s.extend}},variants:[...r.variants,...l(c)],rules:[...r.rules,...l(a)],ignorelist:[...r.ignorelist,...l(f)],hash:p,stringify:h}}return r}function K(e,t){return e+":"+t}function Q(e,t,r){return[e,X(t,r)]}function X(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(r,n)=>({[e]:t?t(r,n):ee(r,1)}):t=>e||{[t[1]]:ee(t,2)}}function ee(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${r} * -1)`:r}function et(e,t,r,n){return[e,er(t,r,n)]}function er(e,t,r){let n="string"==typeof t?(e,n)=>({[t]:r?r(e,n):e._}):t||(({1:e,_:t},r,n)=>({[e||n]:t}));return(t,r)=>{var i;let o=eu(e||t[1]),l=null!=(i=r.theme(o,t.$$))?i:el(t.$$,o,r);if(null!=l)return t._=ee(t,0,l),n(t,r,o)}}function en(e,t={},r){return[e,ei(t,r)]}function ei(e={},t){return(r,n)=>{let{section:i=eu(r[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(r.$$))return;let{$1:o,$2:l}=RegExp,u=n.theme(i,o)||el(o,i,n);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=n.theme(c,l||"DEFAULT")||l&&el(l,c,n),h=t||(({_:e})=>{let t=eo(a,e);return f?{[f]:t}:t});r._={value:x(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>x(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(r,n);if(!r.dark){let g=n.d(i,o,u);g&&g!==u&&(r._={value:x(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>x(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[n.v("dark")]:h(r,n)})}return d}}function eo(e,t){let r={};return"string"==typeof t?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function el(e,t,r){if("["==e[0]&&"]"==e.slice(-1)&&(e=es(j(e.slice(1,-1),r.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function eu(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function es(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",r,n="")=>es(t)+r+es(n)):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 "))}function ec(e,t,r,n,i,o){for(let l of t){let u=r.get(l);u||r.set(l,u=n(l));let s=u(e,i,o);if(s)return s}}function ea(e){var t;return ep(e[0],"function"==typeof(t=e[1])?t:()=>t)}function ef(e){var t,r;return Array.isArray(e)?ep(e[0],X(e[1],e[2])):ep(e,X(t,r))}function ep(e,t){return eh(e,(e,r,n,i)=>{let o=r.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,n)})}function eh(e,t){let r=l(e).map(ed);return(e,n,i)=>{for(let o of r){let l=t(e,o,n,i);if(l)return l}}}function ed(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function eg(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,r)=>"--"+t(r).replace("#",""))}function ey(e,t){let r=H(e),o=function({theme:e,darkMode:t,darkColor:r,variants:o,rules:s,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=eh(f,(e,t)=>t.test(e));o.push(["dark",Array.isArray(t)||"class"==t?`${l(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let m="function"==typeof c?e=>c(e,i):c?i:u;return{theme:function({extend:e={},...t}){let r={},n={get colors(){return i("colors")},theme:i,negative:()=>({}),breakpoints(e){let t={};for(let r in e)"string"==typeof e[r]&&(t["screen-"+r]=e[r]);return t}};return i;function i(n,l,u,s){if(n){var c;if({1:n,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(n)||[,n],/[.[]/.test(n)){let a=[];n.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,r=t)=>a.push(r)),n=a.shift(),u=l,l=a.join("-")}let f=r[n]||Object.assign(Object.assign(r[n]={},o(t,n)),o(e,n));if(null==l)return f;let p=null!=(c=f[l||"DEFAULT"])?c:u;return s?x(p,{opacityValue:j(s,i)}):p}let h={};for(let d of[...Object.keys(t),...Object.keys(e)])h[d]=i(d);return h}function o(e,t){let r=e[t];return("function"==typeof r&&(r=r(n)),r&&/color|fill|stroke/i.test(t))?function e(t,r=[]){let n={};for(let i in t){let o=t[i],l=[...r,i];n[l.join("-")]=o,"DEFAULT"==i&&(l=r,n[r.join("-")]=o),"object"==typeof o&&Object.assign(n,e(o,l))}return n}(r):r}}(e),e:n,h:m,s(e,t){return a(eg(e,m),eg(t,m),this)},d(e,t,n){return null==r?void 0:r(e,t,this,n)},v(e){return p.has(e)||p.set(e,ec(e,o,h,ea,this)||"&:"+e),p.get(e)},r(e,t){let r=JSON.stringify([e,t]);return d.has(r)||d.set(r,!y(e,this)&&ec(e,s,g,ef,this,t)),d.get(r)}}}(r),s=new Map,a=[],f=new Set;function p(e){let r=e.n&&o.h(e.n),n=g(r?{...e,n:r}:e);if(n&&!f.has(n)){f.add(n);let i=v(a,e);t.insert(n,i,e),a.splice(i,0,e)}return r}return t.resume(e=>s.set(e,e),(e,r)=>{t.insert(e,a.length,r),a.push(r),f.add(e)}),Object.defineProperties(function(e){if(!s.size)for(let t of l(r.preflight))"function"==typeof t&&(t=t(o)),t&&("string"==typeof t?M("",c.b,V(t),o,c.b,[],!1,!0):k(t,{},o,c.b)).forEach(p);e=""+e;let n=s.get(e);if(!n){let i=new Set;for(let u of O(V(e),o))i.add(u.c).add(p(u));n=[...i].filter(Boolean).join(" "),s.set(e,n).set(n,n)}return n},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:o.theme,config:r,snapshot(){let e=t.snapshot(),r=new Set(f),n=new Map(s),i=[...a];return()=>{e(),f=r,s=n,a=i}},clear(){t.clear(),f=new Set,s=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function em(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eb(e=eO,t=document.documentElement){if(!t)return e;let r=new MutationObserver(i);r.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:n}=e;return e.destroy=()=>{r.disconnect(),n.call(e)},e;function i(e){for(let{type:t,target:n}of e)if("a"==t[0])o(n);else for(let i of n.querySelectorAll("[class]"))o(i);r.takeRecords()}function o(t){let r;let n=t.getAttribute("class");n&&em(n,r=e(n))&&t.setAttribute("class",r)}}function ev(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function e$(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ev(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,r){try{t.insertRule(e,r)}catch(n){t.insertRule(":root{}",r),/:-[mwo]/.test(e)}},resume:s}}function ew(e){let t=e&&"string"!=typeof e?e:ev(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,r){t.insertBefore(document.createTextNode(e),t.childNodes[r]||null)},resume:s}}function ex(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(r,n,i){t.splice(n,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${r}`:r)},resume:s}}function eA(e,t){let r=e?ew():e$();return t||(r.resume=ej),r}function ek(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):l(e)).join("")}function ej(e,t){let r=ek(this.target),n=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(n.test(r)){var i;let o;for(let l of(n.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=n.exec(r),o&&t(r.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function eS(e){if(document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(r=>{for(let{target:n}of r)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return s}let eO=new Proxy(s,{apply:(t,r,n)=>e(n[0]),get(t,r){let n=e[r];return"function"==typeof n?function(){return n.apply(e,arguments)}:n}});function eM(t={},r=eA,n){return null==e||e.destroy(),e=eb(ey(t,"function"==typeof r?r():r),n)}let eC=function(e,...t){("function"==typeof this?this:eO)(J({"@layer base":L(e,t)}))};function eE(e,t=!0){var r;let n=H(e);return eM({...n,hash:null!=(r=n.hash)?r:t},()=>eA(!t))}let eR=function e(t){return new Proxy(function(e,...r){return eN(t,"",e,r)},{get:(r,n)=>"bind"===n?e:n in r?r[n]:function(e,...r){return eN(t,n,e,r)}})}();function eN(e,t,r,o){return{toString(){let l=L(r,o),u=n(t+i(JSON.stringify([t,l])));return("function"==typeof e?e:eO)(J({[`@keyframes ${u}`]:L(r,o)})),u}}}function eV(e,t={}){let{tw:r=eO,minify:n=u}="function"==typeof t?{tw:t}:t,{html:i,css:o}=ez(e,r);return i.replace("</head>",`<style data-twind>${n(o,i)}</style></head>`)}function ez(e,t=eO){let r=t.snapshot(),n={html:eP(e,t),css:ek(t.target)};return r(),n}function eP(e,t=eO){let r="",n=0;return!function(e,t){let r=1,n=0,i="",o="",l=l=>{5==r&&"class"==o&&!1===t(n,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==r?"<"==s&&(r="!--"==e.substr(u+1,3)?4:3):4==r?">"==s&&"--"==e.slice(u-2,u)&&(r=1):i?s==i&&"\\"!=e[u-1]&&(l(u),r=2,i=""):'"'==s||"'"==s?(i=s,n+=1):">"==s?(l(u),r=1):r&&("="==s?(o=e.slice(n,u),r=5,n=u+1):"/"==s&&(r<5||">"==e[u+1])?(l(u),r=0):/\s/.test(s)&&(l(u),r=2,n=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):s).replace(/(&|&|&)/g,"&"));em(s,c)&&(l=l?"":'"',r+=e.slice(n,i)+l+c+l,n=o)}),r+e.slice(n,e.length)}let eT=(e,t)=>"function"==typeof e?eF(t,e):eF(e);function eF(e={},t){let{label:r="style",base:o,props:l={},defaults:u,when:s=[]}=e,a={...null==t?void 0:t.defaults,...u},f=i(JSON.stringify([r,null==t?void 0:t.className,o,l,a,s])),p=h("",o||"",c.c);function h(e,n,i){return C(((t?t.className.replace(/#.+$/,"~"):"")+r+e+f).replace(/[: ,()[\]]/,""),i,n&&V(n))}return Object.defineProperties(function(e){let r,n;Array.isArray(e)&&(r=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i={...a,...e},o=r?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in n="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],n+=(n&&" ")+("_"==g?y:g+":("+y+")"))}n&&(o+=" "+h("--"+u+"-"+d,n,402653184))}else(n=c[f])&&(o+=" "+h("--"+u+"-"+f,n,402653184))}return s.forEach((e,t)=>{let r="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])r+=(r&&"_")+l+"-"+u;else{r="";break}}r&&(n=e[1])&&(o+=" "+h("-"+t+"--"+r,n,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+n(p)}))}let e_=function(e,...t){return("function"==typeof this?this:eO)(P(e,t))};export{B as animation,F as apply,el as arbitrary,l as asArray,eS as auto,A as autoDarkColor,ei as colorFromTheme,eP as consume,J as css,e$ as cssom,Z as cx,H as defineConfig,ew as dom,n as escape,ez as extract,X as fromMatch,er as fromTheme,Y as getAutocompleteProvider,eA as getSheet,i as hash,u as identity,eC as injectGlobal,eV as inline,eE as install,eR as keyframes,Q as match,en as matchColor,et as matchTheme,o as mql,s as noop,es as normalize,eb as observe,V as parse,eM as setup,_ as shortcut,ek as stringify,eT as style,eo as toCSS,x as toColorValue,eO as tw,ey as twind,e_ as tx,ex as virtual,G as withAutocomplete};//# sourceMappingURL=core.browser.js.map | ||
let e;function t(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r(e,r=","){return e.map(t).join(r)}let n="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function i(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function l(e,t="@media "){return t+o(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function o(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function u(e){return e}function s(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function a(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function f(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(a(e),15)<<18}let p=["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 h({n:e,i:r,v:n=[]},i,u,s){for(let c of(e&&(e=t({n:e,i:r,v:n})),s=[...o(s)],n)){let a=i.theme("screens",c);for(let h of o(a&&l(a)||i.v(c))){var d;s.push(h),u|=a?67108864|f(h):"dark"==c?1073741824:"@"==h[0]?f(h):(d=h,1<<~(/:([a-z-]+)/.test(d)&&~p.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:u,r:s,i:r}}let d=new Map;function g(e){if(e.d){let t=[],r=y(e.r.reduce((e,r)=>"@"==r[0]?(t.push(r),e):r?y(e,e=>y(r,t=>{let r=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(r){let n=e.indexOf(r[1]);return~n?e.slice(0,n)+r[0]+e.slice(n+r[1].length):m(e,t)}return m(t,e)})):e,"&"),t=>m(t,e.n?"."+n(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function y(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,r,n)=>t(r)+n)}function m(e,t){return e.replace(/&/g,t)}let b=new Intl.Collator("en",{numeric:!0});function v(e,t){for(var r=0,n=e.length;r<n;){let i=n+r>>1;0>=$(e[i],t)?r=i+1:n=i}return n}function $(e,t){let r=e.p&c.o;return r==(t.p&c.o)&&(r==c.b||r==c.o)?0:e.p-t.p||e.o-t.o||b.compare(e.n,t.n)}function w(e,t){return Math.round(parseInt(e,16)*t)}function x(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:r="1",opacityVariable:n}=t,i=n?`var(${n})`:r;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(${[w(e.substr(1,l),o),w(e.substr(1+l,l),o),w(e.substr(1+2*l,l),o),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function A(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))}function k(e,t,r,n,u=[]){return function e(t,{n:r,p:n,r:u=[],i:s},p){let h=[],d="",y=0,m=0;for(let b in t||{}){var v,w;let x=t[b];if("@"==b[0]){if(!x)continue;if("a"==b[1]){h.push(...M(r,n,V(""+x),p,n,u,s,!0));continue}if("l"==b[1]){for(let A of o(x))h.push(...e(A,{n:r,p:(v=c[b[7]],n&~c.o|v),r:u,i:s},p));continue}if("i"==b[1]){h.push(...o(x).map(e=>({p:-1,o:0,r:[],d:b+" "+e})));continue}if("k"==b[1]){h.push({p:c.d,o:0,r:[b],d:e(x,{p:c.d},p).map(g).join("")});continue}if("f"==b[1]){h.push(...o(x).map(t=>({p:c.d,o:0,r:[b],d:e(t,{p:c.d},p).map(g).join("")})));continue}}if("object"!=typeof x||Array.isArray(x))"label"==b&&x?r=x+i(JSON.stringify([n,s,t])):(x||0===x)&&(b=b.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),m+=1,y=Math.max(y,"-"==(w=b)[0]?0:a(w)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test(w)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+o(x).map(e=>p.s(b,j(""+e,p.theme)+(s?" !important":""))).join(";"));else if("@"==b[0]||b.includes("&")){let k=n;"@"==b[0]&&(b=b.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let r=p.theme("screens",t);return r?(k|=67108864,l(r,"")):e}),k|=f(b)),h.push(...e(x,{n:r,p:k,r:[...u,b],i:s},p))}else h.push(...e(x,{p:n,r:[...u,b]},p))}return h.unshift({n:r,p:n,o:Math.max(0,15-m)+1.5*Math.min(y||15,15),r:u,d:d}),h.sort($)}(e,h(t,r,n,u),r)}function j(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,r,n,i,l)=>{let o=t(n,l);return"function"==typeof o&&/color|fill|stroke/i.test(n)?x(o):""+o})}function S(e,t){let r;let n=[];for(let i of e)i.d&&i.n?(null==r?void 0:r.p)==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r={...i,n:i.n&&t}):n.push({...i,n:i.n&&t});return n}function O(e,r,n=c.u,i,l){let u=[];for(let s of e)for(let a of function(e,r,n,i,l){var u;e={...e,i:e.i||l};let s=function(e,t){let r=d.get(e.n);return r?r(e,t):t.r(e.n,"dark"==e.v[0])}(e,r);return s?"string"==typeof s?({r:i,p:n}=h(e,r,n,i),S(O(V(s),r,n,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,r;return{o:0,...e,r:[...o(i),...o(e.r)],p:(t=n,r=null!=(u=e.p)?u:n,t&~c.o|r)}}):k(s,e,r,n,i):[{c:t(e),p:0,o:0,r:[]}]}(s,r,n,i,l))u.splice(v(u,a),0,a);return u}function M(e,t,r,n,i,l,o,u){return S((u?r.flatMap(e=>O([e],n,i,l,o)):O(r,n,i,l,o)).map(e=>e.p&c.o&&(e.n||t==c.b)?{...e,p:e.p&~c.o|t,o:0}:e),e)}function C(e,t,r,n){var i;return i=(e,i)=>{let{n:l,p:o,r:u,i:s}=h(e,i,t);return r&&M(l,t,r,i,o,u,s,n)},d.set(e,i),e}function E(e,t){if("("!=e[e.length-1]){let r=[],n=!1,i=!1,l="";for(let o of e)if(!("("==o||/[~@]$/.test(o))){if("!"==o[0]&&(o=o.slice(1),n=!n),o.endsWith(":")){r["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:r.filter(R),i:n}))}}function R(e,t,r){return r.indexOf(e)==t}let N=new Map;function V(e){let t=N.get(e);if(!t){let n=[],l=[[]],o=0,u=0,s=null,a=0,f=(t,r=0)=>{o!=a&&(n.push(e.slice(o,a+r)),t&&E(n,l)),o=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,o=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),n.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=n.lastIndexOf("(");if(")"==p){let d=n[h-1];if(/[~@]$/.test(d)){let g=l.shift();n.length=h,E([...n,"#"],l);let{v:y}=l[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);E([...n,C(d.length>1?d.slice(0,-1)+i(JSON.stringify([d,g])):d+"("+r(g)+")",c.a,g,/@$/.test(d))],l)}h=n.lastIndexOf("(",h-1)}n.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&l.unshift([])}f(!0),N.set(e,t=l[0])}return t}function z(e,t,r){return t.reduce((t,n,i)=>t+r(n)+e[i+1],e[0])}function P(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?z(e,t,e=>T(e).trim()):t.filter(Boolean).reduce((e,t)=>e+T(t),e?T(e):"")}function T(e){let t,r="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=P(e[0],e.slice(1)))&&(r+=" "+t);else for(let n in e)e[n]&&(r+=" "+n)}else null!=e&&"boolean"!=typeof e&&(r+=" "+e);return r}let F=I("@"),_=I("~");function I(e){return new Proxy(function(e,...r){return t("",e,r)},{get:(e,r)=>r in e?e[r]:function(e,...n){return t(r,e,n)}});function t(t,n,i){return r(V(t+e+"("+P(n,i)+")"))}}function L(e,t){return Array.isArray(e)?D(z(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?D(e):[e]}let q=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function D(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],n=[r[0]],i=[];for(;t=q.exec(e);)t[4]&&(r.shift(),i.shift()),t[3]?(i.unshift(t[3]),r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))),r[0][t[1]]=t[2]);return n}function J(e,...t){var r,n;let l=L(e,t),o=((null==(r=l.find(e=>e.label))?void 0:r.label)||"css")+i(JSON.stringify(l));return n=(e,t)=>S(l.flatMap(r=>k(r,e,t,c.o)),o),d.set(o,n),o}let B=new Proxy(function(e,t){return U("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,r){return U(t,e,r)}});function U(e,t,r){return{toString:()=>J({label:e,"@layer components":{..."object"==typeof t?t:{animation:t},animationName:""+r}})}}let W=Symbol();function G(e){return e}function Y(e){return e[W]}function Z(e,...t){return r(V(P(e,t))," ")}function H({presets:e=[],...t}){let r={preflight:!1!==t.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:o(t.variants),rules:o(t.rules),ignorelist:o(t.ignorelist),hash:t.hash,stringify:t.stringify||K};for(let n of o([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&o(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify}])){let{preflight:i,darkMode:l=r.darkMode,darkColor:u=r.darkColor,theme:s,variants:c,rules:a,ignorelist:f,hash:p=r.hash,stringify:h=r.stringify}="function"==typeof n?n(r):n;r={preflight:!1!==r.preflight&&!1!==i&&[...r.preflight,...o(i)],darkMode:l,darkColor:u,theme:{...r.theme,...s,extend:{...r.theme.extend,...null==s?void 0:s.extend}},variants:[...r.variants,...o(c)],rules:[...r.rules,...o(a)],ignorelist:[...r.ignorelist,...o(f)],hash:p,stringify:h}}return r}function K(e,t){return e+":"+t}function Q(e,t,r){return[e,X(t,r)]}function X(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(r,n)=>({[e]:t?t(r,n):ee(r,1)}):t=>e||{[t[1]]:ee(t,2)}}function ee(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${r} * -1)`:r}function et(e,t,r,n){return[e,er(t,r,n)]}function er(e,t,r){let n="string"==typeof t?(e,n)=>({[t]:r?r(e,n):e._}):t||(({1:e,_:t},r,n)=>({[e||n]:t}));return(t,r)=>{var i;let l=es(e||t[1]),o=null!=(i=r.theme(l,t.$$))?i:eu(t.$$,l,r);if(null!=o)return t._=ee(t,0,o),n(t,r,l)}}function en(e,t={},r){return[e,ei(t,r)]}function ei(e={},t){return(r,n)=>{let{section:i=es(r[0]).replace("-","")+"Color"}=e,[l,o]=el(r.$$);if(!l)return;let u=n.theme(i,l)||eu(l,i,n);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:c=i.replace("Color","Opacity"),property:a=i,selector:f}=e,p=n.theme(c,o||"DEFAULT")||o&&eu(o,c,n),h=t||(({_:e})=>{let t=eo(a,e);return f?{[f]:t}:t});r._={value:x(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>x(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(r,n);if(!r.dark){let g=n.d(i,l,u);g&&g!==u&&(r._={value:x(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>x(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[n.v("dark")]:h(r,n)})}return d}}function el(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function eo(e,t){let r={};return"string"==typeof t?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function eu(e,t,r){if("["==e[0]&&"]"==e.slice(-1)&&(e=ec(j(e.slice(1,-1),r.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function es(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function ec(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",r,n="")=>ec(t)+r+ec(n)):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 "))}function ea(e,t,r,n,i,l){for(let o of t){let u=r.get(o);u||r.set(o,u=n(o));let s=u(e,i,l);if(s)return s}}function ef(e){var t;return eh(e[0],"function"==typeof(t=e[1])?t:()=>t)}function ep(e){var t,r;return Array.isArray(e)?eh(e[0],X(e[1],e[2])):eh(e,X(t,r))}function eh(e,t){return ed(e,(e,r,n,i)=>{let l=r.exec(e);if(l)return l.$$=e.slice(l[0].length),l.dark=i,t(l,n)})}function ed(e,t){let r=o(e).map(eg);return(e,n,i)=>{for(let l of r){let o=t(e,l,n,i);if(o)return o}}}function eg(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ey(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,r)=>"--"+t(r).replace("#",""))}function em(e,t){let r=H(e),l=function({theme:e,darkMode:t,darkColor:r,variants:l,rules:s,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=ed(f,(e,t)=>t.test(e));l.push(["dark",Array.isArray(t)||"class"==t?`${o(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let m="function"==typeof c?e=>c(e,i):c?i:u;return{theme:function({extend:e={},...t}){let r={},n={get colors(){return i("colors")},theme:i,negative:()=>({}),breakpoints(e){let t={};for(let r in e)"string"==typeof e[r]&&(t["screen-"+r]=e[r]);return t}};return i;function i(n,o,u,s){if(n){var c;if({1:n,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(n)||[,n],/[.[]/.test(n)){let a=[];n.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,r=t)=>a.push(r)),n=a.shift(),u=o,o=a.join("-")}let f=r[n]||Object.assign(Object.assign(r[n]={},l(t,n)),l(e,n));if(null==o)return f;let p=null!=(c=f[o||"DEFAULT"])?c:u;return s?x(p,{opacityValue:j(s,i)}):p}let h={};for(let d of[...Object.keys(t),...Object.keys(e)])h[d]=i(d);return h}function l(e,t){let r=e[t];return("function"==typeof r&&(r=r(n)),r&&/color|fill|stroke/i.test(t))?function e(t,r=[]){let n={};for(let i in t){let l=t[i],o=[...r,i];n[o.join("-")]=l,"DEFAULT"==i&&(o=r,n[r.join("-")]=l),"object"==typeof l&&Object.assign(n,e(l,o))}return n}(r):r}}(e),e:n,h:m,s(e,t){return a(ey(e,m),ey(t,m),this)},d(e,t,n){return null==r?void 0:r(e,t,this,n)},v(e){return p.has(e)||p.set(e,ea(e,l,h,ef,this)||"&:"+e),p.get(e)},r(e,t){let r=JSON.stringify([e,t]);return d.has(r)||d.set(r,!y(e,this)&&ea(e,s,g,ep,this,t)),d.get(r)}}}(r),s=new Map,a=[],f=new Set;function p(e){let r=e.n&&l.h(e.n),n=g(r?{...e,n:r}:e);if(n&&!f.has(n)){f.add(n);let i=v(a,e);t.insert(n,i,e),a.splice(i,0,e)}return r}return t.resume(e=>s.set(e,e),(e,r)=>{t.insert(e,a.length,r),a.push(r),f.add(e)}),Object.defineProperties(function(e){if(!s.size)for(let t of o(r.preflight))"function"==typeof t&&(t=t(l)),t&&("string"==typeof t?M("",c.b,V(t),l,c.b,[],!1,!0):k(t,{},l,c.b)).forEach(p);e=""+e;let n=s.get(e);if(!n){let i=new Set;for(let u of O(V(e),l))i.add(u.c).add(p(u));n=[...i].filter(Boolean).join(" "),s.set(e,n).set(n,n)}return n},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:l.theme,config:r,snapshot(){let e=t.snapshot(),r=new Set(f),n=new Map(s),i=[...a];return()=>{e(),f=r,s=n,a=i}},clear(){t.clear(),f=new Set,s=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function eb(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function ev(e=eM,t=document.documentElement){if(!t)return e;let r=new MutationObserver(i);r.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),l(t),i([{target:t,type:""}]);let{destroy:n}=e;return e.destroy=()=>{r.disconnect(),n.call(e)},e;function i(e){for(let{type:t,target:n}of e)if("a"==t[0])l(n);else for(let i of n.querySelectorAll("[class]"))l(i);r.takeRecords()}function l(t){let r;let n=t.getAttribute("class");n&&eb(n,r=e(n))&&t.setAttribute("class",r)}}function e$(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ew(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:e$(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,r){try{t.insertRule(e,r)}catch(n){t.insertRule(":root{}",r),/:-[mwo]/.test(e)}},resume:s}}function ex(e){let t=e&&"string"!=typeof e?e:e$(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,r){t.insertBefore(document.createTextNode(e),t.childNodes[r]||null)},resume:s}}function eA(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(r,n,i){t.splice(n,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${r}`:r)},resume:s}}function ek(e,t){let r=e?ex():ew();return t||(r.resume=eS),r}function ej(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):o(e)).join("")}function eS(e,t){let r=ej(this.target),n=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(n.test(r)){var i;let l;for(let o of(n.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(o.getAttribute("class"));for(;i=n.exec(r),l&&t(r.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;);}}function eO(e){if(document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(r=>{for(let{target:n}of r)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return s}let eM=new Proxy(s,{apply:(t,r,n)=>e(n[0]),get(t,r){let n=e[r];return"function"==typeof n?function(){return n.apply(e,arguments)}:n}});function eC(t={},r=ek,n){return null==e||e.destroy(),e=ev(em(t,"function"==typeof r?r():r),n)}let eE=function(e,...t){("function"==typeof this?this:eM)(J({"@layer base":L(e,t)}))};function eR(e,t=!0){var r;let n=H(e);return eC({...n,hash:null!=(r=n.hash)?r:t},()=>ek(!t))}let eN=function e(t){return new Proxy(function(e,...r){return eV(t,"",e,r)},{get:(r,n)=>"bind"===n?e:n in r?r[n]:function(e,...r){return eV(t,n,e,r)}})}();function eV(e,t,r,l){return{toString(){let o=L(r,l),u=n(t+i(JSON.stringify([t,o])));return("function"==typeof e?e:eM)(J({[`@keyframes ${u}`]:L(r,l)})),u}}}function ez(e,t={}){let{tw:r=eM,minify:n=u}="function"==typeof t?{tw:t}:t,{html:i,css:l}=eP(e,r);return i.replace("</head>",`<style data-twind>${n(l,i)}</style></head>`)}function eP(e,t=eM){let r=t.snapshot(),n={html:eT(e,t),css:ej(t.target)};return r(),n}function eT(e,t=eM){let r="",n=0;return!function(e,t){let r=1,n=0,i="",l="",o=o=>{5==r&&"class"==l&&!1===t(n,o,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==r?"<"==s&&(r="!--"==e.substr(u+1,3)?4:3):4==r?">"==s&&"--"==e.slice(u-2,u)&&(r=1):i?s==i&&"\\"!=e[u-1]&&(o(u),r=2,i=""):'"'==s||"'"==s?(i=s,n+=1):">"==s?(o(u),r=1):r&&("="==s?(l=e.slice(n,u),r=5,n=u+1):"/"==s&&(r<5||">"==e[u+1])?(o(u),r=0):/\s/.test(s)&&(o(u),r=2,n=u+1))}}(e,(i,l,o)=>{var u;let s=e.slice(i,l),c=t(('"'==(u=o)?s.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):s).replace(/(&|&|&)/g,"&"));eb(s,c)&&(o=o?"":'"',r+=e.slice(n,i)+o+c+o,n=l)}),r+e.slice(n,e.length)}let eF=(e,t)=>"function"==typeof e?e_(t,e):e_(e);function e_(e={},t){let{label:r="style",base:l,props:o={},defaults:u,when:s=[]}=e,a={...null==t?void 0:t.defaults,...u},f=i(JSON.stringify([r,null==t?void 0:t.className,l,o,a,s])),p=h("",l||"",c.c);function h(e,n,i){return C(((t?t.className.replace(/#.+$/,"~"):"")+r+e+f).replace(/[: ,()[\]]/,""),i,n&&V(n))}return Object.defineProperties(function(e){let r,n;Array.isArray(e)&&(r=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i={...a,...e},l=r?"":(t?t(i)+" ":"")+p;for(let u in o){let c=o[u],f=i[u];if(f===Object(f)){let d="";for(let g in n="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],n+=(n&&" ")+("_"==g?y:g+":("+y+")"))}n&&(l+=" "+h("--"+u+"-"+d,n,402653184))}else(n=c[f])&&(l+=" "+h("--"+u+"-"+f,n,402653184))}return s.forEach((e,t)=>{let r="";for(let o in e[0]){let u=i[o];if(u!==Object(u)&&""+u==""+e[0][o])r+=(r&&"_")+o+"-"+u;else{r="";break}}r&&(n=e[1])&&(l+=" "+h("-"+t+"--"+r,n,536870912))}),l},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+n(p)}))}let eI=function(e,...t){return("function"==typeof this?this:eM)(P(e,t))};export{B as animation,F as apply,eu as arbitrary,o as asArray,eO as auto,A as autoDarkColor,ei as colorFromTheme,eT as consume,J as css,ew as cssom,Z as cx,H as defineConfig,ex as dom,n as escape,eP as extract,X as fromMatch,er as fromTheme,Y as getAutocompleteProvider,ek as getSheet,i as hash,u as identity,eE as injectGlobal,ez as inline,eR as install,eN as keyframes,Q as match,en as matchColor,et as matchTheme,l as mql,s as noop,ec as normalize,ev as observe,V as parse,el as parseValue,eC as setup,_ as shortcut,ej as stringify,eF as style,eo as toCSS,x as toColorValue,eM as tw,em as twind,eI as tx,eA as virtual,G as withAutocomplete};//# sourceMappingURL=core.browser.js.map |
@@ -610,2 +610,7 @@ import * as CSS$1 from 'csstype'; | ||
* @internal | ||
* @param input | ||
*/ | ||
declare function parseValue(input: string): [value: string, modifier: string | undefined] | [value: undefined, modifier: string | undefined]; | ||
/** | ||
* @internal | ||
* @param property | ||
@@ -1087,3 +1092,3 @@ * @param value | ||
export { Animation, AnimationFunction, ArrayType, AutocompleteContext, AutocompleteItem, AutocompleteModifier, AutocompleteProvider, BaseProperties, BaseTheme, CSSBase, CSSFontFace, CSSNested, CSSObject, CSSProperties, CSSValue, Class, ClassObject, ColorFromThemeOptions, ColorFromThemeValue, ColorFunction, ColorFunctionOptions, ColorRecord, ColorValue, Context, CustomProperties, DarkColor, DarkModeConfig, DefaultVariants, ExtractResult, ExtractTheme, ExtractThemes, ExtractUserTheme, Falsey, FilterByThemeValue, HashFunction, InjectGlobalFunction, InlineMinify, InlineOptions, KebabCase, Keyframes, KeyframesFunction, MatchConverter, MatchResult, MaybeArray, MaybeColorValue, MaybeThunk, MorphVariant, Nested, NestedFunction, ParsedDevRule, ParsedRule, 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, TypedAtRulesKeys, UnionToIntersection, Variant, VariantResolver, VariantResult, VariantsProps, When, animation, apply, arbitrary, asArray, auto, autoDarkColor, colorFromTheme, consume, css, cssom, cx, defineConfig, dom, escape, extract, fromMatch, fromTheme, getAutocompleteProvider, getSheet, hash, identity, injectGlobal, inline, install, keyframes, match, matchColor, matchTheme, mql, noop, normalize, observe, parse, setup, shortcut, stringify, style, toCSS, toColorValue, tw, twind, tx, virtual, withAutocomplete }; | ||
export { Animation, AnimationFunction, ArrayType, AutocompleteContext, AutocompleteItem, AutocompleteModifier, AutocompleteProvider, BaseProperties, BaseTheme, CSSBase, CSSFontFace, CSSNested, CSSObject, CSSProperties, CSSValue, Class, ClassObject, ColorFromThemeOptions, ColorFromThemeValue, ColorFunction, ColorFunctionOptions, ColorRecord, ColorValue, Context, CustomProperties, DarkColor, DarkModeConfig, DefaultVariants, ExtractResult, ExtractTheme, ExtractThemes, ExtractUserTheme, Falsey, FilterByThemeValue, HashFunction, InjectGlobalFunction, InlineMinify, InlineOptions, KebabCase, Keyframes, KeyframesFunction, MatchConverter, MatchResult, MaybeArray, MaybeColorValue, MaybeThunk, MorphVariant, Nested, NestedFunction, ParsedDevRule, ParsedRule, 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, TypedAtRulesKeys, UnionToIntersection, Variant, VariantResolver, VariantResult, VariantsProps, When, animation, apply, arbitrary, asArray, auto, autoDarkColor, colorFromTheme, consume, css, cssom, cx, defineConfig, dom, escape, extract, fromMatch, fromTheme, getAutocompleteProvider, getSheet, hash, identity, injectGlobal, inline, install, keyframes, match, matchColor, matchTheme, mql, noop, normalize, observe, parse, parseValue, setup, shortcut, stringify, style, toCSS, toColorValue, tw, twind, tx, virtual, withAutocomplete }; | ||
//# sourceMappingURL=core.d.ts.map |
@@ -1,1 +0,1 @@ | ||
var twind=function(e){"use strict";let t;function n(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r(e,t=","){return e.map(n).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(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 l(e,t="@media "){return t+u(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function u(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function s(e){return e}function c(){}let a={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(f(e),15)<<18}let h=["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 d({n:e,i:t,v:r=[]},i,o,s){for(let c of(e&&(e=n({n:e,i:t,v:r})),s=[...u(s)],r)){let a=i.theme("screens",c);for(let f of u(a&&l(a)||i.v(c))){var d;s.push(f),o|=a?67108864|p(f):"dark"==c?1073741824:"@"==f[0]?p(f):(d=f,1<<~(/:([a-z-]+)/.test(d)&&~h.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:o,r:s,i:t}}let y=new Map;function g(){return(g=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 m(){return g.apply(this,arguments)}function v(e){if(e.d){let t=[],n=b(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?b(e,e=>b(n,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):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=A(e[i],t)?n=i+1:r=i}return r}function A(e,t){let n=e.p&a.o;return n==(t.p&a.o)&&(n==a.b||n==a.o)?0:e.p-t.p||e.o-t.o||w.compare(e.n,t.n)}function k(e,t){return Math.round(parseInt(e,16)*t)}function O(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 o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[k(e.substr(1,o),l),k(e.substr(1+o,o),l),k(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function j(e,t,n,r,i=[]){return function e(t,{n:n,p:r,r:i=[],i:s},c){let h=[],d="",y=0,g=0;for(let m in t||{}){var b,$;let w=t[m];if("@"==m[0]){if(!w)continue;if("a"==m[1]){h.push(...C(n,r,N(""+w),c,r,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:n,p:(b=a[m[7]],r&~a.o|b),r:i,i:s},c));continue}if("i"==m[1]){h.push(...u(w).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){h.push({p:a.d,o:0,r:[m],d:e(w,{p:a.d},c).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:a.d,o:0,r:[m],d:e(t,{p:a.d},c).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?n=w+o(JSON.stringify([r,s,t])):(w||0===w)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),g+=1,y=Math.max(y,"-"==($=m)[0]?0:f($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+u(w).map(e=>c.s(m,E(""+e,c.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let k=r;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=c.theme("screens",t);return n?(k|=67108864,l(n,"")):e}),k|=p(m)),h.push(...e(w,{n:n,p:k,r:[...i,m],i:s},c))}else h.push(...e(w,{p:r,r:[...i,m]},c))}return h.unshift({n:n,p:r,o:Math.max(0,15-g)+1.5*Math.min(y||15,15),r:i,d:d}),h.sort(A)}(e,d(t,n,r,i),n)}function E(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?O(l):""+l})}function S(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n=m({},i,{n:i.n&&t})):r.push(m({},i,{n:i.n&&t}));return r}function M(e,t,r=a.u,i,o){let l=[];for(let s of e)for(let c of function(e,t,r,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let n=y.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:r}=d(e,t,r,i),S(M(N(s),t,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=r,n=null!=(l=e.p)?l:r,t&~a.o|n)})}):j(s,e,t,r,i):[{c:n(e),p:0,o:0,r:[]}]}(s,t,r,i,o))l.splice(x(l,c),0,c);return l}function C(e,t,n,r,i,o,l,u){return S((u?n.flatMap(e=>M([e],r,i,o,l)):M(n,r,i,o,l)).map(e=>e.p&a.o&&(e.n||t==a.b)?m({},e,{p:e.p&~a.o|t,o:0}):e),e)}function V(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return n&&C(o,t,n,i,l,u,s,r)},y.set(e,i),e}function T(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(D),i:i},{a:{value:[...e]},l:{value:n}})))}}function D(e,t,n){return n.indexOf(e)==t}let L=new Map;function N(e){let t=L.get(e);if(!t){let n=[],i=[[]],l=0,u=0,s=null,c=0,f=(t,r=0)=>{l!=c&&(n.push(e.slice(l,c+r)),t&&T(n,i,[l,c+r])),l=c+1};for(;c<e.length;c++){let p=e[c];if(u)"\\"!=e[c-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[c-1]&&s.test(e.slice(c))&&(s=null,l=c+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[c-1]&&("*"==e[c+1]||"/"==e[c+1]))s="*"==e[c+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),n.push(p);else if(":"==p)":"!=e[c+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=n.lastIndexOf("(");if(")"==p){let d=n[h-1];if(/[~@]$/.test(d)){let y=i.shift();n.length=h,T([...n,"#"],i,[l,c]);let{v:g}=i[0].pop();for(let m of y)m.v.splice(+("dark"==m.v[0])-+("dark"==g[0]),g.length);T([...n,V(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,y])):d+"("+r(y)+")",a.a,y,/@$/.test(d))],i,[l,c])}h=n.lastIndexOf("(",h-1)}n.length=h+1}else/[~@]/.test(p)&&"("==e[c+1]&&i.unshift([])}f(!0),L.set(e,t=i[0])}return t}function F(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function R(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?F(e,t,e=>U(e).trim()):t.filter(Boolean).reduce((e,t)=>e+U(t),e?U(e):"")}function U(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=R(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}let P=_("@"),I=_("~");function _(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,i){return r(N(t+e+"("+R(n,i)+")"))}}function z(e,t){return Array.isArray(e)?J(F(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?J(e):[e]}let q=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function J(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=q.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,r;let i=z(e,t),l=((null==(n=i.find(e=>e.label))?void 0:n.label)||"css")+o(JSON.stringify(i));return r=(e,t)=>S(i.flatMap(n=>j(n,e,t,a.o)),l),y.set(l,r),l}let B=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return G(t,e,n)}});function G(e,t,n){return{toString:()=>W({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+n})})}}function Y(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Z(n,1)}):t=>e||{[t[1]]:Z(t,2)}}function Z(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function H(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return er((t,n)=>{var i;let o=ee(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:X(t.$$,o,n);if(null!=l)return t._=Z(t,0,l),r(t,n,o)},(t,n)=>{let r=ee(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&O(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&O(o,{opacityValue:"1"})}]:[]})}function K(e={},t){return er((n,r)=>{let{section:i=ee(n[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(n.$$))return;let{$1:o,$2:l}=RegExp,u=r.theme(i,o)||X(o,i,r);if(!u||"object"==typeof 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,l||"DEFAULT")||l&&X(l,c,r),h=t||(({_:e})=>{let t=Q(a,e);return f?{[f]:t}:t});n._={value:O(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>O(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let y=r.d(i,o,u);y&&y!==u&&(n._={value:O(y,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>O(y,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=ee(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:O(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:O(t,{opacityValue:n})})).concat([{modifier:"[",color:O(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:O(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:O(u,{opacityValue:t})})).concat([{modifier:"[",color:O(u,{opacityValue:"1"})}])}]:[]})}function Q(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 X(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=et(E(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function ee(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function et(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>et(t)+n+et(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 en=Symbol("@twind/autocomplete");function er(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,en,{value:t,configurable:!0});let[n,r,i]=u(e);return[n,Object.defineProperty(Y(r,i),en,{value:t,configurable:!0})]}return e}function ei(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function eo(e){var{presets:t=[]}=e,n=ei(e,["presets"]);let r={preflight:!1!==n.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(n.variants),rules:u(n.rules),ignorelist:u(n.ignorelist),hash:n.hash,stringify:n.stringify||el};for(let i of u([...t,{darkMode:n.darkMode,darkColor:n.darkColor,preflight:!1!==n.preflight&&u(n.preflight),theme:n.theme,hash:n.hash,stringify:n.stringify}])){let{preflight:o,darkMode:l=r.darkMode,darkColor:s=r.darkColor,theme:c,variants:a,rules:f,ignorelist:p,hash:h=r.hash,stringify:d=r.stringify}="function"==typeof i?i(r):i;r={preflight:!1!==r.preflight&&!1!==o&&[...r.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},r.theme,c,{extend:m({},r.theme.extend,null==c?void 0:c.extend)}),variants:[...r.variants,...u(a)],rules:[...r.rules,...u(f)],ignorelist:[...r.ignorelist,...u(p)],hash:h,stringify:d}}return r}function el(e,t){return e+":"+t}function eu(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function es(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ec(e){var t;return ef(e[0],"function"==typeof(t=e[1])?t:()=>t)}function ea(e){var t,n;return Array.isArray(e)?ef(e[0],Y(e[1],e[2])):ef(e,Y(t,n))}function ef(e,t){return ep(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function ep(e,t){let n=u(e).map(eh);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function eh(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ed(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function ey(e,t){let n=eo(e),r=function({theme:e,darkMode:t,darkColor:n,variants:r,rules:l,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,y=new Map,g=ep(f,(e,t)=>t.test(e)),m=new Set;r.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,o):c?o:s;return{theme:function(e){var{extend:t={}}=e,n=ei(e,["extend"]);let r={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return o;function o(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]={},l(n,e)),l(t,e));if(null==i)return f;let p=null!=(c=f[i||"DEFAULT"])?c:u;return s?O(p,{opacityValue:E(s,o)}):p}let h={};for(let d of[...Object.keys(n),...Object.keys(t)])h[d]=o(d);return h}function l(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 o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:i,h:v,s(e,t){return a(ed(e,v),ed(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,es(e,r,h,ec,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!g(e,this)&&es(e,l,y,ea,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),eu(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),l=new Map,c=[],f=new Set;function p(e){let n=e.n&&r.h(e.n),i=v(n?m({},e,{n:n}):e);if(i&&!f.has(i)){f.add(i);let o=x(c,e);t.insert(i,o,e),c.splice(o,0,e)}return n}return t.resume(e=>l.set(e,e),(e,n)=>{t.insert(e,c.length,n),c.push(n),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(n.preflight))"function"==typeof t&&(t=t(r)),t&&("string"==typeof t?C("",a.b,N(t),r,a.b,[],!1,!0):j(t,{},r,a.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of M(N(e),r))o.add(s.c).add(p(s));i=[...o].filter(Boolean).join(" "),l.set(e,i).set(i,i)}return i},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(l),i=[...c];return()=>{e(),f=n,l=r,c=i}},clear(){t.clear(),f=new Set,l=new Map,c=[]},destroy(){this.clear(),t.destroy()}}))}function eg(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function em(e=eO,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(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])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&eg(r,n=e(r))&&t.setAttribute("class",n)}}function ev(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function eb(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ev(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)||eu(r.message,"TWIND_INVALID_CSS",e)}},resume:c}}function e$(e){let t=e&&"string"!=typeof e?e:ev(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:c}}function ew(e,t){let n=e?e$():eb();return t||(n.resume=eA),n}function ex(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function eA(e,t){let n=ex(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function ek(){if(!t)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let eO=new Proxy(c,{apply:(e,n,r)=>(ek(),t(r[0])),get(e,n){ek();let r=t[n];return"function"==typeof r?function(){return ek(),r.apply(t,arguments)}:r}});function ej(e={},n=ew,r){return null==t||t.destroy(),t=em(ey(e,"function"==typeof n?n():n),r)}let eE=function e(t){return new Proxy(function(e,...n){return eS(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eS(t,r,e,n)}})}();function eS(e,t,n,r){return{toString(){let l=z(n,r),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:eO)(W({[`@keyframes ${u}`]:z(n,r)})),u}}}function eM(e,t=eO){let n=t.snapshot(),r={html:eC(e,t),css:ex(t.target)};return n(),r}function eC(e,t=eO){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};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]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):s).replace(/(&|&|&)/g,"&"));eg(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let eV=(e,t)=>"function"==typeof e?eT(t,e):eT(e);function eT(e={},t){let{label:n="style",base:r,props:l={},defaults:u,when:s=[]}=e,c=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([n,null==t?void 0:t.className,r,l,c,s])),p=h("",r||"",a.c);function h(e,r,i){return V(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&N(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},c,e),o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let a=l[u],f=i[u];if(f===Object(f)){let d="";for(let y in r="",f){let g=a[f[y]];g&&(d+="@"+y+"-"+f[y],r+=(r&&" ")+("_"==y?g:y+":("+g+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=a[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:c,selector:"."+i(p)}))}return e.animation=B,e.apply=P,e.arbitrary=X,e.asArray=u,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 c},e.autoDarkColor=function(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=K,e.consume=eC,e.css=W,e.cssom=eb,e.cx=function(e,...t){return r(N(R(e,t))," ")},e.defineConfig=eo,e.dom=e$,e.escape=i,e.extract=eM,e.fromMatch=Y,e.fromTheme=H,e.getAutocompleteProvider=function(e){return e[en]},e.getSheet=ew,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:eO)(W({"@layer base":z(e,t)}))},e.inline=function(e,t={}){let{tw:n=eO,minify:r=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eM(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)},e.install=function(e,t=!1){var n;let r=eo(e);return ej(m({},r,{hash:null!=(n=r.hash)?n:t}),()=>ew(!t))},e.keyframes=eE,e.match=function(e,t,n){return[e,Y(t,n)]},e.matchColor=function(e,t={},n){return[e,K(t,n)]},e.matchTheme=function(e,t,n,r){return[e,H(t,n,r)]},e.mql=l,e.noop=c,e.normalize=et,e.observe=em,e.parse=N,e.setup=ej,e.shortcut=I,e.stringify=ex,e.style=eV,e.toCSS=Q,e.toColorValue=O,e.tw=eO,e.twind=ey,e.tx=function(e,...t){return("function"==typeof this?this:eO)(R(e,t))},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:c}},e.withAutocomplete=er,e}({});//# sourceMappingURL=core.global.dev.js.map | ||
var twind=function(e){"use strict";let t;function n(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function r(e,t=","){return e.map(n).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(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 l(e,t="@media "){return t+u(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function u(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function s(e){return e}function c(){}let a={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(f(e),15)<<18}let h=["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 d({n:e,i:t,v:r=[]},i,o,s){for(let c of(e&&(e=n({n:e,i:t,v:r})),s=[...u(s)],r)){let a=i.theme("screens",c);for(let f of u(a&&l(a)||i.v(c))){var d;s.push(f),o|=a?67108864|p(f):"dark"==c?1073741824:"@"==f[0]?p(f):(d=f,1<<~(/:([a-z-]+)/.test(d)&&~h.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:o,r:s,i:t}}let g=new Map;function y(){return(y=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 m(){return y.apply(this,arguments)}function v(e){if(e.d){let t=[],n=b(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?b(e,e=>b(n,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):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,r)=>t(n)+r)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var n=0,r=e.length;n<r;){let i=r+n>>1;0>=A(e[i],t)?n=i+1:r=i}return r}function A(e,t){let n=e.p&a.o;return n==(t.p&a.o)&&(n==a.b||n==a.o)?0:e.p-t.p||e.o-t.o||w.compare(e.n,t.n)}function k(e,t){return Math.round(parseInt(e,16)*t)}function O(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 o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[k(e.substr(1,o),l),k(e.substr(1+o,o),l),k(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function j(e,t,n,r,i=[]){return function e(t,{n:n,p:r,r:i=[],i:s},c){let h=[],d="",g=0,y=0;for(let m in t||{}){var b,$;let w=t[m];if("@"==m[0]){if(!w)continue;if("a"==m[1]){h.push(...C(n,r,N(""+w),c,r,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:n,p:(b=a[m[7]],r&~a.o|b),r:i,i:s},c));continue}if("i"==m[1]){h.push(...u(w).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){h.push({p:a.d,o:0,r:[m],d:e(w,{p:a.d},c).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:a.d,o:0,r:[m],d:e(t,{p:a.d},c).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?n=w+o(JSON.stringify([r,s,t])):(w||0===w)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),y+=1,g=Math.max(g,"-"==($=m)[0]?0:f($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+u(w).map(e=>c.s(m,S(""+e,c.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let k=r;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let n=c.theme("screens",t);return n?(k|=67108864,l(n,"")):e}),k|=p(m)),h.push(...e(w,{n:n,p:k,r:[...i,m],i:s},c))}else h.push(...e(w,{p:r,r:[...i,m]},c))}return h.unshift({n:n,p:r,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:i,d:d}),h.sort(A)}(e,d(t,n,r,i),n)}function S(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,r,i,o)=>{let l=t(r,o);return"function"==typeof l&&/color|fill|stroke/i.test(r)?O(l):""+l})}function E(e,t){let n;let r=[];for(let i of e)i.d&&i.n?(null==n?void 0:n.p)==i.p&&""+n.r==""+i.r?(n.c=[n.c,i.c].filter(Boolean).join(" "),n.d=n.d+";"+i.d):r.push(n=m({},i,{n:i.n&&t})):r.push(m({},i,{n:i.n&&t}));return r}function M(e,t,r=a.u,i,o){let l=[];for(let s of e)for(let c of function(e,t,r,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let n=g.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:r}=d(e,t,r,i),E(M(N(s),t,r,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,n;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=r,n=null!=(l=e.p)?l:r,t&~a.o|n)})}):j(s,e,t,r,i):[{c:n(e),p:0,o:0,r:[]}]}(s,t,r,i,o))l.splice(x(l,c),0,c);return l}function C(e,t,n,r,i,o,l,u){return E((u?n.flatMap(e=>M([e],r,i,o,l)):M(n,r,i,o,l)).map(e=>e.p&a.o&&(e.n||t==a.b)?m({},e,{p:e.p&~a.o|t,o:0}):e),e)}function T(e,t,n,r){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return n&&C(o,t,n,i,l,u,s,r)},g.set(e,i),e}function V(e,t,n){if("("!=e[e.length-1]){let r=[],i=!1,o=!1,l="";for(let u of e)if(!("("==u||/[~@]$/.test(u))){if("!"==u[0]&&(u=u.slice(1),i=!i),u.endsWith(":")){r["dark:"==u?"unshift":"push"](u.slice(0,-1));continue}"-"==u[0]&&(u=u.slice(1),o=!o),u.endsWith("-")&&(u=u.slice(0,-1)),u&&"&"!=u&&(l+=(l&&"-")+u)}l&&(o&&(l="-"+l),t[0].push(Object.defineProperties({n:l,v:r.filter(D),i:i},{a:{value:[...e]},l:{value:n}})))}}function D(e,t,n){return n.indexOf(e)==t}let L=new Map;function N(e){let t=L.get(e);if(!t){let n=[],i=[[]],l=0,u=0,s=null,c=0,f=(t,r=0)=>{l!=c&&(n.push(e.slice(l,c+r)),t&&V(n,i,[l,c+r])),l=c+1};for(;c<e.length;c++){let p=e[c];if(u)"\\"!=e[c-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[c-1]&&s.test(e.slice(c))&&(s=null,l=c+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[c-1]&&("*"==e[c+1]||"/"==e[c+1]))s="*"==e[c+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),n.push(p);else if(":"==p)":"!=e[c+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=n.lastIndexOf("(");if(")"==p){let d=n[h-1];if(/[~@]$/.test(d)){let g=i.shift();n.length=h,V([...n,"#"],i,[l,c]);let{v:y}=i[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);V([...n,T(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,g])):d+"("+r(g)+")",a.a,g,/@$/.test(d))],i,[l,c])}h=n.lastIndexOf("(",h-1)}n.length=h+1}else/[~@]/.test(p)&&"("==e[c+1]&&i.unshift([])}f(!0),L.set(e,t=i[0])}return t}function F(e,t,n){return t.reduce((t,r,i)=>t+n(r)+e[i+1],e[0])}function R(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?F(e,t,e=>U(e).trim()):t.filter(Boolean).reduce((e,t)=>e+U(t),e?U(e):"")}function U(e){let t,n="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=R(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}let P=_("@"),I=_("~");function _(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,i){return r(N(t+e+"("+R(n,i)+")"))}}function z(e,t){return Array.isArray(e)?J(F(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?J(e):[e]}let q=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function J(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let n=[{}],r=[n[0]],i=[];for(;t=q.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,r;let i=z(e,t),l=((null==(n=i.find(e=>e.label))?void 0:n.label)||"css")+o(JSON.stringify(i));return r=(e,t)=>E(i.flatMap(n=>j(n,e,t,a.o)),l),g.set(l,r),l}let B=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,n){return G(t,e,n)}});function G(e,t,n){return{toString:()=>W({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+n})})}}function Y(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,r)=>({[e]:t?t(n,r):Z(n,1)}):t=>e||{[t[1]]:Z(t,2)}}function Z(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function H(e,t,n){let r="string"==typeof t?(e,r)=>({[t]:n?n(e,r):e._}):t||(({1:e,_:t},n,r)=>({[e||r]:t}));return ei((t,n)=>{var i;let o=et(e||t[1]),l=null!=(i=n.theme(o,t.$$))?i:ee(t.$$,o,n);if(null!=l)return t._=Z(t,0,l),r(t,n,o)},(t,n)=>{let r=et(e||t[1]),i=t.input.endsWith("-");if(i)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&(!/color|fill|stroke/i.test(r)||["string","function"].includes(typeof t))).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:/color|fill|stroke/i.test(r)&&O(t,{opacityValue:"1"})})).concat([{suffix:"["}]);let o=n.theme(r,"DEFAULT");return o?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:/color|fill|stroke/i.test(r)&&O(o,{opacityValue:"1"})}]:[]})}function K(e={},t){return ei((n,r)=>{let{section:i=et(n[0]).replace("-","")+"Color"}=e,[o,l]=Q(n.$$);if(!o)return;let u=r.theme(i,o)||ee(o,i,r);if(!u||"object"==typeof 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,l||"DEFAULT")||l&&ee(l,c,r),h=t||(({_:e})=>{let t=X(a,e);return f?{[f]:t}:t});n._={value:O(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>O(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(n,r);if(!n.dark){let g=r.d(i,o,u);g&&g!==u&&(n._={value:O(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>O(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[r.v("dark")]:h(n,r)})}return d},(t,n)=>{let{section:r=et(t[0]).replace("-","")+"Color",opacitySection:i=r.replace("Color","Opacity")}=e,o=t.input.endsWith("-"),l=Object.entries(n.theme(i)||{}).filter(([e,t])=>"DEFAULT"!=e&&/^[\w-]+$/.test(e)&&"string"==typeof t);if(o)return Object.entries(n.theme(r)||{}).filter(([e,t])=>e&&"DEFAULT"!=e&&["string","function"].includes(typeof t)).map(([e,t])=>({suffix:e.replace(/-DEFAULT/g,""),theme:{section:r,key:e},color:O(t,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof t||"string"==typeof t&&(t.includes("<alpha-value>")||"#"==t[0]&&(4==t.length||7==t.length)))&&l.map(([e,n])=>({modifier:e,theme:{section:i,key:e},color:O(t,{opacityValue:n})})).concat([{modifier:"[",color:O(t,{opacityValue:"1"})}])})).concat([{suffix:"["}]);let u=n.theme(r,"DEFAULT");return u?[{suffix:"",theme:{section:r,key:"DEFAULT"},color:O(u,{opacityValue:n.theme(i,"DEFAULT")||"1"}),modifiers:("function"==typeof u||"string"==typeof u&&(u.includes("<alpha-value>")||"#"==u[0]&&(4==u.length||7==u.length)))&&l.map(([e,t])=>({modifier:e,theme:{section:i,key:e},color:O(u,{opacityValue:t})})).concat([{modifier:"[",color:O(u,{opacityValue:"1"})}])}]:[]})}function Q(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function X(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 ee(e,t,n){if("["==e[0]&&"]"==e.slice(-1)&&(e=en(S(e.slice(1,-1),n.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function et(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function en(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,r="")=>en(t)+n+en(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 er=Symbol("@twind/autocomplete");function ei(e,t){if(t){if("function"==typeof e)return Object.defineProperty(e,er,{value:t,configurable:!0});let[n,r,i]=u(e);return[n,Object.defineProperty(Y(r,i),er,{value:t,configurable:!0})]}return e}function eo(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function el(e){var{presets:t=[]}=e,n=eo(e,["presets"]);let r={preflight:!1!==n.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(n.variants),rules:u(n.rules),ignorelist:u(n.ignorelist),hash:n.hash,stringify:n.stringify||eu};for(let i of u([...t,{darkMode:n.darkMode,darkColor:n.darkColor,preflight:!1!==n.preflight&&u(n.preflight),theme:n.theme,hash:n.hash,stringify:n.stringify}])){let{preflight:o,darkMode:l=r.darkMode,darkColor:s=r.darkColor,theme:c,variants:a,rules:f,ignorelist:p,hash:h=r.hash,stringify:d=r.stringify}="function"==typeof i?i(r):i;r={preflight:!1!==r.preflight&&!1!==o&&[...r.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},r.theme,c,{extend:m({},r.theme.extend,null==c?void 0:c.extend)}),variants:[...r.variants,...u(a)],rules:[...r.rules,...u(f)],ignorelist:[...r.ignorelist,...u(p)],hash:h,stringify:d}}return r}function eu(e,t){return e+":"+t}function es(e,t,n){if("function"==typeof dispatchEvent&&"function"==typeof CustomEvent){let r=new CustomEvent("warning",{detail:{message:e,code:t,detail:n}});dispatchEvent(r),r.defaultPrevented||console.warn(`[${t}] ${e}`,{detail:n})}else console.warn(`[${t}] ${e}`,{detail:n})}function ec(e,t,n,r,i,o){for(let l of t){let u=n.get(l);u||n.set(l,u=r(l));let s=u(e,i,o);if(s)return s}}function ea(e){var t;return ep(e[0],"function"==typeof(t=e[1])?t:()=>t)}function ef(e){var t,n;return Array.isArray(e)?ep(e[0],Y(e[1],e[2])):ep(e,Y(t,n))}function ep(e,t){return eh(e,(e,n,r,i)=>{let o=n.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,r)})}function eh(e,t){let n=u(e).map(ed);return(e,r,i)=>{for(let o of n){let l=t(e,o,r,i);if(l)return l}}}function ed(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function eg(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,n)=>"--"+t(n).replace("#",""))}function ey(e,t){let n=el(e),r=function({theme:e,darkMode:t,darkColor:n,variants:r,rules:l,hash:c,stringify:a,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=eh(f,(e,t)=>t.test(e)),m=new Set;r.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let v="function"==typeof c?e=>c(e,o):c?o:s;return{theme:function(e){var{extend:t={}}=e,n=eo(e,["extend"]);let r={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let n in e)"string"==typeof e[n]&&(t["screen-"+n]=e[n]);return t}};return o;function o(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]={},l(n,e)),l(t,e));if(null==i)return f;let p=null!=(c=f[i||"DEFAULT"])?c:u;return s?O(p,{opacityValue:S(s,o)}):p}let h={};for(let d of[...Object.keys(n),...Object.keys(t)])h[d]=o(d);return h}function l(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 o=t[i],l=[...n,i];r[l.join("-")]=o,"DEFAULT"==i&&(l=n,r[n.join("-")]=o),"object"==typeof o&&Object.assign(r,e(o,l))}return r}(n):n}}(e),e:i,h:v,s(e,t){return a(eg(e,v),eg(t,v),this)},d(e,t,r){return null==n?void 0:n(e,t,this,r)},v(e){return p.has(e)||p.set(e,ec(e,r,h,ea,this)||"&:"+e),p.get(e)},r(e,t){let n=JSON.stringify([e,t]);if(!d.has(n)){d.set(n,!y(e,this)&&ec(e,l,g,ef,this,t));{let r=d.get(n);null!=r||m.has(e)||(m.add(e),es(`Unknown class ${JSON.stringify(e)} found.`,"TWIND_INVALID_CLASS",e))}}return d.get(n)}}}(n),l=new Map,c=[],f=new Set;function p(e){let n=e.n&&r.h(e.n),i=v(n?m({},e,{n:n}):e);if(i&&!f.has(i)){f.add(i);let o=x(c,e);t.insert(i,o,e),c.splice(o,0,e)}return n}return t.resume(e=>l.set(e,e),(e,n)=>{t.insert(e,c.length,n),c.push(n),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(n.preflight))"function"==typeof t&&(t=t(r)),t&&("string"==typeof t?C("",a.b,N(t),r,a.b,[],!1,!0):j(t,{},r,a.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of M(N(e),r))o.add(s.c).add(p(s));i=[...o].filter(Boolean).join(" "),l.set(e,i).set(i,i)}return i},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:r.theme,config:n,snapshot(){let e=t.snapshot(),n=new Set(f),r=new Map(l),i=[...c];return()=>{e(),f=n,l=r,c=i}},clear(){t.clear(),f=new Set,l=new Map,c=[]},destroy(){this.clear(),t.destroy()}}))}function em(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function ev(e=ej,t=document.documentElement){if(!t)return e;let n=new MutationObserver(i);n.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(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])o(r);else for(let i of r.querySelectorAll("[class]"))o(i);n.takeRecords()}function o(t){let n;let r=t.getAttribute("class");r&&em(r,n=e(r))&&t.setAttribute("class",n)}}function eb(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function e$(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:eb(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)||es(r.message,"TWIND_INVALID_CSS",e)}},resume:c}}function ew(e){let t=e&&"string"!=typeof e?e:eb(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:c}}function ex(e,t){let n=e?ew():e$();return t||(n.resume=ek),n}function eA(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function ek(e,t){let n=eA(this.target),r=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(r.test(n)){var i;let o;for(let l of(r.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=r.exec(n),o&&t(n.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}function eO(){if(!t)throw Error("No active twind instance found. Make sure to call setup or install before accessing tw.")}let ej=new Proxy(c,{apply:(e,n,r)=>(eO(),t(r[0])),get(e,n){eO();let r=t[n];return"function"==typeof r?function(){return eO(),r.apply(t,arguments)}:r}});function eS(e={},n=ex,r){return null==t||t.destroy(),t=ev(ey(e,"function"==typeof n?n():n),r)}let eE=function e(t){return new Proxy(function(e,...n){return eM(t,"",e,n)},{get:(n,r)=>"bind"===r?e:r in n?n[r]:function(e,...n){return eM(t,r,e,n)}})}();function eM(e,t,n,r){return{toString(){let l=z(n,r),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:ej)(W({[`@keyframes ${u}`]:z(n,r)})),u}}}function eC(e,t=ej){let n=t.snapshot(),r={html:eT(e,t),css:eA(t.target)};return n(),r}function eT(e,t=ej){let n="",r=0;return!function(e,t){let n=1,r=0,i="",o="",l=l=>{5==n&&"class"==o&&!1===t(r,l,i)&&(e="")};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]&&(l(u),n=2,i=""):'"'==s||"'"==s?(i=s,r+=1):">"==s?(l(u),n=1):n&&("="==s?(o=e.slice(r,u),n=5,r=u+1):"/"==s&&(n<5||">"==e[u+1])?(l(u),n=0):/\s/.test(s)&&(l(u),n=2,r=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),c=t(('"'==(u=l)?s.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):s).replace(/(&|&|&)/g,"&"));em(s,c)&&(l=l?"":'"',n+=e.slice(r,i)+l+c+l,r=o)}),n+e.slice(r,e.length)}let eV=(e,t)=>"function"==typeof e?eD(t,e):eD(e);function eD(e={},t){let{label:n="style",base:r,props:l={},defaults:u,when:s=[]}=e,c=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([n,null==t?void 0:t.className,r,l,c,s])),p=h("",r||"",a.c);function h(e,r,i){return T(((t?t.className.replace(/#.+$/,"~"):"")+n+e+f).replace(/[: ,()[\]]/,""),i,r&&N(r))}return Object.defineProperties(function(e){let n,r;Array.isArray(e)&&(n=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},c,e),o=n?"":(t?t(i)+" ":"")+p;for(let u in l){let a=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in r="",f){let y=a[f[g]];y&&(d+="@"+g+"-"+f[g],r+=(r&&" ")+("_"==g?y:g+":("+y+")"))}r&&(o+=" "+h("--"+u+"-"+d,r,402653184))}else(r=a[f])&&(o+=" "+h("--"+u+"-"+f,r,402653184))}return s.forEach((e,t)=>{let n="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])n+=(n&&"_")+l+"-"+u;else{n="";break}}n&&(r=e[1])&&(o+=" "+h("-"+t+"--"+n,r,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:c,selector:"."+i(p)}))}return e.animation=B,e.apply=P,e.arbitrary=ee,e.asArray=u,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 c},e.autoDarkColor=function(e,t,{theme:n}){return n(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=K,e.consume=eT,e.css=W,e.cssom=e$,e.cx=function(e,...t){return r(N(R(e,t))," ")},e.defineConfig=el,e.dom=ew,e.escape=i,e.extract=eC,e.fromMatch=Y,e.fromTheme=H,e.getAutocompleteProvider=function(e){return e[er]},e.getSheet=ex,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:ej)(W({"@layer base":z(e,t)}))},e.inline=function(e,t={}){let{tw:n=ej,minify:r=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eC(e,n);return i.replace("</head>",`<style data-twind>${r(o,i)}</style></head>`)},e.install=function(e,t=!1){var n;let r=el(e);return eS(m({},r,{hash:null!=(n=r.hash)?n:t}),()=>ex(!t))},e.keyframes=eE,e.match=function(e,t,n){return[e,Y(t,n)]},e.matchColor=function(e,t={},n){return[e,K(t,n)]},e.matchTheme=function(e,t,n,r){return[e,H(t,n,r)]},e.mql=l,e.noop=c,e.normalize=en,e.observe=ev,e.parse=N,e.parseValue=Q,e.setup=eS,e.shortcut=I,e.stringify=eA,e.style=eV,e.toCSS=X,e.toColorValue=O,e.tw=ej,e.twind=ey,e.tx=function(e,...t){return("function"==typeof this?this:ej)(R(e,t))},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:c}},e.withAutocomplete=ei,e}({});//# sourceMappingURL=core.global.dev.js.map |
@@ -1,1 +0,1 @@ | ||
var twind=function(e){"use strict";let t;function r(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,t=","){return e.map(r).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function l(e,t="@media "){return t+u(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function u(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function s(e){return e}function a(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(f(e),15)<<18}let h=["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 d({n:e,i:t,v:n=[]},i,o,s){for(let a of(e&&(e=r({n:e,i:t,v:n})),s=[...u(s)],n)){let c=i.theme("screens",a);for(let f of u(c&&l(c)||i.v(a))){var d;s.push(f),o|=c?67108864|p(f):"dark"==a?1073741824:"@"==f[0]?p(f):(d=f,1<<~(/:([a-z-]+)/.test(d)&&~h.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:o,r:s,i:t}}let g=new Map;function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function m(){return y.apply(this,arguments)}function v(e){if(e.d){let t=[],r=b(e.r.reduce((e,r)=>"@"==r[0]?(t.push(r),e):r?b(e,e=>b(r,t=>{let r=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(r){let n=e.indexOf(r[1]);return~n?e.slice(0,n)+r[0]+e.slice(n+r[1].length):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,r,n)=>t(r)+n)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var r=0,n=e.length;r<n;){let i=n+r>>1;0>=A(e[i],t)?r=i+1:n=i}return n}function A(e,t){let r=e.p&c.o;return r==(t.p&c.o)&&(r==c.b||r==c.o)?0:e.p-t.p||e.o-t.o||w.compare(e.n,t.n)}function j(e,t){return Math.round(parseInt(e,16)*t)}function k(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:r="1",opacityVariable:n}=t,i=n?`var(${n})`:r;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[j(e.substr(1,o),l),j(e.substr(1+o,o),l),j(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function O(e,t,r,n,i=[]){return function e(t,{n:r,p:n,r:i=[],i:s},a){let h=[],d="",g=0,y=0;for(let m in t||{}){var b,$;let w=t[m];if("@"==m[0]){if(!w)continue;if("a"==m[1]){h.push(...E(r,n,P(""+w),a,n,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:r,p:(b=c[m[7]],n&~c.o|b),r:i,i:s},a));continue}if("i"==m[1]){h.push(...u(w).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){h.push({p:c.d,o:0,r:[m],d:e(w,{p:c.d},a).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:c.d,o:0,r:[m],d:e(t,{p:c.d},a).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?r=w+o(JSON.stringify([n,s,t])):(w||0===w)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),y+=1,g=Math.max(g,"-"==($=m)[0]?0:f($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+u(w).map(e=>a.s(m,S(""+e,a.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let j=n;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let r=a.theme("screens",t);return r?(j|=67108864,l(r,"")):e}),j|=p(m)),h.push(...e(w,{n:r,p:j,r:[...i,m],i:s},a))}else h.push(...e(w,{p:n,r:[...i,m]},a))}return h.unshift({n:r,p:n,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:i,d:d}),h.sort(A)}(e,d(t,r,n,i),r)}function S(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,r,n,i,o)=>{let l=t(n,o);return"function"==typeof l&&/color|fill|stroke/i.test(n)?k(l):""+l})}function M(e,t){let r;let n=[];for(let i of e)i.d&&i.n?(null==r?void 0:r.p)==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r=m({},i,{n:i.n&&t})):n.push(m({},i,{n:i.n&&t}));return n}function C(e,t,n=c.u,i,o){let l=[];for(let s of e)for(let a of function(e,t,n,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let r=g.get(e.n);return r?r(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:n}=d(e,t,n,i),M(C(P(s),t,n,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,r;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=n,r=null!=(l=e.p)?l:n,t&~c.o|r)})}):O(s,e,t,n,i):[{c:r(e),p:0,o:0,r:[]}]}(s,t,n,i,o))l.splice(x(l,a),0,a);return l}function E(e,t,r,n,i,o,l,u){return M((u?r.flatMap(e=>C([e],n,i,o,l)):C(r,n,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?m({},e,{p:e.p&~c.o|t,o:0}):e),e)}function R(e,t,r,n){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return r&&E(o,t,r,i,l,u,s,n)},g.set(e,i),e}function N(e,t){if("("!=e[e.length-1]){let r=[],n=!1,i=!1,o="";for(let l of e)if(!("("==l||/[~@]$/.test(l))){if("!"==l[0]&&(l=l.slice(1),n=!n),l.endsWith(":")){r["dark:"==l?"unshift":"push"](l.slice(0,-1));continue}"-"==l[0]&&(l=l.slice(1),i=!i),l.endsWith("-")&&(l=l.slice(0,-1)),l&&"&"!=l&&(o+=(o&&"-")+l)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(V),i:n}))}}function V(e,t,r){return r.indexOf(e)==t}let z=new Map;function P(e){let t=z.get(e);if(!t){let r=[],i=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&N(r,i)),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),r.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=r.lastIndexOf("(");if(")"==p){let d=r[h-1];if(/[~@]$/.test(d)){let g=i.shift();r.length=h,N([...r,"#"],i);let{v:y}=i[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);N([...r,R(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],i)}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&i.unshift([])}f(!0),z.set(e,t=i[0])}return t}function T(e,t,r){return t.reduce((t,n,i)=>t+r(n)+e[i+1],e[0])}function F(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?T(e,t,e=>_(e).trim()):t.filter(Boolean).reduce((e,t)=>e+_(t),e?_(e):"")}function _(e){let t,r="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=F(e[0],e.slice(1)))&&(r+=" "+t);else for(let n in e)e[n]&&(r+=" "+n)}else null!=e&&"boolean"!=typeof e&&(r+=" "+e);return r}let I=q("@"),L=q("~");function q(e){return new Proxy(function(e,...r){return t("",e,r)},{get:(e,r)=>r in e?e[r]:function(e,...n){return t(r,e,n)}});function t(t,r,i){return n(P(t+e+"("+F(r,i)+")"))}}function D(e,t){return Array.isArray(e)?B(T(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?B(e):[e]}let J=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function B(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],n=[r[0]],i=[];for(;t=J.exec(e);)t[4]&&(r.shift(),i.shift()),t[3]?(i.unshift(t[3]),r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))),r[0][t[1]]=t[2]);return n}function U(e,...t){var r,n;let i=D(e,t),l=((null==(r=i.find(e=>e.label))?void 0:r.label)||"css")+o(JSON.stringify(i));return n=(e,t)=>M(i.flatMap(r=>O(r,e,t,c.o)),l),g.set(l,n),l}let W=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,r){return G(t,e,r)}});function G(e,t,r){return{toString:()=>U({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+r})})}}let Y=Symbol();function Z(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function H(e){var{presets:t=[]}=e,r=Z(e,["presets"]);let n={preflight:!1!==r.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(r.variants),rules:u(r.rules),ignorelist:u(r.ignorelist),hash:r.hash,stringify:r.stringify||K};for(let i of u([...t,{darkMode:r.darkMode,darkColor:r.darkColor,preflight:!1!==r.preflight&&u(r.preflight),theme:r.theme,hash:r.hash,stringify:r.stringify}])){let{preflight:o,darkMode:l=n.darkMode,darkColor:s=n.darkColor,theme:a,variants:c,rules:f,ignorelist:p,hash:h=n.hash,stringify:d=n.stringify}="function"==typeof i?i(n):i;n={preflight:!1!==n.preflight&&!1!==o&&[...n.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},n.theme,a,{extend:m({},n.theme.extend,null==a?void 0:a.extend)}),variants:[...n.variants,...u(c)],rules:[...n.rules,...u(f)],ignorelist:[...n.ignorelist,...u(p)],hash:h,stringify:d}}return n}function K(e,t){return e+":"+t}function Q(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(r,n)=>({[e]:t?t(r,n):X(r,1)}):t=>e||{[t[1]]:X(t,2)}}function X(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${r} * -1)`:r}function ee(e,t,r){let n="string"==typeof t?(e,n)=>({[t]:r?r(e,n):e._}):t||(({1:e,_:t},r,n)=>({[e||n]:t}));return(t,r)=>{var i;let o=ei(e||t[1]),l=null!=(i=r.theme(o,t.$$))?i:en(t.$$,o,r);if(null!=l)return t._=X(t,0,l),n(t,r,o)}}function et(e={},t){return(r,n)=>{let{section:i=ei(r[0]).replace("-","")+"Color"}=e;if(!/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/.test(r.$$))return;let{$1:o,$2:l}=RegExp,u=n.theme(i,o)||en(o,i,n);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:a=i.replace("Color","Opacity"),property:c=i,selector:f}=e,p=n.theme(a,l||"DEFAULT")||l&&en(l,a,n),h=t||(({_:e})=>{let t=er(c,e);return f?{[f]:t}:t});r._={value:k(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>k(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(r,n);if(!r.dark){let g=n.d(i,o,u);g&&g!==u&&(r._={value:k(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>k(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[n.v("dark")]:h(r,n)})}return d}}function er(e,t){let r={};return"string"==typeof t?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function en(e,t,r){if("["==e[0]&&"]"==e.slice(-1)&&(e=eo(S(e.slice(1,-1),r.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function ei(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function eo(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",r,n="")=>eo(t)+r+eo(n)):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 "))}function el(e,t,r,n,i,o){for(let l of t){let u=r.get(l);u||r.set(l,u=n(l));let s=u(e,i,o);if(s)return s}}function eu(e){var t;return ea(e[0],"function"==typeof(t=e[1])?t:()=>t)}function es(e){var t,r;return Array.isArray(e)?ea(e[0],Q(e[1],e[2])):ea(e,Q(t,r))}function ea(e,t){return ec(e,(e,r,n,i)=>{let o=r.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,n)})}function ec(e,t){let r=u(e).map(ef);return(e,n,i)=>{for(let o of r){let l=t(e,o,n,i);if(l)return l}}}function ef(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function ep(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,r)=>"--"+t(r).replace("#",""))}function eh(e,t){let r=H(e),n=function({theme:e,darkMode:t,darkColor:r,variants:n,rules:l,hash:a,stringify:c,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=ec(f,(e,t)=>t.test(e));n.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let m="function"==typeof a?e=>a(e,o):a?o:s;return{theme:function(e){var{extend:t={}}=e,r=Z(e,["extend"]);let n={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let r in e)"string"==typeof e[r]&&(t["screen-"+r]=e[r]);return t}};return o;function o(e,i,u,s){if(e){var a;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let c=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,r=t)=>c.push(r)),e=c.shift(),u=i,i=c.join("-")}let f=n[e]||Object.assign(Object.assign(n[e]={},l(r,e)),l(t,e));if(null==i)return f;let p=null!=(a=f[i||"DEFAULT"])?a:u;return s?k(p,{opacityValue:S(s,o)}):p}let h={};for(let d of[...Object.keys(r),...Object.keys(t)])h[d]=o(d);return h}function l(e,t){let r=e[t];return("function"==typeof r&&(r=r(i)),r&&/color|fill|stroke/i.test(t))?function e(t,r=[]){let n={};for(let i in t){let o=t[i],l=[...r,i];n[l.join("-")]=o,"DEFAULT"==i&&(l=r,n[r.join("-")]=o),"object"==typeof o&&Object.assign(n,e(o,l))}return n}(r):r}}(e),e:i,h:m,s(e,t){return c(ep(e,m),ep(t,m),this)},d(e,t,n){return null==r?void 0:r(e,t,this,n)},v(e){return p.has(e)||p.set(e,el(e,n,h,eu,this)||"&:"+e),p.get(e)},r(e,t){let r=JSON.stringify([e,t]);return d.has(r)||d.set(r,!y(e,this)&&el(e,l,g,es,this,t)),d.get(r)}}}(r),l=new Map,a=[],f=new Set;function p(e){let r=e.n&&n.h(e.n),i=v(r?m({},e,{n:r}):e);if(i&&!f.has(i)){f.add(i);let o=x(a,e);t.insert(i,o,e),a.splice(o,0,e)}return r}return t.resume(e=>l.set(e,e),(e,r)=>{t.insert(e,a.length,r),a.push(r),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(r.preflight))"function"==typeof t&&(t=t(n)),t&&("string"==typeof t?E("",c.b,P(t),n,c.b,[],!1,!0):O(t,{},n,c.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of C(P(e),n))o.add(s.c).add(p(s));i=[...o].filter(Boolean).join(" "),l.set(e,i).set(i,i)}return i},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:n.theme,config:r,snapshot(){let e=t.snapshot(),r=new Set(f),n=new Map(l),i=[...a];return()=>{e(),f=r,l=n,a=i}},clear(){t.clear(),f=new Set,l=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function ed(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function eg(e=ex,t=document.documentElement){if(!t)return e;let r=new MutationObserver(i);r.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:n}=e;return e.destroy=()=>{r.disconnect(),n.call(e)},e;function i(e){for(let{type:t,target:n}of e)if("a"==t[0])o(n);else for(let i of n.querySelectorAll("[class]"))o(i);r.takeRecords()}function o(t){let r;let n=t.getAttribute("class");n&&ed(n,r=e(n))&&t.setAttribute("class",r)}}function ey(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function em(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:ey(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,r){try{t.insertRule(e,r)}catch(n){t.insertRule(":root{}",r),/:-[mwo]/.test(e)}},resume:a}}function ev(e){let t=e&&"string"!=typeof e?e:ey(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,r){t.insertBefore(document.createTextNode(e),t.childNodes[r]||null)},resume:a}}function eb(e,t){let r=e?ev():em();return t||(r.resume=ew),r}function e$(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function ew(e,t){let r=e$(this.target),n=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(n.test(r)){var i;let o;for(let l of(n.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=n.exec(r),o&&t(r.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}let ex=new Proxy(a,{apply:(e,r,n)=>t(n[0]),get(e,r){let n=t[r];return"function"==typeof n?function(){return n.apply(t,arguments)}:n}});function eA(e={},r=eb,n){return null==t||t.destroy(),t=eg(eh(e,"function"==typeof r?r():r),n)}let ej=function e(t){return new Proxy(function(e,...r){return ek(t,"",e,r)},{get:(r,n)=>"bind"===n?e:n in r?r[n]:function(e,...r){return ek(t,n,e,r)}})}();function ek(e,t,r,n){return{toString(){let l=D(r,n),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:ex)(U({[`@keyframes ${u}`]:D(r,n)})),u}}}function eO(e,t=ex){let r=t.snapshot(),n={html:eS(e,t),css:e$(t.target)};return r(),n}function eS(e,t=ex){let r="",n=0;return!function(e,t){let r=1,n=0,i="",o="",l=l=>{5==r&&"class"==o&&!1===t(n,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==r?"<"==s&&(r="!--"==e.substr(u+1,3)?4:3):4==r?">"==s&&"--"==e.slice(u-2,u)&&(r=1):i?s==i&&"\\"!=e[u-1]&&(l(u),r=2,i=""):'"'==s||"'"==s?(i=s,n+=1):">"==s?(l(u),r=1):r&&("="==s?(o=e.slice(n,u),r=5,n=u+1):"/"==s&&(r<5||">"==e[u+1])?(l(u),r=0):/\s/.test(s)&&(l(u),r=2,n=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),a=t(('"'==(u=l)?s.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):s).replace(/(&|&|&)/g,"&"));ed(s,a)&&(l=l?"":'"',r+=e.slice(n,i)+l+a+l,n=o)}),r+e.slice(n,e.length)}let eM=(e,t)=>"function"==typeof e?eC(t,e):eC(e);function eC(e={},t){let{label:r="style",base:n,props:l={},defaults:u,when:s=[]}=e,a=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([r,null==t?void 0:t.className,n,l,a,s])),p=h("",n||"",c.c);function h(e,n,i){return R(((t?t.className.replace(/#.+$/,"~"):"")+r+e+f).replace(/[: ,()[\]]/,""),i,n&&P(n))}return Object.defineProperties(function(e){let r,n;Array.isArray(e)&&(r=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},a,e),o=r?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in n="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],n+=(n&&" ")+("_"==g?y:g+":("+y+")"))}n&&(o+=" "+h("--"+u+"-"+d,n,402653184))}else(n=c[f])&&(o+=" "+h("--"+u+"-"+f,n,402653184))}return s.forEach((e,t)=>{let r="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])r+=(r&&"_")+l+"-"+u;else{r="";break}}r&&(n=e[1])&&(o+=" "+h("-"+t+"--"+r,n,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+i(p)}))}return e.animation=W,e.apply=I,e.arbitrary=en,e.asArray=u,e.auto=function(e){if(document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(r=>{for(let{target:n}of r)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return a},e.autoDarkColor=function(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=et,e.consume=eS,e.css=U,e.cssom=em,e.cx=function(e,...t){return n(P(F(e,t))," ")},e.defineConfig=H,e.dom=ev,e.escape=i,e.extract=eO,e.fromMatch=Q,e.fromTheme=ee,e.getAutocompleteProvider=function(e){return e[Y]},e.getSheet=eb,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:ex)(U({"@layer base":D(e,t)}))},e.inline=function(e,t={}){let{tw:r=ex,minify:n=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eO(e,r);return i.replace("</head>",`<style data-twind>${n(o,i)}</style></head>`)},e.install=function(e,t=!0){var r;let n=H(e);return eA(m({},n,{hash:null!=(r=n.hash)?r:t}),()=>eb(!t))},e.keyframes=ej,e.match=function(e,t,r){return[e,Q(t,r)]},e.matchColor=function(e,t={},r){return[e,et(t,r)]},e.matchTheme=function(e,t,r,n){return[e,ee(t,r,n)]},e.mql=l,e.noop=a,e.normalize=eo,e.observe=eg,e.parse=P,e.setup=eA,e.shortcut=L,e.stringify=e$,e.style=eM,e.toCSS=er,e.toColorValue=k,e.tw=ex,e.twind=eh,e.tx=function(e,...t){return("function"==typeof this?this:ex)(F(e,t))},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(r,n,i){t.splice(n,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${r}`:r)},resume:a}},e.withAutocomplete=function(e){return e},e}({});//# sourceMappingURL=core.global.js.map | ||
var twind=function(e){"use strict";let t;function r(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function n(e,t=","){return e.map(r).join(t)}let i="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function o(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function l(e,t="@media "){return t+u(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function u(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function s(e){return e}function a(){}let c={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function f(e){var t;return(null==(t=e.match(/[-=:;]/g))?void 0:t.length)||0}function p(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?+RegExp.$1/(RegExp.$2?15:1)/10:0,15)<<22|Math.min(f(e),15)<<18}let h=["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 d({n:e,i:t,v:n=[]},i,o,s){for(let a of(e&&(e=r({n:e,i:t,v:n})),s=[...u(s)],n)){let c=i.theme("screens",a);for(let f of u(c&&l(c)||i.v(a))){var d;s.push(f),o|=c?67108864|p(f):"dark"==a?1073741824:"@"==f[0]?p(f):(d=f,1<<~(/:([a-z-]+)/.test(d)&&~h.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:o,r:s,i:t}}let g=new Map;function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function m(){return y.apply(this,arguments)}function v(e){if(e.d){let t=[],r=b(e.r.reduce((e,r)=>"@"==r[0]?(t.push(r),e):r?b(e,e=>b(r,t=>{let r=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(r){let n=e.indexOf(r[1]);return~n?e.slice(0,n)+r[0]+e.slice(n+r[1].length):$(e,t)}return $(t,e)})):e,"&"),t=>$(t,e.n?"."+i(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function b(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,r,n)=>t(r)+n)}function $(e,t){return e.replace(/&/g,t)}let w=new Intl.Collator("en",{numeric:!0});function x(e,t){for(var r=0,n=e.length;r<n;){let i=n+r>>1;0>=A(e[i],t)?r=i+1:n=i}return n}function A(e,t){let r=e.p&c.o;return r==(t.p&c.o)&&(r==c.b||r==c.o)?0:e.p-t.p||e.o-t.o||w.compare(e.n,t.n)}function j(e,t){return Math.round(parseInt(e,16)*t)}function k(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:r="1",opacityVariable:n}=t,i=n?`var(${n})`:r;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",i);if("#"==e[0]&&(4==e.length||7==e.length)){let o=(e.length-1)/3,l=[17,1,.062272][o-1];return`rgba(${[j(e.substr(1,o),l),j(e.substr(1+o,o),l),j(e.substr(1+2*o,o),l),i]})`}return"1"==i?e:"0"==i?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${i})`)}function O(e,t,r,n,i=[]){return function e(t,{n:r,p:n,r:i=[],i:s},a){let h=[],d="",g=0,y=0;for(let m in t||{}){var b,$;let w=t[m];if("@"==m[0]){if(!w)continue;if("a"==m[1]){h.push(...E(r,n,P(""+w),a,n,i,s,!0));continue}if("l"==m[1]){for(let x of u(w))h.push(...e(x,{n:r,p:(b=c[m[7]],n&~c.o|b),r:i,i:s},a));continue}if("i"==m[1]){h.push(...u(w).map(e=>({p:-1,o:0,r:[],d:m+" "+e})));continue}if("k"==m[1]){h.push({p:c.d,o:0,r:[m],d:e(w,{p:c.d},a).map(v).join("")});continue}if("f"==m[1]){h.push(...u(w).map(t=>({p:c.d,o:0,r:[m],d:e(t,{p:c.d},a).map(v).join("")})));continue}}if("object"!=typeof w||Array.isArray(w))"label"==m&&w?r=w+o(JSON.stringify([n,s,t])):(w||0===w)&&(m=m.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),y+=1,g=Math.max(g,"-"==($=m)[0]?0:f($)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/.test($)?+!!RegExp.$1||-!!RegExp.$2:0)+1),d+=(d?";":"")+u(w).map(e=>a.s(m,S(""+e,a.theme)+(s?" !important":""))).join(";"));else if("@"==m[0]||m.includes("&")){let j=n;"@"==m[0]&&(m=m.replace(/\bscreen\(([^)]+)\)/g,(e,t)=>{let r=a.theme("screens",t);return r?(j|=67108864,l(r,"")):e}),j|=p(m)),h.push(...e(w,{n:r,p:j,r:[...i,m],i:s},a))}else h.push(...e(w,{p:n,r:[...i,m]},a))}return h.unshift({n:r,p:n,o:Math.max(0,15-y)+1.5*Math.min(g||15,15),r:i,d:d}),h.sort(A)}(e,d(t,r,n,i),r)}function S(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,r,n,i,o)=>{let l=t(n,o);return"function"==typeof l&&/color|fill|stroke/i.test(n)?k(l):""+l})}function M(e,t){let r;let n=[];for(let i of e)i.d&&i.n?(null==r?void 0:r.p)==i.p&&""+r.r==""+i.r?(r.c=[r.c,i.c].filter(Boolean).join(" "),r.d=r.d+";"+i.d):n.push(r=m({},i,{n:i.n&&t})):n.push(m({},i,{n:i.n&&t}));return n}function C(e,t,n=c.u,i,o){let l=[];for(let s of e)for(let a of function(e,t,n,i,o){var l;e=m({},e,{i:e.i||o});let s=function(e,t){let r=g.get(e.n);return r?r(e,t):t.r(e.n,"dark"==e.v[0])}(e,t);return s?"string"==typeof s?({r:i,p:n}=d(e,t,n,i),M(C(P(s),t,n,i,e.i),e.n)):Array.isArray(s)?s.map(e=>{var t,r;return m({o:0},e,{r:[...u(i),...u(e.r)],p:(t=n,r=null!=(l=e.p)?l:n,t&~c.o|r)})}):O(s,e,t,n,i):[{c:r(e),p:0,o:0,r:[]}]}(s,t,n,i,o))l.splice(x(l,a),0,a);return l}function E(e,t,r,n,i,o,l,u){return M((u?r.flatMap(e=>C([e],n,i,o,l)):C(r,n,i,o,l)).map(e=>e.p&c.o&&(e.n||t==c.b)?m({},e,{p:e.p&~c.o|t,o:0}):e),e)}function R(e,t,r,n){var i;return i=(e,i)=>{let{n:o,p:l,r:u,i:s}=d(e,i,t);return r&&E(o,t,r,i,l,u,s,n)},g.set(e,i),e}function N(e,t){if("("!=e[e.length-1]){let r=[],n=!1,i=!1,o="";for(let l of e)if(!("("==l||/[~@]$/.test(l))){if("!"==l[0]&&(l=l.slice(1),n=!n),l.endsWith(":")){r["dark:"==l?"unshift":"push"](l.slice(0,-1));continue}"-"==l[0]&&(l=l.slice(1),i=!i),l.endsWith("-")&&(l=l.slice(0,-1)),l&&"&"!=l&&(o+=(o&&"-")+l)}o&&(i&&(o="-"+o),t[0].push({n:o,v:r.filter(V),i:n}))}}function V(e,t,r){return r.indexOf(e)==t}let z=new Map;function P(e){let t=z.get(e);if(!t){let r=[],i=[[]],l=0,u=0,s=null,a=0,f=(t,n=0)=>{l!=a&&(r.push(e.slice(l,a+n)),t&&N(r,i)),l=a+1};for(;a<e.length;a++){let p=e[a];if(u)"\\"!=e[a-1]&&(u+=+("["==p)||-("]"==p));else if("["==p)u+=1;else if(s)"\\"!=e[a-1]&&s.test(e.slice(a))&&(s=null,l=a+RegExp.lastMatch.length);else if("/"==p&&"\\"!=e[a-1]&&("*"==e[a+1]||"/"==e[a+1]))s="*"==e[a+1]?/^\*\//:/^[\r\n]/;else if("("==p)f(),r.push(p);else if(":"==p)":"!=e[a+1]&&f(!1,1);else if(/[\s,)]/.test(p)){f(!0);let h=r.lastIndexOf("(");if(")"==p){let d=r[h-1];if(/[~@]$/.test(d)){let g=i.shift();r.length=h,N([...r,"#"],i);let{v:y}=i[0].pop();for(let m of g)m.v.splice(+("dark"==m.v[0])-+("dark"==y[0]),y.length);N([...r,R(d.length>1?d.slice(0,-1)+o(JSON.stringify([d,g])):d+"("+n(g)+")",c.a,g,/@$/.test(d))],i)}h=r.lastIndexOf("(",h-1)}r.length=h+1}else/[~@]/.test(p)&&"("==e[a+1]&&i.unshift([])}f(!0),z.set(e,t=i[0])}return t}function T(e,t,r){return t.reduce((t,n,i)=>t+r(n)+e[i+1],e[0])}function F(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?T(e,t,e=>_(e).trim()):t.filter(Boolean).reduce((e,t)=>e+_(t),e?_(e):"")}function _(e){let t,r="";if(e&&"object"==typeof e){if(Array.isArray(e))(t=F(e[0],e.slice(1)))&&(r+=" "+t);else for(let n in e)e[n]&&(r+=" "+n)}else null!=e&&"boolean"!=typeof e&&(r+=" "+e);return r}let I=q("@"),L=q("~");function q(e){return new Proxy(function(e,...r){return t("",e,r)},{get:(e,r)=>r in e?e[r]:function(e,...n){return t(r,e,n)}});function t(t,r,i){return n(P(t+e+"("+F(r,i)+")"))}}function D(e,t){return Array.isArray(e)?B(T(e,t,e=>null!=e&&"boolean"!=typeof e?e:"")):"string"==typeof e?B(e):[e]}let J=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function B(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],n=[r[0]],i=[];for(;t=J.exec(e);)t[4]&&(r.shift(),i.shift()),t[3]?(i.unshift(t[3]),r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),n.push(i.reduce((e,t)=>({[t]:e}),r[0]))),r[0][t[1]]=t[2]);return n}function U(e,...t){var r,n;let i=D(e,t),l=((null==(r=i.find(e=>e.label))?void 0:r.label)||"css")+o(JSON.stringify(i));return n=(e,t)=>M(i.flatMap(r=>O(r,e,t,c.o)),l),g.set(l,n),l}let W=new Proxy(function(e,t){return G("animation",e,t)},{get:(e,t)=>t in e?e[t]:function(e,r){return G(t,e,r)}});function G(e,t,r){return{toString:()=>U({label:e,"@layer components":m({},"object"==typeof t?t:{animation:t},{animationName:""+r})})}}let Y=Symbol();function Z(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function H(e){var{presets:t=[]}=e,r=Z(e,["presets"]);let n={preflight:!1!==r.preflight&&[],darkMode:void 0,darkColor:void 0,theme:{},variants:u(r.variants),rules:u(r.rules),ignorelist:u(r.ignorelist),hash:r.hash,stringify:r.stringify||K};for(let i of u([...t,{darkMode:r.darkMode,darkColor:r.darkColor,preflight:!1!==r.preflight&&u(r.preflight),theme:r.theme,hash:r.hash,stringify:r.stringify}])){let{preflight:o,darkMode:l=n.darkMode,darkColor:s=n.darkColor,theme:a,variants:c,rules:f,ignorelist:p,hash:h=n.hash,stringify:d=n.stringify}="function"==typeof i?i(n):i;n={preflight:!1!==n.preflight&&!1!==o&&[...n.preflight,...u(o)],darkMode:l,darkColor:s,theme:m({},n.theme,a,{extend:m({},n.theme.extend,null==a?void 0:a.extend)}),variants:[...n.variants,...u(c)],rules:[...n.rules,...u(f)],ignorelist:[...n.ignorelist,...u(p)],hash:h,stringify:d}}return n}function K(e,t){return e+":"+t}function Q(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(r,n)=>({[e]:t?t(r,n):X(r,1)}):t=>e||{[t[1]]:X(t,2)}}function X(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${r} * -1)`:r}function ee(e,t,r){let n="string"==typeof t?(e,n)=>({[t]:r?r(e,n):e._}):t||(({1:e,_:t},r,n)=>({[e||n]:t}));return(t,r)=>{var i;let o=eo(e||t[1]),l=null!=(i=r.theme(o,t.$$))?i:ei(t.$$,o,r);if(null!=l)return t._=X(t,0,l),n(t,r,o)}}function et(e={},t){return(r,n)=>{let{section:i=eo(r[0]).replace("-","")+"Color"}=e,[o,l]=er(r.$$);if(!o)return;let u=n.theme(i,o)||ei(o,i,n);if(!u||"object"==typeof u)return;let{opacityVariable:s=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:a=i.replace("Color","Opacity"),property:c=i,selector:f}=e,p=n.theme(a,l||"DEFAULT")||l&&ei(l,a,n),h=t||(({_:e})=>{let t=en(c,e);return f?{[f]:t}:t});r._={value:k(u,{opacityVariable:s||void 0,opacityValue:p||void 0}),color:e=>k(u,e),opacityVariable:s||void 0,opacityValue:p||void 0};let d=h(r,n);if(!r.dark){let g=n.d(i,o,u);g&&g!==u&&(r._={value:k(g,{opacityVariable:s||void 0,opacityValue:p||"1"}),color:e=>k(g,e),opacityVariable:s||void 0,opacityValue:p||void 0},d={"&":d,[n.v("dark")]:h(r,n)})}return d}}function er(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function en(e,t){let r={};return"string"==typeof t?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function ei(e,t,r){if("["==e[0]&&"]"==e.slice(-1)&&(e=el(S(e.slice(1,-1),r.theme)),!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e))))return e.replace(/^[a-z-]+:/,"")}function eo(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function el(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",r,n="")=>el(t)+r+el(n)):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 "))}function eu(e,t,r,n,i,o){for(let l of t){let u=r.get(l);u||r.set(l,u=n(l));let s=u(e,i,o);if(s)return s}}function es(e){var t;return ec(e[0],"function"==typeof(t=e[1])?t:()=>t)}function ea(e){var t,r;return Array.isArray(e)?ec(e[0],Q(e[1],e[2])):ec(e,Q(t,r))}function ec(e,t){return ef(e,(e,r,n,i)=>{let o=r.exec(e);if(o)return o.$$=e.slice(o[0].length),o.dark=i,t(o,n)})}function ef(e,t){let r=u(e).map(ep);return(e,n,i)=>{for(let o of r){let l=t(e,o,n,i);if(l)return l}}}function ep(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function eh(e,t){return e.replace(/--(tw(?:-[\w-]+)?)\b/g,(e,r)=>"--"+t(r).replace("#",""))}function ed(e,t){let r=H(e),n=function({theme:e,darkMode:t,darkColor:r,variants:n,rules:l,hash:a,stringify:c,ignorelist:f}){let p=new Map,h=new Map,d=new Map,g=new Map,y=ef(f,(e,t)=>t.test(e));n.push(["dark",Array.isArray(t)||"class"==t?`${u(t)[1]||".dark"} &`:"string"==typeof t&&"media"!=t?t:"@media (prefers-color-scheme:dark)"]);let m="function"==typeof a?e=>a(e,o):a?o:s;return{theme:function(e){var{extend:t={}}=e,r=Z(e,["extend"]);let n={},i={get colors(){return o("colors")},theme:o,negative:()=>({}),breakpoints(e){let t={};for(let r in e)"string"==typeof e[r]&&(t["screen-"+r]=e[r]);return t}};return o;function o(e,i,u,s){if(e){var a;if({1:e,2:s}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(e)||[,e],/[.[]/.test(e)){let c=[];e.replace(/\[([^\]]+)\]|([^.[]+)/g,(e,t,r=t)=>c.push(r)),e=c.shift(),u=i,i=c.join("-")}let f=n[e]||Object.assign(Object.assign(n[e]={},l(r,e)),l(t,e));if(null==i)return f;let p=null!=(a=f[i||"DEFAULT"])?a:u;return s?k(p,{opacityValue:S(s,o)}):p}let h={};for(let d of[...Object.keys(r),...Object.keys(t)])h[d]=o(d);return h}function l(e,t){let r=e[t];return("function"==typeof r&&(r=r(i)),r&&/color|fill|stroke/i.test(t))?function e(t,r=[]){let n={};for(let i in t){let o=t[i],l=[...r,i];n[l.join("-")]=o,"DEFAULT"==i&&(l=r,n[r.join("-")]=o),"object"==typeof o&&Object.assign(n,e(o,l))}return n}(r):r}}(e),e:i,h:m,s(e,t){return c(eh(e,m),eh(t,m),this)},d(e,t,n){return null==r?void 0:r(e,t,this,n)},v(e){return p.has(e)||p.set(e,eu(e,n,h,es,this)||"&:"+e),p.get(e)},r(e,t){let r=JSON.stringify([e,t]);return d.has(r)||d.set(r,!y(e,this)&&eu(e,l,g,ea,this,t)),d.get(r)}}}(r),l=new Map,a=[],f=new Set;function p(e){let r=e.n&&n.h(e.n),i=v(r?m({},e,{n:r}):e);if(i&&!f.has(i)){f.add(i);let o=x(a,e);t.insert(i,o,e),a.splice(o,0,e)}return r}return t.resume(e=>l.set(e,e),(e,r)=>{t.insert(e,a.length,r),a.push(r),f.add(e)}),Object.defineProperties(function(e){if(!l.size)for(let t of u(r.preflight))"function"==typeof t&&(t=t(n)),t&&("string"==typeof t?E("",c.b,P(t),n,c.b,[],!1,!0):O(t,{},n,c.b)).forEach(p);e=""+e;let i=l.get(e);if(!i){let o=new Set;for(let s of C(P(e),n))o.add(s.c).add(p(s));i=[...o].filter(Boolean).join(" "),l.set(e,i).set(i,i)}return i},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:n.theme,config:r,snapshot(){let e=t.snapshot(),r=new Set(f),n=new Map(l),i=[...a];return()=>{e(),f=r,l=n,a=i}},clear(){t.clear(),f=new Set,l=new Map,a=[]},destroy(){this.clear(),t.destroy()}}))}function eg(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function ey(e=eA,t=document.documentElement){if(!t)return e;let r=new MutationObserver(i);r.observe(t,{attributeFilter:["class"],subtree:!0,childList:!0}),o(t),i([{target:t,type:""}]);let{destroy:n}=e;return e.destroy=()=>{r.disconnect(),n.call(e)},e;function i(e){for(let{type:t,target:n}of e)if("a"==t[0])o(n);else for(let i of n.querySelectorAll("[class]"))o(i);r.takeRecords()}function o(t){let r;let n=t.getAttribute("class");n&&eg(n,r=e(n))&&t.setAttribute("class",r)}}function em(e){let t=document.querySelector(e||"style[data-twind]");return t&&"STYLE"==t.tagName||((t=document.createElement("style")).dataset.twind="",document.head.prepend(t)),t}function ev(e){let t=(null==e?void 0:e.cssRules)?e:(e&&"string"!=typeof e?e:em(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,r){try{t.insertRule(e,r)}catch(n){t.insertRule(":root{}",r),/:-[mwo]/.test(e)}},resume:a}}function eb(e){let t=e&&"string"!=typeof e?e:em(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,r){t.insertBefore(document.createTextNode(e),t.childNodes[r]||null)},resume:a}}function e$(e,t){let r=e?eb():ev();return t||(r.resume=ex),r}function ew(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,e=>e.cssText):u(e)).join("")}function ex(e,t){let r=ew(this.target),n=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(n.test(r)){var i;let o;for(let l of(n.lastIndex=0,this.clear(),document.querySelectorAll("[class]")))e(l.getAttribute("class"));for(;i=n.exec(r),o&&t(r.slice(o.index+o[0].length,null==i?void 0:i.index),{p:parseInt(o[1],36),o:parseInt(o[2],36)/2,n:o[3]}),o=i;);}}let eA=new Proxy(a,{apply:(e,r,n)=>t(n[0]),get(e,r){let n=t[r];return"function"==typeof n?function(){return n.apply(t,arguments)}:n}});function ej(e={},r=e$,n){return null==t||t.destroy(),t=ey(ed(e,"function"==typeof r?r():r),n)}let ek=function e(t){return new Proxy(function(e,...r){return eO(t,"",e,r)},{get:(r,n)=>"bind"===n?e:n in r?r[n]:function(e,...r){return eO(t,n,e,r)}})}();function eO(e,t,r,n){return{toString(){let l=D(r,n),u=i(t+o(JSON.stringify([t,l])));return("function"==typeof e?e:eA)(U({[`@keyframes ${u}`]:D(r,n)})),u}}}function eS(e,t=eA){let r=t.snapshot(),n={html:eM(e,t),css:ew(t.target)};return r(),n}function eM(e,t=eA){let r="",n=0;return!function(e,t){let r=1,n=0,i="",o="",l=l=>{5==r&&"class"==o&&!1===t(n,l,i)&&(e="")};for(let u=0;u<e.length;u++){let s=e[u];1==r?"<"==s&&(r="!--"==e.substr(u+1,3)?4:3):4==r?">"==s&&"--"==e.slice(u-2,u)&&(r=1):i?s==i&&"\\"!=e[u-1]&&(l(u),r=2,i=""):'"'==s||"'"==s?(i=s,n+=1):">"==s?(l(u),r=1):r&&("="==s?(o=e.slice(n,u),r=5,n=u+1):"/"==s&&(r<5||">"==e[u+1])?(l(u),r=0):/\s/.test(s)&&(l(u),r=2,n=u+1))}}(e,(i,o,l)=>{var u;let s=e.slice(i,o),a=t(('"'==(u=l)?s.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):"'"==u?s.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):s).replace(/(&|&|&)/g,"&"));eg(s,a)&&(l=l?"":'"',r+=e.slice(n,i)+l+a+l,n=o)}),r+e.slice(n,e.length)}let eC=(e,t)=>"function"==typeof e?eE(t,e):eE(e);function eE(e={},t){let{label:r="style",base:n,props:l={},defaults:u,when:s=[]}=e,a=m({},null==t?void 0:t.defaults,u),f=o(JSON.stringify([r,null==t?void 0:t.className,n,l,a,s])),p=h("",n||"",c.c);function h(e,n,i){return R(((t?t.className.replace(/#.+$/,"~"):"")+r+e+f).replace(/[: ,()[\]]/,""),i,n&&P(n))}return Object.defineProperties(function(e){let r,n;Array.isArray(e)&&(r=!0,e=Object.fromEntries(new URLSearchParams(e[1]).entries()));let i=m({},a,e),o=r?"":(t?t(i)+" ":"")+p;for(let u in l){let c=l[u],f=i[u];if(f===Object(f)){let d="";for(let g in n="",f){let y=c[f[g]];y&&(d+="@"+g+"-"+f[g],n+=(n&&" ")+("_"==g?y:g+":("+y+")"))}n&&(o+=" "+h("--"+u+"-"+d,n,402653184))}else(n=c[f])&&(o+=" "+h("--"+u+"-"+f,n,402653184))}return s.forEach((e,t)=>{let r="";for(let l in e[0]){let u=i[l];if(u!==Object(u)&&""+u==""+e[0][l])r+=(r&&"_")+l+"-"+u;else{r="";break}}r&&(n=e[1])&&(o+=" "+h("-"+t+"--"+r,n,536870912))}),o},Object.getOwnPropertyDescriptors({className:p,defaults:a,selector:"."+i(p)}))}return e.animation=W,e.apply=I,e.arbitrary=ei,e.asArray=u,e.auto=function(e){if(document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(r=>{for(let{target:n}of r)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return a},e.autoDarkColor=function(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,e=>100*(9-~~(parseInt(e,10)/100)||.5)))},e.colorFromTheme=et,e.consume=eM,e.css=U,e.cssom=ev,e.cx=function(e,...t){return n(P(F(e,t))," ")},e.defineConfig=H,e.dom=eb,e.escape=i,e.extract=eS,e.fromMatch=Q,e.fromTheme=ee,e.getAutocompleteProvider=function(e){return e[Y]},e.getSheet=e$,e.hash=o,e.identity=s,e.injectGlobal=function(e,...t){("function"==typeof this?this:eA)(U({"@layer base":D(e,t)}))},e.inline=function(e,t={}){let{tw:r=eA,minify:n=s}="function"==typeof t?{tw:t}:t,{html:i,css:o}=eS(e,r);return i.replace("</head>",`<style data-twind>${n(o,i)}</style></head>`)},e.install=function(e,t=!0){var r;let n=H(e);return ej(m({},n,{hash:null!=(r=n.hash)?r:t}),()=>e$(!t))},e.keyframes=ek,e.match=function(e,t,r){return[e,Q(t,r)]},e.matchColor=function(e,t={},r){return[e,et(t,r)]},e.matchTheme=function(e,t,r,n){return[e,ee(t,r,n)]},e.mql=l,e.noop=a,e.normalize=el,e.observe=ey,e.parse=P,e.parseValue=er,e.setup=ej,e.shortcut=L,e.stringify=ew,e.style=eC,e.toCSS=en,e.toColorValue=k,e.tw=eA,e.twind=ed,e.tx=function(e,...t){return("function"==typeof this?this:eA)(F(e,t))},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(r,n,i){t.splice(n,0,e?`/*!${i.p.toString(36)},${(2*i.o).toString(36)}${i.n?","+i.n:""}*/${r}`:r)},resume:a}},e.withAutocomplete=function(e){return e},e}({});//# sourceMappingURL=core.global.js.map |
{ | ||
"name": "@twind/core", | ||
"version": "1.0.1", | ||
"version": "1.0.2-canary-7a0c9a6", | ||
"description": "The core engine without any presets.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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 not supported yet
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 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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2254526
12730
1