@nuxt/devtools 3.1.0 → 3.2.0
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 +1 -1
- package/dist/chunks/module-main.mjs +59 -56
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-may67yna.js +1 -0
- package/dist/client/_nuxt/analyze-build-ezjae6pi.js +1 -0
- package/dist/client/_nuxt/assets-cctzmb3x.js +6 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/2a5ea934-38f3-42f9-8ddd-b2d868a945a1.json +1 -0
- package/dist/client/_nuxt/client-cbmkjf3j.js +1 -0
- package/dist/client/_nuxt/code-diff-dj5abiya.js +8 -0
- package/dist/client/_nuxt/code-snippets-cgl6wpax.js +1 -0
- package/dist/client/_nuxt/color-k274hmrf.js +1 -0
- package/dist/client/_nuxt/components-gbus3qqv.js +1 -0
- package/dist/client/_nuxt/composable-item-gs2iudn4.js +1 -0
- package/dist/client/_nuxt/composables-g8w9dpc0.js +1 -0
- package/dist/client/_nuxt/constants-i6giw94a.js +1 -0
- package/dist/client/_nuxt/custom-_name_-m936a9yu.js +1 -0
- package/dist/client/_nuxt/data-schema-button-j6fxaw99.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-it2972mk.js +2 -0
- package/dist/client/_nuxt/debug-i1rscwhu.js +1 -0
- package/dist/client/_nuxt/default-fb125qds.js +1 -0
- package/dist/client/_nuxt/dist-joij2tdx.js +1 -0
- package/dist/client/_nuxt/dist-k9rc0n5t.js +1 -0
- package/dist/client/_nuxt/duration-display-dhj2ifr1.js +1 -0
- package/dist/client/_nuxt/entry.css-gx482m17.css +1 -0
- package/dist/client/_nuxt/error-404-m8kh5nuw.js +1 -0
- package/dist/client/_nuxt/error-404.css-hvuilq4i.css +1 -0
- package/dist/client/_nuxt/error-500-h85n6r14.js +1 -0
- package/dist/client/_nuxt/error-500.css-jc8udnlk.css +1 -0
- package/dist/client/_nuxt/error-l968gtru.js +9 -0
- package/dist/client/_nuxt/filepath-item-osqp88cx.js +1 -0
- package/dist/client/_nuxt/full-odhn7e61.js +1 -0
- package/dist/client/_nuxt/help-fab-bhtk9hzf.js +1 -0
- package/dist/client/_nuxt/hooks-hkx6shiy.js +1 -0
- package/dist/client/_nuxt/imports-nbrcx3j5.js +1 -0
- package/dist/client/_nuxt/launch-page-fyevedb0.js +1 -0
- package/dist/client/_nuxt/lwjah63g.js +4 -0
- package/dist/client/_nuxt/modules-kh9xciqf.js +1 -0
- package/dist/client/_nuxt/nbadge-ijsj8fjy.js +1 -0
- package/dist/client/_nuxt/ncheckbox-f4a8016e.js +1 -0
- package/dist/client/_nuxt/ncode-block-j2hcqwrp.js +2 -0
- package/dist/client/_nuxt/ncode-block.css-o2ixs97j.css +1 -0
- package/dist/client/_nuxt/ndrawer-lh0r2gbb.js +1 -0
- package/dist/client/_nuxt/ndropdown-ef0253xr.js +1 -0
- package/dist/client/_nuxt/nicon-title-hrj2h1mn.js +1 -0
- package/dist/client/_nuxt/nlink-bsck6xne.js +1 -0
- package/dist/client/_nuxt/nmarkdown-ftmgc061.js +1 -0
- package/dist/client/_nuxt/nnavbar-fdsyxwr6.js +1 -0
- package/dist/client/_nuxt/none-kpcjhluv.js +1 -0
- package/dist/client/_nuxt/nsection-block-kp1wt3o4.js +1 -0
- package/dist/client/_nuxt/nselect-cmll6q59.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-dueuo8rw.js +1 -0
- package/dist/client/_nuxt/nswitch-gqy4bgn3.js +1 -0
- package/dist/client/_nuxt/open-graph-ol89f0bf.js +3 -0
- package/dist/client/_nuxt/open-graph.css-dk03m1qz.css +1 -0
- package/dist/client/_nuxt/overview-lxyqhn33.js +1 -0
- package/dist/client/_nuxt/pages-bbrpp8du.js +1 -0
- package/dist/client/_nuxt/pages-cry23sym.js +1 -0
- package/dist/client/_nuxt/payload-bhrm3gbm.js +1 -0
- package/dist/client/_nuxt/pinia-bcnuwvzr.js +1 -0
- package/dist/client/_nuxt/plugins-k9rqnu6h.js +1 -0
- package/dist/client/_nuxt/render-tree-fd08tpf3.js +1 -0
- package/dist/client/_nuxt/rolldown-runtime-oipoa1or.js +1 -0
- package/dist/client/_nuxt/runtime-configs-kagn8z75.js +1 -0
- package/dist/client/_nuxt/server-discovery-ja6p66g6.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-b6nweyxn.js +1 -0
- package/dist/client/_nuxt/server-routes-dtwlhsgf.js +7 -0
- package/dist/client/_nuxt/server-tasks-lboebplp.js +1 -0
- package/dist/client/_nuxt/settings-joqzffm3.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-mphoqupg.js +1 -0
- package/dist/client/_nuxt/state-components-b5shg9ni.js +1 -0
- package/dist/client/_nuxt/state-editor-gc0bkewv.js +1 -0
- package/dist/client/_nuxt/state-modules-e2s3wq2g.js +1 -0
- package/dist/client/_nuxt/storage-m3jg7c3a.js +1 -0
- package/dist/client/_nuxt/terminals-hsjdjxac.js +1 -0
- package/dist/client/_nuxt/timeline-nn4tvvo6.js +31 -0
- package/dist/client/_nuxt/timeline.css-m03aec2q.css +1 -0
- package/dist/client/_nuxt/unocss-runtime-cyizum7d.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-ddj4xtqm.js +3869 -0
- package/dist/client/_nuxt/vendor/json-editor-vue.css-lkbe0qhh.css +1 -0
- package/dist/client/_nuxt/vendor/markdown-it-ew3lvn5m.js +14 -0
- package/dist/client/_nuxt/vendor/quicktype-core-f78dz8oi.js +929 -0
- package/dist/client/_nuxt/vendor/shiki-kunkft64.js +152 -0
- package/dist/client/_nuxt/vendor/unocss-f9yt86gg.js +3 -0
- package/dist/client/_nuxt/vendor/vis-ccj7spt3.js +26 -0
- package/dist/client/_nuxt/vendor/xterm-b39oya8c.js +36 -0
- package/dist/client/_nuxt/vendor/xterm.css-jqmddlol.css +1 -0
- package/dist/client/_nuxt/virtual-files-ds4udxjo.js +1 -0
- package/dist/client/_nuxt/virtual-files.css-l97kh4kx.css +1 -0
- package/dist/client/_nuxt/vue-devtools-hovopvyk.js +3 -0
- package/dist/client/_nuxt/vue-virtual-scroller.esm-il5noocm.js +2 -0
- package/dist/client/discovery/index.html +80 -80
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/function-metrics-helpers.js +1 -1
- package/dist/shared/{devtools.Dlu0WIXO.mjs → devtools.DuFZOCNN.mjs} +2 -2
- package/dist/webcomponents/index.mjs +706 -405
- package/package.json +47 -48
- package/dist/client/_nuxt/__blank-jhf8n41f.js +0 -1
- package/dist/client/_nuxt/analyze-build-dclm2eua.js +0 -1
- package/dist/client/_nuxt/assets-gul8j4ty.js +0 -16
- package/dist/client/_nuxt/builds/meta/7f6c0584-4542-4a99-a964-04ffe2cf6d8b.json +0 -1
- package/dist/client/_nuxt/client-c7ye0k5n.js +0 -1
- package/dist/client/_nuxt/code-diff-injlkjgq.js +0 -8
- package/dist/client/_nuxt/code-snippets-m6659svv.js +0 -1
- package/dist/client/_nuxt/color-mt9xuhgy.js +0 -1
- package/dist/client/_nuxt/components-dx448jl3.js +0 -1
- package/dist/client/_nuxt/composable-item-fx38xsht.js +0 -1
- package/dist/client/_nuxt/constants-b32h69zq.js +0 -1
- package/dist/client/_nuxt/custom-_name_-hhxly3pw.js +0 -1
- package/dist/client/_nuxt/data-schema-button-n4i5g8zd.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-kqzssz6s.js +0 -2
- package/dist/client/_nuxt/debug-d3sv8xbk.js +0 -1
- package/dist/client/_nuxt/default-m5mbakn0.js +0 -1
- package/dist/client/_nuxt/dqkmjlgs.js +0 -5
- package/dist/client/_nuxt/duration-display-jckntkny.js +0 -1
- package/dist/client/_nuxt/entry.css-isd0m9wk.css +0 -1
- package/dist/client/_nuxt/error-404-gjtmorrj.js +0 -1
- package/dist/client/_nuxt/error-404.css-comgjw6y.css +0 -1
- package/dist/client/_nuxt/error-500-nccwcser.js +0 -1
- package/dist/client/_nuxt/error-500.css-mrt4j707.css +0 -1
- package/dist/client/_nuxt/error-ffv58uws.js +0 -9
- package/dist/client/_nuxt/filepath-item-i5bipy7o.js +0 -1
- package/dist/client/_nuxt/full-c16pqeel.js +0 -1
- package/dist/client/_nuxt/help-fab-9epbigv8.js +0 -1
- package/dist/client/_nuxt/hooks-mduk5nzn.js +0 -1
- package/dist/client/_nuxt/imports-i91uw6yj.js +0 -1
- package/dist/client/_nuxt/index-jc4yj4to.js +0 -1
- package/dist/client/_nuxt/index-nhqhrtpb.js +0 -1
- package/dist/client/_nuxt/launch-page-hs2f7bb3.js +0 -1
- package/dist/client/_nuxt/modules-zf3s3x2v.js +0 -1
- package/dist/client/_nuxt/nbadge-b5jyufiz.js +0 -1
- package/dist/client/_nuxt/ncheckbox-dhpz73wm.js +0 -1
- package/dist/client/_nuxt/ncode-block-j34pr9ay.js +0 -2
- package/dist/client/_nuxt/ncode-block.css-lvdc77tw.css +0 -1
- package/dist/client/_nuxt/ndrawer-drb8l4me.js +0 -1
- package/dist/client/_nuxt/ndropdown-nmlejt8k.js +0 -1
- package/dist/client/_nuxt/nicon-title-d35s6mci.js +0 -1
- package/dist/client/_nuxt/nlink-c419gh8c.js +0 -1
- package/dist/client/_nuxt/nmarkdown-nigjp7j4.js +0 -1
- package/dist/client/_nuxt/nnavbar-l4xos9kw.js +0 -1
- package/dist/client/_nuxt/none-gpw8rwbw.js +0 -1
- package/dist/client/_nuxt/nsection-block-egbswicp.js +0 -1
- package/dist/client/_nuxt/nselect-ioi0seuc.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-g53jlfar.js +0 -1
- package/dist/client/_nuxt/nswitch-fe63il2r.js +0 -1
- package/dist/client/_nuxt/open-graph-at6lhslo.js +0 -3
- package/dist/client/_nuxt/open-graph.css-me89qec1.css +0 -1
- package/dist/client/_nuxt/overview-m6fs47hx.js +0 -1
- package/dist/client/_nuxt/pages-j5tlf4m8.js +0 -1
- package/dist/client/_nuxt/payload-jr962nnb.js +0 -1
- package/dist/client/_nuxt/pinia-joljeqzn.js +0 -1
- package/dist/client/_nuxt/plugins-ojaq4cs3.js +0 -1
- package/dist/client/_nuxt/render-tree-if0b608n.js +0 -1
- package/dist/client/_nuxt/runtime-configs-o7wtu3kn.js +0 -1
- package/dist/client/_nuxt/server-discovery-b3v4zpwp.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-b67yt8gz.js +0 -1
- package/dist/client/_nuxt/server-routes-bv99k10t.js +0 -9
- package/dist/client/_nuxt/server-tasks-cm8nifg0.js +0 -1
- package/dist/client/_nuxt/settings-eg7tsmzu.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-bcj6vnom.js +0 -1
- package/dist/client/_nuxt/state-components-fc2pwsp2.js +0 -1
- package/dist/client/_nuxt/state-editor-dk0l27xr.js +0 -1
- package/dist/client/_nuxt/state-modules-kznlrvp3.js +0 -1
- package/dist/client/_nuxt/storage-llgdq75n.js +0 -1
- package/dist/client/_nuxt/terminals-dw7izba9.js +0 -1
- package/dist/client/_nuxt/timeline-47q1o74r.js +0 -31
- package/dist/client/_nuxt/timeline.css-otdwftpy.css +0 -1
- package/dist/client/_nuxt/unocss-runtime-jh5tu2xl.js +0 -1
- package/dist/client/_nuxt/vendor/json-editor-vue-gjlsq8io.js +0 -3867
- package/dist/client/_nuxt/vendor/json-editor-vue.css-f8ezrn37.css +0 -1
- package/dist/client/_nuxt/vendor/markdown-it-fvu08dbs.js +0 -16
- package/dist/client/_nuxt/vendor/quicktype-core-bmjj6ua7.js +0 -955
- package/dist/client/_nuxt/vendor/shiki-g7cm1eew.js +0 -152
- package/dist/client/_nuxt/vendor/unocss-gny6huge.js +0 -3
- package/dist/client/_nuxt/vendor/unocss.css-c5u30s53.css +0 -1
- package/dist/client/_nuxt/vendor/vis-lxvjz9wh.js +0 -26
- package/dist/client/_nuxt/vendor/xterm-nmc0lagr.js +0 -9
- package/dist/client/_nuxt/vendor/xterm.css-g1ekxkss.css +0 -1
- package/dist/client/_nuxt/virtual-files-mjjst5kh.js +0 -1
- package/dist/client/_nuxt/virtual-files.css-gqpg2wnb.css +0 -1
- package/dist/client/_nuxt/vue-devtools-f6dfrqr1.js +0 -2
- package/dist/client/_nuxt/vue-virtual-scroller.esm-uia1jucn.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,X as o,Y as s,_ as c,c as l,dt as u,en as d,g as f,h as p,m,tn as h,v as g,w as _}from"./vendor/json-editor-vue-ddj4xtqm.js";import"./vendor/shiki-kunkft64.js";import{k as v,st as y}from"#entry";import"./client-cbmkjf3j.js";import{t as b}from"./ncode-block-j2hcqwrp.js";import{t as x}from"./composables-g8w9dpc0.js";import{t as S}from"./ncheckbox-f4a8016e.js";import{t as C}from"./filepath-item-osqp88cx.js";import"./nicon-title-hrj2h1mn.js";import{t as w}from"./nsection-block-kp1wt3o4.js";import{t as T}from"./nbadge-ijsj8fjy.js";import{t as E}from"./color-k274hmrf.js";var D=n({__name:`NBadgeHashed`,props:{text:{}},setup(t){let n=t,r=m(()=>({color:E(n.text,50,60),background:E(n.text,50,60,.05)}));return(n,i)=>(a(),f(T,{style:d(r.value)},{default:u(()=>[e(h(t.text),1),o(n.$slots,`default`)]),_:3},8,[`style`]))}}),O=Object.assign(D,{__name:`NBadgeHashed`}),k={flex:`~ gap-2 col`,mb4:``},A={flex:`~ gap-3 items-center`},j={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},M={"max-w-full":``,"of-auto":``},N={"text-center":``,op50:``},P={flex:`~`,px4:``},F={key:0,op50:``},I={px2:``,"text-center":``},L={"of-auto":``},R=n({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(e){let n=e;function r(e){return e.startsWith(`/`)||e.match(/^[a-z]:[\\/]/i)}let o=t(!1),d=t(!1),y=t(!1),x=t(!1),w=t(!1),T=t(``),E=m(()=>{let e=n.moduleMutationRecords;return o.value||(e=e.filter(e=>!e.name.startsWith(`nuxt:`)&&e.name!==`@nuxt/devtools`)),d.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.templates`)),y.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.transpile`)),x.value||(e=e.filter(e=>e.keys.join(`.`)!==`plugins`)),w.value||(e=e.filter(e=>e.method||e.value!==`[]`&&e.value!==`{}`)),T.value&&(e=e.filter(e=>e.name===T.value)),e});return(t,n)=>{let m=S,D=O,R=v,z=C,B=b;return a(),g(l,null,[p(`div`,k,[p(`div`,A,[_(m,{modelValue:o.value,"onUpdate:modelValue":n[0]||=e=>o.value=e,n:`primary`},{default:u(()=>[...n[6]||=[p(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),_(m,{modelValue:d.value,"onUpdate:modelValue":n[1]||=e=>d.value=e,n:`primary`},{default:u(()=>[...n[7]||=[p(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),_(m,{modelValue:y.value,"onUpdate:modelValue":n[2]||=e=>y.value=e,n:`primary`},{default:u(()=>[...n[8]||=[p(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),_(m,{modelValue:x.value,"onUpdate:modelValue":n[3]||=e=>x.value=e,n:`primary`},{default:u(()=>[...n[9]||=[p(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),_(m,{modelValue:w.value,"onUpdate:modelValue":n[4]||=e=>w.value=e,n:`primary`},{default:u(()=>[...n[10]||=[p(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),T.value?(a(),g(`div`,j,[_(D,{"font-mono":``,text:T.value},null,8,[`text`]),_(R,{icon:`carbon-close`,border:!1,onClick:n[5]||=e=>T.value=``})])):c(``,!0)])]),p(`table`,M,[n[11]||=p(`thead`,{border:`b base`},[p(`tr`,null,[p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Index `),p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Module `),p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Key Path `),p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Method `),p(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Value `)])],-1),p(`tbody`,null,[(a(!0),g(l,null,s(E.value,t=>(a(),g(`tr`,{key:e.moduleMutationRecords.indexOf(t),border:`b dashed transparent hover:base`},[p(`td`,N,[p(`div`,null,h(e.moduleMutationRecords.indexOf(t)+1),1)]),p(`td`,null,[t.name&&r(t.name)?(a(),f(z,{key:0,filepath:t.name},null,8,[`filepath`])):(a(),f(D,{key:1,role:`button`,"font-mono":``,text:t.name,onClick:e=>T.value=t.name},null,8,[`text`,`onClick`]))]),p(`td`,null,[p(`code`,P,[(a(!0),g(l,null,s(t.keys,(e,n)=>(a(),g(l,{key:n},[p(`span`,null,h(e),1),n<t.keys.length-1?(a(),g(`span`,F,` . `)):c(``,!0)],64))),128))])]),p(`td`,I,[_(D,{"font-mono":``,text:t.method||`=`,class:i(t.method?``:`saturate-0`)},null,8,[`text`,`class`])]),p(`td`,L,[_(B,{code:String(t.value),lang:`ts`,"grammar-context-code":`let a = `,"ws-normal":``,"break-all":``,py1:``,lines:!1,inline:!0},null,8,[`code`])])]))),128))])])],64)}}}),z=Object.assign(R,{__name:`DebugModuleMutationRecords`}),B={key:0,p6:``},V={key:1},H=n({__name:`debug`,setup(e){let t=y();return(e,n)=>{let i=w;return r(t)?(a(),g(`div`,V,[_(i,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:u(()=>[_(z,{"module-mutation-records":r(t).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(a(),g(`div`,B,[...n[0]||=[p(`div`,null,`No Debug Context Found`,-1),p(`div`,null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)]]))}}});export{H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as e,X as t,h as n,v as r}from"./vendor/json-editor-vue-ddj4xtqm.js";import{N as i}from"#entry";var a={},o={"h-full":``,"of-auto":``,"n-panel-grids":``},s={"h-full":``,"bg-base":``};function c(i,a){return e(),r(`div`,o,[n(`div`,s,[t(i.$slots,`default`)])])}var l=i(a,[[`render`,c]]);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-oipoa1or.js";import{Ln as t,Rn as n,zn as r}from"#entry";var i=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function a(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,a=new i(`${`[${n}] ${JSON.stringify(r)}`}: ${e.response?`${e.response.status} ${e.response.statusText}`:`<no response>`}${t?` ${t}`:``}`,e.error?{cause:e.error}:void 0);for(let t of[`request`,`options`,`response`])Object.defineProperty(a,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(a,t,{get(){return e.response&&e.response[n]}});return a}var o=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function s(e=`GET`){return o.has(e.toUpperCase())}function c(e){if(e===void 0)return!1;let t=typeof e;return t===`string`||t===`number`||t===`boolean`||t===null?!0:t===`object`?Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name===`Object`||typeof e.toJSON==`function`:!1}var l=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),u=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function d(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return u.test(t)?`json`:t===`text/event-stream`?`stream`:l.has(t)||t.startsWith(`text/`)?`text`:`blob`}function f(e,t,n,r){let i=p(t?.headers??e?.headers,n?.headers,r),a;return(n?.query||n?.params||t?.params||t?.query)&&(a={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:a,params:a,headers:i}}function p(e,t,n){if(!t)return new n(e);let r=new n(t);if(e)for(let[t,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(t,i);return r}async function m(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var h=new Set([408,409,425,429,500,502,503,504]),g=new Set([101,204,205,304]);function _(e={}){let{fetch:i=globalThis.fetch,Headers:o=globalThis.Headers,AbortController:l=globalThis.AbortController}=e;async function u(e){let t=e.error&&e.error.name===`AbortError`&&!e.options.timeout||!1;if(e.options.retry!==!1&&!t){let t;t=typeof e.options.retry==`number`?e.options.retry:s(e.options.method)?0:1;let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):h.has(n))){let n=typeof e.options.retryDelay==`function`?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),p(e.request,{...e.options,retry:t-1})}}let n=a(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,p),n}let p=async function(a,p={}){let h={request:a,options:f(a,p,e.defaults,o),response:void 0,error:void 0};if(h.options.method&&(h.options.method=h.options.method.toUpperCase()),h.options.onRequest&&(await m(h,h.options.onRequest),h.options.headers instanceof o||(h.options.headers=new o(h.options.headers||{}))),typeof h.request==`string`&&(h.options.baseURL&&(h.request=t(h.request,h.options.baseURL)),h.options.query&&(h.request=n(h.request,h.options.query),delete h.options.query),`query`in h.options&&delete h.options.query,`params`in h.options&&delete h.options.params),h.options.body&&s(h.options.method))if(c(h.options.body)){let e=h.options.headers.get(`content-type`);typeof h.options.body!=`string`&&(h.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(h.options.body).toString():JSON.stringify(h.options.body)),e||h.options.headers.set(`content-type`,`application/json`),h.options.headers.has(`accept`)||h.options.headers.set(`accept`,`application/json`)}else (`pipeTo`in h.options.body&&typeof h.options.body.pipeTo==`function`||typeof h.options.body.pipe==`function`)&&(`duplex`in h.options||(h.options.duplex=`half`));let _;if(!h.options.signal&&h.options.timeout){let e=new l;_=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},h.options.timeout),h.options.signal=e.signal}try{h.response=await i(h.request,h.options)}catch(e){return h.error=e,h.options.onRequestError&&await m(h,h.options.onRequestError),await u(h)}finally{_&&clearTimeout(_)}if((h.response.body||h.response._bodyInit)&&!g.has(h.response.status)&&h.options.method!==`HEAD`){let e=(h.options.parseResponse?`json`:h.options.responseType)||d(h.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await h.response.text(),t=h.options.parseResponse||r;h.response._data=t(e);break}case`stream`:h.response._data=h.response.body||h.response._bodyInit;break;default:h.response._data=await h.response[e]()}}return h.options.onResponse&&await m(h,h.options.onResponse),!h.options.ignoreResponseError&&h.response.status>=400&&h.response.status<600?(h.options.onResponseError&&await m(h,h.options.onResponseError),await u(h)):h.response},v=async function(e,t){return(await p(e,t))._data};return v.raw=p,v.native=(...e)=>i(...e),v.create=(t={},n={})=>_({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),v}var v=e({$fetch:()=>w,AbortController:()=>S,Headers:()=>x,createFetch:()=>_,fetch:()=>b,ofetch:()=>C}),y=(function(){if(typeof globalThis<`u`)return globalThis;if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})(),b=y.fetch?(...e)=>y.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),x=y.Headers,S=y.AbortController,C=_({fetch:b,Headers:x,AbortController:S}),w=C;export{v as n,w as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=/\d/,t=[`-`,`_`,`/`,`.`];function n(t=``){if(!e.test(t))return t!==t.toLowerCase()}function r(e,r){let i=r??t,a=[];if(!e||typeof e!=`string`)return a;let o=``,s,c;for(let t of e){let e=i.includes(t);if(e===!0){a.push(o),o=``,s=void 0;continue}let r=n(t);if(c===!1){if(s===!1&&r===!0){a.push(o),o=t,s=r;continue}if(s===!0&&r===!1&&o.length>1){let e=o.at(-1);a.push(o.slice(0,Math.max(0,o.length-1))),o=e+t,s=r;continue}}o+=t,s=r,c=e}return a.push(o),a}function i(e){return e?e[0].toUpperCase()+e.slice(1):``}function a(e,t){return e?(Array.isArray(e)?e:r(e)).map(e=>i(t?.normalize?e.toLowerCase():e)).join(``):``}function o(e,t){return e?(Array.isArray(e)?e:r(e)).map(e=>e.toLowerCase()).join(t??`-`):``}export{a as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,E as t,Qt as n,W as r,X as i,h as a,m as o,tn as s,v as c}from"./vendor/json-editor-vue-ddj4xtqm.js";var l={"ml-1":``,"text-xs":``,op50:``},u=t({__name:`DurationDisplay`,props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(t){let u=t;function d(e){return u.color?e?(e*=u.factor,e<.5?`text-gray:50`:e>1e3?`text-red-400`:e>500?`text-orange-400`:e>200?`text-yellow-400`:``):`text-gray-400`:``}let f=o(()=>!u.duration||u.duration<1?[`<1`,`ms`]:u.duration<1e3?[u.duration.toFixed(0),`ms`]:u.duration<1e3*60?[(u.duration/1e3).toFixed(1),`s`]:[(u.duration/1e3/60).toFixed(1),`min`]);return(o,u)=>(r(),c(`div`,{class:n(d(t.duration))},[i(o.$slots,`before`),e(` `+s(f.value[0]),1),a(`span`,l,s(f.value[1]),1),i(o.$slots,`after`)],2))}}),d=Object.assign(u,{__name:`DurationDisplay`});export{d as t};
|