@nuxt/devtools 1.0.4 → 1.0.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/README.md +3 -6
- package/dist/chunks/module-main.mjs +7 -5
- package/dist/chunks/plugin-metrics.mjs +2 -2
- package/dist/chunks/timeline.mjs +1 -1
- package/dist/chunks/vite-inspect.mjs +1 -1
- package/dist/chunks/vue-inspector.mjs +2 -2
- package/dist/client/200.html +21 -21
- package/dist/client/404.html +21 -21
- package/dist/client/_nuxt/{CodeDiff.vue.d8722166.js → CodeDiff.vue.786903cd.js} +1 -1
- package/dist/client/_nuxt/{ComposableItem.vue.a0062ecc.js → ComposableItem.vue.93291047.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaButton.vue.baec9a00.js → DataSchemaButton.vue.e78a09d4.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaDrawer.b2c7e5f0.js → DataSchemaDrawer.f39b3d44.js} +2 -2
- package/dist/client/_nuxt/{DurationDisplay.vue.75bf04c2.js → DurationDisplay.vue.ce619fea.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.7a091e26.js → FilepathItem.vue.e3761da9.js} +1 -1
- package/dist/client/_nuxt/{HelpFab.vue.07720a44.js → HelpFab.vue.452fd066.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.51fc4c47.js → LaunchPage.vue.5db0c060.js} +1 -1
- package/dist/client/_nuxt/{NBadge.ce033599.js → NBadge.787d75d1.js} +1 -1
- package/dist/client/_nuxt/{NCheckbox.vue.0f5a8440.js → NCheckbox.vue.7e495ed2.js} +1 -1
- package/dist/client/_nuxt/NCodeBlock.a117b19b.css +1 -0
- package/dist/client/_nuxt/{NCodeBlock.vue.4697f7e4.js → NCodeBlock.vue.7e25538f.js} +1 -1
- package/dist/client/_nuxt/{NDrawer.vue.4b4bd813.js → NDrawer.vue.fa4b06a6.js} +1 -1
- package/dist/client/_nuxt/{NDropdown.vue.ddbb4404.js → NDropdown.vue.7a6942fe.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.8be5866f.js → NIconTitle.vue.8e6741d5.js} +1 -1
- package/dist/client/_nuxt/{NLink.vue.99516332.js → NLink.vue.0a35d66d.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.d386a844.js → NMarkdown.vue.099cce55.js} +1 -1
- package/dist/client/_nuxt/{NNavbar.vue.a82b9c01.js → NNavbar.vue.9cb56412.js} +1 -1
- package/dist/client/_nuxt/NSectionBlock.3af235cd.css +1 -0
- package/dist/client/_nuxt/NSectionBlock.f3242abf.js +1 -0
- package/dist/client/_nuxt/{NSelect.vue.7cf27fe7.js → NSelect.vue.cdaf42b9.js} +1 -1
- package/dist/client/_nuxt/{NSelectTabs.vue.8f4924f6.js → NSelectTabs.vue.cf18ccbe.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.6fd7c26d.js → NSwitch.vue.6e493b89.js} +1 -1
- package/dist/client/_nuxt/{StacktraceList.vue.a2e4171d.js → StacktraceList.vue.a54c08af.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.777f604e.js → StateEditor.vue.2b7dac11.js} +1 -1
- package/dist/client/_nuxt/{__blank.2e21a1a7.js → __blank.38ec0588.js} +1 -1
- package/dist/client/_nuxt/{analyze-build.371a5734.js → analyze-build.3c8ffa82.js} +1 -1
- package/dist/client/_nuxt/{assets.439f186c.js → assets.c6f98235.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/de4ce1fd-092b-47eb-98b3-1a9b7af1000f.json +1 -0
- package/dist/client/_nuxt/{client.bd4053bc.js → client.7628b7e9.js} +1 -1
- package/dist/client/_nuxt/{components.ccf2fad3.js → components.0df44336.js} +27 -27
- package/dist/client/_nuxt/{custom-_name_.b0891a20.js → custom-_name_.97248110.js} +1 -1
- package/dist/client/_nuxt/{default.97700872.js → default.80c1f1c2.js} +1 -1
- package/dist/client/_nuxt/entry.52bc93cd.js +27 -0
- package/dist/client/_nuxt/entry.8bdf7dd8.css +1 -0
- package/dist/client/_nuxt/{error-404.576aef72.js → error-404.c1c64157.js} +1 -1
- package/dist/client/_nuxt/{error-500.61e43a5a.js → error-500.14a76226.js} +1 -1
- package/dist/client/_nuxt/{error.82c66fee.js → error.81ad2d42.js} +1 -1
- package/dist/client/_nuxt/{full.72d92407.js → full.6e527000.js} +1 -1
- package/dist/client/_nuxt/{hooks.889b91ae.js → hooks.e54b1704.js} +1 -1
- package/dist/client/_nuxt/{imports.8a1177ed.js → imports.996d62b8.js} +1 -1
- package/dist/client/_nuxt/{index.0214b01d.js → index.64fbc2ea.js} +1 -1
- package/dist/client/_nuxt/index.f5673bec.js +16 -0
- package/dist/client/_nuxt/json-editor-vue.d503734c.js +99 -0
- package/dist/client/_nuxt/{modules.0ea1264b.js → modules.56c28a7c.js} +1 -1
- package/dist/client/_nuxt/{none.9d86a5c5.js → none.194e11c7.js} +1 -1
- package/dist/client/_nuxt/{open-graph.484b1a77.css → open-graph.058fa32c.css} +1 -1
- package/dist/client/_nuxt/{open-graph.ce924f19.js → open-graph.da61329c.js} +2 -2
- package/dist/client/_nuxt/{overview.811117a6.js → overview.17cbcb18.js} +1 -1
- package/dist/client/_nuxt/{pages.f870c402.js → pages.7378ad18.js} +1 -1
- package/dist/client/_nuxt/{payload.ae9699f5.js → payload.d51e3588.js} +1 -1
- package/dist/client/_nuxt/{plugins.a8eafa2c.js → plugins.0aa922de.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.344cb73a.js → runtime-configs.ea309d52.js} +1 -1
- package/dist/client/_nuxt/server-routes.8a6576d0.js +9 -0
- package/dist/client/_nuxt/{settings.a887e1c0.js → settings.d6b62c31.js} +1 -1
- package/dist/client/_nuxt/{state-components.295d8108.js → state-components.bc8116fe.js} +1 -1
- package/dist/client/_nuxt/{state-modules.a1a00874.js → state-modules.a9841149.js} +1 -1
- package/dist/client/_nuxt/{storage-options.835c9b2d.js → storage-options.e85e583e.js} +1 -1
- package/dist/client/_nuxt/{storage.d4c1d127.js → storage.9ae52fa2.js} +1 -1
- package/dist/client/_nuxt/{terminals.3c6722c6.js → terminals.ae8551c9.js} +1 -1
- package/dist/client/_nuxt/timeline.58bc6682.css +1 -0
- package/dist/client/_nuxt/{timeline.cebcddc5.js → timeline.595f30d2.js} +5 -4
- package/dist/client/_nuxt/unocss-runtime.2336828a.js +2 -0
- package/dist/client/_nuxt/vanilla-picker-NKbIFE8h.23409a58.js +8 -0
- package/dist/client/_nuxt/{virtual-files.33dacdaf.js → virtual-files.acddf2b7.js} +1 -1
- package/dist/client/_nuxt/vue-html.1cd5a6cc.js +1 -0
- package/dist/client/_nuxt/vue.e4f172c2.js +5891 -0
- package/dist/client/index.html +21 -21
- package/dist/module.json +1 -1
- package/dist/runtime/auth/index.html +65 -50
- package/dist/runtime/plugins/view/FrameBox.vue +2 -2
- package/dist/runtime/plugins/view/Main.vue +7 -2
- package/dist/runtime/plugins/view/client.mjs +2 -0
- package/package.json +34 -34
- package/dist/client/_nuxt/NCodeBlock.6994516c.css +0 -1
- package/dist/client/_nuxt/NSectionBlock.0d0061ef.css +0 -1
- package/dist/client/_nuxt/NSectionBlock.1609c1ec.js +0 -1
- package/dist/client/_nuxt/builds/meta/f35e8543-749e-4b65-87f9-0ac9fa3dd3ab.json +0 -1
- package/dist/client/_nuxt/entry.2732f55b.css +0 -1
- package/dist/client/_nuxt/entry.35c58391.js +0 -27
- package/dist/client/_nuxt/index.11f08f78.js +0 -17
- package/dist/client/_nuxt/json-editor-vue.24ac60a9.js +0 -129
- package/dist/client/_nuxt/server-routes.d5948352.js +0 -9
- package/dist/client/_nuxt/timeline.1ad3a70f.css +0 -1
- package/dist/client/_nuxt/unocss-runtime.eab56c8d.js +0 -2
- package/dist/client/_nuxt/vue-html.88dda4a8.js +0 -1
- package/dist/client/_nuxt/vue.7ad3b25a.js +0 -1844
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{d as ae,r as q,bm as $e,o as t,m as y,k as u,G as L,h as w,f as e,bn as se,t as O,p as D,v as W,a9 as We,aa as Z,F as N,n as B,a6 as fe,a0 as Je,a as T,w as Se,i as h,j as $,X as Te,_ as me,bo as Ve,bp as Re,ay as Ke,bq as Qe,br as Xe,bs as Ye,ab as Ze,au as et,aw as pe,ac as tt,az as ot,e as nt,a2 as Ue,l as Y,I as le,at as st,V as lt,A as De,bt as at,bu as rt,ah as it,U as ut,bv as dt,ao as ct}from"./entry.35c58391.js";import{_ as pt}from"./NNavbar.vue.a82b9c01.js";import{_ as Ne}from"./NBadge.ce033599.js";import{_ as Ie}from"./NSelect.vue.7cf27fe7.js";import{_ as ft}from"./NCheckbox.vue.0f5a8440.js";import{u as Ee,_ as mt}from"./storage-options.835c9b2d.js";import{_ as vt}from"./DataSchemaButton.vue.baec9a00.js";import{_ as ht}from"./NCodeBlock.vue.4697f7e4.js";import{C as xe,S as je}from"./constants.2cc6e981.js";import{t as yt}from"./json-editor-vue.24ac60a9.js";import{_ as gt}from"./NSectionBlock.1609c1ec.js";import{_ as _t}from"./NDrawer.vue.4b4bd813.js";import"./client.bd4053bc.js";import"./NIconTitle.vue.8be5866f.js";const ne=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function bt(l,g){if(typeof l!="string")throw new TypeError("argument str must be a string");const d={},b=(g||{}).decode||Ct;let k=0;for(;k<l.length;){const f=l.indexOf("=",k);if(f===-1)break;let m=l.indexOf(";",k);if(m===-1)m=l.length;else if(m<f){k=l.lastIndexOf(";",f-1)+1;continue}const s=l.slice(k,f).trim();if(d[s]===void 0){let c=l.slice(f+1,m).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),d[s]=xt(c,b)}k=m+1}return d}function Ce(l,g,d){const o=d||{},b=o.encode||wt;if(typeof b!="function")throw new TypeError("option encode is invalid");if(!ne.test(l))throw new TypeError("argument name is invalid");const k=b(g);if(k&&!ne.test(k))throw new TypeError("argument val is invalid");let f=l+"="+k;if(o.maxAge!==void 0&&o.maxAge!==null){const m=o.maxAge-0;if(Number.isNaN(m)||!Number.isFinite(m))throw new TypeError("option maxAge is invalid");f+="; Max-Age="+Math.floor(m)}if(o.domain){if(!ne.test(o.domain))throw new TypeError("option domain is invalid");f+="; Domain="+o.domain}if(o.path){if(!ne.test(o.path))throw new TypeError("option path is invalid");f+="; Path="+o.path}if(o.expires){if(!kt(o.expires)||Number.isNaN(o.expires.valueOf()))throw new TypeError("option expires is invalid");f+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(f+="; HttpOnly"),o.secure&&(f+="; Secure"),o.priority)switch(typeof o.priority=="string"?o.priority.toLowerCase():o.priority){case"low":f+="; Priority=Low";break;case"medium":f+="; Priority=Medium";break;case"high":f+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return f}function kt(l){return Object.prototype.toString.call(l)==="[object Date]"||l instanceof Date}function xt(l,g){try{return g(l)}catch{return l}}function Ct(l){return l.includes("%")?decodeURIComponent(l):l}function wt(l){return encodeURIComponent(l)}const $t=u("div",{"x-divider":""},null,-1),Oe=ae({__name:"ServerRouteListItem",props:{item:{},index:{default:0}},setup(l){const g=q(!0),d=$e();return(o,b)=>{const k=fe,f=Ne,m=Oe;return t(),y("div",null,[u("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:L([{"bg-active":e(d)===o.item.filepath}]),style:We({paddingLeft:`calc(0.5rem + ${o.index*1.5}em)`}),onClick:b[0]||(b[0]=s=>{g.value=!e(g),d.value=o.item.filepath})},[u("div",{class:L({"w-12":!o.item.routes}),"flex-none":"","text-left":""},[o.item.type==="collection"?(t(),w(k,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":e(g)?90:0,transition:""},null,8,["transform-rotate"])):(t(),w(f,{key:1,class:L(("getRequestMethodClass"in o?o.getRequestMethodClass:e(se))(o.item.method||"*")),textContent:O((o.item.method||"*").toUpperCase())},null,8,["class","textContent"]))],2),u("span",{class:L({"flex items-center":o.item.routes}),"text-sm":"","font-mono":""},[o.item.type==="collection"?(t(),w(k,{key:0,title:`${o.item.routes?.length} routes`,icon:"carbon:folder",mr1:""},null,8,["title"])):D("",!0),W(" "+O(o.item.route),1)],2)],6),$t,e(g)?Z(o.$slots,"default",{key:0},()=>[(t(!0),y(N,null,B(o.item.routes,s=>(t(),w(m,{key:s.filepath,item:s,index:o.index+1},null,8,["item","index"]))),128))]):D("",!0)])}}}),St={p4:"",flex:"~ col gap-4"},Tt={key:1,ml2:"",flex:""},Vt=["value"],Rt={key:0,flex:"","gap-4":""},Ut=u("div",{"flex-auto":""},null,-1),Le=ae({__name:"ServerRouteInputs",props:{modelValue:{},keys:{default:()=>[]},default:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(l,{emit:g}){const d=l,b=Je(d,"modelValue",g,{passive:!0}),k=T(()=>[...d.keys,"active","key","value","type"]),f=T(()=>{const c={};for(const a of k.value)c[a]=d.default[a]||"";return c}),m=["string","number","boolean","file","date","time","datetime-local"];function s(c,a){const I=a.target;if(I.files&&I.files[0]){const M=I.files[0],H=new FileReader;H.readAsDataURL(M),H.onload=()=>{b.value[c].value=H.result}}}return Se(()=>b,c=>{c.value.forEach(a=>{if(a.type==="number"&&typeof a.value!="number"){const I=Number.parseFloat(a.value);a.value=Number.isNaN(I)?0:I}else a.type==="boolean"&&typeof a.value!="boolean"?a.value=!0:a.type==="file"&&typeof a.value!="object"?a.value="":a.type==="date"&&typeof a.value=="string"&&!a.value.match(/^\d{4}-\d{2}-\d{2}$/)?a.value=new Date().toISOString().slice(0,10):a.type==="time"&&typeof a.value=="string"&&!a.value.match(/^\d{2}:\d{2}$/)?a.value=new Date().toISOString().slice(11,16):a.type==="datetime-local"&&typeof a.value=="string"&&!a.value.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/)?a.value=new Date().toISOString().slice(0,16):a.type==="string"&&(a.value=a.value.toString())})},{deep:!0,immediate:!0,flush:"sync"}),(c,a)=>{const I=ft,M=Te,H=Ie,S=fe,C=me;return t(),y("div",St,[(t(!0),y(N,null,B(e(b),(i,A)=>(t(),y("div",{key:A,flex:"~ gap-2","justify-around":""},[Z(c.$slots,"input",{item:i}),(t(!0),y(N,null,B(e(k),x=>(t(),y(N,{key:x},[i.type!==null&&x==="active"?(t(),w(I,{key:0,modelValue:i[x],"onUpdate:modelValue":_=>i[x]=_,n:"sm primary",disabled:c.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])):D("",!0),i.type!==null&&x==="key"?(t(),w(M,{key:1,modelValue:i[x],"onUpdate:modelValue":_=>i[x]=_,placeholder:x,"flex-1":"","font-mono":"",n:"sm primary",disabled:c.disabled,class:L(c.disabled?"op50":"")},null,8,["modelValue","onUpdate:modelValue","placeholder","disabled","class"])):x==="value"?(t(),y(N,{key:2},[i.type==="file"?(t(),w(M,{key:0,type:"file",disabled:c.disabled,class:L(c.disabled?"op75":""),onChange:_=>s(A,_)},null,8,["disabled","class","onChange"])):i.type==="boolean"?(t(),y("div",Tt,[h(I,{modelValue:i.value,"onUpdate:modelValue":_=>i.value=_,placeholder:"Value",n:"green lg",disabled:c.disabled},null,8,["modelValue","onUpdate:modelValue","disabled"])])):(t(),w(M,{key:2,modelValue:i.value,"onUpdate:modelValue":_=>i.value=_,type:i.type,placeholder:"Value","flex-1":"","font-mono":"",n:"sm primary",disabled:c.disabled,class:L(c.disabled?"op75":"")},null,8,["modelValue","onUpdate:modelValue","type","disabled","class"]))],64)):x==="type"?(t(),w(H,{key:3,modelValue:i.type,"onUpdate:modelValue":_=>i.type=_,n:"sm green",class:L(c.disabled?"op75":""),disabled:c.disabled},{default:$(()=>[(t(),y(N,null,B(m,_=>u("option",{key:_,value:_},O(_),9,Vt)),64))]),_:2},1032,["modelValue","onUpdate:modelValue","class","disabled"])):D("",!0)],64))),128)),Z(c.$slots,"input-actions",{},()=>[h(C,{n:"red",disabled:c.disabled,class:L(c.disabled?"op0!":""),onClick:x=>e(b).splice(A,1)},{default:$(()=>[h(S,{icon:"carbon:trash-can"})]),_:2},1032,["disabled","class","onClick"])])]))),128)),c.disabled?D("",!0):(t(),y("div",Rt,[Z(c.$slots,"actions",{params:e(b)},()=>[h(C,{icon:"carbon-add",n:"sm primary",my1:"","px-3":"",onClick:a[0]||(a[0]=i=>e(b).push({...e(f)}))},{default:$(()=>[W(" Add ")]),_:1}),Ut,e(b).length?(t(),w(C,{key:0,icon:"carbon-trash-can",n:"sm red",my1:"","px-3":"",onClick:a[1]||(a[1]=i=>b.value=[])},{default:$(()=>[W(" Remove All ")]),_:1})):D("",!0)])])),Z(c.$slots,"default")])}}}),Dt={path:"/",watch:!0,decode:l=>Xe(decodeURIComponent(l)),encode:l=>encodeURIComponent(typeof l=="string"?l:JSON.stringify(l))};function Nt(l,g){const d={...Dt,...g},o=It(d)||{};let b;d.maxAge!==void 0?b=d.maxAge*1e3:d.expires&&(b=d.expires.getTime()-Date.now());const k=b!==void 0&&b<=0,f=k?void 0:o[l]??d.default?.(),m=b&&!k?Ot(f,b):q(f);{const s=typeof BroadcastChannel>"u"?null:new BroadcastChannel(`nuxt:cookies:${l}`),c=()=>{jt(l,m.value,d),s?.postMessage(d.encode(m.value))};let a=!1;Ve()&&Re(()=>{a=!0,c(),s?.close()}),s&&(s.onmessage=I=>{a=!0,m.value=d.decode(I.data),Ke(()=>{a=!1})}),d.watch?Se(m,()=>{a||c()},{deep:d.watch!=="shallow"}):c()}return m}function It(l={}){return bt(document.cookie,l)}function Et(l,g,d={}){return g==null?Ce(l,g,{...d,maxAge:-1}):Ce(l,g,d)}function jt(l,g,d={}){document.cookie=Et(l,g,d)}const we=2147483647;function Ot(l,g){let d,o=0;return Ve()&&Re(()=>{clearTimeout(d)}),Qe((b,k)=>{function f(){clearTimeout(d);const m=g-o,s=m<we?m:we;d=setTimeout(()=>{if(o+=s,o<g)return f();l=void 0,k()},s)}return{get(){return b(),l},set(m){f(),l=m,k()}}})}const Lt={"h-full":"","w-full":"",flex:"~ col"},At={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},Pt={flex:"~ gap2 items-center"},qt={relative:"","w-full":""},Bt={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},Mt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},Ft=u("div",{"flex-auto":""},null,-1),zt=u("div",{"text-xs":"",op50:""}," Send from ",-1),Ht=u("option",{value:"app"}," App ",-1),Gt=u("option",{value:"devtools"}," DevTools ",-1),Wt={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Jt={"text-right":"","font-mono":""},Kt={key:1,border:"b base",p4:"",flex:"~ col gap-4","font-mono":""},Qt={flex:"~ gap-4"},Xt={flex:"~ gap2","mb--2":"","items-center":"",op50:""},Yt=u("div",{"w-5":"","x-divider":""},null,-1),Zt=u("div",{"flex-none":""}," Default Inputs ",-1),eo=u("div",{"x-divider":""},null,-1),to={key:2},oo={key:3,border:"b base",relative:"","n-code-block":""},no={flex:"~ wrap","w-full":""},so=["onClick"],lo=u("div",{border:"b base","flex-auto":""},null,-1),ao={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},ro=u("div",null,"Response",-1),io={key:1,"text-xs":"",op50:""},uo=u("div",{"flex-auto":""},null,-1),co=u("div",{op50:""}," Request finished in ",-1),po={key:0,"flex-auto":"","overflow-auto":""},fo={border:"~ base","h-full":"","w-full":"",rounded:""},mo=["data"],vo={key:2,"flex-auto":"","overflow-auto":"",p4:""},ho={border:"~ base",rounded:""},yo=["src"],go={key:1,controls:"",rounded:""},_o=["src"],bo=ae({__name:"ServerRouteDetails",props:{route:{}},emits:["open-default-input"],setup(l,{emit:g}){const d=l,o=g,[b,k]=Ye(),f=Ze(),m=et(),s=pe({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),c=T(()=>s.contentType.includes("application/json")?"json":s.contentType.includes("text/html")?"html":s.contentType.includes("text/css")?"css":s.contentType.includes("text/javascript")?"javascript":s.contentType.includes("image")||s.contentType.includes("video")?"media":s.contentType.includes("text/xml")||s.contentType.includes("application/xml")?"xml":s.contentType.includes("application/pdf")?"pdf":"text"),a=T(()=>{if(c.value==="json")return JSON.stringify(s.data,null,2);if(c.value==="media"||c.value==="pdf"){const n=new Blob([s.data],{type:s.contentType});return URL.createObjectURL(n)}return s.data}),I=q(!1),M=q(!1),H=tt(),S=T(()=>d.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),C=T(()=>S.value?.filter(n=>n.startsWith(":")||n.startsWith("**:"))||[]),i=q(d.route.method||"GET"),A=q({}),x=pe({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[{active:!0,key:"Content-Type",value:"application/json",type:"string"}]}),_=q({}),{inputDefaults:R,sendFrom:F}=Ee("serverRoutes"),j=T(()=>m?.value?.app?.$fetch?F.value:"devtools"),re=["GET","POST","PUT","PATCH","DELETE","HEAD"],ie=["PATCH","POST","PUT","DELETE"],ee=T(()=>ie.includes(i.value.toUpperCase())),P=q(C.value.length?"params":"query"),V=["input","json"],G=q(V[0]),te=T({get:()=>x[P.value],set:n=>{x[P.value]=n}}),ve=T(()=>({...K(R.value.query),...K(x.query)})),he=T(()=>({...K(R.value.headers),...K(x.headers)})),ue=T(()=>ee.value?G.value==="json"?{...K(R.value.body),..._.value}:{...K(R.value.body),...K(x.body)}:void 0),Ae=T(()=>{let n=window?.location.origin;return n.charAt(n.length-1)==="/"&&(n=n.slice(0,-1)),n}),oe=T(()=>{let n=new URLSearchParams(ve.value).toString();n&&(n=`?${n}`);const p=(S.value?.map(E=>(E.startsWith(":")||E.startsWith("**:"))&&A.value[E]||E).join("")||"")+n;let v=f.value?.app.baseURL||"";return(v==="./"||v===".")&&(v=""),v.endsWith("/")&&(v=v.slice(0,-1)),v+p}),ye=T(()=>Ae.value+oe.value);function K(n){const p=Object.fromEntries(n.filter(({active:v,key:E,value:U})=>v&&E&&U!==void 0).map(({key:v,value:E})=>[v,E]));return Object.entries(p).length?p:void 0}async function ge(){M.value=!0,I.value=!0;const n=Date.now(),p=j.value==="app"?m.value.app.$fetch:$fetch;lt("server-routes:fetch",{method:i.value,sendFrom:j.value});try{s.data=await p(ye.value,{method:i.value.toUpperCase(),headers:he.value,query:ve.value,body:ue.value,onResponse({response:v}){s.contentType=(v.headers.get("content-type")||"").toString().toLowerCase().trim(),s.statusCode=v.status,s.error=void 0},onResponseError(v){s.error=v.response._data,s.data=v.response._data}})}catch{}I.value=!1,s.fetchTime=Date.now()-n}const _e=T(()=>{const n=[],p=[],v=Object.entries(he.value).filter(([U,z])=>U&&z&&!(U==="Content-Type"&&z==="application/json")).map(([U,z])=>` '${U}': '${z}'`).join(`,
|
|
2
|
-
`);i.value.toUpperCase()!=="GET"&&p.push(`method: '${i.value.toUpperCase()}'`),v&&p.push(`headers: {
|
|
3
|
-
${v}
|
|
4
|
-
}`),ue.value&&p.push(`body: ${JSON.stringify(ue.value,null,2)}`);const E=p.length?`, {
|
|
5
|
-
${p.join(`,
|
|
6
|
-
`).split(`
|
|
7
|
-
`).map(U=>` ${U}`).join(`
|
|
8
|
-
`)}
|
|
9
|
-
}`:"";return n.push({name:"useFetch",lang:"javascript",docs:xe.nuxt.useFetch,code:`const { data, pending, error, refresh } = useFetch('${oe.value}'${E})`}),n.push({name:"$fetch",lang:"javascript",docs:xe.nuxt.$fetch,code:`await $fetch('${oe.value}'${E})`}),n}),Q=q(qe()),J=pe({key:"",value:""}),Pe=T(()=>{const n=[];return C.value.length&&n.push({name:"Params",slug:"params",length:C.value.length}),n.push({name:"Query",slug:"query",length:x.query.length}),ee.value&&n.push({name:"Body",slug:"body",length:x.body.length}),n.push({name:"Headers",slug:"headers",length:x.headers.length}),n.push({name:"Cookies",slug:"cookies",length:Q.value.length}),n.push({name:"Snippets",slug:"snippet"}),n});function qe(){return document.cookie.split("; ").map(n=>{const[p,v]=n.split("=");return{key:p,value:v}}).filter(n=>n.key)}function de(n,p){if(!n)return;const v=Q.value.find(U=>U.key===n),E=Nt(n);v!==void 0?p===void 0&&(Q.value=Q.value.filter(U=>U.key!==n)):(Q.value.push({key:n,value:p}),J.key="",J.value=""),E.value=p}ot(()=>{G.value==="json"&&typeof _.value=="string"&&(_.value=JSON.parse(_.value))});const Be=nt();return(n,p)=>{const v=me,E=Ie,U=Te,z=fe,be=Le,Me=mt,Fe=De,ze=at,ce=Ne,He=vt,Ge=ht,ke=Ue("tooltip");return t(),y("div",Lt,[u("div",At,[u("div",Pt,[n.route.method?(t(),w(v,{key:0,class:L(["n-badge-base n-sm",("getRequestMethodClass"in n?n.getRequestMethodClass:e(se))(e(i))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:$(()=>[W(O(e(i).toUpperCase()),1)]),_:1},8,["class"])):(t(),w(E,{key:1,modelValue:e(i),"onUpdate:modelValue":p[0]||(p[0]=r=>Y(i)?i.value=r:null),class:L(["n-badge-base n-sm",("getRequestMethodClass"in n?n.getRequestMethodClass:e(se))(e(i))])},{default:$(()=>[(t(),y(N,null,B(re,r=>u("option",{key:r,class:L(("getRequestMethodClass"in n?n.getRequestMethodClass:e(se))(r))},O(r.toUpperCase()),3)),64))]),_:1},8,["modelValue","class"])),u("div",qt,[h(U,{"model-value":e(oe),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),u("div",Bt,[le(h(v,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:p[1]||(p[1]=r=>e(Be)(e(ye),"server-route-url"))},null,512),[[ke,"Copy URL"]]),le(h(v,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:p[2]||(p[2]=r=>e(H)(n.route.filepath))},null,512),[[ke,"Open in Editor"]])])]),h(v,{"h-full":"",n:"primary solid",onClick:ge},{default:$(()=>[h(z,{icon:"carbon:send"})]),_:1})])]),u("div",Mt,[(t(!0),y(N,null,B(e(Pe),r=>(t(),w(v,{key:r.slug,class:L(e(P)===r.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:X=>P.value=r.slug},{default:$(()=>[h(z,{icon:("ServerRouteTabIcons"in n?n.ServerRouteTabIcons:e(je))[r.slug]},null,8,["icon"]),W(" "+O(r.name)+" "+O(r?.length?`(${r.length})`:"")+" ",1),u("span",null,O(e(R)[r.slug]?.length?`(${e(R)[r.slug].length})`:""),1)]),_:2},1032,["class","onClick"]))),128)),Ft,zt,h(E,{modelValue:e(j),"onUpdate:modelValue":p[3]||(p[3]=r=>Y(j)?j.value=r:null),class:"n-xs",disabled:!e(m)?.app?.$fetch},{default:$(()=>[Ht,Gt]),_:1},8,["modelValue","disabled"])]),e(P)==="params"?(t(),y("div",Wt,[(t(!0),y(N,null,B(e(C),r=>(t(),y(N,{key:r},[u("div",Jt,O(r),1),h(U,{modelValue:e(A)[r],"onUpdate:modelValue":X=>e(A)[r]=X,placeholder:r,"flex-1":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])],64))),128))])):D("",!0),e(P)==="cookies"?(t(),y("div",Kt,[(t(!0),y(N,null,B(e(Q),r=>(t(),y("div",{key:r.key,flex:"~ gap-4 items-center"},[h(U,{placeholder:"Key...","model-value":r.key,disabled:"","op-70":""},null,8,["model-value"]),h(U,{placeholder:"Value...","model-value":r.value,"flex-1":"",n:"primary",onInput:X=>de(r.key,X.target?.value)},null,8,["model-value","onInput"]),h(v,{title:"Delete",n:"red",onClick:X=>de(r.key,void 0)},{default:$(()=>[h(z,{icon:"i-carbon-trash-can"})]),_:2},1032,["onClick"])]))),128)),u("div",Qt,[h(U,{modelValue:e(J).key,"onUpdate:modelValue":p[4]||(p[4]=r=>e(J).key=r),placeholder:"Key",n:"primary","flex-1":""},null,8,["modelValue"]),h(U,{modelValue:e(J).value,"onUpdate:modelValue":p[5]||(p[5]=r=>e(J).value=r),placeholder:"Value",n:"primary","flex-1":""},null,8,["modelValue"]),h(v,{title:"Add",n:"primary",onClick:p[6]||(p[6]=r=>de(e(J).key,e(J).value))},{default:$(()=>[h(z,{icon:"i-carbon-save"})]),_:1})])])):D("",!0),h(e(b),null,{default:$(()=>[h(be,{modelValue:e(te),"onUpdate:modelValue":p[9]||(p[9]=r=>Y(te)?te.value=r:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:$(()=>[e(R)[e(P)]?.length?(t(),y(N,{key:0},[u("div",Xt,[Yt,Zt,h(v,{icon:"i-carbon-edit",border:!1,onClick:p[7]||(p[7]=r=>o("open-default-input"))}),eo]),h(be,{modelValue:e(R)[e(P)],"onUpdate:modelValue":p[8]||(p[8]=r=>e(R)[e(P)]=r),disabled:"",p0:""},null,8,["modelValue"])],64)):D("",!0)]),_:1},8,["modelValue"])]),_:1}),e(P)==="snippet"?(t(),y("div",to,[e(_e).length?(t(),w(Me,{key:0,"code-snippets":e(_e)},null,8,["code-snippets"])):D("",!0)])):e(te)?(t(),y("div",oo,[e(P)==="body"?(t(),y(N,{key:0},[u("div",no,[(t(),y(N,null,B(V,r=>u("button",{key:r,px4:"",py2:"",border:"r base",hover:"bg-active",class:L({"border-b":r!==e(G)}),onClick:X=>G.value=r},[u("div",{class:L({op30:r!==e(G)}),"font-mono":""},O(r),3)],10,so)),64)),lo]),e(G)==="input"?(t(),w(e(k),{key:0})):e(G)==="json"?(t(),w(e(yt),st({key:1,modelValue:e(_),"onUpdate:modelValue":p[10]||(p[10]=r=>Y(_)?_.value=r:null),class:[[n.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):D("",!0)],64)):(t(),w(e(k),{key:1}))])):D("",!0),e(M)?e(I)?(t(),w(ze,{key:5,"z-10":"","flex-auto":"","backdrop-blur":""},{default:$(()=>[W(" Fetching... ")]),_:1})):(t(),y(N,{key:6},[u("div",ao,[ro,e(s).error?(t(),w(ce,{key:0,n:"red"},{default:$(()=>[W(" Error ")]),_:1})):D("",!0),h(ce,{n:e(s).error?"orange":"green",textContent:O(e(s).statusCode)},null,8,["n","textContent"]),e(s).contentType?(t(),y("code",io,O(e(s).contentType),1)):D("",!0),e(s).contentType==="application/json"?(t(),w(He,{key:2,getter:()=>({input:e(a)})},null,8,["getter"])):D("",!0),uo,co,h(ce,{n:"green"},{default:$(()=>[W(O(e(s).fetchTime)+" ms ",1)]),_:1})]),e(c)==="pdf"?(t(),y("div",po,[u("div",fo,[u("object",{data:e(a),type:"application/pdf","flex-auto":"",width:"100%",height:"100%",rounded:""},null,8,mo)])])):e(c)!=="media"?(t(),w(Ge,{key:1,"flex-auto":"","overflow-auto":"","py-2":"",code:e(a),lang:e(c)},null,8,["code","lang"])):(t(),y("div",vo,[u("div",ho,[e(s).contentType.includes("image")?(t(),y("img",{key:0,rounded:"",src:e(a)},null,8,yo)):(t(),y("video",go,[u("source",{src:e(a),type:"video/mp4"},null,8,_o)]))])]))],64)):(t(),w(Fe,{key:4},{default:$(()=>[h(v,{n:"primary",onClick:ge},{default:$(()=>[h(z,{icon:"carbon:send"}),W(" Send request ")]),_:1})]),_:1}))])}}}),ko={flex:"~ gap1","text-sm":""},xo={key:0,op50:""},Co={op50:""},wo=u("span",{op75:""},"Select a route to start",-1),$o=u("div",{p4:"",border:"b base"},[u("span",{"text-lg":""},"Default Inputs"),u("br"),u("span",{"text-white":"",op50:""},"Merged as default for every request in DevTools")],-1),qo=ae({__name:"server-routes",setup(l){const g=q(!1),d=rt(),o=$e(),{selectedRoute:b,view:k,inputDefaults:f}=Ee("serverRoutes"),m=T(()=>{!o.value&&b.value&&(o.value=b.value.filepath);const S=d.value?.find(C=>C.filepath===o.value);return o.value!==b.value?.filepath&&S&&(b.value=S),S}),s=q(""),c=T(()=>new it(d.value||[],{keys:["method","route"],shouldSort:!0})),a=T(()=>d.value?s.value?c.value.search(s.value).map(C=>C.item):d.value:[]),I=T(()=>{const S=[],C=(i,A)=>{i.routes=i.routes||[],i.routes.push(A)};return a.value.forEach(i=>{const A=i.filepath.split("/"),x=A.slice(A.indexOf("server")+1);x.length>0&&x[x.length-1].includes(".")&&x.pop();let _=null;if(x.forEach(R=>{const F=_?_.routes?.find(j=>j.route===R):S.find(j=>j.route===R);if(F)_=F;else{const j={route:R,filepath:R.replace(/\W/g,"-").toLowerCase(),type:"collection",routes:[]};_?C(_,j):S.push(j),_=j}}),i.type==="runtime"){const R=S.find(F=>F.route==="runtime");if(R)C(R,i);else{const F={route:"runtime",filepath:"runtime",type:"collection",routes:[i]};S.push(F)}}else _?C(_,i):S.push(i)}),S});function M(){k.value=k.value==="tree"?"list":"tree"}function H(S){return S.charAt(0).toUpperCase()+S.slice(1)}return(S,C)=>{const i=me,A=pt,x=Oe,_=bo,R=ct,F=De,j=ut,re=Le,ie=gt,ee=_t,P=Ue("tooltip");return t(),y(N,null,[h(j,{"storage-key":"tab-server-routes"},{left:$(()=>[h(A,{search:e(s),"onUpdate:search":C[1]||(C[1]=V=>Y(s)?s.value=V:null),pb2:""},{actions:$(()=>[le(h(i,{"text-lg":"",icon:e(k)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:M},null,8,["icon"]),[[P,"Toggle View"]]),le(h(i,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:C[0]||(C[0]=V=>g.value=!e(g))},null,512),[[P,"Default Inputs"]])]),default:$(()=>[u("div",ko,[e(s)?(t(),y("span",xo,O(e(a).length)+" matched · ",1)):D("",!0),u("span",Co,O(e(d)?.length)+" routes in total",1)])]),_:1},8,["search"]),(t(!0),y(N,null,B(e(k)==="tree"?e(I):e(a),V=>(t(),w(x,{key:V.filepath,item:V},null,8,["item"]))),128))]),right:$(()=>[(t(),w(dt,{max:10},[e(m)?(t(),w(_,{key:e(m).filepath,route:e(m),onOpenDefaultInput:C[2]||(C[2]=V=>g.value=!0)},null,8,["route"])):D("",!0)],1024)),e(m)?D("",!0):(t(),w(F,{key:0},{default:$(()=>[h(R,{px6:"",py2:""},{default:$(()=>[wo]),_:1})]),_:1}))]),_:1}),h(ee,{modelValue:e(g),"onUpdate:modelValue":C[3]||(C[3]=V=>Y(g)?g.value=V:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:C[4]||(C[4]=V=>g.value=!1)},{default:$(()=>[u("div",null,[$o,(t(!0),y(N,null,B(Object.keys(e(f)),V=>(t(),w(ie,{key:V,text:`${H(V)} ${e(f)[V].length?`(${e(f)[V].length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in S?S.ServerRouteTabIcons:e(je))[V]},{default:$(()=>[h(re,{modelValue:e(f)[V],"onUpdate:modelValue":G=>e(f)[V]=G,py0:"",default:{active:!0,type:"string"}},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["text","icon"]))),128))])]),_:1},8,["modelValue"])],64)}}});export{qo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.timeline-scroller[data-v-a2c475c0]::-webkit-scrollbar{height:100px;width:.1px}.timeline-scroller[data-v-a2c475c0]::-webkit-scrollbar-track{background-color:transparent}.timeline-scroller[data-v-a2c475c0]::-webkit-scrollbar-thumb{background-color:#8881;height:100px}.timeline-scroller[data-v-a2c475c0]:hover::-webkit-scrollbar-thumb{background-color:#8882}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$ as xe}from"./entry.35c58391.js";function $e(t){const e=t.length;let n=-1,s,r="";const i=t.charCodeAt(0);for(;++n<e;){if(s=t.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&e===1&&s===45){r+=`\\${t.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const G=$e;function P(t=[]){return Array.isArray(t)?t:[t]}function U(t){return Array.from(new Set(t))}function _e(t,e){return t.reduce((n,s)=>(n.findIndex(i=>e(s,i))===-1&&n.push(s),n),[])}function O(t){return typeof t=="string"}function R(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ce(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>R(e)):[t]:[R(t)]}function Ae(t){return t.filter(([e,n],s)=>{if(e.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function W(t){return t==null?"":Ae(t).map(([e,n])=>n!=null?`${e}:${n};`:void 0).filter(Boolean).join("")}function D(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ue(t,e,n=!1){const s=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return D(s)&&D(r)&&Object.keys(r).forEach(o=>{D(s[o])&&D(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=ue(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function B(t){let e,n,s;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(s=t[e])&&typeof s=="object"?B(s):s;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:B(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(s=t[e])&&typeof s=="object"?B(s):s;return n}return t}function Oe(t){return O(t[0])}function Me(t){return O(t[0])}const J="$$shortcut-no-merge";function Ee(t){return typeof t=="function"?{match:t}:t}function Q(t){return t.length===3}function je(t){return t!=null}function ke(){}var Pe=Object.defineProperty,Le=(t,e,n)=>e in t?Pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ze=(t,e,n)=>(Le(t,typeof e!="symbol"?e+"":e,n),n);class Te{constructor(){ze(this,"_map",new Map)}get(e,n){const s=this._map.get(e);if(s)return s.get(n)}getFallback(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,s),r.get(n)}set(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,s),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>e(i,n,r)))}}var Fe=Object.defineProperty,Ie=(t,e,n)=>e in t?Fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Re=(t,e,n)=>(Ie(t,typeof e!="symbol"?e+"":e,n),n);class he extends Set{constructor(e){super(e),Re(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function Y(t){return t instanceof he}const V={};function Ne(t=["-",":"]){const e=t.join("|");return V[e]||(V[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),V[e].lastIndex=0,V[e]}function De(t,e=["-",":"],n=5){const s=Ne(e);let r,i=t.toString();const o=new Set,a=new Map;do r=!1,i=i.replace(s,(u,c,h,g,y)=>{if(!e.includes(h))return u;r=!0,o.add(c+h);const x=y+c.length+h.length+1,m={length:u.length,items:[]};a.set(y,m);for(const d of[...g.matchAll(/\S+/g)]){const $=x+d.index;let w=a.get($)?.items;w?a.delete($):w=[{offset:$,length:d[0].length,className:d[0]}];for(const b of w)b.className=b.className==="~"?c:b.className.replace(/^(!?)(.*)/,`$1${c}${h}$2`),m.items.push(b)}return"$".repeat(u.length)}),n-=1;while(r&&n);let f;if(typeof t=="string"){f="";let u=0;for(const[c,h]of a)f+=t.slice(u,c),f+=h.items.map(g=>g.className).join(" "),u=c+h.length;f+=t.slice(u)}else{f=t;for(const[u,c]of a)f.overwrite(u,u+c.length,c.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:a,get expanded(){return f.toString()}}}function Ve(t,e=["-",":"],n=5){const s=De(t,e,n);return typeof t=="string"?s.expanded:t}const ee=new Set;function de(t){ee.has(t)||(console.warn("[unocss]",t),ee.add(t))}const Be=/[\\:]?[\s'"`;{}]+/g;function Ue(t){return t.split(Be)}const He={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ue(t)}};function Ge(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const K="default",X="preflights",We="shortcuts",Ye="imports",qe={[Ye]:-200,[X]:-100,[We]:-10,[K]:0};function pe(t){return P(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const te="_uno_resolved";function Ke(t){let e=typeof t=="function"?t():t;if(te in e)return e;e={...e},Object.defineProperty(e,te,{value:!0,enumerable:!1});const n=e.shortcuts?pe(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&e.prefix&&(i.prefix=P(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(s),e.rules?.forEach(s)}return e}function me(t){const e=Ke(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(P).flatMap(me);return[e,...n]}function ne(t={},e={}){const n=Object.assign({},e,t),s=_e((n.presets||[]).flatMap(P).flatMap(me),(l,v)=>l.name===v.name),r=[...s.filter(l=>l.enforce==="pre"),...s.filter(l=>!l.enforce),...s.filter(l=>l.enforce==="post")],i=[...r,n],o=[...i].reverse(),a=Object.assign({},qe,...i.map(l=>l.layers));function f(l){return U(i.flatMap(v=>P(v[l]||[])))}const u=f("extractors");let c=o.find(l=>l.extractorDefault!==void 0)?.extractorDefault;c===void 0&&(c=He),c&&!u.includes(c)&&u.unshift(c),u.sort((l,v)=>(l.order||0)-(v.order||0));const h=f("rules"),g={},y=h.length,x=h.map((l,v)=>{if(Oe(l)){P(l[2]?.prefix||"").forEach(A=>{g[A+l[0]]=[v,l[1],l[2],l]});return}return[v,...l]}).filter(Boolean).reverse();let m=Xe(i.map(l=>l.theme));const d=f("extendTheme");for(const l of d)m=l(m)||m;const $={templates:U(i.flatMap(l=>P(l.autocomplete?.templates))),extractors:i.flatMap(l=>P(l.autocomplete?.extractors)).sort((l,v)=>(l.order||0)-(v.order||0)),shorthands:Ze(i.map(l=>l.autocomplete?.shorthands||{}))};let w=f("separators");w.length||(w=[":","-"]);const b={mergeSelectors:!0,warn:!0,sortLayers:l=>l,...n,blocklist:f("blocklist"),presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:y,rulesDynamic:x,rulesStaticMap:g,preprocess:f("preprocess"),postprocess:f("postprocess"),preflights:f("preflights"),autocomplete:$,variants:f("variants").map(Ee).sort((l,v)=>(l.order||0)-(v.order||0)),shortcuts:pe(f("shortcuts")).reverse(),extractors:u,safelist:f("safelist"),separators:w,details:n.details??n.envMode==="dev"};for(const l of i)l?.configResolved?.(b);return b}function Xe(t){return t.map(e=>e?B(e):{}).reduce((e,n)=>ue(e,n),{})}function Ze(t){return t.reduce((e,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...e,...s}},{})}const Je="0.57.7";var Qe=Object.defineProperty,et=(t,e,n)=>e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,F=(t,e,n)=>(et(t,typeof e!="symbol"?e+"":e,n),n);class tt{constructor(e={},n={}){this.userConfig=e,this.defaults=n,F(this,"version",Je),F(this,"_cache",new Map),F(this,"config"),F(this,"blocked",new Set),F(this,"parentOrders",new Map),F(this,"events",Ge()),this.config=ne(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ne(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,s=new Set){const r={original:e,code:e,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(Y(o)&&Y(s))for(const a of o)s.setCount(a,s.getCount(a)+o.getCount(a));else for(const a of o)s.add(a)}return s}makeContext(e,n){const s={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(e,n){if(this.blocked.has(e))return;const s=`${e}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=e;for(const u of this.config.preprocess)r=u(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,r);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const a=await this.expandShortcut(o.currentSelector,o),f=a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(u=>this.stringifyUtil(u,o)).filter(je);if(f?.length)return this._cache.set(s,f),f;this._cache.set(s,null)}async generate(e,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:a=!1,extendedInfo:f=!1}=n,u=O(e)?await this.applyExtractors(e,s,f?new he:new Set):Array.isArray(e)?new Set(e):e;o&&this.config.safelist.forEach(l=>{u.has(l)||u.add(l)});const c=a?"":`
|
|
2
|
-
`,h=new Set([K]),g=f?new Map:new Set,y=new Map;let x={};const m=Array.from(u).map(async l=>{if(g.has(l))return;const v=await this.parseToken(l);if(v!=null){g instanceof Map?g.set(l,{data:v,count:Y(u)?u.getCount(l):-1}):g.add(l);for(const C of v){const A=C[3]||"",M=C[4]?.layer;y.has(A)||y.set(A,[]),y.get(A).push(C),M&&h.add(M)}}});await Promise.all(m),await(async()=>{if(!i)return;const l={generator:this,theme:this.config.theme},v=new Set([]);this.config.preflights.forEach(({layer:C=X})=>{h.add(C),v.add(C)}),x=Object.fromEntries(await Promise.all(Array.from(v).map(async C=>{const M=(await Promise.all(this.config.preflights.filter(z=>(z.layer||X)===C).map(async z=>await z.getCSS(l)))).filter(Boolean).join(c);return[C,M]})))})();const d=this.config.sortLayers(Array.from(h).sort((l,v)=>(this.config.layers[l]??0)-(this.config.layers[v]??0)||l.localeCompare(v))),$={},w=l=>{if($[l])return $[l];let v=Array.from(y).sort((A,M)=>(this.parentOrders.get(A[0])??0)-(this.parentOrders.get(M[0])??0)||A[0]?.localeCompare(M[0]||"")||0).map(([A,M])=>{const z=M.length,T=M.filter(p=>(p[4]?.layer||K)===l).sort((p,S)=>p[0]-S[0]||(p[4]?.sort||0)-(S[4]?.sort||0)||p[5]?.currentSelector?.localeCompare(S[5]?.currentSelector??"")||p[1]?.localeCompare(S[1]||"")||p[2]?.localeCompare(S[2]||"")||0).map(([,p,S,,_,,E])=>[[[(p&&it(p,r))??"",_?.sort??0]],S,!!(E??_?.noMerge)]);if(!T.length)return;const I=T.reverse().map(([p,S,_],E)=>{if(!_&&this.config.mergeSelectors)for(let j=E+1;j<z;j++){const L=T[j];if(L&&!L[2]&&(p&&L[0]||p==null&&L[0]==null)&&L[1]===S)return p&&L[0]&&L[0].push(...p),null}const k=p?U(p.sort((j,L)=>j[1]-L[1]||j[0]?.localeCompare(L[0]||"")||0).map(j=>j[0]).filter(Boolean)):[];return k.length?`${k.join(`,${c}`)}{${S}}`:S}).filter(Boolean).reverse().join(c);if(!A)return I;const N=A.split(" $$ ");return`${N.join("{")}{${c}${I}${c}${"}".repeat(N.length)}`}).filter(Boolean).join(c);i&&(v=[x[l],v].filter(Boolean).join(c));const C=a?"":`/* layer: ${l} */${c}`;return $[l]=v?C+v:""},b=(l=d,v)=>l.filter(C=>!v?.includes(C)).map(C=>w(C)||"").filter(Boolean).join(c);return{get css(){return b()},layers:d,matched:g,getLayers:b,getLayer:w}}async matchVariants(e,n){const s=new Set,r=[];let i=n||e,o=!0;const a={rawSelector:e,theme:this.config.theme,generator:this};for(;o;){o=!1;for(const f of this.config.variants){if(!f.multiPass&&s.has(f))continue;let u=await f.match(i,a);if(u){if(O(u)){if(u===i)continue;u={matcher:u}}i=u.matcher,r.unshift(u),s.add(f),o=!0;break}}if(!o)break;if(r.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,r,s]}applyVariants(e,n=e[4],s=e[1]){const i=n.slice().sort((u,c)=>(u.order||0)-(c.order||0)).reduceRight((u,c)=>h=>{const g=c.body?.(h.entries)||h.entries,y=Array.isArray(c.parent)?c.parent:[c.parent,void 0];return(c.handle??at)({...h,entries:g,selector:c.selector?.(h.selector,g)||h.selector,parent:y[0]||h.parent,parentOrder:y[1]||h.parentOrder,layer:c.layer||h.layer,sort:c.sort||h.sort},u)},u=>u)({prefix:"",selector:ot(s),pseudo:"",entries:e[2]}),{parent:o,parentOrder:a}=i;o!=null&&a!=null&&this.parentOrders.set(o,a);const f={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:o,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const u of this.config.postprocess)u(f);return f}constructCustomCSS(e,n,s){const r=R(n);if(O(r))return r;const{selector:i,entries:o,parent:a}=this.applyVariants([0,s||e.rawSelector,r,void 0,e.variantHandlers]),f=`${i}{${W(o)}}`;return a?`${a}{${f}}`:f}async parseUtil(e,n,s=!1,r){const[i,o,a]=O(e)?await this.matchVariants(e):e;this.config.details&&(n.rules=n.rules??[]);const f=this.config.rulesStaticMap[o];if(f&&f[1]&&(s||!f[2]?.internal)){this.config.details&&n.rules.push(f[3]);const c=f[0],h=R(f[1]),g=f[2];return O(h)?[[c,h,g]]:[[c,i,h,g,a]]}n.variantHandlers=a;const{rulesDynamic:u}=this.config;for(const[c,h,g,y]of u){if(y?.internal&&!s)continue;let x=o;if(y?.prefix){const w=P(y.prefix);if(r){const b=P(r);if(!w.some(l=>b.includes(l)))continue}else{const b=w.find(l=>o.startsWith(l));if(b==null)continue;x=o.slice(b.length)}}const m=x.match(h);if(!m)continue;const d=await g(m,n);if(!d)continue;this.config.details&&n.rules.push([h,g,y]);const $=Ce(d).filter(w=>w.length);if($.length)return $.map(w=>O(w)?[c,w,y]:[c,i,w,y,a])}}stringifyUtil(e,n){if(!e)return;if(Q(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:o,sort:a,noMerge:f}=this.applyVariants(e),u=W(r);if(!u)return;const{layer:c,sort:h,...g}=e[3]??{},y={...g,layer:o??c,sort:a??h};return[e[0],s,u,i,y,this.config.details?n:void 0,f]}async expandShortcut(e,n,s=5){if(s===0)return;const r=this.config.details?a=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(a)}:ke;let i,o;for(const a of this.config.shortcuts){let f=e;if(a[2]?.prefix){const c=P(a[2].prefix).find(h=>e.startsWith(h));if(c==null)continue;f=e.slice(c.length)}if(Me(a)){if(a[0]===f){i=i||a[2],o=a[1],r(a);break}}else{const u=f.match(a[0]);if(u&&(o=a[1](u,n)),o){i=i||a[2],r(a);break}}}if(O(o)&&(o=Ve(o.trim()).split(/\s+/g)),!o){const[a,f]=O(e)?await this.matchVariants(e):e;if(a!==f){const u=await this.expandShortcut(f,n,s-1);u&&(o=u[0].map(c=>O(c)?a.replace(f,c):c))}}if(o)return[(await Promise.all(o.map(async a=>(O(a)?(await this.expandShortcut(a,n,s-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,n,s,r={layer:this.config.shortcutsLayer}){const i=new Te,o=(await Promise.all(U(s).map(async c=>{const h=O(c)?await this.parseUtil(c,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",R(c),void 0,[]]];return!h&&this.config.warn&&de(`unmatched utility "${c}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((c,h)=>c[0]-h[0]),[a,,f]=e,u=[];for(const c of o){if(Q(c)){u.push([c[0],void 0,c[1],void 0,c[2],n,void 0]);continue}const{selector:h,entries:g,parent:y,sort:x,noMerge:m}=this.applyVariants(c,[...c[4],...f],a);i.getFallback(h,y,[[],c[0]])[0].push([g,!!(m??c[3]?.noMerge),x??0])}return u.concat(i.map(([c,h],g,y)=>{const x=(d,$,w)=>{const b=Math.max(...w.map(v=>v[1])),l=w.map(v=>v[0]);return(d?[l.flat(1)]:l).map(v=>{const C=W(v);if(C)return[h,g,C,y,{...r,noMerge:$,sort:b},n,void 0]})};return[[c.filter(([,d])=>d).map(([d,,$])=>[d,$]),!0],[c.filter(([,d])=>!d).map(([d,,$])=>[d,$]),!1]].map(([d,$])=>[...x(!1,$,d.filter(([w])=>w.some(b=>b[0]===J))),...x(!0,$,d.filter(([w])=>w.every(b=>b[0]!==J)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(n=>typeof n=="function"?n(e):O(n)?n===e:n.test(e))}}function nt(t,e){return new tt(t,e)}const rt=/\s\$\$\s+/g;function st(t){return t.match(/\s\$\$\s/)}function it(t,e){return st(t)?t.replace(rt,e?` ${e} `:" "):e?`${e} ${t}`:t}const re=/^\[(.+?)(~?=)"(.*)"\]$/;function ot(t){return re.test(t)?t.replace(re,(e,n,s,r)=>`[${G(n)}${s}"${G(r)}"]`):`.${G(t)}`}function at(t,e){return e(t)}const ct=Object.freeze({left:0,top:0,width:16,height:16}),H=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ge=Object.freeze({...ct,...H}),lt=Object.freeze({...ge,body:"",hidden:!1}),ft=Object.freeze({width:null,height:null}),ye=Object.freeze({...ft,...H});function ut(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function se(t,e){const n=ut(t,e);for(const s in lt)s in H?s in t&&!(s in n)&&(n[s]=H[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function ht(t,e){const n=t.icons,s=t.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=s[o]&&s[o].parent,f=a&&i(a);f&&(r[o]=[a].concat(f))}return r[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function ie(t,e,n){const s=t.icons,r=t.aliases||Object.create(null);let i={};function o(a){i=se(s[a]||r[a],i)}return o(e),n.forEach(o),se(t,i)}function dt(t,e){if(t.icons[e])return ie(t,e,[]);const n=ht(t,[e])[e];return n?ie(t,e,n):null}const pt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,mt=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oe(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(pt);if(s===null||!s.length)return t;const r=[];let i=s.shift(),o=mt.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*e*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function gt(t){let e="";const n=t.indexOf("<defs");for(;n>=0;){const s=t.indexOf(">",n),r=t.indexOf("</defs");if(s===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;e+=t.slice(s+1,r).trim(),t=t.slice(0,n).trim()+t.slice(i+1)}return{defs:e,content:t}}function yt(t,e){return t?"<defs>"+t+"</defs>"+e:e}function wt(t,e,n){const s=gt(t);return yt(s.defs,e+s.content+n)}const Z=t=>t==="unset"||t==="undefined"||t==="none";function vt(t,e){const n={...ge,...t},s={...ye,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(m=>{const d=[],$=m.hFlip,w=m.vFlip;let b=m.rotate;$?w?b+=2:(d.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),d.push("scale(-1 1)"),r.top=r.left=0):w&&(d.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),d.push("scale(1 -1)"),r.top=r.left=0);let l;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:l=r.height/2+r.top,d.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:d.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,d.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")");break}b%2===1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),d.length&&(i=wt(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const o=s.width,a=s.height,f=r.width,u=r.height;let c,h;o===null?(h=a===null?"1em":a==="auto"?u:a,c=oe(h,f/u)):(c=o==="auto"?f:o,h=a===null?oe(c,u/f):a==="auto"?u:a);const g={},y=(m,d)=>{Z(d)||(g[m]=d.toString())};y("width",c),y("height",h);const x=[r.left,r.top,f,u];return g.viewBox=x.join(" "),{attributes:g,viewBox:x,body:i}}function bt(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function St(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),bt(e)}function xt(t){return t.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,'="').trim()}const $t=/\swidth\s*=\s*["'](\w+)["']/,_t=/\sheight\s*=\s*["'](\w+)["']/,q=/<svg\s+/;function Ct(t,e,n){const s=t.slice(0,t.indexOf(">")),r=(i,o)=>{const a=o.exec(s),f=a!=null,u=e[i];return!u&&!Z(u)&&(typeof n=="number"?n>0&&(e[i]=`${n}em`):a&&(e[i]=a[1])),f};return[r("width",$t),r("height",_t)]}async function we(t,e,n,s,r,i){const{scale:o,addXmlNs:a=!1}=s??{},{additionalProps:f={},iconCustomizer:u}=s?.customizations??{},c=await r?.()??{};await u?.(e,n,c),Object.keys(f).forEach(m=>{const d=f[m];d!=null&&(c[m]=d)}),i?.(c);const[h,g]=Ct(t,c,o);a&&(!t.includes("xmlns=")&&!c.xmlns&&(c.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!c["xmlns:xlink"]&&(c["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const y=Object.keys(c).map(m=>m==="width"&&h||m==="height"&&g?null:`${m}="${c[m]}"`).filter(m=>m!=null);if(y.length&&(t=t.replace(q,`<svg ${y.join(" ")} `)),s){const{defaultStyle:m,defaultClass:d}=s;d&&!t.includes("class=")&&(t=t.replace(q,`<svg class="${d}" `)),m&&!t.includes("style=")&&(t=t.replace(q,`<svg style="${m}" `))}const x=s?.usedProps;return x&&(Object.keys(f).forEach(m=>{const d=c[m];d!=null&&(x[m]=d)}),typeof c.width<"u"&&c.width!==null&&(x.width=c.width),typeof c.height<"u"&&c.height!==null&&(x.height=c.height)),t}async function ae(t,e,n,s){let r;try{if(typeof t=="function")r=await t(n);else{const i=t[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${e}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,e,n):r,r.startsWith("<svg")?await we(s?.customizations?.trimCustomSvg===!0?xt(r):r,e,n,s,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function ve(t,e,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=dt(t,o),r){let a={...ye};typeof i=="function"&&(a=i(a));const{attributes:{width:f,height:u,...c},body:h}=vt(r,a),g=s?.scale;return await we(`<svg >${h}</svg>`,e,o,s,()=>({...c}),y=>{const x=(m,d)=>{const $=y[m];let w;if(!Z($)){if($)return;typeof g=="number"?g&&(w=`${g}em`):w=d}w?y[m]=w:delete y[m]};x("width",f),x("height",u)})}}const be=async(t,e,n)=>{const s=n?.customCollections?.[t];if(s)if(typeof s=="function"){let r;try{r=await s(e)}catch(i){console.warn(`Failed to load custom icon "${e}" in "${t}":`,i);return}if(r){if(typeof r=="string")return await ae(()=>r,t,e,n);if("icons"in r){const i=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await ve(r,t,i,n)}}}else return await ae(s,t,e,n)};function At(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ot=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","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","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","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","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","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 Mt=At(Ot),Et=3;function jt(t){return(e={})=>{const{scale:n=1,mode:s="auto",prefix:r="i-",warn:i=!1,collections:o,extraProperties:a={},customizations:f={},autoInstall:u=!1,layer:c="icons",unit:h}=e,g={addXmlNs:!0,scale:n,customCollections:o,autoInstall:u,warn:void 0,customizations:{...f,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(x,m,d){await f.iconCustomizer?.(x,m,d),h&&(d.width||(d.width=`${n}${h}`),d.height||(d.height=`${n}${h}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([x,m,d=s])=>{let $="",w="",b;y=y||await t(e);const l={};if(m.includes(":"))[$,w]=m.split(":"),b=await y($,w,{...g,usedProps:l});else{const C=m.split(/-/g);for(let A=Et;A>=1&&($=C.slice(0,A).join("-"),w=C.slice(A).join("-"),b=await y($,w,{...g,usedProps:l}),!b);A--);}if(!b){i&&de(`failed to load icon "${x}"`);return}const v=`url("data:image/svg+xml;utf8,${St(b)}")`;return d==="auto"&&(d=b.includes("currentColor")?"mask":"bg"),d==="mask"?{"--un-icon":v,"-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",...l}:{background:`${v} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...l}},{layer:c,prefix:r}]]}}}function Se(t,e){const n=new Map;function s(r){if(Mt.includes(r))return n.has(r)||n.set(r,t(`${e}@iconify-json/${r}/icons.json`)),n.get(r)}return async(r,i,o)=>{let a=await be(r,i,o);if(a)return a;const f=await s(r);if(f){const u=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await ve(f,r,u,o)}return a}}function kt(t){return Se(xe,t)}const Pt=jt(async t=>{const e=t?.customFetch,n=t?.cdn;return e&&n?Se(e,n):n?kt(n):be});function Lt(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function ce(t){return t.charAt(0).toUpperCase()+t.slice(1)}function le(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var fe=["Webkit","Moz","ms"];function zt(t){const e={};function n(s){const r=e[s];if(r)return r;let i=Lt(s);if(i!=="filter"&&i in t)return e[s]=le(i);i=ce(i);for(let o=0;o<fe.length;o++){const a=`${fe[o]}${i}`;if(a in t)return e[s]=le(ce(a))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function Tt(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function Ft(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,s=()=>n.documentElement,r=e.__unocss||{},i=Object.assign({},t,r.runtime),o=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=P(o.postprocess)).unshift(zt(n.createElement("div").style)),i.configResolved?.(r,o);const f=nt(r,o),u=p=>i.inject?i.inject(p):s().prepend(p),c=()=>i.rootElement?i.rootElement():n.body,h=new Map;let g=!0,y=new Set,x,m,d=[];const $=()=>new Promise(p=>{d.push(p),m!=null&&clearTimeout(m),m=setTimeout(()=>l().then(()=>{const S=d;d=[],S.forEach(_=>_())}),0)});function w(p){if(p.nodeType!==1)return;const S=p;S.hasAttribute(a)&&S.removeAttribute(a),S.querySelectorAll(`[${a}]`).forEach(_=>{_.removeAttribute(a)})}function b(p,S){let _=h.get(p);if(!_)if(_=n.createElement("style"),_.setAttribute("data-unocss-runtime-layer",p),h.set(p,_),S==null)u(_);else{const E=b(S),k=E.parentNode;k?k.insertBefore(_,E.nextSibling):u(_)}return _}async function l(){const p=await f.generate(y);return p.layers.reduce((S,_)=>(b(_,S).innerHTML=p.getLayer(_)??"",_),void 0),y=p.matched,{...p,getStyleElement:S=>h.get(S),getStyleElements:()=>h}}async function v(p){const S=y.size;await f.applyExtractors(p,void 0,y),S!==y.size&&await $()}async function C(p=c()){const S=p&&p.outerHTML;S&&(await v(`${S} ${Tt(S)}`),w(s()),w(p))}const A=new MutationObserver(p=>{g||p.forEach(async S=>{if(S.target.nodeType!==1)return;const _=S.target;for(const E of h)if(_===E[1])return;if(S.type==="childList")S.addedNodes.forEach(async E=>{if(E.nodeType!==1)return;const k=E;x&&!x(k)||(await v(k.outerHTML),w(k))});else{if(x&&!x(_))return;if(S.attributeName!==a){const E=Array.from(_.attributes).map(j=>j.value?`${j.name}="${j.value}"`:j.name).join(" "),k=`<${_.tagName.toLowerCase()} ${E}>`;await v(k)}_.hasAttribute(a)&&_.removeAttribute(a)}})});let M=!1;function z(){if(M)return;const p=i.observer?.target?i.observer.target():c();p&&(A.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),M=!0)}function T(){i.bypassDefined&&It(f.blocked),C(),z()}function I(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",T):T()}const N=e.__unocss_runtime=e.__unocss_runtime={version:f.version,uno:f,async extract(p){O(p)||(p.forEach(S=>y.add(S)),p=""),await v(p)},extractAll:C,inspect(p){x=p},toggleObserver(p){p===void 0?g=!g:g=!!p,!M&&!g&&I()},update:l,presets:e.__unocss_runtime?.presets??{}};i.ready?.(N)!==!1&&(g=!1,I())}function It(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),t.add(r))})}catch{continue}}return t}Ft({defaults:{presets:[Pt({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"./vue.7ad3b25a.js";import e from"./javascript.b7d6d348.js";import"./html.14085b69.js";import"./css.f61fd02b.js";import"./typescript.24e7badf.js";import"./json.709f1c4d.js";import"./yaml.b29e536f.js";const n=Object.freeze({name:"vue-html",scopeName:"text.html.vue-html",fileTypes:[],uuid:"ca2e4260-5d62-45bf-8cf1-d8b5cc19c8f8",patterns:[{include:"source.vue#vue-interpolations"},{name:"meta.tag.any.html",begin:"(<)([A-Z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"support.class.component.html"},5:{name:"punctuation.definition.tag.end.html"}},patterns:[{include:"#tag-stuff"}]},{name:"meta.tag.any.html",begin:"(<)([a-z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"entity.name.tag.html"},5:{name:"punctuation.definition.tag.end.html"}},patterns:[{include:"#tag-stuff"}]},{name:"meta.tag.preprocessor.xml.html",begin:"(<\\?)(xml)",end:"(\\?>)",captures:{1:{name:"punctuation.definition.tag.html"},2:{name:"entity.name.tag.xml.html"}},patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{name:"comment.block.html",begin:"<!--",end:"-->",captures:{0:{name:"punctuation.definition.comment.html"}}},{name:"meta.tag.sgml.html",begin:"<!",end:">",captures:{0:{name:"punctuation.definition.tag.html"}},patterns:[{name:"meta.tag.sgml.doctype.html",begin:"(?i:DOCTYPE)",end:"(?=>)",captures:{1:{name:"entity.name.tag.doctype.html"}},patterns:[{name:"string.quoted.double.doctype.identifiers-and-DTDs.html",match:'"[^">]*"'}]},{name:"constant.other.inline-data.html",begin:"\\[CDATA\\[",end:"]](?=>)"},{name:"invalid.illegal.bad-comments-or-CDATA.html",match:"(\\s*)(?!--|>)\\S(\\s*)"}]},{name:"meta.tag.block.any.html",begin:"(</?)([A-Z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},patterns:[{include:"#tag-stuff"}]},{name:"meta.tag.block.any.html",begin:"(</?)([a-z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},patterns:[{include:"#tag-stuff"}]},{name:"meta.tag.structure.any.html",begin:"(</?)((?i:body|head|html)\\b)",end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},captures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.structure.any.html"}},patterns:[{include:"#tag-stuff"}]},{name:"meta.tag.block.any.html",begin:"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},patterns:[{include:"#tag-stuff"}]},{name:"meta.tag.inline.any.html",begin:"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.inline.any.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},patterns:[{include:"#tag-stuff"}]},{name:"meta.tag.other.html",begin:"(</?)([a-zA-Z0-9:-]+)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.other.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{name:"invalid.illegal.incomplete.html",match:"<>"},{name:"invalid.illegal.bad-angle-bracket.html",match:"<"}],repository:{entities:{patterns:[{name:"constant.character.entity.html",match:"(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",captures:{1:{name:"punctuation.definition.entity.html"},3:{name:"punctuation.definition.entity.html"}}},{name:"invalid.illegal.bad-ampersand.html",match:"&"}]},"string-double-quoted":{name:"string.quoted.double.html",begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{name:"string.quoted.single.html",begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{name:"entity.other.attribute-name.html",match:"(?<=[^=])\\b([a-zA-Z0-9:\\-_]+)"},"tag-id-attribute":{name:"meta.attribute-with-value.id.html",begin:"\\b(id)\\b\\s*(=)",end:`(?!\\G)(?<='|"|[^\\s<>/])`,captures:{1:{name:"entity.other.attribute-name.id.html"},2:{name:"punctuation.separator.key-value.html"}},patterns:[{name:"string.quoted.double.html",contentName:"meta.toc-list.id.html",begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{name:"string.quoted.single.html",contentName:"meta.toc-list.id.html",begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{name:"string.unquoted.html",match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,captures:{0:{name:"meta.toc-list.id.html"}}}]},"tag-stuff":{patterns:[{include:"#vue-directives"},{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#unquoted-attribute"}]},"unquoted-attribute":{name:"string.unquoted.html",match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`},"vue-directives":{name:"meta.directive.vue",begin:"(?:\\b(v-)|(:|@|#))([a-zA-Z0-9\\-_]+)(?:\\:([a-zA-Z\\-_]+))?(?:\\.([a-zA-Z\\-_]+))*\\s*(=)",end:"(?<='|\")|(?=[\\s<>`])",captures:{1:{name:"entity.other.attribute-name.html"},2:{name:"punctuation.separator.key-value.html"},3:{name:"entity.other.attribute-name.html"},4:{name:"entity.other.attribute-name.html"},5:{name:"entity.other.attribute-name.html"},6:{name:"punctuation.separator.key-value.html"}},patterns:[{name:"source.directive.vue",begin:"`",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"`",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},patterns:[{include:"source.js#expression"}]},{name:"source.directive.vue",begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},patterns:[{include:"source.js#expression"}]},{name:"source.directive.vue",begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},patterns:[{include:"source.js#expression"}]}]}},displayName:"Vue HTML",embeddedLangs:["vue","javascript"]});var r=[...t,...e,n];export{r as default};
|