@nuxt/devtools 4.0.0-alpha.2 → 4.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/analyze-build.mjs +0 -1
- package/dist/chunks/module-main.mjs +68 -69
- package/dist/chunks/vite-inspect.mjs +8 -20
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-dpye2azp.js +1 -0
- package/dist/client/_nuxt/analyze-build-bkc0yj70.js +1 -0
- package/dist/client/_nuxt/assets-c8un2dgk.js +6 -0
- package/dist/client/_nuxt/auth-required-panel-f0bx4jy3.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/c4431537-3cdf-4a17-8364-5d3d90841be5.json +1 -0
- package/dist/client/_nuxt/{client-coqmopwz.js → client-fxrhvlf0.js} +1 -1
- package/dist/client/_nuxt/{code-diff-o5b2z2ie.js → code-diff-cxfxstwy.js} +4 -4
- package/dist/client/_nuxt/code-snippets-jmly69z5.js +1 -0
- package/dist/client/_nuxt/components-jtkex3ry.js +1 -0
- package/dist/client/_nuxt/composable-item-ctv0s77c.js +1 -0
- package/dist/client/_nuxt/composables-g3h8z0a3.js +1 -0
- package/dist/client/_nuxt/custom-_name_-lmgyewpm.js +1 -0
- package/dist/client/_nuxt/data-schema-button-lia8jo2z.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-k5lpnjpj.js +2 -0
- package/dist/client/_nuxt/debug-21oc3lwa.js +1 -0
- package/dist/client/_nuxt/{default-f17ja76u.js → default-l5unzaf9.js} +1 -1
- package/dist/client/_nuxt/dialog-jbq54nkm.js +1 -0
- package/dist/client/_nuxt/dist-bxsmety0.js +1 -0
- package/dist/client/_nuxt/dist-fas03c07.js +1 -0
- package/dist/client/_nuxt/{duration-display-lgba3ul7.js → duration-display-gcccmged.js} +1 -1
- package/dist/client/_nuxt/editor-ib5dg7xf.js +1 -0
- package/dist/client/_nuxt/entry.css-nqh1m7yk.css +1 -0
- package/dist/client/_nuxt/error-404-o4nzga33.js +1 -0
- package/dist/client/_nuxt/error-404.css-cfm1arun.css +1 -0
- package/dist/client/_nuxt/error-500-lbc8po65.js +1 -0
- package/dist/client/_nuxt/error-500.css-dkbj3cof.css +1 -0
- package/dist/client/_nuxt/{error-bgkwva1q.js → error-ct6hbfyl.js} +1 -1
- package/dist/client/_nuxt/filepath-item-mxes3g27.js +1 -0
- package/dist/client/_nuxt/full-g7ubub1r.js +1 -0
- package/dist/client/_nuxt/fuse-ic4l3jjo.js +1 -0
- package/dist/client/_nuxt/gdsye0vf.js +2 -0
- package/dist/client/_nuxt/help-fab-vp6gbv3k.js +1 -0
- package/dist/client/_nuxt/hooks-iu6wyfgn.js +1 -0
- package/dist/client/_nuxt/imports-jz51309y.js +1 -0
- package/dist/client/_nuxt/{launch-page-jvtn5jef.js → launch-page-j3htdbh0.js} +1 -1
- package/dist/client/_nuxt/modules-j1gis064.js +1 -0
- package/dist/client/_nuxt/nbadge-7zr03ihs.js +1 -0
- package/dist/client/_nuxt/nbutton-dy9mskkk.js +1 -0
- package/dist/client/_nuxt/ncard-bs9j5ske.js +1 -0
- package/dist/client/_nuxt/{ncheckbox-dqqmiqln.js → ncheckbox-msykavgu.js} +1 -1
- package/dist/client/_nuxt/{ncode-block-lbvhz228.js → ncode-block-lbhgksmi.js} +1 -1
- package/dist/client/_nuxt/ndark-toggle-dd7qey8l.js +1 -0
- package/dist/client/_nuxt/ndialog-nuj407ct.js +3 -0
- package/dist/client/_nuxt/ndrawer-cshktk1a.js +1 -0
- package/dist/client/_nuxt/ndropdown-g8mioo07.js +1 -0
- package/dist/client/_nuxt/{nicon-o8vtl3nv.js → nicon-do46fhz3.js} +1 -1
- package/dist/client/_nuxt/{nicon-title-f04kekaa.js → nicon-title-jjiuucly.js} +1 -1
- package/dist/client/_nuxt/{nlink-flm1s7uj.js → nlink-kqls97wt.js} +1 -1
- package/dist/client/_nuxt/nloading-b6gn4u1s.js +1 -0
- package/dist/client/_nuxt/{nmarkdown-cu68ujlp.js → nmarkdown-c1xqnmie.js} +1 -1
- package/dist/client/_nuxt/nnavbar-h4hz44io.js +1 -0
- package/dist/client/_nuxt/none-kh2oj8rz.js +1 -0
- package/dist/client/_nuxt/npanel-grids-ip7w4ejt.js +1 -0
- package/dist/client/_nuxt/npm-bqk49gno.js +1 -0
- package/dist/client/_nuxt/{nsection-block-oc6icst0.js → nsection-block-l37co05t.js} +1 -1
- package/dist/client/_nuxt/{nselect-k14i70o0.js → nselect-mb92757x.js} +1 -1
- package/dist/client/_nuxt/{nselect-tabs-gmel1seg.js → nselect-tabs-gzwv1q7y.js} +1 -1
- package/dist/client/_nuxt/nsplit-pane-nneagzae.js +1 -0
- package/dist/client/_nuxt/nsplit-pane.css-cyge27bh.css +1 -0
- package/dist/client/_nuxt/{nswitch-kprd7bwp.js → nswitch-hxwa8dwy.js} +1 -1
- package/dist/client/_nuxt/ntext-input-ooyn577q.js +1 -0
- package/dist/client/_nuxt/{ntip-erjk5wo4.js → ntip-czdtbj5r.js} +1 -1
- package/dist/client/_nuxt/{nuxt-link-h8a2u03t.js → nuxt-link-bm02zjpm.js} +1 -1
- package/dist/client/_nuxt/nuxt-logo-bq85idrv.js +1 -0
- package/dist/client/_nuxt/{nuxt-bl8ryhiw.js → nuxt-n7rqurxx.js} +1 -1
- package/dist/client/_nuxt/{open-graph-gqcrbtb4.js → open-graph-fax7wv7x.js} +2 -2
- package/dist/client/_nuxt/overview-8jufdkso.js +1 -0
- package/dist/client/_nuxt/pages-cudjh8j7.js +1 -0
- package/dist/client/_nuxt/pages-n6yugo8p.js +1 -0
- package/dist/client/_nuxt/payload-nms0e2pn.js +1 -0
- package/dist/client/_nuxt/pinia-lqdm1sj6.js +1 -0
- package/dist/client/_nuxt/plugins-d24ibpd8.js +1 -0
- package/dist/client/_nuxt/{ready-nmtplnq5.js → ready-chvd8pav.js} +1 -1
- package/dist/client/_nuxt/render-tree-ipfeq7kp.js +1 -0
- package/dist/client/_nuxt/rpc-isxadwf4.js +1 -0
- package/dist/client/_nuxt/runtime-configs-b6hwtm9f.js +1 -0
- package/dist/client/_nuxt/server-discovery-epl1odcn.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-gybyb0r7.js +1 -0
- package/dist/client/_nuxt/server-routes-iyhit45p.js +7 -0
- package/dist/client/_nuxt/server-tasks-iu8kht7l.js +1 -0
- package/dist/client/_nuxt/settings-fmpxy0sd.js +1 -0
- package/dist/client/_nuxt/{splitpanes.es-krbzt5ww.js → splitpanes.es-m52r20uv.js} +1 -1
- package/dist/client/_nuxt/{stacktrace-list-il2y9pcx.js → stacktrace-list-mzv9h3wp.js} +1 -1
- package/dist/client/_nuxt/{state-components-dtq2t5r4.js → state-components-grvqi1pg.js} +1 -1
- package/dist/client/_nuxt/state-editor-bluyryo2.js +1 -0
- package/dist/client/_nuxt/state-modules-nila4w91.js +1 -0
- package/dist/client/_nuxt/state-routes-jda6rt5m.js +1 -0
- package/dist/client/_nuxt/state-schema-dxaz6x8f.js +1 -0
- package/dist/client/_nuxt/state-subprocess-lka458r1.js +1 -0
- package/dist/client/_nuxt/{state-tabs-etz9ig65.js → state-tabs-itldyzgg.js} +1 -1
- package/dist/client/_nuxt/storage-e6rsfrwe.js +1 -0
- package/dist/client/_nuxt/storage-j9qzpha9.js +1 -0
- package/dist/client/_nuxt/{storage-options-fmhmng6m.js → storage-options-ll4al4nh.js} +1 -1
- package/dist/client/_nuxt/tab-icon-me90e54n.js +1 -0
- package/dist/client/_nuxt/telemetry-iyty3hdu.js +1 -0
- package/dist/client/_nuxt/terminals-d6ve9pli.js +1 -0
- package/dist/client/_nuxt/timeline-ed79yl0t.js +31 -0
- package/dist/client/_nuxt/unocss-runtime-flq5aaes.js +1 -0
- package/dist/client/_nuxt/utils-0y38f305.js +2 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-go859b33.js +3869 -0
- package/dist/client/_nuxt/vendor/{markdown-it-liuu8zo7.js → markdown-it-cxwyw9wc.js} +1 -1
- package/dist/client/_nuxt/vendor/{quicktype-core-bxh3g3c2.js → quicktype-core-h9yg0llp.js} +33 -33
- package/dist/client/_nuxt/vendor/{shiki-ildq90cv.js → shiki-dger8vg9.js} +4 -4
- package/dist/client/_nuxt/vendor/{unocss-hiscr44j.js → unocss-d0gwgu4l.js} +3 -3
- package/dist/client/_nuxt/vendor/{xterm-g6v3jqah.js → xterm-cbq9q6da.js} +3 -3
- package/dist/client/_nuxt/virtual-files-jir7s4c5.js +1 -0
- package/dist/client/_nuxt/vue-devtools-gkfop7rb.js +4 -0
- package/dist/client/_nuxt/{vue-router-imuzx5c1.js → vue-router-bjsf3ueg.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/package.json +21 -21
- package/dist/client/_nuxt/__blank-hkoz1rvj.js +0 -1
- package/dist/client/_nuxt/analyze-build-ecjdrn47.js +0 -1
- package/dist/client/_nuxt/assets-neo14xgr.js +0 -6
- package/dist/client/_nuxt/auth-required-panel-eykuzska.js +0 -1
- package/dist/client/_nuxt/builds/meta/5a29da90-eb92-468e-ae22-3d6e1c14ca84.json +0 -1
- package/dist/client/_nuxt/code-snippets-lje00rjy.js +0 -1
- package/dist/client/_nuxt/components-m6u58eqx.js +0 -1
- package/dist/client/_nuxt/composable-item-imnaiayk.js +0 -1
- package/dist/client/_nuxt/custom-_name_-gto916bz.js +0 -1
- package/dist/client/_nuxt/data-schema-button-g6gxhvpu.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-iqjxac51.js +0 -2
- package/dist/client/_nuxt/debug-jp25iu97.js +0 -1
- package/dist/client/_nuxt/dev-auth-h6radlhi.js +0 -1
- package/dist/client/_nuxt/dist-duc3zu0y.js +0 -1
- package/dist/client/_nuxt/emiigkv5.js +0 -4
- package/dist/client/_nuxt/entry.css-d9crsfkn.css +0 -1
- package/dist/client/_nuxt/error-404-fqyiq2ar.js +0 -1
- package/dist/client/_nuxt/error-404.css-h25s2r5c.css +0 -1
- package/dist/client/_nuxt/error-500-k8cd8t39.js +0 -1
- package/dist/client/_nuxt/error-500.css-ne02sjef.css +0 -1
- package/dist/client/_nuxt/filepath-item-lm7tbw9e.js +0 -1
- package/dist/client/_nuxt/full-h1zczfpi.js +0 -1
- package/dist/client/_nuxt/help-fab-ekagn9f2.js +0 -1
- package/dist/client/_nuxt/hooks-hk8yviqj.js +0 -1
- package/dist/client/_nuxt/imports-ozoiw4bc.js +0 -1
- package/dist/client/_nuxt/modules-bpsbuvhv.js +0 -1
- package/dist/client/_nuxt/nbadge-ia2sg78l.js +0 -1
- package/dist/client/_nuxt/ncard-bpchuz30.js +0 -1
- package/dist/client/_nuxt/ndrawer-pdhwqkg2.js +0 -1
- package/dist/client/_nuxt/ndropdown-o0hg8oi1.js +0 -1
- package/dist/client/_nuxt/nnavbar-iwf1qrzf.js +0 -1
- package/dist/client/_nuxt/none-b8do2yyn.js +0 -1
- package/dist/client/_nuxt/overview-ode2qvxm.js +0 -1
- package/dist/client/_nuxt/pages-l8ohewdn.js +0 -1
- package/dist/client/_nuxt/pages-nqnq5f5t.js +0 -1
- package/dist/client/_nuxt/payload-5yrt4zvx.js +0 -1
- package/dist/client/_nuxt/pinia-ipoevgwj.js +0 -1
- package/dist/client/_nuxt/plugins-osqpret8.js +0 -1
- package/dist/client/_nuxt/render-tree-gskxc5zy.js +0 -1
- package/dist/client/_nuxt/rpc-ga26o8l5.js +0 -1
- package/dist/client/_nuxt/runtime-configs-pz2i8w6q.js +0 -1
- package/dist/client/_nuxt/server-discovery-og33p041.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-kx5eivj6.js +0 -1
- package/dist/client/_nuxt/server-routes-jue52yjp.js +0 -7
- package/dist/client/_nuxt/server-tasks-m1mrolqv.js +0 -1
- package/dist/client/_nuxt/settings-peisguuo.js +0 -1
- package/dist/client/_nuxt/state-editor-ffp2kcpu.js +0 -1
- package/dist/client/_nuxt/state-modules-dujmynt6.js +0 -1
- package/dist/client/_nuxt/storage-lyohu7me.js +0 -1
- package/dist/client/_nuxt/terminals-o5cnogpb.js +0 -1
- package/dist/client/_nuxt/timeline-gl5vzyx1.js +0 -31
- package/dist/client/_nuxt/unocss-runtime-fghua2d1.js +0 -1
- package/dist/client/_nuxt/utils-jkkblreo.js +0 -2
- package/dist/client/_nuxt/vendor/json-editor-vue-mpqfj7dd.js +0 -3869
- package/dist/client/_nuxt/virtual-files-gg15edds.js +0 -1
- package/dist/client/_nuxt/vue-devtools-o3ws2mcv.js +0 -4
- /package/dist/client/_nuxt/{_plugin-vue_export-helper-n58akrbk.js → _plugin-vue_export-helper-cxcynmu7.js} +0 -0
- /package/dist/client/_nuxt/{color-bh8526bd.js → color-jp2clyon.js} +0 -0
- /package/dist/client/_nuxt/{composables-f0oa0ya0.js → composables-cjr9vk21.js} +0 -0
- /package/dist/client/_nuxt/{constants-g7ujya00.js → constants-xk5tdj23.js} +0 -0
- /package/dist/client/_nuxt/{dist-f16b9vaq.js → dist-el7s75zv.js} +0 -0
- /package/dist/client/_nuxt/{mitt.es-pc7qwi6p.js → mitt.es-nswlq02h.js} +0 -0
- /package/dist/client/_nuxt/vendor/{vis-obscvyyi.js → vis-iaw6hxx2.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,Ct as t,E as n,Et as r,F as i,K as a,M as o,Mt as s,ct as c,m as l,wt as u,xt as d}from"./vendor/json-editor-vue-mpqfj7dd.js";var f=typeof document<`u`;function p(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function m(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&p(e.default)}var h=Object.assign;function g(e,t){let n={};for(let r in t){let i=t[r];n[r]=v(i)?i.map(e):e(i)}return n}var _=()=>{},v=Array.isArray;function ee(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var y=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),b=Symbol(``);y.MATCHER_NOT_FOUND,y.NAVIGATION_GUARD_REDIRECT,y.NAVIGATION_ABORTED,y.NAVIGATION_CANCELLED,y.NAVIGATION_DUPLICATED;function x(e,t){return h(Error(),{type:e,[b]:!0},t)}function S(e,t){return e instanceof Error&&b in e&&(t==null||!!(e.type&t))}var te=Symbol(``),ne=Symbol(``),re=Symbol(``),ie=Symbol(``),ae=Symbol(``);function oe(e){return o(ie)}var se=/#/g,ce=/&/g,C=/\//g,w=/=/g,T=/\?/g,E=/\+/g,le=/%5B/g,D=/%5D/g,O=/%5E/g,ue=/%60/g,k=/%7B/g,de=/%7C/g,A=/%7D/g,fe=/%20/g;function j(e){return e==null?``:encodeURI(``+e).replace(de,`|`).replace(le,`[`).replace(D,`]`)}function pe(e){return j(e).replace(k,`{`).replace(A,`}`).replace(O,`^`)}function M(e){return j(e).replace(E,`%2B`).replace(fe,`+`).replace(se,`%23`).replace(ce,`%26`).replace(ue,"`").replace(k,`{`).replace(A,`}`).replace(O,`^`)}function N(e){return M(e).replace(w,`%3D`)}function P(e){return j(e).replace(se,`%23`).replace(T,`%3F`)}function me(e){return P(e).replace(C,`%2F`)}function F(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var I=/\/$/,L=e=>e.replace(I,``);function R(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=W(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:F(o)}}function he(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function z(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ge(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&B(t.matched[r],n.matched[i])&&V(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function B(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function V(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!H(e[n],t[n]))return!1;return!0}function H(e,t){return v(e)?U(e,t):v(t)?U(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function U(e,t){return v(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function W(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},_e=function(e){return e.pop=`pop`,e.push=`push`,e}({}),K=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function q(e){if(!e)if(f){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),L(e)}var ve=/^[^#]+#/;function ye(e,t){return e.replace(ve,`#`)+t}function be(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var J=()=>({left:window.scrollX,top:window.scrollY});function xe(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=be(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Se(e,t){return(history.state?history.state.position-t:-1)+e}var Ce=new Map;function we(e,t){Ce.set(e,t)}function Te(e){let t=Ce.get(e);return Ce.delete(e),t}function Ee(e){return typeof e==`string`||e&&typeof e==`object`}function De(e){return typeof e==`string`||typeof e==`symbol`}function Oe(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(E,` `),i=r.indexOf(`=`),a=F(i<0?r:r.slice(0,i)),o=i<0?null:F(r.slice(i+1));if(a in t){let e=t[a];v(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function ke(e){let t=``;for(let n in e){let r=e[n];if(n=N(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(v(r)?r.map(e=>e&&M(e)):[r&&M(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Ae(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=v(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Y(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(x(y.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ee(e)?c(x(y.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function je(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(p(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=m(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function Me(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>B(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>B(e,s))||i.push(s))}return[n,r,i]}var Ne=()=>location.protocol+`//`+location.host;function Pe(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),z(n,``)}return z(n,e)+r+i}function Fe(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Pe(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:_e.pop,direction:u?u>0?K.forward:K.back:K.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(h({},e.state,{scroll:J()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Ie(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?J():null}}function Le(e){let{history:t,location:n}=window,r={value:Pe(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ne()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,h({},t.state,Ie(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=h({},i.value,t.state,{forward:e,scroll:J()});a(o.current,o,!0),a(e,h({},Ie(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Re(e){e=q(e);let t=Le(e),n=Fe(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=h({location:``,base:e,go:r,createHref:ye.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function ze(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Re(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),Be={type:Z.Static,value:``},Ve=/[a-zA-Z0-9_]/;function He(e){if(!e)return[[]];if(e===`/`)return[[Be]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:Ve.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Ue=`[^/]+?`,We={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),Ge=/[.+*?^${}()[\]/\\]/g;function Ke(e,t){let n=h({},We,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(Ge,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ue;if(u!==Ue){s+=$.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(v(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=v(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function qe(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Je(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=qe(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ye(r))return 1;if(Ye(i))return-1}return i.length-r.length}function Ye(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Xe={strict:!1,end:!0,sensitive:!1};function Ze(e,t,n){let r=h(Ke(He(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Qe(e,t){let n=[],r=new Map;t=ee(Xe,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=et(e);s.aliasOf=r&&r.record;let l=ee(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(et(h({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ze(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!nt(d)&&o(e.name)),ot(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:_}function o(e){if(De(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=it(e,n);n.splice(t,0,e),e.record.name&&!nt(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw x(y.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=h($e(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&$e(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw x(y.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=h({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:rt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function $e(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function et(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:tt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function tt(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function nt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rt(e){return e.reduce((e,t)=>h(e,t.meta),{})}function it(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Je(e,t[i])<0?r=i:n=i+1}let i=at(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function at(e){let t=e;for(;t=t.parent;)if(ot(t)&&Je(e,t)===0)return t}function ot({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function st(e){let t=o(re),n=o(ie),r=l(()=>{let n=s(e.to);return t.resolve(n)}),i=l(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(B.bind(null,i));if(o>-1)return o;let s=ft(e[t-2]);return t>1&&ft(i)===s&&a[a.length-1].path!==s?a.findIndex(B.bind(null,e[t-2])):o}),a=l(()=>i.value>-1&&dt(n.params,r.value.params)),c=l(()=>i.value>-1&&i.value===n.matched.length-1&&V(n.params,r.value.params));function u(n={}){if(ut(n)){let n=t[s(e.replace)?`replace`:`push`](s(e.to)).catch(_);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:l(()=>r.value.href),isActive:a,isExactActive:c,navigate:u}}function ct(e){return e.length===1?e[0]:e}var lt=n({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:st,setup(t,{slots:n}){let r=d(st(t)),{options:i}=o(re),a=l(()=>({[pt(t.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[pt(t.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&ct(n.default(r));return t.custom?i:e(`a`,{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}});function ut(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!v(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ft(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var pt=(e,t,n)=>e??t??n,mt=n({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(n,{attrs:r,slots:i}){let u=o(ae),d=l(()=>n.route||u.value),f=o(ne,0),p=l(()=>{let e=s(f),{matched:t}=d.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),m=l(()=>d.value.matched[p.value]);a(ne,l(()=>p.value+1)),a(te,m),a(ae,d);let g=t();return c(()=>[g.value,m.value,n.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!B(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let t=d.value,a=n.name,o=m.value,s=o&&o.components[a];if(!s)return ht(i.default,{Component:s,route:t});let c=o.props[a],l=e(s,h({},c?c===!0?t.params:typeof c==`function`?c(t):c:null,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:g}));return ht(i.default,{Component:l,route:t})||l}}});function ht(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var gt=mt;function _t(e){let t=Qe(e.routes,e),n=e.parseQuery||Oe,a=e.stringifyQuery||ke,o=e.history,c=Y(),l=Y(),d=Y(),p=r(G),m=G;f&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=g.bind(null,e=>``+e),b=g.bind(null,me),te=g.bind(null,F);function ne(e,n){let r,i;return De(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function oe(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function se(){return t.getRoutes().map(e=>e.record)}function ce(e){return!!t.getRecordMatcher(e)}function C(e,r){if(r=h({},r||p.value),typeof e==`string`){let i=R(n,e,r.path),a=t.resolve({path:i.path},r),s=o.createHref(i.fullPath);return h(i,a,{params:te(a.params),hash:F(i.hash),redirectedFrom:void 0,href:s})}let i;if(e.path!=null)i=h({},e,{path:R(n,e.path,r.path).path});else{let t=h({},e.params);for(let e in t)t[e]??delete t[e];i=h({},e,{params:b(t)}),r.params=b(r.params)}let s=t.resolve(i,r),c=e.hash||``;s.params=ee(te(s.params));let l=he(a,h({},e,{hash:pe(c),path:s.path})),u=o.createHref(l);return h({fullPath:l,hash:c,query:a===ke?Ae(e.query):e.query||{}},s,{redirectedFrom:void 0,href:u})}function w(e){return typeof e==`string`?R(n,e,p.value.path):h({},e)}function T(e,t){if(m!==e)return x(y.NAVIGATION_CANCELLED,{from:t,to:e})}function E(e){return O(e)}function le(e){return E(h(w(e),{replace:!0}))}function D(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=w(i):{path:i},i.params={}),h({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function O(e,t){let n=m=C(e),r=p.value,i=e.state,o=e.force,s=e.replace===!0,c=D(n,r);if(c)return O(h(w(c),{state:typeof c==`object`?h({},i,c.state):i,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!o&&ge(a,r,n)&&(u=x(y.NAVIGATION_DUPLICATED,{to:l,from:r}),V(r,r,!0,!1)),(u?Promise.resolve(u):de(l,r)).catch(e=>S(e)?S(e,y.NAVIGATION_GUARD_REDIRECT)?e:B(e):L(e,l,r)).then(e=>{if(e){if(S(e,y.NAVIGATION_GUARD_REDIRECT))return O(h({replace:s},w(e.to),{state:typeof e.to==`object`?h({},i,e.to.state):i,force:o}),t||l)}else e=fe(l,r,!0,s,i);return A(l,r,e),e})}function ue(e,t){let n=T(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=W.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function de(e,t){let n,[r,i,a]=Me(e,t);n=je(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let o=ue.bind(null,e,t);return n.push(o),q(n).then(()=>{n=[];for(let r of c.list())n.push(X(r,e,t));return n.push(o),q(n)}).then(()=>{n=je(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(o),q(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(o),q(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=je(a,`beforeRouteEnter`,e,t,k),n.push(o),q(n))).then(()=>{n=[];for(let r of l.list())n.push(X(r,e,t));return n.push(o),q(n)}).catch(e=>S(e,y.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function A(e,t,n){d.list().forEach(r=>k(()=>r(e,t,n)))}function fe(e,t,n,r,i){let a=T(e,t);if(a)return a;let s=t===G,c=f?history.state:{};n&&(r||s?o.replace(e.fullPath,h({scroll:s&&c&&c.scroll},i)):o.push(e.fullPath,i)),p.value=e,V(e,t,n,s),B()}let j;function M(){j||=o.listen((e,t,n)=>{if(!K.listening)return;let r=C(e),i=D(r,K.currentRoute.value);if(i){O(h(i,{replace:!0,force:!0}),r).catch(_);return}m=r;let a=p.value;f&&we(Se(a.fullPath,n.delta),J()),de(r,a).catch(e=>S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_CANCELLED)?e:S(e,y.NAVIGATION_GUARD_REDIRECT)?(O(h(w(e.to),{force:!0}),r).then(e=>{S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===_e.pop&&o.go(-1,!1)}).catch(_),Promise.reject()):(n.delta&&o.go(-n.delta,!1),L(e,r,a))).then(e=>{e||=fe(r,a,!1),e&&(n.delta&&!S(e,y.NAVIGATION_CANCELLED)?o.go(-n.delta,!1):n.type===_e.pop&&S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),A(r,a,e)}).catch(_)})}let N=Y(),P=Y(),I;function L(e,t,n){B(e);let r=P.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function z(){return I&&p.value!==G?Promise.resolve():new Promise((e,t)=>{N.add([e,t])})}function B(e){return I||(I=!e,M(),N.list().forEach(([t,n])=>e?n(e):t()),N.reset()),e}function V(t,n,r,a){let{scrollBehavior:o}=e;if(!f||!o)return Promise.resolve();let s=!r&&Te(Se(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&xe(e)).catch(e=>L(e,t,n))}let H=e=>o.go(e),U,W=new Set,K={currentRoute:p,listening:!0,addRoute:ne,removeRoute:oe,clearRoutes:t.clearRoutes,hasRoute:ce,getRoutes:se,resolve:C,options:e,push:E,replace:le,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:c.add,beforeResolve:l.add,afterEach:d.add,onError:P.add,isReady:z,install(e){e.component(`RouterLink`,lt),e.component(`RouterView`,gt),e.config.globalProperties.$router=K,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>s(p)}),f&&!U&&p.value===G&&(U=!0,E(o.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>p.value[e],enumerable:!0});e.provide(re,K),e.provide(ie,u(t)),e.provide(ae,p);let n=e.unmount;W.add(e),e.unmount=function(){W.delete(e),W.size<1&&(m=G,j&&j(),j=null,p.value=G,U=!1,I=!1),n()}}};function q(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return K}export{G as a,Re as i,_t as n,oe as o,ze as r,gt as t};
|
|
1
|
+
import{A as e,Ct as t,E as n,Et as r,F as i,K as a,M as o,Mt as s,ct as c,m as l,wt as u,xt as d}from"./vendor/json-editor-vue-go859b33.js";var f=typeof document<`u`;function p(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function m(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&p(e.default)}var h=Object.assign;function g(e,t){let n={};for(let r in t){let i=t[r];n[r]=v(i)?i.map(e):e(i)}return n}var _=()=>{},v=Array.isArray;function ee(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var y=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),b=Symbol(``);y.MATCHER_NOT_FOUND,y.NAVIGATION_GUARD_REDIRECT,y.NAVIGATION_ABORTED,y.NAVIGATION_CANCELLED,y.NAVIGATION_DUPLICATED;function x(e,t){return h(Error(),{type:e,[b]:!0},t)}function S(e,t){return e instanceof Error&&b in e&&(t==null||!!(e.type&t))}var te=Symbol(``),ne=Symbol(``),re=Symbol(``),ie=Symbol(``),ae=Symbol(``);function oe(e){return o(ie)}var se=/#/g,ce=/&/g,C=/\//g,w=/=/g,T=/\?/g,E=/\+/g,le=/%5B/g,D=/%5D/g,O=/%5E/g,ue=/%60/g,k=/%7B/g,de=/%7C/g,A=/%7D/g,fe=/%20/g;function j(e){return e==null?``:encodeURI(``+e).replace(de,`|`).replace(le,`[`).replace(D,`]`)}function pe(e){return j(e).replace(k,`{`).replace(A,`}`).replace(O,`^`)}function M(e){return j(e).replace(E,`%2B`).replace(fe,`+`).replace(se,`%23`).replace(ce,`%26`).replace(ue,"`").replace(k,`{`).replace(A,`}`).replace(O,`^`)}function N(e){return M(e).replace(w,`%3D`)}function P(e){return j(e).replace(se,`%23`).replace(T,`%3F`)}function me(e){return P(e).replace(C,`%2F`)}function F(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var I=/\/$/,L=e=>e.replace(I,``);function R(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=W(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:F(o)}}function he(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function z(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ge(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&B(t.matched[r],n.matched[i])&&V(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function B(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function V(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!H(e[n],t[n]))return!1;return!0}function H(e,t){return v(e)?U(e,t):v(t)?U(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function U(e,t){return v(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function W(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},_e=function(e){return e.pop=`pop`,e.push=`push`,e}({}),K=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function q(e){if(!e)if(f){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),L(e)}var ve=/^[^#]+#/;function ye(e,t){return e.replace(ve,`#`)+t}function be(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var J=()=>({left:window.scrollX,top:window.scrollY});function xe(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=be(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Se(e,t){return(history.state?history.state.position-t:-1)+e}var Ce=new Map;function we(e,t){Ce.set(e,t)}function Te(e){let t=Ce.get(e);return Ce.delete(e),t}function Ee(e){return typeof e==`string`||e&&typeof e==`object`}function De(e){return typeof e==`string`||typeof e==`symbol`}function Oe(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(E,` `),i=r.indexOf(`=`),a=F(i<0?r:r.slice(0,i)),o=i<0?null:F(r.slice(i+1));if(a in t){let e=t[a];v(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function ke(e){let t=``;for(let n in e){let r=e[n];if(n=N(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(v(r)?r.map(e=>e&&M(e)):[r&&M(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Ae(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=v(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Y(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(x(y.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ee(e)?c(x(y.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function je(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(p(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=m(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function Me(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>B(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>B(e,s))||i.push(s))}return[n,r,i]}var Ne=()=>location.protocol+`//`+location.host;function Pe(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),z(n,``)}return z(n,e)+r+i}function Fe(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Pe(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:_e.pop,direction:u?u>0?K.forward:K.back:K.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(h({},e.state,{scroll:J()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Ie(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?J():null}}function Le(e){let{history:t,location:n}=window,r={value:Pe(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ne()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,h({},t.state,Ie(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=h({},i.value,t.state,{forward:e,scroll:J()});a(o.current,o,!0),a(e,h({},Ie(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Re(e){e=q(e);let t=Le(e),n=Fe(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=h({location:``,base:e,go:r,createHref:ye.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function ze(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Re(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),Be={type:Z.Static,value:``},Ve=/[a-zA-Z0-9_]/;function He(e){if(!e)return[[]];if(e===`/`)return[[Be]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:Ve.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Ue=`[^/]+?`,We={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),Ge=/[.+*?^${}()[\]/\\]/g;function Ke(e,t){let n=h({},We,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(Ge,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ue;if(u!==Ue){s+=$.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(v(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=v(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function qe(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Je(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=qe(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ye(r))return 1;if(Ye(i))return-1}return i.length-r.length}function Ye(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Xe={strict:!1,end:!0,sensitive:!1};function Ze(e,t,n){let r=h(Ke(He(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Qe(e,t){let n=[],r=new Map;t=ee(Xe,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=et(e);s.aliasOf=r&&r.record;let l=ee(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(et(h({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ze(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!nt(d)&&o(e.name)),ot(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:_}function o(e){if(De(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=it(e,n);n.splice(t,0,e),e.record.name&&!nt(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw x(y.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=h($e(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&$e(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw x(y.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=h({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:rt(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function $e(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function et(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:tt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function tt(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function nt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rt(e){return e.reduce((e,t)=>h(e,t.meta),{})}function it(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Je(e,t[i])<0?r=i:n=i+1}let i=at(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function at(e){let t=e;for(;t=t.parent;)if(ot(t)&&Je(e,t)===0)return t}function ot({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function st(e){let t=o(re),n=o(ie),r=l(()=>{let n=s(e.to);return t.resolve(n)}),i=l(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(B.bind(null,i));if(o>-1)return o;let s=ft(e[t-2]);return t>1&&ft(i)===s&&a[a.length-1].path!==s?a.findIndex(B.bind(null,e[t-2])):o}),a=l(()=>i.value>-1&&dt(n.params,r.value.params)),c=l(()=>i.value>-1&&i.value===n.matched.length-1&&V(n.params,r.value.params));function u(n={}){if(ut(n)){let n=t[s(e.replace)?`replace`:`push`](s(e.to)).catch(_);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:l(()=>r.value.href),isActive:a,isExactActive:c,navigate:u}}function ct(e){return e.length===1?e[0]:e}var lt=n({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:st,setup(t,{slots:n}){let r=d(st(t)),{options:i}=o(re),a=l(()=>({[pt(t.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[pt(t.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&ct(n.default(r));return t.custom?i:e(`a`,{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}});function ut(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dt(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!v(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ft(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var pt=(e,t,n)=>e??t??n,mt=n({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(n,{attrs:r,slots:i}){let u=o(ae),d=l(()=>n.route||u.value),f=o(ne,0),p=l(()=>{let e=s(f),{matched:t}=d.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),m=l(()=>d.value.matched[p.value]);a(ne,l(()=>p.value+1)),a(te,m),a(ae,d);let g=t();return c(()=>[g.value,m.value,n.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!B(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let t=d.value,a=n.name,o=m.value,s=o&&o.components[a];if(!s)return ht(i.default,{Component:s,route:t});let c=o.props[a],l=e(s,h({},c?c===!0?t.params:typeof c==`function`?c(t):c:null,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:g}));return ht(i.default,{Component:l,route:t})||l}}});function ht(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var gt=mt;function _t(e){let t=Qe(e.routes,e),n=e.parseQuery||Oe,a=e.stringifyQuery||ke,o=e.history,c=Y(),l=Y(),d=Y(),p=r(G),m=G;f&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=g.bind(null,e=>``+e),b=g.bind(null,me),te=g.bind(null,F);function ne(e,n){let r,i;return De(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function oe(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function se(){return t.getRoutes().map(e=>e.record)}function ce(e){return!!t.getRecordMatcher(e)}function C(e,r){if(r=h({},r||p.value),typeof e==`string`){let i=R(n,e,r.path),a=t.resolve({path:i.path},r),s=o.createHref(i.fullPath);return h(i,a,{params:te(a.params),hash:F(i.hash),redirectedFrom:void 0,href:s})}let i;if(e.path!=null)i=h({},e,{path:R(n,e.path,r.path).path});else{let t=h({},e.params);for(let e in t)t[e]??delete t[e];i=h({},e,{params:b(t)}),r.params=b(r.params)}let s=t.resolve(i,r),c=e.hash||``;s.params=ee(te(s.params));let l=he(a,h({},e,{hash:pe(c),path:s.path})),u=o.createHref(l);return h({fullPath:l,hash:c,query:a===ke?Ae(e.query):e.query||{}},s,{redirectedFrom:void 0,href:u})}function w(e){return typeof e==`string`?R(n,e,p.value.path):h({},e)}function T(e,t){if(m!==e)return x(y.NAVIGATION_CANCELLED,{from:t,to:e})}function E(e){return O(e)}function le(e){return E(h(w(e),{replace:!0}))}function D(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=w(i):{path:i},i.params={}),h({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function O(e,t){let n=m=C(e),r=p.value,i=e.state,o=e.force,s=e.replace===!0,c=D(n,r);if(c)return O(h(w(c),{state:typeof c==`object`?h({},i,c.state):i,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!o&&ge(a,r,n)&&(u=x(y.NAVIGATION_DUPLICATED,{to:l,from:r}),V(r,r,!0,!1)),(u?Promise.resolve(u):de(l,r)).catch(e=>S(e)?S(e,y.NAVIGATION_GUARD_REDIRECT)?e:B(e):L(e,l,r)).then(e=>{if(e){if(S(e,y.NAVIGATION_GUARD_REDIRECT))return O(h({replace:s},w(e.to),{state:typeof e.to==`object`?h({},i,e.to.state):i,force:o}),t||l)}else e=fe(l,r,!0,s,i);return A(l,r,e),e})}function ue(e,t){let n=T(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=W.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function de(e,t){let n,[r,i,a]=Me(e,t);n=je(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let o=ue.bind(null,e,t);return n.push(o),q(n).then(()=>{n=[];for(let r of c.list())n.push(X(r,e,t));return n.push(o),q(n)}).then(()=>{n=je(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(o),q(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(o),q(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=je(a,`beforeRouteEnter`,e,t,k),n.push(o),q(n))).then(()=>{n=[];for(let r of l.list())n.push(X(r,e,t));return n.push(o),q(n)}).catch(e=>S(e,y.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function A(e,t,n){d.list().forEach(r=>k(()=>r(e,t,n)))}function fe(e,t,n,r,i){let a=T(e,t);if(a)return a;let s=t===G,c=f?history.state:{};n&&(r||s?o.replace(e.fullPath,h({scroll:s&&c&&c.scroll},i)):o.push(e.fullPath,i)),p.value=e,V(e,t,n,s),B()}let j;function M(){j||=o.listen((e,t,n)=>{if(!K.listening)return;let r=C(e),i=D(r,K.currentRoute.value);if(i){O(h(i,{replace:!0,force:!0}),r).catch(_);return}m=r;let a=p.value;f&&we(Se(a.fullPath,n.delta),J()),de(r,a).catch(e=>S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_CANCELLED)?e:S(e,y.NAVIGATION_GUARD_REDIRECT)?(O(h(w(e.to),{force:!0}),r).then(e=>{S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===_e.pop&&o.go(-1,!1)}).catch(_),Promise.reject()):(n.delta&&o.go(-n.delta,!1),L(e,r,a))).then(e=>{e||=fe(r,a,!1),e&&(n.delta&&!S(e,y.NAVIGATION_CANCELLED)?o.go(-n.delta,!1):n.type===_e.pop&&S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),A(r,a,e)}).catch(_)})}let N=Y(),P=Y(),I;function L(e,t,n){B(e);let r=P.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function z(){return I&&p.value!==G?Promise.resolve():new Promise((e,t)=>{N.add([e,t])})}function B(e){return I||(I=!e,M(),N.list().forEach(([t,n])=>e?n(e):t()),N.reset()),e}function V(t,n,r,a){let{scrollBehavior:o}=e;if(!f||!o)return Promise.resolve();let s=!r&&Te(Se(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&xe(e)).catch(e=>L(e,t,n))}let H=e=>o.go(e),U,W=new Set,K={currentRoute:p,listening:!0,addRoute:ne,removeRoute:oe,clearRoutes:t.clearRoutes,hasRoute:ce,getRoutes:se,resolve:C,options:e,push:E,replace:le,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:c.add,beforeResolve:l.add,afterEach:d.add,onError:P.add,isReady:z,install(e){e.component(`RouterLink`,lt),e.component(`RouterView`,gt),e.config.globalProperties.$router=K,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>s(p)}),f&&!U&&p.value===G&&(U=!0,E(o.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>p.value[e],enumerable:!0});e.provide(re,K),e.provide(ie,u(t)),e.provide(ae,p);let n=e.unmount;W.add(e),e.unmount=function(){W.delete(e),W.size<1&&(m=G,j&&j(),j=null,p.value=G,U=!1,I=!1),n()}}};function q(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return K}export{G as a,Re as i,_t as n,oe as o,ze as r,gt as t};
|
package/dist/client/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/gdsye0vf.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-nqh1m7yk.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lkbe0qhh.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-3gd0e2sv.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsplit-pane.css-cyge27bh.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/gdsye0vf.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-cxcynmu7.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-go859b33.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-oipoa1or.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-0y38f305.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-dger8vg9.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rpc-isxadwf4.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-chvd8pav.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-mnod32r1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-n7rqurxx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-router-bjsf3ueg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-fas03c07.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-d0gwgu4l.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/composables-g3h8z0a3.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndialog-nuj407ct.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncard-bs9j5ske.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/fuse-ic4l3jjo.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-link-bm02zjpm.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-bxsmety0.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npm-bqk49gno.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsplit-pane-nneagzae.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/splitpanes.es-m52r20uv.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/telemetry-iyty3hdu.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-ll4al4nh.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nbutton-dy9mskkk.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nicon-do46fhz3.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndark-toggle-dd7qey8l.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nloading-b6gn4u1s.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npanel-grids-ip7w4ejt.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntext-input-ooyn577q.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/editor-ib5dg7xf.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-routes-jda6rt5m.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-logo-bq85idrv.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/tab-icon-me90e54n.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dialog-jbq54nkm.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-subprocess-lka458r1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-tabs-itldyzgg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-schema-dxaz6x8f.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-e6rsfrwe.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/gdsye0vf.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"c4431537-3cdf-4a17-8364-5d3d90841be5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775609765721,false]</script></body></html>
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.4",
|
|
5
5
|
"description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://devtools.nuxt.com",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@nuxt/kit": "^4.4.2",
|
|
39
|
-
"@vitejs/devtools": "^0.1.
|
|
40
|
-
"@vitejs/devtools-kit": "^0.1.
|
|
41
|
-
"@vue/devtools-core": "^8.1.
|
|
42
|
-
"@vue/devtools-kit": "^8.1.
|
|
39
|
+
"@vitejs/devtools": "^0.1.13",
|
|
40
|
+
"@vitejs/devtools-kit": "^0.1.13",
|
|
41
|
+
"@vue/devtools-core": "^8.1.1",
|
|
42
|
+
"@vue/devtools-kit": "^8.1.1",
|
|
43
43
|
"birpc": "^4.0.0",
|
|
44
44
|
"consola": "^3.4.2",
|
|
45
45
|
"destr": "^2.0.5",
|
|
@@ -58,48 +58,48 @@
|
|
|
58
58
|
"semver": "^7.7.4",
|
|
59
59
|
"sirv": "^3.0.2",
|
|
60
60
|
"structured-clone-es": "^2.0.0",
|
|
61
|
-
"tinyexec": "^1.
|
|
62
|
-
"tinyglobby": "^0.2.
|
|
63
|
-
"vite-plugin-inspect": "^
|
|
61
|
+
"tinyexec": "^1.1.1",
|
|
62
|
+
"tinyglobby": "^0.2.16",
|
|
63
|
+
"vite-plugin-inspect": "^12.0.0-beta.1",
|
|
64
64
|
"vite-plugin-vue-tracer": "^1.3.0",
|
|
65
65
|
"which": "^6.0.1",
|
|
66
66
|
"ws": "^8.20.0",
|
|
67
|
-
"@nuxt/devtools-kit": "4.0.0-alpha.
|
|
67
|
+
"@nuxt/devtools-kit": "4.0.0-alpha.4"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@antfu/utils": "^9.3.0",
|
|
71
71
|
"@discoveryjs/cli": "^2.14.7",
|
|
72
72
|
"@discoveryjs/discovery": "1.0.0-beta.92",
|
|
73
73
|
"@iconify-json/bxl": "^1.2.4",
|
|
74
|
-
"@iconify-json/carbon": "^1.2.
|
|
75
|
-
"@iconify-json/logos": "^1.2.
|
|
74
|
+
"@iconify-json/carbon": "^1.2.20",
|
|
75
|
+
"@iconify-json/logos": "^1.2.11",
|
|
76
76
|
"@iconify-json/ph": "^1.2.2",
|
|
77
77
|
"@iconify-json/ri": "^1.2.10",
|
|
78
|
-
"@iconify-json/simple-icons": "^1.2.
|
|
79
|
-
"@iconify-json/tabler": "^1.2.
|
|
78
|
+
"@iconify-json/simple-icons": "^1.2.77",
|
|
79
|
+
"@iconify-json/tabler": "^1.2.33",
|
|
80
80
|
"@nuxt/test-utils": "^4.0.0",
|
|
81
81
|
"@parcel/watcher": "^2.5.6",
|
|
82
82
|
"@types/markdown-it-link-attributes": "^3.0.5",
|
|
83
|
-
"@unhead/schema": "^2.1.
|
|
83
|
+
"@unhead/schema": "^2.1.13",
|
|
84
84
|
"@unocss/nuxt": "^66.6.7",
|
|
85
85
|
"@unocss/preset-icons": "^66.6.7",
|
|
86
86
|
"@unocss/preset-uno": "^66.6.7",
|
|
87
87
|
"@unocss/runtime": "^66.6.7",
|
|
88
|
-
"@vitejs/devtools": "^0.1.
|
|
89
|
-
"@vitest/ui": "^4.1.
|
|
90
|
-
"@vue/devtools-applet": "^8.1.
|
|
88
|
+
"@vitejs/devtools": "^0.1.13",
|
|
89
|
+
"@vitest/ui": "^4.1.3",
|
|
90
|
+
"@vue/devtools-applet": "^8.1.1",
|
|
91
91
|
"@vueuse/nuxt": "^14.2.1",
|
|
92
92
|
"@xterm/addon-fit": "^0.11.0",
|
|
93
93
|
"@xterm/xterm": "^6.0.0",
|
|
94
94
|
"cronstrue": "^3.14.0",
|
|
95
95
|
"exsolve": "^1.0.8",
|
|
96
96
|
"floating-vue": "^5.2.2",
|
|
97
|
-
"fuse.js": "^7.
|
|
97
|
+
"fuse.js": "^7.3.0",
|
|
98
98
|
"json-editor-vue": "^0.18.1",
|
|
99
99
|
"lightningcss": "^1.32.0",
|
|
100
100
|
"markdown-it": "^14.1.1",
|
|
101
101
|
"markdown-it-link-attributes": "^4.0.1",
|
|
102
|
-
"nitropack": "^2.13.
|
|
102
|
+
"nitropack": "^2.13.3",
|
|
103
103
|
"nuxt": "^4.4.2",
|
|
104
104
|
"ofetch": "^1.5.1",
|
|
105
105
|
"package-manager-detector": "^1.6.0",
|
|
@@ -114,11 +114,11 @@
|
|
|
114
114
|
"unocss": "^66.6.7",
|
|
115
115
|
"unplugin-vue": "^7.1.1",
|
|
116
116
|
"unplugin-vue-markdown": "^30.0.0",
|
|
117
|
-
"vanilla-jsoneditor": "^3.
|
|
117
|
+
"vanilla-jsoneditor": "^3.12.0",
|
|
118
118
|
"vis-data": "^8.0.3",
|
|
119
119
|
"vis-network": "^10.0.2",
|
|
120
120
|
"vue-tsc": "^3.2.6",
|
|
121
|
-
"vue-virtual-scroller": "^2.0.
|
|
121
|
+
"vue-virtual-scroller": "^2.0.1"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:discovery && pnpm build:client",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,W as t,v as n}from"./vendor/json-editor-vue-mpqfj7dd.js";import"./composables-f0oa0ya0.js";var r={"h-screen":``,"w-screen":``,"bg-black":``},i=e({__name:`__blank`,setup(e){return(e,i)=>(t(),n(`div`,r))}});export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,Y as o,_ as s,c,dt as l,ft as u,g as d,h as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-mpqfj7dd.js";import{A as _,_ as v}from"./ready-nmtplnq5.js";import{a as y}from"./nuxt-bl8ryhiw.js";import{_ as b,g as x}from"./utils-jkkblreo.js";import{n as S}from"./dev-auth-h6radlhi.js";import{d as C,i as w,u as T}from"./rpc-ga26o8l5.js";import"./vendor/shiki-ildq90cv.js";import"./storage-options-fmhmng6m.js";import"./nuxt-link-h8a2u03t.js";import{t as E}from"./_plugin-vue_export-helper-n58akrbk.js";import"./nicon-o8vtl3nv.js";import"./state-tabs-etz9ig65.js";import"./ncard-bpchuz30.js";import{C as D,_ as O,c as k,g as A,h as j,p as M,t as N,v as P,y as F}from"#entry";import"./client-coqmopwz.js";import{t as I}from"./ncode-block-lbvhz228.js";import"./composables-f0oa0ya0.js";import{t as L}from"./ncheckbox-dqqmiqln.js";import{t as R}from"./filepath-item-lm7tbw9e.js";import{t as z}from"./ntip-erjk5wo4.js";import{t as B}from"./help-fab-ekagn9f2.js";var V={"h-full":``,grid:`~ rows-[max-content_1fr]`},H={flex:`~ wrap`,"w-full":``},U=[`onClick`],W={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},G={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},K=`/__nuxt_devtools__/client`,q=Object.assign(n({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(n){let d=n,v=`${y().app.baseURL.replace(K,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),b=p(()=>{let e=[{name:`Overview`,id:`overview`}];return d.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),d.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),d.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),x=t(b.value[0]);function T(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function E(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function O(e){return w.clearAnalyzeBuilds(await S(),[e])}return(t,d)=>{let p=R,y=D;return a(),h(`div`,V,[f(`div`,H,[(a(!0),h(c,null,o(b.value,(e,t)=>(a(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e.id===x.value?.id?``:`border-b`),onClick:t=>x.value=e},[f(`div`,{class:i(e.id===x.value?.id?``:`op30`)},m(e.name),3)],10,U))),128)),d[1]||=f(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?.id===`overview`?(a(),h(`div`,W,[d[15]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,G,[d[10]||=f(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),f(`div`,null,[d[2]||=f(`div`,{"text-sm":``,op50:``},` Name `,-1),f(`div`,null,m(n.current.name),1)]),d[11]||=f(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),f(`div`,null,[d[3]||=f(`div`,{"text-sm":``,op50:``},` Build duration `,-1),f(`div`,null,m(T(n.current)),1)]),n.current.size?.clientBundle?(a(),h(c,{key:0},[d[5]||=f(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),f(`div`,null,[d[4]||=f(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),f(`div`,null,m(E(n.current.size.clientBundle)),1)])],64)):s(``,!0),n.current.size?.nitroBundle?(a(),h(c,{key:1},[d[7]||=f(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),f(`div`,null,[d[6]||=f(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),f(`div`,null,m(E(n.current.size.nitroBundle)),1)])],64)):s(``,!0),d[12]||=f(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),f(`div`,null,[d[8]||=f(`div`,{"text-sm":``,op50:``},` Built `,-1),f(`div`,null,m(r(C)(new Date(n.current.endTime))),1)]),d[13]||=f(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),f(`div`,null,[d[9]||=f(`div`,{"text-sm":``,op50:``},` Report Path `,-1),g(p,{filepath:n.current.analyzeDir},null,8,[`filepath`])])]),d[16]||=f(`div`,{"flex-auto":``},null,-1),g(y,{n:`rose`,icon:`carbon-delete`,onClick:d[0]||=e=>O(n.current.name)},{default:l(()=>[...d[14]||=[e(` Delete this report `,-1)]]),_:1})])):s(``,!0),d._lazyshow1||x.value?.id===`bundle-client`?(d._lazyshow1=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`bundle-client`]])],64)):s(`v-show-if`,!0),d._lazyshow2||x.value?.id===`bundle-nitro`?(d._lazyshow2=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`bundle-nitro`]])],64)):s(`v-show-if`,!0),d._lazyshow3||x.value?.id===`vite-inspect`?(d._lazyshow3=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`vite-inspect`]])],64)):s(`v-show-if`,!0)])}}}),{__name:`BuildAnalyzeDetails`}),J={},Y={class:`markdown-body`};function X(t,n){return a(),h(`div`,Y,[...n[0]||=[f(`template`,null,[f(`div`,{class:`markdown-body`},[f(`h1`,null,`Build Analyze`),f(`p`,null,[e(`DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command `),f(`code`,{"v-pre":``},`nuxt build --analyze`),e(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var Z=E(J,[[`render`,X]]),Q={flex:`~ col`},$=[`onClick`],ee={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},te={flex:`~ items-center justify-center wrap`,p4:``},ne={flex:`~ col gap-1`,"w-250":``,p4:``},re={flex:`~ gap-3`,mt2:``,"justify-end":``},ie=n({__name:`analyze-build`,setup(n){let u=T(),_=b(),y=v(),E=x(`analyze-build:slug`,``),R=p(()=>_.value?.builds.find(e=>e.slug===E.value)??_.value?.builds[0]),V=t(!1),H=t(``),U=p(()=>_.value?.builds.some(e=>e.name===H.value.trim()));async function W(){H.value=await w.generateAnalyzeBuildName(),await u.start()&&(F(`analyze-build:start`),N.value={name:H.value,processId:await w.startAnalyzeBuild(await S(),H.value)},V.value&&J())}let G=k();function K(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function J(){N.value?.processId&&(G.value=N.value.processId,y.push(`/modules/terminals`))}return M(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:W}]),(t,n)=>{let p=D,v=q,y=P,b=O,x=A,S=z,w=I,T=L,k=j,M=Z,F=B;return a(),h(c,null,[g(b,{"left-size":30},{left:l(()=>[f(`div`,Q,[(a(!0),h(c,null,o(r(_)?.builds,e=>(a(),h(c,{key:e.slug},[f(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:i(e.slug===R.value?.slug?`text-primary bg-active`:``),onClick:t=>E.value=e.slug},[f(`code`,null,m(e.name),1),f(`div`,ee,[n[4]||=f(`div`,{"i-carbon-time":``},null,-1),f(`span`,null,m(K(e)),1),n[5]||=f(`div`,{"flex-auto":``},null,-1),f(`span`,null,m(r(C)(new Date(e.endTime))),1)])],10,$),n[6]||=f(`div`,{"x-divider":``},null,-1)],64))),128)),f(`div`,te,[r(N)?(a(),d(p,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,onClick:n[1]||=e=>J()},{default:l(()=>[...n[8]||=[e(` Building... `,-1)]]),_:1})):(a(),d(p,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:n[0]||=e=>W()},{default:l(()=>[...n[7]||=[e(` Start a new build `,-1)]]),_:1}))])])]),right:l(()=>[R.value?(a(),d(v,{key:0,current:R.value},null,8,[`current`])):(a(),d(y,{key:1}))]),_:1}),g(r(u),null,{default:l(({resolve:t})=>[g(k,{"model-value":!0,onClose:e=>t(!1)},{default:l(()=>[f(`div`,ne,[n[13]||=f(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),n[14]||=f(`p`,{op50:``},` Enter the name of the build: `,-1),g(x,{modelValue:H.value,"onUpdate:modelValue":n[2]||=e=>H.value=e,placeholder:`Build name`},null,8,[`modelValue`]),U.value?(a(),d(S,{key:0,"n-orange":``},{default:l(()=>[...n[9]||=[e(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):s(``,!0),n[15]||=f(`div`,{my3:``,"x-divider":``},null,-1),n[16]||=f(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),g(w,{code:`npx nuxi analyze --no-serve --name=${H.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),g(T,{modelValue:V.value,"onUpdate:modelValue":n[3]||=e=>V.value=e,mt2:``,n:`primary`},{default:l(()=>[...n[10]||=[e(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),f(`div`,re,[g(p,{onClick:e=>t(!1)},{default:l(()=>[...n[11]||=[e(` Cancel `,-1)]]),_:1},8,[`onClick`]),g(p,{n:`solid primary`,onClick:e=>t(!0)},{default:l(()=>[...n[12]||=[e(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),g(F,null,{default:l(()=>[g(M)]),_:1})],64)}}});export{ie as default};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{C as e,Ct as t,E as n,Mt as r,Q as i,Qt as a,W as o,X as s,Y as c,_ as l,c as u,dt as d,en as f,ft as p,g as m,h,m as g,tn as _,v,vt as y,w as b}from"./vendor/json-editor-vue-mpqfj7dd.js";import{j as x,k as S}from"./ready-nmtplnq5.js";import{j as C,w}from"./utils-jkkblreo.js";import{n as T}from"./dev-auth-h6radlhi.js";import{A as E,D,E as O,L as k,T as A,a as j,b as M,c as N,i as P,p as F,s as I}from"./rpc-ga26o8l5.js";import"./vendor/shiki-ildq90cv.js";import{t as L}from"./storage-options-fmhmng6m.js";import"./nuxt-link-h8a2u03t.js";import{t as R}from"./nicon-o8vtl3nv.js";import"./ncard-bpchuz30.js";import{C as z,T as B,a as ee,g as V,h as te,i as ne,m as H,y as U}from"#entry";import{t as W}from"./ndropdown-o0hg8oi1.js";import"./client-coqmopwz.js";import"./ncode-block-lbvhz228.js";import{t as G}from"./ndrawer-pdhwqkg2.js";import"./composables-f0oa0ya0.js";import{t as K}from"./ncheckbox-dqqmiqln.js";import{t as re}from"./filepath-item-lm7tbw9e.js";import{t as q}from"./nnavbar-iwf1qrzf.js";import"./nicon-title-f04kekaa.js";import{t as J}from"./nsection-block-oc6icst0.js";import{t as Y}from"./code-snippets-lje00rjy.js";var X={key:0,"h-full":``,"w-full":``,flex:``,"items-center":``,"justify-center":``},ie={for:`drop-zone-input`,"text-3xl":``,hover:`text-green cursor-pointer`,"transition-all":``},ae={key:1,relative:``,"h-full":``,"w-full":``,grid:`~ rows-[max-content_1fr_max-content]`},oe={grid:`~ cols-minmax-8rem gap-8`,"overflow-auto":``,p6:``},se={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,rounded:``,"rounded-t-lg":``,"bg-active":``,"object-cover":``,class:`aspect-1/1`,border:`~ base`},ce=[`src`],le={flex:`~ gap1`,"items-center":``},ue={flex:`~ gap-2`,"items-center":``,"justify-center":``,p8:``},de=Object.assign(n({__name:`AssetDropZone`,props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(n){let s=n,f=/\.\w+$/,g=D(s,`modelValue`),_=t(),y=t([]);function x(e){_.value=e.target,g.value=!0}function S(e){e.target===_.value&&(g.value=!1)}function C(e){e.preventDefault()}function w(e){e.preventDefault(),E(e.dataTransfer.files)}function E(e){let t=[...e||[]];if(t.length){let e=[],n=y.value.map(e=>e.name);for(let r of t)if(n.includes(r.name)){let t=1,[i,a]=r.name.split(`.`);for(;n.includes(`${i} (${t}).${a}`);)t++;let o=`${i}-${t}.${a}`,s=new Blob([r],{type:r.type}),c=new File([s],o,{lastModified:Date.now()});e.push(c),n.push(o)}else r.type===``&&B({message:`Folders are not supported yet`,icon:`carbon:face-dissatisfied`,classes:`text-orange`}),e.push(r);y.value=[...y.value,...e]}}async function O(){if(j.value||I.value)return;U(`assets:upload`);let e=[];for(let t of y.value){let n=new FileReader;n.readAsDataURL(t);let r=(await new Promise(e=>{n.onload=()=>e(n.result)})).split(`;base64,`).pop();e.push({path:t.name,encoding:`base64`,content:r})}await P.writeStaticAssets(await T(),[...e],s.folder).then(()=>{L(),B({message:`Files uploaded successfully!`,icon:`i-carbon:checkmark`})}).catch(e=>{L(),B({message:`Error uploading files: ${e?.message??`unknown`}`,icon:`i-carbon-warning`,classes:`text-red`})}),g.value=!1}function k(e){y.value?.splice(e,1)}function A(e){return URL.createObjectURL(e)}function N(e,t){let[n,r]=e.name.split(`.`),i=t.replace(f,``),a=`${i}.${r}`;return i.length===0?(alert(`File name must be at least 1 characters long`),n):(Object.defineProperty(e,`name`,{value:a,writable:!1}),y.value.splice(y.value.indexOf(e),1,e),e)}function F(){y.value=[]}function L(){g.value=!1,F()}return M(`dragenter`,x),M(`dragleave`,S),M(`dragover`,C),M(`drop`,w),(t,n)=>{let s=z,f=R,_=V,x=i(`tooltip`);return o(),v(`div`,{fixed:``,"bottom-0":``,"left-13":``,"right-0":``,"top-0":``,"z-10":``,"backdrop-blur-20":``,"transition-all":``,class:a(r(g)?`opacity-100 visible`:`opacity-0 invisible`)},[p(b(s,{icon:`carbon-close`,title:`Close`,absolute:``,"right-5":``,"top-5":``,"z-20":``,"text-xl":``,border:!1,onClick:L},null,512),[[x,`Close`,void 0,{"bottom-end":!0}]]),y.value?.length?(o(),v(`div`,ae,[n[4]||=h(`div`,{px6:``,py6:``},[h(`h1`,{"text-2xl":``},` Upload `),h(`p`,{"text-sm":``,op50:``},` Drag and drop files to upload `)],-1),h(`div`,oe,[(o(!0),v(u,null,c(y.value,(e,t)=>(o(),v(`div`,{key:e.name,flex:`~ col gap-2`,relative:``,"h-50":``,"w-40":``,"items-center":``},[h(`div`,se,[h(`img`,{"h-full":``,"w-full":``,"rounded-t-lg":``,"object-cover":``,src:A(e)},null,8,ce)]),h(`div`,le,[b(_,{n:`xs`,"h-full":``,"flex-auto":``,"model-value":e.name,"onUpdate:modelValue":t=>N(e,t.target.value)},null,8,[`model-value`,`onUpdate:modelValue`]),b(s,{n:`red`,icon:`carbon-trash-can`,"h-full":``,"flex-none":``,title:`Remove file`,onClick:e=>k(t)},null,8,[`onClick`])])]))),128))]),h(`div`,ue,[y.value.length?(o(),m(s,{key:0,n:`red`,onClick:F},{default:d(()=>[b(f,{icon:`carbon-clean`}),n[2]||=e(` Clear `,-1)]),_:1})):l(``,!0),b(s,{disabled:!y.value.length,n:`primary solid`,onClick:O},{default:d(()=>[b(f,{icon:`carbon-cloud-upload`}),n[3]||=e(` Upload `,-1)]),_:1},8,[`disabled`])])])):(o(),v(`div`,X,[h(`label`,ie,[b(f,{icon:`carbon-cloud-upload`,"mr-2":``}),n[1]||=e(` Drop files here or click to select `,-1)]),h(`input`,{id:`drop-zone-input`,type:`file`,multiple:``,hidden:``,onChange:n[0]||=e=>E(e.target.files)},null,32)]))],2)}}}),{__name:`AssetDropZone`}),fe=Object.assign(n({__name:`AssetFontPreview`,props:{asset:{}},setup(e){let t=e,n=g(()=>`devtools-assets-${k(t.asset)}`);return A(g(()=>`
|
|
2
|
-
@font-face {
|
|
3
|
-
font-family: '${n.value}';
|
|
4
|
-
src: url('${t.asset.publicPath}');
|
|
5
|
-
}
|
|
6
|
-
`)),(e,t)=>(o(),v(`div`,{"of-hidden":``,style:f({fontFamily:`'${n.value}'`})},` Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz `,4))}}),{__name:`AssetFontPreview`}),pe={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,"bg-active":``,"object-cover":``,p1:``},me=[`src`],he={key:2,"i-carbon-document":``,"text-3xl":``,op20:``},ge={key:3,"w-full":``,"self-start":``,p4:``},_e=[`textContent`],ve={key:4},ye=[`src`,`autoplay`,`controls`],be={key:5},xe={key:0,"i-carbon-volume-up":``,"text-3xl":``,op20:``},Se=[`src`],Ce={key:6,"i-carbon-help":``,"text-3xl":``,op20:``},Z=Object.assign(n({__name:`AssetPreview`,props:{asset:{},textContent:{},detail:{type:Boolean}},setup(e){return(t,n)=>{let r=fe;return o(),v(`div`,pe,[e.asset.type===`image`?(o(),v(`img`,{key:0,src:e.asset.publicPath},null,8,me)):e.asset.type===`font`?(o(),m(r,{key:e.asset.publicPath,asset:e.asset,"self-stretch":``,p2:``,"text-2xl":``},null,8,[`asset`])):e.asset.type===`text`&&!e.textContent?(o(),v(`div`,he)):e.asset.type===`text`&&e.textContent?(o(),v(`div`,ge,[h(`pre`,{"max-h-10rem":``,"of-hidden":``,"text-xs":``,"font-mono":``,textContent:_(e.textContent)},null,8,_e)])):e.asset.type===`video`?(o(),v(`div`,ve,[h(`video`,{src:e.asset.publicPath,autoplay:e.detail,controls:e.detail},null,8,ye)])):e.asset.type===`audio`?(o(),v(`div`,be,[e.detail?(o(),v(`audio`,{key:1,src:e.asset.publicPath,controls:``},null,8,Se)):(o(),v(`div`,xe))])):(o(),v(`div`,Ce))])}}}),{__name:`AssetPreview`}),we={relative:``,flex:`~ col gap-1`,hover:`bg-active`,"items-center":``,"of-hidden":``,rounded:``,p2:``},Te={"w-full":``,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-center":``,"text-xs":``},Ee=Object.assign(n({__name:`AssetGridItem`,props:{asset:{},folder:{}},setup(e){let t=e,n=g(()=>t.folder&&t.asset.path.startsWith(t.folder)?t.asset.path.slice(t.folder.length):t.asset.path);return(t,r)=>{let i=R,a=Z;return o(),v(`button`,we,[e.asset.layer?(o(),m(i,{key:0,icon:`i-carbon-layers`,absolute:``,"right-4":``,"top-4":``,"bg-primary":``})):l(``,!0),b(a,{"h-30":``,"w-30":``,rounded:``,border:`~ base`,asset:e.asset},null,8,[`asset`]),h(`div`,Te,_(n.value),1)])}}}),{__name:`AssetGridItem`}),Q=Object.assign(n({__name:`AssetListItem`,props:{item:{},index:{default:0},modelValue:{}},setup(n,{emit:i}){let d=n,p=D(d,`modelValue`,i,{passive:!0}),b=g(()=>d.item?.children?.length),x=t(!0),S=g(()=>b.value?`i-carbon-folder`:d.item.type===`image`?`i-carbon-image`:d.item.type===`video`?`i-carbon-video`:d.item.type===`audio`?`i-carbon-volume-up`:d.item.type===`font`?`i-carbon-text-small-caps`:d.item.type===`text`?`i-carbon-document`:d.item.type===`json`?`i-carbon-json`:`i-carbon-document-blank`);return(t,i)=>{let d=R,g=Q;return o(),v(`div`,null,[h(`button`,{flex:`~ gap-2`,"w-full":``,"items-center":``,hover:`bg-active`,px4:``,py1:``,style:f({paddingLeft:`calc(1rem + ${n.index*1.5}em)`}),class:a({"bg-active":!b.value&&r(p)?.filePath===n.item?.filePath}),border:`b base`,onClick:i[0]||=e=>b.value?x.value=!x.value:p.value=n.item},[h(`div`,{class:a(S.value)},null,2),h(`span`,{class:a({"flex items-center":b.value}),"flex-auto":``,"text-start":``,"text-sm":``,"font-mono":``},[e(_(n.item.path)+` `,1),n.item.layer?(o(),m(d,{key:0,icon:`i-carbon-layers`,"bg-primary":``})):l(``,!0)],2),b.value?(o(),m(d,{key:0,icon:`carbon:chevron-right`,"transform-rotate":x.value?90:0,transition:``},null,8,[`transform-rotate`])):l(``,!0)],6),x.value?s(t.$slots,`default`,{key:0},()=>[(o(!0),v(u,null,c(n.item?.children,e=>(o(),m(g,{key:e.filepath,modelValue:r(p),"onUpdate:modelValue":i[1]||=e=>y(p)?p.value=e:null,item:e,index:n.index+1},null,8,[`modelValue`,`item`,`index`]))),128))]):l(``,!0)])}}}),{__name:`AssetListItem`}),De={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},Oe={flex:`~`,"items-center":``,"justify-center":``},ke={"max-w-full":``,"w-full":``,"table-fixed":``},Ae={flex:`~ gap-1`,"w-full":``,"items-center":``},je={flex:`~ gap-1`,"w-full":``,"items-center":``,"of-hidden":``},Me={"flex-auto":``,"of-hidden":``,truncate:``,"ws-pre":``,"font-mono":``},Ne={capitalize:``},Pe={key:0},Fe={op70:``},Ie={flex:`~ gap2 wrap`},Le={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Re={flex:`~ gap2 wrap justify-center`},ze={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Be={flex:`~ gap2 wrap justify-center`},Ve={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},$={flex:``,"justify-end":``,"gap-4":``},He=Object.assign(n({__name:`AssetDetails`,props:{modelValue:{}},setup(n,{emit:a}){let s=D(n,`modelValue`,a,{passive:!0}),c=N(async()=>{if(s.value.type===`image`)return P.getImageMeta(await T(),s.value.filePath)}),f=t(!1),y=t(),C=t(0),E=N(async()=>{if(s.value.type!==`text`)return;C.value;let e=await P.getTextAssetContent(await T(),s.value.filePath);return y.value=e,e});async function k(){if(E.value!==y.value)try{await P.writeStaticAssets(await T(),[{path:s.value.path,content:y.value,override:!0}],``),f.value=!1,C.value++,B({message:`Updated`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),B({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let A=w(),j=g(()=>(A.value?._installedModules||[]).some(e=>e.meta?.name===`@nuxt/image`||e.meta?.name===`@nuxt/image-edge`||e.meta?.name===`@nuxt/image-nightly`)),M=g(()=>{let e=[];if(s.value.type===`image`){let t=c.value?.width?`\n width="${c.value.width}"\n height="${c.value.height}" `:` `;return e.push({lang:`vue-html`,code:`<img${t}\n src="${s.value.publicPath}"\n/>`,name:`Plain Image`}),j.value&&e.push({lang:`vue-html`,code:`<NuxtImg${t}\n src="${s.value.publicPath}"\n/>`,name:`Nuxt Img`,docs:`https://image.nuxt.com/usage/nuxt-img`},{lang:`vue-html`,code:`<NuxtPicture${t}\n src="${s.value.publicPath}"\n/>`,name:`Nuxt Picture`,docs:`https://image.nuxt.com/usage/nuxt-picture`}),e}return e.push({lang:`html`,code:`<a download href="${s.value.publicPath}">\n Download ${s.value.path.split(`/`).slice(-1)[0]}\n</a>`,name:`Download link`}),e}),F=ne(),I=ee(),L=O(()=>s.value.mtime),R=g(()=>{let e=s.value.size;return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:`${(e/1024/1024).toFixed(2)} MB`}),H=g(()=>{if(!c.value?.width||!c.value?.height)return``;let e=(t,n)=>n?e(n,t%n):t,t=e(c.value.width,c.value.height);return t>3?`${c.value.width/t}:${c.value.height/t}`:``}),U=g(()=>[`image`,`text`,`video`,`audio`,`font`].includes(s.value.type)),W=t(!1);async function G(){try{await P.deleteStaticAsset(await T(),s.value.filePath),s.value=void 0,W.value=!1,B({message:`Asset deleted`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),B({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let K=t(!1),q=t(``);async function J(){let e=s.value.filePath.split(`/`),t=e.slice(-1)[0]?.split(`.`).slice(0,-1).join(`.`);if(!q.value||q.value===t)return B({message:`Please enter a new name`,icon:`i-carbon-warning`,classes:`text-orange`});try{let t=e.slice(-1)[0]?.split(`.`).slice(-1)[0],n=`${e.slice(0,-1).join(`/`)}/${q.value}.${t}`;await P.renameStaticAsset(await T(),s.value.filePath,n),s.value=void 0,K.value=!1,B({message:`Asset renamed`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),B({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}return(t,n)=>{let a=Z,g=re,C=z,w=Y,T=te,D=V,O=i(`tooltip`);return o(),v(u,null,[h(`div`,De,[U.value?(o(),v(u,{key:0},[n[13]||=h(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[h(`div`,{"x-divider":``}),h(`div`,{"flex-none":``},` Preview `),h(`div`,{"x-divider":``})],-1),h(`div`,Oe,[b(a,{detail:``,"max-h-80":``,"min-h-20":``,"min-w-20":``,"w-auto":``,rounded:``,border:`~ base`,asset:r(s),"text-content":r(E)},null,8,[`asset`,`text-content`])])],64)):l(``,!0),n[25]||=h(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[h(`div`,{"x-divider":``}),h(`div`,{"flex-none":``},` Details `),h(`div`,{"x-divider":``})],-1),h(`table`,ke,[h(`tbody`,null,[h(`tr`,null,[n[14]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Filepath `,-1),h(`td`,null,[h(`div`,Ae,[b(g,{filepath:r(s).filePath,"text-left":``},null,8,[`filepath`]),p(b(C,{"flex-none":``,title:`Open in Editor`,icon:`carbon-launch`,border:!1,onClick:n[0]||=e=>r(I)(r(s).filePath)},null,512),[[O,`Open in Editor`]])])])]),h(`tr`,null,[n[15]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Public Path `,-1),h(`td`,null,[h(`div`,je,[h(`div`,Me,_(r(s).publicPath),1),p(b(C,{"flex-none":``,title:`Copy public path`,icon:`carbon-copy`,border:!1,onClick:n[1]||=e=>r(F)(r(s).publicPath,`assets-public-path`)},null,512),[[O,`Copy public path`]]),p(b(C,{"flex-none":``,to:r(s).publicPath,icon:`carbon-launch`,target:`_blank`,border:!1,title:`Open in browser`},null,8,[`to`]),[[O,`Open in browser`]])])])]),h(`tr`,null,[n[16]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Type `,-1),h(`td`,Ne,_(r(s).type),1)]),r(c)?.width?(o(),v(u,{key:0},[h(`tr`,null,[n[17]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Image Size `,-1),h(`td`,null,_(r(c).width)+` x `+_(r(c).height),1)]),H.value?(o(),v(`tr`,Pe,[n[18]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Aspect Ratio `,-1),h(`td`,null,_(H.value),1)])):l(``,!0)],64)):l(``,!0),h(`tr`,null,[n[19]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` File size `,-1),h(`td`,null,_(R.value),1)]),h(`tr`,null,[n[20]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Last modified `,-1),h(`td`,null,[e(_(new Date(r(s).mtime).toLocaleString())+` `,1),h(`span`,Fe,`(`+_(r(L))+`)`,1)])])])]),n[26]||=h(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[h(`div`,{"x-divider":``}),h(`div`,{"flex-none":``},` Actions `),h(`div`,{"x-divider":``})],-1),h(`div`,Ie,[b(C,{to:r(s).publicPath,download:``,target:`_blank`,icon:`carbon-download`,n:`green`},{default:d(()=>[...n[21]||=[e(` Download `,-1)]]),_:1},8,[`to`]),r(s).type===`text`?(o(),m(C,{key:0,icon:`carbon-edit`,n:`cyan`,onClick:n[2]||=e=>f.value=!f.value},{default:d(()=>[...n[22]||=[e(` Edit `,-1)]]),_:1})):l(``,!0),b(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:n[3]||=e=>K.value=!K.value},{default:d(()=>[...n[23]||=[e(` Rename `,-1)]]),_:1}),b(C,{icon:`carbon-delete`,n:`red`,onClick:n[4]||=e=>W.value=!W.value},{default:d(()=>[...n[24]||=[e(` Delete `,-1)]]),_:1})]),n[27]||=h(`div`,{"flex-auto":``},null,-1),M.value.length?(o(),m(w,{key:1,border:`t base`,"mx--4":``,"mb--4":``,"code-snippets":M.value},null,8,[`code-snippets`])):l(``,!0)]),b(T,{modelValue:W.value,"onUpdate:modelValue":n[6]||=e=>W.value=e},{default:d(()=>[h(`div`,Le,[n[30]||=h(`span`,null,` Are you sure you want to delete this asset? `,-1),h(`div`,Re,[b(C,{icon:`carbon-close`,onClick:n[5]||=e=>W.value=!1},{default:d(()=>[...n[28]||=[e(` Cancel `,-1)]]),_:1}),b(C,{icon:`carbon-delete`,n:`red`,onClick:G},{default:d(()=>[...n[29]||=[e(` Delete `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),b(T,{modelValue:K.value,"onUpdate:modelValue":n[9]||=e=>K.value=e},{default:d(()=>[h(`div`,ze,[b(D,{modelValue:q.value,"onUpdate:modelValue":n[7]||=e=>q.value=e,placeholder:`New name`,n:`blue`},null,8,[`modelValue`]),h(`div`,Be,[b(C,{icon:`carbon-close`,onClick:n[8]||=e=>K.value=!1},{default:d(()=>[...n[31]||=[e(` Cancel `,-1)]]),_:1}),b(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:J},{default:d(()=>[...n[32]||=[e(` Rename `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),r(s).type===`text`?(o(),m(T,{key:0,modelValue:f.value,"onUpdate:modelValue":n[12]||=e=>f.value=e},{default:d(()=>[h(`div`,Ve,[p(h(`textarea`,{"onUpdate:modelValue":n[10]||=e=>y.value=e,placeholder:`Item value...`,class:`h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none`,onKeydown:x(k,[`enter`])},null,544),[[S,y.value]]),h(`div`,$,[b(C,{icon:`carbon-close`,onClick:n[11]||=e=>f.value=!1},{default:d(()=>[...n[33]||=[e(` Cancel `,-1)]]),_:1}),b(C,{icon:`carbon:save`,n:`primary`,onClick:k},{default:d(()=>[...n[34]||=[e(` save `,-1)]]),_:1})])])]),_:1},8,[`modelValue`])):l(``,!0)],64)}}}),{__name:`AssetDetails`}),Ue={"h-full":``,"of-auto":``},We={"flex-none":``,flex:`~ gap2 items-center`,"text-lg":``},Ge={flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--1":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-primary:30":``,"text-8px":``},Ke={flex:`~ col`,"w-30":``,"of-auto":``},qe={"text-xs":``,op75:``},Je={op50:``},Ye={key:0},Xe={"mt--4":``,px2:``,grid:`~ cols-minmax-8rem`},Ze={key:1,p2:``,grid:`~ cols-minmax-8rem`},Qe={key:1},$e=n({__name:`assets`,setup(e){let n=C(),a=t(!1),s=t(``),f=g(()=>new H(n.value||[],{keys:[`path`]})),y=E(()=>{let e=[];for(let t of n.value||[]){let n=t.path.split(`.`).pop();n&&!e.some(e=>e.name===n)&&e.push({name:n,value:!0})}return e}),x=g(()=>(s.value?f.value.search(s.value).map(e=>e.item):n.value||[]).filter(e=>{let t=e.path.split(`.`).pop();return!t||y.some(e=>e.name===t&&e.value)})),S=g(()=>{let e={};for(let t of x.value){let n=`${t.path.split(`/`).slice(0,-1).join(`/`)}/`;e[n]||(e[n]=[]),e[n].push(t)}return Object.entries(e).sort(([e],[t])=>e.localeCompare(t))}),w=g(()=>{let e={path:`public`,children:[]},t=(e,n,r)=>{let[i,...a]=n,o=e.children.find(e=>e.path===i);o||(o={...r,path:i,children:[]},e.children.push(o)),a.length>1?t(o,a,r):a.length===1&&o.children.push({...r,path:a[0]})};return x.value.forEach(n=>{t(e,n.path.split(`/`).filter(e=>e!==``),n)}),e.children}),T=t(),{view:D}=L(`assets`);function O(){D.value=D.value===`list`?`grid`:`list`}F(`Escape`,()=>{T.value=void 0});let k=t();return(e,t)=>{let f=z,g=K,C=W,E=q,A=de,j=Ee,M=J,N=Q,P=He,F=G,I=i(`tooltip`);return o(),v(`div`,Ue,[b(E,{ref_key:`navbar`,ref:k,search:s.value,"onUpdate:search":t[1]||=e=>s.value=e,pb2:``},{actions:d(()=>[h(`div`,We,[p(b(f,{icon:`carbon:cloud-upload`,title:`File Upload`,border:!1,onClick:t[0]||=e=>a.value=!a.value},null,512),[[I,`File Upload`,void 0,{"bottom-end":!0}]]),r(y).length?(o(),m(C,{key:0,direction:`end`,n:`sm primary`},{trigger:d(({click:e})=>[p(b(f,{icon:`carbon-filter`,border:!1,title:`Filter`,p3:``,"text-lg":``,onClick:t=>e()},null,8,[`onClick`]),[[I,`Filter`,void 0,{"bottom-end":!0}]]),h(`span`,Ge,_(r(y).length),1)]),default:d(()=>[h(`div`,Ke,[(o(!0),v(u,null,c(r(y),e=>(o(),m(g,{key:e.name,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:d(()=>[h(`span`,qe,_(e.name),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):l(``,!0),p(b(f,{"text-lg":``,border:!1,icon:r(D)===`grid`?`i-carbon-list`:`i-carbon-grid`,title:`Toggle view`,onClick:O},null,8,[`icon`]),[[I,`Toggle View`,void 0,{"bottom-end":!0}]])])]),default:d(()=>[h(`div`,Je,[s.value?(o(),v(`span`,Ye,_(x.value.length)+` matched · `,1)):l(``,!0),h(`span`,null,_(r(n)?.length)+` assets in total`,1)])]),_:1},8,[`search`]),b(A,{modelValue:a.value,"onUpdate:modelValue":t[2]||=e=>a.value=e,folder:`/`},null,8,[`modelValue`]),r(D)===`grid`?(o(),v(u,{key:0},[S.value.length>1?(o(!0),v(u,{key:0},c(S.value,([e,t])=>(o(),m(M,{key:e,text:e,description:`${t.length} items`,open:t.length<=r(50),padding:!1},{default:d(()=>[h(`div`,Xe,[(o(!0),v(u,null,c(t,t=>(o(),m(j,{key:t.path,asset:t,folder:e,onClick:e=>T.value=t},null,8,[`asset`,`folder`,`onClick`]))),128))])]),_:2},1032,[`text`,`description`,`open`]))),128)):(o(),v(`div`,Ze,[(o(!0),v(u,null,c(x.value,e=>(o(),m(j,{key:e.path,asset:e,onClick:t=>T.value=e},null,8,[`asset`,`onClick`]))),128))]))],64)):(o(),v(`div`,Qe,[(o(!0),v(u,null,c(w.value,(e,n)=>(o(),m(N,{key:n,modelValue:T.value,"onUpdate:modelValue":t[3]||=e=>T.value=e,item:e},null,8,[`modelValue`,`item`]))),128))])),b(F,{"model-value":!!T.value,"auto-close":``,"w-120":``,top:k.value,onClose:t[5]||=e=>T.value=void 0},{default:d(()=>[T.value?(o(),m(P,{key:0,modelValue:T.value,"onUpdate:modelValue":t[4]||=e=>T.value=e},null,8,[`modelValue`])):l(``,!0)]),_:1},8,[`model-value`,`top`])])}}});export{$e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{X as e}from"./vendor/json-editor-vue-mpqfj7dd.js";import{t}from"./_plugin-vue_export-helper-n58akrbk.js";var n={};function r(t,n){return e(t.$slots,`default`)}var i=Object.assign(t(n,[[`render`,r]]),{__name:`AuthRequiredPanel`});export{i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"5a29da90-eb92-468e-ae22-3d6e1c14ca84","timestamp":1774234615331,"prerendered":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,E as t,Et as n,Mt as r,Qt as i,W as a,Y as o,_ as s,c,dt as l,g as u,h as d,lt as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-mpqfj7dd.js";import{C as _,i as v}from"#entry";import{t as y}from"./ncode-block-lbvhz228.js";var b={key:0,relative:``,"n-code-block":``},x={flex:`~ wrap`,"w-full":``},S=[`onClick`],C={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},w=Object.assign(t({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(t){let w=t,T=n(w.codeSnippets[0]),E=v(),D=p(()=>T.value?.lang||`text`);return f(()=>{w.codeSnippets.includes(T.value)||(T.value=w.codeSnippets[0])}),(n,f)=>{let p=y,v=_;return t.codeSnippets.length?(a(),h(`div`,b,[d(`div`,x,[(a(!0),h(c,null,o(t.codeSnippets,(e,t)=>(a(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e===T.value?``:`border-b`),onClick:t=>T.value=e},[d(`div`,{class:i(e===T.value?``:`op30`),"font-mono":``},m(e.name),3)],10,S))),128)),f[1]||=d(`div`,{border:`b base`,"flex-auto":``},null,-1)]),T.value?(a(),h(c,{key:0},[g(p,{code:T.value.code,lang:D.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),d(`div`,C,[g(v,{icon:`carbon-copy`,onClick:f[0]||=e=>r(E)(T.value.code,t.eventType||`code-snippet-${T.value.name}`)},{default:l(()=>[...f[2]||=[e(` Copy `,-1)]]),_:1}),T.value?.docs?(a(),u(v,{key:0,to:T.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:l(()=>[...f[3]||=[e(` Docs `,-1)]]),_:1},8,[`to`])):s(``,!0)])],64)):s(``,!0)])):s(``,!0)}}}),{__name:`CodeSnippets`});export{w as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,Ct as n,E as r,Et as i,Mt as a,P as o,Q as s,Qt as c,V as l,W as u,X as d,Y as f,Z as p,_ as m,c as h,ct as g,dt as _,ft as v,g as y,h as b,m as x,tn as S,v as C,vt as w,w as T}from"./vendor/json-editor-vue-mpqfj7dd.js";import"./ready-nmtplnq5.js";import{D as ee,L as te,b as ne,c as E,i as D,n as O,w as re,z as k}from"./utils-jkkblreo.js";import"./dev-auth-h6radlhi.js";import{F as ie}from"./rpc-ga26o8l5.js";import"./vendor/shiki-ildq90cv.js";import{t as A}from"./storage-options-fmhmng6m.js";import"./nuxt-link-h8a2u03t.js";import{t as j}from"./_plugin-vue_export-helper-n58akrbk.js";import{t as M}from"./nicon-o8vtl3nv.js";import{t as N}from"./ncard-bpchuz30.js";import{C as P,i as F,m as I}from"#entry";import{t as L}from"./ndrawer-pdhwqkg2.js";import"./composables-f0oa0ya0.js";import{t as R}from"./ncheckbox-dqqmiqln.js";import{t as z}from"./filepath-item-lm7tbw9e.js";import{t as B}from"./help-fab-ekagn9f2.js";import{t as V}from"./nnavbar-iwf1qrzf.js";import{t as H}from"./nicon-title-f04kekaa.js";import{t as U}from"./nsection-block-oc6icst0.js";import{n as W}from"./dist-f16b9vaq.js";import{t as G}from"./nbadge-ia2sg78l.js";import{n as K,t as q}from"./vendor/vis-obscvyyi.js";import{t as J}from"./nselect-tabs-gmel1seg.js";import{n as Y,t as X}from"./state-components-dtq2t5r4.js";var ae={},oe={class:`markdown-body`};function se(e,t){return u(),C(`div`,oe,[...t[0]||=[b(`template`,null,[b(`div`,{class:`markdown-body`},[b(`h1`,null,`Components`),b(`p`,null,`Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.`),b(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),b(`p`,null,[b(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ce=j(ae,[[`render`,se]]),le={"text-sm":``,"font-mono":``},Z=Object.assign(r({__name:`ComponentName`,props:{component:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||W(n.component.name||n.component.__name||n.component.kebabName||``));return(e,n)=>(u(),C(`code`,le,[n[0]||=b(`span`,{mr1:``,op20:``},`<`,-1),t(S(r.value),1),n[1]||=b(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),ue={flex:`~ col gap1`,"items-start":``,"of-hidden":``},Q={flex:`~ gap2 items-center`,px3:``},de={px3:``,pb2:``},fe={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},pe={"text-sm":``},me={"text-primary":``},he={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},ge={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},_e={"text-sm":``},ve={"text-primary":``},ye={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},$=Object.assign(r({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||W(n.component.name||n.component.__name||n.component.kebabName||``)),i=x(()=>n.component.filePath||n.component.file||n.component.__file||``),o=F();return(n,s)=>{let c=Z,l=P,p=G,g=z;return u(),C(`div`,ue,[b(`div`,Q,[T(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(u(),y(l,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:_(()=>[...s[1]||=[t(` Docs `,-1)]]),_:1},8,[`to`])):m(``,!0),T(l,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:s[0]||=e=>a(o)(`<${r.value}></${r.value}>`,`component-name`)},{default:_(()=>[...s[2]||=[t(` Copy `,-1)]]),_:1}),e.component.global?(u(),y(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):m(``,!0)]),b(`div`,de,[i.value?(u(),y(g,{key:0,filepath:i.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):m(``,!0)]),e.dependents?(u(),C(`div`,fe,[b(`div`,pe,[b(`strong`,me,S(e.dependents.length),1),s[3]||=b(`span`,{op50:``},` references`,-1)]),e.dependents.length?(u(),C(`div`,he,[(u(!0),C(h,null,f(e.dependents,e=>(u(),y(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):m(``,!0)])):m(``,!0),e.dependencies?(u(),C(`div`,ge,[b(`div`,_e,[b(`strong`,ve,S(e.dependencies.length),1),s[4]||=b(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(u(),C(`div`,ye,[(u(!0),C(h,null,f(e.dependencies,e=>(u(),y(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):m(``,!0)])):m(``,!0),d(n.$slots,`default`)])}}}),{__name:`ComponentDetails`}),be={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},xe={relative:``,"h-full":``,"w-full":``},Se={key:0,py4:``,pt3:``,flex:`~ col`},Ce={border:`t base`,p4:``},we=Object.assign(r({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let r=e,o=n(),s=n(),c=te(),f=i(),p=ee(),v=re(),y=ne(),{componentsGraphShowNodeModules:S,componentsGraphShowGlobalComponents:E,componentsGraphShowPages:D,componentsGraphShowLayouts:O,componentsGraphShowWorkspace:k}=A(`ui`),j=n(),M=n(``),F=ie(M,300),I=x(()=>{let e=r.relationships||[];if(j.value){let t=new Set;function n(r){!r||t.has(r)||(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(j.value),[...t]}return e}),z=x(()=>{let e=I.value.map(e=>{let t=r.components.find(t=>t.filePath===e.id),n=p.value?.find(t=>t.file===e.id),i=y.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:i?`layout`:n?`page`:`unknown`;if(!S.value&&a===`lib`||!D.value&&a===`page`||!O.value&&a===`layout`||!k.value&&a===`user`&&v.value&&!e.id.startsWith(v.value.rootDir)||!E.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=F.value&&!e.id.toLowerCase().includes(F.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:c.value===`dark`?`white`:`black`},color:s?`#8885`:j.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:i,relationship:e}}}).filter(e=>!!e),t=I.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new K(e),edges:t}}),B=x(()=>f.value?.component?(r.relationships?.find(e=>e.id===f.value?.component?.filePath)?.deps)?.map(e=>r.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),H=x(()=>f.value?.component?(r.relationships?.filter(e=>e.deps.includes(f.value.component.filePath)))?.map(e=>r.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);l(()=>{let e=new q(o.value,z.value,{nodes:{shape:`dot`,size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:`forceAtlas2Based`,timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:`#42b883`},unknown:{color:`#b86542`},lib:{color:`#b4b842`},page:{color:`#42b2b8`},layout:{color:`#4256b8`}}});e.on(`click`,e=>{let t=e.nodes?.[0];f.value=z.value.nodes.get(t).extra}),g(z,()=>{e.setData(z.value)})});function U(){f.value=void 0}let W=/.*\/components\//,G=/\.vue$/,J=/\/index$/;function Y(e){let t=r.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(J,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){j.value=f.value?.relationship,f.value=void 0}return(e,n)=>{let r=R,i=V,c=N,l=$,p=P,g=L;return u(),C(h,null,[T(i,{ref_key:`navbar`,ref:s,search:M.value,"onUpdate:search":n[6]||=e=>M.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:_(()=>[b(`div`,be,[T(r,{modelValue:a(D),"onUpdate:modelValue":n[0]||=e=>w(D)?D.value=e:null,n:`primary sm`},{default:_(()=>[...n[8]||=[b(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(O),"onUpdate:modelValue":n[1]||=e=>w(O)?O.value=e:null,n:`primary sm`},{default:_(()=>[...n[9]||=[b(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(k),"onUpdate:modelValue":n[2]||=e=>w(k)?k.value=e:null,n:`primary sm`},{default:_(()=>[...n[10]||=[b(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(S),"onUpdate:modelValue":n[3]||=e=>w(S)?S.value=e:null,n:`primary sm`},{default:_(()=>[...n[11]||=[b(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(E),"onUpdate:modelValue":n[4]||=e=>w(E)?E.value=e:null,n:`primary sm`},{default:_(()=>[...n[12]||=[b(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),j.value?(u(),C(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:n[5]||=e=>j.value=void 0},[...n[13]||=[t(` Clear filter `,-1),b(`div`,{"i-carbon-close":``},null,-1)]])):m(``,!0),n[14]||=b(`div`,{"flex-auto":``},null,-1),d(e.$slots,`default`)]),_:3},8,[`search`]),b(`div`,xe,[b(`div`,{ref_key:`container`,ref:o,"h-full":``,"w-full":``},null,512),T(c,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:_(()=>[...n[15]||=[b(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),b(`div`,{op50:``},` Component `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),b(`div`,{op50:``},` Global Component `),b(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),b(`div`,{op50:``},` Page `),b(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[b(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),b(`div`,{op50:``},` Layout `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),b(`div`,{op50:``},` Library Component `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),b(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),T(g,{"model-value":!!(f.value&&f.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:U},{default:_(()=>[f.value&&f.value.component?(u(),C(`div`,Se,[T(l,{component:f.value.component,dependencies:B.value,dependents:H.value},null,8,[`component`,`dependencies`,`dependents`]),b(`div`,Ce,[T(p,{n:`primary solid`,onClick:n[7]||=e=>X()},{default:_(()=>[...n[16]||=[t(` Filter to this component `,-1)]]),_:1})])])):m(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),Te={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},Ee={key:0,"ml--1":``,"text-primary":``},De=Object.assign(r({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=x(()=>t.component.filePath||t.component.file||t.component.__file||``);return(t,r)=>{let i=Z,a=$,o=p(`VDropdown`),s=G,l=z;return u(),C(`div`,Te,[T(o,null,{popper:_(()=>[T(a,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:_(()=>[b(`button`,{"hover:text-primary":``,class:c(e.dependents&&e.dependents.length===0?`op50`:``)},[T(i,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(u(),C(`sup`,Ee,` x`+S(e.dependents?.length),1)):m(``,!0),e.component.global?(u(),y(s,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):m(``,!0),d(t.$slots,`default`),n.value?(u(),y(l,{key:2,filepath:n.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):m(``,!0)])}}}),{__name:`ComponentItem`}),Oe={flex:`~ gap-2 items-center`},ke={pl4:``},Ae=Object.assign(r({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,r=n(``),i=n(`all`),s=x(()=>{let e=t.components.map(e=>O(e,t.relationships));return i.value===`using`?e.filter(e=>e.dependents?.length):i.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},l=x(()=>new I(s.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),p=x(()=>{let e=[],t=new Map,n=[],i=[],a={user:0,lib:0,builtin:0,runtime:0};return(r.value?l.value.search(r.value).map(e=>e.item):s.value).forEach(r=>{let o=r.component;if(o.filePath&&E(o.filePath)){let e=D(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=c?.[o.pascalName],n.push(r),a.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(r),a.lib++)}else o.global&&!o.filePath?(i.push(r),a.runtime++):(e.push(r),a.user++)}),{count:a,user:e,builtin:n,lib:t,runtime:i}});return(e,t)=>{let n=M,s=J,c=V,l=De,g=U,v=H;return u(),C(h,null,[T(c,{search:r.value,"onUpdate:search":t[1]||=e=>r.value=e,pb3:``},{actions:_(()=>[d(e.$slots,`default`)]),default:_(()=>[b(`div`,Oe,[T(n,{icon:`carbon-filter`,op50:``}),T(s,{modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),p.value.user.length?(u(),y(g,{key:0,icon:`carbon-nominal`,text:`User components`,open:p.value.user.length<=a(50),description:`Total components: ${p.value.count.user}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.user,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):m(``,!0),p.value.runtime.length?(u(),y(g,{key:1,icon:`carbon-load-balancer-global`,open:p.value.runtime.length<=a(50),text:`Runtime components`,description:`Total components: ${p.value.count.runtime}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.runtime,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):m(``,!0),p.value.builtin.length?(u(),y(g,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${p.value.count.builtin}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.builtin,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):m(``,!0),p.value.lib.size?(u(),y(g,{key:3,open:p.value.count.lib<=a(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:_(()=>[(u(!0),C(h,null,f(p.value.lib.entries(),([e,t])=>(u(),C(`div`,{key:e,"ml-2":``},[T(v,{text:`${e} (${t.length})`,py1:``,op50:``},null,8,[`text`]),b(`div`,ke,[(u(!0),C(h,null,f(t,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):m(``,!0)],64)}}}),{__name:`ComponentsList`}),je={relative:``,"h-full":``,"of-auto":``},Me={"flex-none":``,flex:`~ gap3`},Ne=r({__name:`components`,setup(t){let n=k(),r=X(),i=Y(),{componentsView:o}=A(`ui`);function c(){n.value?.inspector?.enable()}function l(){o.value=o.value===`list`?`graph`:`list`}return(t,d)=>{let f=P,p=ce,g=B,x=s(`tooltip`);return u(),C(h,null,[b(`div`,je,[(u(),y(e(a(o)===`list`?Ae:we),{components:a(r),relationships:a(i)},{default:_(()=>[b(`div`,Me,[v(T(f,{"text-lg":``,border:!1,icon:a(o)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:l},null,8,[`icon`]),[[x,`Toggle View`,void 0,{"bottom-end":!0}]]),a(n)?.inspector?.isAvailable?v((u(),y(f,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[x,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):m(``,!0)])]),_:1},8,[`components`,`relationships`]))]),T(g,null,{default:_(()=>[T(p)]),_:1})],64)}}});export{Ne as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,E as t,Mt as n,Qt as r,W as i,Y as a,Z as o,_ as s,c,dt as l,g as u,h as d,m as f,tn as p,v as m,w as h}from"./vendor/json-editor-vue-mpqfj7dd.js";import{t as g}from"./nicon-o8vtl3nv.js";import{C as _,a as v,i as y}from"#entry";import{t as b}from"./filepath-item-lm7tbw9e.js";import{t as x}from"./constants-g7ujya00.js";import{t as S}from"./dist-f16b9vaq.js";import{t as C}from"./nmarkdown-cu68ujlp.js";var w={rounded:``,"font-mono":``},T={key:0,"text-primary":``},E={key:0},D={title:`Vue Directive`},O={"max-w-100":``},k={px4:``,py3:``,"text-sm":``},A={flex:`~ gap2`,n:`primary xs`},j={border:`t base`,"max-h-60":``,"of-auto":``,px4:``,py3:``},M={"text-sm":``},N={"text-primary":``},P={flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},F={key:1,"text-sm":``,op50:``},I=Object.assign(t({__name:`ComposableItem`,props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:`px2 py1 text-sm bg-gray:5 `}},setup(t){let I=t,L=y(),R=v(),z=f(()=>I.item.as||I.item.name),B=f(()=>{let e=z.value;return I.isDirective&&(e[0]!==`v`&&(e=`v${e}`),e=S(e)),e}),V=f(()=>I.metadata?.injectionsUsageMap?.get(z.value)?.count||0),H=f(()=>(I.metadata?.injectionsUsageMap?.get(z.value)?.moduleIds||[]).filter(e=>!e.endsWith(`?macro=true`))),U=f(()=>I.item.meta?.docsUrl?I.item.meta.docsUrl:[`nuxt`,`#app`,`nuxt3`].includes(I.item.from)?x.nuxt[I.item.name]:I.item.from===`vue`?x.vue[I.item.name]:null);return(f,v)=>{let y=g,x=C,S=_,W=b,G=o(`VDropdown`);return i(),u(G,{disabled:!I.metadata},{popper:l(()=>[d(`div`,O,[d(`div`,k,[t.item.meta?.description?(i(),u(x,{key:0,tag:`div`,pb3:``,"text-sm":``,markdown:t.item.meta.description},null,8,[`markdown`])):s(``,!0),d(`div`,A,[h(S,{icon:`carbon-copy`,onClick:v[0]||=e=>n(L)(B.value,`imports-name`)},{default:l(()=>[...v[2]||=[e(` Copy `,-1)]]),_:1}),t.filepath?(i(),u(S,{key:0,icon:`carbon-code`,onClick:v[1]||=e=>t.filepath&&n(R)(t.filepath)},{default:l(()=>[...v[3]||=[e(` Source `,-1)]]),_:1})):s(``,!0),U.value?(i(),u(S,{key:1,icon:`carbon-catalog`,to:U.value,target:`_blank`},{default:l(()=>[...v[4]||=[e(` Docs `,-1)]]),_:1},8,[`to`])):s(``,!0)])]),d(`div`,j,[V.value?(i(),m(c,{key:0},[d(`div`,M,[v[5]||=d(`span`,{op50:``},`It has been referenced `,-1),d(`strong`,N,p(V.value),1),v[6]||=d(`span`,{op50:``},` times by:`,-1)]),d(`div`,P,[(i(!0),m(c,null,a(H.value,e=>(i(),u(W,{key:e,filepath:e},null,8,[`filepath`]))),128))])],64)):(i(),m(`div`,F,` Not in use via auto import. `))])])]),default:l(()=>[d(`button`,{"hover:text-primary":``,class:r([t.metadata&&!V.value?`op30 hover:op100`:``,t.classes])},[d(`code`,w,[e(p(z.value)+` `,1),V.value&&t.counter?(i(),m(`sup`,T,`x`+p(V.value),1)):s(``,!0)]),t.isDirective?(i(),m(`sup`,E,[d(`abbr`,D,[h(y,{icon:`tabler:hexagon-letter-d`})])])):s(``,!0)],2)]),_:1},8,[`disabled`])}}}),{__name:`ComposableItem`});export{I as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,C as t,Ct as n,E as r,F as i,H as a,Mt as o,V as s,W as c,dt as l,g as u,h as d,lt as f,m as p,tn as m,v as h,w as g,xt as _}from"./vendor/json-editor-vue-mpqfj7dd.js";import{_ as v,g as y}from"./ready-nmtplnq5.js";import{L as b,U as x}from"./utils-jkkblreo.js";import{i as S,r as C}from"./dev-auth-h6radlhi.js";import{i as w,v as T}from"./rpc-ga26o8l5.js";import"./vendor/shiki-ildq90cv.js";import"./storage-options-fmhmng6m.js";import"./nuxt-link-h8a2u03t.js";import"./nicon-o8vtl3nv.js";import{r as E}from"./state-tabs-etz9ig65.js";import{t as D}from"./ncard-bpchuz30.js";import{v as O}from"#entry";import"./client-coqmopwz.js";import"./composables-f0oa0ya0.js";import{t as k}from"./auth-required-panel-eykuzska.js";import"./nmarkdown-cu68ujlp.js";import{t as A}from"./launch-page-jvtn5jef.js";var j=new Map,M=Object.assign(r({__name:`IframeView`,props:{tab:{}},setup(e){let t=e,r=b(),o=n(),l=p(()=>t.tab.name),u=n(),d=_(T(o));s(()=>{let e=t.tab.view,n=e.persistent!==!1,r=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(j.get(l.value)&&n)u.value=j.get(l.value),u.value.style.visibility=`visible`;else{u.value=document.createElement(`iframe`),u.value.setAttribute(`allow`,r.join(`; `)),u.value.setAttribute(`aria-label`,`Nuxt Devtools`),n&&j.set(l.value,u.value),u.value.src=e.src;try{u.value.style.opacity=`0.01`,u.value.onload=()=>{v(),m(),u.value.style.opacity=`1`}}catch{u.value.style.opacity=`1`}document.body.appendChild(u.value),i(y)}setTimeout(m,100)}),f(y),f(m),f(v),a(()=>{u.value&&(u.value.style.visibility=`hidden`)});function m(){if(!(!u.value||!u.value.contentWindow))try{let e=u.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,r.value===`dark`),e?.classList.toggle(`light`,r.value===`dark`),new MutationObserver(()=>{r.value=u.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let g=x();function v(){if(!(!u.value||!u.value.contentWindow))try{u.value.contentWindow.__NUXT_DEVTOOLS__=g.value}catch{}}function y(){u.value&&Object.assign(u.value.style,{position:`fixed`,left:`${d.left}px`,top:`${d.top}px`,width:`${d.width}px`,height:`${d.height}px`,outline:`none`})}return(e,t)=>(c(),h(`div`,{ref_key:`anchor`,ref:o,"h-full":``,"w-full":``},null,512))}}),{__name:`IframeView`}),N={flex:`~ col gap2`,mxa:``,"items-center":``},P={"text-xl":``},F={"text-rose":``},I=r({__name:`custom-[name]`,props:{name:{}},setup(n){let r=n,i=y(),a=v(),f=p(()=>r.name??i.params.name),h=E(),_=p(()=>h.value.find(e=>e.name===f.value));return s(()=>{_.value?_.value.requireAuth&&!C.value&&S():setTimeout(()=>{_.value||a.push(`/modules/overview`)},2e3)}),(n,r)=>{let i=O,a=k,s=M,p=A,h=D;return _.value?_.value.requireAuth&&!o(C)?(c(),u(a,{key:1})):_.value.view.type===`iframe`?(c(),u(s,{key:2,tab:_.value},null,8,[`tab`])):_.value.view.type===`vnode`?(c(),u(e(_.value.view.vnode),{key:3})):_.value.view.type===`launch`?(c(),u(p,{key:4,name:`custom-${_.value.name}`,icon:_.value.view.icon||_.value.icon,title:_.value.view.title||_.value.title,description:_.value.view.description,actions:_.value.view.actions,onAction:r[0]||=e=>o(w).customTabAction(_.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(c(),u(i,{key:5},{default:l(()=>[g(h,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:l(()=>[t(` Unknown tab type `+m(_.value.view),1)]),_:1})]),_:1})):(c(),u(i,{key:0},{default:l(()=>[d(`div`,N,[r[3]||=d(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),d(`p`,P,[r[1]||=t(` Tab `,-1),d(`code`,F,m(f.value),1),r[2]||=t(` not found `,-1)]),r[4]||=d(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),r[5]||=d(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{I as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,Q as t,W as n,ft as r,g as i}from"./vendor/json-editor-vue-mpqfj7dd.js";import{C as a,r as o}from"#entry";var s=Object.assign(e({__name:`DataSchemaButton`,props:{getter:{type:Function}},setup(e){let s=o();return(o,c)=>{let l=a,u=t(`tooltip`);return r((n(),i(l,{title:`Generate Data Schema`,icon:`carbon:container-services`,border:!1,onClick:c[0]||=t=>s.value=e.getter()},null,512)),[[u,`Generate Data Schema`]])}}}),{__name:`DataSchemaButton`});export{s as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ct as e,E as t,Mt as n,W as r,Y as i,_ as a,c as o,ct as s,d as c,dt as l,g as u,h as d,m as f,tn as p,v as m,w as h}from"./vendor/json-editor-vue-mpqfj7dd.js";import"./ready-nmtplnq5.js";import"./utils-jkkblreo.js";import"./dev-auth-h6radlhi.js";import{c as g}from"./rpc-ga26o8l5.js";import"./vendor/shiki-ildq90cv.js";import"./storage-options-fmhmng6m.js";import"./nuxt-link-h8a2u03t.js";import"./nicon-o8vtl3nv.js";import{C as _,i as v,r as y}from"#entry";import{t as b}from"./nselect-k14i70o0.js";import{t as x}from"./nswitch-kprd7bwp.js";import{t as S}from"./ndropdown-o0hg8oi1.js";import"./client-coqmopwz.js";import{t as C}from"./ncode-block-lbvhz228.js";import{t as w}from"./ndrawer-pdhwqkg2.js";import{n as T,t as E}from"./vendor/quicktype-core-bxh3g3c2.js";var D=E(),O=T(),k={border:`b base`,flex:`~ items-center gap-2`,sticky:``,"left-0":``,"right-0":``,"top-0":``,"z-1":``,"bg-base":``,p3:``},A={key:0,flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--2":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-lime:30":``,"text-8px":``},j={flex:`~ col`,"w-100":``,"of-auto":``,py2:``},M={"text-xs":``,capitalize:``,op75:``},N=Object.assign(t({__name:`DataSchemaDrawer`,setup(t){let T=y(),E=e(0),N=e(`TypeScript`),P=f(()=>O.all.find(e=>e.displayName===N.value)),F=e(P.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)),I=g(async()=>{if(E.value,!T.value)return``;let e=(0,D.jsonInputForTargetLanguage)(N.value);await e.addSource({name:T.value.name??`Data`,samples:[T.value.input]});let t=new D.InputData;return t.addInput(e),(await(0,D.quicktype)({inputData:t,lang:N.value,rendererOptions:F.value?.reduce((e,t)=>(e[t.name]=t.defaultValue,e),{})})).lines.join(`
|
|
2
|
-
`)}),L=f(()=>{let e=N.value.toLocaleLowerCase();return e.startsWith(`javascript`)?`javascript`:e.startsWith(`json`)?`json`:e.startsWith(`typescript`)?`typescript`:e});s(F,()=>{E.value++},{deep:!0}),s(N,()=>{F.value=P.value?.optionDefinitions.filter(e=>typeof e.defaultValue==`boolean`)});let R=v();function z(){R(I.value||``)}return(e,t)=>{let s=b,f=_,g=x,v=S,y=C,E=w;return P.value?(r(),u(c,{key:0,to:`body`},[h(E,{"model-value":!!n(T)?.input,"auto-close":``,"max-w-screen":``,"w-2xl":``,"n-code-block":``,onClose:t[2]||=e=>T.value=null},{default:l(()=>[d(`div`,k,[t[3]||=d(`p`,{"mr-2":``},` Schema `,-1),h(s,{modelValue:N.value,"onUpdate:modelValue":t[0]||=e=>N.value=e,n:`xs primary`},{default:l(()=>[(r(!0),m(o,null,i(n(O.all),e=>(r(),m(`option`,{key:e.displayName},p(e.displayName),1))),128))]),_:1},8,[`modelValue`]),F.value?.length?(r(),u(v,{key:0,n:`sm lime`},{trigger:l(({click:e})=>[h(f,{icon:`carbon-settings`,"h-full":``,onClick:t=>e()},null,8,[`onClick`]),F.value?(r(),m(`span`,A,p(F.value.length),1)):a(``,!0)]),default:l(()=>[d(`div`,j,[(r(!0),m(o,null,i(F.value,(e,t)=>(r(),u(g,{key:e.name,modelValue:F.value[t].defaultValue,"onUpdate:modelValue":e=>F.value[t].defaultValue=e,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:l(()=>[d(`span`,M,p(e.description),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):a(``,!0),t[4]||=d(`div`,{"flex-auto":``},null,-1),h(f,{icon:`carbon-copy`,"mr-6":``,"h-full":``,onClick:t[1]||=e=>z()})]),n(I)?(r(),u(y,{key:0,lang:L.value,code:n(I)},null,8,[`lang`,`code`])):a(``,!0)]),_:1},8,[`model-value`])])):a(``,!0)}}}),{__name:`DataSchemaDrawer`});export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
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-mpqfj7dd.js";import"./ready-nmtplnq5.js";import{T as v}from"./utils-jkkblreo.js";import"./dev-auth-h6radlhi.js";import"./rpc-ga26o8l5.js";import"./vendor/shiki-ildq90cv.js";import"./storage-options-fmhmng6m.js";import"./nuxt-link-h8a2u03t.js";import"./nicon-o8vtl3nv.js";import{C as y}from"#entry";import"./client-coqmopwz.js";import{t as b}from"./ncode-block-lbvhz228.js";import"./composables-f0oa0ya0.js";import{t as x}from"./ncheckbox-dqqmiqln.js";import{t as S}from"./filepath-item-lm7tbw9e.js";import"./nicon-title-f04kekaa.js";import{t as C}from"./nsection-block-oc6icst0.js";import{t as w}from"./nbadge-ia2sg78l.js";import{t as T}from"./color-bh8526bd.js";var E=Object.assign(n({__name:`NBadgeHashed`,props:{text:{}},setup(t){let n=t,r=m(()=>({color:T(n.text,50,60),background:T(n.text,50,60,.05)}));return(n,i)=>(a(),f(w,{style:d(r.value)},{default:u(()=>[e(h(t.text),1),o(n.$slots,`default`)]),_:3},8,[`style`]))}}),{__name:`NBadgeHashed`}),D={flex:`~ gap-2 col`,mb4:``},O={flex:`~ gap-3 items-center`},k={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},A={"max-w-full":``,"of-auto":``},j={"text-center":``,op50:``},M={flex:`~`,px4:``},N={key:0,op50:``},P={px2:``,"text-center":``},F={"of-auto":``},I=Object.assign(n({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(e){let n=e,r=/^[a-z]:[\\/]/i;function o(e){return e.startsWith(`/`)||e.match(r)}let d=t(!1),v=t(!1),C=t(!1),w=t(!1),T=t(!1),I=t(``),L=m(()=>{let e=n.moduleMutationRecords;return d.value||(e=e.filter(e=>!e.name.startsWith(`nuxt:`)&&e.name!==`@nuxt/devtools`)),v.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.templates`)),C.value||(e=e.filter(e=>e.keys.join(`.`)!==`build.transpile`)),w.value||(e=e.filter(e=>e.keys.join(`.`)!==`plugins`)),T.value||(e=e.filter(e=>e.method||e.value!==`[]`&&e.value!==`{}`)),I.value&&(e=e.filter(e=>e.name===I.value)),e});return(t,n)=>{let r=x,m=E,R=y,z=S,B=b;return a(),g(l,null,[p(`div`,D,[p(`div`,O,[_(r,{modelValue:d.value,"onUpdate:modelValue":n[0]||=e=>d.value=e,n:`primary`},{default:u(()=>[...n[6]||=[p(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),_(r,{modelValue:v.value,"onUpdate:modelValue":n[1]||=e=>v.value=e,n:`primary`},{default:u(()=>[...n[7]||=[p(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),_(r,{modelValue:C.value,"onUpdate:modelValue":n[2]||=e=>C.value=e,n:`primary`},{default:u(()=>[...n[8]||=[p(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),_(r,{modelValue:w.value,"onUpdate:modelValue":n[3]||=e=>w.value=e,n:`primary`},{default:u(()=>[...n[9]||=[p(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),_(r,{modelValue:T.value,"onUpdate:modelValue":n[4]||=e=>T.value=e,n:`primary`},{default:u(()=>[...n[10]||=[p(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),I.value?(a(),g(`div`,k,[_(m,{"font-mono":``,text:I.value},null,8,[`text`]),_(R,{icon:`carbon-close`,border:!1,onClick:n[5]||=e=>I.value=``})])):c(``,!0)])]),p(`table`,A,[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(L.value,t=>(a(),g(`tr`,{key:e.moduleMutationRecords.indexOf(t),border:`b dashed transparent hover:base`},[p(`td`,j,[p(`div`,null,h(e.moduleMutationRecords.indexOf(t)+1),1)]),p(`td`,null,[t.name&&o(t.name)?(a(),f(z,{key:0,filepath:t.name},null,8,[`filepath`])):(a(),f(m,{key:1,role:`button`,"font-mono":``,text:t.name,onClick:e=>I.value=t.name},null,8,[`text`,`onClick`]))]),p(`td`,null,[p(`code`,M,[(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`,N,` . `)):c(``,!0)],64))),128))])]),p(`td`,P,[_(m,{"font-mono":``,text:t.method||`=`,class:i(t.method?``:`saturate-0`)},null,8,[`text`,`class`])]),p(`td`,F,[_(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)}}}),{__name:`DebugModuleMutationRecords`}),L={key:0,p6:``},R={key:1},z=n({__name:`debug`,setup(e){let t=v();return(e,n)=>{let i=C;return r(t)?(a(),g(`div`,R,[_(i,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:u(()=>[_(I,{"module-mutation-records":r(t).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(a(),g(`div`,L,[...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{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e}from"./vendor/json-editor-vue-mpqfj7dd.js";var t=``,n=`?`,r=`major`,i=`model`,a=`name`,o=`type`,s=`vendor`,c=`version`,l=`architecture`,u=`console`,d=`mobile`,f=`tablet`,p=`smarttv`,m=`wearable`,h=`embedded`,g=500,_=`Amazon`,v=`Apple`,y=`ASUS`,b=`BlackBerry`,x=`Browser`,S=`Chrome`,C=`Edge`,w=`Firefox`,T=`Google`,E=`Huawei`,D=`LG`,O=`Microsoft`,k=`Motorola`,A=`Opera`,j=`Samsung`,M=`Sharp`,N=`Sony`,P=`Xiaomi`,F=`Zebra`,I=`Facebook`,L=`Chromium OS`,R=`Mac OS`;function z(e,t={}){let n={};for(let r of Object.keys(e)){let i=t[r];i&&i.length%2==0?n[r]=[...i,...e[r]]:n[r]=e[r]}return n}function B(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function V(e){return e.toLowerCase()}function H(e,t){return typeof e==`string`?V(t).includes(V(e)):!1}function U(e){return typeof e==`string`?e.replace(/[^\d.]/g,t).split(`.`)[0]:void 0}function W(e,n){let r=e.replace(/^\s+/,t);return n===void 0?r:r.substring(0,n)}function G(e,t,n){let r=n??{};for(let n=0;n<t.length;n+=2){let i=t[n],a=t[n+1];for(let t=0;t<i.length;t++){let n=i[t];if(!n)break;let o=n.exec(e);if(o){for(let e=0;e<a.length;e++){let t=o[e+1],n=a[e];if(Array.isArray(n)){let e=n[0],i=n.length;if(i===2){let i=n[1];typeof i==`function`?r[e]=i(t,void 0,r):r[e]=i}else if(i===3){let i=n[1],a=n[2];typeof i==`function`&&!(`exec`in i)&&!(`test`in i)?r[e]=t?i(t,a,r):void 0:r[e]=t?t.replace(i,a):void 0}else i===4&&(r[e]=t?n[3](t.replace(n[1],n[2]),void 0,r):void 0)}else r[n]=t||void 0}return r}}}return r}function K(e,t){for(let r in t){let i=t[r];if(Array.isArray(i)&&i.length>0){for(let t=0;t<i.length;t++)if(H(i[t],e))return r===n?void 0:r}else if(H(i,e))return r===n?void 0:r}return e}var q={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},J={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},Y={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[c,[a,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[c,[a,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[a,c],[/opios[/ ]+([\w.]+)/i],[c,[a,`${A} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[c,[a,`${A} GX`]],[/\bopr\/([\w.]+)/i],[c,[a,A]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[c,[a,`Baidu`]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[/ ]?([\w.]*)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w.]+)/i,/(heytap|ovi)browser\/([\d.]+)/i,/(weibo)__([\d.]+)/i],[a,c],[/\bddg\/([\w.]+)/i],[c,[a,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[c,[a,`UC${x}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[c,[a,`WeChat`]],[/konqueror\/([\w.]+)/i],[c,[a,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[c,[a,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[c,[a,`Yandex`]],[/slbrowser\/([\w.]+)/i],[c,[a,`Smart Lenovo ${x}`]],[/(avast|avg)\/([\w.]+)/i],[[a,/(.+)/,`$1 Secure ${x}`],c],[/\bfocus\/([\w.]+)/i],[c,[a,`${w} Focus`]],[/\bopt\/([\w.]+)/i],[c,[a,`${A} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[c,[a,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[c,[a,`Dolphin`]],[/coast\/([\w.]+)/i],[c,[a,`${A} Coast`]],[/miuibrowser\/([\w.]+)/i],[c,[a,`MIUI ${x}`]],[/fxios\/([-\w.]+)/i],[c,[a,w]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[a,`360 ${x}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[a,/(.+)/,`$1 ${x}`],c],[/samsungbrowser\/([\w.]+)/i],[c,[a,`${j} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[a,/_/g,` `],c],[/metasr[/ ]?([\d.]+)/i],[c,[a,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[a,`Sogou Mobile`],c],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[a,c],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[a],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[a,I],c],[/(Klarna)\/([\w.]+)/i,/(kakao(?:talk|story))[/ ]([\w.]+)/i,/(naver)\(.*?(\d+\.[\w.]+).*\)/i,/safari (line)\/([\w.]+)/i,/\b(line)\/([\w.]+)\/iab/i,/(alipay)client\/([\w.]+)/i,/(twitter)(?:and| f.+e\/([\w.]+))/i,/(chromium|instagram|snapchat)[/ ]([-\w.]+)/i],[a,c],[/\bgsa\/([\w.]+) .*safari\//i],[c,[a,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[c,[a,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[c,[a,`${S} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[a,`${S} WebView`],c],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[c,[a,`Android ${x}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[a,c],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[c,[a,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[c,a],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[a,[c,K,q]],[/(webkit|khtml)\/([\w.]+)/i],[a,c],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[a,`Netscape`],c],[/mobile vr; rv:([\w.]+)\).+firefox/i],[c,[a,`${w} Reality`]],[/ekiohf.+(flow)\/([\w.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,/(firefox)\/([\w.]+)/i,/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,/(links) \(([\w.]+)/i,/panasonic;(viera)/i],[a,c],[/(cobalt)\/([\w.]+)/i],[a,[c,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[l,`amd64`]],[/(ia32(?=;))/i],[[l,V]],[/((?:i[346]|x)86)[;)]/i],[[l,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[l,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[l,`armhf`]],[/windows (ce|mobile); ppc;/i],[[l,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[l,/ower/,t,V]],[/(sun4\w)[;)]/i],[[l,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[l,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[i,[s,j],[o,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[i,[s,j],[o,d]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[i,[s,v],[o,d]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[i,[s,v],[o,f]],[/(macintosh);/i],[i,[s,v]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[i,[s,M],[o,d]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[i,[s,E],[o,f]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[i,[s,E],[o,d]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?[\w ]+)(?: bui|\))/i,/oid[^)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?\d?\w?[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[i,/_/g,` `],[s,P],[o,d]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[i,/_/g,` `],[s,P],[o,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[i,[s,`OPPO`],[o,d]],[/\b(opd2\d{3}a?) bui/i],[i,[s,`OPPO`],[o,f]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[i,[s,`Vivo`],[o,d]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[i,[s,`Realme`],[o,d]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w() ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[i,[s,k],[o,d]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[i,[s,k],[o,f]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[i,[s,D],[o,f]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[i,[s,D],[o,d]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[i,[s,`Lenovo`],[o,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[i,/_/g,` `],[s,`Nokia`],[o,d]],[/(pixel c)\b/i],[i,[s,T],[o,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[i,[s,T],[o,d]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]?\d\.))/i],[i,[s,N],[o,d]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[i,`Xperia Tablet`],[s,N],[o,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[i,[s,`OnePlus`],[o,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[i,[s,_],[o,f]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[i,/(.+)/g,`Fire Phone $1`],[s,_],[o,d]],[/(playbook);[-\w),; ]+(rim)/i],[i,s,[o,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[i,[s,b],[o,d]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[i,[s,y],[o,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[i,[s,y],[o,d]],[/(nexus 9)/i],[i,[s,`HTC`],[o,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[s,[i,/_/g,` `],[o,d]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[i,[s,`Acer`],[o,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[i,[s,`Meizu`],[o,d]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[i,[s,`Ulefone`],[o,d]],[/(blackberry|benq|palm(?=-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[s,i,[o,d]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[s,i,[o,f]],[/(surface duo)/i],[i,[s,O],[o,f]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[i,[s,`Fairphone`],[o,d]],[/(u304aa)/i],[i,[s,`AT&T`],[o,d]],[/\bsie-(\w*)/i],[i,[s,`Siemens`],[o,d]],[/\b(rct\w+) b/i],[i,[s,`RCA`],[o,f]],[/\b(venue[\d ]{2,7}) b/i],[i,[s,`Dell`],[o,f]],[/\b(q(?:mv|ta)\w+) b/i],[i,[s,`Verizon`],[o,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[i,[s,`Barnes & Noble`],[o,f]],[/\b(tm\d{3}\w+) b/i],[i,[s,`NuVision`],[o,f]],[/\b(k88) b/i],[i,[s,`ZTE`],[o,f]],[/\b(nx\d{3}j) b/i],[i,[s,`ZTE`],[o,d]],[/\b(gen\d{3}) b.+49h/i],[i,[s,`Swiss`],[o,d]],[/\b(zur\d{3}) b/i],[i,[s,`Swiss`],[o,f]],[/\b((zeki)?tb.*\b) b/i],[i,[s,`Zeki`],[o,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[s,`Dragon Touch`],i,[o,f]],[/\b(ns-?\w{0,9}) b/i],[i,[s,`Insignia`],[o,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[i,[s,`NextBook`],[o,f]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[s,`Voice`],i,[o,d]],[/\b(lvtel-)?(v1[12]) b/i],[[s,`LvTel`],i,[o,d]],[/\b(ph-1) /i],[i,[s,`Essential`],[o,d]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[i,[s,`Envizen`],[o,f]],[/\b(trio[-\w. ]+) b/i],[i,[s,`MachSpeed`],[o,f]],[/\btu_(1491) b/i],[i,[s,`Rotor`],[o,f]],[/(shield[\w ]+) b/i],[i,[s,`Nvidia`],[o,f]],[/(sprint) (\w+)/i],[s,i,[o,d]],[/(kin\.[onetw]{3})/i],[[i,/\./g,` `],[s,O],[o,d]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[i,[s,F],[o,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[i,[s,F],[o,d]],[/smart-tv.+(samsung)/i],[s,[o,p]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,`SmartTV`],[s,j],[o,p]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[s,D],[o,p]],[/(apple) ?tv/i],[s,[i,`${v} TV`],[o,p]],[/crkey/i],[[i,`${S}cast`],[s,T],[o,p]],[/droid.+aft(\w+)( bui|\))/i],[i,[s,_],[o,p]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[i,[s,M],[o,p]],[/(bravia[\w ]+)( bui|\))/i],[i,[s,N],[o,p]],[/(mitv-\w{5}) bui/i],[i,[s,P],[o,p]],[/Hbbtv.*(technisat) (.*);/i],[s,i,[o,p]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[s,W],[i,W],[o,p]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[o,p]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[s,i,[o,u]],[/droid.+; (shield) bui/i],[i,[s,`Nvidia`],[o,u]],[/(playstation [345portablevi]+)/i],[i,[s,N],[o,u]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[i,[s,O],[o,u]],[/((pebble))app/i],[s,i,[o,m]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[i,[s,v],[o,m]],[/droid.+; (glass) \d/i],[i,[s,T],[o,m]],[/droid.+; (wt63?0{2,3})\)/i],[i,[s,F],[o,m]],[/(quest( \d| pro)?)/i],[i,[s,I],[o,m]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[s,[o,h]],[/(aeobc)\b/i],[i,[s,_],[o,h]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[i,[o,d]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[i,[o,f]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[o,f]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[o,d]],[/(android[-\w. ]{0,9});.+buil/i],[i,[s,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[c,[a,`${C}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[c,[a,`Blink`]],[/(presto)\/([\w.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w.]+)/i,/ekioh(flow)\/([\w.]+)/i,/(khtml|tasman|links)[/ ]\(?([\w.]+)/i,/(icab)[/ ]([23]\.[\d.]+)/i,/\b(libweb)/i],[a,c],[/rv:([\w.]{1,9})\b.+(gecko)/i],[c,a]],os:[[/microsoft (windows) (vista|xp)/i],[a,c],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[a,[c,K,J]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[c,K,J],[a,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[c,/_/g,`.`],[a,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[a,R],[c,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[c,a],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[a,c],[/\(bb(10);/i],[c,[a,b]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[c,[a,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[c,[a,`${w} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[c,[a,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[c,[a,`watchOS`]],[/crkey\/([\d.]+)/i],[c,[a,`${S}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[a,L],c],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w.]*)/i,/(mint)[/() ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i,/\b([-e-hrntopcs]{0,5}bsd|dragonfly)[/ ]?(?!amd|[ix346]{1,2}86)([\w.]*)/i,/(haiku) (\w+)/i],[a,c],[/(sunos) ?([\w.]*)/i],[[a,`Solaris`],c],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[a,c]]};function X(e){return typeof e==`object`&&!!e}Object.freeze(B([a,c,r])),Object.freeze(B([l])),Object.freeze(B([i,s,o,u,d,p,f,m,h])),Object.freeze(B([a,c])),Object.freeze(B([a,c]));function Z(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function Q(e){return e.length>g?W(e,g):e}function $(e){if(typeof e==`string`)return{ua:Q(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:Y};let n=Z(),r=Q(n&&n.userAgent?n.userAgent:t);return{ua:r,isSelfNavigator:!!(n&&n.userAgent===r),navigator:n,userAgentData:n?.userAgentData,regexMap:Y}}function ee(e,n){if(!n&&!X(e))return $(e);let r=Z(),i=X(e)?void 0:e,a=X(e)?e:n,o=Q(i||(r&&r.userAgent?r.userAgent:t)),s=r?.userAgentData;return{ua:o,isSelfNavigator:!!(r&&r.userAgent===o),navigator:r,userAgentData:s,regexMap:a?z(Y,a):Y}}function te(e){let t={name:void 0,version:void 0,major:void 0};return G(e.ua,e.regexMap.browser,t),t.major=U(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function ne(e){let t={architecture:void 0};return G(e.ua,e.regexMap.cpu,t),t}function re(e){let t={vendor:void 0,model:void 0,type:void 0};return G(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=d),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=f),t}function ie(e){let t={name:void 0,version:void 0};return G(e.ua,e.regexMap.engine,t),t}function ae(e){let t={name:void 0,version:void 0};return G(e.ua,e.regexMap.os,t),e.isSelfNavigator&&!t.name&&e.userAgentData?.platform&&e.userAgentData.platform!==`Unknown`&&(t.name=e.userAgentData.platform.replace(/chrome os/i,L).replace(/macos/i,R)),t}function oe(e,t){let n,r,i,a,o,s,c=()=>n||=ee(e,t);return{get ua(){return c().ua},get browser(){return r||=te(c()),r},get engine(){return i||=ie(c()),i},get os(){return a||=ae(c()),a},get device(){return o||=re(c()),o},get cpu(){return s||=ne(c()),s}}}var se=e(`disabled`),ce=e(!0);async function le(){return console.warn("[nuxt-devtools] `ensureDevAuthToken` is deprecated. Auth is now handled by Vite DevTools."),``}var ue=oe(navigator.userAgent);async function de(){console.warn("[nuxt-devtools] `requestForAuth` is deprecated. Auth is now handled by Vite DevTools.")}export{ue as a,de as i,le as n,ce as r,se as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-oipoa1or.js";import{d as t,h as n,u as r}from"./dist-mnod32r1.js";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=r(h.request,h.options.baseURL)),h.options.query&&(h.request=t(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||n;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};
|