@kinetis/vector-ui 0.10.4 → 0.11.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 (212) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +9 -2
  3. package/app/components/Vx/VersionBanner.vue +24 -0
  4. package/app/composables/useVectorSchema.ts +4 -1
  5. package/app/composables/useVectorVersion.ts +53 -0
  6. package/app/i18n/ar/shell.ts +8 -1
  7. package/app/i18n/de/shell.ts +8 -1
  8. package/app/i18n/en/shell.ts +8 -1
  9. package/app/i18n/es/shell.ts +8 -1
  10. package/app/i18n/fr/shell.ts +8 -1
  11. package/app/i18n/he/shell.ts +8 -1
  12. package/app/i18n/it/shell.ts +8 -1
  13. package/app/i18n/ja/shell.ts +8 -1
  14. package/app/i18n/ko/shell.ts +8 -1
  15. package/app/i18n/nl/shell.ts +8 -1
  16. package/app/i18n/pl/shell.ts +8 -1
  17. package/app/i18n/pt/shell.ts +8 -1
  18. package/app/i18n/pt-BR/shell.ts +8 -1
  19. package/app/i18n/ru/shell.ts +8 -1
  20. package/app/i18n/tr/shell.ts +8 -1
  21. package/app/i18n/uk/shell.ts +8 -1
  22. package/app/i18n/zh-Hans/shell.ts +8 -1
  23. package/app/layouts/vector.vue +1 -0
  24. package/app/types/vector.ts +2 -0
  25. package/dist/static/200.html +1 -0
  26. package/dist/static/404.html +1 -0
  27. package/dist/static/_nuxt/1Wg893CJ.js +2 -0
  28. package/dist/static/_nuxt/3cwKifVI.js +1 -0
  29. package/dist/static/_nuxt/69zFoWZ_.js +1 -0
  30. package/dist/static/_nuxt/6XZ9vj4j.js +1 -0
  31. package/dist/static/_nuxt/704AOQgv.js +1 -0
  32. package/dist/static/_nuxt/93QUVg9x.js +1 -0
  33. package/dist/static/_nuxt/B2ZK7XbG.js +1 -0
  34. package/dist/static/_nuxt/B2iJ1o_3.js +1 -0
  35. package/dist/static/_nuxt/B2pW6ekA.js +1 -0
  36. package/dist/static/_nuxt/B4cVd0we.js +1 -0
  37. package/dist/static/_nuxt/B84pnpa0.js +1 -0
  38. package/dist/static/_nuxt/B9haHkUY.js +1 -0
  39. package/dist/static/_nuxt/BBei3q3a.js +1 -0
  40. package/dist/static/_nuxt/BC_L7UUo.js +1 -0
  41. package/dist/static/_nuxt/BD9kIZPf.js +1 -0
  42. package/dist/static/_nuxt/BDLrTt6l.js +1 -0
  43. package/dist/static/_nuxt/BDNMzG2s.js +1 -0
  44. package/dist/static/_nuxt/BE_w8iyq.js +1 -0
  45. package/dist/static/_nuxt/BGE18wmh.js +1 -0
  46. package/dist/static/_nuxt/BHJ6uF5H.js +1 -0
  47. package/dist/static/_nuxt/BIgwsxdM.js +2 -0
  48. package/dist/static/_nuxt/BKVNzrl4.js +1 -0
  49. package/dist/static/_nuxt/BKlyjday.js +1 -0
  50. package/dist/static/_nuxt/BMHE9eI3.js +1 -0
  51. package/dist/static/_nuxt/BP_xa6id.js +100 -0
  52. package/dist/static/_nuxt/BQpOsqaq.js +1 -0
  53. package/dist/static/_nuxt/BU5ZZxSI.js +1 -0
  54. package/dist/static/_nuxt/BUnmJXi2.js +1 -0
  55. package/dist/static/_nuxt/BVzyobUY.js +1 -0
  56. package/dist/static/_nuxt/BW3xJdEx.js +1 -0
  57. package/dist/static/_nuxt/BX3vnbKN.js +1 -0
  58. package/dist/static/_nuxt/BX4Ngs0H.js +1 -0
  59. package/dist/static/_nuxt/BZZ1FAx7.js +1 -0
  60. package/dist/static/_nuxt/BaOEsdpg.js +1 -0
  61. package/dist/static/_nuxt/BbqOSiaD.js +1 -0
  62. package/dist/static/_nuxt/BeQ1SIR7.js +1 -0
  63. package/dist/static/_nuxt/BfJMvdNP.js +1 -0
  64. package/dist/static/_nuxt/BiGgsuAF.js +1 -0
  65. package/dist/static/_nuxt/BiSoCgYL.js +1 -0
  66. package/dist/static/_nuxt/Bj2vN0T9.js +10 -0
  67. package/dist/static/_nuxt/BmETWtxq.js +65 -0
  68. package/dist/static/_nuxt/BpAdDrzk.js +1 -0
  69. package/dist/static/_nuxt/BqDUx8zK.js +1 -0
  70. package/dist/static/_nuxt/BrZywLMU.js +1 -0
  71. package/dist/static/_nuxt/BsEAcWqN.js +1 -0
  72. package/dist/static/_nuxt/BsuNB234.js +1 -0
  73. package/dist/static/_nuxt/BuZABq4H.js +1 -0
  74. package/dist/static/_nuxt/BvHF-Z-c.js +1 -0
  75. package/dist/static/_nuxt/BvfcQlwq.js +1 -0
  76. package/dist/static/_nuxt/BxwA8VwS.js +1 -0
  77. package/dist/static/_nuxt/Bxx2DVz5.js +1 -0
  78. package/dist/static/_nuxt/ByOYBmCq.js +1 -0
  79. package/dist/static/_nuxt/BybtooSc.js +1 -0
  80. package/dist/static/_nuxt/C-EQLWId.js +1 -0
  81. package/dist/static/_nuxt/C0qu28Eu.js +1 -0
  82. package/dist/static/_nuxt/C6-lyaez.js +1 -0
  83. package/dist/static/_nuxt/C6NpYgVC.js +1 -0
  84. package/dist/static/_nuxt/C8M6zdzu.js +1 -0
  85. package/dist/static/_nuxt/C8xgvyo9.js +1 -0
  86. package/dist/static/_nuxt/C9s0nkkI.js +1 -0
  87. package/dist/static/_nuxt/CElnT3Ea.js +1 -0
  88. package/dist/static/_nuxt/CEwqGRFH.js +1 -0
  89. package/dist/static/_nuxt/CIM0ajR7.js +1 -0
  90. package/dist/static/_nuxt/CMtLDUtW.js +1 -0
  91. package/dist/static/_nuxt/CMwYQ92K.js +1 -0
  92. package/dist/static/_nuxt/CP1X_5v-.js +1 -0
  93. package/dist/static/_nuxt/CPVoOeRV.js +1 -0
  94. package/dist/static/_nuxt/CUiMQC3Z.js +1 -0
  95. package/dist/static/_nuxt/CX8RCGtF.js +1 -0
  96. package/dist/static/_nuxt/CXziPYlW.js +1 -0
  97. package/dist/static/_nuxt/CYenBSuZ.js +1 -0
  98. package/dist/static/_nuxt/CZcQaOv1.js +1 -0
  99. package/dist/static/_nuxt/C_ix0rE_.js +1 -0
  100. package/dist/static/_nuxt/Ca3ZVEe7.js +1 -0
  101. package/dist/static/_nuxt/Cdoe66Zd.js +1 -0
  102. package/dist/static/_nuxt/CgjA3YY0.js +1 -0
  103. package/dist/static/_nuxt/Cjk5iewy.js +1 -0
  104. package/dist/static/_nuxt/CmjaJiRg.js +1 -0
  105. package/dist/static/_nuxt/CsxNfAL8.js +1 -0
  106. package/dist/static/_nuxt/Cszrg0h8.js +1 -0
  107. package/dist/static/_nuxt/CvYs9vdO.js +1 -0
  108. package/dist/static/_nuxt/CvbtZrze.js +1 -0
  109. package/dist/static/_nuxt/CwwYMGxb.js +1 -0
  110. package/dist/static/_nuxt/Cx1ACnK3.js +2 -0
  111. package/dist/static/_nuxt/Cy7gYmkN.js +67 -0
  112. package/dist/static/_nuxt/D-oBCPmo.js +1 -0
  113. package/dist/static/_nuxt/D1CkASkf.js +1 -0
  114. package/dist/static/_nuxt/DA90LVQc.js +1 -0
  115. package/dist/static/_nuxt/DE8nYAuE.js +1 -0
  116. package/dist/static/_nuxt/DIqqC1EB.js +1 -0
  117. package/dist/static/_nuxt/DItAGJFi.js +1 -0
  118. package/dist/static/_nuxt/DIxSw9NQ.js +1 -0
  119. package/dist/static/_nuxt/DJBZZkxI.js +1 -0
  120. package/dist/static/_nuxt/DKI3Cf8m.js +1 -0
  121. package/dist/static/_nuxt/DLGdZt4R.js +1 -0
  122. package/dist/static/_nuxt/DM8YsT9L.js +1 -0
  123. package/dist/static/_nuxt/DMxy4sGz.js +1 -0
  124. package/dist/static/_nuxt/DS06smGS.js +1 -0
  125. package/dist/static/_nuxt/DTBUCbOt.js +1 -0
  126. package/dist/static/_nuxt/DVQyySRy.js +1 -0
  127. package/dist/static/_nuxt/DVRkMeDb.js +3 -0
  128. package/dist/static/_nuxt/DVr7GQVt.js +1 -0
  129. package/dist/static/_nuxt/DYAzCAVa.js +1 -0
  130. package/dist/static/_nuxt/DYuO8gvM.js +1 -0
  131. package/dist/static/_nuxt/DaDDSelo.js +1 -0
  132. package/dist/static/_nuxt/Dd3TSBVv.js +1 -0
  133. package/dist/static/_nuxt/DedM_X8L.js +1 -0
  134. package/dist/static/_nuxt/DhF2C9iz.js +1 -0
  135. package/dist/static/_nuxt/Dialog.B6aT2GLZ.css +1 -0
  136. package/dist/static/_nuxt/DlN2nZBa.js +1 -0
  137. package/dist/static/_nuxt/DlidQ2Aq.js +1 -0
  138. package/dist/static/_nuxt/DmB3Fuvb.js +1 -0
  139. package/dist/static/_nuxt/DmzLSENm.js +1 -0
  140. package/dist/static/_nuxt/DpBm5g9z.js +1 -0
  141. package/dist/static/_nuxt/Dv0nv4zm.js +1 -0
  142. package/dist/static/_nuxt/DvuSvxCC.js +1 -0
  143. package/dist/static/_nuxt/Dzuf69-R.js +1 -0
  144. package/dist/static/_nuxt/Form.BfskSJ5D.css +1 -0
  145. package/dist/static/_nuxt/GcJARbV4.js +1 -0
  146. package/dist/static/_nuxt/HNL_HkJH.js +1 -0
  147. package/dist/static/_nuxt/KeyValue.DF5lHbm2.css +1 -0
  148. package/dist/static/_nuxt/L-WHmHIv.js +1 -0
  149. package/dist/static/_nuxt/NeV2yZqu.js +1 -0
  150. package/dist/static/_nuxt/Notifications.BvaCltQH.css +1 -0
  151. package/dist/static/_nuxt/Number.-SYS74l4.css +1 -0
  152. package/dist/static/_nuxt/PLkDYH36.js +2 -0
  153. package/dist/static/_nuxt/QG4-_pWI.js +1 -0
  154. package/dist/static/_nuxt/Repeater.CLIPcHKX.css +1 -0
  155. package/dist/static/_nuxt/RichText.CldIBWau.css +1 -0
  156. package/dist/static/_nuxt/UDkDGLOZ.js +1 -0
  157. package/dist/static/_nuxt/UpSSkYPx.js +1 -0
  158. package/dist/static/_nuxt/VAvatar.DDw3_L_i.css +1 -0
  159. package/dist/static/_nuxt/VBreadcrumbs.wcEtvk8_.css +1 -0
  160. package/dist/static/_nuxt/VChip.DriYwOm3.css +1 -0
  161. package/dist/static/_nuxt/VContainer.ku9EbwM-.css +1 -0
  162. package/dist/static/_nuxt/VDialog.CZWf1yfq.css +1 -0
  163. package/dist/static/_nuxt/VDivider.DvkP_iX7.css +1 -0
  164. package/dist/static/_nuxt/VEmptyState.CUCeAAw2.css +1 -0
  165. package/dist/static/_nuxt/VFileInput.DPM4qn3r.css +1 -0
  166. package/dist/static/_nuxt/VIcon.DTxGzRyY.css +1 -0
  167. package/dist/static/_nuxt/VImg.DG7aP0kv.css +1 -0
  168. package/dist/static/_nuxt/VInput.BzI_hIki.css +1 -0
  169. package/dist/static/_nuxt/VList.-4d3zhl1.css +1 -0
  170. package/dist/static/_nuxt/VMenu.DCy1EQlK.css +1 -0
  171. package/dist/static/_nuxt/VOverlay.DObTzQ9r.css +1 -0
  172. package/dist/static/_nuxt/VProgressLinear.DJ_RCe6L.css +1 -0
  173. package/dist/static/_nuxt/VRow.CqfueTd7.css +1 -0
  174. package/dist/static/_nuxt/VSelect.CuBPwPXI.css +1 -0
  175. package/dist/static/_nuxt/VSelectionControl.DhiKR_Yu.css +1 -0
  176. package/dist/static/_nuxt/VSkeletonLoader.BXLoM9sb.css +1 -0
  177. package/dist/static/_nuxt/VSlideGroup.BEHBZMHn.css +1 -0
  178. package/dist/static/_nuxt/VSpacer.DfbUir7X.css +1 -0
  179. package/dist/static/_nuxt/VTabs.Bt5lJEqb.css +1 -0
  180. package/dist/static/_nuxt/XOH5_ek4.js +1 -0
  181. package/dist/static/_nuxt/_id_.DBl2xP4F.css +1 -0
  182. package/dist/static/_nuxt/_resource_.C0QgZA88.css +1 -0
  183. package/dist/static/_nuxt/autofocus.Dpzbb23r.css +1 -0
  184. package/dist/static/_nuxt/builds/latest.json +1 -0
  185. package/dist/static/_nuxt/builds/meta/755e9ed8-4ffb-4390-9d94-f8197e95ca6d.json +1 -0
  186. package/dist/static/_nuxt/entry.C1pc8lLu.css +1 -0
  187. package/dist/static/_nuxt/error-404.DweuTGbQ.css +1 -0
  188. package/dist/static/_nuxt/error-500.CBLdpBQ_.css +1 -0
  189. package/dist/static/_nuxt/ftNSi8op.js +1 -0
  190. package/dist/static/_nuxt/g4Mjoenv.js +1 -0
  191. package/dist/static/_nuxt/gTiVm3t5.js +2 -0
  192. package/dist/static/_nuxt/gXzQcNWB.js +1 -0
  193. package/dist/static/_nuxt/jDoGFcUw.js +1 -0
  194. package/dist/static/_nuxt/materialdesignicons-webfont.B7mPwVP_.ttf +0 -0
  195. package/dist/static/_nuxt/materialdesignicons-webfont.CSr8KVlo.eot +0 -0
  196. package/dist/static/_nuxt/materialdesignicons-webfont.Dp5v-WZN.woff2 +0 -0
  197. package/dist/static/_nuxt/materialdesignicons-webfont.PXm3-2wK.woff +0 -0
  198. package/dist/static/_nuxt/pevRwwGL.js +2 -0
  199. package/dist/static/_nuxt/rRvgHT1I.js +2 -0
  200. package/dist/static/_nuxt/ripple.BF-Re9AG.css +1 -0
  201. package/dist/static/_nuxt/saFSMwUn.js +1 -0
  202. package/dist/static/_nuxt/vector.Ib8iLFrj.css +1 -0
  203. package/dist/static/_nuxt/wYGZ1W5f.js +1 -0
  204. package/dist/static/_nuxt/wYohQiph.js +1 -0
  205. package/dist/static/_nuxt/zi3w18zk.js +1 -0
  206. package/dist/static/index.html +1 -0
  207. package/dist/static/jobs/index.html +1 -0
  208. package/dist/static/login/index.html +1 -0
  209. package/dist/static/settings/index.html +1 -0
  210. package/dist/static/vector-bundle.json +193 -0
  211. package/nuxt.config.ts +8 -0
  212. package/package.json +8 -3
@@ -0,0 +1 @@
1
+ import{S as e,y as t}from"./Bj2vN0T9.js";import{Ht as n,wn as r,xn as i}from"./DVRkMeDb.js";function a(e,t=!1){for(;e;){if(t?c(e):s(e))return e;e=e.parentElement}return document.scrollingElement}function o(e,t){let n=[];if(t&&e&&!t.contains(e))return n;for(;e&&(s(e)&&n.push(e),e!==t);)e=e.parentElement;return n}function s(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;let t=window.getComputedStyle(e),n=t.overflowY===`scroll`||t.overflowY===`auto`&&e.scrollHeight>e.clientHeight,r=t.overflowX===`scroll`||t.overflowX===`auto`&&e.scrollWidth>e.clientWidth;return n||r}function c(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;let t=window.getComputedStyle(e);return[`scroll`,`auto`].includes(t.overflowY)}var l=e({eager:Boolean},`lazy`);function u(e,t){let a=i(!1),o=r(()=>a.value||e.eager||t.value);n(t,()=>a.value=!0);function s(){e.eager||(a.value=!1)}return{isBooted:a,hasContent:o,onAfterLeave:s}}function d(){let e=t(`useScopeId`).vnode.scopeId;return{scopeId:e?{[e]:``}:void 0}}export{o as a,a as i,l as n,s as o,u as r,d as t};
@@ -0,0 +1 @@
1
+ import{D as e,mt as t,qt as n,v as r,xt as i}from"./DVRkMeDb.js";import{n as a,r as o,t as s}from"./DhF2C9iz.js";import{t as c}from"./BDNMzG2s.js";var l={};function u(c,l){let u=s;return t(),r(o,null,{default:n(()=>[e(a,null,{default:n(()=>[i(c.$slots,`default`)]),_:3}),e(u)]),_:3})}var d=c(l,[[`render`,u]]);export{d as default};
@@ -0,0 +1 @@
1
+ import"./BiSoCgYL.js";var e=e=>{};export{e as t};
@@ -0,0 +1 @@
1
+ import{D as e,E as t,On as n,Zn as r,_ as i,b as a,bt as o,er as s,g as c,k as l,mt as u,o as d,qt as f,tr as p,y as m}from"./DVRkMeDb.js";import{C as h,w as g}from"./Cx1ACnK3.js";import{c as _}from"./pevRwwGL.js";import{$t as v,Pt as y,i as b,jt as x,m as S,t as C}from"#entry";import{t as w}from"./BE_w8iyq.js";var T=[`tabindex`,`role`,`onClick`,`onKeydown`],E={key:0},D=[`colspan`],O={key:0,class:`text-end mt-2`},k=Object.assign(l({__name:`Table`,props:{data:{}},setup(l){let k=l,A=v(),{t:j}=C(),M=c(()=>k.data.rows??[]),N=e=>typeof e._link==`string`&&w(e._link);async function P(e){if(N(e))try{await _(`${A.vector.basePath}${e._link}`)}catch(e){y().error(x(e))}}return(c,_)=>(u(),a(`div`,null,[e(b,{density:`compact`,hover:``},{default:f(()=>[i(`thead`,null,[i(`tr`,null,[(u(!0),a(d,null,o(l.data.columns??[],e=>(u(),a(`th`,{key:e.key,scope:`col`,class:r(e.align===`end`?`text-end`:``)},p(e.label),3))),128))])]),i(`tbody`,null,[(u(!0),a(d,null,o(n(M),(e,t)=>(u(),a(`tr`,{key:t,style:s(N(e)?`cursor: pointer`:``),tabindex:N(e)?0:void 0,role:N(e)?`link`:void 0,onClick:t=>P(e),onKeydown:[h(g(t=>P(e),[`self`,`prevent`]),[`enter`]),h(g(t=>P(e),[`self`,`prevent`]),[`space`])]},[(u(!0),a(d,null,o(l.data.columns??[],t=>(u(),a(`td`,{key:t.key,class:r(t.align===`end`?`text-end`:``)},p(e[t.key]),3))),128))],44,T))),128)),n(M).length===0?(u(),a(`tr`,E,[i(`td`,{colspan:(l.data.columns??[]).length,class:`text-medium-emphasis`},p(n(j)(`dashboard.table.empty`)),9,D)])):m(``,!0)])]),_:1}),l.data.link?(u(),a(`div`,O,[e(S,{size:`small`,variant:`text`,to:`${n(A).vector.basePath}${l.data.link}`,"append-icon":`mdi-arrow-right`},{default:f(()=>[t(p(n(j)(`dashboard.table.seeAll`)),1)]),_:1},8,[`to`])])):m(``,!0)]))}}),{__name:`VxWidgetTable`});export{k as default};
@@ -0,0 +1 @@
1
+ function e(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function t(n,r,i=`.`,a){if(!e(r))return t(n,{},i,a);let o={...r};for(let r of Object.keys(n)){if(r===`__proto__`||r===`constructor`)continue;let s=n[r];s!=null&&(a&&a(o,r,s,i)||(o[r]=Array.isArray(s)&&Array.isArray(o[r])?[...s,...o[r]]:e(s)&&e(o[r])?t(s,o[r],(i?`${i}.`:``)+r.toString(),a):s))}return o}function n(e){return(...n)=>n.reduce((n,r)=>t(n,r,``,e),{})}var r=n(),i=n((e,t,n)=>{if(e[t]!==void 0&&typeof n==`function`)return e[t]=n(e[t]),!0});export{i as n,r as t};
@@ -0,0 +1 @@
1
+ import{D as e,On as t,_ as n,b as r,g as i,k as a,mt as o,tr as s,y as c}from"./DVRkMeDb.js";import{t as l}from"./DIqqC1EB.js";import{t as u}from"#entry";import{t as d}from"./3cwKifVI.js";var f={class:`d-flex justify-space-between align-baseline mb-2`},p={class:`text-h5 font-weight-medium`},m={class:`text-caption text-medium-emphasis`},h={key:0,class:`text-caption text-medium-emphasis mt-2`},g=Object.assign(a({__name:`Progress`,props:{data:{}},setup(a){let g=a,{t:_}=u(),v=i(()=>{let e=g.data.value??0,t=g.data.target??0;return t>0?Math.min(100,e/t*100):0});return(i,u)=>(o(),r(`div`,null,[n(`div`,f,[n(`span`,p,s((`formatWidgetValue`in i?i.formatWidgetValue:t(d))(a.data.value,a.data.format)),1),n(`span`,m,s(t(_)(`dashboard.progress.of`,{target:(`formatWidgetValue`in i?i.formatWidgetValue:t(d))(a.data.target,a.data.format)})),1)]),e(l,{"model-value":t(v),color:`primary`,height:`10`,rounded:``,"aria-label":a.data.caption??t(_)(`dashboard.progress.label`)},null,8,[`model-value`,`aria-label`]),a.data.caption?(o(),r(`div`,h,s(a.data.caption),1)):c(``,!0)]))}}),{__name:`VxWidgetProgress`});export{g as default};
@@ -0,0 +1 @@
1
+ import{$ as e,Ft as t,k as n,mt as r,v as i}from"./DVRkMeDb.js";import{t as a}from"./1Wg893CJ.js";var o=Object.assign(n({__name:`Enum`,props:e({field:{},rules:{},errorMessages:{},record:{},resource:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let n=t(e,`modelValue`);return(t,o)=>(r(),i(a,{modelValue:n.value,"onUpdate:modelValue":o[0]||=e=>n.value=e,label:e.field.label,items:e.field.options??[],"item-title":`label`,"item-value":`value`,rules:e.rules,"error-messages":e.errorMessages,clearable:e.field.nullable===!0,hint:e.field.help??void 0,"persistent-hint":!!e.field.help},null,8,[`modelValue`,`label`,`items`,`rules`,`error-messages`,`clearable`,`hint`,`persistent-hint`]))}}),{__name:`VxInputEnum`});export{o as default};
@@ -0,0 +1 @@
1
+ import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,Zn as ee,_ as o,b as s,bt as c,et as te,g as l,it as ne,k as u,mt as d,o as f,qt as p,tr as m,un as h,v as g,vn as _,y as v}from"./DVRkMeDb.js";import{C as re,w as ie}from"./Cx1ACnK3.js";import{t as ae}from"./BfJMvdNP.js";import{t as oe}from"./CvYs9vdO.js";import{t as y}from"./704AOQgv.js";import{t as b}from"./CgjA3YY0.js";import{t as x}from"./Dd3TSBVv.js";import{It as se,jt as S,m as C,o as w,t as T}from"#entry";import{n as E}from"./DYAzCAVa.js";import{t as D}from"./C_ix0rE_.js";import{a as ce,c as O,n as le,t as ue}from"./Cy7gYmkN.js";import{n as de,t as k}from"./zi3w18zk.js";var A={class:`text-caption text-medium-emphasis px-3 pt-2`},j=[`aria-label`],M={class:`d-flex justify-end ga-2`},N=[`aria-label`],P=Object.assign(u({__name:`RichText`,props:e({field:{},rules:{},errorMessages:{},record:{},resource:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let u=e,P=r(e,`modelValue`),{t:F}=T(),I=E(()=>u.resource??``),{richText:L}=se(),R=l(()=>u.field.richtext??{features:[],imageField:null,mentions:null,storesHtml:!1,maxBytes:262144}),z=e=>R.value.features.includes(e),B=new Map;async function V(e){if(B.has(e))return B.get(e);let t=u.record?.id;return t==null||!R.value.imageField?null:await D(await I.fileBlob(t,R.value.imageField,e))}async function fe(e){return R.value.mentions?(await I.options(R.value.mentions,e)).data.slice(0,8).map(e=>({id:e.id,label:e.label})):[]}let H=ce({features:R.value.features,placeholder:u.field.help??void 0,imageSource:V,mentionItems:fe,custom:L}),U=!1,W=de({content:P.value?O(P.value,H):null,extensions:H,injectNonce:window.__VECTOR__?.cspNonce??void 0,editorProps:{attributes:{class:`vx-richtext-content`,"aria-label":u.field.label,role:`textbox`,"aria-multiline":`true`}},onUpdate:({editor:e})=>{let t=e.getJSON();U=!0,P.value=le(t)?null:JSON.stringify(t)}});i(P,e=>{U?U=!1:W.value?.commands.setContent(e?O(e,H):null,{emitUpdate:!1})}),ne(()=>W.value?.destroy());let G=(e,t)=>W.value?.isActive(e,t)??!1,K=e=>{W.value&&e(W.value)},q=_(!1),J=_(``),Y=l(()=>J.value.trim()!==``&&!ue(J.value.trim())?F(`fields.richtext.linkRefused`):null);function pe(){J.value=String(W.value?.getAttributes(`link`).href??``),q.value=!0}function X(){let e=J.value.trim();Y.value||(K(t=>e===``?t.chain().focus().unsetLink().run():t.chain().focus().extendMarkRange(`link`).setLink({href:e}).run()),q.value=!1)}let Z=_(null),Q=_(!1),$=_(null);async function me(e){let t=e.target.files?.[0];if(e.target.value=``,t&&R.value.imageField){Q.value=!0,$.value=null;try{let{key:e}=await I.upload(R.value.imageField,t,u.record?.id);B.set(e,await D(t)),K(n=>n.chain().focus().setImage({src:e,alt:t.name}).run())}catch(e){$.value=S(e)}finally{Q.value=!1}}}let he=l(()=>G(`table`));return(r,i)=>(d(),g(oe,{"model-value":P.value,rules:e.rules,"error-messages":a($)?[a($),...e.errorMessages]:e.errorMessages,hint:e.field.help??void 0,"persistent-hint":!!e.field.help,class:`vx-richtext`},{default:p(()=>[o(`div`,{class:ee([`vx-richtext-frame`,{"vx-richtext-frame--error":e.errorMessages.length>0}])},[o(`div`,A,m(e.field.label),1),o(`div`,{class:`vx-richtext-toolbar d-flex flex-wrap align-center ga-1 px-2 py-1`,role:`toolbar`,"aria-label":a(F)(`fields.richtext.toolbar`,{label:e.field.label})},[z(`bold`)?(d(),g(C,{key:0,icon:`mdi-format-bold`,size:`small`,variant:`text`,active:G(`bold`),"aria-label":a(F)(`fields.richtext.bold`),onClick:i[0]||=e=>K(e=>e.chain().focus().toggleBold().run())},null,8,[`active`,`aria-label`])):v(``,!0),z(`italic`)?(d(),g(C,{key:1,icon:`mdi-format-italic`,size:`small`,variant:`text`,active:G(`italic`),"aria-label":a(F)(`fields.richtext.italic`),onClick:i[1]||=e=>K(e=>e.chain().focus().toggleItalic().run())},null,8,[`active`,`aria-label`])):v(``,!0),z(`underline`)?(d(),g(C,{key:2,icon:`mdi-format-underline`,size:`small`,variant:`text`,active:G(`underline`),"aria-label":a(F)(`fields.richtext.underline`),onClick:i[2]||=e=>K(e=>e.chain().focus().toggleUnderline().run())},null,8,[`active`,`aria-label`])):v(``,!0),z(`strike`)?(d(),g(C,{key:3,icon:`mdi-format-strikethrough`,size:`small`,variant:`text`,active:G(`strike`),"aria-label":a(F)(`fields.richtext.strike`),onClick:i[3]||=e=>K(e=>e.chain().focus().toggleStrike().run())},null,8,[`active`,`aria-label`])):v(``,!0),z(`code`)?(d(),g(C,{key:4,icon:`mdi-code-tags`,size:`small`,variant:`text`,active:G(`code`),"aria-label":a(F)(`fields.richtext.code`),onClick:i[4]||=e=>K(e=>e.chain().focus().toggleCode().run())},null,8,[`active`,`aria-label`])):v(``,!0),z(`heading`)?(d(),s(f,{key:5},[t(y,{vertical:``,class:`mx-1`}),(d(),s(f,null,c([1,2,3],e=>t(C,{key:e,icon:`mdi-format-header-${e}`,size:`small`,variant:`text`,active:G(`heading`,{level:e}),"aria-label":a(F)(`fields.richtext.heading`,{level:e}),onClick:t=>K(t=>t.chain().focus().toggleHeading({level:e}).run())},null,8,[`icon`,`active`,`aria-label`,`onClick`])),64))],64)):v(``,!0),z(`list`)?(d(),s(f,{key:6},[t(y,{vertical:``,class:`mx-1`}),t(C,{icon:`mdi-format-list-bulleted`,size:`small`,variant:`text`,active:G(`bulletList`),"aria-label":a(F)(`fields.richtext.bulletList`),onClick:i[5]||=e=>K(e=>e.chain().focus().toggleBulletList().run())},null,8,[`active`,`aria-label`]),t(C,{icon:`mdi-format-list-numbered`,size:`small`,variant:`text`,active:G(`orderedList`),"aria-label":a(F)(`fields.richtext.orderedList`),onClick:i[6]||=e=>K(e=>e.chain().focus().toggleOrderedList().run())},null,8,[`active`,`aria-label`])],64)):v(``,!0),z(`blockquote`)?(d(),g(C,{key:7,icon:`mdi-format-quote-close`,size:`small`,variant:`text`,active:G(`blockquote`),"aria-label":a(F)(`fields.richtext.blockquote`),onClick:i[7]||=e=>K(e=>e.chain().focus().toggleBlockquote().run())},null,8,[`active`,`aria-label`])):v(``,!0),z(`codeBlock`)?(d(),g(C,{key:8,icon:`mdi-code-braces`,size:`small`,variant:`text`,active:G(`codeBlock`),"aria-label":a(F)(`fields.richtext.codeBlock`),onClick:i[8]||=e=>K(e=>e.chain().focus().toggleCodeBlock().run())},null,8,[`active`,`aria-label`])):v(``,!0),z(`horizontalRule`)?(d(),g(C,{key:9,icon:`mdi-minus`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.horizontalRule`),onClick:i[9]||=e=>K(e=>e.chain().focus().setHorizontalRule().run())},null,8,[`aria-label`])):v(``,!0),z(`link`)?(d(),g(ae,{key:10,modelValue:a(q),"onUpdate:modelValue":i[12]||=e=>h(q)?q.value=e:null,"close-on-content-click":!1,location:`bottom`},{activator:p(({props:e})=>[t(C,te(e,{icon:`mdi-link-variant`,size:`small`,variant:`text`,active:G(`link`),"aria-label":a(F)(`fields.richtext.link`),onClick:pe}),null,16,[`active`,`aria-label`])]),default:p(()=>[t(w,{"min-width":`320`,class:`pa-3`},{default:p(()=>[t(b,{modelValue:a(J),"onUpdate:modelValue":i[10]||=e=>h(J)?J.value=e:null,label:a(F)(`fields.richtext.linkUrl`),"error-messages":a(Y)?[a(Y)]:[],autofocus:``,onKeydown:re(ie(X,[`prevent`]),[`enter`])},null,8,[`modelValue`,`label`,`error-messages`,`onKeydown`]),o(`div`,M,[t(C,{variant:`text`,onClick:i[11]||=e=>{J.value=``,X()}},{default:p(()=>[n(m(a(F)(`common.remove`)),1)]),_:1}),t(C,{color:`primary`,disabled:!!a(Y),onClick:X},{default:p(()=>[n(m(a(F)(`common.apply`)),1)]),_:1},8,[`disabled`])])]),_:1})]),_:1},8,[`modelValue`])):v(``,!0),z(`table`)?(d(),s(f,{key:11},[t(y,{vertical:``,class:`mx-1`}),t(C,{icon:`mdi-table-plus`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.insertTable`),onClick:i[13]||=e=>K(e=>e.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run())},null,8,[`aria-label`]),a(he)?(d(),s(f,{key:0},[t(C,{icon:`mdi-table-row-plus-after`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.addRow`),onClick:i[14]||=e=>K(e=>e.chain().focus().addRowAfter().run())},null,8,[`aria-label`]),t(C,{icon:`mdi-table-column-plus-after`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.addColumn`),onClick:i[15]||=e=>K(e=>e.chain().focus().addColumnAfter().run())},null,8,[`aria-label`]),t(C,{icon:`mdi-table-row-remove`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.deleteRow`),onClick:i[16]||=e=>K(e=>e.chain().focus().deleteRow().run())},null,8,[`aria-label`]),t(C,{icon:`mdi-table-column-remove`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.deleteColumn`),onClick:i[17]||=e=>K(e=>e.chain().focus().deleteColumn().run())},null,8,[`aria-label`]),t(C,{icon:`mdi-table-remove`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.deleteTable`),onClick:i[18]||=e=>K(e=>e.chain().focus().deleteTable().run())},null,8,[`aria-label`])],64)):v(``,!0)],64)):v(``,!0),z(`image`)&&a(R).imageField?(d(),s(f,{key:12},[t(C,{icon:`mdi-image-plus`,size:`small`,variant:`text`,loading:a(Q),"aria-label":a(F)(`fields.richtext.image`),onClick:i[19]||=e=>a(Z)?.click()},null,8,[`loading`,`aria-label`]),o(`input`,{ref_key:`picker`,ref:Z,type:`file`,accept:`image/png,image/jpeg,image/webp,image/gif`,class:`d-none`,"aria-label":a(F)(`fields.richtext.image`),onChange:me},null,40,N)],64)):v(``,!0),t(x),t(C,{icon:`mdi-undo`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.undo`),onClick:i[20]||=e=>K(e=>e.chain().focus().undo().run())},null,8,[`aria-label`]),t(C,{icon:`mdi-redo`,size:`small`,variant:`text`,"aria-label":a(F)(`fields.richtext.redo`),onClick:i[21]||=e=>K(e=>e.chain().focus().redo().run())},null,8,[`aria-label`])],8,j),t(y),t(a(k),{editor:a(W),class:`vx-richtext-editor`},null,8,[`editor`])],2)]),_:1},8,[`model-value`,`rules`,`error-messages`,`hint`,`persistent-hint`]))}}),{__name:`VxInputRichText`});export{P as default};
@@ -0,0 +1 @@
1
+ import{S as e,b as t,p as n,v as r}from"./Bj2vN0T9.js";import{Tn as i,wn as a}from"./DVRkMeDb.js";var o=e({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},`VDefaultsProvider`),s=n(!1)({name:`VDefaultsProvider`,props:o(),setup(e,{slots:t}){let{defaults:n,disabled:a,reset:o,root:s,scoped:c}=i(e);return r(n,{reset:o,root:s,scoped:c,disabled:a}),()=>t.default?.()}}),c=[null,`default`,`comfortable`,`compact`],l=e({density:{type:String,default:`default`,validator:e=>c.includes(e)}},`density`);function u(e,n=t()){return{densityClasses:a(()=>`${n}--density-${e.density}`)}}export{u as n,s as r,l as t};
@@ -0,0 +1 @@
1
+ import{D as e,E as t,_ as n,b as r,mt as i,qt as a,tr as o}from"./DVRkMeDb.js";import{Bt as s,tn as c}from"#entry";import{t as l}from"./BDNMzG2s.js";var u={class:`antialiased bg-white dark:bg-neutral-950 dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-neutral-950 tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=[`textContent`],_=l({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`},backToPrevious:{type:String,default:`Go back`}},setup(l){let _=l;return c({title:`${_.status} - ${_.statusText} | ${_.appName}`,script:[{innerHTML:`(()=>{if(!(window.history.state&&window.history.state.back||document.referrer.startsWith(window.location.origin+"/")))return;const t=document.querySelector("[data-back-home]"),e=document.querySelector("[data-back-previous]");t&&e&&(e.onclick=()=>window.history.back(),t.hidden=!0,e.hidden=!1)})();`,tagPosition:`bodyClose`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb);--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:after,:before{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body,button{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{-webkit-text-decoration:inherit;text-decoration:inherit}a,button{color:inherit}button{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;padding:0;text-transform:none;cursor:pointer}[type=button],button{-webkit-appearance:button;background-color:#0000;background-image:none}h1,h2,p{margin:0}[hidden]:where(:not([hidden=until-found])){display:none}`}]}),(c,_)=>{let v=s;return i(),r(`div`,u,[n(`div`,d,[n(`h1`,{class:`font-medium leading-none mb-4 sm:text-[72px] tabular-nums text-[56px]`,textContent:o(l.status)},null,8,f),n(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:o(l.statusText)},null,8,p),n(`p`,{class:`mb-4 px-2 text-md text-neutral-500`,textContent:o(l.description)},null,8,m),n(`div`,h,[e(v,{to:`/`,"data-back-home":``,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[t(o(l.backHome),1)]),_:1}),_[0]||=t(),n(`button`,{type:`button`,"data-back-previous":``,hidden:``,class:`appearance-none bg-transparent border-0 cursor-pointer font-medium font-sans hover:text-[#00DC82] p-0 text-inherit text-sm underline underline-offset-3`,textContent:o(l.backToPrevious)},null,8,g)])])])}}},[[`__scopeId`,`data-v-0cde3fd8`]]);export{_ as default};
@@ -0,0 +1 @@
1
+ import{Ct as e,N as t,Rt as n,S as r,V as i,p as a,t as o,u as s,x as c,y as l}from"./Bj2vN0T9.js";import{D as u,Ht as d,Yt as f,Zn as p,_ as m,er as h,et as g,g as _,it as v,o as y,rt as b,tt as x,vn as S,wn as C,xn as w}from"./DVRkMeDb.js";import{S as T}from"./Cx1ACnK3.js";import{n as E,t as D}from"./BD9kIZPf.js";import{n as O,t as k}from"./CX8RCGtF.js";import{n as A,t as j}from"./BHJ6uF5H.js";import{t as M}from"./Cszrg0h8.js";function N(e){return{aspectStyles:_(()=>{let t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+`%`}:void 0})}}var P=r({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...c(),...D()},`VResponsive`),F=a()({name:`VResponsive`,props:P(),setup(e,{slots:t}){let{aspectStyles:n}=N(e),{dimensionStyles:r}=E(e);return s(()=>m(`div`,{class:p([`v-responsive`,{"v-responsive--inline":e.inline},e.class]),style:h([r.value,e.style])},[m(`div`,{class:`v-responsive__sizer`,style:h(n.value)},null),t.additional?.(),t.default&&m(`div`,{class:p([`v-responsive__content`,e.contentClass])},[t.default()])])),{}}}),I=r({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,imageClass:null,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:``},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...P(),...c(),...k(),...A()},`VImg`),L=a()({name:`VImg`,directives:{vIntersect:M},inheritAttrs:!1,props:I(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(r,{attrs:a,emit:c,slots:h}){let{backgroundColorClasses:E,backgroundColorStyles:D}=o(()=>r.color),{roundedClasses:k,roundedStyles:A}=O(r),N=l(`VImg`),P=w(``),I=S(),L=w(r.eager?`loading`:`idle`),R=w(),z=w(),B=!1,V=_(()=>n(r.src)?{src:r.src.src,srcset:r.srcset||r.src.srcset,lazySrc:r.lazySrc||r.src.lazySrc,aspect:Number(r.aspectRatio||r.src.aspect||0)}:{src:r.src,srcset:r.srcset,lazySrc:r.lazySrc,aspect:Number(r.aspectRatio||0)}),H=_(()=>V.value.aspect||R.value/z.value||0);d(()=>r.src,()=>{U(L.value!==`idle`)}),d(H,(e,t)=>{!e&&t&&I.value&&J(I.value)}),d(I,e=>{e&&L.value!==`idle`&&(H.value||J(e),K(e),B&&(B=!1,c(`load`,e.currentSrc||V.value.src)))}),b(()=>U());function U(t){if(!(r.eager&&t)&&(!e||t||r.eager)){if(L.value=`loading`,V.value.lazySrc){let e=new Image;e.src=V.value.lazySrc,J(e,null)}V.value.src&&x(()=>{c(`loadstart`,I.value?.currentSrc||V.value.src),setTimeout(()=>{if(!N.isUnmounted){if(I.value?.complete){if(I.value.naturalWidth||G(),L.value===`error`)return;H.value||J(I.value,null),L.value===`loading`&&W()}else I.value&&(H.value||J(I.value),K(I.value))}})})}}function W(){N.isUnmounted||(I.value?(K(I.value),J(I.value),c(`load`,I.value.currentSrc||V.value.src)):B=!0,L.value=`loaded`)}function G(){N.isUnmounted||(L.value=`error`,c(`error`,I.value?.currentSrc||V.value.src))}function K(e){P.value=e.currentSrc||e.src}let q=-1;v(()=>{clearTimeout(q)});function J(e,t=100){let n=()=>{if(clearTimeout(q),N.isUnmounted)return;let{naturalHeight:r,naturalWidth:i}=e;r||i?(R.value=i,z.value=r):!e.complete&&L.value===`loading`&&t!=null?q=window.setTimeout(n,t):(e.currentSrc.endsWith(`.svg`)||e.currentSrc.startsWith(`data:image/svg+xml`))&&(R.value=1,z.value=1)};n()}let Y=C(()=>({"v-img__img--cover":r.cover,"v-img__img--contain":!r.cover})),X=()=>{if(!V.value.src||L.value===`idle`)return null;let e=m(`img`,{class:p([`v-img__img`,Y.value,r.imageClass]),style:{objectPosition:r.position},crossorigin:r.crossorigin,src:V.value.src,srcset:V.value.srcset,alt:r.alt,referrerpolicy:r.referrerpolicy,draggable:r.draggable,sizes:r.sizes,ref:I,onLoad:W,onError:G},null),t=h.sources?.();return u(j,{transition:r.transition,appear:!0},{default:()=>[f(t?m(`picture`,{class:`v-img__picture`},[t,e]):e,[[T,L.value===`loaded`]])]})},Z=()=>u(j,{transition:r.transition},{default:()=>[V.value.lazySrc&&L.value!==`loaded`&&m(`img`,{class:p([`v-img__img`,`v-img__img--preload`,Y.value]),style:{objectPosition:r.position},crossorigin:r.crossorigin,src:V.value.lazySrc,alt:r.alt,referrerpolicy:r.referrerpolicy,draggable:r.draggable},null)]}),Q=()=>h.placeholder?u(j,{transition:r.transition,appear:!0},{default:()=>[(L.value===`loading`||L.value===`error`&&!h.error)&&m(`div`,{class:`v-img__placeholder`},[h.placeholder()])]}):null,ee=()=>h.error?u(j,{transition:r.transition,appear:!0},{default:()=>[L.value===`error`&&m(`div`,{class:`v-img__error`},[h.error()])]}):null,te=()=>r.gradient?m(`div`,{class:`v-img__gradient`,style:{backgroundImage:`linear-gradient(${r.gradient})`}},null):null,$=w(!1);{let e=d(H,t=>{t&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{$.value=!0})}),e())})}return s(()=>{let e=F.filterProps(r),[n,o]=i(a);return f(u(F,g({class:[`v-img`,{"v-img--absolute":r.absolute,"v-img--booting":!$.value,"v-img--fit-content":r.width===`fit-content`},E.value,k.value,r.class],style:[{width:t(r.width===`auto`?R.value:r.width)},D.value,A.value,r.style]},e,n,{aspectRatio:H.value,"aria-label":r.alt||void 0,role:r.alt?`img`:void 0}),{additional:()=>m(y,null,[u(X,o,null),u(Z,null,null),u(te,null,null),u(Q,null,null),u(ee,null,null)]),default:h.default}),[[M,{handler:U,options:r.options},null,{once:!0}]])}),{currentSrc:P,image:I,state:L,naturalWidth:R,naturalHeight:z}}});export{L as t};
@@ -0,0 +1 @@
1
+ import{E as e,G as t,K as n,S as r,St as i,W as a,dt as o,p as s,q as c,u as l}from"./Bj2vN0T9.js";import{D as u,Ht as d,J as f,Pt as p,et as m,g as h,gt as g,it as _,ot as v,vn as y,wn as b,xn as x}from"./DVRkMeDb.js";import{t as S}from"./Cx1ACnK3.js";import{o as C,s as w}from"./CEwqGRFH.js";import{n as T,t as E}from"./CZcQaOv1.js";import{n as D,s as O,t as k}from"./DE8nYAuE.js";import{i as A,n as j,t as M}from"./BKlyjday.js";import{t as N}from"./BQpOsqaq.js";import{r as P}from"./BaOEsdpg.js";import{t as F}from"./wYohQiph.js";var I=r({target:[Object,Array]},`v-dialog-transition`),L=new WeakMap,R=s()({name:`VDialogTransition`,props:I(),setup(e,{slots:t}){let n={onBeforeEnter(e){e.style.pointerEvents=`none`,e.style.visibility=`hidden`},async onEnter(t,n){await new Promise(e=>requestAnimationFrame(e)),await new Promise(e=>requestAnimationFrame(e)),t.style.visibility=``;let r=B(e.target,t),{x:a,y:o,sx:s,sy:c,speed:l}=r;if(L.set(t,r),i())E(t,[{opacity:0},{}],{duration:125*l,easing:j}).finished.then(()=>n());else{let e=E(t,[{transform:`translate(${a}px, ${o}px) scale(${s}, ${c})`,opacity:0},{}],{duration:225*l,easing:j});z(t)?.forEach(e=>{E(e,[{opacity:0},{opacity:0,offset:.33},{}],{duration:450*l,easing:A})}),e.finished.then(()=>n())}},onAfterEnter(e){e.style.removeProperty(`pointer-events`)},onBeforeLeave(e){e.style.pointerEvents=`none`},async onLeave(t,n){await new Promise(e=>requestAnimationFrame(e));let r;r=!L.has(t)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?B(e.target,t):L.get(t);let{x:a,y:o,sx:s,sy:c,speed:l}=r;i()?E(t,[{},{opacity:0}],{duration:85*l,easing:M}).finished.then(()=>n()):(E(t,[{},{transform:`translate(${a}px, ${o}px) scale(${s}, ${c})`,opacity:0}],{duration:125*l,easing:M}).finished.then(()=>n()),z(t)?.forEach(e=>{E(e,[{},{opacity:0,offset:.2},{opacity:0}],{duration:250*l,easing:A})}))},onAfterLeave(e){e.style.removeProperty(`pointer-events`)}};return()=>e.target?u(S,m({name:`dialog-transition`},n,{css:!1}),t):u(S,{name:`dialog-transition`},t)}});function z(e){let t=e.querySelector(`:scope > .v-card, :scope > .v-sheet, :scope > .v-list`)?.children;return t&&[...t]}function B(t,n){let r=e(t),i=T(n),[a,o]=getComputedStyle(n).transformOrigin.split(` `).map(e=>parseFloat(e)),[s,c]=getComputedStyle(n).getPropertyValue(`--v-overlay-anchor-origin`).split(` `),l=r.left+r.width/2;s===`left`||c===`left`?l-=r.width/2:(s===`right`||c===`right`)&&(l+=r.width/2);let u=r.top+r.height/2;s===`top`||c===`top`?u-=r.height/2:(s===`bottom`||c===`bottom`)&&(u+=r.height/2);let d=r.width/i.width,f=r.height/i.height,p=Math.max(1,d,f),m=d/p||0,h=f/p||0,g=i.width*i.height/(window.innerWidth*window.innerHeight),_=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:l-(a+i.left),y:u-(o+i.top),sx:m,sy:h,speed:_}}var V=r({_disableKeys:Boolean,id:String,submenu:Boolean,openOnArrow:{type:Boolean,default:!0},...o(D({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:`connected`,location:void 0,openDelay:300,scrim:!1,scrollStrategy:`reposition`,transition:{component:R}}),[`absolute`])},`VMenu`),H=s()({name:`VMenu`,props:V(),emits:{"update:modelValue":e=>!0},setup(e,{slots:r}){let i=w(e,`modelValue`),{scopeId:o}=N(),{isRtl:s}=C(),S=p(),T=b(()=>e.id||`v-menu-${S}`),E=y(),D=f(O,null),A=x(new Map);g(O,{register(e,t){for(let[t,n]of[...A.value])t!==e&&n();A.value.set(e,t)},unregister(e){A.value.delete(e)},closeParents(t){let n=!t||E.value?.contentEl?._clickOutside?.lastMousedownWasOutside;setTimeout(()=>{!A.value.size&&!e.persistent&&n&&(i.value=!1,D?.closeParents(t))},40)},rootOpenedByHover:e.submenu&&D?D.rootOpenedByHover:()=>E.value?.openedByHover??!1}),_(()=>D?.unregister(S)),v(()=>i.value=!1),d(i,e=>{if(e)D?.register(S,()=>{i.value=!1});else{D?.unregister(S);for(let[,e]of[...A.value])e()}},{immediate:!0});function j(n){if(!e.disabled){if(n.key===`Tab`){if(e.submenu&&!e.retainFocus){n.preventDefault(),i.value=!1,E.value?.activatorEl?.focus();return}!c(t(E.value?.contentEl,!1),n.shiftKey?`prev`:`next`,e=>e.tabIndex>=0)&&!e.retainFocus&&(i.value=!1)}else e.submenu&&n.key===(s.value?`ArrowRight`:`ArrowLeft`)&&(i.value=!1,E.value?.activatorEl?.focus())}}function M(e){let n=E.value?.contentEl;if(!n||!i.value||![`ArrowUp`,`ArrowDown`].includes(e.key))return;let r=t(n),o=(e.key===`ArrowUp`?r.at(-1):r[0])?.getAttribute(`role`)??``,s=[`option`,`listbox`].includes(o)&&r.find(e=>e.getAttribute(`role`)===`option`&&e.getAttribute(`aria-selected`)===`true`&&e.offsetParent!=null);s?s.focus():a(n,e.key===`ArrowDown`?`next`:`prev`)}function I(t){if(e.disabled||e._disableKeys||t.isComposing)return;let n=E.value?.contentEl;if(n&&i.value){if(t.key===`ArrowDown`||t.key===`ArrowUp`){if(!e.openOnArrow)return;t.preventDefault(),t.stopImmediatePropagation(),a(n,t.key===`ArrowDown`?`next`:`prev`)}else e.submenu&&(t.key===(s.value?`ArrowRight`:`ArrowLeft`)?(i.value=!1,E.value?.activatorEl?.focus()):t.key===(s.value?`ArrowLeft`:`ArrowRight`)&&(t.preventDefault(),a(n,`first`)))}else(e.submenu?t.key===(s.value?`ArrowLeft`:`ArrowRight`):e.openOnArrow&&[`ArrowDown`,`ArrowUp`].includes(t.key))&&(i.value=!0,t.preventDefault(),L(t))}function L(e,r=1){if(!i.value)return;let a=E.value?.contentEl;a?.contains(n())||a&&t(a).length&&([`ArrowUp`,`ArrowDown`].includes(e.key)?M(e):I(e),a.contains(n()))||r<=10&&requestAnimationFrame(()=>L(e,r+1))}let R=h(()=>m({"aria-haspopup":`menu`,"aria-expanded":String(i.value),"aria-controls":T.value,"aria-owns":T.value,onKeydown:I},e.activatorProps));return l(()=>{let t=k.filterProps(e);return u(k,m({ref:E,id:T.value,class:[`v-menu`,e.class],style:e.style},t,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,absolute:!0,_submenu:e.submenu,activatorProps:R.value,location:e.location??(e.submenu?`end`:`bottom`),onKeydown:j},o),{activator:r.activator,default:(...e)=>u(P,{root:`VMenu`},{default:()=>[r.default?.(...e)]})})}),F({id:T,ΨopenChildren:A},E)}});export{R as n,H as t};
@@ -0,0 +1 @@
1
+ function e(e){return Array.isArray(e.props)?{}:e.props}export{e as t};
@@ -0,0 +1 @@
1
+ import{H as e,L as t,an as n,gn as r,in as i,yn as a}from"./DVRkMeDb.js";var o=Error.captureStackTrace,s=class e extends Error{name;code;docs;fix;sources;data;get why(){return this.message}constructor(t,n=e){super(t.why,{cause:t.cause}),this.code=this.name=t.code,this.fix=t.fix,this.docs=t.docs,this.sources=t.sources,this.data=t.data,o?.(this,n)}toJSON(){return{name:this.name,why:this.why,fix:this.fix,docs:this.docs,sources:this.sources,cause:this.cause,data:this.data,stack:this.stack}}};function c(e,t){return typeof e==`string`?`${e}/${t.toLowerCase()}`:e?.(t)}function l(e={}){let{docsBase:t,reporters:n=[]}=e;return new Proxy({},{get(e,r){if(typeof r!=`string`)return;let i=(e={},a={})=>{let o=c(t,r),l=new s({code:r,why:o??``,docs:o,cause:e.cause,sources:e.sources},i);for(let e of n)e(l,a);return l};return i}})}function u(e){return`https://nuxt.com/docs/4.x/errors/${e.replace(`NUXT_`,``).toLowerCase()}`}var d=[e=>{console.error(`[${e.name}]`)}],f=l({docsBase:u,reporters:d}),p=globalThis.__nuxt_app_ctx__||={};function m(e){return p[e]||=(()=>{let e;return{use:()=>{if(e===void 0)throw Error(`Context is not available`);return e},tryUse:()=>e??null,set:t=>{e=t},unset:()=>{e=void 0},call:(t,n)=>(e=t,n()),callAsync:(t,n)=>(e=t,Promise.resolve(n()))}})()}function h(e,t){return m(e)}function g(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?g(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var _=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function v(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>v(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function y(e,t,n){if(e.length>0)return v(e,t,0,_(n))}function b(e,t,n){if(e.length>0){let r=_(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function x(e,t){for(let n of[...e])n(t)}var S=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=g(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=g(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(y,e,t)}callHookParallel(e,...t){return this.callHookWith(b,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&x(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&x(this._after,r)}):(this._after&&r&&x(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function C(){return new S}var w=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(n&&n.length!==0)return v(n.slice(),t,0)}},T={meta:[{name:`viewport`,content:`width=device-width, initial-scale=1`},{charset:`utf-8`}],link:[],style:[],script:[],noscript:[]},E={id:`__nuxt-loader`},D={componentName:`NuxtLink`,prefetch:!0,prefetchOn:{visibility:!0}},O={deep:!1},k={},A=`#__nuxt`,j=`nuxt-app`,M=36e5,N=`vite:preloadError`;function P(e=`nuxt-app`){return h(e,{asyncContext:!1})}var F=`__nuxt_plugin`;function I(e){let t=0,o={_id:e.id||`nuxt-app`,_scope:i(),provide:void 0,versions:{get nuxt(){return`4.6.2`},get vue(){return o.vueApp.version}},payload:a({...e.ssrContext?.payload||{},data:a({}),state:r({}),once:new Set,_errors:a({})}),static:{data:{}},runWithContext(e){return o._scope.active&&!n()?o._scope.run(()=>U(o,e)):U(o,e)},isHydrating:!0,deferHydration(){if(!o.isHydrating)return()=>{};t++;let e=!1;return()=>{if(!e&&(e=!0,t--,t===0))return o.isHydrating=!1,o.callHook(`app:suspense:resolve`)}},_asyncDataPromises:{},_asyncData:a({}),_state:a({}),_payloadRevivers:{},...e};{let e=window.__NUXT__;if(e)for(let t in e)switch(t){case`data`:case`state`:case`_errors`:Object.assign(o.payload[t],e[t]);break;default:o.payload[t]=e[t]}}o.hooks=C(),o.hook=o.hooks.hook;{let e=o.hooks.callHook;o.hooks.callHook=(t,...n)=>Promise.resolve().then(()=>e(t,...n))}o.callHook=o.hooks.callHook,o.provide=(e,t)=>{let n=`$`+e;q(o,n,t),q(o.vueApp.config.globalProperties,n,t)},q(o.vueApp,`$nuxt`,o),q(o.vueApp.config.globalProperties,`$nuxt`,o);{window.addEventListener(N,e=>{o.callHook(`app:chunkError`,{error:e.payload}),e.payload?.message?.includes(`Unable to preload CSS`)&&e.preventDefault()}),window.useNuxtApp||=G;let e=o.hook(`app:error`,(...e)=>{f.NUXT_E1005({cause:e.length>1?e:e[0]})});o.hook(`app:mounted`,e)}let s=o.payload.config;return o.provide(`config`,s),o}function L(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function R(e,t){if(typeof t==`function`){let{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n==`object`)for(let t in n)e.provide(t,n[t])}}async function z(e,t){return B(e,t)}async function B(e,t){let n=new Set,r=[],i=[],a,o=0;async function s(c){let l=c.dependsOn?.filter(e=>t.some(t=>t._name===e)&&!n.has(e))??[];if(l.length>0)r.push([new Set(l),c]);else{let t=R(e,c).then(async()=>{c._name&&(n.add(c._name),await Promise.all(r.map(async([e,t])=>{e.has(c._name)&&(e.delete(c._name),e.size===0&&(o++,await s(t)))})))}).catch(t=>{if(!c.parallel&&!e.payload.error)throw t;a||=t});c.parallel?i.push(t):await t}}for(let n of t)L(e,n);for(let e of t)await s(e);if(await Promise.all(i),o)for(let e=0;e<o;e++)await Promise.all(i);if(a)throw e.payload.error||a}function V(e){if(typeof e==`function`)return e;let t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[F]:!0,_name:t})}var H=V;function U(e,t,n){return P(e._id).set(e),e.vueApp.runWithContext(()=>n?t(...n):t())}function W(n){let r;return e()&&(r=t()?.appContext.app.$nuxt),r||=P(n).tryUse(),r||null}function G(e){let t=W(e);if(!t)throw f.NUXT_E1001();return t}function K(e){return G().$config}function q(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function J(e){return e}export{w as _,H as a,d as b,K as c,E as d,O as f,A as g,M as h,V as i,T as l,D as m,I as n,W as o,k as p,J as r,G as s,z as t,j as u,f as v,l as x,u as y};
@@ -0,0 +1,10 @@
1
+ import{$ as e,$n as t,$t as n,A as r,At as i,B as a,Bt as o,C as s,Cn as c,Ct as l,D as u,Dn as ee,Dt as te,E as d,En as f,Et as ne,F as re,Ft as ie,G as ae,Gt as oe,H as se,Ht as ce,I as le,It as ue,J as p,Jt as de,K as fe,Kt as pe,L as me,Lt as he,M as ge,Mn as _e,Mt as ve,N as ye,Nt as be,O as xe,On as m,Ot as Se,P as Ce,Pt as we,Q as Te,Qt as Ee,R as De,Rt as Oe,S as ke,Sn as Ae,St as je,T as Me,Tn as Ne,Tt as Pe,U as Fe,Ut as Ie,V as Le,Vt as h,W as Re,Wt as ze,X as Be,Xt as Ve,Y as He,Yt as Ue,Z as We,Zn as Ge,Zt as Ke,_ as qe,_n as Je,_t as Ye,a as Xe,an as Ze,at as Qe,b as $e,bn as et,bt as tt,c as nt,cn as rt,ct as it,d as at,dn as ot,dt as st,en as ct,er as lt,et as ut,f as dt,fn as ft,ft as pt,g,gn as mt,gt as _,h as ht,hn as gt,ht as _t,i as vt,in as yt,it as bt,j as xt,jn as St,jt as Ct,k as wt,kt as Tt,l as Et,ln as Dt,lt as Ot,m as kt,mn as At,mt as jt,n as Mt,nn as Nt,nr as Pt,nt as Ft,o as v,on as It,ot as Lt,p as Rt,pn as zt,pt as Bt,q as Vt,qt as Ht,r as Ut,rn as Wt,rt as Gt,s as Kt,sn as qt,st as Jt,t as Yt,tn as Xt,tr as Zt,tt as Qt,u as $t,un as en,ut as tn,v as nn,vn as y,vt as rn,w as an,wn as b,wt as on,x as sn,xn as x,xt as cn,y as ln,yn as un,yt as dn,z as fn,zt as pn}from"./DVRkMeDb.js";import{C as mn,S as hn,_ as gn,a as _n,b as vn,c as yn,d as bn,f as xn,g as Sn,h as Cn,i as wn,l as Tn,m as En,n as Dn,o as On,p as kn,r as An,s as jn,t as Mn,u as Nn,v as Pn,w as Fn,x as In,y as Ln}from"./Cx1ACnK3.js";var Rn=Object.defineProperty,zn=(e,t)=>{let n={};for(var r in e)Rn(n,r,{get:e[r],enumerable:!0});return t||Rn(n,Symbol.toStringTag,{value:`Module`}),n},Bn=zn({BaseTransition:()=>Yt,BaseTransitionPropsValidators:()=>Mt,Comment:()=>Ut,DeprecationTypes:()=>null,EffectScope:()=>Ee,ErrorCodes:()=>vt,ErrorTypeStrings:()=>Xe,Fragment:()=>v,KeepAlive:()=>Kt,ReactiveEffect:()=>n,Static:()=>nt,Suspense:()=>Et,Teleport:()=>$t,Text:()=>at,TrackOpTypes:()=>ct,Transition:()=>Mn,TransitionGroup:()=>Dn,TriggerOpTypes:()=>Xt,VueElement:()=>An,assertNumber:()=>dt,callWithAsyncErrorHandling:()=>Rt,callWithErrorHandling:()=>kt,camelize:()=>St,capitalize:()=>_e,cloneVNode:()=>ht,compatUtils:()=>null,compile:()=>Vn,computed:()=>g,createApp:()=>wn,createBlock:()=>nn,createCommentVNode:()=>ln,createElementBlock:()=>$e,createElementVNode:()=>qe,createHydrationRenderer:()=>sn,createPropsRestProxy:()=>ke,createRenderer:()=>s,createSSRApp:()=>_n,createSlots:()=>an,createStaticVNode:()=>Me,createTextVNode:()=>d,createVNode:()=>u,customRef:()=>Nt,defineAsyncComponent:()=>xe,defineComponent:()=>wt,defineCustomElement:()=>On,defineEmits:()=>r,defineExpose:()=>xt,defineModel:()=>ge,defineOptions:()=>ye,defineProps:()=>Ce,defineSSRCustomElement:()=>jn,defineSlots:()=>re,devtools:()=>le,effect:()=>Wt,effectScope:()=>yt,getCurrentInstance:()=>me,getCurrentScope:()=>Ze,getCurrentWatcher:()=>It,getTransitionRawChildren:()=>De,guardReactiveProps:()=>fn,h:()=>a,handleError:()=>Le,hasInjectionContext:()=>se,hydrate:()=>yn,hydrateOnIdle:()=>Fe,hydrateOnInteraction:()=>Re,hydrateOnMediaQuery:()=>ae,hydrateOnVisible:()=>fe,initCustomFormatter:()=>Vt,initDirectivesForSSR:()=>Tn,inject:()=>p,isMemoSame:()=>He,isProxy:()=>qt,isReactive:()=>rt,isReadonly:()=>Dt,isRef:()=>en,isRuntimeOnly:()=>Be,isShallow:()=>ot,isVNode:()=>We,markRaw:()=>ft,mergeDefaults:()=>Te,mergeModels:()=>e,mergeProps:()=>ut,nextTick:()=>Qt,nodeOps:()=>Nn,normalizeClass:()=>Ge,normalizeProps:()=>t,normalizeStyle:()=>lt,onActivated:()=>Ft,onBeforeMount:()=>Gt,onBeforeUnmount:()=>bt,onBeforeUpdate:()=>Qe,onDeactivated:()=>Lt,onErrorCaptured:()=>Jt,onMounted:()=>it,onRenderTracked:()=>Ot,onRenderTriggered:()=>tn,onScopeDispose:()=>zt,onServerPrefetch:()=>st,onUnmounted:()=>pt,onUpdated:()=>Bt,onWatcherCleanup:()=>At,openBlock:()=>jt,patchProp:()=>bn,popScopeId:()=>_t,provide:()=>_,proxyRefs:()=>gt,pushScopeId:()=>Ye,queuePostFlushCb:()=>rn,reactive:()=>mt,readonly:()=>Je,ref:()=>y,registerRuntimeCompiler:()=>dn,render:()=>xn,renderList:()=>tt,renderSlot:()=>cn,resolveComponent:()=>je,resolveDirective:()=>l,resolveDynamicComponent:()=>on,resolveFilter:()=>null,resolveTransitionHooks:()=>Pe,setBlockTracking:()=>ne,setDevtoolsHook:()=>te,setTransitionHooks:()=>Se,shallowReactive:()=>un,shallowReadonly:()=>et,shallowRef:()=>x,ssrContextKey:()=>Tt,ssrUtils:()=>i,stop:()=>Ae,toDisplayString:()=>Zt,toHandlerKey:()=>Pt,toHandlers:()=>Ct,toRaw:()=>c,toRef:()=>b,toRefs:()=>Ne,toValue:()=>f,transformVNodeArgs:()=>ve,triggerRef:()=>ee,unref:()=>m,useAttrs:()=>be,useCssModule:()=>kn,useCssVars:()=>En,useHost:()=>Cn,useId:()=>we,useModel:()=>ie,useSSRContext:()=>ue,useShadowRoot:()=>Sn,useSlots:()=>he,useTemplateRef:()=>Oe,useTransitionState:()=>pn,vModelCheckbox:()=>gn,vModelDynamic:()=>Pn,vModelRadio:()=>Ln,vModelSelect:()=>vn,vModelText:()=>In,vShow:()=>hn,version:()=>o,warn:()=>h,watch:()=>ce,watchEffect:()=>Ie,watchPostEffect:()=>ze,watchSyncEffect:()=>oe,withAsyncContext:()=>pe,withCtx:()=>Ht,withDefaults:()=>de,withDirectives:()=>Ue,withKeys:()=>mn,withMemo:()=>Ve,withModifiers:()=>Fn,withScopeId:()=>Ke}),Vn=()=>{};function S(e){h(`Vuetify: ${e}`)}function Hn(e){h(`Vuetify error: ${e}`)}function Un(e,t){t=Array.isArray(t)?t.slice(0,-1).map(e=>`'${e}'`).join(`, `)+` or '${t.at(-1)}'`:`'${t}'`,h(`[Vuetify UPGRADE] '${e}' is deprecated, use ${t} instead.`)}function Wn(e){let t=e.startsWith(`#`)?e.slice(1):e;if(t.length===3||t.length===4){let e=Number.parseInt(t[0]+t[0],16),n=Number.parseInt(t[1]+t[1],16),r=Number.parseInt(t[2]+t[2],16),i=t.length===4?Number.parseInt(t[3]+t[3],16):void 0;return M(i)?{r:e,g:n,b:r}:{r:e,g:n,b:r,a:i}}let n=Number.parseInt(t.slice(0,2),16),r=Number.parseInt(t.slice(2,4),16),i=Number.parseInt(t.slice(4,6),16),a=t.length===8?Number.parseInt(t.slice(6,8),16):void 0;return M(a)?{r:n,g:r,b:i}:{r:n,g:r,b:i,a}}var Gn=.2126729,Kn=.7151522,qn=.072175,Jn=.56,Yn=.57,Xn=.65,Zn=.62,Qn=.022,$n=1.414,er=1.14,tr=1.14,nr=.027,rr=.027,ir=5e-4;function C(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function ar(e){return Gn*C(e.r)+Kn*C(e.g)+qn*C(e.b)}function or(e){return e>Qn?e:e+(Qn-e)**+$n}function sr(e,t){let n=or(ar(e)),r=or(ar(t));if(Math.abs(r-n)<ir)return 0;let i;return r>n?(i=(r**+Jn-n**+Yn)*er,i<nr?0:(i-nr)*100):(i=(r**+Xn-n**+Zn)*tr,i>-.027?0:(i+rr)*100)}var cr={r:0,g:0,b:0},lr={r:255,g:255,b:255};function ur(e){let t=Wn(e);return Math.abs(sr(cr,t))>Math.abs(sr(lr,t))?`#000000`:`#ffffff`}var dr=/[\u0300-\u036F]/g,fr=/ς/g;function w(e){return e.toLowerCase().replace(fr,`σ`)}var pr={ł:`l`,ø:`o`,đ:`d`,ð:`d`,þ:`th`,ħ:`h`,ŧ:`t`,ŋ:`n`,ß:`ss`,æ:`ae`,œ:`oe`,ı:`i`,Ł:`L`,Ø:`O`,Đ:`D`,Ð:`D`,Þ:`Th`,Ħ:`H`,Ŧ:`T`,Ŋ:`N`,ẞ:`Ss`,Æ:`Ae`,Œ:`Oe`},mr=RegExp(`[${Object.keys(pr).join(``)}]`,`g`);function hr(e){return e.normalize(`NFD`).replace(dr,``).replace(mr,e=>pr[e])}function gr(e,t,n){let r=``,i=[],a=0;for(let o of e){let e=t?w(o):o,s=n?hr(e):e;r+=s;for(let e=0;e<s.length;e++)i.push(a);a+=o.length}return i.push(e.length),{folded:r,map:i}}function _r(e,t,n){let r=[],i=e.indexOf(t);for(;i!==-1&&(r.push([i,i+t.length]),n);)i=e.indexOf(t,i+t.length);return r}function vr(e,t,n){let r=e[t],i=e[n];if(n>0&&e[n]===e[n-1]){let t=n,r=e[n];for(;t<e.length&&e[t]===r;)t++;i=e[t]}return[r,i]}function yr(e,t){let n=[];for(let[r,i]of e){let e=vr(t,r,i),a=n.at(-1);(!a||a[0]!==e[0]||a[1]!==e[1])&&n.push(e)}return n}function T(e,t,n,r,i,a){let o=r?hr(t):t,s=n?w(o):o;if(s.length===0)return[];if(!i){if(!n)return _r(e,s,a);let t=w(e);if(t.length===e.length)return _r(t,s,a)}let{folded:c,map:l}=gr(e,n,i);return yr(_r(c,s,a),l)}function br(e,t){let n=[...e,...t].toSorted((e,t)=>e[0]-t[0]||e[1]-t[1]),r=[];for(let e of n){let t=r.at(-1);t&&e[0]<t[1]||r.push(e)}return r}function xr(e,t,n={}){let{ignoreCase:r=!1,ignoreAccents:i=!1,matchAll:a=!1}=n,o=i===!0||i===`query`,s=i===!0||i===`target`;if(o===s)return T(e,t,r,o,s,a);let c=br(T(e,t,r,!1,!1,!0),T(e,t,r,o,s,!0));return a?c:c.slice(0,1)}var Sr=`currentInstance`;function Cr(){let e=Bn;return Sr in e?e[Sr]:me()}function wr(){return!Dr(Cr())}function E(e){return typeof e==`function`}function D(e){return typeof e==`string`}function O(e){return typeof e==`number`}function k(e){return typeof e==`boolean`}function A(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Tr(e){return Array.isArray(e)}function Er(e){return typeof Element<`u`&&e instanceof Element}function Dr(e){return e===null}function j(e){return e==null}function M(e){return e===void 0}function Or(e){return typeof e==`symbol`}var kr=new Set([`__proto__`,`constructor`,`prototype`]);function Ar(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function jr(e,...t){let n={};for(let t in e)Object.hasOwn(e,t)&&(n[t]=e[t]);for(let e of t)if(A(e))for(let t in e){if(kr.has(t)||!Object.hasOwn(e,t))continue;let r=e[t];if(M(r))continue;let i=n[t];n[t]=Ar(r)&&Ar(i)?jr(i,r):r}return n}var Mr=0;function Nr(){return wr()?we():`v0-${Mr++}`}function Pr(e,t=0,n=1){return Number.isFinite(e)?Math.max(t,Math.min(n,e)):t}function Fr(e,t=0){return Array.from({length:e},(e,n)=>t+n)}function Ir(e,t){let n=[];for(let r of e){let e=t(r);M(e)||n.push(e)}return n}var Lr=class extends Error{name=`V0Error`;code;key;plugin;palette;seed;variant;adapter;prefix;constructor(e,t){let{cause:n,...r}=t;super(e,M(n)?void 0:{cause:n}),this.code=t.code;for(let[e,t]of Object.entries(r))kr.has(e)||(this[e]=t)}},N=typeof window<`u`,Rr=N&&`IntersectionObserver`in window,zr=N&&(`ontouchstart`in window||window.navigator.maxTouchPoints>0);N&&`EyeDropper`in window;var Br=N&&`matchMedia`in window&&E(window.matchMedia),Vr=()=>Br&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Hr=N&&CSS?.supports?.(`-webkit-backdrop-filter`,`none`);function Ur(e,t,n){let r=t.length-1;if(r<0)return M(e)?n:e;for(let i=0;i<r;i++){if(j(e))return n;e=e[t[i]]}return j(e)||e[t[r]]===void 0?n:e[t[r]]}function Wr(e,t,n){return j(e)||!t||!D(t)?n:M(e[t])?(t=t.replace(/\[(\w+)\]/g,`.$1`),t=t.replace(/^\./,``),Ur(e,t.split(`.`),n)):e[t]}function Gr(e,t,n){if(t===!0)return M(e)?n:e;if(j(t)||k(t))return n;if(e!==Object(e)){if(!E(t))return n;let r=t(e,n);return r===void 0?n:r}if(D(t))return Wr(e,t,n);if(Array.isArray(t))return Ur(e,t,n);if(!E(t))return n;let r=t(e,n);return r===void 0?n:r}function Kr(e){return D(e)&&e.endsWith(`%`)}function qr(e,t=0){return Kr(e)?parseFloat(e)/100*t:parseFloat(String(e))||0}function Jr(e,t=`px`){if(j(e)||e===``)return;let n=Number(e);if(isNaN(n))return String(e);if(isFinite(n))return`${n}${t}`}function Yr(e){let t;return!!e&&typeof e==`object`&&((t=Object.getPrototypeOf(e))===Object.prototype||!t)}function Xr(e){if(e&&`$el`in e){let t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});var Zr=Object.freeze({enter:`Enter`,tab:`Tab`,delete:`Delete`,esc:`Escape`,space:`Space`,up:`ArrowUp`,down:`ArrowDown`,left:`ArrowLeft`,right:`ArrowRight`,end:`End`,home:`Home`,del:`Delete`,backspace:`Backspace`,insert:`Insert`,pageup:`PageUp`,pagedown:`PageDown`,shift:`Shift`});function Qr(e){return Object.keys(e)}function $r(e,t){return t.every(t=>e.hasOwnProperty(t))}function ei(e,t){let n={};for(let r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function ti(e,t,n){let r=Object.create(null),i=Object.create(null);for(let a in e)t.some(e=>e instanceof RegExp?e.test(a):e===a)&&!n?.some(e=>e===a)?r[a]=e[a]:i[a]=e[a];return[r,i]}function ni(e,t){let n={...e};return t.forEach(e=>delete n[e]),n}var ri=/^on[^a-z]/,ii=e=>ri.test(e),ai=`onAfterscriptexecute.onAnimationcancel.onAnimationend.onAnimationiteration.onAnimationstart.onAuxclick.onBeforeinput.onBeforescriptexecute.onChange.onClick.onCompositionend.onCompositionstart.onCompositionupdate.onContextmenu.onCopy.onCut.onDblclick.onFocusin.onFocusout.onFullscreenchange.onFullscreenerror.onGesturechange.onGestureend.onGesturestart.onGotpointercapture.onInput.onKeydown.onKeypress.onKeyup.onLostpointercapture.onMousedown.onMousemove.onMouseout.onMouseover.onMouseup.onMousewheel.onPaste.onPointercancel.onPointerdown.onPointerenter.onPointerleave.onPointermove.onPointerout.onPointerover.onPointerup.onReset.onSelect.onSubmit.onTouchcancel.onTouchend.onTouchmove.onTouchstart.onTransitioncancel.onTransitionend.onTransitionrun.onTransitionstart.onWheel`.split(`.`),oi=[`ArrowUp`,`ArrowDown`,`ArrowRight`,`ArrowLeft`,`Enter`,`Escape`,`Tab`,` `];function si(e){return e.isComposing&&oi.includes(e.key)}function ci(e){let[t,n]=ti(e,[ri]),r=ni(t,ai),[i,a]=ti(n,[`class`,`style`,`id`,`inert`,/^data-/]);return Object.assign(i,t),Object.assign(a,r),[i,a]}function li(e){return j(e)?[]:Array.isArray(e)?e:[e]}function ui(e,t){let n=0,r=(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),m(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function di(e,t=0,n=1){return Math.max(t,Math.min(n,e))}function fi(e,t,n=`0`){return e+n.repeat(Math.max(0,t-e.length))}function pi(e,t,n=`0`){return n.repeat(Math.max(0,t-e.length))+e}function mi(e,t=1){let n=[],r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function hi(e,t=1e3){if(e<t)return`${e} B`;let n=t===1024?[`Ki`,`Mi`,`Gi`]:[`k`,`M`,`G`],r=-1;for(;Math.abs(e)>=t&&r<n.length-1;)e/=t,++r;return`${e.toFixed(1)} ${n[r]}B`}function P(e={},t={},n,r){let i={};for(let t in e)i[t]=e[t];for(let a in t){let o=t[a];if(r&&!r(a,o))continue;let s=e[a];i[a]=Yr(s)&&Yr(o)?P(s,o,n,r):n&&Array.isArray(s)&&Array.isArray(o)?n(s,o):o}return i}function gi(e){return e.map(e=>e.type===v?gi(e.children):e).flat()}function F(e=``){if(F.cache.has(e))return F.cache.get(e);let t=e.replace(/[^a-z]/gi,`-`).replace(/\B([A-Z])/g,`-$1`).toLowerCase();return F.cache.set(e,t),t}F.cache=new Map;function I(e,t){if(!t||typeof t!=`object`)return[];if(Array.isArray(t))return t.map(t=>I(e,t)).flat(1);if(t.suspense)return I(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(t=>I(e,t)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return I(e,t.component.subTree).flat(1)}return[]}var _i=class{#e=[];#t=0;constructor(e){this.size=e}get isFull(){return this.#e.length===this.size}push(e){this.#e[this.#t]=e,this.#t=(this.#t+1)%this.size}values(){return this.#e.slice(this.#t).concat(this.#e.slice(0,this.#t))}clear(){this.#e.length=0,this.#t=0}};function vi(e){let t=g(e),n={};for(let e in t.value)n[e]=b(()=>t.value[e]);return n}function yi(e,t){return e.includes(t)}function bi(e){return e[2].toLowerCase()+e.slice(3)}var xi=()=>[Function,Array];function Si(e,t){return t=`on`+_e(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function Ci(e,...t){if(Array.isArray(e))for(let n of e)n(...t);else E(e)&&e(...t)}function wi(e,t=!0){let n=[`button`,`[href]`,`input:not([type="hidden"])`,`select`,`textarea`,`details:not(:has(> summary))`,`details > summary`,`[tabindex]`,`[contenteditable]:not([contenteditable="false"])`,`audio[controls]`,`video[controls]`].map(e=>`${e}${t?`:not([tabindex="-1"])`:``}:not([disabled], [inert])`).join(`, `),r;try{r=[...e.querySelectorAll(n)]}catch(e){return Hn(String(e)),[]}return r.filter(e=>!e.closest(`[inert]`)).filter(e=>!!e.offsetParent||e.getClientRects().length>0).filter(e=>!e.parentElement?.closest(`details:not([open])`)||e.tagName===`SUMMARY`&&e.parentElement?.tagName===`DETAILS`)}function L(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e}function Ti(e,t,n){let r,i=e.indexOf(L());if(i<0){let n=(t===`prev`?e.at(-1):e[0])?.getAttribute(`role`)??``;[`option`,`listbox`].includes(n)&&(i=e.findIndex(e=>e.getAttribute(`role`)===`option`&&e.getAttribute(`aria-selected`)===`true`))}let a=t===`next`?1:-1;do i+=a,r=e[i];while((!r||!r.offsetParent||!(n?.(r)??!0))&&i<e.length&&i>=0);return r}function Ei(e,t,n){let r=wi(e);if(j(t)){let t=L();(e===t||!e.contains(t))&&r[0]?.focus(n)}else if(t===`first`)r[0]?.focus(n);else if(t===`last`)r.at(-1)?.focus(n);else if(O(t))r[t]?.focus(n);else{let i=Ti(r,t);i?i.focus(n):Ei(e,t===`next`?`first`:`last`,n)}}function Di(e){return Dr(e)||M(e)||D(e)&&e.trim()===``}function Oi(){}function R(e,t){if(!(N&&typeof CSS<`u`&&CSS.supports!==void 0&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function ki(e){return!e.isTrusted||!!R(e.target,`:autofill`)||!!R(e.target,`:-webkit-autofill`)}function Ai(e){return e.some(e=>We(e)?e.type===Ut?!1:e.type!==v||Ai(e.children):!0)?e:null}function ji(e,t){if(!N||e===0)return t(),()=>{};let n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function Mi(){let e=x(),t=t=>{e.value=t};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Xr(e.value)}),t}function Ni(e){let t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Pi(e){return D(e)||O(e)||k(e)||typeof e==`bigint`}function z(e){return`\\^$*+?.()|{}[]`.includes(e)?`\\${e}`:e}function Fi(e){return e.replace(/−/g,`-`)}function Ii(e,t,n){let r=RegExp(`[\\d\\-${z(n)}]`),i=Fi(e).split(``).filter(e=>r.test(e)).filter((e,t,r)=>t===0&&/[-]/.test(e)||e===n&&t===r.indexOf(e)||/\d/.test(e)).join(``);if(t===0)return i.split(n)[0];let a=RegExp(`${z(n)}\\d`);if(O(t)&&a.test(i)){let e=i.split(n);return[e[0],e[1].substring(0,t)].join(n)}return i}function Li(e){let t={};for(let n in e)t[St(n)]=e[n];return t}function Ri(e){let t=[`checked`,`disabled`];return Object.fromEntries(Object.entries(e).filter(([e,n])=>t.includes(e)?!!n:!M(n)))}var B=class{constructor(e){if(Er(e)){let t=document.body.currentCSSZoom??1,n=1+(1-t)/t,{x:r,y:i,width:a,height:o}=e.getBoundingClientRect();this.x=r*n,this.y=i*n,this.width=a*n,this.height=o*n}else this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}};function zi(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function Bi(e){if(Array.isArray(e)){let t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new B({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}return new B(e)}function Vi(e){if(e===document.documentElement){if(visualViewport){let e=document.body.clientWidth,t=document.body.currentCSSZoom??(e?document.documentElement.clientWidth/e:1);return new B({x:visualViewport.scale>1||Hr?0:visualViewport.offsetLeft,y:visualViewport.scale>1||Hr?0:visualViewport.offsetTop,width:document.documentElement.clientWidth/t,height:document.documentElement.clientHeight/t})}return new B({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}return new B(e)}var V=2.4,Hi=.2126729,Ui=.7151522,Wi=.072175,Gi=.55,Ki=.58,qi=.57,Ji=.62,H=.03,Yi=1.45,Xi=5e-4,Zi=1.25,Qi=1.25,$i=.078,ea=12.82051282051282,U=.06,ta=.001;function na(e,t){let n=(e.r/255)**V,r=(e.g/255)**V,i=(e.b/255)**V,a=(t.r/255)**V,o=(t.g/255)**V,s=(t.b/255)**V,c=n*Hi+r*Ui+i*Wi,l=a*Hi+o*Ui+s*Wi;if(c<=H&&(c+=(H-c)**Yi),l<=H&&(l+=(H-l)**Yi),Math.abs(l-c)<Xi)return 0;let u;if(l>c){let e=(l**Gi-c**Ki)*Zi;u=e<ta?0:e<$i?e-e*ea*U:e-U}else{let e=(l**Ji-c**qi)*Qi;u=e>-.001?0:e>-.078?e-e*ea*U:e+U}return u*100}var W=.20689655172413793,ra=e=>e>W**3?Math.cbrt(e):e/(3*W**2)+4/29,ia=e=>e>W?e**3:3*W**2*(e-4/29);function aa(e){let t=ra,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function oa(e){let t=ia,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}var sa=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],ca=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,la=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],ua=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function da(e){let t=[,,,],n=ca,r=sa;for(let i=0;i<3;++i)t[i]=Math.round(di(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function fa({r:e,g:t,b:n}){let r=[0,0,0],i=ua,a=la;e=i(e/255),t=i(t/255),n=i(n/255);for(let i=0;i<3;++i)r[i]=a[i][0]*e+a[i][1]*t+a[i][2]*n;return r}function pa(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function ma(e){return pa(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}var ha=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,ga={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>_a({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>_a({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>K({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>K({h:e,s:t,v:n,a:r})};function G(e){if(O(e))return(isNaN(e)||e<0||e>16777215)&&S(`'${e}' is not a valid hex color`),{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(D(e)&&ha.test(e)){let{groups:t}=e.match(ha),{fn:n,values:r}=t,i=r.split(/,\s*|\s*\/\s*|\s+/).map((e,t)=>e.endsWith(`%`)||t>0&&t<3&&[`hsl`,`hsla`,`hsv`,`hsva`].includes(n)?parseFloat(e)/100:parseFloat(e));return ga[n](...i)}if(D(e)){let t=e.startsWith(`#`)?e.slice(1):e;[3,4].includes(t.length)?t=t.split(``).map(e=>e+e).join(``):[6,8].includes(t.length)||S(`'${e}' is not a valid hex(a) color`);let n=parseInt(t,16);return(isNaN(n)||n<0||n>4294967295)&&S(`'${e}' is not a valid hex(a) color`),ba(t)}if(A(e)){if($r(e,[`r`,`g`,`b`]))return e;if($r(e,[`h`,`s`,`l`]))return K(va(e));if($r(e,[`h`,`s`,`v`]))return K(e)}throw TypeError(`Invalid color: ${j(e)?e:String(e)||e.constructor.name}\nExpected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function K(e){let{h:t,s:n,v:r,a:i}=e,a=e=>{let i=(e+t/60)%6;return r-r*n*Math.max(Math.min(i,4-i,1),0)},o=[a(5),a(3),a(1)].map(e=>Math.round(e*255));return{r:o[0],g:o[1],b:o[2],a:i}}function _a(e){return K(va(e))}function va(e){let{h:t,s:n,l:r,a:i}=e,a=r+n*Math.min(r,1-r);return{h:t,s:a===0?0:2-2*r/a,v:a,a:i}}function q(e){let t=Math.round(e).toString(16);return(`00`.substr(0,2-t.length)+t).toUpperCase()}function ya({r:e,g:t,b:n,a:r}){return`#${[q(e),q(t),q(n),O(r)?q(Math.round(r*255)):``].join(``)}`}function ba(e){e=xa(e);let[t,n,r,i]=mi(e,2).map(e=>parseInt(e,16));return i=O(i)?i/255:i,{r:t,g:n,b:r,a:i}}function xa(e){return e.startsWith(`#`)&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,`F`),(e.length===3||e.length===4)&&(e=e.split(``).map(e=>e+e).join(``)),e.length!==6&&(e=fi(fi(e,6),8,`F`)),e}function Sa(e,t){let n=aa(fa(e));return n[0]+=t*10,da(oa(n))}function Ca(e,t){let n=aa(fa(e));return n[0]-=t*10,da(oa(n))}function wa(e){return fa(G(e))[1]}function Ta(e){let t=Math.abs(na(G(0),G(e)));return Math.abs(na(G(16777215),G(e)))>Math.min(t,50)}function J(e,t){return n=>Object.keys(e).reduce((r,i)=>{let a=A(e[i])?e[i]:{type:e[i]};return r[i]=n&&i in n?{...a,default:n[i]}:a,t&&!r[i].source&&(r[i].source=t),r},{})}var Ea=J({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},`component`);function Y(e,t){let n=me();if(!n)throw Error(`[Vuetify] ${e} ${t||`must be called from inside a setup function`}`);return n}function Da(e=`composables`){let t=Y(e).type;return F(t?.aliasName||t?.name)}function Oa(e,t=Y(`injectSelf`)){let{provides:n}=t;if(n&&e in n)return n[e]}var X=Symbol.for(`vuetify:defaults`),ka=Symbol.for(`vuetify:defaults:root`);function Aa(e){return y(e)}function Z(){let e=p(X);if(!e)throw Error(`[Vuetify] Could not find defaults instance`);return e}function ja(e,t){let n=Z(),r=p(ka,null),i=y(e),a=g(()=>{if(m(t?.disabled))return n.value;let e=m(t?.scoped),a=m(t?.reset),o=m(t?.root);if(!i.value&&!(e||a||o))return n.value;let s=P(i.value,{prev:n.value});if(e)return s;if(a||o){let e=Number(a||1/0),t=D(o)?s.prev?.[o]:void 0;o&&r?.value&&(s=r.value);for(let t=0;t<=e&&s&&`prev`in s;t++)s=s.prev;return s&&t&&(s=P(P(s,{prev:s}),t)),s}return s.prev?P(s.prev,s,void 0,(e,t)=>t!==void 0):s});return _(X,a),a}function Ma(e){let t=Y(`injectNestedDefaults`),n=Z(),r=t.props._as??t.type.name;return b(()=>n.value?.[r]?.[e])}function Na(e,t){return e.props&&(e.props[t]!==void 0||e.props[F(t)]!==void 0)}function Pa(e={},t,n=Z()){let r=Y(`useDefaults`);if(t=t??r.type.name??r.type.__name,!t)throw Error(`[Vuetify] Could not determine component name`);let i=g(()=>n.value?.[e._as??t]),a=new Proxy(e,{get(e,t){let a=Reflect.get(e,t);if(t===`class`||t===`style`)return[i.value?.[t],a].filter(e=>e!=null);if(Na(r.vnode,t))return a;let o=i.value?.[t];if(o!==void 0)return o;let s=n.value?.global?.[t];return s===void 0?a:s}}),o=x();Ie(()=>{if(i.value){let e=Object.entries(i.value).filter(([e])=>e.startsWith(e[0].toUpperCase()));o.value=e.length?Object.fromEntries(e):void 0}else o.value=void 0});function s(){let e=Oa(X,r);_(X,g(()=>o.value?P(e?.value??{},o.value):e?.value))}return{props:a,provideSubDefaults:s}}function Fa(e){if(e._setup=e._setup??e.setup,!e.name)return S(`The component is missing an explicit name, unable to generate default prop value`),e;if(e._setup){e.props=J(e.props??{},e.name)();let t=Object.keys(e.props).filter(e=>e!==`class`&&e!==`style`);e.filterProps=function(e){return ei(e,t)},e.props._as=String,e.setup=function(t,n){let r=Z();if(!r.value)return e._setup(t,n);let{props:i,provideSubDefaults:a}=Pa(t,t._as??e.name,r),o=e._setup(i,n);return a(),o}}return e}function Ia(e=!0){return t=>(e?Fa:wt)(t)}function La(e,t){return t.props=e,t}function Ra(e){let t=Y(`useRender`);t.render=e}var Q=Symbol.for(`vuetify:theme`),za=J({theme:String},`theme`);function Ba(){return{defaultTheme:`system`,prefix:`v-`,variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:`#FFFFFF`,surface:`#FFFFFF`,"surface-bright":`#FFFFFF`,"surface-light":`#EEEEEE`,"surface-variant":`#424242`,"on-surface-variant":`#EEEEEE`,primary:`#1867C0`,"primary-darken-1":`#1F5592`,secondary:`#48A9A6`,"secondary-darken-1":`#018786`,error:`#B00020`,info:`#2196F3`,success:`#4CAF50`,warning:`#FB8C00`},variables:{"border-color":`#000000`,"border-opacity":.12,"shadow-color":`#000000`,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":`#EEEEEE`,"theme-on-kbd":`#000000`,"theme-code":`#F5F5F5`,"theme-on-code":`#000000`,"theme-on-dark":`#FFF`,"theme-on-light":`#000`,"elevation-overlay-color":`black`,"elevation-overlay-opacity-step":`2%`,"highlight-opacity":`8%`}},dark:{dark:!0,colors:{background:`#121212`,surface:`#212121`,"surface-bright":`#ccbfd6`,"surface-light":`#424242`,"surface-variant":`#c8c8c8`,"on-surface-variant":`#000000`,primary:`#2196F3`,"primary-darken-1":`#277CC1`,secondary:`#54B6B2`,"secondary-darken-1":`#48A9A6`,error:`#CF6679`,info:`#2196F3`,success:`#4CAF50`,warning:`#FB8C00`},variables:{"border-color":`#FFFFFF`,"border-opacity":.12,"shadow-color":`#000000`,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":`#424242`,"theme-on-kbd":`#FFFFFF`,"theme-code":`#343434`,"theme-on-code":`#CCCCCC`,"theme-on-dark":`#FFF`,"theme-on-light":`#000`,"elevation-overlay-color":`white`,"elevation-overlay-opacity-step":`2%`,"highlight-opacity":`20%`}}},stylesheetId:`vuetify-theme-stylesheet`,scoped:!1,utilities:!0,transition:!1}}function Va(e=Ba()){let t=Ba();return e?P(t,e):{...t,isDisabled:!0}}function $(e,t,n,r){e.push(`${Ka(t,r)} {\n`,...n.map(e=>` ${e};\n`),`}
2
+ `)}function Ha(e,t){let n=e.dark?2:1,r=e.dark?1:2,i=[];for(let[a,o]of Object.entries(e.colors)){let e=G(o);i.push(`--${t}theme-${a}: ${e.r},${e.g},${e.b}`+(O(e.a)?`,${e.a}`:``)),a.startsWith(`on-`)||i.push(`--${t}theme-${a}-overlay-multiplier: ${wa(o)>.18?n:r}`)}for(let[n,r]of Object.entries(e.variables)){let e=D(r)&&r.startsWith(`#`)?G(r):void 0,a=e?`${e.r}, ${e.g}, ${e.b}`+(O(e.a)?`, ${e.a}`:``):void 0;i.push(`--${t}${n}: ${a??r}`)}return i}function Ua(e,t,n){let r={};if(n)for(let i of[`lighten`,`darken`]){let a=i===`lighten`?Sa:Ca;for(let o of Fr(n[i],1))r[`${e}-${i}-${o}`]=ya(a(G(t),o))}return r}function Wa(e,t){if(!t)return{};let n={};for(let r of t.colors){let i=e[r];i&&(n={...n,...Ua(r,i,t)})}return n}function Ga(e,t){let n={};for(let r of Object.keys(e)){if(r.startsWith(`on-`)||e[`on-${r}`])continue;let i=`on-${r}`;n[i]=Ta(G(e[r]))?t[`theme-on-dark`]:t[`theme-on-light`]}return n}function Ka(e,t){if(!t)return e;let n=`:where(${t})`;return e===`:root`?n:`${n} ${e}`}function qa(e,t,n){let r=Ja(e,t);r&&(r.innerHTML=n)}function Ja(e,t){if(!N)return null;let n=document.getElementById(e);return n||(n=document.createElement(`style`),n.id=e,n.type=`text/css`,t&&n.setAttribute(`nonce`,t),document.head.appendChild(n)),n}function Ya(e){let t=Va(e),n=x(t.defaultTheme),r=y(t.themes),i=x(`light`),a=g({get(){return n.value===`system`?i.value:n.value},set(e){n.value=e}}),o=g(()=>{let e={};for(let[n,i]of Object.entries(r.value)){let a=P(i.dark||n===`dark`?r.value.dark:r.value.light,i),o={...a.colors,...Wa(a.colors,t.variations)};e[n]={...a,colors:{...o,...Ga(o,a.variables)}}}return e}),s=b(()=>o.value[a.value]),c=b(()=>n.value===`system`),l=g(()=>{let e=[],n=t.scoped?t.prefix:``;e.push(`@layer theme-base {
3
+ `),$(e,`:root`,[`color-scheme: ${s.value?.dark?`dark`:`light`}`],t.scope),$(e,`:root`,Ha(s.value,t.prefix),t.scope);for(let[n,r]of Object.entries(o.value))$(e,`.${t.prefix}theme--${n}`,[`color-scheme: ${r.dark?`dark`:`light`}`,...Ha(r,t.prefix)],t.scope);if(e.push(`}
4
+ `),t.utilities){let r=[],i=[],a=new Set(Object.values(o.value).flatMap(e=>Object.keys(e.colors)));for(let e of a)e.startsWith(`on-`)?$(i,`.${e}`,[`color: rgb(var(--${t.prefix}theme-${e}))`],t.scope):($(r,`.${n}bg-${e}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${e}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${e}))`,`color: rgb(var(--${t.prefix}theme-on-${e}))`],t.scope),$(i,`.${n}text-${e}`,[`color: rgb(var(--${t.prefix}theme-${e}))`],t.scope),$(i,`.${n}border-${e}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${e})`],t.scope));e.push(`@layer theme-background {
5
+ `,...r.map(e=>` ${e}`),`}
6
+ `,`@layer theme-foreground {
7
+ `,...i.map(e=>` ${e}`),`}
8
+ `)}return`@layer vuetify-utilities {
9
+ `+e.map(e=>` ${e}`).join(``)+`
10
+ }`}),u=b(()=>t.isDisabled?void 0:`${t.prefix}theme--${a.value}`),ee=b(()=>Object.keys(o.value));if(Br){let e=window.matchMedia(`(prefers-color-scheme: dark)`);function t(){i.value=e.matches?`dark`:`light`}t(),e.addEventListener(`change`,t,{passive:!0}),Ze()&&zt(()=>{e.removeEventListener(`change`,t)})}function te(e){if(t.isDisabled)return;let n=e._context.provides.usehead;if(n){function e(){return{style:[{textContent:l.value,id:t.stylesheetId,nonce:t.cspNonce||!1,tagPosition:`bodyOpen`}]}}if(n.push){let t=n.push(e);N&&ce(l,()=>{t.patch(e)})}else N?(n.addHeadObjs(b(e)),Ie(()=>n.updateDOM())):n.addHeadObjs(e())}else{N?ce(l,e,{immediate:!0}):e();function e(){qa(t.stylesheetId,t.cspNonce,l.value)}}}let d;function f(e){if(!e){d=null;return}let t,n;if(Er(e)){let r=new B(e);t=r.left+r.width/2,n=r.top+r.height/2}else t=e.clientX,n=e.clientY;let r=Math.min(98.9,100*t/window.innerWidth),i=100*n/window.innerHeight;d=`${r.toFixed(2)}% ${i.toFixed(2)}%`}function ne(e){if(!(e??t.transition)&&!d)return!1;let n=A(t.transition)?t.transition:{},r=A(e)?e:{};return{origin:r.origin??d??n.origin,duration:r.duration??n.duration}}function re(e,t){if(!N||!document.startViewTransition||Vr())return e(),Promise.resolve();let n=t.origin??`50% 0%`,r=t.duration??`500ms`,i=document.createElement(`style`);i.textContent=`html:active-view-transition-type(vuetify-theme)::view-transition-old(root) { animation: none; }html:active-view-transition-type(vuetify-theme)::view-transition-new(root) { animation: v-circle-in ${r} ease-in-out; }@keyframes v-circle-in { from { clip-path: circle(0% at ${n}); } to { clip-path: circle(150% at ${n}); }}`,document.head.appendChild(i);let a=document.startViewTransition({update:()=>e(),types:[`vuetify-theme`]});return a.finished.then(()=>{d=null,i.remove()}),a.updateCallbackDone}function ie(e,t){if(e!==`system`&&!ee.value.includes(e))return S(`Theme "${e}" not found on the Vuetify theme instance`),Promise.resolve();let n=()=>{a.value=e},r=ne(t);return r?re(n,r):(n(),Promise.resolve())}function ae(e=ee.value,t){let n=e.indexOf(a.value);return ie(e[n===-1?0:(n+1)%e.length],t)}function oe(e=[`light`,`dark`],t){return ae(e,t)}let se=new Proxy(a,{get(e,t){return Reflect.get(e,t)},set(e,t,n){return t===`value`&&Un(`theme.global.name.value = ${n}`,`theme.change('${n}')`),Reflect.set(e,t,n)}});return{install:te,change:ie,cycle:ae,toggle:oe,setTransitionOrigin:f,isDisabled:t.isDisabled,isSystem:c,name:a,themes:r,current:s,computedThemes:o,prefix:t.prefix,themeClasses:u,styles:l,global:{name:se,current:s}}}function Xa(e){Y(`provideTheme`);let t=p(Q,null);if(!t)throw Error(`Could not find Vuetify theme injection`);let n=b(()=>e.theme??t.name.value),r=b(()=>t.computedThemes.value[n.value]),i=b(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),a={...t,name:n,current:r,themeClasses:i};return _(Q,a),a}function Za(){Y(`useTheme`);let e=p(Q,null);if(!e)throw Error(`Could not find Vuetify theme injection`);return e}var Qa=J({tag:{type:[String,Object,Function],default:`div`}},`tag`);function $a(e){return vi(()=>{let{class:t,style:n}=ro(e);return{colorClasses:t,colorStyles:n}})}function eo(e){let{colorClasses:t,colorStyles:n}=$a(()=>({text:f(e)}));return{textColorClasses:t,textColorStyles:n}}function to(e){let{colorClasses:t,colorStyles:n}=$a(()=>({background:f(e)}));return{backgroundColorClasses:t,backgroundColorStyles:n}}function no(e){return{text:D(e.text)?e.text.replace(/^text-/,``):e.text,background:D(e.background)?e.background.replace(/^bg-/,``):e.background}}function ro(e){let t=no(f(e)),n=[],r={};if(t.background){if(pa(t.background)){if(r.backgroundColor=t.background,!t.text&&ma(t.background)){let e=G(t.background);(!O(e.a)||e.a===1)&&n.push(Ta(e)?`v-theme-on-dark`:`v-theme-on-light`)}}else n.push(`bg-${t.background}`)}return t.text&&(pa(t.text)?(r.color=t.text,r.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:r}}export{ki as $,Li as A,ur as At,Ii as B,Or as Bt,B as C,Rr as Ct,_i as D,Lr as Dt,Bi as E,kr as Et,ji as F,Dr as Ft,wi as G,Nr as Gt,I as H,jr as Ht,vi as I,j as It,Wr as J,Un as Jt,L as K,Hn as Kt,Ai as L,O as Lt,di as M,Tr as Mt,Jr as N,k as Nt,xi as O,Pr as Ot,ui as P,E as Pt,yi as Q,z as R,A as Rt,J as S,Vr as St,zi as T,zr as Tt,gi as U,Fr as Ut,ci as V,M as Vt,Ei as W,Ir as Wt,Si as X,zn as Xt,Gr as Y,Bn as Yt,hi as Z,Ma as _,qr as _t,Q as a,Zr as at,Da as b,li as bt,Xa as c,P as ct,Fa as d,ni as dt,si as et,La as f,Ri as ft,Aa as g,Xr as gt,ka as h,ti as ht,Qa as i,Pi as it,Ni as j,Wn as jt,Ci as k,xr as kt,Za as l,Oi as lt,X as m,ei as mt,$a as n,ii as nt,Ya as o,Qr as ot,Ia as p,pi as pt,Ti as q,S as qt,eo as r,Kr as rt,za as s,R as st,to as t,Di as tt,Ra as u,Fi as ut,ja as v,Mi as vt,Vi as w,Br as wt,Ea as x,N as xt,Y as y,F as yt,bi as z,D as zt};
@@ -0,0 +1,65 @@
1
+ import{$ as e,D as t,E as n,Ft as r,Ht as i,On as a,Yt as o,Zn as s,_ as c,b as l,bt as u,et as d,g as f,it as p,k as m,mt as h,o as g,qt as _,tr as v,un as ee,v as y,vn as te,y as b}from"./DVRkMeDb.js";import{C as ne,S as re,w as ie}from"./Cx1ACnK3.js";import{t as ae}from"./BfJMvdNP.js";import{t as oe}from"./CvYs9vdO.js";import{t as se}from"./704AOQgv.js";import{t as ce}from"./CgjA3YY0.js";import{t as le}from"./Dd3TSBVv.js";import{E as x,H as S,I as ue,J as C,M as w,R as T,T as E,ct as D,j as O,k,m as A,n as de,o as fe,rt as j,t as pe,y as M}from"#entry";import{l as me,t as he}from"./Cy7gYmkN.js";import{n as ge,t as _e}from"./zi3w18zk.js";function N(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var P=N();function ve(e){P=e}var F={exec:()=>null};function I(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(L.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var ye=(()=>{try{return!0}catch{return!1}})(),L={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},be=/^(?:[ \t]*(?:\n|$))+/,xe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Se=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,R=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ce=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,we=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Te=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ee=I(Te).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),De=I(Te).replace(/bull/g,we).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Oe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ke=/^[^\n]+/,Ae=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,je=I(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Ae).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Me=I(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,we).getRegex(),z=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Ne=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Pe=I(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Ne).replace(`tag`,z).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fe=I(Oe).replace(`hr`,R).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,z).getRegex(),Ie={blockquote:I(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Fe).getRegex(),code:xe,def:je,fences:Se,heading:Ce,hr:R,html:Pe,lheading:Ee,list:Me,newline:be,paragraph:Fe,table:F,text:ke},Le=I(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,R).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,z).getRegex(),Re={...Ie,lheading:De,table:Le,paragraph:I(Oe).replace(`hr`,R).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Le).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,z).getRegex()},ze={...Ie,html:I(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Ne).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:F,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:I(Oe).replace(`hr`,R).replace(`heading`,` *#{1,6} *[^
2
+ ]`).replace(`lheading`,Ee).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},Be=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ve=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,He=/^( {2,}|\\)\n(?!\s*$)/,Ue=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,B=/[\p{P}\p{S}]/u,V=/[\s\p{P}\p{S}]/u,We=/[^\s\p{P}\p{S}]/u,Ge=I(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,V).getRegex(),Ke=/(?!~)[\p{P}\p{S}]/u,qe=/(?!~)[\s\p{P}\p{S}]/u,Je=/(?:[^\s\p{P}\p{S}]|~)/u,Ye=I(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,ye?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),Xe=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Ze=I(Xe,`u`).replace(/punct/g,B).getRegex(),Qe=I(Xe,`u`).replace(/punct/g,Ke).getRegex(),$e=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,et=I($e,`gu`).replace(/notPunctSpace/g,We).replace(/punctSpace/g,V).replace(/punct/g,B).getRegex(),tt=I($e,`gu`).replace(/notPunctSpace/g,Je).replace(/punctSpace/g,qe).replace(/punct/g,Ke).getRegex(),nt=I(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,We).replace(/punctSpace/g,V).replace(/punct/g,B).getRegex(),rt=I(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,B).getRegex(),it=I(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,We).replace(/punctSpace/g,V).replace(/punct/g,B).getRegex(),at=I(/\\(punct)/,`gu`).replace(/punct/g,B).getRegex(),ot=I(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),st=I(Ne).replace(`(?:-->|$)`,`-->`).getRegex(),ct=I(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,st).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),H=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,lt=I(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,H).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ut=I(/^!?\[(label)\]\[(ref)\]/).replace(`label`,H).replace(`ref`,Ae).getRegex(),dt=I(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Ae).getRegex(),ft=I(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,ut).replace(`nolink`,dt).getRegex(),pt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,mt={_backpedal:F,anyPunctuation:at,autolink:ot,blockSkip:Ye,br:He,code:Ve,del:F,delLDelim:F,delRDelim:F,emStrongLDelim:Ze,emStrongRDelimAst:et,emStrongRDelimUnd:nt,escape:Be,link:lt,nolink:dt,punctuation:Ge,reflink:ut,reflinkSearch:ft,tag:ct,text:Ue,url:F},ht={...mt,link:I(/^!?\[(label)\]\((.*?)\)/).replace(`label`,H).getRegex(),reflink:I(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,H).getRegex()},gt={...mt,emStrongRDelimAst:tt,emStrongLDelim:Qe,delLDelim:rt,delRDelim:it,url:I(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,pt).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:I(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,pt).getRegex()},_t={...gt,br:I(He).replace(`{2,}`,`*`).getRegex(),text:I(gt.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},U={normal:Ie,gfm:Re,pedantic:ze},W={normal:mt,gfm:gt,breaks:_t,pedantic:ht},vt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},yt=e=>vt[e];function G(e,t){if(t){if(L.escapeTest.test(e))return e.replace(L.escapeReplace,yt)}else if(L.escapeTestNoEncode.test(e))return e.replace(L.escapeReplaceNoEncode,yt);return e}function bt(e){try{e=encodeURI(e).replace(L.percentDecode,`%`)}catch{return null}return e}function xt(e,t){let n=e.replace(L.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(L.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(L.slashPipe,`|`);return n}function K(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function St(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Ct(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function wt(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Tt(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
3
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
4
+ `)}var q=class{options;rules;lexer;constructor(e){this.options=e||P}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:K(e,`
5
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Tt(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=K(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:K(t[0],`
6
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=K(t[0],`
7
+ `).split(`
8
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
9
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
11
+ ${s}`:s,r=r?`${r}
12
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
13
+ `+e.join(`
14
+ `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
15
+ `+e.join(`
16
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
17
+ `)}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=Ct(t[2].split(`
18
+ `,1)[0],t[1].length),l=e.split(`
19
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
20
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
21
+ `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
22
+ `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
23
+ `+l}u=!l.trim(),r+=p+`
24
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=xt(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
25
+ `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(xt(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
26
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=K(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=St(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),wt(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return wt(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},J=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||P,this.options.tokenizer=this.options.tokenizer||new q,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:L,block:U.normal,inline:W.normal};this.options.pedantic?(t.block=U.pedantic,t.inline=W.pedantic):this.options.gfm&&(t.block=U.gfm,t.inline=this.options.breaks?W.breaks:W.gfm),this.tokenizer.rules=t}static get rules(){return{block:U,inline:W}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(L.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(L.tabCharGlobal,` `).replace(L.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
28
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
29
+ `)?``:`
30
+ `)+r.raw,n.text+=`
31
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
32
+ `)?``:`
33
+ `)+r.raw,n.text+=`
34
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
35
+ `)?``:`
36
+ `)+r.raw,a.text+=`
37
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length)}else if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
38
+ `)?``:`
39
+ `)+r.raw,n.text+=`
40
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r)}else if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!==null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!==null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!==null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if((r=this.tokenizer.escape(e))||(r=this.tokenizer.tag(e))||(r=this.tokenizer.link(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if((r=this.tokenizer.emStrong(e,n,o))||(r=this.tokenizer.codespan(e))||(r=this.tokenizer.br(e))||(r=this.tokenizer.del(e,n,o))||(r=this.tokenizer.autolink(e))||!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r)}else if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},Y=class{options;parser;constructor(e){this.options=e||P}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(L.notSpaceStart)?.[0],i=e.replace(L.endingNewline,``)+`
41
+ `;return r?`<pre><code class="language-`+G(r)+`">`+(n?i:G(i,!0))+`</code></pre>
42
+ `:`<pre><code>`+(n?i:G(i,!0))+`</code></pre>
43
+ `}blockquote({tokens:e}){return`<blockquote>
44
+ ${this.parser.parse(e)}</blockquote>
45
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
46
+ `}hr(e){return`<hr>
47
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
48
+ `+r+`</`+i+`>
49
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
50
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
51
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
52
+ <thead>
53
+ `+t+`</thead>
54
+ `+r+`</table>
55
+ `}tablerow({text:e}){return`<tr>
56
+ ${e}</tr>
57
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
58
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${G(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=bt(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+G(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=bt(e);if(i===null)return G(n);e=i;let a=`<img src="${e}" alt="${G(n)}"`;return t&&(a+=` title="${G(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:G(e.text)}},Et=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},X=class e{options;renderer;textRenderer;constructor(e){this.options=e||P,this.options.renderer=this.options.renderer||new Y,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Et}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},Z=class{options;block;constructor(e){this.options=e||P}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?J.lex:J.lexInline}provideParser(e=this.block){return e?X.parse:X.parseInline}},Q=new class{defaults=N();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=X;Renderer=Y;TextRenderer=Et;Lexer=J;Tokenizer=q;Hooks=Z;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Y(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new q(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Z;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=Z.passThroughHooks.has(n)?e=>{if(this.defaults.async&&Z.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return J.lex(e,t??this.defaults)}parser(e,t){return X.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?J.lex:J.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?X.parse:X.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?J.lex:J.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?X.parse:X.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
59
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+G(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function $(e,t){return Q.parse(e,t)}$.options=$.setOptions=function(e){return Q.setOptions(e),$.defaults=Q.defaults,ve($.defaults),$},$.getDefaults=N,$.defaults=P,$.use=function(...e){return Q.use(...e),$.defaults=Q.defaults,ve($.defaults),$},$.walkTokens=function(e,t){return Q.walkTokens(e,t)},$.parseInline=Q.parseInline,$.Parser=X,$.parser=X.parse,$.Renderer=Y,$.TextRenderer=Et,$.Lexer=J,$.lexer=J.lex,$.Tokenizer=q,$.Hooks=Z,$.parse=$,$.options,$.setOptions,$.use,$.walkTokens,$.parseInline,X.parse,J.lex;var Dt=/\n[^\S\n]*(?:\n[^\S\n]*)+$/;function Ot(e){return e.flatMap((t,n)=>{if(t.type===`space`||e[n+1]?.type===`space`)return[t];let r=(t.raw||``).match(Dt);return r?[{...t,raw:(t.raw||``).slice(0,-r[0].length)},{type:`space`,raw:r[0]}]:[t]})}function kt(e,t){let n=t.split(`
60
+ `).flatMap(e=>[e,``]).map(t=>`${e}${t}`).join(`
61
+ `);return n.slice(0,n.length-1)}function At(e,t){let n=[];return Array.from(e.entries()).forEach(([e,r])=>{t&&(t.marks||[]).find(t=>t.type===e&&E(t.attrs,r.attrs))||n.push(e)}),n}function jt(e,t){let n=[];return Array.from(t.entries()).forEach(([t,r])=>{let i=e.get(t);(!i||!E(i.attrs,r.attrs))&&n.push({type:t,mark:r})}),n}function Mt(e,t,n,r){let i=!n,a=n&&(!n.marks||n.marks.length===0),o=n&&n.marks&&!r(t,new Map(n.marks.map(e=>[e.type,e]))),s=[];return(i||a||o)&&(n&&n.marks?Array.from(e.entries()).reverse().forEach(([e,t])=>{n.marks.find(n=>n.type===e&&E(n.attrs,t.attrs))||s.push(e)}):(i||a)&&s.push(...Array.from(e.keys()).reverse())),s}function Nt(e,t){let n=``;return Array.from(e.keys()).reverse().forEach(r=>{let i=t(r,e.get(r));i&&(n=i+n)}),e.clear(),n}function Pt(e,t,n){let r=``;return Array.from(e.entries()).forEach(([e,i])=>{let a=n(e,i);a&&(r+=a),t.set(e,i)}),r}function Ft(e){let t=(e.raw||e.text||``).match(/^(\s*)[-+*]\s+\[([ xX])\]\s+/);return t?{isTask:!0,checked:t[2].toLowerCase()===`x`,indentLevel:t[1].length}:{isTask:!1,indentLevel:0}}function It(e,t){return typeof e==`string`?t:`json`}function Lt(e){let t=e.map(()=>new Map),n=new Map,r=e=>{let r=n.get(e);r&&(r.indexes.forEach(n=>t[n].set(e,r.text)),n.delete(e))};return e.forEach((e,t)=>{if(e.type!==`text`){Array.from(n.keys()).forEach(r);return}let i=new Set((e.marks||[]).map(e=>e.type));Array.from(n.keys()).filter(e=>!i.has(e)).forEach(r),i.forEach(r=>{let i=n.get(r)||{indexes:[],text:``};i.indexes.push(t),i.text+=e.text||``,n.set(r,i)})}),Array.from(n.keys()).forEach(r),t}var Rt=new Set(`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.menu.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.search.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.circle.clippath.defs.ellipse.foreignobject.g.image.line.lineargradient.mask.path.polygon.polyline.radialgradient.rect.stop.switch.symbol.textpath.tspan.use.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`)),zt=/<\/?([a-zA-Z][\w-]*)/g;function Bt(e){let t=[],n;for(;(n=zt.exec(e))!==null;)t.push(n[1].toLowerCase());return t}function Vt(e){let t=e.toLowerCase();return!t.includes(`-`)&&!Rt.has(t)}function Ht(e,t){return Bt(e).some(e=>Vt(e)?!t.has(e):!1)}var Ut=class{constructor(e){var t,n;this.activeParseLexer=null,this.extensionRanks=new Map,this.baseExtensions=[],this.extensions=[],this.codeTypes=new Set,this.schemaParseDomTagsCache=null,this.inlineNodeTypesCache=null,this.lastParseResult=null,this.markedInstance=e?.marked??$,this.indentStyle=(e==null||(t=e.indentation)==null?void 0:t.style)??`space`,this.indentSize=(e==null||(n=e.indentation)==null?void 0:n.size)??2,this.baseExtensions=e?.extensions||[],e?.markedOptions&&typeof this.markedInstance.setOptions==`function`&&this.markedInstance.setOptions(e.markedOptions),this.registry=new Map,this.nodeTypeRegistry=new Map,e?.extensions&&(this.baseExtensions=e.extensions,D(ue(e.extensions)).forEach(e=>this.registerExtension(e)))}get instance(){return this.markedInstance}get indentCharacter(){return this.indentStyle===`space`?` `:` `}get indentString(){return this.indentCharacter.repeat(this.indentSize)}hasMarked(){return!!this.markedInstance}registerExtension(e){this.extensions.push(e);let t=x(S(e,`code`)),n=e.name,r={name:n,options:e.options,storage:e.storage};t&&this.codeTypes.add(n),this.extensionRanks.has(n)||this.extensionRanks.set(n,this.extensionRanks.size);let i=S(e,`markdownTokenName`,r)||n,a=S(e,`parseMarkdown`,r),o=S(e,`renderMarkdown`,r),s=S(e,`markdownTokenizer`,r),c=S(e,`markdownOptions`,r)??null,l={tokenName:i,nodeName:n,parseMarkdown:a,renderMarkdown:o,isIndenting:c?.indentsContent??!1,htmlReopen:c?.htmlReopen,tokenizer:s};if(i&&a){let e=this.registry.get(i)||[];e.push(l),this.registry.set(i,e)}if(o){let e=this.nodeTypeRegistry.get(n)||[];e.push(l),this.nodeTypeRegistry.set(n,e)}s&&this.hasMarked()&&this.registerTokenizer(s)}createLexer(){return new this.markedInstance.Lexer(this.markedInstance.defaults)}createTokenizerHelpers(e){return{inlineTokens:t=>e.inlineTokens(t),blockTokens:t=>e.blockTokens(t)}}tokenizeInline(e){return(this.activeParseLexer??this.createLexer()).inlineTokens(e)}registerTokenizer(e){if(!this.hasMarked())return;let{name:t,start:n,level:r=`inline`,tokenize:i}=e,a=this.createTokenizerHelpers.bind(this),o=this.createLexer.bind(this),s;s=n?typeof n==`function`?n:e=>e.indexOf(n):e=>{let t=i(e,[],this.createTokenizerHelpers(this.createLexer()));return t&&t.raw?e.indexOf(t.raw):-1};let c={name:t,level:r,start:s,tokenizer(e,n){let r=this.lexer?a(this.lexer):a(o()),s=i(e,n,r);if(s&&s.type)return{...s,type:s.type||t,raw:s.raw||``,tokens:s.tokens||[]}},childTokens:[]};this.markedInstance.use({extensions:[c]})}getHandlersForToken(e){try{return this.registry.get(e)||[]}catch{return[]}}getHandlerForToken(e){let t=this.getHandlersForToken(e);if(t.length>0)return t[0];let n=this.getHandlersForNodeType(e);return n.length>0?n[0]:void 0}getHandlersForNodeType(e){try{return this.nodeTypeRegistry.get(e)||[]}catch{return[]}}serialize(e){if(!e)return``;let t=this.renderNodes(e,e);return this.isEmptyOutput(t)?``:t}isEmptyOutput(e){return!e||e.trim()===``||e.replace(/&nbsp;/g,``).replace(/\u00A0/g,``).trim()===``}parse(e){if(!this.hasMarked())throw Error(`No marked instance available for parsing`);let t=this.activeParseLexer,n=this.createLexer();this.activeParseLexer=n;try{let t=n.lex(e);return{type:`doc`,content:this.parseTokens(t,!0)}}finally{this.activeParseLexer=t}}parseTokens(e,t=!1){let n=t?Ot(e):e,r=n.reduce((e,t,n)=>(t.type!==`space`&&e.push(n),e),[]),i=-1,a=0;return n.flatMap((e,n)=>{for(;a<r.length&&r[a]<n;)i=r[a],a+=1;if(t&&e.type===`space`){let t=r[a]??-1;return this.createImplicitEmptyParagraphsFromSpace(e,i,t)}let o=this.parseToken(e,t);return o===null?[]:Array.isArray(o)?o:[o]})}createImplicitEmptyParagraphsFromSpace(e,t,n){let r=this.countParagraphSeparators(e.raw||``);if(r===0)return[];let i=Math.max(r-(t===-1||n===-1?0:1),0);return Array.from({length:i},()=>({type:`paragraph`,content:[]}))}countParagraphSeparators(e){return(e.replace(/\r\n/g,`
62
+ `).match(/\n\n/g)||[]).length}parseToken(e,t=!1){if(!e.type)return null;if(e.type===`list`)return this.parseListToken(e);let n=this.getHandlersForToken(e.type),r=this.createParseHelpers();if(n.find(t=>{if(!t.parseMarkdown)return!1;let n=t.parseMarkdown(e,r),i=this.normalizeParseResult(n);return i&&(!Array.isArray(i)||i.length>0)?(this.lastParseResult=i,!0):!1})&&this.lastParseResult){let e=this.lastParseResult;return this.lastParseResult=null,e}return this.parseFallbackToken(e,t)}parseListToken(e){if(!e.items||e.items.length===0)return this.parseTokenWithHandlers(e);let t=e.items.some(e=>Ft(e).isTask),n=e.items.some(e=>!Ft(e).isTask);if(!t||!n||this.getHandlersForToken(`taskList`).length===0)return this.parseTokenWithHandlers(e);let r=[],i=[],a=null;for(let t=0;t<e.items.length;t+=1){let n=e.items[t],{isTask:o,checked:s,indentLevel:c}=Ft(n),l=n;if(o){let e=(n.raw||n.text||``).split(`
63
+ `),t=e[0].match(/^\s*[-+*]\s+\[([ xX])\]\s+(.*)$/),r=t?t[2]:``,i=[];if(e.length>1&&e.slice(1).join(`
64
+ `).trim()){let t=e.slice(1),n=t.filter(e=>e.trim());if(n.length>0){let e=Math.min(...n.map(e=>e.length-e.trimStart().length)),r=t.map(t=>t.trim()?t.slice(e):``).join(`
65
+ `).trim();r&&(i=this.markedInstance.lexer(`${r}\n`))}}l={type:`taskItem`,raw:``,mainContent:r,indentLevel:c,checked:s??!1,text:r,tokens:this.tokenizeInline(r),nestedTokens:i}}let u=o?`taskList`:`list`;a===u?i.push(l):(i.length>0&&r.push({type:a,items:i}),i=[l],a=u)}i.length>0&&r.push({type:a,items:i});let o=[];for(let t=0;t<r.length;t+=1){let n=r[t],i={...e,type:n.type,items:n.items},a=this.parseToken(i);a&&(Array.isArray(a)?o.push(...a):o.push(a))}return o.length>0?o:null}parseTokenWithHandlers(e){if(!e.type)return null;let t=this.getHandlersForToken(e.type),n=this.createParseHelpers();if(t.find(t=>{if(!t.parseMarkdown)return!1;let r=t.parseMarkdown(e,n),i=this.normalizeParseResult(r);return i&&(!Array.isArray(i)||i.length>0)?(this.lastParseResult=i,!0):!1})&&this.lastParseResult){let e=this.lastParseResult;return this.lastParseResult=null,e}return this.parseFallbackToken(e)}createParseHelpers(){return{parseInline:e=>this.parseInlineTokens(e),tokenizeInline:e=>this.tokenizeInline(e),parseChildren:e=>this.parseTokens(e),parseBlockChildren:e=>this.parseTokens(e,!0),createTextNode:(e,t)=>({type:`text`,text:e,marks:t||void 0}),createNode:(e,t,n)=>{let r={type:e,attrs:t||void 0,content:n||void 0};return(!t||Object.keys(t).length===0)&&delete r.attrs,r},applyMark:(e,t,n)=>({mark:e,content:t,attrs:n&&Object.keys(n).length>0?n:void 0})}}escapeRegex(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}parseInlineTokens(e){let t=[];for(let n=0;n<e.length;n+=1){let r=e[n];if(r.type===`text`)t.push({type:`text`,text:O(r.text||``)});else if(r.type===`escape`)t.push({type:`text`,text:r.text||``});else if(r.type===`html`){let i=(r.raw??r.text??``).toString(),a=/^<\/[\s]*[\w-]+/i.test(i),o=i.match(/^<[\s]*([\w-]+)(\s|>|\/|$)/i);if(!a&&o&&!/\/>$/.test(i)){let r=o[1],a=this.escapeRegex(r),s=RegExp(`^<\\/\\s*${a}\\b`,`i`),c=-1,l=[i];for(let t=n+1;t<e.length;t+=1){let n=e[t],r=(n.raw??n.text??``).toString();if(l.push(r),n.type===`html`&&s.test(r)){c=t;break}}if(c!==-1){let e=l.join(``),r={type:`html`,raw:e,text:e,block:!1},i=this.parseHTMLToken(r);if(i){let e=this.normalizeParseResult(i);Array.isArray(e)?t.push(...e):e&&t.push(e)}n=c;continue}}let s=this.parseHTMLToken(r);if(s){let e=this.normalizeParseResult(s);Array.isArray(e)?t.push(...e):e&&t.push(e)}}else if(r.type){let e=this.getHandlerForToken(r.type);if(e&&e.parseMarkdown){let n=this.createParseHelpers(),i=e.parseMarkdown(r,n);if(this.isMarkResult(i)){let e=this.applyMarkToContent(i.mark,i.content,i.attrs);t.push(...e)}else{let e=this.normalizeParseResult(i);Array.isArray(e)?t.push(...e):e&&t.push(e)}}else r.tokens&&t.push(...this.parseInlineTokens(r.tokens))}}for(let e=t.length-1;e>0;--e){let n=t[e],r=t[e-1];if(n.type===`text`&&r.type===`text`){let i=n.marks||[],a=r.marks||[];j(i,a)&&(r.text=(r.text||``)+(n.text||``),t.splice(e,1))}}return t}applyMarkToContent(e,t,n){return t.map(t=>{if(t.type===`text`){let r=t.marks||[],i=n?{type:e,attrs:n}:{type:e};return{...t,marks:[...r,i]}}return{...t,content:t.content?this.applyMarkToContent(e,t.content,n):void 0}})}isMarkResult(e){return e&&typeof e==`object`&&`mark`in e}normalizeParseResult(e){return e?this.isMarkResult(e)?e.content:e:null}parseFallbackToken(e,t=!1){switch(e.type){case`paragraph`:return{type:`paragraph`,content:e.tokens?this.parseInlineTokens(e.tokens):[]};case`heading`:return{type:`heading`,attrs:{level:e.depth||1},content:e.tokens?this.parseInlineTokens(e.tokens):[]};case`text`:return{type:`text`,text:O(e.text||``)};case`html`:return this.parseHTMLToken(e);case`escape`:return{type:`text`,text:e.text||``};case`space`:return null;default:return e.tokens?this.parseTokens(e.tokens,t):null}}parseHTMLToken(e){let t=e.text||e.raw||``;if(!t.trim())return null;if(this.isUnrecognizedHtml(t)||typeof window>`u`||window.DOMParser===void 0)return this.htmlAsLiteralText(t,!!e.block);try{let n=T(t,this.baseExtensions);if(n.type===`doc`&&n.content){if(e.block)return n.content;let t=this.toInlineContent(n.content);return t.length>0?t:null}return n}catch(e){throw Error(`Failed to parse HTML in markdown: ${e}`)}}toInlineContent(e){let t=this.getInlineNodeTypes();return e.flatMap(e=>e.type&&t.has(e.type)?[e]:e.content?this.toInlineContent(e.content):[])}getInlineNodeTypes(){if(this.inlineNodeTypesCache)return this.inlineNodeTypesCache;let e=new Set([`text`]);try{let t=C(this.baseExtensions);Object.values(t.nodes).forEach(t=>{t.isInline&&e.add(t.name)})}catch{}return this.inlineNodeTypesCache=e,e}isUnrecognizedHtml(e){return Ht(e,this.getSchemaParseDomTags())}getSchemaParseDomTags(){if(this.schemaParseDomTagsCache)return this.schemaParseDomTagsCache;let e=new Set;try{let t=C(this.baseExtensions),n=t=>{let n=t?.parseDOM;Array.isArray(n)&&n.forEach(t=>{if(typeof t?.tag==`string`){let n=t.tag.match(/^[a-zA-Z][\w-]*/);n&&e.add(n[0].toLowerCase())}})};Object.values(t.nodes).forEach(e=>n(e.spec)),Object.values(t.marks).forEach(e=>n(e.spec))}catch{}return this.schemaParseDomTagsCache=e,e}htmlAsLiteralText(e,t){let n=e.replace(/\s+$/,``);return n?t?{type:`paragraph`,content:[{type:`text`,text:n}]}:{type:`text`,text:n}:null}encodeTextForMarkdown(e,t,n){return n?.type!=null&&this.codeTypes.has(n.type)||(t.marks||[]).some(e=>this.codeTypes.has(typeof e==`string`?e:e.type))?e:this.escapeMarkdownSyntax(w(e))}escapeMarkdownSyntax(e){return e.replace(/([\\`*_[\]~])/g,`\\$1`)}renderNodeToMarkdown(e,t,n=0,r=0,i={}){if(e.type===`text`)return this.encodeTextForMarkdown(e.text||``,e,t);if(!e.type)return``;let a=this.getHandlerForToken(e.type);if(!a)return``;let o=Array.isArray(t?.content)&&n>0?t.content[n-1]:void 0,s={renderChildren:(t,i)=>{let o=a.isIndenting?r+1:r;return!Array.isArray(t)&&t.content?this.renderNodes(t.content,e,i||``,n,o):this.renderNodes(t,e,i||``,n,o)},renderChild:(t,n)=>{let i=a.isIndenting?r+1:r;return this.renderNodeToMarkdown(t,e,n,i)},indent:e=>this.indentString+e,wrapInBlock:kt},c={index:n,level:r,parentType:t?.type,previousNode:o,meta:{parentAttrs:t?.attrs,...i}};return a.renderMarkdown?.call(a,e,s,c)||``}renderNodes(e,t,n=``,r=0,i=0){return Array.isArray(e)?this.renderNodesWithMarkBoundaries(e,t,n,i):e.type?this.renderNodeToMarkdown(e,t,r,i):``}renderNodesWithMarkBoundaries(e,t,n=``,r=0){let i=[],a=new Map,o=new Set,s=new Map,c=Lt(e);if(e.forEach((n,l)=>{let u=l<e.length-1?e[l+1]:null;if(n.type){if(n.type===`text`){let e=this.encodeTextForMarkdown(n.text||``,n,t),r=new Map((n.marks||[]).map(e=>[e.type,e])),d=this.getMarksToOpenForSerialization(a,r,u),f=At(r,u);if(e.length>0&&e.trim().length===0&&r.size>0){let e=new Set(f.filter(e=>!a.has(e)));e.size>0&&(r=new Map(Array.from(r).filter(([t])=>!e.has(t))),d=this.getMarksToOpenForSerialization(a,r,u),f=At(r,u))}let p=f.filter(e=>a.has(e)),m=p.length>0&&d.length>0,h=``;if(f.length>0&&!m){let t=e.match(/(\s+)$/);t&&(h=t[1],e=e.slice(0,-h.length))}m||f.slice().reverse().forEach(t=>{if(!a.has(t))return;let n=r.get(t),i=this.getMarkClosing(t,n,s.get(t),c[l]?.get(t));i&&(e+=i),a.has(t)&&(a.delete(t),s.delete(t))});let g=``;if(d.length>0){let t=e.match(/^(\s+)/);t&&(g=t[1],e=e.slice(g.length))}d.forEach(({type:t,mark:n})=>{let r=o.has(t)?`html`:`markdown`,i=this.getMarkOpening(t,n,r,c[l]?.get(t));i&&(e=i+e),s.set(t,r),o.delete(t)}),m||d.slice().reverse().forEach(({type:e,mark:t})=>{a.set(e,t)}),e=g+e;let _;if(m){let e=new Set((u?.marks||[]).map(e=>e.type));d.forEach(({type:t})=>{e.has(t)&&this.getHtmlReopenTags(t)&&o.add(t)});let t=Array.from(a.keys()),n=p.slice().sort((e,n)=>t.indexOf(n)-t.indexOf(e));_=[...d.map(e=>e.type),...n]}else _=Mt(a,r,u,this.markSetsEqual.bind(this));let v=``;if(_.length>0){let t=e.match(/(\s+)$/);t&&(v=t[1],e=e.slice(0,-v.length))}_.forEach(t=>{let n=a.get(t)??r.get(t),i=this.getMarkClosing(t,n,s.get(t),c[l]?.get(t));i&&(e+=i),a.delete(t),s.delete(t)}),e+=v,e+=h,i.push(e)}else{let e=new Set((n.marks||[]).map(e=>e.type)),o=new Map,u=new Map;a.forEach((t,n)=>{e.has(n)&&(o.set(n,t),u.set(n,s.get(n)??`markdown`))});let d=Nt(a,(e,t)=>this.getMarkClosing(e,t,s.get(e),c[l-1]?.get(e)));s.clear();let f=this.renderNodeToMarkdown(n,t,l,r),p=n.type===`hardBreak`?``:Pt(o,a,(e,t)=>{let n=u.get(e)??`markdown`;return s.set(e,n),this.getMarkOpening(e,t,n,c[l+1]?.get(e))});i.push(d+f+p)}}}),n===``){let e=-1;i.forEach((t,n)=>{if(t){if(e>=0&&t.startsWith(`[`)){let t=/(\\*)!$/.exec(i[e]);t&&t[1].length%2==0&&(i[e]=`${i[e].slice(0,-1)}\\!`)}e=n}})}return i.join(n)}getMarkOpening(e,t,n=`markdown`,r){if(n===`html`)return this.getHtmlReopenTags(e)?.open||``;let i=this.getHandlersForNodeType(e),a=i.length>0?i[0]:void 0;if(!a||!a.renderMarkdown)return``;let o=`__TIPTAP_MARKDOWN_PLACEHOLDER__`,s={type:e,attrs:t.attrs||{},content:[{type:`text`,text:o}]};try{let e=a.renderMarkdown(s,{renderChildren:()=>o,renderChild:()=>o,indent:e=>e,wrapInBlock:(e,t)=>e+t},{index:0,level:0,parentType:`text`,meta:{markText:r}}),t=e.indexOf(o);return t>=0?e.substring(0,t):``}catch(t){throw Error(`Failed to get mark opening for ${e}: ${t}`)}}getMarkClosing(e,t,n=`markdown`,r){if(n===`html`)return this.getHtmlReopenTags(e)?.close||``;let i=this.getHandlersForNodeType(e),a=i.length>0?i[0]:void 0;if(!a||!a.renderMarkdown)return``;let o=`__TIPTAP_MARKDOWN_PLACEHOLDER__`,s={type:e,attrs:t.attrs||{},content:[{type:`text`,text:o}]};try{let e=a.renderMarkdown(s,{renderChildren:()=>o,renderChild:()=>o,indent:e=>e,wrapInBlock:(e,t)=>e+t},{index:0,level:0,parentType:`text`,meta:{markText:r}}),t=e.indexOf(o),n=t+33;return t>=0?e.substring(n):``}catch(t){throw Error(`Failed to get mark closing for ${e}: ${t}`)}}getHtmlReopenTags(e){let t=this.getHandlersForNodeType(e);return(t.length>0?t[0]:void 0)?.htmlReopen}markSetsEqual(e,t){return e.size===t.size&&Array.from(e.entries()).every(([e,n])=>{let r=t.get(e);return r&&E(n.attrs,r.attrs)})}getMarksToOpenForSerialization(e,t,n){let r=jt(e,t);if(r.length<=1)return r;let i=n?.marks||[],a=(e,t)=>i.some(n=>n.type===e&&E(n.attrs,t)),o=(e,t)=>{let n=this.extensionRanks.get(e.type)??2**53-1,r=this.extensionRanks.get(t.type)??2**53-1;return n===r?e.type.localeCompare(t.type):r-n},s=r.filter(e=>!a(e.type,e.mark.attrs)).sort(o),c=r.filter(e=>a(e.type,e.mark.attrs)).sort(o);return[...s,...c]}},Wt=M.create({name:`markdown`,addOptions(){return{indentation:{style:`space`,size:2},marked:void 0,markedOptions:{}}},addCommands(){return{setContent:(e,t)=>{if(!t?.contentType||It(e,t?.contentType)!==`markdown`||!this.editor.markdown)return k.setContent(e,t);let n=this.editor.markdown.parse(e);return k.setContent(n,t)},insertContent:(e,t)=>{if(!t?.contentType||It(e,t?.contentType)!==`markdown`||!this.editor.markdown)return k.insertContent(e,t);let n=this.editor.markdown.parse(e);return k.insertContent(n,t)},insertContentAt:(e,t,n)=>{if(!n?.contentType||It(t,n?.contentType)!==`markdown`||!this.editor.markdown)return k.insertContentAt(e,t,n);let r=this.editor.markdown.parse(t);return k.insertContentAt(e,r,n)}}},addStorage(){return{manager:new Ut({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:[]})}},onBeforeCreate(){if(this.editor.markdown){console.error("[tiptap][markdown]: There is already a `markdown` property on the editor instance. This might lead to unexpected behavior.");return}if(this.storage.manager=new Ut({indentation:this.options.indentation,marked:this.options.marked,markedOptions:this.options.markedOptions,extensions:this.editor.extensionManager.baseExtensions}),this.editor.markdown=this.storage.manager,this.editor.getMarkdown=()=>this.storage.manager.serialize(this.editor.getJSON()),!this.editor.options.contentType||It(this.editor.options.content,this.editor.options.contentType)!==`markdown`)return;if(!this.editor.markdown)throw Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the Markdown extension is not added to the editor. Please add the Markdown extension to use this feature.');if(this.editor.options.content===void 0||typeof this.editor.options.content!=`string`)throw Error('[tiptap][markdown]: The `contentType` option is set to "markdown", but the initial content is not a string. Please provide the initial content as a markdown string.');let e=this.editor.markdown.parse(this.editor.options.content);e.content?.length&&(this.editor.options.content=e)}}),Gt={class:`text-caption text-medium-emphasis px-3 pt-2`},Kt=[`aria-label`],qt={class:`d-flex justify-end ga-2`},Jt=Object.assign(m({__name:`Markdown`,props:e({field:{},rules:{},errorMessages:{},record:{},resource:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let m=e,x=r(e,`modelValue`),{t:S}=pe(),ue=f(()=>m.field.markdown?.toolbar??[`bold`,`italic`,`strike`,`code`,`heading`,`list`,`blockquote`,`codeBlock`,`horizontalRule`,`link`]),C=e=>ue.value.includes(e),w=te(!1),T=!1,E=ge({extensions:[me.configure({link:{openOnClick:!1,autolink:!0,protocols:[],isAllowedUri:e=>he(e)},heading:{levels:[1,2,3,4]}}),Wt],injectNonce:window.__VECTOR__?.cspNonce??void 0,editorProps:{attributes:{class:`vx-richtext-content`,"aria-label":m.field.label,role:`textbox`,"aria-multiline":`true`}},onCreate:({editor:e})=>{e.commands.setContent(x.value??``,{contentType:`markdown`,emitUpdate:!1})},onUpdate:({editor:e})=>{let t=e.getMarkdown().trim();T=!0,x.value=t===``?null:t}});i(x,e=>{T?T=!1:w.value||E.value?.commands.setContent(e??``,{contentType:`markdown`,emitUpdate:!1})}),i(w,e=>{e||E.value?.commands.setContent(x.value??``,{contentType:`markdown`,emitUpdate:!1})}),p(()=>E.value?.destroy());let D=(e,t)=>E.value?.isActive(e,t)??!1,O=e=>{E.value&&e(E.value)},k=te(!1),j=te(``),M=f(()=>j.value.trim()!==``&&!he(j.value.trim())?S(`fields.richtext.linkRefused`):null);function N(){j.value=String(E.value?.getAttributes(`link`).href??``),k.value=!0}function P(){let e=j.value.trim();M.value||(O(t=>e===``?t.chain().focus().unsetLink().run():t.chain().focus().extendMarkRange(`link`).setLink({href:e}).run()),k.value=!1)}return(r,i)=>(h(),y(oe,{"model-value":x.value,rules:e.rules,"error-messages":e.errorMessages,hint:e.field.help??void 0,"persistent-hint":!!e.field.help,class:`vx-richtext`},{default:_(()=>[c(`div`,{class:s([`vx-richtext-frame`,{"vx-richtext-frame--error":e.errorMessages.length>0}])},[c(`div`,Gt,v(e.field.label),1),c(`div`,{class:`vx-richtext-toolbar d-flex flex-wrap align-center ga-1 px-2 py-1`,role:`toolbar`,"aria-label":a(S)(`fields.richtext.toolbar`,{label:e.field.label})},[a(w)?b(``,!0):(h(),l(g,{key:0},[C(`bold`)?(h(),y(A,{key:0,icon:`mdi-format-bold`,size:`small`,variant:`text`,active:D(`bold`),"aria-label":a(S)(`fields.richtext.bold`),onClick:i[0]||=e=>O(e=>e.chain().focus().toggleBold().run())},null,8,[`active`,`aria-label`])):b(``,!0),C(`italic`)?(h(),y(A,{key:1,icon:`mdi-format-italic`,size:`small`,variant:`text`,active:D(`italic`),"aria-label":a(S)(`fields.richtext.italic`),onClick:i[1]||=e=>O(e=>e.chain().focus().toggleItalic().run())},null,8,[`active`,`aria-label`])):b(``,!0),C(`strike`)?(h(),y(A,{key:2,icon:`mdi-format-strikethrough`,size:`small`,variant:`text`,active:D(`strike`),"aria-label":a(S)(`fields.richtext.strike`),onClick:i[2]||=e=>O(e=>e.chain().focus().toggleStrike().run())},null,8,[`active`,`aria-label`])):b(``,!0),C(`code`)?(h(),y(A,{key:3,icon:`mdi-code-tags`,size:`small`,variant:`text`,active:D(`code`),"aria-label":a(S)(`fields.richtext.code`),onClick:i[3]||=e=>O(e=>e.chain().focus().toggleCode().run())},null,8,[`active`,`aria-label`])):b(``,!0),C(`heading`)?(h(),l(g,{key:4},[t(se,{vertical:``,class:`mx-1`}),(h(),l(g,null,u([1,2,3],e=>t(A,{key:e,icon:`mdi-format-header-${e}`,size:`small`,variant:`text`,active:D(`heading`,{level:e}),"aria-label":a(S)(`fields.richtext.heading`,{level:e}),onClick:t=>O(t=>t.chain().focus().toggleHeading({level:e}).run())},null,8,[`icon`,`active`,`aria-label`,`onClick`])),64))],64)):b(``,!0),C(`list`)?(h(),l(g,{key:5},[t(se,{vertical:``,class:`mx-1`}),t(A,{icon:`mdi-format-list-bulleted`,size:`small`,variant:`text`,active:D(`bulletList`),"aria-label":a(S)(`fields.richtext.bulletList`),onClick:i[4]||=e=>O(e=>e.chain().focus().toggleBulletList().run())},null,8,[`active`,`aria-label`]),t(A,{icon:`mdi-format-list-numbered`,size:`small`,variant:`text`,active:D(`orderedList`),"aria-label":a(S)(`fields.richtext.orderedList`),onClick:i[5]||=e=>O(e=>e.chain().focus().toggleOrderedList().run())},null,8,[`active`,`aria-label`])],64)):b(``,!0),C(`blockquote`)?(h(),y(A,{key:6,icon:`mdi-format-quote-close`,size:`small`,variant:`text`,active:D(`blockquote`),"aria-label":a(S)(`fields.richtext.blockquote`),onClick:i[6]||=e=>O(e=>e.chain().focus().toggleBlockquote().run())},null,8,[`active`,`aria-label`])):b(``,!0),C(`codeBlock`)?(h(),y(A,{key:7,icon:`mdi-code-braces`,size:`small`,variant:`text`,active:D(`codeBlock`),"aria-label":a(S)(`fields.richtext.codeBlock`),onClick:i[7]||=e=>O(e=>e.chain().focus().toggleCodeBlock().run())},null,8,[`active`,`aria-label`])):b(``,!0),C(`horizontalRule`)?(h(),y(A,{key:8,icon:`mdi-minus`,size:`small`,variant:`text`,"aria-label":a(S)(`fields.richtext.horizontalRule`),onClick:i[8]||=e=>O(e=>e.chain().focus().setHorizontalRule().run())},null,8,[`aria-label`])):b(``,!0),C(`link`)?(h(),y(ae,{key:9,modelValue:a(k),"onUpdate:modelValue":i[11]||=e=>ee(k)?k.value=e:null,"close-on-content-click":!1,location:`bottom`},{activator:_(({props:e})=>[t(A,d(e,{icon:`mdi-link-variant`,size:`small`,variant:`text`,active:D(`link`),"aria-label":a(S)(`fields.richtext.link`),onClick:N}),null,16,[`active`,`aria-label`])]),default:_(()=>[t(fe,{"min-width":`320`,class:`pa-3`},{default:_(()=>[t(ce,{modelValue:a(j),"onUpdate:modelValue":i[9]||=e=>ee(j)?j.value=e:null,label:a(S)(`fields.richtext.linkUrl`),"error-messages":a(M)?[a(M)]:[],autofocus:``,onKeydown:ne(ie(P,[`prevent`]),[`enter`])},null,8,[`modelValue`,`label`,`error-messages`,`onKeydown`]),c(`div`,qt,[t(A,{variant:`text`,onClick:i[10]||=e=>{j.value=``,P()}},{default:_(()=>[n(v(a(S)(`common.remove`)),1)]),_:1}),t(A,{color:`primary`,disabled:!!a(M),onClick:P},{default:_(()=>[n(v(a(S)(`common.apply`)),1)]),_:1},8,[`disabled`])])]),_:1})]),_:1},8,[`modelValue`])):b(``,!0)],64)),t(le),t(A,{size:`small`,variant:`text`,"prepend-icon":a(w)?`mdi-eye-outline`:`mdi-language-markdown-outline`,"aria-pressed":a(w),onClick:i[12]||=e=>w.value=!a(w)},{default:_(()=>[n(v(a(w)?a(S)(`fields.richtext.visual`):a(S)(`fields.richtext.source`)),1)]),_:1},8,[`prepend-icon`,`aria-pressed`])],8,Kt),t(se),a(w)?(h(),y(de,{key:0,modelValue:x.value,"onUpdate:modelValue":i[13]||=e=>x.value=e,"aria-label":a(S)(`fields.richtext.sourceOf`,{label:e.field.label}),variant:`plain`,"auto-grow":``,rows:`6`,"hide-details":``,class:`px-3 font-monospace`},null,8,[`modelValue`,`aria-label`])):b(``,!0),o(t(a(_e),{editor:a(E),class:`vx-richtext-editor`},null,8,[`editor`]),[[re,!a(w)]])],2)]),_:1},8,[`model-value`,`rules`,`error-messages`,`hint`,`persistent-hint`]))}}),{__name:`VxInputMarkdown`});export{Jt as default};
@@ -0,0 +1 @@
1
+ import{On as e,b as t,g as n,k as r,mt as i,tr as a}from"./DVRkMeDb.js";import{t as o}from"#entry";import{i as s,r as c}from"./Cy7gYmkN.js";var l={key:0,class:`text-disabled`},u=[`innerHTML`],d={key:2,class:`text-truncate d-inline-block`,style:{"max-width":`24rem`}},f=Object.assign(r({__name:`Markdown`,props:{value:{},context:{}},setup(r){let f=r,p=n(()=>typeof f.value==`string`?f.value:``),m=n(()=>f.context===`show`&&p.value!==``?c(p.value):``),h=n(()=>f.context===`index`&&p.value!==``?s(p.value):``),{t:g}=o();return(n,o)=>e(p)===``?(i(),t(`span`,l,a(e(g)(`common.none`)),1)):r.context===`show`?(i(),t(`div`,{key:1,class:`vx-richtext-view text-body-1`,innerHTML:e(m)},null,8,u)):(i(),t(`span`,d,a(e(h)),1))}}),{__name:`VxCellMarkdown`});export{f as default};
@@ -0,0 +1 @@
1
+ import{p as e,x as t}from"./Bj2vN0T9.js";import{B as n,Mn as r,jn as i}from"./DVRkMeDb.js";function a(a,o=`div`,s){return e()({name:s??r(i(a.replace(/__/g,`-`))),props:{tag:{type:String,default:o},...t()},setup(e,{slots:t}){return()=>n(e.tag,{class:[a,e.class],style:e.style},t.default?.())}})}export{a as t};
@@ -0,0 +1 @@
1
+ import{On as e,b as t,k as n,mt as r,tr as i,v as a}from"./DVRkMeDb.js";import{t as o}from"./BGE18wmh.js";import{t as s}from"#entry";var c={key:2,class:`text-disabled`},l=Object.assign(n({__name:`Boolean`,props:{value:{}},setup(n){let{t:l}=s();return(s,u)=>n.value===!0?(r(),a(o,{key:0,icon:`mdi-check-circle`,color:`success`,size:`small`})):n.value===!1?(r(),a(o,{key:1,icon:`mdi-close-circle-outline`,color:`grey`,size:`small`})):(r(),t(`span`,c,i(e(l)(`common.none`)),1))}}),{__name:`VxCellBoolean`});export{l as default};
@@ -0,0 +1 @@
1
+ import{S as e,b as t}from"./Bj2vN0T9.js";import{wn as n}from"./DVRkMeDb.js";var r=[`static`,`relative`,`fixed`,`absolute`,`sticky`],i=e({position:{type:String,validator:e=>r.includes(e)}},`position`);function a(e,r=t()){return{positionClasses:n(()=>e.position?`${r}--${e.position}`:void 0)}}export{a as n,i as t};
@@ -0,0 +1 @@
1
+ import{_n as e,ct as t,wn as n,xn as r}from"./DVRkMeDb.js";function i(){let i=r(!1);return t(()=>{window.requestAnimationFrame(()=>{i.value=!0})}),{ssrBootStyles:n(()=>i.value?void 0:{transition:`none !important`}),isBooted:e(i)}}export{i as t};
@@ -0,0 +1 @@
1
+ import{C as e,vt as t,xt as n}from"./Bj2vN0T9.js";import{Ht as r,_n as i,it as a,vn as o}from"./DVRkMeDb.js";function s(s,c=`content`){let l=t(),u=o();if(n){let t=new ResizeObserver(n=>{if(s?.(n,t),n.length){if(c===`content`)u.value=n[0].contentRect;else{let t=n[0].borderBoxSize?.[0],r=n[0].target;u.value=new e({x:0,y:0,width:t?.inlineSize??r.offsetWidth,height:t?.blockSize??r.offsetHeight})}}});a(()=>{t.disconnect()}),r(()=>l.el,(e,n)=>{n&&(t.unobserve(n),u.value=void 0),e&&t.observe(e)},{flush:`post`})}return{resizeRef:l,contentRect:i(u)}}export{s as t};
@@ -0,0 +1 @@
1
+ import{O as e,S as t,c as n,i as r,p as i,s as a,u as o,v as s,x as c}from"./Bj2vN0T9.js";import{D as l,Ht as u,Yt as d,_ as f,et as p,g as m,o as h,tr as g,wn as _}from"./DVRkMeDb.js";import{S as v}from"./Cx1ACnK3.js";import{a as y,s as b}from"./CEwqGRFH.js";import{n as x,t as S}from"./B2iJ1o_3.js";import{a as C,n as w,r as T,t as E}from"./BGE18wmh.js";import{n as D}from"./CUiMQC3Z.js";import{n as O,r as k,t as A}from"./BaOEsdpg.js";import{n as j,t as M}from"./CX8RCGtF.js";import{a as N,i as P,n as F,r as I,t as L}from"./CIM0ajR7.js";import{a as R,c as z,l as B,o as V,r as H,s as U,t as W,u as G}from"./CvbtZrze.js";import{t as K}from"./C0qu28Eu.js";import{n as q,r as J,t as Y}from"./DJBZZkxI.js";var X=Symbol.for(`vuetify:v-chip-group`),Z=t({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:x},...J({scrollToActive:!1}),...c(),...V({selectedClass:`v-chip--selected`}),...r(),...a(),...F({variant:`tonal`})},`VChipGroup`);i()({name:`VChipGroup`,props:Z(),emits:{"update:modelValue":e=>!0},setup(e,{slots:t}){let{themeClasses:r}=n(e),{isSelected:i,select:a,next:c,prev:u,selected:d}=U(e,X);return s({VChip:{baseColor:_(()=>e.baseColor),color:_(()=>e.color),disabled:_(()=>e.disabled),filter:_(()=>e.filter),variant:_(()=>e.variant)}}),o(()=>{let n=Y.filterProps(e);return l(Y,p(n,{class:[`v-chip-group`,{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>[t.default?.({isSelected:i,select:a,next:c,prev:u,selected:d.value})]})}),{}}});var Q=t({activeClass:String,appendAvatar:String,appendIcon:C,baseColor:String,closable:Boolean,closeIcon:{type:C,default:`$delete`},closeLabel:{type:String,default:`$vuetify.close`},draggable:Boolean,filter:Boolean,filterIcon:{type:C,default:`$complete`},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:C,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:e(),onClickOnce:e(),...P(),...c(),...A(),...B(),...R(),...M(),...W(),...w(),...r({tag:`span`}),...a(),...F({variant:`tonal`})},`VChip`),$=i()({name:`VChip`,directives:{vRipple:S},props:Q(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,{attrs:t,emit:r,slots:i}){let{t:a}=y(),{borderClasses:o}=N(e),{densityClasses:s}=O(e),{elevationClasses:c}=G(e),{roundedClasses:x,roundedStyles:C}=j(e),{sizeClasses:w}=T(e),{themeClasses:A}=n(e),M=b(e,`modelValue`),P=z(e,X,!1),F=z(e,q,!1),R=H(e,t),B=_(()=>e.link!==!1&&R.isLink.value),V=m(()=>!e.disabled&&e.link!==!1&&(!!P||e.link||R.isClickable.value)),U=_(()=>({"aria-label":a(e.closeLabel),disabled:e.disabled,onClick(e){e.preventDefault(),e.stopPropagation(),M.value=!1,r(`click:close`,e)}}));u(M,e=>{e?(P?.register(),F?.register()):(P?.unregister(),F?.unregister())});let{colorClasses:W,colorStyles:J,variantClasses:Y}=I(()=>({color:!P||P.isSelected.value?e.color??e.baseColor:e.baseColor,variant:e.variant}));function Z(e){r(`click`,e),V.value&&(R.navigate.value?.(e),P?.toggle())}function Q(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),Z(e))}return()=>{let t=R.isLink.value?`a`:e.tag,n=!!(e.appendIcon||e.appendAvatar),r=!!(n||i.append),a=!!(i.close||e.closable),u=!!(i.filter||e.filter)&&P,m=!!(e.prependIcon||e.prependAvatar),_=!!(m||i.prepend);return M.value&&d(l(t,p(R.linkProps,{class:[`v-chip`,{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":V.value,"v-chip--filter":u,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&R.isActive?.value},A.value,o.value,W.value,s.value,c.value,x.value,w.value,Y.value,P?.selectedClass.value,e.class],style:[J.value,C.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:V.value?0:void 0,onClick:(V.value||e.onClick||e.onClickOnce)&&Z,onKeydown:V.value&&!B.value&&Q}),{default:()=>[L(V.value,`v-chip`),u&&l(D,{key:`filter`},{default:()=>[d(f(`div`,{class:`v-chip__filter`},[i.filter?l(k,{key:`filter-defaults`,disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},i.filter):l(E,{key:`filter-icon`,icon:e.filterIcon},null)]),[[v,P.isSelected.value]])]}),_&&f(`div`,{key:`prepend`,class:`v-chip__prepend`},[i.prepend?l(k,{key:`prepend-defaults`,disabled:!m,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},i.prepend):f(h,null,[e.prependIcon&&l(E,{key:`prepend-icon`,icon:e.prependIcon,start:!0},null),e.prependAvatar&&l(K,{key:`prepend-avatar`,image:e.prependAvatar,start:!0},null)])]),f(`div`,{class:`v-chip__content`,"data-no-activator":``},[i.default?.({isSelected:P?.isSelected.value,selectedClass:P?.selectedClass.value,select:P?.select,toggle:P?.toggle,value:P?.value.value,disabled:e.disabled})??g(e.text)]),r&&f(`div`,{key:`append`,class:`v-chip__append`},[i.append?l(k,{key:`append-defaults`,disabled:!n,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},i.append):f(h,null,[e.appendIcon&&l(E,{key:`append-icon`,end:!0,icon:e.appendIcon},null),e.appendAvatar&&l(K,{key:`append-avatar`,end:!0,image:e.appendAvatar},null)])]),a&&f(`button`,p({key:`close`,class:`v-chip__close`,type:`button`,"data-testid":`close-chip`},U.value),[i.close?l(k,{key:`close-defaults`,defaults:{VIcon:{icon:e.closeIcon,size:`x-small`}}},i.close):l(E,{key:`close-icon`,icon:e.closeIcon,size:`x-small`},null)])]}),[[S,V.value&&e.ripple,null]])}}});export{$ as t};
@@ -0,0 +1 @@
1
+ import{D as e,M as t,N as n,Nt as r,S as i,_t as a,c as o,dt as s,i as c,l,p as u,qt as d,s as f,t as p,u as m,v as h,x as g,zt as _}from"./Bj2vN0T9.js";import{D as v,E as y,Ht as b,Kt as x,On as S,St as C,Ut as w,Zn as T,_ as E,_n as ee,b as D,bt as O,ct as k,er as A,et as j,ft as M,g as N,gn as P,it as F,k as I,mt as L,o as R,pn as z,qt as B,tr as V,tt as H,un as U,v as W,vn as G,w as te,wn as K,xn as q,xt as ne,y as J}from"./DVRkMeDb.js";import{t as re}from"./Cx1ACnK3.js";import{c as ie,u as ae}from"./pevRwwGL.js";import{n as oe,t as se}from"./GcJARbV4.js";import{c as Y,m as ce,n as le,o as ue,s as de,t as fe}from"./CEwqGRFH.js";import{a as pe,i as me,o as he,r as ge}from"./DE8nYAuE.js";import{t as _e}from"./BQpOsqaq.js";import{a as X,i as Z,t as ve}from"./DVQyySRy.js";import{t as ye}from"./BGE18wmh.js";import{a as be,i as xe,n as Se,o as Ce,r as we,t as Te}from"./DhF2C9iz.js";import{t as Ee}from"./BuZABq4H.js";import{t as De}from"./CUiMQC3Z.js";import{t as Oe}from"./BfJMvdNP.js";import{r as ke}from"./BaOEsdpg.js";import{t as Ae}from"./BeQ1SIR7.js";import{n as je,t as Me}from"./CX8RCGtF.js";import{a as Ne,i as Pe}from"./CIM0ajR7.js";import{i as Fe,l as Ie,u as Le}from"./CvbtZrze.js";import{t as Re}from"./BsuNB234.js";import{n as ze,t as Be}from"./C0qu28Eu.js";import{t as Ve}from"./BvHF-Z-c.js";import{a as He,i as Ue}from"./wYGZ1W5f.js";import{t as We}from"./704AOQgv.js";import{t as Ge}from"./CgjA3YY0.js";import{t as Ke}from"./C-EQLWId.js";import{t as qe}from"./DYuO8gvM.js";import{t as Je}from"./Dd3TSBVv.js";import{$t as Ye,At as Xe,Ft as Ze,Jt as Qe,Lt as $e,Mt as et,Nt as tt,Pt as nt,Rt as rt,Ut as it,Xt as at,d as ot,h as st,jt as ct,l as lt,m as Q,o as ut,p as dt,s as ft,t as pt,tn as mt}from"#entry";import{t as ht}from"./C_ix0rE_.js";import{t as gt}from"./BiGgsuAF.js";import{c as _t,s as vt}from"./DA90LVQc.js";import{n as yt,t as bt}from"./CYenBSuZ.js";import{t as xt}from"./BE_w8iyq.js";import{t as St}from"./DTBUCbOt.js";import{t as Ct}from"./ftNSi8op.js";import{t as wt}from"./Bxx2DVz5.js";var Tt=i({text:String,...g(),...c()},`VToolbarTitle`),Et=u()({name:`VToolbarTitle`,props:Tt(),setup(e,{slots:t}){return m(()=>{let n=!!(t.default||t.text||e.text);return v(e.tag,{class:T([`v-toolbar-title`,e.class]),style:A(e.style)},{default:()=>[n&&E(`div`,{class:`v-toolbar-title__placeholder`},[t.text?t.text():e.text,t.default?.()])]})}),{}}}),Dt=[null,`prominent`,`default`,`comfortable`,`compact`],Ot=i({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:`start`},color:String,density:{type:String,default:`default`,validator:e=>Dt.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...Pe(),...g(),...Ie(),...fe(),...Me(),...c({tag:`header`}),...f()},`VToolbar`),kt=u()({name:`VToolbar`,props:Ot(),setup(e,{slots:t}){let{backgroundColorClasses:r,backgroundColorStyles:i}=p(()=>e.color),{borderClasses:a}=Ne(e),{elevationClasses:s}=Le(e),{locationStyles:c}=le(e),{roundedClasses:l,roundedStyles:u}=je(e),{themeClasses:d}=o(e),{rtlClasses:f}=ue(),g=q(e.extended===null?!!t.extension?.():e.extended),_=N(()=>parseInt(Number(e.height)+(e.density===`prominent`?Number(e.height):0)-(e.density===`comfortable`?8:0)-(e.density===`compact`?16:0),10)),y=N(()=>g.value?parseInt(Number(e.extensionHeight)+(e.density===`prominent`?Number(e.extensionHeight):0)-(e.density===`comfortable`?4:0)-(e.density===`compact`?8:0),10):0);return h({VBtn:{variant:`text`}}),m(()=>{let o=!!(e.title||t.title),p=!!(t.image||e.image),m=t.extension?.();return g.value=e.extended===null?!!m:e.extended,v(e.tag,{class:T([`v-toolbar`,`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},r.value,a.value,s.value,l.value,d.value,f.value,e.class]),style:A([i.value,c.value,u.value,e.style])},{default:()=>[p&&E(`div`,{key:`image`,class:`v-toolbar__image`},[t.image?v(ke,{key:`image-defaults`,disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},t.image):v(Ae,{key:`image-img`,cover:!0,src:e.image},null)]),v(ke,{defaults:{VTabs:{height:n(_.value)}}},{default:()=>[E(`div`,{class:`v-toolbar__content`,style:{height:n(_.value)}},[t.prepend&&E(`div`,{class:`v-toolbar__prepend`},[t.prepend?.()]),o&&v(Et,{key:`title`,text:e.title},{text:t.title}),t.default?.(),t.append&&E(`div`,{class:`v-toolbar__append`},[t.append?.()])])]}),v(ke,{defaults:{VTabs:{height:n(y.value)}}},{default:()=>[v(De,null,{default:()=>[g.value&&E(`div`,{class:`v-toolbar__extension`,style:{height:n(y.value)}},[m])]})]})]})}),{contentHeight:_,extensionHeight:y}}}),At=i({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},`scroll`);function jt(e,n={}){let{canScroll:r,layoutSize:i}=n,a=0,o=0,s=G(null),c=q(0),l=q(0),u=q(0),f=q(!1),p=q(!1),m=q(!1),h=q(!1),g=q(!0),_=N(()=>Number(e.scrollThreshold)),v=N(()=>t((_.value-c.value)/_.value||0));function y(e){return{clientHeight:`window`in e?window.innerHeight:e.clientHeight,scrollHeight:`window`in e?document.documentElement.scrollHeight:e.scrollHeight}}function x(){let e=s.value;if(!e)return;let{clientHeight:t,scrollHeight:n}=y(e),r=n-t,a=i?.value||0,o=_.value+a;g.value=r>o}function S(){x()}function C(){let e=s.value;if(!e||r&&!r.value)return;a=c.value,c.value=`window`in e?e.pageYOffset:e.scrollTop;let t=e instanceof Window?document.documentElement.scrollHeight:e.scrollHeight;o!==t&&(t>o&&x(),o=t),p.value=c.value<a,u.value=Math.abs(c.value-_.value);let{clientHeight:n,scrollHeight:i}=y(e),l=c.value+n>=i-5;!p.value&&l&&c.value>=_.value&&g.value&&(h.value=!0);let d=Math.abs(c.value-a)>100,f=c.value<=5;(p.value&&a-c.value>1&&!l||d&&c.value<_.value||f)&&(h.value=!1),m.value=l}return b(p,()=>{l.value=l.value||c.value}),b(f,()=>{l.value=0}),k(()=>{b(()=>e.scrollTarget,e=>{let t=e?document.querySelector(e):window;t?t!==s.value&&(s.value?.removeEventListener(`scroll`,C),s.value=t,s.value.addEventListener(`scroll`,C,{passive:!0}),Promise.resolve().then(()=>{x()})):d(`Unable to locate element with identifier ${e}`)},{immediate:!0}),window.addEventListener(`resize`,S,{passive:!0})}),F(()=>{s.value?.removeEventListener(`scroll`,C),window.removeEventListener(`resize`,S)}),r&&b(r,C,{immediate:!0}),{scrollThreshold:_,currentScroll:c,currentThreshold:u,isScrollActive:f,scrollRatio:v,isScrollingUp:p,savedScroll:l,isAtBottom:m,reachedBottomWhileScrollingDown:h,hasEnoughScrollableSpace:g}}var Mt=i({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:`top`,validator:e=>[`top`,`bottom`].includes(e)},...s(Ot(),[`location`]),...xe(),...At(),height:{type:[Number,String],default:64}},`VAppBar`),Nt=u()({name:`VAppBar`,props:Mt(),emits:{"update:modelValue":e=>!0},setup(e,{slots:t}){let n=G(),r=de(e,`modelValue`),i=N(()=>{let t=new Set(e.scrollBehavior?.split(` `)??[]);return{hide:t.has(`hide`),fullyHide:t.has(`fully-hide`),inverted:t.has(`inverted`),collapse:t.has(`collapse`),elevate:t.has(`elevate`),fadeImage:t.has(`fade-image`)}}),{currentScroll:a,scrollThreshold:o,isScrollingUp:c,scrollRatio:l,isAtBottom:u,reachedBottomWhileScrollingDown:d,hasEnoughScrollableSpace:f}=jt(e,{canScroll:N(()=>{let e=i.value;return e.hide||e.fullyHide||e.inverted||e.collapse||e.elevate||e.fadeImage||!r.value}),layoutSize:N(()=>(n.value?.contentHeight??0)+(n.value?.extensionHeight??0))}),p=K(()=>i.value.hide||i.value.fullyHide),h=N(()=>e.collapse||i.value.collapse&&(i.value.inverted?l.value>0:l.value===0)),g=N(()=>e.flat||i.value.fullyHide&&!r.value||i.value.elevate&&(i.value.inverted?a.value>0:a.value===0)),_=N(()=>i.value.fadeImage?i.value.inverted?1-l.value:l.value:void 0),y=N(()=>{if(i.value.hide&&i.value.inverted)return 0;let e=n.value?.contentHeight??0,t=n.value?.extensionHeight??0;return p.value?a.value<o.value||i.value.fullyHide?e+t:e:e+t});Y(()=>!!e.scrollBehavior,()=>{w(()=>{p.value?i.value.inverted?r.value=a.value>o.value:f.value?d.value?r.value=!1:r.value=c.value&&!u.value||a.value<o.value:r.value=!0:r.value=!0})});let{ssrBootStyles:b}=Re(),{layoutItemStyles:x}=Ce({id:e.name,order:N(()=>parseInt(e.order,10)),position:K(()=>e.location),layoutSize:y,elementSize:q(void 0),active:r,absolute:K(()=>e.absolute)});return m(()=>{let r=s(kt.filterProps(e),[`location`]);return v(kt,j({ref:n,class:[`v-app-bar`,{"v-app-bar--bottom":e.location===`bottom`},e.class],style:[{...x.value,"--v-toolbar-image-opacity":_.value,height:void 0,...b.value},e.style]},r,{collapse:h.value,flat:g.value}),t)}),{}}}),Pt=i({...s(st({icon:`$menu`,variant:`text`}),[`spaced`])},`VAppBarNavIcon`),Ft=u()({name:`VAppBarNavIcon`,props:Pt(),setup(e,{slots:t}){return m(()=>v(Q,j(e,{class:[`v-app-bar-nav-icon`]}),t)),{}}}),It=u()({name:`VAppBarTitle`,props:Tt(),setup(e,{slots:t}){return m(()=>v(Et,j(e,{class:`v-app-bar-title`}),t)),{}}}),Lt=i({app:Boolean,color:String,height:{type:[Number,String],default:`auto`},...Pe(),...g(),...Ie(),...xe(),...Me(),...c({tag:`footer`}),...f()},`VFooter`),Rt=u()({name:`VFooter`,props:Lt(),setup(e,{slots:t}){let r=G(),{themeClasses:i}=o(e),{backgroundColorClasses:a,backgroundColorStyles:s}=p(()=>e.color),{borderClasses:c}=Ne(e),{elevationClasses:l}=Le(e),{roundedClasses:u,roundedStyles:d}=je(e),f=q(32),{resizeRef:h}=Ee(e=>{e.length&&(f.value=e[0].target.clientHeight)}),g=N(()=>e.height===`auto`?f.value:e.height);return Y(()=>e.app,()=>{let t=Ce({id:e.name,order:N(()=>parseInt(e.order,10)),position:K(()=>`bottom`),layoutSize:g,elementSize:N(()=>e.height===`auto`?void 0:g.value),active:K(()=>e.app),absolute:K(()=>e.absolute)});w(()=>{r.value=t.layoutItemStyles.value})}),m(()=>v(e.tag,{ref:h,class:T([`v-footer`,i.value,a.value,c.value,l.value,u.value,e.class]),style:A([s.value,e.app?r.value:{height:n(e.height)},d.value,e.style])},t)),{}}});function zt({rootEl:e,isSticky:t,layoutItemStyles:i}){let a=q(!1),o=q(0),s=N(()=>{let e=r(a.value)?`top`:a.value;return[t.value?{top:`auto`,bottom:`auto`,height:void 0}:void 0,a.value?{[e]:n(o.value)}:{top:i.value.top}]});k(()=>{b(t,e=>{e?window.addEventListener(`scroll`,l,{passive:!0}):window.removeEventListener(`scroll`,l)},{immediate:!0})}),F(()=>{window.removeEventListener(`scroll`,l)});let c=0;function l(){let t=c>window.scrollY?`up`:`down`,n=e.value.getBoundingClientRect(),r=parseFloat(i.value.top??0),s=window.scrollY-Math.max(0,o.value-r),l=n.height+Math.max(o.value,r)-window.scrollY-window.innerHeight,u=parseFloat(getComputedStyle(e.value).getPropertyValue(`--v-body-scroll-y`))||0;n.height<window.innerHeight-r?(a.value=`top`,o.value=r):t===`up`&&a.value===`bottom`||t===`down`&&a.value===`top`?(o.value=window.scrollY+n.top-u,a.value=!0):t===`down`&&l<=0?(o.value=0,a.value=`bottom`):t===`up`&&s<=0&&(u?a.value!==`top`&&(o.value=-s+u+r,a.value=`top`):(o.value=n.top+s,a.value=`top`)),c=window.scrollY}return{isStuck:a,stickyStyles:s}}var Bt=100,Vt=20;function Ht(e){return(e<0?-1:1)*Math.sqrt(Math.abs(e))*1.41421356237}function Ut(e){if(e.length<2)return 0;if(e.length===2)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;let r=Ht(t),i=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(i-r)*Math.abs(i),n===e.length-1&&(t*=.5)}return Ht(t)*1e3}function Wt(){let t={};function n(n){Array.from(n.changedTouches).forEach(r=>{(t[r.identifier]??(t[r.identifier]=new e(Vt))).push([n.timeStamp,r])})}function r(e){Array.from(e.changedTouches).forEach(e=>{delete t[e.identifier]})}function i(e){let n=t[e]?.values().reverse();if(!n)throw Error(`No samples for touch id ${e}`);let r=n[0],i=[],a=[];for(let e of n){if(r[0]-e[0]>Bt)break;i.push({t:e[0],d:e[1].clientX}),a.push({t:e[0],d:e[1].clientY})}return{x:Ut(i),y:Ut(a),get direction(){let{x:e,y:t}=this,[n,r]=[Math.abs(e),Math.abs(t)];return n>r&&e>=0?`right`:n>r&&e<=0?`left`:r>n&&t>=0?`down`:r>n&&t<=0?`up`:Gt()}}}return{addMovement:n,endTouch:r,getVelocity:i}}function Gt(){throw Error()}function Kt({el:e,isActive:n,isTemporary:r,width:i,touchless:a,position:o}){k(()=>{window.addEventListener(`touchstart`,v,{passive:!0}),window.addEventListener(`touchmove`,y,{passive:!1}),window.addEventListener(`touchend`,b,{passive:!0})}),F(()=>{window.removeEventListener(`touchstart`,v),window.removeEventListener(`touchmove`,y),window.removeEventListener(`touchend`,b)});let s=N(()=>[`left`,`right`].includes(o.value)),{addMovement:c,endTouch:l,getVelocity:u}=Wt(),d=!1,f=q(!1),p=q(0),m=q(0),h;function g(e,t){return(o.value===`left`?e:o.value===`right`?document.documentElement.clientWidth-e:o.value===`top`?e:o.value===`bottom`?document.documentElement.clientHeight-e:$())-(t?i.value:0)}function _(e,n=!0){let r=o.value===`left`?(e-m.value)/i.value:o.value===`right`?(document.documentElement.clientWidth-e-m.value)/i.value:o.value===`top`?(e-m.value)/i.value:o.value===`bottom`?(document.documentElement.clientHeight-e-m.value)/i.value:$();return n?t(r):r}function v(e){if(a.value)return;let t=e.changedTouches[0].clientX,u=e.changedTouches[0].clientY,f=o.value===`left`?t<25:o.value===`right`?t>document.documentElement.clientWidth-25:o.value===`top`?u<25:o.value===`bottom`?u>document.documentElement.clientHeight-25:$(),v=n.value&&(o.value===`left`?t<i.value:o.value===`right`?t>document.documentElement.clientWidth-i.value:o.value===`top`?u<i.value:o.value===`bottom`?u>document.documentElement.clientHeight-i.value:$());(f||v||n.value&&r.value)&&(h=[t,u],m.value=g(s.value?t:u,n.value),p.value=_(s.value?t:u),d=m.value>-20&&m.value<80,l(e),c(e))}function y(e){let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(d){if(!e.cancelable){d=!1;return}let r=Math.abs(t-h[0]),i=Math.abs(n-h[1]);(s.value?r>i&&r>3:i>r&&i>3)?(f.value=!0,d=!1):(s.value?i:r)>3&&(d=!1)}if(!f.value)return;e.preventDefault(),c(e);let r=_(s.value?t:n,!1);p.value=Math.max(0,Math.min(1,r)),r>1?m.value=g(s.value?t:n,!0):r<0&&(m.value=g(s.value?t:n,!1))}function b(e){if(d=!1,!f.value)return;c(e),f.value=!1;let t=u(e.changedTouches[0].identifier),r=Math.abs(t.x),i=Math.abs(t.y);n.value=(s.value?r>i&&r>400:i>r&&i>3)?t.direction===({left:`right`,right:`left`,top:`down`,bottom:`up`}[o.value]||$()):p.value>.5}let x=N(()=>f.value?{transform:o.value===`left`?`translateX(calc(-100% + ${p.value*i.value}px))`:o.value===`right`?`translateX(calc(100% - ${p.value*i.value}px))`:o.value===`top`?`translateY(calc(-100% + ${p.value*i.value}px))`:o.value===`bottom`?`translateY(calc(100% - ${p.value*i.value}px))`:$(),transition:`none`}:void 0);return Y(f,()=>{let t=e.value?.style.transform??null,n=e.value?.style.transition??null;w(()=>{e.value?.style.setProperty(`transform`,x.value?.transform||`none`),e.value?.style.setProperty(`transition`,x.value?.transition||null)}),z(()=>{e.value?.style.setProperty(`transform`,t),e.value?.style.setProperty(`transition`,n)})}),{isDragging:f,dragProgress:p,dragStyles:x}}function $(){throw Error()}var qt=[`start`,`end`,`left`,`right`,`top`,`bottom`],Jt=i({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:`start`,validator:e=>qt.includes(e)},sticky:Boolean,...Pe(),...g(),...pe(),...Ue({mobile:null}),...Ie(),...xe(),...Me(),...s(ge(),[`disableInitialFocus`]),...c({tag:`nav`}),...f()},`VNavigationDrawer`),Yt=u()({name:`VNavigationDrawer`,props:Jt(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,{attrs:t,emit:n,slots:r}){let{isRtl:i}=ue(),{themeClasses:s}=o(e),{borderClasses:c}=Ne(e),{backgroundColorClasses:l,backgroundColorStyles:u}=p(()=>e.color),{elevationClasses:d}=Le(e),{displayClasses:f,mobile:g}=He(e),{roundedClasses:y,roundedStyles:x}=je(e),S=Fe(),C=de(e,`modelValue`,null,e=>!!e),{ssrBootStyles:w}=Re(),{scopeId:T}=_e(),D=G(),O=q(!1),{runOpenDelay:k,runCloseDelay:A}=he(e,e=>{O.value=e}),{layoutRect:M}=be(),P=N(()=>ce(e.location,i.value)),F=N(()=>P.value===`top`||P.value===`bottom`),I=N(()=>(F.value?M.value?.height:M.value?.width)??0),L=N(()=>e.rail&&e.expandOnHover&&O.value?e.width:e.rail?e.railWidth:e.width),z=N(()=>a(L.value,I.value)),B=K(()=>e.persistent),V=N(()=>!e.permanent&&(g.value||e.temporary)),U=N(()=>e.sticky&&!V.value&&P.value!==`bottom`);me(e,{isActive:C,localTop:V,contentEl:D}),Y(()=>e.expandOnHover&&e.rail!=null,()=>{b(O,e=>n(`update:rail`,!e))}),Y(()=>!e.disableResizeWatcher,()=>{b(V,t=>!e.permanent&&H(()=>C.value=!t))}),Y(()=>!e.disableRouteWatcher&&!!S,()=>{b(S.currentRoute,()=>V.value&&(C.value=!1))}),b(()=>e.permanent,e=>{e&&(C.value=!0)}),e.modelValue==null&&!V.value&&(C.value=e.permanent||!g.value);let{isDragging:W,dragProgress:te}=Kt({el:D,isActive:C,isTemporary:V,width:z,touchless:K(()=>e.touchless),position:P}),ne=N(()=>{let t=V.value?0:e.rail&&e.expandOnHover?e.railWidth:L.value;return W.value?a(t,I.value)*te.value:t}),{layoutItemStyles:J,layoutItemScrimStyles:ie}=Ce({id:e.name,order:N(()=>parseInt(e.order,10)),position:P,layoutSize:ne,elementSize:L,active:ee(C),disableTransitions:K(()=>W.value),absolute:N(()=>e.absolute||U.value&&!_(ae.value))}),{isStuck:ae,stickyStyles:oe}=zt({rootEl:D,isSticky:U,layoutItemStyles:J}),se=p(()=>_(e.scrim)?e.scrim:null),le=N(()=>({...W.value?{opacity:te.value*.2,transition:`none`}:void 0,...ie.value}));return h({VList:{bgColor:`transparent`}}),m(()=>{let n=r.image||e.image;return E(R,null,[v(e.tag,j({ref:D,onMouseenter:k,onMouseleave:A,class:[`v-navigation-drawer`,`v-navigation-drawer--${P.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":O.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":V.value,"v-navigation-drawer--persistent":B.value,"v-navigation-drawer--active":C.value,"v-navigation-drawer--sticky":U.value},s.value,l.value,c.value,f.value,d.value,y.value,e.class],style:[u.value,J.value,w.value,oe.value,x.value,e.style],inert:!C.value},T,t),{default:()=>[n&&E(`div`,{key:`image`,class:`v-navigation-drawer__img`},[r.image?v(ke,{key:`image-defaults`,disabled:!e.image,defaults:{VImg:{alt:``,cover:!0,height:`inherit`,src:e.image}}},r.image):v(Ae,{key:`image-img`,alt:``,cover:!0,height:`inherit`,src:e.image},null)]),r.prepend&&E(`div`,{class:`v-navigation-drawer__prepend`},[r.prepend?.()]),E(`div`,{class:`v-navigation-drawer__content`},[r.default?.()]),r.append&&E(`div`,{class:`v-navigation-drawer__append`},[r.append?.()])]}),v(re,{name:`fade-transition`},{default:()=>[V.value&&(W.value||C.value)&&!!e.scrim&&E(`div`,j({class:[`v-navigation-drawer__scrim`,se.backgroundColorClasses.value],style:[le.value,se.backgroundColorStyles.value],onClick:()=>{B.value||(C.value=!1)}},T),null)]})])}),{isStuck:ae}}});function Xt(){let e=Xe(),t=rt(`vector.inbox.unread`,()=>0),n=rt(`vector.inbox.items`,()=>[]);async function r(){let r=await e(`/vector/notifications`);n.value=r.data,t.value=r.unread}async function i(t){await e(`/vector/notifications/${t}/read`,{method:`POST`}),await r()}async function a(){await e(`/vector/notifications/read-all`,{method:`POST`}),await r()}return{unread:t,items:n,refresh:r,markRead:i,markAllRead:a}}var Zt={class:`text-caption text-medium-emphasis`},Qt=Object.assign(I({__name:`Inbox`,setup(e){let t=Ye(),n=Xt(),r=G(!1),{t:i}=pt();k(()=>n.refresh().catch(()=>void 0));let{pause:a}=_t(()=>n.refresh().catch(()=>void 0),3e4);M(a),b(r,e=>{e&&n.refresh().catch(()=>void 0)});async function o(e,i){try{await n.markRead(e),r.value=!1,i&&xt(i)&&await ie(`${t.vector.basePath}${i}`)}catch(e){nt().error(ct(e))}}return(e,t)=>(L(),W(Oe,{modelValue:S(r),"onUpdate:modelValue":t[1]||=e=>U(r)?r.value=e:null,"close-on-content-click":!1,location:`bottom end`,width:`380`},{activator:B(({props:e})=>[v(Q,j(e,{icon:``,variant:`text`,"aria-label":S(i)(`shell.inbox.title`)}),{default:B(()=>[v(ze,{content:S(n).unread.value,"model-value":S(n).unread.value>0,color:`error`},{default:B(()=>[v(ye,{icon:`mdi-bell-outline`})]),_:1},8,[`content`,`model-value`])]),_:1},16,[`aria-label`])]),default:B(()=>[v(ut,null,{default:B(()=>[v(lt,{class:`d-flex align-center text-subtitle-1`},{default:B(()=>[y(V(S(i)(`shell.inbox.title`))+` `,1),v(Je),S(n).unread.value?(L(),W(Q,{key:0,size:`small`,variant:`text`,onClick:t[0]||=e=>S(n).markAllRead()},{default:B(()=>[y(V(S(i)(`shell.inbox.markAllRead`)),1)]),_:1})):J(``,!0)]),_:1}),v(We),v(ve,{density:`compact`,"max-height":`420`,style:{"overflow-y":`auto`}},{default:B(()=>[(L(!0),D(R,null,O(S(n).items.value,t=>(L(),W(X,{key:t.id,title:t.title,subtitle:t.body??void 0,class:T({"bg-surface-light":!t.readAt}),onClick:e=>o(t.id,t.link)},{prepend:B(()=>[v(ye,{icon:{info:`mdi-information-outline`,success:`mdi-check-circle-outline`,warning:`mdi-alert-outline`,error:`mdi-alert-circle-outline`}[t.kind],color:t.kind===`info`?void 0:t.kind},null,8,[`icon`,`color`])]),append:B(()=>[E(`span`,Zt,V((`formatDateTime`in e?e.formatDateTime:S(Qe))(t.createdAt)),1)]),_:2},1032,[`title`,`subtitle`,`class`,`onClick`]))),128)),S(n).items.value.length===0?(L(),W(X,{key:0,title:S(i)(`shell.inbox.empty`),disabled:``},null,8,[`title`])):J(``,!0)]),_:1})]),_:1})]),_:1},8,[`modelValue`]))}}),{__name:`VxInbox`}),$t=Object.assign(I({__name:`VersionBanner`,setup(e){let{current:t,expected:n,visible:r,remedy:i,dismiss:a}=tt(),{t:o}=pt();return(e,s)=>S(r)?(L(),W(dt,{key:0,type:`warning`,variant:`tonal`,density:`compact`,rounded:`0`,icon:`mdi-update`,class:`px-6 vx-version-banner`,closable:``,"close-label":S(o)(`shell.version.dismiss`),"onClick:close":S(a)},{default:B(()=>[y(V(S(o)(`shell.version.mismatch`,{current:S(t),expected:S(n)??``}))+` `+V(S(i)),1)]),_:1},8,[`close-label`,`onClick:close`])):J(``,!0)}}),{__name:`VxVersionBanner`}),en=Object.assign(I({__name:`Confirm`,setup(e){let{t}=pt(),{pending:n,settle:r}=St(),i=N({get:()=>n.value!==null,set:e=>{e||r(!1)}});return(e,a)=>(L(),W(Ke,{modelValue:S(i),"onUpdate:modelValue":a[2]||=e=>U(i)?i.value=e:null,"max-width":`440`,persistent:``},{default:B(()=>[S(n)?(L(),W(ut,{key:0},{default:B(()=>[v(lt,null,{default:B(()=>[y(V(S(n).title),1)]),_:1}),S(n).text?(L(),W(ft,{key:0},{default:B(()=>[y(V(S(n).text),1)]),_:1})):J(``,!0),v(ot,null,{default:B(()=>[v(Je),v(Q,{variant:`text`,onClick:a[0]||=e=>S(r)(!1)},{default:B(()=>[y(V(S(n).cancelText??S(t)(`common.cancel`)),1)]),_:1}),v(Q,{color:S(n).destructive?`error`:`primary`,onClick:a[1]||=e=>S(r)(!0)},{default:B(()=>[y(V(S(n).confirmText??S(t)(`common.confirm`)),1)]),_:1},8,[`color`])]),_:1})]),_:1})):J(``,!0)]),_:1},8,[`modelValue`]))}}),{__name:`VxConfirm`}),tn=Object.assign(I({__name:`CommandPalette`,setup(e,{expose:t}){let n=Ye(),r=Xe(),{menu:i,resource:a}=et(),o=G(!1),s=G(``),c=G([]),l=G(!1),u=0,{t:d}=pt(),f=vt(async e=>{let t=++u,n=e.trim();if(n===``)c.value=[];else{l.value=!0;try{let e=await r(`/vector/search`,{query:{q:n}});t===u&&(c.value=e.results)}finally{t===u&&(l.value=!1)}}},200);b(s,e=>f(e??``)),b(o,e=>{e||(s.value=``,c.value=[])});let p=e=>`${e.resource}-${e.id}`;function m(e){let t=a(e.resource),n=t?.fields.find(e=>e.name===t.searchResult?.subtitle),r=e.subtitle??null;if(r!==null&&n?.type===`enum`)r=n.options?.find(e=>String(e.value)===r)?.label??r;else if(r!==null&&n?.type===`number`&&r!==``&&!Number.isNaN(Number(r))){let e=gt(n).decimals;r=at(Number(r),typeof e==`number`?e:void 0)}return[r,e.resourceLabel].filter(Boolean).join(` · `)}let h=P({});b(c,e=>{for(let e of Object.keys(h))delete h[e];for(let t of e)t.image&&r(`/vector/r/${encodeURIComponent(t.resource)}/${encodeURIComponent(String(t.id))}/files/${encodeURIComponent(t.image)}`,{responseType:`blob`}).then(ht).then(e=>{c.value.includes(t)&&(h[p(t)]=e)}).catch(()=>{})});let g=$e(),_=N(()=>Object.entries(g.value).filter(([,e])=>(s.value??``).trim()===``||e.title.toLowerCase().includes((s.value??``).trim().toLowerCase()))),x=N(()=>i.value.flatMap(e=>e.items).filter(e=>(s.value??``).trim()===``||e.label.toLowerCase().includes((s.value??``).trim().toLowerCase())));function C(e){o.value=!1,ie(`${n.vector.basePath}${e}`)}return bt(window,`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),o.value=!o.value)}),t({open:o}),(e,t)=>(L(),W(Ke,{modelValue:S(o),"onUpdate:modelValue":t[1]||=e=>U(o)?o.value=e:null,"max-width":`600`,scrollable:``},{default:B(()=>[v(ut,null,{default:B(()=>[v(Ge,{modelValue:S(s),"onUpdate:modelValue":t[0]||=e=>U(s)?s.value=e:null,autofocus:``,variant:`solo`,flat:``,placeholder:S(d)(`shell.palette.placeholder`),"aria-label":S(d)(`common.search`),"prepend-inner-icon":`mdi-magnify`,loading:S(l),"hide-details":``,clearable:``,class:`flex-grow-0`},null,8,[`modelValue`,`placeholder`,`aria-label`,`loading`]),v(We),v(ft,{class:`pa-0`,style:{"max-height":`420px`}},{default:B(()=>[v(ve,{density:`compact`},{default:B(()=>[S(c).length?(L(),D(R,{key:0},[v(Z,null,{default:B(()=>[y(V(S(d)(`shell.palette.records`)),1)]),_:1}),(L(!0),D(R,null,O(S(c),e=>(L(),W(X,{key:p(e),title:e.title,subtitle:m(e),onClick:t=>C(`/r/${e.resource}/${encodeURIComponent(String(e.id))}`)},{prepend:B(()=>[S(h)[p(e)]?(L(),W(Be,{key:0,rounded:``,size:`32`,class:`me-4`},{default:B(()=>[v(Ae,{src:S(h)[p(e)],alt:``,cover:``},null,8,[`src`])]),_:2},1024)):(L(),W(ye,{key:1,icon:`mdi-file-document-outline`}))]),_:2},1032,[`title`,`subtitle`,`onClick`]))),128))],64)):J(``,!0),v(Z,null,{default:B(()=>[y(V(S(d)(`shell.palette.resources`)),1)]),_:1}),(L(!0),D(R,null,O(S(x),e=>(L(),W(X,{key:e.slug,title:e.label,"prepend-icon":e.icon??`mdi-table`,onClick:t=>C(`/r/${e.slug}`)},null,8,[`title`,`prepend-icon`,`onClick`]))),128)),S(_).length?(L(),D(R,{key:1},[v(Z,null,{default:B(()=>[y(V(S(d)(`shell.nav.pages`)),1)]),_:1}),(L(!0),D(R,null,O(S(_),([e,t])=>(L(),W(X,{key:e,title:t.title,"prepend-icon":t.icon??`mdi-file-document-outline`,onClick:t=>C(`/p/${e}`)},null,8,[`title`,`prepend-icon`,`onClick`]))),128))],64)):J(``,!0),(S(s)??``).trim()&&!S(l)&&S(c).length===0?(L(),W(X,{key:2,title:S(d)(`shell.palette.noMatch`),disabled:``},null,8,[`title`])):J(``,!0)]),_:1})]),_:1})]),_:1})]),_:1},8,[`modelValue`]))}}),{__name:`VxCommandPalette`});function nn(){let e=Ye(),{schema:t}=et(),n=l(),r=rt(`vector.branding.applied`,()=>``),i=window.__VECTOR__?.branding??null,a=N(()=>({title:e.vector.brand.title,logoUrl:null,primaryColor:null,primaryColorDark:null,theme:null,footerText:null,...t.value?.branding??i}));function o(){let e=a.value,t=JSON.stringify(e);r.value!==t&&(e.primaryColor&&(n.themes.value.light.colors.primary=e.primaryColor),e.primaryColorDark&&(n.themes.value.dark.colors.primary=e.primaryColorDark),r.value===``&&e.theme&&e.theme!==`system`&&n.change(e.theme),r.value=t)}return{branding:a,apply:o}}function rn(e){let t=Ye().vector.idleMinutes;if(!(t>0))return;let n=t*6e4,{idle:r,lastActive:i,reset:a}=yt(n,{listenForVisibilityChange:!1}),o=!1,s=()=>{o||(o=!0,e())};b(r,e=>{e&&s()},{flush:`sync`}),bt(document,`visibilitychange`,()=>{document.visibilityState===`visible`&&(Date.now()-i.value>=n?s():a())})}var an=[`lang`,`dir`],on=I({__name:`vector`,async setup(e){let t,n,r=Ye(),i=se(),a=l(),o=G(null),{schema:s,menu:c,load:u,clear:d}=et(),{branding:f,apply:p}=nn(),m=G(null),{t:h,noun:g}=pt();p(),[t,n]=x(()=>u()),await t,n(),p(),b(f,p);let _=Ct();b(()=>s.value?.i18n,e=>_.adopt(e),{immediate:!0});let w=N(()=>_.locales.value.find(e=>e.code===_.current.value)??null);async function T(e){try{await _.choose(e)}catch(e){nt().error(h(`shell.languageFailed`,{error:ct(e)})),await u(!0).catch(()=>void 0)}}mt({titleTemplate:e=>e?h(`shell.titleTemplate`,{title:e,brand:f.value.title}):f.value.title});let ee=Xe(),A=ae(),M=G({});async function P(){if(!document.hidden)try{M.value=(await ee(`/vector/badges`)).data}catch{}}k(P),_t(P,6e4),b(()=>A.path,P);let F=e=>(M.value[e]?.count??0)>0?M.value[e]:void 0;function I(){a.toggle()}let z=oe();i.restore();let H=wt();k(()=>H.refresh().catch(()=>void 0));async function K(){try{await H.stop(),H.impersonator.value=null,await ie(r.vector.basePath||`/`)}catch(e){nt().error(ct(e))}}rn(()=>re(`idle`));function q(){return re()}async function re(e){if(z.hosted&&z.logoutUrl){let e=document.createElement(`form`);e.method=`post`,e.action=z.logoutUrl;let t=document.createElement(`input`);t.type=`hidden`,t.name=`_token`,t.value=z.csrfToken??``,e.appendChild(t),document.body.appendChild(e),e.submit()}else await i.logout(),d(),Ze().clear(),await ie({path:`${r.vector.basePath||``}/login`,query:e===`idle`?{reason:e,redirect:ae().fullPath}:{}})}let Y=$e(),ce=N(()=>{let e=new Map;for(let[t,n]of Object.entries(Y.value)){let r=n.group??h(`shell.nav.pages`);e.set(r,[...e.get(r)??[],{name:t,title:n.title,icon:n.icon}])}return[...e.entries()].map(([e,t])=>({label:e,items:t}))});return(e,t)=>{let n=Qt,a=$t,l=C(`i18n-t`),u=Te,d=en,p=tn;return L(),W(we,null,{default:B(()=>[v(Yt,{modelValue:S(o),"onUpdate:modelValue":t[0]||=e=>U(o)?o.value=e:null},{default:B(()=>[v(X,{title:S(f).title,subtitle:S(h)(`shell.brandSubtitle`),class:`py-3`},te({_:2},[S(f).logoUrl?{name:`prepend`,fn:B(()=>[v(Be,{rounded:`0`,size:`36`},{default:B(()=>[v(Ae,{src:S(f).logoUrl,alt:S(f).title},null,8,[`src`,`alt`])]),_:1})]),key:`0`}:void 0]),1032,[`title`,`subtitle`]),v(We),v(ve,{nav:``,density:`compact`,role:`navigation`,"aria-label":S(h)(`shell.nav.main`)},{default:B(()=>[v(X,{to:S(r).vector.basePath||`/`,"prepend-icon":`mdi-view-dashboard-outline`,title:S(h)(`shell.nav.dashboard`),exact:``},null,8,[`to`,`title`]),(L(!0),D(R,null,O((S(s)?.dashboards??[]).filter(e=>e.name!==`main`),e=>(L(),W(X,{key:e.name,to:`${S(r).vector.basePath}/d/${e.name}`,"prepend-icon":e.icon??`mdi-view-dashboard-outline`,title:e.label},null,8,[`to`,`prepend-icon`,`title`]))),128)),(L(!0),D(R,null,O(S(c),t=>(L(),D(R,{key:t.label},[v(Z,null,{default:B(()=>[y(V(t.label),1)]),_:2},1024),(L(!0),D(R,null,O(t.items,t=>(L(),W(X,{key:t.slug,to:`${S(r).vector.basePath}/r/${t.slug}`,"prepend-icon":t.icon??`mdi-table`,title:t.label},te({_:2},[F(t.slug)?{name:`append`,fn:B(()=>[v(Ve,{size:`x-small`,variant:`flat`,label:``,color:F(t.slug).color,"aria-label":S(h)(`shell.nav.badge`,{count:F(t.slug).count,label:F(t.slug).label??S(g)(t.label)})},{default:B(()=>[y(V((`formatNumber`in e?e.formatNumber:S(at))(F(t.slug).count)),1)]),_:2},1032,[`color`,`aria-label`])]),key:`0`}:void 0]),1032,[`to`,`prepend-icon`,`title`]))),128))],64))),128)),(L(!0),D(R,null,O(S(ce),e=>(L(),D(R,{key:`pages-${e.label}`},[v(Z,null,{default:B(()=>[y(V(e.label),1)]),_:2},1024),(L(!0),D(R,null,O(e.items,e=>(L(),W(X,{key:e.name,to:`${S(r).vector.basePath}/p/${e.name}`,"prepend-icon":e.icon??`mdi-file-document-outline`,title:e.title},null,8,[`to`,`prepend-icon`,`title`]))),128))],64))),128)),v(We,{class:`my-2`}),S(s)?.capabilities.queue?(L(),W(X,{key:0,to:`${S(r).vector.basePath}/jobs`,"prepend-icon":`mdi-progress-clock`,title:S(h)(`shell.nav.jobs`)},null,8,[`to`,`title`])):J(``,!0),S(s)?.settings.length?(L(),W(X,{key:1,to:`${S(r).vector.basePath}/settings`,"prepend-icon":`mdi-cog-outline`,title:S(h)(`shell.nav.settings`)},null,8,[`to`,`title`])):J(``,!0)]),_:1},8,[`aria-label`])]),_:1},8,[`modelValue`]),v(Nt,{flat:``,border:``},{default:B(()=>[v(Ft,{"aria-label":S(h)(`shell.toggleNavigation`),onClick:t[1]||=e=>o.value=!S(o)},null,8,[`aria-label`]),v(It,null,{default:B(()=>[y(V(S(f).title),1)]),_:1}),v(Je),S(r).vector.commandPalette?(L(),W(Q,{key:0,variant:`text`,"prepend-icon":`mdi-magnify`,class:`d-none d-sm-flex`,onClick:t[2]||=e=>S(m)&&(S(m).open=!0)},{default:B(()=>[y(V(S(h)(`common.search`))+` `,1),t[3]||=E(`kbd`,{class:`ms-2 text-caption text-medium-emphasis`},`⌘K`,-1)]),_:1})):J(``,!0),v(n),S(_).locales.value.length>1?(L(),W(Oe,{key:1},{activator:B(({props:e})=>[v(Q,j(e,{icon:`mdi-translate`,variant:`text`,"aria-label":S(h)(`shell.language`,{name:S(w)?.name??S(_).current.value})}),null,16,[`aria-label`])]),default:B(()=>[v(ve,{density:`compact`,"aria-label":S(h)(`shell.language`,{name:S(w)?.name??S(_).current.value})},{default:B(()=>[(L(!0),D(R,null,O(S(_).locales.value,e=>(L(),W(X,{key:e.code,subtitle:S(it)(e.code,S(_).current.value,e.name)??void 0,active:e.code===S(_).current.value,onClick:t=>T(e.code)},{title:B(()=>[E(`span`,{lang:e.code,dir:e.dir},V(e.name),9,an)]),_:2},1032,[`subtitle`,`active`,`onClick`]))),128))]),_:1},8,[`aria-label`])]),_:1})):J(``,!0),v(Q,{icon:`mdi-theme-light-dark`,variant:`text`,"aria-label":S(h)(`shell.toggleTheme`),onClick:I},null,8,[`aria-label`]),v(Oe,null,{activator:B(({props:e})=>[v(Q,j(e,{variant:`text`,"prepend-icon":`mdi-account-circle-outline`}),{default:B(()=>[y(V(S(i).user?.name??S(h)(`shell.account`)),1)]),_:1},16)]),default:B(()=>[v(ve,{density:`compact`},{default:B(()=>[v(X,{title:S(h)(`shell.signOut`),"prepend-icon":`mdi-logout`,onClick:q},null,8,[`title`])]),_:1})]),_:1})]),_:1}),v(Se,null,{default:B(()=>[v(a),S(H).impersonator.value?(L(),W(dt,{key:0,type:`warning`,variant:`tonal`,density:`compact`,rounded:`0`,icon:`mdi-account-switch-outline`,class:`px-6`},{append:B(()=>[v(Q,{size:`small`,variant:`flat`,color:`warning`,onClick:K},{default:B(()=>[y(V(S(h)(`shell.impersonation.stop`)),1)]),_:1})]),default:B(()=>[v(l,{keypath:`shell.impersonation.actingAs`,tag:`span`,scope:`global`},{name:B(()=>[E(`strong`,null,V(S(i).user?.name??S(h)(`shell.impersonation.anotherUser`)),1)]),_:1})]),_:1})):J(``,!0),v(qe,{fluid:``,class:`pa-6`},{default:B(()=>[ne(e.$slots,`default`)]),_:3})]),_:3}),S(f).footerText?(L(),W(Rt,{key:0,app:``,border:``,class:`text-caption text-medium-emphasis justify-center`},{default:B(()=>[y(V(S(f).footerText),1)]),_:1})):J(``,!0),v(u),v(d),S(r).vector.commandPalette?(L(),W(p,{key:1,ref_key:`palette`,ref:m},null,512)):J(``,!0)]),_:3})}}});export{on as default};