@nuxt/devtools 1.1.5 → 1.3.0

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 (120) hide show
  1. package/README.md +1 -1
  2. package/dist/chunks/module-main.mjs +5 -37
  3. package/dist/chunks/vscode.mjs +1 -0
  4. package/dist/client/200.html +23 -23
  5. package/dist/client/404.html +23 -23
  6. package/dist/client/_nuxt/{iwQAEmKI.js → B0KOo1ba.js} +1 -1
  7. package/dist/client/_nuxt/B0ueYKyn.js +9 -0
  8. package/dist/client/_nuxt/{_kNmeBjy.js → B3uyMCCv.js} +1 -1
  9. package/dist/client/_nuxt/B6pd2ymi.js +1 -0
  10. package/dist/client/_nuxt/{CA_eAFlo.js → B90Ttd7o.js} +1 -1
  11. package/dist/client/_nuxt/B9CZjm2z.js +2 -0
  12. package/dist/client/_nuxt/{BBcfeHW0.js → BCaU9car.js} +1 -1
  13. package/dist/client/_nuxt/{D6dOrpSz.js → BFJB92M1.js} +1 -1
  14. package/dist/client/_nuxt/BGq4KZyx.js +1 -0
  15. package/dist/client/_nuxt/{iazTOtp7.js → BJ65-qNi.js} +1 -1
  16. package/dist/client/_nuxt/{Ds9RG5LO.js → BJbhmoX6.js} +2 -2
  17. package/dist/client/_nuxt/{chB0bF2e.js → BKiZzkRj.js} +1 -1
  18. package/dist/client/_nuxt/{CkNuW12v.js → BLnLeUd3.js} +1 -1
  19. package/dist/client/_nuxt/BMbUeBqv.js +74 -0
  20. package/dist/client/_nuxt/{BawzGT5O.js → BNQxZ_tm.js} +1 -1
  21. package/dist/client/_nuxt/BPX3fYES.js +1 -0
  22. package/dist/client/_nuxt/{CaQmwCtB.js → BXJ3NTXl.js} +1 -1
  23. package/dist/client/_nuxt/BZfs-ost.js +1 -0
  24. package/dist/client/_nuxt/{BM5AytHF.js → BaKCaZGk.js} +1 -1
  25. package/dist/client/_nuxt/{BullEKkw.js → BaRB0bpe.js} +1 -1
  26. package/dist/client/_nuxt/{CvL8cdRT.js → BdrRW8OO.js} +1 -1
  27. package/dist/client/_nuxt/BiWblMbN.js +505 -0
  28. package/dist/client/_nuxt/{BitKOBNg.js → BjA0kRNM.js} +1 -1
  29. package/dist/client/_nuxt/{CXOMhAuo.js → Bki9ESx2.js} +1 -1
  30. package/dist/client/_nuxt/{BpcRrzbR.js → Bm0NU4n7.js} +1 -1
  31. package/dist/client/_nuxt/BvDxtYhR.js +1 -0
  32. package/dist/client/_nuxt/BvWK-VK_.js +1 -0
  33. package/dist/client/_nuxt/{Dj8kH5KD.js → Bvxqhl9x.js} +1 -1
  34. package/dist/client/_nuxt/{CIi1W1Xn.js → BwUXge7D.js} +1 -1
  35. package/dist/client/_nuxt/{CCEzajrZ.js → C378twlw.js} +1 -1
  36. package/dist/client/_nuxt/{BRZ59h9H.js → C6qnkm2z.js} +1 -1
  37. package/dist/client/_nuxt/{BMulB6_N.js → CFIIwO5G.js} +2 -2
  38. package/dist/client/_nuxt/CHuuZgn4.js +699 -0
  39. package/dist/client/_nuxt/{CFP4gcPi.js → CMxQOWd6.js} +1 -1
  40. package/dist/client/_nuxt/{DggdVF2v.js → CQ1WWl9n.js} +1 -1
  41. package/dist/client/_nuxt/{DnNA5yXt.js → CQ4DIexe.js} +1 -1
  42. package/dist/client/_nuxt/CWDIGLyg.js +1 -0
  43. package/dist/client/_nuxt/{pzsDcbJd.js → CZ3WyNik.js} +1 -1
  44. package/dist/client/_nuxt/CZS3fKwr.js +20 -0
  45. package/dist/client/_nuxt/CgrD3_g7.js +1 -0
  46. package/dist/client/_nuxt/{A4ZOcguv.js → CiSNQgOw.js} +1 -1
  47. package/dist/client/_nuxt/{sSwgCvN9.js → ClXd2J8B.js} +1 -1
  48. package/dist/client/_nuxt/{BMzBLMig.js → Co1NnsNe.js} +1 -1
  49. package/dist/client/_nuxt/{D4UCAj7O.js → Coatggmz.js} +1 -1
  50. package/dist/client/_nuxt/{Do1J5gVB.js → CqLfaAGq.js} +1 -1
  51. package/dist/client/_nuxt/Cuq04cZp.js +1031 -0
  52. package/dist/client/_nuxt/CwVYEx0b.js +1 -0
  53. package/dist/client/_nuxt/Cw_HWDDb.js +1 -0
  54. package/dist/client/_nuxt/DDnrbwm6.js +2002 -0
  55. package/dist/client/_nuxt/{DfFJQbG4.js → DFF-wSSt.js} +2 -2
  56. package/dist/client/_nuxt/{e0xDN1rm.js → DGsSg8Yx.js} +1 -1
  57. package/dist/client/_nuxt/DHFOa8tC.js +200 -0
  58. package/dist/client/_nuxt/{Bozs3mpp.js → DI84-lg6.js} +1 -1
  59. package/dist/client/_nuxt/DJ6PyLfz.js +1 -0
  60. package/dist/client/_nuxt/DKAZQnAj.js +1 -0
  61. package/dist/client/_nuxt/{D-bKw4-c.js → DLnTPeai.js} +1 -1
  62. package/dist/client/_nuxt/{Dwt0a_c3.js → DOshYgbb.js} +1 -1
  63. package/dist/client/_nuxt/DYSjJb82.js +99 -0
  64. package/dist/client/_nuxt/{A1WiD9SJ.js → DaCkt_J7.js} +1 -1
  65. package/dist/client/_nuxt/{95Xol9hk.js → DlPmnnjb.js} +1 -1
  66. package/dist/client/_nuxt/Dnoo7cyQ.js +1 -0
  67. package/dist/client/_nuxt/{iJ8Lbex6.js → DtL8m2Aq.js} +3 -3
  68. package/dist/client/_nuxt/{Cp4lmCDv.js → DxuiyCFU.js} +1 -1
  69. package/dist/client/_nuxt/{jtaEtbvO.js → DyeV3m0g.js} +1 -1
  70. package/dist/client/_nuxt/{CeWabOXN.js → HBanA1tG.js} +1 -1
  71. package/dist/client/_nuxt/{C35r-I8u.js → IlsTwlBb.js} +1 -1
  72. package/dist/client/_nuxt/NSectionBlock.DF4F_onM.css +1 -0
  73. package/dist/client/_nuxt/PO8p82Rr.js +48 -0
  74. package/dist/client/_nuxt/Q9LIRUci.js +25 -0
  75. package/dist/client/_nuxt/{CjV45cFY.js → SP_cIGIP.js} +1 -1
  76. package/dist/client/_nuxt/{Cd6DbZRp.js → Tw6nDHWX.js} +1 -1
  77. package/dist/client/_nuxt/{C3dxgrHo.js → V55AckNm.js} +1 -1
  78. package/dist/client/_nuxt/V_y36BGi.js +1 -0
  79. package/dist/client/_nuxt/{Bo1S1yFp.js → YHaOe1r2.js} +1 -1
  80. package/dist/client/_nuxt/_ECCzcZq.js +666 -0
  81. package/dist/client/_nuxt/builds/latest.json +1 -1
  82. package/dist/client/_nuxt/builds/meta/d37e84e4-7cd9-41ae-8568-7d4b1d04caa2.json +1 -0
  83. package/dist/client/_nuxt/entry.CyP5HdOH.css +1 -0
  84. package/dist/client/_nuxt/error-404.ClUqCsUG.css +1 -0
  85. package/dist/client/_nuxt/error-500.Xj6Xfe4d.css +1 -0
  86. package/dist/client/_nuxt/iAfmkGIi.js +1 -0
  87. package/dist/client/_nuxt/index.BeOv1PgR.css +1 -0
  88. package/dist/client/_nuxt/{BaZ-MlpT.js → jWDo8Ezs.js} +1 -1
  89. package/dist/client/_nuxt/jeEj0LFC.js +1 -0
  90. package/dist/client/_nuxt/{DLpnW8-5.js → lLn-RhM6.js} +1 -1
  91. package/dist/client/_nuxt/{CUmEcBOj.js → tWSQ6YIe.js} +1 -1
  92. package/dist/client/index.html +23 -23
  93. package/dist/module.json +5 -1
  94. package/dist/runtime/function-metrics-helpers.mjs +2 -2
  95. package/dist/runtime/plugins/view/FrameBox.vue +3 -1
  96. package/dist/runtime/plugins/view/Main.vue +11 -1
  97. package/dist/runtime/plugins/view/client.mjs +4 -2
  98. package/dist/runtime/use-nuxt-devtools.mjs +1 -1
  99. package/package.json +40 -40
  100. package/dist/client/_nuxt/4OiyuHIo.js +0 -1
  101. package/dist/client/_nuxt/BKuBdopT.js +0 -1
  102. package/dist/client/_nuxt/BUsflWtV.js +0 -9
  103. package/dist/client/_nuxt/Bb1mULLQ.js +0 -48
  104. package/dist/client/_nuxt/CM17keFt.js +0 -2
  105. package/dist/client/_nuxt/C_8Nqh_D.js +0 -105
  106. package/dist/client/_nuxt/Ccvom-7a.js +0 -1
  107. package/dist/client/_nuxt/DEvcMGc8.js +0 -2
  108. package/dist/client/_nuxt/DODPx1Rc.js +0 -1
  109. package/dist/client/_nuxt/DZURVFrY.js +0 -1
  110. package/dist/client/_nuxt/DmETP5K3.js +0 -982
  111. package/dist/client/_nuxt/Dz2CDcxz.js +0 -1
  112. package/dist/client/_nuxt/NSectionBlock.BrczCkLG.css +0 -1
  113. package/dist/client/_nuxt/R098q0FN.js +0 -1
  114. package/dist/client/_nuxt/builds/meta/7ee08684-5a32-4a3b-805a-feeb40a35ac6.json +0 -1
  115. package/dist/client/_nuxt/entry.OFjnihVh.css +0 -1
  116. package/dist/client/_nuxt/error-404.CbfoPaOP.css +0 -1
  117. package/dist/client/_nuxt/error-500.CgCLIzMa.css +0 -1
  118. package/dist/client/_nuxt/o1TLfE1U.js +0 -1
  119. package/dist/client/_nuxt/pinia.De6kl7Vm.css +0 -1
  120. package/dist/client/_nuxt/q7q-hnWy.js +0 -1
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * vanilla-picker v2.12.2
2
+ * vanilla-picker v2.12.3
3
3
  * https://vanilla-picker.js.org
4
4
  *
5
- * Copyright 2017-2023 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
5
+ * Copyright 2017-2024 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
6
6
  * Released under the ISC license.
7
7
  */var O=function(l,i){if(!(l instanceof i))throw new TypeError("Cannot call a class as a function")},R=function(){function l(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}return function(i,e,t){return e&&l(i.prototype,e),t&&l(i,t),i}}(),y=function(){function l(i,e){var t=[],r=!0,n=!1,o=void 0;try{for(var c=i[Symbol.iterator](),a;!(r=(a=c.next()).done)&&(t.push(a.value),!(e&&t.length===e));r=!0);}catch(s){n=!0,o=s}finally{try{!r&&c.return&&c.return()}finally{if(n)throw o}}return t}return function(i,e){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return l(i,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();String.prototype.startsWith=String.prototype.startsWith||function(l){return this.indexOf(l)===0};String.prototype.padStart=String.prototype.padStart||function(l,i){for(var e=this;e.length<l;)e=i+e;return e};var N={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function A(l){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=i>0?l.toFixed(i).replace(/0+$/,"").replace(/\.$/,""):l.toString();return e||"0"}var z=function(){function l(i,e,t,r){O(this,l);var n=this;function o(a){if(a.startsWith("hsl")){var s=a.match(/([\-\d\.e]+)/g).map(Number),p=y(s,4),u=p[0],f=p[1],d=p[2],b=p[3];b===void 0&&(b=1),u/=360,f/=100,d/=100,n.hsla=[u,f,d,b]}else if(a.startsWith("rgb")){var m=a.match(/([\-\d\.e]+)/g).map(Number),h=y(m,4),v=h[0],g=h[1],E=h[2],k=h[3];k===void 0&&(k=1),n.rgba=[v,g,E,k]}else a.startsWith("#")?n.rgba=l.hexToRgb(a):n.rgba=l.nameToRgb(a)||l.hexToRgb(a)}if(i!==void 0)if(Array.isArray(i))this.rgba=i;else if(t===void 0){var c=i&&""+i;c&&o(c.toLowerCase())}else this.rgba=[i,e,t,r===void 0?1:r]}return R(l,[{key:"printRGB",value:function(e){var t=e?this.rgba:this.rgba.slice(0,3),r=t.map(function(n,o){return A(n,o===3?3:0)});return e?"rgba("+r+")":"rgb("+r+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],r=["","%","%",""],n=e?this.hsla:this.hsla.slice(0,3),o=n.map(function(c,a){return A(c*t[a],a===3?3:1)+r[a]});return e?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=l.hslToRgb(this._hsla)},set:function(e){e.length===3&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=l.rgbToHsl(this._rgba)},set:function(e){e.length===3&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var e=this.rgba,t=e.map(function(r,n){return n<3?r.toString(16):Math.round(r*255).toString(16)});return"#"+t.map(function(r){return r.padStart(2,"0")}).join("")},set:function(e){this.rgba=l.hexToRgb(e)}}],[{key:"hexToRgb",value:function(e){var t=(e.startsWith("#")?e.slice(1):e).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!t.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+e);var r=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(n){return parseInt(n,16)});return r[3]=r[3]/255,r}},{key:"nameToRgb",value:function(e){var t=e.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=N[t];return r===void 0?r:l.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(e){var t=y(e,4),r=t[0],n=t[1],o=t[2],c=t[3];r/=255,n/=255,o/=255;var a=Math.max(r,n,o),s=Math.min(r,n,o),p=void 0,u=void 0,f=(a+s)/2;if(a===s)p=u=0;else{var d=a-s;switch(u=f>.5?d/(2-a-s):d/(a+s),a){case r:p=(n-o)/d+(n<o?6:0);break;case n:p=(o-r)/d+2;break;case o:p=(r-n)/d+4;break}p/=6}return[p,u,f,c]}},{key:"hslToRgb",value:function(e){var t=y(e,4),r=t[0],n=t[1],o=t[2],c=t[3],a=void 0,s=void 0,p=void 0;if(n===0)a=s=p=o;else{var u=function(h,v,g){return g<0&&(g+=1),g>1&&(g-=1),g<.16666666666666666?h+(v-h)*6*g:g<.5?v:g<.6666666666666666?h+(v-h)*(.6666666666666666-g)*6:h},f=o<.5?o*(1+n):o+n-o*n,d=2*o-f;a=u(d,f,r+1/3),s=u(d,f,r),p=u(d,f,r-1/3)}var b=[a*255,s*255,p*255].map(Math.round);return b[3]=c,b}}]),l}(),F=function(){function l(){O(this,l),this._events=[]}return R(l,[{key:"add",value:function(e,t,r){e.addEventListener(t,r,!1),this._events.push({target:e,type:t,handler:r})}},{key:"remove",value:function(e,t,r){this._events=this._events.filter(function(n){var o=!0;return e&&e!==n.target&&(o=!1),t&&t!==n.type&&(o=!1),r&&r!==n.handler&&(o=!1),o&&l._doRemove(n.target,n.type,n.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(e){return l._doRemove(e.target,e.type,e.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(e,t,r){e.removeEventListener(t,r,!1)}}]),l}();function U(l){var i=document.createElement("div");return i.innerHTML=l,i.firstElementChild}function L(l,i,e){var t=!1;function r(a,s,p){return Math.max(s,Math.min(a,p))}function n(a,s,p){if(p&&(t=!0),!!t){a.preventDefault();var u=i.getBoundingClientRect(),f=u.width,d=u.height,b=s.clientX,m=s.clientY,h=r(b-u.left,0,f),v=r(m-u.top,0,d);e(h/f,v/d)}}function o(a,s){var p=a.buttons===void 0?a.which:a.buttons;p===1?n(a,a,s):t=!1}function c(a,s){a.touches.length===1?n(a,a.touches[0],s):t=!1}l.add(i,"mousedown",function(a){o(a,!0)}),l.add(i,"touchstart",function(a){c(a,!0)}),l.add(window,"mousemove",o),l.add(i,"touchmove",c),l.add(window,"mouseup",function(a){t=!1}),l.add(i,"touchend",function(a){t=!1}),l.add(i,"touchcancel",function(a){t=!1})}var B=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
8
8
  linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,G=360,P="keydown",x="mousedown",T="focusin";function _(l,i){return(i||document).querySelector(l)}function M(l){l.preventDefault(),l.stopPropagation()}function H(l,i,e,t,r){l.add(i,P,function(n){e.indexOf(n.key)>=0&&(r&&M(n),t(n))})}var W=function(){function l(i){O(this,l),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new F,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(i)}return R(l,[{key:"setOptions",value:function(e){var t=this;if(!e)return;var r=this.settings;function n(s,p,u){for(var f in s)u&&u.indexOf(f)>=0||(p[f]=s[f])}if(e instanceof HTMLElement)r.parent=e;else{r.parent&&e.parent&&r.parent!==e.parent&&(this._events.remove(r.parent),this._popupInited=!1),n(e,r),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var o=e.color||e.colour;o&&this._setColor(o)}var c=r.parent;if(c&&r.popup&&!this._popupInited){var a=function(p){return t.openHandler(p)};this._events.add(c,"click",a),H(this._events,c,[" ","Spacebar","Enter"],a),this._popupInited=!0}else e.parent&&!r.popup&&this.show()}},{key:"openHandler",value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none";var t=e&&e.type===P?this._domEdit:this.domElement;setTimeout(function(){return t.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(e){var t=e&&e.type,r=!1;if(!e)r=!0;else if(t===x||t===T){var n=(this.__containedEvent||0)+100;e.timeStamp>n&&(r=!0)}else M(e),r=!0;r&&this.hide()&&(this.settings.parent.style.pointerEvents="",t!==x&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if(typeof e=="string"&&(e=e.trim()),!!e){t=t||{};var r=void 0;try{r=new z(e)}catch(o){if(t.failSilently)return;throw o}if(!this.settings.alpha){var n=r.hsla;n[3]=1,r.hsla=n}this.colour=this.color=r,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){var e=this.settings.parent;if(!e)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',n=U(r);return this.domElement=n,this._domH=_(".picker_hue",n),this._domSL=_(".picker_sl",n),this._domA=_(".picker_alpha",n),this._domEdit=_(".picker_editor input",n),this._domSample=_(".picker_sample",n),this._domOkay=_(".picker_done button",n),this._domCancel=_(".picker_cancel button",n),n.classList.add("layout_"+this.settings.layout),this.settings.alpha||n.classList.add("no_alpha"),this.settings.editor||n.classList.add("no_editor"),this.settings.cancelButton||n.classList.add("no_cancel"),this._ifPopup(function(){return n.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,r=this.domElement,n=this._events;function o(s,p,u){n.add(s,p,u)}o(r,"click",function(s){return s.preventDefault()}),L(n,this._domH,function(s,p){return t._setHSLA(s)}),L(n,this._domSL,function(s,p){return t._setHSLA(null,s,1-p)}),this.settings.alpha&&L(n,this._domA,function(s,p){return t._setHSLA(null,null,null,1-p)});var c=this._domEdit;o(c,"input",function(s){t._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(c,"focus",function(s){var p=this;p.selectionStart===p.selectionEnd&&p.select()}),this._ifPopup(function(){var s=function(f){return e.closeHandler(f)};o(window,x,s),o(window,T,s),H(n,r,["Esc","Escape"],s);var p=function(f){e.__containedEvent=f.timeStamp};o(r,x,p),o(r,T,p),o(e._domCancel,"click",s)});var a=function(p){e._ifPopup(function(){return e.closeHandler(p)}),e.onDone&&e.onDone(e.colour)};o(this._domOkay,"click",a),H(n,r,["Enter"],a)}},{key:"_setPosition",value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup(function(r){getComputedStyle(e).position==="static"&&(e.style.position="relative");var n=r===!0?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===n?t.classList.add(o):t.classList.remove(o)}),t.classList.add(n)})}},{key:"_setHSLA",value:function(e,t,r,n,o){o=o||{};var c=this.colour,a=c.hsla;[e,t,r,n].forEach(function(s,p){(s||s===0)&&(a[p]=s)}),c.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(c)}},{key:"_updateUI",value:function(e){if(!this.domElement)return;e=e||{};var t=this.colour,r=t.hsla,n="hsl("+r[0]*G+", 100%, 50%)",o=t.hslString,c=t.hslaString,a=this._domH,s=this._domSL,p=this._domA,u=_(".picker_selector",a),f=_(".picker_selector",s),d=_(".picker_selector",p);function b(I,S,C){S.style.left=C*100+"%"}function m(I,S,C){S.style.top=C*100+"%"}b(a,u,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=n,b(s,f,r[1]),m(s,f,1-r[2]),s.style.color=o,m(p,d,1-r[3]);var h=o,v=h.replace("hsl","hsla").replace(")",", 0)"),g="linear-gradient("+[h,v]+")";if(this._domA.style.background=g+", "+B,!e.fromEditor){var E=this.settings.editorFormat,k=this.settings.alpha,w=void 0;switch(E){case"rgb":w=t.printRGB(k);break;case"hsl":w=t.printHSL(k);break;default:w=t.printHex(k)}this._domEdit.value=w}this._domSample.style.color=c}},{key:"_ifPopup",value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:"_toggleDOM",value:function(e){var t=this.domElement;if(!t)return!1;var r=e?"":"none",n=t.style.display!==r;return n&&(t.style.display=r),n}}]),l}();{var D=document.createElement("style");D.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(D),W.StyleElement=D}export{W as default};
@@ -1 +1 @@
1
- import{d as s,a as u,o as d,m as f,v as p,t as o,f as n,k as c,G as m}from"./Bb1mULLQ.js";const x={"ml-1":"","text-xs":"",op50:""},g=s({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function i(r){return t.color?r?(r=r*t.factor,r<.5?"text-gray:50":r>1e3?"text-red-400":r>500?"text-orange-400":r>200?"text-yellow-400":""):"text-gray-400":""}const e=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(r,l)=>(d(),f("div",{class:m(i(r.duration))},[p(o(n(e)[0]),1),c("span",x,o(n(e)[1]),1)],2))}});export{g as _};
1
+ import{d as s,a as u,o as d,m as f,v as p,t as o,f as n,k as c,G as m}from"./PO8p82Rr.js";const x={"ml-1":"","text-xs":"",op50:""},g=s({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function i(r){return t.color?r?(r=r*t.factor,r<.5?"text-gray:50":r>1e3?"text-red-400":r>500?"text-orange-400":r>200?"text-yellow-400":""):"text-gray-400":""}const e=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(r,l)=>(d(),f("div",{class:m(i(r.duration))},[p(o(n(e)[0]),1),c("span",x,o(n(e)[1]),1)],2))}});export{g as _};
@@ -0,0 +1,200 @@
1
+ const e=Object.freeze({displayName:"YAML",name:"yaml",patterns:[{include:"#comment"},{include:"#property"},{include:"#directive"},{match:"^---",name:"entity.other.document.begin.yaml"},{match:"^\\.{3}",name:"entity.other.document.end.yaml"},{include:"#node"}],repository:{"block-collection":{patterns:[{include:"#block-sequence"},{include:"#block-mapping"}]},"block-mapping":{patterns:[{include:"#block-pair"}]},"block-node":{patterns:[{include:"#prototype"},{include:"#block-scalar"},{include:"#block-collection"},{include:"#flow-scalar-plain-out"},{include:"#flow-node"}]},"block-pair":{patterns:[{begin:"\\?",beginCaptures:{1:{name:"punctuation.definition.key-value.begin.yaml"}},end:"(?=\\?)|^ *(:)|(:)",endCaptures:{1:{name:"punctuation.separator.key-value.mapping.yaml"},2:{name:"invalid.illegal.expected-newline.yaml"}},name:"meta.block-mapping.yaml",patterns:[{include:"#block-node"}]},{begin:`(?x)
2
+ (?=
3
+ (?x:
4
+ [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
5
+ | [?:-] \\S
6
+ )
7
+ (
8
+ [^\\s:]
9
+ | : \\S
10
+ | \\s+ (?![#\\s])
11
+ )*
12
+ \\s*
13
+ :
14
+ (\\s|$)
15
+ )
16
+ `,end:`(?x)
17
+ (?=
18
+ \\s* $
19
+ | \\s+ \\#
20
+ | \\s* : (\\s|$)
21
+ )
22
+ `,patterns:[{include:"#flow-scalar-plain-out-implicit-type"},{begin:`(?x)
23
+ [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
24
+ | [?:-] \\S
25
+ `,beginCaptures:{0:{name:"entity.name.tag.yaml"}},contentName:"entity.name.tag.yaml",end:`(?x)
26
+ (?=
27
+ \\s* $
28
+ | \\s+ \\#
29
+ | \\s* : (\\s|$)
30
+ )
31
+ `,name:"string.unquoted.plain.out.yaml"}]},{match:":(?=\\s|$)",name:"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{begin:"(?:(\\|)|(>))([1-9])?([-+])?(.*\\n?)",beginCaptures:{1:{name:"keyword.control.flow.block-scalar.literal.yaml"},2:{name:"keyword.control.flow.block-scalar.folded.yaml"},3:{name:"constant.numeric.indentation-indicator.yaml"},4:{name:"storage.modifier.chomping-indicator.yaml"},5:{patterns:[{include:"#comment"},{match:".+",name:"invalid.illegal.expected-comment-or-newline.yaml"}]}},end:"^(?=\\S)|(?!\\G)",patterns:[{begin:"^([ ]+)(?! )",end:"^(?!\\1|\\s*$)",name:"string.unquoted.block.yaml"}]},"block-sequence":{match:"(-)(?!\\S)",name:"punctuation.definition.block.sequence.item.yaml"},comment:{begin:"(?:(^[ \\t]*)|[ \\t]+)(?=#\\p{Print}*$)",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.yaml"}},end:"(?!\\G)",patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.yaml"}},end:"\\n",name:"comment.line.number-sign.yaml"}]},directive:{begin:"^%",beginCaptures:{0:{name:"punctuation.definition.directive.begin.yaml"}},end:"(?=$|[ \\t]+($|#))",name:"meta.directive.yaml",patterns:[{captures:{1:{name:"keyword.other.directive.yaml.yaml"},2:{name:"constant.numeric.yaml-version.yaml"}},match:"\\G(YAML)[ \\t]+(\\d+\\.\\d+)"},{captures:{1:{name:"keyword.other.directive.tag.yaml"},2:{name:"storage.type.tag-handle.yaml"},3:{name:"support.type.tag-prefix.yaml"}},match:`(?x)
32
+ \\G
33
+ (TAG)
34
+ (?:[ \\t]+
35
+ ((?:!(?:[0-9A-Za-z\\-]*!)?))
36
+ (?:[ \\t]+ (
37
+ ! (?x: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )*
38
+ | (?![,!\\[\\]{}]) (?x: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )+
39
+ )
40
+ )?
41
+ )?
42
+ `},{captures:{1:{name:"support.other.directive.reserved.yaml"},2:{name:"string.unquoted.directive-name.yaml"},3:{name:"string.unquoted.directive-parameter.yaml"}},match:"(?x) \\G (\\w+) (?:[ \\t]+ (\\w+) (?:[ \\t]+ (\\w+))? )?"},{match:"\\S+",name:"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{captures:{1:{name:"keyword.control.flow.alias.yaml"},2:{name:"punctuation.definition.alias.yaml"},3:{name:"variable.other.alias.yaml"},4:{name:"invalid.illegal.character.anchor.yaml"}},match:"((\\*))([^\\s\\[\\]/{/},]+)([^\\s\\]},]\\S*)?"},"flow-collection":{patterns:[{include:"#flow-sequence"},{include:"#flow-mapping"}]},"flow-mapping":{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.mapping.begin.yaml"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.mapping.end.yaml"}},name:"meta.flow-mapping.yaml",patterns:[{include:"#prototype"},{match:",",name:"punctuation.separator.mapping.yaml"},{include:"#flow-pair"}]},"flow-node":{patterns:[{include:"#prototype"},{include:"#flow-alias"},{include:"#flow-collection"},{include:"#flow-scalar"}]},"flow-pair":{patterns:[{begin:"\\?",beginCaptures:{0:{name:"punctuation.definition.key-value.begin.yaml"}},end:"(?=[},\\]])",name:"meta.flow-pair.explicit.yaml",patterns:[{include:"#prototype"},{include:"#flow-pair"},{include:"#flow-node"},{begin:":(?=\\s|$|[\\[\\]{},])",beginCaptures:{0:{name:"punctuation.separator.key-value.mapping.yaml"}},end:"(?=[},\\]])",patterns:[{include:"#flow-value"}]}]},{begin:`(?x)
43
+ (?=
44
+ (?:
45
+ [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
46
+ | [?:-] [^\\s[\\[\\]{},]]
47
+ )
48
+ (
49
+ [^\\s:[\\[\\]{},]]
50
+ | : [^\\s[\\[\\]{},]]
51
+ | \\s+ (?![#\\s])
52
+ )*
53
+ \\s*
54
+ :
55
+ (\\s|$)
56
+ )
57
+ `,end:`(?x)
58
+ (?=
59
+ \\s* $
60
+ | \\s+ \\#
61
+ | \\s* : (\\s|$)
62
+ | \\s* : [\\[\\]{},]
63
+ | \\s* [\\[\\]{},]
64
+ )
65
+ `,name:"meta.flow-pair.key.yaml",patterns:[{include:"#flow-scalar-plain-in-implicit-type"},{begin:`(?x)
66
+ [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
67
+ | [?:-] [^\\s[\\[\\]{},]]
68
+ `,beginCaptures:{0:{name:"entity.name.tag.yaml"}},contentName:"entity.name.tag.yaml",end:`(?x)
69
+ (?=
70
+ \\s* $
71
+ | \\s+ \\#
72
+ | \\s* : (\\s|$)
73
+ | \\s* : [\\[\\]{},]
74
+ | \\s* [\\[\\]{},]
75
+ )
76
+ `,name:"string.unquoted.plain.in.yaml"}]},{include:"#flow-node"},{begin:":(?=\\s|$|[\\[\\]{},])",captures:{0:{name:"punctuation.separator.key-value.mapping.yaml"}},end:"(?=[},\\]])",name:"meta.flow-pair.yaml",patterns:[{include:"#flow-value"}]}]},"flow-scalar":{patterns:[{include:"#flow-scalar-double-quoted"},{include:"#flow-scalar-single-quoted"},{include:"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.yaml"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.yaml"}},name:"string.quoted.double.yaml",patterns:[{match:'\\\\([0abtnvfre "/\\\\N_Lp]|x\\d\\d|u\\d{4}|U\\d{8})',name:"constant.character.escape.yaml"},{match:"\\\\\\n",name:"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{patterns:[{include:"#flow-scalar-plain-in-implicit-type"},{begin:`(?x)
77
+ [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
78
+ | [?:-] [^\\s[\\[\\]{},]]
79
+ `,end:`(?x)
80
+ (?=
81
+ \\s* $
82
+ | \\s+ \\#
83
+ | \\s* : (\\s|$)
84
+ | \\s* : [\\[\\]{},]
85
+ | \\s* [\\[\\]{},]
86
+ )
87
+ `,name:"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{patterns:[{captures:{1:{name:"constant.language.null.yaml"},2:{name:"constant.language.boolean.yaml"},3:{name:"constant.numeric.integer.yaml"},4:{name:"constant.numeric.float.yaml"},5:{name:"constant.other.timestamp.yaml"},6:{name:"constant.language.value.yaml"},7:{name:"constant.language.merge.yaml"}},match:`(?x)
88
+ (?x:
89
+ (null|Null|NULL|~)
90
+ | (y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)
91
+ | (
92
+ (?:
93
+ [-+]? 0b [0-1_]+
94
+ | [-+]? 0 [0-7_]+
95
+ | [-+]? (?: 0|[1-9][0-9_]*)
96
+ | [-+]? 0x [0-9a-fA-F_]+
97
+ | [-+]? [1-9] [0-9_]* (?: :[0-5]?[0-9])+
98
+ )
99
+ )
100
+ | (
101
+ (?x:
102
+ [-+]? (?: [0-9] [0-9_]*)? \\. [0-9.]* (?: [eE] [-+] [0-9]+)?
103
+ | [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \\. [0-9_]*
104
+ | [-+]? \\. (?: inf|Inf|INF)
105
+ | \\. (?: nan|NaN|NAN)
106
+ )
107
+ )
108
+ | (
109
+ (?x:
110
+ \\d{4} - \\d{2} - \\d{2}
111
+ | \\d{4}
112
+ - \\d{1,2}
113
+ - \\d{1,2}
114
+ (?: [Tt] | [ \\t]+) \\d{1,2}
115
+ : \\d{2}
116
+ : \\d{2}
117
+ (?: \\.\\d*)?
118
+ (?:
119
+ (?:[ \\t]*) Z
120
+ | [-+] \\d{1,2} (?: :\\d{1,2})?
121
+ )?
122
+ )
123
+ )
124
+ | (=)
125
+ | (<<)
126
+ )
127
+ (?:
128
+ (?=
129
+ \\s* $
130
+ | \\s+ \\#
131
+ | \\s* : (\\s|$)
132
+ | \\s* : [\\[\\]{},]
133
+ | \\s* [\\[\\]{},]
134
+ )
135
+ )
136
+ `}]},"flow-scalar-plain-out":{patterns:[{include:"#flow-scalar-plain-out-implicit-type"},{begin:`(?x)
137
+ [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
138
+ | [?:-] \\S
139
+ `,end:`(?x)
140
+ (?=
141
+ \\s* $
142
+ | \\s+ \\#
143
+ | \\s* : (\\s|$)
144
+ )
145
+ `,name:"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{patterns:[{captures:{1:{name:"constant.language.null.yaml"},2:{name:"constant.language.boolean.yaml"},3:{name:"constant.numeric.integer.yaml"},4:{name:"constant.numeric.float.yaml"},5:{name:"constant.other.timestamp.yaml"},6:{name:"constant.language.value.yaml"},7:{name:"constant.language.merge.yaml"}},match:`(?x)
146
+ (?x:
147
+ (null|Null|NULL|~)
148
+ | (y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)
149
+ | (
150
+ (?:
151
+ [-+]? 0b [0-1_]+
152
+ | [-+]? 0 [0-7_]+
153
+ | [-+]? (?: 0|[1-9][0-9_]*)
154
+ | [-+]? 0x [0-9a-fA-F_]+
155
+ | [-+]? [1-9] [0-9_]* (?: :[0-5]?[0-9])+
156
+ )
157
+ )
158
+ | (
159
+ (?x:
160
+ [-+]? (?: [0-9] [0-9_]*)? \\. [0-9.]* (?: [eE] [-+] [0-9]+)?
161
+ | [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \\. [0-9_]*
162
+ | [-+]? \\. (?: inf|Inf|INF)
163
+ | \\. (?: nan|NaN|NAN)
164
+ )
165
+ )
166
+ | (
167
+ (?x:
168
+ \\d{4} - \\d{2} - \\d{2}
169
+ | \\d{4}
170
+ - \\d{1,2}
171
+ - \\d{1,2}
172
+ (?: [Tt] | [ \\t]+) \\d{1,2}
173
+ : \\d{2}
174
+ : \\d{2}
175
+ (?: \\.\\d*)?
176
+ (?:
177
+ (?:[ \\t]*) Z
178
+ | [-+] \\d{1,2} (?: :\\d{1,2})?
179
+ )?
180
+ )
181
+ )
182
+ | (=)
183
+ | (<<)
184
+ )
185
+ (?x:
186
+ (?=
187
+ \\s* $
188
+ | \\s+ \\#
189
+ | \\s* : (\\s|$)
190
+ )
191
+ )
192
+ `}]},"flow-scalar-single-quoted":{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.yaml"}},end:"'(?!')",endCaptures:{0:{name:"punctuation.definition.string.end.yaml"}},name:"string.quoted.single.yaml",patterns:[{match:"''",name:"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.sequence.begin.yaml"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.sequence.end.yaml"}},name:"meta.flow-sequence.yaml",patterns:[{include:"#prototype"},{match:",",name:"punctuation.separator.sequence.yaml"},{include:"#flow-pair"},{include:"#flow-node"}]},"flow-value":{patterns:[{begin:"\\G(?![},\\]])",end:"(?=[},\\]])",name:"meta.flow-pair.value.yaml",patterns:[{include:"#flow-node"}]}]},node:{patterns:[{include:"#block-node"}]},property:{begin:"(?=!|&)",end:"(?!\\G)",name:"meta.property.yaml",patterns:[{captures:{1:{name:"keyword.control.property.anchor.yaml"},2:{name:"punctuation.definition.anchor.yaml"},3:{name:"entity.name.type.anchor.yaml"},4:{name:"invalid.illegal.character.anchor.yaml"}},match:"\\G((&))([^\\s\\[\\]/{/},]+)(\\S+)?"},{match:`(?x)
193
+ \\G
194
+ (?:
195
+ ! < (?: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )+ >
196
+ | (?:!(?:[0-9A-Za-z\\-]*!)?) (?: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$_.~*'()] )+
197
+ | !
198
+ )
199
+ (?=\\ |\\t|$)
200
+ `,name:"storage.type.tag-handle.yaml"},{match:"\\S+",name:"invalid.illegal.tag-handle.yaml"}]},prototype:{patterns:[{include:"#comment"},{include:"#property"}]}},scopeName:"source.yaml",aliases:["yml"]});var n=[e];export{n as default};
@@ -1 +1 @@
1
- import{d as T,o as s,m as i,F as M,n as w,i as p,k as _,h as I,aK as k,f as e,p as b,a as g,at as C,aL as L,t as X,ab as U,r as D,ah as z,as as H,j as v,l as N,a6 as j}from"./Bb1mULLQ.js";import{_ as P}from"./D6dOrpSz.js";import{_ as K}from"./BMzBLMig.js";import{_ as B}from"./CCEzajrZ.js";import{_ as R}from"./DODPx1Rc.js";import{_ as Y}from"./BKuBdopT.js";import{_ as q}from"./Bo1S1yFp.js";import{D as E}from"./BcJws1i5.js";import"./CIi1W1Xn.js";import"./CUmEcBOj.js";import"./CA_eAFlo.js";const G={flex:"~ wrap gap2",p2:"",pl4:""},J=T({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(y){return(r,m)=>{const a=B,d=R;return s(),i("div",null,[(s(!0),i(M,null,w(r.map.entries(),([o,h])=>(s(),i("div",{key:o},[p(a,{filepath:o,op50:"","hover:underline":""},null,8,["filepath"]),_("div",G,[(s(!0),i(M,null,w(h,$=>(s(),I(d,{key:$.as,item:$,metadata:r.metadata,filepath:o.match(/^[\w@]/)?void 0:o},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),O={key:0,flex:"~ col gap-2 items-start"},Q=T({__name:"HelpImportsDirs",setup(y){const r=k();return(m,a)=>{const d=B;return e(r)?.dirs?(s(),i("div",O,[(s(!0),i(M,null,w(e(r).dirs,o=>(s(),I(d,{key:o,filepath:o,"text-primary":""},null,8,["filepath"]))),128))])):b("",!0)}}}),W={flex:"~ gap-2 wrap",mb6:""},Z=T({__name:"HelpImportsModules",setup(y){const r=k(),m=g(()=>[...new Set(r.value?.imports.map(a=>C(a.from)).filter(a=>!!a&&!L(a)))]);return(a,d)=>(s(),i("div",W,[(s(!0),i(M,null,w(e(m),o=>(s(),i("code",{key:o,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},X(o),1))),128))]))}}),ee={class:"markdown-body"},oe=_("h1",null,"Auto imports",-1),te=_("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1),se=_("hr",null,null,-1),ne=_("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1),ae=_("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1),re=_("hr",null,null,-1),le=_("p",null,[_("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),ie={__name:"imports",setup(y,{expose:r}){return r({frontmatter:{}}),(a,d)=>{const o=Q,h=Z;return s(),i("div",ee,[oe,te,se,ne,p(o),ae,p(h),re,le])}}},ue={key:0,relative:"","h-full":"","of-auto":""},pe={key:0,flex:"~ gap-2 items-center"},ye=T({__name:"imports",setup(y){const r=U(),m=D("all"),a=D(""),d=k(),o=g(()=>d.value?.metadata),h=g(()=>d.value?.imports.filter(n=>n.as||n.name).sort((n,u)=>(n.as||n.name).localeCompare(u.as||u.name))||[]),$=g(()=>new z(h.value,{keys:["from","as","name"]})),l=g(()=>{const n=new Map,u=new Map,A=new Map;let f=a.value?$.value.search(a.value).map(t=>t.item):h.value;m.value==="using"&&o.value?f=f.filter(t=>(t.as||t.name)in o.value.injectionUsage):m.value==="not-used"&&o.value&&(f=f.filter(t=>!((t.as||t.name)in o.value.injectionUsage)));const S={user:0,lib:0,builtin:0};return f.forEach(t=>{const c=H(t.from)?L(C(t.from))?A:u:n;c.has(t.from)||c.set(t.from,[]),c.get(t.from).push(t),S[c===n?"user":c===u?"lib":"builtin"]++}),{user:n,lib:u,builtin:A,count:S}});return(n,u)=>{const A=j,f=P,S=K,t=J,c=Y,F=ie,V=q;return s(),i(M,null,[e(r)?(s(),i("div",ue,[p(S,{search:e(a),"onUpdate:search":u[1]||(u[1]=x=>N(a)?a.value=x:null),pb3:""},{default:v(()=>[e(o)?(s(),i("div",pe,[p(A,{icon:"carbon-filter",op50:""}),p(f,{modelValue:e(m),"onUpdate:modelValue":u[0]||(u[0]=x=>N(m)?m.value=x:null),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),e(l).user.size?(s(),I(c,{key:0,open:e(l).count.user<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"carbon-function",text:"User composables",description:`${e(l).count.user} composables from ${e(l).user.size} modules`},{default:v(()=>[p(t,{map:e(l).user,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),e(l).builtin.size?(s(),I(c,{key:1,open:e(l).count.builtin<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(l).count.builtin} composables`},{default:v(()=>[p(t,{map:e(l).builtin,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),e(l).lib.size?(s(),I(c,{key:2,open:e(l).count.lib<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(l).count.lib} composables from ${e(l).lib.size} packages`},{default:v(()=>[p(t,{map:e(l).lib,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),p(V,null,{default:v(()=>[p(F)]),_:1})],64)}}});export{ye as default};
1
+ import{d as T,o as s,m as i,F as M,n as w,i as p,k as _,h as I,aL as k,f as e,p as b,a as g,av as C,aM as L,t as X,ab as U,r as D,ah as z,au as H,j as v,l as N,a6 as j}from"./PO8p82Rr.js";import{_ as P}from"./BFJB92M1.js";import{_ as R}from"./Co1NnsNe.js";import{_ as B}from"./C378twlw.js";import{_ as Y}from"./iAfmkGIi.js";import{_ as q}from"./BPX3fYES.js";import{_ as G}from"./YHaOe1r2.js";import{D as E}from"./BcJws1i5.js";import"./BwUXge7D.js";import"./tWSQ6YIe.js";import"./B90Ttd7o.js";const J={flex:"~ wrap gap2",p2:"",pl4:""},K=T({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(y){return(r,m)=>{const a=B,d=Y;return s(),i("div",null,[(s(!0),i(M,null,w(r.map.entries(),([o,h])=>(s(),i("div",{key:o},[p(a,{filepath:o,op50:"","hover:underline":""},null,8,["filepath"]),_("div",J,[(s(!0),i(M,null,w(h,$=>(s(),I(d,{key:$.as,item:$,metadata:r.metadata,filepath:o.match(/^[\w@]/)?void 0:o},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),O={key:0,flex:"~ col gap-2 items-start"},Q=T({__name:"HelpImportsDirs",setup(y){const r=k();return(m,a)=>{const d=B;return e(r)?.dirs?(s(),i("div",O,[(s(!0),i(M,null,w(e(r).dirs,o=>(s(),I(d,{key:o,filepath:o,"text-primary":""},null,8,["filepath"]))),128))])):b("",!0)}}}),W={flex:"~ gap-2 wrap",mb6:""},Z=T({__name:"HelpImportsModules",setup(y){const r=k(),m=g(()=>[...new Set(r.value?.imports.map(a=>C(a.from)).filter(a=>!!a&&!L(a)))]);return(a,d)=>(s(),i("div",W,[(s(!0),i(M,null,w(e(m),o=>(s(),i("code",{key:o,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},X(o),1))),128))]))}}),ee={class:"markdown-body"},oe=_("h1",null,"Auto imports",-1),te=_("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1),se=_("hr",null,null,-1),ne=_("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1),ae=_("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1),re=_("hr",null,null,-1),le=_("p",null,[_("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),ie={__name:"imports",setup(y,{expose:r}){return r({frontmatter:{}}),(a,d)=>{const o=Q,h=Z;return s(),i("div",ee,[oe,te,se,ne,p(o),ae,p(h),re,le])}}},ue={key:0,relative:"","h-full":"","of-auto":""},pe={key:0,flex:"~ gap-2 items-center"},ye=T({__name:"imports",setup(y){const r=U(),m=D("all"),a=D(""),d=k(),o=g(()=>d.value?.metadata),h=g(()=>d.value?.imports.filter(n=>n.as||n.name).sort((n,u)=>(n.as||n.name).localeCompare(u.as||u.name))||[]),$=g(()=>new z(h.value,{keys:["from","as","name"]})),l=g(()=>{const n=new Map,u=new Map,A=new Map;let f=a.value?$.value.search(a.value).map(t=>t.item):h.value;m.value==="using"&&o.value?f=f.filter(t=>(t.as||t.name)in o.value.injectionUsage):m.value==="not-used"&&o.value&&(f=f.filter(t=>!((t.as||t.name)in o.value.injectionUsage)));const S={user:0,lib:0,builtin:0};return f.forEach(t=>{const c=H(t.from)?L(C(t.from))?A:u:n;c.has(t.from)||c.set(t.from,[]),c.get(t.from).push(t),S[c===n?"user":c===u?"lib":"builtin"]++}),{user:n,lib:u,builtin:A,count:S}});return(n,u)=>{const A=j,f=P,S=R,t=K,c=q,F=ie,V=G;return s(),i(M,null,[e(r)?(s(),i("div",ue,[p(S,{search:e(a),"onUpdate:search":u[1]||(u[1]=x=>N(a)?a.value=x:null),pb3:""},{default:v(()=>[e(o)?(s(),i("div",pe,[p(A,{icon:"carbon-filter",op50:""}),p(f,{modelValue:e(m),"onUpdate:modelValue":u[0]||(u[0]=x=>N(m)?m.value=x:null),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),e(l).user.size?(s(),I(c,{key:0,open:e(l).count.user<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"carbon-function",text:"User composables",description:`${e(l).count.user} composables from ${e(l).user.size} modules`},{default:v(()=>[p(t,{map:e(l).user,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),e(l).builtin.size?(s(),I(c,{key:1,open:e(l).count.builtin<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${e(l).count.builtin} composables`},{default:v(()=>[p(t,{map:e(l).builtin,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),e(l).lib.size?(s(),I(c,{key:2,open:e(l).count.lib<=("DETAILS_MAX_ITEMS"in n?n.DETAILS_MAX_ITEMS:e(E)),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${e(l).count.lib} composables from ${e(l).lib.size} packages`},{default:v(()=>[p(t,{map:e(l).lib,root:e(r).rootDir,metadata:e(o)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),p(V,null,{default:v(()=>[p(F)]),_:1})],64)}}});export{ye as default};
@@ -0,0 +1 @@
1
+ import{bO as ke,d as te,bP as re,r as W,a as $,o as y,m as I,k as d,i as O,f as u,t as R,F as B,n as Z,G as F,p as j,a6 as oe,bK as Oe,ab as Te,ay as ie,ac as xe,aB as Se,b0 as we,bL as Xe,e as De,a2 as se,I as G,j as C,v as Y,bH as Ee,h as A,l as ee,aw as Me,ak as ue,V as Ce,_ as le,X as Ie,A as ce,am as $e,a9 as Ue,aa as Le,bQ as Ne,ah as Re,U as Ae,bN as Ve,ar as je}from"./PO8p82Rr.js";import{_ as Be}from"./Co1NnsNe.js";import{_ as fe}from"./BaRB0bpe.js";import{_ as pe}from"./BKiZzkRj.js";import{_ as He}from"./BJ65-qNi.js";import{S as de}from"./BcJws1i5.js";import{e as We}from"./DYSjJb82.js";import{_ as ze}from"./BPX3fYES.js";import{_ as qe}from"./Bm0NU4n7.js";import"./CiSNQgOw.js";import"./BLnLeUd3.js";import"./tWSQ6YIe.js";import"./B90Ttd7o.js";var he={exports:{}};(function(z,U){(function(x,D){z.exports=D()})(globalThis,()=>(()=>{var L={794:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var r=_(586),k=function(){function m(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return m.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.startsWith("@")){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},m.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},m.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var n=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});n.length===0&&n.push("*"),n.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=n.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var o=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";o?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},m.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(f){var h=f.replace(/\D/,""),c=h;return e.dayOfWeekStartIndexZero?h=="7"&&(c="0"):c=(parseInt(h)-1).toString(),f.replace(h,c)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var n in a)t[5]=t[5].replace(new RegExp(n,"gi"),a[n].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(f){var h=f.replace(/\D/,""),c=h;return e.monthStartIndexZero&&(c=(parseInt(h)+1).toString()),f.replace(h,c)});var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in o)t[4]=t[4].replace(new RegExp(s,"gi"),o[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(f){return f!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var l=null;switch(i){case 4:l="12";break;case 5:l="6";break;case 6:l="9999";break;default:l=null;break}if(l!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(l,"/").concat(v[1])}}},m.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},m.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},m.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},m}();p.CronParser=k},728:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var r=_(910),k=_(794),m=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var n=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(n,"'.")),this.options.locale=n}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var n=a===void 0?{}:a,o=n.throwExceptionOnParseError,s=o===void 0?!0:o,i=n.verbose,l=i===void 0?!1:i,v=n.dayOfWeekStartIndexZero,f=v===void 0?!0:v,h=n.monthStartIndexZero,c=h===void 0?!1:h,N=n.use24HourTimeFormat,T=n.locale,H=T===void 0?null:T,V=n.tzOffset,E=V===void 0?0:V,q={throwExceptionOnParseError:s,verbose:l,dayOfWeekStartIndexZero:f,monthStartIndexZero:c,use24HourTimeFormat:N,locale:H,tzOffset:E},Q=new t(e,q);return Q.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new k.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var n=this.getTimeOfDayDescription(),o=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),l=this.getYearDescription();e+=n+o+i+s+l,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],n=this.expressionParts[2],o="";if(!r.StringUtilities.containsAny(a,t.specialCharacters)&&!r.StringUtilities.containsAny(n,t.specialCharacters)&&!r.StringUtilities.containsAny(e,t.specialCharacters))o+=this.i18n.atSpace()+this.formatTime(n,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var s=a.split("-");o+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(n,s[0],""),this.formatTime(n,s[1],""))}else if(!e&&n.indexOf(",")>-1&&n.indexOf("-")==-1&&n.indexOf("/")==-1&&!r.StringUtilities.containsAny(a,t.specialCharacters)){var i=n.split(",");o+=this.i18n.at();for(var l=0;l<i.length;l++)o+=" ",o+=this.formatTime(i[l],a,""),l<i.length-2&&(o+=","),l==i.length-2&&(o+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),f=this.getMinutesDescription(),h=this.getHoursDescription();if(o+=v,o&&f&&(o+=", "),o+=f,f===h)return o;o&&h&&(o+=", "),o+=h}return o},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(n){return n},function(n){return r.StringUtilities.format(e.i18n.everyX0Seconds(n),n)},function(n){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(n){return n=="0"?"":parseInt(n)<20?e.i18n.atX0SecondsPastTheMinute(n):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(n)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],n=this.expressionParts[2],o=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return r.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&n.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return o},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],n=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return r.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(n&&a.includes("-")&&this.expressionParts[1]!="0"){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var s=o[o.length-1].index;n=n.substring(0,s)+":59"+n.substring(s+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),n=null;return this.expressionParts[5]=="*"?n="":n=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(o,s){var i=o;o.indexOf("#")>-1?i=o.substring(0,o.indexOf("#")):o.indexOf("L")>-1&&(i=i.replace("L",""));var l=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],f=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);f>=24?l++:f<0&&l--,l>6?l=0:l<0&&(l=6)}var h=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[l]:a[l];if(o.indexOf("#")>-1){var c=null,N=o.substring(o.indexOf("#")+1),T=o.substring(0,o.indexOf("#"));switch(N){case"1":c=e.i18n.first(T);break;case"2":c=e.i18n.second(T);break;case"3":c=e.i18n.third(T);break;case"4":c=e.i18n.fourth(T);break;case"5":c=e.i18n.fifth(T);break}h=c+" "+h}return h},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(o),o)},function(o){var s=o.substring(0,o.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(o){var s=null;if(o.indexOf("#")>-1){var i=o.substring(o.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(o.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(o.replace("L",""));else{var l=e.expressionParts[3]!="*";s=l?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(o)}return s}),n},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(o,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(o)-1]:a[parseInt(o)-1]},function(o){return parseInt(o)==1?"":r.StringUtilities.format(e.i18n.commaEveryX0Months(o),o)},function(o){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(o){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return n},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,n=this.expressionParts[3];switch(n){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var s=parseInt(o[0].replace("W","")),i=s==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var l=n.match(/L-(\d{1,2})/);if(l){var v=l[1];a=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(n=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(f){return f=="L"?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),f):f},function(f){return f=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(f)},function(f){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(f)},function(f){return e.i18n.commaOnDayX0OfTheMonth(f)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(n){return/^\d+$/.test(n)?new Date(parseInt(n),1).getFullYear().toString():n},function(n){return r.StringUtilities.format(e.i18n.commaEveryX0Years(n),n)},function(n){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,n,o,s,i){var l=null,v=e.indexOf("/")>-1,f=e.indexOf("-")>-1,h=e.indexOf(",")>-1;if(!e)l="";else if(e==="*")l=a;else if(!v&&!f&&!h)l=r.StringUtilities.format(i(e),n(e));else if(h){for(var c=e.split(","),N="",T=0;T<c.length;T++)if(T>0&&c.length>2&&(N+=",",T<c.length-1&&(N+=" ")),T>0&&c.length>1&&(T==c.length-1||c.length==2)&&(N+="".concat(this.i18n.spaceAnd()," ")),c[T].indexOf("/")>-1||c[T].indexOf("-")>-1){var H=c[T].indexOf("-")>-1&&c[T].indexOf("/")==-1,V=this.getSegmentDescription(c[T],a,n,o,H?this.i18n.commaX0ThroughX1:s,i);H&&(V=V.replace(", ","")),N+=V}else v?N+=this.getSegmentDescription(c[T],a,n,o,s,i):N+=n(c[T]);v?l=N:l=r.StringUtilities.format(i(e),N)}else if(v){var c=e.split("/");if(l=r.StringUtilities.format(o(c[1]),c[1]),c[0].indexOf("-")>-1){var E=this.generateRangeSegmentDescription(c[0],s,n);E.indexOf(", ")!=0&&(l+=", "),l+=E}else if(c[0].indexOf("*")==-1){var q=r.StringUtilities.format(i(c[0]),n(c[0]));q=q.replace(", ",""),l+=r.StringUtilities.format(this.i18n.commaStartingX0(),q)}}else f&&(l=this.generateRangeSegmentDescription(e,s,n));return l},t.prototype.generateRangeSegmentDescription=function(e,a,n){var o="",s=e.split("-"),i=n(s[0],1),l=n(s[1],2),v=a(e);return o+=r.StringUtilities.format(v,i,l),o},t.prototype.formatTime=function(e,a,n){var o=0,s=0;this.options.tzOffset&&(o=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+o,l=parseInt(a)+s;l>=60?(l-=60,i+=1):l<0&&(l+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",f=!1;this.options.use24HourTimeFormat||(f=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=f?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var h="";return n&&(h=":".concat(("00"+n).substring(n.length))),"".concat(f?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+l.toString()).substring(l.toString().length)).concat(h).concat(f?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=m},336:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var r=_(751),k=function(){function m(){}return m.prototype.load=function(t){t.en=new r.en},m}();p.enLocaleLoader=k},751:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var _=function(){function r(){}return r.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},r.prototype.atX0MinutesPastTheHourGt20=function(){return null},r.prototype.commaMonthX0ThroughMonthX1=function(){return null},r.prototype.commaYearX0ThroughYearX1=function(){return null},r.prototype.use24HourTimeFormatByDefault=function(){return!1},r.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},r.prototype.everyMinute=function(){return"every minute"},r.prototype.everyHour=function(){return"every hour"},r.prototype.atSpace=function(){return"At "},r.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},r.prototype.at=function(){return"At"},r.prototype.spaceAnd=function(){return" and"},r.prototype.everySecond=function(){return"every second"},r.prototype.everyX0Seconds=function(){return"every %s seconds"},r.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},r.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},r.prototype.everyX0Minutes=function(){return"every %s minutes"},r.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},r.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},r.prototype.everyX0Hours=function(){return"every %s hours"},r.prototype.betweenX0AndX1=function(){return"between %s and %s"},r.prototype.atX0=function(){return"at %s"},r.prototype.commaEveryDay=function(){return", every day"},r.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},r.prototype.commaX0ThroughX1=function(){return", %s through %s"},r.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},r.prototype.first=function(){return"first"},r.prototype.second=function(){return"second"},r.prototype.third=function(){return"third"},r.prototype.fourth=function(){return"fourth"},r.prototype.fifth=function(){return"fifth"},r.prototype.commaOnThe=function(){return", on the "},r.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},r.prototype.lastDay=function(){return"the last day"},r.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},r.prototype.commaOnlyOnX0=function(){return", only on %s"},r.prototype.commaAndOnX0=function(){return", and on %s"},r.prototype.commaEveryX0Months=function(){return", every %s months"},r.prototype.commaOnlyInX0=function(){return", only in %s"},r.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},r.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},r.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},r.prototype.firstWeekday=function(){return"first weekday"},r.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},r.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},r.prototype.commaEveryX0Days=function(){return", every %s days"},r.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},r.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},r.prototype.commaEveryHour=function(){return", every hour"},r.prototype.commaEveryX0Years=function(){return", every %s years"},r.prototype.commaStartingX0=function(){return", starting %s"},r.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},r}();p.en=_},586:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function _(k,m){if(!k)throw new Error(m)}var r=function(){function k(){}return k.secondRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},k.minuteRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},k.hourRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},k.dayOfMonthRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},k.monthRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=1&&n<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},k.dayOfWeekRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=0&&n<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},k}();p.default=r},910:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var _=function(){function r(){}return r.format=function(k){for(var m=[],t=1;t<arguments.length;t++)m[t-1]=arguments[t];return k.replace(/%s/g,function(e){return m.shift()})},r.containsAny=function(k,m){return m.some(function(t){return k.indexOf(t)>-1})},r}();p.StringUtilities=_}},x={};function D(S){var p=x[S];if(p!==void 0)return p.exports;var _=x[S]={exports:{}};return L[S](_,_.exports,D),_.exports}var X={};return(()=>{var S=X;Object.defineProperty(S,"__esModule",{value:!0}),S.toString=void 0;var p=D(728),_=D(336);p.ExpressionDescriptor.initialize(new _.enLocaleLoader),S.default=p.ExpressionDescriptor;var r=p.ExpressionDescriptor.toString;S.toString=r})(),X})())})(he);var Pe=he.exports;const Ye=ke(Pe),Fe=["title"],Ge={"flex-none":"","text-left":""},Ze={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Je={class:"truncate"},Qe={"text-xs":"",op50:""},Ke=d("div",{"x-divider":""},null,-1),et={key:0},tt=["onClick"],nt=d("div",{"x-divider":""},null,-1),rt=te({__name:"CronCollection",props:{collection:{}},setup(z){const U=z,L=re(),x=W(!0),D=$(()=>Ye.toString(U.collection.cron));return(X,S)=>{const p=oe,_=fe;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:u(D),onClick:S[0]||(S[0]=r=>x.value=!u(x))},[d("div",Ge,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(x)?90:0,transition:""},null,8,["transform-rotate"])]),d("span",Ze,[O(_,{class:"font-mono n-primary",textContent:R(X.collection.cron)},null,8,["textContent"]),d("span",Je,R(u(D)),1),d("span",Qe,"("+R(X.collection.tasks.length)+")",1)])],8,Fe),Ke,u(x)?(y(),I("ul",et,[(y(!0),I(B,null,Z(X.collection.tasks,r=>(y(),I("li",{key:r},[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":u(L)===r}]),onClick:k=>L.value=r},R(r),11,tt),nt]))),128))])):j("",!0)])}}}),ot={"h-full":"","w-full":"",flex:"~ col"},at={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},it={flex:"~ gap2 items-center"},st={relative:"","w-full":""},ut={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},lt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},ct={class:"hidden md:block"},ft={flex:"~ gap2","mb--2":"","items-center":"",op50:""},pt=d("div",{"w-5":"","x-divider":""},null,-1),dt=d("div",{"flex-none":""}," Default Inputs ",-1),ht=d("div",{"x-divider":""},null,-1),vt={key:0,border:"b base",relative:"","n-code-block":""},mt={flex:"~ wrap","w-full":""},yt=["onClick"],gt=d("div",{border:"b base","flex-auto":""},null,-1),_t={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},bt=d("div",null,"Result",-1),kt={key:1,"text-xs":"",op50:""},Ot=d("div",{"flex-auto":""},null,-1),Tt=d("div",{op50:""}," Tasks finished in ",-1),xt=te({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(z,{emit:U}){const L=z,x=U,D=W({payload:{}}),{inputDefaults:X}=ue("serverRoutes"),[S,p]=Oe(),_=Te(),r=ie({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),k=$(()=>JSON.stringify(r.data,null,2)),m=$(()=>r.contentType.includes("application/json")?"json":"text"),t=W(!1),e=W(!1),a=xe(),n=W(),o=["json"],s=W(o[0]),i=ie({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),l=$({get:()=>i[n.value],set:g=>{i[n.value]=g}}),v=$(()=>({...V(X.value.query),...V(i.query)})),f=$(()=>({...V(X.value.headers)})),h=$(()=>Object.keys(D.value?.payload??{}).length?{...D.value}:void 0),c=$(()=>h.value?"POST":"GET"),N=$(()=>{let g=window?.location.origin;return g.charAt(g.length-1)==="/"&&(g=g.slice(0,-1)),g}),T=$(()=>{let g=new URLSearchParams(v.value).toString();g&&(g=`?${g}`);const b=`/_nitro/tasks/${L.task.name}${g}`;let M=_.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+b}),H=$(()=>N.value+T.value);function V(g){const b=Object.fromEntries(g.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(b).length?b:void 0}async function E(){e.value=!0,t.value=!0;const g=Date.now();Ce("server-tasks:run",{method:c.value});try{r.data=await $fetch(H.value,{method:"POST",headers:f.value,query:v.value,body:h.value,onResponse({response:b}){r.contentType=(b.headers.get("content-type")||"").toString().toLowerCase().trim(),r.statusCode=b.status,r.error=void 0},onResponseError(b){r.error=b.response._data,r.data=b.response._data}})}catch{}t.value=!1,r.fetchTime=Date.now()-g}const q=$(()=>{const g=[];return g.push({name:"Query",slug:"query",length:i.query.length}),g.push({name:"Body",slug:"body",length:i.body.length}),g});Se(()=>{if(s.value==="json"&&typeof D.value=="string")try{D.value=JSON.parse(D.value)}catch{}});const Q=we("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Xe([i,n],()=>{const g=Q.value?.find(b=>b.task===L.task.name);if(g){n.value||(n.value=g.tab),g.tab!==n.value&&(g.tab=n.value);const{body:b,query:M,headers:P}=g.inputs;Object.assign(i,{body:b,query:M,headers:P})}else{const b={task:L.task.name,tab:"query",inputs:i};Q.value.push(b),n.value||(n.value=b.tab)}},{immediate:!0,deep:!0,debounce:500});const me=De();return(g,b)=>{const M=le,P=Ie,J=oe,ae=pe,ye=ce,ge=$e,ne=fe,_e=He,K=se("tooltip");return y(),I("div",ot,[d("div",at,[d("div",it,[G((y(),I("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in g?g.getRequestMethodClass:u(Ee))(u(c))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:C(()=>[Y(R(u(c)),1)]),_:1},8,["class"])])),[[K,`Method is ${u(c)} as ${u(c)==="GET"?"no":""} json body is sent`]]),d("div",st,[O(P,{"model-value":u(T),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),d("div",ut,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:b[0]||(b[0]=w=>u(me)(u(H),"server-task-url"))},null,512),[[K,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:b[1]||(b[1]=w=>u(a)(g.task.handler))},null,512),[[K,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),d("div",lt,[(y(!0),I(B,null,Z(u(q),w=>G((y(),A(M,{key:w.slug,class:F(u(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:be=>n.value=w.slug},{default:C(()=>[O(J,{icon:("ServerRouteTabIcons"in g?g.ServerRouteTabIcons:u(de))[w.slug]},null,8,["icon"]),d("div",ct,[Y(R(w.name)+" "+R(w?.length?`(${w.length})`:"")+" ",1),d("span",null,R(u(X)[w.slug]?.length?`(${u(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[K,w.name]])),128))]),O(u(S),null,{default:C(()=>[O(ae,{modelValue:u(l),"onUpdate:modelValue":b[4]||(b[4]=w=>ee(l)?l.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:C(()=>[u(X)[u(n)]?.length?(y(),I(B,{key:0},[d("div",ft,[pt,dt,O(M,{icon:"i-carbon-edit",border:!1,onClick:b[2]||(b[2]=w=>x("open-default-input"))}),ht]),O(ae,{modelValue:u(X)[u(n)],"onUpdate:modelValue":b[3]||(b[3]=w=>u(X)[u(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),u(l)?(y(),I("div",vt,[u(n)==="body"?(y(),I(B,{key:0},[d("div",mt,[(y(),I(B,null,Z(o,w=>d("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==u(s)}),onClick:be=>s.value=w},[d("div",{class:F({op30:w!==u(s)}),"font-mono":""},R(w),3)],10,yt)),64)),gt]),u(s)==="input"?(y(),A(u(p),{key:0})):u(s)==="json"?(y(),A(u(We),Me({key:1,modelValue:u(D),"onUpdate:modelValue":b[5]||(b[5]=w=>ee(D)?D.value=w:null),class:[[g.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},g.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(y(),A(u(p),{key:1}))])):j("",!0),u(e)?u(t)?(y(),A(ge,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:C(()=>[Y(" Running... ")]),_:1})):(y(),I(B,{key:3},[d("div",_t,[bt,u(r).error?(y(),A(ne,{key:0,n:"red"},{default:C(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:u(r).error?"orange":"green",textContent:R(u(r).statusCode)},null,8,["n","textContent"]),u(r).contentType?(y(),I("code",kt,R(u(r).contentType),1)):j("",!0),Ot,Tt,O(ne,{n:"green"},{default:C(()=>[Y(R(u(r).fetchTime)+" ms ",1)]),_:1})]),O(_e,{"flex-auto":"","overflow-auto":"","py-2":"",code:u(k),lang:u(m)},null,8,["code","lang"])],64)):(y(),A(ye,{key:1},{default:C(()=>[O(M,{n:"primary",onClick:E},{default:C(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),St={"flex-none":"","text-left":""},wt={flex:"","items-center":"","text-sm":"","font-mono":""},Xt=d("div",{"x-divider":""},null,-1),ve=te({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(z){const U=W(!0),L=re();return(x,D)=>{const X=oe,S=ve;return y(),I("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":u(L)===x.item.name}]),style:Ue({paddingLeft:`calc(0.5rem + ${x.index*1.5}em)`}),onClick:D[0]||(D[0]=p=>{U.value=!u(U),L.value=x.item.name})},[d("div",St,[x.item.type==="collection"?(y(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(U)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),d("span",wt,[x.item.type==="collection"?(y(),A(X,{key:0,title:`${x.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(y(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+R(x.item.name),1)])],6),Xt,u(U)?Le(x.$slots,"default",{key:0},()=>[(y(!0),I(B,null,Z(x.item.tasks,p=>(y(),A(S,{key:p.name,item:p,index:x.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Dt={flex:"~ gap1","text-sm":""},Et={key:0,op50:""},Mt={op50:""},Ct=d("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),It=d("span",{op75:""},"Select a task to start",-1),$t=d("div",{p4:"",border:"b base"},[d("span",{"text-lg":""},"Default Inputs"),d("br"),d("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Yt=te({__name:"server-tasks",setup(z){const U=W(!1),L=Ne(),x=$(()=>Object.keys(L.value?.tasks??{}).map(n=>({name:n,...L.value.tasks[n],type:"task"}))),D=$(()=>Object.entries(L.value?.scheduledTasks??{}).map(([n,o])=>({cron:n,tasks:o}))),X=re(),{view:S,selectedTask:p,inputDefaults:_}=ue("serverTasks"),r=$(()=>{!X.value&&p.value&&(X.value=p.value.name);const n=x.value.find(o=>o.name===X.value);return X.value!==p.value?.name&&n&&(p.value=n),n}),k=W(""),m=$(()=>new Re(x.value,{keys:["key","description"],shouldSort:!0})),t=$(()=>k.value?m.value.search(k.value).map(o=>o.item):x.value),e=$(()=>{const n=[],o=(i,l)=>{i.tasks||=[],i.tasks.push(l)},s=(i,l)=>{const v=l?l.tasks?.find(h=>h.name===i):n.find(h=>h.name===i);if(v)return{...v,type:"collection"};const f={name:i,handler:i,description:"",type:"collection",tasks:[]};return l?o(l,f):n.push(f),f};return t.value.forEach(i=>{let l;const v={...i,type:"task"},h=i.name.split(":").concat();h.length>0&&h[h.length-1].includes(".")&&h.pop(),h.forEach(c=>{l=s(c,l)}),l?o(l,v):n.push(v)}),n});function a(){S.value=S.value==="tree"?"list":"tree"}return(n,o)=>{const s=le,i=Be,l=rt,v=Ae,f=xt,h=je,c=ce,N=pe,T=ze,H=qe,V=se("tooltip");return y(),I(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:C(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:C(()=>[O(i,{search:u(k),"onUpdate:search":o[1]||(o[1]=E=>ee(k)?k.value=E:null),pb2:""},{actions:C(()=>[G(O(s,{"text-lg":"",icon:u(S)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:o[0]||(o[0]=E=>U.value=!u(U))},null,512),[[V,"Default Inputs"]])]),default:C(()=>[d("div",Dt,[u(k)?(y(),I("span",Et,R(u(t).length)+" matched · ",1)):j("",!0),d("span",Mt,R(u(x)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(y(!0),I(B,null,Z(u(S)==="tree"?u(e):u(t),E=>(y(),A(ve,{key:E.name,item:E},null,8,["item"]))),128))]),right:C(()=>[Ct,d("div",null,[d("ul",null,[(y(!0),I(B,null,Z(u(D),E=>(y(),I("li",{key:E.cron},[O(l,{collection:E},null,8,["collection"])]))),128))])])]),_:1})]),right:C(()=>[(y(),A(Ve,{max:10},[u(r)?(y(),A(f,{key:u(r).name,task:u(r),onOpenDefaultInput:o[2]||(o[2]=E=>U.value=!0)},null,8,["task"])):j("",!0)],1024)),u(r)?j("",!0):(y(),A(c,{key:0},{default:C(()=>[O(h,{px6:"",py2:""},{default:C(()=>[It]),_:1})]),_:1}))]),_:1}),O(H,{modelValue:u(U),"onUpdate:modelValue":o[4]||(o[4]=E=>ee(U)?U.value=E:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:o[5]||(o[5]=E=>U.value=!1)},{default:C(()=>[d("div",null,[$t,O(T,{text:`Query ${u(_).query.length?`(${u(_).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in n?n.ServerRouteTabIcons:u(de)).query},{default:C(()=>[O(N,{modelValue:u(_).query,"onUpdate:modelValue":o[3]||(o[3]=E=>u(_).query=E),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Yt as default};
@@ -0,0 +1 @@
1
+ import{d as g,r as c,h as p,j as t,A as N,o as d,k as e,i as o,v as i,f as u,l as f,p as b,B as k,C as V,D as w,E as C,_ as B}from"./PO8p82Rr.js";import{_ as D}from"./lLn-RhM6.js";import{_ as L}from"./CiSNQgOw.js";const T={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},j=e("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1),E={"max-w-190":"","text-lg":""},P=e("br",null,null,-1),S={mb6:"",op50:""},U=e("span",null,"Get Started",-1),$={p4:""},F={flex:"~ col gap-2",mxa:""},G=e("span",{op50:""},"Show floating panel from now on",-1),A=e("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1),z=g({__name:"index",setup(H){const n=c(!0),s=c(!0),{showPanel:l}=k();function h(){V.value=n.value,l.value==null&&s.value&&(l.value=!0),w.value=!1}return(I,a)=>{const x=C,_=D,v=B,m=L,y=N;return d(),p(y,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:t(()=>[e("div",T,[j,e("p",E,[o(x,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),i(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!"),P]),e("p",S,[i(" Learn more at "),o(_,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:t(()=>[i(" devtools.nuxt.com ")]),_:1})]),o(v,{to:"/modules/overview",n:"lg primary",onClick:h},{default:t(()=>[U]),_:1})]),e("div",$,[e("div",F,[u(l)==null?(d(),p(m,{key:0,modelValue:u(s),"onUpdate:modelValue":a[0]||(a[0]=r=>f(s)?s.value=r:null),n:"green6"},{default:t(()=>[G]),_:1},8,["modelValue"])):b("",!0),o(m,{modelValue:u(n),"onUpdate:modelValue":a[1]||(a[1]=r=>f(n)?n.value=r:null),n:"green6"},{default:t(()=>[A,o(_,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{z as default};
@@ -1 +1 @@
1
- import{d as e,m as n,o}from"./Bb1mULLQ.js";const t={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(c){return(s,_)=>(o(),n("div",t))}});export{r as default};
1
+ import{d as e,m as n,o}from"./PO8p82Rr.js";const t={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(c){return(s,_)=>(o(),n("div",t))}});export{r as default};
@@ -1,4 +1,4 @@
1
- import{d as g,av as N,a as m,m as u,f as a,i as E,j as x,k as p,t as d,p as v,h as y,Y as C,o as l,v as b}from"./Bb1mULLQ.js";import{_ as S}from"./C35r-I8u.js";import"./CCEzajrZ.js";const R=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,$=/^(eval@)?(\[native code])?$/;function _(n){if(typeof n.stacktrace<"u"||typeof n["opera#sourceloc"]<"u")return A(n);if(n.stack&&n.stack.match(h))return O(n);if(n.stack)return w(n);throw new Error("Cannot parse given Error object")}function f(n){if(!n.includes(":"))return[n];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(n.replace(/[()]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]}function O(n){return n.stack.split(`
1
+ import{d as g,al as N,a as m,m as u,f as a,i as E,j as x,k as p,t as d,p as v,h as y,Y as C,o as l,v as b}from"./PO8p82Rr.js";import{_ as S}from"./IlsTwlBb.js";import"./C378twlw.js";const R=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,$=/^(eval@)?(\[native code])?$/;function _(n){if(typeof n.stacktrace<"u"||typeof n["opera#sourceloc"]<"u")return A(n);if(n.stack&&n.stack.match(h))return O(n);if(n.stack)return w(n);throw new Error("Cannot parse given Error object")}function f(n){if(!n.includes(":"))return[n];const e=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(n.replace(/[()]/g,""));return[e[1],e[2]||void 0,e[3]||void 0]}function O(n){return n.stack.split(`
2
2
  `).filter(e=>!!e.match(h)).map(e=>{e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let s=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const t=s.match(/ (\(.+\)$)/);s=t?s.replace(t[0],""):s;const r=f(t?t[1]:s),o=t&&s||void 0,i=["eval","<anonymous>"].includes(r[0])?void 0:r[0];return{functionName:o,fileName:i,lineNumber:r[1]?+r[1]:void 0,columnNumber:r[2]?+r[2]:void 0,source:e}})}function w(n){return n.stack.split(`
3
3
  `).filter(e=>!e.match($)).map(e=>{if(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":"))return{functionName:e};{const s=/((.*".+"[^@]*)?[^@]*)(?:@)/,t=e.match(s),r=t&&t[1]?t[1]:void 0,o=f(e.replace(s,""));return{functionName:r,fileName:o[0],lineNumber:o[1]?+o[1]:void 0,columnNumber:o[2]?+o[2]:void 0,source:e}}})}function A(n){return!n.stacktrace||n.message.includes(`
4
4
  `)&&n.message.split(`