@vitejs/devtools-vite 0.0.0-alpha.6 → 0.0.0-alpha.8
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/{dirs-Z7VQHyIZ.js → dirs-K_XnRVOr.js} +1 -1
- package/dist/dirs.js +1 -1
- package/dist/index.d.ts +30 -8
- package/dist/index.js +76 -54
- package/dist/nitro.json +2 -2
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/0mOko9PX.js +1 -0
- package/dist/public/_nuxt/17ealR8P.js +1 -0
- package/dist/public/_nuxt/2OALqkc2.js +1 -0
- package/dist/public/_nuxt/AuXMpmu_.js +1 -0
- package/dist/public/_nuxt/B-MkobAt.js +1 -0
- package/dist/public/_nuxt/B7i9KC-T.js +1 -0
- package/dist/public/_nuxt/BQPGP7j8.js +1 -0
- package/dist/public/_nuxt/BRMjfH79.js +1 -0
- package/dist/public/_nuxt/B_mZ82Ef.js +1 -0
- package/dist/public/_nuxt/BqsmMM9I.js +2 -0
- package/dist/public/_nuxt/C8mRFS2c.js +1 -0
- package/dist/public/_nuxt/{IrMnfQaU.js → CAhTQkqV.js} +1 -1
- package/dist/public/_nuxt/CIEMjxLP.js +1 -0
- package/dist/public/_nuxt/CIa3yLEd.js +1 -0
- package/dist/public/_nuxt/CbzAqNxs.js +1 -0
- package/dist/public/_nuxt/CeqjGqGg.js +1 -0
- package/dist/public/_nuxt/CiYp-ND6.js +1 -0
- package/dist/public/_nuxt/CqhxNBIt.js +1 -0
- package/dist/public/_nuxt/Cql2HFZJ.js +1 -0
- package/dist/public/_nuxt/D-ZnEyqr.js +1 -0
- package/dist/public/_nuxt/D5wipTtw.js +1 -0
- package/dist/public/_nuxt/DBFcewx9.js +33 -0
- package/dist/public/_nuxt/DFpihbc1.js +11 -0
- package/dist/public/_nuxt/{BQ-NBLhA.js → DL1ysgP5.js} +1 -1
- package/dist/public/_nuxt/DQtLZa7C.js +1 -0
- package/dist/public/_nuxt/DY1DGGP1.js +1 -0
- package/dist/public/_nuxt/Dck9PP97.js +1 -0
- package/dist/public/_nuxt/DdKbKDl1.js +1 -0
- package/dist/public/_nuxt/Jdu9jmuG.js +1 -0
- package/dist/public/_nuxt/{BdGMcGSQ.js → SO3ppn9m.js} +1 -1
- package/dist/public/_nuxt/X7aOo9pb.js +1 -0
- package/dist/public/_nuxt/_h9oVyD9.js +1 -0
- package/dist/public/_nuxt/_hSlj5r4.js +1 -0
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/0bc7b332-016f-481f-9a2f-2d547f80d352.json +1 -0
- package/dist/public/_nuxt/diff.worker-DCsgdfuV.js +10 -0
- package/dist/public/_nuxt/entry.C2vn6Ofp.css +1 -0
- package/dist/public/_nuxt/error-404.CCdr3eE4.css +1 -0
- package/dist/public/_nuxt/error-500.D-vBsHK_.css +1 -0
- package/dist/public/_nuxt/qsYzBPmV.js +1 -0
- package/dist/public/_nuxt/zFCtWS_S.js +1 -0
- package/dist/public/index.html +1 -1
- package/package.json +14 -14
- package/dist/public/_nuxt/B2fBtupD.js +0 -1
- package/dist/public/_nuxt/B4wxy85L.js +0 -1
- package/dist/public/_nuxt/BBRXmiYk.js +0 -1
- package/dist/public/_nuxt/BFrgWt5v.js +0 -1
- package/dist/public/_nuxt/BJ1En-qd.js +0 -1
- package/dist/public/_nuxt/BL9XEsp7.js +0 -1
- package/dist/public/_nuxt/BNZPks8A.js +0 -1
- package/dist/public/_nuxt/BO9hKuA-.js +0 -1
- package/dist/public/_nuxt/BhYsQoJN.js +0 -1
- package/dist/public/_nuxt/Bjr51Ks8.js +0 -1
- package/dist/public/_nuxt/BsPDwkF1.js +0 -1
- package/dist/public/_nuxt/C-pOSrl5.js +0 -1
- package/dist/public/_nuxt/C2X_oPur.js +0 -1
- package/dist/public/_nuxt/CQNn9qP2.js +0 -1
- package/dist/public/_nuxt/CRvrEAK3.js +0 -1
- package/dist/public/_nuxt/CS-6x7S3.js +0 -33
- package/dist/public/_nuxt/CS0-317H.js +0 -1
- package/dist/public/_nuxt/CWCLHkLi.js +0 -1
- package/dist/public/_nuxt/C_113ylp.js +0 -11
- package/dist/public/_nuxt/Ci9NHG69.js +0 -1
- package/dist/public/_nuxt/Ckf7xQdg.js +0 -1
- package/dist/public/_nuxt/DQCLStiA.js +0 -1
- package/dist/public/_nuxt/DSjlpmm-.js +0 -1
- package/dist/public/_nuxt/DUOY-ITr.js +0 -1
- package/dist/public/_nuxt/DZeYNBxL.js +0 -1
- package/dist/public/_nuxt/D_Sk_I-u.js +0 -1
- package/dist/public/_nuxt/DoCLzHNP.js +0 -1
- package/dist/public/_nuxt/KKO2iSg5.js +0 -2
- package/dist/public/_nuxt/Z5tyTJaP.js +0 -1
- package/dist/public/_nuxt/builds/meta/be0bb935-d565-4624-9bbc-88aa98997368.json +0 -1
- package/dist/public/_nuxt/diff.worker-BXxwMoGc.js +0 -10
- package/dist/public/_nuxt/entry.BnzQeNUH.css +0 -1
- package/dist/public/_nuxt/error-404.yUUAZDjV.css +0 -1
- package/dist/public/_nuxt/error-500.BHZzZRS-.css +0 -1
- package/dist/public/_nuxt/m0y8FcT0.js +0 -1
- package/dist/public/_nuxt/tS5wJZMm.js +0 -1
- package/dist/public/_nuxt/z9pSC1xM.js +0 -1
- /package/dist/public/_nuxt/{l47FwQA-.js → C_nQe8Pd.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return Array.isArray?Array.isArray(e):d(e)===`[object Array]`}var t=1/0;function n(e){if(typeof e==`string`)return e;let n=e+``;return n==`0`&&1/e==-t?`-0`:n}function r(e){return e==null?``:n(e)}function i(e){return typeof e==`string`}function a(e){return typeof e==`number`}function o(e){return e===!0||e===!1||c(e)&&d(e)==`[object Boolean]`}function s(e){return typeof e==`object`}function c(e){return s(e)&&e!==null}function l(e){return e!=null}function u(e){return!e.trim().length}function d(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var f=`Incorrect 'index' type`,p=e=>`Invalid value for key ${e}`,m=e=>`Pattern length exceeds max of ${e}.`,h=e=>`Missing ${e} property in key`,g=e=>`Property 'weight' in key '${e}' must be a positive integer`,_=Object.prototype.hasOwnProperty,v=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=y(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function y(t){let n=null,r=null,a=null,o=1,s=null;if(i(t)||e(t))a=t,n=b(t),r=x(t);else{if(!_.call(t,`name`))throw Error(h(`name`));let e=t.name;if(a=e,_.call(t,`weight`)&&(o=t.weight,o<=0))throw Error(g(e));n=b(e),r=x(e),s=t.getFn}return{path:n,id:r,weight:o,src:a,getFn:s}}function b(t){return e(t)?t:t.split(`.`)}function x(t){return e(t)?t.join(`.`):t}function S(t,n){let s=[],c=!1,u=(t,n,d)=>{if(l(t))if(!n[d])s.push(t);else{let f=t[n[d]];if(!l(f))return;if(d===n.length-1&&(i(f)||a(f)||o(f)))s.push(r(f));else if(e(f)){c=!0;for(let e=0,t=f.length;e<t;e+=1)u(f[e],n,d+1)}else n.length&&u(f,n,d+1)}};return u(t,i(n)?n.split(`.`):n,0),c?s:s[0]}var C={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},w={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},ee={location:0,threshold:.6,distance:100},te={useExtendedSearch:!1,getFn:S,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},T={...w,...C,...ee,...te},E=/[^ ]+/g;function ne(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(E).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var D=class{constructor({getFn:e=T.getFn,fieldNormWeight:t=T.fieldNormWeight}={}){this.norm=ne(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,i(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();i(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!l(e)||u(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((n,a)=>{let o=n.getFn?n.getFn(t):this.getFn(t,n.path);if(l(o)){if(e(o)){let t=[],n=[{nestedArrIndex:-1,value:o}];for(;n.length;){let{nestedArrIndex:r,value:a}=n.pop();if(l(a))if(i(a)&&!u(a)){let e={v:a,i:r,n:this.norm.get(a)};t.push(e)}else e(a)&&a.forEach((e,t)=>{n.push({nestedArrIndex:t,value:e})})}r.$[a]=t}else if(i(o)&&!u(o)){let e={v:o,n:this.norm.get(o)};r.$[a]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}};function O(e,t,{getFn:n=T.getFn,fieldNormWeight:r=T.fieldNormWeight}={}){let i=new D({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(y)),i.setSources(t),i.create(),i}function re(e,{getFn:t=T.getFn,fieldNormWeight:n=T.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new D({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function k(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=T.distance,ignoreLocation:a=T.ignoreLocation}={}){let o=t/e.length;if(a)return o;let s=Math.abs(r-n);return i?o+s/i:s?1:o}function A(e=[],t=T.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var j=32;function M(e,t,n,{location:r=T.location,distance:i=T.distance,threshold:a=T.threshold,findAllMatches:o=T.findAllMatches,minMatchCharLength:s=T.minMatchCharLength,includeMatches:c=T.includeMatches,ignoreLocation:l=T.ignoreLocation}={}){if(t.length>j)throw Error(m(j));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,h=f,g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,h))>-1;){let e=k(t,{currentLocation:v,expectedLocation:f,distance:i,ignoreLocation:l});if(p=Math.min(e,p),h=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}h=-1;let y=[],b=1,x=u+d,S=1<<u-1;for(let r=0;r<u;r+=1){let a=0,s=x;for(;a<s;)k(t,{errors:r,currentLocation:f+s,expectedLocation:f,distance:i,ignoreLocation:l})<=p?a=s:x=s,s=Math.floor((x-a)/2+a);x=s;let c=Math.max(1,f-s+1),m=o?d:Math.min(f+s,d)+u,v=Array(m+2);v[m+1]=(1<<r)-1;for(let a=m;a>=c;--a){let o=a-1,s=n[e.charAt(o)];if(g&&(_[o]=+!!s),v[a]=(v[a+1]<<1|1)&s,r&&(v[a]|=(y[a+1]|y[a])<<1|1|y[a+1]),v[a]&S&&(b=k(t,{errors:r,currentLocation:o,expectedLocation:f,distance:i,ignoreLocation:l}),b<=p)){if(p=b,h=o,h<=f)break;c=Math.max(1,2*f-h)}}if(k(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>p)break;y=v}let C={isMatch:h>=0,score:Math.max(.001,b)};if(g){let e=A(_,s);e.length?c&&(C.indices=e):C.isMatch=!1}return C}function ie(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var N=String.prototype.normalize?(e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``)):(e=>e),P=class{constructor(e,{location:t=T.location,threshold:n=T.threshold,distance:r=T.distance,includeMatches:i=T.includeMatches,findAllMatches:a=T.findAllMatches,minMatchCharLength:o=T.minMatchCharLength,isCaseSensitive:s=T.isCaseSensitive,ignoreDiacritics:c=T.ignoreDiacritics,ignoreLocation:l=T.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?N(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:ie(e),startIndex:t})},d=this.pattern.length;if(d>j){let e=0,t=d%j,n=d-t;for(;e<n;)u(this.pattern.substr(e,j),e),e+=j;if(t){let e=d-j;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?N(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=M(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&(u=[...u,...g])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=u),p}},F=class{constructor(e){this.pattern=e}static isMultiMatch(e){return I(e,this.multiRegex)}static isSingleMatch(e){return I(e,this.singleRegex)}search(){}};function I(e,t){let n=e.match(t);return n?n[1]:null}var ae=class extends F{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},oe=class extends F{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},se=class extends F{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},ce=class extends F{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},L=class extends F{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},R=class extends F{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},z=class extends F{constructor(e,{location:t=T.location,threshold:n=T.threshold,distance:r=T.distance,includeMatches:i=T.includeMatches,findAllMatches:a=T.findAllMatches,minMatchCharLength:o=T.minMatchCharLength,isCaseSensitive:s=T.isCaseSensitive,ignoreDiacritics:c=T.ignoreDiacritics,ignoreLocation:l=T.ignoreLocation}={}){super(e),this._bitapSearch=new P(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},B=class extends F{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:a?0:1,indices:r}}},V=[ae,B,se,ce,R,L,oe,z],H=V.length,U=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,W=`|`;function le(e,t={}){return e.split(W).map(e=>{let n=e.trim().split(U).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<H;){let e=V[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<H;){let e=V[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var ue=new Set([z.type,B.type]),de=class{constructor(e,{isCaseSensitive:t=T.isCaseSensitive,ignoreDiacritics:n=T.ignoreDiacritics,includeMatches:r=T.includeMatches,minMatchCharLength:i=T.minMatchCharLength,ignoreLocation:a=T.ignoreLocation,findAllMatches:o=T.findAllMatches,location:s=T.location,threshold:c=T.threshold,distance:l=T.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?N(e):e,this.pattern=e,this.query=le(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?N(e):e;let a=0,o=[],s=0;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:c,indices:l,score:u}=r.search(e);if(c){if(a+=1,s+=u,n){let e=r.constructor.type;ue.has(e)?o=[...o,...l]:o.push(l)}}else{s=0,a=0,o.length=0;break}}if(a){let e={isMatch:!0,score:s/a};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}},G=[];function fe(...e){G.push(...e)}function K(e,t){for(let n=0,r=G.length;n<r;n+=1){let r=G[n];if(r.condition(e,t))return new r(e,t)}return new P(e,t)}var q={AND:`$and`,OR:`$or`},J={PATH:`$path`,PATTERN:`$val`},Y=e=>!!(e[q.AND]||e[q.OR]),pe=e=>!!e[J.PATH],me=t=>!e(t)&&s(t)&&!Y(t),X=e=>({[q.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Z(t,n,{auto:r=!0}={}){let a=t=>{let o=Object.keys(t),s=pe(t);if(!s&&o.length>1&&!Y(t))return a(X(t));if(me(t)){let e=s?t[J.PATH]:o[0],a=s?t[J.PATTERN]:t[e];if(!i(a))throw Error(p(e));let c={keyId:x(e),pattern:a};return r&&(c.searcher=K(a,n)),c}let c={children:[],operator:o[0]};return o.forEach(n=>{let r=t[n];e(r)&&r.forEach(e=>{c.children.push(a(e))})}),c};return Y(t)||(t=X(t)),a(t)}function Q(e,{ignoreFieldNorm:t=T.ignoreFieldNorm}){e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),e.score=n})}function he(e,t){let n=e.matches;t.matches=[],l(n)&&n.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function ge(e,t){t.score=e.score}function _e(e,t,{includeMatches:n=T.includeMatches,includeScore:r=T.includeScore}={}){let i=[];return n&&i.push(he),r&&i.push(ge),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var $=class{constructor(e,t={},n){this.options={...T,...t},this.options.useExtendedSearch,this._keyStore=new v(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof D))throw Error(f);this._myIndex=t||O(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let n=0,r=this._docs.length;n<r;n+=1){let i=this._docs[n];e(i,n)&&(this.removeAt(n),--n,--r,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:n,includeScore:r,shouldSort:o,sortFn:s,ignoreFieldNorm:c}=this.options,l=i(e)?i(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return Q(l,{ignoreFieldNorm:c}),o&&l.sort(s),a(t)&&t>-1&&(l=l.slice(0,t)),_e(l,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){let t=K(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:e,i:n,n:i})=>{if(!l(e))return;let{isMatch:a,score:o,indices:s}=t.searchIn(e);a&&r.push({item:e,idx:n,matches:[{score:o,value:e,norm:i,indices:s}]})}),r}_searchLogical(e){let t=Z(e,this.options),n=(e,t,r)=>{if(!e.children){let{keyId:n,searcher:i}=e,a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return a&&a.length?[{idx:r,item:t,matches:a}]:[]}let i=[];for(let a=0,o=e.children.length;a<o;a+=1){let o=e.children[a],s=n(o,t,r);if(s.length)i.push(...s);else if(e.operator===q.AND)return[]}return i},r=this._myIndex.records,i={},a=[];return r.forEach(({$:e,i:r})=>{if(l(e)){let o=n(t,e,r);o.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},a.push(i[r])),o.forEach(({matches:e})=>{i[r].matches.push(...e)}))}}),a}_searchObjectList(e){let t=K(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:e,i:r})=>{if(!l(e))return;let a=[];n.forEach((n,r)=>{a.push(...this._findMatches({key:n,value:e[r],searcher:t}))}),a.length&&i.push({idx:r,item:e,matches:a})}),i}_findMatches({key:t,value:n,searcher:r}){if(!l(n))return[];let i=[];if(e(n))n.forEach(({v:e,i:n,n:a})=>{if(!l(e))return;let{isMatch:o,score:s,indices:c}=r.searchIn(e);o&&i.push({score:s,key:t,value:e,idx:n,norm:a,indices:c})});else{let{v:e,n:a}=n,{isMatch:o,score:s,indices:c}=r.searchIn(e);o&&i.push({score:s,key:t,value:e,norm:a,indices:c})}return i}};$.version=`7.1.0`,$.createIndex=O,$.parseIndex=re,$.config=T,$.parseQuery=Z,fe(de);export{$ as t};
|
package/dist/public/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-vite/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><script type="importmap">{"imports":{"#entry":"/.devtools-vite/_nuxt/DFpihbc1.js"}}</script><title>Vite DevTools</title><link rel="stylesheet" href="/.devtools-vite/_nuxt/entry.C2vn6Ofp.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/.devtools-vite/_nuxt/DFpihbc1.js"><link rel="prefetch" as="style" crossorigin href="/.devtools-vite/_nuxt/error-404.CCdr3eE4.css"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/D-ZnEyqr.js"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/Jdu9jmuG.js"><link rel="prefetch" as="style" crossorigin href="/.devtools-vite/_nuxt/error-500.D-vBsHK_.css"><link rel="prefetch" as="script" crossorigin href="/.devtools-vite/_nuxt/AuXMpmu_.js"><meta name="description" content="DevTools for Vite"><meta property="og:title" content="Vite DevTools"><meta property="og:description" content="DevTools for Vite"><link rel="icon" type="image/svg+xml" href="/favicon.svg"><script type="module" src="/.devtools-vite/_nuxt/DFpihbc1.js" crossorigin></script><script id="unhead:payload" type="application/json">{"title":"Vite DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1761900707644,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/.devtools-vite/",buildId:"0bc7b332-016f-481f-9a2f-2d547f80d352",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/devtools-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-alpha.
|
|
4
|
+
"version": "0.0.0-alpha.8",
|
|
5
5
|
"description": "DevTools for Vite (work in progress)",
|
|
6
6
|
"author": "VoidZero Inc.",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@floating-ui/dom": "^1.7.4",
|
|
33
|
-
"@pnpm/read-project-manifest": "^1001.1.
|
|
34
|
-
"@rolldown/debug": "^1.0.0-beta.
|
|
33
|
+
"@pnpm/read-project-manifest": "^1001.1.4",
|
|
34
|
+
"@rolldown/debug": "^1.0.0-beta.45",
|
|
35
35
|
"ansis": "^4.2.0",
|
|
36
36
|
"birpc": "^2.6.1",
|
|
37
37
|
"cac": "^6.7.14",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"mlly": "^1.8.0",
|
|
43
43
|
"mrmime": "^2.0.1",
|
|
44
44
|
"ohash": "^2.0.11",
|
|
45
|
-
"p-limit": "^7.
|
|
45
|
+
"p-limit": "^7.2.0",
|
|
46
46
|
"pathe": "^2.0.3",
|
|
47
|
-
"publint": "^0.3.
|
|
47
|
+
"publint": "^0.3.15",
|
|
48
48
|
"sirv": "^3.0.2",
|
|
49
49
|
"split2": "^4.2.0",
|
|
50
50
|
"structured-clone-es": "^1.0.0",
|
|
@@ -53,18 +53,18 @@
|
|
|
53
53
|
"unstorage": "^1.17.1",
|
|
54
54
|
"vue-virtual-scroller": "^2.0.0-beta.8",
|
|
55
55
|
"ws": "^8.18.3",
|
|
56
|
-
"@vitejs/devtools-
|
|
57
|
-
"@vitejs/devtools-
|
|
56
|
+
"@vitejs/devtools-rpc": "0.0.0-alpha.8",
|
|
57
|
+
"@vitejs/devtools-kit": "0.0.0-alpha.8"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/codemirror": "^5.60.
|
|
60
|
+
"@types/codemirror": "^5.60.17",
|
|
61
61
|
"@types/diff": "^8.0.0",
|
|
62
62
|
"@types/split2": "^4.2.3",
|
|
63
63
|
"@types/stream-json": "^1.7.8",
|
|
64
|
-
"@unocss/nuxt": "^66.5.
|
|
65
|
-
"@vueuse/components": "^
|
|
66
|
-
"@vueuse/nuxt": "^
|
|
67
|
-
"@vueuse/router": "^
|
|
64
|
+
"@unocss/nuxt": "^66.5.4",
|
|
65
|
+
"@vueuse/components": "^14.0.0",
|
|
66
|
+
"@vueuse/nuxt": "^14.0.0",
|
|
67
|
+
"@vueuse/router": "^14.0.0",
|
|
68
68
|
"codemirror": "^5.65.20",
|
|
69
69
|
"codemirror-theme-vars": "^0.1.2",
|
|
70
70
|
"comlink": "^4.4.2",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"floating-vue": "^5.2.2",
|
|
75
75
|
"fuse.js": "^7.1.0",
|
|
76
76
|
"idb-keyval": "^6.2.2",
|
|
77
|
-
"nanovis": "^0.
|
|
77
|
+
"nanovis": "^1.0.0",
|
|
78
78
|
"splitpanes": "^4.0.4",
|
|
79
79
|
"stream-json": "^1.9.1",
|
|
80
80
|
"theme-vitesse": "^1.0.0",
|
|
81
|
-
"tsdown": "^0.15.
|
|
81
|
+
"tsdown": "^0.15.12",
|
|
82
82
|
"vite-hot-client": "^2.1.0"
|
|
83
83
|
},
|
|
84
84
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{It as e,bt as t,ft as n,gt as r,ht as i,jt as a,pt as o,sn as s,un as c,vt as l}from"#entry";import{t as u}from"./Ci9NHG69.js";var d={"text-xs":``,op75:``,"ml-0.4":``},f={key:0,"text-xs":``,ml1:``,"op-fade":``,border:`l base`,pl1:``},p=1024,m=t({__name:`FileSizeBadge`,props:{bytes:{},colorize:{type:Boolean,default:!0},digits:{default:2},percent:{type:Boolean,default:!0},total:{},icon:{},percentRatio:{default:.5}},setup(t){let m=t,h=p**2,g=[[80*p,`color-scale-neutral`],[500*p,`color-scale-low`],[1*h,`color-scale-medium`],[10*h,`color-scale-high`],[20*h,`color-scale-critical`]],_=n(()=>{if(!m.colorize)return g[0];let e=m.bytes||0;for(let[t,n]of g)if(e<t)return n;return g[g.length-1]?.[1]}),v=n(()=>m.total?(m.bytes||0)*100/m.total:0),y=n(()=>u(m.bytes||0,m.digits));return(n,u)=>t.bytes?(a(),r(`div`,{key:0,class:s([_.value,`px-0.4em py-0.2em font-mono line-height-none bg-gray:5 dark:bg-gray:4 flex items-center`])},[t.icon?(a(),r(`div`,{key:0,class:s([t.icon,`mr-1`])},null,2)):i(``,!0),l(` `+c(y.value[0]),1),o(`span`,d,c(y.value[1]),1),e(n.$slots,`after`,{},()=>[t.percent&&v.value>t.percentRatio?(a(),r(`span`,f,c(+v.value.toFixed(1))+`%`,1)):i(``,!0)])],2)):i(``,!0)}}),h=Object.assign(m,{__name:`DisplayFileSizeBadge`});export{h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ft as e,Tt as t,Vt as n,X as r,bt as i,gt as a,ht as o,jt as s,ln as c,mt as l,on as u,pt as d,qt as f,sn as p,ut as m,yt as h,zt as g}from"#entry";import{t as _}from"./Bjr51Ks8.js";import{n as v,t as y}from"./BO9hKuA-.js";var b=[`open`],x={"font-mono":``},S={"font-mono":``},C=i({__name:`TreeNode`,props:t({node:{},icon:{default:`i-catppuccin:folder icon-catppuccin`},iconOpen:{default:`i-catppuccin:folder-open icon-catppuccin`},link:{type:[String,Boolean]},linkQueryKey:{default:`module`},padding:{default:0},open:{type:Boolean}},{open:{type:Boolean,required:!1,default:!0},openModifiers:{}}),emits:t([`select`],[`update:open`]),setup(t,{emit:i}){let C=t,T=i,E=n(t,`open`),D=r(),O=window.location;function k(e){C.link||T(`select`,e)}return(n,r)=>{let i=y,C=w,T=v;return s(),a(`details`,{open:E.value,onToggle:r[0]||=e=>E.value=e.target?.open},[d(`summary`,{"cursor-default":``,"select-none":``,"text-sm":``,truncate:``,style:c({paddingLeft:`${t.padding+.5}rem`}),flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active `},[d(`div`,{class:p([`i-ph-caret-right-duotone transition op50`,E.value?`rotate-90`:``])},null,2),d(`div`,{class:p(E.value&&t.iconOpen||t.icon),"inline-block":``,"vertical-text-bottom":``},null,2),d(`div`,x,[h(i,{path:t.node.name||``},null,8,[`path`])])],4),E.value?(s(),a(m,{key:0},[(s(!0),a(m,null,e(Object.entries(t.node.children),e=>(s(),l(C,{key:e[0],node:e[1],link:t.link,padding:t.padding+1,"link-query-key":t.linkQueryKey,onSelect:k},null,8,[`node`,`link`,`padding`,`link-query-key`]))),128)),(s(!0),a(m,null,e(t.node.items,e=>(s(),l(g(t.link?u(_):`div`),{key:e.full,to:t.link?typeof t.link==`string`?t.link:{path:u(D).path,query:{...u(D).query,[t.linkQueryKey]:e.full},hash:u(O).hash}:void 0,"text-sm":``,"ws-nowrap":``,flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active`,style:c({paddingLeft:`${t.padding+2.7}rem`}),onClick:t=>k(e)},{default:f(()=>[h(T,{filename:e.full},null,8,[`filename`]),d(`div`,S,[h(i,{path:e.path.split(`/`).pop()||``},null,8,[`path`])])]),_:2},1032,[`to`,`style`,`onClick`]))),128))],64)):o(``,!0)],40,b)}}}),w=Object.assign(C,{__name:`DisplayTreeNode`});export{w as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,bt as t,jt as n,mt as r,zt as i}from"#entry";import{r as a}from"./CQNn9qP2.js";var o=t({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(t){let o=t,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let t=o.compact?c:s;for(let n of t)if(o.name.startsWith(n))return o.compact?e(`span`,o.name.slice(n.length)):e(`span`,[e(`span`,{class:`op50`},n),e(`span`,o.name.slice(n.length))]);let n=o.name.split(`:`);return n.length>1?e(`span`,[e(`span`,{style:{color:a(n[0])}},`${n[0]}:`),e(`span`,n.slice(1).join(`:`))]):e(`span`,o.name)}return(e,t)=>(n(),r(i(l)))}}),s=Object.assign(o,{__name:`DisplayPluginName`});export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ft as e,bt as t,ft as n,gt as r,ht as i,jt as a,mt as o,on as s,pt as c,qt as l,sn as u,un as d,ut as f,vt as p,yt as m}from"#entry";import{t as h}from"./Bjr51Ks8.js";import"./Ci9NHG69.js";import"./CQNn9qP2.js";import"./BO9hKuA-.js";import{r as g,t as _}from"./BQ-NBLhA.js";import{n as v,t as y}from"./DQCLStiA.js";import{t as b}from"./DZeYNBxL.js";var x={flex:`~ col gap-2`,p6:``},S={flex:`~ gap-2`},C={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_160px_2fr] gap-2 items-center`},w={"font-mono":``},T=[`datetime`],E={key:4},D={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_1fr] gap-2 items-center`},O={flex:`~ gap-2`},k=t({__name:`index`,props:{session:{}},setup(t){let k=t,A=n(()=>[{title:`Build ID`,value:k.session.id,icon:`i-ph-hash-duotone`},{title:`Created At`,value:new Date(k.session.meta.timestamp),icon:`i-ph-clock-duotone`},{title:`Build Duration`,value:k.session.buildDuration,icon:`i-ph-timer-duotone`,type:`duration`},{title:`Directory`,value:k.session.meta.cwd,icon:`i-ph-folder-duotone`},{title:`Total Modules`,value:k.session.modulesList.length,icon:`i-ph-files-duotone`},{title:`Plugins`,value:k.session.meta.plugins.length,icon:`i-ph-plugs-duotone`},{title:`Platform`,value:k.session.meta.platform,icon:`i-ph-cpu-duotone`,type:`badge`},{title:`Format`,value:k.session.meta.format,icon:`i-ph-file-duotone`,type:`badge`}]);return(n,j)=>{let M=h,N=g,P=b,F=y,I=_;return a(),r(`div`,x,[c(`div`,S,[m(M,{"btn-action":``,to:{path:`/`}},{default:l(()=>[...j[0]||=[c(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),p(` Re-select Session `,-1)]]),_:1})]),j[1]||=c(`div`,{op50:``,"mt-10":``},` Meta Info `,-1),c(`div`,C,[(a(!0),r(f,null,e(A.value,e=>(a(),r(f,{key:e.title},[c(`div`,{class:u(e.icon)},null,2),c(`div`,null,d(e.title),1),c(`div`,w,[e.value instanceof Date?(a(),r(`time`,{key:0,datetime:e.value.toISOString()},d(e.value.toLocaleString()),9,T)):e.type===`badge`?(a(),o(N,{key:1,text:String(e.value),py1:``},null,8,[`text`])):e.type===`duration`?(a(),o(P,{key:2,duration:+e.value},null,8,[`duration`])):typeof e.value==`number`?(a(),o(F,{key:3,number:e.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(a(),r(`span`,E,d(e.value),1))])],64))),128))]),j[2]||=c(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),c(`div`,D,[(a(!0),r(f,null,e(k.session.meta.inputs,e=>(a(),r(f,{key:e},[m(N,{text:e.name||``},null,8,[`text`]),m(I,{id:e.filename||``,session:t.session,link:!0},null,8,[`id`,`session`])],64))),128))]),j[3]||=c(`div`,{op50:``,"mt-4":``},` Views `,-1),c(`div`,O,[(a(!0),r(f,null,e(s(v),e=>(a(),r(f,{key:e.to},[e.category===`session`?(a(),o(M,{key:0,"btn-action":``,to:{path:e.to},flex:`~ col`,"min-w-40":``,p4:``},{default:l(()=>[c(`div`,{class:u(e.icon),"text-2xl":``},null,2),p(` `+d(e.title),1)]),_:2},1032,[`to`])):i(``,!0)],64))),128))])])}}});export{k as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{At as e,Dt as t,Ft as n,Gt as r,It as i,Ut as a,Wt as o,bt as s,en as c,ft as l,gt as u,ht as d,jt as f,nn as p,on as m,pt as h,t as g,un as _,ut as v}from"#entry";import{t as y}from"./Ci9NHG69.js";import{t as b}from"./D_Sk_I-u.js";import{a as x}from"./CS0-317H.js";var S={flex:`~ gap-1 items-center wrap`},C={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},w=[`onClick`],T=s({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:t}){let r=e,i=t,a=l(()=>{let e=[],t=r.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,t)=>(f(),u(`div`,S,[(f(!0),u(v,null,n(a.value,(e,t)=>(f(),u(v,{key:e.id},[t>0?(f(),u(`div`,C)):d(``,!0),h(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>i(`select`,e)},[h(`span`,null,_(e.text||e.id),1)],8,w)],64))),128))]))}}),E=Object.assign(T,{__name:`ChartNavBreadcrumb`}),D={class:`px4`,flex:`~ col gap2`},O=s({__name:`Treemap`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:t}){let n=e,o=t,s=a(`el`);return r(()=>s.value?.append(n.graph.el)),(t,n)=>(f(),u(`div`,D,[i(t.$slots,`default`,{selected:e.selected,options:e.graph.options,onSelect:n[0]||=e=>o(`select`,e)},()=>[n[1]||=h(`div`,{border:`b base`,py2:``,"min-h-10":``},null,-1)]),h(`div`,{ref_key:`el`,ref:s},null,512)]))}}),k=Object.assign(O,{__name:`ChartTreemap`});function A(n){let{data:r,nameKey:i,sizeKey:a,rootText:s,nodeType:u,graphOptions:d,onUpdate:f}=n,h=p(void 0),_=p(void 0),v=c(void 0),S=p(void 0),C,w=l(()=>{let e=m(r),t=new Map,n=0,o={id:`~root`,text:s,size:0,sizeSelf:0,children:[]};if(!e?.length)return{map:t,root:o,maxDepth:n};let c=[];c.unshift(()=>{o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=y(o.size).join(` `),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function l(e,r,i,a,o){if(t.has(r))return t.get(r);o>n&&(n=o);let s={id:r,text:i,size:0,sizeSelf:0,children:[],meta:{...e,path:i,type:`folder`},parent:a};return t.set(r,s),a.children.push(s),c.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=y(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:y(t).join(` `),children:[],meta:{...e,path:``,type:u},parent:s}),s.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),s}function d(e){let n=e[i].split(`/`).filter(Boolean),r=o,s=``,c=0;n.forEach((o,d)=>{if(s+=(s?`/`:``)+o,c++,d===n.length-1){let n={id:e[i],text:o,size:e[a],sizeSelf:e[a],subtext:y(e[a]).join(` `),children:[],meta:{...e,path:o,type:u}};r.children.push(n),t.set(e[i],n)}else r=l(e,s,o,r,c)})}return e.forEach(d),c.forEach(e=>e()),{map:t,root:o,maxDepth:n}}),T=l(()=>({animate:b.value.chartAnimation,palette:{stroke:g.value?`#222`:`#555`,fg:g.value?`#fff`:`#000`,bg:g.value?`#111`:`#fff`},getColor:x(w.value.root,g.value?.8:.9,g.value?1:1.1),getSubtext:e=>e.subtext,...d}));function E(e,t){v.value=e?.meta,e?.children.length||(e=e?.parent),S.value?.select(e,t)}function D(){C?.(),_.value=w.value.root,f?.(),t(()=>{let e=v.value&&w.value.map.get(v.value[i])||null;e&&E(e,!1)}),C=()=>{S.value?.dispose(),S.value=void 0}}return o(()=>[w.value,T.value],()=>{D()},{deep:!0,immediate:!1}),t(()=>{D()}),e(()=>{C?.()}),{tree:w,graph:S,chartOptions:T,nodeHover:h,nodeSelected:_,selectedNode:v,selectNode:E,buildGraph:D}}export{k as n,E as r,A as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{gt as e,jt as t,k as n,pt as r,q as i,un as a}from"#entry";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d={__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:500},statusMessage:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(n){let d=n;return i({title:`${d.statusCode} - ${d.statusMessage} | ${d.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(i,d)=>(t(),e(`div`,o,[r(`div`,s,[r(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:a(n.statusCode)},null,8,c),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:a(n.statusMessage)},null,8,l),r(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:a(n.description)},null,8,u)])]))}},f=n(d,[[`__scopeId`,`data-v-289a8b59`]]);export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,Et as t,Ft as n,T as r,X as i,bt as a,en as o,ft as s,gt as c,jt as l,kt as u,mt as d,pt as f,qt as p,sn as m,un as h,ut as g,vt as _,yt as v}from"#entry";import{t as y}from"./Bjr51Ks8.js";import{t as b}from"./DSjlpmm-.js";import{t as x}from"./Ci9NHG69.js";var S=a({__name:`ComparisonMetric`,props:{current:{},previous:{}},setup(e){let t=e,n=s(()=>t.previous===t.current),r=s(()=>Math.abs((t.current-t.previous)/t.previous*100).toFixed(n.value?0:2)),i=s(()=>n.value?``:t.current>t.previous?`+`:`-`),a=s(()=>n.value?`text-gray-500`:t.current>t.previous?`text-green-500`:`text-red-500`);return(e,t)=>(l(),c(`span`,{"text-4":``,"mt-1":``,"font-mono":``,class:m(a.value)},h(i.value)+h(r.value)+`% `,3))}}),C=Object.assign(S,{__name:`DisplayComparisonMetric`}),w=[`title`],T={flex:`~ gap-2`,"items-center":``},E={key:0},D={"font-semibold":``,"text-5":``,"font-mono":``},O={"font-semibold":``,"text-4":``,"font-mono":``},k={key:1},A={"font-semibold":``,"text-5":``,"font-mono":``},j=a({__name:`MetricCard`,props:{name:{},description:{},icon:{},current:{},previous:{},format:{}},setup(e){let t=e,n=s(()=>t.format===`bytes`?x(t.current):t.current);return(t,r)=>{let i=C;return l(),c(g,null,[f(`div`,{"font-500":``,op50:``,"text-4":``,flex:`~ items-center gap-2`,title:e.description},[f(`div`,{class:m([e.icon,`text-xl`])},null,2),_(` `+h(e.name),1)],8,w),f(`div`,T,[e.format===`bytes`?(l(),c(`div`,E,[f(`span`,D,h(n.value[0]),1),f(`span`,O,h(n.value[1]),1)])):(l(),c(`div`,k,[f(`span`,A,h(n.value),1)])),v(i,{current:e.current,previous:e.previous},null,8,[`current`,`previous`])])],64)}}}),M=Object.assign(j,{__name:`CompareMetricCard`}),N={key:1,"h-screen":``,"w-screen":``,"max-w-screen":``,"max-h-screen":``,"of-hidden":``,p6:``,flex:`~ col gap-2`},P={flex:`~ gap-2`},F={flex:`~ col`,border:`~ base rounded-lg`,p3:``,mt10:``},I={grid:`~ cols-4 gap5`,"w-full":``,pt3:``},L=a({__name:`index`,setup(a){let h=o(!1),x=i().params,S=r(),C=o([]);u(async()=>{h.value=!0,C.value=await S.value[`vite:rolldown:get-session-compare-summary`]({sessions:x.sessions.split(`,`)}),h.value=!1});let w=s(()=>C.value.map((e,t)=>({...e,createdAt:new Date(e.meta?.timestamp??0),title:t===0?`Session A`:`Session B`}))),T=s(()=>{let[e,t]=w.value;return[{name:`Bundle Size`,description:`Total file size of the assets`,icon:`i-ph-package-duotone`,current:t?.bundle_size??0,previous:e?.bundle_size??0,format:`bytes`},{name:`Initial JS`,description:`Total file size of the initial JS chunks`,icon:`i-ph-file-js-duotone`,current:t?.initial_js??0,previous:e?.initial_js??0,format:`bytes`},{name:`Modules`,description:`Total number of modules`,icon:`i-ph-graph-duotone`,current:t?.modules??0,previous:e?.modules??0},{name:`Plugins`,description:`Total number of plugins`,icon:`i-ph-plugs-duotone`,current:t?.meta?.plugins.length??0,previous:e?.meta?.plugins.length??0},{name:`Chunks`,description:`Total number of chunks`,icon:`i-ph-shapes-duotone`,current:t?.chunks??0,previous:e?.chunks??0},{name:`Assets`,description:`Total number of assets`,icon:`i-ph-package-duotone`,current:t?.assets??0,previous:e?.assets??0}]});return(r,i)=>{let a=e,o=y,s=b,u=M;return h.value?(l(),d(a,{key:0})):(l(),c(`div`,N,[f(`div`,P,[v(o,{"btn-action":``,to:{path:`/`}},{default:p(()=>[...i[0]||=[f(`div`,{"i-ph-arrow-bend-up-left-duotone":``},null,-1),_(` Re-select Session `,-1)]]),_:1})]),f(`div`,F,[i[1]||=f(`div`,{py3:``,"indent-2":``},` Compare Overview `,-1),v(s,{sessions:w.value},null,8,[`sessions`]),f(`div`,I,[(l(!0),c(g,null,n(T.value,(e,n)=>(l(),c(`div`,{key:e.name,class:m(n<2?`col-span-2`:`col-span-1`),border:`~ base rounded`,p4:``,flex:`~ col`,gap2:``},[v(u,t({ref_for:!0},e),null,16)],2))),128))])])]))}}});export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,bt as t,ft as n,gt as r,jt as i,sn as a}from"#entry";import{r as o,s}from"./CQNn9qP2.js";var c=[`title`],l=t({__name:`FileIcon`,props:{filename:{}},setup(e){let t=e,o=n(()=>s(t.filename));return(e,t)=>(i(),r(`div`,{"flex-none":``,"icon-catppuccin":``,title:o.value.description||o.value.name,class:a([o.value.icon])},null,10,c))}}),u=Object.assign(l,{__name:`DisplayFileIcon`}),d=t({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(t){return()=>{let n=t.path.split(/([?/&:=])/g),r=`path`,i=n.map(()=>[]),a=n.map(()=>[]),s=n.map(t=>e(`span`,{class:``},t)),c=new Set;return n.forEach((e,l)=>{if(e===`?`&&(r=`query`),r===`path`){if(e.match(/^\.+$/)||e===`/`?i[l]?.push(`op50`):(e===`node_modules`||e===`dist`||e===`lib`||e.match(/^\.\w/))&&i[l]?.push(`op60`),e===`node_modules`&&t.minimal)for(let e=0;e<l+2;e++)c.add(e);if(e===`.pnpm`&&(s[l]&&(s[l].children=`~`,i[l]?.push(`op25!`),i[l-1]?.push(`op25!`)),c.add(l+1),c.add(l+2),i[l+3]?.push(`op25!`),s[l+4]?.children===`node_modules`&&(c.add(l+3),c.add(l+4),i[l+5]?.push(`op25!`))),e===`:`&&(s[l-1]&&a[l-1]?.push(`color: ${o(n[l-1])}`),i[l]?.push(`op50`)),n[l-2]===`node_modules`&&!e.startsWith(`.`)){let t=`color: ${o(n[l])}`;a[l]?.push(t),e.startsWith(`@`)&&(a[l+1]?.push(t),a[l+2]?.push(t))}}r===`query`&&(e===`?`?i[l]?.push(`text-red-500 dark:text-red-400`):e===`&`&&i[l]?.push(`text-orange-500 dark:text-orange-400`),e===`=`?i[l]?.push(`text-orange-900 dark:text-orange-200 op50`):n[l+1]===`=`?i[l]?.push(`text-amber-900 dark:text-amber-200`):i[l]?.push(`text-orange-900 dark:text-orange-200`))}),s.forEach((e,t)=>{e.props&&(e.props.class=i[t]?.join(` `)??``,e.props.style=a[t]?.join(`;`)??``)}),Array.from(c).sort((e,t)=>t-e).forEach(e=>{s.splice(e,1)}),s}}});export{u as n,d as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ft as e,It as t,T as n,X as r,bt as i,gt as a,ht as o,jt as s,mt as c,on as l,pt as u,qt as d,s as f,un as p,ut as m,vt as h,yt as g}from"#entry";import{t as _}from"./Bjr51Ks8.js";import{r as v,t as y}from"./BQ-NBLhA.js";var b=[`title`],x={key:0,"i-ph-file-duotone":``},S={key:1,"i-ph-lightning-duotone":``},C={"text-sm":``,flex:`~ items-center gap-2`},w={op50:``,"font-mono":``},T={flex:`~ gap-1 items-center`},E={flex:`~ gap-1 items-center`},D=i({__name:`ChunkImports`,props:{chunkImport:{},session:{},importer:{}},setup(e){let t=e,i=r(),m=n(),{state:y}=f(async()=>await m.value[`vite:rolldown:get-chunk-info`]?.({session:t.session.id,id:t.chunkImport.chunk_id}),null);return(t,n)=>{let r=v,f=_;return l(y)?(s(),c(f,{key:0,flex:`~ items-center`,to:{path:l(i).path,query:{chunk:l(y).chunk_id}}},{default:d(()=>[u(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${l(y).chunk_id}`},[e.chunkImport.kind===`import-statement`?(s(),a(`div`,x)):o(``,!0),e.chunkImport.kind===`dynamic-import`?(s(),a(`div`,S)):o(``,!0),u(`div`,null,p(l(y).name||`[unnamed]`),1),g(r,{text:l(y).reason},null,8,[`text`]),e.chunkImport.kind===`import-statement`?(s(),c(r,{key:2,text:`statement`,color:210})):o(``,!0),e.chunkImport.kind===`dynamic-import`?(s(),c(r,{key:3,text:`dynamic`,color:30})):o(``,!0)],8,b),n[2]||=u(`div`,{"flex-auto":``},null,-1),u(`div`,C,[u(`span`,w,`#`+p(l(y).chunk_id),1),u(`div`,T,[n[0]||=u(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),h(` `+p(l(y).imports.length),1)]),u(`div`,E,[n[1]||=u(`div`,{"i-ph-package-duotone":``},null,-1),h(` `+p(l(y).modules.length),1)])])]),_:1},8,[`to`])):o(``,!0)}}}),O=Object.assign(D,{__name:`DisplayChunkImports`}),k={flex:`~ col gap-3`},A={flex:`~ gap-3 items-center`},j=[`title`],M={op50:``,"font-mono":``},N={flex:`~ gap-1 items-center`},P={flex:`~ gap-1 items-center`},F={key:0,open:`true`},I={op50:``},L={flex:`~ col gap-1`,mt2:``,"ws-nowrap":``},R={key:1,open:`true`},z={op50:``},B={flex:`~ col gap-1`,mt2:``,"ws-nowrap":``},V=i({__name:`ChunkDetails`,props:{chunk:{},session:{},showModules:{type:Boolean,default:!0},showImports:{type:Boolean,default:!0}},setup(n){return(r,i)=>{let l=v,d=y,f=O;return s(),a(`div`,k,[u(`div`,A,[u(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${n.chunk.chunk_id}`},[i[0]||=u(`div`,{"i-ph-shapes-duotone":``},null,-1),u(`div`,null,p(n.chunk.name||`[unnamed]`),1),g(l,{text:n.chunk.reason},null,8,[`text`])],8,j),i[3]||=u(`div`,{"flex-auto":``},null,-1),u(`span`,M,`#`+p(n.chunk.chunk_id),1),u(`div`,N,[i[1]||=u(`div`,{"i-ph-file-arrow-up-duotone":``},null,-1),h(` `+p(n.chunk.imports.length),1)]),u(`div`,P,[i[2]||=u(`div`,{"i-ph-package-duotone":``},null,-1),h(` `+p(n.chunk.modules.length),1)]),t(r.$slots,`default`)]),n.showModules?(s(),a(`details`,F,[u(`summary`,I,[u(`span`,null,`Modules (`+p(n.chunk.modules.length)+`)`,1)]),u(`div`,L,[(s(!0),a(m,null,e(n.chunk.modules,e=>(s(),c(d,{id:e,key:e,session:n.session,link:!0,minimal:!0,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`id`,`session`]))),128))])])):o(``,!0),n.showImports&&n.chunk.imports.length>0?(s(),a(`details`,R,[u(`summary`,z,[u(`span`,null,`Imports (`+p(n.chunk.imports.length)+`)`,1)]),u(`div`,B,[(s(!0),a(m,null,e(n.chunk.imports,(e,t)=>(s(),c(f,{key:t,"chunk-import":e,session:n.session,importer:n.chunk,hover:`bg-active`,border:`~ base rounded`,px2:``,py1:``,"w-full":``},null,8,[`chunk-import`,`session`,`importer`]))),128))])])):o(``,!0)])}}}),H=Object.assign(V,{__name:`DataChunkDetails`});export{H as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,Ct as t,G as n,H as r,J as i,K as a,Lt as o,Ot as s,Q as c,U as l,W as u,Y as d,Z as f,at as p,bt as m,en as h,et as g,ft as _,it as v,kt as y,nn as b,nt as x,rt as S,tt as C}from"#entry";var w=(...e)=>e.find(e=>e!==void 0);function T(a){let p=a.componentName||`NuxtLink`;function g(e){return typeof e==`string`&&e.startsWith(`#`)}function v(e,t,n){let r=n??a.trailingSlash;if(!e||r!==`append`&&r!==`remove`)return e;if(typeof e==`string`)return D(e,r);let i=`path`in e&&e.path!==void 0?e.path:t(e).path;return{...e,name:void 0,path:D(i,r)}}function T(t){let n=f(),r=e(),s=_(()=>!!t.target&&t.target!==`_self`),c=_(()=>{let e=t.to||t.href||``;return typeof e==`string`&&C(e,{acceptRelative:!0})}),l=o(`RouterLink`),u=l&&typeof l!=`string`?l.useLink:void 0,p=_(()=>{if(t.external)return!0;let e=t.to||t.href||``;return typeof e==`object`?!1:e===``||c.value}),m=_(()=>{let e=t.to||t.href||``;return p.value?e:v(e,n.resolve,t.trailingSlash)}),h=p.value?void 0:u?.({...t,to:m}),y=_(()=>{let e=t.trailingSlash??a.trailingSlash;if(!m.value||c.value||g(m.value))return m.value;if(p.value){let t=typeof m.value==`object`&&`path`in m.value?d(m.value):m.value,r=typeof t==`object`?n.resolve(t).href:t;return D(r,e)}return typeof m.value==`object`?n.resolve(m.value)?.href??null:D(x(r.app.baseURL,m.value),e)});return{to:m,hasTarget:s,isAbsoluteUrl:c,isExternal:p,href:y,isActive:h?.isActive??_(()=>m.value===n.currentRoute.value.path),isExactActive:h?.isExactActive??_(()=>m.value===n.currentRoute.value.path),route:h?.route??_(()=>n.resolve(m.value)),async navigate(e){await i(y.value,{replace:t.replace,external:p.value||s.value})}}}return m({name:p,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:T,setup(e,{slots:i}){let p=f(),{to:m,href:_,navigate:v,isExternal:x,hasTarget:C,isAbsoluteUrl:E}=T(e),D=b(!1),k=h(null),j=t=>{k.value=e.custom?t?.$el?.nextElementSibling:t?.$el};function M(t){return!D.value&&(typeof e.prefetchOn==`string`?e.prefetchOn===t:e.prefetchOn?.[t]??a.prefetchOn?.[t])&&(e.prefetch??a.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!==`_blank`&&!A()}async function N(e=c()){if(D.value)return;D.value=!0;let t=typeof m.value==`string`?m.value:x.value?d(m.value):p.resolve(m.value).fullPath,n=x.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,n).catch(()=>{}),!x.value&&!C.value&&r(m.value,p).catch(()=>{})])}if(M(`visibility`)){let e=c(),t,r=null;y(()=>{let i=O();l(()=>{t=n(()=>{k?.value?.tagName&&(r=i.observe(k.value,async()=>{r?.(),r=null,await N(e)}))})})}),s(()=>{t&&u(t),r?.(),r=null})}return()=>{if(!x.value&&!C.value&&!g(m.value)){let n={ref:j,to:m.value,activeClass:e.activeClass||a.activeClass,exactActiveClass:e.exactActiveClass||a.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(M(`interaction`)&&(n.onPointerenter=N.bind(null,void 0),n.onFocus=N.bind(null,void 0)),D.value&&(n.class=e.prefetchedClass||a.prefetchedClass),n.rel=e.rel||void 0),t(o(`RouterLink`),n,i.default)}let n=e.target||null,r=w(e.noRel?``:e.rel,a.externalRelAttribute,E.value||C.value?`noopener noreferrer`:``)||null;return e.custom?i.default?i.default({href:_.value,navigate:v,prefetch:N,get route(){if(!_.value)return;let e=new URL(_.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return S(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:_.value}},rel:r,target:n,isExternal:x.value||C.value,isActive:!1,isExactActive:!1}):null:t(`a`,{ref:k,href:_.value||null,rel:r,target:n,onClick:t=>{if(!(x.value||C.value))return t.preventDefault(),e.replace?p.replace(_.value):p.push(_.value)}},i.default?.())}}})}var E=T(g);function D(e,t){let n=t===`append`?v:p;return C(e)&&!e.startsWith(`http`)?e:n(e,!0)}function O(){let e=c();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}var k=/2g/;function A(){let e=navigator.connection;return!!(e&&(e.saveData||k.test(e.effectiveType)))}export{E as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$t as e,A as t,Ct as n,D as r,Ft as i,Lt as a,T as o,Wt as s,X as c,bt as l,c as u,en as d,f,ft as p,gt as m,ht as h,jt as g,m as ee,mt as _,on as v,pt as y,qt as b,s as te,sn as x,un as S,ut as C,vt as w,yt as T}from"#entry";import"./Bjr51Ks8.js";import"./Ci9NHG69.js";import{r as E}from"./CQNn9qP2.js";import"./BO9hKuA-.js";import{r as D,t as O}from"./BQ-NBLhA.js";import{n as k}from"./DnpfwSMy.js";import{t as A}from"./B2fBtupD.js";import{t as j}from"./D_Sk_I-u.js";import{r as M,s as N}from"./CS0-317H.js";import{n as ne,t as P}from"./KKO2iSg5.js";import{n as F,r as I,t as L}from"./BJ1En-qd.js";import{t as R}from"./Z5tyTJaP.js";var z=l({name:`HighlightedPackageName`,props:{name:{type:String,required:!0}},setup(e){return()=>{let t=e.name;if(!k(t))return n(`span`,{class:`text-gray-500`},t);let r=E(t);if(t.startsWith(`@`)){let[e,i]=t.split(`/`);return[n(`span`,{style:`color: ${r}`},e),n(`span`,{style:`color: ${r}`,class:`op50`},`/`),n(`span`,{style:`color: ${r}`},i)]}return n(`span`,{style:`color: ${r}`},t)}}}),B={flex:`~ row gap-1`,"of-hidden":``},V={flex:`~ row gap-1`,"ws-nowrap":``},H={p2:``,flex:`~ col gap-1`},U=l({__name:`Importers`,props:{package:{},session:{},showVersion:{type:Boolean}},setup(e){let t=e,n=p(()=>[...new Set(t.package.files.filter(e=>!!e.importers).flatMap(e=>e.importers))]);return(t,r)=>{let o=O,s=D,c=a(`VMenu`);return g(),m(`div`,B,[y(`div`,V,[T(o,{id:n.value[0].path,session:e.session,link:``},null,8,[`id`,`session`]),n.value[0].version&&e.showVersion?(g(),_(s,{key:0,text:n.value[0].version,as:`span`},null,8,[`text`])):h(``,!0)]),n.value.length>1?(g(),_(c,{key:0,delay:{show:200,hide:0},"flex-none":``},{popper:b(()=>[y(`div`,H,[(g(!0),m(C,null,i(n.value,t=>(g(),m(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[T(o,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`]),t.version&&e.showVersion?(g(),_(s,{key:0,text:`v${t.version}`,as:`span`},null,8,[`text`])):h(``,!0)]))),128))])]),default:b(()=>[T(s,{text:`+${n.value.length}`,color:100,class:`text-xs rounded px1`},null,8,[`text`])]),_:1})):h(``,!0)])}}}),W=Object.assign(U,{__name:`PackagesImporters`}),G={role:`table`,"min-w-max":``,border:`~ base rounded-xl`},K={role:`row`,class:`border-b border-base`,flex:`~ row`},q=[`title`],J={key:0,"font-mono":``},Y={key:0,title:`Package version`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"min-w40":``,"ws-nowrap":``,"text-left":``,"py1.5":``,px2:``,"font-600":``},X={title:`Transformed code size`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,pl2:``,"font-600":``,"min-w40":``},Z={flex:`~ row gap1 items-center justify-end`,"w-full":``,relative:``,pr2:``},re={key:0,role:`cell`,"font-mono":``,"flex-none":``,"min-w80":``,"py1.5":``,px2:``,"ws-nowrap":``,"text-sm":``},Q={role:`cell`,flex:`~ items-center`,"text-left":``,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``},ie={role:`cell`,flex:`~ items-center justify-end`,"flex-none":``,"font-mono":``,"py1.5":``,px2:``,"text-sm":``,"min-w40":``,op80:``},ae={p2:``,flex:`~ col gap-1`},oe={w24:``,"inline-flex":``},se={role:`cell`,flex:`~ items-center`,"flex-1":``,"font-mono":``,"py1.5":``,pl20:``,pr2:``,"text-sm":``,op80:``},ce={key:1},le=l({__name:`Table`,props:{packages:{},session:{},disableSizeSort:{type:Boolean,default:!1},groupView:{type:Boolean,default:!1}},setup(e){let{state:n,next:r}=u([``,`desc`,`asc`],{initialValue:j.value.packageSizeSortType});function a(){r(),j.value.packageSizeSortType=n.value}return(r,o)=>{let s=z,c=A,l=O,u=W,d=P;return g(),m(`div`,G,[y(`div`,K,[y(`div`,{title:e.groupView?`Package`:`Bundled packages`,role:`columnheader`,"rounded-tl-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,px2:``,"font-600":``,class:x([e.groupView?`min-w40`:`min-w80`])},[e.groupView?(g(),m(`div`,J,[T(s,{name:e.packages?.[0]?.name},null,8,[`name`])])):(g(),m(C,{key:1},[w(` Package `)],64))],10,q),e.groupView?h(``,!0):(g(),m(`div`,Y,` Version `)),y(`div`,X,[y(`button`,Z,[o[0]||=w(` Size `,-1),e.disableSizeSort?h(``,!0):(g(),m(`span`,{key:0,"w-6":``,"h-6":``,"rounded-full":``,"cursor-pointer":``,hover:`bg-active`,flex:`~ items-center justify-center`,onClick:a},[y(`i`,{"text-xs":``,class:x([v(n)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,v(n)?`op100 text-primary`:`op50`])},null,2)]))])]),o[1]||=y(`div`,{title:`Importers`,role:`columnheader`,"rounded-tr-2":``,"flex-none":``,"ws-nowrap":``,"py1.5":``,pl20:``,pr2:``,"font-600":``,"min-w50":``},` Importers `,-1)]),e.packages.length?(g(),_(d,{key:0,role:`rowgroup`,items:e.packages,"key-prop":`dir`},{default:b(({item:n,index:r})=>[y(`div`,{role:`row`,flex:`~ row`,class:x([`border-base border-b-1 border-dashed`,[r===e.packages.length-1?`border-b-0`:``]])},[e.groupView?h(``,!0):(g(),m(`div`,re,[T(s,{name:n.name},null,8,[`name`])])),y(`div`,Q,S(n.version),1),y(`div`,ie,[T(v(t),{delay:{show:200,hide:0}},{popper:b(()=>[y(`div`,ae,[(g(!0),m(C,null,i(n.files.filter(e=>!!e.transformedCodeSize),t=>(g(),m(`div`,{key:t.path,flex:`~ row gap-1 items-center nowrap`,"w-max":``},[y(`span`,oe,[T(c,{bytes:t.transformedCodeSize},null,8,[`bytes`])]),T(l,{id:t.path,session:e.session,"ws-nowrap":``,"flex-1":``,"disable-tooltip":``,link:``},null,8,[`id`,`session`])]))),128))])]),default:b(()=>[T(c,{bytes:n.transformedCodeSize},null,8,[`bytes`])]),_:2},1024)]),y(`div`,se,[T(u,{package:n,session:e.session,"show-version":e.groupView},null,8,[`package`,`session`,`show-version`])])],2)]),_:1},8,[`items`])):(g(),m(`div`,ce,[...o[2]||=[y(`div`,{p4:``},[y(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},[y(`p`,null,` No data `)])],-1)]]))])}}}),$=Object.assign(le,{__name:`PackagesTable`}),ue=l({__name:`PackageNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:t}){let n=t;return(t,r)=>(g(),_(I,{selected:e.selected,options:e.options,onSelect:r[0]||=e=>n(`select`,e)},null,8,[`selected`,`options`]))}}),de=Object.assign(ue,{__name:`ChartPackageNavBreadcrumb`}),fe={key:1,p4:``},pe=l({__name:`Duplicated`,props:{packages:{},session:{}},setup(e){let t=e,n=p(()=>t.packages.filter(e=>e.duplicated)),r=p(()=>n.value.reduce((e,t)=>(e[t.name]=[...e[t.name]||[],t],e),{}));return(t,a)=>{let o=$;return n.value.length?(g(!0),m(C,{key:0},i(r.value,(t,n)=>(g(),m(`div`,{key:n},[T(o,{packages:t,session:e.session,"group-view":``,"disable-size-sort":``},null,8,[`packages`,`session`])]))),128)):(g(),m(`div`,fe,[...a[0]||=[y(`div`,{"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},` No duplicate packages `,-1)]]))}}}),me=Object.assign(pe,{__name:`PackagesDuplicated`}),he={key:1,relative:``,"max-h-screen":``,"of-hidden":``},ge={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},_e={flex:`~ gap-2 items-center`,p2:``,border:`t base`},ve=[`onClick`],ye={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt44:``,px4:``,pb4:``},be={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},xe={op50:``},Se={key:1,"w-full":``,"h-48":``,flex:`~ items-center justify-center`,op50:``,italic:``},Ce={key:0,"bg-glass":``,border:`~ base rounded`,p2:``,"text-sm":``,flex:`~ col gap-2`},we={flex:`~ gap-1 items-center`},Te={flex:`~ gap-1 items-center`},Ee=l({__name:`packages`,props:{session:{}},setup(t){let n=t,a=e(f()),l=c(),u=[{match:/.*/,name:`direct`,description:`Direct Dependencies`,icon:`i-octicon:package-dependencies-24 light:filter-invert-30!`},{match:/.*/,name:`transitive`,description:`Transitive Dependencies`,icon:`i-octicon:package-24 light:filter-invert-30!`}],E=o(),D=d({search:``,selected:[`direct`,`transitive`]}),{state:O,isLoading:k}=te(async()=>await E.value[`vite:rolldown:get-packages`]?.({session:n.session.id}),null),P=ee(()=>O.value,()=>new R(O.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),I=p(()=>O.value?Object.values(O.value.reduce((e,t)=>(e[t.name]=(e[t.name]||0)+1,e),{})).filter(e=>e>1).length:0),z=p(()=>[{label:`Table`,value:`table`,icon:`i-ph-table-duotone`},{label:`Treemap`,value:`treemap`,icon:`i-ph-checkerboard-duotone`},{label:`Duplicate Packages${I.value>0?` (${I.value})`:``}`,value:`duplicate-packages`,icon:`i-ph-package-duotone`}]),B=p(()=>D.value.search?P.value.search(D.value.search).map(e=>e.item):[...O.value||[]]),V=p(()=>{let e=j.value.packageSizeSortType,t=[...B.value].sort((e,t)=>(e.name||``).localeCompare(t.name||``));return(e?t.sort((t,n)=>e===`asc`?t.transformedCodeSize-n.transformedCodeSize:n.transformedCodeSize-t.transformedCodeSize):t).filter(e=>!D.value.selected||D.value.selected.some(t=>t.match(e.type)))});function H(e){j.value.packageViewType=e}let{tree:U,chartOptions:W,graph:G,nodeHover:K,nodeSelected:q,selectedNode:J,selectNode:Y,buildGraph:X}=L({data:V,nameKey:`name`,sizeKey:`transformedCodeSize`,rootText:`Packages`,nodeType:`package`,graphOptions:{onHover(e){e&&!l.query.package&&(K.value=e),e===null&&(K.value=void 0)},onLeave(){K.value=void 0},onSelect(e){q.value=e||U.value.root,J.value=e?.meta}},onUpdate(){j.value.packageViewType===`treemap`&&(G.value=new M(U.value.root,{...W.value,selectedPaddingRatio:0}))}});return s(()=>j.value.packageViewType,()=>{X()}),(e,n)=>{let o=r,s=ne,c=$,l=de,d=me,f=A,p=N;return v(k)?(g(),_(o,{key:0})):(g(),m(`div`,he,[y(`div`,ge,[T(s,{modelValue:D.value,"onUpdate:modelValue":n[0]||=e=>D.value=e,rules:u},{default:b(()=>[y(`div`,_e,[n[2]||=y(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(g(!0),m(C,null,i(z.value,e=>(g(),m(`button`,{key:e.value,"btn-action":``,class:x(v(j).packageViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>H(e.value)},[y(`div`,{class:x(e.icon)},null,2),w(` `+S(e.label),1)],10,ve))),128))])]),_:1},8,[`modelValue`])]),y(`div`,ye,[v(j).packageViewType===`table`?(g(),m(C,{key:0},[T(c,{packages:V.value,session:t.session},null,8,[`packages`,`session`]),y(`div`,be,[y(`span`,xe,S(B.value.length)+` of `+S(v(O)?.length||0),1)])],64)):v(j).packageViewType===`treemap`?(g(),m(C,{key:1},[v(G)&&V.value.length?(g(),_(F,{key:0,graph:v(G),selected:v(q),onSelect:n[1]||=e=>v(Y)(e)},{default:b(({selected:e,options:t,onSelect:n})=>[T(l,{border:`b base`,py2:``,"min-h-10":``,selected:e,options:t,onSelect:n},null,8,[`selected`,`options`,`onSelect`])]),_:1},8,[`graph`,`selected`])):(g(),m(`span`,Se,` No Data `))],64)):v(j).packageViewType===`duplicate-packages`?(g(),_(d,{key:2,packages:V.value,session:t.session},null,8,[`packages`,`session`])):h(``,!0)]),T(p,{"hover-x":a.x,"hover-y":a.y},{default:b(()=>[v(K)?.meta?(g(),m(`div`,Ce,[y(`div`,we,S(v(K).text),1),y(`div`,Te,[T(f,{bytes:v(K).size,percent:!1},null,8,[`bytes`])])])):h(``,!0)]),_:1},8,[`hover-x`,`hover-y`])]))}}});export{Ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bt as e,ft as t,gt as n,ht as r,jt as i,on as a,pt as o,qt as s,ut as c,yt as l}from"#entry";import{n as u}from"./Ci9NHG69.js";import{t as d}from"./DZeYNBxL.js";import{t as f}from"./B2fBtupD.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=e({__name:`BuildMetrics`,props:{metrics:{}},setup(e){let h=e,g=t(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0),i=t+n+r;return{resolveIds:t,loads:n,transforms:r,total:i}}),_=t(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=t(()=>{let e=h.metrics?.transforms.filter(e=>e.transformed_code_size);return e?.[e.length-1]?.transformed_code_size});return(e,t)=>{let h=d,y=f;return i(),n(`div`,p,[l(h,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${a(u)(g.value.resolveIds,!0)}`},{default:s(()=>[...t[0]||=[o(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),l(h,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${a(u)(g.value.loads,!0)}`},{default:s(()=>[...t[1]||=[o(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),l(h,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${a(u)(g.value.transforms,!0)}`},{default:s(()=>[...t[2]||=[o(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),t[6]||=o(`span`,{op40:``},`|`,-1),l(h,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${a(u)(g.value.total,!0)}`},{default:s(()=>[...t[3]||=[o(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(i(),n(c,{key:0},[t[5]||=o(`span`,{op40:``},`|`,-1),o(`div`,m,[l(y,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),t[4]||=o(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),l(y,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):r(``,!0)])}}}),g=Object.assign(h,{__name:`ModulesBuildMetrics`});export{g as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{gt as e,jt as t,k as n,pt as r,q as i,qt as a,un as o,vt as s,yt as c}from"#entry";import{t as l}from"./Bjr51Ks8.js";var u={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g={__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},statusCode:{type:Number,default:404},statusMessage:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(n){let g=n;return i({title:`${g.statusCode} - ${g.statusMessage} | ${g.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(i,g)=>{let _=l;return t(),e(`div`,u,[r(`div`,d,[r(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:o(n.statusCode)},null,8,f),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:o(n.statusMessage)},null,8,p),r(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:o(n.description)},null,8,m),r(`div`,h,[c(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[s(o(n.backHome),1)]),_:1})])])])}}},_=n(g,[[`__scopeId`,`data-v-a8693205`]]);export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"#entry";var t;(class{static{t=Symbol.toStringTag}constructor(){this[t]=`MaybeWeakMap`,this._map=new Map,this._weakMap=new WeakMap}delete(e){return this._weakMap.has(e)?this._weakMap.delete(e):this._map.delete(e)}has(e){return this._weakMap.has(e)?!0:this._map.has(e)}set(e,t){return this._weakMap.has(e)?this._weakMap.set(e,t):this._map.set(e,t),this}get(e){return this._weakMap.has(e)?this._weakMap.get(e):this._map.get(e)}clear(){this._map.clear()}});var n=class{constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e[e.length-1],t),this}get(e){return this._getLastMap(e).get(e[e.length-1])}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e[e.length-1])}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},r=class{constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,t){let r=e.length,i=this._lengthMap.get(r);return i||(i=new n(r),this._lengthMap.set(r,i)),i.set(e,t),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function i(e){let t=new r,n=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return n.cache=t,n}const a=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],o=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],s={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},c={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function l(e){return a.find(t=>t.name===e)??s}const u=i(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of a)if(t.match.test(e))return t;return s}),d=i(e=>{for(let t of o)if(t.match.test(e))return t;return c});function f(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);let r=n%360;return p(r,t)}function p(t,n=1){let r=e.value?50:65,i=e.value?60:40;return`hsla(${t}, ${r}%, ${i}%, ${n})`}const m={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,virtual:160,nuxt:140};function h(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in m){let n=m[e];if(typeof n==`number`)return p(n,t);{if(t===1)return n;let e=Math.floor(t*255).toString(16).padStart(2,`0`);return n+e}}return f(e,t)}export{a,l as c,c as i,d as l,p as n,o,h as r,u as s,f as t,i as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e,Dt as t,Ft as n,T as r,X as i,bt as a,ft as o,gt as s,ht as c,jt as l,mt as u,on as d,pt as f,qt as p,s as m,sn as h,un as g,ut as _,vt as v,yt as y}from"#entry";import{t as b}from"./Bjr51Ks8.js";import"./CQNn9qP2.js";import"./BO9hKuA-.js";import{r as x}from"./BQ-NBLhA.js";import{t as S}from"./BhYsQoJN.js";import{t as C}from"./D_Sk_I-u.js";import{t as w}from"./IrMnfQaU.js";import{t as T}from"./m0y8FcT0.js";var E={op50:``,"font-mono":``,w12:``},D=[`title`],O={flex:`~ gap-1 items-center`},k=a({__name:`Graph`,props:{session:{},chunks:{}},setup(e){let n=e,r=o(()=>n.chunks),a=i();return w({modules:r,spacing:{width:320,height:55,linkOffset:15,margin:120,gap:80},generateGraph:e=>{let{isFirstCalculateGraph:n,scale:i,spacing:a,tree:o,hierarchy:s,collapsedNodes:c,container:l,modulesMap:u,nodes:f,links:p,nodesMap:m,linksMap:h,width:g,height:_,childToParentMap:v}=e;return()=>{g.value=window.innerWidth,_.value=window.innerHeight;let e=s({module:{id:`~root`}},e=>`${e.module?.id}`==`~root`?(r.value.forEach(e=>{n.value&&v.set(e.id,`~root`)}),r.value.map(e=>({module:e,expanded:!c.has(e.id),hasChildren:!1}))):c.has(`${e.module?.id}`)||e.end?[]:e.module.imports.map(t=>{let r=u.value.get(`${t.chunk_id}`);if(r)return n.value&&v.set(r.id,e.module.id),{module:r,import:t,expanded:!c.has(r.id),hasChildren:!1,end:!0}}).filter(e=>e!==void 0));n.value&&=!1,o().nodeSize([d(a.height),d(a.width)+d(a.gap)])(e);let y=e.descendants();for(let e of y)[e.x,e.y]=[e.y-d(a.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports.length>0&&!e.data.end);let b=Math.min(...y.map(e=>e.x)),x=Math.min(...y.map(e=>e.y));if(b<d(a.margin))for(let e of y)e.x+=Math.abs(b)+d(a.margin);if(x<d(a.margin))for(let e of y)e.y+=Math.abs(x)+d(a.margin);f.value=y,m.clear();for(let e of y)m.set(`${e.data.module.id}`,e);let S=e.links().filter(e=>`${e.source.data.module.id}`!=`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));h.clear();for(let e of S)h.set(e.id,e);p.value=S,t(()=>{g.value=l.value.scrollWidth/i.value+d(a.margin),_.value=l.value.scrollHeight/i.value+d(a.margin)})}}}),(t,n)=>{let i=x,o=b,s=T;return l(),u(s,{session:e.session,modules:r.value},{default:p(({node:e})=>[y(o,{class:`flex items-center`,to:{path:d(a).path,query:{chunk:e.data.module.chunk_id}}},{default:p(()=>[f(`span`,E,`#`+g(e.data.module.id),1),f(`div`,{flex:`~ gap-2 items-center`,title:`Chunk #${e.data.module.id}`},[n[0]||=f(`div`,{"i-ph-shapes-duotone":``},null,-1),f(`div`,null,g(e.data.module.name||`[unnamed]`),1),y(i,{text:e.data.module.reason},null,8,[`text`])],8,D),n[2]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,O,[n[1]||=f(`div`,{"i-ph-package-duotone":``},null,-1),v(` `+g(e.data.module.modules.length),1)])]),_:2},1032,[`to`])]),_:1},8,[`session`,`modules`])}}}),A=Object.assign(k,{__name:`ChunksGraph`}),j={key:1,relative:``,"max-h-screen":``,"of-hidden":``},M={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},N={flex:`~ gap-2 items-center`,p2:``,border:`~ base rounded-xl`,"bg-glass":``},P=[`onClick`],F={key:0,class:`px5 pt24 of-auto h-screen`,flex:`~ col gap-4`},I=a({__name:`chunks`,props:{session:{}},setup(t){let i=t,a=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`}],p=r(),{state:y,isLoading:b}=m(async()=>await p.value[`vite:rolldown:get-chunks-graph`]?.({session:i.session.id}),null),x=o(()=>y.value?.map(e=>({...e,id:`${e.chunk_id}`}))??[]);function w(e){C.value.chunkViewType=e}return(r,i)=>{let o=e,p=S,m=A;return d(b)?(l(),u(o,{key:0})):(l(),s(`div`,j,[f(`div`,M,[f(`div`,N,[i[0]||=f(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(l(),s(_,null,n(a,e=>f(`button`,{key:e.value,"btn-action":``,class:h(d(C).chunkViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>w(e.value)},[f(`div`,{class:h(e.icon)},null,2),v(` `+g(e.label),1)],10,P)),64))])]),d(C).chunkViewType===`list`?(l(),s(`div`,F,[(l(!0),s(_,null,n(d(y),e=>(l(),u(p,{key:e.id,border:`~ base rounded-lg`,p3:``,chunk:e,session:t.session},null,8,[`chunk`,`session`]))),128))])):d(C).chunkViewType===`graph`?(l(),u(m,{key:1,session:t.session,chunks:x.value},null,8,[`session`,`chunks`])):c(``,!0)]))}}});export{I as default};
|