vite-plugin-vue-devtools 7.0.15 → 7.0.16
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/dist/client/assets/{index-1Frwp5tw.css → index-I_7g5ZQb.css} +1 -1
- package/dist/client/assets/index-i1LJCmJt.js +1096 -0
- package/dist/client/assets/unocss-runtime-hgvl0qIb.js +2 -0
- package/dist/client/index.html +2 -2
- package/dist/vite.cjs +7741 -27
- package/dist/vite.d.cts +54 -2
- package/dist/vite.d.mts +54 -2
- package/dist/vite.d.ts +54 -2
- package/dist/vite.mjs +7728 -21
- package/package.json +5 -6
- package/src/overlay/devtools-overlay.js +4 -4
- package/src/overlay.js +1 -1
- package/dist/client/assets/index-pUxGHMED.js +0 -1096
- package/dist/client/assets/unocss-runtime-BUS5ojC8.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const Ne=/"(?:_|\\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*:/,Ie=/"(?: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*:/,Fe=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function ze(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){De(e);return}return t}function De(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ue(e,t={}){if(typeof e!="string")return e;const r=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){const s=r.toLowerCase();if(s==="true")return!0;if(s==="false")return!1;if(s==="undefined")return;if(s==="null")return null;if(s==="nan")return Number.NaN;if(s==="infinity")return Number.POSITIVE_INFINITY;if(s==="-infinity")return Number.NEGATIVE_INFINITY}if(!Fe.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Ne.test(e)||Ie.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,ze)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const Ve=/#/g,Be=/&/g,He=/\//g,qe=/=/g,ee=/\+/g,Ge=/%5e/gi,We=/%60/gi,Je=/%7c/gi,Qe=/%20/gi;function Ke(e){return encodeURI(""+e).replace(Je,"|")}function Y(e){return Ke(typeof e=="string"?e:JSON.stringify(e)).replace(ee,"%2B").replace(Qe,"+").replace(Ve,"%23").replace(Be,"%26").replace(We,"`").replace(Ge,"^").replace(He,"%2F")}function G(e){return Y(e).replace(qe,"%3D")}function be(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Ye(e){return be(e.replace(ee," "))}function Xe(e){return be(e.replace(ee," "))}function Ze(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const s=r.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const n=Ye(s[1]);if(n==="__proto__"||n==="constructor")continue;const i=Xe(s[2]||"");t[n]===void 0?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}function et(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${G(e)}=${Y(r)}`).join("&"):`${G(e)}=${Y(t)}`:G(e)}function tt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>et(t,e[t])).filter(Boolean).join("&")}const rt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,nt=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,st=/^([/\\]\s*){2,}[^/\\]/,ot=/\/$|\/\?|\/#/,it=/^\.?\//;function Se(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?rt.test(e):nt.test(e)||(t.acceptRelative?st.test(e):!1)}function X(e="",t){return t?ot.test(e):e.endsWith("/")}function at(e="",t){if(!t)return(X(e)?e.slice(0,-1):e)||"/";if(!X(e,!0))return e||"/";let r=e,s="";const n=e.indexOf("#");n>=0&&(r=e.slice(0,n),s=e.slice(n));const[i,...c]=r.split("?");return(i.slice(0,-1)||"/")+(c.length>0?`?${c.join("?")}`:"")+s}function ct(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(X(e,!0))return e||"/";let r=e,s="";const n=e.indexOf("#");if(n>=0&&(r=e.slice(0,n),s=e.slice(n),!r))return s;const[i,...c]=r.split("?");return i+"/"+(c.length>0?`?${c.join("?")}`:"")+s}function lt(e,t){if(ut(t)||Se(e))return e;const r=at(t);return e.startsWith(r)?e:pt(r,e)}function ft(e,t){const r=ve(e),s={...Ze(r.search),...t};return r.search=tt(s),dt(r)}function ut(e){return!e||e==="/"}function ht(e){return e&&e!=="/"}function pt(e,...t){let r=e||"";for(const s of t.filter(n=>ht(n)))if(r){const n=s.replace(it,"");r=ct(r)+n}else r=s;return r}const _e=Symbol.for("ufo:protocolRelative");function ve(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,h,p=""]=r;return{protocol:h.toLowerCase(),pathname:p,href:h+p,auth:"",host:"",search:"",hash:""}}if(!Se(e,{acceptRelative:!0}))return t?ve(t+e):ne(e);const[,s="",n,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,c="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:u,hash:o}=ne(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:s.toLowerCase(),auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:c,pathname:l,search:u,hash:o,[_e]:!s}}function ne(e=""){const[t="",r="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:s}}function dt(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",n=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[_e]?(e.protocol||"")+"//":"")+n+i+t+r+s}class mt extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}}function gt(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",n=`[${r}] ${JSON.stringify(s)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",c=`${n}: ${i}${t?` ${t}`:""}`,a=new mt(c,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const yt=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function se(e="GET"){return yt.has(e.toUpperCase())}function wt(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 bt=new Set(["image/svg","application/xml","application/xhtml","application/html"]),St=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function _t(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return St.test(t)?"json":bt.has(t)||t.startsWith("text/")?"text":"blob"}function vt(e,t,r=globalThis.Headers){const s={...t,...e};if(t?.params&&e?.params&&(s.params={...t?.params,...e?.params}),t?.query&&e?.query&&(s.query={...t?.query,...e?.query}),t?.headers&&e?.headers){s.headers=new r(t?.headers||{});for(const[n,i]of new r(e?.headers||{}))s.headers.set(n,i)}return s}const Et=new Set([408,409,425,429,500,502,503,504]),$t=new Set([101,204,205,304]);function Ee(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function n(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let o;typeof a.options.retry=="number"?o=a.options.retry:o=se(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(o>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):Et.has(h))){const p=a.options.retryDelay||0;return p>0&&await new Promise(y=>setTimeout(y,p)),i(a.request,{...a.options,retry:o-1,timeout:a.options.timeout})}}const u=gt(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const o={request:l,options:vt(u,e.defaults,r),response:void 0,error:void 0};if(o.options.method=o.options.method?.toUpperCase(),o.options.onRequest&&await o.options.onRequest(o),typeof o.request=="string"&&(o.options.baseURL&&(o.request=lt(o.request,o.options.baseURL)),(o.options.query||o.options.params)&&(o.request=ft(o.request,{...o.options.params,...o.options.query}))),o.options.body&&se(o.options.method)&&(wt(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"))),!o.options.signal&&o.options.timeout){const p=new s;setTimeout(()=>p.abort(),o.options.timeout),o.options.signal=p.signal}try{o.response=await t(o.request,o.options)}catch(p){return o.error=p,o.options.onRequestError&&await o.options.onRequestError(o),await n(o)}if(o.response.body&&!$t.has(o.response.status)&&o.options.method!=="HEAD"){const p=(o.options.parseResponse?"json":o.options.responseType)||_t(o.response.headers.get("content-type")||"");switch(p){case"json":{const y=await o.response.text(),v=o.options.parseResponse||Ue;o.response._data=v(y);break}case"stream":{o.response._data=o.response.body;break}default:o.response._data=await o.response[p]()}}return o.options.onResponse&&await o.options.onResponse(o),!o.options.ignoreResponseError&&o.response.status>=400&&o.response.status<600?(o.options.onResponseError&&await o.options.onResponseError(o),await n(o)):o.response},c=async function(l,u){return(await i(l,u))._data};return c.raw=i,c.native=(...a)=>t(...a),c.create=(a={})=>Ee({...e,defaults:{...e.defaults,...a}}),c}const te=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")}(),Ct=te.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),xt=te.Headers,At=te.AbortController,Ot=Ee({fetch:Ct,Headers:xt,AbortController:At}),Rt=Ot;function Tt(e){const t=e.length;let r=-1,s,n="";const i=e.charCodeAt(0);for(;++r<t;){if(s=e.charCodeAt(r),s===0){n+="�";continue}if(s===37){n+="\\%";continue}if(s===44){n+="\\,";continue}if(s>=1&&s<=31||s===127||r===0&&s>=48&&s<=57||r===1&&s>=48&&s<=57&&i===45){n+=`\\${s.toString(16)} `;continue}if(r===0&&t===1&&s===45){n+=`\\${e.charAt(r)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}const W=Tt;function P(e=[]){return Array.isArray(e)?e:[e]}function H(e){return Array.from(new Set(e))}function jt(e,t){return e.reduce((r,s)=>(r.findIndex(i=>t(s,i))===-1&&r.push(s),r),[])}function O(e){return typeof e=="string"}function F(e){return O(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Mt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>F(t)):[e]:[F(e)]}function Pt(e){return e.filter(([t,r],s)=>{if(t.startsWith("$$"))return!1;for(let n=s-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function J(e){return e==null?"":Pt(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function D(e){return e&&typeof e=="object"&&!Array.isArray(e)}function $e(e,t,r=!1){const s=e,n=t;if(Array.isArray(n))return r&&Array.isArray(n)?[...s,...n]:[...n];const i={...s};return D(s)&&D(n)&&Object.keys(n).forEach(c=>{D(s[c])&&D(n[c])||Array.isArray(s[c])&&Array.isArray(n[c])?i[c]=$e(s[c],n[c],r):Object.assign(i,{[c]:n[c]})}),i}function V(e){let t,r,s;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(s=e[t])&&typeof s=="object"?V(s):s;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:V(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(s=e[t])&&typeof s=="object"?V(s):s;return r}return e}function Lt(e){return O(e[0])}function kt(e){return O(e[0])}const oe="$$shortcut-no-merge";function Nt(e){return typeof e=="function"?{match:e}:e}function ie(e){return e.length===3}function It(e){return e!=null}function Ft(){}var zt=Object.defineProperty,Dt=(e,t,r)=>t in e?zt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ut=(e,t,r)=>(Dt(e,typeof t!="symbol"?t+"":t,r),r);class Vt{constructor(){Ut(this,"_map",new Map)}get(t,r){const s=this._map.get(t);if(s)return s.get(r)}getFallback(t,r,s){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,s),n.get(r)}set(t,r,s){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,s),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,s])=>Array.from(s.entries()).map(([n,i])=>t(i,r,n)))}}var Bt=Object.defineProperty,Ht=(e,t,r)=>t in e?Bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qt=(e,t,r)=>(Ht(e,typeof t!="symbol"?t+"":t,r),r);class Ce extends Set{constructor(t){super(t),qt(this,"_map"),this._map??(this._map=new Map)}add(t){return this._map??(this._map=new Map),this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}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 Q(e){return e instanceof Ce}const U={};function Gt(e=["-",":"]){const t=e.join("|");return U[t]||(U[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),U[t].lastIndex=0,U[t]}function Wt(e,t=["-",":"],r=5){const s=Gt(t);let n,i=e.toString();const c=new Set,a=new Map;do n=!1,i=i.replace(s,(u,o,h,p,y)=>{if(!t.includes(h))return u;n=!0,c.add(o+h);const v=y+o.length+h.length+1,g={length:u.length,items:[]};a.set(y,g);for(const d of[...p.matchAll(/\S+/g)]){const E=v+d.index;let w=a.get(E)?.items;w?a.delete(E):w=[{offset:E,length:d[0].length,className:d[0]}];for(const S of w)S.className=S.className==="~"?o:S.className.replace(/^(!?)(.*)/,`$1${o}${h}$2`),g.items.push(S)}return"$".repeat(u.length)}),r-=1;while(n&&r);let l;if(typeof e=="string"){l="";let u=0;for(const[o,h]of a)l+=e.slice(u,o),l+=h.items.map(p=>p.className).join(" "),u=o+h.length;l+=e.slice(u)}else{l=e;for(const[u,o]of a)l.overwrite(u,u+o.length,o.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(c),hasChanged:n,groupsByOffset:a,get expanded(){return l.toString()}}}function Jt(e,t=["-",":"],r=5){const s=Wt(e,t,r);return typeof e=="string"?s.expanded:e}const ae=new Set;function xe(e){ae.has(e)||(console.warn("[unocss]",e),ae.add(e))}const Qt=/[\\:]?[\s'"`;{}]+/g;function Kt(e){return e.split(Qt)}const Yt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Kt(e)}};function Xt(){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)}}}const B="default",Z="preflights",Zt="shortcuts",er="imports",tr={[er]:-200,[Z]:-100,[Zt]:-10,[B]:0};function Ae(e){return P(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const ce="_uno_resolved";function rr(e){let t=typeof e=="function"?e():e;if(ce in t)return t;t={...t},Object.defineProperty(t,ce,{value:!0,enumerable:!1});const r=t.shortcuts?Ae(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){const s=n=>{n[2]||(n[2]={});const i=n[2];i.prefix==null&&t.prefix&&(i.prefix=P(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(s),t.rules?.forEach(s)}return t}function Oe(e){const t=rr(e);if(!t.presets)return[t];const r=(t.presets||[]).flatMap(P).flatMap(Oe);return[t,...r]}function le(e={},t={}){const r=Object.assign({},t,e),s=jt((r.presets||[]).flatMap(P).flatMap(Oe),(f,b)=>f.name===b.name),n=[...s.filter(f=>f.enforce==="pre"),...s.filter(f=>!f.enforce),...s.filter(f=>f.enforce==="post")],i=[...n,r],c=[...i].reverse(),a=Object.assign({},tr,...i.map(f=>f.layers));function l(f){return H(i.flatMap(b=>P(b[f]||[])))}const u=l("extractors");let o=c.find(f=>f.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Yt),o&&!u.includes(o)&&u.unshift(o),u.sort((f,b)=>(f.order||0)-(b.order||0));const h=l("rules"),p={},y=h.length,v=h.map((f,b)=>{if(Lt(f)){P(f[2]?.prefix||"").forEach(x=>{p[x+f[0]]=[b,f[1],f[2],f]});return}return[b,...f]}).filter(Boolean).reverse();let g=nr(i.map(f=>f.theme));const d=l("extendTheme");for(const f of d)g=f(g)||g;const E={templates:H(i.flatMap(f=>P(f.autocomplete?.templates))),extractors:i.flatMap(f=>P(f.autocomplete?.extractors)).sort((f,b)=>(f.order||0)-(b.order||0)),shorthands:sr(i.map(f=>f.autocomplete?.shorthands||{}))};let w=l("separators");w.length||(w=[":","-"]);const S={mergeSelectors:!0,warn:!0,sortLayers:f=>f,...r,blocklist:l("blocklist"),presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:g,rulesSize:y,rulesDynamic:v,rulesStaticMap:p,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:E,variants:l("variants").map(Nt).sort((f,b)=>(f.order||0)-(b.order||0)),shortcuts:Ae(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:w,details:r.details??r.envMode==="dev"};for(const f of i)f?.configResolved?.(S);return S}function nr(e){return e.map(t=>t?V(t):{}).reduce((t,r)=>$e(t,r),{})}function sr(e){return e.reduce((t,r)=>{const s={};for(const n in r){const i=r[n];Array.isArray(i)?s[n]=`(${i.join("|")})`:s[n]=i}return{...t,...s}},{})}const or="0.58.5";var ir=Object.defineProperty,ar=(e,t,r)=>t in e?ir(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,N=(e,t,r)=>(ar(e,typeof t!="symbol"?t+"":t,r),r);class cr{constructor(t={},r={}){this.userConfig=t,this.defaults=r,N(this,"version",or),N(this,"_cache",new Map),N(this,"config"),N(this,"blocked",new Set),N(this,"parentOrders",new Map),N(this,"events",Xt()),this.config=le(t,r),this.events.emit("config",this.config)}setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=le(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,s=new Set){const n={original:t,code:t,id:r,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const c=await i.extract?.(n);if(c)if(Q(c)&&Q(s))for(const a of c)s.setCount(a,s.getCount(a)+c.getCount(a));else for(const a of c)s.add(a)}return s}makeContext(t,r){const s={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(s,...n),variantMatch:r};return s}async parseToken(t,r){if(this.blocked.has(t))return;const s=`${t}${r?` ${r}`:""}`;if(this._cache.has(s))return this._cache.get(s);let n=t;for(const u of this.config.preprocess)n=u(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(s,null);return}const i=await this.matchVariants(t,n);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(s,null);return}const c=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(c.variants=[...i[3]]);const a=await this.expandShortcut(c.currentSelector,c),l=a?await this.stringifyShortcuts(c.variantMatch,c,a[0],a[1]):(await this.parseUtil(c.variantMatch,c))?.map(u=>this.stringifyUtil(u,c)).filter(It);if(l?.length)return this._cache.set(s,l),l;this._cache.set(s,null)}async generate(t,r={}){const{id:s,scope:n,preflights:i=!0,safelist:c=!0,minify:a=!1,extendedInfo:l=!1}=r,u=O(t)?await this.applyExtractors(t,s,l?new Ce:new Set):Array.isArray(t)?new Set(t):t;c&&this.config.safelist.forEach(f=>{u.has(f)||u.add(f)});const o=a?"":`
|
|
2
|
+
`,h=new Set([B]),p=l?new Map:new Set,y=new Map;let v={};const g=Array.from(u).map(async f=>{if(p.has(f))return;const b=await this.parseToken(f);if(b!=null){p instanceof Map?p.set(f,{data:b,count:Q(u)?u.getCount(f):-1}):p.add(f);for(const C of b){const x=C[3]||"",A=C[4]?.layer;y.has(x)||y.set(x,[]),y.get(x).push(C),A&&h.add(A)}}});await Promise.all(g),await(async()=>{if(!i)return;const f={generator:this,theme:this.config.theme},b=new Set([]);this.config.preflights.forEach(({layer:C=Z})=>{h.add(C),b.add(C)}),v=Object.fromEntries(await Promise.all(Array.from(b).map(async C=>{const A=(await Promise.all(this.config.preflights.filter(j=>(j.layer||Z)===C).map(async j=>await j.getCSS(f)))).filter(Boolean).join(o);return[C,A]})))})();const d=this.config.sortLayers(Array.from(h).sort((f,b)=>(this.config.layers[f]??0)-(this.config.layers[b]??0)||f.localeCompare(b))),E={},w=(f=B)=>{if(E[f])return E[f];let b=Array.from(y).sort((x,A)=>(this.parentOrders.get(x[0])??0)-(this.parentOrders.get(A[0])??0)||x[0]?.localeCompare(A[0]||"")||0).map(([x,A])=>{const j=A.length,k=A.filter(m=>(m[4]?.layer||B)===f).sort((m,_)=>m[0]-_[0]||(m[4]?.sort||0)-(_[4]?.sort||0)||m[5]?.currentSelector?.localeCompare(_[5]?.currentSelector??"")||m[1]?.localeCompare(_[1]||"")||m[2]?.localeCompare(_[2]||"")||0).map(([,m,_,,$,,R])=>[[[(m&&ur(m,n))??"",$?.sort??0]],_,!!(R??$?.noMerge)]);if(!k.length)return;const I=k.reverse().map(([m,_,$],R)=>{if(!$&&this.config.mergeSelectors)for(let T=R+1;T<j;T++){const L=k[T];if(L&&!L[2]&&(m&&L[0]||m==null&&L[0]==null)&&L[1]===_)return m&&L[0]&&L[0].push(...m),null}const M=m?H(m.sort((T,L)=>T[1]-L[1]||T[0]?.localeCompare(L[0]||"")||0).map(T=>T[0]).filter(Boolean)):[];return M.length?`${M.join(`,${o}`)}{${_}}`:_}).filter(Boolean).reverse().join(o);if(!x)return I;const z=x.split(" $$ ");return`${z.join("{")}{${o}${I}${o}${"}".repeat(z.length)}`}).filter(Boolean).join(o);i&&(b=[v[f],b].filter(Boolean).join(o));const C=a?"":`/* layer: ${f} */${o}`;return E[f]=b?C+b:""},S=(f=d,b)=>f.filter(C=>!b?.includes(C)).map(C=>w(C)||"").filter(Boolean).join(o);return{get css(){return S()},layers:d,matched:p,getLayers:S,getLayer:w}}async matchVariants(t,r){const s=new Set,n=[];let i=r||t,c=!0;const a={rawSelector:t,theme:this.config.theme,generator:this};for(;c;){c=!1;for(const l of this.config.variants){if(!l.multiPass&&s.has(l))continue;let u=await l.match(i,a);if(u){if(O(u)){if(u===i)continue;u={matcher:u}}i=u.matcher,n.unshift(u),s.add(l),c=!0;break}}if(!c)break;if(n.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,n,s]}applyVariants(t,r=t[4],s=t[1]){const i=r.slice().sort((u,o)=>(u.order||0)-(o.order||0)).reduceRight((u,o)=>h=>{const p=o.body?.(h.entries)||h.entries,y=Array.isArray(o.parent)?o.parent:[o.parent,void 0];return(o.handle??pr)({...h,entries:p,selector:o.selector?.(h.selector,p)||h.selector,parent:y[0]||h.parent,parentOrder:y[1]||h.parentOrder,layer:o.layer||h.layer,sort:o.sort||h.sort},u)},u=>u)({prefix:"",selector:hr(s),pseudo:"",entries:t[2]}),{parent:c,parentOrder:a}=i;c!=null&&a!=null&&this.parentOrders.set(c,a);const l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:c,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const u of this.config.postprocess)u(l);return l}constructCustomCSS(t,r,s){const n=F(r);if(O(n))return n;const{selector:i,entries:c,parent:a}=this.applyVariants([0,s||t.rawSelector,n,void 0,t.variantHandlers]),l=`${i}{${J(c)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,s=!1,n){const[i,c,a]=O(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);const l=this.config.rulesStaticMap[c];if(l&&l[1]&&(s||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);const o=l[0],h=F(l[1]),p=l[2];return O(h)?[[o,h,p]]:[[o,i,h,p,a]]}r.variantHandlers=a;const{rulesDynamic:u}=this.config;for(const[o,h,p,y]of u){if(y?.internal&&!s)continue;let v=c;if(y?.prefix){const w=P(y.prefix);if(n){const S=P(n);if(!w.some(f=>S.includes(f)))continue}else{const S=w.find(f=>c.startsWith(f));if(S==null)continue;v=c.slice(S.length)}}const g=v.match(h);if(!g)continue;const d=await p(g,r);if(!d)continue;this.config.details&&r.rules.push([h,p,y]);const E=Mt(d).filter(w=>w.length);if(E.length)return E.map(w=>O(w)?[o,w,y]:[o,i,w,y,a])}}stringifyUtil(t,r){if(!t)return;if(ie(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];const{selector:s,entries:n,parent:i,layer:c,sort:a,noMerge:l}=this.applyVariants(t),u=J(n);if(!u)return;const{layer:o,sort:h,...p}=t[3]??{},y={...p,layer:c??o,sort:a??h};return[t[0],s,u,i,y,this.config.details?r:void 0,l]}async expandShortcut(t,r,s=5){if(s===0)return;const n=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Ft;let i,c;for(const a of this.config.shortcuts){let l=t;if(a[2]?.prefix){const o=P(a[2].prefix).find(h=>t.startsWith(h));if(o==null)continue;l=t.slice(o.length)}if(kt(a)){if(a[0]===l){i=i||a[2],c=a[1],n(a);break}}else{const u=l.match(a[0]);if(u&&(c=a[1](u,r)),c){i=i||a[2],n(a);break}}}if(O(c)&&(c=Jt(c.trim()).split(/\s+/g)),!c){const[a,l]=O(t)?await this.matchVariants(t):t;if(a!==l){const u=await this.expandShortcut(l,r,s-1);u&&(c=u[0].map(o=>O(o)?a.replace(l,o):o))}}if(c)return[(await Promise.all(c.map(async a=>(O(a)?(await this.expandShortcut(a,r,s-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,s,n={layer:this.config.shortcutsLayer}){const i=new Vt,c=(await Promise.all(H(s).map(async o=>{const h=O(o)?await this.parseUtil(o,r,!0,n.prefix):[[Number.POSITIVE_INFINITY,"{inline}",F(o),void 0,[]]];return!h&&this.config.warn&&xe(`unmatched utility "${o}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((o,h)=>o[0]-h[0]),[a,,l]=t,u=[];for(const o of c){if(ie(o)){u.push([o[0],void 0,o[1],void 0,o[2],r,void 0]);continue}const{selector:h,entries:p,parent:y,sort:v,noMerge:g}=this.applyVariants(o,[...o[4],...l],a);i.getFallback(h,y,[[],o[0]])[0].push([p,!!(g??o[3]?.noMerge),v??0])}return u.concat(i.map(([o,h],p,y)=>{const v=(d,E,w)=>{const S=Math.max(...w.map(b=>b[1])),f=w.map(b=>b[0]);return(d?[f.flat(1)]:f).map(b=>{const C=J(b);if(C)return[h,p,C,y,{...n,noMerge:E,sort:S},r,void 0]})};return[[o.filter(([,d])=>d).map(([d,,E])=>[d,E]),!0],[o.filter(([,d])=>!d).map(([d,,E])=>[d,E]),!1]].map(([d,E])=>[...v(!1,E,d.filter(([w])=>w.some(S=>S[0]===oe))),...v(!0,E,d.filter(([w])=>w.every(S=>S[0]!==oe)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):O(r)?r===t:r.test(t))}}function lr(e,t){return new cr(e,t)}const Re=/\s\$\$\s+/g;function fr(e){return Re.test(e)}function ur(e,t){return fr(e)?e.replace(Re,t?` ${t} `:" "):t?`${t} ${e}`:e}const fe=/^\[(.+?)(~?=)"(.*)"\]$/;function hr(e){return fe.test(e)?e.replace(fe,(t,r,s,n)=>`[${W(r)}${s}"${W(n)}"]`):`.${W(e)}`}function pr(e,t){return t(e)}var ue={};const dr=Object.freeze({left:0,top:0,width:16,height:16}),q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Te=Object.freeze({...dr,...q}),mr=Object.freeze({...Te,body:"",hidden:!1}),gr=Object.freeze({width:null,height:null}),je=Object.freeze({...gr,...q});function yr(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(r.rotate=s),r}function he(e,t){const r=yr(e,t);for(const s in mr)s in q?s in e&&!(s in r)&&(r[s]=q[s]):s in t?r[s]=t[s]:s in e&&(r[s]=e[s]);return r}function wr(e,t){const r=e.icons,s=e.aliases||Object.create(null),n=Object.create(null);function i(c){if(r[c])return n[c]=[];if(!(c in n)){n[c]=null;const a=s[c]&&s[c].parent,l=a&&i(a);l&&(n[c]=[a].concat(l))}return n[c]}return(t||Object.keys(r).concat(Object.keys(s))).forEach(i),n}function pe(e,t,r){const s=e.icons,n=e.aliases||Object.create(null);let i={};function c(a){i=he(s[a]||n[a],i)}return c(t),r.forEach(c),he(e,i)}function br(e,t){if(e.icons[t])return pe(e,t,[]);const r=wr(e,[t])[t];return r?pe(e,t,r):null}const Sr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,_r=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(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 s=e.split(Sr);if(s===null||!s.length)return e;const n=[];let i=s.shift(),c=_r.test(i);for(;;){if(c){const a=parseFloat(i);isNaN(a)?n.push(i):n.push(Math.ceil(a*t*r)/r)}else n.push(i);if(i=s.shift(),i===void 0)return n.join("");c=!c}}function vr(e,t="defs"){let r="";const s=e.indexOf("<"+t);for(;s>=0;){const n=e.indexOf(">",s),i=e.indexOf("</"+t);if(n===-1||i===-1)break;const c=e.indexOf(">",i);if(c===-1)break;r+=e.slice(n+1,i).trim(),e=e.slice(0,s).trim()+e.slice(c+1)}return{defs:r,content:e}}function Er(e,t){return e?"<defs>"+e+"</defs>"+t:t}function $r(e,t,r){const s=vr(e);return Er(s.defs,t+s.content+r)}const re=e=>e==="unset"||e==="undefined"||e==="none";function Cr(e,t){const r={...Te,...e},s={...je,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,s].forEach(g=>{const d=[],E=g.hFlip,w=g.vFlip;let S=g.rotate;E?w?S+=2:(d.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),d.push("scale(-1 1)"),n.top=n.left=0):w&&(d.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),d.push("scale(1 -1)"),n.top=n.left=0);let f;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:f=n.height/2+n.top,d.unshift("rotate(90 "+f.toString()+" "+f.toString()+")");break;case 2:d.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:f=n.width/2+n.left,d.unshift("rotate(-90 "+f.toString()+" "+f.toString()+")");break}S%2===1&&(n.left!==n.top&&(f=n.left,n.left=n.top,n.top=f),n.width!==n.height&&(f=n.width,n.width=n.height,n.height=f)),d.length&&(i=$r(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const c=s.width,a=s.height,l=n.width,u=n.height;let o,h;c===null?(h=a===null?"1em":a==="auto"?u:a,o=de(h,l/u)):(o=c==="auto"?l:c,h=a===null?de(o,u/l):a==="auto"?u:a);const p={},y=(g,d)=>{re(d)||(p[g]=d.toString())};y("width",o),y("height",h);const v=[n.left,n.top,l,u];return p.viewBox=v.join(" "),{attributes:p,viewBox:v,body:i}}function xr(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ar(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" ')),xr(t)}function Or(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 Rr=/\swidth\s*=\s*["']([\w.]+)["']/,Tr=/\sheight\s*=\s*["']([\w.]+)["']/,K=/<svg\s+/;function jr(e,t,r){const s=e.slice(0,e.indexOf(">")),n=(i,c)=>{const a=c.exec(s),l=a!=null,u=t[i];return!u&&!re(u)&&(typeof r=="number"?r>0&&(t[i]=`${r}em`):a&&(t[i]=a[1])),l};return[n("width",Rr),n("height",Tr)]}async function Me(e,t,r,s,n,i){const{scale:c,addXmlNs:a=!1}=s??{},{additionalProps:l={},iconCustomizer:u}=s?.customizations??{},o=await n?.()??{};await u?.(t,r,o),Object.keys(l).forEach(g=>{const d=l[g];d!=null&&(o[g]=d)}),i?.(o);const[h,p]=jr(e,o,c);a&&(!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 y=Object.keys(o).map(g=>g==="width"&&h||g==="height"&&p?null:`${g}="${o[g]}"`).filter(g=>g!=null);if(y.length&&(e=e.replace(K,`<svg ${y.join(" ")} `)),s){const{defaultStyle:g,defaultClass:d}=s;d&&!e.includes("class=")&&(e=e.replace(K,`<svg class="${d}" `)),g&&!e.includes("style=")&&(e=e.replace(K,`<svg style="${g}" `))}const v=s?.usedProps;return v&&(Object.keys(l).forEach(g=>{const d=o[g];d!=null&&(v[g]=d)}),typeof o.width<"u"&&o.width!==null&&(v.width=o.width),typeof o.height<"u"&&o.height!==null&&(v.height=o.height)),e}async function me(e,t,r,s){let n;try{if(typeof e=="function")n=await e(r);else{const i=e[r];n=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${r}" in "${t}":`,i);return}if(n){const i=n.indexOf("<svg");i>0&&(n=n.slice(i));const{transform:c}=s?.customizations??{};return n=typeof c=="function"?await c(n,t,r):n,n.startsWith("<svg")?await Me(s?.customizations?.trimCustomSvg===!0?Or(n):n,t,r,s,void 0):(console.warn(`Custom icon "${r}" in "${t}" is not a valid SVG`),n)}}async function Pe(e,t,r,s){let n;const{customize:i}=s?.customizations??{};for(const c of r)if(n=br(e,c),n){let a={...je};typeof i=="function"&&(a=i(a));const{attributes:{width:l,height:u,...o},body:h}=Cr(n,a),p=s?.scale;return await Me(`<svg >${h}</svg>`,t,c,s,()=>({...o}),y=>{const v=(g,d)=>{const E=y[g];let w;if(!re(E)){if(E)return;typeof p=="number"?p&&(w=`${p}em`):w=d}w?y[g]=w:delete y[g]};v("width",l),v("height",u)})}}const Le=async(e,t,r)=>{const s=r?.customCollections?.[e];if(s)if(typeof s=="function"){let n;try{n=await s(t)}catch(i){console.warn(`Failed to load custom icon "${t}" in "${e}":`,i);return}if(n){if(typeof n=="string")return await me(()=>n,e,t,r);if("icons"in n){const i=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Pe(n,e,i,r)}}}else return await me(s,e,t,r)};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pr=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","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","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const Lr=Mr(Pr),kr=3;function Nr(e){return(t={})=>{const{scale:r=1,mode:s="auto",prefix:n="i-",warn:i=!1,collections:c,extraProperties:a={},customizations:l={},autoInstall:u=!1,collectionsNodeResolvePath:o,layer:h="icons",unit:p}=t,y=Ir(),v={addXmlNs:!0,scale:r,customCollections:c,autoInstall:u,cwd:o,warn:void 0,customizations:{...l,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(d,E,w){await l.iconCustomizer?.(d,E,w),p&&(w.width||(w.width=`${r}${p}`),w.height||(w.height=`${r}${p}`))}}};let g;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([d,E,w=s])=>{let S="",f="",b;g=g||await e(t);const C={};if(E.includes(":"))[S,f]=E.split(":"),b=await g(S,f,{...v,usedProps:C});else{const A=E.split(/-/g);for(let j=kr;j>=1&&(S=A.slice(0,j).join("-"),f=A.slice(j).join("-"),b=await g(S,f,{...v,usedProps:C}),!b);j--);}if(!b){i&&!y.isESLint&&xe(`failed to load icon "${d}"`);return}const x=`url("data:image/svg+xml;utf8,${Ar(b)}")`;return w==="auto"&&(w=b.includes("currentColor")?"mask":"bg"),w==="mask"?{"--un-icon":x,"-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",...C}:{background:`${x} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...C}},{layer:h,prefix:n}]]}}}function ke(e,t){const r=new Map;function s(n){if(Lr.includes(n))return r.has(n)||r.set(n,e(`${t}@iconify-json/${n}/icons.json`)),r.get(n)}return async(n,i,c)=>{let a=await Le(n,i,c);if(a)return a;const l=await s(n);if(l){const u=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Pe(l,n,u,c)}return a}}function Ir(){const e=typeof process<"u"&&process.stdout&&!process.versions.deno,t=e&&!!ue.VSCODE_CWD,r=e&&!!ue.ESLINT;return{isNode:e,isVSCode:t,isESLint:r}}function Fr(e){return ke(Rt,e)}const zr=Nr(async e=>{const t=e?.customFetch,r=e?.cdn;return t&&r?ke(t,r):r?Fr(r):Le});function Dr(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ye(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var we=["Webkit","Moz","ms"];function Ur(e){const t={};function r(s){const n=t[s];if(n)return n;let i=Dr(s);if(i!=="filter"&&i in e)return t[s]=ye(i);i=ge(i);for(let c=0;c<we.length;c++){const a=`${we[c]}${i}`;if(a in e)return t[s]=ye(ge(a))}return s}return({entries:s})=>s.forEach(n=>{n[0].startsWith("--")||(n[0]=r(n[0]))})}function Vr(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function Br(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,r=window.document,s=()=>r.documentElement,n=t.__unocss||{},i=Object.assign({},e,n.runtime),c=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(c.postprocess=P(c.postprocess)).unshift(Ur(r.createElement("div").style)),i.configResolved?.(n,c);const l=lr(n,c),u=m=>i.inject?i.inject(m):s().prepend(m),o=()=>i.rootElement?i.rootElement():r.body,h=new Map;let p=!0,y=new Set,v,g,d=[];const E=()=>new Promise(m=>{d.push(m),g!=null&&clearTimeout(g),g=setTimeout(()=>f().then(()=>{const _=d;d=[],_.forEach($=>$())}),0)});function w(m){if(m.nodeType!==1)return;const _=m;_.hasAttribute(a)&&_.removeAttribute(a),_.querySelectorAll(`[${a}]`).forEach($=>{$.removeAttribute(a)})}function S(m,_){let $=h.get(m);if(!$)if($=r.createElement("style"),$.setAttribute("data-unocss-runtime-layer",m),h.set(m,$),_==null)u($);else{const R=S(_),M=R.parentNode;M?M.insertBefore($,R.nextSibling):u($)}return $}async function f(){const m=await l.generate(y);return m.layers.reduce((_,$)=>(S($,_).innerHTML=m.getLayer($)??"",$),void 0),y=m.matched,{...m,getStyleElement:_=>h.get(_),getStyleElements:()=>h}}async function b(m){const _=y.size;await l.applyExtractors(m,void 0,y),_!==y.size&&await E()}async function C(m=o()){const _=m&&m.outerHTML;_&&(await b(`${_} ${Vr(_)}`),w(s()),w(m))}const x=new MutationObserver(m=>{p||m.forEach(async _=>{if(_.target.nodeType!==1)return;const $=_.target;for(const R of h)if($===R[1])return;if(_.type==="childList")_.addedNodes.forEach(async R=>{if(R.nodeType!==1)return;const M=R;v&&!v(M)||(await b(M.outerHTML),w(M))});else{if(v&&!v($))return;if(_.attributeName!==a){const R=Array.from($.attributes).map(T=>T.value?`${T.name}="${T.value}"`:T.name).join(" "),M=`<${$.tagName.toLowerCase()} ${R}>`;await b(M)}$.hasAttribute(a)&&$.removeAttribute(a)}})});let A=!1;function j(){if(A)return;const m=i.observer?.target?i.observer.target():o();m&&(x.observe(m,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),A=!0)}function k(){i.bypassDefined&&Hr(l.blocked),C(),j()}function I(){r.readyState==="loading"?t.addEventListener("DOMContentLoaded",k):k()}const z=t.__unocss_runtime=t.__unocss_runtime={version:l.version,uno:l,async extract(m){O(m)||(m.forEach(_=>y.add(_)),m=""),await b(m)},extractAll:C,inspect(m){v=m},toggleObserver(m){m===void 0?p=!p:p=!!m,!A&&!p&&I()},update:f,presets:t.__unocss_runtime?.presets??{}};i.ready?.(z)!==!1&&(p=!1,I())}function Hr(e=new Set){for(let t=0;t<document.styleSheets.length;t++){const r=document.styleSheets[t];let s;try{if(s=r.cssRules||r.rules,!s)continue;Array.from(s).flatMap(n=>n.selectorText?.split(/,/g)||[]).forEach(n=>{n&&(n=n.trim(),n.startsWith(".")&&(n=n.slice(1)),e.add(n))})}catch{continue}}return e}Br({defaults:{presets:[zr({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
|
package/dist/client/index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<link rel="icon" href="./logo.svg" type="image/svg+xml" />
|
|
7
7
|
<title>Vue DevTools Client</title>
|
|
8
8
|
<script src="./color-scheme.js"></script>
|
|
9
|
-
<script type="module" crossorigin src="./assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
9
|
+
<script type="module" crossorigin src="./assets/index-i1LJCmJt.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="./assets/index-I_7g5ZQb.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="app"></div>
|