@nuxt/devtools 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/module-main.mjs +33 -6025
  3. package/dist/chunks/vscode.mjs +4 -5
  4. package/dist/client/200.html +37 -2
  5. package/dist/client/404.html +37 -2
  6. package/dist/client/__blank/index.html +37 -2
  7. package/dist/client/_nuxt/{Badge.73590739.js → Badge.2520e67e.js} +1 -1
  8. package/dist/client/_nuxt/{CodeDiff.vue.5bc59452.js → CodeDiff.vue.978c6a6f.js} +2 -2
  9. package/dist/client/_nuxt/{ComposableItem.vue.b891778e.js → ComposableItem.vue.2d866a7f.js} +1 -1
  10. package/dist/client/_nuxt/{DataSchemaButton.vue.58aa4fbb.js → DataSchemaButton.vue.900aabf0.js} +1 -1
  11. package/dist/client/_nuxt/{DataSchemaDrawer.b54a9c8c.js → DataSchemaDrawer.01ce7a66.js} +100 -100
  12. package/dist/client/_nuxt/{DrawerRight.vue.462f9048.js → DrawerRight.vue.5715b906.js} +1 -1
  13. package/dist/client/_nuxt/{DurationDisplay.vue.281ea057.js → DurationDisplay.vue.700f989f.js} +1 -1
  14. package/dist/client/_nuxt/{FilepathItem.vue.3d85c8b7.js → FilepathItem.vue.6f5b0e95.js} +1 -1
  15. package/dist/client/_nuxt/{HelpFab.vue.7e36821f.js → HelpFab.vue.8daa9789.js} +1 -1
  16. package/dist/client/_nuxt/{LaunchPage.vue.fd74a96c.js → LaunchPage.vue.7c46fca6.js} +1 -1
  17. package/dist/client/_nuxt/{NCheckbox.vue.1ddacd54.js → NCheckbox.vue.e0da702b.js} +1 -1
  18. package/dist/client/_nuxt/{NCodeBlock.vue.31f18b3e.js → NCodeBlock.vue.070d4546.js} +1 -1
  19. package/dist/client/_nuxt/{NDropdown.vue.ba86ab23.js → NDropdown.vue.13a95889.js} +1 -1
  20. package/dist/client/_nuxt/{NIconTitle.vue.9acdbad1.js → NIconTitle.vue.1a740209.js} +1 -1
  21. package/dist/client/_nuxt/{NLink.vue.a8242afb.js → NLink.vue.4d6f9b4a.js} +1 -1
  22. package/dist/client/_nuxt/{NMarkdown.vue.12b1eecd.js → NMarkdown.vue.ac2cc78f.js} +1 -1
  23. package/dist/client/_nuxt/{NSectionBlock.00736ab5.js → NSectionBlock.9ba1ed51.js} +1 -1
  24. package/dist/client/_nuxt/{NSelect.vue.d378258a.js → NSelect.vue.50512422.js} +1 -1
  25. package/dist/client/_nuxt/{NSelectTabs.vue.515b8214.js → NSelectTabs.vue.f9f19824.js} +1 -1
  26. package/dist/client/_nuxt/{NSwitch.vue.8201d15e.js → NSwitch.vue.687752dc.js} +1 -1
  27. package/dist/client/_nuxt/{NTip.vue.8812abb8.js → NTip.vue.e10afe8f.js} +1 -1
  28. package/dist/client/_nuxt/{Navbar.vue.c509e5d2.js → Navbar.vue.6532550c.js} +1 -1
  29. package/dist/client/_nuxt/{StateEditor.vue.2dfb9208.js → StateEditor.vue.f97aa771.js} +1 -1
  30. package/dist/client/_nuxt/{__blank.6f88f9ac.js → __blank.5a331261.js} +1 -1
  31. package/dist/client/_nuxt/{analyze-build.ad9015ef.js → analyze-build.72962dac.js} +1 -1
  32. package/dist/client/_nuxt/assets.44d4e864.js +16 -0
  33. package/dist/client/_nuxt/{client.237dd3ea.js → client.20a78c8d.js} +1 -1
  34. package/dist/client/_nuxt/{components.5d298b86.js → components.19031b9b.js} +1 -1
  35. package/dist/client/_nuxt/css.5abce139.js +501 -0
  36. package/dist/client/_nuxt/{custom-_name_.6bfb7c0f.js → custom-_name_.72163621.js} +1 -1
  37. package/dist/client/_nuxt/{default.f2c7ccc5.js → default.7fafc9ad.js} +1 -1
  38. package/dist/client/_nuxt/diff.22e0b108.js +1 -0
  39. package/dist/client/_nuxt/entry.a2a7b315.css +1 -0
  40. package/dist/client/_nuxt/entry.ecba488a.js +27 -0
  41. package/dist/client/_nuxt/error-404.6a1d031f.js +1 -0
  42. package/dist/client/_nuxt/error-404.82ac0ec5.css +1 -0
  43. package/dist/client/_nuxt/{error-500.7606b55d.js → error-500.6ecf4027.js} +1 -1
  44. package/dist/client/_nuxt/error-500.ff959f66.css +1 -0
  45. package/dist/client/_nuxt/{full.69c969de.js → full.70864884.js} +1 -1
  46. package/dist/client/_nuxt/{hooks.2100ca5d.js → hooks.8f58bab5.js} +1 -1
  47. package/dist/client/_nuxt/html.66e44e78.js +74 -0
  48. package/dist/client/_nuxt/{imports.cb581504.js → imports.e2b0659c.js} +1 -1
  49. package/dist/client/_nuxt/{index.0d56c910.js → index.0580e715.js} +1 -1
  50. package/dist/client/_nuxt/{index.f204f87e.js → index.a42dc69d.js} +1 -1
  51. package/dist/client/_nuxt/javascript.ddb4c460.js +699 -0
  52. package/dist/client/_nuxt/json-editor-vue.daaf9bf6.js +130 -0
  53. package/dist/client/_nuxt/json.709f1c4d.js +25 -0
  54. package/dist/client/_nuxt/{middleware.688539e5.js → middleware.74529e65.js} +1 -1
  55. package/dist/client/_nuxt/{modules.bd62827c.js → modules.33fc5088.js} +1 -1
  56. package/dist/client/_nuxt/{none.1af6e0ee.js → none.8eb9bb52.js} +1 -1
  57. package/dist/client/_nuxt/onig.0c57a370.js +1 -0
  58. package/dist/client/_nuxt/{open-graph.11338a0a.js → open-graph.17155ec0.js} +1 -1
  59. package/dist/client/_nuxt/{overview.94507b31.js → overview.d7fae067.js} +1 -1
  60. package/dist/client/_nuxt/{pages.e761585a.js → pages.547750e8.js} +1 -1
  61. package/dist/client/_nuxt/{payload.6d63ca94.js → payload.8e277da6.js} +1 -1
  62. package/dist/client/_nuxt/{plugins.37532eb5.js → plugins.555a2eb4.js} +1 -1
  63. package/dist/client/_nuxt/{runtime-configs.5354fdd6.js → runtime-configs.949fefd1.js} +1 -1
  64. package/dist/client/_nuxt/server-routes.e6b60f13.js +9 -0
  65. package/dist/client/_nuxt/{settings.5fe86309.js → settings.8eec4b34.js} +1 -1
  66. package/dist/client/_nuxt/shellscript.3d8bff4d.js +4 -0
  67. package/dist/client/_nuxt/{state-components.7bf3566d.js → state-components.58a8ab6e.js} +1 -1
  68. package/dist/client/_nuxt/{state-modules.065d01b4.js → state-modules.b446bb25.js} +1 -1
  69. package/dist/client/_nuxt/{storage-options.f9b1696b.js → storage-options.bdca1e26.js} +1 -1
  70. package/dist/client/_nuxt/{storage.228d88e2.js → storage.2e03df22.js} +1 -1
  71. package/dist/client/_nuxt/{terminals.0377de90.js → terminals.d42a6ee5.js} +1 -1
  72. package/dist/client/_nuxt/timeline.bac8e997.js +57 -0
  73. package/dist/client/_nuxt/typescript.3ef79501.js +666 -0
  74. package/dist/client/_nuxt/unocss-runtime.dc09e3b2.js +2 -0
  75. package/dist/client/_nuxt/{virtual-files.1f7c68a1.js → virtual-files.56c1d2cb.js} +1 -1
  76. package/dist/client/_nuxt/vitesse-dark.ab479e3d.js +1 -0
  77. package/dist/client/_nuxt/vitesse-light.696edcfd.js +1 -0
  78. package/dist/client/_nuxt/vue-html.b80b464f.js +1 -0
  79. package/dist/client/_nuxt/vue.5b4e1de3.js +1844 -0
  80. package/dist/client/_nuxt/yaml.b29e536f.js +200 -0
  81. package/dist/client/index.html +37 -2
  82. package/dist/client/modules/analyze-build/index.html +37 -2
  83. package/dist/client/modules/assets/index.html +37 -2
  84. package/dist/client/modules/components/index.html +37 -2
  85. package/dist/client/modules/hooks/index.html +37 -2
  86. package/dist/client/modules/imports/index.html +37 -2
  87. package/dist/client/modules/middleware/index.html +37 -2
  88. package/dist/client/modules/modules/index.html +37 -2
  89. package/dist/client/modules/open-graph/index.html +37 -2
  90. package/dist/client/modules/overview/index.html +37 -2
  91. package/dist/client/modules/pages/index.html +37 -2
  92. package/dist/client/modules/payload/index.html +37 -2
  93. package/dist/client/modules/plugins/index.html +37 -2
  94. package/dist/client/modules/runtime-configs/index.html +37 -2
  95. package/dist/client/modules/server-routes/index.html +37 -2
  96. package/dist/client/modules/storage/index.html +37 -2
  97. package/dist/client/modules/terminals/index.html +37 -2
  98. package/dist/client/modules/timeline/index.html +37 -2
  99. package/dist/client/modules/virtual-files/index.html +37 -2
  100. package/dist/client/settings/index.html +37 -2
  101. package/dist/module.json +1 -1
  102. package/dist/runtime/plugins/view/Main.vue +5 -0
  103. package/dist/runtime/plugins/view/client.mjs +10 -3
  104. package/package.json +35 -37
  105. package/dist/client/_nuxt/assets.d0e2ffb5.js +0 -16
  106. package/dist/client/_nuxt/entry.582098fc.css +0 -1
  107. package/dist/client/_nuxt/entry.d12f745d.js +0 -21
  108. package/dist/client/_nuxt/error-404.91003ceb.css +0 -1
  109. package/dist/client/_nuxt/error-404.ed94fa51.js +0 -1
  110. package/dist/client/_nuxt/error-500.7e02f53c.css +0 -1
  111. package/dist/client/_nuxt/json-editor-vue.ddceb6bb.js +0 -137
  112. package/dist/client/_nuxt/server-routes.6fd21992.js +0 -9
  113. package/dist/client/_nuxt/timeline.e89330f3.js +0 -57
  114. package/dist/client/_nuxt/unocss-runtime.a5ba4c7b.js +0 -2
@@ -1,4 +1,4 @@
1
- import{d as ae,r as he,ai as Se,W as me,J as re,K as Ce,o as Q,m as ie,k as te,i as de,f as J,h as se,p as oe,t as ne,F as _e,bq as be,_ as ue,bs as ye,P as we,a as Ee,av as Le,n as ke,E as ce,b7 as Re,v as le,a0 as De,j as Ae,aB as xe}from"./entry.d12f745d.js";var fe={exports:{}};(function(ee,Z){(function(X,q){ee.exports=q()})(self,()=>(()=>{var X={4567:function(M,s,a){var h=this&&this.__decorate||function(t,n,c,v){var g,o=arguments.length,S=o<3?n:v===null?v=Object.getOwnPropertyDescriptor(n,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(t,n,c,v);else for(var C=t.length-1;C>=0;C--)(g=t[C])&&(S=(o<3?g(S):o>3?g(n,c,S):g(n,c))||S);return o>3&&S&&Object.defineProperty(n,c,S),S},u=this&&this.__param||function(t,n){return function(c,v){n(c,v,t)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const d=a(9042),_=a(6114),p=a(9924),f=a(844),l=a(5596),e=a(4725),r=a(3656);let i=class extends f.Disposable{constructor(t,n){super(),this._terminal=t,this._renderService=n,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 c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,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 p.TimeBasedDebouncer(this._announceCharacters.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._liveRegionDebouncer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
1
+ import{d as ae,r as he,ai as Se,W as me,J as re,K as Ce,o as Q,m as ie,k as te,i as de,f as J,h as se,p as oe,t as ne,F as _e,bp as be,_ as ue,br as ye,P as we,a as Ee,av as Le,n as ke,E as ce,b7 as Re,v as le,a0 as De,j as Ae,aB as xe}from"./entry.ecba488a.js";var fe={exports:{}};(function(ee,Z){(function(X,q){ee.exports=q()})(self,()=>(()=>{var X={4567:function(M,s,a){var h=this&&this.__decorate||function(t,n,c,v){var g,o=arguments.length,S=o<3?n:v===null?v=Object.getOwnPropertyDescriptor(n,c):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(t,n,c,v);else for(var C=t.length-1;C>=0;C--)(g=t[C])&&(S=(o<3?g(S):o>3?g(n,c,S):g(n,c))||S);return o>3&&S&&Object.defineProperty(n,c,S),S},u=this&&this.__param||function(t,n){return function(c,v){n(c,v,t)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const d=a(9042),_=a(6114),p=a(9924),f=a(844),l=a(5596),e=a(4725),r=a(3656);let i=class extends f.Disposable{constructor(t,n){super(),this._terminal=t,this._renderService=n,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 c=0;c<this._terminal.rows;c++)this._rowElements[c]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[c]);if(this._topBoundaryFocusListener=c=>this._handleBoundaryFocus(c,0),this._bottomBoundaryFocusListener=c=>this._handleBoundaryFocus(c,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 p.TimeBasedDebouncer(this._announceCharacters.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._liveRegionDebouncer),this.register(this._terminal.onResize(c=>this._handleResize(c.rows))),this.register(this._terminal.onRender(c=>this._refreshRows(c.start,c.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(c=>this._handleChar(c))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
2
2
  `))),this.register(this._terminal.onA11yTab(c=>this._handleTab(c))),this.register(this._terminal.onKey(c=>this._handleKey(c.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new l.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,r.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,f.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(t){for(let n=0;n<t;n++)this._handleChar(" ")}_handleChar(t){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==t&&(this._charsToAnnounce+=t):this._charsToAnnounce+=t,t===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=d.tooMuchOutput)),_.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,_.isMac&&this._liveRegion.remove()}_handleKey(t){this._clearLiveRegion(),/\p{Control}/u.test(t)||this._charsToConsume.push(t)}_refreshRows(t,n){this._liveRegionDebouncer.refresh(t,n,this._terminal.rows)}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(t,n){const c=t.target,v=this._rowElements[n===0?1:this._rowElements.length-2];if(c.getAttribute("aria-posinset")===(n===0?"1":`${this._terminal.buffer.lines.length}`)||t.relatedTarget!==v)return;let g,o;if(n===0?(g=c,o=this._rowElements.pop(),this._rowContainer.removeChild(o)):(g=this._rowElements.shift(),o=c,this._rowContainer.removeChild(g)),g.removeEventListener("focus",this._topBoundaryFocusListener),o.removeEventListener("focus",this._bottomBoundaryFocusListener),n===0){const S=this._createAccessibilityTreeNode();this._rowElements.unshift(S),this._rowContainer.insertAdjacentElement("afterbegin",S)}else{const S=this._createAccessibilityTreeNode();this._rowElements.push(S),this._rowContainer.appendChild(S)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(n===0?-1:1),this._rowElements[n===0?1:this._rowElements.length-2].focus(),t.preventDefault(),t.stopImmediatePropagation()}_handleResize(t){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let n=this._rowContainer.children.length;n<this._terminal.rows;n++)this._rowElements[n]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[n]);for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const t=document.createElement("div");return t.setAttribute("role","listitem"),t.tabIndex=-1,this._refreshRowDimensions(t),t}_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 t=0;t<this._terminal.rows;t++)this._refreshRowDimensions(this._rowElements[t])}}_refreshRowDimensions(t){t.style.height=`${this._renderService.dimensions.css.cell.height}px`}};i=h([u(1,e.IRenderService)],i),s.AccessibilityManager=i},3614:(M,s)=>{function a(_){return _.replace(/\r?\n/g,"\r")}function h(_,p){return p?"\x1B[200~"+_+"\x1B[201~":_}function u(_,p,f){_=h(_=a(_),f.decPrivateModes.bracketedPasteMode),f.triggerDataEvent(_,!0),p.value=""}function d(_,p,f){const l=f.getBoundingClientRect(),e=_.clientX-l.left-10,r=_.clientY-l.top-10;p.style.width="20px",p.style.height="20px",p.style.left=`${e}px`,p.style.top=`${r}px`,p.style.zIndex="1000",p.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=a,s.bracketTextForPaste=h,s.copyHandler=function(_,p){_.clipboardData&&_.clipboardData.setData("text/plain",p.selectionText),_.preventDefault()},s.handlePasteEvent=function(_,p,f){_.stopPropagation(),_.clipboardData&&u(_.clipboardData.getData("text/plain"),p,f)},s.paste=u,s.moveTextAreaUnderMouseCursor=d,s.rightClickHandler=function(_,p,f,l,e){d(_,p,f),e&&l.rightClickSelect(_),p.value=l.selectionText,p.select()}},7239:(M,s,a)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const h=a(1505);s.ColorContrastCache=class{constructor(){this._color=new h.TwoKeyMap,this._css=new h.TwoKeyMap}setCss(u,d,_){this._css.set(u,d,_)}getCss(u,d){return this._css.get(u,d)}setColor(u,d,_){this._color.set(u,d,_)}getColor(u,d){return this._color.get(u,d)}clear(){this._color.clear(),this._css.clear()}}},3656:(M,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(a,h,u,d){a.addEventListener(h,u,d);let _=!1;return{dispose:()=>{_||(_=!0,a.removeEventListener(h,u,d))}}}},6465:function(M,s,a){var h=this&&this.__decorate||function(e,r,i,t){var n,c=arguments.length,v=c<3?r:t===null?t=Object.getOwnPropertyDescriptor(r,i):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(e,r,i,t);else for(var g=e.length-1;g>=0;g--)(n=e[g])&&(v=(c<3?n(v):c>3?n(r,i,v):n(r,i))||v);return c>3&&v&&Object.defineProperty(r,i,v),v},u=this&&this.__param||function(e,r){return function(i,t){r(i,t,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier2=void 0;const d=a(2585),_=a(8460),p=a(844),f=a(3656);let l=class extends p.Disposable{constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new _.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new _.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,p.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,p.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}get currentLink(){return this._currentLink}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const r=this._linkProviders.indexOf(e);r!==-1&&this._linkProviders.splice(r,1)}}}attachToDom(e,r,i){this._element=e,this._mouseService=r,this._renderService=i,this.register((0,f.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,f.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,f.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,f.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const r=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!r)return;this._isMouseOut=!1;const i=e.composedPath();for(let t=0;t<i.length;t++){const n=i[t];if(n.classList.contains("xterm"))break;if(n.classList.contains("xterm-hover"))return}this._lastBufferCell&&r.x===this._lastBufferCell.x&&r.y===this._lastBufferCell.y||(this._handleHover(r),this._lastBufferCell=r)}_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,r){var i,t;this._activeProviderReplies&&r||((i=this._activeProviderReplies)===null||i===void 0||i.forEach(c=>{c?.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let n=!1;for(const[c,v]of this._linkProviders.entries())r?!((t=this._activeProviderReplies)===null||t===void 0)&&t.get(c)&&(n=this._checkLinkProviderResult(c,e,n)):v.provideLinks(e.y,g=>{var o,S;if(this._isMouseOut)return;const C=g?.map(w=>({link:w}));(o=this._activeProviderReplies)===null||o===void 0||o.set(c,C),n=this._checkLinkProviderResult(c,e,n),((S=this._activeProviderReplies)===null||S===void 0?void 0:S.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,r){const i=new Set;for(let t=0;t<r.size;t++){const n=r.get(t);if(n)for(let c=0;c<n.length;c++){const v=n[c],g=v.link.range.start.y<e?0:v.link.range.start.x,o=v.link.range.end.y>e?this._bufferService.cols:v.link.range.end.x;for(let S=g;S<=o;S++){if(i.has(S)){n.splice(c--,1);break}i.add(S)}}}}_checkLinkProviderResult(e,r,i){var t;if(!this._activeProviderReplies)return i;const n=this._activeProviderReplies.get(e);let c=!1;for(let v=0;v<e;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(c=!0);if(!c&&n){const v=n.find(g=>this._linkAtPosition(g.link,r));v&&(i=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(let v=0;v<this._activeProviderReplies.size;v++){const g=(t=this._activeProviderReplies.get(v))===null||t===void 0?void 0:t.find(o=>this._linkAtPosition(o.link,r));if(g){i=!0,this._handleNewLink(g);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const r=this._positionFromMouseEvent(e,this._element,this._mouseService);r&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,r)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,r){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!r||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=r)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const r=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);r&&this._linkAtPosition(e.link,r)&&(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 i,t;return(t=(i=this._currentLink)===null||i===void 0?void 0:i.state)===null||t===void 0?void 0:t.decorations.pointerCursor},set:i=>{var t,n;!((t=this._currentLink)===null||t===void 0)&&t.state&&this._currentLink.state.decorations.pointerCursor!==i&&(this._currentLink.state.decorations.pointerCursor=i,this._currentLink.state.isHovered&&((n=this._element)===null||n===void 0||n.classList.toggle("xterm-cursor-pointer",i)))}},underline:{get:()=>{var i,t;return(t=(i=this._currentLink)===null||i===void 0?void 0:i.state)===null||t===void 0?void 0:t.decorations.underline},set:i=>{var t,n,c;!((t=this._currentLink)===null||t===void 0)&&t.state&&((c=(n=this._currentLink)===null||n===void 0?void 0:n.state)===null||c===void 0?void 0:c.decorations.underline)!==i&&(this._currentLink.state.decorations.underline=i,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,i))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(i=>{if(!this._currentLink)return;const t=i.start===0?0:i.start+1+this._bufferService.buffer.ydisp,n=this._bufferService.buffer.ydisp+1+i.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=n&&(this._clearCurrentLink(t,n),this._lastMouseEvent&&this._element)){const c=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);c&&this._askForLink(c,!1)}})))}_linkHover(e,r,i){var t;!((t=this._currentLink)===null||t===void 0)&&t.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(r,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),r.hover&&r.hover(i,r.text)}_fireUnderlineEvent(e,r){const i=e.range,t=this._bufferService.buffer.ydisp,n=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-t-1,i.end.x,i.end.y-t-1,void 0);(r?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(n)}_linkLeave(e,r,i){var t;!((t=this._currentLink)===null||t===void 0)&&t.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(r,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),r.leave&&r.leave(i,r.text)}_linkAtPosition(e,r){const i=e.range.start.y*this._bufferService.cols+e.range.start.x,t=e.range.end.y*this._bufferService.cols+e.range.end.x,n=r.y*this._bufferService.cols+r.x;return i<=n&&n<=t}_positionFromMouseEvent(e,r,i){const t=i.getCoords(e,r,this._bufferService.cols,this._bufferService.rows);if(t)return{x:t[0],y:t[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,r,i,t,n){return{x1:e,y1:r,x2:i,y2:t,cols:this._bufferService.cols,fg:n}}};l=h([u(0,d.IBufferService)],l),s.Linkifier2=l},9042:(M,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(M,s,a){var h=this&&this.__decorate||function(l,e,r,i){var t,n=arguments.length,c=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(l,e,r,i);else for(var v=l.length-1;v>=0;v--)(t=l[v])&&(c=(n<3?t(c):n>3?t(e,r,c):t(e,r))||c);return n>3&&c&&Object.defineProperty(e,r,c),c},u=this&&this.__param||function(l,e){return function(r,i){e(r,i,l)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const d=a(511),_=a(2585);let p=class{constructor(l,e,r){this._bufferService=l,this._optionsService=e,this._oscLinkService=r}provideLinks(l,e){var r;const i=this._bufferService.buffer.lines.get(l-1);if(!i)return void e(void 0);const t=[],n=this._optionsService.rawOptions.linkHandler,c=new d.CellData,v=i.getTrimmedLength();let g=-1,o=-1,S=!1;for(let C=0;C<v;C++)if(o!==-1||i.hasContent(C)){if(i.loadCell(C,c),c.hasExtendedAttrs()&&c.extended.urlId){if(o===-1){o=C,g=c.extended.urlId;continue}S=c.extended.urlId!==g}else o!==-1&&(S=!0);if(S||o!==-1&&C===v-1){const w=(r=this._oscLinkService.getLinkData(g))===null||r===void 0?void 0:r.uri;if(w){const y={start:{x:o+1,y:l},end:{x:C+(S||C!==v-1?0:1),y:l}};let D=!1;if(!n?.allowNonHttpProtocols)try{const B=new URL(w);["http:","https:"].includes(B.protocol)||(D=!0)}catch{D=!0}D||t.push({text:w,range:y,activate:(B,H)=>n?n.activate(B,H,y):f(0,H),hover:(B,H)=>{var O;return(O=n?.hover)===null||O===void 0?void 0:O.call(n,B,H,y)},leave:(B,H)=>{var O;return(O=n?.leave)===null||O===void 0?void 0:O.call(n,B,H,y)}})}S=!1,c.hasExtendedAttrs()&&c.extended.urlId?(o=C,g=c.extended.urlId):(o=-1,g=-1)}}e(t)}};function f(l,e){if(confirm(`Do you want to navigate to ${e}?
4
4
 
@@ -0,0 +1,57 @@
1
+ import{d as N,a as D,aC as M,o as s,m as c,k as e,a3 as I,f as a,t as y,a8 as j,F as b,n as L,h as g,r as T,w as Y,au as Z,W,bs as K,p as $,i as m,E as O,q as X,e as Q,al as G,j as h,ap as P,v as t,C as z,a7 as H,aE as ee,aP as ne,a5 as te,aO as oe,_ as J,aq as se,bt as le,L as ae,a6 as ie,A as re,J as R,V as ce}from"./entry.ecba488a.js";import{_ as V}from"./DurationDisplay.vue.700f989f.js";import{_ as q}from"./Badge.2520e67e.js";import{_ as ue}from"./ComposableItem.vue.2d866a7f.js";import{U as de}from"./json-editor-vue.daaf9bf6.js";import{_ as pe}from"./FilepathItem.vue.6f5b0e95.js";import{_ as fe}from"./LaunchPage.vue.7c46fca6.js";import{_ as me}from"./NLink.vue.4d6f9b4a.js";import{_ as _e}from"./CodeDiff.vue.978c6a6f.js";import{_ as ye}from"./HelpFab.vue.8daa9789.js";import"./NMarkdown.vue.ac2cc78f.js";import"./client.20a78c8d.js";import"./constants.4e5eba24.js";import"./NCodeBlock.vue.070d4546.js";const ve=N({__name:"TimelineItemFunction",props:{item:{}},setup(v){const d=v,u=D(()=>M(d.item.name,50,60,"_op_")),n=D(()=>u.value.replace(/_op_/,"1")),l=D(()=>M(d.item.name,50,40)),i=D(()=>u.value.replace(/_op_/,"0.2"));return(p,o)=>(s(),c("button",{class:"group",style:I({color:a(n),borderLeft:`2px solid ${a(n)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[e("div",{style:I({backgroundColor:a(i)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),e("div",{style:I({color:a(l),"--c":a(n)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},y(p.item.name),5)],4))}}),he={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=N({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(v,{emit:d}){const u=v,n=j(()=>u.segment.start,{updateInterval:1e3,showSecond:!0,messages:{justNow:"",past:l=>l,future:l=>l,invalid:"-",second:l=>l?`${l}s`:"",minute:l=>`${l}m`,hour:l=>`${l}h`,week:l=>`${l}w`,day:l=>`${l}d`,month:l=>`${l}mo`,year:l=>`${l}y`}});return(l,i)=>{const p=ve;return s(),c("div",he,[e("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","font-mono":"","text-green6":"",onClick:i[0]||(i[0]=o=>l.segment.route?d("select",l.segment.route):void 0)},y(l.segment.route?.event.to),1),e("div",be,y(a(n))+" ago ",1),e("div",null,[(s(!0),c(b,null,L(l.segment.functions,(o,r)=>(s(),g(p,{key:r,item:o.event,style:I({position:"absolute",minWidth:`${o.relativeWidth*100}%`,maxWidth:`${o.relativeWidth*100}%`,top:`${4+o.layer*1.6}em`,left:`${o.relativeStart*100}%`}),onClick:f=>d("select",o)},null,8,["item","style","onClick"]))),128))])])}}}),$e=3e3,xe=50;function ke(v){const d=[];let u={start:0,end:0,events:[],functions:[],duration:0};for(const n of v){const l=n.end||n.start;(n.start-u.end>$e||n.type==="route")&&(u={start:n.start,end:l,events:[],functions:[],duration:0},d.push(u)),u.events.push(n),u.end=l+xe}return d.forEach((n,l)=>{const i=n.end-n.start,p=[];n.duration=i,n.previousGap=l>0?n.start-d[l-1].end:0,n.events.forEach(o=>{const r=o.end||o.start;let f=0;o.type!=="route"&&(f=p.findIndex(k=>k<=o.start),f===-1?(f=p.length,p.push(r+1e3)):p[f]=r+1e3);const x={event:o,segment:n,relativeStart:(o.start-n.start)/i,relativeWidth:(r-o.start)/i,layer:f};o.type==="function"?n.functions.push(x):n.route=x})}),d}const we={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":""},Te=N({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(v,{emit:d}){const u=v,n=T(),l=T(),i=T(),p=T(),o=T(!0),r=T(1.5),f=D(()=>ke(u.data.events)),x=D(()=>(u.data.events.length,n.value?.scrollWidth||window.innerWidth));function k(){p.value&&(p.value.style.width=`${x.value}px`)}function B(){o.value&&n.value&&(n.value.scrollTo({left:n.value.scrollWidth-n.value.clientWidth,behavior:"smooth"}),i.value.scrollTo({left:n.value.scrollWidth-n.value.clientWidth,behavior:"smooth"}))}return Y(()=>u.data.events.length,async()=>{await Z(),k(),B()},{flush:"post"}),W(n,"scroll",()=>{i.value.scrollLeft!==n.value.scrollLeft&&(k(),i.value.scrollLeft=n.value.scrollLeft,o.value=n.value.scrollLeft>=n.value.scrollWidth-n.value.clientWidth)}),W(i,"scroll",()=>{i.value.scrollLeft!==n.value.scrollLeft&&(k(),n.value.scrollLeft=i.value.scrollLeft)}),W(n,"wheel",w=>{w.altKey?(r.value=K(r.value+w.deltaY/200,.5,3),k()):n.value.scrollLeft+=w.deltaY}),(w,F)=>{const C=V,S=ge;return s(),c(b,null,[e("div",we,[e("div",{ref_key:"minimap",ref:l,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(s(!0),c(b,null,L(a(f),(_,E)=>(s(),c("div",{key:E,relative:"","h-full":"","flex-inline":"",style:I({width:`${Math.max(100,_.duration/10)/a(x)*100}%`})},[(s(!0),c(b,null,L(_.functions,(A,U)=>(s(),c("div",{key:U,"h-3px":"",rounded:"",style:I({width:`max(${A.relativeWidth*100}%, 10px)`,position:"absolute",top:`${A.layer*4}px`,left:`${A.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in w?w.getHashColorFromString:a(M))(A.event.name,50,60)})},null,4))),128)),_.route?(s(),c("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:I({left:`${_.route.relativeStart*100}%`})},null,4)):$("",!0)],4))),128))],512),e("div",{ref_key:"minimapScroller",ref:i,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[e("div",{ref_key:"minimapScrollerInner",ref:p,"h-1px":""},null,512)],512)]),e("div",{ref_key:"scroller",ref:n,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(s(!0),c(b,null,L(a(f),(_,E)=>(s(),c(b,{key:E},[_.previousGap&&_.previousGap>=200?(s(),c("div",Ce,[m(C,{op50:"",duration:_.previousGap,color:!1},null,8,["duration"])])):$("",!0),m(S,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:O(E===a(f).length-1?"border-r border-base":""),segment:_,style:I({width:`${Math.max(50,_.duration/10)*a(r)}px`}),onSelect:F[0]||(F[0]=A=>d("select",A))},null,8,["class","segment","style"])],64))),128))],512)],64)}}});const Ne=X(Te,[["__scopeId","data-v-a2c475c0"]]),Se={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Ae=["onClick"],De=e("div",{"i-carbon-function":"",op50:""},null,-1),Ie={flex:"~","font-mono":""},Fe=e("div",{op30:""}," ( ",-1),Le={key:0,mr2:"",op30:""},Be={op75:""},Ee=e("div",{op30:""}," ) ",-1),Me=e("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[e("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),Ve={flex:"~ col items-start"},We={"text-xs":"","font-mono":"",op30:""},je={"font-bold":"","font-mono":"","text-green":""},Oe=e("div",{"flex-auto":""},null,-1),ze=e("div",{"min-h-100":""},null,-1),Re=N({__name:"TimelineList",props:{data:{}},emits:["select"],setup(v,{emit:d}){return(u,n)=>{const l=V;return s(),c("div",Se,[(s(!0),c(b,null,L(u.data.events,(i,p)=>(s(),c("button",{key:p,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:o=>d("select",i)},[i.type==="function"?(s(),c(b,{key:0},[De,e("div",{"font-mono":"",style:I({color:i.type==="function"?("getHashColorFromString"in u?u.getHashColorFromString:a(M))(i.name,50,60):""})},y(i.name),5),e("div",Ie,[Fe,(s(!0),c(b,null,L(i.args,(o,r)=>(s(),c(b,{key:r},[p?(s(),c("div",Le," , ")):$("",!0),e("div",Be,y(o===null?"null":o===void 0?"undefined":typeof o=="function"?"[function]":Array.isArray(o)?"[Array]":typeof o=="object"?"[object]":JSON.stringify(o)),1)],64))),128)),Ee])],64)):(s(),c(b,{key:1},[Me,e("div",Ve,[e("div",We,y(i.from),1),e("div",je,y(i.to),1)])],64)),Oe,i.end?(s(),g(l,{key:2,duration:i.end-i.start,color:i.type==="function"},null,8,["duration","color"])):$("",!0)],8,Ae))),128)),ze])}}}),Ge={key:0,"text-blue":""},Pe={key:1,"text-purple":""},He={key:2,"text-green":""},Je={key:3,"text-gray":""},qe={key:4,"text-gray":""},Ue={key:5,"text-gray":""},Ye={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Ze={key:1},Ke={p2:"","text-sm":"",border:"t base"},Xe=N({__name:"TimelineArgumentView",props:{value:{}},setup(v){const d=v,u=T(),n=T();function l(){try{u.value=JSON.parse(JSON.stringify(d.value))}catch(o){console.error(o),n.value=o}}const i=N({emits:["setup"],setup(o,{emit:r}){return r("setup"),()=>null}}),p=Q();return(o,r)=>{const f=z,x=G("VMenu");return typeof o.value=="string"?(s(),c("div",Ge,y(JSON.stringify(o.value)),1)):typeof o.value=="number"?(s(),c("div",Pe,y(o.value),1)):typeof o.value=="boolean"?(s(),c("div",He,y(o.value),1)):typeof o.value>"u"?(s(),c("div",Je," undefined ")):typeof o.value=="function"?(s(),c("div",qe," [Function"+y(o.value.name?`: ${o.value.name}`:"")+"] ",1)):o.value===null?(s(),c("div",Ue," null ")):(s(),g(x,{key:6,placement:"top"},{popper:h(()=>[m(a(i),{onSetup:l}),a(n)?(s(),c("div",Ye," Failed to display object: "+y(a(n)),1)):a(u)?(s(),c("div",Ze,[m(a(de),P({"model-value":a(u)},o.$attrs,{class:["json-editor-vue",[o.$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"]),e("div",Ke,[m(f,{title:"Copy to clipboard",icon:"carbon-copy",onClick:r[0]||(r[0]=k=>a(p)(JSON.stringify(a(u),null,2)))},{default:h(()=>[t(" Copy ")]),_:1})])])):$("",!0)]),default:h(()=>[e("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:O([Array.isArray(o.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},y(Array.isArray(o.value)?`[Array(${o.value.length})]`:"[Object]"),3)]),_:1}))}}}),Qe={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},en={"mx--1":""},nn={flex:"~ gap-1","font-mono":""},tn={key:1},on=e("span",{ml1:"",op30:""},"(",-1),sn={key:0,op30:""},ln=e("span",{op30:""},")",-1),an={flex:"~ gap-1","text-sm":""},rn=e("span",{mx1:"",op50:""},"·",-1),cn={class:"text-sm text-gray-400"},un={key:0,class:"text-xs text-gray-400",mt2:"",grid:"~ cols-[max-content_1fr] gap-x-4","font-mono":""},dn={"text-right":""},pn={"ws-nowrap":""},fn=N({__name:"TimelineDetailsFunction",props:{record:{}},setup(v){const d=v,u=H(),n=j(()=>d.record.start,{showSecond:!0});function l(r){let f=new URL(r).pathname;return f.startsWith("/_nuxt/")&&(f=f.slice(6)),f.startsWith("/@id/virtual:nuxt:")?`#build/${f.split("/.nuxt/")[1]}`.replace(/\.m?js$/,""):f.includes("/@fs/")?`/${f.split("/@fs/")[1]}`:(u.value?.rootDir||"")+f}const i=ee(),p=D(()=>i.value?.metadata),o=D(()=>i.value?.imports.find(r=>r.as===d.record.name));return(r,f)=>{const x=q,k=ue,B=Xe,w=V,F=pe;return r.record?(s(),c("div",Qe,[e("div",en,[m(x,{"bg-yellow-600:10":"","text-yellow-600":"",op75:""},{default:h(()=>[t(" Function call ")]),_:1})]),e("div",nn,[a(o)?(s(),g(k,{key:0,item:a(o),metadata:a(p),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(s(),c("span",tn,y(r.record.name),1)),on,(s(!0),c(b,null,L(r.record.args,(C,S)=>(s(),c(b,{key:S},[S?(s(),c("span",sn,", ")):$("",!0),m(B,{value:C},null,8,["value"])],64))),128)),ln]),e("div",an,[r.record.end?(s(),g(w,{key:0,duration:r.record.end-r.record.start},null,8,["duration"])):$("",!0),rn,e("div",cn,y(a(n)),1)]),r.record.stacktrace?(s(),c("div",un,[(s(!0),c(b,null,L(r.record.stacktrace,(C,S)=>(s(),c(b,{key:S},[e("div",dn,y(C.functionName||"(anonymous)"),1),e("div",pn,[C.fileName?(s(),g(F,{key:0,filepath:`${l(C.fileName)}:${C.lineNumber}:${C.columnNumber}`,subpath:""},null,8,["filepath"])):$("",!0)])],64))),128))])):$("",!0)])):$("",!0)}}}),mn={key:0,"p-4":"",flex:"~ col gap-2"},_n={"mx--1":""},yn={flex:"~ gap-1 items-center","font-mono":""},vn={op50:""},hn=e("span",{"i-carbon-arrow-right":"",op50:""},null,-1),bn={flex:"~ gap-1","text-sm":""},gn=e("span",{mx1:"",op50:""},"·",-1),$n={class:"text-sm text-gray-400"},xn=N({__name:"TimelineDetailsRoute",props:{record:{}},setup(v){const d=v,u=j(()=>d.record.start,{showSecond:!0});return(n,l)=>{const i=q,p=V;return n.record?(s(),c("div",mn,[e("div",_n,[m(i,{"bg-green-400:10":"","text-green-400":"",op50:""},{default:h(()=>[t(" Route Change ")]),_:1})]),e("div",yn,[e("span",vn,y(n.record.from),1),hn,e("span",null,y(n.record.to),1)]),e("div",bn,[n.record.end?(s(),g(p,{key:0,duration:n.record.end-n.record.start},null,8,["duration"])):$("",!0),gn,e("div",$n,y(a(u)),1)])])):$("",!0)}}}),kn={relative:"","h-full":"","w-full":"","of-auto":""},wn={inheritAttrs:!1},Cn=N({...wn,__name:"DrawerBottom",props:{modelValue:{type:Boolean},navbar:{},autoClose:{type:Boolean}},emits:["close"],setup(v,{emit:d}){const u=v,n=T();ne(n,()=>{u.modelValue&&u.autoClose&&d("close")},{ignore:["a","button","summary"]});const l=document.querySelector("#nuxt-devtools-side-nav")?.getBoundingClientRect().width;return(i,p)=>{const o=J;return s(),g(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(()=>[i.modelValue?(s(),c("div",P({key:0,ref_key:"el",ref:n,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(l)}px`}},i.$attrs),[m(o,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",onClick:p[0]||(p[0]=r=>i.$emit("close"))}),e("div",kn,[te(i.$slots,"default")])],16)):$("",!0)]),_:3})}}}),Tn={key:0,"h-screen":"","of-hidden":""},Nn={"h-screen":"","w-full":"",flex:"","flex-col":""},Sn={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},An={"text-sm":""},Dn=e("div",{"flex-auto":""},null,-1),In={"min-h-50":"",px3:"",py2:""},Fn=N({__name:"TimelineView",setup(v){const d=se(),u=T("table"),n=T(),l=D(()=>d.value?.metrics.clientTimeline());function i(){l.value&&(l.value.events=[])}function p(){u.value=u.value==="table"?"list":"table"}return(o,r)=>{const f=G("VTooltip"),x=z,k=J,B=Ne,w=Re,F=fn,C=xn,S=Cn;return a(l)?(s(),c("div",Tn,[e("div",Nn,[e("div",Sn,[m(f,{flex:""},{popper:h(()=>[e("div",An,y(a(l).options.enabled?"Recording...":"Paused"),1)]),default:h(()=>[e("div",{"text-lg":"",class:O(a(l).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),a(l).options.enabled?(s(),g(x,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:r[1]||(r[1]=_=>a(l).options.enabled=!1)},{default:h(()=>[t(" Stop Tracking ")]),_:1})):(s(),g(x,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:r[0]||(r[0]=_=>a(l).options.enabled=!0)},{default:h(()=>[t(" Start Tracking ")]),_:1})),Dn,m(k,{icon:a(u)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",onClick:p},null,8,["icon"]),m(k,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",onClick:i})]),a(u)==="table"?(s(),g(B,{key:0,data:{...a(l)},onSelect:r[2]||(r[2]=_=>n.value=_.event)},null,8,["data"])):(s(),g(w,{key:1,data:{...a(l)},onSelect:r[3]||(r[3]=_=>n.value=_)},null,8,["data"]))]),m(S,{"model-value":!!a(n),"auto-close":"",onClose:r[4]||(r[4]=_=>n.value=void 0)},{default:h(()=>[e("div",In,[a(n)?.type==="function"?(s(),g(F,{key:0,record:a(n)},null,8,["record"])):a(n)?.type==="route"?(s(),g(C,{key:1,record:a(n)},null,8,["record"])):$("",!0)])]),_:1},8,["model-value"])])):$("",!0)}}}),Ln={class:"markdown-body"},Bn=e("h1",null,"Timeline",-1),En=e("p",null,[e("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Mn=e("p",null,"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.",-1),Vn=e("h2",null,"Function calls",-1),Wn=e("p",null,[t("Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through "),e("code",null,"import {} from '#imports'"),t(".")],-1),jn=e("pre",null,[e("code",{class:"language-html"},[e("div",{class:"shiki-container"},[e("pre",{class:"shiki vitesse-dark",style:{"background-color":"#121212",color:"#dbd7caee"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"<script setup>")]),t(`
2
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useNuxtApp } from '#imports'")]),t(`
3
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useMouse } from '@vueuse/core'")]),t(`
4
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`
5
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const route = useRoute() // tracked")]),t(`
6
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const app = useNuxtApp() // tracked")]),t(`
7
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`
8
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"// NOT tracked because it's directly imported")]),t(`
9
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const mouse = useMouse() ")]),t(`
10
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})])])]),e("pre",{class:"shiki vitesse-light",style:{"background-color":"#ffffff",color:"#393a34"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"<script setup>")]),t(`
11
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useNuxtApp } from '#imports'")]),t(`
12
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"import { useMouse } from '@vueuse/core'")]),t(`
13
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`
14
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const route = useRoute() // tracked")]),t(`
15
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const app = useNuxtApp() // tracked")]),t(`
16
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})]),t(`
17
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"// NOT tracked because it's directly imported")]),t(`
18
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"const mouse = useMouse() ")]),t(`
19
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})])])])])])],-1),On=e("p",null,[t("By default, it tracks Nuxt provided composables as well as user defined functions. You can include/exclude functions by using the "),e("code",null,"include"),t(" and "),e("code",null,"exclude"),t(" options in the "),e("code",null,"nuxt.config.js"),t(" file.")],-1),zn=e("pre",null,[e("code",{class:"language-js"},[e("div",{class:"shiki-container"},[e("pre",{class:"shiki vitesse-dark",style:{"background-color":"#121212",color:"#dbd7caee"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"export default defineNuxtConfig({")]),t(`
20
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," devtools: {")]),t(`
21
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," timeline: {")]),t(`
22
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," functions: {")]),t(`
23
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," include: [")]),t(`
24
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track `useMouse`")]),t(`
25
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," 'useMouse',")]),t(`
26
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track all functions starting with `use`")]),t(`
27
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," /^use[A-Z]/,")]),t(`
28
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track all functions from @vueuse/core")]),t(`
29
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," entry => entry.from === '@vueuse/core',")]),t(`
30
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," ],")]),t(`
31
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," exclude: [")]),t(`
32
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," 'useRouter'")]),t(`
33
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," ]")]),t(`
34
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
35
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
36
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
37
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"})")]),t(`
38
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})])])]),e("pre",{class:"shiki vitesse-light",style:{"background-color":"#ffffff",color:"#393a34"},tabindex:"0"},[e("code",{"v-pre":""},[e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"export default defineNuxtConfig({")]),t(`
39
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," devtools: {")]),t(`
40
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," timeline: {")]),t(`
41
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," functions: {")]),t(`
42
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," include: [")]),t(`
43
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track `useMouse`")]),t(`
44
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," 'useMouse',")]),t(`
45
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track all functions starting with `use`")]),t(`
46
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," /^use[A-Z]/,")]),t(`
47
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," // track all functions from @vueuse/core")]),t(`
48
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," entry => entry.from === '@vueuse/core',")]),t(`
49
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," ],")]),t(`
50
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," exclude: [")]),t(`
51
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," 'useRouter'")]),t(`
52
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," ]")]),t(`
53
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
54
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
55
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}}," }")]),t(`
56
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}},"})")]),t(`
57
+ `),e("span",{class:"line"},[e("span",{style:{color:"undefined"}})])])])])])],-1),Rn=[Bn,En,Mn,Vn,Wn,jn,On,zn],Gn={__name:"timeline",setup(v,{expose:d}){return d({frontmatter:{}}),(n,l)=>(s(),c("div",Ln,Rn))}},Pn={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},Hn=e("h2",{"text-xl":""},[e("span",{capitalize:""},"Enable Timeline?")],-1),Jn={op50:""},qn=e("p",null,[e("span",{op50:""},"Then Nuxt will "),e("span",{"text-orange":""},"restart automatically"),t(". ")],-1),Un={flex:"~ gap-3",mt2:"","justify-end":""},ct=N({__name:"timeline",setup(v){const d=le(),u=H(),n=ae(),l=ie();async function i(){const[p,o]=await R.enableTimeline(!0);await n.start(p,o)&&await R.enableTimeline(!1)}return(p,o)=>{const r=Fn,f=fe,x=re,k=me,B=_e,w=z,F=ce,C=Gn,S=ye;return s(),c(b,null,[a(d)?.timeline?.enabled?(s(),g(r,{key:0})):(s(),c(b,{key:1},[m(x,null,{default:h(()=>[m(f,{icon:"i-carbon-roadmap",title:"Timeline",description:"Timeline enables the inspection of when composable being executed and the route changes.",actions:[{label:"Enable"}],onAction:i})]),_:1}),m(a(n),null,{default:h(({resolve:_,args:E})=>[m(F,{"model-value":!0,onClose:A=>_(!1)},{default:h(()=>[e("div",Pn,[Hn,e("p",Jn,[t(" Your "),m(k,{role:"button",n:"primary",onClick:o[0]||(o[0]=A=>a(l)(a(u)?._nuxtConfigFile)),textContent:"Nuxt config"}),t(" will be updated as: ")]),m(B,{from:E[0],to:E[1],"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),qn,e("div",Un,[m(w,{onClick:A=>_(!1)},{default:h(()=>[t(" Cancel ")]),_:2},1032,["onClick"]),m(w,{n:"solid primary",capitalize:"",onClick:A=>_(!0)},{default:h(()=>[t(" Enable ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})],64)),m(S,null,{default:h(()=>[m(C)]),_:1})],64)}}});export{ct as default};