@nuxt/devtools 3.4.0 → 3.4.1
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/module-main.mjs +32 -32
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-m8zc7gto.js +1 -0
- package/dist/client/_nuxt/analyze-build-jwi76dz3.js +1 -0
- package/dist/client/_nuxt/assets-cpph6v46.js +6 -0
- package/dist/client/_nuxt/auth-required-panel-pb5dyado.js +1 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/58990d98-ceb3-4b7a-a3b9-ed05fcb0ebda.json +1 -0
- package/dist/client/_nuxt/c4noe6b7.js +2 -0
- package/dist/client/_nuxt/{client-eh4ejzq8.js → client-jl5q3rle.js} +1 -1
- package/dist/client/_nuxt/client-kw9rd8gy.js +2 -0
- package/dist/client/_nuxt/code-diff-icy7s1zb.js +8 -0
- package/dist/client/_nuxt/code-snippets-iyqjogm4.js +1 -0
- package/dist/client/_nuxt/components-wm13ypb1.js +1 -0
- package/dist/client/_nuxt/composable-item-1gg3w2nv.js +1 -0
- package/dist/client/_nuxt/composables-m3a2xv3m.js +1 -0
- package/dist/client/_nuxt/custom-_name_-yd1nhb2d.js +1 -0
- package/dist/client/_nuxt/data-schema-button-gmxlrj4u.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-htftrpm4.js +2 -0
- package/dist/client/_nuxt/debug-esphaczf.js +1 -0
- package/dist/client/_nuxt/default-l4jud1s1.js +1 -0
- package/dist/client/_nuxt/dist-das2ggjj.js +1 -0
- package/dist/client/_nuxt/dist-ekw95yvx.js +1 -0
- package/dist/client/_nuxt/dist-f9baaez8.js +1 -0
- package/dist/client/_nuxt/dist-mpe1u0aj.js +1 -0
- package/dist/client/_nuxt/duration-display-i95mp3xf.js +1 -0
- package/dist/client/_nuxt/editor-gio3gzf5.js +1 -0
- package/dist/client/_nuxt/entry.css-du3mqati.css +1 -0
- package/dist/client/_nuxt/error-404-dvx9vrvw.js +1 -0
- package/dist/client/_nuxt/error-404.css-ndkb77p4.css +1 -0
- package/dist/client/_nuxt/error-500-bu53sh58.js +1 -0
- package/dist/client/_nuxt/error-500.css-iay0iq8l.css +1 -0
- package/dist/client/_nuxt/error-dtx3jz5a.js +9 -0
- package/dist/client/_nuxt/filepath-item-n14cgzrq.js +1 -0
- package/dist/client/_nuxt/full-e41d06vk.js +1 -0
- package/dist/client/_nuxt/fuse-blwyun20.js +1 -0
- package/dist/client/_nuxt/help-fab-bxbzpji6.js +1 -0
- package/dist/client/_nuxt/hooks-b2zozecc.js +1 -0
- package/dist/client/_nuxt/imports-chkhxfjf.js +1 -0
- package/dist/client/_nuxt/launch-page-4gmg3dre.js +1 -0
- package/dist/client/_nuxt/modules-d4yrgxt0.js +1 -0
- package/dist/client/_nuxt/nbadge-gxsw3trl.js +1 -0
- package/dist/client/_nuxt/nbutton-n4jak7c4.js +1 -0
- package/dist/client/_nuxt/ncard-nwvxjytu.js +1 -0
- package/dist/client/_nuxt/ncheckbox-g0h4v30t.js +1 -0
- package/dist/client/_nuxt/ncode-block-pepewqmk.js +2 -0
- package/dist/client/_nuxt/{ncode-block.css-o2ixs97j.css → ncode-block.css-ivoxtfjk.css} +1 -1
- package/dist/client/_nuxt/ndark-toggle-hg693j9b.js +1 -0
- package/dist/client/_nuxt/ndialog-d7onas5p.js +3 -0
- package/dist/client/_nuxt/ndrawer-rf7qwkr7.js +1 -0
- package/dist/client/_nuxt/ndropdown-hei8kmpv.js +1 -0
- package/dist/client/_nuxt/nicon-oi9zv8qe.js +1 -0
- package/dist/client/_nuxt/nicon-title-ckh1far6.js +1 -0
- package/dist/client/_nuxt/nlink-euky3zj2.js +1 -0
- package/dist/client/_nuxt/nloading-cxkye5sp.js +1 -0
- package/dist/client/_nuxt/nmarkdown-k6ubrkxy.js +1 -0
- package/dist/client/_nuxt/nnavbar-dxs3xl8m.js +1 -0
- package/dist/client/_nuxt/none-bqbddrhm.js +1 -0
- package/dist/client/_nuxt/npanel-grids-l34v8x7x.js +1 -0
- package/dist/client/_nuxt/npm-bs3acmpx.js +1 -0
- package/dist/client/_nuxt/nsection-block-deo3d5ca.js +1 -0
- package/dist/client/_nuxt/nsection-block.css-h1lgpwgm.css +1 -0
- package/dist/client/_nuxt/nselect-bihfcl5d.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-e2nrw9h1.js +1 -0
- package/dist/client/_nuxt/nsplit-pane-c8b9c6ro.js +1 -0
- package/dist/client/_nuxt/nsplit-pane.css-o64elxn9.css +1 -0
- package/dist/client/_nuxt/nswitch-omy4wnlb.js +1 -0
- package/dist/client/_nuxt/ntext-input-m2w61kr5.js +1 -0
- package/dist/client/_nuxt/ntip-lla1rr8h.js +1 -0
- package/dist/client/_nuxt/nuxt-hhee6z5x.js +1 -0
- package/dist/client/_nuxt/nuxt-link-k77anppn.js +1 -0
- package/dist/client/_nuxt/nuxt-logo-fsli1c7y.js +1 -0
- package/dist/client/_nuxt/open-graph-ksgni7te.js +3 -0
- package/dist/client/_nuxt/overview-ly9kgbva.js +1 -0
- package/dist/client/_nuxt/pages-inv9i4ar.js +1 -0
- package/dist/client/_nuxt/pages-mgwvumc9.js +1 -0
- package/dist/client/_nuxt/payload-c3lf06v2.js +1 -0
- package/dist/client/_nuxt/pinia-pdgcbxdt.js +1 -0
- package/dist/client/_nuxt/plugins-kv2qt5pc.js +1 -0
- package/dist/client/_nuxt/ready-j6igpruf.js +1 -0
- package/dist/client/_nuxt/render-tree-ok5eju7s.js +1 -0
- package/dist/client/_nuxt/rolldown-runtime-f96lzs6p.js +1 -0
- package/dist/client/_nuxt/runtime-configs-nrru3mzu.js +1 -0
- package/dist/client/_nuxt/server-discovery-b5y0tq1d.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-8c4zt2y4.js +1 -0
- package/dist/client/_nuxt/server-routes-jrdh3byh.js +7 -0
- package/dist/client/_nuxt/server-tasks-i1wtl0e8.js +1 -0
- package/dist/client/_nuxt/settings-id2aeyhn.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-mx9jtxx1.js +1 -0
- package/dist/client/_nuxt/state-components-dngh0clc.js +1 -0
- package/dist/client/_nuxt/state-editor-kg5k3jvy.js +1 -0
- package/dist/client/_nuxt/state-modules-gz46qq7c.js +1 -0
- package/dist/client/_nuxt/state-routes-ckw7s1pq.js +1 -0
- package/dist/client/_nuxt/state-schema-dl4a0tzs.js +1 -0
- package/dist/client/_nuxt/state-subprocess-omk907f9.js +1 -0
- package/dist/client/_nuxt/state-tabs-fe58vmvu.js +1 -0
- package/dist/client/_nuxt/storage-gflmc532.js +1 -0
- package/dist/client/_nuxt/storage-options-h4ted7ut.js +1 -0
- package/dist/client/_nuxt/storage-zf5nkzhm.js +1 -0
- package/dist/client/_nuxt/tab-icon-errppxip.js +1 -0
- package/dist/client/_nuxt/telemetry-pbqlai15.js +1 -0
- package/dist/client/_nuxt/terminals-lx3nbgm4.js +1 -0
- package/dist/client/_nuxt/timeline-ozwer8h0.js +31 -0
- package/dist/client/_nuxt/{unocss-runtime-hldtyz3c.js → unocss-runtime-ys3yvxrm.js} +1 -1
- package/dist/client/_nuxt/utils-gsui1utc.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-ajxjng9j.js +3870 -0
- package/dist/client/_nuxt/vendor/markdown-it-hplpr18t.js +14 -0
- package/dist/client/_nuxt/vendor/quicktype-core-m8x9xlg1.js +929 -0
- package/dist/client/_nuxt/vendor/shiki-k3jqtxcz.js +293 -0
- package/dist/client/_nuxt/vendor/unocss-j0l832tn.js +3 -0
- package/dist/client/_nuxt/vendor/unocss.css-flyrgbwp.css +1 -0
- package/dist/client/_nuxt/vendor/vis-kujfrgx6.js +26 -0
- package/dist/client/_nuxt/vendor/xterm-ilcgri3k.js +18 -0
- package/dist/client/_nuxt/vendor/{xterm.css-jqmddlol.css → xterm.css-j9zpjwmg.css} +1 -1
- package/dist/client/_nuxt/virtual-files-dkyeb46c.js +1 -0
- package/dist/client/_nuxt/vue-devtools-imrq5lm7.js +4 -0
- package/dist/client/discovery/index.html +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/shared/{devtools.Soe0SAC8.mjs → devtools.DFpGUHRZ.mjs} +1 -1
- package/dist/webcomponents/index.mjs +93 -69
- package/package.json +52 -50
- package/dist/client/_nuxt/__blank-o2muls23.js +0 -1
- package/dist/client/_nuxt/analyze-build-kjyk398o.js +0 -1
- package/dist/client/_nuxt/assets-ecwtrmuk.js +0 -6
- package/dist/client/_nuxt/builds/meta/04180599-af74-454c-91e0-3d5527eae2fc.json +0 -1
- package/dist/client/_nuxt/code-diff-el8puwy4.js +0 -8
- package/dist/client/_nuxt/code-snippets-i5i2u9zz.js +0 -1
- package/dist/client/_nuxt/components-iwfpkbz3.js +0 -1
- package/dist/client/_nuxt/composable-item-e8kv7080.js +0 -1
- package/dist/client/_nuxt/custom-_name_-ft6dg0e3.js +0 -1
- package/dist/client/_nuxt/data-schema-button-hx1dia1u.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-iw791a0n.js +0 -2
- package/dist/client/_nuxt/debug-f1y4ok7e.js +0 -1
- package/dist/client/_nuxt/default-i5dr248x.js +0 -1
- package/dist/client/_nuxt/dist-hjee3mrt.js +0 -1
- package/dist/client/_nuxt/dist-ibflnriz.js +0 -1
- package/dist/client/_nuxt/duration-display-ce789vbq.js +0 -1
- package/dist/client/_nuxt/entry.css-ceee1hqk.css +0 -1
- package/dist/client/_nuxt/error-404-hwu9ougr.js +0 -1
- package/dist/client/_nuxt/error-404.css-cwq14vxz.css +0 -1
- package/dist/client/_nuxt/error-500-gbqjpcce.js +0 -1
- package/dist/client/_nuxt/error-500.css-hftlqubg.css +0 -1
- package/dist/client/_nuxt/error-g08v33x2.js +0 -9
- package/dist/client/_nuxt/filepath-item-cfknf7u4.js +0 -1
- package/dist/client/_nuxt/full-fv9atfrx.js +0 -1
- package/dist/client/_nuxt/help-fab-kzusjvzh.js +0 -1
- package/dist/client/_nuxt/hooks-m7w83qkt.js +0 -1
- package/dist/client/_nuxt/imports-m5e06d1m.js +0 -1
- package/dist/client/_nuxt/launch-page-k1jy2olz.js +0 -1
- package/dist/client/_nuxt/mitt.es-is6qb9uo.js +0 -1
- package/dist/client/_nuxt/modules-ocni0pmc.js +0 -1
- package/dist/client/_nuxt/nbadge-dq091bml.js +0 -1
- package/dist/client/_nuxt/ncheckbox-oaojay1f.js +0 -1
- package/dist/client/_nuxt/ncode-block-jmq04laj.js +0 -2
- package/dist/client/_nuxt/ndrawer-iq9tsfcb.js +0 -1
- package/dist/client/_nuxt/ndropdown-bzq1eo9l.js +0 -1
- package/dist/client/_nuxt/nicon-title-kclz18f2.js +0 -1
- package/dist/client/_nuxt/nlink-oovljifl.js +0 -1
- package/dist/client/_nuxt/nmarkdown-mnforar7.js +0 -1
- package/dist/client/_nuxt/nnavbar-dy6zssbb.js +0 -1
- package/dist/client/_nuxt/none-hmdczuga.js +0 -1
- package/dist/client/_nuxt/nsection-block-mm2ln8au.js +0 -1
- package/dist/client/_nuxt/nsection-block.css-h05mpq8x.css +0 -1
- package/dist/client/_nuxt/nselect-cvj6vn8t.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-bnxyj6c3.js +0 -1
- package/dist/client/_nuxt/nswitch-nii7reuz.js +0 -1
- package/dist/client/_nuxt/open-graph-e5ujlf0w.js +0 -3
- package/dist/client/_nuxt/overview-k1lqhpdx.js +0 -1
- package/dist/client/_nuxt/owz5kq17.js +0 -4
- package/dist/client/_nuxt/pages-e8109ruk.js +0 -1
- package/dist/client/_nuxt/pages-ja4oy9os.js +0 -1
- package/dist/client/_nuxt/payload-evlvpptz.js +0 -1
- package/dist/client/_nuxt/pinia-eb8q0lb7.js +0 -1
- package/dist/client/_nuxt/plugins-n65vqkm5.js +0 -1
- package/dist/client/_nuxt/render-tree-lcd73hdy.js +0 -1
- package/dist/client/_nuxt/rolldown-runtime-ga5ujxqr.js +0 -1
- package/dist/client/_nuxt/runtime-configs-novpfnwf.js +0 -1
- package/dist/client/_nuxt/server-discovery-e129227e.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-jyu03h3d.js +0 -1
- package/dist/client/_nuxt/server-routes-cuzpq3e6.js +0 -7
- package/dist/client/_nuxt/server-tasks-k13zuqrk.js +0 -1
- package/dist/client/_nuxt/settings-e3yeoaaw.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-n2oy2o29.js +0 -1
- package/dist/client/_nuxt/state-components-kbt6b53p.js +0 -1
- package/dist/client/_nuxt/state-editor-d3ywfwuf.js +0 -1
- package/dist/client/_nuxt/state-modules-g1xroclg.js +0 -1
- package/dist/client/_nuxt/storage-bsevx2m8.js +0 -1
- package/dist/client/_nuxt/terminals-om2sdbvh.js +0 -1
- package/dist/client/_nuxt/timeline-fl3dqhun.js +0 -31
- package/dist/client/_nuxt/vendor/json-editor-vue-k2rpz34q.js +0 -3869
- package/dist/client/_nuxt/vendor/markdown-it-ic0av7un.js +0 -14
- package/dist/client/_nuxt/vendor/quicktype-core-781ta3pq.js +0 -929
- package/dist/client/_nuxt/vendor/shiki-nsxcfb7q.js +0 -153
- package/dist/client/_nuxt/vendor/unocss-c4v2jnrn.js +0 -3
- package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +0 -1
- package/dist/client/_nuxt/vendor/vis-fsrg25ku.js +0 -26
- package/dist/client/_nuxt/vendor/xterm-cys6o1g8.js +0 -36
- package/dist/client/_nuxt/virtual-files-irp1xg65.js +0 -1
- package/dist/client/_nuxt/vue-devtools-ixjb5uzw.js +0 -4
- /package/dist/client/_nuxt/{_plugin-vue_export-helper-e0bby96w.js → _plugin-vue_export-helper-d9irwgla.js} +0 -0
- /package/dist/client/_nuxt/{color-nuuzg844.js → color-abaog8vc.js} +0 -0
- /package/dist/client/_nuxt/{composables-dhks1pao.js → composables-ioamscf4.js} +0 -0
- /package/dist/client/_nuxt/{constants-dict8wns.js → constants-g2z8m4rs.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor/markdown-it-hplpr18t.js","./rolldown-runtime-f96lzs6p.js","./vendor/shiki-k3jqtxcz.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as e,i as t,v as n,y as r}from"./nuxt-hhee6z5x.js";import{A as i,At as a,Ct as o,Dt as s,E as c,Et as l,F as u,Mt as d,Ot as f,St as p,T as m,Tt as h,V as g,bt as _,ct as v,gt as y,i as b,j as x,k as ee,lt as S,mt as te,p as C,s as ne,vt as w,wt as re,xt as ie}from"./vendor/json-editor-vue-ajxjng9j.js";import{pt as ae}from"./ready-j6igpruf.js";import{D as T,O as oe,k as se}from"./vendor/shiki-k3jqtxcz.js";function E(e,t){return y()?(_(e,t),!0):!1}var ce=new WeakMap,le=(...e)=>{let t=e[0],n=c()?.proxy??y();if(n==null&&!i())throw Error(`injectLocal must be called in setup`);return n&&ce.has(n)&&t in ce.get(n)?ce.get(n)[t]:x(...e)},D=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var ue=e=>e!==void 0,de=e=>e!=null,fe=Object.prototype.toString,pe=e=>fe.call(e)===`[object Object]`,O=()=>{},me=he();function he(){var e,t;return D&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ge(...e){if(e.length!==1)return f(...e);let t=e[0];return typeof t==`function`?p(te(()=>({get:t,set:O}))):o(t)}function _e(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var ve=e=>e();function ye(e,t={}){let n,r,i=O,o=O,s=l(!1),c=e=>{clearTimeout(e),i(),i=O},u;return Object.assign(l=>{let d=a(e),f=a(t.maxWait);return n&&c(n),d<=0||f!==void 0&&f<=0?(r&&=(c(r),void 0),s.value=!1,Promise.resolve(l())):(s.value=!0,new Promise((e,a)=>{i=t.rejectOnCancel?a:e,o=e,u=l,f&&!r&&(r=setTimeout(()=>{n&&c(n),r=void 0,s.value=!1,e(u())},f)),n=setTimeout(()=>{r&&c(r),r=void 0,s.value=!1,e(l())},d)}))},{cancel:()=>{n&&=(c(n),void 0),r&&=(c(r),void 0),s.value=!1,o=O},flush:()=>{if(s.value){n&&=(clearTimeout(n),void 0),r&&=(clearTimeout(r),void 0),s.value=!1;let e=o;i=O,o=O,e(u())}},isPending:h(s)})}function be(e=ve,t={}){let{initialState:n=`active`}=t,r=ge(n===`active`);function i(){r.value=!1}function a(){r.value=!0}return{isActive:h(r),pause:i,resume:a,eventFilter:(...t)=>{r.value&&e(...t)}}}function xe(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(i,e,n):setTimeout(r,e)})}function Se(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function Ce(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function we(e){return Object.entries(e)}function k(e){return Array.isArray(e)?e:[e]}function Te(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var Ee=/-(\w)/g,De=Te(e=>e.replace(Ee,(e,t)=>t?t.toUpperCase():``));function Oe(e){return e||c()}function ke(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function Ae(e){return w(e)?ie(new Proxy({},{get(t,n,r){return d(Reflect.get(e.value,n,r))},set(t,n,r){return w(e.value[n])&&!w(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):ie(e)}function je(e){return Ae(C(e))}function Me(e,t=200,n={}){return _e(ye(t,n),e)}function Ne(e,t=200,n={}){let r=o(a(e)),i=Me(()=>{r.value=e.value},t,n);return v(e,()=>i()),h(r)}var Pe=Ne;function Fe(e,t,n={}){let{eventFilter:r=ve,...i}=n;return v(e,_e(r,t),i)}function Ie(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=be(r,{initialState:i});return{stop:Fe(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function A(e,t=!0,n){Oe(n)?g(e,n):t?e():u(e)}function Le(e,t=!1){function n(n,{flush:r=`sync`,deep:i=!1,timeout:o,throwOnTimeout:s}={}){let c=null,l=[new Promise(a=>{c=v(e,e=>{n(e)!==t&&(c?c():u(()=>c?.()),a(e))},{flush:r,deep:i,immediate:!0})})];return o!=null&&l.push(xe(o,s).then(()=>a(e)).finally(()=>c?.())),Promise.race(l)}function r(r,i){if(!w(r))return n(e=>e===r,i);let{flush:o=`sync`,deep:s=!1,timeout:c,throwOnTimeout:l}=i??{},d=null,f=[new Promise(n=>{d=v([e,r],([e,r])=>{t!==(e===r)&&(d?d():u(()=>d?.()),n(e))},{flush:o,deep:s,immediate:!0})})];return c!=null&&f.push(xe(c,l).then(()=>a(e)).finally(()=>(d?.(),a(e)))),Promise.race(f)}function i(e){return n(e=>!!e,e)}function o(e){return r(null,e)}function s(e){return r(void 0,e)}function c(e){return n(Number.isNaN,e)}function l(e,t){return n(t=>{let n=Array.from(t);return n.includes(e)||n.includes(a(e))},t)}function d(e){return f(1,e)}function f(e=1,t){let r=-1;return n(()=>(r+=1,r>=e),t)}return Array.isArray(a(e))?{toMatch:n,toContains:l,changed:d,changedTimes:f,get not(){return Le(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:c,toBeUndefined:s,changed:d,changedTimes:f,get not(){return Le(e,!t)}}}function Re(e){return Le(e)}var ze=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Be=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function Ve(e,t,n,r){let i=e<12?`AM`:`PM`;return r&&(i=i.split(``).reduce((e,t)=>e+=`${t}.`,``)),n?i.toLowerCase():i}function j(e){let t=[`th`,`st`,`nd`,`rd`],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function He(e,t,n={}){let r=e.getFullYear(),i=e.getMonth(),o=e.getDate(),s=e.getHours(),c=e.getMinutes(),l=e.getSeconds(),u=e.getMilliseconds(),d=e.getDay(),f=n.customMeridiem??Ve,p=e=>e.split(` `)[1]??``,m={Yo:()=>j(r),YY:()=>String(r).slice(-2),YYYY:()=>r,M:()=>i+1,Mo:()=>j(i+1),MM:()=>`${i+1}`.padStart(2,`0`),MMM:()=>e.toLocaleDateString(a(n.locales),{month:`short`}),MMMM:()=>e.toLocaleDateString(a(n.locales),{month:`long`}),D:()=>String(o),Do:()=>j(o),DD:()=>`${o}`.padStart(2,`0`),H:()=>String(s),Ho:()=>j(s),HH:()=>`${s}`.padStart(2,`0`),h:()=>`${s%12||12}`.padStart(1,`0`),ho:()=>j(s%12||12),hh:()=>`${s%12||12}`.padStart(2,`0`),m:()=>String(c),mo:()=>j(c),mm:()=>`${c}`.padStart(2,`0`),s:()=>String(l),so:()=>j(l),ss:()=>`${l}`.padStart(2,`0`),SSS:()=>`${u}`.padStart(3,`0`),d:()=>d,dd:()=>e.toLocaleDateString(a(n.locales),{weekday:`narrow`}),ddd:()=>e.toLocaleDateString(a(n.locales),{weekday:`short`}),dddd:()=>e.toLocaleDateString(a(n.locales),{weekday:`long`}),A:()=>f(s,c),AA:()=>f(s,c,!1,!0),a:()=>f(s,c,!0),aa:()=>f(s,c,!0,!0),z:()=>p(e.toLocaleDateString(a(n.locales),{timeZoneName:`shortOffset`})),zz:()=>p(e.toLocaleDateString(a(n.locales),{timeZoneName:`shortOffset`})),zzz:()=>p(e.toLocaleDateString(a(n.locales),{timeZoneName:`shortOffset`})),zzzz:()=>p(e.toLocaleDateString(a(n.locales),{timeZoneName:`longOffset`}))};return t.replace(Be,(e,t)=>t??m[e]?.call(m)??e)}function Ue(e){if(e===null)return new Date(NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e==`string`&&!/Z$/i.test(e)){let t=e.match(ze);if(t){let e=t[2]-1||0,n=(t[7]||`0`).substring(0,3);return new Date(t[1],e,t[3]||1,t[4]||0,t[5]||0,t[6]||0,n)}}return new Date(e)}function We(e,t=`HH:mm:ss`,n={}){return C(()=>He(Ue(a(e)),a(t),n))}function Ge(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,o=null,s=l(!1);function c(){o&&=(clearInterval(o),null)}function u(){s.value=!1,c()}function d(){let n=a(t);n<=0||(s.value=!0,i&&e(),c(),s.value&&(o=setInterval(e,n)))}return r&&D&&d(),(w(t)||typeof t==`function`)&&E(v(t,()=>{s.value&&D&&d()})),E(u),{isActive:h(s),pause:u,resume:d}}function Ke(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,o=l(!1),s;function c(){s&&=(clearTimeout(s),void 0)}function u(){o.value=!1,c()}function d(...n){i&&e(),c(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,e(...n)},a(t))}return r&&(o.value=!0,D&&d()),E(u),{isPending:h(o),start:d,stop:u}}function qe(e,t,n={}){let{debounce:r=0,maxWait:i=void 0,...a}=n;return Fe(e,t,{...a,eventFilter:ye(r,{maxWait:i})})}function Je(e,t,n){return v(e,t,{...n,immediate:!0})}function Ye(e,t,n){let r;r=w(n)?{evaluating:n}:n||{};let{lazy:i=!1,flush:a=`sync`,evaluating:s=void 0,shallow:c=!0,onError:u=globalThis.reportError??O}=r,d=l(!i),f=c?l(t):o(t),p=0;return S(async t=>{if(!d.value)return;p++;let n=p,r=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{let i=await e(e=>{t(()=>{s&&(s.value=!1),r||e()})});n===p&&(f.value=i)}catch(e){u(e)}finally{s&&n===p&&(s.value=!1),r=!0}},{flush:a}),i?C(()=>(d.value=!0,f.value)):f}function Xe(e={}){let{inheritAttrs:t=!0,name:n=`ReusableTemplate`}=e,r=l(),i=m({name:`${n}.define`,setup(e,{slots:t}){return()=>{r.value=t.default}}}),a=m({inheritAttrs:t,name:`${n}.reuse`,props:e.props,setup(n,{attrs:i,slots:a}){return()=>{if(!r.value)throw Error(`[VueUse] Failed to find the definition of reusable template`);let o=r.value?.call(r,{...e.props==null?Ze(i):n,$slots:a});return t&&o?.length===1?o[0]:o}}});return ke({define:i,reuse:a},[i,a])}function Ze(e){let t={};for(let n in e)t[De(n)]=e[n];return t}function Qe(e={}){let t=0,n=o([]);function r(...r){let i=re({key:t++,args:r,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(i),i.promise=new Promise((e,t)=>{i.resolve=t=>(i.isResolving=!0,e(t)),i.reject=t}).finally(()=>{i.promise=void 0;let e=n.value.indexOf(i);e!==-1&&n.value.splice(e,1)}),i.promise}function i(...t){return e.singleton&&n.value.length>0?n.value[0].promise:r(...t)}let a=m((t,{slots:r})=>{let i=()=>n.value.map(e=>ee(ne,{key:e.key},r.default?.call(r,e)));return e.transition?()=>ee(ae,e.transition,i):i});return a.start=i,a}var M=D?window:void 0,$e=D?window.document:void 0,et=D?window.navigator:void 0;D&&window.location;function N(e){let t=a(e);return t?.$el??t}function P(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=C(()=>{let t=k(a(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return Je(()=>[n.value?.map(e=>N(e))??[M].filter(e=>e!=null),k(a(n.value?e[1]:e[0])),k(d(n.value?e[2]:e[1])),a(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=pe(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}var tt=!1;function nt(e,t,n={}){let{window:r=M,ignore:i=[],capture:o=!0,detectIframe:s=!1,controls:c=!1}=n;if(!r)return c?{stop:O,cancel:O,trigger:O}:O;if(me&&!tt){tt=!0;let e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener(`click`,O,e)),r.document.documentElement.addEventListener(`click`,O,e)}let l=!0,u=e=>a(i).some(t=>{if(typeof t==`string`)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{let n=N(t);return n&&(e.target===n||e.composedPath().includes(n))}});function d(e){let t=a(e);return t&&t.$.subTree.shapeFlag===16}function f(e,t){let n=a(e),r=n.$.subTree&&n.$.subTree.children;return r==null||!Array.isArray(r)?!1:r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}let p=n=>{let r=N(e);if(n.target!=null&&!(!(r instanceof Element)&&d(e)&&f(e,n))&&!(!r||r===n.target||n.composedPath().includes(r))){if(`detail`in n&&n.detail===0&&(l=!u(n)),!l){l=!0;return}t(n)}},m=!1,h=[P(r,`click`,e=>{m||(m=!0,setTimeout(()=>{m=!1},0),p(e))},{passive:!0,capture:o}),P(r,`pointerdown`,t=>{let n=N(e);l=!u(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),s&&P(r,`blur`,n=>{setTimeout(()=>{let i=N(e),a=r.document.activeElement;for(;a?.shadowRoot;)a=a.shadowRoot.activeElement;a?.tagName===`IFRAME`&&!i?.contains(r.document.activeElement)&&t(n)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(e=>e());return c?{stop:g,cancel:()=>{l=!1},trigger:e=>{l=!0,p(e),l=!1}}:g}function rt(){let e=l(!1),t=c();return t&&g(()=>{e.value=!0},t),e}function F(e){let t=rt();return C(()=>(t.value,!!e()))}function it(e,t,n={}){let{window:r=M,...i}=n,o,s=F(()=>r&&`MutationObserver`in r),c=()=>{o&&=(o.disconnect(),void 0)},l=v(C(()=>{let t=k(a(e)).map(N).filter(de);return new Set(t)}),e=>{c(),s.value&&e.size&&(o=new MutationObserver(t),e.forEach(e=>o.observe(e,i)))},{immediate:!0,flush:`post`}),u=()=>o?.takeRecords(),d=()=>{l(),c()};return E(d),{isSupported:s,stop:d,takeRecords:u}}function at(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ot(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=M,eventName:o=`keydown`,passive:s=!1,dedupe:c=!1}=r,l=at(t);return P(i,o,e=>{e.repeat&&a(c)||l(e)&&n(e)},s)}function st(e,t,n={}){return ot(e,t,{...n,eventName:`keydown`})}function ct(e,t={}){let{immediate:n=!0,fpsLimit:r=null,window:i=M,once:o=!1}=t,s=l(!1),c=C(()=>{let e=a(r);return e?1e3/e:null}),u=0,d=null;function f(t){if(!s.value||!i)return;u||=t;let n=t-u;if(c.value&&n<c.value){d=i.requestAnimationFrame(f);return}if(u=t,e({delta:n,timestamp:t}),o){s.value=!1,d=null;return}d=i.requestAnimationFrame(f)}function p(){!s.value&&i&&(s.value=!0,u=0,d=i.requestAnimationFrame(f))}function m(){s.value=!1,d!=null&&i&&(i.cancelAnimationFrame(d),d=null)}return n&&p(),E(m),{isActive:h(s),pause:m,resume:p}}var lt=Symbol(`vueuse-ssr-width`);function ut(){let e=i()?le(lt,null):null;return typeof e==`number`?e:void 0}function dt(e,t={}){let{window:n=M,ssrWidth:r=ut()}=t,i=F(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),o=l(typeof r==`number`),s=l(),c=l(!1);return S(()=>{if(o.value){o.value=!i.value;let t=a(e).split(`,`);c.value=t.some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=Ce(n[1])),i&&a&&(a=r<=Ce(i[1])),t?!a:a});return}i.value&&(s.value=n.matchMedia(a(e)),c.value=s.value.matches)}),P(s,`change`,e=>{c.value=e.matches},{passive:!0}),C(()=>c.value)}var ft=[`hash`,`host`,`hostname`,`href`,`pathname`,`port`,`protocol`,`search`];function pt(e={}){let{window:t=M}=e,n=Object.fromEntries(ft.map(e=>[e,o()])),r=e=>{var r;let{state:i,length:a}=t?.history||{},{origin:o}=t?.location||{};for(let e of ft)n[e].value=t==null||(r=t.location)==null?void 0:r[e];return ie({trigger:e,state:i,length:a,origin:o,...n})},i=o(r(`load`));for(let[e,r]of we(n))v(r,n=>{!t?.location||t.location[e]===n||(t.location[e]=n)});if(t){let e={passive:!0};P(t,`popstate`,()=>i.value=r(`popstate`),e),P(t,`hashchange`,()=>i.value=r(`hashchange`),e)}return i}function mt(e,t={}){let{controls:n=!1,navigator:r=et}=t,i=F(()=>r&&`permissions`in r),a=l(),o=typeof e==`string`?{name:e}:e,c=l(),u=()=>{c.value=a.value?.state??`prompt`};P(a,`change`,u,{passive:!0});let d=Se(async()=>{if(i.value){if(!a.value)try{a.value=await r.permissions.query(o)}catch{a.value=void 0}finally{u()}if(n)return s(a.value)}});return d(),n?{state:c,isSupported:i,query:d}:c}function ht(e={}){let{navigator:t=et,read:n=!1,source:r,copiedDuring:i=1500,legacy:o=!1}=e,s=F(()=>t&&`clipboard`in t),c=mt(`clipboard-read`),u=mt(`clipboard-write`),d=C(()=>s.value||o),f=l(``),p=l(!1),m=l(!1),g=Ke(()=>p.value=!1,i,{immediate:!1}),_=0;async function v(){let e=!(s.value&&S(c.value));if(!e)try{f.value=await t.clipboard.readText()}catch{e=!0}e&&(f.value=ee())}d.value&&n&&P([`copy`,`cut`],v,{passive:!0});async function y(e){let n=e??a(r);if(d.value&&n!=null){m.value=!0;let e=!(s.value&&S(u.value));if(!e)try{let e=b(n);await t.clipboard.write([e])}catch{e=!0}if(e)if(typeof n==`string`)f.value=n,x(n);else{let e=++_,t=await n();t!=null&&e===_&&(f.value=t,x(t))}p.value=!0,g.start(),m.value=!1}}function b(e){return typeof e==`string`?(f.value=e,new ClipboardItem({"text/plain":e})):new ClipboardItem({"text/plain":e().then((e=``)=>(f.value=e,new Blob([e],{type:`text/plain`})))})}function x(e){let t=document.createElement(`textarea`);t.value=e,t.style.position=`absolute`,t.style.opacity=`0`,t.setAttribute(`readonly`,``),document.body.appendChild(t),t.select(),document.execCommand(`copy`),t.remove()}function ee(){var e,t;return((e=document)==null||(t=e.getSelection)==null||(t=t.call(e))==null?void 0:t.toString())??``}function S(e){return e===`granted`||e===`prompt`}return{copyPending:h(m),isSupported:d,text:h(f),copied:h(p),copy:y}}function gt(e){return JSON.parse(JSON.stringify(e))}var _t=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},vt=`__vueuse_ssr_handlers__`,yt=bt();function bt(){return vt in _t||(_t[vt]=_t[vt]||{}),_t[vt]}function xt(e,t){return yt[e]||t}function St(e){return dt(`(prefers-color-scheme: dark)`,e)}function Ct(e){return e==null?`any`:e instanceof Set?`set`:e instanceof Map?`map`:e instanceof Date?`date`:typeof e==`boolean`?`boolean`:typeof e==`string`?`string`:typeof e==`object`?`object`:Number.isNaN(e)?`any`:`number`}var wt={boolean:{read:e=>e===`true`,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Tt=`vueuse-storage`;function Et(e,t,n,r={}){let{flush:i=`pre`,deep:s=!0,listenToStorageChanges:c=!0,writeDefaults:d=!0,mergeDefaults:f=!1,shallow:p,window:m=M,eventFilter:h,onError:g=e=>{console.error(e)},initOnMounted:_}=r,y=(p?l:o)(typeof t==`function`?t():t),b=C(()=>a(e));if(!n)try{n=xt(`getDefaultStorage`,()=>M?.localStorage)()}catch(e){g(e)}if(!n)return y;let x=a(t),ee=Ct(x),S=r.serializer??wt[ee],{pause:te,resume:ne}=Ie(y,e=>ie(e),{flush:i,deep:s,eventFilter:h});v(b,()=>T(),{flush:i});let w=!1;m&&c&&(n instanceof Storage?P(m,`storage`,e=>{_&&!w||T(e)},{passive:!0}):P(m,Tt,e=>{_&&!w||oe(e)})),_?A(()=>{w=!0,T()}):T();function re(e,t){if(m){let r={key:b.value,oldValue:e,newValue:t,storageArea:n};m.dispatchEvent(n instanceof Storage?new StorageEvent(`storage`,r):new CustomEvent(Tt,{detail:r}))}}function ie(e){try{let t=n.getItem(b.value);if(e==null)re(t,null),n.removeItem(b.value);else{let r=S.write(e);t!==r&&(n.setItem(b.value,r),re(t,r))}}catch(e){g(e)}}function ae(e){let t=e?e.newValue:n.getItem(b.value);if(t==null)return d&&x!=null&&n.setItem(b.value,S.write(x)),x;if(!e&&f){let e=S.read(t);return typeof f==`function`?f(e,x):ee===`object`&&!Array.isArray(e)?{...x,...e}:e}return typeof t==`string`?S.read(t):t}function T(e){if(!(e&&e.storageArea!==n)){if(e&&e.key==null){y.value=x;return}if(!(e&&e.key!==b.value)){te();try{let t=S.write(y.value);(e===void 0||e?.newValue!==t)&&(y.value=ae(e))}catch(e){g(e)}finally{e?u(ne):ne()}}}}function oe(e){T(e.detail)}return y}var Dt=`*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Ot(e={}){let{selector:t=`html`,attribute:n=`class`,initialValue:r=`auto`,window:i=M,storage:a,storageKey:o=`vueuse-color-scheme`,listenToStorageChanges:s=!0,storageRef:c,emitAuto:l,disableTransition:u=!0}=e,d={auto:``,light:`light`,dark:`dark`,...e.modes||{}},f=St({window:i}),p=C(()=>f.value?`dark`:`light`),m=c||(o==null?ge(r):Et(o,r,a,{window:i,listenToStorageChanges:s})),h=C(()=>m.value===`auto`?p.value:m.value),g=xt(`updateHTMLAttrs`,(e,t,n)=>{let r=typeof e==`string`?i?.document.querySelector(e):N(e);if(!r)return;let a=new Set,o=new Set,s=null;if(t===`class`){let e=n.split(/\s/g);Object.values(d).flatMap(e=>(e||``).split(/\s/g)).filter(Boolean).forEach(t=>{e.includes(t)?a.add(t):o.add(t)})}else s={key:t,value:n};if(a.size===0&&o.size===0&&s===null)return;let c;u&&(c=i.document.createElement(`style`),c.appendChild(document.createTextNode(Dt)),i.document.head.appendChild(c));for(let e of a)r.classList.add(e);for(let e of o)r.classList.remove(e);s&&r.setAttribute(s.key,s.value),u&&(i.getComputedStyle(c).opacity,document.head.removeChild(c))});function _(e){g(t,n,d[e]??e)}function y(t){e.onChanged?e.onChanged(t,_):_(t)}v(h,y,{flush:`post`,immediate:!0}),A(()=>y(h.value));let b=C({get(){return l?m.value:h.value},set(e){m.value=e}});return Object.assign(b,{store:m,system:p,state:h})}function kt(e,t,n={}){let{window:r=M,...i}=n,o,s=F(()=>r&&`ResizeObserver`in r),c=()=>{o&&=(o.disconnect(),void 0)},l=v(C(()=>{let t=a(e);return Array.isArray(t)?t.map(e=>N(e)):[N(t)]}),e=>{if(c(),s.value&&r){o=new ResizeObserver(t);for(let t of e)t&&o.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return E(u),{isSupported:s,stop:u}}function At(e,t={}){let{reset:n=!0,windowResize:r=!0,windowScroll:i=!0,immediate:a=!0,updateTiming:o=`sync`}=t,s=l(0),c=l(0),u=l(0),d=l(0),f=l(0),p=l(0),m=l(0),h=l(0);function g(){let t=N(e);if(!t){n&&(s.value=0,c.value=0,u.value=0,d.value=0,f.value=0,p.value=0,m.value=0,h.value=0);return}let r=t.getBoundingClientRect();s.value=r.height,c.value=r.bottom,u.value=r.left,d.value=r.right,f.value=r.top,p.value=r.width,m.value=r.x,h.value=r.y}function _(){o===`sync`?g():o===`next-frame`&&requestAnimationFrame(()=>g())}return kt(e,_),v(()=>N(e),e=>!e&&_()),it(e,_,{attributeFilter:[`style`,`class`]}),i&&P(`scroll`,_,{capture:!0,passive:!0}),r&&P(`resize`,_,{passive:!0}),A(()=>{a&&_()}),{height:s,bottom:c,left:u,right:d,top:f,width:p,x:m,y:h,update:_}}function jt(e,t={width:0,height:0},n={}){let{window:r=M,box:i=`content-box`}=n,a=C(()=>{var t;return(t=N(e))==null||(t=t.namespaceURI)==null?void 0:t.includes(`svg`)}),o=l(t.width),s=l(t.height),{stop:c}=kt(e,([t])=>{let n=i===`border-box`?t.borderBoxSize:i===`content-box`?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&a.value){let t=N(e);if(t){let e=t.getBoundingClientRect();o.value=e.width,s.value=e.height}}else if(n){let e=k(n);o.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else o.value=t.contentRect.width,s.value=t.contentRect.height},n);A(()=>{let n=N(e);if(n&&`offsetWidth`in n)if(i===`content-box`&&r){let e=r.getComputedStyle(n),t=Number.parseFloat(e.paddingLeft)+Number.parseFloat(e.paddingRight),i=Number.parseFloat(e.paddingTop)+Number.parseFloat(e.paddingBottom),a=Number.parseFloat(e.borderLeftWidth)+Number.parseFloat(e.borderRightWidth),c=Number.parseFloat(e.borderTopWidth)+Number.parseFloat(e.borderBottomWidth);o.value=n.offsetWidth-t-a,s.value=n.offsetHeight-i-c}else o.value=n.offsetWidth,s.value=n.offsetHeight;else n&&(o.value=t.width,s.value=t.height)});let u=v(()=>N(e),e=>{o.value=e?t.width:0,s.value=e?t.height:0});function d(){c(),u()}return{width:o,height:s,stop:d}}function Mt(e={}){let{initialValue:t=``}=e,n=F(()=>typeof window<`u`&&`EyeDropper`in window),r=l(t);async function i(e){if(!n.value)return;let t=await new window.EyeDropper().open(e);return r.value=t.sRGBHex,t}return{isSupported:n,sRGBHex:r,open:i}}function Nt(e,t,n={}){let{window:r=M}=n;return Et(e,t,r?.localStorage,n)}function Pt(e){if(`interval`in e||`immediate`in e){let{interval:t=`requestAnimationFrame`,immediate:n=!0}=e;return t===`requestAnimationFrame`?e=>ct(e,{immediate:n}):n=>Ge(n,t,e)}return ct}function Ft(e={}){let{controls:t=!1,scheduler:n=Pt(e)}=e,r=l(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function It(e,t,n={}){let{window:r=M}=n;return Et(e,t,r?.sessionStorage,n)}var Lt=0,Rt=new WeakMap;function zt(e,t={}){let n=l(!1),{document:r=$e,immediate:i=!0,manual:a=!1,id:o=`vueuse_styletag_${++Lt}`}=t,s=l(e),c=()=>{},u=()=>{if(!r)return;let e=r.getElementById(o)||r.createElement(`style`);e.isConnected||(e.id=o,t.nonce&&(e.nonce=t.nonce),t.media&&(e.media=t.media),r.head.appendChild(e)),!n.value&&(Rt.set(e,(Rt.get(e)??0)+1),c=v(s,t=>{e.textContent=t},{immediate:!0}),n.value=!0)},d=()=>{if(!r||!n.value)return;c();let e=r.getElementById(o);if(e){let t=(Rt.get(e)??1)-1;t<=0?(Rt.delete(e),r.head.removeChild(e)):Rt.set(e,t)}n.value=!1};return i&&!a&&A(u),a||E(d),{id:o,css:s,unload:d,load:u,isLoaded:h(n)}}var Bt=[{max:6e4,value:1e3,name:`second`},{max:276e4,value:6e4,name:`minute`},{max:72e6,value:36e5,name:`hour`},{max:5184e5,value:864e5,name:`day`},{max:24192e5,value:6048e5,name:`week`},{max:28512e6,value:2592e6,name:`month`},{max:1/0,value:31536e6,name:`year`}],Vt={justNow:`just now`,past:e=>/\d/.test(e)?`${e} ago`:e,future:e=>/\d/.test(e)?`in ${e}`:e,month:(e,t)=>e===1?t?`last month`:`next month`:`${e} month${e>1?`s`:``}`,year:(e,t)=>e===1?t?`last year`:`next year`:`${e} year${e>1?`s`:``}`,day:(e,t)=>e===1?t?`yesterday`:`tomorrow`:`${e} day${e>1?`s`:``}`,week:(e,t)=>e===1?t?`last week`:`next week`:`${e} week${e>1?`s`:``}`,hour:e=>`${e} hour${e>1?`s`:``}`,minute:e=>`${e} minute${e>1?`s`:``}`,second:e=>`${e} second${e>1?`s`:``}`,invalid:``};function Ht(e){return e.toISOString().slice(0,10)}function Ut(e){if(`updateInterval`in e){let{updateInterval:t=3e4}=e;return e=>Ge(e,t)}return e=>Ge(e,3e4)}function Wt(e,t={}){let{controls:n=!1,scheduler:r=Ut(t)}=t,{now:i,...o}=Ft({scheduler:r,controls:!0}),s=C(()=>Gt(new Date(a(e)),t,a(i)));return n?{timeAgo:s,...o}:s}function Gt(e,t={},n=Date.now()){let{max:r,messages:i=Vt,fullDateFormatter:a=Ht,units:o=Bt,showSecond:s=!1,rounding:c=`round`}=t,l=typeof c==`number`?e=>+e.toFixed(c):Math[c],u=n-+e,d=Math.abs(u);function f(e,t){return l(Math.abs(e)/t.value)}function p(e,t){let n=f(e,t),r=e>0,i=m(t.name,n,r);return m(r?`past`:`future`,i,r)}function m(e,t,n){let r=i[e];return typeof r==`function`?r(t,n):r.replace(`{0}`,t.toString())}if(d<6e4&&!s)return i.justNow;if(typeof r==`number`&&d>r)return a(new Date(e));if(typeof r==`string`){let t=o.find(e=>e.name===r)?.max;if(t&&d>t)return a(new Date(e))}for(let[e,t]of o.entries()){if(f(u,t)<=0&&o[e-1])return p(u,o[e-1]);if(d<t.max)return p(u,t)}return i.invalid}function Kt(e,t,n,r={}){var i,a;let{clone:s=!1,passive:l=!1,eventName:d,deep:f=!1,defaultValue:p,shouldEmit:m}=r,h=c(),g=n||h?.emit||(h==null||(i=h.$emit)==null?void 0:i.bind(h))||(h==null||(a=h.proxy)==null||(a=a.$emit)==null?void 0:a.bind(h?.proxy)),_=d;t||=`modelValue`,_||=`update:${t.toString()}`;let y=e=>s?typeof s==`function`?s(e):gt(e):e,b=()=>ue(e[t])?y(e[t]):p,x=e=>{m?m(e)&&g(_,e):g(_,e)};if(l){let n=o(b()),r=!1;return v(()=>e[t],e=>{r||(r=!0,n.value=y(e),u(()=>r=!1))}),v(n,n=>{!r&&(n!==e[t]||f)&&x(n)},{deep:f}),n}return C({get(){return b()},set(e){x(e)}})}function qt(e={}){let{window:t=M,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:a=!0,type:o=`inner`}=e,s=l(n),c=l(r),u=()=>{if(t)if(o===`outer`)s.value=t.outerWidth,c.value=t.outerHeight;else if(o===`visual`&&t.visualViewport){let{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else a?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};u(),A(u);let d={passive:!0};return P(`resize`,u,d),t&&o===`visual`&&t.visualViewport&&P(t.visualViewport,`resize`,u,d),i&&v(dt(`(orientation: portrait)`),()=>u()),{width:s,height:c}}var Jt;function Yt(e){Jt?.(e)}function Xt(e){Jt=e}var Zt=``,Qt=`?`,$t=`major`,I=`model`,L=`name`,R=`type`,z=`vendor`,B=`version`,V=`architecture`,en=`console`,H=`mobile`,U=`tablet`,W=`smarttv`,G=`wearable`,tn=`embedded`,nn=500,rn=`Amazon`,an=`Apple`,on=`ASUS`,sn=`BlackBerry`,K=`Browser`,cn=`Chrome`,ln=`Edge`,un=`Firefox`,dn=`Google`,fn=`Huawei`,pn=`LG`,mn=`Microsoft`,hn=`Motorola`,gn=`Opera`,_n=`Samsung`,vn=`Sharp`,yn=`Sony`,bn=`Xiaomi`,xn=`Zebra`,Sn=`Facebook`,Cn=`Chromium OS`,wn=`Mac OS`;function Tn(e,t={}){let n={};for(let r of Object.keys(e)){let i=t[r];n[r]=i&&i.length%2==0?[...i,...e[r]]:e[r]}return n}function En(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function Dn(e){return e.toLowerCase()}function On(e,t){return typeof e==`string`&&Dn(t).includes(Dn(e))}function kn(e){return typeof e==`string`?e.replace(/[^\d.]/g,Zt).split(`.`)[0]:void 0}function An(e,t){let n=e.replace(/^\s+/,Zt);return t===void 0?n:n.substring(0,t)}function jn(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];r[e]=typeof i==`function`?i(t,void 0,r):i}else if(i===3){let i=n[1],a=n[2];r[e]=typeof i==`function`&&!(`exec`in i)&&!(`test`in i)?t?i(t,a,r):void 0: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 Mn(e,t){for(let n in t){let r=t[n];if(Array.isArray(r)&&r.length>0){for(let t=0;t<r.length;t++)if(On(r[t],e))return n===Qt?void 0:n}else if(On(r,e))return n===Qt?void 0:n}return e}var Nn={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},Pn={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`},Fn={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[B,[L,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[B,[L,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[L,B],[/opios[/ ]+([\w.]+)/i],[B,[L,`${gn} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[B,[L,`${gn} GX`]],[/\bopr\/([\w.]+)/i],[B,[L,gn]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[B,[L,`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],[L,B],[/\bddg\/([\w.]+)/i],[B,[L,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[B,[L,`UC${K}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[B,[L,`WeChat`]],[/konqueror\/([\w.]+)/i],[B,[L,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[B,[L,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[B,[L,`Yandex`]],[/slbrowser\/([\w.]+)/i],[B,[L,`Smart Lenovo ${K}`]],[/(avast|avg)\/([\w.]+)/i],[[L,/(.+)/,`$1 Secure ${K}`],B],[/\bfocus\/([\w.]+)/i],[B,[L,`${un} Focus`]],[/\bopt\/([\w.]+)/i],[B,[L,`${gn} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[B,[L,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[B,[L,`Dolphin`]],[/coast\/([\w.]+)/i],[B,[L,`${gn} Coast`]],[/miuibrowser\/([\w.]+)/i],[B,[L,`MIUI ${K}`]],[/fxios\/([-\w.]+)/i],[B,[L,un]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[L,`360 ${K}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[L,/(.+)/,`$1 ${K}`],B],[/samsungbrowser\/([\w.]+)/i],[B,[L,`${_n} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[L,/_/g,` `],B],[/metasr[/ ]?([\d.]+)/i],[B,[L,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[L,`Sogou Mobile`],B],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[L,B],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[L],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[L,Sn],B],[/(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],[L,B],[/\bgsa\/([\w.]+) .*safari\//i],[B,[L,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[B,[L,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[B,[L,`${cn} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[L,`${cn} WebView`],B],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[B,[L,`Android ${K}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[L,B],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[B,[L,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[B,L],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[L,[B,Mn,Nn]],[/(webkit|khtml)\/([\w.]+)/i],[L,B],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[L,`Netscape`],B],[/mobile vr; rv:([\w.]+)\).+firefox/i],[B,[L,`${un} 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],[L,B],[/(cobalt)\/([\w.]+)/i],[L,[B,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[V,`amd64`]],[/(ia32(?=;))/i],[[V,Dn]],[/((?:i[346]|x)86)[;)]/i],[[V,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[V,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[V,`armhf`]],[/windows (ce|mobile); ppc;/i],[[V,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[V,/ower/,Zt,Dn]],[/(sun4\w)[;)]/i],[[V,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[V,Dn]]],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,[z,_n],[R,U]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[I,[z,_n],[R,H]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[I,[z,an],[R,H]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[I,[z,an],[R,U]],[/(macintosh);/i],[I,[z,an]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[I,[z,vn],[R,H]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[I,[z,fn],[R,U]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[I,[z,fn],[R,H]],[/\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,` `],[z,bn],[R,H]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[I,/_/g,` `],[z,bn],[R,U]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[I,[z,`OPPO`],[R,H]],[/\b(opd2\d{3}a?) bui/i],[I,[z,`OPPO`],[R,U]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[I,[z,`Vivo`],[R,H]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[I,[z,`Realme`],[R,H]],[/\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,[z,hn],[R,H]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[I,[z,hn],[R,U]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[I,[z,pn],[R,U]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[I,[z,pn],[R,H]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[I,[z,`Lenovo`],[R,U]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[I,/_/g,` `],[z,`Nokia`],[R,H]],[/(pixel c)\b/i],[I,[z,dn],[R,U]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[I,[z,dn],[R,H]],[/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,[z,yn],[R,H]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[I,`Xperia Tablet`],[z,yn],[R,U]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[I,[z,`OnePlus`],[R,H]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[I,[z,rn],[R,U]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[I,/(.+)/g,`Fire Phone $1`],[z,rn],[R,H]],[/(playbook);[-\w),; ]+(rim)/i],[I,z,[R,U]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[I,[z,sn],[R,H]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[I,[z,on],[R,U]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[I,[z,on],[R,H]],[/(nexus 9)/i],[I,[z,`HTC`],[R,U]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[z,[I,/_/g,` `],[R,H]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[I,[z,`Acer`],[R,U]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[I,[z,`Meizu`],[R,H]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[I,[z,`Ulefone`],[R,H]],[/(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],[z,I,[R,H]],[/(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],[z,I,[R,U]],[/(surface duo)/i],[I,[z,mn],[R,U]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[I,[z,`Fairphone`],[R,H]],[/(u304aa)/i],[I,[z,`AT&T`],[R,H]],[/\bsie-(\w*)/i],[I,[z,`Siemens`],[R,H]],[/\b(rct\w+) b/i],[I,[z,`RCA`],[R,U]],[/\b(venue[\d ]{2,7}) b/i],[I,[z,`Dell`],[R,U]],[/\b(q(?:mv|ta)\w+) b/i],[I,[z,`Verizon`],[R,U]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[I,[z,`Barnes & Noble`],[R,U]],[/\b(tm\d{3}\w+) b/i],[I,[z,`NuVision`],[R,U]],[/\b(k88) b/i],[I,[z,`ZTE`],[R,U]],[/\b(nx\d{3}j) b/i],[I,[z,`ZTE`],[R,H]],[/\b(gen\d{3}) b.+49h/i],[I,[z,`Swiss`],[R,H]],[/\b(zur\d{3}) b/i],[I,[z,`Swiss`],[R,U]],[/\b((zeki)?tb.*\b) b/i],[I,[z,`Zeki`],[R,U]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[z,`Dragon Touch`],I,[R,U]],[/\b(ns-?\w{0,9}) b/i],[I,[z,`Insignia`],[R,U]],[/\b((nxa|next)-?\w{0,9}) b/i],[I,[z,`NextBook`],[R,U]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[z,`Voice`],I,[R,H]],[/\b(lvtel-)?(v1[12]) b/i],[[z,`LvTel`],I,[R,H]],[/\b(ph-1) /i],[I,[z,`Essential`],[R,H]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[I,[z,`Envizen`],[R,U]],[/\b(trio[-\w. ]+) b/i],[I,[z,`MachSpeed`],[R,U]],[/\btu_(1491) b/i],[I,[z,`Rotor`],[R,U]],[/(shield[\w ]+) b/i],[I,[z,`Nvidia`],[R,U]],[/(sprint) (\w+)/i],[z,I,[R,H]],[/(kin\.[onetw]{3})/i],[[I,/\./g,` `],[z,mn],[R,H]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[I,[z,xn],[R,U]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[I,[z,xn],[R,H]],[/smart-tv.+(samsung)/i],[z,[R,W]],[/hbbtv.+maple;(\d+)/i],[[I,/^/,`SmartTV`],[z,_n],[R,W]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[z,pn],[R,W]],[/(apple) ?tv/i],[z,[I,`${an} TV`],[R,W]],[/crkey/i],[[I,`${cn}cast`],[z,dn],[R,W]],[/droid.+aft(\w+)( bui|\))/i],[I,[z,rn],[R,W]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[I,[z,vn],[R,W]],[/(bravia[\w ]+)( bui|\))/i],[I,[z,yn],[R,W]],[/(mitv-\w{5}) bui/i],[I,[z,bn],[R,W]],[/Hbbtv.*(technisat) (.*);/i],[z,I,[R,W]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[z,An],[I,An],[R,W]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[R,W]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[z,I,[R,en]],[/droid.+; (shield) bui/i],[I,[z,`Nvidia`],[R,en]],[/(playstation [345portablevi]+)/i],[I,[z,yn],[R,en]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[I,[z,mn],[R,en]],[/((pebble))app/i],[z,I,[R,G]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[I,[z,an],[R,G]],[/droid.+; (glass) \d/i],[I,[z,dn],[R,G]],[/droid.+; (wt63?0{2,3})\)/i],[I,[z,xn],[R,G]],[/(quest( \d| pro)?)/i],[I,[z,Sn],[R,G]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[z,[R,tn]],[/(aeobc)\b/i],[I,[z,rn],[R,tn]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[I,[R,H]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[I,[R,U]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[R,U]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[R,H]],[/(android[-\w. ]{0,9});.+buil/i],[I,[z,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[B,[L,`${ln}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[B,[L,`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],[L,B],[/rv:([\w.]{1,9})\b.+(gecko)/i],[B,L]],os:[[/microsoft (windows) (vista|xp)/i],[L,B],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[L,[B,Mn,Pn]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[B,Mn,Pn],[L,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[B,/_/g,`.`],[L,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[L,wn],[B,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[B,L],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[L,B],[/\(bb(10);/i],[B,[L,sn]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[B,[L,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[B,[L,`${un} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[B,[L,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[B,[L,`watchOS`]],[/crkey\/([\d.]+)/i],[B,[L,`${cn}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[L,Cn],B],[/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],[L,B],[/(sunos) ?([\w.]*)/i],[[L,`Solaris`],B],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[L,B]]};function In(e){return typeof e==`object`&&!!e}Object.freeze(En([L,B,$t])),Object.freeze(En([V])),Object.freeze(En([I,z,R,en,H,W,U,G,tn])),Object.freeze(En([L,B])),Object.freeze(En([L,B]));function Ln(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function Rn(e){return e.length>nn?An(e,nn):e}function zn(e){if(typeof e==`string`)return{ua:Rn(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:Fn};let t=Ln(),n=Rn(t&&t.userAgent?t.userAgent:Zt);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:Fn}}function Bn(e,t){if(!t&&!In(e))return zn(e);let n=Ln(),r=In(e)?void 0:e,i=In(e)?e:t,a=Rn(r||(n&&n.userAgent?n.userAgent:Zt)),o=n?.userAgentData;return{ua:a,isSelfNavigator:!!(n&&n.userAgent===a),navigator:n,userAgentData:o,regexMap:i?Tn(Fn,i):Fn}}function Vn(e){let t={name:void 0,version:void 0,major:void 0};return jn(e.ua,e.regexMap.browser,t),t.major=kn(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function Hn(e){let t={architecture:void 0};return jn(e.ua,e.regexMap.cpu,t),t}function Un(e){let t={vendor:void 0,model:void 0,type:void 0};return jn(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=H),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=U),t}function Wn(e){let t={name:void 0,version:void 0};return jn(e.ua,e.regexMap.engine,t),t}function Gn(e){let t={name:void 0,version:void 0};return jn(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,Cn).replace(/macos/i,wn)),t}function Kn(e,t){let n,r,i,a,o,s,c=()=>n||=Bn(e,t);return{get ua(){return c().ua},get browser(){return r||=Vn(c()),r},get engine(){return i||=Wn(c()),i},get os(){return a||=Gn(c()),a},get device(){return o||=Un(c()),o},get cpu(){return s||=Hn(c()),s}}}var qn=r({docsBase:e,reporters:n}),Jn=`$s`;function Yn(...e){let n=typeof e[e.length-1]==`string`?e.pop():void 0;typeof e[0]!=`string`&&e.unshift(n);let[r,i]=e;if(!r||typeof r!=`string`)throw qn.NUXT_E7009({key:r});if(i!==void 0&&typeof i!=`function`)throw qn.NUXT_E7007({type:typeof i});let a=Jn+r,o=t(),s=f(o.payload.state,a);if(i&&(o._state[a]??={_default:i}),s.value===void 0&&i){let e=i();if(w(e))return o.payload.state[a]=e,e;s.value=e}return s}var Xn=Qe(),Zn=Qe();function Qn(){return Yn(`devtools:restart-dialogs`,()=>[])}var $n=`q`,er=`s`;function tr(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var nr=Math.random.bind(Math),rr=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ir(e=21){let t=``,n=e;for(;n--;)t+=rr[nr()*64|0];return t}var ar=6e4,or=e=>e,sr=or,{clearTimeout:cr,setTimeout:lr}=globalThis;function ur(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=or,deserialize:s=sr,resolver:c,bind:l=`rpc`,timeout:u=ar,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:$n};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=tr(),_=ir();s.i=_;let v;async function y(n=s){return u>=0&&(v=lr(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{cr(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===$n){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:er,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:er,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(cr(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}var dr=typeof self==`object`?self:globalThis,fr=new Set([`Error`,`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`,`AggregateError`]),pr=new Set([`Boolean`,`Number`,`String`,`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float16Array`,`Float32Array`,`Float64Array`,`BigInt64Array`,`BigUint64Array`]);function mr(e,t){let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o,r=fr.has(e)?dr[e]:void 0;return n(new(r??dr.Error)(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}if(typeof a==`string`&&pr.has(a))return n(new dr[a](o),i);throw TypeError(`unable to deserialize unsafe or unknown type: ${String(a)}`)};return r}function hr(e){return mr(new Map,e)(0)}var q=``,{toString:gr}={},{keys:_r}=Object;function vr(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=gr.call(e).slice(8,-1);switch(n){case`Array`:return[1,q];case`Object`:return[2,q];case`Date`:return[3,q];case`RegExp`:return[4,q];case`Map`:return[5,q];case`Set`:return[6,q];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function yr([e,t]){return e===0&&(t===`function`||t===`symbol`)}function br(e,t,n,r){let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=vr(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of _r(r))(e||!yr(vr(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(yr(vr(n))||yr(vr(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!yr(vr(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function xr(e,t={}){let n=[];return br(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:Sr,stringify:Cr}=JSON,wr={json:!0,lossy:!0};function Tr(e){return hr(Sr(e))}function Er(e){return Cr(xr(e,wr))}function Dr(e,t){return hr(xr(e,t))}async function Or(e=`/`,t=!0){try{let t=`${e}@vite/client`,n=await fetch(t);if((await n.text()).startsWith(`<`)||!n.headers.get(`content-type`)?.includes(`javascript`))throw Error(`Not javascript`);return await b(()=>import(t),[],import.meta.url)}catch{t&&console.error(`[vite-hot-client] Failed to import "${e}@vite/client"`)}}function kr(e=window.location.pathname){return e.split(`/`).map((e,t,n)=>n.slice(0,t+1).join(`/`)||`/`)}async function Ar(e=`/___`,t){t??=kr();for(let n of t){let t=(await Or(n,!1))?.createHotContext(e);if(t)return t}console.error(`[vite-hot-client] Failed to import vite client, tried with:`,t)}var jr=`nuxt:devtools:rpc`,Mr={behavior:{telemetry:null,openInEditor:void 0},ui:{componentsView:`list`,componentsGraphShowNodeModules:!1,componentsGraphShowGlobalComponents:!0,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,interactionCloseOnOutsideClick:!1,showExperimentalFeatures:!1,showHelpButtons:!0,showPanel:!0,scale:1,minimizePanelInactive:5e3,hiddenTabs:[],pinnedTabs:[],hiddenTabCategories:[],sidebarExpanded:!1,sidebarScrollable:!1},serverRoutes:{selectedRoute:null,view:`tree`,inputDefaults:{query:[],body:[],headers:[]},sendFrom:`app`},serverTasks:{enabled:!1,selectedTask:null,view:`list`,inputDefaults:{query:[],body:[],headers:[{active:!0,key:`Content-Type`,value:`application/json`,type:`string`}]}},assets:{view:`grid`}},Nr=/^\/|\/$/g,Pr=/\/__nuxt_devtools__\/client\/.*$/,J=o(!1),Fr=l(),Ir=Pe(J,2e3),Lr=Vr(),Rr=()=>{},zr={},Br=new Map,Y=ur(zr,{post:async e=>{(await Lr).send(jr,e)},on:e=>{Rr=e},serialize:Er,deserialize:Tr,resolver(e,t){if(t)return t;if(!e.includes(`:`))return;let[n,r]=e.split(`:`);return Br.get(n)?.[r]},onFunctionError(e,t){return console.error(`[nuxt-devtools] RPC error on executing "${t}":`),console.error(e),!0},onGeneralError(e){return console.error(`[nuxt-devtools] RPC error:`),console.error(e),!0},timeout:12e4});async function Vr(){let e=window.parent?.__NUXT__?.config?.app??window.parent?.useNuxtApp?.()?.payload?.config?.app,t=e?.baseURL??`/`,n=e?.buildAssetsDir?.replace(Nr,``)??`_nuxt`;t&&!t.endsWith(`/`)&&(t+=`/`);let r=window.location.href.replace(Pr,`/`),i=await Ar(void 0,[...new Set([`${t}${n}/`,`${t}_nuxt/`,t,`${r}${n}/`,`${r}_nuxt/`,r])]);if(!i)throw J.value=!0,console.error(`[Nuxt DevTools] Unable to find Vite HMR context`),Error(`[Nuxt DevTools] Unable to connect to devtools`);return i.on(jr,e=>{J.value=!1,Rr(e)}),J.value=!0,i.on(`vite:ws:connect`,()=>{console.log(`[nuxt-devtools] Connected to WebSocket`),J.value=!1}),i.on(`vite:ws:disconnect`,()=>{console.log(`[nuxt-devtools] Disconnected from WebSocket`),J.value=!0}),i}var X=o(localStorage.getItem(`__nuxt_dev_token__`)),Z=o(!1),Hr=new BroadcastChannel(`__nuxt_dev_token__`);Hr.addEventListener(`message`,e=>{if(e.data.event===`new-token`){if(e.data.data===X.value)return;let t=e.data.data;Y.verifyAuthToken(t).then(e=>{X.value=e?t:null,Z.value=e})}});function Ur(e){X.value=e,Z.value=!0,localStorage.setItem(`__nuxt_dev_token__`,e),Hr.postMessage({event:`new-token`,data:e})}async function Wr(){if(Z.value)return X.value;if(X.value||await Kr(),Z.value=await Y.verifyAuthToken(X.value),!Z.value)throw X.value=null,Yt({message:`Invalid auth token, action canceled`,icon:`i-carbon-warning-alt`,classes:`text-red`}),await Kr(),Error(`[Nuxt DevTools] Invalid auth token`);return X.value}var Q=Kn(navigator.userAgent);async function Gr(){let e=[Q.browser.name,Q.browser.version,`|`,Q.os.name,Q.os.version,Q.device.type].filter(e=>e).join(` `);return await Y.requestForAuth(e)}async function Kr(){if(X.value||Gr(),await Promise.race([Zn.start(),Re(X.value).toBeTruthy()])===!1)throw Yt({message:`Action canceled`,icon:`carbon-close`,classes:`text-orange`}),Error(`[Nuxt DevTools] User canceled auth`)}var qr=l(),Jr;function Yr(){Jr||=(async()=>{let{default:e}=await b(async()=>{let{default:e}=await import(`./vendor/markdown-it-hplpr18t.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1]),import.meta.url);qr.value=new e({html:!0,linkify:!0,breaks:!0})})()}function Xr(e){return Yr(),qr.value?qr.value.render(e):e}var Zr={json:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.S),__vite__mapDeps([2,1]),import.meta.url),yaml:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e._),__vite__mapDeps([2,1]),import.meta.url),yml:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e._),__vite__mapDeps([2,1]),import.meta.url),css:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.E),__vite__mapDeps([2,1]),import.meta.url),javascript:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),js:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),cjs:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),mjs:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.w),__vite__mapDeps([2,1]),import.meta.url),typescript:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),ts:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),cts:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),mts:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.b),__vite__mapDeps([2,1]),import.meta.url),vue:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.v),__vite__mapDeps([2,1]),import.meta.url),"vue-html":()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.y),__vite__mapDeps([2,1]),import.meta.url),html:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.C),__vite__mapDeps([2,1]),import.meta.url),diff:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.T),__vite__mapDeps([2,1]),import.meta.url),shellscript:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),bash:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),sh:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),shell:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url),zsh:()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.x),__vite__mapDeps([2,1]),import.meta.url)},Qr={"vitesse-dark":()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.g),__vite__mapDeps([2,1]),import.meta.url),"vitesse-light":()=>b(()=>import(`./vendor/shiki-k3jqtxcz.js`).then(e=>e.h),__vite__mapDeps([2,1]),import.meta.url)},$r=oe({langs:Zr,themes:Qr,engine:()=>T()}),{codeToHtml:ei,codeToHast:ti,codeToTokensBase:ni,codeToTokens:ri,codeToTokensWithThemes:ii,getSingletonHighlighter:ai,getLastGrammarState:oi}=se($r),si=l(),ci=null;function li(e,t=`text`,n){!ci&&!si.value&&(ci=$r({langs:Object.keys(Zr),themes:Object.keys(Qr)}).then(e=>{si.value=e}));let r=si.value?.getLoadedLanguages().includes(t);return r?{code:si.value.codeToHtml(e,{...n,lang:t,themes:{dark:`vitesse-dark`,light:`vitesse-light`},transformers:[{root(e){return{type:`root`,children:e.children[0].children[0].children}}}]}),supported:!0}:{code:e,supported:r}}function $(){return Yn(`devtools-client`)}function ui(){let e=$();return C(()=>e.value?.nuxt.vueApp.config.globalProperties?.$route)}function di(){let e=$();return C(()=>e.value?.nuxt.vueApp.config.globalProperties?.$router)}function fi(){let e=$();return C(()=>e.value?.nuxt.vueApp.config.globalProperties?.$head)}var pi=o(!1);setTimeout(()=>{pi.value=!0},2e3);var mi=C(()=>pi.value&&!$().value);function hi(){return Ot({storageKey:`nuxt-devtools-color-mode`})}function gi(){let e=$(),t=hi();return C(()=>({host:e.value,devtools:{rpc:Y,colorMode:t.value,renderCodeHighlight(e,t){return li(e,t)},renderMarkdown(e){return Xr(e)},extendClientRpc(e,t){return Br.set(e,t),new Proxy({},{get(t,n){if(typeof n==`string`)return Y[`${e}:${n}`]}})}}}))}export{We as $,Gt as A,Mt as B,Qn as C,Ye as D,Yt as E,ht as F,Wt as G,Ft as H,Ot as I,de as J,Kt as K,At as L,st as M,N,Xe as O,pt as P,Re as Q,jt as R,Xn as S,Xt as T,It as U,Nt as V,zt as W,k as X,je as Y,E as Z,Ir as _,ui as a,Dr as b,X as c,Gr as d,Pe as et,Ur as f,J as g,Y as h,fi as i,nt as j,Qe as k,Wr as l,zr as m,mi as n,di as o,Q as p,qt as q,$ as r,gi as s,hi as t,qe as tt,Z as u,Fr as v,Yn as w,Zn as x,Mr as y,P as z};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{Ct as e,T as t,V as n,W as r,h as i,p as a}from"./vendor/json-editor-vue-ajxjng9j.js";import{N as o}from"./client-kw9rd8gy.js";import{t as s}from"./ncode-block-pepewqmk.js";var c=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends c{};function l(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function u(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function d(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function f(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function p(e,t){return d(e,t,``)}function m(e,t){return f(e,t,``)}function h(e,t){return t.slice(0,g(e,t))}function g(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function v(e,t){if(t)return b(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function y(e,t){if(t)return b(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function b(e,t){if(!t)return[y(e),v(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=_(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var x=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,S=RegExp(`[${x}]+|\\s+|[^${x}]`,`ug`);new class extends c{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=_(e,r)}else n=e.match(S)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&C(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&C(n,i,r,null,t.intlSegmenter),e}};function C(e,t,n,r,i){if(t&&n){let[a,o]=b(t.value,i),[s,c]=b(n.value,i);if(e){let r=l(a,s);e.value=f(e.value,s,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(o,c);r.value=d(r.value,c,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=y(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=y(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=y(r.value,i),[a,o]=b(t.value,i),s=l(n,a);t.value=p(t.value,s);let c=u(p(n,s),o);t.value=m(t.value,c),r.value=d(r.value,n,c),e.value=f(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=y(r.value,i),n=h(v(t.value,i),e);t.value=m(t.value,n)}else if(e){let n=h(v(e.value,i),y(t.value,i));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${x}]+|[^\\S\\n\\r]+|[^${x}]`,`ug`);return e.match(t)||[]}};var w=new class extends c{constructor(){super(...arguments),this.tokenize=E}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
2
|
+
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
3
|
+
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
|
+
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
5
|
+
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function T(e,t,n){return w.diff(e,t,n)}function E(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
6
|
+
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function D(e){return e==`.`||e==`!`||e==`?`}new class extends c{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(D(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends c{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends c{constructor(){super(...arguments),this.tokenize=E}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(O(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function O(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=O(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=O(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends c{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var k=Object.assign(t({__name:`CodeDiff`,props:{from:{},to:{},lang:{}},setup(t){let c=t,l=/class="shiki/,u=/class="line"/g;function d(e,t){let n=T(e.trim(),t.trim()),r=[],i=[],a=[];for(let e of n){let t=e.value.trimEnd().split(`
|
|
7
|
+
`);for(let n of t)e.added?(r.push(a.length),a.push(n)):(e.removed&&i.push(a.length),a.push(n))}return{added:r,removed:i,result:a.join(`
|
|
8
|
+
`)}}let f=a(()=>d(c.from,c.to));function p(e){let t=0;return e.replace(l,`class="shiki diff`).replace(u,e=>(t++,f.value.added.includes(t-1)?`class="line line-added"`:f.value.removed.includes(t-1)?`class="line line-removed"`:e))}let m=e();n(h);function h(){let e=o(m);e&&e.querySelector(`.line-added,.line-removed`)?.scrollIntoView()}return(e,n)=>{let a=s;return r(),i(a,{ref_key:`elRef`,ref:m,code:f.value.result,lang:t.lang,"transform-rendered":p,onLoaded:h},null,8,[`code`,`lang`])}}}),{__name:`CodeDiff`});export{k as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Et as t,Mt as n,Qt as r,S as i,T as a,W as o,Y as s,_ as c,dt as l,g as u,h as d,lt as f,m as p,p as m,s as h,tn as g}from"./vendor/json-editor-vue-ajxjng9j.js";import{t as _}from"./nbutton-n4jak7c4.js";import{t as v}from"./editor-gio3gzf5.js";import{t as y}from"./ncode-block-pepewqmk.js";function b(e){return typeof e==`string`?`'${e}'`:new x().serialize(e)}var x=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}();function S(e,t){return e===t||b(e)===b(t)}var C={key:0,relative:``,"n-code-block":``},w={flex:`~ wrap`,"w-full":``},T=[`onClick`],E={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},D=Object.assign(a({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(a){let b=a,x=t(b.codeSnippets[0]),S=v(),D=m(()=>x.value?.lang||`text`);return f(()=>{b.codeSnippets.includes(x.value)||(x.value=b.codeSnippets[0])}),(t,f)=>{let m=y,v=_;return a.codeSnippets.length?(o(),c(`div`,C,[p(`div`,w,[(o(!0),c(h,null,s(a.codeSnippets,(e,t)=>(o(),c(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:r(e===x.value?``:`border-b`),onClick:t=>x.value=e},[p(`div`,{class:r(e===x.value?``:`op30`),"font-mono":``},g(e.name),3)],10,T))),128)),f[1]||=p(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?(o(),c(h,{key:0},[e(m,{code:x.value.code,lang:D.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),p(`div`,E,[e(v,{icon:`carbon-copy`,onClick:f[0]||=e=>n(S)(x.value.code,a.eventType||`code-snippet-${x.value.name}`)},{default:l(()=>[...f[2]||=[i(` Copy `,-1)]]),_:1}),x.value?.docs?(o(),d(v,{key:0,to:x.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:l(()=>[...f[3]||=[i(` Docs `,-1)]]),_:1},8,[`to`])):u(``,!0)])],64)):u(``,!0)])):u(``,!0)}}}),{__name:`CodeSnippets`});export{S as n,b as r,D as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,C as t,Ct as n,Et as r,Mt as i,P as a,Q as o,Qt as s,S as c,T as l,V as u,W as d,X as f,Y as p,Z as m,_ as h,ct as g,dt as _,ft as v,g as y,h as b,m as x,p as S,s as C,tn as w,vt as T}from"./vendor/json-editor-vue-ajxjng9j.js";import{D as ee,b as te,c as E,i as D,n as O,w as ne}from"./utils-gsui1utc.js";import{et as k,r as A,t as re}from"./client-kw9rd8gy.js";import{t as j}from"./storage-options-h4ted7ut.js";import{t as M}from"./_plugin-vue_export-helper-d9irwgla.js";import{t as N}from"./nicon-oi9zv8qe.js";import{t as P}from"./nbutton-n4jak7c4.js";import{t as F}from"./ncard-nwvxjytu.js";import{t as I}from"./editor-gio3gzf5.js";import{t as L}from"./fuse-blwyun20.js";import{t as R}from"./ndrawer-rf7qwkr7.js";import{t as z}from"./composables-ioamscf4.js";import{t as ie}from"./ncheckbox-g0h4v30t.js";import{t as B}from"./filepath-item-n14cgzrq.js";import{t as V}from"./help-fab-bxbzpji6.js";import{t as H}from"./nnavbar-dxs3xl8m.js";import{t as U}from"./nicon-title-ckh1far6.js";import{t as W}from"./nsection-block-deo3d5ca.js";import{n as G}from"./dist-das2ggjj.js";import{t as K}from"./nbadge-gxsw3trl.js";import{n as q,t as J}from"./vendor/vis-kujfrgx6.js";import{t as Y}from"./nselect-tabs-e2nrw9h1.js";import{n as X,t as ae}from"./state-components-dngh0clc.js";var oe={},se={class:`markdown-body`};function ce(e,t){return d(),h(`div`,se,[...t[0]||=[x(`template`,null,[x(`div`,{class:`markdown-body`},[x(`h1`,null,`Components`),x(`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.`),x(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),x(`p`,null,[x(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var le=M(oe,[[`render`,ce]]),ue={"text-sm":``,"font-mono":``},Z=Object.assign(l({__name:`ComponentName`,props:{component:{}},setup(e){let t=e,n=S(()=>t.component.pascalName||G(t.component.name||t.component.__name||t.component.kebabName||``));return(e,t)=>(d(),h(`code`,ue,[t[0]||=x(`span`,{mr1:``,op20:``},`<`,-1),c(w(n.value),1),t[1]||=x(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),de={flex:`~ col gap1`,"items-start":``,"of-hidden":``},Q={flex:`~ gap2 items-center`,px3:``},fe={px3:``,pb2:``},pe={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},me={"text-sm":``},he={"text-primary":``},ge={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},_e={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ve={"text-sm":``},ye={"text-primary":``},be={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},$=Object.assign(l({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=S(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||``)),a=S(()=>n.component.filePath||n.component.file||n.component.__file||``),o=I();return(n,s)=>{let l=Z,u=P,m=K,g=B;return d(),h(`div`,de,[x(`div`,Q,[t(l,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(d(),b(u,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:_(()=>[...s[1]||=[c(` Docs `,-1)]]),_:1},8,[`to`])):y(``,!0),t(u,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:s[0]||=e=>i(o)(`<${r.value}></${r.value}>`,`component-name`)},{default:_(()=>[...s[2]||=[c(` Copy `,-1)]]),_:1}),e.component.global?(d(),b(m,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):y(``,!0)]),x(`div`,fe,[a.value?(d(),b(g,{key:0,filepath:a.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):y(``,!0)]),e.dependents?(d(),h(`div`,pe,[x(`div`,me,[x(`strong`,he,w(e.dependents.length),1),s[3]||=x(`span`,{op50:``},` references`,-1)]),e.dependents.length?(d(),h(`div`,ge,[(d(!0),h(C,null,p(e.dependents,e=>(d(),b(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):y(``,!0)])):y(``,!0),e.dependencies?(d(),h(`div`,_e,[x(`div`,ve,[x(`strong`,ye,w(e.dependencies.length),1),s[4]||=x(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(d(),h(`div`,be,[(d(!0),h(C,null,p(e.dependencies,e=>(d(),b(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):y(``,!0)])):y(``,!0),f(n.$slots,`default`)])}}}),{__name:`ComponentDetails`}),xe={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Se={relative:``,"h-full":``,"w-full":``},Ce={key:0,py4:``,pt3:``,flex:`~ col`},we={border:`t base`,p4:``},Te=Object.assign(l({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let a=e,o=n(),s=n(),l=re(),p=r(),m=ee(),v=ne(),b=te(),{componentsGraphShowNodeModules:w,componentsGraphShowGlobalComponents:E,componentsGraphShowPages:D,componentsGraphShowLayouts:O,componentsGraphShowWorkspace:A}=j(`ui`),M=n(),N=n(``),I=k(N,300),L=S(()=>{let e=a.relationships||[];if(M.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(M.value),[...t]}return e}),z=S(()=>{let e=L.value.map(e=>{let t=a.components.find(t=>t.filePath===e.id),n=m.value?.find(t=>t.file===e.id),r=b.value?.find(t=>t.file===e.id),i=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:r?`layout`:n?`page`:`unknown`;if(!w.value&&i===`lib`||!D.value&&i===`page`||!O.value&&i===`layout`||!A.value&&i===`user`&&v.value&&!e.id.startsWith(v.value.rootDir)||!E.value&&i===`global`)return null;let o=i===`layout`?`hexagon`:i===`page`?`square`:`dot`,s=I.value&&!e.id.toLowerCase().includes(I.value.toLowerCase());return{id:e.id,label:Y(e.id),group:i,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:l.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:r,relationship:e}}}).filter(e=>!!e),t=L.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new q(e),edges:t}}),B=S(()=>p.value?.component?(a.relationships?.find(e=>e.id===p.value?.component?.filePath)?.deps)?.map(e=>a.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),V=S(()=>p.value?.component?(a.relationships?.filter(e=>e.deps.includes(p.value.component.filePath)))?.map(e=>a.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);u(()=>{let e=new J(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],n=z.value.nodes.get(t).extra;p.value=n}),g(z,()=>{e.setData(z.value)})});function U(){p.value=void 0}let W=/.*\/components\//,G=/\.vue$/,K=/\/index$/;function Y(e){let t=a.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(K,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=p.value?.relationship,p.value=void 0}return(e,n)=>{let r=ie,a=H,l=F,u=$,m=P,g=R;return d(),h(C,null,[t(a,{ref_key:`navbar`,ref:s,search:N.value,"onUpdate:search":n[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:_(()=>[x(`div`,xe,[t(r,{modelValue:i(D),"onUpdate:modelValue":n[0]||=e=>T(D)?D.value=e:null,n:`primary sm`},{default:_(()=>[...n[8]||=[x(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),t(r,{modelValue:i(O),"onUpdate:modelValue":n[1]||=e=>T(O)?O.value=e:null,n:`primary sm`},{default:_(()=>[...n[9]||=[x(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),t(r,{modelValue:i(A),"onUpdate:modelValue":n[2]||=e=>T(A)?A.value=e:null,n:`primary sm`},{default:_(()=>[...n[10]||=[x(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),t(r,{modelValue:i(w),"onUpdate:modelValue":n[3]||=e=>T(w)?w.value=e:null,n:`primary sm`},{default:_(()=>[...n[11]||=[x(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),t(r,{modelValue:i(E),"onUpdate:modelValue":n[4]||=e=>T(E)?E.value=e:null,n:`primary sm`},{default:_(()=>[...n[12]||=[x(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(d(),h(`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=>M.value=void 0},[...n[13]||=[c(` Clear filter `,-1),x(`div`,{"i-carbon-close":``},null,-1)]])):y(``,!0),n[14]||=x(`div`,{"flex-auto":``},null,-1),f(e.$slots,`default`)]),_:3},8,[`search`]),x(`div`,Se,[x(`div`,{ref_key:`container`,ref:o,"h-full":``,"w-full":``},null,512),t(l,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:_(()=>[...n[15]||=[x(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),x(`div`,{op50:``},` Component `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),x(`div`,{op50:``},` Global Component `),x(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),x(`div`,{op50:``},` Page `),x(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[x(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),x(`div`,{op50:``},` Layout `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),x(`div`,{op50:``},` Library Component `),x(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),x(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),t(g,{"model-value":!!(p.value&&p.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:U},{default:_(()=>[p.value&&p.value.component?(d(),h(`div`,Ce,[t(u,{component:p.value.component,dependencies:B.value,dependents:V.value},null,8,[`component`,`dependencies`,`dependents`]),x(`div`,we,[t(m,{n:`primary solid`,onClick:n[7]||=e=>X()},{default:_(()=>[...n[16]||=[c(` Filter to this component `,-1)]]),_:1})])])):y(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),Ee={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},De={key:0,"ml--1":``,"text-primary":``},Oe=Object.assign(l({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=S(()=>n.component.filePath||n.component.file||n.component.__file||``);return(n,i)=>{let a=Z,o=$,c=m(`VDropdown`),l=K,u=B;return d(),h(`div`,Ee,[t(c,null,{popper:_(()=>[t(o,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:_(()=>[x(`button`,{"hover:text-primary":``,class:s(e.dependents&&e.dependents.length===0?`op50`:``)},[t(a,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(d(),h(`sup`,De,` x`+w(e.dependents?.length),1)):y(``,!0),e.component.global?(d(),b(l,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):y(``,!0),f(n.$slots,`default`),r.value?(d(),b(u,{key:2,filepath:r.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):y(``,!0)])}}}),{__name:`ComponentItem`}),ke={flex:`~ gap-2 items-center`},Ae={pl4:``},je=Object.assign(l({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let r=e,o=n(``),s=n(`all`),c=S(()=>{let e=r.components.map(e=>O(e,r.relationships));return s.value===`using`?e.filter(e=>e.dependents?.length):s.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),l={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`},u=S(()=>new L(c.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),m=S(()=>{let e=[],t=new Map,n=[],r=[],i={user:0,lib:0,builtin:0,runtime:0};return(o.value?u.value.search(o.value).map(e=>e.item):c.value).forEach(a=>{let o=a.component;if(o.filePath&&E(o.filePath)){let e=D(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=l?.[o.pascalName],n.push(a),i.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(a),i.lib++)}else o.global&&!o.filePath?(r.push(a),i.runtime++):(e.push(a),i.user++)}),{count:i,user:e,builtin:n,lib:t,runtime:r}});return(e,n)=>{let r=N,c=Y,l=H,u=Oe,g=W,v=U;return d(),h(C,null,[t(l,{search:o.value,"onUpdate:search":n[1]||=e=>o.value=e,pb3:``},{actions:_(()=>[f(e.$slots,`default`)]),default:_(()=>[x(`div`,ke,[t(r,{icon:`carbon-filter`,op50:``}),t(c,{modelValue:s.value,"onUpdate:modelValue":n[0]||=e=>s.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`]),m.value.user.length?(d(),b(g,{key:0,icon:`carbon-nominal`,text:`User components`,open:m.value.user.length<=i(50),description:`Total components: ${m.value.count.user}`},{default:_(()=>[(d(!0),h(C,null,p(m.value.user,e=>(d(),b(u,a({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):y(``,!0),m.value.runtime.length?(d(),b(g,{key:1,icon:`carbon-load-balancer-global`,open:m.value.runtime.length<=i(50),text:`Runtime components`,description:`Total components: ${m.value.count.runtime}`},{default:_(()=>[(d(!0),h(C,null,p(m.value.runtime,e=>(d(),b(u,a({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):y(``,!0),m.value.builtin.length?(d(),b(g,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${m.value.count.builtin}`},{default:_(()=>[(d(!0),h(C,null,p(m.value.builtin,e=>(d(),b(u,a({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):y(``,!0),m.value.lib.size?(d(),b(g,{key:3,open:m.value.count.lib<=i(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${m.value.count.lib} components from ${m.value.lib.size} packages`},{default:_(()=>[(d(!0),h(C,null,p(m.value.lib.entries(),([e,n])=>(d(),h(`div`,{key:e,"ml-2":``},[t(v,{text:`${e} (${n.length})`,py1:``,op50:``},null,8,[`text`]),x(`div`,Ae,[(d(!0),h(C,null,p(n,e=>(d(),b(u,a({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):y(``,!0)],64)}}}),{__name:`ComponentsList`}),Me={relative:``,"h-full":``,"of-auto":``},Ne={"flex-none":``,flex:`~ gap3`},Pe=l({__name:`components`,setup(n){z({icon:`i-carbon-assembly-cluster`,title:`Components`,order:2});let r=A(),a=ae(),s=X(),{componentsView:c}=j(`ui`);function l(){r.value?.inspector?.enable()}function u(){c.value=c.value===`list`?`graph`:`list`}return(n,f)=>{let p=P,m=le,g=V,S=o(`tooltip`);return d(),h(C,null,[x(`div`,Me,[(d(),b(e(i(c)===`list`?je:Te),{components:i(a),relationships:i(s)},{default:_(()=>[x(`div`,Ne,[v(t(p,{"text-lg":``,border:!1,icon:i(c)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:u},null,8,[`icon`]),[[S,`Toggle View`,void 0,{"bottom-end":!0}]]),i(r)?.inspector?.isAvailable?v((d(),b(p,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:l},null,512)),[[S,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):y(``,!0)])]),_:1},8,[`components`,`relationships`]))]),t(g,null,{default:_(()=>[t(m)]),_:1})],64)}}});export{Pe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Mt as t,Qt as n,S as r,T as i,W as a,Y as o,Z as s,_ as c,dt as l,g as u,h as d,m as f,p,s as m,tn as h}from"./vendor/json-editor-vue-ajxjng9j.js";import{t as g}from"./nicon-oi9zv8qe.js";import{t as _}from"./nbutton-n4jak7c4.js";import{n as v,t as y}from"./editor-gio3gzf5.js";import{t as b}from"./filepath-item-n14cgzrq.js";import{t as x}from"./constants-g2z8m4rs.js";import{t as S}from"./dist-das2ggjj.js";import{t as C}from"./nmarkdown-k6ubrkxy.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(i({__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(i){let I=i,L=y(),R=v(),z=p(()=>I.item.as||I.item.name),B=p(()=>{let e=z.value;return I.isDirective&&(e[0]!==`v`&&(e=`v${e}`),e=S(e)),e}),V=p(()=>I.metadata?.injectionsUsageMap?.get(z.value)?.count||0),H=p(()=>(I.metadata?.injectionsUsageMap?.get(z.value)?.moduleIds||[]).filter(e=>!e.endsWith(`?macro=true`))),U=p(()=>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(p,v)=>{let y=g,x=C,S=_,W=b,G=s(`VDropdown`);return a(),d(G,{disabled:!I.metadata},{popper:l(()=>[f(`div`,O,[f(`div`,k,[i.item.meta?.description?(a(),d(x,{key:0,tag:`div`,pb3:``,"text-sm":``,markdown:i.item.meta.description},null,8,[`markdown`])):u(``,!0),f(`div`,A,[e(S,{icon:`carbon-copy`,onClick:v[0]||=e=>t(L)(B.value,`imports-name`)},{default:l(()=>[...v[2]||=[r(` Copy `,-1)]]),_:1}),i.filepath?(a(),d(S,{key:0,icon:`carbon-code`,onClick:v[1]||=e=>i.filepath&&t(R)(i.filepath)},{default:l(()=>[...v[3]||=[r(` Source `,-1)]]),_:1})):u(``,!0),U.value?(a(),d(S,{key:1,icon:`carbon-catalog`,to:U.value,target:`_blank`},{default:l(()=>[...v[4]||=[r(` Docs `,-1)]]),_:1},8,[`to`])):u(``,!0)])]),f(`div`,j,[V.value?(a(),c(m,{key:0},[f(`div`,M,[v[5]||=f(`span`,{op50:``},`It has been referenced `,-1),f(`strong`,N,h(V.value),1),v[6]||=f(`span`,{op50:``},` times by:`,-1)]),f(`div`,P,[(a(!0),c(m,null,o(H.value,e=>(a(),d(W,{key:e,filepath:e},null,8,[`filepath`]))),128))])],64)):(a(),c(`div`,F,` Not in use via auto import. `))])])]),default:l(()=>[f(`button`,{"hover:text-primary":``,class:n([i.metadata&&!V.value?`op30 hover:op100`:``,i.classes])},[f(`code`,w,[r(h(z.value)+` `,1),V.value&&i.counter?(a(),c(`sup`,T,`x`+h(V.value),1)):u(``,!0)]),i.isDirective?(a(),c(`sup`,E,[f(`abbr`,D,[e(y,{icon:`tabler:hexagon-letter-d`})])])):u(``,!0)],2)]),_:1},8,[`disabled`])}}}),{__name:`ComposableItem`});export{I as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e,h as t,i as n,v as r,y as i}from"./nuxt-hhee6z5x.js";import{A as a,At as o,Ct as s,E as c,I as l,R as u,gt as d,j as f,lt as p,vt as m,z as h}from"./vendor/json-editor-vue-ajxjng9j.js";var g=new Set([`link`,`style`,`script`,`noscript`]),_=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),v=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),y=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),b=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),x=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),S=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),C=new Set([`theme-color`,`google-site-verification`,`og`,`article`,`book`,`profile`,`twitter`,`author`]),w={critical:-8,high:-1,low:2};function T(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function E(e){let n=new t;for(let t in e||{})n.hook(t,e[t]);return n}function D(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}var O=/^(?:viewport|description|keywords|robots)$/,k=[`name`,`property`,`http-equiv`];function A(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.indexOf(`:`,t+1);return C.has(e.slice(t+1,n===-1?e.length:n))}function j(e){let{props:t,tag:n,key:r}=e;if(b.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of k){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!O.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:_.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function M(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return t;let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function N(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=N(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=T(n),a=i?void 0:N(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var P=/[\s"'<>/=\x00-\x1F\x7F]/;function F(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e)if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function I(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=v.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if(T(r))continue;let i=r.startsWith(`data-`),a=n&&!x.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||P.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=F(r,s);else if(x.has(r))if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=t.type=n,e[r]=JSON.stringify(s))}else e[r]=s;else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function L(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),N(e,n)}function R(e,t){let n=I({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&g.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function z(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function B(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=L(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0)if(Array.isArray(r))for(let e of r)z(n,R(t,e));else z(n,R(t,r))}return n}var ee=/</g,V=/<\/script/g,H=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,U=()=>100;function W(e){for(let t in e)return!1;return!0}var G=/^tags:|:render/;function K(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function q(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function J(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(H)}function Y(e){let t=!1;for(let n of e.tags.sort(H)){let r=n._d||M(n);if(!r)continue;let i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(S.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&A(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function X(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function Z(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(!(!y.has(i)||W(a)&&!r&&!n.textContent)&&!(i===`meta`&&!a.content&&!a[`http-equiv`]&&!a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(ee,`\\u003C`):typeof e==`string`?e.replace(V,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=j(n)}e[t++]=n}}return e.length=t,e}function Q(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??U,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};K(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&D(e,`entries:resolve`,{entries:a,...r})),K(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a)if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||W(t.options)))a=t._precomputedTags;else{if(a=B(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!W(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};D(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=j(r),r._d||(r._h=M(r))}t._tags=a}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&G.test(e)){q(r.tags);break}let o=Y(r);return X(r,e),J(r,o),D(e,`tags:beforeResolve`,r),D(e,`tags:resolve`,r),D(e,`tags:afterResolve`,r),Z(r.tags)}var $=`usehead`;function te(){if(a()){let e=f($);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function ne(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide($,e)}}.install}var re=Object.assign((e,t)=>m(t)?o(t):t,{_static:!0});function ie(e,t={}){let n=t.head||te();return n.ssr?n.push(e||{},t):ae(n,e,t)}function ae(e,t,n={}){let r=d();if(r&&!r.active)return{patch(){},dispose(){},_i:-1};let i=s(!1);if(n.onRendered&&r){let e=n.onRendered;n={...n,onRendered:t=>r.run(()=>e(t))}}let a;return p(()=>{let r=i.value?{}:N(t,re);a?a.patch(r):a=e.push(r,n)}),c()&&(u(()=>{a.dispose()}),h(()=>{i.value=!0}),l(()=>{i.value=!1})),a}var oe=i({docsBase:e,reporters:r});function se(e){let t=e||n();return t.ssrContext?.head||t.runWithContext(()=>{if(a()){let e=f(`usehead`);if(!e)throw oe.NUXT_E6001();return e}})}function ce(e,t={}){return ie(e,{head:t.head||se(t.nuxt),...t})}export{A as a,D as c,w as d,M as i,E as l,ne as n,I as o,j as r,Q as s,ce as t,v as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,C as t,Ct as n,F as r,H as i,Mt as a,S as o,T as s,V as c,W as l,_ as u,dt as d,h as f,lt as p,m,p as h,tn as g,xt as _}from"./vendor/json-editor-vue-ajxjng9j.js";import{at as v,it as y}from"./ready-j6igpruf.js";import{L as b,d as x,h as S,l as C,s as w,t as T,u as E}from"./client-kw9rd8gy.js";import{t as D}from"./ncard-nwvxjytu.js";import{r as O}from"./state-tabs-fe58vmvu.js";import{t as k}from"./npanel-grids-l34v8x7x.js";import{t as A}from"./auth-required-panel-pb5dyado.js";import{t as j}from"./composables-ioamscf4.js";import{t as M}from"./launch-page-4gmg3dre.js";var N=new Map,P=Object.assign(s({__name:`IframeView`,props:{tab:{}},setup(e){let t=e,a=T(),o=n(),s=h(()=>t.tab.name),d=n(),f=_(b(o));c(()=>{let e=t.tab.view,n=e.persistent!==!1,i=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(N.get(s.value)&&n)d.value=N.get(s.value),d.value.style.visibility=`visible`;else{d.value=document.createElement(`iframe`),d.value.setAttribute(`allow`,i.join(`; `)),d.value.setAttribute(`aria-label`,`Nuxt Devtools`),n&&N.set(s.value,d.value),d.value.src=e.src;try{d.value.style.opacity=`0.01`,d.value.onload=()=>{v(),m(),d.value.style.opacity=`1`}}catch{d.value.style.opacity=`1`}document.body.appendChild(d.value),r(y)}setTimeout(m,100)}),p(y),p(m),p(v),i(()=>{d.value&&(d.value.style.visibility=`hidden`)});function m(){if(!(!d.value||!d.value.contentWindow))try{let e=d.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,a.value===`dark`),e?.classList.toggle(`light`,a.value===`dark`),new MutationObserver(()=>{a.value=d.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let g=w();function v(){if(!(!d.value||!d.value.contentWindow))try{d.value.contentWindow.__NUXT_DEVTOOLS__=g.value}catch{}}function y(){d.value&&Object.assign(d.value.style,{position:`fixed`,left:`${f.left}px`,top:`${f.top}px`,width:`${f.width}px`,height:`${f.height}px`,outline:`none`})}return(e,t)=>(l(),u(`div`,{ref_key:`anchor`,ref:o,"h-full":``,"w-full":``},null,512))}}),{__name:`IframeView`}),F={flex:`~ col gap2`,mxa:``,"items-center":``},I={"text-xl":``},L={"text-rose":``},R=s({__name:`custom-[name]`,props:{name:{}},setup(n){let r=n;j({layout:`full`});let i=y(),s=v(),u=h(()=>r.name??i.params.name),p=O(),_=h(()=>p.value.find(e=>e.name===u.value));return c(()=>{_.value?_.value.requireAuth&&!E.value&&x():setTimeout(()=>{_.value||s.push(`/modules/overview`)},2e3)}),(n,r)=>{let i=k,s=A,c=P,p=M,h=D;return _.value?_.value.requireAuth&&!a(E)?(l(),f(s,{key:1})):_.value.view.type===`iframe`?(l(),f(c,{key:2,tab:_.value},null,8,[`tab`])):_.value.view.type===`vnode`?(l(),f(e(_.value.view.vnode),{key:3})):_.value.view.type===`launch`?(l(),f(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]||=async e=>a(S).customTabAction(await a(C)(),_.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(l(),f(i,{key:5},{default:d(()=>[t(h,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:d(()=>[o(` Unknown tab type `+g(_.value.view),1)]),_:1})]),_:1})):(l(),f(i,{key:0},{default:d(()=>[m(`div`,F,[r[3]||=m(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),m(`p`,I,[r[1]||=o(` Tab `,-1),m(`code`,L,g(u.value),1),r[2]||=o(` not found `,-1)]),r[4]||=m(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),r[5]||=m(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{R as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Q as e,T as t,W as n,ft as r,h as i}from"./vendor/json-editor-vue-ajxjng9j.js";import{t as a}from"./nbutton-n4jak7c4.js";import{t as o}from"./state-schema-dl4a0tzs.js";var s=Object.assign(t({__name:`DataSchemaButton`,props:{getter:{type:Function}},setup(t){let s=o();return(o,c)=>{let l=a,u=e(`tooltip`);return r((n(),i(l,{title:`Generate Data Schema`,icon:`carbon:container-services`,border:!1,onClick:c[0]||=e=>s.value=t.getter()},null,512)),[[u,`Generate Data Schema`]])}}}),{__name:`DataSchemaButton`});export{s as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C as e,Ct as t,Mt as n,T as r,W as i,Y as a,_ as o,ct as s,dt as c,g as l,h as u,m as d,p as f,s as p,tn as m,u as h}from"./vendor/json-editor-vue-ajxjng9j.js";import{D as g}from"./client-kw9rd8gy.js";import{t as _}from"./nbutton-n4jak7c4.js";import{t as v}from"./editor-gio3gzf5.js";import{t as y}from"./state-schema-dl4a0tzs.js";import{t as b}from"./nselect-bihfcl5d.js";import{t as x}from"./nswitch-omy4wnlb.js";import{t as S}from"./ndropdown-hei8kmpv.js";import{t as C}from"./ncode-block-pepewqmk.js";import{t as w}from"./ndrawer-rf7qwkr7.js";import{n as T,t as E}from"./vendor/quicktype-core-m8x9xlg1.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(r({__name:`DataSchemaDrawer`,setup(r){let T=y(),E=t(0),N=t(`TypeScript`),P=f(()=>O.all.find(e=>e.displayName===N.value)),F=t(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(t,r)=>{let s=b,f=_,g=x,v=S,y=C,E=w;return P.value?(i(),u(h,{key:0,to:`body`},[e(E,{"model-value":!!n(T)?.input,"auto-close":``,"max-w-screen":``,"w-2xl":``,"n-code-block":``,onClose:r[2]||=e=>T.value=null},{default:c(()=>[d(`div`,k,[r[3]||=d(`p`,{"mr-2":``},` Schema `,-1),e(s,{modelValue:N.value,"onUpdate:modelValue":r[0]||=e=>N.value=e,n:`xs primary`},{default:c(()=>[(i(!0),o(p,null,a(n(O.all),e=>(i(),o(`option`,{key:e.displayName},m(e.displayName),1))),128))]),_:1},8,[`modelValue`]),F.value?.length?(i(),u(v,{key:0,n:`sm lime`},{trigger:c(({click:t})=>[e(f,{icon:`carbon-settings`,"h-full":``,onClick:e=>t()},null,8,[`onClick`]),F.value?(i(),o(`span`,A,m(F.value.length),1)):l(``,!0)]),default:c(()=>[d(`div`,j,[(i(!0),o(p,null,a(F.value,(e,t)=>(i(),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:c(()=>[d(`span`,M,m(e.description),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):l(``,!0),r[4]||=d(`div`,{"flex-auto":``},null,-1),e(f,{icon:`carbon-copy`,"mr-6":``,"h-full":``,onClick:r[1]||=e=>z()})]),n(I)?(i(),u(y,{key:0,lang:L.value,code:n(I)},null,8,[`lang`,`code`])):l(``,!0)]),_:1},8,[`model-value`])])):l(``,!0)}}}),{__name:`DataSchemaDrawer`});export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as e,Ct as t,Mt as n,Qt as r,S as i,T as a,W as o,X as s,Y as c,_ as l,dt as u,en as d,g as f,h as p,m,p as h,s as g,tn as _}from"./vendor/json-editor-vue-ajxjng9j.js";import{T as v}from"./utils-gsui1utc.js";import{t as y}from"./nbutton-n4jak7c4.js";import{t as b}from"./ncode-block-pepewqmk.js";import{t as x}from"./composables-ioamscf4.js";import{t as S}from"./ncheckbox-g0h4v30t.js";import{t as C}from"./filepath-item-n14cgzrq.js";import{t as w}from"./nsection-block-deo3d5ca.js";import{t as T}from"./nbadge-gxsw3trl.js";import{t as E}from"./color-abaog8vc.js";var D=Object.assign(a({__name:`NBadgeHashed`,props:{text:{}},setup(e){let t=e,n=h(()=>({color:E(t.text,50,60),background:E(t.text,50,60,.05)}));return(t,r)=>(o(),p(T,{style:d(n.value)},{default:u(()=>[i(_(e.text),1),s(t.$slots,`default`)]),_:3},8,[`style`]))}}),{__name:`NBadgeHashed`}),O={flex:`~ gap-2 col`,mb4:``},k={flex:`~ gap-3 items-center`},A={key:0,flex:`~ gap-1`,"items-center":``,p1:``,border:`~ base rounded`},j={"max-w-full":``,"of-auto":``},M={"text-center":``,op50:``},N={flex:`~`,px4:``},P={key:0,op50:``},F={px2:``,"text-center":``},I={"of-auto":``},L=Object.assign(a({__name:`DebugModuleMutationRecords`,props:{moduleMutationRecords:{}},setup(n){let i=n,a=/^[a-z]:[\\/]/i;function s(e){return e.startsWith(`/`)||e.match(a)}let d=t(!1),v=t(!1),x=t(!1),w=t(!1),T=t(!1),E=t(``),L=h(()=>{let e=i.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`)),x.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!==`{}`)),E.value&&(e=e.filter(e=>e.name===E.value)),e});return(t,i)=>{let a=S,h=D,R=y,z=C,B=b;return o(),l(g,null,[m(`div`,O,[m(`div`,k,[e(a,{modelValue:d.value,"onUpdate:modelValue":i[0]||=e=>d.value=e,n:`primary`},{default:u(()=>[...i[6]||=[m(`span`,{"ws-nowrap":``,op75:``},`Builtin Modules`,-1)]]),_:1},8,[`modelValue`]),e(a,{modelValue:v.value,"onUpdate:modelValue":i[1]||=e=>v.value=e,n:`primary`},{default:u(()=>[...i[7]||=[m(`span`,{"ws-nowrap":``,op75:``},`Templates`,-1)]]),_:1},8,[`modelValue`]),e(a,{modelValue:x.value,"onUpdate:modelValue":i[2]||=e=>x.value=e,n:`primary`},{default:u(()=>[...i[8]||=[m(`span`,{"ws-nowrap":``,op75:``},`Transpile`,-1)]]),_:1},8,[`modelValue`]),e(a,{modelValue:w.value,"onUpdate:modelValue":i[3]||=e=>w.value=e,n:`primary`},{default:u(()=>[...i[9]||=[m(`span`,{"ws-nowrap":``,op75:``},`Plugins`,-1)]]),_:1},8,[`modelValue`]),e(a,{modelValue:T.value,"onUpdate:modelValue":i[4]||=e=>T.value=e,n:`primary`},{default:u(()=>[...i[10]||=[m(`span`,{"ws-nowrap":``,op75:``},`Empty Initial`,-1)]]),_:1},8,[`modelValue`]),E.value?(o(),l(`div`,A,[e(h,{"font-mono":``,text:E.value},null,8,[`text`]),e(R,{icon:`carbon-close`,border:!1,onClick:i[5]||=e=>E.value=``})])):f(``,!0)])]),m(`table`,j,[i[11]||=m(`thead`,{border:`b base`},[m(`tr`,null,[m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Index `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Module `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Key Path `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Method `),m(`th`,{"ws-nowrap":``,p1:``,"text-center":``,"font-bold":``},` Value `)])],-1),m(`tbody`,null,[(o(!0),l(g,null,c(L.value,t=>(o(),l(`tr`,{key:n.moduleMutationRecords.indexOf(t),border:`b dashed transparent hover:base`},[m(`td`,M,[m(`div`,null,_(n.moduleMutationRecords.indexOf(t)+1),1)]),m(`td`,null,[t.name&&s(t.name)?(o(),p(z,{key:0,filepath:t.name},null,8,[`filepath`])):(o(),p(h,{key:1,role:`button`,"font-mono":``,text:t.name,onClick:e=>E.value=t.name},null,8,[`text`,`onClick`]))]),m(`td`,null,[m(`code`,N,[(o(!0),l(g,null,c(t.keys,(e,n)=>(o(),l(g,{key:n},[m(`span`,null,_(e),1),n<t.keys.length-1?(o(),l(`span`,P,` . `)):f(``,!0)],64))),128))])]),m(`td`,F,[e(h,{"font-mono":``,text:t.method||`=`,class:r(t.method?``:`saturate-0`)},null,8,[`text`,`class`])]),m(`td`,I,[e(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`}),R={key:0,p6:``},z={key:1},B=a({__name:`debug`,setup(t){x({icon:`i-carbon-debug`,title:`Debug`,category:`advanced`});let r=v();return(t,i)=>{let a=w;return n(r)?(o(),l(`div`,z,[e(a,{icon:`carbon-container-image-push-pull`,text:`Module Mutation Records`,description:`Records of module mutations to nuxt options`},{default:u(()=>[e(L,{"module-mutation-records":n(r).moduleMutationRecords||[]},null,8,[`module-mutation-records`])]),_:1})])):(o(),l(`div`,R,[...i[0]||=[m(`div`,null,`No Debug Context Found`,-1),m(`div`,null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)]]))}}});export{B as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{W as e,X as t,_ as n,m as r}from"./vendor/json-editor-vue-ajxjng9j.js";import{t as i}from"./_plugin-vue_export-helper-d9irwgla.js";var a={},o={"h-full":``,"of-auto":``,"n-panel-grids":``},s={"h-full":``,"bg-base":``};function c(i,a){return e(),n(`div`,o,[r(`div`,s,[t(i.$slots,`default`)])])}var l=i(a,[[`render`,c]]);export{l as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=/\d/,t=[`-`,`_`,`/`,`.`];function n(t=``){if(!e.test(t))return t!==t.toLowerCase()}function r(e,r){let i=r??t,a=[];if(!e||typeof e!=`string`)return a;let o=``,s,c;for(let t of e){let e=i.includes(t);if(e===!0){a.push(o),o=``,s=void 0;continue}let r=n(t);if(c===!1){if(s===!1&&r===!0){a.push(o),o=t,s=r;continue}if(s===!0&&r===!1&&o.length>1){let e=o.at(-1);a.push(o.slice(0,Math.max(0,o.length-1))),o=e+t,s=r;continue}}o+=t,s=r,c=e}return a.push(o),a}function i(e){return e?e[0].toUpperCase()+e.slice(1):``}function a(e,t){return e?(Array.isArray(e)?e:r(e)).map(e=>i(t?.normalize?e.toLowerCase():e)).join(``):``}function o(e,t){return e?(Array.isArray(e)?e:r(e)).map(e=>e.toLowerCase()).join(t??`-`):``}export{a as n,o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
String.fromCharCode;var e=/#/g,t=/&/g,n=/\//g,r=/=/g,i=/\?/g,a=/\+/g,o=/%5e/gi,s=/%60/gi,c=/%7c/gi,l=/%20/gi,u=/%2f/gi,d=/%252f/gi;function f(e){return encodeURI(``+e).replace(c,`|`)}function p(r){return f(typeof r==`string`?r:JSON.stringify(r)).replace(a,`%2B`).replace(l,`+`).replace(e,`%23`).replace(t,`%26`).replace(s,"`").replace(o,`^`).replace(n,`%2F`)}function m(e){return p(e).replace(r,`%3D`)}function h(n){return f(n).replace(e,`%23`).replace(i,`%3F`).replace(d,`%2F`).replace(t,`%26`).replace(a,`%2B`)}function g(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function _(e){return g(e.replace(u,`%252F`))}function v(e){return g(e.replace(a,` `))}function y(e){return g(e.replace(a,` `))}function b(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=v(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=y(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function x(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${m(e)}=${p(t)}`).join(`&`):`${m(e)}=${p(t)}`:m(e)}function S(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>x(t,e[t])).filter(Boolean).join(`&`)}var C=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,w=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,T=/^([/\\]\s*){2,}[^/\\]/,E=/^[\s\0]*(blob|data|javascript|vbscript):$/i,D=/\/$|\/\?|\/#/,O=/^\.?\//;function k(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?C.test(e):w.test(e)||(t.acceptRelative?T.test(e):!1)}function A(e){return!!e&&E.test(e)}function j(e=``,t){return t?D.test(e):e.endsWith(`/`)}function M(e=``,t){if(!t)return(j(e)?e.slice(0,-1):e)||`/`;if(!j(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function N(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(j(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function P(e,t){if(L(t)||k(e))return e;let n=M(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return z(n,e)}function F(e,t){if(L(t))return e;let n=M(t);if(!e.startsWith(n))return e;let r=e[n.length];return r&&r!==`/`&&r!==`?`?e:`/`+e.slice(n.length).replace(/^\/+/,``)}function I(e,t){let n=U(e);return n.search=S({...b(n.search),...t}),G(n)}function L(e){return!e||e===`/`}function R(e){return e&&e!==`/`}function z(e,...t){let n=e||``;for(let e of t.filter(e=>R(e)))if(n){let t=e.replace(O,``);n=N(n)+t}else n=e;return n}function B(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&k(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function V(e,t){return g(M(e))===g(M(t))}var H=Symbol.for(`ufo:protocolRelative`);function U(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!k(e,{acceptRelative:!0}))return t?U(t+e):W(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=W(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[H]:!r}}function W(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function G(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[H]?(e.protocol||``)+`//`:``)+i+a+t+n+r}export{A as a,b as c,I as d,N as f,V as i,U as l,M as m,h as n,B as o,F as p,k as r,z as s,_ as t,P as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-f96lzs6p.js";import{d as t,u as n}from"./dist-ekw95yvx.js";var r=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,a=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){s(e);return}return t}function s(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function c(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!a.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(r.test(e)||i.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,o)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var l=class extends Error{constructor(e,t){super(e,t),this.name=`FetchError`,t?.cause&&!this.cause&&(this.cause=t.cause)}};function u(e){let t=e.error?.message||e.error?.toString()||``,n=e.request?.method||e.options?.method||`GET`,r=e.request?.url||String(e.request)||`/`,i=new l(`${`[${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(i,t,{get(){return e[t]}});for(let[t,n]of[[`data`,`_data`],[`status`,`status`],[`statusCode`,`status`],[`statusText`,`statusText`],[`statusMessage`,`statusText`]])Object.defineProperty(i,t,{get(){return e.response&&e.response[n]}});return i}var d=new Set(Object.freeze([`PATCH`,`POST`,`PUT`,`DELETE`]));function f(e=`GET`){return d.has(e.toUpperCase())}function p(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 m=new Set([`image/svg`,`application/xml`,`application/xhtml`,`application/html`]),h=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function g(e=``){if(!e)return`json`;let t=e.split(`;`).shift()||``;return h.test(t)?`json`:t===`text/event-stream`?`stream`:m.has(t)||t.startsWith(`text/`)?`text`:`blob`}function _(e,t,n,r){let i=v(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 v(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 y(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}var b=new Set([408,409,425,429,500,502,503,504]),x=new Set([101,204,205,304]);function S(e={}){let{fetch:r=globalThis.fetch,Headers:i=globalThis.Headers,AbortController:a=globalThis.AbortController}=e;async function o(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:+!f(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):b.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)),s(e.request,{...e.options,retry:t-1})}}let n=u(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,s),n}let s=async function(s,l={}){let u={request:s,options:_(s,l,e.defaults,i),response:void 0,error:void 0};if(u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&(await y(u,u.options.onRequest),u.options.headers instanceof i||(u.options.headers=new i(u.options.headers||{}))),typeof u.request==`string`&&(u.options.baseURL&&(u.request=n(u.request,u.options.baseURL)),u.options.query&&(u.request=t(u.request,u.options.query),delete u.options.query),`query`in u.options&&delete u.options.query,`params`in u.options&&delete u.options.params),u.options.body&&f(u.options.method))if(p(u.options.body)){let e=u.options.headers.get(`content-type`);typeof u.options.body!=`string`&&(u.options.body=e===`application/x-www-form-urlencoded`?new URLSearchParams(u.options.body).toString():JSON.stringify(u.options.body)),e||u.options.headers.set(`content-type`,`application/json`),u.options.headers.has(`accept`)||u.options.headers.set(`accept`,`application/json`)}else(`pipeTo`in u.options.body&&typeof u.options.body.pipeTo==`function`||typeof u.options.body.pipe==`function`)&&(`duplex`in u.options||(u.options.duplex=`half`));let d;if(!u.options.signal&&u.options.timeout){let e=new a;d=setTimeout(()=>{let t=Error(`[TimeoutError]: The operation was aborted due to timeout`);t.name=`TimeoutError`,t.code=23,e.abort(t)},u.options.timeout),u.options.signal=e.signal}try{u.response=await r(u.request,u.options)}catch(e){return u.error=e,u.options.onRequestError&&await y(u,u.options.onRequestError),await o(u)}finally{d&&clearTimeout(d)}if((u.response.body||u.response._bodyInit)&&!x.has(u.response.status)&&u.options.method!==`HEAD`){let e=(u.options.parseResponse?`json`:u.options.responseType)||g(u.response.headers.get(`content-type`)||``);switch(e){case`json`:{let e=await u.response.text(),t=u.options.parseResponse||c;u.response._data=t(e);break}case`stream`:u.response._data=u.response.body||u.response._bodyInit;break;default:u.response._data=await u.response[e]()}}return u.options.onResponse&&await y(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await y(u,u.options.onResponseError),await o(u)):u.response},l=async function(e,t){return(await s(e,t))._data};return l.raw=s,l.native=(...e)=>r(...e),l.create=(t={},n={})=>S({...e,...n,defaults:{...e.defaults,...n.defaults,...t}}),l}var C=e({$fetch:()=>k,AbortController:()=>D,Headers:()=>E,createFetch:()=>S,fetch:()=>T,ofetch:()=>O}),w=(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`)})(),T=w.fetch?(...e)=>w.fetch(...e):()=>Promise.reject(Error(`[ofetch] global.fetch is not supported!`)),E=w.Headers,D=w.AbortController,O=S({fetch:T,Headers:E,AbortController:D}),k=O;export{C as n,k as t};
|