UNPKG

@getalby/lightning-wallet-connect

Version:

Web components to connect to a lightning wallet and power a website with WebLN

1 lines 94.1 kB
var e=require("lit"),t=require("lit/decorators.js"),n=require("zustand/vanilla"),o=require("@getalby/sdk");function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function l(e,t){return t||(t=e.slice(0)),e.raw=t,e}function c(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}"function"==typeof SuppressedError&&SuppressedError;var s=!1;function d(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}var p=/*#__PURE__*/function(){function e(e){this._config=e}var t=e.prototype;return t.init=function(){try{if(!window.webln)throw new Error("window.webln does not exist");return Promise.resolve(window.webln.enable()).then(function(){})}catch(e){return Promise.reject(e)}},t.getBalance=function(){try{var e,t=d(function(){if(!window.webln)throw new Error("webln not found");return Promise.resolve(null==window.webln.getBalance?void 0:window.webln.getBalance()).then(function(t){return e=1,null==t?void 0:t.balance})},function(e){console.error("Failed to get balance",e)});return Promise.resolve(t&&t.then?t.then(function(t){return e?t:void 0}):e?t:void 0)}catch(e){return Promise.reject(e)}},t.getAlias=function(){try{return Promise.resolve(d(function(){if(!window.webln)throw new Error("webln not found");return Promise.resolve(window.webln.getInfo()).then(function(e){return e.node.alias})},function(e){console.error("Failed to get alias",e)}))}catch(e){return Promise.reject(e)}},e}(),f=/*#__PURE__*/function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.init=function(){try{var t=this;return Promise.resolve(new Promise(function(e){return setTimeout(e,1e3)})).then(function(){return Promise.resolve(e.prototype.init.call(t)).then(function(){})})}catch(e){return Promise.reject(e)}},t}(p),u=/*#__PURE__*/function(e){function t(t){var n;if(n=e.call(this,t)||this,!t.nwcUrl)throw new Error("no nwc URL provided");var r=new o.webln.NostrWebLNProvider({nostrWalletConnectUrl:t.nwcUrl});return window.webln=r,n}return i(t,e),t}(p),h={"extension.generic":f,"nwc.alby":u,"nwc.generic":u};function g(e){var t=new Event(e,{bubbles:!0,composed:!0});window.dispatchEvent(t)}var m,b=n.createStore(function(e){return{connector:void 0,config:void 0,setConfig:function(t){e({config:t})},setConnector:function(t){e({connector:t})}}}),C=n.createStore(function(e){return{connected:!1,connecting:!1,alias:void 0,balance:void 0,connectorName:void 0,connect:function(t){try{var n=function(){!function(e){window.localStorage.setItem("lwc:config",JSON.stringify(e))}(t)};g("lwc:connecting"),e({connecting:!0});var o=function(n,o){try{var r=(i=new h[t.connectorType](t),Promise.resolve(i.init()).then(function(){return Promise.resolve(i.getBalance()).then(function(n){return Promise.resolve(i.getAlias()).then(function(o){b.getState().setConfig(t),b.getState().setConnector(i),e({connected:!0,connecting:!1,balance:n,alias:o,connectorName:t.connectorName}),g("lwc:connected")})})}))}catch(e){return o(e)}var i;return r&&r.then?r.then(void 0,o):r}(0,function(t){console.error(t),e({connecting:!1})});return Promise.resolve(o&&o.then?o.then(n):n())}catch(e){return Promise.reject(e)}},disconnect:function(){b.getState().setConfig(void 0),b.getState().setConnector(void 0),e({connected:!1,alias:void 0,balance:void 0,connectorName:void 0}),window.localStorage.removeItem("lwc:config"),g("lwc:disconnected")},setAlias:function(t){e({alias:t})},setBalance:function(t){e({balance:t})},getConnectorName:function(){var e;return null==(e=b.getState().config)?void 0:e.connectorName}}});!function(){var e=window.localStorage.getItem("lwc:config");if(e){var t=JSON.parse(e);C.getState().connect(t)}}();var w=/*#__PURE__*/function(e){function t(){var t;return(t=e.call(this)||this)._connected=!1,t._connecting=!1,t._connectorName=void 0,t._alias=void 0,t._balance=void 0,function(){if(!s){s=!0;for(var e=0,t=["Inter","Roboto Mono"];e<t.length;e++){var n=t[e],o=document.createElement("link");o.href="https://fonts.googleapis.com/css2?family="+n+":wght@400;500;600;700&display=swap",o.rel="stylesheet",document.head.appendChild(o)}}}(),t._connected=C.getState().connected,t._connecting=C.getState().connecting,t._alias=C.getState().alias,t._balance=C.getState().balance,t._connectorName=C.getState().connectorName,C.subscribe(function(e){t._connected=e.connected,t._connecting=e.connecting,t._alias=e.alias,t._balance=e.balance,t._connectorName=e.connectorName}),t}return i(t,e),t.prototype.connectedCallback=function(){e.prototype.connectedCallback.call(this)},t}(e.LitElement);function y(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function x(e,t=","){return e.map(y).join(t)}w.styles=e.css(m||(m=l(["\n :host {\n all: initial;\n font-variant-numeric: slashed-zero;\n }\n "]))),c([t.state()],w.prototype,"_connected",void 0),c([t.state()],w.prototype,"_connecting",void 0),c([t.state()],w.prototype,"_connectorName",void 0),c([t.state()],w.prototype,"_alias",void 0),c([t.state()],w.prototype,"_balance",void 0);let v="undefined"!=typeof CSS&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function L(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 k(e,t="@media "){return t+$(e).map(e=>("string"==typeof e&&(e={min:e}),e.raw||Object.keys(e).map(t=>`(${t}-width:${e[t]})`).join(" and "))).join(",")}function $(e=[]){return Array.isArray(e)?e:null==e?[]:[e]}function S(e){return e}function _(){}let M={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function F(e){return e.match(/[-=:;]/g)?.length||0}function O(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(F(e),15)<<18}let j=["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 E({n:e,i:t,v:n=[]},o,r,i){e&&(e=y({n:e,i:t,v:n})),i=[...$(i)];for(let e of n){let t=o.theme("screens",e);for(let n of $(t&&k(t)||o.v(e)))i.push(n),r|=t?67108864|O(n):"dark"==e?1073741824:"@"==n[0]?O(n):1<<~(/:([a-z-]+)/.test(n)&&~j.indexOf(RegExp.$1.slice(2,7))||-18)}return{n:e,p:r,r:i,i:t}}let z=new Map;function A(e){if(e.d){let t=[],n=W(e.r.reduce((e,n)=>"@"==n[0]?(t.push(n),e):n?W(e,e=>W(n,t=>{let n=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(t);if(n){let o=e.indexOf(n[1]);return~o?e.slice(0,o)+n[0]+e.slice(o+n[1].length):T(e,t)}return T(t,e)})):e,"&"),t=>T(t,e.n?"."+v(e.n):""));return n&&t.push(n.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((e,t)=>t+"{"+e+"}",e.d)}}function W(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(e,n,o)=>t(n)+o)}function T(e,t){return e.replace(/&/g,t)}let D=new Intl.Collator("en",{numeric:!0});function R(e,t){for(var n=0,o=e.length;n<o;){let r=o+n>>1;0>=Z(e[r],t)?n=r+1:o=r}return o}function Z(e,t){let n=e.p&M.o;return n!=(t.p&M.o)||n!=M.b&&n!=M.o?e.p-t.p||e.o-t.o||D.compare(N(e.n),N(t.n))||D.compare(B(e.n),B(t.n)):0}function N(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function B(e){return(e||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function U(e,t){return Math.round(parseInt(e,16)*t)}function P(e,t={}){if("function"==typeof e)return e(t);let{opacityValue:n="1",opacityVariable:o}=t,r=o?`var(${o})`:n;if(e.includes("<alpha-value>"))return e.replace("<alpha-value>",r);if("#"==e[0]&&(4==e.length||7==e.length)){let t=(e.length-1)/3,n=[17,1,.062272][t-1];return`rgba(${[U(e.substr(1,t),n),U(e.substr(1+t,t),n),U(e.substr(1+2*t,t),n),r]})`}return"1"==r?e:"0"==r?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${r})`)}function V(e,t,n,o,r=[]){return function e(t,{n:n,p:o,r:r=[],i:i},a){let l=[],c="",s=0,d=0;for(let u in t||{}){var p,f;let h=t[u];if("@"==u[0]){if(!h)continue;if("a"==u[1]){l.push(...q(n,o,Q(""+h),a,o,r,i,!0));continue}if("l"==u[1]){for(let t of $(h))l.push(...e(t,{n:n,p:(p=M[u[7]],o&~M.o|p),r:"d"==u[7]?[]:r,i:i},a));continue}if("i"==u[1]){l.push(...$(h).map(e=>({p:-1,o:0,r:[],d:u+" "+e})));continue}if("k"==u[1]){l.push({p:M.d,o:0,r:[u],d:e(h,{p:M.d},a).map(A).join("")});continue}if("f"==u[1]){l.push(...$(h).map(t=>({p:M.d,o:0,r:[u],d:e(t,{p:M.d},a).map(A).join("")})));continue}}if("object"!=typeof h||Array.isArray(h))"label"==u&&h?n=h+L(JSON.stringify([o,i,t])):(h||0===h)&&(u=u.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),d+=1,s=Math.max(s,"-"==(f=u)[0]?0:F(f)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(f)?+!!RegExp.$1||-!!RegExp.$2:0)+1),c+=(c?";":"")+$(h).map(e=>a.s(u,H(""+e,a.theme)+(i?" !important":""))).join(";"));else if("@"==u[0]||u.includes("&")){let t=o;"@"==u[0]&&(u=u.replace(/\bscreen\(([^)]+)\)/g,(e,n)=>{let o=a.theme("screens",n);return o?(t|=67108864,k(o,"")):e}),t|=O(u)),l.push(...e(h,{n:n,p:t,r:[...r,u],i:i},a))}else l.push(...e(h,{p:o,r:[...r,u]},a))}return l.unshift({n:n,p:o,o:Math.max(0,15-d)+1.5*Math.min(s||15,15),r:r,d:c}),l.sort(Z)}(e,E(t,n,o,r),n)}function H(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(e,n,o,r,i="")=>{let a=t(o,i);return"function"==typeof a&&/color|fill|stroke/i.test(o)?P(a):""+$(a).filter(e=>Object(e)!==e)})}function I(e,t){let n,o=[];for(let r of e)r.d&&r.n?n?.p==r.p&&""+n.r==""+r.r?(n.c=[n.c,r.c].filter(Boolean).join(" "),n.d=n.d+";"+r.d):o.push(n={...r,n:r.n&&t}):o.push({...r,n:r.n&&t});return o}function G(e,t,n=M.u,o,r){let i=[];for(let a of e)for(let e of function(e,t,n,o,r){let i=function(e,t){let n=z.get(e.n);return n?n(e,t):t.r(e.n,"dark"==e.v[0])}(e={...e,i:e.i||r},t);return i?"string"==typeof i?(({r:o,p:n}=E(e,t,n,o)),I(G(Q(i),t,n,o,e.i),e.n)):Array.isArray(i)?i.map(e=>{var t,r;return{o:0,...e,r:[...$(o),...$(e.r)],p:(t=n,r=e.p??n,t&~M.o|r)}}):V(i,e,t,n,o):[{c:y(e),p:0,o:0,r:[]}]}(a,t,n,o,r))i.splice(R(i,e),0,e);return i}function q(e,t,n,o,r,i,a,l){return I((l?n.flatMap(e=>G([e],o,r,i,a)):G(n,o,r,i,a)).map(e=>e.p&M.o&&(e.n||t==M.b)?{...e,p:e.p&~M.o|t,o:0}:e),e)}function Y(e,t,n,o){return z.set(e,(e,r)=>{let{n:i,p:a,r:l,i:c}=E(e,r,t);return n&&q(i,t,n,r,a,l,c,o)}),e}function J(e,t,n){if("("!=e[e.length-1]){let n=[],o=!1,r=!1,i="";for(let t of e)if("("!=t&&!/[~@]$/.test(t)){if("!"==t[0]&&(t=t.slice(1),o=!o),t.endsWith(":")){n["dark:"==t?"unshift":"push"](t.slice(0,-1));continue}"-"==t[0]&&(t=t.slice(1),r=!r),t.endsWith("-")&&(t=t.slice(0,-1)),t&&"&"!=t&&(i+=(i&&"-")+t)}i&&(r&&(i="-"+i),t[0].push({n:i,v:n.filter(X),i:o}))}}function X(e,t,n){return n.indexOf(e)==t}let K=new Map;function Q(e){let t=K.get(e);if(!t){let n=[],o=[[]],r=0,i=0,a=null,l=0,c=(t,i=0)=>{r!=l&&(n.push(e.slice(r,l+i)),t&&J(n,o)),r=l+1};for(;l<e.length;l++){let t=e[l];if(i)"\\"!=e[l-1]&&(i+=+("["==t)||-("]"==t));else if("["==t)i+=1;else if(a)"\\"!=e[l-1]&&a.test(e.slice(l))&&(a=null,r=l+RegExp.lastMatch.length);else if("/"!=t||"\\"==e[l-1]||"*"!=e[l+1]&&"/"!=e[l+1])if("("==t)c(),n.push(t);else if(":"==t)":"!=e[l+1]&&c(!1,1);else if(/[\s,)]/.test(t)){c(!0);let e=n.lastIndexOf("(");if(")"==t){let t=n[e-1];if(/[~@]$/.test(t)){let r=o.shift();n.length=e,J([...n,"#"],o);let{v:i}=o[0].pop();for(let e of r)e.v.splice(+("dark"==e.v[0])-+("dark"==i[0]),i.length);J([...n,Y(t.length>1?t.slice(0,-1)+L(JSON.stringify([t,r])):t+"("+x(r)+")",M.a,r,/@$/.test(t))],o)}e=n.lastIndexOf("(",e-1)}n.length=e+1}else/[~@]/.test(t)&&"("==e[l+1]&&o.unshift([]);else a="*"==e[l+1]?/^\*\//:/^[\r\n]/}c(!0),K.set(e,t=o[0])}return t}function ee(e,t,n){return[e,te(t,n)]}function te(e,t){return"function"==typeof e?e:"string"==typeof e&&/^[\w-]+$/.test(e)?(n,o)=>({[e]:t?t(n,o):ne(n,1)}):t=>e||{[t[1]]:ne(t,2)}}function ne(e,t,n=e.slice(t).find(Boolean)||e.$$||e.input){return"-"==e.input[0]?`calc(${n} * -1)`:n}function oe(e,t,n,o){return[e,re(t,n,o)]}function re(e,t,n){let o="string"==typeof t?(e,o)=>({[t]:n?n(e,o):e._}):t||(({1:e,_:t},n,o)=>({[e||o]:t}));return(t,n)=>{let r=se(e||t[1]),i=n.theme(r,t.$$)??ce(t.$$,r,n);if(null!=i)return t._=ne(t,0,i),o(t,n,r)}}function ie(e,t={},n){return[e,ae(t,n)]}function ae(e={},t){return(n,o)=>{let{section:r=se(n[0]).replace("-","")+"Color"}=e,[i,a]=(n.$$.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1);if(!i)return;let l=o.theme(r,i)||ce(i,r,o);if(!l||"object"==typeof l)return;let{opacityVariable:c=`--tw-${n[0].replace(/-$/,"")}-opacity`,opacitySection:s=r.replace("Color","Opacity"),property:d=r,selector:p}=e,f=o.theme(s,a||"DEFAULT")||a&&ce(a,s,o),u=t||(({_:e})=>{let t=le(d,e);return p?{[p]:t}:t});n._={value:P(l,{opacityVariable:c||void 0,opacityValue:f||void 0}),color:e=>P(l,e),opacityVariable:c||void 0,opacityValue:f||void 0};let h=u(n,o);if(!n.dark){let e=o.d(r,i,l);e&&e!==l&&(n._={value:P(e,{opacityVariable:c||void 0,opacityValue:f||"1"}),color:t=>P(e,t),opacityVariable:c||void 0,opacityValue:f||void 0},h={"&":h,[o.v("dark")]:u(n,o)})}return h}}function le(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 ce(e,t,n){if("["==e[0]&&"]"==e.slice(-1)){if(e=de(H(e.slice(1,-1),n.theme)),!t)return e;if(!(/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 se(e){return e.replace(/-./g,e=>e[1].toUpperCase())}function de(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,t="",n,o="")=>de(t)+n+de(o)):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 pe({presets:e=[],...t}){let n={darkMode:void 0,darkColor:void 0,preflight:!1!==t.preflight&&[],theme:{},variants:$(t.variants),rules:$(t.rules),ignorelist:$(t.ignorelist),hash:void 0,stringify:(e,t)=>e+":"+t,finalize:[]};for(let o of $([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:!1!==t.preflight&&$(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:e,darkMode:t=n.darkMode,darkColor:r=n.darkColor,theme:i,variants:a,rules:l,ignorelist:c,hash:s=n.hash,stringify:d=n.stringify,finalize:p}="function"==typeof o?o(n):o;n={preflight:!1!==n.preflight&&!1!==e&&[...n.preflight,...$(e)],darkMode:t,darkColor:r,theme:{...n.theme,...i,extend:{...n.theme.extend,...i?.extend}},variants:[...n.variants,...$(a)],rules:[...n.rules,...$(l)],ignorelist:[...n.ignorelist,...$(c)],hash:s,stringify:d,finalize:[...n.finalize,...$(p)]}}return n}function fe(e,t,n,o,r,i){for(let a of t){let t=n.get(a);t||n.set(a,t=o(a));let l=t(e,r,i);if(l)return l}}function ue(e){var t;return ge(e[0],"function"==typeof(t=e[1])?t:()=>t)}function he(e){return Array.isArray(e)?ge(e[0],te(e[1],e[2])):ge(e,te(void 0,void 0))}function ge(e,t){return me(e,(e,n,o,r)=>{let i=n.exec(e);if(i)return i.$$=e.slice(i[0].length),i.dark=r,t(i,o)})}function me(e,t){let n=$(e).map(be);return(e,o,r)=>{for(let i of n){let n=t(e,i,o,r);if(n)return n}}}function be(e){return"string"==typeof e?RegExp("^"+e+(e.includes("$")||"-"==e.slice(-1)?"":"$")):e}function Ce(e){let t=e?.cssRules?e:(e&&"string"!=typeof e?e:function(e){let t=document.querySelector(e||'style[data-twind=""]');return t&&"STYLE"==t.tagName||(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}(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(){t.ownerNode?.remove()},insert(e,n){try{t.insertRule(e,n)}catch(e){t.insertRule(":root{}",n)}},resume:_}}let we={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",.../* #__PURE__ */ve(4,"rem",4,.5,.5),.../* #__PURE__ */ve(12,"rem",4,5),14:"3.5rem",.../* #__PURE__ */ve(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:/* #__PURE__ */Le("blur"),backdropBrightness:/* #__PURE__ */Le("brightness"),backdropContrast:/* #__PURE__ */Le("contrast"),backdropGrayscale:/* #__PURE__ */Le("grayscale"),backdropHueRotate:/* #__PURE__ */Le("hueRotate"),backdropInvert:/* #__PURE__ */Le("invert"),backdropOpacity:/* #__PURE__ */Le("opacity"),backdropSaturate:/* #__PURE__ */Le("saturate"),backdropSepia:/* #__PURE__ */Le("sepia"),backgroundColor:/* #__PURE__ */Le("colors"),backgroundImage:{none:"none"},backgroundOpacity:/* #__PURE__ */Le("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{.../* #__PURE__ */ve(200,"",100,0,50),.../* #__PURE__ */ve(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:/* #__PURE__ */Le("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:/* #__PURE__ */Le("spacing"),borderWidth:{DEFAULT:"1px",.../* #__PURE__ */xe(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:Le("colors"),caretColor:/* #__PURE__ */Le("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{.../* #__PURE__ */ve(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:/* #__PURE__ */Le("borderColor"),divideOpacity:/* #__PURE__ */Le("borderOpacity"),divideWidth:/* #__PURE__ */Le("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...ye(2,6),...ye(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:/* #__PURE__ */Le("spacing"),gradientColorStops:/* #__PURE__ */Le("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...ye(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...ye(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{.../* #__PURE__ */ve(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{.../* #__PURE__ */ve(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:/* #__PURE__ */Le("spacing"),placeholderColor:/* #__PURE__ */Le("colors"),placeholderOpacity:/* #__PURE__ */Le("opacity"),outlineColor:/* #__PURE__ */Le("colors"),outlineOffset:/* #__PURE__ */xe(8,"px"),outlineWidth:/* #__PURE__ */xe(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:/* #__PURE__ */Le("colors"),ringOffsetWidth:/* #__PURE__ */xe(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",.../* #__PURE__ */xe(8,"px")},rotate:{.../* #__PURE__ */xe(2,"deg"),.../* #__PURE__ */xe(12,"deg",3),.../* #__PURE__ */xe(180,"deg",45)},saturate:/* #__PURE__ */ve(200,"",100,0,50),scale:{.../* #__PURE__ */ve(150,"",100,0,50),.../* #__PURE__ */ve(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:/* #__PURE__ */Le("spacing"),scrollPadding:/* #__PURE__ */Le("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{.../* #__PURE__ */xe(2,"deg"),.../* #__PURE__ */xe(12,"deg",3)},space:/* #__PURE__ */Le("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:/* #__PURE__ */ve(2),textColor:/* #__PURE__ */Le("colors"),textDecorationColor:/* #__PURE__ */Le("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",.../* #__PURE__ */xe(8,"px")},textUnderlineOffset:{auto:"auto",.../* #__PURE__ */xe(8,"px")},textIndent:/* #__PURE__ */Le("spacing"),textOpacity:/* #__PURE__ */Le("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:/* #__PURE__ */Le("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:e})=>({...e("spacing"),...ye(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{.../* #__PURE__ */ve(50,"",1,0,10),auto:"auto"}};function ye(e,t){let n={};do{for(var o=1;o<e;o++)n[`${o}/${e}`]=Number((o/e*100).toFixed(6))+"%"}while(++e<=t);return n}function xe(e,t,n=0){let o={};for(;n<=e;n=2*n||1)o[n]=n+t;return o}function ve(e,t="",n=1,o=0,r=1,i={}){for(;o<=e;o+=r)i[o]=o/n+t;return i}function Le(e){return({theme:t})=>t(e)}let ke={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${we.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${we.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}},$e=[ee("\\[([-\\w]+):(.+)]",({1:e,2:t},n)=>({"@layer overrides":{"&":{[e]:ce(`[${t}]`,"",n)}}})),ee("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),oe("aspect-","aspectRatio"),ee("container",(e,{theme:t})=>{let{screens:n=t("screens"),center:o,padding:r}=t("container"),i={width:"100%",marginRight:o&&"auto",marginLeft:o&&"auto",...a("xs")};for(let e in n){let t=n[e];"string"==typeof t&&(i[k(t)]={"&":{maxWidth:t,...a(e)}})}return i;function a(e){let t=r&&("string"==typeof r?r:r[e]||r.DEFAULT);if(t)return{paddingRight:t,paddingLeft:t}}}),oe("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),ee("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),ee("box-(border|content)","boxSizing",({1:e})=>e+"-box"),ee("hidden",{display:"none"}),ee("table-(auto|fixed)","tableLayout"),ee(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",ee("isolate","isolation"),ee("object-(contain|cover|fill|none|scale-down)","objectFit"),oe("object-","objectPosition"),ee("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Se),ee("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),ee("(static|fixed|absolute|relative|sticky)","position"),oe("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:"-x"!=e&&t,right:"-y"!=e&&t,bottom:"-x"!=e&&t,left:"-y"!=e&&t})),oe("-?(top|bottom|left|right)(?:$|-)","inset"),ee("(visible|collapse)","visibility"),ee("invisible",{visibility:"hidden"}),oe("-?z-","zIndex"),ee("flex-((row|col)(-reverse)?)","flexDirection",_e),ee("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),oe("(flex-(?:grow|shrink))(?:$|-)"),oe("(flex)-"),oe("grow(?:$|-)","flexGrow"),oe("shrink(?:$|-)","flexShrink"),oe("basis-","flexBasis"),oe("-?(order)-"),"-?(order)-(\\d+)",oe("grid-cols-","gridTemplateColumns"),ee("grid-cols-(\\d+)","gridTemplateColumns",De),oe("col-","gridColumn"),ee("col-(span)-(\\d+)","gridColumn",Te),oe("col-start-","gridColumnStart"),ee("col-start-(auto|\\d+)","gridColumnStart"),oe("col-end-","gridColumnEnd"),ee("col-end-(auto|\\d+)","gridColumnEnd"),oe("grid-rows-","gridTemplateRows"),ee("grid-rows-(\\d+)","gridTemplateRows",De),oe("row-","gridRow"),ee("row-(span)-(\\d+)","gridRow",Te),oe("row-start-","gridRowStart"),ee("row-start-(auto|\\d+)","gridRowStart"),oe("row-end-","gridRowEnd"),ee("row-end-(auto|\\d+)","gridRowEnd"),ee("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>Se(_e(e))),ee("grid-flow-(dense)","gridAutoFlow"),oe("auto-cols-","gridAutoColumns"),oe("auto-rows-","gridAutoRows"),oe("gap-x(?:$|-)","gap","columnGap"),oe("gap-y(?:$|-)","gap","rowGap"),oe("gap(?:$|-)","gap"),"(justify-(?:items|self))-",ee("justify-","justifyContent",Oe),ee("(content|items|self)-",e=>({["align-"+e[1]]:Oe(e)})),ee("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),oe("p([xytrbl])?(?:$|-)","padding",je("padding")),oe("-?m([xytrbl])?(?:$|-)","margin",je("margin")),oe("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),ee("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),oe("w-","width"),oe("min-w-","minWidth"),oe("max-w-","maxWidth"),oe("h-","height"),oe("min-h-","minHeight"),oe("max-h-","maxHeight"),oe("font-","fontWeight"),oe("font-","fontFamily",({_:e})=>"string"==typeof(e=$(e))[1]?{fontFamily:Fe(e)}:{fontFamily:Fe(e[0]),...e[1]}),ee("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),ee("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),ee("italic","fontStyle"),ee("not-italic",{fontStyle:"normal"}),ee("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:n})=>"normal"==t?{fontVariantNumeric:"normal"}:{["--tw-"+(n?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Re({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),oe("tracking-","letterSpacing"),oe("leading-","lineHeight"),ee("list-(inside|outside)","listStylePosition"),oe("list-","listStyleType"),ee("list-","listStyleType"),oe("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),ie("placeholder-",{property:"color",selector:"&::placeholder"}),ee("text-(left|center|right|justify|start|end)","textAlign"),ee("text-(ellipsis|clip)","textOverflow"),oe("text-opacity-","textOpacity","--tw-text-opacity"),ie("text-",{property:"color"}),oe("text-","fontSize",({_:e})=>"string"==typeof e?{fontSize:e}:{fontSize:e[0],..."string"==typeof e[1]?{lineHeight:e[1]}:e[1]}),oe("indent-","textIndent"),ee("(overline|underline|line-through)","textDecorationLine"),ee("no-underline",{textDecorationLine:"none"}),oe("underline-offset-","textUnderlineOffset"),ie("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),oe("decoration-","textDecorationThickness"),ee("decoration-","textDecorationStyle"),ee("(uppercase|lowercase|capitalize)","textTransform"),ee("normal-case",{textTransform:"none"}),ee("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),ee("align-","verticalAlign"),ee("whitespace-","whiteSpace"),ee("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),ee("break-words",{overflowWrap:"break-word"}),ee("break-all",{wordBreak:"break-all"}),ee("break-keep",{wordBreak:"keep-all"}),ie("caret-",{opacityVariable:!1,opacitySection:"opacity"}),ie("accent-",{opacityVariable:!1,opacitySection:"opacity"}),ee("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${Me(e," ")},var(--tw-gradient-stops))`),ie("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),ie("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),ie("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),ee("bg-(fixed|local|scroll)","backgroundAttachment"),ee("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),ee(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),ee("bg-blend-","backgroundBlendMode"),ee("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+("text"==e?"":"-box")),oe("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),ie("bg-",{section:"backgroundColor"}),oe("bg-","backgroundImage"),oe("bg-","backgroundPosition"),ee("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Se),oe("bg-","backgroundSize"),oe("rounded(?:$|-)","borderRadius"),oe("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let n={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${Me(n[0])}-radius`]:t,[`border-${Me(n[1])}-radius`]:t}}),ee("border-(collapse|separate)","borderCollapse"),oe("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),ee("border-(solid|dashed|dotted|double|none)","borderStyle"),oe("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...Re({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),ie("border-([xytrbl])-",{section:"borderColor"},je("border","Color")),ie("border-"),oe("border-([xytrbl])(?:$|-)","borderWidth",je("border","Width")),oe("border(?:$|-)","borderWidth"),oe("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),ee("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),ee("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),oe("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let n={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${Me(n[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${Me(n[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),ie("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),oe("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),ie("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),oe("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),ee("ring-inset",{"--tw-ring-inset":"inset"}),ie("ring-",{property:"--tw-ring-color"}),oe("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...Re({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":P(t("ringOffsetColor","","#fff")),"--tw-ring-color":P(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ie("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),oe("shadow(?:$|-)","boxShadow",({_:e})=>({...Re({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Fe(e),"--tw-shadow-colored":Fe(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),oe("(opacity)-"),ee("mix-blend-","mixBlendMode"),...Ee(),...Ee("backdrop-"),oe("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:Fe(e),transitionTimingFunction:"none"==e._?void 0:Fe(t("transitionTimingFunction","")),transitionDuration:"none"==e._?void 0:Fe(t("transitionDuration",""))})),oe("duration(?:$|-)","transitionDuration","transitionDuration",Fe),oe("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Fe),oe("delay(?:$|-)","transitionDelay","transitionDelay",Fe),oe("animate(?:$|-)","animation",(e,{theme:t,h:n,e:o})=>{let r=Fe(e),i=r.split(" "),a=t("keyframes",i[0]);return a?{["@keyframes "+(i[0]=o(n(i[0])))]:a,animation:i.join(" ")}:{animation:r}}),"(transform)-(none)",ee("transform",Ae),ee("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":We("gpu"==e)})),oe("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...Ae()})),oe("-?(rotate)-","rotate",ze),oe("-?(translate-[xy])-","translate",ze),oe("-?(skew-[xy])-","skew",ze),ee("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Se),"(appearance)-",oe("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",oe("(cursor)-"),"(cursor)-",ee("snap-(none)","scroll-snap-type"),ee("snap-(x|y|both)",({1:e})=>({...Re({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),ee("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),ee("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),ee("snap-(normal|always)","scroll-snap-stop"),ee("scroll-(auto|smooth)","scroll-behavior"),oe("scroll-p([xytrbl])?(?:$|-)","padding",je("scroll-padding")),oe("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",je("scroll-margin")),ee("touch-(auto|none|manipulation)","touch-action"),ee("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:n})=>({...Re({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":n?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),ee("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),ee("outline",{outlineStyle:"solid"}),ee("outline-(dashed|dotted|double)","outlineStyle"),oe("-?(outline-offset)-"),ie("outline-",{opacityVariable:!1,opacitySection:"opacity"}),oe("outline-","outlineWidth"),"(pointer-events)-",oe("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"}[e]||e||"both")],ee("select-(none|text|all|auto)","userSelect"),ie("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),ie("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),oe("stroke-","strokeWidth"),ee("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),ee("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Se(e){return("string"==typeof e?e:e[1]).replace(/-/g," ").trim()}function _e(e){return("string"==typeof e?e:e[1]).replace("col","column")}function Me(e,t="-"){let n=[];for(let t of e)n.push({t:"top",r:"right",b:"bottom",l:"left"}[t]);return n.join(t)}function Fe(e){return e&&""+(e._||e)}function Oe({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function je(e,t=""){return({1:n,_:o})=>{let r={x:"lr",y:"tb"}[n]||n+n;return r?{...le(e+"-"+Me(r[0])+t,o),...le(e+"-"+Me(r[1])+t,o)}:le(e+t,o)}}function Ee(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),n={};for(let o of t)n[`--tw-${e}${o}`]="var(--tw-empty,/*!*/ /*!*/)";return n={...Re(n),[`${e}filter`]:t.map(t=>`var(--tw-${e}${t})`).join(" ")},[`(${e}filter)-(none)`,ee(`${e}filter`,n),...t.map(t=>oe(`${"h"==t[0]?"-?":""}(${e}${t})(?:$|-)`,t,({1:e,_:o})=>({[`--tw-${e}`]:$(o).map(e=>`${t}(${e})`).join(" "),...n})))]}function ze({1:e,_:t}){return{["--tw-"+e]:t,...Ae()}}function Ae(){return{...Re({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":We()}),transform:"var(--tw-transform)"}}function We(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Te({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function De({1:e}){return`repeat(${e},minmax(0,1fr))`}function Re(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}let Ze=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},n)=>t&&`&[${e}-${n.theme(e,t)||ce(t,"",n)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:n,5:o="",6:r=t},{e:i,h:a,v:l})=>{let c=de(o)||("["==n[0]?n:l(n.slice(1)));return`${(c.includes("&")?c:"&"+c).replace(/&/g,`:merge(.${i(a(e+r))})`)}${"p"==e[0]?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&(e=t.theme("supports",e)||ce(e,"",t)),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&(e=t.theme("screens",e)||ce(e,"",t)),"string"==typeof e)return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&(e=ce(e,"",t)),e&&`@media (min-width:${e})`)],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&de(e).replace(/[}]+$/,"").split("{")]],Ne={__proto__:null,slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"}};function Be({disablePreflight:e}={}){return function({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:ke,theme:{...we,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:Ze,rules:$e,finalize:e=>e.n&&e.d&&e.r.some(e=>/^&::(before|after)$/.test(e))&&!/(^|;)content:/.test(e.d)?{...e,d:"content:var(--tw-content);"+e.d}:e}}({colors:Ne,disablePreflight:e})}let Ue="undefined"!=typeof ShadowRoot&&("undefined"==typeof ShadyCSS||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Pe(e){return e.shadowRoot||e.attachShadow({mode:"open"})}var Ve,He=function(){return function(e,t=!0){let n=function(){if(Ue)try{let e=Ce(new CSSStyleSheet);return e.connect=t=>{let n=Pe(t);n.adoptedStyleSheets=[...n.adoptedStyleSheets,e.target]},e.disconnect=_,e}catch{}let e=document.createElement("style");e.media="not all",document.head.prepend(e);let t=[Ce(e)],n=new WeakMap;return{get target(){return t[0].target},snapshot(){let e=t.map(e=>e.snapshot());return()=>e.forEach(e=>e())},clear(){t.forEach(e=>e.clear())},destroy(){t.forEach(e=>e.destroy())},insert(e,n,o){t[0].insert(e,n,o);let r=this.target.cssRules[n];t.forEach((e,t)=>t&&e.target.insertRule(r.cssText,n))},resume:(e,n)=>t[0].resume(e,n),connect(e){let o=document.createElement("style");Pe(e).appendChild(o);let r=Ce(o),{cssRules:i}=this.target;for(let e=0;e<i.length;e++)r.target.insertRule(i[e].cssText,e);t.push(r),n.set(e,r)},disconnect(e){let o=t.indexOf(n.get(e));o>=0&&t.splice(o,1)}}}(),o=function(e,t){let n=pe(e),o=function({theme:e,darkMode:t,darkColor:n=_,variants:o,rules:r,hash: