UNPKG

@nuxt/devtools

Version:

The Nuxt DevTools gives you insights and transparency about your Nuxt App.

2 lines 51.3 kB
import{a as nt}from"./json-editor-vue-pb6xqf2y.js";const st=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ot=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,it=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function at(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ct(e);return}return t}function ct(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function lt(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!it.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(st.test(e)||ot.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,at)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const ft=/#/g,ut=/&/g,ht=/\//g,dt=/=/g,pe=/\+/g,pt=/%5e/gi,mt=/%60/gi,gt=/%7c/gi,yt=/%20/gi;function wt(e){return encodeURI(""+e).replace(gt,"|")}function ue(e){return wt(typeof e=="string"?e:JSON.stringify(e)).replace(pe,"%2B").replace(yt,"+").replace(ft,"%23").replace(ut,"%26").replace(mt,"`").replace(pt,"^").replace(ht,"%2F")}function ne(e){return ue(e).replace(dt,"%3D")}function Q(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function bt(e){return Q(e.replace(pe," "))}function Ct(e){return Q(e.replace(pe," "))}function vt(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const s=bt(n[1]);if(s==="__proto__"||s==="constructor")continue;const i=Ct(n[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function St(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${ne(e)}=${ue(r)}`).join("&"):`${ne(e)}=${ue(t)}`:ne(e)}function Et(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>St(t,e[t])).filter(Boolean).join("&")}const $t=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,At=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,xt=/^([/\\]\s*){2,}[^/\\]/,Ft=/^[\s\0]*(blob|data|javascript|vbscript):$/i,_t=/\/$|\/\?|\/#/,Ot=/^\.?\//;function me(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?$t.test(e):At.test(e)||(t.acceptRelative?xt.test(e):!1)}function an(e){return!!e&&Ft.test(e)}function he(e="",t){return t?_t.test(e):e.endsWith("/")}function K(e="",t){if(!t)return(he(e)?e.slice(0,-1):e)||"/";if(!he(e,!0))return e||"/";let r=e,n="";const s=e.indexOf("#");s!==-1&&(r=e.slice(0,s),n=e.slice(s));const[i,...u]=r.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(u.length>0?`?${u.join("?")}`:"")+n}function jt(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(he(e,!0))return e||"/";let r=e,n="";const s=e.indexOf("#");if(s!==-1&&(r=e.slice(0,s),n=e.slice(s),!r))return n;const[i,...u]=r.split("?");return i+"/"+(u.length>0?`?${u.join("?")}`:"")+n}function Rt(e,t){if(ze(t)||me(e))return e;const r=K(t);return e.startsWith(r)?e:Mt(r,e)}function cn(e,t){if(ze(t))return e;const r=K(t);if(!e.startsWith(r))return e;const n=e.slice(r.length);return n[0]==="/"?n:"/"+n}function kt(e,t){const r=Lt(e),n={...vt(r.search),...t};return r.search=Et(n),It(r)}function ze(e){return!e||e==="/"}function Tt(e){return e&&e!=="/"}function Mt(e,...t){let r=e||"";for(const n of t.filter(s=>Tt(s)))if(r){const s=n.replace(Ot,"");r=jt(r)+s}else r=n;return r}function ln(...e){const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let s=0;for(const u of r)if(!(!u||u==="/")){for(const[l,f]of u.split(t).entries())if(!(!f||f===".")){if(f===".."){if(n.length===1&&me(n[0]))continue;n.pop(),s--;continue}if(l===1&&n[n.length-1]?.endsWith(":/")){n[n.length-1]+="/"+f;continue}n.push(f),s++}}let i=n.join("/");return s>=0?r[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:r[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,r[r.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function fn(e,t){return Q(K(e))===Q(K(t))}const qe=Symbol.for("ufo:protocolRelative");function Lt(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,a,h=""]=r;return{protocol:a.toLowerCase(),pathname:h,href:a+h,auth:"",host:"",search:"",hash:""}}if(!me(e,{acceptRelative:!0}))return we(e);const[,n="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,u="",l=""]=i.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:f,search:c,hash:o}=we(l);return{protocol:n.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:u,pathname:f,search:c,hash:o,[qe]:!n}}function we(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function It(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[qe]?(e.protocol||"")+"//":"")+s+i+t+r+n}class Pt extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}}function Nt(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",s=`[${r}] ${JSON.stringify(n)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",u=`${s}: ${i}${t?` ${t}`:""}`,l=new Pt(u,e.error?{cause:e.error}:void 0);for(const f of["request","options","response"])Object.defineProperty(l,f,{get(){return e[f]}});for(const[f,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(l,f,{get(){return e.response&&e.response[c]}});return l}const Dt=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function be(e="GET"){return Dt.has(e.toUpperCase())}function zt(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const qt=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Bt=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Ut(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Bt.test(t)?"json":qt.has(t)||t.startsWith("text/")?"text":"blob"}function Vt(e,t,r,n){const s=Wt(t?.headers??e?.headers,r?.headers,n);let i;return(r?.query||r?.params||t?.params||t?.query)&&(i={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:i,params:i,headers:s}}function Wt(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[s,i]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(s,i);return n}async function U(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const Gt=new Set([408,409,425,429,500,502,503,504]),Ht=new Set([101,204,205,304]);function Be(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function s(l){const f=l.error&&l.error.name==="AbortError"&&!l.options.timeout||!1;if(l.options.retry!==!1&&!f){let o;typeof l.options.retry=="number"?o=l.options.retry:o=be(l.options.method)?0:1;const a=l.response&&l.response.status||500;if(o>0&&(Array.isArray(l.options.retryStatusCodes)?l.options.retryStatusCodes.includes(a):Gt.has(a))){const h=typeof l.options.retryDelay=="function"?l.options.retryDelay(l):l.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),i(l.request,{...l.options,retry:o-1})}}const c=Nt(l);throw Error.captureStackTrace&&Error.captureStackTrace(c,i),c}const i=async function(f,c={}){const o={request:f,options:Vt(f,c,e.defaults,r),response:void 0,error:void 0};o.options.method&&(o.options.method=o.options.method.toUpperCase()),o.options.onRequest&&await U(o,o.options.onRequest),typeof o.request=="string"&&(o.options.baseURL&&(o.request=Rt(o.request,o.options.baseURL)),o.options.query&&(o.request=kt(o.request,o.options.query),delete o.options.query),"query"in o.options&&delete o.options.query,"params"in o.options&&delete o.options.params),o.options.body&&be(o.options.method)&&(zt(o.options.body)?(o.options.body=typeof o.options.body=="string"?o.options.body:JSON.stringify(o.options.body),o.options.headers=new r(o.options.headers||{}),o.options.headers.has("content-type")||o.options.headers.set("content-type","application/json"),o.options.headers.has("accept")||o.options.headers.set("accept","application/json")):("pipeTo"in o.options.body&&typeof o.options.body.pipeTo=="function"||typeof o.options.body.pipe=="function")&&("duplex"in o.options||(o.options.duplex="half")));let a;if(!o.options.signal&&o.options.timeout){const d=new n;a=setTimeout(()=>{const y=new Error("[TimeoutError]: The operation was aborted due to timeout");y.name="TimeoutError",y.code=23,d.abort(y)},o.options.timeout),o.options.signal=d.signal}try{o.response=await t(o.request,o.options)}catch(d){return o.error=d,o.options.onRequestError&&await U(o,o.options.onRequestError),await s(o)}finally{a&&clearTimeout(a)}if((o.response.body||o.response._bodyInit)&&!Ht.has(o.response.status)&&o.options.method!=="HEAD"){const d=(o.options.parseResponse?"json":o.options.responseType)||Ut(o.response.headers.get("content-type")||"");switch(d){case"json":{const y=await o.response.text(),g=o.options.parseResponse||lt;o.response._data=g(y);break}case"stream":{o.response._data=o.response.body||o.response._bodyInit;break}default:o.response._data=await o.response[d]()}}return o.options.onResponse&&await U(o,o.options.onResponse),!o.options.ignoreResponseError&&o.response.status>=400&&o.response.status<600?(o.options.onResponseError&&await U(o,o.options.onResponseError),await s(o)):o.response},u=async function(f,c){return(await i(f,c))._data};return u.raw=i,u.native=(...l)=>t(...l),u.create=(l={},f={})=>Be({...e,...f,defaults:{...e.defaults,...f.defaults,...l}}),u}const Y=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Jt=Y.fetch?(...e)=>Y.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Qt=Y.Headers,Kt=Y.AbortController,Yt=Be({fetch:Jt,Headers:Qt,AbortController:Kt}),Xt=Yt,Zt=Object.freeze({left:0,top:0,width:16,height:16}),X=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Ue=Object.freeze({...Zt,...X}),er=Object.freeze({...Ue,body:"",hidden:!1}),tr=Object.freeze({width:null,height:null}),Ve=Object.freeze({...tr,...X});function rr(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function Ce(e,t){const r=rr(e,t);for(const n in er)n in X?n in e&&!(n in r)&&(r[n]=X[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function nr(e,t){const r=e.icons,n=e.aliases||Object.create(null),s=Object.create(null);function i(u){if(r[u])return s[u]=[];if(!(u in s)){s[u]=null;const l=n[u]&&n[u].parent,f=l&&i(l);f&&(s[u]=[l].concat(f))}return s[u]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(i),s}function ve(e,t,r){const n=e.icons,s=e.aliases||Object.create(null);let i={};function u(l){i=Ce(n[l]||s[l],i)}return u(t),r.forEach(u),Ce(e,i)}function sr(e,t){if(e.icons[t])return ve(e,t,[]);const r=nr(e,[t])[t];return r?ve(e,t,r):null}const or=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ir=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Z(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(or);if(n===null||!n.length)return e;const s=[];let i=n.shift(),u=ir.test(i);for(;;){if(u){const l=parseFloat(i);isNaN(l)?s.push(i):s.push(Math.ceil(l*t*r)/r)}else s.push(i);if(i=n.shift(),i===void 0)return s.join("");u=!u}}function ar(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const s=e.indexOf(">",n),i=e.indexOf("</"+t);if(s===-1||i===-1)break;const u=e.indexOf(">",i);if(u===-1)break;r+=e.slice(s+1,i).trim(),e=e.slice(0,n).trim()+e.slice(u+1)}return{defs:r,content:e}}function cr(e,t){return e?"<defs>"+e+"</defs>"+t:t}function lr(e,t,r){const n=ar(e);return cr(n.defs,t+n.content+r)}const ge=e=>e==="unset"||e==="undefined"||e==="none";function fr(e,t){const r={...Ue,...e},n={...Ve,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,n].forEach(g=>{const m=[],E=g.hFlip,b=g.vFlip;let v=g.rotate;E?b?v+=2:(m.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),m.push("scale(-1 1)"),s.top=s.left=0):b&&(m.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),m.push("scale(1 -1)"),s.top=s.left=0);let $;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:$=s.height/2+s.top,m.unshift("rotate(90 "+$.toString()+" "+$.toString()+")");break;case 2:m.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:$=s.width/2+s.left,m.unshift("rotate(-90 "+$.toString()+" "+$.toString()+")");break}v%2===1&&(s.left!==s.top&&($=s.left,s.left=s.top,s.top=$),s.width!==s.height&&($=s.width,s.width=s.height,s.height=$)),m.length&&(i=lr(i,'<g transform="'+m.join(" ")+'">',"</g>"))});const u=n.width,l=n.height,f=s.width,c=s.height;let o,a;u===null?(a=l===null?"1em":l==="auto"?c:l,o=Z(a,f/c)):(o=u==="auto"?f:u,a=l===null?Z(o,c/f):l==="auto"?c:l);const h={},d=(g,m)=>{ge(m)||(h[g]=m.toString())};d("width",o),d("height",a);const y=[s.left,s.top,f,c];return h.viewBox=y.join(" "),{attributes:h,viewBox:y,body:i}}function ur(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Se(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),ur(t)}function hr(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}const dr=/\swidth\s*=\s*["']([\w.]+)["']/,pr=/\sheight\s*=\s*["']([\w.]+)["']/,se=/<svg\s+/;function mr(e,t,r){const n=e.slice(0,e.indexOf(">")),s=(i,u)=>{const l=u.exec(n),f=l!=null,c=t[i];return!c&&!ge(c)&&(typeof r=="number"?r>0&&(t[i]=Z(l?.[1]??"1em",r)):l&&(t[i]=l[1])),f};return[s("width",dr),s("height",pr)]}async function We(e,t,r,n,s,i){const{scale:u,addXmlNs:l=!1}=n??{},{additionalProps:f={},iconCustomizer:c}=n?.customizations??{},o=await s?.()??{};await c?.(t,r,o),Object.keys(f).forEach(g=>{const m=f[g];m!=null&&(o[g]=m)}),i?.(o);const[a,h]=mr(e,o,u);l&&(!e.includes("xmlns=")&&!o.xmlns&&(o.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!o["xmlns:xlink"]&&(o["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const d=Object.keys(o).map(g=>g==="width"&&a||g==="height"&&h?null:`${g}="${o[g]}"`).filter(g=>g!=null);if(d.length&&(e=e.replace(se,`<svg ${d.join(" ")} `)),n){const{defaultStyle:g,defaultClass:m}=n;m&&!e.includes("class=")&&(e=e.replace(se,`<svg class="${m}" `)),g&&!e.includes("style=")&&(e=e.replace(se,`<svg style="${g}" `))}const y=n?.usedProps;return y&&(Object.keys(f).forEach(g=>{const m=o[g];m!=null&&(y[g]=m)}),typeof o.width<"u"&&o.width!==null&&(y.width=o.width),typeof o.height<"u"&&o.height!==null&&(y.height=o.height)),e}var V={exports:{}},oe,Ee;function gr(){if(Ee)return oe;Ee=1;var e=1e3,t=e*60,r=t*60,n=r*24,s=n*7,i=n*365.25;oe=function(o,a){a=a||{};var h=typeof o;if(h==="string"&&o.length>0)return u(o);if(h==="number"&&isFinite(o))return a.long?f(o):l(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function u(o){if(o=String(o),!(o.length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(a){var h=parseFloat(a[1]),d=(a[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*s;case"days":case"day":case"d":return h*n;case"hours":case"hour":case"hrs":case"hr":case"h":return h*r;case"minutes":case"minute":case"mins":case"min":case"m":return h*t;case"seconds":case"second":case"secs":case"sec":case"s":return h*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function l(o){var a=Math.abs(o);return a>=n?Math.round(o/n)+"d":a>=r?Math.round(o/r)+"h":a>=t?Math.round(o/t)+"m":a>=e?Math.round(o/e)+"s":o+"ms"}function f(o){var a=Math.abs(o);return a>=n?c(o,a,n,"day"):a>=r?c(o,a,r,"hour"):a>=t?c(o,a,t,"minute"):a>=e?c(o,a,e,"second"):o+" ms"}function c(o,a,h,d){var y=a>=h*1.5;return Math.round(o/h)+" "+d+(y?"s":"")}return oe}var ie,$e;function yr(){if($e)return ie;$e=1;function e(t){n.debug=n,n.default=n,n.coerce=c,n.disable=l,n.enable=i,n.enabled=f,n.humanize=gr(),n.destroy=o,Object.keys(t).forEach(a=>{n[a]=t[a]}),n.names=[],n.skips=[],n.formatters={};function r(a){let h=0;for(let d=0;d<a.length;d++)h=(h<<5)-h+a.charCodeAt(d),h|=0;return n.colors[Math.abs(h)%n.colors.length]}n.selectColor=r;function n(a){let h,d=null,y,g;function m(...E){if(!m.enabled)return;const b=m,v=Number(new Date),$=v-(h||v);b.diff=$,b.prev=h,b.curr=v,h=v,E[0]=n.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let x=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(p,C)=>{if(p==="%%")return"%";x++;const S=n.formatters[C];if(typeof S=="function"){const T=E[x];p=S.call(b,T),E.splice(x,1),x--}return p}),n.formatArgs.call(b,E),(b.log||n.log).apply(b,E)}return m.namespace=a,m.useColors=n.useColors(),m.color=n.selectColor(a),m.extend=s,m.destroy=n.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(y!==n.namespaces&&(y=n.namespaces,g=n.enabled(a)),g),set:E=>{d=E}}),typeof n.init=="function"&&n.init(m),m}function s(a,h){const d=n(this.namespace+(typeof h>"u"?":":h)+a);return d.log=this.log,d}function i(a){n.save(a),n.namespaces=a,n.names=[],n.skips=[];const h=(typeof a=="string"?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const d of h)d[0]==="-"?n.skips.push(d.slice(1)):n.names.push(d)}function u(a,h){let d=0,y=0,g=-1,m=0;for(;d<a.length;)if(y<h.length&&(h[y]===a[d]||h[y]==="*"))h[y]==="*"?(g=y,m=d,y++):(d++,y++);else if(g!==-1)y=g+1,m++,d=m;else return!1;for(;y<h.length&&h[y]==="*";)y++;return y===h.length}function l(){const a=[...n.names,...n.skips.map(h=>"-"+h)].join(",");return n.enable(""),a}function f(a){for(const h of n.skips)if(u(a,h))return!1;for(const h of n.names)if(u(a,h))return!0;return!1}function c(a){return a instanceof Error?a.stack||a.message:a}function o(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}return ie=e,ie}var Ae;function wr(){return Ae||(Ae=1,function(e,t){var r={};t.formatArgs=s,t.save=i,t.load=u,t.useColors=n,t.storage=l(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function s(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const o="color: "+this.color;c.splice(1,0,o,"color: inherit");let a=0,h=0;c[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(a++,d==="%c"&&(h=a))}),c.splice(h,0,o)}t.log=console.debug||console.log||(()=>{});function i(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function u(){let c;try{c=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=r.DEBUG),c}function l(){try{return localStorage}catch{}}e.exports=yr()(t);const{formatters:f}=e.exports;f.j=function(c){try{return JSON.stringify(c)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}}(V,V.exports)),V.exports}var br=wr();const Ge=nt(br),Cr=Ge("@iconify-loader:custom");async function xe(e,t,r,n){let s;Cr(`${t}:${r}`);try{if(typeof e=="function")s=await e(r);else{const i=e[r];s=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${r}" in "${t}":`,i);return}if(s){const i=s.indexOf("<svg");i>0&&(s=s.slice(i));const{transform:u}=n?.customizations??{};return s=typeof u=="function"?await u(s,t,r):s,s.startsWith("<svg")?await We(n?.customizations?.trimCustomSvg===!0?hr(s):s,t,r,n,void 0):(console.warn(`Custom icon "${r}" in "${t}" is not a valid SVG`),s)}}const vr=Ge("@iconify-loader:icon");async function He(e,t,r,n){let s;const{customize:i}=n?.customizations??{};for(const u of r)if(s=sr(e,u),s){vr(`${t}:${u}`);let l={...Ve};typeof i=="function"&&(s=Object.assign({},s),l=i(l,s,`${t}:${u}`)??l);const{attributes:{width:f,height:c,...o},body:a}=fr(s,l),h=n?.scale;return await We(`<svg >${a}</svg>`,t,u,n,()=>({...o}),d=>{const y=(g,m)=>{const E=d[g];let b;if(!ge(E)){if(E)return;typeof h=="number"?h&&(b=Z(m??"1em",h)):b=m}b?d[g]=b:delete d[g]};y("width",f),y("height",c)})}}const Je=async(e,t,r)=>{const n=r?.customCollections?.[e];if(n)if(typeof n=="function"){let s;try{s=await n(t)}catch(i){console.warn(`Failed to load custom icon "${t}" in "${e}":`,i);return}if(s){if(typeof s=="string")return await xe(()=>s,e,t,r);if("icons"in s){const i=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await He(s,e,i,r)}}}else return await xe(n,e,t,r)},H="default",de="preflights",Sr="shortcuts",Er="imports",$r={[Er]:-200,[de]:-100,[Sr]:-10,[H]:0},Ar=/[\\:]?[\s'"`;{}]+/g;function xr(e){return e.split(Ar)}const Fr={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return xr(e)}};function k(e=[]){return Array.isArray(e)?e:[e]}function D(e){return Array.from(new Set(e))}function Fe(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function R(e){return typeof e=="string"}class Qe extends Set{_map=new Map;constructor(t){if(super(),t)for(const 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 ae(e){return e instanceof Qe}function _r(e){const t=e.length;let r=-1,n,s="";const i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){s+="�";continue}if(n===37){s+="\\%";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){s+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){s+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=e.charAt(r);continue}s+=`\\${e.charAt(r)}`}return s}const ce=_r;function Or(){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)}}}function jr(e){return typeof e=="function"?{match:e}:e}function _e(e){return e.length===3}function le(e){return e!=null}function Rr(){}class kr{_map=new Map;get(t,r){const n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(r)||s.set(r,n),s.get(r)}set(t,r,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.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(([s,i])=>t(i,r,s)))}}class Tr extends Map{getFallback(t,r){const n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){const r=[];return this.forEach((n,s)=>{r.push(t(n,s))}),r}flatMap(t){const r=[];return this.forEach((n,s)=>{r.push(...t(n,s))}),r}}function ee(e){return R(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Oe(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ee(t)):[e]:[ee(e)]}function Mr(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(e[s][0]===t&&e[s][1]===r)return!1;return!0})}function fe(e){return e==null?"":Mr(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function W(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ke(e,t,r=!1){const n=e,s=t;if(Array.isArray(s))return r&&Array.isArray(s)?[...n,...s]:[...s];const i={...n};return W(n)&&W(s)&&Object.keys(s).forEach(u=>{W(n[u])&&W(s[u])||Array.isArray(n[u])&&Array.isArray(s[u])?i[u]=Ke(n[u],s[u],r):Object.assign(i,{[u]:s[u]})}),i}function J(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"?J(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:J(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?J(n):n;return r}return e}function Lr(e){return R(e[0])}function Ir(e){return R(e[0])}const G={};function Pr(e=["-",":"]){const t=e.join("|");return G[t]||(G[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),G[t].lastIndex=0,G[t]}function Nr(e,t=["-",":"],r=5){const n=Pr(t);let s,i=e.toString();const u=new Set,l=new Map;do s=!1,i=i.replace(n,(c,o,a,h,d)=>{if(!t.includes(a))return c;s=!0,u.add(o+a);const y=d+o.length+a.length+1,g={length:c.length,items:[]};l.set(d,g);for(const m of[...h.matchAll(/\S+/g)]){const E=y+m.index;let b=l.get(E)?.items;b?l.delete(E):b=[{offset:E,length:m[0].length,className:m[0]}];for(const v of b)v.className=v.className==="~"?o:v.className.replace(/^(!?)(.*)/,`$1${o}${a}$2`),g.items.push(v)}return"$".repeat(c.length)}),r-=1;while(s&&r);let f;if(typeof e=="string"){f="";let c=0;for(const[o,a]of l)f+=e.slice(c,o),f+=a.items.map(h=>h.className).join(" "),c=o+a.length;f+=e.slice(c)}else{f=e;for(const[c,o]of l)f.overwrite(c,c+o.length,o.items.map(a=>a.className).join(" "))}return{prefixes:Array.from(u),hasChanged:s,groupsByOffset:l,get expanded(){return f.toString()}}}function Dr(e,t=["-",":"],r=5){const n=Nr(e,t,r);return typeof e=="string"?n.expanded:e}const je=new Set;function Ye(e){je.has(e)||(console.warn("[unocss]",e),je.add(e))}function Xe(e){return k(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const Re="_uno_resolved";async function zr(e){let t=typeof e=="function"?await e():await e;if(Re in t)return t;t={...t},Object.defineProperty(t,Re,{value:!0,enumerable:!1});const r=t.shortcuts?Xe(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){const n=s=>{s[2]||(s[2]={});const i=s[2];i.prefix==null&&t.prefix&&(i.prefix=k(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Ze(e){const t=await zr(e);if(!t.presets)return[t];const r=(await Promise.all((t.presets||[]).flatMap(k).flatMap(Ze))).flat();return[t,...r]}function qr(e){if(e.length===0)return{};const t=[],r=[];let n=!1;const s=[],i=[],u=[];for(const f of e){if(f.pipeline===!1){n=!0;break}else f.pipeline?.include&&t.push(f.pipeline.include),f.pipeline?.exclude&&r.push(f.pipeline.exclude);f.filesystem&&s.push(f.filesystem),f.inline&&i.push(f.inline),f.plain&&u.push(f.plain)}const l={pipeline:n?!1:{include:D(Te(...t)),exclude:D(Te(...r))}};return s.length&&(l.filesystem=D(s.flat())),i.length&&(l.inline=D(i.flat())),u.length&&(l.plain=D(u.flat())),l}async function ke(e={},t={}){const r=Object.assign({},t,e),n=Fe((await Promise.all((r.presets||[]).flatMap(k).flatMap(Ze))).flat(),(w,p)=>w.name===p.name),s=[...n.filter(w=>w.enforce==="pre"),...n.filter(w=>!w.enforce),...n.filter(w=>w.enforce==="post")],i=[...s,r],u=[...i].reverse(),l=Object.assign({},$r,...i.map(w=>w.layers));function f(w){return D(i.flatMap(p=>k(p[w]||[])))}const c=f("extractors");let o=u.find(w=>w.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Fr),o&&!c.includes(o)&&c.unshift(o),c.sort((w,p)=>(w.order||0)-(p.order||0));const a=f("rules"),h={},d=a.length,y=a.filter(w=>Lr(w)?(k(w[2]?.prefix||"").forEach(C=>{h[C+w[0]]=w}),!1):!0).reverse();let g=Br(i.map(w=>w.theme));const m=f("extendTheme");for(const w of m)g=w(g)||g;const E={templates:D(i.flatMap(w=>k(w.autocomplete?.templates))),extractors:i.flatMap(w=>k(w.autocomplete?.extractors)).sort((w,p)=>(w.order||0)-(p.order||0)),shorthands:Ur(i.map(w=>w.autocomplete?.shorthands||{}))};let b=f("separators");b.length||(b=[":","-"]);const v=f("content"),$=qr(v),x={mergeSelectors:!0,warn:!0,sortLayers:w=>w,...r,blocklist:f("blocklist"),presets:s,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:g,rules:a,rulesSize:d,rulesDynamic:y,rulesStaticMap:h,preprocess:f("preprocess"),postprocess:f("postprocess"),preflights:f("preflights"),autocomplete:E,variants:f("variants").map(jr).sort((w,p)=>(w.order||0)-(p.order||0)),shortcuts:Xe(f("shortcuts")).reverse(),extractors:c,safelist:f("safelist"),separators:b,details:r.details??r.envMode==="dev",content:$,transformers:Fe(f("transformers"),(w,p)=>w.name===p.name)};for(const w of i)w?.configResolved?.(x);return x}function Br(e){return e.map(t=>t?J(t):{}).reduce((t,r)=>Ke(t,r),{})}function Ur(e){return e.reduce((t,r)=>{const n={};for(const s in r){const i=r[s];Array.isArray(i)?n[s]=`(${i.join("|")})`:n[s]=i}return{...t,...n}},{})}function Te(...e){return e.flatMap(Vr)}function Vr(e){return Array.isArray(e)?e:e?[e]:[]}const Wr="66.1.3",z={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"};class ye{constructor(t={},r={}){this.userConfig=t,this.defaults=r}version=Wr;events=Or();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){const n=new ye(t,r);return n.config=await ke(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 ke(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){const s={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(const i of this.config.extractors){const u=await i.extract?.(s);if(u)if(ae(u)&&ae(n))for(const l of u)n.setCount(l,n.getCount(l)+u.getCount(l));else for(const l of u)n.add(l)}return n}makeContext(t,r){const n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:z,variantHandlers:r[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;const n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let s=t;for(const f of this.config.preprocess)s=f(t);if(this.isBlocked(s)){this.blocked.add(t),this.cache.set(n,null);return}const i=await this.matchVariants(t,s);if(i.every(f=>!f||this.isBlocked(f[1]))){this.blocked.add(t),this.cache.set(n,null);return}const u=async f=>{const c=this.makeContext(t,[r||f[0],f[1],f[2],f[3]]);this.config.details&&(c.variants=[...f[3]]);const o=await this.expandShortcut(c.currentSelector,c);return o?await this.stringifyShortcuts(c.variantMatch,c,o[0],o[1]):(await this.parseUtil(c.variantMatch,c))?.map(h=>this.stringifyUtil(h,c)).filter(le)},l=(await Promise.all(i.map(f=>u(f)))).flat().filter(f=>!!f);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(t,r={}){const{id:n,scope:s,preflights:i=!0,safelist:u=!0,minify:l=!1,extendedInfo:f=!1}=r,c=R(t)?await this.applyExtractors(t,n,f?new Qe:new Set):Array.isArray(t)?new Set(t):t;if(u){const p={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(p):C).forEach(C=>{const S=C.trim();S&&!c.has(S)&&c.add(S)})}const o=l?"":` `,a=new Set([H]),h=f?new Map:new Set,d=new Map;let y={};const g=Array.from(c).map(async p=>{if(h.has(p))return;const C=await this.parseToken(p);if(C!=null){h instanceof Map?h.set(p,{data:C,count:ae(c)?c.getCount(p):-1}):h.add(p);for(const S of C){const T=S[3]||"",L=S[4]?.layer;d.has(T)||d.set(T,[]),d.get(T).push(S),L&&a.add(L)}}});await Promise.all(g),await(async()=>{if(!i)return;const p={generator:this,theme:this.config.theme},C=new Set([]);this.config.preflights.forEach(({layer:S=de})=>{a.add(S),C.add(S)}),y=Object.fromEntries(await Promise.all(Array.from(C).map(async S=>{const L=(await Promise.all(this.config.preflights.filter(I=>(I.layer||de)===S).map(async I=>await I.getCSS(p)))).filter(Boolean).join(o);return[S,L]})))})();const m=this.config.sortLayers(Array.from(a).sort((p,C)=>(this.config.layers[p]??0)-(this.config.layers[C]??0)||p.localeCompare(C))),E={},b=this.config.outputToCssLayers,v=p=>{let C=p;return typeof b=="object"&&(C=b.cssLayerName?.(p)),C===null?null:C??p},$=(p=H)=>{if(E[p])return E[p];let C=Array.from(d).sort((L,I)=>(this.parentOrders.get(L[0])??0)-(this.parentOrders.get(I[0])??0)||L[0]?.localeCompare(I[0]||"")||0).map(([L,I])=>{const A=I.length,F=I.filter(O=>(O[4]?.layer||H)===p).sort((O,P)=>O[0]-P[0]||(O[4]?.sort||0)-(P[4]?.sort||0)||O[5]?.currentSelector?.localeCompare(P[5]?.currentSelector??"")||O[1]?.localeCompare(P[1]||"")||O[2]?.localeCompare(P[2]||"")||0).map(([,O,P,,B,,te])=>[[[(O&&Jr(O,s))??"",B?.sort??0]],P,!!(te??B?.noMerge)]);if(!F.length)return;const _=F.reverse().map(([O,P,B],te)=>{if(!B&&this.config.mergeSelectors)for(let q=te+1;q<A;q++){const N=F[q];if(N&&!N[2]&&(O&&N[0]||O==null&&N[0]==null)&&N[1]===P)return O&&N[0]&&N[0].push(...O),null}const re=O?D(O.sort((q,N)=>q[1]-N[1]||q[0]?.localeCompare(N[0]||"")||0).map(q=>q[0]).filter(Boolean)):[];return re.length?`${re.join(`,${o}`)}{${P}}`:P}).filter(Boolean),j=Array.from(new Set(_)).reverse().join(o);if(!L)return j;const M=L.split(" $$ ");return`${M.join("{")}{${o}${j}${o}${"}".repeat(M.length)}`}).filter(Boolean).join(o);i&&(C=[y[p],C].filter(Boolean).join(o));let S;b&&C&&(S=v(p),S!==null&&(C=`@layer ${S}{${o}${C}${o}}`));const T=l?"":`/* layer: ${p}${S&&S!==p?`, alias: ${S}`:""} */${o}`;return E[p]=C?T+C:""},x=(p=m,C)=>{const S=p.filter(T=>!C?.includes(T));return[b&&S.length>0?`@layer ${S.map(v).filter(le).join(", ")};`:void 0,...S.map(T=>$(T)||"")].filter(Boolean).join(o)};return{get css(){return x()},layers:m,matched:h,getLayers:x,getLayer:$,setLayer:async(p,C)=>{const S=await C($(p));return E[p]=S,S}}}async matchVariants(t,r){const n={rawSelector:t,theme:this.config.theme,generator:this},s=async i=>{let u=!0;const[,,l,f]=i;for(;u;){u=!1;const c=i[1];for(const o of this.config.variants){if(!o.multiPass&&f.has(o))continue;let a=await o.match(c,n);if(a){if(R(a)){if(a===c)continue;a={matcher:a}}if(Array.isArray(a)){if(!a.length)continue;if(a.length===1)a=a[0];else{if(o.multiPass)throw new Error("multiPass can not be used together with array return variants");const h=a.map(d=>{const y=d.matcher??c,g=[d,...l],m=new Set(f);return m.add(o),[i[0],y,g,m]});return(await Promise.all(h.map(d=>s(d)))).flat()}}i[1]=a.matcher??c,l.unshift(a),f.add(o),u=!0;break}}if(!u)break;if(l.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await s([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){const i=r.slice().sort((c,o)=>(c.order||0)-(o.order||0)).reduceRight((c,o)=>a=>{const h=o.body?.(a.entries)||a.entries,d=Array.isArray(o.parent)?o.parent:[o.parent,void 0],y=o.selector?.(a.selector,h);return(o.handle??Kr)({...a,entries:h,selector:y||a.selector,parent:d[0]||a.parent,parentOrder:d[1]||a.parentOrder,layer:o.layer||a.layer,sort:o.sort||a.sort},c)},c=>c)({prefix:"",selector:Qr(n),pseudo:"",entries:t[2]}),{parent:u,parentOrder:l}=i;u!=null&&l!=null&&this.parentOrders.set(u,l);const f={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:u,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const c of this.config.postprocess)c(f);return f}constructCustomCSS(t,r,n){const s=ee(r);if(R(s))return s;const{selector:i,entries:u,parent:l}=this.applyVariants([0,n||t.rawSelector,s,void 0,t.variantHandlers]),f=`${i}{${fe(u)}}`;return l?`${l}{${f}}`:f}async parseUtil(t,r,n=!1,s){const i=R(t)?await this.matchVariants(t):[t],u=async([f,c,o])=>{this.config.details&&(r.rules=r.rules??[]);const a=this.config.rulesStaticMap[c];if(a&&a[1]&&(n||!a[2]?.internal)){this.config.details&&r.rules.push(a);const d=this.config.rules.indexOf(a),y=Oe(a[1]).filter(m=>m.length),g=a[2];if(y.length)return r.generator.activatedRules.add(a),y.map(m=>R(m)?[d,m,g]:[d,f,m,g,o])}r.variantHandlers=o;const{rulesDynamic:h}=this.config;for(const d of h){const[y,g,m]=d;if(m?.internal&&!n)continue;let E=c;if(m?.prefix){const x=k(m.prefix);if(s){const w=k(s);if(!x.some(p=>w.includes(p)))continue}else{const w=x.find(p=>c.startsWith(p));if(w==null)continue;E=c.slice(w.length)}}const b=E.match(y);if(!b)continue;let v=await g(b,r);if(!v)continue;if(this.config.details&&r.rules.push(d),typeof v!="string")if(Symbol.asyncIterator in v){const x=[];for await(const w of v)w&&x.push(w);v=x}else Symbol.iterator in v&&!Array.isArray(v)&&(v=Array.from(v).filter(le));const $=Oe(v).filter(x=>x.length);if($.length){r.generator.activatedRules.add(d);const x=this.config.rules.indexOf(d);return $.map(w=>{if(R(w))return[x,w,m];let p=o,C=m;for(const S of w)S[0]===z.variants?typeof S[1]=="function"?p=S[1](p)||p:p=[...k(S[1]),...p]:S[0]===z.parent?p=[{parent:S[1]},...p]:S[0]===z.selector?p=[{selector:S[1]},...p]:S[0]===z.layer?p=[{layer:S[1]},...p]:S[0]===z.sort?C={...C,sort:S[1]}:S[0]===z.noMerge&&(C={...C,noMerge:S[1]});return[x,f,w,C,p]})}}},l=(await Promise.all(i.map(f=>u(f)))).flat().filter(f=>!!f);if(l.length)return l}stringifyUtil(t,r){if(!t)return;if(_e(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];const{selector:n,entries:s,parent:i,layer:u,sort:l,noMerge:f}=this.applyVariants(t),c=fe(s);if(!c)return;const{layer:o,sort:a,...h}=t[3]??{},d={...h,layer:u??o,sort:l??a};return[t[0],n,c,i,d,this.config.details?r:void 0,f]}async expandShortcut(t,r,n=5){if(n===0)return;const s=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:Rr;let i,u,l,f;for(const c of this.config.shortcuts){let o=t;if(c[2]?.prefix){const h=k(c[2].prefix).find(d=>t.startsWith(d));if(h==null)continue;o=t.slice(h.length)}if(Ir(c)){if(c[0]===o){i=i||c[2],u=c[1],s(c);break}}else{const a=o.match(c[0]);if(a&&(u=c[1](a,r)),u){i=i||c[2],s(c);break}}}if(u&&(l=D(k(u).filter(R).map(c=>Dr(c.trim()).split(/\s+/g)).flat()),f=k(u).filter(c=>!R(c)).map(c=>({handles:[],value:c}))),!u){const c=R(t)?await this.matchVariants(t):[t];for(const o of c){const[a,h,d]=o;if(a!==h){const y=await this.expandShortcut(h,r,n-1);y&&(l=y[0].filter(R).map(g=>a.replace(h,g)),f=y[0].filter(g=>!R(g)).map(g=>({handles:[...g.handles,...d],value:g.value})))}}}if(!(!l?.length&&!f?.length))return[[await Promise.all(k(l).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),f].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(t,r,n,s={layer:this.config.shortcutsLayer}){const i=new Tr,u=(await Promise.all(D(n).map(async o=>{const a=R(o)?await this.parseUtil(o,r,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ee(o.value),void 0,o.handles]];return!a&&this.config.warn&&Ye(`unmatched utility "${o}" in shortcut "${t[1]}"`),a||[]}))).flat(1).filter(Boolean).sort((o,a)=>o[0]-a[0]),[l,,f]=t,c=[];for(const o of u){if(_e(o)){c.push([o[0],void 0,o[1],void 0,o[2],r,void 0]);continue}const{selector:a,entries:h,parent:d,sort:y,noMerge:g,layer:m}=this.applyVariants(o,[...o[4],...f],l);i.getFallback(m??s.layer,new kr).getFallback(a,d,[[],o[0]])[0].push([h,!!(g??o[3]?.noMerge),y??0])}return c.concat(i.flatMap((o,a)=>o.map(([h,d],y,g)=>{const m=(b,v,$)=>{const x=Math.max(...$.map(p=>p[1])),w=$.map(p=>p[0]);return(b?[w.flat(1)]:w).map(p=>{const C=fe(p);if(C)return[d,y,C,g,{...s,noMerge:v,sort:x,layer:a},r,void 0]})};return[[h.filter(([,b])=>b).map(([b,,v])=>[b,v]),!0],[h.filter(([,b])=>!b).map(([b,,v])=>[b,v]),!1]].map(([b,v])=>[...m(!1,v,b.filter(([$])=>$.some(x=>x[0]===z.shortcutsNoMerge))),...m(!0,v,b.filter(([$])=>$.every(x=>x[0]!==z.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):R(r)?r===t:r.test(t))}getBlocked(t){const r=this.config.blocklist.find(n=>{const s=Array.isArray(n)?n[0]:n;return typeof s=="function"?s(t):R(s)?s===t:s.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}}async function Gr(e,t){return await ye.create(e,t)}const et=/\s\$\$\s+/g;function Hr(e){return et.test(e)}function Jr(e,t){return Hr(e)?e.replace(et,t?` ${t} `:" "):t?`${t} ${e}`:e}const Me=/^\[(.+?)(~?=)"(.*)"\]$/;function Qr(e){return Me.test(e)?e.replace(Me,(t,r,n,s)=>`[${ce(r)}${n}"${ce(s)}"]`):`.${ce(e)}`}function Kr(e,t){return t(e)}var Le={};const tt=["academicons","akar-icons","ant-design","arcticons","aws","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-cyber","streamline-emojis","streamline-flex","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],Yr=3;function Xr(e){return(t={})=>{const{scale:r=1,mode:n="auto",prefix:s="i-",warn:i=!1,iconifyCollectionsNames:u,collections:l,extraProperties:f={},customizations:c={},autoInstall:o=!1,collectionsNodeResolvePath:a,layer:h="icons",unit:d,processor:y}=t,g=Zr(),m={addXmlNs:!0,scale:r,customCollections:l,autoInstall:o,cwd:a,warn:void 0,customizations:{...c,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(b,v,$){await c.iconCustomizer?.(b,v,$),d&&($.width||($.width=`${r}${d}`),$.height||($.height=`${r}${d}`))}}};let E;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Se,parseIconWithLoader:Ie},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async b=>{let[v,$,x=n]=b;E=E||await e(t);const w={},p=await Ie($,E,{...m,usedProps:w},u);if(!p){i&&!g.isESLint&&Ye(`failed to load icon "${v}"`);return}let C;const S=`url("data:image/svg+xml;utf8,${Se(p.svg)}")`;return x==="auto"&&(x=p.svg.includes("currentColor")?"mask":"bg"),x==="mask"?C={"--un-icon":S,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...w}:C={background:`${S} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...w},y?.(C,{...p,icon:p.name,mode:x}),C},{layer:h,prefix:s}]]}}}function rt(e,t,r=new Map){function n(s){if(tt.includes(s))return r.has(s)||r.set(s,e(`${t}@iconify-json/${s}/icons.json`)),r.get(s)}return async(s,i,u)=>{let l=await Je(s,i,u);if(l)return l;const f=await n(s);if(f){const c=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];l=await He(f,s,c,u)}return l}}function Zr(){const e=typeof process<"u"&&process.stdout,t=e&&!!Le.VSCODE_CWD,r=e&&!!Le.ESLINT;return{isNode:e,isVSCode:t,isESLint:r}}async function Ie(e,t,r={},n=[]){let s="",i="",u;const l=new Set([...tt,...n,...Object.keys(r.customCollections||{})]);if(e.includes(":")){if([s,i]=e.split(":"),!l.has(s))return;u=await t(s,i,r)}else{const f=e.split(/-/g);for(let c=Yr;c>=1&&(s=f.slice(0,c).join("-"),!(!!l.has(s)&&(i=f.slice(c).join("-"),u=await t(s,i,r),u)));c--);}if(u)return{collection:s,name:i,svg:u}}function en(e){return rt(Xt,e)}const un=Xr(async e=>{const t=e?.customFetch,r=e?.cdn;return t&&r?rt(t,r):r?en(r):Je});function tn(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function Pe(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ne(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var De=["Webkit","Moz","ms"];function rn(e){const t={};function r(n){const s=t[n];if(s)return s;let i=tn(n);if(i!=="filter"&&i in e)return t[n]=Ne(i);i=Pe(i);for(let u=0;u<De.length;u++){const l=`${De[u]}${i}`;if(l in e)return t[n]=Ne(Pe(l))}return n}return({entries:n})=>n.forEach(s=>{s[0].startsWith("--")||(s[0]=r(s[0]))})}function nn(e){return e.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function hn(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,r=window.document,n=()=>r.documentElement,s=t.__unocss||{},i=Object.assign({},e,s.runtime),u=i.defaults||{},l=i.cloakAttribute??"un-cloak";i.autoPrefix&&(u.postprocess=k(u.postprocess)).unshift(rn(r.createElement("div").style)),i.configResolved?.(s,u);const f=await Gr(s,u),c=A=>i.inject?i.inject(A):n().prepend(A),o=()=>i.rootElement?i.rootElement():r.body,a=new Map;let h=!0;const d=new Set;let y,g,m=[];const E=()=>new Promise(A=>{m.push(A),g!=null&&clearTimeout(g),g=setTimeout(()=>$().then(()=>{const F=m;m=[],F.forEach(_=>_())}),0)});function b(A,F=!1){if(A.nodeType!==1)return;const _=A;_.hasAttribute(l)&&_.removeAttribute(l),F&&_.querySelectorAll(`[${l}]`).forEach(j=>{j.removeAttribute(l)})}function v(A,F){let _=a.get(A);if(!_)if(_=r.createElement("style"),_.setAttribute("data-unocss-runtime-layer",A),a.set(A,_),F==null)c(_);else{const j=v(F),M=j.parentNode;M?M.insertBefore(_,j.nextSibling):c(_)}return _}async function $(){const A=[...d],F=await f.generate(A);return F.layers.reduce((j,M)=>(v(M,j).innerHTML=F.getLayer(M)??"",M),void 0),A.filter(j=>!F.matched.has(j)).forEach(j=>d.delete(j)),{...F,getStyleElement:j=>a.get(j),getStyleElements:()=>a}}async function x(A){const F=d.size;await f.applyExtractors(A,void 0,d),F!==d.size&&await E()}async function w(A=o()){const F=A&&A.outerHTML;F&&(await x(`${F} ${nn(F)}`),b(n()),b(A,!0))}const p=new MutationObserver(A=>{h||A.forEach(async F=>{if(F.target.nodeType!==1)return;const _=F.target;for(const j of a)if(_===j[1])return;if(F.type==="childList")F.addedNodes.forEach(async j=>{if(j.nodeType!=