@nuxt/devtools 0.8.4 → 0.8.5
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 +65 -21
- package/dist/chunks/vscode.mjs +2 -3
- package/dist/client/200.html +17 -17
- package/dist/client/404.html +17 -17
- package/dist/client/_nuxt/{Badge.a4bd58d4.js → Badge.15b76164.js} +1 -1
- package/dist/client/_nuxt/{CodeDiff.vue.a8c9e639.js → CodeDiff.vue.0e58df1f.js} +2 -2
- package/dist/client/_nuxt/ComposableItem.vue.e263b9a9.js +1 -0
- package/dist/client/_nuxt/{DataSchemaButton.vue.fbb61806.js → DataSchemaButton.vue.41ad6158.js} +1 -1
- package/dist/client/_nuxt/{DataSchemaDrawer.f84a2081.js → DataSchemaDrawer.6de1f238.js} +1 -1
- package/dist/client/_nuxt/{DrawerRight.vue.b9dc765f.js → DrawerRight.vue.5bde5a0b.js} +1 -1
- package/dist/client/_nuxt/{DurationDisplay.vue.1f34b658.js → DurationDisplay.vue.8da73fd3.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.a4d269b8.js → FilepathItem.vue.7bd675c6.js} +1 -1
- package/dist/client/_nuxt/{HelpFab.vue.c0c3f8e6.js → HelpFab.vue.f082102a.js} +1 -1
- package/dist/client/_nuxt/LaunchPage.vue.f8df9e2a.js +1 -0
- package/dist/client/_nuxt/{NCheckbox.vue.0e359f85.js → NCheckbox.vue.fcd1d971.js} +1 -1
- package/dist/client/_nuxt/{NCodeBlock.vue.01eb6d1c.js → NCodeBlock.vue.84865d5b.js} +2 -2
- package/dist/client/_nuxt/{NDropdown.vue.b3117df4.js → NDropdown.vue.d756d40c.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.79485c3a.js → NIconTitle.vue.b6d28480.js} +1 -1
- package/dist/client/_nuxt/NLink.vue.e0a3a39a.js +1 -0
- package/dist/client/_nuxt/{NMarkdown.vue.7a10e6e6.js → NMarkdown.vue.d2063d22.js} +1 -1
- package/dist/client/_nuxt/NSectionBlock.0d0061ef.css +1 -0
- package/dist/client/_nuxt/NSectionBlock.42a3cefc.js +1 -0
- package/dist/client/_nuxt/{NSelect.vue.9cac29ef.js → NSelect.vue.e3495019.js} +1 -1
- package/dist/client/_nuxt/{NSelectTabs.vue.72adf277.js → NSelectTabs.vue.4a83d611.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.67a4fdb0.js → NSwitch.vue.21018268.js} +1 -1
- package/dist/client/_nuxt/{NTip.vue.d505e897.js → NTip.vue.d193bf96.js} +1 -1
- package/dist/client/_nuxt/{Navbar.vue.8dc15d25.js → Navbar.vue.bacddf14.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.2463efc9.js → StateEditor.vue.5fea57d7.js} +1 -1
- package/dist/client/_nuxt/{analyze-build.423f57eb.js → analyze-build.7513704d.js} +1 -1
- package/dist/client/_nuxt/{assets.dc245910.js → assets.35017b46.js} +3 -3
- package/dist/client/_nuxt/{client.c59e50d6.js → client.d926285a.js} +1 -1
- package/dist/client/_nuxt/{components.31c6fd6f.js → components.fc36eeef.js} +1 -1
- package/dist/client/_nuxt/custom-_name_.50e8c68f.js +1 -0
- package/dist/client/_nuxt/{default.30ac8af4.js → default.c4c43b40.js} +1 -1
- package/dist/client/_nuxt/entry.38bf3bdf.css +1 -0
- package/dist/client/_nuxt/entry.54b63325.js +27 -0
- package/dist/client/_nuxt/{error-404.5c6d1cc1.js → error-404.087131b3.js} +1 -1
- package/dist/client/_nuxt/{error-500.b5b10475.js → error-500.d1c41037.js} +1 -1
- package/dist/client/_nuxt/{full.03097bfb.js → full.478da439.js} +1 -1
- package/dist/client/_nuxt/{hooks.d674696d.js → hooks.d9e8fd29.js} +1 -1
- package/dist/client/_nuxt/{imports.b827859f.js → imports.79d88ab3.js} +1 -1
- package/dist/client/_nuxt/{index.b5454355.js → index.5e3c6999.js} +1 -1
- package/dist/client/_nuxt/index.86b1fd88.js +1 -0
- package/dist/client/_nuxt/{json-editor-vue.1bc58c26.js → json-editor-vue.ce96762e.js} +1 -1
- package/dist/client/_nuxt/{middleware.434dc02a.js → middleware.87876377.js} +1 -1
- package/dist/client/_nuxt/{modules.7dc02a95.js → modules.caf682af.js} +2 -2
- package/dist/client/_nuxt/{none.2b3e8ddc.js → none.cfaeed76.js} +1 -1
- package/dist/client/_nuxt/{open-graph.693bd031.js → open-graph.cd0bdf97.js} +2 -2
- package/dist/client/_nuxt/overview.14a73720.js +1 -0
- package/dist/client/_nuxt/pages.746eb038.js +1 -0
- package/dist/client/_nuxt/payload.913d1fd8.js +1 -0
- package/dist/client/_nuxt/{plugins.cd2e64ba.js → plugins.5342d060.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.1f844468.js → runtime-configs.bf4f2459.js} +1 -1
- package/dist/client/_nuxt/server-routes.8c094c9d.js +9 -0
- package/dist/client/_nuxt/settings.59f50baa.js +1 -0
- package/dist/client/_nuxt/{state-components.a223a28c.js → state-components.c2201640.js} +1 -1
- package/dist/client/_nuxt/{state-modules.c0927595.js → state-modules.8816f603.js} +1 -1
- package/dist/client/_nuxt/{storage-options.8fdc9b2a.js → storage-options.b1a5fc25.js} +1 -1
- package/dist/client/_nuxt/storage.713a7e46.js +1 -0
- package/dist/client/_nuxt/{terminals.cb4eb909.js → terminals.a1c82952.js} +1 -1
- package/dist/client/_nuxt/{timeline.60d410a7.js → timeline.9cfa88d9.js} +2 -2
- package/dist/client/_nuxt/{unocss-runtime.68d64d4a.js → unocss-runtime.dedd4a37.js} +1 -1
- package/dist/client/_nuxt/virtual-files.7dc060d0.js +1 -0
- package/dist/client/index.html +17 -17
- package/dist/client/modules/analyze-build/index.html +17 -17
- package/dist/client/modules/assets/index.html +17 -17
- package/dist/client/modules/components/index.html +17 -17
- package/dist/client/modules/hooks/index.html +17 -17
- package/dist/client/modules/imports/index.html +17 -17
- package/dist/client/modules/middleware/index.html +17 -17
- package/dist/client/modules/modules/index.html +17 -17
- package/dist/client/modules/open-graph/index.html +17 -17
- package/dist/client/modules/overview/index.html +17 -17
- package/dist/client/modules/pages/index.html +17 -17
- package/dist/client/modules/payload/index.html +17 -17
- package/dist/client/modules/plugins/index.html +17 -17
- package/dist/client/modules/runtime-configs/index.html +17 -17
- package/dist/client/modules/server-routes/index.html +17 -17
- package/dist/client/modules/storage/index.html +17 -17
- package/dist/client/modules/terminals/index.html +17 -17
- package/dist/client/modules/timeline/index.html +17 -17
- package/dist/client/modules/virtual-files/index.html +17 -17
- package/dist/client/settings/index.html +17 -17
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugins/devtools.client.mjs +7 -0
- package/dist/shared/{devtools.4169e037.mjs → devtools.18eefaee.mjs} +3 -0
- package/package.json +7 -9
- package/dist/client/__blank/index.html +0 -42
- package/dist/client/_nuxt/ComposableItem.vue.bd112256.js +0 -1
- package/dist/client/_nuxt/LaunchPage.vue.012ddba7.js +0 -1
- package/dist/client/_nuxt/NLink.vue.6dc3b4af.js +0 -1
- package/dist/client/_nuxt/NSectionBlock.012f83f1.css +0 -1
- package/dist/client/_nuxt/NSectionBlock.2d8e1431.js +0 -1
- package/dist/client/_nuxt/__blank.20eb2cab.js +0 -1
- package/dist/client/_nuxt/custom-_name_.9b02fa14.js +0 -1
- package/dist/client/_nuxt/entry.05b33d7f.js +0 -27
- package/dist/client/_nuxt/entry.79095383.css +0 -1
- package/dist/client/_nuxt/index.b2055c8f.js +0 -1
- package/dist/client/_nuxt/overview.f2e48477.js +0 -1
- package/dist/client/_nuxt/pages.745a0630.js +0 -1
- package/dist/client/_nuxt/payload.897ca8fa.js +0 -1
- package/dist/client/_nuxt/server-routes.91c861d0.js +0 -9
- package/dist/client/_nuxt/settings.367ae337.js +0 -1
- package/dist/client/_nuxt/storage.76034502.js +0 -1
- package/dist/client/_nuxt/virtual-files.829bd209.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as we,r as Ee,
|
|
1
|
+
import{d as we,r as Ee,aj as Oe,X as Pe,K as fe,L as Ie,o as te,m as he,k as oe,i as De,f as Z,h as ce,p as ge,t as pe,F as Re,bq as He,_ as xe,bs as Fe,Q as We,a as Ue,aw as Ne,n as $e,G as ke,b8 as je,v as Le,a1 as ze,j as Ke,aC as qe}from"./entry.54b63325.js";var Ae={exports:{}};(function(ne,Q){(function(J,G){ne.exports=G()})(self,()=>(()=>{var J={4567:function(P,r,o){var c=this&&this.__decorate||function(i,a,l,v){var m,h=arguments.length,p=h<3?a:v===null?v=Object.getOwnPropertyDescriptor(a,l):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(i,a,l,v);else for(var b=i.length-1;b>=0;b--)(m=i[b])&&(p=(h<3?m(p):h>3?m(a,l,p):m(a,l))||p);return h>3&&p&&Object.defineProperty(a,l,p),p},u=this&&this.__param||function(i,a){return function(l,v){a(l,v,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const n=o(9042),d=o(6114),f=o(9924),g=o(844),_=o(5596),e=o(4725),s=o(3656);let t=r.AccessibilityManager=class extends g.Disposable{constructor(i,a){super(),this._terminal=i,this._renderService=a,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let l=0;l<this._terminal.rows;l++)this._rowElements[l]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[l]);if(this._topBoundaryFocusListener=l=>this._handleBoundaryFocus(l,0),this._bottomBoundaryFocusListener=l=>this._handleBoundaryFocus(l,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new f.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(l=>this._handleResize(l.rows))),this.register(this._terminal.onRender(l=>this._refreshRows(l.start,l.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(l=>this._handleChar(l))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
|
|
2
2
|
`))),this.register(this._terminal.onA11yTab(l=>this._handleTab(l))),this.register(this._terminal.onKey(l=>this._handleKey(l.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new _.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,g.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(i){for(let a=0;a<i;a++)this._handleChar(" ")}_handleChar(i){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==i&&(this._charsToAnnounce+=i):this._charsToAnnounce+=i,i===`
|
|
3
3
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)),d.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,d.isMac&&this._liveRegion.remove()}_handleKey(i){this._clearLiveRegion(),/\p{Control}/u.test(i)||this._charsToConsume.push(i)}_refreshRows(i,a){this._liveRegionDebouncer.refresh(i,a,this._terminal.rows)}_renderRows(i,a){const l=this._terminal.buffer,v=l.lines.length.toString();for(let m=i;m<=a;m++){const h=l.translateBufferLineToString(l.ydisp+m,!0),p=(l.ydisp+m+1).toString(),b=this._rowElements[m];b&&(h.length===0?b.innerText=" ":b.textContent=h,b.setAttribute("aria-posinset",p),b.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(i,a){const l=i.target,v=this._rowElements[a===0?1:this._rowElements.length-2];if(l.getAttribute("aria-posinset")===(a===0?"1":`${this._terminal.buffer.lines.length}`)||i.relatedTarget!==v)return;let m,h;if(a===0?(m=l,h=this._rowElements.pop(),this._rowContainer.removeChild(h)):(m=this._rowElements.shift(),h=l,this._rowContainer.removeChild(m)),m.removeEventListener("focus",this._topBoundaryFocusListener),h.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){const p=this._createAccessibilityTreeNode();this._rowElements.unshift(p),this._rowContainer.insertAdjacentElement("afterbegin",p)}else{const p=this._createAccessibilityTreeNode();this._rowElements.push(p),this._rowContainer.appendChild(p)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),i.preventDefault(),i.stopImmediatePropagation()}_handleResize(i){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>i;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const i=document.createElement("div");return i.setAttribute("role","listitem"),i.tabIndex=-1,this._refreshRowDimensions(i),i}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let i=0;i<this._terminal.rows;i++)this._refreshRowDimensions(this._rowElements[i])}}_refreshRowDimensions(i){i.style.height=`${this._renderService.dimensions.css.cell.height}px`}};r.AccessibilityManager=t=c([u(1,e.IRenderService)],t)},3614:(P,r)=>{function o(d){return d.replace(/\r?\n/g,"\r")}function c(d,f){return f?"\x1B[200~"+d+"\x1B[201~":d}function u(d,f,g,_){d=c(d=o(d),g.decPrivateModes.bracketedPasteMode&&_.rawOptions.ignoreBracketedPasteMode!==!0),g.triggerDataEvent(d,!0),f.value=""}function n(d,f,g){const _=g.getBoundingClientRect(),e=d.clientX-_.left-10,s=d.clientY-_.top-10;f.style.width="20px",f.style.height="20px",f.style.left=`${e}px`,f.style.top=`${s}px`,f.style.zIndex="1000",f.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=o,r.bracketTextForPaste=c,r.copyHandler=function(d,f){d.clipboardData&&d.clipboardData.setData("text/plain",f.selectionText),d.preventDefault()},r.handlePasteEvent=function(d,f,g,_){d.stopPropagation(),d.clipboardData&&u(d.clipboardData.getData("text/plain"),f,g,_)},r.paste=u,r.moveTextAreaUnderMouseCursor=n,r.rightClickHandler=function(d,f,g,_,e){n(d,f,g),e&&_.rightClickSelect(d),f.value=_.selectionText,f.select()}},7239:(P,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const c=o(1505);r.ColorContrastCache=class{constructor(){this._color=new c.TwoKeyMap,this._css=new c.TwoKeyMap}setCss(u,n,d){this._css.set(u,n,d)}getCss(u,n){return this._css.get(u,n)}setColor(u,n,d){this._color.set(u,n,d)}getColor(u,n){return this._color.get(u,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(P,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(o,c,u,n){o.addEventListener(c,u,n);let d=!1;return{dispose:()=>{d||(d=!0,o.removeEventListener(c,u,n))}}}},6465:function(P,r,o){var c=this&&this.__decorate||function(e,s,t,i){var a,l=arguments.length,v=l<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,s,t,i);else for(var m=e.length-1;m>=0;m--)(a=e[m])&&(v=(l<3?a(v):l>3?a(s,t,v):a(s,t))||v);return l>3&&v&&Object.defineProperty(s,t,v),v},u=this&&this.__param||function(e,s){return function(t,i){s(t,i,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;const n=o(3656),d=o(8460),f=o(844),g=o(2585);let _=r.Linkifier2=class extends f.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new d.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new d.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,f.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,f.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const s=this._linkProviders.indexOf(e);s!==-1&&this._linkProviders.splice(s,1)}}}attachToDom(e,s,t){this._element=e,this._mouseService=s,this._renderService=t,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!s)return;this._isMouseOut=!1;const t=e.composedPath();for(let i=0;i<t.length;i++){const a=t[i];if(a.classList.contains("xterm"))break;if(a.classList.contains("xterm-hover"))return}this._lastBufferCell&&s.x===this._lastBufferCell.x&&s.y===this._lastBufferCell.y||(this._handleHover(s),this._lastBufferCell=s)}_handleHover(e){if(this._activeLine!==e.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(e,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,e)||(this._clearCurrentLink(),this._askForLink(e,!0))}_askForLink(e,s){var t,i;this._activeProviderReplies&&s||((t=this._activeProviderReplies)===null||t===void 0||t.forEach(l=>{l?.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let a=!1;for(const[l,v]of this._linkProviders.entries())s?!((i=this._activeProviderReplies)===null||i===void 0)&&i.get(l)&&(a=this._checkLinkProviderResult(l,e,a)):v.provideLinks(e.y,m=>{var h,p;if(this._isMouseOut)return;const b=m?.map(L=>({link:L}));(h=this._activeProviderReplies)===null||h===void 0||h.set(l,b),a=this._checkLinkProviderResult(l,e,a),((p=this._activeProviderReplies)===null||p===void 0?void 0:p.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,s){const t=new Set;for(let i=0;i<s.size;i++){const a=s.get(i);if(a)for(let l=0;l<a.length;l++){const v=a[l],m=v.link.range.start.y<e?0:v.link.range.start.x,h=v.link.range.end.y>e?this._bufferService.cols:v.link.range.end.x;for(let p=m;p<=h;p++){if(t.has(p)){a.splice(l--,1);break}t.add(p)}}}}_checkLinkProviderResult(e,s,t){var i;if(!this._activeProviderReplies)return t;const a=this._activeProviderReplies.get(e);let l=!1;for(let v=0;v<e;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(l=!0);if(!l&&a){const v=a.find(m=>this._linkAtPosition(m.link,s));v&&(t=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!t)for(let v=0;v<this._activeProviderReplies.size;v++){const m=(i=this._activeProviderReplies.get(v))===null||i===void 0?void 0:i.find(h=>this._linkAtPosition(h.link,s));if(m){t=!0,this._handleNewLink(m);break}}return t}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const s=this._positionFromMouseEvent(e,this._element,this._mouseService);s&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,s)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,s){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!s||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=s)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,f.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(e.link,s)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:e.link.decorations===void 0||e.link.decorations.underline,pointerCursor:e.link.decorations===void 0||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.pointerCursor},set:t=>{var i,a;!((i=this._currentLink)===null||i===void 0)&&i.state&&this._currentLink.state.decorations.pointerCursor!==t&&(this._currentLink.state.decorations.pointerCursor=t,this._currentLink.state.isHovered&&((a=this._element)===null||a===void 0||a.classList.toggle("xterm-cursor-pointer",t)))}},underline:{get:()=>{var t,i;return(i=(t=this._currentLink)===null||t===void 0?void 0:t.state)===null||i===void 0?void 0:i.decorations.underline},set:t=>{var i,a,l;!((i=this._currentLink)===null||i===void 0)&&i.state&&((l=(a=this._currentLink)===null||a===void 0?void 0:a.state)===null||l===void 0?void 0:l.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(t=>{if(!this._currentLink)return;const i=t.start===0?0:t.start+1+this._bufferService.buffer.ydisp,a=this._bufferService.buffer.ydisp+1+t.end;if(this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=a&&(this._clearCurrentLink(i,a),this._lastMouseEvent&&this._element)){const l=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);l&&this._askForLink(l,!1)}})))}_linkHover(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),s.hover&&s.hover(t,s.text)}_fireUnderlineEvent(e,s){const t=e.range,i=this._bufferService.buffer.ydisp,a=this._createLinkUnderlineEvent(t.start.x-1,t.start.y-i-1,t.end.x,t.end.y-i-1,void 0);(s?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(a)}_linkLeave(e,s,t){var i;!((i=this._currentLink)===null||i===void 0)&&i.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(s,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),s.leave&&s.leave(t,s.text)}_linkAtPosition(e,s){const t=e.range.start.y*this._bufferService.cols+e.range.start.x,i=e.range.end.y*this._bufferService.cols+e.range.end.x,a=s.y*this._bufferService.cols+s.x;return t<=a&&a<=i}_positionFromMouseEvent(e,s,t){const i=t.getCoords(e,s,this._bufferService.cols,this._bufferService.rows);if(i)return{x:i[0],y:i[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,s,t,i,a){return{x1:e,y1:s,x2:t,y2:i,cols:this._bufferService.cols,fg:a}}};r.Linkifier2=_=c([u(0,g.IBufferService)],_)},9042:(P,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(P,r,o){var c=this&&this.__decorate||function(_,e,s,t){var i,a=arguments.length,l=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,s):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(_,e,s,t);else for(var v=_.length-1;v>=0;v--)(i=_[v])&&(l=(a<3?i(l):a>3?i(e,s,l):i(e,s))||l);return a>3&&l&&Object.defineProperty(e,s,l),l},u=this&&this.__param||function(_,e){return function(s,t){e(s,t,_)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const n=o(511),d=o(2585);let f=r.OscLinkProvider=class{constructor(_,e,s){this._bufferService=_,this._optionsService=e,this._oscLinkService=s}provideLinks(_,e){var s;const t=this._bufferService.buffer.lines.get(_-1);if(!t)return void e(void 0);const i=[],a=this._optionsService.rawOptions.linkHandler,l=new n.CellData,v=t.getTrimmedLength();let m=-1,h=-1,p=!1;for(let b=0;b<v;b++)if(h!==-1||t.hasContent(b)){if(t.loadCell(b,l),l.hasExtendedAttrs()&&l.extended.urlId){if(h===-1){h=b,m=l.extended.urlId;continue}p=l.extended.urlId!==m}else h!==-1&&(p=!0);if(p||h!==-1&&b===v-1){const L=(s=this._oscLinkService.getLinkData(m))===null||s===void 0?void 0:s.uri;if(L){const y={start:{x:h+1,y:_},end:{x:b+(p||b!==v-1?0:1),y:_}};let k=!1;if(!a?.allowNonHttpProtocols)try{const x=new URL(L);["http:","https:"].includes(x.protocol)||(k=!0)}catch{k=!0}k||i.push({text:L,range:y,activate:(x,T)=>a?a.activate(x,T,y):g(0,T),hover:(x,T)=>{var O;return(O=a?.hover)===null||O===void 0?void 0:O.call(a,x,T,y)},leave:(x,T)=>{var O;return(O=a?.leave)===null||O===void 0?void 0:O.call(a,x,T,y)}})}p=!1,l.hasExtendedAttrs()&&l.extended.urlId?(h=b,m=l.extended.urlId):(h=-1,m=-1)}}e(i)}};function g(_,e){if(confirm(`Do you want to navigate to ${e}?
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as C,a as S,aC as V,o,m as r,k as t,a3 as N,f as a,t as _,a8 as j,F as y,n as F,h as v,r as D,w as Y,au as K,W as M,bs as X,p as b,i as m,E as z,q as Z,e as Q,al as G,j as h,ap as P,v as T,C as O,a7 as H,aE as ee,aP as se,a5 as te,aO as oe,_ as J,aq as ne,aU as ae,bt as le,L as ie,a6 as re,A as ce,J as R,V as pe}from"./entry.05b33d7f.js";import{_ as W}from"./DurationDisplay.vue.1f34b658.js";import{_ as U}from"./Badge.a4bd58d4.js";import{_ as de}from"./ComposableItem.vue.bd112256.js";import{U as ue}from"./json-editor-vue.1bc58c26.js";import{_ as me}from"./FilepathItem.vue.a4d269b8.js";import{_ as ke}from"./LaunchPage.vue.012ddba7.js";import{_ as _e}from"./NLink.vue.6dc3b4af.js";import{_ as fe}from"./CodeDiff.vue.a8c9e639.js";import{_ as he}from"./HelpFab.vue.c0c3f8e6.js";import"./NMarkdown.vue.7a10e6e6.js";import"./client.c59e50d6.js";import"./constants.4e5eba24.js";import"./NCodeBlock.vue.01eb6d1c.js";const ye=C({__name:"TimelineItemFunction",props:{item:{}},setup(f){const p=f,c=S(()=>V(p.item.name,50,60,"_op_")),e=S(()=>c.value.replace(/_op_/,"1")),n=S(()=>V(p.item.name,50,40)),l=S(()=>c.value.replace(/_op_/,"0.2"));return(d,s)=>(o(),r("button",{class:"group",style:N({color:a(e),borderLeft:`2px solid ${a(e)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[t("div",{style:N({backgroundColor:a(l)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),t("div",{style:N({color:a(n),"--c":a(e)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},_(d.item.name),5)],4))}}),ve={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=C({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(f,{emit:p}){const c=f,e=j(()=>c.segment.start,{updateInterval:1e3,showSecond:!0,messages:{justNow:"",past:n=>n,future:n=>n,invalid:"-",second:n=>n?`${n}s`:"",minute:n=>`${n}m`,hour:n=>`${n}h`,week:n=>`${n}w`,day:n=>`${n}d`,month:n=>`${n}mo`,year:n=>`${n}y`}});return(n,l)=>{const d=ye;return o(),r("div",ve,[t("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","font-mono":"","text-green6":"",onClick:l[0]||(l[0]=s=>n.segment.route?p("select",n.segment.route):void 0)},_(n.segment.route?.event.to),1),t("div",be,_(a(e))+" ago ",1),t("div",null,[(o(!0),r(y,null,F(n.segment.functions,(s,i)=>(o(),v(d,{key:i,item:s.event,style:N({position:"absolute",minWidth:`${s.relativeWidth*100}%`,maxWidth:`${s.relativeWidth*100}%`,top:`${4+s.layer*1.6}em`,left:`${s.relativeStart*100}%`}),onClick:u=>p("select",s)},null,8,["item","style","onClick"]))),128))])])}}}),$e=3e3,xe=50;function Ae(f){const p=[];let c={start:0,end:0,events:[],functions:[],duration:0};for(const e of f){const n=e.end||e.start;(e.start-c.end>$e||e.type==="route")&&(c={start:e.start,end:n,events:[],functions:[],duration:0},p.push(c)),c.events.push(e),c.end=n+xe}return p.forEach((e,n)=>{const l=e.end-e.start,d=[];e.duration=l,e.previousGap=n>0?e.start-p[n-1].end:0,e.events.forEach(s=>{const i=s.end||s.start;let u=0;s.type!=="route"&&(u=d.findIndex($=>$<=s.start),u===-1?(u=d.length,d.push(i+1e3)):d[u]=i+1e3);const g={event:s,segment:e,relativeStart:(s.start-e.start)/l,relativeWidth:(i-s.start)/l,layer:u};s.type==="function"?e.functions.push(g):e.route=g})}),p}const De={relative:""},Ce={key:0,border:"x base","h-full":"","flex-inline":"","bg-true-gray-1":"",py15:"","text-xs":"","write-vertical-left":"",op50:"","dark:bg-true-gray-9":""},Be=C({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(f,{emit:p}){const c=f,e=D(),n=D(),l=D(),d=D(),s=D(!0),i=D(1.5),u=S(()=>Ae(c.data.events)),g=S(()=>(c.data.events.length,e.value?.scrollWidth||window.innerWidth));function $(){d.value&&(d.value.style.width=`${g.value}px`)}function I(){s.value&&e.value&&(e.value.scrollTo({left:e.value.scrollWidth-e.value.clientWidth,behavior:"smooth"}),l.value.scrollTo({left:e.value.scrollWidth-e.value.clientWidth,behavior:"smooth"}))}return Y(()=>c.data.events.length,async()=>{await K(),$(),I()},{flush:"post"}),M(e,"scroll",()=>{l.value.scrollLeft!==e.value.scrollLeft&&($(),l.value.scrollLeft=e.value.scrollLeft,s.value=e.value.scrollLeft>=e.value.scrollWidth-e.value.clientWidth)}),M(l,"scroll",()=>{l.value.scrollLeft!==e.value.scrollLeft&&($(),e.value.scrollLeft=l.value.scrollLeft)}),M(e,"wheel",x=>{x.altKey?(i.value=X(i.value+x.deltaY/200,.5,3),$()):e.value.scrollLeft+=x.deltaY}),(x,E)=>{const A=W,B=ge;return o(),r(y,null,[t("div",De,[t("div",{ref_key:"minimap",ref:n,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(o(!0),r(y,null,F(a(u),(k,L)=>(o(),r("div",{key:L,relative:"","h-full":"","flex-inline":"",style:N({width:`${Math.max(100,k.duration/10)/a(g)*100}%`})},[(o(!0),r(y,null,F(k.functions,(w,q)=>(o(),r("div",{key:q,"h-3px":"",rounded:"",style:N({width:`max(${w.relativeWidth*100}%, 10px)`,position:"absolute",top:`${w.layer*4}px`,left:`${w.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in x?x.getHashColorFromString:a(V))(w.event.name,50,60)})},null,4))),128)),k.route?(o(),r("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:N({left:`${k.route.relativeStart*100}%`})},null,4)):b("",!0)],4))),128))],512),t("div",{ref_key:"minimapScroller",ref:l,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[t("div",{ref_key:"minimapScrollerInner",ref:d,"h-1px":""},null,512)],512)]),t("div",{ref_key:"scroller",ref:e,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(o(!0),r(y,null,F(a(u),(k,L)=>(o(),r(y,{key:L},[k.previousGap&&k.previousGap>=200?(o(),r("div",Ce,[m(A,{op50:"",duration:k.previousGap,color:!1},null,8,["duration"])])):b("",!0),m(B,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:z(L===a(u).length-1?"border-r border-base":""),segment:k,style:N({width:`${Math.max(50,k.duration/10)*a(i)}px`}),onSelect:E[0]||(E[0]=w=>p("select",w))},null,8,["class","segment","style"])],64))),128))],512)],64)}}});const we=Z(Be,[["__scopeId","data-v-a2c475c0"]]),Te={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Se=["onClick"],Ne=t("div",{"i-carbon-function":"",op50:""},null,-1),Ee={flex:"~","font-mono":""},Fe=t("div",{op30:""}," ( ",-1),Ie={key:0,mr2:"",op30:""},Le={op75:""},Ve=t("div",{op30:""}," ) ",-1),We=t("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[t("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),Me={flex:"~ col items-start"},je={"text-xs":"","font-mono":"",op30:""},ze={"font-bold":"","font-mono":"","text-green":""},Oe=t("div",{"flex-auto":""},null,-1),Re=t("div",{"min-h-100":""},null,-1),Ge=C({__name:"TimelineList",props:{data:{}},emits:["select"],setup(f,{emit:p}){return(c,e)=>{const n=W;return o(),r("div",Te,[(o(!0),r(y,null,F(c.data.events,(l,d)=>(o(),r("button",{key:d,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:s=>p("select",l)},[l.type==="function"?(o(),r(y,{key:0},[Ne,t("div",{"font-mono":"",style:N({color:l.type==="function"?("getHashColorFromString"in c?c.getHashColorFromString:a(V))(l.name,50,60):""})},_(l.name),5),t("div",Ee,[Fe,(o(!0),r(y,null,F(l.args,(s,i)=>(o(),r(y,{key:i},[d?(o(),r("div",Ie," , ")):b("",!0),t("div",Le,_(s===null?"null":s===void 0?"undefined":typeof s=="function"?"[function]":Array.isArray(s)?"[Array]":typeof s=="object"?"[object]":JSON.stringify(s)),1)],64))),128)),Ve])],64)):(o(),r(y,{key:1},[We,t("div",Me,[t("div",je,_(l.from),1),t("div",ze,_(l.to),1)])],64)),Oe,l.end?(o(),v(n,{key:2,duration:l.end-l.start,color:l.type==="function"},null,8,["duration","color"])):b("",!0)],8,Se))),128)),Re])}}}),Pe={key:0,"text-blue":""},He={key:1,"text-purple":""},Je={key:2,"text-green":""},Ue={key:3,"text-gray":""},qe={key:4,"text-gray":""},Ye={key:5,"text-gray":""},Ke={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Xe={key:1},Ze={p2:"","text-sm":"",border:"t base"},Qe=C({__name:"TimelineArgumentView",props:{value:{}},setup(f){const p=f,c=D(),e=D();function n(){try{c.value=JSON.parse(JSON.stringify(p.value))}catch(s){console.error(s),e.value=s}}const l=C({emits:["setup"],setup(s,{emit:i}){return i("setup"),()=>null}}),d=Q();return(s,i)=>{const u=O,g=G("VMenu");return typeof s.value=="string"?(o(),r("div",Pe,_(JSON.stringify(s.value)),1)):typeof s.value=="number"?(o(),r("div",He,_(s.value),1)):typeof s.value=="boolean"?(o(),r("div",Je,_(s.value),1)):typeof s.value>"u"?(o(),r("div",Ue," undefined ")):typeof s.value=="function"?(o(),r("div",qe," [Function"+_(s.value.name?`: ${s.value.name}`:"")+"] ",1)):s.value===null?(o(),r("div",Ye," null ")):(o(),v(g,{key:6,placement:"top"},{popper:h(()=>[m(a(l),{onSetup:n}),a(e)?(o(),r("div",Ke," Failed to display object: "+_(a(e)),1)):a(c)?(o(),r("div",Xe,[m(a(ue),P({"model-value":a(c)},s.$attrs,{class:["json-editor-vue",[s.$colorMode.value==="dark"?"jse-theme-dark":""]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":!0,indentation:2,"tab-size":2}),null,16,["model-value","class"]),t("div",Ze,[m(u,{title:"Copy to clipboard",icon:"carbon-copy",onClick:i[0]||(i[0]=$=>a(d)(JSON.stringify(a(c),null,2)))},{default:h(()=>[T(" Copy ")]),_:1})])])):b("",!0)]),default:h(()=>[t("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:z([Array.isArray(s.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},_(Array.isArray(s.value)?`[Array(${s.value.length})]`:"[Object]"),3)]),_:1}))}}}),es={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},ss={"mx--1":""},ts={flex:"~ gap-1","font-mono":""},os={key:1},ns=t("span",{ml1:"",op30:""},"(",-1),as={key:0,op30:""},ls=t("span",{op30:""},")",-1),is={flex:"~ gap-1","text-sm":""},rs=t("span",{mx1:"",op50:""},"·",-1),cs={class:"text-sm text-gray-400"},ps={key:0,class:"text-xs text-gray-400",mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},ds={"text-right":""},us={"ws-nowrap":""},ms=C({__name:"TimelineDetailsFunction",props:{record:{}},setup(f){const p=f,c=H(),e=j(()=>p.record.start,{showSecond:!0});function n(i){let u=new URL(i).pathname;return u.startsWith("/_nuxt/")&&(u=u.slice(6)),u.startsWith("/@id/virtual:nuxt:")?`#build/${u.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):u.includes("/@fs/")?`/${u.split("/@fs/")[1]}`:(c.value?.rootDir||"")+u}const l=ee(),d=S(()=>l.value?.metadata),s=S(()=>l.value?.imports.find(i=>i.as===p.record.name));return(i,u)=>{const g=U,$=de,I=Qe,x=W,E=me;return i.record?(o(),r("div",es,[t("div",ss,[m(g,{"bg-yellow-600:10":"","text-yellow-600":"",op75:""},{default:h(()=>[T(" Function call ")]),_:1})]),t("div",ts,[a(s)?(o(),v($,{key:0,item:a(s),metadata:a(d),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(o(),r("span",os,_(i.record.name),1)),ns,(o(!0),r(y,null,F(i.record.args,(A,B)=>(o(),r(y,{key:B},[B?(o(),r("span",as,", ")):b("",!0),m(I,{value:A},null,8,["value"])],64))),128)),ls]),t("div",is,[i.record.end?(o(),v(x,{key:0,duration:i.record.end-i.record.start},null,8,["duration"])):b("",!0),rs,t("div",cs,_(a(e)),1)]),i.record.stacktrace?(o(),r("div",ps,[(o(!0),r(y,null,F(i.record.stacktrace,(A,B)=>(o(),r(y,{key:B},[t("div",ds,_(A.functionName||"(anonymous)"),1),t("div",us,[A.fileName?(o(),v(E,{key:0,filepath:`${n(A.fileName)}:${A.lineNumber}:${A.columnNumber}`,subpath:""},null,8,["filepath"])):b("",!0)])],64))),128))])):b("",!0)])):b("",!0)}}}),ks={key:0,"p-4":"",flex:"~ col gap-2"},_s={"mx--1":""},fs={flex:"~ gap-1 items-center","font-mono":""},hs={op50:""},ys=t("span",{"i-carbon-arrow-right":"",op50:""},null,-1),vs={flex:"~ gap-1","text-sm":""},bs=t("span",{mx1:"",op50:""},"·",-1),gs={class:"text-sm text-gray-400"},$s=C({__name:"TimelineDetailsRoute",props:{record:{}},setup(f){const p=f,c=j(()=>p.record.start,{showSecond:!0});return(e,n)=>{const l=U,d=W;return e.record?(o(),r("div",ks,[t("div",_s,[m(l,{"bg-green-400:10":"","text-green-400":"",op50:""},{default:h(()=>[T(" Route Change ")]),_:1})]),t("div",fs,[t("span",hs,_(e.record.from),1),ys,t("span",null,_(e.record.to),1)]),t("div",vs,[e.record.end?(o(),v(d,{key:0,duration:e.record.end-e.record.start},null,8,["duration"])):b("",!0),bs,t("div",gs,_(a(c)),1)])])):b("",!0)}}}),xs={relative:"","h-full":"","w-full":"","of-auto":""},As={inheritAttrs:!1},Ds=C({...As,__name:"DrawerBottom",props:{modelValue:{type:Boolean},navbar:{},autoClose:{type:Boolean}},emits:["close"],setup(f,{emit:p}){const c=f,e=D();se(e,()=>{c.modelValue&&c.autoClose&&p("close")},{ignore:["a","button","summary"]});const n=document.querySelector("#nuxt-devtools-side-nav")?.getBoundingClientRect().width;return(l,d)=>{const s=J;return o(),v(oe,{"enter-active-class":"duration-200 ease-in","enter-from-class":"transform translate-y-1/1","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"transform translate-y-1/1"},{default:h(()=>[l.modelValue?(o(),r("div",P({key:0,ref_key:"el",ref:e,border:"t base",flex:"~ col gap-1",absolute:"","bottom-0":"","right-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","glass-effect":"",style:{left:`${a(n)}px`}},l.$attrs),[m(s,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",onClick:d[0]||(d[0]=i=>l.$emit("close"))}),t("div",xs,[te(l.$slots,"default")])],16)):b("",!0)]),_:3})}}}),Cs={key:0,"h-screen":"","of-hidden":""},Bs={"h-screen":"","w-full":"",flex:"","flex-col":""},ws={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},Ts={"text-sm":""},Ss=t("div",{"flex-auto":""},null,-1),Ns={"min-h-50":"",px3:"",py2:""},Es=C({__name:"TimelineView",setup(f){const p=ne(),c=D("table"),e=D(),n=S(()=>p.value?.metrics.clientTimeline());function l(){n.value&&(n.value.events=[])}function d(){c.value=c.value==="table"?"list":"table"}return(s,i)=>{const u=G("VTooltip"),g=O,$=J,I=we,x=Ge,E=ms,A=$s,B=Ds;return a(n)?(o(),r("div",Cs,[t("div",Bs,[t("div",ws,[m(u,{flex:""},{popper:h(()=>[t("div",Ts,_(a(n).options.enabled?"Recording...":"Paused"),1)]),default:h(()=>[t("div",{"text-lg":"",class:z(a(n).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),a(n).options.enabled?(o(),v(g,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:i[1]||(i[1]=k=>a(n).options.enabled=!1)},{default:h(()=>[T(" Stop Tracking ")]),_:1})):(o(),v(g,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:i[0]||(i[0]=k=>a(n).options.enabled=!0)},{default:h(()=>[T(" Start Tracking ")]),_:1})),Ss,m($,{icon:a(c)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",onClick:d},null,8,["icon"]),m($,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",onClick:l})]),a(c)==="table"?(o(),v(I,{key:0,data:{...a(n)},onSelect:i[2]||(i[2]=k=>e.value=k.event)},null,8,["data"])):(o(),v(x,{key:1,data:{...a(n)},onSelect:i[3]||(i[3]=k=>e.value=k)},null,8,["data"]))]),m(B,{"model-value":!!a(e),"auto-close":"",onClose:i[4]||(i[4]=k=>e.value=void 0)},{default:h(()=>[t("div",Ns,[a(e)?.type==="function"?(o(),v(E,{key:0,record:a(e)},null,8,["record"])):a(e)?.type==="route"?(o(),v(A,{key:1,record:a(e)},null,8,["record"])):b("",!0)])]),_:1},8,["model-value"])])):b("",!0)}}}),Fs={class:"markdown-body"},Is=t("h1",null,"Timeline",-1),Ls=t("p",null,[t("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Vs=ae(`<p>Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.</p><h2>Function calls</h2><p>Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through <code>import {} from '#imports'</code>.</p><pre class="shiki shiki-themes vitesse-light vitesse-dark" style="background-color:#ffffff;--shiki-dark-bg:#121212;color:#393a34;--shiki-dark:#dbd7caee;" tabindex="0"><code><span class="line"><span style="color:#999999;--shiki-dark:#666666;"><</span><span style="color:#1E754F;--shiki-dark:#4D9375;">script</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> setup</span><span style="color:#999999;--shiki-dark:#666666;">></span></span>
|
|
1
|
+
import{d as C,a as S,aD as L,o,m as r,k as t,a4 as N,f as a,t as _,a9 as j,F as y,n as E,h as v,r as D,w as Y,av as K,X as M,bt as X,p as b,i as m,G as z,q as Q,e as Z,am as G,j as h,aq as P,v as T,E as O,a8 as H,aF as ee,aQ as se,a6 as te,aP as oe,_ as J,ar as ne,aV as ae,bu as le,M as ie,a7 as re,A as ce,K as R,W as pe}from"./entry.54b63325.js";import{_ as W}from"./DurationDisplay.vue.8da73fd3.js";import{_ as q}from"./Badge.15b76164.js";import{_ as de}from"./ComposableItem.vue.e263b9a9.js";import{U as ue}from"./json-editor-vue.ce96762e.js";import{_ as me}from"./FilepathItem.vue.7bd675c6.js";import{_ as ke}from"./LaunchPage.vue.f8df9e2a.js";import{_ as _e}from"./NLink.vue.e0a3a39a.js";import{_ as fe}from"./CodeDiff.vue.0e58df1f.js";import{_ as he}from"./HelpFab.vue.f082102a.js";import"./NMarkdown.vue.d2063d22.js";import"./client.d926285a.js";import"./constants.4e5eba24.js";import"./NCodeBlock.vue.84865d5b.js";const ye=C({__name:"TimelineItemFunction",props:{item:{}},setup(f){const p=f,c=S(()=>L(p.item.name,50,60,"_op_")),e=S(()=>c.value.replace(/_op_/,"1")),n=S(()=>L(p.item.name,50,40)),l=S(()=>c.value.replace(/_op_/,"0.2"));return(d,s)=>(o(),r("button",{class:"group",style:N({color:a(e),borderLeft:`2px solid ${a(e)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[t("div",{style:N({backgroundColor:a(l)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),t("div",{style:N({color:a(n),"--c":a(e)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},_(d.item.name),5)],4))}}),ve={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=C({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(f,{emit:p}){const c=f,e=j(()=>c.segment.start,{updateInterval:1e3,showSecond:!0,messages:{justNow:"",past:n=>n,future:n=>n,invalid:"-",second:n=>n?`${n}s`:"",minute:n=>`${n}m`,hour:n=>`${n}h`,week:n=>`${n}w`,day:n=>`${n}d`,month:n=>`${n}mo`,year:n=>`${n}y`}});return(n,l)=>{const d=ye;return o(),r("div",ve,[t("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","font-mono":"","text-green6":"",onClick:l[0]||(l[0]=s=>n.segment.route?p("select",n.segment.route):void 0)},_(n.segment.route?.event.to),1),t("div",be,_(a(e))+" ago ",1),t("div",null,[(o(!0),r(y,null,E(n.segment.functions,(s,i)=>(o(),v(d,{key:i,item:s.event,style:N({position:"absolute",minWidth:`${s.relativeWidth*100}%`,maxWidth:`${s.relativeWidth*100}%`,top:`${4+s.layer*1.6}em`,left:`${s.relativeStart*100}%`}),onClick:u=>p("select",s)},null,8,["item","style","onClick"]))),128))])])}}}),$e=3e3,xe=50;function Ae(f){const p=[];let c={start:0,end:0,events:[],functions:[],duration:0};for(const e of f){const n=e.end||e.start;(e.start-c.end>$e||e.type==="route")&&(c={start:e.start,end:n,events:[],functions:[],duration:0},p.push(c)),c.events.push(e),c.end=n+xe}return p.forEach((e,n)=>{const l=e.end-e.start,d=[];e.duration=l,e.previousGap=n>0?e.start-p[n-1].end:0,e.events.forEach(s=>{const i=s.end||s.start;let u=0;s.type!=="route"&&(u=d.findIndex($=>$<=s.start),u===-1?(u=d.length,d.push(i+1e3)):d[u]=i+1e3);const g={event:s,segment:e,relativeStart:(s.start-e.start)/l,relativeWidth:(i-s.start)/l,layer:u};s.type==="function"?e.functions.push(g):e.route=g})}),p}const De={relative:""},Ce={key:0,border:"x base","h-full":"","flex-inline":"","bg-true-gray-1":"",py15:"","text-xs":"","write-vertical-left":"",op50:"","dark:bg-true-gray-9":""},Be=C({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(f,{emit:p}){const c=f,e=D(),n=D(),l=D(),d=D(),s=D(!0),i=D(1.5),u=S(()=>Ae(c.data.events)),g=S(()=>(c.data.events.length,e.value?.scrollWidth||window.innerWidth));function $(){d.value&&(d.value.style.width=`${g.value}px`)}function I(){s.value&&e.value&&(e.value.scrollTo({left:e.value.scrollWidth-e.value.clientWidth,behavior:"smooth"}),l.value.scrollTo({left:e.value.scrollWidth-e.value.clientWidth,behavior:"smooth"}))}return Y(()=>c.data.events.length,async()=>{await K(),$(),I()},{flush:"post"}),M(e,"scroll",()=>{l.value.scrollLeft!==e.value.scrollLeft&&($(),l.value.scrollLeft=e.value.scrollLeft,s.value=e.value.scrollLeft>=e.value.scrollWidth-e.value.clientWidth)}),M(l,"scroll",()=>{l.value.scrollLeft!==e.value.scrollLeft&&($(),e.value.scrollLeft=l.value.scrollLeft)}),M(e,"wheel",x=>{x.altKey?(i.value=X(i.value+x.deltaY/200,.5,3),$()):e.value.scrollLeft+=x.deltaY}),(x,F)=>{const A=W,B=ge;return o(),r(y,null,[t("div",De,[t("div",{ref_key:"minimap",ref:n,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(o(!0),r(y,null,E(a(u),(k,V)=>(o(),r("div",{key:V,relative:"","h-full":"","flex-inline":"",style:N({width:`${Math.max(100,k.duration/10)/a(g)*100}%`})},[(o(!0),r(y,null,E(k.functions,(w,U)=>(o(),r("div",{key:U,"h-3px":"",rounded:"",style:N({width:`max(${w.relativeWidth*100}%, 10px)`,position:"absolute",top:`${w.layer*4}px`,left:`${w.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in x?x.getHashColorFromString:a(L))(w.event.name,50,60)})},null,4))),128)),k.route?(o(),r("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:N({left:`${k.route.relativeStart*100}%`})},null,4)):b("",!0)],4))),128))],512),t("div",{ref_key:"minimapScroller",ref:l,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[t("div",{ref_key:"minimapScrollerInner",ref:d,"h-1px":""},null,512)],512)]),t("div",{ref_key:"scroller",ref:e,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(o(!0),r(y,null,E(a(u),(k,V)=>(o(),r(y,{key:V},[k.previousGap&&k.previousGap>=200?(o(),r("div",Ce,[m(A,{op50:"",duration:k.previousGap,color:!1},null,8,["duration"])])):b("",!0),m(B,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:z(V===a(u).length-1?"border-r border-base":""),segment:k,style:N({width:`${Math.max(50,k.duration/10)*a(i)}px`}),onSelect:F[0]||(F[0]=w=>p("select",w))},null,8,["class","segment","style"])],64))),128))],512)],64)}}});const we=Q(Be,[["__scopeId","data-v-a2c475c0"]]),Te={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Se=["onClick"],Ne=t("div",{"i-carbon-function":"",op50:""},null,-1),Fe={flex:"~","font-mono":""},Ee=t("div",{op30:""}," ( ",-1),Ie={key:0,mr2:"",op30:""},Ve={op75:""},Le=t("div",{op30:""}," ) ",-1),We=t("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[t("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),Me={flex:"~ col items-start"},je={"text-xs":"","font-mono":"",op30:""},ze={"font-bold":"","font-mono":"","text-green":""},Oe=t("div",{"flex-auto":""},null,-1),Re=t("div",{"min-h-100":""},null,-1),Ge=C({__name:"TimelineList",props:{data:{}},emits:["select"],setup(f,{emit:p}){return(c,e)=>{const n=W;return o(),r("div",Te,[(o(!0),r(y,null,E(c.data.events,(l,d)=>(o(),r("button",{key:d,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:s=>p("select",l)},[l.type==="function"?(o(),r(y,{key:0},[Ne,t("div",{"font-mono":"",style:N({color:l.type==="function"?("getHashColorFromString"in c?c.getHashColorFromString:a(L))(l.name,50,60):""})},_(l.name),5),t("div",Fe,[Ee,(o(!0),r(y,null,E(l.args,(s,i)=>(o(),r(y,{key:i},[d?(o(),r("div",Ie," , ")):b("",!0),t("div",Ve,_(s===null?"null":s===void 0?"undefined":typeof s=="function"?"[function]":Array.isArray(s)?"[Array]":typeof s=="object"?"[object]":JSON.stringify(s)),1)],64))),128)),Le])],64)):(o(),r(y,{key:1},[We,t("div",Me,[t("div",je,_(l.from),1),t("div",ze,_(l.to),1)])],64)),Oe,l.end?(o(),v(n,{key:2,duration:l.end-l.start,color:l.type==="function"},null,8,["duration","color"])):b("",!0)],8,Se))),128)),Re])}}}),Pe={key:0,"text-blue":""},He={key:1,"text-purple":""},Je={key:2,"text-green":""},qe={key:3,"text-gray":""},Ue={key:4,"text-gray":""},Ye={key:5,"text-gray":""},Ke={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Xe={key:1},Qe={p2:"","text-sm":"",border:"t base"},Ze=C({__name:"TimelineArgumentView",props:{value:{}},setup(f){const p=f,c=D(),e=D();function n(){try{c.value=JSON.parse(JSON.stringify(p.value))}catch(s){console.error(s),e.value=s}}const l=C({emits:["setup"],setup(s,{emit:i}){return i("setup"),()=>null}}),d=Z();return(s,i)=>{const u=O,g=G("VMenu");return typeof s.value=="string"?(o(),r("div",Pe,_(JSON.stringify(s.value)),1)):typeof s.value=="number"?(o(),r("div",He,_(s.value),1)):typeof s.value=="boolean"?(o(),r("div",Je,_(s.value),1)):typeof s.value>"u"?(o(),r("div",qe," undefined ")):typeof s.value=="function"?(o(),r("div",Ue," [Function"+_(s.value.name?`: ${s.value.name}`:"")+"] ",1)):s.value===null?(o(),r("div",Ye," null ")):(o(),v(g,{key:6,placement:"top"},{popper:h(()=>[m(a(l),{onSetup:n}),a(e)?(o(),r("div",Ke," Failed to display object: "+_(a(e)),1)):a(c)?(o(),r("div",Xe,[m(a(ue),P({"model-value":a(c)},s.$attrs,{class:["json-editor-vue",[s.$colorMode.value==="dark"?"jse-theme-dark":""]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":!0,indentation:2,"tab-size":2}),null,16,["model-value","class"]),t("div",Qe,[m(u,{title:"Copy to clipboard",icon:"carbon-copy",onClick:i[0]||(i[0]=$=>a(d)(JSON.stringify(a(c),null,2)))},{default:h(()=>[T(" Copy ")]),_:1})])])):b("",!0)]),default:h(()=>[t("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:z([Array.isArray(s.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},_(Array.isArray(s.value)?`[Array(${s.value.length})]`:"[Object]"),3)]),_:1}))}}}),es={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},ss={"mx--1":""},ts={flex:"~ gap-1","font-mono":""},os={key:1},ns=t("span",{ml1:"",op30:""},"(",-1),as={key:0,op30:""},ls=t("span",{op30:""},")",-1),is={flex:"~ gap-1","text-sm":""},rs=t("span",{mx1:"",op50:""},"·",-1),cs={class:"text-sm text-gray-400"},ps={key:0,class:"text-xs text-gray-400",mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},ds={"text-right":""},us={"ws-nowrap":""},ms=C({__name:"TimelineDetailsFunction",props:{record:{}},setup(f){const p=f,c=H(),e=j(()=>p.record.start,{showSecond:!0});function n(i){let u=new URL(i).pathname;return u.startsWith("/_nuxt/")&&(u=u.slice(6)),u.startsWith("/@id/virtual:nuxt:")?`#build/${u.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):u.includes("/@fs/")?`/${u.split("/@fs/")[1]}`:(c.value?.rootDir||"")+u}const l=ee(),d=S(()=>l.value?.metadata),s=S(()=>l.value?.imports.find(i=>i.as===p.record.name));return(i,u)=>{const g=q,$=de,I=Ze,x=W,F=me;return i.record?(o(),r("div",es,[t("div",ss,[m(g,{"bg-yellow-600:10":"","text-yellow-600":"",op75:""},{default:h(()=>[T(" Function call ")]),_:1})]),t("div",ts,[a(s)?(o(),v($,{key:0,item:a(s),metadata:a(d),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(o(),r("span",os,_(i.record.name),1)),ns,(o(!0),r(y,null,E(i.record.args,(A,B)=>(o(),r(y,{key:B},[B?(o(),r("span",as,", ")):b("",!0),m(I,{value:A},null,8,["value"])],64))),128)),ls]),t("div",is,[i.record.end?(o(),v(x,{key:0,duration:i.record.end-i.record.start},null,8,["duration"])):b("",!0),rs,t("div",cs,_(a(e)),1)]),i.record.stacktrace?(o(),r("div",ps,[(o(!0),r(y,null,E(i.record.stacktrace,(A,B)=>(o(),r(y,{key:B},[t("div",ds,_(A.functionName||"(anonymous)"),1),t("div",us,[A.fileName?(o(),v(F,{key:0,filepath:`${n(A.fileName)}:${A.lineNumber}:${A.columnNumber}`,subpath:""},null,8,["filepath"])):b("",!0)])],64))),128))])):b("",!0)])):b("",!0)}}}),ks={key:0,"p-4":"",flex:"~ col gap-2"},_s={"mx--1":""},fs={flex:"~ gap-1 items-center","font-mono":""},hs={op50:""},ys=t("span",{"i-carbon-arrow-right":"",op50:""},null,-1),vs={flex:"~ gap-1","text-sm":""},bs=t("span",{mx1:"",op50:""},"·",-1),gs={class:"text-sm text-gray-400"},$s=C({__name:"TimelineDetailsRoute",props:{record:{}},setup(f){const p=f,c=j(()=>p.record.start,{showSecond:!0});return(e,n)=>{const l=q,d=W;return e.record?(o(),r("div",ks,[t("div",_s,[m(l,{"bg-green-400:10":"","text-green-400":"",op50:""},{default:h(()=>[T(" Route Change ")]),_:1})]),t("div",fs,[t("span",hs,_(e.record.from),1),ys,t("span",null,_(e.record.to),1)]),t("div",vs,[e.record.end?(o(),v(d,{key:0,duration:e.record.end-e.record.start},null,8,["duration"])):b("",!0),bs,t("div",gs,_(a(c)),1)])])):b("",!0)}}}),xs={relative:"","h-full":"","w-full":"","of-auto":""},As={inheritAttrs:!1},Ds=C({...As,__name:"DrawerBottom",props:{modelValue:{type:Boolean},navbar:{},autoClose:{type:Boolean}},emits:["close"],setup(f,{emit:p}){const c=f,e=D();se(e,()=>{c.modelValue&&c.autoClose&&p("close")},{ignore:["a","button","summary"]});const n=document.querySelector("#nuxt-devtools-side-nav")?.getBoundingClientRect().width;return(l,d)=>{const s=J;return o(),v(oe,{"enter-active-class":"duration-200 ease-in","enter-from-class":"transform translate-y-1/1","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"transform translate-y-1/1"},{default:h(()=>[l.modelValue?(o(),r("div",P({key:0,ref_key:"el",ref:e,border:"t base",flex:"~ col gap-1",absolute:"","bottom-0":"","right-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","glass-effect":"",style:{left:`${a(n)}px`}},l.$attrs),[m(s,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",onClick:d[0]||(d[0]=i=>l.$emit("close"))}),t("div",xs,[te(l.$slots,"default")])],16)):b("",!0)]),_:3})}}}),Cs={key:0,"h-screen":"","of-hidden":""},Bs={"h-screen":"","w-full":"",flex:"","flex-col":""},ws={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},Ts={"text-sm":""},Ss=t("div",{"flex-auto":""},null,-1),Ns={"min-h-50":"",px3:"",py2:""},Fs=C({__name:"TimelineView",setup(f){const p=ne(),c=D("table"),e=D(),n=S(()=>p.value?.metrics.clientTimeline());function l(){n.value&&(n.value.events=[])}function d(){c.value=c.value==="table"?"list":"table"}return(s,i)=>{const u=G("VTooltip"),g=O,$=J,I=we,x=Ge,F=ms,A=$s,B=Ds;return a(n)?(o(),r("div",Cs,[t("div",Bs,[t("div",ws,[m(u,{flex:""},{popper:h(()=>[t("div",Ts,_(a(n).options.enabled?"Recording...":"Paused"),1)]),default:h(()=>[t("div",{"text-lg":"",class:z(a(n).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),a(n).options.enabled?(o(),v(g,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:i[1]||(i[1]=k=>a(n).options.enabled=!1)},{default:h(()=>[T(" Stop Tracking ")]),_:1})):(o(),v(g,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:i[0]||(i[0]=k=>a(n).options.enabled=!0)},{default:h(()=>[T(" Start Tracking ")]),_:1})),Ss,m($,{icon:a(c)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",onClick:d},null,8,["icon"]),m($,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",onClick:l})]),a(c)==="table"?(o(),v(I,{key:0,data:{...a(n)},onSelect:i[2]||(i[2]=k=>e.value=k.event)},null,8,["data"])):(o(),v(x,{key:1,data:{...a(n)},onSelect:i[3]||(i[3]=k=>e.value=k)},null,8,["data"]))]),m(B,{"model-value":!!a(e),"auto-close":"",onClose:i[4]||(i[4]=k=>e.value=void 0)},{default:h(()=>[t("div",Ns,[a(e)?.type==="function"?(o(),v(F,{key:0,record:a(e)},null,8,["record"])):a(e)?.type==="route"?(o(),v(A,{key:1,record:a(e)},null,8,["record"])):b("",!0)])]),_:1},8,["model-value"])])):b("",!0)}}}),Es={class:"markdown-body"},Is=t("h1",null,"Timeline",-1),Vs=t("p",null,[t("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Ls=ae(`<p>Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.</p><h2>Function calls</h2><p>Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through <code>import {} from '#imports'</code>.</p><pre class="shiki shiki-themes vitesse-light vitesse-dark" style="background-color:#ffffff;--shiki-dark-bg:#121212;color:#393a34;--shiki-dark:#dbd7caee;" tabindex="0"><code><span class="line"><span style="color:#999999;--shiki-dark:#666666;"><</span><span style="color:#1E754F;--shiki-dark:#4D9375;">script</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> setup</span><span style="color:#999999;--shiki-dark:#666666;">></span></span>
|
|
2
2
|
<span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useNuxtApp</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;"> '</span><span style="color:#B56959;--shiki-dark:#C98A7D;">#imports</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;">'</span></span>
|
|
3
3
|
<span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useMouse</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;"> '</span><span style="color:#B56959;--shiki-dark:#C98A7D;">@vueuse/core</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;">'</span></span>
|
|
4
4
|
<span class="line"></span>
|
|
@@ -26,4 +26,4 @@ import{d as C,a as S,aC as V,o,m as r,k as t,a3 as N,f as a,t as _,a8 as j,F as
|
|
|
26
26
|
<span class="line"><span style="color:#999999;--shiki-dark:#666666;"> }</span></span>
|
|
27
27
|
<span class="line"><span style="color:#999999;--shiki-dark:#666666;"> }</span></span>
|
|
28
28
|
<span class="line"><span style="color:#999999;--shiki-dark:#666666;">})</span></span>
|
|
29
|
-
<span class="line"></span></code></pre>`,6),Ws=[Is,Ls
|
|
29
|
+
<span class="line"></span></code></pre>`,6),Ws=[Is,Vs,Ls],Ms={__name:"timeline",setup(f,{expose:p}){return p({frontmatter:{}}),(e,n)=>(o(),r("div",Es,Ws))}},js={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},zs=t("h2",{"text-xl":""},[t("span",{capitalize:""},"Enable Timeline?")],-1),Os={op50:""},Rs=t("p",null,[t("span",{op50:""},"Then Nuxt will "),t("span",{"text-orange":""},"restart automatically"),T(". ")],-1),Gs={flex:"~ gap-3",mt2:"","justify-end":""},nt=C({__name:"timeline",setup(f){const p=le(),c=H(),e=ie(),n=re();async function l(){const[d,s]=await R.enableTimeline(!0);await e.start(d,s)&&await R.enableTimeline(!1)}return(d,s)=>{const i=Fs,u=ke,g=ce,$=_e,I=fe,x=O,F=pe,A=Ms,B=he;return o(),r(y,null,[a(p)?.timeline?.enabled?(o(),v(i,{key:0})):(o(),r(y,{key:1},[m(g,null,{default:h(()=>[m(u,{icon:"i-carbon-roadmap",title:"Timeline",description:"Timeline enables the inspection of when composable being executed and the route changes.",actions:[{label:"Enable"}],onAction:l})]),_:1}),m(a(e),null,{default:h(({resolve:k,args:V})=>[m(F,{"model-value":!0,onClose:w=>k(!1)},{default:h(()=>[t("div",js,[zs,t("p",Os,[T(" Your "),m($,{role:"button",n:"primary",onClick:s[0]||(s[0]=w=>a(n)(a(c)?._nuxtConfigFile)),textContent:"Nuxt config"}),T(" will be updated as: ")]),m(I,{from:V[0],to:V[1],"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),Rs,t("div",Gs,[m(x,{onClick:w=>k(!1)},{default:h(()=>[T(" Cancel ")]),_:2},1032,["onClick"]),m(x,{n:"solid primary",capitalize:"",onClick:w=>k(!0)},{default:h(()=>[T(" Enable ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)),m(B,null,{default:h(()=>[m(A)]),_:1})],64)}}});export{nt as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as Se}from"./entry.05b33d7f.js";const xe=Object.freeze({left:0,top:0,width:16,height:16}),U=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...xe,...U}),$e=Object.freeze({...ue,body:"",hidden:!1}),_e=Object.freeze({width:null,height:null}),he=Object.freeze({..._e,...U});function Ce(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function J(t,e){const n=Ce(t,e);for(const s in $e)s in U?s in t&&!(s in n)&&(n[s]=U[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function Ae(t,e){const n=t.icons,s=t.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const c=s[o]&&s[o].parent,f=c&&i(c);f&&(r[o]=[c].concat(f))}return r[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function Q(t,e,n){const s=t.icons,r=t.aliases||Object.create(null);let i={};function o(c){i=J(s[c]||r[c],i)}return o(e),n.forEach(o),J(t,i)}function Oe(t,e){if(t.icons[e])return Q(t,e,[]);const n=Ae(t,[e])[e];return n?Q(t,e,n):null}const Me=/(-?[0-9.]*[0-9]+[0-9.]*)/g,je=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ee(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(Me);if(s===null||!s.length)return t;const r=[];let i=s.shift(),o=je.test(i);for(;;){if(o){const c=parseFloat(i);isNaN(c)?r.push(i):r.push(Math.ceil(c*e*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function Ee(t){let e="";const n=t.indexOf("<defs");for(;n>=0;){const s=t.indexOf(">",n),r=t.indexOf("</defs");if(s===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;e+=t.slice(s+1,r).trim(),t=t.slice(0,n).trim()+t.slice(i+1)}return{defs:e,content:t}}function ke(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Pe(t,e,n){const s=Ee(t);return ke(s.defs,e+s.content+n)}const Z=t=>t==="unset"||t==="undefined"||t==="none";function Le(t,e){const n={...ue,...t},s={...he,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(p=>{const d=[],x=p.hFlip,w=p.vFlip;let S=p.rotate;x?w?S+=2:(d.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),d.push("scale(-1 1)"),r.top=r.left=0):w&&(d.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),d.push("scale(1 -1)"),r.top=r.left=0);let l;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:l=r.height/2+r.top,d.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:d.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,d.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")");break}S%2===1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),d.length&&(i=Pe(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const o=s.width,c=s.height,f=r.width,u=r.height;let a,h;o===null?(h=c===null?"1em":c==="auto"?u:c,a=ee(h,f/u)):(a=o==="auto"?f:o,h=c===null?ee(a,u/f):c==="auto"?u:c);const m={},g=(p,d)=>{Z(d)||(m[p]=d.toString())};g("width",a),g("height",h);const _=[r.left,r.top,f,u];return m.viewBox=_.join(" "),{attributes:m,viewBox:_,body:i}}function ze(t){return t.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}const Te=/\swidth\s*=\s*["'](\w+)["']/,Ie=/\sheight\s*=\s*["'](\w+)["']/,G=/<svg\s+/;function Fe(t,e,n){const s=t.slice(0,t.indexOf(">")),r=(i,o)=>{const c=o.exec(s),f=c!=null,u=e[i];return!u&&!Z(u)&&(typeof n=="number"?n>0&&(e[i]=`${n}em`):c&&(e[i]=c[1])),f};return[r("width",Te),r("height",Ie)]}async function de(t,e,n,s,r,i){const{scale:o,addXmlNs:c=!1}=s??{},{additionalProps:f={},iconCustomizer:u}=s?.customizations??{},a=await r?.()??{};await u?.(e,n,a),Object.keys(f).forEach(p=>{const d=f[p];d!=null&&(a[p]=d)}),i?.(a);const[h,m]=Fe(t,a,o);c&&(!t.includes("xmlns=")&&!a.xmlns&&(a.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!a["xmlns:xlink"]&&(a["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const g=Object.keys(a).map(p=>p==="width"&&h||p==="height"&&m?null:`${p}="${a[p]}"`).filter(p=>p!=null);if(g.length&&(t=t.replace(G,`<svg ${g.join(" ")} `)),s){const{defaultStyle:p,defaultClass:d}=s;d&&!t.includes("class=")&&(t=t.replace(G,`<svg class="${d}" `)),p&&!t.includes("style=")&&(t=t.replace(G,`<svg style="${p}" `))}const _=s?.usedProps;return _&&(Object.keys(f).forEach(p=>{const d=a[p];d!=null&&(_[p]=d)}),typeof a.width<"u"&&a.width!==null&&(_.width=a.width),typeof a.height<"u"&&a.height!==null&&(_.height=a.height)),t}async function te(t,e,n,s){let r;try{if(typeof t=="function")r=await t(n);else{const i=t[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${e}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,e,n):r,r.startsWith("<svg")?await de(s?.customizations?.trimCustomSvg===!0?ze(r):r,e,n,s,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function pe(t,e,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=Oe(t,o),r){let c={...he};typeof i=="function"&&(c=i(c));const{attributes:{width:f,height:u,...a},body:h}=Le(r,c),m=s?.scale;return await de(`<svg >${h}</svg>`,e,o,s,()=>({...a}),g=>{const _=(p,d)=>{const x=g[p];let w;if(!Z(x)){if(x)return;typeof m=="number"?m&&(w=`${m}em`):w=d}w?g[p]=w:delete g[p]};_("width",f),_("height",u)})}}const me=async(t,e,n)=>{const s=n?.customCollections?.[t];if(s)if(typeof s=="function"){let r;try{r=await s(e)}catch(i){console.warn(`Failed to load custom icon "${e}" in "${t}":`,i);return}if(r){if(typeof r=="string")return await te(()=>r,t,e,n);if("icons"in r){const i=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await pe(r,t,i,n)}}}else return await te(s,t,e,n)};function Re(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ne=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const Ve=Re(Ne);function De(t){const e=new Map;function n(s){if(Ve.includes(s))return e.has(s)||e.set(s,Se(`${t}@iconify-json/${s}/icons.json`)),e.get(s)}return async(s,r,i)=>{let o=await me(s,r,i);if(o)return o;const c=await n(s);if(c){const f=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];o=await pe(c,s,f,i)}return o}}function Be(t){const e=t.length;let n=-1,s,r="";const i=t.charCodeAt(0);for(;++n<e;){if(s=t.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&e===1&&s===45){r+=`\\${t.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const W=Be;function k(t=[]){return Array.isArray(t)?t:[t]}function H(t){return Array.from(new Set(t))}function Ue(t,e){return t.reduce((n,s)=>(n.findIndex(i=>e(s,i))===-1&&n.push(s),n),[])}function O(t){return typeof t=="string"}function R(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function He(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>R(e)):[t]:[R(t)]}function Ge(t){return t.filter(([e,n],s)=>{if(e.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function Y(t){return t==null?"":Ge(t).map(([e,n])=>n!=null?`${e}:${n};`:void 0).filter(Boolean).join("")}function V(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ge(t,e,n=!1){const s=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return V(s)&&V(r)&&Object.keys(r).forEach(o=>{V(s[o])&&V(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=ge(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function B(t){let e,n,s;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(s=t[e])&&typeof s=="object"?B(s):s;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:B(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(s=t[e])&&typeof s=="object"?B(s):s;return n}return t}function We(t){return O(t[0])}function Ye(t){return O(t[0])}const ne="$$shortcut-no-merge";function qe(t){return typeof t=="function"?{match:t}:t}function re(t){return t.length===3}function Ke(t){return t!=null}function Xe(){}var Ze=Object.defineProperty,Je=(t,e,n)=>e in t?Ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qe=(t,e,n)=>(Je(t,typeof e!="symbol"?e+"":e,n),n);class et{constructor(){Qe(this,"_map",new Map)}get(e,n){const s=this._map.get(e);if(s)return s.get(n)}getFallback(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,s),r.get(n)}set(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,s),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>e(i,n,r)))}}var tt=Object.defineProperty,nt=(t,e,n)=>e in t?tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rt=(t,e,n)=>(nt(t,typeof e!="symbol"?e+"":e,n),n);class ye extends Set{constructor(e){super(e),rt(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function q(t){return t instanceof ye}const D={};function st(t=["-",":"]){const e=t.join("|");return D[e]||(D[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),D[e].lastIndex=0,D[e]}function it(t,e=["-",":"],n=5){const s=st(e);let r,i=t.toString();const o=new Set,c=new Map;do r=!1,i=i.replace(s,(u,a,h,m,g)=>{if(!e.includes(h))return u;r=!0,o.add(a+h);const _=g+a.length+h.length+1,p={length:u.length,items:[]};c.set(g,p);for(const d of[...m.matchAll(/\S+/g)]){const x=_+d.index;let w=c.get(x)?.items;w?c.delete(x):w=[{offset:x,length:d[0].length,className:d[0]}];for(const S of w)S.className=S.className==="~"?a:S.className.replace(/^(!?)(.*)/,`$1${a}${h}$2`),p.items.push(S)}return"$".repeat(u.length)}),n-=1;while(r&&n);let f;if(typeof t=="string"){f="";let u=0;for(const[a,h]of c)f+=t.slice(u,a),f+=h.items.map(m=>m.className).join(" "),u=a+h.length;f+=t.slice(u)}else{f=t;for(const[u,a]of c)f.overwrite(u,u+a.length,a.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:c,get expanded(){return f.toString()}}}function ot(t,e=["-",":"],n=5){const s=it(t,e,n);return typeof t=="string"?s.expanded:t}const se=new Set;function we(t){se.has(t)||(console.warn("[unocss]",t),se.add(t))}const at=/[\\:]?[\s'"`;{}]+/g;function ct(t){return t.split(at)}const lt={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return ct(t)}};function ft(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const K="default",X="preflights",ut="shortcuts",ht="imports",dt={[ht]:-200,[X]:-100,[ut]:-10,[K]:0};function ve(t){return k(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ie="_uno_resolved";function pt(t){let e=typeof t=="function"?t():t;if(ie in e)return e;e={...e},Object.defineProperty(e,ie,{value:!0,enumerable:!1});const n=e.shortcuts?ve(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&e.prefix&&(i.prefix=k(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(s),e.rules?.forEach(s)}return e}function be(t){const e=pt(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(k).flatMap(be);return[e,...n]}function oe(t={},e={}){const n=Object.assign({},e,t),s=Ue((n.presets||[]).flatMap(k).flatMap(be),(l,v)=>l.name===v.name),r=[...s.filter(l=>l.enforce==="pre"),...s.filter(l=>!l.enforce),...s.filter(l=>l.enforce==="post")],i=[...r,n],o=[...i].reverse(),c=Object.assign({},dt,...i.map(l=>l.layers));function f(l){return H(i.flatMap(v=>k(v[l]||[])))}const u=f("extractors");let a=o.find(l=>l.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=lt),a&&!u.includes(a)&&u.unshift(a),u.sort((l,v)=>(l.order||0)-(v.order||0));const h=f("rules"),m={},g=h.length,_=h.map((l,v)=>{if(We(l)){k(l[2]?.prefix||"").forEach(A=>{m[A+l[0]]=[v,l[1],l[2],l]});return}return[v,...l]}).filter(Boolean).reverse();let p=mt(i.map(l=>l.theme));const d=f("extendTheme");for(const l of d)p=l(p)||p;const x={templates:H(i.flatMap(l=>k(l.autocomplete?.templates))),extractors:i.flatMap(l=>k(l.autocomplete?.extractors)).sort((l,v)=>(l.order||0)-(v.order||0)),shorthands:gt(i.map(l=>l.autocomplete?.shorthands||{}))};let w=f("separators");w.length||(w=[":","-"]);const S={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:l=>l,...n,presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:c,theme:p,rulesSize:g,rulesDynamic:_,rulesStaticMap:m,preprocess:f("preprocess"),postprocess:f("postprocess"),preflights:f("preflights"),autocomplete:x,variants:f("variants").map(qe).sort((l,v)=>(l.order||0)-(v.order||0)),shortcuts:ve(f("shortcuts")).reverse(),extractors:u,safelist:f("safelist"),separators:w,details:n.details??n.envMode==="dev"};for(const l of i)l?.configResolved?.(S);return S}function mt(t){return t.map(e=>e?B(e):{}).reduce((e,n)=>ge(e,n),{})}function gt(t){return t.reduce((e,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...e,...s}},{})}const yt="0.56.0";var wt=Object.defineProperty,vt=(t,e,n)=>e in t?wt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,F=(t,e,n)=>(vt(t,typeof e!="symbol"?e+"":e,n),n);class bt{constructor(e={},n={}){this.userConfig=e,this.defaults=n,F(this,"version",yt),F(this,"_cache",new Map),F(this,"config"),F(this,"blocked",new Set),F(this,"parentOrders",new Map),F(this,"events",ft()),this.config=oe(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=oe(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,s=new Set){const r={original:e,code:e,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(q(o)&&q(s))for(const c of o)s.setCount(c,s.getCount(c)+o.getCount(c));else for(const c of o)s.add(c)}return s}makeContext(e,n){const s={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(e,n){if(this.blocked.has(e))return;const s=`${e}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=e;for(const u of this.config.preprocess)r=u(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,r);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const c=await this.expandShortcut(o.currentSelector,o),f=c?await this.stringifyShortcuts(o.variantMatch,o,c[0],c[1]):(await this.parseUtil(o.variantMatch,o))?.map(u=>this.stringifyUtil(u,o)).filter(Ke);if(f?.length)return this._cache.set(s,f),f;this._cache.set(s,null)}async generate(e,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:c=!1,extendedInfo:f=!1}=n,u=O(e)?await this.applyExtractors(e,s,f?new ye:new Set):Array.isArray(e)?new Set(e):e;o&&this.config.safelist.forEach(l=>{u.has(l)||u.add(l)});const a=c?"":`
|
|
1
|
+
import{$ as Se}from"./entry.54b63325.js";const xe=Object.freeze({left:0,top:0,width:16,height:16}),U=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...xe,...U}),$e=Object.freeze({...ue,body:"",hidden:!1}),_e=Object.freeze({width:null,height:null}),he=Object.freeze({..._e,...U});function Ce(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const s=((t.rotate||0)+(e.rotate||0))%4;return s&&(n.rotate=s),n}function J(t,e){const n=Ce(t,e);for(const s in $e)s in U?s in t&&!(s in n)&&(n[s]=U[s]):s in e?n[s]=e[s]:s in t&&(n[s]=t[s]);return n}function Ae(t,e){const n=t.icons,s=t.aliases||Object.create(null),r=Object.create(null);function i(o){if(n[o])return r[o]=[];if(!(o in r)){r[o]=null;const c=s[o]&&s[o].parent,f=c&&i(c);f&&(r[o]=[c].concat(f))}return r[o]}return(e||Object.keys(n).concat(Object.keys(s))).forEach(i),r}function Q(t,e,n){const s=t.icons,r=t.aliases||Object.create(null);let i={};function o(c){i=J(s[c]||r[c],i)}return o(e),n.forEach(o),J(t,i)}function Oe(t,e){if(t.icons[e])return Q(t,e,[]);const n=Ae(t,[e])[e];return n?Q(t,e,n):null}const Me=/(-?[0-9.]*[0-9]+[0-9.]*)/g,je=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ee(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const s=t.split(Me);if(s===null||!s.length)return t;const r=[];let i=s.shift(),o=je.test(i);for(;;){if(o){const c=parseFloat(i);isNaN(c)?r.push(i):r.push(Math.ceil(c*e*n)/n)}else r.push(i);if(i=s.shift(),i===void 0)return r.join("");o=!o}}function Ee(t){let e="";const n=t.indexOf("<defs");for(;n>=0;){const s=t.indexOf(">",n),r=t.indexOf("</defs");if(s===-1||r===-1)break;const i=t.indexOf(">",r);if(i===-1)break;e+=t.slice(s+1,r).trim(),t=t.slice(0,n).trim()+t.slice(i+1)}return{defs:e,content:t}}function ke(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Pe(t,e,n){const s=Ee(t);return ke(s.defs,e+s.content+n)}const Z=t=>t==="unset"||t==="undefined"||t==="none";function Le(t,e){const n={...ue,...t},s={...he,...e},r={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,s].forEach(p=>{const d=[],x=p.hFlip,w=p.vFlip;let S=p.rotate;x?w?S+=2:(d.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),d.push("scale(-1 1)"),r.top=r.left=0):w&&(d.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),d.push("scale(1 -1)"),r.top=r.left=0);let l;switch(S<0&&(S-=Math.floor(S/4)*4),S=S%4,S){case 1:l=r.height/2+r.top,d.unshift("rotate(90 "+l.toString()+" "+l.toString()+")");break;case 2:d.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:l=r.width/2+r.left,d.unshift("rotate(-90 "+l.toString()+" "+l.toString()+")");break}S%2===1&&(r.left!==r.top&&(l=r.left,r.left=r.top,r.top=l),r.width!==r.height&&(l=r.width,r.width=r.height,r.height=l)),d.length&&(i=Pe(i,'<g transform="'+d.join(" ")+'">',"</g>"))});const o=s.width,c=s.height,f=r.width,u=r.height;let a,h;o===null?(h=c===null?"1em":c==="auto"?u:c,a=ee(h,f/u)):(a=o==="auto"?f:o,h=c===null?ee(a,u/f):c==="auto"?u:c);const m={},g=(p,d)=>{Z(d)||(m[p]=d.toString())};g("width",a),g("height",h);const _=[r.left,r.top,f,u];return m.viewBox=_.join(" "),{attributes:m,viewBox:_,body:i}}function ze(t){return t.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}const Te=/\swidth\s*=\s*["'](\w+)["']/,Ie=/\sheight\s*=\s*["'](\w+)["']/,G=/<svg\s+/;function Fe(t,e,n){const s=t.slice(0,t.indexOf(">")),r=(i,o)=>{const c=o.exec(s),f=c!=null,u=e[i];return!u&&!Z(u)&&(typeof n=="number"?n>0&&(e[i]=`${n}em`):c&&(e[i]=c[1])),f};return[r("width",Te),r("height",Ie)]}async function de(t,e,n,s,r,i){const{scale:o,addXmlNs:c=!1}=s??{},{additionalProps:f={},iconCustomizer:u}=s?.customizations??{},a=await r?.()??{};await u?.(e,n,a),Object.keys(f).forEach(p=>{const d=f[p];d!=null&&(a[p]=d)}),i?.(a);const[h,m]=Fe(t,a,o);c&&(!t.includes("xmlns=")&&!a.xmlns&&(a.xmlns="http://www.w3.org/2000/svg"),!t.includes("xmlns:xlink=")&&t.includes("xlink:")&&!a["xmlns:xlink"]&&(a["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const g=Object.keys(a).map(p=>p==="width"&&h||p==="height"&&m?null:`${p}="${a[p]}"`).filter(p=>p!=null);if(g.length&&(t=t.replace(G,`<svg ${g.join(" ")} `)),s){const{defaultStyle:p,defaultClass:d}=s;d&&!t.includes("class=")&&(t=t.replace(G,`<svg class="${d}" `)),p&&!t.includes("style=")&&(t=t.replace(G,`<svg style="${p}" `))}const _=s?.usedProps;return _&&(Object.keys(f).forEach(p=>{const d=a[p];d!=null&&(_[p]=d)}),typeof a.width<"u"&&a.width!==null&&(_.width=a.width),typeof a.height<"u"&&a.height!==null&&(_.height=a.height)),t}async function te(t,e,n,s){let r;try{if(typeof t=="function")r=await t(n);else{const i=t[n];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${n}" in "${e}":`,i);return}if(r){const i=r.indexOf("<svg");i>0&&(r=r.slice(i));const{transform:o}=s?.customizations??{};return r=typeof o=="function"?await o(r,e,n):r,r.startsWith("<svg")?await de(s?.customizations?.trimCustomSvg===!0?ze(r):r,e,n,s,void 0):(console.warn(`Custom icon "${n}" in "${e}" is not a valid SVG`),r)}}async function pe(t,e,n,s){let r;const{customize:i}=s?.customizations??{};for(const o of n)if(r=Oe(t,o),r){let c={...he};typeof i=="function"&&(c=i(c));const{attributes:{width:f,height:u,...a},body:h}=Le(r,c),m=s?.scale;return await de(`<svg >${h}</svg>`,e,o,s,()=>({...a}),g=>{const _=(p,d)=>{const x=g[p];let w;if(!Z(x)){if(x)return;typeof m=="number"?m&&(w=`${m}em`):w=d}w?g[p]=w:delete g[p]};_("width",f),_("height",u)})}}const me=async(t,e,n)=>{const s=n?.customCollections?.[t];if(s)if(typeof s=="function"){let r;try{r=await s(e)}catch(i){console.warn(`Failed to load custom icon "${e}" in "${t}":`,i);return}if(r){if(typeof r=="string")return await te(()=>r,t,e,n);if("icons"in r){const i=[e,e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.replace(/([a-z])(\d+)/g,"$1-$2")];return await pe(r,t,i,n)}}}else return await te(s,t,e,n)};function Re(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ne=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const Ve=Re(Ne);function De(t){const e=new Map;function n(s){if(Ve.includes(s))return e.has(s)||e.set(s,Se(`${t}@iconify-json/${s}/icons.json`)),e.get(s)}return async(s,r,i)=>{let o=await me(s,r,i);if(o)return o;const c=await n(s);if(c){const f=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];o=await pe(c,s,f,i)}return o}}function Be(t){const e=t.length;let n=-1,s,r="";const i=t.charCodeAt(0);for(;++n<e;){if(s=t.charCodeAt(n),s===0){r+="�";continue}if(s===37){r+="\\%";continue}if(s===44){r+="\\,";continue}if(s>=1&&s<=31||s===127||n===0&&s>=48&&s<=57||n===1&&s>=48&&s<=57&&i===45){r+=`\\${s.toString(16)} `;continue}if(n===0&&e===1&&s===45){r+=`\\${t.charAt(n)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){r+=t.charAt(n);continue}r+=`\\${t.charAt(n)}`}return r}const W=Be;function k(t=[]){return Array.isArray(t)?t:[t]}function H(t){return Array.from(new Set(t))}function Ue(t,e){return t.reduce((n,s)=>(n.findIndex(i=>e(s,i))===-1&&n.push(s),n),[])}function O(t){return typeof t=="string"}function R(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function He(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>R(e)):[t]:[R(t)]}function Ge(t){return t.filter(([e,n],s)=>{if(e.startsWith("$$"))return!1;for(let r=s-1;r>=0;r--)if(t[r][0]===e&&t[r][1]===n)return!1;return!0})}function Y(t){return t==null?"":Ge(t).map(([e,n])=>n!=null?`${e}:${n};`:void 0).filter(Boolean).join("")}function V(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ge(t,e,n=!1){const s=t,r=e;if(Array.isArray(r))return n&&Array.isArray(r)?[...s,...r]:[...r];const i={...s};return V(s)&&V(r)&&Object.keys(r).forEach(o=>{V(s[o])&&V(r[o])||Array.isArray(s[o])&&Array.isArray(r[o])?i[o]=ge(s[o],r[o],n):Object.assign(i,{[o]:r[o]})}),i}function B(t){let e,n,s;if(Array.isArray(t)){for(n=Array(e=t.length);e--;)n[e]=(s=t[e])&&typeof s=="object"?B(s):s;return n}if(Object.prototype.toString.call(t)==="[object Object]"){n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:B(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=(s=t[e])&&typeof s=="object"?B(s):s;return n}return t}function We(t){return O(t[0])}function Ye(t){return O(t[0])}const ne="$$shortcut-no-merge";function qe(t){return typeof t=="function"?{match:t}:t}function re(t){return t.length===3}function Ke(t){return t!=null}function Xe(){}var Ze=Object.defineProperty,Je=(t,e,n)=>e in t?Ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qe=(t,e,n)=>(Je(t,typeof e!="symbol"?e+"":e,n),n);class et{constructor(){Qe(this,"_map",new Map)}get(e,n){const s=this._map.get(e);if(s)return s.get(n)}getFallback(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(n)||r.set(n,s),r.get(n)}set(e,n,s){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(n,s),this}has(e,n){return this._map.get(e)?.has(n)}delete(e,n){return this._map.get(e)?.delete(n)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([n,s])=>Array.from(s.entries()).map(([r,i])=>e(i,n,r)))}}var tt=Object.defineProperty,nt=(t,e,n)=>e in t?tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rt=(t,e,n)=>(nt(t,typeof e!="symbol"?e+"":e,n),n);class ye extends Set{constructor(e){super(e),rt(this,"_map"),this._map??(this._map=new Map)}add(e){return this._map??(this._map=new Map),this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,n){return this._map.set(e,n),super.add(e)}}function q(t){return t instanceof ye}const D={};function st(t=["-",":"]){const e=t.join("|");return D[e]||(D[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),D[e].lastIndex=0,D[e]}function it(t,e=["-",":"],n=5){const s=st(e);let r,i=t.toString();const o=new Set,c=new Map;do r=!1,i=i.replace(s,(u,a,h,m,g)=>{if(!e.includes(h))return u;r=!0,o.add(a+h);const _=g+a.length+h.length+1,p={length:u.length,items:[]};c.set(g,p);for(const d of[...m.matchAll(/\S+/g)]){const x=_+d.index;let w=c.get(x)?.items;w?c.delete(x):w=[{offset:x,length:d[0].length,className:d[0]}];for(const S of w)S.className=S.className==="~"?a:S.className.replace(/^(!?)(.*)/,`$1${a}${h}$2`),p.items.push(S)}return"$".repeat(u.length)}),n-=1;while(r&&n);let f;if(typeof t=="string"){f="";let u=0;for(const[a,h]of c)f+=t.slice(u,a),f+=h.items.map(m=>m.className).join(" "),u=a+h.length;f+=t.slice(u)}else{f=t;for(const[u,a]of c)f.overwrite(u,u+a.length,a.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:r,groupsByOffset:c,get expanded(){return f.toString()}}}function ot(t,e=["-",":"],n=5){const s=it(t,e,n);return typeof t=="string"?s.expanded:t}const se=new Set;function we(t){se.has(t)||(console.warn("[unocss]",t),se.add(t))}const at=/[\\:]?[\s'"`;{}]+/g;function ct(t){return t.split(at)}const lt={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return ct(t)}};function ft(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(n=>n(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(n=>n!==e)}}}const K="default",X="preflights",ut="shortcuts",ht="imports",dt={[ht]:-200,[X]:-100,[ut]:-10,[K]:0};function ve(t){return k(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}const ie="_uno_resolved";function pt(t){let e=typeof t=="function"?t():t;if(ie in e)return e;e={...e},Object.defineProperty(e,ie,{value:!0,enumerable:!1});const n=e.shortcuts?ve(e.shortcuts):void 0;if(e.shortcuts=n,e.prefix||e.layer){const s=r=>{r[2]||(r[2]={});const i=r[2];i.prefix==null&&e.prefix&&(i.prefix=k(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};n?.forEach(s),e.rules?.forEach(s)}return e}function be(t){const e=pt(t);if(!e.presets)return[e];const n=(e.presets||[]).flatMap(k).flatMap(be);return[e,...n]}function oe(t={},e={}){const n=Object.assign({},e,t),s=Ue((n.presets||[]).flatMap(k).flatMap(be),(l,v)=>l.name===v.name),r=[...s.filter(l=>l.enforce==="pre"),...s.filter(l=>!l.enforce),...s.filter(l=>l.enforce==="post")],i=[...r,n],o=[...i].reverse(),c=Object.assign({},dt,...i.map(l=>l.layers));function f(l){return H(i.flatMap(v=>k(v[l]||[])))}const u=f("extractors");let a=o.find(l=>l.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=lt),a&&!u.includes(a)&&u.unshift(a),u.sort((l,v)=>(l.order||0)-(v.order||0));const h=f("rules"),m={},g=h.length,_=h.map((l,v)=>{if(We(l)){k(l[2]?.prefix||"").forEach(A=>{m[A+l[0]]=[v,l[1],l[2],l]});return}return[v,...l]}).filter(Boolean).reverse();let p=mt(i.map(l=>l.theme));const d=f("extendTheme");for(const l of d)p=l(p)||p;const x={templates:H(i.flatMap(l=>k(l.autocomplete?.templates))),extractors:i.flatMap(l=>k(l.autocomplete?.extractors)).sort((l,v)=>(l.order||0)-(v.order||0)),shorthands:gt(i.map(l=>l.autocomplete?.shorthands||{}))};let w=f("separators");w.length||(w=[":","-"]);const S={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:l=>l,...n,presets:r,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:c,theme:p,rulesSize:g,rulesDynamic:_,rulesStaticMap:m,preprocess:f("preprocess"),postprocess:f("postprocess"),preflights:f("preflights"),autocomplete:x,variants:f("variants").map(qe).sort((l,v)=>(l.order||0)-(v.order||0)),shortcuts:ve(f("shortcuts")).reverse(),extractors:u,safelist:f("safelist"),separators:w,details:n.details??n.envMode==="dev"};for(const l of i)l?.configResolved?.(S);return S}function mt(t){return t.map(e=>e?B(e):{}).reduce((e,n)=>ge(e,n),{})}function gt(t){return t.reduce((e,n)=>{const s={};for(const r in n){const i=n[r];Array.isArray(i)?s[r]=`(${i.join("|")})`:s[r]=i}return{...e,...s}},{})}const yt="0.56.0";var wt=Object.defineProperty,vt=(t,e,n)=>e in t?wt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,F=(t,e,n)=>(vt(t,typeof e!="symbol"?e+"":e,n),n);class bt{constructor(e={},n={}){this.userConfig=e,this.defaults=n,F(this,"version",yt),F(this,"_cache",new Map),F(this,"config"),F(this,"blocked",new Set),F(this,"parentOrders",new Map),F(this,"events",ft()),this.config=oe(e,n),this.events.emit("config",this.config)}setConfig(e,n){e&&(n&&(this.defaults=n),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=oe(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,n,s=new Set){const r={original:e,code:e,id:n,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const o=await i.extract?.(r);if(o)if(q(o)&&q(s))for(const c of o)s.setCount(c,s.getCount(c)+o.getCount(c));else for(const c of o)s.add(c)}return s}makeContext(e,n){const s={rawSelector:e,currentSelector:n[1],theme:this.config.theme,generator:this,variantHandlers:n[2],constructCSS:(...r)=>this.constructCustomCSS(s,...r),variantMatch:n};return s}async parseToken(e,n){if(this.blocked.has(e))return;const s=`${e}${n?` ${n}`:""}`;if(this._cache.has(s))return this._cache.get(s);let r=e;for(const u of this.config.preprocess)r=u(e);if(this.isBlocked(r)){this.blocked.add(e),this._cache.set(s,null);return}const i=await this.matchVariants(e,r);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(s,null);return}const o=this.makeContext(e,[n||i[0],i[1],i[2],i[3]]);this.config.details&&(o.variants=[...i[3]]);const c=await this.expandShortcut(o.currentSelector,o),f=c?await this.stringifyShortcuts(o.variantMatch,o,c[0],c[1]):(await this.parseUtil(o.variantMatch,o))?.map(u=>this.stringifyUtil(u,o)).filter(Ke);if(f?.length)return this._cache.set(s,f),f;this._cache.set(s,null)}async generate(e,n={}){const{id:s,scope:r,preflights:i=!0,safelist:o=!0,minify:c=!1,extendedInfo:f=!1}=n,u=O(e)?await this.applyExtractors(e,s,f?new ye:new Set):Array.isArray(e)?new Set(e):e;o&&this.config.safelist.forEach(l=>{u.has(l)||u.add(l)});const a=c?"":`
|
|
2
2
|
`,h=new Set([K]),m=f?new Map:new Set,g=new Map;let _={};const p=Array.from(u).map(async l=>{if(m.has(l))return;const v=await this.parseToken(l);if(v!=null){m instanceof Map?m.set(l,{data:v,count:q(u)?u.getCount(l):-1}):m.add(l);for(const C of v){const A=C[3]||"",j=C[4]?.layer;g.has(A)||g.set(A,[]),g.get(A).push(C),j&&h.add(j)}}});await Promise.all(p),await(async()=>{if(!i)return;const l={generator:this,theme:this.config.theme},v=new Set([]);this.config.preflights.forEach(({layer:C=X})=>{h.add(C),v.add(C)}),_=Object.fromEntries(await Promise.all(Array.from(v).map(async C=>{const j=(await Promise.all(this.config.preflights.filter(L=>(L.layer||X)===C).map(async L=>await L.getCSS(l)))).filter(Boolean).join(a);return[C,j]})))})();const d=this.config.sortLayers(Array.from(h).sort((l,v)=>(this.config.layers[l]??0)-(this.config.layers[v]??0)||l.localeCompare(v))),x={},w=l=>{if(x[l])return x[l];let v=Array.from(g).sort((A,j)=>(this.parentOrders.get(A[0])??0)-(this.parentOrders.get(j[0])??0)||A[0]?.localeCompare(j[0]||"")||0).map(([A,j])=>{const L=j.length,I=j.filter(y=>(y[4]?.layer||K)===l).sort((y,$)=>y[0]-$[0]||(y[4]?.sort||0)-($[4]?.sort||0)||y[5]?.currentSelector?.localeCompare($[5]?.currentSelector??"")||y[1]?.localeCompare($[1]||"")||y[2]?.localeCompare($[2]||"")||0).map(([,y,$,,M,,E])=>[[[(y&&_t(y,r))??"",M?.sort??0]],$,!!(E??M?.noMerge)]);if(!I.length)return;const N=I.reverse().map(([y,$,M],E)=>{if(!M&&this.config.mergeSelectors)for(let T=E+1;T<L;T++){const P=I[T];if(P&&!P[2]&&(y&&P[0]||y==null&&P[0]==null)&&P[1]===$)return y&&P[0]&&P[0].push(...y),null}const z=y?H(y.sort((T,P)=>T[1]-P[1]||T[0]?.localeCompare(P[0]||"")||0).map(T=>T[0]).filter(Boolean)):[];return z.length?`${z.join(`,${a}`)}{${$}}`:$}).filter(Boolean).reverse().join(a);if(!A)return N;const b=A.split(" $$ ");return`${b.join("{")}{${a}${N}${a}${"}".repeat(b.length)}`}).filter(Boolean).join(a);i&&(v=[_[l],v].filter(Boolean).join(a));const C=c?"":`/* layer: ${l} */${a}`;return x[l]=v?C+v:""},S=(l=d,v)=>l.filter(C=>!v?.includes(C)).map(C=>w(C)||"").filter(Boolean).join(a);return{get css(){return S()},layers:d,matched:m,getLayers:S,getLayer:w}}async matchVariants(e,n){const s=new Set,r=[];let i=n||e,o=!1;const c={rawSelector:e,theme:this.config.theme,generator:this};for(;;){o=!1;for(const f of this.config.variants){if(!f.multiPass&&s.has(f))continue;let u=await f.match(i,c);if(u){if(O(u)){if(u===i)continue;u={matcher:u}}i=u.matcher,r.unshift(u),s.add(f),o=!0;break}}if(!o)break;if(r.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,r,s]}applyVariants(e,n=e[4],s=e[1]){const i=n.slice().sort((u,a)=>(u.order||0)-(a.order||0)).reduceRight((u,a)=>h=>{const m=a.body?.(h.entries)||h.entries,g=Array.isArray(a.parent)?a.parent:[a.parent,void 0];return(a.handle??At)({...h,entries:m,selector:a.selector?.(h.selector,m)||h.selector,parent:g[0]||h.parent,parentOrder:g[1]||h.parentOrder,layer:a.layer||h.layer,sort:a.sort||h.sort},u)},u=>u)({prefix:"",selector:Ct(s),pseudo:"",entries:e[2]}),{parent:o,parentOrder:c}=i;o!=null&&c!=null&&this.parentOrders.set(o,c);const f={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:o,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const u of this.config.postprocess)u(f);return f}constructCustomCSS(e,n,s){const r=R(n);if(O(r))return r;const{selector:i,entries:o,parent:c}=this.applyVariants([0,s||e.rawSelector,r,void 0,e.variantHandlers]),f=`${i}{${Y(o)}}`;return c?`${c}{${f}}`:f}async parseUtil(e,n,s=!1,r){const[i,o,c]=O(e)?await this.matchVariants(e):e;this.config.details&&(n.rules=n.rules??[]);const f=this.config.rulesStaticMap[o];if(f&&f[1]&&(s||!f[2]?.internal)){this.config.details&&n.rules.push(f[3]);const a=f[0],h=R(f[1]),m=f[2];return O(h)?[[a,h,m]]:[[a,i,h,m,c]]}n.variantHandlers=c;const{rulesDynamic:u}=this.config;for(const[a,h,m,g]of u){if(g?.internal&&!s)continue;let _=o;if(g?.prefix){const w=k(g.prefix);if(r){const S=k(r);if(!w.some(l=>S.includes(l)))continue}else{const S=w.find(l=>o.startsWith(l));if(S==null)continue;_=o.slice(S.length)}}const p=_.match(h);if(!p)continue;const d=await m(p,n);if(!d)continue;this.config.details&&n.rules.push([h,m,g]);const x=He(d).filter(w=>w.length);if(x.length)return x.map(w=>O(w)?[a,w,g]:[a,i,w,g,c])}}stringifyUtil(e,n){if(!e)return;if(re(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?n:void 0,void 0];const{selector:s,entries:r,parent:i,layer:o,sort:c,noMerge:f}=this.applyVariants(e),u=Y(r);if(!u)return;const{layer:a,sort:h,...m}=e[3]??{},g={...m,layer:o??a,sort:c??h};return[e[0],s,u,i,g,this.config.details?n:void 0,f]}async expandShortcut(e,n,s=5){if(s===0)return;const r=this.config.details?c=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(c)}:Xe;let i,o;for(const c of this.config.shortcuts){let f=e;if(c[2]?.prefix){const a=k(c[2].prefix).find(h=>e.startsWith(h));if(a==null)continue;f=e.slice(a.length)}if(Ye(c)){if(c[0]===f){i=i||c[2],o=c[1],r(c);break}}else{const u=f.match(c[0]);if(u&&(o=c[1](u,n)),o){i=i||c[2],r(c);break}}}if(O(o)&&(o=ot(o.trim()).split(/\s+/g)),!o){const[c,f]=O(e)?await this.matchVariants(e):e;if(c!==f){const u=await this.expandShortcut(f,n,s-1);u&&(o=u[0].map(a=>O(a)?c.replace(f,a):a))}}if(o)return[(await Promise.all(o.map(async c=>(O(c)?(await this.expandShortcut(c,n,s-1))?.[0]:void 0)||[c]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,n,s,r={layer:this.config.shortcutsLayer}){const i=new et,o=(await Promise.all(H(s).map(async a=>{const h=O(a)?await this.parseUtil(a,n,!0,r.prefix):[[Number.POSITIVE_INFINITY,"{inline}",R(a),void 0,[]]];return h||we(`unmatched utility "${a}" in shortcut "${e[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((a,h)=>a[0]-h[0]),[c,,f]=e,u=[];for(const a of o){if(re(a)){u.push([a[0],void 0,a[1],void 0,a[2],n,void 0]);continue}const{selector:h,entries:m,parent:g,sort:_,noMerge:p}=this.applyVariants(a,[...a[4],...f],c);i.getFallback(h,g,[[],a[0]])[0].push([m,!!(p??a[3]?.noMerge),_??0])}return u.concat(i.map(([a,h],m,g)=>{const _=(d,x,w)=>{const S=Math.max(...w.map(v=>v[1])),l=w.map(v=>v[0]);return(d?[l.flat(1)]:l).map(v=>{const C=Y(v);if(C)return[h,m,C,g,{...r,noMerge:x,sort:S},n,void 0]})};return[[a.filter(([,d])=>d).map(([d,,x])=>[d,x]),!0],[a.filter(([,d])=>!d).map(([d,,x])=>[d,x]),!1]].map(([d,x])=>[..._(!1,x,d.filter(([w])=>w.some(S=>S[0]===ne))),..._(!0,x,d.filter(([w])=>w.every(S=>S[0]!==ne)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(n=>typeof n=="function"?n(e):O(n)?n===e:n.test(e))}}function St(t,e){return new bt(t,e)}const xt=/\s\$\$\s+/g;function $t(t){return t.match(/\s\$\$\s/)}function _t(t,e){return $t(t)?t.replace(xt,e?` ${e} `:" "):e?`${e} ${t}`:t}const ae=/^\[(.+?)(~?=)"(.*)"\]$/;function Ct(t){return ae.test(t)?t.replace(ae,(e,n,s,r)=>`[${W(n)}${s}"${W(r)}"]`):`.${W(t)}`}function At(t,e){return e(t)}function Ot(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Mt(t){let e=t.startsWith("<svg>")?t.replace("<svg>","<svg >"):t;return!e.includes(" xmlns:xlink=")&&e.includes(" xlink:")&&(e=e.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),e.includes(" xmlns=")||(e=e.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),Ot(e)}const jt=3;function Et(t){return(e={})=>{const{scale:n=1,mode:s="auto",prefix:r="i-",warn:i=!1,collections:o,extraProperties:c={},customizations:f={},autoInstall:u=!1,layer:a="icons",unit:h}=e,m={addXmlNs:!0,scale:n,customCollections:o,autoInstall:u,warn:void 0,customizations:{...f,additionalProps:{...c},trimCustomSvg:!0,async iconCustomizer(_,p,d){await f.iconCustomizer?.(_,p,d),h&&(d.width||(d.width=`${n}${h}`),d.height||(d.height=`${n}${h}`))}}};let g;return{name:"@unocss/preset-icons",enforce:"pre",options:e,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([_,p,d=s])=>{let x="",w="",S;g=g||await t(e);const l={};if(p.includes(":"))[x,w]=p.split(":"),S=await g(x,w,{...m,usedProps:l});else{const C=p.split(/-/g);for(let A=jt;A>=1&&(x=C.slice(0,A).join("-"),w=C.slice(A).join("-"),S=await g(x,w,{...m,usedProps:l}),!S);A--);}if(!S){i&&we(`failed to load icon "${_}"`);return}const v=`url("data:image/svg+xml;utf8,${Mt(S)}")`;return d==="auto"&&(d=S.includes("currentColor")?"mask":"bg"),d==="mask"?{"--un-icon":v,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...l}:{background:`${v} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...l}},{layer:a,prefix:r}]]}}}const kt=Et(async t=>{const{cdn:e}=t;return e?De(e):me});function Pt(t){return t.replace(/-(\w)/g,(e,n)=>n?n.toUpperCase():"")}function ce(t){return t.charAt(0).toUpperCase()+t.slice(1)}function le(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var fe=["Webkit","Moz","ms"];function Lt(t){const e={};function n(s){const r=e[s];if(r)return r;let i=Pt(s);if(i!=="filter"&&i in t)return e[s]=le(i);i=ce(i);for(let o=0;o<fe.length;o++){const c=`${fe[o]}${i}`;if(c in t)return e[s]=le(ce(c))}return s}return({entries:s})=>s.forEach(r=>{r[0].startsWith("--")||(r[0]=n(r[0]))})}function zt(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function Tt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const e=window,n=window.document,s=()=>n.documentElement,r=e.__unocss||{},i=Object.assign({},t,r.runtime),o=i.defaults||{},c=i.cloakAttribute??"un-cloak";i.autoPrefix&&(o.postprocess=k(o.postprocess)).unshift(Lt(n.createElement("div").style)),i.configResolved?.(r,o);const f=St(r,o),u=b=>i.inject?i.inject(b):s().prepend(b),a=new Map;let h=!0,m=new Set,g,_,p=[];const d=()=>new Promise(b=>{p.push(b),_!=null&&clearTimeout(_),_=setTimeout(()=>S().then(()=>{const y=p;p=[],y.forEach($=>$())}),0)});function x(b){if(b.nodeType!==1)return;const y=b;y.hasAttribute(c)&&y.removeAttribute(c),y.querySelectorAll(`[${c}]`).forEach($=>{$.removeAttribute(c)})}function w(b,y){let $=a.get(b);if(!$)if($=n.createElement("style"),$.setAttribute("data-unocss-runtime-layer",b),a.set(b,$),y==null)u($);else{const M=w(y),E=M.parentNode;E?E.insertBefore($,M.nextSibling):u($)}return $}async function S(){const b=await f.generate(m);return b.layers.reduce((y,$)=>(w($,y).innerHTML=b.getLayer($)??"",$),void 0),m=b.matched,{...b,getStyleElement:y=>a.get(y),getStyleElements:()=>a}}async function l(b){const y=m.size;await f.applyExtractors(b,void 0,m),y!==m.size&&await d()}async function v(){const b=n.body,y=b&&b.outerHTML;y&&(await l(`${y} ${zt(y)}`),x(s()),x(b))}const C=new MutationObserver(b=>{h||b.forEach(async y=>{if(y.target.nodeType!==1)return;const $=y.target;for(const M of a)if($===M[1])return;if(y.type==="childList")y.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;const E=M;g&&!g(E)||(await l(E.outerHTML),x(E))});else{if(g&&!g($))return;if(y.attributeName!==c){const M=Array.from($.attributes).map(z=>z.value?`${z.name}="${z.value}"`:z.name).join(" "),E=`<${$.tagName.toLowerCase()} ${M}>`;await l(E)}$.hasAttribute(c)&&$.removeAttribute(c)}})});let A=!1;function j(){if(A)return;const b=i.observer?.target?i.observer.target():s()||n.body;b&&(C.observe(b,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),A=!0)}function L(){i.bypassDefined&&It(f.blocked),v(),j()}function I(){n.readyState==="loading"?e.addEventListener("DOMContentLoaded",L):L()}const N=e.__unocss_runtime=e.__unocss_runtime={version:f.version,uno:f,async extract(b){O(b)||(b.forEach(y=>m.add(y)),b=""),await l(b)},extractAll:v,inspect(b){g=b},toggleObserver(b){b===void 0?h=!h:h=!!b,!A&&!h&&I()},update:S};i.ready?.(N)!==!1&&(h=!1,I())}function It(t=new Set){for(let e=0;e<document.styleSheets.length;e++){const n=document.styleSheets[e];let s;try{if(s=n.cssRules||n.rules,!s)continue;Array.from(s).flatMap(r=>r.selectorText?.split(/,/g)||[]).forEach(r=>{r&&(r=r.trim(),r.startsWith(".")&&(r=r.slice(1)),t.add(r))})}catch{continue}}return t}Tt({defaults:{presets:[kt({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as N}from"./Navbar.vue.bacddf14.js";import{_ as B}from"./NCodeBlock.vue.84865d5b.js";import{o as c,m as _,k as s,d as S,r as v,by as j,bz as P,aw as R,a as p,ae as z,i as l,j as u,F as f,S as E,f as i,l as G,n as I,t as h,G as L,h as U,al as W,A}from"./entry.54b63325.js";import{_ as H}from"./HelpFab.vue.f082102a.js";import"./client.d926285a.js";const q={class:"markdown-body"},J=s("h1",null,"Virtual Files",-1),K=s("p",null,"Virtual files are generated on the fly to support the conventions of the framework, and to provide a better developer experience.",-1),M=[J,K],O={__name:"virtual-files",setup(x,{expose:n}){return n({frontmatter:{}}),(d,a)=>(c(),_("div",q,M))}},Q=["onClick"],T=s("div",{"x-divider":""},null,-1),X={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Y={border:"b base","flex-none":"",px4:"",py2:"","text-sm":"",op75:""},Z=s("span",{op75:""},"Select a file to start",-1),re=S({__name:"virtual-files",setup(x){const n=v(""),o=j(),d=P(),a=v();R(()=>{if(!d.value)return;const e=`/_vfs.json/${encodeURIComponent(d.value)}`;fetch(e,{headers:{accept:"application/json"}}).then(t=>t.json()).then(t=>a.value=t.current)});function y(e){if(o.value?.rootDir)return e.startsWith(o.value?.rootDir)?e.slice(o.value.rootDir.length):e}const m=p(()=>o.value?o.value.entries.filter(e=>!e.id.startsWith(`${o.value?.rootDir||""}/.nuxt/`)).sort((e,t)=>e.id.localeCompare(t.id)):[]),k=p(()=>new z(m.value,{keys:["id","path"]})),b=p(()=>n.value?k.value.search(n.value).map(e=>e.item):m.value);return(e,t)=>{const g=N,$=B,C=W,F=A,w=E,V=O,D=H;return c(),_(f,null,[l(w,{class:"virtual-files","storage-key":"tab-virtual-files"},{left:u(()=>[l(g,{search:i(n),"onUpdate:search":t[0]||(t[0]=r=>G(n)?n.value=r:null),"no-padding":"",p3:""},null,8,["search"]),(c(!0),_(f,null,I(i(b),r=>(c(),_(f,{key:r.id},[s("button",{block:"","w-full":"","select-none":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:L(r.id===i(a)?.id?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:ee=>d.value=r.id},h(y(r.id)),11,Q),T],64))),128))]),right:u(()=>[i(a)?.content?(c(),_("div",X,[s("div",Y,[s("code",null,h(i(a).id),1)]),l($,{"h-full":"","of-auto":"","text-sm":"",code:i(a).content,lang:"typescript"},null,8,["code"])])):(c(),U(F,{key:1},{default:u(()=>[l(C,{px6:"",py2:""},{default:u(()=>[Z]),_:1})]),_:1}))]),_:1}),l(D,null,{default:u(()=>[l(V)]),_:1})],64)}}});export{re as default};
|
package/dist/client/index.html
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.38bf3bdf.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.5e3c6999.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/onig.0c57a370.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-dark.ab479e3d.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-light.696edcfd.js">
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vue-html.0806679f.js">
|
|
19
19
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/diff.22e0b108.js">
|
|
20
20
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/shellscript.9d056341.js">
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.c4c43b40.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.478da439.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.cfaeed76.js">
|
|
24
24
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js">
|
|
25
25
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.6994516c.css">
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.
|
|
31
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.
|
|
32
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.
|
|
33
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.6de1f238.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.e3495019.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.21018268.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.d756d40c.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.84865d5b.js">
|
|
31
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.d926285a.js">
|
|
32
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.5bde5a0b.js">
|
|
33
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.dedd4a37.js">
|
|
34
34
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.82ac0ec5.css">
|
|
35
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.
|
|
35
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.087131b3.js">
|
|
36
36
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.ff959f66.css">
|
|
37
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.
|
|
38
|
-
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
37
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.d1c41037.js">
|
|
38
|
+
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
39
39
|
</script></head>
|
|
40
40
|
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
41
41
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.38bf3bdf.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.5e3c6999.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/onig.0c57a370.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-dark.ab479e3d.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-light.696edcfd.js">
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vue-html.0806679f.js">
|
|
19
19
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/diff.22e0b108.js">
|
|
20
20
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/shellscript.9d056341.js">
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.c4c43b40.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.478da439.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.cfaeed76.js">
|
|
24
24
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js">
|
|
25
25
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.6994516c.css">
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.
|
|
31
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.
|
|
32
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.
|
|
33
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.6de1f238.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.e3495019.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.21018268.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.d756d40c.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.84865d5b.js">
|
|
31
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.d926285a.js">
|
|
32
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.5bde5a0b.js">
|
|
33
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.dedd4a37.js">
|
|
34
34
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.82ac0ec5.css">
|
|
35
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.
|
|
35
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.087131b3.js">
|
|
36
36
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.ff959f66.css">
|
|
37
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.
|
|
38
|
-
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
37
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.d1c41037.js">
|
|
38
|
+
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
39
39
|
</script></head>
|
|
40
40
|
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
41
41
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<html >
|
|
3
3
|
<head><meta charset="utf-8">
|
|
4
4
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
-
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
6
|
-
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.
|
|
7
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.
|
|
5
|
+
<link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.38bf3bdf.css">
|
|
6
|
+
<link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js">
|
|
7
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.5e3c6999.js">
|
|
8
8
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/onig.0c57a370.js">
|
|
9
9
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-dark.ab479e3d.js">
|
|
10
10
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vitesse-light.696edcfd.js">
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/vue-html.0806679f.js">
|
|
19
19
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/diff.22e0b108.js">
|
|
20
20
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/shellscript.9d056341.js">
|
|
21
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.
|
|
22
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.
|
|
23
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.
|
|
21
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.c4c43b40.js">
|
|
22
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.478da439.js">
|
|
23
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.cfaeed76.js">
|
|
24
24
|
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js">
|
|
25
25
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.6994516c.css">
|
|
26
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.
|
|
27
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.
|
|
28
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.
|
|
29
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.
|
|
30
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.
|
|
31
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.
|
|
32
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.
|
|
33
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.
|
|
26
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DataSchemaDrawer.6de1f238.js">
|
|
27
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSelect.vue.e3495019.js">
|
|
28
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NSwitch.vue.21018268.js">
|
|
29
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NDropdown.vue.d756d40c.js">
|
|
30
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/NCodeBlock.vue.84865d5b.js">
|
|
31
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/client.d926285a.js">
|
|
32
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/DrawerRight.vue.5bde5a0b.js">
|
|
33
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.dedd4a37.js">
|
|
34
34
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.82ac0ec5.css">
|
|
35
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.
|
|
35
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.087131b3.js">
|
|
36
36
|
<link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.ff959f66.css">
|
|
37
|
-
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.
|
|
38
|
-
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.
|
|
37
|
+
<link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.d1c41037.js">
|
|
38
|
+
<script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.54b63325.js" crossorigin></script><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
|
|
39
39
|
</script></head>
|
|
40
40
|
<body ><div id="__nuxt"></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script>
|
|
41
41
|
<script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body>
|