@unocss/runtime 66.5.5 → 66.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/full.global.js +1 -1
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/preset-wind4.global.js +3 -3
- package/uno.global.js +1 -1
package/uno.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var _f=Object.defineProperty;var Lf=(e,t)=>{for(var r in t)_f(e,r,{get:t[r],enumerable:!0})};var Xe="default",Dt="preflights",Wf="shortcuts",Uf="imports",Vo={[Uf]:-200,[Dt]:-100,[Wf]:-10,[Xe]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Bf(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Bf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(e){return Array.from(new Set(e))}function wn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function F(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Gt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Ht=J;function Mo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var If=/[\w\u00A0-\uFFFF%-?]/;function Fo(e=""){return If.test(e)}function _o(e){return typeof e=="function"?{match:e}:e}function kn(e){return e.length===3}function qt(e){return e!=null}function Lo(){}var Yt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Xt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function Qe(e){return F(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Wo(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Qe(t)):[e]:[Qe(e)]}function Df(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}var Sn="__virtual_key__";function Le(e){return e==null?"":Df(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==Sn?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function Zt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Cn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Zt(n)&&Zt(o)&&Object.keys(o).forEach(s=>{Zt(n[s])&&Zt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Cn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Je(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Je(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}return e}function Uo(e){return F(e[0])}function Bo(e){return F(e[0])}var Jt={};function Nf(e=["-",":"]){let t=e.join("|");return Jt[t]||(Jt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Jt[t].lastIndex=0,Jt[t]}function Kf(e,t=["-",":"],r=5){let n=Nf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let h=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let k of[...g.matchAll(/\S+/g)]){let C=h+k.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:k[0].length,className:k[0]}];for(let b of v)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,d]of a)c+=e.slice(l,u),c+=d.items.map(g=>g.className).join(" "),l=u+d.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Io(e,t=["-",":"],r=5){let n=Kf(e,t,r);return typeof e=="string"?n.expanded:e}var Do=new Set;function No(e){Do.has(e)||(console.warn("[unocss]",e),Do.add(e))}function Ho(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ko="_uno_resolved";async function Gf(e){let t=typeof e=="function"?await e():await e;if(Ko in t)return t;t={...t},Object.defineProperty(t,Ko,{value:!0,enumerable:!1});let r=t.shortcuts?Ho(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function qo(e){let t=await Gf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(qo))).flat();return[t,...r]}function Hf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Go(...t)),exclude:ue(Go(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Rn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(S).flatMap(qo))).flat(),(y,T)=>y.name===T.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Vo,...i.map(y=>y.layers));function c(y){return ue(i.flatMap(T=>S(T[y]||[])))}let l=c("extractors"),u=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Kt),u&&!l.includes(u)&&l.unshift(u),l.sort((y,T)=>(y.order||0)-(T.order||0));let d=c("rules"),g=d.length,m={},h=[];for(let[y,T]of d.entries()){let w=T[2]??(T[2]={});w.__index=y,Uo(T)?S(w.prefix??"").forEach(A=>{m[A+T[0]]=T}):h.unshift(T)}let x={templates:ue(i.flatMap(y=>S(y.autocomplete?.templates))),extractors:i.flatMap(y=>S(y.autocomplete?.extractors)).sort((y,T)=>(y.order||0)-(T.order||0)),shorthands:Yf(i.map(y=>y.autocomplete?.shorthands||{}))},k=c("separators");k.length||(k=[":","-"]);let C=c("content"),v=Hf(C),b={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:qf(i.map(y=>y.theme)),rules:d,rulesSize:g,rulesDynamic:h,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(_o).sort((y,T)=>(y.order||0)-(T.order||0)),shortcuts:Ho(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:k,details:r.details??r.envMode==="dev",content:v,transformers:wn(c("transformers"),(y,T)=>y.name===T.name)},z=c("extendTheme");for(let y of z)b.theme=y(b.theme,b)||b.theme;for(let y of i)y?.configResolved?.(b);return b}function qf(e){return e.map(t=>t?Je(t):{}).reduce((t,r)=>Cn(t,r),{})}function Yf(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Go(...e){return e.flatMap(Xf)}function Xf(e){return Array.isArray(e)?e:e?[e]:[]}var Yo="66.5.5";var pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},En=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Yo;events=Mo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Rn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Rn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Gt(s)&&Gt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:pe,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(qt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=F(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(R=>typeof R=="function"?R(w):R).forEach(R=>{let A=R.trim();A&&!l.has(A)&&l.add(A)})}let u=a?"":`
|
|
1
|
+
"use strict";(()=>{var _f=Object.defineProperty;var Lf=(e,t)=>{for(var r in t)_f(e,r,{get:t[r],enumerable:!0})};var Xe="default",Dt="preflights",Wf="shortcuts",Uf="imports",Vo={[Uf]:-200,[Dt]:-100,[Wf]:-10,[Xe]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function Bf(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Bf(e)}};function S(e=[]){return Array.isArray(e)?e:[e]}function ue(e){return Array.from(new Set(e))}function wn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function F(e){return typeof e=="string"}var Ze=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Gt(e){return e instanceof Ze}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Ht=J;function Mo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var If=/[\w\u00A0-\uFFFF%-?]/;function Fo(e=""){return If.test(e)}function _o(e){return typeof e=="function"?{match:e}:e}function kn(e){return e.length===3}function qt(e){return e!=null}function Lo(){}var Yt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Xt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function Qe(e){return F(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Wo(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Qe(t)):[e]:[Qe(e)]}function Df(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}var Sn="__virtual_key__";function Le(e){return e==null?"":Df(e).map(([t,r])=>r!=null&&typeof r!="function"?t!==Sn?`${t}:${r};`:r:void 0).filter(Boolean).join("")}function Zt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Cn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Zt(n)&&Zt(o)&&Object.keys(o).forEach(s=>{Zt(n[s])&&Zt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Cn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Je(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Je(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Je(n):n;return r}return e}function Uo(e){return F(e[0])}function Bo(e){return F(e[0])}var Jt={};function Nf(e=["-",":"]){let t=e.join("|");return Jt[t]||(Jt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Jt[t].lastIndex=0,Jt[t]}function Kf(e,t=["-",":"],r=5){let n=Nf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,u,d,g,m)=>{if(!t.includes(d))return l;o=!0,s.add(u+d);let h=m+u.length+d.length+1,x={length:l.length,items:[]};a.set(m,x);for(let k of[...g.matchAll(/\S+/g)]){let C=h+k.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:k[0].length,className:k[0]}];for(let b of v)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[u,d]of a)c+=e.slice(l,u),c+=d.items.map(g=>g.className).join(" "),l=u+d.length;c+=e.slice(l)}else{c=e;for(let[l,u]of a)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Io(e,t=["-",":"],r=5){let n=Kf(e,t,r);return typeof e=="string"?n.expanded:e}var Do=new Set;function No(e){Do.has(e)||(console.warn("[unocss]",e),Do.add(e))}function Ho(e){return S(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ko="_uno_resolved";async function Gf(e){let t=typeof e=="function"?await e():await e;if(Ko in t)return t;t={...t},Object.defineProperty(t,Ko,{value:!0,enumerable:!1});let r=t.shortcuts?Ho(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=S(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function qo(e){let t=await Gf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(S).flatMap(qo))).flat();return[t,...r]}function Hf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[];for(let a of e){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&t.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline)}let s={pipeline:n?!1:{include:ue(Go(...t)),exclude:ue(Go(...r))}};return o.length&&(s.filesystem=ue(o.flat())),i.length&&(s.inline=ue(i.flat())),s}async function Rn(e={},t={}){let r=Object.assign({},t,e),n=wn((await Promise.all((r.presets||[]).flatMap(S).flatMap(qo))).flat(),(y,T)=>y.name===T.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Vo,...i.map(y=>y.layers));function c(y){return ue(i.flatMap(T=>S(T[y]||[])))}let l=c("extractors"),u=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Kt),u&&!l.includes(u)&&l.unshift(u),l.sort((y,T)=>(y.order||0)-(T.order||0));let d=c("rules"),g=d.length,m={},h=[];for(let[y,T]of d.entries()){let w=T[2]??(T[2]={});w.__index=y,Uo(T)?S(w.prefix??"").forEach(A=>{m[A+T[0]]=T}):h.unshift(T)}let x={templates:ue(i.flatMap(y=>S(y.autocomplete?.templates))),extractors:i.flatMap(y=>S(y.autocomplete?.extractors)).sort((y,T)=>(y.order||0)-(T.order||0)),shorthands:Yf(i.map(y=>y.autocomplete?.shorthands||{}))},k=c("separators");k.length||(k=[":","-"]);let C=c("content"),v=Hf(C),b={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:qf(i.map(y=>y.theme)),rules:d,rulesSize:g,rulesDynamic:h,rulesStaticMap:m,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(_o).sort((y,T)=>(y.order||0)-(T.order||0)),shortcuts:Ho(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:k,details:r.details??r.envMode==="dev",content:v,transformers:wn(c("transformers"),(y,T)=>y.name===T.name)},z=c("extendTheme");for(let y of z)b.theme=y(b.theme,b)||b.theme;for(let y of i)y?.configResolved?.(b);return b}function qf(e){return e.map(t=>t?Je(t):{}).reduce((t,r)=>Cn(t,r),{})}function Yf(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Go(...e){return e.flatMap(Xf)}function Xf(e){return Array.isArray(e)?e:e?[e]:[]}var Yo="66.5.6";var pe={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},En=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Yo;events=Mo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Rn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Rn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Gt(s)&&Gt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:pe,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=this.config.preprocess.reduce((c,l)=>l(c)??c,t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.map(g=>this.stringifyUtil(g,l)).filter(qt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=F(t)?await this.applyExtractors(t,n,c?new Ze:new Set):Array.isArray(t)?new Set(t):t;if(s){let w={generator:this,theme:this.config.theme};this.config.safelist.flatMap(R=>typeof R=="function"?R(w):R).forEach(R=>{let A=R.trim();A&&!l.has(A)&&l.add(A)})}let u=a?"":`
|
|
2
2
|
`,d=new Set([Xe]),g=c?new Map:new Set,m=new Map,h={},x=Array.from(l).map(async w=>{if(g.has(w))return;let R=await this.parseToken(w);if(R!=null){g instanceof Map?g.set(w,{data:R,count:Gt(l)?l.getCount(w):-1}):g.add(w);for(let A of R){let ee=A[3]||"",te=A[4]?.layer;m.has(ee)||m.set(ee,[]),m.get(ee).push(A),te&&d.add(te)}}});await Promise.all(x),await(async()=>{if(!i)return;let w={generator:this,theme:this.config.theme},R=new Set([]);this.config.preflights.forEach(({layer:A=Dt})=>{d.add(A),R.add(A)}),h=Object.fromEntries(await Promise.all(Array.from(R).map(async A=>{let te=(await Promise.all(this.config.preflights.filter(le=>(le.layer||Dt)===A).map(async le=>await le.getCSS(w)))).filter(Boolean).join(u);return[A,te]})))})();let k=this.config.sortLayers(Array.from(d).sort((w,R)=>(this.config.layers[w]??0)-(this.config.layers[R]??0)||w.localeCompare(R))),C={},v=this.config.outputToCssLayers,b=w=>{let R=w;return typeof v=="object"&&(R=v.cssLayerName?.(w)),R===null?null:R??w},z=(w=Xe)=>{if(C[w])return C[w];let R=Array.from(m).sort((te,le)=>(this.parentOrders.get(te[0])??0)-(this.parentOrders.get(le[0])??0)||te[0]?.localeCompare(le[0]||"")||0).map(([te,le])=>{let E=le.length,V=le.filter(I=>(I[4]?.layer||Xe)===w).sort((I,fe)=>I[0]-fe[0]||(I[4]?.sort||0)-(fe[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(fe[5]?.currentSelector??"")||I[1]?.localeCompare(fe[1]||"")||I[2]?.localeCompare(fe[2]||"")||0).map(([,I,fe,,It,,vn])=>[[[(I&&Qf(I,o))??"",It?.sort??0]],fe,!!(vn??It?.noMerge)]);if(!V.length)return;let B=V.reverse().map(([I,fe,It],vn)=>{if(!It&&this.config.mergeSelectors)for(let Re=vn+1;Re<E;Re++){let ge=V[Re];if(ge&&!ge[2]&&(I&&ge[0]||I==null&&ge[0]==null)&&ge[1]===fe)return I&&ge[0]&&ge[0].push(...I),null}let $n=I?ue(I.sort((Re,ge)=>Re[1]-ge[1]||Re[0]?.localeCompare(ge[0]||"")||0).map(Re=>Re[0]).filter(Boolean)):[];return $n.length?`${$n.join(`,${u}`)}{${fe}}`:fe}).filter(Boolean),D=Array.from(new Set(B)).reverse().join(u);if(!te)return D;let Q=te.split(" $$ ");return`${Q.join("{")}{${u}${D}${u}${"}".repeat(Q.length)}`}).filter(Boolean).join(u);i&&(R=[h[w],R].filter(Boolean).join(u));let A;v&&R&&(A=b(w),A!==null&&(R=`@layer ${A}{${u}${R}${u}}`));let ee=a?"":`/* layer: ${w}${A&&A!==w?`, alias: ${A}`:""} */${u}`;return C[w]=R?ee+R:""},y=(w=k,R)=>{let A=w.filter(ee=>!R?.includes(ee));return[v&&A.length>0?`@layer ${A.map(b).filter(qt).join(", ")};`:void 0,...A.map(ee=>z(ee)||"")].filter(Boolean).join(u)};return{get css(){return y()},layers:k,matched:g,getLayers:y,getLayer:z,setLayer:async(w,R)=>{let A=await R(z(w));return C[w]=A,A}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,c]=i;for(;s;){s=!1;let l=i[1];for(let u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let d=await u.match(l,n);if(d){if(F(d)){if(d===l)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let g=d.map(m=>{let h=m.matcher??l,x=[m,...a],k=new Set(c);return k.add(u),[i[0],h,x,k]});return(await Promise.all(g.map(m=>o(m)))).flat()}}i[1]=d.matcher??l,a.unshift(d),c.add(u),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,u)=>(l.order||0)-(u.order||0)).reduceRight((l,u)=>d=>{let g=u.body?.(d.entries)||d.entries,m=Array.isArray(u.parent)?u.parent:[u.parent,void 0],h=u.selector?.(d.selector,g);return(u.handle??tu)({...d,entries:g,selector:h||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:u.layer||d.layer,sort:u.sort||d.sort},l)},l=>l)({prefix:"",selector:eu(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,n){let o=Qe(r);if(F(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${Le(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=F(t)?await this.matchVariants(t):[t],s=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:u},g=this.config.rulesStaticMap[l];if(g&&g[1]&&(n||!g[2]?.internal))return this.resolveCSSResult(c,g[1],g,d);for(let m of this.config.rulesDynamic){let[h,x,k]=m;if(k?.internal&&!n)continue;let C=l;if(k?.prefix){let y=S(k.prefix);if(o){let T=S(o);if(!y.some(w=>T.includes(w)))continue}else{let T=y.find(w=>l.startsWith(w));if(T==null)continue;C=l.slice(T.length)}}let v=C.match(h);if(!v)continue;let b=await x(v,d);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let y=[];for await(let T of b)T&&y.push(T);b=y}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(qt));let z=this.resolveCSSResult(c,b,m,d);if(z)return z}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}resolveCSSResult=(t,r,n,o)=>{let i=Wo(r).filter(s=>s.length);if(i.length){this.config.details&&o.rules.push(n),o.generator.activatedRules.add(n);let s=n[2];return i.map(a=>{if(F(a))return[s.__index,a,s];let c=o.variantHandlers,l=s;for(let u of a)u[0]===pe.variants?typeof u[1]=="function"?c=u[1](c)||c:c=[...S(u[1]),...c]:u[0]===pe.parent?c=[{parent:u[1]},...c]:u[0]===pe.selector?c=[{selector:u[1]},...c]:u[0]===pe.layer?c=[{layer:u[1]},...c]:u[0]===pe.sort?l={...l,sort:u[1]}:u[0]===pe.noMerge?l={...l,noMerge:u[1]}:u[0]===pe.body&&(u[0]=Sn);return[s.__index,t,a,l,c]})}};stringifyUtil(t,r){if(!t)return;if(kn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),l=Le(o);if(!l)return;let{layer:u,sort:d,...g}=t[3]??{},m={...g,layer:s??u,sort:a??d};return[t[0],n,l,i,m,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:Lo,i,s,a,c;for(let l of this.config.shortcuts){let u=t;if(l[2]?.prefix){let g=S(l[2].prefix).find(m=>t.startsWith(m));if(g==null)continue;u=t.slice(g.length)}if(Bo(l)){if(l[0]===u){i=i||l[2],s=l[1],o(l);break}}else{let d=u.match(l[0]);if(d&&(s=l[1](d,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ue(S(s).filter(F).map(l=>Io(l.trim()).split(/\s+/g)).flat()),c=S(s).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!s){let l=F(t)?await this.matchVariants(t):[t];for(let u of l){let[d,g,m]=u;if(d!==g){let h=await this.expandShortcut(g,r,n-1);h&&(a=h[0].filter(F).map(x=>d.replace(g,x)),c=h[0].filter(x=>!F(x)).map(x=>({handles:[...x.handles,...m],value:x.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(S(a).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Xt,s=(await Promise.all(ue(n).map(async u=>{let d=F(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Qe(u.value),void 0,u.handles]];return!d&&this.config.warn&&No(`unmatched utility "${u}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[a,,c]=t,l=[];for(let u of s){if(kn(u)){l.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let d=Object.fromEntries(u[2])[pe.shortcutsNoMerge],g=[...u[4],...d?[]:c],{selector:m,entries:h,parent:x,sort:k,noMerge:C,layer:v}=this.applyVariants(u,g,a);i.getFallback(v??o.layer,new Yt).getFallback(m,x,[[],u[0]])[0].push([h,!!(C??u[3]?.noMerge),k??0])}return l.concat(i.flatMap((u,d)=>u.map(([g,m],h,x)=>{let k=(v,b,z)=>{let y=Math.max(...z.map(w=>w[1])),T=z.map(w=>w[0]);return(v?[T.flat(1)]:T).map(w=>{let R=Le(w);if(R)return[m,h,R,x,{...o,noMerge:b,sort:y,layer:d},r,void 0]})};return[[g.filter(([,v])=>v).map(([v,,b])=>[v,b]),!0],[g.filter(([,v])=>!v).map(([v,,b])=>[v,b]),!1]].map(([v,b])=>[...k(!1,b,v.filter(([z])=>z.some(y=>y[0]===pe.shortcutsNoMerge))),...k(!0,b,v.filter(([z])=>z.every(y=>y[0]!==pe.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):F(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):F(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Zo(e,t){return await En.create(e,t)}var Jo=/\s\$\$\s+/g;function Jf(e){return Jo.test(e)}function Qf(e,t){return Jf(e)?e.replace(Jo,t?` ${t} `:" "):t?`${t} ${e}`:e}var Xo=/^\[(.+?)(~?=)"(.*)"\]$/;function eu(e){return Xo.test(e)?e.replace(Xo,(t,r,n,o)=>`[${Ht(r)}${n}"${Ht(o)}"]`):`.${Ht(e)}`}function tu(e,t){return t(e)}function ru(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Qo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${ru(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function ei(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var nu=/\/\/#\s*sourceMappingURL=.*\n?/g;function ti(e){return e.includes("sourceMappingURL=")?e.replace(nu,""):e}var ou=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,iu=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,su=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function au(e){let t=[];for(let o of e.matchAll(iu))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(ou))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Qo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Nt).forEach(o=>{o.includes(n)&&(o=ei(o,r)),Fo(o)&&!su.test(o)&&t.push(o)}),t}function ri(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return au(ti(e))}}}function ni(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Le(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),S(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function re(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function de(e,t,r,n){if(e===""||(F(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function Ee(e,t,r,n="(",o=")"){r=r??10;let i=[],s=0;for(;e!=="";){if(++s>r)return;let a=de(e,n,o,t);if(!a)return;let[c,l]=a;i.push(c),e=l}if(i.length>0)return i}var Tn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var oi=["%alpha","<alpha-value>"],cu=new RegExp(oi.map(e=>K(e)).join("|"),"g");function Y(e=""){let t=lu(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Tn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function ie(e){let t=e.alpha??1;return typeof t=="string"&&oi.includes(t)?1:t}function P(e,t){if(typeof e=="string")return e.replace(cu,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Tn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function lu(e){if(!e)return;let t=fu(e);if(t!=null||(t=uu(e),t!=null)||(t=pu(e),t!=null)||(t=mu(e),t!=null)||(t=hu(e),t!=null))return t}function fu(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100}}case 6:case 8:{let r=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:t.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function uu(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function pu(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Ee(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var du=new RegExp(`^(${Tn.join("|")})\\((.+)\\)$`,"i");function mu(e){let t=e.match(du);if(!t)return;let[,r,n]=t,o=ii(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function hu(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=ii(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function ii(e){let t=Ee(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Ee(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}var gu=44,bu=59,si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",li=new Uint8Array(64),xu=new Uint8Array(128);for(let e=0;e<si.length;e++){let t=si.charCodeAt(e);li[e]=t,xu[t]=e}function et(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(li[o])}while(n>0);return t}var ai=1024*16,ci=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},yu=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(ai)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===ai&&(this.out+=ci.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:r}=this;return r>0?t+ci.decode(e.subarray(0,r)):t}};function fi(e){let t=new yu,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(bu),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let u=a[l];l>0&&t.write(gu),c=et(t,u[0],c),u.length!==1&&(r=et(t,u[1],r),n=et(t,u[2],n),o=et(t,u[3],o),u.length!==4&&(i=et(t,u[4],i)))}}return t.flush()}var Qt=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},er=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function vu(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var $u=vu(),jn=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=fi(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+$u(this.toString())}};function wu(e){let t=e.split(`
|
|
3
3
|
`),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function ku(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var Su=Object.prototype.toString;function Cu(e){return Su.call(e)==="[object Object]"}function ui(e){let t=e.split(`
|
|
4
4
|
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let l=i+s>>1;o<r[l]?s=l:i=l+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var Ru=/\w/,zn=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
|